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 makedat 0.60. |
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='makedat' | |
747 | PACKAGE_TARNAME='makedat' | |
748 | PACKAGE_VERSION='0.60' | |
749 | PACKAGE_STRING='makedat 0.60' | |
750 | PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net' | |
751 | ||
752 | ac_unique_file="makedatprog.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 | makedatprogpath | |
794 | makedatprog_target | |
795 | dblibrary | |
796 | CPP | |
797 | OTOOL64 | |
798 | OTOOL | |
799 | LIPO | |
800 | NMEDIT | |
801 | DSYMUTIL | |
802 | lt_ECHO | |
803 | RANLIB | |
804 | AR | |
805 | OBJDUMP | |
806 | NM | |
807 | ac_ct_DUMPBIN | |
808 | DUMPBIN | |
809 | LD | |
810 | FGREP | |
811 | EGREP | |
812 | GREP | |
813 | SED | |
814 | host_os | |
815 | host_vendor | |
816 | host_cpu | |
817 | host | |
818 | build_os | |
819 | build_vendor | |
820 | build_cpu | |
821 | build | |
822 | LIBTOOL | |
823 | CAT | |
824 | PERL | |
825 | LN_S | |
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 | |
dd184caf | 867 | build_alias |
8d138742 CE |
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' | |
902 | ac_subst_files='' | |
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_makedatprog | |
913 | ' | |
914 | ac_precious_vars='build_alias | |
dd184caf | 915 | host_alias |
916 | target_alias | |
dd184caf | 917 | CC |
918 | CFLAGS | |
919 | LDFLAGS | |
8d138742 | 920 | LIBS |
dd184caf | 921 | CPPFLAGS |
8d138742 | 922 | CPP' |
dd184caf | 923 | |
d9898ee8 | 924 | |
925 | # Initialize some variables set by options. | |
926 | ac_init_help= | |
927 | ac_init_version=false | |
8d138742 CE |
928 | ac_unrecognized_opts= |
929 | ac_unrecognized_sep= | |
d9898ee8 | 930 | # The variables have the same names as the options, with |
931 | # dashes changed to underlines. | |
932 | cache_file=/dev/null | |
933 | exec_prefix=NONE | |
934 | no_create= | |
935 | no_recursion= | |
936 | prefix=NONE | |
937 | program_prefix=NONE | |
938 | program_suffix=NONE | |
939 | program_transform_name=s,x,x, | |
940 | silent= | |
941 | site= | |
942 | srcdir= | |
943 | verbose= | |
944 | x_includes=NONE | |
945 | x_libraries=NONE | |
946 | ||
947 | # Installation directory options. | |
948 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
949 | # and all the variables that are supposed to be based on exec_prefix | |
950 | # by default will actually change. | |
951 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
dd184caf | 952 | # (The list follows the same order as the GNU Coding Standards.) |
d9898ee8 | 953 | bindir='${exec_prefix}/bin' |
954 | sbindir='${exec_prefix}/sbin' | |
955 | libexecdir='${exec_prefix}/libexec' | |
dd184caf | 956 | datarootdir='${prefix}/share' |
957 | datadir='${datarootdir}' | |
d9898ee8 | 958 | sysconfdir='${prefix}/etc' |
959 | sharedstatedir='${prefix}/com' | |
960 | localstatedir='${prefix}/var' | |
d9898ee8 | 961 | includedir='${prefix}/include' |
962 | oldincludedir='/usr/include' | |
dd184caf | 963 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
964 | infodir='${datarootdir}/info' | |
965 | htmldir='${docdir}' | |
966 | dvidir='${docdir}' | |
967 | pdfdir='${docdir}' | |
968 | psdir='${docdir}' | |
969 | libdir='${exec_prefix}/lib' | |
970 | localedir='${datarootdir}/locale' | |
971 | mandir='${datarootdir}/man' | |
d9898ee8 | 972 | |
973 | ac_prev= | |
dd184caf | 974 | ac_dashdash= |
d9898ee8 | 975 | for ac_option |
976 | do | |
977 | # If the previous option needs an argument, assign it. | |
978 | if test -n "$ac_prev"; then | |
dd184caf | 979 | eval $ac_prev=\$ac_option |
d9898ee8 | 980 | ac_prev= |
981 | continue | |
982 | fi | |
983 | ||
dd184caf | 984 | case $ac_option in |
985 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
986 | *) ac_optarg=yes ;; | |
987 | esac | |
d9898ee8 | 988 | |
989 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
990 | ||
dd184caf | 991 | case $ac_dashdash$ac_option in |
992 | --) | |
993 | ac_dashdash=yes ;; | |
d9898ee8 | 994 | |
995 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
996 | ac_prev=bindir ;; | |
997 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
998 | bindir=$ac_optarg ;; | |
999 | ||
1000 | -build | --build | --buil | --bui | --bu) | |
1001 | ac_prev=build_alias ;; | |
1002 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
1003 | build_alias=$ac_optarg ;; | |
1004 | ||
1005 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
1006 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
1007 | ac_prev=cache_file ;; | |
1008 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
1009 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
1010 | cache_file=$ac_optarg ;; | |
1011 | ||
1012 | --config-cache | -C) | |
1013 | cache_file=config.cache ;; | |
1014 | ||
dd184caf | 1015 | -datadir | --datadir | --datadi | --datad) |
d9898ee8 | 1016 | ac_prev=datadir ;; |
dd184caf | 1017 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
d9898ee8 | 1018 | datadir=$ac_optarg ;; |
1019 | ||
dd184caf | 1020 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
1021 | | --dataroo | --dataro | --datar) | |
1022 | ac_prev=datarootdir ;; | |
1023 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1024 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1025 | datarootdir=$ac_optarg ;; | |
1026 | ||
d9898ee8 | 1027 | -disable-* | --disable-*) |
8d138742 | 1028 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
d9898ee8 | 1029 | # Reject names that are not valid shell variable names. |
8d138742 CE |
1030 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1031 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
d9898ee8 | 1032 | { (exit 1); exit 1; }; } |
8d138742 CE |
1033 | ac_useropt_orig=$ac_useropt |
1034 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1035 | case $ac_user_opts in | |
1036 | *" | |
1037 | "enable_$ac_useropt" | |
1038 | "*) ;; | |
1039 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1040 | ac_unrecognized_sep=', ';; | |
1041 | esac | |
1042 | eval enable_$ac_useropt=no ;; | |
dd184caf | 1043 | |
1044 | -docdir | --docdir | --docdi | --doc | --do) | |
1045 | ac_prev=docdir ;; | |
1046 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1047 | docdir=$ac_optarg ;; | |
1048 | ||
1049 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1050 | ac_prev=dvidir ;; | |
1051 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1052 | dvidir=$ac_optarg ;; | |
d9898ee8 | 1053 | |
1054 | -enable-* | --enable-*) | |
8d138742 | 1055 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
d9898ee8 | 1056 | # Reject names that are not valid shell variable names. |
8d138742 CE |
1057 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1058 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
d9898ee8 | 1059 | { (exit 1); exit 1; }; } |
8d138742 CE |
1060 | ac_useropt_orig=$ac_useropt |
1061 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1062 | case $ac_user_opts in | |
1063 | *" | |
1064 | "enable_$ac_useropt" | |
1065 | "*) ;; | |
1066 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1067 | ac_unrecognized_sep=', ';; | |
1068 | esac | |
1069 | eval enable_$ac_useropt=\$ac_optarg ;; | |
d9898ee8 | 1070 | |
1071 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1072 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1073 | | --exec | --exe | --ex) | |
1074 | ac_prev=exec_prefix ;; | |
1075 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1076 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1077 | | --exec=* | --exe=* | --ex=*) | |
1078 | exec_prefix=$ac_optarg ;; | |
1079 | ||
1080 | -gas | --gas | --ga | --g) | |
1081 | # Obsolete; use --with-gas. | |
1082 | with_gas=yes ;; | |
1083 | ||
1084 | -help | --help | --hel | --he | -h) | |
1085 | ac_init_help=long ;; | |
1086 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1087 | ac_init_help=recursive ;; | |
1088 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1089 | ac_init_help=short ;; | |
1090 | ||
1091 | -host | --host | --hos | --ho) | |
1092 | ac_prev=host_alias ;; | |
1093 | -host=* | --host=* | --hos=* | --ho=*) | |
1094 | host_alias=$ac_optarg ;; | |
1095 | ||
dd184caf | 1096 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1097 | ac_prev=htmldir ;; | |
1098 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1099 | | --ht=*) | |
1100 | htmldir=$ac_optarg ;; | |
1101 | ||
d9898ee8 | 1102 | -includedir | --includedir | --includedi | --included | --include \ |
1103 | | --includ | --inclu | --incl | --inc) | |
1104 | ac_prev=includedir ;; | |
1105 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1106 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1107 | includedir=$ac_optarg ;; | |
1108 | ||
1109 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1110 | ac_prev=infodir ;; | |
1111 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1112 | infodir=$ac_optarg ;; | |
1113 | ||
1114 | -libdir | --libdir | --libdi | --libd) | |
1115 | ac_prev=libdir ;; | |
1116 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1117 | libdir=$ac_optarg ;; | |
1118 | ||
1119 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1120 | | --libexe | --libex | --libe) | |
1121 | ac_prev=libexecdir ;; | |
1122 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1123 | | --libexe=* | --libex=* | --libe=*) | |
1124 | libexecdir=$ac_optarg ;; | |
1125 | ||
dd184caf | 1126 | -localedir | --localedir | --localedi | --localed | --locale) |
1127 | ac_prev=localedir ;; | |
1128 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1129 | localedir=$ac_optarg ;; | |
1130 | ||
d9898ee8 | 1131 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
dd184caf | 1132 | | --localstate | --localstat | --localsta | --localst | --locals) |
d9898ee8 | 1133 | ac_prev=localstatedir ;; |
1134 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
dd184caf | 1135 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
d9898ee8 | 1136 | localstatedir=$ac_optarg ;; |
1137 | ||
1138 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1139 | ac_prev=mandir ;; | |
1140 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1141 | mandir=$ac_optarg ;; | |
1142 | ||
1143 | -nfp | --nfp | --nf) | |
1144 | # Obsolete; use --without-fp. | |
1145 | with_fp=no ;; | |
1146 | ||
1147 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1148 | | --no-cr | --no-c | -n) | |
1149 | no_create=yes ;; | |
1150 | ||
1151 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1152 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1153 | no_recursion=yes ;; | |
1154 | ||
1155 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1156 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1157 | | --oldin | --oldi | --old | --ol | --o) | |
1158 | ac_prev=oldincludedir ;; | |
1159 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1160 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1161 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1162 | oldincludedir=$ac_optarg ;; | |
1163 | ||
1164 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1165 | ac_prev=prefix ;; | |
1166 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1167 | prefix=$ac_optarg ;; | |
1168 | ||
1169 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1170 | | --program-pre | --program-pr | --program-p) | |
1171 | ac_prev=program_prefix ;; | |
1172 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1173 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1174 | program_prefix=$ac_optarg ;; | |
1175 | ||
1176 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1177 | | --program-suf | --program-su | --program-s) | |
1178 | ac_prev=program_suffix ;; | |
1179 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1180 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1181 | program_suffix=$ac_optarg ;; | |
1182 | ||
1183 | -program-transform-name | --program-transform-name \ | |
1184 | | --program-transform-nam | --program-transform-na \ | |
1185 | | --program-transform-n | --program-transform- \ | |
1186 | | --program-transform | --program-transfor \ | |
1187 | | --program-transfo | --program-transf \ | |
1188 | | --program-trans | --program-tran \ | |
1189 | | --progr-tra | --program-tr | --program-t) | |
1190 | ac_prev=program_transform_name ;; | |
1191 | -program-transform-name=* | --program-transform-name=* \ | |
1192 | | --program-transform-nam=* | --program-transform-na=* \ | |
1193 | | --program-transform-n=* | --program-transform-=* \ | |
1194 | | --program-transform=* | --program-transfor=* \ | |
1195 | | --program-transfo=* | --program-transf=* \ | |
1196 | | --program-trans=* | --program-tran=* \ | |
1197 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1198 | program_transform_name=$ac_optarg ;; | |
1199 | ||
dd184caf | 1200 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1201 | ac_prev=pdfdir ;; | |
1202 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1203 | pdfdir=$ac_optarg ;; | |
1204 | ||
1205 | -psdir | --psdir | --psdi | --psd | --ps) | |
1206 | ac_prev=psdir ;; | |
1207 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1208 | psdir=$ac_optarg ;; | |
1209 | ||
d9898ee8 | 1210 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1211 | | -silent | --silent | --silen | --sile | --sil) | |
1212 | silent=yes ;; | |
1213 | ||
1214 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1215 | ac_prev=sbindir ;; | |
1216 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1217 | | --sbi=* | --sb=*) | |
1218 | sbindir=$ac_optarg ;; | |
1219 | ||
1220 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1221 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1222 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1223 | | --sha | --sh) | |
1224 | ac_prev=sharedstatedir ;; | |
1225 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1226 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1227 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1228 | | --sha=* | --sh=*) | |
1229 | sharedstatedir=$ac_optarg ;; | |
1230 | ||
1231 | -site | --site | --sit) | |
1232 | ac_prev=site ;; | |
1233 | -site=* | --site=* | --sit=*) | |
1234 | site=$ac_optarg ;; | |
1235 | ||
1236 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1237 | ac_prev=srcdir ;; | |
1238 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1239 | srcdir=$ac_optarg ;; | |
1240 | ||
1241 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1242 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1243 | ac_prev=sysconfdir ;; | |
1244 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1245 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1246 | sysconfdir=$ac_optarg ;; | |
1247 | ||
1248 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1249 | ac_prev=target_alias ;; | |
1250 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1251 | target_alias=$ac_optarg ;; | |
1252 | ||
1253 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1254 | verbose=yes ;; | |
1255 | ||
1256 | -version | --version | --versio | --versi | --vers | -V) | |
1257 | ac_init_version=: ;; | |
1258 | ||
1259 | -with-* | --with-*) | |
8d138742 | 1260 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
d9898ee8 | 1261 | # Reject names that are not valid shell variable names. |
8d138742 CE |
1262 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1263 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
d9898ee8 | 1264 | { (exit 1); exit 1; }; } |
8d138742 CE |
1265 | ac_useropt_orig=$ac_useropt |
1266 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1267 | case $ac_user_opts in | |
1268 | *" | |
1269 | "with_$ac_useropt" | |
1270 | "*) ;; | |
1271 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1272 | ac_unrecognized_sep=', ';; | |
1273 | esac | |
1274 | eval with_$ac_useropt=\$ac_optarg ;; | |
d9898ee8 | 1275 | |
1276 | -without-* | --without-*) | |
8d138742 | 1277 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
d9898ee8 | 1278 | # Reject names that are not valid shell variable names. |
8d138742 CE |
1279 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1280 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
d9898ee8 | 1281 | { (exit 1); exit 1; }; } |
8d138742 CE |
1282 | ac_useropt_orig=$ac_useropt |
1283 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1284 | case $ac_user_opts in | |
1285 | *" | |
1286 | "with_$ac_useropt" | |
1287 | "*) ;; | |
1288 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1289 | ac_unrecognized_sep=', ';; | |
1290 | esac | |
1291 | eval with_$ac_useropt=no ;; | |
d9898ee8 | 1292 | |
1293 | --x) | |
1294 | # Obsolete; use --with-x. | |
1295 | with_x=yes ;; | |
1296 | ||
1297 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1298 | | --x-incl | --x-inc | --x-in | --x-i) | |
1299 | ac_prev=x_includes ;; | |
1300 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1301 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1302 | x_includes=$ac_optarg ;; | |
1303 | ||
1304 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1305 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1306 | ac_prev=x_libraries ;; | |
1307 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1308 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1309 | x_libraries=$ac_optarg ;; | |
1310 | ||
8d138742 | 1311 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option |
d9898ee8 | 1312 | Try \`$0 --help' for more information." >&2 |
1313 | { (exit 1); exit 1; }; } | |
1314 | ;; | |
1315 | ||
1316 | *=*) | |
1317 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1318 | # Reject names that are not valid shell variable names. | |
1319 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
8d138742 | 1320 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
d9898ee8 | 1321 | { (exit 1); exit 1; }; } |
dd184caf | 1322 | eval $ac_envvar=\$ac_optarg |
d9898ee8 | 1323 | export $ac_envvar ;; |
1324 | ||
1325 | *) | |
1326 | # FIXME: should be removed in autoconf 3.0. | |
8d138742 | 1327 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
d9898ee8 | 1328 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
8d138742 | 1329 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
d9898ee8 | 1330 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
1331 | ;; | |
1332 | ||
1333 | esac | |
1334 | done | |
1335 | ||
1336 | if test -n "$ac_prev"; then | |
1337 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
8d138742 | 1338 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 |
d9898ee8 | 1339 | { (exit 1); exit 1; }; } |
1340 | fi | |
1341 | ||
8d138742 CE |
1342 | if test -n "$ac_unrecognized_opts"; then |
1343 | case $enable_option_checking in | |
1344 | no) ;; | |
1345 | fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 | |
1346 | { (exit 1); exit 1; }; } ;; | |
1347 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1348 | esac | |
1349 | fi | |
1350 | ||
1351 | # Check all directory arguments for consistency. | |
dd184caf | 1352 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1353 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1354 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1355 | libdir localedir mandir | |
d9898ee8 | 1356 | do |
dd184caf | 1357 | eval ac_val=\$$ac_var |
8d138742 CE |
1358 | # Remove trailing slashes. |
1359 | case $ac_val in | |
1360 | */ ) | |
1361 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1362 | eval $ac_var=\$ac_val;; | |
1363 | esac | |
1364 | # Be sure to have absolute directory names. | |
d9898ee8 | 1365 | case $ac_val in |
dd184caf | 1366 | [\\/$]* | ?:[\\/]* ) continue;; |
1367 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
d9898ee8 | 1368 | esac |
8d138742 | 1369 | { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
dd184caf | 1370 | { (exit 1); exit 1; }; } |
d9898ee8 | 1371 | done |
1372 | ||
1373 | # There might be people who depend on the old broken behavior: `$host' | |
1374 | # used to hold the argument of --host etc. | |
1375 | # FIXME: To remove some day. | |
1376 | build=$build_alias | |
1377 | host=$host_alias | |
1378 | target=$target_alias | |
1379 | ||
1380 | # FIXME: To remove some day. | |
1381 | if test "x$host_alias" != x; then | |
1382 | if test "x$build_alias" = x; then | |
1383 | cross_compiling=maybe | |
8d138742 | 1384 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
d9898ee8 | 1385 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1386 | elif test "x$build_alias" != "x$host_alias"; then | |
1387 | cross_compiling=yes | |
1388 | fi | |
1389 | fi | |
1390 | ||
1391 | ac_tool_prefix= | |
1392 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1393 | ||
1394 | test "$silent" = yes && exec 6>/dev/null | |
1395 | ||
1396 | ||
dd184caf | 1397 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1398 | ac_ls_di=`ls -di .` && | |
1399 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
8d138742 | 1400 | { $as_echo "$as_me: error: working directory cannot be determined" >&2 |
dd184caf | 1401 | { (exit 1); exit 1; }; } |
1402 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
8d138742 | 1403 | { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 |
dd184caf | 1404 | { (exit 1); exit 1; }; } |
1405 | ||
1406 | ||
d9898ee8 | 1407 | # Find the source files, if location was not specified. |
1408 | if test -z "$srcdir"; then | |
1409 | ac_srcdir_defaulted=yes | |
dd184caf | 1410 | # Try the directory containing this script, then the parent directory. |
8d138742 CE |
1411 | ac_confdir=`$as_dirname -- "$as_myself" || |
1412 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1413 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1414 | X"$as_myself" : 'X\(//\)$' \| \ | |
1415 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1416 | $as_echo X"$as_myself" | | |
dd184caf | 1417 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1418 | s//\1/ | |
1419 | q | |
1420 | } | |
1421 | /^X\(\/\/\)[^/].*/{ | |
1422 | s//\1/ | |
1423 | q | |
1424 | } | |
1425 | /^X\(\/\/\)$/{ | |
1426 | s//\1/ | |
1427 | q | |
1428 | } | |
1429 | /^X\(\/\).*/{ | |
1430 | s//\1/ | |
1431 | q | |
1432 | } | |
1433 | s/.*/./; q'` | |
d9898ee8 | 1434 | srcdir=$ac_confdir |
dd184caf | 1435 | if test ! -r "$srcdir/$ac_unique_file"; then |
d9898ee8 | 1436 | srcdir=.. |
1437 | fi | |
1438 | else | |
1439 | ac_srcdir_defaulted=no | |
1440 | fi | |
dd184caf | 1441 | if test ! -r "$srcdir/$ac_unique_file"; then |
1442 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
8d138742 | 1443 | { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
d9898ee8 | 1444 | { (exit 1); exit 1; }; } |
d9898ee8 | 1445 | fi |
dd184caf | 1446 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1447 | ac_abs_confdir=`( | |
8d138742 | 1448 | cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 |
d9898ee8 | 1449 | { (exit 1); exit 1; }; } |
dd184caf | 1450 | pwd)` |
1451 | # When building in place, set srcdir=. | |
1452 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1453 | srcdir=. | |
1454 | fi | |
1455 | # Remove unnecessary trailing slashes from srcdir. | |
1456 | # Double slashes in file names in object file debugging info | |
1457 | # mess up M-x gdb in Emacs. | |
1458 | case $srcdir in | |
1459 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1460 | esac | |
1461 | for ac_var in $ac_precious_vars; do | |
1462 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1463 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1464 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1465 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1466 | done | |
d9898ee8 | 1467 | |
1468 | # | |
1469 | # Report the --help message. | |
1470 | # | |
1471 | if test "$ac_init_help" = "long"; then | |
1472 | # Omit some internal or obsolete options to make the list less imposing. | |
1473 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1474 | cat <<_ACEOF | |
1475 | \`configure' configures makedat 0.60 to adapt to many kinds of systems. | |
1476 | ||
1477 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1478 | ||
1479 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1480 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1481 | ||
1482 | Defaults for the options are specified in brackets. | |
1483 | ||
1484 | Configuration: | |
1485 | -h, --help display this help and exit | |
1486 | --help=short display options specific to this package | |
1487 | --help=recursive display the short help of all the included packages | |
1488 | -V, --version display version information and exit | |
1489 | -q, --quiet, --silent do not print \`checking...' messages | |
1490 | --cache-file=FILE cache test results in FILE [disabled] | |
1491 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1492 | -n, --no-create do not create output files | |
1493 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1494 | ||
d9898ee8 | 1495 | Installation directories: |
1496 | --prefix=PREFIX install architecture-independent files in PREFIX | |
8d138742 | 1497 | [$ac_default_prefix] |
d9898ee8 | 1498 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
8d138742 | 1499 | [PREFIX] |
d9898ee8 | 1500 | |
1501 | By default, \`make install' will install all the files in | |
1502 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1503 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1504 | for instance \`--prefix=\$HOME'. | |
1505 | ||
1506 | For better control, use the options below. | |
1507 | ||
1508 | Fine tuning of the installation directories: | |
8d138742 CE |
1509 | --bindir=DIR user executables [EPREFIX/bin] |
1510 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1511 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1512 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1513 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1514 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1515 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1516 | --includedir=DIR C header files [PREFIX/include] | |
1517 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1518 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1519 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1520 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1521 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1522 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1523 | --docdir=DIR documentation root [DATAROOTDIR/doc/makedat] | |
1524 | --htmldir=DIR html documentation [DOCDIR] | |
1525 | --dvidir=DIR dvi documentation [DOCDIR] | |
1526 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1527 | --psdir=DIR ps documentation [DOCDIR] | |
d9898ee8 | 1528 | _ACEOF |
1529 | ||
1530 | cat <<\_ACEOF | |
1531 | ||
1532 | Program names: | |
1533 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1534 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1535 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1536 | ||
1537 | System types: | |
1538 | --build=BUILD configure for building on BUILD [guessed] | |
1539 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1540 | _ACEOF | |
1541 | fi | |
1542 | ||
1543 | if test -n "$ac_init_help"; then | |
1544 | case $ac_init_help in | |
1545 | short | recursive ) echo "Configuration of makedat 0.60:";; | |
1546 | esac | |
1547 | cat <<\_ACEOF | |
1548 | ||
1549 | Optional Features: | |
8d138742 | 1550 | --disable-option-checking ignore unrecognized --enable/--with options |
d9898ee8 | 1551 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1552 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1553 | --disable-dependency-tracking speeds up one-time build | |
1554 | --enable-dependency-tracking do not reject slow dependency extractors | |
dd184caf | 1555 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1556 | --enable-static[=PKGS] build static libraries [default=yes] | |
d9898ee8 | 1557 | --enable-fast-install[=PKGS] |
1558 | optimize for fast installation [default=yes] | |
1559 | --disable-libtool-lock avoid locking (might break parallel builds) | |
1560 | ||
1561 | Optional Packages: | |
1562 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1563 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
d9898ee8 | 1564 | --with-pic try to use only PIC/non-PIC objects [default=use |
1565 | both] | |
8d138742 | 1566 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
d9898ee8 | 1567 | --with-makedatprog=filename Installed location and name of makedatprog |
1568 | ||
1569 | Some influential environment variables: | |
1570 | CC C compiler command | |
1571 | CFLAGS C compiler flags | |
1572 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1573 | nonstandard directory <lib dir> | |
dd184caf | 1574 | LIBS libraries to pass to the linker, e.g. -l<library> |
1575 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1576 | you have headers in a nonstandard directory <include dir> | |
d9898ee8 | 1577 | CPP C preprocessor |
d9898ee8 | 1578 | |
1579 | Use these variables to override the choices made by `configure' or to help | |
1580 | it to find libraries and programs with nonstandard names/locations. | |
1581 | ||
1582 | Report bugs to <courier-users@lists.sourceforge.net>. | |
1583 | _ACEOF | |
dd184caf | 1584 | ac_status=$? |
d9898ee8 | 1585 | fi |
1586 | ||
1587 | if test "$ac_init_help" = "recursive"; then | |
1588 | # If there are subdirs, report their specific --help. | |
d9898ee8 | 1589 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
8d138742 CE |
1590 | test -d "$ac_dir" || |
1591 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1592 | continue | |
d9898ee8 | 1593 | ac_builddir=. |
1594 | ||
dd184caf | 1595 | case "$ac_dir" in |
1596 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1597 | *) | |
8d138742 | 1598 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
dd184caf | 1599 | # A ".." for each directory in $ac_dir_suffix. |
8d138742 | 1600 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
dd184caf | 1601 | case $ac_top_builddir_sub in |
1602 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1603 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1604 | esac ;; | |
1605 | esac | |
1606 | ac_abs_top_builddir=$ac_pwd | |
1607 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1608 | # for backward compatibility: | |
1609 | ac_top_builddir=$ac_top_build_prefix | |
d9898ee8 | 1610 | |
1611 | case $srcdir in | |
dd184caf | 1612 | .) # We are building in place. |
d9898ee8 | 1613 | ac_srcdir=. |
dd184caf | 1614 | ac_top_srcdir=$ac_top_builddir_sub |
1615 | ac_abs_top_srcdir=$ac_pwd ;; | |
1616 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
d9898ee8 | 1617 | ac_srcdir=$srcdir$ac_dir_suffix; |
dd184caf | 1618 | ac_top_srcdir=$srcdir |
1619 | ac_abs_top_srcdir=$srcdir ;; | |
1620 | *) # Relative name. | |
1621 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1622 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1623 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
d9898ee8 | 1624 | esac |
dd184caf | 1625 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1626 | ||
1627 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1628 | # Check for guested configure. | |
1629 | if test -f "$ac_srcdir/configure.gnu"; then | |
1630 | echo && | |
1631 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1632 | elif test -f "$ac_srcdir/configure"; then | |
1633 | echo && | |
1634 | $SHELL "$ac_srcdir/configure" --help=recursive | |
d9898ee8 | 1635 | else |
8d138742 | 1636 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
dd184caf | 1637 | fi || ac_status=$? |
1638 | cd "$ac_pwd" || { ac_status=$?; break; } | |
d9898ee8 | 1639 | done |
1640 | fi | |
1641 | ||
dd184caf | 1642 | test -n "$ac_init_help" && exit $ac_status |
d9898ee8 | 1643 | if $ac_init_version; then |
1644 | cat <<\_ACEOF | |
1645 | makedat configure 0.60 | |
8d138742 | 1646 | generated by GNU Autoconf 2.63 |
d9898ee8 | 1647 | |
dd184caf | 1648 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
8d138742 | 1649 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
d9898ee8 | 1650 | This configure script is free software; the Free Software Foundation |
1651 | gives unlimited permission to copy, distribute and modify it. | |
1652 | _ACEOF | |
dd184caf | 1653 | exit |
d9898ee8 | 1654 | fi |
dd184caf | 1655 | cat >config.log <<_ACEOF |
d9898ee8 | 1656 | This file contains any messages produced by compilers while |
1657 | running configure, to aid debugging if configure makes a mistake. | |
1658 | ||
1659 | It was created by makedat $as_me 0.60, which was | |
8d138742 | 1660 | generated by GNU Autoconf 2.63. Invocation command line was |
d9898ee8 | 1661 | |
1662 | $ $0 $@ | |
1663 | ||
1664 | _ACEOF | |
dd184caf | 1665 | exec 5>>config.log |
d9898ee8 | 1666 | { |
1667 | cat <<_ASUNAME | |
1668 | ## --------- ## | |
1669 | ## Platform. ## | |
1670 | ## --------- ## | |
1671 | ||
1672 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1673 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1674 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1675 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1676 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1677 | ||
1678 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1679 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1680 | ||
1681 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1682 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1683 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
dd184caf | 1684 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
d9898ee8 | 1685 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1686 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1687 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1688 | ||
1689 | _ASUNAME | |
1690 | ||
1691 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1692 | for as_dir in $PATH | |
1693 | do | |
1694 | IFS=$as_save_IFS | |
1695 | test -z "$as_dir" && as_dir=. | |
8d138742 | 1696 | $as_echo "PATH: $as_dir" |
d9898ee8 | 1697 | done |
dd184caf | 1698 | IFS=$as_save_IFS |
d9898ee8 | 1699 | |
1700 | } >&5 | |
1701 | ||
1702 | cat >&5 <<_ACEOF | |
1703 | ||
1704 | ||
1705 | ## ----------- ## | |
1706 | ## Core tests. ## | |
1707 | ## ----------- ## | |
1708 | ||
1709 | _ACEOF | |
1710 | ||
1711 | ||
1712 | # Keep a trace of the command line. | |
1713 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1714 | # Strip out --silent because we don't want to record it for future runs. | |
1715 | # Also quote any args containing shell meta-characters. | |
1716 | # Make two passes to allow for proper duplicate-argument suppression. | |
1717 | ac_configure_args= | |
1718 | ac_configure_args0= | |
1719 | ac_configure_args1= | |
d9898ee8 | 1720 | ac_must_keep_next=false |
1721 | for ac_pass in 1 2 | |
1722 | do | |
1723 | for ac_arg | |
1724 | do | |
1725 | case $ac_arg in | |
1726 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1727 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1728 | | -silent | --silent | --silen | --sile | --sil) | |
1729 | continue ;; | |
dd184caf | 1730 | *\'*) |
8d138742 | 1731 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
d9898ee8 | 1732 | esac |
1733 | case $ac_pass in | |
1734 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1735 | 2) | |
1736 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1737 | if test $ac_must_keep_next = true; then | |
1738 | ac_must_keep_next=false # Got value, back to normal. | |
1739 | else | |
1740 | case $ac_arg in | |
1741 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1742 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1743 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1744 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1745 | case "$ac_configure_args0 " in | |
1746 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1747 | esac | |
1748 | ;; | |
1749 | -* ) ac_must_keep_next=true ;; | |
1750 | esac | |
1751 | fi | |
dd184caf | 1752 | ac_configure_args="$ac_configure_args '$ac_arg'" |
d9898ee8 | 1753 | ;; |
1754 | esac | |
1755 | done | |
1756 | done | |
1757 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1758 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1759 | ||
1760 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1761 | # config.log. We remove comments because anyway the quotes in there | |
1762 | # would cause problems or look ugly. | |
dd184caf | 1763 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1764 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
d9898ee8 | 1765 | trap 'exit_status=$? |
1766 | # Save into config.log some information that might help in debugging. | |
1767 | { | |
1768 | echo | |
1769 | ||
1770 | cat <<\_ASBOX | |
1771 | ## ---------------- ## | |
1772 | ## Cache variables. ## | |
1773 | ## ---------------- ## | |
1774 | _ASBOX | |
1775 | echo | |
1776 | # The following way of writing the cache mishandles newlines in values, | |
dd184caf | 1777 | ( |
1778 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1779 | eval ac_val=\$$ac_var | |
1780 | case $ac_val in #( | |
1781 | *${as_nl}*) | |
1782 | case $ac_var in #( | |
8d138742 CE |
1783 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
1784 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
dd184caf | 1785 | esac |
1786 | case $ac_var in #( | |
1787 | _ | IFS | as_nl) ;; #( | |
8d138742 | 1788 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
dd184caf | 1789 | *) $as_unset $ac_var ;; |
1790 | esac ;; | |
1791 | esac | |
1792 | done | |
d9898ee8 | 1793 | (set) 2>&1 | |
dd184caf | 1794 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1795 | *${as_nl}ac_space=\ *) | |
d9898ee8 | 1796 | sed -n \ |
dd184caf | 1797 | "s/'\''/'\''\\\\'\'''\''/g; |
1798 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1799 | ;; #( | |
d9898ee8 | 1800 | *) |
dd184caf | 1801 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
d9898ee8 | 1802 | ;; |
dd184caf | 1803 | esac | |
1804 | sort | |
1805 | ) | |
d9898ee8 | 1806 | echo |
1807 | ||
1808 | cat <<\_ASBOX | |
1809 | ## ----------------- ## | |
1810 | ## Output variables. ## | |
1811 | ## ----------------- ## | |
1812 | _ASBOX | |
1813 | echo | |
1814 | for ac_var in $ac_subst_vars | |
1815 | do | |
dd184caf | 1816 | eval ac_val=\$$ac_var |
1817 | case $ac_val in | |
8d138742 | 1818 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
dd184caf | 1819 | esac |
8d138742 | 1820 | $as_echo "$ac_var='\''$ac_val'\''" |
d9898ee8 | 1821 | done | sort |
1822 | echo | |
1823 | ||
1824 | if test -n "$ac_subst_files"; then | |
1825 | cat <<\_ASBOX | |
dd184caf | 1826 | ## ------------------- ## |
1827 | ## File substitutions. ## | |
1828 | ## ------------------- ## | |
d9898ee8 | 1829 | _ASBOX |
1830 | echo | |
1831 | for ac_var in $ac_subst_files | |
1832 | do | |
dd184caf | 1833 | eval ac_val=\$$ac_var |
1834 | case $ac_val in | |
8d138742 | 1835 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
dd184caf | 1836 | esac |
8d138742 | 1837 | $as_echo "$ac_var='\''$ac_val'\''" |
d9898ee8 | 1838 | done | sort |
1839 | echo | |
1840 | fi | |
1841 | ||
1842 | if test -s confdefs.h; then | |
1843 | cat <<\_ASBOX | |
1844 | ## ----------- ## | |
1845 | ## confdefs.h. ## | |
1846 | ## ----------- ## | |
1847 | _ASBOX | |
1848 | echo | |
dd184caf | 1849 | cat confdefs.h |
d9898ee8 | 1850 | echo |
1851 | fi | |
1852 | test "$ac_signal" != 0 && | |
8d138742 CE |
1853 | $as_echo "$as_me: caught signal $ac_signal" |
1854 | $as_echo "$as_me: exit $exit_status" | |
d9898ee8 | 1855 | } >&5 |
dd184caf | 1856 | rm -f core *.core core.conftest.* && |
1857 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
d9898ee8 | 1858 | exit $exit_status |
dd184caf | 1859 | ' 0 |
d9898ee8 | 1860 | for ac_signal in 1 2 13 15; do |
1861 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1862 | done | |
1863 | ac_signal=0 | |
1864 | ||
1865 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
dd184caf | 1866 | rm -f -r conftest* confdefs.h |
d9898ee8 | 1867 | |
1868 | # Predefined preprocessor variables. | |
1869 | ||
1870 | cat >>confdefs.h <<_ACEOF | |
1871 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1872 | _ACEOF | |
1873 | ||
1874 | ||
1875 | cat >>confdefs.h <<_ACEOF | |
1876 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1877 | _ACEOF | |
1878 | ||
1879 | ||
1880 | cat >>confdefs.h <<_ACEOF | |
1881 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1882 | _ACEOF | |
1883 | ||
1884 | ||
1885 | cat >>confdefs.h <<_ACEOF | |
1886 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1887 | _ACEOF | |
1888 | ||
1889 | ||
1890 | cat >>confdefs.h <<_ACEOF | |
1891 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1892 | _ACEOF | |
1893 | ||
1894 | ||
1895 | # Let the site file select an alternate cache file if it wants to. | |
8d138742 CE |
1896 | # Prefer an explicitly selected file to automatically selected ones. |
1897 | ac_site_file1=NONE | |
1898 | ac_site_file2=NONE | |
dd184caf | 1899 | if test -n "$CONFIG_SITE"; then |
8d138742 | 1900 | ac_site_file1=$CONFIG_SITE |
dd184caf | 1901 | elif test "x$prefix" != xNONE; then |
8d138742 CE |
1902 | ac_site_file1=$prefix/share/config.site |
1903 | ac_site_file2=$prefix/etc/config.site | |
dd184caf | 1904 | else |
8d138742 CE |
1905 | ac_site_file1=$ac_default_prefix/share/config.site |
1906 | ac_site_file2=$ac_default_prefix/etc/config.site | |
d9898ee8 | 1907 | fi |
8d138742 | 1908 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
dd184caf | 1909 | do |
8d138742 | 1910 | test "x$ac_site_file" = xNONE && continue |
d9898ee8 | 1911 | if test -r "$ac_site_file"; then |
8d138742 CE |
1912 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1913 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
d9898ee8 | 1914 | sed 's/^/| /' "$ac_site_file" >&5 |
1915 | . "$ac_site_file" | |
1916 | fi | |
1917 | done | |
1918 | ||
1919 | if test -r "$cache_file"; then | |
1920 | # Some versions of bash will fail to source /dev/null (special | |
1921 | # files actually), so we avoid doing that. | |
1922 | if test -f "$cache_file"; then | |
8d138742 CE |
1923 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1924 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
d9898ee8 | 1925 | case $cache_file in |
dd184caf | 1926 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1927 | *) . "./$cache_file";; | |
d9898ee8 | 1928 | esac |
1929 | fi | |
1930 | else | |
8d138742 CE |
1931 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1932 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
d9898ee8 | 1933 | >$cache_file |
1934 | fi | |
1935 | ||
1936 | # Check that the precious variables saved in the cache have kept the same | |
1937 | # value. | |
1938 | ac_cache_corrupted=false | |
dd184caf | 1939 | for ac_var in $ac_precious_vars; do |
d9898ee8 | 1940 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1941 | eval ac_new_set=\$ac_env_${ac_var}_set | |
dd184caf | 1942 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1943 | eval ac_new_val=\$ac_env_${ac_var}_value | |
d9898ee8 | 1944 | case $ac_old_set,$ac_new_set in |
1945 | set,) | |
8d138742 CE |
1946 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1947 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
d9898ee8 | 1948 | ac_cache_corrupted=: ;; |
1949 | ,set) | |
8d138742 CE |
1950 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1951 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
d9898ee8 | 1952 | ac_cache_corrupted=: ;; |
1953 | ,);; | |
1954 | *) | |
1955 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
8d138742 CE |
1956 | # differences in whitespace do not lead to failure. |
1957 | ac_old_val_w=`echo x $ac_old_val` | |
1958 | ac_new_val_w=`echo x $ac_new_val` | |
1959 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
1960 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1961 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1962 | ac_cache_corrupted=: | |
1963 | else | |
1964 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
1965 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
1966 | eval $ac_var=\$ac_old_val | |
1967 | fi | |
1968 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 | |
1969 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
1970 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 | |
1971 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
d9898ee8 | 1972 | fi;; |
1973 | esac | |
1974 | # Pass precious variables to config.status. | |
1975 | if test "$ac_new_set" = set; then | |
1976 | case $ac_new_val in | |
8d138742 | 1977 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
d9898ee8 | 1978 | *) ac_arg=$ac_var=$ac_new_val ;; |
1979 | esac | |
1980 | case " $ac_configure_args " in | |
1981 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1982 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1983 | esac | |
1984 | fi | |
1985 | done | |
1986 | if $ac_cache_corrupted; then | |
8d138742 CE |
1987 | { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
1988 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
1989 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1990 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1991 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1992 | $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
d9898ee8 | 1993 | { (exit 1); exit 1; }; } |
1994 | fi | |
1995 | ||
d9898ee8 | 1996 | |
1997 | ||
1998 | ||
1999 | ||
2000 | ||
2001 | ||
2002 | ||
2003 | ||
2004 | ||
2005 | ||
2006 | ||
2007 | ||
2008 | ||
2009 | ||
2010 | ||
2011 | ||
2012 | ||
2013 | ||
2014 | ||
2015 | ||
2016 | ||
2017 | ||
2018 | ||
2019 | ||
dd184caf | 2020 | ac_ext=c |
2021 | ac_cpp='$CPP $CPPFLAGS' | |
2022 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2023 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2024 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 2025 | |
2026 | ||
2027 | ||
2028 | >confdefs.h # Kill PACKAGE_ macros | |
2029 | ||
2030 | ||
8d138742 | 2031 | am__api_version='1.11' |
dd184caf | 2032 | |
d9898ee8 | 2033 | ac_aux_dir= |
dd184caf | 2034 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2035 | if test -f "$ac_dir/install-sh"; then | |
d9898ee8 | 2036 | ac_aux_dir=$ac_dir |
2037 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2038 | break | |
dd184caf | 2039 | elif test -f "$ac_dir/install.sh"; then |
d9898ee8 | 2040 | ac_aux_dir=$ac_dir |
2041 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2042 | break | |
dd184caf | 2043 | elif test -f "$ac_dir/shtool"; then |
d9898ee8 | 2044 | ac_aux_dir=$ac_dir |
2045 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2046 | break | |
2047 | fi | |
2048 | done | |
2049 | if test -z "$ac_aux_dir"; then | |
8d138742 CE |
2050 | { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
2051 | $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} | |
d9898ee8 | 2052 | { (exit 1); exit 1; }; } |
2053 | fi | |
dd184caf | 2054 | |
2055 | # These three variables are undocumented and unsupported, | |
2056 | # and are intended to be withdrawn in a future Autoconf release. | |
2057 | # They can cause serious problems if a builder's source tree is in a directory | |
2058 | # whose full name contains unusual characters. | |
2059 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2060 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2061 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2062 | ||
d9898ee8 | 2063 | |
2064 | # Find a good install program. We prefer a C program (faster), | |
2065 | # so one script is as good as another. But avoid the broken or | |
2066 | # incompatible versions: | |
2067 | # SysV /etc/install, /usr/sbin/install | |
2068 | # SunOS /usr/etc/install | |
2069 | # IRIX /sbin/install | |
2070 | # AIX /bin/install | |
2071 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2072 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2073 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2074 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2075 | # OS/2's system install, which has a completely different semantic | |
2076 | # ./install, which can be erroneously created by make from ./install.sh. | |
8d138742 CE |
2077 | # Reject install programs that cannot install multiple files. |
2078 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
2079 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
d9898ee8 | 2080 | if test -z "$INSTALL"; then |
2081 | if test "${ac_cv_path_install+set}" = set; then | |
8d138742 | 2082 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2083 | else |
2084 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2085 | for as_dir in $PATH | |
2086 | do | |
2087 | IFS=$as_save_IFS | |
2088 | test -z "$as_dir" && as_dir=. | |
2089 | # Account for people who put trailing slashes in PATH elements. | |
2090 | case $as_dir/ in | |
2091 | ./ | .// | /cC/* | \ | |
2092 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2093 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
2094 | /usr/ucb/* ) ;; | |
2095 | *) | |
2096 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2097 | # Don't use installbsd from OSF since it installs stuff as root | |
2098 | # by default. | |
2099 | for ac_prog in ginstall scoinst install; do | |
2100 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 2101 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
d9898ee8 | 2102 | if test $ac_prog = install && |
2103 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2104 | # AIX install. It has an incompatible calling convention. | |
2105 | : | |
2106 | elif test $ac_prog = install && | |
2107 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2108 | # program-specific install script used by HP pwplus--don't use. | |
2109 | : | |
2110 | else | |
8d138742 CE |
2111 | rm -rf conftest.one conftest.two conftest.dir |
2112 | echo one > conftest.one | |
2113 | echo two > conftest.two | |
2114 | mkdir conftest.dir | |
2115 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2116 | test -s conftest.one && test -s conftest.two && | |
2117 | test -s conftest.dir/conftest.one && | |
2118 | test -s conftest.dir/conftest.two | |
2119 | then | |
2120 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2121 | break 3 | |
2122 | fi | |
d9898ee8 | 2123 | fi |
2124 | fi | |
2125 | done | |
2126 | done | |
2127 | ;; | |
2128 | esac | |
8d138742 | 2129 | |
d9898ee8 | 2130 | done |
dd184caf | 2131 | IFS=$as_save_IFS |
d9898ee8 | 2132 | |
8d138742 | 2133 | rm -rf conftest.one conftest.two conftest.dir |
d9898ee8 | 2134 | |
2135 | fi | |
2136 | if test "${ac_cv_path_install+set}" = set; then | |
2137 | INSTALL=$ac_cv_path_install | |
2138 | else | |
dd184caf | 2139 | # As a last resort, use the slow shell script. Don't cache a |
2140 | # value for INSTALL within a source directory, because that will | |
d9898ee8 | 2141 | # break other packages using the cache if that directory is |
dd184caf | 2142 | # removed, or if the value is a relative name. |
d9898ee8 | 2143 | INSTALL=$ac_install_sh |
2144 | fi | |
2145 | fi | |
8d138742 CE |
2146 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2147 | $as_echo "$INSTALL" >&6; } | |
d9898ee8 | 2148 | |
2149 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2150 | # It thinks the first close brace ends the variable substitution. | |
2151 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2152 | ||
2153 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2154 | ||
2155 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2156 | ||
8d138742 CE |
2157 | { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
2158 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
d9898ee8 | 2159 | # Just in case |
2160 | sleep 1 | |
2161 | echo timestamp > conftest.file | |
8d138742 CE |
2162 | # Reject unsafe characters in $srcdir or the absolute working directory |
2163 | # name. Accept space and tab only in the latter. | |
2164 | am_lf=' | |
2165 | ' | |
2166 | case `pwd` in | |
2167 | *[\\\"\#\$\&\'\`$am_lf]*) | |
2168 | { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5 | |
2169 | $as_echo "$as_me: error: unsafe absolute working directory name" >&2;} | |
2170 | { (exit 1); exit 1; }; };; | |
2171 | esac | |
2172 | case $srcdir in | |
2173 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
2174 | { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5 | |
2175 | $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;} | |
2176 | { (exit 1); exit 1; }; };; | |
2177 | esac | |
2178 | ||
d9898ee8 | 2179 | # Do `set' in a subshell so we don't clobber the current shell's |
2180 | # arguments. Must try -L first in case configure is actually a | |
2181 | # symlink; some systems play weird games with the mod time of symlinks | |
2182 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2183 | # directory). | |
2184 | if ( | |
8d138742 | 2185 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
d9898ee8 | 2186 | if test "$*" = "X"; then |
2187 | # -L didn't work. | |
8d138742 | 2188 | set X `ls -t "$srcdir/configure" conftest.file` |
d9898ee8 | 2189 | fi |
2190 | rm -f conftest.file | |
2191 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2192 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2193 | ||
2194 | # If neither matched, then we have a broken ls. This can happen | |
2195 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2196 | # broken ls alias from the environment. This has actually | |
2197 | # happened. Such a system could not be considered "sane". | |
8d138742 | 2198 | { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
d9898ee8 | 2199 | alias in your environment" >&5 |
8d138742 | 2200 | $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
d9898ee8 | 2201 | alias in your environment" >&2;} |
2202 | { (exit 1); exit 1; }; } | |
2203 | fi | |
2204 | ||
2205 | test "$2" = conftest.file | |
2206 | ) | |
2207 | then | |
2208 | # Ok. | |
2209 | : | |
2210 | else | |
8d138742 | 2211 | { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
d9898ee8 | 2212 | Check your system clock" >&5 |
8d138742 | 2213 | $as_echo "$as_me: error: newly created file is older than distributed files! |
d9898ee8 | 2214 | Check your system clock" >&2;} |
2215 | { (exit 1); exit 1; }; } | |
2216 | fi | |
8d138742 CE |
2217 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
2218 | $as_echo "yes" >&6; } | |
d9898ee8 | 2219 | test "$program_prefix" != NONE && |
dd184caf | 2220 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
d9898ee8 | 2221 | # Use a double $ so make ignores it. |
2222 | test "$program_suffix" != NONE && | |
dd184caf | 2223 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
8d138742 | 2224 | # Double any \ or $. |
d9898ee8 | 2225 | # By default was `s,x,x', remove it if useless. |
8d138742 CE |
2226 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2227 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
d9898ee8 | 2228 | |
2229 | # expand $ac_aux_dir to an absolute path | |
2230 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2231 | ||
8d138742 CE |
2232 | if test x"${MISSING+set}" != xset; then |
2233 | case $am_aux_dir in | |
2234 | *\ * | *\ *) | |
2235 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2236 | *) | |
2237 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2238 | esac | |
2239 | fi | |
d9898ee8 | 2240 | # Use eval to expand $SHELL |
2241 | if eval "$MISSING --run true"; then | |
2242 | am_missing_run="$MISSING --run " | |
2243 | else | |
2244 | am_missing_run= | |
8d138742 CE |
2245 | { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
2246 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
2247 | fi | |
2248 | ||
2249 | if test x"${install_sh}" != xset; then | |
2250 | case $am_aux_dir in | |
2251 | *\ * | *\ *) | |
2252 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2253 | *) | |
2254 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2255 | esac | |
2256 | fi | |
2257 | ||
2258 | # Installed binaries are usually stripped using `strip' when the user | |
2259 | # run `make install-strip'. However `strip' might not be the right | |
2260 | # tool to use in cross-compilation environments, therefore Automake | |
2261 | # will honor the `STRIP' environment variable to overrule this program. | |
2262 | if test "$cross_compiling" != no; then | |
2263 | if test -n "$ac_tool_prefix"; then | |
2264 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2265 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2266 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2267 | $as_echo_n "checking for $ac_word... " >&6; } | |
2268 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
2269 | $as_echo_n "(cached) " >&6 | |
2270 | else | |
2271 | if test -n "$STRIP"; then | |
2272 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2273 | else | |
2274 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2275 | for as_dir in $PATH | |
2276 | do | |
2277 | IFS=$as_save_IFS | |
2278 | test -z "$as_dir" && as_dir=. | |
2279 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2280 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2281 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2282 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2283 | break 2 | |
2284 | fi | |
2285 | done | |
2286 | done | |
2287 | IFS=$as_save_IFS | |
2288 | ||
2289 | fi | |
2290 | fi | |
2291 | STRIP=$ac_cv_prog_STRIP | |
2292 | if test -n "$STRIP"; then | |
2293 | { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 | |
2294 | $as_echo "$STRIP" >&6; } | |
2295 | else | |
2296 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
2297 | $as_echo "no" >&6; } | |
2298 | fi | |
2299 | ||
2300 | ||
2301 | fi | |
2302 | if test -z "$ac_cv_prog_STRIP"; then | |
2303 | ac_ct_STRIP=$STRIP | |
2304 | # Extract the first word of "strip", so it can be a program name with args. | |
2305 | set dummy strip; ac_word=$2 | |
2306 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2307 | $as_echo_n "checking for $ac_word... " >&6; } | |
2308 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
2309 | $as_echo_n "(cached) " >&6 | |
2310 | else | |
2311 | if test -n "$ac_ct_STRIP"; then | |
2312 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2313 | else | |
2314 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2315 | for as_dir in $PATH | |
2316 | do | |
2317 | IFS=$as_save_IFS | |
2318 | test -z "$as_dir" && as_dir=. | |
2319 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2320 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2321 | ac_cv_prog_ac_ct_STRIP="strip" | |
2322 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2323 | break 2 | |
2324 | fi | |
2325 | done | |
2326 | done | |
2327 | IFS=$as_save_IFS | |
2328 | ||
2329 | fi | |
2330 | fi | |
2331 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2332 | if test -n "$ac_ct_STRIP"; then | |
2333 | { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
2334 | $as_echo "$ac_ct_STRIP" >&6; } | |
2335 | else | |
2336 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
2337 | $as_echo "no" >&6; } | |
2338 | fi | |
2339 | ||
2340 | if test "x$ac_ct_STRIP" = x; then | |
2341 | STRIP=":" | |
2342 | else | |
2343 | case $cross_compiling:$ac_tool_warned in | |
2344 | yes:) | |
2345 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2346 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2347 | ac_tool_warned=yes ;; | |
2348 | esac | |
2349 | STRIP=$ac_ct_STRIP | |
2350 | fi | |
2351 | else | |
2352 | STRIP="$ac_cv_prog_STRIP" | |
2353 | fi | |
2354 | ||
d9898ee8 | 2355 | fi |
8d138742 | 2356 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
d9898ee8 | 2357 | |
8d138742 CE |
2358 | { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 |
2359 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
dd184caf | 2360 | if test -z "$MKDIR_P"; then |
2361 | if test "${ac_cv_path_mkdir+set}" = set; then | |
8d138742 | 2362 | $as_echo_n "(cached) " >&6 |
dd184caf | 2363 | else |
2364 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2365 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2366 | do | |
2367 | IFS=$as_save_IFS | |
2368 | test -z "$as_dir" && as_dir=. | |
2369 | for ac_prog in mkdir gmkdir; do | |
2370 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2371 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
2372 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
2373 | 'mkdir (GNU coreutils) '* | \ | |
2374 | 'mkdir (coreutils) '* | \ | |
2375 | 'mkdir (fileutils) '4.1*) | |
2376 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2377 | break 3;; | |
2378 | esac | |
2379 | done | |
2380 | done | |
2381 | done | |
2382 | IFS=$as_save_IFS | |
2383 | ||
2384 | fi | |
2385 | ||
2386 | if test "${ac_cv_path_mkdir+set}" = set; then | |
2387 | MKDIR_P="$ac_cv_path_mkdir -p" | |
d9898ee8 | 2388 | else |
dd184caf | 2389 | # As a last resort, use the slow shell script. Don't cache a |
2390 | # value for MKDIR_P within a source directory, because that will | |
2391 | # break other packages using the cache if that directory is | |
2392 | # removed, or if the value is a relative name. | |
2393 | test -d ./--version && rmdir ./--version | |
2394 | MKDIR_P="$ac_install_sh -d" | |
d9898ee8 | 2395 | fi |
2396 | fi | |
8d138742 CE |
2397 | { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 |
2398 | $as_echo "$MKDIR_P" >&6; } | |
dd184caf | 2399 | |
2400 | mkdir_p="$MKDIR_P" | |
2401 | case $mkdir_p in | |
2402 | [\\/$]* | ?:[\\/]*) ;; | |
2403 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
2404 | esac | |
d9898ee8 | 2405 | |
2406 | for ac_prog in gawk mawk nawk awk | |
2407 | do | |
2408 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2409 | set dummy $ac_prog; ac_word=$2 | |
8d138742 CE |
2410 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2411 | $as_echo_n "checking for $ac_word... " >&6; } | |
d9898ee8 | 2412 | if test "${ac_cv_prog_AWK+set}" = set; then |
8d138742 | 2413 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2414 | else |
2415 | if test -n "$AWK"; then | |
2416 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2417 | else | |
2418 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2419 | for as_dir in $PATH | |
2420 | do | |
2421 | IFS=$as_save_IFS | |
2422 | test -z "$as_dir" && as_dir=. | |
2423 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 2424 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 | 2425 | ac_cv_prog_AWK="$ac_prog" |
8d138742 | 2426 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2427 | break 2 |
2428 | fi | |
2429 | done | |
2430 | done | |
dd184caf | 2431 | IFS=$as_save_IFS |
d9898ee8 | 2432 | |
2433 | fi | |
2434 | fi | |
2435 | AWK=$ac_cv_prog_AWK | |
2436 | if test -n "$AWK"; then | |
8d138742 CE |
2437 | { $as_echo "$as_me:$LINENO: result: $AWK" >&5 |
2438 | $as_echo "$AWK" >&6; } | |
d9898ee8 | 2439 | else |
8d138742 CE |
2440 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2441 | $as_echo "no" >&6; } | |
d9898ee8 | 2442 | fi |
2443 | ||
dd184caf | 2444 | |
d9898ee8 | 2445 | test -n "$AWK" && break |
2446 | done | |
2447 | ||
8d138742 CE |
2448 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2449 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
2450 | set x ${MAKE-make} | |
2451 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
dd184caf | 2452 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
8d138742 | 2453 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2454 | else |
2455 | cat >conftest.make <<\_ACEOF | |
dd184caf | 2456 | SHELL = /bin/sh |
d9898ee8 | 2457 | all: |
dd184caf | 2458 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
d9898ee8 | 2459 | _ACEOF |
2460 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
dd184caf | 2461 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2462 | *@@@%%%=?*=@@@%%%*) | |
2463 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2464 | *) | |
2465 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2466 | esac | |
d9898ee8 | 2467 | rm -f conftest.make |
2468 | fi | |
dd184caf | 2469 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
8d138742 CE |
2470 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
2471 | $as_echo "yes" >&6; } | |
d9898ee8 | 2472 | SET_MAKE= |
2473 | else | |
8d138742 CE |
2474 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2475 | $as_echo "no" >&6; } | |
d9898ee8 | 2476 | SET_MAKE="MAKE=${MAKE-make}" |
2477 | fi | |
2478 | ||
2479 | rm -rf .tst 2>/dev/null | |
2480 | mkdir .tst 2>/dev/null | |
2481 | if test -d .tst; then | |
2482 | am__leading_dot=. | |
2483 | else | |
2484 | am__leading_dot=_ | |
2485 | fi | |
2486 | rmdir .tst 2>/dev/null | |
2487 | ||
dd184caf | 2488 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
2489 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
2490 | # is not polluted with repeated "-I." | |
2491 | am__isrc=' -I$(srcdir)' | |
2492 | # test to see if srcdir already configured | |
2493 | if test -f $srcdir/config.status; then | |
8d138742 CE |
2494 | { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
2495 | $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
d9898ee8 | 2496 | { (exit 1); exit 1; }; } |
dd184caf | 2497 | fi |
d9898ee8 | 2498 | fi |
2499 | ||
2500 | # test whether we have cygpath | |
2501 | if test -z "$CYGPATH_W"; then | |
2502 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2503 | CYGPATH_W='cygpath -w' | |
2504 | else | |
2505 | CYGPATH_W=echo | |
2506 | fi | |
2507 | fi | |
2508 | ||
2509 | ||
2510 | # Define the identity of the package. | |
2511 | PACKAGE='makedat' | |
2512 | VERSION='0.60' | |
2513 | ||
2514 | ||
2515 | # Some tools Automake needs. | |
2516 | ||
2517 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2518 | ||
2519 | ||
2520 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2521 | ||
2522 | ||
2523 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2524 | ||
2525 | ||
2526 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2527 | ||
2528 | ||
2529 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2530 | ||
d9898ee8 | 2531 | # We need awk for the "check" target. The system "awk" is bad on |
2532 | # some platforms. | |
2533 | # Always define AMTAR for backward compatibility. | |
2534 | ||
2535 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
2536 | ||
2537 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
2538 | ||
2539 | ||
2540 | ||
2541 | ||
2542 | ||
2543 | LPATH="$PATH:/usr/local/bin" | |
dd184caf | 2544 | ac_config_headers="$ac_config_headers config.h" |
d9898ee8 | 2545 | |
2546 | ||
2547 | ac_ext=c | |
2548 | ac_cpp='$CPP $CPPFLAGS' | |
2549 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2550 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2551 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2552 | if test -n "$ac_tool_prefix"; then | |
2553 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2554 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
8d138742 CE |
2555 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2556 | $as_echo_n "checking for $ac_word... " >&6; } | |
d9898ee8 | 2557 | if test "${ac_cv_prog_CC+set}" = set; then |
8d138742 | 2558 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2559 | else |
2560 | if test -n "$CC"; then | |
2561 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2562 | else | |
2563 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2564 | for as_dir in $PATH | |
2565 | do | |
2566 | IFS=$as_save_IFS | |
2567 | test -z "$as_dir" && as_dir=. | |
2568 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 2569 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 | 2570 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
8d138742 | 2571 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2572 | break 2 |
2573 | fi | |
2574 | done | |
2575 | done | |
dd184caf | 2576 | IFS=$as_save_IFS |
d9898ee8 | 2577 | |
2578 | fi | |
2579 | fi | |
2580 | CC=$ac_cv_prog_CC | |
2581 | if test -n "$CC"; then | |
8d138742 CE |
2582 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2583 | $as_echo "$CC" >&6; } | |
d9898ee8 | 2584 | else |
8d138742 CE |
2585 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2586 | $as_echo "no" >&6; } | |
d9898ee8 | 2587 | fi |
2588 | ||
dd184caf | 2589 | |
d9898ee8 | 2590 | fi |
2591 | if test -z "$ac_cv_prog_CC"; then | |
2592 | ac_ct_CC=$CC | |
2593 | # Extract the first word of "gcc", so it can be a program name with args. | |
2594 | set dummy gcc; ac_word=$2 | |
8d138742 CE |
2595 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2596 | $as_echo_n "checking for $ac_word... " >&6; } | |
d9898ee8 | 2597 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
8d138742 | 2598 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2599 | else |
2600 | if test -n "$ac_ct_CC"; then | |
2601 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2602 | else | |
2603 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2604 | for as_dir in $PATH | |
2605 | do | |
2606 | IFS=$as_save_IFS | |
2607 | test -z "$as_dir" && as_dir=. | |
2608 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 2609 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 | 2610 | ac_cv_prog_ac_ct_CC="gcc" |
8d138742 | 2611 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2612 | break 2 |
2613 | fi | |
2614 | done | |
2615 | done | |
dd184caf | 2616 | IFS=$as_save_IFS |
d9898ee8 | 2617 | |
2618 | fi | |
2619 | fi | |
2620 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2621 | if test -n "$ac_ct_CC"; then | |
8d138742 CE |
2622 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2623 | $as_echo "$ac_ct_CC" >&6; } | |
d9898ee8 | 2624 | else |
8d138742 CE |
2625 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2626 | $as_echo "no" >&6; } | |
d9898ee8 | 2627 | fi |
2628 | ||
dd184caf | 2629 | if test "x$ac_ct_CC" = x; then |
2630 | CC="" | |
2631 | else | |
2632 | case $cross_compiling:$ac_tool_warned in | |
2633 | yes:) | |
8d138742 CE |
2634 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2635 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
dd184caf | 2636 | ac_tool_warned=yes ;; |
2637 | esac | |
2638 | CC=$ac_ct_CC | |
2639 | fi | |
d9898ee8 | 2640 | else |
2641 | CC="$ac_cv_prog_CC" | |
2642 | fi | |
2643 | ||
2644 | if test -z "$CC"; then | |
dd184caf | 2645 | if test -n "$ac_tool_prefix"; then |
2646 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
d9898ee8 | 2647 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
8d138742 CE |
2648 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2649 | $as_echo_n "checking for $ac_word... " >&6; } | |
d9898ee8 | 2650 | if test "${ac_cv_prog_CC+set}" = set; then |
8d138742 | 2651 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2652 | else |
2653 | if test -n "$CC"; then | |
2654 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2655 | else | |
2656 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2657 | for as_dir in $PATH | |
2658 | do | |
2659 | IFS=$as_save_IFS | |
2660 | test -z "$as_dir" && as_dir=. | |
2661 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 2662 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 | 2663 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
8d138742 | 2664 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2665 | break 2 |
2666 | fi | |
2667 | done | |
2668 | done | |
dd184caf | 2669 | IFS=$as_save_IFS |
d9898ee8 | 2670 | |
2671 | fi | |
2672 | fi | |
2673 | CC=$ac_cv_prog_CC | |
2674 | if test -n "$CC"; then | |
8d138742 CE |
2675 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2676 | $as_echo "$CC" >&6; } | |
d9898ee8 | 2677 | else |
8d138742 CE |
2678 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2679 | $as_echo "no" >&6; } | |
d9898ee8 | 2680 | fi |
2681 | ||
d9898ee8 | 2682 | |
dd184caf | 2683 | fi |
d9898ee8 | 2684 | fi |
2685 | if test -z "$CC"; then | |
2686 | # Extract the first word of "cc", so it can be a program name with args. | |
2687 | set dummy cc; ac_word=$2 | |
8d138742 CE |
2688 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2689 | $as_echo_n "checking for $ac_word... " >&6; } | |
d9898ee8 | 2690 | if test "${ac_cv_prog_CC+set}" = set; then |
8d138742 | 2691 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2692 | else |
2693 | if test -n "$CC"; then | |
2694 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2695 | else | |
2696 | ac_prog_rejected=no | |
2697 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2698 | for as_dir in $PATH | |
2699 | do | |
2700 | IFS=$as_save_IFS | |
2701 | test -z "$as_dir" && as_dir=. | |
2702 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 2703 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 | 2704 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2705 | ac_prog_rejected=yes | |
2706 | continue | |
2707 | fi | |
2708 | ac_cv_prog_CC="cc" | |
8d138742 | 2709 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2710 | break 2 |
2711 | fi | |
2712 | done | |
2713 | done | |
dd184caf | 2714 | IFS=$as_save_IFS |
d9898ee8 | 2715 | |
2716 | if test $ac_prog_rejected = yes; then | |
2717 | # We found a bogon in the path, so make sure we never use it. | |
2718 | set dummy $ac_cv_prog_CC | |
2719 | shift | |
2720 | if test $# != 0; then | |
2721 | # We chose a different compiler from the bogus one. | |
2722 | # However, it has the same basename, so the bogon will be chosen | |
2723 | # first if we set CC to just the basename; use the full file name. | |
2724 | shift | |
2725 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2726 | fi | |
2727 | fi | |
2728 | fi | |
2729 | fi | |
2730 | CC=$ac_cv_prog_CC | |
2731 | if test -n "$CC"; then | |
8d138742 CE |
2732 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2733 | $as_echo "$CC" >&6; } | |
d9898ee8 | 2734 | else |
8d138742 CE |
2735 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2736 | $as_echo "no" >&6; } | |
d9898ee8 | 2737 | fi |
2738 | ||
dd184caf | 2739 | |
d9898ee8 | 2740 | fi |
2741 | if test -z "$CC"; then | |
2742 | if test -n "$ac_tool_prefix"; then | |
dd184caf | 2743 | for ac_prog in cl.exe |
d9898ee8 | 2744 | do |
2745 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2746 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
8d138742 CE |
2747 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2748 | $as_echo_n "checking for $ac_word... " >&6; } | |
d9898ee8 | 2749 | if test "${ac_cv_prog_CC+set}" = set; then |
8d138742 | 2750 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2751 | else |
2752 | if test -n "$CC"; then | |
2753 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2754 | else | |
2755 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2756 | for as_dir in $PATH | |
2757 | do | |
2758 | IFS=$as_save_IFS | |
2759 | test -z "$as_dir" && as_dir=. | |
2760 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 2761 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 | 2762 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
8d138742 | 2763 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2764 | break 2 |
2765 | fi | |
2766 | done | |
2767 | done | |
dd184caf | 2768 | IFS=$as_save_IFS |
d9898ee8 | 2769 | |
2770 | fi | |
2771 | fi | |
2772 | CC=$ac_cv_prog_CC | |
2773 | if test -n "$CC"; then | |
8d138742 CE |
2774 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2775 | $as_echo "$CC" >&6; } | |
d9898ee8 | 2776 | else |
8d138742 CE |
2777 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2778 | $as_echo "no" >&6; } | |
d9898ee8 | 2779 | fi |
2780 | ||
dd184caf | 2781 | |
d9898ee8 | 2782 | test -n "$CC" && break |
2783 | done | |
2784 | fi | |
2785 | if test -z "$CC"; then | |
2786 | ac_ct_CC=$CC | |
dd184caf | 2787 | for ac_prog in cl.exe |
d9898ee8 | 2788 | do |
2789 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2790 | set dummy $ac_prog; ac_word=$2 | |
8d138742 CE |
2791 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2792 | $as_echo_n "checking for $ac_word... " >&6; } | |
d9898ee8 | 2793 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
8d138742 | 2794 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2795 | else |
2796 | if test -n "$ac_ct_CC"; then | |
2797 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2798 | else | |
2799 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2800 | for as_dir in $PATH | |
2801 | do | |
2802 | IFS=$as_save_IFS | |
2803 | test -z "$as_dir" && as_dir=. | |
2804 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 2805 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 | 2806 | ac_cv_prog_ac_ct_CC="$ac_prog" |
8d138742 | 2807 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2808 | break 2 |
2809 | fi | |
2810 | done | |
2811 | done | |
dd184caf | 2812 | IFS=$as_save_IFS |
d9898ee8 | 2813 | |
2814 | fi | |
2815 | fi | |
2816 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2817 | if test -n "$ac_ct_CC"; then | |
8d138742 CE |
2818 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2819 | $as_echo "$ac_ct_CC" >&6; } | |
d9898ee8 | 2820 | else |
8d138742 CE |
2821 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2822 | $as_echo "no" >&6; } | |
d9898ee8 | 2823 | fi |
2824 | ||
dd184caf | 2825 | |
d9898ee8 | 2826 | test -n "$ac_ct_CC" && break |
2827 | done | |
2828 | ||
dd184caf | 2829 | if test "x$ac_ct_CC" = x; then |
2830 | CC="" | |
2831 | else | |
2832 | case $cross_compiling:$ac_tool_warned in | |
2833 | yes:) | |
8d138742 CE |
2834 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2835 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
dd184caf | 2836 | ac_tool_warned=yes ;; |
2837 | esac | |
2838 | CC=$ac_ct_CC | |
2839 | fi | |
d9898ee8 | 2840 | fi |
2841 | ||
2842 | fi | |
2843 | ||
2844 | ||
8d138742 CE |
2845 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2846 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2847 | { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
d9898ee8 | 2848 | See \`config.log' for more details." >&5 |
8d138742 | 2849 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
d9898ee8 | 2850 | See \`config.log' for more details." >&2;} |
8d138742 | 2851 | { (exit 1); exit 1; }; }; } |
d9898ee8 | 2852 | |
2853 | # Provide some information about the compiler. | |
8d138742 CE |
2854 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
2855 | set X $ac_compile | |
2856 | ac_compiler=$2 | |
dd184caf | 2857 | { (ac_try="$ac_compiler --version >&5" |
2858 | case "(($ac_try" in | |
2859 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2860 | *) ac_try_echo=$ac_try;; | |
2861 | esac | |
8d138742 CE |
2862 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2863 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 2864 | (eval "$ac_compiler --version >&5") 2>&5 |
d9898ee8 | 2865 | ac_status=$? |
8d138742 | 2866 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d9898ee8 | 2867 | (exit $ac_status); } |
dd184caf | 2868 | { (ac_try="$ac_compiler -v >&5" |
2869 | case "(($ac_try" in | |
2870 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2871 | *) ac_try_echo=$ac_try;; | |
2872 | esac | |
8d138742 CE |
2873 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2874 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 2875 | (eval "$ac_compiler -v >&5") 2>&5 |
d9898ee8 | 2876 | ac_status=$? |
8d138742 | 2877 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d9898ee8 | 2878 | (exit $ac_status); } |
dd184caf | 2879 | { (ac_try="$ac_compiler -V >&5" |
2880 | case "(($ac_try" in | |
2881 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2882 | *) ac_try_echo=$ac_try;; | |
2883 | esac | |
8d138742 CE |
2884 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2885 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 2886 | (eval "$ac_compiler -V >&5") 2>&5 |
d9898ee8 | 2887 | ac_status=$? |
8d138742 | 2888 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d9898ee8 | 2889 | (exit $ac_status); } |
2890 | ||
2891 | cat >conftest.$ac_ext <<_ACEOF | |
2892 | /* confdefs.h. */ | |
2893 | _ACEOF | |
2894 | cat confdefs.h >>conftest.$ac_ext | |
2895 | cat >>conftest.$ac_ext <<_ACEOF | |
2896 | /* end confdefs.h. */ | |
2897 | ||
2898 | int | |
2899 | main () | |
2900 | { | |
2901 | ||
2902 | ; | |
2903 | return 0; | |
2904 | } | |
2905 | _ACEOF | |
2906 | ac_clean_files_save=$ac_clean_files | |
8d138742 | 2907 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
d9898ee8 | 2908 | # Try to create an executable without -o first, disregard a.out. |
2909 | # It will help us diagnose broken compilers, and finding out an intuition | |
2910 | # of exeext. | |
8d138742 CE |
2911 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2912 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2913 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2914 | ||
2915 | # The possible output files: | |
2916 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2917 | ||
dd184caf | 2918 | ac_rmfiles= |
2919 | for ac_file in $ac_files | |
2920 | do | |
2921 | case $ac_file in | |
8d138742 | 2922 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
dd184caf | 2923 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
2924 | esac | |
2925 | done | |
2926 | rm -f $ac_rmfiles | |
2927 | ||
2928 | if { (ac_try="$ac_link_default" | |
2929 | case "(($ac_try" in | |
2930 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2931 | *) ac_try_echo=$ac_try;; | |
2932 | esac | |
8d138742 CE |
2933 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2934 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 2935 | (eval "$ac_link_default") 2>&5 |
d9898ee8 | 2936 | ac_status=$? |
8d138742 | 2937 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d9898ee8 | 2938 | (exit $ac_status); }; then |
dd184caf | 2939 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2940 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2941 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2942 | # so that the user can short-circuit this test for compilers unknown to | |
2943 | # Autoconf. | |
2944 | for ac_file in $ac_files '' | |
d9898ee8 | 2945 | do |
2946 | test -f "$ac_file" || continue | |
2947 | case $ac_file in | |
8d138742 | 2948 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
d9898ee8 | 2949 | ;; |
2950 | [ab].out ) | |
2951 | # We found the default executable, but exeext='' is most | |
2952 | # certainly right. | |
2953 | break;; | |
2954 | *.* ) | |
dd184caf | 2955 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2956 | then :; else | |
2957 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2958 | fi | |
2959 | # We set ac_cv_exeext here because the later test for it is not | |
2960 | # safe: cross compilers may not add the suffix if given an `-o' | |
2961 | # argument, so we may need to know it at that point already. | |
2962 | # Even if this section looks crufty: it has the advantage of | |
2963 | # actually working. | |
d9898ee8 | 2964 | break;; |
2965 | * ) | |
2966 | break;; | |
2967 | esac | |
2968 | done | |
dd184caf | 2969 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2970 | ||
d9898ee8 | 2971 | else |
dd184caf | 2972 | ac_file='' |
2973 | fi | |
2974 | ||
8d138742 CE |
2975 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 |
2976 | $as_echo "$ac_file" >&6; } | |
dd184caf | 2977 | if test -z "$ac_file"; then |
8d138742 | 2978 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 2979 | sed 's/^/| /' conftest.$ac_ext >&5 |
2980 | ||
8d138742 CE |
2981 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2982 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2983 | { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables | |
d9898ee8 | 2984 | See \`config.log' for more details." >&5 |
8d138742 | 2985 | $as_echo "$as_me: error: C compiler cannot create executables |
d9898ee8 | 2986 | See \`config.log' for more details." >&2;} |
8d138742 | 2987 | { (exit 77); exit 77; }; }; } |
d9898ee8 | 2988 | fi |
2989 | ||
2990 | ac_exeext=$ac_cv_exeext | |
d9898ee8 | 2991 | |
dd184caf | 2992 | # Check that the compiler produces executables we can run. If not, either |
d9898ee8 | 2993 | # the compiler is broken, or we cross compile. |
8d138742 CE |
2994 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2995 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
d9898ee8 | 2996 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2997 | # If not cross compiling, check that we can run a simple program. | |
2998 | if test "$cross_compiling" != yes; then | |
2999 | if { ac_try='./$ac_file' | |
dd184caf | 3000 | { (case "(($ac_try" in |
3001 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3002 | *) ac_try_echo=$ac_try;; | |
3003 | esac | |
8d138742 CE |
3004 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3005 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 3006 | (eval "$ac_try") 2>&5 |
d9898ee8 | 3007 | ac_status=$? |
8d138742 | 3008 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d9898ee8 | 3009 | (exit $ac_status); }; }; then |
3010 | cross_compiling=no | |
3011 | else | |
3012 | if test "$cross_compiling" = maybe; then | |
3013 | cross_compiling=yes | |
3014 | else | |
8d138742 CE |
3015 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3016 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3017 | { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
d9898ee8 | 3018 | If you meant to cross compile, use \`--host'. |
3019 | See \`config.log' for more details." >&5 | |
8d138742 | 3020 | $as_echo "$as_me: error: cannot run C compiled programs. |
d9898ee8 | 3021 | If you meant to cross compile, use \`--host'. |
3022 | See \`config.log' for more details." >&2;} | |
8d138742 | 3023 | { (exit 1); exit 1; }; }; } |
d9898ee8 | 3024 | fi |
3025 | fi | |
3026 | fi | |
8d138742 CE |
3027 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
3028 | $as_echo "yes" >&6; } | |
d9898ee8 | 3029 | |
8d138742 | 3030 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
d9898ee8 | 3031 | ac_clean_files=$ac_clean_files_save |
dd184caf | 3032 | # Check that the compiler produces executables we can run. If not, either |
d9898ee8 | 3033 | # the compiler is broken, or we cross compile. |
8d138742 CE |
3034 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
3035 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3036 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
3037 | $as_echo "$cross_compiling" >&6; } | |
dd184caf | 3038 | |
8d138742 CE |
3039 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
3040 | $as_echo_n "checking for suffix of executables... " >&6; } | |
dd184caf | 3041 | if { (ac_try="$ac_link" |
3042 | case "(($ac_try" in | |
3043 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3044 | *) ac_try_echo=$ac_try;; | |
3045 | esac | |
8d138742 CE |
3046 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3047 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 3048 | (eval "$ac_link") 2>&5 |
d9898ee8 | 3049 | ac_status=$? |
8d138742 | 3050 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d9898ee8 | 3051 | (exit $ac_status); }; then |
3052 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3053 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3054 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3055 | # `rm'. | |
3056 | for ac_file in conftest.exe conftest conftest.*; do | |
3057 | test -f "$ac_file" || continue | |
3058 | case $ac_file in | |
8d138742 | 3059 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
d9898ee8 | 3060 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
d9898ee8 | 3061 | break;; |
3062 | * ) break;; | |
3063 | esac | |
3064 | done | |
3065 | else | |
8d138742 CE |
3066 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3067 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3068 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
d9898ee8 | 3069 | See \`config.log' for more details." >&5 |
8d138742 | 3070 | $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
d9898ee8 | 3071 | See \`config.log' for more details." >&2;} |
8d138742 | 3072 | { (exit 1); exit 1; }; }; } |
d9898ee8 | 3073 | fi |
3074 | ||
3075 | rm -f conftest$ac_cv_exeext | |
8d138742 CE |
3076 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
3077 | $as_echo "$ac_cv_exeext" >&6; } | |
d9898ee8 | 3078 | |
3079 | rm -f conftest.$ac_ext | |
3080 | EXEEXT=$ac_cv_exeext | |
3081 | ac_exeext=$EXEEXT | |
8d138742 CE |
3082 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
3083 | $as_echo_n "checking for suffix of object files... " >&6; } | |
d9898ee8 | 3084 | if test "${ac_cv_objext+set}" = set; then |
8d138742 | 3085 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3086 | else |
3087 | cat >conftest.$ac_ext <<_ACEOF | |
3088 | /* confdefs.h. */ | |
3089 | _ACEOF | |
3090 | cat confdefs.h >>conftest.$ac_ext | |
3091 | cat >>conftest.$ac_ext <<_ACEOF | |
3092 | /* end confdefs.h. */ | |
3093 | ||
3094 | int | |
3095 | main () | |
3096 | { | |
3097 | ||
3098 | ; | |
3099 | return 0; | |
3100 | } | |
3101 | _ACEOF | |
3102 | rm -f conftest.o conftest.obj | |
dd184caf | 3103 | if { (ac_try="$ac_compile" |
3104 | case "(($ac_try" in | |
3105 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3106 | *) ac_try_echo=$ac_try;; | |
3107 | esac | |
8d138742 CE |
3108 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3109 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 3110 | (eval "$ac_compile") 2>&5 |
d9898ee8 | 3111 | ac_status=$? |
8d138742 | 3112 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d9898ee8 | 3113 | (exit $ac_status); }; then |
dd184caf | 3114 | for ac_file in conftest.o conftest.obj conftest.*; do |
3115 | test -f "$ac_file" || continue; | |
d9898ee8 | 3116 | case $ac_file in |
8d138742 | 3117 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
d9898ee8 | 3118 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3119 | break;; | |
3120 | esac | |
3121 | done | |
3122 | else | |
8d138742 | 3123 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 3124 | sed 's/^/| /' conftest.$ac_ext >&5 |
3125 | ||
8d138742 CE |
3126 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3127 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3128 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
d9898ee8 | 3129 | See \`config.log' for more details." >&5 |
8d138742 | 3130 | $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile |
d9898ee8 | 3131 | See \`config.log' for more details." >&2;} |
8d138742 | 3132 | { (exit 1); exit 1; }; }; } |
d9898ee8 | 3133 | fi |
3134 | ||
3135 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3136 | fi | |
8d138742 CE |
3137 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
3138 | $as_echo "$ac_cv_objext" >&6; } | |
d9898ee8 | 3139 | OBJEXT=$ac_cv_objext |
3140 | ac_objext=$OBJEXT | |
8d138742 CE |
3141 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
3142 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
d9898ee8 | 3143 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
8d138742 | 3144 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3145 | else |
3146 | cat >conftest.$ac_ext <<_ACEOF | |
3147 | /* confdefs.h. */ | |
3148 | _ACEOF | |
3149 | cat confdefs.h >>conftest.$ac_ext | |
3150 | cat >>conftest.$ac_ext <<_ACEOF | |
3151 | /* end confdefs.h. */ | |
3152 | ||
3153 | int | |
3154 | main () | |
3155 | { | |
3156 | #ifndef __GNUC__ | |
3157 | choke me | |
3158 | #endif | |
3159 | ||
3160 | ; | |
3161 | return 0; | |
3162 | } | |
3163 | _ACEOF | |
3164 | rm -f conftest.$ac_objext | |
dd184caf | 3165 | if { (ac_try="$ac_compile" |
3166 | case "(($ac_try" in | |
3167 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3168 | *) ac_try_echo=$ac_try;; | |
3169 | esac | |
8d138742 CE |
3170 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3171 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 3172 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 | 3173 | ac_status=$? |
3174 | grep -v '^ *+' conftest.er1 >conftest.err | |
3175 | rm -f conftest.er1 | |
3176 | cat conftest.err >&5 | |
8d138742 | 3177 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 3178 | (exit $ac_status); } && { |
3179 | test -z "$ac_c_werror_flag" || | |
3180 | test ! -s conftest.err | |
3181 | } && test -s conftest.$ac_objext; then | |
d9898ee8 | 3182 | ac_compiler_gnu=yes |
3183 | else | |
8d138742 | 3184 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 3185 | sed 's/^/| /' conftest.$ac_ext >&5 |
3186 | ||
dd184caf | 3187 | ac_compiler_gnu=no |
d9898ee8 | 3188 | fi |
dd184caf | 3189 | |
3190 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d9898ee8 | 3191 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3192 | ||
3193 | fi | |
8d138742 CE |
3194 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
3195 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3196 | if test $ac_compiler_gnu = yes; then | |
3197 | GCC=yes | |
3198 | else | |
3199 | GCC= | |
3200 | fi | |
d9898ee8 | 3201 | ac_test_CFLAGS=${CFLAGS+set} |
3202 | ac_save_CFLAGS=$CFLAGS | |
8d138742 CE |
3203 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
3204 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
d9898ee8 | 3205 | if test "${ac_cv_prog_cc_g+set}" = set; then |
8d138742 | 3206 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3207 | else |
dd184caf | 3208 | ac_save_c_werror_flag=$ac_c_werror_flag |
3209 | ac_c_werror_flag=yes | |
3210 | ac_cv_prog_cc_g=no | |
3211 | CFLAGS="-g" | |
3212 | cat >conftest.$ac_ext <<_ACEOF | |
d9898ee8 | 3213 | /* confdefs.h. */ |
3214 | _ACEOF | |
3215 | cat confdefs.h >>conftest.$ac_ext | |
3216 | cat >>conftest.$ac_ext <<_ACEOF | |
3217 | /* end confdefs.h. */ | |
3218 | ||
3219 | int | |
3220 | main () | |
3221 | { | |
3222 | ||
3223 | ; | |
3224 | return 0; | |
3225 | } | |
3226 | _ACEOF | |
3227 | rm -f conftest.$ac_objext | |
dd184caf | 3228 | if { (ac_try="$ac_compile" |
3229 | case "(($ac_try" in | |
3230 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3231 | *) ac_try_echo=$ac_try;; | |
3232 | esac | |
8d138742 CE |
3233 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3234 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 3235 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 | 3236 | ac_status=$? |
3237 | grep -v '^ *+' conftest.er1 >conftest.err | |
3238 | rm -f conftest.er1 | |
3239 | cat conftest.err >&5 | |
8d138742 | 3240 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 3241 | (exit $ac_status); } && { |
3242 | test -z "$ac_c_werror_flag" || | |
3243 | test ! -s conftest.err | |
3244 | } && test -s conftest.$ac_objext; then | |
3245 | ac_cv_prog_cc_g=yes | |
3246 | else | |
8d138742 | 3247 | $as_echo "$as_me: failed program was:" >&5 |
dd184caf | 3248 | sed 's/^/| /' conftest.$ac_ext >&5 |
3249 | ||
3250 | CFLAGS="" | |
3251 | cat >conftest.$ac_ext <<_ACEOF | |
3252 | /* confdefs.h. */ | |
3253 | _ACEOF | |
3254 | cat confdefs.h >>conftest.$ac_ext | |
3255 | cat >>conftest.$ac_ext <<_ACEOF | |
3256 | /* end confdefs.h. */ | |
3257 | ||
3258 | int | |
3259 | main () | |
3260 | { | |
3261 | ||
3262 | ; | |
3263 | return 0; | |
3264 | } | |
3265 | _ACEOF | |
3266 | rm -f conftest.$ac_objext | |
3267 | if { (ac_try="$ac_compile" | |
3268 | case "(($ac_try" in | |
3269 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3270 | *) ac_try_echo=$ac_try;; | |
3271 | esac | |
8d138742 CE |
3272 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3273 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 3274 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 | 3275 | ac_status=$? |
dd184caf | 3276 | grep -v '^ *+' conftest.er1 >conftest.err |
3277 | rm -f conftest.er1 | |
3278 | cat conftest.err >&5 | |
8d138742 | 3279 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 3280 | (exit $ac_status); } && { |
3281 | test -z "$ac_c_werror_flag" || | |
3282 | test ! -s conftest.err | |
3283 | } && test -s conftest.$ac_objext; then | |
3284 | : | |
3285 | else | |
8d138742 | 3286 | $as_echo "$as_me: failed program was:" >&5 |
dd184caf | 3287 | sed 's/^/| /' conftest.$ac_ext >&5 |
3288 | ||
3289 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3290 | CFLAGS="-g" | |
3291 | cat >conftest.$ac_ext <<_ACEOF | |
3292 | /* confdefs.h. */ | |
3293 | _ACEOF | |
3294 | cat confdefs.h >>conftest.$ac_ext | |
3295 | cat >>conftest.$ac_ext <<_ACEOF | |
3296 | /* end confdefs.h. */ | |
3297 | ||
3298 | int | |
3299 | main () | |
3300 | { | |
3301 | ||
3302 | ; | |
3303 | return 0; | |
3304 | } | |
3305 | _ACEOF | |
3306 | rm -f conftest.$ac_objext | |
3307 | if { (ac_try="$ac_compile" | |
3308 | case "(($ac_try" in | |
3309 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3310 | *) ac_try_echo=$ac_try;; | |
3311 | esac | |
8d138742 CE |
3312 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3313 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 3314 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 | 3315 | ac_status=$? |
dd184caf | 3316 | grep -v '^ *+' conftest.er1 >conftest.err |
3317 | rm -f conftest.er1 | |
3318 | cat conftest.err >&5 | |
8d138742 | 3319 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 3320 | (exit $ac_status); } && { |
3321 | test -z "$ac_c_werror_flag" || | |
3322 | test ! -s conftest.err | |
3323 | } && test -s conftest.$ac_objext; then | |
d9898ee8 | 3324 | ac_cv_prog_cc_g=yes |
3325 | else | |
8d138742 | 3326 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 3327 | sed 's/^/| /' conftest.$ac_ext >&5 |
3328 | ||
dd184caf | 3329 | |
3330 | fi | |
3331 | ||
3332 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3333 | fi | |
3334 | ||
3335 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d9898ee8 | 3336 | fi |
dd184caf | 3337 | |
3338 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3339 | ac_c_werror_flag=$ac_save_c_werror_flag | |
d9898ee8 | 3340 | fi |
8d138742 CE |
3341 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3342 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
d9898ee8 | 3343 | if test "$ac_test_CFLAGS" = set; then |
3344 | CFLAGS=$ac_save_CFLAGS | |
3345 | elif test $ac_cv_prog_cc_g = yes; then | |
3346 | if test "$GCC" = yes; then | |
3347 | CFLAGS="-g -O2" | |
3348 | else | |
3349 | CFLAGS="-g" | |
3350 | fi | |
3351 | else | |
3352 | if test "$GCC" = yes; then | |
3353 | CFLAGS="-O2" | |
3354 | else | |
3355 | CFLAGS= | |
3356 | fi | |
3357 | fi | |
8d138742 CE |
3358 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
3359 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
dd184caf | 3360 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
8d138742 | 3361 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3362 | else |
dd184caf | 3363 | ac_cv_prog_cc_c89=no |
d9898ee8 | 3364 | ac_save_CC=$CC |
3365 | cat >conftest.$ac_ext <<_ACEOF | |
3366 | /* confdefs.h. */ | |
3367 | _ACEOF | |
3368 | cat confdefs.h >>conftest.$ac_ext | |
3369 | cat >>conftest.$ac_ext <<_ACEOF | |
3370 | /* end confdefs.h. */ | |
3371 | #include <stdarg.h> | |
3372 | #include <stdio.h> | |
3373 | #include <sys/types.h> | |
3374 | #include <sys/stat.h> | |
3375 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3376 | struct buf { int x; }; | |
3377 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3378 | static char *e (p, i) | |
3379 | char **p; | |
3380 | int i; | |
3381 | { | |
3382 | return p[i]; | |
3383 | } | |
3384 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3385 | { | |
3386 | char *s; | |
3387 | va_list v; | |
3388 | va_start (v,p); | |
3389 | s = g (p, va_arg (v,int)); | |
3390 | va_end (v); | |
3391 | return s; | |
3392 | } | |
3393 | ||
3394 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3395 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3396 | These don't provoke an error unfortunately, instead are silently treated | |
dd184caf | 3397 | as 'x'. The following induces an error, until -std is added to get |
d9898ee8 | 3398 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3399 | array size at least. It's necessary to write '\x00'==0 to get something | |
dd184caf | 3400 | that's true only with -std. */ |
d9898ee8 | 3401 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3402 | ||
dd184caf | 3403 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3404 | inside strings and character constants. */ | |
3405 | #define FOO(x) 'x' | |
3406 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3407 | ||
d9898ee8 | 3408 | int test (int i, double x); |
3409 | struct s1 {int (*f) (int a);}; | |
3410 | struct s2 {int (*f) (double a);}; | |
3411 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3412 | int argc; | |
3413 | char **argv; | |
3414 | int | |
3415 | main () | |
3416 | { | |
3417 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3418 | ; | |
3419 | return 0; | |
3420 | } | |
3421 | _ACEOF | |
dd184caf | 3422 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3423 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
d9898ee8 | 3424 | do |
3425 | CC="$ac_save_CC $ac_arg" | |
3426 | rm -f conftest.$ac_objext | |
dd184caf | 3427 | if { (ac_try="$ac_compile" |
3428 | case "(($ac_try" in | |
3429 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3430 | *) ac_try_echo=$ac_try;; | |
3431 | esac | |
8d138742 CE |
3432 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3433 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 3434 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 | 3435 | ac_status=$? |
3436 | grep -v '^ *+' conftest.er1 >conftest.err | |
3437 | rm -f conftest.er1 | |
3438 | cat conftest.err >&5 | |
8d138742 | 3439 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 3440 | (exit $ac_status); } && { |
3441 | test -z "$ac_c_werror_flag" || | |
3442 | test ! -s conftest.err | |
3443 | } && test -s conftest.$ac_objext; then | |
3444 | ac_cv_prog_cc_c89=$ac_arg | |
d9898ee8 | 3445 | else |
8d138742 | 3446 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 3447 | sed 's/^/| /' conftest.$ac_ext >&5 |
3448 | ||
dd184caf | 3449 | |
d9898ee8 | 3450 | fi |
dd184caf | 3451 | |
3452 | rm -f core conftest.err conftest.$ac_objext | |
3453 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
d9898ee8 | 3454 | done |
dd184caf | 3455 | rm -f conftest.$ac_ext |
d9898ee8 | 3456 | CC=$ac_save_CC |
3457 | ||
3458 | fi | |
dd184caf | 3459 | # AC_CACHE_VAL |
3460 | case "x$ac_cv_prog_cc_c89" in | |
3461 | x) | |
8d138742 CE |
3462 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
3463 | $as_echo "none needed" >&6; } ;; | |
dd184caf | 3464 | xno) |
8d138742 CE |
3465 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
3466 | $as_echo "unsupported" >&6; } ;; | |
d9898ee8 | 3467 | *) |
dd184caf | 3468 | CC="$CC $ac_cv_prog_cc_c89" |
8d138742 CE |
3469 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
3470 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
d9898ee8 | 3471 | esac |
3472 | ||
d9898ee8 | 3473 | |
d9898ee8 | 3474 | ac_ext=c |
3475 | ac_cpp='$CPP $CPPFLAGS' | |
3476 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3477 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3478 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3479 | DEPDIR="${am__leading_dot}deps" | |
3480 | ||
dd184caf | 3481 | ac_config_commands="$ac_config_commands depfiles" |
d9898ee8 | 3482 | |
3483 | ||
3484 | am_make=${MAKE-make} | |
3485 | cat > confinc << 'END' | |
3486 | am__doit: | |
8d138742 | 3487 | @echo this is the am__doit target |
d9898ee8 | 3488 | .PHONY: am__doit |
3489 | END | |
3490 | # If we don't find an include directive, just comment out the code. | |
8d138742 CE |
3491 | { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
3492 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
d9898ee8 | 3493 | am__include="#" |
3494 | am__quote= | |
3495 | _am_result=none | |
3496 | # First try GNU make style include. | |
3497 | echo "include confinc" > confmf | |
8d138742 CE |
3498 | # Ignore all kinds of additional output from `make'. |
3499 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
3500 | *the\ am__doit\ target*) | |
3501 | am__include=include | |
3502 | am__quote= | |
3503 | _am_result=GNU | |
3504 | ;; | |
3505 | esac | |
d9898ee8 | 3506 | # Now try BSD make style include. |
3507 | if test "$am__include" = "#"; then | |
3508 | echo '.include "confinc"' > confmf | |
8d138742 CE |
3509 | case `$am_make -s -f confmf 2> /dev/null` in #( |
3510 | *the\ am__doit\ target*) | |
3511 | am__include=.include | |
3512 | am__quote="\"" | |
3513 | _am_result=BSD | |
3514 | ;; | |
3515 | esac | |
d9898ee8 | 3516 | fi |
3517 | ||
3518 | ||
8d138742 CE |
3519 | { $as_echo "$as_me:$LINENO: result: $_am_result" >&5 |
3520 | $as_echo "$_am_result" >&6; } | |
d9898ee8 | 3521 | rm -f confinc confmf |
3522 | ||
dd184caf | 3523 | # Check whether --enable-dependency-tracking was given. |
d9898ee8 | 3524 | if test "${enable_dependency_tracking+set}" = set; then |
dd184caf | 3525 | enableval=$enable_dependency_tracking; |
3526 | fi | |
d9898ee8 | 3527 | |
d9898ee8 | 3528 | if test "x$enable_dependency_tracking" != xno; then |
3529 | am_depcomp="$ac_aux_dir/depcomp" | |
3530 | AMDEPBACKSLASH='\' | |
3531 | fi | |
dd184caf | 3532 | if test "x$enable_dependency_tracking" != xno; then |
d9898ee8 | 3533 | AMDEP_TRUE= |
3534 | AMDEP_FALSE='#' | |
3535 | else | |
3536 | AMDEP_TRUE='#' | |
3537 | AMDEP_FALSE= | |
3538 | fi | |
3539 | ||
3540 | ||
3541 | ||
d9898ee8 | 3542 | depcc="$CC" am_compiler_list= |
3543 | ||
8d138742 CE |
3544 | { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
3545 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
d9898ee8 | 3546 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
8d138742 | 3547 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3548 | else |
3549 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3550 | # We make a subdir and do the tests there. Otherwise we can end up | |
3551 | # making bogus files that we don't know about and never remove. For | |
3552 | # instance it was reported that on HP-UX the gcc test will end up | |
3553 | # making a dummy file named `D' -- because `-MD' means `put the output | |
3554 | # in D'. | |
3555 | mkdir conftest.dir | |
3556 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3557 | # using a relative directory. | |
3558 | cp "$am_depcomp" conftest.dir | |
3559 | cd conftest.dir | |
3560 | # We will build objects and dependencies in a subdirectory because | |
3561 | # it helps to detect inapplicable dependency modes. For instance | |
3562 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3563 | # side effect of compilation, but ICC will put the dependencies in | |
3564 | # the current directory while Tru64 will put them in the object | |
3565 | # directory. | |
3566 | mkdir sub | |
3567 | ||
3568 | am_cv_CC_dependencies_compiler_type=none | |
3569 | if test "$am_compiler_list" = ""; then | |
3570 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3571 | fi | |
8d138742 CE |
3572 | am__universal=false |
3573 | case " $depcc " in #( | |
3574 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
3575 | esac | |
3576 | ||
d9898ee8 | 3577 | for depmode in $am_compiler_list; do |
3578 | # Setup a source with many dependencies, because some compilers | |
3579 | # like to wrap large dependency lists on column 80 (with \), and | |
3580 | # we should not choose a depcomp mode which is confused by this. | |
3581 | # | |
3582 | # We need to recreate these files for each test, as the compiler may | |
3583 | # overwrite some of them when testing with obscure command lines. | |
3584 | # This happens at least with the AIX C compiler. | |
3585 | : > sub/conftest.c | |
3586 | for i in 1 2 3 4 5 6; do | |
3587 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3588 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3589 | # Solaris 8's {/usr,}/bin/sh. | |
3590 | touch sub/conftst$i.h | |
3591 | done | |
3592 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3593 | ||
8d138742 CE |
3594 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
3595 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3596 | # handle `-M -o', and we need to detect this. Also, some Intel | |
3597 | # versions had trouble with output in subdirs | |
3598 | am__obj=sub/conftest.${OBJEXT-o} | |
3599 | am__minus_obj="-o $am__obj" | |
d9898ee8 | 3600 | case $depmode in |
8d138742 CE |
3601 | gcc) |
3602 | # This depmode causes a compiler race in universal mode. | |
3603 | test "$am__universal" = false || continue | |
3604 | ;; | |
d9898ee8 | 3605 | nosideeffect) |
3606 | # after this tag, mechanisms are not by side-effect, so they'll | |
3607 | # only be used when explicitly requested | |
3608 | if test "x$enable_dependency_tracking" = xyes; then | |
3609 | continue | |
3610 | else | |
3611 | break | |
3612 | fi | |
3613 | ;; | |
8d138742 CE |
3614 | msvisualcpp | msvcmsys) |
3615 | # This compiler won't grok `-c -o', but also, the minuso test has | |
3616 | # not run yet. These depmodes are late enough in the game, and | |
3617 | # so weak that their functioning should not be impacted. | |
3618 | am__obj=conftest.${OBJEXT-o} | |
3619 | am__minus_obj= | |
3620 | ;; | |
d9898ee8 | 3621 | none) break ;; |
3622 | esac | |
d9898ee8 | 3623 | if depmode=$depmode \ |
8d138742 | 3624 | source=sub/conftest.c object=$am__obj \ |
d9898ee8 | 3625 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
8d138742 | 3626 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
d9898ee8 | 3627 | >/dev/null 2>conftest.err && |
dd184caf | 3628 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
d9898ee8 | 3629 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
8d138742 | 3630 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
d9898ee8 | 3631 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
3632 | # icc doesn't choke on unknown options, it will just issue warnings | |
3633 | # or remarks (even with -Werror). So we grep stderr for any message | |
3634 | # that says an option was ignored or not supported. | |
3635 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3636 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3637 | # The diagnosis changed in icc 8.0: | |
3638 | # icc: Command line remark: option '-MP' not supported | |
3639 | if (grep 'ignoring option' conftest.err || | |
3640 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3641 | am_cv_CC_dependencies_compiler_type=$depmode | |
3642 | break | |
3643 | fi | |
3644 | fi | |
3645 | done | |
3646 | ||
3647 | cd .. | |
3648 | rm -rf conftest.dir | |
3649 | else | |
3650 | am_cv_CC_dependencies_compiler_type=none | |
3651 | fi | |
3652 | ||
3653 | fi | |
8d138742 CE |
3654 | { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3655 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
d9898ee8 | 3656 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3657 | ||
dd184caf | 3658 | if |
d9898ee8 | 3659 | test "x$enable_dependency_tracking" != xno \ |
3660 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3661 | am__fastdepCC_TRUE= | |
3662 | am__fastdepCC_FALSE='#' | |
3663 | else | |
3664 | am__fastdepCC_TRUE='#' | |
3665 | am__fastdepCC_FALSE= | |
3666 | fi | |
3667 | ||
3668 | ||
3669 | # Find a good install program. We prefer a C program (faster), | |
3670 | # so one script is as good as another. But avoid the broken or | |
3671 | # incompatible versions: | |
3672 | # SysV /etc/install, /usr/sbin/install | |
3673 | # SunOS /usr/etc/install | |
3674 | # IRIX /sbin/install | |
3675 | # AIX /bin/install | |
3676 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3677 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3678 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3679 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3680 | # OS/2's system install, which has a completely different semantic | |
3681 | # ./install, which can be erroneously created by make from ./install.sh. | |
8d138742 CE |
3682 | # Reject install programs that cannot install multiple files. |
3683 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
3684 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
d9898ee8 | 3685 | if test -z "$INSTALL"; then |
3686 | if test "${ac_cv_path_install+set}" = set; then | |
8d138742 | 3687 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3688 | else |
3689 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3690 | for as_dir in $PATH | |
3691 | do | |
3692 | IFS=$as_save_IFS | |
3693 | test -z "$as_dir" && as_dir=. | |
3694 | # Account for people who put trailing slashes in PATH elements. | |
3695 | case $as_dir/ in | |
3696 | ./ | .// | /cC/* | \ | |
3697 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3698 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
3699 | /usr/ucb/* ) ;; | |
3700 | *) | |
3701 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3702 | # Don't use installbsd from OSF since it installs stuff as root | |
3703 | # by default. | |
3704 | for ac_prog in ginstall scoinst install; do | |
3705 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 3706 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
d9898ee8 | 3707 | if test $ac_prog = install && |
3708 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3709 | # AIX install. It has an incompatible calling convention. | |
3710 | : | |
3711 | elif test $ac_prog = install && | |
3712 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3713 | # program-specific install script used by HP pwplus--don't use. | |
3714 | : | |
3715 | else | |
8d138742 CE |
3716 | rm -rf conftest.one conftest.two conftest.dir |
3717 | echo one > conftest.one | |
3718 | echo two > conftest.two | |
3719 | mkdir conftest.dir | |
3720 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3721 | test -s conftest.one && test -s conftest.two && | |
3722 | test -s conftest.dir/conftest.one && | |
3723 | test -s conftest.dir/conftest.two | |
3724 | then | |
3725 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3726 | break 3 | |
3727 | fi | |
d9898ee8 | 3728 | fi |
3729 | fi | |
3730 | done | |
3731 | done | |
3732 | ;; | |
3733 | esac | |
8d138742 | 3734 | |
d9898ee8 | 3735 | done |
dd184caf | 3736 | IFS=$as_save_IFS |
d9898ee8 | 3737 | |
8d138742 | 3738 | rm -rf conftest.one conftest.two conftest.dir |
d9898ee8 | 3739 | |
3740 | fi | |
3741 | if test "${ac_cv_path_install+set}" = set; then | |
3742 | INSTALL=$ac_cv_path_install | |
3743 | else | |
dd184caf | 3744 | # As a last resort, use the slow shell script. Don't cache a |
3745 | # value for INSTALL within a source directory, because that will | |
d9898ee8 | 3746 | # break other packages using the cache if that directory is |
dd184caf | 3747 | # removed, or if the value is a relative name. |
d9898ee8 | 3748 | INSTALL=$ac_install_sh |
3749 | fi | |
3750 | fi | |
8d138742 CE |
3751 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3752 | $as_echo "$INSTALL" >&6; } | |
d9898ee8 | 3753 | |
3754 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3755 | # It thinks the first close brace ends the variable substitution. | |
3756 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3757 | ||
3758 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
3759 | ||
3760 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
3761 | ||
8d138742 CE |
3762 | { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
3763 | $as_echo_n "checking whether ln -s works... " >&6; } | |
d9898ee8 | 3764 | LN_S=$as_ln_s |
3765 | if test "$LN_S" = "ln -s"; then | |
8d138742 CE |
3766 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
3767 | $as_echo "yes" >&6; } | |
d9898ee8 | 3768 | else |
8d138742 CE |
3769 | { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3770 | $as_echo "no, using $LN_S" >&6; } | |
d9898ee8 | 3771 | fi |
3772 | ||
3773 | for ac_prog in perl5 perl | |
3774 | do | |
3775 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3776 | set dummy $ac_prog; ac_word=$2 | |
8d138742 CE |
3777 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3778 | $as_echo_n "checking for $ac_word... " >&6; } | |
d9898ee8 | 3779 | if test "${ac_cv_path_PERL+set}" = set; then |
8d138742 | 3780 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3781 | else |
3782 | case $PERL in | |
3783 | [\\/]* | ?:[\\/]*) | |
3784 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. | |
3785 | ;; | |
3786 | *) | |
3787 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3788 | for as_dir in $LPATH | |
3789 | do | |
3790 | IFS=$as_save_IFS | |
3791 | test -z "$as_dir" && as_dir=. | |
3792 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 3793 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 | 3794 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
8d138742 | 3795 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 3796 | break 2 |
3797 | fi | |
3798 | done | |
3799 | done | |
dd184caf | 3800 | IFS=$as_save_IFS |
d9898ee8 | 3801 | |
3802 | ;; | |
3803 | esac | |
3804 | fi | |
3805 | PERL=$ac_cv_path_PERL | |
d9898ee8 | 3806 | if test -n "$PERL"; then |
8d138742 CE |
3807 | { $as_echo "$as_me:$LINENO: result: $PERL" >&5 |
3808 | $as_echo "$PERL" >&6; } | |
d9898ee8 | 3809 | else |
8d138742 CE |
3810 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3811 | $as_echo "no" >&6; } | |
d9898ee8 | 3812 | fi |
3813 | ||
dd184caf | 3814 | |
d9898ee8 | 3815 | test -n "$PERL" && break |
3816 | done | |
3817 | test -n "$PERL" || PERL="perl" | |
3818 | ||
3819 | ||
3820 | for ac_prog in cat | |
3821 | do | |
3822 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3823 | set dummy $ac_prog; ac_word=$2 | |
8d138742 CE |
3824 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3825 | $as_echo_n "checking for $ac_word... " >&6; } | |
d9898ee8 | 3826 | if test "${ac_cv_path_CAT+set}" = set; then |
8d138742 | 3827 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3828 | else |
3829 | case $CAT in | |
3830 | [\\/]* | ?:[\\/]*) | |
3831 | ac_cv_path_CAT="$CAT" # Let the user override the test with a path. | |
3832 | ;; | |
3833 | *) | |
3834 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3835 | for as_dir in $PATH | |
3836 | do | |
3837 | IFS=$as_save_IFS | |
3838 | test -z "$as_dir" && as_dir=. | |
3839 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 3840 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 | 3841 | ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" |
8d138742 | 3842 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 3843 | break 2 |
3844 | fi | |
3845 | done | |
3846 | done | |
dd184caf | 3847 | IFS=$as_save_IFS |
d9898ee8 | 3848 | |
3849 | ;; | |
3850 | esac | |
3851 | fi | |
3852 | CAT=$ac_cv_path_CAT | |
d9898ee8 | 3853 | if test -n "$CAT"; then |
8d138742 CE |
3854 | { $as_echo "$as_me:$LINENO: result: $CAT" >&5 |
3855 | $as_echo "$CAT" >&6; } | |
d9898ee8 | 3856 | else |
8d138742 CE |
3857 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3858 | $as_echo "no" >&6; } | |
d9898ee8 | 3859 | fi |
3860 | ||
dd184caf | 3861 | |
d9898ee8 | 3862 | test -n "$CAT" && break |
3863 | done | |
3864 | test -n "$CAT" || CAT="cat" | |
3865 | ||
8d138742 | 3866 | enable_dlopen=yes |
d9898ee8 | 3867 | |
3868 | ||
d9898ee8 | 3869 | |
8d138742 CE |
3870 | case `pwd` in |
3871 | *\ * | *\ *) | |
3872 | { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
3873 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
3874 | esac | |
dd184caf | 3875 | |
d9898ee8 | 3876 | |
dd184caf | 3877 | |
8d138742 CE |
3878 | macro_version='2.2.6' |
3879 | macro_revision='1.3012' | |
dd184caf | 3880 | |
d9898ee8 | 3881 | |
8d138742 CE |
3882 | |
3883 | ||
3884 | ||
3885 | ||
3886 | ||
3887 | ||
3888 | ||
3889 | ||
3890 | ||
3891 | ||
3892 | ||
3893 | ltmain="$ac_aux_dir/ltmain.sh" | |
3894 | ||
d9898ee8 | 3895 | # Make sure we can run config.sub. |
dd184caf | 3896 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
8d138742 CE |
3897 | { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
3898 | $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
d9898ee8 | 3899 | { (exit 1); exit 1; }; } |
3900 | ||
8d138742 CE |
3901 | { $as_echo "$as_me:$LINENO: checking build system type" >&5 |
3902 | $as_echo_n "checking build system type... " >&6; } | |
d9898ee8 | 3903 | if test "${ac_cv_build+set}" = set; then |
8d138742 | 3904 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3905 | else |
dd184caf | 3906 | ac_build_alias=$build_alias |
3907 | test "x$ac_build_alias" = x && | |
3908 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
3909 | test "x$ac_build_alias" = x && | |
8d138742 CE |
3910 | { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
3911 | $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
d9898ee8 | 3912 | { (exit 1); exit 1; }; } |
dd184caf | 3913 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
8d138742 CE |
3914 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
3915 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
d9898ee8 | 3916 | { (exit 1); exit 1; }; } |
3917 | ||
3918 | fi | |
8d138742 CE |
3919 | { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
3920 | $as_echo "$ac_cv_build" >&6; } | |
dd184caf | 3921 | case $ac_cv_build in |
3922 | *-*-*) ;; | |
8d138742 CE |
3923 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
3924 | $as_echo "$as_me: error: invalid value of canonical build" >&2;} | |
dd184caf | 3925 | { (exit 1); exit 1; }; };; |
3926 | esac | |
d9898ee8 | 3927 | build=$ac_cv_build |
dd184caf | 3928 | ac_save_IFS=$IFS; IFS='-' |
3929 | set x $ac_cv_build | |
3930 | shift | |
3931 | build_cpu=$1 | |
3932 | build_vendor=$2 | |
3933 | shift; shift | |
3934 | # Remember, the first character of IFS is used to create $*, | |
3935 | # except with old shells: | |
3936 | build_os=$* | |
3937 | IFS=$ac_save_IFS | |
3938 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
3939 | ||
3940 | ||
8d138742 CE |
3941 | { $as_echo "$as_me:$LINENO: checking host system type" >&5 |
3942 | $as_echo_n "checking host system type... " >&6; } | |
d9898ee8 | 3943 | if test "${ac_cv_host+set}" = set; then |
8d138742 | 3944 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3945 | else |
dd184caf | 3946 | if test "x$host_alias" = x; then |
3947 | ac_cv_host=$ac_cv_build | |
3948 | else | |
3949 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
8d138742 CE |
3950 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
3951 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
d9898ee8 | 3952 | { (exit 1); exit 1; }; } |
dd184caf | 3953 | fi |
d9898ee8 | 3954 | |
3955 | fi | |
8d138742 CE |
3956 | { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
3957 | $as_echo "$ac_cv_host" >&6; } | |
dd184caf | 3958 | case $ac_cv_host in |
3959 | *-*-*) ;; | |
8d138742 CE |
3960 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
3961 | $as_echo "$as_me: error: invalid value of canonical host" >&2;} | |
dd184caf | 3962 | { (exit 1); exit 1; }; };; |
3963 | esac | |
d9898ee8 | 3964 | host=$ac_cv_host |
dd184caf | 3965 | ac_save_IFS=$IFS; IFS='-' |
3966 | set x $ac_cv_host | |
3967 | shift | |
3968 | host_cpu=$1 | |
3969 | host_vendor=$2 | |
3970 | shift; shift | |
3971 | # Remember, the first character of IFS is used to create $*, | |
3972 | # except with old shells: | |
3973 | host_os=$* | |
3974 | IFS=$ac_save_IFS | |
3975 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
3976 | ||
3977 | ||
8d138742 CE |
3978 | { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
3979 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
3980 | if test "${ac_cv_path_SED+set}" = set; then | |
3981 | $as_echo_n "(cached) " >&6 | |
3982 | else | |
3983 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
3984 | for ac_i in 1 2 3 4 5 6 7; do | |
3985 | ac_script="$ac_script$as_nl$ac_script" | |
3986 | done | |
3987 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
3988 | $as_unset ac_script || ac_script= | |
3989 | if test -z "$SED"; then | |
3990 | ac_path_SED_found=false | |
3991 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3992 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d9898ee8 | 3993 | for as_dir in $PATH |
3994 | do | |
3995 | IFS=$as_save_IFS | |
3996 | test -z "$as_dir" && as_dir=. | |
8d138742 | 3997 | for ac_prog in sed gsed; do |
d9898ee8 | 3998 | for ac_exec_ext in '' $ac_executable_extensions; do |
8d138742 CE |
3999 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
4000 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
4001 | # Check for GNU ac_path_SED and select it if it is found. | |
4002 | # Check for GNU $ac_path_SED | |
4003 | case `"$ac_path_SED" --version 2>&1` in | |
4004 | *GNU*) | |
4005 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
4006 | *) | |
4007 | ac_count=0 | |
4008 | $as_echo_n 0123456789 >"conftest.in" | |
4009 | while : | |
4010 | do | |
4011 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4012 | mv "conftest.tmp" "conftest.in" | |
4013 | cp "conftest.in" "conftest.nl" | |
4014 | $as_echo '' >> "conftest.nl" | |
4015 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4016 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4017 | ac_count=`expr $ac_count + 1` | |
4018 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
4019 | # Best one so far, save it but keep looking for a better one | |
4020 | ac_cv_path_SED="$ac_path_SED" | |
4021 | ac_path_SED_max=$ac_count | |
4022 | fi | |
4023 | # 10*(2^10) chars as input seems more than enough | |
4024 | test $ac_count -gt 10 && break | |
4025 | done | |
4026 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4027 | esac | |
4028 | ||
4029 | $ac_path_SED_found && break 3 | |
d9898ee8 | 4030 | done |
4031 | done | |
4032 | done | |
4033 | IFS=$as_save_IFS | |
8d138742 CE |
4034 | if test -z "$ac_cv_path_SED"; then |
4035 | { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 | |
4036 | $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} | |
4037 | { (exit 1); exit 1; }; } | |
d9898ee8 | 4038 | fi |
8d138742 CE |
4039 | else |
4040 | ac_cv_path_SED=$SED | |
4041 | fi | |
d9898ee8 | 4042 | |
4043 | fi | |
8d138742 CE |
4044 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 |
4045 | $as_echo "$ac_cv_path_SED" >&6; } | |
4046 | SED="$ac_cv_path_SED" | |
4047 | rm -f conftest.sed | |
4048 | ||
4049 | test -z "$SED" && SED=sed | |
4050 | Xsed="$SED -e 1s/^X//" | |
d9898ee8 | 4051 | |
d9898ee8 | 4052 | |
dd184caf | 4053 | |
8d138742 CE |
4054 | |
4055 | ||
4056 | ||
4057 | ||
4058 | ||
4059 | ||
4060 | ||
4061 | ||
4062 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 | |
4063 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
dd184caf | 4064 | if test "${ac_cv_path_GREP+set}" = set; then |
8d138742 | 4065 | $as_echo_n "(cached) " >&6 |
dd184caf | 4066 | else |
8d138742 | 4067 | if test -z "$GREP"; then |
dd184caf | 4068 | ac_path_GREP_found=false |
8d138742 CE |
4069 | # Loop through the user's path and test for each of PROGNAME-LIST |
4070 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
dd184caf | 4071 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4072 | do | |
4073 | IFS=$as_save_IFS | |
4074 | test -z "$as_dir" && as_dir=. | |
4075 | for ac_prog in grep ggrep; do | |
8d138742 CE |
4076 | for ac_exec_ext in '' $ac_executable_extensions; do |
4077 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
4078 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
4079 | # Check for GNU ac_path_GREP and select it if it is found. | |
dd184caf | 4080 | # Check for GNU $ac_path_GREP |
4081 | case `"$ac_path_GREP" --version 2>&1` in | |
4082 | *GNU*) | |
4083 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4084 | *) | |
4085 | ac_count=0 | |
8d138742 | 4086 | $as_echo_n 0123456789 >"conftest.in" |
dd184caf | 4087 | while : |
4088 | do | |
4089 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4090 | mv "conftest.tmp" "conftest.in" | |
4091 | cp "conftest.in" "conftest.nl" | |
8d138742 | 4092 | $as_echo 'GREP' >> "conftest.nl" |
dd184caf | 4093 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4094 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4095 | ac_count=`expr $ac_count + 1` | |
4096 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4097 | # Best one so far, save it but keep looking for a better one | |
4098 | ac_cv_path_GREP="$ac_path_GREP" | |
4099 | ac_path_GREP_max=$ac_count | |
4100 | fi | |
4101 | # 10*(2^10) chars as input seems more than enough | |
4102 | test $ac_count -gt 10 && break | |
4103 | done | |
4104 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4105 | esac | |
4106 | ||
8d138742 CE |
4107 | $ac_path_GREP_found && break 3 |
4108 | done | |
dd184caf | 4109 | done |
4110 | done | |
dd184caf | 4111 | IFS=$as_save_IFS |
8d138742 CE |
4112 | if test -z "$ac_cv_path_GREP"; then |
4113 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
4114 | $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
dd184caf | 4115 | { (exit 1); exit 1; }; } |
8d138742 | 4116 | fi |
dd184caf | 4117 | else |
4118 | ac_cv_path_GREP=$GREP | |
4119 | fi | |
4120 | ||
dd184caf | 4121 | fi |
8d138742 CE |
4122 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
4123 | $as_echo "$ac_cv_path_GREP" >&6; } | |
dd184caf | 4124 | GREP="$ac_cv_path_GREP" |
4125 | ||
d9898ee8 | 4126 | |
8d138742 CE |
4127 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
4128 | $as_echo_n "checking for egrep... " >&6; } | |
dd184caf | 4129 | if test "${ac_cv_path_EGREP+set}" = set; then |
8d138742 | 4130 | $as_echo_n "(cached) " >&6 |
dd184caf | 4131 | else |
4132 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
4133 | then ac_cv_path_EGREP="$GREP -E" | |
4134 | else | |
8d138742 | 4135 | if test -z "$EGREP"; then |
dd184caf | 4136 | ac_path_EGREP_found=false |
8d138742 CE |
4137 | # Loop through the user's path and test for each of PROGNAME-LIST |
4138 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
dd184caf | 4139 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4140 | do | |
4141 | IFS=$as_save_IFS | |
4142 | test -z "$as_dir" && as_dir=. | |
4143 | for ac_prog in egrep; do | |
8d138742 CE |
4144 | for ac_exec_ext in '' $ac_executable_extensions; do |
4145 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4146 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
4147 | # Check for GNU ac_path_EGREP and select it if it is found. | |
dd184caf | 4148 | # Check for GNU $ac_path_EGREP |
4149 | case `"$ac_path_EGREP" --version 2>&1` in | |
4150 | *GNU*) | |
4151 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4152 | *) | |
4153 | ac_count=0 | |
8d138742 | 4154 | $as_echo_n 0123456789 >"conftest.in" |
dd184caf | 4155 | while : |
4156 | do | |
4157 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4158 | mv "conftest.tmp" "conftest.in" | |
4159 | cp "conftest.in" "conftest.nl" | |
8d138742 | 4160 | $as_echo 'EGREP' >> "conftest.nl" |
dd184caf | 4161 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4162 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4163 | ac_count=`expr $ac_count + 1` | |
4164 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4165 | # Best one so far, save it but keep looking for a better one | |
4166 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4167 | ac_path_EGREP_max=$ac_count | |
d9898ee8 | 4168 | fi |
dd184caf | 4169 | # 10*(2^10) chars as input seems more than enough |
4170 | test $ac_count -gt 10 && break | |
4171 | done | |
4172 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4173 | esac | |
4174 | ||
8d138742 CE |
4175 | $ac_path_EGREP_found && break 3 |
4176 | done | |
dd184caf | 4177 | done |
4178 | done | |
dd184caf | 4179 | IFS=$as_save_IFS |
8d138742 CE |
4180 | if test -z "$ac_cv_path_EGREP"; then |
4181 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
4182 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
4183 | { (exit 1); exit 1; }; } | |
4184 | fi | |
4185 | else | |
4186 | ac_cv_path_EGREP=$EGREP | |
dd184caf | 4187 | fi |
4188 | ||
8d138742 | 4189 | fi |
dd184caf | 4190 | fi |
8d138742 CE |
4191 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
4192 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4193 | EGREP="$ac_cv_path_EGREP" | |
dd184caf | 4194 | |
8d138742 CE |
4195 | |
4196 | { $as_echo "$as_me:$LINENO: checking for fgrep" >&5 | |
4197 | $as_echo_n "checking for fgrep... " >&6; } | |
4198 | if test "${ac_cv_path_FGREP+set}" = set; then | |
4199 | $as_echo_n "(cached) " >&6 | |
dd184caf | 4200 | else |
8d138742 CE |
4201 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
4202 | then ac_cv_path_FGREP="$GREP -F" | |
4203 | else | |
4204 | if test -z "$FGREP"; then | |
4205 | ac_path_FGREP_found=false | |
4206 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4207 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4208 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4209 | do | |
4210 | IFS=$as_save_IFS | |
4211 | test -z "$as_dir" && as_dir=. | |
4212 | for ac_prog in fgrep; do | |
4213 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4214 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4215 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue | |
4216 | # Check for GNU ac_path_FGREP and select it if it is found. | |
4217 | # Check for GNU $ac_path_FGREP | |
4218 | case `"$ac_path_FGREP" --version 2>&1` in | |
4219 | *GNU*) | |
4220 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
4221 | *) | |
4222 | ac_count=0 | |
4223 | $as_echo_n 0123456789 >"conftest.in" | |
4224 | while : | |
4225 | do | |
4226 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4227 | mv "conftest.tmp" "conftest.in" | |
4228 | cp "conftest.in" "conftest.nl" | |
4229 | $as_echo 'FGREP' >> "conftest.nl" | |
4230 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4231 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4232 | ac_count=`expr $ac_count + 1` | |
4233 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
4234 | # Best one so far, save it but keep looking for a better one | |
4235 | ac_cv_path_FGREP="$ac_path_FGREP" | |
4236 | ac_path_FGREP_max=$ac_count | |
4237 | fi | |
4238 | # 10*(2^10) chars as input seems more than enough | |
4239 | test $ac_count -gt 10 && break | |
4240 | done | |
4241 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4242 | esac | |
dd184caf | 4243 | |
8d138742 CE |
4244 | $ac_path_FGREP_found && break 3 |
4245 | done | |
4246 | done | |
4247 | done | |
4248 | IFS=$as_save_IFS | |
4249 | if test -z "$ac_cv_path_FGREP"; then | |
4250 | { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
4251 | $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
4252 | { (exit 1); exit 1; }; } | |
4253 | fi | |
4254 | else | |
4255 | ac_cv_path_FGREP=$FGREP | |
4256 | fi | |
dd184caf | 4257 | |
4258 | fi | |
d9898ee8 | 4259 | fi |
8d138742 CE |
4260 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 |
4261 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
4262 | FGREP="$ac_cv_path_FGREP" | |
4263 | ||
4264 | ||
4265 | test -z "$GREP" && GREP=grep | |
4266 | ||
4267 | ||
4268 | ||
4269 | ||
4270 | ||
4271 | ||
4272 | ||
4273 | ||
4274 | ||
4275 | ||
4276 | ||
4277 | ||
4278 | ||
4279 | ||
4280 | ||
4281 | ||
d9898ee8 | 4282 | |
4283 | ||
4284 | ||
dd184caf | 4285 | # Check whether --with-gnu-ld was given. |
d9898ee8 | 4286 | if test "${with_gnu_ld+set}" = set; then |
dd184caf | 4287 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
d9898ee8 | 4288 | else |
4289 | with_gnu_ld=no | |
dd184caf | 4290 | fi |
4291 | ||
d9898ee8 | 4292 | ac_prog=ld |
4293 | if test "$GCC" = yes; then | |
4294 | # Check if gcc -print-prog-name=ld gives a path. | |
8d138742 CE |
4295 | { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
4296 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
d9898ee8 | 4297 | case $host in |
4298 | *-*-mingw*) | |
4299 | # gcc leaves a trailing carriage return which upsets mingw | |
4300 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
4301 | *) | |
4302 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
4303 | esac | |
4304 | case $ac_prog in | |
4305 | # Accept absolute paths. | |
4306 | [\\/]* | ?:[\\/]*) | |
4307 | re_direlt='/[^/][^/]*/\.\./' | |
4308 | # Canonicalize the pathname of ld | |
8d138742 CE |
4309 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
4310 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
4311 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
d9898ee8 | 4312 | done |
4313 | test -z "$LD" && LD="$ac_prog" | |
4314 | ;; | |
4315 | "") | |
4316 | # If it fails, then pretend we aren't using GCC. | |
4317 | ac_prog=ld | |
4318 | ;; | |
4319 | *) | |
4320 | # If it is relative, then search for the first ld in PATH. | |
4321 | with_gnu_ld=unknown | |
4322 | ;; | |
4323 | esac | |
4324 | elif test "$with_gnu_ld" = yes; then | |
8d138742 CE |
4325 | { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 |
4326 | $as_echo_n "checking for GNU ld... " >&6; } | |
d9898ee8 | 4327 | else |
8d138742 CE |
4328 | { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
4329 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
d9898ee8 | 4330 | fi |
4331 | if test "${lt_cv_path_LD+set}" = set; then | |
8d138742 | 4332 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4333 | else |
4334 | if test -z "$LD"; then | |
4335 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4336 | for ac_dir in $PATH; do | |
4337 | IFS="$lt_save_ifs" | |
4338 | test -z "$ac_dir" && ac_dir=. | |
4339 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
4340 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
4341 | # Check to see if the program is GNU ld. I'd rather use --version, | |
4342 | # but apparently some variants of GNU ld only accept -v. | |
4343 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
4344 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
4345 | *GNU* | *'with BFD'*) | |
4346 | test "$with_gnu_ld" != no && break | |
4347 | ;; | |
4348 | *) | |
4349 | test "$with_gnu_ld" != yes && break | |
4350 | ;; | |
4351 | esac | |
4352 | fi | |
4353 | done | |
4354 | IFS="$lt_save_ifs" | |
4355 | else | |
4356 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
4357 | fi | |
4358 | fi | |
4359 | ||
4360 | LD="$lt_cv_path_LD" | |
4361 | if test -n "$LD"; then | |
8d138742 CE |
4362 | { $as_echo "$as_me:$LINENO: result: $LD" >&5 |
4363 | $as_echo "$LD" >&6; } | |
d9898ee8 | 4364 | else |
8d138742 CE |
4365 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4366 | $as_echo "no" >&6; } | |
d9898ee8 | 4367 | fi |
8d138742 CE |
4368 | test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
4369 | $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
d9898ee8 | 4370 | { (exit 1); exit 1; }; } |
8d138742 CE |
4371 | { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
4372 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
d9898ee8 | 4373 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
8d138742 | 4374 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4375 | else |
4376 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
4377 | case `$LD -v 2>&1 </dev/null` in | |
4378 | *GNU* | *'with BFD'*) | |
4379 | lt_cv_prog_gnu_ld=yes | |
4380 | ;; | |
4381 | *) | |
4382 | lt_cv_prog_gnu_ld=no | |
4383 | ;; | |
4384 | esac | |
4385 | fi | |
8d138742 CE |
4386 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
4387 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
d9898ee8 | 4388 | with_gnu_ld=$lt_cv_prog_gnu_ld |
4389 | ||
4390 | ||
d9898ee8 | 4391 | |
8d138742 CE |
4392 | |
4393 | ||
4394 | ||
4395 | ||
4396 | ||
4397 | ||
4398 | { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
4399 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
d9898ee8 | 4400 | if test "${lt_cv_path_NM+set}" = set; then |
8d138742 | 4401 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4402 | else |
4403 | if test -n "$NM"; then | |
4404 | # Let the user override the test. | |
4405 | lt_cv_path_NM="$NM" | |
4406 | else | |
4407 | lt_nm_to_check="${ac_tool_prefix}nm" | |
4408 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
4409 | lt_nm_to_check="$lt_nm_to_check nm" | |
4410 | fi | |
4411 | for lt_tmp_nm in $lt_nm_to_check; do | |
4412 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4413 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
4414 | IFS="$lt_save_ifs" | |
4415 | test -z "$ac_dir" && ac_dir=. | |
4416 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
4417 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
4418 | # Check to see if the nm accepts a BSD-compat flag. | |
4419 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
4420 | # nm: unknown option "B" ignored | |
4421 | # Tru64's nm complains that /dev/null is an invalid object file | |
4422 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
4423 | */dev/null* | *'Invalid file or object type'*) | |
4424 | lt_cv_path_NM="$tmp_nm -B" | |
4425 | break | |
4426 | ;; | |
4427 | *) | |
4428 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
4429 | */dev/null*) | |
4430 | lt_cv_path_NM="$tmp_nm -p" | |
4431 | break | |
4432 | ;; | |
4433 | *) | |
4434 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
4435 | continue # so that we can try to find one that supports BSD flags | |
4436 | ;; | |
4437 | esac | |
4438 | ;; | |
4439 | esac | |
4440 | fi | |
4441 | done | |
4442 | IFS="$lt_save_ifs" | |
4443 | done | |
8d138742 | 4444 | : ${lt_cv_path_NM=no} |
d9898ee8 | 4445 | fi |
4446 | fi | |
8d138742 CE |
4447 | { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
4448 | $as_echo "$lt_cv_path_NM" >&6; } | |
4449 | if test "$lt_cv_path_NM" != "no"; then | |
4450 | NM="$lt_cv_path_NM" | |
4451 | else | |
4452 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
4453 | if test -n "$ac_tool_prefix"; then | |
4454 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
4455 | do | |
4456 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4457 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4458 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4459 | $as_echo_n "checking for $ac_word... " >&6; } | |
4460 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then | |
4461 | $as_echo_n "(cached) " >&6 | |
4462 | else | |
4463 | if test -n "$DUMPBIN"; then | |
4464 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
4465 | else | |
4466 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4467 | for as_dir in $PATH | |
4468 | do | |
4469 | IFS=$as_save_IFS | |
4470 | test -z "$as_dir" && as_dir=. | |
4471 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4472 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4473 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | |
4474 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4475 | break 2 | |
4476 | fi | |
4477 | done | |
4478 | done | |
4479 | IFS=$as_save_IFS | |
d9898ee8 | 4480 | |
8d138742 CE |
4481 | fi |
4482 | fi | |
4483 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
4484 | if test -n "$DUMPBIN"; then | |
4485 | { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5 | |
4486 | $as_echo "$DUMPBIN" >&6; } | |
d9898ee8 | 4487 | else |
8d138742 CE |
4488 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4489 | $as_echo "no" >&6; } | |
4490 | fi | |
d9898ee8 | 4491 | |
d9898ee8 | 4492 | |
8d138742 CE |
4493 | test -n "$DUMPBIN" && break |
4494 | done | |
4495 | fi | |
4496 | if test -z "$DUMPBIN"; then | |
4497 | ac_ct_DUMPBIN=$DUMPBIN | |
4498 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
4499 | do | |
4500 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4501 | set dummy $ac_prog; ac_word=$2 | |
4502 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4503 | $as_echo_n "checking for $ac_word... " >&6; } | |
4504 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then | |
4505 | $as_echo_n "(cached) " >&6 | |
4506 | else | |
4507 | if test -n "$ac_ct_DUMPBIN"; then | |
4508 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
4509 | else | |
4510 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4511 | for as_dir in $PATH | |
4512 | do | |
4513 | IFS=$as_save_IFS | |
4514 | test -z "$as_dir" && as_dir=. | |
4515 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4516 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4517 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | |
4518 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4519 | break 2 | |
4520 | fi | |
4521 | done | |
4522 | done | |
4523 | IFS=$as_save_IFS | |
d9898ee8 | 4524 | |
8d138742 CE |
4525 | fi |
4526 | fi | |
4527 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
4528 | if test -n "$ac_ct_DUMPBIN"; then | |
4529 | { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 | |
4530 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
4531 | else | |
4532 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
4533 | $as_echo "no" >&6; } | |
4534 | fi | |
d9898ee8 | 4535 | |
d9898ee8 | 4536 | |
8d138742 CE |
4537 | test -n "$ac_ct_DUMPBIN" && break |
4538 | done | |
4539 | ||
4540 | if test "x$ac_ct_DUMPBIN" = x; then | |
4541 | DUMPBIN=":" | |
ac40fd9e | 4542 | else |
8d138742 CE |
4543 | case $cross_compiling:$ac_tool_warned in |
4544 | yes:) | |
4545 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4546 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4547 | ac_tool_warned=yes ;; | |
4548 | esac | |
4549 | DUMPBIN=$ac_ct_DUMPBIN | |
ac40fd9e | 4550 | fi |
8d138742 | 4551 | fi |
d9898ee8 | 4552 | |
d9898ee8 | 4553 | |
8d138742 CE |
4554 | if test "$DUMPBIN" != ":"; then |
4555 | NM="$DUMPBIN" | |
d9898ee8 | 4556 | fi |
8d138742 CE |
4557 | fi |
4558 | test -z "$NM" && NM=nm | |
d9898ee8 | 4559 | |
d9898ee8 | 4560 | |
d9898ee8 | 4561 | |
d9898ee8 | 4562 | |
d9898ee8 | 4563 | |
d9898ee8 | 4564 | |
8d138742 CE |
4565 | { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 |
4566 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
4567 | if test "${lt_cv_nm_interface+set}" = set; then | |
4568 | $as_echo_n "(cached) " >&6 | |
4569 | else | |
4570 | lt_cv_nm_interface="BSD nm" | |
4571 | echo "int some_variable = 0;" > conftest.$ac_ext | |
4572 | (eval echo "\"\$as_me:4572: $ac_compile\"" >&5) | |
4573 | (eval "$ac_compile" 2>conftest.err) | |
4574 | cat conftest.err >&5 | |
4575 | (eval echo "\"\$as_me:4575: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
4576 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
4577 | cat conftest.err >&5 | |
4578 | (eval echo "\"\$as_me:4578: output\"" >&5) | |
4579 | cat conftest.out >&5 | |
4580 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
4581 | lt_cv_nm_interface="MS dumpbin" | |
d9898ee8 | 4582 | fi |
8d138742 CE |
4583 | rm -f conftest* |
4584 | fi | |
4585 | { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 | |
4586 | $as_echo "$lt_cv_nm_interface" >&6; } | |
d9898ee8 | 4587 | |
8d138742 CE |
4588 | # find the maximum length of command line arguments |
4589 | { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 | |
4590 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
4591 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then | |
4592 | $as_echo_n "(cached) " >&6 | |
4593 | else | |
4594 | i=0 | |
4595 | teststring="ABCD" | |
d9898ee8 | 4596 | |
8d138742 CE |
4597 | case $build_os in |
4598 | msdosdjgpp*) | |
4599 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
4600 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
4601 | # during glob expansion). Even if it were fixed, the result of this | |
4602 | # check would be larger than it should be. | |
4603 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
4604 | ;; | |
d9898ee8 | 4605 | |
8d138742 CE |
4606 | gnu*) |
4607 | # Under GNU Hurd, this test is not required because there is | |
4608 | # no limit to the length of command line arguments. | |
4609 | # Libtool will interpret -1 as no limit whatsoever | |
4610 | lt_cv_sys_max_cmd_len=-1; | |
4611 | ;; | |
d9898ee8 | 4612 | |
8d138742 CE |
4613 | cygwin* | mingw* | cegcc*) |
4614 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
4615 | # about 5 minutes as the teststring grows exponentially. | |
4616 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
4617 | # you end up with a "frozen" computer, even though with patience | |
4618 | # the test eventually succeeds (with a max line length of 256k). | |
4619 | # Instead, let's just punt: use the minimum linelength reported by | |
4620 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
4621 | lt_cv_sys_max_cmd_len=8192; | |
4622 | ;; | |
ac40fd9e | 4623 | |
8d138742 CE |
4624 | amigaos*) |
4625 | # On AmigaOS with pdksh, this test takes hours, literally. | |
4626 | # So we just punt and use a minimum line length of 8192. | |
4627 | lt_cv_sys_max_cmd_len=8192; | |
4628 | ;; | |
d9898ee8 | 4629 | |
8d138742 CE |
4630 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
4631 | # This has been around since 386BSD, at least. Likely further. | |
4632 | if test -x /sbin/sysctl; then | |
4633 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
4634 | elif test -x /usr/sbin/sysctl; then | |
4635 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
4636 | else | |
4637 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
4638 | fi | |
4639 | # And add a safety zone | |
4640 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4641 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
d9898ee8 | 4642 | ;; |
8d138742 CE |
4643 | |
4644 | interix*) | |
4645 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
4646 | lt_cv_sys_max_cmd_len=196608 | |
d9898ee8 | 4647 | ;; |
8d138742 CE |
4648 | |
4649 | osf*) | |
4650 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
4651 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
4652 | # nice to cause kernel panics so lets avoid the loop below. | |
4653 | # First set a reasonable default. | |
4654 | lt_cv_sys_max_cmd_len=16384 | |
4655 | # | |
4656 | if test -x /sbin/sysconfig; then | |
4657 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
4658 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
4659 | esac | |
4660 | fi | |
d9898ee8 | 4661 | ;; |
8d138742 CE |
4662 | sco3.2v5*) |
4663 | lt_cv_sys_max_cmd_len=102400 | |
d9898ee8 | 4664 | ;; |
8d138742 CE |
4665 | sysv5* | sco5v6* | sysv4.2uw2*) |
4666 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
4667 | if test -n "$kargmax"; then | |
4668 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
4669 | else | |
4670 | lt_cv_sys_max_cmd_len=32768 | |
4671 | fi | |
d9898ee8 | 4672 | ;; |
8d138742 CE |
4673 | *) |
4674 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
4675 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
4676 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4677 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4678 | else | |
4679 | # Make teststring a little bigger before we do anything with it. | |
4680 | # a 1K string should be a reasonable start. | |
4681 | for i in 1 2 3 4 5 6 7 8 ; do | |
4682 | teststring=$teststring$teststring | |
4683 | done | |
4684 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
4685 | # If test is not a shell built-in, we'll probably end up computing a | |
4686 | # maximum length that is only half of the actual maximum length, but | |
4687 | # we can't tell. | |
4688 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ | |
4689 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && | |
4690 | test $i != 17 # 1/2 MB should be enough | |
4691 | do | |
4692 | i=`expr $i + 1` | |
4693 | teststring=$teststring$teststring | |
4694 | done | |
4695 | # Only check the string length outside the loop. | |
4696 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
4697 | teststring= | |
4698 | # Add a significant safety factor because C++ compilers can tack on | |
4699 | # massive amounts of additional arguments before passing them to the | |
4700 | # linker. It appears as though 1/2 is a usable value. | |
4701 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
4702 | fi | |
d9898ee8 | 4703 | ;; |
4704 | esac | |
d9898ee8 | 4705 | |
4706 | fi | |
d9898ee8 | 4707 | |
8d138742 CE |
4708 | if test -n $lt_cv_sys_max_cmd_len ; then |
4709 | { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 | |
4710 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
4711 | else | |
4712 | { $as_echo "$as_me:$LINENO: result: none" >&5 | |
4713 | $as_echo "none" >&6; } | |
4714 | fi | |
4715 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
d9898ee8 | 4716 | |
d9898ee8 | 4717 | |
d9898ee8 | 4718 | |
d9898ee8 | 4719 | |
4720 | ||
8d138742 CE |
4721 | |
4722 | : ${CP="cp -f"} | |
4723 | : ${MV="mv -f"} | |
4724 | : ${RM="rm -f"} | |
4725 | ||
4726 | { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 | |
4727 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
4728 | # Try some XSI features | |
4729 | xsi_shell=no | |
4730 | ( _lt_dummy="a/b/c" | |
4731 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
4732 | = c,a/b,, \ | |
4733 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
4734 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
4735 | && xsi_shell=yes | |
4736 | { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5 | |
4737 | $as_echo "$xsi_shell" >&6; } | |
4738 | ||
4739 | ||
4740 | { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 | |
4741 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
4742 | lt_shell_append=no | |
4743 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
4744 | >/dev/null 2>&1 \ | |
4745 | && lt_shell_append=yes | |
4746 | { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5 | |
4747 | $as_echo "$lt_shell_append" >&6; } | |
4748 | ||
4749 | ||
4750 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
4751 | lt_unset=unset | |
4752 | else | |
4753 | lt_unset=false | |
dd184caf | 4754 | fi |
d9898ee8 | 4755 | |
d9898ee8 | 4756 | |
8d138742 CE |
4757 | |
4758 | ||
4759 | ||
4760 | # test EBCDIC or ASCII | |
4761 | case `echo X|tr X '\101'` in | |
4762 | A) # ASCII based system | |
4763 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
4764 | lt_SP2NL='tr \040 \012' | |
4765 | lt_NL2SP='tr \015\012 \040\040' | |
d9898ee8 | 4766 | ;; |
8d138742 CE |
4767 | *) # EBCDIC based system |
4768 | lt_SP2NL='tr \100 \n' | |
4769 | lt_NL2SP='tr \r\n \100\100' | |
d9898ee8 | 4770 | ;; |
8d138742 CE |
4771 | esac |
4772 | ||
d9898ee8 | 4773 | |
d9898ee8 | 4774 | |
d9898ee8 | 4775 | |
d9898ee8 | 4776 | |
d9898ee8 | 4777 | |
d9898ee8 | 4778 | |
dd184caf | 4779 | |
d9898ee8 | 4780 | |
8d138742 CE |
4781 | { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
4782 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
4783 | if test "${lt_cv_ld_reload_flag+set}" = set; then | |
4784 | $as_echo_n "(cached) " >&6 | |
4785 | else | |
4786 | lt_cv_ld_reload_flag='-r' | |
d9898ee8 | 4787 | fi |
8d138742 CE |
4788 | { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
4789 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
4790 | reload_flag=$lt_cv_ld_reload_flag | |
4791 | case $reload_flag in | |
4792 | "" | " "*) ;; | |
4793 | *) reload_flag=" $reload_flag" ;; | |
4794 | esac | |
4795 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4796 | case $host_os in | |
4797 | darwin*) | |
4798 | if test "$GCC" = yes; then | |
4799 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
4800 | else | |
4801 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4802 | fi | |
4803 | ;; | |
4804 | esac | |
d9898ee8 | 4805 | |
4806 | ||
d9898ee8 | 4807 | |
d9898ee8 | 4808 | |
4809 | ||
8d138742 CE |
4810 | |
4811 | ||
4812 | ||
4813 | ||
4814 | if test -n "$ac_tool_prefix"; then | |
4815 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
4816 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
4817 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4818 | $as_echo_n "checking for $ac_word... " >&6; } | |
4819 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then | |
4820 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 4821 | else |
8d138742 CE |
4822 | if test -n "$OBJDUMP"; then |
4823 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
d9898ee8 | 4824 | else |
8d138742 CE |
4825 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4826 | for as_dir in $PATH | |
4827 | do | |
4828 | IFS=$as_save_IFS | |
4829 | test -z "$as_dir" && as_dir=. | |
4830 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4831 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4832 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
4833 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4834 | break 2 | |
4835 | fi | |
4836 | done | |
4837 | done | |
4838 | IFS=$as_save_IFS | |
d9898ee8 | 4839 | |
8d138742 CE |
4840 | fi |
4841 | fi | |
4842 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
4843 | if test -n "$OBJDUMP"; then | |
4844 | { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5 | |
4845 | $as_echo "$OBJDUMP" >&6; } | |
4846 | else | |
4847 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
4848 | $as_echo "no" >&6; } | |
d9898ee8 | 4849 | fi |
dd184caf | 4850 | |
d9898ee8 | 4851 | |
d9898ee8 | 4852 | fi |
8d138742 CE |
4853 | if test -z "$ac_cv_prog_OBJDUMP"; then |
4854 | ac_ct_OBJDUMP=$OBJDUMP | |
4855 | # Extract the first word of "objdump", so it can be a program name with args. | |
4856 | set dummy objdump; ac_word=$2 | |
4857 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4858 | $as_echo_n "checking for $ac_word... " >&6; } | |
4859 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then | |
4860 | $as_echo_n "(cached) " >&6 | |
4861 | else | |
4862 | if test -n "$ac_ct_OBJDUMP"; then | |
4863 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
4864 | else | |
4865 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4866 | for as_dir in $PATH | |
4867 | do | |
4868 | IFS=$as_save_IFS | |
4869 | test -z "$as_dir" && as_dir=. | |
4870 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4871 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4872 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
4873 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4874 | break 2 | |
4875 | fi | |
d9898ee8 | 4876 | done |
8d138742 CE |
4877 | done |
4878 | IFS=$as_save_IFS | |
d9898ee8 | 4879 | |
4880 | fi | |
d9898ee8 | 4881 | fi |
8d138742 CE |
4882 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
4883 | if test -n "$ac_ct_OBJDUMP"; then | |
4884 | { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 | |
4885 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
d9898ee8 | 4886 | else |
8d138742 CE |
4887 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4888 | $as_echo "no" >&6; } | |
d9898ee8 | 4889 | fi |
dd184caf | 4890 | |
8d138742 CE |
4891 | if test "x$ac_ct_OBJDUMP" = x; then |
4892 | OBJDUMP="false" | |
4893 | else | |
4894 | case $cross_compiling:$ac_tool_warned in | |
4895 | yes:) | |
4896 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4897 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4898 | ac_tool_warned=yes ;; | |
dd184caf | 4899 | esac |
8d138742 CE |
4900 | OBJDUMP=$ac_ct_OBJDUMP |
4901 | fi | |
d9898ee8 | 4902 | else |
8d138742 | 4903 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
d9898ee8 | 4904 | fi |
dd184caf | 4905 | |
8d138742 | 4906 | test -z "$OBJDUMP" && OBJDUMP=objdump |
d9898ee8 | 4907 | |
d9898ee8 | 4908 | |
4909 | ||
d9898ee8 | 4910 | |
d9898ee8 | 4911 | |
d9898ee8 | 4912 | |
dd184caf | 4913 | |
d9898ee8 | 4914 | |
d9898ee8 | 4915 | |
8d138742 CE |
4916 | { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 |
4917 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
4918 | if test "${lt_cv_deplibs_check_method+set}" = set; then | |
4919 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 4920 | else |
8d138742 CE |
4921 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
4922 | lt_cv_file_magic_test_file= | |
4923 | lt_cv_deplibs_check_method='unknown' | |
4924 | # Need to set the preceding variable on all platforms that support | |
4925 | # interlibrary dependencies. | |
4926 | # 'none' -- dependencies not supported. | |
4927 | # `unknown' -- same as none, but documents that we really don't know. | |
4928 | # 'pass_all' -- all dependencies passed with no checks. | |
4929 | # 'test_compile' -- check by making test program. | |
4930 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
4931 | # which responds to the $file_magic_cmd with a given extended regex. | |
4932 | # If you have `file' or equivalent on your system and you're not sure | |
4933 | # whether `pass_all' will *always* work, you probably want this one. | |
d9898ee8 | 4934 | |
8d138742 CE |
4935 | case $host_os in |
4936 | aix[4-9]*) | |
4937 | lt_cv_deplibs_check_method=pass_all | |
4938 | ;; | |
d9898ee8 | 4939 | |
8d138742 CE |
4940 | beos*) |
4941 | lt_cv_deplibs_check_method=pass_all | |
4942 | ;; | |
d9898ee8 | 4943 | |
8d138742 CE |
4944 | bsdi[45]*) |
4945 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
4946 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
4947 | lt_cv_file_magic_test_file=/shlib/libc.so | |
4948 | ;; | |
d9898ee8 | 4949 | |
8d138742 CE |
4950 | cygwin*) |
4951 | # func_win32_libid is a shell function defined in ltmain.sh | |
4952 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
4953 | lt_cv_file_magic_cmd='func_win32_libid' | |
4954 | ;; | |
d9898ee8 | 4955 | |
8d138742 CE |
4956 | mingw* | pw32*) |
4957 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
4958 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
4959 | # unless we find 'file', for example because we are cross-compiling. | |
4960 | if ( file / ) >/dev/null 2>&1; then | |
4961 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
4962 | lt_cv_file_magic_cmd='func_win32_libid' | |
4963 | else | |
4964 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
4965 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
4966 | fi | |
4967 | ;; | |
d9898ee8 | 4968 | |
8d138742 CE |
4969 | cegcc) |
4970 | # use the weaker test based on 'objdump'. See mingw*. | |
4971 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
4972 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
4973 | ;; | |
d9898ee8 | 4974 | |
8d138742 CE |
4975 | darwin* | rhapsody*) |
4976 | lt_cv_deplibs_check_method=pass_all | |
4977 | ;; | |
dd184caf | 4978 | |
8d138742 CE |
4979 | freebsd* | dragonfly*) |
4980 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
4981 | case $host_cpu in | |
4982 | i*86 ) | |
4983 | # Not sure whether the presence of OpenBSD here was a mistake. | |
4984 | # Let's accept both of them until this is cleared up. | |
4985 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
4986 | lt_cv_file_magic_cmd=/usr/bin/file | |
4987 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
4988 | ;; | |
4989 | esac | |
4990 | else | |
4991 | lt_cv_deplibs_check_method=pass_all | |
4992 | fi | |
4993 | ;; | |
dd184caf | 4994 | |
8d138742 CE |
4995 | gnu*) |
4996 | lt_cv_deplibs_check_method=pass_all | |
4997 | ;; | |
d9898ee8 | 4998 | |
8d138742 CE |
4999 | hpux10.20* | hpux11*) |
5000 | lt_cv_file_magic_cmd=/usr/bin/file | |
5001 | case $host_cpu in | |
5002 | ia64*) | |
5003 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
5004 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
5005 | ;; | |
5006 | hppa*64*) | |
5007 | 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]' | |
5008 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
5009 | ;; | |
5010 | *) | |
5011 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
5012 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
5013 | ;; | |
5014 | esac | |
5015 | ;; | |
d9898ee8 | 5016 | |
8d138742 CE |
5017 | interix[3-9]*) |
5018 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
5019 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
5020 | ;; | |
d9898ee8 | 5021 | |
8d138742 CE |
5022 | irix5* | irix6* | nonstopux*) |
5023 | case $LD in | |
5024 | *-32|*"-32 ") libmagic=32-bit;; | |
5025 | *-n32|*"-n32 ") libmagic=N32;; | |
5026 | *-64|*"-64 ") libmagic=64-bit;; | |
5027 | *) libmagic=never-match;; | |
5028 | esac | |
5029 | lt_cv_deplibs_check_method=pass_all | |
5030 | ;; | |
d9898ee8 | 5031 | |
8d138742 CE |
5032 | # This must be Linux ELF. |
5033 | linux* | k*bsd*-gnu) | |
5034 | lt_cv_deplibs_check_method=pass_all | |
5035 | ;; | |
d9898ee8 | 5036 | |
8d138742 CE |
5037 | netbsd*) |
5038 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5039 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5040 | else | |
5041 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
5042 | fi | |
5043 | ;; | |
d9898ee8 | 5044 | |
8d138742 CE |
5045 | newos6*) |
5046 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
5047 | lt_cv_file_magic_cmd=/usr/bin/file | |
5048 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
5049 | ;; | |
d9898ee8 | 5050 | |
8d138742 CE |
5051 | *nto* | *qnx*) |
5052 | lt_cv_deplibs_check_method=pass_all | |
5053 | ;; | |
d9898ee8 | 5054 | |
8d138742 CE |
5055 | openbsd*) |
5056 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
5057 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
5058 | else | |
5059 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5060 | fi | |
5061 | ;; | |
d9898ee8 | 5062 | |
8d138742 CE |
5063 | osf3* | osf4* | osf5*) |
5064 | lt_cv_deplibs_check_method=pass_all | |
5065 | ;; | |
d9898ee8 | 5066 | |
8d138742 CE |
5067 | rdos*) |
5068 | lt_cv_deplibs_check_method=pass_all | |
5069 | ;; | |
d9898ee8 | 5070 | |
8d138742 CE |
5071 | solaris*) |
5072 | lt_cv_deplibs_check_method=pass_all | |
5073 | ;; | |
d9898ee8 | 5074 | |
8d138742 CE |
5075 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
5076 | lt_cv_deplibs_check_method=pass_all | |
5077 | ;; | |
d9898ee8 | 5078 | |
8d138742 CE |
5079 | sysv4 | sysv4.3*) |
5080 | case $host_vendor in | |
5081 | motorola) | |
5082 | 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]' | |
5083 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
5084 | ;; | |
5085 | ncr) | |
5086 | lt_cv_deplibs_check_method=pass_all | |
5087 | ;; | |
5088 | sequent) | |
5089 | lt_cv_file_magic_cmd='/bin/file' | |
5090 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
5091 | ;; | |
5092 | sni) | |
5093 | lt_cv_file_magic_cmd='/bin/file' | |
5094 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
5095 | lt_cv_file_magic_test_file=/lib/libc.so | |
5096 | ;; | |
5097 | siemens) | |
5098 | lt_cv_deplibs_check_method=pass_all | |
5099 | ;; | |
5100 | pc) | |
5101 | lt_cv_deplibs_check_method=pass_all | |
5102 | ;; | |
5103 | esac | |
5104 | ;; | |
5105 | ||
5106 | tpf*) | |
5107 | lt_cv_deplibs_check_method=pass_all | |
5108 | ;; | |
dd184caf | 5109 | esac |
d9898ee8 | 5110 | |
d9898ee8 | 5111 | fi |
8d138742 CE |
5112 | { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
5113 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
5114 | file_magic_cmd=$lt_cv_file_magic_cmd | |
5115 | deplibs_check_method=$lt_cv_deplibs_check_method | |
5116 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
dd184caf | 5117 | |
d9898ee8 | 5118 | |
d9898ee8 | 5119 | |
d9898ee8 | 5120 | |
5121 | ||
5122 | ||
8d138742 CE |
5123 | |
5124 | ||
5125 | ||
5126 | ||
5127 | ||
5128 | ||
5129 | if test -n "$ac_tool_prefix"; then | |
5130 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
5131 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
5132 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5133 | $as_echo_n "checking for $ac_word... " >&6; } | |
5134 | if test "${ac_cv_prog_AR+set}" = set; then | |
5135 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 5136 | else |
8d138742 CE |
5137 | if test -n "$AR"; then |
5138 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
d9898ee8 | 5139 | else |
8d138742 CE |
5140 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5141 | for as_dir in $PATH | |
5142 | do | |
5143 | IFS=$as_save_IFS | |
5144 | test -z "$as_dir" && as_dir=. | |
5145 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5146 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5147 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
5148 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5149 | break 2 | |
5150 | fi | |
5151 | done | |
5152 | done | |
5153 | IFS=$as_save_IFS | |
d9898ee8 | 5154 | |
8d138742 CE |
5155 | fi |
5156 | fi | |
5157 | AR=$ac_cv_prog_AR | |
5158 | if test -n "$AR"; then | |
5159 | { $as_echo "$as_me:$LINENO: result: $AR" >&5 | |
5160 | $as_echo "$AR" >&6; } | |
5161 | else | |
5162 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
5163 | $as_echo "no" >&6; } | |
d9898ee8 | 5164 | fi |
dd184caf | 5165 | |
d9898ee8 | 5166 | |
8d138742 CE |
5167 | fi |
5168 | if test -z "$ac_cv_prog_AR"; then | |
5169 | ac_ct_AR=$AR | |
5170 | # Extract the first word of "ar", so it can be a program name with args. | |
5171 | set dummy ar; ac_word=$2 | |
5172 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5173 | $as_echo_n "checking for $ac_word... " >&6; } | |
5174 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
5175 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 5176 | else |
8d138742 CE |
5177 | if test -n "$ac_ct_AR"; then |
5178 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
5179 | else | |
5180 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5181 | for as_dir in $PATH | |
5182 | do | |
5183 | IFS=$as_save_IFS | |
5184 | test -z "$as_dir" && as_dir=. | |
5185 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5186 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5187 | ac_cv_prog_ac_ct_AR="ar" | |
5188 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5189 | break 2 | |
5190 | fi | |
5191 | done | |
5192 | done | |
5193 | IFS=$as_save_IFS | |
d9898ee8 | 5194 | |
8d138742 CE |
5195 | fi |
5196 | fi | |
5197 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
5198 | if test -n "$ac_ct_AR"; then | |
5199 | { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
5200 | $as_echo "$ac_ct_AR" >&6; } | |
5201 | else | |
5202 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
5203 | $as_echo "no" >&6; } | |
d9898ee8 | 5204 | fi |
dd184caf | 5205 | |
8d138742 CE |
5206 | if test "x$ac_ct_AR" = x; then |
5207 | AR="false" | |
5208 | else | |
5209 | case $cross_compiling:$ac_tool_warned in | |
5210 | yes:) | |
5211 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5212 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5213 | ac_tool_warned=yes ;; | |
d9898ee8 | 5214 | esac |
8d138742 CE |
5215 | AR=$ac_ct_AR |
5216 | fi | |
d9898ee8 | 5217 | else |
8d138742 | 5218 | AR="$ac_cv_prog_AR" |
d9898ee8 | 5219 | fi |
d9898ee8 | 5220 | |
8d138742 CE |
5221 | test -z "$AR" && AR=ar |
5222 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
d9898ee8 | 5223 | |
d9898ee8 | 5224 | |
d9898ee8 | 5225 | |
8d138742 CE |
5226 | |
5227 | ||
5228 | ||
5229 | ||
5230 | ||
5231 | ||
5232 | ||
5233 | ||
5234 | if test -n "$ac_tool_prefix"; then | |
5235 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
5236 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
5237 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5238 | $as_echo_n "checking for $ac_word... " >&6; } | |
5239 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
5240 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 5241 | else |
8d138742 CE |
5242 | if test -n "$STRIP"; then |
5243 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
d9898ee8 | 5244 | else |
5245 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5246 | for as_dir in $PATH | |
5247 | do | |
5248 | IFS=$as_save_IFS | |
5249 | test -z "$as_dir" && as_dir=. | |
5250 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 5251 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
8d138742 CE |
5252 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
5253 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
d9898ee8 | 5254 | break 2 |
5255 | fi | |
5256 | done | |
5257 | done | |
dd184caf | 5258 | IFS=$as_save_IFS |
d9898ee8 | 5259 | |
5260 | fi | |
5261 | fi | |
8d138742 CE |
5262 | STRIP=$ac_cv_prog_STRIP |
5263 | if test -n "$STRIP"; then | |
5264 | { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 | |
5265 | $as_echo "$STRIP" >&6; } | |
d9898ee8 | 5266 | else |
8d138742 CE |
5267 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5268 | $as_echo "no" >&6; } | |
d9898ee8 | 5269 | fi |
5270 | ||
dd184caf | 5271 | |
d9898ee8 | 5272 | fi |
8d138742 CE |
5273 | if test -z "$ac_cv_prog_STRIP"; then |
5274 | ac_ct_STRIP=$STRIP | |
5275 | # Extract the first word of "strip", so it can be a program name with args. | |
5276 | set dummy strip; ac_word=$2 | |
5277 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5278 | $as_echo_n "checking for $ac_word... " >&6; } | |
5279 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
5280 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 5281 | else |
8d138742 CE |
5282 | if test -n "$ac_ct_STRIP"; then |
5283 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
d9898ee8 | 5284 | else |
5285 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5286 | for as_dir in $PATH | |
5287 | do | |
5288 | IFS=$as_save_IFS | |
5289 | test -z "$as_dir" && as_dir=. | |
5290 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 5291 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
8d138742 CE |
5292 | ac_cv_prog_ac_ct_STRIP="strip" |
5293 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
d9898ee8 | 5294 | break 2 |
5295 | fi | |
5296 | done | |
5297 | done | |
dd184caf | 5298 | IFS=$as_save_IFS |
d9898ee8 | 5299 | |
5300 | fi | |
5301 | fi | |
8d138742 CE |
5302 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
5303 | if test -n "$ac_ct_STRIP"; then | |
5304 | { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
5305 | $as_echo "$ac_ct_STRIP" >&6; } | |
d9898ee8 | 5306 | else |
8d138742 CE |
5307 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5308 | $as_echo "no" >&6; } | |
d9898ee8 | 5309 | fi |
5310 | ||
8d138742 CE |
5311 | if test "x$ac_ct_STRIP" = x; then |
5312 | STRIP=":" | |
dd184caf | 5313 | else |
5314 | case $cross_compiling:$ac_tool_warned in | |
5315 | yes:) | |
8d138742 CE |
5316 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
5317 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
dd184caf | 5318 | ac_tool_warned=yes ;; |
5319 | esac | |
8d138742 | 5320 | STRIP=$ac_ct_STRIP |
dd184caf | 5321 | fi |
8d138742 CE |
5322 | else |
5323 | STRIP="$ac_cv_prog_STRIP" | |
dd184caf | 5324 | fi |
d9898ee8 | 5325 | |
8d138742 | 5326 | test -z "$STRIP" && STRIP=: |
d9898ee8 | 5327 | |
d9898ee8 | 5328 | |
d9898ee8 | 5329 | |
dd184caf | 5330 | |
d9898ee8 | 5331 | |
d9898ee8 | 5332 | |
8d138742 CE |
5333 | if test -n "$ac_tool_prefix"; then |
5334 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5335 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5336 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5337 | $as_echo_n "checking for $ac_word... " >&6; } | |
5338 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
5339 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 5340 | else |
8d138742 CE |
5341 | if test -n "$RANLIB"; then |
5342 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
d9898ee8 | 5343 | else |
8d138742 CE |
5344 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5345 | for as_dir in $PATH | |
5346 | do | |
5347 | IFS=$as_save_IFS | |
5348 | test -z "$as_dir" && as_dir=. | |
5349 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5350 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5351 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
5352 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5353 | break 2 | |
5354 | fi | |
5355 | done | |
5356 | done | |
5357 | IFS=$as_save_IFS | |
dd184caf | 5358 | |
8d138742 CE |
5359 | fi |
5360 | fi | |
5361 | RANLIB=$ac_cv_prog_RANLIB | |
5362 | if test -n "$RANLIB"; then | |
5363 | { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
5364 | $as_echo "$RANLIB" >&6; } | |
d9898ee8 | 5365 | else |
8d138742 CE |
5366 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5367 | $as_echo "no" >&6; } | |
5368 | fi | |
d9898ee8 | 5369 | |
dd184caf | 5370 | |
d9898ee8 | 5371 | fi |
8d138742 CE |
5372 | if test -z "$ac_cv_prog_RANLIB"; then |
5373 | ac_ct_RANLIB=$RANLIB | |
5374 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5375 | set dummy ranlib; ac_word=$2 | |
5376 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5377 | $as_echo_n "checking for $ac_word... " >&6; } | |
5378 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
5379 | $as_echo_n "(cached) " >&6 | |
5380 | else | |
5381 | if test -n "$ac_ct_RANLIB"; then | |
5382 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5383 | else | |
5384 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5385 | for as_dir in $PATH | |
5386 | do | |
5387 | IFS=$as_save_IFS | |
5388 | test -z "$as_dir" && as_dir=. | |
5389 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5390 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5391 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
5392 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5393 | break 2 | |
5394 | fi | |
5395 | done | |
5396 | done | |
5397 | IFS=$as_save_IFS | |
dd184caf | 5398 | |
d9898ee8 | 5399 | fi |
8d138742 CE |
5400 | fi |
5401 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
5402 | if test -n "$ac_ct_RANLIB"; then | |
5403 | { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
5404 | $as_echo "$ac_ct_RANLIB" >&6; } | |
5405 | else | |
5406 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
5407 | $as_echo "no" >&6; } | |
dd184caf | 5408 | fi |
5409 | ||
8d138742 CE |
5410 | if test "x$ac_ct_RANLIB" = x; then |
5411 | RANLIB=":" | |
dd184caf | 5412 | else |
8d138742 CE |
5413 | case $cross_compiling:$ac_tool_warned in |
5414 | yes:) | |
5415 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5416 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5417 | ac_tool_warned=yes ;; | |
5418 | esac | |
5419 | RANLIB=$ac_ct_RANLIB | |
dd184caf | 5420 | fi |
5421 | else | |
8d138742 | 5422 | RANLIB="$ac_cv_prog_RANLIB" |
dd184caf | 5423 | fi |
d9898ee8 | 5424 | |
8d138742 | 5425 | test -z "$RANLIB" && RANLIB=: |
d9898ee8 | 5426 | |
d9898ee8 | 5427 | |
d9898ee8 | 5428 | |
d9898ee8 | 5429 | |
d9898ee8 | 5430 | |
d9898ee8 | 5431 | |
8d138742 CE |
5432 | # Determine commands to create old-style static archives. |
5433 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
5434 | old_postinstall_cmds='chmod 644 $oldlib' | |
5435 | old_postuninstall_cmds= | |
5436 | ||
5437 | if test -n "$RANLIB"; then | |
5438 | case $host_os in | |
5439 | openbsd*) | |
5440 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
5441 | ;; | |
5442 | *) | |
5443 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
5444 | ;; | |
5445 | esac | |
5446 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
d9898ee8 | 5447 | fi |
5448 | ||
5449 | ||
5450 | ||
5451 | ||
dd184caf | 5452 | |
d9898ee8 | 5453 | |
d9898ee8 | 5454 | |
dd184caf | 5455 | |
d9898ee8 | 5456 | |
d9898ee8 | 5457 | |
d9898ee8 | 5458 | |
d9898ee8 | 5459 | |
dd184caf | 5460 | |
d9898ee8 | 5461 | |
d9898ee8 | 5462 | |
dd184caf | 5463 | |
d9898ee8 | 5464 | |
d9898ee8 | 5465 | |
d9898ee8 | 5466 | |
d9898ee8 | 5467 | |
5468 | ||
d9898ee8 | 5469 | |
d9898ee8 | 5470 | |
dd184caf | 5471 | |
d9898ee8 | 5472 | |
d9898ee8 | 5473 | |
dd184caf | 5474 | |
d9898ee8 | 5475 | |
d9898ee8 | 5476 | |
5477 | ||
d9898ee8 | 5478 | |
d9898ee8 | 5479 | |
d9898ee8 | 5480 | |
d9898ee8 | 5481 | |
8d138742 CE |
5482 | # If no C compiler was specified, use CC. |
5483 | LTCC=${LTCC-"$CC"} | |
d9898ee8 | 5484 | |
8d138742 CE |
5485 | # If no C compiler flags were specified, use CFLAGS. |
5486 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
d9898ee8 | 5487 | |
8d138742 CE |
5488 | # Allow CC to be a program name with arguments. |
5489 | compiler=$CC | |
d9898ee8 | 5490 | |
ac40fd9e | 5491 | |
d9898ee8 | 5492 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
8d138742 CE |
5493 | { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
5494 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
d9898ee8 | 5495 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
8d138742 | 5496 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5497 | else |
5498 | ||
5499 | # These are sane defaults that work on at least a few old systems. | |
5500 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
5501 | ||
5502 | # Character class describing NM global symbol codes. | |
5503 | symcode='[BCDEGRST]' | |
5504 | ||
5505 | # Regexp to match symbols that can be accessed directly from C. | |
5506 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
5507 | ||
d9898ee8 | 5508 | # Define system-specific variables. |
5509 | case $host_os in | |
5510 | aix*) | |
5511 | symcode='[BCDT]' | |
5512 | ;; | |
8d138742 | 5513 | cygwin* | mingw* | pw32* | cegcc*) |
d9898ee8 | 5514 | symcode='[ABCDGISTW]' |
5515 | ;; | |
8d138742 | 5516 | hpux*) |
d9898ee8 | 5517 | if test "$host_cpu" = ia64; then |
5518 | symcode='[ABCDEGRST]' | |
5519 | fi | |
d9898ee8 | 5520 | ;; |
5521 | irix* | nonstopux*) | |
5522 | symcode='[BCDEGRST]' | |
5523 | ;; | |
5524 | osf*) | |
5525 | symcode='[BCDEGQRST]' | |
5526 | ;; | |
5527 | solaris*) | |
5528 | symcode='[BDRT]' | |
5529 | ;; | |
5530 | sco3.2v5*) | |
5531 | symcode='[DT]' | |
5532 | ;; | |
5533 | sysv4.2uw2*) | |
5534 | symcode='[DT]' | |
5535 | ;; | |
5536 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
5537 | symcode='[ABDT]' | |
5538 | ;; | |
5539 | sysv4) | |
5540 | symcode='[DFNSTU]' | |
5541 | ;; | |
5542 | esac | |
5543 | ||
8d138742 CE |
5544 | # If we're using GNU nm, then use its standard symbol codes. |
5545 | case `$NM -V 2>&1` in | |
5546 | *GNU* | *'with BFD'*) | |
5547 | symcode='[ABCDGIRSTW]' ;; | |
5548 | esac | |
5549 | ||
5550 | # Transform an extracted symbol line into a proper C declaration. | |
5551 | # Some systems (esp. on ia64) link data and code symbols differently, | |
5552 | # so use this general approach. | |
5553 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
5554 | ||
5555 | # Transform an extracted symbol line into symbol name and symbol address | |
5556 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
5557 | 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'" | |
5558 | ||
d9898ee8 | 5559 | # Handle CRLF in mingw tool chain |
5560 | opt_cr= | |
5561 | case $build_os in | |
5562 | mingw*) | |
8d138742 | 5563 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
d9898ee8 | 5564 | ;; |
5565 | esac | |
5566 | ||
8d138742 | 5567 | # Try without a prefix underscore, then with it. |
d9898ee8 | 5568 | for ac_symprfx in "" "_"; do |
5569 | ||
5570 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
5571 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
5572 | ||
5573 | # Write the raw and C identifiers. | |
8d138742 CE |
5574 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
5575 | # Fake it for dumpbin and say T for any non-static function | |
5576 | # and D for any global variable. | |
5577 | # Also find C++ and __fastcall symbols from MSVC++, | |
5578 | # which start with @ or ?. | |
5579 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
5580 | " {last_section=section; section=\$ 3};"\ | |
5581 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
5582 | " \$ 0!~/External *\|/{next};"\ | |
5583 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
5584 | " {if(hide[section]) next};"\ | |
5585 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
5586 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
5587 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
5588 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
5589 | " ' prfx=^$ac_symprfx" | |
5590 | else | |
5591 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
5592 | fi | |
d9898ee8 | 5593 | |
5594 | # Check to see that the pipe works correctly. | |
5595 | pipe_works=no | |
5596 | ||
5597 | rm -f conftest* | |
8d138742 | 5598 | cat > conftest.$ac_ext <<_LT_EOF |
d9898ee8 | 5599 | #ifdef __cplusplus |
5600 | extern "C" { | |
5601 | #endif | |
5602 | char nm_test_var; | |
8d138742 CE |
5603 | void nm_test_func(void); |
5604 | void nm_test_func(void){} | |
d9898ee8 | 5605 | #ifdef __cplusplus |
5606 | } | |
5607 | #endif | |
5608 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
8d138742 | 5609 | _LT_EOF |
d9898ee8 | 5610 | |
5611 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5612 | (eval $ac_compile) 2>&5 | |
5613 | ac_status=$? | |
8d138742 | 5614 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d9898ee8 | 5615 | (exit $ac_status); }; then |
5616 | # Now try to grab the symbols. | |
5617 | nlist=conftest.nm | |
5618 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 | |
5619 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | |
5620 | ac_status=$? | |
8d138742 | 5621 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d9898ee8 | 5622 | (exit $ac_status); } && test -s "$nlist"; then |
5623 | # Try sorting and uniquifying the output. | |
5624 | if sort "$nlist" | uniq > "$nlist"T; then | |
5625 | mv -f "$nlist"T "$nlist" | |
5626 | else | |
5627 | rm -f "$nlist"T | |
5628 | fi | |
5629 | ||
5630 | # Make sure that we snagged all the symbols we need. | |
8d138742 CE |
5631 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
5632 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
5633 | cat <<_LT_EOF > conftest.$ac_ext | |
d9898ee8 | 5634 | #ifdef __cplusplus |
5635 | extern "C" { | |
5636 | #endif | |
5637 | ||
8d138742 | 5638 | _LT_EOF |
d9898ee8 | 5639 | # Now generate the symbol file. |
8d138742 | 5640 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
d9898ee8 | 5641 | |
8d138742 | 5642 | cat <<_LT_EOF >> conftest.$ac_ext |
d9898ee8 | 5643 | |
8d138742 | 5644 | /* The mapping between symbol names and symbols. */ |
d9898ee8 | 5645 | const struct { |
5646 | const char *name; | |
8d138742 | 5647 | void *address; |
d9898ee8 | 5648 | } |
8d138742 | 5649 | lt__PROGRAM__LTX_preloaded_symbols[] = |
d9898ee8 | 5650 | { |
8d138742 CE |
5651 | { "@PROGRAM@", (void *) 0 }, |
5652 | _LT_EOF | |
5653 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
5654 | cat <<\_LT_EOF >> conftest.$ac_ext | |
5655 | {0, (void *) 0} | |
d9898ee8 | 5656 | }; |
5657 | ||
8d138742 CE |
5658 | /* This works around a problem in FreeBSD linker */ |
5659 | #ifdef FREEBSD_WORKAROUND | |
5660 | static const void *lt_preloaded_setup() { | |
5661 | return lt__PROGRAM__LTX_preloaded_symbols; | |
5662 | } | |
5663 | #endif | |
5664 | ||
d9898ee8 | 5665 | #ifdef __cplusplus |
5666 | } | |
5667 | #endif | |
8d138742 | 5668 | _LT_EOF |
d9898ee8 | 5669 | # Now try linking the two files. |
5670 | mv conftest.$ac_objext conftstm.$ac_objext | |
5671 | lt_save_LIBS="$LIBS" | |
5672 | lt_save_CFLAGS="$CFLAGS" | |
5673 | LIBS="conftstm.$ac_objext" | |
5674 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
5675 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5676 | (eval $ac_link) 2>&5 | |
5677 | ac_status=$? | |
8d138742 | 5678 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d9898ee8 | 5679 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
5680 | pipe_works=yes | |
5681 | fi | |
5682 | LIBS="$lt_save_LIBS" | |
5683 | CFLAGS="$lt_save_CFLAGS" | |
5684 | else | |
5685 | echo "cannot find nm_test_func in $nlist" >&5 | |
5686 | fi | |
5687 | else | |
5688 | echo "cannot find nm_test_var in $nlist" >&5 | |
5689 | fi | |
5690 | else | |
5691 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
5692 | fi | |
5693 | else | |
5694 | echo "$progname: failed program was:" >&5 | |
5695 | cat conftest.$ac_ext >&5 | |
5696 | fi | |
8d138742 | 5697 | rm -rf conftest* conftst* |
d9898ee8 | 5698 | |
5699 | # Do not use the global_symbol_pipe unless it works. | |
5700 | if test "$pipe_works" = yes; then | |
5701 | break | |
5702 | else | |
5703 | lt_cv_sys_global_symbol_pipe= | |
5704 | fi | |
5705 | done | |
5706 | ||
5707 | fi | |
5708 | ||
5709 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
5710 | lt_cv_sys_global_symbol_to_cdecl= | |
5711 | fi | |
5712 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
8d138742 CE |
5713 | { $as_echo "$as_me:$LINENO: result: failed" >&5 |
5714 | $as_echo "failed" >&6; } | |
d9898ee8 | 5715 | else |
8d138742 CE |
5716 | { $as_echo "$as_me:$LINENO: result: ok" >&5 |
5717 | $as_echo "ok" >&6; } | |
d9898ee8 | 5718 | fi |
5719 | ||
d9898ee8 | 5720 | |
5721 | ||
5722 | ||
5723 | ||
5724 | ||
d9898ee8 | 5725 | |
d9898ee8 | 5726 | |
d9898ee8 | 5727 | |
d9898ee8 | 5728 | |
d9898ee8 | 5729 | |
d9898ee8 | 5730 | |
d9898ee8 | 5731 | |
d9898ee8 | 5732 | |
d9898ee8 | 5733 | |
d9898ee8 | 5734 | |
dd184caf | 5735 | |
8d138742 CE |
5736 | |
5737 | ||
5738 | ||
5739 | ||
5740 | ||
5741 | ||
5742 | # Check whether --enable-libtool-lock was given. | |
5743 | if test "${enable_libtool_lock+set}" = set; then | |
5744 | enableval=$enable_libtool_lock; | |
d9898ee8 | 5745 | fi |
8d138742 CE |
5746 | |
5747 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
5748 | ||
5749 | # Some flags need to be propagated to the compiler or linker for good | |
5750 | # libtool support. | |
5751 | case $host in | |
5752 | ia64-*-hpux*) | |
5753 | # Find out which ABI we are using. | |
5754 | echo 'int i;' > conftest.$ac_ext | |
5755 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5756 | (eval $ac_compile) 2>&5 | |
5757 | ac_status=$? | |
5758 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5759 | (exit $ac_status); }; then | |
5760 | case `/usr/bin/file conftest.$ac_objext` in | |
5761 | *ELF-32*) | |
5762 | HPUX_IA64_MODE="32" | |
5763 | ;; | |
5764 | *ELF-64*) | |
5765 | HPUX_IA64_MODE="64" | |
5766 | ;; | |
5767 | esac | |
5768 | fi | |
5769 | rm -rf conftest* | |
5770 | ;; | |
5771 | *-*-irix6*) | |
5772 | # Find out which ABI we are using. | |
5773 | echo '#line 5773 "configure"' > conftest.$ac_ext | |
5774 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5775 | (eval $ac_compile) 2>&5 | |
5776 | ac_status=$? | |
5777 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5778 | (exit $ac_status); }; then | |
5779 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
5780 | case `/usr/bin/file conftest.$ac_objext` in | |
5781 | *32-bit*) | |
5782 | LD="${LD-ld} -melf32bsmip" | |
5783 | ;; | |
5784 | *N32*) | |
5785 | LD="${LD-ld} -melf32bmipn32" | |
5786 | ;; | |
5787 | *64-bit*) | |
5788 | LD="${LD-ld} -melf64bmip" | |
5789 | ;; | |
5790 | esac | |
5791 | else | |
5792 | case `/usr/bin/file conftest.$ac_objext` in | |
5793 | *32-bit*) | |
5794 | LD="${LD-ld} -32" | |
5795 | ;; | |
5796 | *N32*) | |
5797 | LD="${LD-ld} -n32" | |
5798 | ;; | |
5799 | *64-bit*) | |
5800 | LD="${LD-ld} -64" | |
5801 | ;; | |
5802 | esac | |
5803 | fi | |
5804 | fi | |
5805 | rm -rf conftest* | |
5806 | ;; | |
5807 | ||
5808 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | |
5809 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
5810 | # Find out which ABI we are using. | |
5811 | echo 'int i;' > conftest.$ac_ext | |
5812 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5813 | (eval $ac_compile) 2>&5 | |
5814 | ac_status=$? | |
5815 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5816 | (exit $ac_status); }; then | |
5817 | case `/usr/bin/file conftest.o` in | |
5818 | *32-bit*) | |
5819 | case $host in | |
5820 | x86_64-*kfreebsd*-gnu) | |
5821 | LD="${LD-ld} -m elf_i386_fbsd" | |
5822 | ;; | |
5823 | x86_64-*linux*) | |
5824 | LD="${LD-ld} -m elf_i386" | |
5825 | ;; | |
5826 | ppc64-*linux*|powerpc64-*linux*) | |
5827 | LD="${LD-ld} -m elf32ppclinux" | |
5828 | ;; | |
5829 | s390x-*linux*) | |
5830 | LD="${LD-ld} -m elf_s390" | |
5831 | ;; | |
5832 | sparc64-*linux*) | |
5833 | LD="${LD-ld} -m elf32_sparc" | |
5834 | ;; | |
5835 | esac | |
5836 | ;; | |
5837 | *64-bit*) | |
5838 | case $host in | |
5839 | x86_64-*kfreebsd*-gnu) | |
5840 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
5841 | ;; | |
5842 | x86_64-*linux*) | |
5843 | LD="${LD-ld} -m elf_x86_64" | |
5844 | ;; | |
5845 | ppc*-*linux*|powerpc*-*linux*) | |
5846 | LD="${LD-ld} -m elf64ppc" | |
5847 | ;; | |
5848 | s390*-*linux*|s390*-*tpf*) | |
5849 | LD="${LD-ld} -m elf64_s390" | |
5850 | ;; | |
5851 | sparc*-*linux*) | |
5852 | LD="${LD-ld} -m elf64_sparc" | |
5853 | ;; | |
5854 | esac | |
5855 | ;; | |
5856 | esac | |
5857 | fi | |
5858 | rm -rf conftest* | |
5859 | ;; | |
5860 | ||
5861 | *-*-sco3.2v5*) | |
5862 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
5863 | SAVE_CFLAGS="$CFLAGS" | |
5864 | CFLAGS="$CFLAGS -belf" | |
5865 | { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 | |
5866 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
5867 | if test "${lt_cv_cc_needs_belf+set}" = set; then | |
5868 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 5869 | else |
8d138742 CE |
5870 | ac_ext=c |
5871 | ac_cpp='$CPP $CPPFLAGS' | |
5872 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5873 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5874 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5875 | ||
5876 | cat >conftest.$ac_ext <<_ACEOF | |
5877 | /* confdefs.h. */ | |
5878 | _ACEOF | |
5879 | cat confdefs.h >>conftest.$ac_ext | |
5880 | cat >>conftest.$ac_ext <<_ACEOF | |
5881 | /* end confdefs.h. */ | |
5882 | ||
5883 | int | |
5884 | main () | |
5885 | { | |
5886 | ||
5887 | ; | |
5888 | return 0; | |
5889 | } | |
5890 | _ACEOF | |
5891 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5892 | if { (ac_try="$ac_link" | |
5893 | case "(($ac_try" in | |
5894 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5895 | *) ac_try_echo=$ac_try;; | |
5896 | esac | |
5897 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5898 | $as_echo "$ac_try_echo") >&5 | |
5899 | (eval "$ac_link") 2>conftest.er1 | |
5900 | ac_status=$? | |
5901 | grep -v '^ *+' conftest.er1 >conftest.err | |
5902 | rm -f conftest.er1 | |
5903 | cat conftest.err >&5 | |
5904 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5905 | (exit $ac_status); } && { | |
5906 | test -z "$ac_c_werror_flag" || | |
5907 | test ! -s conftest.err | |
5908 | } && test -s conftest$ac_exeext && { | |
5909 | test "$cross_compiling" = yes || | |
5910 | $as_test_x conftest$ac_exeext | |
5911 | }; then | |
5912 | lt_cv_cc_needs_belf=yes | |
5913 | else | |
5914 | $as_echo "$as_me: failed program was:" >&5 | |
5915 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5916 | ||
5917 | lt_cv_cc_needs_belf=no | |
5918 | fi | |
5919 | ||
5920 | rm -rf conftest.dSYM | |
5921 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
5922 | conftest$ac_exeext conftest.$ac_ext | |
5923 | ac_ext=c | |
5924 | ac_cpp='$CPP $CPPFLAGS' | |
5925 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5926 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5927 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5928 | ||
5929 | fi | |
5930 | { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 | |
5931 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
5932 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
5933 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
5934 | CFLAGS="$SAVE_CFLAGS" | |
5935 | fi | |
5936 | ;; | |
5937 | sparc*-*solaris*) | |
5938 | # Find out which ABI we are using. | |
5939 | echo 'int i;' > conftest.$ac_ext | |
5940 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5941 | (eval $ac_compile) 2>&5 | |
5942 | ac_status=$? | |
5943 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5944 | (exit $ac_status); }; then | |
5945 | case `/usr/bin/file conftest.o` in | |
5946 | *64-bit*) | |
5947 | case $lt_cv_prog_gnu_ld in | |
5948 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
5949 | *) | |
5950 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
5951 | LD="${LD-ld} -64" | |
5952 | fi | |
5953 | ;; | |
5954 | esac | |
5955 | ;; | |
5956 | esac | |
5957 | fi | |
5958 | rm -rf conftest* | |
5959 | ;; | |
5960 | esac | |
5961 | ||
5962 | need_locks="$enable_libtool_lock" | |
5963 | ||
5964 | ||
5965 | case $host_os in | |
5966 | rhapsody* | darwin*) | |
5967 | if test -n "$ac_tool_prefix"; then | |
5968 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
5969 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
5970 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5971 | $as_echo_n "checking for $ac_word... " >&6; } | |
5972 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then | |
5973 | $as_echo_n "(cached) " >&6 | |
5974 | else | |
5975 | if test -n "$DSYMUTIL"; then | |
5976 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
d9898ee8 | 5977 | else |
5978 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5979 | for as_dir in $PATH | |
5980 | do | |
5981 | IFS=$as_save_IFS | |
5982 | test -z "$as_dir" && as_dir=. | |
5983 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 5984 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
8d138742 CE |
5985 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
5986 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
d9898ee8 | 5987 | break 2 |
5988 | fi | |
5989 | done | |
5990 | done | |
dd184caf | 5991 | IFS=$as_save_IFS |
d9898ee8 | 5992 | |
d9898ee8 | 5993 | fi |
5994 | fi | |
8d138742 CE |
5995 | DSYMUTIL=$ac_cv_prog_DSYMUTIL |
5996 | if test -n "$DSYMUTIL"; then | |
5997 | { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 | |
5998 | $as_echo "$DSYMUTIL" >&6; } | |
d9898ee8 | 5999 | else |
8d138742 CE |
6000 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6001 | $as_echo "no" >&6; } | |
d9898ee8 | 6002 | fi |
6003 | ||
8d138742 CE |
6004 | |
6005 | fi | |
6006 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
6007 | ac_ct_DSYMUTIL=$DSYMUTIL | |
6008 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
6009 | set dummy dsymutil; ac_word=$2 | |
6010 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6011 | $as_echo_n "checking for $ac_word... " >&6; } | |
6012 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then | |
6013 | $as_echo_n "(cached) " >&6 | |
6014 | else | |
6015 | if test -n "$ac_ct_DSYMUTIL"; then | |
6016 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
6017 | else | |
6018 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6019 | for as_dir in $PATH | |
6020 | do | |
6021 | IFS=$as_save_IFS | |
6022 | test -z "$as_dir" && as_dir=. | |
6023 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6024 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6025 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
6026 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6027 | break 2 | |
6028 | fi | |
6029 | done | |
6030 | done | |
6031 | IFS=$as_save_IFS | |
6032 | ||
6033 | fi | |
6034 | fi | |
6035 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
6036 | if test -n "$ac_ct_DSYMUTIL"; then | |
6037 | { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 | |
6038 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
6039 | else | |
6040 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
6041 | $as_echo "no" >&6; } | |
6042 | fi | |
6043 | ||
6044 | if test "x$ac_ct_DSYMUTIL" = x; then | |
6045 | DSYMUTIL=":" | |
dd184caf | 6046 | else |
6047 | case $cross_compiling:$ac_tool_warned in | |
6048 | yes:) | |
8d138742 CE |
6049 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
6050 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
dd184caf | 6051 | ac_tool_warned=yes ;; |
6052 | esac | |
8d138742 | 6053 | DSYMUTIL=$ac_ct_DSYMUTIL |
dd184caf | 6054 | fi |
d9898ee8 | 6055 | else |
8d138742 | 6056 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
d9898ee8 | 6057 | fi |
6058 | ||
8d138742 CE |
6059 | if test -n "$ac_tool_prefix"; then |
6060 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
6061 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
6062 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6063 | $as_echo_n "checking for $ac_word... " >&6; } | |
6064 | if test "${ac_cv_prog_NMEDIT+set}" = set; then | |
6065 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 6066 | else |
8d138742 CE |
6067 | if test -n "$NMEDIT"; then |
6068 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
d9898ee8 | 6069 | else |
6070 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6071 | for as_dir in $PATH | |
6072 | do | |
6073 | IFS=$as_save_IFS | |
6074 | test -z "$as_dir" && as_dir=. | |
6075 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 6076 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
8d138742 CE |
6077 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
6078 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
d9898ee8 | 6079 | break 2 |
6080 | fi | |
6081 | done | |
6082 | done | |
dd184caf | 6083 | IFS=$as_save_IFS |
d9898ee8 | 6084 | |
6085 | fi | |
6086 | fi | |
8d138742 CE |
6087 | NMEDIT=$ac_cv_prog_NMEDIT |
6088 | if test -n "$NMEDIT"; then | |
6089 | { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 | |
6090 | $as_echo "$NMEDIT" >&6; } | |
d9898ee8 | 6091 | else |
8d138742 CE |
6092 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6093 | $as_echo "no" >&6; } | |
d9898ee8 | 6094 | fi |
6095 | ||
dd184caf | 6096 | |
d9898ee8 | 6097 | fi |
8d138742 CE |
6098 | if test -z "$ac_cv_prog_NMEDIT"; then |
6099 | ac_ct_NMEDIT=$NMEDIT | |
6100 | # Extract the first word of "nmedit", so it can be a program name with args. | |
6101 | set dummy nmedit; ac_word=$2 | |
6102 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6103 | $as_echo_n "checking for $ac_word... " >&6; } | |
6104 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then | |
6105 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 6106 | else |
8d138742 CE |
6107 | if test -n "$ac_ct_NMEDIT"; then |
6108 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
d9898ee8 | 6109 | else |
6110 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6111 | for as_dir in $PATH | |
6112 | do | |
6113 | IFS=$as_save_IFS | |
6114 | test -z "$as_dir" && as_dir=. | |
6115 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 6116 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
8d138742 CE |
6117 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
6118 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
d9898ee8 | 6119 | break 2 |
6120 | fi | |
6121 | done | |
6122 | done | |
dd184caf | 6123 | IFS=$as_save_IFS |
d9898ee8 | 6124 | |
d9898ee8 | 6125 | fi |
6126 | fi | |
8d138742 CE |
6127 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
6128 | if test -n "$ac_ct_NMEDIT"; then | |
6129 | { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 | |
6130 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
d9898ee8 | 6131 | else |
8d138742 CE |
6132 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6133 | $as_echo "no" >&6; } | |
d9898ee8 | 6134 | fi |
6135 | ||
8d138742 CE |
6136 | if test "x$ac_ct_NMEDIT" = x; then |
6137 | NMEDIT=":" | |
dd184caf | 6138 | else |
6139 | case $cross_compiling:$ac_tool_warned in | |
6140 | yes:) | |
8d138742 CE |
6141 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
6142 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
dd184caf | 6143 | ac_tool_warned=yes ;; |
6144 | esac | |
8d138742 | 6145 | NMEDIT=$ac_ct_NMEDIT |
dd184caf | 6146 | fi |
d9898ee8 | 6147 | else |
8d138742 | 6148 | NMEDIT="$ac_cv_prog_NMEDIT" |
d9898ee8 | 6149 | fi |
6150 | ||
8d138742 CE |
6151 | if test -n "$ac_tool_prefix"; then |
6152 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
6153 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
6154 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6155 | $as_echo_n "checking for $ac_word... " >&6; } | |
6156 | if test "${ac_cv_prog_LIPO+set}" = set; then | |
6157 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 6158 | else |
8d138742 CE |
6159 | if test -n "$LIPO"; then |
6160 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
d9898ee8 | 6161 | else |
6162 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6163 | for as_dir in $PATH | |
6164 | do | |
6165 | IFS=$as_save_IFS | |
6166 | test -z "$as_dir" && as_dir=. | |
6167 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 6168 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
8d138742 CE |
6169 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
6170 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
d9898ee8 | 6171 | break 2 |
6172 | fi | |
6173 | done | |
6174 | done | |
dd184caf | 6175 | IFS=$as_save_IFS |
d9898ee8 | 6176 | |
6177 | fi | |
6178 | fi | |
8d138742 CE |
6179 | LIPO=$ac_cv_prog_LIPO |
6180 | if test -n "$LIPO"; then | |
6181 | { $as_echo "$as_me:$LINENO: result: $LIPO" >&5 | |
6182 | $as_echo "$LIPO" >&6; } | |
d9898ee8 | 6183 | else |
8d138742 CE |
6184 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6185 | $as_echo "no" >&6; } | |
d9898ee8 | 6186 | fi |
6187 | ||
dd184caf | 6188 | |
d9898ee8 | 6189 | fi |
8d138742 CE |
6190 | if test -z "$ac_cv_prog_LIPO"; then |
6191 | ac_ct_LIPO=$LIPO | |
6192 | # Extract the first word of "lipo", so it can be a program name with args. | |
6193 | set dummy lipo; ac_word=$2 | |
6194 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6195 | $as_echo_n "checking for $ac_word... " >&6; } | |
6196 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then | |
6197 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 6198 | else |
8d138742 CE |
6199 | if test -n "$ac_ct_LIPO"; then |
6200 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
d9898ee8 | 6201 | else |
6202 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6203 | for as_dir in $PATH | |
6204 | do | |
6205 | IFS=$as_save_IFS | |
6206 | test -z "$as_dir" && as_dir=. | |
6207 | for ac_exec_ext in '' $ac_executable_extensions; do | |
dd184caf | 6208 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
8d138742 CE |
6209 | ac_cv_prog_ac_ct_LIPO="lipo" |
6210 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
d9898ee8 | 6211 | break 2 |
6212 | fi | |
6213 | done | |
6214 | done | |
dd184caf | 6215 | IFS=$as_save_IFS |
d9898ee8 | 6216 | |
d9898ee8 | 6217 | fi |
6218 | fi | |
8d138742 CE |
6219 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
6220 | if test -n "$ac_ct_LIPO"; then | |
6221 | { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 | |
6222 | $as_echo "$ac_ct_LIPO" >&6; } | |
d9898ee8 | 6223 | else |
8d138742 CE |
6224 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6225 | $as_echo "no" >&6; } | |
d9898ee8 | 6226 | fi |
6227 | ||
8d138742 CE |
6228 | if test "x$ac_ct_LIPO" = x; then |
6229 | LIPO=":" | |
dd184caf | 6230 | else |
6231 | case $cross_compiling:$ac_tool_warned in | |
6232 | yes:) | |
8d138742 CE |
6233 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
6234 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
dd184caf | 6235 | ac_tool_warned=yes ;; |
6236 | esac | |
8d138742 | 6237 | LIPO=$ac_ct_LIPO |
dd184caf | 6238 | fi |
d9898ee8 | 6239 | else |
8d138742 | 6240 | LIPO="$ac_cv_prog_LIPO" |
d9898ee8 | 6241 | fi |
6242 | ||
8d138742 CE |
6243 | if test -n "$ac_tool_prefix"; then |
6244 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
6245 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
6246 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6247 | $as_echo_n "checking for $ac_word... " >&6; } | |
6248 | if test "${ac_cv_prog_OTOOL+set}" = set; then | |
6249 | $as_echo_n "(cached) " >&6 | |
6250 | else | |
6251 | if test -n "$OTOOL"; then | |
6252 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
6253 | else | |
6254 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6255 | for as_dir in $PATH | |
6256 | do | |
6257 | IFS=$as_save_IFS | |
6258 | test -z "$as_dir" && as_dir=. | |
6259 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6260 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6261 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
6262 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6263 | break 2 | |
6264 | fi | |
6265 | done | |
6266 | done | |
6267 | IFS=$as_save_IFS | |
d9898ee8 | 6268 | |
8d138742 CE |
6269 | fi |
6270 | fi | |
6271 | OTOOL=$ac_cv_prog_OTOOL | |
6272 | if test -n "$OTOOL"; then | |
6273 | { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5 | |
6274 | $as_echo "$OTOOL" >&6; } | |
6275 | else | |
6276 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
6277 | $as_echo "no" >&6; } | |
6278 | fi | |
d9898ee8 | 6279 | |
d9898ee8 | 6280 | |
d9898ee8 | 6281 | fi |
8d138742 CE |
6282 | if test -z "$ac_cv_prog_OTOOL"; then |
6283 | ac_ct_OTOOL=$OTOOL | |
6284 | # Extract the first word of "otool", so it can be a program name with args. | |
6285 | set dummy otool; ac_word=$2 | |
6286 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6287 | $as_echo_n "checking for $ac_word... " >&6; } | |
6288 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then | |
6289 | $as_echo_n "(cached) " >&6 | |
6290 | else | |
6291 | if test -n "$ac_ct_OTOOL"; then | |
6292 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
6293 | else | |
6294 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6295 | for as_dir in $PATH | |
6296 | do | |
6297 | IFS=$as_save_IFS | |
6298 | test -z "$as_dir" && as_dir=. | |
6299 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6300 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6301 | ac_cv_prog_ac_ct_OTOOL="otool" | |
6302 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6303 | break 2 | |
6304 | fi | |
d9898ee8 | 6305 | done |
8d138742 CE |
6306 | done |
6307 | IFS=$as_save_IFS | |
d9898ee8 | 6308 | |
8d138742 CE |
6309 | fi |
6310 | fi | |
6311 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
6312 | if test -n "$ac_ct_OTOOL"; then | |
6313 | { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 | |
6314 | $as_echo "$ac_ct_OTOOL" >&6; } | |
d9898ee8 | 6315 | else |
8d138742 CE |
6316 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6317 | $as_echo "no" >&6; } | |
6318 | fi | |
d9898ee8 | 6319 | |
8d138742 CE |
6320 | if test "x$ac_ct_OTOOL" = x; then |
6321 | OTOOL=":" | |
6322 | else | |
6323 | case $cross_compiling:$ac_tool_warned in | |
6324 | yes:) | |
6325 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6326 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6327 | ac_tool_warned=yes ;; | |
d9898ee8 | 6328 | esac |
8d138742 CE |
6329 | OTOOL=$ac_ct_OTOOL |
6330 | fi | |
6331 | else | |
6332 | OTOOL="$ac_cv_prog_OTOOL" | |
d9898ee8 | 6333 | fi |
6334 | ||
8d138742 CE |
6335 | if test -n "$ac_tool_prefix"; then |
6336 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
6337 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
6338 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6339 | $as_echo_n "checking for $ac_word... " >&6; } | |
6340 | if test "${ac_cv_prog_OTOOL64+set}" = set; then | |
6341 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 6342 | else |
8d138742 CE |
6343 | if test -n "$OTOOL64"; then |
6344 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
6345 | else | |
6346 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6347 | for as_dir in $PATH | |
6348 | do | |
6349 | IFS=$as_save_IFS | |
6350 | test -z "$as_dir" && as_dir=. | |
6351 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6352 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6353 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
6354 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6355 | break 2 | |
6356 | fi | |
6357 | done | |
6358 | done | |
6359 | IFS=$as_save_IFS | |
d9898ee8 | 6360 | |
8d138742 CE |
6361 | fi |
6362 | fi | |
6363 | OTOOL64=$ac_cv_prog_OTOOL64 | |
6364 | if test -n "$OTOOL64"; then | |
6365 | { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5 | |
6366 | $as_echo "$OTOOL64" >&6; } | |
d9898ee8 | 6367 | else |
8d138742 CE |
6368 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6369 | $as_echo "no" >&6; } | |
6370 | fi | |
d9898ee8 | 6371 | |
d9898ee8 | 6372 | |
d9898ee8 | 6373 | fi |
8d138742 CE |
6374 | if test -z "$ac_cv_prog_OTOOL64"; then |
6375 | ac_ct_OTOOL64=$OTOOL64 | |
6376 | # Extract the first word of "otool64", so it can be a program name with args. | |
6377 | set dummy otool64; ac_word=$2 | |
6378 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6379 | $as_echo_n "checking for $ac_word... " >&6; } | |
6380 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then | |
6381 | $as_echo_n "(cached) " >&6 | |
6382 | else | |
6383 | if test -n "$ac_ct_OTOOL64"; then | |
6384 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
6385 | else | |
6386 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6387 | for as_dir in $PATH | |
6388 | do | |
6389 | IFS=$as_save_IFS | |
6390 | test -z "$as_dir" && as_dir=. | |
6391 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6392 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6393 | ac_cv_prog_ac_ct_OTOOL64="otool64" | |
6394 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6395 | break 2 | |
6396 | fi | |
6397 | done | |
6398 | done | |
6399 | IFS=$as_save_IFS | |
d9898ee8 | 6400 | |
8d138742 CE |
6401 | fi |
6402 | fi | |
6403 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
6404 | if test -n "$ac_ct_OTOOL64"; then | |
6405 | { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 | |
6406 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
d9898ee8 | 6407 | else |
8d138742 CE |
6408 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6409 | $as_echo "no" >&6; } | |
d9898ee8 | 6410 | fi |
6411 | ||
8d138742 CE |
6412 | if test "x$ac_ct_OTOOL64" = x; then |
6413 | OTOOL64=":" | |
d9898ee8 | 6414 | else |
8d138742 CE |
6415 | case $cross_compiling:$ac_tool_warned in |
6416 | yes:) | |
6417 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6418 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6419 | ac_tool_warned=yes ;; | |
6420 | esac | |
6421 | OTOOL64=$ac_ct_OTOOL64 | |
d9898ee8 | 6422 | fi |
8d138742 CE |
6423 | else |
6424 | OTOOL64="$ac_cv_prog_OTOOL64" | |
d9898ee8 | 6425 | fi |
6426 | ||
d9898ee8 | 6427 | |
d9898ee8 | 6428 | |
d9898ee8 | 6429 | |
d9898ee8 | 6430 | |
6431 | ||
dd184caf | 6432 | |
d9898ee8 | 6433 | |
d9898ee8 | 6434 | |
6435 | ||
d9898ee8 | 6436 | |
d9898ee8 | 6437 | |
d9898ee8 | 6438 | |
d9898ee8 | 6439 | |
6440 | ||
d9898ee8 | 6441 | |
d9898ee8 | 6442 | |
d9898ee8 | 6443 | |
6444 | ||
d9898ee8 | 6445 | |
d9898ee8 | 6446 | |
6447 | ||
6448 | ||
d9898ee8 | 6449 | |
d9898ee8 | 6450 | |
6451 | ||
8d138742 CE |
6452 | |
6453 | { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 | |
6454 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
6455 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then | |
6456 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 6457 | else |
8d138742 CE |
6458 | lt_cv_apple_cc_single_mod=no |
6459 | if test -z "${LT_MULTI_MODULE}"; then | |
6460 | # By default we will add the -single_module flag. You can override | |
6461 | # by either setting the environment variable LT_MULTI_MODULE | |
6462 | # non-empty at configure time, or by adding -multi_module to the | |
6463 | # link flags. | |
6464 | rm -rf libconftest.dylib* | |
6465 | echo "int foo(void){return 1;}" > conftest.c | |
6466 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
6467 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
6468 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
6469 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
6470 | _lt_result=$? | |
6471 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
6472 | lt_cv_apple_cc_single_mod=yes | |
6473 | else | |
6474 | cat conftest.err >&5 | |
6475 | fi | |
6476 | rm -rf libconftest.dylib* | |
6477 | rm -f conftest.* | |
6478 | fi | |
d9898ee8 | 6479 | fi |
8d138742 CE |
6480 | { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 |
6481 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
6482 | { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 | |
6483 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
6484 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then | |
6485 | $as_echo_n "(cached) " >&6 | |
6486 | else | |
6487 | lt_cv_ld_exported_symbols_list=no | |
6488 | save_LDFLAGS=$LDFLAGS | |
6489 | echo "_main" > conftest.sym | |
6490 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
6491 | cat >conftest.$ac_ext <<_ACEOF | |
6492 | /* confdefs.h. */ | |
6493 | _ACEOF | |
6494 | cat confdefs.h >>conftest.$ac_ext | |
6495 | cat >>conftest.$ac_ext <<_ACEOF | |
6496 | /* end confdefs.h. */ | |
d9898ee8 | 6497 | |
8d138742 CE |
6498 | int |
6499 | main () | |
6500 | { | |
6501 | ||
6502 | ; | |
6503 | return 0; | |
6504 | } | |
6505 | _ACEOF | |
6506 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6507 | if { (ac_try="$ac_link" | |
6508 | case "(($ac_try" in | |
6509 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6510 | *) ac_try_echo=$ac_try;; | |
6511 | esac | |
6512 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6513 | $as_echo "$ac_try_echo") >&5 | |
6514 | (eval "$ac_link") 2>conftest.er1 | |
6515 | ac_status=$? | |
6516 | grep -v '^ *+' conftest.er1 >conftest.err | |
6517 | rm -f conftest.er1 | |
6518 | cat conftest.err >&5 | |
6519 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6520 | (exit $ac_status); } && { | |
6521 | test -z "$ac_c_werror_flag" || | |
6522 | test ! -s conftest.err | |
6523 | } && test -s conftest$ac_exeext && { | |
6524 | test "$cross_compiling" = yes || | |
6525 | $as_test_x conftest$ac_exeext | |
6526 | }; then | |
6527 | lt_cv_ld_exported_symbols_list=yes | |
d9898ee8 | 6528 | else |
8d138742 CE |
6529 | $as_echo "$as_me: failed program was:" >&5 |
6530 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 6531 | |
8d138742 | 6532 | lt_cv_ld_exported_symbols_list=no |
d9898ee8 | 6533 | fi |
6534 | ||
8d138742 CE |
6535 | rm -rf conftest.dSYM |
6536 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
6537 | conftest$ac_exeext conftest.$ac_ext | |
6538 | LDFLAGS="$save_LDFLAGS" | |
d9898ee8 | 6539 | |
8d138742 CE |
6540 | fi |
6541 | { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 | |
6542 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
d9898ee8 | 6543 | case $host_os in |
8d138742 CE |
6544 | rhapsody* | darwin1.[012]) |
6545 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
6546 | darwin1.*) | |
6547 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
6548 | darwin*) # darwin 5.x on | |
6549 | # if running on 10.5 or later, the deployment target defaults | |
6550 | # to the OS version, if on x86, and 10.4, the deployment | |
6551 | # target defaults to 10.4. Don't you love it? | |
6552 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
6553 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
6554 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
6555 | 10.[012]*) | |
6556 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
6557 | 10.*) | |
6558 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
6559 | esac | |
6560 | ;; | |
6561 | esac | |
6562 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
6563 | _lt_dar_single_mod='$single_module' | |
6564 | fi | |
6565 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
6566 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
6567 | else | |
6568 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
6569 | fi | |
6570 | if test "$DSYMUTIL" != ":"; then | |
6571 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
6572 | else | |
6573 | _lt_dsymutil= | |
6574 | fi | |
6575 | ;; | |
6576 | esac | |
d9898ee8 | 6577 | |
8d138742 CE |
6578 | ac_ext=c |
6579 | ac_cpp='$CPP $CPPFLAGS' | |
6580 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6581 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6582 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6583 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
6584 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
6585 | # On Suns, sometimes $CPP names a directory. | |
6586 | if test -n "$CPP" && test -d "$CPP"; then | |
6587 | CPP= | |
6588 | fi | |
6589 | if test -z "$CPP"; then | |
6590 | if test "${ac_cv_prog_CPP+set}" = set; then | |
6591 | $as_echo_n "(cached) " >&6 | |
6592 | else | |
6593 | # Double quotes because CPP needs to be expanded | |
6594 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
6595 | do | |
6596 | ac_preproc_ok=false | |
6597 | for ac_c_preproc_warn_flag in '' yes | |
6598 | do | |
6599 | # Use a header file that comes with gcc, so configuring glibc | |
6600 | # with a fresh cross-compiler works. | |
6601 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6602 | # <limits.h> exists even on freestanding compilers. | |
6603 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6604 | # not just through cpp. "Syntax error" is here to catch this case. | |
6605 | cat >conftest.$ac_ext <<_ACEOF | |
6606 | /* confdefs.h. */ | |
6607 | _ACEOF | |
6608 | cat confdefs.h >>conftest.$ac_ext | |
6609 | cat >>conftest.$ac_ext <<_ACEOF | |
6610 | /* end confdefs.h. */ | |
6611 | #ifdef __STDC__ | |
6612 | # include <limits.h> | |
6613 | #else | |
6614 | # include <assert.h> | |
6615 | #endif | |
6616 | Syntax error | |
6617 | _ACEOF | |
6618 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
6619 | case "(($ac_try" in | |
6620 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6621 | *) ac_try_echo=$ac_try;; | |
6622 | esac | |
6623 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6624 | $as_echo "$ac_try_echo") >&5 | |
6625 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
6626 | ac_status=$? | |
6627 | grep -v '^ *+' conftest.er1 >conftest.err | |
6628 | rm -f conftest.er1 | |
6629 | cat conftest.err >&5 | |
6630 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6631 | (exit $ac_status); } >/dev/null && { | |
6632 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6633 | test ! -s conftest.err | |
6634 | }; then | |
6635 | : | |
6636 | else | |
6637 | $as_echo "$as_me: failed program was:" >&5 | |
6638 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 6639 | |
8d138742 CE |
6640 | # Broken: fails on valid input. |
6641 | continue | |
6642 | fi | |
d9898ee8 | 6643 | |
8d138742 | 6644 | rm -f conftest.err conftest.$ac_ext |
d9898ee8 | 6645 | |
8d138742 CE |
6646 | # OK, works on sane cases. Now check whether nonexistent headers |
6647 | # can be detected and how. | |
6648 | cat >conftest.$ac_ext <<_ACEOF | |
6649 | /* confdefs.h. */ | |
6650 | _ACEOF | |
6651 | cat confdefs.h >>conftest.$ac_ext | |
6652 | cat >>conftest.$ac_ext <<_ACEOF | |
6653 | /* end confdefs.h. */ | |
6654 | #include <ac_nonexistent.h> | |
6655 | _ACEOF | |
6656 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
6657 | case "(($ac_try" in | |
6658 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6659 | *) ac_try_echo=$ac_try;; | |
6660 | esac | |
6661 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6662 | $as_echo "$ac_try_echo") >&5 | |
6663 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
6664 | ac_status=$? | |
6665 | grep -v '^ *+' conftest.er1 >conftest.err | |
6666 | rm -f conftest.er1 | |
6667 | cat conftest.err >&5 | |
6668 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6669 | (exit $ac_status); } >/dev/null && { | |
6670 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6671 | test ! -s conftest.err | |
6672 | }; then | |
6673 | # Broken: success on invalid input. | |
6674 | continue | |
6675 | else | |
6676 | $as_echo "$as_me: failed program was:" >&5 | |
6677 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 6678 | |
8d138742 CE |
6679 | # Passes both tests. |
6680 | ac_preproc_ok=: | |
6681 | break | |
6682 | fi | |
d9898ee8 | 6683 | |
8d138742 | 6684 | rm -f conftest.err conftest.$ac_ext |
d9898ee8 | 6685 | |
8d138742 CE |
6686 | done |
6687 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6688 | rm -f conftest.err conftest.$ac_ext | |
6689 | if $ac_preproc_ok; then | |
6690 | break | |
6691 | fi | |
d9898ee8 | 6692 | |
8d138742 CE |
6693 | done |
6694 | ac_cv_prog_CPP=$CPP | |
d9898ee8 | 6695 | |
8d138742 CE |
6696 | fi |
6697 | CPP=$ac_cv_prog_CPP | |
6698 | else | |
6699 | ac_cv_prog_CPP=$CPP | |
6700 | fi | |
6701 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 | |
6702 | $as_echo "$CPP" >&6; } | |
6703 | ac_preproc_ok=false | |
6704 | for ac_c_preproc_warn_flag in '' yes | |
6705 | do | |
6706 | # Use a header file that comes with gcc, so configuring glibc | |
6707 | # with a fresh cross-compiler works. | |
6708 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6709 | # <limits.h> exists even on freestanding compilers. | |
6710 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6711 | # not just through cpp. "Syntax error" is here to catch this case. | |
6712 | cat >conftest.$ac_ext <<_ACEOF | |
6713 | /* confdefs.h. */ | |
6714 | _ACEOF | |
6715 | cat confdefs.h >>conftest.$ac_ext | |
6716 | cat >>conftest.$ac_ext <<_ACEOF | |
6717 | /* end confdefs.h. */ | |
6718 | #ifdef __STDC__ | |
6719 | # include <limits.h> | |
6720 | #else | |
6721 | # include <assert.h> | |
6722 | #endif | |
6723 | Syntax error | |
6724 | _ACEOF | |
6725 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
6726 | case "(($ac_try" in | |
6727 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6728 | *) ac_try_echo=$ac_try;; | |
6729 | esac | |
6730 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6731 | $as_echo "$ac_try_echo") >&5 | |
6732 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
6733 | ac_status=$? | |
6734 | grep -v '^ *+' conftest.er1 >conftest.err | |
6735 | rm -f conftest.er1 | |
6736 | cat conftest.err >&5 | |
6737 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6738 | (exit $ac_status); } >/dev/null && { | |
6739 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6740 | test ! -s conftest.err | |
6741 | }; then | |
6742 | : | |
6743 | else | |
6744 | $as_echo "$as_me: failed program was:" >&5 | |
6745 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 6746 | |
8d138742 CE |
6747 | # Broken: fails on valid input. |
6748 | continue | |
6749 | fi | |
d9898ee8 | 6750 | |
8d138742 | 6751 | rm -f conftest.err conftest.$ac_ext |
d9898ee8 | 6752 | |
8d138742 CE |
6753 | # OK, works on sane cases. Now check whether nonexistent headers |
6754 | # can be detected and how. | |
6755 | cat >conftest.$ac_ext <<_ACEOF | |
6756 | /* confdefs.h. */ | |
6757 | _ACEOF | |
6758 | cat confdefs.h >>conftest.$ac_ext | |
6759 | cat >>conftest.$ac_ext <<_ACEOF | |
6760 | /* end confdefs.h. */ | |
6761 | #include <ac_nonexistent.h> | |
6762 | _ACEOF | |
6763 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
6764 | case "(($ac_try" in | |
6765 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6766 | *) ac_try_echo=$ac_try;; | |
6767 | esac | |
6768 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6769 | $as_echo "$ac_try_echo") >&5 | |
6770 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
6771 | ac_status=$? | |
6772 | grep -v '^ *+' conftest.er1 >conftest.err | |
6773 | rm -f conftest.er1 | |
6774 | cat conftest.err >&5 | |
6775 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6776 | (exit $ac_status); } >/dev/null && { | |
6777 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6778 | test ! -s conftest.err | |
6779 | }; then | |
6780 | # Broken: success on invalid input. | |
6781 | continue | |
6782 | else | |
6783 | $as_echo "$as_me: failed program was:" >&5 | |
6784 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 6785 | |
8d138742 CE |
6786 | # Passes both tests. |
6787 | ac_preproc_ok=: | |
6788 | break | |
6789 | fi | |
ac40fd9e | 6790 | |
8d138742 | 6791 | rm -f conftest.err conftest.$ac_ext |
d9898ee8 | 6792 | |
8d138742 CE |
6793 | done |
6794 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6795 | rm -f conftest.err conftest.$ac_ext | |
6796 | if $ac_preproc_ok; then | |
6797 | : | |
6798 | else | |
6799 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
6800 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
6801 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
6802 | See \`config.log' for more details." >&5 | |
6803 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
6804 | See \`config.log' for more details." >&2;} | |
6805 | { (exit 1); exit 1; }; }; } | |
6806 | fi | |
d9898ee8 | 6807 | |
8d138742 CE |
6808 | ac_ext=c |
6809 | ac_cpp='$CPP $CPPFLAGS' | |
6810 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6811 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6812 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 6813 | |
d9898ee8 | 6814 | |
8d138742 CE |
6815 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
6816 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
6817 | if test "${ac_cv_header_stdc+set}" = set; then | |
6818 | $as_echo_n "(cached) " >&6 | |
6819 | else | |
6820 | cat >conftest.$ac_ext <<_ACEOF | |
6821 | /* confdefs.h. */ | |
6822 | _ACEOF | |
6823 | cat confdefs.h >>conftest.$ac_ext | |
6824 | cat >>conftest.$ac_ext <<_ACEOF | |
6825 | /* end confdefs.h. */ | |
6826 | #include <stdlib.h> | |
6827 | #include <stdarg.h> | |
6828 | #include <string.h> | |
6829 | #include <float.h> | |
d9898ee8 | 6830 | |
8d138742 CE |
6831 | int |
6832 | main () | |
6833 | { | |
d9898ee8 | 6834 | |
8d138742 CE |
6835 | ; |
6836 | return 0; | |
6837 | } | |
6838 | _ACEOF | |
6839 | rm -f conftest.$ac_objext | |
6840 | if { (ac_try="$ac_compile" | |
6841 | case "(($ac_try" in | |
6842 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6843 | *) ac_try_echo=$ac_try;; | |
6844 | esac | |
6845 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6846 | $as_echo "$ac_try_echo") >&5 | |
6847 | (eval "$ac_compile") 2>conftest.er1 | |
6848 | ac_status=$? | |
6849 | grep -v '^ *+' conftest.er1 >conftest.err | |
6850 | rm -f conftest.er1 | |
6851 | cat conftest.err >&5 | |
6852 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6853 | (exit $ac_status); } && { | |
6854 | test -z "$ac_c_werror_flag" || | |
6855 | test ! -s conftest.err | |
6856 | } && test -s conftest.$ac_objext; then | |
6857 | ac_cv_header_stdc=yes | |
6858 | else | |
6859 | $as_echo "$as_me: failed program was:" >&5 | |
6860 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 6861 | |
8d138742 CE |
6862 | ac_cv_header_stdc=no |
6863 | fi | |
d9898ee8 | 6864 | |
8d138742 | 6865 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 6866 | |
8d138742 CE |
6867 | if test $ac_cv_header_stdc = yes; then |
6868 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
6869 | cat >conftest.$ac_ext <<_ACEOF | |
6870 | /* confdefs.h. */ | |
6871 | _ACEOF | |
6872 | cat confdefs.h >>conftest.$ac_ext | |
6873 | cat >>conftest.$ac_ext <<_ACEOF | |
6874 | /* end confdefs.h. */ | |
6875 | #include <string.h> | |
d9898ee8 | 6876 | |
8d138742 CE |
6877 | _ACEOF |
6878 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6879 | $EGREP "memchr" >/dev/null 2>&1; then | |
6880 | : | |
d9898ee8 | 6881 | else |
8d138742 CE |
6882 | ac_cv_header_stdc=no |
6883 | fi | |
6884 | rm -f conftest* | |
d9898ee8 | 6885 | |
6886 | fi | |
d9898ee8 | 6887 | |
8d138742 CE |
6888 | if test $ac_cv_header_stdc = yes; then |
6889 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
6890 | cat >conftest.$ac_ext <<_ACEOF | |
6891 | /* confdefs.h. */ | |
6892 | _ACEOF | |
6893 | cat confdefs.h >>conftest.$ac_ext | |
6894 | cat >>conftest.$ac_ext <<_ACEOF | |
6895 | /* end confdefs.h. */ | |
6896 | #include <stdlib.h> | |
6897 | ||
6898 | _ACEOF | |
6899 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6900 | $EGREP "free" >/dev/null 2>&1; then | |
6901 | : | |
d9898ee8 | 6902 | else |
8d138742 | 6903 | ac_cv_header_stdc=no |
d9898ee8 | 6904 | fi |
8d138742 | 6905 | rm -f conftest* |
d9898ee8 | 6906 | |
6907 | fi | |
d9898ee8 | 6908 | |
8d138742 CE |
6909 | if test $ac_cv_header_stdc = yes; then |
6910 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
6911 | if test "$cross_compiling" = yes; then | |
6912 | : | |
d9898ee8 | 6913 | else |
8d138742 CE |
6914 | cat >conftest.$ac_ext <<_ACEOF |
6915 | /* confdefs.h. */ | |
6916 | _ACEOF | |
6917 | cat confdefs.h >>conftest.$ac_ext | |
6918 | cat >>conftest.$ac_ext <<_ACEOF | |
6919 | /* end confdefs.h. */ | |
6920 | #include <ctype.h> | |
6921 | #include <stdlib.h> | |
6922 | #if ((' ' & 0x0FF) == 0x020) | |
6923 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
6924 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
6925 | #else | |
6926 | # define ISLOWER(c) \ | |
6927 | (('a' <= (c) && (c) <= 'i') \ | |
6928 | || ('j' <= (c) && (c) <= 'r') \ | |
6929 | || ('s' <= (c) && (c) <= 'z')) | |
6930 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
6931 | #endif | |
d9898ee8 | 6932 | |
8d138742 CE |
6933 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
6934 | int | |
6935 | main () | |
6936 | { | |
6937 | int i; | |
6938 | for (i = 0; i < 256; i++) | |
6939 | if (XOR (islower (i), ISLOWER (i)) | |
6940 | || toupper (i) != TOUPPER (i)) | |
6941 | return 2; | |
6942 | return 0; | |
6943 | } | |
6944 | _ACEOF | |
6945 | rm -f conftest$ac_exeext | |
6946 | if { (ac_try="$ac_link" | |
6947 | case "(($ac_try" in | |
6948 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6949 | *) ac_try_echo=$ac_try;; | |
6950 | esac | |
6951 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6952 | $as_echo "$ac_try_echo") >&5 | |
6953 | (eval "$ac_link") 2>&5 | |
6954 | ac_status=$? | |
6955 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6956 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6957 | { (case "(($ac_try" in | |
6958 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6959 | *) ac_try_echo=$ac_try;; | |
6960 | esac | |
6961 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6962 | $as_echo "$ac_try_echo") >&5 | |
6963 | (eval "$ac_try") 2>&5 | |
6964 | ac_status=$? | |
6965 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6966 | (exit $ac_status); }; }; then | |
6967 | : | |
d9898ee8 | 6968 | else |
8d138742 CE |
6969 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
6970 | $as_echo "$as_me: failed program was:" >&5 | |
6971 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6972 | ||
6973 | ( exit $ac_status ) | |
6974 | ac_cv_header_stdc=no | |
6975 | fi | |
6976 | rm -rf conftest.dSYM | |
6977 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
d9898ee8 | 6978 | fi |
6979 | ||
6980 | ||
8d138742 CE |
6981 | fi |
6982 | fi | |
6983 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
6984 | $as_echo "$ac_cv_header_stdc" >&6; } | |
6985 | if test $ac_cv_header_stdc = yes; then | |
d9898ee8 | 6986 | |
8d138742 CE |
6987 | cat >>confdefs.h <<\_ACEOF |
6988 | #define STDC_HEADERS 1 | |
6989 | _ACEOF | |
d9898ee8 | 6990 | |
6991 | fi | |
d9898ee8 | 6992 | |
8d138742 | 6993 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
d9898ee8 | 6994 | |
d9898ee8 | 6995 | |
d9898ee8 | 6996 | |
d9898ee8 | 6997 | |
d9898ee8 | 6998 | |
d9898ee8 | 6999 | |
d9898ee8 | 7000 | |
d9898ee8 | 7001 | |
d9898ee8 | 7002 | |
8d138742 CE |
7003 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
7004 | inttypes.h stdint.h unistd.h | |
7005 | do | |
7006 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7007 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7008 | $as_echo_n "checking for $ac_header... " >&6; } | |
7009 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
7010 | $as_echo_n "(cached) " >&6 | |
7011 | else | |
7012 | cat >conftest.$ac_ext <<_ACEOF | |
7013 | /* confdefs.h. */ | |
7014 | _ACEOF | |
7015 | cat confdefs.h >>conftest.$ac_ext | |
7016 | cat >>conftest.$ac_ext <<_ACEOF | |
7017 | /* end confdefs.h. */ | |
7018 | $ac_includes_default | |
d9898ee8 | 7019 | |
8d138742 CE |
7020 | #include <$ac_header> |
7021 | _ACEOF | |
7022 | rm -f conftest.$ac_objext | |
7023 | if { (ac_try="$ac_compile" | |
7024 | case "(($ac_try" in | |
7025 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7026 | *) ac_try_echo=$ac_try;; | |
7027 | esac | |
7028 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7029 | $as_echo "$ac_try_echo") >&5 | |
7030 | (eval "$ac_compile") 2>conftest.er1 | |
7031 | ac_status=$? | |
7032 | grep -v '^ *+' conftest.er1 >conftest.err | |
7033 | rm -f conftest.er1 | |
7034 | cat conftest.err >&5 | |
7035 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7036 | (exit $ac_status); } && { | |
7037 | test -z "$ac_c_werror_flag" || | |
7038 | test ! -s conftest.err | |
7039 | } && test -s conftest.$ac_objext; then | |
7040 | eval "$as_ac_Header=yes" | |
7041 | else | |
7042 | $as_echo "$as_me: failed program was:" >&5 | |
7043 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 7044 | |
8d138742 CE |
7045 | eval "$as_ac_Header=no" |
7046 | fi | |
d9898ee8 | 7047 | |
8d138742 CE |
7048 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7049 | fi | |
7050 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
7051 | $as_echo "$as_val"'` | |
7052 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7053 | $as_echo "$ac_res" >&6; } | |
7054 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
7055 | $as_echo "$as_val"'` | |
7056 | if test "x$as_val" = x""yes; then | |
7057 | cat >>confdefs.h <<_ACEOF | |
7058 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7059 | _ACEOF | |
d9898ee8 | 7060 | |
8d138742 | 7061 | fi |
d9898ee8 | 7062 | |
8d138742 | 7063 | done |
d9898ee8 | 7064 | |
d9898ee8 | 7065 | |
d9898ee8 | 7066 | |
8d138742 CE |
7067 | for ac_header in dlfcn.h |
7068 | do | |
7069 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7070 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7071 | $as_echo_n "checking for $ac_header... " >&6; } | |
7072 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
7073 | $as_echo_n "(cached) " >&6 | |
7074 | else | |
7075 | cat >conftest.$ac_ext <<_ACEOF | |
7076 | /* confdefs.h. */ | |
7077 | _ACEOF | |
7078 | cat confdefs.h >>conftest.$ac_ext | |
7079 | cat >>conftest.$ac_ext <<_ACEOF | |
7080 | /* end confdefs.h. */ | |
7081 | $ac_includes_default | |
d9898ee8 | 7082 | |
8d138742 CE |
7083 | #include <$ac_header> |
7084 | _ACEOF | |
7085 | rm -f conftest.$ac_objext | |
7086 | if { (ac_try="$ac_compile" | |
7087 | case "(($ac_try" in | |
7088 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7089 | *) ac_try_echo=$ac_try;; | |
7090 | esac | |
7091 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7092 | $as_echo "$ac_try_echo") >&5 | |
7093 | (eval "$ac_compile") 2>conftest.er1 | |
7094 | ac_status=$? | |
7095 | grep -v '^ *+' conftest.er1 >conftest.err | |
7096 | rm -f conftest.er1 | |
7097 | cat conftest.err >&5 | |
7098 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7099 | (exit $ac_status); } && { | |
7100 | test -z "$ac_c_werror_flag" || | |
7101 | test ! -s conftest.err | |
7102 | } && test -s conftest.$ac_objext; then | |
7103 | eval "$as_ac_Header=yes" | |
7104 | else | |
7105 | $as_echo "$as_me: failed program was:" >&5 | |
7106 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 7107 | |
8d138742 CE |
7108 | eval "$as_ac_Header=no" |
7109 | fi | |
d9898ee8 | 7110 | |
8d138742 CE |
7111 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7112 | fi | |
7113 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
7114 | $as_echo "$as_val"'` | |
7115 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7116 | $as_echo "$ac_res" >&6; } | |
7117 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
7118 | $as_echo "$as_val"'` | |
7119 | if test "x$as_val" = x""yes; then | |
7120 | cat >>confdefs.h <<_ACEOF | |
7121 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7122 | _ACEOF | |
d9898ee8 | 7123 | |
8d138742 | 7124 | fi |
d9898ee8 | 7125 | |
8d138742 | 7126 | done |
d9898ee8 | 7127 | |
d9898ee8 | 7128 | |
d9898ee8 | 7129 | |
8d138742 CE |
7130 | # Set options |
7131 | ||
7132 | ||
7133 | ||
7134 | ||
7135 | enable_win32_dll=no | |
d9898ee8 | 7136 | |
8d138742 CE |
7137 | |
7138 | # Check whether --enable-shared was given. | |
7139 | if test "${enable_shared+set}" = set; then | |
7140 | enableval=$enable_shared; p=${PACKAGE-default} | |
7141 | case $enableval in | |
7142 | yes) enable_shared=yes ;; | |
7143 | no) enable_shared=no ;; | |
d9898ee8 | 7144 | *) |
8d138742 CE |
7145 | enable_shared=no |
7146 | # Look at the argument we got. We use all the common list separators. | |
7147 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7148 | for pkg in $enableval; do | |
7149 | IFS="$lt_save_ifs" | |
7150 | if test "X$pkg" = "X$p"; then | |
7151 | enable_shared=yes | |
7152 | fi | |
7153 | done | |
7154 | IFS="$lt_save_ifs" | |
d9898ee8 | 7155 | ;; |
7156 | esac | |
8d138742 CE |
7157 | else |
7158 | enable_shared=yes | |
7159 | fi | |
d9898ee8 | 7160 | |
d9898ee8 | 7161 | |
d9898ee8 | 7162 | |
d9898ee8 | 7163 | |
d9898ee8 | 7164 | |
d9898ee8 | 7165 | |
d9898ee8 | 7166 | |
d9898ee8 | 7167 | |
d9898ee8 | 7168 | |
8d138742 CE |
7169 | # Check whether --enable-static was given. |
7170 | if test "${enable_static+set}" = set; then | |
7171 | enableval=$enable_static; p=${PACKAGE-default} | |
7172 | case $enableval in | |
7173 | yes) enable_static=yes ;; | |
7174 | no) enable_static=no ;; | |
7175 | *) | |
7176 | enable_static=no | |
7177 | # Look at the argument we got. We use all the common list separators. | |
7178 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7179 | for pkg in $enableval; do | |
7180 | IFS="$lt_save_ifs" | |
7181 | if test "X$pkg" = "X$p"; then | |
7182 | enable_static=yes | |
7183 | fi | |
7184 | done | |
7185 | IFS="$lt_save_ifs" | |
7186 | ;; | |
7187 | esac | |
d9898ee8 | 7188 | else |
8d138742 CE |
7189 | enable_static=yes |
7190 | fi | |
7191 | ||
d9898ee8 | 7192 | |
dd184caf | 7193 | |
dd184caf | 7194 | |
d9898ee8 | 7195 | |
d9898ee8 | 7196 | |
d9898ee8 | 7197 | |
d9898ee8 | 7198 | |
d9898ee8 | 7199 | |
dd184caf | 7200 | |
8d138742 CE |
7201 | # Check whether --with-pic was given. |
7202 | if test "${with_pic+set}" = set; then | |
7203 | withval=$with_pic; pic_mode="$withval" | |
7204 | else | |
7205 | pic_mode=default | |
d9898ee8 | 7206 | fi |
dd184caf | 7207 | |
d9898ee8 | 7208 | |
8d138742 | 7209 | test -z "$pic_mode" && pic_mode=default |
d9898ee8 | 7210 | |
d9898ee8 | 7211 | |
d9898ee8 | 7212 | |
d9898ee8 | 7213 | |
d9898ee8 | 7214 | |
d9898ee8 | 7215 | |
d9898ee8 | 7216 | |
8d138742 CE |
7217 | # Check whether --enable-fast-install was given. |
7218 | if test "${enable_fast_install+set}" = set; then | |
7219 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
7220 | case $enableval in | |
7221 | yes) enable_fast_install=yes ;; | |
7222 | no) enable_fast_install=no ;; | |
7223 | *) | |
7224 | enable_fast_install=no | |
7225 | # Look at the argument we got. We use all the common list separators. | |
7226 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7227 | for pkg in $enableval; do | |
7228 | IFS="$lt_save_ifs" | |
7229 | if test "X$pkg" = "X$p"; then | |
7230 | enable_fast_install=yes | |
7231 | fi | |
7232 | done | |
7233 | IFS="$lt_save_ifs" | |
d9898ee8 | 7234 | ;; |
8d138742 CE |
7235 | esac |
7236 | else | |
7237 | enable_fast_install=yes | |
7238 | fi | |
d9898ee8 | 7239 | |
d9898ee8 | 7240 | |
d9898ee8 | 7241 | |
d9898ee8 | 7242 | |
d9898ee8 | 7243 | |
d9898ee8 | 7244 | |
d9898ee8 | 7245 | |
d9898ee8 | 7246 | |
d9898ee8 | 7247 | |
d9898ee8 | 7248 | |
d9898ee8 | 7249 | |
8d138742 CE |
7250 | # This can be used to rebuild libtool when needed |
7251 | LIBTOOL_DEPS="$ltmain" | |
d9898ee8 | 7252 | |
8d138742 CE |
7253 | # Always use our own libtool. |
7254 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
d9898ee8 | 7255 | |
d9898ee8 | 7256 | |
d9898ee8 | 7257 | |
d9898ee8 | 7258 | |
d9898ee8 | 7259 | |
d9898ee8 | 7260 | |
d9898ee8 | 7261 | |
d9898ee8 | 7262 | |
d9898ee8 | 7263 | |
d9898ee8 | 7264 | |
d9898ee8 | 7265 | |
d9898ee8 | 7266 | |
d9898ee8 | 7267 | |
d9898ee8 | 7268 | |
d9898ee8 | 7269 | |
d9898ee8 | 7270 | |
d9898ee8 | 7271 | |
d9898ee8 | 7272 | |
d9898ee8 | 7273 | |
d9898ee8 | 7274 | |
d9898ee8 | 7275 | |
d9898ee8 | 7276 | |
ac40fd9e | 7277 | |
d9898ee8 | 7278 | |
d9898ee8 | 7279 | |
8d138742 | 7280 | test -z "$LN_S" && LN_S="ln -s" |
d9898ee8 | 7281 | |
d9898ee8 | 7282 | |
d9898ee8 | 7283 | |
d9898ee8 | 7284 | |
d9898ee8 | 7285 | |
d9898ee8 | 7286 | |
d9898ee8 | 7287 | |
d9898ee8 | 7288 | |
d9898ee8 | 7289 | |
d9898ee8 | 7290 | |
ac40fd9e | 7291 | |
d9898ee8 | 7292 | |
d9898ee8 | 7293 | |
d9898ee8 | 7294 | |
8d138742 CE |
7295 | if test -n "${ZSH_VERSION+set}" ; then |
7296 | setopt NO_GLOB_SUBST | |
7297 | fi | |
d9898ee8 | 7298 | |
8d138742 CE |
7299 | { $as_echo "$as_me:$LINENO: checking for objdir" >&5 |
7300 | $as_echo_n "checking for objdir... " >&6; } | |
7301 | if test "${lt_cv_objdir+set}" = set; then | |
7302 | $as_echo_n "(cached) " >&6 | |
7303 | else | |
7304 | rm -f .libs 2>/dev/null | |
7305 | mkdir .libs 2>/dev/null | |
7306 | if test -d .libs; then | |
7307 | lt_cv_objdir=.libs | |
7308 | else | |
7309 | # MS-DOS does not allow filenames that begin with a dot. | |
7310 | lt_cv_objdir=_libs | |
7311 | fi | |
7312 | rmdir .libs 2>/dev/null | |
7313 | fi | |
7314 | { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 | |
7315 | $as_echo "$lt_cv_objdir" >&6; } | |
7316 | objdir=$lt_cv_objdir | |
d9898ee8 | 7317 | |
d9898ee8 | 7318 | |
d9898ee8 | 7319 | |
d9898ee8 | 7320 | |
d9898ee8 | 7321 | |
8d138742 CE |
7322 | cat >>confdefs.h <<_ACEOF |
7323 | #define LT_OBJDIR "$lt_cv_objdir/" | |
7324 | _ACEOF | |
d9898ee8 | 7325 | |
d9898ee8 | 7326 | |
d9898ee8 | 7327 | |
d9898ee8 | 7328 | |
d9898ee8 | 7329 | |
d9898ee8 | 7330 | |
d9898ee8 | 7331 | |
d9898ee8 | 7332 | |
d9898ee8 | 7333 | |
ac40fd9e | 7334 | |
d9898ee8 | 7335 | |
d9898ee8 | 7336 | |
d9898ee8 | 7337 | |
d9898ee8 | 7338 | |
d9898ee8 | 7339 | |
d9898ee8 | 7340 | |
8d138742 CE |
7341 | |
7342 | case $host_os in | |
7343 | aix3*) | |
7344 | # AIX sometimes has problems with the GCC collect2 program. For some | |
7345 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
7346 | # vanish in a puff of smoke. | |
7347 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
7348 | COLLECT_NAMES= | |
7349 | export COLLECT_NAMES | |
7350 | fi | |
d9898ee8 | 7351 | ;; |
7352 | esac | |
d9898ee8 | 7353 | |
8d138742 CE |
7354 | # Sed substitution that helps us do robust quoting. It backslashifies |
7355 | # metacharacters that are still active within double-quoted strings. | |
7356 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
d9898ee8 | 7357 | |
8d138742 CE |
7358 | # Same as above, but do not quote variable references. |
7359 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
d9898ee8 | 7360 | |
8d138742 CE |
7361 | # Sed substitution to delay expansion of an escaped shell variable in a |
7362 | # double_quote_subst'ed string. | |
7363 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
d9898ee8 | 7364 | |
8d138742 CE |
7365 | # Sed substitution to delay expansion of an escaped single quote. |
7366 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
d9898ee8 | 7367 | |
8d138742 CE |
7368 | # Sed substitution to avoid accidental globbing in evaled expressions |
7369 | no_glob_subst='s/\*/\\\*/g' | |
d9898ee8 | 7370 | |
8d138742 CE |
7371 | # Global variables: |
7372 | ofile=libtool | |
7373 | can_build_shared=yes | |
d9898ee8 | 7374 | |
8d138742 CE |
7375 | # All known linkers require a `.a' archive for static linking (except MSVC, |
7376 | # which needs '.lib'). | |
7377 | libext=a | |
d9898ee8 | 7378 | |
8d138742 | 7379 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
d9898ee8 | 7380 | |
8d138742 CE |
7381 | old_CC="$CC" |
7382 | old_CFLAGS="$CFLAGS" | |
d9898ee8 | 7383 | |
8d138742 CE |
7384 | # Set sane defaults for various variables |
7385 | test -z "$CC" && CC=cc | |
7386 | test -z "$LTCC" && LTCC=$CC | |
7387 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
7388 | test -z "$LD" && LD=ld | |
7389 | test -z "$ac_objext" && ac_objext=o | |
d9898ee8 | 7390 | |
8d138742 CE |
7391 | for cc_temp in $compiler""; do |
7392 | case $cc_temp in | |
7393 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
7394 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
7395 | \-*) ;; | |
7396 | *) break;; | |
7397 | esac | |
7398 | done | |
7399 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
d9898ee8 | 7400 | |
dd184caf | 7401 | |
8d138742 CE |
7402 | # Only perform the check for file, if the check method requires it |
7403 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
7404 | case $deplibs_check_method in | |
7405 | file_magic*) | |
7406 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
7407 | { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 | |
7408 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
7409 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
7410 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 7411 | else |
8d138742 CE |
7412 | case $MAGIC_CMD in |
7413 | [\\/*] | ?:[\\/]*) | |
7414 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7415 | ;; | |
7416 | *) | |
7417 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7418 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7419 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7420 | for ac_dir in $ac_dummy; do | |
7421 | IFS="$lt_save_ifs" | |
7422 | test -z "$ac_dir" && ac_dir=. | |
7423 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
7424 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
7425 | if test -n "$file_magic_test_file"; then | |
7426 | case $deplibs_check_method in | |
7427 | "file_magic "*) | |
7428 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7429 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7430 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7431 | $EGREP "$file_magic_regex" > /dev/null; then | |
7432 | : | |
7433 | else | |
7434 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 7435 | |
8d138742 CE |
7436 | *** Warning: the command libtool uses to detect shared libraries, |
7437 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7438 | *** The result is that libtool may fail to recognize shared libraries | |
7439 | *** as such. This will affect the creation of libtool libraries that | |
7440 | *** depend on shared libraries, but programs linked with such libtool | |
7441 | *** libraries will work regardless of this problem. Nevertheless, you | |
7442 | *** may want to report the problem to your system manager and/or to | |
7443 | *** bug-libtool@gnu.org | |
d9898ee8 | 7444 | |
8d138742 CE |
7445 | _LT_EOF |
7446 | fi ;; | |
7447 | esac | |
7448 | fi | |
7449 | break | |
7450 | fi | |
7451 | done | |
7452 | IFS="$lt_save_ifs" | |
7453 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7454 | ;; | |
7455 | esac | |
d9898ee8 | 7456 | fi |
7457 | ||
8d138742 CE |
7458 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7459 | if test -n "$MAGIC_CMD"; then | |
7460 | { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
7461 | $as_echo "$MAGIC_CMD" >&6; } | |
d9898ee8 | 7462 | else |
8d138742 CE |
7463 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
7464 | $as_echo "no" >&6; } | |
7465 | fi | |
d9898ee8 | 7466 | |
d9898ee8 | 7467 | |
d9898ee8 | 7468 | |
d9898ee8 | 7469 | |
d9898ee8 | 7470 | |
8d138742 CE |
7471 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
7472 | if test -n "$ac_tool_prefix"; then | |
7473 | { $as_echo "$as_me:$LINENO: checking for file" >&5 | |
7474 | $as_echo_n "checking for file... " >&6; } | |
7475 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
7476 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 7477 | else |
8d138742 CE |
7478 | case $MAGIC_CMD in |
7479 | [\\/*] | ?:[\\/]*) | |
7480 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7481 | ;; | |
7482 | *) | |
7483 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7484 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7485 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7486 | for ac_dir in $ac_dummy; do | |
7487 | IFS="$lt_save_ifs" | |
7488 | test -z "$ac_dir" && ac_dir=. | |
7489 | if test -f $ac_dir/file; then | |
7490 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
7491 | if test -n "$file_magic_test_file"; then | |
7492 | case $deplibs_check_method in | |
7493 | "file_magic "*) | |
7494 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7495 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7496 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7497 | $EGREP "$file_magic_regex" > /dev/null; then | |
7498 | : | |
7499 | else | |
7500 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 7501 | |
8d138742 CE |
7502 | *** Warning: the command libtool uses to detect shared libraries, |
7503 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7504 | *** The result is that libtool may fail to recognize shared libraries | |
7505 | *** as such. This will affect the creation of libtool libraries that | |
7506 | *** depend on shared libraries, but programs linked with such libtool | |
7507 | *** libraries will work regardless of this problem. Nevertheless, you | |
7508 | *** may want to report the problem to your system manager and/or to | |
7509 | *** bug-libtool@gnu.org | |
dd184caf | 7510 | |
8d138742 CE |
7511 | _LT_EOF |
7512 | fi ;; | |
7513 | esac | |
7514 | fi | |
7515 | break | |
7516 | fi | |
7517 | done | |
7518 | IFS="$lt_save_ifs" | |
7519 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7520 | ;; | |
7521 | esac | |
d9898ee8 | 7522 | fi |
d9898ee8 | 7523 | |
8d138742 CE |
7524 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7525 | if test -n "$MAGIC_CMD"; then | |
7526 | { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
7527 | $as_echo "$MAGIC_CMD" >&6; } | |
d9898ee8 | 7528 | else |
8d138742 CE |
7529 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
7530 | $as_echo "no" >&6; } | |
d9898ee8 | 7531 | fi |
dd184caf | 7532 | |
8d138742 CE |
7533 | |
7534 | else | |
7535 | MAGIC_CMD=: | |
7536 | fi | |
d9898ee8 | 7537 | fi |
d9898ee8 | 7538 | |
8d138742 CE |
7539 | fi |
7540 | ;; | |
7541 | esac | |
d9898ee8 | 7542 | |
8d138742 | 7543 | # Use C for the default configuration in the libtool script |
d9898ee8 | 7544 | |
8d138742 CE |
7545 | lt_save_CC="$CC" |
7546 | ac_ext=c | |
7547 | ac_cpp='$CPP $CPPFLAGS' | |
7548 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7549 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7550 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 7551 | |
d9898ee8 | 7552 | |
8d138742 CE |
7553 | # Source file extension for C test sources. |
7554 | ac_ext=c | |
d9898ee8 | 7555 | |
8d138742 CE |
7556 | # Object file extension for compiled C test sources. |
7557 | objext=o | |
7558 | objext=$objext | |
dd184caf | 7559 | |
8d138742 CE |
7560 | # Code to be used in simple compile tests |
7561 | lt_simple_compile_test_code="int some_variable = 0;" | |
d9898ee8 | 7562 | |
8d138742 CE |
7563 | # Code to be used in simple link tests |
7564 | lt_simple_link_test_code='int main(){return(0);}' | |
d9898ee8 | 7565 | |
dd184caf | 7566 | |
d9898ee8 | 7567 | |
d9898ee8 | 7568 | |
dd184caf | 7569 | |
d9898ee8 | 7570 | |
d9898ee8 | 7571 | |
8d138742 CE |
7572 | # If no C compiler was specified, use CC. |
7573 | LTCC=${LTCC-"$CC"} | |
dd184caf | 7574 | |
8d138742 CE |
7575 | # If no C compiler flags were specified, use CFLAGS. |
7576 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
d9898ee8 | 7577 | |
8d138742 CE |
7578 | # Allow CC to be a program name with arguments. |
7579 | compiler=$CC | |
d9898ee8 | 7580 | |
8d138742 CE |
7581 | # Save the default compiler, since it gets overwritten when the other |
7582 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
7583 | compiler_DEFAULT=$CC | |
d9898ee8 | 7584 | |
8d138742 CE |
7585 | # save warnings/boilerplate of simple test code |
7586 | ac_outfile=conftest.$ac_objext | |
7587 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
7588 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
7589 | _lt_compiler_boilerplate=`cat conftest.err` | |
7590 | $RM conftest* | |
d9898ee8 | 7591 | |
8d138742 CE |
7592 | ac_outfile=conftest.$ac_objext |
7593 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
7594 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
7595 | _lt_linker_boilerplate=`cat conftest.err` | |
7596 | $RM -r conftest* | |
d9898ee8 | 7597 | |
7598 | ||
8d138742 | 7599 | if test -n "$compiler"; then |
d9898ee8 | 7600 | |
8d138742 | 7601 | lt_prog_compiler_no_builtin_flag= |
d9898ee8 | 7602 | |
8d138742 CE |
7603 | if test "$GCC" = yes; then |
7604 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' | |
d9898ee8 | 7605 | |
8d138742 CE |
7606 | { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
7607 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
7608 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | |
7609 | $as_echo_n "(cached) " >&6 | |
7610 | else | |
7611 | lt_cv_prog_compiler_rtti_exceptions=no | |
7612 | ac_outfile=conftest.$ac_objext | |
7613 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7614 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
7615 | # Insert the option either (1) after the last *FLAGS variable, or | |
7616 | # (2) before a word containing "conftest.", or (3) at the end. | |
7617 | # Note that $ac_compile itself does not contain backslashes and begins | |
7618 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7619 | # The option is referenced via a variable to avoid confusing sed. | |
7620 | lt_compile=`echo "$ac_compile" | $SED \ | |
7621 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7622 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7623 | -e 's:$: $lt_compiler_flag:'` | |
7624 | (eval echo "\"\$as_me:7624: $lt_compile\"" >&5) | |
7625 | (eval "$lt_compile" 2>conftest.err) | |
7626 | ac_status=$? | |
7627 | cat conftest.err >&5 | |
7628 | echo "$as_me:7628: \$? = $ac_status" >&5 | |
7629 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
7630 | # The compiler can only warn and ignore the option if not recognized | |
7631 | # So say no if there are warnings other than the usual output. | |
7632 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
7633 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7634 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
7635 | lt_cv_prog_compiler_rtti_exceptions=yes | |
7636 | fi | |
7637 | fi | |
7638 | $RM conftest* | |
d9898ee8 | 7639 | |
7640 | fi | |
8d138742 CE |
7641 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
7642 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
d9898ee8 | 7643 | |
8d138742 CE |
7644 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
7645 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
7646 | else | |
7647 | : | |
7648 | fi | |
d9898ee8 | 7649 | |
8d138742 | 7650 | fi |
d9898ee8 | 7651 | |
d9898ee8 | 7652 | |
d9898ee8 | 7653 | |
d9898ee8 | 7654 | |
d9898ee8 | 7655 | |
d9898ee8 | 7656 | |
8d138742 CE |
7657 | lt_prog_compiler_wl= |
7658 | lt_prog_compiler_pic= | |
7659 | lt_prog_compiler_static= | |
d9898ee8 | 7660 | |
8d138742 CE |
7661 | { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
7662 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
d9898ee8 | 7663 | |
8d138742 CE |
7664 | if test "$GCC" = yes; then |
7665 | lt_prog_compiler_wl='-Wl,' | |
7666 | lt_prog_compiler_static='-static' | |
d9898ee8 | 7667 | |
8d138742 CE |
7668 | case $host_os in |
7669 | aix*) | |
7670 | # All AIX code is PIC. | |
7671 | if test "$host_cpu" = ia64; then | |
7672 | # AIX 5 now supports IA64 processor | |
7673 | lt_prog_compiler_static='-Bstatic' | |
7674 | fi | |
7675 | ;; | |
d9898ee8 | 7676 | |
8d138742 CE |
7677 | amigaos*) |
7678 | case $host_cpu in | |
7679 | powerpc) | |
7680 | # see comment about AmigaOS4 .so support | |
7681 | lt_prog_compiler_pic='-fPIC' | |
7682 | ;; | |
7683 | m68k) | |
7684 | # FIXME: we need at least 68020 code to build shared libraries, but | |
7685 | # adding the `-m68020' flag to GCC prevents building anything better, | |
7686 | # like `-m68040'. | |
7687 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
7688 | ;; | |
7689 | esac | |
7690 | ;; | |
d9898ee8 | 7691 | |
8d138742 CE |
7692 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
7693 | # PIC is the default for these OSes. | |
7694 | ;; | |
d9898ee8 | 7695 | |
8d138742 CE |
7696 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
7697 | # This hack is so that the source file can tell whether it is being | |
7698 | # built for inclusion in a dll (and should export symbols for example). | |
7699 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
7700 | # (--disable-auto-import) libraries | |
7701 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
7702 | ;; | |
d9898ee8 | 7703 | |
8d138742 CE |
7704 | darwin* | rhapsody*) |
7705 | # PIC is the default on this platform | |
7706 | # Common symbols not allowed in MH_DYLIB files | |
7707 | lt_prog_compiler_pic='-fno-common' | |
7708 | ;; | |
d9898ee8 | 7709 | |
8d138742 CE |
7710 | hpux*) |
7711 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
7712 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
7713 | # sets the default TLS model and affects inlining. | |
7714 | case $host_cpu in | |
7715 | hppa*64*) | |
7716 | # +Z the default | |
7717 | ;; | |
7718 | *) | |
7719 | lt_prog_compiler_pic='-fPIC' | |
7720 | ;; | |
7721 | esac | |
7722 | ;; | |
d9898ee8 | 7723 | |
8d138742 CE |
7724 | interix[3-9]*) |
7725 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
7726 | # Instead, we relocate shared libraries at runtime. | |
7727 | ;; | |
d9898ee8 | 7728 | |
8d138742 CE |
7729 | msdosdjgpp*) |
7730 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
7731 | # on systems that don't support them. | |
7732 | lt_prog_compiler_can_build_shared=no | |
7733 | enable_shared=no | |
7734 | ;; | |
d9898ee8 | 7735 | |
8d138742 CE |
7736 | *nto* | *qnx*) |
7737 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
7738 | # it will coredump. | |
7739 | lt_prog_compiler_pic='-fPIC -shared' | |
7740 | ;; | |
d9898ee8 | 7741 | |
8d138742 CE |
7742 | sysv4*MP*) |
7743 | if test -d /usr/nec; then | |
7744 | lt_prog_compiler_pic=-Kconform_pic | |
7745 | fi | |
7746 | ;; | |
d9898ee8 | 7747 | |
8d138742 CE |
7748 | *) |
7749 | lt_prog_compiler_pic='-fPIC' | |
7750 | ;; | |
7751 | esac | |
7752 | else | |
7753 | # PORTME Check for flag to pass linker flags through the system compiler. | |
7754 | case $host_os in | |
7755 | aix*) | |
7756 | lt_prog_compiler_wl='-Wl,' | |
7757 | if test "$host_cpu" = ia64; then | |
7758 | # AIX 5 now supports IA64 processor | |
7759 | lt_prog_compiler_static='-Bstatic' | |
7760 | else | |
7761 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
7762 | fi | |
7763 | ;; | |
d9898ee8 | 7764 | |
8d138742 CE |
7765 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
7766 | # This hack is so that the source file can tell whether it is being | |
7767 | # built for inclusion in a dll (and should export symbols for example). | |
7768 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
7769 | ;; | |
d9898ee8 | 7770 | |
8d138742 CE |
7771 | hpux9* | hpux10* | hpux11*) |
7772 | lt_prog_compiler_wl='-Wl,' | |
7773 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
7774 | # not for PA HP-UX. | |
7775 | case $host_cpu in | |
7776 | hppa*64*|ia64*) | |
7777 | # +Z the default | |
7778 | ;; | |
7779 | *) | |
7780 | lt_prog_compiler_pic='+Z' | |
7781 | ;; | |
7782 | esac | |
7783 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
7784 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
7785 | ;; | |
d9898ee8 | 7786 | |
8d138742 CE |
7787 | irix5* | irix6* | nonstopux*) |
7788 | lt_prog_compiler_wl='-Wl,' | |
7789 | # PIC (with -KPIC) is the default. | |
7790 | lt_prog_compiler_static='-non_shared' | |
7791 | ;; | |
d9898ee8 | 7792 | |
8d138742 CE |
7793 | linux* | k*bsd*-gnu) |
7794 | case $cc_basename in | |
7795 | # old Intel for x86_64 which still supported -KPIC. | |
7796 | ecc*) | |
7797 | lt_prog_compiler_wl='-Wl,' | |
7798 | lt_prog_compiler_pic='-KPIC' | |
7799 | lt_prog_compiler_static='-static' | |
7800 | ;; | |
7801 | # icc used to be incompatible with GCC. | |
7802 | # ICC 10 doesn't accept -KPIC any more. | |
7803 | icc* | ifort*) | |
7804 | lt_prog_compiler_wl='-Wl,' | |
7805 | lt_prog_compiler_pic='-fPIC' | |
7806 | lt_prog_compiler_static='-static' | |
7807 | ;; | |
7808 | # Lahey Fortran 8.1. | |
7809 | lf95*) | |
7810 | lt_prog_compiler_wl='-Wl,' | |
7811 | lt_prog_compiler_pic='--shared' | |
7812 | lt_prog_compiler_static='--static' | |
7813 | ;; | |
7814 | pgcc* | pgf77* | pgf90* | pgf95*) | |
7815 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
7816 | # which looks to be a dead project) | |
7817 | lt_prog_compiler_wl='-Wl,' | |
7818 | lt_prog_compiler_pic='-fpic' | |
7819 | lt_prog_compiler_static='-Bstatic' | |
7820 | ;; | |
7821 | ccc*) | |
7822 | lt_prog_compiler_wl='-Wl,' | |
7823 | # All Alpha code is PIC. | |
7824 | lt_prog_compiler_static='-non_shared' | |
7825 | ;; | |
7826 | xl*) | |
7827 | # IBM XL C 8.0/Fortran 10.1 on PPC | |
7828 | lt_prog_compiler_wl='-Wl,' | |
7829 | lt_prog_compiler_pic='-qpic' | |
7830 | lt_prog_compiler_static='-qstaticlink' | |
7831 | ;; | |
7832 | *) | |
7833 | case `$CC -V 2>&1 | sed 5q` in | |
7834 | *Sun\ C*) | |
7835 | # Sun C 5.9 | |
7836 | lt_prog_compiler_pic='-KPIC' | |
7837 | lt_prog_compiler_static='-Bstatic' | |
7838 | lt_prog_compiler_wl='-Wl,' | |
7839 | ;; | |
7840 | *Sun\ F*) | |
7841 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
7842 | lt_prog_compiler_pic='-KPIC' | |
7843 | lt_prog_compiler_static='-Bstatic' | |
7844 | lt_prog_compiler_wl='' | |
7845 | ;; | |
7846 | esac | |
7847 | ;; | |
7848 | esac | |
7849 | ;; | |
d9898ee8 | 7850 | |
8d138742 CE |
7851 | newsos6) |
7852 | lt_prog_compiler_pic='-KPIC' | |
7853 | lt_prog_compiler_static='-Bstatic' | |
7854 | ;; | |
d9898ee8 | 7855 | |
8d138742 CE |
7856 | *nto* | *qnx*) |
7857 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
7858 | # it will coredump. | |
7859 | lt_prog_compiler_pic='-fPIC -shared' | |
7860 | ;; | |
d9898ee8 | 7861 | |
8d138742 CE |
7862 | osf3* | osf4* | osf5*) |
7863 | lt_prog_compiler_wl='-Wl,' | |
7864 | # All OSF/1 code is PIC. | |
7865 | lt_prog_compiler_static='-non_shared' | |
7866 | ;; | |
d9898ee8 | 7867 | |
8d138742 CE |
7868 | rdos*) |
7869 | lt_prog_compiler_static='-non_shared' | |
7870 | ;; | |
d9898ee8 | 7871 | |
8d138742 CE |
7872 | solaris*) |
7873 | lt_prog_compiler_pic='-KPIC' | |
7874 | lt_prog_compiler_static='-Bstatic' | |
7875 | case $cc_basename in | |
7876 | f77* | f90* | f95*) | |
7877 | lt_prog_compiler_wl='-Qoption ld ';; | |
7878 | *) | |
7879 | lt_prog_compiler_wl='-Wl,';; | |
7880 | esac | |
7881 | ;; | |
d9898ee8 | 7882 | |
8d138742 CE |
7883 | sunos4*) |
7884 | lt_prog_compiler_wl='-Qoption ld ' | |
7885 | lt_prog_compiler_pic='-PIC' | |
7886 | lt_prog_compiler_static='-Bstatic' | |
7887 | ;; | |
d9898ee8 | 7888 | |
8d138742 CE |
7889 | sysv4 | sysv4.2uw2* | sysv4.3*) |
7890 | lt_prog_compiler_wl='-Wl,' | |
7891 | lt_prog_compiler_pic='-KPIC' | |
7892 | lt_prog_compiler_static='-Bstatic' | |
7893 | ;; | |
d9898ee8 | 7894 | |
8d138742 CE |
7895 | sysv4*MP*) |
7896 | if test -d /usr/nec ;then | |
7897 | lt_prog_compiler_pic='-Kconform_pic' | |
7898 | lt_prog_compiler_static='-Bstatic' | |
7899 | fi | |
7900 | ;; | |
d9898ee8 | 7901 | |
8d138742 CE |
7902 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
7903 | lt_prog_compiler_wl='-Wl,' | |
7904 | lt_prog_compiler_pic='-KPIC' | |
7905 | lt_prog_compiler_static='-Bstatic' | |
7906 | ;; | |
d9898ee8 | 7907 | |
8d138742 CE |
7908 | unicos*) |
7909 | lt_prog_compiler_wl='-Wl,' | |
7910 | lt_prog_compiler_can_build_shared=no | |
7911 | ;; | |
7912 | ||
7913 | uts4*) | |
7914 | lt_prog_compiler_pic='-pic' | |
7915 | lt_prog_compiler_static='-Bstatic' | |
d9898ee8 | 7916 | ;; |
8d138742 | 7917 | |
d9898ee8 | 7918 | *) |
8d138742 | 7919 | lt_prog_compiler_can_build_shared=no |
d9898ee8 | 7920 | ;; |
7921 | esac | |
8d138742 | 7922 | fi |
d9898ee8 | 7923 | |
8d138742 CE |
7924 | case $host_os in |
7925 | # For platforms which do not support PIC, -DPIC is meaningless: | |
7926 | *djgpp*) | |
7927 | lt_prog_compiler_pic= | |
d9898ee8 | 7928 | ;; |
8d138742 CE |
7929 | *) |
7930 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
7931 | ;; | |
7932 | esac | |
7933 | { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 | |
7934 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
7935 | ||
7936 | ||
7937 | ||
d9898ee8 | 7938 | |
d9898ee8 | 7939 | |
d9898ee8 | 7940 | |
d9898ee8 | 7941 | # |
8d138742 | 7942 | # Check to make sure the PIC flag actually works. |
d9898ee8 | 7943 | # |
8d138742 CE |
7944 | if test -n "$lt_prog_compiler_pic"; then |
7945 | { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
7946 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
7947 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then | |
7948 | $as_echo_n "(cached) " >&6 | |
7949 | else | |
7950 | lt_cv_prog_compiler_pic_works=no | |
7951 | ac_outfile=conftest.$ac_objext | |
7952 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7953 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
7954 | # Insert the option either (1) after the last *FLAGS variable, or | |
7955 | # (2) before a word containing "conftest.", or (3) at the end. | |
7956 | # Note that $ac_compile itself does not contain backslashes and begins | |
7957 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7958 | # The option is referenced via a variable to avoid confusing sed. | |
7959 | lt_compile=`echo "$ac_compile" | $SED \ | |
7960 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7961 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7962 | -e 's:$: $lt_compiler_flag:'` | |
7963 | (eval echo "\"\$as_me:7963: $lt_compile\"" >&5) | |
7964 | (eval "$lt_compile" 2>conftest.err) | |
7965 | ac_status=$? | |
7966 | cat conftest.err >&5 | |
7967 | echo "$as_me:7967: \$? = $ac_status" >&5 | |
7968 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
7969 | # The compiler can only warn and ignore the option if not recognized | |
7970 | # So say no if there are warnings other than the usual output. | |
7971 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
7972 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7973 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
7974 | lt_cv_prog_compiler_pic_works=yes | |
7975 | fi | |
7976 | fi | |
7977 | $RM conftest* | |
d9898ee8 | 7978 | |
8d138742 CE |
7979 | fi |
7980 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 | |
7981 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
d9898ee8 | 7982 | |
8d138742 CE |
7983 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
7984 | case $lt_prog_compiler_pic in | |
7985 | "" | " "*) ;; | |
7986 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
7987 | esac | |
7988 | else | |
7989 | lt_prog_compiler_pic= | |
7990 | lt_prog_compiler_can_build_shared=no | |
7991 | fi | |
d9898ee8 | 7992 | |
8d138742 | 7993 | fi |
d9898ee8 | 7994 | |
d9898ee8 | 7995 | |
d9898ee8 | 7996 | |
d9898ee8 | 7997 | |
d9898ee8 | 7998 | |
d9898ee8 | 7999 | |
8d138742 CE |
8000 | # |
8001 | # Check to make sure the static flag actually works. | |
8002 | # | |
8003 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
8004 | { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
8005 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
8006 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then | |
8007 | $as_echo_n "(cached) " >&6 | |
8008 | else | |
8009 | lt_cv_prog_compiler_static_works=no | |
8010 | save_LDFLAGS="$LDFLAGS" | |
8011 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
8012 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
8013 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
8014 | # The linker can only warn and ignore the option if not recognized | |
8015 | # So say no if there are warnings | |
8016 | if test -s conftest.err; then | |
8017 | # Append any errors to the config.log. | |
8018 | cat conftest.err 1>&5 | |
8019 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
8020 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8021 | if diff conftest.exp conftest.er2 >/dev/null; then | |
8022 | lt_cv_prog_compiler_static_works=yes | |
8023 | fi | |
8024 | else | |
8025 | lt_cv_prog_compiler_static_works=yes | |
8026 | fi | |
8027 | fi | |
8028 | $RM -r conftest* | |
8029 | LDFLAGS="$save_LDFLAGS" | |
d9898ee8 | 8030 | |
8d138742 CE |
8031 | fi |
8032 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 | |
8033 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
d9898ee8 | 8034 | |
8d138742 CE |
8035 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
8036 | : | |
8037 | else | |
8038 | lt_prog_compiler_static= | |
8039 | fi | |
d9898ee8 | 8040 | |
d9898ee8 | 8041 | |
d9898ee8 | 8042 | |
d9898ee8 | 8043 | |
d9898ee8 | 8044 | |
d9898ee8 | 8045 | |
d9898ee8 | 8046 | |
8d138742 CE |
8047 | { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8048 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
8049 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | |
8050 | $as_echo_n "(cached) " >&6 | |
8051 | else | |
8052 | lt_cv_prog_compiler_c_o=no | |
8053 | $RM -r conftest 2>/dev/null | |
8054 | mkdir conftest | |
8055 | cd conftest | |
8056 | mkdir out | |
8057 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d9898ee8 | 8058 | |
8d138742 CE |
8059 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
8060 | # Insert the option either (1) after the last *FLAGS variable, or | |
8061 | # (2) before a word containing "conftest.", or (3) at the end. | |
8062 | # Note that $ac_compile itself does not contain backslashes and begins | |
8063 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8064 | lt_compile=`echo "$ac_compile" | $SED \ | |
8065 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8066 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8067 | -e 's:$: $lt_compiler_flag:'` | |
8068 | (eval echo "\"\$as_me:8068: $lt_compile\"" >&5) | |
8069 | (eval "$lt_compile" 2>out/conftest.err) | |
8070 | ac_status=$? | |
8071 | cat out/conftest.err >&5 | |
8072 | echo "$as_me:8072: \$? = $ac_status" >&5 | |
8073 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
8074 | then | |
8075 | # The compiler can only warn and ignore the option if not recognized | |
8076 | # So say no if there are warnings | |
8077 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
8078 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
8079 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8080 | lt_cv_prog_compiler_c_o=yes | |
8081 | fi | |
8082 | fi | |
8083 | chmod u+w . 2>&5 | |
8084 | $RM conftest* | |
8085 | # SGI C++ compiler will create directory out/ii_files/ for | |
8086 | # template instantiation | |
8087 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8088 | $RM out/* && rmdir out | |
8089 | cd .. | |
8090 | $RM -r conftest | |
8091 | $RM conftest* | |
d9898ee8 | 8092 | |
8d138742 CE |
8093 | fi |
8094 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 | |
8095 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
d9898ee8 | 8096 | |
d9898ee8 | 8097 | |
d9898ee8 | 8098 | |
d9898ee8 | 8099 | |
d9898ee8 | 8100 | |
d9898ee8 | 8101 | |
8d138742 CE |
8102 | { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8103 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
8104 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | |
8105 | $as_echo_n "(cached) " >&6 | |
8106 | else | |
8107 | lt_cv_prog_compiler_c_o=no | |
8108 | $RM -r conftest 2>/dev/null | |
8109 | mkdir conftest | |
8110 | cd conftest | |
8111 | mkdir out | |
8112 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d9898ee8 | 8113 | |
8d138742 CE |
8114 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
8115 | # Insert the option either (1) after the last *FLAGS variable, or | |
8116 | # (2) before a word containing "conftest.", or (3) at the end. | |
8117 | # Note that $ac_compile itself does not contain backslashes and begins | |
8118 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8119 | lt_compile=`echo "$ac_compile" | $SED \ | |
8120 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8121 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8122 | -e 's:$: $lt_compiler_flag:'` | |
8123 | (eval echo "\"\$as_me:8123: $lt_compile\"" >&5) | |
8124 | (eval "$lt_compile" 2>out/conftest.err) | |
8125 | ac_status=$? | |
8126 | cat out/conftest.err >&5 | |
8127 | echo "$as_me:8127: \$? = $ac_status" >&5 | |
8128 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
8129 | then | |
8130 | # The compiler can only warn and ignore the option if not recognized | |
8131 | # So say no if there are warnings | |
8132 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
8133 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
8134 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8135 | lt_cv_prog_compiler_c_o=yes | |
8136 | fi | |
8137 | fi | |
8138 | chmod u+w . 2>&5 | |
8139 | $RM conftest* | |
8140 | # SGI C++ compiler will create directory out/ii_files/ for | |
8141 | # template instantiation | |
8142 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8143 | $RM out/* && rmdir out | |
8144 | cd .. | |
8145 | $RM -r conftest | |
8146 | $RM conftest* | |
d9898ee8 | 8147 | |
8d138742 CE |
8148 | fi |
8149 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 | |
8150 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
d9898ee8 | 8151 | |
d9898ee8 | 8152 | |
d9898ee8 | 8153 | |
d9898ee8 | 8154 | |
8d138742 CE |
8155 | hard_links="nottested" |
8156 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
8157 | # do not overwrite the value of need_locks provided by the user | |
8158 | { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
8159 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
8160 | hard_links=yes | |
8161 | $RM conftest* | |
8162 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8163 | touch conftest.a | |
8164 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
8165 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8166 | { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 | |
8167 | $as_echo "$hard_links" >&6; } | |
8168 | if test "$hard_links" = no; then | |
8169 | { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
8170 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
8171 | need_locks=warn | |
8172 | fi | |
8173 | else | |
8174 | need_locks=no | |
8175 | fi | |
d9898ee8 | 8176 | |
d9898ee8 | 8177 | |
d9898ee8 | 8178 | |
d9898ee8 | 8179 | |
d9898ee8 | 8180 | |
d9898ee8 | 8181 | |
8d138742 CE |
8182 | { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
8183 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
d9898ee8 | 8184 | |
8d138742 CE |
8185 | runpath_var= |
8186 | allow_undefined_flag= | |
8187 | always_export_symbols=no | |
8188 | archive_cmds= | |
8189 | archive_expsym_cmds= | |
8190 | compiler_needs_object=no | |
8191 | enable_shared_with_static_runtimes=no | |
8192 | export_dynamic_flag_spec= | |
8193 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
8194 | hardcode_automatic=no | |
8195 | hardcode_direct=no | |
8196 | hardcode_direct_absolute=no | |
8197 | hardcode_libdir_flag_spec= | |
8198 | hardcode_libdir_flag_spec_ld= | |
8199 | hardcode_libdir_separator= | |
8200 | hardcode_minus_L=no | |
8201 | hardcode_shlibpath_var=unsupported | |
8202 | inherit_rpath=no | |
8203 | link_all_deplibs=unknown | |
8204 | module_cmds= | |
8205 | module_expsym_cmds= | |
8206 | old_archive_from_new_cmds= | |
8207 | old_archive_from_expsyms_cmds= | |
8208 | thread_safe_flag_spec= | |
8209 | whole_archive_flag_spec= | |
8210 | # include_expsyms should be a list of space-separated symbols to be *always* | |
8211 | # included in the symbol list | |
8212 | include_expsyms= | |
8213 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
8214 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
8215 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
8216 | # as well as any symbol that contains `d'. | |
8217 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
8218 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
8219 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
8220 | # the symbol is explicitly referenced. Since portable code cannot | |
8221 | # rely on this symbol name, it's probably fine to never include it in | |
8222 | # preloaded symbol tables. | |
8223 | # Exclude shared library initialization/finalization symbols. | |
8224 | extract_expsyms_cmds= | |
d9898ee8 | 8225 | |
8d138742 CE |
8226 | case $host_os in |
8227 | cygwin* | mingw* | pw32* | cegcc*) | |
8228 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
8229 | # When not using gcc, we currently assume that we are using | |
8230 | # Microsoft Visual C++. | |
8231 | if test "$GCC" != yes; then | |
8232 | with_gnu_ld=no | |
8233 | fi | |
8234 | ;; | |
8235 | interix*) | |
8236 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
8237 | with_gnu_ld=yes | |
8238 | ;; | |
8239 | openbsd*) | |
8240 | with_gnu_ld=no | |
8241 | ;; | |
8242 | esac | |
d9898ee8 | 8243 | |
8d138742 CE |
8244 | ld_shlibs=yes |
8245 | if test "$with_gnu_ld" = yes; then | |
8246 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
8247 | wlarc='${wl}' | |
d9898ee8 | 8248 | |
8d138742 CE |
8249 | # Set some defaults for GNU ld with shared library support. These |
8250 | # are reset later if shared libraries are not supported. Putting them | |
8251 | # here allows them to be overridden if necessary. | |
8252 | runpath_var=LD_RUN_PATH | |
8253 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8254 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
8255 | # ancient GNU ld didn't support --whole-archive et. al. | |
8256 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
8257 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
8258 | else | |
8259 | whole_archive_flag_spec= | |
8260 | fi | |
8261 | supports_anon_versioning=no | |
8262 | case `$LD -v 2>&1` in | |
8263 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
8264 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
8265 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
8266 | *\ 2.11.*) ;; # other 2.11 versions | |
8267 | *) supports_anon_versioning=yes ;; | |
8268 | esac | |
d9898ee8 | 8269 | |
8d138742 CE |
8270 | # See if GNU ld supports shared libraries. |
8271 | case $host_os in | |
8272 | aix[3-9]*) | |
8273 | # On AIX/PPC, the GNU linker is very broken | |
8274 | if test "$host_cpu" != ia64; then | |
8275 | ld_shlibs=no | |
8276 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 8277 | |
8d138742 CE |
8278 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
8279 | *** to be unable to reliably create shared libraries on AIX. | |
8280 | *** Therefore, libtool is disabling shared libraries support. If you | |
8281 | *** really care for shared libraries, you may want to modify your PATH | |
8282 | *** so that a non-GNU linker is found, and then restart. | |
d9898ee8 | 8283 | |
8d138742 CE |
8284 | _LT_EOF |
8285 | fi | |
8286 | ;; | |
d9898ee8 | 8287 | |
8d138742 CE |
8288 | amigaos*) |
8289 | case $host_cpu in | |
8290 | powerpc) | |
8291 | # see comment about AmigaOS4 .so support | |
8292 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8293 | archive_expsym_cmds='' | |
8294 | ;; | |
8295 | m68k) | |
8296 | 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)' | |
8297 | hardcode_libdir_flag_spec='-L$libdir' | |
8298 | hardcode_minus_L=yes | |
8299 | ;; | |
8300 | esac | |
8301 | ;; | |
d9898ee8 | 8302 | |
8d138742 CE |
8303 | beos*) |
8304 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8305 | allow_undefined_flag=unsupported | |
8306 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
8307 | # support --undefined. This deserves some investigation. FIXME | |
8308 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8309 | else | |
8310 | ld_shlibs=no | |
8311 | fi | |
8312 | ;; | |
d9898ee8 | 8313 | |
8d138742 CE |
8314 | cygwin* | mingw* | pw32* | cegcc*) |
8315 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
8316 | # as there is no search path for DLLs. | |
8317 | hardcode_libdir_flag_spec='-L$libdir' | |
8318 | allow_undefined_flag=unsupported | |
8319 | always_export_symbols=no | |
8320 | enable_shared_with_static_runtimes=yes | |
8321 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
d9898ee8 | 8322 | |
8d138742 CE |
8323 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
8324 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8325 | # If the export-symbols file already is a .def file (1st line | |
8326 | # is EXPORTS), use it as is; otherwise, prepend... | |
8327 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
8328 | cp $export_symbols $output_objdir/$soname.def; | |
8329 | else | |
8330 | echo EXPORTS > $output_objdir/$soname.def; | |
8331 | cat $export_symbols >> $output_objdir/$soname.def; | |
8332 | fi~ | |
8333 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8334 | else | |
8335 | ld_shlibs=no | |
8336 | fi | |
8337 | ;; | |
d9898ee8 | 8338 | |
8d138742 CE |
8339 | interix[3-9]*) |
8340 | hardcode_direct=no | |
8341 | hardcode_shlibpath_var=no | |
8342 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8343 | export_dynamic_flag_spec='${wl}-E' | |
8344 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
8345 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
8346 | # default) and relocated if they conflict, which is a slow very memory | |
8347 | # consuming and fragmenting process. To avoid this, we pick a random, | |
8348 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
8349 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
8350 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
8351 | 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' | |
8352 | ;; | |
d9898ee8 | 8353 | |
8d138742 CE |
8354 | gnu* | linux* | tpf* | k*bsd*-gnu) |
8355 | tmp_diet=no | |
8356 | if test "$host_os" = linux-dietlibc; then | |
8357 | case $cc_basename in | |
8358 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
8359 | esac | |
8360 | fi | |
8361 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
8362 | && test "$tmp_diet" = no | |
8363 | then | |
8364 | tmp_addflag= | |
8365 | tmp_sharedflag='-shared' | |
8366 | case $cc_basename,$host_cpu in | |
8367 | pgcc*) # Portland Group C compiler | |
8368 | 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' | |
8369 | tmp_addflag=' $pic_flag' | |
8370 | ;; | |
8371 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
8372 | 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' | |
8373 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
8374 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
8375 | tmp_addflag=' -i_dynamic' ;; | |
8376 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
8377 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
8378 | ifc* | ifort*) # Intel Fortran compiler | |
8379 | tmp_addflag=' -nofor_main' ;; | |
8380 | lf95*) # Lahey Fortran 8.1 | |
8381 | whole_archive_flag_spec= | |
8382 | tmp_sharedflag='--shared' ;; | |
8383 | xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
8384 | tmp_sharedflag='-qmkshrobj' | |
8385 | tmp_addflag= ;; | |
8386 | esac | |
8387 | case `$CC -V 2>&1 | sed 5q` in | |
8388 | *Sun\ C*) # Sun C 5.9 | |
8389 | 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' | |
8390 | compiler_needs_object=yes | |
8391 | tmp_sharedflag='-G' ;; | |
8392 | *Sun\ F*) # Sun Fortran 8.3 | |
8393 | tmp_sharedflag='-G' ;; | |
8394 | esac | |
8395 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
d9898ee8 | 8396 | |
8d138742 CE |
8397 | if test "x$supports_anon_versioning" = xyes; then |
8398 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8399 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8400 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
8401 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
8402 | fi | |
d9898ee8 | 8403 | |
8d138742 CE |
8404 | case $cc_basename in |
8405 | xlf*) | |
8406 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
8407 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
8408 | hardcode_libdir_flag_spec= | |
8409 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
8410 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
8411 | if test "x$supports_anon_versioning" = xyes; then | |
8412 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8413 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8414 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
8415 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
8416 | fi | |
8417 | ;; | |
8418 | esac | |
8419 | else | |
8420 | ld_shlibs=no | |
8421 | fi | |
8422 | ;; | |
d9898ee8 | 8423 | |
8d138742 CE |
8424 | netbsd*) |
8425 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
8426 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
8427 | wlarc= | |
8428 | else | |
8429 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8430 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8431 | fi | |
8432 | ;; | |
d9898ee8 | 8433 | |
8d138742 CE |
8434 | solaris*) |
8435 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
8436 | ld_shlibs=no | |
8437 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 8438 | |
8d138742 CE |
8439 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
8440 | *** create shared libraries on Solaris systems. Therefore, libtool | |
8441 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
8442 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
8443 | *** your PATH or compiler configuration so that the native linker is | |
8444 | *** used, and then restart. | |
d9898ee8 | 8445 | |
8d138742 CE |
8446 | _LT_EOF |
8447 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8448 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8449 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8450 | else | |
8451 | ld_shlibs=no | |
8452 | fi | |
8453 | ;; | |
d9898ee8 | 8454 | |
8d138742 CE |
8455 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
8456 | case `$LD -v 2>&1` in | |
8457 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
8458 | ld_shlibs=no | |
8459 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 8460 | |
8d138742 CE |
8461 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
8462 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
8463 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
8464 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
8465 | *** your PATH or compiler configuration so that the native linker is | |
8466 | *** used, and then restart. | |
d9898ee8 | 8467 | |
8d138742 CE |
8468 | _LT_EOF |
8469 | ;; | |
8470 | *) | |
8471 | # For security reasons, it is highly recommended that you always | |
8472 | # use absolute paths for naming shared libraries, and exclude the | |
8473 | # DT_RUNPATH tag from executables and libraries. But doing so | |
8474 | # requires that you compile everything twice, which is a pain. | |
8475 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8476 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8477 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8478 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8479 | else | |
8480 | ld_shlibs=no | |
8481 | fi | |
8482 | ;; | |
8483 | esac | |
8484 | ;; | |
d9898ee8 | 8485 | |
8d138742 CE |
8486 | sunos4*) |
8487 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8488 | wlarc= | |
8489 | hardcode_direct=yes | |
8490 | hardcode_shlibpath_var=no | |
8491 | ;; | |
d9898ee8 | 8492 | |
8d138742 CE |
8493 | *) |
8494 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8495 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8496 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8497 | else | |
8498 | ld_shlibs=no | |
8499 | fi | |
8500 | ;; | |
8501 | esac | |
d9898ee8 | 8502 | |
8d138742 CE |
8503 | if test "$ld_shlibs" = no; then |
8504 | runpath_var= | |
8505 | hardcode_libdir_flag_spec= | |
8506 | export_dynamic_flag_spec= | |
8507 | whole_archive_flag_spec= | |
8508 | fi | |
8509 | else | |
8510 | # PORTME fill in a description of your system's linker (not GNU ld) | |
8511 | case $host_os in | |
8512 | aix3*) | |
8513 | allow_undefined_flag=unsupported | |
8514 | always_export_symbols=yes | |
8515 | 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' | |
8516 | # Note: this linker hardcodes the directories in LIBPATH if there | |
8517 | # are no directories specified by -L. | |
8518 | hardcode_minus_L=yes | |
8519 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
8520 | # Neither direct hardcoding nor static linking is supported with a | |
8521 | # broken collect2. | |
8522 | hardcode_direct=unsupported | |
8523 | fi | |
8524 | ;; | |
d9898ee8 | 8525 | |
8d138742 CE |
8526 | aix[4-9]*) |
8527 | if test "$host_cpu" = ia64; then | |
8528 | # On IA64, the linker does run time linking by default, so we don't | |
8529 | # have to do anything special. | |
8530 | aix_use_runtimelinking=no | |
8531 | exp_sym_flag='-Bexport' | |
8532 | no_entry_flag="" | |
8533 | else | |
8534 | # If we're using GNU nm, then we don't want the "-C" option. | |
8535 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
8536 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
8537 | 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' | |
8538 | else | |
8539 | 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' | |
8540 | fi | |
8541 | aix_use_runtimelinking=no | |
d9898ee8 | 8542 | |
8d138742 CE |
8543 | # Test if we are trying to use run time linking or normal |
8544 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
8545 | # need to do runtime linking. | |
8546 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
8547 | for ld_flag in $LDFLAGS; do | |
8548 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
8549 | aix_use_runtimelinking=yes | |
8550 | break | |
8551 | fi | |
8552 | done | |
8553 | ;; | |
8554 | esac | |
d9898ee8 | 8555 | |
8d138742 CE |
8556 | exp_sym_flag='-bexport' |
8557 | no_entry_flag='-bnoentry' | |
8558 | fi | |
d9898ee8 | 8559 | |
8d138742 CE |
8560 | # When large executables or shared objects are built, AIX ld can |
8561 | # have problems creating the table of contents. If linking a library | |
8562 | # or program results in "error TOC overflow" add -mminimal-toc to | |
8563 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
8564 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
d9898ee8 | 8565 | |
8d138742 CE |
8566 | archive_cmds='' |
8567 | hardcode_direct=yes | |
8568 | hardcode_direct_absolute=yes | |
8569 | hardcode_libdir_separator=':' | |
8570 | link_all_deplibs=yes | |
8571 | file_list_spec='${wl}-f,' | |
d9898ee8 | 8572 | |
8d138742 CE |
8573 | if test "$GCC" = yes; then |
8574 | case $host_os in aix4.[012]|aix4.[012].*) | |
8575 | # We only want to do this on AIX 4.2 and lower, the check | |
8576 | # below for broken collect2 doesn't work under 4.3+ | |
8577 | collect2name=`${CC} -print-prog-name=collect2` | |
8578 | if test -f "$collect2name" && | |
8579 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
8580 | then | |
8581 | # We have reworked collect2 | |
8582 | : | |
8583 | else | |
8584 | # We have old collect2 | |
8585 | hardcode_direct=unsupported | |
8586 | # It fails to find uninstalled libraries when the uninstalled | |
8587 | # path is not listed in the libpath. Setting hardcode_minus_L | |
8588 | # to unsupported forces relinking | |
8589 | hardcode_minus_L=yes | |
8590 | hardcode_libdir_flag_spec='-L$libdir' | |
8591 | hardcode_libdir_separator= | |
8592 | fi | |
8593 | ;; | |
8594 | esac | |
8595 | shared_flag='-shared' | |
8596 | if test "$aix_use_runtimelinking" = yes; then | |
8597 | shared_flag="$shared_flag "'${wl}-G' | |
8598 | fi | |
8599 | else | |
8600 | # not using gcc | |
8601 | if test "$host_cpu" = ia64; then | |
8602 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
8603 | # chokes on -Wl,-G. The following line is correct: | |
8604 | shared_flag='-G' | |
8605 | else | |
8606 | if test "$aix_use_runtimelinking" = yes; then | |
8607 | shared_flag='${wl}-G' | |
8608 | else | |
8609 | shared_flag='${wl}-bM:SRE' | |
8610 | fi | |
8611 | fi | |
8612 | fi | |
d9898ee8 | 8613 | |
8d138742 CE |
8614 | export_dynamic_flag_spec='${wl}-bexpall' |
8615 | # It seems that -bexpall does not export symbols beginning with | |
8616 | # underscore (_), so it is better to generate a list of symbols to export. | |
8617 | always_export_symbols=yes | |
8618 | if test "$aix_use_runtimelinking" = yes; then | |
8619 | # Warning - without using the other runtime loading flags (-brtl), | |
8620 | # -berok will link without error, but may produce a broken library. | |
8621 | allow_undefined_flag='-berok' | |
8622 | # Determine the default libpath from the value encoded in an | |
8623 | # empty executable. | |
8624 | cat >conftest.$ac_ext <<_ACEOF | |
8625 | /* confdefs.h. */ | |
8626 | _ACEOF | |
8627 | cat confdefs.h >>conftest.$ac_ext | |
8628 | cat >>conftest.$ac_ext <<_ACEOF | |
8629 | /* end confdefs.h. */ | |
d9898ee8 | 8630 | |
8d138742 CE |
8631 | int |
8632 | main () | |
8633 | { | |
d9898ee8 | 8634 | |
8d138742 CE |
8635 | ; |
8636 | return 0; | |
8637 | } | |
8638 | _ACEOF | |
8639 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8640 | if { (ac_try="$ac_link" | |
8641 | case "(($ac_try" in | |
8642 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8643 | *) ac_try_echo=$ac_try;; | |
8644 | esac | |
8645 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8646 | $as_echo "$ac_try_echo") >&5 | |
8647 | (eval "$ac_link") 2>conftest.er1 | |
8648 | ac_status=$? | |
8649 | grep -v '^ *+' conftest.er1 >conftest.err | |
8650 | rm -f conftest.er1 | |
8651 | cat conftest.err >&5 | |
8652 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8653 | (exit $ac_status); } && { | |
8654 | test -z "$ac_c_werror_flag" || | |
8655 | test ! -s conftest.err | |
8656 | } && test -s conftest$ac_exeext && { | |
8657 | test "$cross_compiling" = yes || | |
8658 | $as_test_x conftest$ac_exeext | |
8659 | }; then | |
d9898ee8 | 8660 | |
8d138742 CE |
8661 | lt_aix_libpath_sed=' |
8662 | /Import File Strings/,/^$/ { | |
8663 | /^0/ { | |
8664 | s/^0 *\(.*\)$/\1/ | |
8665 | p | |
8666 | } | |
8667 | }' | |
8668 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8669 | # Check for a 64-bit object if we didn't find anything. | |
8670 | if test -z "$aix_libpath"; then | |
8671 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8672 | fi | |
8673 | else | |
8674 | $as_echo "$as_me: failed program was:" >&5 | |
8675 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 8676 | |
d9898ee8 | 8677 | |
8d138742 | 8678 | fi |
d9898ee8 | 8679 | |
8d138742 CE |
8680 | rm -rf conftest.dSYM |
8681 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8682 | conftest$ac_exeext conftest.$ac_ext | |
8683 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
d9898ee8 | 8684 | |
8d138742 CE |
8685 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
8686 | 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" | |
8687 | else | |
8688 | if test "$host_cpu" = ia64; then | |
8689 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
8690 | allow_undefined_flag="-z nodefs" | |
8691 | 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" | |
8692 | else | |
8693 | # Determine the default libpath from the value encoded in an | |
8694 | # empty executable. | |
8695 | cat >conftest.$ac_ext <<_ACEOF | |
8696 | /* confdefs.h. */ | |
8697 | _ACEOF | |
8698 | cat confdefs.h >>conftest.$ac_ext | |
8699 | cat >>conftest.$ac_ext <<_ACEOF | |
8700 | /* end confdefs.h. */ | |
d9898ee8 | 8701 | |
8d138742 CE |
8702 | int |
8703 | main () | |
8704 | { | |
d9898ee8 | 8705 | |
8d138742 CE |
8706 | ; |
8707 | return 0; | |
8708 | } | |
8709 | _ACEOF | |
8710 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8711 | if { (ac_try="$ac_link" | |
8712 | case "(($ac_try" in | |
8713 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8714 | *) ac_try_echo=$ac_try;; | |
8715 | esac | |
8716 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8717 | $as_echo "$ac_try_echo") >&5 | |
8718 | (eval "$ac_link") 2>conftest.er1 | |
8719 | ac_status=$? | |
8720 | grep -v '^ *+' conftest.er1 >conftest.err | |
8721 | rm -f conftest.er1 | |
8722 | cat conftest.err >&5 | |
8723 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8724 | (exit $ac_status); } && { | |
8725 | test -z "$ac_c_werror_flag" || | |
8726 | test ! -s conftest.err | |
8727 | } && test -s conftest$ac_exeext && { | |
8728 | test "$cross_compiling" = yes || | |
8729 | $as_test_x conftest$ac_exeext | |
8730 | }; then | |
d9898ee8 | 8731 | |
8d138742 CE |
8732 | lt_aix_libpath_sed=' |
8733 | /Import File Strings/,/^$/ { | |
8734 | /^0/ { | |
8735 | s/^0 *\(.*\)$/\1/ | |
8736 | p | |
8737 | } | |
8738 | }' | |
8739 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8740 | # Check for a 64-bit object if we didn't find anything. | |
8741 | if test -z "$aix_libpath"; then | |
8742 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8743 | fi | |
8744 | else | |
8745 | $as_echo "$as_me: failed program was:" >&5 | |
8746 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 8747 | |
d9898ee8 | 8748 | |
8d138742 | 8749 | fi |
d9898ee8 | 8750 | |
8d138742 CE |
8751 | rm -rf conftest.dSYM |
8752 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8753 | conftest$ac_exeext conftest.$ac_ext | |
8754 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
d9898ee8 | 8755 | |
8d138742 CE |
8756 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
8757 | # Warning - without using the other run time loading flags, | |
8758 | # -berok will link without error, but may produce a broken library. | |
8759 | no_undefined_flag=' ${wl}-bernotok' | |
8760 | allow_undefined_flag=' ${wl}-berok' | |
8761 | # Exported symbols can be pulled into shared objects from archives | |
8762 | whole_archive_flag_spec='$convenience' | |
8763 | archive_cmds_need_lc=yes | |
8764 | # This is similar to how AIX traditionally builds its shared libraries. | |
8765 | 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' | |
8766 | fi | |
8767 | fi | |
8768 | ;; | |
d9898ee8 | 8769 | |
8d138742 CE |
8770 | amigaos*) |
8771 | case $host_cpu in | |
8772 | powerpc) | |
8773 | # see comment about AmigaOS4 .so support | |
8774 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8775 | archive_expsym_cmds='' | |
8776 | ;; | |
8777 | m68k) | |
8778 | 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)' | |
8779 | hardcode_libdir_flag_spec='-L$libdir' | |
8780 | hardcode_minus_L=yes | |
8781 | ;; | |
8782 | esac | |
8783 | ;; | |
d9898ee8 | 8784 | |
8d138742 CE |
8785 | bsdi[45]*) |
8786 | export_dynamic_flag_spec=-rdynamic | |
8787 | ;; | |
d9898ee8 | 8788 | |
8d138742 CE |
8789 | cygwin* | mingw* | pw32* | cegcc*) |
8790 | # When not using gcc, we currently assume that we are using | |
8791 | # Microsoft Visual C++. | |
8792 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
8793 | # no search path for DLLs. | |
8794 | hardcode_libdir_flag_spec=' ' | |
8795 | allow_undefined_flag=unsupported | |
8796 | # Tell ltmain to make .lib files, not .a files. | |
8797 | libext=lib | |
8798 | # Tell ltmain to make .dll files, not .so files. | |
8799 | shrext_cmds=".dll" | |
8800 | # FIXME: Setting linknames here is a bad hack. | |
8801 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
8802 | # The linker will automatically build a .lib file if we build a DLL. | |
8803 | old_archive_from_new_cmds='true' | |
8804 | # FIXME: Should let the user specify the lib program. | |
8805 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
8806 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
8807 | enable_shared_with_static_runtimes=yes | |
8808 | ;; | |
d9898ee8 | 8809 | |
8d138742 | 8810 | darwin* | rhapsody*) |
d9898ee8 | 8811 | |
d9898ee8 | 8812 | |
8d138742 CE |
8813 | archive_cmds_need_lc=no |
8814 | hardcode_direct=no | |
8815 | hardcode_automatic=yes | |
8816 | hardcode_shlibpath_var=unsupported | |
8817 | whole_archive_flag_spec='' | |
8818 | link_all_deplibs=yes | |
8819 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
8820 | case $cc_basename in | |
8821 | ifort*) _lt_dar_can_shared=yes ;; | |
8822 | *) _lt_dar_can_shared=$GCC ;; | |
d9898ee8 | 8823 | esac |
8d138742 CE |
8824 | if test "$_lt_dar_can_shared" = "yes"; then |
8825 | output_verbose_link_cmd=echo | |
8826 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
8827 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
8828 | 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}" | |
8829 | 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 | 8830 | |
8d138742 CE |
8831 | else |
8832 | ld_shlibs=no | |
d9898ee8 | 8833 | fi |
d9898ee8 | 8834 | |
8d138742 | 8835 | ;; |
d9898ee8 | 8836 | |
8d138742 CE |
8837 | dgux*) |
8838 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8839 | hardcode_libdir_flag_spec='-L$libdir' | |
8840 | hardcode_shlibpath_var=no | |
8841 | ;; | |
d9898ee8 | 8842 | |
8d138742 CE |
8843 | freebsd1*) |
8844 | ld_shlibs=no | |
8845 | ;; | |
d9898ee8 | 8846 | |
8d138742 CE |
8847 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
8848 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
8849 | # does not break anything, and helps significantly (at the cost of a little | |
8850 | # extra space). | |
8851 | freebsd2.2*) | |
8852 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
8853 | hardcode_libdir_flag_spec='-R$libdir' | |
8854 | hardcode_direct=yes | |
8855 | hardcode_shlibpath_var=no | |
8856 | ;; | |
dd184caf | 8857 | |
8d138742 CE |
8858 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
8859 | freebsd2*) | |
8860 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8861 | hardcode_direct=yes | |
8862 | hardcode_minus_L=yes | |
8863 | hardcode_shlibpath_var=no | |
8864 | ;; | |
d9898ee8 | 8865 | |
8d138742 CE |
8866 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
8867 | freebsd* | dragonfly*) | |
8868 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
8869 | hardcode_libdir_flag_spec='-R$libdir' | |
8870 | hardcode_direct=yes | |
8871 | hardcode_shlibpath_var=no | |
8872 | ;; | |
d9898ee8 | 8873 | |
8d138742 CE |
8874 | hpux9*) |
8875 | if test "$GCC" = yes; then | |
8876 | 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' | |
8877 | else | |
8878 | 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' | |
8879 | fi | |
8880 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8881 | hardcode_libdir_separator=: | |
8882 | hardcode_direct=yes | |
d9898ee8 | 8883 | |
8d138742 CE |
8884 | # hardcode_minus_L: Not really in the search PATH, |
8885 | # but as the default location of the library. | |
8886 | hardcode_minus_L=yes | |
8887 | export_dynamic_flag_spec='${wl}-E' | |
8888 | ;; | |
d9898ee8 | 8889 | |
8d138742 CE |
8890 | hpux10*) |
8891 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
8892 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8893 | else | |
8894 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
8895 | fi | |
8896 | if test "$with_gnu_ld" = no; then | |
8897 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8898 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
8899 | hardcode_libdir_separator=: | |
8900 | hardcode_direct=yes | |
8901 | hardcode_direct_absolute=yes | |
8902 | export_dynamic_flag_spec='${wl}-E' | |
8903 | # hardcode_minus_L: Not really in the search PATH, | |
8904 | # but as the default location of the library. | |
8905 | hardcode_minus_L=yes | |
8906 | fi | |
8907 | ;; | |
d9898ee8 | 8908 | |
8d138742 CE |
8909 | hpux11*) |
8910 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
8911 | case $host_cpu in | |
8912 | hppa*64*) | |
8913 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8914 | ;; | |
8915 | ia64*) | |
8916 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
8917 | ;; | |
8918 | *) | |
8919 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8920 | ;; | |
8921 | esac | |
d9898ee8 | 8922 | else |
8d138742 CE |
8923 | case $host_cpu in |
8924 | hppa*64*) | |
8925 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8926 | ;; | |
8927 | ia64*) | |
8928 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
8929 | ;; | |
8930 | *) | |
8931 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8932 | ;; | |
8933 | esac | |
d9898ee8 | 8934 | fi |
8d138742 CE |
8935 | if test "$with_gnu_ld" = no; then |
8936 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8937 | hardcode_libdir_separator=: | |
d9898ee8 | 8938 | |
8d138742 CE |
8939 | case $host_cpu in |
8940 | hppa*64*|ia64*) | |
8941 | hardcode_direct=no | |
8942 | hardcode_shlibpath_var=no | |
8943 | ;; | |
8944 | *) | |
8945 | hardcode_direct=yes | |
8946 | hardcode_direct_absolute=yes | |
8947 | export_dynamic_flag_spec='${wl}-E' | |
d9898ee8 | 8948 | |
8d138742 CE |
8949 | # hardcode_minus_L: Not really in the search PATH, |
8950 | # but as the default location of the library. | |
8951 | hardcode_minus_L=yes | |
8952 | ;; | |
8953 | esac | |
8954 | fi | |
8955 | ;; | |
d9898ee8 | 8956 | |
8d138742 CE |
8957 | irix5* | irix6* | nonstopux*) |
8958 | if test "$GCC" = yes; then | |
8959 | 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' | |
8960 | # Try to use the -exported_symbol ld option, if it does not | |
8961 | # work, assume that -exports_file does not work either and | |
8962 | # implicitly export all symbols. | |
8963 | save_LDFLAGS="$LDFLAGS" | |
8964 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
8965 | cat >conftest.$ac_ext <<_ACEOF | |
8966 | int foo(void) {} | |
d9898ee8 | 8967 | _ACEOF |
8968 | rm -f conftest.$ac_objext conftest$ac_exeext | |
dd184caf | 8969 | if { (ac_try="$ac_link" |
8970 | case "(($ac_try" in | |
8971 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8972 | *) ac_try_echo=$ac_try;; | |
8973 | esac | |
8d138742 CE |
8974 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8975 | $as_echo "$ac_try_echo") >&5 | |
dd184caf | 8976 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 | 8977 | ac_status=$? |
8978 | grep -v '^ *+' conftest.er1 >conftest.err | |
8979 | rm -f conftest.er1 | |
8980 | cat conftest.err >&5 | |
8d138742 | 8981 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf | 8982 | (exit $ac_status); } && { |
8d138742 | 8983 | test -z "$ac_c_werror_flag" || |
dd184caf | 8984 | test ! -s conftest.err |
8d138742 CE |
8985 | } && test -s conftest$ac_exeext && { |
8986 | test "$cross_compiling" = yes || | |
8987 | $as_test_x conftest$ac_exeext | |
8988 | }; then | |
8989 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' | |
d9898ee8 | 8990 | |
d9898ee8 | 8991 | else |
8d138742 | 8992 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 8993 | sed 's/^/| /' conftest.$ac_ext >&5 |
8994 | ||
dd184caf | 8995 | |
d9898ee8 | 8996 | fi |
dd184caf | 8997 | |
8d138742 | 8998 | rm -rf conftest.dSYM |
dd184caf | 8999 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 | 9000 | conftest$ac_exeext conftest.$ac_ext |
8d138742 | 9001 | LDFLAGS="$save_LDFLAGS" |
d9898ee8 | 9002 | else |
8d138742 CE |
9003 | 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' |
9004 | 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' | |
9005 | fi | |
9006 | archive_cmds_need_lc='no' | |
9007 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9008 | hardcode_libdir_separator=: | |
9009 | inherit_rpath=yes | |
9010 | link_all_deplibs=yes | |
9011 | ;; | |
d9898ee8 | 9012 | |
8d138742 CE |
9013 | netbsd*) |
9014 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9015 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
9016 | else | |
9017 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
d9898ee8 | 9018 | fi |
8d138742 CE |
9019 | hardcode_libdir_flag_spec='-R$libdir' |
9020 | hardcode_direct=yes | |
9021 | hardcode_shlibpath_var=no | |
9022 | ;; | |
d9898ee8 | 9023 | |
8d138742 CE |
9024 | newsos6) |
9025 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9026 | hardcode_direct=yes | |
9027 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9028 | hardcode_libdir_separator=: | |
9029 | hardcode_shlibpath_var=no | |
9030 | ;; | |
d9898ee8 | 9031 | |
8d138742 CE |
9032 | *nto* | *qnx*) |
9033 | ;; | |
d9898ee8 | 9034 | |
8d138742 CE |
9035 | openbsd*) |
9036 | if test -f /usr/libexec/ld.so; then | |
9037 | hardcode_direct=yes | |
9038 | hardcode_shlibpath_var=no | |
9039 | hardcode_direct_absolute=yes | |
9040 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
9041 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9042 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
9043 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9044 | export_dynamic_flag_spec='${wl}-E' | |
9045 | else | |
9046 | case $host_os in | |
9047 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
9048 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9049 | hardcode_libdir_flag_spec='-R$libdir' | |
9050 | ;; | |
9051 | *) | |
9052 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9053 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9054 | ;; | |
9055 | esac | |
9056 | fi | |
d9898ee8 | 9057 | else |
8d138742 | 9058 | ld_shlibs=no |
d9898ee8 | 9059 | fi |
d9898ee8 | 9060 | ;; |
8d138742 CE |
9061 | |
9062 | os2*) | |
9063 | hardcode_libdir_flag_spec='-L$libdir' | |
9064 | hardcode_minus_L=yes | |
9065 | allow_undefined_flag=unsupported | |
9066 | 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' | |
9067 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
d9898ee8 | 9068 | ;; |
8d138742 CE |
9069 | |
9070 | osf3*) | |
9071 | if test "$GCC" = yes; then | |
9072 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
9073 | 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' | |
d9898ee8 | 9074 | else |
8d138742 CE |
9075 | allow_undefined_flag=' -expect_unresolved \*' |
9076 | 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' | |
d9898ee8 | 9077 | fi |
8d138742 CE |
9078 | archive_cmds_need_lc='no' |
9079 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9080 | hardcode_libdir_separator=: | |
d9898ee8 | 9081 | ;; |
d9898ee8 | 9082 | |
8d138742 CE |
9083 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
9084 | if test "$GCC" = yes; then | |
9085 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
9086 | 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' | |
9087 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9088 | else | |
9089 | allow_undefined_flag=' -expect_unresolved \*' | |
9090 | 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' | |
9091 | 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~ | |
9092 | $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' | |
9093 | ||
9094 | # Both c and cxx compiler support -rpath directly | |
9095 | hardcode_libdir_flag_spec='-rpath $libdir' | |
9096 | fi | |
9097 | archive_cmds_need_lc='no' | |
9098 | hardcode_libdir_separator=: | |
d9898ee8 | 9099 | ;; |
d9898ee8 | 9100 | |
8d138742 CE |
9101 | solaris*) |
9102 | no_undefined_flag=' -z defs' | |
9103 | if test "$GCC" = yes; then | |
9104 | wlarc='${wl}' | |
9105 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9106 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9107 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9108 | else | |
9109 | case `$CC -V 2>&1` in | |
9110 | *"Compilers 5.0"*) | |
9111 | wlarc='' | |
9112 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9113 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9114 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
d9898ee8 | 9115 | ;; |
9116 | *) | |
8d138742 CE |
9117 | wlarc='${wl}' |
9118 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9119 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9120 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
d9898ee8 | 9121 | ;; |
9122 | esac | |
8d138742 CE |
9123 | fi |
9124 | hardcode_libdir_flag_spec='-R$libdir' | |
9125 | hardcode_shlibpath_var=no | |
9126 | case $host_os in | |
9127 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
d9898ee8 | 9128 | *) |
8d138742 CE |
9129 | # The compiler driver will combine and reorder linker options, |
9130 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
9131 | # but is careful enough not to reorder. | |
9132 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
9133 | if test "$GCC" = yes; then | |
9134 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
d9898ee8 | 9135 | else |
8d138742 | 9136 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
d9898ee8 | 9137 | fi |
d9898ee8 | 9138 | ;; |
8d138742 CE |
9139 | esac |
9140 | link_all_deplibs=yes | |
9141 | ;; | |
9142 | ||
9143 | sunos4*) | |
9144 | if test "x$host_vendor" = xsequent; then | |
9145 | # Use $CC to link under sequent, because it throws in some extra .o | |
9146 | # files that make .init and .fini sections work. | |
9147 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9148 | else | |
9149 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
9150 | fi | |
9151 | hardcode_libdir_flag_spec='-L$libdir' | |
9152 | hardcode_direct=yes | |
9153 | hardcode_minus_L=yes | |
9154 | hardcode_shlibpath_var=no | |
9155 | ;; | |
9156 | ||
9157 | sysv4) | |
9158 | case $host_vendor in | |
9159 | sni) | |
9160 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9161 | hardcode_direct=yes # is this really true??? | |
d9898ee8 | 9162 | ;; |
8d138742 CE |
9163 | siemens) |
9164 | ## LD is ld it makes a PLAMLIB | |
9165 | ## CC just makes a GrossModule. | |
9166 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
9167 | reload_cmds='$CC -r -o $output$reload_objs' | |
9168 | hardcode_direct=no | |
d9898ee8 | 9169 | ;; |
8d138742 CE |
9170 | motorola) |
9171 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9172 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
9173 | ;; | |
9174 | esac | |
9175 | runpath_var='LD_RUN_PATH' | |
9176 | hardcode_shlibpath_var=no | |
9177 | ;; | |
9178 | ||
9179 | sysv4.3*) | |
9180 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9181 | hardcode_shlibpath_var=no | |
9182 | export_dynamic_flag_spec='-Bexport' | |
9183 | ;; | |
d9898ee8 | 9184 | |
8d138742 CE |
9185 | sysv4*MP*) |
9186 | if test -d /usr/nec; then | |
9187 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9188 | hardcode_shlibpath_var=no | |
d9898ee8 | 9189 | runpath_var=LD_RUN_PATH |
8d138742 CE |
9190 | hardcode_runpath_var=yes |
9191 | ld_shlibs=yes | |
ac40fd9e | 9192 | fi |
8d138742 | 9193 | ;; |
d9898ee8 | 9194 | |
8d138742 CE |
9195 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
9196 | no_undefined_flag='${wl}-z,text' | |
9197 | archive_cmds_need_lc=no | |
9198 | hardcode_shlibpath_var=no | |
9199 | runpath_var='LD_RUN_PATH' | |
d9898ee8 | 9200 | |
8d138742 CE |
9201 | if test "$GCC" = yes; then |
9202 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9203 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9204 | else | |
9205 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9206 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9207 | fi | |
9208 | ;; | |
d9898ee8 | 9209 | |
8d138742 CE |
9210 | sysv5* | sco3.2v5* | sco5v6*) |
9211 | # Note: We can NOT use -z defs as we might desire, because we do not | |
9212 | # link with -lc, and that would cause any symbols used from libc to | |
9213 | # always be unresolved, which means just about no library would | |
9214 | # ever link correctly. If we're not using GNU ld we use -z text | |
9215 | # though, which does catch some bad symbols but isn't as heavy-handed | |
9216 | # as -z defs. | |
9217 | no_undefined_flag='${wl}-z,text' | |
9218 | allow_undefined_flag='${wl}-z,nodefs' | |
9219 | archive_cmds_need_lc=no | |
9220 | hardcode_shlibpath_var=no | |
9221 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
9222 | hardcode_libdir_separator=':' | |
9223 | link_all_deplibs=yes | |
9224 | export_dynamic_flag_spec='${wl}-Bexport' | |
9225 | runpath_var='LD_RUN_PATH' | |
d9898ee8 | 9226 | |
8d138742 CE |
9227 | if test "$GCC" = yes; then |
9228 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9229 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9230 | else | |
9231 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9232 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9233 | fi | |
9234 | ;; | |
d9898ee8 | 9235 | |
8d138742 CE |
9236 | uts4*) |
9237 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9238 | hardcode_libdir_flag_spec='-L$libdir' | |
9239 | hardcode_shlibpath_var=no | |
9240 | ;; | |
d9898ee8 | 9241 | |
8d138742 CE |
9242 | *) |
9243 | ld_shlibs=no | |
9244 | ;; | |
d9898ee8 | 9245 | esac |
d9898ee8 | 9246 | |
8d138742 CE |
9247 | if test x$host_vendor = xsni; then |
9248 | case $host in | |
9249 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
9250 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
9251 | ;; | |
9252 | esac | |
9253 | fi | |
9254 | fi | |
d9898ee8 | 9255 | |
8d138742 CE |
9256 | { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
9257 | $as_echo "$ld_shlibs" >&6; } | |
9258 | test "$ld_shlibs" = no && can_build_shared=no | |
d9898ee8 | 9259 | |
8d138742 | 9260 | with_gnu_ld=$with_gnu_ld |
d9898ee8 | 9261 | |
d9898ee8 | 9262 | |
d9898ee8 | 9263 | |
d9898ee8 | 9264 | |
d9898ee8 | 9265 | |
d9898ee8 | 9266 | |
9267 | ||
d9898ee8 | 9268 | |
d9898ee8 | 9269 | |
d9898ee8 | 9270 | |
d9898ee8 | 9271 | |
d9898ee8 | 9272 | |
d9898ee8 | 9273 | |
d9898ee8 | 9274 | |
d9898ee8 | 9275 | |
8d138742 CE |
9276 | # |
9277 | # Do we need to explicitly link libc? | |
9278 | # | |
9279 | case "x$archive_cmds_need_lc" in | |
9280 | x|xyes) | |
9281 | # Assume -lc should be added | |
9282 | archive_cmds_need_lc=yes | |
d9898ee8 | 9283 | |
8d138742 CE |
9284 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
9285 | case $archive_cmds in | |
9286 | *'~'*) | |
9287 | # FIXME: we may have to deal with multi-command sequences. | |
ac40fd9e | 9288 | ;; |
8d138742 CE |
9289 | '$CC '*) |
9290 | # Test whether the compiler implicitly links with -lc since on some | |
9291 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
9292 | # to ld, don't add -lc before -lgcc. | |
9293 | { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
9294 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
9295 | $RM conftest* | |
9296 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
ac40fd9e | 9297 | |
8d138742 CE |
9298 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
9299 | (eval $ac_compile) 2>&5 | |
9300 | ac_status=$? | |
9301 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9302 | (exit $ac_status); } 2>conftest.err; then | |
9303 | soname=conftest | |
9304 | lib=conftest | |
9305 | libobjs=conftest.$ac_objext | |
9306 | deplibs= | |
9307 | wl=$lt_prog_compiler_wl | |
9308 | pic_flag=$lt_prog_compiler_pic | |
9309 | compiler_flags=-v | |
9310 | linker_flags=-v | |
9311 | verstring= | |
9312 | output_objdir=. | |
9313 | libname=conftest | |
9314 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
9315 | allow_undefined_flag= | |
9316 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
9317 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
9318 | ac_status=$? | |
9319 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9320 | (exit $ac_status); } | |
9321 | then | |
9322 | archive_cmds_need_lc=no | |
9323 | else | |
9324 | archive_cmds_need_lc=yes | |
9325 | fi | |
9326 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
9327 | else | |
9328 | cat conftest.err 1>&5 | |
9329 | fi | |
9330 | $RM conftest* | |
9331 | { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 | |
9332 | $as_echo "$archive_cmds_need_lc" >&6; } | |
ac40fd9e | 9333 | ;; |
9334 | esac | |
8d138742 | 9335 | fi |
d9898ee8 | 9336 | ;; |
9337 | esac | |
9338 | ||
9339 | ||
d9898ee8 | 9340 | |
d9898ee8 | 9341 | |
d9898ee8 | 9342 | |
d9898ee8 | 9343 | |
d9898ee8 | 9344 | |
d9898ee8 | 9345 | |
d9898ee8 | 9346 | |
d9898ee8 | 9347 | |
d9898ee8 | 9348 | |
d9898ee8 | 9349 | |
d9898ee8 | 9350 | |
d9898ee8 | 9351 | |
d9898ee8 | 9352 | |
d9898ee8 | 9353 | |
9354 | ||
d9898ee8 | 9355 | |
d9898ee8 | 9356 | |
d9898ee8 | 9357 | |
9358 | ||
d9898ee8 | 9359 | |
d9898ee8 | 9360 | |
d9898ee8 | 9361 | |
d9898ee8 | 9362 | |
d9898ee8 | 9363 | |
d9898ee8 | 9364 | |
d9898ee8 | 9365 | |
ac40fd9e | 9366 | |
8d138742 CE |
9367 | |
9368 | ||
9369 | ||
9370 | ||
9371 | ||
9372 | ||
9373 | ||
9374 | ||
9375 | ||
9376 | ||
9377 | ||
9378 | ||
9379 | ||
9380 | ||
9381 | ||
9382 | ||
9383 | ||
9384 | ||
9385 | ||
9386 | ||
9387 | ||
9388 | ||
9389 | ||
9390 | ||
9391 | ||
9392 | ||
9393 | ||
9394 | ||
9395 | ||
9396 | ||
9397 | ||
9398 | ||
9399 | ||
9400 | ||
9401 | ||
9402 | ||
9403 | ||
9404 | ||
9405 | ||
9406 | ||
9407 | ||
9408 | ||
9409 | ||
9410 | ||
9411 | ||
9412 | ||
9413 | ||
9414 | ||
9415 | ||
9416 | ||
9417 | ||
9418 | ||
9419 | ||
9420 | ||
9421 | ||
9422 | ||
9423 | ||
9424 | ||
9425 | ||
9426 | ||
9427 | ||
9428 | ||
9429 | ||
9430 | ||
9431 | ||
9432 | ||
9433 | ||
9434 | ||
9435 | ||
9436 | ||
9437 | ||
9438 | ||
9439 | ||
9440 | ||
9441 | ||
9442 | ||
9443 | ||
9444 | ||
9445 | ||
9446 | ||
9447 | ||
9448 | ||
9449 | ||
9450 | ||
9451 | ||
9452 | ||
9453 | ||
9454 | ||
9455 | ||
9456 | ||
9457 | ||
9458 | ||
9459 | ||
9460 | ||
9461 | ||
9462 | ||
9463 | ||
9464 | ||
9465 | ||
9466 | ||
9467 | ||
9468 | ||
9469 | ||
9470 | ||
9471 | ||
9472 | ||
9473 | ||
9474 | ||
9475 | ||
9476 | ||
9477 | ||
9478 | ||
9479 | ||
9480 | ||
9481 | ||
9482 | ||
9483 | ||
9484 | ||
9485 | ||
9486 | ||
9487 | ||
9488 | ||
9489 | ||
9490 | ||
9491 | ||
9492 | ||
9493 | ||
9494 | ||
9495 | { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
9496 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
9497 | ||
9498 | if test "$GCC" = yes; then | |
9499 | case $host_os in | |
9500 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
9501 | *) lt_awk_arg="/^libraries:/" ;; | |
9502 | esac | |
9503 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
9504 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | |
9505 | # if the path contains ";" then we assume it to be the separator | |
9506 | # otherwise default to the standard path separator (i.e. ":") - it is | |
9507 | # assumed that no part of a normal pathname contains ";" but that should | |
9508 | # okay in the real world where ";" in dirpaths is itself problematic. | |
9509 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | |
9510 | else | |
9511 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
9512 | fi | |
9513 | # Ok, now we have the path, separated by spaces, we can step through it | |
9514 | # and add multilib dir if necessary. | |
9515 | lt_tmp_lt_search_path_spec= | |
9516 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
9517 | for lt_sys_path in $lt_search_path_spec; do | |
9518 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
9519 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
9520 | else | |
9521 | test -d "$lt_sys_path" && \ | |
9522 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
9523 | fi | |
9524 | done | |
9525 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | |
9526 | BEGIN {RS=" "; FS="/|\n";} { | |
9527 | lt_foo=""; | |
9528 | lt_count=0; | |
9529 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
9530 | if ($lt_i != "" && $lt_i != ".") { | |
9531 | if ($lt_i == "..") { | |
9532 | lt_count++; | |
9533 | } else { | |
9534 | if (lt_count == 0) { | |
9535 | lt_foo="/" $lt_i lt_foo; | |
9536 | } else { | |
9537 | lt_count--; | |
9538 | } | |
9539 | } | |
9540 | } | |
9541 | } | |
9542 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
9543 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
9544 | }'` | |
9545 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | |
9546 | else | |
9547 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
9548 | fi | |
9549 | library_names_spec= | |
9550 | libname_spec='lib$name' | |
9551 | soname_spec= | |
9552 | shrext_cmds=".so" | |
9553 | postinstall_cmds= | |
9554 | postuninstall_cmds= | |
9555 | finish_cmds= | |
9556 | finish_eval= | |
9557 | shlibpath_var= | |
9558 | shlibpath_overrides_runpath=unknown | |
9559 | version_type=none | |
9560 | dynamic_linker="$host_os ld.so" | |
9561 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
9562 | need_lib_prefix=unknown | |
d9898ee8 | 9563 | hardcode_into_libs=no |
9564 | ||
9565 | # when you set need_version to no, make sure it does not cause -set_version | |
9566 | # flags to be left without arguments | |
9567 | need_version=unknown | |
9568 | ||
9569 | case $host_os in | |
9570 | aix3*) | |
9571 | version_type=linux | |
9572 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
9573 | shlibpath_var=LIBPATH | |
9574 | ||
9575 | # AIX 3 has no versioning support, so we append a major version to the name. | |
9576 | soname_spec='${libname}${release}${shared_ext}$major' | |
9577 | ;; | |
9578 | ||
8d138742 | 9579 | aix[4-9]*) |
d9898ee8 | 9580 | version_type=linux |
9581 | need_lib_prefix=no | |
9582 | need_version=no | |
9583 | hardcode_into_libs=yes | |
9584 | if test "$host_cpu" = ia64; then | |
9585 | # AIX 5 supports IA64 | |
9586 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
9587 | shlibpath_var=LD_LIBRARY_PATH | |
9588 | else | |
9589 | # With GCC up to 2.95.x, collect2 would create an import file | |
9590 | # for dependence libraries. The import file would start with | |
9591 | # the line `#! .'. This would cause the generated library to | |
9592 | # depend on `.', always an invalid library. This was fixed in | |
9593 | # development snapshots of GCC prior to 3.0. | |
9594 | case $host_os in | |
9595 | aix4 | aix4.[01] | aix4.[01].*) | |
9596 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
9597 | echo ' yes ' | |
8d138742 | 9598 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
d9898ee8 | 9599 | : |
9600 | else | |
9601 | can_build_shared=no | |
9602 | fi | |
9603 | ;; | |
9604 | esac | |
9605 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
9606 | # soname into executable. Probably we can add versioning support to | |
9607 | # collect2, so additional links can be useful in future. | |
9608 | if test "$aix_use_runtimelinking" = yes; then | |
9609 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
9610 | # instead of lib<name>.a to let people know that these are not | |
9611 | # typical AIX shared libraries. | |
9612 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9613 | else | |
9614 | # We preserve .a as extension for shared libraries through AIX4.2 | |
9615 | # and later when we are not doing run time linking. | |
9616 | library_names_spec='${libname}${release}.a $libname.a' | |
9617 | soname_spec='${libname}${release}${shared_ext}$major' | |
9618 | fi | |
9619 | shlibpath_var=LIBPATH | |
9620 | fi | |
9621 | ;; | |
9622 | ||
9623 | amigaos*) | |
8d138742 CE |
9624 | case $host_cpu in |
9625 | powerpc) | |
9626 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
9627 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
9628 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9629 | ;; | |
9630 | m68k) | |
9631 | library_names_spec='$libname.ixlibrary $libname.a' | |
9632 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
9633 | 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' | |
9634 | ;; | |
9635 | esac | |
d9898ee8 | 9636 | ;; |
9637 | ||
9638 | beos*) | |
9639 | library_names_spec='${libname}${shared_ext}' | |
9640 | dynamic_linker="$host_os ld.so" | |
9641 | shlibpath_var=LIBRARY_PATH | |
9642 | ;; | |
9643 | ||
9644 | bsdi[45]*) | |
9645 | version_type=linux | |
9646 | need_version=no | |
9647 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9648 | soname_spec='${libname}${release}${shared_ext}$major' | |
9649 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
9650 | shlibpath_var=LD_LIBRARY_PATH | |
9651 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
9652 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
9653 | # the default ld.so.conf also contains /usr/contrib/lib and | |
9654 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
9655 | # libtool to hard-code these into programs | |
9656 | ;; | |
9657 | ||
8d138742 | 9658 | cygwin* | mingw* | pw32* | cegcc*) |
d9898ee8 | 9659 | version_type=windows |
9660 | shrext_cmds=".dll" | |
9661 | need_version=no | |
9662 | need_lib_prefix=no | |
9663 | ||
9664 | case $GCC,$host_os in | |
8d138742 | 9665 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) |
d9898ee8 | 9666 | library_names_spec='$libname.dll.a' |
9667 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
9668 | postinstall_cmds='base_file=`basename \${file}`~ | |
8d138742 | 9669 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
d9898ee8 | 9670 | dldir=$destdir/`dirname \$dlpath`~ |
9671 | test -d \$dldir || mkdir -p \$dldir~ | |
9672 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
8d138742 CE |
9673 | chmod a+x \$dldir/$dlname~ |
9674 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
9675 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
9676 | fi' | |
d9898ee8 | 9677 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
9678 | dlpath=$dir/\$dldll~ | |
8d138742 | 9679 | $RM \$dlpath' |
d9898ee8 | 9680 | shlibpath_overrides_runpath=yes |
9681 | ||
9682 | case $host_os in | |
9683 | cygwin*) | |
9684 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
9685 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
9686 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
9687 | ;; | |
8d138742 | 9688 | mingw* | cegcc*) |
d9898ee8 | 9689 | # MinGW DLLs use traditional 'lib' prefix |
9690 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
8d138742 CE |
9691 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
9692 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
d9898ee8 | 9693 | # It is most probably a Windows format PATH printed by |
9694 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
9695 | # path with ; separators, and with drive letters. We can handle the | |
9696 | # drive letters (cygwin fileutils understands them), so leave them, | |
9697 | # especially as we might pass files found there to a mingw objdump, | |
9698 | # which wouldn't understand a cygwinified path. Ahh. | |
8d138742 | 9699 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
d9898ee8 | 9700 | else |
8d138742 | 9701 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
d9898ee8 | 9702 | fi |
9703 | ;; | |
9704 | pw32*) | |
9705 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
9706 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
9707 | ;; | |
9708 | esac | |
9709 | ;; | |
9710 | ||
9711 | *) | |
9712 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
9713 | ;; | |
9714 | esac | |
9715 | dynamic_linker='Win32 ld.exe' | |
9716 | # FIXME: first we should search . and the directory the executable is in | |
9717 | shlibpath_var=PATH | |
9718 | ;; | |
9719 | ||
9720 | darwin* | rhapsody*) | |
9721 | dynamic_linker="$host_os dyld" | |
9722 | version_type=darwin | |
9723 | need_lib_prefix=no | |
9724 | need_version=no | |
8d138742 | 9725 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
d9898ee8 | 9726 | soname_spec='${libname}${release}${major}$shared_ext' |
9727 | shlibpath_overrides_runpath=yes | |
9728 | shlibpath_var=DYLD_LIBRARY_PATH | |
9729 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
ac40fd9e | 9730 | |
8d138742 | 9731 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
d9898ee8 | 9732 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
9733 | ;; | |
9734 | ||
9735 | dgux*) | |
9736 | version_type=linux | |
9737 | need_lib_prefix=no | |
9738 | need_version=no | |
9739 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
9740 | soname_spec='${libname}${release}${shared_ext}$major' | |
9741 | shlibpath_var=LD_LIBRARY_PATH | |
9742 | ;; | |
9743 | ||
9744 | freebsd1*) | |
9745 | dynamic_linker=no | |
9746 | ;; | |
9747 | ||
d9898ee8 | 9748 | freebsd* | dragonfly*) |
9749 | # DragonFly does not have aout. When/if they implement a new | |
9750 | # versioning mechanism, adjust this. | |
9751 | if test -x /usr/bin/objformat; then | |
9752 | objformat=`/usr/bin/objformat` | |
9753 | else | |
9754 | case $host_os in | |
9755 | freebsd[123]*) objformat=aout ;; | |
9756 | *) objformat=elf ;; | |
9757 | esac | |
9758 | fi | |
9759 | version_type=freebsd-$objformat | |
9760 | case $version_type in | |
9761 | freebsd-elf*) | |
9762 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9763 | need_version=no | |
9764 | need_lib_prefix=no | |
9765 | ;; | |
9766 | freebsd-*) | |
9767 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
9768 | need_version=yes | |
9769 | ;; | |
9770 | esac | |
9771 | shlibpath_var=LD_LIBRARY_PATH | |
9772 | case $host_os in | |
9773 | freebsd2*) | |
9774 | shlibpath_overrides_runpath=yes | |
9775 | ;; | |
9776 | freebsd3.[01]* | freebsdelf3.[01]*) | |
9777 | shlibpath_overrides_runpath=yes | |
9778 | hardcode_into_libs=yes | |
9779 | ;; | |
9780 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
9781 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
9782 | shlibpath_overrides_runpath=no | |
9783 | hardcode_into_libs=yes | |
9784 | ;; | |
ac40fd9e | 9785 | *) # from 4.6 on, and DragonFly |
d9898ee8 | 9786 | shlibpath_overrides_runpath=yes |
9787 | hardcode_into_libs=yes | |
9788 | ;; | |
9789 | esac | |
9790 | ;; | |
9791 | ||
9792 | gnu*) | |
9793 | version_type=linux | |
9794 | need_lib_prefix=no | |
9795 | need_version=no | |
9796 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
9797 | soname_spec='${libname}${release}${shared_ext}$major' | |
9798 | shlibpath_var=LD_LIBRARY_PATH | |
9799 | hardcode_into_libs=yes | |
9800 | ;; | |
9801 | ||
9802 | hpux9* | hpux10* | hpux11*) | |
9803 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
9804 | # link against other versions. | |
9805 | version_type=sunos | |
9806 | need_lib_prefix=no | |
9807 | need_version=no | |
9808 | case $host_cpu in | |
9809 | ia64*) | |
9810 | shrext_cmds='.so' | |
9811 | hardcode_into_libs=yes | |
9812 | dynamic_linker="$host_os dld.so" | |
9813 | shlibpath_var=LD_LIBRARY_PATH | |
9814 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
9815 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9816 | soname_spec='${libname}${release}${shared_ext}$major' | |
9817 | if test "X$HPUX_IA64_MODE" = X32; then | |
9818 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
9819 | else | |
9820 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
9821 | fi | |
9822 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
9823 | ;; | |
8d138742 CE |
9824 | hppa*64*) |
9825 | shrext_cmds='.sl' | |
9826 | hardcode_into_libs=yes | |
9827 | dynamic_linker="$host_os dld.sl" | |
9828 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
9829 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
9830 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9831 | soname_spec='${libname}${release}${shared_ext}$major' | |
9832 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
9833 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
9834 | ;; | |
9835 | *) | |
d9898ee8 | 9836 | shrext_cmds='.sl' |
9837 | dynamic_linker="$host_os dld.sl" | |
9838 | shlibpath_var=SHLIB_PATH | |
9839 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
9840 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9841 | soname_spec='${libname}${release}${shared_ext}$major' | |
9842 | ;; | |
9843 | esac | |
9844 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
9845 | postinstall_cmds='chmod 555 $lib' | |
9846 | ;; | |
9847 | ||
ac40fd9e | 9848 | interix[3-9]*) |
d9898ee8 | 9849 | version_type=linux |
9850 | need_lib_prefix=no | |
9851 | need_version=no | |
9852 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
9853 | soname_spec='${libname}${release}${shared_ext}$major' | |
9854 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
9855 | shlibpath_var=LD_LIBRARY_PATH | |
9856 | shlibpath_overrides_runpath=no | |
9857 | hardcode_into_libs=yes | |
9858 | ;; | |
9859 | ||
9860 | irix5* | irix6* | nonstopux*) | |
9861 | case $host_os in | |
9862 | nonstopux*) version_type=nonstopux ;; | |
9863 | *) | |
9864 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
9865 | version_type=linux | |
9866 | else | |
9867 | version_type=irix | |
9868 | fi ;; | |
9869 | esac | |
9870 | need_lib_prefix=no | |
9871 | need_version=no | |
9872 | soname_spec='${libname}${release}${shared_ext}$major' | |
9873 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9874 | case $host_os in | |
9875 | irix5* | nonstopux*) | |
9876 | libsuff= shlibsuff= | |
9877 | ;; | |
9878 | *) | |
9879 | case $LD in # libtool.m4 will add one of these switches to LD | |
9880 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
9881 | libsuff= shlibsuff= libmagic=32-bit;; | |
9882 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
9883 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
9884 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
9885 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
9886 | *) libsuff= shlibsuff= libmagic=never-match;; | |
9887 | esac | |
9888 | ;; | |
9889 | esac | |
9890 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
9891 | shlibpath_overrides_runpath=no | |
9892 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
9893 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
9894 | hardcode_into_libs=yes | |
9895 | ;; | |
9896 | ||
9897 | # No shared lib support for Linux oldld, aout, or coff. | |
9898 | linux*oldld* | linux*aout* | linux*coff*) | |
9899 | dynamic_linker=no | |
9900 | ;; | |
9901 | ||
9902 | # This must be Linux ELF. | |
ac40fd9e | 9903 | linux* | k*bsd*-gnu) |
d9898ee8 | 9904 | version_type=linux |
9905 | need_lib_prefix=no | |
9906 | need_version=no | |
9907 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9908 | soname_spec='${libname}${release}${shared_ext}$major' | |
9909 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
9910 | shlibpath_var=LD_LIBRARY_PATH | |
9911 | shlibpath_overrides_runpath=no | |
8d138742 CE |
9912 | # Some binutils ld are patched to set DT_RUNPATH |
9913 | save_LDFLAGS=$LDFLAGS | |
9914 | save_libdir=$libdir | |
9915 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
9916 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
9917 | cat >conftest.$ac_ext <<_ACEOF | |
9918 | /* confdefs.h. */ | |
9919 | _ACEOF | |
9920 | cat confdefs.h >>conftest.$ac_ext | |
9921 | cat >>conftest.$ac_ext <<_ACEOF | |
9922 | /* end confdefs.h. */ | |
9923 | ||
9924 | int | |
9925 | main () | |
9926 | { | |
9927 | ||
9928 | ; | |
9929 | return 0; | |
9930 | } | |
9931 | _ACEOF | |
9932 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9933 | if { (ac_try="$ac_link" | |
9934 | case "(($ac_try" in | |
9935 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9936 | *) ac_try_echo=$ac_try;; | |
9937 | esac | |
9938 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9939 | $as_echo "$ac_try_echo") >&5 | |
9940 | (eval "$ac_link") 2>conftest.er1 | |
9941 | ac_status=$? | |
9942 | grep -v '^ *+' conftest.er1 >conftest.err | |
9943 | rm -f conftest.er1 | |
9944 | cat conftest.err >&5 | |
9945 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9946 | (exit $ac_status); } && { | |
9947 | test -z "$ac_c_werror_flag" || | |
9948 | test ! -s conftest.err | |
9949 | } && test -s conftest$ac_exeext && { | |
9950 | test "$cross_compiling" = yes || | |
9951 | $as_test_x conftest$ac_exeext | |
9952 | }; then | |
9953 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then | |
9954 | shlibpath_overrides_runpath=yes | |
9955 | fi | |
9956 | ||
9957 | else | |
9958 | $as_echo "$as_me: failed program was:" >&5 | |
9959 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9960 | ||
9961 | ||
9962 | fi | |
9963 | ||
9964 | rm -rf conftest.dSYM | |
9965 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
9966 | conftest$ac_exeext conftest.$ac_ext | |
9967 | LDFLAGS=$save_LDFLAGS | |
9968 | libdir=$save_libdir | |
9969 | ||
d9898ee8 | 9970 | # This implies no fast_install, which is unacceptable. |
9971 | # Some rework will be needed to allow for fast_install | |
9972 | # before this can be enabled. | |
9973 | hardcode_into_libs=yes | |
8d138742 CE |
9974 | |
9975 | # Add ABI-specific directories to the system library path. | |
9976 | sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" | |
d9898ee8 | 9977 | |
9978 | # Append ld.so.conf contents to the search path | |
9979 | if test -f /etc/ld.so.conf; then | |
8d138742 | 9980 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
ac40fd9e | 9981 | sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" |
d9898ee8 | 9982 | fi |
9983 | ||
9984 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
9985 | # powerpc, because MkLinux only supported shared libraries with the | |
9986 | # GNU dynamic linker. Since this was broken with cross compilers, | |
9987 | # most powerpc-linux boxes support dynamic linking these days and | |
9988 | # people can always --disable-shared, the test was removed, and we | |
9989 | # assume the GNU/Linux dynamic linker is in use. | |
9990 | dynamic_linker='GNU/Linux ld.so' | |
9991 | ;; | |
9992 | ||
d9898ee8 | 9993 | netbsd*) |
9994 | version_type=sunos | |
9995 | need_lib_prefix=no | |
9996 | need_version=no | |
8d138742 | 9997 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
d9898ee8 | 9998 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
9999 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10000 | dynamic_linker='NetBSD (a.out) ld.so' | |
10001 | else | |
10002 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10003 | soname_spec='${libname}${release}${shared_ext}$major' | |
10004 | dynamic_linker='NetBSD ld.elf_so' | |
10005 | fi | |
10006 | shlibpath_var=LD_LIBRARY_PATH | |
10007 | shlibpath_overrides_runpath=yes | |
10008 | hardcode_into_libs=yes | |
10009 | ;; | |
10010 | ||
10011 | newsos6) | |
10012 | version_type=linux | |
10013 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10014 | shlibpath_var=LD_LIBRARY_PATH | |
10015 | shlibpath_overrides_runpath=yes | |
10016 | ;; | |
10017 | ||
8d138742 CE |
10018 | *nto* | *qnx*) |
10019 | version_type=qnx | |
d9898ee8 | 10020 | need_lib_prefix=no |
10021 | need_version=no | |
10022 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10023 | soname_spec='${libname}${release}${shared_ext}$major' | |
10024 | shlibpath_var=LD_LIBRARY_PATH | |
8d138742 CE |
10025 | shlibpath_overrides_runpath=no |
10026 | hardcode_into_libs=yes | |
10027 | dynamic_linker='ldqnx.so' | |
d9898ee8 | 10028 | ;; |
10029 | ||
10030 | openbsd*) | |
10031 | version_type=sunos | |
10032 | sys_lib_dlsearch_path_spec="/usr/lib" | |
10033 | need_lib_prefix=no | |
10034 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
10035 | case $host_os in | |
8d138742 CE |
10036 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
10037 | *) need_version=no ;; | |
d9898ee8 | 10038 | esac |
10039 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10040 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10041 | shlibpath_var=LD_LIBRARY_PATH | |
8d138742 | 10042 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
d9898ee8 | 10043 | case $host_os in |
10044 | openbsd2.[89] | openbsd2.[89].*) | |
10045 | shlibpath_overrides_runpath=no | |
10046 | ;; | |
10047 | *) | |
10048 | shlibpath_overrides_runpath=yes | |
10049 | ;; | |
10050 | esac | |
10051 | else | |
10052 | shlibpath_overrides_runpath=yes | |
10053 | fi | |
10054 | ;; | |
10055 | ||
10056 | os2*) | |
10057 | libname_spec='$name' | |
10058 | shrext_cmds=".dll" | |
10059 | need_lib_prefix=no | |
10060 | library_names_spec='$libname${shared_ext} $libname.a' | |
10061 | dynamic_linker='OS/2 ld.exe' | |
10062 | shlibpath_var=LIBPATH | |
10063 | ;; | |
10064 | ||
10065 | osf3* | osf4* | osf5*) | |
10066 | version_type=osf | |
10067 | need_lib_prefix=no | |
10068 | need_version=no | |
10069 | soname_spec='${libname}${release}${shared_ext}$major' | |
10070 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10071 | shlibpath_var=LD_LIBRARY_PATH | |
10072 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
10073 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
10074 | ;; | |
10075 | ||
ac40fd9e | 10076 | rdos*) |
10077 | dynamic_linker=no | |
10078 | ;; | |
10079 | ||
d9898ee8 | 10080 | solaris*) |
10081 | version_type=linux | |
10082 | need_lib_prefix=no | |
10083 | need_version=no | |
10084 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10085 | soname_spec='${libname}${release}${shared_ext}$major' | |
10086 | shlibpath_var=LD_LIBRARY_PATH | |
10087 | shlibpath_overrides_runpath=yes | |
10088 | hardcode_into_libs=yes | |
10089 | # ldd complains unless libraries are executable | |
10090 | postinstall_cmds='chmod +x $lib' | |
10091 | ;; | |
10092 | ||
10093 | sunos4*) | |
10094 | version_type=sunos | |
10095 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10096 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
10097 | shlibpath_var=LD_LIBRARY_PATH | |
10098 | shlibpath_overrides_runpath=yes | |
10099 | if test "$with_gnu_ld" = yes; then | |
10100 | need_lib_prefix=no | |
10101 | fi | |
10102 | need_version=yes | |
10103 | ;; | |
10104 | ||
10105 | sysv4 | sysv4.3*) | |
10106 | version_type=linux | |
10107 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10108 | soname_spec='${libname}${release}${shared_ext}$major' | |
10109 | shlibpath_var=LD_LIBRARY_PATH | |
10110 | case $host_vendor in | |
10111 | sni) | |
10112 | shlibpath_overrides_runpath=no | |
10113 | need_lib_prefix=no | |
d9898ee8 | 10114 | runpath_var=LD_RUN_PATH |
10115 | ;; | |
10116 | siemens) | |
10117 | need_lib_prefix=no | |
10118 | ;; | |
10119 | motorola) | |
10120 | need_lib_prefix=no | |
10121 | need_version=no | |
10122 | shlibpath_overrides_runpath=no | |
10123 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
10124 | ;; | |
10125 | esac | |
10126 | ;; | |
10127 | ||
10128 | sysv4*MP*) | |
10129 | if test -d /usr/nec ;then | |
10130 | version_type=linux | |
10131 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
10132 | soname_spec='$libname${shared_ext}.$major' | |
10133 | shlibpath_var=LD_LIBRARY_PATH | |
10134 | fi | |
10135 | ;; | |
10136 | ||
10137 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
10138 | version_type=freebsd-elf | |
10139 | need_lib_prefix=no | |
10140 | need_version=no | |
10141 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10142 | soname_spec='${libname}${release}${shared_ext}$major' | |
10143 | shlibpath_var=LD_LIBRARY_PATH | |
8d138742 | 10144 | shlibpath_overrides_runpath=yes |
d9898ee8 | 10145 | hardcode_into_libs=yes |
10146 | if test "$with_gnu_ld" = yes; then | |
10147 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
d9898ee8 | 10148 | else |
10149 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
d9898ee8 | 10150 | case $host_os in |
10151 | sco3.2v5*) | |
10152 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
10153 | ;; | |
10154 | esac | |
10155 | fi | |
10156 | sys_lib_dlsearch_path_spec='/usr/lib' | |
10157 | ;; | |
10158 | ||
8d138742 CE |
10159 | tpf*) |
10160 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
10161 | version_type=linux | |
10162 | need_lib_prefix=no | |
10163 | need_version=no | |
10164 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10165 | shlibpath_var=LD_LIBRARY_PATH | |
10166 | shlibpath_overrides_runpath=no | |
10167 | hardcode_into_libs=yes | |
10168 | ;; | |
10169 | ||
d9898ee8 | 10170 | uts4*) |
10171 | version_type=linux | |
10172 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10173 | soname_spec='${libname}${release}${shared_ext}$major' | |
10174 | shlibpath_var=LD_LIBRARY_PATH | |
10175 | ;; | |
10176 | ||
10177 | *) | |
10178 | dynamic_linker=no | |
10179 | ;; | |
10180 | esac | |
8d138742 CE |
10181 | { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
10182 | $as_echo "$dynamic_linker" >&6; } | |
d9898ee8 | 10183 | test "$dynamic_linker" = no && can_build_shared=no |
10184 | ||
10185 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
10186 | if test "$GCC" = yes; then | |
10187 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
10188 | fi | |
10189 | ||
8d138742 CE |
10190 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
10191 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
d9898ee8 | 10192 | fi |
8d138742 CE |
10193 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
10194 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
d9898ee8 | 10195 | fi |
10196 | ||
10197 | ||
d9898ee8 | 10198 | |
d9898ee8 | 10199 | |
d9898ee8 | 10200 | |
d9898ee8 | 10201 | |
d9898ee8 | 10202 | |
d9898ee8 | 10203 | |
d9898ee8 | 10204 | |
d9898ee8 | 10205 | |
d9898ee8 | 10206 | |
d9898ee8 | 10207 | |
d9898ee8 | 10208 | |
d9898ee8 | 10209 | |
d9898ee8 | 10210 | |
d9898ee8 | 10211 | |
d9898ee8 | 10212 | |
d9898ee8 | 10213 | |
d9898ee8 | 10214 | |
d9898ee8 | 10215 | |
d9898ee8 | 10216 | |
d9898ee8 | 10217 | |
d9898ee8 | 10218 | |
d9898ee8 | 10219 | |
d9898ee8 | 10220 | |
d9898ee8 | 10221 | |
d9898ee8 | 10222 | |
d9898ee8 | 10223 | |
d9898ee8 | 10224 | |
d9898ee8 | 10225 | |
d9898ee8 | 10226 | |
d9898ee8 | 10227 | |
d9898ee8 | 10228 | |
d9898ee8 | 10229 | |
d9898ee8 | 10230 | |
d9898ee8 | 10231 | |
d9898ee8 | 10232 | |
d9898ee8 | 10233 | |
d9898ee8 | 10234 | |
d9898ee8 | 10235 | |
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 | |
8d138742 CE |
10283 | { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
10284 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
10285 | hardcode_action= | |
10286 | if test -n "$hardcode_libdir_flag_spec" || | |
10287 | test -n "$runpath_var" || | |
10288 | test "X$hardcode_automatic" = "Xyes" ; then | |
d9898ee8 | 10289 | |
8d138742 CE |
10290 | # We can hardcode non-existent directories. |
10291 | if test "$hardcode_direct" != no && | |
10292 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
10293 | # have to relink, otherwise we might link with an installed library | |
10294 | # when we should be linking with a yet-to-be-installed one | |
10295 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
10296 | test "$hardcode_minus_L" != no; then | |
10297 | # Linking always hardcodes the temporary library directory. | |
10298 | hardcode_action=relink | |
10299 | else | |
10300 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
10301 | hardcode_action=immediate | |
10302 | fi | |
10303 | else | |
10304 | # We cannot hardcode anything, or else we can only hardcode existing | |
10305 | # directories. | |
10306 | hardcode_action=unsupported | |
10307 | fi | |
10308 | { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 | |
10309 | $as_echo "$hardcode_action" >&6; } | |
d9898ee8 | 10310 | |
8d138742 CE |
10311 | if test "$hardcode_action" = relink || |
10312 | test "$inherit_rpath" = yes; then | |
10313 | # Fast installation is not supported | |
10314 | enable_fast_install=no | |
10315 | elif test "$shlibpath_overrides_runpath" = yes || | |
10316 | test "$enable_shared" = no; then | |
10317 | # Fast installation is not necessary | |
10318 | enable_fast_install=needless | |
10319 | fi | |
d9898ee8 | 10320 | |
d9898ee8 | 10321 | |
d9898ee8 | 10322 | |
d9898ee8 | 10323 | |
d9898ee8 | 10324 | |
d9898ee8 | 10325 | |
8d138742 CE |
10326 | if test "x$enable_dlopen" != xyes; then |
10327 | enable_dlopen=unknown | |
10328 | enable_dlopen_self=unknown | |
10329 | enable_dlopen_self_static=unknown | |
10330 | else | |
10331 | lt_cv_dlopen=no | |
10332 | lt_cv_dlopen_libs= | |
d9898ee8 | 10333 | |
8d138742 CE |
10334 | case $host_os in |
10335 | beos*) | |
10336 | lt_cv_dlopen="load_add_on" | |
10337 | lt_cv_dlopen_libs= | |
10338 | lt_cv_dlopen_self=yes | |
10339 | ;; | |
d9898ee8 | 10340 | |
8d138742 CE |
10341 | mingw* | pw32* | cegcc*) |
10342 | lt_cv_dlopen="LoadLibrary" | |
10343 | lt_cv_dlopen_libs= | |
10344 | ;; | |
d9898ee8 | 10345 | |
8d138742 CE |
10346 | cygwin*) |
10347 | lt_cv_dlopen="dlopen" | |
10348 | lt_cv_dlopen_libs= | |
10349 | ;; | |
d9898ee8 | 10350 | |
8d138742 CE |
10351 | darwin*) |
10352 | # if libdl is installed we need to link against it | |
10353 | { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
10354 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
10355 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
10356 | $as_echo_n "(cached) " >&6 | |
10357 | else | |
10358 | ac_check_lib_save_LIBS=$LIBS | |
10359 | LIBS="-ldl $LIBS" | |
10360 | cat >conftest.$ac_ext <<_ACEOF | |
10361 | /* confdefs.h. */ | |
10362 | _ACEOF | |
10363 | cat confdefs.h >>conftest.$ac_ext | |
10364 | cat >>conftest.$ac_ext <<_ACEOF | |
10365 | /* end confdefs.h. */ | |
d9898ee8 | 10366 | |
8d138742 CE |
10367 | /* Override any GCC internal prototype to avoid an error. |
10368 | Use char because int might match the return type of a GCC | |
10369 | builtin and then its argument prototype would still apply. */ | |
10370 | #ifdef __cplusplus | |
10371 | extern "C" | |
10372 | #endif | |
10373 | char dlopen (); | |
10374 | int | |
10375 | main () | |
10376 | { | |
10377 | return dlopen (); | |
10378 | ; | |
10379 | return 0; | |
10380 | } | |
10381 | _ACEOF | |
10382 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10383 | if { (ac_try="$ac_link" | |
10384 | case "(($ac_try" in | |
10385 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10386 | *) ac_try_echo=$ac_try;; | |
10387 | esac | |
10388 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10389 | $as_echo "$ac_try_echo") >&5 | |
10390 | (eval "$ac_link") 2>conftest.er1 | |
10391 | ac_status=$? | |
10392 | grep -v '^ *+' conftest.er1 >conftest.err | |
10393 | rm -f conftest.er1 | |
10394 | cat conftest.err >&5 | |
10395 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10396 | (exit $ac_status); } && { | |
10397 | test -z "$ac_c_werror_flag" || | |
10398 | test ! -s conftest.err | |
10399 | } && test -s conftest$ac_exeext && { | |
10400 | test "$cross_compiling" = yes || | |
10401 | $as_test_x conftest$ac_exeext | |
10402 | }; then | |
10403 | ac_cv_lib_dl_dlopen=yes | |
d9898ee8 | 10404 | else |
8d138742 CE |
10405 | $as_echo "$as_me: failed program was:" >&5 |
10406 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10407 | ||
10408 | ac_cv_lib_dl_dlopen=no | |
d9898ee8 | 10409 | fi |
10410 | ||
8d138742 CE |
10411 | rm -rf conftest.dSYM |
10412 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10413 | conftest$ac_exeext conftest.$ac_ext | |
10414 | LIBS=$ac_check_lib_save_LIBS | |
10415 | fi | |
10416 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
10417 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
10418 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then | |
10419 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
10420 | else | |
d9898ee8 | 10421 | |
8d138742 CE |
10422 | lt_cv_dlopen="dyld" |
10423 | lt_cv_dlopen_libs= | |
10424 | lt_cv_dlopen_self=yes | |
d9898ee8 | 10425 | |
8d138742 | 10426 | fi |
d9898ee8 | 10427 | |
8d138742 | 10428 | ;; |
d9898ee8 | 10429 | |
8d138742 CE |
10430 | *) |
10431 | { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 | |
10432 | $as_echo_n "checking for shl_load... " >&6; } | |
10433 | if test "${ac_cv_func_shl_load+set}" = set; then | |
10434 | $as_echo_n "(cached) " >&6 | |
10435 | else | |
10436 | cat >conftest.$ac_ext <<_ACEOF | |
10437 | /* confdefs.h. */ | |
10438 | _ACEOF | |
10439 | cat confdefs.h >>conftest.$ac_ext | |
10440 | cat >>conftest.$ac_ext <<_ACEOF | |
10441 | /* end confdefs.h. */ | |
10442 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | |
10443 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10444 | #define shl_load innocuous_shl_load | |
d9898ee8 | 10445 | |
8d138742 CE |
10446 | /* System header to define __stub macros and hopefully few prototypes, |
10447 | which can conflict with char shl_load (); below. | |
10448 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10449 | <limits.h> exists even on freestanding compilers. */ | |
d9898ee8 | 10450 | |
8d138742 CE |
10451 | #ifdef __STDC__ |
10452 | # include <limits.h> | |
10453 | #else | |
10454 | # include <assert.h> | |
10455 | #endif | |
d9898ee8 | 10456 | |
8d138742 | 10457 | #undef shl_load |
d9898ee8 | 10458 | |
8d138742 CE |
10459 | /* Override any GCC internal prototype to avoid an error. |
10460 | Use char because int might match the return type of a GCC | |
10461 | builtin and then its argument prototype would still apply. */ | |
10462 | #ifdef __cplusplus | |
10463 | extern "C" | |
10464 | #endif | |
10465 | char shl_load (); | |
10466 | /* The GNU C library defines this for functions which it implements | |
10467 | to always fail with ENOSYS. Some functions are actually named | |
10468 | something starting with __ and the normal name is an alias. */ | |
10469 | #if defined __stub_shl_load || defined __stub___shl_load | |
10470 | choke me | |
10471 | #endif | |
d9898ee8 | 10472 | |
8d138742 CE |
10473 | int |
10474 | main () | |
10475 | { | |
10476 | return shl_load (); | |
10477 | ; | |
10478 | return 0; | |
10479 | } | |
10480 | _ACEOF | |
10481 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10482 | if { (ac_try="$ac_link" | |
10483 | case "(($ac_try" in | |
10484 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10485 | *) ac_try_echo=$ac_try;; | |
10486 | esac | |
10487 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10488 | $as_echo "$ac_try_echo") >&5 | |
10489 | (eval "$ac_link") 2>conftest.er1 | |
10490 | ac_status=$? | |
10491 | grep -v '^ *+' conftest.er1 >conftest.err | |
10492 | rm -f conftest.er1 | |
10493 | cat conftest.err >&5 | |
10494 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10495 | (exit $ac_status); } && { | |
10496 | test -z "$ac_c_werror_flag" || | |
10497 | test ! -s conftest.err | |
10498 | } && test -s conftest$ac_exeext && { | |
10499 | test "$cross_compiling" = yes || | |
10500 | $as_test_x conftest$ac_exeext | |
10501 | }; then | |
10502 | ac_cv_func_shl_load=yes | |
10503 | else | |
10504 | $as_echo "$as_me: failed program was:" >&5 | |
10505 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 10506 | |
8d138742 CE |
10507 | ac_cv_func_shl_load=no |
10508 | fi | |
d9898ee8 | 10509 | |
8d138742 CE |
10510 | rm -rf conftest.dSYM |
10511 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10512 | conftest$ac_exeext conftest.$ac_ext | |
10513 | fi | |
10514 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | |
10515 | $as_echo "$ac_cv_func_shl_load" >&6; } | |
10516 | if test "x$ac_cv_func_shl_load" = x""yes; then | |
10517 | lt_cv_dlopen="shl_load" | |
10518 | else | |
10519 | { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | |
10520 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
10521 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | |
10522 | $as_echo_n "(cached) " >&6 | |
10523 | else | |
10524 | ac_check_lib_save_LIBS=$LIBS | |
10525 | LIBS="-ldld $LIBS" | |
10526 | cat >conftest.$ac_ext <<_ACEOF | |
10527 | /* confdefs.h. */ | |
10528 | _ACEOF | |
10529 | cat confdefs.h >>conftest.$ac_ext | |
10530 | cat >>conftest.$ac_ext <<_ACEOF | |
10531 | /* end confdefs.h. */ | |
d9898ee8 | 10532 | |
8d138742 CE |
10533 | /* Override any GCC internal prototype to avoid an error. |
10534 | Use char because int might match the return type of a GCC | |
10535 | builtin and then its argument prototype would still apply. */ | |
10536 | #ifdef __cplusplus | |
10537 | extern "C" | |
10538 | #endif | |
10539 | char shl_load (); | |
10540 | int | |
10541 | main () | |
10542 | { | |
10543 | return shl_load (); | |
10544 | ; | |
10545 | return 0; | |
10546 | } | |
10547 | _ACEOF | |
10548 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10549 | if { (ac_try="$ac_link" | |
10550 | case "(($ac_try" in | |
10551 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10552 | *) ac_try_echo=$ac_try;; | |
10553 | esac | |
10554 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10555 | $as_echo "$ac_try_echo") >&5 | |
10556 | (eval "$ac_link") 2>conftest.er1 | |
10557 | ac_status=$? | |
10558 | grep -v '^ *+' conftest.er1 >conftest.err | |
10559 | rm -f conftest.er1 | |
10560 | cat conftest.err >&5 | |
10561 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10562 | (exit $ac_status); } && { | |
10563 | test -z "$ac_c_werror_flag" || | |
10564 | test ! -s conftest.err | |
10565 | } && test -s conftest$ac_exeext && { | |
10566 | test "$cross_compiling" = yes || | |
10567 | $as_test_x conftest$ac_exeext | |
10568 | }; then | |
10569 | ac_cv_lib_dld_shl_load=yes | |
10570 | else | |
10571 | $as_echo "$as_me: failed program was:" >&5 | |
10572 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 10573 | |
8d138742 CE |
10574 | ac_cv_lib_dld_shl_load=no |
10575 | fi | |
d9898ee8 | 10576 | |
8d138742 CE |
10577 | rm -rf conftest.dSYM |
10578 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10579 | conftest$ac_exeext conftest.$ac_ext | |
10580 | LIBS=$ac_check_lib_save_LIBS | |
10581 | fi | |
10582 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | |
10583 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
10584 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then | |
10585 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | |
10586 | else | |
10587 | { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 | |
10588 | $as_echo_n "checking for dlopen... " >&6; } | |
10589 | if test "${ac_cv_func_dlopen+set}" = set; then | |
10590 | $as_echo_n "(cached) " >&6 | |
10591 | else | |
10592 | cat >conftest.$ac_ext <<_ACEOF | |
10593 | /* confdefs.h. */ | |
10594 | _ACEOF | |
10595 | cat confdefs.h >>conftest.$ac_ext | |
10596 | cat >>conftest.$ac_ext <<_ACEOF | |
10597 | /* end confdefs.h. */ | |
10598 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | |
10599 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10600 | #define dlopen innocuous_dlopen | |
d9898ee8 | 10601 | |
8d138742 CE |
10602 | /* System header to define __stub macros and hopefully few prototypes, |
10603 | which can conflict with char dlopen (); below. | |
10604 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10605 | <limits.h> exists even on freestanding compilers. */ | |
d9898ee8 | 10606 | |
8d138742 CE |
10607 | #ifdef __STDC__ |
10608 | # include <limits.h> | |
10609 | #else | |
10610 | # include <assert.h> | |
10611 | #endif | |
d9898ee8 | 10612 | |
8d138742 | 10613 | #undef dlopen |
d9898ee8 | 10614 | |
8d138742 CE |
10615 | /* Override any GCC internal prototype to avoid an error. |
10616 | Use char because int might match the return type of a GCC | |
10617 | builtin and then its argument prototype would still apply. */ | |
10618 | #ifdef __cplusplus | |
10619 | extern "C" | |
10620 | #endif | |
10621 | char dlopen (); | |
10622 | /* The GNU C library defines this for functions which it implements | |
10623 | to always fail with ENOSYS. Some functions are actually named | |
10624 | something starting with __ and the normal name is an alias. */ | |
10625 | #if defined __stub_dlopen || defined __stub___dlopen | |
10626 | choke me | |
10627 | #endif | |
d9898ee8 | 10628 | |
8d138742 CE |
10629 | int |
10630 | main () | |
10631 | { | |
10632 | return dlopen (); | |
10633 | ; | |
10634 | return 0; | |
10635 | } | |
10636 | _ACEOF | |
10637 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10638 | if { (ac_try="$ac_link" | |
10639 | case "(($ac_try" in | |
10640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10641 | *) ac_try_echo=$ac_try;; | |
d9898ee8 | 10642 | esac |
8d138742 CE |
10643 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10644 | $as_echo "$ac_try_echo") >&5 | |
10645 | (eval "$ac_link") 2>conftest.er1 | |
10646 | ac_status=$? | |
10647 | grep -v '^ *+' conftest.er1 >conftest.err | |
10648 | rm -f conftest.er1 | |
10649 | cat conftest.err >&5 | |
10650 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10651 | (exit $ac_status); } && { | |
10652 | test -z "$ac_c_werror_flag" || | |
10653 | test ! -s conftest.err | |
10654 | } && test -s conftest$ac_exeext && { | |
10655 | test "$cross_compiling" = yes || | |
10656 | $as_test_x conftest$ac_exeext | |
10657 | }; then | |
10658 | ac_cv_func_dlopen=yes | |
10659 | else | |
10660 | $as_echo "$as_me: failed program was:" >&5 | |
10661 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 10662 | |
8d138742 CE |
10663 | ac_cv_func_dlopen=no |
10664 | fi | |
d9898ee8 | 10665 | |
8d138742 CE |
10666 | rm -rf conftest.dSYM |
10667 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10668 | conftest$ac_exeext conftest.$ac_ext | |
10669 | fi | |
10670 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | |
10671 | $as_echo "$ac_cv_func_dlopen" >&6; } | |
10672 | if test "x$ac_cv_func_dlopen" = x""yes; then | |
10673 | lt_cv_dlopen="dlopen" | |
10674 | else | |
10675 | { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
10676 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
10677 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
10678 | $as_echo_n "(cached) " >&6 | |
10679 | else | |
10680 | ac_check_lib_save_LIBS=$LIBS | |
10681 | LIBS="-ldl $LIBS" | |
10682 | cat >conftest.$ac_ext <<_ACEOF | |
10683 | /* confdefs.h. */ | |
10684 | _ACEOF | |
10685 | cat confdefs.h >>conftest.$ac_ext | |
10686 | cat >>conftest.$ac_ext <<_ACEOF | |
10687 | /* end confdefs.h. */ | |
d9898ee8 | 10688 | |
8d138742 CE |
10689 | /* Override any GCC internal prototype to avoid an error. |
10690 | Use char because int might match the return type of a GCC | |
10691 | builtin and then its argument prototype would still apply. */ | |
10692 | #ifdef __cplusplus | |
10693 | extern "C" | |
10694 | #endif | |
10695 | char dlopen (); | |
10696 | int | |
10697 | main () | |
10698 | { | |
10699 | return dlopen (); | |
10700 | ; | |
10701 | return 0; | |
10702 | } | |
10703 | _ACEOF | |
10704 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10705 | if { (ac_try="$ac_link" | |
10706 | case "(($ac_try" in | |
10707 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10708 | *) ac_try_echo=$ac_try;; | |
10709 | esac | |
10710 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10711 | $as_echo "$ac_try_echo") >&5 | |
10712 | (eval "$ac_link") 2>conftest.er1 | |
10713 | ac_status=$? | |
10714 | grep -v '^ *+' conftest.er1 >conftest.err | |
10715 | rm -f conftest.er1 | |
10716 | cat conftest.err >&5 | |
10717 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10718 | (exit $ac_status); } && { | |
10719 | test -z "$ac_c_werror_flag" || | |
10720 | test ! -s conftest.err | |
10721 | } && test -s conftest$ac_exeext && { | |
10722 | test "$cross_compiling" = yes || | |
10723 | $as_test_x conftest$ac_exeext | |
10724 | }; then | |
10725 | ac_cv_lib_dl_dlopen=yes | |
10726 | else | |
10727 | $as_echo "$as_me: failed program was:" >&5 | |
10728 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 10729 | |
8d138742 CE |
10730 | ac_cv_lib_dl_dlopen=no |
10731 | fi | |
d9898ee8 | 10732 | |
8d138742 CE |
10733 | rm -rf conftest.dSYM |
10734 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10735 | conftest$ac_exeext conftest.$ac_ext | |
10736 | LIBS=$ac_check_lib_save_LIBS | |
10737 | fi | |
10738 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
10739 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
10740 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then | |
10741 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
10742 | else | |
10743 | { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | |
10744 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
10745 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | |
10746 | $as_echo_n "(cached) " >&6 | |
10747 | else | |
10748 | ac_check_lib_save_LIBS=$LIBS | |
10749 | LIBS="-lsvld $LIBS" | |
10750 | cat >conftest.$ac_ext <<_ACEOF | |
10751 | /* confdefs.h. */ | |
10752 | _ACEOF | |
10753 | cat confdefs.h >>conftest.$ac_ext | |
10754 | cat >>conftest.$ac_ext <<_ACEOF | |
10755 | /* end confdefs.h. */ | |
d9898ee8 | 10756 | |
8d138742 CE |
10757 | /* Override any GCC internal prototype to avoid an error. |
10758 | Use char because int might match the return type of a GCC | |
10759 | builtin and then its argument prototype would still apply. */ | |
10760 | #ifdef __cplusplus | |
10761 | extern "C" | |
10762 | #endif | |
10763 | char dlopen (); | |
10764 | int | |
10765 | main () | |
10766 | { | |
10767 | return dlopen (); | |
10768 | ; | |
10769 | return 0; | |
10770 | } | |
10771 | _ACEOF | |
10772 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10773 | if { (ac_try="$ac_link" | |
10774 | case "(($ac_try" in | |
10775 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10776 | *) ac_try_echo=$ac_try;; | |
10777 | esac | |
10778 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10779 | $as_echo "$ac_try_echo") >&5 | |
10780 | (eval "$ac_link") 2>conftest.er1 | |
10781 | ac_status=$? | |
10782 | grep -v '^ *+' conftest.er1 >conftest.err | |
10783 | rm -f conftest.er1 | |
10784 | cat conftest.err >&5 | |
10785 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10786 | (exit $ac_status); } && { | |
10787 | test -z "$ac_c_werror_flag" || | |
10788 | test ! -s conftest.err | |
10789 | } && test -s conftest$ac_exeext && { | |
10790 | test "$cross_compiling" = yes || | |
10791 | $as_test_x conftest$ac_exeext | |
10792 | }; then | |
10793 | ac_cv_lib_svld_dlopen=yes | |
10794 | else | |
10795 | $as_echo "$as_me: failed program was:" >&5 | |
10796 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 10797 | |
8d138742 CE |
10798 | ac_cv_lib_svld_dlopen=no |
10799 | fi | |
d9898ee8 | 10800 | |
8d138742 CE |
10801 | rm -rf conftest.dSYM |
10802 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10803 | conftest$ac_exeext conftest.$ac_ext | |
10804 | LIBS=$ac_check_lib_save_LIBS | |
10805 | fi | |
10806 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | |
10807 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
10808 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then | |
10809 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
10810 | else | |
10811 | { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | |
10812 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
10813 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | |
10814 | $as_echo_n "(cached) " >&6 | |
10815 | else | |
10816 | ac_check_lib_save_LIBS=$LIBS | |
10817 | LIBS="-ldld $LIBS" | |
10818 | cat >conftest.$ac_ext <<_ACEOF | |
10819 | /* confdefs.h. */ | |
10820 | _ACEOF | |
10821 | cat confdefs.h >>conftest.$ac_ext | |
10822 | cat >>conftest.$ac_ext <<_ACEOF | |
10823 | /* end confdefs.h. */ | |
d9898ee8 | 10824 | |
8d138742 CE |
10825 | /* Override any GCC internal prototype to avoid an error. |
10826 | Use char because int might match the return type of a GCC | |
10827 | builtin and then its argument prototype would still apply. */ | |
10828 | #ifdef __cplusplus | |
10829 | extern "C" | |
10830 | #endif | |
10831 | char dld_link (); | |
10832 | int | |
10833 | main () | |
10834 | { | |
10835 | return dld_link (); | |
10836 | ; | |
10837 | return 0; | |
10838 | } | |
10839 | _ACEOF | |
10840 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10841 | if { (ac_try="$ac_link" | |
10842 | case "(($ac_try" in | |
10843 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10844 | *) ac_try_echo=$ac_try;; | |
10845 | esac | |
10846 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10847 | $as_echo "$ac_try_echo") >&5 | |
10848 | (eval "$ac_link") 2>conftest.er1 | |
10849 | ac_status=$? | |
10850 | grep -v '^ *+' conftest.er1 >conftest.err | |
10851 | rm -f conftest.er1 | |
10852 | cat conftest.err >&5 | |
10853 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10854 | (exit $ac_status); } && { | |
10855 | test -z "$ac_c_werror_flag" || | |
10856 | test ! -s conftest.err | |
10857 | } && test -s conftest$ac_exeext && { | |
10858 | test "$cross_compiling" = yes || | |
10859 | $as_test_x conftest$ac_exeext | |
10860 | }; then | |
10861 | ac_cv_lib_dld_dld_link=yes | |
10862 | else | |
10863 | $as_echo "$as_me: failed program was:" >&5 | |
10864 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 10865 | |
8d138742 CE |
10866 | ac_cv_lib_dld_dld_link=no |
10867 | fi | |
d9898ee8 | 10868 | |
8d138742 CE |
10869 | rm -rf conftest.dSYM |
10870 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10871 | conftest$ac_exeext conftest.$ac_ext | |
10872 | LIBS=$ac_check_lib_save_LIBS | |
10873 | fi | |
10874 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | |
10875 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
10876 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then | |
10877 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" | |
10878 | fi | |
d9898ee8 | 10879 | |
d9898ee8 | 10880 | |
8d138742 | 10881 | fi |
d9898ee8 | 10882 | |
d9898ee8 | 10883 | |
8d138742 | 10884 | fi |
d9898ee8 | 10885 | |
ac40fd9e | 10886 | |
8d138742 | 10887 | fi |
d9898ee8 | 10888 | |
d9898ee8 | 10889 | |
8d138742 | 10890 | fi |
d9898ee8 | 10891 | |
d9898ee8 | 10892 | |
8d138742 | 10893 | fi |
d9898ee8 | 10894 | |
8d138742 CE |
10895 | ;; |
10896 | esac | |
d9898ee8 | 10897 | |
8d138742 CE |
10898 | if test "x$lt_cv_dlopen" != xno; then |
10899 | enable_dlopen=yes | |
10900 | else | |
10901 | enable_dlopen=no | |
d9898ee8 | 10902 | fi |
10903 | ||
8d138742 CE |
10904 | case $lt_cv_dlopen in |
10905 | dlopen) | |
10906 | save_CPPFLAGS="$CPPFLAGS" | |
10907 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
d9898ee8 | 10908 | |
8d138742 CE |
10909 | save_LDFLAGS="$LDFLAGS" |
10910 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
d9898ee8 | 10911 | |
8d138742 CE |
10912 | save_LIBS="$LIBS" |
10913 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
d9898ee8 | 10914 | |
8d138742 CE |
10915 | { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
10916 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
10917 | if test "${lt_cv_dlopen_self+set}" = set; then | |
10918 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 10919 | else |
8d138742 CE |
10920 | if test "$cross_compiling" = yes; then : |
10921 | lt_cv_dlopen_self=cross | |
d9898ee8 | 10922 | else |
8d138742 CE |
10923 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
10924 | lt_status=$lt_dlunknown | |
10925 | cat > conftest.$ac_ext <<_LT_EOF | |
10926 | #line 10926 "configure" | |
10927 | #include "confdefs.h" | |
d9898ee8 | 10928 | |
8d138742 CE |
10929 | #if HAVE_DLFCN_H |
10930 | #include <dlfcn.h> | |
10931 | #endif | |
d9898ee8 | 10932 | |
8d138742 | 10933 | #include <stdio.h> |
d9898ee8 | 10934 | |
8d138742 CE |
10935 | #ifdef RTLD_GLOBAL |
10936 | # define LT_DLGLOBAL RTLD_GLOBAL | |
10937 | #else | |
10938 | # ifdef DL_GLOBAL | |
10939 | # define LT_DLGLOBAL DL_GLOBAL | |
10940 | # else | |
10941 | # define LT_DLGLOBAL 0 | |
10942 | # endif | |
10943 | #endif | |
d9898ee8 | 10944 | |
8d138742 CE |
10945 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
10946 | find out it does not work in some platform. */ | |
10947 | #ifndef LT_DLLAZY_OR_NOW | |
10948 | # ifdef RTLD_LAZY | |
10949 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
10950 | # else | |
10951 | # ifdef DL_LAZY | |
10952 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
10953 | # else | |
10954 | # ifdef RTLD_NOW | |
10955 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
10956 | # else | |
10957 | # ifdef DL_NOW | |
10958 | # define LT_DLLAZY_OR_NOW DL_NOW | |
10959 | # else | |
10960 | # define LT_DLLAZY_OR_NOW 0 | |
10961 | # endif | |
10962 | # endif | |
10963 | # endif | |
10964 | # endif | |
10965 | #endif | |
d9898ee8 | 10966 | |
8d138742 CE |
10967 | void fnord() { int i=42;} |
10968 | int main () | |
10969 | { | |
10970 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
10971 | int status = $lt_dlunknown; | |
10972 | ||
10973 | if (self) | |
10974 | { | |
10975 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
10976 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
10977 | /* dlclose (self); */ | |
10978 | } | |
10979 | else | |
10980 | puts (dlerror ()); | |
d9898ee8 | 10981 | |
8d138742 CE |
10982 | return status; |
10983 | } | |
10984 | _LT_EOF | |
10985 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10986 | (eval $ac_link) 2>&5 | |
10987 | ac_status=$? | |
10988 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10989 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
10990 | (./conftest; exit; ) >&5 2>/dev/null | |
10991 | lt_status=$? | |
10992 | case x$lt_status in | |
10993 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
10994 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
10995 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
10996 | esac | |
10997 | else : | |
10998 | # compilation failed | |
10999 | lt_cv_dlopen_self=no | |
11000 | fi | |
d9898ee8 | 11001 | fi |
8d138742 | 11002 | rm -fr conftest* |
d9898ee8 | 11003 | |
11004 | ||
d9898ee8 | 11005 | fi |
8d138742 CE |
11006 | { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
11007 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
d9898ee8 | 11008 | |
8d138742 CE |
11009 | if test "x$lt_cv_dlopen_self" = xyes; then |
11010 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
11011 | { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | |
11012 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
11013 | if test "${lt_cv_dlopen_self_static+set}" = set; then | |
11014 | $as_echo_n "(cached) " >&6 | |
11015 | else | |
11016 | if test "$cross_compiling" = yes; then : | |
11017 | lt_cv_dlopen_self_static=cross | |
11018 | else | |
11019 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11020 | lt_status=$lt_dlunknown | |
11021 | cat > conftest.$ac_ext <<_LT_EOF | |
11022 | #line 11022 "configure" | |
11023 | #include "confdefs.h" | |
d9898ee8 | 11024 | |
8d138742 CE |
11025 | #if HAVE_DLFCN_H |
11026 | #include <dlfcn.h> | |
11027 | #endif | |
d9898ee8 | 11028 | |
8d138742 | 11029 | #include <stdio.h> |
d9898ee8 | 11030 | |
8d138742 CE |
11031 | #ifdef RTLD_GLOBAL |
11032 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11033 | #else | |
11034 | # ifdef DL_GLOBAL | |
11035 | # define LT_DLGLOBAL DL_GLOBAL | |
11036 | # else | |
11037 | # define LT_DLGLOBAL 0 | |
11038 | # endif | |
11039 | #endif | |
d9898ee8 | 11040 | |
8d138742 CE |
11041 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
11042 | find out it does not work in some platform. */ | |
11043 | #ifndef LT_DLLAZY_OR_NOW | |
11044 | # ifdef RTLD_LAZY | |
11045 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11046 | # else | |
11047 | # ifdef DL_LAZY | |
11048 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11049 | # else | |
11050 | # ifdef RTLD_NOW | |
11051 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11052 | # else | |
11053 | # ifdef DL_NOW | |
11054 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11055 | # else | |
11056 | # define LT_DLLAZY_OR_NOW 0 | |
11057 | # endif | |
11058 | # endif | |
11059 | # endif | |
11060 | # endif | |
11061 | #endif | |
11062 | ||
11063 | void fnord() { int i=42;} | |
11064 | int main () | |
11065 | { | |
11066 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11067 | int status = $lt_dlunknown; | |
11068 | ||
11069 | if (self) | |
11070 | { | |
11071 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11072 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11073 | /* dlclose (self); */ | |
11074 | } | |
11075 | else | |
11076 | puts (dlerror ()); | |
11077 | ||
11078 | return status; | |
11079 | } | |
11080 | _LT_EOF | |
11081 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11082 | (eval $ac_link) 2>&5 | |
11083 | ac_status=$? | |
11084 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11085 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
11086 | (./conftest; exit; ) >&5 2>/dev/null | |
11087 | lt_status=$? | |
11088 | case x$lt_status in | |
11089 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
11090 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
11091 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
d9898ee8 | 11092 | esac |
8d138742 CE |
11093 | else : |
11094 | # compilation failed | |
11095 | lt_cv_dlopen_self_static=no | |
11096 | fi | |
11097 | fi | |
11098 | rm -fr conftest* | |
d9898ee8 | 11099 | |
d9898ee8 | 11100 | |
8d138742 CE |
11101 | fi |
11102 | { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | |
11103 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
11104 | fi | |
d9898ee8 | 11105 | |
8d138742 CE |
11106 | CPPFLAGS="$save_CPPFLAGS" |
11107 | LDFLAGS="$save_LDFLAGS" | |
11108 | LIBS="$save_LIBS" | |
11109 | ;; | |
11110 | esac | |
d9898ee8 | 11111 | |
8d138742 CE |
11112 | case $lt_cv_dlopen_self in |
11113 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
11114 | *) enable_dlopen_self=unknown ;; | |
11115 | esac | |
d9898ee8 | 11116 | |
8d138742 CE |
11117 | case $lt_cv_dlopen_self_static in |
11118 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
11119 | *) enable_dlopen_self_static=unknown ;; | |
11120 | esac | |
11121 | fi | |
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 | |
8d138742 CE |
11136 | |
11137 | ||
11138 | ||
11139 | striplib= | |
11140 | old_striplib= | |
11141 | { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | |
11142 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
11143 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
11144 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
11145 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
11146 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11147 | $as_echo "yes" >&6; } | |
11148 | else | |
11149 | # FIXME - insert some real tests, host_os isn't really good enough | |
11150 | case $host_os in | |
11151 | darwin*) | |
11152 | if test -n "$STRIP" ; then | |
11153 | striplib="$STRIP -x" | |
11154 | old_striplib="$STRIP -S" | |
11155 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11156 | $as_echo "yes" >&6; } | |
11157 | else | |
11158 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11159 | $as_echo "no" >&6; } | |
d9898ee8 | 11160 | fi |
8d138742 CE |
11161 | ;; |
11162 | *) | |
11163 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11164 | $as_echo "no" >&6; } | |
11165 | ;; | |
11166 | esac | |
11167 | fi | |
d9898ee8 | 11168 | |
d9898ee8 | 11169 | |
d9898ee8 | 11170 | |
d9898ee8 | 11171 | |
d9898ee8 | 11172 | |
d9898ee8 | 11173 | |
d9898ee8 | 11174 | |
d9898ee8 | 11175 | |
d9898ee8 | 11176 | |
d9898ee8 | 11177 | |
dd184caf | 11178 | |
dd184caf | 11179 | |
8d138742 CE |
11180 | # Report which library types will actually be built |
11181 | { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | |
11182 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
11183 | { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 | |
11184 | $as_echo "$can_build_shared" >&6; } | |
d9898ee8 | 11185 | |
8d138742 CE |
11186 | { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
11187 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
11188 | test "$can_build_shared" = "no" && enable_shared=no | |
11189 | ||
11190 | # On AIX, shared libraries and static libraries use the same namespace, and | |
11191 | # are all built from PIC. | |
11192 | case $host_os in | |
11193 | aix3*) | |
11194 | test "$enable_shared" = yes && enable_static=no | |
11195 | if test -n "$RANLIB"; then | |
11196 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
11197 | postinstall_cmds='$RANLIB $lib' | |
11198 | fi | |
11199 | ;; | |
11200 | ||
11201 | aix[4-9]*) | |
11202 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
11203 | test "$enable_shared" = yes && enable_static=no | |
11204 | fi | |
11205 | ;; | |
11206 | esac | |
11207 | { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 | |
11208 | $as_echo "$enable_shared" >&6; } | |
11209 | ||
11210 | { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | |
11211 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
11212 | # Make sure either enable_shared or enable_static is yes. | |
11213 | test "$enable_shared" = yes || enable_static=yes | |
11214 | { $as_echo "$as_me:$LINENO: result: $enable_static" >&5 | |
11215 | $as_echo "$enable_static" >&6; } | |
d9898ee8 | 11216 | |
d9898ee8 | 11217 | |
d9898ee8 | 11218 | |
dd184caf | 11219 | |
d9898ee8 | 11220 | fi |
8d138742 CE |
11221 | ac_ext=c |
11222 | ac_cpp='$CPP $CPPFLAGS' | |
11223 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11224 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11225 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
dd184caf | 11226 | |
8d138742 | 11227 | CC="$lt_save_CC" |
d9898ee8 | 11228 | |
d9898ee8 | 11229 | |
d9898ee8 | 11230 | |
d9898ee8 | 11231 | |
d9898ee8 | 11232 | |
d9898ee8 | 11233 | |
d9898ee8 | 11234 | |
d9898ee8 | 11235 | |
d9898ee8 | 11236 | |
d9898ee8 | 11237 | |
d9898ee8 | 11238 | |
d9898ee8 | 11239 | |
d9898ee8 | 11240 | |
8d138742 | 11241 | ac_config_commands="$ac_config_commands libtool" |
d9898ee8 | 11242 | |
d9898ee8 | 11243 | |
d9898ee8 | 11244 | |
d9898ee8 | 11245 | |
8d138742 | 11246 | # Only expand once: |
d9898ee8 | 11247 | |
d9898ee8 | 11248 | |
d9898ee8 | 11249 | |
8d138742 CE |
11250 | if test x$GCC = xyes |
11251 | then | |
11252 | CFLAGS="-Wall $CFLAGS" | |
11253 | fi | |
11254 | if test x$GXX = xyes | |
11255 | then | |
11256 | CXXFLAGS="-Wall $CXXFLAGS" | |
11257 | fi | |
d9898ee8 | 11258 | |
8d138742 CE |
11259 | CFLAGS="-I$srcdir/.. -I.. $CFLAGS" |
11260 | CXXFLAGS="-I$srcdir/.. -I.. $CXXFLAGS" | |
d9898ee8 | 11261 | |
d9898ee8 | 11262 | |
8d138742 CE |
11263 | . ../dbobj.config |
11264 | if test "$dblibrary" != "" | |
11265 | then | |
11266 | dblibrary="../$dblibrary" | |
11267 | fi | |
d9898ee8 | 11268 | |
d9898ee8 | 11269 | |
8d138742 CE |
11270 | makedatprog_target="" |
11271 | if test "$dblibrary" != "" | |
11272 | then | |
11273 | makedatprog_target=makedatprog | |
11274 | fi | |
d9898ee8 | 11275 | |
d9898ee8 | 11276 | |
d9898ee8 | 11277 | |
8d138742 CE |
11278 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
11279 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
11280 | if test "${ac_cv_header_stdc+set}" = set; then | |
11281 | $as_echo_n "(cached) " >&6 | |
11282 | else | |
11283 | cat >conftest.$ac_ext <<_ACEOF | |
11284 | /* confdefs.h. */ | |
11285 | _ACEOF | |
11286 | cat confdefs.h >>conftest.$ac_ext | |
11287 | cat >>conftest.$ac_ext <<_ACEOF | |
11288 | /* end confdefs.h. */ | |
11289 | #include <stdlib.h> | |
11290 | #include <stdarg.h> | |
11291 | #include <string.h> | |
11292 | #include <float.h> | |
d9898ee8 | 11293 | |
8d138742 CE |
11294 | int |
11295 | main () | |
11296 | { | |
d9898ee8 | 11297 | |
8d138742 CE |
11298 | ; |
11299 | return 0; | |
11300 | } | |
11301 | _ACEOF | |
11302 | rm -f conftest.$ac_objext | |
11303 | if { (ac_try="$ac_compile" | |
11304 | case "(($ac_try" in | |
11305 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11306 | *) ac_try_echo=$ac_try;; | |
11307 | esac | |
11308 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11309 | $as_echo "$ac_try_echo") >&5 | |
11310 | (eval "$ac_compile") 2>conftest.er1 | |
11311 | ac_status=$? | |
11312 | grep -v '^ *+' conftest.er1 >conftest.err | |
11313 | rm -f conftest.er1 | |
11314 | cat conftest.err >&5 | |
11315 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11316 | (exit $ac_status); } && { | |
11317 | test -z "$ac_c_werror_flag" || | |
11318 | test ! -s conftest.err | |
11319 | } && test -s conftest.$ac_objext; then | |
11320 | ac_cv_header_stdc=yes | |
11321 | else | |
11322 | $as_echo "$as_me: failed program was:" >&5 | |
11323 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 11324 | |
8d138742 CE |
11325 | ac_cv_header_stdc=no |
11326 | fi | |
d9898ee8 | 11327 | |
8d138742 | 11328 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 11329 | |
8d138742 CE |
11330 | if test $ac_cv_header_stdc = yes; then |
11331 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
11332 | cat >conftest.$ac_ext <<_ACEOF | |
11333 | /* confdefs.h. */ | |
11334 | _ACEOF | |
11335 | cat confdefs.h >>conftest.$ac_ext | |
11336 | cat >>conftest.$ac_ext <<_ACEOF | |
11337 | /* end confdefs.h. */ | |
11338 | #include <string.h> | |
d9898ee8 | 11339 | |
8d138742 CE |
11340 | _ACEOF |
11341 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11342 | $EGREP "memchr" >/dev/null 2>&1; then | |
11343 | : | |
11344 | else | |
11345 | ac_cv_header_stdc=no | |
11346 | fi | |
11347 | rm -f conftest* | |
d9898ee8 | 11348 | |
8d138742 | 11349 | fi |
d9898ee8 | 11350 | |
8d138742 CE |
11351 | if test $ac_cv_header_stdc = yes; then |
11352 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
11353 | cat >conftest.$ac_ext <<_ACEOF | |
11354 | /* confdefs.h. */ | |
11355 | _ACEOF | |
11356 | cat confdefs.h >>conftest.$ac_ext | |
11357 | cat >>conftest.$ac_ext <<_ACEOF | |
11358 | /* end confdefs.h. */ | |
11359 | #include <stdlib.h> | |
d9898ee8 | 11360 | |
8d138742 CE |
11361 | _ACEOF |
11362 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11363 | $EGREP "free" >/dev/null 2>&1; then | |
11364 | : | |
11365 | else | |
11366 | ac_cv_header_stdc=no | |
11367 | fi | |
11368 | rm -f conftest* | |
d9898ee8 | 11369 | |
8d138742 | 11370 | fi |
d9898ee8 | 11371 | |
8d138742 CE |
11372 | if test $ac_cv_header_stdc = yes; then |
11373 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
11374 | if test "$cross_compiling" = yes; then | |
11375 | : | |
11376 | else | |
11377 | cat >conftest.$ac_ext <<_ACEOF | |
11378 | /* confdefs.h. */ | |
11379 | _ACEOF | |
11380 | cat confdefs.h >>conftest.$ac_ext | |
11381 | cat >>conftest.$ac_ext <<_ACEOF | |
11382 | /* end confdefs.h. */ | |
11383 | #include <ctype.h> | |
11384 | #include <stdlib.h> | |
11385 | #if ((' ' & 0x0FF) == 0x020) | |
11386 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
11387 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
11388 | #else | |
11389 | # define ISLOWER(c) \ | |
11390 | (('a' <= (c) && (c) <= 'i') \ | |
11391 | || ('j' <= (c) && (c) <= 'r') \ | |
11392 | || ('s' <= (c) && (c) <= 'z')) | |
11393 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
11394 | #endif | |
d9898ee8 | 11395 | |
8d138742 CE |
11396 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
11397 | int | |
11398 | main () | |
11399 | { | |
11400 | int i; | |
11401 | for (i = 0; i < 256; i++) | |
11402 | if (XOR (islower (i), ISLOWER (i)) | |
11403 | || toupper (i) != TOUPPER (i)) | |
11404 | return 2; | |
11405 | return 0; | |
11406 | } | |
11407 | _ACEOF | |
11408 | rm -f conftest$ac_exeext | |
11409 | if { (ac_try="$ac_link" | |
11410 | case "(($ac_try" in | |
11411 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11412 | *) ac_try_echo=$ac_try;; | |
11413 | esac | |
11414 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11415 | $as_echo "$ac_try_echo") >&5 | |
11416 | (eval "$ac_link") 2>&5 | |
d9898ee8 | 11417 | ac_status=$? |
8d138742 CE |
11418 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11419 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
11420 | { (case "(($ac_try" in | |
11421 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11422 | *) ac_try_echo=$ac_try;; | |
d9898ee8 | 11423 | esac |
8d138742 CE |
11424 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11425 | $as_echo "$ac_try_echo") >&5 | |
11426 | (eval "$ac_try") 2>&5 | |
11427 | ac_status=$? | |
11428 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11429 | (exit $ac_status); }; }; then | |
11430 | : | |
11431 | else | |
11432 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
11433 | $as_echo "$as_me: failed program was:" >&5 | |
11434 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 11435 | |
8d138742 CE |
11436 | ( exit $ac_status ) |
11437 | ac_cv_header_stdc=no | |
11438 | fi | |
11439 | rm -rf conftest.dSYM | |
11440 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
11441 | fi | |
ac40fd9e | 11442 | |
d9898ee8 | 11443 | |
8d138742 CE |
11444 | fi |
11445 | fi | |
11446 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
11447 | $as_echo "$ac_cv_header_stdc" >&6; } | |
11448 | if test $ac_cv_header_stdc = yes; then | |
d9898ee8 | 11449 | |
8d138742 CE |
11450 | cat >>confdefs.h <<\_ACEOF |
11451 | #define STDC_HEADERS 1 | |
11452 | _ACEOF | |
d9898ee8 | 11453 | |
8d138742 | 11454 | fi |
d9898ee8 | 11455 | |
d9898ee8 | 11456 | |
8d138742 CE |
11457 | for ac_header in unistd.h |
11458 | do | |
11459 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
11460 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11461 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11462 | $as_echo_n "checking for $ac_header... " >&6; } | |
11463 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11464 | $as_echo_n "(cached) " >&6 | |
11465 | fi | |
11466 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11467 | $as_echo "$as_val"'` | |
11468 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11469 | $as_echo "$ac_res" >&6; } | |
11470 | else | |
11471 | # Is the header compilable? | |
11472 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11473 | $as_echo_n "checking $ac_header usability... " >&6; } | |
11474 | cat >conftest.$ac_ext <<_ACEOF | |
11475 | /* confdefs.h. */ | |
11476 | _ACEOF | |
11477 | cat confdefs.h >>conftest.$ac_ext | |
11478 | cat >>conftest.$ac_ext <<_ACEOF | |
11479 | /* end confdefs.h. */ | |
11480 | $ac_includes_default | |
11481 | #include <$ac_header> | |
11482 | _ACEOF | |
11483 | rm -f conftest.$ac_objext | |
11484 | if { (ac_try="$ac_compile" | |
11485 | case "(($ac_try" in | |
11486 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11487 | *) ac_try_echo=$ac_try;; | |
11488 | esac | |
11489 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11490 | $as_echo "$ac_try_echo") >&5 | |
11491 | (eval "$ac_compile") 2>conftest.er1 | |
11492 | ac_status=$? | |
11493 | grep -v '^ *+' conftest.er1 >conftest.err | |
11494 | rm -f conftest.er1 | |
11495 | cat conftest.err >&5 | |
11496 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11497 | (exit $ac_status); } && { | |
11498 | test -z "$ac_c_werror_flag" || | |
11499 | test ! -s conftest.err | |
11500 | } && test -s conftest.$ac_objext; then | |
11501 | ac_header_compiler=yes | |
11502 | else | |
11503 | $as_echo "$as_me: failed program was:" >&5 | |
11504 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 11505 | |
8d138742 CE |
11506 | ac_header_compiler=no |
11507 | fi | |
d9898ee8 | 11508 | |
8d138742 CE |
11509 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11510 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11511 | $as_echo "$ac_header_compiler" >&6; } | |
d9898ee8 | 11512 | |
8d138742 CE |
11513 | # Is the header present? |
11514 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11515 | $as_echo_n "checking $ac_header presence... " >&6; } | |
11516 | cat >conftest.$ac_ext <<_ACEOF | |
11517 | /* confdefs.h. */ | |
11518 | _ACEOF | |
11519 | cat confdefs.h >>conftest.$ac_ext | |
11520 | cat >>conftest.$ac_ext <<_ACEOF | |
11521 | /* end confdefs.h. */ | |
11522 | #include <$ac_header> | |
11523 | _ACEOF | |
11524 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
11525 | case "(($ac_try" in | |
11526 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11527 | *) ac_try_echo=$ac_try;; | |
11528 | esac | |
11529 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11530 | $as_echo "$ac_try_echo") >&5 | |
11531 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
11532 | ac_status=$? | |
11533 | grep -v '^ *+' conftest.er1 >conftest.err | |
11534 | rm -f conftest.er1 | |
11535 | cat conftest.err >&5 | |
11536 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11537 | (exit $ac_status); } >/dev/null && { | |
11538 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11539 | test ! -s conftest.err | |
11540 | }; then | |
11541 | ac_header_preproc=yes | |
11542 | else | |
11543 | $as_echo "$as_me: failed program was:" >&5 | |
11544 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 11545 | |
8d138742 CE |
11546 | ac_header_preproc=no |
11547 | fi | |
d9898ee8 | 11548 | |
8d138742 CE |
11549 | rm -f conftest.err conftest.$ac_ext |
11550 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11551 | $as_echo "$ac_header_preproc" >&6; } | |
d9898ee8 | 11552 | |
8d138742 CE |
11553 | # So? What about this header? |
11554 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11555 | yes:no: ) | |
11556 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11557 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11558 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11559 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11560 | ac_header_preproc=yes | |
d9898ee8 | 11561 | ;; |
8d138742 CE |
11562 | no:yes:* ) |
11563 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11564 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11565 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11566 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11567 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11568 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11569 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11570 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11571 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11572 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11573 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11574 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11575 | ( cat <<\_ASBOX | |
11576 | ## -------------------------------------------------- ## | |
11577 | ## Report this to courier-users@lists.sourceforge.net ## | |
11578 | ## -------------------------------------------------- ## | |
11579 | _ASBOX | |
11580 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
11581 | ;; | |
11582 | esac | |
11583 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11584 | $as_echo_n "checking for $ac_header... " >&6; } | |
11585 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11586 | $as_echo_n "(cached) " >&6 | |
11587 | else | |
11588 | eval "$as_ac_Header=\$ac_header_preproc" | |
11589 | fi | |
11590 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11591 | $as_echo "$as_val"'` | |
11592 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11593 | $as_echo "$ac_res" >&6; } | |
d9898ee8 | 11594 | |
8d138742 CE |
11595 | fi |
11596 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
11597 | $as_echo "$as_val"'` | |
11598 | if test "x$as_val" = x""yes; then | |
11599 | cat >>confdefs.h <<_ACEOF | |
11600 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11601 | _ACEOF | |
ac40fd9e | 11602 | |
8d138742 | 11603 | fi |
d9898ee8 | 11604 | |
8d138742 | 11605 | done |
d9898ee8 | 11606 | |
d9898ee8 | 11607 | |
d9898ee8 | 11608 | |
d9898ee8 | 11609 | |
d9898ee8 | 11610 | |
8d138742 CE |
11611 | # Check whether --with-makedatprog was given. |
11612 | if test "${with_makedatprog+set}" = set; then | |
11613 | withval=$with_makedatprog; makedatprog="$withval" | |
11614 | else | |
11615 | makedatprog="$bindir/makedatprog" | |
11616 | fi | |
d9898ee8 | 11617 | |
d9898ee8 | 11618 | |
8d138742 | 11619 | makedatprogpath="$makedatprog" |
d9898ee8 | 11620 | |
d9898ee8 | 11621 | |
8d138742 | 11622 | ac_config_files="$ac_config_files Makefile makedat" |
d9898ee8 | 11623 | |
8d138742 CE |
11624 | cat >confcache <<\_ACEOF |
11625 | # This file is a shell script that caches the results of configure | |
11626 | # tests run on this system so they can be shared between configure | |
11627 | # scripts and configure runs, see configure's option --config-cache. | |
11628 | # It is not useful on other systems. If it contains results you don't | |
11629 | # want to keep, you may remove or edit it. | |
11630 | # | |
11631 | # config.status only pays attention to the cache file if you give it | |
11632 | # the --recheck option to rerun configure. | |
11633 | # | |
11634 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
11635 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
11636 | # following values. | |
d9898ee8 | 11637 | |
8d138742 CE |
11638 | _ACEOF |
11639 | ||
11640 | # The following way of writing the cache mishandles newlines in values, | |
11641 | # but we know of no workaround that is simple, portable, and efficient. | |
11642 | # So, we kill variables containing newlines. | |
11643 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
11644 | # and sets the high bit in the cache file unless we assign to the vars. | |
11645 | ( | |
11646 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
11647 | eval ac_val=\$$ac_var | |
11648 | case $ac_val in #( | |
11649 | *${as_nl}*) | |
11650 | case $ac_var in #( | |
11651 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 | |
11652 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
11653 | esac | |
11654 | case $ac_var in #( | |
11655 | _ | IFS | as_nl) ;; #( | |
11656 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
11657 | *) $as_unset $ac_var ;; | |
11658 | esac ;; | |
11659 | esac | |
11660 | done | |
11661 | ||
11662 | (set) 2>&1 | | |
11663 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
11664 | *${as_nl}ac_space=\ *) | |
11665 | # `set' does not quote correctly, so add quotes (double-quote | |
11666 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
11667 | sed -n \ | |
11668 | "s/'/'\\\\''/g; | |
11669 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
11670 | ;; #( | |
11671 | *) | |
11672 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
11673 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
11674 | ;; | |
11675 | esac | | |
11676 | sort | |
11677 | ) | | |
11678 | sed ' | |
11679 | /^ac_cv_env_/b end | |
11680 | t clear | |
11681 | :clear | |
11682 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
11683 | t end | |
11684 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
11685 | :end' >>confcache | |
11686 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
11687 | if test -w "$cache_file"; then | |
11688 | test "x$cache_file" != "x/dev/null" && | |
11689 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 | |
11690 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
11691 | cat confcache >$cache_file | |
d9898ee8 | 11692 | else |
8d138742 CE |
11693 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
11694 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
d9898ee8 | 11695 | fi |
8d138742 CE |
11696 | fi |
11697 | rm -f confcache | |
d9898ee8 | 11698 | |
8d138742 CE |
11699 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
11700 | # Let make expand exec_prefix. | |
11701 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
d9898ee8 | 11702 | |
8d138742 | 11703 | DEFS=-DHAVE_CONFIG_H |
d9898ee8 | 11704 | |
8d138742 CE |
11705 | ac_libobjs= |
11706 | ac_ltlibobjs= | |
11707 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
11708 | # 1. Remove the extension, and $U if already installed. | |
11709 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
11710 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
11711 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
11712 | # will be set to the directory where LIBOBJS objects are built. | |
11713 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
11714 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
11715 | done | |
11716 | LIBOBJS=$ac_libobjs | |
d9898ee8 | 11717 | |
8d138742 | 11718 | LTLIBOBJS=$ac_ltlibobjs |
ac40fd9e | 11719 | |
d9898ee8 | 11720 | |
8d138742 CE |
11721 | if test -n "$EXEEXT"; then |
11722 | am__EXEEXT_TRUE= | |
11723 | am__EXEEXT_FALSE='#' | |
11724 | else | |
11725 | am__EXEEXT_TRUE='#' | |
11726 | am__EXEEXT_FALSE= | |
11727 | fi | |
d9898ee8 | 11728 | |
8d138742 CE |
11729 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
11730 | { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
11731 | Usually this means the macro was only invoked conditionally." >&5 | |
11732 | $as_echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
11733 | Usually this means the macro was only invoked conditionally." >&2;} | |
11734 | { (exit 1); exit 1; }; } | |
11735 | fi | |
11736 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
11737 | { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
11738 | Usually this means the macro was only invoked conditionally." >&5 | |
11739 | $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
11740 | Usually this means the macro was only invoked conditionally." >&2;} | |
11741 | { (exit 1); exit 1; }; } | |
11742 | fi | |
d9898ee8 | 11743 | |
8d138742 CE |
11744 | : ${CONFIG_STATUS=./config.status} |
11745 | ac_write_fail=0 | |
11746 | ac_clean_files_save=$ac_clean_files | |
11747 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
11748 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
11749 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
11750 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
11751 | #! $SHELL | |
11752 | # Generated by $as_me. | |
11753 | # Run this file to recreate the current configuration. | |
11754 | # Compiler output produced by configure, useful for debugging | |
11755 | # configure, is in config.log if it exists. | |
d9898ee8 | 11756 | |
8d138742 CE |
11757 | debug=false |
11758 | ac_cs_recheck=false | |
11759 | ac_cs_silent=false | |
11760 | SHELL=\${CONFIG_SHELL-$SHELL} | |
11761 | _ACEOF | |
d9898ee8 | 11762 | |
8d138742 CE |
11763 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
11764 | ## --------------------- ## | |
11765 | ## M4sh Initialization. ## | |
11766 | ## --------------------- ## | |
d9898ee8 | 11767 | |
8d138742 CE |
11768 | # Be more Bourne compatible |
11769 | DUALCASE=1; export DUALCASE # for MKS sh | |
11770 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
11771 | emulate sh | |
11772 | NULLCMD=: | |
11773 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
11774 | # is contrary to our usage. Disable this feature. | |
11775 | alias -g '${1+"$@"}'='"$@"' | |
11776 | setopt NO_GLOB_SUBST | |
11777 | else | |
11778 | case `(set -o) 2>/dev/null` in | |
11779 | *posix*) set -o posix ;; | |
d9898ee8 | 11780 | esac |
d9898ee8 | 11781 | |
d9898ee8 | 11782 | fi |
11783 | ||
d9898ee8 | 11784 | |
8d138742 CE |
11785 | |
11786 | ||
11787 | # PATH needs CR | |
11788 | # Avoid depending upon Character Ranges. | |
11789 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
11790 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
11791 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
11792 | as_cr_digits='0123456789' | |
11793 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
11794 | ||
11795 | as_nl=' | |
11796 | ' | |
11797 | export as_nl | |
11798 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
11799 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
11800 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
11801 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
11802 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
11803 | as_echo='printf %s\n' | |
11804 | as_echo_n='printf %s' | |
11805 | else | |
11806 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
11807 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
11808 | as_echo_n='/usr/ucb/echo -n' | |
d9898ee8 | 11809 | else |
8d138742 CE |
11810 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
11811 | as_echo_n_body='eval | |
11812 | arg=$1; | |
11813 | case $arg in | |
11814 | *"$as_nl"*) | |
11815 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
11816 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
11817 | esac; | |
11818 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
11819 | ' | |
11820 | export as_echo_n_body | |
11821 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
11822 | fi | |
11823 | export as_echo_body | |
11824 | as_echo='sh -c $as_echo_body as_echo' | |
d9898ee8 | 11825 | fi |
d9898ee8 | 11826 | |
8d138742 CE |
11827 | # The user is always right. |
11828 | if test "${PATH_SEPARATOR+set}" != set; then | |
11829 | PATH_SEPARATOR=: | |
11830 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
11831 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
11832 | PATH_SEPARATOR=';' | |
11833 | } | |
d9898ee8 | 11834 | fi |
11835 | ||
8d138742 CE |
11836 | # Support unset when possible. |
11837 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
11838 | as_unset=unset | |
11839 | else | |
11840 | as_unset=false | |
11841 | fi | |
d9898ee8 | 11842 | |
d9898ee8 | 11843 | |
8d138742 CE |
11844 | # IFS |
11845 | # We need space, tab and new line, in precisely that order. Quoting is | |
11846 | # there to prevent editors from complaining about space-tab. | |
11847 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
11848 | # splitting by setting IFS to empty value.) | |
11849 | IFS=" "" $as_nl" | |
d9898ee8 | 11850 | |
8d138742 CE |
11851 | # Find who we are. Look in the path if we contain no directory separator. |
11852 | case $0 in | |
11853 | *[\\/]* ) as_myself=$0 ;; | |
11854 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11855 | for as_dir in $PATH | |
11856 | do | |
11857 | IFS=$as_save_IFS | |
11858 | test -z "$as_dir" && as_dir=. | |
11859 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
11860 | done | |
11861 | IFS=$as_save_IFS | |
d9898ee8 | 11862 | |
8d138742 CE |
11863 | ;; |
11864 | esac | |
11865 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
11866 | # in which case we are not to be found in the path. | |
11867 | if test "x$as_myself" = x; then | |
11868 | as_myself=$0 | |
11869 | fi | |
11870 | if test ! -f "$as_myself"; then | |
11871 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
11872 | { (exit 1); exit 1; } | |
11873 | fi | |
d9898ee8 | 11874 | |
8d138742 CE |
11875 | # Work around bugs in pre-3.0 UWIN ksh. |
11876 | for as_var in ENV MAIL MAILPATH | |
11877 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
11878 | done | |
11879 | PS1='$ ' | |
11880 | PS2='> ' | |
11881 | PS4='+ ' | |
d9898ee8 | 11882 | |
8d138742 CE |
11883 | # NLS nuisances. |
11884 | LC_ALL=C | |
11885 | export LC_ALL | |
11886 | LANGUAGE=C | |
11887 | export LANGUAGE | |
d9898ee8 | 11888 | |
8d138742 CE |
11889 | # Required to use basename. |
11890 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
11891 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
11892 | as_expr=expr | |
11893 | else | |
11894 | as_expr=false | |
11895 | fi | |
d9898ee8 | 11896 | |
8d138742 CE |
11897 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
11898 | as_basename=basename | |
11899 | else | |
11900 | as_basename=false | |
11901 | fi | |
d9898ee8 | 11902 | |
d9898ee8 | 11903 | |
8d138742 CE |
11904 | # Name of the executable. |
11905 | as_me=`$as_basename -- "$0" || | |
11906 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
11907 | X"$0" : 'X\(//\)$' \| \ | |
11908 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
11909 | $as_echo X/"$0" | | |
11910 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
11911 | s//\1/ | |
11912 | q | |
11913 | } | |
11914 | /^X\/\(\/\/\)$/{ | |
11915 | s//\1/ | |
11916 | q | |
11917 | } | |
11918 | /^X\/\(\/\).*/{ | |
11919 | s//\1/ | |
11920 | q | |
11921 | } | |
11922 | s/.*/./; q'` | |
d9898ee8 | 11923 | |
8d138742 CE |
11924 | # CDPATH. |
11925 | $as_unset CDPATH | |
d9898ee8 | 11926 | |
d9898ee8 | 11927 | |
d9898ee8 | 11928 | |
8d138742 CE |
11929 | as_lineno_1=$LINENO |
11930 | as_lineno_2=$LINENO | |
11931 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
11932 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
d9898ee8 | 11933 | |
8d138742 CE |
11934 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
11935 | # uniformly replaced by the line number. The first 'sed' inserts a | |
11936 | # line-number line after each line using $LINENO; the second 'sed' | |
11937 | # does the real work. The second script uses 'N' to pair each | |
11938 | # line-number line with the line containing $LINENO, and appends | |
11939 | # trailing '-' during substitution so that $LINENO is not a special | |
11940 | # case at line end. | |
11941 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
11942 | # scripts with optimization help from Paolo Bonzini. Blame Lee | |
11943 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
11944 | sed -n ' | |
11945 | p | |
11946 | /[$]LINENO/= | |
11947 | ' <$as_myself | | |
11948 | sed ' | |
11949 | s/[$]LINENO.*/&-/ | |
11950 | t lineno | |
11951 | b | |
11952 | :lineno | |
11953 | N | |
11954 | :loop | |
11955 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
11956 | t loop | |
11957 | s/-\n.*// | |
11958 | ' >$as_me.lineno && | |
11959 | chmod +x "$as_me.lineno" || | |
11960 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
11961 | { (exit 1); exit 1; }; } | |
d9898ee8 | 11962 | |
8d138742 CE |
11963 | # Don't try to exec as it changes $[0], causing all sort of problems |
11964 | # (the dirname of $[0] is not the place where we might find the | |
11965 | # original and so on. Autoconf is especially sensitive to this). | |
11966 | . "./$as_me.lineno" | |
11967 | # Exit status is that of the last command. | |
11968 | exit | |
11969 | } | |
d9898ee8 | 11970 | |
d9898ee8 | 11971 | |
8d138742 CE |
11972 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
11973 | as_dirname=dirname | |
11974 | else | |
11975 | as_dirname=false | |
11976 | fi | |
d9898ee8 | 11977 | |
8d138742 CE |
11978 | ECHO_C= ECHO_N= ECHO_T= |
11979 | case `echo -n x` in | |
11980 | -n*) | |
11981 | case `echo 'x\c'` in | |
11982 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
11983 | *) ECHO_C='\c';; | |
11984 | esac;; | |
11985 | *) | |
11986 | ECHO_N='-n';; | |
11987 | esac | |
11988 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
11989 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
11990 | as_expr=expr | |
11991 | else | |
11992 | as_expr=false | |
11993 | fi | |
d9898ee8 | 11994 | |
8d138742 CE |
11995 | rm -f conf$$ conf$$.exe conf$$.file |
11996 | if test -d conf$$.dir; then | |
11997 | rm -f conf$$.dir/conf$$.file | |
11998 | else | |
11999 | rm -f conf$$.dir | |
12000 | mkdir conf$$.dir 2>/dev/null | |
12001 | fi | |
12002 | if (echo >conf$$.file) 2>/dev/null; then | |
12003 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
12004 | as_ln_s='ln -s' | |
12005 | # ... but there are two gotchas: | |
12006 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
12007 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
12008 | # In both cases, we have to default to `cp -p'. | |
12009 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
12010 | as_ln_s='cp -p' | |
12011 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
12012 | as_ln_s=ln | |
12013 | else | |
12014 | as_ln_s='cp -p' | |
12015 | fi | |
12016 | else | |
12017 | as_ln_s='cp -p' | |
12018 | fi | |
12019 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
12020 | rmdir conf$$.dir 2>/dev/null | |
d9898ee8 | 12021 | |
8d138742 CE |
12022 | if mkdir -p . 2>/dev/null; then |
12023 | as_mkdir_p=: | |
12024 | else | |
12025 | test -d ./-p && rmdir ./-p | |
12026 | as_mkdir_p=false | |
12027 | fi | |
d9898ee8 | 12028 | |
8d138742 CE |
12029 | if test -x / >/dev/null 2>&1; then |
12030 | as_test_x='test -x' | |
12031 | else | |
12032 | if ls -dL / >/dev/null 2>&1; then | |
12033 | as_ls_L_option=L | |
12034 | else | |
12035 | as_ls_L_option= | |
12036 | fi | |
12037 | as_test_x=' | |
12038 | eval sh -c '\'' | |
12039 | if test -d "$1"; then | |
12040 | test -d "$1/."; | |
12041 | else | |
12042 | case $1 in | |
12043 | -*)set "./$1";; | |
12044 | esac; | |
12045 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
12046 | ???[sx]*):;;*)false;;esac;fi | |
12047 | '\'' sh | |
12048 | ' | |
12049 | fi | |
12050 | as_executable_p=$as_test_x | |
d9898ee8 | 12051 | |
8d138742 CE |
12052 | # Sed expression to map a string onto a valid CPP name. |
12053 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
d9898ee8 | 12054 | |
8d138742 CE |
12055 | # Sed expression to map a string onto a valid variable name. |
12056 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
d9898ee8 | 12057 | |
d9898ee8 | 12058 | |
8d138742 | 12059 | exec 6>&1 |
d9898ee8 | 12060 | |
8d138742 CE |
12061 | # Save the log message, to keep $[0] and so on meaningful, and to |
12062 | # report actual input values of CONFIG_FILES etc. instead of their | |
12063 | # values after options handling. | |
12064 | ac_log=" | |
12065 | This file was extended by makedat $as_me 0.60, which was | |
12066 | generated by GNU Autoconf 2.63. Invocation command line was | |
d9898ee8 | 12067 | |
8d138742 CE |
12068 | CONFIG_FILES = $CONFIG_FILES |
12069 | CONFIG_HEADERS = $CONFIG_HEADERS | |
12070 | CONFIG_LINKS = $CONFIG_LINKS | |
12071 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
12072 | $ $0 $@ | |
d9898ee8 | 12073 | |
8d138742 CE |
12074 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
12075 | " | |
d9898ee8 | 12076 | |
8d138742 | 12077 | _ACEOF |
d9898ee8 | 12078 | |
8d138742 CE |
12079 | case $ac_config_files in *" |
12080 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
12081 | esac | |
d9898ee8 | 12082 | |
8d138742 CE |
12083 | case $ac_config_headers in *" |
12084 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
12085 | esac | |
d9898ee8 | 12086 | |
d9898ee8 | 12087 | |
8d138742 CE |
12088 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
12089 | # Files that config.status was made for. | |
12090 | config_files="$ac_config_files" | |
12091 | config_headers="$ac_config_headers" | |
12092 | config_commands="$ac_config_commands" | |
d9898ee8 | 12093 | |
8d138742 | 12094 | _ACEOF |
d9898ee8 | 12095 | |
8d138742 CE |
12096 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
12097 | ac_cs_usage="\ | |
12098 | \`$as_me' instantiates files from templates according to the | |
12099 | current configuration. | |
d9898ee8 | 12100 | |
8d138742 | 12101 | Usage: $0 [OPTION]... [FILE]... |
d9898ee8 | 12102 | |
8d138742 CE |
12103 | -h, --help print this help, then exit |
12104 | -V, --version print version number and configuration settings, then exit | |
12105 | -q, --quiet, --silent | |
12106 | do not print progress messages | |
12107 | -d, --debug don't remove temporary files | |
12108 | --recheck update $as_me by reconfiguring in the same conditions | |
12109 | --file=FILE[:TEMPLATE] | |
12110 | instantiate the configuration file FILE | |
12111 | --header=FILE[:TEMPLATE] | |
12112 | instantiate the configuration header FILE | |
d9898ee8 | 12113 | |
8d138742 CE |
12114 | Configuration files: |
12115 | $config_files | |
d9898ee8 | 12116 | |
8d138742 CE |
12117 | Configuration headers: |
12118 | $config_headers | |
d9898ee8 | 12119 | |
8d138742 CE |
12120 | Configuration commands: |
12121 | $config_commands | |
d9898ee8 | 12122 | |
8d138742 | 12123 | Report bugs to <bug-autoconf@gnu.org>." |
d9898ee8 | 12124 | |
8d138742 CE |
12125 | _ACEOF |
12126 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
12127 | ac_cs_version="\\ | |
12128 | makedat config.status 0.60 | |
12129 | configured by $0, generated by GNU Autoconf 2.63, | |
12130 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
d9898ee8 | 12131 | |
8d138742 CE |
12132 | Copyright (C) 2008 Free Software Foundation, Inc. |
12133 | This config.status script is free software; the Free Software Foundation | |
12134 | gives unlimited permission to copy, distribute and modify it." | |
d9898ee8 | 12135 | |
8d138742 CE |
12136 | ac_pwd='$ac_pwd' |
12137 | srcdir='$srcdir' | |
12138 | INSTALL='$INSTALL' | |
12139 | MKDIR_P='$MKDIR_P' | |
12140 | AWK='$AWK' | |
12141 | test -n "\$AWK" || AWK=awk | |
12142 | _ACEOF | |
d9898ee8 | 12143 | |
8d138742 CE |
12144 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
12145 | # The default lists apply if the user does not specify any file. | |
12146 | ac_need_defaults=: | |
12147 | while test $# != 0 | |
12148 | do | |
12149 | case $1 in | |
12150 | --*=*) | |
12151 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
12152 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
12153 | ac_shift=: | |
12154 | ;; | |
12155 | *) | |
12156 | ac_option=$1 | |
12157 | ac_optarg=$2 | |
12158 | ac_shift=shift | |
12159 | ;; | |
12160 | esac | |
d9898ee8 | 12161 | |
8d138742 CE |
12162 | case $ac_option in |
12163 | # Handling of the options. | |
12164 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
12165 | ac_cs_recheck=: ;; | |
12166 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
12167 | $as_echo "$ac_cs_version"; exit ;; | |
12168 | --debug | --debu | --deb | --de | --d | -d ) | |
12169 | debug=: ;; | |
12170 | --file | --fil | --fi | --f ) | |
12171 | $ac_shift | |
12172 | case $ac_optarg in | |
12173 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
12174 | esac | |
12175 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" | |
12176 | ac_need_defaults=false;; | |
12177 | --header | --heade | --head | --hea ) | |
12178 | $ac_shift | |
12179 | case $ac_optarg in | |
12180 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
12181 | esac | |
12182 | CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" | |
12183 | ac_need_defaults=false;; | |
12184 | --he | --h) | |
12185 | # Conflict between --help and --header | |
12186 | { $as_echo "$as_me: error: ambiguous option: $1 | |
12187 | Try \`$0 --help' for more information." >&2 | |
12188 | { (exit 1); exit 1; }; };; | |
12189 | --help | --hel | -h ) | |
12190 | $as_echo "$ac_cs_usage"; exit ;; | |
12191 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
12192 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
12193 | ac_cs_silent=: ;; | |
d9898ee8 | 12194 | |
8d138742 CE |
12195 | # This is an error. |
12196 | -*) { $as_echo "$as_me: error: unrecognized option: $1 | |
12197 | Try \`$0 --help' for more information." >&2 | |
12198 | { (exit 1); exit 1; }; } ;; | |
d9898ee8 | 12199 | |
8d138742 CE |
12200 | *) ac_config_targets="$ac_config_targets $1" |
12201 | ac_need_defaults=false ;; | |
d9898ee8 | 12202 | |
8d138742 CE |
12203 | esac |
12204 | shift | |
12205 | done | |
d9898ee8 | 12206 | |
8d138742 | 12207 | ac_configure_extra_args= |
d9898ee8 | 12208 | |
8d138742 CE |
12209 | if $ac_cs_silent; then |
12210 | exec 6>/dev/null | |
12211 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
12212 | fi | |
d9898ee8 | 12213 | |
8d138742 CE |
12214 | _ACEOF |
12215 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
12216 | if \$ac_cs_recheck; then | |
12217 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
12218 | shift | |
12219 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
12220 | CONFIG_SHELL='$SHELL' | |
12221 | export CONFIG_SHELL | |
12222 | exec "\$@" | |
12223 | fi | |
d9898ee8 | 12224 | |
8d138742 CE |
12225 | _ACEOF |
12226 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
12227 | exec 5>>config.log | |
12228 | { | |
12229 | echo | |
12230 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
12231 | ## Running $as_me. ## | |
12232 | _ASBOX | |
12233 | $as_echo "$ac_log" | |
12234 | } >&5 | |
d9898ee8 | 12235 | |
8d138742 CE |
12236 | _ACEOF |
12237 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
12238 | # | |
12239 | # INIT-COMMANDS | |
12240 | # | |
12241 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
d9898ee8 | 12242 | |
d9898ee8 | 12243 | |
8d138742 CE |
12244 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
12245 | # if CDPATH is set. | |
12246 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
d9898ee8 | 12247 | |
8d138742 CE |
12248 | sed_quote_subst='$sed_quote_subst' |
12249 | double_quote_subst='$double_quote_subst' | |
12250 | delay_variable_subst='$delay_variable_subst' | |
12251 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' | |
12252 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' | |
12253 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' | |
12254 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' | |
12255 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' | |
12256 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' | |
12257 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
12258 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' | |
12259 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' | |
12260 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
12261 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' | |
12262 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' | |
12263 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' | |
12264 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' | |
12265 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' | |
12266 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
12267 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
12268 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' | |
12269 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' | |
12270 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' | |
12271 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' | |
12272 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' | |
12273 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' | |
12274 | lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' | |
12275 | lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' | |
12276 | lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' | |
12277 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
12278 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12279 | OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' | |
12280 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' | |
12281 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' | |
12282 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' | |
12283 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
12284 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' | |
12285 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' | |
12286 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12287 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12288 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12289 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' | |
12290 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
12291 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' | |
12292 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' | |
12293 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' | |
12294 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' | |
12295 | 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"`' | |
12296 | 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"`' | |
12297 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' | |
12298 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' | |
12299 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' | |
12300 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' | |
12301 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
12302 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' | |
12303 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' | |
12304 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' | |
12305 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' | |
12306 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' | |
12307 | DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' | |
12308 | NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' | |
12309 | LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' | |
12310 | OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' | |
12311 | OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' | |
12312 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' | |
12313 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12314 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12315 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' | |
12316 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' | |
12317 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
12318 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
12319 | compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' | |
12320 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12321 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12322 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12323 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12324 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12325 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12326 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
12327 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
12328 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
12329 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
12330 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
12331 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' | |
12332 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' | |
12333 | hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' | |
12334 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' | |
12335 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
12336 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' | |
12337 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' | |
12338 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' | |
12339 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' | |
12340 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' | |
12341 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12342 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
12343 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
12344 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12345 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
12346 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' | |
12347 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | |
12348 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' | |
12349 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' | |
12350 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
12351 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
12352 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' | |
12353 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
12354 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
12355 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
12356 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12357 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12358 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12359 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' | |
12360 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' | |
12361 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
12362 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
12363 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' | |
12364 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' | |
12365 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' | |
12366 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' | |
12367 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
12368 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
12369 | ||
12370 | LTCC='$LTCC' | |
12371 | LTCFLAGS='$LTCFLAGS' | |
12372 | compiler='$compiler_DEFAULT' | |
12373 | ||
12374 | # Quote evaled strings. | |
12375 | for var in SED \ | |
12376 | GREP \ | |
12377 | EGREP \ | |
12378 | FGREP \ | |
12379 | LD \ | |
12380 | NM \ | |
12381 | LN_S \ | |
12382 | lt_SP2NL \ | |
12383 | lt_NL2SP \ | |
12384 | reload_flag \ | |
12385 | OBJDUMP \ | |
12386 | deplibs_check_method \ | |
12387 | file_magic_cmd \ | |
12388 | AR \ | |
12389 | AR_FLAGS \ | |
12390 | STRIP \ | |
12391 | RANLIB \ | |
12392 | CC \ | |
12393 | CFLAGS \ | |
12394 | compiler \ | |
12395 | lt_cv_sys_global_symbol_pipe \ | |
12396 | lt_cv_sys_global_symbol_to_cdecl \ | |
12397 | lt_cv_sys_global_symbol_to_c_name_address \ | |
12398 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
12399 | SHELL \ | |
12400 | ECHO \ | |
12401 | lt_prog_compiler_no_builtin_flag \ | |
12402 | lt_prog_compiler_wl \ | |
12403 | lt_prog_compiler_pic \ | |
12404 | lt_prog_compiler_static \ | |
12405 | lt_cv_prog_compiler_c_o \ | |
12406 | need_locks \ | |
12407 | DSYMUTIL \ | |
12408 | NMEDIT \ | |
12409 | LIPO \ | |
12410 | OTOOL \ | |
12411 | OTOOL64 \ | |
12412 | shrext_cmds \ | |
12413 | export_dynamic_flag_spec \ | |
12414 | whole_archive_flag_spec \ | |
12415 | compiler_needs_object \ | |
12416 | with_gnu_ld \ | |
12417 | allow_undefined_flag \ | |
12418 | no_undefined_flag \ | |
12419 | hardcode_libdir_flag_spec \ | |
12420 | hardcode_libdir_flag_spec_ld \ | |
12421 | hardcode_libdir_separator \ | |
12422 | fix_srcfile_path \ | |
12423 | exclude_expsyms \ | |
12424 | include_expsyms \ | |
12425 | file_list_spec \ | |
12426 | variables_saved_for_relink \ | |
12427 | libname_spec \ | |
12428 | library_names_spec \ | |
12429 | soname_spec \ | |
12430 | finish_eval \ | |
12431 | old_striplib \ | |
12432 | striplib; do | |
12433 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
12434 | *[\\\\\\\`\\"\\\$]*) | |
12435 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
12436 | ;; | |
12437 | *) | |
12438 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
12439 | ;; | |
12440 | esac | |
12441 | done | |
d9898ee8 | 12442 | |
8d138742 CE |
12443 | # Double-quote double-evaled strings. |
12444 | for var in reload_cmds \ | |
12445 | old_postinstall_cmds \ | |
12446 | old_postuninstall_cmds \ | |
12447 | old_archive_cmds \ | |
12448 | extract_expsyms_cmds \ | |
12449 | old_archive_from_new_cmds \ | |
12450 | old_archive_from_expsyms_cmds \ | |
12451 | archive_cmds \ | |
12452 | archive_expsym_cmds \ | |
12453 | module_cmds \ | |
12454 | module_expsym_cmds \ | |
12455 | export_symbols_cmds \ | |
12456 | prelink_cmds \ | |
12457 | postinstall_cmds \ | |
12458 | postuninstall_cmds \ | |
12459 | finish_cmds \ | |
12460 | sys_lib_search_path_spec \ | |
12461 | sys_lib_dlsearch_path_spec; do | |
12462 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
12463 | *[\\\\\\\`\\"\\\$]*) | |
12464 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
12465 | ;; | |
12466 | *) | |
12467 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
12468 | ;; | |
12469 | esac | |
12470 | done | |
d9898ee8 | 12471 | |
8d138742 CE |
12472 | # Fix-up fallback echo if it was mangled by the above quoting rules. |
12473 | case \$lt_ECHO in | |
12474 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` | |
12475 | ;; | |
12476 | esac | |
d9898ee8 | 12477 | |
8d138742 CE |
12478 | ac_aux_dir='$ac_aux_dir' |
12479 | xsi_shell='$xsi_shell' | |
12480 | lt_shell_append='$lt_shell_append' | |
d9898ee8 | 12481 | |
8d138742 CE |
12482 | # See if we are running on zsh, and set the options which allow our |
12483 | # commands through without removal of \ escapes INIT. | |
12484 | if test -n "\${ZSH_VERSION+set}" ; then | |
12485 | setopt NO_GLOB_SUBST | |
12486 | fi | |
d9898ee8 | 12487 | |
d9898ee8 | 12488 | |
8d138742 CE |
12489 | PACKAGE='$PACKAGE' |
12490 | VERSION='$VERSION' | |
12491 | TIMESTAMP='$TIMESTAMP' | |
12492 | RM='$RM' | |
12493 | ofile='$ofile' | |
d9898ee8 | 12494 | |
d9898ee8 | 12495 | |
d9898ee8 | 12496 | |
d9898ee8 | 12497 | |
8d138742 | 12498 | _ACEOF |
d9898ee8 | 12499 | |
8d138742 | 12500 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
d9898ee8 | 12501 | |
8d138742 CE |
12502 | # Handling of arguments. |
12503 | for ac_config_target in $ac_config_targets | |
12504 | do | |
12505 | case $ac_config_target in | |
12506 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
12507 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
12508 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
12509 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
12510 | "makedat") CONFIG_FILES="$CONFIG_FILES makedat" ;; | |
d9898ee8 | 12511 | |
8d138742 CE |
12512 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
12513 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
12514 | { (exit 1); exit 1; }; };; | |
12515 | esac | |
12516 | done | |
d9898ee8 | 12517 | |
d9898ee8 | 12518 | |
8d138742 CE |
12519 | # If the user did not use the arguments to specify the items to instantiate, |
12520 | # then the envvar interface is used. Set only those that are not. | |
12521 | # We use the long form for the default assignment because of an extremely | |
12522 | # bizarre bug on SunOS 4.1.3. | |
12523 | if $ac_need_defaults; then | |
12524 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
12525 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
12526 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
12527 | fi | |
d9898ee8 | 12528 | |
8d138742 CE |
12529 | # Have a temporary directory for convenience. Make it in the build tree |
12530 | # simply because there is no reason against having it here, and in addition, | |
12531 | # creating and moving files from /tmp can sometimes cause problems. | |
12532 | # Hook for its removal unless debugging. | |
12533 | # Note that there is a small window in which the directory will not be cleaned: | |
12534 | # after its creation but before its name has been assigned to `$tmp'. | |
12535 | $debug || | |
12536 | { | |
12537 | tmp= | |
12538 | trap 'exit_status=$? | |
12539 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
12540 | ' 0 | |
12541 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
12542 | } | |
12543 | # Create a (secure) tmp directory for tmp files. | |
d9898ee8 | 12544 | |
8d138742 CE |
12545 | { |
12546 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
12547 | test -n "$tmp" && test -d "$tmp" | |
12548 | } || | |
12549 | { | |
12550 | tmp=./conf$$-$RANDOM | |
12551 | (umask 077 && mkdir "$tmp") | |
12552 | } || | |
12553 | { | |
12554 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 | |
12555 | { (exit 1); exit 1; } | |
12556 | } | |
d9898ee8 | 12557 | |
8d138742 CE |
12558 | # Set up the scripts for CONFIG_FILES section. |
12559 | # No need to generate them if there are no CONFIG_FILES. | |
12560 | # This happens for instance with `./config.status config.h'. | |
12561 | if test -n "$CONFIG_FILES"; then | |
d9898ee8 | 12562 | |
12563 | ||
8d138742 CE |
12564 | ac_cr='\r' |
12565 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
12566 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
12567 | ac_cs_awk_cr='\\r' | |
d9898ee8 | 12568 | else |
8d138742 | 12569 | ac_cs_awk_cr=$ac_cr |
d9898ee8 | 12570 | fi |
12571 | ||
8d138742 CE |
12572 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
12573 | _ACEOF | |
d9898ee8 | 12574 | |
d9898ee8 | 12575 | |
8d138742 CE |
12576 | { |
12577 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
12578 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
12579 | echo "_ACEOF" | |
12580 | } >conf$$subs.sh || | |
12581 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
12582 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
12583 | { (exit 1); exit 1; }; } | |
12584 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
12585 | ac_delim='%!_!# ' | |
12586 | for ac_last_try in false false false false false :; do | |
12587 | . ./conf$$subs.sh || | |
12588 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
12589 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
12590 | { (exit 1); exit 1; }; } | |
d9898ee8 | 12591 | |
8d138742 CE |
12592 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
12593 | if test $ac_delim_n = $ac_delim_num; then | |
12594 | break | |
12595 | elif $ac_last_try; then | |
12596 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
12597 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
12598 | { (exit 1); exit 1; }; } | |
12599 | else | |
12600 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
12601 | fi | |
12602 | done | |
12603 | rm -f conf$$subs.sh | |
12604 | ||
12605 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
12606 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
12607 | _ACEOF | |
12608 | sed -n ' | |
12609 | h | |
12610 | s/^/S["/; s/!.*/"]=/ | |
12611 | p | |
12612 | g | |
12613 | s/^[^!]*!// | |
12614 | :repl | |
12615 | t repl | |
12616 | s/'"$ac_delim"'$// | |
12617 | t delim | |
12618 | :nl | |
12619 | h | |
12620 | s/\(.\{148\}\).*/\1/ | |
12621 | t more1 | |
12622 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
12623 | p | |
12624 | n | |
12625 | b repl | |
12626 | :more1 | |
12627 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
12628 | p | |
12629 | g | |
12630 | s/.\{148\}// | |
12631 | t nl | |
12632 | :delim | |
12633 | h | |
12634 | s/\(.\{148\}\).*/\1/ | |
12635 | t more2 | |
12636 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
12637 | p | |
12638 | b | |
12639 | :more2 | |
12640 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
12641 | p | |
12642 | g | |
12643 | s/.\{148\}// | |
12644 | t delim | |
12645 | ' <conf$$subs.awk | sed ' | |
12646 | /^[^""]/{ | |
12647 | N | |
12648 | s/\n// | |
12649 | } | |
12650 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
12651 | rm -f conf$$subs.awk | |
12652 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
12653 | _ACAWK | |
12654 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
12655 | for (key in S) S_is_set[key] = 1 | |
12656 | FS = "\a" | |
d9898ee8 | 12657 | |
8d138742 CE |
12658 | } |
12659 | { | |
12660 | line = $ 0 | |
12661 | nfields = split(line, field, "@") | |
12662 | substed = 0 | |
12663 | len = length(field[1]) | |
12664 | for (i = 2; i < nfields; i++) { | |
12665 | key = field[i] | |
12666 | keylen = length(key) | |
12667 | if (S_is_set[key]) { | |
12668 | value = S[key] | |
12669 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
12670 | len += length(value) + length(field[++i]) | |
12671 | substed = 1 | |
12672 | } else | |
12673 | len += 1 + keylen | |
12674 | } | |
d9898ee8 | 12675 | |
8d138742 CE |
12676 | print line |
12677 | } | |
d9898ee8 | 12678 | |
8d138742 CE |
12679 | _ACAWK |
12680 | _ACEOF | |
12681 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
12682 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
12683 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
12684 | else | |
12685 | cat | |
12686 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
12687 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 | |
12688 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} | |
12689 | { (exit 1); exit 1; }; } | |
12690 | _ACEOF | |
d9898ee8 | 12691 | |
8d138742 CE |
12692 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
12693 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
12694 | # trailing colons and then remove the whole line if VPATH becomes empty | |
12695 | # (actually we leave an empty line to preserve line numbers). | |
12696 | if test "x$srcdir" = x.; then | |
12697 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
12698 | s/:*\$(srcdir):*/:/ | |
12699 | s/:*\${srcdir}:*/:/ | |
12700 | s/:*@srcdir@:*/:/ | |
12701 | s/^\([^=]*=[ ]*\):*/\1/ | |
12702 | s/:*$// | |
12703 | s/^[^=]*=[ ]*$// | |
12704 | }' | |
12705 | fi | |
d9898ee8 | 12706 | |
8d138742 CE |
12707 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
12708 | fi # test -n "$CONFIG_FILES" | |
d9898ee8 | 12709 | |
8d138742 CE |
12710 | # Set up the scripts for CONFIG_HEADERS section. |
12711 | # No need to generate them if there are no CONFIG_HEADERS. | |
12712 | # This happens for instance with `./config.status Makefile'. | |
12713 | if test -n "$CONFIG_HEADERS"; then | |
12714 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
12715 | BEGIN { | |
12716 | _ACEOF | |
d9898ee8 | 12717 | |
8d138742 CE |
12718 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
12719 | # here-document in config.status, that substitutes the proper values into | |
12720 | # config.h.in to produce config.h. | |
d9898ee8 | 12721 | |
8d138742 CE |
12722 | # Create a delimiter string that does not exist in confdefs.h, to ease |
12723 | # handling of long lines. | |
12724 | ac_delim='%!_!# ' | |
12725 | for ac_last_try in false false :; do | |
12726 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
12727 | if test -z "$ac_t"; then | |
12728 | break | |
12729 | elif $ac_last_try; then | |
12730 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 | |
12731 | $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} | |
12732 | { (exit 1); exit 1; }; } | |
12733 | else | |
12734 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
12735 | fi | |
12736 | done | |
d9898ee8 | 12737 | |
8d138742 CE |
12738 | # For the awk script, D is an array of macro values keyed by name, |
12739 | # likewise P contains macro parameters if any. Preserve backslash | |
12740 | # newline sequences. | |
d9898ee8 | 12741 | |
8d138742 CE |
12742 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
12743 | sed -n ' | |
12744 | s/.\{148\}/&'"$ac_delim"'/g | |
12745 | t rset | |
12746 | :rset | |
12747 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
12748 | t def | |
12749 | d | |
12750 | :def | |
12751 | s/\\$// | |
12752 | t bsnl | |
12753 | s/["\\]/\\&/g | |
12754 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
12755 | D["\1"]=" \3"/p | |
12756 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
12757 | d | |
12758 | :bsnl | |
12759 | s/["\\]/\\&/g | |
12760 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
12761 | D["\1"]=" \3\\\\\\n"\\/p | |
12762 | t cont | |
12763 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
12764 | t cont | |
12765 | d | |
12766 | :cont | |
12767 | n | |
12768 | s/.\{148\}/&'"$ac_delim"'/g | |
12769 | t clear | |
12770 | :clear | |
12771 | s/\\$// | |
12772 | t bsnlc | |
12773 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
12774 | d | |
12775 | :bsnlc | |
12776 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
12777 | b cont | |
12778 | ' <confdefs.h | sed ' | |
12779 | s/'"$ac_delim"'/"\\\ | |
12780 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
12781 | ||
12782 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
12783 | for (key in D) D_is_set[key] = 1 | |
12784 | FS = "\a" | |
12785 | } | |
12786 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
12787 | line = \$ 0 | |
12788 | split(line, arg, " ") | |
12789 | if (arg[1] == "#") { | |
12790 | defundef = arg[2] | |
12791 | mac1 = arg[3] | |
12792 | } else { | |
12793 | defundef = substr(arg[1], 2) | |
12794 | mac1 = arg[2] | |
12795 | } | |
12796 | split(mac1, mac2, "(") #) | |
12797 | macro = mac2[1] | |
12798 | prefix = substr(line, 1, index(line, defundef) - 1) | |
12799 | if (D_is_set[macro]) { | |
12800 | # Preserve the white space surrounding the "#". | |
12801 | print prefix "define", macro P[macro] D[macro] | |
12802 | next | |
12803 | } else { | |
12804 | # Replace #undef with comments. This is necessary, for example, | |
12805 | # in the case of _POSIX_SOURCE, which is predefined and required | |
12806 | # on some systems where configure will not decide to define it. | |
12807 | if (defundef == "undef") { | |
12808 | print "/*", prefix defundef, macro, "*/" | |
12809 | next | |
12810 | } | |
12811 | } | |
12812 | } | |
12813 | { print } | |
12814 | _ACAWK | |
12815 | _ACEOF | |
12816 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
12817 | { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 | |
12818 | $as_echo "$as_me: error: could not setup config headers machinery" >&2;} | |
12819 | { (exit 1); exit 1; }; } | |
12820 | fi # test -n "$CONFIG_HEADERS" | |
d9898ee8 | 12821 | |
12822 | ||
8d138742 CE |
12823 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
12824 | shift | |
12825 | for ac_tag | |
12826 | do | |
12827 | case $ac_tag in | |
12828 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
12829 | esac | |
12830 | case $ac_mode$ac_tag in | |
12831 | :[FHL]*:*);; | |
12832 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 | |
12833 | $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} | |
12834 | { (exit 1); exit 1; }; };; | |
12835 | :[FH]-) ac_tag=-:-;; | |
12836 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
12837 | esac | |
12838 | ac_save_IFS=$IFS | |
12839 | IFS=: | |
12840 | set x $ac_tag | |
12841 | IFS=$ac_save_IFS | |
12842 | shift | |
12843 | ac_file=$1 | |
12844 | shift | |
dd184caf | 12845 | |
8d138742 CE |
12846 | case $ac_mode in |
12847 | :L) ac_source=$1;; | |
12848 | :[FH]) | |
12849 | ac_file_inputs= | |
12850 | for ac_f | |
12851 | do | |
12852 | case $ac_f in | |
12853 | -) ac_f="$tmp/stdin";; | |
12854 | *) # Look for the file first in the build tree, then in the source tree | |
12855 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
12856 | # because $ac_f cannot contain `:'. | |
12857 | test -f "$ac_f" || | |
12858 | case $ac_f in | |
12859 | [\\/$]*) false;; | |
12860 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
12861 | esac || | |
12862 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | |
12863 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
12864 | { (exit 1); exit 1; }; };; | |
12865 | esac | |
12866 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
12867 | ac_file_inputs="$ac_file_inputs '$ac_f'" | |
12868 | done | |
dd184caf | 12869 | |
8d138742 CE |
12870 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
12871 | # use $as_me), people would be surprised to read: | |
12872 | # /* config.h. Generated by config.status. */ | |
12873 | configure_input='Generated from '` | |
12874 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
12875 | `' by configure.' | |
12876 | if test x"$ac_file" != x-; then | |
12877 | configure_input="$ac_file. $configure_input" | |
12878 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 | |
12879 | $as_echo "$as_me: creating $ac_file" >&6;} | |
12880 | fi | |
12881 | # Neutralize special characters interpreted by sed in replacement strings. | |
12882 | case $configure_input in #( | |
12883 | *\&* | *\|* | *\\* ) | |
12884 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
12885 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
12886 | *) ac_sed_conf_input=$configure_input;; | |
12887 | esac | |
d9898ee8 | 12888 | |
8d138742 CE |
12889 | case $ac_tag in |
12890 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
12891 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
12892 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
12893 | { (exit 1); exit 1; }; } ;; | |
12894 | esac | |
12895 | ;; | |
12896 | esac | |
d9898ee8 | 12897 | |
8d138742 CE |
12898 | ac_dir=`$as_dirname -- "$ac_file" || |
12899 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
12900 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
12901 | X"$ac_file" : 'X\(//\)$' \| \ | |
12902 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
12903 | $as_echo X"$ac_file" | | |
12904 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
12905 | s//\1/ | |
12906 | q | |
12907 | } | |
12908 | /^X\(\/\/\)[^/].*/{ | |
12909 | s//\1/ | |
12910 | q | |
12911 | } | |
12912 | /^X\(\/\/\)$/{ | |
12913 | s//\1/ | |
12914 | q | |
12915 | } | |
12916 | /^X\(\/\).*/{ | |
12917 | s//\1/ | |
12918 | q | |
12919 | } | |
12920 | s/.*/./; q'` | |
12921 | { as_dir="$ac_dir" | |
12922 | case $as_dir in #( | |
12923 | -*) as_dir=./$as_dir;; | |
12924 | esac | |
12925 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
12926 | as_dirs= | |
12927 | while :; do | |
12928 | case $as_dir in #( | |
12929 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
12930 | *) as_qdir=$as_dir;; | |
12931 | esac | |
12932 | as_dirs="'$as_qdir' $as_dirs" | |
12933 | as_dir=`$as_dirname -- "$as_dir" || | |
12934 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
12935 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
12936 | X"$as_dir" : 'X\(//\)$' \| \ | |
12937 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
12938 | $as_echo X"$as_dir" | | |
12939 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
12940 | s//\1/ | |
12941 | q | |
12942 | } | |
12943 | /^X\(\/\/\)[^/].*/{ | |
12944 | s//\1/ | |
12945 | q | |
12946 | } | |
12947 | /^X\(\/\/\)$/{ | |
12948 | s//\1/ | |
12949 | q | |
12950 | } | |
12951 | /^X\(\/\).*/{ | |
12952 | s//\1/ | |
12953 | q | |
12954 | } | |
12955 | s/.*/./; q'` | |
12956 | test -d "$as_dir" && break | |
12957 | done | |
12958 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
12959 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
12960 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
12961 | { (exit 1); exit 1; }; }; } | |
12962 | ac_builddir=. | |
d9898ee8 | 12963 | |
8d138742 CE |
12964 | case "$ac_dir" in |
12965 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
12966 | *) | |
12967 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
12968 | # A ".." for each directory in $ac_dir_suffix. | |
12969 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
12970 | case $ac_top_builddir_sub in | |
12971 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
12972 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
12973 | esac ;; | |
12974 | esac | |
12975 | ac_abs_top_builddir=$ac_pwd | |
12976 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
12977 | # for backward compatibility: | |
12978 | ac_top_builddir=$ac_top_build_prefix | |
d9898ee8 | 12979 | |
8d138742 CE |
12980 | case $srcdir in |
12981 | .) # We are building in place. | |
12982 | ac_srcdir=. | |
12983 | ac_top_srcdir=$ac_top_builddir_sub | |
12984 | ac_abs_top_srcdir=$ac_pwd ;; | |
12985 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
12986 | ac_srcdir=$srcdir$ac_dir_suffix; | |
12987 | ac_top_srcdir=$srcdir | |
12988 | ac_abs_top_srcdir=$srcdir ;; | |
12989 | *) # Relative name. | |
12990 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
12991 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
12992 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
dd184caf | 12993 | esac |
8d138742 | 12994 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
d9898ee8 | 12995 | |
dd184caf | 12996 | |
8d138742 CE |
12997 | case $ac_mode in |
12998 | :F) | |
12999 | # | |
13000 | # CONFIG_FILE | |
13001 | # | |
d9898ee8 | 13002 | |
8d138742 CE |
13003 | case $INSTALL in |
13004 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
13005 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
13006 | esac | |
13007 | ac_MKDIR_P=$MKDIR_P | |
13008 | case $MKDIR_P in | |
13009 | [\\/$]* | ?:[\\/]* ) ;; | |
13010 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
13011 | esac | |
d9898ee8 | 13012 | _ACEOF |
dd184caf | 13013 | |
8d138742 CE |
13014 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13015 | # If the template does not know about datarootdir, expand it. | |
13016 | # FIXME: This hack should be removed a few years after 2.60. | |
13017 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
d9898ee8 | 13018 | |
8d138742 CE |
13019 | ac_sed_dataroot=' |
13020 | /datarootdir/ { | |
13021 | p | |
13022 | q | |
13023 | } | |
13024 | /@datadir@/p | |
13025 | /@docdir@/p | |
13026 | /@infodir@/p | |
13027 | /@localedir@/p | |
13028 | /@mandir@/p | |
13029 | ' | |
13030 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
13031 | *datarootdir*) ac_datarootdir_seen=yes;; | |
13032 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
13033 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
13034 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
13035 | _ACEOF | |
13036 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13037 | ac_datarootdir_hack=' | |
13038 | s&@datadir@&$datadir&g | |
13039 | s&@docdir@&$docdir&g | |
13040 | s&@infodir@&$infodir&g | |
13041 | s&@localedir@&$localedir&g | |
13042 | s&@mandir@&$mandir&g | |
13043 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
d9898ee8 | 13044 | esac |
8d138742 | 13045 | _ACEOF |
d9898ee8 | 13046 | |
8d138742 CE |
13047 | # Neutralize VPATH when `$srcdir' = `.'. |
13048 | # Shell code in configure.ac might set extrasub. | |
13049 | # FIXME: do we really want to maintain this feature? | |
13050 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13051 | ac_sed_extra="$ac_vpsub | |
13052 | $extrasub | |
d9898ee8 | 13053 | _ACEOF |
8d138742 CE |
13054 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13055 | :t | |
13056 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
13057 | s|@configure_input@|$ac_sed_conf_input|;t t | |
13058 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
13059 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
13060 | s&@srcdir@&$ac_srcdir&;t t | |
13061 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
13062 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
13063 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
13064 | s&@builddir@&$ac_builddir&;t t | |
13065 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
13066 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
13067 | s&@INSTALL@&$ac_INSTALL&;t t | |
13068 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
13069 | $ac_datarootdir_hack | |
13070 | " | |
13071 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
13072 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
13073 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
13074 | { (exit 1); exit 1; }; } | |
d9898ee8 | 13075 | |
8d138742 CE |
13076 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
13077 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
13078 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
13079 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
13080 | which seems to be undefined. Please make sure it is defined." >&5 | |
13081 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
13082 | which seems to be undefined. Please make sure it is defined." >&2;} | |
d9898ee8 | 13083 | |
8d138742 CE |
13084 | rm -f "$tmp/stdin" |
13085 | case $ac_file in | |
13086 | -) cat "$tmp/out" && rm -f "$tmp/out";; | |
13087 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
13088 | esac \ | |
13089 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
13090 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
13091 | { (exit 1); exit 1; }; } | |
13092 | ;; | |
13093 | :H) | |
13094 | # | |
13095 | # CONFIG_HEADER | |
13096 | # | |
13097 | if test x"$ac_file" != x-; then | |
13098 | { | |
13099 | $as_echo "/* $configure_input */" \ | |
13100 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
13101 | } >"$tmp/config.h" \ | |
13102 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
13103 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
13104 | { (exit 1); exit 1; }; } | |
13105 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
13106 | { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
13107 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
13108 | else | |
13109 | rm -f "$ac_file" | |
13110 | mv "$tmp/config.h" "$ac_file" \ | |
13111 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
13112 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
13113 | { (exit 1); exit 1; }; } | |
13114 | fi | |
13115 | else | |
13116 | $as_echo "/* $configure_input */" \ | |
13117 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
13118 | || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 | |
13119 | $as_echo "$as_me: error: could not create -" >&2;} | |
13120 | { (exit 1); exit 1; }; } | |
13121 | fi | |
13122 | # Compute "$ac_file"'s index in $config_headers. | |
13123 | _am_arg="$ac_file" | |
13124 | _am_stamp_count=1 | |
13125 | for _am_header in $config_headers :; do | |
13126 | case $_am_header in | |
13127 | $_am_arg | $_am_arg:* ) | |
13128 | break ;; | |
13129 | * ) | |
13130 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
13131 | esac | |
d9898ee8 | 13132 | done |
8d138742 CE |
13133 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
13134 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13135 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
13136 | X"$_am_arg" : 'X\(//\)$' \| \ | |
13137 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
13138 | $as_echo X"$_am_arg" | | |
13139 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13140 | s//\1/ | |
13141 | q | |
13142 | } | |
13143 | /^X\(\/\/\)[^/].*/{ | |
13144 | s//\1/ | |
13145 | q | |
13146 | } | |
13147 | /^X\(\/\/\)$/{ | |
13148 | s//\1/ | |
13149 | q | |
13150 | } | |
13151 | /^X\(\/\).*/{ | |
13152 | s//\1/ | |
13153 | q | |
13154 | } | |
13155 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
13156 | ;; | |
d9898ee8 | 13157 | |
8d138742 CE |
13158 | :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
13159 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
13160 | ;; | |
13161 | esac | |
d9898ee8 | 13162 | |
13163 | ||
8d138742 CE |
13164 | case $ac_file$ac_mode in |
13165 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
13166 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
13167 | # are listed without --file. Let's play safe and only enable the eval | |
13168 | # if we detect the quoting. | |
13169 | case $CONFIG_FILES in | |
13170 | *\'*) eval set x "$CONFIG_FILES" ;; | |
13171 | *) set x $CONFIG_FILES ;; | |
13172 | esac | |
13173 | shift | |
13174 | for mf | |
13175 | do | |
13176 | # Strip MF so we end up with the name of the file. | |
13177 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
13178 | # Check whether this is an Automake generated Makefile or not. | |
13179 | # We used to match only the files named `Makefile.in', but | |
13180 | # some people rename them; so instead we look at the file content. | |
13181 | # Grep'ing the first line is not enough: some people post-process | |
13182 | # each Makefile.in and add a new line on top of each file to say so. | |
13183 | # Grep'ing the whole file is not good either: AIX grep has a line | |
13184 | # limit of 2048, but all sed's we know have understand at least 4000. | |
13185 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
13186 | dirpart=`$as_dirname -- "$mf" || | |
13187 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13188 | X"$mf" : 'X\(//\)[^/]' \| \ | |
13189 | X"$mf" : 'X\(//\)$' \| \ | |
13190 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
13191 | $as_echo X"$mf" | | |
13192 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13193 | s//\1/ | |
13194 | q | |
13195 | } | |
13196 | /^X\(\/\/\)[^/].*/{ | |
13197 | s//\1/ | |
13198 | q | |
13199 | } | |
13200 | /^X\(\/\/\)$/{ | |
13201 | s//\1/ | |
13202 | q | |
13203 | } | |
13204 | /^X\(\/\).*/{ | |
13205 | s//\1/ | |
13206 | q | |
13207 | } | |
13208 | s/.*/./; q'` | |
13209 | else | |
13210 | continue | |
13211 | fi | |
13212 | # Extract the definition of DEPDIR, am__include, and am__quote | |
13213 | # from the Makefile without running `make'. | |
13214 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
13215 | test -z "$DEPDIR" && continue | |
13216 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
13217 | test -z "am__include" && continue | |
13218 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
13219 | # When using ansi2knr, U may be empty or an underscore; expand it | |
13220 | U=`sed -n 's/^U = //p' < "$mf"` | |
13221 | # Find all dependency output files, they are included files with | |
13222 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
13223 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
13224 | # expansion. | |
13225 | for file in `sed -n " | |
13226 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
13227 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
13228 | # Make sure the directory exists. | |
13229 | test -f "$dirpart/$file" && continue | |
13230 | fdir=`$as_dirname -- "$file" || | |
13231 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13232 | X"$file" : 'X\(//\)[^/]' \| \ | |
13233 | X"$file" : 'X\(//\)$' \| \ | |
13234 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
13235 | $as_echo X"$file" | | |
13236 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13237 | s//\1/ | |
13238 | q | |
13239 | } | |
13240 | /^X\(\/\/\)[^/].*/{ | |
13241 | s//\1/ | |
13242 | q | |
13243 | } | |
13244 | /^X\(\/\/\)$/{ | |
13245 | s//\1/ | |
13246 | q | |
13247 | } | |
13248 | /^X\(\/\).*/{ | |
13249 | s//\1/ | |
13250 | q | |
13251 | } | |
13252 | s/.*/./; q'` | |
13253 | { as_dir=$dirpart/$fdir | |
13254 | case $as_dir in #( | |
13255 | -*) as_dir=./$as_dir;; | |
13256 | esac | |
13257 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
13258 | as_dirs= | |
13259 | while :; do | |
13260 | case $as_dir in #( | |
13261 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
13262 | *) as_qdir=$as_dir;; | |
13263 | esac | |
13264 | as_dirs="'$as_qdir' $as_dirs" | |
13265 | as_dir=`$as_dirname -- "$as_dir" || | |
13266 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13267 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
13268 | X"$as_dir" : 'X\(//\)$' \| \ | |
13269 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
13270 | $as_echo X"$as_dir" | | |
13271 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13272 | s//\1/ | |
13273 | q | |
13274 | } | |
13275 | /^X\(\/\/\)[^/].*/{ | |
13276 | s//\1/ | |
13277 | q | |
13278 | } | |
13279 | /^X\(\/\/\)$/{ | |
13280 | s//\1/ | |
13281 | q | |
13282 | } | |
13283 | /^X\(\/\).*/{ | |
13284 | s//\1/ | |
13285 | q | |
13286 | } | |
13287 | s/.*/./; q'` | |
13288 | test -d "$as_dir" && break | |
13289 | done | |
13290 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
13291 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
13292 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
13293 | { (exit 1); exit 1; }; }; } | |
13294 | # echo "creating $dirpart/$file" | |
13295 | echo '# dummy' > "$dirpart/$file" | |
13296 | done | |
13297 | done | |
13298 | } | |
13299 | ;; | |
13300 | "libtool":C) | |
d9898ee8 | 13301 | |
8d138742 CE |
13302 | # See if we are running on zsh, and set the options which allow our |
13303 | # commands through without removal of \ escapes. | |
13304 | if test -n "${ZSH_VERSION+set}" ; then | |
13305 | setopt NO_GLOB_SUBST | |
13306 | fi | |
d9898ee8 | 13307 | |
8d138742 CE |
13308 | cfgfile="${ofile}T" |
13309 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
13310 | $RM "$cfgfile" | |
d9898ee8 | 13311 | |
8d138742 CE |
13312 | cat <<_LT_EOF >> "$cfgfile" |
13313 | #! $SHELL | |
dd184caf | 13314 | |
8d138742 CE |
13315 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
13316 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
13317 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
13318 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
d9898ee8 | 13319 | # |
8d138742 CE |
13320 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
13321 | # 2006, 2007, 2008 Free Software Foundation, Inc. | |
13322 | # Written by Gordon Matzigkeit, 1996 | |
d9898ee8 | 13323 | # |
8d138742 CE |
13324 | # This file is part of GNU Libtool. |
13325 | # | |
13326 | # GNU Libtool is free software; you can redistribute it and/or | |
13327 | # modify it under the terms of the GNU General Public License as | |
13328 | # published by the Free Software Foundation; either version 2 of | |
13329 | # the License, or (at your option) any later version. | |
13330 | # | |
13331 | # As a special exception to the GNU General Public License, | |
13332 | # if you distribute this file as part of a program or library that | |
13333 | # is built using GNU Libtool, you may include this file under the | |
13334 | # same distribution terms that you use for the rest of that program. | |
13335 | # | |
13336 | # GNU Libtool is distributed in the hope that it will be useful, | |
13337 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13338 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13339 | # GNU General Public License for more details. | |
13340 | # | |
13341 | # You should have received a copy of the GNU General Public License | |
13342 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
13343 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
13344 | # obtained by writing to the Free Software Foundation, Inc., | |
13345 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
dd184caf | 13346 | |
d9898ee8 | 13347 | |
8d138742 CE |
13348 | # The names of the tagged configurations supported by this script. |
13349 | available_tags="" | |
d9898ee8 | 13350 | |
8d138742 | 13351 | # ### BEGIN LIBTOOL CONFIG |
d9898ee8 | 13352 | |
8d138742 CE |
13353 | # Which release of libtool.m4 was used? |
13354 | macro_version=$macro_version | |
13355 | macro_revision=$macro_revision | |
d9898ee8 | 13356 | |
8d138742 CE |
13357 | # Whether or not to build shared libraries. |
13358 | build_libtool_libs=$enable_shared | |
d9898ee8 | 13359 | |
8d138742 CE |
13360 | # Whether or not to build static libraries. |
13361 | build_old_libs=$enable_static | |
d9898ee8 | 13362 | |
8d138742 CE |
13363 | # What type of objects to build. |
13364 | pic_mode=$pic_mode | |
d9898ee8 | 13365 | |
8d138742 CE |
13366 | # Whether or not to optimize for fast installation. |
13367 | fast_install=$enable_fast_install | |
d9898ee8 | 13368 | |
8d138742 CE |
13369 | # The host system. |
13370 | host_alias=$host_alias | |
13371 | host=$host | |
13372 | host_os=$host_os | |
d9898ee8 | 13373 | |
8d138742 CE |
13374 | # The build system. |
13375 | build_alias=$build_alias | |
13376 | build=$build | |
13377 | build_os=$build_os | |
d9898ee8 | 13378 | |
8d138742 CE |
13379 | # A sed program that does not truncate output. |
13380 | SED=$lt_SED | |
dd184caf | 13381 | |
8d138742 CE |
13382 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
13383 | Xsed="\$SED -e 1s/^X//" | |
dd184caf | 13384 | |
8d138742 CE |
13385 | # A grep program that handles long lines. |
13386 | GREP=$lt_GREP | |
dd184caf | 13387 | |
8d138742 CE |
13388 | # An ERE matcher. |
13389 | EGREP=$lt_EGREP | |
dd184caf | 13390 | |
8d138742 CE |
13391 | # A literal string matcher. |
13392 | FGREP=$lt_FGREP | |
dd184caf | 13393 | |
8d138742 CE |
13394 | # A BSD- or MS-compatible name lister. |
13395 | NM=$lt_NM | |
dd184caf | 13396 | |
8d138742 CE |
13397 | # Whether we need soft or hard links. |
13398 | LN_S=$lt_LN_S | |
d9898ee8 | 13399 | |
8d138742 CE |
13400 | # What is the maximum length of a command? |
13401 | max_cmd_len=$max_cmd_len | |
d9898ee8 | 13402 | |
8d138742 CE |
13403 | # Object file suffix (normally "o"). |
13404 | objext=$ac_objext | |
d9898ee8 | 13405 | |
8d138742 CE |
13406 | # Executable file suffix (normally ""). |
13407 | exeext=$exeext | |
dd184caf | 13408 | |
8d138742 CE |
13409 | # whether the shell understands "unset". |
13410 | lt_unset=$lt_unset | |
dd184caf | 13411 | |
8d138742 CE |
13412 | # turn spaces into newlines. |
13413 | SP2NL=$lt_lt_SP2NL | |
dd184caf | 13414 | |
8d138742 CE |
13415 | # turn newlines into spaces. |
13416 | NL2SP=$lt_lt_NL2SP | |
d9898ee8 | 13417 | |
8d138742 CE |
13418 | # How to create reloadable object files. |
13419 | reload_flag=$lt_reload_flag | |
13420 | reload_cmds=$lt_reload_cmds | |
d9898ee8 | 13421 | |
8d138742 CE |
13422 | # An object symbol dumper. |
13423 | OBJDUMP=$lt_OBJDUMP | |
d9898ee8 | 13424 | |
8d138742 CE |
13425 | # Method to check whether dependent libraries are shared objects. |
13426 | deplibs_check_method=$lt_deplibs_check_method | |
d9898ee8 | 13427 | |
8d138742 CE |
13428 | # Command to use when deplibs_check_method == "file_magic". |
13429 | file_magic_cmd=$lt_file_magic_cmd | |
d9898ee8 | 13430 | |
8d138742 CE |
13431 | # The archiver. |
13432 | AR=$lt_AR | |
13433 | AR_FLAGS=$lt_AR_FLAGS | |
d9898ee8 | 13434 | |
8d138742 CE |
13435 | # A symbol stripping program. |
13436 | STRIP=$lt_STRIP | |
d9898ee8 | 13437 | |
8d138742 CE |
13438 | # Commands used to install an old-style archive. |
13439 | RANLIB=$lt_RANLIB | |
13440 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
13441 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
d9898ee8 | 13442 | |
8d138742 CE |
13443 | # A C compiler. |
13444 | LTCC=$lt_CC | |
d9898ee8 | 13445 | |
8d138742 CE |
13446 | # LTCC compiler flags. |
13447 | LTCFLAGS=$lt_CFLAGS | |
d9898ee8 | 13448 | |
8d138742 CE |
13449 | # Take the output of nm and produce a listing of raw symbols and C names. |
13450 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
d9898ee8 | 13451 | |
8d138742 CE |
13452 | # Transform the output of nm in a proper C declaration. |
13453 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
d9898ee8 | 13454 | |
8d138742 CE |
13455 | # Transform the output of nm in a C name address pair. |
13456 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
d9898ee8 | 13457 | |
8d138742 CE |
13458 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
13459 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
dd184caf | 13460 | |
8d138742 CE |
13461 | # The name of the directory that contains temporary libtool files. |
13462 | objdir=$objdir | |
13463 | ||
13464 | # Shell to use when invoking shell scripts. | |
13465 | SHELL=$lt_SHELL | |
13466 | ||
13467 | # An echo program that does not interpret backslashes. | |
13468 | ECHO=$lt_ECHO | |
d9898ee8 | 13469 | |
8d138742 CE |
13470 | # Used to examine libraries when file_magic_cmd begins with "file". |
13471 | MAGIC_CMD=$MAGIC_CMD | |
d9898ee8 | 13472 | |
8d138742 CE |
13473 | # Must we lock files when doing compilation? |
13474 | need_locks=$lt_need_locks | |
d9898ee8 | 13475 | |
8d138742 CE |
13476 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
13477 | DSYMUTIL=$lt_DSYMUTIL | |
d9898ee8 | 13478 | |
8d138742 CE |
13479 | # Tool to change global to local symbols on Mac OS X. |
13480 | NMEDIT=$lt_NMEDIT | |
d9898ee8 | 13481 | |
8d138742 CE |
13482 | # Tool to manipulate fat objects and archives on Mac OS X. |
13483 | LIPO=$lt_LIPO | |
d9898ee8 | 13484 | |
8d138742 CE |
13485 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
13486 | OTOOL=$lt_OTOOL | |
d9898ee8 | 13487 | |
8d138742 CE |
13488 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
13489 | OTOOL64=$lt_OTOOL64 | |
d9898ee8 | 13490 | |
8d138742 CE |
13491 | # Old archive suffix (normally "a"). |
13492 | libext=$libext | |
d9898ee8 | 13493 | |
8d138742 CE |
13494 | # Shared library suffix (normally ".so"). |
13495 | shrext_cmds=$lt_shrext_cmds | |
d9898ee8 | 13496 | |
8d138742 CE |
13497 | # The commands to extract the exported symbol list from a shared archive. |
13498 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
d9898ee8 | 13499 | |
8d138742 CE |
13500 | # Variables whose values should be saved in libtool wrapper scripts and |
13501 | # restored at link time. | |
13502 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
dd184caf | 13503 | |
8d138742 CE |
13504 | # Do we need the "lib" prefix for modules? |
13505 | need_lib_prefix=$need_lib_prefix | |
d9898ee8 | 13506 | |
8d138742 CE |
13507 | # Do we need a version for libraries? |
13508 | need_version=$need_version | |
d9898ee8 | 13509 | |
8d138742 CE |
13510 | # Library versioning type. |
13511 | version_type=$version_type | |
d9898ee8 | 13512 | |
8d138742 CE |
13513 | # Shared library runtime path variable. |
13514 | runpath_var=$runpath_var | |
d9898ee8 | 13515 | |
8d138742 CE |
13516 | # Shared library path variable. |
13517 | shlibpath_var=$shlibpath_var | |
d9898ee8 | 13518 | |
8d138742 CE |
13519 | # Is shlibpath searched before the hard-coded library search path? |
13520 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
d9898ee8 | 13521 | |
8d138742 CE |
13522 | # Format of library name prefix. |
13523 | libname_spec=$lt_libname_spec | |
d9898ee8 | 13524 | |
8d138742 CE |
13525 | # List of archive names. First name is the real one, the rest are links. |
13526 | # The last name is the one that the linker finds with -lNAME | |
13527 | library_names_spec=$lt_library_names_spec | |
d9898ee8 | 13528 | |
8d138742 CE |
13529 | # The coded name of the library, if different from the real name. |
13530 | soname_spec=$lt_soname_spec | |
d9898ee8 | 13531 | |
8d138742 CE |
13532 | # Command to use after installation of a shared archive. |
13533 | postinstall_cmds=$lt_postinstall_cmds | |
d9898ee8 | 13534 | |
8d138742 CE |
13535 | # Command to use after uninstallation of a shared archive. |
13536 | postuninstall_cmds=$lt_postuninstall_cmds | |
d9898ee8 | 13537 | |
8d138742 CE |
13538 | # Commands used to finish a libtool library installation in a directory. |
13539 | finish_cmds=$lt_finish_cmds | |
dd184caf | 13540 | |
8d138742 CE |
13541 | # As "finish_cmds", except a single script fragment to be evaled but |
13542 | # not shown. | |
13543 | finish_eval=$lt_finish_eval | |
d9898ee8 | 13544 | |
8d138742 CE |
13545 | # Whether we should hardcode library paths into libraries. |
13546 | hardcode_into_libs=$hardcode_into_libs | |
d9898ee8 | 13547 | |
8d138742 CE |
13548 | # Compile-time system search path for libraries. |
13549 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
d9898ee8 | 13550 | |
8d138742 CE |
13551 | # Run-time system search path for libraries. |
13552 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
d9898ee8 | 13553 | |
8d138742 CE |
13554 | # Whether dlopen is supported. |
13555 | dlopen_support=$enable_dlopen | |
d9898ee8 | 13556 | |
8d138742 CE |
13557 | # Whether dlopen of programs is supported. |
13558 | dlopen_self=$enable_dlopen_self | |
d9898ee8 | 13559 | |
8d138742 CE |
13560 | # Whether dlopen of statically linked programs is supported. |
13561 | dlopen_self_static=$enable_dlopen_self_static | |
d9898ee8 | 13562 | |
8d138742 CE |
13563 | # Commands to strip libraries. |
13564 | old_striplib=$lt_old_striplib | |
13565 | striplib=$lt_striplib | |
d9898ee8 | 13566 | |
d9898ee8 | 13567 | |
8d138742 CE |
13568 | # The linker used to build libraries. |
13569 | LD=$lt_LD | |
d9898ee8 | 13570 | |
8d138742 CE |
13571 | # Commands used to build an old-style archive. |
13572 | old_archive_cmds=$lt_old_archive_cmds | |
d9898ee8 | 13573 | |
8d138742 CE |
13574 | # A language specific compiler. |
13575 | CC=$lt_compiler | |
d9898ee8 | 13576 | |
8d138742 CE |
13577 | # Is the compiler the GNU compiler? |
13578 | with_gcc=$GCC | |
dd184caf | 13579 | |
8d138742 CE |
13580 | # Compiler flag to turn off builtin functions. |
13581 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
dd184caf | 13582 | |
8d138742 CE |
13583 | # How to pass a linker flag through the compiler. |
13584 | wl=$lt_lt_prog_compiler_wl | |
d9898ee8 | 13585 | |
8d138742 CE |
13586 | # Additional compiler flags for building library objects. |
13587 | pic_flag=$lt_lt_prog_compiler_pic | |
dd184caf | 13588 | |
8d138742 CE |
13589 | # Compiler flag to prevent dynamic linking. |
13590 | link_static_flag=$lt_lt_prog_compiler_static | |
d9898ee8 | 13591 | |
8d138742 CE |
13592 | # Does compiler simultaneously support -c and -o options? |
13593 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
13594 | ||
13595 | # Whether or not to add -lc for building shared libraries. | |
13596 | build_libtool_need_lc=$archive_cmds_need_lc | |
13597 | ||
13598 | # Whether or not to disallow shared libs when runtime libs are static. | |
13599 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
13600 | ||
13601 | # Compiler flag to allow reflexive dlopens. | |
13602 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
d9898ee8 | 13603 | |
8d138742 CE |
13604 | # Compiler flag to generate shared objects directly from archives. |
13605 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
d9898ee8 | 13606 | |
8d138742 CE |
13607 | # Whether the compiler copes with passing no objects directly. |
13608 | compiler_needs_object=$lt_compiler_needs_object | |
d9898ee8 | 13609 | |
8d138742 CE |
13610 | # Create an old-style archive from a shared archive. |
13611 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
d9898ee8 | 13612 | |
8d138742 CE |
13613 | # Create a temporary old-style archive to link instead of a shared archive. |
13614 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
d9898ee8 | 13615 | |
8d138742 CE |
13616 | # Commands used to build a shared archive. |
13617 | archive_cmds=$lt_archive_cmds | |
13618 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
dd184caf | 13619 | |
8d138742 CE |
13620 | # Commands used to build a loadable module if different from building |
13621 | # a shared archive. | |
13622 | module_cmds=$lt_module_cmds | |
13623 | module_expsym_cmds=$lt_module_expsym_cmds | |
dd184caf | 13624 | |
8d138742 CE |
13625 | # Whether we are building with GNU ld or not. |
13626 | with_gnu_ld=$lt_with_gnu_ld | |
dd184caf | 13627 | |
8d138742 CE |
13628 | # Flag that allows shared libraries with undefined symbols to be built. |
13629 | allow_undefined_flag=$lt_allow_undefined_flag | |
dd184caf | 13630 | |
8d138742 CE |
13631 | # Flag that enforces no undefined symbols. |
13632 | no_undefined_flag=$lt_no_undefined_flag | |
dd184caf | 13633 | |
8d138742 CE |
13634 | # Flag to hardcode \$libdir into a binary during linking. |
13635 | # This must work even if \$libdir does not exist | |
13636 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
dd184caf | 13637 | |
8d138742 CE |
13638 | # If ld is used when linking, flag to hardcode \$libdir into a binary |
13639 | # during linking. This must work even if \$libdir does not exist. | |
13640 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
dd184caf | 13641 | |
8d138742 CE |
13642 | # Whether we need a single "-rpath" flag with a separated argument. |
13643 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
dd184caf | 13644 | |
8d138742 CE |
13645 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
13646 | # DIR into the resulting binary. | |
13647 | hardcode_direct=$hardcode_direct | |
dd184caf | 13648 | |
8d138742 CE |
13649 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
13650 | # DIR into the resulting binary and the resulting library dependency is | |
13651 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
13652 | # library is relocated. | |
13653 | hardcode_direct_absolute=$hardcode_direct_absolute | |
d9898ee8 | 13654 | |
8d138742 CE |
13655 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
13656 | # into the resulting binary. | |
13657 | hardcode_minus_L=$hardcode_minus_L | |
dd184caf | 13658 | |
8d138742 CE |
13659 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
13660 | # into the resulting binary. | |
13661 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
dd184caf | 13662 | |
8d138742 CE |
13663 | # Set to "yes" if building a shared library automatically hardcodes DIR |
13664 | # into the library and all subsequent libraries and executables linked | |
13665 | # against it. | |
13666 | hardcode_automatic=$hardcode_automatic | |
dd184caf | 13667 | |
8d138742 CE |
13668 | # Set to yes if linker adds runtime paths of dependent libraries |
13669 | # to runtime path list. | |
13670 | inherit_rpath=$inherit_rpath | |
dd184caf | 13671 | |
8d138742 CE |
13672 | # Whether libtool must link a program against all its dependency libraries. |
13673 | link_all_deplibs=$link_all_deplibs | |
dd184caf | 13674 | |
8d138742 CE |
13675 | # Fix the shell variable \$srcfile for the compiler. |
13676 | fix_srcfile_path=$lt_fix_srcfile_path | |
dd184caf | 13677 | |
8d138742 CE |
13678 | # Set to "yes" if exported symbols are required. |
13679 | always_export_symbols=$always_export_symbols | |
dd184caf | 13680 | |
8d138742 CE |
13681 | # The commands to list exported symbols. |
13682 | export_symbols_cmds=$lt_export_symbols_cmds | |
d9898ee8 | 13683 | |
8d138742 CE |
13684 | # Symbols that should not be listed in the preloaded symbols. |
13685 | exclude_expsyms=$lt_exclude_expsyms | |
dd184caf | 13686 | |
8d138742 CE |
13687 | # Symbols that must always be exported. |
13688 | include_expsyms=$lt_include_expsyms | |
d9898ee8 | 13689 | |
8d138742 CE |
13690 | # Commands necessary for linking programs (against libraries) with templates. |
13691 | prelink_cmds=$lt_prelink_cmds | |
d9898ee8 | 13692 | |
8d138742 CE |
13693 | # Specify filename containing input files. |
13694 | file_list_spec=$lt_file_list_spec | |
13695 | ||
13696 | # How to hardcode a shared library path into an executable. | |
13697 | hardcode_action=$hardcode_action | |
d9898ee8 | 13698 | |
8d138742 | 13699 | # ### END LIBTOOL CONFIG |
d9898ee8 | 13700 | |
8d138742 | 13701 | _LT_EOF |
d9898ee8 | 13702 | |
8d138742 CE |
13703 | case $host_os in |
13704 | aix3*) | |
13705 | cat <<\_LT_EOF >> "$cfgfile" | |
13706 | # AIX sometimes has problems with the GCC collect2 program. For some | |
13707 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
13708 | # vanish in a puff of smoke. | |
13709 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
13710 | COLLECT_NAMES= | |
13711 | export COLLECT_NAMES | |
13712 | fi | |
13713 | _LT_EOF | |
13714 | ;; | |
d9898ee8 | 13715 | esac |
8d138742 CE |
13716 | |
13717 | ||
13718 | ltmain="$ac_aux_dir/ltmain.sh" | |
13719 | ||
13720 | ||
13721 | # We use sed instead of cat because bash on DJGPP gets confused if | |
13722 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
13723 | # text mode, it properly converts lines to CR/LF. This bash problem | |
13724 | # is reportedly fixed, but why not run on old versions too? | |
13725 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
13726 | || (rm -f "$cfgfile"; exit 1) | |
13727 | ||
13728 | case $xsi_shell in | |
13729 | yes) | |
13730 | cat << \_LT_EOF >> "$cfgfile" | |
13731 | ||
13732 | # func_dirname file append nondir_replacement | |
13733 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
13734 | # otherwise set result to NONDIR_REPLACEMENT. | |
13735 | func_dirname () | |
13736 | { | |
13737 | case ${1} in | |
13738 | */*) func_dirname_result="${1%/*}${2}" ;; | |
13739 | * ) func_dirname_result="${3}" ;; | |
dd184caf | 13740 | esac |
8d138742 | 13741 | } |
d9898ee8 | 13742 | |
8d138742 CE |
13743 | # func_basename file |
13744 | func_basename () | |
13745 | { | |
13746 | func_basename_result="${1##*/}" | |
13747 | } | |
dd184caf | 13748 | |
8d138742 CE |
13749 | # func_dirname_and_basename file append nondir_replacement |
13750 | # perform func_basename and func_dirname in a single function | |
13751 | # call: | |
13752 | # dirname: Compute the dirname of FILE. If nonempty, | |
13753 | # add APPEND to the result, otherwise set result | |
13754 | # to NONDIR_REPLACEMENT. | |
13755 | # value returned in "$func_dirname_result" | |
13756 | # basename: Compute filename of FILE. | |
13757 | # value retuned in "$func_basename_result" | |
13758 | # Implementation must be kept synchronized with func_dirname | |
13759 | # and func_basename. For efficiency, we do not delegate to | |
13760 | # those functions but instead duplicate the functionality here. | |
13761 | func_dirname_and_basename () | |
13762 | { | |
13763 | case ${1} in | |
13764 | */*) func_dirname_result="${1%/*}${2}" ;; | |
13765 | * ) func_dirname_result="${3}" ;; | |
13766 | esac | |
13767 | func_basename_result="${1##*/}" | |
dd184caf | 13768 | } |
dd184caf | 13769 | |
8d138742 CE |
13770 | # func_stripname prefix suffix name |
13771 | # strip PREFIX and SUFFIX off of NAME. | |
13772 | # PREFIX and SUFFIX must not contain globbing or regex special | |
13773 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
13774 | # dot (in which case that matches only a dot). | |
13775 | func_stripname () | |
13776 | { | |
13777 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
13778 | # positional parameters, so assign one to ordinary parameter first. | |
13779 | func_stripname_result=${3} | |
13780 | func_stripname_result=${func_stripname_result#"${1}"} | |
13781 | func_stripname_result=${func_stripname_result%"${2}"} | |
13782 | } | |
dd184caf | 13783 | |
8d138742 CE |
13784 | # func_opt_split |
13785 | func_opt_split () | |
13786 | { | |
13787 | func_opt_split_opt=${1%%=*} | |
13788 | func_opt_split_arg=${1#*=} | |
13789 | } | |
dd184caf | 13790 | |
8d138742 CE |
13791 | # func_lo2o object |
13792 | func_lo2o () | |
13793 | { | |
13794 | case ${1} in | |
13795 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
13796 | *) func_lo2o_result=${1} ;; | |
d9898ee8 | 13797 | esac |
8d138742 | 13798 | } |
d9898ee8 | 13799 | |
8d138742 CE |
13800 | # func_xform libobj-or-source |
13801 | func_xform () | |
13802 | { | |
13803 | func_xform_result=${1%.*}.lo | |
13804 | } | |
d9898ee8 | 13805 | |
8d138742 CE |
13806 | # func_arith arithmetic-term... |
13807 | func_arith () | |
13808 | { | |
13809 | func_arith_result=$(( $* )) | |
13810 | } | |
13811 | ||
13812 | # func_len string | |
13813 | # STRING may not start with a hyphen. | |
13814 | func_len () | |
13815 | { | |
13816 | func_len_result=${#1} | |
13817 | } | |
13818 | ||
13819 | _LT_EOF | |
13820 | ;; | |
13821 | *) # Bourne compatible functions. | |
13822 | cat << \_LT_EOF >> "$cfgfile" | |
13823 | ||
13824 | # func_dirname file append nondir_replacement | |
13825 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
13826 | # otherwise set result to NONDIR_REPLACEMENT. | |
13827 | func_dirname () | |
13828 | { | |
13829 | # Extract subdirectory from the argument. | |
13830 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | |
13831 | if test "X$func_dirname_result" = "X${1}"; then | |
13832 | func_dirname_result="${3}" | |
d9898ee8 | 13833 | else |
8d138742 | 13834 | func_dirname_result="$func_dirname_result${2}" |
d9898ee8 | 13835 | fi |
8d138742 | 13836 | } |
d9898ee8 | 13837 | |
8d138742 CE |
13838 | # func_basename file |
13839 | func_basename () | |
13840 | { | |
13841 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` | |
13842 | } | |
13843 | ||
13844 | ||
13845 | # func_stripname prefix suffix name | |
13846 | # strip PREFIX and SUFFIX off of NAME. | |
13847 | # PREFIX and SUFFIX must not contain globbing or regex special | |
13848 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
13849 | # dot (in which case that matches only a dot). | |
13850 | # func_strip_suffix prefix name | |
13851 | func_stripname () | |
13852 | { | |
13853 | case ${2} in | |
13854 | .*) func_stripname_result=`$ECHO "X${3}" \ | |
13855 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; | |
13856 | *) func_stripname_result=`$ECHO "X${3}" \ | |
13857 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; | |
dd184caf | 13858 | esac |
8d138742 | 13859 | } |
d9898ee8 | 13860 | |
8d138742 CE |
13861 | # sed scripts: |
13862 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
13863 | my_sed_long_arg='1s/^-[^=]*=//' | |
d9898ee8 | 13864 | |
8d138742 CE |
13865 | # func_opt_split |
13866 | func_opt_split () | |
13867 | { | |
13868 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` | |
13869 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` | |
13870 | } | |
13871 | ||
13872 | # func_lo2o object | |
13873 | func_lo2o () | |
13874 | { | |
13875 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` | |
13876 | } | |
13877 | ||
13878 | # func_xform libobj-or-source | |
13879 | func_xform () | |
13880 | { | |
13881 | func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` | |
13882 | } | |
13883 | ||
13884 | # func_arith arithmetic-term... | |
13885 | func_arith () | |
13886 | { | |
13887 | func_arith_result=`expr "$@"` | |
13888 | } | |
13889 | ||
13890 | # func_len string | |
13891 | # STRING may not start with a hyphen. | |
13892 | func_len () | |
13893 | { | |
13894 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
13895 | } | |
13896 | ||
13897 | _LT_EOF | |
13898 | esac | |
13899 | ||
13900 | case $lt_shell_append in | |
13901 | yes) | |
13902 | cat << \_LT_EOF >> "$cfgfile" | |
13903 | ||
13904 | # func_append var value | |
13905 | # Append VALUE to the end of shell variable VAR. | |
13906 | func_append () | |
13907 | { | |
13908 | eval "$1+=\$2" | |
13909 | } | |
13910 | _LT_EOF | |
13911 | ;; | |
13912 | *) | |
13913 | cat << \_LT_EOF >> "$cfgfile" | |
13914 | ||
13915 | # func_append var value | |
13916 | # Append VALUE to the end of shell variable VAR. | |
13917 | func_append () | |
13918 | { | |
13919 | eval "$1=\$$1\$2" | |
13920 | } | |
13921 | ||
13922 | _LT_EOF | |
13923 | ;; | |
dd184caf | 13924 | esac |
8d138742 CE |
13925 | |
13926 | ||
13927 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
13928 | || (rm -f "$cfgfile"; exit 1) | |
13929 | ||
13930 | mv -f "$cfgfile" "$ofile" || | |
13931 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
13932 | chmod +x "$ofile" | |
13933 | ||
d9898ee8 | 13934 | ;; |
dd184caf | 13935 | |
d9898ee8 | 13936 | esac |
dd184caf | 13937 | done # for ac_tag |
d9898ee8 | 13938 | |
d9898ee8 | 13939 | |
13940 | { (exit 0); exit 0; } | |
13941 | _ACEOF | |
13942 | chmod +x $CONFIG_STATUS | |
13943 | ac_clean_files=$ac_clean_files_save | |
13944 | ||
8d138742 CE |
13945 | test $ac_write_fail = 0 || |
13946 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 | |
13947 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} | |
13948 | { (exit 1); exit 1; }; } | |
13949 | ||
d9898ee8 | 13950 | |
13951 | # configure is writing to config.log, and then calls config.status. | |
13952 | # config.status does its own redirection, appending to config.log. | |
13953 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
13954 | # by configure, so config.status won't be able to write to it; its | |
13955 | # output is simply discarded. So we exec the FD to /dev/null, | |
13956 | # effectively closing config.log, so it can be properly (re)opened and | |
13957 | # appended to by config.status. When coming back to configure, we | |
13958 | # need to make the FD available again. | |
13959 | if test "$no_create" != yes; then | |
13960 | ac_cs_success=: | |
13961 | ac_config_status_args= | |
13962 | test "$silent" = yes && | |
13963 | ac_config_status_args="$ac_config_status_args --quiet" | |
13964 | exec 5>/dev/null | |
13965 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
13966 | exec 5>>config.log | |
13967 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
13968 | # would make configure fail if this is the last instruction. | |
13969 | $ac_cs_success || { (exit 1); exit 1; } | |
13970 | fi | |
8d138742 CE |
13971 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
13972 | { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
13973 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
13974 | fi | |
d9898ee8 | 13975 |