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 rfc822lib 0.13. |
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='rfc822lib' | |
747 | PACKAGE_TARNAME='rfc822lib' | |
8d138742 CE |
748 | PACKAGE_VERSION='0.13' |
749 | PACKAGE_STRING='rfc822lib 0.13' | |
d9898ee8 | 750 | PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net' |
751 | ||
752 | ac_unique_file="rfc822.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 | |
793 | HAVE_SGML_FALSE | |
794 | HAVE_SGML_TRUE | |
795 | LIBIDN_LIBS | |
796 | LIBIDN_CFLAGS | |
797 | PKG_CONFIG | |
798 | OTOOL64 | |
799 | OTOOL | |
800 | LIPO | |
801 | NMEDIT | |
802 | DSYMUTIL | |
803 | lt_ECHO | |
dd184caf | 804 | RANLIB |
8d138742 CE |
805 | AR |
806 | OBJDUMP | |
807 | LN_S | |
808 | NM | |
809 | ac_ct_DUMPBIN | |
810 | DUMPBIN | |
811 | LD | |
812 | FGREP | |
813 | SED | |
814 | host_os | |
815 | host_vendor | |
816 | host_cpu | |
817 | host | |
818 | build_os | |
819 | build_vendor | |
820 | build_cpu | |
821 | build | |
dd184caf | 822 | LIBTOOL |
8d138742 CE |
823 | EGREP |
824 | GREP | |
825 | CPP | |
826 | am__fastdepCC_FALSE | |
827 | am__fastdepCC_TRUE | |
828 | CCDEPMODE | |
829 | AMDEPBACKSLASH | |
830 | AMDEP_FALSE | |
831 | AMDEP_TRUE | |
832 | am__quote | |
833 | am__include | |
834 | DEPDIR | |
835 | OBJEXT | |
836 | EXEEXT | |
837 | ac_ct_CC | |
838 | CPPFLAGS | |
839 | LDFLAGS | |
840 | CFLAGS | |
841 | CC | |
842 | am__untar | |
843 | am__tar | |
844 | AMTAR | |
845 | am__leading_dot | |
846 | SET_MAKE | |
847 | AWK | |
848 | mkdir_p | |
849 | MKDIR_P | |
850 | INSTALL_STRIP_PROGRAM | |
851 | STRIP | |
852 | install_sh | |
853 | MAKEINFO | |
854 | AUTOHEADER | |
855 | AUTOMAKE | |
856 | AUTOCONF | |
857 | ACLOCAL | |
858 | VERSION | |
859 | PACKAGE | |
860 | CYGPATH_W | |
861 | am__isrc | |
862 | INSTALL_DATA | |
863 | INSTALL_SCRIPT | |
864 | INSTALL_PROGRAM | |
865 | target_alias | |
866 | host_alias | |
867 | build_alias | |
868 | LIBS | |
869 | ECHO_T | |
870 | ECHO_N | |
871 | ECHO_C | |
872 | DEFS | |
873 | mandir | |
874 | localedir | |
875 | libdir | |
876 | psdir | |
877 | pdfdir | |
878 | dvidir | |
879 | htmldir | |
880 | infodir | |
881 | docdir | |
882 | oldincludedir | |
883 | includedir | |
884 | localstatedir | |
885 | sharedstatedir | |
886 | sysconfdir | |
887 | datadir | |
888 | datarootdir | |
889 | libexecdir | |
890 | sbindir | |
891 | bindir | |
892 | program_transform_name | |
893 | prefix | |
894 | exec_prefix | |
895 | PACKAGE_BUGREPORT | |
896 | PACKAGE_STRING | |
897 | PACKAGE_VERSION | |
898 | PACKAGE_TARNAME | |
899 | PACKAGE_NAME | |
900 | PATH_SEPARATOR | |
901 | SHELL' | |
d9898ee8 | 902 | ac_subst_files='' |
8d138742 CE |
903 | ac_user_opts=' |
904 | enable_option_checking | |
905 | enable_dependency_tracking | |
906 | enable_shared | |
907 | enable_static | |
908 | with_pic | |
909 | enable_fast_install | |
910 | with_gnu_ld | |
911 | enable_libtool_lock | |
912 | with_libidn | |
913 | ' | |
dd184caf | 914 | ac_precious_vars='build_alias |
915 | host_alias | |
916 | target_alias | |
917 | CC | |
918 | CFLAGS | |
919 | LDFLAGS | |
920 | LIBS | |
921 | CPPFLAGS | |
922 | CPP | |
8d138742 CE |
923 | PKG_CONFIG |
924 | LIBIDN_CFLAGS | |
925 | LIBIDN_LIBS' | |
dd184caf | 926 | |
d9898ee8 | 927 | |
928 | # Initialize some variables set by options. | |
929 | ac_init_help= | |
930 | ac_init_version=false | |
8d138742 CE |
931 | ac_unrecognized_opts= |
932 | ac_unrecognized_sep= | |
d9898ee8 | 933 | # The variables have the same names as the options, with |
934 | # dashes changed to underlines. | |
935 | cache_file=/dev/null | |
936 | exec_prefix=NONE | |
937 | no_create= | |
938 | no_recursion= | |
939 | prefix=NONE | |
940 | program_prefix=NONE | |
941 | program_suffix=NONE | |
942 | program_transform_name=s,x,x, | |
943 | silent= | |
944 | site= | |
945 | srcdir= | |
946 | verbose= | |
947 | x_includes=NONE | |
948 | x_libraries=NONE | |
949 | ||
950 | # Installation directory options. | |
951 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
952 | # and all the variables that are supposed to be based on exec_prefix | |
953 | # by default will actually change. | |
954 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
dd184caf | 955 | # (The list follows the same order as the GNU Coding Standards.) |
d9898ee8 | 956 | bindir='${exec_prefix}/bin' |
957 | sbindir='${exec_prefix}/sbin' | |
958 | libexecdir='${exec_prefix}/libexec' | |
dd184caf | 959 | datarootdir='${prefix}/share' |
960 | datadir='${datarootdir}' | |
d9898ee8 | 961 | sysconfdir='${prefix}/etc' |
962 | sharedstatedir='${prefix}/com' | |
963 | localstatedir='${prefix}/var' | |
d9898ee8 | 964 | includedir='${prefix}/include' |
965 | oldincludedir='/usr/include' | |
dd184caf | 966 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
967 | infodir='${datarootdir}/info' | |
968 | htmldir='${docdir}' | |
969 | dvidir='${docdir}' | |
970 | pdfdir='${docdir}' | |
971 | psdir='${docdir}' | |
972 | libdir='${exec_prefix}/lib' | |
973 | localedir='${datarootdir}/locale' | |
974 | mandir='${datarootdir}/man' | |
d9898ee8 | 975 | |
976 | ac_prev= | |
dd184caf | 977 | ac_dashdash= |
d9898ee8 | 978 | for ac_option |
979 | do | |
980 | # If the previous option needs an argument, assign it. | |
981 | if test -n "$ac_prev"; then | |
dd184caf | 982 | eval $ac_prev=\$ac_option |
d9898ee8 | 983 | ac_prev= |
984 | continue | |
985 | fi | |
986 | ||
dd184caf | 987 | case $ac_option in |
988 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
989 | *) ac_optarg=yes ;; | |
990 | esac | |
d9898ee8 | 991 | |
992 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
993 | ||
dd184caf | 994 | case $ac_dashdash$ac_option in |
995 | --) | |
996 | ac_dashdash=yes ;; | |
d9898ee8 | 997 | |
998 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
999 | ac_prev=bindir ;; | |
1000 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
1001 | bindir=$ac_optarg ;; | |
1002 | ||
1003 | -build | --build | --buil | --bui | --bu) | |
1004 | ac_prev=build_alias ;; | |
1005 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
1006 | build_alias=$ac_optarg ;; | |
1007 | ||
1008 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
1009 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
1010 | ac_prev=cache_file ;; | |
1011 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
1012 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
1013 | cache_file=$ac_optarg ;; | |
1014 | ||
1015 | --config-cache | -C) | |
1016 | cache_file=config.cache ;; | |
1017 | ||
dd184caf | 1018 | -datadir | --datadir | --datadi | --datad) |
d9898ee8 | 1019 | ac_prev=datadir ;; |
dd184caf | 1020 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
d9898ee8 | 1021 | datadir=$ac_optarg ;; |
1022 | ||
dd184caf | 1023 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
1024 | | --dataroo | --dataro | --datar) | |
1025 | ac_prev=datarootdir ;; | |
1026 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1027 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1028 | datarootdir=$ac_optarg ;; | |
1029 | ||
d9898ee8 | 1030 | -disable-* | --disable-*) |
8d138742 | 1031 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
d9898ee8 | 1032 | # Reject names that are not valid shell variable names. |
8d138742 CE |
1033 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1034 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
d9898ee8 | 1035 | { (exit 1); exit 1; }; } |
8d138742 CE |
1036 | ac_useropt_orig=$ac_useropt |
1037 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1038 | case $ac_user_opts in | |
1039 | *" | |
1040 | "enable_$ac_useropt" | |
1041 | "*) ;; | |
1042 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1043 | ac_unrecognized_sep=', ';; | |
1044 | esac | |
1045 | eval enable_$ac_useropt=no ;; | |
dd184caf | 1046 | |
1047 | -docdir | --docdir | --docdi | --doc | --do) | |
1048 | ac_prev=docdir ;; | |
1049 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1050 | docdir=$ac_optarg ;; | |
1051 | ||
1052 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1053 | ac_prev=dvidir ;; | |
1054 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1055 | dvidir=$ac_optarg ;; | |
d9898ee8 | 1056 | |
1057 | -enable-* | --enable-*) | |
8d138742 | 1058 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
d9898ee8 | 1059 | # Reject names that are not valid shell variable names. |
8d138742 CE |
1060 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1061 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
d9898ee8 | 1062 | { (exit 1); exit 1; }; } |
8d138742 CE |
1063 | ac_useropt_orig=$ac_useropt |
1064 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1065 | case $ac_user_opts in | |
1066 | *" | |
1067 | "enable_$ac_useropt" | |
1068 | "*) ;; | |
1069 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1070 | ac_unrecognized_sep=', ';; | |
1071 | esac | |
1072 | eval enable_$ac_useropt=\$ac_optarg ;; | |
d9898ee8 | 1073 | |
1074 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1075 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1076 | | --exec | --exe | --ex) | |
1077 | ac_prev=exec_prefix ;; | |
1078 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1079 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1080 | | --exec=* | --exe=* | --ex=*) | |
1081 | exec_prefix=$ac_optarg ;; | |
1082 | ||
1083 | -gas | --gas | --ga | --g) | |
1084 | # Obsolete; use --with-gas. | |
1085 | with_gas=yes ;; | |
1086 | ||
1087 | -help | --help | --hel | --he | -h) | |
1088 | ac_init_help=long ;; | |
1089 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1090 | ac_init_help=recursive ;; | |
1091 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1092 | ac_init_help=short ;; | |
1093 | ||
1094 | -host | --host | --hos | --ho) | |
1095 | ac_prev=host_alias ;; | |
1096 | -host=* | --host=* | --hos=* | --ho=*) | |
1097 | host_alias=$ac_optarg ;; | |
1098 | ||
dd184caf | 1099 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1100 | ac_prev=htmldir ;; | |
1101 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1102 | | --ht=*) | |
1103 | htmldir=$ac_optarg ;; | |
1104 | ||
d9898ee8 | 1105 | -includedir | --includedir | --includedi | --included | --include \ |
1106 | | --includ | --inclu | --incl | --inc) | |
1107 | ac_prev=includedir ;; | |
1108 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1109 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1110 | includedir=$ac_optarg ;; | |
1111 | ||
1112 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1113 | ac_prev=infodir ;; | |
1114 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1115 | infodir=$ac_optarg ;; | |
1116 | ||
1117 | -libdir | --libdir | --libdi | --libd) | |
1118 | ac_prev=libdir ;; | |
1119 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1120 | libdir=$ac_optarg ;; | |
1121 | ||
1122 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1123 | | --libexe | --libex | --libe) | |
1124 | ac_prev=libexecdir ;; | |
1125 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1126 | | --libexe=* | --libex=* | --libe=*) | |
1127 | libexecdir=$ac_optarg ;; | |
1128 | ||
dd184caf | 1129 | -localedir | --localedir | --localedi | --localed | --locale) |
1130 | ac_prev=localedir ;; | |
1131 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1132 | localedir=$ac_optarg ;; | |
1133 | ||
d9898ee8 | 1134 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
dd184caf | 1135 | | --localstate | --localstat | --localsta | --localst | --locals) |
d9898ee8 | 1136 | ac_prev=localstatedir ;; |
1137 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
dd184caf | 1138 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
d9898ee8 | 1139 | localstatedir=$ac_optarg ;; |
1140 | ||
1141 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1142 | ac_prev=mandir ;; | |
1143 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1144 | mandir=$ac_optarg ;; | |
1145 | ||
1146 | -nfp | --nfp | --nf) | |
1147 | # Obsolete; use --without-fp. | |
1148 | with_fp=no ;; | |
1149 | ||
1150 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1151 | | --no-cr | --no-c | -n) | |
1152 | no_create=yes ;; | |
1153 | ||
1154 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1155 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1156 | no_recursion=yes ;; | |
1157 | ||
1158 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1159 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1160 | | --oldin | --oldi | --old | --ol | --o) | |
1161 | ac_prev=oldincludedir ;; | |
1162 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1163 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1164 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1165 | oldincludedir=$ac_optarg ;; | |
1166 | ||
1167 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1168 | ac_prev=prefix ;; | |
1169 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1170 | prefix=$ac_optarg ;; | |
1171 | ||
1172 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1173 | | --program-pre | --program-pr | --program-p) | |
1174 | ac_prev=program_prefix ;; | |
1175 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1176 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1177 | program_prefix=$ac_optarg ;; | |
1178 | ||
1179 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1180 | | --program-suf | --program-su | --program-s) | |
1181 | ac_prev=program_suffix ;; | |
1182 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1183 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1184 | program_suffix=$ac_optarg ;; | |
1185 | ||
1186 | -program-transform-name | --program-transform-name \ | |
1187 | | --program-transform-nam | --program-transform-na \ | |
1188 | | --program-transform-n | --program-transform- \ | |
1189 | | --program-transform | --program-transfor \ | |
1190 | | --program-transfo | --program-transf \ | |
1191 | | --program-trans | --program-tran \ | |
1192 | | --progr-tra | --program-tr | --program-t) | |
1193 | ac_prev=program_transform_name ;; | |
1194 | -program-transform-name=* | --program-transform-name=* \ | |
1195 | | --program-transform-nam=* | --program-transform-na=* \ | |
1196 | | --program-transform-n=* | --program-transform-=* \ | |
1197 | | --program-transform=* | --program-transfor=* \ | |
1198 | | --program-transfo=* | --program-transf=* \ | |
1199 | | --program-trans=* | --program-tran=* \ | |
1200 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1201 | program_transform_name=$ac_optarg ;; | |
1202 | ||
dd184caf | 1203 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1204 | ac_prev=pdfdir ;; | |
1205 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1206 | pdfdir=$ac_optarg ;; | |
1207 | ||
1208 | -psdir | --psdir | --psdi | --psd | --ps) | |
1209 | ac_prev=psdir ;; | |
1210 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1211 | psdir=$ac_optarg ;; | |
1212 | ||
d9898ee8 | 1213 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1214 | | -silent | --silent | --silen | --sile | --sil) | |
1215 | silent=yes ;; | |
1216 | ||
1217 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1218 | ac_prev=sbindir ;; | |
1219 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1220 | | --sbi=* | --sb=*) | |
1221 | sbindir=$ac_optarg ;; | |
1222 | ||
1223 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1224 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1225 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1226 | | --sha | --sh) | |
1227 | ac_prev=sharedstatedir ;; | |
1228 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1229 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1230 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1231 | | --sha=* | --sh=*) | |
1232 | sharedstatedir=$ac_optarg ;; | |
1233 | ||
1234 | -site | --site | --sit) | |
1235 | ac_prev=site ;; | |
1236 | -site=* | --site=* | --sit=*) | |
1237 | site=$ac_optarg ;; | |
1238 | ||
1239 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1240 | ac_prev=srcdir ;; | |
1241 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1242 | srcdir=$ac_optarg ;; | |
1243 | ||
1244 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1245 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1246 | ac_prev=sysconfdir ;; | |
1247 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1248 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1249 | sysconfdir=$ac_optarg ;; | |
1250 | ||
1251 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1252 | ac_prev=target_alias ;; | |
1253 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1254 | target_alias=$ac_optarg ;; | |
1255 | ||
1256 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1257 | verbose=yes ;; | |
1258 | ||
1259 | -version | --version | --versio | --versi | --vers | -V) | |
1260 | ac_init_version=: ;; | |
1261 | ||
1262 | -with-* | --with-*) | |
8d138742 | 1263 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
d9898ee8 | 1264 | # Reject names that are not valid shell variable names. |
8d138742 CE |
1265 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1266 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
d9898ee8 | 1267 | { (exit 1); exit 1; }; } |
8d138742 CE |
1268 | ac_useropt_orig=$ac_useropt |
1269 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1270 | case $ac_user_opts in | |
1271 | *" | |
1272 | "with_$ac_useropt" | |
1273 | "*) ;; | |
1274 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1275 | ac_unrecognized_sep=', ';; | |
1276 | esac | |
1277 | eval with_$ac_useropt=\$ac_optarg ;; | |
d9898ee8 | 1278 | |
1279 | -without-* | --without-*) | |
8d138742 | 1280 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
d9898ee8 | 1281 | # Reject names that are not valid shell variable names. |
8d138742 CE |
1282 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1283 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
d9898ee8 | 1284 | { (exit 1); exit 1; }; } |
8d138742 CE |
1285 | ac_useropt_orig=$ac_useropt |
1286 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1287 | case $ac_user_opts in | |
1288 | *" | |
1289 | "with_$ac_useropt" | |
1290 | "*) ;; | |
1291 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1292 | ac_unrecognized_sep=', ';; | |
1293 | esac | |
1294 | eval with_$ac_useropt=no ;; | |
d9898ee8 | 1295 | |
1296 | --x) | |
1297 | # Obsolete; use --with-x. | |
1298 | with_x=yes ;; | |
1299 | ||
1300 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1301 | | --x-incl | --x-inc | --x-in | --x-i) | |
1302 | ac_prev=x_includes ;; | |
1303 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1304 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1305 | x_includes=$ac_optarg ;; | |
1306 | ||
1307 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1308 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1309 | ac_prev=x_libraries ;; | |
1310 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1311 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1312 | x_libraries=$ac_optarg ;; | |
1313 | ||
8d138742 | 1314 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option |
d9898ee8 | 1315 | Try \`$0 --help' for more information." >&2 |
1316 | { (exit 1); exit 1; }; } | |
1317 | ;; | |
1318 | ||
1319 | *=*) | |
1320 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1321 | # Reject names that are not valid shell variable names. | |
1322 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
8d138742 | 1323 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
d9898ee8 | 1324 | { (exit 1); exit 1; }; } |
dd184caf | 1325 | eval $ac_envvar=\$ac_optarg |
d9898ee8 | 1326 | export $ac_envvar ;; |
1327 | ||
1328 | *) | |
1329 | # FIXME: should be removed in autoconf 3.0. | |
8d138742 | 1330 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
d9898ee8 | 1331 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
8d138742 | 1332 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
d9898ee8 | 1333 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
1334 | ;; | |
1335 | ||
1336 | esac | |
1337 | done | |
1338 | ||
1339 | if test -n "$ac_prev"; then | |
1340 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
8d138742 | 1341 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 |
d9898ee8 | 1342 | { (exit 1); exit 1; }; } |
1343 | fi | |
1344 | ||
8d138742 CE |
1345 | if test -n "$ac_unrecognized_opts"; then |
1346 | case $enable_option_checking in | |
1347 | no) ;; | |
1348 | fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 | |
1349 | { (exit 1); exit 1; }; } ;; | |
1350 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1351 | esac | |
1352 | fi | |
1353 | ||
1354 | # Check all directory arguments for consistency. | |
1355 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
dd184caf | 1356 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
1357 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1358 | libdir localedir mandir | |
d9898ee8 | 1359 | do |
dd184caf | 1360 | eval ac_val=\$$ac_var |
8d138742 CE |
1361 | # Remove trailing slashes. |
1362 | case $ac_val in | |
1363 | */ ) | |
1364 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1365 | eval $ac_var=\$ac_val;; | |
1366 | esac | |
1367 | # Be sure to have absolute directory names. | |
d9898ee8 | 1368 | case $ac_val in |
dd184caf | 1369 | [\\/$]* | ?:[\\/]* ) continue;; |
1370 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
d9898ee8 | 1371 | esac |
8d138742 | 1372 | { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
dd184caf | 1373 | { (exit 1); exit 1; }; } |
d9898ee8 | 1374 | done |
1375 | ||
1376 | # There might be people who depend on the old broken behavior: `$host' | |
1377 | # used to hold the argument of --host etc. | |
1378 | # FIXME: To remove some day. | |
1379 | build=$build_alias | |
1380 | host=$host_alias | |
1381 | target=$target_alias | |
1382 | ||
1383 | # FIXME: To remove some day. | |
1384 | if test "x$host_alias" != x; then | |
1385 | if test "x$build_alias" = x; then | |
1386 | cross_compiling=maybe | |
8d138742 | 1387 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
d9898ee8 | 1388 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1389 | elif test "x$build_alias" != "x$host_alias"; then | |
1390 | cross_compiling=yes | |
1391 | fi | |
1392 | fi | |
1393 | ||
1394 | ac_tool_prefix= | |
1395 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1396 | ||
1397 | test "$silent" = yes && exec 6>/dev/null | |
1398 | ||
1399 | ||
dd184caf | 1400 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1401 | ac_ls_di=`ls -di .` && | |
1402 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
8d138742 | 1403 | { $as_echo "$as_me: error: working directory cannot be determined" >&2 |
dd184caf | 1404 | { (exit 1); exit 1; }; } |
1405 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
8d138742 | 1406 | { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 |
dd184caf | 1407 | { (exit 1); exit 1; }; } |
1408 | ||
1409 | ||
d9898ee8 | 1410 | # Find the source files, if location was not specified. |
1411 | if test -z "$srcdir"; then | |
1412 | ac_srcdir_defaulted=yes | |
dd184caf | 1413 | # Try the directory containing this script, then the parent directory. |
8d138742 CE |
1414 | ac_confdir=`$as_dirname -- "$as_myself" || |
1415 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1416 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1417 | X"$as_myself" : 'X\(//\)$' \| \ | |
1418 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1419 | $as_echo X"$as_myself" | | |
dd184caf | 1420 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1421 | s//\1/ | |
1422 | q | |
1423 | } | |
1424 | /^X\(\/\/\)[^/].*/{ | |
1425 | s//\1/ | |
1426 | q | |
1427 | } | |
1428 | /^X\(\/\/\)$/{ | |
1429 | s//\1/ | |
1430 | q | |
1431 | } | |
1432 | /^X\(\/\).*/{ | |
1433 | s//\1/ | |
1434 | q | |
1435 | } | |
1436 | s/.*/./; q'` | |
d9898ee8 | 1437 | srcdir=$ac_confdir |
dd184caf | 1438 | if test ! -r "$srcdir/$ac_unique_file"; then |
d9898ee8 | 1439 | srcdir=.. |
1440 | fi | |
1441 | else | |
1442 | ac_srcdir_defaulted=no | |
1443 | fi | |
dd184caf | 1444 | if test ! -r "$srcdir/$ac_unique_file"; then |
1445 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
8d138742 | 1446 | { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
d9898ee8 | 1447 | { (exit 1); exit 1; }; } |
d9898ee8 | 1448 | fi |
dd184caf | 1449 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1450 | ac_abs_confdir=`( | |
8d138742 | 1451 | cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 |
d9898ee8 | 1452 | { (exit 1); exit 1; }; } |
dd184caf | 1453 | pwd)` |
1454 | # When building in place, set srcdir=. | |
1455 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1456 | srcdir=. | |
1457 | fi | |
1458 | # Remove unnecessary trailing slashes from srcdir. | |
1459 | # Double slashes in file names in object file debugging info | |
1460 | # mess up M-x gdb in Emacs. | |
1461 | case $srcdir in | |
1462 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1463 | esac | |
1464 | for ac_var in $ac_precious_vars; do | |
1465 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1466 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1467 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1468 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1469 | done | |
d9898ee8 | 1470 | |
1471 | # | |
1472 | # Report the --help message. | |
1473 | # | |
1474 | if test "$ac_init_help" = "long"; then | |
1475 | # Omit some internal or obsolete options to make the list less imposing. | |
1476 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1477 | cat <<_ACEOF | |
8d138742 | 1478 | \`configure' configures rfc822lib 0.13 to adapt to many kinds of systems. |
d9898ee8 | 1479 | |
1480 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1481 | ||
1482 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1483 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1484 | ||
1485 | Defaults for the options are specified in brackets. | |
1486 | ||
1487 | Configuration: | |
1488 | -h, --help display this help and exit | |
1489 | --help=short display options specific to this package | |
1490 | --help=recursive display the short help of all the included packages | |
1491 | -V, --version display version information and exit | |
1492 | -q, --quiet, --silent do not print \`checking...' messages | |
1493 | --cache-file=FILE cache test results in FILE [disabled] | |
1494 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1495 | -n, --no-create do not create output files | |
1496 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1497 | ||
d9898ee8 | 1498 | Installation directories: |
1499 | --prefix=PREFIX install architecture-independent files in PREFIX | |
8d138742 | 1500 | [$ac_default_prefix] |
d9898ee8 | 1501 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
8d138742 | 1502 | [PREFIX] |
d9898ee8 | 1503 | |
1504 | By default, \`make install' will install all the files in | |
1505 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1506 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1507 | for instance \`--prefix=\$HOME'. | |
1508 | ||
1509 | For better control, use the options below. | |
1510 | ||
1511 | Fine tuning of the installation directories: | |
8d138742 CE |
1512 | --bindir=DIR user executables [EPREFIX/bin] |
1513 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1514 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1515 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1516 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1517 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1518 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1519 | --includedir=DIR C header files [PREFIX/include] | |
1520 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1521 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1522 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1523 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1524 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1525 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1526 | --docdir=DIR documentation root [DATAROOTDIR/doc/rfc822lib] | |
1527 | --htmldir=DIR html documentation [DOCDIR] | |
1528 | --dvidir=DIR dvi documentation [DOCDIR] | |
1529 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1530 | --psdir=DIR ps documentation [DOCDIR] | |
d9898ee8 | 1531 | _ACEOF |
1532 | ||
1533 | cat <<\_ACEOF | |
1534 | ||
1535 | Program names: | |
1536 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1537 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1538 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1539 | ||
1540 | System types: | |
1541 | --build=BUILD configure for building on BUILD [guessed] | |
1542 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1543 | _ACEOF | |
1544 | fi | |
1545 | ||
1546 | if test -n "$ac_init_help"; then | |
1547 | case $ac_init_help in | |
8d138742 | 1548 | short | recursive ) echo "Configuration of rfc822lib 0.13:";; |
d9898ee8 | 1549 | esac |
1550 | cat <<\_ACEOF | |
1551 | ||
1552 | Optional Features: | |
8d138742 | 1553 | --disable-option-checking ignore unrecognized --enable/--with options |
d9898ee8 | 1554 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1555 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1556 | --disable-dependency-tracking speeds up one-time build | |
1557 | --enable-dependency-tracking do not reject slow dependency extractors | |
dd184caf | 1558 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1559 | --enable-static[=PKGS] build static libraries [default=yes] | |
d9898ee8 | 1560 | --enable-fast-install[=PKGS] |
1561 | optimize for fast installation [default=yes] | |
1562 | --disable-libtool-lock avoid locking (might break parallel builds) | |
1563 | ||
1564 | Optional Packages: | |
1565 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1566 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
d9898ee8 | 1567 | --with-pic try to use only PIC/non-PIC objects [default=use |
1568 | both] | |
8d138742 CE |
1569 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
1570 | --with-libidn=DIR Support IDN (needs GNU Libidn) | |
d9898ee8 | 1571 | |
1572 | Some influential environment variables: | |
1573 | CC C compiler command | |
1574 | CFLAGS C compiler flags | |
1575 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1576 | nonstandard directory <lib dir> | |
dd184caf | 1577 | LIBS libraries to pass to the linker, e.g. -l<library> |
1578 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1579 | you have headers in a nonstandard directory <include dir> | |
d9898ee8 | 1580 | CPP C preprocessor |
8d138742 CE |
1581 | PKG_CONFIG path to pkg-config utility |
1582 | LIBIDN_CFLAGS | |
1583 | C compiler flags for LIBIDN, overriding pkg-config | |
1584 | LIBIDN_LIBS linker flags for LIBIDN, overriding pkg-config | |
d9898ee8 | 1585 | |
1586 | Use these variables to override the choices made by `configure' or to help | |
1587 | it to find libraries and programs with nonstandard names/locations. | |
1588 | ||
1589 | Report bugs to <courier-users@lists.sourceforge.net>. | |
1590 | _ACEOF | |
dd184caf | 1591 | ac_status=$? |
d9898ee8 | 1592 | fi |
1593 | ||
1594 | if test "$ac_init_help" = "recursive"; then | |
1595 | # If there are subdirs, report their specific --help. | |
d9898ee8 | 1596 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
8d138742 CE |
1597 | test -d "$ac_dir" || |
1598 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1599 | continue | |
d9898ee8 | 1600 | ac_builddir=. |
1601 | ||
dd184caf | 1602 | case "$ac_dir" in |
1603 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1604 | *) | |
8d138742 | 1605 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
dd184caf | 1606 | # A ".." for each directory in $ac_dir_suffix. |
8d138742 | 1607 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
dd184caf | 1608 | case $ac_top_builddir_sub in |
1609 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1610 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1611 | esac ;; | |
1612 | esac | |
1613 | ac_abs_top_builddir=$ac_pwd | |
1614 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1615 | # for backward compatibility: | |
1616 | ac_top_builddir=$ac_top_build_prefix | |
d9898ee8 | 1617 | |
1618 | case $srcdir in | |
dd184caf | 1619 | .) # We are building in place. |
d9898ee8 | 1620 | ac_srcdir=. |
dd184caf | 1621 | ac_top_srcdir=$ac_top_builddir_sub |
1622 | ac_abs_top_srcdir=$ac_pwd ;; | |
1623 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
d9898ee8 | 1624 | ac_srcdir=$srcdir$ac_dir_suffix; |
dd184caf | 1625 | ac_top_srcdir=$srcdir |
1626 | ac_abs_top_srcdir=$srcdir ;; | |
1627 | *) # Relative name. | |
1628 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1629 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1630 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
d9898ee8 | 1631 | esac |
dd184caf | 1632 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1633 | ||
1634 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1635 | # Check for guested configure. | |
1636 | if test -f "$ac_srcdir/configure.gnu"; then | |
1637 | echo && | |
1638 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1639 | elif test -f "$ac_srcdir/configure"; then | |
1640 | echo && | |
1641 | $SHELL "$ac_srcdir/configure" --help=recursive | |
d9898ee8 | 1642 | else |
8d138742 | 1643 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
dd184caf | 1644 | fi || ac_status=$? |
1645 | cd "$ac_pwd" || { ac_status=$?; break; } | |
d9898ee8 | 1646 | done |
1647 | fi | |
1648 | ||
dd184caf | 1649 | test -n "$ac_init_help" && exit $ac_status |
d9898ee8 | 1650 | if $ac_init_version; then |
1651 | cat <<\_ACEOF | |
8d138742 CE |
1652 | rfc822lib configure 0.13 |
1653 | generated by GNU Autoconf 2.63 | |
d9898ee8 | 1654 | |
dd184caf | 1655 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
8d138742 | 1656 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
d9898ee8 | 1657 | This configure script is free software; the Free Software Foundation |
1658 | gives unlimited permission to copy, distribute and modify it. | |
1659 | _ACEOF | |
dd184caf | 1660 | exit |
d9898ee8 | 1661 | fi |
dd184caf | 1662 | cat >config.log <<_ACEOF |
d9898ee8 | 1663 | This file contains any messages produced by compilers while |
1664 | running configure, to aid debugging if configure makes a mistake. | |
1665 | ||
8d138742 CE |
1666 | It was created by rfc822lib $as_me 0.13, which was |
1667 | generated by GNU Autoconf 2.63. Invocation command line was | |
d9898ee8 | 1668 | |
1669 | $ $0 $@ | |
1670 | ||
1671 | _ACEOF | |
dd184caf | 1672 | exec 5>>config.log |
d9898ee8 | 1673 | { |
1674 | cat <<_ASUNAME | |
1675 | ## --------- ## | |
1676 | ## Platform. ## | |
1677 | ## --------- ## | |
1678 | ||
1679 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1680 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1681 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1682 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1683 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1684 | ||
1685 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1686 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1687 | ||
1688 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1689 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1690 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
dd184caf | 1691 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
d9898ee8 | 1692 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1693 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1694 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1695 | ||
1696 | _ASUNAME | |
1697 | ||
1698 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1699 | for as_dir in $PATH | |
1700 | do | |
1701 | IFS=$as_save_IFS | |
1702 | test -z "$as_dir" && as_dir=. | |
8d138742 | 1703 | $as_echo "PATH: $as_dir" |
d9898ee8 | 1704 | done |
dd184caf | 1705 | IFS=$as_save_IFS |
d9898ee8 | 1706 | |
1707 | } >&5 | |
1708 | ||
1709 | cat >&5 <<_ACEOF | |
1710 | ||
1711 | ||
1712 | ## ----------- ## | |
1713 | ## Core tests. ## | |
1714 | ## ----------- ## | |
1715 | ||
1716 | _ACEOF | |
1717 | ||
1718 | ||
1719 | # Keep a trace of the command line. | |
1720 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1721 | # Strip out --silent because we don't want to record it for future runs. | |
1722 | # Also quote any args containing shell meta-characters. | |
1723 | # Make two passes to allow for proper duplicate-argument suppression. | |
1724 | ac_configure_args= | |
1725 | ac_configure_args0= | |
1726 | ac_configure_args1= | |
d9898ee8 | 1727 | ac_must_keep_next=false |
1728 | for ac_pass in 1 2 | |
1729 | do | |
1730 | for ac_arg | |
1731 | do | |
1732 | case $ac_arg in | |
1733 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1734 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1735 | | -silent | --silent | --silen | --sile | --sil) | |
1736 | continue ;; | |
dd184caf | 1737 | *\'*) |
8d138742 | 1738 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
d9898ee8 | 1739 | esac |
1740 | case $ac_pass in | |
1741 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1742 | 2) | |
1743 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1744 | if test $ac_must_keep_next = true; then | |
1745 | ac_must_keep_next=false # Got value, back to normal. | |
1746 | else | |
1747 | case $ac_arg in | |
1748 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1749 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1750 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1751 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1752 | case "$ac_configure_args0 " in | |
1753 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1754 | esac | |
1755 | ;; | |
1756 | -* ) ac_must_keep_next=true ;; | |
1757 | esac | |
1758 | fi | |
dd184caf | 1759 | ac_configure_args="$ac_configure_args '$ac_arg'" |
d9898ee8 | 1760 | ;; |
1761 | esac | |
1762 | done | |
1763 | done | |
1764 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1765 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1766 | ||
1767 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1768 | # config.log. We remove comments because anyway the quotes in there | |
1769 | # would cause problems or look ugly. | |
dd184caf | 1770 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1771 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
d9898ee8 | 1772 | trap 'exit_status=$? |
1773 | # Save into config.log some information that might help in debugging. | |
1774 | { | |
1775 | echo | |
1776 | ||
1777 | cat <<\_ASBOX | |
1778 | ## ---------------- ## | |
1779 | ## Cache variables. ## | |
1780 | ## ---------------- ## | |
1781 | _ASBOX | |
1782 | echo | |
1783 | # The following way of writing the cache mishandles newlines in values, | |
dd184caf | 1784 | ( |
1785 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1786 | eval ac_val=\$$ac_var | |
1787 | case $ac_val in #( | |
1788 | *${as_nl}*) | |
1789 | case $ac_var in #( | |
8d138742 CE |
1790 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
1791 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
dd184caf | 1792 | esac |
1793 | case $ac_var in #( | |
1794 | _ | IFS | as_nl) ;; #( | |
8d138742 | 1795 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
dd184caf | 1796 | *) $as_unset $ac_var ;; |
1797 | esac ;; | |
1798 | esac | |
1799 | done | |
d9898ee8 | 1800 | (set) 2>&1 | |
dd184caf | 1801 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1802 | *${as_nl}ac_space=\ *) | |
d9898ee8 | 1803 | sed -n \ |
dd184caf | 1804 | "s/'\''/'\''\\\\'\'''\''/g; |
1805 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1806 | ;; #( | |
d9898ee8 | 1807 | *) |
dd184caf | 1808 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
d9898ee8 | 1809 | ;; |
dd184caf | 1810 | esac | |
1811 | sort | |
1812 | ) | |
d9898ee8 | 1813 | echo |
1814 | ||
1815 | cat <<\_ASBOX | |
1816 | ## ----------------- ## | |
1817 | ## Output variables. ## | |
1818 | ## ----------------- ## | |
1819 | _ASBOX | |
1820 | echo | |
1821 | for ac_var in $ac_subst_vars | |
1822 | do | |
dd184caf | 1823 | eval ac_val=\$$ac_var |
1824 | case $ac_val in | |
8d138742 | 1825 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
dd184caf | 1826 | esac |
8d138742 | 1827 | $as_echo "$ac_var='\''$ac_val'\''" |
d9898ee8 | 1828 | done | sort |
1829 | echo | |
1830 | ||
1831 | if test -n "$ac_subst_files"; then | |
1832 | cat <<\_ASBOX | |
dd184caf | 1833 | ## ------------------- ## |
1834 | ## File substitutions. ## | |
1835 | ## ------------------- ## | |
d9898ee8 | 1836 | _ASBOX |
1837 | echo | |
1838 | for ac_var in $ac_subst_files | |
1839 | do | |
dd184caf | 1840 | eval ac_val=\$$ac_var |
1841 | case $ac_val in | |
8d138742 | 1842 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
dd184caf | 1843 | esac |
8d138742 | 1844 | $as_echo "$ac_var='\''$ac_val'\''" |
d9898ee8 | 1845 | done | sort |
1846 | echo | |
1847 | fi | |
1848 | ||
1849 | if test -s confdefs.h; then | |
1850 | cat <<\_ASBOX | |
1851 | ## ----------- ## | |
1852 | ## confdefs.h. ## | |
1853 | ## ----------- ## | |
1854 | _ASBOX | |
1855 | echo | |
dd184caf | 1856 | cat confdefs.h |
d9898ee8 | 1857 | echo |
1858 | fi | |
1859 | test "$ac_signal" != 0 && | |
8d138742 CE |
1860 | $as_echo "$as_me: caught signal $ac_signal" |
1861 | $as_echo "$as_me: exit $exit_status" | |
d9898ee8 | 1862 | } >&5 |
dd184caf | 1863 | rm -f core *.core core.conftest.* && |
1864 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
d9898ee8 | 1865 | exit $exit_status |
dd184caf | 1866 | ' 0 |
d9898ee8 | 1867 | for ac_signal in 1 2 13 15; do |
1868 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1869 | done | |
1870 | ac_signal=0 | |
1871 | ||
1872 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
dd184caf | 1873 | rm -f -r conftest* confdefs.h |
d9898ee8 | 1874 | |
1875 | # Predefined preprocessor variables. | |
1876 | ||
1877 | cat >>confdefs.h <<_ACEOF | |
1878 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1879 | _ACEOF | |
1880 | ||
1881 | ||
1882 | cat >>confdefs.h <<_ACEOF | |
1883 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1884 | _ACEOF | |
1885 | ||
1886 | ||
1887 | cat >>confdefs.h <<_ACEOF | |
1888 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1889 | _ACEOF | |
1890 | ||
1891 | ||
1892 | cat >>confdefs.h <<_ACEOF | |
1893 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1894 | _ACEOF | |
1895 | ||
1896 | ||
1897 | cat >>confdefs.h <<_ACEOF | |
1898 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1899 | _ACEOF | |
1900 | ||
1901 | ||
1902 | # Let the site file select an alternate cache file if it wants to. | |
8d138742 CE |
1903 | # Prefer an explicitly selected file to automatically selected ones. |
1904 | ac_site_file1=NONE | |
1905 | ac_site_file2=NONE | |
dd184caf | 1906 | if test -n "$CONFIG_SITE"; then |
8d138742 | 1907 | ac_site_file1=$CONFIG_SITE |
dd184caf | 1908 | elif test "x$prefix" != xNONE; then |
8d138742 CE |
1909 | ac_site_file1=$prefix/share/config.site |
1910 | ac_site_file2=$prefix/etc/config.site | |
dd184caf | 1911 | else |
8d138742 CE |
1912 | ac_site_file1=$ac_default_prefix/share/config.site |
1913 | ac_site_file2=$ac_default_prefix/etc/config.site | |
d9898ee8 | 1914 | fi |
8d138742 | 1915 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
dd184caf | 1916 | do |
8d138742 | 1917 | test "x$ac_site_file" = xNONE && continue |
d9898ee8 | 1918 | if test -r "$ac_site_file"; then |
8d138742 CE |
1919 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1920 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
d9898ee8 | 1921 | sed 's/^/| /' "$ac_site_file" >&5 |
1922 | . "$ac_site_file" | |
1923 | fi | |
1924 | done | |
1925 | ||
1926 | if test -r "$cache_file"; then | |
1927 | # Some versions of bash will fail to source /dev/null (special | |
1928 | # files actually), so we avoid doing that. | |
1929 | if test -f "$cache_file"; then | |
8d138742 CE |
1930 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1931 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
d9898ee8 | 1932 | case $cache_file in |
dd184caf | 1933 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1934 | *) . "./$cache_file";; | |
d9898ee8 | 1935 | esac |
1936 | fi | |
1937 | else | |
8d138742 CE |
1938 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1939 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
d9898ee8 | 1940 | >$cache_file |
1941 | fi | |
1942 | ||
1943 | # Check that the precious variables saved in the cache have kept the same | |
1944 | # value. | |
1945 | ac_cache_corrupted=false | |
dd184caf | 1946 | for ac_var in $ac_precious_vars; do |
d9898ee8 | 1947 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1948 | eval ac_new_set=\$ac_env_${ac_var}_set | |
dd184caf | 1949 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1950 | eval ac_new_val=\$ac_env_${ac_var}_value | |
d9898ee8 | 1951 | case $ac_old_set,$ac_new_set in |
1952 | set,) | |
8d138742 CE |
1953 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1954 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
d9898ee8 | 1955 | ac_cache_corrupted=: ;; |
1956 | ,set) | |
8d138742 CE |
1957 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1958 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
d9898ee8 | 1959 | ac_cache_corrupted=: ;; |
1960 | ,);; | |
1961 | *) | |
1962 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
8d138742 CE |
1963 | # differences in whitespace do not lead to failure. |
1964 | ac_old_val_w=`echo x $ac_old_val` | |
1965 | ac_new_val_w=`echo x $ac_new_val` | |
1966 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
1967 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1968 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1969 | ac_cache_corrupted=: | |
1970 | else | |
1971 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
1972 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
1973 | eval $ac_var=\$ac_old_val | |
1974 | fi | |
1975 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 | |
1976 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
1977 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 | |
1978 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
d9898ee8 | 1979 | fi;; |
1980 | esac | |
1981 | # Pass precious variables to config.status. | |
1982 | if test "$ac_new_set" = set; then | |
1983 | case $ac_new_val in | |
8d138742 | 1984 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
d9898ee8 | 1985 | *) ac_arg=$ac_var=$ac_new_val ;; |
1986 | esac | |
1987 | case " $ac_configure_args " in | |
1988 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1989 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1990 | esac | |
1991 | fi | |
1992 | done | |
1993 | if $ac_cache_corrupted; then | |
8d138742 CE |
1994 | { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
1995 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
1996 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1997 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1998 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1999 | $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
d9898ee8 | 2000 | { (exit 1); exit 1; }; } |
2001 | fi | |
2002 | ||
d9898ee8 | 2003 | |
2004 | ||
2005 | ||
2006 | ||
2007 | ||
2008 | ||
2009 | ||
2010 | ||
2011 | ||
2012 | ||
2013 | ||
2014 | ||
2015 | ||
2016 | ||
2017 | ||
2018 | ||
2019 | ||
2020 | ||
2021 | ||
2022 | ||
2023 | ||
2024 | ||
2025 | ||
2026 | ||
dd184caf | 2027 | ac_ext=c |
2028 | ac_cpp='$CPP $CPPFLAGS' | |
2029 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2030 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2031 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 2032 | |
2033 | ||
2034 | ||
2035 | >confdefs.h # Kill PACKAGE_ macros | |
2036 | ||
2037 | ||
8d138742 | 2038 | am__api_version='1.11' |
dd184caf | 2039 | |
d9898ee8 | 2040 | ac_aux_dir= |
dd184caf | 2041 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2042 | if test -f "$ac_dir/install-sh"; then | |
d9898ee8 | 2043 | ac_aux_dir=$ac_dir |
2044 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2045 | break | |
dd184caf | 2046 | elif test -f "$ac_dir/install.sh"; then |
d9898ee8 | 2047 | ac_aux_dir=$ac_dir |
2048 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2049 | break | |
dd184caf | 2050 | elif test -f "$ac_dir/shtool"; then |
d9898ee8 | 2051 | ac_aux_dir=$ac_dir |
2052 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2053 | break | |
2054 | fi | |
2055 | done | |
2056 | if test -z "$ac_aux_dir"; then | |
8d138742 CE |
2057 | { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
2058 | $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} | |
d9898ee8 | 2059 | { (exit 1); exit 1; }; } |
2060 | fi | |
dd184caf | 2061 | |
2062 | # These three variables are undocumented and unsupported, | |
2063 | # and are intended to be withdrawn in a future Autoconf release. | |
2064 | # They can cause serious problems if a builder's source tree is in a directory | |
2065 | # whose full name contains unusual characters. | |
2066 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2067 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2068 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2069 | ||
d9898ee8 | 2070 | |
2071 | # Find a good install program. We prefer a C program (faster), | |
2072 | # so one script is as good as another. But avoid the broken or | |
2073 | # incompatible versions: | |
2074 | # SysV /etc/install, /usr/sbin/install | |
2075 | # SunOS /usr/etc/install | |
2076 | # IRIX /sbin/install | |
2077 | # AIX /bin/install | |
2078 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2079 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2080 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2081 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2082 | # OS/2's system install, which has a completely different semantic | |
2083 | # ./install, which can be erroneously created by make from ./install.sh. | |
8d138742 CE |
2084 | # Reject install programs that cannot install multiple files. |
2085 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
2086 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
d9898ee8 | 2087 | if test -z "$INSTALL"; then |
2088 | if test "${ac_cv_path_install+set}" = set; then | |
8d138742 | 2089 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2090 | else |
2091 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2092 | for as_dir in $PATH | |
2093 | do | |
2094 | IFS=$as_save_IFS | |
2095 | test -z "$as_dir" && as_dir=. | |
2096 | # Account for people who put trailing slashes in PATH elements. | |
2097 | case $as_dir/ in | |
2098 | ./ | .// | /cC/* | \ | |
2099 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2100 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
2101 | /usr/ucb/* ) ;; | |
2102 | *) | |
2103 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2104 | # Don't use installbsd from OSF since it installs stuff as root | |
2105 | # by default. | |
2106 | for ac_prog in ginstall scoinst install; do | |
2107 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 2108 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
d9898ee8 | 2109 | if test $ac_prog = install && |
2110 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2111 | # AIX install. It has an incompatible calling convention. | |
2112 | : | |
2113 | elif test $ac_prog = install && | |
2114 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2115 | # program-specific install script used by HP pwplus--don't use. | |
2116 | : | |
2117 | else | |
8d138742 CE |
2118 | rm -rf conftest.one conftest.two conftest.dir |
2119 | echo one > conftest.one | |
2120 | echo two > conftest.two | |
2121 | mkdir conftest.dir | |
2122 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2123 | test -s conftest.one && test -s conftest.two && | |
2124 | test -s conftest.dir/conftest.one && | |
2125 | test -s conftest.dir/conftest.two | |
2126 | then | |
2127 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2128 | break 3 | |
2129 | fi | |
d9898ee8 | 2130 | fi |
2131 | fi | |
2132 | done | |
2133 | done | |
2134 | ;; | |
2135 | esac | |
8d138742 | 2136 | |
d9898ee8 | 2137 | done |
dd184caf | 2138 | IFS=$as_save_IFS |
d9898ee8 | 2139 | |
8d138742 | 2140 | rm -rf conftest.one conftest.two conftest.dir |
d9898ee8 | 2141 | |
2142 | fi | |
2143 | if test "${ac_cv_path_install+set}" = set; then | |
2144 | INSTALL=$ac_cv_path_install | |
2145 | else | |
dd184caf | 2146 | # As a last resort, use the slow shell script. Don't cache a |
2147 | # value for INSTALL within a source directory, because that will | |
d9898ee8 | 2148 | # break other packages using the cache if that directory is |
dd184caf | 2149 | # removed, or if the value is a relative name. |
d9898ee8 | 2150 | INSTALL=$ac_install_sh |
2151 | fi | |
2152 | fi | |
8d138742 CE |
2153 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2154 | $as_echo "$INSTALL" >&6; } | |
d9898ee8 | 2155 | |
2156 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2157 | # It thinks the first close brace ends the variable substitution. | |
2158 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2159 | ||
2160 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2161 | ||
2162 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2163 | ||
8d138742 CE |
2164 | { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
2165 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
d9898ee8 | 2166 | # Just in case |
2167 | sleep 1 | |
2168 | echo timestamp > conftest.file | |
8d138742 CE |
2169 | # Reject unsafe characters in $srcdir or the absolute working directory |
2170 | # name. Accept space and tab only in the latter. | |
2171 | am_lf=' | |
2172 | ' | |
2173 | case `pwd` in | |
2174 | *[\\\"\#\$\&\'\`$am_lf]*) | |
2175 | { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5 | |
2176 | $as_echo "$as_me: error: unsafe absolute working directory name" >&2;} | |
2177 | { (exit 1); exit 1; }; };; | |
2178 | esac | |
2179 | case $srcdir in | |
2180 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
2181 | { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5 | |
2182 | $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;} | |
2183 | { (exit 1); exit 1; }; };; | |
2184 | esac | |
2185 | ||
d9898ee8 | 2186 | # Do `set' in a subshell so we don't clobber the current shell's |
2187 | # arguments. Must try -L first in case configure is actually a | |
2188 | # symlink; some systems play weird games with the mod time of symlinks | |
2189 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2190 | # directory). | |
2191 | if ( | |
8d138742 | 2192 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
d9898ee8 | 2193 | if test "$*" = "X"; then |
2194 | # -L didn't work. | |
8d138742 | 2195 | set X `ls -t "$srcdir/configure" conftest.file` |
d9898ee8 | 2196 | fi |
2197 | rm -f conftest.file | |
2198 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2199 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2200 | ||
2201 | # If neither matched, then we have a broken ls. This can happen | |
2202 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2203 | # broken ls alias from the environment. This has actually | |
2204 | # happened. Such a system could not be considered "sane". | |
8d138742 | 2205 | { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
d9898ee8 | 2206 | alias in your environment" >&5 |
8d138742 | 2207 | $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
d9898ee8 | 2208 | alias in your environment" >&2;} |
2209 | { (exit 1); exit 1; }; } | |
2210 | fi | |
2211 | ||
2212 | test "$2" = conftest.file | |
2213 | ) | |
2214 | then | |
2215 | # Ok. | |
2216 | : | |
2217 | else | |
8d138742 | 2218 | { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
d9898ee8 | 2219 | Check your system clock" >&5 |
8d138742 | 2220 | $as_echo "$as_me: error: newly created file is older than distributed files! |
d9898ee8 | 2221 | Check your system clock" >&2;} |
2222 | { (exit 1); exit 1; }; } | |
2223 | fi | |
8d138742 CE |
2224 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
2225 | $as_echo "yes" >&6; } | |
d9898ee8 | 2226 | test "$program_prefix" != NONE && |
dd184caf | 2227 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
d9898ee8 | 2228 | # Use a double $ so make ignores it. |
2229 | test "$program_suffix" != NONE && | |
dd184caf | 2230 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
8d138742 | 2231 | # Double any \ or $. |
d9898ee8 | 2232 | # By default was `s,x,x', remove it if useless. |
8d138742 CE |
2233 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2234 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
d9898ee8 | 2235 | |
2236 | # expand $ac_aux_dir to an absolute path | |
2237 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2238 | ||
8d138742 CE |
2239 | if test x"${MISSING+set}" != xset; then |
2240 | case $am_aux_dir in | |
2241 | *\ * | *\ *) | |
2242 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2243 | *) | |
2244 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2245 | esac | |
2246 | fi | |
d9898ee8 | 2247 | # Use eval to expand $SHELL |
2248 | if eval "$MISSING --run true"; then | |
2249 | am_missing_run="$MISSING --run " | |
2250 | else | |
2251 | am_missing_run= | |
8d138742 CE |
2252 | { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
2253 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
2254 | fi | |
2255 | ||
2256 | if test x"${install_sh}" != xset; then | |
2257 | case $am_aux_dir in | |
2258 | *\ * | *\ *) | |
2259 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2260 | *) | |
2261 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2262 | esac | |
2263 | fi | |
2264 | ||
2265 | # Installed binaries are usually stripped using `strip' when the user | |
2266 | # run `make install-strip'. However `strip' might not be the right | |
2267 | # tool to use in cross-compilation environments, therefore Automake | |
2268 | # will honor the `STRIP' environment variable to overrule this program. | |
2269 | if test "$cross_compiling" != no; then | |
2270 | if test -n "$ac_tool_prefix"; then | |
2271 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2272 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2273 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2274 | $as_echo_n "checking for $ac_word... " >&6; } | |
2275 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
2276 | $as_echo_n "(cached) " >&6 | |
2277 | else | |
2278 | if test -n "$STRIP"; then | |
2279 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2280 | else | |
2281 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2282 | for as_dir in $PATH | |
2283 | do | |
2284 | IFS=$as_save_IFS | |
2285 | test -z "$as_dir" && as_dir=. | |
2286 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2287 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2288 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2289 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2290 | break 2 | |
2291 | fi | |
2292 | done | |
2293 | done | |
2294 | IFS=$as_save_IFS | |
2295 | ||
2296 | fi | |
2297 | fi | |
2298 | STRIP=$ac_cv_prog_STRIP | |
2299 | if test -n "$STRIP"; then | |
2300 | { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 | |
2301 | $as_echo "$STRIP" >&6; } | |
2302 | else | |
2303 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
2304 | $as_echo "no" >&6; } | |
2305 | fi | |
2306 | ||
2307 | ||
2308 | fi | |
2309 | if test -z "$ac_cv_prog_STRIP"; then | |
2310 | ac_ct_STRIP=$STRIP | |
2311 | # Extract the first word of "strip", so it can be a program name with args. | |
2312 | set dummy strip; ac_word=$2 | |
2313 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2314 | $as_echo_n "checking for $ac_word... " >&6; } | |
2315 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
2316 | $as_echo_n "(cached) " >&6 | |
2317 | else | |
2318 | if test -n "$ac_ct_STRIP"; then | |
2319 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2320 | else | |
2321 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2322 | for as_dir in $PATH | |
2323 | do | |
2324 | IFS=$as_save_IFS | |
2325 | test -z "$as_dir" && as_dir=. | |
2326 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2327 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2328 | ac_cv_prog_ac_ct_STRIP="strip" | |
2329 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2330 | break 2 | |
2331 | fi | |
2332 | done | |
2333 | done | |
2334 | IFS=$as_save_IFS | |
2335 | ||
2336 | fi | |
2337 | fi | |
2338 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2339 | if test -n "$ac_ct_STRIP"; then | |
2340 | { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
2341 | $as_echo "$ac_ct_STRIP" >&6; } | |
2342 | else | |
2343 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
2344 | $as_echo "no" >&6; } | |
2345 | fi | |
2346 | ||
2347 | if test "x$ac_ct_STRIP" = x; then | |
2348 | STRIP=":" | |
2349 | else | |
2350 | case $cross_compiling:$ac_tool_warned in | |
2351 | yes:) | |
2352 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2353 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2354 | ac_tool_warned=yes ;; | |
2355 | esac | |
2356 | STRIP=$ac_ct_STRIP | |
2357 | fi | |
2358 | else | |
2359 | STRIP="$ac_cv_prog_STRIP" | |
2360 | fi | |
2361 | ||
d9898ee8 | 2362 | fi |
8d138742 | 2363 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
d9898ee8 | 2364 | |
8d138742 CE |
2365 | { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 |
2366 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
dd184caf | 2367 | if test -z "$MKDIR_P"; then |
2368 | if test "${ac_cv_path_mkdir+set}" = set; then | |
8d138742 | 2369 | $as_echo_n "(cached) " >&6 |
dd184caf | 2370 | else |
2371 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2372 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2373 | do | |
2374 | IFS=$as_save_IFS | |
2375 | test -z "$as_dir" && as_dir=. | |
2376 | for ac_prog in mkdir gmkdir; do | |
2377 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2378 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
2379 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
2380 | 'mkdir (GNU coreutils) '* | \ | |
2381 | 'mkdir (coreutils) '* | \ | |
2382 | 'mkdir (fileutils) '4.1*) | |
2383 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2384 | break 3;; | |
2385 | esac | |
2386 | done | |
2387 | done | |
2388 | done | |
2389 | IFS=$as_save_IFS | |
2390 | ||
2391 | fi | |
2392 | ||
2393 | if test "${ac_cv_path_mkdir+set}" = set; then | |
2394 | MKDIR_P="$ac_cv_path_mkdir -p" | |
d9898ee8 | 2395 | else |
dd184caf | 2396 | # As a last resort, use the slow shell script. Don't cache a |
2397 | # value for MKDIR_P within a source directory, because that will | |
2398 | # break other packages using the cache if that directory is | |
2399 | # removed, or if the value is a relative name. | |
2400 | test -d ./--version && rmdir ./--version | |
2401 | MKDIR_P="$ac_install_sh -d" | |
d9898ee8 | 2402 | fi |
2403 | fi | |
8d138742 CE |
2404 | { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 |
2405 | $as_echo "$MKDIR_P" >&6; } | |
dd184caf | 2406 | |
2407 | mkdir_p="$MKDIR_P" | |
2408 | case $mkdir_p in | |
2409 | [\\/$]* | ?:[\\/]*) ;; | |
2410 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
2411 | esac | |
d9898ee8 | 2412 | |
2413 | for ac_prog in gawk mawk nawk awk | |
2414 | do | |
2415 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2416 | set dummy $ac_prog; ac_word=$2 | |
8d138742 CE |
2417 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2418 | $as_echo_n "checking for $ac_word... " >&6; } | |
d9898ee8 | 2419 | if test "${ac_cv_prog_AWK+set}" = set; then |
8d138742 | 2420 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2421 | else |
2422 | if test -n "$AWK"; then | |
2423 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2424 | else | |
2425 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2426 | for as_dir in $PATH | |
2427 | do | |
2428 | IFS=$as_save_IFS | |
2429 | test -z "$as_dir" && as_dir=. | |
2430 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 2431 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 | 2432 | ac_cv_prog_AWK="$ac_prog" |
8d138742 | 2433 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2434 | break 2 |
2435 | fi | |
2436 | done | |
2437 | done | |
dd184caf | 2438 | IFS=$as_save_IFS |
d9898ee8 | 2439 | |
2440 | fi | |
2441 | fi | |
2442 | AWK=$ac_cv_prog_AWK | |
2443 | if test -n "$AWK"; then | |
8d138742 CE |
2444 | { $as_echo "$as_me:$LINENO: result: $AWK" >&5 |
2445 | $as_echo "$AWK" >&6; } | |
d9898ee8 | 2446 | else |
8d138742 CE |
2447 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2448 | $as_echo "no" >&6; } | |
d9898ee8 | 2449 | fi |
2450 | ||
dd184caf | 2451 | |
d9898ee8 | 2452 | test -n "$AWK" && break |
2453 | done | |
2454 | ||
8d138742 CE |
2455 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2456 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
2457 | set x ${MAKE-make} | |
2458 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
dd184caf | 2459 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
8d138742 | 2460 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2461 | else |
2462 | cat >conftest.make <<\_ACEOF | |
dd184caf | 2463 | SHELL = /bin/sh |
d9898ee8 | 2464 | all: |
dd184caf | 2465 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
d9898ee8 | 2466 | _ACEOF |
2467 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
dd184caf | 2468 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2469 | *@@@%%%=?*=@@@%%%*) | |
2470 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2471 | *) | |
2472 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2473 | esac | |
d9898ee8 | 2474 | rm -f conftest.make |
2475 | fi | |
dd184caf | 2476 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
8d138742 CE |
2477 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
2478 | $as_echo "yes" >&6; } | |
d9898ee8 | 2479 | SET_MAKE= |
2480 | else | |
8d138742 CE |
2481 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2482 | $as_echo "no" >&6; } | |
d9898ee8 | 2483 | SET_MAKE="MAKE=${MAKE-make}" |
2484 | fi | |
2485 | ||
2486 | rm -rf .tst 2>/dev/null | |
2487 | mkdir .tst 2>/dev/null | |
2488 | if test -d .tst; then | |
2489 | am__leading_dot=. | |
2490 | else | |
2491 | am__leading_dot=_ | |
2492 | fi | |
2493 | rmdir .tst 2>/dev/null | |
2494 | ||
dd184caf | 2495 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
2496 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
2497 | # is not polluted with repeated "-I." | |
2498 | am__isrc=' -I$(srcdir)' | |
2499 | # test to see if srcdir already configured | |
2500 | if test -f $srcdir/config.status; then | |
8d138742 CE |
2501 | { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
2502 | $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
d9898ee8 | 2503 | { (exit 1); exit 1; }; } |
dd184caf | 2504 | fi |
d9898ee8 | 2505 | fi |
2506 | ||
2507 | # test whether we have cygpath | |
2508 | if test -z "$CYGPATH_W"; then | |
2509 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2510 | CYGPATH_W='cygpath -w' | |
2511 | else | |
2512 | CYGPATH_W=echo | |
2513 | fi | |
2514 | fi | |
2515 | ||
2516 | ||
2517 | # Define the identity of the package. | |
2518 | PACKAGE='rfc822lib' | |
8d138742 | 2519 | VERSION='0.13' |
d9898ee8 | 2520 | |
2521 | ||
2522 | # Some tools Automake needs. | |
2523 | ||
2524 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2525 | ||
2526 | ||
2527 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2528 | ||
2529 | ||
2530 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2531 | ||
2532 | ||
2533 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2534 | ||
2535 | ||
2536 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2537 | ||
8d138742 CE |
2538 | # We need awk for the "check" target. The system "awk" is bad on |
2539 | # some platforms. | |
2540 | # Always define AMTAR for backward compatibility. | |
d9898ee8 | 2541 | |
8d138742 | 2542 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
d9898ee8 | 2543 | |
8d138742 | 2544 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
d9898ee8 | 2545 | |
dd184caf | 2546 | |
d9898ee8 | 2547 | |
d9898ee8 | 2548 | |
d9898ee8 | 2549 | |
8d138742 | 2550 | ac_config_headers="$ac_config_headers config.h" |
d9898ee8 | 2551 | |
d9898ee8 | 2552 | |
8d138742 | 2553 | DEPDIR="${am__leading_dot}deps" |
d9898ee8 | 2554 | |
8d138742 | 2555 | ac_config_commands="$ac_config_commands depfiles" |
d9898ee8 | 2556 | |
2557 | ||
8d138742 CE |
2558 | am_make=${MAKE-make} |
2559 | cat > confinc << 'END' | |
2560 | am__doit: | |
2561 | @echo this is the am__doit target | |
2562 | .PHONY: am__doit | |
2563 | END | |
2564 | # If we don't find an include directive, just comment out the code. | |
2565 | { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 | |
2566 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
2567 | am__include="#" | |
2568 | am__quote= | |
2569 | _am_result=none | |
2570 | # First try GNU make style include. | |
2571 | echo "include confinc" > confmf | |
2572 | # Ignore all kinds of additional output from `make'. | |
2573 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
2574 | *the\ am__doit\ target*) | |
2575 | am__include=include | |
2576 | am__quote= | |
2577 | _am_result=GNU | |
2578 | ;; | |
2579 | esac | |
2580 | # Now try BSD make style include. | |
2581 | if test "$am__include" = "#"; then | |
2582 | echo '.include "confinc"' > confmf | |
2583 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
2584 | *the\ am__doit\ target*) | |
2585 | am__include=.include | |
2586 | am__quote="\"" | |
2587 | _am_result=BSD | |
2588 | ;; | |
2589 | esac | |
2590 | fi | |
d9898ee8 | 2591 | |
2592 | ||
8d138742 CE |
2593 | { $as_echo "$as_me:$LINENO: result: $_am_result" >&5 |
2594 | $as_echo "$_am_result" >&6; } | |
2595 | rm -f confinc confmf | |
d9898ee8 | 2596 | |
8d138742 CE |
2597 | # Check whether --enable-dependency-tracking was given. |
2598 | if test "${enable_dependency_tracking+set}" = set; then | |
2599 | enableval=$enable_dependency_tracking; | |
2600 | fi | |
2601 | ||
2602 | if test "x$enable_dependency_tracking" != xno; then | |
2603 | am_depcomp="$ac_aux_dir/depcomp" | |
2604 | AMDEPBACKSLASH='\' | |
2605 | fi | |
2606 | if test "x$enable_dependency_tracking" != xno; then | |
2607 | AMDEP_TRUE= | |
2608 | AMDEP_FALSE='#' | |
2609 | else | |
2610 | AMDEP_TRUE='#' | |
2611 | AMDEP_FALSE= | |
2612 | fi | |
d9898ee8 | 2613 | |
2614 | ||
2615 | ac_ext=c | |
2616 | ac_cpp='$CPP $CPPFLAGS' | |
2617 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2618 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2619 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2620 | if test -n "$ac_tool_prefix"; then | |
2621 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2622 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
8d138742 CE |
2623 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2624 | $as_echo_n "checking for $ac_word... " >&6; } | |
d9898ee8 | 2625 | if test "${ac_cv_prog_CC+set}" = set; then |
8d138742 | 2626 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2627 | else |
2628 | if test -n "$CC"; then | |
2629 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2630 | else | |
2631 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2632 | for as_dir in $PATH | |
2633 | do | |
2634 | IFS=$as_save_IFS | |
2635 | test -z "$as_dir" && as_dir=. | |
2636 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 2637 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 | 2638 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
8d138742 | 2639 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2640 | break 2 |
2641 | fi | |
2642 | done | |
2643 | done | |
dd184caf | 2644 | IFS=$as_save_IFS |
d9898ee8 | 2645 | |
2646 | fi | |
2647 | fi | |
2648 | CC=$ac_cv_prog_CC | |
2649 | if test -n "$CC"; then | |
8d138742 CE |
2650 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2651 | $as_echo "$CC" >&6; } | |
d9898ee8 | 2652 | else |
8d138742 CE |
2653 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2654 | $as_echo "no" >&6; } | |
d9898ee8 | 2655 | fi |
2656 | ||
dd184caf | 2657 | |
d9898ee8 | 2658 | fi |
2659 | if test -z "$ac_cv_prog_CC"; then | |
2660 | ac_ct_CC=$CC | |
2661 | # Extract the first word of "gcc", so it can be a program name with args. | |
2662 | set dummy gcc; ac_word=$2 | |
8d138742 CE |
2663 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2664 | $as_echo_n "checking for $ac_word... " >&6; } | |
d9898ee8 | 2665 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
8d138742 | 2666 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2667 | else |
2668 | if test -n "$ac_ct_CC"; then | |
2669 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2670 | else | |
2671 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2672 | for as_dir in $PATH | |
2673 | do | |
2674 | IFS=$as_save_IFS | |
2675 | test -z "$as_dir" && as_dir=. | |
2676 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 2677 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 | 2678 | ac_cv_prog_ac_ct_CC="gcc" |
8d138742 | 2679 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2680 | break 2 |
2681 | fi | |
2682 | done | |
2683 | done | |
dd184caf | 2684 | IFS=$as_save_IFS |
d9898ee8 | 2685 | |
2686 | fi | |
2687 | fi | |
2688 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2689 | if test -n "$ac_ct_CC"; then | |
8d138742 CE |
2690 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2691 | $as_echo "$ac_ct_CC" >&6; } | |
d9898ee8 | 2692 | else |
8d138742 CE |
2693 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2694 | $as_echo "no" >&6; } | |
d9898ee8 | 2695 | fi |
2696 | ||
dd184caf | 2697 | if test "x$ac_ct_CC" = x; then |
2698 | CC="" | |
2699 | else | |
2700 | case $cross_compiling:$ac_tool_warned in | |
2701 | yes:) | |
8d138742 CE |
2702 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2703 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
dd184caf | 2704 | ac_tool_warned=yes ;; |
2705 | esac | |
2706 | CC=$ac_ct_CC | |
2707 | fi | |
d9898ee8 | 2708 | else |
2709 | CC="$ac_cv_prog_CC" | |
2710 | fi | |
2711 | ||
2712 | if test -z "$CC"; then | |
dd184caf | 2713 | if test -n "$ac_tool_prefix"; then |
2714 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
d9898ee8 | 2715 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
8d138742 CE |
2716 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2717 | $as_echo_n "checking for $ac_word... " >&6; } | |
d9898ee8 | 2718 | if test "${ac_cv_prog_CC+set}" = set; then |
8d138742 | 2719 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2720 | else |
2721 | if test -n "$CC"; then | |
2722 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2723 | else | |
2724 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2725 | for as_dir in $PATH | |
2726 | do | |
2727 | IFS=$as_save_IFS | |
2728 | test -z "$as_dir" && as_dir=. | |
2729 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 2730 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 | 2731 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
8d138742 | 2732 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2733 | break 2 |
2734 | fi | |
2735 | done | |
2736 | done | |
dd184caf | 2737 | IFS=$as_save_IFS |
d9898ee8 | 2738 | |
2739 | fi | |
2740 | fi | |
2741 | CC=$ac_cv_prog_CC | |
2742 | if test -n "$CC"; then | |
8d138742 CE |
2743 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2744 | $as_echo "$CC" >&6; } | |
d9898ee8 | 2745 | else |
8d138742 CE |
2746 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2747 | $as_echo "no" >&6; } | |
d9898ee8 | 2748 | fi |
2749 | ||
d9898ee8 | 2750 | |
dd184caf | 2751 | fi |
d9898ee8 | 2752 | fi |
2753 | if test -z "$CC"; then | |
2754 | # Extract the first word of "cc", so it can be a program name with args. | |
2755 | set dummy cc; ac_word=$2 | |
8d138742 CE |
2756 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2757 | $as_echo_n "checking for $ac_word... " >&6; } | |
d9898ee8 | 2758 | if test "${ac_cv_prog_CC+set}" = set; then |
8d138742 | 2759 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2760 | else |
2761 | if test -n "$CC"; then | |
2762 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2763 | else | |
2764 | ac_prog_rejected=no | |
2765 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2766 | for as_dir in $PATH | |
2767 | do | |
2768 | IFS=$as_save_IFS | |
2769 | test -z "$as_dir" && as_dir=. | |
2770 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 2771 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 | 2772 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2773 | ac_prog_rejected=yes | |
2774 | continue | |
2775 | fi | |
2776 | ac_cv_prog_CC="cc" | |
8d138742 | 2777 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2778 | break 2 |
2779 | fi | |
2780 | done | |
2781 | done | |
dd184caf | 2782 | IFS=$as_save_IFS |
d9898ee8 | 2783 | |
2784 | if test $ac_prog_rejected = yes; then | |
2785 | # We found a bogon in the path, so make sure we never use it. | |
2786 | set dummy $ac_cv_prog_CC | |
2787 | shift | |
2788 | if test $# != 0; then | |
2789 | # We chose a different compiler from the bogus one. | |
2790 | # However, it has the same basename, so the bogon will be chosen | |
2791 | # first if we set CC to just the basename; use the full file name. | |
2792 | shift | |
2793 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2794 | fi | |
2795 | fi | |
2796 | fi | |
2797 | fi | |
2798 | CC=$ac_cv_prog_CC | |
2799 | if test -n "$CC"; then | |
8d138742 CE |
2800 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2801 | $as_echo "$CC" >&6; } | |
d9898ee8 | 2802 | else |
8d138742 CE |
2803 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2804 | $as_echo "no" >&6; } | |
d9898ee8 | 2805 | fi |
2806 | ||
dd184caf | 2807 | |
d9898ee8 | 2808 | fi |
2809 | if test -z "$CC"; then | |
2810 | if test -n "$ac_tool_prefix"; then | |
dd184caf | 2811 | for ac_prog in cl.exe |
d9898ee8 | 2812 | do |
2813 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2814 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
8d138742 CE |
2815 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2816 | $as_echo_n "checking for $ac_word... " >&6; } | |
d9898ee8 | 2817 | if test "${ac_cv_prog_CC+set}" = set; then |
8d138742 | 2818 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2819 | else |
2820 | if test -n "$CC"; then | |
2821 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2822 | else | |
2823 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2824 | for as_dir in $PATH | |
2825 | do | |
2826 | IFS=$as_save_IFS | |
2827 | test -z "$as_dir" && as_dir=. | |
2828 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 2829 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 | 2830 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
8d138742 | 2831 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2832 | break 2 |
2833 | fi | |
2834 | done | |
2835 | done | |
dd184caf | 2836 | IFS=$as_save_IFS |
d9898ee8 | 2837 | |
2838 | fi | |
2839 | fi | |
2840 | CC=$ac_cv_prog_CC | |
2841 | if test -n "$CC"; then | |
8d138742 CE |
2842 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2843 | $as_echo "$CC" >&6; } | |
d9898ee8 | 2844 | else |
8d138742 CE |
2845 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2846 | $as_echo "no" >&6; } | |
d9898ee8 | 2847 | fi |
2848 | ||
dd184caf | 2849 | |
d9898ee8 | 2850 | test -n "$CC" && break |
2851 | done | |
2852 | fi | |
2853 | if test -z "$CC"; then | |
2854 | ac_ct_CC=$CC | |
dd184caf | 2855 | for ac_prog in cl.exe |
d9898ee8 | 2856 | do |
2857 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2858 | set dummy $ac_prog; ac_word=$2 | |
8d138742 CE |
2859 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2860 | $as_echo_n "checking for $ac_word... " >&6; } | |
d9898ee8 | 2861 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
8d138742 | 2862 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2863 | else |
2864 | if test -n "$ac_ct_CC"; then | |
2865 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2866 | else | |
2867 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2868 | for as_dir in $PATH | |
2869 | do | |
2870 | IFS=$as_save_IFS | |
2871 | test -z "$as_dir" && as_dir=. | |
2872 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 2873 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 | 2874 | ac_cv_prog_ac_ct_CC="$ac_prog" |
8d138742 | 2875 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2876 | break 2 |
2877 | fi | |
2878 | done | |
2879 | done | |
dd184caf | 2880 | IFS=$as_save_IFS |
d9898ee8 | 2881 | |
2882 | fi | |
2883 | fi | |
2884 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2885 | if test -n "$ac_ct_CC"; then | |
8d138742 CE |
2886 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2887 | $as_echo "$ac_ct_CC" >&6; } | |
d9898ee8 | 2888 | else |
8d138742 CE |
2889 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2890 | $as_echo "no" >&6; } | |
d9898ee8 | 2891 | fi |
2892 | ||
dd184caf | 2893 | |
d9898ee8 | 2894 | test -n "$ac_ct_CC" && break |
2895 | done | |
2896 | ||
dd184caf | 2897 | if test "x$ac_ct_CC" = x; then |
2898 | CC="" | |
2899 | else | |
2900 | case $cross_compiling:$ac_tool_warned in | |
2901 | yes:) | |
8d138742 CE |
2902 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2903 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
dd184caf | 2904 | ac_tool_warned=yes ;; |
2905 | esac | |
2906 | CC=$ac_ct_CC | |
2907 | fi | |
d9898ee8 | 2908 | fi |
2909 | ||
2910 | fi | |
2911 | ||
2912 | ||
8d138742 CE |
2913 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2914 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2915 | { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
d9898ee8 | 2916 | See \`config.log' for more details." >&5 |
8d138742 | 2917 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
d9898ee8 | 2918 | See \`config.log' for more details." >&2;} |
8d138742 | 2919 | { (exit 1); exit 1; }; }; } |
d9898ee8 | 2920 | |
2921 | # Provide some information about the compiler. | |
8d138742 CE |
2922 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
2923 | set X $ac_compile | |
2924 | ac_compiler=$2 | |
dd184caf | 2925 | { (ac_try="$ac_compiler --version >&5" |
2926 | case "(($ac_try" in | |
2927 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2928 | *) ac_try_echo=$ac_try;; | |
2929 | esac | |
8d138742 CE |
2930 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2931 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 2932 | (eval "$ac_compiler --version >&5") 2>&5 |
d9898ee8 | 2933 | ac_status=$? |
8d138742 | 2934 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d9898ee8 | 2935 | (exit $ac_status); } |
dd184caf | 2936 | { (ac_try="$ac_compiler -v >&5" |
2937 | case "(($ac_try" in | |
2938 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2939 | *) ac_try_echo=$ac_try;; | |
2940 | esac | |
8d138742 CE |
2941 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2942 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 2943 | (eval "$ac_compiler -v >&5") 2>&5 |
d9898ee8 | 2944 | ac_status=$? |
8d138742 | 2945 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d9898ee8 | 2946 | (exit $ac_status); } |
dd184caf | 2947 | { (ac_try="$ac_compiler -V >&5" |
2948 | case "(($ac_try" in | |
2949 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2950 | *) ac_try_echo=$ac_try;; | |
2951 | esac | |
8d138742 CE |
2952 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2953 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 2954 | (eval "$ac_compiler -V >&5") 2>&5 |
d9898ee8 | 2955 | ac_status=$? |
8d138742 | 2956 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d9898ee8 | 2957 | (exit $ac_status); } |
2958 | ||
2959 | cat >conftest.$ac_ext <<_ACEOF | |
2960 | /* confdefs.h. */ | |
2961 | _ACEOF | |
2962 | cat confdefs.h >>conftest.$ac_ext | |
2963 | cat >>conftest.$ac_ext <<_ACEOF | |
2964 | /* end confdefs.h. */ | |
2965 | ||
2966 | int | |
2967 | main () | |
2968 | { | |
2969 | ||
2970 | ; | |
2971 | return 0; | |
2972 | } | |
2973 | _ACEOF | |
2974 | ac_clean_files_save=$ac_clean_files | |
8d138742 | 2975 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
d9898ee8 | 2976 | # Try to create an executable without -o first, disregard a.out. |
2977 | # It will help us diagnose broken compilers, and finding out an intuition | |
2978 | # of exeext. | |
8d138742 CE |
2979 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2980 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2981 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2982 | ||
2983 | # The possible output files: | |
2984 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2985 | ||
dd184caf | 2986 | ac_rmfiles= |
2987 | for ac_file in $ac_files | |
2988 | do | |
2989 | case $ac_file in | |
8d138742 | 2990 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
dd184caf | 2991 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
2992 | esac | |
2993 | done | |
2994 | rm -f $ac_rmfiles | |
2995 | ||
2996 | if { (ac_try="$ac_link_default" | |
2997 | case "(($ac_try" in | |
2998 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2999 | *) ac_try_echo=$ac_try;; | |
3000 | esac | |
8d138742 CE |
3001 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3002 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 3003 | (eval "$ac_link_default") 2>&5 |
d9898ee8 | 3004 | ac_status=$? |
8d138742 | 3005 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d9898ee8 | 3006 | (exit $ac_status); }; then |
dd184caf | 3007 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3008 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3009 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3010 | # so that the user can short-circuit this test for compilers unknown to | |
3011 | # Autoconf. | |
3012 | for ac_file in $ac_files '' | |
d9898ee8 | 3013 | do |
3014 | test -f "$ac_file" || continue | |
3015 | case $ac_file in | |
8d138742 | 3016 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
d9898ee8 | 3017 | ;; |
3018 | [ab].out ) | |
3019 | # We found the default executable, but exeext='' is most | |
3020 | # certainly right. | |
3021 | break;; | |
3022 | *.* ) | |
dd184caf | 3023 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
3024 | then :; else | |
3025 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3026 | fi | |
3027 | # We set ac_cv_exeext here because the later test for it is not | |
3028 | # safe: cross compilers may not add the suffix if given an `-o' | |
3029 | # argument, so we may need to know it at that point already. | |
3030 | # Even if this section looks crufty: it has the advantage of | |
3031 | # actually working. | |
d9898ee8 | 3032 | break;; |
3033 | * ) | |
3034 | break;; | |
3035 | esac | |
3036 | done | |
dd184caf | 3037 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3038 | ||
d9898ee8 | 3039 | else |
dd184caf | 3040 | ac_file='' |
3041 | fi | |
3042 | ||
8d138742 CE |
3043 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 |
3044 | $as_echo "$ac_file" >&6; } | |
dd184caf | 3045 | if test -z "$ac_file"; then |
8d138742 | 3046 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 3047 | sed 's/^/| /' conftest.$ac_ext >&5 |
3048 | ||
8d138742 CE |
3049 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3050 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3051 | { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables | |
d9898ee8 | 3052 | See \`config.log' for more details." >&5 |
8d138742 | 3053 | $as_echo "$as_me: error: C compiler cannot create executables |
d9898ee8 | 3054 | See \`config.log' for more details." >&2;} |
8d138742 | 3055 | { (exit 77); exit 77; }; }; } |
d9898ee8 | 3056 | fi |
3057 | ||
3058 | ac_exeext=$ac_cv_exeext | |
d9898ee8 | 3059 | |
dd184caf | 3060 | # Check that the compiler produces executables we can run. If not, either |
d9898ee8 | 3061 | # the compiler is broken, or we cross compile. |
8d138742 CE |
3062 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
3063 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
d9898ee8 | 3064 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
3065 | # If not cross compiling, check that we can run a simple program. | |
3066 | if test "$cross_compiling" != yes; then | |
3067 | if { ac_try='./$ac_file' | |
dd184caf | 3068 | { (case "(($ac_try" in |
3069 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3070 | *) ac_try_echo=$ac_try;; | |
3071 | esac | |
8d138742 CE |
3072 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3073 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 3074 | (eval "$ac_try") 2>&5 |
d9898ee8 | 3075 | ac_status=$? |
8d138742 | 3076 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d9898ee8 | 3077 | (exit $ac_status); }; }; then |
3078 | cross_compiling=no | |
3079 | else | |
3080 | if test "$cross_compiling" = maybe; then | |
3081 | cross_compiling=yes | |
3082 | else | |
8d138742 CE |
3083 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3084 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3085 | { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
d9898ee8 | 3086 | If you meant to cross compile, use \`--host'. |
3087 | See \`config.log' for more details." >&5 | |
8d138742 | 3088 | $as_echo "$as_me: error: cannot run C compiled programs. |
d9898ee8 | 3089 | If you meant to cross compile, use \`--host'. |
3090 | See \`config.log' for more details." >&2;} | |
8d138742 | 3091 | { (exit 1); exit 1; }; }; } |
d9898ee8 | 3092 | fi |
3093 | fi | |
3094 | fi | |
8d138742 CE |
3095 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
3096 | $as_echo "yes" >&6; } | |
d9898ee8 | 3097 | |
8d138742 | 3098 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
d9898ee8 | 3099 | ac_clean_files=$ac_clean_files_save |
dd184caf | 3100 | # Check that the compiler produces executables we can run. If not, either |
d9898ee8 | 3101 | # the compiler is broken, or we cross compile. |
8d138742 CE |
3102 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
3103 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3104 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
3105 | $as_echo "$cross_compiling" >&6; } | |
dd184caf | 3106 | |
8d138742 CE |
3107 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
3108 | $as_echo_n "checking for suffix of executables... " >&6; } | |
dd184caf | 3109 | if { (ac_try="$ac_link" |
3110 | case "(($ac_try" in | |
3111 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3112 | *) ac_try_echo=$ac_try;; | |
3113 | esac | |
8d138742 CE |
3114 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3115 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 3116 | (eval "$ac_link") 2>&5 |
d9898ee8 | 3117 | ac_status=$? |
8d138742 | 3118 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d9898ee8 | 3119 | (exit $ac_status); }; then |
3120 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3121 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3122 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3123 | # `rm'. | |
3124 | for ac_file in conftest.exe conftest conftest.*; do | |
3125 | test -f "$ac_file" || continue | |
3126 | case $ac_file in | |
8d138742 | 3127 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
d9898ee8 | 3128 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
d9898ee8 | 3129 | break;; |
3130 | * ) break;; | |
3131 | esac | |
3132 | done | |
3133 | else | |
8d138742 CE |
3134 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3135 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3136 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
d9898ee8 | 3137 | See \`config.log' for more details." >&5 |
8d138742 | 3138 | $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
d9898ee8 | 3139 | See \`config.log' for more details." >&2;} |
8d138742 | 3140 | { (exit 1); exit 1; }; }; } |
d9898ee8 | 3141 | fi |
3142 | ||
3143 | rm -f conftest$ac_cv_exeext | |
8d138742 CE |
3144 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
3145 | $as_echo "$ac_cv_exeext" >&6; } | |
d9898ee8 | 3146 | |
3147 | rm -f conftest.$ac_ext | |
3148 | EXEEXT=$ac_cv_exeext | |
3149 | ac_exeext=$EXEEXT | |
8d138742 CE |
3150 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
3151 | $as_echo_n "checking for suffix of object files... " >&6; } | |
d9898ee8 | 3152 | if test "${ac_cv_objext+set}" = set; then |
8d138742 | 3153 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3154 | else |
3155 | cat >conftest.$ac_ext <<_ACEOF | |
3156 | /* confdefs.h. */ | |
3157 | _ACEOF | |
3158 | cat confdefs.h >>conftest.$ac_ext | |
3159 | cat >>conftest.$ac_ext <<_ACEOF | |
3160 | /* end confdefs.h. */ | |
3161 | ||
3162 | int | |
3163 | main () | |
3164 | { | |
3165 | ||
3166 | ; | |
3167 | return 0; | |
3168 | } | |
3169 | _ACEOF | |
3170 | rm -f conftest.o conftest.obj | |
dd184caf | 3171 | if { (ac_try="$ac_compile" |
3172 | case "(($ac_try" in | |
3173 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3174 | *) ac_try_echo=$ac_try;; | |
3175 | esac | |
8d138742 CE |
3176 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3177 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 3178 | (eval "$ac_compile") 2>&5 |
d9898ee8 | 3179 | ac_status=$? |
8d138742 | 3180 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d9898ee8 | 3181 | (exit $ac_status); }; then |
dd184caf | 3182 | for ac_file in conftest.o conftest.obj conftest.*; do |
3183 | test -f "$ac_file" || continue; | |
d9898ee8 | 3184 | case $ac_file in |
8d138742 | 3185 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
d9898ee8 | 3186 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3187 | break;; | |
3188 | esac | |
3189 | done | |
3190 | else | |
8d138742 | 3191 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 3192 | sed 's/^/| /' conftest.$ac_ext >&5 |
3193 | ||
8d138742 CE |
3194 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3195 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3196 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
d9898ee8 | 3197 | See \`config.log' for more details." >&5 |
8d138742 | 3198 | $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile |
d9898ee8 | 3199 | See \`config.log' for more details." >&2;} |
8d138742 | 3200 | { (exit 1); exit 1; }; }; } |
d9898ee8 | 3201 | fi |
3202 | ||
3203 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3204 | fi | |
8d138742 CE |
3205 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
3206 | $as_echo "$ac_cv_objext" >&6; } | |
d9898ee8 | 3207 | OBJEXT=$ac_cv_objext |
3208 | ac_objext=$OBJEXT | |
8d138742 CE |
3209 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
3210 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
d9898ee8 | 3211 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
8d138742 | 3212 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3213 | else |
3214 | cat >conftest.$ac_ext <<_ACEOF | |
3215 | /* confdefs.h. */ | |
3216 | _ACEOF | |
3217 | cat confdefs.h >>conftest.$ac_ext | |
3218 | cat >>conftest.$ac_ext <<_ACEOF | |
3219 | /* end confdefs.h. */ | |
3220 | ||
3221 | int | |
3222 | main () | |
3223 | { | |
3224 | #ifndef __GNUC__ | |
3225 | choke me | |
3226 | #endif | |
3227 | ||
3228 | ; | |
3229 | return 0; | |
3230 | } | |
3231 | _ACEOF | |
3232 | rm -f conftest.$ac_objext | |
dd184caf | 3233 | if { (ac_try="$ac_compile" |
3234 | case "(($ac_try" in | |
3235 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3236 | *) ac_try_echo=$ac_try;; | |
3237 | esac | |
8d138742 CE |
3238 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3239 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 3240 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 | 3241 | ac_status=$? |
3242 | grep -v '^ *+' conftest.er1 >conftest.err | |
3243 | rm -f conftest.er1 | |
3244 | cat conftest.err >&5 | |
8d138742 | 3245 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 3246 | (exit $ac_status); } && { |
3247 | test -z "$ac_c_werror_flag" || | |
3248 | test ! -s conftest.err | |
3249 | } && test -s conftest.$ac_objext; then | |
d9898ee8 | 3250 | ac_compiler_gnu=yes |
3251 | else | |
8d138742 | 3252 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 3253 | sed 's/^/| /' conftest.$ac_ext >&5 |
3254 | ||
dd184caf | 3255 | ac_compiler_gnu=no |
d9898ee8 | 3256 | fi |
dd184caf | 3257 | |
3258 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d9898ee8 | 3259 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3260 | ||
3261 | fi | |
8d138742 CE |
3262 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
3263 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3264 | if test $ac_compiler_gnu = yes; then | |
3265 | GCC=yes | |
3266 | else | |
3267 | GCC= | |
3268 | fi | |
d9898ee8 | 3269 | ac_test_CFLAGS=${CFLAGS+set} |
3270 | ac_save_CFLAGS=$CFLAGS | |
8d138742 CE |
3271 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
3272 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
d9898ee8 | 3273 | if test "${ac_cv_prog_cc_g+set}" = set; then |
8d138742 | 3274 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3275 | else |
dd184caf | 3276 | ac_save_c_werror_flag=$ac_c_werror_flag |
3277 | ac_c_werror_flag=yes | |
3278 | ac_cv_prog_cc_g=no | |
3279 | CFLAGS="-g" | |
3280 | cat >conftest.$ac_ext <<_ACEOF | |
d9898ee8 | 3281 | /* confdefs.h. */ |
3282 | _ACEOF | |
3283 | cat confdefs.h >>conftest.$ac_ext | |
3284 | cat >>conftest.$ac_ext <<_ACEOF | |
3285 | /* end confdefs.h. */ | |
3286 | ||
3287 | int | |
3288 | main () | |
3289 | { | |
3290 | ||
3291 | ; | |
3292 | return 0; | |
3293 | } | |
3294 | _ACEOF | |
3295 | rm -f conftest.$ac_objext | |
dd184caf | 3296 | if { (ac_try="$ac_compile" |
3297 | case "(($ac_try" in | |
3298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3299 | *) ac_try_echo=$ac_try;; | |
3300 | esac | |
8d138742 CE |
3301 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3302 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 3303 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 | 3304 | ac_status=$? |
3305 | grep -v '^ *+' conftest.er1 >conftest.err | |
3306 | rm -f conftest.er1 | |
3307 | cat conftest.err >&5 | |
8d138742 | 3308 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 3309 | (exit $ac_status); } && { |
3310 | test -z "$ac_c_werror_flag" || | |
3311 | test ! -s conftest.err | |
3312 | } && test -s conftest.$ac_objext; then | |
3313 | ac_cv_prog_cc_g=yes | |
3314 | else | |
8d138742 | 3315 | $as_echo "$as_me: failed program was:" >&5 |
dd184caf | 3316 | sed 's/^/| /' conftest.$ac_ext >&5 |
3317 | ||
3318 | CFLAGS="" | |
3319 | cat >conftest.$ac_ext <<_ACEOF | |
3320 | /* confdefs.h. */ | |
3321 | _ACEOF | |
3322 | cat confdefs.h >>conftest.$ac_ext | |
3323 | cat >>conftest.$ac_ext <<_ACEOF | |
3324 | /* end confdefs.h. */ | |
3325 | ||
3326 | int | |
3327 | main () | |
3328 | { | |
3329 | ||
3330 | ; | |
3331 | return 0; | |
3332 | } | |
3333 | _ACEOF | |
3334 | rm -f conftest.$ac_objext | |
3335 | if { (ac_try="$ac_compile" | |
3336 | case "(($ac_try" in | |
3337 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3338 | *) ac_try_echo=$ac_try;; | |
3339 | esac | |
8d138742 CE |
3340 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3341 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 3342 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 | 3343 | ac_status=$? |
dd184caf | 3344 | grep -v '^ *+' conftest.er1 >conftest.err |
3345 | rm -f conftest.er1 | |
3346 | cat conftest.err >&5 | |
8d138742 | 3347 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 3348 | (exit $ac_status); } && { |
3349 | test -z "$ac_c_werror_flag" || | |
3350 | test ! -s conftest.err | |
3351 | } && test -s conftest.$ac_objext; then | |
3352 | : | |
3353 | else | |
8d138742 | 3354 | $as_echo "$as_me: failed program was:" >&5 |
dd184caf | 3355 | sed 's/^/| /' conftest.$ac_ext >&5 |
3356 | ||
3357 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3358 | CFLAGS="-g" | |
3359 | cat >conftest.$ac_ext <<_ACEOF | |
3360 | /* confdefs.h. */ | |
3361 | _ACEOF | |
3362 | cat confdefs.h >>conftest.$ac_ext | |
3363 | cat >>conftest.$ac_ext <<_ACEOF | |
3364 | /* end confdefs.h. */ | |
3365 | ||
3366 | int | |
3367 | main () | |
3368 | { | |
3369 | ||
3370 | ; | |
3371 | return 0; | |
3372 | } | |
3373 | _ACEOF | |
3374 | rm -f conftest.$ac_objext | |
3375 | if { (ac_try="$ac_compile" | |
3376 | case "(($ac_try" in | |
3377 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3378 | *) ac_try_echo=$ac_try;; | |
3379 | esac | |
8d138742 CE |
3380 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3381 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 3382 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 | 3383 | ac_status=$? |
dd184caf | 3384 | grep -v '^ *+' conftest.er1 >conftest.err |
3385 | rm -f conftest.er1 | |
3386 | cat conftest.err >&5 | |
8d138742 | 3387 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 3388 | (exit $ac_status); } && { |
3389 | test -z "$ac_c_werror_flag" || | |
3390 | test ! -s conftest.err | |
3391 | } && test -s conftest.$ac_objext; then | |
d9898ee8 | 3392 | ac_cv_prog_cc_g=yes |
3393 | else | |
8d138742 | 3394 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 3395 | sed 's/^/| /' conftest.$ac_ext >&5 |
3396 | ||
dd184caf | 3397 | |
3398 | fi | |
3399 | ||
3400 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3401 | fi | |
3402 | ||
3403 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d9898ee8 | 3404 | fi |
dd184caf | 3405 | |
3406 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3407 | ac_c_werror_flag=$ac_save_c_werror_flag | |
d9898ee8 | 3408 | fi |
8d138742 CE |
3409 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3410 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
d9898ee8 | 3411 | if test "$ac_test_CFLAGS" = set; then |
3412 | CFLAGS=$ac_save_CFLAGS | |
3413 | elif test $ac_cv_prog_cc_g = yes; then | |
3414 | if test "$GCC" = yes; then | |
3415 | CFLAGS="-g -O2" | |
3416 | else | |
3417 | CFLAGS="-g" | |
3418 | fi | |
3419 | else | |
3420 | if test "$GCC" = yes; then | |
3421 | CFLAGS="-O2" | |
3422 | else | |
3423 | CFLAGS= | |
3424 | fi | |
3425 | fi | |
8d138742 CE |
3426 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
3427 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
dd184caf | 3428 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
8d138742 | 3429 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3430 | else |
dd184caf | 3431 | ac_cv_prog_cc_c89=no |
d9898ee8 | 3432 | ac_save_CC=$CC |
3433 | cat >conftest.$ac_ext <<_ACEOF | |
3434 | /* confdefs.h. */ | |
3435 | _ACEOF | |
3436 | cat confdefs.h >>conftest.$ac_ext | |
3437 | cat >>conftest.$ac_ext <<_ACEOF | |
3438 | /* end confdefs.h. */ | |
3439 | #include <stdarg.h> | |
3440 | #include <stdio.h> | |
3441 | #include <sys/types.h> | |
3442 | #include <sys/stat.h> | |
3443 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3444 | struct buf { int x; }; | |
3445 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3446 | static char *e (p, i) | |
3447 | char **p; | |
3448 | int i; | |
3449 | { | |
3450 | return p[i]; | |
3451 | } | |
3452 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3453 | { | |
3454 | char *s; | |
3455 | va_list v; | |
3456 | va_start (v,p); | |
3457 | s = g (p, va_arg (v,int)); | |
3458 | va_end (v); | |
3459 | return s; | |
3460 | } | |
3461 | ||
3462 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3463 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3464 | These don't provoke an error unfortunately, instead are silently treated | |
dd184caf | 3465 | as 'x'. The following induces an error, until -std is added to get |
d9898ee8 | 3466 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3467 | array size at least. It's necessary to write '\x00'==0 to get something | |
dd184caf | 3468 | that's true only with -std. */ |
d9898ee8 | 3469 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3470 | ||
dd184caf | 3471 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3472 | inside strings and character constants. */ | |
3473 | #define FOO(x) 'x' | |
3474 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3475 | ||
d9898ee8 | 3476 | int test (int i, double x); |
3477 | struct s1 {int (*f) (int a);}; | |
3478 | struct s2 {int (*f) (double a);}; | |
3479 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3480 | int argc; | |
3481 | char **argv; | |
3482 | int | |
3483 | main () | |
3484 | { | |
3485 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3486 | ; | |
3487 | return 0; | |
3488 | } | |
3489 | _ACEOF | |
dd184caf | 3490 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3491 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
d9898ee8 | 3492 | do |
3493 | CC="$ac_save_CC $ac_arg" | |
3494 | rm -f conftest.$ac_objext | |
dd184caf | 3495 | if { (ac_try="$ac_compile" |
3496 | case "(($ac_try" in | |
3497 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3498 | *) ac_try_echo=$ac_try;; | |
3499 | esac | |
8d138742 CE |
3500 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3501 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 3502 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 | 3503 | ac_status=$? |
3504 | grep -v '^ *+' conftest.er1 >conftest.err | |
3505 | rm -f conftest.er1 | |
3506 | cat conftest.err >&5 | |
8d138742 | 3507 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 3508 | (exit $ac_status); } && { |
3509 | test -z "$ac_c_werror_flag" || | |
3510 | test ! -s conftest.err | |
3511 | } && test -s conftest.$ac_objext; then | |
3512 | ac_cv_prog_cc_c89=$ac_arg | |
d9898ee8 | 3513 | else |
8d138742 | 3514 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 3515 | sed 's/^/| /' conftest.$ac_ext >&5 |
3516 | ||
dd184caf | 3517 | |
d9898ee8 | 3518 | fi |
dd184caf | 3519 | |
3520 | rm -f core conftest.err conftest.$ac_objext | |
3521 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
d9898ee8 | 3522 | done |
dd184caf | 3523 | rm -f conftest.$ac_ext |
d9898ee8 | 3524 | CC=$ac_save_CC |
3525 | ||
3526 | fi | |
dd184caf | 3527 | # AC_CACHE_VAL |
3528 | case "x$ac_cv_prog_cc_c89" in | |
3529 | x) | |
8d138742 CE |
3530 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
3531 | $as_echo "none needed" >&6; } ;; | |
dd184caf | 3532 | xno) |
8d138742 CE |
3533 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
3534 | $as_echo "unsupported" >&6; } ;; | |
d9898ee8 | 3535 | *) |
dd184caf | 3536 | CC="$CC $ac_cv_prog_cc_c89" |
8d138742 CE |
3537 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
3538 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
d9898ee8 | 3539 | esac |
3540 | ||
d9898ee8 | 3541 | |
d9898ee8 | 3542 | ac_ext=c |
3543 | ac_cpp='$CPP $CPPFLAGS' | |
3544 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3545 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3546 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 3547 | |
8d138742 | 3548 | depcc="$CC" am_compiler_list= |
d9898ee8 | 3549 | |
8d138742 CE |
3550 | { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
3551 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
d9898ee8 | 3552 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
8d138742 | 3553 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3554 | else |
3555 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3556 | # We make a subdir and do the tests there. Otherwise we can end up | |
3557 | # making bogus files that we don't know about and never remove. For | |
3558 | # instance it was reported that on HP-UX the gcc test will end up | |
3559 | # making a dummy file named `D' -- because `-MD' means `put the output | |
3560 | # in D'. | |
3561 | mkdir conftest.dir | |
3562 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3563 | # using a relative directory. | |
3564 | cp "$am_depcomp" conftest.dir | |
3565 | cd conftest.dir | |
3566 | # We will build objects and dependencies in a subdirectory because | |
3567 | # it helps to detect inapplicable dependency modes. For instance | |
3568 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3569 | # side effect of compilation, but ICC will put the dependencies in | |
3570 | # the current directory while Tru64 will put them in the object | |
3571 | # directory. | |
3572 | mkdir sub | |
3573 | ||
3574 | am_cv_CC_dependencies_compiler_type=none | |
3575 | if test "$am_compiler_list" = ""; then | |
3576 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3577 | fi | |
8d138742 CE |
3578 | am__universal=false |
3579 | case " $depcc " in #( | |
3580 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
3581 | esac | |
3582 | ||
d9898ee8 | 3583 | for depmode in $am_compiler_list; do |
3584 | # Setup a source with many dependencies, because some compilers | |
3585 | # like to wrap large dependency lists on column 80 (with \), and | |
3586 | # we should not choose a depcomp mode which is confused by this. | |
3587 | # | |
3588 | # We need to recreate these files for each test, as the compiler may | |
3589 | # overwrite some of them when testing with obscure command lines. | |
3590 | # This happens at least with the AIX C compiler. | |
3591 | : > sub/conftest.c | |
3592 | for i in 1 2 3 4 5 6; do | |
3593 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3594 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3595 | # Solaris 8's {/usr,}/bin/sh. | |
3596 | touch sub/conftst$i.h | |
3597 | done | |
3598 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3599 | ||
8d138742 CE |
3600 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
3601 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3602 | # handle `-M -o', and we need to detect this. Also, some Intel | |
3603 | # versions had trouble with output in subdirs | |
3604 | am__obj=sub/conftest.${OBJEXT-o} | |
3605 | am__minus_obj="-o $am__obj" | |
d9898ee8 | 3606 | case $depmode in |
8d138742 CE |
3607 | gcc) |
3608 | # This depmode causes a compiler race in universal mode. | |
3609 | test "$am__universal" = false || continue | |
3610 | ;; | |
d9898ee8 | 3611 | nosideeffect) |
3612 | # after this tag, mechanisms are not by side-effect, so they'll | |
3613 | # only be used when explicitly requested | |
3614 | if test "x$enable_dependency_tracking" = xyes; then | |
3615 | continue | |
3616 | else | |
3617 | break | |
3618 | fi | |
3619 | ;; | |
8d138742 CE |
3620 | msvisualcpp | msvcmsys) |
3621 | # This compiler won't grok `-c -o', but also, the minuso test has | |
3622 | # not run yet. These depmodes are late enough in the game, and | |
3623 | # so weak that their functioning should not be impacted. | |
3624 | am__obj=conftest.${OBJEXT-o} | |
3625 | am__minus_obj= | |
3626 | ;; | |
d9898ee8 | 3627 | none) break ;; |
3628 | esac | |
d9898ee8 | 3629 | if depmode=$depmode \ |
8d138742 | 3630 | source=sub/conftest.c object=$am__obj \ |
d9898ee8 | 3631 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
8d138742 | 3632 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
d9898ee8 | 3633 | >/dev/null 2>conftest.err && |
dd184caf | 3634 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
d9898ee8 | 3635 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
8d138742 | 3636 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
d9898ee8 | 3637 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
3638 | # icc doesn't choke on unknown options, it will just issue warnings | |
3639 | # or remarks (even with -Werror). So we grep stderr for any message | |
3640 | # that says an option was ignored or not supported. | |
3641 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3642 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3643 | # The diagnosis changed in icc 8.0: | |
3644 | # icc: Command line remark: option '-MP' not supported | |
3645 | if (grep 'ignoring option' conftest.err || | |
3646 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3647 | am_cv_CC_dependencies_compiler_type=$depmode | |
3648 | break | |
3649 | fi | |
3650 | fi | |
3651 | done | |
3652 | ||
3653 | cd .. | |
3654 | rm -rf conftest.dir | |
3655 | else | |
3656 | am_cv_CC_dependencies_compiler_type=none | |
3657 | fi | |
3658 | ||
3659 | fi | |
8d138742 CE |
3660 | { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3661 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
d9898ee8 | 3662 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3663 | ||
dd184caf | 3664 | if |
d9898ee8 | 3665 | test "x$enable_dependency_tracking" != xno \ |
3666 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3667 | am__fastdepCC_TRUE= | |
3668 | am__fastdepCC_FALSE='#' | |
3669 | else | |
3670 | am__fastdepCC_TRUE='#' | |
3671 | am__fastdepCC_FALSE= | |
3672 | fi | |
3673 | ||
3674 | ||
3675 | ||
d9898ee8 | 3676 | ac_ext=c |
3677 | ac_cpp='$CPP $CPPFLAGS' | |
3678 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3679 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3680 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8d138742 CE |
3681 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3682 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
d9898ee8 | 3683 | # On Suns, sometimes $CPP names a directory. |
3684 | if test -n "$CPP" && test -d "$CPP"; then | |
3685 | CPP= | |
3686 | fi | |
3687 | if test -z "$CPP"; then | |
3688 | if test "${ac_cv_prog_CPP+set}" = set; then | |
8d138742 | 3689 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3690 | else |
3691 | # Double quotes because CPP needs to be expanded | |
3692 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3693 | do | |
3694 | ac_preproc_ok=false | |
3695 | for ac_c_preproc_warn_flag in '' yes | |
3696 | do | |
3697 | # Use a header file that comes with gcc, so configuring glibc | |
3698 | # with a fresh cross-compiler works. | |
3699 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3700 | # <limits.h> exists even on freestanding compilers. | |
3701 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3702 | # not just through cpp. "Syntax error" is here to catch this case. | |
3703 | cat >conftest.$ac_ext <<_ACEOF | |
3704 | /* confdefs.h. */ | |
3705 | _ACEOF | |
3706 | cat confdefs.h >>conftest.$ac_ext | |
3707 | cat >>conftest.$ac_ext <<_ACEOF | |
3708 | /* end confdefs.h. */ | |
3709 | #ifdef __STDC__ | |
3710 | # include <limits.h> | |
3711 | #else | |
3712 | # include <assert.h> | |
3713 | #endif | |
3714 | Syntax error | |
3715 | _ACEOF | |
dd184caf | 3716 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3717 | case "(($ac_try" in | |
3718 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3719 | *) ac_try_echo=$ac_try;; | |
3720 | esac | |
8d138742 CE |
3721 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3722 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 3723 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 | 3724 | ac_status=$? |
3725 | grep -v '^ *+' conftest.er1 >conftest.err | |
3726 | rm -f conftest.er1 | |
3727 | cat conftest.err >&5 | |
8d138742 | 3728 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 3729 | (exit $ac_status); } >/dev/null && { |
3730 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3731 | test ! -s conftest.err | |
3732 | }; then | |
d9898ee8 | 3733 | : |
3734 | else | |
8d138742 | 3735 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 3736 | sed 's/^/| /' conftest.$ac_ext >&5 |
3737 | ||
3738 | # Broken: fails on valid input. | |
3739 | continue | |
3740 | fi | |
dd184caf | 3741 | |
d9898ee8 | 3742 | rm -f conftest.err conftest.$ac_ext |
3743 | ||
dd184caf | 3744 | # OK, works on sane cases. Now check whether nonexistent headers |
d9898ee8 | 3745 | # can be detected and how. |
3746 | cat >conftest.$ac_ext <<_ACEOF | |
3747 | /* confdefs.h. */ | |
3748 | _ACEOF | |
3749 | cat confdefs.h >>conftest.$ac_ext | |
3750 | cat >>conftest.$ac_ext <<_ACEOF | |
3751 | /* end confdefs.h. */ | |
3752 | #include <ac_nonexistent.h> | |
3753 | _ACEOF | |
dd184caf | 3754 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3755 | case "(($ac_try" in | |
3756 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3757 | *) ac_try_echo=$ac_try;; | |
3758 | esac | |
8d138742 CE |
3759 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3760 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 3761 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 | 3762 | ac_status=$? |
3763 | grep -v '^ *+' conftest.er1 >conftest.err | |
3764 | rm -f conftest.er1 | |
3765 | cat conftest.err >&5 | |
8d138742 | 3766 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 3767 | (exit $ac_status); } >/dev/null && { |
3768 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3769 | test ! -s conftest.err | |
3770 | }; then | |
d9898ee8 | 3771 | # Broken: success on invalid input. |
3772 | continue | |
3773 | else | |
8d138742 | 3774 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 3775 | sed 's/^/| /' conftest.$ac_ext >&5 |
3776 | ||
3777 | # Passes both tests. | |
3778 | ac_preproc_ok=: | |
3779 | break | |
3780 | fi | |
dd184caf | 3781 | |
d9898ee8 | 3782 | rm -f conftest.err conftest.$ac_ext |
3783 | ||
3784 | done | |
3785 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3786 | rm -f conftest.err conftest.$ac_ext | |
3787 | if $ac_preproc_ok; then | |
3788 | break | |
3789 | fi | |
3790 | ||
3791 | done | |
3792 | ac_cv_prog_CPP=$CPP | |
3793 | ||
3794 | fi | |
3795 | CPP=$ac_cv_prog_CPP | |
3796 | else | |
3797 | ac_cv_prog_CPP=$CPP | |
3798 | fi | |
8d138742 CE |
3799 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 |
3800 | $as_echo "$CPP" >&6; } | |
d9898ee8 | 3801 | ac_preproc_ok=false |
3802 | for ac_c_preproc_warn_flag in '' yes | |
3803 | do | |
3804 | # Use a header file that comes with gcc, so configuring glibc | |
3805 | # with a fresh cross-compiler works. | |
3806 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3807 | # <limits.h> exists even on freestanding compilers. | |
3808 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3809 | # not just through cpp. "Syntax error" is here to catch this case. | |
3810 | cat >conftest.$ac_ext <<_ACEOF | |
3811 | /* confdefs.h. */ | |
3812 | _ACEOF | |
3813 | cat confdefs.h >>conftest.$ac_ext | |
3814 | cat >>conftest.$ac_ext <<_ACEOF | |
3815 | /* end confdefs.h. */ | |
3816 | #ifdef __STDC__ | |
3817 | # include <limits.h> | |
3818 | #else | |
3819 | # include <assert.h> | |
3820 | #endif | |
3821 | Syntax error | |
3822 | _ACEOF | |
dd184caf | 3823 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3824 | case "(($ac_try" in | |
3825 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3826 | *) ac_try_echo=$ac_try;; | |
3827 | esac | |
8d138742 CE |
3828 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3829 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 3830 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 | 3831 | ac_status=$? |
3832 | grep -v '^ *+' conftest.er1 >conftest.err | |
3833 | rm -f conftest.er1 | |
3834 | cat conftest.err >&5 | |
8d138742 | 3835 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 3836 | (exit $ac_status); } >/dev/null && { |
3837 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3838 | test ! -s conftest.err | |
3839 | }; then | |
d9898ee8 | 3840 | : |
3841 | else | |
8d138742 | 3842 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 3843 | sed 's/^/| /' conftest.$ac_ext >&5 |
3844 | ||
3845 | # Broken: fails on valid input. | |
3846 | continue | |
3847 | fi | |
dd184caf | 3848 | |
d9898ee8 | 3849 | rm -f conftest.err conftest.$ac_ext |
3850 | ||
dd184caf | 3851 | # OK, works on sane cases. Now check whether nonexistent headers |
d9898ee8 | 3852 | # can be detected and how. |
3853 | cat >conftest.$ac_ext <<_ACEOF | |
3854 | /* confdefs.h. */ | |
3855 | _ACEOF | |
3856 | cat confdefs.h >>conftest.$ac_ext | |
3857 | cat >>conftest.$ac_ext <<_ACEOF | |
3858 | /* end confdefs.h. */ | |
3859 | #include <ac_nonexistent.h> | |
3860 | _ACEOF | |
dd184caf | 3861 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3862 | case "(($ac_try" in | |
3863 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3864 | *) ac_try_echo=$ac_try;; | |
3865 | esac | |
8d138742 CE |
3866 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3867 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 3868 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 | 3869 | ac_status=$? |
3870 | grep -v '^ *+' conftest.er1 >conftest.err | |
3871 | rm -f conftest.er1 | |
3872 | cat conftest.err >&5 | |
8d138742 | 3873 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 3874 | (exit $ac_status); } >/dev/null && { |
3875 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3876 | test ! -s conftest.err | |
3877 | }; then | |
d9898ee8 | 3878 | # Broken: success on invalid input. |
3879 | continue | |
3880 | else | |
8d138742 | 3881 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 3882 | sed 's/^/| /' conftest.$ac_ext >&5 |
3883 | ||
3884 | # Passes both tests. | |
3885 | ac_preproc_ok=: | |
3886 | break | |
3887 | fi | |
dd184caf | 3888 | |
d9898ee8 | 3889 | rm -f conftest.err conftest.$ac_ext |
3890 | ||
3891 | done | |
3892 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3893 | rm -f conftest.err conftest.$ac_ext | |
3894 | if $ac_preproc_ok; then | |
3895 | : | |
3896 | else | |
8d138742 CE |
3897 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3898 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3899 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
d9898ee8 | 3900 | See \`config.log' for more details." >&5 |
8d138742 | 3901 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
d9898ee8 | 3902 | See \`config.log' for more details." >&2;} |
8d138742 | 3903 | { (exit 1); exit 1; }; }; } |
d9898ee8 | 3904 | fi |
3905 | ||
3906 | ac_ext=c | |
3907 | ac_cpp='$CPP $CPPFLAGS' | |
3908 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3909 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3910 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3911 | ||
3912 | ||
8d138742 CE |
3913 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3914 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
dd184caf | 3915 | if test "${ac_cv_path_GREP+set}" = set; then |
8d138742 | 3916 | $as_echo_n "(cached) " >&6 |
dd184caf | 3917 | else |
8d138742 | 3918 | if test -z "$GREP"; then |
dd184caf | 3919 | ac_path_GREP_found=false |
8d138742 CE |
3920 | # Loop through the user's path and test for each of PROGNAME-LIST |
3921 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
dd184caf | 3922 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
3923 | do | |
3924 | IFS=$as_save_IFS | |
3925 | test -z "$as_dir" && as_dir=. | |
3926 | for ac_prog in grep ggrep; do | |
8d138742 CE |
3927 | for ac_exec_ext in '' $ac_executable_extensions; do |
3928 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3929 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3930 | # Check for GNU ac_path_GREP and select it if it is found. | |
dd184caf | 3931 | # Check for GNU $ac_path_GREP |
3932 | case `"$ac_path_GREP" --version 2>&1` in | |
3933 | *GNU*) | |
3934 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3935 | *) | |
3936 | ac_count=0 | |
8d138742 | 3937 | $as_echo_n 0123456789 >"conftest.in" |
dd184caf | 3938 | while : |
3939 | do | |
3940 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3941 | mv "conftest.tmp" "conftest.in" | |
3942 | cp "conftest.in" "conftest.nl" | |
8d138742 | 3943 | $as_echo 'GREP' >> "conftest.nl" |
dd184caf | 3944 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3945 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3946 | ac_count=`expr $ac_count + 1` | |
3947 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3948 | # Best one so far, save it but keep looking for a better one | |
3949 | ac_cv_path_GREP="$ac_path_GREP" | |
3950 | ac_path_GREP_max=$ac_count | |
3951 | fi | |
3952 | # 10*(2^10) chars as input seems more than enough | |
3953 | test $ac_count -gt 10 && break | |
3954 | done | |
3955 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3956 | esac | |
3957 | ||
8d138742 CE |
3958 | $ac_path_GREP_found && break 3 |
3959 | done | |
dd184caf | 3960 | done |
3961 | done | |
dd184caf | 3962 | IFS=$as_save_IFS |
8d138742 CE |
3963 | if test -z "$ac_cv_path_GREP"; then |
3964 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3965 | $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
dd184caf | 3966 | { (exit 1); exit 1; }; } |
8d138742 | 3967 | fi |
dd184caf | 3968 | else |
3969 | ac_cv_path_GREP=$GREP | |
3970 | fi | |
3971 | ||
dd184caf | 3972 | fi |
8d138742 CE |
3973 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
3974 | $as_echo "$ac_cv_path_GREP" >&6; } | |
dd184caf | 3975 | GREP="$ac_cv_path_GREP" |
3976 | ||
3977 | ||
8d138742 CE |
3978 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
3979 | $as_echo_n "checking for egrep... " >&6; } | |
dd184caf | 3980 | if test "${ac_cv_path_EGREP+set}" = set; then |
8d138742 | 3981 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3982 | else |
dd184caf | 3983 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
3984 | then ac_cv_path_EGREP="$GREP -E" | |
3985 | else | |
8d138742 | 3986 | if test -z "$EGREP"; then |
dd184caf | 3987 | ac_path_EGREP_found=false |
8d138742 CE |
3988 | # Loop through the user's path and test for each of PROGNAME-LIST |
3989 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
dd184caf | 3990 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
3991 | do | |
3992 | IFS=$as_save_IFS | |
3993 | test -z "$as_dir" && as_dir=. | |
3994 | for ac_prog in egrep; do | |
8d138742 CE |
3995 | for ac_exec_ext in '' $ac_executable_extensions; do |
3996 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3997 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3998 | # Check for GNU ac_path_EGREP and select it if it is found. | |
dd184caf | 3999 | # Check for GNU $ac_path_EGREP |
4000 | case `"$ac_path_EGREP" --version 2>&1` in | |
4001 | *GNU*) | |
4002 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4003 | *) | |
4004 | ac_count=0 | |
8d138742 | 4005 | $as_echo_n 0123456789 >"conftest.in" |
dd184caf | 4006 | while : |
4007 | do | |
4008 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4009 | mv "conftest.tmp" "conftest.in" | |
4010 | cp "conftest.in" "conftest.nl" | |
8d138742 | 4011 | $as_echo 'EGREP' >> "conftest.nl" |
dd184caf | 4012 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4013 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4014 | ac_count=`expr $ac_count + 1` | |
4015 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4016 | # Best one so far, save it but keep looking for a better one | |
4017 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4018 | ac_path_EGREP_max=$ac_count | |
d9898ee8 | 4019 | fi |
dd184caf | 4020 | # 10*(2^10) chars as input seems more than enough |
4021 | test $ac_count -gt 10 && break | |
4022 | done | |
4023 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4024 | esac | |
4025 | ||
8d138742 CE |
4026 | $ac_path_EGREP_found && break 3 |
4027 | done | |
dd184caf | 4028 | done |
4029 | done | |
dd184caf | 4030 | IFS=$as_save_IFS |
8d138742 CE |
4031 | if test -z "$ac_cv_path_EGREP"; then |
4032 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
4033 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
dd184caf | 4034 | { (exit 1); exit 1; }; } |
8d138742 | 4035 | fi |
dd184caf | 4036 | else |
4037 | ac_cv_path_EGREP=$EGREP | |
4038 | fi | |
4039 | ||
dd184caf | 4040 | fi |
d9898ee8 | 4041 | fi |
8d138742 CE |
4042 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
4043 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
dd184caf | 4044 | EGREP="$ac_cv_path_EGREP" |
d9898ee8 | 4045 | |
4046 | ||
8d138742 CE |
4047 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4048 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
d9898ee8 | 4049 | if test "${ac_cv_header_stdc+set}" = set; then |
8d138742 | 4050 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4051 | else |
4052 | cat >conftest.$ac_ext <<_ACEOF | |
4053 | /* confdefs.h. */ | |
4054 | _ACEOF | |
4055 | cat confdefs.h >>conftest.$ac_ext | |
4056 | cat >>conftest.$ac_ext <<_ACEOF | |
4057 | /* end confdefs.h. */ | |
4058 | #include <stdlib.h> | |
4059 | #include <stdarg.h> | |
4060 | #include <string.h> | |
4061 | #include <float.h> | |
4062 | ||
4063 | int | |
4064 | main () | |
4065 | { | |
4066 | ||
4067 | ; | |
4068 | return 0; | |
4069 | } | |
4070 | _ACEOF | |
4071 | rm -f conftest.$ac_objext | |
dd184caf | 4072 | if { (ac_try="$ac_compile" |
4073 | case "(($ac_try" in | |
4074 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4075 | *) ac_try_echo=$ac_try;; | |
4076 | esac | |
8d138742 CE |
4077 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4078 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 4079 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 | 4080 | ac_status=$? |
4081 | grep -v '^ *+' conftest.er1 >conftest.err | |
4082 | rm -f conftest.er1 | |
4083 | cat conftest.err >&5 | |
8d138742 | 4084 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 4085 | (exit $ac_status); } && { |
4086 | test -z "$ac_c_werror_flag" || | |
4087 | test ! -s conftest.err | |
4088 | } && test -s conftest.$ac_objext; then | |
d9898ee8 | 4089 | ac_cv_header_stdc=yes |
4090 | else | |
8d138742 | 4091 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 4092 | sed 's/^/| /' conftest.$ac_ext >&5 |
4093 | ||
dd184caf | 4094 | ac_cv_header_stdc=no |
d9898ee8 | 4095 | fi |
dd184caf | 4096 | |
4097 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d9898ee8 | 4098 | |
4099 | if test $ac_cv_header_stdc = yes; then | |
4100 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4101 | cat >conftest.$ac_ext <<_ACEOF | |
4102 | /* confdefs.h. */ | |
4103 | _ACEOF | |
4104 | cat confdefs.h >>conftest.$ac_ext | |
4105 | cat >>conftest.$ac_ext <<_ACEOF | |
4106 | /* end confdefs.h. */ | |
4107 | #include <string.h> | |
4108 | ||
4109 | _ACEOF | |
4110 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4111 | $EGREP "memchr" >/dev/null 2>&1; then | |
4112 | : | |
4113 | else | |
4114 | ac_cv_header_stdc=no | |
4115 | fi | |
4116 | rm -f conftest* | |
4117 | ||
4118 | fi | |
4119 | ||
4120 | if test $ac_cv_header_stdc = yes; then | |
4121 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4122 | cat >conftest.$ac_ext <<_ACEOF | |
4123 | /* confdefs.h. */ | |
4124 | _ACEOF | |
4125 | cat confdefs.h >>conftest.$ac_ext | |
4126 | cat >>conftest.$ac_ext <<_ACEOF | |
4127 | /* end confdefs.h. */ | |
4128 | #include <stdlib.h> | |
4129 | ||
4130 | _ACEOF | |
4131 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4132 | $EGREP "free" >/dev/null 2>&1; then | |
4133 | : | |
4134 | else | |
4135 | ac_cv_header_stdc=no | |
4136 | fi | |
4137 | rm -f conftest* | |
4138 | ||
4139 | fi | |
4140 | ||
4141 | if test $ac_cv_header_stdc = yes; then | |
4142 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4143 | if test "$cross_compiling" = yes; then | |
4144 | : | |
4145 | else | |
4146 | cat >conftest.$ac_ext <<_ACEOF | |
4147 | /* confdefs.h. */ | |
4148 | _ACEOF | |
4149 | cat confdefs.h >>conftest.$ac_ext | |
4150 | cat >>conftest.$ac_ext <<_ACEOF | |
4151 | /* end confdefs.h. */ | |
4152 | #include <ctype.h> | |
dd184caf | 4153 | #include <stdlib.h> |
d9898ee8 | 4154 | #if ((' ' & 0x0FF) == 0x020) |
4155 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4156 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4157 | #else | |
4158 | # define ISLOWER(c) \ | |
4159 | (('a' <= (c) && (c) <= 'i') \ | |
4160 | || ('j' <= (c) && (c) <= 'r') \ | |
4161 | || ('s' <= (c) && (c) <= 'z')) | |
4162 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4163 | #endif | |
4164 | ||
4165 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4166 | int | |
4167 | main () | |
4168 | { | |
4169 | int i; | |
4170 | for (i = 0; i < 256; i++) | |
4171 | if (XOR (islower (i), ISLOWER (i)) | |
4172 | || toupper (i) != TOUPPER (i)) | |
dd184caf | 4173 | return 2; |
4174 | return 0; | |
d9898ee8 | 4175 | } |
4176 | _ACEOF | |
4177 | rm -f conftest$ac_exeext | |
dd184caf | 4178 | if { (ac_try="$ac_link" |
4179 | case "(($ac_try" in | |
4180 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4181 | *) ac_try_echo=$ac_try;; | |
4182 | esac | |
8d138742 CE |
4183 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4184 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 4185 | (eval "$ac_link") 2>&5 |
d9898ee8 | 4186 | ac_status=$? |
8d138742 | 4187 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d9898ee8 | 4188 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
dd184caf | 4189 | { (case "(($ac_try" in |
4190 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4191 | *) ac_try_echo=$ac_try;; | |
4192 | esac | |
8d138742 CE |
4193 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4194 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 4195 | (eval "$ac_try") 2>&5 |
d9898ee8 | 4196 | ac_status=$? |
8d138742 | 4197 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d9898ee8 | 4198 | (exit $ac_status); }; }; then |
4199 | : | |
4200 | else | |
8d138742 CE |
4201 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
4202 | $as_echo "$as_me: failed program was:" >&5 | |
d9898ee8 | 4203 | sed 's/^/| /' conftest.$ac_ext >&5 |
4204 | ||
4205 | ( exit $ac_status ) | |
4206 | ac_cv_header_stdc=no | |
4207 | fi | |
8d138742 | 4208 | rm -rf conftest.dSYM |
dd184caf | 4209 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 4210 | fi |
dd184caf | 4211 | |
4212 | ||
d9898ee8 | 4213 | fi |
4214 | fi | |
8d138742 CE |
4215 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
4216 | $as_echo "$ac_cv_header_stdc" >&6; } | |
d9898ee8 | 4217 | if test $ac_cv_header_stdc = yes; then |
4218 | ||
4219 | cat >>confdefs.h <<\_ACEOF | |
4220 | #define STDC_HEADERS 1 | |
4221 | _ACEOF | |
4222 | ||
4223 | fi | |
4224 | ||
4225 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4226 | ||
4227 | ||
4228 | ||
4229 | ||
4230 | ||
4231 | ||
4232 | ||
4233 | ||
4234 | ||
4235 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4236 | inttypes.h stdint.h unistd.h | |
4237 | do | |
8d138742 CE |
4238 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4239 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4240 | $as_echo_n "checking for $ac_header... " >&6; } | |
dd184caf | 4241 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
8d138742 | 4242 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4243 | else |
4244 | cat >conftest.$ac_ext <<_ACEOF | |
4245 | /* confdefs.h. */ | |
4246 | _ACEOF | |
4247 | cat confdefs.h >>conftest.$ac_ext | |
4248 | cat >>conftest.$ac_ext <<_ACEOF | |
4249 | /* end confdefs.h. */ | |
4250 | $ac_includes_default | |
4251 | ||
4252 | #include <$ac_header> | |
4253 | _ACEOF | |
4254 | rm -f conftest.$ac_objext | |
dd184caf | 4255 | if { (ac_try="$ac_compile" |
4256 | case "(($ac_try" in | |
4257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4258 | *) ac_try_echo=$ac_try;; | |
4259 | esac | |
8d138742 CE |
4260 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4261 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 4262 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 | 4263 | ac_status=$? |
4264 | grep -v '^ *+' conftest.er1 >conftest.err | |
4265 | rm -f conftest.er1 | |
4266 | cat conftest.err >&5 | |
8d138742 | 4267 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 4268 | (exit $ac_status); } && { |
4269 | test -z "$ac_c_werror_flag" || | |
4270 | test ! -s conftest.err | |
4271 | } && test -s conftest.$ac_objext; then | |
d9898ee8 | 4272 | eval "$as_ac_Header=yes" |
4273 | else | |
8d138742 | 4274 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 4275 | sed 's/^/| /' conftest.$ac_ext >&5 |
4276 | ||
dd184caf | 4277 | eval "$as_ac_Header=no" |
d9898ee8 | 4278 | fi |
dd184caf | 4279 | |
4280 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d9898ee8 | 4281 | fi |
8d138742 CE |
4282 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4283 | $as_echo "$as_val"'` | |
4284 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4285 | $as_echo "$ac_res" >&6; } | |
4286 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
4287 | $as_echo "$as_val"'` | |
4288 | if test "x$as_val" = x""yes; then | |
d9898ee8 | 4289 | cat >>confdefs.h <<_ACEOF |
8d138742 | 4290 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
d9898ee8 | 4291 | _ACEOF |
4292 | ||
4293 | fi | |
4294 | ||
4295 | done | |
4296 | ||
4297 | ||
8d138742 CE |
4298 | |
4299 | if test "${ac_cv_header_minix_config_h+set}" = set; then | |
4300 | { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5 | |
4301 | $as_echo_n "checking for minix/config.h... " >&6; } | |
d9898ee8 | 4302 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
8d138742 | 4303 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4304 | fi |
8d138742 CE |
4305 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
4306 | $as_echo "$ac_cv_header_minix_config_h" >&6; } | |
d9898ee8 | 4307 | else |
4308 | # Is the header compilable? | |
8d138742 CE |
4309 | { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5 |
4310 | $as_echo_n "checking minix/config.h usability... " >&6; } | |
d9898ee8 | 4311 | cat >conftest.$ac_ext <<_ACEOF |
4312 | /* confdefs.h. */ | |
4313 | _ACEOF | |
4314 | cat confdefs.h >>conftest.$ac_ext | |
4315 | cat >>conftest.$ac_ext <<_ACEOF | |
4316 | /* end confdefs.h. */ | |
4317 | $ac_includes_default | |
4318 | #include <minix/config.h> | |
4319 | _ACEOF | |
4320 | rm -f conftest.$ac_objext | |
dd184caf | 4321 | if { (ac_try="$ac_compile" |
4322 | case "(($ac_try" in | |
4323 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4324 | *) ac_try_echo=$ac_try;; | |
4325 | esac | |
8d138742 CE |
4326 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4327 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 4328 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 | 4329 | ac_status=$? |
4330 | grep -v '^ *+' conftest.er1 >conftest.err | |
4331 | rm -f conftest.er1 | |
4332 | cat conftest.err >&5 | |
8d138742 | 4333 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 4334 | (exit $ac_status); } && { |
4335 | test -z "$ac_c_werror_flag" || | |
4336 | test ! -s conftest.err | |
4337 | } && test -s conftest.$ac_objext; then | |
d9898ee8 | 4338 | ac_header_compiler=yes |
4339 | else | |
8d138742 | 4340 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 4341 | sed 's/^/| /' conftest.$ac_ext >&5 |
4342 | ||
dd184caf | 4343 | ac_header_compiler=no |
d9898ee8 | 4344 | fi |
dd184caf | 4345 | |
4346 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8d138742 CE |
4347 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4348 | $as_echo "$ac_header_compiler" >&6; } | |
d9898ee8 | 4349 | |
4350 | # Is the header present? | |
8d138742 CE |
4351 | { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5 |
4352 | $as_echo_n "checking minix/config.h presence... " >&6; } | |
d9898ee8 | 4353 | cat >conftest.$ac_ext <<_ACEOF |
4354 | /* confdefs.h. */ | |
4355 | _ACEOF | |
4356 | cat confdefs.h >>conftest.$ac_ext | |
4357 | cat >>conftest.$ac_ext <<_ACEOF | |
4358 | /* end confdefs.h. */ | |
4359 | #include <minix/config.h> | |
4360 | _ACEOF | |
dd184caf | 4361 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4362 | case "(($ac_try" in | |
4363 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4364 | *) ac_try_echo=$ac_try;; | |
4365 | esac | |
8d138742 CE |
4366 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4367 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 4368 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 | 4369 | ac_status=$? |
4370 | grep -v '^ *+' conftest.er1 >conftest.err | |
4371 | rm -f conftest.er1 | |
4372 | cat conftest.err >&5 | |
8d138742 | 4373 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 4374 | (exit $ac_status); } >/dev/null && { |
4375 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4376 | test ! -s conftest.err | |
4377 | }; then | |
d9898ee8 | 4378 | ac_header_preproc=yes |
4379 | else | |
8d138742 | 4380 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 4381 | sed 's/^/| /' conftest.$ac_ext >&5 |
4382 | ||
4383 | ac_header_preproc=no | |
4384 | fi | |
dd184caf | 4385 | |
d9898ee8 | 4386 | rm -f conftest.err conftest.$ac_ext |
8d138742 CE |
4387 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4388 | $as_echo "$ac_header_preproc" >&6; } | |
d9898ee8 | 4389 | |
4390 | # So? What about this header? | |
4391 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4392 | yes:no: ) | |
8d138742 CE |
4393 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
4394 | $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4395 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5 | |
4396 | $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;} | |
d9898ee8 | 4397 | ac_header_preproc=yes |
4398 | ;; | |
4399 | no:yes:* ) | |
8d138742 CE |
4400 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 |
4401 | $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} | |
4402 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 | |
4403 | $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} | |
4404 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5 | |
4405 | $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;} | |
4406 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5 | |
4407 | $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
4408 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 | |
4409 | $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} | |
4410 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5 | |
4411 | $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;} | |
dd184caf | 4412 | ( cat <<\_ASBOX |
d9898ee8 | 4413 | ## -------------------------------------------------- ## |
4414 | ## Report this to courier-users@lists.sourceforge.net ## | |
4415 | ## -------------------------------------------------- ## | |
4416 | _ASBOX | |
dd184caf | 4417 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
d9898ee8 | 4418 | ;; |
4419 | esac | |
8d138742 CE |
4420 | { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5 |
4421 | $as_echo_n "checking for minix/config.h... " >&6; } | |
d9898ee8 | 4422 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
8d138742 | 4423 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4424 | else |
4425 | ac_cv_header_minix_config_h=$ac_header_preproc | |
4426 | fi | |
8d138742 CE |
4427 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
4428 | $as_echo "$ac_cv_header_minix_config_h" >&6; } | |
d9898ee8 | 4429 | |
4430 | fi | |
8d138742 | 4431 | if test "x$ac_cv_header_minix_config_h" = x""yes; then |
d9898ee8 | 4432 | MINIX=yes |
4433 | else | |
4434 | MINIX= | |
4435 | fi | |
4436 | ||
4437 | ||
8d138742 | 4438 | if test "$MINIX" = yes; then |
d9898ee8 | 4439 | |
4440 | cat >>confdefs.h <<\_ACEOF | |
4441 | #define _POSIX_SOURCE 1 | |
4442 | _ACEOF | |
4443 | ||
4444 | ||
4445 | cat >>confdefs.h <<\_ACEOF | |
4446 | #define _POSIX_1_SOURCE 2 | |
4447 | _ACEOF | |
4448 | ||
4449 | ||
4450 | cat >>confdefs.h <<\_ACEOF | |
4451 | #define _MINIX 1 | |
4452 | _ACEOF | |
4453 | ||
8d138742 | 4454 | fi |
d9898ee8 | 4455 | |
dd184caf | 4456 | |
d9898ee8 | 4457 | |
8d138742 CE |
4458 | { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5 |
4459 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
4460 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then | |
4461 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 4462 | else |
8d138742 CE |
4463 | cat >conftest.$ac_ext <<_ACEOF |
4464 | /* confdefs.h. */ | |
4465 | _ACEOF | |
4466 | cat confdefs.h >>conftest.$ac_ext | |
4467 | cat >>conftest.$ac_ext <<_ACEOF | |
4468 | /* end confdefs.h. */ | |
dd184caf | 4469 | |
8d138742 CE |
4470 | # define __EXTENSIONS__ 1 |
4471 | $ac_includes_default | |
4472 | int | |
4473 | main () | |
4474 | { | |
d9898ee8 | 4475 | |
8d138742 CE |
4476 | ; |
4477 | return 0; | |
4478 | } | |
4479 | _ACEOF | |
4480 | rm -f conftest.$ac_objext | |
4481 | if { (ac_try="$ac_compile" | |
4482 | case "(($ac_try" in | |
4483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4484 | *) ac_try_echo=$ac_try;; | |
4485 | esac | |
4486 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4487 | $as_echo "$ac_try_echo") >&5 | |
4488 | (eval "$ac_compile") 2>conftest.er1 | |
4489 | ac_status=$? | |
4490 | grep -v '^ *+' conftest.er1 >conftest.err | |
4491 | rm -f conftest.er1 | |
4492 | cat conftest.err >&5 | |
4493 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4494 | (exit $ac_status); } && { | |
4495 | test -z "$ac_c_werror_flag" || | |
4496 | test ! -s conftest.err | |
4497 | } && test -s conftest.$ac_objext; then | |
4498 | ac_cv_safe_to_define___extensions__=yes | |
d9898ee8 | 4499 | else |
8d138742 CE |
4500 | $as_echo "$as_me: failed program was:" >&5 |
4501 | sed 's/^/| /' conftest.$ac_ext >&5 | |
dd184caf | 4502 | |
8d138742 CE |
4503 | ac_cv_safe_to_define___extensions__=no |
4504 | fi | |
d9898ee8 | 4505 | |
8d138742 CE |
4506 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4507 | fi | |
4508 | { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5 | |
4509 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
4510 | test $ac_cv_safe_to_define___extensions__ = yes && | |
4511 | cat >>confdefs.h <<\_ACEOF | |
4512 | #define __EXTENSIONS__ 1 | |
4513 | _ACEOF | |
d9898ee8 | 4514 | |
8d138742 CE |
4515 | cat >>confdefs.h <<\_ACEOF |
4516 | #define _ALL_SOURCE 1 | |
4517 | _ACEOF | |
d9898ee8 | 4518 | |
8d138742 CE |
4519 | cat >>confdefs.h <<\_ACEOF |
4520 | #define _GNU_SOURCE 1 | |
4521 | _ACEOF | |
4522 | ||
4523 | cat >>confdefs.h <<\_ACEOF | |
4524 | #define _POSIX_PTHREAD_SEMANTICS 1 | |
4525 | _ACEOF | |
4526 | ||
4527 | cat >>confdefs.h <<\_ACEOF | |
4528 | #define _TANDEM_SOURCE 1 | |
4529 | _ACEOF | |
dd184caf | 4530 | |
4531 | ||
8d138742 CE |
4532 | ac_ext=c |
4533 | ac_cpp='$CPP $CPPFLAGS' | |
4534 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4535 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4536 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4537 | if test -n "$ac_tool_prefix"; then | |
4538 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4539 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
4540 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4541 | $as_echo_n "checking for $ac_word... " >&6; } | |
4542 | if test "${ac_cv_prog_CC+set}" = set; then | |
4543 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 4544 | else |
8d138742 CE |
4545 | if test -n "$CC"; then |
4546 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
dd184caf | 4547 | else |
8d138742 CE |
4548 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4549 | for as_dir in $PATH | |
4550 | do | |
4551 | IFS=$as_save_IFS | |
4552 | test -z "$as_dir" && as_dir=. | |
4553 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4554 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4555 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
4556 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4557 | break 2 | |
4558 | fi | |
4559 | done | |
4560 | done | |
4561 | IFS=$as_save_IFS | |
d9898ee8 | 4562 | |
4563 | fi | |
8d138742 CE |
4564 | fi |
4565 | CC=$ac_cv_prog_CC | |
4566 | if test -n "$CC"; then | |
4567 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 | |
4568 | $as_echo "$CC" >&6; } | |
4569 | else | |
4570 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
4571 | $as_echo "no" >&6; } | |
4572 | fi | |
dd184caf | 4573 | |
4574 | ||
8d138742 CE |
4575 | fi |
4576 | if test -z "$ac_cv_prog_CC"; then | |
4577 | ac_ct_CC=$CC | |
4578 | # Extract the first word of "gcc", so it can be a program name with args. | |
4579 | set dummy gcc; ac_word=$2 | |
4580 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4581 | $as_echo_n "checking for $ac_word... " >&6; } | |
4582 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
4583 | $as_echo_n "(cached) " >&6 | |
4584 | else | |
4585 | if test -n "$ac_ct_CC"; then | |
4586 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
d9898ee8 | 4587 | else |
d9898ee8 | 4588 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4589 | for as_dir in $PATH | |
4590 | do | |
4591 | IFS=$as_save_IFS | |
4592 | test -z "$as_dir" && as_dir=. | |
8d138742 CE |
4593 | for ac_exec_ext in '' $ac_executable_extensions; do |
4594 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4595 | ac_cv_prog_ac_ct_CC="gcc" | |
4596 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4597 | break 2 | |
d9898ee8 | 4598 | fi |
d9898ee8 | 4599 | done |
8d138742 CE |
4600 | done |
4601 | IFS=$as_save_IFS | |
d9898ee8 | 4602 | |
4603 | fi | |
8d138742 CE |
4604 | fi |
4605 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4606 | if test -n "$ac_ct_CC"; then | |
4607 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
4608 | $as_echo "$ac_ct_CC" >&6; } | |
d9898ee8 | 4609 | else |
8d138742 CE |
4610 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4611 | $as_echo "no" >&6; } | |
dd184caf | 4612 | fi |
4613 | ||
8d138742 CE |
4614 | if test "x$ac_ct_CC" = x; then |
4615 | CC="" | |
4616 | else | |
4617 | case $cross_compiling:$ac_tool_warned in | |
4618 | yes:) | |
4619 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4620 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4621 | ac_tool_warned=yes ;; | |
4622 | esac | |
4623 | CC=$ac_ct_CC | |
4624 | fi | |
d9898ee8 | 4625 | else |
8d138742 | 4626 | CC="$ac_cv_prog_CC" |
d9898ee8 | 4627 | fi |
8d138742 CE |
4628 | |
4629 | if test -z "$CC"; then | |
4630 | if test -n "$ac_tool_prefix"; then | |
4631 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
4632 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
4633 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4634 | $as_echo_n "checking for $ac_word... " >&6; } | |
4635 | if test "${ac_cv_prog_CC+set}" = set; then | |
4636 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 4637 | else |
8d138742 CE |
4638 | if test -n "$CC"; then |
4639 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
d9898ee8 | 4640 | else |
8d138742 CE |
4641 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4642 | for as_dir in $PATH | |
4643 | do | |
4644 | IFS=$as_save_IFS | |
4645 | test -z "$as_dir" && as_dir=. | |
4646 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4647 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4648 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
4649 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4650 | break 2 | |
4651 | fi | |
4652 | done | |
4653 | done | |
4654 | IFS=$as_save_IFS | |
d9898ee8 | 4655 | |
d9898ee8 | 4656 | fi |
8d138742 CE |
4657 | fi |
4658 | CC=$ac_cv_prog_CC | |
4659 | if test -n "$CC"; then | |
4660 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 | |
4661 | $as_echo "$CC" >&6; } | |
d9898ee8 | 4662 | else |
8d138742 CE |
4663 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4664 | $as_echo "no" >&6; } | |
d9898ee8 | 4665 | fi |
d9898ee8 | 4666 | |
4667 | ||
8d138742 | 4668 | fi |
d9898ee8 | 4669 | fi |
8d138742 CE |
4670 | if test -z "$CC"; then |
4671 | # Extract the first word of "cc", so it can be a program name with args. | |
4672 | set dummy cc; ac_word=$2 | |
4673 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4674 | $as_echo_n "checking for $ac_word... " >&6; } | |
4675 | if test "${ac_cv_prog_CC+set}" = set; then | |
4676 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 4677 | else |
8d138742 CE |
4678 | if test -n "$CC"; then |
4679 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4680 | else | |
4681 | ac_prog_rejected=no | |
4682 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4683 | for as_dir in $PATH | |
4684 | do | |
4685 | IFS=$as_save_IFS | |
4686 | test -z "$as_dir" && as_dir=. | |
4687 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4688 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4689 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
4690 | ac_prog_rejected=yes | |
4691 | continue | |
4692 | fi | |
4693 | ac_cv_prog_CC="cc" | |
4694 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4695 | break 2 | |
4696 | fi | |
4697 | done | |
4698 | done | |
4699 | IFS=$as_save_IFS | |
4700 | ||
4701 | if test $ac_prog_rejected = yes; then | |
4702 | # We found a bogon in the path, so make sure we never use it. | |
4703 | set dummy $ac_cv_prog_CC | |
4704 | shift | |
4705 | if test $# != 0; then | |
4706 | # We chose a different compiler from the bogus one. | |
4707 | # However, it has the same basename, so the bogon will be chosen | |
4708 | # first if we set CC to just the basename; use the full file name. | |
4709 | shift | |
4710 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
d9898ee8 | 4711 | fi |
d9898ee8 | 4712 | fi |
4713 | fi | |
8d138742 CE |
4714 | fi |
4715 | CC=$ac_cv_prog_CC | |
4716 | if test -n "$CC"; then | |
4717 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 | |
4718 | $as_echo "$CC" >&6; } | |
d9898ee8 | 4719 | else |
8d138742 CE |
4720 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4721 | $as_echo "no" >&6; } | |
d9898ee8 | 4722 | fi |
4723 | ||
8d138742 CE |
4724 | |
4725 | fi | |
4726 | if test -z "$CC"; then | |
4727 | if test -n "$ac_tool_prefix"; then | |
4728 | for ac_prog in cl.exe | |
4729 | do | |
4730 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4731 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4732 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4733 | $as_echo_n "checking for $ac_word... " >&6; } | |
4734 | if test "${ac_cv_prog_CC+set}" = set; then | |
4735 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 4736 | else |
8d138742 CE |
4737 | if test -n "$CC"; then |
4738 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4739 | else | |
4740 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4741 | for as_dir in $PATH | |
4742 | do | |
4743 | IFS=$as_save_IFS | |
4744 | test -z "$as_dir" && as_dir=. | |
4745 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4746 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4747 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
4748 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4749 | break 2 | |
4750 | fi | |
4751 | done | |
4752 | done | |
4753 | IFS=$as_save_IFS | |
d9898ee8 | 4754 | |
8d138742 CE |
4755 | fi |
4756 | fi | |
4757 | CC=$ac_cv_prog_CC | |
4758 | if test -n "$CC"; then | |
4759 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 | |
4760 | $as_echo "$CC" >&6; } | |
4761 | else | |
4762 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
4763 | $as_echo "no" >&6; } | |
4764 | fi | |
d9898ee8 | 4765 | |
d9898ee8 | 4766 | |
8d138742 CE |
4767 | test -n "$CC" && break |
4768 | done | |
4769 | fi | |
4770 | if test -z "$CC"; then | |
4771 | ac_ct_CC=$CC | |
4772 | for ac_prog in cl.exe | |
4773 | do | |
4774 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4775 | set dummy $ac_prog; ac_word=$2 | |
4776 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4777 | $as_echo_n "checking for $ac_word... " >&6; } | |
4778 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
4779 | $as_echo_n "(cached) " >&6 | |
4780 | else | |
4781 | if test -n "$ac_ct_CC"; then | |
4782 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4783 | else | |
4784 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4785 | for as_dir in $PATH | |
4786 | do | |
4787 | IFS=$as_save_IFS | |
4788 | test -z "$as_dir" && as_dir=. | |
4789 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4790 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4791 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
4792 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4793 | break 2 | |
4794 | fi | |
4795 | done | |
4796 | done | |
4797 | IFS=$as_save_IFS | |
d9898ee8 | 4798 | |
8d138742 CE |
4799 | fi |
4800 | fi | |
4801 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4802 | if test -n "$ac_ct_CC"; then | |
4803 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
4804 | $as_echo "$ac_ct_CC" >&6; } | |
4805 | else | |
4806 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
4807 | $as_echo "no" >&6; } | |
4808 | fi | |
d9898ee8 | 4809 | |
d9898ee8 | 4810 | |
8d138742 CE |
4811 | test -n "$ac_ct_CC" && break |
4812 | done | |
d9898ee8 | 4813 | |
8d138742 CE |
4814 | if test "x$ac_ct_CC" = x; then |
4815 | CC="" | |
d9898ee8 | 4816 | else |
8d138742 CE |
4817 | case $cross_compiling:$ac_tool_warned in |
4818 | yes:) | |
4819 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4820 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4821 | ac_tool_warned=yes ;; | |
4822 | esac | |
4823 | CC=$ac_ct_CC | |
d9898ee8 | 4824 | fi |
8d138742 | 4825 | fi |
d9898ee8 | 4826 | |
8d138742 | 4827 | fi |
d9898ee8 | 4828 | |
d9898ee8 | 4829 | |
8d138742 CE |
4830 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
4831 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4832 | { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
4833 | See \`config.log' for more details." >&5 | |
4834 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH | |
4835 | See \`config.log' for more details." >&2;} | |
4836 | { (exit 1); exit 1; }; }; } | |
d9898ee8 | 4837 | |
8d138742 CE |
4838 | # Provide some information about the compiler. |
4839 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 | |
4840 | set X $ac_compile | |
4841 | ac_compiler=$2 | |
4842 | { (ac_try="$ac_compiler --version >&5" | |
4843 | case "(($ac_try" in | |
4844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4845 | *) ac_try_echo=$ac_try;; | |
d9898ee8 | 4846 | esac |
8d138742 CE |
4847 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4848 | $as_echo "$ac_try_echo") >&5 | |
4849 | (eval "$ac_compiler --version >&5") 2>&5 | |
d9898ee8 | 4850 | ac_status=$? |
8d138742 CE |
4851 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4852 | (exit $ac_status); } | |
4853 | { (ac_try="$ac_compiler -v >&5" | |
4854 | case "(($ac_try" in | |
4855 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4856 | *) ac_try_echo=$ac_try;; | |
4857 | esac | |
4858 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4859 | $as_echo "$ac_try_echo") >&5 | |
4860 | (eval "$ac_compiler -v >&5") 2>&5 | |
d9898ee8 | 4861 | ac_status=$? |
8d138742 CE |
4862 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4863 | (exit $ac_status); } | |
4864 | { (ac_try="$ac_compiler -V >&5" | |
4865 | case "(($ac_try" in | |
4866 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4867 | *) ac_try_echo=$ac_try;; | |
4868 | esac | |
4869 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4870 | $as_echo "$ac_try_echo") >&5 | |
4871 | (eval "$ac_compiler -V >&5") 2>&5 | |
d9898ee8 | 4872 | ac_status=$? |
8d138742 CE |
4873 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4874 | (exit $ac_status); } | |
d9898ee8 | 4875 | |
8d138742 CE |
4876 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
4877 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
4878 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
4879 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 4880 | else |
8d138742 | 4881 | cat >conftest.$ac_ext <<_ACEOF |
d9898ee8 | 4882 | /* confdefs.h. */ |
4883 | _ACEOF | |
4884 | cat confdefs.h >>conftest.$ac_ext | |
4885 | cat >>conftest.$ac_ext <<_ACEOF | |
4886 | /* end confdefs.h. */ | |
4887 | ||
4888 | int | |
4889 | main () | |
4890 | { | |
8d138742 CE |
4891 | #ifndef __GNUC__ |
4892 | choke me | |
4893 | #endif | |
d9898ee8 | 4894 | |
4895 | ; | |
4896 | return 0; | |
4897 | } | |
4898 | _ACEOF | |
8d138742 CE |
4899 | rm -f conftest.$ac_objext |
4900 | if { (ac_try="$ac_compile" | |
dd184caf | 4901 | case "(($ac_try" in |
4902 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4903 | *) ac_try_echo=$ac_try;; | |
4904 | esac | |
8d138742 CE |
4905 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4906 | $as_echo "$ac_try_echo") >&5 | |
4907 | (eval "$ac_compile") 2>conftest.er1 | |
d9898ee8 | 4908 | ac_status=$? |
4909 | grep -v '^ *+' conftest.er1 >conftest.err | |
4910 | rm -f conftest.er1 | |
4911 | cat conftest.err >&5 | |
8d138742 | 4912 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 4913 | (exit $ac_status); } && { |
4914 | test -z "$ac_c_werror_flag" || | |
4915 | test ! -s conftest.err | |
8d138742 CE |
4916 | } && test -s conftest.$ac_objext; then |
4917 | ac_compiler_gnu=yes | |
d9898ee8 | 4918 | else |
8d138742 | 4919 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 4920 | sed 's/^/| /' conftest.$ac_ext >&5 |
4921 | ||
8d138742 | 4922 | ac_compiler_gnu=no |
d9898ee8 | 4923 | fi |
dd184caf | 4924 | |
8d138742 CE |
4925 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4926 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
d9898ee8 | 4927 | |
4928 | fi | |
8d138742 CE |
4929 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
4930 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4931 | if test $ac_compiler_gnu = yes; then | |
4932 | GCC=yes | |
4933 | else | |
4934 | GCC= | |
d9898ee8 | 4935 | fi |
8d138742 CE |
4936 | ac_test_CFLAGS=${CFLAGS+set} |
4937 | ac_save_CFLAGS=$CFLAGS | |
4938 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
4939 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
4940 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
4941 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 4942 | else |
8d138742 CE |
4943 | ac_save_c_werror_flag=$ac_c_werror_flag |
4944 | ac_c_werror_flag=yes | |
4945 | ac_cv_prog_cc_g=no | |
4946 | CFLAGS="-g" | |
4947 | cat >conftest.$ac_ext <<_ACEOF | |
d9898ee8 | 4948 | /* confdefs.h. */ |
4949 | _ACEOF | |
4950 | cat confdefs.h >>conftest.$ac_ext | |
4951 | cat >>conftest.$ac_ext <<_ACEOF | |
4952 | /* end confdefs.h. */ | |
8d138742 CE |
4953 | |
4954 | int | |
4955 | main () | |
4956 | { | |
4957 | ||
4958 | ; | |
4959 | return 0; | |
4960 | } | |
d9898ee8 | 4961 | _ACEOF |
4962 | rm -f conftest.$ac_objext | |
dd184caf | 4963 | if { (ac_try="$ac_compile" |
4964 | case "(($ac_try" in | |
4965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4966 | *) ac_try_echo=$ac_try;; | |
4967 | esac | |
8d138742 CE |
4968 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4969 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 4970 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 | 4971 | ac_status=$? |
4972 | grep -v '^ *+' conftest.er1 >conftest.err | |
4973 | rm -f conftest.er1 | |
4974 | cat conftest.err >&5 | |
8d138742 | 4975 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 4976 | (exit $ac_status); } && { |
4977 | test -z "$ac_c_werror_flag" || | |
4978 | test ! -s conftest.err | |
4979 | } && test -s conftest.$ac_objext; then | |
8d138742 | 4980 | ac_cv_prog_cc_g=yes |
d9898ee8 | 4981 | else |
8d138742 | 4982 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 4983 | sed 's/^/| /' conftest.$ac_ext >&5 |
4984 | ||
8d138742 CE |
4985 | CFLAGS="" |
4986 | cat >conftest.$ac_ext <<_ACEOF | |
d9898ee8 | 4987 | /* confdefs.h. */ |
4988 | _ACEOF | |
4989 | cat confdefs.h >>conftest.$ac_ext | |
4990 | cat >>conftest.$ac_ext <<_ACEOF | |
4991 | /* end confdefs.h. */ | |
4992 | ||
4993 | int | |
4994 | main () | |
4995 | { | |
d9898ee8 | 4996 | |
4997 | ; | |
4998 | return 0; | |
4999 | } | |
5000 | _ACEOF | |
5001 | rm -f conftest.$ac_objext | |
dd184caf | 5002 | if { (ac_try="$ac_compile" |
5003 | case "(($ac_try" in | |
5004 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5005 | *) ac_try_echo=$ac_try;; | |
5006 | esac | |
8d138742 CE |
5007 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5008 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 5009 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 | 5010 | ac_status=$? |
5011 | grep -v '^ *+' conftest.er1 >conftest.err | |
5012 | rm -f conftest.er1 | |
5013 | cat conftest.err >&5 | |
8d138742 | 5014 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 5015 | (exit $ac_status); } && { |
8d138742 | 5016 | test -z "$ac_c_werror_flag" || |
dd184caf | 5017 | test ! -s conftest.err |
5018 | } && test -s conftest.$ac_objext; then | |
8d138742 | 5019 | : |
d9898ee8 | 5020 | else |
8d138742 | 5021 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 5022 | sed 's/^/| /' conftest.$ac_ext >&5 |
5023 | ||
8d138742 CE |
5024 | ac_c_werror_flag=$ac_save_c_werror_flag |
5025 | CFLAGS="-g" | |
5026 | cat >conftest.$ac_ext <<_ACEOF | |
d9898ee8 | 5027 | /* confdefs.h. */ |
5028 | _ACEOF | |
5029 | cat confdefs.h >>conftest.$ac_ext | |
5030 | cat >>conftest.$ac_ext <<_ACEOF | |
5031 | /* end confdefs.h. */ | |
5032 | ||
5033 | int | |
5034 | main () | |
5035 | { | |
5036 | ||
5037 | ; | |
5038 | return 0; | |
5039 | } | |
5040 | _ACEOF | |
5041 | rm -f conftest.$ac_objext | |
dd184caf | 5042 | if { (ac_try="$ac_compile" |
5043 | case "(($ac_try" in | |
5044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5045 | *) ac_try_echo=$ac_try;; | |
5046 | esac | |
8d138742 CE |
5047 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5048 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 5049 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 | 5050 | ac_status=$? |
5051 | grep -v '^ *+' conftest.er1 >conftest.err | |
5052 | rm -f conftest.er1 | |
5053 | cat conftest.err >&5 | |
8d138742 | 5054 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 5055 | (exit $ac_status); } && { |
8d138742 | 5056 | test -z "$ac_c_werror_flag" || |
dd184caf | 5057 | test ! -s conftest.err |
5058 | } && test -s conftest.$ac_objext; then | |
8d138742 | 5059 | ac_cv_prog_cc_g=yes |
d9898ee8 | 5060 | else |
8d138742 | 5061 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 5062 | sed 's/^/| /' conftest.$ac_ext >&5 |
5063 | ||
8d138742 CE |
5064 | |
5065 | fi | |
5066 | ||
5067 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5068 | fi | |
5069 | ||
5070 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5071 | fi | |
5072 | ||
5073 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5074 | ac_c_werror_flag=$ac_save_c_werror_flag | |
5075 | fi | |
5076 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
5077 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
5078 | if test "$ac_test_CFLAGS" = set; then | |
5079 | CFLAGS=$ac_save_CFLAGS | |
5080 | elif test $ac_cv_prog_cc_g = yes; then | |
5081 | if test "$GCC" = yes; then | |
5082 | CFLAGS="-g -O2" | |
5083 | else | |
5084 | CFLAGS="-g" | |
5085 | fi | |
5086 | else | |
5087 | if test "$GCC" = yes; then | |
5088 | CFLAGS="-O2" | |
5089 | else | |
5090 | CFLAGS= | |
5091 | fi | |
5092 | fi | |
5093 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 | |
5094 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
5095 | if test "${ac_cv_prog_cc_c89+set}" = set; then | |
5096 | $as_echo_n "(cached) " >&6 | |
5097 | else | |
5098 | ac_cv_prog_cc_c89=no | |
5099 | ac_save_CC=$CC | |
5100 | cat >conftest.$ac_ext <<_ACEOF | |
d9898ee8 | 5101 | /* confdefs.h. */ |
5102 | _ACEOF | |
5103 | cat confdefs.h >>conftest.$ac_ext | |
5104 | cat >>conftest.$ac_ext <<_ACEOF | |
5105 | /* end confdefs.h. */ | |
8d138742 CE |
5106 | #include <stdarg.h> |
5107 | #include <stdio.h> | |
5108 | #include <sys/types.h> | |
5109 | #include <sys/stat.h> | |
5110 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
5111 | struct buf { int x; }; | |
5112 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
5113 | static char *e (p, i) | |
5114 | char **p; | |
5115 | int i; | |
5116 | { | |
5117 | return p[i]; | |
5118 | } | |
5119 | static char *f (char * (*g) (char **, int), char **p, ...) | |
5120 | { | |
5121 | char *s; | |
5122 | va_list v; | |
5123 | va_start (v,p); | |
5124 | s = g (p, va_arg (v,int)); | |
5125 | va_end (v); | |
5126 | return s; | |
5127 | } | |
5128 | ||
5129 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
5130 | function prototypes and stuff, but not '\xHH' hex character constants. | |
5131 | These don't provoke an error unfortunately, instead are silently treated | |
5132 | as 'x'. The following induces an error, until -std is added to get | |
5133 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
5134 | array size at least. It's necessary to write '\x00'==0 to get something | |
5135 | that's true only with -std. */ | |
5136 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
5137 | ||
5138 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
5139 | inside strings and character constants. */ | |
5140 | #define FOO(x) 'x' | |
5141 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
dd184caf | 5142 | |
8d138742 CE |
5143 | int test (int i, double x); |
5144 | struct s1 {int (*f) (int a);}; | |
5145 | struct s2 {int (*f) (double a);}; | |
5146 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
5147 | int argc; | |
5148 | char **argv; | |
d9898ee8 | 5149 | int |
5150 | main () | |
5151 | { | |
8d138742 | 5152 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
d9898ee8 | 5153 | ; |
5154 | return 0; | |
5155 | } | |
5156 | _ACEOF | |
8d138742 CE |
5157 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
5158 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
5159 | do | |
5160 | CC="$ac_save_CC $ac_arg" | |
5161 | rm -f conftest.$ac_objext | |
dd184caf | 5162 | if { (ac_try="$ac_compile" |
5163 | case "(($ac_try" in | |
5164 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5165 | *) ac_try_echo=$ac_try;; | |
5166 | esac | |
8d138742 CE |
5167 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5168 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 5169 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 | 5170 | ac_status=$? |
5171 | grep -v '^ *+' conftest.er1 >conftest.err | |
5172 | rm -f conftest.er1 | |
5173 | cat conftest.err >&5 | |
8d138742 | 5174 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 5175 | (exit $ac_status); } && { |
8d138742 | 5176 | test -z "$ac_c_werror_flag" || |
dd184caf | 5177 | test ! -s conftest.err |
5178 | } && test -s conftest.$ac_objext; then | |
8d138742 | 5179 | ac_cv_prog_cc_c89=$ac_arg |
d9898ee8 | 5180 | else |
8d138742 | 5181 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 5182 | sed 's/^/| /' conftest.$ac_ext >&5 |
5183 | ||
dd184caf | 5184 | |
d9898ee8 | 5185 | fi |
dd184caf | 5186 | |
8d138742 CE |
5187 | rm -f core conftest.err conftest.$ac_objext |
5188 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
5189 | done | |
5190 | rm -f conftest.$ac_ext | |
5191 | CC=$ac_save_CC | |
dd184caf | 5192 | |
d9898ee8 | 5193 | fi |
8d138742 CE |
5194 | # AC_CACHE_VAL |
5195 | case "x$ac_cv_prog_cc_c89" in | |
5196 | x) | |
5197 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 | |
5198 | $as_echo "none needed" >&6; } ;; | |
5199 | xno) | |
5200 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 | |
5201 | $as_echo "unsupported" >&6; } ;; | |
5202 | *) | |
5203 | CC="$CC $ac_cv_prog_cc_c89" | |
5204 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | |
5205 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
5206 | esac | |
d9898ee8 | 5207 | |
d9898ee8 | 5208 | |
8d138742 CE |
5209 | ac_ext=c |
5210 | ac_cpp='$CPP $CPPFLAGS' | |
5211 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5212 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5213 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5214 | ||
5215 | depcc="$CC" am_compiler_list= | |
d9898ee8 | 5216 | |
8d138742 CE |
5217 | { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
5218 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
5219 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | |
5220 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 5221 | else |
5222 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
5223 | # We make a subdir and do the tests there. Otherwise we can end up | |
5224 | # making bogus files that we don't know about and never remove. For | |
5225 | # instance it was reported that on HP-UX the gcc test will end up | |
5226 | # making a dummy file named `D' -- because `-MD' means `put the output | |
5227 | # in D'. | |
5228 | mkdir conftest.dir | |
5229 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
5230 | # using a relative directory. | |
5231 | cp "$am_depcomp" conftest.dir | |
5232 | cd conftest.dir | |
5233 | # We will build objects and dependencies in a subdirectory because | |
5234 | # it helps to detect inapplicable dependency modes. For instance | |
5235 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
5236 | # side effect of compilation, but ICC will put the dependencies in | |
5237 | # the current directory while Tru64 will put them in the object | |
5238 | # directory. | |
5239 | mkdir sub | |
5240 | ||
8d138742 | 5241 | am_cv_CC_dependencies_compiler_type=none |
d9898ee8 | 5242 | if test "$am_compiler_list" = ""; then |
5243 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
5244 | fi | |
8d138742 CE |
5245 | am__universal=false |
5246 | case " $depcc " in #( | |
5247 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
5248 | esac | |
5249 | ||
d9898ee8 | 5250 | for depmode in $am_compiler_list; do |
5251 | # Setup a source with many dependencies, because some compilers | |
5252 | # like to wrap large dependency lists on column 80 (with \), and | |
5253 | # we should not choose a depcomp mode which is confused by this. | |
5254 | # | |
5255 | # We need to recreate these files for each test, as the compiler may | |
5256 | # overwrite some of them when testing with obscure command lines. | |
5257 | # This happens at least with the AIX C compiler. | |
5258 | : > sub/conftest.c | |
5259 | for i in 1 2 3 4 5 6; do | |
5260 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
5261 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
5262 | # Solaris 8's {/usr,}/bin/sh. | |
5263 | touch sub/conftst$i.h | |
5264 | done | |
5265 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
5266 | ||
8d138742 CE |
5267 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
5268 | # mode. It turns out that the SunPro C++ compiler does not properly | |
5269 | # handle `-M -o', and we need to detect this. Also, some Intel | |
5270 | # versions had trouble with output in subdirs | |
5271 | am__obj=sub/conftest.${OBJEXT-o} | |
5272 | am__minus_obj="-o $am__obj" | |
d9898ee8 | 5273 | case $depmode in |
8d138742 CE |
5274 | gcc) |
5275 | # This depmode causes a compiler race in universal mode. | |
5276 | test "$am__universal" = false || continue | |
5277 | ;; | |
d9898ee8 | 5278 | nosideeffect) |
5279 | # after this tag, mechanisms are not by side-effect, so they'll | |
5280 | # only be used when explicitly requested | |
5281 | if test "x$enable_dependency_tracking" = xyes; then | |
5282 | continue | |
5283 | else | |
5284 | break | |
5285 | fi | |
5286 | ;; | |
8d138742 CE |
5287 | msvisualcpp | msvcmsys) |
5288 | # This compiler won't grok `-c -o', but also, the minuso test has | |
5289 | # not run yet. These depmodes are late enough in the game, and | |
5290 | # so weak that their functioning should not be impacted. | |
5291 | am__obj=conftest.${OBJEXT-o} | |
5292 | am__minus_obj= | |
5293 | ;; | |
d9898ee8 | 5294 | none) break ;; |
5295 | esac | |
d9898ee8 | 5296 | if depmode=$depmode \ |
8d138742 | 5297 | source=sub/conftest.c object=$am__obj \ |
d9898ee8 | 5298 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
8d138742 | 5299 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
d9898ee8 | 5300 | >/dev/null 2>conftest.err && |
dd184caf | 5301 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
d9898ee8 | 5302 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
8d138742 | 5303 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
d9898ee8 | 5304 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
5305 | # icc doesn't choke on unknown options, it will just issue warnings | |
5306 | # or remarks (even with -Werror). So we grep stderr for any message | |
5307 | # that says an option was ignored or not supported. | |
5308 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
5309 | # icc: Command line warning: ignoring option '-M'; no argument required | |
5310 | # The diagnosis changed in icc 8.0: | |
5311 | # icc: Command line remark: option '-MP' not supported | |
5312 | if (grep 'ignoring option' conftest.err || | |
5313 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
8d138742 | 5314 | am_cv_CC_dependencies_compiler_type=$depmode |
d9898ee8 | 5315 | break |
5316 | fi | |
5317 | fi | |
5318 | done | |
5319 | ||
5320 | cd .. | |
5321 | rm -rf conftest.dir | |
5322 | else | |
8d138742 | 5323 | am_cv_CC_dependencies_compiler_type=none |
d9898ee8 | 5324 | fi |
5325 | ||
5326 | fi | |
8d138742 CE |
5327 | { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
5328 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
5329 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
d9898ee8 | 5330 | |
dd184caf | 5331 | if |
d9898ee8 | 5332 | test "x$enable_dependency_tracking" != xno \ |
8d138742 CE |
5333 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
5334 | am__fastdepCC_TRUE= | |
5335 | am__fastdepCC_FALSE='#' | |
d9898ee8 | 5336 | else |
8d138742 CE |
5337 | am__fastdepCC_TRUE='#' |
5338 | am__fastdepCC_FALSE= | |
d9898ee8 | 5339 | fi |
5340 | ||
5341 | ||
8d138742 CE |
5342 | case `pwd` in |
5343 | *\ * | *\ *) | |
5344 | { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
5345 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
dd184caf | 5346 | esac |
d9898ee8 | 5347 | |
dd184caf | 5348 | |
d9898ee8 | 5349 | |
8d138742 CE |
5350 | macro_version='2.2.6' |
5351 | macro_revision='1.3012' | |
d9898ee8 | 5352 | |
dd184caf | 5353 | |
d9898ee8 | 5354 | |
d9898ee8 | 5355 | |
d9898ee8 | 5356 | |
d9898ee8 | 5357 | |
dd184caf | 5358 | |
d9898ee8 | 5359 | |
d9898ee8 | 5360 | |
dd184caf | 5361 | |
d9898ee8 | 5362 | |
d9898ee8 | 5363 | |
d9898ee8 | 5364 | |
8d138742 | 5365 | ltmain="$ac_aux_dir/ltmain.sh" |
d9898ee8 | 5366 | |
8d138742 CE |
5367 | # Make sure we can run config.sub. |
5368 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
5369 | { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 | |
5370 | $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
5371 | { (exit 1); exit 1; }; } | |
d9898ee8 | 5372 | |
8d138742 CE |
5373 | { $as_echo "$as_me:$LINENO: checking build system type" >&5 |
5374 | $as_echo_n "checking build system type... " >&6; } | |
5375 | if test "${ac_cv_build+set}" = set; then | |
5376 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 5377 | else |
8d138742 CE |
5378 | ac_build_alias=$build_alias |
5379 | test "x$ac_build_alias" = x && | |
5380 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
5381 | test "x$ac_build_alias" = x && | |
5382 | { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
5383 | $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
5384 | { (exit 1); exit 1; }; } | |
5385 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
5386 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 | |
5387 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
5388 | { (exit 1); exit 1; }; } | |
5389 | ||
5390 | fi | |
5391 | { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
5392 | $as_echo "$ac_cv_build" >&6; } | |
5393 | case $ac_cv_build in | |
5394 | *-*-*) ;; | |
5395 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 | |
5396 | $as_echo "$as_me: error: invalid value of canonical build" >&2;} | |
5397 | { (exit 1); exit 1; }; };; | |
5398 | esac | |
5399 | build=$ac_cv_build | |
5400 | ac_save_IFS=$IFS; IFS='-' | |
5401 | set x $ac_cv_build | |
5402 | shift | |
5403 | build_cpu=$1 | |
5404 | build_vendor=$2 | |
5405 | shift; shift | |
5406 | # Remember, the first character of IFS is used to create $*, | |
5407 | # except with old shells: | |
5408 | build_os=$* | |
5409 | IFS=$ac_save_IFS | |
5410 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
5411 | ||
5412 | ||
5413 | { $as_echo "$as_me:$LINENO: checking host system type" >&5 | |
5414 | $as_echo_n "checking host system type... " >&6; } | |
5415 | if test "${ac_cv_host+set}" = set; then | |
5416 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 5417 | else |
8d138742 CE |
5418 | if test "x$host_alias" = x; then |
5419 | ac_cv_host=$ac_cv_build | |
5420 | else | |
5421 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
5422 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 | |
5423 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
5424 | { (exit 1); exit 1; }; } | |
5425 | fi | |
5426 | ||
5427 | fi | |
5428 | { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
5429 | $as_echo "$ac_cv_host" >&6; } | |
5430 | case $ac_cv_host in | |
5431 | *-*-*) ;; | |
5432 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 | |
5433 | $as_echo "$as_me: error: invalid value of canonical host" >&2;} | |
5434 | { (exit 1); exit 1; }; };; | |
5435 | esac | |
5436 | host=$ac_cv_host | |
5437 | ac_save_IFS=$IFS; IFS='-' | |
5438 | set x $ac_cv_host | |
5439 | shift | |
5440 | host_cpu=$1 | |
5441 | host_vendor=$2 | |
5442 | shift; shift | |
5443 | # Remember, the first character of IFS is used to create $*, | |
5444 | # except with old shells: | |
5445 | host_os=$* | |
5446 | IFS=$ac_save_IFS | |
5447 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
5448 | ||
5449 | ||
5450 | { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 | |
5451 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
5452 | if test "${ac_cv_path_SED+set}" = set; then | |
5453 | $as_echo_n "(cached) " >&6 | |
5454 | else | |
5455 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
5456 | for ac_i in 1 2 3 4 5 6 7; do | |
5457 | ac_script="$ac_script$as_nl$ac_script" | |
5458 | done | |
5459 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
5460 | $as_unset ac_script || ac_script= | |
5461 | if test -z "$SED"; then | |
5462 | ac_path_SED_found=false | |
5463 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5464 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d9898ee8 | 5465 | for as_dir in $PATH |
5466 | do | |
5467 | IFS=$as_save_IFS | |
5468 | test -z "$as_dir" && as_dir=. | |
8d138742 CE |
5469 | for ac_prog in sed gsed; do |
5470 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5471 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
5472 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
5473 | # Check for GNU ac_path_SED and select it if it is found. | |
5474 | # Check for GNU $ac_path_SED | |
5475 | case `"$ac_path_SED" --version 2>&1` in | |
5476 | *GNU*) | |
5477 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
5478 | *) | |
5479 | ac_count=0 | |
5480 | $as_echo_n 0123456789 >"conftest.in" | |
5481 | while : | |
5482 | do | |
5483 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5484 | mv "conftest.tmp" "conftest.in" | |
5485 | cp "conftest.in" "conftest.nl" | |
5486 | $as_echo '' >> "conftest.nl" | |
5487 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5488 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5489 | ac_count=`expr $ac_count + 1` | |
5490 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
5491 | # Best one so far, save it but keep looking for a better one | |
5492 | ac_cv_path_SED="$ac_path_SED" | |
5493 | ac_path_SED_max=$ac_count | |
5494 | fi | |
5495 | # 10*(2^10) chars as input seems more than enough | |
5496 | test $ac_count -gt 10 && break | |
5497 | done | |
5498 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5499 | esac | |
5500 | ||
5501 | $ac_path_SED_found && break 3 | |
5502 | done | |
5503 | done | |
d9898ee8 | 5504 | done |
dd184caf | 5505 | IFS=$as_save_IFS |
8d138742 CE |
5506 | if test -z "$ac_cv_path_SED"; then |
5507 | { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 | |
5508 | $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} | |
5509 | { (exit 1); exit 1; }; } | |
5510 | fi | |
d9898ee8 | 5511 | else |
8d138742 | 5512 | ac_cv_path_SED=$SED |
d9898ee8 | 5513 | fi |
5514 | ||
d9898ee8 | 5515 | fi |
8d138742 CE |
5516 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 |
5517 | $as_echo "$ac_cv_path_SED" >&6; } | |
5518 | SED="$ac_cv_path_SED" | |
5519 | rm -f conftest.sed | |
5520 | ||
5521 | test -z "$SED" && SED=sed | |
5522 | Xsed="$SED -e 1s/^X//" | |
5523 | ||
5524 | ||
5525 | ||
5526 | ||
5527 | ||
5528 | ||
5529 | ||
5530 | ||
5531 | ||
5532 | ||
5533 | ||
5534 | { $as_echo "$as_me:$LINENO: checking for fgrep" >&5 | |
5535 | $as_echo_n "checking for fgrep... " >&6; } | |
5536 | if test "${ac_cv_path_FGREP+set}" = set; then | |
5537 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 5538 | else |
8d138742 CE |
5539 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
5540 | then ac_cv_path_FGREP="$GREP -F" | |
5541 | else | |
5542 | if test -z "$FGREP"; then | |
5543 | ac_path_FGREP_found=false | |
5544 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5545 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5546 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
d9898ee8 | 5547 | do |
5548 | IFS=$as_save_IFS | |
5549 | test -z "$as_dir" && as_dir=. | |
8d138742 CE |
5550 | for ac_prog in fgrep; do |
5551 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5552 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
5553 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue | |
5554 | # Check for GNU ac_path_FGREP and select it if it is found. | |
5555 | # Check for GNU $ac_path_FGREP | |
5556 | case `"$ac_path_FGREP" --version 2>&1` in | |
5557 | *GNU*) | |
5558 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
5559 | *) | |
5560 | ac_count=0 | |
5561 | $as_echo_n 0123456789 >"conftest.in" | |
5562 | while : | |
5563 | do | |
5564 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5565 | mv "conftest.tmp" "conftest.in" | |
5566 | cp "conftest.in" "conftest.nl" | |
5567 | $as_echo 'FGREP' >> "conftest.nl" | |
5568 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5569 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5570 | ac_count=`expr $ac_count + 1` | |
5571 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
5572 | # Best one so far, save it but keep looking for a better one | |
5573 | ac_cv_path_FGREP="$ac_path_FGREP" | |
5574 | ac_path_FGREP_max=$ac_count | |
5575 | fi | |
5576 | # 10*(2^10) chars as input seems more than enough | |
5577 | test $ac_count -gt 10 && break | |
5578 | done | |
5579 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5580 | esac | |
5581 | ||
5582 | $ac_path_FGREP_found && break 3 | |
5583 | done | |
5584 | done | |
d9898ee8 | 5585 | done |
dd184caf | 5586 | IFS=$as_save_IFS |
8d138742 CE |
5587 | if test -z "$ac_cv_path_FGREP"; then |
5588 | { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
5589 | $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
5590 | { (exit 1); exit 1; }; } | |
5591 | fi | |
d9898ee8 | 5592 | else |
8d138742 | 5593 | ac_cv_path_FGREP=$FGREP |
d9898ee8 | 5594 | fi |
5595 | ||
8d138742 CE |
5596 | fi |
5597 | fi | |
5598 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 | |
5599 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
5600 | FGREP="$ac_cv_path_FGREP" | |
dd184caf | 5601 | |
d9898ee8 | 5602 | |
8d138742 | 5603 | test -z "$GREP" && GREP=grep |
d9898ee8 | 5604 | |
5605 | ||
d9898ee8 | 5606 | |
d9898ee8 | 5607 | |
d9898ee8 | 5608 | |
dd184caf | 5609 | |
d9898ee8 | 5610 | |
d9898ee8 | 5611 | |
d9898ee8 | 5612 | |
dd184caf | 5613 | |
d9898ee8 | 5614 | |
d9898ee8 | 5615 | |
d9898ee8 | 5616 | |
5617 | ||
5618 | ||
d9898ee8 | 5619 | |
d9898ee8 | 5620 | |
d9898ee8 | 5621 | |
8d138742 CE |
5622 | |
5623 | # Check whether --with-gnu-ld was given. | |
5624 | if test "${with_gnu_ld+set}" = set; then | |
5625 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
5626 | else | |
5627 | with_gnu_ld=no | |
5628 | fi | |
5629 | ||
5630 | ac_prog=ld | |
5631 | if test "$GCC" = yes; then | |
5632 | # Check if gcc -print-prog-name=ld gives a path. | |
5633 | { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | |
5634 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
5635 | case $host in | |
5636 | *-*-mingw*) | |
5637 | # gcc leaves a trailing carriage return which upsets mingw | |
5638 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
5639 | *) | |
5640 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
5641 | esac | |
5642 | case $ac_prog in | |
5643 | # Accept absolute paths. | |
5644 | [\\/]* | ?:[\\/]*) | |
5645 | re_direlt='/[^/][^/]*/\.\./' | |
5646 | # Canonicalize the pathname of ld | |
5647 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
5648 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
5649 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
5650 | done | |
5651 | test -z "$LD" && LD="$ac_prog" | |
5652 | ;; | |
5653 | "") | |
5654 | # If it fails, then pretend we aren't using GCC. | |
5655 | ac_prog=ld | |
5656 | ;; | |
5657 | *) | |
5658 | # If it is relative, then search for the first ld in PATH. | |
5659 | with_gnu_ld=unknown | |
5660 | ;; | |
5661 | esac | |
5662 | elif test "$with_gnu_ld" = yes; then | |
5663 | { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
5664 | $as_echo_n "checking for GNU ld... " >&6; } | |
5665 | else | |
5666 | { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
5667 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
5668 | fi | |
5669 | if test "${lt_cv_path_LD+set}" = set; then | |
5670 | $as_echo_n "(cached) " >&6 | |
5671 | else | |
5672 | if test -z "$LD"; then | |
5673 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5674 | for ac_dir in $PATH; do | |
5675 | IFS="$lt_save_ifs" | |
5676 | test -z "$ac_dir" && ac_dir=. | |
5677 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
5678 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
5679 | # Check to see if the program is GNU ld. I'd rather use --version, | |
5680 | # but apparently some variants of GNU ld only accept -v. | |
5681 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
5682 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
5683 | *GNU* | *'with BFD'*) | |
5684 | test "$with_gnu_ld" != no && break | |
5685 | ;; | |
5686 | *) | |
5687 | test "$with_gnu_ld" != yes && break | |
5688 | ;; | |
5689 | esac | |
5690 | fi | |
5691 | done | |
5692 | IFS="$lt_save_ifs" | |
5693 | else | |
5694 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
5695 | fi | |
5696 | fi | |
5697 | ||
5698 | LD="$lt_cv_path_LD" | |
5699 | if test -n "$LD"; then | |
5700 | { $as_echo "$as_me:$LINENO: result: $LD" >&5 | |
5701 | $as_echo "$LD" >&6; } | |
5702 | else | |
5703 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
5704 | $as_echo "no" >&6; } | |
5705 | fi | |
5706 | test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
5707 | $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
5708 | { (exit 1); exit 1; }; } | |
5709 | { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
5710 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
5711 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
5712 | $as_echo_n "(cached) " >&6 | |
5713 | else | |
5714 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
5715 | case `$LD -v 2>&1 </dev/null` in | |
5716 | *GNU* | *'with BFD'*) | |
5717 | lt_cv_prog_gnu_ld=yes | |
5718 | ;; | |
5719 | *) | |
5720 | lt_cv_prog_gnu_ld=no | |
5721 | ;; | |
5722 | esac | |
5723 | fi | |
5724 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | |
5725 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
5726 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
5727 | ||
5728 | ||
5729 | ||
5730 | ||
5731 | ||
5732 | ||
5733 | ||
5734 | ||
5735 | ||
5736 | { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
5737 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
5738 | if test "${lt_cv_path_NM+set}" = set; then | |
5739 | $as_echo_n "(cached) " >&6 | |
5740 | else | |
5741 | if test -n "$NM"; then | |
5742 | # Let the user override the test. | |
5743 | lt_cv_path_NM="$NM" | |
5744 | else | |
5745 | lt_nm_to_check="${ac_tool_prefix}nm" | |
5746 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
5747 | lt_nm_to_check="$lt_nm_to_check nm" | |
5748 | fi | |
5749 | for lt_tmp_nm in $lt_nm_to_check; do | |
5750 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5751 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
5752 | IFS="$lt_save_ifs" | |
5753 | test -z "$ac_dir" && ac_dir=. | |
5754 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
5755 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
5756 | # Check to see if the nm accepts a BSD-compat flag. | |
5757 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
5758 | # nm: unknown option "B" ignored | |
5759 | # Tru64's nm complains that /dev/null is an invalid object file | |
5760 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
5761 | */dev/null* | *'Invalid file or object type'*) | |
5762 | lt_cv_path_NM="$tmp_nm -B" | |
5763 | break | |
5764 | ;; | |
5765 | *) | |
5766 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
5767 | */dev/null*) | |
5768 | lt_cv_path_NM="$tmp_nm -p" | |
5769 | break | |
5770 | ;; | |
5771 | *) | |
5772 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
5773 | continue # so that we can try to find one that supports BSD flags | |
5774 | ;; | |
5775 | esac | |
5776 | ;; | |
5777 | esac | |
5778 | fi | |
5779 | done | |
5780 | IFS="$lt_save_ifs" | |
5781 | done | |
5782 | : ${lt_cv_path_NM=no} | |
5783 | fi | |
5784 | fi | |
5785 | { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 | |
5786 | $as_echo "$lt_cv_path_NM" >&6; } | |
5787 | if test "$lt_cv_path_NM" != "no"; then | |
5788 | NM="$lt_cv_path_NM" | |
5789 | else | |
5790 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
5791 | if test -n "$ac_tool_prefix"; then | |
5792 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
5793 | do | |
5794 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5795 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5796 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5797 | $as_echo_n "checking for $ac_word... " >&6; } | |
5798 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then | |
5799 | $as_echo_n "(cached) " >&6 | |
5800 | else | |
5801 | if test -n "$DUMPBIN"; then | |
5802 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
5803 | else | |
5804 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5805 | for as_dir in $PATH | |
5806 | do | |
5807 | IFS=$as_save_IFS | |
5808 | test -z "$as_dir" && as_dir=. | |
5809 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5810 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5811 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | |
5812 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5813 | break 2 | |
5814 | fi | |
5815 | done | |
5816 | done | |
5817 | IFS=$as_save_IFS | |
5818 | ||
5819 | fi | |
5820 | fi | |
5821 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
5822 | if test -n "$DUMPBIN"; then | |
5823 | { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5 | |
5824 | $as_echo "$DUMPBIN" >&6; } | |
5825 | else | |
5826 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
5827 | $as_echo "no" >&6; } | |
5828 | fi | |
5829 | ||
5830 | ||
5831 | test -n "$DUMPBIN" && break | |
5832 | done | |
5833 | fi | |
5834 | if test -z "$DUMPBIN"; then | |
5835 | ac_ct_DUMPBIN=$DUMPBIN | |
5836 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
5837 | do | |
5838 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5839 | set dummy $ac_prog; ac_word=$2 | |
5840 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5841 | $as_echo_n "checking for $ac_word... " >&6; } | |
5842 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then | |
5843 | $as_echo_n "(cached) " >&6 | |
5844 | else | |
5845 | if test -n "$ac_ct_DUMPBIN"; then | |
5846 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
5847 | else | |
5848 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5849 | for as_dir in $PATH | |
5850 | do | |
5851 | IFS=$as_save_IFS | |
5852 | test -z "$as_dir" && as_dir=. | |
5853 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5854 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5855 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | |
5856 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5857 | break 2 | |
5858 | fi | |
5859 | done | |
5860 | done | |
5861 | IFS=$as_save_IFS | |
5862 | ||
5863 | fi | |
5864 | fi | |
5865 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
5866 | if test -n "$ac_ct_DUMPBIN"; then | |
5867 | { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 | |
5868 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
5869 | else | |
5870 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
5871 | $as_echo "no" >&6; } | |
5872 | fi | |
5873 | ||
5874 | ||
5875 | test -n "$ac_ct_DUMPBIN" && break | |
5876 | done | |
5877 | ||
5878 | if test "x$ac_ct_DUMPBIN" = x; then | |
5879 | DUMPBIN=":" | |
5880 | else | |
5881 | case $cross_compiling:$ac_tool_warned in | |
5882 | yes:) | |
5883 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5884 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5885 | ac_tool_warned=yes ;; | |
5886 | esac | |
5887 | DUMPBIN=$ac_ct_DUMPBIN | |
5888 | fi | |
5889 | fi | |
5890 | ||
5891 | ||
5892 | if test "$DUMPBIN" != ":"; then | |
5893 | NM="$DUMPBIN" | |
5894 | fi | |
5895 | fi | |
5896 | test -z "$NM" && NM=nm | |
5897 | ||
5898 | ||
5899 | ||
5900 | ||
5901 | ||
5902 | ||
5903 | { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 | |
5904 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
5905 | if test "${lt_cv_nm_interface+set}" = set; then | |
5906 | $as_echo_n "(cached) " >&6 | |
5907 | else | |
5908 | lt_cv_nm_interface="BSD nm" | |
5909 | echo "int some_variable = 0;" > conftest.$ac_ext | |
5910 | (eval echo "\"\$as_me:5910: $ac_compile\"" >&5) | |
5911 | (eval "$ac_compile" 2>conftest.err) | |
5912 | cat conftest.err >&5 | |
5913 | (eval echo "\"\$as_me:5913: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
5914 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
5915 | cat conftest.err >&5 | |
5916 | (eval echo "\"\$as_me:5916: output\"" >&5) | |
5917 | cat conftest.out >&5 | |
5918 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
5919 | lt_cv_nm_interface="MS dumpbin" | |
5920 | fi | |
5921 | rm -f conftest* | |
5922 | fi | |
5923 | { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 | |
5924 | $as_echo "$lt_cv_nm_interface" >&6; } | |
5925 | ||
5926 | { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
5927 | $as_echo_n "checking whether ln -s works... " >&6; } | |
5928 | LN_S=$as_ln_s | |
5929 | if test "$LN_S" = "ln -s"; then | |
5930 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
5931 | $as_echo "yes" >&6; } | |
5932 | else | |
5933 | { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
5934 | $as_echo "no, using $LN_S" >&6; } | |
5935 | fi | |
5936 | ||
5937 | # find the maximum length of command line arguments | |
5938 | { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 | |
5939 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
5940 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then | |
5941 | $as_echo_n "(cached) " >&6 | |
5942 | else | |
5943 | i=0 | |
5944 | teststring="ABCD" | |
5945 | ||
5946 | case $build_os in | |
5947 | msdosdjgpp*) | |
5948 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
5949 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
5950 | # during glob expansion). Even if it were fixed, the result of this | |
5951 | # check would be larger than it should be. | |
5952 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
5953 | ;; | |
5954 | ||
5955 | gnu*) | |
5956 | # Under GNU Hurd, this test is not required because there is | |
d9898ee8 | 5957 | # no limit to the length of command line arguments. |
5958 | # Libtool will interpret -1 as no limit whatsoever | |
5959 | lt_cv_sys_max_cmd_len=-1; | |
5960 | ;; | |
5961 | ||
8d138742 | 5962 | cygwin* | mingw* | cegcc*) |
d9898ee8 | 5963 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
5964 | # about 5 minutes as the teststring grows exponentially. | |
5965 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
5966 | # you end up with a "frozen" computer, even though with patience | |
5967 | # the test eventually succeeds (with a max line length of 256k). | |
5968 | # Instead, let's just punt: use the minimum linelength reported by | |
5969 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
5970 | lt_cv_sys_max_cmd_len=8192; | |
5971 | ;; | |
5972 | ||
5973 | amigaos*) | |
5974 | # On AmigaOS with pdksh, this test takes hours, literally. | |
5975 | # So we just punt and use a minimum line length of 8192. | |
5976 | lt_cv_sys_max_cmd_len=8192; | |
5977 | ;; | |
5978 | ||
5979 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
5980 | # This has been around since 386BSD, at least. Likely further. | |
5981 | if test -x /sbin/sysctl; then | |
5982 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
5983 | elif test -x /usr/sbin/sysctl; then | |
5984 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
5985 | else | |
5986 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
5987 | fi | |
5988 | # And add a safety zone | |
5989 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5990 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5991 | ;; | |
5992 | ||
5993 | interix*) | |
5994 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
5995 | lt_cv_sys_max_cmd_len=196608 | |
5996 | ;; | |
5997 | ||
5998 | osf*) | |
5999 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
6000 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
6001 | # nice to cause kernel panics so lets avoid the loop below. | |
6002 | # First set a reasonable default. | |
6003 | lt_cv_sys_max_cmd_len=16384 | |
6004 | # | |
6005 | if test -x /sbin/sysconfig; then | |
6006 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
6007 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
6008 | esac | |
6009 | fi | |
6010 | ;; | |
6011 | sco3.2v5*) | |
6012 | lt_cv_sys_max_cmd_len=102400 | |
6013 | ;; | |
6014 | sysv5* | sco5v6* | sysv4.2uw2*) | |
6015 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
6016 | if test -n "$kargmax"; then | |
8d138742 | 6017 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
d9898ee8 | 6018 | else |
6019 | lt_cv_sys_max_cmd_len=32768 | |
6020 | fi | |
6021 | ;; | |
6022 | *) | |
ac40fd9e | 6023 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
6024 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
6025 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
6026 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
6027 | else | |
8d138742 CE |
6028 | # Make teststring a little bigger before we do anything with it. |
6029 | # a 1K string should be a reasonable start. | |
6030 | for i in 1 2 3 4 5 6 7 8 ; do | |
6031 | teststring=$teststring$teststring | |
6032 | done | |
ac40fd9e | 6033 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
8d138742 CE |
6034 | # If test is not a shell built-in, we'll probably end up computing a |
6035 | # maximum length that is only half of the actual maximum length, but | |
6036 | # we can't tell. | |
6037 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ | |
6038 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && | |
ac40fd9e | 6039 | test $i != 17 # 1/2 MB should be enough |
6040 | do | |
6041 | i=`expr $i + 1` | |
6042 | teststring=$teststring$teststring | |
6043 | done | |
8d138742 CE |
6044 | # Only check the string length outside the loop. |
6045 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
ac40fd9e | 6046 | teststring= |
8d138742 CE |
6047 | # Add a significant safety factor because C++ compilers can tack on |
6048 | # massive amounts of additional arguments before passing them to the | |
6049 | # linker. It appears as though 1/2 is a usable value. | |
ac40fd9e | 6050 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
6051 | fi | |
d9898ee8 | 6052 | ;; |
6053 | esac | |
6054 | ||
6055 | fi | |
6056 | ||
6057 | if test -n $lt_cv_sys_max_cmd_len ; then | |
8d138742 CE |
6058 | { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
6059 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
d9898ee8 | 6060 | else |
8d138742 CE |
6061 | { $as_echo "$as_me:$LINENO: result: none" >&5 |
6062 | $as_echo "none" >&6; } | |
d9898ee8 | 6063 | fi |
8d138742 | 6064 | max_cmd_len=$lt_cv_sys_max_cmd_len |
d9898ee8 | 6065 | |
6066 | ||
6067 | ||
6068 | ||
ac40fd9e | 6069 | |
d9898ee8 | 6070 | |
8d138742 CE |
6071 | : ${CP="cp -f"} |
6072 | : ${MV="mv -f"} | |
6073 | : ${RM="rm -f"} | |
d9898ee8 | 6074 | |
8d138742 CE |
6075 | { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 |
6076 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
6077 | # Try some XSI features | |
6078 | xsi_shell=no | |
6079 | ( _lt_dummy="a/b/c" | |
6080 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
6081 | = c,a/b,, \ | |
6082 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
6083 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
6084 | && xsi_shell=yes | |
6085 | { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5 | |
6086 | $as_echo "$xsi_shell" >&6; } | |
d9898ee8 | 6087 | |
d9898ee8 | 6088 | |
8d138742 CE |
6089 | { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 |
6090 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
6091 | lt_shell_append=no | |
6092 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
6093 | >/dev/null 2>&1 \ | |
6094 | && lt_shell_append=yes | |
6095 | { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5 | |
6096 | $as_echo "$lt_shell_append" >&6; } | |
d9898ee8 | 6097 | |
d9898ee8 | 6098 | |
8d138742 CE |
6099 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
6100 | lt_unset=unset | |
6101 | else | |
6102 | lt_unset=false | |
6103 | fi | |
d9898ee8 | 6104 | |
d9898ee8 | 6105 | |
d9898ee8 | 6106 | |
d9898ee8 | 6107 | |
d9898ee8 | 6108 | |
8d138742 CE |
6109 | # test EBCDIC or ASCII |
6110 | case `echo X|tr X '\101'` in | |
6111 | A) # ASCII based system | |
6112 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
6113 | lt_SP2NL='tr \040 \012' | |
6114 | lt_NL2SP='tr \015\012 \040\040' | |
6115 | ;; | |
6116 | *) # EBCDIC based system | |
6117 | lt_SP2NL='tr \100 \n' | |
6118 | lt_NL2SP='tr \r\n \100\100' | |
6119 | ;; | |
6120 | esac | |
d9898ee8 | 6121 | |
d9898ee8 | 6122 | |
d9898ee8 | 6123 | |
d9898ee8 | 6124 | |
d9898ee8 | 6125 | |
d9898ee8 | 6126 | |
d9898ee8 | 6127 | |
d9898ee8 | 6128 | |
d9898ee8 | 6129 | |
8d138742 CE |
6130 | { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
6131 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
6132 | if test "${lt_cv_ld_reload_flag+set}" = set; then | |
6133 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 6134 | else |
8d138742 | 6135 | lt_cv_ld_reload_flag='-r' |
d9898ee8 | 6136 | fi |
8d138742 CE |
6137 | { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
6138 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
6139 | reload_flag=$lt_cv_ld_reload_flag | |
6140 | case $reload_flag in | |
6141 | "" | " "*) ;; | |
6142 | *) reload_flag=" $reload_flag" ;; | |
6143 | esac | |
6144 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
d9898ee8 | 6145 | case $host_os in |
8d138742 CE |
6146 | darwin*) |
6147 | if test "$GCC" = yes; then | |
6148 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
6149 | else | |
6150 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6151 | fi | |
6152 | ;; | |
d9898ee8 | 6153 | esac |
6154 | ||
d9898ee8 | 6155 | |
d9898ee8 | 6156 | |
d9898ee8 | 6157 | |
d9898ee8 | 6158 | |
d9898ee8 | 6159 | |
d9898ee8 | 6160 | |
8d138742 | 6161 | |
d9898ee8 | 6162 | |
6163 | if test -n "$ac_tool_prefix"; then | |
8d138742 CE |
6164 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
6165 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
6166 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6167 | $as_echo_n "checking for $ac_word... " >&6; } | |
6168 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then | |
6169 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 6170 | else |
8d138742 CE |
6171 | if test -n "$OBJDUMP"; then |
6172 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
d9898ee8 | 6173 | else |
6174 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6175 | for as_dir in $PATH | |
6176 | do | |
6177 | IFS=$as_save_IFS | |
6178 | test -z "$as_dir" && as_dir=. | |
6179 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 6180 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
8d138742 CE |
6181 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
6182 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
d9898ee8 | 6183 | break 2 |
6184 | fi | |
6185 | done | |
6186 | done | |
dd184caf | 6187 | IFS=$as_save_IFS |
d9898ee8 | 6188 | |
6189 | fi | |
6190 | fi | |
8d138742 CE |
6191 | OBJDUMP=$ac_cv_prog_OBJDUMP |
6192 | if test -n "$OBJDUMP"; then | |
6193 | { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5 | |
6194 | $as_echo "$OBJDUMP" >&6; } | |
d9898ee8 | 6195 | else |
8d138742 CE |
6196 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6197 | $as_echo "no" >&6; } | |
d9898ee8 | 6198 | fi |
6199 | ||
dd184caf | 6200 | |
d9898ee8 | 6201 | fi |
8d138742 CE |
6202 | if test -z "$ac_cv_prog_OBJDUMP"; then |
6203 | ac_ct_OBJDUMP=$OBJDUMP | |
6204 | # Extract the first word of "objdump", so it can be a program name with args. | |
6205 | set dummy objdump; ac_word=$2 | |
6206 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6207 | $as_echo_n "checking for $ac_word... " >&6; } | |
6208 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then | |
6209 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 6210 | else |
8d138742 CE |
6211 | if test -n "$ac_ct_OBJDUMP"; then |
6212 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
d9898ee8 | 6213 | else |
6214 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6215 | for as_dir in $PATH | |
6216 | do | |
6217 | IFS=$as_save_IFS | |
6218 | test -z "$as_dir" && as_dir=. | |
6219 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 6220 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
8d138742 CE |
6221 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
6222 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
d9898ee8 | 6223 | break 2 |
6224 | fi | |
6225 | done | |
6226 | done | |
dd184caf | 6227 | IFS=$as_save_IFS |
d9898ee8 | 6228 | |
d9898ee8 | 6229 | fi |
6230 | fi | |
8d138742 CE |
6231 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
6232 | if test -n "$ac_ct_OBJDUMP"; then | |
6233 | { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 | |
6234 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
d9898ee8 | 6235 | else |
8d138742 CE |
6236 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6237 | $as_echo "no" >&6; } | |
d9898ee8 | 6238 | fi |
6239 | ||
8d138742 CE |
6240 | if test "x$ac_ct_OBJDUMP" = x; then |
6241 | OBJDUMP="false" | |
dd184caf | 6242 | else |
6243 | case $cross_compiling:$ac_tool_warned in | |
6244 | yes:) | |
8d138742 CE |
6245 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
6246 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
dd184caf | 6247 | ac_tool_warned=yes ;; |
6248 | esac | |
8d138742 | 6249 | OBJDUMP=$ac_ct_OBJDUMP |
dd184caf | 6250 | fi |
d9898ee8 | 6251 | else |
8d138742 | 6252 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
d9898ee8 | 6253 | fi |
6254 | ||
8d138742 | 6255 | test -z "$OBJDUMP" && OBJDUMP=objdump |
d9898ee8 | 6256 | |
d9898ee8 | 6257 | |
dd184caf | 6258 | |
d9898ee8 | 6259 | |
8d138742 CE |
6260 | |
6261 | ||
6262 | ||
6263 | ||
6264 | ||
6265 | { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 | |
6266 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
6267 | if test "${lt_cv_deplibs_check_method+set}" = set; then | |
6268 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 6269 | else |
8d138742 CE |
6270 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
6271 | lt_cv_file_magic_test_file= | |
6272 | lt_cv_deplibs_check_method='unknown' | |
6273 | # Need to set the preceding variable on all platforms that support | |
6274 | # interlibrary dependencies. | |
6275 | # 'none' -- dependencies not supported. | |
6276 | # `unknown' -- same as none, but documents that we really don't know. | |
6277 | # 'pass_all' -- all dependencies passed with no checks. | |
6278 | # 'test_compile' -- check by making test program. | |
6279 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
6280 | # which responds to the $file_magic_cmd with a given extended regex. | |
6281 | # If you have `file' or equivalent on your system and you're not sure | |
6282 | # whether `pass_all' will *always* work, you probably want this one. | |
d9898ee8 | 6283 | |
8d138742 CE |
6284 | case $host_os in |
6285 | aix[4-9]*) | |
6286 | lt_cv_deplibs_check_method=pass_all | |
6287 | ;; | |
6288 | ||
6289 | beos*) | |
6290 | lt_cv_deplibs_check_method=pass_all | |
6291 | ;; | |
6292 | ||
6293 | bsdi[45]*) | |
6294 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
6295 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
6296 | lt_cv_file_magic_test_file=/shlib/libc.so | |
6297 | ;; | |
6298 | ||
6299 | cygwin*) | |
6300 | # func_win32_libid is a shell function defined in ltmain.sh | |
6301 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6302 | lt_cv_file_magic_cmd='func_win32_libid' | |
6303 | ;; | |
6304 | ||
6305 | mingw* | pw32*) | |
6306 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
6307 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
6308 | # unless we find 'file', for example because we are cross-compiling. | |
6309 | if ( file / ) >/dev/null 2>&1; then | |
6310 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6311 | lt_cv_file_magic_cmd='func_win32_libid' | |
dd184caf | 6312 | else |
8d138742 CE |
6313 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
6314 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
dd184caf | 6315 | fi |
8d138742 CE |
6316 | ;; |
6317 | ||
6318 | cegcc) | |
6319 | # use the weaker test based on 'objdump'. See mingw*. | |
6320 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
6321 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6322 | ;; | |
6323 | ||
6324 | darwin* | rhapsody*) | |
6325 | lt_cv_deplibs_check_method=pass_all | |
6326 | ;; | |
6327 | ||
6328 | freebsd* | dragonfly*) | |
6329 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6330 | case $host_cpu in | |
6331 | i*86 ) | |
6332 | # Not sure whether the presence of OpenBSD here was a mistake. | |
6333 | # Let's accept both of them until this is cleared up. | |
6334 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
6335 | lt_cv_file_magic_cmd=/usr/bin/file | |
6336 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
6337 | ;; | |
6338 | esac | |
6339 | else | |
6340 | lt_cv_deplibs_check_method=pass_all | |
6341 | fi | |
6342 | ;; | |
6343 | ||
6344 | gnu*) | |
6345 | lt_cv_deplibs_check_method=pass_all | |
6346 | ;; | |
6347 | ||
6348 | hpux10.20* | hpux11*) | |
6349 | lt_cv_file_magic_cmd=/usr/bin/file | |
6350 | case $host_cpu in | |
6351 | ia64*) | |
6352 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
6353 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
6354 | ;; | |
6355 | hppa*64*) | |
6356 | 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]' | |
6357 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
6358 | ;; | |
6359 | *) | |
6360 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
6361 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
6362 | ;; | |
6363 | esac | |
6364 | ;; | |
6365 | ||
6366 | interix[3-9]*) | |
6367 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
6368 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
6369 | ;; | |
6370 | ||
6371 | irix5* | irix6* | nonstopux*) | |
6372 | case $LD in | |
6373 | *-32|*"-32 ") libmagic=32-bit;; | |
6374 | *-n32|*"-n32 ") libmagic=N32;; | |
6375 | *-64|*"-64 ") libmagic=64-bit;; | |
6376 | *) libmagic=never-match;; | |
6377 | esac | |
6378 | lt_cv_deplibs_check_method=pass_all | |
6379 | ;; | |
6380 | ||
6381 | # This must be Linux ELF. | |
6382 | linux* | k*bsd*-gnu) | |
6383 | lt_cv_deplibs_check_method=pass_all | |
6384 | ;; | |
6385 | ||
6386 | netbsd*) | |
6387 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6388 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6389 | else | |
6390 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
6391 | fi | |
6392 | ;; | |
6393 | ||
6394 | newos6*) | |
6395 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
6396 | lt_cv_file_magic_cmd=/usr/bin/file | |
6397 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
6398 | ;; | |
6399 | ||
6400 | *nto* | *qnx*) | |
6401 | lt_cv_deplibs_check_method=pass_all | |
6402 | ;; | |
6403 | ||
6404 | openbsd*) | |
6405 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
6406 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
6407 | else | |
6408 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6409 | fi | |
6410 | ;; | |
6411 | ||
6412 | osf3* | osf4* | osf5*) | |
6413 | lt_cv_deplibs_check_method=pass_all | |
6414 | ;; | |
6415 | ||
6416 | rdos*) | |
6417 | lt_cv_deplibs_check_method=pass_all | |
6418 | ;; | |
6419 | ||
6420 | solaris*) | |
6421 | lt_cv_deplibs_check_method=pass_all | |
6422 | ;; | |
6423 | ||
6424 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
6425 | lt_cv_deplibs_check_method=pass_all | |
6426 | ;; | |
6427 | ||
6428 | sysv4 | sysv4.3*) | |
6429 | case $host_vendor in | |
6430 | motorola) | |
6431 | 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]' | |
6432 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
6433 | ;; | |
6434 | ncr) | |
6435 | lt_cv_deplibs_check_method=pass_all | |
6436 | ;; | |
6437 | sequent) | |
6438 | lt_cv_file_magic_cmd='/bin/file' | |
6439 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
6440 | ;; | |
6441 | sni) | |
6442 | lt_cv_file_magic_cmd='/bin/file' | |
6443 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
6444 | lt_cv_file_magic_test_file=/lib/libc.so | |
6445 | ;; | |
6446 | siemens) | |
6447 | lt_cv_deplibs_check_method=pass_all | |
6448 | ;; | |
6449 | pc) | |
6450 | lt_cv_deplibs_check_method=pass_all | |
6451 | ;; | |
6452 | esac | |
6453 | ;; | |
6454 | ||
6455 | tpf*) | |
6456 | lt_cv_deplibs_check_method=pass_all | |
6457 | ;; | |
6458 | esac | |
6459 | ||
d9898ee8 | 6460 | fi |
8d138742 CE |
6461 | { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
6462 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
6463 | file_magic_cmd=$lt_cv_file_magic_cmd | |
6464 | deplibs_check_method=$lt_cv_deplibs_check_method | |
6465 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
6466 | ||
6467 | ||
6468 | ||
6469 | ||
6470 | ||
6471 | ||
6472 | ||
6473 | ||
6474 | ||
6475 | ||
6476 | ||
d9898ee8 | 6477 | |
6478 | if test -n "$ac_tool_prefix"; then | |
8d138742 CE |
6479 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
6480 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
6481 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6482 | $as_echo_n "checking for $ac_word... " >&6; } | |
6483 | if test "${ac_cv_prog_AR+set}" = set; then | |
6484 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 6485 | else |
8d138742 CE |
6486 | if test -n "$AR"; then |
6487 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
d9898ee8 | 6488 | else |
6489 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6490 | for as_dir in $PATH | |
6491 | do | |
6492 | IFS=$as_save_IFS | |
6493 | test -z "$as_dir" && as_dir=. | |
6494 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 6495 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
8d138742 CE |
6496 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
6497 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
d9898ee8 | 6498 | break 2 |
6499 | fi | |
6500 | done | |
6501 | done | |
dd184caf | 6502 | IFS=$as_save_IFS |
d9898ee8 | 6503 | |
6504 | fi | |
6505 | fi | |
8d138742 CE |
6506 | AR=$ac_cv_prog_AR |
6507 | if test -n "$AR"; then | |
6508 | { $as_echo "$as_me:$LINENO: result: $AR" >&5 | |
6509 | $as_echo "$AR" >&6; } | |
d9898ee8 | 6510 | else |
8d138742 CE |
6511 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6512 | $as_echo "no" >&6; } | |
d9898ee8 | 6513 | fi |
6514 | ||
dd184caf | 6515 | |
d9898ee8 | 6516 | fi |
8d138742 CE |
6517 | if test -z "$ac_cv_prog_AR"; then |
6518 | ac_ct_AR=$AR | |
6519 | # Extract the first word of "ar", so it can be a program name with args. | |
6520 | set dummy ar; ac_word=$2 | |
6521 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6522 | $as_echo_n "checking for $ac_word... " >&6; } | |
6523 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
6524 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 6525 | else |
8d138742 CE |
6526 | if test -n "$ac_ct_AR"; then |
6527 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
d9898ee8 | 6528 | else |
6529 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6530 | for as_dir in $PATH | |
6531 | do | |
6532 | IFS=$as_save_IFS | |
6533 | test -z "$as_dir" && as_dir=. | |
6534 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 6535 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
8d138742 CE |
6536 | ac_cv_prog_ac_ct_AR="ar" |
6537 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
d9898ee8 | 6538 | break 2 |
6539 | fi | |
6540 | done | |
6541 | done | |
dd184caf | 6542 | IFS=$as_save_IFS |
d9898ee8 | 6543 | |
d9898ee8 | 6544 | fi |
6545 | fi | |
8d138742 CE |
6546 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
6547 | if test -n "$ac_ct_AR"; then | |
6548 | { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
6549 | $as_echo "$ac_ct_AR" >&6; } | |
d9898ee8 | 6550 | else |
8d138742 CE |
6551 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6552 | $as_echo "no" >&6; } | |
d9898ee8 | 6553 | fi |
6554 | ||
8d138742 CE |
6555 | if test "x$ac_ct_AR" = x; then |
6556 | AR="false" | |
dd184caf | 6557 | else |
6558 | case $cross_compiling:$ac_tool_warned in | |
6559 | yes:) | |
8d138742 CE |
6560 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
6561 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
dd184caf | 6562 | ac_tool_warned=yes ;; |
6563 | esac | |
8d138742 | 6564 | AR=$ac_ct_AR |
dd184caf | 6565 | fi |
d9898ee8 | 6566 | else |
8d138742 | 6567 | AR="$ac_cv_prog_AR" |
d9898ee8 | 6568 | fi |
6569 | ||
d9898ee8 | 6570 | test -z "$AR" && AR=ar |
6571 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
d9898ee8 | 6572 | |
d9898ee8 | 6573 | |
d9898ee8 | 6574 | |
d9898ee8 | 6575 | |
6576 | ||
d9898ee8 | 6577 | |
d9898ee8 | 6578 | |
d9898ee8 | 6579 | |
8d138742 CE |
6580 | |
6581 | ||
6582 | ||
6583 | if test -n "$ac_tool_prefix"; then | |
6584 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
6585 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
6586 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6587 | $as_echo_n "checking for $ac_word... " >&6; } | |
6588 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
6589 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 6590 | else |
8d138742 CE |
6591 | if test -n "$STRIP"; then |
6592 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6593 | else | |
6594 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6595 | for as_dir in $PATH | |
6596 | do | |
6597 | IFS=$as_save_IFS | |
6598 | test -z "$as_dir" && as_dir=. | |
6599 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6600 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6601 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
6602 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6603 | break 2 | |
6604 | fi | |
6605 | done | |
6606 | done | |
6607 | IFS=$as_save_IFS | |
d9898ee8 | 6608 | |
8d138742 CE |
6609 | fi |
6610 | fi | |
6611 | STRIP=$ac_cv_prog_STRIP | |
6612 | if test -n "$STRIP"; then | |
6613 | { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 | |
6614 | $as_echo "$STRIP" >&6; } | |
d9898ee8 | 6615 | else |
8d138742 CE |
6616 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6617 | $as_echo "no" >&6; } | |
6618 | fi | |
d9898ee8 | 6619 | |
d9898ee8 | 6620 | |
d9898ee8 | 6621 | fi |
8d138742 CE |
6622 | if test -z "$ac_cv_prog_STRIP"; then |
6623 | ac_ct_STRIP=$STRIP | |
6624 | # Extract the first word of "strip", so it can be a program name with args. | |
6625 | set dummy strip; ac_word=$2 | |
6626 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6627 | $as_echo_n "checking for $ac_word... " >&6; } | |
6628 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
6629 | $as_echo_n "(cached) " >&6 | |
6630 | else | |
6631 | if test -n "$ac_ct_STRIP"; then | |
6632 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
6633 | else | |
6634 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6635 | for as_dir in $PATH | |
6636 | do | |
6637 | IFS=$as_save_IFS | |
6638 | test -z "$as_dir" && as_dir=. | |
6639 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6640 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6641 | ac_cv_prog_ac_ct_STRIP="strip" | |
6642 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6643 | break 2 | |
6644 | fi | |
6645 | done | |
6646 | done | |
6647 | IFS=$as_save_IFS | |
d9898ee8 | 6648 | |
8d138742 CE |
6649 | fi |
6650 | fi | |
6651 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
6652 | if test -n "$ac_ct_STRIP"; then | |
6653 | { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
6654 | $as_echo "$ac_ct_STRIP" >&6; } | |
d9898ee8 | 6655 | else |
8d138742 CE |
6656 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6657 | $as_echo "no" >&6; } | |
d9898ee8 | 6658 | fi |
6659 | ||
8d138742 CE |
6660 | if test "x$ac_ct_STRIP" = x; then |
6661 | STRIP=":" | |
d9898ee8 | 6662 | else |
8d138742 CE |
6663 | case $cross_compiling:$ac_tool_warned in |
6664 | yes:) | |
6665 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6666 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6667 | ac_tool_warned=yes ;; | |
6668 | esac | |
6669 | STRIP=$ac_ct_STRIP | |
d9898ee8 | 6670 | fi |
8d138742 CE |
6671 | else |
6672 | STRIP="$ac_cv_prog_STRIP" | |
d9898ee8 | 6673 | fi |
6674 | ||
8d138742 | 6675 | test -z "$STRIP" && STRIP=: |
d9898ee8 | 6676 | |
d9898ee8 | 6677 | |
d9898ee8 | 6678 | |
d9898ee8 | 6679 | |
6680 | ||
8d138742 CE |
6681 | |
6682 | if test -n "$ac_tool_prefix"; then | |
6683 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6684 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
6685 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6686 | $as_echo_n "checking for $ac_word... " >&6; } | |
6687 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
6688 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 6689 | else |
8d138742 CE |
6690 | if test -n "$RANLIB"; then |
6691 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6692 | else | |
6693 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6694 | for as_dir in $PATH | |
6695 | do | |
6696 | IFS=$as_save_IFS | |
6697 | test -z "$as_dir" && as_dir=. | |
6698 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6699 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6700 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
6701 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6702 | break 2 | |
6703 | fi | |
6704 | done | |
6705 | done | |
6706 | IFS=$as_save_IFS | |
6707 | ||
6708 | fi | |
6709 | fi | |
6710 | RANLIB=$ac_cv_prog_RANLIB | |
6711 | if test -n "$RANLIB"; then | |
6712 | { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
6713 | $as_echo "$RANLIB" >&6; } | |
6714 | else | |
6715 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
6716 | $as_echo "no" >&6; } | |
dd184caf | 6717 | fi |
6718 | ||
d9898ee8 | 6719 | |
8d138742 CE |
6720 | fi |
6721 | if test -z "$ac_cv_prog_RANLIB"; then | |
6722 | ac_ct_RANLIB=$RANLIB | |
6723 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6724 | set dummy ranlib; ac_word=$2 | |
6725 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6726 | $as_echo_n "checking for $ac_word... " >&6; } | |
6727 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
6728 | $as_echo_n "(cached) " >&6 | |
6729 | else | |
6730 | if test -n "$ac_ct_RANLIB"; then | |
6731 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6732 | else | |
6733 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6734 | for as_dir in $PATH | |
6735 | do | |
6736 | IFS=$as_save_IFS | |
6737 | test -z "$as_dir" && as_dir=. | |
6738 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6739 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6740 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
6741 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6742 | break 2 | |
6743 | fi | |
6744 | done | |
6745 | done | |
6746 | IFS=$as_save_IFS | |
d9898ee8 | 6747 | |
8d138742 CE |
6748 | fi |
6749 | fi | |
6750 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6751 | if test -n "$ac_ct_RANLIB"; then | |
6752 | { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
6753 | $as_echo "$ac_ct_RANLIB" >&6; } | |
6754 | else | |
6755 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
6756 | $as_echo "no" >&6; } | |
6757 | fi | |
d9898ee8 | 6758 | |
8d138742 CE |
6759 | if test "x$ac_ct_RANLIB" = x; then |
6760 | RANLIB=":" | |
6761 | else | |
6762 | case $cross_compiling:$ac_tool_warned in | |
6763 | yes:) | |
6764 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6765 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6766 | ac_tool_warned=yes ;; | |
6767 | esac | |
6768 | RANLIB=$ac_ct_RANLIB | |
6769 | fi | |
6770 | else | |
6771 | RANLIB="$ac_cv_prog_RANLIB" | |
6772 | fi | |
d9898ee8 | 6773 | |
8d138742 | 6774 | test -z "$RANLIB" && RANLIB=: |
d9898ee8 | 6775 | |
d9898ee8 | 6776 | |
d9898ee8 | 6777 | |
6778 | ||
d9898ee8 | 6779 | |
d9898ee8 | 6780 | |
8d138742 CE |
6781 | # Determine commands to create old-style static archives. |
6782 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
6783 | old_postinstall_cmds='chmod 644 $oldlib' | |
6784 | old_postuninstall_cmds= | |
d9898ee8 | 6785 | |
8d138742 CE |
6786 | if test -n "$RANLIB"; then |
6787 | case $host_os in | |
6788 | openbsd*) | |
6789 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
6790 | ;; | |
6791 | *) | |
6792 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
6793 | ;; | |
6794 | esac | |
6795 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
6796 | fi | |
d9898ee8 | 6797 | |
d9898ee8 | 6798 | |
d9898ee8 | 6799 | |
6800 | ||
6801 | ||
d9898ee8 | 6802 | |
d9898ee8 | 6803 | |
6804 | ||
d9898ee8 | 6805 | |
d9898ee8 | 6806 | |
d9898ee8 | 6807 | |
d9898ee8 | 6808 | |
d9898ee8 | 6809 | |
d9898ee8 | 6810 | |
d9898ee8 | 6811 | |
d9898ee8 | 6812 | |
d9898ee8 | 6813 | |
d9898ee8 | 6814 | |
d9898ee8 | 6815 | |
d9898ee8 | 6816 | |
d9898ee8 | 6817 | |
d9898ee8 | 6818 | |
d9898ee8 | 6819 | |
d9898ee8 | 6820 | |
d9898ee8 | 6821 | |
d9898ee8 | 6822 | |
d9898ee8 | 6823 | |
d9898ee8 | 6824 | |
d9898ee8 | 6825 | |
d9898ee8 | 6826 | |
d9898ee8 | 6827 | |
ac40fd9e | 6828 | |
d9898ee8 | 6829 | |
d9898ee8 | 6830 | |
8d138742 CE |
6831 | # If no C compiler was specified, use CC. |
6832 | LTCC=${LTCC-"$CC"} | |
d9898ee8 | 6833 | |
8d138742 CE |
6834 | # If no C compiler flags were specified, use CFLAGS. |
6835 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
d9898ee8 | 6836 | |
8d138742 CE |
6837 | # Allow CC to be a program name with arguments. |
6838 | compiler=$CC | |
d9898ee8 | 6839 | |
d9898ee8 | 6840 | |
8d138742 CE |
6841 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
6842 | { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 | |
6843 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
6844 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then | |
6845 | $as_echo_n "(cached) " >&6 | |
6846 | else | |
d9898ee8 | 6847 | |
8d138742 CE |
6848 | # These are sane defaults that work on at least a few old systems. |
6849 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
d9898ee8 | 6850 | |
8d138742 CE |
6851 | # Character class describing NM global symbol codes. |
6852 | symcode='[BCDEGRST]' | |
d9898ee8 | 6853 | |
8d138742 CE |
6854 | # Regexp to match symbols that can be accessed directly from C. |
6855 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
d9898ee8 | 6856 | |
8d138742 CE |
6857 | # Define system-specific variables. |
6858 | case $host_os in | |
6859 | aix*) | |
6860 | symcode='[BCDT]' | |
6861 | ;; | |
6862 | cygwin* | mingw* | pw32* | cegcc*) | |
6863 | symcode='[ABCDGISTW]' | |
6864 | ;; | |
6865 | hpux*) | |
6866 | if test "$host_cpu" = ia64; then | |
6867 | symcode='[ABCDEGRST]' | |
6868 | fi | |
6869 | ;; | |
6870 | irix* | nonstopux*) | |
6871 | symcode='[BCDEGRST]' | |
6872 | ;; | |
6873 | osf*) | |
6874 | symcode='[BCDEGQRST]' | |
6875 | ;; | |
6876 | solaris*) | |
6877 | symcode='[BDRT]' | |
6878 | ;; | |
6879 | sco3.2v5*) | |
6880 | symcode='[DT]' | |
6881 | ;; | |
6882 | sysv4.2uw2*) | |
6883 | symcode='[DT]' | |
6884 | ;; | |
6885 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
6886 | symcode='[ABDT]' | |
6887 | ;; | |
6888 | sysv4) | |
6889 | symcode='[DFNSTU]' | |
6890 | ;; | |
6891 | esac | |
d9898ee8 | 6892 | |
8d138742 CE |
6893 | # If we're using GNU nm, then use its standard symbol codes. |
6894 | case `$NM -V 2>&1` in | |
6895 | *GNU* | *'with BFD'*) | |
6896 | symcode='[ABCDGIRSTW]' ;; | |
6897 | esac | |
d9898ee8 | 6898 | |
8d138742 CE |
6899 | # Transform an extracted symbol line into a proper C declaration. |
6900 | # Some systems (esp. on ia64) link data and code symbols differently, | |
6901 | # so use this general approach. | |
6902 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
d9898ee8 | 6903 | |
8d138742 CE |
6904 | # Transform an extracted symbol line into symbol name and symbol address |
6905 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
6906 | 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'" | |
6907 | ||
6908 | # Handle CRLF in mingw tool chain | |
6909 | opt_cr= | |
6910 | case $build_os in | |
6911 | mingw*) | |
6912 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
6913 | ;; | |
d9898ee8 | 6914 | esac |
6915 | ||
8d138742 CE |
6916 | # Try without a prefix underscore, then with it. |
6917 | for ac_symprfx in "" "_"; do | |
d9898ee8 | 6918 | |
8d138742 CE |
6919 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
6920 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
d9898ee8 | 6921 | |
8d138742 CE |
6922 | # Write the raw and C identifiers. |
6923 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6924 | # Fake it for dumpbin and say T for any non-static function | |
6925 | # and D for any global variable. | |
6926 | # Also find C++ and __fastcall symbols from MSVC++, | |
6927 | # which start with @ or ?. | |
6928 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
6929 | " {last_section=section; section=\$ 3};"\ | |
6930 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
6931 | " \$ 0!~/External *\|/{next};"\ | |
6932 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
6933 | " {if(hide[section]) next};"\ | |
6934 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
6935 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
6936 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
6937 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
6938 | " ' prfx=^$ac_symprfx" | |
6939 | else | |
6940 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
6941 | fi | |
d9898ee8 | 6942 | |
8d138742 CE |
6943 | # Check to see that the pipe works correctly. |
6944 | pipe_works=no | |
d9898ee8 | 6945 | |
8d138742 CE |
6946 | rm -f conftest* |
6947 | cat > conftest.$ac_ext <<_LT_EOF | |
6948 | #ifdef __cplusplus | |
6949 | extern "C" { | |
6950 | #endif | |
6951 | char nm_test_var; | |
6952 | void nm_test_func(void); | |
6953 | void nm_test_func(void){} | |
6954 | #ifdef __cplusplus | |
6955 | } | |
6956 | #endif | |
6957 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
6958 | _LT_EOF | |
d9898ee8 | 6959 | |
8d138742 CE |
6960 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6961 | (eval $ac_compile) 2>&5 | |
6962 | ac_status=$? | |
6963 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6964 | (exit $ac_status); }; then | |
6965 | # Now try to grab the symbols. | |
6966 | nlist=conftest.nm | |
6967 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 | |
6968 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | |
6969 | ac_status=$? | |
6970 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6971 | (exit $ac_status); } && test -s "$nlist"; then | |
6972 | # Try sorting and uniquifying the output. | |
6973 | if sort "$nlist" | uniq > "$nlist"T; then | |
6974 | mv -f "$nlist"T "$nlist" | |
6975 | else | |
6976 | rm -f "$nlist"T | |
6977 | fi | |
d9898ee8 | 6978 | |
8d138742 CE |
6979 | # Make sure that we snagged all the symbols we need. |
6980 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
6981 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
6982 | cat <<_LT_EOF > conftest.$ac_ext | |
6983 | #ifdef __cplusplus | |
6984 | extern "C" { | |
6985 | #endif | |
d9898ee8 | 6986 | |
8d138742 CE |
6987 | _LT_EOF |
6988 | # Now generate the symbol file. | |
6989 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
d9898ee8 | 6990 | |
8d138742 CE |
6991 | cat <<_LT_EOF >> conftest.$ac_ext |
6992 | ||
6993 | /* The mapping between symbol names and symbols. */ | |
6994 | const struct { | |
6995 | const char *name; | |
6996 | void *address; | |
6997 | } | |
6998 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
6999 | { | |
7000 | { "@PROGRAM@", (void *) 0 }, | |
7001 | _LT_EOF | |
7002 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
7003 | cat <<\_LT_EOF >> conftest.$ac_ext | |
7004 | {0, (void *) 0} | |
7005 | }; | |
7006 | ||
7007 | /* This works around a problem in FreeBSD linker */ | |
7008 | #ifdef FREEBSD_WORKAROUND | |
7009 | static const void *lt_preloaded_setup() { | |
7010 | return lt__PROGRAM__LTX_preloaded_symbols; | |
7011 | } | |
7012 | #endif | |
7013 | ||
7014 | #ifdef __cplusplus | |
7015 | } | |
7016 | #endif | |
7017 | _LT_EOF | |
7018 | # Now try linking the two files. | |
7019 | mv conftest.$ac_objext conftstm.$ac_objext | |
7020 | lt_save_LIBS="$LIBS" | |
7021 | lt_save_CFLAGS="$CFLAGS" | |
7022 | LIBS="conftstm.$ac_objext" | |
7023 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
7024 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7025 | (eval $ac_link) 2>&5 | |
7026 | ac_status=$? | |
7027 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7028 | (exit $ac_status); } && test -s conftest${ac_exeext}; then | |
7029 | pipe_works=yes | |
7030 | fi | |
7031 | LIBS="$lt_save_LIBS" | |
7032 | CFLAGS="$lt_save_CFLAGS" | |
7033 | else | |
7034 | echo "cannot find nm_test_func in $nlist" >&5 | |
7035 | fi | |
7036 | else | |
7037 | echo "cannot find nm_test_var in $nlist" >&5 | |
7038 | fi | |
7039 | else | |
7040 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
7041 | fi | |
7042 | else | |
7043 | echo "$progname: failed program was:" >&5 | |
7044 | cat conftest.$ac_ext >&5 | |
7045 | fi | |
7046 | rm -rf conftest* conftst* | |
7047 | ||
7048 | # Do not use the global_symbol_pipe unless it works. | |
7049 | if test "$pipe_works" = yes; then | |
7050 | break | |
7051 | else | |
7052 | lt_cv_sys_global_symbol_pipe= | |
d9898ee8 | 7053 | fi |
8d138742 CE |
7054 | done |
7055 | ||
7056 | fi | |
7057 | ||
7058 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
7059 | lt_cv_sys_global_symbol_to_cdecl= | |
7060 | fi | |
7061 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
7062 | { $as_echo "$as_me:$LINENO: result: failed" >&5 | |
7063 | $as_echo "failed" >&6; } | |
d9898ee8 | 7064 | else |
8d138742 CE |
7065 | { $as_echo "$as_me:$LINENO: result: ok" >&5 |
7066 | $as_echo "ok" >&6; } | |
d9898ee8 | 7067 | fi |
7068 | ||
d9898ee8 | 7069 | |
d9898ee8 | 7070 | |
d9898ee8 | 7071 | |
d9898ee8 | 7072 | |
d9898ee8 | 7073 | |
d9898ee8 | 7074 | |
d9898ee8 | 7075 | |
d9898ee8 | 7076 | |
d9898ee8 | 7077 | |
d9898ee8 | 7078 | |
d9898ee8 | 7079 | |
d9898ee8 | 7080 | |
d9898ee8 | 7081 | |
d9898ee8 | 7082 | |
d9898ee8 | 7083 | |
d9898ee8 | 7084 | |
d9898ee8 | 7085 | |
d9898ee8 | 7086 | |
d9898ee8 | 7087 | |
d9898ee8 | 7088 | |
d9898ee8 | 7089 | |
8d138742 CE |
7090 | # Check whether --enable-libtool-lock was given. |
7091 | if test "${enable_libtool_lock+set}" = set; then | |
7092 | enableval=$enable_libtool_lock; | |
7093 | fi | |
d9898ee8 | 7094 | |
8d138742 CE |
7095 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
7096 | ||
7097 | # Some flags need to be propagated to the compiler or linker for good | |
7098 | # libtool support. | |
7099 | case $host in | |
7100 | ia64-*-hpux*) | |
7101 | # Find out which ABI we are using. | |
7102 | echo 'int i;' > conftest.$ac_ext | |
7103 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7104 | (eval $ac_compile) 2>&5 | |
7105 | ac_status=$? | |
7106 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7107 | (exit $ac_status); }; then | |
7108 | case `/usr/bin/file conftest.$ac_objext` in | |
7109 | *ELF-32*) | |
7110 | HPUX_IA64_MODE="32" | |
d9898ee8 | 7111 | ;; |
8d138742 CE |
7112 | *ELF-64*) |
7113 | HPUX_IA64_MODE="64" | |
d9898ee8 | 7114 | ;; |
d9898ee8 | 7115 | esac |
8d138742 CE |
7116 | fi |
7117 | rm -rf conftest* | |
7118 | ;; | |
7119 | *-*-irix6*) | |
7120 | # Find out which ABI we are using. | |
7121 | echo '#line 7121 "configure"' > conftest.$ac_ext | |
7122 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7123 | (eval $ac_compile) 2>&5 | |
7124 | ac_status=$? | |
7125 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7126 | (exit $ac_status); }; then | |
7127 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
7128 | case `/usr/bin/file conftest.$ac_objext` in | |
7129 | *32-bit*) | |
7130 | LD="${LD-ld} -melf32bsmip" | |
7131 | ;; | |
7132 | *N32*) | |
7133 | LD="${LD-ld} -melf32bmipn32" | |
7134 | ;; | |
7135 | *64-bit*) | |
7136 | LD="${LD-ld} -melf64bmip" | |
7137 | ;; | |
7138 | esac | |
7139 | else | |
7140 | case `/usr/bin/file conftest.$ac_objext` in | |
7141 | *32-bit*) | |
7142 | LD="${LD-ld} -32" | |
7143 | ;; | |
7144 | *N32*) | |
7145 | LD="${LD-ld} -n32" | |
7146 | ;; | |
7147 | *64-bit*) | |
7148 | LD="${LD-ld} -64" | |
7149 | ;; | |
7150 | esac | |
d9898ee8 | 7151 | fi |
8d138742 CE |
7152 | fi |
7153 | rm -rf conftest* | |
7154 | ;; | |
d9898ee8 | 7155 | |
8d138742 CE |
7156 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
7157 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
7158 | # Find out which ABI we are using. | |
7159 | echo 'int i;' > conftest.$ac_ext | |
7160 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7161 | (eval $ac_compile) 2>&5 | |
7162 | ac_status=$? | |
7163 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7164 | (exit $ac_status); }; then | |
7165 | case `/usr/bin/file conftest.o` in | |
7166 | *32-bit*) | |
7167 | case $host in | |
7168 | x86_64-*kfreebsd*-gnu) | |
7169 | LD="${LD-ld} -m elf_i386_fbsd" | |
7170 | ;; | |
7171 | x86_64-*linux*) | |
7172 | LD="${LD-ld} -m elf_i386" | |
7173 | ;; | |
7174 | ppc64-*linux*|powerpc64-*linux*) | |
7175 | LD="${LD-ld} -m elf32ppclinux" | |
7176 | ;; | |
7177 | s390x-*linux*) | |
7178 | LD="${LD-ld} -m elf_s390" | |
7179 | ;; | |
7180 | sparc64-*linux*) | |
7181 | LD="${LD-ld} -m elf32_sparc" | |
7182 | ;; | |
d9898ee8 | 7183 | esac |
8d138742 CE |
7184 | ;; |
7185 | *64-bit*) | |
7186 | case $host in | |
7187 | x86_64-*kfreebsd*-gnu) | |
7188 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
7189 | ;; | |
7190 | x86_64-*linux*) | |
7191 | LD="${LD-ld} -m elf_x86_64" | |
7192 | ;; | |
7193 | ppc*-*linux*|powerpc*-*linux*) | |
7194 | LD="${LD-ld} -m elf64ppc" | |
7195 | ;; | |
7196 | s390*-*linux*|s390*-*tpf*) | |
7197 | LD="${LD-ld} -m elf64_s390" | |
7198 | ;; | |
7199 | sparc*-*linux*) | |
7200 | LD="${LD-ld} -m elf64_sparc" | |
7201 | ;; | |
d9898ee8 | 7202 | esac |
8d138742 CE |
7203 | ;; |
7204 | esac | |
7205 | fi | |
7206 | rm -rf conftest* | |
7207 | ;; | |
d9898ee8 | 7208 | |
8d138742 CE |
7209 | *-*-sco3.2v5*) |
7210 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
7211 | SAVE_CFLAGS="$CFLAGS" | |
7212 | CFLAGS="$CFLAGS -belf" | |
7213 | { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 | |
7214 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
7215 | if test "${lt_cv_cc_needs_belf+set}" = set; then | |
7216 | $as_echo_n "(cached) " >&6 | |
7217 | else | |
7218 | ac_ext=c | |
7219 | ac_cpp='$CPP $CPPFLAGS' | |
7220 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7221 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7222 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7223 | ||
7224 | cat >conftest.$ac_ext <<_ACEOF | |
d9898ee8 | 7225 | /* confdefs.h. */ |
7226 | _ACEOF | |
7227 | cat confdefs.h >>conftest.$ac_ext | |
7228 | cat >>conftest.$ac_ext <<_ACEOF | |
7229 | /* end confdefs.h. */ | |
7230 | ||
7231 | int | |
7232 | main () | |
7233 | { | |
7234 | ||
7235 | ; | |
7236 | return 0; | |
7237 | } | |
7238 | _ACEOF | |
7239 | rm -f conftest.$ac_objext conftest$ac_exeext | |
dd184caf | 7240 | if { (ac_try="$ac_link" |
7241 | case "(($ac_try" in | |
7242 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7243 | *) ac_try_echo=$ac_try;; | |
7244 | esac | |
8d138742 CE |
7245 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7246 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 7247 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 | 7248 | ac_status=$? |
7249 | grep -v '^ *+' conftest.er1 >conftest.err | |
7250 | rm -f conftest.er1 | |
7251 | cat conftest.err >&5 | |
8d138742 | 7252 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 7253 | (exit $ac_status); } && { |
7254 | test -z "$ac_c_werror_flag" || | |
7255 | test ! -s conftest.err | |
8d138742 CE |
7256 | } && test -s conftest$ac_exeext && { |
7257 | test "$cross_compiling" = yes || | |
7258 | $as_test_x conftest$ac_exeext | |
7259 | }; then | |
7260 | lt_cv_cc_needs_belf=yes | |
d9898ee8 | 7261 | else |
8d138742 | 7262 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 7263 | sed 's/^/| /' conftest.$ac_ext >&5 |
7264 | ||
8d138742 | 7265 | lt_cv_cc_needs_belf=no |
d9898ee8 | 7266 | fi |
dd184caf | 7267 | |
8d138742 | 7268 | rm -rf conftest.dSYM |
dd184caf | 7269 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 | 7270 | conftest$ac_exeext conftest.$ac_ext |
8d138742 CE |
7271 | ac_ext=c |
7272 | ac_cpp='$CPP $CPPFLAGS' | |
7273 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7274 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7275 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 7276 | |
8d138742 CE |
7277 | fi |
7278 | { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 | |
7279 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
7280 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
7281 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
7282 | CFLAGS="$SAVE_CFLAGS" | |
7283 | fi | |
7284 | ;; | |
7285 | sparc*-*solaris*) | |
7286 | # Find out which ABI we are using. | |
7287 | echo 'int i;' > conftest.$ac_ext | |
7288 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7289 | (eval $ac_compile) 2>&5 | |
7290 | ac_status=$? | |
7291 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7292 | (exit $ac_status); }; then | |
7293 | case `/usr/bin/file conftest.o` in | |
7294 | *64-bit*) | |
7295 | case $lt_cv_prog_gnu_ld in | |
7296 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
7297 | *) | |
7298 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
7299 | LD="${LD-ld} -64" | |
7300 | fi | |
7301 | ;; | |
7302 | esac | |
7303 | ;; | |
7304 | esac | |
7305 | fi | |
7306 | rm -rf conftest* | |
7307 | ;; | |
7308 | esac | |
d9898ee8 | 7309 | |
8d138742 | 7310 | need_locks="$enable_libtool_lock" |
d9898ee8 | 7311 | |
d9898ee8 | 7312 | |
8d138742 CE |
7313 | case $host_os in |
7314 | rhapsody* | darwin*) | |
7315 | if test -n "$ac_tool_prefix"; then | |
7316 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
7317 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
7318 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7319 | $as_echo_n "checking for $ac_word... " >&6; } | |
7320 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then | |
7321 | $as_echo_n "(cached) " >&6 | |
7322 | else | |
7323 | if test -n "$DSYMUTIL"; then | |
7324 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
7325 | else | |
7326 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7327 | for as_dir in $PATH | |
7328 | do | |
7329 | IFS=$as_save_IFS | |
7330 | test -z "$as_dir" && as_dir=. | |
7331 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7332 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7333 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
7334 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7335 | break 2 | |
7336 | fi | |
7337 | done | |
7338 | done | |
7339 | IFS=$as_save_IFS | |
7340 | ||
7341 | fi | |
ac40fd9e | 7342 | fi |
8d138742 CE |
7343 | DSYMUTIL=$ac_cv_prog_DSYMUTIL |
7344 | if test -n "$DSYMUTIL"; then | |
7345 | { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 | |
7346 | $as_echo "$DSYMUTIL" >&6; } | |
d9898ee8 | 7347 | else |
8d138742 CE |
7348 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
7349 | $as_echo "no" >&6; } | |
7350 | fi | |
d9898ee8 | 7351 | |
dd184caf | 7352 | |
d9898ee8 | 7353 | fi |
8d138742 CE |
7354 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
7355 | ac_ct_DSYMUTIL=$DSYMUTIL | |
7356 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
7357 | set dummy dsymutil; ac_word=$2 | |
7358 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7359 | $as_echo_n "checking for $ac_word... " >&6; } | |
7360 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then | |
7361 | $as_echo_n "(cached) " >&6 | |
7362 | else | |
7363 | if test -n "$ac_ct_DSYMUTIL"; then | |
7364 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
7365 | else | |
7366 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7367 | for as_dir in $PATH | |
7368 | do | |
7369 | IFS=$as_save_IFS | |
7370 | test -z "$as_dir" && as_dir=. | |
7371 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7372 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7373 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
7374 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7375 | break 2 | |
7376 | fi | |
7377 | done | |
7378 | done | |
7379 | IFS=$as_save_IFS | |
dd184caf | 7380 | |
8d138742 CE |
7381 | fi |
7382 | fi | |
7383 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
7384 | if test -n "$ac_ct_DSYMUTIL"; then | |
7385 | { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 | |
7386 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
7387 | else | |
7388 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
7389 | $as_echo "no" >&6; } | |
7390 | fi | |
d9898ee8 | 7391 | |
8d138742 CE |
7392 | if test "x$ac_ct_DSYMUTIL" = x; then |
7393 | DSYMUTIL=":" | |
7394 | else | |
7395 | case $cross_compiling:$ac_tool_warned in | |
7396 | yes:) | |
7397 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7398 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7399 | ac_tool_warned=yes ;; | |
7400 | esac | |
7401 | DSYMUTIL=$ac_ct_DSYMUTIL | |
7402 | fi | |
7403 | else | |
7404 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
7405 | fi | |
d9898ee8 | 7406 | |
8d138742 CE |
7407 | if test -n "$ac_tool_prefix"; then |
7408 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
7409 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
7410 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7411 | $as_echo_n "checking for $ac_word... " >&6; } | |
7412 | if test "${ac_cv_prog_NMEDIT+set}" = set; then | |
7413 | $as_echo_n "(cached) " >&6 | |
7414 | else | |
7415 | if test -n "$NMEDIT"; then | |
7416 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
7417 | else | |
7418 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7419 | for as_dir in $PATH | |
7420 | do | |
7421 | IFS=$as_save_IFS | |
7422 | test -z "$as_dir" && as_dir=. | |
7423 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7424 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7425 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | |
7426 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7427 | break 2 | |
7428 | fi | |
7429 | done | |
7430 | done | |
7431 | IFS=$as_save_IFS | |
d9898ee8 | 7432 | |
8d138742 CE |
7433 | fi |
7434 | fi | |
7435 | NMEDIT=$ac_cv_prog_NMEDIT | |
7436 | if test -n "$NMEDIT"; then | |
7437 | { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 | |
7438 | $as_echo "$NMEDIT" >&6; } | |
7439 | else | |
7440 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
7441 | $as_echo "no" >&6; } | |
7442 | fi | |
d9898ee8 | 7443 | |
d9898ee8 | 7444 | |
8d138742 CE |
7445 | fi |
7446 | if test -z "$ac_cv_prog_NMEDIT"; then | |
7447 | ac_ct_NMEDIT=$NMEDIT | |
7448 | # Extract the first word of "nmedit", so it can be a program name with args. | |
7449 | set dummy nmedit; ac_word=$2 | |
7450 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7451 | $as_echo_n "checking for $ac_word... " >&6; } | |
7452 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then | |
7453 | $as_echo_n "(cached) " >&6 | |
7454 | else | |
7455 | if test -n "$ac_ct_NMEDIT"; then | |
7456 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
7457 | else | |
7458 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7459 | for as_dir in $PATH | |
7460 | do | |
7461 | IFS=$as_save_IFS | |
7462 | test -z "$as_dir" && as_dir=. | |
7463 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7464 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7465 | ac_cv_prog_ac_ct_NMEDIT="nmedit" | |
7466 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7467 | break 2 | |
7468 | fi | |
7469 | done | |
7470 | done | |
7471 | IFS=$as_save_IFS | |
d9898ee8 | 7472 | |
8d138742 CE |
7473 | fi |
7474 | fi | |
7475 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
7476 | if test -n "$ac_ct_NMEDIT"; then | |
7477 | { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 | |
7478 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
7479 | else | |
7480 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
7481 | $as_echo "no" >&6; } | |
7482 | fi | |
d9898ee8 | 7483 | |
8d138742 CE |
7484 | if test "x$ac_ct_NMEDIT" = x; then |
7485 | NMEDIT=":" | |
7486 | else | |
7487 | case $cross_compiling:$ac_tool_warned in | |
7488 | yes:) | |
7489 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7490 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7491 | ac_tool_warned=yes ;; | |
7492 | esac | |
7493 | NMEDIT=$ac_ct_NMEDIT | |
7494 | fi | |
7495 | else | |
7496 | NMEDIT="$ac_cv_prog_NMEDIT" | |
7497 | fi | |
d9898ee8 | 7498 | |
8d138742 CE |
7499 | if test -n "$ac_tool_prefix"; then |
7500 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
7501 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
7502 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7503 | $as_echo_n "checking for $ac_word... " >&6; } | |
7504 | if test "${ac_cv_prog_LIPO+set}" = set; then | |
7505 | $as_echo_n "(cached) " >&6 | |
7506 | else | |
7507 | if test -n "$LIPO"; then | |
7508 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
7509 | else | |
7510 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7511 | for as_dir in $PATH | |
7512 | do | |
7513 | IFS=$as_save_IFS | |
7514 | test -z "$as_dir" && as_dir=. | |
7515 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7516 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7517 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | |
7518 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7519 | break 2 | |
7520 | fi | |
7521 | done | |
7522 | done | |
7523 | IFS=$as_save_IFS | |
d9898ee8 | 7524 | |
8d138742 CE |
7525 | fi |
7526 | fi | |
7527 | LIPO=$ac_cv_prog_LIPO | |
7528 | if test -n "$LIPO"; then | |
7529 | { $as_echo "$as_me:$LINENO: result: $LIPO" >&5 | |
7530 | $as_echo "$LIPO" >&6; } | |
7531 | else | |
7532 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
7533 | $as_echo "no" >&6; } | |
7534 | fi | |
d9898ee8 | 7535 | |
d9898ee8 | 7536 | |
8d138742 CE |
7537 | fi |
7538 | if test -z "$ac_cv_prog_LIPO"; then | |
7539 | ac_ct_LIPO=$LIPO | |
7540 | # Extract the first word of "lipo", so it can be a program name with args. | |
7541 | set dummy lipo; ac_word=$2 | |
7542 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7543 | $as_echo_n "checking for $ac_word... " >&6; } | |
7544 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then | |
7545 | $as_echo_n "(cached) " >&6 | |
7546 | else | |
7547 | if test -n "$ac_ct_LIPO"; then | |
7548 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
7549 | else | |
7550 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7551 | for as_dir in $PATH | |
7552 | do | |
7553 | IFS=$as_save_IFS | |
7554 | test -z "$as_dir" && as_dir=. | |
7555 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7556 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7557 | ac_cv_prog_ac_ct_LIPO="lipo" | |
7558 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7559 | break 2 | |
7560 | fi | |
7561 | done | |
7562 | done | |
7563 | IFS=$as_save_IFS | |
d9898ee8 | 7564 | |
8d138742 CE |
7565 | fi |
7566 | fi | |
7567 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
7568 | if test -n "$ac_ct_LIPO"; then | |
7569 | { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 | |
7570 | $as_echo "$ac_ct_LIPO" >&6; } | |
7571 | else | |
7572 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
7573 | $as_echo "no" >&6; } | |
7574 | fi | |
d9898ee8 | 7575 | |
8d138742 CE |
7576 | if test "x$ac_ct_LIPO" = x; then |
7577 | LIPO=":" | |
7578 | else | |
7579 | case $cross_compiling:$ac_tool_warned in | |
7580 | yes:) | |
7581 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7582 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7583 | ac_tool_warned=yes ;; | |
7584 | esac | |
7585 | LIPO=$ac_ct_LIPO | |
7586 | fi | |
7587 | else | |
7588 | LIPO="$ac_cv_prog_LIPO" | |
7589 | fi | |
d9898ee8 | 7590 | |
8d138742 CE |
7591 | if test -n "$ac_tool_prefix"; then |
7592 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
7593 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
7594 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7595 | $as_echo_n "checking for $ac_word... " >&6; } | |
7596 | if test "${ac_cv_prog_OTOOL+set}" = set; then | |
7597 | $as_echo_n "(cached) " >&6 | |
7598 | else | |
7599 | if test -n "$OTOOL"; then | |
7600 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
7601 | else | |
7602 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7603 | for as_dir in $PATH | |
7604 | do | |
7605 | IFS=$as_save_IFS | |
7606 | test -z "$as_dir" && as_dir=. | |
7607 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7608 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7609 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
7610 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7611 | break 2 | |
7612 | fi | |
7613 | done | |
7614 | done | |
7615 | IFS=$as_save_IFS | |
d9898ee8 | 7616 | |
8d138742 CE |
7617 | fi |
7618 | fi | |
7619 | OTOOL=$ac_cv_prog_OTOOL | |
7620 | if test -n "$OTOOL"; then | |
7621 | { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5 | |
7622 | $as_echo "$OTOOL" >&6; } | |
7623 | else | |
7624 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
7625 | $as_echo "no" >&6; } | |
7626 | fi | |
d9898ee8 | 7627 | |
d9898ee8 | 7628 | |
8d138742 CE |
7629 | fi |
7630 | if test -z "$ac_cv_prog_OTOOL"; then | |
7631 | ac_ct_OTOOL=$OTOOL | |
7632 | # Extract the first word of "otool", so it can be a program name with args. | |
7633 | set dummy otool; ac_word=$2 | |
7634 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7635 | $as_echo_n "checking for $ac_word... " >&6; } | |
7636 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then | |
7637 | $as_echo_n "(cached) " >&6 | |
7638 | else | |
7639 | if test -n "$ac_ct_OTOOL"; then | |
7640 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
7641 | else | |
7642 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7643 | for as_dir in $PATH | |
7644 | do | |
7645 | IFS=$as_save_IFS | |
7646 | test -z "$as_dir" && as_dir=. | |
7647 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7648 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7649 | ac_cv_prog_ac_ct_OTOOL="otool" | |
7650 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7651 | break 2 | |
7652 | fi | |
7653 | done | |
7654 | done | |
7655 | IFS=$as_save_IFS | |
d9898ee8 | 7656 | |
8d138742 CE |
7657 | fi |
7658 | fi | |
7659 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
7660 | if test -n "$ac_ct_OTOOL"; then | |
7661 | { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 | |
7662 | $as_echo "$ac_ct_OTOOL" >&6; } | |
7663 | else | |
7664 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
7665 | $as_echo "no" >&6; } | |
7666 | fi | |
d9898ee8 | 7667 | |
8d138742 CE |
7668 | if test "x$ac_ct_OTOOL" = x; then |
7669 | OTOOL=":" | |
7670 | else | |
7671 | case $cross_compiling:$ac_tool_warned in | |
7672 | yes:) | |
7673 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7674 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7675 | ac_tool_warned=yes ;; | |
7676 | esac | |
7677 | OTOOL=$ac_ct_OTOOL | |
7678 | fi | |
7679 | else | |
7680 | OTOOL="$ac_cv_prog_OTOOL" | |
7681 | fi | |
d9898ee8 | 7682 | |
8d138742 CE |
7683 | if test -n "$ac_tool_prefix"; then |
7684 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
7685 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
7686 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7687 | $as_echo_n "checking for $ac_word... " >&6; } | |
7688 | if test "${ac_cv_prog_OTOOL64+set}" = set; then | |
7689 | $as_echo_n "(cached) " >&6 | |
7690 | else | |
7691 | if test -n "$OTOOL64"; then | |
7692 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
7693 | else | |
7694 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7695 | for as_dir in $PATH | |
7696 | do | |
7697 | IFS=$as_save_IFS | |
7698 | test -z "$as_dir" && as_dir=. | |
7699 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7700 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7701 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
7702 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7703 | break 2 | |
7704 | fi | |
7705 | done | |
7706 | done | |
7707 | IFS=$as_save_IFS | |
d9898ee8 | 7708 | |
8d138742 CE |
7709 | fi |
7710 | fi | |
7711 | OTOOL64=$ac_cv_prog_OTOOL64 | |
7712 | if test -n "$OTOOL64"; then | |
7713 | { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5 | |
7714 | $as_echo "$OTOOL64" >&6; } | |
7715 | else | |
7716 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
7717 | $as_echo "no" >&6; } | |
7718 | fi | |
d9898ee8 | 7719 | |
d9898ee8 | 7720 | |
8d138742 CE |
7721 | fi |
7722 | if test -z "$ac_cv_prog_OTOOL64"; then | |
7723 | ac_ct_OTOOL64=$OTOOL64 | |
7724 | # Extract the first word of "otool64", so it can be a program name with args. | |
7725 | set dummy otool64; ac_word=$2 | |
7726 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7727 | $as_echo_n "checking for $ac_word... " >&6; } | |
7728 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then | |
7729 | $as_echo_n "(cached) " >&6 | |
7730 | else | |
7731 | if test -n "$ac_ct_OTOOL64"; then | |
7732 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
7733 | else | |
7734 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7735 | for as_dir in $PATH | |
7736 | do | |
7737 | IFS=$as_save_IFS | |
7738 | test -z "$as_dir" && as_dir=. | |
7739 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7740 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7741 | ac_cv_prog_ac_ct_OTOOL64="otool64" | |
7742 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7743 | break 2 | |
7744 | fi | |
7745 | done | |
7746 | done | |
7747 | IFS=$as_save_IFS | |
d9898ee8 | 7748 | |
8d138742 CE |
7749 | fi |
7750 | fi | |
7751 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
7752 | if test -n "$ac_ct_OTOOL64"; then | |
7753 | { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 | |
7754 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
7755 | else | |
7756 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
7757 | $as_echo "no" >&6; } | |
7758 | fi | |
d9898ee8 | 7759 | |
8d138742 CE |
7760 | if test "x$ac_ct_OTOOL64" = x; then |
7761 | OTOOL64=":" | |
7762 | else | |
7763 | case $cross_compiling:$ac_tool_warned in | |
7764 | yes:) | |
7765 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7766 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7767 | ac_tool_warned=yes ;; | |
7768 | esac | |
7769 | OTOOL64=$ac_ct_OTOOL64 | |
7770 | fi | |
7771 | else | |
7772 | OTOOL64="$ac_cv_prog_OTOOL64" | |
7773 | fi | |
d9898ee8 | 7774 | |
d9898ee8 | 7775 | |
d9898ee8 | 7776 | |
d9898ee8 | 7777 | |
d9898ee8 | 7778 | |
d9898ee8 | 7779 | |
d9898ee8 | 7780 | |
d9898ee8 | 7781 | |
d9898ee8 | 7782 | |
d9898ee8 | 7783 | |
d9898ee8 | 7784 | |
d9898ee8 | 7785 | |
d9898ee8 | 7786 | |
d9898ee8 | 7787 | |
d9898ee8 | 7788 | |
d9898ee8 | 7789 | |
d9898ee8 | 7790 | |
ac40fd9e | 7791 | |
d9898ee8 | 7792 | |
d9898ee8 | 7793 | |
d9898ee8 | 7794 | |
d9898ee8 | 7795 | |
d9898ee8 | 7796 | |
d9898ee8 | 7797 | |
d9898ee8 | 7798 | |
d9898ee8 | 7799 | |
d9898ee8 | 7800 | |
8d138742 CE |
7801 | { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 |
7802 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
7803 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then | |
7804 | $as_echo_n "(cached) " >&6 | |
7805 | else | |
7806 | lt_cv_apple_cc_single_mod=no | |
7807 | if test -z "${LT_MULTI_MODULE}"; then | |
7808 | # By default we will add the -single_module flag. You can override | |
7809 | # by either setting the environment variable LT_MULTI_MODULE | |
7810 | # non-empty at configure time, or by adding -multi_module to the | |
7811 | # link flags. | |
7812 | rm -rf libconftest.dylib* | |
7813 | echo "int foo(void){return 1;}" > conftest.c | |
7814 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7815 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
7816 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7817 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
7818 | _lt_result=$? | |
7819 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
7820 | lt_cv_apple_cc_single_mod=yes | |
7821 | else | |
7822 | cat conftest.err >&5 | |
7823 | fi | |
7824 | rm -rf libconftest.dylib* | |
7825 | rm -f conftest.* | |
d9898ee8 | 7826 | fi |
8d138742 CE |
7827 | fi |
7828 | { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 | |
7829 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
7830 | { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 | |
7831 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
7832 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then | |
7833 | $as_echo_n "(cached) " >&6 | |
7834 | else | |
7835 | lt_cv_ld_exported_symbols_list=no | |
7836 | save_LDFLAGS=$LDFLAGS | |
7837 | echo "_main" > conftest.sym | |
7838 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
7839 | cat >conftest.$ac_ext <<_ACEOF | |
7840 | /* confdefs.h. */ | |
7841 | _ACEOF | |
7842 | cat confdefs.h >>conftest.$ac_ext | |
7843 | cat >>conftest.$ac_ext <<_ACEOF | |
7844 | /* end confdefs.h. */ | |
d9898ee8 | 7845 | |
8d138742 CE |
7846 | int |
7847 | main () | |
7848 | { | |
ac40fd9e | 7849 | |
8d138742 CE |
7850 | ; |
7851 | return 0; | |
7852 | } | |
7853 | _ACEOF | |
7854 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7855 | if { (ac_try="$ac_link" | |
7856 | case "(($ac_try" in | |
7857 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7858 | *) ac_try_echo=$ac_try;; | |
7859 | esac | |
7860 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7861 | $as_echo "$ac_try_echo") >&5 | |
7862 | (eval "$ac_link") 2>conftest.er1 | |
7863 | ac_status=$? | |
7864 | grep -v '^ *+' conftest.er1 >conftest.err | |
7865 | rm -f conftest.er1 | |
7866 | cat conftest.err >&5 | |
7867 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7868 | (exit $ac_status); } && { | |
7869 | test -z "$ac_c_werror_flag" || | |
7870 | test ! -s conftest.err | |
7871 | } && test -s conftest$ac_exeext && { | |
7872 | test "$cross_compiling" = yes || | |
7873 | $as_test_x conftest$ac_exeext | |
7874 | }; then | |
7875 | lt_cv_ld_exported_symbols_list=yes | |
7876 | else | |
7877 | $as_echo "$as_me: failed program was:" >&5 | |
7878 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 7879 | |
8d138742 CE |
7880 | lt_cv_ld_exported_symbols_list=no |
7881 | fi | |
d9898ee8 | 7882 | |
8d138742 CE |
7883 | rm -rf conftest.dSYM |
7884 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
7885 | conftest$ac_exeext conftest.$ac_ext | |
7886 | LDFLAGS="$save_LDFLAGS" | |
d9898ee8 | 7887 | |
8d138742 CE |
7888 | fi |
7889 | { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 | |
7890 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
d9898ee8 | 7891 | case $host_os in |
8d138742 CE |
7892 | rhapsody* | darwin1.[012]) |
7893 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
7894 | darwin1.*) | |
7895 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
7896 | darwin*) # darwin 5.x on | |
7897 | # if running on 10.5 or later, the deployment target defaults | |
7898 | # to the OS version, if on x86, and 10.4, the deployment | |
7899 | # target defaults to 10.4. Don't you love it? | |
7900 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
7901 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
7902 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
7903 | 10.[012]*) | |
7904 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
7905 | 10.*) | |
7906 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
7907 | esac | |
d9898ee8 | 7908 | ;; |
7909 | esac | |
8d138742 CE |
7910 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then |
7911 | _lt_dar_single_mod='$single_module' | |
7912 | fi | |
7913 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
7914 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
d9898ee8 | 7915 | else |
8d138742 CE |
7916 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' |
7917 | fi | |
7918 | if test "$DSYMUTIL" != ":"; then | |
7919 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
7920 | else | |
7921 | _lt_dsymutil= | |
d9898ee8 | 7922 | fi |
d9898ee8 | 7923 | ;; |
7924 | esac | |
d9898ee8 | 7925 | |
d9898ee8 | 7926 | |
8d138742 CE |
7927 | for ac_header in dlfcn.h |
7928 | do | |
7929 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7930 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7931 | $as_echo_n "checking for $ac_header... " >&6; } | |
7932 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
7933 | $as_echo_n "(cached) " >&6 | |
7934 | else | |
7935 | cat >conftest.$ac_ext <<_ACEOF | |
7936 | /* confdefs.h. */ | |
7937 | _ACEOF | |
7938 | cat confdefs.h >>conftest.$ac_ext | |
7939 | cat >>conftest.$ac_ext <<_ACEOF | |
7940 | /* end confdefs.h. */ | |
7941 | $ac_includes_default | |
d9898ee8 | 7942 | |
8d138742 CE |
7943 | #include <$ac_header> |
7944 | _ACEOF | |
7945 | rm -f conftest.$ac_objext | |
7946 | if { (ac_try="$ac_compile" | |
7947 | case "(($ac_try" in | |
7948 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7949 | *) ac_try_echo=$ac_try;; | |
7950 | esac | |
7951 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7952 | $as_echo "$ac_try_echo") >&5 | |
7953 | (eval "$ac_compile") 2>conftest.er1 | |
7954 | ac_status=$? | |
7955 | grep -v '^ *+' conftest.er1 >conftest.err | |
7956 | rm -f conftest.er1 | |
7957 | cat conftest.err >&5 | |
7958 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7959 | (exit $ac_status); } && { | |
7960 | test -z "$ac_c_werror_flag" || | |
7961 | test ! -s conftest.err | |
7962 | } && test -s conftest.$ac_objext; then | |
7963 | eval "$as_ac_Header=yes" | |
7964 | else | |
7965 | $as_echo "$as_me: failed program was:" >&5 | |
7966 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 7967 | |
8d138742 CE |
7968 | eval "$as_ac_Header=no" |
7969 | fi | |
d9898ee8 | 7970 | |
8d138742 CE |
7971 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7972 | fi | |
7973 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
7974 | $as_echo "$as_val"'` | |
7975 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7976 | $as_echo "$ac_res" >&6; } | |
7977 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
7978 | $as_echo "$as_val"'` | |
7979 | if test "x$as_val" = x""yes; then | |
7980 | cat >>confdefs.h <<_ACEOF | |
7981 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7982 | _ACEOF | |
d9898ee8 | 7983 | |
8d138742 | 7984 | fi |
d9898ee8 | 7985 | |
8d138742 | 7986 | done |
d9898ee8 | 7987 | |
d9898ee8 | 7988 | |
d9898ee8 | 7989 | |
8d138742 | 7990 | # Set options |
d9898ee8 | 7991 | |
d9898ee8 | 7992 | |
ac40fd9e | 7993 | |
8d138742 | 7994 | enable_dlopen=no |
d9898ee8 | 7995 | |
d9898ee8 | 7996 | |
8d138742 | 7997 | enable_win32_dll=no |
d9898ee8 | 7998 | |
d9898ee8 | 7999 | |
8d138742 CE |
8000 | # Check whether --enable-shared was given. |
8001 | if test "${enable_shared+set}" = set; then | |
8002 | enableval=$enable_shared; p=${PACKAGE-default} | |
8003 | case $enableval in | |
8004 | yes) enable_shared=yes ;; | |
8005 | no) enable_shared=no ;; | |
8006 | *) | |
8007 | enable_shared=no | |
8008 | # Look at the argument we got. We use all the common list separators. | |
8009 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8010 | for pkg in $enableval; do | |
8011 | IFS="$lt_save_ifs" | |
8012 | if test "X$pkg" = "X$p"; then | |
8013 | enable_shared=yes | |
8014 | fi | |
8015 | done | |
8016 | IFS="$lt_save_ifs" | |
8017 | ;; | |
d9898ee8 | 8018 | esac |
8d138742 CE |
8019 | else |
8020 | enable_shared=yes | |
8021 | fi | |
d9898ee8 | 8022 | |
d9898ee8 | 8023 | |
d9898ee8 | 8024 | |
d9898ee8 | 8025 | |
d9898ee8 | 8026 | |
d9898ee8 | 8027 | |
d9898ee8 | 8028 | |
8d138742 CE |
8029 | |
8030 | ||
8031 | # Check whether --enable-static was given. | |
8032 | if test "${enable_static+set}" = set; then | |
8033 | enableval=$enable_static; p=${PACKAGE-default} | |
8034 | case $enableval in | |
8035 | yes) enable_static=yes ;; | |
8036 | no) enable_static=no ;; | |
8037 | *) | |
8038 | enable_static=no | |
8039 | # Look at the argument we got. We use all the common list separators. | |
8040 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8041 | for pkg in $enableval; do | |
8042 | IFS="$lt_save_ifs" | |
8043 | if test "X$pkg" = "X$p"; then | |
8044 | enable_static=yes | |
8045 | fi | |
8046 | done | |
8047 | IFS="$lt_save_ifs" | |
8048 | ;; | |
8049 | esac | |
d9898ee8 | 8050 | else |
8d138742 | 8051 | enable_static=yes |
d9898ee8 | 8052 | fi |
8053 | ||
d9898ee8 | 8054 | |
d9898ee8 | 8055 | |
d9898ee8 | 8056 | |
d9898ee8 | 8057 | |
d9898ee8 | 8058 | |
d9898ee8 | 8059 | |
dd184caf | 8060 | |
d9898ee8 | 8061 | |
d9898ee8 | 8062 | |
8d138742 CE |
8063 | # Check whether --with-pic was given. |
8064 | if test "${with_pic+set}" = set; then | |
8065 | withval=$with_pic; pic_mode="$withval" | |
8066 | else | |
8067 | pic_mode=default | |
d9898ee8 | 8068 | fi |
8069 | ||
d9898ee8 | 8070 | |
8d138742 | 8071 | test -z "$pic_mode" && pic_mode=default |
d9898ee8 | 8072 | |
d9898ee8 | 8073 | |
d9898ee8 | 8074 | |
d9898ee8 | 8075 | |
d9898ee8 | 8076 | |
d9898ee8 | 8077 | |
dd184caf | 8078 | |
8d138742 CE |
8079 | # Check whether --enable-fast-install was given. |
8080 | if test "${enable_fast_install+set}" = set; then | |
8081 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
8082 | case $enableval in | |
8083 | yes) enable_fast_install=yes ;; | |
8084 | no) enable_fast_install=no ;; | |
8085 | *) | |
8086 | enable_fast_install=no | |
8087 | # Look at the argument we got. We use all the common list separators. | |
8088 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8089 | for pkg in $enableval; do | |
8090 | IFS="$lt_save_ifs" | |
8091 | if test "X$pkg" = "X$p"; then | |
8092 | enable_fast_install=yes | |
8093 | fi | |
8094 | done | |
8095 | IFS="$lt_save_ifs" | |
8096 | ;; | |
8097 | esac | |
d9898ee8 | 8098 | else |
8d138742 CE |
8099 | enable_fast_install=yes |
8100 | fi | |
d9898ee8 | 8101 | |
d9898ee8 | 8102 | |
dd184caf | 8103 | |
d9898ee8 | 8104 | |
d9898ee8 | 8105 | |
d9898ee8 | 8106 | |
d9898ee8 | 8107 | |
d9898ee8 | 8108 | |
d9898ee8 | 8109 | |
dd184caf | 8110 | |
d9898ee8 | 8111 | |
8d138742 CE |
8112 | # This can be used to rebuild libtool when needed |
8113 | LIBTOOL_DEPS="$ltmain" | |
d9898ee8 | 8114 | |
8d138742 CE |
8115 | # Always use our own libtool. |
8116 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
dd184caf | 8117 | |
d9898ee8 | 8118 | |
d9898ee8 | 8119 | |
dd184caf | 8120 | |
d9898ee8 | 8121 | |
d9898ee8 | 8122 | |
dd184caf | 8123 | |
d9898ee8 | 8124 | |
8125 | ||
d9898ee8 | 8126 | |
8127 | ||
d9898ee8 | 8128 | |
8129 | ||
d9898ee8 | 8130 | |
8131 | ||
d9898ee8 | 8132 | |
8133 | ||
d9898ee8 | 8134 | |
d9898ee8 | 8135 | |
d9898ee8 | 8136 | |
d9898ee8 | 8137 | |
d9898ee8 | 8138 | |
d9898ee8 | 8139 | |
d9898ee8 | 8140 | |
d9898ee8 | 8141 | |
8d138742 | 8142 | test -z "$LN_S" && LN_S="ln -s" |
d9898ee8 | 8143 | |
d9898ee8 | 8144 | |
d9898ee8 | 8145 | |
d9898ee8 | 8146 | |
8147 | ||
d9898ee8 | 8148 | |
d9898ee8 | 8149 | |
d9898ee8 | 8150 | |
d9898ee8 | 8151 | |
d9898ee8 | 8152 | |
d9898ee8 | 8153 | |
d9898ee8 | 8154 | |
d9898ee8 | 8155 | |
d9898ee8 | 8156 | |
8d138742 CE |
8157 | if test -n "${ZSH_VERSION+set}" ; then |
8158 | setopt NO_GLOB_SUBST | |
d9898ee8 | 8159 | fi |
d9898ee8 | 8160 | |
8d138742 CE |
8161 | { $as_echo "$as_me:$LINENO: checking for objdir" >&5 |
8162 | $as_echo_n "checking for objdir... " >&6; } | |
8163 | if test "${lt_cv_objdir+set}" = set; then | |
8164 | $as_echo_n "(cached) " >&6 | |
8165 | else | |
8166 | rm -f .libs 2>/dev/null | |
8167 | mkdir .libs 2>/dev/null | |
8168 | if test -d .libs; then | |
8169 | lt_cv_objdir=.libs | |
8170 | else | |
8171 | # MS-DOS does not allow filenames that begin with a dot. | |
8172 | lt_cv_objdir=_libs | |
d9898ee8 | 8173 | fi |
8d138742 | 8174 | rmdir .libs 2>/dev/null |
d9898ee8 | 8175 | fi |
8d138742 CE |
8176 | { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
8177 | $as_echo "$lt_cv_objdir" >&6; } | |
8178 | objdir=$lt_cv_objdir | |
d9898ee8 | 8179 | |
8180 | ||
d9898ee8 | 8181 | |
d9898ee8 | 8182 | |
d9898ee8 | 8183 | |
8d138742 CE |
8184 | cat >>confdefs.h <<_ACEOF |
8185 | #define LT_OBJDIR "$lt_cv_objdir/" | |
8186 | _ACEOF | |
d9898ee8 | 8187 | |
d9898ee8 | 8188 | |
d9898ee8 | 8189 | |
d9898ee8 | 8190 | |
d9898ee8 | 8191 | |
d9898ee8 | 8192 | |
d9898ee8 | 8193 | |
d9898ee8 | 8194 | |
d9898ee8 | 8195 | |
d9898ee8 | 8196 | |
d9898ee8 | 8197 | |
d9898ee8 | 8198 | |
d9898ee8 | 8199 | |
d9898ee8 | 8200 | |
d9898ee8 | 8201 | |
d9898ee8 | 8202 | |
d9898ee8 | 8203 | |
8d138742 CE |
8204 | case $host_os in |
8205 | aix3*) | |
8206 | # AIX sometimes has problems with the GCC collect2 program. For some | |
8207 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
8208 | # vanish in a puff of smoke. | |
8209 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
8210 | COLLECT_NAMES= | |
8211 | export COLLECT_NAMES | |
8212 | fi | |
8213 | ;; | |
8214 | esac | |
d9898ee8 | 8215 | |
8d138742 CE |
8216 | # Sed substitution that helps us do robust quoting. It backslashifies |
8217 | # metacharacters that are still active within double-quoted strings. | |
8218 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
d9898ee8 | 8219 | |
8d138742 CE |
8220 | # Same as above, but do not quote variable references. |
8221 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
d9898ee8 | 8222 | |
8d138742 CE |
8223 | # Sed substitution to delay expansion of an escaped shell variable in a |
8224 | # double_quote_subst'ed string. | |
8225 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
d9898ee8 | 8226 | |
8d138742 CE |
8227 | # Sed substitution to delay expansion of an escaped single quote. |
8228 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
d9898ee8 | 8229 | |
8d138742 CE |
8230 | # Sed substitution to avoid accidental globbing in evaled expressions |
8231 | no_glob_subst='s/\*/\\\*/g' | |
d9898ee8 | 8232 | |
8d138742 CE |
8233 | # Global variables: |
8234 | ofile=libtool | |
8235 | can_build_shared=yes | |
d9898ee8 | 8236 | |
8d138742 CE |
8237 | # All known linkers require a `.a' archive for static linking (except MSVC, |
8238 | # which needs '.lib'). | |
8239 | libext=a | |
d9898ee8 | 8240 | |
8d138742 | 8241 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
d9898ee8 | 8242 | |
8d138742 CE |
8243 | old_CC="$CC" |
8244 | old_CFLAGS="$CFLAGS" | |
d9898ee8 | 8245 | |
8d138742 CE |
8246 | # Set sane defaults for various variables |
8247 | test -z "$CC" && CC=cc | |
8248 | test -z "$LTCC" && LTCC=$CC | |
8249 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
8250 | test -z "$LD" && LD=ld | |
8251 | test -z "$ac_objext" && ac_objext=o | |
d9898ee8 | 8252 | |
8d138742 CE |
8253 | for cc_temp in $compiler""; do |
8254 | case $cc_temp in | |
8255 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
8256 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
8257 | \-*) ;; | |
8258 | *) break;; | |
8259 | esac | |
8260 | done | |
8261 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
d9898ee8 | 8262 | |
d9898ee8 | 8263 | |
8d138742 CE |
8264 | # Only perform the check for file, if the check method requires it |
8265 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
8266 | case $deplibs_check_method in | |
8267 | file_magic*) | |
8268 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
8269 | { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 | |
8270 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
8271 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
8272 | $as_echo_n "(cached) " >&6 | |
8273 | else | |
8274 | case $MAGIC_CMD in | |
8275 | [\\/*] | ?:[\\/]*) | |
8276 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8277 | ;; | |
8278 | *) | |
8279 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8280 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8281 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8282 | for ac_dir in $ac_dummy; do | |
8283 | IFS="$lt_save_ifs" | |
8284 | test -z "$ac_dir" && ac_dir=. | |
8285 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
8286 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
8287 | if test -n "$file_magic_test_file"; then | |
8288 | case $deplibs_check_method in | |
8289 | "file_magic "*) | |
8290 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8291 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8292 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8293 | $EGREP "$file_magic_regex" > /dev/null; then | |
8294 | : | |
8295 | else | |
8296 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 8297 | |
8d138742 CE |
8298 | *** Warning: the command libtool uses to detect shared libraries, |
8299 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8300 | *** The result is that libtool may fail to recognize shared libraries | |
8301 | *** as such. This will affect the creation of libtool libraries that | |
8302 | *** depend on shared libraries, but programs linked with such libtool | |
8303 | *** libraries will work regardless of this problem. Nevertheless, you | |
8304 | *** may want to report the problem to your system manager and/or to | |
8305 | *** bug-libtool@gnu.org | |
d9898ee8 | 8306 | |
8d138742 CE |
8307 | _LT_EOF |
8308 | fi ;; | |
8309 | esac | |
8310 | fi | |
8311 | break | |
8312 | fi | |
8313 | done | |
8314 | IFS="$lt_save_ifs" | |
8315 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8316 | ;; | |
8317 | esac | |
8318 | fi | |
d9898ee8 | 8319 | |
8d138742 CE |
8320 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
8321 | if test -n "$MAGIC_CMD"; then | |
8322 | { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
8323 | $as_echo "$MAGIC_CMD" >&6; } | |
8324 | else | |
8325 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
8326 | $as_echo "no" >&6; } | |
8327 | fi | |
d9898ee8 | 8328 | |
d9898ee8 | 8329 | |
d9898ee8 | 8330 | |
d9898ee8 | 8331 | |
d9898ee8 | 8332 | |
8d138742 CE |
8333 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
8334 | if test -n "$ac_tool_prefix"; then | |
8335 | { $as_echo "$as_me:$LINENO: checking for file" >&5 | |
8336 | $as_echo_n "checking for file... " >&6; } | |
8337 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
8338 | $as_echo_n "(cached) " >&6 | |
8339 | else | |
8340 | case $MAGIC_CMD in | |
8341 | [\\/*] | ?:[\\/]*) | |
8342 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8343 | ;; | |
8344 | *) | |
8345 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8346 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8347 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8348 | for ac_dir in $ac_dummy; do | |
8349 | IFS="$lt_save_ifs" | |
8350 | test -z "$ac_dir" && ac_dir=. | |
8351 | if test -f $ac_dir/file; then | |
8352 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
8353 | if test -n "$file_magic_test_file"; then | |
8354 | case $deplibs_check_method in | |
8355 | "file_magic "*) | |
8356 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8357 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8358 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8359 | $EGREP "$file_magic_regex" > /dev/null; then | |
8360 | : | |
8361 | else | |
8362 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 8363 | |
8d138742 CE |
8364 | *** Warning: the command libtool uses to detect shared libraries, |
8365 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8366 | *** The result is that libtool may fail to recognize shared libraries | |
8367 | *** as such. This will affect the creation of libtool libraries that | |
8368 | *** depend on shared libraries, but programs linked with such libtool | |
8369 | *** libraries will work regardless of this problem. Nevertheless, you | |
8370 | *** may want to report the problem to your system manager and/or to | |
8371 | *** bug-libtool@gnu.org | |
d9898ee8 | 8372 | |
8d138742 CE |
8373 | _LT_EOF |
8374 | fi ;; | |
8375 | esac | |
8376 | fi | |
8377 | break | |
8378 | fi | |
8379 | done | |
8380 | IFS="$lt_save_ifs" | |
8381 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8382 | ;; | |
8383 | esac | |
8384 | fi | |
d9898ee8 | 8385 | |
8d138742 CE |
8386 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
8387 | if test -n "$MAGIC_CMD"; then | |
8388 | { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
8389 | $as_echo "$MAGIC_CMD" >&6; } | |
8390 | else | |
8391 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
8392 | $as_echo "no" >&6; } | |
8393 | fi | |
d9898ee8 | 8394 | |
d9898ee8 | 8395 | |
8d138742 CE |
8396 | else |
8397 | MAGIC_CMD=: | |
8398 | fi | |
8399 | fi | |
d9898ee8 | 8400 | |
8d138742 CE |
8401 | fi |
8402 | ;; | |
8403 | esac | |
d9898ee8 | 8404 | |
8d138742 | 8405 | # Use C for the default configuration in the libtool script |
d9898ee8 | 8406 | |
8d138742 CE |
8407 | lt_save_CC="$CC" |
8408 | ac_ext=c | |
8409 | ac_cpp='$CPP $CPPFLAGS' | |
8410 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8411 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8412 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 8413 | |
d9898ee8 | 8414 | |
8d138742 CE |
8415 | # Source file extension for C test sources. |
8416 | ac_ext=c | |
d9898ee8 | 8417 | |
8d138742 CE |
8418 | # Object file extension for compiled C test sources. |
8419 | objext=o | |
8420 | objext=$objext | |
d9898ee8 | 8421 | |
8d138742 CE |
8422 | # Code to be used in simple compile tests |
8423 | lt_simple_compile_test_code="int some_variable = 0;" | |
d9898ee8 | 8424 | |
8d138742 CE |
8425 | # Code to be used in simple link tests |
8426 | lt_simple_link_test_code='int main(){return(0);}' | |
d9898ee8 | 8427 | |
d9898ee8 | 8428 | |
d9898ee8 | 8429 | |
d9898ee8 | 8430 | |
d9898ee8 | 8431 | |
d9898ee8 | 8432 | |
d9898ee8 | 8433 | |
8d138742 CE |
8434 | # If no C compiler was specified, use CC. |
8435 | LTCC=${LTCC-"$CC"} | |
d9898ee8 | 8436 | |
8d138742 CE |
8437 | # If no C compiler flags were specified, use CFLAGS. |
8438 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
d9898ee8 | 8439 | |
8d138742 CE |
8440 | # Allow CC to be a program name with arguments. |
8441 | compiler=$CC | |
d9898ee8 | 8442 | |
8d138742 CE |
8443 | # Save the default compiler, since it gets overwritten when the other |
8444 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
8445 | compiler_DEFAULT=$CC | |
d9898ee8 | 8446 | |
8d138742 CE |
8447 | # save warnings/boilerplate of simple test code |
8448 | ac_outfile=conftest.$ac_objext | |
8449 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
8450 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8451 | _lt_compiler_boilerplate=`cat conftest.err` | |
8452 | $RM conftest* | |
d9898ee8 | 8453 | |
8d138742 CE |
8454 | ac_outfile=conftest.$ac_objext |
8455 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
8456 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8457 | _lt_linker_boilerplate=`cat conftest.err` | |
8458 | $RM -r conftest* | |
d9898ee8 | 8459 | |
d9898ee8 | 8460 | |
8d138742 | 8461 | if test -n "$compiler"; then |
d9898ee8 | 8462 | |
8d138742 | 8463 | lt_prog_compiler_no_builtin_flag= |
d9898ee8 | 8464 | |
8d138742 CE |
8465 | if test "$GCC" = yes; then |
8466 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' | |
d9898ee8 | 8467 | |
8d138742 CE |
8468 | { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
8469 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
8470 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | |
8471 | $as_echo_n "(cached) " >&6 | |
8472 | else | |
8473 | lt_cv_prog_compiler_rtti_exceptions=no | |
8474 | ac_outfile=conftest.$ac_objext | |
8475 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8476 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
8477 | # Insert the option either (1) after the last *FLAGS variable, or | |
8478 | # (2) before a word containing "conftest.", or (3) at the end. | |
8479 | # Note that $ac_compile itself does not contain backslashes and begins | |
8480 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8481 | # The option is referenced via a variable to avoid confusing sed. | |
8482 | lt_compile=`echo "$ac_compile" | $SED \ | |
8483 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8484 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8485 | -e 's:$: $lt_compiler_flag:'` | |
8486 | (eval echo "\"\$as_me:8486: $lt_compile\"" >&5) | |
8487 | (eval "$lt_compile" 2>conftest.err) | |
8488 | ac_status=$? | |
8489 | cat conftest.err >&5 | |
8490 | echo "$as_me:8490: \$? = $ac_status" >&5 | |
8491 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
8492 | # The compiler can only warn and ignore the option if not recognized | |
8493 | # So say no if there are warnings other than the usual output. | |
8494 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
8495 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8496 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8497 | lt_cv_prog_compiler_rtti_exceptions=yes | |
8498 | fi | |
8499 | fi | |
8500 | $RM conftest* | |
d9898ee8 | 8501 | |
8d138742 CE |
8502 | fi |
8503 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
8504 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
d9898ee8 | 8505 | |
8d138742 CE |
8506 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
8507 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
8508 | else | |
8509 | : | |
8510 | fi | |
d9898ee8 | 8511 | |
8d138742 | 8512 | fi |
d9898ee8 | 8513 | |
d9898ee8 | 8514 | |
d9898ee8 | 8515 | |
d9898ee8 | 8516 | |
d9898ee8 | 8517 | |
d9898ee8 | 8518 | |
8d138742 CE |
8519 | lt_prog_compiler_wl= |
8520 | lt_prog_compiler_pic= | |
8521 | lt_prog_compiler_static= | |
d9898ee8 | 8522 | |
8d138742 CE |
8523 | { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
8524 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
d9898ee8 | 8525 | |
8d138742 CE |
8526 | if test "$GCC" = yes; then |
8527 | lt_prog_compiler_wl='-Wl,' | |
8528 | lt_prog_compiler_static='-static' | |
d9898ee8 | 8529 | |
8d138742 CE |
8530 | case $host_os in |
8531 | aix*) | |
8532 | # All AIX code is PIC. | |
8533 | if test "$host_cpu" = ia64; then | |
8534 | # AIX 5 now supports IA64 processor | |
8535 | lt_prog_compiler_static='-Bstatic' | |
8536 | fi | |
8537 | ;; | |
d9898ee8 | 8538 | |
8d138742 CE |
8539 | amigaos*) |
8540 | case $host_cpu in | |
8541 | powerpc) | |
8542 | # see comment about AmigaOS4 .so support | |
8543 | lt_prog_compiler_pic='-fPIC' | |
8544 | ;; | |
8545 | m68k) | |
8546 | # FIXME: we need at least 68020 code to build shared libraries, but | |
8547 | # adding the `-m68020' flag to GCC prevents building anything better, | |
8548 | # like `-m68040'. | |
8549 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
8550 | ;; | |
8551 | esac | |
8552 | ;; | |
d9898ee8 | 8553 | |
8d138742 CE |
8554 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
8555 | # PIC is the default for these OSes. | |
8556 | ;; | |
d9898ee8 | 8557 | |
8d138742 CE |
8558 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
8559 | # This hack is so that the source file can tell whether it is being | |
8560 | # built for inclusion in a dll (and should export symbols for example). | |
8561 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
8562 | # (--disable-auto-import) libraries | |
8563 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8564 | ;; | |
d9898ee8 | 8565 | |
8d138742 CE |
8566 | darwin* | rhapsody*) |
8567 | # PIC is the default on this platform | |
8568 | # Common symbols not allowed in MH_DYLIB files | |
8569 | lt_prog_compiler_pic='-fno-common' | |
8570 | ;; | |
d9898ee8 | 8571 | |
8d138742 CE |
8572 | hpux*) |
8573 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
8574 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
8575 | # sets the default TLS model and affects inlining. | |
8576 | case $host_cpu in | |
8577 | hppa*64*) | |
8578 | # +Z the default | |
8579 | ;; | |
8580 | *) | |
8581 | lt_prog_compiler_pic='-fPIC' | |
8582 | ;; | |
8583 | esac | |
8584 | ;; | |
d9898ee8 | 8585 | |
8d138742 CE |
8586 | interix[3-9]*) |
8587 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
8588 | # Instead, we relocate shared libraries at runtime. | |
8589 | ;; | |
d9898ee8 | 8590 | |
8d138742 CE |
8591 | msdosdjgpp*) |
8592 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
8593 | # on systems that don't support them. | |
8594 | lt_prog_compiler_can_build_shared=no | |
8595 | enable_shared=no | |
8596 | ;; | |
d9898ee8 | 8597 | |
8d138742 CE |
8598 | *nto* | *qnx*) |
8599 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8600 | # it will coredump. | |
8601 | lt_prog_compiler_pic='-fPIC -shared' | |
8602 | ;; | |
d9898ee8 | 8603 | |
8d138742 CE |
8604 | sysv4*MP*) |
8605 | if test -d /usr/nec; then | |
8606 | lt_prog_compiler_pic=-Kconform_pic | |
8607 | fi | |
8608 | ;; | |
d9898ee8 | 8609 | |
8d138742 CE |
8610 | *) |
8611 | lt_prog_compiler_pic='-fPIC' | |
8612 | ;; | |
8613 | esac | |
8614 | else | |
8615 | # PORTME Check for flag to pass linker flags through the system compiler. | |
8616 | case $host_os in | |
8617 | aix*) | |
8618 | lt_prog_compiler_wl='-Wl,' | |
8619 | if test "$host_cpu" = ia64; then | |
8620 | # AIX 5 now supports IA64 processor | |
8621 | lt_prog_compiler_static='-Bstatic' | |
8622 | else | |
8623 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
8624 | fi | |
8625 | ;; | |
d9898ee8 | 8626 | |
8d138742 CE |
8627 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
8628 | # This hack is so that the source file can tell whether it is being | |
8629 | # built for inclusion in a dll (and should export symbols for example). | |
8630 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8631 | ;; | |
d9898ee8 | 8632 | |
8d138742 CE |
8633 | hpux9* | hpux10* | hpux11*) |
8634 | lt_prog_compiler_wl='-Wl,' | |
8635 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
8636 | # not for PA HP-UX. | |
8637 | case $host_cpu in | |
8638 | hppa*64*|ia64*) | |
8639 | # +Z the default | |
8640 | ;; | |
8641 | *) | |
8642 | lt_prog_compiler_pic='+Z' | |
8643 | ;; | |
8644 | esac | |
8645 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
8646 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
8647 | ;; | |
d9898ee8 | 8648 | |
8d138742 CE |
8649 | irix5* | irix6* | nonstopux*) |
8650 | lt_prog_compiler_wl='-Wl,' | |
8651 | # PIC (with -KPIC) is the default. | |
8652 | lt_prog_compiler_static='-non_shared' | |
8653 | ;; | |
d9898ee8 | 8654 | |
8d138742 CE |
8655 | linux* | k*bsd*-gnu) |
8656 | case $cc_basename in | |
8657 | # old Intel for x86_64 which still supported -KPIC. | |
8658 | ecc*) | |
8659 | lt_prog_compiler_wl='-Wl,' | |
8660 | lt_prog_compiler_pic='-KPIC' | |
8661 | lt_prog_compiler_static='-static' | |
8662 | ;; | |
8663 | # icc used to be incompatible with GCC. | |
8664 | # ICC 10 doesn't accept -KPIC any more. | |
8665 | icc* | ifort*) | |
8666 | lt_prog_compiler_wl='-Wl,' | |
8667 | lt_prog_compiler_pic='-fPIC' | |
8668 | lt_prog_compiler_static='-static' | |
8669 | ;; | |
8670 | # Lahey Fortran 8.1. | |
8671 | lf95*) | |
8672 | lt_prog_compiler_wl='-Wl,' | |
8673 | lt_prog_compiler_pic='--shared' | |
8674 | lt_prog_compiler_static='--static' | |
8675 | ;; | |
8676 | pgcc* | pgf77* | pgf90* | pgf95*) | |
8677 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
8678 | # which looks to be a dead project) | |
8679 | lt_prog_compiler_wl='-Wl,' | |
8680 | lt_prog_compiler_pic='-fpic' | |
8681 | lt_prog_compiler_static='-Bstatic' | |
8682 | ;; | |
8683 | ccc*) | |
8684 | lt_prog_compiler_wl='-Wl,' | |
8685 | # All Alpha code is PIC. | |
8686 | lt_prog_compiler_static='-non_shared' | |
8687 | ;; | |
8688 | xl*) | |
8689 | # IBM XL C 8.0/Fortran 10.1 on PPC | |
8690 | lt_prog_compiler_wl='-Wl,' | |
8691 | lt_prog_compiler_pic='-qpic' | |
8692 | lt_prog_compiler_static='-qstaticlink' | |
8693 | ;; | |
8694 | *) | |
8695 | case `$CC -V 2>&1 | sed 5q` in | |
8696 | *Sun\ C*) | |
8697 | # Sun C 5.9 | |
8698 | lt_prog_compiler_pic='-KPIC' | |
8699 | lt_prog_compiler_static='-Bstatic' | |
8700 | lt_prog_compiler_wl='-Wl,' | |
8701 | ;; | |
8702 | *Sun\ F*) | |
8703 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
8704 | lt_prog_compiler_pic='-KPIC' | |
8705 | lt_prog_compiler_static='-Bstatic' | |
8706 | lt_prog_compiler_wl='' | |
8707 | ;; | |
8708 | esac | |
8709 | ;; | |
8710 | esac | |
8711 | ;; | |
d9898ee8 | 8712 | |
8d138742 CE |
8713 | newsos6) |
8714 | lt_prog_compiler_pic='-KPIC' | |
8715 | lt_prog_compiler_static='-Bstatic' | |
8716 | ;; | |
d9898ee8 | 8717 | |
8d138742 CE |
8718 | *nto* | *qnx*) |
8719 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8720 | # it will coredump. | |
8721 | lt_prog_compiler_pic='-fPIC -shared' | |
8722 | ;; | |
d9898ee8 | 8723 | |
8d138742 CE |
8724 | osf3* | osf4* | osf5*) |
8725 | lt_prog_compiler_wl='-Wl,' | |
8726 | # All OSF/1 code is PIC. | |
8727 | lt_prog_compiler_static='-non_shared' | |
8728 | ;; | |
d9898ee8 | 8729 | |
8d138742 CE |
8730 | rdos*) |
8731 | lt_prog_compiler_static='-non_shared' | |
8732 | ;; | |
d9898ee8 | 8733 | |
8d138742 CE |
8734 | solaris*) |
8735 | lt_prog_compiler_pic='-KPIC' | |
8736 | lt_prog_compiler_static='-Bstatic' | |
8737 | case $cc_basename in | |
8738 | f77* | f90* | f95*) | |
8739 | lt_prog_compiler_wl='-Qoption ld ';; | |
8740 | *) | |
8741 | lt_prog_compiler_wl='-Wl,';; | |
8742 | esac | |
8743 | ;; | |
d9898ee8 | 8744 | |
8d138742 CE |
8745 | sunos4*) |
8746 | lt_prog_compiler_wl='-Qoption ld ' | |
8747 | lt_prog_compiler_pic='-PIC' | |
8748 | lt_prog_compiler_static='-Bstatic' | |
8749 | ;; | |
d9898ee8 | 8750 | |
8d138742 CE |
8751 | sysv4 | sysv4.2uw2* | sysv4.3*) |
8752 | lt_prog_compiler_wl='-Wl,' | |
8753 | lt_prog_compiler_pic='-KPIC' | |
8754 | lt_prog_compiler_static='-Bstatic' | |
8755 | ;; | |
dd184caf | 8756 | |
8d138742 CE |
8757 | sysv4*MP*) |
8758 | if test -d /usr/nec ;then | |
8759 | lt_prog_compiler_pic='-Kconform_pic' | |
8760 | lt_prog_compiler_static='-Bstatic' | |
8761 | fi | |
8762 | ;; | |
d9898ee8 | 8763 | |
8d138742 CE |
8764 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
8765 | lt_prog_compiler_wl='-Wl,' | |
8766 | lt_prog_compiler_pic='-KPIC' | |
8767 | lt_prog_compiler_static='-Bstatic' | |
8768 | ;; | |
d9898ee8 | 8769 | |
8d138742 CE |
8770 | unicos*) |
8771 | lt_prog_compiler_wl='-Wl,' | |
8772 | lt_prog_compiler_can_build_shared=no | |
8773 | ;; | |
d9898ee8 | 8774 | |
8d138742 CE |
8775 | uts4*) |
8776 | lt_prog_compiler_pic='-pic' | |
8777 | lt_prog_compiler_static='-Bstatic' | |
8778 | ;; | |
d9898ee8 | 8779 | |
8d138742 CE |
8780 | *) |
8781 | lt_prog_compiler_can_build_shared=no | |
8782 | ;; | |
d9898ee8 | 8783 | esac |
8d138742 | 8784 | fi |
d9898ee8 | 8785 | |
8d138742 CE |
8786 | case $host_os in |
8787 | # For platforms which do not support PIC, -DPIC is meaningless: | |
8788 | *djgpp*) | |
8789 | lt_prog_compiler_pic= | |
8790 | ;; | |
8791 | *) | |
8792 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
8793 | ;; | |
8794 | esac | |
8795 | { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 | |
8796 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
d9898ee8 | 8797 | |
d9898ee8 | 8798 | |
d9898ee8 | 8799 | |
d9898ee8 | 8800 | |
8801 | ||
d9898ee8 | 8802 | |
8d138742 CE |
8803 | # |
8804 | # Check to make sure the PIC flag actually works. | |
8805 | # | |
8806 | if test -n "$lt_prog_compiler_pic"; then | |
8807 | { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
8808 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
8809 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then | |
8810 | $as_echo_n "(cached) " >&6 | |
8811 | else | |
8812 | lt_cv_prog_compiler_pic_works=no | |
8813 | ac_outfile=conftest.$ac_objext | |
8814 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8815 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
8816 | # Insert the option either (1) after the last *FLAGS variable, or | |
8817 | # (2) before a word containing "conftest.", or (3) at the end. | |
8818 | # Note that $ac_compile itself does not contain backslashes and begins | |
8819 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8820 | # The option is referenced via a variable to avoid confusing sed. | |
8821 | lt_compile=`echo "$ac_compile" | $SED \ | |
8822 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8823 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8824 | -e 's:$: $lt_compiler_flag:'` | |
8825 | (eval echo "\"\$as_me:8825: $lt_compile\"" >&5) | |
8826 | (eval "$lt_compile" 2>conftest.err) | |
8827 | ac_status=$? | |
8828 | cat conftest.err >&5 | |
8829 | echo "$as_me:8829: \$? = $ac_status" >&5 | |
8830 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
8831 | # The compiler can only warn and ignore the option if not recognized | |
8832 | # So say no if there are warnings other than the usual output. | |
8833 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
8834 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8835 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8836 | lt_cv_prog_compiler_pic_works=yes | |
8837 | fi | |
8838 | fi | |
8839 | $RM conftest* | |
d9898ee8 | 8840 | |
8d138742 CE |
8841 | fi |
8842 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 | |
8843 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
d9898ee8 | 8844 | |
8d138742 CE |
8845 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
8846 | case $lt_prog_compiler_pic in | |
8847 | "" | " "*) ;; | |
8848 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
8849 | esac | |
d9898ee8 | 8850 | else |
8d138742 CE |
8851 | lt_prog_compiler_pic= |
8852 | lt_prog_compiler_can_build_shared=no | |
d9898ee8 | 8853 | fi |
8d138742 | 8854 | |
d9898ee8 | 8855 | fi |
d9898ee8 | 8856 | |
8857 | ||
d9898ee8 | 8858 | |
d9898ee8 | 8859 | |
8860 | ||
dd184caf | 8861 | |
8d138742 CE |
8862 | # |
8863 | # Check to make sure the static flag actually works. | |
8864 | # | |
8865 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
8866 | { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
8867 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
8868 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then | |
8869 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 8870 | else |
8d138742 CE |
8871 | lt_cv_prog_compiler_static_works=no |
8872 | save_LDFLAGS="$LDFLAGS" | |
8873 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
8874 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
8875 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
8876 | # The linker can only warn and ignore the option if not recognized | |
8877 | # So say no if there are warnings | |
8878 | if test -s conftest.err; then | |
8879 | # Append any errors to the config.log. | |
8880 | cat conftest.err 1>&5 | |
8881 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
8882 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8883 | if diff conftest.exp conftest.er2 >/dev/null; then | |
8884 | lt_cv_prog_compiler_static_works=yes | |
8885 | fi | |
8886 | else | |
8887 | lt_cv_prog_compiler_static_works=yes | |
8888 | fi | |
8889 | fi | |
8890 | $RM -r conftest* | |
8891 | LDFLAGS="$save_LDFLAGS" | |
d9898ee8 | 8892 | |
d9898ee8 | 8893 | fi |
8d138742 CE |
8894 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 |
8895 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
8896 | ||
8897 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then | |
8898 | : | |
d9898ee8 | 8899 | else |
8d138742 | 8900 | lt_prog_compiler_static= |
d9898ee8 | 8901 | fi |
d9898ee8 | 8902 | |
8903 | ||
d9898ee8 | 8904 | |
d9898ee8 | 8905 | |
d9898ee8 | 8906 | |
d9898ee8 | 8907 | |
d9898ee8 | 8908 | |
8d138742 CE |
8909 | { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8910 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
8911 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | |
8912 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 8913 | else |
8d138742 CE |
8914 | lt_cv_prog_compiler_c_o=no |
8915 | $RM -r conftest 2>/dev/null | |
8916 | mkdir conftest | |
8917 | cd conftest | |
8918 | mkdir out | |
8919 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d9898ee8 | 8920 | |
8d138742 CE |
8921 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
8922 | # Insert the option either (1) after the last *FLAGS variable, or | |
8923 | # (2) before a word containing "conftest.", or (3) at the end. | |
8924 | # Note that $ac_compile itself does not contain backslashes and begins | |
8925 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8926 | lt_compile=`echo "$ac_compile" | $SED \ | |
8927 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8928 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8929 | -e 's:$: $lt_compiler_flag:'` | |
8930 | (eval echo "\"\$as_me:8930: $lt_compile\"" >&5) | |
8931 | (eval "$lt_compile" 2>out/conftest.err) | |
8932 | ac_status=$? | |
8933 | cat out/conftest.err >&5 | |
8934 | echo "$as_me:8934: \$? = $ac_status" >&5 | |
8935 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
8936 | then | |
8937 | # The compiler can only warn and ignore the option if not recognized | |
8938 | # So say no if there are warnings | |
8939 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
8940 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
8941 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8942 | lt_cv_prog_compiler_c_o=yes | |
8943 | fi | |
8944 | fi | |
8945 | chmod u+w . 2>&5 | |
8946 | $RM conftest* | |
8947 | # SGI C++ compiler will create directory out/ii_files/ for | |
8948 | # template instantiation | |
8949 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8950 | $RM out/* && rmdir out | |
8951 | cd .. | |
8952 | $RM -r conftest | |
8953 | $RM conftest* | |
d9898ee8 | 8954 | |
8d138742 CE |
8955 | fi |
8956 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 | |
8957 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
d9898ee8 | 8958 | |
d9898ee8 | 8959 | |
d9898ee8 | 8960 | |
d9898ee8 | 8961 | |
d9898ee8 | 8962 | |
8d138742 CE |
8963 | |
8964 | { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
8965 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
8966 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | |
8967 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 8968 | else |
8d138742 CE |
8969 | lt_cv_prog_compiler_c_o=no |
8970 | $RM -r conftest 2>/dev/null | |
8971 | mkdir conftest | |
8972 | cd conftest | |
8973 | mkdir out | |
8974 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d9898ee8 | 8975 | |
8d138742 CE |
8976 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
8977 | # Insert the option either (1) after the last *FLAGS variable, or | |
8978 | # (2) before a word containing "conftest.", or (3) at the end. | |
8979 | # Note that $ac_compile itself does not contain backslashes and begins | |
8980 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8981 | lt_compile=`echo "$ac_compile" | $SED \ | |
8982 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8983 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8984 | -e 's:$: $lt_compiler_flag:'` | |
8985 | (eval echo "\"\$as_me:8985: $lt_compile\"" >&5) | |
8986 | (eval "$lt_compile" 2>out/conftest.err) | |
8987 | ac_status=$? | |
8988 | cat out/conftest.err >&5 | |
8989 | echo "$as_me:8989: \$? = $ac_status" >&5 | |
8990 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
8991 | then | |
8992 | # The compiler can only warn and ignore the option if not recognized | |
8993 | # So say no if there are warnings | |
8994 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
8995 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
8996 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8997 | lt_cv_prog_compiler_c_o=yes | |
8998 | fi | |
8999 | fi | |
9000 | chmod u+w . 2>&5 | |
9001 | $RM conftest* | |
9002 | # SGI C++ compiler will create directory out/ii_files/ for | |
9003 | # template instantiation | |
9004 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9005 | $RM out/* && rmdir out | |
9006 | cd .. | |
9007 | $RM -r conftest | |
9008 | $RM conftest* | |
dd184caf | 9009 | |
d9898ee8 | 9010 | fi |
8d138742 CE |
9011 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
9012 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
dd184caf | 9013 | |
d9898ee8 | 9014 | |
d9898ee8 | 9015 | |
d9898ee8 | 9016 | |
8d138742 CE |
9017 | hard_links="nottested" |
9018 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
9019 | # do not overwrite the value of need_locks provided by the user | |
9020 | { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
9021 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
9022 | hard_links=yes | |
9023 | $RM conftest* | |
9024 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9025 | touch conftest.a | |
9026 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
9027 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9028 | { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 | |
9029 | $as_echo "$hard_links" >&6; } | |
9030 | if test "$hard_links" = no; then | |
9031 | { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
9032 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
9033 | need_locks=warn | |
9034 | fi | |
9035 | else | |
9036 | need_locks=no | |
9037 | fi | |
d9898ee8 | 9038 | |
d9898ee8 | 9039 | |
d9898ee8 | 9040 | |
dd184caf | 9041 | |
dd184caf | 9042 | |
d9898ee8 | 9043 | |
8d138742 CE |
9044 | { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
9045 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
d9898ee8 | 9046 | |
8d138742 CE |
9047 | runpath_var= |
9048 | allow_undefined_flag= | |
9049 | always_export_symbols=no | |
9050 | archive_cmds= | |
9051 | archive_expsym_cmds= | |
9052 | compiler_needs_object=no | |
9053 | enable_shared_with_static_runtimes=no | |
9054 | export_dynamic_flag_spec= | |
9055 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
9056 | hardcode_automatic=no | |
9057 | hardcode_direct=no | |
9058 | hardcode_direct_absolute=no | |
9059 | hardcode_libdir_flag_spec= | |
9060 | hardcode_libdir_flag_spec_ld= | |
9061 | hardcode_libdir_separator= | |
9062 | hardcode_minus_L=no | |
9063 | hardcode_shlibpath_var=unsupported | |
9064 | inherit_rpath=no | |
9065 | link_all_deplibs=unknown | |
9066 | module_cmds= | |
9067 | module_expsym_cmds= | |
9068 | old_archive_from_new_cmds= | |
9069 | old_archive_from_expsyms_cmds= | |
9070 | thread_safe_flag_spec= | |
9071 | whole_archive_flag_spec= | |
9072 | # include_expsyms should be a list of space-separated symbols to be *always* | |
9073 | # included in the symbol list | |
9074 | include_expsyms= | |
9075 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
9076 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
9077 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
9078 | # as well as any symbol that contains `d'. | |
9079 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
9080 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
9081 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
9082 | # the symbol is explicitly referenced. Since portable code cannot | |
9083 | # rely on this symbol name, it's probably fine to never include it in | |
9084 | # preloaded symbol tables. | |
9085 | # Exclude shared library initialization/finalization symbols. | |
9086 | extract_expsyms_cmds= | |
9087 | ||
9088 | case $host_os in | |
9089 | cygwin* | mingw* | pw32* | cegcc*) | |
9090 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
9091 | # When not using gcc, we currently assume that we are using | |
9092 | # Microsoft Visual C++. | |
9093 | if test "$GCC" != yes; then | |
9094 | with_gnu_ld=no | |
d9898ee8 | 9095 | fi |
9096 | ;; | |
8d138742 CE |
9097 | interix*) |
9098 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
9099 | with_gnu_ld=yes | |
d9898ee8 | 9100 | ;; |
8d138742 CE |
9101 | openbsd*) |
9102 | with_gnu_ld=no | |
9103 | ;; | |
9104 | esac | |
d9898ee8 | 9105 | |
8d138742 CE |
9106 | ld_shlibs=yes |
9107 | if test "$with_gnu_ld" = yes; then | |
9108 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
9109 | wlarc='${wl}' | |
9110 | ||
9111 | # Set some defaults for GNU ld with shared library support. These | |
9112 | # are reset later if shared libraries are not supported. Putting them | |
9113 | # here allows them to be overridden if necessary. | |
9114 | runpath_var=LD_RUN_PATH | |
9115 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9116 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
9117 | # ancient GNU ld didn't support --whole-archive et. al. | |
9118 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
9119 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
d9898ee8 | 9120 | else |
8d138742 | 9121 | whole_archive_flag_spec= |
d9898ee8 | 9122 | fi |
8d138742 CE |
9123 | supports_anon_versioning=no |
9124 | case `$LD -v 2>&1` in | |
9125 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
9126 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
9127 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
9128 | *\ 2.11.*) ;; # other 2.11 versions | |
9129 | *) supports_anon_versioning=yes ;; | |
d9898ee8 | 9130 | esac |
8d138742 CE |
9131 | |
9132 | # See if GNU ld supports shared libraries. | |
9133 | case $host_os in | |
9134 | aix[3-9]*) | |
9135 | # On AIX/PPC, the GNU linker is very broken | |
9136 | if test "$host_cpu" != ia64; then | |
9137 | ld_shlibs=no | |
9138 | cat <<_LT_EOF 1>&2 | |
9139 | ||
9140 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
9141 | *** to be unable to reliably create shared libraries on AIX. | |
9142 | *** Therefore, libtool is disabling shared libraries support. If you | |
9143 | *** really care for shared libraries, you may want to modify your PATH | |
9144 | *** so that a non-GNU linker is found, and then restart. | |
9145 | ||
9146 | _LT_EOF | |
d9898ee8 | 9147 | fi |
9148 | ;; | |
d9898ee8 | 9149 | |
8d138742 | 9150 | amigaos*) |
d9898ee8 | 9151 | case $host_cpu in |
8d138742 CE |
9152 | powerpc) |
9153 | # see comment about AmigaOS4 .so support | |
9154 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9155 | archive_expsym_cmds='' | |
9156 | ;; | |
9157 | m68k) | |
9158 | 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)' | |
9159 | hardcode_libdir_flag_spec='-L$libdir' | |
9160 | hardcode_minus_L=yes | |
d9898ee8 | 9161 | ;; |
9162 | esac | |
d9898ee8 | 9163 | ;; |
8d138742 CE |
9164 | |
9165 | beos*) | |
9166 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9167 | allow_undefined_flag=unsupported | |
9168 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
9169 | # support --undefined. This deserves some investigation. FIXME | |
9170 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9171 | else | |
9172 | ld_shlibs=no | |
9173 | fi | |
d9898ee8 | 9174 | ;; |
d9898ee8 | 9175 | |
8d138742 CE |
9176 | cygwin* | mingw* | pw32* | cegcc*) |
9177 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
9178 | # as there is no search path for DLLs. | |
9179 | hardcode_libdir_flag_spec='-L$libdir' | |
9180 | allow_undefined_flag=unsupported | |
9181 | always_export_symbols=no | |
9182 | enable_shared_with_static_runtimes=yes | |
9183 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
9184 | ||
9185 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
9186 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9187 | # If the export-symbols file already is a .def file (1st line | |
9188 | # is EXPORTS), use it as is; otherwise, prepend... | |
9189 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
9190 | cp $export_symbols $output_objdir/$soname.def; | |
d9898ee8 | 9191 | else |
8d138742 CE |
9192 | echo EXPORTS > $output_objdir/$soname.def; |
9193 | cat $export_symbols >> $output_objdir/$soname.def; | |
9194 | fi~ | |
9195 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9196 | else | |
9197 | ld_shlibs=no | |
9198 | fi | |
9199 | ;; | |
9200 | ||
9201 | interix[3-9]*) | |
9202 | hardcode_direct=no | |
9203 | hardcode_shlibpath_var=no | |
9204 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9205 | export_dynamic_flag_spec='${wl}-E' | |
9206 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
9207 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
9208 | # default) and relocated if they conflict, which is a slow very memory | |
9209 | # consuming and fragmenting process. To avoid this, we pick a random, | |
9210 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
9211 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
9212 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
9213 | 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' | |
9214 | ;; | |
9215 | ||
9216 | gnu* | linux* | tpf* | k*bsd*-gnu) | |
9217 | tmp_diet=no | |
9218 | if test "$host_os" = linux-dietlibc; then | |
9219 | case $cc_basename in | |
9220 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
9221 | esac | |
9222 | fi | |
9223 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
9224 | && test "$tmp_diet" = no | |
9225 | then | |
9226 | tmp_addflag= | |
9227 | tmp_sharedflag='-shared' | |
9228 | case $cc_basename,$host_cpu in | |
9229 | pgcc*) # Portland Group C compiler | |
9230 | 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' | |
9231 | tmp_addflag=' $pic_flag' | |
d9898ee8 | 9232 | ;; |
8d138742 CE |
9233 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
9234 | 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' | |
9235 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
9236 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
9237 | tmp_addflag=' -i_dynamic' ;; | |
9238 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
9239 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
9240 | ifc* | ifort*) # Intel Fortran compiler | |
9241 | tmp_addflag=' -nofor_main' ;; | |
9242 | lf95*) # Lahey Fortran 8.1 | |
9243 | whole_archive_flag_spec= | |
9244 | tmp_sharedflag='--shared' ;; | |
9245 | xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
9246 | tmp_sharedflag='-qmkshrobj' | |
9247 | tmp_addflag= ;; | |
d9898ee8 | 9248 | esac |
ac40fd9e | 9249 | case `$CC -V 2>&1 | sed 5q` in |
8d138742 CE |
9250 | *Sun\ C*) # Sun C 5.9 |
9251 | 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' | |
9252 | compiler_needs_object=yes | |
9253 | tmp_sharedflag='-G' ;; | |
9254 | *Sun\ F*) # Sun Fortran 8.3 | |
9255 | tmp_sharedflag='-G' ;; | |
9256 | esac | |
9257 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9258 | ||
9259 | if test "x$supports_anon_versioning" = xyes; then | |
9260 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9261 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9262 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9263 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
9264 | fi | |
9265 | ||
9266 | case $cc_basename in | |
9267 | xlf*) | |
9268 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
9269 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
9270 | hardcode_libdir_flag_spec= | |
9271 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
9272 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
9273 | if test "x$supports_anon_versioning" = xyes; then | |
9274 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9275 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9276 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9277 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
9278 | fi | |
ac40fd9e | 9279 | ;; |
9280 | esac | |
8d138742 CE |
9281 | else |
9282 | ld_shlibs=no | |
ac40fd9e | 9283 | fi |
8d138742 | 9284 | ;; |
d9898ee8 | 9285 | |
8d138742 CE |
9286 | netbsd*) |
9287 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9288 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
9289 | wlarc= | |
9290 | else | |
9291 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9292 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9293 | fi | |
9294 | ;; | |
d9898ee8 | 9295 | |
8d138742 CE |
9296 | solaris*) |
9297 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
9298 | ld_shlibs=no | |
9299 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 9300 | |
8d138742 CE |
9301 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
9302 | *** create shared libraries on Solaris systems. Therefore, libtool | |
9303 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9304 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
9305 | *** your PATH or compiler configuration so that the native linker is | |
9306 | *** used, and then restart. | |
d9898ee8 | 9307 | |
8d138742 CE |
9308 | _LT_EOF |
9309 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9310 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9311 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9312 | else | |
9313 | ld_shlibs=no | |
9314 | fi | |
9315 | ;; | |
d9898ee8 | 9316 | |
8d138742 CE |
9317 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
9318 | case `$LD -v 2>&1` in | |
9319 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
9320 | ld_shlibs=no | |
9321 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 9322 | |
8d138742 CE |
9323 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
9324 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
9325 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9326 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
9327 | *** your PATH or compiler configuration so that the native linker is | |
9328 | *** used, and then restart. | |
d9898ee8 | 9329 | |
8d138742 | 9330 | _LT_EOF |
d9898ee8 | 9331 | ;; |
8d138742 CE |
9332 | *) |
9333 | # For security reasons, it is highly recommended that you always | |
9334 | # use absolute paths for naming shared libraries, and exclude the | |
9335 | # DT_RUNPATH tag from executables and libraries. But doing so | |
9336 | # requires that you compile everything twice, which is a pain. | |
9337 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9338 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9339 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9340 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9341 | else | |
9342 | ld_shlibs=no | |
9343 | fi | |
d9898ee8 | 9344 | ;; |
8d138742 CE |
9345 | esac |
9346 | ;; | |
d9898ee8 | 9347 | |
8d138742 CE |
9348 | sunos4*) |
9349 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9350 | wlarc= | |
9351 | hardcode_direct=yes | |
9352 | hardcode_shlibpath_var=no | |
9353 | ;; | |
d9898ee8 | 9354 | |
8d138742 CE |
9355 | *) |
9356 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9357 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9358 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9359 | else | |
9360 | ld_shlibs=no | |
9361 | fi | |
9362 | ;; | |
d9898ee8 | 9363 | esac |
8d138742 CE |
9364 | |
9365 | if test "$ld_shlibs" = no; then | |
9366 | runpath_var= | |
9367 | hardcode_libdir_flag_spec= | |
9368 | export_dynamic_flag_spec= | |
9369 | whole_archive_flag_spec= | |
9370 | fi | |
9371 | else | |
9372 | # PORTME fill in a description of your system's linker (not GNU ld) | |
9373 | case $host_os in | |
9374 | aix3*) | |
9375 | allow_undefined_flag=unsupported | |
9376 | always_export_symbols=yes | |
9377 | 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' | |
9378 | # Note: this linker hardcodes the directories in LIBPATH if there | |
9379 | # are no directories specified by -L. | |
9380 | hardcode_minus_L=yes | |
9381 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
9382 | # Neither direct hardcoding nor static linking is supported with a | |
9383 | # broken collect2. | |
9384 | hardcode_direct=unsupported | |
9385 | fi | |
9386 | ;; | |
9387 | ||
9388 | aix[4-9]*) | |
9389 | if test "$host_cpu" = ia64; then | |
9390 | # On IA64, the linker does run time linking by default, so we don't | |
9391 | # have to do anything special. | |
9392 | aix_use_runtimelinking=no | |
9393 | exp_sym_flag='-Bexport' | |
9394 | no_entry_flag="" | |
9395 | else | |
9396 | # If we're using GNU nm, then we don't want the "-C" option. | |
9397 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
9398 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
9399 | 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' | |
9400 | else | |
9401 | 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' | |
9402 | fi | |
9403 | aix_use_runtimelinking=no | |
9404 | ||
9405 | # Test if we are trying to use run time linking or normal | |
9406 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
9407 | # need to do runtime linking. | |
9408 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
9409 | for ld_flag in $LDFLAGS; do | |
9410 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
9411 | aix_use_runtimelinking=yes | |
9412 | break | |
9413 | fi | |
9414 | done | |
9415 | ;; | |
d9898ee8 | 9416 | esac |
d9898ee8 | 9417 | |
8d138742 CE |
9418 | exp_sym_flag='-bexport' |
9419 | no_entry_flag='-bnoentry' | |
9420 | fi | |
d9898ee8 | 9421 | |
8d138742 CE |
9422 | # When large executables or shared objects are built, AIX ld can |
9423 | # have problems creating the table of contents. If linking a library | |
9424 | # or program results in "error TOC overflow" add -mminimal-toc to | |
9425 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
9426 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
d9898ee8 | 9427 | |
8d138742 CE |
9428 | archive_cmds='' |
9429 | hardcode_direct=yes | |
9430 | hardcode_direct_absolute=yes | |
9431 | hardcode_libdir_separator=':' | |
9432 | link_all_deplibs=yes | |
9433 | file_list_spec='${wl}-f,' | |
9434 | ||
9435 | if test "$GCC" = yes; then | |
9436 | case $host_os in aix4.[012]|aix4.[012].*) | |
9437 | # We only want to do this on AIX 4.2 and lower, the check | |
9438 | # below for broken collect2 doesn't work under 4.3+ | |
9439 | collect2name=`${CC} -print-prog-name=collect2` | |
9440 | if test -f "$collect2name" && | |
9441 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
9442 | then | |
9443 | # We have reworked collect2 | |
9444 | : | |
d9898ee8 | 9445 | else |
8d138742 CE |
9446 | # We have old collect2 |
9447 | hardcode_direct=unsupported | |
9448 | # It fails to find uninstalled libraries when the uninstalled | |
9449 | # path is not listed in the libpath. Setting hardcode_minus_L | |
9450 | # to unsupported forces relinking | |
9451 | hardcode_minus_L=yes | |
9452 | hardcode_libdir_flag_spec='-L$libdir' | |
9453 | hardcode_libdir_separator= | |
d9898ee8 | 9454 | fi |
8d138742 CE |
9455 | ;; |
9456 | esac | |
9457 | shared_flag='-shared' | |
9458 | if test "$aix_use_runtimelinking" = yes; then | |
9459 | shared_flag="$shared_flag "'${wl}-G' | |
d9898ee8 | 9460 | fi |
8d138742 CE |
9461 | else |
9462 | # not using gcc | |
9463 | if test "$host_cpu" = ia64; then | |
9464 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
9465 | # chokes on -Wl,-G. The following line is correct: | |
9466 | shared_flag='-G' | |
9467 | else | |
9468 | if test "$aix_use_runtimelinking" = yes; then | |
9469 | shared_flag='${wl}-G' | |
9470 | else | |
9471 | shared_flag='${wl}-bM:SRE' | |
9472 | fi | |
9473 | fi | |
9474 | fi | |
d9898ee8 | 9475 | |
8d138742 CE |
9476 | export_dynamic_flag_spec='${wl}-bexpall' |
9477 | # It seems that -bexpall does not export symbols beginning with | |
9478 | # underscore (_), so it is better to generate a list of symbols to export. | |
9479 | always_export_symbols=yes | |
9480 | if test "$aix_use_runtimelinking" = yes; then | |
9481 | # Warning - without using the other runtime loading flags (-brtl), | |
9482 | # -berok will link without error, but may produce a broken library. | |
9483 | allow_undefined_flag='-berok' | |
9484 | # Determine the default libpath from the value encoded in an | |
9485 | # empty executable. | |
9486 | cat >conftest.$ac_ext <<_ACEOF | |
9487 | /* confdefs.h. */ | |
9488 | _ACEOF | |
9489 | cat confdefs.h >>conftest.$ac_ext | |
9490 | cat >>conftest.$ac_ext <<_ACEOF | |
9491 | /* end confdefs.h. */ | |
d9898ee8 | 9492 | |
8d138742 CE |
9493 | int |
9494 | main () | |
d9898ee8 | 9495 | { |
d9898ee8 | 9496 | |
8d138742 CE |
9497 | ; |
9498 | return 0; | |
9499 | } | |
9500 | _ACEOF | |
9501 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9502 | if { (ac_try="$ac_link" | |
9503 | case "(($ac_try" in | |
9504 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9505 | *) ac_try_echo=$ac_try;; | |
9506 | esac | |
9507 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9508 | $as_echo "$ac_try_echo") >&5 | |
9509 | (eval "$ac_link") 2>conftest.er1 | |
d9898ee8 | 9510 | ac_status=$? |
8d138742 CE |
9511 | grep -v '^ *+' conftest.er1 >conftest.err |
9512 | rm -f conftest.er1 | |
9513 | cat conftest.err >&5 | |
9514 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9515 | (exit $ac_status); } && { | |
9516 | test -z "$ac_c_werror_flag" || | |
9517 | test ! -s conftest.err | |
9518 | } && test -s conftest$ac_exeext && { | |
9519 | test "$cross_compiling" = yes || | |
9520 | $as_test_x conftest$ac_exeext | |
9521 | }; then | |
d9898ee8 | 9522 | |
8d138742 CE |
9523 | lt_aix_libpath_sed=' |
9524 | /Import File Strings/,/^$/ { | |
9525 | /^0/ { | |
9526 | s/^0 *\(.*\)$/\1/ | |
9527 | p | |
9528 | } | |
9529 | }' | |
9530 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9531 | # Check for a 64-bit object if we didn't find anything. | |
9532 | if test -z "$aix_libpath"; then | |
9533 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9534 | fi | |
9535 | else | |
9536 | $as_echo "$as_me: failed program was:" >&5 | |
9537 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 9538 | |
d9898ee8 | 9539 | |
d9898ee8 | 9540 | fi |
9541 | ||
8d138742 CE |
9542 | rm -rf conftest.dSYM |
9543 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
9544 | conftest$ac_exeext conftest.$ac_ext | |
9545 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
d9898ee8 | 9546 | |
8d138742 CE |
9547 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
9548 | 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" | |
9549 | else | |
9550 | if test "$host_cpu" = ia64; then | |
9551 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
9552 | allow_undefined_flag="-z nodefs" | |
9553 | 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" | |
9554 | else | |
9555 | # Determine the default libpath from the value encoded in an | |
9556 | # empty executable. | |
9557 | cat >conftest.$ac_ext <<_ACEOF | |
9558 | /* confdefs.h. */ | |
9559 | _ACEOF | |
9560 | cat confdefs.h >>conftest.$ac_ext | |
9561 | cat >>conftest.$ac_ext <<_ACEOF | |
9562 | /* end confdefs.h. */ | |
ac40fd9e | 9563 | |
8d138742 CE |
9564 | int |
9565 | main () | |
9566 | { | |
ac40fd9e | 9567 | |
8d138742 CE |
9568 | ; |
9569 | return 0; | |
9570 | } | |
9571 | _ACEOF | |
9572 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9573 | if { (ac_try="$ac_link" | |
9574 | case "(($ac_try" in | |
9575 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9576 | *) ac_try_echo=$ac_try;; | |
d9898ee8 | 9577 | esac |
8d138742 CE |
9578 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9579 | $as_echo "$ac_try_echo") >&5 | |
9580 | (eval "$ac_link") 2>conftest.er1 | |
9581 | ac_status=$? | |
9582 | grep -v '^ *+' conftest.er1 >conftest.err | |
9583 | rm -f conftest.er1 | |
9584 | cat conftest.err >&5 | |
9585 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9586 | (exit $ac_status); } && { | |
9587 | test -z "$ac_c_werror_flag" || | |
9588 | test ! -s conftest.err | |
9589 | } && test -s conftest$ac_exeext && { | |
9590 | test "$cross_compiling" = yes || | |
9591 | $as_test_x conftest$ac_exeext | |
9592 | }; then | |
d9898ee8 | 9593 | |
8d138742 CE |
9594 | lt_aix_libpath_sed=' |
9595 | /Import File Strings/,/^$/ { | |
9596 | /^0/ { | |
9597 | s/^0 *\(.*\)$/\1/ | |
9598 | p | |
9599 | } | |
9600 | }' | |
9601 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9602 | # Check for a 64-bit object if we didn't find anything. | |
9603 | if test -z "$aix_libpath"; then | |
9604 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9605 | fi | |
9606 | else | |
9607 | $as_echo "$as_me: failed program was:" >&5 | |
9608 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 9609 | |
d9898ee8 | 9610 | |
8d138742 | 9611 | fi |
d9898ee8 | 9612 | |
8d138742 CE |
9613 | rm -rf conftest.dSYM |
9614 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
9615 | conftest$ac_exeext conftest.$ac_ext | |
9616 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
d9898ee8 | 9617 | |
8d138742 CE |
9618 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
9619 | # Warning - without using the other run time loading flags, | |
9620 | # -berok will link without error, but may produce a broken library. | |
9621 | no_undefined_flag=' ${wl}-bernotok' | |
9622 | allow_undefined_flag=' ${wl}-berok' | |
9623 | # Exported symbols can be pulled into shared objects from archives | |
9624 | whole_archive_flag_spec='$convenience' | |
9625 | archive_cmds_need_lc=yes | |
9626 | # This is similar to how AIX traditionally builds its shared libraries. | |
9627 | 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' | |
9628 | fi | |
d9898ee8 | 9629 | fi |
9630 | ;; | |
8d138742 | 9631 | |
d9898ee8 | 9632 | amigaos*) |
d9898ee8 | 9633 | case $host_cpu in |
8d138742 CE |
9634 | powerpc) |
9635 | # see comment about AmigaOS4 .so support | |
9636 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9637 | archive_expsym_cmds='' | |
9638 | ;; | |
9639 | m68k) | |
9640 | 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)' | |
9641 | hardcode_libdir_flag_spec='-L$libdir' | |
9642 | hardcode_minus_L=yes | |
9643 | ;; | |
d9898ee8 | 9644 | esac |
9645 | ;; | |
d9898ee8 | 9646 | |
8d138742 CE |
9647 | bsdi[45]*) |
9648 | export_dynamic_flag_spec=-rdynamic | |
9649 | ;; | |
d9898ee8 | 9650 | |
8d138742 CE |
9651 | cygwin* | mingw* | pw32* | cegcc*) |
9652 | # When not using gcc, we currently assume that we are using | |
9653 | # Microsoft Visual C++. | |
9654 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
9655 | # no search path for DLLs. | |
9656 | hardcode_libdir_flag_spec=' ' | |
9657 | allow_undefined_flag=unsupported | |
9658 | # Tell ltmain to make .lib files, not .a files. | |
9659 | libext=lib | |
9660 | # Tell ltmain to make .dll files, not .so files. | |
9661 | shrext_cmds=".dll" | |
9662 | # FIXME: Setting linknames here is a bad hack. | |
9663 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
9664 | # The linker will automatically build a .lib file if we build a DLL. | |
9665 | old_archive_from_new_cmds='true' | |
9666 | # FIXME: Should let the user specify the lib program. | |
9667 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
9668 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
9669 | enable_shared_with_static_runtimes=yes | |
9670 | ;; | |
d9898ee8 | 9671 | |
8d138742 | 9672 | darwin* | rhapsody*) |
d9898ee8 | 9673 | |
d9898ee8 | 9674 | |
8d138742 CE |
9675 | archive_cmds_need_lc=no |
9676 | hardcode_direct=no | |
9677 | hardcode_automatic=yes | |
9678 | hardcode_shlibpath_var=unsupported | |
9679 | whole_archive_flag_spec='' | |
9680 | link_all_deplibs=yes | |
9681 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
9682 | case $cc_basename in | |
9683 | ifort*) _lt_dar_can_shared=yes ;; | |
9684 | *) _lt_dar_can_shared=$GCC ;; | |
9685 | esac | |
9686 | if test "$_lt_dar_can_shared" = "yes"; then | |
9687 | output_verbose_link_cmd=echo | |
9688 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
9689 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
9690 | 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}" | |
9691 | 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 | 9692 | |
8d138742 CE |
9693 | else |
9694 | ld_shlibs=no | |
9695 | fi | |
d9898ee8 | 9696 | |
8d138742 | 9697 | ;; |
d9898ee8 | 9698 | |
8d138742 CE |
9699 | dgux*) |
9700 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9701 | hardcode_libdir_flag_spec='-L$libdir' | |
9702 | hardcode_shlibpath_var=no | |
9703 | ;; | |
d9898ee8 | 9704 | |
8d138742 CE |
9705 | freebsd1*) |
9706 | ld_shlibs=no | |
9707 | ;; | |
d9898ee8 | 9708 | |
8d138742 CE |
9709 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
9710 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
9711 | # does not break anything, and helps significantly (at the cost of a little | |
9712 | # extra space). | |
9713 | freebsd2.2*) | |
9714 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
9715 | hardcode_libdir_flag_spec='-R$libdir' | |
9716 | hardcode_direct=yes | |
9717 | hardcode_shlibpath_var=no | |
9718 | ;; | |
d9898ee8 | 9719 | |
8d138742 CE |
9720 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
9721 | freebsd2*) | |
9722 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9723 | hardcode_direct=yes | |
9724 | hardcode_minus_L=yes | |
9725 | hardcode_shlibpath_var=no | |
9726 | ;; | |
d9898ee8 | 9727 | |
8d138742 CE |
9728 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
9729 | freebsd* | dragonfly*) | |
9730 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
9731 | hardcode_libdir_flag_spec='-R$libdir' | |
9732 | hardcode_direct=yes | |
9733 | hardcode_shlibpath_var=no | |
9734 | ;; | |
d9898ee8 | 9735 | |
8d138742 CE |
9736 | hpux9*) |
9737 | if test "$GCC" = yes; then | |
9738 | 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' | |
9739 | else | |
9740 | 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' | |
9741 | fi | |
9742 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9743 | hardcode_libdir_separator=: | |
9744 | hardcode_direct=yes | |
d9898ee8 | 9745 | |
8d138742 CE |
9746 | # hardcode_minus_L: Not really in the search PATH, |
9747 | # but as the default location of the library. | |
9748 | hardcode_minus_L=yes | |
9749 | export_dynamic_flag_spec='${wl}-E' | |
9750 | ;; | |
d9898ee8 | 9751 | |
8d138742 CE |
9752 | hpux10*) |
9753 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
9754 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9755 | else | |
9756 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9757 | fi | |
9758 | if test "$with_gnu_ld" = no; then | |
9759 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9760 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
9761 | hardcode_libdir_separator=: | |
9762 | hardcode_direct=yes | |
9763 | hardcode_direct_absolute=yes | |
9764 | export_dynamic_flag_spec='${wl}-E' | |
9765 | # hardcode_minus_L: Not really in the search PATH, | |
9766 | # but as the default location of the library. | |
9767 | hardcode_minus_L=yes | |
9768 | fi | |
d9898ee8 | 9769 | ;; |
d9898ee8 | 9770 | |
8d138742 CE |
9771 | hpux11*) |
9772 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
9773 | case $host_cpu in | |
9774 | hppa*64*) | |
9775 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9776 | ;; | |
9777 | ia64*) | |
9778 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
9779 | ;; | |
9780 | *) | |
9781 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9782 | ;; | |
9783 | esac | |
d9898ee8 | 9784 | else |
8d138742 CE |
9785 | case $host_cpu in |
9786 | hppa*64*) | |
9787 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9788 | ;; | |
9789 | ia64*) | |
9790 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
9791 | ;; | |
9792 | *) | |
9793 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9794 | ;; | |
9795 | esac | |
9796 | fi | |
9797 | if test "$with_gnu_ld" = no; then | |
9798 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9799 | hardcode_libdir_separator=: | |
9800 | ||
9801 | case $host_cpu in | |
9802 | hppa*64*|ia64*) | |
9803 | hardcode_direct=no | |
9804 | hardcode_shlibpath_var=no | |
9805 | ;; | |
9806 | *) | |
9807 | hardcode_direct=yes | |
9808 | hardcode_direct_absolute=yes | |
9809 | export_dynamic_flag_spec='${wl}-E' | |
9810 | ||
9811 | # hardcode_minus_L: Not really in the search PATH, | |
9812 | # but as the default location of the library. | |
9813 | hardcode_minus_L=yes | |
9814 | ;; | |
9815 | esac | |
d9898ee8 | 9816 | fi |
d9898ee8 | 9817 | ;; |
d9898ee8 | 9818 | |
8d138742 CE |
9819 | irix5* | irix6* | nonstopux*) |
9820 | if test "$GCC" = yes; then | |
9821 | 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' | |
9822 | # Try to use the -exported_symbol ld option, if it does not | |
9823 | # work, assume that -exports_file does not work either and | |
9824 | # implicitly export all symbols. | |
9825 | save_LDFLAGS="$LDFLAGS" | |
9826 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
9827 | cat >conftest.$ac_ext <<_ACEOF | |
9828 | int foo(void) {} | |
9829 | _ACEOF | |
9830 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9831 | if { (ac_try="$ac_link" | |
9832 | case "(($ac_try" in | |
9833 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9834 | *) ac_try_echo=$ac_try;; | |
9835 | esac | |
9836 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9837 | $as_echo "$ac_try_echo") >&5 | |
9838 | (eval "$ac_link") 2>conftest.er1 | |
9839 | ac_status=$? | |
9840 | grep -v '^ *+' conftest.er1 >conftest.err | |
9841 | rm -f conftest.er1 | |
9842 | cat conftest.err >&5 | |
9843 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9844 | (exit $ac_status); } && { | |
9845 | test -z "$ac_c_werror_flag" || | |
9846 | test ! -s conftest.err | |
9847 | } && test -s conftest$ac_exeext && { | |
9848 | test "$cross_compiling" = yes || | |
9849 | $as_test_x conftest$ac_exeext | |
9850 | }; then | |
9851 | 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' | |
ac40fd9e | 9852 | |
8d138742 CE |
9853 | else |
9854 | $as_echo "$as_me: failed program was:" >&5 | |
9855 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 9856 | |
d9898ee8 | 9857 | |
8d138742 | 9858 | fi |
d9898ee8 | 9859 | |
8d138742 CE |
9860 | rm -rf conftest.dSYM |
9861 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
9862 | conftest$ac_exeext conftest.$ac_ext | |
9863 | LDFLAGS="$save_LDFLAGS" | |
9864 | else | |
9865 | 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' | |
9866 | 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' | |
9867 | fi | |
9868 | archive_cmds_need_lc='no' | |
9869 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9870 | hardcode_libdir_separator=: | |
9871 | inherit_rpath=yes | |
9872 | link_all_deplibs=yes | |
9873 | ;; | |
d9898ee8 | 9874 | |
8d138742 CE |
9875 | netbsd*) |
9876 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9877 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
d9898ee8 | 9878 | else |
8d138742 | 9879 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
d9898ee8 | 9880 | fi |
8d138742 CE |
9881 | hardcode_libdir_flag_spec='-R$libdir' |
9882 | hardcode_direct=yes | |
9883 | hardcode_shlibpath_var=no | |
d9898ee8 | 9884 | ;; |
d9898ee8 | 9885 | |
8d138742 CE |
9886 | newsos6) |
9887 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9888 | hardcode_direct=yes | |
9889 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9890 | hardcode_libdir_separator=: | |
9891 | hardcode_shlibpath_var=no | |
9892 | ;; | |
d9898ee8 | 9893 | |
8d138742 CE |
9894 | *nto* | *qnx*) |
9895 | ;; | |
d9898ee8 | 9896 | |
8d138742 CE |
9897 | openbsd*) |
9898 | if test -f /usr/libexec/ld.so; then | |
9899 | hardcode_direct=yes | |
9900 | hardcode_shlibpath_var=no | |
9901 | hardcode_direct_absolute=yes | |
9902 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
9903 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9904 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
9905 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9906 | export_dynamic_flag_spec='${wl}-E' | |
9907 | else | |
9908 | case $host_os in | |
9909 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
9910 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9911 | hardcode_libdir_flag_spec='-R$libdir' | |
9912 | ;; | |
9913 | *) | |
9914 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9915 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9916 | ;; | |
9917 | esac | |
9918 | fi | |
9919 | else | |
9920 | ld_shlibs=no | |
9921 | fi | |
9922 | ;; | |
d9898ee8 | 9923 | |
8d138742 CE |
9924 | os2*) |
9925 | hardcode_libdir_flag_spec='-L$libdir' | |
9926 | hardcode_minus_L=yes | |
9927 | allow_undefined_flag=unsupported | |
9928 | 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' | |
9929 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
9930 | ;; | |
d9898ee8 | 9931 | |
8d138742 CE |
9932 | osf3*) |
9933 | if test "$GCC" = yes; then | |
9934 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
9935 | 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' | |
9936 | else | |
9937 | allow_undefined_flag=' -expect_unresolved \*' | |
9938 | 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' | |
9939 | fi | |
9940 | archive_cmds_need_lc='no' | |
9941 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9942 | hardcode_libdir_separator=: | |
9943 | ;; | |
d9898ee8 | 9944 | |
8d138742 CE |
9945 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
9946 | if test "$GCC" = yes; then | |
9947 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
9948 | 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' | |
9949 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9950 | else | |
9951 | allow_undefined_flag=' -expect_unresolved \*' | |
9952 | 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' | |
9953 | 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~ | |
9954 | $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' | |
9955 | ||
9956 | # Both c and cxx compiler support -rpath directly | |
9957 | hardcode_libdir_flag_spec='-rpath $libdir' | |
9958 | fi | |
9959 | archive_cmds_need_lc='no' | |
9960 | hardcode_libdir_separator=: | |
d9898ee8 | 9961 | ;; |
8d138742 CE |
9962 | |
9963 | solaris*) | |
9964 | no_undefined_flag=' -z defs' | |
9965 | if test "$GCC" = yes; then | |
9966 | wlarc='${wl}' | |
9967 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9968 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9969 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
d9898ee8 | 9970 | else |
8d138742 CE |
9971 | case `$CC -V 2>&1` in |
9972 | *"Compilers 5.0"*) | |
9973 | wlarc='' | |
9974 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9975 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9976 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
9977 | ;; | |
9978 | *) | |
9979 | wlarc='${wl}' | |
9980 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9981 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9982 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9983 | ;; | |
9984 | esac | |
d9898ee8 | 9985 | fi |
8d138742 CE |
9986 | hardcode_libdir_flag_spec='-R$libdir' |
9987 | hardcode_shlibpath_var=no | |
9988 | case $host_os in | |
9989 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
9990 | *) | |
9991 | # The compiler driver will combine and reorder linker options, | |
9992 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
9993 | # but is careful enough not to reorder. | |
9994 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
9995 | if test "$GCC" = yes; then | |
9996 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
9997 | else | |
9998 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
9999 | fi | |
10000 | ;; | |
10001 | esac | |
10002 | link_all_deplibs=yes | |
d9898ee8 | 10003 | ;; |
8d138742 CE |
10004 | |
10005 | sunos4*) | |
10006 | if test "x$host_vendor" = xsequent; then | |
10007 | # Use $CC to link under sequent, because it throws in some extra .o | |
10008 | # files that make .init and .fini sections work. | |
10009 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10010 | else | |
10011 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
10012 | fi | |
10013 | hardcode_libdir_flag_spec='-L$libdir' | |
10014 | hardcode_direct=yes | |
10015 | hardcode_minus_L=yes | |
10016 | hardcode_shlibpath_var=no | |
d9898ee8 | 10017 | ;; |
d9898ee8 | 10018 | |
8d138742 CE |
10019 | sysv4) |
10020 | case $host_vendor in | |
10021 | sni) | |
10022 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10023 | hardcode_direct=yes # is this really true??? | |
10024 | ;; | |
10025 | siemens) | |
10026 | ## LD is ld it makes a PLAMLIB | |
10027 | ## CC just makes a GrossModule. | |
10028 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
10029 | reload_cmds='$CC -r -o $output$reload_objs' | |
10030 | hardcode_direct=no | |
10031 | ;; | |
10032 | motorola) | |
10033 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10034 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
10035 | ;; | |
10036 | esac | |
10037 | runpath_var='LD_RUN_PATH' | |
10038 | hardcode_shlibpath_var=no | |
10039 | ;; | |
d9898ee8 | 10040 | |
8d138742 CE |
10041 | sysv4.3*) |
10042 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10043 | hardcode_shlibpath_var=no | |
10044 | export_dynamic_flag_spec='-Bexport' | |
10045 | ;; | |
ac40fd9e | 10046 | |
8d138742 CE |
10047 | sysv4*MP*) |
10048 | if test -d /usr/nec; then | |
10049 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10050 | hardcode_shlibpath_var=no | |
10051 | runpath_var=LD_RUN_PATH | |
10052 | hardcode_runpath_var=yes | |
10053 | ld_shlibs=yes | |
10054 | fi | |
10055 | ;; | |
d9898ee8 | 10056 | |
8d138742 CE |
10057 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
10058 | no_undefined_flag='${wl}-z,text' | |
10059 | archive_cmds_need_lc=no | |
10060 | hardcode_shlibpath_var=no | |
10061 | runpath_var='LD_RUN_PATH' | |
d9898ee8 | 10062 | |
8d138742 CE |
10063 | if test "$GCC" = yes; then |
10064 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10065 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10066 | else | |
10067 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10068 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10069 | fi | |
10070 | ;; | |
d9898ee8 | 10071 | |
8d138742 CE |
10072 | sysv5* | sco3.2v5* | sco5v6*) |
10073 | # Note: We can NOT use -z defs as we might desire, because we do not | |
10074 | # link with -lc, and that would cause any symbols used from libc to | |
10075 | # always be unresolved, which means just about no library would | |
10076 | # ever link correctly. If we're not using GNU ld we use -z text | |
10077 | # though, which does catch some bad symbols but isn't as heavy-handed | |
10078 | # as -z defs. | |
10079 | no_undefined_flag='${wl}-z,text' | |
10080 | allow_undefined_flag='${wl}-z,nodefs' | |
10081 | archive_cmds_need_lc=no | |
10082 | hardcode_shlibpath_var=no | |
10083 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
10084 | hardcode_libdir_separator=':' | |
10085 | link_all_deplibs=yes | |
10086 | export_dynamic_flag_spec='${wl}-Bexport' | |
10087 | runpath_var='LD_RUN_PATH' | |
10088 | ||
10089 | if test "$GCC" = yes; then | |
10090 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10091 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10092 | else | |
10093 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10094 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10095 | fi | |
d9898ee8 | 10096 | ;; |
8d138742 CE |
10097 | |
10098 | uts4*) | |
10099 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10100 | hardcode_libdir_flag_spec='-L$libdir' | |
10101 | hardcode_shlibpath_var=no | |
d9898ee8 | 10102 | ;; |
d9898ee8 | 10103 | |
8d138742 CE |
10104 | *) |
10105 | ld_shlibs=no | |
10106 | ;; | |
10107 | esac | |
d9898ee8 | 10108 | |
8d138742 CE |
10109 | if test x$host_vendor = xsni; then |
10110 | case $host in | |
10111 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
10112 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
10113 | ;; | |
10114 | esac | |
d9898ee8 | 10115 | fi |
8d138742 | 10116 | fi |
d9898ee8 | 10117 | |
8d138742 CE |
10118 | { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
10119 | $as_echo "$ld_shlibs" >&6; } | |
10120 | test "$ld_shlibs" = no && can_build_shared=no | |
d9898ee8 | 10121 | |
8d138742 | 10122 | with_gnu_ld=$with_gnu_ld |
d9898ee8 | 10123 | |
d9898ee8 | 10124 | |
d9898ee8 | 10125 | |
d9898ee8 | 10126 | |
d9898ee8 | 10127 | |
d9898ee8 | 10128 | |
d9898ee8 | 10129 | |
d9898ee8 | 10130 | |
d9898ee8 | 10131 | |
d9898ee8 | 10132 | |
d9898ee8 | 10133 | |
ac40fd9e | 10134 | |
d9898ee8 | 10135 | |
d9898ee8 | 10136 | |
d9898ee8 | 10137 | |
8d138742 CE |
10138 | # |
10139 | # Do we need to explicitly link libc? | |
10140 | # | |
10141 | case "x$archive_cmds_need_lc" in | |
10142 | x|xyes) | |
10143 | # Assume -lc should be added | |
10144 | archive_cmds_need_lc=yes | |
d9898ee8 | 10145 | |
8d138742 CE |
10146 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
10147 | case $archive_cmds in | |
10148 | *'~'*) | |
10149 | # FIXME: we may have to deal with multi-command sequences. | |
10150 | ;; | |
10151 | '$CC '*) | |
10152 | # Test whether the compiler implicitly links with -lc since on some | |
10153 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
10154 | # to ld, don't add -lc before -lgcc. | |
10155 | { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
10156 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
10157 | $RM conftest* | |
10158 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10159 | ||
10160 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10161 | (eval $ac_compile) 2>&5 | |
10162 | ac_status=$? | |
10163 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10164 | (exit $ac_status); } 2>conftest.err; then | |
10165 | soname=conftest | |
10166 | lib=conftest | |
10167 | libobjs=conftest.$ac_objext | |
10168 | deplibs= | |
10169 | wl=$lt_prog_compiler_wl | |
10170 | pic_flag=$lt_prog_compiler_pic | |
10171 | compiler_flags=-v | |
10172 | linker_flags=-v | |
10173 | verstring= | |
10174 | output_objdir=. | |
10175 | libname=conftest | |
10176 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
10177 | allow_undefined_flag= | |
10178 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
10179 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
10180 | ac_status=$? | |
10181 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10182 | (exit $ac_status); } | |
10183 | then | |
10184 | archive_cmds_need_lc=no | |
10185 | else | |
10186 | archive_cmds_need_lc=yes | |
10187 | fi | |
10188 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
10189 | else | |
10190 | cat conftest.err 1>&5 | |
10191 | fi | |
10192 | $RM conftest* | |
10193 | { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 | |
10194 | $as_echo "$archive_cmds_need_lc" >&6; } | |
10195 | ;; | |
d9898ee8 | 10196 | esac |
10197 | fi | |
d9898ee8 | 10198 | ;; |
8d138742 | 10199 | esac |
d9898ee8 | 10200 | |
d9898ee8 | 10201 | |
d9898ee8 | 10202 | |
d9898ee8 | 10203 | |
d9898ee8 | 10204 | |
d9898ee8 | 10205 | |
d9898ee8 | 10206 | |
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 | |
d9898ee8 | 10236 | |
d9898ee8 | 10237 | |
d9898ee8 | 10238 | |
d9898ee8 | 10239 | |
d9898ee8 | 10240 | |
d9898ee8 | 10241 | |
d9898ee8 | 10242 | |
d9898ee8 | 10243 | |
d9898ee8 | 10244 | |
d9898ee8 | 10245 | |
d9898ee8 | 10246 | |
d9898ee8 | 10247 | |
d9898ee8 | 10248 | |
d9898ee8 | 10249 | |
d9898ee8 | 10250 | |
d9898ee8 | 10251 | |
d9898ee8 | 10252 | |
d9898ee8 | 10253 | |
d9898ee8 | 10254 | |
d9898ee8 | 10255 | |
d9898ee8 | 10256 | |
d9898ee8 | 10257 | |
d9898ee8 | 10258 | |
d9898ee8 | 10259 | |
d9898ee8 | 10260 | |
d9898ee8 | 10261 | |
d9898ee8 | 10262 | |
d9898ee8 | 10263 | |
d9898ee8 | 10264 | |
d9898ee8 | 10265 | |
d9898ee8 | 10266 | |
d9898ee8 | 10267 | |
d9898ee8 | 10268 | |
d9898ee8 | 10269 | |
d9898ee8 | 10270 | |
d9898ee8 | 10271 | |
d9898ee8 | 10272 | |
d9898ee8 | 10273 | |
d9898ee8 | 10274 | |
d9898ee8 | 10275 | |
d9898ee8 | 10276 | |
d9898ee8 | 10277 | |
d9898ee8 | 10278 | |
d9898ee8 | 10279 | |
d9898ee8 | 10280 | |
d9898ee8 | 10281 | |
d9898ee8 | 10282 | |
d9898ee8 | 10283 | |
d9898ee8 | 10284 | |
d9898ee8 | 10285 | |
d9898ee8 | 10286 | |
d9898ee8 | 10287 | |
d9898ee8 | 10288 | |
d9898ee8 | 10289 | |
d9898ee8 | 10290 | |
d9898ee8 | 10291 | |
d9898ee8 | 10292 | |
d9898ee8 | 10293 | |
d9898ee8 | 10294 | |
d9898ee8 | 10295 | |
d9898ee8 | 10296 | |
d9898ee8 | 10297 | |
d9898ee8 | 10298 | |
d9898ee8 | 10299 | |
d9898ee8 | 10300 | |
d9898ee8 | 10301 | |
d9898ee8 | 10302 | |
d9898ee8 | 10303 | |
10304 | ||
d9898ee8 | 10305 | |
10306 | ||
d9898ee8 | 10307 | |
d9898ee8 | 10308 | |
d9898ee8 | 10309 | |
d9898ee8 | 10310 | |
d9898ee8 | 10311 | |
d9898ee8 | 10312 | |
d9898ee8 | 10313 | |
d9898ee8 | 10314 | |
d9898ee8 | 10315 | |
d9898ee8 | 10316 | |
10317 | ||
d9898ee8 | 10318 | |
d9898ee8 | 10319 | |
10320 | ||
d9898ee8 | 10321 | |
10322 | ||
d9898ee8 | 10323 | |
d9898ee8 | 10324 | |
d9898ee8 | 10325 | |
d9898ee8 | 10326 | |
d9898ee8 | 10327 | |
d9898ee8 | 10328 | |
d9898ee8 | 10329 | |
d9898ee8 | 10330 | |
d9898ee8 | 10331 | |
d9898ee8 | 10332 | |
d9898ee8 | 10333 | |
d9898ee8 | 10334 | |
d9898ee8 | 10335 | |
d9898ee8 | 10336 | |
d9898ee8 | 10337 | |
d9898ee8 | 10338 | |
d9898ee8 | 10339 | |
d9898ee8 | 10340 | |
d9898ee8 | 10341 | |
d9898ee8 | 10342 | |
d9898ee8 | 10343 | |
d9898ee8 | 10344 | |
d9898ee8 | 10345 | |
d9898ee8 | 10346 | |
ac40fd9e | 10347 | |
d9898ee8 | 10348 | |
d9898ee8 | 10349 | |
d9898ee8 | 10350 | |
d9898ee8 | 10351 | |
d9898ee8 | 10352 | |
d9898ee8 | 10353 | |
d9898ee8 | 10354 | |
d9898ee8 | 10355 | |
d9898ee8 | 10356 | |
8d138742 CE |
10357 | { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
10358 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
d9898ee8 | 10359 | |
8d138742 CE |
10360 | if test "$GCC" = yes; then |
10361 | case $host_os in | |
10362 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
10363 | *) lt_awk_arg="/^libraries:/" ;; | |
10364 | esac | |
10365 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
10366 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | |
10367 | # if the path contains ";" then we assume it to be the separator | |
10368 | # otherwise default to the standard path separator (i.e. ":") - it is | |
10369 | # assumed that no part of a normal pathname contains ";" but that should | |
10370 | # okay in the real world where ";" in dirpaths is itself problematic. | |
10371 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | |
10372 | else | |
10373 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
10374 | fi | |
10375 | # Ok, now we have the path, separated by spaces, we can step through it | |
10376 | # and add multilib dir if necessary. | |
10377 | lt_tmp_lt_search_path_spec= | |
10378 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
10379 | for lt_sys_path in $lt_search_path_spec; do | |
10380 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
10381 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
10382 | else | |
10383 | test -d "$lt_sys_path" && \ | |
10384 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
10385 | fi | |
10386 | done | |
10387 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | |
10388 | BEGIN {RS=" "; FS="/|\n";} { | |
10389 | lt_foo=""; | |
10390 | lt_count=0; | |
10391 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
10392 | if ($lt_i != "" && $lt_i != ".") { | |
10393 | if ($lt_i == "..") { | |
10394 | lt_count++; | |
10395 | } else { | |
10396 | if (lt_count == 0) { | |
10397 | lt_foo="/" $lt_i lt_foo; | |
10398 | } else { | |
10399 | lt_count--; | |
10400 | } | |
10401 | } | |
10402 | } | |
10403 | } | |
10404 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
10405 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
10406 | }'` | |
10407 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | |
d9898ee8 | 10408 | else |
8d138742 | 10409 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
d9898ee8 | 10410 | fi |
8d138742 CE |
10411 | library_names_spec= |
10412 | libname_spec='lib$name' | |
10413 | soname_spec= | |
10414 | shrext_cmds=".so" | |
10415 | postinstall_cmds= | |
10416 | postuninstall_cmds= | |
10417 | finish_cmds= | |
10418 | finish_eval= | |
10419 | shlibpath_var= | |
10420 | shlibpath_overrides_runpath=unknown | |
10421 | version_type=none | |
10422 | dynamic_linker="$host_os ld.so" | |
10423 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
10424 | need_lib_prefix=unknown | |
10425 | hardcode_into_libs=no | |
d9898ee8 | 10426 | |
8d138742 CE |
10427 | # when you set need_version to no, make sure it does not cause -set_version |
10428 | # flags to be left without arguments | |
10429 | need_version=unknown | |
d9898ee8 | 10430 | |
d9898ee8 | 10431 | case $host_os in |
8d138742 CE |
10432 | aix3*) |
10433 | version_type=linux | |
10434 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
10435 | shlibpath_var=LIBPATH | |
10436 | ||
10437 | # AIX 3 has no versioning support, so we append a major version to the name. | |
10438 | soname_spec='${libname}${release}${shared_ext}$major' | |
10439 | ;; | |
10440 | ||
10441 | aix[4-9]*) | |
10442 | version_type=linux | |
10443 | need_lib_prefix=no | |
10444 | need_version=no | |
10445 | hardcode_into_libs=yes | |
10446 | if test "$host_cpu" = ia64; then | |
10447 | # AIX 5 supports IA64 | |
10448 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
10449 | shlibpath_var=LD_LIBRARY_PATH | |
10450 | else | |
10451 | # With GCC up to 2.95.x, collect2 would create an import file | |
10452 | # for dependence libraries. The import file would start with | |
10453 | # the line `#! .'. This would cause the generated library to | |
10454 | # depend on `.', always an invalid library. This was fixed in | |
10455 | # development snapshots of GCC prior to 3.0. | |
10456 | case $host_os in | |
10457 | aix4 | aix4.[01] | aix4.[01].*) | |
10458 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
10459 | echo ' yes ' | |
10460 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
10461 | : | |
10462 | else | |
10463 | can_build_shared=no | |
10464 | fi | |
10465 | ;; | |
10466 | esac | |
10467 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
10468 | # soname into executable. Probably we can add versioning support to | |
10469 | # collect2, so additional links can be useful in future. | |
10470 | if test "$aix_use_runtimelinking" = yes; then | |
10471 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
10472 | # instead of lib<name>.a to let people know that these are not | |
10473 | # typical AIX shared libraries. | |
10474 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10475 | else | |
10476 | # We preserve .a as extension for shared libraries through AIX4.2 | |
10477 | # and later when we are not doing run time linking. | |
10478 | library_names_spec='${libname}${release}.a $libname.a' | |
10479 | soname_spec='${libname}${release}${shared_ext}$major' | |
10480 | fi | |
10481 | shlibpath_var=LIBPATH | |
10482 | fi | |
10483 | ;; | |
10484 | ||
10485 | amigaos*) | |
10486 | case $host_cpu in | |
10487 | powerpc) | |
10488 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
10489 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
10490 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
d9898ee8 | 10491 | ;; |
8d138742 CE |
10492 | m68k) |
10493 | library_names_spec='$libname.ixlibrary $libname.a' | |
10494 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
10495 | 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' | |
d9898ee8 | 10496 | ;; |
8d138742 CE |
10497 | esac |
10498 | ;; | |
d9898ee8 | 10499 | |
8d138742 CE |
10500 | beos*) |
10501 | library_names_spec='${libname}${shared_ext}' | |
10502 | dynamic_linker="$host_os ld.so" | |
10503 | shlibpath_var=LIBRARY_PATH | |
10504 | ;; | |
d9898ee8 | 10505 | |
8d138742 CE |
10506 | bsdi[45]*) |
10507 | version_type=linux | |
10508 | need_version=no | |
10509 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10510 | soname_spec='${libname}${release}${shared_ext}$major' | |
10511 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
10512 | shlibpath_var=LD_LIBRARY_PATH | |
10513 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
10514 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
10515 | # the default ld.so.conf also contains /usr/contrib/lib and | |
10516 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
10517 | # libtool to hard-code these into programs | |
10518 | ;; | |
d9898ee8 | 10519 | |
8d138742 CE |
10520 | cygwin* | mingw* | pw32* | cegcc*) |
10521 | version_type=windows | |
10522 | shrext_cmds=".dll" | |
10523 | need_version=no | |
10524 | need_lib_prefix=no | |
d9898ee8 | 10525 | |
8d138742 CE |
10526 | case $GCC,$host_os in |
10527 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
10528 | library_names_spec='$libname.dll.a' | |
10529 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
10530 | postinstall_cmds='base_file=`basename \${file}`~ | |
10531 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
10532 | dldir=$destdir/`dirname \$dlpath`~ | |
10533 | test -d \$dldir || mkdir -p \$dldir~ | |
10534 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
10535 | chmod a+x \$dldir/$dlname~ | |
10536 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
10537 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
10538 | fi' | |
10539 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10540 | dlpath=$dir/\$dldll~ | |
10541 | $RM \$dlpath' | |
10542 | shlibpath_overrides_runpath=yes | |
d9898ee8 | 10543 | |
8d138742 CE |
10544 | case $host_os in |
10545 | cygwin*) | |
10546 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
10547 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10548 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
10549 | ;; | |
10550 | mingw* | cegcc*) | |
10551 | # MinGW DLLs use traditional 'lib' prefix | |
10552 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10553 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
10554 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
10555 | # It is most probably a Windows format PATH printed by | |
10556 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
10557 | # path with ; separators, and with drive letters. We can handle the | |
10558 | # drive letters (cygwin fileutils understands them), so leave them, | |
10559 | # especially as we might pass files found there to a mingw objdump, | |
10560 | # which wouldn't understand a cygwinified path. Ahh. | |
10561 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
10562 | else | |
10563 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
10564 | fi | |
10565 | ;; | |
10566 | pw32*) | |
10567 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
10568 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10569 | ;; | |
10570 | esac | |
10571 | ;; | |
d9898ee8 | 10572 | |
8d138742 CE |
10573 | *) |
10574 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
10575 | ;; | |
10576 | esac | |
10577 | dynamic_linker='Win32 ld.exe' | |
10578 | # FIXME: first we should search . and the directory the executable is in | |
10579 | shlibpath_var=PATH | |
10580 | ;; | |
d9898ee8 | 10581 | |
8d138742 CE |
10582 | darwin* | rhapsody*) |
10583 | dynamic_linker="$host_os dyld" | |
10584 | version_type=darwin | |
10585 | need_lib_prefix=no | |
10586 | need_version=no | |
10587 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
10588 | soname_spec='${libname}${release}${major}$shared_ext' | |
10589 | shlibpath_overrides_runpath=yes | |
10590 | shlibpath_var=DYLD_LIBRARY_PATH | |
10591 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
d9898ee8 | 10592 | |
8d138742 CE |
10593 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
10594 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
10595 | ;; | |
d9898ee8 | 10596 | |
8d138742 CE |
10597 | dgux*) |
10598 | version_type=linux | |
10599 | need_lib_prefix=no | |
10600 | need_version=no | |
10601 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
10602 | soname_spec='${libname}${release}${shared_ext}$major' | |
10603 | shlibpath_var=LD_LIBRARY_PATH | |
10604 | ;; | |
d9898ee8 | 10605 | |
8d138742 CE |
10606 | freebsd1*) |
10607 | dynamic_linker=no | |
10608 | ;; | |
d9898ee8 | 10609 | |
8d138742 CE |
10610 | freebsd* | dragonfly*) |
10611 | # DragonFly does not have aout. When/if they implement a new | |
10612 | # versioning mechanism, adjust this. | |
10613 | if test -x /usr/bin/objformat; then | |
10614 | objformat=`/usr/bin/objformat` | |
10615 | else | |
10616 | case $host_os in | |
10617 | freebsd[123]*) objformat=aout ;; | |
10618 | *) objformat=elf ;; | |
10619 | esac | |
10620 | fi | |
10621 | version_type=freebsd-$objformat | |
10622 | case $version_type in | |
10623 | freebsd-elf*) | |
10624 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10625 | need_version=no | |
10626 | need_lib_prefix=no | |
10627 | ;; | |
10628 | freebsd-*) | |
10629 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
10630 | need_version=yes | |
10631 | ;; | |
d9898ee8 | 10632 | esac |
8d138742 | 10633 | shlibpath_var=LD_LIBRARY_PATH |
d9898ee8 | 10634 | case $host_os in |
8d138742 CE |
10635 | freebsd2*) |
10636 | shlibpath_overrides_runpath=yes | |
d9898ee8 | 10637 | ;; |
8d138742 CE |
10638 | freebsd3.[01]* | freebsdelf3.[01]*) |
10639 | shlibpath_overrides_runpath=yes | |
10640 | hardcode_into_libs=yes | |
d9898ee8 | 10641 | ;; |
8d138742 CE |
10642 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
10643 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
10644 | shlibpath_overrides_runpath=no | |
10645 | hardcode_into_libs=yes | |
10646 | ;; | |
10647 | *) # from 4.6 on, and DragonFly | |
10648 | shlibpath_overrides_runpath=yes | |
10649 | hardcode_into_libs=yes | |
d9898ee8 | 10650 | ;; |
10651 | esac | |
8d138742 | 10652 | ;; |
d9898ee8 | 10653 | |
8d138742 CE |
10654 | gnu*) |
10655 | version_type=linux | |
10656 | need_lib_prefix=no | |
10657 | need_version=no | |
10658 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
10659 | soname_spec='${libname}${release}${shared_ext}$major' | |
10660 | shlibpath_var=LD_LIBRARY_PATH | |
10661 | hardcode_into_libs=yes | |
10662 | ;; | |
d9898ee8 | 10663 | |
8d138742 CE |
10664 | hpux9* | hpux10* | hpux11*) |
10665 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
10666 | # link against other versions. | |
10667 | version_type=sunos | |
10668 | need_lib_prefix=no | |
10669 | need_version=no | |
10670 | case $host_cpu in | |
10671 | ia64*) | |
10672 | shrext_cmds='.so' | |
10673 | hardcode_into_libs=yes | |
10674 | dynamic_linker="$host_os dld.so" | |
10675 | shlibpath_var=LD_LIBRARY_PATH | |
10676 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10677 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10678 | soname_spec='${libname}${release}${shared_ext}$major' | |
10679 | if test "X$HPUX_IA64_MODE" = X32; then | |
10680 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
10681 | else | |
10682 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
d9898ee8 | 10683 | fi |
8d138742 CE |
10684 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
10685 | ;; | |
10686 | hppa*64*) | |
10687 | shrext_cmds='.sl' | |
10688 | hardcode_into_libs=yes | |
10689 | dynamic_linker="$host_os dld.sl" | |
10690 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
10691 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10692 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10693 | soname_spec='${libname}${release}${shared_ext}$major' | |
10694 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
10695 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10696 | ;; | |
10697 | *) | |
10698 | shrext_cmds='.sl' | |
10699 | dynamic_linker="$host_os dld.sl" | |
10700 | shlibpath_var=SHLIB_PATH | |
10701 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
10702 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10703 | soname_spec='${libname}${release}${shared_ext}$major' | |
10704 | ;; | |
10705 | esac | |
10706 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
10707 | postinstall_cmds='chmod 555 $lib' | |
10708 | ;; | |
10709 | ||
10710 | interix[3-9]*) | |
10711 | version_type=linux | |
10712 | need_lib_prefix=no | |
10713 | need_version=no | |
10714 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10715 | soname_spec='${libname}${release}${shared_ext}$major' | |
10716 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
10717 | shlibpath_var=LD_LIBRARY_PATH | |
10718 | shlibpath_overrides_runpath=no | |
10719 | hardcode_into_libs=yes | |
10720 | ;; | |
10721 | ||
10722 | irix5* | irix6* | nonstopux*) | |
10723 | case $host_os in | |
10724 | nonstopux*) version_type=nonstopux ;; | |
10725 | *) | |
10726 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
10727 | version_type=linux | |
10728 | else | |
10729 | version_type=irix | |
10730 | fi ;; | |
10731 | esac | |
10732 | need_lib_prefix=no | |
10733 | need_version=no | |
10734 | soname_spec='${libname}${release}${shared_ext}$major' | |
10735 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10736 | case $host_os in | |
10737 | irix5* | nonstopux*) | |
10738 | libsuff= shlibsuff= | |
10739 | ;; | |
10740 | *) | |
10741 | case $LD in # libtool.m4 will add one of these switches to LD | |
10742 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
10743 | libsuff= shlibsuff= libmagic=32-bit;; | |
10744 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
10745 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
10746 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
10747 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
10748 | *) libsuff= shlibsuff= libmagic=never-match;; | |
d9898ee8 | 10749 | esac |
8d138742 CE |
10750 | ;; |
10751 | esac | |
10752 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
10753 | shlibpath_overrides_runpath=no | |
10754 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
10755 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
10756 | hardcode_into_libs=yes | |
10757 | ;; | |
d9898ee8 | 10758 | |
8d138742 CE |
10759 | # No shared lib support for Linux oldld, aout, or coff. |
10760 | linux*oldld* | linux*aout* | linux*coff*) | |
10761 | dynamic_linker=no | |
10762 | ;; | |
d9898ee8 | 10763 | |
8d138742 CE |
10764 | # This must be Linux ELF. |
10765 | linux* | k*bsd*-gnu) | |
10766 | version_type=linux | |
10767 | need_lib_prefix=no | |
10768 | need_version=no | |
10769 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10770 | soname_spec='${libname}${release}${shared_ext}$major' | |
10771 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
10772 | shlibpath_var=LD_LIBRARY_PATH | |
10773 | shlibpath_overrides_runpath=no | |
10774 | # Some binutils ld are patched to set DT_RUNPATH | |
10775 | save_LDFLAGS=$LDFLAGS | |
10776 | save_libdir=$libdir | |
10777 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
10778 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
10779 | cat >conftest.$ac_ext <<_ACEOF | |
10780 | /* confdefs.h. */ | |
10781 | _ACEOF | |
10782 | cat confdefs.h >>conftest.$ac_ext | |
10783 | cat >>conftest.$ac_ext <<_ACEOF | |
10784 | /* end confdefs.h. */ | |
d9898ee8 | 10785 | |
8d138742 CE |
10786 | int |
10787 | main () | |
10788 | { | |
d9898ee8 | 10789 | |
8d138742 CE |
10790 | ; |
10791 | return 0; | |
10792 | } | |
10793 | _ACEOF | |
10794 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10795 | if { (ac_try="$ac_link" | |
10796 | case "(($ac_try" in | |
10797 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10798 | *) ac_try_echo=$ac_try;; | |
10799 | esac | |
10800 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10801 | $as_echo "$ac_try_echo") >&5 | |
10802 | (eval "$ac_link") 2>conftest.er1 | |
10803 | ac_status=$? | |
10804 | grep -v '^ *+' conftest.er1 >conftest.err | |
10805 | rm -f conftest.er1 | |
10806 | cat conftest.err >&5 | |
10807 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10808 | (exit $ac_status); } && { | |
10809 | test -z "$ac_c_werror_flag" || | |
10810 | test ! -s conftest.err | |
10811 | } && test -s conftest$ac_exeext && { | |
10812 | test "$cross_compiling" = yes || | |
10813 | $as_test_x conftest$ac_exeext | |
10814 | }; then | |
10815 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then | |
10816 | shlibpath_overrides_runpath=yes | |
10817 | fi | |
d9898ee8 | 10818 | |
8d138742 CE |
10819 | else |
10820 | $as_echo "$as_me: failed program was:" >&5 | |
10821 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 10822 | |
d9898ee8 | 10823 | |
8d138742 | 10824 | fi |
d9898ee8 | 10825 | |
8d138742 CE |
10826 | rm -rf conftest.dSYM |
10827 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10828 | conftest$ac_exeext conftest.$ac_ext | |
10829 | LDFLAGS=$save_LDFLAGS | |
10830 | libdir=$save_libdir | |
d9898ee8 | 10831 | |
8d138742 CE |
10832 | # This implies no fast_install, which is unacceptable. |
10833 | # Some rework will be needed to allow for fast_install | |
10834 | # before this can be enabled. | |
10835 | hardcode_into_libs=yes | |
d9898ee8 | 10836 | |
8d138742 CE |
10837 | # Add ABI-specific directories to the system library path. |
10838 | sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" | |
d9898ee8 | 10839 | |
8d138742 CE |
10840 | # Append ld.so.conf contents to the search path |
10841 | if test -f /etc/ld.so.conf; then | |
10842 | 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' ' '` | |
10843 | sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" | |
10844 | fi | |
d9898ee8 | 10845 | |
8d138742 CE |
10846 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
10847 | # powerpc, because MkLinux only supported shared libraries with the | |
10848 | # GNU dynamic linker. Since this was broken with cross compilers, | |
10849 | # most powerpc-linux boxes support dynamic linking these days and | |
10850 | # people can always --disable-shared, the test was removed, and we | |
10851 | # assume the GNU/Linux dynamic linker is in use. | |
10852 | dynamic_linker='GNU/Linux ld.so' | |
10853 | ;; | |
d9898ee8 | 10854 | |
8d138742 CE |
10855 | netbsd*) |
10856 | version_type=sunos | |
10857 | need_lib_prefix=no | |
10858 | need_version=no | |
10859 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10860 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10861 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10862 | dynamic_linker='NetBSD (a.out) ld.so' | |
10863 | else | |
10864 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10865 | soname_spec='${libname}${release}${shared_ext}$major' | |
10866 | dynamic_linker='NetBSD ld.elf_so' | |
10867 | fi | |
10868 | shlibpath_var=LD_LIBRARY_PATH | |
10869 | shlibpath_overrides_runpath=yes | |
10870 | hardcode_into_libs=yes | |
10871 | ;; | |
d9898ee8 | 10872 | |
8d138742 CE |
10873 | newsos6) |
10874 | version_type=linux | |
10875 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10876 | shlibpath_var=LD_LIBRARY_PATH | |
10877 | shlibpath_overrides_runpath=yes | |
10878 | ;; | |
d9898ee8 | 10879 | |
8d138742 CE |
10880 | *nto* | *qnx*) |
10881 | version_type=qnx | |
10882 | need_lib_prefix=no | |
10883 | need_version=no | |
10884 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10885 | soname_spec='${libname}${release}${shared_ext}$major' | |
10886 | shlibpath_var=LD_LIBRARY_PATH | |
10887 | shlibpath_overrides_runpath=no | |
10888 | hardcode_into_libs=yes | |
10889 | dynamic_linker='ldqnx.so' | |
10890 | ;; | |
d9898ee8 | 10891 | |
8d138742 CE |
10892 | openbsd*) |
10893 | version_type=sunos | |
10894 | sys_lib_dlsearch_path_spec="/usr/lib" | |
10895 | need_lib_prefix=no | |
10896 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
10897 | case $host_os in | |
10898 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
10899 | *) need_version=no ;; | |
10900 | esac | |
10901 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10902 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10903 | shlibpath_var=LD_LIBRARY_PATH | |
10904 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10905 | case $host_os in | |
10906 | openbsd2.[89] | openbsd2.[89].*) | |
10907 | shlibpath_overrides_runpath=no | |
d9898ee8 | 10908 | ;; |
8d138742 CE |
10909 | *) |
10910 | shlibpath_overrides_runpath=yes | |
d9898ee8 | 10911 | ;; |
10912 | esac | |
8d138742 CE |
10913 | else |
10914 | shlibpath_overrides_runpath=yes | |
10915 | fi | |
10916 | ;; | |
d9898ee8 | 10917 | |
8d138742 CE |
10918 | os2*) |
10919 | libname_spec='$name' | |
10920 | shrext_cmds=".dll" | |
10921 | need_lib_prefix=no | |
10922 | library_names_spec='$libname${shared_ext} $libname.a' | |
10923 | dynamic_linker='OS/2 ld.exe' | |
10924 | shlibpath_var=LIBPATH | |
10925 | ;; | |
d9898ee8 | 10926 | |
8d138742 CE |
10927 | osf3* | osf4* | osf5*) |
10928 | version_type=osf | |
10929 | need_lib_prefix=no | |
10930 | need_version=no | |
10931 | soname_spec='${libname}${release}${shared_ext}$major' | |
10932 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10933 | shlibpath_var=LD_LIBRARY_PATH | |
10934 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
10935 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
10936 | ;; | |
d9898ee8 | 10937 | |
8d138742 CE |
10938 | rdos*) |
10939 | dynamic_linker=no | |
10940 | ;; | |
d9898ee8 | 10941 | |
8d138742 CE |
10942 | solaris*) |
10943 | version_type=linux | |
10944 | need_lib_prefix=no | |
10945 | need_version=no | |
10946 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10947 | soname_spec='${libname}${release}${shared_ext}$major' | |
10948 | shlibpath_var=LD_LIBRARY_PATH | |
10949 | shlibpath_overrides_runpath=yes | |
10950 | hardcode_into_libs=yes | |
10951 | # ldd complains unless libraries are executable | |
10952 | postinstall_cmds='chmod +x $lib' | |
10953 | ;; | |
d9898ee8 | 10954 | |
8d138742 CE |
10955 | sunos4*) |
10956 | version_type=sunos | |
10957 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10958 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
10959 | shlibpath_var=LD_LIBRARY_PATH | |
10960 | shlibpath_overrides_runpath=yes | |
10961 | if test "$with_gnu_ld" = yes; then | |
10962 | need_lib_prefix=no | |
10963 | fi | |
10964 | need_version=yes | |
10965 | ;; | |
d9898ee8 | 10966 | |
8d138742 CE |
10967 | sysv4 | sysv4.3*) |
10968 | version_type=linux | |
10969 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10970 | soname_spec='${libname}${release}${shared_ext}$major' | |
10971 | shlibpath_var=LD_LIBRARY_PATH | |
10972 | case $host_vendor in | |
10973 | sni) | |
10974 | shlibpath_overrides_runpath=no | |
10975 | need_lib_prefix=no | |
10976 | runpath_var=LD_RUN_PATH | |
10977 | ;; | |
10978 | siemens) | |
10979 | need_lib_prefix=no | |
10980 | ;; | |
10981 | motorola) | |
10982 | need_lib_prefix=no | |
10983 | need_version=no | |
10984 | shlibpath_overrides_runpath=no | |
10985 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
10986 | ;; | |
10987 | esac | |
10988 | ;; | |
d9898ee8 | 10989 | |
8d138742 CE |
10990 | sysv4*MP*) |
10991 | if test -d /usr/nec ;then | |
10992 | version_type=linux | |
10993 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
10994 | soname_spec='$libname${shared_ext}.$major' | |
10995 | shlibpath_var=LD_LIBRARY_PATH | |
10996 | fi | |
10997 | ;; | |
d9898ee8 | 10998 | |
8d138742 CE |
10999 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
11000 | version_type=freebsd-elf | |
11001 | need_lib_prefix=no | |
11002 | need_version=no | |
11003 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11004 | soname_spec='${libname}${release}${shared_ext}$major' | |
11005 | shlibpath_var=LD_LIBRARY_PATH | |
11006 | shlibpath_overrides_runpath=yes | |
11007 | hardcode_into_libs=yes | |
11008 | if test "$with_gnu_ld" = yes; then | |
11009 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
11010 | else | |
11011 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
11012 | case $host_os in | |
11013 | sco3.2v5*) | |
11014 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
11015 | ;; | |
11016 | esac | |
11017 | fi | |
11018 | sys_lib_dlsearch_path_spec='/usr/lib' | |
11019 | ;; | |
d9898ee8 | 11020 | |
8d138742 CE |
11021 | tpf*) |
11022 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
11023 | version_type=linux | |
11024 | need_lib_prefix=no | |
11025 | need_version=no | |
11026 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11027 | shlibpath_var=LD_LIBRARY_PATH | |
11028 | shlibpath_overrides_runpath=no | |
11029 | hardcode_into_libs=yes | |
11030 | ;; | |
d9898ee8 | 11031 | |
8d138742 CE |
11032 | uts4*) |
11033 | version_type=linux | |
11034 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11035 | soname_spec='${libname}${release}${shared_ext}$major' | |
11036 | shlibpath_var=LD_LIBRARY_PATH | |
11037 | ;; | |
11038 | ||
11039 | *) | |
11040 | dynamic_linker=no | |
11041 | ;; | |
dd184caf | 11042 | esac |
8d138742 CE |
11043 | { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
11044 | $as_echo "$dynamic_linker" >&6; } | |
11045 | test "$dynamic_linker" = no && can_build_shared=no | |
d9898ee8 | 11046 | |
8d138742 CE |
11047 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
11048 | if test "$GCC" = yes; then | |
11049 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
ac40fd9e | 11050 | fi |
dd184caf | 11051 | |
8d138742 CE |
11052 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
11053 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
11054 | fi | |
11055 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
11056 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
d9898ee8 | 11057 | fi |
dd184caf | 11058 | |
d9898ee8 | 11059 | |
d9898ee8 | 11060 | |
d9898ee8 | 11061 | |
d9898ee8 | 11062 | |
dd184caf | 11063 | |
dd184caf | 11064 | |
d9898ee8 | 11065 | |
d9898ee8 | 11066 | |
d9898ee8 | 11067 | |
d9898ee8 | 11068 | |
d9898ee8 | 11069 | |
d9898ee8 | 11070 | |
d9898ee8 | 11071 | |
d9898ee8 | 11072 | |
d9898ee8 | 11073 | |
d9898ee8 | 11074 | |
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 | |
d9898ee8 | 11092 | |
d9898ee8 | 11093 | |
d9898ee8 | 11094 | |
d9898ee8 | 11095 | |
d9898ee8 | 11096 | |
d9898ee8 | 11097 | |
d9898ee8 | 11098 | |
d9898ee8 | 11099 | |
d9898ee8 | 11100 | |
d9898ee8 | 11101 | |
d9898ee8 | 11102 | |
d9898ee8 | 11103 | |
d9898ee8 | 11104 | |
d9898ee8 | 11105 | |
d9898ee8 | 11106 | |
ac40fd9e | 11107 | |
d9898ee8 | 11108 | |
d9898ee8 | 11109 | |
d9898ee8 | 11110 | |
d9898ee8 | 11111 | |
d9898ee8 | 11112 | |
d9898ee8 | 11113 | |
d9898ee8 | 11114 | |
d9898ee8 | 11115 | |
d9898ee8 | 11116 | |
d9898ee8 | 11117 | |
d9898ee8 | 11118 | |
d9898ee8 | 11119 | |
ac40fd9e | 11120 | |
d9898ee8 | 11121 | |
d9898ee8 | 11122 | |
d9898ee8 | 11123 | |
d9898ee8 | 11124 | |
d9898ee8 | 11125 | |
d9898ee8 | 11126 | |
d9898ee8 | 11127 | |
d9898ee8 | 11128 | |
d9898ee8 | 11129 | |
d9898ee8 | 11130 | |
d9898ee8 | 11131 | |
d9898ee8 | 11132 | |
d9898ee8 | 11133 | |
d9898ee8 | 11134 | |
d9898ee8 | 11135 | |
d9898ee8 | 11136 | |
d9898ee8 | 11137 | |
d9898ee8 | 11138 | |
ac40fd9e | 11139 | |
d9898ee8 | 11140 | |
d9898ee8 | 11141 | |
d9898ee8 | 11142 | |
d9898ee8 | 11143 | |
d9898ee8 | 11144 | |
8d138742 CE |
11145 | { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
11146 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
11147 | hardcode_action= | |
11148 | if test -n "$hardcode_libdir_flag_spec" || | |
11149 | test -n "$runpath_var" || | |
11150 | test "X$hardcode_automatic" = "Xyes" ; then | |
d9898ee8 | 11151 | |
8d138742 CE |
11152 | # We can hardcode non-existent directories. |
11153 | if test "$hardcode_direct" != no && | |
d9898ee8 | 11154 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
11155 | # have to relink, otherwise we might link with an installed library | |
11156 | # when we should be linking with a yet-to-be-installed one | |
8d138742 CE |
11157 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && |
11158 | test "$hardcode_minus_L" != no; then | |
d9898ee8 | 11159 | # Linking always hardcodes the temporary library directory. |
8d138742 | 11160 | hardcode_action=relink |
d9898ee8 | 11161 | else |
11162 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
8d138742 | 11163 | hardcode_action=immediate |
d9898ee8 | 11164 | fi |
11165 | else | |
11166 | # We cannot hardcode anything, or else we can only hardcode existing | |
11167 | # directories. | |
8d138742 | 11168 | hardcode_action=unsupported |
d9898ee8 | 11169 | fi |
8d138742 CE |
11170 | { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
11171 | $as_echo "$hardcode_action" >&6; } | |
d9898ee8 | 11172 | |
8d138742 CE |
11173 | if test "$hardcode_action" = relink || |
11174 | test "$inherit_rpath" = yes; then | |
d9898ee8 | 11175 | # Fast installation is not supported |
11176 | enable_fast_install=no | |
11177 | elif test "$shlibpath_overrides_runpath" = yes || | |
11178 | test "$enable_shared" = no; then | |
11179 | # Fast installation is not necessary | |
11180 | enable_fast_install=needless | |
11181 | fi | |
11182 | ||
11183 | ||
d9898ee8 | 11184 | |
d9898ee8 | 11185 | |
d9898ee8 | 11186 | |
d9898ee8 | 11187 | |
8d138742 CE |
11188 | if test "x$enable_dlopen" != xyes; then |
11189 | enable_dlopen=unknown | |
11190 | enable_dlopen_self=unknown | |
11191 | enable_dlopen_self_static=unknown | |
11192 | else | |
11193 | lt_cv_dlopen=no | |
11194 | lt_cv_dlopen_libs= | |
d9898ee8 | 11195 | |
8d138742 CE |
11196 | case $host_os in |
11197 | beos*) | |
11198 | lt_cv_dlopen="load_add_on" | |
11199 | lt_cv_dlopen_libs= | |
11200 | lt_cv_dlopen_self=yes | |
11201 | ;; | |
d9898ee8 | 11202 | |
8d138742 CE |
11203 | mingw* | pw32* | cegcc*) |
11204 | lt_cv_dlopen="LoadLibrary" | |
11205 | lt_cv_dlopen_libs= | |
11206 | ;; | |
d9898ee8 | 11207 | |
8d138742 CE |
11208 | cygwin*) |
11209 | lt_cv_dlopen="dlopen" | |
11210 | lt_cv_dlopen_libs= | |
11211 | ;; | |
d9898ee8 | 11212 | |
8d138742 CE |
11213 | darwin*) |
11214 | # if libdl is installed we need to link against it | |
11215 | { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
11216 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
11217 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
11218 | $as_echo_n "(cached) " >&6 | |
11219 | else | |
11220 | ac_check_lib_save_LIBS=$LIBS | |
11221 | LIBS="-ldl $LIBS" | |
11222 | cat >conftest.$ac_ext <<_ACEOF | |
11223 | /* confdefs.h. */ | |
11224 | _ACEOF | |
11225 | cat confdefs.h >>conftest.$ac_ext | |
11226 | cat >>conftest.$ac_ext <<_ACEOF | |
11227 | /* end confdefs.h. */ | |
d9898ee8 | 11228 | |
8d138742 CE |
11229 | /* Override any GCC internal prototype to avoid an error. |
11230 | Use char because int might match the return type of a GCC | |
11231 | builtin and then its argument prototype would still apply. */ | |
11232 | #ifdef __cplusplus | |
11233 | extern "C" | |
11234 | #endif | |
11235 | char dlopen (); | |
11236 | int | |
11237 | main () | |
11238 | { | |
11239 | return dlopen (); | |
11240 | ; | |
11241 | return 0; | |
11242 | } | |
11243 | _ACEOF | |
11244 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11245 | if { (ac_try="$ac_link" | |
11246 | case "(($ac_try" in | |
11247 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11248 | *) ac_try_echo=$ac_try;; | |
11249 | esac | |
11250 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11251 | $as_echo "$ac_try_echo") >&5 | |
11252 | (eval "$ac_link") 2>conftest.er1 | |
11253 | ac_status=$? | |
11254 | grep -v '^ *+' conftest.er1 >conftest.err | |
11255 | rm -f conftest.er1 | |
11256 | cat conftest.err >&5 | |
11257 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11258 | (exit $ac_status); } && { | |
11259 | test -z "$ac_c_werror_flag" || | |
11260 | test ! -s conftest.err | |
11261 | } && test -s conftest$ac_exeext && { | |
11262 | test "$cross_compiling" = yes || | |
11263 | $as_test_x conftest$ac_exeext | |
11264 | }; then | |
11265 | ac_cv_lib_dl_dlopen=yes | |
11266 | else | |
11267 | $as_echo "$as_me: failed program was:" >&5 | |
11268 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 11269 | |
8d138742 CE |
11270 | ac_cv_lib_dl_dlopen=no |
11271 | fi | |
d9898ee8 | 11272 | |
8d138742 CE |
11273 | rm -rf conftest.dSYM |
11274 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11275 | conftest$ac_exeext conftest.$ac_ext | |
11276 | LIBS=$ac_check_lib_save_LIBS | |
11277 | fi | |
11278 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
11279 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
11280 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then | |
11281 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
11282 | else | |
d9898ee8 | 11283 | |
8d138742 CE |
11284 | lt_cv_dlopen="dyld" |
11285 | lt_cv_dlopen_libs= | |
11286 | lt_cv_dlopen_self=yes | |
d9898ee8 | 11287 | |
8d138742 | 11288 | fi |
d9898ee8 | 11289 | |
8d138742 | 11290 | ;; |
d9898ee8 | 11291 | |
8d138742 CE |
11292 | *) |
11293 | { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 | |
11294 | $as_echo_n "checking for shl_load... " >&6; } | |
11295 | if test "${ac_cv_func_shl_load+set}" = set; then | |
11296 | $as_echo_n "(cached) " >&6 | |
11297 | else | |
11298 | cat >conftest.$ac_ext <<_ACEOF | |
11299 | /* confdefs.h. */ | |
11300 | _ACEOF | |
11301 | cat confdefs.h >>conftest.$ac_ext | |
11302 | cat >>conftest.$ac_ext <<_ACEOF | |
11303 | /* end confdefs.h. */ | |
11304 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | |
11305 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11306 | #define shl_load innocuous_shl_load | |
d9898ee8 | 11307 | |
8d138742 CE |
11308 | /* System header to define __stub macros and hopefully few prototypes, |
11309 | which can conflict with char shl_load (); below. | |
11310 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11311 | <limits.h> exists even on freestanding compilers. */ | |
d9898ee8 | 11312 | |
8d138742 CE |
11313 | #ifdef __STDC__ |
11314 | # include <limits.h> | |
11315 | #else | |
11316 | # include <assert.h> | |
11317 | #endif | |
d9898ee8 | 11318 | |
8d138742 | 11319 | #undef shl_load |
d9898ee8 | 11320 | |
8d138742 CE |
11321 | /* Override any GCC internal prototype to avoid an error. |
11322 | Use char because int might match the return type of a GCC | |
11323 | builtin and then its argument prototype would still apply. */ | |
11324 | #ifdef __cplusplus | |
11325 | extern "C" | |
11326 | #endif | |
11327 | char shl_load (); | |
11328 | /* The GNU C library defines this for functions which it implements | |
11329 | to always fail with ENOSYS. Some functions are actually named | |
11330 | something starting with __ and the normal name is an alias. */ | |
11331 | #if defined __stub_shl_load || defined __stub___shl_load | |
11332 | choke me | |
11333 | #endif | |
d9898ee8 | 11334 | |
8d138742 CE |
11335 | int |
11336 | main () | |
11337 | { | |
11338 | return shl_load (); | |
11339 | ; | |
11340 | return 0; | |
11341 | } | |
11342 | _ACEOF | |
11343 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11344 | if { (ac_try="$ac_link" | |
11345 | case "(($ac_try" in | |
11346 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11347 | *) ac_try_echo=$ac_try;; | |
11348 | esac | |
11349 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11350 | $as_echo "$ac_try_echo") >&5 | |
11351 | (eval "$ac_link") 2>conftest.er1 | |
11352 | ac_status=$? | |
11353 | grep -v '^ *+' conftest.er1 >conftest.err | |
11354 | rm -f conftest.er1 | |
11355 | cat conftest.err >&5 | |
11356 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11357 | (exit $ac_status); } && { | |
11358 | test -z "$ac_c_werror_flag" || | |
11359 | test ! -s conftest.err | |
11360 | } && test -s conftest$ac_exeext && { | |
11361 | test "$cross_compiling" = yes || | |
11362 | $as_test_x conftest$ac_exeext | |
11363 | }; then | |
11364 | ac_cv_func_shl_load=yes | |
11365 | else | |
11366 | $as_echo "$as_me: failed program was:" >&5 | |
11367 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 11368 | |
8d138742 CE |
11369 | ac_cv_func_shl_load=no |
11370 | fi | |
d9898ee8 | 11371 | |
8d138742 CE |
11372 | rm -rf conftest.dSYM |
11373 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11374 | conftest$ac_exeext conftest.$ac_ext | |
11375 | fi | |
11376 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | |
11377 | $as_echo "$ac_cv_func_shl_load" >&6; } | |
11378 | if test "x$ac_cv_func_shl_load" = x""yes; then | |
11379 | lt_cv_dlopen="shl_load" | |
11380 | else | |
11381 | { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | |
11382 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
11383 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | |
11384 | $as_echo_n "(cached) " >&6 | |
11385 | else | |
11386 | ac_check_lib_save_LIBS=$LIBS | |
11387 | LIBS="-ldld $LIBS" | |
11388 | cat >conftest.$ac_ext <<_ACEOF | |
11389 | /* confdefs.h. */ | |
11390 | _ACEOF | |
11391 | cat confdefs.h >>conftest.$ac_ext | |
11392 | cat >>conftest.$ac_ext <<_ACEOF | |
11393 | /* end confdefs.h. */ | |
d9898ee8 | 11394 | |
8d138742 CE |
11395 | /* Override any GCC internal prototype to avoid an error. |
11396 | Use char because int might match the return type of a GCC | |
11397 | builtin and then its argument prototype would still apply. */ | |
11398 | #ifdef __cplusplus | |
11399 | extern "C" | |
11400 | #endif | |
11401 | char shl_load (); | |
11402 | int | |
11403 | main () | |
11404 | { | |
11405 | return shl_load (); | |
11406 | ; | |
11407 | return 0; | |
11408 | } | |
11409 | _ACEOF | |
11410 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11411 | if { (ac_try="$ac_link" | |
11412 | case "(($ac_try" in | |
11413 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11414 | *) ac_try_echo=$ac_try;; | |
11415 | esac | |
11416 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11417 | $as_echo "$ac_try_echo") >&5 | |
11418 | (eval "$ac_link") 2>conftest.er1 | |
11419 | ac_status=$? | |
11420 | grep -v '^ *+' conftest.er1 >conftest.err | |
11421 | rm -f conftest.er1 | |
11422 | cat conftest.err >&5 | |
11423 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11424 | (exit $ac_status); } && { | |
11425 | test -z "$ac_c_werror_flag" || | |
11426 | test ! -s conftest.err | |
11427 | } && test -s conftest$ac_exeext && { | |
11428 | test "$cross_compiling" = yes || | |
11429 | $as_test_x conftest$ac_exeext | |
11430 | }; then | |
11431 | ac_cv_lib_dld_shl_load=yes | |
11432 | else | |
11433 | $as_echo "$as_me: failed program was:" >&5 | |
11434 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 11435 | |
8d138742 CE |
11436 | ac_cv_lib_dld_shl_load=no |
11437 | fi | |
d9898ee8 | 11438 | |
8d138742 CE |
11439 | rm -rf conftest.dSYM |
11440 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11441 | conftest$ac_exeext conftest.$ac_ext | |
11442 | LIBS=$ac_check_lib_save_LIBS | |
11443 | fi | |
11444 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | |
11445 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
11446 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then | |
11447 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | |
11448 | else | |
11449 | { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 | |
11450 | $as_echo_n "checking for dlopen... " >&6; } | |
11451 | if test "${ac_cv_func_dlopen+set}" = set; then | |
11452 | $as_echo_n "(cached) " >&6 | |
11453 | else | |
11454 | cat >conftest.$ac_ext <<_ACEOF | |
11455 | /* confdefs.h. */ | |
11456 | _ACEOF | |
11457 | cat confdefs.h >>conftest.$ac_ext | |
11458 | cat >>conftest.$ac_ext <<_ACEOF | |
11459 | /* end confdefs.h. */ | |
11460 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | |
11461 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11462 | #define dlopen innocuous_dlopen | |
d9898ee8 | 11463 | |
8d138742 CE |
11464 | /* System header to define __stub macros and hopefully few prototypes, |
11465 | which can conflict with char dlopen (); below. | |
11466 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11467 | <limits.h> exists even on freestanding compilers. */ | |
d9898ee8 | 11468 | |
8d138742 CE |
11469 | #ifdef __STDC__ |
11470 | # include <limits.h> | |
11471 | #else | |
11472 | # include <assert.h> | |
11473 | #endif | |
d9898ee8 | 11474 | |
8d138742 | 11475 | #undef dlopen |
d9898ee8 | 11476 | |
8d138742 CE |
11477 | /* Override any GCC internal prototype to avoid an error. |
11478 | Use char because int might match the return type of a GCC | |
11479 | builtin and then its argument prototype would still apply. */ | |
11480 | #ifdef __cplusplus | |
11481 | extern "C" | |
11482 | #endif | |
11483 | char dlopen (); | |
11484 | /* The GNU C library defines this for functions which it implements | |
11485 | to always fail with ENOSYS. Some functions are actually named | |
11486 | something starting with __ and the normal name is an alias. */ | |
11487 | #if defined __stub_dlopen || defined __stub___dlopen | |
11488 | choke me | |
11489 | #endif | |
d9898ee8 | 11490 | |
8d138742 CE |
11491 | int |
11492 | main () | |
11493 | { | |
11494 | return dlopen (); | |
11495 | ; | |
11496 | return 0; | |
11497 | } | |
11498 | _ACEOF | |
11499 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11500 | if { (ac_try="$ac_link" | |
11501 | case "(($ac_try" in | |
11502 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11503 | *) ac_try_echo=$ac_try;; | |
11504 | esac | |
11505 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11506 | $as_echo "$ac_try_echo") >&5 | |
11507 | (eval "$ac_link") 2>conftest.er1 | |
11508 | ac_status=$? | |
11509 | grep -v '^ *+' conftest.er1 >conftest.err | |
11510 | rm -f conftest.er1 | |
11511 | cat conftest.err >&5 | |
11512 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11513 | (exit $ac_status); } && { | |
11514 | test -z "$ac_c_werror_flag" || | |
11515 | test ! -s conftest.err | |
11516 | } && test -s conftest$ac_exeext && { | |
11517 | test "$cross_compiling" = yes || | |
11518 | $as_test_x conftest$ac_exeext | |
11519 | }; then | |
11520 | ac_cv_func_dlopen=yes | |
11521 | else | |
11522 | $as_echo "$as_me: failed program was:" >&5 | |
11523 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 11524 | |
8d138742 CE |
11525 | ac_cv_func_dlopen=no |
11526 | fi | |
d9898ee8 | 11527 | |
8d138742 CE |
11528 | rm -rf conftest.dSYM |
11529 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11530 | conftest$ac_exeext conftest.$ac_ext | |
11531 | fi | |
11532 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | |
11533 | $as_echo "$ac_cv_func_dlopen" >&6; } | |
11534 | if test "x$ac_cv_func_dlopen" = x""yes; then | |
11535 | lt_cv_dlopen="dlopen" | |
11536 | else | |
11537 | { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
11538 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
11539 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
11540 | $as_echo_n "(cached) " >&6 | |
11541 | else | |
11542 | ac_check_lib_save_LIBS=$LIBS | |
11543 | LIBS="-ldl $LIBS" | |
11544 | cat >conftest.$ac_ext <<_ACEOF | |
11545 | /* confdefs.h. */ | |
11546 | _ACEOF | |
11547 | cat confdefs.h >>conftest.$ac_ext | |
11548 | cat >>conftest.$ac_ext <<_ACEOF | |
11549 | /* end confdefs.h. */ | |
d9898ee8 | 11550 | |
8d138742 CE |
11551 | /* Override any GCC internal prototype to avoid an error. |
11552 | Use char because int might match the return type of a GCC | |
11553 | builtin and then its argument prototype would still apply. */ | |
11554 | #ifdef __cplusplus | |
11555 | extern "C" | |
11556 | #endif | |
11557 | char dlopen (); | |
11558 | int | |
11559 | main () | |
11560 | { | |
11561 | return dlopen (); | |
11562 | ; | |
11563 | return 0; | |
11564 | } | |
11565 | _ACEOF | |
11566 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11567 | if { (ac_try="$ac_link" | |
11568 | case "(($ac_try" in | |
11569 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11570 | *) ac_try_echo=$ac_try;; | |
11571 | esac | |
11572 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11573 | $as_echo "$ac_try_echo") >&5 | |
11574 | (eval "$ac_link") 2>conftest.er1 | |
11575 | ac_status=$? | |
11576 | grep -v '^ *+' conftest.er1 >conftest.err | |
11577 | rm -f conftest.er1 | |
11578 | cat conftest.err >&5 | |
11579 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11580 | (exit $ac_status); } && { | |
11581 | test -z "$ac_c_werror_flag" || | |
11582 | test ! -s conftest.err | |
11583 | } && test -s conftest$ac_exeext && { | |
11584 | test "$cross_compiling" = yes || | |
11585 | $as_test_x conftest$ac_exeext | |
11586 | }; then | |
11587 | ac_cv_lib_dl_dlopen=yes | |
11588 | else | |
11589 | $as_echo "$as_me: failed program was:" >&5 | |
11590 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 11591 | |
8d138742 CE |
11592 | ac_cv_lib_dl_dlopen=no |
11593 | fi | |
d9898ee8 | 11594 | |
8d138742 CE |
11595 | rm -rf conftest.dSYM |
11596 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11597 | conftest$ac_exeext conftest.$ac_ext | |
11598 | LIBS=$ac_check_lib_save_LIBS | |
11599 | fi | |
11600 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
11601 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
11602 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then | |
11603 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
11604 | else | |
11605 | { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | |
11606 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
11607 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | |
11608 | $as_echo_n "(cached) " >&6 | |
11609 | else | |
11610 | ac_check_lib_save_LIBS=$LIBS | |
11611 | LIBS="-lsvld $LIBS" | |
11612 | cat >conftest.$ac_ext <<_ACEOF | |
11613 | /* confdefs.h. */ | |
11614 | _ACEOF | |
11615 | cat confdefs.h >>conftest.$ac_ext | |
11616 | cat >>conftest.$ac_ext <<_ACEOF | |
11617 | /* end confdefs.h. */ | |
d9898ee8 | 11618 | |
8d138742 CE |
11619 | /* Override any GCC internal prototype to avoid an error. |
11620 | Use char because int might match the return type of a GCC | |
11621 | builtin and then its argument prototype would still apply. */ | |
11622 | #ifdef __cplusplus | |
11623 | extern "C" | |
11624 | #endif | |
11625 | char dlopen (); | |
11626 | int | |
11627 | main () | |
11628 | { | |
11629 | return dlopen (); | |
11630 | ; | |
11631 | return 0; | |
11632 | } | |
11633 | _ACEOF | |
11634 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11635 | if { (ac_try="$ac_link" | |
11636 | case "(($ac_try" in | |
11637 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11638 | *) ac_try_echo=$ac_try;; | |
11639 | esac | |
11640 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11641 | $as_echo "$ac_try_echo") >&5 | |
11642 | (eval "$ac_link") 2>conftest.er1 | |
11643 | ac_status=$? | |
11644 | grep -v '^ *+' conftest.er1 >conftest.err | |
11645 | rm -f conftest.er1 | |
11646 | cat conftest.err >&5 | |
11647 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11648 | (exit $ac_status); } && { | |
11649 | test -z "$ac_c_werror_flag" || | |
11650 | test ! -s conftest.err | |
11651 | } && test -s conftest$ac_exeext && { | |
11652 | test "$cross_compiling" = yes || | |
11653 | $as_test_x conftest$ac_exeext | |
11654 | }; then | |
11655 | ac_cv_lib_svld_dlopen=yes | |
11656 | else | |
11657 | $as_echo "$as_me: failed program was:" >&5 | |
11658 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 11659 | |
8d138742 CE |
11660 | ac_cv_lib_svld_dlopen=no |
11661 | fi | |
d9898ee8 | 11662 | |
8d138742 CE |
11663 | rm -rf conftest.dSYM |
11664 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11665 | conftest$ac_exeext conftest.$ac_ext | |
11666 | LIBS=$ac_check_lib_save_LIBS | |
11667 | fi | |
11668 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | |
11669 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
11670 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then | |
11671 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
11672 | else | |
11673 | { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | |
11674 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
11675 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | |
11676 | $as_echo_n "(cached) " >&6 | |
11677 | else | |
11678 | ac_check_lib_save_LIBS=$LIBS | |
11679 | LIBS="-ldld $LIBS" | |
11680 | cat >conftest.$ac_ext <<_ACEOF | |
11681 | /* confdefs.h. */ | |
11682 | _ACEOF | |
11683 | cat confdefs.h >>conftest.$ac_ext | |
11684 | cat >>conftest.$ac_ext <<_ACEOF | |
11685 | /* end confdefs.h. */ | |
d9898ee8 | 11686 | |
8d138742 CE |
11687 | /* Override any GCC internal prototype to avoid an error. |
11688 | Use char because int might match the return type of a GCC | |
11689 | builtin and then its argument prototype would still apply. */ | |
11690 | #ifdef __cplusplus | |
11691 | extern "C" | |
11692 | #endif | |
11693 | char dld_link (); | |
11694 | int | |
11695 | main () | |
11696 | { | |
11697 | return dld_link (); | |
11698 | ; | |
11699 | return 0; | |
11700 | } | |
11701 | _ACEOF | |
11702 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11703 | if { (ac_try="$ac_link" | |
11704 | case "(($ac_try" in | |
11705 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11706 | *) ac_try_echo=$ac_try;; | |
11707 | esac | |
11708 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11709 | $as_echo "$ac_try_echo") >&5 | |
11710 | (eval "$ac_link") 2>conftest.er1 | |
11711 | ac_status=$? | |
11712 | grep -v '^ *+' conftest.er1 >conftest.err | |
11713 | rm -f conftest.er1 | |
11714 | cat conftest.err >&5 | |
11715 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11716 | (exit $ac_status); } && { | |
11717 | test -z "$ac_c_werror_flag" || | |
11718 | test ! -s conftest.err | |
11719 | } && test -s conftest$ac_exeext && { | |
11720 | test "$cross_compiling" = yes || | |
11721 | $as_test_x conftest$ac_exeext | |
11722 | }; then | |
11723 | ac_cv_lib_dld_dld_link=yes | |
11724 | else | |
11725 | $as_echo "$as_me: failed program was:" >&5 | |
11726 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 11727 | |
8d138742 CE |
11728 | ac_cv_lib_dld_dld_link=no |
11729 | fi | |
d9898ee8 | 11730 | |
8d138742 CE |
11731 | rm -rf conftest.dSYM |
11732 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11733 | conftest$ac_exeext conftest.$ac_ext | |
11734 | LIBS=$ac_check_lib_save_LIBS | |
11735 | fi | |
11736 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | |
11737 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
11738 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then | |
11739 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" | |
11740 | fi | |
d9898ee8 | 11741 | |
d9898ee8 | 11742 | |
8d138742 | 11743 | fi |
d9898ee8 | 11744 | |
d9898ee8 | 11745 | |
8d138742 | 11746 | fi |
d9898ee8 | 11747 | |
d9898ee8 | 11748 | |
8d138742 | 11749 | fi |
d9898ee8 | 11750 | |
d9898ee8 | 11751 | |
8d138742 | 11752 | fi |
d9898ee8 | 11753 | |
d9898ee8 | 11754 | |
8d138742 | 11755 | fi |
d9898ee8 | 11756 | |
8d138742 CE |
11757 | ;; |
11758 | esac | |
d9898ee8 | 11759 | |
8d138742 CE |
11760 | if test "x$lt_cv_dlopen" != xno; then |
11761 | enable_dlopen=yes | |
11762 | else | |
11763 | enable_dlopen=no | |
11764 | fi | |
d9898ee8 | 11765 | |
8d138742 CE |
11766 | case $lt_cv_dlopen in |
11767 | dlopen) | |
11768 | save_CPPFLAGS="$CPPFLAGS" | |
11769 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
d9898ee8 | 11770 | |
8d138742 CE |
11771 | save_LDFLAGS="$LDFLAGS" |
11772 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
d9898ee8 | 11773 | |
8d138742 CE |
11774 | save_LIBS="$LIBS" |
11775 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
d9898ee8 | 11776 | |
8d138742 CE |
11777 | { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
11778 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
11779 | if test "${lt_cv_dlopen_self+set}" = set; then | |
11780 | $as_echo_n "(cached) " >&6 | |
11781 | else | |
11782 | if test "$cross_compiling" = yes; then : | |
11783 | lt_cv_dlopen_self=cross | |
11784 | else | |
11785 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11786 | lt_status=$lt_dlunknown | |
11787 | cat > conftest.$ac_ext <<_LT_EOF | |
11788 | #line 11788 "configure" | |
11789 | #include "confdefs.h" | |
d9898ee8 | 11790 | |
8d138742 CE |
11791 | #if HAVE_DLFCN_H |
11792 | #include <dlfcn.h> | |
11793 | #endif | |
d9898ee8 | 11794 | |
8d138742 | 11795 | #include <stdio.h> |
d9898ee8 | 11796 | |
8d138742 CE |
11797 | #ifdef RTLD_GLOBAL |
11798 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11799 | #else | |
11800 | # ifdef DL_GLOBAL | |
11801 | # define LT_DLGLOBAL DL_GLOBAL | |
11802 | # else | |
11803 | # define LT_DLGLOBAL 0 | |
11804 | # endif | |
11805 | #endif | |
d9898ee8 | 11806 | |
8d138742 CE |
11807 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
11808 | find out it does not work in some platform. */ | |
11809 | #ifndef LT_DLLAZY_OR_NOW | |
11810 | # ifdef RTLD_LAZY | |
11811 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11812 | # else | |
11813 | # ifdef DL_LAZY | |
11814 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11815 | # else | |
11816 | # ifdef RTLD_NOW | |
11817 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11818 | # else | |
11819 | # ifdef DL_NOW | |
11820 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11821 | # else | |
11822 | # define LT_DLLAZY_OR_NOW 0 | |
11823 | # endif | |
11824 | # endif | |
11825 | # endif | |
11826 | # endif | |
11827 | #endif | |
d9898ee8 | 11828 | |
8d138742 CE |
11829 | void fnord() { int i=42;} |
11830 | int main () | |
11831 | { | |
11832 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11833 | int status = $lt_dlunknown; | |
d9898ee8 | 11834 | |
8d138742 CE |
11835 | if (self) |
11836 | { | |
11837 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11838 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11839 | /* dlclose (self); */ | |
11840 | } | |
11841 | else | |
11842 | puts (dlerror ()); | |
d9898ee8 | 11843 | |
8d138742 CE |
11844 | return status; |
11845 | } | |
11846 | _LT_EOF | |
11847 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11848 | (eval $ac_link) 2>&5 | |
11849 | ac_status=$? | |
11850 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11851 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
11852 | (./conftest; exit; ) >&5 2>/dev/null | |
11853 | lt_status=$? | |
11854 | case x$lt_status in | |
11855 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
11856 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
11857 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
11858 | esac | |
11859 | else : | |
11860 | # compilation failed | |
11861 | lt_cv_dlopen_self=no | |
11862 | fi | |
11863 | fi | |
11864 | rm -fr conftest* | |
d9898ee8 | 11865 | |
d9898ee8 | 11866 | |
8d138742 CE |
11867 | fi |
11868 | { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | |
11869 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
d9898ee8 | 11870 | |
8d138742 CE |
11871 | if test "x$lt_cv_dlopen_self" = xyes; then |
11872 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
11873 | { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | |
11874 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
11875 | if test "${lt_cv_dlopen_self_static+set}" = set; then | |
11876 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 11877 | else |
8d138742 CE |
11878 | if test "$cross_compiling" = yes; then : |
11879 | lt_cv_dlopen_self_static=cross | |
11880 | else | |
11881 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11882 | lt_status=$lt_dlunknown | |
11883 | cat > conftest.$ac_ext <<_LT_EOF | |
11884 | #line 11884 "configure" | |
11885 | #include "confdefs.h" | |
d9898ee8 | 11886 | |
8d138742 CE |
11887 | #if HAVE_DLFCN_H |
11888 | #include <dlfcn.h> | |
11889 | #endif | |
d9898ee8 | 11890 | |
8d138742 | 11891 | #include <stdio.h> |
d9898ee8 | 11892 | |
8d138742 CE |
11893 | #ifdef RTLD_GLOBAL |
11894 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11895 | #else | |
11896 | # ifdef DL_GLOBAL | |
11897 | # define LT_DLGLOBAL DL_GLOBAL | |
11898 | # else | |
11899 | # define LT_DLGLOBAL 0 | |
11900 | # endif | |
11901 | #endif | |
d9898ee8 | 11902 | |
8d138742 CE |
11903 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
11904 | find out it does not work in some platform. */ | |
11905 | #ifndef LT_DLLAZY_OR_NOW | |
11906 | # ifdef RTLD_LAZY | |
11907 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11908 | # else | |
11909 | # ifdef DL_LAZY | |
11910 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11911 | # else | |
11912 | # ifdef RTLD_NOW | |
11913 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11914 | # else | |
11915 | # ifdef DL_NOW | |
11916 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11917 | # else | |
11918 | # define LT_DLLAZY_OR_NOW 0 | |
11919 | # endif | |
11920 | # endif | |
11921 | # endif | |
11922 | # endif | |
11923 | #endif | |
d9898ee8 | 11924 | |
8d138742 CE |
11925 | void fnord() { int i=42;} |
11926 | int main () | |
11927 | { | |
11928 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11929 | int status = $lt_dlunknown; | |
d9898ee8 | 11930 | |
8d138742 CE |
11931 | if (self) |
11932 | { | |
11933 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11934 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11935 | /* dlclose (self); */ | |
11936 | } | |
11937 | else | |
11938 | puts (dlerror ()); | |
d9898ee8 | 11939 | |
8d138742 CE |
11940 | return status; |
11941 | } | |
11942 | _LT_EOF | |
11943 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11944 | (eval $ac_link) 2>&5 | |
11945 | ac_status=$? | |
11946 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11947 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
11948 | (./conftest; exit; ) >&5 2>/dev/null | |
11949 | lt_status=$? | |
11950 | case x$lt_status in | |
11951 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
11952 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
11953 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
11954 | esac | |
11955 | else : | |
11956 | # compilation failed | |
11957 | lt_cv_dlopen_self_static=no | |
11958 | fi | |
11959 | fi | |
11960 | rm -fr conftest* | |
d9898ee8 | 11961 | |
d9898ee8 | 11962 | |
8d138742 CE |
11963 | fi |
11964 | { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | |
11965 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
11966 | fi | |
d9898ee8 | 11967 | |
8d138742 CE |
11968 | CPPFLAGS="$save_CPPFLAGS" |
11969 | LDFLAGS="$save_LDFLAGS" | |
11970 | LIBS="$save_LIBS" | |
11971 | ;; | |
11972 | esac | |
d9898ee8 | 11973 | |
8d138742 CE |
11974 | case $lt_cv_dlopen_self in |
11975 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
11976 | *) enable_dlopen_self=unknown ;; | |
11977 | esac | |
d9898ee8 | 11978 | |
8d138742 CE |
11979 | case $lt_cv_dlopen_self_static in |
11980 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
11981 | *) enable_dlopen_self_static=unknown ;; | |
11982 | esac | |
11983 | fi | |
d9898ee8 | 11984 | |
d9898ee8 | 11985 | |
d9898ee8 | 11986 | |
11987 | ||
d9898ee8 | 11988 | |
d9898ee8 | 11989 | |
11990 | ||
d9898ee8 | 11991 | |
11992 | ||
d9898ee8 | 11993 | |
d9898ee8 | 11994 | |
11995 | ||
d9898ee8 | 11996 | |
d9898ee8 | 11997 | |
11998 | ||
d9898ee8 | 11999 | |
d9898ee8 | 12000 | |
8d138742 CE |
12001 | striplib= |
12002 | old_striplib= | |
12003 | { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | |
12004 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
12005 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
12006 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
12007 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
12008 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
12009 | $as_echo "yes" >&6; } | |
d9898ee8 | 12010 | else |
8d138742 CE |
12011 | # FIXME - insert some real tests, host_os isn't really good enough |
12012 | case $host_os in | |
12013 | darwin*) | |
12014 | if test -n "$STRIP" ; then | |
12015 | striplib="$STRIP -x" | |
12016 | old_striplib="$STRIP -S" | |
12017 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
12018 | $as_echo "yes" >&6; } | |
12019 | else | |
12020 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
12021 | $as_echo "no" >&6; } | |
12022 | fi | |
12023 | ;; | |
12024 | *) | |
12025 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
12026 | $as_echo "no" >&6; } | |
12027 | ;; | |
12028 | esac | |
d9898ee8 | 12029 | fi |
12030 | ||
d9898ee8 | 12031 | |
d9898ee8 | 12032 | |
d9898ee8 | 12033 | |
d9898ee8 | 12034 | |
d9898ee8 | 12035 | |
d9898ee8 | 12036 | |
d9898ee8 | 12037 | |
d9898ee8 | 12038 | |
d9898ee8 | 12039 | |
d9898ee8 | 12040 | |
d9898ee8 | 12041 | |
8d138742 CE |
12042 | # Report which library types will actually be built |
12043 | { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | |
12044 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
12045 | { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 | |
12046 | $as_echo "$can_build_shared" >&6; } | |
d9898ee8 | 12047 | |
8d138742 CE |
12048 | { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
12049 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
12050 | test "$can_build_shared" = "no" && enable_shared=no | |
d9898ee8 | 12051 | |
8d138742 CE |
12052 | # On AIX, shared libraries and static libraries use the same namespace, and |
12053 | # are all built from PIC. | |
12054 | case $host_os in | |
12055 | aix3*) | |
12056 | test "$enable_shared" = yes && enable_static=no | |
12057 | if test -n "$RANLIB"; then | |
12058 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
12059 | postinstall_cmds='$RANLIB $lib' | |
12060 | fi | |
12061 | ;; | |
d9898ee8 | 12062 | |
8d138742 CE |
12063 | aix[4-9]*) |
12064 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
12065 | test "$enable_shared" = yes && enable_static=no | |
12066 | fi | |
12067 | ;; | |
12068 | esac | |
12069 | { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 | |
12070 | $as_echo "$enable_shared" >&6; } | |
d9898ee8 | 12071 | |
8d138742 CE |
12072 | { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
12073 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
12074 | # Make sure either enable_shared or enable_static is yes. | |
12075 | test "$enable_shared" = yes || enable_static=yes | |
12076 | { $as_echo "$as_me:$LINENO: result: $enable_static" >&5 | |
12077 | $as_echo "$enable_static" >&6; } | |
d9898ee8 | 12078 | |
d9898ee8 | 12079 | |
d9898ee8 | 12080 | |
d9898ee8 | 12081 | |
8d138742 CE |
12082 | fi |
12083 | ac_ext=c | |
12084 | ac_cpp='$CPP $CPPFLAGS' | |
12085 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12086 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12087 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 12088 | |
8d138742 | 12089 | CC="$lt_save_CC" |
ac40fd9e | 12090 | |
d9898ee8 | 12091 | |
d9898ee8 | 12092 | |
d9898ee8 | 12093 | |
d9898ee8 | 12094 | |
d9898ee8 | 12095 | |
d9898ee8 | 12096 | |
d9898ee8 | 12097 | |
d9898ee8 | 12098 | |
d9898ee8 | 12099 | |
d9898ee8 | 12100 | |
d9898ee8 | 12101 | |
d9898ee8 | 12102 | |
8d138742 | 12103 | ac_config_commands="$ac_config_commands libtool" |
d9898ee8 | 12104 | |
d9898ee8 | 12105 | |
d9898ee8 | 12106 | |
d9898ee8 | 12107 | |
8d138742 CE |
12108 | # Only expand once: |
12109 | ||
12110 | ||
12111 | ||
12112 | if test "$GCC" = yes ; then | |
12113 | CXXFLAGS="$CXXFLAGS -Wall" | |
12114 | CFLAGS="$CFLAGS -Wall" | |
d9898ee8 | 12115 | fi |
12116 | ||
12117 | ||
8d138742 CE |
12118 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
12119 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
12120 | if test "${ac_cv_header_stdc+set}" = set; then | |
12121 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 12122 | else |
8d138742 CE |
12123 | cat >conftest.$ac_ext <<_ACEOF |
12124 | /* confdefs.h. */ | |
12125 | _ACEOF | |
12126 | cat confdefs.h >>conftest.$ac_ext | |
12127 | cat >>conftest.$ac_ext <<_ACEOF | |
12128 | /* end confdefs.h. */ | |
12129 | #include <stdlib.h> | |
12130 | #include <stdarg.h> | |
12131 | #include <string.h> | |
12132 | #include <float.h> | |
d9898ee8 | 12133 | |
8d138742 CE |
12134 | int |
12135 | main () | |
12136 | { | |
12137 | ||
12138 | ; | |
12139 | return 0; | |
12140 | } | |
12141 | _ACEOF | |
12142 | rm -f conftest.$ac_objext | |
12143 | if { (ac_try="$ac_compile" | |
12144 | case "(($ac_try" in | |
12145 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12146 | *) ac_try_echo=$ac_try;; | |
12147 | esac | |
12148 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12149 | $as_echo "$ac_try_echo") >&5 | |
12150 | (eval "$ac_compile") 2>conftest.er1 | |
12151 | ac_status=$? | |
12152 | grep -v '^ *+' conftest.er1 >conftest.err | |
12153 | rm -f conftest.er1 | |
12154 | cat conftest.err >&5 | |
12155 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12156 | (exit $ac_status); } && { | |
12157 | test -z "$ac_c_werror_flag" || | |
12158 | test ! -s conftest.err | |
12159 | } && test -s conftest.$ac_objext; then | |
12160 | ac_cv_header_stdc=yes | |
12161 | else | |
12162 | $as_echo "$as_me: failed program was:" >&5 | |
12163 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 12164 | |
8d138742 | 12165 | ac_cv_header_stdc=no |
d9898ee8 | 12166 | fi |
d9898ee8 | 12167 | |
8d138742 | 12168 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 12169 | |
8d138742 CE |
12170 | if test $ac_cv_header_stdc = yes; then |
12171 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
12172 | cat >conftest.$ac_ext <<_ACEOF | |
12173 | /* confdefs.h. */ | |
12174 | _ACEOF | |
12175 | cat confdefs.h >>conftest.$ac_ext | |
12176 | cat >>conftest.$ac_ext <<_ACEOF | |
12177 | /* end confdefs.h. */ | |
12178 | #include <string.h> | |
12179 | ||
12180 | _ACEOF | |
12181 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12182 | $EGREP "memchr" >/dev/null 2>&1; then | |
12183 | : | |
d9898ee8 | 12184 | else |
8d138742 | 12185 | ac_cv_header_stdc=no |
d9898ee8 | 12186 | fi |
8d138742 | 12187 | rm -f conftest* |
d9898ee8 | 12188 | |
8d138742 | 12189 | fi |
d9898ee8 | 12190 | |
8d138742 CE |
12191 | if test $ac_cv_header_stdc = yes; then |
12192 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
12193 | cat >conftest.$ac_ext <<_ACEOF | |
12194 | /* confdefs.h. */ | |
12195 | _ACEOF | |
12196 | cat confdefs.h >>conftest.$ac_ext | |
12197 | cat >>conftest.$ac_ext <<_ACEOF | |
12198 | /* end confdefs.h. */ | |
12199 | #include <stdlib.h> | |
d9898ee8 | 12200 | |
8d138742 CE |
12201 | _ACEOF |
12202 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12203 | $EGREP "free" >/dev/null 2>&1; then | |
12204 | : | |
12205 | else | |
12206 | ac_cv_header_stdc=no | |
12207 | fi | |
12208 | rm -f conftest* | |
d9898ee8 | 12209 | |
8d138742 | 12210 | fi |
d9898ee8 | 12211 | |
8d138742 CE |
12212 | if test $ac_cv_header_stdc = yes; then |
12213 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
12214 | if test "$cross_compiling" = yes; then | |
12215 | : | |
12216 | else | |
12217 | cat >conftest.$ac_ext <<_ACEOF | |
d9898ee8 | 12218 | /* confdefs.h. */ |
12219 | _ACEOF | |
12220 | cat confdefs.h >>conftest.$ac_ext | |
12221 | cat >>conftest.$ac_ext <<_ACEOF | |
12222 | /* end confdefs.h. */ | |
8d138742 CE |
12223 | #include <ctype.h> |
12224 | #include <stdlib.h> | |
12225 | #if ((' ' & 0x0FF) == 0x020) | |
12226 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
12227 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
12228 | #else | |
12229 | # define ISLOWER(c) \ | |
12230 | (('a' <= (c) && (c) <= 'i') \ | |
12231 | || ('j' <= (c) && (c) <= 'r') \ | |
12232 | || ('s' <= (c) && (c) <= 'z')) | |
12233 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
12234 | #endif | |
d9898ee8 | 12235 | |
8d138742 | 12236 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
d9898ee8 | 12237 | int |
12238 | main () | |
12239 | { | |
8d138742 CE |
12240 | int i; |
12241 | for (i = 0; i < 256; i++) | |
12242 | if (XOR (islower (i), ISLOWER (i)) | |
12243 | || toupper (i) != TOUPPER (i)) | |
12244 | return 2; | |
d9898ee8 | 12245 | return 0; |
12246 | } | |
12247 | _ACEOF | |
8d138742 | 12248 | rm -f conftest$ac_exeext |
dd184caf | 12249 | if { (ac_try="$ac_link" |
12250 | case "(($ac_try" in | |
12251 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12252 | *) ac_try_echo=$ac_try;; | |
12253 | esac | |
8d138742 CE |
12254 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12255 | $as_echo "$ac_try_echo") >&5 | |
12256 | (eval "$ac_link") 2>&5 | |
d9898ee8 | 12257 | ac_status=$? |
8d138742 CE |
12258 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12259 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
12260 | { (case "(($ac_try" in | |
12261 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12262 | *) ac_try_echo=$ac_try;; | |
12263 | esac | |
12264 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12265 | $as_echo "$ac_try_echo") >&5 | |
12266 | (eval "$ac_try") 2>&5 | |
12267 | ac_status=$? | |
12268 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12269 | (exit $ac_status); }; }; then | |
12270 | : | |
d9898ee8 | 12271 | else |
8d138742 CE |
12272 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
12273 | $as_echo "$as_me: failed program was:" >&5 | |
d9898ee8 | 12274 | sed 's/^/| /' conftest.$ac_ext >&5 |
12275 | ||
8d138742 CE |
12276 | ( exit $ac_status ) |
12277 | ac_cv_header_stdc=no | |
12278 | fi | |
12279 | rm -rf conftest.dSYM | |
12280 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
12281 | fi | |
12282 | ||
dd184caf | 12283 | |
d9898ee8 | 12284 | fi |
8d138742 CE |
12285 | fi |
12286 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
12287 | $as_echo "$ac_cv_header_stdc" >&6; } | |
12288 | if test $ac_cv_header_stdc = yes; then | |
dd184caf | 12289 | |
8d138742 CE |
12290 | cat >>confdefs.h <<\_ACEOF |
12291 | #define STDC_HEADERS 1 | |
12292 | _ACEOF | |
d9898ee8 | 12293 | |
8d138742 CE |
12294 | fi |
12295 | ||
12296 | ||
12297 | for ac_header in locale.h | |
12298 | do | |
12299 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12300 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12301 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12302 | $as_echo_n "checking for $ac_header... " >&6; } | |
12303 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12304 | $as_echo_n "(cached) " >&6 | |
12305 | fi | |
12306 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12307 | $as_echo "$as_val"'` | |
12308 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12309 | $as_echo "$ac_res" >&6; } | |
12310 | else | |
12311 | # Is the header compilable? | |
12312 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12313 | $as_echo_n "checking $ac_header usability... " >&6; } | |
12314 | cat >conftest.$ac_ext <<_ACEOF | |
d9898ee8 | 12315 | /* confdefs.h. */ |
12316 | _ACEOF | |
12317 | cat confdefs.h >>conftest.$ac_ext | |
12318 | cat >>conftest.$ac_ext <<_ACEOF | |
12319 | /* end confdefs.h. */ | |
8d138742 CE |
12320 | $ac_includes_default |
12321 | #include <$ac_header> | |
d9898ee8 | 12322 | _ACEOF |
8d138742 CE |
12323 | rm -f conftest.$ac_objext |
12324 | if { (ac_try="$ac_compile" | |
dd184caf | 12325 | case "(($ac_try" in |
12326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12327 | *) ac_try_echo=$ac_try;; | |
12328 | esac | |
8d138742 CE |
12329 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12330 | $as_echo "$ac_try_echo") >&5 | |
12331 | (eval "$ac_compile") 2>conftest.er1 | |
d9898ee8 | 12332 | ac_status=$? |
12333 | grep -v '^ *+' conftest.er1 >conftest.err | |
12334 | rm -f conftest.er1 | |
12335 | cat conftest.err >&5 | |
8d138742 | 12336 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 12337 | (exit $ac_status); } && { |
12338 | test -z "$ac_c_werror_flag" || | |
12339 | test ! -s conftest.err | |
8d138742 CE |
12340 | } && test -s conftest.$ac_objext; then |
12341 | ac_header_compiler=yes | |
d9898ee8 | 12342 | else |
8d138742 | 12343 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 12344 | sed 's/^/| /' conftest.$ac_ext >&5 |
12345 | ||
8d138742 | 12346 | ac_header_compiler=no |
d9898ee8 | 12347 | fi |
dd184caf | 12348 | |
8d138742 CE |
12349 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12350 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12351 | $as_echo "$ac_header_compiler" >&6; } | |
d9898ee8 | 12352 | |
8d138742 CE |
12353 | # Is the header present? |
12354 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12355 | $as_echo_n "checking $ac_header presence... " >&6; } | |
12356 | cat >conftest.$ac_ext <<_ACEOF | |
12357 | /* confdefs.h. */ | |
12358 | _ACEOF | |
12359 | cat confdefs.h >>conftest.$ac_ext | |
12360 | cat >>conftest.$ac_ext <<_ACEOF | |
12361 | /* end confdefs.h. */ | |
12362 | #include <$ac_header> | |
12363 | _ACEOF | |
12364 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
12365 | case "(($ac_try" in | |
12366 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12367 | *) ac_try_echo=$ac_try;; | |
12368 | esac | |
12369 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12370 | $as_echo "$ac_try_echo") >&5 | |
12371 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
12372 | ac_status=$? | |
12373 | grep -v '^ *+' conftest.er1 >conftest.err | |
12374 | rm -f conftest.er1 | |
12375 | cat conftest.err >&5 | |
12376 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12377 | (exit $ac_status); } >/dev/null && { | |
12378 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12379 | test ! -s conftest.err | |
12380 | }; then | |
12381 | ac_header_preproc=yes | |
12382 | else | |
12383 | $as_echo "$as_me: failed program was:" >&5 | |
12384 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 12385 | |
8d138742 CE |
12386 | ac_header_preproc=no |
12387 | fi | |
d9898ee8 | 12388 | |
8d138742 CE |
12389 | rm -f conftest.err conftest.$ac_ext |
12390 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12391 | $as_echo "$ac_header_preproc" >&6; } | |
d9898ee8 | 12392 | |
8d138742 CE |
12393 | # So? What about this header? |
12394 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12395 | yes:no: ) | |
12396 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12397 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12398 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12399 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12400 | ac_header_preproc=yes | |
12401 | ;; | |
12402 | no:yes:* ) | |
12403 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12404 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12405 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12406 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12407 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12408 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12409 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12410 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12411 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12412 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12413 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12414 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12415 | ( cat <<\_ASBOX | |
12416 | ## -------------------------------------------------- ## | |
12417 | ## Report this to courier-users@lists.sourceforge.net ## | |
12418 | ## -------------------------------------------------- ## | |
12419 | _ASBOX | |
12420 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
12421 | ;; | |
12422 | esac | |
12423 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12424 | $as_echo_n "checking for $ac_header... " >&6; } | |
12425 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12426 | $as_echo_n "(cached) " >&6 | |
12427 | else | |
12428 | eval "$as_ac_Header=\$ac_header_preproc" | |
12429 | fi | |
12430 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12431 | $as_echo "$as_val"'` | |
12432 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12433 | $as_echo "$ac_res" >&6; } | |
d9898ee8 | 12434 | |
8d138742 CE |
12435 | fi |
12436 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
12437 | $as_echo "$as_val"'` | |
12438 | if test "x$as_val" = x""yes; then | |
12439 | cat >>confdefs.h <<_ACEOF | |
12440 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12441 | _ACEOF | |
d9898ee8 | 12442 | |
8d138742 | 12443 | fi |
d9898ee8 | 12444 | |
8d138742 | 12445 | done |
d9898ee8 | 12446 | |
d9898ee8 | 12447 | |
8d138742 CE |
12448 | { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
12449 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
12450 | if test "${ac_cv_c_const+set}" = set; then | |
12451 | $as_echo_n "(cached) " >&6 | |
12452 | else | |
12453 | cat >conftest.$ac_ext <<_ACEOF | |
12454 | /* confdefs.h. */ | |
12455 | _ACEOF | |
12456 | cat confdefs.h >>conftest.$ac_ext | |
12457 | cat >>conftest.$ac_ext <<_ACEOF | |
12458 | /* end confdefs.h. */ | |
d9898ee8 | 12459 | |
8d138742 CE |
12460 | int |
12461 | main () | |
12462 | { | |
12463 | /* FIXME: Include the comments suggested by Paul. */ | |
12464 | #ifndef __cplusplus | |
12465 | /* Ultrix mips cc rejects this. */ | |
12466 | typedef int charset[2]; | |
12467 | const charset cs; | |
12468 | /* SunOS 4.1.1 cc rejects this. */ | |
12469 | char const *const *pcpcc; | |
12470 | char **ppc; | |
12471 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
12472 | struct point {int x, y;}; | |
12473 | static struct point const zero = {0,0}; | |
12474 | /* AIX XL C 1.02.0.0 rejects this. | |
12475 | It does not let you subtract one const X* pointer from another in | |
12476 | an arm of an if-expression whose if-part is not a constant | |
12477 | expression */ | |
12478 | const char *g = "string"; | |
12479 | pcpcc = &g + (g ? g-g : 0); | |
12480 | /* HPUX 7.0 cc rejects these. */ | |
12481 | ++pcpcc; | |
12482 | ppc = (char**) pcpcc; | |
12483 | pcpcc = (char const *const *) ppc; | |
12484 | { /* SCO 3.2v4 cc rejects this. */ | |
12485 | char *t; | |
12486 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
d9898ee8 | 12487 | |
8d138742 CE |
12488 | *t++ = 0; |
12489 | if (s) return 0; | |
12490 | } | |
12491 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
12492 | int x[] = {25, 17}; | |
12493 | const int *foo = &x[0]; | |
12494 | ++foo; | |
12495 | } | |
12496 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
12497 | typedef const int *iptr; | |
12498 | iptr p = 0; | |
12499 | ++p; | |
12500 | } | |
12501 | { /* AIX XL C 1.02.0.0 rejects this saying | |
12502 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
12503 | struct s { int j; const int *ap[3]; }; | |
12504 | struct s *b; b->j = 5; | |
12505 | } | |
12506 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
12507 | const int foo = 10; | |
12508 | if (!foo) return 0; | |
12509 | } | |
12510 | return !cs[0] && !zero.x; | |
12511 | #endif | |
d9898ee8 | 12512 | |
8d138742 CE |
12513 | ; |
12514 | return 0; | |
12515 | } | |
12516 | _ACEOF | |
12517 | rm -f conftest.$ac_objext | |
12518 | if { (ac_try="$ac_compile" | |
12519 | case "(($ac_try" in | |
12520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12521 | *) ac_try_echo=$ac_try;; | |
12522 | esac | |
12523 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12524 | $as_echo "$ac_try_echo") >&5 | |
12525 | (eval "$ac_compile") 2>conftest.er1 | |
12526 | ac_status=$? | |
12527 | grep -v '^ *+' conftest.er1 >conftest.err | |
12528 | rm -f conftest.er1 | |
12529 | cat conftest.err >&5 | |
12530 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12531 | (exit $ac_status); } && { | |
12532 | test -z "$ac_c_werror_flag" || | |
12533 | test ! -s conftest.err | |
12534 | } && test -s conftest.$ac_objext; then | |
12535 | ac_cv_c_const=yes | |
12536 | else | |
12537 | $as_echo "$as_me: failed program was:" >&5 | |
12538 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 12539 | |
8d138742 CE |
12540 | ac_cv_c_const=no |
12541 | fi | |
d9898ee8 | 12542 | |
8d138742 CE |
12543 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12544 | fi | |
12545 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
12546 | $as_echo "$ac_cv_c_const" >&6; } | |
12547 | if test $ac_cv_c_const = no; then | |
d9898ee8 | 12548 | |
8d138742 CE |
12549 | cat >>confdefs.h <<\_ACEOF |
12550 | #define const /**/ | |
12551 | _ACEOF | |
d9898ee8 | 12552 | |
8d138742 | 12553 | fi |
d9898ee8 | 12554 | |
8d138742 CE |
12555 | { $as_echo "$as_me:$LINENO: checking for size_t" >&5 |
12556 | $as_echo_n "checking for size_t... " >&6; } | |
12557 | if test "${ac_cv_type_size_t+set}" = set; then | |
12558 | $as_echo_n "(cached) " >&6 | |
12559 | else | |
12560 | ac_cv_type_size_t=no | |
12561 | cat >conftest.$ac_ext <<_ACEOF | |
12562 | /* confdefs.h. */ | |
12563 | _ACEOF | |
12564 | cat confdefs.h >>conftest.$ac_ext | |
12565 | cat >>conftest.$ac_ext <<_ACEOF | |
12566 | /* end confdefs.h. */ | |
12567 | $ac_includes_default | |
12568 | int | |
12569 | main () | |
12570 | { | |
12571 | if (sizeof (size_t)) | |
12572 | return 0; | |
12573 | ; | |
12574 | return 0; | |
12575 | } | |
12576 | _ACEOF | |
12577 | rm -f conftest.$ac_objext | |
12578 | if { (ac_try="$ac_compile" | |
12579 | case "(($ac_try" in | |
12580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12581 | *) ac_try_echo=$ac_try;; | |
12582 | esac | |
12583 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12584 | $as_echo "$ac_try_echo") >&5 | |
12585 | (eval "$ac_compile") 2>conftest.er1 | |
12586 | ac_status=$? | |
12587 | grep -v '^ *+' conftest.er1 >conftest.err | |
12588 | rm -f conftest.er1 | |
12589 | cat conftest.err >&5 | |
12590 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12591 | (exit $ac_status); } && { | |
12592 | test -z "$ac_c_werror_flag" || | |
12593 | test ! -s conftest.err | |
12594 | } && test -s conftest.$ac_objext; then | |
12595 | cat >conftest.$ac_ext <<_ACEOF | |
12596 | /* confdefs.h. */ | |
12597 | _ACEOF | |
12598 | cat confdefs.h >>conftest.$ac_ext | |
12599 | cat >>conftest.$ac_ext <<_ACEOF | |
12600 | /* end confdefs.h. */ | |
12601 | $ac_includes_default | |
12602 | int | |
12603 | main () | |
12604 | { | |
12605 | if (sizeof ((size_t))) | |
12606 | return 0; | |
12607 | ; | |
12608 | return 0; | |
12609 | } | |
12610 | _ACEOF | |
12611 | rm -f conftest.$ac_objext | |
12612 | if { (ac_try="$ac_compile" | |
12613 | case "(($ac_try" in | |
12614 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12615 | *) ac_try_echo=$ac_try;; | |
12616 | esac | |
12617 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12618 | $as_echo "$ac_try_echo") >&5 | |
12619 | (eval "$ac_compile") 2>conftest.er1 | |
12620 | ac_status=$? | |
12621 | grep -v '^ *+' conftest.er1 >conftest.err | |
12622 | rm -f conftest.er1 | |
12623 | cat conftest.err >&5 | |
12624 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12625 | (exit $ac_status); } && { | |
12626 | test -z "$ac_c_werror_flag" || | |
12627 | test ! -s conftest.err | |
12628 | } && test -s conftest.$ac_objext; then | |
12629 | : | |
12630 | else | |
12631 | $as_echo "$as_me: failed program was:" >&5 | |
12632 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 12633 | |
8d138742 CE |
12634 | ac_cv_type_size_t=yes |
12635 | fi | |
d9898ee8 | 12636 | |
8d138742 CE |
12637 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12638 | else | |
12639 | $as_echo "$as_me: failed program was:" >&5 | |
12640 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 12641 | |
d9898ee8 | 12642 | |
8d138742 | 12643 | fi |
d9898ee8 | 12644 | |
8d138742 CE |
12645 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12646 | fi | |
12647 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
12648 | $as_echo "$ac_cv_type_size_t" >&6; } | |
12649 | if test "x$ac_cv_type_size_t" = x""yes; then | |
12650 | : | |
12651 | else | |
d9898ee8 | 12652 | |
8d138742 CE |
12653 | cat >>confdefs.h <<_ACEOF |
12654 | #define size_t unsigned int | |
12655 | _ACEOF | |
d9898ee8 | 12656 | |
8d138742 | 12657 | fi |
d9898ee8 | 12658 | |
8d138742 CE |
12659 | { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
12660 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | |
12661 | if test "${ac_cv_struct_tm+set}" = set; then | |
12662 | $as_echo_n "(cached) " >&6 | |
12663 | else | |
12664 | cat >conftest.$ac_ext <<_ACEOF | |
12665 | /* confdefs.h. */ | |
12666 | _ACEOF | |
12667 | cat confdefs.h >>conftest.$ac_ext | |
12668 | cat >>conftest.$ac_ext <<_ACEOF | |
12669 | /* end confdefs.h. */ | |
12670 | #include <sys/types.h> | |
12671 | #include <time.h> | |
d9898ee8 | 12672 | |
8d138742 CE |
12673 | int |
12674 | main () | |
12675 | { | |
12676 | struct tm tm; | |
12677 | int *p = &tm.tm_sec; | |
12678 | return !p; | |
12679 | ; | |
12680 | return 0; | |
12681 | } | |
12682 | _ACEOF | |
12683 | rm -f conftest.$ac_objext | |
12684 | if { (ac_try="$ac_compile" | |
12685 | case "(($ac_try" in | |
12686 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12687 | *) ac_try_echo=$ac_try;; | |
12688 | esac | |
12689 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12690 | $as_echo "$ac_try_echo") >&5 | |
12691 | (eval "$ac_compile") 2>conftest.er1 | |
12692 | ac_status=$? | |
12693 | grep -v '^ *+' conftest.er1 >conftest.err | |
12694 | rm -f conftest.er1 | |
12695 | cat conftest.err >&5 | |
12696 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12697 | (exit $ac_status); } && { | |
12698 | test -z "$ac_c_werror_flag" || | |
12699 | test ! -s conftest.err | |
12700 | } && test -s conftest.$ac_objext; then | |
12701 | ac_cv_struct_tm=time.h | |
12702 | else | |
12703 | $as_echo "$as_me: failed program was:" >&5 | |
12704 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 12705 | |
8d138742 CE |
12706 | ac_cv_struct_tm=sys/time.h |
12707 | fi | |
d9898ee8 | 12708 | |
8d138742 CE |
12709 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12710 | fi | |
12711 | { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 | |
12712 | $as_echo "$ac_cv_struct_tm" >&6; } | |
12713 | if test $ac_cv_struct_tm = sys/time.h; then | |
d9898ee8 | 12714 | |
8d138742 CE |
12715 | cat >>confdefs.h <<\_ACEOF |
12716 | #define TM_IN_SYS_TIME 1 | |
12717 | _ACEOF | |
d9898ee8 | 12718 | |
8d138742 | 12719 | fi |
d9898ee8 | 12720 | |
d9898ee8 | 12721 | |
d9898ee8 | 12722 | |
d9898ee8 | 12723 | |
8d138742 CE |
12724 | # Check whether --with-libidn was given. |
12725 | if test "${with_libidn+set}" = set; then | |
12726 | withval=$with_libidn; libidn=$withval | |
12727 | else | |
12728 | libidn=yes | |
12729 | fi | |
d9898ee8 | 12730 | |
d9898ee8 | 12731 | |
8d138742 CE |
12732 | if test "$libidn" != "no" |
12733 | then | |
d9898ee8 | 12734 | |
d9898ee8 | 12735 | |
8d138742 CE |
12736 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
12737 | if test -n "$ac_tool_prefix"; then | |
12738 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
12739 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
12740 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12741 | $as_echo_n "checking for $ac_word... " >&6; } | |
12742 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
12743 | $as_echo_n "(cached) " >&6 | |
12744 | else | |
12745 | case $PKG_CONFIG in | |
12746 | [\\/]* | ?:[\\/]*) | |
12747 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
12748 | ;; | |
12749 | *) | |
12750 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12751 | for as_dir in $PATH | |
12752 | do | |
12753 | IFS=$as_save_IFS | |
12754 | test -z "$as_dir" && as_dir=. | |
12755 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12756 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12757 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
12758 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12759 | break 2 | |
d9898ee8 | 12760 | fi |
8d138742 CE |
12761 | done |
12762 | done | |
12763 | IFS=$as_save_IFS | |
12764 | ||
d9898ee8 | 12765 | ;; |
12766 | esac | |
8d138742 CE |
12767 | fi |
12768 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
12769 | if test -n "$PKG_CONFIG"; then | |
12770 | { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
12771 | $as_echo "$PKG_CONFIG" >&6; } | |
12772 | else | |
12773 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
12774 | $as_echo "no" >&6; } | |
12775 | fi | |
d9898ee8 | 12776 | |
d9898ee8 | 12777 | |
8d138742 CE |
12778 | fi |
12779 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
12780 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
12781 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
12782 | set dummy pkg-config; ac_word=$2 | |
12783 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12784 | $as_echo_n "checking for $ac_word... " >&6; } | |
12785 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then | |
12786 | $as_echo_n "(cached) " >&6 | |
12787 | else | |
12788 | case $ac_pt_PKG_CONFIG in | |
12789 | [\\/]* | ?:[\\/]*) | |
12790 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
12791 | ;; | |
12792 | *) | |
12793 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12794 | for as_dir in $PATH | |
12795 | do | |
12796 | IFS=$as_save_IFS | |
12797 | test -z "$as_dir" && as_dir=. | |
12798 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12799 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12800 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
12801 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12802 | break 2 | |
12803 | fi | |
12804 | done | |
12805 | done | |
12806 | IFS=$as_save_IFS | |
d9898ee8 | 12807 | |
d9898ee8 | 12808 | ;; |
8d138742 CE |
12809 | esac |
12810 | fi | |
12811 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
12812 | if test -n "$ac_pt_PKG_CONFIG"; then | |
12813 | { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 | |
12814 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
12815 | else | |
12816 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
12817 | $as_echo "no" >&6; } | |
12818 | fi | |
d9898ee8 | 12819 | |
8d138742 CE |
12820 | if test "x$ac_pt_PKG_CONFIG" = x; then |
12821 | PKG_CONFIG="" | |
d9898ee8 | 12822 | else |
8d138742 CE |
12823 | case $cross_compiling:$ac_tool_warned in |
12824 | yes:) | |
12825 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
12826 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
12827 | ac_tool_warned=yes ;; | |
12828 | esac | |
12829 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
d9898ee8 | 12830 | fi |
8d138742 CE |
12831 | else |
12832 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
12833 | fi | |
d9898ee8 | 12834 | |
8d138742 CE |
12835 | fi |
12836 | if test -n "$PKG_CONFIG"; then | |
12837 | _pkg_min_version=0.9.0 | |
12838 | { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 | |
12839 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
12840 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
12841 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
12842 | $as_echo "yes" >&6; } | |
12843 | else | |
12844 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
12845 | $as_echo "no" >&6; } | |
12846 | PKG_CONFIG="" | |
12847 | fi | |
d9898ee8 | 12848 | |
8d138742 | 12849 | fi |
d9898ee8 | 12850 | |
8d138742 CE |
12851 | pkg_failed=no |
12852 | { $as_echo "$as_me:$LINENO: checking for LIBIDN" >&5 | |
12853 | $as_echo_n "checking for LIBIDN... " >&6; } | |
d9898ee8 | 12854 | |
8d138742 CE |
12855 | if test -n "$LIBIDN_CFLAGS"; then |
12856 | pkg_cv_LIBIDN_CFLAGS="$LIBIDN_CFLAGS" | |
12857 | elif test -n "$PKG_CONFIG"; then | |
12858 | if test -n "$PKG_CONFIG" && \ | |
12859 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libidn >= 0.0.0\"") >&5 | |
12860 | ($PKG_CONFIG --exists --print-errors "libidn >= 0.0.0") 2>&5 | |
12861 | ac_status=$? | |
12862 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12863 | (exit $ac_status); }; then | |
12864 | pkg_cv_LIBIDN_CFLAGS=`$PKG_CONFIG --cflags "libidn >= 0.0.0" 2>/dev/null` | |
12865 | else | |
12866 | pkg_failed=yes | |
12867 | fi | |
12868 | else | |
12869 | pkg_failed=untried | |
12870 | fi | |
12871 | if test -n "$LIBIDN_LIBS"; then | |
12872 | pkg_cv_LIBIDN_LIBS="$LIBIDN_LIBS" | |
12873 | elif test -n "$PKG_CONFIG"; then | |
12874 | if test -n "$PKG_CONFIG" && \ | |
12875 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libidn >= 0.0.0\"") >&5 | |
12876 | ($PKG_CONFIG --exists --print-errors "libidn >= 0.0.0") 2>&5 | |
12877 | ac_status=$? | |
12878 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12879 | (exit $ac_status); }; then | |
12880 | pkg_cv_LIBIDN_LIBS=`$PKG_CONFIG --libs "libidn >= 0.0.0" 2>/dev/null` | |
12881 | else | |
12882 | pkg_failed=yes | |
12883 | fi | |
12884 | else | |
12885 | pkg_failed=untried | |
12886 | fi | |
d9898ee8 | 12887 | |
d9898ee8 | 12888 | |
d9898ee8 | 12889 | |
8d138742 | 12890 | if test $pkg_failed = yes; then |
d9898ee8 | 12891 | |
8d138742 CE |
12892 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
12893 | _pkg_short_errors_supported=yes | |
d9898ee8 | 12894 | else |
8d138742 | 12895 | _pkg_short_errors_supported=no |
d9898ee8 | 12896 | fi |
8d138742 CE |
12897 | if test $_pkg_short_errors_supported = yes; then |
12898 | LIBIDN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libidn >= 0.0.0" 2>&1` | |
12899 | else | |
12900 | LIBIDN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libidn >= 0.0.0" 2>&1` | |
12901 | fi | |
12902 | # Put the nasty error message in config.log where it belongs | |
12903 | echo "$LIBIDN_PKG_ERRORS" >&5 | |
12904 | ||
12905 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
12906 | $as_echo "no" >&6; } | |
12907 | libidn=no | |
12908 | elif test $pkg_failed = untried; then | |
12909 | libidn=no | |
12910 | else | |
12911 | LIBIDN_CFLAGS=$pkg_cv_LIBIDN_CFLAGS | |
12912 | LIBIDN_LIBS=$pkg_cv_LIBIDN_LIBS | |
12913 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
12914 | $as_echo "yes" >&6; } | |
12915 | libidn=yes | |
12916 | fi | |
12917 | if test "$libidn" != "yes" | |
12918 | then | |
12919 | libidn=no | |
12920 | { $as_echo "$as_me:$LINENO: WARNING: Libidn not found" >&5 | |
12921 | $as_echo "$as_me: WARNING: Libidn not found" >&2;} | |
d9898ee8 | 12922 | else |
8d138742 | 12923 | libidn=yes |
d9898ee8 | 12924 | |
8d138742 CE |
12925 | cat >>confdefs.h <<\_ACEOF |
12926 | #define LIBIDN 1 | |
12927 | _ACEOF | |
d9898ee8 | 12928 | |
8d138742 CE |
12929 | fi |
12930 | fi | |
12931 | { $as_echo "$as_me:$LINENO: checking if Libidn should be used" >&5 | |
12932 | $as_echo_n "checking if Libidn should be used... " >&6; } | |
12933 | { $as_echo "$as_me:$LINENO: result: $libidn" >&5 | |
12934 | $as_echo "$libidn" >&6; } | |
d9898ee8 | 12935 | |
d9898ee8 | 12936 | |
d9898ee8 | 12937 | |
d9898ee8 | 12938 | |
8d138742 CE |
12939 | for ac_func in strcasecmp strncasecmp setlocale |
12940 | do | |
12941 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
12942 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
12943 | $as_echo_n "checking for $ac_func... " >&6; } | |
12944 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
12945 | $as_echo_n "(cached) " >&6 | |
12946 | else | |
12947 | cat >conftest.$ac_ext <<_ACEOF | |
12948 | /* confdefs.h. */ | |
12949 | _ACEOF | |
12950 | cat confdefs.h >>conftest.$ac_ext | |
12951 | cat >>conftest.$ac_ext <<_ACEOF | |
12952 | /* end confdefs.h. */ | |
12953 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
12954 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12955 | #define $ac_func innocuous_$ac_func | |
d9898ee8 | 12956 | |
8d138742 CE |
12957 | /* System header to define __stub macros and hopefully few prototypes, |
12958 | which can conflict with char $ac_func (); below. | |
12959 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12960 | <limits.h> exists even on freestanding compilers. */ | |
d9898ee8 | 12961 | |
8d138742 CE |
12962 | #ifdef __STDC__ |
12963 | # include <limits.h> | |
12964 | #else | |
12965 | # include <assert.h> | |
12966 | #endif | |
d9898ee8 | 12967 | |
8d138742 | 12968 | #undef $ac_func |
d9898ee8 | 12969 | |
8d138742 CE |
12970 | /* Override any GCC internal prototype to avoid an error. |
12971 | Use char because int might match the return type of a GCC | |
12972 | builtin and then its argument prototype would still apply. */ | |
12973 | #ifdef __cplusplus | |
12974 | extern "C" | |
12975 | #endif | |
12976 | char $ac_func (); | |
12977 | /* The GNU C library defines this for functions which it implements | |
12978 | to always fail with ENOSYS. Some functions are actually named | |
12979 | something starting with __ and the normal name is an alias. */ | |
12980 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
12981 | choke me | |
12982 | #endif | |
d9898ee8 | 12983 | |
8d138742 CE |
12984 | int |
12985 | main () | |
12986 | { | |
12987 | return $ac_func (); | |
12988 | ; | |
12989 | return 0; | |
12990 | } | |
12991 | _ACEOF | |
12992 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12993 | if { (ac_try="$ac_link" | |
12994 | case "(($ac_try" in | |
12995 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12996 | *) ac_try_echo=$ac_try;; | |
12997 | esac | |
12998 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12999 | $as_echo "$ac_try_echo") >&5 | |
13000 | (eval "$ac_link") 2>conftest.er1 | |
13001 | ac_status=$? | |
13002 | grep -v '^ *+' conftest.er1 >conftest.err | |
13003 | rm -f conftest.er1 | |
13004 | cat conftest.err >&5 | |
13005 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13006 | (exit $ac_status); } && { | |
13007 | test -z "$ac_c_werror_flag" || | |
13008 | test ! -s conftest.err | |
13009 | } && test -s conftest$ac_exeext && { | |
13010 | test "$cross_compiling" = yes || | |
13011 | $as_test_x conftest$ac_exeext | |
13012 | }; then | |
13013 | eval "$as_ac_var=yes" | |
13014 | else | |
13015 | $as_echo "$as_me: failed program was:" >&5 | |
13016 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 13017 | |
8d138742 CE |
13018 | eval "$as_ac_var=no" |
13019 | fi | |
d9898ee8 | 13020 | |
8d138742 CE |
13021 | rm -rf conftest.dSYM |
13022 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
13023 | conftest$ac_exeext conftest.$ac_ext | |
13024 | fi | |
13025 | ac_res=`eval 'as_val=${'$as_ac_var'} | |
13026 | $as_echo "$as_val"'` | |
13027 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13028 | $as_echo "$ac_res" >&6; } | |
13029 | as_val=`eval 'as_val=${'$as_ac_var'} | |
13030 | $as_echo "$as_val"'` | |
13031 | if test "x$as_val" = x""yes; then | |
13032 | cat >>confdefs.h <<_ACEOF | |
13033 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13034 | _ACEOF | |
d9898ee8 | 13035 | |
8d138742 CE |
13036 | fi |
13037 | done | |
d9898ee8 | 13038 | |
d9898ee8 | 13039 | |
8d138742 CE |
13040 | { $as_echo "$as_me:$LINENO: checking how to calculate alternate timezone" >&5 |
13041 | $as_echo_n "checking how to calculate alternate timezone... " >&6; } | |
13042 | if test "${librfc822_cv_SYS_TIMEZONE+set}" = set; then | |
13043 | $as_echo_n "(cached) " >&6 | |
13044 | else | |
13045 | cat >conftest.$ac_ext <<_ACEOF | |
13046 | /* confdefs.h. */ | |
13047 | _ACEOF | |
13048 | cat confdefs.h >>conftest.$ac_ext | |
13049 | cat >>conftest.$ac_ext <<_ACEOF | |
13050 | /* end confdefs.h. */ | |
d9898ee8 | 13051 | |
8d138742 | 13052 | #include <time.h> |
d9898ee8 | 13053 | |
8d138742 CE |
13054 | int |
13055 | main () | |
13056 | { | |
d9898ee8 | 13057 | |
8d138742 CE |
13058 | int main() |
13059 | { | |
13060 | time_t t=altzone; | |
d9898ee8 | 13061 | |
8d138742 CE |
13062 | return (0); |
13063 | } | |
d9898ee8 | 13064 | |
8d138742 CE |
13065 | ; |
13066 | return 0; | |
13067 | } | |
13068 | _ACEOF | |
13069 | rm -f conftest.$ac_objext | |
13070 | if { (ac_try="$ac_compile" | |
13071 | case "(($ac_try" in | |
13072 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13073 | *) ac_try_echo=$ac_try;; | |
13074 | esac | |
13075 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13076 | $as_echo "$ac_try_echo") >&5 | |
13077 | (eval "$ac_compile") 2>conftest.er1 | |
13078 | ac_status=$? | |
13079 | grep -v '^ *+' conftest.er1 >conftest.err | |
13080 | rm -f conftest.er1 | |
13081 | cat conftest.err >&5 | |
13082 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13083 | (exit $ac_status); } && { | |
13084 | test -z "$ac_c_werror_flag" || | |
13085 | test ! -s conftest.err | |
13086 | } && test -s conftest.$ac_objext; then | |
13087 | librfc822_cv_SYS_TIMEZONE=altzone | |
13088 | else | |
13089 | $as_echo "$as_me: failed program was:" >&5 | |
13090 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 13091 | |
8d138742 CE |
13092 | cat >conftest.$ac_ext <<_ACEOF |
13093 | /* confdefs.h. */ | |
13094 | _ACEOF | |
13095 | cat confdefs.h >>conftest.$ac_ext | |
13096 | cat >>conftest.$ac_ext <<_ACEOF | |
13097 | /* end confdefs.h. */ | |
d9898ee8 | 13098 | |
8d138742 | 13099 | #include <time.h> |
d9898ee8 | 13100 | |
8d138742 CE |
13101 | int |
13102 | main () | |
13103 | { | |
d9898ee8 | 13104 | |
8d138742 CE |
13105 | int main() |
13106 | { | |
13107 | int n=daylight; | |
d9898ee8 | 13108 | |
8d138742 CE |
13109 | return (0); |
13110 | } | |
d9898ee8 | 13111 | |
8d138742 CE |
13112 | ; |
13113 | return 0; | |
13114 | } | |
13115 | _ACEOF | |
13116 | rm -f conftest.$ac_objext | |
13117 | if { (ac_try="$ac_compile" | |
13118 | case "(($ac_try" in | |
13119 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13120 | *) ac_try_echo=$ac_try;; | |
13121 | esac | |
13122 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13123 | $as_echo "$ac_try_echo") >&5 | |
13124 | (eval "$ac_compile") 2>conftest.er1 | |
13125 | ac_status=$? | |
13126 | grep -v '^ *+' conftest.er1 >conftest.err | |
13127 | rm -f conftest.er1 | |
13128 | cat conftest.err >&5 | |
13129 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13130 | (exit $ac_status); } && { | |
13131 | test -z "$ac_c_werror_flag" || | |
13132 | test ! -s conftest.err | |
13133 | } && test -s conftest.$ac_objext; then | |
13134 | librfc822_cv_SYS_TIMEZONE=daylight | |
13135 | else | |
13136 | $as_echo "$as_me: failed program was:" >&5 | |
13137 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 13138 | |
8d138742 CE |
13139 | cat >conftest.$ac_ext <<_ACEOF |
13140 | /* confdefs.h. */ | |
13141 | _ACEOF | |
13142 | cat confdefs.h >>conftest.$ac_ext | |
13143 | cat >>conftest.$ac_ext <<_ACEOF | |
13144 | /* end confdefs.h. */ | |
d9898ee8 | 13145 | |
8d138742 | 13146 | #include <time.h> |
d9898ee8 | 13147 | |
8d138742 | 13148 | extern struct tm dummy; |
d9898ee8 | 13149 | |
8d138742 CE |
13150 | int |
13151 | main () | |
13152 | { | |
d9898ee8 | 13153 | |
8d138742 CE |
13154 | int main() |
13155 | { | |
13156 | long n=dummy.tm_gmtoff; | |
d9898ee8 | 13157 | |
8d138742 CE |
13158 | return (0); |
13159 | } | |
d9898ee8 | 13160 | |
8d138742 CE |
13161 | ; |
13162 | return 0; | |
13163 | } | |
13164 | _ACEOF | |
13165 | rm -f conftest.$ac_objext | |
13166 | if { (ac_try="$ac_compile" | |
13167 | case "(($ac_try" in | |
13168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13169 | *) ac_try_echo=$ac_try;; | |
13170 | esac | |
13171 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13172 | $as_echo "$ac_try_echo") >&5 | |
13173 | (eval "$ac_compile") 2>conftest.er1 | |
13174 | ac_status=$? | |
13175 | grep -v '^ *+' conftest.er1 >conftest.err | |
13176 | rm -f conftest.er1 | |
13177 | cat conftest.err >&5 | |
13178 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13179 | (exit $ac_status); } && { | |
13180 | test -z "$ac_c_werror_flag" || | |
13181 | test ! -s conftest.err | |
13182 | } && test -s conftest.$ac_objext; then | |
13183 | librfc822_cv_SYS_TIMEZONE=tm_gmtoff | |
13184 | else | |
13185 | $as_echo "$as_me: failed program was:" >&5 | |
13186 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 13187 | |
8d138742 | 13188 | librfc822_cv_SYS_TIMEZONE=unknown |
d9898ee8 | 13189 | |
8d138742 | 13190 | fi |
d9898ee8 | 13191 | |
8d138742 | 13192 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 13193 | |
8d138742 | 13194 | fi |
d9898ee8 | 13195 | |
8d138742 | 13196 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 13197 | |
8d138742 | 13198 | fi |
d9898ee8 | 13199 | |
8d138742 | 13200 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 13201 | |
8d138742 CE |
13202 | fi |
13203 | { $as_echo "$as_me:$LINENO: result: $librfc822_cv_SYS_TIMEZONE" >&5 | |
13204 | $as_echo "$librfc822_cv_SYS_TIMEZONE" >&6; } | |
d9898ee8 | 13205 | |
8d138742 CE |
13206 | case $librfc822_cv_SYS_TIMEZONE in |
13207 | tm_gmtoff) | |
d9898ee8 | 13208 | |
8d138742 CE |
13209 | cat >>confdefs.h <<_ACEOF |
13210 | #define USE_TIME_GMTOFF 1 | |
13211 | _ACEOF | |
d9898ee8 | 13212 | |
8d138742 CE |
13213 | ;; |
13214 | altzone) | |
d9898ee8 | 13215 | |
8d138742 CE |
13216 | cat >>confdefs.h <<_ACEOF |
13217 | #define USE_TIME_ALTZONE 1 | |
13218 | _ACEOF | |
d9898ee8 | 13219 | |
8d138742 CE |
13220 | ;; |
13221 | daylight) | |
d9898ee8 | 13222 | |
8d138742 CE |
13223 | cat >>confdefs.h <<_ACEOF |
13224 | #define USE_TIME_DAYLIGHT 1 | |
13225 | _ACEOF | |
d9898ee8 | 13226 | |
8d138742 CE |
13227 | ;; |
13228 | *) | |
13229 | { $as_echo "$as_me:$LINENO: WARNING: Cannot figure out how to calculate the alternate timezone, will use GMT" >&5 | |
13230 | $as_echo "$as_me: WARNING: Cannot figure out how to calculate the alternate timezone, will use GMT" >&2;} | |
13231 | ;; | |
13232 | esac | |
d9898ee8 | 13233 | |
8d138742 CE |
13234 | if test -d ${srcdir}/../docbook; then |
13235 | HAVE_SGML_TRUE= | |
13236 | HAVE_SGML_FALSE='#' | |
13237 | else | |
13238 | HAVE_SGML_TRUE='#' | |
13239 | HAVE_SGML_FALSE= | |
13240 | fi | |
d9898ee8 | 13241 | |
d9898ee8 | 13242 | |
8d138742 | 13243 | ac_config_files="$ac_config_files Makefile" |
d9898ee8 | 13244 | |
8d138742 CE |
13245 | cat >confcache <<\_ACEOF |
13246 | # This file is a shell script that caches the results of configure | |
13247 | # tests run on this system so they can be shared between configure | |
13248 | # scripts and configure runs, see configure's option --config-cache. | |
13249 | # It is not useful on other systems. If it contains results you don't | |
13250 | # want to keep, you may remove or edit it. | |
13251 | # | |
13252 | # config.status only pays attention to the cache file if you give it | |
13253 | # the --recheck option to rerun configure. | |
13254 | # | |
13255 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
13256 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
13257 | # following values. | |
d9898ee8 | 13258 | |
8d138742 | 13259 | _ACEOF |
d9898ee8 | 13260 | |
8d138742 CE |
13261 | # The following way of writing the cache mishandles newlines in values, |
13262 | # but we know of no workaround that is simple, portable, and efficient. | |
13263 | # So, we kill variables containing newlines. | |
13264 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
13265 | # and sets the high bit in the cache file unless we assign to the vars. | |
13266 | ( | |
13267 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
13268 | eval ac_val=\$$ac_var | |
13269 | case $ac_val in #( | |
13270 | *${as_nl}*) | |
13271 | case $ac_var in #( | |
13272 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 | |
13273 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
13274 | esac | |
13275 | case $ac_var in #( | |
13276 | _ | IFS | as_nl) ;; #( | |
13277 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
13278 | *) $as_unset $ac_var ;; | |
13279 | esac ;; | |
13280 | esac | |
13281 | done | |
d9898ee8 | 13282 | |
8d138742 CE |
13283 | (set) 2>&1 | |
13284 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
13285 | *${as_nl}ac_space=\ *) | |
13286 | # `set' does not quote correctly, so add quotes (double-quote | |
13287 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
13288 | sed -n \ | |
13289 | "s/'/'\\\\''/g; | |
13290 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
13291 | ;; #( | |
13292 | *) | |
13293 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
13294 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
13295 | ;; | |
13296 | esac | | |
13297 | sort | |
13298 | ) | | |
13299 | sed ' | |
13300 | /^ac_cv_env_/b end | |
13301 | t clear | |
13302 | :clear | |
13303 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
13304 | t end | |
13305 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
13306 | :end' >>confcache | |
13307 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
13308 | if test -w "$cache_file"; then | |
13309 | test "x$cache_file" != "x/dev/null" && | |
13310 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 | |
13311 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
13312 | cat confcache >$cache_file | |
13313 | else | |
13314 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 | |
13315 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
d9898ee8 | 13316 | fi |
13317 | fi | |
8d138742 | 13318 | rm -f confcache |
d9898ee8 | 13319 | |
8d138742 CE |
13320 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
13321 | # Let make expand exec_prefix. | |
13322 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
d9898ee8 | 13323 | |
8d138742 | 13324 | DEFS=-DHAVE_CONFIG_H |
d9898ee8 | 13325 | |
8d138742 CE |
13326 | ac_libobjs= |
13327 | ac_ltlibobjs= | |
13328 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
13329 | # 1. Remove the extension, and $U if already installed. | |
13330 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
13331 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
13332 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
13333 | # will be set to the directory where LIBOBJS objects are built. | |
13334 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
13335 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
13336 | done | |
13337 | LIBOBJS=$ac_libobjs | |
d9898ee8 | 13338 | |
8d138742 | 13339 | LTLIBOBJS=$ac_ltlibobjs |
d9898ee8 | 13340 | |
d9898ee8 | 13341 | |
8d138742 CE |
13342 | if test -n "$EXEEXT"; then |
13343 | am__EXEEXT_TRUE= | |
13344 | am__EXEEXT_FALSE='#' | |
13345 | else | |
13346 | am__EXEEXT_TRUE='#' | |
13347 | am__EXEEXT_FALSE= | |
13348 | fi | |
d9898ee8 | 13349 | |
8d138742 CE |
13350 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
13351 | { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
13352 | Usually this means the macro was only invoked conditionally." >&5 | |
13353 | $as_echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
13354 | Usually this means the macro was only invoked conditionally." >&2;} | |
d9898ee8 | 13355 | { (exit 1); exit 1; }; } |
d9898ee8 | 13356 | fi |
8d138742 CE |
13357 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
13358 | { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
13359 | Usually this means the macro was only invoked conditionally." >&5 | |
13360 | $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
13361 | Usually this means the macro was only invoked conditionally." >&2;} | |
13362 | { (exit 1); exit 1; }; } | |
13363 | fi | |
13364 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
13365 | { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
13366 | Usually this means the macro was only invoked conditionally." >&5 | |
13367 | $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
13368 | Usually this means the macro was only invoked conditionally." >&2;} | |
13369 | { (exit 1); exit 1; }; } | |
13370 | fi | |
13371 | if test -z "${HAVE_SGML_TRUE}" && test -z "${HAVE_SGML_FALSE}"; then | |
13372 | { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_SGML\" was never defined. | |
13373 | Usually this means the macro was only invoked conditionally." >&5 | |
13374 | $as_echo "$as_me: error: conditional \"HAVE_SGML\" was never defined. | |
13375 | Usually this means the macro was only invoked conditionally." >&2;} | |
13376 | { (exit 1); exit 1; }; } | |
d9898ee8 | 13377 | fi |
13378 | ||
8d138742 CE |
13379 | : ${CONFIG_STATUS=./config.status} |
13380 | ac_write_fail=0 | |
13381 | ac_clean_files_save=$ac_clean_files | |
13382 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
13383 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
13384 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
13385 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13386 | #! $SHELL | |
13387 | # Generated by $as_me. | |
13388 | # Run this file to recreate the current configuration. | |
13389 | # Compiler output produced by configure, useful for debugging | |
13390 | # configure, is in config.log if it exists. | |
d9898ee8 | 13391 | |
8d138742 CE |
13392 | debug=false |
13393 | ac_cs_recheck=false | |
13394 | ac_cs_silent=false | |
13395 | SHELL=\${CONFIG_SHELL-$SHELL} | |
d9898ee8 | 13396 | _ACEOF |
d9898ee8 | 13397 | |
8d138742 CE |
13398 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13399 | ## --------------------- ## | |
13400 | ## M4sh Initialization. ## | |
13401 | ## --------------------- ## | |
d9898ee8 | 13402 | |
8d138742 CE |
13403 | # Be more Bourne compatible |
13404 | DUALCASE=1; export DUALCASE # for MKS sh | |
13405 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
13406 | emulate sh | |
13407 | NULLCMD=: | |
13408 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
13409 | # is contrary to our usage. Disable this feature. | |
13410 | alias -g '${1+"$@"}'='"$@"' | |
13411 | setopt NO_GLOB_SUBST | |
d9898ee8 | 13412 | else |
8d138742 CE |
13413 | case `(set -o) 2>/dev/null` in |
13414 | *posix*) set -o posix ;; | |
13415 | esac | |
d9898ee8 | 13416 | |
d9898ee8 | 13417 | fi |
dd184caf | 13418 | |
d9898ee8 | 13419 | |
d9898ee8 | 13420 | |
d9898ee8 | 13421 | |
8d138742 CE |
13422 | # PATH needs CR |
13423 | # Avoid depending upon Character Ranges. | |
13424 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
13425 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
13426 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
13427 | as_cr_digits='0123456789' | |
13428 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
d9898ee8 | 13429 | |
8d138742 CE |
13430 | as_nl=' |
13431 | ' | |
13432 | export as_nl | |
13433 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
13434 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
13435 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
13436 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
13437 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
13438 | as_echo='printf %s\n' | |
13439 | as_echo_n='printf %s' | |
13440 | else | |
13441 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
13442 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
13443 | as_echo_n='/usr/ucb/echo -n' | |
13444 | else | |
13445 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
13446 | as_echo_n_body='eval | |
13447 | arg=$1; | |
13448 | case $arg in | |
13449 | *"$as_nl"*) | |
13450 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
13451 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
13452 | esac; | |
13453 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
13454 | ' | |
13455 | export as_echo_n_body | |
13456 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
13457 | fi | |
13458 | export as_echo_body | |
13459 | as_echo='sh -c $as_echo_body as_echo' | |
d9898ee8 | 13460 | fi |
d9898ee8 | 13461 | |
8d138742 CE |
13462 | # The user is always right. |
13463 | if test "${PATH_SEPARATOR+set}" != set; then | |
13464 | PATH_SEPARATOR=: | |
13465 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
13466 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
13467 | PATH_SEPARATOR=';' | |
13468 | } | |
d9898ee8 | 13469 | fi |
13470 | ||
8d138742 CE |
13471 | # Support unset when possible. |
13472 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
13473 | as_unset=unset | |
d9898ee8 | 13474 | else |
8d138742 CE |
13475 | as_unset=false |
13476 | fi | |
d9898ee8 | 13477 | |
8d138742 CE |
13478 | |
13479 | # IFS | |
13480 | # We need space, tab and new line, in precisely that order. Quoting is | |
13481 | # there to prevent editors from complaining about space-tab. | |
13482 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
13483 | # splitting by setting IFS to empty value.) | |
13484 | IFS=" "" $as_nl" | |
13485 | ||
13486 | # Find who we are. Look in the path if we contain no directory separator. | |
13487 | case $0 in | |
13488 | *[\\/]* ) as_myself=$0 ;; | |
13489 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13490 | for as_dir in $PATH | |
13491 | do | |
13492 | IFS=$as_save_IFS | |
13493 | test -z "$as_dir" && as_dir=. | |
13494 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
13495 | done | |
13496 | IFS=$as_save_IFS | |
13497 | ||
13498 | ;; | |
13499 | esac | |
13500 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
13501 | # in which case we are not to be found in the path. | |
13502 | if test "x$as_myself" = x; then | |
13503 | as_myself=$0 | |
d9898ee8 | 13504 | fi |
8d138742 CE |
13505 | if test ! -f "$as_myself"; then |
13506 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
13507 | { (exit 1); exit 1; } | |
d9898ee8 | 13508 | fi |
dd184caf | 13509 | |
8d138742 CE |
13510 | # Work around bugs in pre-3.0 UWIN ksh. |
13511 | for as_var in ENV MAIL MAILPATH | |
13512 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
13513 | done | |
13514 | PS1='$ ' | |
13515 | PS2='> ' | |
13516 | PS4='+ ' | |
13517 | ||
13518 | # NLS nuisances. | |
13519 | LC_ALL=C | |
13520 | export LC_ALL | |
13521 | LANGUAGE=C | |
13522 | export LANGUAGE | |
dd184caf | 13523 | |
8d138742 CE |
13524 | # Required to use basename. |
13525 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
13526 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
13527 | as_expr=expr | |
13528 | else | |
13529 | as_expr=false | |
d9898ee8 | 13530 | fi |
8d138742 CE |
13531 | |
13532 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
13533 | as_basename=basename | |
13534 | else | |
13535 | as_basename=false | |
d9898ee8 | 13536 | fi |
d9898ee8 | 13537 | |
d9898ee8 | 13538 | |
8d138742 CE |
13539 | # Name of the executable. |
13540 | as_me=`$as_basename -- "$0" || | |
13541 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
13542 | X"$0" : 'X\(//\)$' \| \ | |
13543 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
13544 | $as_echo X/"$0" | | |
13545 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
13546 | s//\1/ | |
13547 | q | |
13548 | } | |
13549 | /^X\/\(\/\/\)$/{ | |
13550 | s//\1/ | |
13551 | q | |
13552 | } | |
13553 | /^X\/\(\/\).*/{ | |
13554 | s//\1/ | |
13555 | q | |
13556 | } | |
13557 | s/.*/./; q'` | |
d9898ee8 | 13558 | |
8d138742 CE |
13559 | # CDPATH. |
13560 | $as_unset CDPATH | |
d9898ee8 | 13561 | |
d9898ee8 | 13562 | |
dd184caf | 13563 | |
8d138742 CE |
13564 | as_lineno_1=$LINENO |
13565 | as_lineno_2=$LINENO | |
13566 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
13567 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
d9898ee8 | 13568 | |
8d138742 CE |
13569 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
13570 | # uniformly replaced by the line number. The first 'sed' inserts a | |
13571 | # line-number line after each line using $LINENO; the second 'sed' | |
13572 | # does the real work. The second script uses 'N' to pair each | |
13573 | # line-number line with the line containing $LINENO, and appends | |
13574 | # trailing '-' during substitution so that $LINENO is not a special | |
13575 | # case at line end. | |
13576 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
13577 | # scripts with optimization help from Paolo Bonzini. Blame Lee | |
13578 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
13579 | sed -n ' | |
13580 | p | |
13581 | /[$]LINENO/= | |
13582 | ' <$as_myself | | |
13583 | sed ' | |
13584 | s/[$]LINENO.*/&-/ | |
13585 | t lineno | |
13586 | b | |
13587 | :lineno | |
13588 | N | |
13589 | :loop | |
13590 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
13591 | t loop | |
13592 | s/-\n.*// | |
13593 | ' >$as_me.lineno && | |
13594 | chmod +x "$as_me.lineno" || | |
13595 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
13596 | { (exit 1); exit 1; }; } | |
13597 | ||
13598 | # Don't try to exec as it changes $[0], causing all sort of problems | |
13599 | # (the dirname of $[0] is not the place where we might find the | |
13600 | # original and so on. Autoconf is especially sensitive to this). | |
13601 | . "./$as_me.lineno" | |
13602 | # Exit status is that of the last command. | |
13603 | exit | |
13604 | } | |
13605 | ||
13606 | ||
13607 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
13608 | as_dirname=dirname | |
d9898ee8 | 13609 | else |
8d138742 CE |
13610 | as_dirname=false |
13611 | fi | |
d9898ee8 | 13612 | |
8d138742 CE |
13613 | ECHO_C= ECHO_N= ECHO_T= |
13614 | case `echo -n x` in | |
13615 | -n*) | |
13616 | case `echo 'x\c'` in | |
13617 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
13618 | *) ECHO_C='\c';; | |
13619 | esac;; | |
13620 | *) | |
13621 | ECHO_N='-n';; | |
13622 | esac | |
13623 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
13624 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
13625 | as_expr=expr | |
13626 | else | |
13627 | as_expr=false | |
d9898ee8 | 13628 | fi |
dd184caf | 13629 | |
8d138742 CE |
13630 | rm -f conf$$ conf$$.exe conf$$.file |
13631 | if test -d conf$$.dir; then | |
13632 | rm -f conf$$.dir/conf$$.file | |
13633 | else | |
13634 | rm -f conf$$.dir | |
13635 | mkdir conf$$.dir 2>/dev/null | |
13636 | fi | |
13637 | if (echo >conf$$.file) 2>/dev/null; then | |
13638 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
13639 | as_ln_s='ln -s' | |
13640 | # ... but there are two gotchas: | |
13641 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
13642 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
13643 | # In both cases, we have to default to `cp -p'. | |
13644 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
13645 | as_ln_s='cp -p' | |
13646 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
13647 | as_ln_s=ln | |
13648 | else | |
13649 | as_ln_s='cp -p' | |
13650 | fi | |
13651 | else | |
13652 | as_ln_s='cp -p' | |
13653 | fi | |
13654 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
13655 | rmdir conf$$.dir 2>/dev/null | |
d9898ee8 | 13656 | |
8d138742 CE |
13657 | if mkdir -p . 2>/dev/null; then |
13658 | as_mkdir_p=: | |
d9898ee8 | 13659 | else |
8d138742 CE |
13660 | test -d ./-p && rmdir ./-p |
13661 | as_mkdir_p=false | |
d9898ee8 | 13662 | fi |
d9898ee8 | 13663 | |
8d138742 CE |
13664 | if test -x / >/dev/null 2>&1; then |
13665 | as_test_x='test -x' | |
13666 | else | |
13667 | if ls -dL / >/dev/null 2>&1; then | |
13668 | as_ls_L_option=L | |
13669 | else | |
13670 | as_ls_L_option= | |
13671 | fi | |
13672 | as_test_x=' | |
13673 | eval sh -c '\'' | |
13674 | if test -d "$1"; then | |
13675 | test -d "$1/."; | |
13676 | else | |
13677 | case $1 in | |
13678 | -*)set "./$1";; | |
13679 | esac; | |
13680 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
13681 | ???[sx]*):;;*)false;;esac;fi | |
13682 | '\'' sh | |
13683 | ' | |
d9898ee8 | 13684 | fi |
8d138742 CE |
13685 | as_executable_p=$as_test_x |
13686 | ||
13687 | # Sed expression to map a string onto a valid CPP name. | |
13688 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
d9898ee8 | 13689 | |
8d138742 CE |
13690 | # Sed expression to map a string onto a valid variable name. |
13691 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
d9898ee8 | 13692 | |
d9898ee8 | 13693 | |
8d138742 | 13694 | exec 6>&1 |
d9898ee8 | 13695 | |
8d138742 CE |
13696 | # Save the log message, to keep $[0] and so on meaningful, and to |
13697 | # report actual input values of CONFIG_FILES etc. instead of their | |
13698 | # values after options handling. | |
13699 | ac_log=" | |
13700 | This file was extended by rfc822lib $as_me 0.13, which was | |
13701 | generated by GNU Autoconf 2.63. Invocation command line was | |
d9898ee8 | 13702 | |
8d138742 CE |
13703 | CONFIG_FILES = $CONFIG_FILES |
13704 | CONFIG_HEADERS = $CONFIG_HEADERS | |
13705 | CONFIG_LINKS = $CONFIG_LINKS | |
13706 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
13707 | $ $0 $@ | |
d9898ee8 | 13708 | |
8d138742 CE |
13709 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
13710 | " | |
d9898ee8 | 13711 | |
d9898ee8 | 13712 | _ACEOF |
8d138742 CE |
13713 | |
13714 | case $ac_config_files in *" | |
13715 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
dd184caf | 13716 | esac |
d9898ee8 | 13717 | |
8d138742 CE |
13718 | case $ac_config_headers in *" |
13719 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
13720 | esac | |
dd184caf | 13721 | |
d9898ee8 | 13722 | |
8d138742 CE |
13723 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
13724 | # Files that config.status was made for. | |
13725 | config_files="$ac_config_files" | |
13726 | config_headers="$ac_config_headers" | |
13727 | config_commands="$ac_config_commands" | |
13728 | ||
d9898ee8 | 13729 | _ACEOF |
13730 | ||
8d138742 CE |
13731 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13732 | ac_cs_usage="\ | |
13733 | \`$as_me' instantiates files from templates according to the | |
13734 | current configuration. | |
d9898ee8 | 13735 | |
8d138742 | 13736 | Usage: $0 [OPTION]... [FILE]... |
d9898ee8 | 13737 | |
8d138742 CE |
13738 | -h, --help print this help, then exit |
13739 | -V, --version print version number and configuration settings, then exit | |
13740 | -q, --quiet, --silent | |
13741 | do not print progress messages | |
13742 | -d, --debug don't remove temporary files | |
13743 | --recheck update $as_me by reconfiguring in the same conditions | |
13744 | --file=FILE[:TEMPLATE] | |
13745 | instantiate the configuration file FILE | |
13746 | --header=FILE[:TEMPLATE] | |
13747 | instantiate the configuration header FILE | |
dd184caf | 13748 | |
8d138742 CE |
13749 | Configuration files: |
13750 | $config_files | |
d9898ee8 | 13751 | |
8d138742 CE |
13752 | Configuration headers: |
13753 | $config_headers | |
d9898ee8 | 13754 | |
8d138742 CE |
13755 | Configuration commands: |
13756 | $config_commands | |
13757 | ||
13758 | Report bugs to <bug-autoconf@gnu.org>." | |
d9898ee8 | 13759 | |
d9898ee8 | 13760 | _ACEOF |
8d138742 CE |
13761 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
13762 | ac_cs_version="\\ | |
13763 | rfc822lib config.status 0.13 | |
13764 | configured by $0, generated by GNU Autoconf 2.63, | |
13765 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
d9898ee8 | 13766 | |
8d138742 CE |
13767 | Copyright (C) 2008 Free Software Foundation, Inc. |
13768 | This config.status script is free software; the Free Software Foundation | |
13769 | gives unlimited permission to copy, distribute and modify it." | |
13770 | ||
13771 | ac_pwd='$ac_pwd' | |
13772 | srcdir='$srcdir' | |
13773 | INSTALL='$INSTALL' | |
13774 | MKDIR_P='$MKDIR_P' | |
13775 | AWK='$AWK' | |
13776 | test -n "\$AWK" || AWK=awk | |
d9898ee8 | 13777 | _ACEOF |
d9898ee8 | 13778 | |
8d138742 CE |
13779 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13780 | # The default lists apply if the user does not specify any file. | |
13781 | ac_need_defaults=: | |
13782 | while test $# != 0 | |
13783 | do | |
13784 | case $1 in | |
13785 | --*=*) | |
13786 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
13787 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
13788 | ac_shift=: | |
13789 | ;; | |
13790 | *) | |
13791 | ac_option=$1 | |
13792 | ac_optarg=$2 | |
13793 | ac_shift=shift | |
13794 | ;; | |
13795 | esac | |
13796 | ||
13797 | case $ac_option in | |
13798 | # Handling of the options. | |
13799 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
13800 | ac_cs_recheck=: ;; | |
13801 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
13802 | $as_echo "$ac_cs_version"; exit ;; | |
13803 | --debug | --debu | --deb | --de | --d | -d ) | |
13804 | debug=: ;; | |
13805 | --file | --fil | --fi | --f ) | |
13806 | $ac_shift | |
13807 | case $ac_optarg in | |
13808 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
13809 | esac | |
13810 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" | |
13811 | ac_need_defaults=false;; | |
13812 | --header | --heade | --head | --hea ) | |
13813 | $ac_shift | |
13814 | case $ac_optarg in | |
13815 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
13816 | esac | |
13817 | CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" | |
13818 | ac_need_defaults=false;; | |
13819 | --he | --h) | |
13820 | # Conflict between --help and --header | |
13821 | { $as_echo "$as_me: error: ambiguous option: $1 | |
13822 | Try \`$0 --help' for more information." >&2 | |
13823 | { (exit 1); exit 1; }; };; | |
13824 | --help | --hel | -h ) | |
13825 | $as_echo "$ac_cs_usage"; exit ;; | |
13826 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
13827 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
13828 | ac_cs_silent=: ;; | |
13829 | ||
13830 | # This is an error. | |
13831 | -*) { $as_echo "$as_me: error: unrecognized option: $1 | |
13832 | Try \`$0 --help' for more information." >&2 | |
13833 | { (exit 1); exit 1; }; } ;; | |
13834 | ||
13835 | *) ac_config_targets="$ac_config_targets $1" | |
13836 | ac_need_defaults=false ;; | |
13837 | ||
13838 | esac | |
13839 | shift | |
13840 | done | |
13841 | ||
13842 | ac_configure_extra_args= | |
13843 | ||
13844 | if $ac_cs_silent; then | |
13845 | exec 6>/dev/null | |
13846 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
d9898ee8 | 13847 | fi |
dd184caf | 13848 | |
8d138742 CE |
13849 | _ACEOF |
13850 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13851 | if \$ac_cs_recheck; then | |
13852 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
13853 | shift | |
13854 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
13855 | CONFIG_SHELL='$SHELL' | |
13856 | export CONFIG_SHELL | |
13857 | exec "\$@" | |
d9898ee8 | 13858 | fi |
d9898ee8 | 13859 | |
d9898ee8 | 13860 | _ACEOF |
8d138742 CE |
13861 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13862 | exec 5>>config.log | |
13863 | { | |
13864 | echo | |
13865 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
13866 | ## Running $as_me. ## | |
13867 | _ASBOX | |
13868 | $as_echo "$ac_log" | |
13869 | } >&5 | |
d9898ee8 | 13870 | |
8d138742 CE |
13871 | _ACEOF |
13872 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13873 | # | |
13874 | # INIT-COMMANDS | |
13875 | # | |
13876 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
d9898ee8 | 13877 | |
13878 | ||
8d138742 CE |
13879 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
13880 | # if CDPATH is set. | |
13881 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
d9898ee8 | 13882 | |
8d138742 CE |
13883 | sed_quote_subst='$sed_quote_subst' |
13884 | double_quote_subst='$double_quote_subst' | |
13885 | delay_variable_subst='$delay_variable_subst' | |
13886 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' | |
13887 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' | |
13888 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' | |
13889 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' | |
13890 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' | |
13891 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' | |
13892 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
13893 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' | |
13894 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' | |
13895 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
13896 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' | |
13897 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' | |
13898 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' | |
13899 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' | |
13900 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' | |
13901 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
13902 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
13903 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' | |
13904 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' | |
13905 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' | |
13906 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' | |
13907 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' | |
13908 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' | |
13909 | lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' | |
13910 | lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' | |
13911 | lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' | |
13912 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
13913 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13914 | OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' | |
13915 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' | |
13916 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' | |
13917 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' | |
13918 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
13919 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' | |
13920 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' | |
13921 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13922 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13923 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13924 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' | |
13925 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
13926 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' | |
13927 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' | |
13928 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' | |
13929 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' | |
13930 | 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"`' | |
13931 | 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"`' | |
13932 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' | |
13933 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' | |
13934 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' | |
13935 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' | |
13936 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
13937 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' | |
13938 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' | |
13939 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' | |
13940 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' | |
13941 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' | |
13942 | DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' | |
13943 | NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' | |
13944 | LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' | |
13945 | OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' | |
13946 | OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' | |
13947 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' | |
13948 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13949 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13950 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' | |
13951 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' | |
13952 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
13953 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
13954 | compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' | |
13955 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13956 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13957 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13958 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13959 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13960 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13961 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
13962 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
13963 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
13964 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
13965 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
13966 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' | |
13967 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' | |
13968 | hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' | |
13969 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' | |
13970 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
13971 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' | |
13972 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' | |
13973 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' | |
13974 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' | |
13975 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' | |
13976 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13977 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
13978 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
13979 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13980 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
13981 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' | |
13982 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | |
13983 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' | |
13984 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' | |
13985 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
13986 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
13987 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' | |
13988 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
13989 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
13990 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
13991 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13992 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13993 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13994 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' | |
13995 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' | |
13996 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
13997 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
13998 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' | |
13999 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' | |
14000 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' | |
14001 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' | |
14002 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
14003 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
14004 | ||
14005 | LTCC='$LTCC' | |
14006 | LTCFLAGS='$LTCFLAGS' | |
14007 | compiler='$compiler_DEFAULT' | |
14008 | ||
14009 | # Quote evaled strings. | |
14010 | for var in SED \ | |
14011 | GREP \ | |
14012 | EGREP \ | |
14013 | FGREP \ | |
14014 | LD \ | |
14015 | NM \ | |
14016 | LN_S \ | |
14017 | lt_SP2NL \ | |
14018 | lt_NL2SP \ | |
14019 | reload_flag \ | |
14020 | OBJDUMP \ | |
14021 | deplibs_check_method \ | |
14022 | file_magic_cmd \ | |
14023 | AR \ | |
14024 | AR_FLAGS \ | |
14025 | STRIP \ | |
14026 | RANLIB \ | |
14027 | CC \ | |
14028 | CFLAGS \ | |
14029 | compiler \ | |
14030 | lt_cv_sys_global_symbol_pipe \ | |
14031 | lt_cv_sys_global_symbol_to_cdecl \ | |
14032 | lt_cv_sys_global_symbol_to_c_name_address \ | |
14033 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
14034 | SHELL \ | |
14035 | ECHO \ | |
14036 | lt_prog_compiler_no_builtin_flag \ | |
14037 | lt_prog_compiler_wl \ | |
14038 | lt_prog_compiler_pic \ | |
14039 | lt_prog_compiler_static \ | |
14040 | lt_cv_prog_compiler_c_o \ | |
14041 | need_locks \ | |
14042 | DSYMUTIL \ | |
14043 | NMEDIT \ | |
14044 | LIPO \ | |
14045 | OTOOL \ | |
14046 | OTOOL64 \ | |
14047 | shrext_cmds \ | |
14048 | export_dynamic_flag_spec \ | |
14049 | whole_archive_flag_spec \ | |
14050 | compiler_needs_object \ | |
14051 | with_gnu_ld \ | |
14052 | allow_undefined_flag \ | |
14053 | no_undefined_flag \ | |
14054 | hardcode_libdir_flag_spec \ | |
14055 | hardcode_libdir_flag_spec_ld \ | |
14056 | hardcode_libdir_separator \ | |
14057 | fix_srcfile_path \ | |
14058 | exclude_expsyms \ | |
14059 | include_expsyms \ | |
14060 | file_list_spec \ | |
14061 | variables_saved_for_relink \ | |
14062 | libname_spec \ | |
14063 | library_names_spec \ | |
14064 | soname_spec \ | |
14065 | finish_eval \ | |
14066 | old_striplib \ | |
14067 | striplib; do | |
14068 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
14069 | *[\\\\\\\`\\"\\\$]*) | |
14070 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
14071 | ;; | |
14072 | *) | |
14073 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
14074 | ;; | |
14075 | esac | |
14076 | done | |
d9898ee8 | 14077 | |
8d138742 CE |
14078 | # Double-quote double-evaled strings. |
14079 | for var in reload_cmds \ | |
14080 | old_postinstall_cmds \ | |
14081 | old_postuninstall_cmds \ | |
14082 | old_archive_cmds \ | |
14083 | extract_expsyms_cmds \ | |
14084 | old_archive_from_new_cmds \ | |
14085 | old_archive_from_expsyms_cmds \ | |
14086 | archive_cmds \ | |
14087 | archive_expsym_cmds \ | |
14088 | module_cmds \ | |
14089 | module_expsym_cmds \ | |
14090 | export_symbols_cmds \ | |
14091 | prelink_cmds \ | |
14092 | postinstall_cmds \ | |
14093 | postuninstall_cmds \ | |
14094 | finish_cmds \ | |
14095 | sys_lib_search_path_spec \ | |
14096 | sys_lib_dlsearch_path_spec; do | |
14097 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
14098 | *[\\\\\\\`\\"\\\$]*) | |
14099 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
14100 | ;; | |
14101 | *) | |
14102 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
14103 | ;; | |
14104 | esac | |
14105 | done | |
d9898ee8 | 14106 | |
8d138742 CE |
14107 | # Fix-up fallback echo if it was mangled by the above quoting rules. |
14108 | case \$lt_ECHO in | |
14109 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` | |
14110 | ;; | |
14111 | esac | |
d9898ee8 | 14112 | |
8d138742 CE |
14113 | ac_aux_dir='$ac_aux_dir' |
14114 | xsi_shell='$xsi_shell' | |
14115 | lt_shell_append='$lt_shell_append' | |
d9898ee8 | 14116 | |
8d138742 CE |
14117 | # See if we are running on zsh, and set the options which allow our |
14118 | # commands through without removal of \ escapes INIT. | |
14119 | if test -n "\${ZSH_VERSION+set}" ; then | |
14120 | setopt NO_GLOB_SUBST | |
14121 | fi | |
d9898ee8 | 14122 | |
d9898ee8 | 14123 | |
8d138742 CE |
14124 | PACKAGE='$PACKAGE' |
14125 | VERSION='$VERSION' | |
14126 | TIMESTAMP='$TIMESTAMP' | |
14127 | RM='$RM' | |
14128 | ofile='$ofile' | |
d9898ee8 | 14129 | |
d9898ee8 | 14130 | |
d9898ee8 | 14131 | |
dd184caf | 14132 | |
d9898ee8 | 14133 | _ACEOF |
14134 | ||
8d138742 | 14135 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
d9898ee8 | 14136 | |
8d138742 CE |
14137 | # Handling of arguments. |
14138 | for ac_config_target in $ac_config_targets | |
14139 | do | |
14140 | case $ac_config_target in | |
14141 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
14142 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
14143 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
14144 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
d9898ee8 | 14145 | |
8d138742 CE |
14146 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
14147 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
14148 | { (exit 1); exit 1; }; };; | |
14149 | esac | |
14150 | done | |
d9898ee8 | 14151 | |
d9898ee8 | 14152 | |
8d138742 CE |
14153 | # If the user did not use the arguments to specify the items to instantiate, |
14154 | # then the envvar interface is used. Set only those that are not. | |
14155 | # We use the long form for the default assignment because of an extremely | |
14156 | # bizarre bug on SunOS 4.1.3. | |
14157 | if $ac_need_defaults; then | |
14158 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
14159 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
14160 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
14161 | fi | |
d9898ee8 | 14162 | |
8d138742 CE |
14163 | # Have a temporary directory for convenience. Make it in the build tree |
14164 | # simply because there is no reason against having it here, and in addition, | |
14165 | # creating and moving files from /tmp can sometimes cause problems. | |
14166 | # Hook for its removal unless debugging. | |
14167 | # Note that there is a small window in which the directory will not be cleaned: | |
14168 | # after its creation but before its name has been assigned to `$tmp'. | |
14169 | $debug || | |
d9898ee8 | 14170 | { |
8d138742 CE |
14171 | tmp= |
14172 | trap 'exit_status=$? | |
14173 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
14174 | ' 0 | |
14175 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
d9898ee8 | 14176 | } |
8d138742 | 14177 | # Create a (secure) tmp directory for tmp files. |
d9898ee8 | 14178 | |
8d138742 CE |
14179 | { |
14180 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
14181 | test -n "$tmp" && test -d "$tmp" | |
14182 | } || | |
14183 | { | |
14184 | tmp=./conf$$-$RANDOM | |
14185 | (umask 077 && mkdir "$tmp") | |
14186 | } || | |
14187 | { | |
14188 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 | |
14189 | { (exit 1); exit 1; } | |
d9898ee8 | 14190 | } |
8d138742 CE |
14191 | |
14192 | # Set up the scripts for CONFIG_FILES section. | |
14193 | # No need to generate them if there are no CONFIG_FILES. | |
14194 | # This happens for instance with `./config.status config.h'. | |
14195 | if test -n "$CONFIG_FILES"; then | |
14196 | ||
14197 | ||
14198 | ac_cr='\r' | |
14199 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
14200 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
14201 | ac_cs_awk_cr='\\r' | |
d9898ee8 | 14202 | else |
8d138742 CE |
14203 | ac_cs_awk_cr=$ac_cr |
14204 | fi | |
d9898ee8 | 14205 | |
8d138742 | 14206 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
d9898ee8 | 14207 | _ACEOF |
d9898ee8 | 14208 | |
d9898ee8 | 14209 | |
d9898ee8 | 14210 | { |
8d138742 CE |
14211 | echo "cat >conf$$subs.awk <<_ACEOF" && |
14212 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
14213 | echo "_ACEOF" | |
14214 | } >conf$$subs.sh || | |
14215 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
14216 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
14217 | { (exit 1); exit 1; }; } | |
14218 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
14219 | ac_delim='%!_!# ' | |
14220 | for ac_last_try in false false false false false :; do | |
14221 | . ./conf$$subs.sh || | |
14222 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
14223 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
14224 | { (exit 1); exit 1; }; } | |
d9898ee8 | 14225 | |
8d138742 CE |
14226 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
14227 | if test $ac_delim_n = $ac_delim_num; then | |
14228 | break | |
14229 | elif $ac_last_try; then | |
14230 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
14231 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
14232 | { (exit 1); exit 1; }; } | |
14233 | else | |
14234 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
14235 | fi | |
14236 | done | |
14237 | rm -f conf$$subs.sh | |
14238 | ||
14239 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14240 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
14241 | _ACEOF | |
14242 | sed -n ' | |
14243 | h | |
14244 | s/^/S["/; s/!.*/"]=/ | |
14245 | p | |
14246 | g | |
14247 | s/^[^!]*!// | |
14248 | :repl | |
14249 | t repl | |
14250 | s/'"$ac_delim"'$// | |
14251 | t delim | |
14252 | :nl | |
14253 | h | |
14254 | s/\(.\{148\}\).*/\1/ | |
14255 | t more1 | |
14256 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
14257 | p | |
14258 | n | |
14259 | b repl | |
14260 | :more1 | |
14261 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
14262 | p | |
14263 | g | |
14264 | s/.\{148\}// | |
14265 | t nl | |
14266 | :delim | |
14267 | h | |
14268 | s/\(.\{148\}\).*/\1/ | |
14269 | t more2 | |
14270 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
14271 | p | |
14272 | b | |
14273 | :more2 | |
14274 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
14275 | p | |
14276 | g | |
14277 | s/.\{148\}// | |
14278 | t delim | |
14279 | ' <conf$$subs.awk | sed ' | |
14280 | /^[^""]/{ | |
14281 | N | |
14282 | s/\n// | |
14283 | } | |
14284 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
14285 | rm -f conf$$subs.awk | |
14286 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14287 | _ACAWK | |
14288 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
14289 | for (key in S) S_is_set[key] = 1 | |
14290 | FS = "\a" | |
d9898ee8 | 14291 | |
d9898ee8 | 14292 | } |
8d138742 CE |
14293 | { |
14294 | line = $ 0 | |
14295 | nfields = split(line, field, "@") | |
14296 | substed = 0 | |
14297 | len = length(field[1]) | |
14298 | for (i = 2; i < nfields; i++) { | |
14299 | key = field[i] | |
14300 | keylen = length(key) | |
14301 | if (S_is_set[key]) { | |
14302 | value = S[key] | |
14303 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
14304 | len += length(value) + length(field[++i]) | |
14305 | substed = 1 | |
14306 | } else | |
14307 | len += 1 + keylen | |
14308 | } | |
d9898ee8 | 14309 | |
8d138742 | 14310 | print line |
d9898ee8 | 14311 | } |
8d138742 CE |
14312 | |
14313 | _ACAWK | |
d9898ee8 | 14314 | _ACEOF |
8d138742 CE |
14315 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14316 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
14317 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
d9898ee8 | 14318 | else |
8d138742 CE |
14319 | cat |
14320 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
14321 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 | |
14322 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} | |
14323 | { (exit 1); exit 1; }; } | |
14324 | _ACEOF | |
14325 | ||
14326 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
14327 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
14328 | # trailing colons and then remove the whole line if VPATH becomes empty | |
14329 | # (actually we leave an empty line to preserve line numbers). | |
14330 | if test "x$srcdir" = x.; then | |
14331 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
14332 | s/:*\$(srcdir):*/:/ | |
14333 | s/:*\${srcdir}:*/:/ | |
14334 | s/:*@srcdir@:*/:/ | |
14335 | s/^\([^=]*=[ ]*\):*/\1/ | |
14336 | s/:*$// | |
14337 | s/^[^=]*=[ ]*$// | |
14338 | }' | |
14339 | fi | |
d9898ee8 | 14340 | |
8d138742 CE |
14341 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14342 | fi # test -n "$CONFIG_FILES" | |
d9898ee8 | 14343 | |
8d138742 CE |
14344 | # Set up the scripts for CONFIG_HEADERS section. |
14345 | # No need to generate them if there are no CONFIG_HEADERS. | |
14346 | # This happens for instance with `./config.status Makefile'. | |
14347 | if test -n "$CONFIG_HEADERS"; then | |
14348 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
14349 | BEGIN { | |
14350 | _ACEOF | |
d9898ee8 | 14351 | |
8d138742 CE |
14352 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
14353 | # here-document in config.status, that substitutes the proper values into | |
14354 | # config.h.in to produce config.h. | |
d9898ee8 | 14355 | |
8d138742 CE |
14356 | # Create a delimiter string that does not exist in confdefs.h, to ease |
14357 | # handling of long lines. | |
14358 | ac_delim='%!_!# ' | |
14359 | for ac_last_try in false false :; do | |
14360 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
14361 | if test -z "$ac_t"; then | |
14362 | break | |
14363 | elif $ac_last_try; then | |
14364 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 | |
14365 | $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} | |
14366 | { (exit 1); exit 1; }; } | |
14367 | else | |
14368 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
14369 | fi | |
14370 | done | |
d9898ee8 | 14371 | |
8d138742 CE |
14372 | # For the awk script, D is an array of macro values keyed by name, |
14373 | # likewise P contains macro parameters if any. Preserve backslash | |
14374 | # newline sequences. | |
d9898ee8 | 14375 | |
8d138742 CE |
14376 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
14377 | sed -n ' | |
14378 | s/.\{148\}/&'"$ac_delim"'/g | |
14379 | t rset | |
14380 | :rset | |
14381 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
14382 | t def | |
14383 | d | |
14384 | :def | |
14385 | s/\\$// | |
14386 | t bsnl | |
14387 | s/["\\]/\\&/g | |
14388 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
14389 | D["\1"]=" \3"/p | |
14390 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
14391 | d | |
14392 | :bsnl | |
14393 | s/["\\]/\\&/g | |
14394 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
14395 | D["\1"]=" \3\\\\\\n"\\/p | |
14396 | t cont | |
14397 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
14398 | t cont | |
14399 | d | |
14400 | :cont | |
14401 | n | |
14402 | s/.\{148\}/&'"$ac_delim"'/g | |
14403 | t clear | |
14404 | :clear | |
14405 | s/\\$// | |
14406 | t bsnlc | |
14407 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
14408 | d | |
14409 | :bsnlc | |
14410 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
14411 | b cont | |
14412 | ' <confdefs.h | sed ' | |
14413 | s/'"$ac_delim"'/"\\\ | |
14414 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
14415 | ||
14416 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14417 | for (key in D) D_is_set[key] = 1 | |
14418 | FS = "\a" | |
d9898ee8 | 14419 | } |
8d138742 CE |
14420 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
14421 | line = \$ 0 | |
14422 | split(line, arg, " ") | |
14423 | if (arg[1] == "#") { | |
14424 | defundef = arg[2] | |
14425 | mac1 = arg[3] | |
14426 | } else { | |
14427 | defundef = substr(arg[1], 2) | |
14428 | mac1 = arg[2] | |
14429 | } | |
14430 | split(mac1, mac2, "(") #) | |
14431 | macro = mac2[1] | |
14432 | prefix = substr(line, 1, index(line, defundef) - 1) | |
14433 | if (D_is_set[macro]) { | |
14434 | # Preserve the white space surrounding the "#". | |
14435 | print prefix "define", macro P[macro] D[macro] | |
14436 | next | |
14437 | } else { | |
14438 | # Replace #undef with comments. This is necessary, for example, | |
14439 | # in the case of _POSIX_SOURCE, which is predefined and required | |
14440 | # on some systems where configure will not decide to define it. | |
14441 | if (defundef == "undef") { | |
14442 | print "/*", prefix defundef, macro, "*/" | |
14443 | next | |
14444 | } | |
14445 | } | |
d9898ee8 | 14446 | } |
8d138742 CE |
14447 | { print } |
14448 | _ACAWK | |
d9898ee8 | 14449 | _ACEOF |
8d138742 CE |
14450 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14451 | { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 | |
14452 | $as_echo "$as_me: error: could not setup config headers machinery" >&2;} | |
14453 | { (exit 1); exit 1; }; } | |
14454 | fi # test -n "$CONFIG_HEADERS" | |
d9898ee8 | 14455 | |
d9898ee8 | 14456 | |
8d138742 CE |
14457 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
14458 | shift | |
14459 | for ac_tag | |
14460 | do | |
14461 | case $ac_tag in | |
14462 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
14463 | esac | |
14464 | case $ac_mode$ac_tag in | |
14465 | :[FHL]*:*);; | |
14466 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 | |
14467 | $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} | |
14468 | { (exit 1); exit 1; }; };; | |
14469 | :[FH]-) ac_tag=-:-;; | |
14470 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
14471 | esac | |
14472 | ac_save_IFS=$IFS | |
14473 | IFS=: | |
14474 | set x $ac_tag | |
14475 | IFS=$ac_save_IFS | |
14476 | shift | |
14477 | ac_file=$1 | |
14478 | shift | |
dd184caf | 14479 | |
8d138742 CE |
14480 | case $ac_mode in |
14481 | :L) ac_source=$1;; | |
14482 | :[FH]) | |
14483 | ac_file_inputs= | |
14484 | for ac_f | |
14485 | do | |
14486 | case $ac_f in | |
14487 | -) ac_f="$tmp/stdin";; | |
14488 | *) # Look for the file first in the build tree, then in the source tree | |
14489 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
14490 | # because $ac_f cannot contain `:'. | |
14491 | test -f "$ac_f" || | |
14492 | case $ac_f in | |
14493 | [\\/$]*) false;; | |
14494 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
14495 | esac || | |
14496 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | |
14497 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
14498 | { (exit 1); exit 1; }; };; | |
14499 | esac | |
14500 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
14501 | ac_file_inputs="$ac_file_inputs '$ac_f'" | |
14502 | done | |
d9898ee8 | 14503 | |
8d138742 CE |
14504 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
14505 | # use $as_me), people would be surprised to read: | |
14506 | # /* config.h. Generated by config.status. */ | |
14507 | configure_input='Generated from '` | |
14508 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
14509 | `' by configure.' | |
14510 | if test x"$ac_file" != x-; then | |
14511 | configure_input="$ac_file. $configure_input" | |
14512 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 | |
14513 | $as_echo "$as_me: creating $ac_file" >&6;} | |
14514 | fi | |
14515 | # Neutralize special characters interpreted by sed in replacement strings. | |
14516 | case $configure_input in #( | |
14517 | *\&* | *\|* | *\\* ) | |
14518 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
14519 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
14520 | *) ac_sed_conf_input=$configure_input;; | |
14521 | esac | |
dd184caf | 14522 | |
8d138742 CE |
14523 | case $ac_tag in |
14524 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
14525 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
14526 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
14527 | { (exit 1); exit 1; }; } ;; | |
14528 | esac | |
14529 | ;; | |
14530 | esac | |
d9898ee8 | 14531 | |
8d138742 CE |
14532 | ac_dir=`$as_dirname -- "$ac_file" || |
14533 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14534 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
14535 | X"$ac_file" : 'X\(//\)$' \| \ | |
14536 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
14537 | $as_echo X"$ac_file" | | |
14538 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14539 | s//\1/ | |
14540 | q | |
14541 | } | |
14542 | /^X\(\/\/\)[^/].*/{ | |
14543 | s//\1/ | |
14544 | q | |
14545 | } | |
14546 | /^X\(\/\/\)$/{ | |
14547 | s//\1/ | |
14548 | q | |
14549 | } | |
14550 | /^X\(\/\).*/{ | |
14551 | s//\1/ | |
14552 | q | |
14553 | } | |
14554 | s/.*/./; q'` | |
14555 | { as_dir="$ac_dir" | |
14556 | case $as_dir in #( | |
14557 | -*) as_dir=./$as_dir;; | |
14558 | esac | |
14559 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
14560 | as_dirs= | |
14561 | while :; do | |
14562 | case $as_dir in #( | |
14563 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
14564 | *) as_qdir=$as_dir;; | |
14565 | esac | |
14566 | as_dirs="'$as_qdir' $as_dirs" | |
14567 | as_dir=`$as_dirname -- "$as_dir" || | |
14568 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14569 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
14570 | X"$as_dir" : 'X\(//\)$' \| \ | |
14571 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
14572 | $as_echo X"$as_dir" | | |
14573 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14574 | s//\1/ | |
14575 | q | |
14576 | } | |
14577 | /^X\(\/\/\)[^/].*/{ | |
14578 | s//\1/ | |
14579 | q | |
14580 | } | |
14581 | /^X\(\/\/\)$/{ | |
14582 | s//\1/ | |
14583 | q | |
14584 | } | |
14585 | /^X\(\/\).*/{ | |
14586 | s//\1/ | |
14587 | q | |
14588 | } | |
14589 | s/.*/./; q'` | |
14590 | test -d "$as_dir" && break | |
14591 | done | |
14592 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
14593 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
14594 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
14595 | { (exit 1); exit 1; }; }; } | |
14596 | ac_builddir=. | |
dd184caf | 14597 | |
8d138742 CE |
14598 | case "$ac_dir" in |
14599 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
14600 | *) | |
14601 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
14602 | # A ".." for each directory in $ac_dir_suffix. | |
14603 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
14604 | case $ac_top_builddir_sub in | |
14605 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
14606 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
14607 | esac ;; | |
14608 | esac | |
14609 | ac_abs_top_builddir=$ac_pwd | |
14610 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
14611 | # for backward compatibility: | |
14612 | ac_top_builddir=$ac_top_build_prefix | |
d9898ee8 | 14613 | |
8d138742 CE |
14614 | case $srcdir in |
14615 | .) # We are building in place. | |
14616 | ac_srcdir=. | |
14617 | ac_top_srcdir=$ac_top_builddir_sub | |
14618 | ac_abs_top_srcdir=$ac_pwd ;; | |
14619 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
14620 | ac_srcdir=$srcdir$ac_dir_suffix; | |
14621 | ac_top_srcdir=$srcdir | |
14622 | ac_abs_top_srcdir=$srcdir ;; | |
14623 | *) # Relative name. | |
14624 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
14625 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
14626 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
14627 | esac | |
14628 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
d9898ee8 | 14629 | |
d9898ee8 | 14630 | |
8d138742 CE |
14631 | case $ac_mode in |
14632 | :F) | |
14633 | # | |
14634 | # CONFIG_FILE | |
14635 | # | |
14636 | ||
14637 | case $INSTALL in | |
14638 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
14639 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
14640 | esac | |
14641 | ac_MKDIR_P=$MKDIR_P | |
14642 | case $MKDIR_P in | |
14643 | [\\/$]* | ?:[\\/]* ) ;; | |
14644 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
14645 | esac | |
d9898ee8 | 14646 | _ACEOF |
14647 | ||
8d138742 CE |
14648 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14649 | # If the template does not know about datarootdir, expand it. | |
14650 | # FIXME: This hack should be removed a few years after 2.60. | |
14651 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
d9898ee8 | 14652 | |
8d138742 CE |
14653 | ac_sed_dataroot=' |
14654 | /datarootdir/ { | |
14655 | p | |
14656 | q | |
14657 | } | |
14658 | /@datadir@/p | |
14659 | /@docdir@/p | |
14660 | /@infodir@/p | |
14661 | /@localedir@/p | |
14662 | /@mandir@/p | |
14663 | ' | |
14664 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
14665 | *datarootdir*) ac_datarootdir_seen=yes;; | |
14666 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
14667 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
14668 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
14669 | _ACEOF | |
14670 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14671 | ac_datarootdir_hack=' | |
14672 | s&@datadir@&$datadir&g | |
14673 | s&@docdir@&$docdir&g | |
14674 | s&@infodir@&$infodir&g | |
14675 | s&@localedir@&$localedir&g | |
14676 | s&@mandir@&$mandir&g | |
14677 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
14678 | esac | |
d9898ee8 | 14679 | _ACEOF |
14680 | ||
8d138742 CE |
14681 | # Neutralize VPATH when `$srcdir' = `.'. |
14682 | # Shell code in configure.ac might set extrasub. | |
14683 | # FIXME: do we really want to maintain this feature? | |
14684 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14685 | ac_sed_extra="$ac_vpsub | |
14686 | $extrasub | |
d9898ee8 | 14687 | _ACEOF |
8d138742 CE |
14688 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14689 | :t | |
14690 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
14691 | s|@configure_input@|$ac_sed_conf_input|;t t | |
14692 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
14693 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
14694 | s&@srcdir@&$ac_srcdir&;t t | |
14695 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
14696 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
14697 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
14698 | s&@builddir@&$ac_builddir&;t t | |
14699 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
14700 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
14701 | s&@INSTALL@&$ac_INSTALL&;t t | |
14702 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
14703 | $ac_datarootdir_hack | |
14704 | " | |
14705 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
14706 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
14707 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
14708 | { (exit 1); exit 1; }; } | |
d9898ee8 | 14709 | |
8d138742 CE |
14710 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
14711 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
14712 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
14713 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
14714 | which seems to be undefined. Please make sure it is defined." >&5 | |
14715 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
14716 | which seems to be undefined. Please make sure it is defined." >&2;} | |
d9898ee8 | 14717 | |
8d138742 CE |
14718 | rm -f "$tmp/stdin" |
14719 | case $ac_file in | |
14720 | -) cat "$tmp/out" && rm -f "$tmp/out";; | |
14721 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
14722 | esac \ | |
14723 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
14724 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
14725 | { (exit 1); exit 1; }; } | |
14726 | ;; | |
14727 | :H) | |
14728 | # | |
14729 | # CONFIG_HEADER | |
14730 | # | |
14731 | if test x"$ac_file" != x-; then | |
14732 | { | |
14733 | $as_echo "/* $configure_input */" \ | |
14734 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
14735 | } >"$tmp/config.h" \ | |
14736 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
14737 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
14738 | { (exit 1); exit 1; }; } | |
14739 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
14740 | { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
14741 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
14742 | else | |
14743 | rm -f "$ac_file" | |
14744 | mv "$tmp/config.h" "$ac_file" \ | |
14745 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
14746 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
14747 | { (exit 1); exit 1; }; } | |
14748 | fi | |
14749 | else | |
14750 | $as_echo "/* $configure_input */" \ | |
14751 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
14752 | || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 | |
14753 | $as_echo "$as_me: error: could not create -" >&2;} | |
14754 | { (exit 1); exit 1; }; } | |
14755 | fi | |
14756 | # Compute "$ac_file"'s index in $config_headers. | |
14757 | _am_arg="$ac_file" | |
14758 | _am_stamp_count=1 | |
14759 | for _am_header in $config_headers :; do | |
14760 | case $_am_header in | |
14761 | $_am_arg | $_am_arg:* ) | |
14762 | break ;; | |
14763 | * ) | |
14764 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
14765 | esac | |
14766 | done | |
14767 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
14768 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14769 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
14770 | X"$_am_arg" : 'X\(//\)$' \| \ | |
14771 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
14772 | $as_echo X"$_am_arg" | | |
14773 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14774 | s//\1/ | |
14775 | q | |
14776 | } | |
14777 | /^X\(\/\/\)[^/].*/{ | |
14778 | s//\1/ | |
14779 | q | |
14780 | } | |
14781 | /^X\(\/\/\)$/{ | |
14782 | s//\1/ | |
14783 | q | |
14784 | } | |
14785 | /^X\(\/\).*/{ | |
14786 | s//\1/ | |
14787 | q | |
14788 | } | |
14789 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
14790 | ;; | |
d9898ee8 | 14791 | |
8d138742 CE |
14792 | :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
14793 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
14794 | ;; | |
14795 | esac | |
d9898ee8 | 14796 | |
d9898ee8 | 14797 | |
8d138742 CE |
14798 | case $ac_file$ac_mode in |
14799 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
14800 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
14801 | # are listed without --file. Let's play safe and only enable the eval | |
14802 | # if we detect the quoting. | |
14803 | case $CONFIG_FILES in | |
14804 | *\'*) eval set x "$CONFIG_FILES" ;; | |
14805 | *) set x $CONFIG_FILES ;; | |
14806 | esac | |
14807 | shift | |
14808 | for mf | |
14809 | do | |
14810 | # Strip MF so we end up with the name of the file. | |
14811 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
14812 | # Check whether this is an Automake generated Makefile or not. | |
14813 | # We used to match only the files named `Makefile.in', but | |
14814 | # some people rename them; so instead we look at the file content. | |
14815 | # Grep'ing the first line is not enough: some people post-process | |
14816 | # each Makefile.in and add a new line on top of each file to say so. | |
14817 | # Grep'ing the whole file is not good either: AIX grep has a line | |
14818 | # limit of 2048, but all sed's we know have understand at least 4000. | |
14819 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
14820 | dirpart=`$as_dirname -- "$mf" || | |
14821 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14822 | X"$mf" : 'X\(//\)[^/]' \| \ | |
14823 | X"$mf" : 'X\(//\)$' \| \ | |
14824 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
14825 | $as_echo X"$mf" | | |
14826 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14827 | s//\1/ | |
14828 | q | |
14829 | } | |
14830 | /^X\(\/\/\)[^/].*/{ | |
14831 | s//\1/ | |
14832 | q | |
14833 | } | |
14834 | /^X\(\/\/\)$/{ | |
14835 | s//\1/ | |
14836 | q | |
14837 | } | |
14838 | /^X\(\/\).*/{ | |
14839 | s//\1/ | |
14840 | q | |
14841 | } | |
14842 | s/.*/./; q'` | |
14843 | else | |
14844 | continue | |
14845 | fi | |
14846 | # Extract the definition of DEPDIR, am__include, and am__quote | |
14847 | # from the Makefile without running `make'. | |
14848 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
14849 | test -z "$DEPDIR" && continue | |
14850 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
14851 | test -z "am__include" && continue | |
14852 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
14853 | # When using ansi2knr, U may be empty or an underscore; expand it | |
14854 | U=`sed -n 's/^U = //p' < "$mf"` | |
14855 | # Find all dependency output files, they are included files with | |
14856 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
14857 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
14858 | # expansion. | |
14859 | for file in `sed -n " | |
14860 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
14861 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
14862 | # Make sure the directory exists. | |
14863 | test -f "$dirpart/$file" && continue | |
14864 | fdir=`$as_dirname -- "$file" || | |
14865 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14866 | X"$file" : 'X\(//\)[^/]' \| \ | |
14867 | X"$file" : 'X\(//\)$' \| \ | |
14868 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
14869 | $as_echo X"$file" | | |
14870 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14871 | s//\1/ | |
14872 | q | |
14873 | } | |
14874 | /^X\(\/\/\)[^/].*/{ | |
14875 | s//\1/ | |
14876 | q | |
14877 | } | |
14878 | /^X\(\/\/\)$/{ | |
14879 | s//\1/ | |
14880 | q | |
14881 | } | |
14882 | /^X\(\/\).*/{ | |
14883 | s//\1/ | |
14884 | q | |
14885 | } | |
14886 | s/.*/./; q'` | |
14887 | { as_dir=$dirpart/$fdir | |
14888 | case $as_dir in #( | |
14889 | -*) as_dir=./$as_dir;; | |
14890 | esac | |
14891 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
14892 | as_dirs= | |
14893 | while :; do | |
14894 | case $as_dir in #( | |
14895 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
14896 | *) as_qdir=$as_dir;; | |
14897 | esac | |
14898 | as_dirs="'$as_qdir' $as_dirs" | |
14899 | as_dir=`$as_dirname -- "$as_dir" || | |
14900 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14901 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
14902 | X"$as_dir" : 'X\(//\)$' \| \ | |
14903 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
14904 | $as_echo X"$as_dir" | | |
14905 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14906 | s//\1/ | |
14907 | q | |
14908 | } | |
14909 | /^X\(\/\/\)[^/].*/{ | |
14910 | s//\1/ | |
14911 | q | |
14912 | } | |
14913 | /^X\(\/\/\)$/{ | |
14914 | s//\1/ | |
14915 | q | |
14916 | } | |
14917 | /^X\(\/\).*/{ | |
14918 | s//\1/ | |
14919 | q | |
14920 | } | |
14921 | s/.*/./; q'` | |
14922 | test -d "$as_dir" && break | |
14923 | done | |
14924 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
14925 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
14926 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
14927 | { (exit 1); exit 1; }; }; } | |
14928 | # echo "creating $dirpart/$file" | |
14929 | echo '# dummy' > "$dirpart/$file" | |
14930 | done | |
14931 | done | |
14932 | } | |
14933 | ;; | |
14934 | "libtool":C) | |
d9898ee8 | 14935 | |
8d138742 CE |
14936 | # See if we are running on zsh, and set the options which allow our |
14937 | # commands through without removal of \ escapes. | |
14938 | if test -n "${ZSH_VERSION+set}" ; then | |
14939 | setopt NO_GLOB_SUBST | |
14940 | fi | |
d9898ee8 | 14941 | |
8d138742 CE |
14942 | cfgfile="${ofile}T" |
14943 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
14944 | $RM "$cfgfile" | |
dd184caf | 14945 | |
8d138742 CE |
14946 | cat <<_LT_EOF >> "$cfgfile" |
14947 | #! $SHELL | |
14948 | ||
14949 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
14950 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
14951 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
14952 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
d9898ee8 | 14953 | # |
8d138742 CE |
14954 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
14955 | # 2006, 2007, 2008 Free Software Foundation, Inc. | |
14956 | # Written by Gordon Matzigkeit, 1996 | |
d9898ee8 | 14957 | # |
8d138742 CE |
14958 | # This file is part of GNU Libtool. |
14959 | # | |
14960 | # GNU Libtool is free software; you can redistribute it and/or | |
14961 | # modify it under the terms of the GNU General Public License as | |
14962 | # published by the Free Software Foundation; either version 2 of | |
14963 | # the License, or (at your option) any later version. | |
14964 | # | |
14965 | # As a special exception to the GNU General Public License, | |
14966 | # if you distribute this file as part of a program or library that | |
14967 | # is built using GNU Libtool, you may include this file under the | |
14968 | # same distribution terms that you use for the rest of that program. | |
14969 | # | |
14970 | # GNU Libtool is distributed in the hope that it will be useful, | |
14971 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14972 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14973 | # GNU General Public License for more details. | |
14974 | # | |
14975 | # You should have received a copy of the GNU General Public License | |
14976 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
14977 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
14978 | # obtained by writing to the Free Software Foundation, Inc., | |
14979 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
d9898ee8 | 14980 | |
dd184caf | 14981 | |
8d138742 CE |
14982 | # The names of the tagged configurations supported by this script. |
14983 | available_tags="" | |
d9898ee8 | 14984 | |
8d138742 | 14985 | # ### BEGIN LIBTOOL CONFIG |
d9898ee8 | 14986 | |
8d138742 CE |
14987 | # Which release of libtool.m4 was used? |
14988 | macro_version=$macro_version | |
14989 | macro_revision=$macro_revision | |
d9898ee8 | 14990 | |
8d138742 CE |
14991 | # Whether or not to build shared libraries. |
14992 | build_libtool_libs=$enable_shared | |
d9898ee8 | 14993 | |
8d138742 CE |
14994 | # Whether or not to build static libraries. |
14995 | build_old_libs=$enable_static | |
d9898ee8 | 14996 | |
8d138742 CE |
14997 | # What type of objects to build. |
14998 | pic_mode=$pic_mode | |
d9898ee8 | 14999 | |
8d138742 CE |
15000 | # Whether or not to optimize for fast installation. |
15001 | fast_install=$enable_fast_install | |
d9898ee8 | 15002 | |
8d138742 CE |
15003 | # The host system. |
15004 | host_alias=$host_alias | |
15005 | host=$host | |
15006 | host_os=$host_os | |
d9898ee8 | 15007 | |
8d138742 CE |
15008 | # The build system. |
15009 | build_alias=$build_alias | |
15010 | build=$build | |
15011 | build_os=$build_os | |
d9898ee8 | 15012 | |
8d138742 CE |
15013 | # A sed program that does not truncate output. |
15014 | SED=$lt_SED | |
d9898ee8 | 15015 | |
8d138742 CE |
15016 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
15017 | Xsed="\$SED -e 1s/^X//" | |
dd184caf | 15018 | |
8d138742 CE |
15019 | # A grep program that handles long lines. |
15020 | GREP=$lt_GREP | |
dd184caf | 15021 | |
8d138742 CE |
15022 | # An ERE matcher. |
15023 | EGREP=$lt_EGREP | |
dd184caf | 15024 | |
8d138742 CE |
15025 | # A literal string matcher. |
15026 | FGREP=$lt_FGREP | |
dd184caf | 15027 | |
8d138742 CE |
15028 | # A BSD- or MS-compatible name lister. |
15029 | NM=$lt_NM | |
dd184caf | 15030 | |
8d138742 CE |
15031 | # Whether we need soft or hard links. |
15032 | LN_S=$lt_LN_S | |
dd184caf | 15033 | |
8d138742 CE |
15034 | # What is the maximum length of a command? |
15035 | max_cmd_len=$max_cmd_len | |
d9898ee8 | 15036 | |
8d138742 CE |
15037 | # Object file suffix (normally "o"). |
15038 | objext=$ac_objext | |
d9898ee8 | 15039 | |
8d138742 CE |
15040 | # Executable file suffix (normally ""). |
15041 | exeext=$exeext | |
d9898ee8 | 15042 | |
8d138742 CE |
15043 | # whether the shell understands "unset". |
15044 | lt_unset=$lt_unset | |
d9898ee8 | 15045 | |
8d138742 CE |
15046 | # turn spaces into newlines. |
15047 | SP2NL=$lt_lt_SP2NL | |
dd184caf | 15048 | |
8d138742 CE |
15049 | # turn newlines into spaces. |
15050 | NL2SP=$lt_lt_NL2SP | |
dd184caf | 15051 | |
8d138742 CE |
15052 | # How to create reloadable object files. |
15053 | reload_flag=$lt_reload_flag | |
15054 | reload_cmds=$lt_reload_cmds | |
dd184caf | 15055 | |
8d138742 CE |
15056 | # An object symbol dumper. |
15057 | OBJDUMP=$lt_OBJDUMP | |
d9898ee8 | 15058 | |
8d138742 CE |
15059 | # Method to check whether dependent libraries are shared objects. |
15060 | deplibs_check_method=$lt_deplibs_check_method | |
d9898ee8 | 15061 | |
8d138742 CE |
15062 | # Command to use when deplibs_check_method == "file_magic". |
15063 | file_magic_cmd=$lt_file_magic_cmd | |
d9898ee8 | 15064 | |
8d138742 CE |
15065 | # The archiver. |
15066 | AR=$lt_AR | |
15067 | AR_FLAGS=$lt_AR_FLAGS | |
d9898ee8 | 15068 | |
8d138742 CE |
15069 | # A symbol stripping program. |
15070 | STRIP=$lt_STRIP | |
d9898ee8 | 15071 | |
8d138742 CE |
15072 | # Commands used to install an old-style archive. |
15073 | RANLIB=$lt_RANLIB | |
15074 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
15075 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
d9898ee8 | 15076 | |
8d138742 CE |
15077 | # A C compiler. |
15078 | LTCC=$lt_CC | |
d9898ee8 | 15079 | |
8d138742 CE |
15080 | # LTCC compiler flags. |
15081 | LTCFLAGS=$lt_CFLAGS | |
d9898ee8 | 15082 | |
8d138742 CE |
15083 | # Take the output of nm and produce a listing of raw symbols and C names. |
15084 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
d9898ee8 | 15085 | |
8d138742 CE |
15086 | # Transform the output of nm in a proper C declaration. |
15087 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
d9898ee8 | 15088 | |
8d138742 CE |
15089 | # Transform the output of nm in a C name address pair. |
15090 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
d9898ee8 | 15091 | |
8d138742 CE |
15092 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
15093 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
d9898ee8 | 15094 | |
8d138742 CE |
15095 | # The name of the directory that contains temporary libtool files. |
15096 | objdir=$objdir | |
dd184caf | 15097 | |
8d138742 CE |
15098 | # Shell to use when invoking shell scripts. |
15099 | SHELL=$lt_SHELL | |
d9898ee8 | 15100 | |
8d138742 CE |
15101 | # An echo program that does not interpret backslashes. |
15102 | ECHO=$lt_ECHO | |
d9898ee8 | 15103 | |
8d138742 CE |
15104 | # Used to examine libraries when file_magic_cmd begins with "file". |
15105 | MAGIC_CMD=$MAGIC_CMD | |
d9898ee8 | 15106 | |
8d138742 CE |
15107 | # Must we lock files when doing compilation? |
15108 | need_locks=$lt_need_locks | |
d9898ee8 | 15109 | |
8d138742 CE |
15110 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
15111 | DSYMUTIL=$lt_DSYMUTIL | |
d9898ee8 | 15112 | |
8d138742 CE |
15113 | # Tool to change global to local symbols on Mac OS X. |
15114 | NMEDIT=$lt_NMEDIT | |
d9898ee8 | 15115 | |
8d138742 CE |
15116 | # Tool to manipulate fat objects and archives on Mac OS X. |
15117 | LIPO=$lt_LIPO | |
d9898ee8 | 15118 | |
8d138742 CE |
15119 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
15120 | OTOOL=$lt_OTOOL | |
d9898ee8 | 15121 | |
8d138742 CE |
15122 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
15123 | OTOOL64=$lt_OTOOL64 | |
d9898ee8 | 15124 | |
8d138742 CE |
15125 | # Old archive suffix (normally "a"). |
15126 | libext=$libext | |
d9898ee8 | 15127 | |
8d138742 CE |
15128 | # Shared library suffix (normally ".so"). |
15129 | shrext_cmds=$lt_shrext_cmds | |
d9898ee8 | 15130 | |
8d138742 CE |
15131 | # The commands to extract the exported symbol list from a shared archive. |
15132 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
dd184caf | 15133 | |
8d138742 CE |
15134 | # Variables whose values should be saved in libtool wrapper scripts and |
15135 | # restored at link time. | |
15136 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
d9898ee8 | 15137 | |
8d138742 CE |
15138 | # Do we need the "lib" prefix for modules? |
15139 | need_lib_prefix=$need_lib_prefix | |
d9898ee8 | 15140 | |
8d138742 CE |
15141 | # Do we need a version for libraries? |
15142 | need_version=$need_version | |
d9898ee8 | 15143 | |
8d138742 CE |
15144 | # Library versioning type. |
15145 | version_type=$version_type | |
d9898ee8 | 15146 | |
8d138742 CE |
15147 | # Shared library runtime path variable. |
15148 | runpath_var=$runpath_var | |
d9898ee8 | 15149 | |
8d138742 CE |
15150 | # Shared library path variable. |
15151 | shlibpath_var=$shlibpath_var | |
d9898ee8 | 15152 | |
8d138742 CE |
15153 | # Is shlibpath searched before the hard-coded library search path? |
15154 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
d9898ee8 | 15155 | |
8d138742 CE |
15156 | # Format of library name prefix. |
15157 | libname_spec=$lt_libname_spec | |
d9898ee8 | 15158 | |
8d138742 CE |
15159 | # List of archive names. First name is the real one, the rest are links. |
15160 | # The last name is the one that the linker finds with -lNAME | |
15161 | library_names_spec=$lt_library_names_spec | |
d9898ee8 | 15162 | |
8d138742 CE |
15163 | # The coded name of the library, if different from the real name. |
15164 | soname_spec=$lt_soname_spec | |
d9898ee8 | 15165 | |
8d138742 CE |
15166 | # Command to use after installation of a shared archive. |
15167 | postinstall_cmds=$lt_postinstall_cmds | |
d9898ee8 | 15168 | |
8d138742 CE |
15169 | # Command to use after uninstallation of a shared archive. |
15170 | postuninstall_cmds=$lt_postuninstall_cmds | |
dd184caf | 15171 | |
8d138742 CE |
15172 | # Commands used to finish a libtool library installation in a directory. |
15173 | finish_cmds=$lt_finish_cmds | |
d9898ee8 | 15174 | |
8d138742 CE |
15175 | # As "finish_cmds", except a single script fragment to be evaled but |
15176 | # not shown. | |
15177 | finish_eval=$lt_finish_eval | |
d9898ee8 | 15178 | |
8d138742 CE |
15179 | # Whether we should hardcode library paths into libraries. |
15180 | hardcode_into_libs=$hardcode_into_libs | |
d9898ee8 | 15181 | |
8d138742 CE |
15182 | # Compile-time system search path for libraries. |
15183 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
d9898ee8 | 15184 | |
8d138742 CE |
15185 | # Run-time system search path for libraries. |
15186 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
d9898ee8 | 15187 | |
8d138742 CE |
15188 | # Whether dlopen is supported. |
15189 | dlopen_support=$enable_dlopen | |
d9898ee8 | 15190 | |
8d138742 CE |
15191 | # Whether dlopen of programs is supported. |
15192 | dlopen_self=$enable_dlopen_self | |
d9898ee8 | 15193 | |
8d138742 CE |
15194 | # Whether dlopen of statically linked programs is supported. |
15195 | dlopen_self_static=$enable_dlopen_self_static | |
d9898ee8 | 15196 | |
8d138742 CE |
15197 | # Commands to strip libraries. |
15198 | old_striplib=$lt_old_striplib | |
15199 | striplib=$lt_striplib | |
d9898ee8 | 15200 | |
d9898ee8 | 15201 | |
8d138742 CE |
15202 | # The linker used to build libraries. |
15203 | LD=$lt_LD | |
d9898ee8 | 15204 | |
8d138742 CE |
15205 | # Commands used to build an old-style archive. |
15206 | old_archive_cmds=$lt_old_archive_cmds | |
d9898ee8 | 15207 | |
8d138742 CE |
15208 | # A language specific compiler. |
15209 | CC=$lt_compiler | |
dd184caf | 15210 | |
8d138742 CE |
15211 | # Is the compiler the GNU compiler? |
15212 | with_gcc=$GCC | |
dd184caf | 15213 | |
8d138742 CE |
15214 | # Compiler flag to turn off builtin functions. |
15215 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
d9898ee8 | 15216 | |
8d138742 CE |
15217 | # How to pass a linker flag through the compiler. |
15218 | wl=$lt_lt_prog_compiler_wl | |
dd184caf | 15219 | |
8d138742 CE |
15220 | # Additional compiler flags for building library objects. |
15221 | pic_flag=$lt_lt_prog_compiler_pic | |
d9898ee8 | 15222 | |
8d138742 CE |
15223 | # Compiler flag to prevent dynamic linking. |
15224 | link_static_flag=$lt_lt_prog_compiler_static | |
15225 | ||
15226 | # Does compiler simultaneously support -c and -o options? | |
15227 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
15228 | ||
15229 | # Whether or not to add -lc for building shared libraries. | |
15230 | build_libtool_need_lc=$archive_cmds_need_lc | |
15231 | ||
15232 | # Whether or not to disallow shared libs when runtime libs are static. | |
15233 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
15234 | ||
15235 | # Compiler flag to allow reflexive dlopens. | |
15236 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
d9898ee8 | 15237 | |
8d138742 CE |
15238 | # Compiler flag to generate shared objects directly from archives. |
15239 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
d9898ee8 | 15240 | |
8d138742 CE |
15241 | # Whether the compiler copes with passing no objects directly. |
15242 | compiler_needs_object=$lt_compiler_needs_object | |
d9898ee8 | 15243 | |
8d138742 CE |
15244 | # Create an old-style archive from a shared archive. |
15245 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
d9898ee8 | 15246 | |
8d138742 CE |
15247 | # Create a temporary old-style archive to link instead of a shared archive. |
15248 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
d9898ee8 | 15249 | |
8d138742 CE |
15250 | # Commands used to build a shared archive. |
15251 | archive_cmds=$lt_archive_cmds | |
15252 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
dd184caf | 15253 | |
8d138742 CE |
15254 | # Commands used to build a loadable module if different from building |
15255 | # a shared archive. | |
15256 | module_cmds=$lt_module_cmds | |
15257 | module_expsym_cmds=$lt_module_expsym_cmds | |
dd184caf | 15258 | |
8d138742 CE |
15259 | # Whether we are building with GNU ld or not. |
15260 | with_gnu_ld=$lt_with_gnu_ld | |
dd184caf | 15261 | |
8d138742 CE |
15262 | # Flag that allows shared libraries with undefined symbols to be built. |
15263 | allow_undefined_flag=$lt_allow_undefined_flag | |
dd184caf | 15264 | |
8d138742 CE |
15265 | # Flag that enforces no undefined symbols. |
15266 | no_undefined_flag=$lt_no_undefined_flag | |
dd184caf | 15267 | |
8d138742 CE |
15268 | # Flag to hardcode \$libdir into a binary during linking. |
15269 | # This must work even if \$libdir does not exist | |
15270 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
d9898ee8 | 15271 | |
8d138742 CE |
15272 | # If ld is used when linking, flag to hardcode \$libdir into a binary |
15273 | # during linking. This must work even if \$libdir does not exist. | |
15274 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
dd184caf | 15275 | |
8d138742 CE |
15276 | # Whether we need a single "-rpath" flag with a separated argument. |
15277 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
dd184caf | 15278 | |
8d138742 CE |
15279 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
15280 | # DIR into the resulting binary. | |
15281 | hardcode_direct=$hardcode_direct | |
dd184caf | 15282 | |
8d138742 CE |
15283 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
15284 | # DIR into the resulting binary and the resulting library dependency is | |
15285 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
15286 | # library is relocated. | |
15287 | hardcode_direct_absolute=$hardcode_direct_absolute | |
dd184caf | 15288 | |
8d138742 CE |
15289 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
15290 | # into the resulting binary. | |
15291 | hardcode_minus_L=$hardcode_minus_L | |
dd184caf | 15292 | |
8d138742 CE |
15293 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
15294 | # into the resulting binary. | |
15295 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
dd184caf | 15296 | |
8d138742 CE |
15297 | # Set to "yes" if building a shared library automatically hardcodes DIR |
15298 | # into the library and all subsequent libraries and executables linked | |
15299 | # against it. | |
15300 | hardcode_automatic=$hardcode_automatic | |
dd184caf | 15301 | |
8d138742 CE |
15302 | # Set to yes if linker adds runtime paths of dependent libraries |
15303 | # to runtime path list. | |
15304 | inherit_rpath=$inherit_rpath | |
dd184caf | 15305 | |
8d138742 CE |
15306 | # Whether libtool must link a program against all its dependency libraries. |
15307 | link_all_deplibs=$link_all_deplibs | |
dd184caf | 15308 | |
8d138742 CE |
15309 | # Fix the shell variable \$srcfile for the compiler. |
15310 | fix_srcfile_path=$lt_fix_srcfile_path | |
dd184caf | 15311 | |
8d138742 CE |
15312 | # Set to "yes" if exported symbols are required. |
15313 | always_export_symbols=$always_export_symbols | |
dd184caf | 15314 | |
8d138742 CE |
15315 | # The commands to list exported symbols. |
15316 | export_symbols_cmds=$lt_export_symbols_cmds | |
dd184caf | 15317 | |
8d138742 CE |
15318 | # Symbols that should not be listed in the preloaded symbols. |
15319 | exclude_expsyms=$lt_exclude_expsyms | |
d9898ee8 | 15320 | |
8d138742 CE |
15321 | # Symbols that must always be exported. |
15322 | include_expsyms=$lt_include_expsyms | |
d9898ee8 | 15323 | |
8d138742 CE |
15324 | # Commands necessary for linking programs (against libraries) with templates. |
15325 | prelink_cmds=$lt_prelink_cmds | |
d9898ee8 | 15326 | |
8d138742 CE |
15327 | # Specify filename containing input files. |
15328 | file_list_spec=$lt_file_list_spec | |
15329 | ||
15330 | # How to hardcode a shared library path into an executable. | |
15331 | hardcode_action=$hardcode_action | |
d9898ee8 | 15332 | |
8d138742 | 15333 | # ### END LIBTOOL CONFIG |
d9898ee8 | 15334 | |
8d138742 | 15335 | _LT_EOF |
d9898ee8 | 15336 | |
8d138742 CE |
15337 | case $host_os in |
15338 | aix3*) | |
15339 | cat <<\_LT_EOF >> "$cfgfile" | |
15340 | # AIX sometimes has problems with the GCC collect2 program. For some | |
15341 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
15342 | # vanish in a puff of smoke. | |
15343 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
15344 | COLLECT_NAMES= | |
15345 | export COLLECT_NAMES | |
15346 | fi | |
15347 | _LT_EOF | |
15348 | ;; | |
d9898ee8 | 15349 | esac |
8d138742 CE |
15350 | |
15351 | ||
15352 | ltmain="$ac_aux_dir/ltmain.sh" | |
15353 | ||
15354 | ||
15355 | # We use sed instead of cat because bash on DJGPP gets confused if | |
15356 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
15357 | # text mode, it properly converts lines to CR/LF. This bash problem | |
15358 | # is reportedly fixed, but why not run on old versions too? | |
15359 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
15360 | || (rm -f "$cfgfile"; exit 1) | |
15361 | ||
15362 | case $xsi_shell in | |
15363 | yes) | |
15364 | cat << \_LT_EOF >> "$cfgfile" | |
15365 | ||
15366 | # func_dirname file append nondir_replacement | |
15367 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
15368 | # otherwise set result to NONDIR_REPLACEMENT. | |
15369 | func_dirname () | |
15370 | { | |
15371 | case ${1} in | |
15372 | */*) func_dirname_result="${1%/*}${2}" ;; | |
15373 | * ) func_dirname_result="${3}" ;; | |
dd184caf | 15374 | esac |
8d138742 | 15375 | } |
d9898ee8 | 15376 | |
8d138742 CE |
15377 | # func_basename file |
15378 | func_basename () | |
15379 | { | |
15380 | func_basename_result="${1##*/}" | |
15381 | } | |
dd184caf | 15382 | |
8d138742 CE |
15383 | # func_dirname_and_basename file append nondir_replacement |
15384 | # perform func_basename and func_dirname in a single function | |
15385 | # call: | |
15386 | # dirname: Compute the dirname of FILE. If nonempty, | |
15387 | # add APPEND to the result, otherwise set result | |
15388 | # to NONDIR_REPLACEMENT. | |
15389 | # value returned in "$func_dirname_result" | |
15390 | # basename: Compute filename of FILE. | |
15391 | # value retuned in "$func_basename_result" | |
15392 | # Implementation must be kept synchronized with func_dirname | |
15393 | # and func_basename. For efficiency, we do not delegate to | |
15394 | # those functions but instead duplicate the functionality here. | |
15395 | func_dirname_and_basename () | |
15396 | { | |
15397 | case ${1} in | |
15398 | */*) func_dirname_result="${1%/*}${2}" ;; | |
15399 | * ) func_dirname_result="${3}" ;; | |
15400 | esac | |
15401 | func_basename_result="${1##*/}" | |
dd184caf | 15402 | } |
dd184caf | 15403 | |
8d138742 CE |
15404 | # func_stripname prefix suffix name |
15405 | # strip PREFIX and SUFFIX off of NAME. | |
15406 | # PREFIX and SUFFIX must not contain globbing or regex special | |
15407 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
15408 | # dot (in which case that matches only a dot). | |
15409 | func_stripname () | |
15410 | { | |
15411 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
15412 | # positional parameters, so assign one to ordinary parameter first. | |
15413 | func_stripname_result=${3} | |
15414 | func_stripname_result=${func_stripname_result#"${1}"} | |
15415 | func_stripname_result=${func_stripname_result%"${2}"} | |
15416 | } | |
dd184caf | 15417 | |
8d138742 CE |
15418 | # func_opt_split |
15419 | func_opt_split () | |
15420 | { | |
15421 | func_opt_split_opt=${1%%=*} | |
15422 | func_opt_split_arg=${1#*=} | |
15423 | } | |
dd184caf | 15424 | |
8d138742 CE |
15425 | # func_lo2o object |
15426 | func_lo2o () | |
15427 | { | |
15428 | case ${1} in | |
15429 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
15430 | *) func_lo2o_result=${1} ;; | |
d9898ee8 | 15431 | esac |
8d138742 | 15432 | } |
d9898ee8 | 15433 | |
8d138742 CE |
15434 | # func_xform libobj-or-source |
15435 | func_xform () | |
15436 | { | |
15437 | func_xform_result=${1%.*}.lo | |
15438 | } | |
d9898ee8 | 15439 | |
8d138742 CE |
15440 | # func_arith arithmetic-term... |
15441 | func_arith () | |
15442 | { | |
15443 | func_arith_result=$(( $* )) | |
15444 | } | |
15445 | ||
15446 | # func_len string | |
15447 | # STRING may not start with a hyphen. | |
15448 | func_len () | |
15449 | { | |
15450 | func_len_result=${#1} | |
15451 | } | |
15452 | ||
15453 | _LT_EOF | |
15454 | ;; | |
15455 | *) # Bourne compatible functions. | |
15456 | cat << \_LT_EOF >> "$cfgfile" | |
15457 | ||
15458 | # func_dirname file append nondir_replacement | |
15459 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
15460 | # otherwise set result to NONDIR_REPLACEMENT. | |
15461 | func_dirname () | |
15462 | { | |
15463 | # Extract subdirectory from the argument. | |
15464 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | |
15465 | if test "X$func_dirname_result" = "X${1}"; then | |
15466 | func_dirname_result="${3}" | |
d9898ee8 | 15467 | else |
8d138742 | 15468 | func_dirname_result="$func_dirname_result${2}" |
d9898ee8 | 15469 | fi |
8d138742 | 15470 | } |
d9898ee8 | 15471 | |
8d138742 CE |
15472 | # func_basename file |
15473 | func_basename () | |
15474 | { | |
15475 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` | |
15476 | } | |
15477 | ||
15478 | ||
15479 | # func_stripname prefix suffix name | |
15480 | # strip PREFIX and SUFFIX off of NAME. | |
15481 | # PREFIX and SUFFIX must not contain globbing or regex special | |
15482 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
15483 | # dot (in which case that matches only a dot). | |
15484 | # func_strip_suffix prefix name | |
15485 | func_stripname () | |
15486 | { | |
15487 | case ${2} in | |
15488 | .*) func_stripname_result=`$ECHO "X${3}" \ | |
15489 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; | |
15490 | *) func_stripname_result=`$ECHO "X${3}" \ | |
15491 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; | |
dd184caf | 15492 | esac |
8d138742 | 15493 | } |
d9898ee8 | 15494 | |
8d138742 CE |
15495 | # sed scripts: |
15496 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
15497 | my_sed_long_arg='1s/^-[^=]*=//' | |
d9898ee8 | 15498 | |
8d138742 CE |
15499 | # func_opt_split |
15500 | func_opt_split () | |
15501 | { | |
15502 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` | |
15503 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` | |
15504 | } | |
15505 | ||
15506 | # func_lo2o object | |
15507 | func_lo2o () | |
15508 | { | |
15509 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` | |
15510 | } | |
15511 | ||
15512 | # func_xform libobj-or-source | |
15513 | func_xform () | |
15514 | { | |
15515 | func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` | |
15516 | } | |
15517 | ||
15518 | # func_arith arithmetic-term... | |
15519 | func_arith () | |
15520 | { | |
15521 | func_arith_result=`expr "$@"` | |
15522 | } | |
15523 | ||
15524 | # func_len string | |
15525 | # STRING may not start with a hyphen. | |
15526 | func_len () | |
15527 | { | |
15528 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
15529 | } | |
15530 | ||
15531 | _LT_EOF | |
15532 | esac | |
15533 | ||
15534 | case $lt_shell_append in | |
15535 | yes) | |
15536 | cat << \_LT_EOF >> "$cfgfile" | |
15537 | ||
15538 | # func_append var value | |
15539 | # Append VALUE to the end of shell variable VAR. | |
15540 | func_append () | |
15541 | { | |
15542 | eval "$1+=\$2" | |
15543 | } | |
15544 | _LT_EOF | |
15545 | ;; | |
15546 | *) | |
15547 | cat << \_LT_EOF >> "$cfgfile" | |
15548 | ||
15549 | # func_append var value | |
15550 | # Append VALUE to the end of shell variable VAR. | |
15551 | func_append () | |
15552 | { | |
15553 | eval "$1=\$$1\$2" | |
15554 | } | |
15555 | ||
15556 | _LT_EOF | |
15557 | ;; | |
dd184caf | 15558 | esac |
8d138742 CE |
15559 | |
15560 | ||
15561 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
15562 | || (rm -f "$cfgfile"; exit 1) | |
15563 | ||
15564 | mv -f "$cfgfile" "$ofile" || | |
15565 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
15566 | chmod +x "$ofile" | |
15567 | ||
d9898ee8 | 15568 | ;; |
dd184caf | 15569 | |
d9898ee8 | 15570 | esac |
dd184caf | 15571 | done # for ac_tag |
d9898ee8 | 15572 | |
d9898ee8 | 15573 | |
15574 | { (exit 0); exit 0; } | |
15575 | _ACEOF | |
15576 | chmod +x $CONFIG_STATUS | |
15577 | ac_clean_files=$ac_clean_files_save | |
15578 | ||
8d138742 CE |
15579 | test $ac_write_fail = 0 || |
15580 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 | |
15581 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} | |
15582 | { (exit 1); exit 1; }; } | |
15583 | ||
d9898ee8 | 15584 | |
15585 | # configure is writing to config.log, and then calls config.status. | |
15586 | # config.status does its own redirection, appending to config.log. | |
15587 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
15588 | # by configure, so config.status won't be able to write to it; its | |
15589 | # output is simply discarded. So we exec the FD to /dev/null, | |
15590 | # effectively closing config.log, so it can be properly (re)opened and | |
15591 | # appended to by config.status. When coming back to configure, we | |
15592 | # need to make the FD available again. | |
15593 | if test "$no_create" != yes; then | |
15594 | ac_cs_success=: | |
15595 | ac_config_status_args= | |
15596 | test "$silent" = yes && | |
15597 | ac_config_status_args="$ac_config_status_args --quiet" | |
15598 | exec 5>/dev/null | |
15599 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
15600 | exec 5>>config.log | |
15601 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
15602 | # would make configure fail if this is the last instruction. | |
15603 | $ac_cs_success || { (exit 1); exit 1; } | |
15604 | fi | |
8d138742 CE |
15605 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
15606 | { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
15607 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
15608 | fi | |
d9898ee8 | 15609 |