]>
Commit | Line | Data |
---|---|---|
bf9f3bac BB |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
8934764e | 3 | # Generated by GNU Autoconf 2.63. |
bf9f3bac | 4 | # |
8934764e BB |
5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
6 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. | |
bf9f3bac BB |
7 | # This configure script is free software; the Free Software Foundation |
8 | # gives unlimited permission to copy, distribute and modify it. | |
9 | ## --------------------- ## | |
10 | ## M4sh Initialization. ## | |
11 | ## --------------------- ## | |
12 | ||
8934764e BB |
13 | # Be more Bourne compatible |
14 | DUALCASE=1; export DUALCASE # for MKS sh | |
bf9f3bac BB |
15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
16 | emulate sh | |
17 | NULLCMD=: | |
8934764e | 18 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
bf9f3bac BB |
19 | # is contrary to our usage. Disable this feature. |
20 | alias -g '${1+"$@"}'='"$@"' | |
8934764e BB |
21 | setopt NO_GLOB_SUBST |
22 | else | |
23 | case `(set -o) 2>/dev/null` in | |
24 | *posix*) set -o posix ;; | |
25 | esac | |
26 | ||
27 | fi | |
28 | ||
29 | ||
30 | ||
31 | ||
32 | # PATH needs CR | |
33 | # Avoid depending upon Character Ranges. | |
34 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
35 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
36 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
37 | as_cr_digits='0123456789' | |
38 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
39 | ||
40 | as_nl=' | |
41 | ' | |
42 | export as_nl | |
43 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
44 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
45 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
46 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
47 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
54 | else | |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
67 | fi | |
68 | export as_echo_body | |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
bf9f3bac | 79 | fi |
bf9f3bac BB |
80 | |
81 | # Support unset when possible. | |
82 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
83 | as_unset=unset | |
84 | else | |
85 | as_unset=false | |
86 | fi | |
87 | ||
88 | ||
8934764e BB |
89 | # IFS |
90 | # We need space, tab and new line, in precisely that order. Quoting is | |
91 | # there to prevent editors from complaining about space-tab. | |
92 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
93 | # splitting by setting IFS to empty value.) | |
94 | IFS=" "" $as_nl" | |
95 | ||
96 | # Find who we are. Look in the path if we contain no directory separator. | |
97 | case $0 in | |
98 | *[\\/]* ) as_myself=$0 ;; | |
99 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
100 | for as_dir in $PATH | |
101 | do | |
102 | IFS=$as_save_IFS | |
103 | test -z "$as_dir" && as_dir=. | |
104 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
105 | done | |
106 | IFS=$as_save_IFS | |
107 | ||
108 | ;; | |
109 | esac | |
110 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
111 | # in which case we are not to be found in the path. | |
112 | if test "x$as_myself" = x; then | |
113 | as_myself=$0 | |
114 | fi | |
115 | if test ! -f "$as_myself"; then | |
116 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
117 | { (exit 1); exit 1; } | |
118 | fi | |
119 | ||
bf9f3bac | 120 | # Work around bugs in pre-3.0 UWIN ksh. |
8934764e BB |
121 | for as_var in ENV MAIL MAILPATH |
122 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
123 | done | |
bf9f3bac BB |
124 | PS1='$ ' |
125 | PS2='> ' | |
126 | PS4='+ ' | |
127 | ||
128 | # NLS nuisances. | |
8934764e BB |
129 | LC_ALL=C |
130 | export LC_ALL | |
131 | LANGUAGE=C | |
132 | export LANGUAGE | |
bf9f3bac BB |
133 | |
134 | # Required to use basename. | |
8934764e BB |
135 | if expr a : '\(a\)' >/dev/null 2>&1 && |
136 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
bf9f3bac BB |
137 | as_expr=expr |
138 | else | |
139 | as_expr=false | |
140 | fi | |
141 | ||
8934764e | 142 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
bf9f3bac BB |
143 | as_basename=basename |
144 | else | |
145 | as_basename=false | |
146 | fi | |
147 | ||
148 | ||
149 | # Name of the executable. | |
8934764e | 150 | as_me=`$as_basename -- "$0" || |
bf9f3bac BB |
151 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
152 | X"$0" : 'X\(//\)$' \| \ | |
8934764e BB |
153 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
154 | $as_echo X/"$0" | | |
155 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
156 | s//\1/ | |
157 | q | |
158 | } | |
159 | /^X\/\(\/\/\)$/{ | |
160 | s//\1/ | |
161 | q | |
162 | } | |
163 | /^X\/\(\/\).*/{ | |
164 | s//\1/ | |
165 | q | |
166 | } | |
167 | s/.*/./; q'` | |
bf9f3bac | 168 | |
8934764e BB |
169 | # CDPATH. |
170 | $as_unset CDPATH | |
bf9f3bac | 171 | |
bf9f3bac | 172 | |
8934764e BB |
173 | if test "x$CONFIG_SHELL" = x; then |
174 | if (eval ":") 2>/dev/null; then | |
175 | as_have_required=yes | |
176 | else | |
177 | as_have_required=no | |
bf9f3bac BB |
178 | fi |
179 | ||
8934764e BB |
180 | if test $as_have_required = yes && (eval ": |
181 | (as_func_return () { | |
182 | (exit \$1) | |
183 | } | |
184 | as_func_success () { | |
185 | as_func_return 0 | |
186 | } | |
187 | as_func_failure () { | |
188 | as_func_return 1 | |
189 | } | |
190 | as_func_ret_success () { | |
191 | return 0 | |
192 | } | |
193 | as_func_ret_failure () { | |
194 | return 1 | |
195 | } | |
bf9f3bac | 196 | |
8934764e BB |
197 | exitcode=0 |
198 | if as_func_success; then | |
199 | : | |
200 | else | |
201 | exitcode=1 | |
202 | echo as_func_success failed. | |
203 | fi | |
bf9f3bac | 204 | |
8934764e BB |
205 | if as_func_failure; then |
206 | exitcode=1 | |
207 | echo as_func_failure succeeded. | |
208 | fi | |
209 | ||
210 | if as_func_ret_success; then | |
211 | : | |
212 | else | |
213 | exitcode=1 | |
214 | echo as_func_ret_success failed. | |
215 | fi | |
216 | ||
217 | if as_func_ret_failure; then | |
218 | exitcode=1 | |
219 | echo as_func_ret_failure succeeded. | |
220 | fi | |
221 | ||
222 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
223 | : | |
224 | else | |
225 | exitcode=1 | |
226 | echo positional parameters were not saved. | |
227 | fi | |
228 | ||
229 | test \$exitcode = 0) || { (exit 1); exit 1; } | |
230 | ||
231 | ( | |
232 | as_lineno_1=\$LINENO | |
233 | as_lineno_2=\$LINENO | |
234 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | |
235 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | |
236 | ") 2> /dev/null; then | |
237 | : | |
238 | else | |
239 | as_candidate_shells= | |
bf9f3bac BB |
240 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
241 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
242 | do | |
243 | IFS=$as_save_IFS | |
244 | test -z "$as_dir" && as_dir=. | |
8934764e | 245 | case $as_dir in |
bf9f3bac | 246 | /*) |
8934764e BB |
247 | for as_base in sh bash ksh sh5; do |
248 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | |
249 | done;; | |
250 | esac | |
251 | done | |
252 | IFS=$as_save_IFS | |
253 | ||
254 | ||
255 | for as_shell in $as_candidate_shells $SHELL; do | |
256 | # Try only shells that exist, to save several forks. | |
257 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
258 | { ("$as_shell") 2> /dev/null <<\_ASEOF | |
259 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
260 | emulate sh | |
261 | NULLCMD=: | |
262 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
263 | # is contrary to our usage. Disable this feature. | |
264 | alias -g '${1+"$@"}'='"$@"' | |
265 | setopt NO_GLOB_SUBST | |
266 | else | |
267 | case `(set -o) 2>/dev/null` in | |
268 | *posix*) set -o posix ;; | |
269 | esac | |
270 | ||
271 | fi | |
272 | ||
273 | ||
274 | : | |
275 | _ASEOF | |
276 | }; then | |
277 | CONFIG_SHELL=$as_shell | |
278 | as_have_required=yes | |
279 | if { "$as_shell" 2> /dev/null <<\_ASEOF | |
280 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
281 | emulate sh | |
282 | NULLCMD=: | |
283 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
284 | # is contrary to our usage. Disable this feature. | |
285 | alias -g '${1+"$@"}'='"$@"' | |
286 | setopt NO_GLOB_SUBST | |
287 | else | |
288 | case `(set -o) 2>/dev/null` in | |
289 | *posix*) set -o posix ;; | |
290 | esac | |
291 | ||
292 | fi | |
293 | ||
294 | ||
295 | : | |
296 | (as_func_return () { | |
297 | (exit $1) | |
298 | } | |
299 | as_func_success () { | |
300 | as_func_return 0 | |
301 | } | |
302 | as_func_failure () { | |
303 | as_func_return 1 | |
304 | } | |
305 | as_func_ret_success () { | |
306 | return 0 | |
307 | } | |
308 | as_func_ret_failure () { | |
309 | return 1 | |
310 | } | |
311 | ||
312 | exitcode=0 | |
313 | if as_func_success; then | |
314 | : | |
315 | else | |
316 | exitcode=1 | |
317 | echo as_func_success failed. | |
318 | fi | |
319 | ||
320 | if as_func_failure; then | |
321 | exitcode=1 | |
322 | echo as_func_failure succeeded. | |
323 | fi | |
324 | ||
325 | if as_func_ret_success; then | |
326 | : | |
327 | else | |
328 | exitcode=1 | |
329 | echo as_func_ret_success failed. | |
330 | fi | |
331 | ||
332 | if as_func_ret_failure; then | |
333 | exitcode=1 | |
334 | echo as_func_ret_failure succeeded. | |
335 | fi | |
336 | ||
337 | if ( set x; as_func_ret_success y && test x = "$1" ); then | |
338 | : | |
339 | else | |
340 | exitcode=1 | |
341 | echo positional parameters were not saved. | |
342 | fi | |
343 | ||
344 | test $exitcode = 0) || { (exit 1); exit 1; } | |
345 | ||
346 | ( | |
bf9f3bac BB |
347 | as_lineno_1=$LINENO |
348 | as_lineno_2=$LINENO | |
bf9f3bac | 349 | test "x$as_lineno_1" != "x$as_lineno_2" && |
8934764e BB |
350 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
351 | ||
352 | _ASEOF | |
353 | }; then | |
354 | break | |
355 | fi | |
356 | ||
357 | fi | |
358 | ||
359 | done | |
360 | ||
361 | if test "x$CONFIG_SHELL" != x; then | |
362 | for as_var in BASH_ENV ENV | |
363 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
364 | done | |
365 | export CONFIG_SHELL | |
366 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
367 | fi | |
368 | ||
369 | ||
370 | if test $as_have_required = no; then | |
371 | echo This script requires a shell more modern than all the | |
372 | echo shells that I found on your system. Please install a | |
373 | echo modern shell, or manually run the script under such a | |
374 | echo shell if you do have one. | |
375 | { (exit 1); exit 1; } | |
376 | fi | |
377 | ||
378 | ||
379 | fi | |
380 | ||
381 | fi | |
382 | ||
383 | ||
384 | ||
385 | (eval "as_func_return () { | |
386 | (exit \$1) | |
387 | } | |
388 | as_func_success () { | |
389 | as_func_return 0 | |
390 | } | |
391 | as_func_failure () { | |
392 | as_func_return 1 | |
393 | } | |
394 | as_func_ret_success () { | |
395 | return 0 | |
396 | } | |
397 | as_func_ret_failure () { | |
398 | return 1 | |
399 | } | |
400 | ||
401 | exitcode=0 | |
402 | if as_func_success; then | |
403 | : | |
404 | else | |
405 | exitcode=1 | |
406 | echo as_func_success failed. | |
407 | fi | |
408 | ||
409 | if as_func_failure; then | |
410 | exitcode=1 | |
411 | echo as_func_failure succeeded. | |
412 | fi | |
413 | ||
414 | if as_func_ret_success; then | |
415 | : | |
416 | else | |
417 | exitcode=1 | |
418 | echo as_func_ret_success failed. | |
419 | fi | |
420 | ||
421 | if as_func_ret_failure; then | |
422 | exitcode=1 | |
423 | echo as_func_ret_failure succeeded. | |
424 | fi | |
425 | ||
426 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
427 | : | |
428 | else | |
429 | exitcode=1 | |
430 | echo positional parameters were not saved. | |
431 | fi | |
432 | ||
433 | test \$exitcode = 0") || { | |
434 | echo No shell found that supports shell functions. | |
435 | echo Please tell bug-autoconf@gnu.org about your system, | |
436 | echo including any error possibly output before this message. | |
437 | echo This can help us improve future autoconf versions. | |
438 | echo Configuration will now proceed without shell functions. | |
439 | } | |
440 | ||
441 | ||
442 | ||
443 | as_lineno_1=$LINENO | |
444 | as_lineno_2=$LINENO | |
445 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
446 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
bf9f3bac BB |
447 | |
448 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
449 | # uniformly replaced by the line number. The first 'sed' inserts a | |
8934764e BB |
450 | # line-number line after each line using $LINENO; the second 'sed' |
451 | # does the real work. The second script uses 'N' to pair each | |
452 | # line-number line with the line containing $LINENO, and appends | |
453 | # trailing '-' during substitution so that $LINENO is not a special | |
454 | # case at line end. | |
bf9f3bac | 455 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
8934764e BB |
456 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
457 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
458 | sed -n ' | |
459 | p | |
460 | /[$]LINENO/= | |
461 | ' <$as_myself | | |
bf9f3bac | 462 | sed ' |
8934764e BB |
463 | s/[$]LINENO.*/&-/ |
464 | t lineno | |
465 | b | |
466 | :lineno | |
bf9f3bac | 467 | N |
8934764e BB |
468 | :loop |
469 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
bf9f3bac | 470 | t loop |
8934764e | 471 | s/-\n.*// |
bf9f3bac | 472 | ' >$as_me.lineno && |
8934764e BB |
473 | chmod +x "$as_me.lineno" || |
474 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
bf9f3bac BB |
475 | { (exit 1); exit 1; }; } |
476 | ||
477 | # Don't try to exec as it changes $[0], causing all sort of problems | |
478 | # (the dirname of $[0] is not the place where we might find the | |
8934764e BB |
479 | # original and so on. Autoconf is especially sensitive to this). |
480 | . "./$as_me.lineno" | |
bf9f3bac BB |
481 | # Exit status is that of the last command. |
482 | exit | |
483 | } | |
484 | ||
485 | ||
8934764e BB |
486 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
487 | as_dirname=dirname | |
488 | else | |
489 | as_dirname=false | |
490 | fi | |
bf9f3bac | 491 | |
8934764e BB |
492 | ECHO_C= ECHO_N= ECHO_T= |
493 | case `echo -n x` in | |
494 | -n*) | |
495 | case `echo 'x\c'` in | |
496 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
497 | *) ECHO_C='\c';; | |
498 | esac;; | |
499 | *) | |
500 | ECHO_N='-n';; | |
501 | esac | |
502 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
503 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
bf9f3bac BB |
504 | as_expr=expr |
505 | else | |
506 | as_expr=false | |
507 | fi | |
508 | ||
509 | rm -f conf$$ conf$$.exe conf$$.file | |
8934764e BB |
510 | if test -d conf$$.dir; then |
511 | rm -f conf$$.dir/conf$$.file | |
512 | else | |
513 | rm -f conf$$.dir | |
514 | mkdir conf$$.dir 2>/dev/null | |
515 | fi | |
516 | if (echo >conf$$.file) 2>/dev/null; then | |
517 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
bf9f3bac | 518 | as_ln_s='ln -s' |
8934764e BB |
519 | # ... but there are two gotchas: |
520 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
521 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
522 | # In both cases, we have to default to `cp -p'. | |
523 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
524 | as_ln_s='cp -p' | |
525 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
526 | as_ln_s=ln | |
527 | else | |
528 | as_ln_s='cp -p' | |
bf9f3bac | 529 | fi |
bf9f3bac BB |
530 | else |
531 | as_ln_s='cp -p' | |
532 | fi | |
8934764e BB |
533 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
534 | rmdir conf$$.dir 2>/dev/null | |
bf9f3bac BB |
535 | |
536 | if mkdir -p . 2>/dev/null; then | |
537 | as_mkdir_p=: | |
538 | else | |
539 | test -d ./-p && rmdir ./-p | |
540 | as_mkdir_p=false | |
541 | fi | |
542 | ||
8934764e BB |
543 | if test -x / >/dev/null 2>&1; then |
544 | as_test_x='test -x' | |
545 | else | |
546 | if ls -dL / >/dev/null 2>&1; then | |
547 | as_ls_L_option=L | |
548 | else | |
549 | as_ls_L_option= | |
550 | fi | |
551 | as_test_x=' | |
552 | eval sh -c '\'' | |
553 | if test -d "$1"; then | |
554 | test -d "$1/."; | |
555 | else | |
556 | case $1 in | |
557 | -*)set "./$1";; | |
558 | esac; | |
559 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
560 | ???[sx]*):;;*)false;;esac;fi | |
561 | '\'' sh | |
562 | ' | |
563 | fi | |
564 | as_executable_p=$as_test_x | |
bf9f3bac BB |
565 | |
566 | # Sed expression to map a string onto a valid CPP name. | |
567 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
568 | ||
569 | # Sed expression to map a string onto a valid variable name. | |
570 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
571 | ||
572 | ||
bf9f3bac BB |
573 | |
574 | ||
575 | # Check that we are running under the correct shell. | |
576 | SHELL=${CONFIG_SHELL-/bin/sh} | |
577 | ||
8934764e | 578 | case X$lt_ECHO in |
bf9f3bac BB |
579 | X*--fallback-echo) |
580 | # Remove one level of quotation (which was required for Make). | |
8934764e | 581 | ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` |
bf9f3bac BB |
582 | ;; |
583 | esac | |
584 | ||
8934764e | 585 | ECHO=${lt_ECHO-echo} |
bf9f3bac BB |
586 | if test "X$1" = X--no-reexec; then |
587 | # Discard the --no-reexec flag, and continue. | |
588 | shift | |
589 | elif test "X$1" = X--fallback-echo; then | |
590 | # Avoid inline document here, it may be left over | |
591 | : | |
8934764e BB |
592 | elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then |
593 | # Yippee, $ECHO works! | |
bf9f3bac BB |
594 | : |
595 | else | |
596 | # Restart under the correct shell. | |
597 | exec $SHELL "$0" --no-reexec ${1+"$@"} | |
598 | fi | |
599 | ||
600 | if test "X$1" = X--fallback-echo; then | |
601 | # used as fallback echo | |
602 | shift | |
8934764e | 603 | cat <<_LT_EOF |
bf9f3bac | 604 | $* |
8934764e | 605 | _LT_EOF |
bf9f3bac BB |
606 | exit 0 |
607 | fi | |
608 | ||
609 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
610 | # if CDPATH is set. | |
611 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
612 | ||
8934764e BB |
613 | if test -z "$lt_ECHO"; then |
614 | if test "X${echo_test_string+set}" != Xset; then | |
615 | # find a string as large as possible, as long as the shell can cope with it | |
616 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | |
617 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | |
618 | if { echo_test_string=`eval $cmd`; } 2>/dev/null && | |
619 | { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null | |
620 | then | |
621 | break | |
622 | fi | |
623 | done | |
624 | fi | |
bf9f3bac | 625 | |
8934764e BB |
626 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && |
627 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | |
628 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
629 | : | |
630 | else | |
631 | # The Solaris, AIX, and Digital Unix default echo programs unquote | |
632 | # backslashes. This makes it impossible to quote backslashes using | |
633 | # echo "$something" | sed 's/\\/\\\\/g' | |
634 | # | |
635 | # So, first we look for a working echo in the user's PATH. | |
bf9f3bac | 636 | |
8934764e BB |
637 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
638 | for dir in $PATH /usr/ucb; do | |
639 | IFS="$lt_save_ifs" | |
640 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | |
641 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | |
642 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | |
643 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
644 | ECHO="$dir/echo" | |
645 | break | |
646 | fi | |
647 | done | |
bf9f3bac | 648 | IFS="$lt_save_ifs" |
bf9f3bac | 649 | |
8934764e BB |
650 | if test "X$ECHO" = Xecho; then |
651 | # We didn't find a better echo, so look for alternatives. | |
652 | if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && | |
653 | echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && | |
654 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
655 | # This shell has a builtin print -r that does the trick. | |
656 | ECHO='print -r' | |
657 | elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && | |
658 | test "X$CONFIG_SHELL" != X/bin/ksh; then | |
659 | # If we have ksh, try running configure again with it. | |
660 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
661 | export ORIGINAL_CONFIG_SHELL | |
662 | CONFIG_SHELL=/bin/ksh | |
663 | export CONFIG_SHELL | |
664 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | |
bf9f3bac | 665 | else |
8934764e BB |
666 | # Try using printf. |
667 | ECHO='printf %s\n' | |
668 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | |
669 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | |
670 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
671 | # Cool, printf works | |
672 | : | |
673 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
674 | test "X$echo_testing_string" = 'X\t' && | |
675 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
676 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
677 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | |
678 | export CONFIG_SHELL | |
679 | SHELL="$CONFIG_SHELL" | |
680 | export SHELL | |
681 | ECHO="$CONFIG_SHELL $0 --fallback-echo" | |
682 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
683 | test "X$echo_testing_string" = 'X\t' && | |
684 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
685 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
686 | ECHO="$CONFIG_SHELL $0 --fallback-echo" | |
687 | else | |
688 | # maybe with a smaller string... | |
689 | prev=: | |
bf9f3bac | 690 | |
8934764e BB |
691 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
692 | if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null | |
693 | then | |
694 | break | |
695 | fi | |
696 | prev="$cmd" | |
697 | done | |
bf9f3bac | 698 | |
8934764e BB |
699 | if test "$prev" != 'sed 50q "$0"'; then |
700 | echo_test_string=`eval $prev` | |
701 | export echo_test_string | |
702 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | |
703 | else | |
704 | # Oops. We lost completely, so just stick with echo. | |
705 | ECHO=echo | |
706 | fi | |
707 | fi | |
bf9f3bac BB |
708 | fi |
709 | fi | |
710 | fi | |
711 | fi | |
bf9f3bac BB |
712 | |
713 | # Copy echo and quote the copy suitably for passing to libtool from | |
714 | # the Makefile, instead of quoting the original, which is used later. | |
8934764e BB |
715 | lt_ECHO=$ECHO |
716 | if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | |
717 | lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | |
bf9f3bac BB |
718 | fi |
719 | ||
720 | ||
721 | ||
722 | ||
8934764e | 723 | exec 7<&0 </dev/null 6>&1 |
bf9f3bac BB |
724 | |
725 | # Name of the host. | |
726 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
727 | # so uname gets run too. | |
728 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
729 | ||
bf9f3bac BB |
730 | # |
731 | # Initializations. | |
732 | # | |
733 | ac_default_prefix=/usr/local | |
8934764e | 734 | ac_clean_files= |
bf9f3bac | 735 | ac_config_libobj_dir=. |
8934764e | 736 | LIBOBJS= |
bf9f3bac BB |
737 | cross_compiling=no |
738 | subdirs= | |
739 | MFLAGS= | |
740 | MAKEFLAGS= | |
741 | SHELL=${CONFIG_SHELL-/bin/sh} | |
742 | ||
bf9f3bac BB |
743 | # Identity of this package. |
744 | PACKAGE_NAME= | |
745 | PACKAGE_TARNAME= | |
746 | PACKAGE_VERSION= | |
747 | PACKAGE_STRING= | |
748 | PACKAGE_BUGREPORT= | |
749 | ||
750 | # Factoring default headers for most tests. | |
751 | ac_includes_default="\ | |
752 | #include <stdio.h> | |
8934764e | 753 | #ifdef HAVE_SYS_TYPES_H |
bf9f3bac BB |
754 | # include <sys/types.h> |
755 | #endif | |
8934764e | 756 | #ifdef HAVE_SYS_STAT_H |
bf9f3bac BB |
757 | # include <sys/stat.h> |
758 | #endif | |
8934764e | 759 | #ifdef STDC_HEADERS |
bf9f3bac BB |
760 | # include <stdlib.h> |
761 | # include <stddef.h> | |
762 | #else | |
8934764e | 763 | # ifdef HAVE_STDLIB_H |
bf9f3bac BB |
764 | # include <stdlib.h> |
765 | # endif | |
766 | #endif | |
8934764e BB |
767 | #ifdef HAVE_STRING_H |
768 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
bf9f3bac BB |
769 | # include <memory.h> |
770 | # endif | |
771 | # include <string.h> | |
772 | #endif | |
8934764e | 773 | #ifdef HAVE_STRINGS_H |
bf9f3bac BB |
774 | # include <strings.h> |
775 | #endif | |
8934764e | 776 | #ifdef HAVE_INTTYPES_H |
bf9f3bac | 777 | # include <inttypes.h> |
bf9f3bac | 778 | #endif |
8934764e BB |
779 | #ifdef HAVE_STDINT_H |
780 | # include <stdint.h> | |
781 | #endif | |
782 | #ifdef HAVE_UNISTD_H | |
bf9f3bac BB |
783 | # include <unistd.h> |
784 | #endif" | |
785 | ||
8934764e BB |
786 | ac_subst_vars='am__EXEEXT_FALSE |
787 | am__EXEEXT_TRUE | |
788 | LTLIBOBJS | |
789 | LIBOBJS | |
790 | CONFIG_KERNEL_FALSE | |
791 | CONFIG_KERNEL_TRUE | |
792 | CONFIG_USER_FALSE | |
793 | CONFIG_USER_TRUE | |
c950d148 | 794 | DEBUG_CFLAGS |
8934764e BB |
795 | KERNELCPPFLAGS |
796 | KERNELMAKE_PARAMS | |
797 | LINUX_SYMBOLS | |
798 | LINUX_VERSION | |
799 | LINUX_OBJ | |
800 | LINUX | |
801 | SPL_CONFIG | |
287b2fb1 BB |
802 | DEFAULT_PACKAGE |
803 | ALIEN_VERSION | |
804 | ALIEN | |
805 | HAVE_ALIEN | |
806 | DPKGBUILD_VERSION | |
807 | DPKGBUILD | |
808 | HAVE_DPKGBUILD | |
809 | DPKG_VERSION | |
810 | DPKG | |
811 | HAVE_DPKG | |
812 | RPMBUILD_VERSION | |
813 | RPMBUILD | |
814 | HAVE_RPMBUILD | |
815 | RPM_VERSION | |
816 | RPM | |
817 | HAVE_RPM | |
8934764e BB |
818 | LICENSE |
819 | CPP | |
820 | OTOOL64 | |
821 | OTOOL | |
822 | LIPO | |
823 | NMEDIT | |
824 | DSYMUTIL | |
825 | lt_ECHO | |
826 | RANLIB | |
827 | AR | |
828 | OBJDUMP | |
829 | LN_S | |
830 | NM | |
831 | ac_ct_DUMPBIN | |
832 | DUMPBIN | |
833 | LD | |
834 | FGREP | |
835 | EGREP | |
836 | GREP | |
837 | SED | |
838 | LIBTOOL | |
839 | am__fastdepCC_FALSE | |
840 | am__fastdepCC_TRUE | |
841 | CCDEPMODE | |
842 | AMDEPBACKSLASH | |
843 | AMDEP_FALSE | |
844 | AMDEP_TRUE | |
845 | am__quote | |
846 | am__include | |
847 | DEPDIR | |
848 | OBJEXT | |
849 | EXEEXT | |
850 | ac_ct_CC | |
851 | CPPFLAGS | |
852 | LDFLAGS | |
853 | CFLAGS | |
854 | CC | |
855 | am__untar | |
856 | am__tar | |
857 | AMTAR | |
858 | am__leading_dot | |
859 | SET_MAKE | |
860 | AWK | |
861 | mkdir_p | |
862 | MKDIR_P | |
863 | INSTALL_STRIP_PROGRAM | |
864 | STRIP | |
865 | install_sh | |
866 | MAKEINFO | |
867 | AUTOHEADER | |
868 | AUTOMAKE | |
869 | AUTOCONF | |
870 | ACLOCAL | |
871 | VERSION | |
872 | PACKAGE | |
873 | CYGPATH_W | |
874 | am__isrc | |
875 | INSTALL_DATA | |
876 | INSTALL_SCRIPT | |
877 | INSTALL_PROGRAM | |
878 | AM_BACKSLASH | |
879 | AM_DEFAULT_VERBOSITY | |
880 | MAINT | |
881 | MAINTAINER_MODE_FALSE | |
882 | MAINTAINER_MODE_TRUE | |
883 | target_os | |
884 | target_vendor | |
885 | target_cpu | |
886 | target | |
887 | host_os | |
888 | host_vendor | |
889 | host_cpu | |
890 | host | |
891 | build_os | |
892 | build_vendor | |
893 | build_cpu | |
894 | build | |
895 | SPL_META_LT_AGE | |
896 | SPL_META_LT_REVISION | |
897 | SPL_META_LT_CURRENT | |
898 | SPL_META_AUTHOR | |
899 | SPL_META_DATA | |
900 | SPL_META_ALIAS | |
901 | SPL_META_RELEASE | |
902 | SPL_META_VERSION | |
903 | SPL_META_NAME | |
904 | target_alias | |
905 | host_alias | |
906 | build_alias | |
907 | LIBS | |
908 | ECHO_T | |
909 | ECHO_N | |
910 | ECHO_C | |
911 | DEFS | |
912 | mandir | |
913 | localedir | |
914 | libdir | |
915 | psdir | |
916 | pdfdir | |
917 | dvidir | |
918 | htmldir | |
919 | infodir | |
920 | docdir | |
921 | oldincludedir | |
922 | includedir | |
923 | localstatedir | |
924 | sharedstatedir | |
925 | sysconfdir | |
926 | datadir | |
927 | datarootdir | |
928 | libexecdir | |
929 | sbindir | |
930 | bindir | |
931 | program_transform_name | |
932 | prefix | |
933 | exec_prefix | |
934 | PACKAGE_BUGREPORT | |
935 | PACKAGE_STRING | |
936 | PACKAGE_VERSION | |
937 | PACKAGE_TARNAME | |
938 | PACKAGE_NAME | |
939 | PATH_SEPARATOR | |
940 | SHELL' | |
bf9f3bac | 941 | ac_subst_files='' |
8934764e BB |
942 | ac_user_opts=' |
943 | enable_option_checking | |
944 | enable_maintainer_mode | |
945 | enable_silent_rules | |
946 | enable_dependency_tracking | |
947 | enable_shared | |
948 | enable_static | |
949 | with_pic | |
950 | enable_fast_install | |
951 | with_gnu_ld | |
952 | enable_libtool_lock | |
953 | with_config | |
954 | with_linux | |
955 | with_linux_obj | |
956 | enable_debug | |
957 | enable_debug_kmem | |
958 | enable_debug_kmem_tracking | |
959 | enable_atomic_spinlocks | |
960 | ' | |
961 | ac_precious_vars='build_alias | |
962 | host_alias | |
963 | target_alias | |
964 | CC | |
965 | CFLAGS | |
966 | LDFLAGS | |
967 | LIBS | |
968 | CPPFLAGS | |
969 | CPP' | |
970 | ||
bf9f3bac BB |
971 | |
972 | # Initialize some variables set by options. | |
973 | ac_init_help= | |
974 | ac_init_version=false | |
8934764e BB |
975 | ac_unrecognized_opts= |
976 | ac_unrecognized_sep= | |
bf9f3bac BB |
977 | # The variables have the same names as the options, with |
978 | # dashes changed to underlines. | |
979 | cache_file=/dev/null | |
980 | exec_prefix=NONE | |
981 | no_create= | |
982 | no_recursion= | |
983 | prefix=NONE | |
984 | program_prefix=NONE | |
985 | program_suffix=NONE | |
986 | program_transform_name=s,x,x, | |
987 | silent= | |
988 | site= | |
989 | srcdir= | |
990 | verbose= | |
991 | x_includes=NONE | |
992 | x_libraries=NONE | |
993 | ||
994 | # Installation directory options. | |
995 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
996 | # and all the variables that are supposed to be based on exec_prefix | |
997 | # by default will actually change. | |
998 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
8934764e | 999 | # (The list follows the same order as the GNU Coding Standards.) |
bf9f3bac BB |
1000 | bindir='${exec_prefix}/bin' |
1001 | sbindir='${exec_prefix}/sbin' | |
1002 | libexecdir='${exec_prefix}/libexec' | |
8934764e BB |
1003 | datarootdir='${prefix}/share' |
1004 | datadir='${datarootdir}' | |
bf9f3bac BB |
1005 | sysconfdir='${prefix}/etc' |
1006 | sharedstatedir='${prefix}/com' | |
1007 | localstatedir='${prefix}/var' | |
bf9f3bac BB |
1008 | includedir='${prefix}/include' |
1009 | oldincludedir='/usr/include' | |
8934764e BB |
1010 | docdir='${datarootdir}/doc/${PACKAGE}' |
1011 | infodir='${datarootdir}/info' | |
1012 | htmldir='${docdir}' | |
1013 | dvidir='${docdir}' | |
1014 | pdfdir='${docdir}' | |
1015 | psdir='${docdir}' | |
1016 | libdir='${exec_prefix}/lib' | |
1017 | localedir='${datarootdir}/locale' | |
1018 | mandir='${datarootdir}/man' | |
bf9f3bac BB |
1019 | |
1020 | ac_prev= | |
8934764e | 1021 | ac_dashdash= |
bf9f3bac BB |
1022 | for ac_option |
1023 | do | |
1024 | # If the previous option needs an argument, assign it. | |
1025 | if test -n "$ac_prev"; then | |
8934764e | 1026 | eval $ac_prev=\$ac_option |
bf9f3bac BB |
1027 | ac_prev= |
1028 | continue | |
1029 | fi | |
1030 | ||
8934764e BB |
1031 | case $ac_option in |
1032 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
1033 | *) ac_optarg=yes ;; | |
1034 | esac | |
bf9f3bac BB |
1035 | |
1036 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
1037 | ||
8934764e BB |
1038 | case $ac_dashdash$ac_option in |
1039 | --) | |
1040 | ac_dashdash=yes ;; | |
bf9f3bac BB |
1041 | |
1042 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
1043 | ac_prev=bindir ;; | |
1044 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
1045 | bindir=$ac_optarg ;; | |
1046 | ||
1047 | -build | --build | --buil | --bui | --bu) | |
1048 | ac_prev=build_alias ;; | |
1049 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
1050 | build_alias=$ac_optarg ;; | |
1051 | ||
1052 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
1053 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
1054 | ac_prev=cache_file ;; | |
1055 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
1056 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
1057 | cache_file=$ac_optarg ;; | |
1058 | ||
1059 | --config-cache | -C) | |
1060 | cache_file=config.cache ;; | |
1061 | ||
8934764e | 1062 | -datadir | --datadir | --datadi | --datad) |
bf9f3bac | 1063 | ac_prev=datadir ;; |
8934764e | 1064 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
bf9f3bac BB |
1065 | datadir=$ac_optarg ;; |
1066 | ||
8934764e BB |
1067 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
1068 | | --dataroo | --dataro | --datar) | |
1069 | ac_prev=datarootdir ;; | |
1070 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1071 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1072 | datarootdir=$ac_optarg ;; | |
1073 | ||
bf9f3bac | 1074 | -disable-* | --disable-*) |
8934764e | 1075 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
bf9f3bac | 1076 | # Reject names that are not valid shell variable names. |
8934764e BB |
1077 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1078 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
bf9f3bac | 1079 | { (exit 1); exit 1; }; } |
8934764e BB |
1080 | ac_useropt_orig=$ac_useropt |
1081 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1082 | case $ac_user_opts in | |
1083 | *" | |
1084 | "enable_$ac_useropt" | |
1085 | "*) ;; | |
1086 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1087 | ac_unrecognized_sep=', ';; | |
1088 | esac | |
1089 | eval enable_$ac_useropt=no ;; | |
1090 | ||
1091 | -docdir | --docdir | --docdi | --doc | --do) | |
1092 | ac_prev=docdir ;; | |
1093 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1094 | docdir=$ac_optarg ;; | |
1095 | ||
1096 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1097 | ac_prev=dvidir ;; | |
1098 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1099 | dvidir=$ac_optarg ;; | |
bf9f3bac BB |
1100 | |
1101 | -enable-* | --enable-*) | |
8934764e | 1102 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
bf9f3bac | 1103 | # Reject names that are not valid shell variable names. |
8934764e BB |
1104 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1105 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
bf9f3bac | 1106 | { (exit 1); exit 1; }; } |
8934764e BB |
1107 | ac_useropt_orig=$ac_useropt |
1108 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1109 | case $ac_user_opts in | |
1110 | *" | |
1111 | "enable_$ac_useropt" | |
1112 | "*) ;; | |
1113 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1114 | ac_unrecognized_sep=', ';; | |
bf9f3bac | 1115 | esac |
8934764e | 1116 | eval enable_$ac_useropt=\$ac_optarg ;; |
bf9f3bac BB |
1117 | |
1118 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1119 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1120 | | --exec | --exe | --ex) | |
1121 | ac_prev=exec_prefix ;; | |
1122 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1123 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1124 | | --exec=* | --exe=* | --ex=*) | |
1125 | exec_prefix=$ac_optarg ;; | |
1126 | ||
1127 | -gas | --gas | --ga | --g) | |
1128 | # Obsolete; use --with-gas. | |
1129 | with_gas=yes ;; | |
1130 | ||
1131 | -help | --help | --hel | --he | -h) | |
1132 | ac_init_help=long ;; | |
1133 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1134 | ac_init_help=recursive ;; | |
1135 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1136 | ac_init_help=short ;; | |
1137 | ||
1138 | -host | --host | --hos | --ho) | |
1139 | ac_prev=host_alias ;; | |
1140 | -host=* | --host=* | --hos=* | --ho=*) | |
1141 | host_alias=$ac_optarg ;; | |
1142 | ||
8934764e BB |
1143 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1144 | ac_prev=htmldir ;; | |
1145 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1146 | | --ht=*) | |
1147 | htmldir=$ac_optarg ;; | |
1148 | ||
bf9f3bac BB |
1149 | -includedir | --includedir | --includedi | --included | --include \ |
1150 | | --includ | --inclu | --incl | --inc) | |
1151 | ac_prev=includedir ;; | |
1152 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1153 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1154 | includedir=$ac_optarg ;; | |
1155 | ||
1156 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1157 | ac_prev=infodir ;; | |
1158 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1159 | infodir=$ac_optarg ;; | |
1160 | ||
1161 | -libdir | --libdir | --libdi | --libd) | |
1162 | ac_prev=libdir ;; | |
1163 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1164 | libdir=$ac_optarg ;; | |
1165 | ||
1166 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1167 | | --libexe | --libex | --libe) | |
1168 | ac_prev=libexecdir ;; | |
1169 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1170 | | --libexe=* | --libex=* | --libe=*) | |
1171 | libexecdir=$ac_optarg ;; | |
1172 | ||
8934764e BB |
1173 | -localedir | --localedir | --localedi | --localed | --locale) |
1174 | ac_prev=localedir ;; | |
1175 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1176 | localedir=$ac_optarg ;; | |
1177 | ||
bf9f3bac | 1178 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
8934764e | 1179 | | --localstate | --localstat | --localsta | --localst | --locals) |
bf9f3bac BB |
1180 | ac_prev=localstatedir ;; |
1181 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
8934764e | 1182 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
bf9f3bac BB |
1183 | localstatedir=$ac_optarg ;; |
1184 | ||
1185 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1186 | ac_prev=mandir ;; | |
1187 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1188 | mandir=$ac_optarg ;; | |
1189 | ||
1190 | -nfp | --nfp | --nf) | |
1191 | # Obsolete; use --without-fp. | |
1192 | with_fp=no ;; | |
1193 | ||
1194 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1195 | | --no-cr | --no-c | -n) | |
1196 | no_create=yes ;; | |
1197 | ||
1198 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1199 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1200 | no_recursion=yes ;; | |
1201 | ||
1202 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1203 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1204 | | --oldin | --oldi | --old | --ol | --o) | |
1205 | ac_prev=oldincludedir ;; | |
1206 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1207 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1208 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1209 | oldincludedir=$ac_optarg ;; | |
1210 | ||
1211 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1212 | ac_prev=prefix ;; | |
1213 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1214 | prefix=$ac_optarg ;; | |
1215 | ||
1216 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1217 | | --program-pre | --program-pr | --program-p) | |
1218 | ac_prev=program_prefix ;; | |
1219 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1220 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1221 | program_prefix=$ac_optarg ;; | |
1222 | ||
1223 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1224 | | --program-suf | --program-su | --program-s) | |
1225 | ac_prev=program_suffix ;; | |
1226 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1227 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1228 | program_suffix=$ac_optarg ;; | |
1229 | ||
1230 | -program-transform-name | --program-transform-name \ | |
1231 | | --program-transform-nam | --program-transform-na \ | |
1232 | | --program-transform-n | --program-transform- \ | |
1233 | | --program-transform | --program-transfor \ | |
1234 | | --program-transfo | --program-transf \ | |
1235 | | --program-trans | --program-tran \ | |
1236 | | --progr-tra | --program-tr | --program-t) | |
1237 | ac_prev=program_transform_name ;; | |
1238 | -program-transform-name=* | --program-transform-name=* \ | |
1239 | | --program-transform-nam=* | --program-transform-na=* \ | |
1240 | | --program-transform-n=* | --program-transform-=* \ | |
1241 | | --program-transform=* | --program-transfor=* \ | |
1242 | | --program-transfo=* | --program-transf=* \ | |
1243 | | --program-trans=* | --program-tran=* \ | |
1244 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1245 | program_transform_name=$ac_optarg ;; | |
1246 | ||
8934764e BB |
1247 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1248 | ac_prev=pdfdir ;; | |
1249 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1250 | pdfdir=$ac_optarg ;; | |
1251 | ||
1252 | -psdir | --psdir | --psdi | --psd | --ps) | |
1253 | ac_prev=psdir ;; | |
1254 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1255 | psdir=$ac_optarg ;; | |
1256 | ||
bf9f3bac BB |
1257 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1258 | | -silent | --silent | --silen | --sile | --sil) | |
1259 | silent=yes ;; | |
1260 | ||
1261 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1262 | ac_prev=sbindir ;; | |
1263 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1264 | | --sbi=* | --sb=*) | |
1265 | sbindir=$ac_optarg ;; | |
1266 | ||
1267 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1268 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1269 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1270 | | --sha | --sh) | |
1271 | ac_prev=sharedstatedir ;; | |
1272 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1273 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1274 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1275 | | --sha=* | --sh=*) | |
1276 | sharedstatedir=$ac_optarg ;; | |
1277 | ||
1278 | -site | --site | --sit) | |
1279 | ac_prev=site ;; | |
1280 | -site=* | --site=* | --sit=*) | |
1281 | site=$ac_optarg ;; | |
1282 | ||
1283 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1284 | ac_prev=srcdir ;; | |
1285 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1286 | srcdir=$ac_optarg ;; | |
1287 | ||
1288 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1289 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1290 | ac_prev=sysconfdir ;; | |
1291 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1292 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1293 | sysconfdir=$ac_optarg ;; | |
1294 | ||
1295 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1296 | ac_prev=target_alias ;; | |
1297 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1298 | target_alias=$ac_optarg ;; | |
1299 | ||
1300 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1301 | verbose=yes ;; | |
1302 | ||
1303 | -version | --version | --versio | --versi | --vers | -V) | |
1304 | ac_init_version=: ;; | |
1305 | ||
1306 | -with-* | --with-*) | |
8934764e | 1307 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
bf9f3bac | 1308 | # Reject names that are not valid shell variable names. |
8934764e BB |
1309 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1310 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
bf9f3bac | 1311 | { (exit 1); exit 1; }; } |
8934764e BB |
1312 | ac_useropt_orig=$ac_useropt |
1313 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1314 | case $ac_user_opts in | |
1315 | *" | |
1316 | "with_$ac_useropt" | |
1317 | "*) ;; | |
1318 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1319 | ac_unrecognized_sep=', ';; | |
bf9f3bac | 1320 | esac |
8934764e | 1321 | eval with_$ac_useropt=\$ac_optarg ;; |
bf9f3bac BB |
1322 | |
1323 | -without-* | --without-*) | |
8934764e | 1324 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
bf9f3bac | 1325 | # Reject names that are not valid shell variable names. |
8934764e BB |
1326 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1327 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
bf9f3bac | 1328 | { (exit 1); exit 1; }; } |
8934764e BB |
1329 | ac_useropt_orig=$ac_useropt |
1330 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1331 | case $ac_user_opts in | |
1332 | *" | |
1333 | "with_$ac_useropt" | |
1334 | "*) ;; | |
1335 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1336 | ac_unrecognized_sep=', ';; | |
1337 | esac | |
1338 | eval with_$ac_useropt=no ;; | |
bf9f3bac BB |
1339 | |
1340 | --x) | |
1341 | # Obsolete; use --with-x. | |
1342 | with_x=yes ;; | |
1343 | ||
1344 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1345 | | --x-incl | --x-inc | --x-in | --x-i) | |
1346 | ac_prev=x_includes ;; | |
1347 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1348 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1349 | x_includes=$ac_optarg ;; | |
1350 | ||
1351 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1352 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1353 | ac_prev=x_libraries ;; | |
1354 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1355 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1356 | x_libraries=$ac_optarg ;; | |
1357 | ||
8934764e | 1358 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option |
bf9f3bac BB |
1359 | Try \`$0 --help' for more information." >&2 |
1360 | { (exit 1); exit 1; }; } | |
1361 | ;; | |
1362 | ||
1363 | *=*) | |
1364 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1365 | # Reject names that are not valid shell variable names. | |
1366 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
8934764e | 1367 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
bf9f3bac | 1368 | { (exit 1); exit 1; }; } |
8934764e | 1369 | eval $ac_envvar=\$ac_optarg |
bf9f3bac BB |
1370 | export $ac_envvar ;; |
1371 | ||
1372 | *) | |
1373 | # FIXME: should be removed in autoconf 3.0. | |
8934764e | 1374 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
bf9f3bac | 1375 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
8934764e | 1376 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
bf9f3bac BB |
1377 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
1378 | ;; | |
1379 | ||
1380 | esac | |
1381 | done | |
1382 | ||
1383 | if test -n "$ac_prev"; then | |
1384 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
8934764e | 1385 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 |
bf9f3bac BB |
1386 | { (exit 1); exit 1; }; } |
1387 | fi | |
1388 | ||
8934764e BB |
1389 | if test -n "$ac_unrecognized_opts"; then |
1390 | case $enable_option_checking in | |
1391 | no) ;; | |
1392 | fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 | |
1393 | { (exit 1); exit 1; }; } ;; | |
1394 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
bf9f3bac | 1395 | esac |
8934764e | 1396 | fi |
bf9f3bac | 1397 | |
8934764e BB |
1398 | # Check all directory arguments for consistency. |
1399 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1400 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1401 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1402 | libdir localedir mandir | |
bf9f3bac | 1403 | do |
8934764e BB |
1404 | eval ac_val=\$$ac_var |
1405 | # Remove trailing slashes. | |
bf9f3bac | 1406 | case $ac_val in |
8934764e BB |
1407 | */ ) |
1408 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1409 | eval $ac_var=\$ac_val;; | |
bf9f3bac | 1410 | esac |
8934764e BB |
1411 | # Be sure to have absolute directory names. |
1412 | case $ac_val in | |
1413 | [\\/$]* | ?:[\\/]* ) continue;; | |
1414 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1415 | esac | |
1416 | { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
1417 | { (exit 1); exit 1; }; } | |
bf9f3bac BB |
1418 | done |
1419 | ||
1420 | # There might be people who depend on the old broken behavior: `$host' | |
1421 | # used to hold the argument of --host etc. | |
1422 | # FIXME: To remove some day. | |
1423 | build=$build_alias | |
1424 | host=$host_alias | |
1425 | target=$target_alias | |
1426 | ||
1427 | # FIXME: To remove some day. | |
1428 | if test "x$host_alias" != x; then | |
1429 | if test "x$build_alias" = x; then | |
1430 | cross_compiling=maybe | |
8934764e | 1431 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
bf9f3bac BB |
1432 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1433 | elif test "x$build_alias" != "x$host_alias"; then | |
1434 | cross_compiling=yes | |
1435 | fi | |
1436 | fi | |
1437 | ||
1438 | ac_tool_prefix= | |
1439 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1440 | ||
1441 | test "$silent" = yes && exec 6>/dev/null | |
1442 | ||
1443 | ||
8934764e BB |
1444 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1445 | ac_ls_di=`ls -di .` && | |
1446 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1447 | { $as_echo "$as_me: error: working directory cannot be determined" >&2 | |
1448 | { (exit 1); exit 1; }; } | |
1449 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1450 | { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 | |
1451 | { (exit 1); exit 1; }; } | |
1452 | ||
1453 | ||
bf9f3bac BB |
1454 | # Find the source files, if location was not specified. |
1455 | if test -z "$srcdir"; then | |
1456 | ac_srcdir_defaulted=yes | |
8934764e BB |
1457 | # Try the directory containing this script, then the parent directory. |
1458 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1459 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1460 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1461 | X"$as_myself" : 'X\(//\)$' \| \ | |
1462 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1463 | $as_echo X"$as_myself" | | |
1464 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1465 | s//\1/ | |
1466 | q | |
1467 | } | |
1468 | /^X\(\/\/\)[^/].*/{ | |
1469 | s//\1/ | |
1470 | q | |
1471 | } | |
1472 | /^X\(\/\/\)$/{ | |
1473 | s//\1/ | |
1474 | q | |
1475 | } | |
1476 | /^X\(\/\).*/{ | |
1477 | s//\1/ | |
1478 | q | |
1479 | } | |
1480 | s/.*/./; q'` | |
bf9f3bac | 1481 | srcdir=$ac_confdir |
8934764e | 1482 | if test ! -r "$srcdir/$ac_unique_file"; then |
bf9f3bac BB |
1483 | srcdir=.. |
1484 | fi | |
1485 | else | |
1486 | ac_srcdir_defaulted=no | |
1487 | fi | |
8934764e BB |
1488 | if test ! -r "$srcdir/$ac_unique_file"; then |
1489 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1490 | { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
bf9f3bac | 1491 | { (exit 1); exit 1; }; } |
bf9f3bac | 1492 | fi |
8934764e BB |
1493 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1494 | ac_abs_confdir=`( | |
1495 | cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 | |
bf9f3bac | 1496 | { (exit 1); exit 1; }; } |
8934764e BB |
1497 | pwd)` |
1498 | # When building in place, set srcdir=. | |
1499 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1500 | srcdir=. | |
1501 | fi | |
1502 | # Remove unnecessary trailing slashes from srcdir. | |
1503 | # Double slashes in file names in object file debugging info | |
1504 | # mess up M-x gdb in Emacs. | |
1505 | case $srcdir in | |
1506 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1507 | esac | |
1508 | for ac_var in $ac_precious_vars; do | |
1509 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1510 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1511 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1512 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1513 | done | |
bf9f3bac BB |
1514 | |
1515 | # | |
1516 | # Report the --help message. | |
1517 | # | |
1518 | if test "$ac_init_help" = "long"; then | |
1519 | # Omit some internal or obsolete options to make the list less imposing. | |
1520 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1521 | cat <<_ACEOF | |
1522 | \`configure' configures this package to adapt to many kinds of systems. | |
1523 | ||
1524 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1525 | ||
1526 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1527 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1528 | ||
1529 | Defaults for the options are specified in brackets. | |
1530 | ||
1531 | Configuration: | |
1532 | -h, --help display this help and exit | |
1533 | --help=short display options specific to this package | |
1534 | --help=recursive display the short help of all the included packages | |
1535 | -V, --version display version information and exit | |
1536 | -q, --quiet, --silent do not print \`checking...' messages | |
1537 | --cache-file=FILE cache test results in FILE [disabled] | |
1538 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1539 | -n, --no-create do not create output files | |
1540 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1541 | ||
bf9f3bac BB |
1542 | Installation directories: |
1543 | --prefix=PREFIX install architecture-independent files in PREFIX | |
8934764e | 1544 | [$ac_default_prefix] |
bf9f3bac | 1545 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
8934764e | 1546 | [PREFIX] |
bf9f3bac BB |
1547 | |
1548 | By default, \`make install' will install all the files in | |
1549 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1550 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1551 | for instance \`--prefix=\$HOME'. | |
1552 | ||
1553 | For better control, use the options below. | |
1554 | ||
1555 | Fine tuning of the installation directories: | |
8934764e BB |
1556 | --bindir=DIR user executables [EPREFIX/bin] |
1557 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1558 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1559 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1560 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1561 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1562 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1563 | --includedir=DIR C header files [PREFIX/include] | |
1564 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1565 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1566 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1567 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1568 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1569 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1570 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1571 | --htmldir=DIR html documentation [DOCDIR] | |
1572 | --dvidir=DIR dvi documentation [DOCDIR] | |
1573 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1574 | --psdir=DIR ps documentation [DOCDIR] | |
bf9f3bac BB |
1575 | _ACEOF |
1576 | ||
1577 | cat <<\_ACEOF | |
1578 | ||
1579 | Program names: | |
1580 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1581 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1582 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1583 | ||
1584 | System types: | |
1585 | --build=BUILD configure for building on BUILD [guessed] | |
1586 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1587 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1588 | _ACEOF | |
1589 | fi | |
1590 | ||
1591 | if test -n "$ac_init_help"; then | |
1592 | ||
1593 | cat <<\_ACEOF | |
1594 | ||
1595 | Optional Features: | |
8934764e | 1596 | --disable-option-checking ignore unrecognized --enable/--with options |
bf9f3bac BB |
1597 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1598 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1599 | --enable-maintainer-mode enable make rules and dependencies not useful | |
1600 | (and sometimes confusing) to the casual installer | |
8934764e BB |
1601 | --enable-silent-rules less verbose build output (undo: `make V=1') |
1602 | --disable-silent-rules verbose build output (undo: `make V=0') | |
bf9f3bac BB |
1603 | --disable-dependency-tracking speeds up one-time build |
1604 | --enable-dependency-tracking do not reject slow dependency extractors | |
8934764e BB |
1605 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1606 | --enable-static[=PKGS] build static libraries [default=yes] | |
bf9f3bac BB |
1607 | --enable-fast-install[=PKGS] |
1608 | optimize for fast installation [default=yes] | |
1609 | --disable-libtool-lock avoid locking (might break parallel builds) | |
055ffd98 BB |
1610 | --enable-debug Enable generic debug support [default=no] |
1611 | --enable-debug-kmem Enable basic kmem accounting [default=yes] | |
1612 | --enable-debug-kmem-tracking | |
1613 | Enable detailed kmem tracking [default=no] | |
5e9b5d83 | 1614 | --enable-atomic-spinlocks |
d04c8a56 | 1615 | Atomic types use spinlocks [default=check] |
bf9f3bac BB |
1616 | |
1617 | Optional Packages: | |
1618 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1619 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
bf9f3bac BB |
1620 | --with-pic try to use only PIC/non-PIC objects [default=use |
1621 | both] | |
8934764e | 1622 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
c1541dfe | 1623 | --with-config=CONFIG Config file 'kernel|user|all|srpm' |
bf9f3bac BB |
1624 | --with-linux=PATH Path to kernel source |
1625 | --with-linux-obj=PATH Path to kernel build objects | |
1626 | ||
1627 | Some influential environment variables: | |
1628 | CC C compiler command | |
1629 | CFLAGS C compiler flags | |
1630 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1631 | nonstandard directory <lib dir> | |
8934764e BB |
1632 | LIBS libraries to pass to the linker, e.g. -l<library> |
1633 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1634 | you have headers in a nonstandard directory <include dir> | |
bf9f3bac | 1635 | CPP C preprocessor |
bf9f3bac BB |
1636 | |
1637 | Use these variables to override the choices made by `configure' or to help | |
1638 | it to find libraries and programs with nonstandard names/locations. | |
1639 | ||
1640 | _ACEOF | |
8934764e | 1641 | ac_status=$? |
bf9f3bac BB |
1642 | fi |
1643 | ||
1644 | if test "$ac_init_help" = "recursive"; then | |
1645 | # If there are subdirs, report their specific --help. | |
bf9f3bac | 1646 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
8934764e BB |
1647 | test -d "$ac_dir" || |
1648 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1649 | continue | |
bf9f3bac BB |
1650 | ac_builddir=. |
1651 | ||
8934764e BB |
1652 | case "$ac_dir" in |
1653 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1654 | *) | |
1655 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1656 | # A ".." for each directory in $ac_dir_suffix. | |
1657 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1658 | case $ac_top_builddir_sub in | |
1659 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1660 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1661 | esac ;; | |
1662 | esac | |
1663 | ac_abs_top_builddir=$ac_pwd | |
1664 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1665 | # for backward compatibility: | |
1666 | ac_top_builddir=$ac_top_build_prefix | |
bf9f3bac BB |
1667 | |
1668 | case $srcdir in | |
8934764e | 1669 | .) # We are building in place. |
bf9f3bac | 1670 | ac_srcdir=. |
8934764e BB |
1671 | ac_top_srcdir=$ac_top_builddir_sub |
1672 | ac_abs_top_srcdir=$ac_pwd ;; | |
1673 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
bf9f3bac | 1674 | ac_srcdir=$srcdir$ac_dir_suffix; |
8934764e BB |
1675 | ac_top_srcdir=$srcdir |
1676 | ac_abs_top_srcdir=$srcdir ;; | |
1677 | *) # Relative name. | |
1678 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1679 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1680 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
bf9f3bac | 1681 | esac |
8934764e BB |
1682 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1683 | ||
1684 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1685 | # Check for guested configure. | |
1686 | if test -f "$ac_srcdir/configure.gnu"; then | |
1687 | echo && | |
1688 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1689 | elif test -f "$ac_srcdir/configure"; then | |
1690 | echo && | |
1691 | $SHELL "$ac_srcdir/configure" --help=recursive | |
bf9f3bac | 1692 | else |
8934764e BB |
1693 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1694 | fi || ac_status=$? | |
1695 | cd "$ac_pwd" || { ac_status=$?; break; } | |
bf9f3bac BB |
1696 | done |
1697 | fi | |
1698 | ||
8934764e | 1699 | test -n "$ac_init_help" && exit $ac_status |
bf9f3bac BB |
1700 | if $ac_init_version; then |
1701 | cat <<\_ACEOF | |
8934764e BB |
1702 | configure |
1703 | generated by GNU Autoconf 2.63 | |
bf9f3bac | 1704 | |
8934764e BB |
1705 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
1706 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. | |
bf9f3bac BB |
1707 | This configure script is free software; the Free Software Foundation |
1708 | gives unlimited permission to copy, distribute and modify it. | |
1709 | _ACEOF | |
8934764e | 1710 | exit |
bf9f3bac | 1711 | fi |
8934764e | 1712 | cat >config.log <<_ACEOF |
bf9f3bac BB |
1713 | This file contains any messages produced by compilers while |
1714 | running configure, to aid debugging if configure makes a mistake. | |
1715 | ||
1716 | It was created by $as_me, which was | |
8934764e | 1717 | generated by GNU Autoconf 2.63. Invocation command line was |
bf9f3bac BB |
1718 | |
1719 | $ $0 $@ | |
1720 | ||
1721 | _ACEOF | |
8934764e | 1722 | exec 5>>config.log |
bf9f3bac BB |
1723 | { |
1724 | cat <<_ASUNAME | |
1725 | ## --------- ## | |
1726 | ## Platform. ## | |
1727 | ## --------- ## | |
1728 | ||
1729 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1730 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1731 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1732 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1733 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1734 | ||
1735 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1736 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1737 | ||
1738 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1739 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1740 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
8934764e | 1741 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
bf9f3bac BB |
1742 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1743 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1744 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1745 | ||
1746 | _ASUNAME | |
1747 | ||
1748 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1749 | for as_dir in $PATH | |
1750 | do | |
1751 | IFS=$as_save_IFS | |
1752 | test -z "$as_dir" && as_dir=. | |
8934764e | 1753 | $as_echo "PATH: $as_dir" |
bf9f3bac | 1754 | done |
8934764e | 1755 | IFS=$as_save_IFS |
bf9f3bac BB |
1756 | |
1757 | } >&5 | |
1758 | ||
1759 | cat >&5 <<_ACEOF | |
1760 | ||
1761 | ||
1762 | ## ----------- ## | |
1763 | ## Core tests. ## | |
1764 | ## ----------- ## | |
1765 | ||
1766 | _ACEOF | |
1767 | ||
1768 | ||
1769 | # Keep a trace of the command line. | |
1770 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1771 | # Strip out --silent because we don't want to record it for future runs. | |
1772 | # Also quote any args containing shell meta-characters. | |
1773 | # Make two passes to allow for proper duplicate-argument suppression. | |
1774 | ac_configure_args= | |
1775 | ac_configure_args0= | |
1776 | ac_configure_args1= | |
bf9f3bac BB |
1777 | ac_must_keep_next=false |
1778 | for ac_pass in 1 2 | |
1779 | do | |
1780 | for ac_arg | |
1781 | do | |
1782 | case $ac_arg in | |
1783 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1784 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1785 | | -silent | --silent | --silen | --sile | --sil) | |
1786 | continue ;; | |
8934764e BB |
1787 | *\'*) |
1788 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
bf9f3bac BB |
1789 | esac |
1790 | case $ac_pass in | |
1791 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1792 | 2) | |
1793 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1794 | if test $ac_must_keep_next = true; then | |
1795 | ac_must_keep_next=false # Got value, back to normal. | |
1796 | else | |
1797 | case $ac_arg in | |
1798 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1799 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1800 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1801 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1802 | case "$ac_configure_args0 " in | |
1803 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1804 | esac | |
1805 | ;; | |
1806 | -* ) ac_must_keep_next=true ;; | |
1807 | esac | |
1808 | fi | |
8934764e | 1809 | ac_configure_args="$ac_configure_args '$ac_arg'" |
bf9f3bac BB |
1810 | ;; |
1811 | esac | |
1812 | done | |
1813 | done | |
1814 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1815 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1816 | ||
1817 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1818 | # config.log. We remove comments because anyway the quotes in there | |
1819 | # would cause problems or look ugly. | |
8934764e BB |
1820 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1821 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
bf9f3bac BB |
1822 | trap 'exit_status=$? |
1823 | # Save into config.log some information that might help in debugging. | |
1824 | { | |
1825 | echo | |
1826 | ||
1827 | cat <<\_ASBOX | |
1828 | ## ---------------- ## | |
1829 | ## Cache variables. ## | |
1830 | ## ---------------- ## | |
1831 | _ASBOX | |
1832 | echo | |
1833 | # The following way of writing the cache mishandles newlines in values, | |
8934764e BB |
1834 | ( |
1835 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1836 | eval ac_val=\$$ac_var | |
1837 | case $ac_val in #( | |
1838 | *${as_nl}*) | |
1839 | case $ac_var in #( | |
1840 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 | |
1841 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
1842 | esac | |
1843 | case $ac_var in #( | |
1844 | _ | IFS | as_nl) ;; #( | |
1845 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
1846 | *) $as_unset $ac_var ;; | |
1847 | esac ;; | |
1848 | esac | |
1849 | done | |
bf9f3bac | 1850 | (set) 2>&1 | |
8934764e BB |
1851 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1852 | *${as_nl}ac_space=\ *) | |
bf9f3bac | 1853 | sed -n \ |
8934764e BB |
1854 | "s/'\''/'\''\\\\'\'''\''/g; |
1855 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1856 | ;; #( | |
bf9f3bac | 1857 | *) |
8934764e | 1858 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
bf9f3bac | 1859 | ;; |
8934764e BB |
1860 | esac | |
1861 | sort | |
1862 | ) | |
bf9f3bac BB |
1863 | echo |
1864 | ||
1865 | cat <<\_ASBOX | |
1866 | ## ----------------- ## | |
1867 | ## Output variables. ## | |
1868 | ## ----------------- ## | |
1869 | _ASBOX | |
1870 | echo | |
1871 | for ac_var in $ac_subst_vars | |
1872 | do | |
8934764e BB |
1873 | eval ac_val=\$$ac_var |
1874 | case $ac_val in | |
1875 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1876 | esac | |
1877 | $as_echo "$ac_var='\''$ac_val'\''" | |
bf9f3bac BB |
1878 | done | sort |
1879 | echo | |
1880 | ||
1881 | if test -n "$ac_subst_files"; then | |
1882 | cat <<\_ASBOX | |
8934764e BB |
1883 | ## ------------------- ## |
1884 | ## File substitutions. ## | |
1885 | ## ------------------- ## | |
bf9f3bac BB |
1886 | _ASBOX |
1887 | echo | |
1888 | for ac_var in $ac_subst_files | |
1889 | do | |
8934764e BB |
1890 | eval ac_val=\$$ac_var |
1891 | case $ac_val in | |
1892 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1893 | esac | |
1894 | $as_echo "$ac_var='\''$ac_val'\''" | |
bf9f3bac BB |
1895 | done | sort |
1896 | echo | |
1897 | fi | |
1898 | ||
1899 | if test -s confdefs.h; then | |
1900 | cat <<\_ASBOX | |
1901 | ## ----------- ## | |
1902 | ## confdefs.h. ## | |
1903 | ## ----------- ## | |
1904 | _ASBOX | |
1905 | echo | |
8934764e | 1906 | cat confdefs.h |
bf9f3bac BB |
1907 | echo |
1908 | fi | |
1909 | test "$ac_signal" != 0 && | |
8934764e BB |
1910 | $as_echo "$as_me: caught signal $ac_signal" |
1911 | $as_echo "$as_me: exit $exit_status" | |
bf9f3bac | 1912 | } >&5 |
8934764e BB |
1913 | rm -f core *.core core.conftest.* && |
1914 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
bf9f3bac | 1915 | exit $exit_status |
8934764e | 1916 | ' 0 |
bf9f3bac BB |
1917 | for ac_signal in 1 2 13 15; do |
1918 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1919 | done | |
1920 | ac_signal=0 | |
1921 | ||
1922 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
8934764e | 1923 | rm -f -r conftest* confdefs.h |
bf9f3bac BB |
1924 | |
1925 | # Predefined preprocessor variables. | |
1926 | ||
1927 | cat >>confdefs.h <<_ACEOF | |
1928 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1929 | _ACEOF | |
1930 | ||
1931 | ||
1932 | cat >>confdefs.h <<_ACEOF | |
1933 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1934 | _ACEOF | |
1935 | ||
1936 | ||
1937 | cat >>confdefs.h <<_ACEOF | |
1938 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1939 | _ACEOF | |
1940 | ||
1941 | ||
1942 | cat >>confdefs.h <<_ACEOF | |
1943 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1944 | _ACEOF | |
1945 | ||
1946 | ||
1947 | cat >>confdefs.h <<_ACEOF | |
1948 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1949 | _ACEOF | |
1950 | ||
1951 | ||
1952 | # Let the site file select an alternate cache file if it wants to. | |
8934764e BB |
1953 | # Prefer an explicitly selected file to automatically selected ones. |
1954 | ac_site_file1=NONE | |
1955 | ac_site_file2=NONE | |
1956 | if test -n "$CONFIG_SITE"; then | |
1957 | ac_site_file1=$CONFIG_SITE | |
1958 | elif test "x$prefix" != xNONE; then | |
1959 | ac_site_file1=$prefix/share/config.site | |
1960 | ac_site_file2=$prefix/etc/config.site | |
1961 | else | |
1962 | ac_site_file1=$ac_default_prefix/share/config.site | |
1963 | ac_site_file2=$ac_default_prefix/etc/config.site | |
1964 | fi | |
1965 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
1966 | do | |
1967 | test "x$ac_site_file" = xNONE && continue | |
bf9f3bac | 1968 | if test -r "$ac_site_file"; then |
8934764e BB |
1969 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1970 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
bf9f3bac BB |
1971 | sed 's/^/| /' "$ac_site_file" >&5 |
1972 | . "$ac_site_file" | |
1973 | fi | |
1974 | done | |
1975 | ||
1976 | if test -r "$cache_file"; then | |
1977 | # Some versions of bash will fail to source /dev/null (special | |
1978 | # files actually), so we avoid doing that. | |
1979 | if test -f "$cache_file"; then | |
8934764e BB |
1980 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1981 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
bf9f3bac | 1982 | case $cache_file in |
8934764e BB |
1983 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1984 | *) . "./$cache_file";; | |
bf9f3bac BB |
1985 | esac |
1986 | fi | |
1987 | else | |
8934764e BB |
1988 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1989 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
bf9f3bac BB |
1990 | >$cache_file |
1991 | fi | |
1992 | ||
1993 | # Check that the precious variables saved in the cache have kept the same | |
1994 | # value. | |
1995 | ac_cache_corrupted=false | |
8934764e | 1996 | for ac_var in $ac_precious_vars; do |
bf9f3bac BB |
1997 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1998 | eval ac_new_set=\$ac_env_${ac_var}_set | |
8934764e BB |
1999 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2000 | eval ac_new_val=\$ac_env_${ac_var}_value | |
bf9f3bac BB |
2001 | case $ac_old_set,$ac_new_set in |
2002 | set,) | |
8934764e BB |
2003 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2004 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
bf9f3bac BB |
2005 | ac_cache_corrupted=: ;; |
2006 | ,set) | |
8934764e BB |
2007 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
2008 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
bf9f3bac BB |
2009 | ac_cache_corrupted=: ;; |
2010 | ,);; | |
2011 | *) | |
2012 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
8934764e BB |
2013 | # differences in whitespace do not lead to failure. |
2014 | ac_old_val_w=`echo x $ac_old_val` | |
2015 | ac_new_val_w=`echo x $ac_new_val` | |
2016 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2017 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
2018 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2019 | ac_cache_corrupted=: | |
2020 | else | |
2021 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2022 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2023 | eval $ac_var=\$ac_old_val | |
2024 | fi | |
2025 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 | |
2026 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2027 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 | |
2028 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
bf9f3bac BB |
2029 | fi;; |
2030 | esac | |
2031 | # Pass precious variables to config.status. | |
2032 | if test "$ac_new_set" = set; then | |
2033 | case $ac_new_val in | |
8934764e | 2034 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
bf9f3bac BB |
2035 | *) ac_arg=$ac_var=$ac_new_val ;; |
2036 | esac | |
2037 | case " $ac_configure_args " in | |
2038 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2039 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
2040 | esac | |
2041 | fi | |
2042 | done | |
2043 | if $ac_cache_corrupted; then | |
8934764e BB |
2044 | { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2045 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2046 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
2047 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2048 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
2049 | $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
bf9f3bac BB |
2050 | { (exit 1); exit 1; }; } |
2051 | fi | |
2052 | ||
bf9f3bac BB |
2053 | |
2054 | ||
2055 | ||
2056 | ||
2057 | ||
2058 | ||
2059 | ||
2060 | ||
2061 | ||
2062 | ||
2063 | ||
2064 | ||
2065 | ||
2066 | ||
2067 | ||
2068 | ||
8934764e BB |
2069 | ac_ext=c |
2070 | ac_cpp='$CPP $CPPFLAGS' | |
2071 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2072 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2073 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
bf9f3bac BB |
2074 | |
2075 | ||
0c617c9a BB |
2076 | ac_ext=c |
2077 | ac_cpp='$CPP $CPPFLAGS' | |
2078 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2079 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2080 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2081 | ||
2082 | ||
8934764e BB |
2083 | { $as_echo "$as_me:$LINENO: checking metadata" >&5 |
2084 | $as_echo_n "checking metadata... " >&6; } | |
dd529a30 BB |
2085 | |
2086 | META="$srcdir/META" | |
2087 | _spl_ac_meta_got_file=no | |
2088 | if test -f "$META"; then | |
2089 | _spl_ac_meta_got_file=yes | |
2090 | ||
abc3ca14 | 2091 | SPL_META_NAME=`perl -n\ |
dd529a30 BB |
2092 | -e "BEGIN { \\$key=shift @ARGV; }"\ |
2093 | -e "next unless s/^\s*\\$key[:=]//i;"\ | |
2094 | -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\ | |
2095 | -e "s/^\s+//;"\ | |
2096 | -e "s/\s+$//;"\ | |
2097 | -e "s/^(['\"])(.*)\1/\\$2/;"\ | |
2098 | -e "\\$val=\\$_;"\ | |
2099 | -e "END { print \\$val if defined \\$val; }"\ | |
2100 | '(?:NAME|PROJECT|PACKAGE)' $META`; | |
abc3ca14 | 2101 | if test -n "$SPL_META_NAME"; then |
dd529a30 BB |
2102 | |
2103 | cat >>confdefs.h <<_ACEOF | |
abc3ca14 | 2104 | #define SPL_META_NAME "$SPL_META_NAME" |
dd529a30 BB |
2105 | _ACEOF |
2106 | ||
2107 | ||
2108 | fi | |
2109 | ||
abc3ca14 | 2110 | SPL_META_VERSION=`perl -n\ |
dd529a30 BB |
2111 | -e "BEGIN { \\$key=shift @ARGV; }"\ |
2112 | -e "next unless s/^\s*\\$key[:=]//i;"\ | |
2113 | -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\ | |
2114 | -e "s/^\s+//;"\ | |
2115 | -e "s/\s+$//;"\ | |
2116 | -e "s/^(['\"])(.*)\1/\\$2/;"\ | |
2117 | -e "\\$val=\\$_;"\ | |
2118 | -e "END { print \\$val if defined \\$val; }"\ | |
2119 | 'VERSION' $META`; | |
abc3ca14 | 2120 | if test -n "$SPL_META_VERSION"; then |
dd529a30 BB |
2121 | |
2122 | cat >>confdefs.h <<_ACEOF | |
abc3ca14 | 2123 | #define SPL_META_VERSION "$SPL_META_VERSION" |
dd529a30 BB |
2124 | _ACEOF |
2125 | ||
2126 | ||
2127 | fi | |
2128 | ||
abc3ca14 | 2129 | SPL_META_RELEASE=`perl -n\ |
dd529a30 BB |
2130 | -e "BEGIN { \\$key=shift @ARGV; }"\ |
2131 | -e "next unless s/^\s*\\$key[:=]//i;"\ | |
2132 | -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\ | |
2133 | -e "s/^\s+//;"\ | |
2134 | -e "s/\s+$//;"\ | |
2135 | -e "s/^(['\"])(.*)\1/\\$2/;"\ | |
2136 | -e "\\$val=\\$_;"\ | |
2137 | -e "END { print \\$val if defined \\$val; }"\ | |
2138 | 'RELEASE' $META`; | |
abc3ca14 | 2139 | if test -n "$SPL_META_RELEASE"; then |
dd529a30 BB |
2140 | |
2141 | cat >>confdefs.h <<_ACEOF | |
abc3ca14 | 2142 | #define SPL_META_RELEASE "$SPL_META_RELEASE" |
dd529a30 BB |
2143 | _ACEOF |
2144 | ||
2145 | ||
2146 | fi | |
2147 | ||
abc3ca14 | 2148 | if test -n "$SPL_META_NAME" -a -n "$SPL_META_VERSION"; then |
72e7de60 | 2149 | SPL_META_ALIAS="$SPL_META_NAME-$SPL_META_VERSION" |
abc3ca14 | 2150 | test -n "$SPL_META_RELEASE" && |
72e7de60 | 2151 | SPL_META_ALIAS="$SPL_META_ALIAS-$SPL_META_RELEASE" |
dd529a30 BB |
2152 | |
2153 | cat >>confdefs.h <<_ACEOF | |
72e7de60 | 2154 | #define SPL_META_ALIAS "$SPL_META_ALIAS" |
dd529a30 BB |
2155 | _ACEOF |
2156 | ||
2157 | ||
2158 | fi | |
2159 | ||
abc3ca14 | 2160 | SPL_META_DATA=`perl -n\ |
dd529a30 BB |
2161 | -e "BEGIN { \\$key=shift @ARGV; }"\ |
2162 | -e "next unless s/^\s*\\$key[:=]//i;"\ | |
2163 | -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\ | |
2164 | -e "s/^\s+//;"\ | |
2165 | -e "s/\s+$//;"\ | |
2166 | -e "s/^(['\"])(.*)\1/\\$2/;"\ | |
2167 | -e "\\$val=\\$_;"\ | |
2168 | -e "END { print \\$val if defined \\$val; }"\ | |
2169 | 'DATE' $META`; | |
abc3ca14 | 2170 | if test -n "$SPL_META_DATA"; then |
dd529a30 BB |
2171 | |
2172 | cat >>confdefs.h <<_ACEOF | |
abc3ca14 | 2173 | #define SPL_META_DATA "$SPL_META_DATA" |
dd529a30 BB |
2174 | _ACEOF |
2175 | ||
2176 | ||
2177 | fi | |
2178 | ||
abc3ca14 | 2179 | SPL_META_AUTHOR=`perl -n\ |
dd529a30 BB |
2180 | -e "BEGIN { \\$key=shift @ARGV; }"\ |
2181 | -e "next unless s/^\s*\\$key[:=]//i;"\ | |
2182 | -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\ | |
2183 | -e "s/^\s+//;"\ | |
2184 | -e "s/\s+$//;"\ | |
2185 | -e "s/^(['\"])(.*)\1/\\$2/;"\ | |
2186 | -e "\\$val=\\$_;"\ | |
2187 | -e "END { print \\$val if defined \\$val; }"\ | |
2188 | 'AUTHOR' $META`; | |
abc3ca14 | 2189 | if test -n "$SPL_META_AUTHOR"; then |
dd529a30 BB |
2190 | |
2191 | cat >>confdefs.h <<_ACEOF | |
abc3ca14 | 2192 | #define SPL_META_AUTHOR "$SPL_META_AUTHOR" |
dd529a30 BB |
2193 | _ACEOF |
2194 | ||
2195 | ||
2196 | fi | |
2197 | ||
2198 | ||
abc3ca14 | 2199 | SPL_META_LT_CURRENT=`perl -n\ |
dd529a30 BB |
2200 | -e "BEGIN { \\$key=shift @ARGV; }"\ |
2201 | -e "next unless s/^\s*\\$key[:=]//i;"\ | |
2202 | -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\ | |
2203 | -e "s/^\s+//;"\ | |
2204 | -e "s/\s+$//;"\ | |
2205 | -e "s/^(['\"])(.*)\1/\\$2/;"\ | |
2206 | -e "\\$val=\\$_;"\ | |
2207 | -e "END { print \\$val if defined \\$val; }"\ | |
2208 | 'LT_CURRENT' $META`; | |
abc3ca14 | 2209 | SPL_META_LT_REVISION=`perl -n\ |
dd529a30 BB |
2210 | -e "BEGIN { \\$key=shift @ARGV; }"\ |
2211 | -e "next unless s/^\s*\\$key[:=]//i;"\ | |
2212 | -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\ | |
2213 | -e "s/^\s+//;"\ | |
2214 | -e "s/\s+$//;"\ | |
2215 | -e "s/^(['\"])(.*)\1/\\$2/;"\ | |
2216 | -e "\\$val=\\$_;"\ | |
2217 | -e "END { print \\$val if defined \\$val; }"\ | |
2218 | 'LT_REVISION' $META`; | |
abc3ca14 | 2219 | SPL_META_LT_AGE=`perl -n\ |
dd529a30 BB |
2220 | -e "BEGIN { \\$key=shift @ARGV; }"\ |
2221 | -e "next unless s/^\s*\\$key[:=]//i;"\ | |
2222 | -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\ | |
2223 | -e "s/^\s+//;"\ | |
2224 | -e "s/\s+$//;"\ | |
2225 | -e "s/^(['\"])(.*)\1/\\$2/;"\ | |
2226 | -e "\\$val=\\$_;"\ | |
2227 | -e "END { print \\$val if defined \\$val; }"\ | |
2228 | 'LT_AGE' $META`; | |
abc3ca14 BB |
2229 | if test -n "$SPL_META_LT_CURRENT" \ |
2230 | -o -n "$SPL_META_LT_REVISION" \ | |
2231 | -o -n "$SPL_META_LT_AGE"; then | |
2232 | test -n "$SPL_META_LT_CURRENT" || SPL_META_LT_CURRENT="0" | |
2233 | test -n "$SPL_META_LT_REVISION" || SPL_META_LT_REVISION="0" | |
2234 | test -n "$SPL_META_LT_AGE" || SPL_META_LT_AGE="0" | |
dd529a30 BB |
2235 | |
2236 | cat >>confdefs.h <<_ACEOF | |
abc3ca14 | 2237 | #define SPL_META_LT_CURRENT "$SPL_META_LT_CURRENT" |
dd529a30 BB |
2238 | _ACEOF |
2239 | ||
2240 | ||
2241 | cat >>confdefs.h <<_ACEOF | |
abc3ca14 | 2242 | #define SPL_META_LT_REVISION "$SPL_META_LT_REVISION" |
dd529a30 BB |
2243 | _ACEOF |
2244 | ||
2245 | ||
2246 | cat >>confdefs.h <<_ACEOF | |
abc3ca14 | 2247 | #define SPL_META_LT_AGE "$SPL_META_LT_AGE" |
dd529a30 BB |
2248 | _ACEOF |
2249 | ||
2250 | ||
2251 | ||
2252 | ||
2253 | fi | |
2254 | fi | |
2255 | ||
8934764e BB |
2256 | { $as_echo "$as_me:$LINENO: result: $_spl_ac_meta_got_file" >&5 |
2257 | $as_echo "$_spl_ac_meta_got_file" >&6; } | |
dd529a30 BB |
2258 | |
2259 | ||
bf9f3bac | 2260 | ac_aux_dir= |
8934764e BB |
2261 | for ac_dir in config "$srcdir"/config; do |
2262 | if test -f "$ac_dir/install-sh"; then | |
bf9f3bac BB |
2263 | ac_aux_dir=$ac_dir |
2264 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2265 | break | |
8934764e | 2266 | elif test -f "$ac_dir/install.sh"; then |
bf9f3bac BB |
2267 | ac_aux_dir=$ac_dir |
2268 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2269 | break | |
8934764e | 2270 | elif test -f "$ac_dir/shtool"; then |
bf9f3bac BB |
2271 | ac_aux_dir=$ac_dir |
2272 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2273 | break | |
2274 | fi | |
2275 | done | |
2276 | if test -z "$ac_aux_dir"; then | |
8934764e BB |
2277 | { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5 |
2278 | $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;} | |
bf9f3bac BB |
2279 | { (exit 1); exit 1; }; } |
2280 | fi | |
8934764e BB |
2281 | |
2282 | # These three variables are undocumented and unsupported, | |
2283 | # and are intended to be withdrawn in a future Autoconf release. | |
2284 | # They can cause serious problems if a builder's source tree is in a directory | |
2285 | # whose full name contains unusual characters. | |
2286 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2287 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2288 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2289 | ||
bf9f3bac BB |
2290 | |
2291 | # Make sure we can run config.sub. | |
8934764e BB |
2292 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
2293 | { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 | |
2294 | $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
bf9f3bac BB |
2295 | { (exit 1); exit 1; }; } |
2296 | ||
8934764e BB |
2297 | { $as_echo "$as_me:$LINENO: checking build system type" >&5 |
2298 | $as_echo_n "checking build system type... " >&6; } | |
bf9f3bac | 2299 | if test "${ac_cv_build+set}" = set; then |
8934764e BB |
2300 | $as_echo_n "(cached) " >&6 |
2301 | else | |
2302 | ac_build_alias=$build_alias | |
2303 | test "x$ac_build_alias" = x && | |
2304 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2305 | test "x$ac_build_alias" = x && | |
2306 | { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
2307 | $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
bf9f3bac | 2308 | { (exit 1); exit 1; }; } |
8934764e BB |
2309 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
2310 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 | |
2311 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
bf9f3bac BB |
2312 | { (exit 1); exit 1; }; } |
2313 | ||
2314 | fi | |
8934764e BB |
2315 | { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
2316 | $as_echo "$ac_cv_build" >&6; } | |
2317 | case $ac_cv_build in | |
2318 | *-*-*) ;; | |
2319 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 | |
2320 | $as_echo "$as_me: error: invalid value of canonical build" >&2;} | |
2321 | { (exit 1); exit 1; }; };; | |
2322 | esac | |
bf9f3bac | 2323 | build=$ac_cv_build |
8934764e BB |
2324 | ac_save_IFS=$IFS; IFS='-' |
2325 | set x $ac_cv_build | |
2326 | shift | |
2327 | build_cpu=$1 | |
2328 | build_vendor=$2 | |
2329 | shift; shift | |
2330 | # Remember, the first character of IFS is used to create $*, | |
2331 | # except with old shells: | |
2332 | build_os=$* | |
2333 | IFS=$ac_save_IFS | |
2334 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2335 | ||
2336 | ||
2337 | { $as_echo "$as_me:$LINENO: checking host system type" >&5 | |
2338 | $as_echo_n "checking host system type... " >&6; } | |
bf9f3bac | 2339 | if test "${ac_cv_host+set}" = set; then |
8934764e BB |
2340 | $as_echo_n "(cached) " >&6 |
2341 | else | |
2342 | if test "x$host_alias" = x; then | |
2343 | ac_cv_host=$ac_cv_build | |
2344 | else | |
2345 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2346 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 | |
2347 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
bf9f3bac | 2348 | { (exit 1); exit 1; }; } |
8934764e | 2349 | fi |
bf9f3bac BB |
2350 | |
2351 | fi | |
8934764e BB |
2352 | { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
2353 | $as_echo "$ac_cv_host" >&6; } | |
2354 | case $ac_cv_host in | |
2355 | *-*-*) ;; | |
2356 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 | |
2357 | $as_echo "$as_me: error: invalid value of canonical host" >&2;} | |
2358 | { (exit 1); exit 1; }; };; | |
2359 | esac | |
bf9f3bac | 2360 | host=$ac_cv_host |
8934764e BB |
2361 | ac_save_IFS=$IFS; IFS='-' |
2362 | set x $ac_cv_host | |
2363 | shift | |
2364 | host_cpu=$1 | |
2365 | host_vendor=$2 | |
2366 | shift; shift | |
2367 | # Remember, the first character of IFS is used to create $*, | |
2368 | # except with old shells: | |
2369 | host_os=$* | |
2370 | IFS=$ac_save_IFS | |
2371 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2372 | ||
2373 | ||
2374 | { $as_echo "$as_me:$LINENO: checking target system type" >&5 | |
2375 | $as_echo_n "checking target system type... " >&6; } | |
bf9f3bac | 2376 | if test "${ac_cv_target+set}" = set; then |
8934764e BB |
2377 | $as_echo_n "(cached) " >&6 |
2378 | else | |
2379 | if test "x$target_alias" = x; then | |
2380 | ac_cv_target=$ac_cv_host | |
2381 | else | |
2382 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2383 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 | |
2384 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} | |
bf9f3bac | 2385 | { (exit 1); exit 1; }; } |
8934764e | 2386 | fi |
bf9f3bac BB |
2387 | |
2388 | fi | |
8934764e BB |
2389 | { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
2390 | $as_echo "$ac_cv_target" >&6; } | |
2391 | case $ac_cv_target in | |
2392 | *-*-*) ;; | |
2393 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 | |
2394 | $as_echo "$as_me: error: invalid value of canonical target" >&2;} | |
2395 | { (exit 1); exit 1; }; };; | |
2396 | esac | |
bf9f3bac | 2397 | target=$ac_cv_target |
8934764e BB |
2398 | ac_save_IFS=$IFS; IFS='-' |
2399 | set x $ac_cv_target | |
2400 | shift | |
2401 | target_cpu=$1 | |
2402 | target_vendor=$2 | |
2403 | shift; shift | |
2404 | # Remember, the first character of IFS is used to create $*, | |
2405 | # except with old shells: | |
2406 | target_os=$* | |
2407 | IFS=$ac_save_IFS | |
2408 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
bf9f3bac BB |
2409 | |
2410 | ||
2411 | # The aliases save the names the user supplied, while $host etc. | |
2412 | # will get canonicalized. | |
2413 | test -n "$target_alias" && | |
2414 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2415 | NONENONEs,x,x, && | |
2416 | program_prefix=${target_alias}- | |
8934764e BB |
2417 | |
2418 | { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
2419 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
2420 | # Check whether --enable-maintainer-mode was given. | |
16b719f0 | 2421 | if test "${enable_maintainer_mode+set}" = set; then |
8934764e | 2422 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
16b719f0 BB |
2423 | else |
2424 | USE_MAINTAINER_MODE=no | |
8934764e | 2425 | fi |
16b719f0 | 2426 | |
8934764e BB |
2427 | { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 |
2428 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
2429 | if test $USE_MAINTAINER_MODE = yes; then | |
16b719f0 BB |
2430 | MAINTAINER_MODE_TRUE= |
2431 | MAINTAINER_MODE_FALSE='#' | |
2432 | else | |
2433 | MAINTAINER_MODE_TRUE='#' | |
2434 | MAINTAINER_MODE_FALSE= | |
2435 | fi | |
2436 | ||
2437 | MAINT=$MAINTAINER_MODE_TRUE | |
2438 | ||
2439 | ||
8934764e BB |
2440 | # Check whether --enable-silent-rules was given. |
2441 | if test "${enable_silent_rules+set}" = set; then | |
2442 | enableval=$enable_silent_rules; | |
2443 | fi | |
2444 | ||
2445 | case $enable_silent_rules in | |
2446 | yes) AM_DEFAULT_VERBOSITY=0;; | |
2447 | no) AM_DEFAULT_VERBOSITY=1;; | |
2448 | *) AM_DEFAULT_VERBOSITY=1;; | |
2449 | esac | |
2450 | AM_BACKSLASH='\' | |
2451 | ||
2452 | am__api_version='1.11' | |
2453 | ||
bf9f3bac BB |
2454 | # Find a good install program. We prefer a C program (faster), |
2455 | # so one script is as good as another. But avoid the broken or | |
2456 | # incompatible versions: | |
2457 | # SysV /etc/install, /usr/sbin/install | |
2458 | # SunOS /usr/etc/install | |
2459 | # IRIX /sbin/install | |
2460 | # AIX /bin/install | |
2461 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2462 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2463 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2464 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2465 | # OS/2's system install, which has a completely different semantic | |
2466 | # ./install, which can be erroneously created by make from ./install.sh. | |
8934764e BB |
2467 | # Reject install programs that cannot install multiple files. |
2468 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
2469 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
bf9f3bac BB |
2470 | if test -z "$INSTALL"; then |
2471 | if test "${ac_cv_path_install+set}" = set; then | |
8934764e | 2472 | $as_echo_n "(cached) " >&6 |
bf9f3bac BB |
2473 | else |
2474 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2475 | for as_dir in $PATH | |
2476 | do | |
2477 | IFS=$as_save_IFS | |
2478 | test -z "$as_dir" && as_dir=. | |
2479 | # Account for people who put trailing slashes in PATH elements. | |
2480 | case $as_dir/ in | |
2481 | ./ | .// | /cC/* | \ | |
2482 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2483 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
2484 | /usr/ucb/* ) ;; | |
2485 | *) | |
2486 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2487 | # Don't use installbsd from OSF since it installs stuff as root | |
2488 | # by default. | |
2489 | for ac_prog in ginstall scoinst install; do | |
2490 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8934764e | 2491 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
bf9f3bac BB |
2492 | if test $ac_prog = install && |
2493 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2494 | # AIX install. It has an incompatible calling convention. | |
2495 | : | |
2496 | elif test $ac_prog = install && | |
2497 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2498 | # program-specific install script used by HP pwplus--don't use. | |
2499 | : | |
2500 | else | |
8934764e BB |
2501 | rm -rf conftest.one conftest.two conftest.dir |
2502 | echo one > conftest.one | |
2503 | echo two > conftest.two | |
2504 | mkdir conftest.dir | |
2505 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2506 | test -s conftest.one && test -s conftest.two && | |
2507 | test -s conftest.dir/conftest.one && | |
2508 | test -s conftest.dir/conftest.two | |
2509 | then | |
2510 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2511 | break 3 | |
2512 | fi | |
bf9f3bac BB |
2513 | fi |
2514 | fi | |
2515 | done | |
2516 | done | |
2517 | ;; | |
2518 | esac | |
8934764e | 2519 | |
bf9f3bac | 2520 | done |
8934764e | 2521 | IFS=$as_save_IFS |
bf9f3bac | 2522 | |
8934764e | 2523 | rm -rf conftest.one conftest.two conftest.dir |
bf9f3bac BB |
2524 | |
2525 | fi | |
2526 | if test "${ac_cv_path_install+set}" = set; then | |
2527 | INSTALL=$ac_cv_path_install | |
2528 | else | |
8934764e BB |
2529 | # As a last resort, use the slow shell script. Don't cache a |
2530 | # value for INSTALL within a source directory, because that will | |
bf9f3bac | 2531 | # break other packages using the cache if that directory is |
8934764e | 2532 | # removed, or if the value is a relative name. |
bf9f3bac BB |
2533 | INSTALL=$ac_install_sh |
2534 | fi | |
2535 | fi | |
8934764e BB |
2536 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2537 | $as_echo "$INSTALL" >&6; } | |
bf9f3bac BB |
2538 | |
2539 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2540 | # It thinks the first close brace ends the variable substitution. | |
2541 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2542 | ||
2543 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2544 | ||
2545 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2546 | ||
8934764e BB |
2547 | { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
2548 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
bf9f3bac BB |
2549 | # Just in case |
2550 | sleep 1 | |
2551 | echo timestamp > conftest.file | |
8934764e BB |
2552 | # Reject unsafe characters in $srcdir or the absolute working directory |
2553 | # name. Accept space and tab only in the latter. | |
2554 | am_lf=' | |
2555 | ' | |
2556 | case `pwd` in | |
2557 | *[\\\"\#\$\&\'\`$am_lf]*) | |
2558 | { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5 | |
2559 | $as_echo "$as_me: error: unsafe absolute working directory name" >&2;} | |
2560 | { (exit 1); exit 1; }; };; | |
2561 | esac | |
2562 | case $srcdir in | |
2563 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
2564 | { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5 | |
2565 | $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;} | |
2566 | { (exit 1); exit 1; }; };; | |
2567 | esac | |
2568 | ||
bf9f3bac BB |
2569 | # Do `set' in a subshell so we don't clobber the current shell's |
2570 | # arguments. Must try -L first in case configure is actually a | |
2571 | # symlink; some systems play weird games with the mod time of symlinks | |
2572 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2573 | # directory). | |
2574 | if ( | |
8934764e | 2575 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
bf9f3bac BB |
2576 | if test "$*" = "X"; then |
2577 | # -L didn't work. | |
8934764e | 2578 | set X `ls -t "$srcdir/configure" conftest.file` |
bf9f3bac BB |
2579 | fi |
2580 | rm -f conftest.file | |
2581 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2582 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2583 | ||
2584 | # If neither matched, then we have a broken ls. This can happen | |
2585 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2586 | # broken ls alias from the environment. This has actually | |
2587 | # happened. Such a system could not be considered "sane". | |
8934764e | 2588 | { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
bf9f3bac | 2589 | alias in your environment" >&5 |
8934764e | 2590 | $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
bf9f3bac BB |
2591 | alias in your environment" >&2;} |
2592 | { (exit 1); exit 1; }; } | |
2593 | fi | |
2594 | ||
2595 | test "$2" = conftest.file | |
2596 | ) | |
2597 | then | |
2598 | # Ok. | |
2599 | : | |
2600 | else | |
8934764e | 2601 | { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
bf9f3bac | 2602 | Check your system clock" >&5 |
8934764e | 2603 | $as_echo "$as_me: error: newly created file is older than distributed files! |
bf9f3bac BB |
2604 | Check your system clock" >&2;} |
2605 | { (exit 1); exit 1; }; } | |
2606 | fi | |
8934764e BB |
2607 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
2608 | $as_echo "yes" >&6; } | |
bf9f3bac | 2609 | test "$program_prefix" != NONE && |
8934764e | 2610 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
bf9f3bac BB |
2611 | # Use a double $ so make ignores it. |
2612 | test "$program_suffix" != NONE && | |
8934764e BB |
2613 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2614 | # Double any \ or $. | |
bf9f3bac | 2615 | # By default was `s,x,x', remove it if useless. |
8934764e BB |
2616 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2617 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
bf9f3bac BB |
2618 | |
2619 | # expand $ac_aux_dir to an absolute path | |
2620 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2621 | ||
8934764e BB |
2622 | if test x"${MISSING+set}" != xset; then |
2623 | case $am_aux_dir in | |
2624 | *\ * | *\ *) | |
2625 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2626 | *) | |
2627 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2628 | esac | |
2629 | fi | |
bf9f3bac BB |
2630 | # Use eval to expand $SHELL |
2631 | if eval "$MISSING --run true"; then | |
2632 | am_missing_run="$MISSING --run " | |
2633 | else | |
2634 | am_missing_run= | |
8934764e BB |
2635 | { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
2636 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
2637 | fi | |
2638 | ||
2639 | if test x"${install_sh}" != xset; then | |
2640 | case $am_aux_dir in | |
2641 | *\ * | *\ *) | |
2642 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2643 | *) | |
2644 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2645 | esac | |
2646 | fi | |
2647 | ||
2648 | # Installed binaries are usually stripped using `strip' when the user | |
2649 | # run `make install-strip'. However `strip' might not be the right | |
2650 | # tool to use in cross-compilation environments, therefore Automake | |
2651 | # will honor the `STRIP' environment variable to overrule this program. | |
2652 | if test "$cross_compiling" != no; then | |
2653 | if test -n "$ac_tool_prefix"; then | |
2654 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2655 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2656 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2657 | $as_echo_n "checking for $ac_word... " >&6; } | |
2658 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
2659 | $as_echo_n "(cached) " >&6 | |
2660 | else | |
2661 | if test -n "$STRIP"; then | |
2662 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2663 | else | |
2664 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2665 | for as_dir in $PATH | |
2666 | do | |
2667 | IFS=$as_save_IFS | |
2668 | test -z "$as_dir" && as_dir=. | |
2669 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2670 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2671 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2672 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2673 | break 2 | |
2674 | fi | |
2675 | done | |
2676 | done | |
2677 | IFS=$as_save_IFS | |
2678 | ||
2679 | fi | |
2680 | fi | |
2681 | STRIP=$ac_cv_prog_STRIP | |
2682 | if test -n "$STRIP"; then | |
2683 | { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 | |
2684 | $as_echo "$STRIP" >&6; } | |
2685 | else | |
2686 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
2687 | $as_echo "no" >&6; } | |
2688 | fi | |
2689 | ||
2690 | ||
2691 | fi | |
2692 | if test -z "$ac_cv_prog_STRIP"; then | |
2693 | ac_ct_STRIP=$STRIP | |
2694 | # Extract the first word of "strip", so it can be a program name with args. | |
2695 | set dummy strip; ac_word=$2 | |
2696 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2697 | $as_echo_n "checking for $ac_word... " >&6; } | |
2698 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
2699 | $as_echo_n "(cached) " >&6 | |
2700 | else | |
2701 | if test -n "$ac_ct_STRIP"; then | |
2702 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2703 | else | |
2704 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2705 | for as_dir in $PATH | |
2706 | do | |
2707 | IFS=$as_save_IFS | |
2708 | test -z "$as_dir" && as_dir=. | |
2709 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2710 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2711 | ac_cv_prog_ac_ct_STRIP="strip" | |
2712 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2713 | break 2 | |
2714 | fi | |
2715 | done | |
2716 | done | |
2717 | IFS=$as_save_IFS | |
2718 | ||
2719 | fi | |
2720 | fi | |
2721 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2722 | if test -n "$ac_ct_STRIP"; then | |
2723 | { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
2724 | $as_echo "$ac_ct_STRIP" >&6; } | |
2725 | else | |
2726 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
2727 | $as_echo "no" >&6; } | |
2728 | fi | |
2729 | ||
2730 | if test "x$ac_ct_STRIP" = x; then | |
2731 | STRIP=":" | |
2732 | else | |
2733 | case $cross_compiling:$ac_tool_warned in | |
2734 | yes:) | |
2735 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2736 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2737 | ac_tool_warned=yes ;; | |
2738 | esac | |
2739 | STRIP=$ac_ct_STRIP | |
2740 | fi | |
2741 | else | |
2742 | STRIP="$ac_cv_prog_STRIP" | |
2743 | fi | |
2744 | ||
2745 | fi | |
2746 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
2747 | ||
2748 | { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 | |
2749 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
2750 | if test -z "$MKDIR_P"; then | |
2751 | if test "${ac_cv_path_mkdir+set}" = set; then | |
2752 | $as_echo_n "(cached) " >&6 | |
2753 | else | |
2754 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2755 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2756 | do | |
2757 | IFS=$as_save_IFS | |
2758 | test -z "$as_dir" && as_dir=. | |
2759 | for ac_prog in mkdir gmkdir; do | |
2760 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2761 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
2762 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
2763 | 'mkdir (GNU coreutils) '* | \ | |
2764 | 'mkdir (coreutils) '* | \ | |
2765 | 'mkdir (fileutils) '4.1*) | |
2766 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2767 | break 3;; | |
2768 | esac | |
2769 | done | |
2770 | done | |
2771 | done | |
2772 | IFS=$as_save_IFS | |
2773 | ||
2774 | fi | |
2775 | ||
2776 | if test "${ac_cv_path_mkdir+set}" = set; then | |
2777 | MKDIR_P="$ac_cv_path_mkdir -p" | |
bf9f3bac | 2778 | else |
8934764e BB |
2779 | # As a last resort, use the slow shell script. Don't cache a |
2780 | # value for MKDIR_P within a source directory, because that will | |
2781 | # break other packages using the cache if that directory is | |
2782 | # removed, or if the value is a relative name. | |
2783 | test -d ./--version && rmdir ./--version | |
2784 | MKDIR_P="$ac_install_sh -d" | |
bf9f3bac BB |
2785 | fi |
2786 | fi | |
8934764e BB |
2787 | { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 |
2788 | $as_echo "$MKDIR_P" >&6; } | |
2789 | ||
2790 | mkdir_p="$MKDIR_P" | |
2791 | case $mkdir_p in | |
2792 | [\\/$]* | ?:[\\/]*) ;; | |
2793 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
2794 | esac | |
bf9f3bac BB |
2795 | |
2796 | for ac_prog in gawk mawk nawk awk | |
2797 | do | |
2798 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2799 | set dummy $ac_prog; ac_word=$2 | |
8934764e BB |
2800 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2801 | $as_echo_n "checking for $ac_word... " >&6; } | |
bf9f3bac | 2802 | if test "${ac_cv_prog_AWK+set}" = set; then |
8934764e | 2803 | $as_echo_n "(cached) " >&6 |
bf9f3bac BB |
2804 | else |
2805 | if test -n "$AWK"; then | |
2806 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2807 | else | |
2808 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2809 | for as_dir in $PATH | |
2810 | do | |
2811 | IFS=$as_save_IFS | |
2812 | test -z "$as_dir" && as_dir=. | |
2813 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8934764e | 2814 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
bf9f3bac | 2815 | ac_cv_prog_AWK="$ac_prog" |
8934764e | 2816 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bf9f3bac BB |
2817 | break 2 |
2818 | fi | |
2819 | done | |
2820 | done | |
8934764e | 2821 | IFS=$as_save_IFS |
bf9f3bac BB |
2822 | |
2823 | fi | |
2824 | fi | |
2825 | AWK=$ac_cv_prog_AWK | |
2826 | if test -n "$AWK"; then | |
8934764e BB |
2827 | { $as_echo "$as_me:$LINENO: result: $AWK" >&5 |
2828 | $as_echo "$AWK" >&6; } | |
bf9f3bac | 2829 | else |
8934764e BB |
2830 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2831 | $as_echo "no" >&6; } | |
bf9f3bac BB |
2832 | fi |
2833 | ||
8934764e | 2834 | |
bf9f3bac BB |
2835 | test -n "$AWK" && break |
2836 | done | |
2837 | ||
8934764e BB |
2838 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2839 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
2840 | set x ${MAKE-make} | |
2841 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
2842 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then | |
2843 | $as_echo_n "(cached) " >&6 | |
bf9f3bac BB |
2844 | else |
2845 | cat >conftest.make <<\_ACEOF | |
8934764e | 2846 | SHELL = /bin/sh |
bf9f3bac | 2847 | all: |
8934764e | 2848 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
bf9f3bac BB |
2849 | _ACEOF |
2850 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
8934764e BB |
2851 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2852 | *@@@%%%=?*=@@@%%%*) | |
2853 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2854 | *) | |
2855 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2856 | esac | |
bf9f3bac BB |
2857 | rm -f conftest.make |
2858 | fi | |
8934764e BB |
2859 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
2860 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
2861 | $as_echo "yes" >&6; } | |
bf9f3bac BB |
2862 | SET_MAKE= |
2863 | else | |
8934764e BB |
2864 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2865 | $as_echo "no" >&6; } | |
bf9f3bac BB |
2866 | SET_MAKE="MAKE=${MAKE-make}" |
2867 | fi | |
2868 | ||
2869 | rm -rf .tst 2>/dev/null | |
2870 | mkdir .tst 2>/dev/null | |
2871 | if test -d .tst; then | |
2872 | am__leading_dot=. | |
2873 | else | |
2874 | am__leading_dot=_ | |
2875 | fi | |
2876 | rmdir .tst 2>/dev/null | |
2877 | ||
8934764e BB |
2878 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
2879 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
2880 | # is not polluted with repeated "-I." | |
2881 | am__isrc=' -I$(srcdir)' | |
2882 | # test to see if srcdir already configured | |
2883 | if test -f $srcdir/config.status; then | |
2884 | { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | |
2885 | $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
bf9f3bac | 2886 | { (exit 1); exit 1; }; } |
8934764e | 2887 | fi |
bf9f3bac BB |
2888 | fi |
2889 | ||
2890 | # test whether we have cygpath | |
2891 | if test -z "$CYGPATH_W"; then | |
2892 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2893 | CYGPATH_W='cygpath -w' | |
2894 | else | |
2895 | CYGPATH_W=echo | |
2896 | fi | |
2897 | fi | |
2898 | ||
2899 | ||
2900 | # Define the identity of the package. | |
abc3ca14 BB |
2901 | PACKAGE=$SPL_META_NAME |
2902 | VERSION=$SPL_META_VERSION | |
bf9f3bac BB |
2903 | |
2904 | ||
2905 | cat >>confdefs.h <<_ACEOF | |
2906 | #define PACKAGE "$PACKAGE" | |
2907 | _ACEOF | |
2908 | ||
2909 | ||
2910 | cat >>confdefs.h <<_ACEOF | |
2911 | #define VERSION "$VERSION" | |
2912 | _ACEOF | |
2913 | ||
2914 | # Some tools Automake needs. | |
2915 | ||
2916 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2917 | ||
2918 | ||
2919 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2920 | ||
2921 | ||
2922 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2923 | ||
2924 | ||
2925 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2926 | ||
2927 | ||
2928 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2929 | ||
bf9f3bac BB |
2930 | # We need awk for the "check" target. The system "awk" is bad on |
2931 | # some platforms. | |
2932 | # Always define AMTAR for backward compatibility. | |
2933 | ||
2934 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
2935 | ||
2936 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
2937 | ||
2938 | ||
2939 | ||
2940 | ||
2941 | ||
8934764e | 2942 | ac_config_headers="$ac_config_headers spl_config.h" |
bf9f3bac | 2943 | |
0cbaeb11 | 2944 | |
bf9f3bac BB |
2945 | # Find a good install program. We prefer a C program (faster), |
2946 | # so one script is as good as another. But avoid the broken or | |
2947 | # incompatible versions: | |
2948 | # SysV /etc/install, /usr/sbin/install | |
2949 | # SunOS /usr/etc/install | |
2950 | # IRIX /sbin/install | |
2951 | # AIX /bin/install | |
2952 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2953 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2954 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2955 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2956 | # OS/2's system install, which has a completely different semantic | |
2957 | # ./install, which can be erroneously created by make from ./install.sh. | |
8934764e BB |
2958 | # Reject install programs that cannot install multiple files. |
2959 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
2960 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
bf9f3bac BB |
2961 | if test -z "$INSTALL"; then |
2962 | if test "${ac_cv_path_install+set}" = set; then | |
8934764e | 2963 | $as_echo_n "(cached) " >&6 |
bf9f3bac BB |
2964 | else |
2965 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2966 | for as_dir in $PATH | |
2967 | do | |
2968 | IFS=$as_save_IFS | |
2969 | test -z "$as_dir" && as_dir=. | |
2970 | # Account for people who put trailing slashes in PATH elements. | |
2971 | case $as_dir/ in | |
2972 | ./ | .// | /cC/* | \ | |
2973 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2974 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
2975 | /usr/ucb/* ) ;; | |
2976 | *) | |
2977 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2978 | # Don't use installbsd from OSF since it installs stuff as root | |
2979 | # by default. | |
2980 | for ac_prog in ginstall scoinst install; do | |
2981 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8934764e | 2982 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
bf9f3bac BB |
2983 | if test $ac_prog = install && |
2984 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2985 | # AIX install. It has an incompatible calling convention. | |
2986 | : | |
2987 | elif test $ac_prog = install && | |
2988 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2989 | # program-specific install script used by HP pwplus--don't use. | |
2990 | : | |
2991 | else | |
8934764e BB |
2992 | rm -rf conftest.one conftest.two conftest.dir |
2993 | echo one > conftest.one | |
2994 | echo two > conftest.two | |
2995 | mkdir conftest.dir | |
2996 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2997 | test -s conftest.one && test -s conftest.two && | |
2998 | test -s conftest.dir/conftest.one && | |
2999 | test -s conftest.dir/conftest.two | |
3000 | then | |
3001 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3002 | break 3 | |
3003 | fi | |
bf9f3bac BB |
3004 | fi |
3005 | fi | |
3006 | done | |
3007 | done | |
3008 | ;; | |
3009 | esac | |
8934764e | 3010 | |
bf9f3bac | 3011 | done |
8934764e | 3012 | IFS=$as_save_IFS |
bf9f3bac | 3013 | |
8934764e | 3014 | rm -rf conftest.one conftest.two conftest.dir |
bf9f3bac BB |
3015 | |
3016 | fi | |
3017 | if test "${ac_cv_path_install+set}" = set; then | |
3018 | INSTALL=$ac_cv_path_install | |
3019 | else | |
8934764e BB |
3020 | # As a last resort, use the slow shell script. Don't cache a |
3021 | # value for INSTALL within a source directory, because that will | |
bf9f3bac | 3022 | # break other packages using the cache if that directory is |
8934764e | 3023 | # removed, or if the value is a relative name. |
bf9f3bac BB |
3024 | INSTALL=$ac_install_sh |
3025 | fi | |
3026 | fi | |
8934764e BB |
3027 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3028 | $as_echo "$INSTALL" >&6; } | |
bf9f3bac BB |
3029 | |
3030 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3031 | # It thinks the first close brace ends the variable substitution. | |
3032 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3033 | ||
3034 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
3035 | ||
3036 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
3037 | ||
3038 | ac_ext=c | |
3039 | ac_cpp='$CPP $CPPFLAGS' | |
3040 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3041 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3042 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3043 | if test -n "$ac_tool_prefix"; then | |
3044 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3045 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
8934764e BB |
3046 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3047 | $as_echo_n "checking for $ac_word... " >&6; } | |
bf9f3bac | 3048 | if test "${ac_cv_prog_CC+set}" = set; then |
8934764e | 3049 | $as_echo_n "(cached) " >&6 |
bf9f3bac BB |
3050 | else |
3051 | if test -n "$CC"; then | |
3052 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3053 | else | |
3054 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3055 | for as_dir in $PATH | |
3056 | do | |
3057 | IFS=$as_save_IFS | |
3058 | test -z "$as_dir" && as_dir=. | |
3059 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8934764e | 3060 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
bf9f3bac | 3061 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
8934764e | 3062 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bf9f3bac BB |
3063 | break 2 |
3064 | fi | |
3065 | done | |
3066 | done | |
8934764e | 3067 | IFS=$as_save_IFS |
bf9f3bac BB |
3068 | |
3069 | fi | |
3070 | fi | |
3071 | CC=$ac_cv_prog_CC | |
3072 | if test -n "$CC"; then | |
8934764e BB |
3073 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
3074 | $as_echo "$CC" >&6; } | |
bf9f3bac | 3075 | else |
8934764e BB |
3076 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3077 | $as_echo "no" >&6; } | |
bf9f3bac BB |
3078 | fi |
3079 | ||
8934764e | 3080 | |
bf9f3bac BB |
3081 | fi |
3082 | if test -z "$ac_cv_prog_CC"; then | |
3083 | ac_ct_CC=$CC | |
3084 | # Extract the first word of "gcc", so it can be a program name with args. | |
3085 | set dummy gcc; ac_word=$2 | |
8934764e BB |
3086 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3087 | $as_echo_n "checking for $ac_word... " >&6; } | |
bf9f3bac | 3088 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
8934764e | 3089 | $as_echo_n "(cached) " >&6 |
bf9f3bac BB |
3090 | else |
3091 | if test -n "$ac_ct_CC"; then | |
3092 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3093 | else | |
3094 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3095 | for as_dir in $PATH | |
3096 | do | |
3097 | IFS=$as_save_IFS | |
3098 | test -z "$as_dir" && as_dir=. | |
3099 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8934764e | 3100 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
bf9f3bac | 3101 | ac_cv_prog_ac_ct_CC="gcc" |
8934764e | 3102 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bf9f3bac BB |
3103 | break 2 |
3104 | fi | |
3105 | done | |
3106 | done | |
8934764e | 3107 | IFS=$as_save_IFS |
bf9f3bac BB |
3108 | |
3109 | fi | |
3110 | fi | |
3111 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3112 | if test -n "$ac_ct_CC"; then | |
8934764e BB |
3113 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
3114 | $as_echo "$ac_ct_CC" >&6; } | |
bf9f3bac | 3115 | else |
8934764e BB |
3116 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3117 | $as_echo "no" >&6; } | |
bf9f3bac BB |
3118 | fi |
3119 | ||
8934764e BB |
3120 | if test "x$ac_ct_CC" = x; then |
3121 | CC="" | |
3122 | else | |
3123 | case $cross_compiling:$ac_tool_warned in | |
3124 | yes:) | |
3125 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3126 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3127 | ac_tool_warned=yes ;; | |
3128 | esac | |
3129 | CC=$ac_ct_CC | |
3130 | fi | |
bf9f3bac BB |
3131 | else |
3132 | CC="$ac_cv_prog_CC" | |
3133 | fi | |
3134 | ||
3135 | if test -z "$CC"; then | |
8934764e BB |
3136 | if test -n "$ac_tool_prefix"; then |
3137 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
bf9f3bac | 3138 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
8934764e BB |
3139 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3140 | $as_echo_n "checking for $ac_word... " >&6; } | |
bf9f3bac | 3141 | if test "${ac_cv_prog_CC+set}" = set; then |
8934764e | 3142 | $as_echo_n "(cached) " >&6 |
bf9f3bac BB |
3143 | else |
3144 | if test -n "$CC"; then | |
3145 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3146 | else | |
3147 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3148 | for as_dir in $PATH | |
3149 | do | |
3150 | IFS=$as_save_IFS | |
3151 | test -z "$as_dir" && as_dir=. | |
3152 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8934764e | 3153 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
bf9f3bac | 3154 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
8934764e | 3155 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bf9f3bac BB |
3156 | break 2 |
3157 | fi | |
3158 | done | |
3159 | done | |
8934764e | 3160 | IFS=$as_save_IFS |
bf9f3bac BB |
3161 | |
3162 | fi | |
3163 | fi | |
3164 | CC=$ac_cv_prog_CC | |
3165 | if test -n "$CC"; then | |
8934764e BB |
3166 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
3167 | $as_echo "$CC" >&6; } | |
bf9f3bac | 3168 | else |
8934764e BB |
3169 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3170 | $as_echo "no" >&6; } | |
bf9f3bac BB |
3171 | fi |
3172 | ||
bf9f3bac | 3173 | |
8934764e | 3174 | fi |
bf9f3bac BB |
3175 | fi |
3176 | if test -z "$CC"; then | |
3177 | # Extract the first word of "cc", so it can be a program name with args. | |
3178 | set dummy cc; ac_word=$2 | |
8934764e BB |
3179 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3180 | $as_echo_n "checking for $ac_word... " >&6; } | |
bf9f3bac | 3181 | if test "${ac_cv_prog_CC+set}" = set; then |
8934764e | 3182 | $as_echo_n "(cached) " >&6 |
bf9f3bac BB |
3183 | else |
3184 | if test -n "$CC"; then | |
3185 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3186 | else | |
3187 | ac_prog_rejected=no | |
3188 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3189 | for as_dir in $PATH | |
3190 | do | |
3191 | IFS=$as_save_IFS | |
3192 | test -z "$as_dir" && as_dir=. | |
3193 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8934764e | 3194 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
bf9f3bac BB |
3195 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3196 | ac_prog_rejected=yes | |
3197 | continue | |
3198 | fi | |
3199 | ac_cv_prog_CC="cc" | |
8934764e | 3200 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bf9f3bac BB |
3201 | break 2 |
3202 | fi | |
3203 | done | |
3204 | done | |
8934764e | 3205 | IFS=$as_save_IFS |
bf9f3bac BB |
3206 | |
3207 | if test $ac_prog_rejected = yes; then | |
3208 | # We found a bogon in the path, so make sure we never use it. | |
3209 | set dummy $ac_cv_prog_CC | |
3210 | shift | |
3211 | if test $# != 0; then | |
3212 | # We chose a different compiler from the bogus one. | |
3213 | # However, it has the same basename, so the bogon will be chosen | |
3214 | # first if we set CC to just the basename; use the full file name. | |
3215 | shift | |
3216 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3217 | fi | |
3218 | fi | |
3219 | fi | |
3220 | fi | |
3221 | CC=$ac_cv_prog_CC | |
3222 | if test -n "$CC"; then | |
8934764e BB |
3223 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
3224 | $as_echo "$CC" >&6; } | |
bf9f3bac | 3225 | else |
8934764e BB |
3226 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3227 | $as_echo "no" >&6; } | |
bf9f3bac BB |
3228 | fi |
3229 | ||
8934764e | 3230 | |
bf9f3bac BB |
3231 | fi |
3232 | if test -z "$CC"; then | |
3233 | if test -n "$ac_tool_prefix"; then | |
8934764e | 3234 | for ac_prog in cl.exe |
bf9f3bac BB |
3235 | do |
3236 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3237 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
8934764e BB |
3238 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3239 | $as_echo_n "checking for $ac_word... " >&6; } | |
bf9f3bac | 3240 | if test "${ac_cv_prog_CC+set}" = set; then |
8934764e | 3241 | $as_echo_n "(cached) " >&6 |
bf9f3bac BB |
3242 | else |
3243 | if test -n "$CC"; then | |
3244 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3245 | else | |
3246 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3247 | for as_dir in $PATH | |
3248 | do | |
3249 | IFS=$as_save_IFS | |
3250 | test -z "$as_dir" && as_dir=. | |
3251 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8934764e | 3252 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
bf9f3bac | 3253 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
8934764e | 3254 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bf9f3bac BB |
3255 | break 2 |
3256 | fi | |
3257 | done | |
3258 | done | |
8934764e | 3259 | IFS=$as_save_IFS |
bf9f3bac BB |
3260 | |
3261 | fi | |
3262 | fi | |
3263 | CC=$ac_cv_prog_CC | |
3264 | if test -n "$CC"; then | |
8934764e BB |
3265 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
3266 | $as_echo "$CC" >&6; } | |
bf9f3bac | 3267 | else |
8934764e BB |
3268 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3269 | $as_echo "no" >&6; } | |
bf9f3bac BB |
3270 | fi |
3271 | ||
8934764e | 3272 | |
bf9f3bac BB |
3273 | test -n "$CC" && break |
3274 | done | |
3275 | fi | |
3276 | if test -z "$CC"; then | |
3277 | ac_ct_CC=$CC | |
8934764e | 3278 | for ac_prog in cl.exe |
bf9f3bac BB |
3279 | do |
3280 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3281 | set dummy $ac_prog; ac_word=$2 | |
8934764e BB |
3282 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3283 | $as_echo_n "checking for $ac_word... " >&6; } | |
bf9f3bac | 3284 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
8934764e | 3285 | $as_echo_n "(cached) " >&6 |
bf9f3bac BB |
3286 | else |
3287 | if test -n "$ac_ct_CC"; then | |
3288 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3289 | else | |
3290 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3291 | for as_dir in $PATH | |
3292 | do | |
3293 | IFS=$as_save_IFS | |
3294 | test -z "$as_dir" && as_dir=. | |
3295 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8934764e | 3296 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
bf9f3bac | 3297 | ac_cv_prog_ac_ct_CC="$ac_prog" |
8934764e | 3298 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bf9f3bac BB |
3299 | break 2 |
3300 | fi | |
3301 | done | |
3302 | done | |
8934764e | 3303 | IFS=$as_save_IFS |
bf9f3bac BB |
3304 | |
3305 | fi | |
3306 | fi | |
3307 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3308 | if test -n "$ac_ct_CC"; then | |
8934764e BB |
3309 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
3310 | $as_echo "$ac_ct_CC" >&6; } | |
bf9f3bac | 3311 | else |
8934764e BB |
3312 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3313 | $as_echo "no" >&6; } | |
bf9f3bac BB |
3314 | fi |
3315 | ||
8934764e | 3316 | |
bf9f3bac BB |
3317 | test -n "$ac_ct_CC" && break |
3318 | done | |
3319 | ||
8934764e BB |
3320 | if test "x$ac_ct_CC" = x; then |
3321 | CC="" | |
3322 | else | |
3323 | case $cross_compiling:$ac_tool_warned in | |
3324 | yes:) | |
3325 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3326 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3327 | ac_tool_warned=yes ;; | |
3328 | esac | |
3329 | CC=$ac_ct_CC | |
3330 | fi | |
bf9f3bac BB |
3331 | fi |
3332 | ||
3333 | fi | |
3334 | ||
3335 | ||
8934764e BB |
3336 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3337 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3338 | { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
bf9f3bac | 3339 | See \`config.log' for more details." >&5 |
8934764e | 3340 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
bf9f3bac | 3341 | See \`config.log' for more details." >&2;} |
8934764e | 3342 | { (exit 1); exit 1; }; }; } |
bf9f3bac BB |
3343 | |
3344 | # Provide some information about the compiler. | |
8934764e BB |
3345 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
3346 | set X $ac_compile | |
3347 | ac_compiler=$2 | |
3348 | { (ac_try="$ac_compiler --version >&5" | |
3349 | case "(($ac_try" in | |
3350 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3351 | *) ac_try_echo=$ac_try;; | |
3352 | esac | |
3353 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3354 | $as_echo "$ac_try_echo") >&5 | |
3355 | (eval "$ac_compiler --version >&5") 2>&5 | |
bf9f3bac | 3356 | ac_status=$? |
8934764e | 3357 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac | 3358 | (exit $ac_status); } |
8934764e BB |
3359 | { (ac_try="$ac_compiler -v >&5" |
3360 | case "(($ac_try" in | |
3361 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3362 | *) ac_try_echo=$ac_try;; | |
3363 | esac | |
3364 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3365 | $as_echo "$ac_try_echo") >&5 | |
3366 | (eval "$ac_compiler -v >&5") 2>&5 | |
bf9f3bac | 3367 | ac_status=$? |
8934764e | 3368 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac | 3369 | (exit $ac_status); } |
8934764e BB |
3370 | { (ac_try="$ac_compiler -V >&5" |
3371 | case "(($ac_try" in | |
3372 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3373 | *) ac_try_echo=$ac_try;; | |
3374 | esac | |
3375 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3376 | $as_echo "$ac_try_echo") >&5 | |
3377 | (eval "$ac_compiler -V >&5") 2>&5 | |
bf9f3bac | 3378 | ac_status=$? |
8934764e | 3379 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac BB |
3380 | (exit $ac_status); } |
3381 | ||
3382 | cat >conftest.$ac_ext <<_ACEOF | |
3383 | /* confdefs.h. */ | |
3384 | _ACEOF | |
3385 | cat confdefs.h >>conftest.$ac_ext | |
3386 | cat >>conftest.$ac_ext <<_ACEOF | |
3387 | /* end confdefs.h. */ | |
3388 | ||
3389 | int | |
3390 | main () | |
3391 | { | |
3392 | ||
3393 | ; | |
3394 | return 0; | |
3395 | } | |
3396 | _ACEOF | |
3397 | ac_clean_files_save=$ac_clean_files | |
8934764e | 3398 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
bf9f3bac BB |
3399 | # Try to create an executable without -o first, disregard a.out. |
3400 | # It will help us diagnose broken compilers, and finding out an intuition | |
3401 | # of exeext. | |
8934764e BB |
3402 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
3403 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3404 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3405 | ||
3406 | # The possible output files: | |
3407 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3408 | ||
3409 | ac_rmfiles= | |
3410 | for ac_file in $ac_files | |
3411 | do | |
3412 | case $ac_file in | |
3413 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3414 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3415 | esac | |
3416 | done | |
3417 | rm -f $ac_rmfiles | |
3418 | ||
3419 | if { (ac_try="$ac_link_default" | |
3420 | case "(($ac_try" in | |
3421 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3422 | *) ac_try_echo=$ac_try;; | |
3423 | esac | |
3424 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3425 | $as_echo "$ac_try_echo") >&5 | |
3426 | (eval "$ac_link_default") 2>&5 | |
bf9f3bac | 3427 | ac_status=$? |
8934764e | 3428 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac | 3429 | (exit $ac_status); }; then |
8934764e BB |
3430 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3431 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3432 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3433 | # so that the user can short-circuit this test for compilers unknown to | |
3434 | # Autoconf. | |
3435 | for ac_file in $ac_files '' | |
bf9f3bac BB |
3436 | do |
3437 | test -f "$ac_file" || continue | |
3438 | case $ac_file in | |
8934764e | 3439 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
bf9f3bac BB |
3440 | ;; |
3441 | [ab].out ) | |
3442 | # We found the default executable, but exeext='' is most | |
3443 | # certainly right. | |
3444 | break;; | |
3445 | *.* ) | |
8934764e BB |
3446 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
3447 | then :; else | |
3448 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3449 | fi | |
3450 | # We set ac_cv_exeext here because the later test for it is not | |
3451 | # safe: cross compilers may not add the suffix if given an `-o' | |
3452 | # argument, so we may need to know it at that point already. | |
3453 | # Even if this section looks crufty: it has the advantage of | |
3454 | # actually working. | |
bf9f3bac BB |
3455 | break;; |
3456 | * ) | |
3457 | break;; | |
3458 | esac | |
3459 | done | |
8934764e BB |
3460 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3461 | ||
bf9f3bac | 3462 | else |
8934764e BB |
3463 | ac_file='' |
3464 | fi | |
3465 | ||
3466 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 | |
3467 | $as_echo "$ac_file" >&6; } | |
3468 | if test -z "$ac_file"; then | |
3469 | $as_echo "$as_me: failed program was:" >&5 | |
bf9f3bac BB |
3470 | sed 's/^/| /' conftest.$ac_ext >&5 |
3471 | ||
8934764e BB |
3472 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3473 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3474 | { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables | |
bf9f3bac | 3475 | See \`config.log' for more details." >&5 |
8934764e | 3476 | $as_echo "$as_me: error: C compiler cannot create executables |
bf9f3bac | 3477 | See \`config.log' for more details." >&2;} |
8934764e | 3478 | { (exit 77); exit 77; }; }; } |
bf9f3bac BB |
3479 | fi |
3480 | ||
3481 | ac_exeext=$ac_cv_exeext | |
bf9f3bac | 3482 | |
8934764e | 3483 | # Check that the compiler produces executables we can run. If not, either |
bf9f3bac | 3484 | # the compiler is broken, or we cross compile. |
8934764e BB |
3485 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
3486 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
bf9f3bac BB |
3487 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
3488 | # If not cross compiling, check that we can run a simple program. | |
3489 | if test "$cross_compiling" != yes; then | |
3490 | if { ac_try='./$ac_file' | |
8934764e BB |
3491 | { (case "(($ac_try" in |
3492 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3493 | *) ac_try_echo=$ac_try;; | |
3494 | esac | |
3495 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3496 | $as_echo "$ac_try_echo") >&5 | |
3497 | (eval "$ac_try") 2>&5 | |
bf9f3bac | 3498 | ac_status=$? |
8934764e | 3499 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac BB |
3500 | (exit $ac_status); }; }; then |
3501 | cross_compiling=no | |
3502 | else | |
3503 | if test "$cross_compiling" = maybe; then | |
3504 | cross_compiling=yes | |
3505 | else | |
8934764e BB |
3506 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3507 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3508 | { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
bf9f3bac BB |
3509 | If you meant to cross compile, use \`--host'. |
3510 | See \`config.log' for more details." >&5 | |
8934764e | 3511 | $as_echo "$as_me: error: cannot run C compiled programs. |
bf9f3bac BB |
3512 | If you meant to cross compile, use \`--host'. |
3513 | See \`config.log' for more details." >&2;} | |
8934764e | 3514 | { (exit 1); exit 1; }; }; } |
bf9f3bac BB |
3515 | fi |
3516 | fi | |
3517 | fi | |
8934764e BB |
3518 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
3519 | $as_echo "yes" >&6; } | |
bf9f3bac | 3520 | |
8934764e | 3521 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
bf9f3bac | 3522 | ac_clean_files=$ac_clean_files_save |
8934764e | 3523 | # Check that the compiler produces executables we can run. If not, either |
bf9f3bac | 3524 | # the compiler is broken, or we cross compile. |
8934764e BB |
3525 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
3526 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3527 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
3528 | $as_echo "$cross_compiling" >&6; } | |
3529 | ||
3530 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
3531 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3532 | if { (ac_try="$ac_link" | |
3533 | case "(($ac_try" in | |
3534 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3535 | *) ac_try_echo=$ac_try;; | |
3536 | esac | |
3537 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3538 | $as_echo "$ac_try_echo") >&5 | |
3539 | (eval "$ac_link") 2>&5 | |
bf9f3bac | 3540 | ac_status=$? |
8934764e | 3541 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac BB |
3542 | (exit $ac_status); }; then |
3543 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3544 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3545 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3546 | # `rm'. | |
3547 | for ac_file in conftest.exe conftest conftest.*; do | |
3548 | test -f "$ac_file" || continue | |
3549 | case $ac_file in | |
8934764e | 3550 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
bf9f3bac | 3551 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
bf9f3bac BB |
3552 | break;; |
3553 | * ) break;; | |
3554 | esac | |
3555 | done | |
3556 | else | |
8934764e BB |
3557 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3558 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3559 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
bf9f3bac | 3560 | See \`config.log' for more details." >&5 |
8934764e | 3561 | $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
bf9f3bac | 3562 | See \`config.log' for more details." >&2;} |
8934764e | 3563 | { (exit 1); exit 1; }; }; } |
bf9f3bac BB |
3564 | fi |
3565 | ||
3566 | rm -f conftest$ac_cv_exeext | |
8934764e BB |
3567 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
3568 | $as_echo "$ac_cv_exeext" >&6; } | |
bf9f3bac BB |
3569 | |
3570 | rm -f conftest.$ac_ext | |
3571 | EXEEXT=$ac_cv_exeext | |
3572 | ac_exeext=$EXEEXT | |
8934764e BB |
3573 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
3574 | $as_echo_n "checking for suffix of object files... " >&6; } | |
bf9f3bac | 3575 | if test "${ac_cv_objext+set}" = set; then |
8934764e | 3576 | $as_echo_n "(cached) " >&6 |
bf9f3bac BB |
3577 | else |
3578 | cat >conftest.$ac_ext <<_ACEOF | |
3579 | /* confdefs.h. */ | |
3580 | _ACEOF | |
3581 | cat confdefs.h >>conftest.$ac_ext | |
3582 | cat >>conftest.$ac_ext <<_ACEOF | |
3583 | /* end confdefs.h. */ | |
3584 | ||
3585 | int | |
3586 | main () | |
3587 | { | |
3588 | ||
3589 | ; | |
3590 | return 0; | |
3591 | } | |
3592 | _ACEOF | |
3593 | rm -f conftest.o conftest.obj | |
8934764e BB |
3594 | if { (ac_try="$ac_compile" |
3595 | case "(($ac_try" in | |
3596 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3597 | *) ac_try_echo=$ac_try;; | |
3598 | esac | |
3599 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3600 | $as_echo "$ac_try_echo") >&5 | |
3601 | (eval "$ac_compile") 2>&5 | |
bf9f3bac | 3602 | ac_status=$? |
8934764e | 3603 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac | 3604 | (exit $ac_status); }; then |
8934764e BB |
3605 | for ac_file in conftest.o conftest.obj conftest.*; do |
3606 | test -f "$ac_file" || continue; | |
bf9f3bac | 3607 | case $ac_file in |
8934764e | 3608 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
bf9f3bac BB |
3609 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3610 | break;; | |
3611 | esac | |
3612 | done | |
3613 | else | |
8934764e | 3614 | $as_echo "$as_me: failed program was:" >&5 |
bf9f3bac BB |
3615 | sed 's/^/| /' conftest.$ac_ext >&5 |
3616 | ||
8934764e BB |
3617 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3618 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3619 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
bf9f3bac | 3620 | See \`config.log' for more details." >&5 |
8934764e | 3621 | $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile |
bf9f3bac | 3622 | See \`config.log' for more details." >&2;} |
8934764e | 3623 | { (exit 1); exit 1; }; }; } |
bf9f3bac BB |
3624 | fi |
3625 | ||
3626 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3627 | fi | |
8934764e BB |
3628 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
3629 | $as_echo "$ac_cv_objext" >&6; } | |
bf9f3bac BB |
3630 | OBJEXT=$ac_cv_objext |
3631 | ac_objext=$OBJEXT | |
8934764e BB |
3632 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
3633 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
bf9f3bac | 3634 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
8934764e | 3635 | $as_echo_n "(cached) " >&6 |
bf9f3bac BB |
3636 | else |
3637 | cat >conftest.$ac_ext <<_ACEOF | |
3638 | /* confdefs.h. */ | |
3639 | _ACEOF | |
3640 | cat confdefs.h >>conftest.$ac_ext | |
3641 | cat >>conftest.$ac_ext <<_ACEOF | |
3642 | /* end confdefs.h. */ | |
3643 | ||
3644 | int | |
3645 | main () | |
3646 | { | |
3647 | #ifndef __GNUC__ | |
3648 | choke me | |
3649 | #endif | |
3650 | ||
3651 | ; | |
3652 | return 0; | |
3653 | } | |
3654 | _ACEOF | |
3655 | rm -f conftest.$ac_objext | |
8934764e BB |
3656 | if { (ac_try="$ac_compile" |
3657 | case "(($ac_try" in | |
3658 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3659 | *) ac_try_echo=$ac_try;; | |
3660 | esac | |
3661 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3662 | $as_echo "$ac_try_echo") >&5 | |
3663 | (eval "$ac_compile") 2>conftest.er1 | |
bf9f3bac BB |
3664 | ac_status=$? |
3665 | grep -v '^ *+' conftest.er1 >conftest.err | |
3666 | rm -f conftest.er1 | |
3667 | cat conftest.err >&5 | |
8934764e BB |
3668 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3669 | (exit $ac_status); } && { | |
3670 | test -z "$ac_c_werror_flag" || | |
3671 | test ! -s conftest.err | |
3672 | } && test -s conftest.$ac_objext; then | |
bf9f3bac BB |
3673 | ac_compiler_gnu=yes |
3674 | else | |
8934764e | 3675 | $as_echo "$as_me: failed program was:" >&5 |
bf9f3bac BB |
3676 | sed 's/^/| /' conftest.$ac_ext >&5 |
3677 | ||
8934764e | 3678 | ac_compiler_gnu=no |
bf9f3bac | 3679 | fi |
8934764e BB |
3680 | |
3681 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
bf9f3bac BB |
3682 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3683 | ||
3684 | fi | |
8934764e BB |
3685 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
3686 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3687 | if test $ac_compiler_gnu = yes; then | |
3688 | GCC=yes | |
3689 | else | |
3690 | GCC= | |
3691 | fi | |
bf9f3bac BB |
3692 | ac_test_CFLAGS=${CFLAGS+set} |
3693 | ac_save_CFLAGS=$CFLAGS | |
8934764e BB |
3694 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
3695 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
bf9f3bac | 3696 | if test "${ac_cv_prog_cc_g+set}" = set; then |
8934764e | 3697 | $as_echo_n "(cached) " >&6 |
bf9f3bac | 3698 | else |
8934764e BB |
3699 | ac_save_c_werror_flag=$ac_c_werror_flag |
3700 | ac_c_werror_flag=yes | |
3701 | ac_cv_prog_cc_g=no | |
3702 | CFLAGS="-g" | |
3703 | cat >conftest.$ac_ext <<_ACEOF | |
bf9f3bac BB |
3704 | /* confdefs.h. */ |
3705 | _ACEOF | |
3706 | cat confdefs.h >>conftest.$ac_ext | |
3707 | cat >>conftest.$ac_ext <<_ACEOF | |
3708 | /* end confdefs.h. */ | |
3709 | ||
3710 | int | |
3711 | main () | |
3712 | { | |
3713 | ||
3714 | ; | |
3715 | return 0; | |
3716 | } | |
3717 | _ACEOF | |
3718 | rm -f conftest.$ac_objext | |
8934764e BB |
3719 | if { (ac_try="$ac_compile" |
3720 | case "(($ac_try" in | |
3721 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3722 | *) ac_try_echo=$ac_try;; | |
3723 | esac | |
3724 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3725 | $as_echo "$ac_try_echo") >&5 | |
3726 | (eval "$ac_compile") 2>conftest.er1 | |
bf9f3bac BB |
3727 | ac_status=$? |
3728 | grep -v '^ *+' conftest.er1 >conftest.err | |
3729 | rm -f conftest.er1 | |
3730 | cat conftest.err >&5 | |
8934764e BB |
3731 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3732 | (exit $ac_status); } && { | |
3733 | test -z "$ac_c_werror_flag" || | |
3734 | test ! -s conftest.err | |
3735 | } && test -s conftest.$ac_objext; then | |
3736 | ac_cv_prog_cc_g=yes | |
3737 | else | |
3738 | $as_echo "$as_me: failed program was:" >&5 | |
3739 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3740 | ||
3741 | CFLAGS="" | |
3742 | cat >conftest.$ac_ext <<_ACEOF | |
3743 | /* confdefs.h. */ | |
3744 | _ACEOF | |
3745 | cat confdefs.h >>conftest.$ac_ext | |
3746 | cat >>conftest.$ac_ext <<_ACEOF | |
3747 | /* end confdefs.h. */ | |
3748 | ||
3749 | int | |
3750 | main () | |
3751 | { | |
3752 | ||
3753 | ; | |
3754 | return 0; | |
3755 | } | |
3756 | _ACEOF | |
3757 | rm -f conftest.$ac_objext | |
3758 | if { (ac_try="$ac_compile" | |
3759 | case "(($ac_try" in | |
3760 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3761 | *) ac_try_echo=$ac_try;; | |
3762 | esac | |
3763 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3764 | $as_echo "$ac_try_echo") >&5 | |
3765 | (eval "$ac_compile") 2>conftest.er1 | |
bf9f3bac | 3766 | ac_status=$? |
8934764e BB |
3767 | grep -v '^ *+' conftest.er1 >conftest.err |
3768 | rm -f conftest.er1 | |
3769 | cat conftest.err >&5 | |
3770 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3771 | (exit $ac_status); } && { | |
3772 | test -z "$ac_c_werror_flag" || | |
3773 | test ! -s conftest.err | |
3774 | } && test -s conftest.$ac_objext; then | |
3775 | : | |
3776 | else | |
3777 | $as_echo "$as_me: failed program was:" >&5 | |
3778 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3779 | ||
3780 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3781 | CFLAGS="-g" | |
3782 | cat >conftest.$ac_ext <<_ACEOF | |
3783 | /* confdefs.h. */ | |
3784 | _ACEOF | |
3785 | cat confdefs.h >>conftest.$ac_ext | |
3786 | cat >>conftest.$ac_ext <<_ACEOF | |
3787 | /* end confdefs.h. */ | |
3788 | ||
3789 | int | |
3790 | main () | |
3791 | { | |
3792 | ||
3793 | ; | |
3794 | return 0; | |
3795 | } | |
3796 | _ACEOF | |
3797 | rm -f conftest.$ac_objext | |
3798 | if { (ac_try="$ac_compile" | |
3799 | case "(($ac_try" in | |
3800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3801 | *) ac_try_echo=$ac_try;; | |
3802 | esac | |
3803 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3804 | $as_echo "$ac_try_echo") >&5 | |
3805 | (eval "$ac_compile") 2>conftest.er1 | |
bf9f3bac | 3806 | ac_status=$? |
8934764e BB |
3807 | grep -v '^ *+' conftest.er1 >conftest.err |
3808 | rm -f conftest.er1 | |
3809 | cat conftest.err >&5 | |
3810 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3811 | (exit $ac_status); } && { | |
3812 | test -z "$ac_c_werror_flag" || | |
3813 | test ! -s conftest.err | |
3814 | } && test -s conftest.$ac_objext; then | |
bf9f3bac BB |
3815 | ac_cv_prog_cc_g=yes |
3816 | else | |
8934764e | 3817 | $as_echo "$as_me: failed program was:" >&5 |
bf9f3bac BB |
3818 | sed 's/^/| /' conftest.$ac_ext >&5 |
3819 | ||
8934764e BB |
3820 | |
3821 | fi | |
3822 | ||
3823 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3824 | fi | |
3825 | ||
3826 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
bf9f3bac | 3827 | fi |
8934764e BB |
3828 | |
3829 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3830 | ac_c_werror_flag=$ac_save_c_werror_flag | |
bf9f3bac | 3831 | fi |
8934764e BB |
3832 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3833 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
bf9f3bac BB |
3834 | if test "$ac_test_CFLAGS" = set; then |
3835 | CFLAGS=$ac_save_CFLAGS | |
3836 | elif test $ac_cv_prog_cc_g = yes; then | |
3837 | if test "$GCC" = yes; then | |
3838 | CFLAGS="-g -O2" | |
3839 | else | |
3840 | CFLAGS="-g" | |
3841 | fi | |
3842 | else | |
3843 | if test "$GCC" = yes; then | |
3844 | CFLAGS="-O2" | |
3845 | else | |
3846 | CFLAGS= | |
3847 | fi | |
3848 | fi | |
8934764e BB |
3849 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
3850 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3851 | if test "${ac_cv_prog_cc_c89+set}" = set; then | |
3852 | $as_echo_n "(cached) " >&6 | |
bf9f3bac | 3853 | else |
8934764e | 3854 | ac_cv_prog_cc_c89=no |
bf9f3bac BB |
3855 | ac_save_CC=$CC |
3856 | cat >conftest.$ac_ext <<_ACEOF | |
3857 | /* confdefs.h. */ | |
3858 | _ACEOF | |
3859 | cat confdefs.h >>conftest.$ac_ext | |
3860 | cat >>conftest.$ac_ext <<_ACEOF | |
3861 | /* end confdefs.h. */ | |
3862 | #include <stdarg.h> | |
3863 | #include <stdio.h> | |
3864 | #include <sys/types.h> | |
3865 | #include <sys/stat.h> | |
3866 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3867 | struct buf { int x; }; | |
3868 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3869 | static char *e (p, i) | |
3870 | char **p; | |
3871 | int i; | |
3872 | { | |
3873 | return p[i]; | |
3874 | } | |
3875 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3876 | { | |
3877 | char *s; | |
3878 | va_list v; | |
3879 | va_start (v,p); | |
3880 | s = g (p, va_arg (v,int)); | |
3881 | va_end (v); | |
3882 | return s; | |
3883 | } | |
3884 | ||
3885 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3886 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3887 | These don't provoke an error unfortunately, instead are silently treated | |
8934764e | 3888 | as 'x'. The following induces an error, until -std is added to get |
bf9f3bac BB |
3889 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3890 | array size at least. It's necessary to write '\x00'==0 to get something | |
8934764e | 3891 | that's true only with -std. */ |
bf9f3bac BB |
3892 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3893 | ||
8934764e BB |
3894 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3895 | inside strings and character constants. */ | |
3896 | #define FOO(x) 'x' | |
3897 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3898 | ||
bf9f3bac BB |
3899 | int test (int i, double x); |
3900 | struct s1 {int (*f) (int a);}; | |
3901 | struct s2 {int (*f) (double a);}; | |
3902 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3903 | int argc; | |
3904 | char **argv; | |
3905 | int | |
3906 | main () | |
3907 | { | |
3908 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3909 | ; | |
3910 | return 0; | |
3911 | } | |
3912 | _ACEOF | |
8934764e BB |
3913 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3914 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
bf9f3bac BB |
3915 | do |
3916 | CC="$ac_save_CC $ac_arg" | |
3917 | rm -f conftest.$ac_objext | |
8934764e BB |
3918 | if { (ac_try="$ac_compile" |
3919 | case "(($ac_try" in | |
3920 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3921 | *) ac_try_echo=$ac_try;; | |
3922 | esac | |
3923 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3924 | $as_echo "$ac_try_echo") >&5 | |
3925 | (eval "$ac_compile") 2>conftest.er1 | |
bf9f3bac BB |
3926 | ac_status=$? |
3927 | grep -v '^ *+' conftest.er1 >conftest.err | |
3928 | rm -f conftest.er1 | |
3929 | cat conftest.err >&5 | |
8934764e BB |
3930 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3931 | (exit $ac_status); } && { | |
3932 | test -z "$ac_c_werror_flag" || | |
3933 | test ! -s conftest.err | |
3934 | } && test -s conftest.$ac_objext; then | |
3935 | ac_cv_prog_cc_c89=$ac_arg | |
3936 | else | |
3937 | $as_echo "$as_me: failed program was:" >&5 | |
bf9f3bac BB |
3938 | sed 's/^/| /' conftest.$ac_ext >&5 |
3939 | ||
8934764e | 3940 | |
bf9f3bac | 3941 | fi |
8934764e BB |
3942 | |
3943 | rm -f core conftest.err conftest.$ac_objext | |
3944 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
bf9f3bac | 3945 | done |
8934764e | 3946 | rm -f conftest.$ac_ext |
bf9f3bac BB |
3947 | CC=$ac_save_CC |
3948 | ||
3949 | fi | |
8934764e BB |
3950 | # AC_CACHE_VAL |
3951 | case "x$ac_cv_prog_cc_c89" in | |
3952 | x) | |
3953 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 | |
3954 | $as_echo "none needed" >&6; } ;; | |
3955 | xno) | |
3956 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 | |
3957 | $as_echo "unsupported" >&6; } ;; | |
bf9f3bac | 3958 | *) |
8934764e BB |
3959 | CC="$CC $ac_cv_prog_cc_c89" |
3960 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | |
3961 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
bf9f3bac BB |
3962 | esac |
3963 | ||
bf9f3bac | 3964 | |
bf9f3bac BB |
3965 | ac_ext=c |
3966 | ac_cpp='$CPP $CPPFLAGS' | |
3967 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3968 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3969 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3970 | DEPDIR="${am__leading_dot}deps" | |
3971 | ||
8934764e | 3972 | ac_config_commands="$ac_config_commands depfiles" |
bf9f3bac BB |
3973 | |
3974 | ||
3975 | am_make=${MAKE-make} | |
3976 | cat > confinc << 'END' | |
3977 | am__doit: | |
8934764e | 3978 | @echo this is the am__doit target |
bf9f3bac BB |
3979 | .PHONY: am__doit |
3980 | END | |
3981 | # If we don't find an include directive, just comment out the code. | |
8934764e BB |
3982 | { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
3983 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
bf9f3bac BB |
3984 | am__include="#" |
3985 | am__quote= | |
3986 | _am_result=none | |
3987 | # First try GNU make style include. | |
3988 | echo "include confinc" > confmf | |
8934764e BB |
3989 | # Ignore all kinds of additional output from `make'. |
3990 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
3991 | *the\ am__doit\ target*) | |
3992 | am__include=include | |
3993 | am__quote= | |
3994 | _am_result=GNU | |
3995 | ;; | |
3996 | esac | |
bf9f3bac BB |
3997 | # Now try BSD make style include. |
3998 | if test "$am__include" = "#"; then | |
3999 | echo '.include "confinc"' > confmf | |
8934764e BB |
4000 | case `$am_make -s -f confmf 2> /dev/null` in #( |
4001 | *the\ am__doit\ target*) | |
4002 | am__include=.include | |
4003 | am__quote="\"" | |
4004 | _am_result=BSD | |
4005 | ;; | |
4006 | esac | |
bf9f3bac BB |
4007 | fi |
4008 | ||
4009 | ||
8934764e BB |
4010 | { $as_echo "$as_me:$LINENO: result: $_am_result" >&5 |
4011 | $as_echo "$_am_result" >&6; } | |
bf9f3bac BB |
4012 | rm -f confinc confmf |
4013 | ||
8934764e | 4014 | # Check whether --enable-dependency-tracking was given. |
bf9f3bac | 4015 | if test "${enable_dependency_tracking+set}" = set; then |
8934764e BB |
4016 | enableval=$enable_dependency_tracking; |
4017 | fi | |
bf9f3bac | 4018 | |
bf9f3bac BB |
4019 | if test "x$enable_dependency_tracking" != xno; then |
4020 | am_depcomp="$ac_aux_dir/depcomp" | |
4021 | AMDEPBACKSLASH='\' | |
4022 | fi | |
8934764e | 4023 | if test "x$enable_dependency_tracking" != xno; then |
bf9f3bac BB |
4024 | AMDEP_TRUE= |
4025 | AMDEP_FALSE='#' | |
4026 | else | |
4027 | AMDEP_TRUE='#' | |
4028 | AMDEP_FALSE= | |
4029 | fi | |
4030 | ||
4031 | ||
4032 | ||
bf9f3bac BB |
4033 | depcc="$CC" am_compiler_list= |
4034 | ||
8934764e BB |
4035 | { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
4036 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
bf9f3bac | 4037 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
8934764e | 4038 | $as_echo_n "(cached) " >&6 |
bf9f3bac BB |
4039 | else |
4040 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4041 | # We make a subdir and do the tests there. Otherwise we can end up | |
4042 | # making bogus files that we don't know about and never remove. For | |
4043 | # instance it was reported that on HP-UX the gcc test will end up | |
4044 | # making a dummy file named `D' -- because `-MD' means `put the output | |
4045 | # in D'. | |
4046 | mkdir conftest.dir | |
4047 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4048 | # using a relative directory. | |
4049 | cp "$am_depcomp" conftest.dir | |
4050 | cd conftest.dir | |
4051 | # We will build objects and dependencies in a subdirectory because | |
4052 | # it helps to detect inapplicable dependency modes. For instance | |
4053 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4054 | # side effect of compilation, but ICC will put the dependencies in | |
4055 | # the current directory while Tru64 will put them in the object | |
4056 | # directory. | |
4057 | mkdir sub | |
4058 | ||
4059 | am_cv_CC_dependencies_compiler_type=none | |
4060 | if test "$am_compiler_list" = ""; then | |
4061 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4062 | fi | |
8934764e BB |
4063 | am__universal=false |
4064 | case " $depcc " in #( | |
4065 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4066 | esac | |
4067 | ||
bf9f3bac BB |
4068 | for depmode in $am_compiler_list; do |
4069 | # Setup a source with many dependencies, because some compilers | |
4070 | # like to wrap large dependency lists on column 80 (with \), and | |
4071 | # we should not choose a depcomp mode which is confused by this. | |
4072 | # | |
4073 | # We need to recreate these files for each test, as the compiler may | |
4074 | # overwrite some of them when testing with obscure command lines. | |
4075 | # This happens at least with the AIX C compiler. | |
4076 | : > sub/conftest.c | |
4077 | for i in 1 2 3 4 5 6; do | |
4078 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4079 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
4080 | # Solaris 8's {/usr,}/bin/sh. | |
4081 | touch sub/conftst$i.h | |
4082 | done | |
4083 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4084 | ||
8934764e BB |
4085 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
4086 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4087 | # handle `-M -o', and we need to detect this. Also, some Intel | |
4088 | # versions had trouble with output in subdirs | |
4089 | am__obj=sub/conftest.${OBJEXT-o} | |
4090 | am__minus_obj="-o $am__obj" | |
bf9f3bac | 4091 | case $depmode in |
8934764e BB |
4092 | gcc) |
4093 | # This depmode causes a compiler race in universal mode. | |
4094 | test "$am__universal" = false || continue | |
4095 | ;; | |
bf9f3bac BB |
4096 | nosideeffect) |
4097 | # after this tag, mechanisms are not by side-effect, so they'll | |
4098 | # only be used when explicitly requested | |
4099 | if test "x$enable_dependency_tracking" = xyes; then | |
4100 | continue | |
4101 | else | |
4102 | break | |
4103 | fi | |
4104 | ;; | |
8934764e BB |
4105 | msvisualcpp | msvcmsys) |
4106 | # This compiler won't grok `-c -o', but also, the minuso test has | |
4107 | # not run yet. These depmodes are late enough in the game, and | |
4108 | # so weak that their functioning should not be impacted. | |
4109 | am__obj=conftest.${OBJEXT-o} | |
4110 | am__minus_obj= | |
4111 | ;; | |
bf9f3bac BB |
4112 | none) break ;; |
4113 | esac | |
bf9f3bac | 4114 | if depmode=$depmode \ |
8934764e | 4115 | source=sub/conftest.c object=$am__obj \ |
bf9f3bac | 4116 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
8934764e | 4117 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
bf9f3bac | 4118 | >/dev/null 2>conftest.err && |
8934764e | 4119 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
bf9f3bac | 4120 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
8934764e | 4121 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
bf9f3bac BB |
4122 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
4123 | # icc doesn't choke on unknown options, it will just issue warnings | |
4124 | # or remarks (even with -Werror). So we grep stderr for any message | |
4125 | # that says an option was ignored or not supported. | |
4126 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4127 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4128 | # The diagnosis changed in icc 8.0: | |
4129 | # icc: Command line remark: option '-MP' not supported | |
4130 | if (grep 'ignoring option' conftest.err || | |
4131 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4132 | am_cv_CC_dependencies_compiler_type=$depmode | |
4133 | break | |
4134 | fi | |
4135 | fi | |
4136 | done | |
4137 | ||
4138 | cd .. | |
4139 | rm -rf conftest.dir | |
4140 | else | |
4141 | am_cv_CC_dependencies_compiler_type=none | |
4142 | fi | |
4143 | ||
4144 | fi | |
8934764e BB |
4145 | { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
4146 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
bf9f3bac BB |
4147 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
4148 | ||
8934764e | 4149 | if |
bf9f3bac BB |
4150 | test "x$enable_dependency_tracking" != xno \ |
4151 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4152 | am__fastdepCC_TRUE= | |
4153 | am__fastdepCC_FALSE='#' | |
4154 | else | |
4155 | am__fastdepCC_TRUE='#' | |
4156 | am__fastdepCC_FALSE= | |
4157 | fi | |
4158 | ||
4159 | ||
8934764e BB |
4160 | case `pwd` in |
4161 | *\ * | *\ *) | |
4162 | { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
4163 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
4164 | esac | |
bf9f3bac | 4165 | |
bf9f3bac | 4166 | |
bf9f3bac | 4167 | |
8934764e BB |
4168 | macro_version='2.2.6' |
4169 | macro_revision='1.3012' | |
4170 | ||
4171 | ||
4172 | ||
4173 | ||
4174 | ||
4175 | ||
4176 | ||
4177 | ||
4178 | ||
4179 | ||
4180 | ||
4181 | ||
4182 | ||
4183 | ltmain="$ac_aux_dir/ltmain.sh" | |
4184 | ||
4185 | { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 | |
4186 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
4187 | if test "${ac_cv_path_SED+set}" = set; then | |
4188 | $as_echo_n "(cached) " >&6 | |
4189 | else | |
4190 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
4191 | for ac_i in 1 2 3 4 5 6 7; do | |
4192 | ac_script="$ac_script$as_nl$ac_script" | |
4193 | done | |
4194 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
4195 | $as_unset ac_script || ac_script= | |
4196 | if test -z "$SED"; then | |
4197 | ac_path_SED_found=false | |
4198 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4199 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
bf9f3bac BB |
4200 | for as_dir in $PATH |
4201 | do | |
4202 | IFS=$as_save_IFS | |
4203 | test -z "$as_dir" && as_dir=. | |
8934764e | 4204 | for ac_prog in sed gsed; do |
bf9f3bac | 4205 | for ac_exec_ext in '' $ac_executable_extensions; do |
8934764e BB |
4206 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
4207 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
4208 | # Check for GNU ac_path_SED and select it if it is found. | |
4209 | # Check for GNU $ac_path_SED | |
4210 | case `"$ac_path_SED" --version 2>&1` in | |
4211 | *GNU*) | |
4212 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
4213 | *) | |
4214 | ac_count=0 | |
4215 | $as_echo_n 0123456789 >"conftest.in" | |
4216 | while : | |
4217 | do | |
4218 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4219 | mv "conftest.tmp" "conftest.in" | |
4220 | cp "conftest.in" "conftest.nl" | |
4221 | $as_echo '' >> "conftest.nl" | |
4222 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4223 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4224 | ac_count=`expr $ac_count + 1` | |
4225 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
4226 | # Best one so far, save it but keep looking for a better one | |
4227 | ac_cv_path_SED="$ac_path_SED" | |
4228 | ac_path_SED_max=$ac_count | |
4229 | fi | |
4230 | # 10*(2^10) chars as input seems more than enough | |
4231 | test $ac_count -gt 10 && break | |
4232 | done | |
4233 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4234 | esac | |
4235 | ||
4236 | $ac_path_SED_found && break 3 | |
bf9f3bac BB |
4237 | done |
4238 | done | |
4239 | done | |
4240 | IFS=$as_save_IFS | |
8934764e BB |
4241 | if test -z "$ac_cv_path_SED"; then |
4242 | { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 | |
4243 | $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} | |
4244 | { (exit 1); exit 1; }; } | |
bf9f3bac | 4245 | fi |
8934764e BB |
4246 | else |
4247 | ac_cv_path_SED=$SED | |
4248 | fi | |
bf9f3bac BB |
4249 | |
4250 | fi | |
8934764e BB |
4251 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 |
4252 | $as_echo "$ac_cv_path_SED" >&6; } | |
4253 | SED="$ac_cv_path_SED" | |
4254 | rm -f conftest.sed | |
4255 | ||
4256 | test -z "$SED" && SED=sed | |
4257 | Xsed="$SED -e 1s/^X//" | |
4258 | ||
4259 | ||
bf9f3bac | 4260 | |
bf9f3bac | 4261 | |
bf9f3bac | 4262 | |
8934764e BB |
4263 | |
4264 | ||
4265 | ||
4266 | ||
4267 | ||
4268 | ||
4269 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 | |
4270 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
4271 | if test "${ac_cv_path_GREP+set}" = set; then | |
4272 | $as_echo_n "(cached) " >&6 | |
bf9f3bac | 4273 | else |
8934764e BB |
4274 | if test -z "$GREP"; then |
4275 | ac_path_GREP_found=false | |
4276 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4277 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4278 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4279 | do | |
4280 | IFS=$as_save_IFS | |
4281 | test -z "$as_dir" && as_dir=. | |
4282 | for ac_prog in grep ggrep; do | |
4283 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4284 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
4285 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
4286 | # Check for GNU ac_path_GREP and select it if it is found. | |
4287 | # Check for GNU $ac_path_GREP | |
4288 | case `"$ac_path_GREP" --version 2>&1` in | |
4289 | *GNU*) | |
4290 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4291 | *) | |
4292 | ac_count=0 | |
4293 | $as_echo_n 0123456789 >"conftest.in" | |
4294 | while : | |
4295 | do | |
4296 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4297 | mv "conftest.tmp" "conftest.in" | |
4298 | cp "conftest.in" "conftest.nl" | |
4299 | $as_echo 'GREP' >> "conftest.nl" | |
4300 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4301 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4302 | ac_count=`expr $ac_count + 1` | |
4303 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4304 | # Best one so far, save it but keep looking for a better one | |
4305 | ac_cv_path_GREP="$ac_path_GREP" | |
4306 | ac_path_GREP_max=$ac_count | |
bf9f3bac | 4307 | fi |
8934764e BB |
4308 | # 10*(2^10) chars as input seems more than enough |
4309 | test $ac_count -gt 10 && break | |
4310 | done | |
4311 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4312 | esac | |
4313 | ||
4314 | $ac_path_GREP_found && break 3 | |
4315 | done | |
4316 | done | |
4317 | done | |
4318 | IFS=$as_save_IFS | |
4319 | if test -z "$ac_cv_path_GREP"; then | |
4320 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
4321 | $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
4322 | { (exit 1); exit 1; }; } | |
4323 | fi | |
4324 | else | |
4325 | ac_cv_path_GREP=$GREP | |
bf9f3bac | 4326 | fi |
bf9f3bac | 4327 | |
8934764e BB |
4328 | fi |
4329 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 | |
4330 | $as_echo "$ac_cv_path_GREP" >&6; } | |
4331 | GREP="$ac_cv_path_GREP" | |
bf9f3bac BB |
4332 | |
4333 | ||
8934764e BB |
4334 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
4335 | $as_echo_n "checking for egrep... " >&6; } | |
4336 | if test "${ac_cv_path_EGREP+set}" = set; then | |
4337 | $as_echo_n "(cached) " >&6 | |
bf9f3bac | 4338 | else |
8934764e BB |
4339 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
4340 | then ac_cv_path_EGREP="$GREP -E" | |
4341 | else | |
4342 | if test -z "$EGREP"; then | |
4343 | ac_path_EGREP_found=false | |
4344 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4345 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4346 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4347 | do | |
4348 | IFS=$as_save_IFS | |
4349 | test -z "$as_dir" && as_dir=. | |
4350 | for ac_prog in egrep; do | |
4351 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4352 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4353 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
4354 | # Check for GNU ac_path_EGREP and select it if it is found. | |
4355 | # Check for GNU $ac_path_EGREP | |
4356 | case `"$ac_path_EGREP" --version 2>&1` in | |
4357 | *GNU*) | |
4358 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4359 | *) | |
4360 | ac_count=0 | |
4361 | $as_echo_n 0123456789 >"conftest.in" | |
4362 | while : | |
4363 | do | |
4364 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4365 | mv "conftest.tmp" "conftest.in" | |
4366 | cp "conftest.in" "conftest.nl" | |
4367 | $as_echo 'EGREP' >> "conftest.nl" | |
4368 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4369 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4370 | ac_count=`expr $ac_count + 1` | |
4371 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4372 | # Best one so far, save it but keep looking for a better one | |
4373 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4374 | ac_path_EGREP_max=$ac_count | |
4375 | fi | |
4376 | # 10*(2^10) chars as input seems more than enough | |
4377 | test $ac_count -gt 10 && break | |
4378 | done | |
4379 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4380 | esac | |
4381 | ||
4382 | $ac_path_EGREP_found && break 3 | |
4383 | done | |
4384 | done | |
4385 | done | |
4386 | IFS=$as_save_IFS | |
4387 | if test -z "$ac_cv_path_EGREP"; then | |
4388 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
4389 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
4390 | { (exit 1); exit 1; }; } | |
4391 | fi | |
bf9f3bac | 4392 | else |
8934764e BB |
4393 | ac_cv_path_EGREP=$EGREP |
4394 | fi | |
4395 | ||
4396 | fi | |
4397 | fi | |
4398 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | |
4399 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4400 | EGREP="$ac_cv_path_EGREP" | |
4401 | ||
4402 | ||
4403 | { $as_echo "$as_me:$LINENO: checking for fgrep" >&5 | |
4404 | $as_echo_n "checking for fgrep... " >&6; } | |
4405 | if test "${ac_cv_path_FGREP+set}" = set; then | |
4406 | $as_echo_n "(cached) " >&6 | |
4407 | else | |
4408 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | |
4409 | then ac_cv_path_FGREP="$GREP -F" | |
4410 | else | |
4411 | if test -z "$FGREP"; then | |
4412 | ac_path_FGREP_found=false | |
4413 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4414 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4415 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4416 | do | |
4417 | IFS=$as_save_IFS | |
4418 | test -z "$as_dir" && as_dir=. | |
4419 | for ac_prog in fgrep; do | |
4420 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4421 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4422 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue | |
4423 | # Check for GNU ac_path_FGREP and select it if it is found. | |
4424 | # Check for GNU $ac_path_FGREP | |
4425 | case `"$ac_path_FGREP" --version 2>&1` in | |
4426 | *GNU*) | |
4427 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
4428 | *) | |
4429 | ac_count=0 | |
4430 | $as_echo_n 0123456789 >"conftest.in" | |
4431 | while : | |
4432 | do | |
4433 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4434 | mv "conftest.tmp" "conftest.in" | |
4435 | cp "conftest.in" "conftest.nl" | |
4436 | $as_echo 'FGREP' >> "conftest.nl" | |
4437 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4438 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4439 | ac_count=`expr $ac_count + 1` | |
4440 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
4441 | # Best one so far, save it but keep looking for a better one | |
4442 | ac_cv_path_FGREP="$ac_path_FGREP" | |
4443 | ac_path_FGREP_max=$ac_count | |
4444 | fi | |
4445 | # 10*(2^10) chars as input seems more than enough | |
4446 | test $ac_count -gt 10 && break | |
4447 | done | |
4448 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4449 | esac | |
4450 | ||
4451 | $ac_path_FGREP_found && break 3 | |
4452 | done | |
4453 | done | |
4454 | done | |
4455 | IFS=$as_save_IFS | |
4456 | if test -z "$ac_cv_path_FGREP"; then | |
4457 | { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
4458 | $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
4459 | { (exit 1); exit 1; }; } | |
4460 | fi | |
4461 | else | |
4462 | ac_cv_path_FGREP=$FGREP | |
4463 | fi | |
4464 | ||
4465 | fi | |
4466 | fi | |
4467 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 | |
4468 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
4469 | FGREP="$ac_cv_path_FGREP" | |
4470 | ||
4471 | ||
4472 | test -z "$GREP" && GREP=grep | |
4473 | ||
4474 | ||
4475 | ||
4476 | ||
4477 | ||
4478 | ||
4479 | ||
4480 | ||
4481 | ||
4482 | ||
4483 | ||
4484 | ||
4485 | ||
4486 | ||
4487 | ||
4488 | ||
4489 | ||
4490 | ||
4491 | ||
4492 | # Check whether --with-gnu-ld was given. | |
4493 | if test "${with_gnu_ld+set}" = set; then | |
4494 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
4495 | else | |
4496 | with_gnu_ld=no | |
4497 | fi | |
4498 | ||
4499 | ac_prog=ld | |
4500 | if test "$GCC" = yes; then | |
4501 | # Check if gcc -print-prog-name=ld gives a path. | |
4502 | { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | |
4503 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
4504 | case $host in | |
4505 | *-*-mingw*) | |
4506 | # gcc leaves a trailing carriage return which upsets mingw | |
4507 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
4508 | *) | |
4509 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
4510 | esac | |
4511 | case $ac_prog in | |
4512 | # Accept absolute paths. | |
4513 | [\\/]* | ?:[\\/]*) | |
4514 | re_direlt='/[^/][^/]*/\.\./' | |
4515 | # Canonicalize the pathname of ld | |
4516 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
4517 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
4518 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
4519 | done | |
4520 | test -z "$LD" && LD="$ac_prog" | |
4521 | ;; | |
4522 | "") | |
4523 | # If it fails, then pretend we aren't using GCC. | |
4524 | ac_prog=ld | |
4525 | ;; | |
4526 | *) | |
4527 | # If it is relative, then search for the first ld in PATH. | |
4528 | with_gnu_ld=unknown | |
4529 | ;; | |
4530 | esac | |
4531 | elif test "$with_gnu_ld" = yes; then | |
4532 | { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
4533 | $as_echo_n "checking for GNU ld... " >&6; } | |
4534 | else | |
4535 | { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
4536 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
bf9f3bac BB |
4537 | fi |
4538 | if test "${lt_cv_path_LD+set}" = set; then | |
8934764e | 4539 | $as_echo_n "(cached) " >&6 |
bf9f3bac BB |
4540 | else |
4541 | if test -z "$LD"; then | |
4542 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4543 | for ac_dir in $PATH; do | |
4544 | IFS="$lt_save_ifs" | |
4545 | test -z "$ac_dir" && ac_dir=. | |
4546 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
4547 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
4548 | # Check to see if the program is GNU ld. I'd rather use --version, | |
4549 | # but apparently some variants of GNU ld only accept -v. | |
4550 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
4551 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
4552 | *GNU* | *'with BFD'*) | |
4553 | test "$with_gnu_ld" != no && break | |
4554 | ;; | |
4555 | *) | |
4556 | test "$with_gnu_ld" != yes && break | |
4557 | ;; | |
4558 | esac | |
4559 | fi | |
4560 | done | |
4561 | IFS="$lt_save_ifs" | |
4562 | else | |
4563 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
4564 | fi | |
4565 | fi | |
4566 | ||
4567 | LD="$lt_cv_path_LD" | |
4568 | if test -n "$LD"; then | |
8934764e BB |
4569 | { $as_echo "$as_me:$LINENO: result: $LD" >&5 |
4570 | $as_echo "$LD" >&6; } | |
bf9f3bac | 4571 | else |
8934764e BB |
4572 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4573 | $as_echo "no" >&6; } | |
bf9f3bac | 4574 | fi |
8934764e BB |
4575 | test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
4576 | $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
bf9f3bac | 4577 | { (exit 1); exit 1; }; } |
8934764e BB |
4578 | { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
4579 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
bf9f3bac | 4580 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
8934764e | 4581 | $as_echo_n "(cached) " >&6 |
bf9f3bac BB |
4582 | else |
4583 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
4584 | case `$LD -v 2>&1 </dev/null` in | |
4585 | *GNU* | *'with BFD'*) | |
4586 | lt_cv_prog_gnu_ld=yes | |
4587 | ;; | |
4588 | *) | |
4589 | lt_cv_prog_gnu_ld=no | |
4590 | ;; | |
4591 | esac | |
4592 | fi | |
8934764e BB |
4593 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
4594 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
bf9f3bac BB |
4595 | with_gnu_ld=$lt_cv_prog_gnu_ld |
4596 | ||
4597 | ||
bf9f3bac | 4598 | |
8934764e BB |
4599 | |
4600 | ||
4601 | ||
4602 | ||
4603 | ||
4604 | ||
4605 | { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
4606 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
bf9f3bac | 4607 | if test "${lt_cv_path_NM+set}" = set; then |
8934764e | 4608 | $as_echo_n "(cached) " >&6 |
bf9f3bac BB |
4609 | else |
4610 | if test -n "$NM"; then | |
4611 | # Let the user override the test. | |
4612 | lt_cv_path_NM="$NM" | |
4613 | else | |
4614 | lt_nm_to_check="${ac_tool_prefix}nm" | |
4615 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
4616 | lt_nm_to_check="$lt_nm_to_check nm" | |
4617 | fi | |
4618 | for lt_tmp_nm in $lt_nm_to_check; do | |
4619 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4620 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
4621 | IFS="$lt_save_ifs" | |
4622 | test -z "$ac_dir" && ac_dir=. | |
4623 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
4624 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
4625 | # Check to see if the nm accepts a BSD-compat flag. | |
4626 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
4627 | # nm: unknown option "B" ignored | |
4628 | # Tru64's nm complains that /dev/null is an invalid object file | |
4629 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
4630 | */dev/null* | *'Invalid file or object type'*) | |
4631 | lt_cv_path_NM="$tmp_nm -B" | |
4632 | break | |
4633 | ;; | |
4634 | *) | |
4635 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
4636 | */dev/null*) | |
4637 | lt_cv_path_NM="$tmp_nm -p" | |
4638 | break | |
4639 | ;; | |
4640 | *) | |
4641 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
4642 | continue # so that we can try to find one that supports BSD flags | |
4643 | ;; | |
4644 | esac | |
4645 | ;; | |
4646 | esac | |
4647 | fi | |
4648 | done | |
4649 | IFS="$lt_save_ifs" | |
4650 | done | |
8934764e | 4651 | : ${lt_cv_path_NM=no} |
bf9f3bac BB |
4652 | fi |
4653 | fi | |
8934764e BB |
4654 | { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
4655 | $as_echo "$lt_cv_path_NM" >&6; } | |
4656 | if test "$lt_cv_path_NM" != "no"; then | |
4657 | NM="$lt_cv_path_NM" | |
4658 | else | |
4659 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
4660 | if test -n "$ac_tool_prefix"; then | |
4661 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
4662 | do | |
4663 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4664 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4665 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4666 | $as_echo_n "checking for $ac_word... " >&6; } | |
4667 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then | |
4668 | $as_echo_n "(cached) " >&6 | |
4669 | else | |
4670 | if test -n "$DUMPBIN"; then | |
4671 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
4672 | else | |
4673 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4674 | for as_dir in $PATH | |
4675 | do | |
4676 | IFS=$as_save_IFS | |
4677 | test -z "$as_dir" && as_dir=. | |
4678 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4679 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4680 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | |
4681 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4682 | break 2 | |
4683 | fi | |
4684 | done | |
4685 | done | |
4686 | IFS=$as_save_IFS | |
bf9f3bac | 4687 | |
8934764e BB |
4688 | fi |
4689 | fi | |
4690 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
4691 | if test -n "$DUMPBIN"; then | |
4692 | { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5 | |
4693 | $as_echo "$DUMPBIN" >&6; } | |
bf9f3bac | 4694 | else |
8934764e BB |
4695 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4696 | $as_echo "no" >&6; } | |
bf9f3bac BB |
4697 | fi |
4698 | ||
bf9f3bac | 4699 | |
8934764e BB |
4700 | test -n "$DUMPBIN" && break |
4701 | done | |
4702 | fi | |
4703 | if test -z "$DUMPBIN"; then | |
4704 | ac_ct_DUMPBIN=$DUMPBIN | |
4705 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
4706 | do | |
4707 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4708 | set dummy $ac_prog; ac_word=$2 | |
4709 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4710 | $as_echo_n "checking for $ac_word... " >&6; } | |
4711 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then | |
4712 | $as_echo_n "(cached) " >&6 | |
4713 | else | |
4714 | if test -n "$ac_ct_DUMPBIN"; then | |
4715 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
4716 | else | |
4717 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4718 | for as_dir in $PATH | |
4719 | do | |
4720 | IFS=$as_save_IFS | |
4721 | test -z "$as_dir" && as_dir=. | |
4722 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4723 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4724 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | |
4725 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4726 | break 2 | |
4727 | fi | |
4728 | done | |
4729 | done | |
4730 | IFS=$as_save_IFS | |
bf9f3bac | 4731 | |
8934764e BB |
4732 | fi |
4733 | fi | |
4734 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
4735 | if test -n "$ac_ct_DUMPBIN"; then | |
4736 | { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 | |
4737 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
4738 | else | |
4739 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
4740 | $as_echo "no" >&6; } | |
4741 | fi | |
bf9f3bac | 4742 | |
bf9f3bac | 4743 | |
8934764e BB |
4744 | test -n "$ac_ct_DUMPBIN" && break |
4745 | done | |
bf9f3bac | 4746 | |
8934764e BB |
4747 | if test "x$ac_ct_DUMPBIN" = x; then |
4748 | DUMPBIN=":" | |
4749 | else | |
4750 | case $cross_compiling:$ac_tool_warned in | |
4751 | yes:) | |
4752 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4753 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4754 | ac_tool_warned=yes ;; | |
4755 | esac | |
4756 | DUMPBIN=$ac_ct_DUMPBIN | |
4757 | fi | |
4758 | fi | |
bf9f3bac | 4759 | |
bf9f3bac | 4760 | |
8934764e BB |
4761 | if test "$DUMPBIN" != ":"; then |
4762 | NM="$DUMPBIN" | |
bf9f3bac | 4763 | fi |
8934764e BB |
4764 | fi |
4765 | test -z "$NM" && NM=nm | |
bf9f3bac | 4766 | |
bf9f3bac | 4767 | |
bf9f3bac | 4768 | |
bf9f3bac | 4769 | |
bf9f3bac | 4770 | |
bf9f3bac | 4771 | |
8934764e BB |
4772 | { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 |
4773 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
4774 | if test "${lt_cv_nm_interface+set}" = set; then | |
4775 | $as_echo_n "(cached) " >&6 | |
4776 | else | |
4777 | lt_cv_nm_interface="BSD nm" | |
4778 | echo "int some_variable = 0;" > conftest.$ac_ext | |
287b2fb1 | 4779 | (eval echo "\"\$as_me:4779: $ac_compile\"" >&5) |
8934764e BB |
4780 | (eval "$ac_compile" 2>conftest.err) |
4781 | cat conftest.err >&5 | |
287b2fb1 | 4782 | (eval echo "\"\$as_me:4782: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
8934764e BB |
4783 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
4784 | cat conftest.err >&5 | |
287b2fb1 | 4785 | (eval echo "\"\$as_me:4785: output\"" >&5) |
8934764e BB |
4786 | cat conftest.out >&5 |
4787 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
4788 | lt_cv_nm_interface="MS dumpbin" | |
bf9f3bac | 4789 | fi |
8934764e BB |
4790 | rm -f conftest* |
4791 | fi | |
4792 | { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 | |
4793 | $as_echo "$lt_cv_nm_interface" >&6; } | |
bf9f3bac | 4794 | |
8934764e BB |
4795 | { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
4796 | $as_echo_n "checking whether ln -s works... " >&6; } | |
4797 | LN_S=$as_ln_s | |
4798 | if test "$LN_S" = "ln -s"; then | |
4799 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
4800 | $as_echo "yes" >&6; } | |
4801 | else | |
4802 | { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
4803 | $as_echo "no, using $LN_S" >&6; } | |
4804 | fi | |
bf9f3bac | 4805 | |
8934764e BB |
4806 | # find the maximum length of command line arguments |
4807 | { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 | |
4808 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
4809 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then | |
4810 | $as_echo_n "(cached) " >&6 | |
4811 | else | |
4812 | i=0 | |
4813 | teststring="ABCD" | |
bf9f3bac | 4814 | |
8934764e BB |
4815 | case $build_os in |
4816 | msdosdjgpp*) | |
4817 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
4818 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
4819 | # during glob expansion). Even if it were fixed, the result of this | |
4820 | # check would be larger than it should be. | |
4821 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
4822 | ;; | |
bf9f3bac | 4823 | |
8934764e BB |
4824 | gnu*) |
4825 | # Under GNU Hurd, this test is not required because there is | |
4826 | # no limit to the length of command line arguments. | |
4827 | # Libtool will interpret -1 as no limit whatsoever | |
4828 | lt_cv_sys_max_cmd_len=-1; | |
4829 | ;; | |
bf9f3bac | 4830 | |
8934764e BB |
4831 | cygwin* | mingw* | cegcc*) |
4832 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
4833 | # about 5 minutes as the teststring grows exponentially. | |
4834 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
4835 | # you end up with a "frozen" computer, even though with patience | |
4836 | # the test eventually succeeds (with a max line length of 256k). | |
4837 | # Instead, let's just punt: use the minimum linelength reported by | |
4838 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
4839 | lt_cv_sys_max_cmd_len=8192; | |
4840 | ;; | |
bf9f3bac | 4841 | |
8934764e BB |
4842 | amigaos*) |
4843 | # On AmigaOS with pdksh, this test takes hours, literally. | |
4844 | # So we just punt and use a minimum line length of 8192. | |
4845 | lt_cv_sys_max_cmd_len=8192; | |
bf9f3bac | 4846 | ;; |
8934764e BB |
4847 | |
4848 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
4849 | # This has been around since 386BSD, at least. Likely further. | |
4850 | if test -x /sbin/sysctl; then | |
4851 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
4852 | elif test -x /usr/sbin/sysctl; then | |
4853 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
4854 | else | |
4855 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
4856 | fi | |
4857 | # And add a safety zone | |
4858 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4859 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
bf9f3bac | 4860 | ;; |
8934764e BB |
4861 | |
4862 | interix*) | |
4863 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
4864 | lt_cv_sys_max_cmd_len=196608 | |
bf9f3bac | 4865 | ;; |
8934764e BB |
4866 | |
4867 | osf*) | |
4868 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
4869 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
4870 | # nice to cause kernel panics so lets avoid the loop below. | |
4871 | # First set a reasonable default. | |
4872 | lt_cv_sys_max_cmd_len=16384 | |
4873 | # | |
4874 | if test -x /sbin/sysconfig; then | |
4875 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
4876 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
4877 | esac | |
4878 | fi | |
bf9f3bac | 4879 | ;; |
8934764e BB |
4880 | sco3.2v5*) |
4881 | lt_cv_sys_max_cmd_len=102400 | |
bf9f3bac | 4882 | ;; |
8934764e BB |
4883 | sysv5* | sco5v6* | sysv4.2uw2*) |
4884 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
4885 | if test -n "$kargmax"; then | |
4886 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
4887 | else | |
4888 | lt_cv_sys_max_cmd_len=32768 | |
4889 | fi | |
4890 | ;; | |
4891 | *) | |
4892 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
4893 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
4894 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4895 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4896 | else | |
4897 | # Make teststring a little bigger before we do anything with it. | |
4898 | # a 1K string should be a reasonable start. | |
4899 | for i in 1 2 3 4 5 6 7 8 ; do | |
4900 | teststring=$teststring$teststring | |
4901 | done | |
4902 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
4903 | # If test is not a shell built-in, we'll probably end up computing a | |
4904 | # maximum length that is only half of the actual maximum length, but | |
4905 | # we can't tell. | |
4906 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ | |
4907 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && | |
4908 | test $i != 17 # 1/2 MB should be enough | |
4909 | do | |
4910 | i=`expr $i + 1` | |
4911 | teststring=$teststring$teststring | |
4912 | done | |
4913 | # Only check the string length outside the loop. | |
4914 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
4915 | teststring= | |
4916 | # Add a significant safety factor because C++ compilers can tack on | |
4917 | # massive amounts of additional arguments before passing them to the | |
4918 | # linker. It appears as though 1/2 is a usable value. | |
4919 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
4920 | fi | |
bf9f3bac BB |
4921 | ;; |
4922 | esac | |
bf9f3bac | 4923 | |
8934764e | 4924 | fi |
bf9f3bac | 4925 | |
8934764e BB |
4926 | if test -n $lt_cv_sys_max_cmd_len ; then |
4927 | { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 | |
4928 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
4929 | else | |
4930 | { $as_echo "$as_me:$LINENO: result: none" >&5 | |
4931 | $as_echo "none" >&6; } | |
bf9f3bac | 4932 | fi |
8934764e | 4933 | max_cmd_len=$lt_cv_sys_max_cmd_len |
bf9f3bac BB |
4934 | |
4935 | ||
4936 | ||
4937 | ||
bf9f3bac | 4938 | |
bf9f3bac | 4939 | |
8934764e BB |
4940 | : ${CP="cp -f"} |
4941 | : ${MV="mv -f"} | |
4942 | : ${RM="rm -f"} | |
bf9f3bac | 4943 | |
8934764e BB |
4944 | { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 |
4945 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
4946 | # Try some XSI features | |
4947 | xsi_shell=no | |
4948 | ( _lt_dummy="a/b/c" | |
4949 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
4950 | = c,a/b,, \ | |
4951 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
4952 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
4953 | && xsi_shell=yes | |
4954 | { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5 | |
4955 | $as_echo "$xsi_shell" >&6; } | |
bf9f3bac | 4956 | |
bf9f3bac | 4957 | |
8934764e BB |
4958 | { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 |
4959 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
4960 | lt_shell_append=no | |
4961 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
4962 | >/dev/null 2>&1 \ | |
4963 | && lt_shell_append=yes | |
4964 | { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5 | |
4965 | $as_echo "$lt_shell_append" >&6; } | |
bf9f3bac | 4966 | |
8934764e BB |
4967 | |
4968 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
4969 | lt_unset=unset | |
4970 | else | |
4971 | lt_unset=false | |
4972 | fi | |
4973 | ||
4974 | ||
4975 | ||
4976 | ||
4977 | ||
4978 | # test EBCDIC or ASCII | |
4979 | case `echo X|tr X '\101'` in | |
4980 | A) # ASCII based system | |
4981 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
4982 | lt_SP2NL='tr \040 \012' | |
4983 | lt_NL2SP='tr \015\012 \040\040' | |
bf9f3bac | 4984 | ;; |
8934764e BB |
4985 | *) # EBCDIC based system |
4986 | lt_SP2NL='tr \100 \n' | |
4987 | lt_NL2SP='tr \r\n \100\100' | |
bf9f3bac | 4988 | ;; |
8934764e BB |
4989 | esac |
4990 | ||
bf9f3bac | 4991 | |
bf9f3bac | 4992 | |
bf9f3bac | 4993 | |
bf9f3bac | 4994 | |
bf9f3bac | 4995 | |
bf9f3bac | 4996 | |
bf9f3bac | 4997 | |
8934764e BB |
4998 | |
4999 | { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 | |
5000 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
5001 | if test "${lt_cv_ld_reload_flag+set}" = set; then | |
5002 | $as_echo_n "(cached) " >&6 | |
5003 | else | |
5004 | lt_cv_ld_reload_flag='-r' | |
bf9f3bac | 5005 | fi |
8934764e BB |
5006 | { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
5007 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
5008 | reload_flag=$lt_cv_ld_reload_flag | |
5009 | case $reload_flag in | |
5010 | "" | " "*) ;; | |
5011 | *) reload_flag=" $reload_flag" ;; | |
5012 | esac | |
5013 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5014 | case $host_os in | |
5015 | darwin*) | |
5016 | if test "$GCC" = yes; then | |
5017 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
5018 | else | |
5019 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5020 | fi | |
5021 | ;; | |
5022 | esac | |
bf9f3bac BB |
5023 | |
5024 | ||
bf9f3bac | 5025 | |
bf9f3bac BB |
5026 | |
5027 | ||
8934764e BB |
5028 | |
5029 | ||
5030 | ||
5031 | ||
5032 | if test -n "$ac_tool_prefix"; then | |
5033 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
5034 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
5035 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5036 | $as_echo_n "checking for $ac_word... " >&6; } | |
5037 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then | |
5038 | $as_echo_n "(cached) " >&6 | |
bf9f3bac | 5039 | else |
8934764e BB |
5040 | if test -n "$OBJDUMP"; then |
5041 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
5042 | else | |
5043 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5044 | for as_dir in $PATH | |
bf9f3bac | 5045 | do |
8934764e BB |
5046 | IFS=$as_save_IFS |
5047 | test -z "$as_dir" && as_dir=. | |
5048 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5049 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5050 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
5051 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5052 | break 2 | |
bf9f3bac | 5053 | fi |
8934764e BB |
5054 | done |
5055 | done | |
5056 | IFS=$as_save_IFS | |
bf9f3bac | 5057 | |
bf9f3bac | 5058 | fi |
bf9f3bac | 5059 | fi |
8934764e BB |
5060 | OBJDUMP=$ac_cv_prog_OBJDUMP |
5061 | if test -n "$OBJDUMP"; then | |
5062 | { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5 | |
5063 | $as_echo "$OBJDUMP" >&6; } | |
bf9f3bac | 5064 | else |
8934764e BB |
5065 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5066 | $as_echo "no" >&6; } | |
bf9f3bac BB |
5067 | fi |
5068 | ||
bf9f3bac BB |
5069 | |
5070 | fi | |
8934764e BB |
5071 | if test -z "$ac_cv_prog_OBJDUMP"; then |
5072 | ac_ct_OBJDUMP=$OBJDUMP | |
5073 | # Extract the first word of "objdump", so it can be a program name with args. | |
5074 | set dummy objdump; ac_word=$2 | |
5075 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5076 | $as_echo_n "checking for $ac_word... " >&6; } | |
5077 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then | |
5078 | $as_echo_n "(cached) " >&6 | |
bf9f3bac | 5079 | else |
8934764e BB |
5080 | if test -n "$ac_ct_OBJDUMP"; then |
5081 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
5082 | else | |
5083 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5084 | for as_dir in $PATH | |
bf9f3bac | 5085 | do |
8934764e BB |
5086 | IFS=$as_save_IFS |
5087 | test -z "$as_dir" && as_dir=. | |
5088 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5089 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5090 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
5091 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5092 | break 2 | |
bf9f3bac | 5093 | fi |
8934764e BB |
5094 | done |
5095 | done | |
5096 | IFS=$as_save_IFS | |
5097 | ||
bf9f3bac | 5098 | fi |
8934764e BB |
5099 | fi |
5100 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
5101 | if test -n "$ac_ct_OBJDUMP"; then | |
5102 | { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 | |
5103 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
bf9f3bac | 5104 | else |
8934764e BB |
5105 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5106 | $as_echo "no" >&6; } | |
bf9f3bac | 5107 | fi |
bf9f3bac | 5108 | |
8934764e BB |
5109 | if test "x$ac_ct_OBJDUMP" = x; then |
5110 | OBJDUMP="false" | |
bf9f3bac | 5111 | else |
8934764e BB |
5112 | case $cross_compiling:$ac_tool_warned in |
5113 | yes:) | |
5114 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5115 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5116 | ac_tool_warned=yes ;; | |
5117 | esac | |
5118 | OBJDUMP=$ac_ct_OBJDUMP | |
bf9f3bac BB |
5119 | fi |
5120 | else | |
8934764e | 5121 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
bf9f3bac | 5122 | fi |
bf9f3bac | 5123 | |
8934764e | 5124 | test -z "$OBJDUMP" && OBJDUMP=objdump |
bf9f3bac | 5125 | |
bf9f3bac | 5126 | |
bf9f3bac BB |
5127 | |
5128 | ||
bf9f3bac | 5129 | |
bf9f3bac | 5130 | |
bf9f3bac | 5131 | |
bf9f3bac | 5132 | |
bf9f3bac | 5133 | |
8934764e BB |
5134 | { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 |
5135 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
5136 | if test "${lt_cv_deplibs_check_method+set}" = set; then | |
5137 | $as_echo_n "(cached) " >&6 | |
bf9f3bac | 5138 | else |
8934764e BB |
5139 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
5140 | lt_cv_file_magic_test_file= | |
5141 | lt_cv_deplibs_check_method='unknown' | |
5142 | # Need to set the preceding variable on all platforms that support | |
5143 | # interlibrary dependencies. | |
5144 | # 'none' -- dependencies not supported. | |
5145 | # `unknown' -- same as none, but documents that we really don't know. | |
5146 | # 'pass_all' -- all dependencies passed with no checks. | |
5147 | # 'test_compile' -- check by making test program. | |
5148 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
5149 | # which responds to the $file_magic_cmd with a given extended regex. | |
5150 | # If you have `file' or equivalent on your system and you're not sure | |
5151 | # whether `pass_all' will *always* work, you probably want this one. | |
bf9f3bac | 5152 | |
8934764e BB |
5153 | case $host_os in |
5154 | aix[4-9]*) | |
5155 | lt_cv_deplibs_check_method=pass_all | |
5156 | ;; | |
bf9f3bac | 5157 | |
8934764e BB |
5158 | beos*) |
5159 | lt_cv_deplibs_check_method=pass_all | |
5160 | ;; | |
bf9f3bac | 5161 | |
8934764e BB |
5162 | bsdi[45]*) |
5163 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
5164 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
5165 | lt_cv_file_magic_test_file=/shlib/libc.so | |
5166 | ;; | |
bf9f3bac | 5167 | |
8934764e BB |
5168 | cygwin*) |
5169 | # func_win32_libid is a shell function defined in ltmain.sh | |
5170 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5171 | lt_cv_file_magic_cmd='func_win32_libid' | |
5172 | ;; | |
bf9f3bac | 5173 | |
8934764e BB |
5174 | mingw* | pw32*) |
5175 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
5176 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
5177 | # unless we find 'file', for example because we are cross-compiling. | |
5178 | if ( file / ) >/dev/null 2>&1; then | |
5179 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5180 | lt_cv_file_magic_cmd='func_win32_libid' | |
5181 | else | |
5182 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
5183 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5184 | fi | |
5185 | ;; | |
bf9f3bac | 5186 | |
8934764e BB |
5187 | cegcc) |
5188 | # use the weaker test based on 'objdump'. See mingw*. | |
5189 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
5190 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5191 | ;; | |
bf9f3bac | 5192 | |
8934764e BB |
5193 | darwin* | rhapsody*) |
5194 | lt_cv_deplibs_check_method=pass_all | |
5195 | ;; | |
bf9f3bac | 5196 | |
8934764e BB |
5197 | freebsd* | dragonfly*) |
5198 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5199 | case $host_cpu in | |
5200 | i*86 ) | |
5201 | # Not sure whether the presence of OpenBSD here was a mistake. | |
5202 | # Let's accept both of them until this is cleared up. | |
5203 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
5204 | lt_cv_file_magic_cmd=/usr/bin/file | |
5205 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
5206 | ;; | |
5207 | esac | |
5208 | else | |
5209 | lt_cv_deplibs_check_method=pass_all | |
5210 | fi | |
5211 | ;; | |
bf9f3bac | 5212 | |
8934764e BB |
5213 | gnu*) |
5214 | lt_cv_deplibs_check_method=pass_all | |
5215 | ;; | |
bf9f3bac | 5216 | |
8934764e BB |
5217 | hpux10.20* | hpux11*) |
5218 | lt_cv_file_magic_cmd=/usr/bin/file | |
5219 | case $host_cpu in | |
5220 | ia64*) | |
5221 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
5222 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
5223 | ;; | |
5224 | hppa*64*) | |
5225 | 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]' | |
5226 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
5227 | ;; | |
5228 | *) | |
5229 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
5230 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
5231 | ;; | |
5232 | esac | |
5233 | ;; | |
bf9f3bac | 5234 | |
8934764e BB |
5235 | interix[3-9]*) |
5236 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
5237 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
5238 | ;; | |
bf9f3bac | 5239 | |
8934764e BB |
5240 | irix5* | irix6* | nonstopux*) |
5241 | case $LD in | |
5242 | *-32|*"-32 ") libmagic=32-bit;; | |
5243 | *-n32|*"-n32 ") libmagic=N32;; | |
5244 | *-64|*"-64 ") libmagic=64-bit;; | |
5245 | *) libmagic=never-match;; | |
5246 | esac | |
5247 | lt_cv_deplibs_check_method=pass_all | |
5248 | ;; | |
bf9f3bac | 5249 | |
8934764e BB |
5250 | # This must be Linux ELF. |
5251 | linux* | k*bsd*-gnu) | |
5252 | lt_cv_deplibs_check_method=pass_all | |
5253 | ;; | |
bf9f3bac | 5254 | |
8934764e BB |
5255 | netbsd*) |
5256 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5257 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5258 | else | |
5259 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
5260 | fi | |
5261 | ;; | |
bf9f3bac | 5262 | |
8934764e BB |
5263 | newos6*) |
5264 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
5265 | lt_cv_file_magic_cmd=/usr/bin/file | |
5266 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
5267 | ;; | |
bf9f3bac | 5268 | |
8934764e BB |
5269 | *nto* | *qnx*) |
5270 | lt_cv_deplibs_check_method=pass_all | |
5271 | ;; | |
bf9f3bac | 5272 | |
8934764e BB |
5273 | openbsd*) |
5274 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
5275 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
5276 | else | |
5277 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5278 | fi | |
5279 | ;; | |
bf9f3bac | 5280 | |
8934764e BB |
5281 | osf3* | osf4* | osf5*) |
5282 | lt_cv_deplibs_check_method=pass_all | |
5283 | ;; | |
bf9f3bac | 5284 | |
8934764e BB |
5285 | rdos*) |
5286 | lt_cv_deplibs_check_method=pass_all | |
5287 | ;; | |
bf9f3bac | 5288 | |
8934764e BB |
5289 | solaris*) |
5290 | lt_cv_deplibs_check_method=pass_all | |
5291 | ;; | |
bf9f3bac | 5292 | |
8934764e BB |
5293 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
5294 | lt_cv_deplibs_check_method=pass_all | |
5295 | ;; | |
bf9f3bac | 5296 | |
8934764e BB |
5297 | sysv4 | sysv4.3*) |
5298 | case $host_vendor in | |
5299 | motorola) | |
5300 | 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]' | |
5301 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
bf9f3bac | 5302 | ;; |
8934764e BB |
5303 | ncr) |
5304 | lt_cv_deplibs_check_method=pass_all | |
5305 | ;; | |
5306 | sequent) | |
5307 | lt_cv_file_magic_cmd='/bin/file' | |
5308 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
5309 | ;; | |
5310 | sni) | |
5311 | lt_cv_file_magic_cmd='/bin/file' | |
5312 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
5313 | lt_cv_file_magic_test_file=/lib/libc.so | |
5314 | ;; | |
5315 | siemens) | |
5316 | lt_cv_deplibs_check_method=pass_all | |
5317 | ;; | |
5318 | pc) | |
5319 | lt_cv_deplibs_check_method=pass_all | |
bf9f3bac | 5320 | ;; |
8934764e BB |
5321 | esac |
5322 | ;; | |
5323 | ||
5324 | tpf*) | |
5325 | lt_cv_deplibs_check_method=pass_all | |
5326 | ;; | |
bf9f3bac | 5327 | esac |
bf9f3bac BB |
5328 | |
5329 | fi | |
8934764e BB |
5330 | { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
5331 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
5332 | file_magic_cmd=$lt_cv_file_magic_cmd | |
5333 | deplibs_check_method=$lt_cv_deplibs_check_method | |
5334 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
5335 | ||
5336 | ||
5337 | ||
5338 | ||
5339 | ||
5340 | ||
5341 | ||
5342 | ||
5343 | ||
bf9f3bac | 5344 | |
bf9f3bac | 5345 | |
bf9f3bac | 5346 | |
bf9f3bac | 5347 | if test -n "$ac_tool_prefix"; then |
8934764e BB |
5348 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
5349 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
5350 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5351 | $as_echo_n "checking for $ac_word... " >&6; } | |
5352 | if test "${ac_cv_prog_AR+set}" = set; then | |
5353 | $as_echo_n "(cached) " >&6 | |
bf9f3bac | 5354 | else |
8934764e BB |
5355 | if test -n "$AR"; then |
5356 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
bf9f3bac BB |
5357 | else |
5358 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5359 | for as_dir in $PATH | |
5360 | do | |
5361 | IFS=$as_save_IFS | |
5362 | test -z "$as_dir" && as_dir=. | |
5363 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8934764e BB |
5364 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5365 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
5366 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
bf9f3bac BB |
5367 | break 2 |
5368 | fi | |
5369 | done | |
5370 | done | |
8934764e | 5371 | IFS=$as_save_IFS |
bf9f3bac BB |
5372 | |
5373 | fi | |
5374 | fi | |
8934764e BB |
5375 | AR=$ac_cv_prog_AR |
5376 | if test -n "$AR"; then | |
5377 | { $as_echo "$as_me:$LINENO: result: $AR" >&5 | |
5378 | $as_echo "$AR" >&6; } | |
bf9f3bac | 5379 | else |
8934764e BB |
5380 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5381 | $as_echo "no" >&6; } | |
bf9f3bac BB |
5382 | fi |
5383 | ||
8934764e | 5384 | |
bf9f3bac | 5385 | fi |
8934764e BB |
5386 | if test -z "$ac_cv_prog_AR"; then |
5387 | ac_ct_AR=$AR | |
5388 | # Extract the first word of "ar", so it can be a program name with args. | |
5389 | set dummy ar; ac_word=$2 | |
5390 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5391 | $as_echo_n "checking for $ac_word... " >&6; } | |
5392 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
5393 | $as_echo_n "(cached) " >&6 | |
bf9f3bac | 5394 | else |
8934764e BB |
5395 | if test -n "$ac_ct_AR"; then |
5396 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
bf9f3bac BB |
5397 | else |
5398 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5399 | for as_dir in $PATH | |
5400 | do | |
5401 | IFS=$as_save_IFS | |
5402 | test -z "$as_dir" && as_dir=. | |
5403 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8934764e BB |
5404 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5405 | ac_cv_prog_ac_ct_AR="ar" | |
5406 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
bf9f3bac BB |
5407 | break 2 |
5408 | fi | |
5409 | done | |
5410 | done | |
8934764e | 5411 | IFS=$as_save_IFS |
bf9f3bac BB |
5412 | |
5413 | fi | |
5414 | fi | |
8934764e BB |
5415 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
5416 | if test -n "$ac_ct_AR"; then | |
5417 | { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
5418 | $as_echo "$ac_ct_AR" >&6; } | |
bf9f3bac | 5419 | else |
8934764e BB |
5420 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5421 | $as_echo "no" >&6; } | |
bf9f3bac BB |
5422 | fi |
5423 | ||
8934764e BB |
5424 | if test "x$ac_ct_AR" = x; then |
5425 | AR="false" | |
5426 | else | |
5427 | case $cross_compiling:$ac_tool_warned in | |
5428 | yes:) | |
5429 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5430 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5431 | ac_tool_warned=yes ;; | |
5432 | esac | |
5433 | AR=$ac_ct_AR | |
5434 | fi | |
5435 | else | |
5436 | AR="$ac_cv_prog_AR" | |
bf9f3bac BB |
5437 | fi |
5438 | ||
8934764e BB |
5439 | test -z "$AR" && AR=ar |
5440 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
bf9f3bac | 5441 | |
bf9f3bac | 5442 | |
bf9f3bac | 5443 | |
bf9f3bac | 5444 | |
8934764e BB |
5445 | |
5446 | ||
5447 | ||
5448 | ||
5449 | ||
5450 | ||
5451 | ||
5452 | if test -n "$ac_tool_prefix"; then | |
5453 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
5454 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
5455 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5456 | $as_echo_n "checking for $ac_word... " >&6; } | |
5457 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
5458 | $as_echo_n "(cached) " >&6 | |
bf9f3bac | 5459 | else |
8934764e BB |
5460 | if test -n "$STRIP"; then |
5461 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
5462 | else | |
5463 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5464 | for as_dir in $PATH | |
5465 | do | |
5466 | IFS=$as_save_IFS | |
5467 | test -z "$as_dir" && as_dir=. | |
5468 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5469 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5470 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
5471 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5472 | break 2 | |
5473 | fi | |
5474 | done | |
5475 | done | |
5476 | IFS=$as_save_IFS | |
bf9f3bac | 5477 | |
bf9f3bac | 5478 | fi |
bf9f3bac | 5479 | fi |
8934764e BB |
5480 | STRIP=$ac_cv_prog_STRIP |
5481 | if test -n "$STRIP"; then | |
5482 | { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 | |
5483 | $as_echo "$STRIP" >&6; } | |
bf9f3bac | 5484 | else |
8934764e BB |
5485 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5486 | $as_echo "no" >&6; } | |
5487 | fi | |
bf9f3bac | 5488 | |
bf9f3bac | 5489 | |
8934764e BB |
5490 | fi |
5491 | if test -z "$ac_cv_prog_STRIP"; then | |
5492 | ac_ct_STRIP=$STRIP | |
5493 | # Extract the first word of "strip", so it can be a program name with args. | |
5494 | set dummy strip; ac_word=$2 | |
5495 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5496 | $as_echo_n "checking for $ac_word... " >&6; } | |
5497 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
5498 | $as_echo_n "(cached) " >&6 | |
bf9f3bac | 5499 | else |
8934764e BB |
5500 | if test -n "$ac_ct_STRIP"; then |
5501 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
5502 | else | |
5503 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5504 | for as_dir in $PATH | |
5505 | do | |
5506 | IFS=$as_save_IFS | |
5507 | test -z "$as_dir" && as_dir=. | |
5508 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5509 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5510 | ac_cv_prog_ac_ct_STRIP="strip" | |
5511 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5512 | break 2 | |
5513 | fi | |
5514 | done | |
5515 | done | |
5516 | IFS=$as_save_IFS | |
bf9f3bac | 5517 | |
bf9f3bac | 5518 | fi |
bf9f3bac | 5519 | fi |
8934764e BB |
5520 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
5521 | if test -n "$ac_ct_STRIP"; then | |
5522 | { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
5523 | $as_echo "$ac_ct_STRIP" >&6; } | |
bf9f3bac | 5524 | else |
8934764e BB |
5525 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5526 | $as_echo "no" >&6; } | |
5527 | fi | |
5528 | ||
5529 | if test "x$ac_ct_STRIP" = x; then | |
5530 | STRIP=":" | |
bf9f3bac | 5531 | else |
8934764e BB |
5532 | case $cross_compiling:$ac_tool_warned in |
5533 | yes:) | |
5534 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5535 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5536 | ac_tool_warned=yes ;; | |
5537 | esac | |
5538 | STRIP=$ac_ct_STRIP | |
bf9f3bac | 5539 | fi |
8934764e BB |
5540 | else |
5541 | STRIP="$ac_cv_prog_STRIP" | |
bf9f3bac | 5542 | fi |
bf9f3bac | 5543 | |
8934764e | 5544 | test -z "$STRIP" && STRIP=: |
bf9f3bac | 5545 | |
bf9f3bac | 5546 | |
bf9f3bac | 5547 | |
bf9f3bac | 5548 | |
bf9f3bac | 5549 | |
bf9f3bac | 5550 | |
8934764e BB |
5551 | if test -n "$ac_tool_prefix"; then |
5552 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5553 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5554 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5555 | $as_echo_n "checking for $ac_word... " >&6; } | |
5556 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
5557 | $as_echo_n "(cached) " >&6 | |
bf9f3bac | 5558 | else |
8934764e BB |
5559 | if test -n "$RANLIB"; then |
5560 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5561 | else | |
5562 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5563 | for as_dir in $PATH | |
5564 | do | |
5565 | IFS=$as_save_IFS | |
5566 | test -z "$as_dir" && as_dir=. | |
5567 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5568 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5569 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
5570 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5571 | break 2 | |
5572 | fi | |
5573 | done | |
5574 | done | |
5575 | IFS=$as_save_IFS | |
bf9f3bac BB |
5576 | |
5577 | fi | |
8934764e BB |
5578 | fi |
5579 | RANLIB=$ac_cv_prog_RANLIB | |
5580 | if test -n "$RANLIB"; then | |
5581 | { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
5582 | $as_echo "$RANLIB" >&6; } | |
bf9f3bac | 5583 | else |
8934764e BB |
5584 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5585 | $as_echo "no" >&6; } | |
bf9f3bac BB |
5586 | fi |
5587 | ||
5588 | ||
8934764e BB |
5589 | fi |
5590 | if test -z "$ac_cv_prog_RANLIB"; then | |
5591 | ac_ct_RANLIB=$RANLIB | |
5592 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5593 | set dummy ranlib; ac_word=$2 | |
5594 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5595 | $as_echo_n "checking for $ac_word... " >&6; } | |
5596 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
5597 | $as_echo_n "(cached) " >&6 | |
bf9f3bac | 5598 | else |
8934764e BB |
5599 | if test -n "$ac_ct_RANLIB"; then |
5600 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5601 | else | |
5602 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5603 | for as_dir in $PATH | |
bf9f3bac | 5604 | do |
8934764e BB |
5605 | IFS=$as_save_IFS |
5606 | test -z "$as_dir" && as_dir=. | |
5607 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5608 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5609 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
5610 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5611 | break 2 | |
bf9f3bac | 5612 | fi |
8934764e BB |
5613 | done |
5614 | done | |
5615 | IFS=$as_save_IFS | |
5616 | ||
bf9f3bac | 5617 | fi |
8934764e BB |
5618 | fi |
5619 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
5620 | if test -n "$ac_ct_RANLIB"; then | |
5621 | { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
5622 | $as_echo "$ac_ct_RANLIB" >&6; } | |
bf9f3bac | 5623 | else |
8934764e BB |
5624 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5625 | $as_echo "no" >&6; } | |
bf9f3bac | 5626 | fi |
bf9f3bac | 5627 | |
8934764e BB |
5628 | if test "x$ac_ct_RANLIB" = x; then |
5629 | RANLIB=":" | |
bf9f3bac | 5630 | else |
8934764e BB |
5631 | case $cross_compiling:$ac_tool_warned in |
5632 | yes:) | |
5633 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5634 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5635 | ac_tool_warned=yes ;; | |
5636 | esac | |
5637 | RANLIB=$ac_ct_RANLIB | |
bf9f3bac BB |
5638 | fi |
5639 | else | |
8934764e | 5640 | RANLIB="$ac_cv_prog_RANLIB" |
bf9f3bac | 5641 | fi |
bf9f3bac | 5642 | |
8934764e | 5643 | test -z "$RANLIB" && RANLIB=: |
bf9f3bac | 5644 | |
bf9f3bac | 5645 | |
bf9f3bac | 5646 | |
bf9f3bac | 5647 | |
bf9f3bac | 5648 | |
bf9f3bac | 5649 | |
8934764e BB |
5650 | # Determine commands to create old-style static archives. |
5651 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
5652 | old_postinstall_cmds='chmod 644 $oldlib' | |
5653 | old_postuninstall_cmds= | |
bf9f3bac | 5654 | |
8934764e BB |
5655 | if test -n "$RANLIB"; then |
5656 | case $host_os in | |
5657 | openbsd*) | |
5658 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
5659 | ;; | |
5660 | *) | |
5661 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
5662 | ;; | |
5663 | esac | |
5664 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
bf9f3bac BB |
5665 | fi |
5666 | ||
bf9f3bac | 5667 | |
bf9f3bac BB |
5668 | |
5669 | ||
bf9f3bac | 5670 | |
bf9f3bac | 5671 | |
bf9f3bac | 5672 | |
bf9f3bac | 5673 | |
bf9f3bac | 5674 | |
bf9f3bac BB |
5675 | |
5676 | ||
bf9f3bac | 5677 | |
bf9f3bac | 5678 | |
bf9f3bac | 5679 | |
bf9f3bac | 5680 | |
bf9f3bac | 5681 | |
bf9f3bac | 5682 | |
bf9f3bac | 5683 | |
bf9f3bac | 5684 | |
bf9f3bac BB |
5685 | |
5686 | ||
5687 | ||
bf9f3bac | 5688 | |
bf9f3bac | 5689 | |
bf9f3bac | 5690 | |
bf9f3bac | 5691 | |
bf9f3bac | 5692 | |
bf9f3bac | 5693 | |
bf9f3bac | 5694 | |
bf9f3bac | 5695 | |
bf9f3bac | 5696 | |
bf9f3bac | 5697 | |
bf9f3bac BB |
5698 | |
5699 | ||
8934764e BB |
5700 | # If no C compiler was specified, use CC. |
5701 | LTCC=${LTCC-"$CC"} | |
5702 | ||
5703 | # If no C compiler flags were specified, use CFLAGS. | |
5704 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
5705 | ||
5706 | # Allow CC to be a program name with arguments. | |
5707 | compiler=$CC | |
bf9f3bac BB |
5708 | |
5709 | ||
5710 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
8934764e BB |
5711 | { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
5712 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
bf9f3bac | 5713 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
8934764e | 5714 | $as_echo_n "(cached) " >&6 |
bf9f3bac BB |
5715 | else |
5716 | ||
5717 | # These are sane defaults that work on at least a few old systems. | |
5718 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
5719 | ||
5720 | # Character class describing NM global symbol codes. | |
5721 | symcode='[BCDEGRST]' | |
5722 | ||
5723 | # Regexp to match symbols that can be accessed directly from C. | |
5724 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
5725 | ||
bf9f3bac BB |
5726 | # Define system-specific variables. |
5727 | case $host_os in | |
5728 | aix*) | |
5729 | symcode='[BCDT]' | |
5730 | ;; | |
8934764e | 5731 | cygwin* | mingw* | pw32* | cegcc*) |
bf9f3bac BB |
5732 | symcode='[ABCDGISTW]' |
5733 | ;; | |
8934764e | 5734 | hpux*) |
bf9f3bac BB |
5735 | if test "$host_cpu" = ia64; then |
5736 | symcode='[ABCDEGRST]' | |
5737 | fi | |
bf9f3bac BB |
5738 | ;; |
5739 | irix* | nonstopux*) | |
5740 | symcode='[BCDEGRST]' | |
5741 | ;; | |
5742 | osf*) | |
5743 | symcode='[BCDEGQRST]' | |
5744 | ;; | |
5745 | solaris*) | |
5746 | symcode='[BDRT]' | |
5747 | ;; | |
5748 | sco3.2v5*) | |
5749 | symcode='[DT]' | |
5750 | ;; | |
5751 | sysv4.2uw2*) | |
5752 | symcode='[DT]' | |
5753 | ;; | |
5754 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
5755 | symcode='[ABDT]' | |
5756 | ;; | |
5757 | sysv4) | |
5758 | symcode='[DFNSTU]' | |
5759 | ;; | |
5760 | esac | |
5761 | ||
8934764e BB |
5762 | # If we're using GNU nm, then use its standard symbol codes. |
5763 | case `$NM -V 2>&1` in | |
5764 | *GNU* | *'with BFD'*) | |
5765 | symcode='[ABCDGIRSTW]' ;; | |
5766 | esac | |
5767 | ||
5768 | # Transform an extracted symbol line into a proper C declaration. | |
5769 | # Some systems (esp. on ia64) link data and code symbols differently, | |
5770 | # so use this general approach. | |
5771 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
5772 | ||
5773 | # Transform an extracted symbol line into symbol name and symbol address | |
5774 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
5775 | 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'" | |
5776 | ||
bf9f3bac BB |
5777 | # Handle CRLF in mingw tool chain |
5778 | opt_cr= | |
5779 | case $build_os in | |
5780 | mingw*) | |
8934764e | 5781 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
bf9f3bac BB |
5782 | ;; |
5783 | esac | |
5784 | ||
8934764e | 5785 | # Try without a prefix underscore, then with it. |
bf9f3bac BB |
5786 | for ac_symprfx in "" "_"; do |
5787 | ||
5788 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
5789 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
5790 | ||
5791 | # Write the raw and C identifiers. | |
8934764e BB |
5792 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
5793 | # Fake it for dumpbin and say T for any non-static function | |
5794 | # and D for any global variable. | |
5795 | # Also find C++ and __fastcall symbols from MSVC++, | |
5796 | # which start with @ or ?. | |
5797 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
5798 | " {last_section=section; section=\$ 3};"\ | |
5799 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
5800 | " \$ 0!~/External *\|/{next};"\ | |
5801 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
5802 | " {if(hide[section]) next};"\ | |
5803 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
5804 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
5805 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
5806 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
5807 | " ' prfx=^$ac_symprfx" | |
5808 | else | |
5809 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
5810 | fi | |
bf9f3bac BB |
5811 | |
5812 | # Check to see that the pipe works correctly. | |
5813 | pipe_works=no | |
5814 | ||
5815 | rm -f conftest* | |
8934764e | 5816 | cat > conftest.$ac_ext <<_LT_EOF |
bf9f3bac BB |
5817 | #ifdef __cplusplus |
5818 | extern "C" { | |
5819 | #endif | |
5820 | char nm_test_var; | |
8934764e BB |
5821 | void nm_test_func(void); |
5822 | void nm_test_func(void){} | |
bf9f3bac BB |
5823 | #ifdef __cplusplus |
5824 | } | |
5825 | #endif | |
5826 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
8934764e | 5827 | _LT_EOF |
bf9f3bac BB |
5828 | |
5829 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5830 | (eval $ac_compile) 2>&5 | |
5831 | ac_status=$? | |
8934764e | 5832 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac BB |
5833 | (exit $ac_status); }; then |
5834 | # Now try to grab the symbols. | |
5835 | nlist=conftest.nm | |
5836 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 | |
5837 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | |
5838 | ac_status=$? | |
8934764e | 5839 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac BB |
5840 | (exit $ac_status); } && test -s "$nlist"; then |
5841 | # Try sorting and uniquifying the output. | |
5842 | if sort "$nlist" | uniq > "$nlist"T; then | |
5843 | mv -f "$nlist"T "$nlist" | |
5844 | else | |
5845 | rm -f "$nlist"T | |
5846 | fi | |
5847 | ||
5848 | # Make sure that we snagged all the symbols we need. | |
8934764e BB |
5849 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
5850 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
5851 | cat <<_LT_EOF > conftest.$ac_ext | |
bf9f3bac BB |
5852 | #ifdef __cplusplus |
5853 | extern "C" { | |
5854 | #endif | |
5855 | ||
8934764e | 5856 | _LT_EOF |
bf9f3bac | 5857 | # Now generate the symbol file. |
8934764e | 5858 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
bf9f3bac | 5859 | |
8934764e | 5860 | cat <<_LT_EOF >> conftest.$ac_ext |
bf9f3bac | 5861 | |
8934764e | 5862 | /* The mapping between symbol names and symbols. */ |
bf9f3bac BB |
5863 | const struct { |
5864 | const char *name; | |
8934764e | 5865 | void *address; |
bf9f3bac | 5866 | } |
8934764e | 5867 | lt__PROGRAM__LTX_preloaded_symbols[] = |
bf9f3bac | 5868 | { |
8934764e BB |
5869 | { "@PROGRAM@", (void *) 0 }, |
5870 | _LT_EOF | |
5871 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
5872 | cat <<\_LT_EOF >> conftest.$ac_ext | |
5873 | {0, (void *) 0} | |
bf9f3bac BB |
5874 | }; |
5875 | ||
8934764e BB |
5876 | /* This works around a problem in FreeBSD linker */ |
5877 | #ifdef FREEBSD_WORKAROUND | |
5878 | static const void *lt_preloaded_setup() { | |
5879 | return lt__PROGRAM__LTX_preloaded_symbols; | |
5880 | } | |
5881 | #endif | |
5882 | ||
bf9f3bac BB |
5883 | #ifdef __cplusplus |
5884 | } | |
5885 | #endif | |
8934764e | 5886 | _LT_EOF |
bf9f3bac BB |
5887 | # Now try linking the two files. |
5888 | mv conftest.$ac_objext conftstm.$ac_objext | |
5889 | lt_save_LIBS="$LIBS" | |
5890 | lt_save_CFLAGS="$CFLAGS" | |
5891 | LIBS="conftstm.$ac_objext" | |
5892 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
5893 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5894 | (eval $ac_link) 2>&5 | |
5895 | ac_status=$? | |
8934764e | 5896 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac BB |
5897 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
5898 | pipe_works=yes | |
5899 | fi | |
5900 | LIBS="$lt_save_LIBS" | |
5901 | CFLAGS="$lt_save_CFLAGS" | |
5902 | else | |
5903 | echo "cannot find nm_test_func in $nlist" >&5 | |
5904 | fi | |
5905 | else | |
5906 | echo "cannot find nm_test_var in $nlist" >&5 | |
5907 | fi | |
5908 | else | |
5909 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
5910 | fi | |
5911 | else | |
5912 | echo "$progname: failed program was:" >&5 | |
5913 | cat conftest.$ac_ext >&5 | |
5914 | fi | |
8934764e | 5915 | rm -rf conftest* conftst* |
bf9f3bac BB |
5916 | |
5917 | # Do not use the global_symbol_pipe unless it works. | |
5918 | if test "$pipe_works" = yes; then | |
5919 | break | |
5920 | else | |
5921 | lt_cv_sys_global_symbol_pipe= | |
5922 | fi | |
5923 | done | |
5924 | ||
5925 | fi | |
5926 | ||
5927 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
5928 | lt_cv_sys_global_symbol_to_cdecl= | |
5929 | fi | |
5930 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
8934764e BB |
5931 | { $as_echo "$as_me:$LINENO: result: failed" >&5 |
5932 | $as_echo "failed" >&6; } | |
bf9f3bac | 5933 | else |
8934764e BB |
5934 | { $as_echo "$as_me:$LINENO: result: ok" >&5 |
5935 | $as_echo "ok" >&6; } | |
bf9f3bac BB |
5936 | fi |
5937 | ||
bf9f3bac BB |
5938 | |
5939 | ||
5940 | ||
5941 | ||
5942 | ||
8934764e BB |
5943 | |
5944 | ||
5945 | ||
5946 | ||
5947 | ||
5948 | ||
5949 | ||
5950 | ||
5951 | ||
5952 | ||
5953 | ||
5954 | ||
5955 | ||
5956 | ||
5957 | ||
5958 | ||
5959 | ||
5960 | # Check whether --enable-libtool-lock was given. | |
5961 | if test "${enable_libtool_lock+set}" = set; then | |
5962 | enableval=$enable_libtool_lock; | |
5963 | fi | |
5964 | ||
5965 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
5966 | ||
5967 | # Some flags need to be propagated to the compiler or linker for good | |
5968 | # libtool support. | |
5969 | case $host in | |
5970 | ia64-*-hpux*) | |
5971 | # Find out which ABI we are using. | |
5972 | echo 'int i;' > conftest.$ac_ext | |
5973 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5974 | (eval $ac_compile) 2>&5 | |
5975 | ac_status=$? | |
5976 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5977 | (exit $ac_status); }; then | |
5978 | case `/usr/bin/file conftest.$ac_objext` in | |
5979 | *ELF-32*) | |
5980 | HPUX_IA64_MODE="32" | |
5981 | ;; | |
5982 | *ELF-64*) | |
5983 | HPUX_IA64_MODE="64" | |
5984 | ;; | |
5985 | esac | |
bf9f3bac | 5986 | fi |
8934764e BB |
5987 | rm -rf conftest* |
5988 | ;; | |
5989 | *-*-irix6*) | |
5990 | # Find out which ABI we are using. | |
287b2fb1 | 5991 | echo '#line 5991 "configure"' > conftest.$ac_ext |
8934764e BB |
5992 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5993 | (eval $ac_compile) 2>&5 | |
5994 | ac_status=$? | |
5995 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5996 | (exit $ac_status); }; then | |
5997 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
5998 | case `/usr/bin/file conftest.$ac_objext` in | |
5999 | *32-bit*) | |
6000 | LD="${LD-ld} -melf32bsmip" | |
6001 | ;; | |
6002 | *N32*) | |
6003 | LD="${LD-ld} -melf32bmipn32" | |
6004 | ;; | |
6005 | *64-bit*) | |
6006 | LD="${LD-ld} -melf64bmip" | |
6007 | ;; | |
6008 | esac | |
6009 | else | |
6010 | case `/usr/bin/file conftest.$ac_objext` in | |
6011 | *32-bit*) | |
6012 | LD="${LD-ld} -32" | |
6013 | ;; | |
6014 | *N32*) | |
6015 | LD="${LD-ld} -n32" | |
6016 | ;; | |
6017 | *64-bit*) | |
6018 | LD="${LD-ld} -64" | |
6019 | ;; | |
6020 | esac | |
6021 | fi | |
6022 | fi | |
6023 | rm -rf conftest* | |
bf9f3bac | 6024 | ;; |
bf9f3bac | 6025 | |
8934764e BB |
6026 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
6027 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
6028 | # Find out which ABI we are using. | |
6029 | echo 'int i;' > conftest.$ac_ext | |
6030 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6031 | (eval $ac_compile) 2>&5 | |
6032 | ac_status=$? | |
6033 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6034 | (exit $ac_status); }; then | |
6035 | case `/usr/bin/file conftest.o` in | |
6036 | *32-bit*) | |
6037 | case $host in | |
6038 | x86_64-*kfreebsd*-gnu) | |
6039 | LD="${LD-ld} -m elf_i386_fbsd" | |
6040 | ;; | |
6041 | x86_64-*linux*) | |
6042 | LD="${LD-ld} -m elf_i386" | |
6043 | ;; | |
6044 | ppc64-*linux*|powerpc64-*linux*) | |
6045 | LD="${LD-ld} -m elf32ppclinux" | |
6046 | ;; | |
6047 | s390x-*linux*) | |
6048 | LD="${LD-ld} -m elf_s390" | |
6049 | ;; | |
6050 | sparc64-*linux*) | |
6051 | LD="${LD-ld} -m elf32_sparc" | |
6052 | ;; | |
6053 | esac | |
6054 | ;; | |
6055 | *64-bit*) | |
6056 | case $host in | |
6057 | x86_64-*kfreebsd*-gnu) | |
6058 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
6059 | ;; | |
6060 | x86_64-*linux*) | |
6061 | LD="${LD-ld} -m elf_x86_64" | |
6062 | ;; | |
6063 | ppc*-*linux*|powerpc*-*linux*) | |
6064 | LD="${LD-ld} -m elf64ppc" | |
6065 | ;; | |
6066 | s390*-*linux*|s390*-*tpf*) | |
6067 | LD="${LD-ld} -m elf64_s390" | |
6068 | ;; | |
6069 | sparc*-*linux*) | |
6070 | LD="${LD-ld} -m elf64_sparc" | |
6071 | ;; | |
6072 | esac | |
6073 | ;; | |
6074 | esac | |
6075 | fi | |
6076 | rm -rf conftest* | |
6077 | ;; | |
bf9f3bac | 6078 | |
8934764e BB |
6079 | *-*-sco3.2v5*) |
6080 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
6081 | SAVE_CFLAGS="$CFLAGS" | |
6082 | CFLAGS="$CFLAGS -belf" | |
6083 | { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 | |
6084 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
6085 | if test "${lt_cv_cc_needs_belf+set}" = set; then | |
6086 | $as_echo_n "(cached) " >&6 | |
6087 | else | |
6088 | ac_ext=c | |
6089 | ac_cpp='$CPP $CPPFLAGS' | |
6090 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6091 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6092 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
bf9f3bac | 6093 | |
8934764e BB |
6094 | cat >conftest.$ac_ext <<_ACEOF |
6095 | /* confdefs.h. */ | |
6096 | _ACEOF | |
6097 | cat confdefs.h >>conftest.$ac_ext | |
6098 | cat >>conftest.$ac_ext <<_ACEOF | |
6099 | /* end confdefs.h. */ | |
bf9f3bac | 6100 | |
8934764e BB |
6101 | int |
6102 | main () | |
6103 | { | |
6104 | ||
6105 | ; | |
6106 | return 0; | |
6107 | } | |
6108 | _ACEOF | |
6109 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6110 | if { (ac_try="$ac_link" | |
6111 | case "(($ac_try" in | |
6112 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6113 | *) ac_try_echo=$ac_try;; | |
6114 | esac | |
6115 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6116 | $as_echo "$ac_try_echo") >&5 | |
6117 | (eval "$ac_link") 2>conftest.er1 | |
6118 | ac_status=$? | |
6119 | grep -v '^ *+' conftest.er1 >conftest.err | |
6120 | rm -f conftest.er1 | |
6121 | cat conftest.err >&5 | |
6122 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6123 | (exit $ac_status); } && { | |
6124 | test -z "$ac_c_werror_flag" || | |
6125 | test ! -s conftest.err | |
6126 | } && test -s conftest$ac_exeext && { | |
6127 | test "$cross_compiling" = yes || | |
6128 | $as_test_x conftest$ac_exeext | |
6129 | }; then | |
6130 | lt_cv_cc_needs_belf=yes | |
6131 | else | |
6132 | $as_echo "$as_me: failed program was:" >&5 | |
6133 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bf9f3bac | 6134 | |
8934764e BB |
6135 | lt_cv_cc_needs_belf=no |
6136 | fi | |
bf9f3bac | 6137 | |
8934764e BB |
6138 | rm -rf conftest.dSYM |
6139 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
6140 | conftest$ac_exeext conftest.$ac_ext | |
6141 | ac_ext=c | |
6142 | ac_cpp='$CPP $CPPFLAGS' | |
6143 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6144 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6145 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
bf9f3bac | 6146 | |
8934764e BB |
6147 | fi |
6148 | { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 | |
6149 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
6150 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
6151 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
6152 | CFLAGS="$SAVE_CFLAGS" | |
6153 | fi | |
6154 | ;; | |
6155 | sparc*-*solaris*) | |
6156 | # Find out which ABI we are using. | |
6157 | echo 'int i;' > conftest.$ac_ext | |
6158 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6159 | (eval $ac_compile) 2>&5 | |
6160 | ac_status=$? | |
6161 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6162 | (exit $ac_status); }; then | |
6163 | case `/usr/bin/file conftest.o` in | |
6164 | *64-bit*) | |
6165 | case $lt_cv_prog_gnu_ld in | |
6166 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
6167 | *) | |
6168 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
6169 | LD="${LD-ld} -64" | |
6170 | fi | |
6171 | ;; | |
6172 | esac | |
6173 | ;; | |
6174 | esac | |
6175 | fi | |
6176 | rm -rf conftest* | |
6177 | ;; | |
6178 | esac | |
bf9f3bac | 6179 | |
8934764e BB |
6180 | need_locks="$enable_libtool_lock" |
6181 | ||
6182 | ||
6183 | case $host_os in | |
6184 | rhapsody* | darwin*) | |
6185 | if test -n "$ac_tool_prefix"; then | |
6186 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
6187 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
6188 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6189 | $as_echo_n "checking for $ac_word... " >&6; } | |
6190 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then | |
6191 | $as_echo_n "(cached) " >&6 | |
6192 | else | |
6193 | if test -n "$DSYMUTIL"; then | |
6194 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
bf9f3bac BB |
6195 | else |
6196 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6197 | for as_dir in $PATH | |
6198 | do | |
6199 | IFS=$as_save_IFS | |
6200 | test -z "$as_dir" && as_dir=. | |
6201 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8934764e BB |
6202 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
6203 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
6204 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
bf9f3bac BB |
6205 | break 2 |
6206 | fi | |
6207 | done | |
6208 | done | |
8934764e | 6209 | IFS=$as_save_IFS |
bf9f3bac BB |
6210 | |
6211 | fi | |
6212 | fi | |
8934764e BB |
6213 | DSYMUTIL=$ac_cv_prog_DSYMUTIL |
6214 | if test -n "$DSYMUTIL"; then | |
6215 | { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 | |
6216 | $as_echo "$DSYMUTIL" >&6; } | |
bf9f3bac | 6217 | else |
8934764e BB |
6218 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6219 | $as_echo "no" >&6; } | |
bf9f3bac BB |
6220 | fi |
6221 | ||
8934764e | 6222 | |
bf9f3bac | 6223 | fi |
8934764e BB |
6224 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
6225 | ac_ct_DSYMUTIL=$DSYMUTIL | |
6226 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
6227 | set dummy dsymutil; ac_word=$2 | |
6228 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6229 | $as_echo_n "checking for $ac_word... " >&6; } | |
6230 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then | |
6231 | $as_echo_n "(cached) " >&6 | |
bf9f3bac | 6232 | else |
8934764e BB |
6233 | if test -n "$ac_ct_DSYMUTIL"; then |
6234 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
bf9f3bac BB |
6235 | else |
6236 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6237 | for as_dir in $PATH | |
6238 | do | |
6239 | IFS=$as_save_IFS | |
6240 | test -z "$as_dir" && as_dir=. | |
6241 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8934764e BB |
6242 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
6243 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
6244 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
bf9f3bac BB |
6245 | break 2 |
6246 | fi | |
6247 | done | |
6248 | done | |
8934764e | 6249 | IFS=$as_save_IFS |
bf9f3bac | 6250 | |
bf9f3bac BB |
6251 | fi |
6252 | fi | |
8934764e BB |
6253 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
6254 | if test -n "$ac_ct_DSYMUTIL"; then | |
6255 | { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 | |
6256 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
bf9f3bac | 6257 | else |
8934764e BB |
6258 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6259 | $as_echo "no" >&6; } | |
bf9f3bac BB |
6260 | fi |
6261 | ||
8934764e BB |
6262 | if test "x$ac_ct_DSYMUTIL" = x; then |
6263 | DSYMUTIL=":" | |
6264 | else | |
6265 | case $cross_compiling:$ac_tool_warned in | |
6266 | yes:) | |
6267 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6268 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6269 | ac_tool_warned=yes ;; | |
6270 | esac | |
6271 | DSYMUTIL=$ac_ct_DSYMUTIL | |
6272 | fi | |
bf9f3bac | 6273 | else |
8934764e | 6274 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
bf9f3bac BB |
6275 | fi |
6276 | ||
8934764e BB |
6277 | if test -n "$ac_tool_prefix"; then |
6278 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
6279 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
6280 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6281 | $as_echo_n "checking for $ac_word... " >&6; } | |
6282 | if test "${ac_cv_prog_NMEDIT+set}" = set; then | |
6283 | $as_echo_n "(cached) " >&6 | |
bf9f3bac | 6284 | else |
8934764e BB |
6285 | if test -n "$NMEDIT"; then |
6286 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
bf9f3bac BB |
6287 | else |
6288 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6289 | for as_dir in $PATH | |
6290 | do | |
6291 | IFS=$as_save_IFS | |
6292 | test -z "$as_dir" && as_dir=. | |
6293 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8934764e BB |
6294 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
6295 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | |
6296 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
bf9f3bac BB |
6297 | break 2 |
6298 | fi | |
6299 | done | |
6300 | done | |
8934764e | 6301 | IFS=$as_save_IFS |
bf9f3bac BB |
6302 | |
6303 | fi | |
6304 | fi | |
8934764e BB |
6305 | NMEDIT=$ac_cv_prog_NMEDIT |
6306 | if test -n "$NMEDIT"; then | |
6307 | { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 | |
6308 | $as_echo "$NMEDIT" >&6; } | |
bf9f3bac | 6309 | else |
8934764e BB |
6310 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6311 | $as_echo "no" >&6; } | |
bf9f3bac BB |
6312 | fi |
6313 | ||
8934764e | 6314 | |
bf9f3bac | 6315 | fi |
8934764e BB |
6316 | if test -z "$ac_cv_prog_NMEDIT"; then |
6317 | ac_ct_NMEDIT=$NMEDIT | |
6318 | # Extract the first word of "nmedit", so it can be a program name with args. | |
6319 | set dummy nmedit; ac_word=$2 | |
6320 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6321 | $as_echo_n "checking for $ac_word... " >&6; } | |
6322 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then | |
6323 | $as_echo_n "(cached) " >&6 | |
bf9f3bac | 6324 | else |
8934764e BB |
6325 | if test -n "$ac_ct_NMEDIT"; then |
6326 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
bf9f3bac BB |
6327 | else |
6328 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6329 | for as_dir in $PATH | |
6330 | do | |
6331 | IFS=$as_save_IFS | |
6332 | test -z "$as_dir" && as_dir=. | |
6333 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8934764e BB |
6334 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
6335 | ac_cv_prog_ac_ct_NMEDIT="nmedit" | |
6336 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
bf9f3bac BB |
6337 | break 2 |
6338 | fi | |
6339 | done | |
6340 | done | |
8934764e | 6341 | IFS=$as_save_IFS |
bf9f3bac | 6342 | |
bf9f3bac BB |
6343 | fi |
6344 | fi | |
8934764e BB |
6345 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
6346 | if test -n "$ac_ct_NMEDIT"; then | |
6347 | { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 | |
6348 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
bf9f3bac | 6349 | else |
8934764e BB |
6350 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6351 | $as_echo "no" >&6; } | |
bf9f3bac BB |
6352 | fi |
6353 | ||
8934764e BB |
6354 | if test "x$ac_ct_NMEDIT" = x; then |
6355 | NMEDIT=":" | |
6356 | else | |
6357 | case $cross_compiling:$ac_tool_warned in | |
6358 | yes:) | |
6359 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6360 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6361 | ac_tool_warned=yes ;; | |
6362 | esac | |
6363 | NMEDIT=$ac_ct_NMEDIT | |
6364 | fi | |
bf9f3bac | 6365 | else |
8934764e | 6366 | NMEDIT="$ac_cv_prog_NMEDIT" |
bf9f3bac BB |
6367 | fi |
6368 | ||
8934764e BB |
6369 | if test -n "$ac_tool_prefix"; then |
6370 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
6371 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
6372 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6373 | $as_echo_n "checking for $ac_word... " >&6; } | |
6374 | if test "${ac_cv_prog_LIPO+set}" = set; then | |
6375 | $as_echo_n "(cached) " >&6 | |
bf9f3bac | 6376 | else |
8934764e BB |
6377 | if test -n "$LIPO"; then |
6378 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
bf9f3bac BB |
6379 | else |
6380 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6381 | for as_dir in $PATH | |
6382 | do | |
6383 | IFS=$as_save_IFS | |
6384 | test -z "$as_dir" && as_dir=. | |
6385 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8934764e BB |
6386 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
6387 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | |
6388 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
bf9f3bac BB |
6389 | break 2 |
6390 | fi | |
6391 | done | |
6392 | done | |
8934764e | 6393 | IFS=$as_save_IFS |
bf9f3bac BB |
6394 | |
6395 | fi | |
6396 | fi | |
8934764e BB |
6397 | LIPO=$ac_cv_prog_LIPO |
6398 | if test -n "$LIPO"; then | |
6399 | { $as_echo "$as_me:$LINENO: result: $LIPO" >&5 | |
6400 | $as_echo "$LIPO" >&6; } | |
bf9f3bac | 6401 | else |
8934764e BB |
6402 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6403 | $as_echo "no" >&6; } | |
bf9f3bac BB |
6404 | fi |
6405 | ||
8934764e | 6406 | |
bf9f3bac | 6407 | fi |
8934764e BB |
6408 | if test -z "$ac_cv_prog_LIPO"; then |
6409 | ac_ct_LIPO=$LIPO | |
6410 | # Extract the first word of "lipo", so it can be a program name with args. | |
6411 | set dummy lipo; ac_word=$2 | |
6412 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6413 | $as_echo_n "checking for $ac_word... " >&6; } | |
6414 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then | |
6415 | $as_echo_n "(cached) " >&6 | |
bf9f3bac | 6416 | else |
8934764e BB |
6417 | if test -n "$ac_ct_LIPO"; then |
6418 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
bf9f3bac BB |
6419 | else |
6420 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6421 | for as_dir in $PATH | |
6422 | do | |
6423 | IFS=$as_save_IFS | |
6424 | test -z "$as_dir" && as_dir=. | |
6425 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8934764e BB |
6426 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
6427 | ac_cv_prog_ac_ct_LIPO="lipo" | |
6428 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
bf9f3bac BB |
6429 | break 2 |
6430 | fi | |
6431 | done | |
6432 | done | |
8934764e | 6433 | IFS=$as_save_IFS |
bf9f3bac | 6434 | |
bf9f3bac BB |
6435 | fi |
6436 | fi | |
8934764e BB |
6437 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
6438 | if test -n "$ac_ct_LIPO"; then | |
6439 | { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 | |
6440 | $as_echo "$ac_ct_LIPO" >&6; } | |
bf9f3bac | 6441 | else |
8934764e BB |
6442 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6443 | $as_echo "no" >&6; } | |
bf9f3bac BB |
6444 | fi |
6445 | ||
8934764e BB |
6446 | if test "x$ac_ct_LIPO" = x; then |
6447 | LIPO=":" | |
6448 | else | |
6449 | case $cross_compiling:$ac_tool_warned in | |
6450 | yes:) | |
6451 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6452 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6453 | ac_tool_warned=yes ;; | |
6454 | esac | |
6455 | LIPO=$ac_ct_LIPO | |
6456 | fi | |
bf9f3bac | 6457 | else |
8934764e | 6458 | LIPO="$ac_cv_prog_LIPO" |
bf9f3bac BB |
6459 | fi |
6460 | ||
8934764e BB |
6461 | if test -n "$ac_tool_prefix"; then |
6462 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
6463 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
6464 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6465 | $as_echo_n "checking for $ac_word... " >&6; } | |
6466 | if test "${ac_cv_prog_OTOOL+set}" = set; then | |
6467 | $as_echo_n "(cached) " >&6 | |
6468 | else | |
6469 | if test -n "$OTOOL"; then | |
6470 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
6471 | else | |
6472 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6473 | for as_dir in $PATH | |
6474 | do | |
6475 | IFS=$as_save_IFS | |
6476 | test -z "$as_dir" && as_dir=. | |
6477 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6478 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6479 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
6480 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6481 | break 2 | |
6482 | fi | |
bf9f3bac | 6483 | done |
8934764e BB |
6484 | done |
6485 | IFS=$as_save_IFS | |
bf9f3bac | 6486 | |
8934764e BB |
6487 | fi |
6488 | fi | |
6489 | OTOOL=$ac_cv_prog_OTOOL | |
6490 | if test -n "$OTOOL"; then | |
6491 | { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5 | |
6492 | $as_echo "$OTOOL" >&6; } | |
bf9f3bac | 6493 | else |
8934764e BB |
6494 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6495 | $as_echo "no" >&6; } | |
6496 | fi | |
bf9f3bac | 6497 | |
bf9f3bac | 6498 | |
bf9f3bac | 6499 | fi |
8934764e BB |
6500 | if test -z "$ac_cv_prog_OTOOL"; then |
6501 | ac_ct_OTOOL=$OTOOL | |
6502 | # Extract the first word of "otool", so it can be a program name with args. | |
6503 | set dummy otool; ac_word=$2 | |
6504 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6505 | $as_echo_n "checking for $ac_word... " >&6; } | |
6506 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then | |
6507 | $as_echo_n "(cached) " >&6 | |
bf9f3bac | 6508 | else |
8934764e BB |
6509 | if test -n "$ac_ct_OTOOL"; then |
6510 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
bf9f3bac | 6511 | else |
8934764e BB |
6512 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6513 | for as_dir in $PATH | |
6514 | do | |
6515 | IFS=$as_save_IFS | |
6516 | test -z "$as_dir" && as_dir=. | |
6517 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6518 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6519 | ac_cv_prog_ac_ct_OTOOL="otool" | |
6520 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6521 | break 2 | |
6522 | fi | |
6523 | done | |
6524 | done | |
6525 | IFS=$as_save_IFS | |
bf9f3bac | 6526 | |
bf9f3bac | 6527 | fi |
8934764e BB |
6528 | fi |
6529 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
6530 | if test -n "$ac_ct_OTOOL"; then | |
6531 | { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 | |
6532 | $as_echo "$ac_ct_OTOOL" >&6; } | |
bf9f3bac | 6533 | else |
8934764e BB |
6534 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6535 | $as_echo "no" >&6; } | |
bf9f3bac BB |
6536 | fi |
6537 | ||
8934764e BB |
6538 | if test "x$ac_ct_OTOOL" = x; then |
6539 | OTOOL=":" | |
bf9f3bac | 6540 | else |
8934764e BB |
6541 | case $cross_compiling:$ac_tool_warned in |
6542 | yes:) | |
6543 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6544 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6545 | ac_tool_warned=yes ;; | |
6546 | esac | |
6547 | OTOOL=$ac_ct_OTOOL | |
bf9f3bac | 6548 | fi |
8934764e BB |
6549 | else |
6550 | OTOOL="$ac_cv_prog_OTOOL" | |
bf9f3bac BB |
6551 | fi |
6552 | ||
8934764e BB |
6553 | if test -n "$ac_tool_prefix"; then |
6554 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
6555 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
6556 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6557 | $as_echo_n "checking for $ac_word... " >&6; } | |
6558 | if test "${ac_cv_prog_OTOOL64+set}" = set; then | |
6559 | $as_echo_n "(cached) " >&6 | |
6560 | else | |
6561 | if test -n "$OTOOL64"; then | |
6562 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
6563 | else | |
6564 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6565 | for as_dir in $PATH | |
6566 | do | |
6567 | IFS=$as_save_IFS | |
6568 | test -z "$as_dir" && as_dir=. | |
6569 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6570 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6571 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
6572 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6573 | break 2 | |
bf9f3bac | 6574 | fi |
8934764e BB |
6575 | done |
6576 | done | |
6577 | IFS=$as_save_IFS | |
bf9f3bac | 6578 | |
8934764e BB |
6579 | fi |
6580 | fi | |
6581 | OTOOL64=$ac_cv_prog_OTOOL64 | |
6582 | if test -n "$OTOOL64"; then | |
6583 | { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5 | |
6584 | $as_echo "$OTOOL64" >&6; } | |
6585 | else | |
6586 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
6587 | $as_echo "no" >&6; } | |
6588 | fi | |
bf9f3bac | 6589 | |
bf9f3bac | 6590 | |
8934764e BB |
6591 | fi |
6592 | if test -z "$ac_cv_prog_OTOOL64"; then | |
6593 | ac_ct_OTOOL64=$OTOOL64 | |
6594 | # Extract the first word of "otool64", so it can be a program name with args. | |
6595 | set dummy otool64; ac_word=$2 | |
6596 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6597 | $as_echo_n "checking for $ac_word... " >&6; } | |
6598 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then | |
6599 | $as_echo_n "(cached) " >&6 | |
6600 | else | |
6601 | if test -n "$ac_ct_OTOOL64"; then | |
6602 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
6603 | else | |
6604 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6605 | for as_dir in $PATH | |
6606 | do | |
6607 | IFS=$as_save_IFS | |
6608 | test -z "$as_dir" && as_dir=. | |
6609 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6610 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6611 | ac_cv_prog_ac_ct_OTOOL64="otool64" | |
6612 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6613 | break 2 | |
6614 | fi | |
6615 | done | |
6616 | done | |
6617 | IFS=$as_save_IFS | |
bf9f3bac | 6618 | |
8934764e BB |
6619 | fi |
6620 | fi | |
6621 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
6622 | if test -n "$ac_ct_OTOOL64"; then | |
6623 | { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 | |
6624 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
6625 | else | |
6626 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
6627 | $as_echo "no" >&6; } | |
6628 | fi | |
bf9f3bac | 6629 | |
8934764e BB |
6630 | if test "x$ac_ct_OTOOL64" = x; then |
6631 | OTOOL64=":" | |
6632 | else | |
6633 | case $cross_compiling:$ac_tool_warned in | |
6634 | yes:) | |
6635 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6636 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6637 | ac_tool_warned=yes ;; | |
6638 | esac | |
6639 | OTOOL64=$ac_ct_OTOOL64 | |
6640 | fi | |
bf9f3bac | 6641 | else |
8934764e BB |
6642 | OTOOL64="$ac_cv_prog_OTOOL64" |
6643 | fi | |
bf9f3bac | 6644 | |
bf9f3bac BB |
6645 | |
6646 | ||
bf9f3bac | 6647 | |
bf9f3bac | 6648 | |
bf9f3bac | 6649 | |
bf9f3bac BB |
6650 | |
6651 | ||
bf9f3bac | 6652 | |
bf9f3bac | 6653 | |
bf9f3bac BB |
6654 | |
6655 | ||
bf9f3bac | 6656 | |
bf9f3bac BB |
6657 | |
6658 | ||
6659 | ||
bf9f3bac | 6660 | |
bf9f3bac BB |
6661 | |
6662 | ||
bf9f3bac | 6663 | |
bf9f3bac | 6664 | |
8934764e BB |
6665 | |
6666 | ||
6667 | ||
6668 | ||
6669 | ||
6670 | ||
6671 | { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 | |
6672 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
6673 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then | |
6674 | $as_echo_n "(cached) " >&6 | |
bf9f3bac | 6675 | else |
8934764e BB |
6676 | lt_cv_apple_cc_single_mod=no |
6677 | if test -z "${LT_MULTI_MODULE}"; then | |
6678 | # By default we will add the -single_module flag. You can override | |
6679 | # by either setting the environment variable LT_MULTI_MODULE | |
6680 | # non-empty at configure time, or by adding -multi_module to the | |
6681 | # link flags. | |
6682 | rm -rf libconftest.dylib* | |
6683 | echo "int foo(void){return 1;}" > conftest.c | |
6684 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
6685 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
6686 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
6687 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
6688 | _lt_result=$? | |
6689 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
6690 | lt_cv_apple_cc_single_mod=yes | |
6691 | else | |
6692 | cat conftest.err >&5 | |
6693 | fi | |
6694 | rm -rf libconftest.dylib* | |
6695 | rm -f conftest.* | |
6696 | fi | |
bf9f3bac | 6697 | fi |
8934764e BB |
6698 | { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 |
6699 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
6700 | { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 | |
6701 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
6702 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then | |
6703 | $as_echo_n "(cached) " >&6 | |
6704 | else | |
6705 | lt_cv_ld_exported_symbols_list=no | |
6706 | save_LDFLAGS=$LDFLAGS | |
6707 | echo "_main" > conftest.sym | |
6708 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
6709 | cat >conftest.$ac_ext <<_ACEOF | |
6710 | /* confdefs.h. */ | |
6711 | _ACEOF | |
6712 | cat confdefs.h >>conftest.$ac_ext | |
6713 | cat >>conftest.$ac_ext <<_ACEOF | |
6714 | /* end confdefs.h. */ | |
bf9f3bac | 6715 | |
8934764e BB |
6716 | int |
6717 | main () | |
6718 | { | |
bf9f3bac | 6719 | |
8934764e BB |
6720 | ; |
6721 | return 0; | |
6722 | } | |
6723 | _ACEOF | |
6724 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6725 | if { (ac_try="$ac_link" | |
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_link") 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); } && { | |
6739 | test -z "$ac_c_werror_flag" || | |
6740 | test ! -s conftest.err | |
6741 | } && test -s conftest$ac_exeext && { | |
6742 | test "$cross_compiling" = yes || | |
6743 | $as_test_x conftest$ac_exeext | |
6744 | }; then | |
6745 | lt_cv_ld_exported_symbols_list=yes | |
6746 | else | |
6747 | $as_echo "$as_me: failed program was:" >&5 | |
6748 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bf9f3bac | 6749 | |
8934764e BB |
6750 | lt_cv_ld_exported_symbols_list=no |
6751 | fi | |
bf9f3bac | 6752 | |
8934764e BB |
6753 | rm -rf conftest.dSYM |
6754 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
6755 | conftest$ac_exeext conftest.$ac_ext | |
6756 | LDFLAGS="$save_LDFLAGS" | |
bf9f3bac | 6757 | |
8934764e BB |
6758 | fi |
6759 | { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 | |
6760 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
bf9f3bac | 6761 | case $host_os in |
8934764e BB |
6762 | rhapsody* | darwin1.[012]) |
6763 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
6764 | darwin1.*) | |
6765 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
6766 | darwin*) # darwin 5.x on | |
6767 | # if running on 10.5 or later, the deployment target defaults | |
6768 | # to the OS version, if on x86, and 10.4, the deployment | |
6769 | # target defaults to 10.4. Don't you love it? | |
6770 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
6771 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
6772 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
6773 | 10.[012]*) | |
6774 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
6775 | 10.*) | |
6776 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
6777 | esac | |
6778 | ;; | |
6779 | esac | |
6780 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
6781 | _lt_dar_single_mod='$single_module' | |
6782 | fi | |
6783 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
6784 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
6785 | else | |
6786 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
6787 | fi | |
6788 | if test "$DSYMUTIL" != ":"; then | |
6789 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
6790 | else | |
6791 | _lt_dsymutil= | |
6792 | fi | |
6793 | ;; | |
6794 | esac | |
bf9f3bac | 6795 | |
8934764e BB |
6796 | ac_ext=c |
6797 | ac_cpp='$CPP $CPPFLAGS' | |
6798 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6799 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6800 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6801 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
6802 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
6803 | # On Suns, sometimes $CPP names a directory. | |
6804 | if test -n "$CPP" && test -d "$CPP"; then | |
6805 | CPP= | |
6806 | fi | |
6807 | if test -z "$CPP"; then | |
6808 | if test "${ac_cv_prog_CPP+set}" = set; then | |
6809 | $as_echo_n "(cached) " >&6 | |
6810 | else | |
6811 | # Double quotes because CPP needs to be expanded | |
6812 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
6813 | do | |
6814 | ac_preproc_ok=false | |
6815 | for ac_c_preproc_warn_flag in '' yes | |
6816 | do | |
6817 | # Use a header file that comes with gcc, so configuring glibc | |
6818 | # with a fresh cross-compiler works. | |
6819 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6820 | # <limits.h> exists even on freestanding compilers. | |
6821 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6822 | # not just through cpp. "Syntax error" is here to catch this case. | |
6823 | cat >conftest.$ac_ext <<_ACEOF | |
6824 | /* confdefs.h. */ | |
6825 | _ACEOF | |
6826 | cat confdefs.h >>conftest.$ac_ext | |
6827 | cat >>conftest.$ac_ext <<_ACEOF | |
6828 | /* end confdefs.h. */ | |
6829 | #ifdef __STDC__ | |
6830 | # include <limits.h> | |
6831 | #else | |
6832 | # include <assert.h> | |
6833 | #endif | |
6834 | Syntax error | |
6835 | _ACEOF | |
6836 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
6837 | case "(($ac_try" in | |
6838 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6839 | *) ac_try_echo=$ac_try;; | |
6840 | esac | |
6841 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6842 | $as_echo "$ac_try_echo") >&5 | |
6843 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
6844 | ac_status=$? | |
6845 | grep -v '^ *+' conftest.er1 >conftest.err | |
6846 | rm -f conftest.er1 | |
6847 | cat conftest.err >&5 | |
6848 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6849 | (exit $ac_status); } >/dev/null && { | |
6850 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6851 | test ! -s conftest.err | |
6852 | }; then | |
6853 | : | |
6854 | else | |
6855 | $as_echo "$as_me: failed program was:" >&5 | |
6856 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bf9f3bac | 6857 | |
8934764e BB |
6858 | # Broken: fails on valid input. |
6859 | continue | |
6860 | fi | |
bf9f3bac | 6861 | |
8934764e | 6862 | rm -f conftest.err conftest.$ac_ext |
bf9f3bac | 6863 | |
8934764e BB |
6864 | # OK, works on sane cases. Now check whether nonexistent headers |
6865 | # can be detected and how. | |
6866 | cat >conftest.$ac_ext <<_ACEOF | |
6867 | /* confdefs.h. */ | |
6868 | _ACEOF | |
6869 | cat confdefs.h >>conftest.$ac_ext | |
6870 | cat >>conftest.$ac_ext <<_ACEOF | |
6871 | /* end confdefs.h. */ | |
6872 | #include <ac_nonexistent.h> | |
6873 | _ACEOF | |
6874 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
6875 | case "(($ac_try" in | |
6876 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6877 | *) ac_try_echo=$ac_try;; | |
6878 | esac | |
6879 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6880 | $as_echo "$ac_try_echo") >&5 | |
6881 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
6882 | ac_status=$? | |
6883 | grep -v '^ *+' conftest.er1 >conftest.err | |
6884 | rm -f conftest.er1 | |
6885 | cat conftest.err >&5 | |
6886 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6887 | (exit $ac_status); } >/dev/null && { | |
6888 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6889 | test ! -s conftest.err | |
6890 | }; then | |
6891 | # Broken: success on invalid input. | |
6892 | continue | |
6893 | else | |
6894 | $as_echo "$as_me: failed program was:" >&5 | |
6895 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bf9f3bac | 6896 | |
8934764e BB |
6897 | # Passes both tests. |
6898 | ac_preproc_ok=: | |
6899 | break | |
6900 | fi | |
bf9f3bac | 6901 | |
8934764e | 6902 | rm -f conftest.err conftest.$ac_ext |
bf9f3bac | 6903 | |
8934764e BB |
6904 | done |
6905 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6906 | rm -f conftest.err conftest.$ac_ext | |
6907 | if $ac_preproc_ok; then | |
6908 | break | |
6909 | fi | |
bf9f3bac | 6910 | |
8934764e BB |
6911 | done |
6912 | ac_cv_prog_CPP=$CPP | |
bf9f3bac | 6913 | |
8934764e BB |
6914 | fi |
6915 | CPP=$ac_cv_prog_CPP | |
6916 | else | |
6917 | ac_cv_prog_CPP=$CPP | |
6918 | fi | |
6919 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 | |
6920 | $as_echo "$CPP" >&6; } | |
6921 | ac_preproc_ok=false | |
6922 | for ac_c_preproc_warn_flag in '' yes | |
6923 | do | |
6924 | # Use a header file that comes with gcc, so configuring glibc | |
6925 | # with a fresh cross-compiler works. | |
6926 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6927 | # <limits.h> exists even on freestanding compilers. | |
6928 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6929 | # not just through cpp. "Syntax error" is here to catch this case. | |
6930 | cat >conftest.$ac_ext <<_ACEOF | |
6931 | /* confdefs.h. */ | |
6932 | _ACEOF | |
6933 | cat confdefs.h >>conftest.$ac_ext | |
6934 | cat >>conftest.$ac_ext <<_ACEOF | |
6935 | /* end confdefs.h. */ | |
6936 | #ifdef __STDC__ | |
6937 | # include <limits.h> | |
6938 | #else | |
6939 | # include <assert.h> | |
6940 | #endif | |
6941 | Syntax error | |
6942 | _ACEOF | |
6943 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
6944 | case "(($ac_try" in | |
6945 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6946 | *) ac_try_echo=$ac_try;; | |
6947 | esac | |
6948 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6949 | $as_echo "$ac_try_echo") >&5 | |
6950 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
6951 | ac_status=$? | |
6952 | grep -v '^ *+' conftest.er1 >conftest.err | |
6953 | rm -f conftest.er1 | |
6954 | cat conftest.err >&5 | |
6955 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6956 | (exit $ac_status); } >/dev/null && { | |
6957 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6958 | test ! -s conftest.err | |
6959 | }; then | |
6960 | : | |
6961 | else | |
6962 | $as_echo "$as_me: failed program was:" >&5 | |
6963 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bf9f3bac | 6964 | |
8934764e BB |
6965 | # Broken: fails on valid input. |
6966 | continue | |
6967 | fi | |
bf9f3bac | 6968 | |
8934764e | 6969 | rm -f conftest.err conftest.$ac_ext |
bf9f3bac | 6970 | |
8934764e BB |
6971 | # OK, works on sane cases. Now check whether nonexistent headers |
6972 | # can be detected and how. | |
6973 | cat >conftest.$ac_ext <<_ACEOF | |
6974 | /* confdefs.h. */ | |
6975 | _ACEOF | |
6976 | cat confdefs.h >>conftest.$ac_ext | |
6977 | cat >>conftest.$ac_ext <<_ACEOF | |
6978 | /* end confdefs.h. */ | |
6979 | #include <ac_nonexistent.h> | |
6980 | _ACEOF | |
6981 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
6982 | case "(($ac_try" in | |
6983 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6984 | *) ac_try_echo=$ac_try;; | |
6985 | esac | |
6986 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6987 | $as_echo "$ac_try_echo") >&5 | |
6988 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
6989 | ac_status=$? | |
6990 | grep -v '^ *+' conftest.er1 >conftest.err | |
6991 | rm -f conftest.er1 | |
6992 | cat conftest.err >&5 | |
6993 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6994 | (exit $ac_status); } >/dev/null && { | |
6995 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6996 | test ! -s conftest.err | |
6997 | }; then | |
6998 | # Broken: success on invalid input. | |
6999 | continue | |
7000 | else | |
7001 | $as_echo "$as_me: failed program was:" >&5 | |
7002 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bf9f3bac | 7003 | |
8934764e BB |
7004 | # Passes both tests. |
7005 | ac_preproc_ok=: | |
7006 | break | |
7007 | fi | |
bf9f3bac | 7008 | |
8934764e | 7009 | rm -f conftest.err conftest.$ac_ext |
bf9f3bac | 7010 | |
8934764e BB |
7011 | done |
7012 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
7013 | rm -f conftest.err conftest.$ac_ext | |
7014 | if $ac_preproc_ok; then | |
7015 | : | |
7016 | else | |
7017 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
7018 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
7019 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
7020 | See \`config.log' for more details." >&5 | |
7021 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
7022 | See \`config.log' for more details." >&2;} | |
7023 | { (exit 1); exit 1; }; }; } | |
7024 | fi | |
bf9f3bac | 7025 | |
8934764e BB |
7026 | ac_ext=c |
7027 | ac_cpp='$CPP $CPPFLAGS' | |
7028 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7029 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7030 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
bf9f3bac | 7031 | |
bf9f3bac | 7032 | |
8934764e BB |
7033 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
7034 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
7035 | if test "${ac_cv_header_stdc+set}" = set; then | |
7036 | $as_echo_n "(cached) " >&6 | |
7037 | else | |
7038 | cat >conftest.$ac_ext <<_ACEOF | |
7039 | /* confdefs.h. */ | |
7040 | _ACEOF | |
7041 | cat confdefs.h >>conftest.$ac_ext | |
7042 | cat >>conftest.$ac_ext <<_ACEOF | |
7043 | /* end confdefs.h. */ | |
7044 | #include <stdlib.h> | |
7045 | #include <stdarg.h> | |
7046 | #include <string.h> | |
7047 | #include <float.h> | |
bf9f3bac | 7048 | |
8934764e BB |
7049 | int |
7050 | main () | |
7051 | { | |
bf9f3bac | 7052 | |
8934764e BB |
7053 | ; |
7054 | return 0; | |
7055 | } | |
7056 | _ACEOF | |
7057 | rm -f conftest.$ac_objext | |
7058 | if { (ac_try="$ac_compile" | |
7059 | case "(($ac_try" in | |
7060 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7061 | *) ac_try_echo=$ac_try;; | |
7062 | esac | |
7063 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7064 | $as_echo "$ac_try_echo") >&5 | |
7065 | (eval "$ac_compile") 2>conftest.er1 | |
7066 | ac_status=$? | |
7067 | grep -v '^ *+' conftest.er1 >conftest.err | |
7068 | rm -f conftest.er1 | |
7069 | cat conftest.err >&5 | |
7070 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7071 | (exit $ac_status); } && { | |
7072 | test -z "$ac_c_werror_flag" || | |
7073 | test ! -s conftest.err | |
7074 | } && test -s conftest.$ac_objext; then | |
7075 | ac_cv_header_stdc=yes | |
bf9f3bac | 7076 | else |
8934764e BB |
7077 | $as_echo "$as_me: failed program was:" >&5 |
7078 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bf9f3bac | 7079 | |
8934764e | 7080 | ac_cv_header_stdc=no |
bf9f3bac | 7081 | fi |
bf9f3bac | 7082 | |
8934764e | 7083 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bf9f3bac | 7084 | |
8934764e BB |
7085 | if test $ac_cv_header_stdc = yes; then |
7086 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
7087 | cat >conftest.$ac_ext <<_ACEOF | |
7088 | /* confdefs.h. */ | |
7089 | _ACEOF | |
7090 | cat confdefs.h >>conftest.$ac_ext | |
7091 | cat >>conftest.$ac_ext <<_ACEOF | |
7092 | /* end confdefs.h. */ | |
7093 | #include <string.h> | |
bf9f3bac | 7094 | |
8934764e BB |
7095 | _ACEOF |
7096 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7097 | $EGREP "memchr" >/dev/null 2>&1; then | |
7098 | : | |
bf9f3bac | 7099 | else |
8934764e BB |
7100 | ac_cv_header_stdc=no |
7101 | fi | |
7102 | rm -f conftest* | |
bf9f3bac BB |
7103 | |
7104 | fi | |
bf9f3bac | 7105 | |
8934764e BB |
7106 | if test $ac_cv_header_stdc = yes; then |
7107 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
7108 | cat >conftest.$ac_ext <<_ACEOF | |
7109 | /* confdefs.h. */ | |
7110 | _ACEOF | |
7111 | cat confdefs.h >>conftest.$ac_ext | |
7112 | cat >>conftest.$ac_ext <<_ACEOF | |
7113 | /* end confdefs.h. */ | |
7114 | #include <stdlib.h> | |
7115 | ||
7116 | _ACEOF | |
7117 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7118 | $EGREP "free" >/dev/null 2>&1; then | |
7119 | : | |
bf9f3bac | 7120 | else |
8934764e | 7121 | ac_cv_header_stdc=no |
bf9f3bac | 7122 | fi |
8934764e | 7123 | rm -f conftest* |
bf9f3bac | 7124 | |
8934764e | 7125 | fi |
bf9f3bac | 7126 | |
8934764e BB |
7127 | if test $ac_cv_header_stdc = yes; then |
7128 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
7129 | if test "$cross_compiling" = yes; then | |
7130 | : | |
bf9f3bac | 7131 | else |
8934764e BB |
7132 | cat >conftest.$ac_ext <<_ACEOF |
7133 | /* confdefs.h. */ | |
7134 | _ACEOF | |
7135 | cat confdefs.h >>conftest.$ac_ext | |
7136 | cat >>conftest.$ac_ext <<_ACEOF | |
7137 | /* end confdefs.h. */ | |
7138 | #include <ctype.h> | |
7139 | #include <stdlib.h> | |
7140 | #if ((' ' & 0x0FF) == 0x020) | |
7141 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
7142 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
7143 | #else | |
7144 | # define ISLOWER(c) \ | |
7145 | (('a' <= (c) && (c) <= 'i') \ | |
7146 | || ('j' <= (c) && (c) <= 'r') \ | |
7147 | || ('s' <= (c) && (c) <= 'z')) | |
7148 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
7149 | #endif | |
bf9f3bac | 7150 | |
8934764e BB |
7151 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
7152 | int | |
7153 | main () | |
7154 | { | |
7155 | int i; | |
7156 | for (i = 0; i < 256; i++) | |
7157 | if (XOR (islower (i), ISLOWER (i)) | |
7158 | || toupper (i) != TOUPPER (i)) | |
7159 | return 2; | |
7160 | return 0; | |
7161 | } | |
7162 | _ACEOF | |
7163 | rm -f conftest$ac_exeext | |
7164 | if { (ac_try="$ac_link" | |
7165 | case "(($ac_try" in | |
7166 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7167 | *) ac_try_echo=$ac_try;; | |
7168 | esac | |
7169 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7170 | $as_echo "$ac_try_echo") >&5 | |
7171 | (eval "$ac_link") 2>&5 | |
7172 | ac_status=$? | |
7173 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7174 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
7175 | { (case "(($ac_try" in | |
7176 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7177 | *) ac_try_echo=$ac_try;; | |
7178 | esac | |
7179 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7180 | $as_echo "$ac_try_echo") >&5 | |
7181 | (eval "$ac_try") 2>&5 | |
7182 | ac_status=$? | |
7183 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7184 | (exit $ac_status); }; }; then | |
7185 | : | |
7186 | else | |
7187 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
7188 | $as_echo "$as_me: failed program was:" >&5 | |
7189 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bf9f3bac | 7190 | |
8934764e BB |
7191 | ( exit $ac_status ) |
7192 | ac_cv_header_stdc=no | |
7193 | fi | |
7194 | rm -rf conftest.dSYM | |
7195 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
bf9f3bac | 7196 | fi |
bf9f3bac BB |
7197 | |
7198 | ||
bf9f3bac | 7199 | fi |
8934764e BB |
7200 | fi |
7201 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
7202 | $as_echo "$ac_cv_header_stdc" >&6; } | |
7203 | if test $ac_cv_header_stdc = yes; then | |
bf9f3bac | 7204 | |
8934764e BB |
7205 | cat >>confdefs.h <<\_ACEOF |
7206 | #define STDC_HEADERS 1 | |
7207 | _ACEOF | |
bf9f3bac | 7208 | |
8934764e | 7209 | fi |
bf9f3bac | 7210 | |
8934764e | 7211 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
bf9f3bac | 7212 | |
bf9f3bac | 7213 | |
bf9f3bac | 7214 | |
bf9f3bac | 7215 | |
bf9f3bac | 7216 | |
bf9f3bac | 7217 | |
bf9f3bac | 7218 | |
bf9f3bac | 7219 | |
bf9f3bac | 7220 | |
8934764e BB |
7221 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
7222 | inttypes.h stdint.h unistd.h | |
7223 | do | |
7224 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7225 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7226 | $as_echo_n "checking for $ac_header... " >&6; } | |
7227 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
7228 | $as_echo_n "(cached) " >&6 | |
7229 | else | |
7230 | cat >conftest.$ac_ext <<_ACEOF | |
7231 | /* confdefs.h. */ | |
7232 | _ACEOF | |
7233 | cat confdefs.h >>conftest.$ac_ext | |
7234 | cat >>conftest.$ac_ext <<_ACEOF | |
7235 | /* end confdefs.h. */ | |
7236 | $ac_includes_default | |
bf9f3bac | 7237 | |
8934764e BB |
7238 | #include <$ac_header> |
7239 | _ACEOF | |
7240 | rm -f conftest.$ac_objext | |
7241 | if { (ac_try="$ac_compile" | |
7242 | case "(($ac_try" in | |
7243 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7244 | *) ac_try_echo=$ac_try;; | |
7245 | esac | |
7246 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7247 | $as_echo "$ac_try_echo") >&5 | |
7248 | (eval "$ac_compile") 2>conftest.er1 | |
7249 | ac_status=$? | |
7250 | grep -v '^ *+' conftest.er1 >conftest.err | |
7251 | rm -f conftest.er1 | |
7252 | cat conftest.err >&5 | |
7253 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7254 | (exit $ac_status); } && { | |
7255 | test -z "$ac_c_werror_flag" || | |
7256 | test ! -s conftest.err | |
7257 | } && test -s conftest.$ac_objext; then | |
7258 | eval "$as_ac_Header=yes" | |
7259 | else | |
7260 | $as_echo "$as_me: failed program was:" >&5 | |
7261 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bf9f3bac | 7262 | |
8934764e BB |
7263 | eval "$as_ac_Header=no" |
7264 | fi | |
bf9f3bac | 7265 | |
8934764e BB |
7266 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7267 | fi | |
7268 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
7269 | $as_echo "$as_val"'` | |
7270 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7271 | $as_echo "$ac_res" >&6; } | |
7272 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
7273 | $as_echo "$as_val"'` | |
7274 | if test "x$as_val" = x""yes; then | |
7275 | cat >>confdefs.h <<_ACEOF | |
7276 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7277 | _ACEOF | |
bf9f3bac | 7278 | |
8934764e | 7279 | fi |
bf9f3bac | 7280 | |
8934764e | 7281 | done |
bf9f3bac | 7282 | |
bf9f3bac | 7283 | |
bf9f3bac | 7284 | |
8934764e BB |
7285 | for ac_header in dlfcn.h |
7286 | do | |
7287 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7288 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7289 | $as_echo_n "checking for $ac_header... " >&6; } | |
7290 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
7291 | $as_echo_n "(cached) " >&6 | |
7292 | else | |
7293 | cat >conftest.$ac_ext <<_ACEOF | |
bf9f3bac BB |
7294 | /* confdefs.h. */ |
7295 | _ACEOF | |
7296 | cat confdefs.h >>conftest.$ac_ext | |
7297 | cat >>conftest.$ac_ext <<_ACEOF | |
7298 | /* end confdefs.h. */ | |
8934764e | 7299 | $ac_includes_default |
bf9f3bac | 7300 | |
8934764e | 7301 | #include <$ac_header> |
bf9f3bac | 7302 | _ACEOF |
8934764e BB |
7303 | rm -f conftest.$ac_objext |
7304 | if { (ac_try="$ac_compile" | |
7305 | case "(($ac_try" in | |
7306 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7307 | *) ac_try_echo=$ac_try;; | |
7308 | esac | |
7309 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7310 | $as_echo "$ac_try_echo") >&5 | |
7311 | (eval "$ac_compile") 2>conftest.er1 | |
bf9f3bac BB |
7312 | ac_status=$? |
7313 | grep -v '^ *+' conftest.er1 >conftest.err | |
7314 | rm -f conftest.er1 | |
7315 | cat conftest.err >&5 | |
8934764e BB |
7316 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7317 | (exit $ac_status); } && { | |
7318 | test -z "$ac_c_werror_flag" || | |
7319 | test ! -s conftest.err | |
7320 | } && test -s conftest.$ac_objext; then | |
7321 | eval "$as_ac_Header=yes" | |
bf9f3bac | 7322 | else |
8934764e | 7323 | $as_echo "$as_me: failed program was:" >&5 |
bf9f3bac BB |
7324 | sed 's/^/| /' conftest.$ac_ext >&5 |
7325 | ||
8934764e | 7326 | eval "$as_ac_Header=no" |
bf9f3bac | 7327 | fi |
bf9f3bac | 7328 | |
8934764e BB |
7329 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7330 | fi | |
7331 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
7332 | $as_echo "$as_val"'` | |
7333 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7334 | $as_echo "$ac_res" >&6; } | |
7335 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
7336 | $as_echo "$as_val"'` | |
7337 | if test "x$as_val" = x""yes; then | |
7338 | cat >>confdefs.h <<_ACEOF | |
7339 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
bf9f3bac | 7340 | _ACEOF |
bf9f3bac BB |
7341 | |
7342 | fi | |
bf9f3bac | 7343 | |
8934764e | 7344 | done |
bf9f3bac | 7345 | |
bf9f3bac | 7346 | |
bf9f3bac | 7347 | |
8934764e | 7348 | # Set options |
bf9f3bac | 7349 | |
bf9f3bac | 7350 | |
bf9f3bac | 7351 | |
8934764e | 7352 | enable_dlopen=no |
bf9f3bac | 7353 | |
bf9f3bac | 7354 | |
8934764e | 7355 | enable_win32_dll=no |
bf9f3bac | 7356 | |
bf9f3bac | 7357 | |
8934764e BB |
7358 | # Check whether --enable-shared was given. |
7359 | if test "${enable_shared+set}" = set; then | |
7360 | enableval=$enable_shared; p=${PACKAGE-default} | |
7361 | case $enableval in | |
7362 | yes) enable_shared=yes ;; | |
7363 | no) enable_shared=no ;; | |
7364 | *) | |
7365 | enable_shared=no | |
7366 | # Look at the argument we got. We use all the common list separators. | |
7367 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7368 | for pkg in $enableval; do | |
7369 | IFS="$lt_save_ifs" | |
7370 | if test "X$pkg" = "X$p"; then | |
7371 | enable_shared=yes | |
7372 | fi | |
7373 | done | |
7374 | IFS="$lt_save_ifs" | |
bf9f3bac | 7375 | ;; |
8934764e BB |
7376 | esac |
7377 | else | |
7378 | enable_shared=yes | |
7379 | fi | |
bf9f3bac | 7380 | |
bf9f3bac | 7381 | |
bf9f3bac | 7382 | |
bf9f3bac | 7383 | |
bf9f3bac | 7384 | |
bf9f3bac | 7385 | |
bf9f3bac | 7386 | |
8934764e BB |
7387 | |
7388 | ||
7389 | # Check whether --enable-static was given. | |
7390 | if test "${enable_static+set}" = set; then | |
7391 | enableval=$enable_static; p=${PACKAGE-default} | |
7392 | case $enableval in | |
7393 | yes) enable_static=yes ;; | |
7394 | no) enable_static=no ;; | |
7395 | *) | |
7396 | enable_static=no | |
7397 | # Look at the argument we got. We use all the common list separators. | |
7398 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7399 | for pkg in $enableval; do | |
7400 | IFS="$lt_save_ifs" | |
7401 | if test "X$pkg" = "X$p"; then | |
7402 | enable_static=yes | |
7403 | fi | |
7404 | done | |
7405 | IFS="$lt_save_ifs" | |
7406 | ;; | |
7407 | esac | |
bf9f3bac | 7408 | else |
8934764e | 7409 | enable_static=yes |
bf9f3bac | 7410 | fi |
bf9f3bac | 7411 | |
8934764e BB |
7412 | |
7413 | ||
7414 | ||
7415 | ||
7416 | ||
7417 | ||
7418 | ||
7419 | ||
7420 | ||
7421 | # Check whether --with-pic was given. | |
7422 | if test "${with_pic+set}" = set; then | |
7423 | withval=$with_pic; pic_mode="$withval" | |
7424 | else | |
7425 | pic_mode=default | |
bf9f3bac BB |
7426 | fi |
7427 | ||
7428 | ||
8934764e BB |
7429 | test -z "$pic_mode" && pic_mode=default |
7430 | ||
7431 | ||
7432 | ||
7433 | ||
7434 | ||
7435 | ||
7436 | ||
7437 | # Check whether --enable-fast-install was given. | |
7438 | if test "${enable_fast_install+set}" = set; then | |
7439 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
7440 | case $enableval in | |
7441 | yes) enable_fast_install=yes ;; | |
7442 | no) enable_fast_install=no ;; | |
bf9f3bac | 7443 | *) |
8934764e BB |
7444 | enable_fast_install=no |
7445 | # Look at the argument we got. We use all the common list separators. | |
7446 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7447 | for pkg in $enableval; do | |
7448 | IFS="$lt_save_ifs" | |
7449 | if test "X$pkg" = "X$p"; then | |
7450 | enable_fast_install=yes | |
7451 | fi | |
7452 | done | |
7453 | IFS="$lt_save_ifs" | |
bf9f3bac BB |
7454 | ;; |
7455 | esac | |
8934764e BB |
7456 | else |
7457 | enable_fast_install=yes | |
7458 | fi | |
bf9f3bac | 7459 | |
bf9f3bac | 7460 | |
bf9f3bac | 7461 | |
bf9f3bac | 7462 | |
bf9f3bac | 7463 | |
bf9f3bac | 7464 | |
bf9f3bac | 7465 | |
bf9f3bac | 7466 | |
bf9f3bac | 7467 | |
bf9f3bac | 7468 | |
bf9f3bac | 7469 | |
8934764e BB |
7470 | # This can be used to rebuild libtool when needed |
7471 | LIBTOOL_DEPS="$ltmain" | |
bf9f3bac | 7472 | |
8934764e BB |
7473 | # Always use our own libtool. |
7474 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
bf9f3bac | 7475 | |
bf9f3bac | 7476 | |
bf9f3bac | 7477 | |
bf9f3bac | 7478 | |
bf9f3bac | 7479 | |
bf9f3bac | 7480 | |
bf9f3bac | 7481 | |
bf9f3bac | 7482 | |
bf9f3bac | 7483 | |
bf9f3bac | 7484 | |
bf9f3bac | 7485 | |
bf9f3bac | 7486 | |
bf9f3bac | 7487 | |
bf9f3bac | 7488 | |
bf9f3bac | 7489 | |
bf9f3bac | 7490 | |
bf9f3bac | 7491 | |
bf9f3bac | 7492 | |
bf9f3bac | 7493 | |
bf9f3bac | 7494 | |
bf9f3bac | 7495 | |
bf9f3bac | 7496 | |
bf9f3bac | 7497 | |
bf9f3bac | 7498 | |
bf9f3bac | 7499 | |
8934764e | 7500 | test -z "$LN_S" && LN_S="ln -s" |
bf9f3bac | 7501 | |
bf9f3bac | 7502 | |
bf9f3bac | 7503 | |
bf9f3bac | 7504 | |
bf9f3bac | 7505 | |
bf9f3bac | 7506 | |
bf9f3bac | 7507 | |
bf9f3bac | 7508 | |
bf9f3bac | 7509 | |
bf9f3bac | 7510 | |
bf9f3bac | 7511 | |
bf9f3bac | 7512 | |
bf9f3bac | 7513 | |
bf9f3bac | 7514 | |
8934764e BB |
7515 | if test -n "${ZSH_VERSION+set}" ; then |
7516 | setopt NO_GLOB_SUBST | |
7517 | fi | |
bf9f3bac | 7518 | |
8934764e BB |
7519 | { $as_echo "$as_me:$LINENO: checking for objdir" >&5 |
7520 | $as_echo_n "checking for objdir... " >&6; } | |
7521 | if test "${lt_cv_objdir+set}" = set; then | |
7522 | $as_echo_n "(cached) " >&6 | |
7523 | else | |
7524 | rm -f .libs 2>/dev/null | |
7525 | mkdir .libs 2>/dev/null | |
7526 | if test -d .libs; then | |
7527 | lt_cv_objdir=.libs | |
7528 | else | |
7529 | # MS-DOS does not allow filenames that begin with a dot. | |
7530 | lt_cv_objdir=_libs | |
7531 | fi | |
7532 | rmdir .libs 2>/dev/null | |
7533 | fi | |
7534 | { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 | |
7535 | $as_echo "$lt_cv_objdir" >&6; } | |
7536 | objdir=$lt_cv_objdir | |
bf9f3bac | 7537 | |
bf9f3bac | 7538 | |
bf9f3bac | 7539 | |
bf9f3bac | 7540 | |
bf9f3bac | 7541 | |
8934764e BB |
7542 | cat >>confdefs.h <<_ACEOF |
7543 | #define LT_OBJDIR "$lt_cv_objdir/" | |
7544 | _ACEOF | |
bf9f3bac | 7545 | |
bf9f3bac | 7546 | |
bf9f3bac | 7547 | |
bf9f3bac | 7548 | |
bf9f3bac | 7549 | |
bf9f3bac | 7550 | |
bf9f3bac | 7551 | |
bf9f3bac | 7552 | |
bf9f3bac | 7553 | |
bf9f3bac | 7554 | |
bf9f3bac | 7555 | |
bf9f3bac | 7556 | |
bf9f3bac | 7557 | |
bf9f3bac | 7558 | |
bf9f3bac | 7559 | |
bf9f3bac | 7560 | |
bf9f3bac | 7561 | |
8934764e BB |
7562 | case $host_os in |
7563 | aix3*) | |
7564 | # AIX sometimes has problems with the GCC collect2 program. For some | |
7565 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
7566 | # vanish in a puff of smoke. | |
7567 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
7568 | COLLECT_NAMES= | |
7569 | export COLLECT_NAMES | |
7570 | fi | |
7571 | ;; | |
7572 | esac | |
bf9f3bac | 7573 | |
8934764e BB |
7574 | # Sed substitution that helps us do robust quoting. It backslashifies |
7575 | # metacharacters that are still active within double-quoted strings. | |
7576 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
bf9f3bac | 7577 | |
8934764e BB |
7578 | # Same as above, but do not quote variable references. |
7579 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
bf9f3bac | 7580 | |
8934764e BB |
7581 | # Sed substitution to delay expansion of an escaped shell variable in a |
7582 | # double_quote_subst'ed string. | |
7583 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
bf9f3bac | 7584 | |
8934764e BB |
7585 | # Sed substitution to delay expansion of an escaped single quote. |
7586 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
bf9f3bac | 7587 | |
8934764e BB |
7588 | # Sed substitution to avoid accidental globbing in evaled expressions |
7589 | no_glob_subst='s/\*/\\\*/g' | |
bf9f3bac | 7590 | |
8934764e BB |
7591 | # Global variables: |
7592 | ofile=libtool | |
7593 | can_build_shared=yes | |
bf9f3bac | 7594 | |
8934764e BB |
7595 | # All known linkers require a `.a' archive for static linking (except MSVC, |
7596 | # which needs '.lib'). | |
7597 | libext=a | |
bf9f3bac | 7598 | |
8934764e | 7599 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
bf9f3bac | 7600 | |
8934764e BB |
7601 | old_CC="$CC" |
7602 | old_CFLAGS="$CFLAGS" | |
bf9f3bac | 7603 | |
8934764e BB |
7604 | # Set sane defaults for various variables |
7605 | test -z "$CC" && CC=cc | |
7606 | test -z "$LTCC" && LTCC=$CC | |
7607 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
7608 | test -z "$LD" && LD=ld | |
7609 | test -z "$ac_objext" && ac_objext=o | |
bf9f3bac | 7610 | |
8934764e BB |
7611 | for cc_temp in $compiler""; do |
7612 | case $cc_temp in | |
7613 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
7614 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
7615 | \-*) ;; | |
7616 | *) break;; | |
7617 | esac | |
7618 | done | |
7619 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
bf9f3bac | 7620 | |
bf9f3bac | 7621 | |
8934764e BB |
7622 | # Only perform the check for file, if the check method requires it |
7623 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
7624 | case $deplibs_check_method in | |
7625 | file_magic*) | |
7626 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
7627 | { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 | |
7628 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
7629 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
7630 | $as_echo_n "(cached) " >&6 | |
7631 | else | |
7632 | case $MAGIC_CMD in | |
7633 | [\\/*] | ?:[\\/]*) | |
7634 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7635 | ;; | |
7636 | *) | |
7637 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7638 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7639 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7640 | for ac_dir in $ac_dummy; do | |
7641 | IFS="$lt_save_ifs" | |
7642 | test -z "$ac_dir" && ac_dir=. | |
7643 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
7644 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
7645 | if test -n "$file_magic_test_file"; then | |
7646 | case $deplibs_check_method in | |
7647 | "file_magic "*) | |
7648 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7649 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7650 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7651 | $EGREP "$file_magic_regex" > /dev/null; then | |
7652 | : | |
7653 | else | |
7654 | cat <<_LT_EOF 1>&2 | |
bf9f3bac | 7655 | |
8934764e BB |
7656 | *** Warning: the command libtool uses to detect shared libraries, |
7657 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7658 | *** The result is that libtool may fail to recognize shared libraries | |
7659 | *** as such. This will affect the creation of libtool libraries that | |
7660 | *** depend on shared libraries, but programs linked with such libtool | |
7661 | *** libraries will work regardless of this problem. Nevertheless, you | |
7662 | *** may want to report the problem to your system manager and/or to | |
7663 | *** bug-libtool@gnu.org | |
bf9f3bac | 7664 | |
8934764e BB |
7665 | _LT_EOF |
7666 | fi ;; | |
7667 | esac | |
7668 | fi | |
7669 | break | |
7670 | fi | |
7671 | done | |
7672 | IFS="$lt_save_ifs" | |
7673 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7674 | ;; | |
7675 | esac | |
7676 | fi | |
bf9f3bac | 7677 | |
8934764e BB |
7678 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7679 | if test -n "$MAGIC_CMD"; then | |
7680 | { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
7681 | $as_echo "$MAGIC_CMD" >&6; } | |
7682 | else | |
7683 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
7684 | $as_echo "no" >&6; } | |
7685 | fi | |
bf9f3bac | 7686 | |
bf9f3bac | 7687 | |
bf9f3bac | 7688 | |
bf9f3bac | 7689 | |
bf9f3bac | 7690 | |
8934764e BB |
7691 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
7692 | if test -n "$ac_tool_prefix"; then | |
7693 | { $as_echo "$as_me:$LINENO: checking for file" >&5 | |
7694 | $as_echo_n "checking for file... " >&6; } | |
7695 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
7696 | $as_echo_n "(cached) " >&6 | |
7697 | else | |
7698 | case $MAGIC_CMD in | |
7699 | [\\/*] | ?:[\\/]*) | |
7700 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7701 | ;; | |
7702 | *) | |
7703 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7704 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7705 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7706 | for ac_dir in $ac_dummy; do | |
7707 | IFS="$lt_save_ifs" | |
7708 | test -z "$ac_dir" && ac_dir=. | |
7709 | if test -f $ac_dir/file; then | |
7710 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
7711 | if test -n "$file_magic_test_file"; then | |
7712 | case $deplibs_check_method in | |
7713 | "file_magic "*) | |
7714 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7715 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7716 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7717 | $EGREP "$file_magic_regex" > /dev/null; then | |
7718 | : | |
7719 | else | |
7720 | cat <<_LT_EOF 1>&2 | |
7721 | ||
7722 | *** Warning: the command libtool uses to detect shared libraries, | |
7723 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7724 | *** The result is that libtool may fail to recognize shared libraries | |
7725 | *** as such. This will affect the creation of libtool libraries that | |
7726 | *** depend on shared libraries, but programs linked with such libtool | |
7727 | *** libraries will work regardless of this problem. Nevertheless, you | |
7728 | *** may want to report the problem to your system manager and/or to | |
7729 | *** bug-libtool@gnu.org | |
bf9f3bac | 7730 | |
8934764e BB |
7731 | _LT_EOF |
7732 | fi ;; | |
7733 | esac | |
7734 | fi | |
7735 | break | |
7736 | fi | |
7737 | done | |
7738 | IFS="$lt_save_ifs" | |
7739 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7740 | ;; | |
7741 | esac | |
7742 | fi | |
bf9f3bac | 7743 | |
8934764e BB |
7744 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7745 | if test -n "$MAGIC_CMD"; then | |
7746 | { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
7747 | $as_echo "$MAGIC_CMD" >&6; } | |
7748 | else | |
7749 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
7750 | $as_echo "no" >&6; } | |
7751 | fi | |
bf9f3bac BB |
7752 | |
7753 | ||
8934764e BB |
7754 | else |
7755 | MAGIC_CMD=: | |
bf9f3bac BB |
7756 | fi |
7757 | fi | |
7758 | ||
8934764e BB |
7759 | fi |
7760 | ;; | |
7761 | esac | |
7762 | ||
7763 | # Use C for the default configuration in the libtool script | |
bf9f3bac | 7764 | |
8934764e | 7765 | lt_save_CC="$CC" |
bf9f3bac BB |
7766 | ac_ext=c |
7767 | ac_cpp='$CPP $CPPFLAGS' | |
7768 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7769 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7770 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7771 | ||
bf9f3bac | 7772 | |
8934764e BB |
7773 | # Source file extension for C test sources. |
7774 | ac_ext=c | |
bf9f3bac | 7775 | |
8934764e BB |
7776 | # Object file extension for compiled C test sources. |
7777 | objext=o | |
7778 | objext=$objext | |
bf9f3bac | 7779 | |
8934764e BB |
7780 | # Code to be used in simple compile tests |
7781 | lt_simple_compile_test_code="int some_variable = 0;" | |
7782 | ||
7783 | # Code to be used in simple link tests | |
7784 | lt_simple_link_test_code='int main(){return(0);}' | |
bf9f3bac BB |
7785 | |
7786 | ||
bf9f3bac | 7787 | |
bf9f3bac | 7788 | |
bf9f3bac | 7789 | |
bf9f3bac | 7790 | |
bf9f3bac BB |
7791 | |
7792 | # If no C compiler was specified, use CC. | |
7793 | LTCC=${LTCC-"$CC"} | |
7794 | ||
7795 | # If no C compiler flags were specified, use CFLAGS. | |
7796 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
7797 | ||
7798 | # Allow CC to be a program name with arguments. | |
7799 | compiler=$CC | |
7800 | ||
8934764e BB |
7801 | # Save the default compiler, since it gets overwritten when the other |
7802 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
7803 | compiler_DEFAULT=$CC | |
bf9f3bac BB |
7804 | |
7805 | # save warnings/boilerplate of simple test code | |
7806 | ac_outfile=conftest.$ac_objext | |
8934764e | 7807 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
bf9f3bac BB |
7808 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
7809 | _lt_compiler_boilerplate=`cat conftest.err` | |
8934764e | 7810 | $RM conftest* |
bf9f3bac BB |
7811 | |
7812 | ac_outfile=conftest.$ac_objext | |
8934764e | 7813 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
bf9f3bac BB |
7814 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
7815 | _lt_linker_boilerplate=`cat conftest.err` | |
8934764e | 7816 | $RM -r conftest* |
bf9f3bac | 7817 | |
bf9f3bac | 7818 | |
8934764e | 7819 | if test -n "$compiler"; then |
bf9f3bac | 7820 | |
8934764e | 7821 | lt_prog_compiler_no_builtin_flag= |
bf9f3bac BB |
7822 | |
7823 | if test "$GCC" = yes; then | |
8934764e | 7824 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
bf9f3bac | 7825 | |
8934764e BB |
7826 | { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
7827 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
bf9f3bac | 7828 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
8934764e | 7829 | $as_echo_n "(cached) " >&6 |
bf9f3bac BB |
7830 | else |
7831 | lt_cv_prog_compiler_rtti_exceptions=no | |
8934764e BB |
7832 | ac_outfile=conftest.$ac_objext |
7833 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
bf9f3bac BB |
7834 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
7835 | # Insert the option either (1) after the last *FLAGS variable, or | |
7836 | # (2) before a word containing "conftest.", or (3) at the end. | |
7837 | # Note that $ac_compile itself does not contain backslashes and begins | |
7838 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7839 | # The option is referenced via a variable to avoid confusing sed. | |
7840 | lt_compile=`echo "$ac_compile" | $SED \ | |
7841 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7842 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7843 | -e 's:$: $lt_compiler_flag:'` | |
287b2fb1 | 7844 | (eval echo "\"\$as_me:7844: $lt_compile\"" >&5) |
bf9f3bac BB |
7845 | (eval "$lt_compile" 2>conftest.err) |
7846 | ac_status=$? | |
7847 | cat conftest.err >&5 | |
287b2fb1 | 7848 | echo "$as_me:7848: \$? = $ac_status" >&5 |
bf9f3bac BB |
7849 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7850 | # The compiler can only warn and ignore the option if not recognized | |
7851 | # So say no if there are warnings other than the usual output. | |
8934764e | 7852 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
bf9f3bac BB |
7853 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
7854 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
7855 | lt_cv_prog_compiler_rtti_exceptions=yes | |
7856 | fi | |
7857 | fi | |
8934764e | 7858 | $RM conftest* |
bf9f3bac BB |
7859 | |
7860 | fi | |
8934764e BB |
7861 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
7862 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
bf9f3bac BB |
7863 | |
7864 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
8934764e | 7865 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
bf9f3bac BB |
7866 | else |
7867 | : | |
7868 | fi | |
7869 | ||
7870 | fi | |
7871 | ||
bf9f3bac | 7872 | |
8934764e BB |
7873 | |
7874 | ||
7875 | ||
7876 | ||
7877 | lt_prog_compiler_wl= | |
7878 | lt_prog_compiler_pic= | |
7879 | lt_prog_compiler_static= | |
7880 | ||
7881 | { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
7882 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
bf9f3bac BB |
7883 | |
7884 | if test "$GCC" = yes; then | |
8934764e BB |
7885 | lt_prog_compiler_wl='-Wl,' |
7886 | lt_prog_compiler_static='-static' | |
bf9f3bac BB |
7887 | |
7888 | case $host_os in | |
7889 | aix*) | |
7890 | # All AIX code is PIC. | |
7891 | if test "$host_cpu" = ia64; then | |
7892 | # AIX 5 now supports IA64 processor | |
8934764e | 7893 | lt_prog_compiler_static='-Bstatic' |
bf9f3bac BB |
7894 | fi |
7895 | ;; | |
7896 | ||
7897 | amigaos*) | |
8934764e BB |
7898 | case $host_cpu in |
7899 | powerpc) | |
7900 | # see comment about AmigaOS4 .so support | |
7901 | lt_prog_compiler_pic='-fPIC' | |
7902 | ;; | |
7903 | m68k) | |
7904 | # FIXME: we need at least 68020 code to build shared libraries, but | |
7905 | # adding the `-m68020' flag to GCC prevents building anything better, | |
7906 | # like `-m68040'. | |
7907 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
7908 | ;; | |
7909 | esac | |
bf9f3bac BB |
7910 | ;; |
7911 | ||
8934764e | 7912 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
bf9f3bac BB |
7913 | # PIC is the default for these OSes. |
7914 | ;; | |
7915 | ||
8934764e | 7916 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
bf9f3bac BB |
7917 | # This hack is so that the source file can tell whether it is being |
7918 | # built for inclusion in a dll (and should export symbols for example). | |
8934764e BB |
7919 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
7920 | # (--disable-auto-import) libraries | |
7921 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
bf9f3bac BB |
7922 | ;; |
7923 | ||
7924 | darwin* | rhapsody*) | |
7925 | # PIC is the default on this platform | |
7926 | # Common symbols not allowed in MH_DYLIB files | |
8934764e BB |
7927 | lt_prog_compiler_pic='-fno-common' |
7928 | ;; | |
7929 | ||
7930 | hpux*) | |
7931 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
7932 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
7933 | # sets the default TLS model and affects inlining. | |
7934 | case $host_cpu in | |
7935 | hppa*64*) | |
7936 | # +Z the default | |
7937 | ;; | |
7938 | *) | |
7939 | lt_prog_compiler_pic='-fPIC' | |
7940 | ;; | |
7941 | esac | |
bf9f3bac BB |
7942 | ;; |
7943 | ||
8934764e | 7944 | interix[3-9]*) |
bf9f3bac BB |
7945 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
7946 | # Instead, we relocate shared libraries at runtime. | |
7947 | ;; | |
7948 | ||
7949 | msdosdjgpp*) | |
7950 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
7951 | # on systems that don't support them. | |
8934764e | 7952 | lt_prog_compiler_can_build_shared=no |
bf9f3bac BB |
7953 | enable_shared=no |
7954 | ;; | |
7955 | ||
8934764e BB |
7956 | *nto* | *qnx*) |
7957 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
7958 | # it will coredump. | |
7959 | lt_prog_compiler_pic='-fPIC -shared' | |
7960 | ;; | |
7961 | ||
bf9f3bac BB |
7962 | sysv4*MP*) |
7963 | if test -d /usr/nec; then | |
8934764e | 7964 | lt_prog_compiler_pic=-Kconform_pic |
bf9f3bac BB |
7965 | fi |
7966 | ;; | |
7967 | ||
bf9f3bac | 7968 | *) |
8934764e | 7969 | lt_prog_compiler_pic='-fPIC' |
bf9f3bac BB |
7970 | ;; |
7971 | esac | |
7972 | else | |
7973 | # PORTME Check for flag to pass linker flags through the system compiler. | |
7974 | case $host_os in | |
7975 | aix*) | |
8934764e | 7976 | lt_prog_compiler_wl='-Wl,' |
bf9f3bac BB |
7977 | if test "$host_cpu" = ia64; then |
7978 | # AIX 5 now supports IA64 processor | |
8934764e | 7979 | lt_prog_compiler_static='-Bstatic' |
bf9f3bac | 7980 | else |
8934764e | 7981 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
bf9f3bac BB |
7982 | fi |
7983 | ;; | |
bf9f3bac | 7984 | |
8934764e | 7985 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
bf9f3bac BB |
7986 | # This hack is so that the source file can tell whether it is being |
7987 | # built for inclusion in a dll (and should export symbols for example). | |
8934764e | 7988 | lt_prog_compiler_pic='-DDLL_EXPORT' |
bf9f3bac BB |
7989 | ;; |
7990 | ||
7991 | hpux9* | hpux10* | hpux11*) | |
8934764e | 7992 | lt_prog_compiler_wl='-Wl,' |
bf9f3bac BB |
7993 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
7994 | # not for PA HP-UX. | |
7995 | case $host_cpu in | |
7996 | hppa*64*|ia64*) | |
7997 | # +Z the default | |
7998 | ;; | |
7999 | *) | |
8934764e | 8000 | lt_prog_compiler_pic='+Z' |
bf9f3bac BB |
8001 | ;; |
8002 | esac | |
8003 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
8934764e | 8004 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
bf9f3bac BB |
8005 | ;; |
8006 | ||
8007 | irix5* | irix6* | nonstopux*) | |
8934764e | 8008 | lt_prog_compiler_wl='-Wl,' |
bf9f3bac | 8009 | # PIC (with -KPIC) is the default. |
8934764e | 8010 | lt_prog_compiler_static='-non_shared' |
bf9f3bac BB |
8011 | ;; |
8012 | ||
8934764e | 8013 | linux* | k*bsd*-gnu) |
bf9f3bac | 8014 | case $cc_basename in |
8934764e BB |
8015 | # old Intel for x86_64 which still supported -KPIC. |
8016 | ecc*) | |
8017 | lt_prog_compiler_wl='-Wl,' | |
8018 | lt_prog_compiler_pic='-KPIC' | |
8019 | lt_prog_compiler_static='-static' | |
8020 | ;; | |
8021 | # icc used to be incompatible with GCC. | |
8022 | # ICC 10 doesn't accept -KPIC any more. | |
8023 | icc* | ifort*) | |
8024 | lt_prog_compiler_wl='-Wl,' | |
8025 | lt_prog_compiler_pic='-fPIC' | |
8026 | lt_prog_compiler_static='-static' | |
bf9f3bac | 8027 | ;; |
8934764e BB |
8028 | # Lahey Fortran 8.1. |
8029 | lf95*) | |
8030 | lt_prog_compiler_wl='-Wl,' | |
8031 | lt_prog_compiler_pic='--shared' | |
8032 | lt_prog_compiler_static='--static' | |
8033 | ;; | |
bf9f3bac BB |
8034 | pgcc* | pgf77* | pgf90* | pgf95*) |
8035 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
8036 | # which looks to be a dead project) | |
8934764e BB |
8037 | lt_prog_compiler_wl='-Wl,' |
8038 | lt_prog_compiler_pic='-fpic' | |
8039 | lt_prog_compiler_static='-Bstatic' | |
bf9f3bac BB |
8040 | ;; |
8041 | ccc*) | |
8934764e | 8042 | lt_prog_compiler_wl='-Wl,' |
bf9f3bac | 8043 | # All Alpha code is PIC. |
8934764e | 8044 | lt_prog_compiler_static='-non_shared' |
bf9f3bac | 8045 | ;; |
8934764e BB |
8046 | xl*) |
8047 | # IBM XL C 8.0/Fortran 10.1 on PPC | |
8048 | lt_prog_compiler_wl='-Wl,' | |
8049 | lt_prog_compiler_pic='-qpic' | |
8050 | lt_prog_compiler_static='-qstaticlink' | |
8051 | ;; | |
8052 | *) | |
8053 | case `$CC -V 2>&1 | sed 5q` in | |
8054 | *Sun\ C*) | |
8055 | # Sun C 5.9 | |
8056 | lt_prog_compiler_pic='-KPIC' | |
8057 | lt_prog_compiler_static='-Bstatic' | |
8058 | lt_prog_compiler_wl='-Wl,' | |
8059 | ;; | |
8060 | *Sun\ F*) | |
8061 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
8062 | lt_prog_compiler_pic='-KPIC' | |
8063 | lt_prog_compiler_static='-Bstatic' | |
8064 | lt_prog_compiler_wl='' | |
8065 | ;; | |
8066 | esac | |
8067 | ;; | |
bf9f3bac BB |
8068 | esac |
8069 | ;; | |
8070 | ||
8934764e BB |
8071 | newsos6) |
8072 | lt_prog_compiler_pic='-KPIC' | |
8073 | lt_prog_compiler_static='-Bstatic' | |
8074 | ;; | |
8075 | ||
8076 | *nto* | *qnx*) | |
8077 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8078 | # it will coredump. | |
8079 | lt_prog_compiler_pic='-fPIC -shared' | |
8080 | ;; | |
8081 | ||
bf9f3bac | 8082 | osf3* | osf4* | osf5*) |
8934764e | 8083 | lt_prog_compiler_wl='-Wl,' |
bf9f3bac | 8084 | # All OSF/1 code is PIC. |
8934764e BB |
8085 | lt_prog_compiler_static='-non_shared' |
8086 | ;; | |
8087 | ||
8088 | rdos*) | |
8089 | lt_prog_compiler_static='-non_shared' | |
bf9f3bac BB |
8090 | ;; |
8091 | ||
8092 | solaris*) | |
8934764e BB |
8093 | lt_prog_compiler_pic='-KPIC' |
8094 | lt_prog_compiler_static='-Bstatic' | |
bf9f3bac BB |
8095 | case $cc_basename in |
8096 | f77* | f90* | f95*) | |
8934764e | 8097 | lt_prog_compiler_wl='-Qoption ld ';; |
bf9f3bac | 8098 | *) |
8934764e | 8099 | lt_prog_compiler_wl='-Wl,';; |
bf9f3bac BB |
8100 | esac |
8101 | ;; | |
8102 | ||
8103 | sunos4*) | |
8934764e BB |
8104 | lt_prog_compiler_wl='-Qoption ld ' |
8105 | lt_prog_compiler_pic='-PIC' | |
8106 | lt_prog_compiler_static='-Bstatic' | |
bf9f3bac BB |
8107 | ;; |
8108 | ||
8109 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
8934764e BB |
8110 | lt_prog_compiler_wl='-Wl,' |
8111 | lt_prog_compiler_pic='-KPIC' | |
8112 | lt_prog_compiler_static='-Bstatic' | |
bf9f3bac BB |
8113 | ;; |
8114 | ||
8115 | sysv4*MP*) | |
8116 | if test -d /usr/nec ;then | |
8934764e BB |
8117 | lt_prog_compiler_pic='-Kconform_pic' |
8118 | lt_prog_compiler_static='-Bstatic' | |
bf9f3bac BB |
8119 | fi |
8120 | ;; | |
8121 | ||
8122 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
8934764e BB |
8123 | lt_prog_compiler_wl='-Wl,' |
8124 | lt_prog_compiler_pic='-KPIC' | |
8125 | lt_prog_compiler_static='-Bstatic' | |
bf9f3bac BB |
8126 | ;; |
8127 | ||
8128 | unicos*) | |
8934764e BB |
8129 | lt_prog_compiler_wl='-Wl,' |
8130 | lt_prog_compiler_can_build_shared=no | |
bf9f3bac BB |
8131 | ;; |
8132 | ||
8133 | uts4*) | |
8934764e BB |
8134 | lt_prog_compiler_pic='-pic' |
8135 | lt_prog_compiler_static='-Bstatic' | |
bf9f3bac BB |
8136 | ;; |
8137 | ||
8138 | *) | |
8934764e | 8139 | lt_prog_compiler_can_build_shared=no |
bf9f3bac BB |
8140 | ;; |
8141 | esac | |
8142 | fi | |
8143 | ||
8934764e BB |
8144 | case $host_os in |
8145 | # For platforms which do not support PIC, -DPIC is meaningless: | |
8146 | *djgpp*) | |
8147 | lt_prog_compiler_pic= | |
8148 | ;; | |
8149 | *) | |
8150 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
8151 | ;; | |
8152 | esac | |
8153 | { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 | |
8154 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
8155 | ||
8156 | ||
8157 | ||
8158 | ||
8159 | ||
bf9f3bac BB |
8160 | |
8161 | # | |
8162 | # Check to make sure the PIC flag actually works. | |
8163 | # | |
8934764e BB |
8164 | if test -n "$lt_prog_compiler_pic"; then |
8165 | { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
8166 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
8167 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then | |
8168 | $as_echo_n "(cached) " >&6 | |
8169 | else | |
8170 | lt_cv_prog_compiler_pic_works=no | |
8171 | ac_outfile=conftest.$ac_objext | |
8172 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8173 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
bf9f3bac BB |
8174 | # Insert the option either (1) after the last *FLAGS variable, or |
8175 | # (2) before a word containing "conftest.", or (3) at the end. | |
8176 | # Note that $ac_compile itself does not contain backslashes and begins | |
8177 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8178 | # The option is referenced via a variable to avoid confusing sed. | |
8179 | lt_compile=`echo "$ac_compile" | $SED \ | |
8180 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8181 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8182 | -e 's:$: $lt_compiler_flag:'` | |
287b2fb1 | 8183 | (eval echo "\"\$as_me:8183: $lt_compile\"" >&5) |
bf9f3bac BB |
8184 | (eval "$lt_compile" 2>conftest.err) |
8185 | ac_status=$? | |
8186 | cat conftest.err >&5 | |
287b2fb1 | 8187 | echo "$as_me:8187: \$? = $ac_status" >&5 |
bf9f3bac BB |
8188 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8189 | # The compiler can only warn and ignore the option if not recognized | |
8190 | # So say no if there are warnings other than the usual output. | |
8934764e | 8191 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
bf9f3bac BB |
8192 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8193 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8934764e | 8194 | lt_cv_prog_compiler_pic_works=yes |
bf9f3bac BB |
8195 | fi |
8196 | fi | |
8934764e | 8197 | $RM conftest* |
bf9f3bac BB |
8198 | |
8199 | fi | |
8934764e BB |
8200 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 |
8201 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
bf9f3bac | 8202 | |
8934764e BB |
8203 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
8204 | case $lt_prog_compiler_pic in | |
bf9f3bac | 8205 | "" | " "*) ;; |
8934764e | 8206 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
bf9f3bac BB |
8207 | esac |
8208 | else | |
8934764e BB |
8209 | lt_prog_compiler_pic= |
8210 | lt_prog_compiler_can_build_shared=no | |
bf9f3bac BB |
8211 | fi |
8212 | ||
8213 | fi | |
8934764e BB |
8214 | |
8215 | ||
8216 | ||
8217 | ||
8218 | ||
bf9f3bac BB |
8219 | |
8220 | # | |
8221 | # Check to make sure the static flag actually works. | |
8222 | # | |
8934764e BB |
8223 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
8224 | { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
8225 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
8226 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then | |
8227 | $as_echo_n "(cached) " >&6 | |
bf9f3bac | 8228 | else |
8934764e | 8229 | lt_cv_prog_compiler_static_works=no |
bf9f3bac BB |
8230 | save_LDFLAGS="$LDFLAGS" |
8231 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
8934764e | 8232 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
bf9f3bac BB |
8233 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
8234 | # The linker can only warn and ignore the option if not recognized | |
8235 | # So say no if there are warnings | |
8236 | if test -s conftest.err; then | |
8237 | # Append any errors to the config.log. | |
8238 | cat conftest.err 1>&5 | |
8934764e | 8239 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
bf9f3bac BB |
8240 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8241 | if diff conftest.exp conftest.er2 >/dev/null; then | |
8934764e | 8242 | lt_cv_prog_compiler_static_works=yes |
bf9f3bac BB |
8243 | fi |
8244 | else | |
8934764e | 8245 | lt_cv_prog_compiler_static_works=yes |
bf9f3bac BB |
8246 | fi |
8247 | fi | |
8934764e | 8248 | $RM -r conftest* |
bf9f3bac BB |
8249 | LDFLAGS="$save_LDFLAGS" |
8250 | ||
8251 | fi | |
8934764e BB |
8252 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 |
8253 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
bf9f3bac | 8254 | |
8934764e | 8255 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
bf9f3bac BB |
8256 | : |
8257 | else | |
8934764e BB |
8258 | lt_prog_compiler_static= |
8259 | fi | |
8260 | ||
8261 | ||
8262 | ||
8263 | ||
8264 | ||
8265 | ||
8266 | ||
8267 | { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
8268 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
8269 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | |
8270 | $as_echo_n "(cached) " >&6 | |
8271 | else | |
8272 | lt_cv_prog_compiler_c_o=no | |
8273 | $RM -r conftest 2>/dev/null | |
8274 | mkdir conftest | |
8275 | cd conftest | |
8276 | mkdir out | |
8277 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8278 | ||
8279 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
8280 | # Insert the option either (1) after the last *FLAGS variable, or | |
8281 | # (2) before a word containing "conftest.", or (3) at the end. | |
8282 | # Note that $ac_compile itself does not contain backslashes and begins | |
8283 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8284 | lt_compile=`echo "$ac_compile" | $SED \ | |
8285 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8286 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8287 | -e 's:$: $lt_compiler_flag:'` | |
287b2fb1 | 8288 | (eval echo "\"\$as_me:8288: $lt_compile\"" >&5) |
8934764e BB |
8289 | (eval "$lt_compile" 2>out/conftest.err) |
8290 | ac_status=$? | |
8291 | cat out/conftest.err >&5 | |
287b2fb1 | 8292 | echo "$as_me:8292: \$? = $ac_status" >&5 |
8934764e BB |
8293 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8294 | then | |
8295 | # The compiler can only warn and ignore the option if not recognized | |
8296 | # So say no if there are warnings | |
8297 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
8298 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
8299 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8300 | lt_cv_prog_compiler_c_o=yes | |
8301 | fi | |
8302 | fi | |
8303 | chmod u+w . 2>&5 | |
8304 | $RM conftest* | |
8305 | # SGI C++ compiler will create directory out/ii_files/ for | |
8306 | # template instantiation | |
8307 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8308 | $RM out/* && rmdir out | |
8309 | cd .. | |
8310 | $RM -r conftest | |
8311 | $RM conftest* | |
8312 | ||
bf9f3bac | 8313 | fi |
8934764e BB |
8314 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
8315 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
8316 | ||
8317 | ||
bf9f3bac BB |
8318 | |
8319 | ||
8934764e BB |
8320 | |
8321 | ||
8322 | { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
8323 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
8324 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | |
8325 | $as_echo_n "(cached) " >&6 | |
bf9f3bac | 8326 | else |
8934764e BB |
8327 | lt_cv_prog_compiler_c_o=no |
8328 | $RM -r conftest 2>/dev/null | |
bf9f3bac BB |
8329 | mkdir conftest |
8330 | cd conftest | |
8331 | mkdir out | |
8934764e | 8332 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
bf9f3bac BB |
8333 | |
8334 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
8335 | # Insert the option either (1) after the last *FLAGS variable, or | |
8336 | # (2) before a word containing "conftest.", or (3) at the end. | |
8337 | # Note that $ac_compile itself does not contain backslashes and begins | |
8338 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8339 | lt_compile=`echo "$ac_compile" | $SED \ | |
8340 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8341 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8342 | -e 's:$: $lt_compiler_flag:'` | |
287b2fb1 | 8343 | (eval echo "\"\$as_me:8343: $lt_compile\"" >&5) |
bf9f3bac BB |
8344 | (eval "$lt_compile" 2>out/conftest.err) |
8345 | ac_status=$? | |
8346 | cat out/conftest.err >&5 | |
287b2fb1 | 8347 | echo "$as_me:8347: \$? = $ac_status" >&5 |
bf9f3bac BB |
8348 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8349 | then | |
8350 | # The compiler can only warn and ignore the option if not recognized | |
8351 | # So say no if there are warnings | |
8934764e | 8352 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
bf9f3bac BB |
8353 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
8354 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8934764e | 8355 | lt_cv_prog_compiler_c_o=yes |
bf9f3bac BB |
8356 | fi |
8357 | fi | |
8358 | chmod u+w . 2>&5 | |
8934764e | 8359 | $RM conftest* |
bf9f3bac BB |
8360 | # SGI C++ compiler will create directory out/ii_files/ for |
8361 | # template instantiation | |
8934764e BB |
8362 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
8363 | $RM out/* && rmdir out | |
bf9f3bac | 8364 | cd .. |
8934764e BB |
8365 | $RM -r conftest |
8366 | $RM conftest* | |
bf9f3bac BB |
8367 | |
8368 | fi | |
8934764e BB |
8369 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
8370 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
8371 | ||
8372 | ||
bf9f3bac BB |
8373 | |
8374 | ||
8375 | hard_links="nottested" | |
8934764e | 8376 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
bf9f3bac | 8377 | # do not overwrite the value of need_locks provided by the user |
8934764e BB |
8378 | { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
8379 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
bf9f3bac | 8380 | hard_links=yes |
8934764e | 8381 | $RM conftest* |
bf9f3bac BB |
8382 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
8383 | touch conftest.a | |
8384 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
8385 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8934764e BB |
8386 | { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 |
8387 | $as_echo "$hard_links" >&6; } | |
bf9f3bac | 8388 | if test "$hard_links" = no; then |
8934764e BB |
8389 | { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
8390 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
bf9f3bac BB |
8391 | need_locks=warn |
8392 | fi | |
8393 | else | |
8394 | need_locks=no | |
8395 | fi | |
8396 | ||
8934764e BB |
8397 | |
8398 | ||
8399 | ||
8400 | ||
8401 | ||
8402 | { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
8403 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
bf9f3bac BB |
8404 | |
8405 | runpath_var= | |
8934764e BB |
8406 | allow_undefined_flag= |
8407 | always_export_symbols=no | |
8408 | archive_cmds= | |
8409 | archive_expsym_cmds= | |
8410 | compiler_needs_object=no | |
8411 | enable_shared_with_static_runtimes=no | |
8412 | export_dynamic_flag_spec= | |
8413 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
8414 | hardcode_automatic=no | |
8415 | hardcode_direct=no | |
8416 | hardcode_direct_absolute=no | |
8417 | hardcode_libdir_flag_spec= | |
8418 | hardcode_libdir_flag_spec_ld= | |
8419 | hardcode_libdir_separator= | |
8420 | hardcode_minus_L=no | |
8421 | hardcode_shlibpath_var=unsupported | |
8422 | inherit_rpath=no | |
8423 | link_all_deplibs=unknown | |
8424 | module_cmds= | |
8425 | module_expsym_cmds= | |
8426 | old_archive_from_new_cmds= | |
8427 | old_archive_from_expsyms_cmds= | |
8428 | thread_safe_flag_spec= | |
8429 | whole_archive_flag_spec= | |
bf9f3bac BB |
8430 | # include_expsyms should be a list of space-separated symbols to be *always* |
8431 | # included in the symbol list | |
8934764e | 8432 | include_expsyms= |
bf9f3bac BB |
8433 | # exclude_expsyms can be an extended regexp of symbols to exclude |
8434 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
8435 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
8436 | # as well as any symbol that contains `d'. | |
8934764e | 8437 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
bf9f3bac BB |
8438 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
8439 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
8440 | # the symbol is explicitly referenced. Since portable code cannot | |
8441 | # rely on this symbol name, it's probably fine to never include it in | |
8442 | # preloaded symbol tables. | |
8934764e | 8443 | # Exclude shared library initialization/finalization symbols. |
bf9f3bac | 8444 | extract_expsyms_cmds= |
bf9f3bac BB |
8445 | |
8446 | case $host_os in | |
8934764e | 8447 | cygwin* | mingw* | pw32* | cegcc*) |
bf9f3bac BB |
8448 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
8449 | # When not using gcc, we currently assume that we are using | |
8450 | # Microsoft Visual C++. | |
8451 | if test "$GCC" != yes; then | |
8452 | with_gnu_ld=no | |
8453 | fi | |
8454 | ;; | |
8455 | interix*) | |
8456 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
8457 | with_gnu_ld=yes | |
8458 | ;; | |
8459 | openbsd*) | |
8460 | with_gnu_ld=no | |
8461 | ;; | |
8462 | esac | |
8463 | ||
8934764e | 8464 | ld_shlibs=yes |
bf9f3bac BB |
8465 | if test "$with_gnu_ld" = yes; then |
8466 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
8467 | wlarc='${wl}' | |
8468 | ||
8469 | # Set some defaults for GNU ld with shared library support. These | |
8470 | # are reset later if shared libraries are not supported. Putting them | |
8471 | # here allows them to be overridden if necessary. | |
8472 | runpath_var=LD_RUN_PATH | |
8934764e BB |
8473 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8474 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
bf9f3bac | 8475 | # ancient GNU ld didn't support --whole-archive et. al. |
8934764e BB |
8476 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
8477 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
8478 | else | |
8479 | whole_archive_flag_spec= | |
bf9f3bac BB |
8480 | fi |
8481 | supports_anon_versioning=no | |
8934764e | 8482 | case `$LD -v 2>&1` in |
bf9f3bac BB |
8483 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
8484 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
8485 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
8486 | *\ 2.11.*) ;; # other 2.11 versions | |
8487 | *) supports_anon_versioning=yes ;; | |
8488 | esac | |
8489 | ||
8490 | # See if GNU ld supports shared libraries. | |
8491 | case $host_os in | |
8934764e | 8492 | aix[3-9]*) |
bf9f3bac BB |
8493 | # On AIX/PPC, the GNU linker is very broken |
8494 | if test "$host_cpu" != ia64; then | |
8934764e BB |
8495 | ld_shlibs=no |
8496 | cat <<_LT_EOF 1>&2 | |
bf9f3bac BB |
8497 | |
8498 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
8499 | *** to be unable to reliably create shared libraries on AIX. | |
8500 | *** Therefore, libtool is disabling shared libraries support. If you | |
8501 | *** really care for shared libraries, you may want to modify your PATH | |
8502 | *** so that a non-GNU linker is found, and then restart. | |
8503 | ||
8934764e | 8504 | _LT_EOF |
bf9f3bac BB |
8505 | fi |
8506 | ;; | |
8507 | ||
8508 | amigaos*) | |
8934764e BB |
8509 | case $host_cpu in |
8510 | powerpc) | |
8511 | # see comment about AmigaOS4 .so support | |
8512 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8513 | archive_expsym_cmds='' | |
8514 | ;; | |
8515 | m68k) | |
8516 | 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)' | |
8517 | hardcode_libdir_flag_spec='-L$libdir' | |
8518 | hardcode_minus_L=yes | |
8519 | ;; | |
8520 | esac | |
bf9f3bac BB |
8521 | ;; |
8522 | ||
8523 | beos*) | |
8934764e BB |
8524 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
8525 | allow_undefined_flag=unsupported | |
bf9f3bac BB |
8526 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
8527 | # support --undefined. This deserves some investigation. FIXME | |
8934764e | 8528 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
bf9f3bac | 8529 | else |
8934764e | 8530 | ld_shlibs=no |
bf9f3bac BB |
8531 | fi |
8532 | ;; | |
8533 | ||
8934764e BB |
8534 | cygwin* | mingw* | pw32* | cegcc*) |
8535 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
bf9f3bac | 8536 | # as there is no search path for DLLs. |
8934764e BB |
8537 | hardcode_libdir_flag_spec='-L$libdir' |
8538 | allow_undefined_flag=unsupported | |
8539 | always_export_symbols=no | |
8540 | enable_shared_with_static_runtimes=yes | |
8541 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
8542 | ||
8543 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
8544 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
bf9f3bac BB |
8545 | # If the export-symbols file already is a .def file (1st line |
8546 | # is EXPORTS), use it as is; otherwise, prepend... | |
8934764e | 8547 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
bf9f3bac BB |
8548 | cp $export_symbols $output_objdir/$soname.def; |
8549 | else | |
8550 | echo EXPORTS > $output_objdir/$soname.def; | |
8551 | cat $export_symbols >> $output_objdir/$soname.def; | |
8552 | fi~ | |
8553 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8554 | else | |
8934764e | 8555 | ld_shlibs=no |
bf9f3bac BB |
8556 | fi |
8557 | ;; | |
8558 | ||
8934764e BB |
8559 | interix[3-9]*) |
8560 | hardcode_direct=no | |
8561 | hardcode_shlibpath_var=no | |
8562 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8563 | export_dynamic_flag_spec='${wl}-E' | |
bf9f3bac BB |
8564 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
8565 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
8566 | # default) and relocated if they conflict, which is a slow very memory | |
8567 | # consuming and fragmenting process. To avoid this, we pick a random, | |
8568 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
8569 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
8934764e BB |
8570 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
8571 | 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' | |
bf9f3bac BB |
8572 | ;; |
8573 | ||
8934764e BB |
8574 | gnu* | linux* | tpf* | k*bsd*-gnu) |
8575 | tmp_diet=no | |
8576 | if test "$host_os" = linux-dietlibc; then | |
8577 | case $cc_basename in | |
8578 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
8579 | esac | |
8580 | fi | |
8581 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
8582 | && test "$tmp_diet" = no | |
8583 | then | |
bf9f3bac | 8584 | tmp_addflag= |
8934764e | 8585 | tmp_sharedflag='-shared' |
bf9f3bac | 8586 | case $cc_basename,$host_cpu in |
8934764e BB |
8587 | pgcc*) # Portland Group C compiler |
8588 | 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' | |
bf9f3bac BB |
8589 | tmp_addflag=' $pic_flag' |
8590 | ;; | |
8591 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
8934764e | 8592 | 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' |
bf9f3bac | 8593 | tmp_addflag=' $pic_flag -Mnomain' ;; |
8934764e | 8594 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
bf9f3bac BB |
8595 | tmp_addflag=' -i_dynamic' ;; |
8596 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
8597 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
8598 | ifc* | ifort*) # Intel Fortran compiler | |
8599 | tmp_addflag=' -nofor_main' ;; | |
8934764e BB |
8600 | lf95*) # Lahey Fortran 8.1 |
8601 | whole_archive_flag_spec= | |
8602 | tmp_sharedflag='--shared' ;; | |
8603 | xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
8604 | tmp_sharedflag='-qmkshrobj' | |
8605 | tmp_addflag= ;; | |
8606 | esac | |
8607 | case `$CC -V 2>&1 | sed 5q` in | |
8608 | *Sun\ C*) # Sun C 5.9 | |
8609 | 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' | |
8610 | compiler_needs_object=yes | |
8611 | tmp_sharedflag='-G' ;; | |
8612 | *Sun\ F*) # Sun Fortran 8.3 | |
8613 | tmp_sharedflag='-G' ;; | |
bf9f3bac | 8614 | esac |
8934764e | 8615 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
bf9f3bac | 8616 | |
8934764e BB |
8617 | if test "x$supports_anon_versioning" = xyes; then |
8618 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8619 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8620 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
8621 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
8622 | fi | |
8623 | ||
8624 | case $cc_basename in | |
8625 | xlf*) | |
8626 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
8627 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
8628 | hardcode_libdir_flag_spec= | |
8629 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
8630 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
8631 | if test "x$supports_anon_versioning" = xyes; then | |
8632 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8633 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8634 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
8635 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
8636 | fi | |
8637 | ;; | |
8638 | esac | |
bf9f3bac | 8639 | else |
8934764e | 8640 | ld_shlibs=no |
bf9f3bac BB |
8641 | fi |
8642 | ;; | |
8643 | ||
8644 | netbsd*) | |
8934764e BB |
8645 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
8646 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
bf9f3bac BB |
8647 | wlarc= |
8648 | else | |
8934764e BB |
8649 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
8650 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
bf9f3bac BB |
8651 | fi |
8652 | ;; | |
8653 | ||
8654 | solaris*) | |
8934764e BB |
8655 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
8656 | ld_shlibs=no | |
8657 | cat <<_LT_EOF 1>&2 | |
bf9f3bac BB |
8658 | |
8659 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
8660 | *** create shared libraries on Solaris systems. Therefore, libtool | |
8661 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
8662 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
8663 | *** your PATH or compiler configuration so that the native linker is | |
8664 | *** used, and then restart. | |
8665 | ||
8934764e BB |
8666 | _LT_EOF |
8667 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8668 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8669 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
bf9f3bac | 8670 | else |
8934764e | 8671 | ld_shlibs=no |
bf9f3bac BB |
8672 | fi |
8673 | ;; | |
8674 | ||
8675 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
8676 | case `$LD -v 2>&1` in | |
8677 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
8934764e | 8678 | ld_shlibs=no |
bf9f3bac BB |
8679 | cat <<_LT_EOF 1>&2 |
8680 | ||
8681 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
8682 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
8683 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
8684 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
8685 | *** your PATH or compiler configuration so that the native linker is | |
8686 | *** used, and then restart. | |
8687 | ||
8688 | _LT_EOF | |
8689 | ;; | |
8690 | *) | |
8934764e BB |
8691 | # For security reasons, it is highly recommended that you always |
8692 | # use absolute paths for naming shared libraries, and exclude the | |
8693 | # DT_RUNPATH tag from executables and libraries. But doing so | |
8694 | # requires that you compile everything twice, which is a pain. | |
8695 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8696 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8697 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8698 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
bf9f3bac | 8699 | else |
8934764e | 8700 | ld_shlibs=no |
bf9f3bac BB |
8701 | fi |
8702 | ;; | |
8703 | esac | |
8704 | ;; | |
8705 | ||
8706 | sunos4*) | |
8934764e | 8707 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
bf9f3bac | 8708 | wlarc= |
8934764e BB |
8709 | hardcode_direct=yes |
8710 | hardcode_shlibpath_var=no | |
bf9f3bac BB |
8711 | ;; |
8712 | ||
8713 | *) | |
8934764e BB |
8714 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
8715 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8716 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
bf9f3bac | 8717 | else |
8934764e | 8718 | ld_shlibs=no |
bf9f3bac BB |
8719 | fi |
8720 | ;; | |
8721 | esac | |
8722 | ||
8934764e | 8723 | if test "$ld_shlibs" = no; then |
bf9f3bac | 8724 | runpath_var= |
8934764e BB |
8725 | hardcode_libdir_flag_spec= |
8726 | export_dynamic_flag_spec= | |
8727 | whole_archive_flag_spec= | |
bf9f3bac BB |
8728 | fi |
8729 | else | |
8730 | # PORTME fill in a description of your system's linker (not GNU ld) | |
8731 | case $host_os in | |
8732 | aix3*) | |
8934764e BB |
8733 | allow_undefined_flag=unsupported |
8734 | always_export_symbols=yes | |
8735 | 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' | |
bf9f3bac BB |
8736 | # Note: this linker hardcodes the directories in LIBPATH if there |
8737 | # are no directories specified by -L. | |
8934764e | 8738 | hardcode_minus_L=yes |
bf9f3bac BB |
8739 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
8740 | # Neither direct hardcoding nor static linking is supported with a | |
8741 | # broken collect2. | |
8934764e | 8742 | hardcode_direct=unsupported |
bf9f3bac BB |
8743 | fi |
8744 | ;; | |
8745 | ||
8934764e | 8746 | aix[4-9]*) |
bf9f3bac BB |
8747 | if test "$host_cpu" = ia64; then |
8748 | # On IA64, the linker does run time linking by default, so we don't | |
8749 | # have to do anything special. | |
8750 | aix_use_runtimelinking=no | |
8751 | exp_sym_flag='-Bexport' | |
8752 | no_entry_flag="" | |
8753 | else | |
8754 | # If we're using GNU nm, then we don't want the "-C" option. | |
8755 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
8934764e BB |
8756 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
8757 | 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' | |
bf9f3bac | 8758 | else |
8934764e | 8759 | 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' |
bf9f3bac BB |
8760 | fi |
8761 | aix_use_runtimelinking=no | |
8762 | ||
8763 | # Test if we are trying to use run time linking or normal | |
8764 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
8765 | # need to do runtime linking. | |
8934764e | 8766 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
bf9f3bac | 8767 | for ld_flag in $LDFLAGS; do |
8934764e BB |
8768 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
8769 | aix_use_runtimelinking=yes | |
8770 | break | |
8771 | fi | |
bf9f3bac BB |
8772 | done |
8773 | ;; | |
8774 | esac | |
8775 | ||
8776 | exp_sym_flag='-bexport' | |
8777 | no_entry_flag='-bnoentry' | |
8778 | fi | |
8779 | ||
8780 | # When large executables or shared objects are built, AIX ld can | |
8781 | # have problems creating the table of contents. If linking a library | |
8782 | # or program results in "error TOC overflow" add -mminimal-toc to | |
8783 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
8784 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
8785 | ||
8934764e BB |
8786 | archive_cmds='' |
8787 | hardcode_direct=yes | |
8788 | hardcode_direct_absolute=yes | |
8789 | hardcode_libdir_separator=':' | |
8790 | link_all_deplibs=yes | |
8791 | file_list_spec='${wl}-f,' | |
bf9f3bac BB |
8792 | |
8793 | if test "$GCC" = yes; then | |
8794 | case $host_os in aix4.[012]|aix4.[012].*) | |
8795 | # We only want to do this on AIX 4.2 and lower, the check | |
8796 | # below for broken collect2 doesn't work under 4.3+ | |
8797 | collect2name=`${CC} -print-prog-name=collect2` | |
8934764e BB |
8798 | if test -f "$collect2name" && |
8799 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
bf9f3bac | 8800 | then |
8934764e BB |
8801 | # We have reworked collect2 |
8802 | : | |
bf9f3bac | 8803 | else |
8934764e BB |
8804 | # We have old collect2 |
8805 | hardcode_direct=unsupported | |
8806 | # It fails to find uninstalled libraries when the uninstalled | |
8807 | # path is not listed in the libpath. Setting hardcode_minus_L | |
8808 | # to unsupported forces relinking | |
8809 | hardcode_minus_L=yes | |
8810 | hardcode_libdir_flag_spec='-L$libdir' | |
8811 | hardcode_libdir_separator= | |
bf9f3bac BB |
8812 | fi |
8813 | ;; | |
8814 | esac | |
8815 | shared_flag='-shared' | |
8816 | if test "$aix_use_runtimelinking" = yes; then | |
8817 | shared_flag="$shared_flag "'${wl}-G' | |
8818 | fi | |
8819 | else | |
8820 | # not using gcc | |
8821 | if test "$host_cpu" = ia64; then | |
8934764e BB |
8822 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
8823 | # chokes on -Wl,-G. The following line is correct: | |
bf9f3bac BB |
8824 | shared_flag='-G' |
8825 | else | |
8826 | if test "$aix_use_runtimelinking" = yes; then | |
8827 | shared_flag='${wl}-G' | |
8828 | else | |
8829 | shared_flag='${wl}-bM:SRE' | |
8830 | fi | |
8831 | fi | |
8832 | fi | |
8833 | ||
8934764e | 8834 | export_dynamic_flag_spec='${wl}-bexpall' |
bf9f3bac BB |
8835 | # It seems that -bexpall does not export symbols beginning with |
8836 | # underscore (_), so it is better to generate a list of symbols to export. | |
8934764e | 8837 | always_export_symbols=yes |
bf9f3bac BB |
8838 | if test "$aix_use_runtimelinking" = yes; then |
8839 | # Warning - without using the other runtime loading flags (-brtl), | |
8840 | # -berok will link without error, but may produce a broken library. | |
8934764e BB |
8841 | allow_undefined_flag='-berok' |
8842 | # Determine the default libpath from the value encoded in an | |
8843 | # empty executable. | |
8844 | cat >conftest.$ac_ext <<_ACEOF | |
bf9f3bac BB |
8845 | /* confdefs.h. */ |
8846 | _ACEOF | |
8847 | cat confdefs.h >>conftest.$ac_ext | |
8848 | cat >>conftest.$ac_ext <<_ACEOF | |
8849 | /* end confdefs.h. */ | |
8850 | ||
8851 | int | |
8852 | main () | |
8853 | { | |
8854 | ||
8855 | ; | |
8856 | return 0; | |
8857 | } | |
8858 | _ACEOF | |
8859 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8934764e BB |
8860 | if { (ac_try="$ac_link" |
8861 | case "(($ac_try" in | |
8862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8863 | *) ac_try_echo=$ac_try;; | |
8864 | esac | |
8865 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8866 | $as_echo "$ac_try_echo") >&5 | |
8867 | (eval "$ac_link") 2>conftest.er1 | |
bf9f3bac BB |
8868 | ac_status=$? |
8869 | grep -v '^ *+' conftest.er1 >conftest.err | |
8870 | rm -f conftest.er1 | |
8871 | cat conftest.err >&5 | |
8934764e BB |
8872 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8873 | (exit $ac_status); } && { | |
8874 | test -z "$ac_c_werror_flag" || | |
8875 | test ! -s conftest.err | |
8876 | } && test -s conftest$ac_exeext && { | |
8877 | test "$cross_compiling" = yes || | |
8878 | $as_test_x conftest$ac_exeext | |
8879 | }; then | |
8880 | ||
8881 | lt_aix_libpath_sed=' | |
8882 | /Import File Strings/,/^$/ { | |
8883 | /^0/ { | |
8884 | s/^0 *\(.*\)$/\1/ | |
8885 | p | |
8886 | } | |
8887 | }' | |
8888 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
bf9f3bac | 8889 | # Check for a 64-bit object if we didn't find anything. |
8934764e BB |
8890 | if test -z "$aix_libpath"; then |
8891 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8892 | fi | |
bf9f3bac | 8893 | else |
8934764e | 8894 | $as_echo "$as_me: failed program was:" >&5 |
bf9f3bac BB |
8895 | sed 's/^/| /' conftest.$ac_ext >&5 |
8896 | ||
8934764e | 8897 | |
bf9f3bac | 8898 | fi |
8934764e BB |
8899 | |
8900 | rm -rf conftest.dSYM | |
8901 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
bf9f3bac BB |
8902 | conftest$ac_exeext conftest.$ac_ext |
8903 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
8904 | ||
8934764e BB |
8905 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
8906 | 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" | |
8907 | else | |
bf9f3bac | 8908 | if test "$host_cpu" = ia64; then |
8934764e BB |
8909 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
8910 | allow_undefined_flag="-z nodefs" | |
8911 | 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" | |
bf9f3bac | 8912 | else |
8934764e BB |
8913 | # Determine the default libpath from the value encoded in an |
8914 | # empty executable. | |
bf9f3bac BB |
8915 | cat >conftest.$ac_ext <<_ACEOF |
8916 | /* confdefs.h. */ | |
8917 | _ACEOF | |
8918 | cat confdefs.h >>conftest.$ac_ext | |
8919 | cat >>conftest.$ac_ext <<_ACEOF | |
8920 | /* end confdefs.h. */ | |
8921 | ||
8922 | int | |
8923 | main () | |
8924 | { | |
8925 | ||
8926 | ; | |
8927 | return 0; | |
8928 | } | |
8929 | _ACEOF | |
8930 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8934764e BB |
8931 | if { (ac_try="$ac_link" |
8932 | case "(($ac_try" in | |
8933 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8934 | *) ac_try_echo=$ac_try;; | |
8935 | esac | |
8936 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8937 | $as_echo "$ac_try_echo") >&5 | |
8938 | (eval "$ac_link") 2>conftest.er1 | |
bf9f3bac BB |
8939 | ac_status=$? |
8940 | grep -v '^ *+' conftest.er1 >conftest.err | |
8941 | rm -f conftest.er1 | |
8942 | cat conftest.err >&5 | |
8934764e BB |
8943 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8944 | (exit $ac_status); } && { | |
8945 | test -z "$ac_c_werror_flag" || | |
8946 | test ! -s conftest.err | |
8947 | } && test -s conftest$ac_exeext && { | |
8948 | test "$cross_compiling" = yes || | |
8949 | $as_test_x conftest$ac_exeext | |
8950 | }; then | |
8951 | ||
8952 | lt_aix_libpath_sed=' | |
8953 | /Import File Strings/,/^$/ { | |
8954 | /^0/ { | |
8955 | s/^0 *\(.*\)$/\1/ | |
8956 | p | |
8957 | } | |
8958 | }' | |
8959 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
bf9f3bac | 8960 | # Check for a 64-bit object if we didn't find anything. |
8934764e BB |
8961 | if test -z "$aix_libpath"; then |
8962 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8963 | fi | |
bf9f3bac | 8964 | else |
8934764e | 8965 | $as_echo "$as_me: failed program was:" >&5 |
bf9f3bac BB |
8966 | sed 's/^/| /' conftest.$ac_ext >&5 |
8967 | ||
8934764e | 8968 | |
bf9f3bac | 8969 | fi |
8934764e BB |
8970 | |
8971 | rm -rf conftest.dSYM | |
8972 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
bf9f3bac BB |
8973 | conftest$ac_exeext conftest.$ac_ext |
8974 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
8975 | ||
8934764e | 8976 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
bf9f3bac BB |
8977 | # Warning - without using the other run time loading flags, |
8978 | # -berok will link without error, but may produce a broken library. | |
8934764e BB |
8979 | no_undefined_flag=' ${wl}-bernotok' |
8980 | allow_undefined_flag=' ${wl}-berok' | |
bf9f3bac | 8981 | # Exported symbols can be pulled into shared objects from archives |
8934764e BB |
8982 | whole_archive_flag_spec='$convenience' |
8983 | archive_cmds_need_lc=yes | |
bf9f3bac | 8984 | # This is similar to how AIX traditionally builds its shared libraries. |
8934764e | 8985 | 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' |
bf9f3bac BB |
8986 | fi |
8987 | fi | |
8988 | ;; | |
8989 | ||
8990 | amigaos*) | |
8934764e BB |
8991 | case $host_cpu in |
8992 | powerpc) | |
8993 | # see comment about AmigaOS4 .so support | |
8994 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8995 | archive_expsym_cmds='' | |
8996 | ;; | |
8997 | m68k) | |
8998 | 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)' | |
8999 | hardcode_libdir_flag_spec='-L$libdir' | |
9000 | hardcode_minus_L=yes | |
9001 | ;; | |
9002 | esac | |
bf9f3bac BB |
9003 | ;; |
9004 | ||
9005 | bsdi[45]*) | |
8934764e | 9006 | export_dynamic_flag_spec=-rdynamic |
bf9f3bac BB |
9007 | ;; |
9008 | ||
8934764e | 9009 | cygwin* | mingw* | pw32* | cegcc*) |
bf9f3bac BB |
9010 | # When not using gcc, we currently assume that we are using |
9011 | # Microsoft Visual C++. | |
9012 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
9013 | # no search path for DLLs. | |
8934764e BB |
9014 | hardcode_libdir_flag_spec=' ' |
9015 | allow_undefined_flag=unsupported | |
bf9f3bac BB |
9016 | # Tell ltmain to make .lib files, not .a files. |
9017 | libext=lib | |
9018 | # Tell ltmain to make .dll files, not .so files. | |
9019 | shrext_cmds=".dll" | |
9020 | # FIXME: Setting linknames here is a bad hack. | |
8934764e | 9021 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
bf9f3bac | 9022 | # The linker will automatically build a .lib file if we build a DLL. |
8934764e | 9023 | old_archive_from_new_cmds='true' |
bf9f3bac | 9024 | # FIXME: Should let the user specify the lib program. |
8934764e BB |
9025 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
9026 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
9027 | enable_shared_with_static_runtimes=yes | |
bf9f3bac BB |
9028 | ;; |
9029 | ||
9030 | darwin* | rhapsody*) | |
8934764e BB |
9031 | |
9032 | ||
9033 | archive_cmds_need_lc=no | |
9034 | hardcode_direct=no | |
9035 | hardcode_automatic=yes | |
9036 | hardcode_shlibpath_var=unsupported | |
9037 | whole_archive_flag_spec='' | |
9038 | link_all_deplibs=yes | |
9039 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
9040 | case $cc_basename in | |
9041 | ifort*) _lt_dar_can_shared=yes ;; | |
9042 | *) _lt_dar_can_shared=$GCC ;; | |
9043 | esac | |
9044 | if test "$_lt_dar_can_shared" = "yes"; then | |
9045 | output_verbose_link_cmd=echo | |
9046 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
9047 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
9048 | 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}" | |
9049 | 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}" | |
9050 | ||
9051 | else | |
9052 | ld_shlibs=no | |
9053 | fi | |
9054 | ||
bf9f3bac BB |
9055 | ;; |
9056 | ||
9057 | dgux*) | |
8934764e BB |
9058 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
9059 | hardcode_libdir_flag_spec='-L$libdir' | |
9060 | hardcode_shlibpath_var=no | |
bf9f3bac BB |
9061 | ;; |
9062 | ||
9063 | freebsd1*) | |
8934764e | 9064 | ld_shlibs=no |
bf9f3bac BB |
9065 | ;; |
9066 | ||
9067 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
9068 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
9069 | # does not break anything, and helps significantly (at the cost of a little | |
9070 | # extra space). | |
9071 | freebsd2.2*) | |
8934764e BB |
9072 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
9073 | hardcode_libdir_flag_spec='-R$libdir' | |
9074 | hardcode_direct=yes | |
9075 | hardcode_shlibpath_var=no | |
bf9f3bac BB |
9076 | ;; |
9077 | ||
9078 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
9079 | freebsd2*) | |
8934764e BB |
9080 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
9081 | hardcode_direct=yes | |
9082 | hardcode_minus_L=yes | |
9083 | hardcode_shlibpath_var=no | |
bf9f3bac BB |
9084 | ;; |
9085 | ||
9086 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
8934764e BB |
9087 | freebsd* | dragonfly*) |
9088 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
9089 | hardcode_libdir_flag_spec='-R$libdir' | |
9090 | hardcode_direct=yes | |
9091 | hardcode_shlibpath_var=no | |
bf9f3bac BB |
9092 | ;; |
9093 | ||
9094 | hpux9*) | |
9095 | if test "$GCC" = yes; then | |
8934764e | 9096 | 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' |
bf9f3bac | 9097 | else |
8934764e | 9098 | 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' |
bf9f3bac | 9099 | fi |
8934764e BB |
9100 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
9101 | hardcode_libdir_separator=: | |
9102 | hardcode_direct=yes | |
bf9f3bac BB |
9103 | |
9104 | # hardcode_minus_L: Not really in the search PATH, | |
9105 | # but as the default location of the library. | |
8934764e BB |
9106 | hardcode_minus_L=yes |
9107 | export_dynamic_flag_spec='${wl}-E' | |
bf9f3bac BB |
9108 | ;; |
9109 | ||
9110 | hpux10*) | |
9111 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
8934764e | 9112 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
bf9f3bac | 9113 | else |
8934764e | 9114 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
bf9f3bac BB |
9115 | fi |
9116 | if test "$with_gnu_ld" = no; then | |
8934764e BB |
9117 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
9118 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
9119 | hardcode_libdir_separator=: | |
9120 | hardcode_direct=yes | |
9121 | hardcode_direct_absolute=yes | |
9122 | export_dynamic_flag_spec='${wl}-E' | |
bf9f3bac BB |
9123 | # hardcode_minus_L: Not really in the search PATH, |
9124 | # but as the default location of the library. | |
8934764e | 9125 | hardcode_minus_L=yes |
bf9f3bac BB |
9126 | fi |
9127 | ;; | |
9128 | ||
9129 | hpux11*) | |
9130 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
9131 | case $host_cpu in | |
9132 | hppa*64*) | |
8934764e | 9133 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
bf9f3bac BB |
9134 | ;; |
9135 | ia64*) | |
8934764e | 9136 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
bf9f3bac BB |
9137 | ;; |
9138 | *) | |
8934764e | 9139 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
bf9f3bac BB |
9140 | ;; |
9141 | esac | |
9142 | else | |
9143 | case $host_cpu in | |
9144 | hppa*64*) | |
8934764e | 9145 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
bf9f3bac BB |
9146 | ;; |
9147 | ia64*) | |
8934764e | 9148 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
bf9f3bac BB |
9149 | ;; |
9150 | *) | |
8934764e | 9151 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
bf9f3bac BB |
9152 | ;; |
9153 | esac | |
9154 | fi | |
9155 | if test "$with_gnu_ld" = no; then | |
8934764e BB |
9156 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
9157 | hardcode_libdir_separator=: | |
bf9f3bac BB |
9158 | |
9159 | case $host_cpu in | |
9160 | hppa*64*|ia64*) | |
8934764e BB |
9161 | hardcode_direct=no |
9162 | hardcode_shlibpath_var=no | |
bf9f3bac BB |
9163 | ;; |
9164 | *) | |
8934764e BB |
9165 | hardcode_direct=yes |
9166 | hardcode_direct_absolute=yes | |
9167 | export_dynamic_flag_spec='${wl}-E' | |
bf9f3bac BB |
9168 | |
9169 | # hardcode_minus_L: Not really in the search PATH, | |
9170 | # but as the default location of the library. | |
8934764e | 9171 | hardcode_minus_L=yes |
bf9f3bac BB |
9172 | ;; |
9173 | esac | |
9174 | fi | |
9175 | ;; | |
9176 | ||
9177 | irix5* | irix6* | nonstopux*) | |
9178 | if test "$GCC" = yes; then | |
8934764e BB |
9179 | 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' |
9180 | # Try to use the -exported_symbol ld option, if it does not | |
9181 | # work, assume that -exports_file does not work either and | |
9182 | # implicitly export all symbols. | |
9183 | save_LDFLAGS="$LDFLAGS" | |
9184 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
9185 | cat >conftest.$ac_ext <<_ACEOF | |
9186 | int foo(void) {} | |
9187 | _ACEOF | |
9188 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9189 | if { (ac_try="$ac_link" | |
9190 | case "(($ac_try" in | |
9191 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9192 | *) ac_try_echo=$ac_try;; | |
9193 | esac | |
9194 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9195 | $as_echo "$ac_try_echo") >&5 | |
9196 | (eval "$ac_link") 2>conftest.er1 | |
9197 | ac_status=$? | |
9198 | grep -v '^ *+' conftest.er1 >conftest.err | |
9199 | rm -f conftest.er1 | |
9200 | cat conftest.err >&5 | |
9201 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9202 | (exit $ac_status); } && { | |
9203 | test -z "$ac_c_werror_flag" || | |
9204 | test ! -s conftest.err | |
9205 | } && test -s conftest$ac_exeext && { | |
9206 | test "$cross_compiling" = yes || | |
9207 | $as_test_x conftest$ac_exeext | |
9208 | }; then | |
9209 | 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' | |
9210 | ||
9211 | else | |
9212 | $as_echo "$as_me: failed program was:" >&5 | |
9213 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9214 | ||
9215 | ||
9216 | fi | |
9217 | ||
9218 | rm -rf conftest.dSYM | |
9219 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
9220 | conftest$ac_exeext conftest.$ac_ext | |
9221 | LDFLAGS="$save_LDFLAGS" | |
bf9f3bac | 9222 | else |
8934764e BB |
9223 | 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' |
9224 | 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' | |
bf9f3bac | 9225 | fi |
8934764e BB |
9226 | archive_cmds_need_lc='no' |
9227 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9228 | hardcode_libdir_separator=: | |
9229 | inherit_rpath=yes | |
9230 | link_all_deplibs=yes | |
bf9f3bac BB |
9231 | ;; |
9232 | ||
9233 | netbsd*) | |
8934764e BB |
9234 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
9235 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
bf9f3bac | 9236 | else |
8934764e | 9237 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
bf9f3bac | 9238 | fi |
8934764e BB |
9239 | hardcode_libdir_flag_spec='-R$libdir' |
9240 | hardcode_direct=yes | |
9241 | hardcode_shlibpath_var=no | |
bf9f3bac BB |
9242 | ;; |
9243 | ||
9244 | newsos6) | |
8934764e BB |
9245 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
9246 | hardcode_direct=yes | |
9247 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9248 | hardcode_libdir_separator=: | |
9249 | hardcode_shlibpath_var=no | |
9250 | ;; | |
9251 | ||
9252 | *nto* | *qnx*) | |
bf9f3bac BB |
9253 | ;; |
9254 | ||
9255 | openbsd*) | |
8934764e BB |
9256 | if test -f /usr/libexec/ld.so; then |
9257 | hardcode_direct=yes | |
9258 | hardcode_shlibpath_var=no | |
9259 | hardcode_direct_absolute=yes | |
9260 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
9261 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9262 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
9263 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9264 | export_dynamic_flag_spec='${wl}-E' | |
9265 | else | |
9266 | case $host_os in | |
9267 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
9268 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9269 | hardcode_libdir_flag_spec='-R$libdir' | |
9270 | ;; | |
9271 | *) | |
9272 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9273 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9274 | ;; | |
9275 | esac | |
9276 | fi | |
bf9f3bac | 9277 | else |
8934764e | 9278 | ld_shlibs=no |
bf9f3bac BB |
9279 | fi |
9280 | ;; | |
9281 | ||
9282 | os2*) | |
8934764e BB |
9283 | hardcode_libdir_flag_spec='-L$libdir' |
9284 | hardcode_minus_L=yes | |
9285 | allow_undefined_flag=unsupported | |
9286 | 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' | |
9287 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
bf9f3bac BB |
9288 | ;; |
9289 | ||
9290 | osf3*) | |
9291 | if test "$GCC" = yes; then | |
8934764e BB |
9292 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
9293 | 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' | |
bf9f3bac | 9294 | else |
8934764e BB |
9295 | allow_undefined_flag=' -expect_unresolved \*' |
9296 | 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' | |
bf9f3bac | 9297 | fi |
8934764e BB |
9298 | archive_cmds_need_lc='no' |
9299 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9300 | hardcode_libdir_separator=: | |
bf9f3bac BB |
9301 | ;; |
9302 | ||
9303 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
9304 | if test "$GCC" = yes; then | |
8934764e BB |
9305 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
9306 | 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' | |
9307 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
bf9f3bac | 9308 | else |
8934764e BB |
9309 | allow_undefined_flag=' -expect_unresolved \*' |
9310 | 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' | |
9311 | 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~ | |
9312 | $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' | |
bf9f3bac BB |
9313 | |
9314 | # Both c and cxx compiler support -rpath directly | |
8934764e | 9315 | hardcode_libdir_flag_spec='-rpath $libdir' |
bf9f3bac | 9316 | fi |
8934764e BB |
9317 | archive_cmds_need_lc='no' |
9318 | hardcode_libdir_separator=: | |
bf9f3bac BB |
9319 | ;; |
9320 | ||
9321 | solaris*) | |
8934764e | 9322 | no_undefined_flag=' -z defs' |
bf9f3bac BB |
9323 | if test "$GCC" = yes; then |
9324 | wlarc='${wl}' | |
8934764e BB |
9325 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
9326 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9327 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
bf9f3bac | 9328 | else |
8934764e BB |
9329 | case `$CC -V 2>&1` in |
9330 | *"Compilers 5.0"*) | |
9331 | wlarc='' | |
9332 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9333 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9334 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
9335 | ;; | |
9336 | *) | |
9337 | wlarc='${wl}' | |
9338 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9339 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9340 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9341 | ;; | |
9342 | esac | |
bf9f3bac | 9343 | fi |
8934764e BB |
9344 | hardcode_libdir_flag_spec='-R$libdir' |
9345 | hardcode_shlibpath_var=no | |
bf9f3bac BB |
9346 | case $host_os in |
9347 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
9348 | *) | |
8934764e BB |
9349 | # The compiler driver will combine and reorder linker options, |
9350 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
9351 | # but is careful enough not to reorder. | |
9352 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
9353 | if test "$GCC" = yes; then | |
9354 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
9355 | else | |
9356 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
9357 | fi | |
9358 | ;; | |
bf9f3bac | 9359 | esac |
8934764e | 9360 | link_all_deplibs=yes |
bf9f3bac BB |
9361 | ;; |
9362 | ||
9363 | sunos4*) | |
9364 | if test "x$host_vendor" = xsequent; then | |
9365 | # Use $CC to link under sequent, because it throws in some extra .o | |
9366 | # files that make .init and .fini sections work. | |
8934764e | 9367 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
bf9f3bac | 9368 | else |
8934764e | 9369 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
bf9f3bac | 9370 | fi |
8934764e BB |
9371 | hardcode_libdir_flag_spec='-L$libdir' |
9372 | hardcode_direct=yes | |
9373 | hardcode_minus_L=yes | |
9374 | hardcode_shlibpath_var=no | |
bf9f3bac BB |
9375 | ;; |
9376 | ||
9377 | sysv4) | |
9378 | case $host_vendor in | |
9379 | sni) | |
8934764e BB |
9380 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
9381 | hardcode_direct=yes # is this really true??? | |
bf9f3bac BB |
9382 | ;; |
9383 | siemens) | |
9384 | ## LD is ld it makes a PLAMLIB | |
9385 | ## CC just makes a GrossModule. | |
8934764e BB |
9386 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
9387 | reload_cmds='$CC -r -o $output$reload_objs' | |
9388 | hardcode_direct=no | |
bf9f3bac BB |
9389 | ;; |
9390 | motorola) | |
8934764e BB |
9391 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
9392 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
bf9f3bac BB |
9393 | ;; |
9394 | esac | |
9395 | runpath_var='LD_RUN_PATH' | |
8934764e | 9396 | hardcode_shlibpath_var=no |
bf9f3bac BB |
9397 | ;; |
9398 | ||
9399 | sysv4.3*) | |
8934764e BB |
9400 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
9401 | hardcode_shlibpath_var=no | |
9402 | export_dynamic_flag_spec='-Bexport' | |
bf9f3bac BB |
9403 | ;; |
9404 | ||
9405 | sysv4*MP*) | |
9406 | if test -d /usr/nec; then | |
8934764e BB |
9407 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
9408 | hardcode_shlibpath_var=no | |
bf9f3bac BB |
9409 | runpath_var=LD_RUN_PATH |
9410 | hardcode_runpath_var=yes | |
8934764e | 9411 | ld_shlibs=yes |
bf9f3bac BB |
9412 | fi |
9413 | ;; | |
9414 | ||
8934764e BB |
9415 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
9416 | no_undefined_flag='${wl}-z,text' | |
9417 | archive_cmds_need_lc=no | |
9418 | hardcode_shlibpath_var=no | |
bf9f3bac BB |
9419 | runpath_var='LD_RUN_PATH' |
9420 | ||
9421 | if test "$GCC" = yes; then | |
8934764e BB |
9422 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
9423 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
bf9f3bac | 9424 | else |
8934764e BB |
9425 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
9426 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
bf9f3bac BB |
9427 | fi |
9428 | ;; | |
9429 | ||
9430 | sysv5* | sco3.2v5* | sco5v6*) | |
9431 | # Note: We can NOT use -z defs as we might desire, because we do not | |
9432 | # link with -lc, and that would cause any symbols used from libc to | |
9433 | # always be unresolved, which means just about no library would | |
9434 | # ever link correctly. If we're not using GNU ld we use -z text | |
9435 | # though, which does catch some bad symbols but isn't as heavy-handed | |
9436 | # as -z defs. | |
8934764e BB |
9437 | no_undefined_flag='${wl}-z,text' |
9438 | allow_undefined_flag='${wl}-z,nodefs' | |
9439 | archive_cmds_need_lc=no | |
9440 | hardcode_shlibpath_var=no | |
9441 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
9442 | hardcode_libdir_separator=':' | |
9443 | link_all_deplibs=yes | |
9444 | export_dynamic_flag_spec='${wl}-Bexport' | |
bf9f3bac BB |
9445 | runpath_var='LD_RUN_PATH' |
9446 | ||
9447 | if test "$GCC" = yes; then | |
8934764e BB |
9448 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
9449 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
bf9f3bac | 9450 | else |
8934764e BB |
9451 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
9452 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
bf9f3bac BB |
9453 | fi |
9454 | ;; | |
9455 | ||
9456 | uts4*) | |
8934764e BB |
9457 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
9458 | hardcode_libdir_flag_spec='-L$libdir' | |
9459 | hardcode_shlibpath_var=no | |
bf9f3bac BB |
9460 | ;; |
9461 | ||
9462 | *) | |
8934764e | 9463 | ld_shlibs=no |
bf9f3bac BB |
9464 | ;; |
9465 | esac | |
8934764e BB |
9466 | |
9467 | if test x$host_vendor = xsni; then | |
9468 | case $host in | |
9469 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
9470 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
9471 | ;; | |
9472 | esac | |
9473 | fi | |
bf9f3bac BB |
9474 | fi |
9475 | ||
8934764e BB |
9476 | { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
9477 | $as_echo "$ld_shlibs" >&6; } | |
9478 | test "$ld_shlibs" = no && can_build_shared=no | |
9479 | ||
9480 | with_gnu_ld=$with_gnu_ld | |
9481 | ||
9482 | ||
9483 | ||
9484 | ||
9485 | ||
9486 | ||
9487 | ||
9488 | ||
9489 | ||
9490 | ||
9491 | ||
9492 | ||
9493 | ||
9494 | ||
bf9f3bac BB |
9495 | |
9496 | # | |
9497 | # Do we need to explicitly link libc? | |
9498 | # | |
8934764e | 9499 | case "x$archive_cmds_need_lc" in |
bf9f3bac BB |
9500 | x|xyes) |
9501 | # Assume -lc should be added | |
8934764e | 9502 | archive_cmds_need_lc=yes |
bf9f3bac BB |
9503 | |
9504 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
8934764e | 9505 | case $archive_cmds in |
bf9f3bac BB |
9506 | *'~'*) |
9507 | # FIXME: we may have to deal with multi-command sequences. | |
9508 | ;; | |
9509 | '$CC '*) | |
9510 | # Test whether the compiler implicitly links with -lc since on some | |
9511 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
9512 | # to ld, don't add -lc before -lgcc. | |
8934764e BB |
9513 | { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
9514 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
9515 | $RM conftest* | |
9516 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
bf9f3bac BB |
9517 | |
9518 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9519 | (eval $ac_compile) 2>&5 | |
9520 | ac_status=$? | |
8934764e | 9521 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac BB |
9522 | (exit $ac_status); } 2>conftest.err; then |
9523 | soname=conftest | |
9524 | lib=conftest | |
9525 | libobjs=conftest.$ac_objext | |
9526 | deplibs= | |
8934764e BB |
9527 | wl=$lt_prog_compiler_wl |
9528 | pic_flag=$lt_prog_compiler_pic | |
bf9f3bac BB |
9529 | compiler_flags=-v |
9530 | linker_flags=-v | |
9531 | verstring= | |
9532 | output_objdir=. | |
9533 | libname=conftest | |
8934764e BB |
9534 | lt_save_allow_undefined_flag=$allow_undefined_flag |
9535 | allow_undefined_flag= | |
9536 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
9537 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
bf9f3bac | 9538 | ac_status=$? |
8934764e | 9539 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac BB |
9540 | (exit $ac_status); } |
9541 | then | |
8934764e | 9542 | archive_cmds_need_lc=no |
bf9f3bac | 9543 | else |
8934764e | 9544 | archive_cmds_need_lc=yes |
bf9f3bac | 9545 | fi |
8934764e | 9546 | allow_undefined_flag=$lt_save_allow_undefined_flag |
bf9f3bac BB |
9547 | else |
9548 | cat conftest.err 1>&5 | |
9549 | fi | |
8934764e BB |
9550 | $RM conftest* |
9551 | { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 | |
9552 | $as_echo "$archive_cmds_need_lc" >&6; } | |
bf9f3bac BB |
9553 | ;; |
9554 | esac | |
9555 | fi | |
9556 | ;; | |
9557 | esac | |
9558 | ||
8934764e BB |
9559 | |
9560 | ||
9561 | ||
9562 | ||
9563 | ||
9564 | ||
9565 | ||
9566 | ||
9567 | ||
9568 | ||
9569 | ||
9570 | ||
9571 | ||
9572 | ||
9573 | ||
9574 | ||
9575 | ||
9576 | ||
9577 | ||
9578 | ||
9579 | ||
9580 | ||
9581 | ||
9582 | ||
9583 | ||
9584 | ||
9585 | ||
9586 | ||
9587 | ||
9588 | ||
9589 | ||
9590 | ||
9591 | ||
9592 | ||
9593 | ||
9594 | ||
9595 | ||
9596 | ||
9597 | ||
9598 | ||
9599 | ||
9600 | ||
9601 | ||
9602 | ||
9603 | ||
9604 | ||
9605 | ||
9606 | ||
9607 | ||
9608 | ||
9609 | ||
9610 | ||
9611 | ||
9612 | ||
9613 | ||
9614 | ||
9615 | ||
9616 | ||
9617 | ||
9618 | ||
9619 | ||
9620 | ||
9621 | ||
9622 | ||
9623 | ||
9624 | ||
9625 | ||
9626 | ||
9627 | ||
9628 | ||
9629 | ||
9630 | ||
9631 | ||
9632 | ||
9633 | ||
9634 | ||
9635 | ||
9636 | ||
9637 | ||
9638 | ||
9639 | ||
9640 | ||
9641 | ||
9642 | ||
9643 | ||
9644 | ||
9645 | ||
9646 | ||
9647 | ||
9648 | ||
9649 | ||
9650 | ||
9651 | ||
9652 | ||
9653 | ||
9654 | ||
9655 | ||
9656 | ||
9657 | ||
9658 | ||
9659 | ||
9660 | ||
9661 | ||
9662 | ||
9663 | ||
9664 | ||
9665 | ||
9666 | ||
9667 | ||
9668 | ||
9669 | ||
9670 | ||
9671 | ||
9672 | ||
9673 | ||
9674 | ||
9675 | ||
9676 | ||
9677 | ||
9678 | ||
9679 | ||
9680 | ||
9681 | ||
9682 | ||
9683 | ||
9684 | ||
9685 | ||
9686 | ||
9687 | ||
9688 | ||
9689 | ||
9690 | ||
9691 | ||
9692 | ||
9693 | ||
9694 | ||
9695 | ||
9696 | ||
9697 | ||
9698 | ||
9699 | ||
9700 | ||
9701 | ||
9702 | ||
9703 | ||
9704 | ||
9705 | ||
9706 | ||
9707 | ||
9708 | ||
9709 | ||
9710 | ||
9711 | ||
9712 | ||
9713 | ||
9714 | ||
9715 | { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
9716 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
9717 | ||
9718 | if test "$GCC" = yes; then | |
9719 | case $host_os in | |
9720 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
9721 | *) lt_awk_arg="/^libraries:/" ;; | |
9722 | esac | |
9723 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
9724 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | |
9725 | # if the path contains ";" then we assume it to be the separator | |
9726 | # otherwise default to the standard path separator (i.e. ":") - it is | |
9727 | # assumed that no part of a normal pathname contains ";" but that should | |
9728 | # okay in the real world where ";" in dirpaths is itself problematic. | |
9729 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | |
9730 | else | |
9731 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
9732 | fi | |
9733 | # Ok, now we have the path, separated by spaces, we can step through it | |
9734 | # and add multilib dir if necessary. | |
9735 | lt_tmp_lt_search_path_spec= | |
9736 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
9737 | for lt_sys_path in $lt_search_path_spec; do | |
9738 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
9739 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
9740 | else | |
9741 | test -d "$lt_sys_path" && \ | |
9742 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
9743 | fi | |
9744 | done | |
9745 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | |
9746 | BEGIN {RS=" "; FS="/|\n";} { | |
9747 | lt_foo=""; | |
9748 | lt_count=0; | |
9749 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
9750 | if ($lt_i != "" && $lt_i != ".") { | |
9751 | if ($lt_i == "..") { | |
9752 | lt_count++; | |
9753 | } else { | |
9754 | if (lt_count == 0) { | |
9755 | lt_foo="/" $lt_i lt_foo; | |
9756 | } else { | |
9757 | lt_count--; | |
9758 | } | |
9759 | } | |
9760 | } | |
9761 | } | |
9762 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
9763 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
9764 | }'` | |
9765 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | |
9766 | else | |
9767 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
9768 | fi | |
bf9f3bac BB |
9769 | library_names_spec= |
9770 | libname_spec='lib$name' | |
9771 | soname_spec= | |
9772 | shrext_cmds=".so" | |
9773 | postinstall_cmds= | |
9774 | postuninstall_cmds= | |
9775 | finish_cmds= | |
9776 | finish_eval= | |
9777 | shlibpath_var= | |
9778 | shlibpath_overrides_runpath=unknown | |
9779 | version_type=none | |
9780 | dynamic_linker="$host_os ld.so" | |
9781 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
bf9f3bac BB |
9782 | need_lib_prefix=unknown |
9783 | hardcode_into_libs=no | |
9784 | ||
9785 | # when you set need_version to no, make sure it does not cause -set_version | |
9786 | # flags to be left without arguments | |
9787 | need_version=unknown | |
9788 | ||
9789 | case $host_os in | |
9790 | aix3*) | |
9791 | version_type=linux | |
9792 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
9793 | shlibpath_var=LIBPATH | |
9794 | ||
9795 | # AIX 3 has no versioning support, so we append a major version to the name. | |
9796 | soname_spec='${libname}${release}${shared_ext}$major' | |
9797 | ;; | |
9798 | ||
8934764e | 9799 | aix[4-9]*) |
bf9f3bac BB |
9800 | version_type=linux |
9801 | need_lib_prefix=no | |
9802 | need_version=no | |
9803 | hardcode_into_libs=yes | |
9804 | if test "$host_cpu" = ia64; then | |
9805 | # AIX 5 supports IA64 | |
9806 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
9807 | shlibpath_var=LD_LIBRARY_PATH | |
9808 | else | |
9809 | # With GCC up to 2.95.x, collect2 would create an import file | |
9810 | # for dependence libraries. The import file would start with | |
9811 | # the line `#! .'. This would cause the generated library to | |
9812 | # depend on `.', always an invalid library. This was fixed in | |
9813 | # development snapshots of GCC prior to 3.0. | |
9814 | case $host_os in | |
9815 | aix4 | aix4.[01] | aix4.[01].*) | |
9816 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
9817 | echo ' yes ' | |
8934764e | 9818 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
bf9f3bac BB |
9819 | : |
9820 | else | |
9821 | can_build_shared=no | |
9822 | fi | |
9823 | ;; | |
9824 | esac | |
9825 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
9826 | # soname into executable. Probably we can add versioning support to | |
9827 | # collect2, so additional links can be useful in future. | |
9828 | if test "$aix_use_runtimelinking" = yes; then | |
9829 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
9830 | # instead of lib<name>.a to let people know that these are not | |
9831 | # typical AIX shared libraries. | |
9832 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9833 | else | |
9834 | # We preserve .a as extension for shared libraries through AIX4.2 | |
9835 | # and later when we are not doing run time linking. | |
9836 | library_names_spec='${libname}${release}.a $libname.a' | |
9837 | soname_spec='${libname}${release}${shared_ext}$major' | |
9838 | fi | |
9839 | shlibpath_var=LIBPATH | |
9840 | fi | |
9841 | ;; | |
9842 | ||
9843 | amigaos*) | |
8934764e BB |
9844 | case $host_cpu in |
9845 | powerpc) | |
9846 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
9847 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
9848 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9849 | ;; | |
9850 | m68k) | |
9851 | library_names_spec='$libname.ixlibrary $libname.a' | |
9852 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
9853 | 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' | |
9854 | ;; | |
9855 | esac | |
bf9f3bac BB |
9856 | ;; |
9857 | ||
9858 | beos*) | |
9859 | library_names_spec='${libname}${shared_ext}' | |
9860 | dynamic_linker="$host_os ld.so" | |
9861 | shlibpath_var=LIBRARY_PATH | |
9862 | ;; | |
9863 | ||
9864 | bsdi[45]*) | |
9865 | version_type=linux | |
9866 | need_version=no | |
9867 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9868 | soname_spec='${libname}${release}${shared_ext}$major' | |
9869 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
9870 | shlibpath_var=LD_LIBRARY_PATH | |
9871 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
9872 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
9873 | # the default ld.so.conf also contains /usr/contrib/lib and | |
9874 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
9875 | # libtool to hard-code these into programs | |
9876 | ;; | |
9877 | ||
8934764e | 9878 | cygwin* | mingw* | pw32* | cegcc*) |
bf9f3bac BB |
9879 | version_type=windows |
9880 | shrext_cmds=".dll" | |
9881 | need_version=no | |
9882 | need_lib_prefix=no | |
9883 | ||
9884 | case $GCC,$host_os in | |
8934764e | 9885 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) |
bf9f3bac BB |
9886 | library_names_spec='$libname.dll.a' |
9887 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
9888 | postinstall_cmds='base_file=`basename \${file}`~ | |
8934764e | 9889 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
bf9f3bac BB |
9890 | dldir=$destdir/`dirname \$dlpath`~ |
9891 | test -d \$dldir || mkdir -p \$dldir~ | |
9892 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
8934764e BB |
9893 | chmod a+x \$dldir/$dlname~ |
9894 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
9895 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
9896 | fi' | |
bf9f3bac BB |
9897 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
9898 | dlpath=$dir/\$dldll~ | |
8934764e | 9899 | $RM \$dlpath' |
bf9f3bac BB |
9900 | shlibpath_overrides_runpath=yes |
9901 | ||
9902 | case $host_os in | |
9903 | cygwin*) | |
9904 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
9905 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
9906 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
9907 | ;; | |
8934764e | 9908 | mingw* | cegcc*) |
bf9f3bac BB |
9909 | # MinGW DLLs use traditional 'lib' prefix |
9910 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
8934764e BB |
9911 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
9912 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
bf9f3bac BB |
9913 | # It is most probably a Windows format PATH printed by |
9914 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
9915 | # path with ; separators, and with drive letters. We can handle the | |
9916 | # drive letters (cygwin fileutils understands them), so leave them, | |
9917 | # especially as we might pass files found there to a mingw objdump, | |
9918 | # which wouldn't understand a cygwinified path. Ahh. | |
8934764e | 9919 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
bf9f3bac | 9920 | else |
8934764e | 9921 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
bf9f3bac BB |
9922 | fi |
9923 | ;; | |
9924 | pw32*) | |
9925 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
9926 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
9927 | ;; | |
9928 | esac | |
9929 | ;; | |
9930 | ||
9931 | *) | |
9932 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
9933 | ;; | |
9934 | esac | |
9935 | dynamic_linker='Win32 ld.exe' | |
9936 | # FIXME: first we should search . and the directory the executable is in | |
9937 | shlibpath_var=PATH | |
9938 | ;; | |
9939 | ||
9940 | darwin* | rhapsody*) | |
9941 | dynamic_linker="$host_os dyld" | |
9942 | version_type=darwin | |
9943 | need_lib_prefix=no | |
9944 | need_version=no | |
8934764e | 9945 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
bf9f3bac BB |
9946 | soname_spec='${libname}${release}${major}$shared_ext' |
9947 | shlibpath_overrides_runpath=yes | |
9948 | shlibpath_var=DYLD_LIBRARY_PATH | |
9949 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
8934764e BB |
9950 | |
9951 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
bf9f3bac BB |
9952 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
9953 | ;; | |
9954 | ||
9955 | dgux*) | |
9956 | version_type=linux | |
9957 | need_lib_prefix=no | |
9958 | need_version=no | |
9959 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
9960 | soname_spec='${libname}${release}${shared_ext}$major' | |
9961 | shlibpath_var=LD_LIBRARY_PATH | |
9962 | ;; | |
9963 | ||
9964 | freebsd1*) | |
9965 | dynamic_linker=no | |
9966 | ;; | |
9967 | ||
bf9f3bac BB |
9968 | freebsd* | dragonfly*) |
9969 | # DragonFly does not have aout. When/if they implement a new | |
9970 | # versioning mechanism, adjust this. | |
9971 | if test -x /usr/bin/objformat; then | |
9972 | objformat=`/usr/bin/objformat` | |
9973 | else | |
9974 | case $host_os in | |
9975 | freebsd[123]*) objformat=aout ;; | |
9976 | *) objformat=elf ;; | |
9977 | esac | |
9978 | fi | |
9979 | version_type=freebsd-$objformat | |
9980 | case $version_type in | |
9981 | freebsd-elf*) | |
9982 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9983 | need_version=no | |
9984 | need_lib_prefix=no | |
9985 | ;; | |
9986 | freebsd-*) | |
9987 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
9988 | need_version=yes | |
9989 | ;; | |
9990 | esac | |
9991 | shlibpath_var=LD_LIBRARY_PATH | |
9992 | case $host_os in | |
9993 | freebsd2*) | |
9994 | shlibpath_overrides_runpath=yes | |
9995 | ;; | |
9996 | freebsd3.[01]* | freebsdelf3.[01]*) | |
9997 | shlibpath_overrides_runpath=yes | |
9998 | hardcode_into_libs=yes | |
9999 | ;; | |
10000 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
10001 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
10002 | shlibpath_overrides_runpath=no | |
10003 | hardcode_into_libs=yes | |
10004 | ;; | |
8934764e | 10005 | *) # from 4.6 on, and DragonFly |
bf9f3bac BB |
10006 | shlibpath_overrides_runpath=yes |
10007 | hardcode_into_libs=yes | |
10008 | ;; | |
10009 | esac | |
10010 | ;; | |
10011 | ||
10012 | gnu*) | |
10013 | version_type=linux | |
10014 | need_lib_prefix=no | |
10015 | need_version=no | |
10016 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
10017 | soname_spec='${libname}${release}${shared_ext}$major' | |
10018 | shlibpath_var=LD_LIBRARY_PATH | |
10019 | hardcode_into_libs=yes | |
10020 | ;; | |
10021 | ||
10022 | hpux9* | hpux10* | hpux11*) | |
10023 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
10024 | # link against other versions. | |
10025 | version_type=sunos | |
10026 | need_lib_prefix=no | |
10027 | need_version=no | |
10028 | case $host_cpu in | |
10029 | ia64*) | |
10030 | shrext_cmds='.so' | |
10031 | hardcode_into_libs=yes | |
10032 | dynamic_linker="$host_os dld.so" | |
10033 | shlibpath_var=LD_LIBRARY_PATH | |
10034 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10035 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10036 | soname_spec='${libname}${release}${shared_ext}$major' | |
10037 | if test "X$HPUX_IA64_MODE" = X32; then | |
10038 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
10039 | else | |
10040 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
10041 | fi | |
10042 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10043 | ;; | |
8934764e BB |
10044 | hppa*64*) |
10045 | shrext_cmds='.sl' | |
10046 | hardcode_into_libs=yes | |
10047 | dynamic_linker="$host_os dld.sl" | |
10048 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
10049 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10050 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10051 | soname_spec='${libname}${release}${shared_ext}$major' | |
10052 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
10053 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10054 | ;; | |
10055 | *) | |
bf9f3bac BB |
10056 | shrext_cmds='.sl' |
10057 | dynamic_linker="$host_os dld.sl" | |
10058 | shlibpath_var=SHLIB_PATH | |
10059 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
10060 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10061 | soname_spec='${libname}${release}${shared_ext}$major' | |
10062 | ;; | |
10063 | esac | |
10064 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
10065 | postinstall_cmds='chmod 555 $lib' | |
10066 | ;; | |
10067 | ||
8934764e | 10068 | interix[3-9]*) |
bf9f3bac BB |
10069 | version_type=linux |
10070 | need_lib_prefix=no | |
10071 | need_version=no | |
10072 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10073 | soname_spec='${libname}${release}${shared_ext}$major' | |
10074 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
10075 | shlibpath_var=LD_LIBRARY_PATH | |
10076 | shlibpath_overrides_runpath=no | |
10077 | hardcode_into_libs=yes | |
10078 | ;; | |
10079 | ||
10080 | irix5* | irix6* | nonstopux*) | |
10081 | case $host_os in | |
10082 | nonstopux*) version_type=nonstopux ;; | |
10083 | *) | |
10084 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
10085 | version_type=linux | |
10086 | else | |
10087 | version_type=irix | |
10088 | fi ;; | |
10089 | esac | |
10090 | need_lib_prefix=no | |
10091 | need_version=no | |
10092 | soname_spec='${libname}${release}${shared_ext}$major' | |
10093 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10094 | case $host_os in | |
10095 | irix5* | nonstopux*) | |
10096 | libsuff= shlibsuff= | |
10097 | ;; | |
10098 | *) | |
10099 | case $LD in # libtool.m4 will add one of these switches to LD | |
10100 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
10101 | libsuff= shlibsuff= libmagic=32-bit;; | |
10102 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
10103 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
10104 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
10105 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
10106 | *) libsuff= shlibsuff= libmagic=never-match;; | |
10107 | esac | |
10108 | ;; | |
10109 | esac | |
10110 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
10111 | shlibpath_overrides_runpath=no | |
10112 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
10113 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
10114 | hardcode_into_libs=yes | |
10115 | ;; | |
10116 | ||
10117 | # No shared lib support for Linux oldld, aout, or coff. | |
10118 | linux*oldld* | linux*aout* | linux*coff*) | |
10119 | dynamic_linker=no | |
10120 | ;; | |
10121 | ||
10122 | # This must be Linux ELF. | |
8934764e | 10123 | linux* | k*bsd*-gnu) |
bf9f3bac BB |
10124 | version_type=linux |
10125 | need_lib_prefix=no | |
10126 | need_version=no | |
10127 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10128 | soname_spec='${libname}${release}${shared_ext}$major' | |
10129 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
10130 | shlibpath_var=LD_LIBRARY_PATH | |
10131 | shlibpath_overrides_runpath=no | |
8934764e BB |
10132 | # Some binutils ld are patched to set DT_RUNPATH |
10133 | save_LDFLAGS=$LDFLAGS | |
10134 | save_libdir=$libdir | |
10135 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
10136 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
10137 | cat >conftest.$ac_ext <<_ACEOF | |
10138 | /* confdefs.h. */ | |
10139 | _ACEOF | |
10140 | cat confdefs.h >>conftest.$ac_ext | |
10141 | cat >>conftest.$ac_ext <<_ACEOF | |
10142 | /* end confdefs.h. */ | |
10143 | ||
10144 | int | |
10145 | main () | |
10146 | { | |
10147 | ||
10148 | ; | |
10149 | return 0; | |
10150 | } | |
10151 | _ACEOF | |
10152 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10153 | if { (ac_try="$ac_link" | |
10154 | case "(($ac_try" in | |
10155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10156 | *) ac_try_echo=$ac_try;; | |
10157 | esac | |
10158 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10159 | $as_echo "$ac_try_echo") >&5 | |
10160 | (eval "$ac_link") 2>conftest.er1 | |
10161 | ac_status=$? | |
10162 | grep -v '^ *+' conftest.er1 >conftest.err | |
10163 | rm -f conftest.er1 | |
10164 | cat conftest.err >&5 | |
10165 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10166 | (exit $ac_status); } && { | |
10167 | test -z "$ac_c_werror_flag" || | |
10168 | test ! -s conftest.err | |
10169 | } && test -s conftest$ac_exeext && { | |
10170 | test "$cross_compiling" = yes || | |
10171 | $as_test_x conftest$ac_exeext | |
10172 | }; then | |
10173 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then | |
10174 | shlibpath_overrides_runpath=yes | |
10175 | fi | |
10176 | ||
10177 | else | |
10178 | $as_echo "$as_me: failed program was:" >&5 | |
10179 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10180 | ||
10181 | ||
10182 | fi | |
10183 | ||
10184 | rm -rf conftest.dSYM | |
10185 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10186 | conftest$ac_exeext conftest.$ac_ext | |
10187 | LDFLAGS=$save_LDFLAGS | |
10188 | libdir=$save_libdir | |
10189 | ||
bf9f3bac BB |
10190 | # This implies no fast_install, which is unacceptable. |
10191 | # Some rework will be needed to allow for fast_install | |
10192 | # before this can be enabled. | |
10193 | hardcode_into_libs=yes | |
10194 | ||
8934764e BB |
10195 | # Add ABI-specific directories to the system library path. |
10196 | sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" | |
bf9f3bac BB |
10197 | |
10198 | # Append ld.so.conf contents to the search path | |
10199 | if test -f /etc/ld.so.conf; then | |
8934764e BB |
10200 | 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' ' '` |
10201 | sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" | |
bf9f3bac BB |
10202 | fi |
10203 | ||
10204 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
10205 | # powerpc, because MkLinux only supported shared libraries with the | |
10206 | # GNU dynamic linker. Since this was broken with cross compilers, | |
10207 | # most powerpc-linux boxes support dynamic linking these days and | |
10208 | # people can always --disable-shared, the test was removed, and we | |
10209 | # assume the GNU/Linux dynamic linker is in use. | |
10210 | dynamic_linker='GNU/Linux ld.so' | |
10211 | ;; | |
10212 | ||
bf9f3bac BB |
10213 | netbsd*) |
10214 | version_type=sunos | |
10215 | need_lib_prefix=no | |
10216 | need_version=no | |
8934764e | 10217 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
bf9f3bac BB |
10218 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
10219 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10220 | dynamic_linker='NetBSD (a.out) ld.so' | |
10221 | else | |
10222 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10223 | soname_spec='${libname}${release}${shared_ext}$major' | |
10224 | dynamic_linker='NetBSD ld.elf_so' | |
10225 | fi | |
10226 | shlibpath_var=LD_LIBRARY_PATH | |
10227 | shlibpath_overrides_runpath=yes | |
10228 | hardcode_into_libs=yes | |
10229 | ;; | |
10230 | ||
10231 | newsos6) | |
10232 | version_type=linux | |
10233 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10234 | shlibpath_var=LD_LIBRARY_PATH | |
10235 | shlibpath_overrides_runpath=yes | |
10236 | ;; | |
10237 | ||
8934764e BB |
10238 | *nto* | *qnx*) |
10239 | version_type=qnx | |
bf9f3bac BB |
10240 | need_lib_prefix=no |
10241 | need_version=no | |
10242 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10243 | soname_spec='${libname}${release}${shared_ext}$major' | |
10244 | shlibpath_var=LD_LIBRARY_PATH | |
8934764e BB |
10245 | shlibpath_overrides_runpath=no |
10246 | hardcode_into_libs=yes | |
10247 | dynamic_linker='ldqnx.so' | |
bf9f3bac BB |
10248 | ;; |
10249 | ||
10250 | openbsd*) | |
10251 | version_type=sunos | |
10252 | sys_lib_dlsearch_path_spec="/usr/lib" | |
10253 | need_lib_prefix=no | |
10254 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
10255 | case $host_os in | |
8934764e BB |
10256 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
10257 | *) need_version=no ;; | |
bf9f3bac BB |
10258 | esac |
10259 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10260 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10261 | shlibpath_var=LD_LIBRARY_PATH | |
8934764e | 10262 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
bf9f3bac BB |
10263 | case $host_os in |
10264 | openbsd2.[89] | openbsd2.[89].*) | |
10265 | shlibpath_overrides_runpath=no | |
10266 | ;; | |
10267 | *) | |
10268 | shlibpath_overrides_runpath=yes | |
10269 | ;; | |
10270 | esac | |
10271 | else | |
10272 | shlibpath_overrides_runpath=yes | |
10273 | fi | |
10274 | ;; | |
10275 | ||
10276 | os2*) | |
10277 | libname_spec='$name' | |
10278 | shrext_cmds=".dll" | |
10279 | need_lib_prefix=no | |
10280 | library_names_spec='$libname${shared_ext} $libname.a' | |
10281 | dynamic_linker='OS/2 ld.exe' | |
10282 | shlibpath_var=LIBPATH | |
10283 | ;; | |
10284 | ||
10285 | osf3* | osf4* | osf5*) | |
10286 | version_type=osf | |
10287 | need_lib_prefix=no | |
10288 | need_version=no | |
10289 | soname_spec='${libname}${release}${shared_ext}$major' | |
10290 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10291 | shlibpath_var=LD_LIBRARY_PATH | |
10292 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
10293 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
10294 | ;; | |
10295 | ||
8934764e BB |
10296 | rdos*) |
10297 | dynamic_linker=no | |
10298 | ;; | |
10299 | ||
bf9f3bac BB |
10300 | solaris*) |
10301 | version_type=linux | |
10302 | need_lib_prefix=no | |
10303 | need_version=no | |
10304 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10305 | soname_spec='${libname}${release}${shared_ext}$major' | |
10306 | shlibpath_var=LD_LIBRARY_PATH | |
10307 | shlibpath_overrides_runpath=yes | |
10308 | hardcode_into_libs=yes | |
10309 | # ldd complains unless libraries are executable | |
10310 | postinstall_cmds='chmod +x $lib' | |
10311 | ;; | |
10312 | ||
10313 | sunos4*) | |
10314 | version_type=sunos | |
10315 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10316 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
10317 | shlibpath_var=LD_LIBRARY_PATH | |
10318 | shlibpath_overrides_runpath=yes | |
10319 | if test "$with_gnu_ld" = yes; then | |
10320 | need_lib_prefix=no | |
10321 | fi | |
10322 | need_version=yes | |
10323 | ;; | |
10324 | ||
10325 | sysv4 | sysv4.3*) | |
10326 | version_type=linux | |
10327 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10328 | soname_spec='${libname}${release}${shared_ext}$major' | |
10329 | shlibpath_var=LD_LIBRARY_PATH | |
10330 | case $host_vendor in | |
10331 | sni) | |
10332 | shlibpath_overrides_runpath=no | |
10333 | need_lib_prefix=no | |
bf9f3bac BB |
10334 | runpath_var=LD_RUN_PATH |
10335 | ;; | |
10336 | siemens) | |
10337 | need_lib_prefix=no | |
10338 | ;; | |
10339 | motorola) | |
10340 | need_lib_prefix=no | |
10341 | need_version=no | |
10342 | shlibpath_overrides_runpath=no | |
10343 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
10344 | ;; | |
10345 | esac | |
10346 | ;; | |
10347 | ||
10348 | sysv4*MP*) | |
10349 | if test -d /usr/nec ;then | |
10350 | version_type=linux | |
10351 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
10352 | soname_spec='$libname${shared_ext}.$major' | |
10353 | shlibpath_var=LD_LIBRARY_PATH | |
10354 | fi | |
10355 | ;; | |
10356 | ||
10357 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
10358 | version_type=freebsd-elf | |
10359 | need_lib_prefix=no | |
10360 | need_version=no | |
10361 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10362 | soname_spec='${libname}${release}${shared_ext}$major' | |
10363 | shlibpath_var=LD_LIBRARY_PATH | |
8934764e | 10364 | shlibpath_overrides_runpath=yes |
bf9f3bac BB |
10365 | hardcode_into_libs=yes |
10366 | if test "$with_gnu_ld" = yes; then | |
10367 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
bf9f3bac BB |
10368 | else |
10369 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
bf9f3bac BB |
10370 | case $host_os in |
10371 | sco3.2v5*) | |
10372 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
10373 | ;; | |
10374 | esac | |
10375 | fi | |
10376 | sys_lib_dlsearch_path_spec='/usr/lib' | |
10377 | ;; | |
10378 | ||
8934764e BB |
10379 | tpf*) |
10380 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
10381 | version_type=linux | |
10382 | need_lib_prefix=no | |
10383 | need_version=no | |
10384 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10385 | shlibpath_var=LD_LIBRARY_PATH | |
10386 | shlibpath_overrides_runpath=no | |
10387 | hardcode_into_libs=yes | |
10388 | ;; | |
10389 | ||
bf9f3bac BB |
10390 | uts4*) |
10391 | version_type=linux | |
10392 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10393 | soname_spec='${libname}${release}${shared_ext}$major' | |
10394 | shlibpath_var=LD_LIBRARY_PATH | |
10395 | ;; | |
10396 | ||
10397 | *) | |
10398 | dynamic_linker=no | |
10399 | ;; | |
10400 | esac | |
8934764e BB |
10401 | { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
10402 | $as_echo "$dynamic_linker" >&6; } | |
bf9f3bac BB |
10403 | test "$dynamic_linker" = no && can_build_shared=no |
10404 | ||
10405 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
10406 | if test "$GCC" = yes; then | |
10407 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
10408 | fi | |
10409 | ||
8934764e BB |
10410 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
10411 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
bf9f3bac | 10412 | fi |
8934764e BB |
10413 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
10414 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
bf9f3bac BB |
10415 | fi |
10416 | ||
10417 | ||
bf9f3bac | 10418 | |
bf9f3bac | 10419 | |
bf9f3bac | 10420 | |
bf9f3bac | 10421 | |
bf9f3bac | 10422 | |
bf9f3bac | 10423 | |
bf9f3bac | 10424 | |
bf9f3bac | 10425 | |
bf9f3bac | 10426 | |
bf9f3bac | 10427 | |
bf9f3bac | 10428 | |
bf9f3bac | 10429 | |
bf9f3bac | 10430 | |
bf9f3bac | 10431 | |
bf9f3bac | 10432 | |
bf9f3bac | 10433 | |
bf9f3bac | 10434 | |
bf9f3bac | 10435 | |
bf9f3bac | 10436 | |
bf9f3bac | 10437 | |
bf9f3bac | 10438 | |
bf9f3bac | 10439 | |
bf9f3bac | 10440 | |
bf9f3bac | 10441 | |
bf9f3bac | 10442 | |
bf9f3bac | 10443 | |
bf9f3bac | 10444 | |
bf9f3bac | 10445 | |
bf9f3bac | 10446 | |
bf9f3bac | 10447 | |
bf9f3bac | 10448 | |
bf9f3bac | 10449 | |
bf9f3bac | 10450 | |
bf9f3bac | 10451 | |
bf9f3bac | 10452 | |
bf9f3bac | 10453 | |
bf9f3bac | 10454 | |
bf9f3bac | 10455 | |
bf9f3bac | 10456 | |
bf9f3bac | 10457 | |
bf9f3bac | 10458 | |
bf9f3bac | 10459 | |
bf9f3bac | 10460 | |
bf9f3bac | 10461 | |
bf9f3bac | 10462 | |
bf9f3bac | 10463 | |
bf9f3bac | 10464 | |
bf9f3bac | 10465 | |
bf9f3bac | 10466 | |
bf9f3bac | 10467 | |
bf9f3bac | 10468 | |
bf9f3bac | 10469 | |
bf9f3bac | 10470 | |
bf9f3bac | 10471 | |
bf9f3bac | 10472 | |
bf9f3bac | 10473 | |
bf9f3bac | 10474 | |
bf9f3bac | 10475 | |
bf9f3bac | 10476 | |
bf9f3bac | 10477 | |
bf9f3bac | 10478 | |
bf9f3bac | 10479 | |
bf9f3bac | 10480 | |
bf9f3bac | 10481 | |
bf9f3bac | 10482 | |
bf9f3bac | 10483 | |
bf9f3bac | 10484 | |
bf9f3bac | 10485 | |
bf9f3bac | 10486 | |
bf9f3bac | 10487 | |
bf9f3bac | 10488 | |
bf9f3bac | 10489 | |
bf9f3bac | 10490 | |
bf9f3bac | 10491 | |
bf9f3bac | 10492 | |
bf9f3bac | 10493 | |
bf9f3bac | 10494 | |
bf9f3bac | 10495 | |
bf9f3bac | 10496 | |
bf9f3bac | 10497 | |
bf9f3bac | 10498 | |
bf9f3bac | 10499 | |
bf9f3bac | 10500 | |
bf9f3bac | 10501 | |
bf9f3bac | 10502 | |
8934764e BB |
10503 | { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
10504 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
10505 | hardcode_action= | |
10506 | if test -n "$hardcode_libdir_flag_spec" || | |
10507 | test -n "$runpath_var" || | |
10508 | test "X$hardcode_automatic" = "Xyes" ; then | |
bf9f3bac | 10509 | |
8934764e BB |
10510 | # We can hardcode non-existent directories. |
10511 | if test "$hardcode_direct" != no && | |
10512 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
10513 | # have to relink, otherwise we might link with an installed library | |
10514 | # when we should be linking with a yet-to-be-installed one | |
10515 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
10516 | test "$hardcode_minus_L" != no; then | |
10517 | # Linking always hardcodes the temporary library directory. | |
10518 | hardcode_action=relink | |
10519 | else | |
10520 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
10521 | hardcode_action=immediate | |
bf9f3bac | 10522 | fi |
8934764e BB |
10523 | else |
10524 | # We cannot hardcode anything, or else we can only hardcode existing | |
10525 | # directories. | |
10526 | hardcode_action=unsupported | |
bf9f3bac | 10527 | fi |
8934764e BB |
10528 | { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
10529 | $as_echo "$hardcode_action" >&6; } | |
bf9f3bac | 10530 | |
8934764e BB |
10531 | if test "$hardcode_action" = relink || |
10532 | test "$inherit_rpath" = yes; then | |
10533 | # Fast installation is not supported | |
10534 | enable_fast_install=no | |
10535 | elif test "$shlibpath_overrides_runpath" = yes || | |
10536 | test "$enable_shared" = no; then | |
10537 | # Fast installation is not necessary | |
10538 | enable_fast_install=needless | |
10539 | fi | |
bf9f3bac | 10540 | |
bf9f3bac | 10541 | |
bf9f3bac | 10542 | |
bf9f3bac | 10543 | |
bf9f3bac BB |
10544 | |
10545 | ||
8934764e BB |
10546 | if test "x$enable_dlopen" != xyes; then |
10547 | enable_dlopen=unknown | |
10548 | enable_dlopen_self=unknown | |
10549 | enable_dlopen_self_static=unknown | |
10550 | else | |
10551 | lt_cv_dlopen=no | |
10552 | lt_cv_dlopen_libs= | |
bf9f3bac | 10553 | |
8934764e BB |
10554 | case $host_os in |
10555 | beos*) | |
10556 | lt_cv_dlopen="load_add_on" | |
10557 | lt_cv_dlopen_libs= | |
10558 | lt_cv_dlopen_self=yes | |
10559 | ;; | |
bf9f3bac | 10560 | |
8934764e BB |
10561 | mingw* | pw32* | cegcc*) |
10562 | lt_cv_dlopen="LoadLibrary" | |
10563 | lt_cv_dlopen_libs= | |
10564 | ;; | |
bf9f3bac | 10565 | |
8934764e BB |
10566 | cygwin*) |
10567 | lt_cv_dlopen="dlopen" | |
10568 | lt_cv_dlopen_libs= | |
10569 | ;; | |
bf9f3bac | 10570 | |
8934764e BB |
10571 | darwin*) |
10572 | # if libdl is installed we need to link against it | |
10573 | { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
10574 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
10575 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
10576 | $as_echo_n "(cached) " >&6 | |
10577 | else | |
10578 | ac_check_lib_save_LIBS=$LIBS | |
10579 | LIBS="-ldl $LIBS" | |
10580 | cat >conftest.$ac_ext <<_ACEOF | |
10581 | /* confdefs.h. */ | |
10582 | _ACEOF | |
10583 | cat confdefs.h >>conftest.$ac_ext | |
10584 | cat >>conftest.$ac_ext <<_ACEOF | |
10585 | /* end confdefs.h. */ | |
bf9f3bac | 10586 | |
8934764e BB |
10587 | /* Override any GCC internal prototype to avoid an error. |
10588 | Use char because int might match the return type of a GCC | |
10589 | builtin and then its argument prototype would still apply. */ | |
10590 | #ifdef __cplusplus | |
10591 | extern "C" | |
10592 | #endif | |
10593 | char dlopen (); | |
10594 | int | |
10595 | main () | |
10596 | { | |
10597 | return dlopen (); | |
10598 | ; | |
10599 | return 0; | |
10600 | } | |
10601 | _ACEOF | |
10602 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10603 | if { (ac_try="$ac_link" | |
10604 | case "(($ac_try" in | |
10605 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10606 | *) ac_try_echo=$ac_try;; | |
10607 | esac | |
10608 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10609 | $as_echo "$ac_try_echo") >&5 | |
10610 | (eval "$ac_link") 2>conftest.er1 | |
10611 | ac_status=$? | |
10612 | grep -v '^ *+' conftest.er1 >conftest.err | |
10613 | rm -f conftest.er1 | |
10614 | cat conftest.err >&5 | |
10615 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10616 | (exit $ac_status); } && { | |
10617 | test -z "$ac_c_werror_flag" || | |
10618 | test ! -s conftest.err | |
10619 | } && test -s conftest$ac_exeext && { | |
10620 | test "$cross_compiling" = yes || | |
10621 | $as_test_x conftest$ac_exeext | |
10622 | }; then | |
10623 | ac_cv_lib_dl_dlopen=yes | |
10624 | else | |
10625 | $as_echo "$as_me: failed program was:" >&5 | |
10626 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bf9f3bac | 10627 | |
8934764e BB |
10628 | ac_cv_lib_dl_dlopen=no |
10629 | fi | |
bf9f3bac | 10630 | |
8934764e BB |
10631 | rm -rf conftest.dSYM |
10632 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10633 | conftest$ac_exeext conftest.$ac_ext | |
10634 | LIBS=$ac_check_lib_save_LIBS | |
10635 | fi | |
10636 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
10637 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
10638 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then | |
10639 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
10640 | else | |
bf9f3bac | 10641 | |
8934764e BB |
10642 | lt_cv_dlopen="dyld" |
10643 | lt_cv_dlopen_libs= | |
10644 | lt_cv_dlopen_self=yes | |
bf9f3bac | 10645 | |
8934764e | 10646 | fi |
bf9f3bac | 10647 | |
8934764e | 10648 | ;; |
bf9f3bac | 10649 | |
8934764e BB |
10650 | *) |
10651 | { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 | |
10652 | $as_echo_n "checking for shl_load... " >&6; } | |
10653 | if test "${ac_cv_func_shl_load+set}" = set; then | |
10654 | $as_echo_n "(cached) " >&6 | |
10655 | else | |
10656 | cat >conftest.$ac_ext <<_ACEOF | |
10657 | /* confdefs.h. */ | |
10658 | _ACEOF | |
10659 | cat confdefs.h >>conftest.$ac_ext | |
10660 | cat >>conftest.$ac_ext <<_ACEOF | |
10661 | /* end confdefs.h. */ | |
10662 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | |
10663 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10664 | #define shl_load innocuous_shl_load | |
bf9f3bac | 10665 | |
8934764e BB |
10666 | /* System header to define __stub macros and hopefully few prototypes, |
10667 | which can conflict with char shl_load (); below. | |
10668 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10669 | <limits.h> exists even on freestanding compilers. */ | |
bf9f3bac | 10670 | |
8934764e BB |
10671 | #ifdef __STDC__ |
10672 | # include <limits.h> | |
10673 | #else | |
10674 | # include <assert.h> | |
10675 | #endif | |
bf9f3bac | 10676 | |
8934764e | 10677 | #undef shl_load |
bf9f3bac | 10678 | |
8934764e BB |
10679 | /* Override any GCC internal prototype to avoid an error. |
10680 | Use char because int might match the return type of a GCC | |
10681 | builtin and then its argument prototype would still apply. */ | |
10682 | #ifdef __cplusplus | |
10683 | extern "C" | |
10684 | #endif | |
10685 | char shl_load (); | |
10686 | /* The GNU C library defines this for functions which it implements | |
10687 | to always fail with ENOSYS. Some functions are actually named | |
10688 | something starting with __ and the normal name is an alias. */ | |
10689 | #if defined __stub_shl_load || defined __stub___shl_load | |
10690 | choke me | |
10691 | #endif | |
bf9f3bac | 10692 | |
8934764e BB |
10693 | int |
10694 | main () | |
10695 | { | |
10696 | return shl_load (); | |
10697 | ; | |
10698 | return 0; | |
10699 | } | |
10700 | _ACEOF | |
10701 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10702 | if { (ac_try="$ac_link" | |
10703 | case "(($ac_try" in | |
10704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10705 | *) ac_try_echo=$ac_try;; | |
10706 | esac | |
10707 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10708 | $as_echo "$ac_try_echo") >&5 | |
10709 | (eval "$ac_link") 2>conftest.er1 | |
10710 | ac_status=$? | |
10711 | grep -v '^ *+' conftest.er1 >conftest.err | |
10712 | rm -f conftest.er1 | |
10713 | cat conftest.err >&5 | |
10714 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10715 | (exit $ac_status); } && { | |
10716 | test -z "$ac_c_werror_flag" || | |
10717 | test ! -s conftest.err | |
10718 | } && test -s conftest$ac_exeext && { | |
10719 | test "$cross_compiling" = yes || | |
10720 | $as_test_x conftest$ac_exeext | |
10721 | }; then | |
10722 | ac_cv_func_shl_load=yes | |
10723 | else | |
10724 | $as_echo "$as_me: failed program was:" >&5 | |
10725 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bf9f3bac | 10726 | |
8934764e BB |
10727 | ac_cv_func_shl_load=no |
10728 | fi | |
bf9f3bac | 10729 | |
8934764e BB |
10730 | rm -rf conftest.dSYM |
10731 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10732 | conftest$ac_exeext conftest.$ac_ext | |
10733 | fi | |
10734 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | |
10735 | $as_echo "$ac_cv_func_shl_load" >&6; } | |
10736 | if test "x$ac_cv_func_shl_load" = x""yes; then | |
10737 | lt_cv_dlopen="shl_load" | |
10738 | else | |
10739 | { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | |
10740 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
10741 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | |
10742 | $as_echo_n "(cached) " >&6 | |
10743 | else | |
10744 | ac_check_lib_save_LIBS=$LIBS | |
10745 | LIBS="-ldld $LIBS" | |
10746 | cat >conftest.$ac_ext <<_ACEOF | |
10747 | /* confdefs.h. */ | |
10748 | _ACEOF | |
10749 | cat confdefs.h >>conftest.$ac_ext | |
10750 | cat >>conftest.$ac_ext <<_ACEOF | |
10751 | /* end confdefs.h. */ | |
bf9f3bac | 10752 | |
8934764e BB |
10753 | /* Override any GCC internal prototype to avoid an error. |
10754 | Use char because int might match the return type of a GCC | |
10755 | builtin and then its argument prototype would still apply. */ | |
10756 | #ifdef __cplusplus | |
10757 | extern "C" | |
10758 | #endif | |
10759 | char shl_load (); | |
10760 | int | |
10761 | main () | |
10762 | { | |
10763 | return shl_load (); | |
10764 | ; | |
10765 | return 0; | |
10766 | } | |
10767 | _ACEOF | |
10768 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10769 | if { (ac_try="$ac_link" | |
10770 | case "(($ac_try" in | |
10771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10772 | *) ac_try_echo=$ac_try;; | |
10773 | esac | |
10774 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10775 | $as_echo "$ac_try_echo") >&5 | |
10776 | (eval "$ac_link") 2>conftest.er1 | |
10777 | ac_status=$? | |
10778 | grep -v '^ *+' conftest.er1 >conftest.err | |
10779 | rm -f conftest.er1 | |
10780 | cat conftest.err >&5 | |
10781 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10782 | (exit $ac_status); } && { | |
10783 | test -z "$ac_c_werror_flag" || | |
10784 | test ! -s conftest.err | |
10785 | } && test -s conftest$ac_exeext && { | |
10786 | test "$cross_compiling" = yes || | |
10787 | $as_test_x conftest$ac_exeext | |
10788 | }; then | |
10789 | ac_cv_lib_dld_shl_load=yes | |
10790 | else | |
10791 | $as_echo "$as_me: failed program was:" >&5 | |
10792 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bf9f3bac | 10793 | |
8934764e BB |
10794 | ac_cv_lib_dld_shl_load=no |
10795 | fi | |
bf9f3bac | 10796 | |
8934764e BB |
10797 | rm -rf conftest.dSYM |
10798 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10799 | conftest$ac_exeext conftest.$ac_ext | |
10800 | LIBS=$ac_check_lib_save_LIBS | |
10801 | fi | |
10802 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | |
10803 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
10804 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then | |
10805 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | |
10806 | else | |
10807 | { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 | |
10808 | $as_echo_n "checking for dlopen... " >&6; } | |
10809 | if test "${ac_cv_func_dlopen+set}" = set; then | |
10810 | $as_echo_n "(cached) " >&6 | |
10811 | else | |
10812 | cat >conftest.$ac_ext <<_ACEOF | |
10813 | /* confdefs.h. */ | |
10814 | _ACEOF | |
10815 | cat confdefs.h >>conftest.$ac_ext | |
10816 | cat >>conftest.$ac_ext <<_ACEOF | |
10817 | /* end confdefs.h. */ | |
10818 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | |
10819 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10820 | #define dlopen innocuous_dlopen | |
bf9f3bac | 10821 | |
8934764e BB |
10822 | /* System header to define __stub macros and hopefully few prototypes, |
10823 | which can conflict with char dlopen (); below. | |
10824 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10825 | <limits.h> exists even on freestanding compilers. */ | |
bf9f3bac | 10826 | |
8934764e BB |
10827 | #ifdef __STDC__ |
10828 | # include <limits.h> | |
10829 | #else | |
10830 | # include <assert.h> | |
10831 | #endif | |
bf9f3bac | 10832 | |
8934764e | 10833 | #undef dlopen |
bf9f3bac | 10834 | |
8934764e BB |
10835 | /* Override any GCC internal prototype to avoid an error. |
10836 | Use char because int might match the return type of a GCC | |
10837 | builtin and then its argument prototype would still apply. */ | |
10838 | #ifdef __cplusplus | |
10839 | extern "C" | |
10840 | #endif | |
10841 | char dlopen (); | |
10842 | /* The GNU C library defines this for functions which it implements | |
10843 | to always fail with ENOSYS. Some functions are actually named | |
10844 | something starting with __ and the normal name is an alias. */ | |
10845 | #if defined __stub_dlopen || defined __stub___dlopen | |
10846 | choke me | |
10847 | #endif | |
bf9f3bac | 10848 | |
8934764e BB |
10849 | int |
10850 | main () | |
10851 | { | |
10852 | return dlopen (); | |
10853 | ; | |
10854 | return 0; | |
10855 | } | |
10856 | _ACEOF | |
10857 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10858 | if { (ac_try="$ac_link" | |
10859 | case "(($ac_try" in | |
10860 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10861 | *) ac_try_echo=$ac_try;; | |
10862 | esac | |
10863 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10864 | $as_echo "$ac_try_echo") >&5 | |
10865 | (eval "$ac_link") 2>conftest.er1 | |
10866 | ac_status=$? | |
10867 | grep -v '^ *+' conftest.er1 >conftest.err | |
10868 | rm -f conftest.er1 | |
10869 | cat conftest.err >&5 | |
10870 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10871 | (exit $ac_status); } && { | |
10872 | test -z "$ac_c_werror_flag" || | |
10873 | test ! -s conftest.err | |
10874 | } && test -s conftest$ac_exeext && { | |
10875 | test "$cross_compiling" = yes || | |
10876 | $as_test_x conftest$ac_exeext | |
10877 | }; then | |
10878 | ac_cv_func_dlopen=yes | |
10879 | else | |
10880 | $as_echo "$as_me: failed program was:" >&5 | |
10881 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bf9f3bac | 10882 | |
8934764e BB |
10883 | ac_cv_func_dlopen=no |
10884 | fi | |
bf9f3bac | 10885 | |
8934764e BB |
10886 | rm -rf conftest.dSYM |
10887 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10888 | conftest$ac_exeext conftest.$ac_ext | |
10889 | fi | |
10890 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | |
10891 | $as_echo "$ac_cv_func_dlopen" >&6; } | |
10892 | if test "x$ac_cv_func_dlopen" = x""yes; then | |
10893 | lt_cv_dlopen="dlopen" | |
10894 | else | |
10895 | { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
10896 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
10897 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
10898 | $as_echo_n "(cached) " >&6 | |
10899 | else | |
10900 | ac_check_lib_save_LIBS=$LIBS | |
10901 | LIBS="-ldl $LIBS" | |
10902 | cat >conftest.$ac_ext <<_ACEOF | |
10903 | /* confdefs.h. */ | |
10904 | _ACEOF | |
10905 | cat confdefs.h >>conftest.$ac_ext | |
10906 | cat >>conftest.$ac_ext <<_ACEOF | |
10907 | /* end confdefs.h. */ | |
bf9f3bac | 10908 | |
8934764e BB |
10909 | /* Override any GCC internal prototype to avoid an error. |
10910 | Use char because int might match the return type of a GCC | |
10911 | builtin and then its argument prototype would still apply. */ | |
10912 | #ifdef __cplusplus | |
10913 | extern "C" | |
10914 | #endif | |
10915 | char dlopen (); | |
10916 | int | |
10917 | main () | |
10918 | { | |
10919 | return dlopen (); | |
10920 | ; | |
10921 | return 0; | |
10922 | } | |
10923 | _ACEOF | |
10924 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10925 | if { (ac_try="$ac_link" | |
10926 | case "(($ac_try" in | |
10927 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10928 | *) ac_try_echo=$ac_try;; | |
10929 | esac | |
10930 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10931 | $as_echo "$ac_try_echo") >&5 | |
10932 | (eval "$ac_link") 2>conftest.er1 | |
10933 | ac_status=$? | |
10934 | grep -v '^ *+' conftest.er1 >conftest.err | |
10935 | rm -f conftest.er1 | |
10936 | cat conftest.err >&5 | |
10937 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10938 | (exit $ac_status); } && { | |
10939 | test -z "$ac_c_werror_flag" || | |
10940 | test ! -s conftest.err | |
10941 | } && test -s conftest$ac_exeext && { | |
10942 | test "$cross_compiling" = yes || | |
10943 | $as_test_x conftest$ac_exeext | |
10944 | }; then | |
10945 | ac_cv_lib_dl_dlopen=yes | |
10946 | else | |
10947 | $as_echo "$as_me: failed program was:" >&5 | |
10948 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bf9f3bac | 10949 | |
8934764e BB |
10950 | ac_cv_lib_dl_dlopen=no |
10951 | fi | |
bf9f3bac | 10952 | |
8934764e BB |
10953 | rm -rf conftest.dSYM |
10954 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10955 | conftest$ac_exeext conftest.$ac_ext | |
10956 | LIBS=$ac_check_lib_save_LIBS | |
10957 | fi | |
10958 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
10959 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
10960 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then | |
10961 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
10962 | else | |
10963 | { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | |
10964 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
10965 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | |
10966 | $as_echo_n "(cached) " >&6 | |
10967 | else | |
10968 | ac_check_lib_save_LIBS=$LIBS | |
10969 | LIBS="-lsvld $LIBS" | |
10970 | cat >conftest.$ac_ext <<_ACEOF | |
10971 | /* confdefs.h. */ | |
10972 | _ACEOF | |
10973 | cat confdefs.h >>conftest.$ac_ext | |
10974 | cat >>conftest.$ac_ext <<_ACEOF | |
10975 | /* end confdefs.h. */ | |
bf9f3bac | 10976 | |
8934764e BB |
10977 | /* Override any GCC internal prototype to avoid an error. |
10978 | Use char because int might match the return type of a GCC | |
10979 | builtin and then its argument prototype would still apply. */ | |
10980 | #ifdef __cplusplus | |
10981 | extern "C" | |
10982 | #endif | |
10983 | char dlopen (); | |
10984 | int | |
10985 | main () | |
10986 | { | |
10987 | return dlopen (); | |
10988 | ; | |
10989 | return 0; | |
10990 | } | |
10991 | _ACEOF | |
10992 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10993 | if { (ac_try="$ac_link" | |
10994 | case "(($ac_try" in | |
10995 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10996 | *) ac_try_echo=$ac_try;; | |
10997 | esac | |
10998 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10999 | $as_echo "$ac_try_echo") >&5 | |
11000 | (eval "$ac_link") 2>conftest.er1 | |
11001 | ac_status=$? | |
11002 | grep -v '^ *+' conftest.er1 >conftest.err | |
11003 | rm -f conftest.er1 | |
11004 | cat conftest.err >&5 | |
11005 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11006 | (exit $ac_status); } && { | |
11007 | test -z "$ac_c_werror_flag" || | |
11008 | test ! -s conftest.err | |
11009 | } && test -s conftest$ac_exeext && { | |
11010 | test "$cross_compiling" = yes || | |
11011 | $as_test_x conftest$ac_exeext | |
11012 | }; then | |
11013 | ac_cv_lib_svld_dlopen=yes | |
11014 | else | |
11015 | $as_echo "$as_me: failed program was:" >&5 | |
11016 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bf9f3bac | 11017 | |
8934764e BB |
11018 | ac_cv_lib_svld_dlopen=no |
11019 | fi | |
bf9f3bac | 11020 | |
8934764e BB |
11021 | rm -rf conftest.dSYM |
11022 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11023 | conftest$ac_exeext conftest.$ac_ext | |
11024 | LIBS=$ac_check_lib_save_LIBS | |
11025 | fi | |
11026 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | |
11027 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
11028 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then | |
11029 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
11030 | else | |
11031 | { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | |
11032 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
11033 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | |
11034 | $as_echo_n "(cached) " >&6 | |
11035 | else | |
11036 | ac_check_lib_save_LIBS=$LIBS | |
11037 | LIBS="-ldld $LIBS" | |
11038 | cat >conftest.$ac_ext <<_ACEOF | |
11039 | /* confdefs.h. */ | |
11040 | _ACEOF | |
11041 | cat confdefs.h >>conftest.$ac_ext | |
11042 | cat >>conftest.$ac_ext <<_ACEOF | |
11043 | /* end confdefs.h. */ | |
bf9f3bac | 11044 | |
8934764e BB |
11045 | /* Override any GCC internal prototype to avoid an error. |
11046 | Use char because int might match the return type of a GCC | |
11047 | builtin and then its argument prototype would still apply. */ | |
11048 | #ifdef __cplusplus | |
11049 | extern "C" | |
11050 | #endif | |
11051 | char dld_link (); | |
11052 | int | |
11053 | main () | |
11054 | { | |
11055 | return dld_link (); | |
11056 | ; | |
11057 | return 0; | |
11058 | } | |
11059 | _ACEOF | |
11060 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11061 | if { (ac_try="$ac_link" | |
11062 | case "(($ac_try" in | |
11063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11064 | *) ac_try_echo=$ac_try;; | |
11065 | esac | |
11066 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11067 | $as_echo "$ac_try_echo") >&5 | |
11068 | (eval "$ac_link") 2>conftest.er1 | |
11069 | ac_status=$? | |
11070 | grep -v '^ *+' conftest.er1 >conftest.err | |
11071 | rm -f conftest.er1 | |
11072 | cat conftest.err >&5 | |
11073 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11074 | (exit $ac_status); } && { | |
11075 | test -z "$ac_c_werror_flag" || | |
11076 | test ! -s conftest.err | |
11077 | } && test -s conftest$ac_exeext && { | |
11078 | test "$cross_compiling" = yes || | |
11079 | $as_test_x conftest$ac_exeext | |
11080 | }; then | |
11081 | ac_cv_lib_dld_dld_link=yes | |
11082 | else | |
11083 | $as_echo "$as_me: failed program was:" >&5 | |
11084 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bf9f3bac | 11085 | |
8934764e BB |
11086 | ac_cv_lib_dld_dld_link=no |
11087 | fi | |
bf9f3bac | 11088 | |
8934764e BB |
11089 | rm -rf conftest.dSYM |
11090 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11091 | conftest$ac_exeext conftest.$ac_ext | |
11092 | LIBS=$ac_check_lib_save_LIBS | |
11093 | fi | |
11094 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | |
11095 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
11096 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then | |
11097 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" | |
11098 | fi | |
bf9f3bac | 11099 | |
bf9f3bac | 11100 | |
8934764e | 11101 | fi |
bf9f3bac | 11102 | |
bf9f3bac | 11103 | |
8934764e | 11104 | fi |
bf9f3bac | 11105 | |
bf9f3bac | 11106 | |
8934764e | 11107 | fi |
bf9f3bac | 11108 | |
bf9f3bac | 11109 | |
8934764e | 11110 | fi |
bf9f3bac | 11111 | |
bf9f3bac | 11112 | |
8934764e | 11113 | fi |
bf9f3bac | 11114 | |
8934764e BB |
11115 | ;; |
11116 | esac | |
bf9f3bac | 11117 | |
8934764e BB |
11118 | if test "x$lt_cv_dlopen" != xno; then |
11119 | enable_dlopen=yes | |
11120 | else | |
11121 | enable_dlopen=no | |
11122 | fi | |
bf9f3bac | 11123 | |
8934764e BB |
11124 | case $lt_cv_dlopen in |
11125 | dlopen) | |
11126 | save_CPPFLAGS="$CPPFLAGS" | |
11127 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
bf9f3bac | 11128 | |
8934764e BB |
11129 | save_LDFLAGS="$LDFLAGS" |
11130 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
bf9f3bac | 11131 | |
8934764e BB |
11132 | save_LIBS="$LIBS" |
11133 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
bf9f3bac | 11134 | |
8934764e BB |
11135 | { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
11136 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
11137 | if test "${lt_cv_dlopen_self+set}" = set; then | |
11138 | $as_echo_n "(cached) " >&6 | |
11139 | else | |
11140 | if test "$cross_compiling" = yes; then : | |
11141 | lt_cv_dlopen_self=cross | |
11142 | else | |
11143 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11144 | lt_status=$lt_dlunknown | |
11145 | cat > conftest.$ac_ext <<_LT_EOF | |
287b2fb1 | 11146 | #line 11146 "configure" |
8934764e | 11147 | #include "confdefs.h" |
bf9f3bac | 11148 | |
8934764e BB |
11149 | #if HAVE_DLFCN_H |
11150 | #include <dlfcn.h> | |
11151 | #endif | |
bf9f3bac | 11152 | |
8934764e | 11153 | #include <stdio.h> |
bf9f3bac | 11154 | |
8934764e BB |
11155 | #ifdef RTLD_GLOBAL |
11156 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11157 | #else | |
11158 | # ifdef DL_GLOBAL | |
11159 | # define LT_DLGLOBAL DL_GLOBAL | |
11160 | # else | |
11161 | # define LT_DLGLOBAL 0 | |
11162 | # endif | |
11163 | #endif | |
bf9f3bac | 11164 | |
8934764e BB |
11165 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
11166 | find out it does not work in some platform. */ | |
11167 | #ifndef LT_DLLAZY_OR_NOW | |
11168 | # ifdef RTLD_LAZY | |
11169 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11170 | # else | |
11171 | # ifdef DL_LAZY | |
11172 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11173 | # else | |
11174 | # ifdef RTLD_NOW | |
11175 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11176 | # else | |
11177 | # ifdef DL_NOW | |
11178 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11179 | # else | |
11180 | # define LT_DLLAZY_OR_NOW 0 | |
11181 | # endif | |
11182 | # endif | |
11183 | # endif | |
11184 | # endif | |
11185 | #endif | |
bf9f3bac | 11186 | |
8934764e BB |
11187 | void fnord() { int i=42;} |
11188 | int main () | |
11189 | { | |
11190 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11191 | int status = $lt_dlunknown; | |
bf9f3bac | 11192 | |
8934764e BB |
11193 | if (self) |
11194 | { | |
11195 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11196 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11197 | /* dlclose (self); */ | |
11198 | } | |
11199 | else | |
11200 | puts (dlerror ()); | |
bf9f3bac | 11201 | |
8934764e BB |
11202 | return status; |
11203 | } | |
11204 | _LT_EOF | |
11205 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11206 | (eval $ac_link) 2>&5 | |
11207 | ac_status=$? | |
11208 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11209 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
11210 | (./conftest; exit; ) >&5 2>/dev/null | |
11211 | lt_status=$? | |
11212 | case x$lt_status in | |
11213 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
11214 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
11215 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
11216 | esac | |
11217 | else : | |
11218 | # compilation failed | |
11219 | lt_cv_dlopen_self=no | |
11220 | fi | |
11221 | fi | |
11222 | rm -fr conftest* | |
bf9f3bac | 11223 | |
bf9f3bac | 11224 | |
8934764e BB |
11225 | fi |
11226 | { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | |
11227 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
bf9f3bac | 11228 | |
8934764e BB |
11229 | if test "x$lt_cv_dlopen_self" = xyes; then |
11230 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
11231 | { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | |
11232 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
11233 | if test "${lt_cv_dlopen_self_static+set}" = set; then | |
11234 | $as_echo_n "(cached) " >&6 | |
11235 | else | |
11236 | if test "$cross_compiling" = yes; then : | |
11237 | lt_cv_dlopen_self_static=cross | |
11238 | else | |
11239 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11240 | lt_status=$lt_dlunknown | |
11241 | cat > conftest.$ac_ext <<_LT_EOF | |
287b2fb1 | 11242 | #line 11242 "configure" |
8934764e | 11243 | #include "confdefs.h" |
bf9f3bac | 11244 | |
8934764e BB |
11245 | #if HAVE_DLFCN_H |
11246 | #include <dlfcn.h> | |
11247 | #endif | |
bf9f3bac | 11248 | |
8934764e | 11249 | #include <stdio.h> |
bf9f3bac | 11250 | |
8934764e BB |
11251 | #ifdef RTLD_GLOBAL |
11252 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11253 | #else | |
11254 | # ifdef DL_GLOBAL | |
11255 | # define LT_DLGLOBAL DL_GLOBAL | |
11256 | # else | |
11257 | # define LT_DLGLOBAL 0 | |
11258 | # endif | |
11259 | #endif | |
bf9f3bac | 11260 | |
8934764e BB |
11261 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
11262 | find out it does not work in some platform. */ | |
11263 | #ifndef LT_DLLAZY_OR_NOW | |
11264 | # ifdef RTLD_LAZY | |
11265 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11266 | # else | |
11267 | # ifdef DL_LAZY | |
11268 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11269 | # else | |
11270 | # ifdef RTLD_NOW | |
11271 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11272 | # else | |
11273 | # ifdef DL_NOW | |
11274 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11275 | # else | |
11276 | # define LT_DLLAZY_OR_NOW 0 | |
11277 | # endif | |
11278 | # endif | |
11279 | # endif | |
11280 | # endif | |
11281 | #endif | |
bf9f3bac | 11282 | |
8934764e BB |
11283 | void fnord() { int i=42;} |
11284 | int main () | |
11285 | { | |
11286 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11287 | int status = $lt_dlunknown; | |
bf9f3bac | 11288 | |
8934764e BB |
11289 | if (self) |
11290 | { | |
11291 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11292 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11293 | /* dlclose (self); */ | |
11294 | } | |
11295 | else | |
11296 | puts (dlerror ()); | |
bf9f3bac | 11297 | |
8934764e BB |
11298 | return status; |
11299 | } | |
11300 | _LT_EOF | |
11301 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11302 | (eval $ac_link) 2>&5 | |
11303 | ac_status=$? | |
11304 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11305 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
11306 | (./conftest; exit; ) >&5 2>/dev/null | |
11307 | lt_status=$? | |
11308 | case x$lt_status in | |
11309 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
11310 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
11311 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
11312 | esac | |
11313 | else : | |
11314 | # compilation failed | |
11315 | lt_cv_dlopen_self_static=no | |
11316 | fi | |
11317 | fi | |
11318 | rm -fr conftest* | |
bf9f3bac | 11319 | |
bf9f3bac | 11320 | |
8934764e BB |
11321 | fi |
11322 | { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | |
11323 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
11324 | fi | |
bf9f3bac | 11325 | |
8934764e BB |
11326 | CPPFLAGS="$save_CPPFLAGS" |
11327 | LDFLAGS="$save_LDFLAGS" | |
11328 | LIBS="$save_LIBS" | |
11329 | ;; | |
11330 | esac | |
bf9f3bac | 11331 | |
8934764e BB |
11332 | case $lt_cv_dlopen_self in |
11333 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
11334 | *) enable_dlopen_self=unknown ;; | |
11335 | esac | |
bf9f3bac | 11336 | |
8934764e BB |
11337 | case $lt_cv_dlopen_self_static in |
11338 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
11339 | *) enable_dlopen_self_static=unknown ;; | |
11340 | esac | |
11341 | fi | |
bf9f3bac | 11342 | |
bf9f3bac | 11343 | |
bf9f3bac | 11344 | |
bf9f3bac | 11345 | |
bf9f3bac | 11346 | |
bf9f3bac | 11347 | |
bf9f3bac | 11348 | |
bf9f3bac | 11349 | |
bf9f3bac | 11350 | |
bf9f3bac | 11351 | |
bf9f3bac | 11352 | |
bf9f3bac | 11353 | |
bf9f3bac | 11354 | |
bf9f3bac | 11355 | |
bf9f3bac | 11356 | |
bf9f3bac | 11357 | |
bf9f3bac | 11358 | |
8934764e BB |
11359 | striplib= |
11360 | old_striplib= | |
11361 | { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | |
11362 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
11363 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
11364 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
11365 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
11366 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11367 | $as_echo "yes" >&6; } | |
11368 | else | |
11369 | # FIXME - insert some real tests, host_os isn't really good enough | |
11370 | case $host_os in | |
11371 | darwin*) | |
11372 | if test -n "$STRIP" ; then | |
11373 | striplib="$STRIP -x" | |
11374 | old_striplib="$STRIP -S" | |
11375 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11376 | $as_echo "yes" >&6; } | |
11377 | else | |
11378 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11379 | $as_echo "no" >&6; } | |
11380 | fi | |
11381 | ;; | |
11382 | *) | |
11383 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11384 | $as_echo "no" >&6; } | |
11385 | ;; | |
11386 | esac | |
11387 | fi | |
bf9f3bac | 11388 | |
bf9f3bac | 11389 | |
bf9f3bac | 11390 | |
bf9f3bac | 11391 | |
bf9f3bac | 11392 | |
bf9f3bac | 11393 | |
bf9f3bac | 11394 | |
bf9f3bac | 11395 | |
bf9f3bac | 11396 | |
bf9f3bac | 11397 | |
bf9f3bac | 11398 | |
bf9f3bac | 11399 | |
8934764e BB |
11400 | # Report which library types will actually be built |
11401 | { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | |
11402 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
11403 | { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 | |
11404 | $as_echo "$can_build_shared" >&6; } | |
bf9f3bac | 11405 | |
8934764e BB |
11406 | { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
11407 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
11408 | test "$can_build_shared" = "no" && enable_shared=no | |
bf9f3bac | 11409 | |
8934764e BB |
11410 | # On AIX, shared libraries and static libraries use the same namespace, and |
11411 | # are all built from PIC. | |
11412 | case $host_os in | |
11413 | aix3*) | |
11414 | test "$enable_shared" = yes && enable_static=no | |
11415 | if test -n "$RANLIB"; then | |
11416 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
11417 | postinstall_cmds='$RANLIB $lib' | |
11418 | fi | |
11419 | ;; | |
bf9f3bac | 11420 | |
8934764e BB |
11421 | aix[4-9]*) |
11422 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
11423 | test "$enable_shared" = yes && enable_static=no | |
11424 | fi | |
11425 | ;; | |
11426 | esac | |
11427 | { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 | |
11428 | $as_echo "$enable_shared" >&6; } | |
bf9f3bac | 11429 | |
8934764e BB |
11430 | { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
11431 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
11432 | # Make sure either enable_shared or enable_static is yes. | |
11433 | test "$enable_shared" = yes || enable_static=yes | |
11434 | { $as_echo "$as_me:$LINENO: result: $enable_static" >&5 | |
11435 | $as_echo "$enable_static" >&6; } | |
bf9f3bac | 11436 | |
bf9f3bac | 11437 | |
bf9f3bac BB |
11438 | |
11439 | ||
bf9f3bac | 11440 | fi |
bf9f3bac BB |
11441 | ac_ext=c |
11442 | ac_cpp='$CPP $CPPFLAGS' | |
11443 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11444 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11445 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11446 | ||
11447 | CC="$lt_save_CC" | |
11448 | ||
bf9f3bac | 11449 | |
bf9f3bac BB |
11450 | |
11451 | ||
11452 | ||
11453 | ||
11454 | ||
11455 | ||
11456 | ||
11457 | ||
11458 | ||
11459 | ||
11460 | ||
8934764e | 11461 | ac_config_commands="$ac_config_commands libtool" |
bf9f3bac BB |
11462 | |
11463 | ||
11464 | ||
11465 | ||
8934764e | 11466 | # Only expand once: |
bf9f3bac BB |
11467 | |
11468 | ||
11469 | ||
11470 | ||
8934764e BB |
11471 | { $as_echo "$as_me:$LINENO: checking spl license" >&5 |
11472 | $as_echo_n "checking spl license... " >&6; } | |
86933a6e | 11473 | LICENSE=GPL |
8934764e BB |
11474 | { $as_echo "$as_me:$LINENO: result: $LICENSE" >&5 |
11475 | $as_echo "$LICENSE" >&6; } | |
86933a6e BB |
11476 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DHAVE_GPL_ONLY_SYMBOLS" |
11477 | ||
11478 | ||
11479 | ||
287b2fb1 BB |
11480 | |
11481 | RPM=rpm | |
11482 | RPMBUILD=rpmbuild | |
11483 | ||
11484 | { $as_echo "$as_me:$LINENO: checking whether $RPM is available" >&5 | |
11485 | $as_echo_n "checking whether $RPM is available... " >&6; } | |
11486 | if tmp=$($RPM --version 2>/dev/null); then | |
11487 | ||
11488 | RPM_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }') | |
11489 | HAVE_RPM=yes | |
11490 | { $as_echo "$as_me:$LINENO: result: $HAVE_RPM ($RPM_VERSION)" >&5 | |
11491 | $as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; } | |
11492 | ||
11493 | else | |
11494 | ||
11495 | HAVE_RPM=no | |
11496 | { $as_echo "$as_me:$LINENO: result: $HAVE_RPM" >&5 | |
11497 | $as_echo "$HAVE_RPM" >&6; } | |
11498 | ||
11499 | fi | |
11500 | ||
11501 | ||
11502 | { $as_echo "$as_me:$LINENO: checking whether $RPMBUILD is available" >&5 | |
11503 | $as_echo_n "checking whether $RPMBUILD is available... " >&6; } | |
11504 | if tmp=$($RPMBUILD --version 2>/dev/null); then | |
11505 | ||
11506 | RPMBUILD_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }') | |
11507 | HAVE_RPMBUILD=yes | |
11508 | { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5 | |
11509 | $as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; } | |
11510 | ||
11511 | else | |
11512 | ||
11513 | HAVE_RPMBUILD=no | |
11514 | { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD" >&5 | |
11515 | $as_echo "$HAVE_RPMBUILD" >&6; } | |
11516 | ||
11517 | fi | |
11518 | ||
11519 | ||
11520 | ||
11521 | ||
11522 | ||
11523 | ||
11524 | ||
11525 | ||
11526 | ||
11527 | ||
11528 | ||
11529 | DPKG=dpkg | |
11530 | DPKGBUILD=dpkg-buildpackage | |
11531 | ||
11532 | { $as_echo "$as_me:$LINENO: checking whether $DPKG is available" >&5 | |
11533 | $as_echo_n "checking whether $DPKG is available... " >&6; } | |
11534 | if tmp=$($DPKG --version 2>/dev/null); then | |
11535 | ||
11536 | DPKG_VERSION=$(echo $tmp | $AWK '/Debian/ { print $7 }') | |
11537 | HAVE_DPKG=yes | |
11538 | { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG ($DPKG_VERSION)" >&5 | |
11539 | $as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; } | |
11540 | ||
11541 | else | |
11542 | ||
11543 | HAVE_DPKG=no | |
11544 | { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG" >&5 | |
11545 | $as_echo "$HAVE_DPKG" >&6; } | |
11546 | ||
11547 | fi | |
11548 | ||
11549 | ||
11550 | { $as_echo "$as_me:$LINENO: checking whether $DPKGBUILD is available" >&5 | |
11551 | $as_echo_n "checking whether $DPKGBUILD is available... " >&6; } | |
11552 | if tmp=$($DPKGBUILD --version 2>/dev/null); then | |
11553 | ||
11554 | DPKGBUILD_VERSION=$(echo $tmp | \ | |
11555 | $AWK '/Debian/ { print $4 }' | cut -f-4 -d'.') | |
11556 | HAVE_DPKGBUILD=yes | |
11557 | { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5 | |
11558 | $as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; } | |
11559 | ||
11560 | else | |
11561 | ||
11562 | HAVE_DPKGBUILD=no | |
11563 | { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD" >&5 | |
11564 | $as_echo "$HAVE_DPKGBUILD" >&6; } | |
11565 | ||
11566 | fi | |
11567 | ||
11568 | ||
11569 | ||
11570 | ||
11571 | ||
11572 | ||
11573 | ||
11574 | ||
11575 | ||
11576 | ||
11577 | ||
11578 | ALIEN=alien | |
11579 | ||
11580 | { $as_echo "$as_me:$LINENO: checking whether $ALIEN is available" >&5 | |
11581 | $as_echo_n "checking whether $ALIEN is available... " >&6; } | |
11582 | if tmp=$($ALIEN --version 2>/dev/null); then | |
11583 | ||
11584 | ALIEN_VERSION=$(echo $tmp | $AWK '{ print $3 }') | |
11585 | HAVE_ALIEN=yes | |
11586 | { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5 | |
11587 | $as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; } | |
11588 | ||
11589 | else | |
11590 | ||
11591 | HAVE_ALIEN=no | |
11592 | { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN" >&5 | |
11593 | $as_echo "$HAVE_ALIEN" >&6; } | |
11594 | ||
11595 | fi | |
11596 | ||
11597 | ||
11598 | ||
11599 | ||
11600 | ||
11601 | ||
11602 | ||
11603 | VENDOR=$(echo $ac_build_alias | cut -f2 -d'-') | |
11604 | ||
11605 | { $as_echo "$as_me:$LINENO: checking default package type" >&5 | |
11606 | $as_echo_n "checking default package type... " >&6; } | |
11607 | case "$VENDOR" in | |
11608 | fedora) DEFAULT_PACKAGE=rpm ;; | |
11609 | redhat) DEFAULT_PACKAGE=rpm ;; | |
11610 | sles) DEFAULT_PACKAGE=rpm ;; | |
11611 | ubuntu) DEFAULT_PACKAGE=deb ;; | |
11612 | debian) DEFAULT_PACKAGE=deb ;; | |
11613 | slackware) DEFAULT_PACKAGE=tgz ;; | |
11614 | *) DEFAULT_PACKAGE=rpm ;; | |
11615 | esac | |
11616 | ||
11617 | { $as_echo "$as_me:$LINENO: result: $DEFAULT_PACKAGE" >&5 | |
11618 | $as_echo "$DEFAULT_PACKAGE" >&6; } | |
11619 | ||
11620 | ||
11621 | ||
11622 | ||
86933a6e BB |
11623 | SPL_CONFIG=all |
11624 | ||
8934764e | 11625 | # Check whether --with-config was given. |
86933a6e | 11626 | if test "${with_config+set}" = set; then |
8934764e BB |
11627 | withval=$with_config; SPL_CONFIG="$withval" |
11628 | fi | |
86933a6e | 11629 | |
8934764e BB |
11630 | |
11631 | { $as_echo "$as_me:$LINENO: checking spl config" >&5 | |
11632 | $as_echo_n "checking spl config... " >&6; } | |
11633 | { $as_echo "$as_me:$LINENO: result: $SPL_CONFIG" >&5 | |
11634 | $as_echo "$SPL_CONFIG" >&6; }; | |
86933a6e BB |
11635 | |
11636 | ||
11637 | case "$SPL_CONFIG" in | |
11638 | kernel) | |
11639 | ||
11640 | ||
8934764e | 11641 | # Check whether --with-linux was given. |
86933a6e | 11642 | if test "${with_linux+set}" = set; then |
8934764e BB |
11643 | withval=$with_linux; kernelsrc="$withval" |
11644 | fi | |
86933a6e BB |
11645 | |
11646 | ||
8934764e BB |
11647 | |
11648 | # Check whether --with-linux-obj was given. | |
86933a6e | 11649 | if test "${with_linux_obj+set}" = set; then |
8934764e BB |
11650 | withval=$with_linux_obj; kernelbuild="$withval" |
11651 | fi | |
86933a6e | 11652 | |
8934764e BB |
11653 | |
11654 | { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5 | |
11655 | $as_echo_n "checking kernel source directory... " >&6; } | |
86933a6e | 11656 | if test -z "$kernelsrc"; then |
534c4e38 BM |
11657 | headersdir="/lib/modules/$(uname -r)/build" |
11658 | if test -e "$headersdir"; then | |
11659 | sourcelink=$(readlink -f "$headersdir") | |
11660 | else | |
11661 | sourcelink=$(ls -1d /usr/src/kernels/* \ | |
11662 | /usr/src/linux-* \ | |
11663 | 2>/dev/null | grep -v obj | tail -1) | |
11664 | fi | |
86933a6e | 11665 | |
8fd4e3af | 11666 | if test -n "$sourcelink" && test -e ${sourcelink}; then |
86933a6e BB |
11667 | kernelsrc=`readlink -f ${sourcelink}` |
11668 | else | |
8934764e BB |
11669 | { $as_echo "$as_me:$LINENO: result: Not found" >&5 |
11670 | $as_echo "Not found" >&6; } | |
11671 | { { $as_echo "$as_me:$LINENO: error: | |
8fd4e3af BB |
11672 | *** Please make sure the kernel devel package for your distribution |
11673 | *** is installed then try again. If that fails you can specify the | |
11674 | *** location of the kernel source with the '--with-linux=PATH' option." >&5 | |
8934764e | 11675 | $as_echo "$as_me: error: |
8fd4e3af BB |
11676 | *** Please make sure the kernel devel package for your distribution |
11677 | *** is installed then try again. If that fails you can specify the | |
11678 | *** location of the kernel source with the '--with-linux=PATH' option." >&2;} | |
86933a6e BB |
11679 | { (exit 1); exit 1; }; } |
11680 | fi | |
11681 | else | |
11682 | if test "$kernelsrc" = "NONE"; then | |
11683 | kernsrcver=NONE | |
11684 | fi | |
11685 | fi | |
11686 | ||
8934764e BB |
11687 | { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5 |
11688 | $as_echo "$kernelsrc" >&6; } | |
11689 | { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5 | |
11690 | $as_echo_n "checking kernel build directory... " >&6; } | |
86933a6e | 11691 | if test -z "$kernelbuild"; then |
e2d28a37 BB |
11692 | if test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then |
11693 | kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu} | |
11694 | elif test -d ${kernelsrc}-obj/${target_cpu}/default; then | |
11695 | kernelbuild=${kernelsrc}-obj/${target_cpu}/default | |
11696 | elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then | |
11697 | kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu} | |
86933a6e BB |
11698 | else |
11699 | kernelbuild=${kernelsrc} | |
11700 | fi | |
11701 | fi | |
8934764e BB |
11702 | { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5 |
11703 | $as_echo "$kernelbuild" >&6; } | |
86933a6e | 11704 | |
8934764e BB |
11705 | { $as_echo "$as_me:$LINENO: checking kernel source version" >&5 |
11706 | $as_echo_n "checking kernel source version... " >&6; } | |
fd921c2e BB |
11707 | utsrelease1=$kernelbuild/include/linux/version.h |
11708 | utsrelease2=$kernelbuild/include/linux/utsrelease.h | |
11709 | utsrelease3=$kernelbuild/include/generated/utsrelease.h | |
11710 | if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then | |
11711 | utsrelease=linux/version.h | |
11712 | elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then | |
11713 | utsrelease=linux/utsrelease.h | |
11714 | elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then | |
11715 | utsrelease=generated/utsrelease.h | |
11716 | fi | |
86933a6e | 11717 | |
fd921c2e BB |
11718 | if test "$utsrelease"; then |
11719 | kernsrcver=`(echo "#include <$utsrelease>"; | |
86933a6e BB |
11720 | echo "kernsrcver=UTS_RELEASE") | |
11721 | cpp -I $kernelbuild/include | | |
11722 | grep "^kernsrcver=" | cut -d \" -f 2` | |
86933a6e | 11723 | |
fd921c2e BB |
11724 | if test -z "$kernsrcver"; then |
11725 | { $as_echo "$as_me:$LINENO: result: Not found" >&5 | |
11726 | $as_echo "Not found" >&6; } | |
11727 | { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5 | |
11728 | $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;} | |
11729 | { (exit 1); exit 1; }; } | |
11730 | fi | |
11731 | else | |
8934764e BB |
11732 | { $as_echo "$as_me:$LINENO: result: Not found" >&5 |
11733 | $as_echo "Not found" >&6; } | |
fd921c2e BB |
11734 | { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5 |
11735 | $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;} | |
86933a6e BB |
11736 | { (exit 1); exit 1; }; } |
11737 | fi | |
11738 | ||
8934764e BB |
11739 | { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5 |
11740 | $as_echo "$kernsrcver" >&6; } | |
86933a6e BB |
11741 | |
11742 | LINUX=${kernelsrc} | |
11743 | LINUX_OBJ=${kernelbuild} | |
11744 | LINUX_VERSION=${kernsrcver} | |
11745 | ||
11746 | ||
11747 | ||
11748 | ||
11749 | ||
11750 | ||
bb339d06 | 11751 | modpost=$LINUX/scripts/Makefile.modpost |
8934764e BB |
11752 | { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5 |
11753 | $as_echo_n "checking kernel file name for module symbols... " >&6; } | |
bb339d06 BB |
11754 | if test -f "$modpost"; then |
11755 | if grep -q Modules.symvers $modpost; then | |
11756 | LINUX_SYMBOLS=Modules.symvers | |
11757 | else | |
11758 | LINUX_SYMBOLS=Module.symvers | |
11759 | fi | |
86933a6e | 11760 | else |
bb339d06 | 11761 | LINUX_SYMBOLS=NONE |
86933a6e | 11762 | fi |
8934764e BB |
11763 | { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5 |
11764 | $as_echo "$LINUX_SYMBOLS" >&6; } | |
86933a6e BB |
11765 | |
11766 | ||
11767 | ||
11768 | ||
86933a6e | 11769 | abs_srcdir=`readlink -f ${srcdir}` |
c950d148 | 11770 | KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes" |
16b719f0 BB |
11771 | KERNELCPPFLAGS="$KERNELCPPFLAGS -I${abs_srcdir}/include" |
11772 | KERNELCPPFLAGS="$KERNELCPPFLAGS -include ${abs_srcdir}/spl_config.h" | |
86933a6e BB |
11773 | |
11774 | if test "${LINUX_OBJ}" != "${LINUX}"; then | |
11775 | KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ" | |
11776 | fi | |
11777 | ||
11778 | ||
11779 | ||
11780 | ||
11781 | ||
c950d148 BB |
11782 | { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5 |
11783 | $as_echo_n "checking whether debugging is enabled... " >&6; } | |
8934764e | 11784 | # Check whether --enable-debug was given. |
86933a6e | 11785 | if test "${enable_debug+set}" = set; then |
8934764e | 11786 | enableval=$enable_debug; |
055ffd98 BB |
11787 | else |
11788 | enable_debug=no | |
8934764e BB |
11789 | fi |
11790 | ||
055ffd98 BB |
11791 | |
11792 | if test "x$enable_debug" = xyes; then | |
c950d148 | 11793 | |
c950d148 BB |
11794 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror" |
11795 | DEBUG_CFLAGS="-DDEBUG -Werror" | |
11796 | ||
055ffd98 | 11797 | else |
c950d148 | 11798 | |
c950d148 BB |
11799 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG" |
11800 | DEBUG_CFLAGS="-DNDEBUG" | |
11801 | ||
055ffd98 BB |
11802 | fi |
11803 | ||
11804 | ||
c950d148 | 11805 | |
8934764e BB |
11806 | { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5 |
11807 | $as_echo "$enable_debug" >&6; } | |
86933a6e BB |
11808 | |
11809 | ||
8934764e | 11810 | # Check whether --enable-debug-kmem was given. |
86933a6e | 11811 | if test "${enable_debug_kmem+set}" = set; then |
8934764e | 11812 | enableval=$enable_debug_kmem; |
055ffd98 BB |
11813 | else |
11814 | enable_debug_kmem=yes | |
8934764e BB |
11815 | fi |
11816 | ||
055ffd98 BB |
11817 | |
11818 | if test "x$enable_debug_kmem" = xyes; then | |
86933a6e BB |
11819 | |
11820 | cat >>confdefs.h <<\_ACEOF | |
11821 | #define DEBUG_KMEM 1 | |
11822 | _ACEOF | |
11823 | ||
11824 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM" | |
055ffd98 | 11825 | fi |
86933a6e | 11826 | |
86933a6e | 11827 | |
8934764e BB |
11828 | { $as_echo "$as_me:$LINENO: checking whether basic kmem accounting is enabled" >&5 |
11829 | $as_echo_n "checking whether basic kmem accounting is enabled... " >&6; } | |
11830 | { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem" >&5 | |
11831 | $as_echo "$enable_debug_kmem" >&6; } | |
86933a6e BB |
11832 | |
11833 | ||
8934764e | 11834 | # Check whether --enable-debug-kmem-tracking was given. |
055ffd98 | 11835 | if test "${enable_debug_kmem_tracking+set}" = set; then |
8934764e | 11836 | enableval=$enable_debug_kmem_tracking; |
055ffd98 BB |
11837 | else |
11838 | enable_debug_kmem_tracking=no | |
8934764e BB |
11839 | fi |
11840 | ||
055ffd98 BB |
11841 | |
11842 | if test "x$enable_debug_kmem_tracking" = xyes; then | |
86933a6e BB |
11843 | |
11844 | cat >>confdefs.h <<\_ACEOF | |
055ffd98 | 11845 | #define DEBUG_KMEM_TRACKING 1 |
86933a6e BB |
11846 | _ACEOF |
11847 | ||
055ffd98 BB |
11848 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM_TRACKING" |
11849 | fi | |
11850 | ||
11851 | ||
8934764e BB |
11852 | { $as_echo "$as_me:$LINENO: checking whether detailed kmem tracking is enabled" >&5 |
11853 | $as_echo_n "checking whether detailed kmem tracking is enabled... " >&6; } | |
11854 | { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem_tracking" >&5 | |
11855 | $as_echo "$enable_debug_kmem_tracking" >&6; } | |
86933a6e | 11856 | |
5e9b5d83 | 11857 | |
8934764e | 11858 | # Check whether --enable-atomic-spinlocks was given. |
5e9b5d83 | 11859 | if test "${enable_atomic_spinlocks+set}" = set; then |
8934764e | 11860 | enableval=$enable_atomic_spinlocks; |
5e9b5d83 | 11861 | else |
d04c8a56 | 11862 | enable_atomic_spinlocks=check |
8934764e BB |
11863 | fi |
11864 | ||
5e9b5d83 | 11865 | |
86933a6e BB |
11866 | |
11867 | ||
dbe561d8 | 11868 | cat confdefs.h - <<_ACEOF >conftest.c |
86933a6e BB |
11869 | /* confdefs.h. */ |
11870 | _ACEOF | |
11871 | cat confdefs.h >>conftest.$ac_ext | |
11872 | cat >>conftest.$ac_ext <<_ACEOF | |
11873 | /* end confdefs.h. */ | |
11874 | ||
11875 | ||
d04c8a56 | 11876 | #include <asm/atomic.h> |
86933a6e BB |
11877 | |
11878 | int | |
11879 | main (void) | |
11880 | { | |
11881 | ||
d04c8a56 | 11882 | atomic64_t *ptr; |
86933a6e BB |
11883 | |
11884 | ; | |
11885 | return 0; | |
11886 | } | |
11887 | ||
11888 | _ACEOF | |
11889 | ||
11890 | ||
11891 | rm -Rf build && mkdir -p build | |
11892 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 11893 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
86933a6e BB |
11894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11895 | (eval $ac_try) 2>&5 | |
11896 | ac_status=$? | |
8934764e | 11897 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
11898 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
11899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11900 | (eval $ac_try) 2>&5 | |
11901 | ac_status=$? | |
8934764e | 11902 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
11903 | (exit $ac_status); }; }; then |
11904 | ||
d04c8a56 | 11905 | have_atomic64_t=yes |
86933a6e BB |
11906 | |
11907 | cat >>confdefs.h <<\_ACEOF | |
d04c8a56 | 11908 | #define HAVE_ATOMIC64_T 1 |
86933a6e BB |
11909 | _ACEOF |
11910 | ||
11911 | ||
11912 | else | |
8934764e | 11913 | $as_echo "$as_me: failed program was:" >&5 |
86933a6e BB |
11914 | sed 's/^/| /' conftest.$ac_ext >&5 |
11915 | ||
d04c8a56 | 11916 | have_atomic64_t=no |
86933a6e BB |
11917 | |
11918 | ||
11919 | ||
11920 | fi | |
11921 | ||
11922 | rm -Rf build | |
11923 | ||
11924 | ||
11925 | ||
d04c8a56 BB |
11926 | if test "x$enable_atomic_spinlocks" = xcheck; then |
11927 | ||
11928 | if test "x$have_atomic64_t" = xyes; then | |
11929 | ||
11930 | enable_atomic_spinlocks=no | |
11931 | ||
11932 | else | |
11933 | ||
11934 | enable_atomic_spinlocks=yes | |
11935 | ||
11936 | fi | |
11937 | ||
11938 | ||
11939 | fi | |
11940 | ||
11941 | ||
11942 | if test "x$enable_atomic_spinlocks" = xyes; then | |
11943 | ||
11944 | ||
11945 | cat >>confdefs.h <<\_ACEOF | |
11946 | #define ATOMIC_SPINLOCK 1 | |
11947 | _ACEOF | |
11948 | ||
11949 | ||
11950 | else | |
11951 | ||
11952 | if test "x$have_atomic64_t" = xno; then | |
11953 | ||
8934764e BB |
11954 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
11955 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
11956 | { { $as_echo "$as_me:$LINENO: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable | |
d04c8a56 | 11957 | See \`config.log' for more details." >&5 |
8934764e | 11958 | $as_echo "$as_me: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable |
d04c8a56 | 11959 | See \`config.log' for more details." >&2;} |
8934764e | 11960 | { (exit 1); exit 1; }; }; } |
d04c8a56 BB |
11961 | |
11962 | fi | |
11963 | ||
11964 | ||
11965 | fi | |
11966 | ||
11967 | ||
8934764e BB |
11968 | { $as_echo "$as_me:$LINENO: checking whether atomic types use spinlocks" >&5 |
11969 | $as_echo_n "checking whether atomic types use spinlocks... " >&6; } | |
11970 | { $as_echo "$as_me:$LINENO: result: $enable_atomic_spinlocks" >&5 | |
11971 | $as_echo "$enable_atomic_spinlocks" >&6; } | |
d04c8a56 | 11972 | |
8934764e BB |
11973 | { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_t" >&5 |
11974 | $as_echo_n "checking whether kernel defines atomic64_t... " >&6; } | |
11975 | { $as_echo "$as_me:$LINENO: result: $have_atomic64_t" >&5 | |
11976 | $as_echo "$have_atomic64_t" >&6; } | |
d04c8a56 | 11977 | |
8934764e BB |
11978 | { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_cmpxchg" >&5 |
11979 | $as_echo_n "checking whether kernel defines atomic64_cmpxchg... " >&6; } | |
86933a6e BB |
11980 | |
11981 | ||
dbe561d8 | 11982 | cat confdefs.h - <<_ACEOF >conftest.c |
86933a6e BB |
11983 | /* confdefs.h. */ |
11984 | _ACEOF | |
11985 | cat confdefs.h >>conftest.$ac_ext | |
11986 | cat >>conftest.$ac_ext <<_ACEOF | |
11987 | /* end confdefs.h. */ | |
11988 | ||
11989 | ||
11990 | #include <asm/atomic.h> | |
5ec44a37 | 11991 | #include <asm/system.h> |
86933a6e BB |
11992 | |
11993 | int | |
11994 | main (void) | |
11995 | { | |
11996 | ||
d04c8a56 | 11997 | atomic64_cmpxchg((atomic64_t *)NULL, 0, 0); |
86933a6e BB |
11998 | |
11999 | ; | |
12000 | return 0; | |
12001 | } | |
12002 | ||
12003 | _ACEOF | |
12004 | ||
12005 | ||
12006 | rm -Rf build && mkdir -p build | |
12007 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 12008 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
86933a6e BB |
12009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12010 | (eval $ac_try) 2>&5 | |
12011 | ac_status=$? | |
8934764e | 12012 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
12013 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
12014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12015 | (eval $ac_try) 2>&5 | |
12016 | ac_status=$? | |
8934764e | 12017 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
12018 | (exit $ac_status); }; }; then |
12019 | ||
8934764e BB |
12020 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
12021 | $as_echo "yes" >&6; } | |
86933a6e BB |
12022 | |
12023 | cat >>confdefs.h <<\_ACEOF | |
d04c8a56 | 12024 | #define HAVE_ATOMIC64_CMPXCHG 1 |
86933a6e BB |
12025 | _ACEOF |
12026 | ||
12027 | ||
12028 | else | |
8934764e | 12029 | $as_echo "$as_me: failed program was:" >&5 |
86933a6e BB |
12030 | sed 's/^/| /' conftest.$ac_ext >&5 |
12031 | ||
8934764e BB |
12032 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12033 | $as_echo "no" >&6; } | |
86933a6e BB |
12034 | |
12035 | ||
12036 | ||
302b88e6 BB |
12037 | fi |
12038 | ||
12039 | rm -Rf build | |
12040 | ||
12041 | ||
12042 | ||
8934764e BB |
12043 | { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_xchg" >&5 |
12044 | $as_echo_n "checking whether kernel defines atomic64_xchg... " >&6; } | |
302b88e6 BB |
12045 | |
12046 | ||
dbe561d8 | 12047 | cat confdefs.h - <<_ACEOF >conftest.c |
302b88e6 BB |
12048 | /* confdefs.h. */ |
12049 | _ACEOF | |
12050 | cat confdefs.h >>conftest.$ac_ext | |
12051 | cat >>conftest.$ac_ext <<_ACEOF | |
12052 | /* end confdefs.h. */ | |
12053 | ||
12054 | ||
12055 | #include <asm/atomic.h> | |
12056 | ||
12057 | int | |
12058 | main (void) | |
12059 | { | |
12060 | ||
d04c8a56 | 12061 | atomic64_xchg((atomic64_t *)NULL, 0); |
302b88e6 BB |
12062 | |
12063 | ; | |
12064 | return 0; | |
12065 | } | |
12066 | ||
12067 | _ACEOF | |
12068 | ||
12069 | ||
12070 | rm -Rf build && mkdir -p build | |
12071 | echo "obj-m := conftest.o" >build/Makefile | |
12072 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
12073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12074 | (eval $ac_try) 2>&5 | |
12075 | ac_status=$? | |
8934764e | 12076 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
302b88e6 BB |
12077 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
12078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12079 | (eval $ac_try) 2>&5 | |
12080 | ac_status=$? | |
8934764e | 12081 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
302b88e6 BB |
12082 | (exit $ac_status); }; }; then |
12083 | ||
8934764e BB |
12084 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
12085 | $as_echo "yes" >&6; } | |
302b88e6 BB |
12086 | |
12087 | cat >>confdefs.h <<\_ACEOF | |
d04c8a56 | 12088 | #define HAVE_ATOMIC64_XCHG 1 |
302b88e6 BB |
12089 | _ACEOF |
12090 | ||
12091 | ||
12092 | else | |
8934764e | 12093 | $as_echo "$as_me: failed program was:" >&5 |
302b88e6 BB |
12094 | sed 's/^/| /' conftest.$ac_ext >&5 |
12095 | ||
8934764e BB |
12096 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12097 | $as_echo "no" >&6; } | |
302b88e6 BB |
12098 | |
12099 | ||
12100 | ||
12101 | fi | |
12102 | ||
12103 | rm -Rf build | |
12104 | ||
12105 | ||
12106 | ||
8934764e BB |
12107 | { $as_echo "$as_me:$LINENO: checking whether kernel defines uintptr_t" >&5 |
12108 | $as_echo_n "checking whether kernel defines uintptr_t... " >&6; } | |
302b88e6 BB |
12109 | |
12110 | ||
dbe561d8 | 12111 | cat confdefs.h - <<_ACEOF >conftest.c |
302b88e6 BB |
12112 | /* confdefs.h. */ |
12113 | _ACEOF | |
12114 | cat confdefs.h >>conftest.$ac_ext | |
12115 | cat >>conftest.$ac_ext <<_ACEOF | |
12116 | /* end confdefs.h. */ | |
12117 | ||
12118 | ||
d04c8a56 | 12119 | #include <linux/types.h> |
302b88e6 BB |
12120 | |
12121 | int | |
12122 | main (void) | |
12123 | { | |
12124 | ||
d04c8a56 | 12125 | uintptr_t *ptr; |
302b88e6 BB |
12126 | |
12127 | ; | |
12128 | return 0; | |
12129 | } | |
12130 | ||
12131 | _ACEOF | |
12132 | ||
12133 | ||
12134 | rm -Rf build && mkdir -p build | |
12135 | echo "obj-m := conftest.o" >build/Makefile | |
12136 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
12137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12138 | (eval $ac_try) 2>&5 | |
12139 | ac_status=$? | |
8934764e | 12140 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
302b88e6 BB |
12141 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
12142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12143 | (eval $ac_try) 2>&5 | |
12144 | ac_status=$? | |
8934764e | 12145 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
302b88e6 BB |
12146 | (exit $ac_status); }; }; then |
12147 | ||
8934764e BB |
12148 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
12149 | $as_echo "yes" >&6; } | |
302b88e6 BB |
12150 | |
12151 | cat >>confdefs.h <<\_ACEOF | |
d04c8a56 | 12152 | #define HAVE_UINTPTR_T 1 |
302b88e6 BB |
12153 | _ACEOF |
12154 | ||
12155 | ||
12156 | else | |
8934764e | 12157 | $as_echo "$as_me: failed program was:" >&5 |
302b88e6 BB |
12158 | sed 's/^/| /' conftest.$ac_ext >&5 |
12159 | ||
8934764e BB |
12160 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12161 | $as_echo "no" >&6; } | |
302b88e6 BB |
12162 | |
12163 | ||
12164 | ||
86933a6e BB |
12165 | fi |
12166 | ||
12167 | rm -Rf build | |
12168 | ||
12169 | ||
12170 | ||
8934764e BB |
12171 | { $as_echo "$as_me:$LINENO: checking whether INIT_WORK wants 3 args" >&5 |
12172 | $as_echo_n "checking whether INIT_WORK wants 3 args... " >&6; } | |
86933a6e BB |
12173 | |
12174 | ||
dbe561d8 | 12175 | cat confdefs.h - <<_ACEOF >conftest.c |
86933a6e BB |
12176 | /* confdefs.h. */ |
12177 | _ACEOF | |
12178 | cat confdefs.h >>conftest.$ac_ext | |
12179 | cat >>conftest.$ac_ext <<_ACEOF | |
12180 | /* end confdefs.h. */ | |
12181 | ||
12182 | ||
12183 | #include <linux/workqueue.h> | |
12184 | ||
12185 | int | |
12186 | main (void) | |
12187 | { | |
12188 | ||
12189 | struct work_struct work; | |
12190 | INIT_WORK(&work, NULL, NULL); | |
12191 | ||
12192 | ; | |
12193 | return 0; | |
12194 | } | |
12195 | ||
12196 | _ACEOF | |
12197 | ||
12198 | ||
12199 | rm -Rf build && mkdir -p build | |
12200 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 12201 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
86933a6e BB |
12202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12203 | (eval $ac_try) 2>&5 | |
12204 | ac_status=$? | |
8934764e | 12205 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
12206 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
12207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12208 | (eval $ac_try) 2>&5 | |
12209 | ac_status=$? | |
8934764e | 12210 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
12211 | (exit $ac_status); }; }; then |
12212 | ||
8934764e BB |
12213 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
12214 | $as_echo "yes" >&6; } | |
86933a6e BB |
12215 | |
12216 | cat >>confdefs.h <<\_ACEOF | |
12217 | #define HAVE_3ARGS_INIT_WORK 1 | |
12218 | _ACEOF | |
12219 | ||
12220 | ||
12221 | else | |
8934764e | 12222 | $as_echo "$as_me: failed program was:" >&5 |
86933a6e BB |
12223 | sed 's/^/| /' conftest.$ac_ext >&5 |
12224 | ||
8934764e BB |
12225 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12226 | $as_echo "no" >&6; } | |
86933a6e BB |
12227 | |
12228 | ||
12229 | ||
12230 | fi | |
12231 | ||
12232 | rm -Rf build | |
12233 | ||
12234 | ||
12235 | ||
8934764e BB |
12236 | { $as_echo "$as_me:$LINENO: checking whether register_sysctl_table() wants 2 args" >&5 |
12237 | $as_echo_n "checking whether register_sysctl_table() wants 2 args... " >&6; } | |
86933a6e BB |
12238 | |
12239 | ||
dbe561d8 | 12240 | cat confdefs.h - <<_ACEOF >conftest.c |
86933a6e BB |
12241 | /* confdefs.h. */ |
12242 | _ACEOF | |
12243 | cat confdefs.h >>conftest.$ac_ext | |
12244 | cat >>conftest.$ac_ext <<_ACEOF | |
12245 | /* end confdefs.h. */ | |
12246 | ||
12247 | ||
12248 | #include <linux/sysctl.h> | |
12249 | ||
12250 | int | |
12251 | main (void) | |
12252 | { | |
12253 | ||
12254 | return register_sysctl_table(NULL,0); | |
12255 | ||
12256 | ; | |
12257 | return 0; | |
12258 | } | |
12259 | ||
12260 | _ACEOF | |
12261 | ||
12262 | ||
12263 | rm -Rf build && mkdir -p build | |
12264 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 12265 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
86933a6e BB |
12266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12267 | (eval $ac_try) 2>&5 | |
12268 | ac_status=$? | |
8934764e | 12269 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
12270 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
12271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12272 | (eval $ac_try) 2>&5 | |
12273 | ac_status=$? | |
8934764e | 12274 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
12275 | (exit $ac_status); }; }; then |
12276 | ||
8934764e BB |
12277 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
12278 | $as_echo "yes" >&6; } | |
86933a6e BB |
12279 | |
12280 | cat >>confdefs.h <<\_ACEOF | |
12281 | #define HAVE_2ARGS_REGISTER_SYSCTL 1 | |
12282 | _ACEOF | |
12283 | ||
12284 | ||
12285 | else | |
8934764e | 12286 | $as_echo "$as_me: failed program was:" >&5 |
86933a6e BB |
12287 | sed 's/^/| /' conftest.$ac_ext >&5 |
12288 | ||
8934764e BB |
12289 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12290 | $as_echo "no" >&6; } | |
86933a6e BB |
12291 | |
12292 | ||
12293 | ||
12294 | fi | |
12295 | ||
12296 | rm -Rf build | |
12297 | ||
12298 | ||
12299 | ||
12300 | ||
8934764e BB |
12301 | { $as_echo "$as_me:$LINENO: checking whether set_shrinker() available" >&5 |
12302 | $as_echo_n "checking whether set_shrinker() available... " >&6; } | |
86933a6e BB |
12303 | |
12304 | ||
dbe561d8 | 12305 | cat confdefs.h - <<_ACEOF >conftest.c |
86933a6e BB |
12306 | /* confdefs.h. */ |
12307 | _ACEOF | |
12308 | cat confdefs.h >>conftest.$ac_ext | |
12309 | cat >>conftest.$ac_ext <<_ACEOF | |
12310 | /* end confdefs.h. */ | |
12311 | ||
12312 | ||
12313 | #include <linux/mm.h> | |
12314 | ||
12315 | int | |
12316 | main (void) | |
12317 | { | |
12318 | ||
12319 | return set_shrinker(DEFAULT_SEEKS, NULL); | |
12320 | ||
12321 | ; | |
12322 | return 0; | |
12323 | } | |
12324 | ||
12325 | _ACEOF | |
12326 | ||
12327 | ||
12328 | rm -Rf build && mkdir -p build | |
12329 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 12330 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
86933a6e BB |
12331 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12332 | (eval $ac_try) 2>&5 | |
12333 | ac_status=$? | |
8934764e | 12334 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
12335 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
12336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12337 | (eval $ac_try) 2>&5 | |
12338 | ac_status=$? | |
8934764e | 12339 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
12340 | (exit $ac_status); }; }; then |
12341 | ||
8934764e BB |
12342 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
12343 | $as_echo "yes" >&6; } | |
86933a6e BB |
12344 | |
12345 | cat >>confdefs.h <<\_ACEOF | |
12346 | #define HAVE_SET_SHRINKER 1 | |
12347 | _ACEOF | |
12348 | ||
12349 | ||
12350 | else | |
8934764e | 12351 | $as_echo "$as_me: failed program was:" >&5 |
86933a6e BB |
12352 | sed 's/^/| /' conftest.$ac_ext >&5 |
12353 | ||
8934764e BB |
12354 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12355 | $as_echo "no" >&6; } | |
86933a6e BB |
12356 | |
12357 | ||
12358 | ||
12359 | fi | |
12360 | ||
12361 | rm -Rf build | |
12362 | ||
12363 | ||
12364 | ||
8934764e BB |
12365 | { $as_echo "$as_me:$LINENO: checking whether struct path used in struct nameidata" >&5 |
12366 | $as_echo_n "checking whether struct path used in struct nameidata... " >&6; } | |
86933a6e BB |
12367 | |
12368 | ||
dbe561d8 | 12369 | cat confdefs.h - <<_ACEOF >conftest.c |
86933a6e BB |
12370 | /* confdefs.h. */ |
12371 | _ACEOF | |
12372 | cat confdefs.h >>conftest.$ac_ext | |
12373 | cat >>conftest.$ac_ext <<_ACEOF | |
12374 | /* end confdefs.h. */ | |
12375 | ||
12376 | ||
12377 | #include <linux/namei.h> | |
12378 | ||
12379 | int | |
12380 | main (void) | |
12381 | { | |
12382 | ||
12383 | struct nameidata nd; | |
12384 | ||
12385 | nd.path.mnt = NULL; | |
12386 | nd.path.dentry = NULL; | |
12387 | ||
12388 | ; | |
12389 | return 0; | |
12390 | } | |
12391 | ||
12392 | _ACEOF | |
12393 | ||
12394 | ||
12395 | rm -Rf build && mkdir -p build | |
12396 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 12397 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
86933a6e BB |
12398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12399 | (eval $ac_try) 2>&5 | |
12400 | ac_status=$? | |
8934764e | 12401 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
12402 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
12403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12404 | (eval $ac_try) 2>&5 | |
12405 | ac_status=$? | |
8934764e | 12406 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
12407 | (exit $ac_status); }; }; then |
12408 | ||
8934764e BB |
12409 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
12410 | $as_echo "yes" >&6; } | |
86933a6e BB |
12411 | |
12412 | cat >>confdefs.h <<\_ACEOF | |
12413 | #define HAVE_PATH_IN_NAMEIDATA 1 | |
12414 | _ACEOF | |
12415 | ||
12416 | ||
12417 | else | |
8934764e | 12418 | $as_echo "$as_me: failed program was:" >&5 |
86933a6e BB |
12419 | sed 's/^/| /' conftest.$ac_ext >&5 |
12420 | ||
8934764e BB |
12421 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12422 | $as_echo "no" >&6; } | |
86933a6e BB |
12423 | |
12424 | ||
12425 | ||
12426 | fi | |
12427 | ||
12428 | rm -Rf build | |
12429 | ||
12430 | ||
12431 | ||
12432 | ||
8934764e BB |
12433 | { $as_echo "$as_me:$LINENO: checking whether symbol task_curr is exported" >&5 |
12434 | $as_echo_n "checking whether symbol task_curr is exported... " >&6; } | |
86933a6e BB |
12435 | grep -q -E '[[:space:]]task_curr[[:space:]]' \ |
12436 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
12437 | rc=$? | |
12438 | if test $rc -ne 0; then | |
12439 | export=0 | |
12440 | for file in kernel/sched.c; do | |
12441 | grep -q -E "EXPORT_SYMBOL.*(task_curr)" \ | |
12442 | "$LINUX_OBJ/$file" 2>/dev/null | |
12443 | rc=$? | |
12444 | if test $rc -eq 0; then | |
12445 | export=1 | |
12446 | break; | |
12447 | fi | |
12448 | done | |
12449 | if test $export -eq 0; then | |
8934764e BB |
12450 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12451 | $as_echo "no" >&6; } | |
86933a6e BB |
12452 | |
12453 | else | |
8934764e BB |
12454 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
12455 | $as_echo "yes" >&6; } | |
86933a6e BB |
12456 | |
12457 | cat >>confdefs.h <<\_ACEOF | |
12458 | #define HAVE_TASK_CURR 1 | |
12459 | _ACEOF | |
12460 | ||
12461 | fi | |
12462 | else | |
8934764e BB |
12463 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
12464 | $as_echo "yes" >&6; } | |
86933a6e BB |
12465 | |
12466 | cat >>confdefs.h <<\_ACEOF | |
12467 | #define HAVE_TASK_CURR 1 | |
12468 | _ACEOF | |
12469 | ||
12470 | fi | |
12471 | ||
12472 | ||
8934764e BB |
12473 | { $as_echo "$as_me:$LINENO: checking whether unnumbered sysctl support exists" >&5 |
12474 | $as_echo_n "checking whether unnumbered sysctl support exists... " >&6; } | |
86933a6e BB |
12475 | |
12476 | ||
dbe561d8 | 12477 | cat confdefs.h - <<_ACEOF >conftest.c |
86933a6e BB |
12478 | /* confdefs.h. */ |
12479 | _ACEOF | |
12480 | cat confdefs.h >>conftest.$ac_ext | |
12481 | cat >>conftest.$ac_ext <<_ACEOF | |
12482 | /* end confdefs.h. */ | |
12483 | ||
12484 | ||
12485 | #include <linux/sysctl.h> | |
12486 | ||
12487 | int | |
12488 | main (void) | |
12489 | { | |
12490 | ||
12491 | #ifndef CTL_UNNUMBERED | |
12492 | #error CTL_UNNUMBERED undefined | |
12493 | #endif | |
12494 | ||
12495 | ; | |
12496 | return 0; | |
12497 | } | |
12498 | ||
12499 | _ACEOF | |
12500 | ||
12501 | ||
12502 | rm -Rf build && mkdir -p build | |
12503 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 12504 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
86933a6e BB |
12505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12506 | (eval $ac_try) 2>&5 | |
12507 | ac_status=$? | |
8934764e | 12508 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
12509 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
12510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12511 | (eval $ac_try) 2>&5 | |
12512 | ac_status=$? | |
8934764e | 12513 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
12514 | (exit $ac_status); }; }; then |
12515 | ||
8934764e BB |
12516 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
12517 | $as_echo "yes" >&6; } | |
86933a6e BB |
12518 | |
12519 | cat >>confdefs.h <<\_ACEOF | |
12520 | #define HAVE_CTL_UNNUMBERED 1 | |
12521 | _ACEOF | |
12522 | ||
12523 | ||
12524 | else | |
8934764e | 12525 | $as_echo "$as_me: failed program was:" >&5 |
86933a6e BB |
12526 | sed 's/^/| /' conftest.$ac_ext >&5 |
12527 | ||
8934764e BB |
12528 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12529 | $as_echo "no" >&6; } | |
86933a6e BB |
12530 | |
12531 | ||
12532 | ||
79a3bf13 BB |
12533 | fi |
12534 | ||
12535 | rm -Rf build | |
12536 | ||
12537 | ||
12538 | ||
12539 | ||
12540 | { $as_echo "$as_me:$LINENO: checking whether struct ctl_table has ctl_name" >&5 | |
12541 | $as_echo_n "checking whether struct ctl_table has ctl_name... " >&6; } | |
12542 | ||
12543 | ||
dbe561d8 | 12544 | cat confdefs.h - <<_ACEOF >conftest.c |
79a3bf13 BB |
12545 | /* confdefs.h. */ |
12546 | _ACEOF | |
12547 | cat confdefs.h >>conftest.$ac_ext | |
12548 | cat >>conftest.$ac_ext <<_ACEOF | |
12549 | /* end confdefs.h. */ | |
12550 | ||
12551 | ||
12552 | #include <linux/sysctl.h> | |
12553 | ||
12554 | int | |
12555 | main (void) | |
12556 | { | |
12557 | ||
12558 | struct ctl_table ctl; | |
12559 | ctl.ctl_name = 0; | |
12560 | ||
12561 | ; | |
12562 | return 0; | |
12563 | } | |
12564 | ||
12565 | _ACEOF | |
12566 | ||
12567 | ||
12568 | rm -Rf build && mkdir -p build | |
12569 | echo "obj-m := conftest.o" >build/Makefile | |
12570 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
12571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12572 | (eval $ac_try) 2>&5 | |
12573 | ac_status=$? | |
12574 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12575 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
12576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12577 | (eval $ac_try) 2>&5 | |
12578 | ac_status=$? | |
12579 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12580 | (exit $ac_status); }; }; then | |
12581 | ||
12582 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
12583 | $as_echo "yes" >&6; } | |
12584 | ||
12585 | cat >>confdefs.h <<\_ACEOF | |
12586 | #define HAVE_CTL_NAME 1 | |
12587 | _ACEOF | |
12588 | ||
12589 | ||
12590 | else | |
12591 | $as_echo "$as_me: failed program was:" >&5 | |
12592 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12593 | ||
12594 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
12595 | $as_echo "no" >&6; } | |
12596 | ||
12597 | ||
12598 | ||
86933a6e BB |
12599 | fi |
12600 | ||
12601 | rm -Rf build | |
12602 | ||
12603 | ||
12604 | ||
8934764e BB |
12605 | { $as_echo "$as_me:$LINENO: checking whether fls64() is available" >&5 |
12606 | $as_echo_n "checking whether fls64() is available... " >&6; } | |
86933a6e BB |
12607 | |
12608 | ||
dbe561d8 | 12609 | cat confdefs.h - <<_ACEOF >conftest.c |
86933a6e BB |
12610 | /* confdefs.h. */ |
12611 | _ACEOF | |
12612 | cat confdefs.h >>conftest.$ac_ext | |
12613 | cat >>conftest.$ac_ext <<_ACEOF | |
12614 | /* end confdefs.h. */ | |
12615 | ||
12616 | ||
12617 | #include <linux/bitops.h> | |
12618 | ||
12619 | int | |
12620 | main (void) | |
12621 | { | |
12622 | ||
12623 | return fls64(0); | |
12624 | ||
12625 | ; | |
12626 | return 0; | |
12627 | } | |
12628 | ||
12629 | _ACEOF | |
12630 | ||
12631 | ||
12632 | rm -Rf build && mkdir -p build | |
12633 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 12634 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
86933a6e BB |
12635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12636 | (eval $ac_try) 2>&5 | |
12637 | ac_status=$? | |
8934764e | 12638 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
12639 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
12640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12641 | (eval $ac_try) 2>&5 | |
12642 | ac_status=$? | |
8934764e | 12643 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
12644 | (exit $ac_status); }; }; then |
12645 | ||
8934764e BB |
12646 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
12647 | $as_echo "yes" >&6; } | |
86933a6e BB |
12648 | |
12649 | cat >>confdefs.h <<\_ACEOF | |
12650 | #define HAVE_FLS64 1 | |
12651 | _ACEOF | |
12652 | ||
12653 | ||
12654 | else | |
8934764e | 12655 | $as_echo "$as_me: failed program was:" >&5 |
86933a6e BB |
12656 | sed 's/^/| /' conftest.$ac_ext >&5 |
12657 | ||
8934764e BB |
12658 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12659 | $as_echo "no" >&6; } | |
86933a6e BB |
12660 | |
12661 | ||
12662 | ||
12663 | fi | |
12664 | ||
12665 | rm -Rf build | |
12666 | ||
12667 | ||
12668 | ||
12669 | ||
8934764e BB |
12670 | { $as_echo "$as_me:$LINENO: checking whether symbol device_create is exported" >&5 |
12671 | $as_echo_n "checking whether symbol device_create is exported... " >&6; } | |
86933a6e BB |
12672 | grep -q -E '[[:space:]]device_create[[:space:]]' \ |
12673 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
12674 | rc=$? | |
12675 | if test $rc -ne 0; then | |
12676 | export=0 | |
12677 | for file in drivers/base/core.c; do | |
12678 | grep -q -E "EXPORT_SYMBOL.*(device_create)" \ | |
12679 | "$LINUX_OBJ/$file" 2>/dev/null | |
12680 | rc=$? | |
12681 | if test $rc -eq 0; then | |
12682 | export=1 | |
12683 | break; | |
12684 | fi | |
12685 | done | |
12686 | if test $export -eq 0; then | |
8934764e BB |
12687 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12688 | $as_echo "no" >&6; } | |
86933a6e BB |
12689 | |
12690 | else | |
8934764e BB |
12691 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
12692 | $as_echo "yes" >&6; } | |
86933a6e BB |
12693 | |
12694 | cat >>confdefs.h <<\_ACEOF | |
12695 | #define HAVE_DEVICE_CREATE 1 | |
12696 | _ACEOF | |
12697 | ||
12698 | fi | |
12699 | else | |
8934764e BB |
12700 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
12701 | $as_echo "yes" >&6; } | |
86933a6e BB |
12702 | |
12703 | cat >>confdefs.h <<\_ACEOF | |
12704 | #define HAVE_DEVICE_CREATE 1 | |
12705 | _ACEOF | |
12706 | ||
12707 | fi | |
12708 | ||
12709 | ||
12710 | ||
8934764e BB |
12711 | { $as_echo "$as_me:$LINENO: checking whether device_create() wants 5 args" >&5 |
12712 | $as_echo_n "checking whether device_create() wants 5 args... " >&6; } | |
86933a6e BB |
12713 | tmp_flags="$EXTRA_KCFLAGS" |
12714 | EXTRA_KCFLAGS="-Werror" | |
12715 | ||
12716 | ||
dbe561d8 | 12717 | cat confdefs.h - <<_ACEOF >conftest.c |
86933a6e BB |
12718 | /* confdefs.h. */ |
12719 | _ACEOF | |
12720 | cat confdefs.h >>conftest.$ac_ext | |
12721 | cat >>conftest.$ac_ext <<_ACEOF | |
12722 | /* end confdefs.h. */ | |
12723 | ||
12724 | ||
12725 | #include <linux/device.h> | |
12726 | ||
12727 | int | |
12728 | main (void) | |
12729 | { | |
12730 | ||
12731 | device_create(NULL, NULL, 0, NULL, "%d", 1); | |
12732 | ||
12733 | ; | |
12734 | return 0; | |
12735 | } | |
12736 | ||
12737 | _ACEOF | |
12738 | ||
12739 | ||
12740 | rm -Rf build && mkdir -p build | |
12741 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 12742 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
86933a6e BB |
12743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12744 | (eval $ac_try) 2>&5 | |
12745 | ac_status=$? | |
8934764e | 12746 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
12747 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
12748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12749 | (eval $ac_try) 2>&5 | |
12750 | ac_status=$? | |
8934764e | 12751 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
12752 | (exit $ac_status); }; }; then |
12753 | ||
8934764e BB |
12754 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
12755 | $as_echo "yes" >&6; } | |
86933a6e BB |
12756 | |
12757 | cat >>confdefs.h <<\_ACEOF | |
12758 | #define HAVE_5ARGS_DEVICE_CREATE 1 | |
12759 | _ACEOF | |
12760 | ||
12761 | ||
12762 | else | |
8934764e | 12763 | $as_echo "$as_me: failed program was:" >&5 |
86933a6e BB |
12764 | sed 's/^/| /' conftest.$ac_ext >&5 |
12765 | ||
8934764e BB |
12766 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12767 | $as_echo "no" >&6; } | |
86933a6e BB |
12768 | |
12769 | ||
12770 | ||
12771 | fi | |
12772 | ||
12773 | rm -Rf build | |
12774 | ||
12775 | ||
12776 | EXTRA_KCFLAGS="$tmp_flags" | |
12777 | ||
12778 | ||
8934764e BB |
12779 | { $as_echo "$as_me:$LINENO: checking whether symbol class_device_create is exported" >&5 |
12780 | $as_echo_n "checking whether symbol class_device_create is exported... " >&6; } | |
86933a6e BB |
12781 | grep -q -E '[[:space:]]class_device_create[[:space:]]' \ |
12782 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
12783 | rc=$? | |
12784 | if test $rc -ne 0; then | |
12785 | export=0 | |
12786 | for file in drivers/base/class.c; do | |
12787 | grep -q -E "EXPORT_SYMBOL.*(class_device_create)" \ | |
12788 | "$LINUX_OBJ/$file" 2>/dev/null | |
12789 | rc=$? | |
12790 | if test $rc -eq 0; then | |
12791 | export=1 | |
12792 | break; | |
12793 | fi | |
12794 | done | |
12795 | if test $export -eq 0; then | |
8934764e BB |
12796 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12797 | $as_echo "no" >&6; } | |
86933a6e BB |
12798 | |
12799 | else | |
8934764e BB |
12800 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
12801 | $as_echo "yes" >&6; } | |
86933a6e BB |
12802 | |
12803 | cat >>confdefs.h <<\_ACEOF | |
12804 | #define HAVE_CLASS_DEVICE_CREATE 1 | |
12805 | _ACEOF | |
12806 | ||
12807 | fi | |
12808 | else | |
8934764e BB |
12809 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
12810 | $as_echo "yes" >&6; } | |
86933a6e BB |
12811 | |
12812 | cat >>confdefs.h <<\_ACEOF | |
12813 | #define HAVE_CLASS_DEVICE_CREATE 1 | |
12814 | _ACEOF | |
12815 | ||
12816 | fi | |
12817 | ||
12818 | ||
12819 | ||
8934764e BB |
12820 | { $as_echo "$as_me:$LINENO: checking whether symbol set_normalized_timespec is exported" >&5 |
12821 | $as_echo_n "checking whether symbol set_normalized_timespec is exported... " >&6; } | |
86933a6e BB |
12822 | grep -q -E '[[:space:]]set_normalized_timespec[[:space:]]' \ |
12823 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
12824 | rc=$? | |
12825 | if test $rc -ne 0; then | |
12826 | export=0 | |
12827 | for file in kernel/time.c; do | |
12828 | grep -q -E "EXPORT_SYMBOL.*(set_normalized_timespec)" \ | |
12829 | "$LINUX_OBJ/$file" 2>/dev/null | |
12830 | rc=$? | |
12831 | if test $rc -eq 0; then | |
12832 | export=1 | |
12833 | break; | |
12834 | fi | |
12835 | done | |
12836 | if test $export -eq 0; then | |
8934764e BB |
12837 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12838 | $as_echo "no" >&6; } | |
86933a6e BB |
12839 | |
12840 | else | |
8934764e BB |
12841 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
12842 | $as_echo "yes" >&6; } | |
86933a6e BB |
12843 | |
12844 | cat >>confdefs.h <<\_ACEOF | |
12845 | #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1 | |
12846 | _ACEOF | |
12847 | ||
12848 | fi | |
12849 | else | |
8934764e BB |
12850 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
12851 | $as_echo "yes" >&6; } | |
86933a6e BB |
12852 | |
12853 | cat >>confdefs.h <<\_ACEOF | |
12854 | #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1 | |
12855 | _ACEOF | |
12856 | ||
12857 | fi | |
12858 | ||
12859 | ||
12860 | ||
8934764e BB |
12861 | { $as_echo "$as_me:$LINENO: checking whether set_normalized_timespec() is an inline" >&5 |
12862 | $as_echo_n "checking whether set_normalized_timespec() is an inline... " >&6; } | |
86933a6e BB |
12863 | |
12864 | ||
dbe561d8 | 12865 | cat confdefs.h - <<_ACEOF >conftest.c |
86933a6e BB |
12866 | /* confdefs.h. */ |
12867 | _ACEOF | |
12868 | cat confdefs.h >>conftest.$ac_ext | |
12869 | cat >>conftest.$ac_ext <<_ACEOF | |
12870 | /* end confdefs.h. */ | |
12871 | ||
12872 | ||
12873 | #include <linux/time.h> | |
12874 | void set_normalized_timespec(struct timespec *ts, | |
12875 | time_t sec, long nsec) { } | |
12876 | ||
12877 | int | |
12878 | main (void) | |
12879 | { | |
12880 | ||
12881 | ; | |
12882 | return 0; | |
12883 | } | |
12884 | ||
12885 | _ACEOF | |
12886 | ||
12887 | ||
12888 | rm -Rf build && mkdir -p build | |
12889 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 12890 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
86933a6e BB |
12891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12892 | (eval $ac_try) 2>&5 | |
12893 | ac_status=$? | |
8934764e | 12894 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
12895 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
12896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12897 | (eval $ac_try) 2>&5 | |
12898 | ac_status=$? | |
8934764e | 12899 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
12900 | (exit $ac_status); }; }; then |
12901 | ||
8934764e BB |
12902 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12903 | $as_echo "no" >&6; } | |
86933a6e BB |
12904 | |
12905 | else | |
8934764e | 12906 | $as_echo "$as_me: failed program was:" >&5 |
86933a6e BB |
12907 | sed 's/^/| /' conftest.$ac_ext >&5 |
12908 | ||
8934764e BB |
12909 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
12910 | $as_echo "yes" >&6; } | |
86933a6e BB |
12911 | |
12912 | cat >>confdefs.h <<\_ACEOF | |
12913 | #define HAVE_SET_NORMALIZED_TIMESPEC_INLINE 1 | |
12914 | _ACEOF | |
12915 | ||
12916 | ||
12917 | ||
12918 | ||
12919 | fi | |
12920 | ||
12921 | rm -Rf build | |
12922 | ||
12923 | ||
12924 | ||
12925 | ||
8934764e BB |
12926 | { $as_echo "$as_me:$LINENO: checking whether timespec_sub() is available" >&5 |
12927 | $as_echo_n "checking whether timespec_sub() is available... " >&6; } | |
86933a6e BB |
12928 | |
12929 | ||
dbe561d8 | 12930 | cat confdefs.h - <<_ACEOF >conftest.c |
86933a6e BB |
12931 | /* confdefs.h. */ |
12932 | _ACEOF | |
12933 | cat confdefs.h >>conftest.$ac_ext | |
12934 | cat >>conftest.$ac_ext <<_ACEOF | |
12935 | /* end confdefs.h. */ | |
12936 | ||
12937 | ||
12938 | #include <linux/time.h> | |
12939 | ||
12940 | int | |
12941 | main (void) | |
12942 | { | |
12943 | ||
12944 | struct timespec a, b, c = { 0 }; | |
12945 | c = timespec_sub(a, b); | |
12946 | ||
12947 | ; | |
12948 | return 0; | |
12949 | } | |
12950 | ||
12951 | _ACEOF | |
12952 | ||
12953 | ||
12954 | rm -Rf build && mkdir -p build | |
12955 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 12956 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
86933a6e BB |
12957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12958 | (eval $ac_try) 2>&5 | |
12959 | ac_status=$? | |
8934764e | 12960 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
12961 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
12962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12963 | (eval $ac_try) 2>&5 | |
12964 | ac_status=$? | |
8934764e | 12965 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
12966 | (exit $ac_status); }; }; then |
12967 | ||
8934764e BB |
12968 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
12969 | $as_echo "yes" >&6; } | |
86933a6e BB |
12970 | |
12971 | cat >>confdefs.h <<\_ACEOF | |
12972 | #define HAVE_TIMESPEC_SUB 1 | |
12973 | _ACEOF | |
12974 | ||
12975 | ||
12976 | else | |
8934764e | 12977 | $as_echo "$as_me: failed program was:" >&5 |
86933a6e BB |
12978 | sed 's/^/| /' conftest.$ac_ext >&5 |
12979 | ||
8934764e BB |
12980 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12981 | $as_echo "no" >&6; } | |
86933a6e BB |
12982 | |
12983 | ||
12984 | ||
12985 | fi | |
12986 | ||
12987 | rm -Rf build | |
12988 | ||
12989 | ||
12990 | ||
12991 | ||
8934764e BB |
12992 | { $as_echo "$as_me:$LINENO: checking whether init_utsname() is available" >&5 |
12993 | $as_echo_n "checking whether init_utsname() is available... " >&6; } | |
86933a6e BB |
12994 | |
12995 | ||
dbe561d8 | 12996 | cat confdefs.h - <<_ACEOF >conftest.c |
86933a6e BB |
12997 | /* confdefs.h. */ |
12998 | _ACEOF | |
12999 | cat confdefs.h >>conftest.$ac_ext | |
13000 | cat >>conftest.$ac_ext <<_ACEOF | |
13001 | /* end confdefs.h. */ | |
13002 | ||
13003 | ||
13004 | #include <linux/utsname.h> | |
13005 | ||
13006 | int | |
13007 | main (void) | |
13008 | { | |
13009 | ||
13010 | struct new_utsname *a = init_utsname(); | |
13011 | ||
13012 | ; | |
13013 | return 0; | |
13014 | } | |
13015 | ||
13016 | _ACEOF | |
13017 | ||
13018 | ||
13019 | rm -Rf build && mkdir -p build | |
13020 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 13021 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
86933a6e BB |
13022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13023 | (eval $ac_try) 2>&5 | |
13024 | ac_status=$? | |
8934764e | 13025 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
13026 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
13027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13028 | (eval $ac_try) 2>&5 | |
13029 | ac_status=$? | |
8934764e | 13030 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
13031 | (exit $ac_status); }; }; then |
13032 | ||
8934764e BB |
13033 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
13034 | $as_echo "yes" >&6; } | |
86933a6e BB |
13035 | |
13036 | cat >>confdefs.h <<\_ACEOF | |
13037 | #define HAVE_INIT_UTSNAME 1 | |
13038 | _ACEOF | |
13039 | ||
13040 | ||
13041 | else | |
8934764e | 13042 | $as_echo "$as_me: failed program was:" >&5 |
86933a6e BB |
13043 | sed 's/^/| /' conftest.$ac_ext >&5 |
13044 | ||
8934764e BB |
13045 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
13046 | $as_echo "no" >&6; } | |
86933a6e BB |
13047 | |
13048 | ||
13049 | ||
13050 | fi | |
13051 | ||
13052 | rm -Rf build | |
13053 | ||
13054 | ||
13055 | ||
13056 | ||
8934764e BB |
13057 | { $as_echo "$as_me:$LINENO: checking whether header linux/fdtable.h exists" >&5 |
13058 | $as_echo_n "checking whether header linux/fdtable.h exists... " >&6; } | |
86933a6e BB |
13059 | |
13060 | ||
dbe561d8 | 13061 | cat confdefs.h - <<_ACEOF >conftest.c |
86933a6e BB |
13062 | /* confdefs.h. */ |
13063 | _ACEOF | |
13064 | cat confdefs.h >>conftest.$ac_ext | |
13065 | cat >>conftest.$ac_ext <<_ACEOF | |
13066 | /* end confdefs.h. */ | |
13067 | ||
13068 | ||
13069 | #include <linux/fdtable.h> | |
13070 | ||
13071 | int | |
13072 | main (void) | |
13073 | { | |
13074 | ||
13075 | return 0; | |
13076 | ||
13077 | ; | |
13078 | return 0; | |
13079 | } | |
13080 | ||
13081 | _ACEOF | |
13082 | ||
13083 | ||
13084 | rm -Rf build && mkdir -p build | |
13085 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 13086 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
86933a6e BB |
13087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13088 | (eval $ac_try) 2>&5 | |
13089 | ac_status=$? | |
8934764e | 13090 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
13091 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
13092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13093 | (eval $ac_try) 2>&5 | |
13094 | ac_status=$? | |
8934764e | 13095 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
13096 | (exit $ac_status); }; }; then |
13097 | ||
13098 | ||
13099 | cat >>confdefs.h <<\_ACEOF | |
13100 | #define HAVE_FDTABLE_HEADER 1 | |
13101 | _ACEOF | |
13102 | ||
8934764e BB |
13103 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
13104 | $as_echo "yes" >&6; } | |
86933a6e BB |
13105 | |
13106 | ||
13107 | else | |
8934764e | 13108 | $as_echo "$as_me: failed program was:" >&5 |
86933a6e BB |
13109 | sed 's/^/| /' conftest.$ac_ext >&5 |
13110 | ||
8934764e BB |
13111 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
13112 | $as_echo "no" >&6; } | |
86933a6e BB |
13113 | |
13114 | ||
13115 | ||
13116 | ||
13117 | fi | |
13118 | ||
13119 | rm -Rf build | |
13120 | ||
13121 | ||
13122 | ||
13123 | ||
13124 | ||
8934764e BB |
13125 | { $as_echo "$as_me:$LINENO: checking whether files_fdtable() is available" >&5 |
13126 | $as_echo_n "checking whether files_fdtable() is available... " >&6; } | |
86933a6e BB |
13127 | |
13128 | ||
dbe561d8 | 13129 | cat confdefs.h - <<_ACEOF >conftest.c |
86933a6e BB |
13130 | /* confdefs.h. */ |
13131 | _ACEOF | |
13132 | cat confdefs.h >>conftest.$ac_ext | |
13133 | cat >>conftest.$ac_ext <<_ACEOF | |
13134 | /* end confdefs.h. */ | |
13135 | ||
13136 | ||
13137 | #include <linux/sched.h> | |
13138 | #include <linux/file.h> | |
13139 | #ifdef HAVE_FDTABLE_HEADER | |
13140 | #include <linux/fdtable.h> | |
13141 | #endif | |
13142 | ||
13143 | int | |
13144 | main (void) | |
13145 | { | |
13146 | ||
13147 | struct files_struct *files = current->files; | |
13148 | struct fdtable *fdt = files_fdtable(files); | |
13149 | ||
13150 | ; | |
13151 | return 0; | |
13152 | } | |
13153 | ||
13154 | _ACEOF | |
13155 | ||
13156 | ||
13157 | rm -Rf build && mkdir -p build | |
13158 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 13159 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
86933a6e BB |
13160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13161 | (eval $ac_try) 2>&5 | |
13162 | ac_status=$? | |
8934764e | 13163 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
13164 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
13165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13166 | (eval $ac_try) 2>&5 | |
13167 | ac_status=$? | |
8934764e | 13168 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
13169 | (exit $ac_status); }; }; then |
13170 | ||
8934764e BB |
13171 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
13172 | $as_echo "yes" >&6; } | |
86933a6e BB |
13173 | |
13174 | cat >>confdefs.h <<\_ACEOF | |
13175 | #define HAVE_FILES_FDTABLE 1 | |
13176 | _ACEOF | |
13177 | ||
13178 | ||
13179 | else | |
8934764e | 13180 | $as_echo "$as_me: failed program was:" >&5 |
86933a6e BB |
13181 | sed 's/^/| /' conftest.$ac_ext >&5 |
13182 | ||
8934764e BB |
13183 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
13184 | $as_echo "no" >&6; } | |
86933a6e BB |
13185 | |
13186 | ||
13187 | ||
13188 | fi | |
13189 | ||
13190 | rm -Rf build | |
13191 | ||
13192 | ||
13193 | ||
13194 | ||
8934764e BB |
13195 | { $as_echo "$as_me:$LINENO: checking whether header linux/uaccess.h exists" >&5 |
13196 | $as_echo_n "checking whether header linux/uaccess.h exists... " >&6; } | |
86933a6e BB |
13197 | |
13198 | ||
dbe561d8 | 13199 | cat confdefs.h - <<_ACEOF >conftest.c |
86933a6e BB |
13200 | /* confdefs.h. */ |
13201 | _ACEOF | |
13202 | cat confdefs.h >>conftest.$ac_ext | |
13203 | cat >>conftest.$ac_ext <<_ACEOF | |
13204 | /* end confdefs.h. */ | |
13205 | ||
13206 | ||
13207 | #include <linux/uaccess.h> | |
13208 | ||
13209 | int | |
13210 | main (void) | |
13211 | { | |
13212 | ||
13213 | return 0; | |
13214 | ||
13215 | ; | |
13216 | return 0; | |
13217 | } | |
13218 | ||
13219 | _ACEOF | |
13220 | ||
13221 | ||
13222 | rm -Rf build && mkdir -p build | |
13223 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 13224 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
86933a6e BB |
13225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13226 | (eval $ac_try) 2>&5 | |
13227 | ac_status=$? | |
8934764e | 13228 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
13229 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
13230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13231 | (eval $ac_try) 2>&5 | |
13232 | ac_status=$? | |
8934764e | 13233 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
13234 | (exit $ac_status); }; }; then |
13235 | ||
13236 | ||
13237 | cat >>confdefs.h <<\_ACEOF | |
13238 | #define HAVE_UACCESS_HEADER 1 | |
13239 | _ACEOF | |
13240 | ||
8934764e BB |
13241 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
13242 | $as_echo "yes" >&6; } | |
86933a6e BB |
13243 | |
13244 | ||
13245 | else | |
8934764e | 13246 | $as_echo "$as_me: failed program was:" >&5 |
86933a6e BB |
13247 | sed 's/^/| /' conftest.$ac_ext >&5 |
13248 | ||
8934764e BB |
13249 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
13250 | $as_echo "no" >&6; } | |
86933a6e BB |
13251 | |
13252 | ||
13253 | ||
13254 | ||
13255 | fi | |
13256 | ||
13257 | rm -Rf build | |
13258 | ||
13259 | ||
13260 | ||
13261 | ||
13262 | ||
8934764e BB |
13263 | { $as_echo "$as_me:$LINENO: checking whether kmalloc_node() is available" >&5 |
13264 | $as_echo_n "checking whether kmalloc_node() is available... " >&6; } | |
86933a6e BB |
13265 | |
13266 | ||
dbe561d8 | 13267 | cat confdefs.h - <<_ACEOF >conftest.c |
86933a6e BB |
13268 | /* confdefs.h. */ |
13269 | _ACEOF | |
13270 | cat confdefs.h >>conftest.$ac_ext | |
13271 | cat >>conftest.$ac_ext <<_ACEOF | |
13272 | /* end confdefs.h. */ | |
13273 | ||
13274 | ||
13275 | #include <linux/slab.h> | |
13276 | ||
13277 | int | |
13278 | main (void) | |
13279 | { | |
13280 | ||
13281 | void *a = kmalloc_node(1, GFP_KERNEL, 0); | |
13282 | ||
13283 | ; | |
13284 | return 0; | |
13285 | } | |
13286 | ||
13287 | _ACEOF | |
13288 | ||
13289 | ||
13290 | rm -Rf build && mkdir -p build | |
13291 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 13292 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
86933a6e BB |
13293 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13294 | (eval $ac_try) 2>&5 | |
13295 | ac_status=$? | |
8934764e | 13296 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
13297 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
13298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13299 | (eval $ac_try) 2>&5 | |
13300 | ac_status=$? | |
8934764e | 13301 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
13302 | (exit $ac_status); }; }; then |
13303 | ||
8934764e BB |
13304 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
13305 | $as_echo "yes" >&6; } | |
86933a6e BB |
13306 | |
13307 | cat >>confdefs.h <<\_ACEOF | |
13308 | #define HAVE_KMALLOC_NODE 1 | |
13309 | _ACEOF | |
13310 | ||
13311 | ||
13312 | else | |
8934764e | 13313 | $as_echo "$as_me: failed program was:" >&5 |
86933a6e BB |
13314 | sed 's/^/| /' conftest.$ac_ext >&5 |
13315 | ||
8934764e BB |
13316 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
13317 | $as_echo "no" >&6; } | |
86933a6e BB |
13318 | |
13319 | ||
13320 | ||
13321 | fi | |
13322 | ||
13323 | rm -Rf build | |
13324 | ||
13325 | ||
13326 | ||
13327 | ||
8934764e BB |
13328 | { $as_echo "$as_me:$LINENO: checking whether symbol monotonic_clock is exported" >&5 |
13329 | $as_echo_n "checking whether symbol monotonic_clock is exported... " >&6; } | |
86933a6e BB |
13330 | grep -q -E '[[:space:]]monotonic_clock[[:space:]]' \ |
13331 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
13332 | rc=$? | |
13333 | if test $rc -ne 0; then | |
13334 | export=0 | |
13335 | for file in ; do | |
13336 | grep -q -E "EXPORT_SYMBOL.*(monotonic_clock)" \ | |
13337 | "$LINUX_OBJ/$file" 2>/dev/null | |
13338 | rc=$? | |
13339 | if test $rc -eq 0; then | |
13340 | export=1 | |
13341 | break; | |
13342 | fi | |
13343 | done | |
13344 | if test $export -eq 0; then | |
8934764e BB |
13345 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
13346 | $as_echo "no" >&6; } | |
86933a6e BB |
13347 | |
13348 | else | |
8934764e BB |
13349 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
13350 | $as_echo "yes" >&6; } | |
86933a6e BB |
13351 | |
13352 | cat >>confdefs.h <<\_ACEOF | |
13353 | #define HAVE_MONOTONIC_CLOCK 1 | |
13354 | _ACEOF | |
13355 | ||
13356 | fi | |
13357 | else | |
8934764e BB |
13358 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
13359 | $as_echo "yes" >&6; } | |
86933a6e BB |
13360 | |
13361 | cat >>confdefs.h <<\_ACEOF | |
13362 | #define HAVE_MONOTONIC_CLOCK 1 | |
13363 | _ACEOF | |
13364 | ||
13365 | fi | |
13366 | ||
13367 | ||
13368 | ||
8934764e BB |
13369 | { $as_echo "$as_me:$LINENO: checking whether struct inode has i_mutex" >&5 |
13370 | $as_echo_n "checking whether struct inode has i_mutex... " >&6; } | |
86933a6e BB |
13371 | |
13372 | ||
dbe561d8 | 13373 | cat confdefs.h - <<_ACEOF >conftest.c |
86933a6e BB |
13374 | /* confdefs.h. */ |
13375 | _ACEOF | |
13376 | cat confdefs.h >>conftest.$ac_ext | |
13377 | cat >>conftest.$ac_ext <<_ACEOF | |
13378 | /* end confdefs.h. */ | |
13379 | ||
13380 | ||
13381 | #include <linux/fs.h> | |
13382 | #include <linux/mutex.h> | |
13383 | ||
13384 | int | |
13385 | main (void) | |
13386 | { | |
13387 | ||
13388 | struct inode i; | |
13389 | mutex_init(&i.i_mutex); | |
13390 | ||
13391 | ; | |
13392 | return 0; | |
13393 | } | |
13394 | ||
13395 | _ACEOF | |
13396 | ||
13397 | ||
13398 | rm -Rf build && mkdir -p build | |
13399 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 13400 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
86933a6e BB |
13401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13402 | (eval $ac_try) 2>&5 | |
13403 | ac_status=$? | |
8934764e | 13404 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
13405 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
13406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13407 | (eval $ac_try) 2>&5 | |
13408 | ac_status=$? | |
8934764e | 13409 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
13410 | (exit $ac_status); }; }; then |
13411 | ||
8934764e BB |
13412 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
13413 | $as_echo "yes" >&6; } | |
86933a6e BB |
13414 | |
13415 | cat >>confdefs.h <<\_ACEOF | |
13416 | #define HAVE_INODE_I_MUTEX 1 | |
13417 | _ACEOF | |
13418 | ||
13419 | ||
13420 | else | |
8934764e | 13421 | $as_echo "$as_me: failed program was:" >&5 |
86933a6e BB |
13422 | sed 's/^/| /' conftest.$ac_ext >&5 |
13423 | ||
8934764e BB |
13424 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
13425 | $as_echo "no" >&6; } | |
86933a6e BB |
13426 | |
13427 | ||
13428 | ||
13429 | fi | |
13430 | ||
13431 | rm -Rf build | |
13432 | ||
13433 | ||
13434 | ||
13435 | ||
8934764e BB |
13436 | { $as_echo "$as_me:$LINENO: checking whether struct mutex has owner" >&5 |
13437 | $as_echo_n "checking whether struct mutex has owner... " >&6; } | |
4d54fdee BB |
13438 | |
13439 | ||
dbe561d8 | 13440 | cat confdefs.h - <<_ACEOF >conftest.c |
4d54fdee BB |
13441 | /* confdefs.h. */ |
13442 | _ACEOF | |
13443 | cat confdefs.h >>conftest.$ac_ext | |
13444 | cat >>conftest.$ac_ext <<_ACEOF | |
13445 | /* end confdefs.h. */ | |
13446 | ||
13447 | ||
13448 | #include <linux/mutex.h> | |
13449 | ||
13450 | int | |
13451 | main (void) | |
13452 | { | |
13453 | ||
13454 | struct mutex mtx; | |
13455 | mtx.owner = NULL; | |
13456 | ||
13457 | ; | |
13458 | return 0; | |
13459 | } | |
13460 | ||
13461 | _ACEOF | |
13462 | ||
13463 | ||
13464 | rm -Rf build && mkdir -p build | |
13465 | echo "obj-m := conftest.o" >build/Makefile | |
13466 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
13467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13468 | (eval $ac_try) 2>&5 | |
13469 | ac_status=$? | |
8934764e | 13470 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4d54fdee BB |
13471 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
13472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13473 | (eval $ac_try) 2>&5 | |
13474 | ac_status=$? | |
8934764e | 13475 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4d54fdee BB |
13476 | (exit $ac_status); }; }; then |
13477 | ||
8934764e BB |
13478 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
13479 | $as_echo "yes" >&6; } | |
4d54fdee BB |
13480 | |
13481 | cat >>confdefs.h <<\_ACEOF | |
13482 | #define HAVE_MUTEX_OWNER 1 | |
13483 | _ACEOF | |
13484 | ||
13485 | ||
13486 | else | |
8934764e | 13487 | $as_echo "$as_me: failed program was:" >&5 |
4d54fdee BB |
13488 | sed 's/^/| /' conftest.$ac_ext >&5 |
13489 | ||
8934764e BB |
13490 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
13491 | $as_echo "no" >&6; } | |
4d54fdee BB |
13492 | |
13493 | ||
13494 | ||
13495 | fi | |
13496 | ||
13497 | rm -Rf build | |
13498 | ||
13499 | ||
13500 | ||
13501 | ||
8934764e BB |
13502 | { $as_echo "$as_me:$LINENO: checking whether mutex_lock_nested() is available" >&5 |
13503 | $as_echo_n "checking whether mutex_lock_nested() is available... " >&6; } | |
86933a6e BB |
13504 | |
13505 | ||
dbe561d8 | 13506 | cat confdefs.h - <<_ACEOF >conftest.c |
86933a6e BB |
13507 | /* confdefs.h. */ |
13508 | _ACEOF | |
13509 | cat confdefs.h >>conftest.$ac_ext | |
13510 | cat >>conftest.$ac_ext <<_ACEOF | |
13511 | /* end confdefs.h. */ | |
13512 | ||
13513 | ||
13514 | #include <linux/mutex.h> | |
13515 | ||
13516 | int | |
13517 | main (void) | |
13518 | { | |
13519 | ||
13520 | struct mutex mutex; | |
13521 | mutex_init(&mutex); | |
13522 | mutex_lock_nested(&mutex, 0); | |
13523 | ||
13524 | ; | |
13525 | return 0; | |
13526 | } | |
13527 | ||
13528 | _ACEOF | |
13529 | ||
13530 | ||
13531 | rm -Rf build && mkdir -p build | |
13532 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 13533 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
86933a6e BB |
13534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13535 | (eval $ac_try) 2>&5 | |
13536 | ac_status=$? | |
8934764e | 13537 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
13538 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
13539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13540 | (eval $ac_try) 2>&5 | |
13541 | ac_status=$? | |
8934764e | 13542 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
13543 | (exit $ac_status); }; }; then |
13544 | ||
8934764e BB |
13545 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
13546 | $as_echo "yes" >&6; } | |
86933a6e BB |
13547 | |
13548 | cat >>confdefs.h <<\_ACEOF | |
13549 | #define HAVE_MUTEX_LOCK_NESTED 1 | |
13550 | _ACEOF | |
13551 | ||
13552 | ||
13553 | else | |
8934764e | 13554 | $as_echo "$as_me: failed program was:" >&5 |
86933a6e BB |
13555 | sed 's/^/| /' conftest.$ac_ext >&5 |
13556 | ||
8934764e BB |
13557 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
13558 | $as_echo "no" >&6; } | |
86933a6e BB |
13559 | |
13560 | ||
13561 | ||
13562 | fi | |
13563 | ||
13564 | rm -Rf build | |
13565 | ||
13566 | ||
13567 | ||
13568 | ||
8934764e BB |
13569 | { $as_echo "$as_me:$LINENO: checking whether on_each_cpu() wants 3 args" >&5 |
13570 | $as_echo_n "checking whether on_each_cpu() wants 3 args... " >&6; } | |
86933a6e BB |
13571 | |
13572 | ||
dbe561d8 | 13573 | cat confdefs.h - <<_ACEOF >conftest.c |
86933a6e BB |
13574 | /* confdefs.h. */ |
13575 | _ACEOF | |
13576 | cat confdefs.h >>conftest.$ac_ext | |
13577 | cat >>conftest.$ac_ext <<_ACEOF | |
13578 | /* end confdefs.h. */ | |
13579 | ||
13580 | ||
13581 | #include <linux/smp.h> | |
13582 | ||
13583 | int | |
13584 | main (void) | |
13585 | { | |
13586 | ||
13587 | on_each_cpu(NULL, NULL, 0); | |
13588 | ||
13589 | ; | |
13590 | return 0; | |
13591 | } | |
13592 | ||
13593 | _ACEOF | |
13594 | ||
13595 | ||
13596 | rm -Rf build && mkdir -p build | |
13597 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 13598 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
86933a6e BB |
13599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13600 | (eval $ac_try) 2>&5 | |
13601 | ac_status=$? | |
8934764e | 13602 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
13603 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
13604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13605 | (eval $ac_try) 2>&5 | |
13606 | ac_status=$? | |
8934764e | 13607 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
13608 | (exit $ac_status); }; }; then |
13609 | ||
8934764e BB |
13610 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
13611 | $as_echo "yes" >&6; } | |
86933a6e BB |
13612 | |
13613 | cat >>confdefs.h <<\_ACEOF | |
13614 | #define HAVE_3ARGS_ON_EACH_CPU 1 | |
13615 | _ACEOF | |
13616 | ||
13617 | ||
13618 | else | |
8934764e | 13619 | $as_echo "$as_me: failed program was:" >&5 |
86933a6e BB |
13620 | sed 's/^/| /' conftest.$ac_ext >&5 |
13621 | ||
8934764e BB |
13622 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
13623 | $as_echo "no" >&6; } | |
86933a6e BB |
13624 | |
13625 | ||
13626 | ||
13627 | fi | |
13628 | ||
13629 | rm -Rf build | |
13630 | ||
13631 | ||
13632 | ||
13633 | ||
8934764e BB |
13634 | { $as_echo "$as_me:$LINENO: checking whether symbol kallsyms_lookup_name is exported" >&5 |
13635 | $as_echo_n "checking whether symbol kallsyms_lookup_name is exported... " >&6; } | |
86933a6e BB |
13636 | grep -q -E '[[:space:]]kallsyms_lookup_name[[:space:]]' \ |
13637 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
13638 | rc=$? | |
13639 | if test $rc -ne 0; then | |
13640 | export=0 | |
13641 | for file in ; do | |
13642 | grep -q -E "EXPORT_SYMBOL.*(kallsyms_lookup_name)" \ | |
13643 | "$LINUX_OBJ/$file" 2>/dev/null | |
13644 | rc=$? | |
13645 | if test $rc -eq 0; then | |
13646 | export=1 | |
13647 | break; | |
13648 | fi | |
13649 | done | |
13650 | if test $export -eq 0; then | |
8934764e BB |
13651 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
13652 | $as_echo "no" >&6; } | |
86933a6e BB |
13653 | |
13654 | else | |
8934764e BB |
13655 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
13656 | $as_echo "yes" >&6; } | |
86933a6e BB |
13657 | |
13658 | cat >>confdefs.h <<\_ACEOF | |
13659 | #define HAVE_KALLSYMS_LOOKUP_NAME 1 | |
13660 | _ACEOF | |
13661 | ||
13662 | fi | |
13663 | else | |
8934764e BB |
13664 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
13665 | $as_echo "yes" >&6; } | |
86933a6e BB |
13666 | |
13667 | cat >>confdefs.h <<\_ACEOF | |
13668 | #define HAVE_KALLSYMS_LOOKUP_NAME 1 | |
13669 | _ACEOF | |
13670 | ||
13671 | fi | |
13672 | ||
13673 | ||
13674 | ||
8934764e BB |
13675 | { $as_echo "$as_me:$LINENO: checking whether symbol get_vmalloc_info is exported" >&5 |
13676 | $as_echo_n "checking whether symbol get_vmalloc_info is exported... " >&6; } | |
86933a6e BB |
13677 | grep -q -E '[[:space:]]get_vmalloc_info[[:space:]]' \ |
13678 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
13679 | rc=$? | |
13680 | if test $rc -ne 0; then | |
13681 | export=0 | |
13682 | for file in ; do | |
13683 | grep -q -E "EXPORT_SYMBOL.*(get_vmalloc_info)" \ | |
13684 | "$LINUX_OBJ/$file" 2>/dev/null | |
13685 | rc=$? | |
13686 | if test $rc -eq 0; then | |
13687 | export=1 | |
13688 | break; | |
13689 | fi | |
13690 | done | |
13691 | if test $export -eq 0; then | |
8934764e BB |
13692 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
13693 | $as_echo "no" >&6; } | |
86933a6e BB |
13694 | |
13695 | else | |
8934764e BB |
13696 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
13697 | $as_echo "yes" >&6; } | |
86933a6e BB |
13698 | |
13699 | cat >>confdefs.h <<\_ACEOF | |
13700 | #define HAVE_GET_VMALLOC_INFO 1 | |
13701 | _ACEOF | |
13702 | ||
13703 | fi | |
13704 | else | |
8934764e BB |
13705 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
13706 | $as_echo "yes" >&6; } | |
86933a6e BB |
13707 | |
13708 | cat >>confdefs.h <<\_ACEOF | |
13709 | #define HAVE_GET_VMALLOC_INFO 1 | |
13710 | _ACEOF | |
13711 | ||
13712 | fi | |
13713 | ||
13714 | ||
13715 | ||
8934764e BB |
13716 | { $as_echo "$as_me:$LINENO: checking whether symbol *_pgdat exist" >&5 |
13717 | $as_echo_n "checking whether symbol *_pgdat exist... " >&6; } | |
86933a6e BB |
13718 | grep -q -E 'first_online_pgdat' $LINUX/include/linux/mmzone.h 2>/dev/null |
13719 | rc=$? | |
13720 | if test $rc -eq 0; then | |
8934764e BB |
13721 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
13722 | $as_echo "yes" >&6; } | |
86933a6e BB |
13723 | |
13724 | cat >>confdefs.h <<\_ACEOF | |
13725 | #define HAVE_PGDAT_HELPERS 1 | |
13726 | _ACEOF | |
13727 | ||
13728 | else | |
8934764e BB |
13729 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
13730 | $as_echo "no" >&6; } | |
86933a6e BB |
13731 | fi |
13732 | ||
13733 | ||
8934764e BB |
13734 | { $as_echo "$as_me:$LINENO: checking whether symbol first_online_pgdat is exported" >&5 |
13735 | $as_echo_n "checking whether symbol first_online_pgdat is exported... " >&6; } | |
86933a6e BB |
13736 | grep -q -E '[[:space:]]first_online_pgdat[[:space:]]' \ |
13737 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
13738 | rc=$? | |
13739 | if test $rc -ne 0; then | |
13740 | export=0 | |
13741 | for file in ; do | |
13742 | grep -q -E "EXPORT_SYMBOL.*(first_online_pgdat)" \ | |
13743 | "$LINUX_OBJ/$file" 2>/dev/null | |
13744 | rc=$? | |
13745 | if test $rc -eq 0; then | |
13746 | export=1 | |
13747 | break; | |
13748 | fi | |
13749 | done | |
13750 | if test $export -eq 0; then | |
8934764e BB |
13751 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
13752 | $as_echo "no" >&6; } | |
86933a6e BB |
13753 | |
13754 | else | |
8934764e BB |
13755 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
13756 | $as_echo "yes" >&6; } | |
86933a6e BB |
13757 | |
13758 | cat >>confdefs.h <<\_ACEOF | |
13759 | #define HAVE_FIRST_ONLINE_PGDAT 1 | |
13760 | _ACEOF | |
13761 | ||
13762 | fi | |
13763 | else | |
8934764e BB |
13764 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
13765 | $as_echo "yes" >&6; } | |
86933a6e BB |
13766 | |
13767 | cat >>confdefs.h <<\_ACEOF | |
13768 | #define HAVE_FIRST_ONLINE_PGDAT 1 | |
13769 | _ACEOF | |
13770 | ||
13771 | fi | |
13772 | ||
13773 | ||
13774 | ||
8934764e BB |
13775 | { $as_echo "$as_me:$LINENO: checking whether symbol next_online_pgdat is exported" >&5 |
13776 | $as_echo_n "checking whether symbol next_online_pgdat is exported... " >&6; } | |
86933a6e BB |
13777 | grep -q -E '[[:space:]]next_online_pgdat[[:space:]]' \ |
13778 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
13779 | rc=$? | |
13780 | if test $rc -ne 0; then | |
13781 | export=0 | |
13782 | for file in ; do | |
13783 | grep -q -E "EXPORT_SYMBOL.*(next_online_pgdat)" \ | |
13784 | "$LINUX_OBJ/$file" 2>/dev/null | |
13785 | rc=$? | |
13786 | if test $rc -eq 0; then | |
13787 | export=1 | |
13788 | break; | |
13789 | fi | |
13790 | done | |
13791 | if test $export -eq 0; then | |
8934764e BB |
13792 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
13793 | $as_echo "no" >&6; } | |
86933a6e BB |
13794 | |
13795 | else | |
8934764e BB |
13796 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
13797 | $as_echo "yes" >&6; } | |
86933a6e BB |
13798 | |
13799 | cat >>confdefs.h <<\_ACEOF | |
13800 | #define HAVE_NEXT_ONLINE_PGDAT 1 | |
13801 | _ACEOF | |
13802 | ||
13803 | fi | |
13804 | else | |
8934764e BB |
13805 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
13806 | $as_echo "yes" >&6; } | |
86933a6e BB |
13807 | |
13808 | cat >>confdefs.h <<\_ACEOF | |
13809 | #define HAVE_NEXT_ONLINE_PGDAT 1 | |
13810 | _ACEOF | |
13811 | ||
13812 | fi | |
13813 | ||
13814 | ||
13815 | ||
8934764e BB |
13816 | { $as_echo "$as_me:$LINENO: checking whether symbol next_zone is exported" >&5 |
13817 | $as_echo_n "checking whether symbol next_zone is exported... " >&6; } | |
86933a6e BB |
13818 | grep -q -E '[[:space:]]next_zone[[:space:]]' \ |
13819 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
13820 | rc=$? | |
13821 | if test $rc -ne 0; then | |
13822 | export=0 | |
13823 | for file in ; do | |
13824 | grep -q -E "EXPORT_SYMBOL.*(next_zone)" \ | |
13825 | "$LINUX_OBJ/$file" 2>/dev/null | |
13826 | rc=$? | |
13827 | if test $rc -eq 0; then | |
13828 | export=1 | |
13829 | break; | |
13830 | fi | |
13831 | done | |
13832 | if test $export -eq 0; then | |
8934764e BB |
13833 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
13834 | $as_echo "no" >&6; } | |
86933a6e BB |
13835 | |
13836 | else | |
8934764e BB |
13837 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
13838 | $as_echo "yes" >&6; } | |
86933a6e BB |
13839 | |
13840 | cat >>confdefs.h <<\_ACEOF | |
13841 | #define HAVE_NEXT_ZONE 1 | |
13842 | _ACEOF | |
13843 | ||
13844 | fi | |
13845 | else | |
8934764e BB |
13846 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
13847 | $as_echo "yes" >&6; } | |
86933a6e BB |
13848 | |
13849 | cat >>confdefs.h <<\_ACEOF | |
13850 | #define HAVE_NEXT_ZONE 1 | |
13851 | _ACEOF | |
13852 | ||
13853 | fi | |
13854 | ||
13855 | ||
13856 | ||
8934764e BB |
13857 | { $as_echo "$as_me:$LINENO: checking whether symbol pgdat_list is exported" >&5 |
13858 | $as_echo_n "checking whether symbol pgdat_list is exported... " >&6; } | |
86933a6e BB |
13859 | grep -q -E '[[:space:]]pgdat_list[[:space:]]' \ |
13860 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
13861 | rc=$? | |
13862 | if test $rc -ne 0; then | |
13863 | export=0 | |
13864 | for file in ; do | |
13865 | grep -q -E "EXPORT_SYMBOL.*(pgdat_list)" \ | |
13866 | "$LINUX_OBJ/$file" 2>/dev/null | |
13867 | rc=$? | |
13868 | if test $rc -eq 0; then | |
13869 | export=1 | |
13870 | break; | |
13871 | fi | |
13872 | done | |
13873 | if test $export -eq 0; then | |
8934764e BB |
13874 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
13875 | $as_echo "no" >&6; } | |
86933a6e BB |
13876 | |
13877 | else | |
8934764e BB |
13878 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
13879 | $as_echo "yes" >&6; } | |
86933a6e BB |
13880 | |
13881 | cat >>confdefs.h <<\_ACEOF | |
13882 | #define HAVE_PGDAT_LIST 1 | |
13883 | _ACEOF | |
13884 | ||
13885 | fi | |
13886 | else | |
8934764e BB |
13887 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
13888 | $as_echo "yes" >&6; } | |
86933a6e BB |
13889 | |
13890 | cat >>confdefs.h <<\_ACEOF | |
13891 | #define HAVE_PGDAT_LIST 1 | |
13892 | _ACEOF | |
13893 | ||
13894 | fi | |
13895 | ||
13896 | ||
13897 | ||
8934764e BB |
13898 | { $as_echo "$as_me:$LINENO: checking whether global_page_state() is available" >&5 |
13899 | $as_echo_n "checking whether global_page_state() is available... " >&6; } | |
86933a6e | 13900 | |
86933a6e | 13901 | |
dbe561d8 | 13902 | cat confdefs.h - <<_ACEOF >conftest.c |
6ae7fef5 | 13903 | /* confdefs.h. */ |
86933a6e | 13904 | _ACEOF |
6ae7fef5 BB |
13905 | cat confdefs.h >>conftest.$ac_ext |
13906 | cat >>conftest.$ac_ext <<_ACEOF | |
13907 | /* end confdefs.h. */ | |
13908 | ||
13909 | ||
13910 | #include <linux/mm.h> | |
13911 | ||
13912 | int | |
13913 | main (void) | |
13914 | { | |
13915 | ||
13916 | unsigned long state; | |
13917 | state = global_page_state(0); | |
13918 | ||
13919 | ; | |
13920 | return 0; | |
13921 | } | |
13922 | ||
13923 | _ACEOF | |
13924 | ||
13925 | ||
13926 | rm -Rf build && mkdir -p build | |
13927 | echo "obj-m := conftest.o" >build/Makefile | |
13928 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
13929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13930 | (eval $ac_try) 2>&5 | |
13931 | ac_status=$? | |
8934764e | 13932 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6ae7fef5 BB |
13933 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
13934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13935 | (eval $ac_try) 2>&5 | |
13936 | ac_status=$? | |
8934764e | 13937 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6ae7fef5 | 13938 | (exit $ac_status); }; }; then |
86933a6e | 13939 | |
8934764e BB |
13940 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
13941 | $as_echo "yes" >&6; } | |
86933a6e BB |
13942 | |
13943 | cat >>confdefs.h <<\_ACEOF | |
6ae7fef5 | 13944 | #define HAVE_GLOBAL_PAGE_STATE 1 |
86933a6e BB |
13945 | _ACEOF |
13946 | ||
6ae7fef5 BB |
13947 | |
13948 | else | |
8934764e | 13949 | $as_echo "$as_me: failed program was:" >&5 |
6ae7fef5 BB |
13950 | sed 's/^/| /' conftest.$ac_ext >&5 |
13951 | ||
8934764e BB |
13952 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
13953 | $as_echo "no" >&6; } | |
6ae7fef5 BB |
13954 | |
13955 | ||
13956 | ||
13957 | fi | |
13958 | ||
13959 | rm -Rf build | |
86933a6e BB |
13960 | |
13961 | ||
13962 | ||
6ae7fef5 | 13963 | |
8934764e BB |
13964 | { $as_echo "$as_me:$LINENO: checking whether page state NR_FREE_PAGES is available" >&5 |
13965 | $as_echo_n "checking whether page state NR_FREE_PAGES is available... " >&6; } | |
86933a6e BB |
13966 | |
13967 | ||
dbe561d8 | 13968 | cat confdefs.h - <<_ACEOF >conftest.c |
86933a6e BB |
13969 | /* confdefs.h. */ |
13970 | _ACEOF | |
13971 | cat confdefs.h >>conftest.$ac_ext | |
13972 | cat >>conftest.$ac_ext <<_ACEOF | |
13973 | /* end confdefs.h. */ | |
13974 | ||
13975 | ||
6ae7fef5 | 13976 | #include <linux/mm.h> |
86933a6e BB |
13977 | |
13978 | int | |
13979 | main (void) | |
13980 | { | |
13981 | ||
6ae7fef5 BB |
13982 | enum zone_stat_item zsi; |
13983 | zsi = NR_FREE_PAGES; | |
86933a6e BB |
13984 | |
13985 | ; | |
13986 | return 0; | |
13987 | } | |
13988 | ||
13989 | _ACEOF | |
13990 | ||
13991 | ||
13992 | rm -Rf build && mkdir -p build | |
13993 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 13994 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
86933a6e BB |
13995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13996 | (eval $ac_try) 2>&5 | |
13997 | ac_status=$? | |
8934764e | 13998 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
13999 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
14000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14001 | (eval $ac_try) 2>&5 | |
14002 | ac_status=$? | |
8934764e | 14003 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
14004 | (exit $ac_status); }; }; then |
14005 | ||
8934764e BB |
14006 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
14007 | $as_echo "yes" >&6; } | |
86933a6e BB |
14008 | |
14009 | cat >>confdefs.h <<\_ACEOF | |
6ae7fef5 | 14010 | #define HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES 1 |
86933a6e BB |
14011 | _ACEOF |
14012 | ||
14013 | ||
14014 | else | |
8934764e | 14015 | $as_echo "$as_me: failed program was:" >&5 |
86933a6e BB |
14016 | sed 's/^/| /' conftest.$ac_ext >&5 |
14017 | ||
8934764e BB |
14018 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
14019 | $as_echo "no" >&6; } | |
86933a6e BB |
14020 | |
14021 | ||
14022 | ||
14023 | fi | |
14024 | ||
14025 | rm -Rf build | |
14026 | ||
14027 | ||
14028 | ||
14029 | ||
8934764e BB |
14030 | { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE is available" >&5 |
14031 | $as_echo_n "checking whether page state NR_INACTIVE is available... " >&6; } | |
86933a6e BB |
14032 | |
14033 | ||
dbe561d8 | 14034 | cat confdefs.h - <<_ACEOF >conftest.c |
86933a6e BB |
14035 | /* confdefs.h. */ |
14036 | _ACEOF | |
14037 | cat confdefs.h >>conftest.$ac_ext | |
14038 | cat >>conftest.$ac_ext <<_ACEOF | |
14039 | /* end confdefs.h. */ | |
14040 | ||
14041 | ||
6ae7fef5 | 14042 | #include <linux/mm.h> |
86933a6e BB |
14043 | |
14044 | int | |
14045 | main (void) | |
14046 | { | |
14047 | ||
6ae7fef5 BB |
14048 | enum zone_stat_item zsi; |
14049 | zsi = NR_INACTIVE; | |
86933a6e BB |
14050 | |
14051 | ; | |
14052 | return 0; | |
14053 | } | |
14054 | ||
14055 | _ACEOF | |
14056 | ||
14057 | ||
14058 | rm -Rf build && mkdir -p build | |
14059 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 14060 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
86933a6e BB |
14061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14062 | (eval $ac_try) 2>&5 | |
14063 | ac_status=$? | |
8934764e | 14064 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
14065 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
14066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14067 | (eval $ac_try) 2>&5 | |
14068 | ac_status=$? | |
8934764e | 14069 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
14070 | (exit $ac_status); }; }; then |
14071 | ||
8934764e BB |
14072 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
14073 | $as_echo "yes" >&6; } | |
86933a6e BB |
14074 | |
14075 | cat >>confdefs.h <<\_ACEOF | |
6ae7fef5 | 14076 | #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE 1 |
86933a6e BB |
14077 | _ACEOF |
14078 | ||
14079 | ||
14080 | else | |
8934764e | 14081 | $as_echo "$as_me: failed program was:" >&5 |
86933a6e BB |
14082 | sed 's/^/| /' conftest.$ac_ext >&5 |
14083 | ||
8934764e BB |
14084 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
14085 | $as_echo "no" >&6; } | |
86933a6e BB |
14086 | |
14087 | ||
14088 | ||
14089 | fi | |
14090 | ||
14091 | rm -Rf build | |
14092 | ||
14093 | ||
14094 | ||
8934764e BB |
14095 | { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_ANON is available" >&5 |
14096 | $as_echo_n "checking whether page state NR_INACTIVE_ANON is available... " >&6; } | |
86933a6e BB |
14097 | |
14098 | ||
dbe561d8 | 14099 | cat confdefs.h - <<_ACEOF >conftest.c |
86933a6e BB |
14100 | /* confdefs.h. */ |
14101 | _ACEOF | |
14102 | cat confdefs.h >>conftest.$ac_ext | |
14103 | cat >>conftest.$ac_ext <<_ACEOF | |
14104 | /* end confdefs.h. */ | |
14105 | ||
14106 | ||
6ae7fef5 | 14107 | #include <linux/mm.h> |
86933a6e BB |
14108 | |
14109 | int | |
14110 | main (void) | |
14111 | { | |
14112 | ||
6ae7fef5 BB |
14113 | enum zone_stat_item zsi; |
14114 | zsi = NR_INACTIVE_ANON; | |
86933a6e BB |
14115 | |
14116 | ; | |
14117 | return 0; | |
14118 | } | |
14119 | ||
14120 | _ACEOF | |
14121 | ||
14122 | ||
14123 | rm -Rf build && mkdir -p build | |
14124 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 14125 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
86933a6e BB |
14126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14127 | (eval $ac_try) 2>&5 | |
14128 | ac_status=$? | |
8934764e | 14129 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
14130 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
14131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14132 | (eval $ac_try) 2>&5 | |
14133 | ac_status=$? | |
8934764e | 14134 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
14135 | (exit $ac_status); }; }; then |
14136 | ||
8934764e BB |
14137 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
14138 | $as_echo "yes" >&6; } | |
86933a6e BB |
14139 | |
14140 | cat >>confdefs.h <<\_ACEOF | |
6ae7fef5 | 14141 | #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON 1 |
86933a6e BB |
14142 | _ACEOF |
14143 | ||
14144 | ||
14145 | else | |
8934764e | 14146 | $as_echo "$as_me: failed program was:" >&5 |
86933a6e BB |
14147 | sed 's/^/| /' conftest.$ac_ext >&5 |
14148 | ||
8934764e BB |
14149 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
14150 | $as_echo "no" >&6; } | |
86933a6e BB |
14151 | |
14152 | ||
14153 | ||
14154 | fi | |
14155 | ||
14156 | rm -Rf build | |
14157 | ||
14158 | ||
14159 | ||
8934764e BB |
14160 | { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_FILE is available" >&5 |
14161 | $as_echo_n "checking whether page state NR_INACTIVE_FILE is available... " >&6; } | |
86933a6e BB |
14162 | |
14163 | ||
dbe561d8 | 14164 | cat confdefs.h - <<_ACEOF >conftest.c |
86933a6e BB |
14165 | /* confdefs.h. */ |
14166 | _ACEOF | |
14167 | cat confdefs.h >>conftest.$ac_ext | |
14168 | cat >>conftest.$ac_ext <<_ACEOF | |
14169 | /* end confdefs.h. */ | |
14170 | ||
14171 | ||
6ae7fef5 | 14172 | #include <linux/mm.h> |
86933a6e BB |
14173 | |
14174 | int | |
14175 | main (void) | |
14176 | { | |
14177 | ||
6ae7fef5 BB |
14178 | enum zone_stat_item zsi; |
14179 | zsi = NR_INACTIVE_FILE; | |
86933a6e BB |
14180 | |
14181 | ; | |
14182 | return 0; | |
14183 | } | |
14184 | ||
14185 | _ACEOF | |
14186 | ||
14187 | ||
14188 | rm -Rf build && mkdir -p build | |
14189 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 14190 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
86933a6e BB |
14191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14192 | (eval $ac_try) 2>&5 | |
14193 | ac_status=$? | |
8934764e | 14194 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
14195 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
14196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14197 | (eval $ac_try) 2>&5 | |
14198 | ac_status=$? | |
8934764e | 14199 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
14200 | (exit $ac_status); }; }; then |
14201 | ||
8934764e BB |
14202 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
14203 | $as_echo "yes" >&6; } | |
86933a6e BB |
14204 | |
14205 | cat >>confdefs.h <<\_ACEOF | |
6ae7fef5 | 14206 | #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE 1 |
86933a6e BB |
14207 | _ACEOF |
14208 | ||
14209 | ||
14210 | else | |
8934764e | 14211 | $as_echo "$as_me: failed program was:" >&5 |
86933a6e BB |
14212 | sed 's/^/| /' conftest.$ac_ext >&5 |
14213 | ||
8934764e BB |
14214 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
14215 | $as_echo "no" >&6; } | |
86933a6e BB |
14216 | |
14217 | ||
14218 | ||
14219 | fi | |
14220 | ||
14221 | rm -Rf build | |
14222 | ||
14223 | ||
14224 | ||
ec7d53e9 | 14225 | |
8934764e BB |
14226 | { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE is available" >&5 |
14227 | $as_echo_n "checking whether page state NR_ACTIVE is available... " >&6; } | |
ec7d53e9 BB |
14228 | |
14229 | ||
dbe561d8 | 14230 | cat confdefs.h - <<_ACEOF >conftest.c |
ec7d53e9 BB |
14231 | /* confdefs.h. */ |
14232 | _ACEOF | |
14233 | cat confdefs.h >>conftest.$ac_ext | |
14234 | cat >>conftest.$ac_ext <<_ACEOF | |
14235 | /* end confdefs.h. */ | |
14236 | ||
14237 | ||
6ae7fef5 | 14238 | #include <linux/mm.h> |
ec7d53e9 BB |
14239 | |
14240 | int | |
14241 | main (void) | |
14242 | { | |
14243 | ||
6ae7fef5 BB |
14244 | enum zone_stat_item zsi; |
14245 | zsi = NR_ACTIVE; | |
ec7d53e9 BB |
14246 | |
14247 | ; | |
14248 | return 0; | |
14249 | } | |
14250 | ||
14251 | _ACEOF | |
14252 | ||
14253 | ||
14254 | rm -Rf build && mkdir -p build | |
14255 | echo "obj-m := conftest.o" >build/Makefile | |
14256 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
14257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14258 | (eval $ac_try) 2>&5 | |
14259 | ac_status=$? | |
8934764e | 14260 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ec7d53e9 BB |
14261 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
14262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14263 | (eval $ac_try) 2>&5 | |
14264 | ac_status=$? | |
8934764e | 14265 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ec7d53e9 BB |
14266 | (exit $ac_status); }; }; then |
14267 | ||
8934764e BB |
14268 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
14269 | $as_echo "yes" >&6; } | |
ec7d53e9 BB |
14270 | |
14271 | cat >>confdefs.h <<\_ACEOF | |
6ae7fef5 | 14272 | #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE 1 |
ec7d53e9 BB |
14273 | _ACEOF |
14274 | ||
14275 | ||
14276 | else | |
8934764e | 14277 | $as_echo "$as_me: failed program was:" >&5 |
ec7d53e9 BB |
14278 | sed 's/^/| /' conftest.$ac_ext >&5 |
14279 | ||
8934764e BB |
14280 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
14281 | $as_echo "no" >&6; } | |
ec7d53e9 BB |
14282 | |
14283 | ||
14284 | ||
14285 | fi | |
14286 | ||
14287 | rm -Rf build | |
14288 | ||
14289 | ||
14290 | ||
8934764e BB |
14291 | { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_ANON is available" >&5 |
14292 | $as_echo_n "checking whether page state NR_ACTIVE_ANON is available... " >&6; } | |
ec7d53e9 | 14293 | |
ec7d53e9 | 14294 | |
dbe561d8 | 14295 | cat confdefs.h - <<_ACEOF >conftest.c |
6ae7fef5 BB |
14296 | /* confdefs.h. */ |
14297 | _ACEOF | |
14298 | cat confdefs.h >>conftest.$ac_ext | |
14299 | cat >>conftest.$ac_ext <<_ACEOF | |
14300 | /* end confdefs.h. */ | |
14301 | ||
14302 | ||
14303 | #include <linux/mm.h> | |
14304 | ||
14305 | int | |
14306 | main (void) | |
14307 | { | |
14308 | ||
14309 | enum zone_stat_item zsi; | |
14310 | zsi = NR_ACTIVE_ANON; | |
14311 | ||
14312 | ; | |
14313 | return 0; | |
14314 | } | |
ec7d53e9 | 14315 | |
ec7d53e9 BB |
14316 | _ACEOF |
14317 | ||
6ae7fef5 BB |
14318 | |
14319 | rm -Rf build && mkdir -p build | |
14320 | echo "obj-m := conftest.o" >build/Makefile | |
14321 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
14322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14323 | (eval $ac_try) 2>&5 | |
14324 | ac_status=$? | |
8934764e | 14325 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6ae7fef5 BB |
14326 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
14327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14328 | (eval $ac_try) 2>&5 | |
14329 | ac_status=$? | |
8934764e | 14330 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6ae7fef5 BB |
14331 | (exit $ac_status); }; }; then |
14332 | ||
8934764e BB |
14333 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
14334 | $as_echo "yes" >&6; } | |
ec7d53e9 BB |
14335 | |
14336 | cat >>confdefs.h <<\_ACEOF | |
6ae7fef5 | 14337 | #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON 1 |
ec7d53e9 BB |
14338 | _ACEOF |
14339 | ||
ec7d53e9 | 14340 | |
6ae7fef5 | 14341 | else |
8934764e | 14342 | $as_echo "$as_me: failed program was:" >&5 |
6ae7fef5 | 14343 | sed 's/^/| /' conftest.$ac_ext >&5 |
ec7d53e9 | 14344 | |
8934764e BB |
14345 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
14346 | $as_echo "no" >&6; } | |
bf9f3bac | 14347 | |
bf9f3bac | 14348 | |
bf9f3bac | 14349 | |
6ae7fef5 | 14350 | fi |
bf9f3bac | 14351 | |
6ae7fef5 | 14352 | rm -Rf build |
bf9f3bac | 14353 | |
bf9f3bac | 14354 | |
bf9f3bac | 14355 | |
8934764e BB |
14356 | { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_FILE is available" >&5 |
14357 | $as_echo_n "checking whether page state NR_ACTIVE_FILE is available... " >&6; } | |
bf9f3bac | 14358 | |
bf9f3bac | 14359 | |
dbe561d8 | 14360 | cat confdefs.h - <<_ACEOF >conftest.c |
6ae7fef5 BB |
14361 | /* confdefs.h. */ |
14362 | _ACEOF | |
14363 | cat confdefs.h >>conftest.$ac_ext | |
14364 | cat >>conftest.$ac_ext <<_ACEOF | |
14365 | /* end confdefs.h. */ | |
bf9f3bac | 14366 | |
bf9f3bac | 14367 | |
6ae7fef5 | 14368 | #include <linux/mm.h> |
bf9f3bac | 14369 | |
6ae7fef5 BB |
14370 | int |
14371 | main (void) | |
14372 | { | |
14373 | ||
14374 | enum zone_stat_item zsi; | |
14375 | zsi = NR_ACTIVE_FILE; | |
14376 | ||
14377 | ; | |
14378 | return 0; | |
14379 | } | |
14380 | ||
14381 | _ACEOF | |
14382 | ||
14383 | ||
14384 | rm -Rf build && mkdir -p build | |
14385 | echo "obj-m := conftest.o" >build/Makefile | |
14386 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
14387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14388 | (eval $ac_try) 2>&5 | |
14389 | ac_status=$? | |
8934764e | 14390 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6ae7fef5 BB |
14391 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
14392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14393 | (eval $ac_try) 2>&5 | |
14394 | ac_status=$? | |
8934764e | 14395 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6ae7fef5 BB |
14396 | (exit $ac_status); }; }; then |
14397 | ||
8934764e BB |
14398 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
14399 | $as_echo "yes" >&6; } | |
6ae7fef5 BB |
14400 | |
14401 | cat >>confdefs.h <<\_ACEOF | |
14402 | #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE 1 | |
14403 | _ACEOF | |
14404 | ||
14405 | ||
14406 | else | |
8934764e | 14407 | $as_echo "$as_me: failed program was:" >&5 |
6ae7fef5 BB |
14408 | sed 's/^/| /' conftest.$ac_ext >&5 |
14409 | ||
8934764e BB |
14410 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
14411 | $as_echo "no" >&6; } | |
6ae7fef5 BB |
14412 | |
14413 | ||
14414 | ||
14415 | fi | |
14416 | ||
14417 | rm -Rf build | |
14418 | ||
14419 | ||
14420 | ||
14421 | ||
8934764e BB |
14422 | { $as_echo "$as_me:$LINENO: checking whether symbol get_zone_counts is needed" >&5 |
14423 | $as_echo_n "checking whether symbol get_zone_counts is needed... " >&6; } | |
6ae7fef5 BB |
14424 | |
14425 | ||
dbe561d8 | 14426 | cat confdefs.h - <<_ACEOF >conftest.c |
6ae7fef5 BB |
14427 | /* confdefs.h. */ |
14428 | _ACEOF | |
14429 | cat confdefs.h >>conftest.$ac_ext | |
14430 | cat >>conftest.$ac_ext <<_ACEOF | |
14431 | /* end confdefs.h. */ | |
14432 | ||
14433 | ||
14434 | ||
14435 | int | |
14436 | main (void) | |
14437 | { | |
14438 | ||
14439 | #if !defined(HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES) | |
14440 | #error "global_page_state needs NR_FREE_PAGES" | |
14441 | #endif | |
14442 | ||
14443 | #if !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE) && \ | |
14444 | !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON) && \ | |
14445 | !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE) | |
14446 | #error "global_page_state needs NR_ACTIVE*" | |
14447 | #endif | |
14448 | ||
14449 | #if !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE) && \ | |
14450 | !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON) && \ | |
14451 | !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE) | |
14452 | #error "global_page_state needs NR_INACTIVE*" | |
14453 | #endif | |
14454 | ||
14455 | ; | |
14456 | return 0; | |
14457 | } | |
14458 | ||
14459 | _ACEOF | |
14460 | ||
14461 | ||
14462 | rm -Rf build && mkdir -p build | |
14463 | echo "obj-m := conftest.o" >build/Makefile | |
14464 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
14465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14466 | (eval $ac_try) 2>&5 | |
14467 | ac_status=$? | |
8934764e | 14468 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6ae7fef5 BB |
14469 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
14470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14471 | (eval $ac_try) 2>&5 | |
14472 | ac_status=$? | |
8934764e | 14473 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6ae7fef5 BB |
14474 | (exit $ac_status); }; }; then |
14475 | ||
8934764e BB |
14476 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
14477 | $as_echo "no" >&6; } | |
6ae7fef5 BB |
14478 | |
14479 | else | |
8934764e | 14480 | $as_echo "$as_me: failed program was:" >&5 |
6ae7fef5 BB |
14481 | sed 's/^/| /' conftest.$ac_ext >&5 |
14482 | ||
8934764e BB |
14483 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
14484 | $as_echo "yes" >&6; } | |
6ae7fef5 BB |
14485 | |
14486 | cat >>confdefs.h <<\_ACEOF | |
14487 | #define NEED_GET_ZONE_COUNTS 1 | |
14488 | _ACEOF | |
14489 | ||
14490 | ||
8934764e BB |
14491 | { $as_echo "$as_me:$LINENO: checking whether symbol get_zone_counts is exported" >&5 |
14492 | $as_echo_n "checking whether symbol get_zone_counts is exported... " >&6; } | |
6ae7fef5 BB |
14493 | grep -q -E '[[:space:]]get_zone_counts[[:space:]]' \ |
14494 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
14495 | rc=$? | |
14496 | if test $rc -ne 0; then | |
14497 | export=0 | |
14498 | for file in ; do | |
14499 | grep -q -E "EXPORT_SYMBOL.*(get_zone_counts)" \ | |
14500 | "$LINUX_OBJ/$file" 2>/dev/null | |
14501 | rc=$? | |
14502 | if test $rc -eq 0; then | |
14503 | export=1 | |
14504 | break; | |
14505 | fi | |
14506 | done | |
14507 | if test $export -eq 0; then | |
8934764e BB |
14508 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
14509 | $as_echo "no" >&6; } | |
6ae7fef5 BB |
14510 | |
14511 | else | |
8934764e BB |
14512 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
14513 | $as_echo "yes" >&6; } | |
6ae7fef5 BB |
14514 | |
14515 | cat >>confdefs.h <<\_ACEOF | |
14516 | #define HAVE_GET_ZONE_COUNTS 1 | |
14517 | _ACEOF | |
14518 | ||
14519 | fi | |
14520 | else | |
8934764e BB |
14521 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
14522 | $as_echo "yes" >&6; } | |
6ae7fef5 BB |
14523 | |
14524 | cat >>confdefs.h <<\_ACEOF | |
14525 | #define HAVE_GET_ZONE_COUNTS 1 | |
14526 | _ACEOF | |
14527 | ||
14528 | fi | |
14529 | ||
14530 | ||
14531 | ||
14532 | ||
51a727e9 BB |
14533 | fi |
14534 | ||
14535 | rm -Rf build | |
14536 | ||
14537 | ||
14538 | ||
14539 | ||
7119bf70 BB |
14540 | { $as_echo "$as_me:$LINENO: checking whether symbol user_path_at is exported" >&5 |
14541 | $as_echo_n "checking whether symbol user_path_at is exported... " >&6; } | |
14542 | grep -q -E '[[:space:]]user_path_at[[:space:]]' \ | |
14543 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
14544 | rc=$? | |
14545 | if test $rc -ne 0; then | |
14546 | export=0 | |
14547 | for file in ; do | |
14548 | grep -q -E "EXPORT_SYMBOL.*(user_path_at)" \ | |
14549 | "$LINUX_OBJ/$file" 2>/dev/null | |
14550 | rc=$? | |
14551 | if test $rc -eq 0; then | |
14552 | export=1 | |
14553 | break; | |
14554 | fi | |
14555 | done | |
14556 | if test $export -eq 0; then | |
14557 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
14558 | $as_echo "no" >&6; } | |
14559 | ||
14560 | else | |
14561 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
14562 | $as_echo "yes" >&6; } | |
14563 | ||
14564 | cat >>confdefs.h <<\_ACEOF | |
14565 | #define HAVE_USER_PATH_DIR 1 | |
14566 | _ACEOF | |
14567 | ||
14568 | fi | |
14569 | else | |
14570 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
14571 | $as_echo "yes" >&6; } | |
14572 | ||
14573 | cat >>confdefs.h <<\_ACEOF | |
14574 | #define HAVE_USER_PATH_DIR 1 | |
14575 | _ACEOF | |
14576 | ||
14577 | fi | |
14578 | ||
14579 | ||
14580 | ||
8934764e BB |
14581 | { $as_echo "$as_me:$LINENO: checking whether symbol set_fs_pwd is exported" >&5 |
14582 | $as_echo_n "checking whether symbol set_fs_pwd is exported... " >&6; } | |
51a727e9 BB |
14583 | grep -q -E '[[:space:]]set_fs_pwd[[:space:]]' \ |
14584 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
14585 | rc=$? | |
14586 | if test $rc -ne 0; then | |
14587 | export=0 | |
14588 | for file in ; do | |
14589 | grep -q -E "EXPORT_SYMBOL.*(set_fs_pwd)" \ | |
14590 | "$LINUX_OBJ/$file" 2>/dev/null | |
14591 | rc=$? | |
14592 | if test $rc -eq 0; then | |
14593 | export=1 | |
14594 | break; | |
14595 | fi | |
14596 | done | |
14597 | if test $export -eq 0; then | |
8934764e BB |
14598 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
14599 | $as_echo "no" >&6; } | |
51a727e9 BB |
14600 | |
14601 | else | |
8934764e BB |
14602 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
14603 | $as_echo "yes" >&6; } | |
51a727e9 BB |
14604 | |
14605 | cat >>confdefs.h <<\_ACEOF | |
14606 | #define HAVE_SET_FS_PWD 1 | |
14607 | _ACEOF | |
14608 | ||
14609 | fi | |
14610 | else | |
8934764e BB |
14611 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
14612 | $as_echo "yes" >&6; } | |
51a727e9 BB |
14613 | |
14614 | cat >>confdefs.h <<\_ACEOF | |
14615 | #define HAVE_SET_FS_PWD 1 | |
14616 | _ACEOF | |
14617 | ||
14618 | fi | |
14619 | ||
14620 | ||
8934764e BB |
14621 | { $as_echo "$as_me:$LINENO: checking whether set_fs_pwd() wants 2 args" >&5 |
14622 | $as_echo_n "checking whether set_fs_pwd() wants 2 args... " >&6; } | |
51a727e9 BB |
14623 | |
14624 | ||
dbe561d8 | 14625 | cat confdefs.h - <<_ACEOF >conftest.c |
51a727e9 BB |
14626 | /* confdefs.h. */ |
14627 | _ACEOF | |
14628 | cat confdefs.h >>conftest.$ac_ext | |
14629 | cat >>conftest.$ac_ext <<_ACEOF | |
14630 | /* end confdefs.h. */ | |
14631 | ||
14632 | ||
14633 | #include <linux/sched.h> | |
baf2979e | 14634 | #include <linux/fs_struct.h> |
51a727e9 BB |
14635 | |
14636 | int | |
14637 | main (void) | |
14638 | { | |
14639 | ||
14640 | set_fs_pwd(NULL, NULL); | |
14641 | ||
14642 | ; | |
14643 | return 0; | |
14644 | } | |
14645 | ||
14646 | _ACEOF | |
14647 | ||
14648 | ||
14649 | rm -Rf build && mkdir -p build | |
14650 | echo "obj-m := conftest.o" >build/Makefile | |
14651 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
14652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14653 | (eval $ac_try) 2>&5 | |
14654 | ac_status=$? | |
8934764e | 14655 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
51a727e9 BB |
14656 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
14657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14658 | (eval $ac_try) 2>&5 | |
14659 | ac_status=$? | |
8934764e | 14660 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
51a727e9 BB |
14661 | (exit $ac_status); }; }; then |
14662 | ||
8934764e BB |
14663 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
14664 | $as_echo "yes" >&6; } | |
51a727e9 BB |
14665 | |
14666 | cat >>confdefs.h <<\_ACEOF | |
14667 | #define HAVE_2ARGS_SET_FS_PWD 1 | |
14668 | _ACEOF | |
14669 | ||
14670 | ||
14671 | else | |
8934764e | 14672 | $as_echo "$as_me: failed program was:" >&5 |
51a727e9 BB |
14673 | sed 's/^/| /' conftest.$ac_ext >&5 |
14674 | ||
8934764e BB |
14675 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
14676 | $as_echo "no" >&6; } | |
51a727e9 BB |
14677 | |
14678 | ||
14679 | ||
6ae7fef5 BB |
14680 | fi |
14681 | ||
14682 | rm -Rf build | |
14683 | ||
14684 | ||
14685 | ||
8934764e BB |
14686 | { $as_echo "$as_me:$LINENO: checking whether vfs_unlink() wants 2 args" >&5 |
14687 | $as_echo_n "checking whether vfs_unlink() wants 2 args... " >&6; } | |
6ae7fef5 BB |
14688 | |
14689 | ||
dbe561d8 | 14690 | cat confdefs.h - <<_ACEOF >conftest.c |
6ae7fef5 BB |
14691 | /* confdefs.h. */ |
14692 | _ACEOF | |
14693 | cat confdefs.h >>conftest.$ac_ext | |
14694 | cat >>conftest.$ac_ext <<_ACEOF | |
14695 | /* end confdefs.h. */ | |
14696 | ||
14697 | ||
14698 | #include <linux/fs.h> | |
14699 | ||
14700 | int | |
14701 | main (void) | |
14702 | { | |
14703 | ||
14704 | vfs_unlink(NULL, NULL); | |
14705 | ||
14706 | ; | |
14707 | return 0; | |
14708 | } | |
14709 | ||
14710 | _ACEOF | |
14711 | ||
14712 | ||
14713 | rm -Rf build && mkdir -p build | |
14714 | echo "obj-m := conftest.o" >build/Makefile | |
14715 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
14716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14717 | (eval $ac_try) 2>&5 | |
14718 | ac_status=$? | |
8934764e | 14719 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6ae7fef5 BB |
14720 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
14721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14722 | (eval $ac_try) 2>&5 | |
14723 | ac_status=$? | |
8934764e | 14724 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6ae7fef5 BB |
14725 | (exit $ac_status); }; }; then |
14726 | ||
8934764e BB |
14727 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
14728 | $as_echo "yes" >&6; } | |
6ae7fef5 BB |
14729 | |
14730 | cat >>confdefs.h <<\_ACEOF | |
14731 | #define HAVE_2ARGS_VFS_UNLINK 1 | |
14732 | _ACEOF | |
14733 | ||
14734 | ||
14735 | else | |
8934764e | 14736 | $as_echo "$as_me: failed program was:" >&5 |
6ae7fef5 BB |
14737 | sed 's/^/| /' conftest.$ac_ext >&5 |
14738 | ||
8934764e BB |
14739 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
14740 | $as_echo "no" >&6; } | |
6ae7fef5 BB |
14741 | |
14742 | ||
14743 | ||
14744 | fi | |
14745 | ||
14746 | rm -Rf build | |
14747 | ||
14748 | ||
14749 | ||
8934764e BB |
14750 | { $as_echo "$as_me:$LINENO: checking whether vfs_rename() wants 4 args" >&5 |
14751 | $as_echo_n "checking whether vfs_rename() wants 4 args... " >&6; } | |
6ae7fef5 BB |
14752 | |
14753 | ||
dbe561d8 | 14754 | cat confdefs.h - <<_ACEOF >conftest.c |
6ae7fef5 BB |
14755 | /* confdefs.h. */ |
14756 | _ACEOF | |
14757 | cat confdefs.h >>conftest.$ac_ext | |
14758 | cat >>conftest.$ac_ext <<_ACEOF | |
14759 | /* end confdefs.h. */ | |
14760 | ||
14761 | ||
14762 | #include <linux/fs.h> | |
14763 | ||
14764 | int | |
14765 | main (void) | |
14766 | { | |
14767 | ||
14768 | vfs_rename(NULL, NULL, NULL, NULL); | |
14769 | ||
14770 | ; | |
14771 | return 0; | |
14772 | } | |
14773 | ||
14774 | _ACEOF | |
14775 | ||
14776 | ||
14777 | rm -Rf build && mkdir -p build | |
14778 | echo "obj-m := conftest.o" >build/Makefile | |
14779 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
14780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14781 | (eval $ac_try) 2>&5 | |
14782 | ac_status=$? | |
8934764e | 14783 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6ae7fef5 BB |
14784 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
14785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14786 | (eval $ac_try) 2>&5 | |
14787 | ac_status=$? | |
8934764e | 14788 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6ae7fef5 BB |
14789 | (exit $ac_status); }; }; then |
14790 | ||
8934764e BB |
14791 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
14792 | $as_echo "yes" >&6; } | |
6ae7fef5 BB |
14793 | |
14794 | cat >>confdefs.h <<\_ACEOF | |
14795 | #define HAVE_4ARGS_VFS_RENAME 1 | |
14796 | _ACEOF | |
14797 | ||
14798 | ||
14799 | else | |
8934764e | 14800 | $as_echo "$as_me: failed program was:" >&5 |
6ae7fef5 BB |
14801 | sed 's/^/| /' conftest.$ac_ext >&5 |
14802 | ||
8934764e BB |
14803 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
14804 | $as_echo "no" >&6; } | |
6ae7fef5 BB |
14805 | |
14806 | ||
14807 | ||
14808 | fi | |
14809 | ||
14810 | rm -Rf build | |
14811 | ||
14812 | ||
14813 | ||
14814 | ||
8934764e BB |
14815 | { $as_echo "$as_me:$LINENO: checking whether struct cred exists" >&5 |
14816 | $as_echo_n "checking whether struct cred exists... " >&6; } | |
6ae7fef5 BB |
14817 | |
14818 | ||
dbe561d8 | 14819 | cat confdefs.h - <<_ACEOF >conftest.c |
6ae7fef5 BB |
14820 | /* confdefs.h. */ |
14821 | _ACEOF | |
14822 | cat confdefs.h >>conftest.$ac_ext | |
14823 | cat >>conftest.$ac_ext <<_ACEOF | |
14824 | /* end confdefs.h. */ | |
14825 | ||
14826 | ||
14827 | #include <linux/cred.h> | |
14828 | ||
14829 | int | |
14830 | main (void) | |
14831 | { | |
14832 | ||
14833 | struct cred *cr; | |
14834 | cr = NULL; | |
14835 | ||
14836 | ; | |
14837 | return 0; | |
14838 | } | |
14839 | ||
14840 | _ACEOF | |
14841 | ||
14842 | ||
14843 | rm -Rf build && mkdir -p build | |
14844 | echo "obj-m := conftest.o" >build/Makefile | |
14845 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
14846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14847 | (eval $ac_try) 2>&5 | |
14848 | ac_status=$? | |
8934764e | 14849 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6ae7fef5 BB |
14850 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
14851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14852 | (eval $ac_try) 2>&5 | |
14853 | ac_status=$? | |
8934764e | 14854 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6ae7fef5 BB |
14855 | (exit $ac_status); }; }; then |
14856 | ||
8934764e BB |
14857 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
14858 | $as_echo "yes" >&6; } | |
6ae7fef5 BB |
14859 | |
14860 | cat >>confdefs.h <<\_ACEOF | |
14861 | #define HAVE_CRED_STRUCT 1 | |
14862 | _ACEOF | |
14863 | ||
14864 | ||
14865 | else | |
8934764e | 14866 | $as_echo "$as_me: failed program was:" >&5 |
6ae7fef5 BB |
14867 | sed 's/^/| /' conftest.$ac_ext >&5 |
14868 | ||
8934764e BB |
14869 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
14870 | $as_echo "no" >&6; } | |
6ae7fef5 BB |
14871 | |
14872 | ||
14873 | ||
14874 | fi | |
14875 | ||
14876 | rm -Rf build | |
14877 | ||
14878 | ||
14879 | ||
14880 | ||
8934764e BB |
14881 | { $as_echo "$as_me:$LINENO: checking whether symbol groups_search is exported" >&5 |
14882 | $as_echo_n "checking whether symbol groups_search is exported... " >&6; } | |
6ae7fef5 BB |
14883 | grep -q -E '[[:space:]]groups_search[[:space:]]' \ |
14884 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
14885 | rc=$? | |
14886 | if test $rc -ne 0; then | |
14887 | export=0 | |
14888 | for file in ; do | |
14889 | grep -q -E "EXPORT_SYMBOL.*(groups_search)" \ | |
14890 | "$LINUX_OBJ/$file" 2>/dev/null | |
14891 | rc=$? | |
14892 | if test $rc -eq 0; then | |
14893 | export=1 | |
14894 | break; | |
14895 | fi | |
14896 | done | |
14897 | if test $export -eq 0; then | |
8934764e BB |
14898 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
14899 | $as_echo "no" >&6; } | |
6ae7fef5 BB |
14900 | |
14901 | else | |
8934764e BB |
14902 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
14903 | $as_echo "yes" >&6; } | |
6ae7fef5 BB |
14904 | |
14905 | cat >>confdefs.h <<\_ACEOF | |
14906 | #define HAVE_GROUPS_SEARCH 1 | |
14907 | _ACEOF | |
14908 | ||
14909 | fi | |
14910 | else | |
8934764e BB |
14911 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
14912 | $as_echo "yes" >&6; } | |
6ae7fef5 BB |
14913 | |
14914 | cat >>confdefs.h <<\_ACEOF | |
14915 | #define HAVE_GROUPS_SEARCH 1 | |
14916 | _ACEOF | |
14917 | ||
14918 | fi | |
14919 | ||
14920 | ||
e811949a | 14921 | |
8934764e BB |
14922 | { $as_echo "$as_me:$LINENO: checking whether symbol __put_task_struct is exported" >&5 |
14923 | $as_echo_n "checking whether symbol __put_task_struct is exported... " >&6; } | |
e811949a BB |
14924 | grep -q -E '[[:space:]]__put_task_struct[[:space:]]' \ |
14925 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
14926 | rc=$? | |
14927 | if test $rc -ne 0; then | |
14928 | export=0 | |
14929 | for file in ; do | |
14930 | grep -q -E "EXPORT_SYMBOL.*(__put_task_struct)" \ | |
14931 | "$LINUX_OBJ/$file" 2>/dev/null | |
14932 | rc=$? | |
14933 | if test $rc -eq 0; then | |
14934 | export=1 | |
14935 | break; | |
14936 | fi | |
14937 | done | |
14938 | if test $export -eq 0; then | |
8934764e BB |
14939 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
14940 | $as_echo "no" >&6; } | |
e811949a BB |
14941 | |
14942 | else | |
8934764e BB |
14943 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
14944 | $as_echo "yes" >&6; } | |
e811949a BB |
14945 | |
14946 | cat >>confdefs.h <<\_ACEOF | |
14947 | #define HAVE_PUT_TASK_STRUCT 1 | |
14948 | _ACEOF | |
14949 | ||
14950 | fi | |
14951 | else | |
8934764e BB |
14952 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
14953 | $as_echo "yes" >&6; } | |
e811949a BB |
14954 | |
14955 | cat >>confdefs.h <<\_ACEOF | |
14956 | #define HAVE_PUT_TASK_STRUCT 1 | |
14957 | _ACEOF | |
14958 | ||
14959 | fi | |
14960 | ||
14961 | ||
3977f837 | 14962 | |
8934764e BB |
14963 | { $as_echo "$as_me:$LINENO: checking whether proc_handler() wants 5 args" >&5 |
14964 | $as_echo_n "checking whether proc_handler() wants 5 args... " >&6; } | |
3977f837 BB |
14965 | |
14966 | ||
dbe561d8 | 14967 | cat confdefs.h - <<_ACEOF >conftest.c |
3977f837 BB |
14968 | /* confdefs.h. */ |
14969 | _ACEOF | |
14970 | cat confdefs.h >>conftest.$ac_ext | |
14971 | cat >>conftest.$ac_ext <<_ACEOF | |
14972 | /* end confdefs.h. */ | |
14973 | ||
14974 | ||
14975 | #include <linux/sysctl.h> | |
14976 | ||
14977 | int | |
14978 | main (void) | |
14979 | { | |
14980 | ||
14981 | proc_dostring(NULL, 0, NULL, NULL, NULL); | |
14982 | ||
14983 | ; | |
14984 | return 0; | |
14985 | } | |
14986 | ||
14987 | _ACEOF | |
14988 | ||
14989 | ||
14990 | rm -Rf build && mkdir -p build | |
14991 | echo "obj-m := conftest.o" >build/Makefile | |
14992 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
14993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14994 | (eval $ac_try) 2>&5 | |
14995 | ac_status=$? | |
8934764e | 14996 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3977f837 BB |
14997 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
14998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14999 | (eval $ac_try) 2>&5 | |
15000 | ac_status=$? | |
8934764e | 15001 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3977f837 BB |
15002 | (exit $ac_status); }; }; then |
15003 | ||
8934764e BB |
15004 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
15005 | $as_echo "yes" >&6; } | |
3977f837 BB |
15006 | |
15007 | cat >>confdefs.h <<\_ACEOF | |
15008 | #define HAVE_5ARGS_PROC_HANDLER 1 | |
15009 | _ACEOF | |
15010 | ||
15011 | ||
15012 | else | |
8934764e | 15013 | $as_echo "$as_me: failed program was:" >&5 |
3977f837 BB |
15014 | sed 's/^/| /' conftest.$ac_ext >&5 |
15015 | ||
8934764e BB |
15016 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
15017 | $as_echo "no" >&6; } | |
3977f837 BB |
15018 | |
15019 | ||
15020 | ||
15021 | fi | |
15022 | ||
15023 | rm -Rf build | |
15024 | ||
15025 | ||
15026 | ||
b868e22f BB |
15027 | |
15028 | { $as_echo "$as_me:$LINENO: checking whether symbol kvasprintf is exported" >&5 | |
15029 | $as_echo_n "checking whether symbol kvasprintf is exported... " >&6; } | |
15030 | grep -q -E '[[:space:]]kvasprintf[[:space:]]' \ | |
15031 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
15032 | rc=$? | |
15033 | if test $rc -ne 0; then | |
15034 | export=0 | |
15035 | for file in ; do | |
15036 | grep -q -E "EXPORT_SYMBOL.*(kvasprintf)" \ | |
15037 | "$LINUX_OBJ/$file" 2>/dev/null | |
15038 | rc=$? | |
15039 | if test $rc -eq 0; then | |
15040 | export=1 | |
15041 | break; | |
15042 | fi | |
15043 | done | |
15044 | if test $export -eq 0; then | |
15045 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
15046 | $as_echo "no" >&6; } | |
15047 | ||
15048 | else | |
15049 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
15050 | $as_echo "yes" >&6; } | |
15051 | ||
15052 | cat >>confdefs.h <<\_ACEOF | |
15053 | #define HAVE_KVASPRINTF 1 | |
15054 | _ACEOF | |
15055 | ||
15056 | fi | |
15057 | else | |
15058 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
15059 | $as_echo "yes" >&6; } | |
15060 | ||
15061 | cat >>confdefs.h <<\_ACEOF | |
15062 | #define HAVE_KVASPRINTF 1 | |
15063 | _ACEOF | |
15064 | ||
15065 | fi | |
15066 | ||
15067 | ||
f0ff89fc BB |
15068 | |
15069 | { $as_echo "$as_me:$LINENO: checking whether file_fsync() wants 3 args" >&5 | |
15070 | $as_echo_n "checking whether file_fsync() wants 3 args... " >&6; } | |
15071 | ||
15072 | ||
15073 | cat confdefs.h - <<_ACEOF >conftest.c | |
15074 | /* confdefs.h. */ | |
15075 | _ACEOF | |
15076 | cat confdefs.h >>conftest.$ac_ext | |
15077 | cat >>conftest.$ac_ext <<_ACEOF | |
15078 | /* end confdefs.h. */ | |
15079 | ||
15080 | ||
15081 | #include <linux/buffer_head.h> | |
15082 | ||
15083 | int | |
15084 | main (void) | |
15085 | { | |
15086 | ||
15087 | file_fsync(NULL, NULL, 0); | |
15088 | ||
15089 | ; | |
15090 | return 0; | |
15091 | } | |
15092 | ||
15093 | _ACEOF | |
15094 | ||
15095 | ||
15096 | rm -Rf build && mkdir -p build | |
15097 | echo "obj-m := conftest.o" >build/Makefile | |
15098 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
15099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15100 | (eval $ac_try) 2>&5 | |
15101 | ac_status=$? | |
15102 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15103 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15105 | (eval $ac_try) 2>&5 | |
15106 | ac_status=$? | |
15107 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15108 | (exit $ac_status); }; }; then | |
15109 | ||
15110 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
15111 | $as_echo "yes" >&6; } | |
15112 | ||
15113 | cat >>confdefs.h <<\_ACEOF | |
15114 | #define HAVE_3ARGS_FILE_FSYNC 1 | |
15115 | _ACEOF | |
15116 | ||
15117 | ||
15118 | else | |
15119 | $as_echo "$as_me: failed program was:" >&5 | |
15120 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15121 | ||
15122 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
15123 | $as_echo "no" >&6; } | |
15124 | ||
15125 | ||
15126 | ||
15127 | fi | |
15128 | ||
15129 | rm -Rf build | |
15130 | ||
15131 | ||
15132 | ||
6ae7fef5 | 15133 | ;; |
18142514 | 15134 | user) |
287b2fb1 BB |
15135 | |
15136 | if test "x$AWK" != xgawk; then | |
18142514 BB |
15137 | |
15138 | { { $as_echo "$as_me:$LINENO: error: | |
15139 | *** Required util gawk missing. Please install the required | |
15140 | *** gawk package for your distribution and try again." >&5 | |
15141 | $as_echo "$as_me: error: | |
15142 | *** Required util gawk missing. Please install the required | |
15143 | *** gawk package for your distribution and try again." >&2;} | |
15144 | { (exit 1); exit 1; }; } | |
15145 | ||
15146 | fi | |
15147 | ||
287b2fb1 | 15148 | |
18142514 | 15149 | ;; |
6ae7fef5 BB |
15150 | all) |
15151 | ||
15152 | ||
8934764e | 15153 | # Check whether --with-linux was given. |
6ae7fef5 | 15154 | if test "${with_linux+set}" = set; then |
8934764e BB |
15155 | withval=$with_linux; kernelsrc="$withval" |
15156 | fi | |
6ae7fef5 BB |
15157 | |
15158 | ||
8934764e BB |
15159 | |
15160 | # Check whether --with-linux-obj was given. | |
6ae7fef5 | 15161 | if test "${with_linux_obj+set}" = set; then |
8934764e BB |
15162 | withval=$with_linux_obj; kernelbuild="$withval" |
15163 | fi | |
6ae7fef5 | 15164 | |
8934764e BB |
15165 | |
15166 | { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5 | |
15167 | $as_echo_n "checking kernel source directory... " >&6; } | |
6ae7fef5 | 15168 | if test -z "$kernelsrc"; then |
534c4e38 BM |
15169 | headersdir="/lib/modules/$(uname -r)/build" |
15170 | if test -e "$headersdir"; then | |
15171 | sourcelink=$(readlink -f "$headersdir") | |
15172 | else | |
15173 | sourcelink=$(ls -1d /usr/src/kernels/* \ | |
15174 | /usr/src/linux-* \ | |
15175 | 2>/dev/null | grep -v obj | tail -1) | |
15176 | fi | |
6ae7fef5 | 15177 | |
8fd4e3af | 15178 | if test -n "$sourcelink" && test -e ${sourcelink}; then |
6ae7fef5 BB |
15179 | kernelsrc=`readlink -f ${sourcelink}` |
15180 | else | |
8934764e BB |
15181 | { $as_echo "$as_me:$LINENO: result: Not found" >&5 |
15182 | $as_echo "Not found" >&6; } | |
15183 | { { $as_echo "$as_me:$LINENO: error: | |
8fd4e3af BB |
15184 | *** Please make sure the kernel devel package for your distribution |
15185 | *** is installed then try again. If that fails you can specify the | |
15186 | *** location of the kernel source with the '--with-linux=PATH' option." >&5 | |
8934764e | 15187 | $as_echo "$as_me: error: |
8fd4e3af BB |
15188 | *** Please make sure the kernel devel package for your distribution |
15189 | *** is installed then try again. If that fails you can specify the | |
15190 | *** location of the kernel source with the '--with-linux=PATH' option." >&2;} | |
6ae7fef5 BB |
15191 | { (exit 1); exit 1; }; } |
15192 | fi | |
15193 | else | |
15194 | if test "$kernelsrc" = "NONE"; then | |
15195 | kernsrcver=NONE | |
15196 | fi | |
15197 | fi | |
15198 | ||
8934764e BB |
15199 | { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5 |
15200 | $as_echo "$kernelsrc" >&6; } | |
15201 | { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5 | |
15202 | $as_echo_n "checking kernel build directory... " >&6; } | |
6ae7fef5 | 15203 | if test -z "$kernelbuild"; then |
e2d28a37 BB |
15204 | if test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then |
15205 | kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu} | |
15206 | elif test -d ${kernelsrc}-obj/${target_cpu}/default; then | |
15207 | kernelbuild=${kernelsrc}-obj/${target_cpu}/default | |
15208 | elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then | |
15209 | kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu} | |
6ae7fef5 BB |
15210 | else |
15211 | kernelbuild=${kernelsrc} | |
15212 | fi | |
15213 | fi | |
8934764e BB |
15214 | { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5 |
15215 | $as_echo "$kernelbuild" >&6; } | |
6ae7fef5 | 15216 | |
8934764e BB |
15217 | { $as_echo "$as_me:$LINENO: checking kernel source version" >&5 |
15218 | $as_echo_n "checking kernel source version... " >&6; } | |
fd921c2e BB |
15219 | utsrelease1=$kernelbuild/include/linux/version.h |
15220 | utsrelease2=$kernelbuild/include/linux/utsrelease.h | |
15221 | utsrelease3=$kernelbuild/include/generated/utsrelease.h | |
15222 | if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then | |
15223 | utsrelease=linux/version.h | |
15224 | elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then | |
15225 | utsrelease=linux/utsrelease.h | |
15226 | elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then | |
15227 | utsrelease=generated/utsrelease.h | |
15228 | fi | |
6ae7fef5 | 15229 | |
fd921c2e BB |
15230 | if test "$utsrelease"; then |
15231 | kernsrcver=`(echo "#include <$utsrelease>"; | |
6ae7fef5 BB |
15232 | echo "kernsrcver=UTS_RELEASE") | |
15233 | cpp -I $kernelbuild/include | | |
15234 | grep "^kernsrcver=" | cut -d \" -f 2` | |
6ae7fef5 | 15235 | |
fd921c2e BB |
15236 | if test -z "$kernsrcver"; then |
15237 | { $as_echo "$as_me:$LINENO: result: Not found" >&5 | |
15238 | $as_echo "Not found" >&6; } | |
15239 | { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5 | |
15240 | $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;} | |
15241 | { (exit 1); exit 1; }; } | |
15242 | fi | |
15243 | else | |
8934764e BB |
15244 | { $as_echo "$as_me:$LINENO: result: Not found" >&5 |
15245 | $as_echo "Not found" >&6; } | |
fd921c2e BB |
15246 | { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5 |
15247 | $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;} | |
bf9f3bac BB |
15248 | { (exit 1); exit 1; }; } |
15249 | fi | |
15250 | ||
8934764e BB |
15251 | { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5 |
15252 | $as_echo "$kernsrcver" >&6; } | |
bf9f3bac | 15253 | |
bf9f3bac BB |
15254 | LINUX=${kernelsrc} |
15255 | LINUX_OBJ=${kernelbuild} | |
c5f70460 BB |
15256 | LINUX_VERSION=${kernsrcver} |
15257 | ||
bf9f3bac BB |
15258 | |
15259 | ||
15260 | ||
15261 | ||
15262 | ||
bb339d06 | 15263 | modpost=$LINUX/scripts/Makefile.modpost |
8934764e BB |
15264 | { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5 |
15265 | $as_echo_n "checking kernel file name for module symbols... " >&6; } | |
bb339d06 BB |
15266 | if test -f "$modpost"; then |
15267 | if grep -q Modules.symvers $modpost; then | |
15268 | LINUX_SYMBOLS=Modules.symvers | |
15269 | else | |
15270 | LINUX_SYMBOLS=Module.symvers | |
15271 | fi | |
2e0e7e69 | 15272 | else |
bb339d06 | 15273 | LINUX_SYMBOLS=NONE |
2e0e7e69 | 15274 | fi |
8934764e BB |
15275 | { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5 |
15276 | $as_echo "$LINUX_SYMBOLS" >&6; } | |
2e0e7e69 BB |
15277 | |
15278 | ||
15279 | ||
86933a6e | 15280 | |
86933a6e | 15281 | abs_srcdir=`readlink -f ${srcdir}` |
c950d148 | 15282 | KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes" |
16b719f0 BB |
15283 | KERNELCPPFLAGS="$KERNELCPPFLAGS -I${abs_srcdir}/include" |
15284 | KERNELCPPFLAGS="$KERNELCPPFLAGS -include ${abs_srcdir}/spl_config.h" | |
86933a6e BB |
15285 | |
15286 | if test "${LINUX_OBJ}" != "${LINUX}"; then | |
15287 | KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ" | |
15288 | fi | |
15289 | ||
15290 | ||
15291 | ||
bf9f3bac BB |
15292 | |
15293 | ||
c950d148 BB |
15294 | { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5 |
15295 | $as_echo_n "checking whether debugging is enabled... " >&6; } | |
8934764e | 15296 | # Check whether --enable-debug was given. |
bf9f3bac | 15297 | if test "${enable_debug+set}" = set; then |
8934764e | 15298 | enableval=$enable_debug; |
055ffd98 BB |
15299 | else |
15300 | enable_debug=no | |
8934764e BB |
15301 | fi |
15302 | ||
055ffd98 BB |
15303 | |
15304 | if test "x$enable_debug" = xyes; then | |
c950d148 | 15305 | |
c950d148 BB |
15306 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror" |
15307 | DEBUG_CFLAGS="-DDEBUG -Werror" | |
15308 | ||
055ffd98 | 15309 | else |
c950d148 | 15310 | |
c950d148 BB |
15311 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG" |
15312 | DEBUG_CFLAGS="-DNDEBUG" | |
15313 | ||
055ffd98 BB |
15314 | fi |
15315 | ||
15316 | ||
c950d148 | 15317 | |
8934764e BB |
15318 | { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5 |
15319 | $as_echo "$enable_debug" >&6; } | |
bf9f3bac BB |
15320 | |
15321 | ||
8934764e | 15322 | # Check whether --enable-debug-kmem was given. |
bf9f3bac | 15323 | if test "${enable_debug_kmem+set}" = set; then |
8934764e | 15324 | enableval=$enable_debug_kmem; |
055ffd98 BB |
15325 | else |
15326 | enable_debug_kmem=yes | |
8934764e BB |
15327 | fi |
15328 | ||
055ffd98 BB |
15329 | |
15330 | if test "x$enable_debug_kmem" = xyes; then | |
bf9f3bac BB |
15331 | |
15332 | cat >>confdefs.h <<\_ACEOF | |
15333 | #define DEBUG_KMEM 1 | |
15334 | _ACEOF | |
15335 | ||
15336 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM" | |
055ffd98 | 15337 | fi |
bf9f3bac | 15338 | |
bf9f3bac | 15339 | |
8934764e BB |
15340 | { $as_echo "$as_me:$LINENO: checking whether basic kmem accounting is enabled" >&5 |
15341 | $as_echo_n "checking whether basic kmem accounting is enabled... " >&6; } | |
15342 | { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem" >&5 | |
15343 | $as_echo "$enable_debug_kmem" >&6; } | |
bf9f3bac BB |
15344 | |
15345 | ||
8934764e | 15346 | # Check whether --enable-debug-kmem-tracking was given. |
055ffd98 | 15347 | if test "${enable_debug_kmem_tracking+set}" = set; then |
8934764e | 15348 | enableval=$enable_debug_kmem_tracking; |
055ffd98 BB |
15349 | else |
15350 | enable_debug_kmem_tracking=no | |
8934764e BB |
15351 | fi |
15352 | ||
055ffd98 BB |
15353 | |
15354 | if test "x$enable_debug_kmem_tracking" = xyes; then | |
bf9f3bac BB |
15355 | |
15356 | cat >>confdefs.h <<\_ACEOF | |
055ffd98 | 15357 | #define DEBUG_KMEM_TRACKING 1 |
bf9f3bac BB |
15358 | _ACEOF |
15359 | ||
055ffd98 BB |
15360 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM_TRACKING" |
15361 | fi | |
15362 | ||
15363 | ||
8934764e BB |
15364 | { $as_echo "$as_me:$LINENO: checking whether detailed kmem tracking is enabled" >&5 |
15365 | $as_echo_n "checking whether detailed kmem tracking is enabled... " >&6; } | |
15366 | { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem_tracking" >&5 | |
15367 | $as_echo "$enable_debug_kmem_tracking" >&6; } | |
bf9f3bac | 15368 | |
5e9b5d83 | 15369 | |
8934764e | 15370 | # Check whether --enable-atomic-spinlocks was given. |
5e9b5d83 | 15371 | if test "${enable_atomic_spinlocks+set}" = set; then |
8934764e | 15372 | enableval=$enable_atomic_spinlocks; |
5e9b5d83 | 15373 | else |
d04c8a56 | 15374 | enable_atomic_spinlocks=check |
8934764e BB |
15375 | fi |
15376 | ||
5e9b5d83 | 15377 | |
bf9f3bac BB |
15378 | |
15379 | ||
dbe561d8 | 15380 | cat confdefs.h - <<_ACEOF >conftest.c |
bf9f3bac BB |
15381 | /* confdefs.h. */ |
15382 | _ACEOF | |
15383 | cat confdefs.h >>conftest.$ac_ext | |
15384 | cat >>conftest.$ac_ext <<_ACEOF | |
15385 | /* end confdefs.h. */ | |
15386 | ||
15387 | ||
d04c8a56 | 15388 | #include <asm/atomic.h> |
bf9f3bac BB |
15389 | |
15390 | int | |
15391 | main (void) | |
15392 | { | |
15393 | ||
d04c8a56 | 15394 | atomic64_t *ptr; |
bf9f3bac BB |
15395 | |
15396 | ; | |
15397 | return 0; | |
15398 | } | |
15399 | ||
15400 | _ACEOF | |
15401 | ||
c5f70460 BB |
15402 | |
15403 | rm -Rf build && mkdir -p build | |
15404 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 15405 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
bf9f3bac BB |
15406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15407 | (eval $ac_try) 2>&5 | |
15408 | ac_status=$? | |
8934764e | 15409 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac BB |
15410 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
15411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15412 | (eval $ac_try) 2>&5 | |
15413 | ac_status=$? | |
8934764e | 15414 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac BB |
15415 | (exit $ac_status); }; }; then |
15416 | ||
d04c8a56 | 15417 | have_atomic64_t=yes |
bf9f3bac BB |
15418 | |
15419 | cat >>confdefs.h <<\_ACEOF | |
d04c8a56 | 15420 | #define HAVE_ATOMIC64_T 1 |
bf9f3bac BB |
15421 | _ACEOF |
15422 | ||
15423 | ||
15424 | else | |
8934764e | 15425 | $as_echo "$as_me: failed program was:" >&5 |
bf9f3bac BB |
15426 | sed 's/^/| /' conftest.$ac_ext >&5 |
15427 | ||
d04c8a56 | 15428 | have_atomic64_t=no |
bf9f3bac | 15429 | |
c5f70460 BB |
15430 | |
15431 | ||
bf9f3bac | 15432 | fi |
c5f70460 BB |
15433 | |
15434 | rm -Rf build | |
15435 | ||
bf9f3bac BB |
15436 | |
15437 | ||
d04c8a56 BB |
15438 | if test "x$enable_atomic_spinlocks" = xcheck; then |
15439 | ||
15440 | if test "x$have_atomic64_t" = xyes; then | |
15441 | ||
15442 | enable_atomic_spinlocks=no | |
15443 | ||
15444 | else | |
15445 | ||
15446 | enable_atomic_spinlocks=yes | |
15447 | ||
15448 | fi | |
15449 | ||
15450 | ||
15451 | fi | |
15452 | ||
15453 | ||
15454 | if test "x$enable_atomic_spinlocks" = xyes; then | |
15455 | ||
15456 | ||
15457 | cat >>confdefs.h <<\_ACEOF | |
15458 | #define ATOMIC_SPINLOCK 1 | |
15459 | _ACEOF | |
15460 | ||
15461 | ||
15462 | else | |
15463 | ||
15464 | if test "x$have_atomic64_t" = xno; then | |
15465 | ||
8934764e BB |
15466 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
15467 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
15468 | { { $as_echo "$as_me:$LINENO: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable | |
d04c8a56 | 15469 | See \`config.log' for more details." >&5 |
8934764e | 15470 | $as_echo "$as_me: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable |
d04c8a56 | 15471 | See \`config.log' for more details." >&2;} |
8934764e | 15472 | { (exit 1); exit 1; }; }; } |
d04c8a56 BB |
15473 | |
15474 | fi | |
15475 | ||
15476 | ||
15477 | fi | |
15478 | ||
15479 | ||
8934764e BB |
15480 | { $as_echo "$as_me:$LINENO: checking whether atomic types use spinlocks" >&5 |
15481 | $as_echo_n "checking whether atomic types use spinlocks... " >&6; } | |
15482 | { $as_echo "$as_me:$LINENO: result: $enable_atomic_spinlocks" >&5 | |
15483 | $as_echo "$enable_atomic_spinlocks" >&6; } | |
d04c8a56 | 15484 | |
8934764e BB |
15485 | { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_t" >&5 |
15486 | $as_echo_n "checking whether kernel defines atomic64_t... " >&6; } | |
15487 | { $as_echo "$as_me:$LINENO: result: $have_atomic64_t" >&5 | |
15488 | $as_echo "$have_atomic64_t" >&6; } | |
d04c8a56 | 15489 | |
8934764e BB |
15490 | { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_cmpxchg" >&5 |
15491 | $as_echo_n "checking whether kernel defines atomic64_cmpxchg... " >&6; } | |
bf9f3bac BB |
15492 | |
15493 | ||
dbe561d8 | 15494 | cat confdefs.h - <<_ACEOF >conftest.c |
bf9f3bac BB |
15495 | /* confdefs.h. */ |
15496 | _ACEOF | |
15497 | cat confdefs.h >>conftest.$ac_ext | |
15498 | cat >>conftest.$ac_ext <<_ACEOF | |
15499 | /* end confdefs.h. */ | |
15500 | ||
15501 | ||
15502 | #include <asm/atomic.h> | |
5ec44a37 | 15503 | #include <asm/system.h> |
bf9f3bac BB |
15504 | |
15505 | int | |
15506 | main (void) | |
15507 | { | |
15508 | ||
d04c8a56 | 15509 | atomic64_cmpxchg((atomic64_t *)NULL, 0, 0); |
bf9f3bac BB |
15510 | |
15511 | ; | |
15512 | return 0; | |
15513 | } | |
15514 | ||
15515 | _ACEOF | |
15516 | ||
c5f70460 BB |
15517 | |
15518 | rm -Rf build && mkdir -p build | |
15519 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 15520 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
bf9f3bac BB |
15521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15522 | (eval $ac_try) 2>&5 | |
15523 | ac_status=$? | |
8934764e | 15524 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac BB |
15525 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
15526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15527 | (eval $ac_try) 2>&5 | |
15528 | ac_status=$? | |
8934764e | 15529 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac BB |
15530 | (exit $ac_status); }; }; then |
15531 | ||
8934764e BB |
15532 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
15533 | $as_echo "yes" >&6; } | |
bf9f3bac BB |
15534 | |
15535 | cat >>confdefs.h <<\_ACEOF | |
d04c8a56 | 15536 | #define HAVE_ATOMIC64_CMPXCHG 1 |
bf9f3bac BB |
15537 | _ACEOF |
15538 | ||
15539 | ||
302b88e6 | 15540 | else |
8934764e | 15541 | $as_echo "$as_me: failed program was:" >&5 |
302b88e6 BB |
15542 | sed 's/^/| /' conftest.$ac_ext >&5 |
15543 | ||
8934764e BB |
15544 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
15545 | $as_echo "no" >&6; } | |
302b88e6 BB |
15546 | |
15547 | ||
15548 | ||
15549 | fi | |
15550 | ||
15551 | rm -Rf build | |
15552 | ||
15553 | ||
15554 | ||
8934764e BB |
15555 | { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_xchg" >&5 |
15556 | $as_echo_n "checking whether kernel defines atomic64_xchg... " >&6; } | |
302b88e6 BB |
15557 | |
15558 | ||
dbe561d8 | 15559 | cat confdefs.h - <<_ACEOF >conftest.c |
302b88e6 BB |
15560 | /* confdefs.h. */ |
15561 | _ACEOF | |
15562 | cat confdefs.h >>conftest.$ac_ext | |
15563 | cat >>conftest.$ac_ext <<_ACEOF | |
15564 | /* end confdefs.h. */ | |
15565 | ||
15566 | ||
15567 | #include <asm/atomic.h> | |
15568 | ||
15569 | int | |
15570 | main (void) | |
15571 | { | |
15572 | ||
d04c8a56 | 15573 | atomic64_xchg((atomic64_t *)NULL, 0); |
302b88e6 BB |
15574 | |
15575 | ; | |
15576 | return 0; | |
15577 | } | |
15578 | ||
15579 | _ACEOF | |
15580 | ||
15581 | ||
15582 | rm -Rf build && mkdir -p build | |
15583 | echo "obj-m := conftest.o" >build/Makefile | |
15584 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
15585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15586 | (eval $ac_try) 2>&5 | |
15587 | ac_status=$? | |
8934764e | 15588 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
302b88e6 BB |
15589 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
15590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15591 | (eval $ac_try) 2>&5 | |
15592 | ac_status=$? | |
8934764e | 15593 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
302b88e6 BB |
15594 | (exit $ac_status); }; }; then |
15595 | ||
8934764e BB |
15596 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
15597 | $as_echo "yes" >&6; } | |
302b88e6 BB |
15598 | |
15599 | cat >>confdefs.h <<\_ACEOF | |
d04c8a56 | 15600 | #define HAVE_ATOMIC64_XCHG 1 |
302b88e6 BB |
15601 | _ACEOF |
15602 | ||
15603 | ||
15604 | else | |
8934764e | 15605 | $as_echo "$as_me: failed program was:" >&5 |
302b88e6 BB |
15606 | sed 's/^/| /' conftest.$ac_ext >&5 |
15607 | ||
8934764e BB |
15608 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
15609 | $as_echo "no" >&6; } | |
302b88e6 BB |
15610 | |
15611 | ||
15612 | ||
15613 | fi | |
15614 | ||
15615 | rm -Rf build | |
15616 | ||
15617 | ||
15618 | ||
8934764e BB |
15619 | { $as_echo "$as_me:$LINENO: checking whether kernel defines uintptr_t" >&5 |
15620 | $as_echo_n "checking whether kernel defines uintptr_t... " >&6; } | |
302b88e6 BB |
15621 | |
15622 | ||
dbe561d8 | 15623 | cat confdefs.h - <<_ACEOF >conftest.c |
302b88e6 BB |
15624 | /* confdefs.h. */ |
15625 | _ACEOF | |
15626 | cat confdefs.h >>conftest.$ac_ext | |
15627 | cat >>conftest.$ac_ext <<_ACEOF | |
15628 | /* end confdefs.h. */ | |
15629 | ||
15630 | ||
d04c8a56 | 15631 | #include <linux/types.h> |
302b88e6 BB |
15632 | |
15633 | int | |
15634 | main (void) | |
15635 | { | |
15636 | ||
d04c8a56 | 15637 | uintptr_t *ptr; |
302b88e6 BB |
15638 | |
15639 | ; | |
15640 | return 0; | |
15641 | } | |
15642 | ||
15643 | _ACEOF | |
15644 | ||
15645 | ||
15646 | rm -Rf build && mkdir -p build | |
15647 | echo "obj-m := conftest.o" >build/Makefile | |
15648 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
15649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15650 | (eval $ac_try) 2>&5 | |
15651 | ac_status=$? | |
8934764e | 15652 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
302b88e6 BB |
15653 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
15654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15655 | (eval $ac_try) 2>&5 | |
15656 | ac_status=$? | |
8934764e | 15657 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
302b88e6 BB |
15658 | (exit $ac_status); }; }; then |
15659 | ||
8934764e BB |
15660 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
15661 | $as_echo "yes" >&6; } | |
302b88e6 BB |
15662 | |
15663 | cat >>confdefs.h <<\_ACEOF | |
d04c8a56 | 15664 | #define HAVE_UINTPTR_T 1 |
302b88e6 BB |
15665 | _ACEOF |
15666 | ||
15667 | ||
bf9f3bac | 15668 | else |
8934764e | 15669 | $as_echo "$as_me: failed program was:" >&5 |
bf9f3bac BB |
15670 | sed 's/^/| /' conftest.$ac_ext >&5 |
15671 | ||
8934764e BB |
15672 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
15673 | $as_echo "no" >&6; } | |
bf9f3bac | 15674 | |
c5f70460 BB |
15675 | |
15676 | ||
bf9f3bac | 15677 | fi |
c5f70460 BB |
15678 | |
15679 | rm -Rf build | |
15680 | ||
bf9f3bac BB |
15681 | |
15682 | ||
8934764e BB |
15683 | { $as_echo "$as_me:$LINENO: checking whether INIT_WORK wants 3 args" >&5 |
15684 | $as_echo_n "checking whether INIT_WORK wants 3 args... " >&6; } | |
bf9f3bac BB |
15685 | |
15686 | ||
dbe561d8 | 15687 | cat confdefs.h - <<_ACEOF >conftest.c |
bf9f3bac BB |
15688 | /* confdefs.h. */ |
15689 | _ACEOF | |
15690 | cat confdefs.h >>conftest.$ac_ext | |
15691 | cat >>conftest.$ac_ext <<_ACEOF | |
15692 | /* end confdefs.h. */ | |
15693 | ||
15694 | ||
15695 | #include <linux/workqueue.h> | |
15696 | ||
15697 | int | |
15698 | main (void) | |
15699 | { | |
15700 | ||
15701 | struct work_struct work; | |
15702 | INIT_WORK(&work, NULL, NULL); | |
15703 | ||
15704 | ; | |
15705 | return 0; | |
15706 | } | |
15707 | ||
15708 | _ACEOF | |
15709 | ||
c5f70460 BB |
15710 | |
15711 | rm -Rf build && mkdir -p build | |
15712 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 15713 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
bf9f3bac BB |
15714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15715 | (eval $ac_try) 2>&5 | |
15716 | ac_status=$? | |
8934764e | 15717 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac BB |
15718 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
15719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15720 | (eval $ac_try) 2>&5 | |
15721 | ac_status=$? | |
8934764e | 15722 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac BB |
15723 | (exit $ac_status); }; }; then |
15724 | ||
8934764e BB |
15725 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
15726 | $as_echo "yes" >&6; } | |
bf9f3bac BB |
15727 | |
15728 | cat >>confdefs.h <<\_ACEOF | |
15729 | #define HAVE_3ARGS_INIT_WORK 1 | |
15730 | _ACEOF | |
15731 | ||
15732 | ||
15733 | else | |
8934764e | 15734 | $as_echo "$as_me: failed program was:" >&5 |
bf9f3bac BB |
15735 | sed 's/^/| /' conftest.$ac_ext >&5 |
15736 | ||
8934764e BB |
15737 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
15738 | $as_echo "no" >&6; } | |
bf9f3bac | 15739 | |
c5f70460 BB |
15740 | |
15741 | ||
bf9f3bac | 15742 | fi |
c5f70460 BB |
15743 | |
15744 | rm -Rf build | |
15745 | ||
bf9f3bac BB |
15746 | |
15747 | ||
8934764e BB |
15748 | { $as_echo "$as_me:$LINENO: checking whether register_sysctl_table() wants 2 args" >&5 |
15749 | $as_echo_n "checking whether register_sysctl_table() wants 2 args... " >&6; } | |
bf9f3bac BB |
15750 | |
15751 | ||
dbe561d8 | 15752 | cat confdefs.h - <<_ACEOF >conftest.c |
bf9f3bac BB |
15753 | /* confdefs.h. */ |
15754 | _ACEOF | |
15755 | cat confdefs.h >>conftest.$ac_ext | |
15756 | cat >>conftest.$ac_ext <<_ACEOF | |
15757 | /* end confdefs.h. */ | |
15758 | ||
15759 | ||
15760 | #include <linux/sysctl.h> | |
15761 | ||
15762 | int | |
15763 | main (void) | |
15764 | { | |
15765 | ||
15766 | return register_sysctl_table(NULL,0); | |
15767 | ||
15768 | ; | |
15769 | return 0; | |
15770 | } | |
15771 | ||
15772 | _ACEOF | |
15773 | ||
c5f70460 BB |
15774 | |
15775 | rm -Rf build && mkdir -p build | |
15776 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 15777 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
bf9f3bac BB |
15778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15779 | (eval $ac_try) 2>&5 | |
15780 | ac_status=$? | |
8934764e | 15781 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac BB |
15782 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
15783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15784 | (eval $ac_try) 2>&5 | |
15785 | ac_status=$? | |
8934764e | 15786 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac BB |
15787 | (exit $ac_status); }; }; then |
15788 | ||
8934764e BB |
15789 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
15790 | $as_echo "yes" >&6; } | |
bf9f3bac BB |
15791 | |
15792 | cat >>confdefs.h <<\_ACEOF | |
15793 | #define HAVE_2ARGS_REGISTER_SYSCTL 1 | |
15794 | _ACEOF | |
15795 | ||
15796 | ||
15797 | else | |
8934764e | 15798 | $as_echo "$as_me: failed program was:" >&5 |
bf9f3bac BB |
15799 | sed 's/^/| /' conftest.$ac_ext >&5 |
15800 | ||
8934764e BB |
15801 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
15802 | $as_echo "no" >&6; } | |
bf9f3bac | 15803 | |
c5f70460 BB |
15804 | |
15805 | ||
bf9f3bac | 15806 | fi |
c5f70460 BB |
15807 | |
15808 | rm -Rf build | |
15809 | ||
bf9f3bac BB |
15810 | |
15811 | ||
15812 | ||
8934764e BB |
15813 | { $as_echo "$as_me:$LINENO: checking whether set_shrinker() available" >&5 |
15814 | $as_echo_n "checking whether set_shrinker() available... " >&6; } | |
bf9f3bac BB |
15815 | |
15816 | ||
dbe561d8 | 15817 | cat confdefs.h - <<_ACEOF >conftest.c |
bf9f3bac BB |
15818 | /* confdefs.h. */ |
15819 | _ACEOF | |
15820 | cat confdefs.h >>conftest.$ac_ext | |
15821 | cat >>conftest.$ac_ext <<_ACEOF | |
15822 | /* end confdefs.h. */ | |
15823 | ||
15824 | ||
15825 | #include <linux/mm.h> | |
15826 | ||
15827 | int | |
15828 | main (void) | |
15829 | { | |
15830 | ||
15831 | return set_shrinker(DEFAULT_SEEKS, NULL); | |
15832 | ||
15833 | ; | |
15834 | return 0; | |
15835 | } | |
15836 | ||
15837 | _ACEOF | |
15838 | ||
c5f70460 BB |
15839 | |
15840 | rm -Rf build && mkdir -p build | |
15841 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 15842 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
bf9f3bac BB |
15843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15844 | (eval $ac_try) 2>&5 | |
15845 | ac_status=$? | |
8934764e | 15846 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac BB |
15847 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
15848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15849 | (eval $ac_try) 2>&5 | |
15850 | ac_status=$? | |
8934764e | 15851 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac BB |
15852 | (exit $ac_status); }; }; then |
15853 | ||
8934764e BB |
15854 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
15855 | $as_echo "yes" >&6; } | |
bf9f3bac BB |
15856 | |
15857 | cat >>confdefs.h <<\_ACEOF | |
15858 | #define HAVE_SET_SHRINKER 1 | |
15859 | _ACEOF | |
15860 | ||
15861 | ||
15862 | else | |
8934764e | 15863 | $as_echo "$as_me: failed program was:" >&5 |
bf9f3bac BB |
15864 | sed 's/^/| /' conftest.$ac_ext >&5 |
15865 | ||
8934764e BB |
15866 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
15867 | $as_echo "no" >&6; } | |
bf9f3bac | 15868 | |
c5f70460 BB |
15869 | |
15870 | ||
bf9f3bac | 15871 | fi |
c5f70460 BB |
15872 | |
15873 | rm -Rf build | |
15874 | ||
bf9f3bac BB |
15875 | |
15876 | ||
8934764e BB |
15877 | { $as_echo "$as_me:$LINENO: checking whether struct path used in struct nameidata" >&5 |
15878 | $as_echo_n "checking whether struct path used in struct nameidata... " >&6; } | |
bf9f3bac BB |
15879 | |
15880 | ||
dbe561d8 | 15881 | cat confdefs.h - <<_ACEOF >conftest.c |
bf9f3bac BB |
15882 | /* confdefs.h. */ |
15883 | _ACEOF | |
15884 | cat confdefs.h >>conftest.$ac_ext | |
15885 | cat >>conftest.$ac_ext <<_ACEOF | |
15886 | /* end confdefs.h. */ | |
15887 | ||
15888 | ||
15889 | #include <linux/namei.h> | |
15890 | ||
15891 | int | |
15892 | main (void) | |
15893 | { | |
15894 | ||
15895 | struct nameidata nd; | |
15896 | ||
15897 | nd.path.mnt = NULL; | |
15898 | nd.path.dentry = NULL; | |
15899 | ||
15900 | ; | |
15901 | return 0; | |
15902 | } | |
15903 | ||
15904 | _ACEOF | |
15905 | ||
c5f70460 BB |
15906 | |
15907 | rm -Rf build && mkdir -p build | |
15908 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 15909 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
bf9f3bac BB |
15910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15911 | (eval $ac_try) 2>&5 | |
15912 | ac_status=$? | |
8934764e | 15913 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac BB |
15914 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
15915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15916 | (eval $ac_try) 2>&5 | |
15917 | ac_status=$? | |
8934764e | 15918 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac BB |
15919 | (exit $ac_status); }; }; then |
15920 | ||
8934764e BB |
15921 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
15922 | $as_echo "yes" >&6; } | |
bf9f3bac BB |
15923 | |
15924 | cat >>confdefs.h <<\_ACEOF | |
15925 | #define HAVE_PATH_IN_NAMEIDATA 1 | |
15926 | _ACEOF | |
15927 | ||
15928 | ||
15929 | else | |
8934764e | 15930 | $as_echo "$as_me: failed program was:" >&5 |
bf9f3bac BB |
15931 | sed 's/^/| /' conftest.$ac_ext >&5 |
15932 | ||
8934764e BB |
15933 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
15934 | $as_echo "no" >&6; } | |
bf9f3bac | 15935 | |
c5f70460 BB |
15936 | |
15937 | ||
bf9f3bac | 15938 | fi |
c5f70460 BB |
15939 | |
15940 | rm -Rf build | |
15941 | ||
bf9f3bac BB |
15942 | |
15943 | ||
15944 | ||
8934764e BB |
15945 | { $as_echo "$as_me:$LINENO: checking whether symbol task_curr is exported" >&5 |
15946 | $as_echo_n "checking whether symbol task_curr is exported... " >&6; } | |
2e0e7e69 BB |
15947 | grep -q -E '[[:space:]]task_curr[[:space:]]' \ |
15948 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
bf9f3bac BB |
15949 | rc=$? |
15950 | if test $rc -ne 0; then | |
15951 | export=0 | |
15952 | for file in kernel/sched.c; do | |
2e0e7e69 BB |
15953 | grep -q -E "EXPORT_SYMBOL.*(task_curr)" \ |
15954 | "$LINUX_OBJ/$file" 2>/dev/null | |
bf9f3bac BB |
15955 | rc=$? |
15956 | if test $rc -eq 0; then | |
15957 | export=1 | |
15958 | break; | |
15959 | fi | |
15960 | done | |
15961 | if test $export -eq 0; then | |
8934764e BB |
15962 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
15963 | $as_echo "no" >&6; } | |
bf9f3bac BB |
15964 | |
15965 | else | |
8934764e BB |
15966 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
15967 | $as_echo "yes" >&6; } | |
bf9f3bac BB |
15968 | |
15969 | cat >>confdefs.h <<\_ACEOF | |
15970 | #define HAVE_TASK_CURR 1 | |
15971 | _ACEOF | |
15972 | ||
15973 | fi | |
15974 | else | |
8934764e BB |
15975 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
15976 | $as_echo "yes" >&6; } | |
bf9f3bac BB |
15977 | |
15978 | cat >>confdefs.h <<\_ACEOF | |
15979 | #define HAVE_TASK_CURR 1 | |
15980 | _ACEOF | |
15981 | ||
15982 | fi | |
15983 | ||
15984 | ||
8934764e BB |
15985 | { $as_echo "$as_me:$LINENO: checking whether unnumbered sysctl support exists" >&5 |
15986 | $as_echo_n "checking whether unnumbered sysctl support exists... " >&6; } | |
bf9f3bac BB |
15987 | |
15988 | ||
dbe561d8 | 15989 | cat confdefs.h - <<_ACEOF >conftest.c |
bf9f3bac BB |
15990 | /* confdefs.h. */ |
15991 | _ACEOF | |
15992 | cat confdefs.h >>conftest.$ac_ext | |
15993 | cat >>conftest.$ac_ext <<_ACEOF | |
15994 | /* end confdefs.h. */ | |
15995 | ||
15996 | ||
15997 | #include <linux/sysctl.h> | |
15998 | ||
15999 | int | |
16000 | main (void) | |
16001 | { | |
16002 | ||
16003 | #ifndef CTL_UNNUMBERED | |
16004 | #error CTL_UNNUMBERED undefined | |
16005 | #endif | |
16006 | ||
16007 | ; | |
16008 | return 0; | |
16009 | } | |
16010 | ||
16011 | _ACEOF | |
16012 | ||
c5f70460 BB |
16013 | |
16014 | rm -Rf build && mkdir -p build | |
16015 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 16016 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
bf9f3bac BB |
16017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16018 | (eval $ac_try) 2>&5 | |
16019 | ac_status=$? | |
8934764e | 16020 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac BB |
16021 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
16022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16023 | (eval $ac_try) 2>&5 | |
16024 | ac_status=$? | |
8934764e | 16025 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac BB |
16026 | (exit $ac_status); }; }; then |
16027 | ||
8934764e BB |
16028 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
16029 | $as_echo "yes" >&6; } | |
bf9f3bac BB |
16030 | |
16031 | cat >>confdefs.h <<\_ACEOF | |
16032 | #define HAVE_CTL_UNNUMBERED 1 | |
16033 | _ACEOF | |
16034 | ||
16035 | ||
79a3bf13 BB |
16036 | else |
16037 | $as_echo "$as_me: failed program was:" >&5 | |
16038 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16039 | ||
16040 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
16041 | $as_echo "no" >&6; } | |
16042 | ||
16043 | ||
16044 | ||
16045 | fi | |
16046 | ||
16047 | rm -Rf build | |
16048 | ||
16049 | ||
16050 | ||
16051 | ||
16052 | { $as_echo "$as_me:$LINENO: checking whether struct ctl_table has ctl_name" >&5 | |
16053 | $as_echo_n "checking whether struct ctl_table has ctl_name... " >&6; } | |
16054 | ||
16055 | ||
dbe561d8 | 16056 | cat confdefs.h - <<_ACEOF >conftest.c |
79a3bf13 BB |
16057 | /* confdefs.h. */ |
16058 | _ACEOF | |
16059 | cat confdefs.h >>conftest.$ac_ext | |
16060 | cat >>conftest.$ac_ext <<_ACEOF | |
16061 | /* end confdefs.h. */ | |
16062 | ||
16063 | ||
16064 | #include <linux/sysctl.h> | |
16065 | ||
16066 | int | |
16067 | main (void) | |
16068 | { | |
16069 | ||
16070 | struct ctl_table ctl; | |
16071 | ctl.ctl_name = 0; | |
16072 | ||
16073 | ; | |
16074 | return 0; | |
16075 | } | |
16076 | ||
16077 | _ACEOF | |
16078 | ||
16079 | ||
16080 | rm -Rf build && mkdir -p build | |
16081 | echo "obj-m := conftest.o" >build/Makefile | |
16082 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
16083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16084 | (eval $ac_try) 2>&5 | |
16085 | ac_status=$? | |
16086 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16087 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16089 | (eval $ac_try) 2>&5 | |
16090 | ac_status=$? | |
16091 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16092 | (exit $ac_status); }; }; then | |
16093 | ||
16094 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
16095 | $as_echo "yes" >&6; } | |
16096 | ||
16097 | cat >>confdefs.h <<\_ACEOF | |
16098 | #define HAVE_CTL_NAME 1 | |
16099 | _ACEOF | |
16100 | ||
16101 | ||
bf9f3bac | 16102 | else |
8934764e | 16103 | $as_echo "$as_me: failed program was:" >&5 |
bf9f3bac BB |
16104 | sed 's/^/| /' conftest.$ac_ext >&5 |
16105 | ||
8934764e BB |
16106 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
16107 | $as_echo "no" >&6; } | |
bf9f3bac | 16108 | |
c5f70460 BB |
16109 | |
16110 | ||
bf9f3bac | 16111 | fi |
c5f70460 BB |
16112 | |
16113 | rm -Rf build | |
16114 | ||
bf9f3bac BB |
16115 | |
16116 | ||
8934764e BB |
16117 | { $as_echo "$as_me:$LINENO: checking whether fls64() is available" >&5 |
16118 | $as_echo_n "checking whether fls64() is available... " >&6; } | |
bf9f3bac BB |
16119 | |
16120 | ||
dbe561d8 | 16121 | cat confdefs.h - <<_ACEOF >conftest.c |
bf9f3bac BB |
16122 | /* confdefs.h. */ |
16123 | _ACEOF | |
16124 | cat confdefs.h >>conftest.$ac_ext | |
16125 | cat >>conftest.$ac_ext <<_ACEOF | |
16126 | /* end confdefs.h. */ | |
16127 | ||
16128 | ||
16129 | #include <linux/bitops.h> | |
16130 | ||
16131 | int | |
16132 | main (void) | |
16133 | { | |
16134 | ||
16135 | return fls64(0); | |
16136 | ||
16137 | ; | |
16138 | return 0; | |
16139 | } | |
16140 | ||
16141 | _ACEOF | |
16142 | ||
c5f70460 BB |
16143 | |
16144 | rm -Rf build && mkdir -p build | |
16145 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 16146 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
bf9f3bac BB |
16147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16148 | (eval $ac_try) 2>&5 | |
16149 | ac_status=$? | |
8934764e | 16150 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac BB |
16151 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
16152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16153 | (eval $ac_try) 2>&5 | |
16154 | ac_status=$? | |
8934764e | 16155 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac BB |
16156 | (exit $ac_status); }; }; then |
16157 | ||
8934764e BB |
16158 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
16159 | $as_echo "yes" >&6; } | |
bf9f3bac BB |
16160 | |
16161 | cat >>confdefs.h <<\_ACEOF | |
16162 | #define HAVE_FLS64 1 | |
16163 | _ACEOF | |
16164 | ||
16165 | ||
16166 | else | |
8934764e | 16167 | $as_echo "$as_me: failed program was:" >&5 |
bf9f3bac BB |
16168 | sed 's/^/| /' conftest.$ac_ext >&5 |
16169 | ||
8934764e BB |
16170 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
16171 | $as_echo "no" >&6; } | |
bf9f3bac | 16172 | |
c5f70460 BB |
16173 | |
16174 | ||
bf9f3bac | 16175 | fi |
c5f70460 BB |
16176 | |
16177 | rm -Rf build | |
16178 | ||
bf9f3bac BB |
16179 | |
16180 | ||
16181 | ||
8934764e BB |
16182 | { $as_echo "$as_me:$LINENO: checking whether symbol device_create is exported" >&5 |
16183 | $as_echo_n "checking whether symbol device_create is exported... " >&6; } | |
2e0e7e69 BB |
16184 | grep -q -E '[[:space:]]device_create[[:space:]]' \ |
16185 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
bf9f3bac BB |
16186 | rc=$? |
16187 | if test $rc -ne 0; then | |
16188 | export=0 | |
16189 | for file in drivers/base/core.c; do | |
2e0e7e69 BB |
16190 | grep -q -E "EXPORT_SYMBOL.*(device_create)" \ |
16191 | "$LINUX_OBJ/$file" 2>/dev/null | |
bf9f3bac BB |
16192 | rc=$? |
16193 | if test $rc -eq 0; then | |
16194 | export=1 | |
16195 | break; | |
16196 | fi | |
16197 | done | |
16198 | if test $export -eq 0; then | |
8934764e BB |
16199 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
16200 | $as_echo "no" >&6; } | |
bf9f3bac BB |
16201 | |
16202 | else | |
8934764e BB |
16203 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
16204 | $as_echo "yes" >&6; } | |
bf9f3bac BB |
16205 | |
16206 | cat >>confdefs.h <<\_ACEOF | |
16207 | #define HAVE_DEVICE_CREATE 1 | |
16208 | _ACEOF | |
16209 | ||
16210 | fi | |
16211 | else | |
8934764e BB |
16212 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
16213 | $as_echo "yes" >&6; } | |
bf9f3bac BB |
16214 | |
16215 | cat >>confdefs.h <<\_ACEOF | |
16216 | #define HAVE_DEVICE_CREATE 1 | |
16217 | _ACEOF | |
16218 | ||
16219 | fi | |
16220 | ||
16221 | ||
16222 | ||
8934764e BB |
16223 | { $as_echo "$as_me:$LINENO: checking whether device_create() wants 5 args" >&5 |
16224 | $as_echo_n "checking whether device_create() wants 5 args... " >&6; } | |
8123ac4f BB |
16225 | tmp_flags="$EXTRA_KCFLAGS" |
16226 | EXTRA_KCFLAGS="-Werror" | |
16227 | ||
16228 | ||
dbe561d8 | 16229 | cat confdefs.h - <<_ACEOF >conftest.c |
8123ac4f BB |
16230 | /* confdefs.h. */ |
16231 | _ACEOF | |
16232 | cat confdefs.h >>conftest.$ac_ext | |
16233 | cat >>conftest.$ac_ext <<_ACEOF | |
16234 | /* end confdefs.h. */ | |
16235 | ||
16236 | ||
16237 | #include <linux/device.h> | |
16238 | ||
16239 | int | |
16240 | main (void) | |
16241 | { | |
16242 | ||
16243 | device_create(NULL, NULL, 0, NULL, "%d", 1); | |
16244 | ||
16245 | ; | |
16246 | return 0; | |
16247 | } | |
16248 | ||
16249 | _ACEOF | |
16250 | ||
16251 | ||
16252 | rm -Rf build && mkdir -p build | |
16253 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 16254 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
8123ac4f BB |
16255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16256 | (eval $ac_try) 2>&5 | |
16257 | ac_status=$? | |
8934764e | 16258 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8123ac4f BB |
16259 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
16260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16261 | (eval $ac_try) 2>&5 | |
16262 | ac_status=$? | |
8934764e | 16263 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8123ac4f BB |
16264 | (exit $ac_status); }; }; then |
16265 | ||
8934764e BB |
16266 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
16267 | $as_echo "yes" >&6; } | |
8123ac4f BB |
16268 | |
16269 | cat >>confdefs.h <<\_ACEOF | |
16270 | #define HAVE_5ARGS_DEVICE_CREATE 1 | |
16271 | _ACEOF | |
16272 | ||
16273 | ||
16274 | else | |
8934764e | 16275 | $as_echo "$as_me: failed program was:" >&5 |
8123ac4f BB |
16276 | sed 's/^/| /' conftest.$ac_ext >&5 |
16277 | ||
8934764e BB |
16278 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
16279 | $as_echo "no" >&6; } | |
8123ac4f BB |
16280 | |
16281 | ||
16282 | ||
16283 | fi | |
16284 | ||
16285 | rm -Rf build | |
16286 | ||
16287 | ||
16288 | EXTRA_KCFLAGS="$tmp_flags" | |
16289 | ||
16290 | ||
8934764e BB |
16291 | { $as_echo "$as_me:$LINENO: checking whether symbol class_device_create is exported" >&5 |
16292 | $as_echo_n "checking whether symbol class_device_create is exported... " >&6; } | |
2e0e7e69 BB |
16293 | grep -q -E '[[:space:]]class_device_create[[:space:]]' \ |
16294 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
bf9f3bac BB |
16295 | rc=$? |
16296 | if test $rc -ne 0; then | |
16297 | export=0 | |
16298 | for file in drivers/base/class.c; do | |
2e0e7e69 BB |
16299 | grep -q -E "EXPORT_SYMBOL.*(class_device_create)" \ |
16300 | "$LINUX_OBJ/$file" 2>/dev/null | |
bf9f3bac BB |
16301 | rc=$? |
16302 | if test $rc -eq 0; then | |
16303 | export=1 | |
16304 | break; | |
16305 | fi | |
16306 | done | |
16307 | if test $export -eq 0; then | |
8934764e BB |
16308 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
16309 | $as_echo "no" >&6; } | |
bf9f3bac BB |
16310 | |
16311 | else | |
8934764e BB |
16312 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
16313 | $as_echo "yes" >&6; } | |
bf9f3bac BB |
16314 | |
16315 | cat >>confdefs.h <<\_ACEOF | |
16316 | #define HAVE_CLASS_DEVICE_CREATE 1 | |
16317 | _ACEOF | |
16318 | ||
16319 | fi | |
16320 | else | |
8934764e BB |
16321 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
16322 | $as_echo "yes" >&6; } | |
bf9f3bac BB |
16323 | |
16324 | cat >>confdefs.h <<\_ACEOF | |
16325 | #define HAVE_CLASS_DEVICE_CREATE 1 | |
16326 | _ACEOF | |
16327 | ||
16328 | fi | |
16329 | ||
16330 | ||
16331 | ||
8934764e BB |
16332 | { $as_echo "$as_me:$LINENO: checking whether symbol set_normalized_timespec is exported" >&5 |
16333 | $as_echo_n "checking whether symbol set_normalized_timespec is exported... " >&6; } | |
2e0e7e69 BB |
16334 | grep -q -E '[[:space:]]set_normalized_timespec[[:space:]]' \ |
16335 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
bf9f3bac BB |
16336 | rc=$? |
16337 | if test $rc -ne 0; then | |
16338 | export=0 | |
16339 | for file in kernel/time.c; do | |
2e0e7e69 BB |
16340 | grep -q -E "EXPORT_SYMBOL.*(set_normalized_timespec)" \ |
16341 | "$LINUX_OBJ/$file" 2>/dev/null | |
bf9f3bac BB |
16342 | rc=$? |
16343 | if test $rc -eq 0; then | |
16344 | export=1 | |
16345 | break; | |
16346 | fi | |
16347 | done | |
16348 | if test $export -eq 0; then | |
8934764e BB |
16349 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
16350 | $as_echo "no" >&6; } | |
bf9f3bac | 16351 | |
6ae7fef5 | 16352 | else |
8934764e BB |
16353 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
16354 | $as_echo "yes" >&6; } | |
6ae7fef5 BB |
16355 | |
16356 | cat >>confdefs.h <<\_ACEOF | |
16357 | #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1 | |
16358 | _ACEOF | |
16359 | ||
16360 | fi | |
16361 | else | |
8934764e BB |
16362 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
16363 | $as_echo "yes" >&6; } | |
6ae7fef5 BB |
16364 | |
16365 | cat >>confdefs.h <<\_ACEOF | |
16366 | #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1 | |
16367 | _ACEOF | |
16368 | ||
16369 | fi | |
16370 | ||
16371 | ||
16372 | ||
8934764e BB |
16373 | { $as_echo "$as_me:$LINENO: checking whether set_normalized_timespec() is an inline" >&5 |
16374 | $as_echo_n "checking whether set_normalized_timespec() is an inline... " >&6; } | |
6ae7fef5 BB |
16375 | |
16376 | ||
dbe561d8 | 16377 | cat confdefs.h - <<_ACEOF >conftest.c |
6ae7fef5 BB |
16378 | /* confdefs.h. */ |
16379 | _ACEOF | |
16380 | cat confdefs.h >>conftest.$ac_ext | |
16381 | cat >>conftest.$ac_ext <<_ACEOF | |
16382 | /* end confdefs.h. */ | |
16383 | ||
16384 | ||
16385 | #include <linux/time.h> | |
16386 | void set_normalized_timespec(struct timespec *ts, | |
16387 | time_t sec, long nsec) { } | |
16388 | ||
16389 | int | |
16390 | main (void) | |
16391 | { | |
16392 | ||
16393 | ; | |
16394 | return 0; | |
16395 | } | |
16396 | ||
16397 | _ACEOF | |
16398 | ||
16399 | ||
16400 | rm -Rf build && mkdir -p build | |
16401 | echo "obj-m := conftest.o" >build/Makefile | |
16402 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
16403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16404 | (eval $ac_try) 2>&5 | |
16405 | ac_status=$? | |
8934764e | 16406 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6ae7fef5 BB |
16407 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
16408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16409 | (eval $ac_try) 2>&5 | |
16410 | ac_status=$? | |
8934764e | 16411 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6ae7fef5 BB |
16412 | (exit $ac_status); }; }; then |
16413 | ||
8934764e BB |
16414 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
16415 | $as_echo "no" >&6; } | |
6ae7fef5 BB |
16416 | |
16417 | else | |
8934764e | 16418 | $as_echo "$as_me: failed program was:" >&5 |
6ae7fef5 BB |
16419 | sed 's/^/| /' conftest.$ac_ext >&5 |
16420 | ||
8934764e BB |
16421 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
16422 | $as_echo "yes" >&6; } | |
6ae7fef5 BB |
16423 | |
16424 | cat >>confdefs.h <<\_ACEOF | |
16425 | #define HAVE_SET_NORMALIZED_TIMESPEC_INLINE 1 | |
16426 | _ACEOF | |
16427 | ||
16428 | ||
16429 | ||
16430 | ||
16431 | fi | |
16432 | ||
16433 | rm -Rf build | |
16434 | ||
16435 | ||
16436 | ||
16437 | ||
8934764e BB |
16438 | { $as_echo "$as_me:$LINENO: checking whether timespec_sub() is available" >&5 |
16439 | $as_echo_n "checking whether timespec_sub() is available... " >&6; } | |
6ae7fef5 BB |
16440 | |
16441 | ||
dbe561d8 | 16442 | cat confdefs.h - <<_ACEOF >conftest.c |
6ae7fef5 BB |
16443 | /* confdefs.h. */ |
16444 | _ACEOF | |
16445 | cat confdefs.h >>conftest.$ac_ext | |
16446 | cat >>conftest.$ac_ext <<_ACEOF | |
16447 | /* end confdefs.h. */ | |
16448 | ||
16449 | ||
16450 | #include <linux/time.h> | |
16451 | ||
16452 | int | |
16453 | main (void) | |
16454 | { | |
16455 | ||
16456 | struct timespec a, b, c = { 0 }; | |
16457 | c = timespec_sub(a, b); | |
16458 | ||
16459 | ; | |
16460 | return 0; | |
16461 | } | |
16462 | ||
16463 | _ACEOF | |
16464 | ||
16465 | ||
16466 | rm -Rf build && mkdir -p build | |
16467 | echo "obj-m := conftest.o" >build/Makefile | |
16468 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
16469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16470 | (eval $ac_try) 2>&5 | |
16471 | ac_status=$? | |
8934764e | 16472 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6ae7fef5 BB |
16473 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
16474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16475 | (eval $ac_try) 2>&5 | |
16476 | ac_status=$? | |
8934764e | 16477 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6ae7fef5 BB |
16478 | (exit $ac_status); }; }; then |
16479 | ||
8934764e BB |
16480 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
16481 | $as_echo "yes" >&6; } | |
6ae7fef5 BB |
16482 | |
16483 | cat >>confdefs.h <<\_ACEOF | |
16484 | #define HAVE_TIMESPEC_SUB 1 | |
16485 | _ACEOF | |
16486 | ||
16487 | ||
16488 | else | |
8934764e | 16489 | $as_echo "$as_me: failed program was:" >&5 |
6ae7fef5 BB |
16490 | sed 's/^/| /' conftest.$ac_ext >&5 |
16491 | ||
8934764e BB |
16492 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
16493 | $as_echo "no" >&6; } | |
6ae7fef5 BB |
16494 | |
16495 | ||
16496 | ||
16497 | fi | |
16498 | ||
16499 | rm -Rf build | |
16500 | ||
16501 | ||
16502 | ||
16503 | ||
8934764e BB |
16504 | { $as_echo "$as_me:$LINENO: checking whether init_utsname() is available" >&5 |
16505 | $as_echo_n "checking whether init_utsname() is available... " >&6; } | |
6ae7fef5 BB |
16506 | |
16507 | ||
dbe561d8 | 16508 | cat confdefs.h - <<_ACEOF >conftest.c |
6ae7fef5 BB |
16509 | /* confdefs.h. */ |
16510 | _ACEOF | |
16511 | cat confdefs.h >>conftest.$ac_ext | |
16512 | cat >>conftest.$ac_ext <<_ACEOF | |
16513 | /* end confdefs.h. */ | |
16514 | ||
16515 | ||
16516 | #include <linux/utsname.h> | |
16517 | ||
16518 | int | |
16519 | main (void) | |
16520 | { | |
16521 | ||
16522 | struct new_utsname *a = init_utsname(); | |
16523 | ||
16524 | ; | |
16525 | return 0; | |
16526 | } | |
16527 | ||
16528 | _ACEOF | |
16529 | ||
16530 | ||
16531 | rm -Rf build && mkdir -p build | |
16532 | echo "obj-m := conftest.o" >build/Makefile | |
16533 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
16534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16535 | (eval $ac_try) 2>&5 | |
16536 | ac_status=$? | |
8934764e | 16537 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6ae7fef5 BB |
16538 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
16539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16540 | (eval $ac_try) 2>&5 | |
16541 | ac_status=$? | |
8934764e | 16542 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6ae7fef5 BB |
16543 | (exit $ac_status); }; }; then |
16544 | ||
8934764e BB |
16545 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
16546 | $as_echo "yes" >&6; } | |
6ae7fef5 BB |
16547 | |
16548 | cat >>confdefs.h <<\_ACEOF | |
16549 | #define HAVE_INIT_UTSNAME 1 | |
16550 | _ACEOF | |
16551 | ||
16552 | ||
16553 | else | |
8934764e | 16554 | $as_echo "$as_me: failed program was:" >&5 |
6ae7fef5 BB |
16555 | sed 's/^/| /' conftest.$ac_ext >&5 |
16556 | ||
8934764e BB |
16557 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
16558 | $as_echo "no" >&6; } | |
6ae7fef5 BB |
16559 | |
16560 | ||
16561 | ||
16562 | fi | |
16563 | ||
16564 | rm -Rf build | |
16565 | ||
16566 | ||
16567 | ||
16568 | ||
8934764e BB |
16569 | { $as_echo "$as_me:$LINENO: checking whether header linux/fdtable.h exists" >&5 |
16570 | $as_echo_n "checking whether header linux/fdtable.h exists... " >&6; } | |
6ae7fef5 BB |
16571 | |
16572 | ||
dbe561d8 | 16573 | cat confdefs.h - <<_ACEOF >conftest.c |
6ae7fef5 BB |
16574 | /* confdefs.h. */ |
16575 | _ACEOF | |
16576 | cat confdefs.h >>conftest.$ac_ext | |
16577 | cat >>conftest.$ac_ext <<_ACEOF | |
16578 | /* end confdefs.h. */ | |
16579 | ||
16580 | ||
16581 | #include <linux/fdtable.h> | |
16582 | ||
16583 | int | |
16584 | main (void) | |
16585 | { | |
16586 | ||
16587 | return 0; | |
16588 | ||
16589 | ; | |
16590 | return 0; | |
16591 | } | |
16592 | ||
16593 | _ACEOF | |
16594 | ||
16595 | ||
16596 | rm -Rf build && mkdir -p build | |
16597 | echo "obj-m := conftest.o" >build/Makefile | |
16598 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
16599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16600 | (eval $ac_try) 2>&5 | |
16601 | ac_status=$? | |
8934764e | 16602 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6ae7fef5 BB |
16603 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
16604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16605 | (eval $ac_try) 2>&5 | |
16606 | ac_status=$? | |
8934764e | 16607 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6ae7fef5 BB |
16608 | (exit $ac_status); }; }; then |
16609 | ||
bf9f3bac BB |
16610 | |
16611 | cat >>confdefs.h <<\_ACEOF | |
6ae7fef5 | 16612 | #define HAVE_FDTABLE_HEADER 1 |
bf9f3bac BB |
16613 | _ACEOF |
16614 | ||
8934764e BB |
16615 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
16616 | $as_echo "yes" >&6; } | |
bf9f3bac | 16617 | |
bf9f3bac | 16618 | |
6ae7fef5 | 16619 | else |
8934764e | 16620 | $as_echo "$as_me: failed program was:" >&5 |
6ae7fef5 BB |
16621 | sed 's/^/| /' conftest.$ac_ext >&5 |
16622 | ||
8934764e BB |
16623 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
16624 | $as_echo "no" >&6; } | |
bf9f3bac BB |
16625 | |
16626 | ||
16627 | ||
6ae7fef5 BB |
16628 | |
16629 | fi | |
16630 | ||
16631 | rm -Rf build | |
16632 | ||
16633 | ||
16634 | ||
16635 | ||
16636 | ||
8934764e BB |
16637 | { $as_echo "$as_me:$LINENO: checking whether files_fdtable() is available" >&5 |
16638 | $as_echo_n "checking whether files_fdtable() is available... " >&6; } | |
bf9f3bac BB |
16639 | |
16640 | ||
dbe561d8 | 16641 | cat confdefs.h - <<_ACEOF >conftest.c |
bf9f3bac BB |
16642 | /* confdefs.h. */ |
16643 | _ACEOF | |
16644 | cat confdefs.h >>conftest.$ac_ext | |
16645 | cat >>conftest.$ac_ext <<_ACEOF | |
16646 | /* end confdefs.h. */ | |
16647 | ||
16648 | ||
6ae7fef5 BB |
16649 | #include <linux/sched.h> |
16650 | #include <linux/file.h> | |
16651 | #ifdef HAVE_FDTABLE_HEADER | |
16652 | #include <linux/fdtable.h> | |
16653 | #endif | |
bf9f3bac BB |
16654 | |
16655 | int | |
16656 | main (void) | |
16657 | { | |
16658 | ||
6ae7fef5 BB |
16659 | struct files_struct *files = current->files; |
16660 | struct fdtable *fdt = files_fdtable(files); | |
16661 | ||
bf9f3bac BB |
16662 | ; |
16663 | return 0; | |
16664 | } | |
16665 | ||
16666 | _ACEOF | |
16667 | ||
c5f70460 BB |
16668 | |
16669 | rm -Rf build && mkdir -p build | |
16670 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 16671 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
bf9f3bac BB |
16672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16673 | (eval $ac_try) 2>&5 | |
16674 | ac_status=$? | |
8934764e | 16675 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac BB |
16676 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
16677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16678 | (eval $ac_try) 2>&5 | |
16679 | ac_status=$? | |
8934764e | 16680 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac BB |
16681 | (exit $ac_status); }; }; then |
16682 | ||
8934764e BB |
16683 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
16684 | $as_echo "yes" >&6; } | |
bf9f3bac BB |
16685 | |
16686 | cat >>confdefs.h <<\_ACEOF | |
6ae7fef5 | 16687 | #define HAVE_FILES_FDTABLE 1 |
bf9f3bac BB |
16688 | _ACEOF |
16689 | ||
16690 | ||
6ae7fef5 | 16691 | else |
8934764e | 16692 | $as_echo "$as_me: failed program was:" >&5 |
6ae7fef5 BB |
16693 | sed 's/^/| /' conftest.$ac_ext >&5 |
16694 | ||
8934764e BB |
16695 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
16696 | $as_echo "no" >&6; } | |
6ae7fef5 | 16697 | |
c5f70460 BB |
16698 | |
16699 | ||
bf9f3bac | 16700 | fi |
c5f70460 BB |
16701 | |
16702 | rm -Rf build | |
16703 | ||
bf9f3bac BB |
16704 | |
16705 | ||
16706 | ||
8934764e BB |
16707 | { $as_echo "$as_me:$LINENO: checking whether header linux/uaccess.h exists" >&5 |
16708 | $as_echo_n "checking whether header linux/uaccess.h exists... " >&6; } | |
bf9f3bac BB |
16709 | |
16710 | ||
dbe561d8 | 16711 | cat confdefs.h - <<_ACEOF >conftest.c |
bf9f3bac BB |
16712 | /* confdefs.h. */ |
16713 | _ACEOF | |
16714 | cat confdefs.h >>conftest.$ac_ext | |
16715 | cat >>conftest.$ac_ext <<_ACEOF | |
16716 | /* end confdefs.h. */ | |
16717 | ||
16718 | ||
6ae7fef5 | 16719 | #include <linux/uaccess.h> |
bf9f3bac BB |
16720 | |
16721 | int | |
16722 | main (void) | |
16723 | { | |
16724 | ||
6ae7fef5 | 16725 | return 0; |
bf9f3bac BB |
16726 | |
16727 | ; | |
16728 | return 0; | |
16729 | } | |
16730 | ||
16731 | _ACEOF | |
16732 | ||
c5f70460 BB |
16733 | |
16734 | rm -Rf build && mkdir -p build | |
16735 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 16736 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
bf9f3bac BB |
16737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16738 | (eval $ac_try) 2>&5 | |
16739 | ac_status=$? | |
8934764e | 16740 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac BB |
16741 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
16742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16743 | (eval $ac_try) 2>&5 | |
16744 | ac_status=$? | |
8934764e | 16745 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac BB |
16746 | (exit $ac_status); }; }; then |
16747 | ||
bf9f3bac BB |
16748 | |
16749 | cat >>confdefs.h <<\_ACEOF | |
6ae7fef5 | 16750 | #define HAVE_UACCESS_HEADER 1 |
bf9f3bac BB |
16751 | _ACEOF |
16752 | ||
8934764e BB |
16753 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
16754 | $as_echo "yes" >&6; } | |
6ae7fef5 | 16755 | |
bf9f3bac BB |
16756 | |
16757 | else | |
8934764e | 16758 | $as_echo "$as_me: failed program was:" >&5 |
bf9f3bac BB |
16759 | sed 's/^/| /' conftest.$ac_ext >&5 |
16760 | ||
8934764e BB |
16761 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
16762 | $as_echo "no" >&6; } | |
bf9f3bac | 16763 | |
c5f70460 BB |
16764 | |
16765 | ||
6ae7fef5 | 16766 | |
bf9f3bac | 16767 | fi |
c5f70460 BB |
16768 | |
16769 | rm -Rf build | |
16770 | ||
bf9f3bac BB |
16771 | |
16772 | ||
16773 | ||
6ae7fef5 | 16774 | |
8934764e BB |
16775 | { $as_echo "$as_me:$LINENO: checking whether kmalloc_node() is available" >&5 |
16776 | $as_echo_n "checking whether kmalloc_node() is available... " >&6; } | |
bf9f3bac BB |
16777 | |
16778 | ||
dbe561d8 | 16779 | cat confdefs.h - <<_ACEOF >conftest.c |
bf9f3bac BB |
16780 | /* confdefs.h. */ |
16781 | _ACEOF | |
16782 | cat confdefs.h >>conftest.$ac_ext | |
16783 | cat >>conftest.$ac_ext <<_ACEOF | |
16784 | /* end confdefs.h. */ | |
16785 | ||
16786 | ||
6ae7fef5 | 16787 | #include <linux/slab.h> |
bf9f3bac BB |
16788 | |
16789 | int | |
16790 | main (void) | |
16791 | { | |
16792 | ||
6ae7fef5 | 16793 | void *a = kmalloc_node(1, GFP_KERNEL, 0); |
bf9f3bac BB |
16794 | |
16795 | ; | |
16796 | return 0; | |
16797 | } | |
16798 | ||
16799 | _ACEOF | |
16800 | ||
c5f70460 BB |
16801 | |
16802 | rm -Rf build && mkdir -p build | |
16803 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 16804 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
bf9f3bac BB |
16805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16806 | (eval $ac_try) 2>&5 | |
16807 | ac_status=$? | |
8934764e | 16808 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac BB |
16809 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
16810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16811 | (eval $ac_try) 2>&5 | |
16812 | ac_status=$? | |
8934764e | 16813 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac BB |
16814 | (exit $ac_status); }; }; then |
16815 | ||
8934764e BB |
16816 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
16817 | $as_echo "yes" >&6; } | |
bf9f3bac BB |
16818 | |
16819 | cat >>confdefs.h <<\_ACEOF | |
6ae7fef5 | 16820 | #define HAVE_KMALLOC_NODE 1 |
bf9f3bac BB |
16821 | _ACEOF |
16822 | ||
16823 | ||
16824 | else | |
8934764e BB |
16825 | $as_echo "$as_me: failed program was:" >&5 |
16826 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16827 | ||
16828 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
16829 | $as_echo "no" >&6; } | |
16830 | ||
16831 | ||
16832 | ||
16833 | fi | |
16834 | ||
16835 | rm -Rf build | |
16836 | ||
16837 | ||
16838 | ||
16839 | ||
16840 | { $as_echo "$as_me:$LINENO: checking whether symbol monotonic_clock is exported" >&5 | |
16841 | $as_echo_n "checking whether symbol monotonic_clock is exported... " >&6; } | |
16842 | grep -q -E '[[:space:]]monotonic_clock[[:space:]]' \ | |
16843 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
16844 | rc=$? | |
16845 | if test $rc -ne 0; then | |
16846 | export=0 | |
16847 | for file in ; do | |
16848 | grep -q -E "EXPORT_SYMBOL.*(monotonic_clock)" \ | |
16849 | "$LINUX_OBJ/$file" 2>/dev/null | |
16850 | rc=$? | |
16851 | if test $rc -eq 0; then | |
16852 | export=1 | |
16853 | break; | |
16854 | fi | |
16855 | done | |
16856 | if test $export -eq 0; then | |
16857 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
16858 | $as_echo "no" >&6; } | |
16859 | ||
16860 | else | |
16861 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
16862 | $as_echo "yes" >&6; } | |
16863 | ||
16864 | cat >>confdefs.h <<\_ACEOF | |
16865 | #define HAVE_MONOTONIC_CLOCK 1 | |
16866 | _ACEOF | |
16867 | ||
16868 | fi | |
16869 | else | |
16870 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
16871 | $as_echo "yes" >&6; } | |
16872 | ||
16873 | cat >>confdefs.h <<\_ACEOF | |
16874 | #define HAVE_MONOTONIC_CLOCK 1 | |
16875 | _ACEOF | |
16876 | ||
16877 | fi | |
16878 | ||
16879 | ||
16880 | ||
16881 | { $as_echo "$as_me:$LINENO: checking whether struct inode has i_mutex" >&5 | |
16882 | $as_echo_n "checking whether struct inode has i_mutex... " >&6; } | |
16883 | ||
16884 | ||
dbe561d8 | 16885 | cat confdefs.h - <<_ACEOF >conftest.c |
8934764e BB |
16886 | /* confdefs.h. */ |
16887 | _ACEOF | |
16888 | cat confdefs.h >>conftest.$ac_ext | |
16889 | cat >>conftest.$ac_ext <<_ACEOF | |
16890 | /* end confdefs.h. */ | |
16891 | ||
16892 | ||
16893 | #include <linux/fs.h> | |
16894 | #include <linux/mutex.h> | |
16895 | ||
16896 | int | |
16897 | main (void) | |
16898 | { | |
16899 | ||
16900 | struct inode i; | |
16901 | mutex_init(&i.i_mutex); | |
16902 | ||
16903 | ; | |
16904 | return 0; | |
16905 | } | |
16906 | ||
16907 | _ACEOF | |
16908 | ||
16909 | ||
16910 | rm -Rf build && mkdir -p build | |
16911 | echo "obj-m := conftest.o" >build/Makefile | |
16912 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
16913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16914 | (eval $ac_try) 2>&5 | |
16915 | ac_status=$? | |
16916 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16917 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16919 | (eval $ac_try) 2>&5 | |
16920 | ac_status=$? | |
16921 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16922 | (exit $ac_status); }; }; then | |
16923 | ||
16924 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
16925 | $as_echo "yes" >&6; } | |
16926 | ||
16927 | cat >>confdefs.h <<\_ACEOF | |
16928 | #define HAVE_INODE_I_MUTEX 1 | |
16929 | _ACEOF | |
16930 | ||
16931 | ||
16932 | else | |
16933 | $as_echo "$as_me: failed program was:" >&5 | |
16934 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16935 | ||
16936 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
16937 | $as_echo "no" >&6; } | |
16938 | ||
16939 | ||
16940 | ||
16941 | fi | |
16942 | ||
16943 | rm -Rf build | |
16944 | ||
16945 | ||
16946 | ||
16947 | ||
16948 | { $as_echo "$as_me:$LINENO: checking whether struct mutex has owner" >&5 | |
16949 | $as_echo_n "checking whether struct mutex has owner... " >&6; } | |
16950 | ||
16951 | ||
dbe561d8 | 16952 | cat confdefs.h - <<_ACEOF >conftest.c |
8934764e BB |
16953 | /* confdefs.h. */ |
16954 | _ACEOF | |
16955 | cat confdefs.h >>conftest.$ac_ext | |
16956 | cat >>conftest.$ac_ext <<_ACEOF | |
16957 | /* end confdefs.h. */ | |
16958 | ||
16959 | ||
16960 | #include <linux/mutex.h> | |
16961 | ||
16962 | int | |
16963 | main (void) | |
16964 | { | |
16965 | ||
16966 | struct mutex mtx; | |
16967 | mtx.owner = NULL; | |
16968 | ||
16969 | ; | |
16970 | return 0; | |
16971 | } | |
16972 | ||
16973 | _ACEOF | |
16974 | ||
16975 | ||
16976 | rm -Rf build && mkdir -p build | |
16977 | echo "obj-m := conftest.o" >build/Makefile | |
16978 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
16979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16980 | (eval $ac_try) 2>&5 | |
16981 | ac_status=$? | |
16982 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16983 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16985 | (eval $ac_try) 2>&5 | |
16986 | ac_status=$? | |
16987 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16988 | (exit $ac_status); }; }; then | |
16989 | ||
16990 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
16991 | $as_echo "yes" >&6; } | |
16992 | ||
16993 | cat >>confdefs.h <<\_ACEOF | |
16994 | #define HAVE_MUTEX_OWNER 1 | |
16995 | _ACEOF | |
16996 | ||
16997 | ||
16998 | else | |
16999 | $as_echo "$as_me: failed program was:" >&5 | |
17000 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17001 | ||
17002 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
17003 | $as_echo "no" >&6; } | |
17004 | ||
17005 | ||
17006 | ||
17007 | fi | |
17008 | ||
17009 | rm -Rf build | |
17010 | ||
17011 | ||
17012 | ||
17013 | ||
17014 | { $as_echo "$as_me:$LINENO: checking whether mutex_lock_nested() is available" >&5 | |
17015 | $as_echo_n "checking whether mutex_lock_nested() is available... " >&6; } | |
17016 | ||
17017 | ||
dbe561d8 | 17018 | cat confdefs.h - <<_ACEOF >conftest.c |
8934764e BB |
17019 | /* confdefs.h. */ |
17020 | _ACEOF | |
17021 | cat confdefs.h >>conftest.$ac_ext | |
17022 | cat >>conftest.$ac_ext <<_ACEOF | |
17023 | /* end confdefs.h. */ | |
17024 | ||
17025 | ||
17026 | #include <linux/mutex.h> | |
17027 | ||
17028 | int | |
17029 | main (void) | |
17030 | { | |
17031 | ||
17032 | struct mutex mutex; | |
17033 | mutex_init(&mutex); | |
17034 | mutex_lock_nested(&mutex, 0); | |
17035 | ||
17036 | ; | |
17037 | return 0; | |
17038 | } | |
17039 | ||
17040 | _ACEOF | |
17041 | ||
17042 | ||
17043 | rm -Rf build && mkdir -p build | |
17044 | echo "obj-m := conftest.o" >build/Makefile | |
17045 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
17046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17047 | (eval $ac_try) 2>&5 | |
17048 | ac_status=$? | |
17049 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17050 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17052 | (eval $ac_try) 2>&5 | |
17053 | ac_status=$? | |
17054 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17055 | (exit $ac_status); }; }; then | |
17056 | ||
17057 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
17058 | $as_echo "yes" >&6; } | |
17059 | ||
17060 | cat >>confdefs.h <<\_ACEOF | |
17061 | #define HAVE_MUTEX_LOCK_NESTED 1 | |
17062 | _ACEOF | |
17063 | ||
17064 | ||
17065 | else | |
17066 | $as_echo "$as_me: failed program was:" >&5 | |
bf9f3bac BB |
17067 | sed 's/^/| /' conftest.$ac_ext >&5 |
17068 | ||
8934764e BB |
17069 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
17070 | $as_echo "no" >&6; } | |
17071 | ||
17072 | ||
17073 | ||
17074 | fi | |
17075 | ||
17076 | rm -Rf build | |
17077 | ||
17078 | ||
17079 | ||
17080 | ||
8934764e BB |
17081 | { $as_echo "$as_me:$LINENO: checking whether on_each_cpu() wants 3 args" >&5 |
17082 | $as_echo_n "checking whether on_each_cpu() wants 3 args... " >&6; } | |
bf9f3bac BB |
17083 | |
17084 | ||
dbe561d8 | 17085 | cat confdefs.h - <<_ACEOF >conftest.c |
bf9f3bac BB |
17086 | /* confdefs.h. */ |
17087 | _ACEOF | |
17088 | cat confdefs.h >>conftest.$ac_ext | |
17089 | cat >>conftest.$ac_ext <<_ACEOF | |
17090 | /* end confdefs.h. */ | |
17091 | ||
17092 | ||
8934764e | 17093 | #include <linux/smp.h> |
bf9f3bac BB |
17094 | |
17095 | int | |
17096 | main (void) | |
17097 | { | |
17098 | ||
8934764e | 17099 | on_each_cpu(NULL, NULL, 0); |
bf9f3bac BB |
17100 | |
17101 | ; | |
17102 | return 0; | |
17103 | } | |
17104 | ||
17105 | _ACEOF | |
17106 | ||
c5f70460 BB |
17107 | |
17108 | rm -Rf build && mkdir -p build | |
17109 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 17110 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
bf9f3bac BB |
17111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17112 | (eval $ac_try) 2>&5 | |
17113 | ac_status=$? | |
8934764e | 17114 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac BB |
17115 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
17116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17117 | (eval $ac_try) 2>&5 | |
17118 | ac_status=$? | |
8934764e | 17119 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac BB |
17120 | (exit $ac_status); }; }; then |
17121 | ||
8934764e BB |
17122 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
17123 | $as_echo "yes" >&6; } | |
bf9f3bac BB |
17124 | |
17125 | cat >>confdefs.h <<\_ACEOF | |
8934764e | 17126 | #define HAVE_3ARGS_ON_EACH_CPU 1 |
bf9f3bac BB |
17127 | _ACEOF |
17128 | ||
bf9f3bac BB |
17129 | |
17130 | else | |
8934764e | 17131 | $as_echo "$as_me: failed program was:" >&5 |
bf9f3bac BB |
17132 | sed 's/^/| /' conftest.$ac_ext >&5 |
17133 | ||
8934764e BB |
17134 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
17135 | $as_echo "no" >&6; } | |
bf9f3bac BB |
17136 | |
17137 | ||
c5f70460 | 17138 | |
bf9f3bac | 17139 | fi |
c5f70460 BB |
17140 | |
17141 | rm -Rf build | |
17142 | ||
bf9f3bac BB |
17143 | |
17144 | ||
17145 | ||
8934764e BB |
17146 | { $as_echo "$as_me:$LINENO: checking whether symbol kallsyms_lookup_name is exported" >&5 |
17147 | $as_echo_n "checking whether symbol kallsyms_lookup_name is exported... " >&6; } | |
17148 | grep -q -E '[[:space:]]kallsyms_lookup_name[[:space:]]' \ | |
17149 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
17150 | rc=$? | |
17151 | if test $rc -ne 0; then | |
17152 | export=0 | |
17153 | for file in ; do | |
17154 | grep -q -E "EXPORT_SYMBOL.*(kallsyms_lookup_name)" \ | |
17155 | "$LINUX_OBJ/$file" 2>/dev/null | |
17156 | rc=$? | |
17157 | if test $rc -eq 0; then | |
17158 | export=1 | |
17159 | break; | |
17160 | fi | |
17161 | done | |
17162 | if test $export -eq 0; then | |
17163 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
17164 | $as_echo "no" >&6; } | |
4d54fdee | 17165 | |
8934764e BB |
17166 | else |
17167 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
17168 | $as_echo "yes" >&6; } | |
4d54fdee | 17169 | |
8934764e BB |
17170 | cat >>confdefs.h <<\_ACEOF |
17171 | #define HAVE_KALLSYMS_LOOKUP_NAME 1 | |
4d54fdee | 17172 | _ACEOF |
4d54fdee | 17173 | |
8934764e BB |
17174 | fi |
17175 | else | |
17176 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
17177 | $as_echo "yes" >&6; } | |
4d54fdee | 17178 | |
8934764e BB |
17179 | cat >>confdefs.h <<\_ACEOF |
17180 | #define HAVE_KALLSYMS_LOOKUP_NAME 1 | |
17181 | _ACEOF | |
4d54fdee | 17182 | |
8934764e | 17183 | fi |
4d54fdee | 17184 | |
4d54fdee | 17185 | |
4d54fdee | 17186 | |
8934764e BB |
17187 | { $as_echo "$as_me:$LINENO: checking whether symbol get_vmalloc_info is exported" >&5 |
17188 | $as_echo_n "checking whether symbol get_vmalloc_info is exported... " >&6; } | |
17189 | grep -q -E '[[:space:]]get_vmalloc_info[[:space:]]' \ | |
17190 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
17191 | rc=$? | |
17192 | if test $rc -ne 0; then | |
17193 | export=0 | |
17194 | for file in ; do | |
17195 | grep -q -E "EXPORT_SYMBOL.*(get_vmalloc_info)" \ | |
17196 | "$LINUX_OBJ/$file" 2>/dev/null | |
17197 | rc=$? | |
17198 | if test $rc -eq 0; then | |
17199 | export=1 | |
17200 | break; | |
17201 | fi | |
17202 | done | |
17203 | if test $export -eq 0; then | |
17204 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
17205 | $as_echo "no" >&6; } | |
4d54fdee | 17206 | |
8934764e BB |
17207 | else |
17208 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
17209 | $as_echo "yes" >&6; } | |
4d54fdee | 17210 | |
8934764e BB |
17211 | cat >>confdefs.h <<\_ACEOF |
17212 | #define HAVE_GET_VMALLOC_INFO 1 | |
17213 | _ACEOF | |
4d54fdee | 17214 | |
8934764e BB |
17215 | fi |
17216 | else | |
17217 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
17218 | $as_echo "yes" >&6; } | |
4d54fdee BB |
17219 | |
17220 | cat >>confdefs.h <<\_ACEOF | |
8934764e | 17221 | #define HAVE_GET_VMALLOC_INFO 1 |
4d54fdee BB |
17222 | _ACEOF |
17223 | ||
8934764e | 17224 | fi |
4d54fdee | 17225 | |
4d54fdee BB |
17226 | |
17227 | ||
8934764e BB |
17228 | { $as_echo "$as_me:$LINENO: checking whether symbol *_pgdat exist" >&5 |
17229 | $as_echo_n "checking whether symbol *_pgdat exist... " >&6; } | |
17230 | grep -q -E 'first_online_pgdat' $LINUX/include/linux/mmzone.h 2>/dev/null | |
17231 | rc=$? | |
17232 | if test $rc -eq 0; then | |
17233 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
17234 | $as_echo "yes" >&6; } | |
4d54fdee | 17235 | |
8934764e BB |
17236 | cat >>confdefs.h <<\_ACEOF |
17237 | #define HAVE_PGDAT_HELPERS 1 | |
17238 | _ACEOF | |
4d54fdee | 17239 | |
8934764e BB |
17240 | else |
17241 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
17242 | $as_echo "no" >&6; } | |
17243 | fi | |
4d54fdee BB |
17244 | |
17245 | ||
8934764e BB |
17246 | { $as_echo "$as_me:$LINENO: checking whether symbol first_online_pgdat is exported" >&5 |
17247 | $as_echo_n "checking whether symbol first_online_pgdat is exported... " >&6; } | |
17248 | grep -q -E '[[:space:]]first_online_pgdat[[:space:]]' \ | |
17249 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
17250 | rc=$? | |
17251 | if test $rc -ne 0; then | |
17252 | export=0 | |
17253 | for file in ; do | |
17254 | grep -q -E "EXPORT_SYMBOL.*(first_online_pgdat)" \ | |
17255 | "$LINUX_OBJ/$file" 2>/dev/null | |
17256 | rc=$? | |
17257 | if test $rc -eq 0; then | |
17258 | export=1 | |
17259 | break; | |
17260 | fi | |
17261 | done | |
17262 | if test $export -eq 0; then | |
17263 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
17264 | $as_echo "no" >&6; } | |
4d54fdee | 17265 | |
8934764e BB |
17266 | else |
17267 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
17268 | $as_echo "yes" >&6; } | |
4d54fdee | 17269 | |
8934764e BB |
17270 | cat >>confdefs.h <<\_ACEOF |
17271 | #define HAVE_FIRST_ONLINE_PGDAT 1 | |
17272 | _ACEOF | |
bf9f3bac | 17273 | |
8934764e BB |
17274 | fi |
17275 | else | |
17276 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
17277 | $as_echo "yes" >&6; } | |
bf9f3bac | 17278 | |
8934764e BB |
17279 | cat >>confdefs.h <<\_ACEOF |
17280 | #define HAVE_FIRST_ONLINE_PGDAT 1 | |
bf9f3bac | 17281 | _ACEOF |
bf9f3bac | 17282 | |
8934764e | 17283 | fi |
bf9f3bac | 17284 | |
bf9f3bac | 17285 | |
bf9f3bac | 17286 | |
8934764e BB |
17287 | { $as_echo "$as_me:$LINENO: checking whether symbol next_online_pgdat is exported" >&5 |
17288 | $as_echo_n "checking whether symbol next_online_pgdat is exported... " >&6; } | |
17289 | grep -q -E '[[:space:]]next_online_pgdat[[:space:]]' \ | |
17290 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
17291 | rc=$? | |
17292 | if test $rc -ne 0; then | |
17293 | export=0 | |
17294 | for file in ; do | |
17295 | grep -q -E "EXPORT_SYMBOL.*(next_online_pgdat)" \ | |
17296 | "$LINUX_OBJ/$file" 2>/dev/null | |
17297 | rc=$? | |
17298 | if test $rc -eq 0; then | |
17299 | export=1 | |
17300 | break; | |
17301 | fi | |
17302 | done | |
17303 | if test $export -eq 0; then | |
17304 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
17305 | $as_echo "no" >&6; } | |
bf9f3bac | 17306 | |
8934764e BB |
17307 | else |
17308 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
17309 | $as_echo "yes" >&6; } | |
bf9f3bac | 17310 | |
8934764e BB |
17311 | cat >>confdefs.h <<\_ACEOF |
17312 | #define HAVE_NEXT_ONLINE_PGDAT 1 | |
bf9f3bac BB |
17313 | _ACEOF |
17314 | ||
8934764e BB |
17315 | fi |
17316 | else | |
17317 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
17318 | $as_echo "yes" >&6; } | |
bf9f3bac BB |
17319 | |
17320 | cat >>confdefs.h <<\_ACEOF | |
8934764e | 17321 | #define HAVE_NEXT_ONLINE_PGDAT 1 |
bf9f3bac BB |
17322 | _ACEOF |
17323 | ||
8934764e | 17324 | fi |
bf9f3bac BB |
17325 | |
17326 | ||
17327 | ||
8934764e BB |
17328 | { $as_echo "$as_me:$LINENO: checking whether symbol next_zone is exported" >&5 |
17329 | $as_echo_n "checking whether symbol next_zone is exported... " >&6; } | |
17330 | grep -q -E '[[:space:]]next_zone[[:space:]]' \ | |
6ae7fef5 BB |
17331 | $LINUX_OBJ/Module*.symvers 2>/dev/null |
17332 | rc=$? | |
17333 | if test $rc -ne 0; then | |
17334 | export=0 | |
17335 | for file in ; do | |
8934764e | 17336 | grep -q -E "EXPORT_SYMBOL.*(next_zone)" \ |
6ae7fef5 BB |
17337 | "$LINUX_OBJ/$file" 2>/dev/null |
17338 | rc=$? | |
17339 | if test $rc -eq 0; then | |
17340 | export=1 | |
17341 | break; | |
17342 | fi | |
17343 | done | |
17344 | if test $export -eq 0; then | |
8934764e BB |
17345 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
17346 | $as_echo "no" >&6; } | |
6ae7fef5 BB |
17347 | |
17348 | else | |
8934764e BB |
17349 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
17350 | $as_echo "yes" >&6; } | |
6ae7fef5 BB |
17351 | |
17352 | cat >>confdefs.h <<\_ACEOF | |
8934764e | 17353 | #define HAVE_NEXT_ZONE 1 |
6ae7fef5 BB |
17354 | _ACEOF |
17355 | ||
17356 | fi | |
17357 | else | |
8934764e BB |
17358 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
17359 | $as_echo "yes" >&6; } | |
6ae7fef5 BB |
17360 | |
17361 | cat >>confdefs.h <<\_ACEOF | |
8934764e | 17362 | #define HAVE_NEXT_ZONE 1 |
6ae7fef5 BB |
17363 | _ACEOF |
17364 | ||
17365 | fi | |
17366 | ||
17367 | ||
17368 | ||
8934764e BB |
17369 | { $as_echo "$as_me:$LINENO: checking whether symbol pgdat_list is exported" >&5 |
17370 | $as_echo_n "checking whether symbol pgdat_list is exported... " >&6; } | |
17371 | grep -q -E '[[:space:]]pgdat_list[[:space:]]' \ | |
6ae7fef5 BB |
17372 | $LINUX_OBJ/Module*.symvers 2>/dev/null |
17373 | rc=$? | |
17374 | if test $rc -ne 0; then | |
17375 | export=0 | |
17376 | for file in ; do | |
8934764e | 17377 | grep -q -E "EXPORT_SYMBOL.*(pgdat_list)" \ |
6ae7fef5 BB |
17378 | "$LINUX_OBJ/$file" 2>/dev/null |
17379 | rc=$? | |
17380 | if test $rc -eq 0; then | |
17381 | export=1 | |
17382 | break; | |
17383 | fi | |
17384 | done | |
17385 | if test $export -eq 0; then | |
8934764e BB |
17386 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
17387 | $as_echo "no" >&6; } | |
17388 | ||
17389 | else | |
17390 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
17391 | $as_echo "yes" >&6; } | |
17392 | ||
17393 | cat >>confdefs.h <<\_ACEOF | |
17394 | #define HAVE_PGDAT_LIST 1 | |
17395 | _ACEOF | |
17396 | ||
17397 | fi | |
17398 | else | |
17399 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
17400 | $as_echo "yes" >&6; } | |
17401 | ||
17402 | cat >>confdefs.h <<\_ACEOF | |
17403 | #define HAVE_PGDAT_LIST 1 | |
17404 | _ACEOF | |
17405 | ||
17406 | fi | |
17407 | ||
17408 | ||
17409 | ||
17410 | { $as_echo "$as_me:$LINENO: checking whether global_page_state() is available" >&5 | |
17411 | $as_echo_n "checking whether global_page_state() is available... " >&6; } | |
17412 | ||
17413 | ||
dbe561d8 | 17414 | cat confdefs.h - <<_ACEOF >conftest.c |
8934764e BB |
17415 | /* confdefs.h. */ |
17416 | _ACEOF | |
17417 | cat confdefs.h >>conftest.$ac_ext | |
17418 | cat >>conftest.$ac_ext <<_ACEOF | |
17419 | /* end confdefs.h. */ | |
17420 | ||
17421 | ||
17422 | #include <linux/mm.h> | |
17423 | ||
17424 | int | |
17425 | main (void) | |
17426 | { | |
17427 | ||
17428 | unsigned long state; | |
17429 | state = global_page_state(0); | |
17430 | ||
17431 | ; | |
17432 | return 0; | |
17433 | } | |
17434 | ||
17435 | _ACEOF | |
17436 | ||
17437 | ||
17438 | rm -Rf build && mkdir -p build | |
17439 | echo "obj-m := conftest.o" >build/Makefile | |
17440 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
17441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17442 | (eval $ac_try) 2>&5 | |
17443 | ac_status=$? | |
17444 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17445 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17447 | (eval $ac_try) 2>&5 | |
17448 | ac_status=$? | |
17449 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17450 | (exit $ac_status); }; }; then | |
6ae7fef5 | 17451 | |
8934764e BB |
17452 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
17453 | $as_echo "yes" >&6; } | |
6ae7fef5 BB |
17454 | |
17455 | cat >>confdefs.h <<\_ACEOF | |
8934764e | 17456 | #define HAVE_GLOBAL_PAGE_STATE 1 |
6ae7fef5 BB |
17457 | _ACEOF |
17458 | ||
6ae7fef5 | 17459 | |
8934764e BB |
17460 | else |
17461 | $as_echo "$as_me: failed program was:" >&5 | |
17462 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17463 | ||
17464 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
17465 | $as_echo "no" >&6; } | |
17466 | ||
17467 | ||
17468 | ||
17469 | fi | |
17470 | ||
17471 | rm -Rf build | |
6ae7fef5 | 17472 | |
6ae7fef5 BB |
17473 | |
17474 | ||
17475 | ||
8934764e BB |
17476 | { $as_echo "$as_me:$LINENO: checking whether page state NR_FREE_PAGES is available" >&5 |
17477 | $as_echo_n "checking whether page state NR_FREE_PAGES is available... " >&6; } | |
bf9f3bac BB |
17478 | |
17479 | ||
dbe561d8 | 17480 | cat confdefs.h - <<_ACEOF >conftest.c |
bf9f3bac BB |
17481 | /* confdefs.h. */ |
17482 | _ACEOF | |
17483 | cat confdefs.h >>conftest.$ac_ext | |
17484 | cat >>conftest.$ac_ext <<_ACEOF | |
17485 | /* end confdefs.h. */ | |
17486 | ||
17487 | ||
8934764e | 17488 | #include <linux/mm.h> |
bf9f3bac BB |
17489 | |
17490 | int | |
17491 | main (void) | |
17492 | { | |
17493 | ||
8934764e BB |
17494 | enum zone_stat_item zsi; |
17495 | zsi = NR_FREE_PAGES; | |
bf9f3bac BB |
17496 | |
17497 | ; | |
17498 | return 0; | |
17499 | } | |
17500 | ||
17501 | _ACEOF | |
17502 | ||
c5f70460 BB |
17503 | |
17504 | rm -Rf build && mkdir -p build | |
17505 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 17506 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
bf9f3bac BB |
17507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17508 | (eval $ac_try) 2>&5 | |
17509 | ac_status=$? | |
8934764e | 17510 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac BB |
17511 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
17512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17513 | (eval $ac_try) 2>&5 | |
17514 | ac_status=$? | |
8934764e | 17515 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac BB |
17516 | (exit $ac_status); }; }; then |
17517 | ||
8934764e BB |
17518 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
17519 | $as_echo "yes" >&6; } | |
bf9f3bac BB |
17520 | |
17521 | cat >>confdefs.h <<\_ACEOF | |
8934764e | 17522 | #define HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES 1 |
bf9f3bac BB |
17523 | _ACEOF |
17524 | ||
bf9f3bac BB |
17525 | |
17526 | else | |
8934764e | 17527 | $as_echo "$as_me: failed program was:" >&5 |
bf9f3bac BB |
17528 | sed 's/^/| /' conftest.$ac_ext >&5 |
17529 | ||
8934764e BB |
17530 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
17531 | $as_echo "no" >&6; } | |
bf9f3bac BB |
17532 | |
17533 | ||
c5f70460 | 17534 | |
bf9f3bac | 17535 | fi |
c5f70460 BB |
17536 | |
17537 | rm -Rf build | |
17538 | ||
bf9f3bac BB |
17539 | |
17540 | ||
17541 | ||
8934764e BB |
17542 | { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE is available" >&5 |
17543 | $as_echo_n "checking whether page state NR_INACTIVE is available... " >&6; } | |
bf9f3bac | 17544 | |
bf9f3bac | 17545 | |
dbe561d8 | 17546 | cat confdefs.h - <<_ACEOF >conftest.c |
8934764e | 17547 | /* confdefs.h. */ |
6ae7fef5 | 17548 | _ACEOF |
8934764e BB |
17549 | cat confdefs.h >>conftest.$ac_ext |
17550 | cat >>conftest.$ac_ext <<_ACEOF | |
17551 | /* end confdefs.h. */ | |
bf9f3bac | 17552 | |
6ae7fef5 | 17553 | |
8934764e | 17554 | #include <linux/mm.h> |
bf9f3bac | 17555 | |
8934764e BB |
17556 | int |
17557 | main (void) | |
17558 | { | |
bf9f3bac | 17559 | |
8934764e BB |
17560 | enum zone_stat_item zsi; |
17561 | zsi = NR_INACTIVE; | |
bf9f3bac | 17562 | |
8934764e BB |
17563 | ; |
17564 | return 0; | |
17565 | } | |
bf9f3bac | 17566 | |
8934764e | 17567 | _ACEOF |
bf9f3bac | 17568 | |
bf9f3bac | 17569 | |
8934764e BB |
17570 | rm -Rf build && mkdir -p build |
17571 | echo "obj-m := conftest.o" >build/Makefile | |
17572 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
17573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17574 | (eval $ac_try) 2>&5 | |
17575 | ac_status=$? | |
17576 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17577 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17579 | (eval $ac_try) 2>&5 | |
17580 | ac_status=$? | |
17581 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17582 | (exit $ac_status); }; }; then | |
bf9f3bac | 17583 | |
8934764e BB |
17584 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
17585 | $as_echo "yes" >&6; } | |
6ae7fef5 BB |
17586 | |
17587 | cat >>confdefs.h <<\_ACEOF | |
8934764e | 17588 | #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE 1 |
6ae7fef5 BB |
17589 | _ACEOF |
17590 | ||
6ae7fef5 | 17591 | |
8934764e BB |
17592 | else |
17593 | $as_echo "$as_me: failed program was:" >&5 | |
17594 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c5f70460 | 17595 | |
8934764e BB |
17596 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
17597 | $as_echo "no" >&6; } | |
bf9f3bac | 17598 | |
bf9f3bac | 17599 | |
8934764e BB |
17600 | |
17601 | fi | |
17602 | ||
17603 | rm -Rf build | |
17604 | ||
17605 | ||
17606 | ||
17607 | { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_ANON is available" >&5 | |
17608 | $as_echo_n "checking whether page state NR_INACTIVE_ANON is available... " >&6; } | |
17609 | ||
17610 | ||
dbe561d8 | 17611 | cat confdefs.h - <<_ACEOF >conftest.c |
8934764e | 17612 | /* confdefs.h. */ |
bf9f3bac | 17613 | _ACEOF |
8934764e BB |
17614 | cat confdefs.h >>conftest.$ac_ext |
17615 | cat >>conftest.$ac_ext <<_ACEOF | |
17616 | /* end confdefs.h. */ | |
bf9f3bac BB |
17617 | |
17618 | ||
8934764e | 17619 | #include <linux/mm.h> |
bf9f3bac | 17620 | |
8934764e BB |
17621 | int |
17622 | main (void) | |
17623 | { | |
bf9f3bac | 17624 | |
8934764e BB |
17625 | enum zone_stat_item zsi; |
17626 | zsi = NR_INACTIVE_ANON; | |
17627 | ||
17628 | ; | |
17629 | return 0; | |
17630 | } | |
c5f70460 | 17631 | |
6ae7fef5 | 17632 | _ACEOF |
c5f70460 | 17633 | |
8934764e BB |
17634 | |
17635 | rm -Rf build && mkdir -p build | |
17636 | echo "obj-m := conftest.o" >build/Makefile | |
17637 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
17638 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17639 | (eval $ac_try) 2>&5 | |
17640 | ac_status=$? | |
17641 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17642 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17644 | (eval $ac_try) 2>&5 | |
17645 | ac_status=$? | |
17646 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17647 | (exit $ac_status); }; }; then | |
17648 | ||
17649 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
17650 | $as_echo "yes" >&6; } | |
c5f70460 | 17651 | |
6ae7fef5 | 17652 | cat >>confdefs.h <<\_ACEOF |
8934764e | 17653 | #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON 1 |
6ae7fef5 | 17654 | _ACEOF |
c5f70460 | 17655 | |
bf9f3bac | 17656 | |
8934764e BB |
17657 | else |
17658 | $as_echo "$as_me: failed program was:" >&5 | |
17659 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bf9f3bac | 17660 | |
8934764e BB |
17661 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
17662 | $as_echo "no" >&6; } | |
bf9f3bac | 17663 | |
bf9f3bac | 17664 | |
bf9f3bac | 17665 | |
8934764e | 17666 | fi |
bf9f3bac | 17667 | |
8934764e | 17668 | rm -Rf build |
bf9f3bac | 17669 | |
8934764e BB |
17670 | |
17671 | ||
17672 | { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_FILE is available" >&5 | |
17673 | $as_echo_n "checking whether page state NR_INACTIVE_FILE is available... " >&6; } | |
17674 | ||
17675 | ||
dbe561d8 | 17676 | cat confdefs.h - <<_ACEOF >conftest.c |
8934764e | 17677 | /* confdefs.h. */ |
bf9f3bac | 17678 | _ACEOF |
8934764e BB |
17679 | cat confdefs.h >>conftest.$ac_ext |
17680 | cat >>conftest.$ac_ext <<_ACEOF | |
17681 | /* end confdefs.h. */ | |
bf9f3bac | 17682 | |
bf9f3bac | 17683 | |
8934764e | 17684 | #include <linux/mm.h> |
bf9f3bac | 17685 | |
8934764e BB |
17686 | int |
17687 | main (void) | |
17688 | { | |
bf9f3bac | 17689 | |
8934764e BB |
17690 | enum zone_stat_item zsi; |
17691 | zsi = NR_INACTIVE_FILE; | |
6ae7fef5 | 17692 | |
8934764e BB |
17693 | ; |
17694 | return 0; | |
17695 | } | |
6ae7fef5 | 17696 | |
6ae7fef5 BB |
17697 | _ACEOF |
17698 | ||
8934764e BB |
17699 | |
17700 | rm -Rf build && mkdir -p build | |
17701 | echo "obj-m := conftest.o" >build/Makefile | |
17702 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
17703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17704 | (eval $ac_try) 2>&5 | |
17705 | ac_status=$? | |
17706 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17707 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17709 | (eval $ac_try) 2>&5 | |
17710 | ac_status=$? | |
17711 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17712 | (exit $ac_status); }; }; then | |
17713 | ||
17714 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
17715 | $as_echo "yes" >&6; } | |
6ae7fef5 BB |
17716 | |
17717 | cat >>confdefs.h <<\_ACEOF | |
8934764e | 17718 | #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE 1 |
6ae7fef5 BB |
17719 | _ACEOF |
17720 | ||
6ae7fef5 | 17721 | |
8934764e BB |
17722 | else |
17723 | $as_echo "$as_me: failed program was:" >&5 | |
17724 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6ae7fef5 | 17725 | |
8934764e BB |
17726 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
17727 | $as_echo "no" >&6; } | |
6ae7fef5 | 17728 | |
6ae7fef5 | 17729 | |
6ae7fef5 | 17730 | |
8934764e | 17731 | fi |
6ae7fef5 | 17732 | |
8934764e | 17733 | rm -Rf build |
6ae7fef5 | 17734 | |
6ae7fef5 BB |
17735 | |
17736 | ||
17737 | ||
8934764e BB |
17738 | { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE is available" >&5 |
17739 | $as_echo_n "checking whether page state NR_ACTIVE is available... " >&6; } | |
bf9f3bac BB |
17740 | |
17741 | ||
dbe561d8 | 17742 | cat confdefs.h - <<_ACEOF >conftest.c |
bf9f3bac BB |
17743 | /* confdefs.h. */ |
17744 | _ACEOF | |
17745 | cat confdefs.h >>conftest.$ac_ext | |
17746 | cat >>conftest.$ac_ext <<_ACEOF | |
17747 | /* end confdefs.h. */ | |
17748 | ||
17749 | ||
6ae7fef5 | 17750 | #include <linux/mm.h> |
bf9f3bac BB |
17751 | |
17752 | int | |
17753 | main (void) | |
17754 | { | |
17755 | ||
8934764e BB |
17756 | enum zone_stat_item zsi; |
17757 | zsi = NR_ACTIVE; | |
bf9f3bac BB |
17758 | |
17759 | ; | |
17760 | return 0; | |
17761 | } | |
17762 | ||
17763 | _ACEOF | |
17764 | ||
c5f70460 BB |
17765 | |
17766 | rm -Rf build && mkdir -p build | |
17767 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 17768 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
bf9f3bac BB |
17769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17770 | (eval $ac_try) 2>&5 | |
17771 | ac_status=$? | |
8934764e | 17772 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac BB |
17773 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
17774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17775 | (eval $ac_try) 2>&5 | |
17776 | ac_status=$? | |
8934764e | 17777 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac BB |
17778 | (exit $ac_status); }; }; then |
17779 | ||
8934764e BB |
17780 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
17781 | $as_echo "yes" >&6; } | |
bf9f3bac BB |
17782 | |
17783 | cat >>confdefs.h <<\_ACEOF | |
8934764e | 17784 | #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE 1 |
bf9f3bac BB |
17785 | _ACEOF |
17786 | ||
17787 | ||
17788 | else | |
8934764e | 17789 | $as_echo "$as_me: failed program was:" >&5 |
bf9f3bac BB |
17790 | sed 's/^/| /' conftest.$ac_ext >&5 |
17791 | ||
8934764e BB |
17792 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
17793 | $as_echo "no" >&6; } | |
bf9f3bac | 17794 | |
c5f70460 BB |
17795 | |
17796 | ||
bf9f3bac | 17797 | fi |
c5f70460 BB |
17798 | |
17799 | rm -Rf build | |
17800 | ||
bf9f3bac BB |
17801 | |
17802 | ||
8934764e BB |
17803 | { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_ANON is available" >&5 |
17804 | $as_echo_n "checking whether page state NR_ACTIVE_ANON is available... " >&6; } | |
6c9433c1 BB |
17805 | |
17806 | ||
dbe561d8 | 17807 | cat confdefs.h - <<_ACEOF >conftest.c |
6c9433c1 BB |
17808 | /* confdefs.h. */ |
17809 | _ACEOF | |
17810 | cat confdefs.h >>conftest.$ac_ext | |
17811 | cat >>conftest.$ac_ext <<_ACEOF | |
17812 | /* end confdefs.h. */ | |
17813 | ||
17814 | ||
6ae7fef5 | 17815 | #include <linux/mm.h> |
6c9433c1 BB |
17816 | |
17817 | int | |
17818 | main (void) | |
17819 | { | |
17820 | ||
6ae7fef5 | 17821 | enum zone_stat_item zsi; |
8934764e | 17822 | zsi = NR_ACTIVE_ANON; |
6c9433c1 BB |
17823 | |
17824 | ; | |
17825 | return 0; | |
17826 | } | |
17827 | ||
17828 | _ACEOF | |
17829 | ||
17830 | ||
17831 | rm -Rf build && mkdir -p build | |
17832 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 17833 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
6c9433c1 BB |
17834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17835 | (eval $ac_try) 2>&5 | |
17836 | ac_status=$? | |
8934764e | 17837 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6c9433c1 BB |
17838 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
17839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17840 | (eval $ac_try) 2>&5 | |
17841 | ac_status=$? | |
8934764e | 17842 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6c9433c1 BB |
17843 | (exit $ac_status); }; }; then |
17844 | ||
8934764e BB |
17845 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
17846 | $as_echo "yes" >&6; } | |
6c9433c1 BB |
17847 | |
17848 | cat >>confdefs.h <<\_ACEOF | |
8934764e | 17849 | #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON 1 |
6c9433c1 BB |
17850 | _ACEOF |
17851 | ||
17852 | ||
17853 | else | |
8934764e | 17854 | $as_echo "$as_me: failed program was:" >&5 |
6c9433c1 BB |
17855 | sed 's/^/| /' conftest.$ac_ext >&5 |
17856 | ||
8934764e BB |
17857 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
17858 | $as_echo "no" >&6; } | |
6c9433c1 BB |
17859 | |
17860 | ||
17861 | ||
17862 | fi | |
17863 | ||
17864 | rm -Rf build | |
17865 | ||
17866 | ||
17867 | ||
8934764e BB |
17868 | { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_FILE is available" >&5 |
17869 | $as_echo_n "checking whether page state NR_ACTIVE_FILE is available... " >&6; } | |
bf9f3bac | 17870 | |
bf9f3bac | 17871 | |
dbe561d8 | 17872 | cat confdefs.h - <<_ACEOF >conftest.c |
6ae7fef5 | 17873 | /* confdefs.h. */ |
bf9f3bac | 17874 | _ACEOF |
6ae7fef5 BB |
17875 | cat confdefs.h >>conftest.$ac_ext |
17876 | cat >>conftest.$ac_ext <<_ACEOF | |
17877 | /* end confdefs.h. */ | |
bf9f3bac | 17878 | |
bf9f3bac | 17879 | |
6ae7fef5 | 17880 | #include <linux/mm.h> |
bf9f3bac | 17881 | |
6ae7fef5 BB |
17882 | int |
17883 | main (void) | |
17884 | { | |
96dded38 | 17885 | |
6ae7fef5 | 17886 | enum zone_stat_item zsi; |
8934764e | 17887 | zsi = NR_ACTIVE_FILE; |
bf9f3bac | 17888 | |
6ae7fef5 BB |
17889 | ; |
17890 | return 0; | |
17891 | } | |
31a033ec | 17892 | |
6ae7fef5 | 17893 | _ACEOF |
31a033ec | 17894 | |
c5f70460 | 17895 | |
6ae7fef5 BB |
17896 | rm -Rf build && mkdir -p build |
17897 | echo "obj-m := conftest.o" >build/Makefile | |
17898 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
17899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17900 | (eval $ac_try) 2>&5 | |
17901 | ac_status=$? | |
8934764e | 17902 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6ae7fef5 BB |
17903 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
17904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17905 | (eval $ac_try) 2>&5 | |
17906 | ac_status=$? | |
8934764e | 17907 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6ae7fef5 | 17908 | (exit $ac_status); }; }; then |
c5f70460 | 17909 | |
8934764e BB |
17910 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
17911 | $as_echo "yes" >&6; } | |
c5f70460 | 17912 | |
96dded38 | 17913 | cat >>confdefs.h <<\_ACEOF |
8934764e | 17914 | #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE 1 |
96dded38 | 17915 | _ACEOF |
c5f70460 | 17916 | |
31a033ec | 17917 | |
6ae7fef5 | 17918 | else |
8934764e | 17919 | $as_echo "$as_me: failed program was:" >&5 |
6ae7fef5 BB |
17920 | sed 's/^/| /' conftest.$ac_ext >&5 |
17921 | ||
8934764e BB |
17922 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
17923 | $as_echo "no" >&6; } | |
6ae7fef5 BB |
17924 | |
17925 | ||
17926 | ||
17927 | fi | |
17928 | ||
17929 | rm -Rf build | |
31a033ec BB |
17930 | |
17931 | ||
6ae7fef5 | 17932 | |
8934764e BB |
17933 | |
17934 | { $as_echo "$as_me:$LINENO: checking whether symbol get_zone_counts is needed" >&5 | |
17935 | $as_echo_n "checking whether symbol get_zone_counts is needed... " >&6; } | |
31a033ec BB |
17936 | |
17937 | ||
dbe561d8 | 17938 | cat confdefs.h - <<_ACEOF >conftest.c |
31a033ec BB |
17939 | /* confdefs.h. */ |
17940 | _ACEOF | |
17941 | cat confdefs.h >>conftest.$ac_ext | |
17942 | cat >>conftest.$ac_ext <<_ACEOF | |
17943 | /* end confdefs.h. */ | |
17944 | ||
17945 | ||
31a033ec BB |
17946 | |
17947 | int | |
17948 | main (void) | |
17949 | { | |
17950 | ||
8934764e BB |
17951 | #if !defined(HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES) |
17952 | #error "global_page_state needs NR_FREE_PAGES" | |
17953 | #endif | |
17954 | ||
17955 | #if !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE) && \ | |
17956 | !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON) && \ | |
17957 | !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE) | |
17958 | #error "global_page_state needs NR_ACTIVE*" | |
17959 | #endif | |
17960 | ||
17961 | #if !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE) && \ | |
17962 | !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON) && \ | |
17963 | !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE) | |
17964 | #error "global_page_state needs NR_INACTIVE*" | |
17965 | #endif | |
31a033ec BB |
17966 | |
17967 | ; | |
17968 | return 0; | |
17969 | } | |
17970 | ||
17971 | _ACEOF | |
17972 | ||
c5f70460 BB |
17973 | |
17974 | rm -Rf build && mkdir -p build | |
17975 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 17976 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
31a033ec BB |
17977 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17978 | (eval $ac_try) 2>&5 | |
17979 | ac_status=$? | |
8934764e | 17980 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31a033ec BB |
17981 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
17982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17983 | (eval $ac_try) 2>&5 | |
17984 | ac_status=$? | |
8934764e | 17985 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31a033ec BB |
17986 | (exit $ac_status); }; }; then |
17987 | ||
8934764e BB |
17988 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
17989 | $as_echo "no" >&6; } | |
17990 | ||
17991 | else | |
17992 | $as_echo "$as_me: failed program was:" >&5 | |
17993 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17994 | ||
17995 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
17996 | $as_echo "yes" >&6; } | |
31a033ec BB |
17997 | |
17998 | cat >>confdefs.h <<\_ACEOF | |
8934764e | 17999 | #define NEED_GET_ZONE_COUNTS 1 |
31a033ec BB |
18000 | _ACEOF |
18001 | ||
18002 | ||
8934764e BB |
18003 | { $as_echo "$as_me:$LINENO: checking whether symbol get_zone_counts is exported" >&5 |
18004 | $as_echo_n "checking whether symbol get_zone_counts is exported... " >&6; } | |
18005 | grep -q -E '[[:space:]]get_zone_counts[[:space:]]' \ | |
18006 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
18007 | rc=$? | |
18008 | if test $rc -ne 0; then | |
18009 | export=0 | |
18010 | for file in ; do | |
18011 | grep -q -E "EXPORT_SYMBOL.*(get_zone_counts)" \ | |
18012 | "$LINUX_OBJ/$file" 2>/dev/null | |
18013 | rc=$? | |
18014 | if test $rc -eq 0; then | |
18015 | export=1 | |
18016 | break; | |
18017 | fi | |
18018 | done | |
18019 | if test $export -eq 0; then | |
18020 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
18021 | $as_echo "no" >&6; } | |
18022 | ||
18023 | else | |
18024 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
18025 | $as_echo "yes" >&6; } | |
18026 | ||
18027 | cat >>confdefs.h <<\_ACEOF | |
18028 | #define HAVE_GET_ZONE_COUNTS 1 | |
18029 | _ACEOF | |
18030 | ||
18031 | fi | |
18032 | else | |
18033 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
18034 | $as_echo "yes" >&6; } | |
18035 | ||
18036 | cat >>confdefs.h <<\_ACEOF | |
18037 | #define HAVE_GET_ZONE_COUNTS 1 | |
18038 | _ACEOF | |
18039 | ||
18040 | fi | |
bf9f3bac | 18041 | |
bf9f3bac | 18042 | |
c5f70460 BB |
18043 | |
18044 | ||
bf9f3bac | 18045 | fi |
c5f70460 BB |
18046 | |
18047 | rm -Rf build | |
18048 | ||
bf9f3bac BB |
18049 | |
18050 | ||
8934764e | 18051 | |
7119bf70 BB |
18052 | { $as_echo "$as_me:$LINENO: checking whether symbol user_path_at is exported" >&5 |
18053 | $as_echo_n "checking whether symbol user_path_at is exported... " >&6; } | |
18054 | grep -q -E '[[:space:]]user_path_at[[:space:]]' \ | |
18055 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
18056 | rc=$? | |
18057 | if test $rc -ne 0; then | |
18058 | export=0 | |
18059 | for file in ; do | |
18060 | grep -q -E "EXPORT_SYMBOL.*(user_path_at)" \ | |
18061 | "$LINUX_OBJ/$file" 2>/dev/null | |
18062 | rc=$? | |
18063 | if test $rc -eq 0; then | |
18064 | export=1 | |
18065 | break; | |
18066 | fi | |
18067 | done | |
18068 | if test $export -eq 0; then | |
18069 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
18070 | $as_echo "no" >&6; } | |
18071 | ||
18072 | else | |
18073 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
18074 | $as_echo "yes" >&6; } | |
18075 | ||
18076 | cat >>confdefs.h <<\_ACEOF | |
18077 | #define HAVE_USER_PATH_DIR 1 | |
18078 | _ACEOF | |
18079 | ||
18080 | fi | |
18081 | else | |
18082 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
18083 | $as_echo "yes" >&6; } | |
18084 | ||
18085 | cat >>confdefs.h <<\_ACEOF | |
18086 | #define HAVE_USER_PATH_DIR 1 | |
18087 | _ACEOF | |
18088 | ||
18089 | fi | |
18090 | ||
18091 | ||
18092 | ||
8934764e BB |
18093 | { $as_echo "$as_me:$LINENO: checking whether symbol set_fs_pwd is exported" >&5 |
18094 | $as_echo_n "checking whether symbol set_fs_pwd is exported... " >&6; } | |
18095 | grep -q -E '[[:space:]]set_fs_pwd[[:space:]]' \ | |
18096 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
18097 | rc=$? | |
18098 | if test $rc -ne 0; then | |
18099 | export=0 | |
18100 | for file in ; do | |
18101 | grep -q -E "EXPORT_SYMBOL.*(set_fs_pwd)" \ | |
18102 | "$LINUX_OBJ/$file" 2>/dev/null | |
18103 | rc=$? | |
18104 | if test $rc -eq 0; then | |
18105 | export=1 | |
18106 | break; | |
18107 | fi | |
18108 | done | |
18109 | if test $export -eq 0; then | |
18110 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
18111 | $as_echo "no" >&6; } | |
18112 | ||
18113 | else | |
18114 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
18115 | $as_echo "yes" >&6; } | |
18116 | ||
18117 | cat >>confdefs.h <<\_ACEOF | |
18118 | #define HAVE_SET_FS_PWD 1 | |
18119 | _ACEOF | |
18120 | ||
18121 | fi | |
18122 | else | |
18123 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
18124 | $as_echo "yes" >&6; } | |
18125 | ||
18126 | cat >>confdefs.h <<\_ACEOF | |
18127 | #define HAVE_SET_FS_PWD 1 | |
18128 | _ACEOF | |
18129 | ||
18130 | fi | |
18131 | ||
18132 | ||
18133 | { $as_echo "$as_me:$LINENO: checking whether set_fs_pwd() wants 2 args" >&5 | |
18134 | $as_echo_n "checking whether set_fs_pwd() wants 2 args... " >&6; } | |
bf9f3bac | 18135 | |
d1ff2312 | 18136 | |
dbe561d8 | 18137 | cat confdefs.h - <<_ACEOF >conftest.c |
6ae7fef5 | 18138 | /* confdefs.h. */ |
d1ff2312 | 18139 | _ACEOF |
6ae7fef5 BB |
18140 | cat confdefs.h >>conftest.$ac_ext |
18141 | cat >>conftest.$ac_ext <<_ACEOF | |
18142 | /* end confdefs.h. */ | |
d1ff2312 | 18143 | |
d1ff2312 | 18144 | |
8934764e BB |
18145 | #include <linux/sched.h> |
18146 | #include <linux/fs_struct.h> | |
d1ff2312 | 18147 | |
6ae7fef5 BB |
18148 | int |
18149 | main (void) | |
18150 | { | |
d1ff2312 | 18151 | |
8934764e | 18152 | set_fs_pwd(NULL, NULL); |
d1ff2312 | 18153 | |
6ae7fef5 BB |
18154 | ; |
18155 | return 0; | |
18156 | } | |
d1ff2312 | 18157 | |
6ae7fef5 | 18158 | _ACEOF |
d1ff2312 | 18159 | |
d1ff2312 | 18160 | |
6ae7fef5 BB |
18161 | rm -Rf build && mkdir -p build |
18162 | echo "obj-m := conftest.o" >build/Makefile | |
18163 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
18164 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18165 | (eval $ac_try) 2>&5 | |
18166 | ac_status=$? | |
8934764e | 18167 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6ae7fef5 BB |
18168 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
18169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18170 | (eval $ac_try) 2>&5 | |
18171 | ac_status=$? | |
8934764e | 18172 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6ae7fef5 | 18173 | (exit $ac_status); }; }; then |
d1ff2312 | 18174 | |
8934764e BB |
18175 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
18176 | $as_echo "yes" >&6; } | |
d1ff2312 BB |
18177 | |
18178 | cat >>confdefs.h <<\_ACEOF | |
8934764e | 18179 | #define HAVE_2ARGS_SET_FS_PWD 1 |
d1ff2312 BB |
18180 | _ACEOF |
18181 | ||
5232d256 | 18182 | |
6ae7fef5 | 18183 | else |
8934764e | 18184 | $as_echo "$as_me: failed program was:" >&5 |
6ae7fef5 | 18185 | sed 's/^/| /' conftest.$ac_ext >&5 |
5232d256 | 18186 | |
8934764e BB |
18187 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
18188 | $as_echo "no" >&6; } | |
5232d256 BB |
18189 | |
18190 | ||
36b313da | 18191 | |
6ae7fef5 BB |
18192 | fi |
18193 | ||
18194 | rm -Rf build | |
18195 | ||
36b313da | 18196 | |
36b313da | 18197 | |
8934764e BB |
18198 | { $as_echo "$as_me:$LINENO: checking whether vfs_unlink() wants 2 args" >&5 |
18199 | $as_echo_n "checking whether vfs_unlink() wants 2 args... " >&6; } | |
6ae7fef5 BB |
18200 | |
18201 | ||
dbe561d8 | 18202 | cat confdefs.h - <<_ACEOF >conftest.c |
6ae7fef5 | 18203 | /* confdefs.h. */ |
36b313da | 18204 | _ACEOF |
6ae7fef5 BB |
18205 | cat confdefs.h >>conftest.$ac_ext |
18206 | cat >>conftest.$ac_ext <<_ACEOF | |
18207 | /* end confdefs.h. */ | |
36b313da | 18208 | |
36b313da | 18209 | |
8934764e | 18210 | #include <linux/fs.h> |
36b313da | 18211 | |
6ae7fef5 BB |
18212 | int |
18213 | main (void) | |
18214 | { | |
36b313da | 18215 | |
8934764e | 18216 | vfs_unlink(NULL, NULL); |
36b313da | 18217 | |
6ae7fef5 BB |
18218 | ; |
18219 | return 0; | |
18220 | } | |
36b313da | 18221 | |
36b313da BB |
18222 | _ACEOF |
18223 | ||
6ae7fef5 BB |
18224 | |
18225 | rm -Rf build && mkdir -p build | |
18226 | echo "obj-m := conftest.o" >build/Makefile | |
18227 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
18228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18229 | (eval $ac_try) 2>&5 | |
18230 | ac_status=$? | |
8934764e | 18231 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6ae7fef5 BB |
18232 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
18233 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18234 | (eval $ac_try) 2>&5 | |
18235 | ac_status=$? | |
8934764e | 18236 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6ae7fef5 BB |
18237 | (exit $ac_status); }; }; then |
18238 | ||
8934764e BB |
18239 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
18240 | $as_echo "yes" >&6; } | |
36b313da BB |
18241 | |
18242 | cat >>confdefs.h <<\_ACEOF | |
8934764e | 18243 | #define HAVE_2ARGS_VFS_UNLINK 1 |
36b313da BB |
18244 | _ACEOF |
18245 | ||
36b313da | 18246 | |
6ae7fef5 | 18247 | else |
8934764e | 18248 | $as_echo "$as_me: failed program was:" >&5 |
6ae7fef5 | 18249 | sed 's/^/| /' conftest.$ac_ext >&5 |
36b313da | 18250 | |
8934764e BB |
18251 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
18252 | $as_echo "no" >&6; } | |
36b313da | 18253 | |
36b313da | 18254 | |
36b313da | 18255 | |
6ae7fef5 | 18256 | fi |
36b313da | 18257 | |
6ae7fef5 BB |
18258 | rm -Rf build |
18259 | ||
18260 | ||
18261 | ||
8934764e BB |
18262 | { $as_echo "$as_me:$LINENO: checking whether vfs_rename() wants 4 args" >&5 |
18263 | $as_echo_n "checking whether vfs_rename() wants 4 args... " >&6; } | |
6ae7fef5 BB |
18264 | |
18265 | ||
dbe561d8 | 18266 | cat confdefs.h - <<_ACEOF >conftest.c |
6ae7fef5 | 18267 | /* confdefs.h. */ |
36b313da | 18268 | _ACEOF |
6ae7fef5 BB |
18269 | cat confdefs.h >>conftest.$ac_ext |
18270 | cat >>conftest.$ac_ext <<_ACEOF | |
18271 | /* end confdefs.h. */ | |
36b313da | 18272 | |
36b313da | 18273 | |
8934764e | 18274 | #include <linux/fs.h> |
36b313da | 18275 | |
6ae7fef5 BB |
18276 | int |
18277 | main (void) | |
18278 | { | |
36b313da | 18279 | |
8934764e | 18280 | vfs_rename(NULL, NULL, NULL, NULL); |
5232d256 | 18281 | |
6ae7fef5 BB |
18282 | ; |
18283 | return 0; | |
18284 | } | |
5232d256 | 18285 | |
5232d256 BB |
18286 | _ACEOF |
18287 | ||
6ae7fef5 BB |
18288 | |
18289 | rm -Rf build && mkdir -p build | |
18290 | echo "obj-m := conftest.o" >build/Makefile | |
18291 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
18292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18293 | (eval $ac_try) 2>&5 | |
18294 | ac_status=$? | |
8934764e | 18295 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6ae7fef5 BB |
18296 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
18297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18298 | (eval $ac_try) 2>&5 | |
18299 | ac_status=$? | |
8934764e | 18300 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6ae7fef5 BB |
18301 | (exit $ac_status); }; }; then |
18302 | ||
8934764e BB |
18303 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
18304 | $as_echo "yes" >&6; } | |
5232d256 BB |
18305 | |
18306 | cat >>confdefs.h <<\_ACEOF | |
8934764e | 18307 | #define HAVE_4ARGS_VFS_RENAME 1 |
5232d256 BB |
18308 | _ACEOF |
18309 | ||
5232d256 | 18310 | |
6ae7fef5 | 18311 | else |
8934764e | 18312 | $as_echo "$as_me: failed program was:" >&5 |
6ae7fef5 | 18313 | sed 's/^/| /' conftest.$ac_ext >&5 |
5232d256 | 18314 | |
8934764e BB |
18315 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
18316 | $as_echo "no" >&6; } | |
4ab13d3b | 18317 | |
4ab13d3b | 18318 | |
4ab13d3b | 18319 | |
6ae7fef5 | 18320 | fi |
4ab13d3b | 18321 | |
6ae7fef5 | 18322 | rm -Rf build |
96dded38 BB |
18323 | |
18324 | ||
18325 | ||
8934764e BB |
18326 | |
18327 | { $as_echo "$as_me:$LINENO: checking whether struct cred exists" >&5 | |
18328 | $as_echo_n "checking whether struct cred exists... " >&6; } | |
96dded38 BB |
18329 | |
18330 | ||
dbe561d8 | 18331 | cat confdefs.h - <<_ACEOF >conftest.c |
96dded38 BB |
18332 | /* confdefs.h. */ |
18333 | _ACEOF | |
18334 | cat confdefs.h >>conftest.$ac_ext | |
18335 | cat >>conftest.$ac_ext <<_ACEOF | |
18336 | /* end confdefs.h. */ | |
18337 | ||
18338 | ||
8934764e | 18339 | #include <linux/cred.h> |
96dded38 BB |
18340 | |
18341 | int | |
18342 | main (void) | |
18343 | { | |
18344 | ||
8934764e BB |
18345 | struct cred *cr; |
18346 | cr = NULL; | |
96dded38 BB |
18347 | |
18348 | ; | |
18349 | return 0; | |
18350 | } | |
18351 | ||
18352 | _ACEOF | |
18353 | ||
18354 | ||
18355 | rm -Rf build && mkdir -p build | |
18356 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 18357 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
96dded38 BB |
18358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18359 | (eval $ac_try) 2>&5 | |
18360 | ac_status=$? | |
8934764e | 18361 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
96dded38 BB |
18362 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
18363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18364 | (eval $ac_try) 2>&5 | |
18365 | ac_status=$? | |
8934764e | 18366 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
96dded38 BB |
18367 | (exit $ac_status); }; }; then |
18368 | ||
8934764e BB |
18369 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
18370 | $as_echo "yes" >&6; } | |
96dded38 BB |
18371 | |
18372 | cat >>confdefs.h <<\_ACEOF | |
8934764e | 18373 | #define HAVE_CRED_STRUCT 1 |
96dded38 BB |
18374 | _ACEOF |
18375 | ||
18376 | ||
18377 | else | |
8934764e | 18378 | $as_echo "$as_me: failed program was:" >&5 |
96dded38 BB |
18379 | sed 's/^/| /' conftest.$ac_ext >&5 |
18380 | ||
8934764e BB |
18381 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
18382 | $as_echo "no" >&6; } | |
96dded38 BB |
18383 | |
18384 | ||
18385 | ||
18386 | fi | |
18387 | ||
18388 | rm -Rf build | |
18389 | ||
4ab13d3b BB |
18390 | |
18391 | ||
18392 | ||
8934764e BB |
18393 | { $as_echo "$as_me:$LINENO: checking whether symbol groups_search is exported" >&5 |
18394 | $as_echo_n "checking whether symbol groups_search is exported... " >&6; } | |
18395 | grep -q -E '[[:space:]]groups_search[[:space:]]' \ | |
18396 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
18397 | rc=$? | |
18398 | if test $rc -ne 0; then | |
18399 | export=0 | |
18400 | for file in ; do | |
18401 | grep -q -E "EXPORT_SYMBOL.*(groups_search)" \ | |
18402 | "$LINUX_OBJ/$file" 2>/dev/null | |
18403 | rc=$? | |
18404 | if test $rc -eq 0; then | |
18405 | export=1 | |
18406 | break; | |
18407 | fi | |
18408 | done | |
18409 | if test $export -eq 0; then | |
18410 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
18411 | $as_echo "no" >&6; } | |
18412 | ||
18413 | else | |
18414 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
18415 | $as_echo "yes" >&6; } | |
18416 | ||
18417 | cat >>confdefs.h <<\_ACEOF | |
18418 | #define HAVE_GROUPS_SEARCH 1 | |
18419 | _ACEOF | |
18420 | ||
18421 | fi | |
18422 | else | |
18423 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
18424 | $as_echo "yes" >&6; } | |
18425 | ||
18426 | cat >>confdefs.h <<\_ACEOF | |
18427 | #define HAVE_GROUPS_SEARCH 1 | |
18428 | _ACEOF | |
18429 | ||
18430 | fi | |
18431 | ||
18432 | ||
18433 | ||
18434 | { $as_echo "$as_me:$LINENO: checking whether symbol __put_task_struct is exported" >&5 | |
18435 | $as_echo_n "checking whether symbol __put_task_struct is exported... " >&6; } | |
18436 | grep -q -E '[[:space:]]__put_task_struct[[:space:]]' \ | |
18437 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
18438 | rc=$? | |
18439 | if test $rc -ne 0; then | |
18440 | export=0 | |
18441 | for file in ; do | |
18442 | grep -q -E "EXPORT_SYMBOL.*(__put_task_struct)" \ | |
18443 | "$LINUX_OBJ/$file" 2>/dev/null | |
18444 | rc=$? | |
18445 | if test $rc -eq 0; then | |
18446 | export=1 | |
18447 | break; | |
18448 | fi | |
18449 | done | |
18450 | if test $export -eq 0; then | |
18451 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
18452 | $as_echo "no" >&6; } | |
18453 | ||
18454 | else | |
18455 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
18456 | $as_echo "yes" >&6; } | |
18457 | ||
18458 | cat >>confdefs.h <<\_ACEOF | |
18459 | #define HAVE_PUT_TASK_STRUCT 1 | |
18460 | _ACEOF | |
18461 | ||
18462 | fi | |
18463 | else | |
18464 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
18465 | $as_echo "yes" >&6; } | |
18466 | ||
18467 | cat >>confdefs.h <<\_ACEOF | |
18468 | #define HAVE_PUT_TASK_STRUCT 1 | |
18469 | _ACEOF | |
18470 | ||
18471 | fi | |
18472 | ||
18473 | ||
18474 | ||
18475 | { $as_echo "$as_me:$LINENO: checking whether proc_handler() wants 5 args" >&5 | |
18476 | $as_echo_n "checking whether proc_handler() wants 5 args... " >&6; } | |
e11d6c5f BB |
18477 | |
18478 | ||
dbe561d8 | 18479 | cat confdefs.h - <<_ACEOF >conftest.c |
e11d6c5f BB |
18480 | /* confdefs.h. */ |
18481 | _ACEOF | |
18482 | cat confdefs.h >>conftest.$ac_ext | |
18483 | cat >>conftest.$ac_ext <<_ACEOF | |
18484 | /* end confdefs.h. */ | |
18485 | ||
18486 | ||
8934764e | 18487 | #include <linux/sysctl.h> |
e11d6c5f | 18488 | |
8934764e BB |
18489 | int |
18490 | main (void) | |
18491 | { | |
18492 | ||
18493 | proc_dostring(NULL, 0, NULL, NULL, NULL); | |
e11d6c5f BB |
18494 | |
18495 | ; | |
18496 | return 0; | |
18497 | } | |
18498 | ||
18499 | _ACEOF | |
18500 | ||
18501 | ||
18502 | rm -Rf build && mkdir -p build | |
18503 | echo "obj-m := conftest.o" >build/Makefile | |
3d0cb2d3 | 18504 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' |
e11d6c5f BB |
18505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18506 | (eval $ac_try) 2>&5 | |
18507 | ac_status=$? | |
8934764e | 18508 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
e11d6c5f BB |
18509 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
18510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18511 | (eval $ac_try) 2>&5 | |
18512 | ac_status=$? | |
8934764e | 18513 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
e11d6c5f BB |
18514 | (exit $ac_status); }; }; then |
18515 | ||
8934764e BB |
18516 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
18517 | $as_echo "yes" >&6; } | |
18518 | ||
18519 | cat >>confdefs.h <<\_ACEOF | |
18520 | #define HAVE_5ARGS_PROC_HANDLER 1 | |
18521 | _ACEOF | |
18522 | ||
6ae7fef5 BB |
18523 | |
18524 | else | |
8934764e | 18525 | $as_echo "$as_me: failed program was:" >&5 |
6ae7fef5 BB |
18526 | sed 's/^/| /' conftest.$ac_ext >&5 |
18527 | ||
8934764e BB |
18528 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
18529 | $as_echo "no" >&6; } | |
e11d6c5f | 18530 | |
e11d6c5f BB |
18531 | |
18532 | ||
8934764e | 18533 | fi |
e11d6c5f | 18534 | |
8934764e BB |
18535 | rm -Rf build |
18536 | ||
18537 | ||
18538 | ||
18539 | ||
b868e22f BB |
18540 | { $as_echo "$as_me:$LINENO: checking whether symbol kvasprintf is exported" >&5 |
18541 | $as_echo_n "checking whether symbol kvasprintf is exported... " >&6; } | |
18542 | grep -q -E '[[:space:]]kvasprintf[[:space:]]' \ | |
18543 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
18544 | rc=$? | |
18545 | if test $rc -ne 0; then | |
18546 | export=0 | |
18547 | for file in ; do | |
18548 | grep -q -E "EXPORT_SYMBOL.*(kvasprintf)" \ | |
18549 | "$LINUX_OBJ/$file" 2>/dev/null | |
18550 | rc=$? | |
18551 | if test $rc -eq 0; then | |
18552 | export=1 | |
18553 | break; | |
18554 | fi | |
18555 | done | |
18556 | if test $export -eq 0; then | |
18557 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
18558 | $as_echo "no" >&6; } | |
18559 | ||
18560 | else | |
18561 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
18562 | $as_echo "yes" >&6; } | |
18563 | ||
18564 | cat >>confdefs.h <<\_ACEOF | |
18565 | #define HAVE_KVASPRINTF 1 | |
18566 | _ACEOF | |
18567 | ||
18568 | fi | |
18569 | else | |
18570 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
18571 | $as_echo "yes" >&6; } | |
18572 | ||
18573 | cat >>confdefs.h <<\_ACEOF | |
18574 | #define HAVE_KVASPRINTF 1 | |
18575 | _ACEOF | |
18576 | ||
18577 | fi | |
18578 | ||
18579 | ||
18580 | ||
f0ff89fc BB |
18581 | { $as_echo "$as_me:$LINENO: checking whether file_fsync() wants 3 args" >&5 |
18582 | $as_echo_n "checking whether file_fsync() wants 3 args... " >&6; } | |
18583 | ||
18584 | ||
18585 | cat confdefs.h - <<_ACEOF >conftest.c | |
18586 | /* confdefs.h. */ | |
18587 | _ACEOF | |
18588 | cat confdefs.h >>conftest.$ac_ext | |
18589 | cat >>conftest.$ac_ext <<_ACEOF | |
18590 | /* end confdefs.h. */ | |
18591 | ||
18592 | ||
18593 | #include <linux/buffer_head.h> | |
18594 | ||
18595 | int | |
18596 | main (void) | |
18597 | { | |
18598 | ||
18599 | file_fsync(NULL, NULL, 0); | |
18600 | ||
18601 | ; | |
18602 | return 0; | |
18603 | } | |
18604 | ||
18605 | _ACEOF | |
18606 | ||
18607 | ||
18608 | rm -Rf build && mkdir -p build | |
18609 | echo "obj-m := conftest.o" >build/Makefile | |
18610 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
18611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18612 | (eval $ac_try) 2>&5 | |
18613 | ac_status=$? | |
18614 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18615 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18617 | (eval $ac_try) 2>&5 | |
18618 | ac_status=$? | |
18619 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18620 | (exit $ac_status); }; }; then | |
18621 | ||
18622 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
18623 | $as_echo "yes" >&6; } | |
18624 | ||
18625 | cat >>confdefs.h <<\_ACEOF | |
18626 | #define HAVE_3ARGS_FILE_FSYNC 1 | |
18627 | _ACEOF | |
18628 | ||
18629 | ||
18630 | else | |
18631 | $as_echo "$as_me: failed program was:" >&5 | |
18632 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18633 | ||
18634 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
18635 | $as_echo "no" >&6; } | |
18636 | ||
18637 | ||
18638 | ||
18639 | fi | |
18640 | ||
18641 | rm -Rf build | |
18642 | ||
18643 | ||
18644 | ||
18645 | ||
18142514 | 18646 | |
287b2fb1 BB |
18647 | |
18648 | if test "x$AWK" != xgawk; then | |
18142514 BB |
18649 | |
18650 | { { $as_echo "$as_me:$LINENO: error: | |
18651 | *** Required util gawk missing. Please install the required | |
18652 | *** gawk package for your distribution and try again." >&5 | |
18653 | $as_echo "$as_me: error: | |
18654 | *** Required util gawk missing. Please install the required | |
18655 | *** gawk package for your distribution and try again." >&2;} | |
18656 | { (exit 1); exit 1; }; } | |
18657 | ||
18658 | fi | |
18659 | ||
287b2fb1 | 18660 | |
18142514 | 18661 | ;; |
8934764e BB |
18662 | srpm) ;; |
18663 | *) | |
18664 | { $as_echo "$as_me:$LINENO: result: Error!" >&5 | |
18665 | $as_echo "Error!" >&6; } | |
18666 | { { $as_echo "$as_me:$LINENO: error: Bad value \"$SPL_CONFIG\" for --with-config, | |
18667 | user kernel|user|all|srpm" >&5 | |
18668 | $as_echo "$as_me: error: Bad value \"$SPL_CONFIG\" for --with-config, | |
18669 | user kernel|user|all|srpm" >&2;} | |
18670 | { (exit 1); exit 1; }; } ;; | |
18671 | esac | |
18672 | ||
18673 | if test "$SPL_CONFIG" = user || | |
18674 | test "$SPL_CONFIG" = all; then | |
18675 | CONFIG_USER_TRUE= | |
18676 | CONFIG_USER_FALSE='#' | |
18677 | else | |
18678 | CONFIG_USER_TRUE='#' | |
18679 | CONFIG_USER_FALSE= | |
18680 | fi | |
18681 | ||
18682 | if test "$SPL_CONFIG" = kernel || | |
18683 | test "$SPL_CONFIG" = all; then | |
18684 | CONFIG_KERNEL_TRUE= | |
18685 | CONFIG_KERNEL_FALSE='#' | |
18686 | else | |
18687 | CONFIG_KERNEL_TRUE='#' | |
18688 | CONFIG_KERNEL_FALSE= | |
18689 | fi | |
18690 | ||
18691 | ||
18692 | ||
18693 | ac_config_files="$ac_config_files Makefile lib/Makefile cmd/Makefile module/Makefile module/spl/Makefile module/splat/Makefile include/Makefile scripts/Makefile spl.spec spl-modules.spec" | |
18694 | ||
18695 | ||
18696 | cat >confcache <<\_ACEOF | |
18697 | # This file is a shell script that caches the results of configure | |
18698 | # tests run on this system so they can be shared between configure | |
18699 | # scripts and configure runs, see configure's option --config-cache. | |
18700 | # It is not useful on other systems. If it contains results you don't | |
18701 | # want to keep, you may remove or edit it. | |
18702 | # | |
18703 | # config.status only pays attention to the cache file if you give it | |
18704 | # the --recheck option to rerun configure. | |
18705 | # | |
18706 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
18707 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
18708 | # following values. | |
6ae7fef5 | 18709 | |
6ae7fef5 BB |
18710 | _ACEOF |
18711 | ||
8934764e BB |
18712 | # The following way of writing the cache mishandles newlines in values, |
18713 | # but we know of no workaround that is simple, portable, and efficient. | |
18714 | # So, we kill variables containing newlines. | |
18715 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
18716 | # and sets the high bit in the cache file unless we assign to the vars. | |
18717 | ( | |
18718 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
18719 | eval ac_val=\$$ac_var | |
18720 | case $ac_val in #( | |
18721 | *${as_nl}*) | |
18722 | case $ac_var in #( | |
18723 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 | |
18724 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
18725 | esac | |
18726 | case $ac_var in #( | |
18727 | _ | IFS | as_nl) ;; #( | |
18728 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
18729 | *) $as_unset $ac_var ;; | |
18730 | esac ;; | |
18731 | esac | |
18732 | done | |
6ae7fef5 | 18733 | |
8934764e BB |
18734 | (set) 2>&1 | |
18735 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
18736 | *${as_nl}ac_space=\ *) | |
18737 | # `set' does not quote correctly, so add quotes (double-quote | |
18738 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
18739 | sed -n \ | |
18740 | "s/'/'\\\\''/g; | |
18741 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
18742 | ;; #( | |
18743 | *) | |
18744 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
18745 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
18746 | ;; | |
18747 | esac | | |
18748 | sort | |
18749 | ) | | |
18750 | sed ' | |
18751 | /^ac_cv_env_/b end | |
18752 | t clear | |
18753 | :clear | |
18754 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
18755 | t end | |
18756 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
18757 | :end' >>confcache | |
18758 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
18759 | if test -w "$cache_file"; then | |
18760 | test "x$cache_file" != "x/dev/null" && | |
18761 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 | |
18762 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
18763 | cat confcache >$cache_file | |
18764 | else | |
18765 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 | |
18766 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
18767 | fi | |
18768 | fi | |
18769 | rm -f confcache | |
18770 | ||
18771 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
18772 | # Let make expand exec_prefix. | |
18773 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
18774 | ||
18775 | DEFS=-DHAVE_CONFIG_H | |
18776 | ||
18777 | ac_libobjs= | |
18778 | ac_ltlibobjs= | |
18779 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
18780 | # 1. Remove the extension, and $U if already installed. | |
18781 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
18782 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
18783 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
18784 | # will be set to the directory where LIBOBJS objects are built. | |
18785 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
18786 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
18787 | done | |
18788 | LIBOBJS=$ac_libobjs | |
18789 | ||
18790 | LTLIBOBJS=$ac_ltlibobjs | |
18791 | ||
18792 | ||
18793 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
18794 | { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. | |
18795 | Usually this means the macro was only invoked conditionally." >&5 | |
18796 | $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | |
18797 | Usually this means the macro was only invoked conditionally." >&2;} | |
18798 | { (exit 1); exit 1; }; } | |
18799 | fi | |
18800 | if test -n "$EXEEXT"; then | |
18801 | am__EXEEXT_TRUE= | |
18802 | am__EXEEXT_FALSE='#' | |
18803 | else | |
18804 | am__EXEEXT_TRUE='#' | |
18805 | am__EXEEXT_FALSE= | |
18806 | fi | |
18807 | ||
18808 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
18809 | { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
18810 | Usually this means the macro was only invoked conditionally." >&5 | |
18811 | $as_echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
18812 | Usually this means the macro was only invoked conditionally." >&2;} | |
18813 | { (exit 1); exit 1; }; } | |
18814 | fi | |
18815 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
18816 | { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
18817 | Usually this means the macro was only invoked conditionally." >&5 | |
18818 | $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
18819 | Usually this means the macro was only invoked conditionally." >&2;} | |
18820 | { (exit 1); exit 1; }; } | |
18821 | fi | |
18822 | if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then | |
18823 | { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_USER\" was never defined. | |
18824 | Usually this means the macro was only invoked conditionally." >&5 | |
18825 | $as_echo "$as_me: error: conditional \"CONFIG_USER\" was never defined. | |
18826 | Usually this means the macro was only invoked conditionally." >&2;} | |
18827 | { (exit 1); exit 1; }; } | |
18828 | fi | |
18829 | if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then | |
18830 | { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_KERNEL\" was never defined. | |
18831 | Usually this means the macro was only invoked conditionally." >&5 | |
18832 | $as_echo "$as_me: error: conditional \"CONFIG_KERNEL\" was never defined. | |
18833 | Usually this means the macro was only invoked conditionally." >&2;} | |
18834 | { (exit 1); exit 1; }; } | |
18835 | fi | |
18836 | ||
18837 | : ${CONFIG_STATUS=./config.status} | |
18838 | ac_write_fail=0 | |
18839 | ac_clean_files_save=$ac_clean_files | |
18840 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
18841 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
18842 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
18843 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18844 | #! $SHELL | |
18845 | # Generated by $as_me. | |
18846 | # Run this file to recreate the current configuration. | |
18847 | # Compiler output produced by configure, useful for debugging | |
18848 | # configure, is in config.log if it exists. | |
18849 | ||
18850 | debug=false | |
18851 | ac_cs_recheck=false | |
18852 | ac_cs_silent=false | |
18853 | SHELL=\${CONFIG_SHELL-$SHELL} | |
6ae7fef5 BB |
18854 | _ACEOF |
18855 | ||
8934764e BB |
18856 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18857 | ## --------------------- ## | |
18858 | ## M4sh Initialization. ## | |
18859 | ## --------------------- ## | |
18860 | ||
18861 | # Be more Bourne compatible | |
18862 | DUALCASE=1; export DUALCASE # for MKS sh | |
18863 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
18864 | emulate sh | |
18865 | NULLCMD=: | |
18866 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
18867 | # is contrary to our usage. Disable this feature. | |
18868 | alias -g '${1+"$@"}'='"$@"' | |
18869 | setopt NO_GLOB_SUBST | |
18870 | else | |
18871 | case `(set -o) 2>/dev/null` in | |
18872 | *posix*) set -o posix ;; | |
18873 | esac | |
18874 | ||
18875 | fi | |
18876 | ||
6ae7fef5 BB |
18877 | |
18878 | ||
e11d6c5f | 18879 | |
8934764e BB |
18880 | # PATH needs CR |
18881 | # Avoid depending upon Character Ranges. | |
18882 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
18883 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
18884 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
18885 | as_cr_digits='0123456789' | |
18886 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
e11d6c5f | 18887 | |
8934764e BB |
18888 | as_nl=' |
18889 | ' | |
18890 | export as_nl | |
18891 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
18892 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
18893 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
18894 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
18895 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
18896 | as_echo='printf %s\n' | |
18897 | as_echo_n='printf %s' | |
18898 | else | |
18899 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
18900 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
18901 | as_echo_n='/usr/ucb/echo -n' | |
18902 | else | |
18903 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
18904 | as_echo_n_body='eval | |
18905 | arg=$1; | |
18906 | case $arg in | |
18907 | *"$as_nl"*) | |
18908 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
18909 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
18910 | esac; | |
18911 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
18912 | ' | |
18913 | export as_echo_n_body | |
18914 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
18915 | fi | |
18916 | export as_echo_body | |
18917 | as_echo='sh -c $as_echo_body as_echo' | |
51a727e9 BB |
18918 | fi |
18919 | ||
8934764e BB |
18920 | # The user is always right. |
18921 | if test "${PATH_SEPARATOR+set}" != set; then | |
18922 | PATH_SEPARATOR=: | |
18923 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
18924 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
18925 | PATH_SEPARATOR=';' | |
18926 | } | |
18927 | fi | |
51a727e9 | 18928 | |
8934764e BB |
18929 | # Support unset when possible. |
18930 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
18931 | as_unset=unset | |
18932 | else | |
18933 | as_unset=false | |
18934 | fi | |
51a727e9 BB |
18935 | |
18936 | ||
8934764e BB |
18937 | # IFS |
18938 | # We need space, tab and new line, in precisely that order. Quoting is | |
18939 | # there to prevent editors from complaining about space-tab. | |
18940 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
18941 | # splitting by setting IFS to empty value.) | |
18942 | IFS=" "" $as_nl" | |
18943 | ||
18944 | # Find who we are. Look in the path if we contain no directory separator. | |
18945 | case $0 in | |
18946 | *[\\/]* ) as_myself=$0 ;; | |
18947 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
18948 | for as_dir in $PATH | |
18949 | do | |
18950 | IFS=$as_save_IFS | |
18951 | test -z "$as_dir" && as_dir=. | |
18952 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
18953 | done | |
18954 | IFS=$as_save_IFS | |
51a727e9 | 18955 | |
8934764e BB |
18956 | ;; |
18957 | esac | |
18958 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
18959 | # in which case we are not to be found in the path. | |
18960 | if test "x$as_myself" = x; then | |
18961 | as_myself=$0 | |
18962 | fi | |
18963 | if test ! -f "$as_myself"; then | |
18964 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
18965 | { (exit 1); exit 1; } | |
18966 | fi | |
51a727e9 | 18967 | |
8934764e BB |
18968 | # Work around bugs in pre-3.0 UWIN ksh. |
18969 | for as_var in ENV MAIL MAILPATH | |
18970 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
18971 | done | |
18972 | PS1='$ ' | |
18973 | PS2='> ' | |
18974 | PS4='+ ' | |
51a727e9 | 18975 | |
8934764e BB |
18976 | # NLS nuisances. |
18977 | LC_ALL=C | |
18978 | export LC_ALL | |
18979 | LANGUAGE=C | |
18980 | export LANGUAGE | |
51a727e9 | 18981 | |
8934764e BB |
18982 | # Required to use basename. |
18983 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
18984 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
18985 | as_expr=expr | |
18986 | else | |
18987 | as_expr=false | |
18988 | fi | |
51a727e9 | 18989 | |
8934764e BB |
18990 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
18991 | as_basename=basename | |
18992 | else | |
18993 | as_basename=false | |
18994 | fi | |
51a727e9 | 18995 | |
51a727e9 | 18996 | |
8934764e BB |
18997 | # Name of the executable. |
18998 | as_me=`$as_basename -- "$0" || | |
18999 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
19000 | X"$0" : 'X\(//\)$' \| \ | |
19001 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
19002 | $as_echo X/"$0" | | |
19003 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
19004 | s//\1/ | |
19005 | q | |
19006 | } | |
19007 | /^X\/\(\/\/\)$/{ | |
19008 | s//\1/ | |
19009 | q | |
19010 | } | |
19011 | /^X\/\(\/\).*/{ | |
19012 | s//\1/ | |
19013 | q | |
19014 | } | |
19015 | s/.*/./; q'` | |
51a727e9 | 19016 | |
8934764e BB |
19017 | # CDPATH. |
19018 | $as_unset CDPATH | |
51a727e9 BB |
19019 | |
19020 | ||
51a727e9 | 19021 | |
8934764e BB |
19022 | as_lineno_1=$LINENO |
19023 | as_lineno_2=$LINENO | |
19024 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
19025 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
51a727e9 | 19026 | |
8934764e BB |
19027 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
19028 | # uniformly replaced by the line number. The first 'sed' inserts a | |
19029 | # line-number line after each line using $LINENO; the second 'sed' | |
19030 | # does the real work. The second script uses 'N' to pair each | |
19031 | # line-number line with the line containing $LINENO, and appends | |
19032 | # trailing '-' during substitution so that $LINENO is not a special | |
19033 | # case at line end. | |
19034 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
19035 | # scripts with optimization help from Paolo Bonzini. Blame Lee | |
19036 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
19037 | sed -n ' | |
19038 | p | |
19039 | /[$]LINENO/= | |
19040 | ' <$as_myself | | |
19041 | sed ' | |
19042 | s/[$]LINENO.*/&-/ | |
19043 | t lineno | |
19044 | b | |
19045 | :lineno | |
19046 | N | |
19047 | :loop | |
19048 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
19049 | t loop | |
19050 | s/-\n.*// | |
19051 | ' >$as_me.lineno && | |
19052 | chmod +x "$as_me.lineno" || | |
19053 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
19054 | { (exit 1); exit 1; }; } | |
51a727e9 | 19055 | |
8934764e BB |
19056 | # Don't try to exec as it changes $[0], causing all sort of problems |
19057 | # (the dirname of $[0] is not the place where we might find the | |
19058 | # original and so on. Autoconf is especially sensitive to this). | |
19059 | . "./$as_me.lineno" | |
19060 | # Exit status is that of the last command. | |
19061 | exit | |
19062 | } | |
51a727e9 | 19063 | |
51a727e9 | 19064 | |
8934764e BB |
19065 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
19066 | as_dirname=dirname | |
19067 | else | |
19068 | as_dirname=false | |
19069 | fi | |
51a727e9 | 19070 | |
8934764e BB |
19071 | ECHO_C= ECHO_N= ECHO_T= |
19072 | case `echo -n x` in | |
19073 | -n*) | |
19074 | case `echo 'x\c'` in | |
19075 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
19076 | *) ECHO_C='\c';; | |
19077 | esac;; | |
19078 | *) | |
19079 | ECHO_N='-n';; | |
19080 | esac | |
19081 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
19082 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
19083 | as_expr=expr | |
19084 | else | |
19085 | as_expr=false | |
19086 | fi | |
51a727e9 | 19087 | |
8934764e BB |
19088 | rm -f conf$$ conf$$.exe conf$$.file |
19089 | if test -d conf$$.dir; then | |
19090 | rm -f conf$$.dir/conf$$.file | |
19091 | else | |
19092 | rm -f conf$$.dir | |
19093 | mkdir conf$$.dir 2>/dev/null | |
19094 | fi | |
19095 | if (echo >conf$$.file) 2>/dev/null; then | |
19096 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
19097 | as_ln_s='ln -s' | |
19098 | # ... but there are two gotchas: | |
19099 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
19100 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
19101 | # In both cases, we have to default to `cp -p'. | |
19102 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
19103 | as_ln_s='cp -p' | |
19104 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
19105 | as_ln_s=ln | |
19106 | else | |
19107 | as_ln_s='cp -p' | |
19108 | fi | |
19109 | else | |
19110 | as_ln_s='cp -p' | |
19111 | fi | |
19112 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
19113 | rmdir conf$$.dir 2>/dev/null | |
51a727e9 | 19114 | |
8934764e BB |
19115 | if mkdir -p . 2>/dev/null; then |
19116 | as_mkdir_p=: | |
19117 | else | |
19118 | test -d ./-p && rmdir ./-p | |
19119 | as_mkdir_p=false | |
19120 | fi | |
51a727e9 | 19121 | |
8934764e BB |
19122 | if test -x / >/dev/null 2>&1; then |
19123 | as_test_x='test -x' | |
19124 | else | |
19125 | if ls -dL / >/dev/null 2>&1; then | |
19126 | as_ls_L_option=L | |
19127 | else | |
19128 | as_ls_L_option= | |
19129 | fi | |
19130 | as_test_x=' | |
19131 | eval sh -c '\'' | |
19132 | if test -d "$1"; then | |
19133 | test -d "$1/."; | |
19134 | else | |
19135 | case $1 in | |
19136 | -*)set "./$1";; | |
19137 | esac; | |
19138 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
19139 | ???[sx]*):;;*)false;;esac;fi | |
19140 | '\'' sh | |
19141 | ' | |
19142 | fi | |
19143 | as_executable_p=$as_test_x | |
51a727e9 | 19144 | |
8934764e BB |
19145 | # Sed expression to map a string onto a valid CPP name. |
19146 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
51a727e9 | 19147 | |
8934764e BB |
19148 | # Sed expression to map a string onto a valid variable name. |
19149 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
51a727e9 | 19150 | |
51a727e9 | 19151 | |
8934764e | 19152 | exec 6>&1 |
51a727e9 | 19153 | |
8934764e BB |
19154 | # Save the log message, to keep $[0] and so on meaningful, and to |
19155 | # report actual input values of CONFIG_FILES etc. instead of their | |
19156 | # values after options handling. | |
19157 | ac_log=" | |
19158 | This file was extended by $as_me, which was | |
19159 | generated by GNU Autoconf 2.63. Invocation command line was | |
51a727e9 | 19160 | |
8934764e BB |
19161 | CONFIG_FILES = $CONFIG_FILES |
19162 | CONFIG_HEADERS = $CONFIG_HEADERS | |
19163 | CONFIG_LINKS = $CONFIG_LINKS | |
19164 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
19165 | $ $0 $@ | |
51a727e9 | 19166 | |
8934764e BB |
19167 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
19168 | " | |
a093c6a4 | 19169 | |
8934764e | 19170 | _ACEOF |
a093c6a4 | 19171 | |
8934764e BB |
19172 | case $ac_config_files in *" |
19173 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
19174 | esac | |
a093c6a4 | 19175 | |
8934764e BB |
19176 | case $ac_config_headers in *" |
19177 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
19178 | esac | |
a093c6a4 | 19179 | |
a093c6a4 | 19180 | |
8934764e BB |
19181 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
19182 | # Files that config.status was made for. | |
19183 | config_files="$ac_config_files" | |
19184 | config_headers="$ac_config_headers" | |
19185 | config_commands="$ac_config_commands" | |
a093c6a4 | 19186 | |
a093c6a4 | 19187 | _ACEOF |
a093c6a4 | 19188 | |
8934764e BB |
19189 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
19190 | ac_cs_usage="\ | |
19191 | \`$as_me' instantiates files from templates according to the | |
19192 | current configuration. | |
a093c6a4 | 19193 | |
8934764e | 19194 | Usage: $0 [OPTION]... [FILE]... |
a093c6a4 | 19195 | |
8934764e BB |
19196 | -h, --help print this help, then exit |
19197 | -V, --version print version number and configuration settings, then exit | |
19198 | -q, --quiet, --silent | |
19199 | do not print progress messages | |
19200 | -d, --debug don't remove temporary files | |
19201 | --recheck update $as_me by reconfiguring in the same conditions | |
19202 | --file=FILE[:TEMPLATE] | |
19203 | instantiate the configuration file FILE | |
19204 | --header=FILE[:TEMPLATE] | |
19205 | instantiate the configuration header FILE | |
a093c6a4 | 19206 | |
8934764e BB |
19207 | Configuration files: |
19208 | $config_files | |
a093c6a4 | 19209 | |
8934764e BB |
19210 | Configuration headers: |
19211 | $config_headers | |
a093c6a4 | 19212 | |
8934764e BB |
19213 | Configuration commands: |
19214 | $config_commands | |
a093c6a4 | 19215 | |
8934764e | 19216 | Report bugs to <bug-autoconf@gnu.org>." |
a093c6a4 | 19217 | |
8934764e BB |
19218 | _ACEOF |
19219 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19220 | ac_cs_version="\\ | |
19221 | config.status | |
19222 | configured by $0, generated by GNU Autoconf 2.63, | |
19223 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
a093c6a4 | 19224 | |
8934764e BB |
19225 | Copyright (C) 2008 Free Software Foundation, Inc. |
19226 | This config.status script is free software; the Free Software Foundation | |
19227 | gives unlimited permission to copy, distribute and modify it." | |
a093c6a4 | 19228 | |
8934764e BB |
19229 | ac_pwd='$ac_pwd' |
19230 | srcdir='$srcdir' | |
19231 | INSTALL='$INSTALL' | |
19232 | MKDIR_P='$MKDIR_P' | |
19233 | AWK='$AWK' | |
19234 | test -n "\$AWK" || AWK=awk | |
a093c6a4 BB |
19235 | _ACEOF |
19236 | ||
8934764e BB |
19237 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
19238 | # The default lists apply if the user does not specify any file. | |
19239 | ac_need_defaults=: | |
19240 | while test $# != 0 | |
19241 | do | |
19242 | case $1 in | |
19243 | --*=*) | |
19244 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
19245 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
19246 | ac_shift=: | |
19247 | ;; | |
19248 | *) | |
19249 | ac_option=$1 | |
19250 | ac_optarg=$2 | |
19251 | ac_shift=shift | |
19252 | ;; | |
19253 | esac | |
a093c6a4 | 19254 | |
8934764e BB |
19255 | case $ac_option in |
19256 | # Handling of the options. | |
19257 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
19258 | ac_cs_recheck=: ;; | |
19259 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
19260 | $as_echo "$ac_cs_version"; exit ;; | |
19261 | --debug | --debu | --deb | --de | --d | -d ) | |
19262 | debug=: ;; | |
19263 | --file | --fil | --fi | --f ) | |
19264 | $ac_shift | |
19265 | case $ac_optarg in | |
19266 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
19267 | esac | |
19268 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" | |
19269 | ac_need_defaults=false;; | |
19270 | --header | --heade | --head | --hea ) | |
19271 | $ac_shift | |
19272 | case $ac_optarg in | |
19273 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
19274 | esac | |
19275 | CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" | |
19276 | ac_need_defaults=false;; | |
19277 | --he | --h) | |
19278 | # Conflict between --help and --header | |
19279 | { $as_echo "$as_me: error: ambiguous option: $1 | |
19280 | Try \`$0 --help' for more information." >&2 | |
19281 | { (exit 1); exit 1; }; };; | |
19282 | --help | --hel | -h ) | |
19283 | $as_echo "$ac_cs_usage"; exit ;; | |
19284 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
19285 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
19286 | ac_cs_silent=: ;; | |
19287 | ||
19288 | # This is an error. | |
19289 | -*) { $as_echo "$as_me: error: unrecognized option: $1 | |
19290 | Try \`$0 --help' for more information." >&2 | |
19291 | { (exit 1); exit 1; }; } ;; | |
a093c6a4 | 19292 | |
8934764e BB |
19293 | *) ac_config_targets="$ac_config_targets $1" |
19294 | ac_need_defaults=false ;; | |
a093c6a4 | 19295 | |
8934764e BB |
19296 | esac |
19297 | shift | |
19298 | done | |
a093c6a4 | 19299 | |
8934764e | 19300 | ac_configure_extra_args= |
a093c6a4 | 19301 | |
8934764e BB |
19302 | if $ac_cs_silent; then |
19303 | exec 6>/dev/null | |
19304 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
a093c6a4 BB |
19305 | fi |
19306 | ||
8934764e BB |
19307 | _ACEOF |
19308 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19309 | if \$ac_cs_recheck; then | |
19310 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
19311 | shift | |
19312 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
19313 | CONFIG_SHELL='$SHELL' | |
19314 | export CONFIG_SHELL | |
19315 | exec "\$@" | |
19316 | fi | |
a093c6a4 | 19317 | |
8934764e BB |
19318 | _ACEOF |
19319 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19320 | exec 5>>config.log | |
19321 | { | |
19322 | echo | |
19323 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
19324 | ## Running $as_me. ## | |
19325 | _ASBOX | |
19326 | $as_echo "$ac_log" | |
19327 | } >&5 | |
a093c6a4 | 19328 | |
8934764e BB |
19329 | _ACEOF |
19330 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19331 | # | |
19332 | # INIT-COMMANDS | |
19333 | # | |
19334 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
a093c6a4 | 19335 | |
a093c6a4 | 19336 | |
8934764e BB |
19337 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
19338 | # if CDPATH is set. | |
19339 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
a093c6a4 | 19340 | |
8934764e BB |
19341 | sed_quote_subst='$sed_quote_subst' |
19342 | double_quote_subst='$double_quote_subst' | |
19343 | delay_variable_subst='$delay_variable_subst' | |
19344 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' | |
19345 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' | |
19346 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' | |
19347 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' | |
19348 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' | |
19349 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' | |
19350 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
19351 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' | |
19352 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' | |
19353 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
19354 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' | |
19355 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' | |
19356 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' | |
19357 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' | |
19358 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' | |
19359 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
19360 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
19361 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' | |
19362 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' | |
19363 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' | |
19364 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' | |
19365 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' | |
19366 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' | |
19367 | lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' | |
19368 | lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' | |
19369 | lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' | |
19370 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
19371 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
19372 | OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' | |
19373 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' | |
19374 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' | |
19375 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' | |
19376 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
19377 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' | |
19378 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' | |
19379 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
19380 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
19381 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
19382 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' | |
19383 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
19384 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' | |
19385 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' | |
19386 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' | |
19387 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' | |
19388 | 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"`' | |
19389 | 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"`' | |
19390 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' | |
19391 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' | |
19392 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' | |
19393 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' | |
19394 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
19395 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' | |
19396 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' | |
19397 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' | |
19398 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' | |
19399 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' | |
19400 | DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' | |
19401 | NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' | |
19402 | LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' | |
19403 | OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' | |
19404 | OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' | |
19405 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' | |
19406 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
19407 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
19408 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' | |
19409 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' | |
19410 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
19411 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
19412 | compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' | |
19413 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
19414 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
19415 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
19416 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
19417 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
19418 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
19419 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
19420 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
19421 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
19422 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
19423 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
19424 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' | |
19425 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' | |
19426 | hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' | |
19427 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' | |
19428 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
19429 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' | |
19430 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' | |
19431 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' | |
19432 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' | |
19433 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' | |
19434 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
19435 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
19436 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
19437 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
19438 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
19439 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' | |
19440 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | |
19441 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' | |
19442 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' | |
19443 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
19444 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
19445 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' | |
19446 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
19447 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
19448 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
19449 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
19450 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
19451 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
19452 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' | |
19453 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' | |
19454 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
19455 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
19456 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' | |
19457 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' | |
19458 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' | |
19459 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' | |
19460 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
19461 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
19462 | ||
19463 | LTCC='$LTCC' | |
19464 | LTCFLAGS='$LTCFLAGS' | |
19465 | compiler='$compiler_DEFAULT' | |
19466 | ||
19467 | # Quote evaled strings. | |
19468 | for var in SED \ | |
19469 | GREP \ | |
19470 | EGREP \ | |
19471 | FGREP \ | |
19472 | LD \ | |
19473 | NM \ | |
19474 | LN_S \ | |
19475 | lt_SP2NL \ | |
19476 | lt_NL2SP \ | |
19477 | reload_flag \ | |
19478 | OBJDUMP \ | |
19479 | deplibs_check_method \ | |
19480 | file_magic_cmd \ | |
19481 | AR \ | |
19482 | AR_FLAGS \ | |
19483 | STRIP \ | |
19484 | RANLIB \ | |
19485 | CC \ | |
19486 | CFLAGS \ | |
19487 | compiler \ | |
19488 | lt_cv_sys_global_symbol_pipe \ | |
19489 | lt_cv_sys_global_symbol_to_cdecl \ | |
19490 | lt_cv_sys_global_symbol_to_c_name_address \ | |
19491 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
19492 | SHELL \ | |
19493 | ECHO \ | |
19494 | lt_prog_compiler_no_builtin_flag \ | |
19495 | lt_prog_compiler_wl \ | |
19496 | lt_prog_compiler_pic \ | |
19497 | lt_prog_compiler_static \ | |
19498 | lt_cv_prog_compiler_c_o \ | |
19499 | need_locks \ | |
19500 | DSYMUTIL \ | |
19501 | NMEDIT \ | |
19502 | LIPO \ | |
19503 | OTOOL \ | |
19504 | OTOOL64 \ | |
19505 | shrext_cmds \ | |
19506 | export_dynamic_flag_spec \ | |
19507 | whole_archive_flag_spec \ | |
19508 | compiler_needs_object \ | |
19509 | with_gnu_ld \ | |
19510 | allow_undefined_flag \ | |
19511 | no_undefined_flag \ | |
19512 | hardcode_libdir_flag_spec \ | |
19513 | hardcode_libdir_flag_spec_ld \ | |
19514 | hardcode_libdir_separator \ | |
19515 | fix_srcfile_path \ | |
19516 | exclude_expsyms \ | |
19517 | include_expsyms \ | |
19518 | file_list_spec \ | |
19519 | variables_saved_for_relink \ | |
19520 | libname_spec \ | |
19521 | library_names_spec \ | |
19522 | soname_spec \ | |
19523 | finish_eval \ | |
19524 | old_striplib \ | |
19525 | striplib; do | |
19526 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
19527 | *[\\\\\\\`\\"\\\$]*) | |
19528 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
19529 | ;; | |
19530 | *) | |
19531 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
19532 | ;; | |
19533 | esac | |
19534 | done | |
a093c6a4 | 19535 | |
8934764e BB |
19536 | # Double-quote double-evaled strings. |
19537 | for var in reload_cmds \ | |
19538 | old_postinstall_cmds \ | |
19539 | old_postuninstall_cmds \ | |
19540 | old_archive_cmds \ | |
19541 | extract_expsyms_cmds \ | |
19542 | old_archive_from_new_cmds \ | |
19543 | old_archive_from_expsyms_cmds \ | |
19544 | archive_cmds \ | |
19545 | archive_expsym_cmds \ | |
19546 | module_cmds \ | |
19547 | module_expsym_cmds \ | |
19548 | export_symbols_cmds \ | |
19549 | prelink_cmds \ | |
19550 | postinstall_cmds \ | |
19551 | postuninstall_cmds \ | |
19552 | finish_cmds \ | |
19553 | sys_lib_search_path_spec \ | |
19554 | sys_lib_dlsearch_path_spec; do | |
19555 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
19556 | *[\\\\\\\`\\"\\\$]*) | |
19557 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
19558 | ;; | |
19559 | *) | |
19560 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
19561 | ;; | |
19562 | esac | |
19563 | done | |
a093c6a4 | 19564 | |
8934764e BB |
19565 | # Fix-up fallback echo if it was mangled by the above quoting rules. |
19566 | case \$lt_ECHO in | |
19567 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` | |
19568 | ;; | |
19569 | esac | |
a093c6a4 | 19570 | |
8934764e BB |
19571 | ac_aux_dir='$ac_aux_dir' |
19572 | xsi_shell='$xsi_shell' | |
19573 | lt_shell_append='$lt_shell_append' | |
a093c6a4 | 19574 | |
8934764e BB |
19575 | # See if we are running on zsh, and set the options which allow our |
19576 | # commands through without removal of \ escapes INIT. | |
19577 | if test -n "\${ZSH_VERSION+set}" ; then | |
19578 | setopt NO_GLOB_SUBST | |
19579 | fi | |
a093c6a4 | 19580 | |
a093c6a4 | 19581 | |
8934764e BB |
19582 | PACKAGE='$PACKAGE' |
19583 | VERSION='$VERSION' | |
19584 | TIMESTAMP='$TIMESTAMP' | |
19585 | RM='$RM' | |
19586 | ofile='$ofile' | |
a093c6a4 BB |
19587 | |
19588 | ||
a093c6a4 | 19589 | |
a093c6a4 | 19590 | |
a093c6a4 BB |
19591 | _ACEOF |
19592 | ||
8934764e | 19593 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
a093c6a4 | 19594 | |
8934764e BB |
19595 | # Handling of arguments. |
19596 | for ac_config_target in $ac_config_targets | |
19597 | do | |
19598 | case $ac_config_target in | |
19599 | "spl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS spl_config.h" ;; | |
19600 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
19601 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
19602 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
19603 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
19604 | "cmd/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;; | |
19605 | "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;; | |
19606 | "module/spl/Makefile") CONFIG_FILES="$CONFIG_FILES module/spl/Makefile" ;; | |
19607 | "module/splat/Makefile") CONFIG_FILES="$CONFIG_FILES module/splat/Makefile" ;; | |
19608 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; | |
19609 | "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; | |
19610 | "spl.spec") CONFIG_FILES="$CONFIG_FILES spl.spec" ;; | |
19611 | "spl-modules.spec") CONFIG_FILES="$CONFIG_FILES spl-modules.spec" ;; | |
19612 | ||
19613 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
19614 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
19615 | { (exit 1); exit 1; }; };; | |
19616 | esac | |
19617 | done | |
a093c6a4 BB |
19618 | |
19619 | ||
8934764e BB |
19620 | # If the user did not use the arguments to specify the items to instantiate, |
19621 | # then the envvar interface is used. Set only those that are not. | |
19622 | # We use the long form for the default assignment because of an extremely | |
19623 | # bizarre bug on SunOS 4.1.3. | |
19624 | if $ac_need_defaults; then | |
19625 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
19626 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
19627 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
e11d6c5f BB |
19628 | fi |
19629 | ||
8934764e BB |
19630 | # Have a temporary directory for convenience. Make it in the build tree |
19631 | # simply because there is no reason against having it here, and in addition, | |
19632 | # creating and moving files from /tmp can sometimes cause problems. | |
19633 | # Hook for its removal unless debugging. | |
19634 | # Note that there is a small window in which the directory will not be cleaned: | |
19635 | # after its creation but before its name has been assigned to `$tmp'. | |
19636 | $debug || | |
19637 | { | |
19638 | tmp= | |
19639 | trap 'exit_status=$? | |
19640 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
19641 | ' 0 | |
19642 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
19643 | } | |
19644 | # Create a (secure) tmp directory for tmp files. | |
e11d6c5f | 19645 | |
8934764e BB |
19646 | { |
19647 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
19648 | test -n "$tmp" && test -d "$tmp" | |
19649 | } || | |
19650 | { | |
19651 | tmp=./conf$$-$RANDOM | |
19652 | (umask 077 && mkdir "$tmp") | |
19653 | } || | |
19654 | { | |
19655 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 | |
19656 | { (exit 1); exit 1; } | |
19657 | } | |
e11d6c5f | 19658 | |
8934764e BB |
19659 | # Set up the scripts for CONFIG_FILES section. |
19660 | # No need to generate them if there are no CONFIG_FILES. | |
19661 | # This happens for instance with `./config.status config.h'. | |
19662 | if test -n "$CONFIG_FILES"; then | |
e11d6c5f | 19663 | |
ec7d53e9 | 19664 | |
8934764e BB |
19665 | ac_cr='\r' |
19666 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
19667 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
19668 | ac_cs_awk_cr='\\r' | |
19669 | else | |
19670 | ac_cs_awk_cr=$ac_cr | |
19671 | fi | |
ec7d53e9 | 19672 | |
8934764e | 19673 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
ec7d53e9 | 19674 | _ACEOF |
ec7d53e9 | 19675 | |
ec7d53e9 | 19676 | |
ec7d53e9 | 19677 | { |
8934764e BB |
19678 | echo "cat >conf$$subs.awk <<_ACEOF" && |
19679 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
19680 | echo "_ACEOF" | |
19681 | } >conf$$subs.sh || | |
19682 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
19683 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
19684 | { (exit 1); exit 1; }; } | |
19685 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
19686 | ac_delim='%!_!# ' | |
19687 | for ac_last_try in false false false false false :; do | |
19688 | . ./conf$$subs.sh || | |
19689 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
19690 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
19691 | { (exit 1); exit 1; }; } | |
ec7d53e9 | 19692 | |
8934764e BB |
19693 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
19694 | if test $ac_delim_n = $ac_delim_num; then | |
19695 | break | |
19696 | elif $ac_last_try; then | |
19697 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
19698 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
19699 | { (exit 1); exit 1; }; } | |
19700 | else | |
19701 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
19702 | fi | |
19703 | done | |
19704 | rm -f conf$$subs.sh | |
19705 | ||
19706 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19707 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
19708 | _ACEOF | |
19709 | sed -n ' | |
19710 | h | |
19711 | s/^/S["/; s/!.*/"]=/ | |
19712 | p | |
19713 | g | |
19714 | s/^[^!]*!// | |
19715 | :repl | |
19716 | t repl | |
19717 | s/'"$ac_delim"'$// | |
19718 | t delim | |
19719 | :nl | |
19720 | h | |
19721 | s/\(.\{148\}\).*/\1/ | |
19722 | t more1 | |
19723 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
19724 | p | |
19725 | n | |
19726 | b repl | |
19727 | :more1 | |
19728 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
19729 | p | |
19730 | g | |
19731 | s/.\{148\}// | |
19732 | t nl | |
19733 | :delim | |
19734 | h | |
19735 | s/\(.\{148\}\).*/\1/ | |
19736 | t more2 | |
19737 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
19738 | p | |
19739 | b | |
19740 | :more2 | |
19741 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
19742 | p | |
19743 | g | |
19744 | s/.\{148\}// | |
19745 | t delim | |
19746 | ' <conf$$subs.awk | sed ' | |
19747 | /^[^""]/{ | |
19748 | N | |
19749 | s/\n// | |
19750 | } | |
19751 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
19752 | rm -f conf$$subs.awk | |
19753 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19754 | _ACAWK | |
19755 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
19756 | for (key in S) S_is_set[key] = 1 | |
19757 | FS = "\a" | |
ec7d53e9 | 19758 | |
8934764e BB |
19759 | } |
19760 | { | |
19761 | line = $ 0 | |
19762 | nfields = split(line, field, "@") | |
19763 | substed = 0 | |
19764 | len = length(field[1]) | |
19765 | for (i = 2; i < nfields; i++) { | |
19766 | key = field[i] | |
19767 | keylen = length(key) | |
19768 | if (S_is_set[key]) { | |
19769 | value = S[key] | |
19770 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
19771 | len += length(value) + length(field[++i]) | |
19772 | substed = 1 | |
19773 | } else | |
19774 | len += 1 + keylen | |
19775 | } | |
19776 | ||
19777 | print line | |
ec7d53e9 BB |
19778 | } |
19779 | ||
8934764e BB |
19780 | _ACAWK |
19781 | _ACEOF | |
19782 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19783 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
19784 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
19785 | else | |
19786 | cat | |
19787 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
19788 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 | |
19789 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} | |
19790 | { (exit 1); exit 1; }; } | |
ec7d53e9 BB |
19791 | _ACEOF |
19792 | ||
8934764e BB |
19793 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
19794 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
19795 | # trailing colons and then remove the whole line if VPATH becomes empty | |
19796 | # (actually we leave an empty line to preserve line numbers). | |
19797 | if test "x$srcdir" = x.; then | |
19798 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
19799 | s/:*\$(srcdir):*/:/ | |
19800 | s/:*\${srcdir}:*/:/ | |
19801 | s/:*@srcdir@:*/:/ | |
19802 | s/^\([^=]*=[ ]*\):*/\1/ | |
19803 | s/:*$// | |
19804 | s/^[^=]*=[ ]*$// | |
19805 | }' | |
19806 | fi | |
ec7d53e9 | 19807 | |
8934764e BB |
19808 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
19809 | fi # test -n "$CONFIG_FILES" | |
ec7d53e9 | 19810 | |
8934764e BB |
19811 | # Set up the scripts for CONFIG_HEADERS section. |
19812 | # No need to generate them if there are no CONFIG_HEADERS. | |
19813 | # This happens for instance with `./config.status Makefile'. | |
19814 | if test -n "$CONFIG_HEADERS"; then | |
19815 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
19816 | BEGIN { | |
ec7d53e9 BB |
19817 | _ACEOF |
19818 | ||
8934764e BB |
19819 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
19820 | # here-document in config.status, that substitutes the proper values into | |
19821 | # config.h.in to produce config.h. | |
ec7d53e9 | 19822 | |
8934764e BB |
19823 | # Create a delimiter string that does not exist in confdefs.h, to ease |
19824 | # handling of long lines. | |
19825 | ac_delim='%!_!# ' | |
19826 | for ac_last_try in false false :; do | |
19827 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
19828 | if test -z "$ac_t"; then | |
19829 | break | |
19830 | elif $ac_last_try; then | |
19831 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 | |
19832 | $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} | |
19833 | { (exit 1); exit 1; }; } | |
19834 | else | |
19835 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
19836 | fi | |
19837 | done | |
ec7d53e9 | 19838 | |
8934764e BB |
19839 | # For the awk script, D is an array of macro values keyed by name, |
19840 | # likewise P contains macro parameters if any. Preserve backslash | |
19841 | # newline sequences. | |
19842 | ||
19843 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
19844 | sed -n ' | |
19845 | s/.\{148\}/&'"$ac_delim"'/g | |
19846 | t rset | |
19847 | :rset | |
19848 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
19849 | t def | |
19850 | d | |
19851 | :def | |
19852 | s/\\$// | |
19853 | t bsnl | |
19854 | s/["\\]/\\&/g | |
19855 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
19856 | D["\1"]=" \3"/p | |
19857 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
19858 | d | |
19859 | :bsnl | |
19860 | s/["\\]/\\&/g | |
19861 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
19862 | D["\1"]=" \3\\\\\\n"\\/p | |
19863 | t cont | |
19864 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
19865 | t cont | |
19866 | d | |
19867 | :cont | |
19868 | n | |
19869 | s/.\{148\}/&'"$ac_delim"'/g | |
19870 | t clear | |
19871 | :clear | |
19872 | s/\\$// | |
19873 | t bsnlc | |
19874 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
19875 | d | |
19876 | :bsnlc | |
19877 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
19878 | b cont | |
19879 | ' <confdefs.h | sed ' | |
19880 | s/'"$ac_delim"'/"\\\ | |
19881 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
19882 | ||
19883 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19884 | for (key in D) D_is_set[key] = 1 | |
19885 | FS = "\a" | |
19886 | } | |
19887 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
19888 | line = \$ 0 | |
19889 | split(line, arg, " ") | |
19890 | if (arg[1] == "#") { | |
19891 | defundef = arg[2] | |
19892 | mac1 = arg[3] | |
19893 | } else { | |
19894 | defundef = substr(arg[1], 2) | |
19895 | mac1 = arg[2] | |
19896 | } | |
19897 | split(mac1, mac2, "(") #) | |
19898 | macro = mac2[1] | |
19899 | prefix = substr(line, 1, index(line, defundef) - 1) | |
19900 | if (D_is_set[macro]) { | |
19901 | # Preserve the white space surrounding the "#". | |
19902 | print prefix "define", macro P[macro] D[macro] | |
19903 | next | |
19904 | } else { | |
19905 | # Replace #undef with comments. This is necessary, for example, | |
19906 | # in the case of _POSIX_SOURCE, which is predefined and required | |
19907 | # on some systems where configure will not decide to define it. | |
19908 | if (defundef == "undef") { | |
19909 | print "/*", prefix defundef, macro, "*/" | |
19910 | next | |
19911 | } | |
19912 | } | |
19913 | } | |
19914 | { print } | |
19915 | _ACAWK | |
19916 | _ACEOF | |
19917 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19918 | { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 | |
19919 | $as_echo "$as_me: error: could not setup config headers machinery" >&2;} | |
19920 | { (exit 1); exit 1; }; } | |
19921 | fi # test -n "$CONFIG_HEADERS" | |
ec7d53e9 BB |
19922 | |
19923 | ||
8934764e BB |
19924 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
19925 | shift | |
19926 | for ac_tag | |
19927 | do | |
19928 | case $ac_tag in | |
19929 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
19930 | esac | |
19931 | case $ac_mode$ac_tag in | |
19932 | :[FHL]*:*);; | |
19933 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 | |
19934 | $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} | |
19935 | { (exit 1); exit 1; }; };; | |
19936 | :[FH]-) ac_tag=-:-;; | |
19937 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
19938 | esac | |
19939 | ac_save_IFS=$IFS | |
19940 | IFS=: | |
19941 | set x $ac_tag | |
19942 | IFS=$ac_save_IFS | |
19943 | shift | |
19944 | ac_file=$1 | |
19945 | shift | |
ec7d53e9 | 19946 | |
8934764e BB |
19947 | case $ac_mode in |
19948 | :L) ac_source=$1;; | |
19949 | :[FH]) | |
19950 | ac_file_inputs= | |
19951 | for ac_f | |
19952 | do | |
19953 | case $ac_f in | |
19954 | -) ac_f="$tmp/stdin";; | |
19955 | *) # Look for the file first in the build tree, then in the source tree | |
19956 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
19957 | # because $ac_f cannot contain `:'. | |
19958 | test -f "$ac_f" || | |
19959 | case $ac_f in | |
19960 | [\\/$]*) false;; | |
19961 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
19962 | esac || | |
19963 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | |
19964 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
19965 | { (exit 1); exit 1; }; };; | |
19966 | esac | |
19967 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
19968 | ac_file_inputs="$ac_file_inputs '$ac_f'" | |
19969 | done | |
ec7d53e9 | 19970 | |
8934764e BB |
19971 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
19972 | # use $as_me), people would be surprised to read: | |
19973 | # /* config.h. Generated by config.status. */ | |
19974 | configure_input='Generated from '` | |
19975 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
19976 | `' by configure.' | |
19977 | if test x"$ac_file" != x-; then | |
19978 | configure_input="$ac_file. $configure_input" | |
19979 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 | |
19980 | $as_echo "$as_me: creating $ac_file" >&6;} | |
19981 | fi | |
19982 | # Neutralize special characters interpreted by sed in replacement strings. | |
19983 | case $configure_input in #( | |
19984 | *\&* | *\|* | *\\* ) | |
19985 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
19986 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
19987 | *) ac_sed_conf_input=$configure_input;; | |
19988 | esac | |
ec7d53e9 | 19989 | |
8934764e BB |
19990 | case $ac_tag in |
19991 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
19992 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
19993 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
19994 | { (exit 1); exit 1; }; } ;; | |
19995 | esac | |
19996 | ;; | |
19997 | esac | |
ec7d53e9 | 19998 | |
8934764e BB |
19999 | ac_dir=`$as_dirname -- "$ac_file" || |
20000 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
20001 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
20002 | X"$ac_file" : 'X\(//\)$' \| \ | |
20003 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
20004 | $as_echo X"$ac_file" | | |
20005 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
20006 | s//\1/ | |
20007 | q | |
20008 | } | |
20009 | /^X\(\/\/\)[^/].*/{ | |
20010 | s//\1/ | |
20011 | q | |
20012 | } | |
20013 | /^X\(\/\/\)$/{ | |
20014 | s//\1/ | |
20015 | q | |
20016 | } | |
20017 | /^X\(\/\).*/{ | |
20018 | s//\1/ | |
20019 | q | |
20020 | } | |
20021 | s/.*/./; q'` | |
20022 | { as_dir="$ac_dir" | |
20023 | case $as_dir in #( | |
20024 | -*) as_dir=./$as_dir;; | |
20025 | esac | |
20026 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
20027 | as_dirs= | |
20028 | while :; do | |
20029 | case $as_dir in #( | |
20030 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
20031 | *) as_qdir=$as_dir;; | |
20032 | esac | |
20033 | as_dirs="'$as_qdir' $as_dirs" | |
20034 | as_dir=`$as_dirname -- "$as_dir" || | |
20035 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
20036 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
20037 | X"$as_dir" : 'X\(//\)$' \| \ | |
20038 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
20039 | $as_echo X"$as_dir" | | |
20040 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
20041 | s//\1/ | |
20042 | q | |
20043 | } | |
20044 | /^X\(\/\/\)[^/].*/{ | |
20045 | s//\1/ | |
20046 | q | |
20047 | } | |
20048 | /^X\(\/\/\)$/{ | |
20049 | s//\1/ | |
20050 | q | |
20051 | } | |
20052 | /^X\(\/\).*/{ | |
20053 | s//\1/ | |
20054 | q | |
20055 | } | |
20056 | s/.*/./; q'` | |
20057 | test -d "$as_dir" && break | |
20058 | done | |
20059 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
20060 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
20061 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
20062 | { (exit 1); exit 1; }; }; } | |
20063 | ac_builddir=. | |
ec7d53e9 | 20064 | |
8934764e BB |
20065 | case "$ac_dir" in |
20066 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
20067 | *) | |
20068 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
20069 | # A ".." for each directory in $ac_dir_suffix. | |
20070 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
20071 | case $ac_top_builddir_sub in | |
20072 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
20073 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
20074 | esac ;; | |
20075 | esac | |
20076 | ac_abs_top_builddir=$ac_pwd | |
20077 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
20078 | # for backward compatibility: | |
20079 | ac_top_builddir=$ac_top_build_prefix | |
ec7d53e9 | 20080 | |
8934764e BB |
20081 | case $srcdir in |
20082 | .) # We are building in place. | |
20083 | ac_srcdir=. | |
20084 | ac_top_srcdir=$ac_top_builddir_sub | |
20085 | ac_abs_top_srcdir=$ac_pwd ;; | |
20086 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
20087 | ac_srcdir=$srcdir$ac_dir_suffix; | |
20088 | ac_top_srcdir=$srcdir | |
20089 | ac_abs_top_srcdir=$srcdir ;; | |
20090 | *) # Relative name. | |
20091 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
20092 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
20093 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
20094 | esac | |
20095 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
ec7d53e9 | 20096 | |
ec7d53e9 | 20097 | |
8934764e BB |
20098 | case $ac_mode in |
20099 | :F) | |
20100 | # | |
20101 | # CONFIG_FILE | |
20102 | # | |
20103 | ||
20104 | case $INSTALL in | |
20105 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
20106 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
20107 | esac | |
20108 | ac_MKDIR_P=$MKDIR_P | |
20109 | case $MKDIR_P in | |
20110 | [\\/$]* | ?:[\\/]* ) ;; | |
20111 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
20112 | esac | |
ec7d53e9 BB |
20113 | _ACEOF |
20114 | ||
8934764e BB |
20115 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
20116 | # If the template does not know about datarootdir, expand it. | |
20117 | # FIXME: This hack should be removed a few years after 2.60. | |
20118 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
ec7d53e9 | 20119 | |
8934764e BB |
20120 | ac_sed_dataroot=' |
20121 | /datarootdir/ { | |
20122 | p | |
20123 | q | |
20124 | } | |
20125 | /@datadir@/p | |
20126 | /@docdir@/p | |
20127 | /@infodir@/p | |
20128 | /@localedir@/p | |
20129 | /@mandir@/p | |
20130 | ' | |
20131 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
20132 | *datarootdir*) ac_datarootdir_seen=yes;; | |
20133 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
20134 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
20135 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
20136 | _ACEOF | |
20137 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
20138 | ac_datarootdir_hack=' | |
20139 | s&@datadir@&$datadir&g | |
20140 | s&@docdir@&$docdir&g | |
20141 | s&@infodir@&$infodir&g | |
20142 | s&@localedir@&$localedir&g | |
20143 | s&@mandir@&$mandir&g | |
20144 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
20145 | esac | |
ec7d53e9 BB |
20146 | _ACEOF |
20147 | ||
8934764e BB |
20148 | # Neutralize VPATH when `$srcdir' = `.'. |
20149 | # Shell code in configure.ac might set extrasub. | |
20150 | # FIXME: do we really want to maintain this feature? | |
20151 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
20152 | ac_sed_extra="$ac_vpsub | |
20153 | $extrasub | |
20154 | _ACEOF | |
20155 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
20156 | :t | |
20157 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
20158 | s|@configure_input@|$ac_sed_conf_input|;t t | |
20159 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
20160 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
20161 | s&@srcdir@&$ac_srcdir&;t t | |
20162 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
20163 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
20164 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
20165 | s&@builddir@&$ac_builddir&;t t | |
20166 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
20167 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
20168 | s&@INSTALL@&$ac_INSTALL&;t t | |
20169 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
20170 | $ac_datarootdir_hack | |
20171 | " | |
20172 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
20173 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
20174 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
20175 | { (exit 1); exit 1; }; } | |
ec7d53e9 | 20176 | |
8934764e BB |
20177 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
20178 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
20179 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
20180 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
20181 | which seems to be undefined. Please make sure it is defined." >&5 | |
20182 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
20183 | which seems to be undefined. Please make sure it is defined." >&2;} | |
ec7d53e9 | 20184 | |
8934764e BB |
20185 | rm -f "$tmp/stdin" |
20186 | case $ac_file in | |
20187 | -) cat "$tmp/out" && rm -f "$tmp/out";; | |
20188 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
20189 | esac \ | |
20190 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
20191 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
20192 | { (exit 1); exit 1; }; } | |
20193 | ;; | |
20194 | :H) | |
20195 | # | |
20196 | # CONFIG_HEADER | |
20197 | # | |
20198 | if test x"$ac_file" != x-; then | |
20199 | { | |
20200 | $as_echo "/* $configure_input */" \ | |
20201 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
20202 | } >"$tmp/config.h" \ | |
20203 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
20204 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
20205 | { (exit 1); exit 1; }; } | |
20206 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
20207 | { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
20208 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
20209 | else | |
20210 | rm -f "$ac_file" | |
20211 | mv "$tmp/config.h" "$ac_file" \ | |
20212 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
20213 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
20214 | { (exit 1); exit 1; }; } | |
20215 | fi | |
20216 | else | |
20217 | $as_echo "/* $configure_input */" \ | |
20218 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
20219 | || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 | |
20220 | $as_echo "$as_me: error: could not create -" >&2;} | |
20221 | { (exit 1); exit 1; }; } | |
20222 | fi | |
20223 | # Compute "$ac_file"'s index in $config_headers. | |
20224 | _am_arg="$ac_file" | |
20225 | _am_stamp_count=1 | |
20226 | for _am_header in $config_headers :; do | |
20227 | case $_am_header in | |
20228 | $_am_arg | $_am_arg:* ) | |
20229 | break ;; | |
20230 | * ) | |
20231 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
20232 | esac | |
20233 | done | |
20234 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
20235 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
20236 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
20237 | X"$_am_arg" : 'X\(//\)$' \| \ | |
20238 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
20239 | $as_echo X"$_am_arg" | | |
20240 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
20241 | s//\1/ | |
20242 | q | |
20243 | } | |
20244 | /^X\(\/\/\)[^/].*/{ | |
20245 | s//\1/ | |
20246 | q | |
20247 | } | |
20248 | /^X\(\/\/\)$/{ | |
20249 | s//\1/ | |
20250 | q | |
20251 | } | |
20252 | /^X\(\/\).*/{ | |
20253 | s//\1/ | |
20254 | q | |
20255 | } | |
20256 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
20257 | ;; | |
ec7d53e9 | 20258 | |
8934764e BB |
20259 | :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
20260 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
20261 | ;; | |
20262 | esac | |
e811949a | 20263 | |
e811949a | 20264 | |
8934764e BB |
20265 | case $ac_file$ac_mode in |
20266 | "spl_config.h":H) | |
20267 | (mv spl_config.h spl_config.h.tmp && | |
20268 | awk -f config/config.awk spl_config.h.tmp >spl_config.h && | |
20269 | rm spl_config.h.tmp) || exit 1 ;; | |
20270 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
20271 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
20272 | # are listed without --file. Let's play safe and only enable the eval | |
20273 | # if we detect the quoting. | |
20274 | case $CONFIG_FILES in | |
20275 | *\'*) eval set x "$CONFIG_FILES" ;; | |
20276 | *) set x $CONFIG_FILES ;; | |
20277 | esac | |
20278 | shift | |
20279 | for mf | |
20280 | do | |
20281 | # Strip MF so we end up with the name of the file. | |
20282 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
20283 | # Check whether this is an Automake generated Makefile or not. | |
20284 | # We used to match only the files named `Makefile.in', but | |
20285 | # some people rename them; so instead we look at the file content. | |
20286 | # Grep'ing the first line is not enough: some people post-process | |
20287 | # each Makefile.in and add a new line on top of each file to say so. | |
20288 | # Grep'ing the whole file is not good either: AIX grep has a line | |
20289 | # limit of 2048, but all sed's we know have understand at least 4000. | |
20290 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
20291 | dirpart=`$as_dirname -- "$mf" || | |
20292 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
20293 | X"$mf" : 'X\(//\)[^/]' \| \ | |
20294 | X"$mf" : 'X\(//\)$' \| \ | |
20295 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
20296 | $as_echo X"$mf" | | |
20297 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
20298 | s//\1/ | |
20299 | q | |
20300 | } | |
20301 | /^X\(\/\/\)[^/].*/{ | |
20302 | s//\1/ | |
20303 | q | |
20304 | } | |
20305 | /^X\(\/\/\)$/{ | |
20306 | s//\1/ | |
20307 | q | |
20308 | } | |
20309 | /^X\(\/\).*/{ | |
20310 | s//\1/ | |
20311 | q | |
20312 | } | |
20313 | s/.*/./; q'` | |
20314 | else | |
20315 | continue | |
20316 | fi | |
20317 | # Extract the definition of DEPDIR, am__include, and am__quote | |
20318 | # from the Makefile without running `make'. | |
20319 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
20320 | test -z "$DEPDIR" && continue | |
20321 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
20322 | test -z "am__include" && continue | |
20323 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
20324 | # When using ansi2knr, U may be empty or an underscore; expand it | |
20325 | U=`sed -n 's/^U = //p' < "$mf"` | |
20326 | # Find all dependency output files, they are included files with | |
20327 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
20328 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
20329 | # expansion. | |
20330 | for file in `sed -n " | |
20331 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
20332 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
20333 | # Make sure the directory exists. | |
20334 | test -f "$dirpart/$file" && continue | |
20335 | fdir=`$as_dirname -- "$file" || | |
20336 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
20337 | X"$file" : 'X\(//\)[^/]' \| \ | |
20338 | X"$file" : 'X\(//\)$' \| \ | |
20339 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
20340 | $as_echo X"$file" | | |
20341 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
20342 | s//\1/ | |
20343 | q | |
20344 | } | |
20345 | /^X\(\/\/\)[^/].*/{ | |
20346 | s//\1/ | |
20347 | q | |
20348 | } | |
20349 | /^X\(\/\/\)$/{ | |
20350 | s//\1/ | |
20351 | q | |
20352 | } | |
20353 | /^X\(\/\).*/{ | |
20354 | s//\1/ | |
20355 | q | |
20356 | } | |
20357 | s/.*/./; q'` | |
20358 | { as_dir=$dirpart/$fdir | |
20359 | case $as_dir in #( | |
20360 | -*) as_dir=./$as_dir;; | |
20361 | esac | |
20362 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
20363 | as_dirs= | |
20364 | while :; do | |
20365 | case $as_dir in #( | |
20366 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
20367 | *) as_qdir=$as_dir;; | |
20368 | esac | |
20369 | as_dirs="'$as_qdir' $as_dirs" | |
20370 | as_dir=`$as_dirname -- "$as_dir" || | |
20371 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
20372 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
20373 | X"$as_dir" : 'X\(//\)$' \| \ | |
20374 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
20375 | $as_echo X"$as_dir" | | |
20376 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
20377 | s//\1/ | |
20378 | q | |
20379 | } | |
20380 | /^X\(\/\/\)[^/].*/{ | |
20381 | s//\1/ | |
20382 | q | |
20383 | } | |
20384 | /^X\(\/\/\)$/{ | |
20385 | s//\1/ | |
20386 | q | |
20387 | } | |
20388 | /^X\(\/\).*/{ | |
20389 | s//\1/ | |
20390 | q | |
20391 | } | |
20392 | s/.*/./; q'` | |
20393 | test -d "$as_dir" && break | |
20394 | done | |
20395 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
20396 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
20397 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
20398 | { (exit 1); exit 1; }; }; } | |
20399 | # echo "creating $dirpart/$file" | |
20400 | echo '# dummy' > "$dirpart/$file" | |
20401 | done | |
20402 | done | |
20403 | } | |
20404 | ;; | |
20405 | "libtool":C) | |
20406 | ||
20407 | # See if we are running on zsh, and set the options which allow our | |
20408 | # commands through without removal of \ escapes. | |
20409 | if test -n "${ZSH_VERSION+set}" ; then | |
20410 | setopt NO_GLOB_SUBST | |
20411 | fi | |
20412 | ||
20413 | cfgfile="${ofile}T" | |
20414 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
20415 | $RM "$cfgfile" | |
20416 | ||
20417 | cat <<_LT_EOF >> "$cfgfile" | |
20418 | #! $SHELL | |
20419 | ||
20420 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
20421 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
20422 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
20423 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
20424 | # | |
20425 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
20426 | # 2006, 2007, 2008 Free Software Foundation, Inc. | |
20427 | # Written by Gordon Matzigkeit, 1996 | |
20428 | # | |
20429 | # This file is part of GNU Libtool. | |
20430 | # | |
20431 | # GNU Libtool is free software; you can redistribute it and/or | |
20432 | # modify it under the terms of the GNU General Public License as | |
20433 | # published by the Free Software Foundation; either version 2 of | |
20434 | # the License, or (at your option) any later version. | |
20435 | # | |
20436 | # As a special exception to the GNU General Public License, | |
20437 | # if you distribute this file as part of a program or library that | |
20438 | # is built using GNU Libtool, you may include this file under the | |
20439 | # same distribution terms that you use for the rest of that program. | |
20440 | # | |
20441 | # GNU Libtool is distributed in the hope that it will be useful, | |
20442 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
20443 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
20444 | # GNU General Public License for more details. | |
20445 | # | |
20446 | # You should have received a copy of the GNU General Public License | |
20447 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
20448 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
20449 | # obtained by writing to the Free Software Foundation, Inc., | |
20450 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
20451 | ||
20452 | ||
20453 | # The names of the tagged configurations supported by this script. | |
20454 | available_tags="" | |
20455 | ||
20456 | # ### BEGIN LIBTOOL CONFIG | |
20457 | ||
20458 | # Which release of libtool.m4 was used? | |
20459 | macro_version=$macro_version | |
20460 | macro_revision=$macro_revision | |
e811949a | 20461 | |
8934764e BB |
20462 | # Whether or not to build shared libraries. |
20463 | build_libtool_libs=$enable_shared | |
e811949a | 20464 | |
8934764e BB |
20465 | # Whether or not to build static libraries. |
20466 | build_old_libs=$enable_static | |
e811949a | 20467 | |
8934764e BB |
20468 | # What type of objects to build. |
20469 | pic_mode=$pic_mode | |
e811949a | 20470 | |
8934764e BB |
20471 | # Whether or not to optimize for fast installation. |
20472 | fast_install=$enable_fast_install | |
e811949a | 20473 | |
8934764e BB |
20474 | # The host system. |
20475 | host_alias=$host_alias | |
20476 | host=$host | |
20477 | host_os=$host_os | |
e811949a | 20478 | |
8934764e BB |
20479 | # The build system. |
20480 | build_alias=$build_alias | |
20481 | build=$build | |
20482 | build_os=$build_os | |
3977f837 | 20483 | |
8934764e BB |
20484 | # A sed program that does not truncate output. |
20485 | SED=$lt_SED | |
3977f837 | 20486 | |
8934764e BB |
20487 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
20488 | Xsed="\$SED -e 1s/^X//" | |
3977f837 | 20489 | |
8934764e BB |
20490 | # A grep program that handles long lines. |
20491 | GREP=$lt_GREP | |
3977f837 | 20492 | |
8934764e BB |
20493 | # An ERE matcher. |
20494 | EGREP=$lt_EGREP | |
3977f837 | 20495 | |
8934764e BB |
20496 | # A literal string matcher. |
20497 | FGREP=$lt_FGREP | |
3977f837 | 20498 | |
8934764e BB |
20499 | # A BSD- or MS-compatible name lister. |
20500 | NM=$lt_NM | |
3977f837 | 20501 | |
8934764e BB |
20502 | # Whether we need soft or hard links. |
20503 | LN_S=$lt_LN_S | |
3977f837 | 20504 | |
8934764e BB |
20505 | # What is the maximum length of a command? |
20506 | max_cmd_len=$max_cmd_len | |
3977f837 | 20507 | |
8934764e BB |
20508 | # Object file suffix (normally "o"). |
20509 | objext=$ac_objext | |
3977f837 | 20510 | |
8934764e BB |
20511 | # Executable file suffix (normally ""). |
20512 | exeext=$exeext | |
3977f837 | 20513 | |
8934764e BB |
20514 | # whether the shell understands "unset". |
20515 | lt_unset=$lt_unset | |
3977f837 | 20516 | |
8934764e BB |
20517 | # turn spaces into newlines. |
20518 | SP2NL=$lt_lt_SP2NL | |
3977f837 | 20519 | |
8934764e BB |
20520 | # turn newlines into spaces. |
20521 | NL2SP=$lt_lt_NL2SP | |
3977f837 | 20522 | |
8934764e BB |
20523 | # How to create reloadable object files. |
20524 | reload_flag=$lt_reload_flag | |
20525 | reload_cmds=$lt_reload_cmds | |
3977f837 | 20526 | |
8934764e BB |
20527 | # An object symbol dumper. |
20528 | OBJDUMP=$lt_OBJDUMP | |
3977f837 | 20529 | |
8934764e BB |
20530 | # Method to check whether dependent libraries are shared objects. |
20531 | deplibs_check_method=$lt_deplibs_check_method | |
3977f837 | 20532 | |
8934764e BB |
20533 | # Command to use when deplibs_check_method == "file_magic". |
20534 | file_magic_cmd=$lt_file_magic_cmd | |
3977f837 | 20535 | |
8934764e BB |
20536 | # The archiver. |
20537 | AR=$lt_AR | |
20538 | AR_FLAGS=$lt_AR_FLAGS | |
3977f837 | 20539 | |
8934764e BB |
20540 | # A symbol stripping program. |
20541 | STRIP=$lt_STRIP | |
3977f837 | 20542 | |
8934764e BB |
20543 | # Commands used to install an old-style archive. |
20544 | RANLIB=$lt_RANLIB | |
20545 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
20546 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
3977f837 | 20547 | |
8934764e BB |
20548 | # A C compiler. |
20549 | LTCC=$lt_CC | |
3977f837 | 20550 | |
8934764e BB |
20551 | # LTCC compiler flags. |
20552 | LTCFLAGS=$lt_CFLAGS | |
3977f837 | 20553 | |
8934764e BB |
20554 | # Take the output of nm and produce a listing of raw symbols and C names. |
20555 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
86933a6e | 20556 | |
8934764e BB |
20557 | # Transform the output of nm in a proper C declaration. |
20558 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
86933a6e | 20559 | |
8934764e BB |
20560 | # Transform the output of nm in a C name address pair. |
20561 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
86933a6e | 20562 | |
8934764e BB |
20563 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
20564 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
86933a6e | 20565 | |
8934764e BB |
20566 | # The name of the directory that contains temporary libtool files. |
20567 | objdir=$objdir | |
86933a6e | 20568 | |
8934764e BB |
20569 | # Shell to use when invoking shell scripts. |
20570 | SHELL=$lt_SHELL | |
86933a6e | 20571 | |
8934764e BB |
20572 | # An echo program that does not interpret backslashes. |
20573 | ECHO=$lt_ECHO | |
86933a6e | 20574 | |
8934764e BB |
20575 | # Used to examine libraries when file_magic_cmd begins with "file". |
20576 | MAGIC_CMD=$MAGIC_CMD | |
86933a6e | 20577 | |
8934764e BB |
20578 | # Must we lock files when doing compilation? |
20579 | need_locks=$lt_need_locks | |
86933a6e | 20580 | |
8934764e BB |
20581 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
20582 | DSYMUTIL=$lt_DSYMUTIL | |
bf9f3bac | 20583 | |
8934764e BB |
20584 | # Tool to change global to local symbols on Mac OS X. |
20585 | NMEDIT=$lt_NMEDIT | |
bf9f3bac | 20586 | |
8934764e BB |
20587 | # Tool to manipulate fat objects and archives on Mac OS X. |
20588 | LIPO=$lt_LIPO | |
bf9f3bac | 20589 | |
8934764e BB |
20590 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
20591 | OTOOL=$lt_OTOOL | |
bf9f3bac | 20592 | |
8934764e BB |
20593 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
20594 | OTOOL64=$lt_OTOOL64 | |
bf9f3bac | 20595 | |
8934764e BB |
20596 | # Old archive suffix (normally "a"). |
20597 | libext=$libext | |
bf9f3bac | 20598 | |
8934764e BB |
20599 | # Shared library suffix (normally ".so"). |
20600 | shrext_cmds=$lt_shrext_cmds | |
bf9f3bac | 20601 | |
8934764e BB |
20602 | # The commands to extract the exported symbol list from a shared archive. |
20603 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
bf9f3bac | 20604 | |
8934764e BB |
20605 | # Variables whose values should be saved in libtool wrapper scripts and |
20606 | # restored at link time. | |
20607 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
bf9f3bac | 20608 | |
8934764e BB |
20609 | # Do we need the "lib" prefix for modules? |
20610 | need_lib_prefix=$need_lib_prefix | |
bf9f3bac | 20611 | |
8934764e BB |
20612 | # Do we need a version for libraries? |
20613 | need_version=$need_version | |
bf9f3bac | 20614 | |
8934764e BB |
20615 | # Library versioning type. |
20616 | version_type=$version_type | |
bf9f3bac | 20617 | |
8934764e BB |
20618 | # Shared library runtime path variable. |
20619 | runpath_var=$runpath_var | |
bf9f3bac | 20620 | |
8934764e BB |
20621 | # Shared library path variable. |
20622 | shlibpath_var=$shlibpath_var | |
bf9f3bac | 20623 | |
8934764e BB |
20624 | # Is shlibpath searched before the hard-coded library search path? |
20625 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
bf9f3bac | 20626 | |
8934764e BB |
20627 | # Format of library name prefix. |
20628 | libname_spec=$lt_libname_spec | |
bf9f3bac | 20629 | |
8934764e BB |
20630 | # List of archive names. First name is the real one, the rest are links. |
20631 | # The last name is the one that the linker finds with -lNAME | |
20632 | library_names_spec=$lt_library_names_spec | |
bf9f3bac | 20633 | |
8934764e BB |
20634 | # The coded name of the library, if different from the real name. |
20635 | soname_spec=$lt_soname_spec | |
bf9f3bac | 20636 | |
8934764e BB |
20637 | # Command to use after installation of a shared archive. |
20638 | postinstall_cmds=$lt_postinstall_cmds | |
bf9f3bac | 20639 | |
8934764e BB |
20640 | # Command to use after uninstallation of a shared archive. |
20641 | postuninstall_cmds=$lt_postuninstall_cmds | |
bf9f3bac | 20642 | |
8934764e BB |
20643 | # Commands used to finish a libtool library installation in a directory. |
20644 | finish_cmds=$lt_finish_cmds | |
bf9f3bac | 20645 | |
8934764e BB |
20646 | # As "finish_cmds", except a single script fragment to be evaled but |
20647 | # not shown. | |
20648 | finish_eval=$lt_finish_eval | |
bf9f3bac | 20649 | |
8934764e BB |
20650 | # Whether we should hardcode library paths into libraries. |
20651 | hardcode_into_libs=$hardcode_into_libs | |
bf9f3bac | 20652 | |
8934764e BB |
20653 | # Compile-time system search path for libraries. |
20654 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
bf9f3bac | 20655 | |
8934764e BB |
20656 | # Run-time system search path for libraries. |
20657 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
bf9f3bac | 20658 | |
8934764e BB |
20659 | # Whether dlopen is supported. |
20660 | dlopen_support=$enable_dlopen | |
bf9f3bac | 20661 | |
8934764e BB |
20662 | # Whether dlopen of programs is supported. |
20663 | dlopen_self=$enable_dlopen_self | |
bf9f3bac | 20664 | |
8934764e BB |
20665 | # Whether dlopen of statically linked programs is supported. |
20666 | dlopen_self_static=$enable_dlopen_self_static | |
bf9f3bac | 20667 | |
8934764e BB |
20668 | # Commands to strip libraries. |
20669 | old_striplib=$lt_old_striplib | |
20670 | striplib=$lt_striplib | |
bf9f3bac | 20671 | |
bf9f3bac | 20672 | |
8934764e BB |
20673 | # The linker used to build libraries. |
20674 | LD=$lt_LD | |
bf9f3bac | 20675 | |
8934764e BB |
20676 | # Commands used to build an old-style archive. |
20677 | old_archive_cmds=$lt_old_archive_cmds | |
bf9f3bac | 20678 | |
8934764e BB |
20679 | # A language specific compiler. |
20680 | CC=$lt_compiler | |
bf9f3bac | 20681 | |
8934764e BB |
20682 | # Is the compiler the GNU compiler? |
20683 | with_gcc=$GCC | |
bf9f3bac | 20684 | |
8934764e BB |
20685 | # Compiler flag to turn off builtin functions. |
20686 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
bf9f3bac | 20687 | |
8934764e BB |
20688 | # How to pass a linker flag through the compiler. |
20689 | wl=$lt_lt_prog_compiler_wl | |
bf9f3bac | 20690 | |
8934764e BB |
20691 | # Additional compiler flags for building library objects. |
20692 | pic_flag=$lt_lt_prog_compiler_pic | |
bf9f3bac | 20693 | |
8934764e BB |
20694 | # Compiler flag to prevent dynamic linking. |
20695 | link_static_flag=$lt_lt_prog_compiler_static | |
bf9f3bac | 20696 | |
8934764e BB |
20697 | # Does compiler simultaneously support -c and -o options? |
20698 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
bf9f3bac | 20699 | |
8934764e BB |
20700 | # Whether or not to add -lc for building shared libraries. |
20701 | build_libtool_need_lc=$archive_cmds_need_lc | |
bf9f3bac | 20702 | |
8934764e BB |
20703 | # Whether or not to disallow shared libs when runtime libs are static. |
20704 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
bf9f3bac | 20705 | |
8934764e BB |
20706 | # Compiler flag to allow reflexive dlopens. |
20707 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
bf9f3bac | 20708 | |
8934764e BB |
20709 | # Compiler flag to generate shared objects directly from archives. |
20710 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
bf9f3bac | 20711 | |
8934764e BB |
20712 | # Whether the compiler copes with passing no objects directly. |
20713 | compiler_needs_object=$lt_compiler_needs_object | |
bf9f3bac | 20714 | |
8934764e BB |
20715 | # Create an old-style archive from a shared archive. |
20716 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
bf9f3bac | 20717 | |
8934764e BB |
20718 | # Create a temporary old-style archive to link instead of a shared archive. |
20719 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
bf9f3bac | 20720 | |
8934764e BB |
20721 | # Commands used to build a shared archive. |
20722 | archive_cmds=$lt_archive_cmds | |
20723 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
bf9f3bac | 20724 | |
8934764e BB |
20725 | # Commands used to build a loadable module if different from building |
20726 | # a shared archive. | |
20727 | module_cmds=$lt_module_cmds | |
20728 | module_expsym_cmds=$lt_module_expsym_cmds | |
bf9f3bac | 20729 | |
8934764e BB |
20730 | # Whether we are building with GNU ld or not. |
20731 | with_gnu_ld=$lt_with_gnu_ld | |
bf9f3bac | 20732 | |
8934764e BB |
20733 | # Flag that allows shared libraries with undefined symbols to be built. |
20734 | allow_undefined_flag=$lt_allow_undefined_flag | |
bf9f3bac | 20735 | |
8934764e BB |
20736 | # Flag that enforces no undefined symbols. |
20737 | no_undefined_flag=$lt_no_undefined_flag | |
bf9f3bac | 20738 | |
8934764e BB |
20739 | # Flag to hardcode \$libdir into a binary during linking. |
20740 | # This must work even if \$libdir does not exist | |
20741 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
bf9f3bac | 20742 | |
8934764e BB |
20743 | # If ld is used when linking, flag to hardcode \$libdir into a binary |
20744 | # during linking. This must work even if \$libdir does not exist. | |
20745 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
bf9f3bac | 20746 | |
8934764e BB |
20747 | # Whether we need a single "-rpath" flag with a separated argument. |
20748 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
bf9f3bac | 20749 | |
8934764e BB |
20750 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
20751 | # DIR into the resulting binary. | |
20752 | hardcode_direct=$hardcode_direct | |
bf9f3bac | 20753 | |
8934764e BB |
20754 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
20755 | # DIR into the resulting binary and the resulting library dependency is | |
20756 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
20757 | # library is relocated. | |
20758 | hardcode_direct_absolute=$hardcode_direct_absolute | |
bf9f3bac | 20759 | |
8934764e BB |
20760 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
20761 | # into the resulting binary. | |
20762 | hardcode_minus_L=$hardcode_minus_L | |
bf9f3bac | 20763 | |
8934764e BB |
20764 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
20765 | # into the resulting binary. | |
20766 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
bf9f3bac | 20767 | |
8934764e BB |
20768 | # Set to "yes" if building a shared library automatically hardcodes DIR |
20769 | # into the library and all subsequent libraries and executables linked | |
20770 | # against it. | |
20771 | hardcode_automatic=$hardcode_automatic | |
bf9f3bac | 20772 | |
8934764e BB |
20773 | # Set to yes if linker adds runtime paths of dependent libraries |
20774 | # to runtime path list. | |
20775 | inherit_rpath=$inherit_rpath | |
bf9f3bac | 20776 | |
8934764e BB |
20777 | # Whether libtool must link a program against all its dependency libraries. |
20778 | link_all_deplibs=$link_all_deplibs | |
bf9f3bac | 20779 | |
8934764e BB |
20780 | # Fix the shell variable \$srcfile for the compiler. |
20781 | fix_srcfile_path=$lt_fix_srcfile_path | |
bf9f3bac | 20782 | |
8934764e BB |
20783 | # Set to "yes" if exported symbols are required. |
20784 | always_export_symbols=$always_export_symbols | |
bf9f3bac | 20785 | |
8934764e BB |
20786 | # The commands to list exported symbols. |
20787 | export_symbols_cmds=$lt_export_symbols_cmds | |
bf9f3bac | 20788 | |
8934764e BB |
20789 | # Symbols that should not be listed in the preloaded symbols. |
20790 | exclude_expsyms=$lt_exclude_expsyms | |
bf9f3bac | 20791 | |
8934764e BB |
20792 | # Symbols that must always be exported. |
20793 | include_expsyms=$lt_include_expsyms | |
bf9f3bac | 20794 | |
8934764e BB |
20795 | # Commands necessary for linking programs (against libraries) with templates. |
20796 | prelink_cmds=$lt_prelink_cmds | |
bf9f3bac | 20797 | |
8934764e BB |
20798 | # Specify filename containing input files. |
20799 | file_list_spec=$lt_file_list_spec | |
bf9f3bac | 20800 | |
8934764e BB |
20801 | # How to hardcode a shared library path into an executable. |
20802 | hardcode_action=$hardcode_action | |
bf9f3bac | 20803 | |
8934764e BB |
20804 | # ### END LIBTOOL CONFIG |
20805 | ||
20806 | _LT_EOF | |
20807 | ||
20808 | case $host_os in | |
20809 | aix3*) | |
20810 | cat <<\_LT_EOF >> "$cfgfile" | |
20811 | # AIX sometimes has problems with the GCC collect2 program. For some | |
20812 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
20813 | # vanish in a puff of smoke. | |
20814 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
20815 | COLLECT_NAMES= | |
20816 | export COLLECT_NAMES | |
bf9f3bac | 20817 | fi |
8934764e BB |
20818 | _LT_EOF |
20819 | ;; | |
20820 | esac | |
bf9f3bac | 20821 | |
bf9f3bac | 20822 | |
8934764e | 20823 | ltmain="$ac_aux_dir/ltmain.sh" |
bf9f3bac | 20824 | |
bf9f3bac | 20825 | |
8934764e BB |
20826 | # We use sed instead of cat because bash on DJGPP gets confused if |
20827 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
20828 | # text mode, it properly converts lines to CR/LF. This bash problem | |
20829 | # is reportedly fixed, but why not run on old versions too? | |
20830 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
20831 | || (rm -f "$cfgfile"; exit 1) | |
bf9f3bac | 20832 | |
8934764e BB |
20833 | case $xsi_shell in |
20834 | yes) | |
20835 | cat << \_LT_EOF >> "$cfgfile" | |
bf9f3bac | 20836 | |
8934764e BB |
20837 | # func_dirname file append nondir_replacement |
20838 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
20839 | # otherwise set result to NONDIR_REPLACEMENT. | |
20840 | func_dirname () | |
20841 | { | |
20842 | case ${1} in | |
20843 | */*) func_dirname_result="${1%/*}${2}" ;; | |
20844 | * ) func_dirname_result="${3}" ;; | |
bf9f3bac | 20845 | esac |
8934764e | 20846 | } |
bf9f3bac | 20847 | |
8934764e BB |
20848 | # func_basename file |
20849 | func_basename () | |
20850 | { | |
20851 | func_basename_result="${1##*/}" | |
20852 | } | |
bf9f3bac | 20853 | |
8934764e BB |
20854 | # func_dirname_and_basename file append nondir_replacement |
20855 | # perform func_basename and func_dirname in a single function | |
20856 | # call: | |
20857 | # dirname: Compute the dirname of FILE. If nonempty, | |
20858 | # add APPEND to the result, otherwise set result | |
20859 | # to NONDIR_REPLACEMENT. | |
20860 | # value returned in "$func_dirname_result" | |
20861 | # basename: Compute filename of FILE. | |
20862 | # value retuned in "$func_basename_result" | |
20863 | # Implementation must be kept synchronized with func_dirname | |
20864 | # and func_basename. For efficiency, we do not delegate to | |
20865 | # those functions but instead duplicate the functionality here. | |
20866 | func_dirname_and_basename () | |
bf9f3bac | 20867 | { |
8934764e BB |
20868 | case ${1} in |
20869 | */*) func_dirname_result="${1%/*}${2}" ;; | |
20870 | * ) func_dirname_result="${3}" ;; | |
20871 | esac | |
20872 | func_basename_result="${1##*/}" | |
bf9f3bac BB |
20873 | } |
20874 | ||
8934764e BB |
20875 | # func_stripname prefix suffix name |
20876 | # strip PREFIX and SUFFIX off of NAME. | |
20877 | # PREFIX and SUFFIX must not contain globbing or regex special | |
20878 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
20879 | # dot (in which case that matches only a dot). | |
20880 | func_stripname () | |
20881 | { | |
20882 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
20883 | # positional parameters, so assign one to ordinary parameter first. | |
20884 | func_stripname_result=${3} | |
20885 | func_stripname_result=${func_stripname_result#"${1}"} | |
20886 | func_stripname_result=${func_stripname_result%"${2}"} | |
20887 | } | |
bf9f3bac | 20888 | |
8934764e BB |
20889 | # func_opt_split |
20890 | func_opt_split () | |
bf9f3bac | 20891 | { |
8934764e BB |
20892 | func_opt_split_opt=${1%%=*} |
20893 | func_opt_split_arg=${1#*=} | |
20894 | } | |
20895 | ||
20896 | # func_lo2o object | |
20897 | func_lo2o () | |
bf9f3bac | 20898 | { |
8934764e BB |
20899 | case ${1} in |
20900 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
20901 | *) func_lo2o_result=${1} ;; | |
20902 | esac | |
20903 | } | |
20904 | ||
20905 | # func_xform libobj-or-source | |
20906 | func_xform () | |
bf9f3bac | 20907 | { |
8934764e | 20908 | func_xform_result=${1%.*}.lo |
bf9f3bac BB |
20909 | } |
20910 | ||
8934764e BB |
20911 | # func_arith arithmetic-term... |
20912 | func_arith () | |
20913 | { | |
20914 | func_arith_result=$(( $* )) | |
20915 | } | |
bf9f3bac | 20916 | |
8934764e BB |
20917 | # func_len string |
20918 | # STRING may not start with a hyphen. | |
20919 | func_len () | |
20920 | { | |
20921 | func_len_result=${#1} | |
20922 | } | |
bf9f3bac | 20923 | |
8934764e BB |
20924 | _LT_EOF |
20925 | ;; | |
20926 | *) # Bourne compatible functions. | |
20927 | cat << \_LT_EOF >> "$cfgfile" | |
bf9f3bac | 20928 | |
8934764e BB |
20929 | # func_dirname file append nondir_replacement |
20930 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
20931 | # otherwise set result to NONDIR_REPLACEMENT. | |
20932 | func_dirname () | |
20933 | { | |
20934 | # Extract subdirectory from the argument. | |
20935 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | |
20936 | if test "X$func_dirname_result" = "X${1}"; then | |
20937 | func_dirname_result="${3}" | |
20938 | else | |
20939 | func_dirname_result="$func_dirname_result${2}" | |
bf9f3bac | 20940 | fi |
8934764e | 20941 | } |
bf9f3bac | 20942 | |
8934764e BB |
20943 | # func_basename file |
20944 | func_basename () | |
20945 | { | |
20946 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` | |
20947 | } | |
bf9f3bac | 20948 | |
bf9f3bac | 20949 | |
8934764e BB |
20950 | # func_stripname prefix suffix name |
20951 | # strip PREFIX and SUFFIX off of NAME. | |
20952 | # PREFIX and SUFFIX must not contain globbing or regex special | |
20953 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
20954 | # dot (in which case that matches only a dot). | |
20955 | # func_strip_suffix prefix name | |
20956 | func_stripname () | |
20957 | { | |
20958 | case ${2} in | |
20959 | .*) func_stripname_result=`$ECHO "X${3}" \ | |
20960 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; | |
20961 | *) func_stripname_result=`$ECHO "X${3}" \ | |
20962 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; | |
20963 | esac | |
20964 | } | |
bf9f3bac | 20965 | |
8934764e BB |
20966 | # sed scripts: |
20967 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
20968 | my_sed_long_arg='1s/^-[^=]*=//' | |
bf9f3bac | 20969 | |
8934764e BB |
20970 | # func_opt_split |
20971 | func_opt_split () | |
20972 | { | |
20973 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` | |
20974 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` | |
20975 | } | |
bf9f3bac | 20976 | |
8934764e BB |
20977 | # func_lo2o object |
20978 | func_lo2o () | |
20979 | { | |
20980 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` | |
20981 | } | |
bf9f3bac | 20982 | |
8934764e BB |
20983 | # func_xform libobj-or-source |
20984 | func_xform () | |
20985 | { | |
20986 | func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` | |
20987 | } | |
bf9f3bac | 20988 | |
8934764e BB |
20989 | # func_arith arithmetic-term... |
20990 | func_arith () | |
20991 | { | |
20992 | func_arith_result=`expr "$@"` | |
20993 | } | |
bf9f3bac | 20994 | |
8934764e BB |
20995 | # func_len string |
20996 | # STRING may not start with a hyphen. | |
20997 | func_len () | |
20998 | { | |
20999 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
21000 | } | |
bf9f3bac | 21001 | |
8934764e BB |
21002 | _LT_EOF |
21003 | esac | |
bf9f3bac | 21004 | |
8934764e BB |
21005 | case $lt_shell_append in |
21006 | yes) | |
21007 | cat << \_LT_EOF >> "$cfgfile" | |
bf9f3bac | 21008 | |
8934764e BB |
21009 | # func_append var value |
21010 | # Append VALUE to the end of shell variable VAR. | |
21011 | func_append () | |
21012 | { | |
21013 | eval "$1+=\$2" | |
21014 | } | |
21015 | _LT_EOF | |
21016 | ;; | |
21017 | *) | |
21018 | cat << \_LT_EOF >> "$cfgfile" | |
bf9f3bac | 21019 | |
8934764e BB |
21020 | # func_append var value |
21021 | # Append VALUE to the end of shell variable VAR. | |
21022 | func_append () | |
21023 | { | |
21024 | eval "$1=\$$1\$2" | |
21025 | } | |
bf9f3bac | 21026 | |
8934764e BB |
21027 | _LT_EOF |
21028 | ;; | |
16b719f0 | 21029 | esac |
bf9f3bac | 21030 | |
bf9f3bac | 21031 | |
8934764e BB |
21032 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ |
21033 | || (rm -f "$cfgfile"; exit 1) | |
bf9f3bac | 21034 | |
8934764e BB |
21035 | mv -f "$cfgfile" "$ofile" || |
21036 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
21037 | chmod +x "$ofile" | |
bf9f3bac | 21038 | |
bf9f3bac | 21039 | ;; |
8934764e | 21040 | |
bf9f3bac | 21041 | esac |
8934764e | 21042 | done # for ac_tag |
bf9f3bac | 21043 | |
bf9f3bac BB |
21044 | |
21045 | { (exit 0); exit 0; } | |
21046 | _ACEOF | |
21047 | chmod +x $CONFIG_STATUS | |
21048 | ac_clean_files=$ac_clean_files_save | |
21049 | ||
8934764e BB |
21050 | test $ac_write_fail = 0 || |
21051 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 | |
21052 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} | |
21053 | { (exit 1); exit 1; }; } | |
21054 | ||
bf9f3bac BB |
21055 | |
21056 | # configure is writing to config.log, and then calls config.status. | |
21057 | # config.status does its own redirection, appending to config.log. | |
21058 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
21059 | # by configure, so config.status won't be able to write to it; its | |
21060 | # output is simply discarded. So we exec the FD to /dev/null, | |
21061 | # effectively closing config.log, so it can be properly (re)opened and | |
21062 | # appended to by config.status. When coming back to configure, we | |
21063 | # need to make the FD available again. | |
21064 | if test "$no_create" != yes; then | |
21065 | ac_cs_success=: | |
21066 | ac_config_status_args= | |
21067 | test "$silent" = yes && | |
21068 | ac_config_status_args="$ac_config_status_args --quiet" | |
21069 | exec 5>/dev/null | |
21070 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
21071 | exec 5>>config.log | |
21072 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
21073 | # would make configure fail if this is the last instruction. | |
21074 | $ac_cs_success || { (exit 1); exit 1; } | |
21075 | fi | |
8934764e BB |
21076 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
21077 | { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
21078 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
21079 | fi | |
bf9f3bac | 21080 |