blob: 37c54b9397d535512eba49b59e02b23935dfdc67
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. |
3 | # Generated by GNU Autoconf 2.67 for ntfs-3g 2014.2.15. |
4 | # |
5 | # Report bugs to <ntfs-3g-devel@lists.sf.net>. |
6 | # |
7 | # |
8 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
9 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software |
10 | # Foundation, Inc. |
11 | # |
12 | # |
13 | # This configure script is free software; the Free Software Foundation |
14 | # gives unlimited permission to copy, distribute and modify it. |
15 | ## -------------------- ## |
16 | ## M4sh Initialization. ## |
17 | ## -------------------- ## |
18 | |
19 | # Be more Bourne compatible |
20 | DUALCASE=1; export DUALCASE # for MKS sh |
21 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
22 | emulate sh |
23 | NULLCMD=: |
24 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
25 | # is contrary to our usage. Disable this feature. |
26 | alias -g '${1+"$@"}'='"$@"' |
27 | setopt NO_GLOB_SUBST |
28 | else |
29 | case `(set -o) 2>/dev/null` in #( |
30 | *posix*) : |
31 | set -o posix ;; #( |
32 | *) : |
33 | ;; |
34 | esac |
35 | fi |
36 | |
37 | |
38 | as_nl=' |
39 | ' |
40 | export as_nl |
41 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
42 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
43 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
44 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
45 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
46 | # but without wasting forks for bash or zsh. |
47 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
48 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
49 | as_echo='print -r --' |
50 | as_echo_n='print -rn --' |
51 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
52 | as_echo='printf %s\n' |
53 | as_echo_n='printf %s' |
54 | else |
55 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
56 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
57 | as_echo_n='/usr/ucb/echo -n' |
58 | else |
59 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
60 | as_echo_n_body='eval |
61 | arg=$1; |
62 | case $arg in #( |
63 | *"$as_nl"*) |
64 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
65 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
66 | esac; |
67 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
68 | ' |
69 | export as_echo_n_body |
70 | as_echo_n='sh -c $as_echo_n_body as_echo' |
71 | fi |
72 | export as_echo_body |
73 | as_echo='sh -c $as_echo_body as_echo' |
74 | fi |
75 | |
76 | # The user is always right. |
77 | if test "${PATH_SEPARATOR+set}" != set; then |
78 | PATH_SEPARATOR=: |
79 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
80 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
81 | PATH_SEPARATOR=';' |
82 | } |
83 | fi |
84 | |
85 | |
86 | # IFS |
87 | # We need space, tab and new line, in precisely that order. Quoting is |
88 | # there to prevent editors from complaining about space-tab. |
89 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
90 | # splitting by setting IFS to empty value.) |
91 | IFS=" "" $as_nl" |
92 | |
93 | # Find who we are. Look in the path if we contain no directory separator. |
94 | case $0 in #(( |
95 | *[\\/]* ) as_myself=$0 ;; |
96 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
97 | for as_dir in $PATH |
98 | do |
99 | IFS=$as_save_IFS |
100 | test -z "$as_dir" && as_dir=. |
101 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
102 | done |
103 | IFS=$as_save_IFS |
104 | |
105 | ;; |
106 | esac |
107 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
108 | # in which case we are not to be found in the path. |
109 | if test "x$as_myself" = x; then |
110 | as_myself=$0 |
111 | fi |
112 | if test ! -f "$as_myself"; then |
113 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
114 | exit 1 |
115 | fi |
116 | |
117 | # Unset variables that we do not need and which cause bugs (e.g. in |
118 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
119 | # suppresses any "Segmentation fault" message there. '((' could |
120 | # trigger a bug in pdksh 5.2.14. |
121 | for as_var in BASH_ENV ENV MAIL MAILPATH |
122 | do eval test x\${$as_var+set} = xset \ |
123 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
124 | done |
125 | PS1='$ ' |
126 | PS2='> ' |
127 | PS4='+ ' |
128 | |
129 | # NLS nuisances. |
130 | LC_ALL=C |
131 | export LC_ALL |
132 | LANGUAGE=C |
133 | export LANGUAGE |
134 | |
135 | # CDPATH. |
136 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
137 | |
138 | if test "x$CONFIG_SHELL" = x; then |
139 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
140 | emulate sh |
141 | NULLCMD=: |
142 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
143 | # is contrary to our usage. Disable this feature. |
144 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
145 | setopt NO_GLOB_SUBST |
146 | else |
147 | case \`(set -o) 2>/dev/null\` in #( |
148 | *posix*) : |
149 | set -o posix ;; #( |
150 | *) : |
151 | ;; |
152 | esac |
153 | fi |
154 | " |
155 | as_required="as_fn_return () { (exit \$1); } |
156 | as_fn_success () { as_fn_return 0; } |
157 | as_fn_failure () { as_fn_return 1; } |
158 | as_fn_ret_success () { return 0; } |
159 | as_fn_ret_failure () { return 1; } |
160 | |
161 | exitcode=0 |
162 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
163 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
164 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
165 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
166 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
167 | |
168 | else |
169 | exitcode=1; echo positional parameters were not saved. |
170 | fi |
171 | test x\$exitcode = x0 || exit 1" |
172 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
173 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
174 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
175 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
176 | test \$(( 1 + 1 )) = 2 || exit 1" |
177 | if (eval "$as_required") 2>/dev/null; then : |
178 | as_have_required=yes |
179 | else |
180 | as_have_required=no |
181 | fi |
182 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
183 | |
184 | else |
185 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
186 | as_found=false |
187 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
188 | do |
189 | IFS=$as_save_IFS |
190 | test -z "$as_dir" && as_dir=. |
191 | as_found=: |
192 | case $as_dir in #( |
193 | /*) |
194 | for as_base in sh bash ksh sh5; do |
195 | # Try only shells that exist, to save several forks. |
196 | as_shell=$as_dir/$as_base |
197 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
198 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
199 | CONFIG_SHELL=$as_shell as_have_required=yes |
200 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
201 | break 2 |
202 | fi |
203 | fi |
204 | done;; |
205 | esac |
206 | as_found=false |
207 | done |
208 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
209 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
210 | CONFIG_SHELL=$SHELL as_have_required=yes |
211 | fi; } |
212 | IFS=$as_save_IFS |
213 | |
214 | |
215 | if test "x$CONFIG_SHELL" != x; then : |
216 | # We cannot yet assume a decent shell, so we have to provide a |
217 | # neutralization value for shells without unset; and this also |
218 | # works around shells that cannot unset nonexistent variables. |
219 | BASH_ENV=/dev/null |
220 | ENV=/dev/null |
221 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
222 | export CONFIG_SHELL |
223 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
224 | fi |
225 | |
226 | if test x$as_have_required = xno; then : |
227 | $as_echo "$0: This script requires a shell more modern than all" |
228 | $as_echo "$0: the shells that I found on your system." |
229 | if test x${ZSH_VERSION+set} = xset ; then |
230 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
231 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
232 | else |
233 | $as_echo "$0: Please tell bug-autoconf@gnu.org and |
234 | $0: ntfs-3g-devel@lists.sf.net about your system, including |
235 | $0: any error possibly output before this message. Then |
236 | $0: install a modern shell, or manually run the script |
237 | $0: under such a shell if you do have one." |
238 | fi |
239 | exit 1 |
240 | fi |
241 | fi |
242 | fi |
243 | SHELL=${CONFIG_SHELL-/bin/sh} |
244 | export SHELL |
245 | # Unset more variables known to interfere with behavior of common tools. |
246 | CLICOLOR_FORCE= GREP_OPTIONS= |
247 | unset CLICOLOR_FORCE GREP_OPTIONS |
248 | |
249 | ## --------------------- ## |
250 | ## M4sh Shell Functions. ## |
251 | ## --------------------- ## |
252 | # as_fn_unset VAR |
253 | # --------------- |
254 | # Portably unset VAR. |
255 | as_fn_unset () |
256 | { |
257 | { eval $1=; unset $1;} |
258 | } |
259 | as_unset=as_fn_unset |
260 | |
261 | # as_fn_set_status STATUS |
262 | # ----------------------- |
263 | # Set $? to STATUS, without forking. |
264 | as_fn_set_status () |
265 | { |
266 | return $1 |
267 | } # as_fn_set_status |
268 | |
269 | # as_fn_exit STATUS |
270 | # ----------------- |
271 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
272 | as_fn_exit () |
273 | { |
274 | set +e |
275 | as_fn_set_status $1 |
276 | exit $1 |
277 | } # as_fn_exit |
278 | |
279 | # as_fn_mkdir_p |
280 | # ------------- |
281 | # Create "$as_dir" as a directory, including parents if necessary. |
282 | as_fn_mkdir_p () |
283 | { |
284 | |
285 | case $as_dir in #( |
286 | -*) as_dir=./$as_dir;; |
287 | esac |
288 | test -d "$as_dir" || eval $as_mkdir_p || { |
289 | as_dirs= |
290 | while :; do |
291 | case $as_dir in #( |
292 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
293 | *) as_qdir=$as_dir;; |
294 | esac |
295 | as_dirs="'$as_qdir' $as_dirs" |
296 | as_dir=`$as_dirname -- "$as_dir" || |
297 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
298 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
299 | X"$as_dir" : 'X\(//\)$' \| \ |
300 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
301 | $as_echo X"$as_dir" | |
302 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
303 | s//\1/ |
304 | q |
305 | } |
306 | /^X\(\/\/\)[^/].*/{ |
307 | s//\1/ |
308 | q |
309 | } |
310 | /^X\(\/\/\)$/{ |
311 | s//\1/ |
312 | q |
313 | } |
314 | /^X\(\/\).*/{ |
315 | s//\1/ |
316 | q |
317 | } |
318 | s/.*/./; q'` |
319 | test -d "$as_dir" && break |
320 | done |
321 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
322 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
323 | |
324 | |
325 | } # as_fn_mkdir_p |
326 | # as_fn_append VAR VALUE |
327 | # ---------------------- |
328 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
329 | # advantage of any shell optimizations that allow amortized linear growth over |
330 | # repeated appends, instead of the typical quadratic growth present in naive |
331 | # implementations. |
332 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
333 | eval 'as_fn_append () |
334 | { |
335 | eval $1+=\$2 |
336 | }' |
337 | else |
338 | as_fn_append () |
339 | { |
340 | eval $1=\$$1\$2 |
341 | } |
342 | fi # as_fn_append |
343 | |
344 | # as_fn_arith ARG... |
345 | # ------------------ |
346 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
347 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
348 | # must be portable across $(()) and expr. |
349 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
350 | eval 'as_fn_arith () |
351 | { |
352 | as_val=$(( $* )) |
353 | }' |
354 | else |
355 | as_fn_arith () |
356 | { |
357 | as_val=`expr "$@" || test $? -eq 1` |
358 | } |
359 | fi # as_fn_arith |
360 | |
361 | |
362 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
363 | # ---------------------------------------- |
364 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
365 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
366 | # script with STATUS, using 1 if that was 0. |
367 | as_fn_error () |
368 | { |
369 | as_status=$1; test $as_status -eq 0 && as_status=1 |
370 | if test "$4"; then |
371 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
372 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
373 | fi |
374 | $as_echo "$as_me: error: $2" >&2 |
375 | as_fn_exit $as_status |
376 | } # as_fn_error |
377 | |
378 | if expr a : '\(a\)' >/dev/null 2>&1 && |
379 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
380 | as_expr=expr |
381 | else |
382 | as_expr=false |
383 | fi |
384 | |
385 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
386 | as_basename=basename |
387 | else |
388 | as_basename=false |
389 | fi |
390 | |
391 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
392 | as_dirname=dirname |
393 | else |
394 | as_dirname=false |
395 | fi |
396 | |
397 | as_me=`$as_basename -- "$0" || |
398 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
399 | X"$0" : 'X\(//\)$' \| \ |
400 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
401 | $as_echo X/"$0" | |
402 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
403 | s//\1/ |
404 | q |
405 | } |
406 | /^X\/\(\/\/\)$/{ |
407 | s//\1/ |
408 | q |
409 | } |
410 | /^X\/\(\/\).*/{ |
411 | s//\1/ |
412 | q |
413 | } |
414 | s/.*/./; q'` |
415 | |
416 | # Avoid depending upon Character Ranges. |
417 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
418 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
419 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
420 | as_cr_digits='0123456789' |
421 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
422 | |
423 | |
424 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
425 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
426 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
427 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
428 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
429 | sed -n ' |
430 | p |
431 | /[$]LINENO/= |
432 | ' <$as_myself | |
433 | sed ' |
434 | s/[$]LINENO.*/&-/ |
435 | t lineno |
436 | b |
437 | :lineno |
438 | N |
439 | :loop |
440 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
441 | t loop |
442 | s/-\n.*// |
443 | ' >$as_me.lineno && |
444 | chmod +x "$as_me.lineno" || |
445 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
446 | |
447 | # Don't try to exec as it changes $[0], causing all sort of problems |
448 | # (the dirname of $[0] is not the place where we might find the |
449 | # original and so on. Autoconf is especially sensitive to this). |
450 | . "./$as_me.lineno" |
451 | # Exit status is that of the last command. |
452 | exit |
453 | } |
454 | |
455 | ECHO_C= ECHO_N= ECHO_T= |
456 | case `echo -n x` in #((((( |
457 | -n*) |
458 | case `echo 'xy\c'` in |
459 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
460 | xy) ECHO_C='\c';; |
461 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
462 | ECHO_T=' ';; |
463 | esac;; |
464 | *) |
465 | ECHO_N='-n';; |
466 | esac |
467 | |
468 | rm -f conf$$ conf$$.exe conf$$.file |
469 | if test -d conf$$.dir; then |
470 | rm -f conf$$.dir/conf$$.file |
471 | else |
472 | rm -f conf$$.dir |
473 | mkdir conf$$.dir 2>/dev/null |
474 | fi |
475 | if (echo >conf$$.file) 2>/dev/null; then |
476 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
477 | as_ln_s='ln -s' |
478 | # ... but there are two gotchas: |
479 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
480 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
481 | # In both cases, we have to default to `cp -p'. |
482 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
483 | as_ln_s='cp -p' |
484 | elif ln conf$$.file conf$$ 2>/dev/null; then |
485 | as_ln_s=ln |
486 | else |
487 | as_ln_s='cp -p' |
488 | fi |
489 | else |
490 | as_ln_s='cp -p' |
491 | fi |
492 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
493 | rmdir conf$$.dir 2>/dev/null |
494 | |
495 | if mkdir -p . 2>/dev/null; then |
496 | as_mkdir_p='mkdir -p "$as_dir"' |
497 | else |
498 | test -d ./-p && rmdir ./-p |
499 | as_mkdir_p=false |
500 | fi |
501 | |
502 | if test -x / >/dev/null 2>&1; then |
503 | as_test_x='test -x' |
504 | else |
505 | if ls -dL / >/dev/null 2>&1; then |
506 | as_ls_L_option=L |
507 | else |
508 | as_ls_L_option= |
509 | fi |
510 | as_test_x=' |
511 | eval sh -c '\'' |
512 | if test -d "$1"; then |
513 | test -d "$1/."; |
514 | else |
515 | case $1 in #( |
516 | -*)set "./$1";; |
517 | esac; |
518 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
519 | ???[sx]*):;;*)false;;esac;fi |
520 | '\'' sh |
521 | ' |
522 | fi |
523 | as_executable_p=$as_test_x |
524 | |
525 | # Sed expression to map a string onto a valid CPP name. |
526 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
527 | |
528 | # Sed expression to map a string onto a valid variable name. |
529 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
530 | |
531 | |
532 | |
533 | # Check that we are running under the correct shell. |
534 | SHELL=${CONFIG_SHELL-/bin/sh} |
535 | |
536 | case X$lt_ECHO in |
537 | X*--fallback-echo) |
538 | # Remove one level of quotation (which was required for Make). |
539 | ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` |
540 | ;; |
541 | esac |
542 | |
543 | ECHO=${lt_ECHO-echo} |
544 | if test "X$1" = X--no-reexec; then |
545 | # Discard the --no-reexec flag, and continue. |
546 | shift |
547 | elif test "X$1" = X--fallback-echo; then |
548 | # Avoid inline document here, it may be left over |
549 | : |
550 | elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then |
551 | # Yippee, $ECHO works! |
552 | : |
553 | else |
554 | # Restart under the correct shell. |
555 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
556 | fi |
557 | |
558 | if test "X$1" = X--fallback-echo; then |
559 | # used as fallback echo |
560 | shift |
561 | cat <<_LT_EOF |
562 | $* |
563 | _LT_EOF |
564 | exit 0 |
565 | fi |
566 | |
567 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
568 | # if CDPATH is set. |
569 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
570 | |
571 | if test -z "$lt_ECHO"; then |
572 | if test "X${echo_test_string+set}" != Xset; then |
573 | # find a string as large as possible, as long as the shell can cope with it |
574 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
575 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
576 | if { echo_test_string=`eval $cmd`; } 2>/dev/null && |
577 | { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null |
578 | then |
579 | break |
580 | fi |
581 | done |
582 | fi |
583 | |
584 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && |
585 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && |
586 | test "X$echo_testing_string" = "X$echo_test_string"; then |
587 | : |
588 | else |
589 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
590 | # backslashes. This makes it impossible to quote backslashes using |
591 | # echo "$something" | sed 's/\\/\\\\/g' |
592 | # |
593 | # So, first we look for a working echo in the user's PATH. |
594 | |
595 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
596 | for dir in $PATH /usr/ucb; do |
597 | IFS="$lt_save_ifs" |
598 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
599 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
600 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
601 | test "X$echo_testing_string" = "X$echo_test_string"; then |
602 | ECHO="$dir/echo" |
603 | break |
604 | fi |
605 | done |
606 | IFS="$lt_save_ifs" |
607 | |
608 | if test "X$ECHO" = Xecho; then |
609 | # We didn't find a better echo, so look for alternatives. |
610 | if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && |
611 | echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && |
612 | test "X$echo_testing_string" = "X$echo_test_string"; then |
613 | # This shell has a builtin print -r that does the trick. |
614 | ECHO='print -r' |
615 | elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && |
616 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
617 | # If we have ksh, try running configure again with it. |
618 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
619 | export ORIGINAL_CONFIG_SHELL |
620 | CONFIG_SHELL=/bin/ksh |
621 | export CONFIG_SHELL |
622 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
623 | else |
624 | # Try using printf. |
625 | ECHO='printf %s\n' |
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 | # Cool, printf works |
630 | : |
631 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
632 | test "X$echo_testing_string" = 'X\t' && |
633 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
634 | test "X$echo_testing_string" = "X$echo_test_string"; then |
635 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
636 | export CONFIG_SHELL |
637 | SHELL="$CONFIG_SHELL" |
638 | export SHELL |
639 | ECHO="$CONFIG_SHELL $0 --fallback-echo" |
640 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
641 | test "X$echo_testing_string" = 'X\t' && |
642 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
643 | test "X$echo_testing_string" = "X$echo_test_string"; then |
644 | ECHO="$CONFIG_SHELL $0 --fallback-echo" |
645 | else |
646 | # maybe with a smaller string... |
647 | prev=: |
648 | |
649 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
650 | if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null |
651 | then |
652 | break |
653 | fi |
654 | prev="$cmd" |
655 | done |
656 | |
657 | if test "$prev" != 'sed 50q "$0"'; then |
658 | echo_test_string=`eval $prev` |
659 | export echo_test_string |
660 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
661 | else |
662 | # Oops. We lost completely, so just stick with echo. |
663 | ECHO=echo |
664 | fi |
665 | fi |
666 | fi |
667 | fi |
668 | fi |
669 | fi |
670 | |
671 | # Copy echo and quote the copy suitably for passing to libtool from |
672 | # the Makefile, instead of quoting the original, which is used later. |
673 | lt_ECHO=$ECHO |
674 | if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
675 | lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
676 | fi |
677 | |
678 | |
679 | |
680 | |
681 | test -n "$DJDIR" || exec 7<&0 </dev/null |
682 | exec 6>&1 |
683 | |
684 | # Name of the host. |
685 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
686 | # so uname gets run too. |
687 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
688 | |
689 | # |
690 | # Initializations. |
691 | # |
692 | ac_default_prefix=/usr/local |
693 | ac_clean_files= |
694 | ac_config_libobj_dir=. |
695 | LIBOBJS= |
696 | cross_compiling=no |
697 | subdirs= |
698 | MFLAGS= |
699 | MAKEFLAGS= |
700 | |
701 | # Identity of this package. |
702 | PACKAGE_NAME='ntfs-3g' |
703 | PACKAGE_TARNAME='ntfs-3g' |
704 | PACKAGE_VERSION='2014.2.15' |
705 | PACKAGE_STRING='ntfs-3g 2014.2.15' |
706 | PACKAGE_BUGREPORT='ntfs-3g-devel@lists.sf.net' |
707 | PACKAGE_URL='' |
708 | |
709 | ac_unique_file="src/ntfs-3g.c" |
710 | # Factoring default headers for most tests. |
711 | ac_includes_default="\ |
712 | #include <stdio.h> |
713 | #ifdef HAVE_SYS_TYPES_H |
714 | # include <sys/types.h> |
715 | #endif |
716 | #ifdef HAVE_SYS_STAT_H |
717 | # include <sys/stat.h> |
718 | #endif |
719 | #ifdef STDC_HEADERS |
720 | # include <stdlib.h> |
721 | # include <stddef.h> |
722 | #else |
723 | # ifdef HAVE_STDLIB_H |
724 | # include <stdlib.h> |
725 | # endif |
726 | #endif |
727 | #ifdef HAVE_STRING_H |
728 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
729 | # include <memory.h> |
730 | # endif |
731 | # include <string.h> |
732 | #endif |
733 | #ifdef HAVE_STRINGS_H |
734 | # include <strings.h> |
735 | #endif |
736 | #ifdef HAVE_INTTYPES_H |
737 | # include <inttypes.h> |
738 | #endif |
739 | #ifdef HAVE_STDINT_H |
740 | # include <stdint.h> |
741 | #endif |
742 | #ifdef HAVE_UNISTD_H |
743 | # include <unistd.h> |
744 | #endif" |
745 | |
746 | ac_header_list= |
747 | ac_subst_vars='am__EXEEXT_FALSE |
748 | am__EXEEXT_TRUE |
749 | LTLIBOBJS |
750 | ENABLE_EXTRAS_FALSE |
751 | ENABLE_EXTRAS_TRUE |
752 | ENABLE_NTFSPROGS_FALSE |
753 | ENABLE_NTFSPROGS_TRUE |
754 | ENABLE_NTFS_3G_FALSE |
755 | ENABLE_NTFS_3G_TRUE |
756 | ENABLE_MOUNT_HELPER_FALSE |
757 | ENABLE_MOUNT_HELPER_TRUE |
758 | INSTALL_LIBRARY_FALSE |
759 | INSTALL_LIBRARY_TRUE |
760 | REALLYSTATIC_FALSE |
761 | REALLYSTATIC_TRUE |
762 | RUN_LDCONFIG_FALSE |
763 | RUN_LDCONFIG_TRUE |
764 | NTFS_DEVICE_DEFAULT_IO_OPS_FALSE |
765 | NTFS_DEVICE_DEFAULT_IO_OPS_TRUE |
766 | WINDOWS_FALSE |
767 | WINDOWS_TRUE |
768 | GENERATE_LDSCRIPT_FALSE |
769 | GENERATE_LDSCRIPT_TRUE |
770 | FUSE_INTERNAL_FALSE |
771 | FUSE_INTERNAL_TRUE |
772 | OUTPUT_FORMAT |
773 | NTFSPROGS_STATIC_LIBS |
774 | LIBNTFS_LIBS |
775 | LIBNTFS_CPPFLAGS |
776 | MKNTFS_LIBS |
777 | MKNTFS_CPPFLAGS |
778 | LIBFUSE_LITE_LIBS |
779 | LIBFUSE_LITE_CFLAGS |
780 | LIBNTFS_3G_VERSION |
781 | rootlibdir |
782 | rootsbindir |
783 | rootbindir |
784 | ntfs3gincludedir |
785 | pkgconfigdir |
786 | LIBOBJS |
787 | all_libraries |
788 | all_includes |
789 | ENABLE_CRYPTO_FALSE |
790 | ENABLE_CRYPTO_TRUE |
791 | GNUTLS_LIBS |
792 | GNUTLS_CFLAGS |
793 | LIBGCRYPT_LIBS |
794 | LIBGCRYPT_CFLAGS |
795 | LIBGCRYPT_CONFIG |
796 | FUSE_MODULE_LIBS |
797 | FUSE_MODULE_CFLAGS |
798 | LDCONFIG |
799 | RM |
800 | MV |
801 | PKG_CONFIG_LIBDIR |
802 | PKG_CONFIG_PATH |
803 | PKG_CONFIG |
804 | OTOOL64 |
805 | OTOOL |
806 | LIPO |
807 | NMEDIT |
808 | DSYMUTIL |
809 | lt_ECHO |
810 | RANLIB |
811 | AR |
812 | OBJDUMP |
813 | NM |
814 | ac_ct_DUMPBIN |
815 | DUMPBIN |
816 | LD |
817 | FGREP |
818 | SED |
819 | LIBTOOL |
820 | LN_S |
821 | EGREP |
822 | GREP |
823 | CPP |
824 | am__fastdepCC_FALSE |
825 | am__fastdepCC_TRUE |
826 | CCDEPMODE |
827 | AMDEPBACKSLASH |
828 | AMDEP_FALSE |
829 | AMDEP_TRUE |
830 | am__quote |
831 | am__include |
832 | DEPDIR |
833 | OBJEXT |
834 | EXEEXT |
835 | ac_ct_CC |
836 | CPPFLAGS |
837 | LDFLAGS |
838 | CFLAGS |
839 | CC |
840 | MAINT |
841 | MAINTAINER_MODE_FALSE |
842 | MAINTAINER_MODE_TRUE |
843 | am__untar |
844 | am__tar |
845 | AMTAR |
846 | am__leading_dot |
847 | SET_MAKE |
848 | AWK |
849 | mkdir_p |
850 | MKDIR_P |
851 | INSTALL_STRIP_PROGRAM |
852 | STRIP |
853 | install_sh |
854 | MAKEINFO |
855 | AUTOHEADER |
856 | AUTOMAKE |
857 | AUTOCONF |
858 | ACLOCAL |
859 | VERSION |
860 | PACKAGE |
861 | CYGPATH_W |
862 | am__isrc |
863 | INSTALL_DATA |
864 | INSTALL_SCRIPT |
865 | INSTALL_PROGRAM |
866 | target_os |
867 | target_vendor |
868 | target_cpu |
869 | target |
870 | host_os |
871 | host_vendor |
872 | host_cpu |
873 | host |
874 | build_os |
875 | build_vendor |
876 | build_cpu |
877 | build |
878 | target_alias |
879 | host_alias |
880 | build_alias |
881 | LIBS |
882 | ECHO_T |
883 | ECHO_N |
884 | ECHO_C |
885 | DEFS |
886 | mandir |
887 | localedir |
888 | libdir |
889 | psdir |
890 | pdfdir |
891 | dvidir |
892 | htmldir |
893 | infodir |
894 | docdir |
895 | oldincludedir |
896 | includedir |
897 | localstatedir |
898 | sharedstatedir |
899 | sysconfdir |
900 | datadir |
901 | datarootdir |
902 | libexecdir |
903 | sbindir |
904 | bindir |
905 | program_transform_name |
906 | prefix |
907 | exec_prefix |
908 | PACKAGE_URL |
909 | PACKAGE_BUGREPORT |
910 | PACKAGE_STRING |
911 | PACKAGE_VERSION |
912 | PACKAGE_TARNAME |
913 | PACKAGE_NAME |
914 | PATH_SEPARATOR |
915 | SHELL' |
916 | ac_subst_files='' |
917 | ac_user_opts=' |
918 | enable_option_checking |
919 | enable_maintainer_mode |
920 | enable_debug |
921 | enable_warnings |
922 | enable_pedantic |
923 | enable_really_static |
924 | enable_mount_helper |
925 | enable_ldscript |
926 | enable_ldconfig |
927 | enable_library |
928 | enable_mtab |
929 | enable_posix_acls |
930 | enable_xattr_mappings |
931 | enable_device_default_io_ops |
932 | enable_ntfs_3g |
933 | enable_ntfsprogs |
934 | enable_crypto |
935 | enable_extras |
936 | enable_nfconv |
937 | enable_dependency_tracking |
938 | enable_shared |
939 | enable_static |
940 | with_pic |
941 | enable_fast_install |
942 | with_gnu_ld |
943 | enable_libtool_lock |
944 | with_fuse |
945 | with_libgcrypt_prefix |
946 | with_uuid |
947 | with_hd |
948 | enable_largefile |
949 | ' |
950 | ac_precious_vars='build_alias |
951 | host_alias |
952 | target_alias |
953 | CC |
954 | CFLAGS |
955 | LDFLAGS |
956 | LIBS |
957 | CPPFLAGS |
958 | CPP |
959 | PKG_CONFIG |
960 | PKG_CONFIG_PATH |
961 | PKG_CONFIG_LIBDIR |
962 | LDCONFIG |
963 | FUSE_MODULE_CFLAGS |
964 | FUSE_MODULE_LIBS |
965 | GNUTLS_CFLAGS |
966 | GNUTLS_LIBS' |
967 | |
968 | |
969 | # Initialize some variables set by options. |
970 | ac_init_help= |
971 | ac_init_version=false |
972 | ac_unrecognized_opts= |
973 | ac_unrecognized_sep= |
974 | # The variables have the same names as the options, with |
975 | # dashes changed to underlines. |
976 | cache_file=/dev/null |
977 | exec_prefix=NONE |
978 | no_create= |
979 | no_recursion= |
980 | prefix=NONE |
981 | program_prefix=NONE |
982 | program_suffix=NONE |
983 | program_transform_name=s,x,x, |
984 | silent= |
985 | site= |
986 | srcdir= |
987 | verbose= |
988 | x_includes=NONE |
989 | x_libraries=NONE |
990 | |
991 | # Installation directory options. |
992 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
993 | # and all the variables that are supposed to be based on exec_prefix |
994 | # by default will actually change. |
995 | # Use braces instead of parens because sh, perl, etc. also accept them. |
996 | # (The list follows the same order as the GNU Coding Standards.) |
997 | bindir='${exec_prefix}/bin' |
998 | sbindir='${exec_prefix}/sbin' |
999 | libexecdir='${exec_prefix}/libexec' |
1000 | datarootdir='${prefix}/share' |
1001 | datadir='${datarootdir}' |
1002 | sysconfdir='${prefix}/etc' |
1003 | sharedstatedir='${prefix}/com' |
1004 | localstatedir='${prefix}/var' |
1005 | includedir='${prefix}/include' |
1006 | oldincludedir='/usr/include' |
1007 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
1008 | infodir='${datarootdir}/info' |
1009 | htmldir='${docdir}' |
1010 | dvidir='${docdir}' |
1011 | pdfdir='${docdir}' |
1012 | psdir='${docdir}' |
1013 | libdir='${exec_prefix}/lib' |
1014 | localedir='${datarootdir}/locale' |
1015 | mandir='${datarootdir}/man' |
1016 | |
1017 | ac_prev= |
1018 | ac_dashdash= |
1019 | for ac_option |
1020 | do |
1021 | # If the previous option needs an argument, assign it. |
1022 | if test -n "$ac_prev"; then |
1023 | eval $ac_prev=\$ac_option |
1024 | ac_prev= |
1025 | continue |
1026 | fi |
1027 | |
1028 | case $ac_option in |
1029 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
1030 | *=) ac_optarg= ;; |
1031 | *) ac_optarg=yes ;; |
1032 | esac |
1033 | |
1034 | # Accept the important Cygnus configure options, so we can diagnose typos. |
1035 | |
1036 | case $ac_dashdash$ac_option in |
1037 | --) |
1038 | ac_dashdash=yes ;; |
1039 | |
1040 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
1041 | ac_prev=bindir ;; |
1042 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
1043 | bindir=$ac_optarg ;; |
1044 | |
1045 | -build | --build | --buil | --bui | --bu) |
1046 | ac_prev=build_alias ;; |
1047 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
1048 | build_alias=$ac_optarg ;; |
1049 | |
1050 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
1051 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
1052 | ac_prev=cache_file ;; |
1053 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
1054 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
1055 | cache_file=$ac_optarg ;; |
1056 | |
1057 | --config-cache | -C) |
1058 | cache_file=config.cache ;; |
1059 | |
1060 | -datadir | --datadir | --datadi | --datad) |
1061 | ac_prev=datadir ;; |
1062 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
1063 | datadir=$ac_optarg ;; |
1064 | |
1065 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
1066 | | --dataroo | --dataro | --datar) |
1067 | ac_prev=datarootdir ;; |
1068 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
1069 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
1070 | datarootdir=$ac_optarg ;; |
1071 | |
1072 | -disable-* | --disable-*) |
1073 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
1074 | # Reject names that are not valid shell variable names. |
1075 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1076 | as_fn_error $? "invalid feature name: $ac_useropt" |
1077 | ac_useropt_orig=$ac_useropt |
1078 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
1079 | case $ac_user_opts in |
1080 | *" |
1081 | "enable_$ac_useropt" |
1082 | "*) ;; |
1083 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
1084 | ac_unrecognized_sep=', ';; |
1085 | esac |
1086 | eval enable_$ac_useropt=no ;; |
1087 | |
1088 | -docdir | --docdir | --docdi | --doc | --do) |
1089 | ac_prev=docdir ;; |
1090 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
1091 | docdir=$ac_optarg ;; |
1092 | |
1093 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
1094 | ac_prev=dvidir ;; |
1095 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
1096 | dvidir=$ac_optarg ;; |
1097 | |
1098 | -enable-* | --enable-*) |
1099 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
1100 | # Reject names that are not valid shell variable names. |
1101 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1102 | as_fn_error $? "invalid feature name: $ac_useropt" |
1103 | ac_useropt_orig=$ac_useropt |
1104 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
1105 | case $ac_user_opts in |
1106 | *" |
1107 | "enable_$ac_useropt" |
1108 | "*) ;; |
1109 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
1110 | ac_unrecognized_sep=', ';; |
1111 | esac |
1112 | eval enable_$ac_useropt=\$ac_optarg ;; |
1113 | |
1114 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
1115 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
1116 | | --exec | --exe | --ex) |
1117 | ac_prev=exec_prefix ;; |
1118 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
1119 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
1120 | | --exec=* | --exe=* | --ex=*) |
1121 | exec_prefix=$ac_optarg ;; |
1122 | |
1123 | -gas | --gas | --ga | --g) |
1124 | # Obsolete; use --with-gas. |
1125 | with_gas=yes ;; |
1126 | |
1127 | -help | --help | --hel | --he | -h) |
1128 | ac_init_help=long ;; |
1129 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
1130 | ac_init_help=recursive ;; |
1131 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
1132 | ac_init_help=short ;; |
1133 | |
1134 | -host | --host | --hos | --ho) |
1135 | ac_prev=host_alias ;; |
1136 | -host=* | --host=* | --hos=* | --ho=*) |
1137 | host_alias=$ac_optarg ;; |
1138 | |
1139 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1140 | ac_prev=htmldir ;; |
1141 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
1142 | | --ht=*) |
1143 | htmldir=$ac_optarg ;; |
1144 | |
1145 | -includedir | --includedir | --includedi | --included | --include \ |
1146 | | --includ | --inclu | --incl | --inc) |
1147 | ac_prev=includedir ;; |
1148 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
1149 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
1150 | includedir=$ac_optarg ;; |
1151 | |
1152 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
1153 | ac_prev=infodir ;; |
1154 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
1155 | infodir=$ac_optarg ;; |
1156 | |
1157 | -libdir | --libdir | --libdi | --libd) |
1158 | ac_prev=libdir ;; |
1159 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
1160 | libdir=$ac_optarg ;; |
1161 | |
1162 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
1163 | | --libexe | --libex | --libe) |
1164 | ac_prev=libexecdir ;; |
1165 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
1166 | | --libexe=* | --libex=* | --libe=*) |
1167 | libexecdir=$ac_optarg ;; |
1168 | |
1169 | -localedir | --localedir | --localedi | --localed | --locale) |
1170 | ac_prev=localedir ;; |
1171 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
1172 | localedir=$ac_optarg ;; |
1173 | |
1174 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
1175 | | --localstate | --localstat | --localsta | --localst | --locals) |
1176 | ac_prev=localstatedir ;; |
1177 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
1178 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
1179 | localstatedir=$ac_optarg ;; |
1180 | |
1181 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
1182 | ac_prev=mandir ;; |
1183 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
1184 | mandir=$ac_optarg ;; |
1185 | |
1186 | -nfp | --nfp | --nf) |
1187 | # Obsolete; use --without-fp. |
1188 | with_fp=no ;; |
1189 | |
1190 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
1191 | | --no-cr | --no-c | -n) |
1192 | no_create=yes ;; |
1193 | |
1194 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
1195 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
1196 | no_recursion=yes ;; |
1197 | |
1198 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
1199 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
1200 | | --oldin | --oldi | --old | --ol | --o) |
1201 | ac_prev=oldincludedir ;; |
1202 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
1203 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
1204 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
1205 | oldincludedir=$ac_optarg ;; |
1206 | |
1207 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
1208 | ac_prev=prefix ;; |
1209 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
1210 | prefix=$ac_optarg ;; |
1211 | |
1212 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
1213 | | --program-pre | --program-pr | --program-p) |
1214 | ac_prev=program_prefix ;; |
1215 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
1216 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
1217 | program_prefix=$ac_optarg ;; |
1218 | |
1219 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
1220 | | --program-suf | --program-su | --program-s) |
1221 | ac_prev=program_suffix ;; |
1222 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
1223 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
1224 | program_suffix=$ac_optarg ;; |
1225 | |
1226 | -program-transform-name | --program-transform-name \ |
1227 | | --program-transform-nam | --program-transform-na \ |
1228 | | --program-transform-n | --program-transform- \ |
1229 | | --program-transform | --program-transfor \ |
1230 | | --program-transfo | --program-transf \ |
1231 | | --program-trans | --program-tran \ |
1232 | | --progr-tra | --program-tr | --program-t) |
1233 | ac_prev=program_transform_name ;; |
1234 | -program-transform-name=* | --program-transform-name=* \ |
1235 | | --program-transform-nam=* | --program-transform-na=* \ |
1236 | | --program-transform-n=* | --program-transform-=* \ |
1237 | | --program-transform=* | --program-transfor=* \ |
1238 | | --program-transfo=* | --program-transf=* \ |
1239 | | --program-trans=* | --program-tran=* \ |
1240 | | --progr-tra=* | --program-tr=* | --program-t=*) |
1241 | program_transform_name=$ac_optarg ;; |
1242 | |
1243 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1244 | ac_prev=pdfdir ;; |
1245 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
1246 | pdfdir=$ac_optarg ;; |
1247 | |
1248 | -psdir | --psdir | --psdi | --psd | --ps) |
1249 | ac_prev=psdir ;; |
1250 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
1251 | psdir=$ac_optarg ;; |
1252 | |
1253 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1254 | | -silent | --silent | --silen | --sile | --sil) |
1255 | silent=yes ;; |
1256 | |
1257 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
1258 | ac_prev=sbindir ;; |
1259 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
1260 | | --sbi=* | --sb=*) |
1261 | sbindir=$ac_optarg ;; |
1262 | |
1263 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
1264 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
1265 | | --sharedst | --shareds | --shared | --share | --shar \ |
1266 | | --sha | --sh) |
1267 | ac_prev=sharedstatedir ;; |
1268 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
1269 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
1270 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
1271 | | --sha=* | --sh=*) |
1272 | sharedstatedir=$ac_optarg ;; |
1273 | |
1274 | -site | --site | --sit) |
1275 | ac_prev=site ;; |
1276 | -site=* | --site=* | --sit=*) |
1277 | site=$ac_optarg ;; |
1278 | |
1279 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1280 | ac_prev=srcdir ;; |
1281 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
1282 | srcdir=$ac_optarg ;; |
1283 | |
1284 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
1285 | | --syscon | --sysco | --sysc | --sys | --sy) |
1286 | ac_prev=sysconfdir ;; |
1287 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
1288 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
1289 | sysconfdir=$ac_optarg ;; |
1290 | |
1291 | -target | --target | --targe | --targ | --tar | --ta | --t) |
1292 | ac_prev=target_alias ;; |
1293 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
1294 | target_alias=$ac_optarg ;; |
1295 | |
1296 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
1297 | verbose=yes ;; |
1298 | |
1299 | -version | --version | --versio | --versi | --vers | -V) |
1300 | ac_init_version=: ;; |
1301 | |
1302 | -with-* | --with-*) |
1303 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
1304 | # Reject names that are not valid shell variable names. |
1305 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1306 | as_fn_error $? "invalid package name: $ac_useropt" |
1307 | ac_useropt_orig=$ac_useropt |
1308 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
1309 | case $ac_user_opts in |
1310 | *" |
1311 | "with_$ac_useropt" |
1312 | "*) ;; |
1313 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
1314 | ac_unrecognized_sep=', ';; |
1315 | esac |
1316 | eval with_$ac_useropt=\$ac_optarg ;; |
1317 | |
1318 | -without-* | --without-*) |
1319 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
1320 | # Reject names that are not valid shell variable names. |
1321 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1322 | as_fn_error $? "invalid package name: $ac_useropt" |
1323 | ac_useropt_orig=$ac_useropt |
1324 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
1325 | case $ac_user_opts in |
1326 | *" |
1327 | "with_$ac_useropt" |
1328 | "*) ;; |
1329 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
1330 | ac_unrecognized_sep=', ';; |
1331 | esac |
1332 | eval with_$ac_useropt=no ;; |
1333 | |
1334 | --x) |
1335 | # Obsolete; use --with-x. |
1336 | with_x=yes ;; |
1337 | |
1338 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
1339 | | --x-incl | --x-inc | --x-in | --x-i) |
1340 | ac_prev=x_includes ;; |
1341 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
1342 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
1343 | x_includes=$ac_optarg ;; |
1344 | |
1345 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
1346 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
1347 | ac_prev=x_libraries ;; |
1348 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
1349 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
1350 | x_libraries=$ac_optarg ;; |
1351 | |
1352 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1353 | Try \`$0 --help' for more information" |
1354 | ;; |
1355 | |
1356 | *=*) |
1357 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
1358 | # Reject names that are not valid shell variable names. |
1359 | case $ac_envvar in #( |
1360 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
1361 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
1362 | esac |
1363 | eval $ac_envvar=\$ac_optarg |
1364 | export $ac_envvar ;; |
1365 | |
1366 | *) |
1367 | # FIXME: should be removed in autoconf 3.0. |
1368 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1369 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1370 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
1371 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
1372 | ;; |
1373 | |
1374 | esac |
1375 | done |
1376 | |
1377 | if test -n "$ac_prev"; then |
1378 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
1379 | as_fn_error $? "missing argument to $ac_option" |
1380 | fi |
1381 | |
1382 | if test -n "$ac_unrecognized_opts"; then |
1383 | case $enable_option_checking in |
1384 | no) ;; |
1385 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
1386 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1387 | esac |
1388 | fi |
1389 | |
1390 | # Check all directory arguments for consistency. |
1391 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1392 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
1393 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
1394 | libdir localedir mandir |
1395 | do |
1396 | eval ac_val=\$$ac_var |
1397 | # Remove trailing slashes. |
1398 | case $ac_val in |
1399 | */ ) |
1400 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
1401 | eval $ac_var=\$ac_val;; |
1402 | esac |
1403 | # Be sure to have absolute directory names. |
1404 | case $ac_val in |
1405 | [\\/$]* | ?:[\\/]* ) continue;; |
1406 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
1407 | esac |
1408 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
1409 | done |
1410 | |
1411 | # There might be people who depend on the old broken behavior: `$host' |
1412 | # used to hold the argument of --host etc. |
1413 | # FIXME: To remove some day. |
1414 | build=$build_alias |
1415 | host=$host_alias |
1416 | target=$target_alias |
1417 | |
1418 | # FIXME: To remove some day. |
1419 | if test "x$host_alias" != x; then |
1420 | if test "x$build_alias" = x; then |
1421 | cross_compiling=maybe |
1422 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. |
1423 | If a cross compiler is detected then cross compile mode will be used" >&2 |
1424 | elif test "x$build_alias" != "x$host_alias"; then |
1425 | cross_compiling=yes |
1426 | fi |
1427 | fi |
1428 | |
1429 | ac_tool_prefix= |
1430 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
1431 | |
1432 | test "$silent" = yes && exec 6>/dev/null |
1433 | |
1434 | |
1435 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1436 | ac_ls_di=`ls -di .` && |
1437 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
1438 | as_fn_error $? "working directory cannot be determined" |
1439 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
1440 | as_fn_error $? "pwd does not report name of working directory" |
1441 | |
1442 | |
1443 | # Find the source files, if location was not specified. |
1444 | if test -z "$srcdir"; then |
1445 | ac_srcdir_defaulted=yes |
1446 | # Try the directory containing this script, then the parent directory. |
1447 | ac_confdir=`$as_dirname -- "$as_myself" || |
1448 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
1449 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
1450 | X"$as_myself" : 'X\(//\)$' \| \ |
1451 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
1452 | $as_echo X"$as_myself" | |
1453 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1454 | s//\1/ |
1455 | q |
1456 | } |
1457 | /^X\(\/\/\)[^/].*/{ |
1458 | s//\1/ |
1459 | q |
1460 | } |
1461 | /^X\(\/\/\)$/{ |
1462 | s//\1/ |
1463 | q |
1464 | } |
1465 | /^X\(\/\).*/{ |
1466 | s//\1/ |
1467 | q |
1468 | } |
1469 | s/.*/./; q'` |
1470 | srcdir=$ac_confdir |
1471 | if test ! -r "$srcdir/$ac_unique_file"; then |
1472 | srcdir=.. |
1473 | fi |
1474 | else |
1475 | ac_srcdir_defaulted=no |
1476 | fi |
1477 | if test ! -r "$srcdir/$ac_unique_file"; then |
1478 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
1479 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
1480 | fi |
1481 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1482 | ac_abs_confdir=`( |
1483 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
1484 | pwd)` |
1485 | # When building in place, set srcdir=. |
1486 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
1487 | srcdir=. |
1488 | fi |
1489 | # Remove unnecessary trailing slashes from srcdir. |
1490 | # Double slashes in file names in object file debugging info |
1491 | # mess up M-x gdb in Emacs. |
1492 | case $srcdir in |
1493 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
1494 | esac |
1495 | for ac_var in $ac_precious_vars; do |
1496 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
1497 | eval ac_env_${ac_var}_value=\$${ac_var} |
1498 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
1499 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
1500 | done |
1501 | |
1502 | # |
1503 | # Report the --help message. |
1504 | # |
1505 | if test "$ac_init_help" = "long"; then |
1506 | # Omit some internal or obsolete options to make the list less imposing. |
1507 | # This message is too long to be a string in the A/UX 3.1 sh. |
1508 | cat <<_ACEOF |
1509 | \`configure' configures ntfs-3g 2014.2.15 to adapt to many kinds of systems. |
1510 | |
1511 | Usage: $0 [OPTION]... [VAR=VALUE]... |
1512 | |
1513 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
1514 | VAR=VALUE. See below for descriptions of some of the useful variables. |
1515 | |
1516 | Defaults for the options are specified in brackets. |
1517 | |
1518 | Configuration: |
1519 | -h, --help display this help and exit |
1520 | --help=short display options specific to this package |
1521 | --help=recursive display the short help of all the included packages |
1522 | -V, --version display version information and exit |
1523 | -q, --quiet, --silent do not print \`checking ...' messages |
1524 | --cache-file=FILE cache test results in FILE [disabled] |
1525 | -C, --config-cache alias for \`--cache-file=config.cache' |
1526 | -n, --no-create do not create output files |
1527 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
1528 | |
1529 | Installation directories: |
1530 | --prefix=PREFIX install architecture-independent files in PREFIX |
1531 | [$ac_default_prefix] |
1532 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
1533 | [PREFIX] |
1534 | |
1535 | By default, \`make install' will install all the files in |
1536 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
1537 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
1538 | for instance \`--prefix=\$HOME'. |
1539 | |
1540 | For better control, use the options below. |
1541 | |
1542 | Fine tuning of the installation directories: |
1543 | --bindir=DIR user executables [EPREFIX/bin] |
1544 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
1545 | --libexecdir=DIR program executables [EPREFIX/libexec] |
1546 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1547 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
1548 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
1549 | --libdir=DIR object code libraries [EPREFIX/lib] |
1550 | --includedir=DIR C header files [PREFIX/include] |
1551 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
1552 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1553 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
1554 | --infodir=DIR info documentation [DATAROOTDIR/info] |
1555 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
1556 | --mandir=DIR man documentation [DATAROOTDIR/man] |
1557 | --docdir=DIR documentation root [DATAROOTDIR/doc/ntfs-3g] |
1558 | --htmldir=DIR html documentation [DOCDIR] |
1559 | --dvidir=DIR dvi documentation [DOCDIR] |
1560 | --pdfdir=DIR pdf documentation [DOCDIR] |
1561 | --psdir=DIR ps documentation [DOCDIR] |
1562 | _ACEOF |
1563 | |
1564 | cat <<\_ACEOF |
1565 | |
1566 | Program names: |
1567 | --program-prefix=PREFIX prepend PREFIX to installed program names |
1568 | --program-suffix=SUFFIX append SUFFIX to installed program names |
1569 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
1570 | |
1571 | System types: |
1572 | --build=BUILD configure for building on BUILD [guessed] |
1573 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
1574 | --target=TARGET configure for building compilers for TARGET [HOST] |
1575 | _ACEOF |
1576 | fi |
1577 | |
1578 | if test -n "$ac_init_help"; then |
1579 | case $ac_init_help in |
1580 | short | recursive ) echo "Configuration of ntfs-3g 2014.2.15:";; |
1581 | esac |
1582 | cat <<\_ACEOF |
1583 | |
1584 | Optional Features: |
1585 | --disable-option-checking ignore unrecognized --enable/--with options |
1586 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1587 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1588 | --enable-maintainer-mode enable make rules and dependencies not useful |
1589 | (and sometimes confusing) to the casual installer |
1590 | --enable-debug enable debugging code and output |
1591 | --enable-warnings enable lots of compiler warnings |
1592 | --enable-pedantic enable compile pedantic mode |
1593 | --enable-really-static create fully static binaries |
1594 | --enable-mount-helper install mount helper [default=enabled for linux] |
1595 | --enable-ldscript use ldscript instead of .so symlink |
1596 | --disable-ldconfig do not update dynamic linker cache using ldconfig |
1597 | --disable-library do not install libntfs-3g but link it into ntfs-3g |
1598 | --disable-mtab disable and ignore usage of /etc/mtab |
1599 | --enable-posix-acls enable POSIX ACL support |
1600 | --enable-xattr-mappings enable system extended attributes mappings |
1601 | --disable-device-default-io-ops |
1602 | install default IO ops |
1603 | --disable-ntfs-3g disable the ntfs-3g FUSE driver |
1604 | --disable-ntfsprogs disable ntfsprogs utilities (default=no) |
1605 | --enable-crypto enable crypto related code and utilities |
1606 | (default=no) |
1607 | --enable-extras enable extra ntfsprogs utilities (default=no) |
1608 | --disable-nfconv disable the 'nfconv' patch, which adds support for |
1609 | Unicode normalization form conversion when built on |
1610 | Mac OS X [default=enabled for Mac OS X] |
1611 | --disable-dependency-tracking speeds up one-time build |
1612 | --enable-dependency-tracking do not reject slow dependency extractors |
1613 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1614 | --enable-static[=PKGS] build static libraries [default=yes] |
1615 | --enable-fast-install[=PKGS] |
1616 | optimize for fast installation [default=yes] |
1617 | --disable-libtool-lock avoid locking (might break parallel builds) |
1618 | --disable-largefile omit support for large files |
1619 | |
1620 | Optional Packages: |
1621 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1622 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1623 | --with-pic try to use only PIC/non-PIC objects [default=use |
1624 | both] |
1625 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
1626 | --with-fuse=<internal|external> |
1627 | Select FUSE library: internal or external |
1628 | [default=internal] |
1629 | --with-libgcrypt-prefix=PFX |
1630 | prefix where LIBGCRYPT is installed (optional) |
1631 | |
1632 | --with-uuid[=PFX] generate DCE compliant UUIDs, with optional prefix |
1633 | to uuid library and headers [default=detect] |
1634 | --without-uuid do not generate DCE compliant UUIDs |
1635 | |
1636 | --with-hd[=PFX] use Windows compliant disk geometry, with optional |
1637 | prefix to hd library and headers [default=detect] |
1638 | --without-hd do not use Windows compliant disk geometry |
1639 | |
1640 | Some influential environment variables: |
1641 | CC C compiler command |
1642 | CFLAGS C compiler flags |
1643 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1644 | nonstandard directory <lib dir> |
1645 | LIBS libraries to pass to the linker, e.g. -l<library> |
1646 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
1647 | you have headers in a nonstandard directory <include dir> |
1648 | CPP C preprocessor |
1649 | PKG_CONFIG path to pkg-config utility |
1650 | PKG_CONFIG_PATH |
1651 | directories to add to pkg-config's search path |
1652 | PKG_CONFIG_LIBDIR |
1653 | path overriding pkg-config's built-in search path |
1654 | LDCONFIG ldconfig utility |
1655 | FUSE_MODULE_CFLAGS |
1656 | C compiler flags for FUSE_MODULE, overriding pkg-config |
1657 | FUSE_MODULE_LIBS |
1658 | linker flags for FUSE_MODULE, overriding pkg-config |
1659 | GNUTLS_CFLAGS |
1660 | C compiler flags for GNUTLS, overriding pkg-config |
1661 | GNUTLS_LIBS linker flags for GNUTLS, overriding pkg-config |
1662 | |
1663 | Use these variables to override the choices made by `configure' or to help |
1664 | it to find libraries and programs with nonstandard names/locations. |
1665 | |
1666 | Report bugs to <ntfs-3g-devel@lists.sf.net>. |
1667 | _ACEOF |
1668 | ac_status=$? |
1669 | fi |
1670 | |
1671 | if test "$ac_init_help" = "recursive"; then |
1672 | # If there are subdirs, report their specific --help. |
1673 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
1674 | test -d "$ac_dir" || |
1675 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
1676 | continue |
1677 | ac_builddir=. |
1678 | |
1679 | case "$ac_dir" in |
1680 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1681 | *) |
1682 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
1683 | # A ".." for each directory in $ac_dir_suffix. |
1684 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
1685 | case $ac_top_builddir_sub in |
1686 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1687 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
1688 | esac ;; |
1689 | esac |
1690 | ac_abs_top_builddir=$ac_pwd |
1691 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
1692 | # for backward compatibility: |
1693 | ac_top_builddir=$ac_top_build_prefix |
1694 | |
1695 | case $srcdir in |
1696 | .) # We are building in place. |
1697 | ac_srcdir=. |
1698 | ac_top_srcdir=$ac_top_builddir_sub |
1699 | ac_abs_top_srcdir=$ac_pwd ;; |
1700 | [\\/]* | ?:[\\/]* ) # Absolute name. |
1701 | ac_srcdir=$srcdir$ac_dir_suffix; |
1702 | ac_top_srcdir=$srcdir |
1703 | ac_abs_top_srcdir=$srcdir ;; |
1704 | *) # Relative name. |
1705 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
1706 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
1707 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
1708 | esac |
1709 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1710 | |
1711 | cd "$ac_dir" || { ac_status=$?; continue; } |
1712 | # Check for guested configure. |
1713 | if test -f "$ac_srcdir/configure.gnu"; then |
1714 | echo && |
1715 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
1716 | elif test -f "$ac_srcdir/configure"; then |
1717 | echo && |
1718 | $SHELL "$ac_srcdir/configure" --help=recursive |
1719 | else |
1720 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1721 | fi || ac_status=$? |
1722 | cd "$ac_pwd" || { ac_status=$?; break; } |
1723 | done |
1724 | fi |
1725 | |
1726 | test -n "$ac_init_help" && exit $ac_status |
1727 | if $ac_init_version; then |
1728 | cat <<\_ACEOF |
1729 | ntfs-3g configure 2014.2.15 |
1730 | generated by GNU Autoconf 2.67 |
1731 | |
1732 | Copyright (C) 2010 Free Software Foundation, Inc. |
1733 | This configure script is free software; the Free Software Foundation |
1734 | gives unlimited permission to copy, distribute and modify it. |
1735 | _ACEOF |
1736 | exit |
1737 | fi |
1738 | |
1739 | ## ------------------------ ## |
1740 | ## Autoconf initialization. ## |
1741 | ## ------------------------ ## |
1742 | |
1743 | # ac_fn_c_try_compile LINENO |
1744 | # -------------------------- |
1745 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
1746 | ac_fn_c_try_compile () |
1747 | { |
1748 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1749 | rm -f conftest.$ac_objext |
1750 | if { { ac_try="$ac_compile" |
1751 | case "(($ac_try" in |
1752 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1753 | *) ac_try_echo=$ac_try;; |
1754 | esac |
1755 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1756 | $as_echo "$ac_try_echo"; } >&5 |
1757 | (eval "$ac_compile") 2>conftest.err |
1758 | ac_status=$? |
1759 | if test -s conftest.err; then |
1760 | grep -v '^ *+' conftest.err >conftest.er1 |
1761 | cat conftest.er1 >&5 |
1762 | mv -f conftest.er1 conftest.err |
1763 | fi |
1764 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1765 | test $ac_status = 0; } && { |
1766 | test -z "$ac_c_werror_flag" || |
1767 | test ! -s conftest.err |
1768 | } && test -s conftest.$ac_objext; then : |
1769 | ac_retval=0 |
1770 | else |
1771 | $as_echo "$as_me: failed program was:" >&5 |
1772 | sed 's/^/| /' conftest.$ac_ext >&5 |
1773 | |
1774 | ac_retval=1 |
1775 | fi |
1776 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
1777 | as_fn_set_status $ac_retval |
1778 | |
1779 | } # ac_fn_c_try_compile |
1780 | |
1781 | # ac_fn_c_try_cpp LINENO |
1782 | # ---------------------- |
1783 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
1784 | ac_fn_c_try_cpp () |
1785 | { |
1786 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1787 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
1788 | case "(($ac_try" in |
1789 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1790 | *) ac_try_echo=$ac_try;; |
1791 | esac |
1792 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1793 | $as_echo "$ac_try_echo"; } >&5 |
1794 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
1795 | ac_status=$? |
1796 | if test -s conftest.err; then |
1797 | grep -v '^ *+' conftest.err >conftest.er1 |
1798 | cat conftest.er1 >&5 |
1799 | mv -f conftest.er1 conftest.err |
1800 | fi |
1801 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1802 | test $ac_status = 0; } > conftest.i && { |
1803 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
1804 | test ! -s conftest.err |
1805 | }; then : |
1806 | ac_retval=0 |
1807 | else |
1808 | $as_echo "$as_me: failed program was:" >&5 |
1809 | sed 's/^/| /' conftest.$ac_ext >&5 |
1810 | |
1811 | ac_retval=1 |
1812 | fi |
1813 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
1814 | as_fn_set_status $ac_retval |
1815 | |
1816 | } # ac_fn_c_try_cpp |
1817 | |
1818 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
1819 | # ------------------------------------------------------- |
1820 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
1821 | # the include files in INCLUDES and setting the cache variable VAR |
1822 | # accordingly. |
1823 | ac_fn_c_check_header_mongrel () |
1824 | { |
1825 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1826 | if eval "test \"\${$3+set}\"" = set; then : |
1827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1828 | $as_echo_n "checking for $2... " >&6; } |
1829 | if eval "test \"\${$3+set}\"" = set; then : |
1830 | $as_echo_n "(cached) " >&6 |
1831 | fi |
1832 | eval ac_res=\$$3 |
1833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1834 | $as_echo "$ac_res" >&6; } |
1835 | else |
1836 | # Is the header compilable? |
1837 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
1838 | $as_echo_n "checking $2 usability... " >&6; } |
1839 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1840 | /* end confdefs.h. */ |
1841 | $4 |
1842 | #include <$2> |
1843 | _ACEOF |
1844 | if ac_fn_c_try_compile "$LINENO"; then : |
1845 | ac_header_compiler=yes |
1846 | else |
1847 | ac_header_compiler=no |
1848 | fi |
1849 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
1851 | $as_echo "$ac_header_compiler" >&6; } |
1852 | |
1853 | # Is the header present? |
1854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
1855 | $as_echo_n "checking $2 presence... " >&6; } |
1856 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1857 | /* end confdefs.h. */ |
1858 | #include <$2> |
1859 | _ACEOF |
1860 | if ac_fn_c_try_cpp "$LINENO"; then : |
1861 | ac_header_preproc=yes |
1862 | else |
1863 | ac_header_preproc=no |
1864 | fi |
1865 | rm -f conftest.err conftest.i conftest.$ac_ext |
1866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
1867 | $as_echo "$ac_header_preproc" >&6; } |
1868 | |
1869 | # So? What about this header? |
1870 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
1871 | yes:no: ) |
1872 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
1873 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
1874 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
1875 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
1876 | ;; |
1877 | no:yes:* ) |
1878 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
1879 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
1880 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
1881 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
1882 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
1883 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
1884 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
1885 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
1886 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
1887 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
1888 | ( $as_echo "## ----------------------------------------- ## |
1889 | ## Report this to ntfs-3g-devel@lists.sf.net ## |
1890 | ## ----------------------------------------- ##" |
1891 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
1892 | ;; |
1893 | esac |
1894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1895 | $as_echo_n "checking for $2... " >&6; } |
1896 | if eval "test \"\${$3+set}\"" = set; then : |
1897 | $as_echo_n "(cached) " >&6 |
1898 | else |
1899 | eval "$3=\$ac_header_compiler" |
1900 | fi |
1901 | eval ac_res=\$$3 |
1902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1903 | $as_echo "$ac_res" >&6; } |
1904 | fi |
1905 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
1906 | |
1907 | } # ac_fn_c_check_header_mongrel |
1908 | |
1909 | # ac_fn_c_try_run LINENO |
1910 | # ---------------------- |
1911 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
1912 | # that executables *can* be run. |
1913 | ac_fn_c_try_run () |
1914 | { |
1915 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1916 | if { { ac_try="$ac_link" |
1917 | case "(($ac_try" in |
1918 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1919 | *) ac_try_echo=$ac_try;; |
1920 | esac |
1921 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1922 | $as_echo "$ac_try_echo"; } >&5 |
1923 | (eval "$ac_link") 2>&5 |
1924 | ac_status=$? |
1925 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1926 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
1927 | { { case "(($ac_try" in |
1928 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1929 | *) ac_try_echo=$ac_try;; |
1930 | esac |
1931 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1932 | $as_echo "$ac_try_echo"; } >&5 |
1933 | (eval "$ac_try") 2>&5 |
1934 | ac_status=$? |
1935 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1936 | test $ac_status = 0; }; }; then : |
1937 | ac_retval=0 |
1938 | else |
1939 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
1940 | $as_echo "$as_me: failed program was:" >&5 |
1941 | sed 's/^/| /' conftest.$ac_ext >&5 |
1942 | |
1943 | ac_retval=$ac_status |
1944 | fi |
1945 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
1946 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
1947 | as_fn_set_status $ac_retval |
1948 | |
1949 | } # ac_fn_c_try_run |
1950 | |
1951 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1952 | # ------------------------------------------------------- |
1953 | # Tests whether HEADER exists and can be compiled using the include files in |
1954 | # INCLUDES, setting the cache variable VAR accordingly. |
1955 | ac_fn_c_check_header_compile () |
1956 | { |
1957 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1959 | $as_echo_n "checking for $2... " >&6; } |
1960 | if eval "test \"\${$3+set}\"" = set; then : |
1961 | $as_echo_n "(cached) " >&6 |
1962 | else |
1963 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1964 | /* end confdefs.h. */ |
1965 | $4 |
1966 | #include <$2> |
1967 | _ACEOF |
1968 | if ac_fn_c_try_compile "$LINENO"; then : |
1969 | eval "$3=yes" |
1970 | else |
1971 | eval "$3=no" |
1972 | fi |
1973 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1974 | fi |
1975 | eval ac_res=\$$3 |
1976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1977 | $as_echo "$ac_res" >&6; } |
1978 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
1979 | |
1980 | } # ac_fn_c_check_header_compile |
1981 | |
1982 | # ac_fn_c_try_link LINENO |
1983 | # ----------------------- |
1984 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
1985 | ac_fn_c_try_link () |
1986 | { |
1987 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1988 | rm -f conftest.$ac_objext conftest$ac_exeext |
1989 | if { { ac_try="$ac_link" |
1990 | case "(($ac_try" in |
1991 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1992 | *) ac_try_echo=$ac_try;; |
1993 | esac |
1994 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1995 | $as_echo "$ac_try_echo"; } >&5 |
1996 | (eval "$ac_link") 2>conftest.err |
1997 | ac_status=$? |
1998 | if test -s conftest.err; then |
1999 | grep -v '^ *+' conftest.err >conftest.er1 |
2000 | cat conftest.er1 >&5 |
2001 | mv -f conftest.er1 conftest.err |
2002 | fi |
2003 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2004 | test $ac_status = 0; } && { |
2005 | test -z "$ac_c_werror_flag" || |
2006 | test ! -s conftest.err |
2007 | } && test -s conftest$ac_exeext && { |
2008 | test "$cross_compiling" = yes || |
2009 | $as_test_x conftest$ac_exeext |
2010 | }; then : |
2011 | ac_retval=0 |
2012 | else |
2013 | $as_echo "$as_me: failed program was:" >&5 |
2014 | sed 's/^/| /' conftest.$ac_ext >&5 |
2015 | |
2016 | ac_retval=1 |
2017 | fi |
2018 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
2019 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
2020 | # interfere with the next link command; also delete a directory that is |
2021 | # left behind by Apple's compiler. We do this before executing the actions. |
2022 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
2023 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
2024 | as_fn_set_status $ac_retval |
2025 | |
2026 | } # ac_fn_c_try_link |
2027 | |
2028 | # ac_fn_c_check_func LINENO FUNC VAR |
2029 | # ---------------------------------- |
2030 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
2031 | ac_fn_c_check_func () |
2032 | { |
2033 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
2034 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
2035 | $as_echo_n "checking for $2... " >&6; } |
2036 | if eval "test \"\${$3+set}\"" = set; then : |
2037 | $as_echo_n "(cached) " >&6 |
2038 | else |
2039 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2040 | /* end confdefs.h. */ |
2041 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
2042 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
2043 | #define $2 innocuous_$2 |
2044 | |
2045 | /* System header to define __stub macros and hopefully few prototypes, |
2046 | which can conflict with char $2 (); below. |
2047 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
2048 | <limits.h> exists even on freestanding compilers. */ |
2049 | |
2050 | #ifdef __STDC__ |
2051 | # include <limits.h> |
2052 | #else |
2053 | # include <assert.h> |
2054 | #endif |
2055 | |
2056 | #undef $2 |
2057 | |
2058 | /* Override any GCC internal prototype to avoid an error. |
2059 | Use char because int might match the return type of a GCC |
2060 | builtin and then its argument prototype would still apply. */ |
2061 | #ifdef __cplusplus |
2062 | extern "C" |
2063 | #endif |
2064 | char $2 (); |
2065 | /* The GNU C library defines this for functions which it implements |
2066 | to always fail with ENOSYS. Some functions are actually named |
2067 | something starting with __ and the normal name is an alias. */ |
2068 | #if defined __stub_$2 || defined __stub___$2 |
2069 | choke me |
2070 | #endif |
2071 | |
2072 | int |
2073 | main () |
2074 | { |
2075 | return $2 (); |
2076 | ; |
2077 | return 0; |
2078 | } |
2079 | _ACEOF |
2080 | if ac_fn_c_try_link "$LINENO"; then : |
2081 | eval "$3=yes" |
2082 | else |
2083 | eval "$3=no" |
2084 | fi |
2085 | rm -f core conftest.err conftest.$ac_objext \ |
2086 | conftest$ac_exeext conftest.$ac_ext |
2087 | fi |
2088 | eval ac_res=\$$3 |
2089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
2090 | $as_echo "$ac_res" >&6; } |
2091 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
2092 | |
2093 | } # ac_fn_c_check_func |
2094 | |
2095 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
2096 | # ------------------------------------------- |
2097 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
2098 | # variable VAR accordingly. |
2099 | ac_fn_c_check_type () |
2100 | { |
2101 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
2102 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
2103 | $as_echo_n "checking for $2... " >&6; } |
2104 | if eval "test \"\${$3+set}\"" = set; then : |
2105 | $as_echo_n "(cached) " >&6 |
2106 | else |
2107 | eval "$3=no" |
2108 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2109 | /* end confdefs.h. */ |
2110 | $4 |
2111 | int |
2112 | main () |
2113 | { |
2114 | if (sizeof ($2)) |
2115 | return 0; |
2116 | ; |
2117 | return 0; |
2118 | } |
2119 | _ACEOF |
2120 | if ac_fn_c_try_compile "$LINENO"; then : |
2121 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2122 | /* end confdefs.h. */ |
2123 | $4 |
2124 | int |
2125 | main () |
2126 | { |
2127 | if (sizeof (($2))) |
2128 | return 0; |
2129 | ; |
2130 | return 0; |
2131 | } |
2132 | _ACEOF |
2133 | if ac_fn_c_try_compile "$LINENO"; then : |
2134 | |
2135 | else |
2136 | eval "$3=yes" |
2137 | fi |
2138 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2139 | fi |
2140 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2141 | fi |
2142 | eval ac_res=\$$3 |
2143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
2144 | $as_echo "$ac_res" >&6; } |
2145 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
2146 | |
2147 | } # ac_fn_c_check_type |
2148 | |
2149 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
2150 | # ---------------------------------------------------- |
2151 | # Tries to find if the field MEMBER exists in type AGGR, after including |
2152 | # INCLUDES, setting cache variable VAR accordingly. |
2153 | ac_fn_c_check_member () |
2154 | { |
2155 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
2156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
2157 | $as_echo_n "checking for $2.$3... " >&6; } |
2158 | if eval "test \"\${$4+set}\"" = set; then : |
2159 | $as_echo_n "(cached) " >&6 |
2160 | else |
2161 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2162 | /* end confdefs.h. */ |
2163 | $5 |
2164 | int |
2165 | main () |
2166 | { |
2167 | static $2 ac_aggr; |
2168 | if (ac_aggr.$3) |
2169 | return 0; |
2170 | ; |
2171 | return 0; |
2172 | } |
2173 | _ACEOF |
2174 | if ac_fn_c_try_compile "$LINENO"; then : |
2175 | eval "$4=yes" |
2176 | else |
2177 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2178 | /* end confdefs.h. */ |
2179 | $5 |
2180 | int |
2181 | main () |
2182 | { |
2183 | static $2 ac_aggr; |
2184 | if (sizeof ac_aggr.$3) |
2185 | return 0; |
2186 | ; |
2187 | return 0; |
2188 | } |
2189 | _ACEOF |
2190 | if ac_fn_c_try_compile "$LINENO"; then : |
2191 | eval "$4=yes" |
2192 | else |
2193 | eval "$4=no" |
2194 | fi |
2195 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2196 | fi |
2197 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2198 | fi |
2199 | eval ac_res=\$$4 |
2200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
2201 | $as_echo "$ac_res" >&6; } |
2202 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
2203 | |
2204 | } # ac_fn_c_check_member |
2205 | cat >config.log <<_ACEOF |
2206 | This file contains any messages produced by compilers while |
2207 | running configure, to aid debugging if configure makes a mistake. |
2208 | |
2209 | It was created by ntfs-3g $as_me 2014.2.15, which was |
2210 | generated by GNU Autoconf 2.67. Invocation command line was |
2211 | |
2212 | $ $0 $@ |
2213 | |
2214 | _ACEOF |
2215 | exec 5>>config.log |
2216 | { |
2217 | cat <<_ASUNAME |
2218 | ## --------- ## |
2219 | ## Platform. ## |
2220 | ## --------- ## |
2221 | |
2222 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
2223 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
2224 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
2225 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
2226 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
2227 | |
2228 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
2229 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
2230 | |
2231 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
2232 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
2233 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
2234 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
2235 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
2236 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
2237 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
2238 | |
2239 | _ASUNAME |
2240 | |
2241 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2242 | for as_dir in $PATH |
2243 | do |
2244 | IFS=$as_save_IFS |
2245 | test -z "$as_dir" && as_dir=. |
2246 | $as_echo "PATH: $as_dir" |
2247 | done |
2248 | IFS=$as_save_IFS |
2249 | |
2250 | } >&5 |
2251 | |
2252 | cat >&5 <<_ACEOF |
2253 | |
2254 | |
2255 | ## ----------- ## |
2256 | ## Core tests. ## |
2257 | ## ----------- ## |
2258 | |
2259 | _ACEOF |
2260 | |
2261 | |
2262 | # Keep a trace of the command line. |
2263 | # Strip out --no-create and --no-recursion so they do not pile up. |
2264 | # Strip out --silent because we don't want to record it for future runs. |
2265 | # Also quote any args containing shell meta-characters. |
2266 | # Make two passes to allow for proper duplicate-argument suppression. |
2267 | ac_configure_args= |
2268 | ac_configure_args0= |
2269 | ac_configure_args1= |
2270 | ac_must_keep_next=false |
2271 | for ac_pass in 1 2 |
2272 | do |
2273 | for ac_arg |
2274 | do |
2275 | case $ac_arg in |
2276 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
2277 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
2278 | | -silent | --silent | --silen | --sile | --sil) |
2279 | continue ;; |
2280 | *\'*) |
2281 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
2282 | esac |
2283 | case $ac_pass in |
2284 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
2285 | 2) |
2286 | as_fn_append ac_configure_args1 " '$ac_arg'" |
2287 | if test $ac_must_keep_next = true; then |
2288 | ac_must_keep_next=false # Got value, back to normal. |
2289 | else |
2290 | case $ac_arg in |
2291 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
2292 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
2293 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
2294 | | -with-* | --with-* | -without-* | --without-* | --x) |
2295 | case "$ac_configure_args0 " in |
2296 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
2297 | esac |
2298 | ;; |
2299 | -* ) ac_must_keep_next=true ;; |
2300 | esac |
2301 | fi |
2302 | as_fn_append ac_configure_args " '$ac_arg'" |
2303 | ;; |
2304 | esac |
2305 | done |
2306 | done |
2307 | { ac_configure_args0=; unset ac_configure_args0;} |
2308 | { ac_configure_args1=; unset ac_configure_args1;} |
2309 | |
2310 | # When interrupted or exit'd, cleanup temporary files, and complete |
2311 | # config.log. We remove comments because anyway the quotes in there |
2312 | # would cause problems or look ugly. |
2313 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2314 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
2315 | trap 'exit_status=$? |
2316 | # Save into config.log some information that might help in debugging. |
2317 | { |
2318 | echo |
2319 | |
2320 | $as_echo "## ---------------- ## |
2321 | ## Cache variables. ## |
2322 | ## ---------------- ##" |
2323 | echo |
2324 | # The following way of writing the cache mishandles newlines in values, |
2325 | ( |
2326 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
2327 | eval ac_val=\$$ac_var |
2328 | case $ac_val in #( |
2329 | *${as_nl}*) |
2330 | case $ac_var in #( |
2331 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
2332 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
2333 | esac |
2334 | case $ac_var in #( |
2335 | _ | IFS | as_nl) ;; #( |
2336 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
2337 | *) { eval $ac_var=; unset $ac_var;} ;; |
2338 | esac ;; |
2339 | esac |
2340 | done |
2341 | (set) 2>&1 | |
2342 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2343 | *${as_nl}ac_space=\ *) |
2344 | sed -n \ |
2345 | "s/'\''/'\''\\\\'\'''\''/g; |
2346 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
2347 | ;; #( |
2348 | *) |
2349 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
2350 | ;; |
2351 | esac | |
2352 | sort |
2353 | ) |
2354 | echo |
2355 | |
2356 | $as_echo "## ----------------- ## |
2357 | ## Output variables. ## |
2358 | ## ----------------- ##" |
2359 | echo |
2360 | for ac_var in $ac_subst_vars |
2361 | do |
2362 | eval ac_val=\$$ac_var |
2363 | case $ac_val in |
2364 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
2365 | esac |
2366 | $as_echo "$ac_var='\''$ac_val'\''" |
2367 | done | sort |
2368 | echo |
2369 | |
2370 | if test -n "$ac_subst_files"; then |
2371 | $as_echo "## ------------------- ## |
2372 | ## File substitutions. ## |
2373 | ## ------------------- ##" |
2374 | echo |
2375 | for ac_var in $ac_subst_files |
2376 | do |
2377 | eval ac_val=\$$ac_var |
2378 | case $ac_val in |
2379 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
2380 | esac |
2381 | $as_echo "$ac_var='\''$ac_val'\''" |
2382 | done | sort |
2383 | echo |
2384 | fi |
2385 | |
2386 | if test -s confdefs.h; then |
2387 | $as_echo "## ----------- ## |
2388 | ## confdefs.h. ## |
2389 | ## ----------- ##" |
2390 | echo |
2391 | cat confdefs.h |
2392 | echo |
2393 | fi |
2394 | test "$ac_signal" != 0 && |
2395 | $as_echo "$as_me: caught signal $ac_signal" |
2396 | $as_echo "$as_me: exit $exit_status" |
2397 | } >&5 |
2398 | rm -f core *.core core.conftest.* && |
2399 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
2400 | exit $exit_status |
2401 | ' 0 |
2402 | for ac_signal in 1 2 13 15; do |
2403 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
2404 | done |
2405 | ac_signal=0 |
2406 | |
2407 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
2408 | rm -f -r conftest* confdefs.h |
2409 | |
2410 | $as_echo "/* confdefs.h */" > confdefs.h |
2411 | |
2412 | # Predefined preprocessor variables. |
2413 | |
2414 | cat >>confdefs.h <<_ACEOF |
2415 | #define PACKAGE_NAME "$PACKAGE_NAME" |
2416 | _ACEOF |
2417 | |
2418 | cat >>confdefs.h <<_ACEOF |
2419 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
2420 | _ACEOF |
2421 | |
2422 | cat >>confdefs.h <<_ACEOF |
2423 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
2424 | _ACEOF |
2425 | |
2426 | cat >>confdefs.h <<_ACEOF |
2427 | #define PACKAGE_STRING "$PACKAGE_STRING" |
2428 | _ACEOF |
2429 | |
2430 | cat >>confdefs.h <<_ACEOF |
2431 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
2432 | _ACEOF |
2433 | |
2434 | cat >>confdefs.h <<_ACEOF |
2435 | #define PACKAGE_URL "$PACKAGE_URL" |
2436 | _ACEOF |
2437 | |
2438 | |
2439 | # Let the site file select an alternate cache file if it wants to. |
2440 | # Prefer an explicitly selected file to automatically selected ones. |
2441 | ac_site_file1=NONE |
2442 | ac_site_file2=NONE |
2443 | if test -n "$CONFIG_SITE"; then |
2444 | # We do not want a PATH search for config.site. |
2445 | case $CONFIG_SITE in #(( |
2446 | -*) ac_site_file1=./$CONFIG_SITE;; |
2447 | */*) ac_site_file1=$CONFIG_SITE;; |
2448 | *) ac_site_file1=./$CONFIG_SITE;; |
2449 | esac |
2450 | elif test "x$prefix" != xNONE; then |
2451 | ac_site_file1=$prefix/share/config.site |
2452 | ac_site_file2=$prefix/etc/config.site |
2453 | else |
2454 | ac_site_file1=$ac_default_prefix/share/config.site |
2455 | ac_site_file2=$ac_default_prefix/etc/config.site |
2456 | fi |
2457 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2458 | do |
2459 | test "x$ac_site_file" = xNONE && continue |
2460 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
2461 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2462 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
2463 | sed 's/^/| /' "$ac_site_file" >&5 |
2464 | . "$ac_site_file" \ |
2465 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2466 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2467 | as_fn_error $? "failed to load site script $ac_site_file |
2468 | See \`config.log' for more details" "$LINENO" 5 ; } |
2469 | fi |
2470 | done |
2471 | |
2472 | if test -r "$cache_file"; then |
2473 | # Some versions of bash will fail to source /dev/null (special files |
2474 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
2475 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
2476 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2477 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
2478 | case $cache_file in |
2479 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2480 | *) . "./$cache_file";; |
2481 | esac |
2482 | fi |
2483 | else |
2484 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2485 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
2486 | >$cache_file |
2487 | fi |
2488 | |
2489 | as_fn_append ac_header_list " utime.h" |
2490 | # Check that the precious variables saved in the cache have kept the same |
2491 | # value. |
2492 | ac_cache_corrupted=false |
2493 | for ac_var in $ac_precious_vars; do |
2494 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2495 | eval ac_new_set=\$ac_env_${ac_var}_set |
2496 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2497 | eval ac_new_val=\$ac_env_${ac_var}_value |
2498 | case $ac_old_set,$ac_new_set in |
2499 | set,) |
2500 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2501 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
2502 | ac_cache_corrupted=: ;; |
2503 | ,set) |
2504 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2505 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
2506 | ac_cache_corrupted=: ;; |
2507 | ,);; |
2508 | *) |
2509 | if test "x$ac_old_val" != "x$ac_new_val"; then |
2510 | # differences in whitespace do not lead to failure. |
2511 | ac_old_val_w=`echo x $ac_old_val` |
2512 | ac_new_val_w=`echo x $ac_new_val` |
2513 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
2514 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
2515 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
2516 | ac_cache_corrupted=: |
2517 | else |
2518 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
2519 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
2520 | eval $ac_var=\$ac_old_val |
2521 | fi |
2522 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
2523 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
2524 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
2525 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
2526 | fi;; |
2527 | esac |
2528 | # Pass precious variables to config.status. |
2529 | if test "$ac_new_set" = set; then |
2530 | case $ac_new_val in |
2531 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
2532 | *) ac_arg=$ac_var=$ac_new_val ;; |
2533 | esac |
2534 | case " $ac_configure_args " in |
2535 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
2536 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
2537 | esac |
2538 | fi |
2539 | done |
2540 | if $ac_cache_corrupted; then |
2541 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2542 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2543 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
2544 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
2545 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
2546 | fi |
2547 | ## -------------------- ## |
2548 | ## Main body of script. ## |
2549 | ## -------------------- ## |
2550 | |
2551 | ac_ext=c |
2552 | ac_cpp='$CPP $CPPFLAGS' |
2553 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2554 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2555 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2556 | |
2557 | |
2558 | LIBNTFS_3G_VERSION="85" |
2559 | |
2560 | |
2561 | # Environment |
2562 | ac_aux_dir= |
2563 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2564 | if test -f "$ac_dir/install-sh"; then |
2565 | ac_aux_dir=$ac_dir |
2566 | ac_install_sh="$ac_aux_dir/install-sh -c" |
2567 | break |
2568 | elif test -f "$ac_dir/install.sh"; then |
2569 | ac_aux_dir=$ac_dir |
2570 | ac_install_sh="$ac_aux_dir/install.sh -c" |
2571 | break |
2572 | elif test -f "$ac_dir/shtool"; then |
2573 | ac_aux_dir=$ac_dir |
2574 | ac_install_sh="$ac_aux_dir/shtool install -c" |
2575 | break |
2576 | fi |
2577 | done |
2578 | if test -z "$ac_aux_dir"; then |
2579 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
2580 | fi |
2581 | |
2582 | # These three variables are undocumented and unsupported, |
2583 | # and are intended to be withdrawn in a future Autoconf release. |
2584 | # They can cause serious problems if a builder's source tree is in a directory |
2585 | # whose full name contains unusual characters. |
2586 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
2587 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
2588 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
2589 | |
2590 | |
2591 | # Make sure we can run config.sub. |
2592 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
2593 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
2594 | |
2595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
2596 | $as_echo_n "checking build system type... " >&6; } |
2597 | if test "${ac_cv_build+set}" = set; then : |
2598 | $as_echo_n "(cached) " >&6 |
2599 | else |
2600 | ac_build_alias=$build_alias |
2601 | test "x$ac_build_alias" = x && |
2602 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
2603 | test "x$ac_build_alias" = x && |
2604 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
2605 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
2606 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
2607 | |
2608 | fi |
2609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
2610 | $as_echo "$ac_cv_build" >&6; } |
2611 | case $ac_cv_build in |
2612 | *-*-*) ;; |
2613 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;; |
2614 | esac |
2615 | build=$ac_cv_build |
2616 | ac_save_IFS=$IFS; IFS='-' |
2617 | set x $ac_cv_build |
2618 | shift |
2619 | build_cpu=$1 |
2620 | build_vendor=$2 |
2621 | shift; shift |
2622 | # Remember, the first character of IFS is used to create $*, |
2623 | # except with old shells: |
2624 | build_os=$* |
2625 | IFS=$ac_save_IFS |
2626 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
2627 | |
2628 | |
2629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2630 | $as_echo_n "checking host system type... " >&6; } |
2631 | if test "${ac_cv_host+set}" = set; then : |
2632 | $as_echo_n "(cached) " >&6 |
2633 | else |
2634 | if test "x$host_alias" = x; then |
2635 | ac_cv_host=$ac_cv_build |
2636 | else |
2637 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
2638 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
2639 | fi |
2640 | |
2641 | fi |
2642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2643 | $as_echo "$ac_cv_host" >&6; } |
2644 | case $ac_cv_host in |
2645 | *-*-*) ;; |
2646 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;; |
2647 | esac |
2648 | host=$ac_cv_host |
2649 | ac_save_IFS=$IFS; IFS='-' |
2650 | set x $ac_cv_host |
2651 | shift |
2652 | host_cpu=$1 |
2653 | host_vendor=$2 |
2654 | shift; shift |
2655 | # Remember, the first character of IFS is used to create $*, |
2656 | # except with old shells: |
2657 | host_os=$* |
2658 | IFS=$ac_save_IFS |
2659 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
2660 | |
2661 | |
2662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2663 | $as_echo_n "checking target system type... " >&6; } |
2664 | if test "${ac_cv_target+set}" = set; then : |
2665 | $as_echo_n "(cached) " >&6 |
2666 | else |
2667 | if test "x$target_alias" = x; then |
2668 | ac_cv_target=$ac_cv_host |
2669 | else |
2670 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
2671 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
2672 | fi |
2673 | |
2674 | fi |
2675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2676 | $as_echo "$ac_cv_target" >&6; } |
2677 | case $ac_cv_target in |
2678 | *-*-*) ;; |
2679 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5 ;; |
2680 | esac |
2681 | target=$ac_cv_target |
2682 | ac_save_IFS=$IFS; IFS='-' |
2683 | set x $ac_cv_target |
2684 | shift |
2685 | target_cpu=$1 |
2686 | target_vendor=$2 |
2687 | shift; shift |
2688 | # Remember, the first character of IFS is used to create $*, |
2689 | # except with old shells: |
2690 | target_os=$* |
2691 | IFS=$ac_save_IFS |
2692 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac |
2693 | |
2694 | |
2695 | # The aliases save the names the user supplied, while $host etc. |
2696 | # will get canonicalized. |
2697 | test -n "$target_alias" && |
2698 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2699 | NONENONEs,x,x, && |
2700 | program_prefix=${target_alias}- |
2701 | |
2702 | # Automake |
2703 | am__api_version='1.11' |
2704 | |
2705 | # Find a good install program. We prefer a C program (faster), |
2706 | # so one script is as good as another. But avoid the broken or |
2707 | # incompatible versions: |
2708 | # SysV /etc/install, /usr/sbin/install |
2709 | # SunOS /usr/etc/install |
2710 | # IRIX /sbin/install |
2711 | # AIX /bin/install |
2712 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
2713 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2714 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
2715 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
2716 | # OS/2's system install, which has a completely different semantic |
2717 | # ./install, which can be erroneously created by make from ./install.sh. |
2718 | # Reject install programs that cannot install multiple files. |
2719 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2720 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
2721 | if test -z "$INSTALL"; then |
2722 | if test "${ac_cv_path_install+set}" = set; then : |
2723 | $as_echo_n "(cached) " >&6 |
2724 | else |
2725 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2726 | for as_dir in $PATH |
2727 | do |
2728 | IFS=$as_save_IFS |
2729 | test -z "$as_dir" && as_dir=. |
2730 | # Account for people who put trailing slashes in PATH elements. |
2731 | case $as_dir/ in #(( |
2732 | ./ | .// | /[cC]/* | \ |
2733 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
2734 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
2735 | /usr/ucb/* ) ;; |
2736 | *) |
2737 | # OSF1 and SCO ODT 3.0 have their own names for install. |
2738 | # Don't use installbsd from OSF since it installs stuff as root |
2739 | # by default. |
2740 | for ac_prog in ginstall scoinst install; do |
2741 | for ac_exec_ext in '' $ac_executable_extensions; do |
2742 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
2743 | if test $ac_prog = install && |
2744 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
2745 | # AIX install. It has an incompatible calling convention. |
2746 | : |
2747 | elif test $ac_prog = install && |
2748 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
2749 | # program-specific install script used by HP pwplus--don't use. |
2750 | : |
2751 | else |
2752 | rm -rf conftest.one conftest.two conftest.dir |
2753 | echo one > conftest.one |
2754 | echo two > conftest.two |
2755 | mkdir conftest.dir |
2756 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
2757 | test -s conftest.one && test -s conftest.two && |
2758 | test -s conftest.dir/conftest.one && |
2759 | test -s conftest.dir/conftest.two |
2760 | then |
2761 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
2762 | break 3 |
2763 | fi |
2764 | fi |
2765 | fi |
2766 | done |
2767 | done |
2768 | ;; |
2769 | esac |
2770 | |
2771 | done |
2772 | IFS=$as_save_IFS |
2773 | |
2774 | rm -rf conftest.one conftest.two conftest.dir |
2775 | |
2776 | fi |
2777 | if test "${ac_cv_path_install+set}" = set; then |
2778 | INSTALL=$ac_cv_path_install |
2779 | else |
2780 | # As a last resort, use the slow shell script. Don't cache a |
2781 | # value for INSTALL within a source directory, because that will |
2782 | # break other packages using the cache if that directory is |
2783 | # removed, or if the value is a relative name. |
2784 | INSTALL=$ac_install_sh |
2785 | fi |
2786 | fi |
2787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2788 | $as_echo "$INSTALL" >&6; } |
2789 | |
2790 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
2791 | # It thinks the first close brace ends the variable substitution. |
2792 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
2793 | |
2794 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
2795 | |
2796 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
2797 | |
2798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
2799 | $as_echo_n "checking whether build environment is sane... " >&6; } |
2800 | # Just in case |
2801 | sleep 1 |
2802 | echo timestamp > conftest.file |
2803 | # Reject unsafe characters in $srcdir or the absolute working directory |
2804 | # name. Accept space and tab only in the latter. |
2805 | am_lf=' |
2806 | ' |
2807 | case `pwd` in |
2808 | *[\\\"\#\$\&\'\`$am_lf]*) |
2809 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;; |
2810 | esac |
2811 | case $srcdir in |
2812 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
2813 | as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;; |
2814 | esac |
2815 | |
2816 | # Do `set' in a subshell so we don't clobber the current shell's |
2817 | # arguments. Must try -L first in case configure is actually a |
2818 | # symlink; some systems play weird games with the mod time of symlinks |
2819 | # (eg FreeBSD returns the mod time of the symlink's containing |
2820 | # directory). |
2821 | if ( |
2822 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
2823 | if test "$*" = "X"; then |
2824 | # -L didn't work. |
2825 | set X `ls -t "$srcdir/configure" conftest.file` |
2826 | fi |
2827 | rm -f conftest.file |
2828 | if test "$*" != "X $srcdir/configure conftest.file" \ |
2829 | && test "$*" != "X conftest.file $srcdir/configure"; then |
2830 | |
2831 | # If neither matched, then we have a broken ls. This can happen |
2832 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
2833 | # broken ls alias from the environment. This has actually |
2834 | # happened. Such a system could not be considered "sane". |
2835 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken |
2836 | alias in your environment" "$LINENO" 5 |
2837 | fi |
2838 | |
2839 | test "$2" = conftest.file |
2840 | ) |
2841 | then |
2842 | # Ok. |
2843 | : |
2844 | else |
2845 | as_fn_error $? "newly created file is older than distributed files! |
2846 | Check your system clock" "$LINENO" 5 |
2847 | fi |
2848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2849 | $as_echo "yes" >&6; } |
2850 | test "$program_prefix" != NONE && |
2851 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
2852 | # Use a double $ so make ignores it. |
2853 | test "$program_suffix" != NONE && |
2854 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2855 | # Double any \ or $. |
2856 | # By default was `s,x,x', remove it if useless. |
2857 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2858 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
2859 | |
2860 | # expand $ac_aux_dir to an absolute path |
2861 | am_aux_dir=`cd $ac_aux_dir && pwd` |
2862 | |
2863 | if test x"${MISSING+set}" != xset; then |
2864 | case $am_aux_dir in |
2865 | *\ * | *\ *) |
2866 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
2867 | *) |
2868 | MISSING="\${SHELL} $am_aux_dir/missing" ;; |
2869 | esac |
2870 | fi |
2871 | # Use eval to expand $SHELL |
2872 | if eval "$MISSING --run true"; then |
2873 | am_missing_run="$MISSING --run " |
2874 | else |
2875 | am_missing_run= |
2876 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 |
2877 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
2878 | fi |
2879 | |
2880 | if test x"${install_sh}" != xset; then |
2881 | case $am_aux_dir in |
2882 | *\ * | *\ *) |
2883 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
2884 | *) |
2885 | install_sh="\${SHELL} $am_aux_dir/install-sh" |
2886 | esac |
2887 | fi |
2888 | |
2889 | # Installed binaries are usually stripped using `strip' when the user |
2890 | # run `make install-strip'. However `strip' might not be the right |
2891 | # tool to use in cross-compilation environments, therefore Automake |
2892 | # will honor the `STRIP' environment variable to overrule this program. |
2893 | if test "$cross_compiling" != no; then |
2894 | if test -n "$ac_tool_prefix"; then |
2895 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
2896 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
2897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2898 | $as_echo_n "checking for $ac_word... " >&6; } |
2899 | if test "${ac_cv_prog_STRIP+set}" = set; then : |
2900 | $as_echo_n "(cached) " >&6 |
2901 | else |
2902 | if test -n "$STRIP"; then |
2903 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
2904 | else |
2905 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2906 | for as_dir in $PATH |
2907 | do |
2908 | IFS=$as_save_IFS |
2909 | test -z "$as_dir" && as_dir=. |
2910 | for ac_exec_ext in '' $ac_executable_extensions; do |
2911 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2912 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
2913 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2914 | break 2 |
2915 | fi |
2916 | done |
2917 | done |
2918 | IFS=$as_save_IFS |
2919 | |
2920 | fi |
2921 | fi |
2922 | STRIP=$ac_cv_prog_STRIP |
2923 | if test -n "$STRIP"; then |
2924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
2925 | $as_echo "$STRIP" >&6; } |
2926 | else |
2927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2928 | $as_echo "no" >&6; } |
2929 | fi |
2930 | |
2931 | |
2932 | fi |
2933 | if test -z "$ac_cv_prog_STRIP"; then |
2934 | ac_ct_STRIP=$STRIP |
2935 | # Extract the first word of "strip", so it can be a program name with args. |
2936 | set dummy strip; ac_word=$2 |
2937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2938 | $as_echo_n "checking for $ac_word... " >&6; } |
2939 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : |
2940 | $as_echo_n "(cached) " >&6 |
2941 | else |
2942 | if test -n "$ac_ct_STRIP"; then |
2943 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
2944 | else |
2945 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2946 | for as_dir in $PATH |
2947 | do |
2948 | IFS=$as_save_IFS |
2949 | test -z "$as_dir" && as_dir=. |
2950 | for ac_exec_ext in '' $ac_executable_extensions; do |
2951 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2952 | ac_cv_prog_ac_ct_STRIP="strip" |
2953 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2954 | break 2 |
2955 | fi |
2956 | done |
2957 | done |
2958 | IFS=$as_save_IFS |
2959 | |
2960 | fi |
2961 | fi |
2962 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
2963 | if test -n "$ac_ct_STRIP"; then |
2964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
2965 | $as_echo "$ac_ct_STRIP" >&6; } |
2966 | else |
2967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2968 | $as_echo "no" >&6; } |
2969 | fi |
2970 | |
2971 | if test "x$ac_ct_STRIP" = x; then |
2972 | STRIP=":" |
2973 | else |
2974 | case $cross_compiling:$ac_tool_warned in |
2975 | yes:) |
2976 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
2977 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
2978 | ac_tool_warned=yes ;; |
2979 | esac |
2980 | STRIP=$ac_ct_STRIP |
2981 | fi |
2982 | else |
2983 | STRIP="$ac_cv_prog_STRIP" |
2984 | fi |
2985 | |
2986 | fi |
2987 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
2988 | |
2989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
2990 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
2991 | if test -z "$MKDIR_P"; then |
2992 | if test "${ac_cv_path_mkdir+set}" = set; then : |
2993 | $as_echo_n "(cached) " >&6 |
2994 | else |
2995 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2996 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
2997 | do |
2998 | IFS=$as_save_IFS |
2999 | test -z "$as_dir" && as_dir=. |
3000 | for ac_prog in mkdir gmkdir; do |
3001 | for ac_exec_ext in '' $ac_executable_extensions; do |
3002 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue |
3003 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
3004 | 'mkdir (GNU coreutils) '* | \ |
3005 | 'mkdir (coreutils) '* | \ |
3006 | 'mkdir (fileutils) '4.1*) |
3007 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
3008 | break 3;; |
3009 | esac |
3010 | done |
3011 | done |
3012 | done |
3013 | IFS=$as_save_IFS |
3014 | |
3015 | fi |
3016 | |
3017 | test -d ./--version && rmdir ./--version |
3018 | if test "${ac_cv_path_mkdir+set}" = set; then |
3019 | MKDIR_P="$ac_cv_path_mkdir -p" |
3020 | else |
3021 | # As a last resort, use the slow shell script. Don't cache a |
3022 | # value for MKDIR_P within a source directory, because that will |
3023 | # break other packages using the cache if that directory is |
3024 | # removed, or if the value is a relative name. |
3025 | MKDIR_P="$ac_install_sh -d" |
3026 | fi |
3027 | fi |
3028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
3029 | $as_echo "$MKDIR_P" >&6; } |
3030 | |
3031 | mkdir_p="$MKDIR_P" |
3032 | case $mkdir_p in |
3033 | [\\/$]* | ?:[\\/]*) ;; |
3034 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; |
3035 | esac |
3036 | |
3037 | for ac_prog in gawk mawk nawk awk |
3038 | do |
3039 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
3040 | set dummy $ac_prog; ac_word=$2 |
3041 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3042 | $as_echo_n "checking for $ac_word... " >&6; } |
3043 | if test "${ac_cv_prog_AWK+set}" = set; then : |
3044 | $as_echo_n "(cached) " >&6 |
3045 | else |
3046 | if test -n "$AWK"; then |
3047 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
3048 | else |
3049 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3050 | for as_dir in $PATH |
3051 | do |
3052 | IFS=$as_save_IFS |
3053 | test -z "$as_dir" && as_dir=. |
3054 | for ac_exec_ext in '' $ac_executable_extensions; do |
3055 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3056 | ac_cv_prog_AWK="$ac_prog" |
3057 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3058 | break 2 |
3059 | fi |
3060 | done |
3061 | done |
3062 | IFS=$as_save_IFS |
3063 | |
3064 | fi |
3065 | fi |
3066 | AWK=$ac_cv_prog_AWK |
3067 | if test -n "$AWK"; then |
3068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
3069 | $as_echo "$AWK" >&6; } |
3070 | else |
3071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3072 | $as_echo "no" >&6; } |
3073 | fi |
3074 | |
3075 | |
3076 | test -n "$AWK" && break |
3077 | done |
3078 | |
3079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3080 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
3081 | set x ${MAKE-make} |
3082 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
3083 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then : |
3084 | $as_echo_n "(cached) " >&6 |
3085 | else |
3086 | cat >conftest.make <<\_ACEOF |
3087 | SHELL = /bin/sh |
3088 | all: |
3089 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
3090 | _ACEOF |
3091 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
3092 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
3093 | *@@@%%%=?*=@@@%%%*) |
3094 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
3095 | *) |
3096 | eval ac_cv_prog_make_${ac_make}_set=no;; |
3097 | esac |
3098 | rm -f conftest.make |
3099 | fi |
3100 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
3101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3102 | $as_echo "yes" >&6; } |
3103 | SET_MAKE= |
3104 | else |
3105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3106 | $as_echo "no" >&6; } |
3107 | SET_MAKE="MAKE=${MAKE-make}" |
3108 | fi |
3109 | |
3110 | rm -rf .tst 2>/dev/null |
3111 | mkdir .tst 2>/dev/null |
3112 | if test -d .tst; then |
3113 | am__leading_dot=. |
3114 | else |
3115 | am__leading_dot=_ |
3116 | fi |
3117 | rmdir .tst 2>/dev/null |
3118 | |
3119 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
3120 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
3121 | # is not polluted with repeated "-I." |
3122 | am__isrc=' -I$(srcdir)' |
3123 | # test to see if srcdir already configured |
3124 | if test -f $srcdir/config.status; then |
3125 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
3126 | fi |
3127 | fi |
3128 | |
3129 | # test whether we have cygpath |
3130 | if test -z "$CYGPATH_W"; then |
3131 | if (cygpath --version) >/dev/null 2>/dev/null; then |
3132 | CYGPATH_W='cygpath -w' |
3133 | else |
3134 | CYGPATH_W=echo |
3135 | fi |
3136 | fi |
3137 | |
3138 | |
3139 | # Define the identity of the package. |
3140 | PACKAGE=${PACKAGE_NAME} |
3141 | VERSION=${PACKAGE_VERSION} |
3142 | |
3143 | |
3144 | cat >>confdefs.h <<_ACEOF |
3145 | #define PACKAGE "$PACKAGE" |
3146 | _ACEOF |
3147 | |
3148 | |
3149 | cat >>confdefs.h <<_ACEOF |
3150 | #define VERSION "$VERSION" |
3151 | _ACEOF |
3152 | |
3153 | # Some tools Automake needs. |
3154 | |
3155 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
3156 | |
3157 | |
3158 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
3159 | |
3160 | |
3161 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
3162 | |
3163 | |
3164 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
3165 | |
3166 | |
3167 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
3168 | |
3169 | # We need awk for the "check" target. The system "awk" is bad on |
3170 | # some platforms. |
3171 | # Always define AMTAR for backward compatibility. |
3172 | |
3173 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
3174 | |
3175 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
3176 | |
3177 | |
3178 | |
3179 | |
3180 | |
3181 | ac_config_headers="$ac_config_headers config.h" |
3182 | |
3183 | |
3184 | |
3185 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
3186 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } |
3187 | # Check whether --enable-maintainer-mode was given. |
3188 | if test "${enable_maintainer_mode+set}" = set; then : |
3189 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
3190 | else |
3191 | USE_MAINTAINER_MODE=no |
3192 | fi |
3193 | |
3194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
3195 | $as_echo "$USE_MAINTAINER_MODE" >&6; } |
3196 | if test $USE_MAINTAINER_MODE = yes; then |
3197 | MAINTAINER_MODE_TRUE= |
3198 | MAINTAINER_MODE_FALSE='#' |
3199 | else |
3200 | MAINTAINER_MODE_TRUE='#' |
3201 | MAINTAINER_MODE_FALSE= |
3202 | fi |
3203 | |
3204 | MAINT=$MAINTAINER_MODE_TRUE |
3205 | |
3206 | |
3207 | |
3208 | # Options |
3209 | # Check whether --enable-debug was given. |
3210 | if test "${enable_debug+set}" = set; then : |
3211 | enableval=$enable_debug; |
3212 | else |
3213 | enable_debug="no" |
3214 | |
3215 | fi |
3216 | |
3217 | |
3218 | # Check whether --enable-warnings was given. |
3219 | if test "${enable_warnings+set}" = set; then : |
3220 | enableval=$enable_warnings; |
3221 | else |
3222 | enable_warnings="no" |
3223 | |
3224 | fi |
3225 | |
3226 | |
3227 | # Check whether --enable-pedantic was given. |
3228 | if test "${enable_pedantic+set}" = set; then : |
3229 | enableval=$enable_pedantic; |
3230 | else |
3231 | enable_pedantic="no" |
3232 | |
3233 | fi |
3234 | |
3235 | |
3236 | # Check whether --enable-really-static was given. |
3237 | if test "${enable_really_static+set}" = set; then : |
3238 | enableval=$enable_really_static; |
3239 | else |
3240 | enable_really_static="no" |
3241 | |
3242 | fi |
3243 | |
3244 | |
3245 | # Check whether --enable-mount-helper was given. |
3246 | if test "${enable_mount_helper+set}" = set; then : |
3247 | enableval=$enable_mount_helper; |
3248 | else |
3249 | |
3250 | case "${target_os}" in |
3251 | linux*) enable_mount_helper="yes" ;; |
3252 | *) enable_mount_helper="no" ;; |
3253 | esac |
3254 | |
3255 | |
3256 | fi |
3257 | |
3258 | |
3259 | # Check whether --enable-ldscript was given. |
3260 | if test "${enable_ldscript+set}" = set; then : |
3261 | enableval=$enable_ldscript; |
3262 | else |
3263 | enable_ldscript="no" |
3264 | |
3265 | fi |
3266 | |
3267 | |
3268 | # Check whether --enable-ldconfig was given. |
3269 | if test "${enable_ldconfig+set}" = set; then : |
3270 | enableval=$enable_ldconfig; |
3271 | else |
3272 | enable_ldconfig="yes" |
3273 | |
3274 | fi |
3275 | |
3276 | |
3277 | # Check whether --enable-library was given. |
3278 | if test "${enable_library+set}" = set; then : |
3279 | enableval=$enable_library; |
3280 | else |
3281 | enable_library="yes" |
3282 | |
3283 | fi |
3284 | |
3285 | |
3286 | # Check whether --enable-mtab was given. |
3287 | if test "${enable_mtab+set}" = set; then : |
3288 | enableval=$enable_mtab; |
3289 | else |
3290 | enable_mtab="yes" |
3291 | |
3292 | fi |
3293 | |
3294 | |
3295 | # Check whether --enable-posix-acls was given. |
3296 | if test "${enable_posix_acls+set}" = set; then : |
3297 | enableval=$enable_posix_acls; |
3298 | else |
3299 | enable_posix_acls="no" |
3300 | |
3301 | fi |
3302 | |
3303 | |
3304 | # Check whether --enable-xattr-mappings was given. |
3305 | if test "${enable_xattr_mappings+set}" = set; then : |
3306 | enableval=$enable_xattr_mappings; |
3307 | else |
3308 | enable_xattr_mappings="no" |
3309 | |
3310 | fi |
3311 | |
3312 | |
3313 | # Check whether --enable-device-default-io-ops was given. |
3314 | if test "${enable_device_default_io_ops+set}" = set; then : |
3315 | enableval=$enable_device_default_io_ops; |
3316 | else |
3317 | enable_device_default_io_ops="yes" |
3318 | |
3319 | fi |
3320 | |
3321 | |
3322 | # Check whether --enable-ntfs-3g was given. |
3323 | if test "${enable_ntfs_3g+set}" = set; then : |
3324 | enableval=$enable_ntfs_3g; |
3325 | else |
3326 | enable_ntfs_3g="yes" |
3327 | |
3328 | fi |
3329 | |
3330 | |
3331 | # Check whether --enable-ntfsprogs was given. |
3332 | if test "${enable_ntfsprogs+set}" = set; then : |
3333 | enableval=$enable_ntfsprogs; |
3334 | else |
3335 | enable_ntfsprogs="yes" |
3336 | |
3337 | fi |
3338 | |
3339 | |
3340 | # Check whether --enable-crypto was given. |
3341 | if test "${enable_crypto+set}" = set; then : |
3342 | enableval=$enable_crypto; |
3343 | else |
3344 | enable_crypto=no |
3345 | |
3346 | fi |
3347 | |
3348 | |
3349 | # Check whether --enable-extras was given. |
3350 | if test "${enable_extras+set}" = set; then : |
3351 | enableval=$enable_extras; |
3352 | else |
3353 | enable_extras="no" |
3354 | |
3355 | fi |
3356 | |
3357 | |
3358 | # Check whether --enable-nfconv was given. |
3359 | if test "${enable_nfconv+set}" = set; then : |
3360 | enableval=$enable_nfconv; enable_nfconv="no" |
3361 | else |
3362 | |
3363 | case "${target_os}" in |
3364 | darwin*) enable_nfconv="yes" ;; |
3365 | *) enable_nfconv="no" ;; |
3366 | esac |
3367 | |
3368 | |
3369 | fi |
3370 | |
3371 | |
3372 | # pthread_rwlock_t requires _GNU_SOURCE |
3373 | DEPDIR="${am__leading_dot}deps" |
3374 | |
3375 | ac_config_commands="$ac_config_commands depfiles" |
3376 | |
3377 | |
3378 | am_make=${MAKE-make} |
3379 | cat > confinc << 'END' |
3380 | am__doit: |
3381 | @echo this is the am__doit target |
3382 | .PHONY: am__doit |
3383 | END |
3384 | # If we don't find an include directive, just comment out the code. |
3385 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
3386 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
3387 | am__include="#" |
3388 | am__quote= |
3389 | _am_result=none |
3390 | # First try GNU make style include. |
3391 | echo "include confinc" > confmf |
3392 | # Ignore all kinds of additional output from `make'. |
3393 | case `$am_make -s -f confmf 2> /dev/null` in #( |
3394 | *the\ am__doit\ target*) |
3395 | am__include=include |
3396 | am__quote= |
3397 | _am_result=GNU |
3398 | ;; |
3399 | esac |
3400 | # Now try BSD make style include. |
3401 | if test "$am__include" = "#"; then |
3402 | echo '.include "confinc"' > confmf |
3403 | case `$am_make -s -f confmf 2> /dev/null` in #( |
3404 | *the\ am__doit\ target*) |
3405 | am__include=.include |
3406 | am__quote="\"" |
3407 | _am_result=BSD |
3408 | ;; |
3409 | esac |
3410 | fi |
3411 | |
3412 | |
3413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
3414 | $as_echo "$_am_result" >&6; } |
3415 | rm -f confinc confmf |
3416 | |
3417 | # Check whether --enable-dependency-tracking was given. |
3418 | if test "${enable_dependency_tracking+set}" = set; then : |
3419 | enableval=$enable_dependency_tracking; |
3420 | fi |
3421 | |
3422 | if test "x$enable_dependency_tracking" != xno; then |
3423 | am_depcomp="$ac_aux_dir/depcomp" |
3424 | AMDEPBACKSLASH='\' |
3425 | fi |
3426 | if test "x$enable_dependency_tracking" != xno; then |
3427 | AMDEP_TRUE= |
3428 | AMDEP_FALSE='#' |
3429 | else |
3430 | AMDEP_TRUE='#' |
3431 | AMDEP_FALSE= |
3432 | fi |
3433 | |
3434 | |
3435 | ac_ext=c |
3436 | ac_cpp='$CPP $CPPFLAGS' |
3437 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3438 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3439 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3440 | if test -n "$ac_tool_prefix"; then |
3441 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
3442 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
3443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3444 | $as_echo_n "checking for $ac_word... " >&6; } |
3445 | if test "${ac_cv_prog_CC+set}" = set; then : |
3446 | $as_echo_n "(cached) " >&6 |
3447 | else |
3448 | if test -n "$CC"; then |
3449 | ac_cv_prog_CC="$CC" # Let the user override the test. |
3450 | else |
3451 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3452 | for as_dir in $PATH |
3453 | do |
3454 | IFS=$as_save_IFS |
3455 | test -z "$as_dir" && as_dir=. |
3456 | for ac_exec_ext in '' $ac_executable_extensions; do |
3457 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3458 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
3459 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3460 | break 2 |
3461 | fi |
3462 | done |
3463 | done |
3464 | IFS=$as_save_IFS |
3465 | |
3466 | fi |
3467 | fi |
3468 | CC=$ac_cv_prog_CC |
3469 | if test -n "$CC"; then |
3470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3471 | $as_echo "$CC" >&6; } |
3472 | else |
3473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3474 | $as_echo "no" >&6; } |
3475 | fi |
3476 | |
3477 | |
3478 | fi |
3479 | if test -z "$ac_cv_prog_CC"; then |
3480 | ac_ct_CC=$CC |
3481 | # Extract the first word of "gcc", so it can be a program name with args. |
3482 | set dummy gcc; ac_word=$2 |
3483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3484 | $as_echo_n "checking for $ac_word... " >&6; } |
3485 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
3486 | $as_echo_n "(cached) " >&6 |
3487 | else |
3488 | if test -n "$ac_ct_CC"; then |
3489 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
3490 | else |
3491 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3492 | for as_dir in $PATH |
3493 | do |
3494 | IFS=$as_save_IFS |
3495 | test -z "$as_dir" && as_dir=. |
3496 | for ac_exec_ext in '' $ac_executable_extensions; do |
3497 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3498 | ac_cv_prog_ac_ct_CC="gcc" |
3499 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3500 | break 2 |
3501 | fi |
3502 | done |
3503 | done |
3504 | IFS=$as_save_IFS |
3505 | |
3506 | fi |
3507 | fi |
3508 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3509 | if test -n "$ac_ct_CC"; then |
3510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3511 | $as_echo "$ac_ct_CC" >&6; } |
3512 | else |
3513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3514 | $as_echo "no" >&6; } |
3515 | fi |
3516 | |
3517 | if test "x$ac_ct_CC" = x; then |
3518 | CC="" |
3519 | else |
3520 | case $cross_compiling:$ac_tool_warned in |
3521 | yes:) |
3522 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
3523 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
3524 | ac_tool_warned=yes ;; |
3525 | esac |
3526 | CC=$ac_ct_CC |
3527 | fi |
3528 | else |
3529 | CC="$ac_cv_prog_CC" |
3530 | fi |
3531 | |
3532 | if test -z "$CC"; then |
3533 | if test -n "$ac_tool_prefix"; then |
3534 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
3535 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
3536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3537 | $as_echo_n "checking for $ac_word... " >&6; } |
3538 | if test "${ac_cv_prog_CC+set}" = set; then : |
3539 | $as_echo_n "(cached) " >&6 |
3540 | else |
3541 | if test -n "$CC"; then |
3542 | ac_cv_prog_CC="$CC" # Let the user override the test. |
3543 | else |
3544 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3545 | for as_dir in $PATH |
3546 | do |
3547 | IFS=$as_save_IFS |
3548 | test -z "$as_dir" && as_dir=. |
3549 | for ac_exec_ext in '' $ac_executable_extensions; do |
3550 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3551 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
3552 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3553 | break 2 |
3554 | fi |
3555 | done |
3556 | done |
3557 | IFS=$as_save_IFS |
3558 | |
3559 | fi |
3560 | fi |
3561 | CC=$ac_cv_prog_CC |
3562 | if test -n "$CC"; then |
3563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3564 | $as_echo "$CC" >&6; } |
3565 | else |
3566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3567 | $as_echo "no" >&6; } |
3568 | fi |
3569 | |
3570 | |
3571 | fi |
3572 | fi |
3573 | if test -z "$CC"; then |
3574 | # Extract the first word of "cc", so it can be a program name with args. |
3575 | set dummy cc; ac_word=$2 |
3576 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3577 | $as_echo_n "checking for $ac_word... " >&6; } |
3578 | if test "${ac_cv_prog_CC+set}" = set; then : |
3579 | $as_echo_n "(cached) " >&6 |
3580 | else |
3581 | if test -n "$CC"; then |
3582 | ac_cv_prog_CC="$CC" # Let the user override the test. |
3583 | else |
3584 | ac_prog_rejected=no |
3585 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3586 | for as_dir in $PATH |
3587 | do |
3588 | IFS=$as_save_IFS |
3589 | test -z "$as_dir" && as_dir=. |
3590 | for ac_exec_ext in '' $ac_executable_extensions; do |
3591 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3592 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3593 | ac_prog_rejected=yes |
3594 | continue |
3595 | fi |
3596 | ac_cv_prog_CC="cc" |
3597 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3598 | break 2 |
3599 | fi |
3600 | done |
3601 | done |
3602 | IFS=$as_save_IFS |
3603 | |
3604 | if test $ac_prog_rejected = yes; then |
3605 | # We found a bogon in the path, so make sure we never use it. |
3606 | set dummy $ac_cv_prog_CC |
3607 | shift |
3608 | if test $# != 0; then |
3609 | # We chose a different compiler from the bogus one. |
3610 | # However, it has the same basename, so the bogon will be chosen |
3611 | # first if we set CC to just the basename; use the full file name. |
3612 | shift |
3613 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
3614 | fi |
3615 | fi |
3616 | fi |
3617 | fi |
3618 | CC=$ac_cv_prog_CC |
3619 | if test -n "$CC"; then |
3620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3621 | $as_echo "$CC" >&6; } |
3622 | else |
3623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3624 | $as_echo "no" >&6; } |
3625 | fi |
3626 | |
3627 | |
3628 | fi |
3629 | if test -z "$CC"; then |
3630 | if test -n "$ac_tool_prefix"; then |
3631 | for ac_prog in cl.exe |
3632 | do |
3633 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
3634 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
3635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3636 | $as_echo_n "checking for $ac_word... " >&6; } |
3637 | if test "${ac_cv_prog_CC+set}" = set; then : |
3638 | $as_echo_n "(cached) " >&6 |
3639 | else |
3640 | if test -n "$CC"; then |
3641 | ac_cv_prog_CC="$CC" # Let the user override the test. |
3642 | else |
3643 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3644 | for as_dir in $PATH |
3645 | do |
3646 | IFS=$as_save_IFS |
3647 | test -z "$as_dir" && as_dir=. |
3648 | for ac_exec_ext in '' $ac_executable_extensions; do |
3649 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3650 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
3651 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3652 | break 2 |
3653 | fi |
3654 | done |
3655 | done |
3656 | IFS=$as_save_IFS |
3657 | |
3658 | fi |
3659 | fi |
3660 | CC=$ac_cv_prog_CC |
3661 | if test -n "$CC"; then |
3662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3663 | $as_echo "$CC" >&6; } |
3664 | else |
3665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3666 | $as_echo "no" >&6; } |
3667 | fi |
3668 | |
3669 | |
3670 | test -n "$CC" && break |
3671 | done |
3672 | fi |
3673 | if test -z "$CC"; then |
3674 | ac_ct_CC=$CC |
3675 | for ac_prog in cl.exe |
3676 | do |
3677 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
3678 | set dummy $ac_prog; ac_word=$2 |
3679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3680 | $as_echo_n "checking for $ac_word... " >&6; } |
3681 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
3682 | $as_echo_n "(cached) " >&6 |
3683 | else |
3684 | if test -n "$ac_ct_CC"; then |
3685 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
3686 | else |
3687 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3688 | for as_dir in $PATH |
3689 | do |
3690 | IFS=$as_save_IFS |
3691 | test -z "$as_dir" && as_dir=. |
3692 | for ac_exec_ext in '' $ac_executable_extensions; do |
3693 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3694 | ac_cv_prog_ac_ct_CC="$ac_prog" |
3695 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3696 | break 2 |
3697 | fi |
3698 | done |
3699 | done |
3700 | IFS=$as_save_IFS |
3701 | |
3702 | fi |
3703 | fi |
3704 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3705 | if test -n "$ac_ct_CC"; then |
3706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3707 | $as_echo "$ac_ct_CC" >&6; } |
3708 | else |
3709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3710 | $as_echo "no" >&6; } |
3711 | fi |
3712 | |
3713 | |
3714 | test -n "$ac_ct_CC" && break |
3715 | done |
3716 | |
3717 | if test "x$ac_ct_CC" = x; then |
3718 | CC="" |
3719 | else |
3720 | case $cross_compiling:$ac_tool_warned in |
3721 | yes:) |
3722 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
3723 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
3724 | ac_tool_warned=yes ;; |
3725 | esac |
3726 | CC=$ac_ct_CC |
3727 | fi |
3728 | fi |
3729 | |
3730 | fi |
3731 | |
3732 | |
3733 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3734 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3735 | as_fn_error $? "no acceptable C compiler found in \$PATH |
3736 | See \`config.log' for more details" "$LINENO" 5 ; } |
3737 | |
3738 | # Provide some information about the compiler. |
3739 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
3740 | set X $ac_compile |
3741 | ac_compiler=$2 |
3742 | for ac_option in --version -v -V -qversion; do |
3743 | { { ac_try="$ac_compiler $ac_option >&5" |
3744 | case "(($ac_try" in |
3745 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3746 | *) ac_try_echo=$ac_try;; |
3747 | esac |
3748 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3749 | $as_echo "$ac_try_echo"; } >&5 |
3750 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
3751 | ac_status=$? |
3752 | if test -s conftest.err; then |
3753 | sed '10a\ |
3754 | ... rest of stderr output deleted ... |
3755 | 10q' conftest.err >conftest.er1 |
3756 | cat conftest.er1 >&5 |
3757 | fi |
3758 | rm -f conftest.er1 conftest.err |
3759 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3760 | test $ac_status = 0; } |
3761 | done |
3762 | |
3763 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3764 | /* end confdefs.h. */ |
3765 | |
3766 | int |
3767 | main () |
3768 | { |
3769 | |
3770 | ; |
3771 | return 0; |
3772 | } |
3773 | _ACEOF |
3774 | ac_clean_files_save=$ac_clean_files |
3775 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
3776 | # Try to create an executable without -o first, disregard a.out. |
3777 | # It will help us diagnose broken compilers, and finding out an intuition |
3778 | # of exeext. |
3779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3780 | $as_echo_n "checking whether the C compiler works... " >&6; } |
3781 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
3782 | |
3783 | # The possible output files: |
3784 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
3785 | |
3786 | ac_rmfiles= |
3787 | for ac_file in $ac_files |
3788 | do |
3789 | case $ac_file in |
3790 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
3791 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
3792 | esac |
3793 | done |
3794 | rm -f $ac_rmfiles |
3795 | |
3796 | if { { ac_try="$ac_link_default" |
3797 | case "(($ac_try" in |
3798 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3799 | *) ac_try_echo=$ac_try;; |
3800 | esac |
3801 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3802 | $as_echo "$ac_try_echo"; } >&5 |
3803 | (eval "$ac_link_default") 2>&5 |
3804 | ac_status=$? |
3805 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3806 | test $ac_status = 0; }; then : |
3807 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3808 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
3809 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
3810 | # so that the user can short-circuit this test for compilers unknown to |
3811 | # Autoconf. |
3812 | for ac_file in $ac_files '' |
3813 | do |
3814 | test -f "$ac_file" || continue |
3815 | case $ac_file in |
3816 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
3817 | ;; |
3818 | [ab].out ) |
3819 | # We found the default executable, but exeext='' is most |
3820 | # certainly right. |
3821 | break;; |
3822 | *.* ) |
3823 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
3824 | then :; else |
3825 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
3826 | fi |
3827 | # We set ac_cv_exeext here because the later test for it is not |
3828 | # safe: cross compilers may not add the suffix if given an `-o' |
3829 | # argument, so we may need to know it at that point already. |
3830 | # Even if this section looks crufty: it has the advantage of |
3831 | # actually working. |
3832 | break;; |
3833 | * ) |
3834 | break;; |
3835 | esac |
3836 | done |
3837 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3838 | |
3839 | else |
3840 | ac_file='' |
3841 | fi |
3842 | if test -z "$ac_file"; then : |
3843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3844 | $as_echo "no" >&6; } |
3845 | $as_echo "$as_me: failed program was:" >&5 |
3846 | sed 's/^/| /' conftest.$ac_ext >&5 |
3847 | |
3848 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3849 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3850 | as_fn_error 77 "C compiler cannot create executables |
3851 | See \`config.log' for more details" "$LINENO" 5 ; } |
3852 | else |
3853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3854 | $as_echo "yes" >&6; } |
3855 | fi |
3856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3857 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
3858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
3859 | $as_echo "$ac_file" >&6; } |
3860 | ac_exeext=$ac_cv_exeext |
3861 | |
3862 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
3863 | ac_clean_files=$ac_clean_files_save |
3864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
3865 | $as_echo_n "checking for suffix of executables... " >&6; } |
3866 | if { { ac_try="$ac_link" |
3867 | case "(($ac_try" in |
3868 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3869 | *) ac_try_echo=$ac_try;; |
3870 | esac |
3871 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3872 | $as_echo "$ac_try_echo"; } >&5 |
3873 | (eval "$ac_link") 2>&5 |
3874 | ac_status=$? |
3875 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3876 | test $ac_status = 0; }; then : |
3877 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
3878 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
3879 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
3880 | # `rm'. |
3881 | for ac_file in conftest.exe conftest conftest.*; do |
3882 | test -f "$ac_file" || continue |
3883 | case $ac_file in |
3884 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
3885 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
3886 | break;; |
3887 | * ) break;; |
3888 | esac |
3889 | done |
3890 | else |
3891 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3892 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3893 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
3894 | See \`config.log' for more details" "$LINENO" 5 ; } |
3895 | fi |
3896 | rm -f conftest conftest$ac_cv_exeext |
3897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3898 | $as_echo "$ac_cv_exeext" >&6; } |
3899 | |
3900 | rm -f conftest.$ac_ext |
3901 | EXEEXT=$ac_cv_exeext |
3902 | ac_exeext=$EXEEXT |
3903 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3904 | /* end confdefs.h. */ |
3905 | #include <stdio.h> |
3906 | int |
3907 | main () |
3908 | { |
3909 | FILE *f = fopen ("conftest.out", "w"); |
3910 | return ferror (f) || fclose (f) != 0; |
3911 | |
3912 | ; |
3913 | return 0; |
3914 | } |
3915 | _ACEOF |
3916 | ac_clean_files="$ac_clean_files conftest.out" |
3917 | # Check that the compiler produces executables we can run. If not, either |
3918 | # the compiler is broken, or we cross compile. |
3919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
3920 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
3921 | if test "$cross_compiling" != yes; then |
3922 | { { ac_try="$ac_link" |
3923 | case "(($ac_try" in |
3924 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3925 | *) ac_try_echo=$ac_try;; |
3926 | esac |
3927 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3928 | $as_echo "$ac_try_echo"; } >&5 |
3929 | (eval "$ac_link") 2>&5 |
3930 | ac_status=$? |
3931 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3932 | test $ac_status = 0; } |
3933 | if { ac_try='./conftest$ac_cv_exeext' |
3934 | { { case "(($ac_try" in |
3935 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3936 | *) ac_try_echo=$ac_try;; |
3937 | esac |
3938 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3939 | $as_echo "$ac_try_echo"; } >&5 |
3940 | (eval "$ac_try") 2>&5 |
3941 | ac_status=$? |
3942 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3943 | test $ac_status = 0; }; }; then |
3944 | cross_compiling=no |
3945 | else |
3946 | if test "$cross_compiling" = maybe; then |
3947 | cross_compiling=yes |
3948 | else |
3949 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3950 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3951 | as_fn_error $? "cannot run C compiled programs. |
3952 | If you meant to cross compile, use \`--host'. |
3953 | See \`config.log' for more details" "$LINENO" 5 ; } |
3954 | fi |
3955 | fi |
3956 | fi |
3957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
3958 | $as_echo "$cross_compiling" >&6; } |
3959 | |
3960 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
3961 | ac_clean_files=$ac_clean_files_save |
3962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3963 | $as_echo_n "checking for suffix of object files... " >&6; } |
3964 | if test "${ac_cv_objext+set}" = set; then : |
3965 | $as_echo_n "(cached) " >&6 |
3966 | else |
3967 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3968 | /* end confdefs.h. */ |
3969 | |
3970 | int |
3971 | main () |
3972 | { |
3973 | |
3974 | ; |
3975 | return 0; |
3976 | } |
3977 | _ACEOF |
3978 | rm -f conftest.o conftest.obj |
3979 | if { { ac_try="$ac_compile" |
3980 | case "(($ac_try" in |
3981 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3982 | *) ac_try_echo=$ac_try;; |
3983 | esac |
3984 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3985 | $as_echo "$ac_try_echo"; } >&5 |
3986 | (eval "$ac_compile") 2>&5 |
3987 | ac_status=$? |
3988 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3989 | test $ac_status = 0; }; then : |
3990 | for ac_file in conftest.o conftest.obj conftest.*; do |
3991 | test -f "$ac_file" || continue; |
3992 | case $ac_file in |
3993 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
3994 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3995 | break;; |
3996 | esac |
3997 | done |
3998 | else |
3999 | $as_echo "$as_me: failed program was:" >&5 |
4000 | sed 's/^/| /' conftest.$ac_ext >&5 |
4001 | |
4002 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4003 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
4004 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
4005 | See \`config.log' for more details" "$LINENO" 5 ; } |
4006 | fi |
4007 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4008 | fi |
4009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4010 | $as_echo "$ac_cv_objext" >&6; } |
4011 | OBJEXT=$ac_cv_objext |
4012 | ac_objext=$OBJEXT |
4013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4014 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
4015 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : |
4016 | $as_echo_n "(cached) " >&6 |
4017 | else |
4018 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4019 | /* end confdefs.h. */ |
4020 | |
4021 | int |
4022 | main () |
4023 | { |
4024 | #ifndef __GNUC__ |
4025 | choke me |
4026 | #endif |
4027 | |
4028 | ; |
4029 | return 0; |
4030 | } |
4031 | _ACEOF |
4032 | if ac_fn_c_try_compile "$LINENO"; then : |
4033 | ac_compiler_gnu=yes |
4034 | else |
4035 | ac_compiler_gnu=no |
4036 | fi |
4037 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4038 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4039 | |
4040 | fi |
4041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4042 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
4043 | if test $ac_compiler_gnu = yes; then |
4044 | GCC=yes |
4045 | else |
4046 | GCC= |
4047 | fi |
4048 | ac_test_CFLAGS=${CFLAGS+set} |
4049 | ac_save_CFLAGS=$CFLAGS |
4050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4051 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
4052 | if test "${ac_cv_prog_cc_g+set}" = set; then : |
4053 | $as_echo_n "(cached) " >&6 |
4054 | else |
4055 | ac_save_c_werror_flag=$ac_c_werror_flag |
4056 | ac_c_werror_flag=yes |
4057 | ac_cv_prog_cc_g=no |
4058 | CFLAGS="-g" |
4059 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4060 | /* end confdefs.h. */ |
4061 | |
4062 | int |
4063 | main () |
4064 | { |
4065 | |
4066 | ; |
4067 | return 0; |
4068 | } |
4069 | _ACEOF |
4070 | if ac_fn_c_try_compile "$LINENO"; then : |
4071 | ac_cv_prog_cc_g=yes |
4072 | else |
4073 | CFLAGS="" |
4074 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4075 | /* end confdefs.h. */ |
4076 | |
4077 | int |
4078 | main () |
4079 | { |
4080 | |
4081 | ; |
4082 | return 0; |
4083 | } |
4084 | _ACEOF |
4085 | if ac_fn_c_try_compile "$LINENO"; then : |
4086 | |
4087 | else |
4088 | ac_c_werror_flag=$ac_save_c_werror_flag |
4089 | CFLAGS="-g" |
4090 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4091 | /* end confdefs.h. */ |
4092 | |
4093 | int |
4094 | main () |
4095 | { |
4096 | |
4097 | ; |
4098 | return 0; |
4099 | } |
4100 | _ACEOF |
4101 | if ac_fn_c_try_compile "$LINENO"; then : |
4102 | ac_cv_prog_cc_g=yes |
4103 | fi |
4104 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4105 | fi |
4106 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4107 | fi |
4108 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4109 | ac_c_werror_flag=$ac_save_c_werror_flag |
4110 | fi |
4111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
4112 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
4113 | if test "$ac_test_CFLAGS" = set; then |
4114 | CFLAGS=$ac_save_CFLAGS |
4115 | elif test $ac_cv_prog_cc_g = yes; then |
4116 | if test "$GCC" = yes; then |
4117 | CFLAGS="-g -O2" |
4118 | else |
4119 | CFLAGS="-g" |
4120 | fi |
4121 | else |
4122 | if test "$GCC" = yes; then |
4123 | CFLAGS="-O2" |
4124 | else |
4125 | CFLAGS= |
4126 | fi |
4127 | fi |
4128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4129 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
4130 | if test "${ac_cv_prog_cc_c89+set}" = set; then : |
4131 | $as_echo_n "(cached) " >&6 |
4132 | else |
4133 | ac_cv_prog_cc_c89=no |
4134 | ac_save_CC=$CC |
4135 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4136 | /* end confdefs.h. */ |
4137 | #include <stdarg.h> |
4138 | #include <stdio.h> |
4139 | #include <sys/types.h> |
4140 | #include <sys/stat.h> |
4141 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
4142 | struct buf { int x; }; |
4143 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
4144 | static char *e (p, i) |
4145 | char **p; |
4146 | int i; |
4147 | { |
4148 | return p[i]; |
4149 | } |
4150 | static char *f (char * (*g) (char **, int), char **p, ...) |
4151 | { |
4152 | char *s; |
4153 | va_list v; |
4154 | va_start (v,p); |
4155 | s = g (p, va_arg (v,int)); |
4156 | va_end (v); |
4157 | return s; |
4158 | } |
4159 | |
4160 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
4161 | function prototypes and stuff, but not '\xHH' hex character constants. |
4162 | These don't provoke an error unfortunately, instead are silently treated |
4163 | as 'x'. The following induces an error, until -std is added to get |
4164 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4165 | array size at least. It's necessary to write '\x00'==0 to get something |
4166 | that's true only with -std. */ |
4167 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4168 | |
4169 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4170 | inside strings and character constants. */ |
4171 | #define FOO(x) 'x' |
4172 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
4173 | |
4174 | int test (int i, double x); |
4175 | struct s1 {int (*f) (int a);}; |
4176 | struct s2 {int (*f) (double a);}; |
4177 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
4178 | int argc; |
4179 | char **argv; |
4180 | int |
4181 | main () |
4182 | { |
4183 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
4184 | ; |
4185 | return 0; |
4186 | } |
4187 | _ACEOF |
4188 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4189 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
4190 | do |
4191 | CC="$ac_save_CC $ac_arg" |
4192 | if ac_fn_c_try_compile "$LINENO"; then : |
4193 | ac_cv_prog_cc_c89=$ac_arg |
4194 | fi |
4195 | rm -f core conftest.err conftest.$ac_objext |
4196 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
4197 | done |
4198 | rm -f conftest.$ac_ext |
4199 | CC=$ac_save_CC |
4200 | |
4201 | fi |
4202 | # AC_CACHE_VAL |
4203 | case "x$ac_cv_prog_cc_c89" in |
4204 | x) |
4205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
4206 | $as_echo "none needed" >&6; } ;; |
4207 | xno) |
4208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
4209 | $as_echo "unsupported" >&6; } ;; |
4210 | *) |
4211 | CC="$CC $ac_cv_prog_cc_c89" |
4212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
4213 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
4214 | esac |
4215 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
4216 | |
4217 | fi |
4218 | |
4219 | ac_ext=c |
4220 | ac_cpp='$CPP $CPPFLAGS' |
4221 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4222 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4223 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4224 | |
4225 | depcc="$CC" am_compiler_list= |
4226 | |
4227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
4228 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
4229 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : |
4230 | $as_echo_n "(cached) " >&6 |
4231 | else |
4232 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
4233 | # We make a subdir and do the tests there. Otherwise we can end up |
4234 | # making bogus files that we don't know about and never remove. For |
4235 | # instance it was reported that on HP-UX the gcc test will end up |
4236 | # making a dummy file named `D' -- because `-MD' means `put the output |
4237 | # in D'. |
4238 | mkdir conftest.dir |
4239 | # Copy depcomp to subdir because otherwise we won't find it if we're |
4240 | # using a relative directory. |
4241 | cp "$am_depcomp" conftest.dir |
4242 | cd conftest.dir |
4243 | # We will build objects and dependencies in a subdirectory because |
4244 | # it helps to detect inapplicable dependency modes. For instance |
4245 | # both Tru64's cc and ICC support -MD to output dependencies as a |
4246 | # side effect of compilation, but ICC will put the dependencies in |
4247 | # the current directory while Tru64 will put them in the object |
4248 | # directory. |
4249 | mkdir sub |
4250 | |
4251 | am_cv_CC_dependencies_compiler_type=none |
4252 | if test "$am_compiler_list" = ""; then |
4253 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
4254 | fi |
4255 | am__universal=false |
4256 | case " $depcc " in #( |
4257 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
4258 | esac |
4259 | |
4260 | for depmode in $am_compiler_list; do |
4261 | # Setup a source with many dependencies, because some compilers |
4262 | # like to wrap large dependency lists on column 80 (with \), and |
4263 | # we should not choose a depcomp mode which is confused by this. |
4264 | # |
4265 | # We need to recreate these files for each test, as the compiler may |
4266 | # overwrite some of them when testing with obscure command lines. |
4267 | # This happens at least with the AIX C compiler. |
4268 | : > sub/conftest.c |
4269 | for i in 1 2 3 4 5 6; do |
4270 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
4271 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
4272 | # Solaris 8's {/usr,}/bin/sh. |
4273 | touch sub/conftst$i.h |
4274 | done |
4275 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
4276 | |
4277 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
4278 | # mode. It turns out that the SunPro C++ compiler does not properly |
4279 | # handle `-M -o', and we need to detect this. Also, some Intel |
4280 | # versions had trouble with output in subdirs |
4281 | am__obj=sub/conftest.${OBJEXT-o} |
4282 | am__minus_obj="-o $am__obj" |
4283 | case $depmode in |
4284 | gcc) |
4285 | # This depmode causes a compiler race in universal mode. |
4286 | test "$am__universal" = false || continue |
4287 | ;; |
4288 | nosideeffect) |
4289 | # after this tag, mechanisms are not by side-effect, so they'll |
4290 | # only be used when explicitly requested |
4291 | if test "x$enable_dependency_tracking" = xyes; then |
4292 | continue |
4293 | else |
4294 | break |
4295 | fi |
4296 | ;; |
4297 | msvisualcpp | msvcmsys) |
4298 | # This compiler won't grok `-c -o', but also, the minuso test has |
4299 | # not run yet. These depmodes are late enough in the game, and |
4300 | # so weak that their functioning should not be impacted. |
4301 | am__obj=conftest.${OBJEXT-o} |
4302 | am__minus_obj= |
4303 | ;; |
4304 | none) break ;; |
4305 | esac |
4306 | if depmode=$depmode \ |
4307 | source=sub/conftest.c object=$am__obj \ |
4308 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
4309 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
4310 | >/dev/null 2>conftest.err && |
4311 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
4312 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
4313 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
4314 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
4315 | # icc doesn't choke on unknown options, it will just issue warnings |
4316 | # or remarks (even with -Werror). So we grep stderr for any message |
4317 | # that says an option was ignored or not supported. |
4318 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
4319 | # icc: Command line warning: ignoring option '-M'; no argument required |
4320 | # The diagnosis changed in icc 8.0: |
4321 | # icc: Command line remark: option '-MP' not supported |
4322 | if (grep 'ignoring option' conftest.err || |
4323 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
4324 | am_cv_CC_dependencies_compiler_type=$depmode |
4325 | break |
4326 | fi |
4327 | fi |
4328 | done |
4329 | |
4330 | cd .. |
4331 | rm -rf conftest.dir |
4332 | else |
4333 | am_cv_CC_dependencies_compiler_type=none |
4334 | fi |
4335 | |
4336 | fi |
4337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
4338 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
4339 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
4340 | |
4341 | if |
4342 | test "x$enable_dependency_tracking" != xno \ |
4343 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
4344 | am__fastdepCC_TRUE= |
4345 | am__fastdepCC_FALSE='#' |
4346 | else |
4347 | am__fastdepCC_TRUE='#' |
4348 | am__fastdepCC_FALSE= |
4349 | fi |
4350 | |
4351 | |
4352 | |
4353 | ac_ext=c |
4354 | ac_cpp='$CPP $CPPFLAGS' |
4355 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4356 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4357 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
4359 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
4360 | # On Suns, sometimes $CPP names a directory. |
4361 | if test -n "$CPP" && test -d "$CPP"; then |
4362 | CPP= |
4363 | fi |
4364 | if test -z "$CPP"; then |
4365 | if test "${ac_cv_prog_CPP+set}" = set; then : |
4366 | $as_echo_n "(cached) " >&6 |
4367 | else |
4368 | # Double quotes because CPP needs to be expanded |
4369 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
4370 | do |
4371 | ac_preproc_ok=false |
4372 | for ac_c_preproc_warn_flag in '' yes |
4373 | do |
4374 | # Use a header file that comes with gcc, so configuring glibc |
4375 | # with a fresh cross-compiler works. |
4376 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4377 | # <limits.h> exists even on freestanding compilers. |
4378 | # On the NeXT, cc -E runs the code through the compiler's parser, |
4379 | # not just through cpp. "Syntax error" is here to catch this case. |
4380 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4381 | /* end confdefs.h. */ |
4382 | #ifdef __STDC__ |
4383 | # include <limits.h> |
4384 | #else |
4385 | # include <assert.h> |
4386 | #endif |
4387 | Syntax error |
4388 | _ACEOF |
4389 | if ac_fn_c_try_cpp "$LINENO"; then : |
4390 | |
4391 | else |
4392 | # Broken: fails on valid input. |
4393 | continue |
4394 | fi |
4395 | rm -f conftest.err conftest.i conftest.$ac_ext |
4396 | |
4397 | # OK, works on sane cases. Now check whether nonexistent headers |
4398 | # can be detected and how. |
4399 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4400 | /* end confdefs.h. */ |
4401 | #include <ac_nonexistent.h> |
4402 | _ACEOF |
4403 | if ac_fn_c_try_cpp "$LINENO"; then : |
4404 | # Broken: success on invalid input. |
4405 | continue |
4406 | else |
4407 | # Passes both tests. |
4408 | ac_preproc_ok=: |
4409 | break |
4410 | fi |
4411 | rm -f conftest.err conftest.i conftest.$ac_ext |
4412 | |
4413 | done |
4414 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4415 | rm -f conftest.i conftest.err conftest.$ac_ext |
4416 | if $ac_preproc_ok; then : |
4417 | break |
4418 | fi |
4419 | |
4420 | done |
4421 | ac_cv_prog_CPP=$CPP |
4422 | |
4423 | fi |
4424 | CPP=$ac_cv_prog_CPP |
4425 | else |
4426 | ac_cv_prog_CPP=$CPP |
4427 | fi |
4428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
4429 | $as_echo "$CPP" >&6; } |
4430 | ac_preproc_ok=false |
4431 | for ac_c_preproc_warn_flag in '' yes |
4432 | do |
4433 | # Use a header file that comes with gcc, so configuring glibc |
4434 | # with a fresh cross-compiler works. |
4435 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4436 | # <limits.h> exists even on freestanding compilers. |
4437 | # On the NeXT, cc -E runs the code through the compiler's parser, |
4438 | # not just through cpp. "Syntax error" is here to catch this case. |
4439 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4440 | /* end confdefs.h. */ |
4441 | #ifdef __STDC__ |
4442 | # include <limits.h> |
4443 | #else |
4444 | # include <assert.h> |
4445 | #endif |
4446 | Syntax error |
4447 | _ACEOF |
4448 | if ac_fn_c_try_cpp "$LINENO"; then : |
4449 | |
4450 | else |
4451 | # Broken: fails on valid input. |
4452 | continue |
4453 | fi |
4454 | rm -f conftest.err conftest.i conftest.$ac_ext |
4455 | |
4456 | # OK, works on sane cases. Now check whether nonexistent headers |
4457 | # can be detected and how. |
4458 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4459 | /* end confdefs.h. */ |
4460 | #include <ac_nonexistent.h> |
4461 | _ACEOF |
4462 | if ac_fn_c_try_cpp "$LINENO"; then : |
4463 | # Broken: success on invalid input. |
4464 | continue |
4465 | else |
4466 | # Passes both tests. |
4467 | ac_preproc_ok=: |
4468 | break |
4469 | fi |
4470 | rm -f conftest.err conftest.i conftest.$ac_ext |
4471 | |
4472 | done |
4473 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4474 | rm -f conftest.i conftest.err conftest.$ac_ext |
4475 | if $ac_preproc_ok; then : |
4476 | |
4477 | else |
4478 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4479 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
4480 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
4481 | See \`config.log' for more details" "$LINENO" 5 ; } |
4482 | fi |
4483 | |
4484 | ac_ext=c |
4485 | ac_cpp='$CPP $CPPFLAGS' |
4486 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4487 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4488 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4489 | |
4490 | |
4491 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
4492 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
4493 | if test "${ac_cv_path_GREP+set}" = set; then : |
4494 | $as_echo_n "(cached) " >&6 |
4495 | else |
4496 | if test -z "$GREP"; then |
4497 | ac_path_GREP_found=false |
4498 | # Loop through the user's path and test for each of PROGNAME-LIST |
4499 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4500 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4501 | do |
4502 | IFS=$as_save_IFS |
4503 | test -z "$as_dir" && as_dir=. |
4504 | for ac_prog in grep ggrep; do |
4505 | for ac_exec_ext in '' $ac_executable_extensions; do |
4506 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
4507 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
4508 | # Check for GNU ac_path_GREP and select it if it is found. |
4509 | # Check for GNU $ac_path_GREP |
4510 | case `"$ac_path_GREP" --version 2>&1` in |
4511 | *GNU*) |
4512 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
4513 | *) |
4514 | ac_count=0 |
4515 | $as_echo_n 0123456789 >"conftest.in" |
4516 | while : |
4517 | do |
4518 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
4519 | mv "conftest.tmp" "conftest.in" |
4520 | cp "conftest.in" "conftest.nl" |
4521 | $as_echo 'GREP' >> "conftest.nl" |
4522 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4523 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
4524 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
4525 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
4526 | # Best one so far, save it but keep looking for a better one |
4527 | ac_cv_path_GREP="$ac_path_GREP" |
4528 | ac_path_GREP_max=$ac_count |
4529 | fi |
4530 | # 10*(2^10) chars as input seems more than enough |
4531 | test $ac_count -gt 10 && break |
4532 | done |
4533 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
4534 | esac |
4535 | |
4536 | $ac_path_GREP_found && break 3 |
4537 | done |
4538 | done |
4539 | done |
4540 | IFS=$as_save_IFS |
4541 | if test -z "$ac_cv_path_GREP"; then |
4542 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
4543 | fi |
4544 | else |
4545 | ac_cv_path_GREP=$GREP |
4546 | fi |
4547 | |
4548 | fi |
4549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
4550 | $as_echo "$ac_cv_path_GREP" >&6; } |
4551 | GREP="$ac_cv_path_GREP" |
4552 | |
4553 | |
4554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
4555 | $as_echo_n "checking for egrep... " >&6; } |
4556 | if test "${ac_cv_path_EGREP+set}" = set; then : |
4557 | $as_echo_n "(cached) " >&6 |
4558 | else |
4559 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
4560 | then ac_cv_path_EGREP="$GREP -E" |
4561 | else |
4562 | if test -z "$EGREP"; then |
4563 | ac_path_EGREP_found=false |
4564 | # Loop through the user's path and test for each of PROGNAME-LIST |
4565 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4566 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4567 | do |
4568 | IFS=$as_save_IFS |
4569 | test -z "$as_dir" && as_dir=. |
4570 | for ac_prog in egrep; do |
4571 | for ac_exec_ext in '' $ac_executable_extensions; do |
4572 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
4573 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
4574 | # Check for GNU ac_path_EGREP and select it if it is found. |
4575 | # Check for GNU $ac_path_EGREP |
4576 | case `"$ac_path_EGREP" --version 2>&1` in |
4577 | *GNU*) |
4578 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
4579 | *) |
4580 | ac_count=0 |
4581 | $as_echo_n 0123456789 >"conftest.in" |
4582 | while : |
4583 | do |
4584 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
4585 | mv "conftest.tmp" "conftest.in" |
4586 | cp "conftest.in" "conftest.nl" |
4587 | $as_echo 'EGREP' >> "conftest.nl" |
4588 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4589 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
4590 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
4591 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
4592 | # Best one so far, save it but keep looking for a better one |
4593 | ac_cv_path_EGREP="$ac_path_EGREP" |
4594 | ac_path_EGREP_max=$ac_count |
4595 | fi |
4596 | # 10*(2^10) chars as input seems more than enough |
4597 | test $ac_count -gt 10 && break |
4598 | done |
4599 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
4600 | esac |
4601 | |
4602 | $ac_path_EGREP_found && break 3 |
4603 | done |
4604 | done |
4605 | done |
4606 | IFS=$as_save_IFS |
4607 | if test -z "$ac_cv_path_EGREP"; then |
4608 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
4609 | fi |
4610 | else |
4611 | ac_cv_path_EGREP=$EGREP |
4612 | fi |
4613 | |
4614 | fi |
4615 | fi |
4616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
4617 | $as_echo "$ac_cv_path_EGREP" >&6; } |
4618 | EGREP="$ac_cv_path_EGREP" |
4619 | |
4620 | |
4621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
4622 | $as_echo_n "checking for ANSI C header files... " >&6; } |
4623 | if test "${ac_cv_header_stdc+set}" = set; then : |
4624 | $as_echo_n "(cached) " >&6 |
4625 | else |
4626 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4627 | /* end confdefs.h. */ |
4628 | #include <stdlib.h> |
4629 | #include <stdarg.h> |
4630 | #include <string.h> |
4631 | #include <float.h> |
4632 | |
4633 | int |
4634 | main () |
4635 | { |
4636 | |
4637 | ; |
4638 | return 0; |
4639 | } |
4640 | _ACEOF |
4641 | if ac_fn_c_try_compile "$LINENO"; then : |
4642 | ac_cv_header_stdc=yes |
4643 | else |
4644 | ac_cv_header_stdc=no |
4645 | fi |
4646 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4647 | |
4648 | if test $ac_cv_header_stdc = yes; then |
4649 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
4650 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4651 | /* end confdefs.h. */ |
4652 | #include <string.h> |
4653 | |
4654 | _ACEOF |
4655 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4656 | $EGREP "memchr" >/dev/null 2>&1; then : |
4657 | |
4658 | else |
4659 | ac_cv_header_stdc=no |
4660 | fi |
4661 | rm -f conftest* |
4662 | |
4663 | fi |
4664 | |
4665 | if test $ac_cv_header_stdc = yes; then |
4666 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
4667 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4668 | /* end confdefs.h. */ |
4669 | #include <stdlib.h> |
4670 | |
4671 | _ACEOF |
4672 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4673 | $EGREP "free" >/dev/null 2>&1; then : |
4674 | |
4675 | else |
4676 | ac_cv_header_stdc=no |
4677 | fi |
4678 | rm -f conftest* |
4679 | |
4680 | fi |
4681 | |
4682 | if test $ac_cv_header_stdc = yes; then |
4683 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
4684 | if test "$cross_compiling" = yes; then : |
4685 | : |
4686 | else |
4687 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4688 | /* end confdefs.h. */ |
4689 | #include <ctype.h> |
4690 | #include <stdlib.h> |
4691 | #if ((' ' & 0x0FF) == 0x020) |
4692 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
4693 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
4694 | #else |
4695 | # define ISLOWER(c) \ |
4696 | (('a' <= (c) && (c) <= 'i') \ |
4697 | || ('j' <= (c) && (c) <= 'r') \ |
4698 | || ('s' <= (c) && (c) <= 'z')) |
4699 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
4700 | #endif |
4701 | |
4702 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4703 | int |
4704 | main () |
4705 | { |
4706 | int i; |
4707 | for (i = 0; i < 256; i++) |
4708 | if (XOR (islower (i), ISLOWER (i)) |
4709 | || toupper (i) != TOUPPER (i)) |
4710 | return 2; |
4711 | return 0; |
4712 | } |
4713 | _ACEOF |
4714 | if ac_fn_c_try_run "$LINENO"; then : |
4715 | |
4716 | else |
4717 | ac_cv_header_stdc=no |
4718 | fi |
4719 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4720 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
4721 | fi |
4722 | |
4723 | fi |
4724 | fi |
4725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
4726 | $as_echo "$ac_cv_header_stdc" >&6; } |
4727 | if test $ac_cv_header_stdc = yes; then |
4728 | |
4729 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
4730 | |
4731 | fi |
4732 | |
4733 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
4734 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
4735 | inttypes.h stdint.h unistd.h |
4736 | do : |
4737 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4738 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
4739 | " |
4740 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
4741 | cat >>confdefs.h <<_ACEOF |
4742 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
4743 | _ACEOF |
4744 | |
4745 | fi |
4746 | |
4747 | done |
4748 | |
4749 | |
4750 | |
4751 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
4752 | if test "x$ac_cv_header_minix_config_h" = x""yes; then : |
4753 | MINIX=yes |
4754 | else |
4755 | MINIX= |
4756 | fi |
4757 | |
4758 | |
4759 | if test "$MINIX" = yes; then |
4760 | |
4761 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
4762 | |
4763 | |
4764 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
4765 | |
4766 | |
4767 | $as_echo "#define _MINIX 1" >>confdefs.h |
4768 | |
4769 | fi |
4770 | |
4771 | |
4772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
4773 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } |
4774 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : |
4775 | $as_echo_n "(cached) " >&6 |
4776 | else |
4777 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4778 | /* end confdefs.h. */ |
4779 | |
4780 | # define __EXTENSIONS__ 1 |
4781 | $ac_includes_default |
4782 | int |
4783 | main () |
4784 | { |
4785 | |
4786 | ; |
4787 | return 0; |
4788 | } |
4789 | _ACEOF |
4790 | if ac_fn_c_try_compile "$LINENO"; then : |
4791 | ac_cv_safe_to_define___extensions__=yes |
4792 | else |
4793 | ac_cv_safe_to_define___extensions__=no |
4794 | fi |
4795 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4796 | fi |
4797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
4798 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } |
4799 | test $ac_cv_safe_to_define___extensions__ = yes && |
4800 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
4801 | |
4802 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
4803 | |
4804 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
4805 | |
4806 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
4807 | |
4808 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
4809 | |
4810 | |
4811 | |
4812 | |
4813 | # Programs |
4814 | ac_ext=c |
4815 | ac_cpp='$CPP $CPPFLAGS' |
4816 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4817 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4818 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4819 | if test -n "$ac_tool_prefix"; then |
4820 | for ac_prog in gcc cc |
4821 | do |
4822 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
4823 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
4824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4825 | $as_echo_n "checking for $ac_word... " >&6; } |
4826 | if test "${ac_cv_prog_CC+set}" = set; then : |
4827 | $as_echo_n "(cached) " >&6 |
4828 | else |
4829 | if test -n "$CC"; then |
4830 | ac_cv_prog_CC="$CC" # Let the user override the test. |
4831 | else |
4832 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4833 | for as_dir in $PATH |
4834 | do |
4835 | IFS=$as_save_IFS |
4836 | test -z "$as_dir" && as_dir=. |
4837 | for ac_exec_ext in '' $ac_executable_extensions; do |
4838 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4839 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
4840 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4841 | break 2 |
4842 | fi |
4843 | done |
4844 | done |
4845 | IFS=$as_save_IFS |
4846 | |
4847 | fi |
4848 | fi |
4849 | CC=$ac_cv_prog_CC |
4850 | if test -n "$CC"; then |
4851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4852 | $as_echo "$CC" >&6; } |
4853 | else |
4854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4855 | $as_echo "no" >&6; } |
4856 | fi |
4857 | |
4858 | |
4859 | test -n "$CC" && break |
4860 | done |
4861 | fi |
4862 | if test -z "$CC"; then |
4863 | ac_ct_CC=$CC |
4864 | for ac_prog in gcc cc |
4865 | do |
4866 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
4867 | set dummy $ac_prog; ac_word=$2 |
4868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4869 | $as_echo_n "checking for $ac_word... " >&6; } |
4870 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
4871 | $as_echo_n "(cached) " >&6 |
4872 | else |
4873 | if test -n "$ac_ct_CC"; then |
4874 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
4875 | else |
4876 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4877 | for as_dir in $PATH |
4878 | do |
4879 | IFS=$as_save_IFS |
4880 | test -z "$as_dir" && as_dir=. |
4881 | for ac_exec_ext in '' $ac_executable_extensions; do |
4882 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4883 | ac_cv_prog_ac_ct_CC="$ac_prog" |
4884 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4885 | break 2 |
4886 | fi |
4887 | done |
4888 | done |
4889 | IFS=$as_save_IFS |
4890 | |
4891 | fi |
4892 | fi |
4893 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4894 | if test -n "$ac_ct_CC"; then |
4895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4896 | $as_echo "$ac_ct_CC" >&6; } |
4897 | else |
4898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4899 | $as_echo "no" >&6; } |
4900 | fi |
4901 | |
4902 | |
4903 | test -n "$ac_ct_CC" && break |
4904 | done |
4905 | |
4906 | if test "x$ac_ct_CC" = x; then |
4907 | CC="" |
4908 | else |
4909 | case $cross_compiling:$ac_tool_warned in |
4910 | yes:) |
4911 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
4912 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
4913 | ac_tool_warned=yes ;; |
4914 | esac |
4915 | CC=$ac_ct_CC |
4916 | fi |
4917 | fi |
4918 | |
4919 | |
4920 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4921 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
4922 | as_fn_error $? "no acceptable C compiler found in \$PATH |
4923 | See \`config.log' for more details" "$LINENO" 5 ; } |
4924 | |
4925 | # Provide some information about the compiler. |
4926 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4927 | set X $ac_compile |
4928 | ac_compiler=$2 |
4929 | for ac_option in --version -v -V -qversion; do |
4930 | { { ac_try="$ac_compiler $ac_option >&5" |
4931 | case "(($ac_try" in |
4932 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4933 | *) ac_try_echo=$ac_try;; |
4934 | esac |
4935 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
4936 | $as_echo "$ac_try_echo"; } >&5 |
4937 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
4938 | ac_status=$? |
4939 | if test -s conftest.err; then |
4940 | sed '10a\ |
4941 | ... rest of stderr output deleted ... |
4942 | 10q' conftest.err >conftest.er1 |
4943 | cat conftest.er1 >&5 |
4944 | fi |
4945 | rm -f conftest.er1 conftest.err |
4946 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4947 | test $ac_status = 0; } |
4948 | done |
4949 | |
4950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4951 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
4952 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : |
4953 | $as_echo_n "(cached) " >&6 |
4954 | else |
4955 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4956 | /* end confdefs.h. */ |
4957 | |
4958 | int |
4959 | main () |
4960 | { |
4961 | #ifndef __GNUC__ |
4962 | choke me |
4963 | #endif |
4964 | |
4965 | ; |
4966 | return 0; |
4967 | } |
4968 | _ACEOF |
4969 | if ac_fn_c_try_compile "$LINENO"; then : |
4970 | ac_compiler_gnu=yes |
4971 | else |
4972 | ac_compiler_gnu=no |
4973 | fi |
4974 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4975 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4976 | |
4977 | fi |
4978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4979 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
4980 | if test $ac_compiler_gnu = yes; then |
4981 | GCC=yes |
4982 | else |
4983 | GCC= |
4984 | fi |
4985 | ac_test_CFLAGS=${CFLAGS+set} |
4986 | ac_save_CFLAGS=$CFLAGS |
4987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4988 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
4989 | if test "${ac_cv_prog_cc_g+set}" = set; then : |
4990 | $as_echo_n "(cached) " >&6 |
4991 | else |
4992 | ac_save_c_werror_flag=$ac_c_werror_flag |
4993 | ac_c_werror_flag=yes |
4994 | ac_cv_prog_cc_g=no |
4995 | CFLAGS="-g" |
4996 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4997 | /* end confdefs.h. */ |
4998 | |
4999 | int |
5000 | main () |
5001 | { |
5002 | |
5003 | ; |
5004 | return 0; |
5005 | } |
5006 | _ACEOF |
5007 | if ac_fn_c_try_compile "$LINENO"; then : |
5008 | ac_cv_prog_cc_g=yes |
5009 | else |
5010 | CFLAGS="" |
5011 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5012 | /* end confdefs.h. */ |
5013 | |
5014 | int |
5015 | main () |
5016 | { |
5017 | |
5018 | ; |
5019 | return 0; |
5020 | } |
5021 | _ACEOF |
5022 | if ac_fn_c_try_compile "$LINENO"; then : |
5023 | |
5024 | else |
5025 | ac_c_werror_flag=$ac_save_c_werror_flag |
5026 | CFLAGS="-g" |
5027 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5028 | /* end confdefs.h. */ |
5029 | |
5030 | int |
5031 | main () |
5032 | { |
5033 | |
5034 | ; |
5035 | return 0; |
5036 | } |
5037 | _ACEOF |
5038 | if ac_fn_c_try_compile "$LINENO"; then : |
5039 | ac_cv_prog_cc_g=yes |
5040 | fi |
5041 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5042 | fi |
5043 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5044 | fi |
5045 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5046 | ac_c_werror_flag=$ac_save_c_werror_flag |
5047 | fi |
5048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
5049 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
5050 | if test "$ac_test_CFLAGS" = set; then |
5051 | CFLAGS=$ac_save_CFLAGS |
5052 | elif test $ac_cv_prog_cc_g = yes; then |
5053 | if test "$GCC" = yes; then |
5054 | CFLAGS="-g -O2" |
5055 | else |
5056 | CFLAGS="-g" |
5057 | fi |
5058 | else |
5059 | if test "$GCC" = yes; then |
5060 | CFLAGS="-O2" |
5061 | else |
5062 | CFLAGS= |
5063 | fi |
5064 | fi |
5065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
5066 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
5067 | if test "${ac_cv_prog_cc_c89+set}" = set; then : |
5068 | $as_echo_n "(cached) " >&6 |
5069 | else |
5070 | ac_cv_prog_cc_c89=no |
5071 | ac_save_CC=$CC |
5072 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5073 | /* end confdefs.h. */ |
5074 | #include <stdarg.h> |
5075 | #include <stdio.h> |
5076 | #include <sys/types.h> |
5077 | #include <sys/stat.h> |
5078 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
5079 | struct buf { int x; }; |
5080 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
5081 | static char *e (p, i) |
5082 | char **p; |
5083 | int i; |
5084 | { |
5085 | return p[i]; |
5086 | } |
5087 | static char *f (char * (*g) (char **, int), char **p, ...) |
5088 | { |
5089 | char *s; |
5090 | va_list v; |
5091 | va_start (v,p); |
5092 | s = g (p, va_arg (v,int)); |
5093 | va_end (v); |
5094 | return s; |
5095 | } |
5096 | |
5097 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
5098 | function prototypes and stuff, but not '\xHH' hex character constants. |
5099 | These don't provoke an error unfortunately, instead are silently treated |
5100 | as 'x'. The following induces an error, until -std is added to get |
5101 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
5102 | array size at least. It's necessary to write '\x00'==0 to get something |
5103 | that's true only with -std. */ |
5104 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
5105 | |
5106 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
5107 | inside strings and character constants. */ |
5108 | #define FOO(x) 'x' |
5109 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
5110 | |
5111 | int test (int i, double x); |
5112 | struct s1 {int (*f) (int a);}; |
5113 | struct s2 {int (*f) (double a);}; |
5114 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
5115 | int argc; |
5116 | char **argv; |
5117 | int |
5118 | main () |
5119 | { |
5120 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
5121 | ; |
5122 | return 0; |
5123 | } |
5124 | _ACEOF |
5125 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
5126 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
5127 | do |
5128 | CC="$ac_save_CC $ac_arg" |
5129 | if ac_fn_c_try_compile "$LINENO"; then : |
5130 | ac_cv_prog_cc_c89=$ac_arg |
5131 | fi |
5132 | rm -f core conftest.err conftest.$ac_objext |
5133 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
5134 | done |
5135 | rm -f conftest.$ac_ext |
5136 | CC=$ac_save_CC |
5137 | |
5138 | fi |
5139 | # AC_CACHE_VAL |
5140 | case "x$ac_cv_prog_cc_c89" in |
5141 | x) |
5142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
5143 | $as_echo "none needed" >&6; } ;; |
5144 | xno) |
5145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
5146 | $as_echo "unsupported" >&6; } ;; |
5147 | *) |
5148 | CC="$CC $ac_cv_prog_cc_c89" |
5149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
5150 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
5151 | esac |
5152 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
5153 | |
5154 | fi |
5155 | |
5156 | ac_ext=c |
5157 | ac_cpp='$CPP $CPPFLAGS' |
5158 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5159 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5160 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
5161 | |
5162 | depcc="$CC" am_compiler_list= |
5163 | |
5164 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
5165 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
5166 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : |
5167 | $as_echo_n "(cached) " >&6 |
5168 | else |
5169 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
5170 | # We make a subdir and do the tests there. Otherwise we can end up |
5171 | # making bogus files that we don't know about and never remove. For |
5172 | # instance it was reported that on HP-UX the gcc test will end up |
5173 | # making a dummy file named `D' -- because `-MD' means `put the output |
5174 | # in D'. |
5175 | mkdir conftest.dir |
5176 | # Copy depcomp to subdir because otherwise we won't find it if we're |
5177 | # using a relative directory. |
5178 | cp "$am_depcomp" conftest.dir |
5179 | cd conftest.dir |
5180 | # We will build objects and dependencies in a subdirectory because |
5181 | # it helps to detect inapplicable dependency modes. For instance |
5182 | # both Tru64's cc and ICC support -MD to output dependencies as a |
5183 | # side effect of compilation, but ICC will put the dependencies in |
5184 | # the current directory while Tru64 will put them in the object |
5185 | # directory. |
5186 | mkdir sub |
5187 | |
5188 | am_cv_CC_dependencies_compiler_type=none |
5189 | if test "$am_compiler_list" = ""; then |
5190 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
5191 | fi |
5192 | am__universal=false |
5193 | case " $depcc " in #( |
5194 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
5195 | esac |
5196 | |
5197 | for depmode in $am_compiler_list; do |
5198 | # Setup a source with many dependencies, because some compilers |
5199 | # like to wrap large dependency lists on column 80 (with \), and |
5200 | # we should not choose a depcomp mode which is confused by this. |
5201 | # |
5202 | # We need to recreate these files for each test, as the compiler may |
5203 | # overwrite some of them when testing with obscure command lines. |
5204 | # This happens at least with the AIX C compiler. |
5205 | : > sub/conftest.c |
5206 | for i in 1 2 3 4 5 6; do |
5207 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
5208 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
5209 | # Solaris 8's {/usr,}/bin/sh. |
5210 | touch sub/conftst$i.h |
5211 | done |
5212 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
5213 | |
5214 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
5215 | # mode. It turns out that the SunPro C++ compiler does not properly |
5216 | # handle `-M -o', and we need to detect this. Also, some Intel |
5217 | # versions had trouble with output in subdirs |
5218 | am__obj=sub/conftest.${OBJEXT-o} |
5219 | am__minus_obj="-o $am__obj" |
5220 | case $depmode in |
5221 | gcc) |
5222 | # This depmode causes a compiler race in universal mode. |
5223 | test "$am__universal" = false || continue |
5224 | ;; |
5225 | nosideeffect) |
5226 | # after this tag, mechanisms are not by side-effect, so they'll |
5227 | # only be used when explicitly requested |
5228 | if test "x$enable_dependency_tracking" = xyes; then |
5229 | continue |
5230 | else |
5231 | break |
5232 | fi |
5233 | ;; |
5234 | msvisualcpp | msvcmsys) |
5235 | # This compiler won't grok `-c -o', but also, the minuso test has |
5236 | # not run yet. These depmodes are late enough in the game, and |
5237 | # so weak that their functioning should not be impacted. |
5238 | am__obj=conftest.${OBJEXT-o} |
5239 | am__minus_obj= |
5240 | ;; |
5241 | none) break ;; |
5242 | esac |
5243 | if depmode=$depmode \ |
5244 | source=sub/conftest.c object=$am__obj \ |
5245 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
5246 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
5247 | >/dev/null 2>conftest.err && |
5248 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
5249 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
5250 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
5251 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
5252 | # icc doesn't choke on unknown options, it will just issue warnings |
5253 | # or remarks (even with -Werror). So we grep stderr for any message |
5254 | # that says an option was ignored or not supported. |
5255 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
5256 | # icc: Command line warning: ignoring option '-M'; no argument required |
5257 | # The diagnosis changed in icc 8.0: |
5258 | # icc: Command line remark: option '-MP' not supported |
5259 | if (grep 'ignoring option' conftest.err || |
5260 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
5261 | am_cv_CC_dependencies_compiler_type=$depmode |
5262 | break |
5263 | fi |
5264 | fi |
5265 | done |
5266 | |
5267 | cd .. |
5268 | rm -rf conftest.dir |
5269 | else |
5270 | am_cv_CC_dependencies_compiler_type=none |
5271 | fi |
5272 | |
5273 | fi |
5274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
5275 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
5276 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
5277 | |
5278 | if |
5279 | test "x$enable_dependency_tracking" != xno \ |
5280 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
5281 | am__fastdepCC_TRUE= |
5282 | am__fastdepCC_FALSE='#' |
5283 | else |
5284 | am__fastdepCC_TRUE='#' |
5285 | am__fastdepCC_FALSE= |
5286 | fi |
5287 | |
5288 | |
5289 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
5290 | $as_echo_n "checking whether ln -s works... " >&6; } |
5291 | LN_S=$as_ln_s |
5292 | if test "$LN_S" = "ln -s"; then |
5293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
5294 | $as_echo "yes" >&6; } |
5295 | else |
5296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
5297 | $as_echo "no, using $LN_S" >&6; } |
5298 | fi |
5299 | |
5300 | if test "x$CC" != xcc; then |
5301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 |
5302 | $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } |
5303 | else |
5304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 |
5305 | $as_echo_n "checking whether cc understands -c and -o together... " >&6; } |
5306 | fi |
5307 | set dummy $CC; ac_cc=`$as_echo "$2" | |
5308 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` |
5309 | if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then : |
5310 | $as_echo_n "(cached) " >&6 |
5311 | else |
5312 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5313 | /* end confdefs.h. */ |
5314 | |
5315 | int |
5316 | main () |
5317 | { |
5318 | |
5319 | ; |
5320 | return 0; |
5321 | } |
5322 | _ACEOF |
5323 | # Make sure it works both with $CC and with simple cc. |
5324 | # We do the test twice because some compilers refuse to overwrite an |
5325 | # existing .o file with -o, though they will create one. |
5326 | ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' |
5327 | rm -f conftest2.* |
5328 | if { { case "(($ac_try" in |
5329 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5330 | *) ac_try_echo=$ac_try;; |
5331 | esac |
5332 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
5333 | $as_echo "$ac_try_echo"; } >&5 |
5334 | (eval "$ac_try") 2>&5 |
5335 | ac_status=$? |
5336 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5337 | test $ac_status = 0; } && |
5338 | test -f conftest2.$ac_objext && { { case "(($ac_try" in |
5339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5340 | *) ac_try_echo=$ac_try;; |
5341 | esac |
5342 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
5343 | $as_echo "$ac_try_echo"; } >&5 |
5344 | (eval "$ac_try") 2>&5 |
5345 | ac_status=$? |
5346 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5347 | test $ac_status = 0; }; |
5348 | then |
5349 | eval ac_cv_prog_cc_${ac_cc}_c_o=yes |
5350 | if test "x$CC" != xcc; then |
5351 | # Test first that cc exists at all. |
5352 | if { ac_try='cc -c conftest.$ac_ext >&5' |
5353 | { { case "(($ac_try" in |
5354 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5355 | *) ac_try_echo=$ac_try;; |
5356 | esac |
5357 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
5358 | $as_echo "$ac_try_echo"; } >&5 |
5359 | (eval "$ac_try") 2>&5 |
5360 | ac_status=$? |
5361 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5362 | test $ac_status = 0; }; }; then |
5363 | ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' |
5364 | rm -f conftest2.* |
5365 | if { { case "(($ac_try" in |
5366 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5367 | *) ac_try_echo=$ac_try;; |
5368 | esac |
5369 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
5370 | $as_echo "$ac_try_echo"; } >&5 |
5371 | (eval "$ac_try") 2>&5 |
5372 | ac_status=$? |
5373 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5374 | test $ac_status = 0; } && |
5375 | test -f conftest2.$ac_objext && { { case "(($ac_try" in |
5376 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5377 | *) ac_try_echo=$ac_try;; |
5378 | esac |
5379 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
5380 | $as_echo "$ac_try_echo"; } >&5 |
5381 | (eval "$ac_try") 2>&5 |
5382 | ac_status=$? |
5383 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5384 | test $ac_status = 0; }; |
5385 | then |
5386 | # cc works too. |
5387 | : |
5388 | else |
5389 | # cc exists but doesn't like -o. |
5390 | eval ac_cv_prog_cc_${ac_cc}_c_o=no |
5391 | fi |
5392 | fi |
5393 | fi |
5394 | else |
5395 | eval ac_cv_prog_cc_${ac_cc}_c_o=no |
5396 | fi |
5397 | rm -f core conftest* |
5398 | |
5399 | fi |
5400 | if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then |
5401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
5402 | $as_echo "yes" >&6; } |
5403 | else |
5404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5405 | $as_echo "no" >&6; } |
5406 | |
5407 | $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h |
5408 | |
5409 | fi |
5410 | |
5411 | # FIXME: we rely on the cache variable name because |
5412 | # there is no other way. |
5413 | set dummy $CC |
5414 | am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` |
5415 | eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o |
5416 | if test "$am_t" != yes; then |
5417 | # Losing compiler, so override with the script. |
5418 | # FIXME: It is wrong to rewrite CC. |
5419 | # But if we don't then we get into trouble of one sort or another. |
5420 | # A longer-term fix would be to have automake use am__CC in this case, |
5421 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
5422 | CC="$am_aux_dir/compile $CC" |
5423 | fi |
5424 | |
5425 | |
5426 | |
5427 | case `pwd` in |
5428 | *\ * | *\ *) |
5429 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
5430 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
5431 | esac |
5432 | |
5433 | |
5434 | |
5435 | macro_version='2.2.6b' |
5436 | macro_revision='1.3017' |
5437 | |
5438 | |
5439 | |
5440 | |
5441 | |
5442 | |
5443 | |
5444 | |
5445 | |
5446 | |
5447 | |
5448 | |
5449 | |
5450 | ltmain="$ac_aux_dir/ltmain.sh" |
5451 | |
5452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
5453 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
5454 | if test "${ac_cv_path_SED+set}" = set; then : |
5455 | $as_echo_n "(cached) " >&6 |
5456 | else |
5457 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
5458 | for ac_i in 1 2 3 4 5 6 7; do |
5459 | ac_script="$ac_script$as_nl$ac_script" |
5460 | done |
5461 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
5462 | { ac_script=; unset ac_script;} |
5463 | if test -z "$SED"; then |
5464 | ac_path_SED_found=false |
5465 | # Loop through the user's path and test for each of PROGNAME-LIST |
5466 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5467 | for as_dir in $PATH |
5468 | do |
5469 | IFS=$as_save_IFS |
5470 | test -z "$as_dir" && as_dir=. |
5471 | for ac_prog in sed gsed; do |
5472 | for ac_exec_ext in '' $ac_executable_extensions; do |
5473 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
5474 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue |
5475 | # Check for GNU ac_path_SED and select it if it is found. |
5476 | # Check for GNU $ac_path_SED |
5477 | case `"$ac_path_SED" --version 2>&1` in |
5478 | *GNU*) |
5479 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
5480 | *) |
5481 | ac_count=0 |
5482 | $as_echo_n 0123456789 >"conftest.in" |
5483 | while : |
5484 | do |
5485 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
5486 | mv "conftest.tmp" "conftest.in" |
5487 | cp "conftest.in" "conftest.nl" |
5488 | $as_echo '' >> "conftest.nl" |
5489 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
5490 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
5491 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
5492 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
5493 | # Best one so far, save it but keep looking for a better one |
5494 | ac_cv_path_SED="$ac_path_SED" |
5495 | ac_path_SED_max=$ac_count |
5496 | fi |
5497 | # 10*(2^10) chars as input seems more than enough |
5498 | test $ac_count -gt 10 && break |
5499 | done |
5500 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
5501 | esac |
5502 | |
5503 | $ac_path_SED_found && break 3 |
5504 | done |
5505 | done |
5506 | done |
5507 | IFS=$as_save_IFS |
5508 | if test -z "$ac_cv_path_SED"; then |
5509 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
5510 | fi |
5511 | else |
5512 | ac_cv_path_SED=$SED |
5513 | fi |
5514 | |
5515 | fi |
5516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
5517 | $as_echo "$ac_cv_path_SED" >&6; } |
5518 | SED="$ac_cv_path_SED" |
5519 | rm -f conftest.sed |
5520 | |
5521 | test -z "$SED" && SED=sed |
5522 | Xsed="$SED -e 1s/^X//" |
5523 | |
5524 | |
5525 | |
5526 | |
5527 | |
5528 | |
5529 | |
5530 | |
5531 | |
5532 | |
5533 | |
5534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
5535 | $as_echo_n "checking for fgrep... " >&6; } |
5536 | if test "${ac_cv_path_FGREP+set}" = set; then : |
5537 | $as_echo_n "(cached) " >&6 |
5538 | else |
5539 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
5540 | then ac_cv_path_FGREP="$GREP -F" |
5541 | else |
5542 | if test -z "$FGREP"; then |
5543 | ac_path_FGREP_found=false |
5544 | # Loop through the user's path and test for each of PROGNAME-LIST |
5545 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5546 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
5547 | do |
5548 | IFS=$as_save_IFS |
5549 | test -z "$as_dir" && as_dir=. |
5550 | for ac_prog in fgrep; do |
5551 | for ac_exec_ext in '' $ac_executable_extensions; do |
5552 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
5553 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue |
5554 | # Check for GNU ac_path_FGREP and select it if it is found. |
5555 | # Check for GNU $ac_path_FGREP |
5556 | case `"$ac_path_FGREP" --version 2>&1` in |
5557 | *GNU*) |
5558 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; |
5559 | *) |
5560 | ac_count=0 |
5561 | $as_echo_n 0123456789 >"conftest.in" |
5562 | while : |
5563 | do |
5564 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
5565 | mv "conftest.tmp" "conftest.in" |
5566 | cp "conftest.in" "conftest.nl" |
5567 | $as_echo 'FGREP' >> "conftest.nl" |
5568 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break |
5569 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
5570 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
5571 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
5572 | # Best one so far, save it but keep looking for a better one |
5573 | ac_cv_path_FGREP="$ac_path_FGREP" |
5574 | ac_path_FGREP_max=$ac_count |
5575 | fi |
5576 | # 10*(2^10) chars as input seems more than enough |
5577 | test $ac_count -gt 10 && break |
5578 | done |
5579 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
5580 | esac |
5581 | |
5582 | $ac_path_FGREP_found && break 3 |
5583 | done |
5584 | done |
5585 | done |
5586 | IFS=$as_save_IFS |
5587 | if test -z "$ac_cv_path_FGREP"; then |
5588 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
5589 | fi |
5590 | else |
5591 | ac_cv_path_FGREP=$FGREP |
5592 | fi |
5593 | |
5594 | fi |
5595 | fi |
5596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
5597 | $as_echo "$ac_cv_path_FGREP" >&6; } |
5598 | FGREP="$ac_cv_path_FGREP" |
5599 | |
5600 | |
5601 | test -z "$GREP" && GREP=grep |
5602 | |
5603 | |
5604 | |
5605 | |
5606 | |
5607 | |
5608 | |
5609 | |
5610 | |
5611 | |
5612 | |
5613 | |
5614 | |
5615 | |
5616 | |
5617 | |
5618 | |
5619 | |
5620 | |
5621 | # Check whether --with-gnu-ld was given. |
5622 | if test "${with_gnu_ld+set}" = set; then : |
5623 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
5624 | else |
5625 | with_gnu_ld=no |
5626 | fi |
5627 | |
5628 | ac_prog=ld |
5629 | if test "$GCC" = yes; then |
5630 | # Check if gcc -print-prog-name=ld gives a path. |
5631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
5632 | $as_echo_n "checking for ld used by $CC... " >&6; } |
5633 | case $host in |
5634 | *-*-mingw*) |
5635 | # gcc leaves a trailing carriage return which upsets mingw |
5636 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
5637 | *) |
5638 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
5639 | esac |
5640 | case $ac_prog in |
5641 | # Accept absolute paths. |
5642 | [\\/]* | ?:[\\/]*) |
5643 | re_direlt='/[^/][^/]*/\.\./' |
5644 | # Canonicalize the pathname of ld |
5645 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
5646 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
5647 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
5648 | done |
5649 | test -z "$LD" && LD="$ac_prog" |
5650 | ;; |
5651 | "") |
5652 | # If it fails, then pretend we aren't using GCC. |
5653 | ac_prog=ld |
5654 | ;; |
5655 | *) |
5656 | # If it is relative, then search for the first ld in PATH. |
5657 | with_gnu_ld=unknown |
5658 | ;; |
5659 | esac |
5660 | elif test "$with_gnu_ld" = yes; then |
5661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
5662 | $as_echo_n "checking for GNU ld... " >&6; } |
5663 | else |
5664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
5665 | $as_echo_n "checking for non-GNU ld... " >&6; } |
5666 | fi |
5667 | if test "${lt_cv_path_LD+set}" = set; then : |
5668 | $as_echo_n "(cached) " >&6 |
5669 | else |
5670 | if test -z "$LD"; then |
5671 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
5672 | for ac_dir in $PATH; do |
5673 | IFS="$lt_save_ifs" |
5674 | test -z "$ac_dir" && ac_dir=. |
5675 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
5676 | lt_cv_path_LD="$ac_dir/$ac_prog" |
5677 | # Check to see if the program is GNU ld. I'd rather use --version, |
5678 | # but apparently some variants of GNU ld only accept -v. |
5679 | # Break only if it was the GNU/non-GNU ld that we prefer. |
5680 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
5681 | *GNU* | *'with BFD'*) |
5682 | test "$with_gnu_ld" != no && break |
5683 | ;; |
5684 | *) |
5685 | test "$with_gnu_ld" != yes && break |
5686 | ;; |
5687 | esac |
5688 | fi |
5689 | done |
5690 | IFS="$lt_save_ifs" |
5691 | else |
5692 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
5693 | fi |
5694 | fi |
5695 | |
5696 | LD="$lt_cv_path_LD" |
5697 | if test -n "$LD"; then |
5698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
5699 | $as_echo "$LD" >&6; } |
5700 | else |
5701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5702 | $as_echo "no" >&6; } |
5703 | fi |
5704 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
5705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
5706 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
5707 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : |
5708 | $as_echo_n "(cached) " >&6 |
5709 | else |
5710 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
5711 | case `$LD -v 2>&1 </dev/null` in |
5712 | *GNU* | *'with BFD'*) |
5713 | lt_cv_prog_gnu_ld=yes |
5714 | ;; |
5715 | *) |
5716 | lt_cv_prog_gnu_ld=no |
5717 | ;; |
5718 | esac |
5719 | fi |
5720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
5721 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
5722 | with_gnu_ld=$lt_cv_prog_gnu_ld |
5723 | |
5724 | |
5725 | |
5726 | |
5727 | |
5728 | |
5729 | |
5730 | |
5731 | |
5732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
5733 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
5734 | if test "${lt_cv_path_NM+set}" = set; then : |
5735 | $as_echo_n "(cached) " >&6 |
5736 | else |
5737 | if test -n "$NM"; then |
5738 | # Let the user override the test. |
5739 | lt_cv_path_NM="$NM" |
5740 | else |
5741 | lt_nm_to_check="${ac_tool_prefix}nm" |
5742 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
5743 | lt_nm_to_check="$lt_nm_to_check nm" |
5744 | fi |
5745 | for lt_tmp_nm in $lt_nm_to_check; do |
5746 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
5747 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
5748 | IFS="$lt_save_ifs" |
5749 | test -z "$ac_dir" && ac_dir=. |
5750 | tmp_nm="$ac_dir/$lt_tmp_nm" |
5751 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
5752 | # Check to see if the nm accepts a BSD-compat flag. |
5753 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
5754 | # nm: unknown option "B" ignored |
5755 | # Tru64's nm complains that /dev/null is an invalid object file |
5756 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
5757 | */dev/null* | *'Invalid file or object type'*) |
5758 | lt_cv_path_NM="$tmp_nm -B" |
5759 | break |
5760 | ;; |
5761 | *) |
5762 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
5763 | */dev/null*) |
5764 | lt_cv_path_NM="$tmp_nm -p" |
5765 | break |
5766 | ;; |
5767 | *) |
5768 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
5769 | continue # so that we can try to find one that supports BSD flags |
5770 | ;; |
5771 | esac |
5772 | ;; |
5773 | esac |
5774 | fi |
5775 | done |
5776 | IFS="$lt_save_ifs" |
5777 | done |
5778 | : ${lt_cv_path_NM=no} |
5779 | fi |
5780 | fi |
5781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
5782 | $as_echo "$lt_cv_path_NM" >&6; } |
5783 | if test "$lt_cv_path_NM" != "no"; then |
5784 | NM="$lt_cv_path_NM" |
5785 | else |
5786 | # Didn't find any BSD compatible name lister, look for dumpbin. |
5787 | if test -n "$ac_tool_prefix"; then |
5788 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" |
5789 | do |
5790 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
5791 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
5792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5793 | $as_echo_n "checking for $ac_word... " >&6; } |
5794 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then : |
5795 | $as_echo_n "(cached) " >&6 |
5796 | else |
5797 | if test -n "$DUMPBIN"; then |
5798 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. |
5799 | else |
5800 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5801 | for as_dir in $PATH |
5802 | do |
5803 | IFS=$as_save_IFS |
5804 | test -z "$as_dir" && as_dir=. |
5805 | for ac_exec_ext in '' $ac_executable_extensions; do |
5806 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5807 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
5808 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5809 | break 2 |
5810 | fi |
5811 | done |
5812 | done |
5813 | IFS=$as_save_IFS |
5814 | |
5815 | fi |
5816 | fi |
5817 | DUMPBIN=$ac_cv_prog_DUMPBIN |
5818 | if test -n "$DUMPBIN"; then |
5819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
5820 | $as_echo "$DUMPBIN" >&6; } |
5821 | else |
5822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5823 | $as_echo "no" >&6; } |
5824 | fi |
5825 | |
5826 | |
5827 | test -n "$DUMPBIN" && break |
5828 | done |
5829 | fi |
5830 | if test -z "$DUMPBIN"; then |
5831 | ac_ct_DUMPBIN=$DUMPBIN |
5832 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" |
5833 | do |
5834 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
5835 | set dummy $ac_prog; ac_word=$2 |
5836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5837 | $as_echo_n "checking for $ac_word... " >&6; } |
5838 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : |
5839 | $as_echo_n "(cached) " >&6 |
5840 | else |
5841 | if test -n "$ac_ct_DUMPBIN"; then |
5842 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. |
5843 | else |
5844 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5845 | for as_dir in $PATH |
5846 | do |
5847 | IFS=$as_save_IFS |
5848 | test -z "$as_dir" && as_dir=. |
5849 | for ac_exec_ext in '' $ac_executable_extensions; do |
5850 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5851 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
5852 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5853 | break 2 |
5854 | fi |
5855 | done |
5856 | done |
5857 | IFS=$as_save_IFS |
5858 | |
5859 | fi |
5860 | fi |
5861 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
5862 | if test -n "$ac_ct_DUMPBIN"; then |
5863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
5864 | $as_echo "$ac_ct_DUMPBIN" >&6; } |
5865 | else |
5866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5867 | $as_echo "no" >&6; } |
5868 | fi |
5869 | |
5870 | |
5871 | test -n "$ac_ct_DUMPBIN" && break |
5872 | done |
5873 | |
5874 | if test "x$ac_ct_DUMPBIN" = x; then |
5875 | DUMPBIN=":" |
5876 | else |
5877 | case $cross_compiling:$ac_tool_warned in |
5878 | yes:) |
5879 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
5880 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
5881 | ac_tool_warned=yes ;; |
5882 | esac |
5883 | DUMPBIN=$ac_ct_DUMPBIN |
5884 | fi |
5885 | fi |
5886 | |
5887 | |
5888 | if test "$DUMPBIN" != ":"; then |
5889 | NM="$DUMPBIN" |
5890 | fi |
5891 | fi |
5892 | test -z "$NM" && NM=nm |
5893 | |
5894 | |
5895 | |
5896 | |
5897 | |
5898 | |
5899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
5900 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } |
5901 | if test "${lt_cv_nm_interface+set}" = set; then : |
5902 | $as_echo_n "(cached) " >&6 |
5903 | else |
5904 | lt_cv_nm_interface="BSD nm" |
5905 | echo "int some_variable = 0;" > conftest.$ac_ext |
5906 | (eval echo "\"\$as_me:5906: $ac_compile\"" >&5) |
5907 | (eval "$ac_compile" 2>conftest.err) |
5908 | cat conftest.err >&5 |
5909 | (eval echo "\"\$as_me:5909: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
5910 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
5911 | cat conftest.err >&5 |
5912 | (eval echo "\"\$as_me:5912: output\"" >&5) |
5913 | cat conftest.out >&5 |
5914 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
5915 | lt_cv_nm_interface="MS dumpbin" |
5916 | fi |
5917 | rm -f conftest* |
5918 | fi |
5919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
5920 | $as_echo "$lt_cv_nm_interface" >&6; } |
5921 | |
5922 | # find the maximum length of command line arguments |
5923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
5924 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } |
5925 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then : |
5926 | $as_echo_n "(cached) " >&6 |
5927 | else |
5928 | i=0 |
5929 | teststring="ABCD" |
5930 | |
5931 | case $build_os in |
5932 | msdosdjgpp*) |
5933 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
5934 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
5935 | # during glob expansion). Even if it were fixed, the result of this |
5936 | # check would be larger than it should be. |
5937 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
5938 | ;; |
5939 | |
5940 | gnu*) |
5941 | # Under GNU Hurd, this test is not required because there is |
5942 | # no limit to the length of command line arguments. |
5943 | # Libtool will interpret -1 as no limit whatsoever |
5944 | lt_cv_sys_max_cmd_len=-1; |
5945 | ;; |
5946 | |
5947 | cygwin* | mingw* | cegcc*) |
5948 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
5949 | # about 5 minutes as the teststring grows exponentially. |
5950 | # Worse, since 9x/ME are not pre-emptively multitasking, |
5951 | # you end up with a "frozen" computer, even though with patience |
5952 | # the test eventually succeeds (with a max line length of 256k). |
5953 | # Instead, let's just punt: use the minimum linelength reported by |
5954 | # all of the supported platforms: 8192 (on NT/2K/XP). |
5955 | lt_cv_sys_max_cmd_len=8192; |
5956 | ;; |
5957 | |
5958 | amigaos*) |
5959 | # On AmigaOS with pdksh, this test takes hours, literally. |
5960 | # So we just punt and use a minimum line length of 8192. |
5961 | lt_cv_sys_max_cmd_len=8192; |
5962 | ;; |
5963 | |
5964 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
5965 | # This has been around since 386BSD, at least. Likely further. |
5966 | if test -x /sbin/sysctl; then |
5967 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
5968 | elif test -x /usr/sbin/sysctl; then |
5969 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
5970 | else |
5971 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
5972 | fi |
5973 | # And add a safety zone |
5974 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
5975 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
5976 | ;; |
5977 | |
5978 | interix*) |
5979 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
5980 | lt_cv_sys_max_cmd_len=196608 |
5981 | ;; |
5982 | |
5983 | osf*) |
5984 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
5985 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
5986 | # nice to cause kernel panics so lets avoid the loop below. |
5987 | # First set a reasonable default. |
5988 | lt_cv_sys_max_cmd_len=16384 |
5989 | # |
5990 | if test -x /sbin/sysconfig; then |
5991 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
5992 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
5993 | esac |
5994 | fi |
5995 | ;; |
5996 | sco3.2v5*) |
5997 | lt_cv_sys_max_cmd_len=102400 |
5998 | ;; |
5999 | sysv5* | sco5v6* | sysv4.2uw2*) |
6000 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
6001 | if test -n "$kargmax"; then |
6002 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
6003 | else |
6004 | lt_cv_sys_max_cmd_len=32768 |
6005 | fi |
6006 | ;; |
6007 | *) |
6008 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
6009 | if test -n "$lt_cv_sys_max_cmd_len"; then |
6010 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
6011 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
6012 | else |
6013 | # Make teststring a little bigger before we do anything with it. |
6014 | # a 1K string should be a reasonable start. |
6015 | for i in 1 2 3 4 5 6 7 8 ; do |
6016 | teststring=$teststring$teststring |
6017 | done |
6018 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
6019 | # If test is not a shell built-in, we'll probably end up computing a |
6020 | # maximum length that is only half of the actual maximum length, but |
6021 | # we can't tell. |
6022 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ |
6023 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && |
6024 | test $i != 17 # 1/2 MB should be enough |
6025 | do |
6026 | i=`expr $i + 1` |
6027 | teststring=$teststring$teststring |
6028 | done |
6029 | # Only check the string length outside the loop. |
6030 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
6031 | teststring= |
6032 | # Add a significant safety factor because C++ compilers can tack on |
6033 | # massive amounts of additional arguments before passing them to the |
6034 | # linker. It appears as though 1/2 is a usable value. |
6035 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
6036 | fi |
6037 | ;; |
6038 | esac |
6039 | |
6040 | fi |
6041 | |
6042 | if test -n $lt_cv_sys_max_cmd_len ; then |
6043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
6044 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } |
6045 | else |
6046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
6047 | $as_echo "none" >&6; } |
6048 | fi |
6049 | max_cmd_len=$lt_cv_sys_max_cmd_len |
6050 | |
6051 | |
6052 | |
6053 | |
6054 | |
6055 | |
6056 | : ${CP="cp -f"} |
6057 | : ${MV="mv -f"} |
6058 | : ${RM="rm -f"} |
6059 | |
6060 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
6061 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } |
6062 | # Try some XSI features |
6063 | xsi_shell=no |
6064 | ( _lt_dummy="a/b/c" |
6065 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ |
6066 | = c,a/b,, \ |
6067 | && eval 'test $(( 1 + 1 )) -eq 2 \ |
6068 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ |
6069 | && xsi_shell=yes |
6070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
6071 | $as_echo "$xsi_shell" >&6; } |
6072 | |
6073 | |
6074 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
6075 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } |
6076 | lt_shell_append=no |
6077 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ |
6078 | >/dev/null 2>&1 \ |
6079 | && lt_shell_append=yes |
6080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
6081 | $as_echo "$lt_shell_append" >&6; } |
6082 | |
6083 | |
6084 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
6085 | lt_unset=unset |
6086 | else |
6087 | lt_unset=false |
6088 | fi |
6089 | |
6090 | |
6091 | |
6092 | |
6093 | |
6094 | # test EBCDIC or ASCII |
6095 | case `echo X|tr X '\101'` in |
6096 | A) # ASCII based system |
6097 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr |
6098 | lt_SP2NL='tr \040 \012' |
6099 | lt_NL2SP='tr \015\012 \040\040' |
6100 | ;; |
6101 | *) # EBCDIC based system |
6102 | lt_SP2NL='tr \100 \n' |
6103 | lt_NL2SP='tr \r\n \100\100' |
6104 | ;; |
6105 | esac |
6106 | |
6107 | |
6108 | |
6109 | |
6110 | |
6111 | |
6112 | |
6113 | |
6114 | |
6115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
6116 | $as_echo_n "checking for $LD option to reload object files... " >&6; } |
6117 | if test "${lt_cv_ld_reload_flag+set}" = set; then : |
6118 | $as_echo_n "(cached) " >&6 |
6119 | else |
6120 | lt_cv_ld_reload_flag='-r' |
6121 | fi |
6122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
6123 | $as_echo "$lt_cv_ld_reload_flag" >&6; } |
6124 | reload_flag=$lt_cv_ld_reload_flag |
6125 | case $reload_flag in |
6126 | "" | " "*) ;; |
6127 | *) reload_flag=" $reload_flag" ;; |
6128 | esac |
6129 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
6130 | case $host_os in |
6131 | darwin*) |
6132 | if test "$GCC" = yes; then |
6133 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
6134 | else |
6135 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
6136 | fi |
6137 | ;; |
6138 | esac |
6139 | |
6140 | |
6141 | |
6142 | |
6143 | |
6144 | |
6145 | |
6146 | |
6147 | |
6148 | if test -n "$ac_tool_prefix"; then |
6149 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
6150 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
6151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6152 | $as_echo_n "checking for $ac_word... " >&6; } |
6153 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : |
6154 | $as_echo_n "(cached) " >&6 |
6155 | else |
6156 | if test -n "$OBJDUMP"; then |
6157 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
6158 | else |
6159 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6160 | for as_dir in $PATH |
6161 | do |
6162 | IFS=$as_save_IFS |
6163 | test -z "$as_dir" && as_dir=. |
6164 | for ac_exec_ext in '' $ac_executable_extensions; do |
6165 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
6166 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
6167 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6168 | break 2 |
6169 | fi |
6170 | done |
6171 | done |
6172 | IFS=$as_save_IFS |
6173 | |
6174 | fi |
6175 | fi |
6176 | OBJDUMP=$ac_cv_prog_OBJDUMP |
6177 | if test -n "$OBJDUMP"; then |
6178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
6179 | $as_echo "$OBJDUMP" >&6; } |
6180 | else |
6181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6182 | $as_echo "no" >&6; } |
6183 | fi |
6184 | |
6185 | |
6186 | fi |
6187 | if test -z "$ac_cv_prog_OBJDUMP"; then |
6188 | ac_ct_OBJDUMP=$OBJDUMP |
6189 | # Extract the first word of "objdump", so it can be a program name with args. |
6190 | set dummy objdump; ac_word=$2 |
6191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6192 | $as_echo_n "checking for $ac_word... " >&6; } |
6193 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : |
6194 | $as_echo_n "(cached) " >&6 |
6195 | else |
6196 | if test -n "$ac_ct_OBJDUMP"; then |
6197 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
6198 | else |
6199 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6200 | for as_dir in $PATH |
6201 | do |
6202 | IFS=$as_save_IFS |
6203 | test -z "$as_dir" && as_dir=. |
6204 | for ac_exec_ext in '' $ac_executable_extensions; do |
6205 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
6206 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
6207 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6208 | break 2 |
6209 | fi |
6210 | done |
6211 | done |
6212 | IFS=$as_save_IFS |
6213 | |
6214 | fi |
6215 | fi |
6216 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
6217 | if test -n "$ac_ct_OBJDUMP"; then |
6218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
6219 | $as_echo "$ac_ct_OBJDUMP" >&6; } |
6220 | else |
6221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6222 | $as_echo "no" >&6; } |
6223 | fi |
6224 | |
6225 | if test "x$ac_ct_OBJDUMP" = x; then |
6226 | OBJDUMP="false" |
6227 | else |
6228 | case $cross_compiling:$ac_tool_warned in |
6229 | yes:) |
6230 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
6231 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
6232 | ac_tool_warned=yes ;; |
6233 | esac |
6234 | OBJDUMP=$ac_ct_OBJDUMP |
6235 | fi |
6236 | else |
6237 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
6238 | fi |
6239 | |
6240 | test -z "$OBJDUMP" && OBJDUMP=objdump |
6241 | |
6242 | |
6243 | |
6244 | |
6245 | |
6246 | |
6247 | |
6248 | |
6249 | |
6250 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
6251 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } |
6252 | if test "${lt_cv_deplibs_check_method+set}" = set; then : |
6253 | $as_echo_n "(cached) " >&6 |
6254 | else |
6255 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
6256 | lt_cv_file_magic_test_file= |
6257 | lt_cv_deplibs_check_method='unknown' |
6258 | # Need to set the preceding variable on all platforms that support |
6259 | # interlibrary dependencies. |
6260 | # 'none' -- dependencies not supported. |
6261 | # `unknown' -- same as none, but documents that we really don't know. |
6262 | # 'pass_all' -- all dependencies passed with no checks. |
6263 | # 'test_compile' -- check by making test program. |
6264 | # 'file_magic [[regex]]' -- check by looking for files in library path |
6265 | # which responds to the $file_magic_cmd with a given extended regex. |
6266 | # If you have `file' or equivalent on your system and you're not sure |
6267 | # whether `pass_all' will *always* work, you probably want this one. |
6268 | |
6269 | case $host_os in |
6270 | aix[4-9]*) |
6271 | lt_cv_deplibs_check_method=pass_all |
6272 | ;; |
6273 | |
6274 | beos*) |
6275 | lt_cv_deplibs_check_method=pass_all |
6276 | ;; |
6277 | |
6278 | bsdi[45]*) |
6279 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
6280 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
6281 | lt_cv_file_magic_test_file=/shlib/libc.so |
6282 | ;; |
6283 | |
6284 | cygwin*) |
6285 | # func_win32_libid is a shell function defined in ltmain.sh |
6286 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
6287 | lt_cv_file_magic_cmd='func_win32_libid' |
6288 | ;; |
6289 | |
6290 | mingw* | pw32*) |
6291 | # Base MSYS/MinGW do not provide the 'file' command needed by |
6292 | # func_win32_libid shell function, so use a weaker test based on 'objdump', |
6293 | # unless we find 'file', for example because we are cross-compiling. |
6294 | if ( file / ) >/dev/null 2>&1; then |
6295 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
6296 | lt_cv_file_magic_cmd='func_win32_libid' |
6297 | else |
6298 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
6299 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
6300 | fi |
6301 | ;; |
6302 | |
6303 | cegcc) |
6304 | # use the weaker test based on 'objdump'. See mingw*. |
6305 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
6306 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
6307 | ;; |
6308 | |
6309 | darwin* | rhapsody*) |
6310 | lt_cv_deplibs_check_method=pass_all |
6311 | ;; |
6312 | |
6313 | freebsd* | dragonfly*) |
6314 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
6315 | case $host_cpu in |
6316 | i*86 ) |
6317 | # Not sure whether the presence of OpenBSD here was a mistake. |
6318 | # Let's accept both of them until this is cleared up. |
6319 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
6320 | lt_cv_file_magic_cmd=/usr/bin/file |
6321 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
6322 | ;; |
6323 | esac |
6324 | else |
6325 | lt_cv_deplibs_check_method=pass_all |
6326 | fi |
6327 | ;; |
6328 | |
6329 | gnu*) |
6330 | lt_cv_deplibs_check_method=pass_all |
6331 | ;; |
6332 | |
6333 | hpux10.20* | hpux11*) |
6334 | lt_cv_file_magic_cmd=/usr/bin/file |
6335 | case $host_cpu in |
6336 | ia64*) |
6337 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
6338 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
6339 | ;; |
6340 | hppa*64*) |
6341 | 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]' |
6342 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
6343 | ;; |
6344 | *) |
6345 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
6346 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
6347 | ;; |
6348 | esac |
6349 | ;; |
6350 | |
6351 | interix[3-9]*) |
6352 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
6353 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
6354 | ;; |
6355 | |
6356 | irix5* | irix6* | nonstopux*) |
6357 | case $LD in |
6358 | *-32|*"-32 ") libmagic=32-bit;; |
6359 | *-n32|*"-n32 ") libmagic=N32;; |
6360 | *-64|*"-64 ") libmagic=64-bit;; |
6361 | *) libmagic=never-match;; |
6362 | esac |
6363 | lt_cv_deplibs_check_method=pass_all |
6364 | ;; |
6365 | |
6366 | # This must be Linux ELF. |
6367 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
6368 | lt_cv_deplibs_check_method=pass_all |
6369 | ;; |
6370 | |
6371 | netbsd* | netbsdelf*-gnu) |
6372 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
6373 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
6374 | else |
6375 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
6376 | fi |
6377 | ;; |
6378 | |
6379 | newos6*) |
6380 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
6381 | lt_cv_file_magic_cmd=/usr/bin/file |
6382 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
6383 | ;; |
6384 | |
6385 | *nto* | *qnx*) |
6386 | lt_cv_deplibs_check_method=pass_all |
6387 | ;; |
6388 | |
6389 | openbsd*) |
6390 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
6391 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
6392 | else |
6393 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
6394 | fi |
6395 | ;; |
6396 | |
6397 | osf3* | osf4* | osf5*) |
6398 | lt_cv_deplibs_check_method=pass_all |
6399 | ;; |
6400 | |
6401 | rdos*) |
6402 | lt_cv_deplibs_check_method=pass_all |
6403 | ;; |
6404 | |
6405 | solaris*) |
6406 | lt_cv_deplibs_check_method=pass_all |
6407 | ;; |
6408 | |
6409 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
6410 | lt_cv_deplibs_check_method=pass_all |
6411 | ;; |
6412 | |
6413 | sysv4 | sysv4.3*) |
6414 | case $host_vendor in |
6415 | motorola) |
6416 | 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]' |
6417 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
6418 | ;; |
6419 | ncr) |
6420 | lt_cv_deplibs_check_method=pass_all |
6421 | ;; |
6422 | sequent) |
6423 | lt_cv_file_magic_cmd='/bin/file' |
6424 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
6425 | ;; |
6426 | sni) |
6427 | lt_cv_file_magic_cmd='/bin/file' |
6428 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
6429 | lt_cv_file_magic_test_file=/lib/libc.so |
6430 | ;; |
6431 | siemens) |
6432 | lt_cv_deplibs_check_method=pass_all |
6433 | ;; |
6434 | pc) |
6435 | lt_cv_deplibs_check_method=pass_all |
6436 | ;; |
6437 | esac |
6438 | ;; |
6439 | |
6440 | tpf*) |
6441 | lt_cv_deplibs_check_method=pass_all |
6442 | ;; |
6443 | esac |
6444 | |
6445 | fi |
6446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
6447 | $as_echo "$lt_cv_deplibs_check_method" >&6; } |
6448 | file_magic_cmd=$lt_cv_file_magic_cmd |
6449 | deplibs_check_method=$lt_cv_deplibs_check_method |
6450 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
6451 | |
6452 | |
6453 | |
6454 | |
6455 | |
6456 | |
6457 | |
6458 | |
6459 | |
6460 | |
6461 | |
6462 | |
6463 | if test -n "$ac_tool_prefix"; then |
6464 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
6465 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
6466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6467 | $as_echo_n "checking for $ac_word... " >&6; } |
6468 | if test "${ac_cv_prog_AR+set}" = set; then : |
6469 | $as_echo_n "(cached) " >&6 |
6470 | else |
6471 | if test -n "$AR"; then |
6472 | ac_cv_prog_AR="$AR" # Let the user override the test. |
6473 | else |
6474 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6475 | for as_dir in $PATH |
6476 | do |
6477 | IFS=$as_save_IFS |
6478 | test -z "$as_dir" && as_dir=. |
6479 | for ac_exec_ext in '' $ac_executable_extensions; do |
6480 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
6481 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
6482 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6483 | break 2 |
6484 | fi |
6485 | done |
6486 | done |
6487 | IFS=$as_save_IFS |
6488 | |
6489 | fi |
6490 | fi |
6491 | AR=$ac_cv_prog_AR |
6492 | if test -n "$AR"; then |
6493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
6494 | $as_echo "$AR" >&6; } |
6495 | else |
6496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6497 | $as_echo "no" >&6; } |
6498 | fi |
6499 | |
6500 | |
6501 | fi |
6502 | if test -z "$ac_cv_prog_AR"; then |
6503 | ac_ct_AR=$AR |
6504 | # Extract the first word of "ar", so it can be a program name with args. |
6505 | set dummy ar; ac_word=$2 |
6506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6507 | $as_echo_n "checking for $ac_word... " >&6; } |
6508 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : |
6509 | $as_echo_n "(cached) " >&6 |
6510 | else |
6511 | if test -n "$ac_ct_AR"; then |
6512 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
6513 | else |
6514 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6515 | for as_dir in $PATH |
6516 | do |
6517 | IFS=$as_save_IFS |
6518 | test -z "$as_dir" && as_dir=. |
6519 | for ac_exec_ext in '' $ac_executable_extensions; do |
6520 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
6521 | ac_cv_prog_ac_ct_AR="ar" |
6522 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6523 | break 2 |
6524 | fi |
6525 | done |
6526 | done |
6527 | IFS=$as_save_IFS |
6528 | |
6529 | fi |
6530 | fi |
6531 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
6532 | if test -n "$ac_ct_AR"; then |
6533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
6534 | $as_echo "$ac_ct_AR" >&6; } |
6535 | else |
6536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6537 | $as_echo "no" >&6; } |
6538 | fi |
6539 | |
6540 | if test "x$ac_ct_AR" = x; then |
6541 | AR="false" |
6542 | else |
6543 | case $cross_compiling:$ac_tool_warned in |
6544 | yes:) |
6545 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
6546 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
6547 | ac_tool_warned=yes ;; |
6548 | esac |
6549 | AR=$ac_ct_AR |
6550 | fi |
6551 | else |
6552 | AR="$ac_cv_prog_AR" |
6553 | fi |
6554 | |
6555 | test -z "$AR" && AR=ar |
6556 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
6557 | |
6558 | |
6559 | |
6560 | |
6561 | |
6562 | |
6563 | |
6564 | |
6565 | |
6566 | |
6567 | |
6568 | if test -n "$ac_tool_prefix"; then |
6569 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
6570 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
6571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6572 | $as_echo_n "checking for $ac_word... " >&6; } |
6573 | if test "${ac_cv_prog_STRIP+set}" = set; then : |
6574 | $as_echo_n "(cached) " >&6 |
6575 | else |
6576 | if test -n "$STRIP"; then |
6577 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
6578 | else |
6579 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6580 | for as_dir in $PATH |
6581 | do |
6582 | IFS=$as_save_IFS |
6583 | test -z "$as_dir" && as_dir=. |
6584 | for ac_exec_ext in '' $ac_executable_extensions; do |
6585 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
6586 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
6587 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6588 | break 2 |
6589 | fi |
6590 | done |
6591 | done |
6592 | IFS=$as_save_IFS |
6593 | |
6594 | fi |
6595 | fi |
6596 | STRIP=$ac_cv_prog_STRIP |
6597 | if test -n "$STRIP"; then |
6598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
6599 | $as_echo "$STRIP" >&6; } |
6600 | else |
6601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6602 | $as_echo "no" >&6; } |
6603 | fi |
6604 | |
6605 | |
6606 | fi |
6607 | if test -z "$ac_cv_prog_STRIP"; then |
6608 | ac_ct_STRIP=$STRIP |
6609 | # Extract the first word of "strip", so it can be a program name with args. |
6610 | set dummy strip; ac_word=$2 |
6611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6612 | $as_echo_n "checking for $ac_word... " >&6; } |
6613 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : |
6614 | $as_echo_n "(cached) " >&6 |
6615 | else |
6616 | if test -n "$ac_ct_STRIP"; then |
6617 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
6618 | else |
6619 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6620 | for as_dir in $PATH |
6621 | do |
6622 | IFS=$as_save_IFS |
6623 | test -z "$as_dir" && as_dir=. |
6624 | for ac_exec_ext in '' $ac_executable_extensions; do |
6625 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
6626 | ac_cv_prog_ac_ct_STRIP="strip" |
6627 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6628 | break 2 |
6629 | fi |
6630 | done |
6631 | done |
6632 | IFS=$as_save_IFS |
6633 | |
6634 | fi |
6635 | fi |
6636 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
6637 | if test -n "$ac_ct_STRIP"; then |
6638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
6639 | $as_echo "$ac_ct_STRIP" >&6; } |
6640 | else |
6641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6642 | $as_echo "no" >&6; } |
6643 | fi |
6644 | |
6645 | if test "x$ac_ct_STRIP" = x; then |
6646 | STRIP=":" |
6647 | else |
6648 | case $cross_compiling:$ac_tool_warned in |
6649 | yes:) |
6650 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
6651 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
6652 | ac_tool_warned=yes ;; |
6653 | esac |
6654 | STRIP=$ac_ct_STRIP |
6655 | fi |
6656 | else |
6657 | STRIP="$ac_cv_prog_STRIP" |
6658 | fi |
6659 | |
6660 | test -z "$STRIP" && STRIP=: |
6661 | |
6662 | |
6663 | |
6664 | |
6665 | |
6666 | |
6667 | if test -n "$ac_tool_prefix"; then |
6668 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
6669 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
6670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6671 | $as_echo_n "checking for $ac_word... " >&6; } |
6672 | if test "${ac_cv_prog_RANLIB+set}" = set; then : |
6673 | $as_echo_n "(cached) " >&6 |
6674 | else |
6675 | if test -n "$RANLIB"; then |
6676 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
6677 | else |
6678 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6679 | for as_dir in $PATH |
6680 | do |
6681 | IFS=$as_save_IFS |
6682 | test -z "$as_dir" && as_dir=. |
6683 | for ac_exec_ext in '' $ac_executable_extensions; do |
6684 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
6685 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
6686 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6687 | break 2 |
6688 | fi |
6689 | done |
6690 | done |
6691 | IFS=$as_save_IFS |
6692 | |
6693 | fi |
6694 | fi |
6695 | RANLIB=$ac_cv_prog_RANLIB |
6696 | if test -n "$RANLIB"; then |
6697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
6698 | $as_echo "$RANLIB" >&6; } |
6699 | else |
6700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6701 | $as_echo "no" >&6; } |
6702 | fi |
6703 | |
6704 | |
6705 | fi |
6706 | if test -z "$ac_cv_prog_RANLIB"; then |
6707 | ac_ct_RANLIB=$RANLIB |
6708 | # Extract the first word of "ranlib", so it can be a program name with args. |
6709 | set dummy ranlib; ac_word=$2 |
6710 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6711 | $as_echo_n "checking for $ac_word... " >&6; } |
6712 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : |
6713 | $as_echo_n "(cached) " >&6 |
6714 | else |
6715 | if test -n "$ac_ct_RANLIB"; then |
6716 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
6717 | else |
6718 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6719 | for as_dir in $PATH |
6720 | do |
6721 | IFS=$as_save_IFS |
6722 | test -z "$as_dir" && as_dir=. |
6723 | for ac_exec_ext in '' $ac_executable_extensions; do |
6724 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
6725 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
6726 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6727 | break 2 |
6728 | fi |
6729 | done |
6730 | done |
6731 | IFS=$as_save_IFS |
6732 | |
6733 | fi |
6734 | fi |
6735 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
6736 | if test -n "$ac_ct_RANLIB"; then |
6737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
6738 | $as_echo "$ac_ct_RANLIB" >&6; } |
6739 | else |
6740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6741 | $as_echo "no" >&6; } |
6742 | fi |
6743 | |
6744 | if test "x$ac_ct_RANLIB" = x; then |
6745 | RANLIB=":" |
6746 | else |
6747 | case $cross_compiling:$ac_tool_warned in |
6748 | yes:) |
6749 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
6750 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
6751 | ac_tool_warned=yes ;; |
6752 | esac |
6753 | RANLIB=$ac_ct_RANLIB |
6754 | fi |
6755 | else |
6756 | RANLIB="$ac_cv_prog_RANLIB" |
6757 | fi |
6758 | |
6759 | test -z "$RANLIB" && RANLIB=: |
6760 | |
6761 | |
6762 | |
6763 | |
6764 | |
6765 | |
6766 | # Determine commands to create old-style static archives. |
6767 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
6768 | old_postinstall_cmds='chmod 644 $oldlib' |
6769 | old_postuninstall_cmds= |
6770 | |
6771 | if test -n "$RANLIB"; then |
6772 | case $host_os in |
6773 | openbsd*) |
6774 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
6775 | ;; |
6776 | *) |
6777 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
6778 | ;; |
6779 | esac |
6780 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
6781 | fi |
6782 | |
6783 | |
6784 | |
6785 | |
6786 | |
6787 | |
6788 | |
6789 | |
6790 | |
6791 | |
6792 | |
6793 | |
6794 | |
6795 | |
6796 | |
6797 | |
6798 | |
6799 | |
6800 | |
6801 | |
6802 | |
6803 | |
6804 | |
6805 | |
6806 | |
6807 | |
6808 | |
6809 | |
6810 | |
6811 | |
6812 | |
6813 | |
6814 | |
6815 | |
6816 | # If no C compiler was specified, use CC. |
6817 | LTCC=${LTCC-"$CC"} |
6818 | |
6819 | # If no C compiler flags were specified, use CFLAGS. |
6820 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
6821 | |
6822 | # Allow CC to be a program name with arguments. |
6823 | compiler=$CC |
6824 | |
6825 | |
6826 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
6827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
6828 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } |
6829 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : |
6830 | $as_echo_n "(cached) " >&6 |
6831 | else |
6832 | |
6833 | # These are sane defaults that work on at least a few old systems. |
6834 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
6835 | |
6836 | # Character class describing NM global symbol codes. |
6837 | symcode='[BCDEGRST]' |
6838 | |
6839 | # Regexp to match symbols that can be accessed directly from C. |
6840 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
6841 | |
6842 | # Define system-specific variables. |
6843 | case $host_os in |
6844 | aix*) |
6845 | symcode='[BCDT]' |
6846 | ;; |
6847 | cygwin* | mingw* | pw32* | cegcc*) |
6848 | symcode='[ABCDGISTW]' |
6849 | ;; |
6850 | hpux*) |
6851 | if test "$host_cpu" = ia64; then |
6852 | symcode='[ABCDEGRST]' |
6853 | fi |
6854 | ;; |
6855 | irix* | nonstopux*) |
6856 | symcode='[BCDEGRST]' |
6857 | ;; |
6858 | osf*) |
6859 | symcode='[BCDEGQRST]' |
6860 | ;; |
6861 | solaris*) |
6862 | symcode='[BDRT]' |
6863 | ;; |
6864 | sco3.2v5*) |
6865 | symcode='[DT]' |
6866 | ;; |
6867 | sysv4.2uw2*) |
6868 | symcode='[DT]' |
6869 | ;; |
6870 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
6871 | symcode='[ABDT]' |
6872 | ;; |
6873 | sysv4) |
6874 | symcode='[DFNSTU]' |
6875 | ;; |
6876 | esac |
6877 | |
6878 | # If we're using GNU nm, then use its standard symbol codes. |
6879 | case `$NM -V 2>&1` in |
6880 | *GNU* | *'with BFD'*) |
6881 | symcode='[ABCDGIRSTW]' ;; |
6882 | esac |
6883 | |
6884 | # Transform an extracted symbol line into a proper C declaration. |
6885 | # Some systems (esp. on ia64) link data and code symbols differently, |
6886 | # so use this general approach. |
6887 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
6888 | |
6889 | # Transform an extracted symbol line into symbol name and symbol address |
6890 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" |
6891 | 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'" |
6892 | |
6893 | # Handle CRLF in mingw tool chain |
6894 | opt_cr= |
6895 | case $build_os in |
6896 | mingw*) |
6897 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
6898 | ;; |
6899 | esac |
6900 | |
6901 | # Try without a prefix underscore, then with it. |
6902 | for ac_symprfx in "" "_"; do |
6903 | |
6904 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
6905 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
6906 | |
6907 | # Write the raw and C identifiers. |
6908 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
6909 | # Fake it for dumpbin and say T for any non-static function |
6910 | # and D for any global variable. |
6911 | # Also find C++ and __fastcall symbols from MSVC++, |
6912 | # which start with @ or ?. |
6913 | lt_cv_sys_global_symbol_pipe="$AWK '"\ |
6914 | " {last_section=section; section=\$ 3};"\ |
6915 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
6916 | " \$ 0!~/External *\|/{next};"\ |
6917 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
6918 | " {if(hide[section]) next};"\ |
6919 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ |
6920 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ |
6921 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ |
6922 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ |
6923 | " ' prfx=^$ac_symprfx" |
6924 | else |
6925 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
6926 | fi |
6927 | |
6928 | # Check to see that the pipe works correctly. |
6929 | pipe_works=no |
6930 | |
6931 | rm -f conftest* |
6932 | cat > conftest.$ac_ext <<_LT_EOF |
6933 | #ifdef __cplusplus |
6934 | extern "C" { |
6935 | #endif |
6936 | char nm_test_var; |
6937 | void nm_test_func(void); |
6938 | void nm_test_func(void){} |
6939 | #ifdef __cplusplus |
6940 | } |
6941 | #endif |
6942 | int main(){nm_test_var='a';nm_test_func();return(0);} |
6943 | _LT_EOF |
6944 | |
6945 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
6946 | (eval $ac_compile) 2>&5 |
6947 | ac_status=$? |
6948 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6949 | test $ac_status = 0; }; then |
6950 | # Now try to grab the symbols. |
6951 | nlist=conftest.nm |
6952 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 |
6953 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
6954 | ac_status=$? |
6955 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6956 | test $ac_status = 0; } && test -s "$nlist"; then |
6957 | # Try sorting and uniquifying the output. |
6958 | if sort "$nlist" | uniq > "$nlist"T; then |
6959 | mv -f "$nlist"T "$nlist" |
6960 | else |
6961 | rm -f "$nlist"T |
6962 | fi |
6963 | |
6964 | # Make sure that we snagged all the symbols we need. |
6965 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
6966 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
6967 | cat <<_LT_EOF > conftest.$ac_ext |
6968 | #ifdef __cplusplus |
6969 | extern "C" { |
6970 | #endif |
6971 | |
6972 | _LT_EOF |
6973 | # Now generate the symbol file. |
6974 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
6975 | |
6976 | cat <<_LT_EOF >> conftest.$ac_ext |
6977 | |
6978 | /* The mapping between symbol names and symbols. */ |
6979 | const struct { |
6980 | const char *name; |
6981 | void *address; |
6982 | } |
6983 | lt__PROGRAM__LTX_preloaded_symbols[] = |
6984 | { |
6985 | { "@PROGRAM@", (void *) 0 }, |
6986 | _LT_EOF |
6987 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
6988 | cat <<\_LT_EOF >> conftest.$ac_ext |
6989 | {0, (void *) 0} |
6990 | }; |
6991 | |
6992 | /* This works around a problem in FreeBSD linker */ |
6993 | #ifdef FREEBSD_WORKAROUND |
6994 | static const void *lt_preloaded_setup() { |
6995 | return lt__PROGRAM__LTX_preloaded_symbols; |
6996 | } |
6997 | #endif |
6998 | |
6999 | #ifdef __cplusplus |
7000 | } |
7001 | #endif |
7002 | _LT_EOF |
7003 | # Now try linking the two files. |
7004 | mv conftest.$ac_objext conftstm.$ac_objext |
7005 | lt_save_LIBS="$LIBS" |
7006 | lt_save_CFLAGS="$CFLAGS" |
7007 | LIBS="conftstm.$ac_objext" |
7008 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
7009 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
7010 | (eval $ac_link) 2>&5 |
7011 | ac_status=$? |
7012 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7013 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then |
7014 | pipe_works=yes |
7015 | fi |
7016 | LIBS="$lt_save_LIBS" |
7017 | CFLAGS="$lt_save_CFLAGS" |
7018 | else |
7019 | echo "cannot find nm_test_func in $nlist" >&5 |
7020 | fi |
7021 | else |
7022 | echo "cannot find nm_test_var in $nlist" >&5 |
7023 | fi |
7024 | else |
7025 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
7026 | fi |
7027 | else |
7028 | echo "$progname: failed program was:" >&5 |
7029 | cat conftest.$ac_ext >&5 |
7030 | fi |
7031 | rm -rf conftest* conftst* |
7032 | |
7033 | # Do not use the global_symbol_pipe unless it works. |
7034 | if test "$pipe_works" = yes; then |
7035 | break |
7036 | else |
7037 | lt_cv_sys_global_symbol_pipe= |
7038 | fi |
7039 | done |
7040 | |
7041 | fi |
7042 | |
7043 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
7044 | lt_cv_sys_global_symbol_to_cdecl= |
7045 | fi |
7046 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
7047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
7048 | $as_echo "failed" >&6; } |
7049 | else |
7050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
7051 | $as_echo "ok" >&6; } |
7052 | fi |
7053 | |
7054 | |
7055 | |
7056 | |
7057 | |
7058 | |
7059 | |
7060 | |
7061 | |
7062 | |
7063 | |
7064 | |
7065 | |
7066 | |
7067 | |
7068 | |
7069 | |
7070 | |
7071 | |
7072 | |
7073 | |
7074 | |
7075 | # Check whether --enable-libtool-lock was given. |
7076 | if test "${enable_libtool_lock+set}" = set; then : |
7077 | enableval=$enable_libtool_lock; |
7078 | fi |
7079 | |
7080 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
7081 | |
7082 | # Some flags need to be propagated to the compiler or linker for good |
7083 | # libtool support. |
7084 | case $host in |
7085 | ia64-*-hpux*) |
7086 | # Find out which ABI we are using. |
7087 | echo 'int i;' > conftest.$ac_ext |
7088 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7089 | (eval $ac_compile) 2>&5 |
7090 | ac_status=$? |
7091 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7092 | test $ac_status = 0; }; then |
7093 | case `/usr/bin/file conftest.$ac_objext` in |
7094 | *ELF-32*) |
7095 | HPUX_IA64_MODE="32" |
7096 | ;; |
7097 | *ELF-64*) |
7098 | HPUX_IA64_MODE="64" |
7099 | ;; |
7100 | esac |
7101 | fi |
7102 | rm -rf conftest* |
7103 | ;; |
7104 | *-*-irix6*) |
7105 | # Find out which ABI we are using. |
7106 | echo '#line 7106 "configure"' > conftest.$ac_ext |
7107 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7108 | (eval $ac_compile) 2>&5 |
7109 | ac_status=$? |
7110 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7111 | test $ac_status = 0; }; then |
7112 | if test "$lt_cv_prog_gnu_ld" = yes; then |
7113 | case `/usr/bin/file conftest.$ac_objext` in |
7114 | *32-bit*) |
7115 | LD="${LD-ld} -melf32bsmip" |
7116 | ;; |
7117 | *N32*) |
7118 | LD="${LD-ld} -melf32bmipn32" |
7119 | ;; |
7120 | *64-bit*) |
7121 | LD="${LD-ld} -melf64bmip" |
7122 | ;; |
7123 | esac |
7124 | else |
7125 | case `/usr/bin/file conftest.$ac_objext` in |
7126 | *32-bit*) |
7127 | LD="${LD-ld} -32" |
7128 | ;; |
7129 | *N32*) |
7130 | LD="${LD-ld} -n32" |
7131 | ;; |
7132 | *64-bit*) |
7133 | LD="${LD-ld} -64" |
7134 | ;; |
7135 | esac |
7136 | fi |
7137 | fi |
7138 | rm -rf conftest* |
7139 | ;; |
7140 | |
7141 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
7142 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
7143 | # Find out which ABI we are using. |
7144 | echo 'int i;' > conftest.$ac_ext |
7145 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7146 | (eval $ac_compile) 2>&5 |
7147 | ac_status=$? |
7148 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7149 | test $ac_status = 0; }; then |
7150 | case `/usr/bin/file conftest.o` in |
7151 | *32-bit*) |
7152 | case $host in |
7153 | x86_64-*kfreebsd*-gnu) |
7154 | LD="${LD-ld} -m elf_i386_fbsd" |
7155 | ;; |
7156 | x86_64-*linux*) |
7157 | LD="${LD-ld} -m elf_i386" |
7158 | ;; |
7159 | ppc64-*linux*|powerpc64-*linux*) |
7160 | LD="${LD-ld} -m elf32ppclinux" |
7161 | ;; |
7162 | s390x-*linux*) |
7163 | LD="${LD-ld} -m elf_s390" |
7164 | ;; |
7165 | sparc64-*linux*) |
7166 | LD="${LD-ld} -m elf32_sparc" |
7167 | ;; |
7168 | esac |
7169 | ;; |
7170 | *64-bit*) |
7171 | case $host in |
7172 | x86_64-*kfreebsd*-gnu) |
7173 | LD="${LD-ld} -m elf_x86_64_fbsd" |
7174 | ;; |
7175 | x86_64-*linux*) |
7176 | LD="${LD-ld} -m elf_x86_64" |
7177 | ;; |
7178 | ppc*-*linux*|powerpc*-*linux*) |
7179 | LD="${LD-ld} -m elf64ppc" |
7180 | ;; |
7181 | s390*-*linux*|s390*-*tpf*) |
7182 | LD="${LD-ld} -m elf64_s390" |
7183 | ;; |
7184 | sparc*-*linux*) |
7185 | LD="${LD-ld} -m elf64_sparc" |
7186 | ;; |
7187 | esac |
7188 | ;; |
7189 | esac |
7190 | fi |
7191 | rm -rf conftest* |
7192 | ;; |
7193 | |
7194 | *-*-sco3.2v5*) |
7195 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
7196 | SAVE_CFLAGS="$CFLAGS" |
7197 | CFLAGS="$CFLAGS -belf" |
7198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
7199 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } |
7200 | if test "${lt_cv_cc_needs_belf+set}" = set; then : |
7201 | $as_echo_n "(cached) " >&6 |
7202 | else |
7203 | ac_ext=c |
7204 | ac_cpp='$CPP $CPPFLAGS' |
7205 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
7206 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
7207 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
7208 | |
7209 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7210 | /* end confdefs.h. */ |
7211 | |
7212 | int |
7213 | main () |
7214 | { |
7215 | |
7216 | ; |
7217 | return 0; |
7218 | } |
7219 | _ACEOF |
7220 | if ac_fn_c_try_link "$LINENO"; then : |
7221 | lt_cv_cc_needs_belf=yes |
7222 | else |
7223 | lt_cv_cc_needs_belf=no |
7224 | fi |
7225 | rm -f core conftest.err conftest.$ac_objext \ |
7226 | conftest$ac_exeext conftest.$ac_ext |
7227 | ac_ext=c |
7228 | ac_cpp='$CPP $CPPFLAGS' |
7229 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
7230 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
7231 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
7232 | |
7233 | fi |
7234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
7235 | $as_echo "$lt_cv_cc_needs_belf" >&6; } |
7236 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
7237 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
7238 | CFLAGS="$SAVE_CFLAGS" |
7239 | fi |
7240 | ;; |
7241 | sparc*-*solaris*) |
7242 | # Find out which ABI we are using. |
7243 | echo 'int i;' > conftest.$ac_ext |
7244 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7245 | (eval $ac_compile) 2>&5 |
7246 | ac_status=$? |
7247 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7248 | test $ac_status = 0; }; then |
7249 | case `/usr/bin/file conftest.o` in |
7250 | *64-bit*) |
7251 | case $lt_cv_prog_gnu_ld in |
7252 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
7253 | *) |
7254 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
7255 | LD="${LD-ld} -64" |
7256 | fi |
7257 | ;; |
7258 | esac |
7259 | ;; |
7260 | esac |
7261 | fi |
7262 | rm -rf conftest* |
7263 | ;; |
7264 | esac |
7265 | |
7266 | need_locks="$enable_libtool_lock" |
7267 | |
7268 | |
7269 | case $host_os in |
7270 | rhapsody* | darwin*) |
7271 | if test -n "$ac_tool_prefix"; then |
7272 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. |
7273 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 |
7274 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7275 | $as_echo_n "checking for $ac_word... " >&6; } |
7276 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : |
7277 | $as_echo_n "(cached) " >&6 |
7278 | else |
7279 | if test -n "$DSYMUTIL"; then |
7280 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. |
7281 | else |
7282 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7283 | for as_dir in $PATH |
7284 | do |
7285 | IFS=$as_save_IFS |
7286 | test -z "$as_dir" && as_dir=. |
7287 | for ac_exec_ext in '' $ac_executable_extensions; do |
7288 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7289 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
7290 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7291 | break 2 |
7292 | fi |
7293 | done |
7294 | done |
7295 | IFS=$as_save_IFS |
7296 | |
7297 | fi |
7298 | fi |
7299 | DSYMUTIL=$ac_cv_prog_DSYMUTIL |
7300 | if test -n "$DSYMUTIL"; then |
7301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
7302 | $as_echo "$DSYMUTIL" >&6; } |
7303 | else |
7304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7305 | $as_echo "no" >&6; } |
7306 | fi |
7307 | |
7308 | |
7309 | fi |
7310 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
7311 | ac_ct_DSYMUTIL=$DSYMUTIL |
7312 | # Extract the first word of "dsymutil", so it can be a program name with args. |
7313 | set dummy dsymutil; ac_word=$2 |
7314 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7315 | $as_echo_n "checking for $ac_word... " >&6; } |
7316 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : |
7317 | $as_echo_n "(cached) " >&6 |
7318 | else |
7319 | if test -n "$ac_ct_DSYMUTIL"; then |
7320 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. |
7321 | else |
7322 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7323 | for as_dir in $PATH |
7324 | do |
7325 | IFS=$as_save_IFS |
7326 | test -z "$as_dir" && as_dir=. |
7327 | for ac_exec_ext in '' $ac_executable_extensions; do |
7328 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7329 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
7330 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7331 | break 2 |
7332 | fi |
7333 | done |
7334 | done |
7335 | IFS=$as_save_IFS |
7336 | |
7337 | fi |
7338 | fi |
7339 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
7340 | if test -n "$ac_ct_DSYMUTIL"; then |
7341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
7342 | $as_echo "$ac_ct_DSYMUTIL" >&6; } |
7343 | else |
7344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7345 | $as_echo "no" >&6; } |
7346 | fi |
7347 | |
7348 | if test "x$ac_ct_DSYMUTIL" = x; then |
7349 | DSYMUTIL=":" |
7350 | else |
7351 | case $cross_compiling:$ac_tool_warned in |
7352 | yes:) |
7353 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
7354 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7355 | ac_tool_warned=yes ;; |
7356 | esac |
7357 | DSYMUTIL=$ac_ct_DSYMUTIL |
7358 | fi |
7359 | else |
7360 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
7361 | fi |
7362 | |
7363 | if test -n "$ac_tool_prefix"; then |
7364 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
7365 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 |
7366 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7367 | $as_echo_n "checking for $ac_word... " >&6; } |
7368 | if test "${ac_cv_prog_NMEDIT+set}" = set; then : |
7369 | $as_echo_n "(cached) " >&6 |
7370 | else |
7371 | if test -n "$NMEDIT"; then |
7372 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. |
7373 | else |
7374 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7375 | for as_dir in $PATH |
7376 | do |
7377 | IFS=$as_save_IFS |
7378 | test -z "$as_dir" && as_dir=. |
7379 | for ac_exec_ext in '' $ac_executable_extensions; do |
7380 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7381 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
7382 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7383 | break 2 |
7384 | fi |
7385 | done |
7386 | done |
7387 | IFS=$as_save_IFS |
7388 | |
7389 | fi |
7390 | fi |
7391 | NMEDIT=$ac_cv_prog_NMEDIT |
7392 | if test -n "$NMEDIT"; then |
7393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
7394 | $as_echo "$NMEDIT" >&6; } |
7395 | else |
7396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7397 | $as_echo "no" >&6; } |
7398 | fi |
7399 | |
7400 | |
7401 | fi |
7402 | if test -z "$ac_cv_prog_NMEDIT"; then |
7403 | ac_ct_NMEDIT=$NMEDIT |
7404 | # Extract the first word of "nmedit", so it can be a program name with args. |
7405 | set dummy nmedit; ac_word=$2 |
7406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7407 | $as_echo_n "checking for $ac_word... " >&6; } |
7408 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : |
7409 | $as_echo_n "(cached) " >&6 |
7410 | else |
7411 | if test -n "$ac_ct_NMEDIT"; then |
7412 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. |
7413 | else |
7414 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7415 | for as_dir in $PATH |
7416 | do |
7417 | IFS=$as_save_IFS |
7418 | test -z "$as_dir" && as_dir=. |
7419 | for ac_exec_ext in '' $ac_executable_extensions; do |
7420 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7421 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
7422 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7423 | break 2 |
7424 | fi |
7425 | done |
7426 | done |
7427 | IFS=$as_save_IFS |
7428 | |
7429 | fi |
7430 | fi |
7431 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
7432 | if test -n "$ac_ct_NMEDIT"; then |
7433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
7434 | $as_echo "$ac_ct_NMEDIT" >&6; } |
7435 | else |
7436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7437 | $as_echo "no" >&6; } |
7438 | fi |
7439 | |
7440 | if test "x$ac_ct_NMEDIT" = x; then |
7441 | NMEDIT=":" |
7442 | else |
7443 | case $cross_compiling:$ac_tool_warned in |
7444 | yes:) |
7445 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
7446 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7447 | ac_tool_warned=yes ;; |
7448 | esac |
7449 | NMEDIT=$ac_ct_NMEDIT |
7450 | fi |
7451 | else |
7452 | NMEDIT="$ac_cv_prog_NMEDIT" |
7453 | fi |
7454 | |
7455 | if test -n "$ac_tool_prefix"; then |
7456 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
7457 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 |
7458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7459 | $as_echo_n "checking for $ac_word... " >&6; } |
7460 | if test "${ac_cv_prog_LIPO+set}" = set; then : |
7461 | $as_echo_n "(cached) " >&6 |
7462 | else |
7463 | if test -n "$LIPO"; then |
7464 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. |
7465 | else |
7466 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7467 | for as_dir in $PATH |
7468 | do |
7469 | IFS=$as_save_IFS |
7470 | test -z "$as_dir" && as_dir=. |
7471 | for ac_exec_ext in '' $ac_executable_extensions; do |
7472 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7473 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
7474 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7475 | break 2 |
7476 | fi |
7477 | done |
7478 | done |
7479 | IFS=$as_save_IFS |
7480 | |
7481 | fi |
7482 | fi |
7483 | LIPO=$ac_cv_prog_LIPO |
7484 | if test -n "$LIPO"; then |
7485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
7486 | $as_echo "$LIPO" >&6; } |
7487 | else |
7488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7489 | $as_echo "no" >&6; } |
7490 | fi |
7491 | |
7492 | |
7493 | fi |
7494 | if test -z "$ac_cv_prog_LIPO"; then |
7495 | ac_ct_LIPO=$LIPO |
7496 | # Extract the first word of "lipo", so it can be a program name with args. |
7497 | set dummy lipo; ac_word=$2 |
7498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7499 | $as_echo_n "checking for $ac_word... " >&6; } |
7500 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : |
7501 | $as_echo_n "(cached) " >&6 |
7502 | else |
7503 | if test -n "$ac_ct_LIPO"; then |
7504 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. |
7505 | else |
7506 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7507 | for as_dir in $PATH |
7508 | do |
7509 | IFS=$as_save_IFS |
7510 | test -z "$as_dir" && as_dir=. |
7511 | for ac_exec_ext in '' $ac_executable_extensions; do |
7512 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7513 | ac_cv_prog_ac_ct_LIPO="lipo" |
7514 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7515 | break 2 |
7516 | fi |
7517 | done |
7518 | done |
7519 | IFS=$as_save_IFS |
7520 | |
7521 | fi |
7522 | fi |
7523 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
7524 | if test -n "$ac_ct_LIPO"; then |
7525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
7526 | $as_echo "$ac_ct_LIPO" >&6; } |
7527 | else |
7528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7529 | $as_echo "no" >&6; } |
7530 | fi |
7531 | |
7532 | if test "x$ac_ct_LIPO" = x; then |
7533 | LIPO=":" |
7534 | else |
7535 | case $cross_compiling:$ac_tool_warned in |
7536 | yes:) |
7537 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
7538 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7539 | ac_tool_warned=yes ;; |
7540 | esac |
7541 | LIPO=$ac_ct_LIPO |
7542 | fi |
7543 | else |
7544 | LIPO="$ac_cv_prog_LIPO" |
7545 | fi |
7546 | |
7547 | if test -n "$ac_tool_prefix"; then |
7548 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. |
7549 | set dummy ${ac_tool_prefix}otool; ac_word=$2 |
7550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7551 | $as_echo_n "checking for $ac_word... " >&6; } |
7552 | if test "${ac_cv_prog_OTOOL+set}" = set; then : |
7553 | $as_echo_n "(cached) " >&6 |
7554 | else |
7555 | if test -n "$OTOOL"; then |
7556 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. |
7557 | else |
7558 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7559 | for as_dir in $PATH |
7560 | do |
7561 | IFS=$as_save_IFS |
7562 | test -z "$as_dir" && as_dir=. |
7563 | for ac_exec_ext in '' $ac_executable_extensions; do |
7564 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7565 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
7566 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7567 | break 2 |
7568 | fi |
7569 | done |
7570 | done |
7571 | IFS=$as_save_IFS |
7572 | |
7573 | fi |
7574 | fi |
7575 | OTOOL=$ac_cv_prog_OTOOL |
7576 | if test -n "$OTOOL"; then |
7577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
7578 | $as_echo "$OTOOL" >&6; } |
7579 | else |
7580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7581 | $as_echo "no" >&6; } |
7582 | fi |
7583 | |
7584 | |
7585 | fi |
7586 | if test -z "$ac_cv_prog_OTOOL"; then |
7587 | ac_ct_OTOOL=$OTOOL |
7588 | # Extract the first word of "otool", so it can be a program name with args. |
7589 | set dummy otool; ac_word=$2 |
7590 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7591 | $as_echo_n "checking for $ac_word... " >&6; } |
7592 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : |
7593 | $as_echo_n "(cached) " >&6 |
7594 | else |
7595 | if test -n "$ac_ct_OTOOL"; then |
7596 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. |
7597 | else |
7598 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7599 | for as_dir in $PATH |
7600 | do |
7601 | IFS=$as_save_IFS |
7602 | test -z "$as_dir" && as_dir=. |
7603 | for ac_exec_ext in '' $ac_executable_extensions; do |
7604 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7605 | ac_cv_prog_ac_ct_OTOOL="otool" |
7606 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7607 | break 2 |
7608 | fi |
7609 | done |
7610 | done |
7611 | IFS=$as_save_IFS |
7612 | |
7613 | fi |
7614 | fi |
7615 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
7616 | if test -n "$ac_ct_OTOOL"; then |
7617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
7618 | $as_echo "$ac_ct_OTOOL" >&6; } |
7619 | else |
7620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7621 | $as_echo "no" >&6; } |
7622 | fi |
7623 | |
7624 | if test "x$ac_ct_OTOOL" = x; then |
7625 | OTOOL=":" |
7626 | else |
7627 | case $cross_compiling:$ac_tool_warned in |
7628 | yes:) |
7629 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
7630 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7631 | ac_tool_warned=yes ;; |
7632 | esac |
7633 | OTOOL=$ac_ct_OTOOL |
7634 | fi |
7635 | else |
7636 | OTOOL="$ac_cv_prog_OTOOL" |
7637 | fi |
7638 | |
7639 | if test -n "$ac_tool_prefix"; then |
7640 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. |
7641 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 |
7642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7643 | $as_echo_n "checking for $ac_word... " >&6; } |
7644 | if test "${ac_cv_prog_OTOOL64+set}" = set; then : |
7645 | $as_echo_n "(cached) " >&6 |
7646 | else |
7647 | if test -n "$OTOOL64"; then |
7648 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. |
7649 | else |
7650 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7651 | for as_dir in $PATH |
7652 | do |
7653 | IFS=$as_save_IFS |
7654 | test -z "$as_dir" && as_dir=. |
7655 | for ac_exec_ext in '' $ac_executable_extensions; do |
7656 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7657 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
7658 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7659 | break 2 |
7660 | fi |
7661 | done |
7662 | done |
7663 | IFS=$as_save_IFS |
7664 | |
7665 | fi |
7666 | fi |
7667 | OTOOL64=$ac_cv_prog_OTOOL64 |
7668 | if test -n "$OTOOL64"; then |
7669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
7670 | $as_echo "$OTOOL64" >&6; } |
7671 | else |
7672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7673 | $as_echo "no" >&6; } |
7674 | fi |
7675 | |
7676 | |
7677 | fi |
7678 | if test -z "$ac_cv_prog_OTOOL64"; then |
7679 | ac_ct_OTOOL64=$OTOOL64 |
7680 | # Extract the first word of "otool64", so it can be a program name with args. |
7681 | set dummy otool64; ac_word=$2 |
7682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7683 | $as_echo_n "checking for $ac_word... " >&6; } |
7684 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : |
7685 | $as_echo_n "(cached) " >&6 |
7686 | else |
7687 | if test -n "$ac_ct_OTOOL64"; then |
7688 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. |
7689 | else |
7690 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7691 | for as_dir in $PATH |
7692 | do |
7693 | IFS=$as_save_IFS |
7694 | test -z "$as_dir" && as_dir=. |
7695 | for ac_exec_ext in '' $ac_executable_extensions; do |
7696 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7697 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
7698 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7699 | break 2 |
7700 | fi |
7701 | done |
7702 | done |
7703 | IFS=$as_save_IFS |
7704 | |
7705 | fi |
7706 | fi |
7707 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
7708 | if test -n "$ac_ct_OTOOL64"; then |
7709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
7710 | $as_echo "$ac_ct_OTOOL64" >&6; } |
7711 | else |
7712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7713 | $as_echo "no" >&6; } |
7714 | fi |
7715 | |
7716 | if test "x$ac_ct_OTOOL64" = x; then |
7717 | OTOOL64=":" |
7718 | else |
7719 | case $cross_compiling:$ac_tool_warned in |
7720 | yes:) |
7721 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
7722 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7723 | ac_tool_warned=yes ;; |
7724 | esac |
7725 | OTOOL64=$ac_ct_OTOOL64 |
7726 | fi |
7727 | else |
7728 | OTOOL64="$ac_cv_prog_OTOOL64" |
7729 | fi |
7730 | |
7731 | |
7732 | |
7733 | |
7734 | |
7735 | |
7736 | |
7737 | |
7738 | |
7739 | |
7740 | |
7741 | |
7742 | |
7743 | |
7744 | |
7745 | |
7746 | |
7747 | |
7748 | |
7749 | |
7750 | |
7751 | |
7752 | |
7753 | |
7754 | |
7755 | |
7756 | |
7757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
7758 | $as_echo_n "checking for -single_module linker flag... " >&6; } |
7759 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then : |
7760 | $as_echo_n "(cached) " >&6 |
7761 | else |
7762 | lt_cv_apple_cc_single_mod=no |
7763 | if test -z "${LT_MULTI_MODULE}"; then |
7764 | # By default we will add the -single_module flag. You can override |
7765 | # by either setting the environment variable LT_MULTI_MODULE |
7766 | # non-empty at configure time, or by adding -multi_module to the |
7767 | # link flags. |
7768 | rm -rf libconftest.dylib* |
7769 | echo "int foo(void){return 1;}" > conftest.c |
7770 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
7771 | -dynamiclib -Wl,-single_module conftest.c" >&5 |
7772 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
7773 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
7774 | _lt_result=$? |
7775 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then |
7776 | lt_cv_apple_cc_single_mod=yes |
7777 | else |
7778 | cat conftest.err >&5 |
7779 | fi |
7780 | rm -rf libconftest.dylib* |
7781 | rm -f conftest.* |
7782 | fi |
7783 | fi |
7784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
7785 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
7786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
7787 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } |
7788 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : |
7789 | $as_echo_n "(cached) " >&6 |
7790 | else |
7791 | lt_cv_ld_exported_symbols_list=no |
7792 | save_LDFLAGS=$LDFLAGS |
7793 | echo "_main" > conftest.sym |
7794 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
7795 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7796 | /* end confdefs.h. */ |
7797 | |
7798 | int |
7799 | main () |
7800 | { |
7801 | |
7802 | ; |
7803 | return 0; |
7804 | } |
7805 | _ACEOF |
7806 | if ac_fn_c_try_link "$LINENO"; then : |
7807 | lt_cv_ld_exported_symbols_list=yes |
7808 | else |
7809 | lt_cv_ld_exported_symbols_list=no |
7810 | fi |
7811 | rm -f core conftest.err conftest.$ac_objext \ |
7812 | conftest$ac_exeext conftest.$ac_ext |
7813 | LDFLAGS="$save_LDFLAGS" |
7814 | |
7815 | fi |
7816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
7817 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
7818 | case $host_os in |
7819 | rhapsody* | darwin1.[012]) |
7820 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
7821 | darwin1.*) |
7822 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
7823 | darwin*) # darwin 5.x on |
7824 | # if running on 10.5 or later, the deployment target defaults |
7825 | # to the OS version, if on x86, and 10.4, the deployment |
7826 | # target defaults to 10.4. Don't you love it? |
7827 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
7828 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) |
7829 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
7830 | 10.[012]*) |
7831 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
7832 | 10.*) |
7833 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
7834 | esac |
7835 | ;; |
7836 | esac |
7837 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then |
7838 | _lt_dar_single_mod='$single_module' |
7839 | fi |
7840 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then |
7841 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' |
7842 | else |
7843 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' |
7844 | fi |
7845 | if test "$DSYMUTIL" != ":"; then |
7846 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
7847 | else |
7848 | _lt_dsymutil= |
7849 | fi |
7850 | ;; |
7851 | esac |
7852 | |
7853 | for ac_header in dlfcn.h |
7854 | do : |
7855 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default |
7856 | " |
7857 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : |
7858 | cat >>confdefs.h <<_ACEOF |
7859 | #define HAVE_DLFCN_H 1 |
7860 | _ACEOF |
7861 | |
7862 | fi |
7863 | |
7864 | done |
7865 | |
7866 | |
7867 | |
7868 | # Set options |
7869 | |
7870 | |
7871 | |
7872 | enable_dlopen=no |
7873 | |
7874 | |
7875 | enable_win32_dll=no |
7876 | |
7877 | |
7878 | # Check whether --enable-shared was given. |
7879 | if test "${enable_shared+set}" = set; then : |
7880 | enableval=$enable_shared; p=${PACKAGE-default} |
7881 | case $enableval in |
7882 | yes) enable_shared=yes ;; |
7883 | no) enable_shared=no ;; |
7884 | *) |
7885 | enable_shared=no |
7886 | # Look at the argument we got. We use all the common list separators. |
7887 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
7888 | for pkg in $enableval; do |
7889 | IFS="$lt_save_ifs" |
7890 | if test "X$pkg" = "X$p"; then |
7891 | enable_shared=yes |
7892 | fi |
7893 | done |
7894 | IFS="$lt_save_ifs" |
7895 | ;; |
7896 | esac |
7897 | else |
7898 | enable_shared=yes |
7899 | fi |
7900 | |
7901 | |
7902 | |
7903 | |
7904 | |
7905 | |
7906 | |
7907 | |
7908 | |
7909 | # Check whether --enable-static was given. |
7910 | if test "${enable_static+set}" = set; then : |
7911 | enableval=$enable_static; p=${PACKAGE-default} |
7912 | case $enableval in |
7913 | yes) enable_static=yes ;; |
7914 | no) enable_static=no ;; |
7915 | *) |
7916 | enable_static=no |
7917 | # Look at the argument we got. We use all the common list separators. |
7918 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
7919 | for pkg in $enableval; do |
7920 | IFS="$lt_save_ifs" |
7921 | if test "X$pkg" = "X$p"; then |
7922 | enable_static=yes |
7923 | fi |
7924 | done |
7925 | IFS="$lt_save_ifs" |
7926 | ;; |
7927 | esac |
7928 | else |
7929 | enable_static=yes |
7930 | fi |
7931 | |
7932 | |
7933 | |
7934 | |
7935 | |
7936 | |
7937 | |
7938 | |
7939 | |
7940 | |
7941 | # Check whether --with-pic was given. |
7942 | if test "${with_pic+set}" = set; then : |
7943 | withval=$with_pic; pic_mode="$withval" |
7944 | else |
7945 | pic_mode=default |
7946 | fi |
7947 | |
7948 | |
7949 | test -z "$pic_mode" && pic_mode=default |
7950 | |
7951 | |
7952 | |
7953 | |
7954 | |
7955 | |
7956 | |
7957 | # Check whether --enable-fast-install was given. |
7958 | if test "${enable_fast_install+set}" = set; then : |
7959 | enableval=$enable_fast_install; p=${PACKAGE-default} |
7960 | case $enableval in |
7961 | yes) enable_fast_install=yes ;; |
7962 | no) enable_fast_install=no ;; |
7963 | *) |
7964 | enable_fast_install=no |
7965 | # Look at the argument we got. We use all the common list separators. |
7966 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
7967 | for pkg in $enableval; do |
7968 | IFS="$lt_save_ifs" |
7969 | if test "X$pkg" = "X$p"; then |
7970 | enable_fast_install=yes |
7971 | fi |
7972 | done |
7973 | IFS="$lt_save_ifs" |
7974 | ;; |
7975 | esac |
7976 | else |
7977 | enable_fast_install=yes |
7978 | fi |
7979 | |
7980 | |
7981 | |
7982 | |
7983 | |
7984 | |
7985 | |
7986 | |
7987 | |
7988 | |
7989 | |
7990 | # This can be used to rebuild libtool when needed |
7991 | LIBTOOL_DEPS="$ltmain" |
7992 | |
7993 | # Always use our own libtool. |
7994 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
7995 | |
7996 | |
7997 | |
7998 | |
7999 | |
8000 | |
8001 | |
8002 | |
8003 | |
8004 | |
8005 | |
8006 | |
8007 | |
8008 | |
8009 | |
8010 | |
8011 | |
8012 | |
8013 | |
8014 | |
8015 | |
8016 | |
8017 | |
8018 | |
8019 | |
8020 | test -z "$LN_S" && LN_S="ln -s" |
8021 | |
8022 | |
8023 | |
8024 | |
8025 | |
8026 | |
8027 | |
8028 | |
8029 | |
8030 | |
8031 | |
8032 | |
8033 | |
8034 | |
8035 | if test -n "${ZSH_VERSION+set}" ; then |
8036 | setopt NO_GLOB_SUBST |
8037 | fi |
8038 | |
8039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
8040 | $as_echo_n "checking for objdir... " >&6; } |
8041 | if test "${lt_cv_objdir+set}" = set; then : |
8042 | $as_echo_n "(cached) " >&6 |
8043 | else |
8044 | rm -f .libs 2>/dev/null |
8045 | mkdir .libs 2>/dev/null |
8046 | if test -d .libs; then |
8047 | lt_cv_objdir=.libs |
8048 | else |
8049 | # MS-DOS does not allow filenames that begin with a dot. |
8050 | lt_cv_objdir=_libs |
8051 | fi |
8052 | rmdir .libs 2>/dev/null |
8053 | fi |
8054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
8055 | $as_echo "$lt_cv_objdir" >&6; } |
8056 | objdir=$lt_cv_objdir |
8057 | |
8058 | |
8059 | |
8060 | |
8061 | |
8062 | cat >>confdefs.h <<_ACEOF |
8063 | #define LT_OBJDIR "$lt_cv_objdir/" |
8064 | _ACEOF |
8065 | |
8066 | |
8067 | |
8068 | |
8069 | |
8070 | |
8071 | |
8072 | |
8073 | |
8074 | |
8075 | |
8076 | |
8077 | |
8078 | |
8079 | |
8080 | |
8081 | |
8082 | case $host_os in |
8083 | aix3*) |
8084 | # AIX sometimes has problems with the GCC collect2 program. For some |
8085 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
8086 | # vanish in a puff of smoke. |
8087 | if test "X${COLLECT_NAMES+set}" != Xset; then |
8088 | COLLECT_NAMES= |
8089 | export COLLECT_NAMES |
8090 | fi |
8091 | ;; |
8092 | esac |
8093 | |
8094 | # Sed substitution that helps us do robust quoting. It backslashifies |
8095 | # metacharacters that are still active within double-quoted strings. |
8096 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' |
8097 | |
8098 | # Same as above, but do not quote variable references. |
8099 | double_quote_subst='s/\(["`\\]\)/\\\1/g' |
8100 | |
8101 | # Sed substitution to delay expansion of an escaped shell variable in a |
8102 | # double_quote_subst'ed string. |
8103 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
8104 | |
8105 | # Sed substitution to delay expansion of an escaped single quote. |
8106 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
8107 | |
8108 | # Sed substitution to avoid accidental globbing in evaled expressions |
8109 | no_glob_subst='s/\*/\\\*/g' |
8110 | |
8111 | # Global variables: |
8112 | ofile=libtool |
8113 | can_build_shared=yes |
8114 | |
8115 | # All known linkers require a `.a' archive for static linking (except MSVC, |
8116 | # which needs '.lib'). |
8117 | libext=a |
8118 | |
8119 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
8120 | |
8121 | old_CC="$CC" |
8122 | old_CFLAGS="$CFLAGS" |
8123 | |
8124 | # Set sane defaults for various variables |
8125 | test -z "$CC" && CC=cc |
8126 | test -z "$LTCC" && LTCC=$CC |
8127 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
8128 | test -z "$LD" && LD=ld |
8129 | test -z "$ac_objext" && ac_objext=o |
8130 | |
8131 | for cc_temp in $compiler""; do |
8132 | case $cc_temp in |
8133 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
8134 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
8135 | \-*) ;; |
8136 | *) break;; |
8137 | esac |
8138 | done |
8139 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
8140 | |
8141 | |
8142 | # Only perform the check for file, if the check method requires it |
8143 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
8144 | case $deplibs_check_method in |
8145 | file_magic*) |
8146 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
8147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
8148 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } |
8149 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : |
8150 | $as_echo_n "(cached) " >&6 |
8151 | else |
8152 | case $MAGIC_CMD in |
8153 | [\\/*] | ?:[\\/]*) |
8154 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
8155 | ;; |
8156 | *) |
8157 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
8158 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
8159 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
8160 | for ac_dir in $ac_dummy; do |
8161 | IFS="$lt_save_ifs" |
8162 | test -z "$ac_dir" && ac_dir=. |
8163 | if test -f $ac_dir/${ac_tool_prefix}file; then |
8164 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
8165 | if test -n "$file_magic_test_file"; then |
8166 | case $deplibs_check_method in |
8167 | "file_magic "*) |
8168 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
8169 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
8170 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
8171 | $EGREP "$file_magic_regex" > /dev/null; then |
8172 | : |
8173 | else |
8174 | cat <<_LT_EOF 1>&2 |
8175 | |
8176 | *** Warning: the command libtool uses to detect shared libraries, |
8177 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
8178 | *** The result is that libtool may fail to recognize shared libraries |
8179 | *** as such. This will affect the creation of libtool libraries that |
8180 | *** depend on shared libraries, but programs linked with such libtool |
8181 | *** libraries will work regardless of this problem. Nevertheless, you |
8182 | *** may want to report the problem to your system manager and/or to |
8183 | *** bug-libtool@gnu.org |
8184 | |
8185 | _LT_EOF |
8186 | fi ;; |
8187 | esac |
8188 | fi |
8189 | break |
8190 | fi |
8191 | done |
8192 | IFS="$lt_save_ifs" |
8193 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
8194 | ;; |
8195 | esac |
8196 | fi |
8197 | |
8198 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
8199 | if test -n "$MAGIC_CMD"; then |
8200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
8201 | $as_echo "$MAGIC_CMD" >&6; } |
8202 | else |
8203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8204 | $as_echo "no" >&6; } |
8205 | fi |
8206 | |
8207 | |
8208 | |
8209 | |
8210 | |
8211 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
8212 | if test -n "$ac_tool_prefix"; then |
8213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
8214 | $as_echo_n "checking for file... " >&6; } |
8215 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : |
8216 | $as_echo_n "(cached) " >&6 |
8217 | else |
8218 | case $MAGIC_CMD in |
8219 | [\\/*] | ?:[\\/]*) |
8220 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
8221 | ;; |
8222 | *) |
8223 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
8224 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
8225 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
8226 | for ac_dir in $ac_dummy; do |
8227 | IFS="$lt_save_ifs" |
8228 | test -z "$ac_dir" && ac_dir=. |
8229 | if test -f $ac_dir/file; then |
8230 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
8231 | if test -n "$file_magic_test_file"; then |
8232 | case $deplibs_check_method in |
8233 | "file_magic "*) |
8234 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
8235 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
8236 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
8237 | $EGREP "$file_magic_regex" > /dev/null; then |
8238 | : |
8239 | else |
8240 | cat <<_LT_EOF 1>&2 |
8241 | |
8242 | *** Warning: the command libtool uses to detect shared libraries, |
8243 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
8244 | *** The result is that libtool may fail to recognize shared libraries |
8245 | *** as such. This will affect the creation of libtool libraries that |
8246 | *** depend on shared libraries, but programs linked with such libtool |
8247 | *** libraries will work regardless of this problem. Nevertheless, you |
8248 | *** may want to report the problem to your system manager and/or to |
8249 | *** bug-libtool@gnu.org |
8250 | |
8251 | _LT_EOF |
8252 | fi ;; |
8253 | esac |
8254 | fi |
8255 | break |
8256 | fi |
8257 | done |
8258 | IFS="$lt_save_ifs" |
8259 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
8260 | ;; |
8261 | esac |
8262 | fi |
8263 | |
8264 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
8265 | if test -n "$MAGIC_CMD"; then |
8266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
8267 | $as_echo "$MAGIC_CMD" >&6; } |
8268 | else |
8269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8270 | $as_echo "no" >&6; } |
8271 | fi |
8272 | |
8273 | |
8274 | else |
8275 | MAGIC_CMD=: |
8276 | fi |
8277 | fi |
8278 | |
8279 | fi |
8280 | ;; |
8281 | esac |
8282 | |
8283 | # Use C for the default configuration in the libtool script |
8284 | |
8285 | lt_save_CC="$CC" |
8286 | ac_ext=c |
8287 | ac_cpp='$CPP $CPPFLAGS' |
8288 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
8289 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
8290 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
8291 | |
8292 | |
8293 | # Source file extension for C test sources. |
8294 | ac_ext=c |
8295 | |
8296 | # Object file extension for compiled C test sources. |
8297 | objext=o |
8298 | objext=$objext |
8299 | |
8300 | # Code to be used in simple compile tests |
8301 | lt_simple_compile_test_code="int some_variable = 0;" |
8302 | |
8303 | # Code to be used in simple link tests |
8304 | lt_simple_link_test_code='int main(){return(0);}' |
8305 | |
8306 | |
8307 | |
8308 | |
8309 | |
8310 | |
8311 | |
8312 | # If no C compiler was specified, use CC. |
8313 | LTCC=${LTCC-"$CC"} |
8314 | |
8315 | # If no C compiler flags were specified, use CFLAGS. |
8316 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
8317 | |
8318 | # Allow CC to be a program name with arguments. |
8319 | compiler=$CC |
8320 | |
8321 | # Save the default compiler, since it gets overwritten when the other |
8322 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. |
8323 | compiler_DEFAULT=$CC |
8324 | |
8325 | # save warnings/boilerplate of simple test code |
8326 | ac_outfile=conftest.$ac_objext |
8327 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
8328 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
8329 | _lt_compiler_boilerplate=`cat conftest.err` |
8330 | $RM conftest* |
8331 | |
8332 | ac_outfile=conftest.$ac_objext |
8333 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
8334 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
8335 | _lt_linker_boilerplate=`cat conftest.err` |
8336 | $RM -r conftest* |
8337 | |
8338 | |
8339 | ## CAVEAT EMPTOR: |
8340 | ## There is no encapsulation within the following macros, do not change |
8341 | ## the running order or otherwise move them around unless you know exactly |
8342 | ## what you are doing... |
8343 | if test -n "$compiler"; then |
8344 | |
8345 | lt_prog_compiler_no_builtin_flag= |
8346 | |
8347 | if test "$GCC" = yes; then |
8348 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
8349 | |
8350 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
8351 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
8352 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : |
8353 | $as_echo_n "(cached) " >&6 |
8354 | else |
8355 | lt_cv_prog_compiler_rtti_exceptions=no |
8356 | ac_outfile=conftest.$ac_objext |
8357 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
8358 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
8359 | # Insert the option either (1) after the last *FLAGS variable, or |
8360 | # (2) before a word containing "conftest.", or (3) at the end. |
8361 | # Note that $ac_compile itself does not contain backslashes and begins |
8362 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
8363 | # The option is referenced via a variable to avoid confusing sed. |
8364 | lt_compile=`echo "$ac_compile" | $SED \ |
8365 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
8366 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
8367 | -e 's:$: $lt_compiler_flag:'` |
8368 | (eval echo "\"\$as_me:8368: $lt_compile\"" >&5) |
8369 | (eval "$lt_compile" 2>conftest.err) |
8370 | ac_status=$? |
8371 | cat conftest.err >&5 |
8372 | echo "$as_me:8372: \$? = $ac_status" >&5 |
8373 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8374 | # The compiler can only warn and ignore the option if not recognized |
8375 | # So say no if there are warnings other than the usual output. |
8376 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
8377 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8378 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
8379 | lt_cv_prog_compiler_rtti_exceptions=yes |
8380 | fi |
8381 | fi |
8382 | $RM conftest* |
8383 | |
8384 | fi |
8385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
8386 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
8387 | |
8388 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
8389 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
8390 | else |
8391 | : |
8392 | fi |
8393 | |
8394 | fi |
8395 | |
8396 | |
8397 | |
8398 | |
8399 | |
8400 | |
8401 | lt_prog_compiler_wl= |
8402 | lt_prog_compiler_pic= |
8403 | lt_prog_compiler_static= |
8404 | |
8405 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
8406 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
8407 | |
8408 | if test "$GCC" = yes; then |
8409 | lt_prog_compiler_wl='-Wl,' |
8410 | lt_prog_compiler_static='-static' |
8411 | |
8412 | case $host_os in |
8413 | aix*) |
8414 | # All AIX code is PIC. |
8415 | if test "$host_cpu" = ia64; then |
8416 | # AIX 5 now supports IA64 processor |
8417 | lt_prog_compiler_static='-Bstatic' |
8418 | fi |
8419 | ;; |
8420 | |
8421 | amigaos*) |
8422 | case $host_cpu in |
8423 | powerpc) |
8424 | # see comment about AmigaOS4 .so support |
8425 | lt_prog_compiler_pic='-fPIC' |
8426 | ;; |
8427 | m68k) |
8428 | # FIXME: we need at least 68020 code to build shared libraries, but |
8429 | # adding the `-m68020' flag to GCC prevents building anything better, |
8430 | # like `-m68040'. |
8431 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
8432 | ;; |
8433 | esac |
8434 | ;; |
8435 | |
8436 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
8437 | # PIC is the default for these OSes. |
8438 | ;; |
8439 | |
8440 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
8441 | # This hack is so that the source file can tell whether it is being |
8442 | # built for inclusion in a dll (and should export symbols for example). |
8443 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
8444 | # (--disable-auto-import) libraries |
8445 | lt_prog_compiler_pic='-DDLL_EXPORT' |
8446 | ;; |
8447 | |
8448 | darwin* | rhapsody*) |
8449 | # PIC is the default on this platform |
8450 | # Common symbols not allowed in MH_DYLIB files |
8451 | lt_prog_compiler_pic='-fno-common' |
8452 | ;; |
8453 | |
8454 | hpux*) |
8455 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
8456 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
8457 | # sets the default TLS model and affects inlining. |
8458 | case $host_cpu in |
8459 | hppa*64*) |
8460 | # +Z the default |
8461 | ;; |
8462 | *) |
8463 | lt_prog_compiler_pic='-fPIC' |
8464 | ;; |
8465 | esac |
8466 | ;; |
8467 | |
8468 | interix[3-9]*) |
8469 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
8470 | # Instead, we relocate shared libraries at runtime. |
8471 | ;; |
8472 | |
8473 | msdosdjgpp*) |
8474 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
8475 | # on systems that don't support them. |
8476 | lt_prog_compiler_can_build_shared=no |
8477 | enable_shared=no |
8478 | ;; |
8479 | |
8480 | *nto* | *qnx*) |
8481 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
8482 | # it will coredump. |
8483 | lt_prog_compiler_pic='-fPIC -shared' |
8484 | ;; |
8485 | |
8486 | sysv4*MP*) |
8487 | if test -d /usr/nec; then |
8488 | lt_prog_compiler_pic=-Kconform_pic |
8489 | fi |
8490 | ;; |
8491 | |
8492 | *) |
8493 | lt_prog_compiler_pic='-fPIC' |
8494 | ;; |
8495 | esac |
8496 | else |
8497 | # PORTME Check for flag to pass linker flags through the system compiler. |
8498 | case $host_os in |
8499 | aix*) |
8500 | lt_prog_compiler_wl='-Wl,' |
8501 | if test "$host_cpu" = ia64; then |
8502 | # AIX 5 now supports IA64 processor |
8503 | lt_prog_compiler_static='-Bstatic' |
8504 | else |
8505 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
8506 | fi |
8507 | ;; |
8508 | |
8509 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
8510 | # This hack is so that the source file can tell whether it is being |
8511 | # built for inclusion in a dll (and should export symbols for example). |
8512 | lt_prog_compiler_pic='-DDLL_EXPORT' |
8513 | ;; |
8514 | |
8515 | hpux9* | hpux10* | hpux11*) |
8516 | lt_prog_compiler_wl='-Wl,' |
8517 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
8518 | # not for PA HP-UX. |
8519 | case $host_cpu in |
8520 | hppa*64*|ia64*) |
8521 | # +Z the default |
8522 | ;; |
8523 | *) |
8524 | lt_prog_compiler_pic='+Z' |
8525 | ;; |
8526 | esac |
8527 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
8528 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
8529 | ;; |
8530 | |
8531 | irix5* | irix6* | nonstopux*) |
8532 | lt_prog_compiler_wl='-Wl,' |
8533 | # PIC (with -KPIC) is the default. |
8534 | lt_prog_compiler_static='-non_shared' |
8535 | ;; |
8536 | |
8537 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
8538 | case $cc_basename in |
8539 | # old Intel for x86_64 which still supported -KPIC. |
8540 | ecc*) |
8541 | lt_prog_compiler_wl='-Wl,' |
8542 | lt_prog_compiler_pic='-KPIC' |
8543 | lt_prog_compiler_static='-static' |
8544 | ;; |
8545 | # icc used to be incompatible with GCC. |
8546 | # ICC 10 doesn't accept -KPIC any more. |
8547 | icc* | ifort*) |
8548 | lt_prog_compiler_wl='-Wl,' |
8549 | lt_prog_compiler_pic='-fPIC' |
8550 | lt_prog_compiler_static='-static' |
8551 | ;; |
8552 | # Lahey Fortran 8.1. |
8553 | lf95*) |
8554 | lt_prog_compiler_wl='-Wl,' |
8555 | lt_prog_compiler_pic='--shared' |
8556 | lt_prog_compiler_static='--static' |
8557 | ;; |
8558 | pgcc* | pgf77* | pgf90* | pgf95*) |
8559 | # Portland Group compilers (*not* the Pentium gcc compiler, |
8560 | # which looks to be a dead project) |
8561 | lt_prog_compiler_wl='-Wl,' |
8562 | lt_prog_compiler_pic='-fpic' |
8563 | lt_prog_compiler_static='-Bstatic' |
8564 | ;; |
8565 | ccc*) |
8566 | lt_prog_compiler_wl='-Wl,' |
8567 | # All Alpha code is PIC. |
8568 | lt_prog_compiler_static='-non_shared' |
8569 | ;; |
8570 | xl*) |
8571 | # IBM XL C 8.0/Fortran 10.1 on PPC |
8572 | lt_prog_compiler_wl='-Wl,' |
8573 | lt_prog_compiler_pic='-qpic' |
8574 | lt_prog_compiler_static='-qstaticlink' |
8575 | ;; |
8576 | *) |
8577 | case `$CC -V 2>&1 | sed 5q` in |
8578 | *Sun\ C*) |
8579 | # Sun C 5.9 |
8580 | lt_prog_compiler_pic='-KPIC' |
8581 | lt_prog_compiler_static='-Bstatic' |
8582 | lt_prog_compiler_wl='-Wl,' |
8583 | ;; |
8584 | *Sun\ F*) |
8585 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
8586 | lt_prog_compiler_pic='-KPIC' |
8587 | lt_prog_compiler_static='-Bstatic' |
8588 | lt_prog_compiler_wl='' |
8589 | ;; |
8590 | esac |
8591 | ;; |
8592 | esac |
8593 | ;; |
8594 | |
8595 | newsos6) |
8596 | lt_prog_compiler_pic='-KPIC' |
8597 | lt_prog_compiler_static='-Bstatic' |
8598 | ;; |
8599 | |
8600 | *nto* | *qnx*) |
8601 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
8602 | # it will coredump. |
8603 | lt_prog_compiler_pic='-fPIC -shared' |
8604 | ;; |
8605 | |
8606 | osf3* | osf4* | osf5*) |
8607 | lt_prog_compiler_wl='-Wl,' |
8608 | # All OSF/1 code is PIC. |
8609 | lt_prog_compiler_static='-non_shared' |
8610 | ;; |
8611 | |
8612 | rdos*) |
8613 | lt_prog_compiler_static='-non_shared' |
8614 | ;; |
8615 | |
8616 | solaris*) |
8617 | lt_prog_compiler_pic='-KPIC' |
8618 | lt_prog_compiler_static='-Bstatic' |
8619 | case $cc_basename in |
8620 | f77* | f90* | f95*) |
8621 | lt_prog_compiler_wl='-Qoption ld ';; |
8622 | *) |
8623 | lt_prog_compiler_wl='-Wl,';; |
8624 | esac |
8625 | ;; |
8626 | |
8627 | sunos4*) |
8628 | lt_prog_compiler_wl='-Qoption ld ' |
8629 | lt_prog_compiler_pic='-PIC' |
8630 | lt_prog_compiler_static='-Bstatic' |
8631 | ;; |
8632 | |
8633 | sysv4 | sysv4.2uw2* | sysv4.3*) |
8634 | lt_prog_compiler_wl='-Wl,' |
8635 | lt_prog_compiler_pic='-KPIC' |
8636 | lt_prog_compiler_static='-Bstatic' |
8637 | ;; |
8638 | |
8639 | sysv4*MP*) |
8640 | if test -d /usr/nec ;then |
8641 | lt_prog_compiler_pic='-Kconform_pic' |
8642 | lt_prog_compiler_static='-Bstatic' |
8643 | fi |
8644 | ;; |
8645 | |
8646 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
8647 | lt_prog_compiler_wl='-Wl,' |
8648 | lt_prog_compiler_pic='-KPIC' |
8649 | lt_prog_compiler_static='-Bstatic' |
8650 | ;; |
8651 | |
8652 | unicos*) |
8653 | lt_prog_compiler_wl='-Wl,' |
8654 | lt_prog_compiler_can_build_shared=no |
8655 | ;; |
8656 | |
8657 | uts4*) |
8658 | lt_prog_compiler_pic='-pic' |
8659 | lt_prog_compiler_static='-Bstatic' |
8660 | ;; |
8661 | |
8662 | *) |
8663 | lt_prog_compiler_can_build_shared=no |
8664 | ;; |
8665 | esac |
8666 | fi |
8667 | |
8668 | case $host_os in |
8669 | # For platforms which do not support PIC, -DPIC is meaningless: |
8670 | *djgpp*) |
8671 | lt_prog_compiler_pic= |
8672 | ;; |
8673 | *) |
8674 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
8675 | ;; |
8676 | esac |
8677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 |
8678 | $as_echo "$lt_prog_compiler_pic" >&6; } |
8679 | |
8680 | |
8681 | |
8682 | |
8683 | |
8684 | |
8685 | # |
8686 | # Check to make sure the PIC flag actually works. |
8687 | # |
8688 | if test -n "$lt_prog_compiler_pic"; then |
8689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
8690 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
8691 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : |
8692 | $as_echo_n "(cached) " >&6 |
8693 | else |
8694 | lt_cv_prog_compiler_pic_works=no |
8695 | ac_outfile=conftest.$ac_objext |
8696 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
8697 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
8698 | # Insert the option either (1) after the last *FLAGS variable, or |
8699 | # (2) before a word containing "conftest.", or (3) at the end. |
8700 | # Note that $ac_compile itself does not contain backslashes and begins |
8701 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
8702 | # The option is referenced via a variable to avoid confusing sed. |
8703 | lt_compile=`echo "$ac_compile" | $SED \ |
8704 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
8705 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
8706 | -e 's:$: $lt_compiler_flag:'` |
8707 | (eval echo "\"\$as_me:8707: $lt_compile\"" >&5) |
8708 | (eval "$lt_compile" 2>conftest.err) |
8709 | ac_status=$? |
8710 | cat conftest.err >&5 |
8711 | echo "$as_me:8711: \$? = $ac_status" >&5 |
8712 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8713 | # The compiler can only warn and ignore the option if not recognized |
8714 | # So say no if there are warnings other than the usual output. |
8715 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
8716 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8717 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
8718 | lt_cv_prog_compiler_pic_works=yes |
8719 | fi |
8720 | fi |
8721 | $RM conftest* |
8722 | |
8723 | fi |
8724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
8725 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } |
8726 | |
8727 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
8728 | case $lt_prog_compiler_pic in |
8729 | "" | " "*) ;; |
8730 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
8731 | esac |
8732 | else |
8733 | lt_prog_compiler_pic= |
8734 | lt_prog_compiler_can_build_shared=no |
8735 | fi |
8736 | |
8737 | fi |
8738 | |
8739 | |
8740 | |
8741 | |
8742 | |
8743 | |
8744 | # |
8745 | # Check to make sure the static flag actually works. |
8746 | # |
8747 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
8748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
8749 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
8750 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then : |
8751 | $as_echo_n "(cached) " >&6 |
8752 | else |
8753 | lt_cv_prog_compiler_static_works=no |
8754 | save_LDFLAGS="$LDFLAGS" |
8755 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
8756 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
8757 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
8758 | # The linker can only warn and ignore the option if not recognized |
8759 | # So say no if there are warnings |
8760 | if test -s conftest.err; then |
8761 | # Append any errors to the config.log. |
8762 | cat conftest.err 1>&5 |
8763 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
8764 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8765 | if diff conftest.exp conftest.er2 >/dev/null; then |
8766 | lt_cv_prog_compiler_static_works=yes |
8767 | fi |
8768 | else |
8769 | lt_cv_prog_compiler_static_works=yes |
8770 | fi |
8771 | fi |
8772 | $RM -r conftest* |
8773 | LDFLAGS="$save_LDFLAGS" |
8774 | |
8775 | fi |
8776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
8777 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } |
8778 | |
8779 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
8780 | : |
8781 | else |
8782 | lt_prog_compiler_static= |
8783 | fi |
8784 | |
8785 | |
8786 | |
8787 | |
8788 | |
8789 | |
8790 | |
8791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8792 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
8793 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : |
8794 | $as_echo_n "(cached) " >&6 |
8795 | else |
8796 | lt_cv_prog_compiler_c_o=no |
8797 | $RM -r conftest 2>/dev/null |
8798 | mkdir conftest |
8799 | cd conftest |
8800 | mkdir out |
8801 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
8802 | |
8803 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
8804 | # Insert the option either (1) after the last *FLAGS variable, or |
8805 | # (2) before a word containing "conftest.", or (3) at the end. |
8806 | # Note that $ac_compile itself does not contain backslashes and begins |
8807 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
8808 | lt_compile=`echo "$ac_compile" | $SED \ |
8809 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
8810 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
8811 | -e 's:$: $lt_compiler_flag:'` |
8812 | (eval echo "\"\$as_me:8812: $lt_compile\"" >&5) |
8813 | (eval "$lt_compile" 2>out/conftest.err) |
8814 | ac_status=$? |
8815 | cat out/conftest.err >&5 |
8816 | echo "$as_me:8816: \$? = $ac_status" >&5 |
8817 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8818 | then |
8819 | # The compiler can only warn and ignore the option if not recognized |
8820 | # So say no if there are warnings |
8821 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
8822 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
8823 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
8824 | lt_cv_prog_compiler_c_o=yes |
8825 | fi |
8826 | fi |
8827 | chmod u+w . 2>&5 |
8828 | $RM conftest* |
8829 | # SGI C++ compiler will create directory out/ii_files/ for |
8830 | # template instantiation |
8831 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
8832 | $RM out/* && rmdir out |
8833 | cd .. |
8834 | $RM -r conftest |
8835 | $RM conftest* |
8836 | |
8837 | fi |
8838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8839 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
8840 | |
8841 | |
8842 | |
8843 | |
8844 | |
8845 | |
8846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8847 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
8848 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : |
8849 | $as_echo_n "(cached) " >&6 |
8850 | else |
8851 | lt_cv_prog_compiler_c_o=no |
8852 | $RM -r conftest 2>/dev/null |
8853 | mkdir conftest |
8854 | cd conftest |
8855 | mkdir out |
8856 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
8857 | |
8858 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
8859 | # Insert the option either (1) after the last *FLAGS variable, or |
8860 | # (2) before a word containing "conftest.", or (3) at the end. |
8861 | # Note that $ac_compile itself does not contain backslashes and begins |
8862 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
8863 | lt_compile=`echo "$ac_compile" | $SED \ |
8864 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
8865 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
8866 | -e 's:$: $lt_compiler_flag:'` |
8867 | (eval echo "\"\$as_me:8867: $lt_compile\"" >&5) |
8868 | (eval "$lt_compile" 2>out/conftest.err) |
8869 | ac_status=$? |
8870 | cat out/conftest.err >&5 |
8871 | echo "$as_me:8871: \$? = $ac_status" >&5 |
8872 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8873 | then |
8874 | # The compiler can only warn and ignore the option if not recognized |
8875 | # So say no if there are warnings |
8876 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
8877 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
8878 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
8879 | lt_cv_prog_compiler_c_o=yes |
8880 | fi |
8881 | fi |
8882 | chmod u+w . 2>&5 |
8883 | $RM conftest* |
8884 | # SGI C++ compiler will create directory out/ii_files/ for |
8885 | # template instantiation |
8886 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
8887 | $RM out/* && rmdir out |
8888 | cd .. |
8889 | $RM -r conftest |
8890 | $RM conftest* |
8891 | |
8892 | fi |
8893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8894 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
8895 | |
8896 | |
8897 | |
8898 | |
8899 | hard_links="nottested" |
8900 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
8901 | # do not overwrite the value of need_locks provided by the user |
8902 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
8903 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
8904 | hard_links=yes |
8905 | $RM conftest* |
8906 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
8907 | touch conftest.a |
8908 | ln conftest.a conftest.b 2>&5 || hard_links=no |
8909 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
8910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
8911 | $as_echo "$hard_links" >&6; } |
8912 | if test "$hard_links" = no; then |
8913 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
8914 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
8915 | need_locks=warn |
8916 | fi |
8917 | else |
8918 | need_locks=no |
8919 | fi |
8920 | |
8921 | |
8922 | |
8923 | |
8924 | |
8925 | |
8926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
8927 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
8928 | |
8929 | runpath_var= |
8930 | allow_undefined_flag= |
8931 | always_export_symbols=no |
8932 | archive_cmds= |
8933 | archive_expsym_cmds= |
8934 | compiler_needs_object=no |
8935 | enable_shared_with_static_runtimes=no |
8936 | export_dynamic_flag_spec= |
8937 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
8938 | hardcode_automatic=no |
8939 | hardcode_direct=no |
8940 | hardcode_direct_absolute=no |
8941 | hardcode_libdir_flag_spec= |
8942 | hardcode_libdir_flag_spec_ld= |
8943 | hardcode_libdir_separator= |
8944 | hardcode_minus_L=no |
8945 | hardcode_shlibpath_var=unsupported |
8946 | inherit_rpath=no |
8947 | link_all_deplibs=unknown |
8948 | module_cmds= |
8949 | module_expsym_cmds= |
8950 | old_archive_from_new_cmds= |
8951 | old_archive_from_expsyms_cmds= |
8952 | thread_safe_flag_spec= |
8953 | whole_archive_flag_spec= |
8954 | # include_expsyms should be a list of space-separated symbols to be *always* |
8955 | # included in the symbol list |
8956 | include_expsyms= |
8957 | # exclude_expsyms can be an extended regexp of symbols to exclude |
8958 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
8959 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
8960 | # as well as any symbol that contains `d'. |
8961 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
8962 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
8963 | # platforms (ab)use it in PIC code, but their linkers get confused if |
8964 | # the symbol is explicitly referenced. Since portable code cannot |
8965 | # rely on this symbol name, it's probably fine to never include it in |
8966 | # preloaded symbol tables. |
8967 | # Exclude shared library initialization/finalization symbols. |
8968 | extract_expsyms_cmds= |
8969 | |
8970 | case $host_os in |
8971 | cygwin* | mingw* | pw32* | cegcc*) |
8972 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
8973 | # When not using gcc, we currently assume that we are using |
8974 | # Microsoft Visual C++. |
8975 | if test "$GCC" != yes; then |
8976 | with_gnu_ld=no |
8977 | fi |
8978 | ;; |
8979 | interix*) |
8980 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
8981 | with_gnu_ld=yes |
8982 | ;; |
8983 | openbsd*) |
8984 | with_gnu_ld=no |
8985 | ;; |
8986 | linux* | k*bsd*-gnu) |
8987 | link_all_deplibs=no |
8988 | ;; |
8989 | esac |
8990 | |
8991 | ld_shlibs=yes |
8992 | if test "$with_gnu_ld" = yes; then |
8993 | # If archive_cmds runs LD, not CC, wlarc should be empty |
8994 | wlarc='${wl}' |
8995 | |
8996 | # Set some defaults for GNU ld with shared library support. These |
8997 | # are reset later if shared libraries are not supported. Putting them |
8998 | # here allows them to be overridden if necessary. |
8999 | runpath_var=LD_RUN_PATH |
9000 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
9001 | export_dynamic_flag_spec='${wl}--export-dynamic' |
9002 | # ancient GNU ld didn't support --whole-archive et. al. |
9003 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
9004 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
9005 | else |
9006 | whole_archive_flag_spec= |
9007 | fi |
9008 | supports_anon_versioning=no |
9009 | case `$LD -v 2>&1` in |
9010 | *GNU\ gold*) supports_anon_versioning=yes ;; |
9011 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
9012 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
9013 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
9014 | *\ 2.11.*) ;; # other 2.11 versions |
9015 | *) supports_anon_versioning=yes ;; |
9016 | esac |
9017 | |
9018 | # See if GNU ld supports shared libraries. |
9019 | case $host_os in |
9020 | aix[3-9]*) |
9021 | # On AIX/PPC, the GNU linker is very broken |
9022 | if test "$host_cpu" != ia64; then |
9023 | ld_shlibs=no |
9024 | cat <<_LT_EOF 1>&2 |
9025 | |
9026 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
9027 | *** to be unable to reliably create shared libraries on AIX. |
9028 | *** Therefore, libtool is disabling shared libraries support. If you |
9029 | *** really care for shared libraries, you may want to modify your PATH |
9030 | *** so that a non-GNU linker is found, and then restart. |
9031 | |
9032 | _LT_EOF |
9033 | fi |
9034 | ;; |
9035 | |
9036 | amigaos*) |
9037 | case $host_cpu in |
9038 | powerpc) |
9039 | # see comment about AmigaOS4 .so support |
9040 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
9041 | archive_expsym_cmds='' |
9042 | ;; |
9043 | m68k) |
9044 | 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)' |
9045 | hardcode_libdir_flag_spec='-L$libdir' |
9046 | hardcode_minus_L=yes |
9047 | ;; |
9048 | esac |
9049 | ;; |
9050 | |
9051 | beos*) |
9052 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
9053 | allow_undefined_flag=unsupported |
9054 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
9055 | # support --undefined. This deserves some investigation. FIXME |
9056 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
9057 | else |
9058 | ld_shlibs=no |
9059 | fi |
9060 | ;; |
9061 | |
9062 | cygwin* | mingw* | pw32* | cegcc*) |
9063 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
9064 | # as there is no search path for DLLs. |
9065 | hardcode_libdir_flag_spec='-L$libdir' |
9066 | allow_undefined_flag=unsupported |
9067 | always_export_symbols=no |
9068 | enable_shared_with_static_runtimes=yes |
9069 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
9070 | |
9071 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
9072 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
9073 | # If the export-symbols file already is a .def file (1st line |
9074 | # is EXPORTS), use it as is; otherwise, prepend... |
9075 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
9076 | cp $export_symbols $output_objdir/$soname.def; |
9077 | else |
9078 | echo EXPORTS > $output_objdir/$soname.def; |
9079 | cat $export_symbols >> $output_objdir/$soname.def; |
9080 | fi~ |
9081 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
9082 | else |
9083 | ld_shlibs=no |
9084 | fi |
9085 | ;; |
9086 | |
9087 | interix[3-9]*) |
9088 | hardcode_direct=no |
9089 | hardcode_shlibpath_var=no |
9090 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
9091 | export_dynamic_flag_spec='${wl}-E' |
9092 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
9093 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
9094 | # default) and relocated if they conflict, which is a slow very memory |
9095 | # consuming and fragmenting process. To avoid this, we pick a random, |
9096 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
9097 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
9098 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
9099 | 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' |
9100 | ;; |
9101 | |
9102 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
9103 | tmp_diet=no |
9104 | if test "$host_os" = linux-dietlibc; then |
9105 | case $cc_basename in |
9106 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) |
9107 | esac |
9108 | fi |
9109 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
9110 | && test "$tmp_diet" = no |
9111 | then |
9112 | tmp_addflag= |
9113 | tmp_sharedflag='-shared' |
9114 | case $cc_basename,$host_cpu in |
9115 | pgcc*) # Portland Group C compiler |
9116 | 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' |
9117 | tmp_addflag=' $pic_flag' |
9118 | ;; |
9119 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
9120 | 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' |
9121 | tmp_addflag=' $pic_flag -Mnomain' ;; |
9122 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
9123 | tmp_addflag=' -i_dynamic' ;; |
9124 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
9125 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
9126 | ifc* | ifort*) # Intel Fortran compiler |
9127 | tmp_addflag=' -nofor_main' ;; |
9128 | lf95*) # Lahey Fortran 8.1 |
9129 | whole_archive_flag_spec= |
9130 | tmp_sharedflag='--shared' ;; |
9131 | xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
9132 | tmp_sharedflag='-qmkshrobj' |
9133 | tmp_addflag= ;; |
9134 | esac |
9135 | case `$CC -V 2>&1 | sed 5q` in |
9136 | *Sun\ C*) # Sun C 5.9 |
9137 | 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' |
9138 | compiler_needs_object=yes |
9139 | tmp_sharedflag='-G' ;; |
9140 | *Sun\ F*) # Sun Fortran 8.3 |
9141 | tmp_sharedflag='-G' ;; |
9142 | esac |
9143 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
9144 | |
9145 | if test "x$supports_anon_versioning" = xyes; then |
9146 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
9147 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
9148 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
9149 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
9150 | fi |
9151 | |
9152 | case $cc_basename in |
9153 | xlf*) |
9154 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
9155 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' |
9156 | hardcode_libdir_flag_spec= |
9157 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
9158 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' |
9159 | if test "x$supports_anon_versioning" = xyes; then |
9160 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
9161 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
9162 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
9163 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
9164 | fi |
9165 | ;; |
9166 | esac |
9167 | else |
9168 | ld_shlibs=no |
9169 | fi |
9170 | ;; |
9171 | |
9172 | netbsd* | netbsdelf*-gnu) |
9173 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
9174 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
9175 | wlarc= |
9176 | else |
9177 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
9178 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
9179 | fi |
9180 | ;; |
9181 | |
9182 | solaris*) |
9183 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
9184 | ld_shlibs=no |
9185 | cat <<_LT_EOF 1>&2 |
9186 | |
9187 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
9188 | *** create shared libraries on Solaris systems. Therefore, libtool |
9189 | *** is disabling shared libraries support. We urge you to upgrade GNU |
9190 | *** binutils to release 2.9.1 or newer. Another option is to modify |
9191 | *** your PATH or compiler configuration so that the native linker is |
9192 | *** used, and then restart. |
9193 | |
9194 | _LT_EOF |
9195 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
9196 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
9197 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
9198 | else |
9199 | ld_shlibs=no |
9200 | fi |
9201 | ;; |
9202 | |
9203 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
9204 | case `$LD -v 2>&1` in |
9205 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
9206 | ld_shlibs=no |
9207 | cat <<_LT_EOF 1>&2 |
9208 | |
9209 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
9210 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
9211 | *** is disabling shared libraries support. We urge you to upgrade GNU |
9212 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
9213 | *** your PATH or compiler configuration so that the native linker is |
9214 | *** used, and then restart. |
9215 | |
9216 | _LT_EOF |
9217 | ;; |
9218 | *) |
9219 | # For security reasons, it is highly recommended that you always |
9220 | # use absolute paths for naming shared libraries, and exclude the |
9221 | # DT_RUNPATH tag from executables and libraries. But doing so |
9222 | # requires that you compile everything twice, which is a pain. |
9223 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
9224 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
9225 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
9226 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
9227 | else |
9228 | ld_shlibs=no |
9229 | fi |
9230 | ;; |
9231 | esac |
9232 | ;; |
9233 | |
9234 | sunos4*) |
9235 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
9236 | wlarc= |
9237 | hardcode_direct=yes |
9238 | hardcode_shlibpath_var=no |
9239 | ;; |
9240 | |
9241 | *) |
9242 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
9243 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
9244 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
9245 | else |
9246 | ld_shlibs=no |
9247 | fi |
9248 | ;; |
9249 | esac |
9250 | |
9251 | if test "$ld_shlibs" = no; then |
9252 | runpath_var= |
9253 | hardcode_libdir_flag_spec= |
9254 | export_dynamic_flag_spec= |
9255 | whole_archive_flag_spec= |
9256 | fi |
9257 | else |
9258 | # PORTME fill in a description of your system's linker (not GNU ld) |
9259 | case $host_os in |
9260 | aix3*) |
9261 | allow_undefined_flag=unsupported |
9262 | always_export_symbols=yes |
9263 | 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' |
9264 | # Note: this linker hardcodes the directories in LIBPATH if there |
9265 | # are no directories specified by -L. |
9266 | hardcode_minus_L=yes |
9267 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
9268 | # Neither direct hardcoding nor static linking is supported with a |
9269 | # broken collect2. |
9270 | hardcode_direct=unsupported |
9271 | fi |
9272 | ;; |
9273 | |
9274 | aix[4-9]*) |
9275 | if test "$host_cpu" = ia64; then |
9276 | # On IA64, the linker does run time linking by default, so we don't |
9277 | # have to do anything special. |
9278 | aix_use_runtimelinking=no |
9279 | exp_sym_flag='-Bexport' |
9280 | no_entry_flag="" |
9281 | else |
9282 | # If we're using GNU nm, then we don't want the "-C" option. |
9283 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
9284 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
9285 | 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' |
9286 | else |
9287 | 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' |
9288 | fi |
9289 | aix_use_runtimelinking=no |
9290 | |
9291 | # Test if we are trying to use run time linking or normal |
9292 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
9293 | # need to do runtime linking. |
9294 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
9295 | for ld_flag in $LDFLAGS; do |
9296 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
9297 | aix_use_runtimelinking=yes |
9298 | break |
9299 | fi |
9300 | done |
9301 | ;; |
9302 | esac |
9303 | |
9304 | exp_sym_flag='-bexport' |
9305 | no_entry_flag='-bnoentry' |
9306 | fi |
9307 | |
9308 | # When large executables or shared objects are built, AIX ld can |
9309 | # have problems creating the table of contents. If linking a library |
9310 | # or program results in "error TOC overflow" add -mminimal-toc to |
9311 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
9312 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
9313 | |
9314 | archive_cmds='' |
9315 | hardcode_direct=yes |
9316 | hardcode_direct_absolute=yes |
9317 | hardcode_libdir_separator=':' |
9318 | link_all_deplibs=yes |
9319 | file_list_spec='${wl}-f,' |
9320 | |
9321 | if test "$GCC" = yes; then |
9322 | case $host_os in aix4.[012]|aix4.[012].*) |
9323 | # We only want to do this on AIX 4.2 and lower, the check |
9324 | # below for broken collect2 doesn't work under 4.3+ |
9325 | collect2name=`${CC} -print-prog-name=collect2` |
9326 | if test -f "$collect2name" && |
9327 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
9328 | then |
9329 | # We have reworked collect2 |
9330 | : |
9331 | else |
9332 | # We have old collect2 |
9333 | hardcode_direct=unsupported |
9334 | # It fails to find uninstalled libraries when the uninstalled |
9335 | # path is not listed in the libpath. Setting hardcode_minus_L |
9336 | # to unsupported forces relinking |
9337 | hardcode_minus_L=yes |
9338 | hardcode_libdir_flag_spec='-L$libdir' |
9339 | hardcode_libdir_separator= |
9340 | fi |
9341 | ;; |
9342 | esac |
9343 | shared_flag='-shared' |
9344 | if test "$aix_use_runtimelinking" = yes; then |
9345 | shared_flag="$shared_flag "'${wl}-G' |
9346 | fi |
9347 | link_all_deplibs=no |
9348 | else |
9349 | # not using gcc |
9350 | if test "$host_cpu" = ia64; then |
9351 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
9352 | # chokes on -Wl,-G. The following line is correct: |
9353 | shared_flag='-G' |
9354 | else |
9355 | if test "$aix_use_runtimelinking" = yes; then |
9356 | shared_flag='${wl}-G' |
9357 | else |
9358 | shared_flag='${wl}-bM:SRE' |
9359 | fi |
9360 | fi |
9361 | fi |
9362 | |
9363 | export_dynamic_flag_spec='${wl}-bexpall' |
9364 | # It seems that -bexpall does not export symbols beginning with |
9365 | # underscore (_), so it is better to generate a list of symbols to export. |
9366 | always_export_symbols=yes |
9367 | if test "$aix_use_runtimelinking" = yes; then |
9368 | # Warning - without using the other runtime loading flags (-brtl), |
9369 | # -berok will link without error, but may produce a broken library. |
9370 | allow_undefined_flag='-berok' |
9371 | # Determine the default libpath from the value encoded in an |
9372 | # empty executable. |
9373 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9374 | /* end confdefs.h. */ |
9375 | |
9376 | int |
9377 | main () |
9378 | { |
9379 | |
9380 | ; |
9381 | return 0; |
9382 | } |
9383 | _ACEOF |
9384 | if ac_fn_c_try_link "$LINENO"; then : |
9385 | |
9386 | lt_aix_libpath_sed=' |
9387 | /Import File Strings/,/^$/ { |
9388 | /^0/ { |
9389 | s/^0 *\(.*\)$/\1/ |
9390 | p |
9391 | } |
9392 | }' |
9393 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
9394 | # Check for a 64-bit object if we didn't find anything. |
9395 | if test -z "$aix_libpath"; then |
9396 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
9397 | fi |
9398 | fi |
9399 | rm -f core conftest.err conftest.$ac_objext \ |
9400 | conftest$ac_exeext conftest.$ac_ext |
9401 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
9402 | |
9403 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
9404 | 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" |
9405 | else |
9406 | if test "$host_cpu" = ia64; then |
9407 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
9408 | allow_undefined_flag="-z nodefs" |
9409 | 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" |
9410 | else |
9411 | # Determine the default libpath from the value encoded in an |
9412 | # empty executable. |
9413 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9414 | /* end confdefs.h. */ |
9415 | |
9416 | int |
9417 | main () |
9418 | { |
9419 | |
9420 | ; |
9421 | return 0; |
9422 | } |
9423 | _ACEOF |
9424 | if ac_fn_c_try_link "$LINENO"; then : |
9425 | |
9426 | lt_aix_libpath_sed=' |
9427 | /Import File Strings/,/^$/ { |
9428 | /^0/ { |
9429 | s/^0 *\(.*\)$/\1/ |
9430 | p |
9431 | } |
9432 | }' |
9433 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
9434 | # Check for a 64-bit object if we didn't find anything. |
9435 | if test -z "$aix_libpath"; then |
9436 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
9437 | fi |
9438 | fi |
9439 | rm -f core conftest.err conftest.$ac_objext \ |
9440 | conftest$ac_exeext conftest.$ac_ext |
9441 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
9442 | |
9443 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
9444 | # Warning - without using the other run time loading flags, |
9445 | # -berok will link without error, but may produce a broken library. |
9446 | no_undefined_flag=' ${wl}-bernotok' |
9447 | allow_undefined_flag=' ${wl}-berok' |
9448 | # Exported symbols can be pulled into shared objects from archives |
9449 | whole_archive_flag_spec='$convenience' |
9450 | archive_cmds_need_lc=yes |
9451 | # This is similar to how AIX traditionally builds its shared libraries. |
9452 | 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' |
9453 | fi |
9454 | fi |
9455 | ;; |
9456 | |
9457 | amigaos*) |
9458 | case $host_cpu in |
9459 | powerpc) |
9460 | # see comment about AmigaOS4 .so support |
9461 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
9462 | archive_expsym_cmds='' |
9463 | ;; |
9464 | m68k) |
9465 | 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)' |
9466 | hardcode_libdir_flag_spec='-L$libdir' |
9467 | hardcode_minus_L=yes |
9468 | ;; |
9469 | esac |
9470 | ;; |
9471 | |
9472 | bsdi[45]*) |
9473 | export_dynamic_flag_spec=-rdynamic |
9474 | ;; |
9475 | |
9476 | cygwin* | mingw* | pw32* | cegcc*) |
9477 | # When not using gcc, we currently assume that we are using |
9478 | # Microsoft Visual C++. |
9479 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
9480 | # no search path for DLLs. |
9481 | hardcode_libdir_flag_spec=' ' |
9482 | allow_undefined_flag=unsupported |
9483 | # Tell ltmain to make .lib files, not .a files. |
9484 | libext=lib |
9485 | # Tell ltmain to make .dll files, not .so files. |
9486 | shrext_cmds=".dll" |
9487 | # FIXME: Setting linknames here is a bad hack. |
9488 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
9489 | # The linker will automatically build a .lib file if we build a DLL. |
9490 | old_archive_from_new_cmds='true' |
9491 | # FIXME: Should let the user specify the lib program. |
9492 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
9493 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
9494 | enable_shared_with_static_runtimes=yes |
9495 | ;; |
9496 | |
9497 | darwin* | rhapsody*) |
9498 | |
9499 | |
9500 | archive_cmds_need_lc=no |
9501 | hardcode_direct=no |
9502 | hardcode_automatic=yes |
9503 | hardcode_shlibpath_var=unsupported |
9504 | whole_archive_flag_spec='' |
9505 | link_all_deplibs=yes |
9506 | allow_undefined_flag="$_lt_dar_allow_undefined" |
9507 | case $cc_basename in |
9508 | ifort*) _lt_dar_can_shared=yes ;; |
9509 | *) _lt_dar_can_shared=$GCC ;; |
9510 | esac |
9511 | if test "$_lt_dar_can_shared" = "yes"; then |
9512 | output_verbose_link_cmd=echo |
9513 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
9514 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
9515 | 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}" |
9516 | 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}" |
9517 | |
9518 | else |
9519 | ld_shlibs=no |
9520 | fi |
9521 | |
9522 | ;; |
9523 | |
9524 | dgux*) |
9525 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
9526 | hardcode_libdir_flag_spec='-L$libdir' |
9527 | hardcode_shlibpath_var=no |
9528 | ;; |
9529 | |
9530 | freebsd1*) |
9531 | ld_shlibs=no |
9532 | ;; |
9533 | |
9534 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
9535 | # support. Future versions do this automatically, but an explicit c++rt0.o |
9536 | # does not break anything, and helps significantly (at the cost of a little |
9537 | # extra space). |
9538 | freebsd2.2*) |
9539 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
9540 | hardcode_libdir_flag_spec='-R$libdir' |
9541 | hardcode_direct=yes |
9542 | hardcode_shlibpath_var=no |
9543 | ;; |
9544 | |
9545 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
9546 | freebsd2*) |
9547 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
9548 | hardcode_direct=yes |
9549 | hardcode_minus_L=yes |
9550 | hardcode_shlibpath_var=no |
9551 | ;; |
9552 | |
9553 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
9554 | freebsd* | dragonfly*) |
9555 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
9556 | hardcode_libdir_flag_spec='-R$libdir' |
9557 | hardcode_direct=yes |
9558 | hardcode_shlibpath_var=no |
9559 | ;; |
9560 | |
9561 | hpux9*) |
9562 | if test "$GCC" = yes; then |
9563 | 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' |
9564 | else |
9565 | 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' |
9566 | fi |
9567 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
9568 | hardcode_libdir_separator=: |
9569 | hardcode_direct=yes |
9570 | |
9571 | # hardcode_minus_L: Not really in the search PATH, |
9572 | # but as the default location of the library. |
9573 | hardcode_minus_L=yes |
9574 | export_dynamic_flag_spec='${wl}-E' |
9575 | ;; |
9576 | |
9577 | hpux10*) |
9578 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
9579 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
9580 | else |
9581 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
9582 | fi |
9583 | if test "$with_gnu_ld" = no; then |
9584 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
9585 | hardcode_libdir_flag_spec_ld='+b $libdir' |
9586 | hardcode_libdir_separator=: |
9587 | hardcode_direct=yes |
9588 | hardcode_direct_absolute=yes |
9589 | export_dynamic_flag_spec='${wl}-E' |
9590 | # hardcode_minus_L: Not really in the search PATH, |
9591 | # but as the default location of the library. |
9592 | hardcode_minus_L=yes |
9593 | fi |
9594 | ;; |
9595 | |
9596 | hpux11*) |
9597 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
9598 | case $host_cpu in |
9599 | hppa*64*) |
9600 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
9601 | ;; |
9602 | ia64*) |
9603 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
9604 | ;; |
9605 | *) |
9606 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
9607 | ;; |
9608 | esac |
9609 | else |
9610 | case $host_cpu in |
9611 | hppa*64*) |
9612 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
9613 | ;; |
9614 | ia64*) |
9615 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
9616 | ;; |
9617 | *) |
9618 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
9619 | ;; |
9620 | esac |
9621 | fi |
9622 | if test "$with_gnu_ld" = no; then |
9623 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
9624 | hardcode_libdir_separator=: |
9625 | |
9626 | case $host_cpu in |
9627 | hppa*64*|ia64*) |
9628 | hardcode_direct=no |
9629 | hardcode_shlibpath_var=no |
9630 | ;; |
9631 | *) |
9632 | hardcode_direct=yes |
9633 | hardcode_direct_absolute=yes |
9634 | export_dynamic_flag_spec='${wl}-E' |
9635 | |
9636 | # hardcode_minus_L: Not really in the search PATH, |
9637 | # but as the default location of the library. |
9638 | hardcode_minus_L=yes |
9639 | ;; |
9640 | esac |
9641 | fi |
9642 | ;; |
9643 | |
9644 | irix5* | irix6* | nonstopux*) |
9645 | if test "$GCC" = yes; then |
9646 | 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' |
9647 | # Try to use the -exported_symbol ld option, if it does not |
9648 | # work, assume that -exports_file does not work either and |
9649 | # implicitly export all symbols. |
9650 | save_LDFLAGS="$LDFLAGS" |
9651 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" |
9652 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9653 | /* end confdefs.h. */ |
9654 | int foo(void) {} |
9655 | _ACEOF |
9656 | if ac_fn_c_try_link "$LINENO"; then : |
9657 | 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' |
9658 | |
9659 | fi |
9660 | rm -f core conftest.err conftest.$ac_objext \ |
9661 | conftest$ac_exeext conftest.$ac_ext |
9662 | LDFLAGS="$save_LDFLAGS" |
9663 | else |
9664 | 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' |
9665 | 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' |
9666 | fi |
9667 | archive_cmds_need_lc='no' |
9668 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
9669 | hardcode_libdir_separator=: |
9670 | inherit_rpath=yes |
9671 | link_all_deplibs=yes |
9672 | ;; |
9673 | |
9674 | netbsd* | netbsdelf*-gnu) |
9675 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
9676 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
9677 | else |
9678 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
9679 | fi |
9680 | hardcode_libdir_flag_spec='-R$libdir' |
9681 | hardcode_direct=yes |
9682 | hardcode_shlibpath_var=no |
9683 | ;; |
9684 | |
9685 | newsos6) |
9686 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
9687 | hardcode_direct=yes |
9688 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
9689 | hardcode_libdir_separator=: |
9690 | hardcode_shlibpath_var=no |
9691 | ;; |
9692 | |
9693 | *nto* | *qnx*) |
9694 | ;; |
9695 | |
9696 | openbsd*) |
9697 | if test -f /usr/libexec/ld.so; then |
9698 | hardcode_direct=yes |
9699 | hardcode_shlibpath_var=no |
9700 | hardcode_direct_absolute=yes |
9701 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
9702 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
9703 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
9704 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
9705 | export_dynamic_flag_spec='${wl}-E' |
9706 | else |
9707 | case $host_os in |
9708 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
9709 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
9710 | hardcode_libdir_flag_spec='-R$libdir' |
9711 | ;; |
9712 | *) |
9713 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
9714 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
9715 | ;; |
9716 | esac |
9717 | fi |
9718 | else |
9719 | ld_shlibs=no |
9720 | fi |
9721 | ;; |
9722 | |
9723 | os2*) |
9724 | hardcode_libdir_flag_spec='-L$libdir' |
9725 | hardcode_minus_L=yes |
9726 | allow_undefined_flag=unsupported |
9727 | 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' |
9728 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
9729 | ;; |
9730 | |
9731 | osf3*) |
9732 | if test "$GCC" = yes; then |
9733 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
9734 | 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' |
9735 | else |
9736 | allow_undefined_flag=' -expect_unresolved \*' |
9737 | 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' |
9738 | fi |
9739 | archive_cmds_need_lc='no' |
9740 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
9741 | hardcode_libdir_separator=: |
9742 | ;; |
9743 | |
9744 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
9745 | if test "$GCC" = yes; then |
9746 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
9747 | 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' |
9748 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
9749 | else |
9750 | allow_undefined_flag=' -expect_unresolved \*' |
9751 | 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' |
9752 | 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~ |
9753 | $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' |
9754 | |
9755 | # Both c and cxx compiler support -rpath directly |
9756 | hardcode_libdir_flag_spec='-rpath $libdir' |
9757 | fi |
9758 | archive_cmds_need_lc='no' |
9759 | hardcode_libdir_separator=: |
9760 | ;; |
9761 | |
9762 | solaris*) |
9763 | no_undefined_flag=' -z defs' |
9764 | if test "$GCC" = yes; then |
9765 | wlarc='${wl}' |
9766 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
9767 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
9768 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
9769 | else |
9770 | case `$CC -V 2>&1` in |
9771 | *"Compilers 5.0"*) |
9772 | wlarc='' |
9773 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
9774 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
9775 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
9776 | ;; |
9777 | *) |
9778 | wlarc='${wl}' |
9779 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' |
9780 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
9781 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
9782 | ;; |
9783 | esac |
9784 | fi |
9785 | hardcode_libdir_flag_spec='-R$libdir' |
9786 | hardcode_shlibpath_var=no |
9787 | case $host_os in |
9788 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
9789 | *) |
9790 | # The compiler driver will combine and reorder linker options, |
9791 | # but understands `-z linker_flag'. GCC discards it without `$wl', |
9792 | # but is careful enough not to reorder. |
9793 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
9794 | if test "$GCC" = yes; then |
9795 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
9796 | else |
9797 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
9798 | fi |
9799 | ;; |
9800 | esac |
9801 | link_all_deplibs=yes |
9802 | ;; |
9803 | |
9804 | sunos4*) |
9805 | if test "x$host_vendor" = xsequent; then |
9806 | # Use $CC to link under sequent, because it throws in some extra .o |
9807 | # files that make .init and .fini sections work. |
9808 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
9809 | else |
9810 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
9811 | fi |
9812 | hardcode_libdir_flag_spec='-L$libdir' |
9813 | hardcode_direct=yes |
9814 | hardcode_minus_L=yes |
9815 | hardcode_shlibpath_var=no |
9816 | ;; |
9817 | |
9818 | sysv4) |
9819 | case $host_vendor in |
9820 | sni) |
9821 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
9822 | hardcode_direct=yes # is this really true??? |
9823 | ;; |
9824 | siemens) |
9825 | ## LD is ld it makes a PLAMLIB |
9826 | ## CC just makes a GrossModule. |
9827 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
9828 | reload_cmds='$CC -r -o $output$reload_objs' |
9829 | hardcode_direct=no |
9830 | ;; |
9831 | motorola) |
9832 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
9833 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
9834 | ;; |
9835 | esac |
9836 | runpath_var='LD_RUN_PATH' |
9837 | hardcode_shlibpath_var=no |
9838 | ;; |
9839 | |
9840 | sysv4.3*) |
9841 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
9842 | hardcode_shlibpath_var=no |
9843 | export_dynamic_flag_spec='-Bexport' |
9844 | ;; |
9845 | |
9846 | sysv4*MP*) |
9847 | if test -d /usr/nec; then |
9848 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
9849 | hardcode_shlibpath_var=no |
9850 | runpath_var=LD_RUN_PATH |
9851 | hardcode_runpath_var=yes |
9852 | ld_shlibs=yes |
9853 | fi |
9854 | ;; |
9855 | |
9856 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
9857 | no_undefined_flag='${wl}-z,text' |
9858 | archive_cmds_need_lc=no |
9859 | hardcode_shlibpath_var=no |
9860 | runpath_var='LD_RUN_PATH' |
9861 | |
9862 | if test "$GCC" = yes; then |
9863 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
9864 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
9865 | else |
9866 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
9867 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
9868 | fi |
9869 | ;; |
9870 | |
9871 | sysv5* | sco3.2v5* | sco5v6*) |
9872 | # Note: We can NOT use -z defs as we might desire, because we do not |
9873 | # link with -lc, and that would cause any symbols used from libc to |
9874 | # always be unresolved, which means just about no library would |
9875 | # ever link correctly. If we're not using GNU ld we use -z text |
9876 | # though, which does catch some bad symbols but isn't as heavy-handed |
9877 | # as -z defs. |
9878 | no_undefined_flag='${wl}-z,text' |
9879 | allow_undefined_flag='${wl}-z,nodefs' |
9880 | archive_cmds_need_lc=no |
9881 | hardcode_shlibpath_var=no |
9882 | hardcode_libdir_flag_spec='${wl}-R,$libdir' |
9883 | hardcode_libdir_separator=':' |
9884 | link_all_deplibs=yes |
9885 | export_dynamic_flag_spec='${wl}-Bexport' |
9886 | runpath_var='LD_RUN_PATH' |
9887 | |
9888 | if test "$GCC" = yes; then |
9889 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
9890 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
9891 | else |
9892 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
9893 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
9894 | fi |
9895 | ;; |
9896 | |
9897 | uts4*) |
9898 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
9899 | hardcode_libdir_flag_spec='-L$libdir' |
9900 | hardcode_shlibpath_var=no |
9901 | ;; |
9902 | |
9903 | *) |
9904 | ld_shlibs=no |
9905 | ;; |
9906 | esac |
9907 | |
9908 | if test x$host_vendor = xsni; then |
9909 | case $host in |
9910 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
9911 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
9912 | ;; |
9913 | esac |
9914 | fi |
9915 | fi |
9916 | |
9917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
9918 | $as_echo "$ld_shlibs" >&6; } |
9919 | test "$ld_shlibs" = no && can_build_shared=no |
9920 | |
9921 | with_gnu_ld=$with_gnu_ld |
9922 | |
9923 | |
9924 | |
9925 | |
9926 | |
9927 | |
9928 | |
9929 | |
9930 | |
9931 | |
9932 | |
9933 | |
9934 | |
9935 | |
9936 | |
9937 | # |
9938 | # Do we need to explicitly link libc? |
9939 | # |
9940 | case "x$archive_cmds_need_lc" in |
9941 | x|xyes) |
9942 | # Assume -lc should be added |
9943 | archive_cmds_need_lc=yes |
9944 | |
9945 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
9946 | case $archive_cmds in |
9947 | *'~'*) |
9948 | # FIXME: we may have to deal with multi-command sequences. |
9949 | ;; |
9950 | '$CC '*) |
9951 | # Test whether the compiler implicitly links with -lc since on some |
9952 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
9953 | # to ld, don't add -lc before -lgcc. |
9954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
9955 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
9956 | $RM conftest* |
9957 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
9958 | |
9959 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
9960 | (eval $ac_compile) 2>&5 |
9961 | ac_status=$? |
9962 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
9963 | test $ac_status = 0; } 2>conftest.err; then |
9964 | soname=conftest |
9965 | lib=conftest |
9966 | libobjs=conftest.$ac_objext |
9967 | deplibs= |
9968 | wl=$lt_prog_compiler_wl |
9969 | pic_flag=$lt_prog_compiler_pic |
9970 | compiler_flags=-v |
9971 | linker_flags=-v |
9972 | verstring= |
9973 | output_objdir=. |
9974 | libname=conftest |
9975 | lt_save_allow_undefined_flag=$allow_undefined_flag |
9976 | allow_undefined_flag= |
9977 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
9978 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
9979 | ac_status=$? |
9980 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
9981 | test $ac_status = 0; } |
9982 | then |
9983 | archive_cmds_need_lc=no |
9984 | else |
9985 | archive_cmds_need_lc=yes |
9986 | fi |
9987 | allow_undefined_flag=$lt_save_allow_undefined_flag |
9988 | else |
9989 | cat conftest.err 1>&5 |
9990 | fi |
9991 | $RM conftest* |
9992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 |
9993 | $as_echo "$archive_cmds_need_lc" >&6; } |
9994 | ;; |
9995 | esac |
9996 | fi |
9997 | ;; |
9998 | esac |
9999 | |
10000 | |
10001 | |
10002 | |
10003 | |
10004 | |
10005 | |
10006 | |
10007 | |
10008 | |
10009 | |
10010 | |
10011 | |
10012 | |
10013 | |
10014 | |
10015 | |
10016 | |
10017 | |
10018 | |
10019 | |
10020 | |
10021 | |
10022 | |
10023 | |
10024 | |
10025 | |
10026 | |
10027 | |
10028 | |
10029 | |
10030 | |
10031 | |
10032 | |
10033 | |
10034 | |
10035 | |
10036 | |
10037 | |
10038 | |
10039 | |
10040 | |
10041 | |
10042 | |
10043 | |
10044 | |
10045 | |
10046 | |
10047 | |
10048 | |
10049 | |
10050 | |
10051 | |
10052 | |
10053 | |
10054 | |
10055 | |
10056 | |
10057 | |
10058 | |
10059 | |
10060 | |
10061 | |
10062 | |
10063 | |
10064 | |
10065 | |
10066 | |
10067 | |
10068 | |
10069 | |
10070 | |
10071 | |
10072 | |
10073 | |
10074 | |
10075 | |
10076 | |
10077 | |
10078 | |
10079 | |
10080 | |
10081 | |
10082 | |
10083 | |
10084 | |
10085 | |
10086 | |
10087 | |
10088 | |
10089 | |
10090 | |
10091 | |
10092 | |
10093 | |
10094 | |
10095 | |
10096 | |
10097 | |
10098 | |
10099 | |
10100 | |
10101 | |
10102 | |
10103 | |
10104 | |
10105 | |
10106 | |
10107 | |
10108 | |
10109 | |
10110 | |
10111 | |
10112 | |
10113 | |
10114 | |
10115 | |
10116 | |
10117 | |
10118 | |
10119 | |
10120 | |
10121 | |
10122 | |
10123 | |
10124 | |
10125 | |
10126 | |
10127 | |
10128 | |
10129 | |
10130 | |
10131 | |
10132 | |
10133 | |
10134 | |
10135 | |
10136 | |
10137 | |
10138 | |
10139 | |
10140 | |
10141 | |
10142 | |
10143 | |
10144 | |
10145 | |
10146 | |
10147 | |
10148 | |
10149 | |
10150 | |
10151 | |
10152 | |
10153 | |
10154 | |
10155 | |
10156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
10157 | $as_echo_n "checking dynamic linker characteristics... " >&6; } |
10158 | |
10159 | if test "$GCC" = yes; then |
10160 | case $host_os in |
10161 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
10162 | *) lt_awk_arg="/^libraries:/" ;; |
10163 | esac |
10164 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
10165 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then |
10166 | # if the path contains ";" then we assume it to be the separator |
10167 | # otherwise default to the standard path separator (i.e. ":") - it is |
10168 | # assumed that no part of a normal pathname contains ";" but that should |
10169 | # okay in the real world where ";" in dirpaths is itself problematic. |
10170 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` |
10171 | else |
10172 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
10173 | fi |
10174 | # Ok, now we have the path, separated by spaces, we can step through it |
10175 | # and add multilib dir if necessary. |
10176 | lt_tmp_lt_search_path_spec= |
10177 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
10178 | for lt_sys_path in $lt_search_path_spec; do |
10179 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then |
10180 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" |
10181 | else |
10182 | test -d "$lt_sys_path" && \ |
10183 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
10184 | fi |
10185 | done |
10186 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' |
10187 | BEGIN {RS=" "; FS="/|\n";} { |
10188 | lt_foo=""; |
10189 | lt_count=0; |
10190 | for (lt_i = NF; lt_i > 0; lt_i--) { |
10191 | if ($lt_i != "" && $lt_i != ".") { |
10192 | if ($lt_i == "..") { |
10193 | lt_count++; |
10194 | } else { |
10195 | if (lt_count == 0) { |
10196 | lt_foo="/" $lt_i lt_foo; |
10197 | } else { |
10198 | lt_count--; |
10199 | } |
10200 | } |
10201 | } |
10202 | } |
10203 | if (lt_foo != "") { lt_freq[lt_foo]++; } |
10204 | if (lt_freq[lt_foo] == 1) { print lt_foo; } |
10205 | }'` |
10206 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` |
10207 | else |
10208 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
10209 | fi |
10210 | library_names_spec= |
10211 | libname_spec='lib$name' |
10212 | soname_spec= |
10213 | shrext_cmds=".so" |
10214 | postinstall_cmds= |
10215 | postuninstall_cmds= |
10216 | finish_cmds= |
10217 | finish_eval= |
10218 | shlibpath_var= |
10219 | shlibpath_overrides_runpath=unknown |
10220 | version_type=none |
10221 | dynamic_linker="$host_os ld.so" |
10222 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
10223 | need_lib_prefix=unknown |
10224 | hardcode_into_libs=no |
10225 | |
10226 | # when you set need_version to no, make sure it does not cause -set_version |
10227 | # flags to be left without arguments |
10228 | need_version=unknown |
10229 | |
10230 | case $host_os in |
10231 | aix3*) |
10232 | version_type=linux |
10233 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
10234 | shlibpath_var=LIBPATH |
10235 | |
10236 | # AIX 3 has no versioning support, so we append a major version to the name. |
10237 | soname_spec='${libname}${release}${shared_ext}$major' |
10238 | ;; |
10239 | |
10240 | aix[4-9]*) |
10241 | version_type=linux |
10242 | need_lib_prefix=no |
10243 | need_version=no |
10244 | hardcode_into_libs=yes |
10245 | if test "$host_cpu" = ia64; then |
10246 | # AIX 5 supports IA64 |
10247 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
10248 | shlibpath_var=LD_LIBRARY_PATH |
10249 | else |
10250 | # With GCC up to 2.95.x, collect2 would create an import file |
10251 | # for dependence libraries. The import file would start with |
10252 | # the line `#! .'. This would cause the generated library to |
10253 | # depend on `.', always an invalid library. This was fixed in |
10254 | # development snapshots of GCC prior to 3.0. |
10255 | case $host_os in |
10256 | aix4 | aix4.[01] | aix4.[01].*) |
10257 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
10258 | echo ' yes ' |
10259 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
10260 | : |
10261 | else |
10262 | can_build_shared=no |
10263 | fi |
10264 | ;; |
10265 | esac |
10266 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
10267 | # soname into executable. Probably we can add versioning support to |
10268 | # collect2, so additional links can be useful in future. |
10269 | if test "$aix_use_runtimelinking" = yes; then |
10270 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
10271 | # instead of lib<name>.a to let people know that these are not |
10272 | # typical AIX shared libraries. |
10273 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
10274 | else |
10275 | # We preserve .a as extension for shared libraries through AIX4.2 |
10276 | # and later when we are not doing run time linking. |
10277 | library_names_spec='${libname}${release}.a $libname.a' |
10278 | soname_spec='${libname}${release}${shared_ext}$major' |
10279 | fi |
10280 | shlibpath_var=LIBPATH |
10281 | fi |
10282 | ;; |
10283 | |
10284 | amigaos*) |
10285 | case $host_cpu in |
10286 | powerpc) |
10287 | # Since July 2007 AmigaOS4 officially supports .so libraries. |
10288 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
10289 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
10290 | ;; |
10291 | m68k) |
10292 | library_names_spec='$libname.ixlibrary $libname.a' |
10293 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
10294 | 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' |
10295 | ;; |
10296 | esac |
10297 | ;; |
10298 | |
10299 | beos*) |
10300 | library_names_spec='${libname}${shared_ext}' |
10301 | dynamic_linker="$host_os ld.so" |
10302 | shlibpath_var=LIBRARY_PATH |
10303 | ;; |
10304 | |
10305 | bsdi[45]*) |
10306 | version_type=linux |
10307 | need_version=no |
10308 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
10309 | soname_spec='${libname}${release}${shared_ext}$major' |
10310 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
10311 | shlibpath_var=LD_LIBRARY_PATH |
10312 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
10313 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
10314 | # the default ld.so.conf also contains /usr/contrib/lib and |
10315 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
10316 | # libtool to hard-code these into programs |
10317 | ;; |
10318 | |
10319 | cygwin* | mingw* | pw32* | cegcc*) |
10320 | version_type=windows |
10321 | shrext_cmds=".dll" |
10322 | need_version=no |
10323 | need_lib_prefix=no |
10324 | |
10325 | case $GCC,$host_os in |
10326 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) |
10327 | library_names_spec='$libname.dll.a' |
10328 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
10329 | postinstall_cmds='base_file=`basename \${file}`~ |
10330 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
10331 | dldir=$destdir/`dirname \$dlpath`~ |
10332 | test -d \$dldir || mkdir -p \$dldir~ |
10333 | $install_prog $dir/$dlname \$dldir/$dlname~ |
10334 | chmod a+x \$dldir/$dlname~ |
10335 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
10336 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
10337 | fi' |
10338 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
10339 | dlpath=$dir/\$dldll~ |
10340 | $RM \$dlpath' |
10341 | shlibpath_overrides_runpath=yes |
10342 | |
10343 | case $host_os in |
10344 | cygwin*) |
10345 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
10346 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
10347 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
10348 | ;; |
10349 | mingw* | cegcc*) |
10350 | # MinGW DLLs use traditional 'lib' prefix |
10351 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
10352 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
10353 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
10354 | # It is most probably a Windows format PATH printed by |
10355 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
10356 | # path with ; separators, and with drive letters. We can handle the |
10357 | # drive letters (cygwin fileutils understands them), so leave them, |
10358 | # especially as we might pass files found there to a mingw objdump, |
10359 | # which wouldn't understand a cygwinified path. Ahh. |
10360 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
10361 | else |
10362 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
10363 | fi |
10364 | ;; |
10365 | pw32*) |
10366 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
10367 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
10368 | ;; |
10369 | esac |
10370 | ;; |
10371 | |
10372 | *) |
10373 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
10374 | ;; |
10375 | esac |
10376 | dynamic_linker='Win32 ld.exe' |
10377 | # FIXME: first we should search . and the directory the executable is in |
10378 | shlibpath_var=PATH |
10379 | ;; |
10380 | |
10381 | darwin* | rhapsody*) |
10382 | dynamic_linker="$host_os dyld" |
10383 | version_type=darwin |
10384 | need_lib_prefix=no |
10385 | need_version=no |
10386 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
10387 | soname_spec='${libname}${release}${major}$shared_ext' |
10388 | shlibpath_overrides_runpath=yes |
10389 | shlibpath_var=DYLD_LIBRARY_PATH |
10390 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
10391 | |
10392 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
10393 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
10394 | ;; |
10395 | |
10396 | dgux*) |
10397 | version_type=linux |
10398 | need_lib_prefix=no |
10399 | need_version=no |
10400 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
10401 | soname_spec='${libname}${release}${shared_ext}$major' |
10402 | shlibpath_var=LD_LIBRARY_PATH |
10403 | ;; |
10404 | |
10405 | freebsd1*) |
10406 | dynamic_linker=no |
10407 | ;; |
10408 | |
10409 | freebsd* | dragonfly*) |
10410 | # DragonFly does not have aout. When/if they implement a new |
10411 | # versioning mechanism, adjust this. |
10412 | if test -x /usr/bin/objformat; then |
10413 | objformat=`/usr/bin/objformat` |
10414 | else |
10415 | case $host_os in |
10416 | freebsd[123]*) objformat=aout ;; |
10417 | *) objformat=elf ;; |
10418 | esac |
10419 | fi |
10420 | version_type=freebsd-$objformat |
10421 | case $version_type in |
10422 | freebsd-elf*) |
10423 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
10424 | need_version=no |
10425 | need_lib_prefix=no |
10426 | ;; |
10427 | freebsd-*) |
10428 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
10429 | need_version=yes |
10430 | ;; |
10431 | esac |
10432 | shlibpath_var=LD_LIBRARY_PATH |
10433 | case $host_os in |
10434 | freebsd2*) |
10435 | shlibpath_overrides_runpath=yes |
10436 | ;; |
10437 | freebsd3.[01]* | freebsdelf3.[01]*) |
10438 | shlibpath_overrides_runpath=yes |
10439 | hardcode_into_libs=yes |
10440 | ;; |
10441 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
10442 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
10443 | shlibpath_overrides_runpath=no |
10444 | hardcode_into_libs=yes |
10445 | ;; |
10446 | *) # from 4.6 on, and DragonFly |
10447 | shlibpath_overrides_runpath=yes |
10448 | hardcode_into_libs=yes |
10449 | ;; |
10450 | esac |
10451 | ;; |
10452 | |
10453 | gnu*) |
10454 | version_type=linux |
10455 | need_lib_prefix=no |
10456 | need_version=no |
10457 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
10458 | soname_spec='${libname}${release}${shared_ext}$major' |
10459 | shlibpath_var=LD_LIBRARY_PATH |
10460 | hardcode_into_libs=yes |
10461 | ;; |
10462 | |
10463 | hpux9* | hpux10* | hpux11*) |
10464 | # Give a soname corresponding to the major version so that dld.sl refuses to |
10465 | # link against other versions. |
10466 | version_type=sunos |
10467 | need_lib_prefix=no |
10468 | need_version=no |
10469 | case $host_cpu in |
10470 | ia64*) |
10471 | shrext_cmds='.so' |
10472 | hardcode_into_libs=yes |
10473 | dynamic_linker="$host_os dld.so" |
10474 | shlibpath_var=LD_LIBRARY_PATH |
10475 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
10476 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
10477 | soname_spec='${libname}${release}${shared_ext}$major' |
10478 | if test "X$HPUX_IA64_MODE" = X32; then |
10479 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
10480 | else |
10481 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
10482 | fi |
10483 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
10484 | ;; |
10485 | hppa*64*) |
10486 | shrext_cmds='.sl' |
10487 | hardcode_into_libs=yes |
10488 | dynamic_linker="$host_os dld.sl" |
10489 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
10490 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
10491 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
10492 | soname_spec='${libname}${release}${shared_ext}$major' |
10493 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
10494 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
10495 | ;; |
10496 | *) |
10497 | shrext_cmds='.sl' |
10498 | dynamic_linker="$host_os dld.sl" |
10499 | shlibpath_var=SHLIB_PATH |
10500 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
10501 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
10502 | soname_spec='${libname}${release}${shared_ext}$major' |
10503 | ;; |
10504 | esac |
10505 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
10506 | postinstall_cmds='chmod 555 $lib' |
10507 | ;; |
10508 | |
10509 | interix[3-9]*) |
10510 | version_type=linux |
10511 | need_lib_prefix=no |
10512 | need_version=no |
10513 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
10514 | soname_spec='${libname}${release}${shared_ext}$major' |
10515 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
10516 | shlibpath_var=LD_LIBRARY_PATH |
10517 | shlibpath_overrides_runpath=no |
10518 | hardcode_into_libs=yes |
10519 | ;; |
10520 | |
10521 | irix5* | irix6* | nonstopux*) |
10522 | case $host_os in |
10523 | nonstopux*) version_type=nonstopux ;; |
10524 | *) |
10525 | if test "$lt_cv_prog_gnu_ld" = yes; then |
10526 | version_type=linux |
10527 | else |
10528 | version_type=irix |
10529 | fi ;; |
10530 | esac |
10531 | need_lib_prefix=no |
10532 | need_version=no |
10533 | soname_spec='${libname}${release}${shared_ext}$major' |
10534 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
10535 | case $host_os in |
10536 | irix5* | nonstopux*) |
10537 | libsuff= shlibsuff= |
10538 | ;; |
10539 | *) |
10540 | case $LD in # libtool.m4 will add one of these switches to LD |
10541 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
10542 | libsuff= shlibsuff= libmagic=32-bit;; |
10543 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
10544 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
10545 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
10546 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
10547 | *) libsuff= shlibsuff= libmagic=never-match;; |
10548 | esac |
10549 | ;; |
10550 | esac |
10551 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
10552 | shlibpath_overrides_runpath=no |
10553 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
10554 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
10555 | hardcode_into_libs=yes |
10556 | ;; |
10557 | |
10558 | # No shared lib support for Linux oldld, aout, or coff. |
10559 | linux*oldld* | linux*aout* | linux*coff*) |
10560 | dynamic_linker=no |
10561 | ;; |
10562 | |
10563 | # This must be Linux ELF. |
10564 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
10565 | version_type=linux |
10566 | need_lib_prefix=no |
10567 | need_version=no |
10568 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
10569 | soname_spec='${libname}${release}${shared_ext}$major' |
10570 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
10571 | shlibpath_var=LD_LIBRARY_PATH |
10572 | shlibpath_overrides_runpath=no |
10573 | # Some binutils ld are patched to set DT_RUNPATH |
10574 | save_LDFLAGS=$LDFLAGS |
10575 | save_libdir=$libdir |
10576 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ |
10577 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" |
10578 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10579 | /* end confdefs.h. */ |
10580 | |
10581 | int |
10582 | main () |
10583 | { |
10584 | |
10585 | ; |
10586 | return 0; |
10587 | } |
10588 | _ACEOF |
10589 | if ac_fn_c_try_link "$LINENO"; then : |
10590 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : |
10591 | shlibpath_overrides_runpath=yes |
10592 | fi |
10593 | fi |
10594 | rm -f core conftest.err conftest.$ac_objext \ |
10595 | conftest$ac_exeext conftest.$ac_ext |
10596 | LDFLAGS=$save_LDFLAGS |
10597 | libdir=$save_libdir |
10598 | |
10599 | # This implies no fast_install, which is unacceptable. |
10600 | # Some rework will be needed to allow for fast_install |
10601 | # before this can be enabled. |
10602 | hardcode_into_libs=yes |
10603 | |
10604 | # Append ld.so.conf contents to the search path |
10605 | if test -f /etc/ld.so.conf; then |
10606 | 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' ' '` |
10607 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
10608 | fi |
10609 | |
10610 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
10611 | # powerpc, because MkLinux only supported shared libraries with the |
10612 | # GNU dynamic linker. Since this was broken with cross compilers, |
10613 | # most powerpc-linux boxes support dynamic linking these days and |
10614 | # people can always --disable-shared, the test was removed, and we |
10615 | # assume the GNU/Linux dynamic linker is in use. |
10616 | dynamic_linker='GNU/Linux ld.so' |
10617 | ;; |
10618 | |
10619 | netbsdelf*-gnu) |
10620 | version_type=linux |
10621 | need_lib_prefix=no |
10622 | need_version=no |
10623 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
10624 | soname_spec='${libname}${release}${shared_ext}$major' |
10625 | shlibpath_var=LD_LIBRARY_PATH |
10626 | shlibpath_overrides_runpath=no |
10627 | hardcode_into_libs=yes |
10628 | dynamic_linker='NetBSD ld.elf_so' |
10629 | ;; |
10630 | |
10631 | netbsd*) |
10632 | version_type=sunos |
10633 | need_lib_prefix=no |
10634 | need_version=no |
10635 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
10636 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
10637 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
10638 | dynamic_linker='NetBSD (a.out) ld.so' |
10639 | else |
10640 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
10641 | soname_spec='${libname}${release}${shared_ext}$major' |
10642 | dynamic_linker='NetBSD ld.elf_so' |
10643 | fi |
10644 | shlibpath_var=LD_LIBRARY_PATH |
10645 | shlibpath_overrides_runpath=yes |
10646 | hardcode_into_libs=yes |
10647 | ;; |
10648 | |
10649 | newsos6) |
10650 | version_type=linux |
10651 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
10652 | shlibpath_var=LD_LIBRARY_PATH |
10653 | shlibpath_overrides_runpath=yes |
10654 | ;; |
10655 | |
10656 | *nto* | *qnx*) |
10657 | version_type=qnx |
10658 | need_lib_prefix=no |
10659 | need_version=no |
10660 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
10661 | soname_spec='${libname}${release}${shared_ext}$major' |
10662 | shlibpath_var=LD_LIBRARY_PATH |
10663 | shlibpath_overrides_runpath=no |
10664 | hardcode_into_libs=yes |
10665 | dynamic_linker='ldqnx.so' |
10666 | ;; |
10667 | |
10668 | openbsd*) |
10669 | version_type=sunos |
10670 | sys_lib_dlsearch_path_spec="/usr/lib" |
10671 | need_lib_prefix=no |
10672 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
10673 | case $host_os in |
10674 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
10675 | *) need_version=no ;; |
10676 | esac |
10677 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
10678 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
10679 | shlibpath_var=LD_LIBRARY_PATH |
10680 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
10681 | case $host_os in |
10682 | openbsd2.[89] | openbsd2.[89].*) |
10683 | shlibpath_overrides_runpath=no |
10684 | ;; |
10685 | *) |
10686 | shlibpath_overrides_runpath=yes |
10687 | ;; |
10688 | esac |
10689 | else |
10690 | shlibpath_overrides_runpath=yes |
10691 | fi |
10692 | ;; |
10693 | |
10694 | os2*) |
10695 | libname_spec='$name' |
10696 | shrext_cmds=".dll" |
10697 | need_lib_prefix=no |
10698 | library_names_spec='$libname${shared_ext} $libname.a' |
10699 | dynamic_linker='OS/2 ld.exe' |
10700 | shlibpath_var=LIBPATH |
10701 | ;; |
10702 | |
10703 | osf3* | osf4* | osf5*) |
10704 | version_type=osf |
10705 | need_lib_prefix=no |
10706 | need_version=no |
10707 | soname_spec='${libname}${release}${shared_ext}$major' |
10708 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
10709 | shlibpath_var=LD_LIBRARY_PATH |
10710 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
10711 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
10712 | ;; |
10713 | |
10714 | rdos*) |
10715 | dynamic_linker=no |
10716 | ;; |
10717 | |
10718 | solaris*) |
10719 | version_type=linux |
10720 | need_lib_prefix=no |
10721 | need_version=no |
10722 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
10723 | soname_spec='${libname}${release}${shared_ext}$major' |
10724 | shlibpath_var=LD_LIBRARY_PATH |
10725 | shlibpath_overrides_runpath=yes |
10726 | hardcode_into_libs=yes |
10727 | # ldd complains unless libraries are executable |
10728 | postinstall_cmds='chmod +x $lib' |
10729 | ;; |
10730 | |
10731 | sunos4*) |
10732 | version_type=sunos |
10733 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
10734 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
10735 | shlibpath_var=LD_LIBRARY_PATH |
10736 | shlibpath_overrides_runpath=yes |
10737 | if test "$with_gnu_ld" = yes; then |
10738 | need_lib_prefix=no |
10739 | fi |
10740 | need_version=yes |
10741 | ;; |
10742 | |
10743 | sysv4 | sysv4.3*) |
10744 | version_type=linux |
10745 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
10746 | soname_spec='${libname}${release}${shared_ext}$major' |
10747 | shlibpath_var=LD_LIBRARY_PATH |
10748 | case $host_vendor in |
10749 | sni) |
10750 | shlibpath_overrides_runpath=no |
10751 | need_lib_prefix=no |
10752 | runpath_var=LD_RUN_PATH |
10753 | ;; |
10754 | siemens) |
10755 | need_lib_prefix=no |
10756 | ;; |
10757 | motorola) |
10758 | need_lib_prefix=no |
10759 | need_version=no |
10760 | shlibpath_overrides_runpath=no |
10761 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
10762 | ;; |
10763 | esac |
10764 | ;; |
10765 | |
10766 | sysv4*MP*) |
10767 | if test -d /usr/nec ;then |
10768 | version_type=linux |
10769 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
10770 | soname_spec='$libname${shared_ext}.$major' |
10771 | shlibpath_var=LD_LIBRARY_PATH |
10772 | fi |
10773 | ;; |
10774 | |
10775 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
10776 | version_type=freebsd-elf |
10777 | need_lib_prefix=no |
10778 | need_version=no |
10779 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
10780 | soname_spec='${libname}${release}${shared_ext}$major' |
10781 | shlibpath_var=LD_LIBRARY_PATH |
10782 | shlibpath_overrides_runpath=yes |
10783 | hardcode_into_libs=yes |
10784 | if test "$with_gnu_ld" = yes; then |
10785 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
10786 | else |
10787 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
10788 | case $host_os in |
10789 | sco3.2v5*) |
10790 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
10791 | ;; |
10792 | esac |
10793 | fi |
10794 | sys_lib_dlsearch_path_spec='/usr/lib' |
10795 | ;; |
10796 | |
10797 | tpf*) |
10798 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
10799 | version_type=linux |
10800 | need_lib_prefix=no |
10801 | need_version=no |
10802 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
10803 | shlibpath_var=LD_LIBRARY_PATH |
10804 | shlibpath_overrides_runpath=no |
10805 | hardcode_into_libs=yes |
10806 | ;; |
10807 | |
10808 | uts4*) |
10809 | version_type=linux |
10810 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
10811 | soname_spec='${libname}${release}${shared_ext}$major' |
10812 | shlibpath_var=LD_LIBRARY_PATH |
10813 | ;; |
10814 | |
10815 | *) |
10816 | dynamic_linker=no |
10817 | ;; |
10818 | esac |
10819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
10820 | $as_echo "$dynamic_linker" >&6; } |
10821 | test "$dynamic_linker" = no && can_build_shared=no |
10822 | |
10823 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
10824 | if test "$GCC" = yes; then |
10825 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
10826 | fi |
10827 | |
10828 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
10829 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
10830 | fi |
10831 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
10832 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
10833 | fi |
10834 | |
10835 | |
10836 | |
10837 | |
10838 | |
10839 | |
10840 | |
10841 | |
10842 | |
10843 | |
10844 | |
10845 | |
10846 | |
10847 | |
10848 | |
10849 | |
10850 | |
10851 | |
10852 | |
10853 | |
10854 | |
10855 | |
10856 | |
10857 | |
10858 | |
10859 | |
10860 | |
10861 | |
10862 | |
10863 | |
10864 | |
10865 | |
10866 | |
10867 | |
10868 | |
10869 | |
10870 | |
10871 | |
10872 | |
10873 | |
10874 | |
10875 | |
10876 | |
10877 | |
10878 | |
10879 | |
10880 | |
10881 | |
10882 | |
10883 | |
10884 | |
10885 | |
10886 | |
10887 | |
10888 | |
10889 | |
10890 | |
10891 | |
10892 | |
10893 | |
10894 | |
10895 | |
10896 | |
10897 | |
10898 | |
10899 | |
10900 | |
10901 | |
10902 | |
10903 | |
10904 | |
10905 | |
10906 | |
10907 | |
10908 | |
10909 | |
10910 | |
10911 | |
10912 | |
10913 | |
10914 | |
10915 | |
10916 | |
10917 | |
10918 | |
10919 | |
10920 | |
10921 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
10922 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
10923 | hardcode_action= |
10924 | if test -n "$hardcode_libdir_flag_spec" || |
10925 | test -n "$runpath_var" || |
10926 | test "X$hardcode_automatic" = "Xyes" ; then |
10927 | |
10928 | # We can hardcode non-existent directories. |
10929 | if test "$hardcode_direct" != no && |
10930 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
10931 | # have to relink, otherwise we might link with an installed library |
10932 | # when we should be linking with a yet-to-be-installed one |
10933 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && |
10934 | test "$hardcode_minus_L" != no; then |
10935 | # Linking always hardcodes the temporary library directory. |
10936 | hardcode_action=relink |
10937 | else |
10938 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
10939 | hardcode_action=immediate |
10940 | fi |
10941 | else |
10942 | # We cannot hardcode anything, or else we can only hardcode existing |
10943 | # directories. |
10944 | hardcode_action=unsupported |
10945 | fi |
10946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
10947 | $as_echo "$hardcode_action" >&6; } |
10948 | |
10949 | if test "$hardcode_action" = relink || |
10950 | test "$inherit_rpath" = yes; then |
10951 | # Fast installation is not supported |
10952 | enable_fast_install=no |
10953 | elif test "$shlibpath_overrides_runpath" = yes || |
10954 | test "$enable_shared" = no; then |
10955 | # Fast installation is not necessary |
10956 | enable_fast_install=needless |
10957 | fi |
10958 | |
10959 | |
10960 | |
10961 | |
10962 | |
10963 | |
10964 | if test "x$enable_dlopen" != xyes; then |
10965 | enable_dlopen=unknown |
10966 | enable_dlopen_self=unknown |
10967 | enable_dlopen_self_static=unknown |
10968 | else |
10969 | lt_cv_dlopen=no |
10970 | lt_cv_dlopen_libs= |
10971 | |
10972 | case $host_os in |
10973 | beos*) |
10974 | lt_cv_dlopen="load_add_on" |
10975 | lt_cv_dlopen_libs= |
10976 | lt_cv_dlopen_self=yes |
10977 | ;; |
10978 | |
10979 | mingw* | pw32* | cegcc*) |
10980 | lt_cv_dlopen="LoadLibrary" |
10981 | lt_cv_dlopen_libs= |
10982 | ;; |
10983 | |
10984 | cygwin*) |
10985 | lt_cv_dlopen="dlopen" |
10986 | lt_cv_dlopen_libs= |
10987 | ;; |
10988 | |
10989 | darwin*) |
10990 | # if libdl is installed we need to link against it |
10991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
10992 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
10993 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : |
10994 | $as_echo_n "(cached) " >&6 |
10995 | else |
10996 | ac_check_lib_save_LIBS=$LIBS |
10997 | LIBS="-ldl $LIBS" |
10998 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10999 | /* end confdefs.h. */ |
11000 | |
11001 | /* Override any GCC internal prototype to avoid an error. |
11002 | Use char because int might match the return type of a GCC |
11003 | builtin and then its argument prototype would still apply. */ |
11004 | #ifdef __cplusplus |
11005 | extern "C" |
11006 | #endif |
11007 | char dlopen (); |
11008 | int |
11009 | main () |
11010 | { |
11011 | return dlopen (); |
11012 | ; |
11013 | return 0; |
11014 | } |
11015 | _ACEOF |
11016 | if ac_fn_c_try_link "$LINENO"; then : |
11017 | ac_cv_lib_dl_dlopen=yes |
11018 | else |
11019 | ac_cv_lib_dl_dlopen=no |
11020 | fi |
11021 | rm -f core conftest.err conftest.$ac_objext \ |
11022 | conftest$ac_exeext conftest.$ac_ext |
11023 | LIBS=$ac_check_lib_save_LIBS |
11024 | fi |
11025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
11026 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
11027 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : |
11028 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
11029 | else |
11030 | |
11031 | lt_cv_dlopen="dyld" |
11032 | lt_cv_dlopen_libs= |
11033 | lt_cv_dlopen_self=yes |
11034 | |
11035 | fi |
11036 | |
11037 | ;; |
11038 | |
11039 | *) |
11040 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
11041 | if test "x$ac_cv_func_shl_load" = x""yes; then : |
11042 | lt_cv_dlopen="shl_load" |
11043 | else |
11044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
11045 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
11046 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then : |
11047 | $as_echo_n "(cached) " >&6 |
11048 | else |
11049 | ac_check_lib_save_LIBS=$LIBS |
11050 | LIBS="-ldld $LIBS" |
11051 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11052 | /* end confdefs.h. */ |
11053 | |
11054 | /* Override any GCC internal prototype to avoid an error. |
11055 | Use char because int might match the return type of a GCC |
11056 | builtin and then its argument prototype would still apply. */ |
11057 | #ifdef __cplusplus |
11058 | extern "C" |
11059 | #endif |
11060 | char shl_load (); |
11061 | int |
11062 | main () |
11063 | { |
11064 | return shl_load (); |
11065 | ; |
11066 | return 0; |
11067 | } |
11068 | _ACEOF |
11069 | if ac_fn_c_try_link "$LINENO"; then : |
11070 | ac_cv_lib_dld_shl_load=yes |
11071 | else |
11072 | ac_cv_lib_dld_shl_load=no |
11073 | fi |
11074 | rm -f core conftest.err conftest.$ac_objext \ |
11075 | conftest$ac_exeext conftest.$ac_ext |
11076 | LIBS=$ac_check_lib_save_LIBS |
11077 | fi |
11078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
11079 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
11080 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : |
11081 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
11082 | else |
11083 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
11084 | if test "x$ac_cv_func_dlopen" = x""yes; then : |
11085 | lt_cv_dlopen="dlopen" |
11086 | else |
11087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
11088 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
11089 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : |
11090 | $as_echo_n "(cached) " >&6 |
11091 | else |
11092 | ac_check_lib_save_LIBS=$LIBS |
11093 | LIBS="-ldl $LIBS" |
11094 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11095 | /* end confdefs.h. */ |
11096 | |
11097 | /* Override any GCC internal prototype to avoid an error. |
11098 | Use char because int might match the return type of a GCC |
11099 | builtin and then its argument prototype would still apply. */ |
11100 | #ifdef __cplusplus |
11101 | extern "C" |
11102 | #endif |
11103 | char dlopen (); |
11104 | int |
11105 | main () |
11106 | { |
11107 | return dlopen (); |
11108 | ; |
11109 | return 0; |
11110 | } |
11111 | _ACEOF |
11112 | if ac_fn_c_try_link "$LINENO"; then : |
11113 | ac_cv_lib_dl_dlopen=yes |
11114 | else |
11115 | ac_cv_lib_dl_dlopen=no |
11116 | fi |
11117 | rm -f core conftest.err conftest.$ac_objext \ |
11118 | conftest$ac_exeext conftest.$ac_ext |
11119 | LIBS=$ac_check_lib_save_LIBS |
11120 | fi |
11121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
11122 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
11123 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : |
11124 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
11125 | else |
11126 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
11127 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } |
11128 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then : |
11129 | $as_echo_n "(cached) " >&6 |
11130 | else |
11131 | ac_check_lib_save_LIBS=$LIBS |
11132 | LIBS="-lsvld $LIBS" |
11133 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11134 | /* end confdefs.h. */ |
11135 | |
11136 | /* Override any GCC internal prototype to avoid an error. |
11137 | Use char because int might match the return type of a GCC |
11138 | builtin and then its argument prototype would still apply. */ |
11139 | #ifdef __cplusplus |
11140 | extern "C" |
11141 | #endif |
11142 | char dlopen (); |
11143 | int |
11144 | main () |
11145 | { |
11146 | return dlopen (); |
11147 | ; |
11148 | return 0; |
11149 | } |
11150 | _ACEOF |
11151 | if ac_fn_c_try_link "$LINENO"; then : |
11152 | ac_cv_lib_svld_dlopen=yes |
11153 | else |
11154 | ac_cv_lib_svld_dlopen=no |
11155 | fi |
11156 | rm -f core conftest.err conftest.$ac_objext \ |
11157 | conftest$ac_exeext conftest.$ac_ext |
11158 | LIBS=$ac_check_lib_save_LIBS |
11159 | fi |
11160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
11161 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
11162 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : |
11163 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
11164 | else |
11165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
11166 | $as_echo_n "checking for dld_link in -ldld... " >&6; } |
11167 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then : |
11168 | $as_echo_n "(cached) " >&6 |
11169 | else |
11170 | ac_check_lib_save_LIBS=$LIBS |
11171 | LIBS="-ldld $LIBS" |
11172 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11173 | /* end confdefs.h. */ |
11174 | |
11175 | /* Override any GCC internal prototype to avoid an error. |
11176 | Use char because int might match the return type of a GCC |
11177 | builtin and then its argument prototype would still apply. */ |
11178 | #ifdef __cplusplus |
11179 | extern "C" |
11180 | #endif |
11181 | char dld_link (); |
11182 | int |
11183 | main () |
11184 | { |
11185 | return dld_link (); |
11186 | ; |
11187 | return 0; |
11188 | } |
11189 | _ACEOF |
11190 | if ac_fn_c_try_link "$LINENO"; then : |
11191 | ac_cv_lib_dld_dld_link=yes |
11192 | else |
11193 | ac_cv_lib_dld_dld_link=no |
11194 | fi |
11195 | rm -f core conftest.err conftest.$ac_objext \ |
11196 | conftest$ac_exeext conftest.$ac_ext |
11197 | LIBS=$ac_check_lib_save_LIBS |
11198 | fi |
11199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
11200 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
11201 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : |
11202 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
11203 | fi |
11204 | |
11205 | |
11206 | fi |
11207 | |
11208 | |
11209 | fi |
11210 | |
11211 | |
11212 | fi |
11213 | |
11214 | |
11215 | fi |
11216 | |
11217 | |
11218 | fi |
11219 | |
11220 | ;; |
11221 | esac |
11222 | |
11223 | if test "x$lt_cv_dlopen" != xno; then |
11224 | enable_dlopen=yes |
11225 | else |
11226 | enable_dlopen=no |
11227 | fi |
11228 | |
11229 | case $lt_cv_dlopen in |
11230 | dlopen) |
11231 | save_CPPFLAGS="$CPPFLAGS" |
11232 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
11233 | |
11234 | save_LDFLAGS="$LDFLAGS" |
11235 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
11236 | |
11237 | save_LIBS="$LIBS" |
11238 | LIBS="$lt_cv_dlopen_libs $LIBS" |
11239 | |
11240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
11241 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } |
11242 | if test "${lt_cv_dlopen_self+set}" = set; then : |
11243 | $as_echo_n "(cached) " >&6 |
11244 | else |
11245 | if test "$cross_compiling" = yes; then : |
11246 | lt_cv_dlopen_self=cross |
11247 | else |
11248 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
11249 | lt_status=$lt_dlunknown |
11250 | cat > conftest.$ac_ext <<_LT_EOF |
11251 | #line 11251 "configure" |
11252 | #include "confdefs.h" |
11253 | |
11254 | #if HAVE_DLFCN_H |
11255 | #include <dlfcn.h> |
11256 | #endif |
11257 | |
11258 | #include <stdio.h> |
11259 | |
11260 | #ifdef RTLD_GLOBAL |
11261 | # define LT_DLGLOBAL RTLD_GLOBAL |
11262 | #else |
11263 | # ifdef DL_GLOBAL |
11264 | # define LT_DLGLOBAL DL_GLOBAL |
11265 | # else |
11266 | # define LT_DLGLOBAL 0 |
11267 | # endif |
11268 | #endif |
11269 | |
11270 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
11271 | find out it does not work in some platform. */ |
11272 | #ifndef LT_DLLAZY_OR_NOW |
11273 | # ifdef RTLD_LAZY |
11274 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
11275 | # else |
11276 | # ifdef DL_LAZY |
11277 | # define LT_DLLAZY_OR_NOW DL_LAZY |
11278 | # else |
11279 | # ifdef RTLD_NOW |
11280 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
11281 | # else |
11282 | # ifdef DL_NOW |
11283 | # define LT_DLLAZY_OR_NOW DL_NOW |
11284 | # else |
11285 | # define LT_DLLAZY_OR_NOW 0 |
11286 | # endif |
11287 | # endif |
11288 | # endif |
11289 | # endif |
11290 | #endif |
11291 | |
11292 | void fnord() { int i=42;} |
11293 | int main () |
11294 | { |
11295 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
11296 | int status = $lt_dlunknown; |
11297 | |
11298 | if (self) |
11299 | { |
11300 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
11301 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
11302 | /* dlclose (self); */ |
11303 | } |
11304 | else |
11305 | puts (dlerror ()); |
11306 | |
11307 | return status; |
11308 | } |
11309 | _LT_EOF |
11310 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
11311 | (eval $ac_link) 2>&5 |
11312 | ac_status=$? |
11313 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11314 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
11315 | (./conftest; exit; ) >&5 2>/dev/null |
11316 | lt_status=$? |
11317 | case x$lt_status in |
11318 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
11319 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
11320 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
11321 | esac |
11322 | else : |
11323 | # compilation failed |
11324 | lt_cv_dlopen_self=no |
11325 | fi |
11326 | fi |
11327 | rm -fr conftest* |
11328 | |
11329 | |
11330 | fi |
11331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
11332 | $as_echo "$lt_cv_dlopen_self" >&6; } |
11333 | |
11334 | if test "x$lt_cv_dlopen_self" = xyes; then |
11335 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
11336 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
11337 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } |
11338 | if test "${lt_cv_dlopen_self_static+set}" = set; then : |
11339 | $as_echo_n "(cached) " >&6 |
11340 | else |
11341 | if test "$cross_compiling" = yes; then : |
11342 | lt_cv_dlopen_self_static=cross |
11343 | else |
11344 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
11345 | lt_status=$lt_dlunknown |
11346 | cat > conftest.$ac_ext <<_LT_EOF |
11347 | #line 11347 "configure" |
11348 | #include "confdefs.h" |
11349 | |
11350 | #if HAVE_DLFCN_H |
11351 | #include <dlfcn.h> |
11352 | #endif |
11353 | |
11354 | #include <stdio.h> |
11355 | |
11356 | #ifdef RTLD_GLOBAL |
11357 | # define LT_DLGLOBAL RTLD_GLOBAL |
11358 | #else |
11359 | # ifdef DL_GLOBAL |
11360 | # define LT_DLGLOBAL DL_GLOBAL |
11361 | # else |
11362 | # define LT_DLGLOBAL 0 |
11363 | # endif |
11364 | #endif |
11365 | |
11366 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
11367 | find out it does not work in some platform. */ |
11368 | #ifndef LT_DLLAZY_OR_NOW |
11369 | # ifdef RTLD_LAZY |
11370 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
11371 | # else |
11372 | # ifdef DL_LAZY |
11373 | # define LT_DLLAZY_OR_NOW DL_LAZY |
11374 | # else |
11375 | # ifdef RTLD_NOW |
11376 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
11377 | # else |
11378 | # ifdef DL_NOW |
11379 | # define LT_DLLAZY_OR_NOW DL_NOW |
11380 | # else |
11381 | # define LT_DLLAZY_OR_NOW 0 |
11382 | # endif |
11383 | # endif |
11384 | # endif |
11385 | # endif |
11386 | #endif |
11387 | |
11388 | void fnord() { int i=42;} |
11389 | int main () |
11390 | { |
11391 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
11392 | int status = $lt_dlunknown; |
11393 | |
11394 | if (self) |
11395 | { |
11396 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
11397 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
11398 | /* dlclose (self); */ |
11399 | } |
11400 | else |
11401 | puts (dlerror ()); |
11402 | |
11403 | return status; |
11404 | } |
11405 | _LT_EOF |
11406 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
11407 | (eval $ac_link) 2>&5 |
11408 | ac_status=$? |
11409 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11410 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
11411 | (./conftest; exit; ) >&5 2>/dev/null |
11412 | lt_status=$? |
11413 | case x$lt_status in |
11414 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
11415 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
11416 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
11417 | esac |
11418 | else : |
11419 | # compilation failed |
11420 | lt_cv_dlopen_self_static=no |
11421 | fi |
11422 | fi |
11423 | rm -fr conftest* |
11424 | |
11425 | |
11426 | fi |
11427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
11428 | $as_echo "$lt_cv_dlopen_self_static" >&6; } |
11429 | fi |
11430 | |
11431 | CPPFLAGS="$save_CPPFLAGS" |
11432 | LDFLAGS="$save_LDFLAGS" |
11433 | LIBS="$save_LIBS" |
11434 | ;; |
11435 | esac |
11436 | |
11437 | case $lt_cv_dlopen_self in |
11438 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
11439 | *) enable_dlopen_self=unknown ;; |
11440 | esac |
11441 | |
11442 | case $lt_cv_dlopen_self_static in |
11443 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
11444 | *) enable_dlopen_self_static=unknown ;; |
11445 | esac |
11446 | fi |
11447 | |
11448 | |
11449 | |
11450 | |
11451 | |
11452 | |
11453 | |
11454 | |
11455 | |
11456 | |
11457 | |
11458 | |
11459 | |
11460 | |
11461 | |
11462 | |
11463 | |
11464 | striplib= |
11465 | old_striplib= |
11466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
11467 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } |
11468 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
11469 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
11470 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
11471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11472 | $as_echo "yes" >&6; } |
11473 | else |
11474 | # FIXME - insert some real tests, host_os isn't really good enough |
11475 | case $host_os in |
11476 | darwin*) |
11477 | if test -n "$STRIP" ; then |
11478 | striplib="$STRIP -x" |
11479 | old_striplib="$STRIP -S" |
11480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11481 | $as_echo "yes" >&6; } |
11482 | else |
11483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11484 | $as_echo "no" >&6; } |
11485 | fi |
11486 | ;; |
11487 | *) |
11488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11489 | $as_echo "no" >&6; } |
11490 | ;; |
11491 | esac |
11492 | fi |
11493 | |
11494 | |
11495 | |
11496 | |
11497 | |
11498 | |
11499 | |
11500 | |
11501 | |
11502 | |
11503 | |
11504 | |
11505 | # Report which library types will actually be built |
11506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
11507 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } |
11508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 |
11509 | $as_echo "$can_build_shared" >&6; } |
11510 | |
11511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
11512 | $as_echo_n "checking whether to build shared libraries... " >&6; } |
11513 | test "$can_build_shared" = "no" && enable_shared=no |
11514 | |
11515 | # On AIX, shared libraries and static libraries use the same namespace, and |
11516 | # are all built from PIC. |
11517 | case $host_os in |
11518 | aix3*) |
11519 | test "$enable_shared" = yes && enable_static=no |
11520 | if test -n "$RANLIB"; then |
11521 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
11522 | postinstall_cmds='$RANLIB $lib' |
11523 | fi |
11524 | ;; |
11525 | |
11526 | aix[4-9]*) |
11527 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
11528 | test "$enable_shared" = yes && enable_static=no |
11529 | fi |
11530 | ;; |
11531 | esac |
11532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
11533 | $as_echo "$enable_shared" >&6; } |
11534 | |
11535 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
11536 | $as_echo_n "checking whether to build static libraries... " >&6; } |
11537 | # Make sure either enable_shared or enable_static is yes. |
11538 | test "$enable_shared" = yes || enable_static=yes |
11539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
11540 | $as_echo "$enable_static" >&6; } |
11541 | |
11542 | |
11543 | |
11544 | |
11545 | fi |
11546 | ac_ext=c |
11547 | ac_cpp='$CPP $CPPFLAGS' |
11548 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
11549 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
11550 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
11551 | |
11552 | CC="$lt_save_CC" |
11553 | |
11554 | |
11555 | |
11556 | |
11557 | |
11558 | |
11559 | |
11560 | |
11561 | |
11562 | |
11563 | |
11564 | |
11565 | |
11566 | ac_config_commands="$ac_config_commands libtool" |
11567 | |
11568 | |
11569 | |
11570 | |
11571 | # Only expand once: |
11572 | |
11573 | |
11574 | |
11575 | |
11576 | |
11577 | |
11578 | |
11579 | |
11580 | |
11581 | |
11582 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
11583 | if test -n "$ac_tool_prefix"; then |
11584 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
11585 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
11586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11587 | $as_echo_n "checking for $ac_word... " >&6; } |
11588 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
11589 | $as_echo_n "(cached) " >&6 |
11590 | else |
11591 | case $PKG_CONFIG in |
11592 | [\\/]* | ?:[\\/]*) |
11593 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
11594 | ;; |
11595 | *) |
11596 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11597 | for as_dir in $PATH |
11598 | do |
11599 | IFS=$as_save_IFS |
11600 | test -z "$as_dir" && as_dir=. |
11601 | for ac_exec_ext in '' $ac_executable_extensions; do |
11602 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
11603 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
11604 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
11605 | break 2 |
11606 | fi |
11607 | done |
11608 | done |
11609 | IFS=$as_save_IFS |
11610 | |
11611 | ;; |
11612 | esac |
11613 | fi |
11614 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
11615 | if test -n "$PKG_CONFIG"; then |
11616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
11617 | $as_echo "$PKG_CONFIG" >&6; } |
11618 | else |
11619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11620 | $as_echo "no" >&6; } |
11621 | fi |
11622 | |
11623 | |
11624 | fi |
11625 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
11626 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
11627 | # Extract the first word of "pkg-config", so it can be a program name with args. |
11628 | set dummy pkg-config; ac_word=$2 |
11629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11630 | $as_echo_n "checking for $ac_word... " >&6; } |
11631 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : |
11632 | $as_echo_n "(cached) " >&6 |
11633 | else |
11634 | case $ac_pt_PKG_CONFIG in |
11635 | [\\/]* | ?:[\\/]*) |
11636 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
11637 | ;; |
11638 | *) |
11639 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11640 | for as_dir in $PATH |
11641 | do |
11642 | IFS=$as_save_IFS |
11643 | test -z "$as_dir" && as_dir=. |
11644 | for ac_exec_ext in '' $ac_executable_extensions; do |
11645 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
11646 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
11647 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
11648 | break 2 |
11649 | fi |
11650 | done |
11651 | done |
11652 | IFS=$as_save_IFS |
11653 | |
11654 | ;; |
11655 | esac |
11656 | fi |
11657 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
11658 | if test -n "$ac_pt_PKG_CONFIG"; then |
11659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
11660 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
11661 | else |
11662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11663 | $as_echo "no" >&6; } |
11664 | fi |
11665 | |
11666 | if test "x$ac_pt_PKG_CONFIG" = x; then |
11667 | PKG_CONFIG="" |
11668 | else |
11669 | case $cross_compiling:$ac_tool_warned in |
11670 | yes:) |
11671 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
11672 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
11673 | ac_tool_warned=yes ;; |
11674 | esac |
11675 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
11676 | fi |
11677 | else |
11678 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
11679 | fi |
11680 | |
11681 | fi |
11682 | if test -n "$PKG_CONFIG"; then |
11683 | _pkg_min_version=0.9.0 |
11684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
11685 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
11686 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
11687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11688 | $as_echo "yes" >&6; } |
11689 | else |
11690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11691 | $as_echo "no" >&6; } |
11692 | PKG_CONFIG="" |
11693 | fi |
11694 | fi |
11695 | |
11696 | # Extract the first word of "mv", so it can be a program name with args. |
11697 | set dummy mv; ac_word=$2 |
11698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11699 | $as_echo_n "checking for $ac_word... " >&6; } |
11700 | if test "${ac_cv_path_MV+set}" = set; then : |
11701 | $as_echo_n "(cached) " >&6 |
11702 | else |
11703 | case $MV in |
11704 | [\\/]* | ?:[\\/]*) |
11705 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
11706 | ;; |
11707 | *) |
11708 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11709 | for as_dir in $PATH |
11710 | do |
11711 | IFS=$as_save_IFS |
11712 | test -z "$as_dir" && as_dir=. |
11713 | for ac_exec_ext in '' $ac_executable_extensions; do |
11714 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
11715 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
11716 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
11717 | break 2 |
11718 | fi |
11719 | done |
11720 | done |
11721 | IFS=$as_save_IFS |
11722 | |
11723 | ;; |
11724 | esac |
11725 | fi |
11726 | MV=$ac_cv_path_MV |
11727 | if test -n "$MV"; then |
11728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 |
11729 | $as_echo "$MV" >&6; } |
11730 | else |
11731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11732 | $as_echo "no" >&6; } |
11733 | fi |
11734 | |
11735 | |
11736 | # Extract the first word of "rm", so it can be a program name with args. |
11737 | set dummy rm; ac_word=$2 |
11738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11739 | $as_echo_n "checking for $ac_word... " >&6; } |
11740 | if test "${ac_cv_path_RM+set}" = set; then : |
11741 | $as_echo_n "(cached) " >&6 |
11742 | else |
11743 | case $RM in |
11744 | [\\/]* | ?:[\\/]*) |
11745 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
11746 | ;; |
11747 | *) |
11748 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11749 | for as_dir in $PATH |
11750 | do |
11751 | IFS=$as_save_IFS |
11752 | test -z "$as_dir" && as_dir=. |
11753 | for ac_exec_ext in '' $ac_executable_extensions; do |
11754 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
11755 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
11756 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
11757 | break 2 |
11758 | fi |
11759 | done |
11760 | done |
11761 | IFS=$as_save_IFS |
11762 | |
11763 | ;; |
11764 | esac |
11765 | fi |
11766 | RM=$ac_cv_path_RM |
11767 | if test -n "$RM"; then |
11768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 |
11769 | $as_echo "$RM" >&6; } |
11770 | else |
11771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11772 | $as_echo "no" >&6; } |
11773 | fi |
11774 | |
11775 | |
11776 | # Extract the first word of "sed", so it can be a program name with args. |
11777 | set dummy sed; ac_word=$2 |
11778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11779 | $as_echo_n "checking for $ac_word... " >&6; } |
11780 | if test "${ac_cv_path_SED+set}" = set; then : |
11781 | $as_echo_n "(cached) " >&6 |
11782 | else |
11783 | case $SED in |
11784 | [\\/]* | ?:[\\/]*) |
11785 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
11786 | ;; |
11787 | *) |
11788 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11789 | for as_dir in $PATH |
11790 | do |
11791 | IFS=$as_save_IFS |
11792 | test -z "$as_dir" && as_dir=. |
11793 | for ac_exec_ext in '' $ac_executable_extensions; do |
11794 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
11795 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
11796 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
11797 | break 2 |
11798 | fi |
11799 | done |
11800 | done |
11801 | IFS=$as_save_IFS |
11802 | |
11803 | ;; |
11804 | esac |
11805 | fi |
11806 | SED=$ac_cv_path_SED |
11807 | if test -n "$SED"; then |
11808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 |
11809 | $as_echo "$SED" >&6; } |
11810 | else |
11811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11812 | $as_echo "no" >&6; } |
11813 | fi |
11814 | |
11815 | |
11816 | |
11817 | # Extract the first word of "ldconfig", so it can be a program name with args. |
11818 | set dummy ldconfig; ac_word=$2 |
11819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11820 | $as_echo_n "checking for $ac_word... " >&6; } |
11821 | if test "${ac_cv_path_LDCONFIG+set}" = set; then : |
11822 | $as_echo_n "(cached) " >&6 |
11823 | else |
11824 | case $LDCONFIG in |
11825 | [\\/]* | ?:[\\/]*) |
11826 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. |
11827 | ;; |
11828 | *) |
11829 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11830 | for as_dir in /sbin /usr/sbin $PATH |
11831 | do |
11832 | IFS=$as_save_IFS |
11833 | test -z "$as_dir" && as_dir=. |
11834 | for ac_exec_ext in '' $ac_executable_extensions; do |
11835 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
11836 | ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext" |
11837 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
11838 | break 2 |
11839 | fi |
11840 | done |
11841 | done |
11842 | IFS=$as_save_IFS |
11843 | |
11844 | test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true" |
11845 | ;; |
11846 | esac |
11847 | fi |
11848 | LDCONFIG=$ac_cv_path_LDCONFIG |
11849 | if test -n "$LDCONFIG"; then |
11850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5 |
11851 | $as_echo "$LDCONFIG" >&6; } |
11852 | else |
11853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11854 | $as_echo "no" >&6; } |
11855 | fi |
11856 | |
11857 | |
11858 | |
11859 | # Environment |
11860 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows OS" >&5 |
11861 | $as_echo_n "checking Windows OS... " >&6; } |
11862 | case "${target}" in |
11863 | *-mingw32*|*-winnt*|*-cygwin*) |
11864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11865 | $as_echo "yes" >&6; } |
11866 | WINDOWS="yes" |
11867 | |
11868 | $as_echo "#define WINDOWS 1" >>confdefs.h |
11869 | |
11870 | ;; |
11871 | *) |
11872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11873 | $as_echo "no" >&6; } |
11874 | WINDOWS="no" |
11875 | ;; |
11876 | esac |
11877 | |
11878 | if test "x${enable_ntfs_3g}" = "xyes"; then |
11879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking fuse compatibility" >&5 |
11880 | $as_echo_n "checking fuse compatibility... " >&6; } |
11881 | case "${target_os}" in |
11882 | linux*|solaris*) |
11883 | |
11884 | # Check whether --with-fuse was given. |
11885 | if test "${with_fuse+set}" = set; then : |
11886 | withval=$with_fuse; |
11887 | else |
11888 | with_fuse="internal" |
11889 | |
11890 | fi |
11891 | |
11892 | ;; |
11893 | darwin*|netbsd*|kfreebsd*-gnu) |
11894 | with_fuse="external" |
11895 | ;; |
11896 | freebsd*) |
11897 | as_fn_error $? "Please see FreeBSD support at http://www.freshports.org/sysutils/fusefs-ntfs" "$LINENO" 5 |
11898 | ;; |
11899 | *) |
11900 | as_fn_error $? "ntfs-3g can be built for Linux, FreeBSD, Mac OS X, NetBSD, and Solaris only." "$LINENO" 5 |
11901 | ;; |
11902 | esac |
11903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_fuse}" >&5 |
11904 | $as_echo "${with_fuse}" >&6; } |
11905 | else |
11906 | with_fuse="none" |
11907 | fi |
11908 | |
11909 | case "${target_os}" in |
11910 | solaris*) |
11911 | if test "x$GCC" != "xyes" ; then |
11912 | as_fn_error $? "ntfs-3g can be built only with gcc on Solaris. Install it by 'pkg install gcc-dev' and retry.)" "$LINENO" 5 |
11913 | fi |
11914 | ;; |
11915 | esac |
11916 | |
11917 | if test "${enable_ldscript}" = "yes"; then |
11918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Output format" >&5 |
11919 | $as_echo_n "checking Output format... " >&6; } |
11920 | OUTPUT_FORMAT="$(${CC} ${CFLAGS} ${LDFLAGS} -Wl,--verbose 2>&1 | ${SED} -n 's/^OUTPUT_FORMAT("\([^"]*\)",.*/\1/p')" |
11921 | if test -z "${OUTPUT_FORMAT}"; then |
11922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: None" >&5 |
11923 | $as_echo "None" >&6; } |
11924 | else |
11925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${OUTPUT_FORMAT}" >&5 |
11926 | $as_echo "${OUTPUT_FORMAT}" >&6; } |
11927 | OUTPUT_FORMAT="OUTPUT_FORMAT ( ${OUTPUT_FORMAT} )" |
11928 | fi |
11929 | fi |
11930 | |
11931 | # Libraries |
11932 | if test "${with_fuse}" = "internal"; then |
11933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 |
11934 | $as_echo_n "checking for pthread_create in -lpthread... " >&6; } |
11935 | if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then : |
11936 | $as_echo_n "(cached) " >&6 |
11937 | else |
11938 | ac_check_lib_save_LIBS=$LIBS |
11939 | LIBS="-lpthread $LIBS" |
11940 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11941 | /* end confdefs.h. */ |
11942 | |
11943 | /* Override any GCC internal prototype to avoid an error. |
11944 | Use char because int might match the return type of a GCC |
11945 | builtin and then its argument prototype would still apply. */ |
11946 | #ifdef __cplusplus |
11947 | extern "C" |
11948 | #endif |
11949 | char pthread_create (); |
11950 | int |
11951 | main () |
11952 | { |
11953 | return pthread_create (); |
11954 | ; |
11955 | return 0; |
11956 | } |
11957 | _ACEOF |
11958 | if ac_fn_c_try_link "$LINENO"; then : |
11959 | ac_cv_lib_pthread_pthread_create=yes |
11960 | else |
11961 | ac_cv_lib_pthread_pthread_create=no |
11962 | fi |
11963 | rm -f core conftest.err conftest.$ac_objext \ |
11964 | conftest$ac_exeext conftest.$ac_ext |
11965 | LIBS=$ac_check_lib_save_LIBS |
11966 | fi |
11967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 |
11968 | $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } |
11969 | if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then : |
11970 | LIBFUSE_LITE_LIBS="${LIBFUSE_LITE_LIBS} -lpthread" |
11971 | else |
11972 | as_fn_error $? "Cannot find pthread library" "$LINENO" 5 |
11973 | |
11974 | fi |
11975 | |
11976 | |
11977 | $as_echo "#define _REENTRANT 1" >>confdefs.h |
11978 | |
11979 | # required so that we re-compile anything |
11980 | |
11981 | $as_echo "#define FUSE_INTERNAL 1" >>confdefs.h |
11982 | |
11983 | |
11984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Solaris OS" >&5 |
11985 | $as_echo_n "checking Solaris OS... " >&6; } |
11986 | ac_ext=c |
11987 | ac_cpp='$CPP $CPPFLAGS' |
11988 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
11989 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
11990 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
11991 | |
11992 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11993 | /* end confdefs.h. */ |
11994 | |
11995 | #if !((defined(sun) || defined(__sun)) && (defined(__SVR4) || defined(__svr4__))) |
11996 | #error "Not a Solaris system." |
11997 | #endif |
11998 | |
11999 | |
12000 | _ACEOF |
12001 | if ac_fn_c_try_compile "$LINENO"; then : |
12002 | |
12003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12004 | $as_echo "yes" >&6; } |
12005 | LIBFUSE_LITE_CFLAGS="${LIBFUSE_LITE_CFLAGS} -std=c99 -D__SOLARIS__ -D_XOPEN_SOURCE=600 -D__EXTENSIONS__" |
12006 | LIBFUSE_LITE_LIBS="${LIBFUSE_LITE_LIBS} -lxnet" |
12007 | |
12008 | else |
12009 | |
12010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12011 | $as_echo "no" >&6; } |
12012 | |
12013 | |
12014 | fi |
12015 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12016 | ac_ext=c |
12017 | ac_cpp='$CPP $CPPFLAGS' |
12018 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
12019 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
12020 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
12021 | |
12022 | elif test "${with_fuse}" = "external"; then |
12023 | if test -z "$PKG_CONFIG"; then |
12024 | # Extract the first word of "pkg-config", so it can be a program name with args. |
12025 | set dummy pkg-config; ac_word=$2 |
12026 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12027 | $as_echo_n "checking for $ac_word... " >&6; } |
12028 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
12029 | $as_echo_n "(cached) " >&6 |
12030 | else |
12031 | case $PKG_CONFIG in |
12032 | [\\/]* | ?:[\\/]*) |
12033 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
12034 | ;; |
12035 | *) |
12036 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12037 | for as_dir in $PATH |
12038 | do |
12039 | IFS=$as_save_IFS |
12040 | test -z "$as_dir" && as_dir=. |
12041 | for ac_exec_ext in '' $ac_executable_extensions; do |
12042 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
12043 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
12044 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
12045 | break 2 |
12046 | fi |
12047 | done |
12048 | done |
12049 | IFS=$as_save_IFS |
12050 | |
12051 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
12052 | ;; |
12053 | esac |
12054 | fi |
12055 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
12056 | if test -n "$PKG_CONFIG"; then |
12057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
12058 | $as_echo "$PKG_CONFIG" >&6; } |
12059 | else |
12060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12061 | $as_echo "no" >&6; } |
12062 | fi |
12063 | |
12064 | |
12065 | fi |
12066 | test "x${PKG_CONFIG}" = "xno" && as_fn_error $? "pkg-config wasn't found! Please install from your vendor, or see http://pkg-config.freedesktop.org/wiki/" "$LINENO" 5 |
12067 | # Libraries often install their metadata .pc files in directories |
12068 | # not searched by pkg-config. Let's workaround this. |
12069 | export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:/lib/pkgconfig:/usr/lib/pkgconfig:/opt/gnome/lib/pkgconfig:/usr/share/pkgconfig:/usr/local/lib/pkgconfig:$prefix/lib/pkgconfig:/opt/gnome/share/pkgconfig:/usr/local/share/pkgconfig |
12070 | |
12071 | pkg_failed=no |
12072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FUSE_MODULE" >&5 |
12073 | $as_echo_n "checking for FUSE_MODULE... " >&6; } |
12074 | |
12075 | if test -n "$FUSE_MODULE_CFLAGS"; then |
12076 | pkg_cv_FUSE_MODULE_CFLAGS="$FUSE_MODULE_CFLAGS" |
12077 | elif test -n "$PKG_CONFIG"; then |
12078 | if test -n "$PKG_CONFIG" && \ |
12079 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse >= 2.6.0\""; } >&5 |
12080 | ($PKG_CONFIG --exists --print-errors "fuse >= 2.6.0") 2>&5 |
12081 | ac_status=$? |
12082 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
12083 | test $ac_status = 0; }; then |
12084 | pkg_cv_FUSE_MODULE_CFLAGS=`$PKG_CONFIG --cflags "fuse >= 2.6.0" 2>/dev/null` |
12085 | else |
12086 | pkg_failed=yes |
12087 | fi |
12088 | else |
12089 | pkg_failed=untried |
12090 | fi |
12091 | if test -n "$FUSE_MODULE_LIBS"; then |
12092 | pkg_cv_FUSE_MODULE_LIBS="$FUSE_MODULE_LIBS" |
12093 | elif test -n "$PKG_CONFIG"; then |
12094 | if test -n "$PKG_CONFIG" && \ |
12095 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse >= 2.6.0\""; } >&5 |
12096 | ($PKG_CONFIG --exists --print-errors "fuse >= 2.6.0") 2>&5 |
12097 | ac_status=$? |
12098 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
12099 | test $ac_status = 0; }; then |
12100 | pkg_cv_FUSE_MODULE_LIBS=`$PKG_CONFIG --libs "fuse >= 2.6.0" 2>/dev/null` |
12101 | else |
12102 | pkg_failed=yes |
12103 | fi |
12104 | else |
12105 | pkg_failed=untried |
12106 | fi |
12107 | |
12108 | |
12109 | |
12110 | if test $pkg_failed = yes; then |
12111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12112 | $as_echo "no" >&6; } |
12113 | |
12114 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
12115 | _pkg_short_errors_supported=yes |
12116 | else |
12117 | _pkg_short_errors_supported=no |
12118 | fi |
12119 | if test $_pkg_short_errors_supported = yes; then |
12120 | FUSE_MODULE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fuse >= 2.6.0" 2>&1` |
12121 | else |
12122 | FUSE_MODULE_PKG_ERRORS=`$PKG_CONFIG --print-errors "fuse >= 2.6.0" 2>&1` |
12123 | fi |
12124 | # Put the nasty error message in config.log where it belongs |
12125 | echo "$FUSE_MODULE_PKG_ERRORS" >&5 |
12126 | |
12127 | |
12128 | as_fn_error $? "FUSE >= 2.6.0 was not found. Either older FUSE is still present, or FUSE is not fully installed (e.g. fuse, libfuse, libfuse2, libfuse-dev, etc packages). Source code: http://fuse.sf.net" "$LINENO" 5 |
12129 | |
12130 | |
12131 | elif test $pkg_failed = untried; then |
12132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12133 | $as_echo "no" >&6; } |
12134 | |
12135 | as_fn_error $? "FUSE >= 2.6.0 was not found. Either older FUSE is still present, or FUSE is not fully installed (e.g. fuse, libfuse, libfuse2, libfuse-dev, etc packages). Source code: http://fuse.sf.net" "$LINENO" 5 |
12136 | |
12137 | |
12138 | else |
12139 | FUSE_MODULE_CFLAGS=$pkg_cv_FUSE_MODULE_CFLAGS |
12140 | FUSE_MODULE_LIBS=$pkg_cv_FUSE_MODULE_LIBS |
12141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12142 | $as_echo "yes" >&6; } |
12143 | |
12144 | fi |
12145 | FUSE_LIB_PATH=`$PKG_CONFIG --libs-only-L fuse | sed -e 's,//*,/,g' -e 's, *$,,'` |
12146 | fi |
12147 | |
12148 | # Autodetect whether we can build crypto stuff or not. |
12149 | compile_crypto=false |
12150 | if test "$enable_crypto" != "no"; then |
12151 | have_libgcrypt=false |
12152 | |
12153 | # Check whether --with-libgcrypt-prefix was given. |
12154 | if test "${with_libgcrypt_prefix+set}" = set; then : |
12155 | withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval" |
12156 | else |
12157 | libgcrypt_config_prefix="" |
12158 | fi |
12159 | |
12160 | if test x$libgcrypt_config_prefix != x ; then |
12161 | if test x${LIBGCRYPT_CONFIG+set} != xset ; then |
12162 | LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config |
12163 | fi |
12164 | fi |
12165 | |
12166 | # Extract the first word of "libgcrypt-config", so it can be a program name with args. |
12167 | set dummy libgcrypt-config; ac_word=$2 |
12168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12169 | $as_echo_n "checking for $ac_word... " >&6; } |
12170 | if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then : |
12171 | $as_echo_n "(cached) " >&6 |
12172 | else |
12173 | case $LIBGCRYPT_CONFIG in |
12174 | [\\/]* | ?:[\\/]*) |
12175 | ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path. |
12176 | ;; |
12177 | *) |
12178 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12179 | for as_dir in $PATH |
12180 | do |
12181 | IFS=$as_save_IFS |
12182 | test -z "$as_dir" && as_dir=. |
12183 | for ac_exec_ext in '' $ac_executable_extensions; do |
12184 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
12185 | ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
12186 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
12187 | break 2 |
12188 | fi |
12189 | done |
12190 | done |
12191 | IFS=$as_save_IFS |
12192 | |
12193 | test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no" |
12194 | ;; |
12195 | esac |
12196 | fi |
12197 | LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG |
12198 | if test -n "$LIBGCRYPT_CONFIG"; then |
12199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5 |
12200 | $as_echo "$LIBGCRYPT_CONFIG" >&6; } |
12201 | else |
12202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12203 | $as_echo "no" >&6; } |
12204 | fi |
12205 | |
12206 | |
12207 | tmp=1.2.2 |
12208 | if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then |
12209 | req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'` |
12210 | min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'` |
12211 | else |
12212 | req_libgcrypt_api=0 |
12213 | min_libgcrypt_version="$tmp" |
12214 | fi |
12215 | |
12216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5 |
12217 | $as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; } |
12218 | ok=no |
12219 | if test "$LIBGCRYPT_CONFIG" != "no" ; then |
12220 | req_major=`echo $min_libgcrypt_version | \ |
12221 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` |
12222 | req_minor=`echo $min_libgcrypt_version | \ |
12223 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` |
12224 | req_micro=`echo $min_libgcrypt_version | \ |
12225 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` |
12226 | libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version` |
12227 | major=`echo $libgcrypt_config_version | \ |
12228 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'` |
12229 | minor=`echo $libgcrypt_config_version | \ |
12230 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'` |
12231 | micro=`echo $libgcrypt_config_version | \ |
12232 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'` |
12233 | if test "$major" -gt "$req_major"; then |
12234 | ok=yes |
12235 | else |
12236 | if test "$major" -eq "$req_major"; then |
12237 | if test "$minor" -gt "$req_minor"; then |
12238 | ok=yes |
12239 | else |
12240 | if test "$minor" -eq "$req_minor"; then |
12241 | if test "$micro" -ge "$req_micro"; then |
12242 | ok=yes |
12243 | fi |
12244 | fi |
12245 | fi |
12246 | fi |
12247 | fi |
12248 | fi |
12249 | if test $ok = yes; then |
12250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5 |
12251 | $as_echo "yes ($libgcrypt_config_version)" >&6; } |
12252 | else |
12253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12254 | $as_echo "no" >&6; } |
12255 | fi |
12256 | if test $ok = yes; then |
12257 | # If we have a recent libgcrypt, we should also check that the |
12258 | # API is compatible |
12259 | if test "$req_libgcrypt_api" -gt 0 ; then |
12260 | tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0` |
12261 | if test "$tmp" -gt 0 ; then |
12262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5 |
12263 | $as_echo_n "checking LIBGCRYPT API version... " >&6; } |
12264 | if test "$req_libgcrypt_api" -eq "$tmp" ; then |
12265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5 |
12266 | $as_echo "okay" >&6; } |
12267 | else |
12268 | ok=no |
12269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5 |
12270 | $as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; } |
12271 | fi |
12272 | fi |
12273 | fi |
12274 | fi |
12275 | if test $ok = yes; then |
12276 | LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags` |
12277 | LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs` |
12278 | have_libgcrypt=true |
12279 | else |
12280 | LIBGCRYPT_CFLAGS="" |
12281 | LIBGCRYPT_LIBS="" |
12282 | |
12283 | if test "$enable_crypto" = "yes"; then |
12284 | as_fn_error $? "ntfsprogs crypto code requires the gcrypt library." "$LINENO" 5 |
12285 | else |
12286 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ntfsprogs crypto code requires the gcrypt library." >&5 |
12287 | $as_echo "$as_me: WARNING: ntfsprogs crypto code requires the gcrypt library." >&2;} |
12288 | fi |
12289 | |
12290 | fi |
12291 | |
12292 | |
12293 | |
12294 | have_libgnutls=false |
12295 | |
12296 | pkg_failed=no |
12297 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUTLS" >&5 |
12298 | $as_echo_n "checking for GNUTLS... " >&6; } |
12299 | |
12300 | if test -n "$GNUTLS_CFLAGS"; then |
12301 | pkg_cv_GNUTLS_CFLAGS="$GNUTLS_CFLAGS" |
12302 | elif test -n "$PKG_CONFIG"; then |
12303 | if test -n "$PKG_CONFIG" && \ |
12304 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 1.4.4\""; } >&5 |
12305 | ($PKG_CONFIG --exists --print-errors "gnutls >= 1.4.4") 2>&5 |
12306 | ac_status=$? |
12307 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
12308 | test $ac_status = 0; }; then |
12309 | pkg_cv_GNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 1.4.4" 2>/dev/null` |
12310 | else |
12311 | pkg_failed=yes |
12312 | fi |
12313 | else |
12314 | pkg_failed=untried |
12315 | fi |
12316 | if test -n "$GNUTLS_LIBS"; then |
12317 | pkg_cv_GNUTLS_LIBS="$GNUTLS_LIBS" |
12318 | elif test -n "$PKG_CONFIG"; then |
12319 | if test -n "$PKG_CONFIG" && \ |
12320 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 1.4.4\""; } >&5 |
12321 | ($PKG_CONFIG --exists --print-errors "gnutls >= 1.4.4") 2>&5 |
12322 | ac_status=$? |
12323 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
12324 | test $ac_status = 0; }; then |
12325 | pkg_cv_GNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 1.4.4" 2>/dev/null` |
12326 | else |
12327 | pkg_failed=yes |
12328 | fi |
12329 | else |
12330 | pkg_failed=untried |
12331 | fi |
12332 | |
12333 | |
12334 | |
12335 | if test $pkg_failed = yes; then |
12336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12337 | $as_echo "no" >&6; } |
12338 | |
12339 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
12340 | _pkg_short_errors_supported=yes |
12341 | else |
12342 | _pkg_short_errors_supported=no |
12343 | fi |
12344 | if test $_pkg_short_errors_supported = yes; then |
12345 | GNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gnutls >= 1.4.4" 2>&1` |
12346 | else |
12347 | GNUTLS_PKG_ERRORS=`$PKG_CONFIG --print-errors "gnutls >= 1.4.4" 2>&1` |
12348 | fi |
12349 | # Put the nasty error message in config.log where it belongs |
12350 | echo "$GNUTLS_PKG_ERRORS" >&5 |
12351 | |
12352 | if test "$enable_crypto" = "yes"; then |
12353 | as_fn_error $? "ntfsprogs crypto code requires the gnutls library." "$LINENO" 5 |
12354 | else |
12355 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ntfsprogs crypto code requires the gnutls library." >&5 |
12356 | $as_echo "$as_me: WARNING: ntfsprogs crypto code requires the gnutls library." >&2;} |
12357 | fi |
12358 | |
12359 | elif test $pkg_failed = untried; then |
12360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12361 | $as_echo "no" >&6; } |
12362 | if test "$enable_crypto" = "yes"; then |
12363 | as_fn_error $? "ntfsprogs crypto code requires the gnutls library." "$LINENO" 5 |
12364 | else |
12365 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ntfsprogs crypto code requires the gnutls library." >&5 |
12366 | $as_echo "$as_me: WARNING: ntfsprogs crypto code requires the gnutls library." >&2;} |
12367 | fi |
12368 | |
12369 | else |
12370 | GNUTLS_CFLAGS=$pkg_cv_GNUTLS_CFLAGS |
12371 | GNUTLS_LIBS=$pkg_cv_GNUTLS_LIBS |
12372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12373 | $as_echo "yes" >&6; } |
12374 | have_libgnutls=true |
12375 | fi |
12376 | if test "$have_libgcrypt" = "true"; then |
12377 | if test "$have_libgnutls" = "true"; then |
12378 | compile_crypto=true |
12379 | |
12380 | $as_echo "#define ENABLE_CRYPTO 1" >>confdefs.h |
12381 | |
12382 | fi |
12383 | fi |
12384 | fi |
12385 | if $compile_crypto; then |
12386 | ENABLE_CRYPTO_TRUE= |
12387 | ENABLE_CRYPTO_FALSE='#' |
12388 | else |
12389 | ENABLE_CRYPTO_TRUE='#' |
12390 | ENABLE_CRYPTO_FALSE= |
12391 | fi |
12392 | |
12393 | |
12394 | # add --with-extra-includes and --with-extra-libs switch to ./configure |
12395 | all_libraries="$all_libraries $USER_LDFLAGS" |
12396 | all_includes="$all_includes $USER_INCLUDES" |
12397 | |
12398 | |
12399 | |
12400 | # Specify support for generating DCE compliant UUIDs (aka GUIDs). We check if |
12401 | # uuid/uuid.h header is present and the uuid library is present that goes with |
12402 | # it and then check if uuid_generate() is present and usable. |
12403 | # |
12404 | # DCE UUIDs are enabled by default and can be disabled with the --disable-uuid |
12405 | # option to the configure script. |
12406 | |
12407 | # Check whether --with-uuid was given. |
12408 | if test "${with_uuid+set}" = set; then : |
12409 | withval=$with_uuid; if test "$with_uuid" = "yes"; then |
12410 | extrapath=default |
12411 | elif test "$with_uuid" = "no"; then |
12412 | extrapath= |
12413 | else |
12414 | extrapath=$with_uuid |
12415 | fi |
12416 | else |
12417 | extrapath=default |
12418 | |
12419 | fi |
12420 | |
12421 | if test "x$extrapath" != "x"; then |
12422 | if test "x$extrapath" != "xdefault"; then |
12423 | MKNTFS_CPPFLAGS="$MKNTFS_CPPFLAGS -I$extrapath/include" |
12424 | MKNTFS_LIBS="$MKNTFS_LIBS -L$extrapath/lib" |
12425 | fi |
12426 | |
12427 | search_for_luuid="yes" |
12428 | ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default" |
12429 | if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then : |
12430 | |
12431 | else |
12432 | |
12433 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ntfsprogs DCE compliant UUID generation code requires the uuid library." >&5 |
12434 | $as_echo "$as_me: WARNING: ntfsprogs DCE compliant UUID generation code requires the uuid library." >&2;} |
12435 | search_for_luuid="no" |
12436 | |
12437 | fi |
12438 | |
12439 | |
12440 | |
12441 | if test "x$search_for_luuid" != "xno"; then |
12442 | # Look for uuid_generate in the standard C library. |
12443 | ac_fn_c_check_func "$LINENO" "uuid_generate" "ac_cv_func_uuid_generate" |
12444 | if test "x$ac_cv_func_uuid_generate" = x""yes; then : |
12445 | |
12446 | |
12447 | $as_echo "#define ENABLE_UUID 1" >>confdefs.h |
12448 | |
12449 | search_for_luuid="no" |
12450 | |
12451 | fi |
12452 | |
12453 | fi |
12454 | |
12455 | if test "x$search_for_luuid" != "xno"; then |
12456 | # Look for uuid_generate in the 'uuid' library. |
12457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5 |
12458 | $as_echo_n "checking for uuid_generate in -luuid... " >&6; } |
12459 | if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then : |
12460 | $as_echo_n "(cached) " >&6 |
12461 | else |
12462 | ac_check_lib_save_LIBS=$LIBS |
12463 | LIBS="-luuid $LIBS" |
12464 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12465 | /* end confdefs.h. */ |
12466 | |
12467 | /* Override any GCC internal prototype to avoid an error. |
12468 | Use char because int might match the return type of a GCC |
12469 | builtin and then its argument prototype would still apply. */ |
12470 | #ifdef __cplusplus |
12471 | extern "C" |
12472 | #endif |
12473 | char uuid_generate (); |
12474 | int |
12475 | main () |
12476 | { |
12477 | return uuid_generate (); |
12478 | ; |
12479 | return 0; |
12480 | } |
12481 | _ACEOF |
12482 | if ac_fn_c_try_link "$LINENO"; then : |
12483 | ac_cv_lib_uuid_uuid_generate=yes |
12484 | else |
12485 | ac_cv_lib_uuid_uuid_generate=no |
12486 | fi |
12487 | rm -f core conftest.err conftest.$ac_objext \ |
12488 | conftest$ac_exeext conftest.$ac_ext |
12489 | LIBS=$ac_check_lib_save_LIBS |
12490 | fi |
12491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5 |
12492 | $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; } |
12493 | if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then : |
12494 | |
12495 | |
12496 | $as_echo "#define ENABLE_UUID 1" >>confdefs.h |
12497 | |
12498 | MKNTFS_LIBS="$MKNTFS_LIBS -luuid" |
12499 | search_for_luuid="no" |
12500 | |
12501 | fi |
12502 | |
12503 | fi |
12504 | |
12505 | if test "x$search_for_luuid" != "xno"; then |
12506 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ntfsprogs DCE compliant UUID generation code requires the uuid library." >&5 |
12507 | $as_echo "$as_me: WARNING: ntfsprogs DCE compliant UUID generation code requires the uuid library." >&2;} |
12508 | fi |
12509 | fi |
12510 | |
12511 | # Specify support for obtaining the correct BIOS legacy geometry needed for |
12512 | # Windows to boot in CHS mode. We check if hd.h header is present and the hd |
12513 | # library is present that goes with it and then check if the hd_list() function |
12514 | # is present and usable. |
12515 | # |
12516 | # Using the hd library is enabled by default and can be disabled with the |
12517 | # --disable-hd option to the configure script. |
12518 | |
12519 | # Check whether --with-hd was given. |
12520 | if test "${with_hd+set}" = set; then : |
12521 | withval=$with_hd; if test "$with_hd" = "yes"; then |
12522 | extrapath2=default |
12523 | elif test "$with_hd" = "no"; then |
12524 | extrapath2= |
12525 | else |
12526 | extrapath2=$with_hd |
12527 | fi |
12528 | else |
12529 | extrapath2=default |
12530 | |
12531 | fi |
12532 | |
12533 | if test "x$extrapath2" != "x"; then |
12534 | if test "x$extrapath2" != "xdefault"; then |
12535 | LIBNTFS_CPPFLAGS="$LIBNTFS_CPPFLAGS -I$extrapath2/include" |
12536 | LIBNTFS_LIBS="$LIBNTFS_LIBS -L$extrapath2/lib" |
12537 | fi |
12538 | ac_fn_c_check_header_mongrel "$LINENO" "hd.h" "ac_cv_header_hd_h" "$ac_includes_default" |
12539 | if test "x$ac_cv_header_hd_h" = x""yes; then : |
12540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hd_list in -lhd" >&5 |
12541 | $as_echo_n "checking for hd_list in -lhd... " >&6; } |
12542 | if test "${ac_cv_lib_hd_hd_list+set}" = set; then : |
12543 | $as_echo_n "(cached) " >&6 |
12544 | else |
12545 | ac_check_lib_save_LIBS=$LIBS |
12546 | LIBS="-lhd $LIBS" |
12547 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12548 | /* end confdefs.h. */ |
12549 | |
12550 | /* Override any GCC internal prototype to avoid an error. |
12551 | Use char because int might match the return type of a GCC |
12552 | builtin and then its argument prototype would still apply. */ |
12553 | #ifdef __cplusplus |
12554 | extern "C" |
12555 | #endif |
12556 | char hd_list (); |
12557 | int |
12558 | main () |
12559 | { |
12560 | return hd_list (); |
12561 | ; |
12562 | return 0; |
12563 | } |
12564 | _ACEOF |
12565 | if ac_fn_c_try_link "$LINENO"; then : |
12566 | ac_cv_lib_hd_hd_list=yes |
12567 | else |
12568 | ac_cv_lib_hd_hd_list=no |
12569 | fi |
12570 | rm -f core conftest.err conftest.$ac_objext \ |
12571 | conftest$ac_exeext conftest.$ac_ext |
12572 | LIBS=$ac_check_lib_save_LIBS |
12573 | fi |
12574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hd_hd_list" >&5 |
12575 | $as_echo "$ac_cv_lib_hd_hd_list" >&6; } |
12576 | if test "x$ac_cv_lib_hd_hd_list" = x""yes; then : |
12577 | |
12578 | $as_echo "#define ENABLE_HD 1" >>confdefs.h |
12579 | |
12580 | LIBNTFS_LIBS="$LIBNTFS_LIBS -lhd" |
12581 | NTFSPROGS_STATIC_LIBS="$NTFSPROGS_STATIC_LIBS -lhd" |
12582 | else |
12583 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ntfsprogs Windows compliant geometry code requires the hd library." >&5 |
12584 | $as_echo "$as_me: WARNING: ntfsprogs Windows compliant geometry code requires the hd library." >&2;} |
12585 | fi |
12586 | |
12587 | else |
12588 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ntfsprogs Windows compliant geometry code requires the hd library." >&5 |
12589 | $as_echo "$as_me: WARNING: ntfsprogs Windows compliant geometry code requires the hd library." >&2;} |
12590 | fi |
12591 | |
12592 | |
12593 | fi |
12594 | |
12595 | # Checks for header files. |
12596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
12597 | $as_echo_n "checking for ANSI C header files... " >&6; } |
12598 | if test "${ac_cv_header_stdc+set}" = set; then : |
12599 | $as_echo_n "(cached) " >&6 |
12600 | else |
12601 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12602 | /* end confdefs.h. */ |
12603 | #include <stdlib.h> |
12604 | #include <stdarg.h> |
12605 | #include <string.h> |
12606 | #include <float.h> |
12607 | |
12608 | int |
12609 | main () |
12610 | { |
12611 | |
12612 | ; |
12613 | return 0; |
12614 | } |
12615 | _ACEOF |
12616 | if ac_fn_c_try_compile "$LINENO"; then : |
12617 | ac_cv_header_stdc=yes |
12618 | else |
12619 | ac_cv_header_stdc=no |
12620 | fi |
12621 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12622 | |
12623 | if test $ac_cv_header_stdc = yes; then |
12624 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
12625 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12626 | /* end confdefs.h. */ |
12627 | #include <string.h> |
12628 | |
12629 | _ACEOF |
12630 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
12631 | $EGREP "memchr" >/dev/null 2>&1; then : |
12632 | |
12633 | else |
12634 | ac_cv_header_stdc=no |
12635 | fi |
12636 | rm -f conftest* |
12637 | |
12638 | fi |
12639 | |
12640 | if test $ac_cv_header_stdc = yes; then |
12641 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
12642 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12643 | /* end confdefs.h. */ |
12644 | #include <stdlib.h> |
12645 | |
12646 | _ACEOF |
12647 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
12648 | $EGREP "free" >/dev/null 2>&1; then : |
12649 | |
12650 | else |
12651 | ac_cv_header_stdc=no |
12652 | fi |
12653 | rm -f conftest* |
12654 | |
12655 | fi |
12656 | |
12657 | if test $ac_cv_header_stdc = yes; then |
12658 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
12659 | if test "$cross_compiling" = yes; then : |
12660 | : |
12661 | else |
12662 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12663 | /* end confdefs.h. */ |
12664 | #include <ctype.h> |
12665 | #include <stdlib.h> |
12666 | #if ((' ' & 0x0FF) == 0x020) |
12667 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
12668 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
12669 | #else |
12670 | # define ISLOWER(c) \ |
12671 | (('a' <= (c) && (c) <= 'i') \ |
12672 | || ('j' <= (c) && (c) <= 'r') \ |
12673 | || ('s' <= (c) && (c) <= 'z')) |
12674 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
12675 | #endif |
12676 | |
12677 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
12678 | int |
12679 | main () |
12680 | { |
12681 | int i; |
12682 | for (i = 0; i < 256; i++) |
12683 | if (XOR (islower (i), ISLOWER (i)) |
12684 | || toupper (i) != TOUPPER (i)) |
12685 | return 2; |
12686 | return 0; |
12687 | } |
12688 | _ACEOF |
12689 | if ac_fn_c_try_run "$LINENO"; then : |
12690 | |
12691 | else |
12692 | ac_cv_header_stdc=no |
12693 | fi |
12694 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
12695 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
12696 | fi |
12697 | |
12698 | fi |
12699 | fi |
12700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
12701 | $as_echo "$ac_cv_header_stdc" >&6; } |
12702 | if test $ac_cv_header_stdc = yes; then |
12703 | |
12704 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
12705 | |
12706 | fi |
12707 | |
12708 | for ac_header in ctype.h fcntl.h libgen.h libintl.h limits.h locale.h \ |
12709 | mntent.h stddef.h stdint.h stdlib.h stdio.h stdarg.h string.h \ |
12710 | strings.h errno.h time.h unistd.h utime.h wchar.h getopt.h features.h \ |
12711 | regex.h endian.h byteswap.h sys/byteorder.h sys/disk.h sys/endian.h \ |
12712 | sys/param.h sys/ioctl.h sys/mkdev.h sys/mount.h sys/stat.h sys/types.h \ |
12713 | sys/vfs.h sys/statvfs.h sys/sysmacros.h linux/major.h linux/fd.h \ |
12714 | linux/hdreg.h machine/endian.h windows.h syslog.h pwd.h malloc.h |
12715 | do : |
12716 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12717 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
12718 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
12719 | cat >>confdefs.h <<_ACEOF |
12720 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
12721 | _ACEOF |
12722 | |
12723 | fi |
12724 | |
12725 | done |
12726 | |
12727 | |
12728 | # Checks for typedefs, structures, and compiler characteristics. |
12729 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 |
12730 | $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } |
12731 | if test "${ac_cv_header_stdbool_h+set}" = set; then : |
12732 | $as_echo_n "(cached) " >&6 |
12733 | else |
12734 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12735 | /* end confdefs.h. */ |
12736 | |
12737 | #include <stdbool.h> |
12738 | #ifndef bool |
12739 | "error: bool is not defined" |
12740 | #endif |
12741 | #ifndef false |
12742 | "error: false is not defined" |
12743 | #endif |
12744 | #if false |
12745 | "error: false is not 0" |
12746 | #endif |
12747 | #ifndef true |
12748 | "error: true is not defined" |
12749 | #endif |
12750 | #if true != 1 |
12751 | "error: true is not 1" |
12752 | #endif |
12753 | #ifndef __bool_true_false_are_defined |
12754 | "error: __bool_true_false_are_defined is not defined" |
12755 | #endif |
12756 | |
12757 | struct s { _Bool s: 1; _Bool t; } s; |
12758 | |
12759 | char a[true == 1 ? 1 : -1]; |
12760 | char b[false == 0 ? 1 : -1]; |
12761 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
12762 | char d[(bool) 0.5 == true ? 1 : -1]; |
12763 | bool e = &s; |
12764 | char f[(_Bool) 0.0 == false ? 1 : -1]; |
12765 | char g[true]; |
12766 | char h[sizeof (_Bool)]; |
12767 | char i[sizeof s.t]; |
12768 | enum { j = false, k = true, l = false * true, m = true * 256 }; |
12769 | /* The following fails for |
12770 | HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ |
12771 | _Bool n[m]; |
12772 | char o[sizeof n == m * sizeof n[0] ? 1 : -1]; |
12773 | char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; |
12774 | # if defined __xlc__ || defined __GNUC__ |
12775 | /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0 |
12776 | reported by James Lemley on 2005-10-05; see |
12777 | http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html |
12778 | This test is not quite right, since xlc is allowed to |
12779 | reject this program, as the initializer for xlcbug is |
12780 | not one of the forms that C requires support for. |
12781 | However, doing the test right would require a runtime |
12782 | test, and that would make cross-compilation harder. |
12783 | Let us hope that IBM fixes the xlc bug, and also adds |
12784 | support for this kind of constant expression. In the |
12785 | meantime, this test will reject xlc, which is OK, since |
12786 | our stdbool.h substitute should suffice. We also test |
12787 | this with GCC, where it should work, to detect more |
12788 | quickly whether someone messes up the test in the |
12789 | future. */ |
12790 | char digs[] = "0123456789"; |
12791 | int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1); |
12792 | # endif |
12793 | /* Catch a bug in an HP-UX C compiler. See |
12794 | http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html |
12795 | http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html |
12796 | */ |
12797 | _Bool q = true; |
12798 | _Bool *pq = &q; |
12799 | |
12800 | int |
12801 | main () |
12802 | { |
12803 | |
12804 | *pq |= q; |
12805 | *pq |= ! q; |
12806 | /* Refer to every declared value, to avoid compiler optimizations. */ |
12807 | return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l |
12808 | + !m + !n + !o + !p + !q + !pq); |
12809 | |
12810 | ; |
12811 | return 0; |
12812 | } |
12813 | _ACEOF |
12814 | if ac_fn_c_try_compile "$LINENO"; then : |
12815 | ac_cv_header_stdbool_h=yes |
12816 | else |
12817 | ac_cv_header_stdbool_h=no |
12818 | fi |
12819 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12820 | fi |
12821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 |
12822 | $as_echo "$ac_cv_header_stdbool_h" >&6; } |
12823 | ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" |
12824 | if test "x$ac_cv_type__Bool" = x""yes; then : |
12825 | |
12826 | cat >>confdefs.h <<_ACEOF |
12827 | #define HAVE__BOOL 1 |
12828 | _ACEOF |
12829 | |
12830 | |
12831 | fi |
12832 | |
12833 | if test $ac_cv_header_stdbool_h = yes; then |
12834 | |
12835 | $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h |
12836 | |
12837 | fi |
12838 | |
12839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
12840 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
12841 | if test "${ac_cv_c_bigendian+set}" = set; then : |
12842 | $as_echo_n "(cached) " >&6 |
12843 | else |
12844 | ac_cv_c_bigendian=unknown |
12845 | # See if we're dealing with a universal compiler. |
12846 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12847 | /* end confdefs.h. */ |
12848 | #ifndef __APPLE_CC__ |
12849 | not a universal capable compiler |
12850 | #endif |
12851 | typedef int dummy; |
12852 | |
12853 | _ACEOF |
12854 | if ac_fn_c_try_compile "$LINENO"; then : |
12855 | |
12856 | # Check for potential -arch flags. It is not universal unless |
12857 | # there are at least two -arch flags with different values. |
12858 | ac_arch= |
12859 | ac_prev= |
12860 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
12861 | if test -n "$ac_prev"; then |
12862 | case $ac_word in |
12863 | i?86 | x86_64 | ppc | ppc64) |
12864 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
12865 | ac_arch=$ac_word |
12866 | else |
12867 | ac_cv_c_bigendian=universal |
12868 | break |
12869 | fi |
12870 | ;; |
12871 | esac |
12872 | ac_prev= |
12873 | elif test "x$ac_word" = "x-arch"; then |
12874 | ac_prev=arch |
12875 | fi |
12876 | done |
12877 | fi |
12878 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12879 | if test $ac_cv_c_bigendian = unknown; then |
12880 | # See if sys/param.h defines the BYTE_ORDER macro. |
12881 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12882 | /* end confdefs.h. */ |
12883 | #include <sys/types.h> |
12884 | #include <sys/param.h> |
12885 | |
12886 | int |
12887 | main () |
12888 | { |
12889 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
12890 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
12891 | && LITTLE_ENDIAN) |
12892 | bogus endian macros |
12893 | #endif |
12894 | |
12895 | ; |
12896 | return 0; |
12897 | } |
12898 | _ACEOF |
12899 | if ac_fn_c_try_compile "$LINENO"; then : |
12900 | # It does; now see whether it defined to BIG_ENDIAN or not. |
12901 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12902 | /* end confdefs.h. */ |
12903 | #include <sys/types.h> |
12904 | #include <sys/param.h> |
12905 | |
12906 | int |
12907 | main () |
12908 | { |
12909 | #if BYTE_ORDER != BIG_ENDIAN |
12910 | not big endian |
12911 | #endif |
12912 | |
12913 | ; |
12914 | return 0; |
12915 | } |
12916 | _ACEOF |
12917 | if ac_fn_c_try_compile "$LINENO"; then : |
12918 | ac_cv_c_bigendian=yes |
12919 | else |
12920 | ac_cv_c_bigendian=no |
12921 | fi |
12922 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12923 | fi |
12924 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12925 | fi |
12926 | if test $ac_cv_c_bigendian = unknown; then |
12927 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
12928 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12929 | /* end confdefs.h. */ |
12930 | #include <limits.h> |
12931 | |
12932 | int |
12933 | main () |
12934 | { |
12935 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
12936 | bogus endian macros |
12937 | #endif |
12938 | |
12939 | ; |
12940 | return 0; |
12941 | } |
12942 | _ACEOF |
12943 | if ac_fn_c_try_compile "$LINENO"; then : |
12944 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
12945 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12946 | /* end confdefs.h. */ |
12947 | #include <limits.h> |
12948 | |
12949 | int |
12950 | main () |
12951 | { |
12952 | #ifndef _BIG_ENDIAN |
12953 | not big endian |
12954 | #endif |
12955 | |
12956 | ; |
12957 | return 0; |
12958 | } |
12959 | _ACEOF |
12960 | if ac_fn_c_try_compile "$LINENO"; then : |
12961 | ac_cv_c_bigendian=yes |
12962 | else |
12963 | ac_cv_c_bigendian=no |
12964 | fi |
12965 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12966 | fi |
12967 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12968 | fi |
12969 | if test $ac_cv_c_bigendian = unknown; then |
12970 | # Compile a test program. |
12971 | if test "$cross_compiling" = yes; then : |
12972 | # Try to guess by grepping values from an object file. |
12973 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12974 | /* end confdefs.h. */ |
12975 | short int ascii_mm[] = |
12976 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
12977 | short int ascii_ii[] = |
12978 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
12979 | int use_ascii (int i) { |
12980 | return ascii_mm[i] + ascii_ii[i]; |
12981 | } |
12982 | short int ebcdic_ii[] = |
12983 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
12984 | short int ebcdic_mm[] = |
12985 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
12986 | int use_ebcdic (int i) { |
12987 | return ebcdic_mm[i] + ebcdic_ii[i]; |
12988 | } |
12989 | extern int foo; |
12990 | |
12991 | int |
12992 | main () |
12993 | { |
12994 | return use_ascii (foo) == use_ebcdic (foo); |
12995 | ; |
12996 | return 0; |
12997 | } |
12998 | _ACEOF |
12999 | if ac_fn_c_try_compile "$LINENO"; then : |
13000 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
13001 | ac_cv_c_bigendian=yes |
13002 | fi |
13003 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
13004 | if test "$ac_cv_c_bigendian" = unknown; then |
13005 | ac_cv_c_bigendian=no |
13006 | else |
13007 | # finding both strings is unlikely to happen, but who knows? |
13008 | ac_cv_c_bigendian=unknown |
13009 | fi |
13010 | fi |
13011 | fi |
13012 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13013 | else |
13014 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13015 | /* end confdefs.h. */ |
13016 | $ac_includes_default |
13017 | int |
13018 | main () |
13019 | { |
13020 | |
13021 | /* Are we little or big endian? From Harbison&Steele. */ |
13022 | union |
13023 | { |
13024 | long int l; |
13025 | char c[sizeof (long int)]; |
13026 | } u; |
13027 | u.l = 1; |
13028 | return u.c[sizeof (long int) - 1] == 1; |
13029 | |
13030 | ; |
13031 | return 0; |
13032 | } |
13033 | _ACEOF |
13034 | if ac_fn_c_try_run "$LINENO"; then : |
13035 | ac_cv_c_bigendian=no |
13036 | else |
13037 | ac_cv_c_bigendian=yes |
13038 | fi |
13039 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
13040 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
13041 | fi |
13042 | |
13043 | fi |
13044 | fi |
13045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
13046 | $as_echo "$ac_cv_c_bigendian" >&6; } |
13047 | case $ac_cv_c_bigendian in #( |
13048 | yes) |
13049 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
13050 | ;; #( |
13051 | no) |
13052 | |
13053 | |
13054 | $as_echo "#define WORDS_LITTLEENDIAN 1" >>confdefs.h |
13055 | |
13056 | |
13057 | ;; #( |
13058 | universal) |
13059 | |
13060 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
13061 | |
13062 | ;; #( |
13063 | *) |
13064 | as_fn_error $? "unknown endianness |
13065 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
13066 | esac |
13067 | |
13068 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
13069 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
13070 | if test "${ac_cv_c_const+set}" = set; then : |
13071 | $as_echo_n "(cached) " >&6 |
13072 | else |
13073 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13074 | /* end confdefs.h. */ |
13075 | |
13076 | int |
13077 | main () |
13078 | { |
13079 | /* FIXME: Include the comments suggested by Paul. */ |
13080 | #ifndef __cplusplus |
13081 | /* Ultrix mips cc rejects this. */ |
13082 | typedef int charset[2]; |
13083 | const charset cs; |
13084 | /* SunOS 4.1.1 cc rejects this. */ |
13085 | char const *const *pcpcc; |
13086 | char **ppc; |
13087 | /* NEC SVR4.0.2 mips cc rejects this. */ |
13088 | struct point {int x, y;}; |
13089 | static struct point const zero = {0,0}; |
13090 | /* AIX XL C 1.02.0.0 rejects this. |
13091 | It does not let you subtract one const X* pointer from another in |
13092 | an arm of an if-expression whose if-part is not a constant |
13093 | expression */ |
13094 | const char *g = "string"; |
13095 | pcpcc = &g + (g ? g-g : 0); |
13096 | /* HPUX 7.0 cc rejects these. */ |
13097 | ++pcpcc; |
13098 | ppc = (char**) pcpcc; |
13099 | pcpcc = (char const *const *) ppc; |
13100 | { /* SCO 3.2v4 cc rejects this. */ |
13101 | char *t; |
13102 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
13103 | |
13104 | *t++ = 0; |
13105 | if (s) return 0; |
13106 | } |
13107 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
13108 | int x[] = {25, 17}; |
13109 | const int *foo = &x[0]; |
13110 | ++foo; |
13111 | } |
13112 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
13113 | typedef const int *iptr; |
13114 | iptr p = 0; |
13115 | ++p; |
13116 | } |
13117 | { /* AIX XL C 1.02.0.0 rejects this saying |
13118 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
13119 | struct s { int j; const int *ap[3]; }; |
13120 | struct s *b; b->j = 5; |
13121 | } |
13122 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
13123 | const int foo = 10; |
13124 | if (!foo) return 0; |
13125 | } |
13126 | return !cs[0] && !zero.x; |
13127 | #endif |
13128 | |
13129 | ; |
13130 | return 0; |
13131 | } |
13132 | _ACEOF |
13133 | if ac_fn_c_try_compile "$LINENO"; then : |
13134 | ac_cv_c_const=yes |
13135 | else |
13136 | ac_cv_c_const=no |
13137 | fi |
13138 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13139 | fi |
13140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
13141 | $as_echo "$ac_cv_c_const" >&6; } |
13142 | if test $ac_cv_c_const = no; then |
13143 | |
13144 | $as_echo "#define const /**/" >>confdefs.h |
13145 | |
13146 | fi |
13147 | |
13148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
13149 | $as_echo_n "checking for inline... " >&6; } |
13150 | if test "${ac_cv_c_inline+set}" = set; then : |
13151 | $as_echo_n "(cached) " >&6 |
13152 | else |
13153 | ac_cv_c_inline=no |
13154 | for ac_kw in inline __inline__ __inline; do |
13155 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13156 | /* end confdefs.h. */ |
13157 | #ifndef __cplusplus |
13158 | typedef int foo_t; |
13159 | static $ac_kw foo_t static_foo () {return 0; } |
13160 | $ac_kw foo_t foo () {return 0; } |
13161 | #endif |
13162 | |
13163 | _ACEOF |
13164 | if ac_fn_c_try_compile "$LINENO"; then : |
13165 | ac_cv_c_inline=$ac_kw |
13166 | fi |
13167 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13168 | test "$ac_cv_c_inline" != no && break |
13169 | done |
13170 | |
13171 | fi |
13172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
13173 | $as_echo "$ac_cv_c_inline" >&6; } |
13174 | |
13175 | case $ac_cv_c_inline in |
13176 | inline | yes) ;; |
13177 | *) |
13178 | case $ac_cv_c_inline in |
13179 | no) ac_val=;; |
13180 | *) ac_val=$ac_cv_c_inline;; |
13181 | esac |
13182 | cat >>confdefs.h <<_ACEOF |
13183 | #ifndef __cplusplus |
13184 | #define inline $ac_val |
13185 | #endif |
13186 | _ACEOF |
13187 | ;; |
13188 | esac |
13189 | |
13190 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
13191 | if test "x$ac_cv_type_off_t" = x""yes; then : |
13192 | |
13193 | else |
13194 | |
13195 | cat >>confdefs.h <<_ACEOF |
13196 | #define off_t long int |
13197 | _ACEOF |
13198 | |
13199 | fi |
13200 | |
13201 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
13202 | if test "x$ac_cv_type_size_t" = x""yes; then : |
13203 | |
13204 | else |
13205 | |
13206 | cat >>confdefs.h <<_ACEOF |
13207 | #define size_t unsigned int |
13208 | _ACEOF |
13209 | |
13210 | fi |
13211 | |
13212 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" |
13213 | if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then : |
13214 | |
13215 | cat >>confdefs.h <<_ACEOF |
13216 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
13217 | _ACEOF |
13218 | |
13219 | |
13220 | $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h |
13221 | |
13222 | else |
13223 | case " $LIBOBJS " in |
13224 | *" fileblocks.$ac_objext "* ) ;; |
13225 | *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" |
13226 | ;; |
13227 | esac |
13228 | |
13229 | fi |
13230 | |
13231 | |
13232 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" |
13233 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then : |
13234 | |
13235 | cat >>confdefs.h <<_ACEOF |
13236 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
13237 | _ACEOF |
13238 | |
13239 | |
13240 | fi |
13241 | |
13242 | ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default" |
13243 | if test "x$ac_cv_member_struct_stat_st_atim" = x""yes; then : |
13244 | |
13245 | cat >>confdefs.h <<_ACEOF |
13246 | #define HAVE_STRUCT_STAT_ST_ATIM 1 |
13247 | _ACEOF |
13248 | |
13249 | |
13250 | fi |
13251 | |
13252 | ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec" "ac_cv_member_struct_stat_st_atimespec" "$ac_includes_default" |
13253 | if test "x$ac_cv_member_struct_stat_st_atimespec" = x""yes; then : |
13254 | |
13255 | cat >>confdefs.h <<_ACEOF |
13256 | #define HAVE_STRUCT_STAT_ST_ATIMESPEC 1 |
13257 | _ACEOF |
13258 | |
13259 | |
13260 | fi |
13261 | |
13262 | ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "$ac_includes_default" |
13263 | if test "x$ac_cv_member_struct_stat_st_atimensec" = x""yes; then : |
13264 | |
13265 | cat >>confdefs.h <<_ACEOF |
13266 | #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1 |
13267 | _ACEOF |
13268 | |
13269 | |
13270 | fi |
13271 | |
13272 | |
13273 | # For the 'nfconv' patch (Mac OS X only): |
13274 | case "${target_os}" in |
13275 | darwin*) |
13276 | if test "${enable_nfconv}" = "yes"; then |
13277 | ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CoreFoundation.h" "ac_cv_header_CoreFoundation_CoreFoundation_h" "$ac_includes_default" |
13278 | if test "x$ac_cv_header_CoreFoundation_CoreFoundation_h" = x""yes; then : |
13279 | |
13280 | LDFLAGS="${LDFLAGS} -framework CoreFoundation" |
13281 | |
13282 | $as_echo "#define ENABLE_NFCONV 1" >>confdefs.h |
13283 | |
13284 | |
13285 | else |
13286 | as_fn_error $? "Cannot find CoreFoundation required for 'nfconv' functionality Mac OS X. You may use the --disable-nfconv 'configure' option to avoid this error." "$LINENO" 5 |
13287 | |
13288 | fi |
13289 | |
13290 | |
13291 | fi |
13292 | ;; |
13293 | esac |
13294 | |
13295 | # Checks for library functions. |
13296 | # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4, |
13297 | # -lseq on Dynix/PTX, -lgen on Unixware. |
13298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5 |
13299 | $as_echo_n "checking for library containing getmntent... " >&6; } |
13300 | if test "${ac_cv_search_getmntent+set}" = set; then : |
13301 | $as_echo_n "(cached) " >&6 |
13302 | else |
13303 | ac_func_search_save_LIBS=$LIBS |
13304 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13305 | /* end confdefs.h. */ |
13306 | |
13307 | /* Override any GCC internal prototype to avoid an error. |
13308 | Use char because int might match the return type of a GCC |
13309 | builtin and then its argument prototype would still apply. */ |
13310 | #ifdef __cplusplus |
13311 | extern "C" |
13312 | #endif |
13313 | char getmntent (); |
13314 | int |
13315 | main () |
13316 | { |
13317 | return getmntent (); |
13318 | ; |
13319 | return 0; |
13320 | } |
13321 | _ACEOF |
13322 | for ac_lib in '' sun seq gen; do |
13323 | if test -z "$ac_lib"; then |
13324 | ac_res="none required" |
13325 | else |
13326 | ac_res=-l$ac_lib |
13327 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
13328 | fi |
13329 | if ac_fn_c_try_link "$LINENO"; then : |
13330 | ac_cv_search_getmntent=$ac_res |
13331 | fi |
13332 | rm -f core conftest.err conftest.$ac_objext \ |
13333 | conftest$ac_exeext |
13334 | if test "${ac_cv_search_getmntent+set}" = set; then : |
13335 | break |
13336 | fi |
13337 | done |
13338 | if test "${ac_cv_search_getmntent+set}" = set; then : |
13339 | |
13340 | else |
13341 | ac_cv_search_getmntent=no |
13342 | fi |
13343 | rm conftest.$ac_ext |
13344 | LIBS=$ac_func_search_save_LIBS |
13345 | fi |
13346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5 |
13347 | $as_echo "$ac_cv_search_getmntent" >&6; } |
13348 | ac_res=$ac_cv_search_getmntent |
13349 | if test "$ac_res" != no; then : |
13350 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
13351 | ac_cv_func_getmntent=yes |
13352 | |
13353 | $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h |
13354 | |
13355 | else |
13356 | ac_cv_func_getmntent=no |
13357 | fi |
13358 | |
13359 | |
13360 | |
13361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5 |
13362 | $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; } |
13363 | if test "${ac_cv_func_mbrtowc+set}" = set; then : |
13364 | $as_echo_n "(cached) " >&6 |
13365 | else |
13366 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13367 | /* end confdefs.h. */ |
13368 | #include <wchar.h> |
13369 | int |
13370 | main () |
13371 | { |
13372 | wchar_t wc; |
13373 | char const s[] = ""; |
13374 | size_t n = 1; |
13375 | mbstate_t state; |
13376 | return ! (sizeof state && (mbrtowc) (&wc, s, n, &state)); |
13377 | ; |
13378 | return 0; |
13379 | } |
13380 | _ACEOF |
13381 | if ac_fn_c_try_link "$LINENO"; then : |
13382 | ac_cv_func_mbrtowc=yes |
13383 | else |
13384 | ac_cv_func_mbrtowc=no |
13385 | fi |
13386 | rm -f core conftest.err conftest.$ac_objext \ |
13387 | conftest$ac_exeext conftest.$ac_ext |
13388 | fi |
13389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5 |
13390 | $as_echo "$ac_cv_func_mbrtowc" >&6; } |
13391 | if test $ac_cv_func_mbrtowc = yes; then |
13392 | |
13393 | $as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h |
13394 | |
13395 | fi |
13396 | |
13397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 |
13398 | $as_echo_n "checking for working memcmp... " >&6; } |
13399 | if test "${ac_cv_func_memcmp_working+set}" = set; then : |
13400 | $as_echo_n "(cached) " >&6 |
13401 | else |
13402 | if test "$cross_compiling" = yes; then : |
13403 | ac_cv_func_memcmp_working=no |
13404 | else |
13405 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13406 | /* end confdefs.h. */ |
13407 | $ac_includes_default |
13408 | int |
13409 | main () |
13410 | { |
13411 | |
13412 | /* Some versions of memcmp are not 8-bit clean. */ |
13413 | char c0 = '\100', c1 = '\200', c2 = '\201'; |
13414 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
13415 | return 1; |
13416 | |
13417 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes |
13418 | or more and with at least one buffer not starting on a 4-byte boundary. |
13419 | William Lewis provided this test program. */ |
13420 | { |
13421 | char foo[21]; |
13422 | char bar[21]; |
13423 | int i; |
13424 | for (i = 0; i < 4; i++) |
13425 | { |
13426 | char *a = foo + i; |
13427 | char *b = bar + i; |
13428 | strcpy (a, "--------01111111"); |
13429 | strcpy (b, "--------10000000"); |
13430 | if (memcmp (a, b, 16) >= 0) |
13431 | return 1; |
13432 | } |
13433 | return 0; |
13434 | } |
13435 | |
13436 | ; |
13437 | return 0; |
13438 | } |
13439 | _ACEOF |
13440 | if ac_fn_c_try_run "$LINENO"; then : |
13441 | ac_cv_func_memcmp_working=yes |
13442 | else |
13443 | ac_cv_func_memcmp_working=no |
13444 | fi |
13445 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
13446 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
13447 | fi |
13448 | |
13449 | fi |
13450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5 |
13451 | $as_echo "$ac_cv_func_memcmp_working" >&6; } |
13452 | test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in |
13453 | *" memcmp.$ac_objext "* ) ;; |
13454 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" |
13455 | ;; |
13456 | esac |
13457 | |
13458 | |
13459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5 |
13460 | $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; } |
13461 | if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then : |
13462 | $as_echo_n "(cached) " >&6 |
13463 | else |
13464 | rm -f conftest.sym conftest.file |
13465 | echo >conftest.file |
13466 | if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then |
13467 | if test "$cross_compiling" = yes; then : |
13468 | ac_cv_func_lstat_dereferences_slashed_symlink=no |
13469 | else |
13470 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13471 | /* end confdefs.h. */ |
13472 | $ac_includes_default |
13473 | int |
13474 | main () |
13475 | { |
13476 | struct stat sbuf; |
13477 | /* Linux will dereference the symlink and fail, as required by POSIX. |
13478 | That is better in the sense that it means we will not |
13479 | have to compile and use the lstat wrapper. */ |
13480 | return lstat ("conftest.sym/", &sbuf) == 0; |
13481 | ; |
13482 | return 0; |
13483 | } |
13484 | _ACEOF |
13485 | if ac_fn_c_try_run "$LINENO"; then : |
13486 | ac_cv_func_lstat_dereferences_slashed_symlink=yes |
13487 | else |
13488 | ac_cv_func_lstat_dereferences_slashed_symlink=no |
13489 | fi |
13490 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
13491 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
13492 | fi |
13493 | |
13494 | else |
13495 | # If the `ln -s' command failed, then we probably don't even |
13496 | # have an lstat function. |
13497 | ac_cv_func_lstat_dereferences_slashed_symlink=no |
13498 | fi |
13499 | rm -f conftest.sym conftest.file |
13500 | |
13501 | fi |
13502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 |
13503 | $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } |
13504 | |
13505 | test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && |
13506 | |
13507 | cat >>confdefs.h <<_ACEOF |
13508 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 |
13509 | _ACEOF |
13510 | |
13511 | |
13512 | if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then |
13513 | case " $LIBOBJS " in |
13514 | *" lstat.$ac_objext "* ) ;; |
13515 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
13516 | ;; |
13517 | esac |
13518 | |
13519 | fi |
13520 | |
13521 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5 |
13522 | $as_echo_n "checking whether stat accepts an empty string... " >&6; } |
13523 | if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then : |
13524 | $as_echo_n "(cached) " >&6 |
13525 | else |
13526 | if test "$cross_compiling" = yes; then : |
13527 | ac_cv_func_stat_empty_string_bug=yes |
13528 | else |
13529 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13530 | /* end confdefs.h. */ |
13531 | $ac_includes_default |
13532 | int |
13533 | main () |
13534 | { |
13535 | struct stat sbuf; |
13536 | return stat ("", &sbuf) == 0; |
13537 | ; |
13538 | return 0; |
13539 | } |
13540 | _ACEOF |
13541 | if ac_fn_c_try_run "$LINENO"; then : |
13542 | ac_cv_func_stat_empty_string_bug=no |
13543 | else |
13544 | ac_cv_func_stat_empty_string_bug=yes |
13545 | fi |
13546 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
13547 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
13548 | fi |
13549 | |
13550 | fi |
13551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5 |
13552 | $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; } |
13553 | if test $ac_cv_func_stat_empty_string_bug = yes; then |
13554 | case " $LIBOBJS " in |
13555 | *" stat.$ac_objext "* ) ;; |
13556 | *) LIBOBJS="$LIBOBJS stat.$ac_objext" |
13557 | ;; |
13558 | esac |
13559 | |
13560 | |
13561 | cat >>confdefs.h <<_ACEOF |
13562 | #define HAVE_STAT_EMPTY_STRING_BUG 1 |
13563 | _ACEOF |
13564 | |
13565 | fi |
13566 | |
13567 | for ac_func in strftime |
13568 | do : |
13569 | ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime" |
13570 | if test "x$ac_cv_func_strftime" = x""yes; then : |
13571 | cat >>confdefs.h <<_ACEOF |
13572 | #define HAVE_STRFTIME 1 |
13573 | _ACEOF |
13574 | |
13575 | else |
13576 | # strftime is in -lintl on SCO UNIX. |
13577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5 |
13578 | $as_echo_n "checking for strftime in -lintl... " >&6; } |
13579 | if test "${ac_cv_lib_intl_strftime+set}" = set; then : |
13580 | $as_echo_n "(cached) " >&6 |
13581 | else |
13582 | ac_check_lib_save_LIBS=$LIBS |
13583 | LIBS="-lintl $LIBS" |
13584 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13585 | /* end confdefs.h. */ |
13586 | |
13587 | /* Override any GCC internal prototype to avoid an error. |
13588 | Use char because int might match the return type of a GCC |
13589 | builtin and then its argument prototype would still apply. */ |
13590 | #ifdef __cplusplus |
13591 | extern "C" |
13592 | #endif |
13593 | char strftime (); |
13594 | int |
13595 | main () |
13596 | { |
13597 | return strftime (); |
13598 | ; |
13599 | return 0; |
13600 | } |
13601 | _ACEOF |
13602 | if ac_fn_c_try_link "$LINENO"; then : |
13603 | ac_cv_lib_intl_strftime=yes |
13604 | else |
13605 | ac_cv_lib_intl_strftime=no |
13606 | fi |
13607 | rm -f core conftest.err conftest.$ac_objext \ |
13608 | conftest$ac_exeext conftest.$ac_ext |
13609 | LIBS=$ac_check_lib_save_LIBS |
13610 | fi |
13611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5 |
13612 | $as_echo "$ac_cv_lib_intl_strftime" >&6; } |
13613 | if test "x$ac_cv_lib_intl_strftime" = x""yes; then : |
13614 | $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h |
13615 | |
13616 | LIBS="-lintl $LIBS" |
13617 | fi |
13618 | |
13619 | fi |
13620 | done |
13621 | |
13622 | |
13623 | |
13624 | |
13625 | for ac_header in $ac_header_list |
13626 | do : |
13627 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
13628 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
13629 | " |
13630 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
13631 | cat >>confdefs.h <<_ACEOF |
13632 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
13633 | _ACEOF |
13634 | |
13635 | fi |
13636 | |
13637 | done |
13638 | |
13639 | |
13640 | |
13641 | |
13642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether utime accepts a null argument" >&5 |
13643 | $as_echo_n "checking whether utime accepts a null argument... " >&6; } |
13644 | if test "${ac_cv_func_utime_null+set}" = set; then : |
13645 | $as_echo_n "(cached) " >&6 |
13646 | else |
13647 | rm -f conftest.data; >conftest.data |
13648 | # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong. |
13649 | if test "$cross_compiling" = yes; then : |
13650 | ac_cv_func_utime_null='guessing yes' |
13651 | else |
13652 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13653 | /* end confdefs.h. */ |
13654 | $ac_includes_default |
13655 | #ifdef HAVE_UTIME_H |
13656 | # include <utime.h> |
13657 | #endif |
13658 | int |
13659 | main () |
13660 | { |
13661 | struct stat s, t; |
13662 | return ! (stat ("conftest.data", &s) == 0 |
13663 | && utime ("conftest.data", 0) == 0 |
13664 | && stat ("conftest.data", &t) == 0 |
13665 | && t.st_mtime >= s.st_mtime |
13666 | && t.st_mtime - s.st_mtime < 120); |
13667 | ; |
13668 | return 0; |
13669 | } |
13670 | _ACEOF |
13671 | if ac_fn_c_try_run "$LINENO"; then : |
13672 | ac_cv_func_utime_null=yes |
13673 | else |
13674 | ac_cv_func_utime_null=no |
13675 | fi |
13676 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
13677 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
13678 | fi |
13679 | |
13680 | fi |
13681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_utime_null" >&5 |
13682 | $as_echo "$ac_cv_func_utime_null" >&6; } |
13683 | if test "x$ac_cv_func_utime_null" != xno; then |
13684 | ac_cv_func_utime_null=yes |
13685 | |
13686 | $as_echo "#define HAVE_UTIME_NULL 1" >>confdefs.h |
13687 | |
13688 | fi |
13689 | rm -f conftest.data |
13690 | |
13691 | for ac_func in vprintf |
13692 | do : |
13693 | ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" |
13694 | if test "x$ac_cv_func_vprintf" = x""yes; then : |
13695 | cat >>confdefs.h <<_ACEOF |
13696 | #define HAVE_VPRINTF 1 |
13697 | _ACEOF |
13698 | |
13699 | ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" |
13700 | if test "x$ac_cv_func__doprnt" = x""yes; then : |
13701 | |
13702 | $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h |
13703 | |
13704 | fi |
13705 | |
13706 | fi |
13707 | done |
13708 | |
13709 | |
13710 | for ac_func in \ |
13711 | atexit basename daemon dup2 fdatasync ffs getopt_long hasmntopt \ |
13712 | mbsinit memmove memset realpath regcomp setlocale setxattr \ |
13713 | strcasecmp strchr strdup strerror strnlen strsep strtol strtoul \ |
13714 | sysconf utime utimensat gettimeofday clock_gettime fork memcpy random snprintf \ |
13715 | |
13716 | do : |
13717 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
13718 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
13719 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
13720 | cat >>confdefs.h <<_ACEOF |
13721 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
13722 | _ACEOF |
13723 | |
13724 | fi |
13725 | done |
13726 | |
13727 | # Check whether --enable-largefile was given. |
13728 | if test "${enable_largefile+set}" = set; then : |
13729 | enableval=$enable_largefile; |
13730 | fi |
13731 | |
13732 | if test "$enable_largefile" != no; then |
13733 | |
13734 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 |
13735 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } |
13736 | if test "${ac_cv_sys_largefile_CC+set}" = set; then : |
13737 | $as_echo_n "(cached) " >&6 |
13738 | else |
13739 | ac_cv_sys_largefile_CC=no |
13740 | if test "$GCC" != yes; then |
13741 | ac_save_CC=$CC |
13742 | while :; do |
13743 | # IRIX 6.2 and later do not support large files by default, |
13744 | # so use the C compiler's -n32 option if that helps. |
13745 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13746 | /* end confdefs.h. */ |
13747 | #include <sys/types.h> |
13748 | /* Check that off_t can represent 2**63 - 1 correctly. |
13749 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
13750 | since some C++ compilers masquerading as C compilers |
13751 | incorrectly reject 9223372036854775807. */ |
13752 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
13753 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
13754 | && LARGE_OFF_T % 2147483647 == 1) |
13755 | ? 1 : -1]; |
13756 | int |
13757 | main () |
13758 | { |
13759 | |
13760 | ; |
13761 | return 0; |
13762 | } |
13763 | _ACEOF |
13764 | if ac_fn_c_try_compile "$LINENO"; then : |
13765 | break |
13766 | fi |
13767 | rm -f core conftest.err conftest.$ac_objext |
13768 | CC="$CC -n32" |
13769 | if ac_fn_c_try_compile "$LINENO"; then : |
13770 | ac_cv_sys_largefile_CC=' -n32'; break |
13771 | fi |
13772 | rm -f core conftest.err conftest.$ac_objext |
13773 | break |
13774 | done |
13775 | CC=$ac_save_CC |
13776 | rm -f conftest.$ac_ext |
13777 | fi |
13778 | fi |
13779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 |
13780 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } |
13781 | if test "$ac_cv_sys_largefile_CC" != no; then |
13782 | CC=$CC$ac_cv_sys_largefile_CC |
13783 | fi |
13784 | |
13785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
13786 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } |
13787 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then : |
13788 | $as_echo_n "(cached) " >&6 |
13789 | else |
13790 | while :; do |
13791 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13792 | /* end confdefs.h. */ |
13793 | #include <sys/types.h> |
13794 | /* Check that off_t can represent 2**63 - 1 correctly. |
13795 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
13796 | since some C++ compilers masquerading as C compilers |
13797 | incorrectly reject 9223372036854775807. */ |
13798 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
13799 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
13800 | && LARGE_OFF_T % 2147483647 == 1) |
13801 | ? 1 : -1]; |
13802 | int |
13803 | main () |
13804 | { |
13805 | |
13806 | ; |
13807 | return 0; |
13808 | } |
13809 | _ACEOF |
13810 | if ac_fn_c_try_compile "$LINENO"; then : |
13811 | ac_cv_sys_file_offset_bits=no; break |
13812 | fi |
13813 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13814 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13815 | /* end confdefs.h. */ |
13816 | #define _FILE_OFFSET_BITS 64 |
13817 | #include <sys/types.h> |
13818 | /* Check that off_t can represent 2**63 - 1 correctly. |
13819 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
13820 | since some C++ compilers masquerading as C compilers |
13821 | incorrectly reject 9223372036854775807. */ |
13822 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
13823 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
13824 | && LARGE_OFF_T % 2147483647 == 1) |
13825 | ? 1 : -1]; |
13826 | int |
13827 | main () |
13828 | { |
13829 | |
13830 | ; |
13831 | return 0; |
13832 | } |
13833 | _ACEOF |
13834 | if ac_fn_c_try_compile "$LINENO"; then : |
13835 | ac_cv_sys_file_offset_bits=64; break |
13836 | fi |
13837 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13838 | ac_cv_sys_file_offset_bits=unknown |
13839 | break |
13840 | done |
13841 | fi |
13842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 |
13843 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } |
13844 | case $ac_cv_sys_file_offset_bits in #( |
13845 | no | unknown) ;; |
13846 | *) |
13847 | cat >>confdefs.h <<_ACEOF |
13848 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
13849 | _ACEOF |
13850 | ;; |
13851 | esac |
13852 | rm -rf conftest* |
13853 | if test $ac_cv_sys_file_offset_bits = unknown; then |
13854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 |
13855 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } |
13856 | if test "${ac_cv_sys_large_files+set}" = set; then : |
13857 | $as_echo_n "(cached) " >&6 |
13858 | else |
13859 | while :; do |
13860 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13861 | /* end confdefs.h. */ |
13862 | #include <sys/types.h> |
13863 | /* Check that off_t can represent 2**63 - 1 correctly. |
13864 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
13865 | since some C++ compilers masquerading as C compilers |
13866 | incorrectly reject 9223372036854775807. */ |
13867 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
13868 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
13869 | && LARGE_OFF_T % 2147483647 == 1) |
13870 | ? 1 : -1]; |
13871 | int |
13872 | main () |
13873 | { |
13874 | |
13875 | ; |
13876 | return 0; |
13877 | } |
13878 | _ACEOF |
13879 | if ac_fn_c_try_compile "$LINENO"; then : |
13880 | ac_cv_sys_large_files=no; break |
13881 | fi |
13882 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13883 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13884 | /* end confdefs.h. */ |
13885 | #define _LARGE_FILES 1 |
13886 | #include <sys/types.h> |
13887 | /* Check that off_t can represent 2**63 - 1 correctly. |
13888 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
13889 | since some C++ compilers masquerading as C compilers |
13890 | incorrectly reject 9223372036854775807. */ |
13891 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
13892 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
13893 | && LARGE_OFF_T % 2147483647 == 1) |
13894 | ? 1 : -1]; |
13895 | int |
13896 | main () |
13897 | { |
13898 | |
13899 | ; |
13900 | return 0; |
13901 | } |
13902 | _ACEOF |
13903 | if ac_fn_c_try_compile "$LINENO"; then : |
13904 | ac_cv_sys_large_files=1; break |
13905 | fi |
13906 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13907 | ac_cv_sys_large_files=unknown |
13908 | break |
13909 | done |
13910 | fi |
13911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 |
13912 | $as_echo "$ac_cv_sys_large_files" >&6; } |
13913 | case $ac_cv_sys_large_files in #( |
13914 | no | unknown) ;; |
13915 | *) |
13916 | cat >>confdefs.h <<_ACEOF |
13917 | #define _LARGE_FILES $ac_cv_sys_large_files |
13918 | _ACEOF |
13919 | ;; |
13920 | esac |
13921 | rm -rf conftest* |
13922 | fi |
13923 | fi |
13924 | |
13925 | |
13926 | if test "$GCC" = "yes" ; then |
13927 | # We add -Wall to enable some compiler warnings. |
13928 | CFLAGS="${CFLAGS} -Wall" |
13929 | fi |
13930 | |
13931 | if test "${enable_pedantic}" = "yes"; then |
13932 | enable_warnings="yes" |
13933 | CFLAGS="${CFLAGS} -pedantic" |
13934 | fi |
13935 | |
13936 | if test "${enable_warnings}" = "yes"; then |
13937 | CFLAGS="${CFLAGS} -W -Wall -Waggregate-return -Wbad-function-cast -Wcast-align -Wcast-qual -Wdisabled-optimization -Wdiv-by-zero -Wfloat-equal -Winline -Wmissing-declarations -Wmissing-format-attribute -Wmissing-noreturn -Wmissing-prototypes -Wmultichar -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wformat -Wformat-security -Wuninitialized" |
13938 | fi |
13939 | |
13940 | if test "${enable_debug}" = "yes"; then |
13941 | CFLAGS="${CFLAGS} -ggdb3 -DDEBUG" |
13942 | |
13943 | $as_echo "#define ENABLE_DEBUG 1" >>confdefs.h |
13944 | |
13945 | fi |
13946 | |
13947 | test "${enable_device_default_io_ops}" = "no" && |
13948 | $as_echo "#define NO_NTFS_DEVICE_DEFAULT_IO_OPS 1" >>confdefs.h |
13949 | |
13950 | |
13951 | test "${enable_mtab}" = "no" && |
13952 | $as_echo "#define IGNORE_MTAB 1" >>confdefs.h |
13953 | |
13954 | test "${enable_posix_acls}" != "no" && |
13955 | $as_echo "#define POSIXACLS 1" >>confdefs.h |
13956 | |
13957 | test "${enable_xattr_mappings}" != "no" && |
13958 | $as_echo "#define XATTR_MAPPINGS 1" >>confdefs.h |
13959 | |
13960 | |
13961 | test "${enable_really_static}" = "yes" && enable_library="no" |
13962 | test "${enable_library}" = "no" && enable_ldconfig="no" |
13963 | |
13964 | if test "x${DISTCHECK_HACK}" != "x"; then |
13965 | enable_mount_helper="no" |
13966 | enable_ldconfig="no" |
13967 | fi |
13968 | |
13969 | # Settings |
13970 | pkgconfigdir="\$(libdir)/pkgconfig" |
13971 | ntfs3gincludedir="\$(includedir)/ntfs-3g" |
13972 | # Executables should be installed to the root filesystem, otherwise |
13973 | # automounting NTFS volumes can fail during boot if the driver binaries |
13974 | # and their dependencies are on an unmounted partition. Use --exec-prefix |
13975 | # to override this. |
13976 | if test "x${exec_prefix}" = "xNONE"; then |
13977 | rootbindir="/bin" |
13978 | rootsbindir="/sbin" |
13979 | rootlibdir="/lib${libdir##*/lib}" |
13980 | else |
13981 | rootbindir="\$(bindir)" |
13982 | rootsbindir="\$(sbindir)" |
13983 | rootlibdir="\$(libdir)" |
13984 | fi |
13985 | |
13986 | |
13987 | |
13988 | |
13989 | |
13990 | |
13991 | |
13992 | |
13993 | |
13994 | |
13995 | |
13996 | |
13997 | |
13998 | |
13999 | if test "${with_fuse}" = "internal"; then |
14000 | FUSE_INTERNAL_TRUE= |
14001 | FUSE_INTERNAL_FALSE='#' |
14002 | else |
14003 | FUSE_INTERNAL_TRUE='#' |
14004 | FUSE_INTERNAL_FALSE= |
14005 | fi |
14006 | |
14007 | if test "${enable_ldscript}" = "yes"; then |
14008 | GENERATE_LDSCRIPT_TRUE= |
14009 | GENERATE_LDSCRIPT_FALSE='#' |
14010 | else |
14011 | GENERATE_LDSCRIPT_TRUE='#' |
14012 | GENERATE_LDSCRIPT_FALSE= |
14013 | fi |
14014 | |
14015 | if test "${WINDOWS}" = "yes"; then |
14016 | WINDOWS_TRUE= |
14017 | WINDOWS_FALSE='#' |
14018 | else |
14019 | WINDOWS_TRUE='#' |
14020 | WINDOWS_FALSE= |
14021 | fi |
14022 | |
14023 | if test "${enable_device_default_io_ops}" = "yes"; then |
14024 | NTFS_DEVICE_DEFAULT_IO_OPS_TRUE= |
14025 | NTFS_DEVICE_DEFAULT_IO_OPS_FALSE='#' |
14026 | else |
14027 | NTFS_DEVICE_DEFAULT_IO_OPS_TRUE='#' |
14028 | NTFS_DEVICE_DEFAULT_IO_OPS_FALSE= |
14029 | fi |
14030 | |
14031 | if test "${enable_ldconfig}" = "yes"; then |
14032 | RUN_LDCONFIG_TRUE= |
14033 | RUN_LDCONFIG_FALSE='#' |
14034 | else |
14035 | RUN_LDCONFIG_TRUE='#' |
14036 | RUN_LDCONFIG_FALSE= |
14037 | fi |
14038 | |
14039 | if test "${enable_really_static}" = "yes"; then |
14040 | REALLYSTATIC_TRUE= |
14041 | REALLYSTATIC_FALSE='#' |
14042 | else |
14043 | REALLYSTATIC_TRUE='#' |
14044 | REALLYSTATIC_FALSE= |
14045 | fi |
14046 | |
14047 | if test "${enable_library}" = "yes"; then |
14048 | INSTALL_LIBRARY_TRUE= |
14049 | INSTALL_LIBRARY_FALSE='#' |
14050 | else |
14051 | INSTALL_LIBRARY_TRUE='#' |
14052 | INSTALL_LIBRARY_FALSE= |
14053 | fi |
14054 | |
14055 | if test "${enable_mount_helper}" = "yes"; then |
14056 | ENABLE_MOUNT_HELPER_TRUE= |
14057 | ENABLE_MOUNT_HELPER_FALSE='#' |
14058 | else |
14059 | ENABLE_MOUNT_HELPER_TRUE='#' |
14060 | ENABLE_MOUNT_HELPER_FALSE= |
14061 | fi |
14062 | |
14063 | if test "${enable_ntfs_3g}" = "yes"; then |
14064 | ENABLE_NTFS_3G_TRUE= |
14065 | ENABLE_NTFS_3G_FALSE='#' |
14066 | else |
14067 | ENABLE_NTFS_3G_TRUE='#' |
14068 | ENABLE_NTFS_3G_FALSE= |
14069 | fi |
14070 | |
14071 | if test "${enable_ntfsprogs}" = "yes"; then |
14072 | ENABLE_NTFSPROGS_TRUE= |
14073 | ENABLE_NTFSPROGS_FALSE='#' |
14074 | else |
14075 | ENABLE_NTFSPROGS_TRUE='#' |
14076 | ENABLE_NTFSPROGS_FALSE= |
14077 | fi |
14078 | |
14079 | if test "${enable_extras}" = "yes"; then |
14080 | ENABLE_EXTRAS_TRUE= |
14081 | ENABLE_EXTRAS_FALSE='#' |
14082 | else |
14083 | ENABLE_EXTRAS_TRUE='#' |
14084 | ENABLE_EXTRAS_FALSE= |
14085 | fi |
14086 | |
14087 | |
14088 | # workaround for <autoconf-2.60 |
14089 | if test -z "${docdir}"; then |
14090 | docdir="\$(datarootdir)/doc/\$(PACKAGE_NAME)" |
14091 | |
14092 | fi |
14093 | # workaround for <automake-1.10 |
14094 | if test -z "${MKDIR_P}"; then |
14095 | MKDIR_P="\$(mkdir_p)" |
14096 | |
14097 | fi |
14098 | |
14099 | # generate files |
14100 | ac_config_files="$ac_config_files Makefile include/Makefile include/fuse-lite/Makefile include/ntfs-3g/Makefile libfuse-lite/Makefile libntfs-3g/Makefile libntfs-3g/libntfs-3g.pc libntfs-3g/libntfs-3g.script.so ntfsprogs/Makefile ntfsprogs/mkntfs.8 ntfsprogs/ntfscat.8 ntfsprogs/ntfsclone.8 ntfsprogs/ntfscluster.8 ntfsprogs/ntfscmp.8 ntfsprogs/ntfscp.8 ntfsprogs/ntfsfix.8 ntfsprogs/ntfsinfo.8 ntfsprogs/ntfslabel.8 ntfsprogs/ntfsls.8 ntfsprogs/ntfsprogs.8 ntfsprogs/ntfsresize.8 ntfsprogs/ntfsundelete.8 src/Makefile src/ntfs-3g.8 src/ntfs-3g.probe.8 src/ntfs-3g.usermap.8 src/ntfs-3g.secaudit.8" |
14101 | |
14102 | cat >confcache <<\_ACEOF |
14103 | # This file is a shell script that caches the results of configure |
14104 | # tests run on this system so they can be shared between configure |
14105 | # scripts and configure runs, see configure's option --config-cache. |
14106 | # It is not useful on other systems. If it contains results you don't |
14107 | # want to keep, you may remove or edit it. |
14108 | # |
14109 | # config.status only pays attention to the cache file if you give it |
14110 | # the --recheck option to rerun configure. |
14111 | # |
14112 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
14113 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
14114 | # following values. |
14115 | |
14116 | _ACEOF |
14117 | |
14118 | # The following way of writing the cache mishandles newlines in values, |
14119 | # but we know of no workaround that is simple, portable, and efficient. |
14120 | # So, we kill variables containing newlines. |
14121 | # Ultrix sh set writes to stderr and can't be redirected directly, |
14122 | # and sets the high bit in the cache file unless we assign to the vars. |
14123 | ( |
14124 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
14125 | eval ac_val=\$$ac_var |
14126 | case $ac_val in #( |
14127 | *${as_nl}*) |
14128 | case $ac_var in #( |
14129 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
14130 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
14131 | esac |
14132 | case $ac_var in #( |
14133 | _ | IFS | as_nl) ;; #( |
14134 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
14135 | *) { eval $ac_var=; unset $ac_var;} ;; |
14136 | esac ;; |
14137 | esac |
14138 | done |
14139 | |
14140 | (set) 2>&1 | |
14141 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
14142 | *${as_nl}ac_space=\ *) |
14143 | # `set' does not quote correctly, so add quotes: double-quote |
14144 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
14145 | sed -n \ |
14146 | "s/'/'\\\\''/g; |
14147 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
14148 | ;; #( |
14149 | *) |
14150 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
14151 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
14152 | ;; |
14153 | esac | |
14154 | sort |
14155 | ) | |
14156 | sed ' |
14157 | /^ac_cv_env_/b end |
14158 | t clear |
14159 | :clear |
14160 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
14161 | t end |
14162 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
14163 | :end' >>confcache |
14164 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
14165 | if test -w "$cache_file"; then |
14166 | test "x$cache_file" != "x/dev/null" && |
14167 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
14168 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
14169 | cat confcache >$cache_file |
14170 | else |
14171 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
14172 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
14173 | fi |
14174 | fi |
14175 | rm -f confcache |
14176 | |
14177 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
14178 | # Let make expand exec_prefix. |
14179 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
14180 | |
14181 | DEFS=-DHAVE_CONFIG_H |
14182 | |
14183 | ac_libobjs= |
14184 | ac_ltlibobjs= |
14185 | U= |
14186 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
14187 | # 1. Remove the extension, and $U if already installed. |
14188 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
14189 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
14190 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
14191 | # will be set to the directory where LIBOBJS objects are built. |
14192 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
14193 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
14194 | done |
14195 | LIBOBJS=$ac_libobjs |
14196 | |
14197 | LTLIBOBJS=$ac_ltlibobjs |
14198 | |
14199 | |
14200 | if test -n "$EXEEXT"; then |
14201 | am__EXEEXT_TRUE= |
14202 | am__EXEEXT_FALSE='#' |
14203 | else |
14204 | am__EXEEXT_TRUE='#' |
14205 | am__EXEEXT_FALSE= |
14206 | fi |
14207 | |
14208 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
14209 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
14210 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
14211 | fi |
14212 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
14213 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
14214 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
14215 | fi |
14216 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
14217 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
14218 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
14219 | fi |
14220 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
14221 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
14222 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
14223 | fi |
14224 | if test -z "${ENABLE_CRYPTO_TRUE}" && test -z "${ENABLE_CRYPTO_FALSE}"; then |
14225 | as_fn_error $? "conditional \"ENABLE_CRYPTO\" was never defined. |
14226 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
14227 | fi |
14228 | |
14229 | if test -z "${FUSE_INTERNAL_TRUE}" && test -z "${FUSE_INTERNAL_FALSE}"; then |
14230 | as_fn_error $? "conditional \"FUSE_INTERNAL\" was never defined. |
14231 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
14232 | fi |
14233 | if test -z "${GENERATE_LDSCRIPT_TRUE}" && test -z "${GENERATE_LDSCRIPT_FALSE}"; then |
14234 | as_fn_error $? "conditional \"GENERATE_LDSCRIPT\" was never defined. |
14235 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
14236 | fi |
14237 | if test -z "${WINDOWS_TRUE}" && test -z "${WINDOWS_FALSE}"; then |
14238 | as_fn_error $? "conditional \"WINDOWS\" was never defined. |
14239 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
14240 | fi |
14241 | if test -z "${NTFS_DEVICE_DEFAULT_IO_OPS_TRUE}" && test -z "${NTFS_DEVICE_DEFAULT_IO_OPS_FALSE}"; then |
14242 | as_fn_error $? "conditional \"NTFS_DEVICE_DEFAULT_IO_OPS\" was never defined. |
14243 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
14244 | fi |
14245 | if test -z "${RUN_LDCONFIG_TRUE}" && test -z "${RUN_LDCONFIG_FALSE}"; then |
14246 | as_fn_error $? "conditional \"RUN_LDCONFIG\" was never defined. |
14247 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
14248 | fi |
14249 | if test -z "${REALLYSTATIC_TRUE}" && test -z "${REALLYSTATIC_FALSE}"; then |
14250 | as_fn_error $? "conditional \"REALLYSTATIC\" was never defined. |
14251 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
14252 | fi |
14253 | if test -z "${INSTALL_LIBRARY_TRUE}" && test -z "${INSTALL_LIBRARY_FALSE}"; then |
14254 | as_fn_error $? "conditional \"INSTALL_LIBRARY\" was never defined. |
14255 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
14256 | fi |
14257 | if test -z "${ENABLE_MOUNT_HELPER_TRUE}" && test -z "${ENABLE_MOUNT_HELPER_FALSE}"; then |
14258 | as_fn_error $? "conditional \"ENABLE_MOUNT_HELPER\" was never defined. |
14259 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
14260 | fi |
14261 | if test -z "${ENABLE_NTFS_3G_TRUE}" && test -z "${ENABLE_NTFS_3G_FALSE}"; then |
14262 | as_fn_error $? "conditional \"ENABLE_NTFS_3G\" was never defined. |
14263 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
14264 | fi |
14265 | if test -z "${ENABLE_NTFSPROGS_TRUE}" && test -z "${ENABLE_NTFSPROGS_FALSE}"; then |
14266 | as_fn_error $? "conditional \"ENABLE_NTFSPROGS\" was never defined. |
14267 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
14268 | fi |
14269 | if test -z "${ENABLE_EXTRAS_TRUE}" && test -z "${ENABLE_EXTRAS_FALSE}"; then |
14270 | as_fn_error $? "conditional \"ENABLE_EXTRAS\" was never defined. |
14271 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
14272 | fi |
14273 | |
14274 | : ${CONFIG_STATUS=./config.status} |
14275 | ac_write_fail=0 |
14276 | ac_clean_files_save=$ac_clean_files |
14277 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
14278 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
14279 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
14280 | as_write_fail=0 |
14281 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
14282 | #! $SHELL |
14283 | # Generated by $as_me. |
14284 | # Run this file to recreate the current configuration. |
14285 | # Compiler output produced by configure, useful for debugging |
14286 | # configure, is in config.log if it exists. |
14287 | |
14288 | debug=false |
14289 | ac_cs_recheck=false |
14290 | ac_cs_silent=false |
14291 | |
14292 | SHELL=\${CONFIG_SHELL-$SHELL} |
14293 | export SHELL |
14294 | _ASEOF |
14295 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
14296 | ## -------------------- ## |
14297 | ## M4sh Initialization. ## |
14298 | ## -------------------- ## |
14299 | |
14300 | # Be more Bourne compatible |
14301 | DUALCASE=1; export DUALCASE # for MKS sh |
14302 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
14303 | emulate sh |
14304 | NULLCMD=: |
14305 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
14306 | # is contrary to our usage. Disable this feature. |
14307 | alias -g '${1+"$@"}'='"$@"' |
14308 | setopt NO_GLOB_SUBST |
14309 | else |
14310 | case `(set -o) 2>/dev/null` in #( |
14311 | *posix*) : |
14312 | set -o posix ;; #( |
14313 | *) : |
14314 | ;; |
14315 | esac |
14316 | fi |
14317 | |
14318 | |
14319 | as_nl=' |
14320 | ' |
14321 | export as_nl |
14322 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
14323 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
14324 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
14325 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
14326 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
14327 | # but without wasting forks for bash or zsh. |
14328 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
14329 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
14330 | as_echo='print -r --' |
14331 | as_echo_n='print -rn --' |
14332 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
14333 | as_echo='printf %s\n' |
14334 | as_echo_n='printf %s' |
14335 | else |
14336 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
14337 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
14338 | as_echo_n='/usr/ucb/echo -n' |
14339 | else |
14340 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
14341 | as_echo_n_body='eval |
14342 | arg=$1; |
14343 | case $arg in #( |
14344 | *"$as_nl"*) |
14345 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
14346 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
14347 | esac; |
14348 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
14349 | ' |
14350 | export as_echo_n_body |
14351 | as_echo_n='sh -c $as_echo_n_body as_echo' |
14352 | fi |
14353 | export as_echo_body |
14354 | as_echo='sh -c $as_echo_body as_echo' |
14355 | fi |
14356 | |
14357 | # The user is always right. |
14358 | if test "${PATH_SEPARATOR+set}" != set; then |
14359 | PATH_SEPARATOR=: |
14360 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
14361 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
14362 | PATH_SEPARATOR=';' |
14363 | } |
14364 | fi |
14365 | |
14366 | |
14367 | # IFS |
14368 | # We need space, tab and new line, in precisely that order. Quoting is |
14369 | # there to prevent editors from complaining about space-tab. |
14370 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
14371 | # splitting by setting IFS to empty value.) |
14372 | IFS=" "" $as_nl" |
14373 | |
14374 | # Find who we are. Look in the path if we contain no directory separator. |
14375 | case $0 in #(( |
14376 | *[\\/]* ) as_myself=$0 ;; |
14377 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14378 | for as_dir in $PATH |
14379 | do |
14380 | IFS=$as_save_IFS |
14381 | test -z "$as_dir" && as_dir=. |
14382 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
14383 | done |
14384 | IFS=$as_save_IFS |
14385 | |
14386 | ;; |
14387 | esac |
14388 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
14389 | # in which case we are not to be found in the path. |
14390 | if test "x$as_myself" = x; then |
14391 | as_myself=$0 |
14392 | fi |
14393 | if test ! -f "$as_myself"; then |
14394 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
14395 | exit 1 |
14396 | fi |
14397 | |
14398 | # Unset variables that we do not need and which cause bugs (e.g. in |
14399 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
14400 | # suppresses any "Segmentation fault" message there. '((' could |
14401 | # trigger a bug in pdksh 5.2.14. |
14402 | for as_var in BASH_ENV ENV MAIL MAILPATH |
14403 | do eval test x\${$as_var+set} = xset \ |
14404 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
14405 | done |
14406 | PS1='$ ' |
14407 | PS2='> ' |
14408 | PS4='+ ' |
14409 | |
14410 | # NLS nuisances. |
14411 | LC_ALL=C |
14412 | export LC_ALL |
14413 | LANGUAGE=C |
14414 | export LANGUAGE |
14415 | |
14416 | # CDPATH. |
14417 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
14418 | |
14419 | |
14420 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
14421 | # ---------------------------------------- |
14422 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
14423 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
14424 | # script with STATUS, using 1 if that was 0. |
14425 | as_fn_error () |
14426 | { |
14427 | as_status=$1; test $as_status -eq 0 && as_status=1 |
14428 | if test "$4"; then |
14429 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
14430 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
14431 | fi |
14432 | $as_echo "$as_me: error: $2" >&2 |
14433 | as_fn_exit $as_status |
14434 | } # as_fn_error |
14435 | |
14436 | |
14437 | # as_fn_set_status STATUS |
14438 | # ----------------------- |
14439 | # Set $? to STATUS, without forking. |
14440 | as_fn_set_status () |
14441 | { |
14442 | return $1 |
14443 | } # as_fn_set_status |
14444 | |
14445 | # as_fn_exit STATUS |
14446 | # ----------------- |
14447 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
14448 | as_fn_exit () |
14449 | { |
14450 | set +e |
14451 | as_fn_set_status $1 |
14452 | exit $1 |
14453 | } # as_fn_exit |
14454 | |
14455 | # as_fn_unset VAR |
14456 | # --------------- |
14457 | # Portably unset VAR. |
14458 | as_fn_unset () |
14459 | { |
14460 | { eval $1=; unset $1;} |
14461 | } |
14462 | as_unset=as_fn_unset |
14463 | # as_fn_append VAR VALUE |
14464 | # ---------------------- |
14465 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
14466 | # advantage of any shell optimizations that allow amortized linear growth over |
14467 | # repeated appends, instead of the typical quadratic growth present in naive |
14468 | # implementations. |
14469 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
14470 | eval 'as_fn_append () |
14471 | { |
14472 | eval $1+=\$2 |
14473 | }' |
14474 | else |
14475 | as_fn_append () |
14476 | { |
14477 | eval $1=\$$1\$2 |
14478 | } |
14479 | fi # as_fn_append |
14480 | |
14481 | # as_fn_arith ARG... |
14482 | # ------------------ |
14483 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
14484 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
14485 | # must be portable across $(()) and expr. |
14486 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
14487 | eval 'as_fn_arith () |
14488 | { |
14489 | as_val=$(( $* )) |
14490 | }' |
14491 | else |
14492 | as_fn_arith () |
14493 | { |
14494 | as_val=`expr "$@" || test $? -eq 1` |
14495 | } |
14496 | fi # as_fn_arith |
14497 | |
14498 | |
14499 | if expr a : '\(a\)' >/dev/null 2>&1 && |
14500 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
14501 | as_expr=expr |
14502 | else |
14503 | as_expr=false |
14504 | fi |
14505 | |
14506 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
14507 | as_basename=basename |
14508 | else |
14509 | as_basename=false |
14510 | fi |
14511 | |
14512 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
14513 | as_dirname=dirname |
14514 | else |
14515 | as_dirname=false |
14516 | fi |
14517 | |
14518 | as_me=`$as_basename -- "$0" || |
14519 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
14520 | X"$0" : 'X\(//\)$' \| \ |
14521 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
14522 | $as_echo X/"$0" | |
14523 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
14524 | s//\1/ |
14525 | q |
14526 | } |
14527 | /^X\/\(\/\/\)$/{ |
14528 | s//\1/ |
14529 | q |
14530 | } |
14531 | /^X\/\(\/\).*/{ |
14532 | s//\1/ |
14533 | q |
14534 | } |
14535 | s/.*/./; q'` |
14536 | |
14537 | # Avoid depending upon Character Ranges. |
14538 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
14539 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
14540 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
14541 | as_cr_digits='0123456789' |
14542 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
14543 | |
14544 | ECHO_C= ECHO_N= ECHO_T= |
14545 | case `echo -n x` in #((((( |
14546 | -n*) |
14547 | case `echo 'xy\c'` in |
14548 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
14549 | xy) ECHO_C='\c';; |
14550 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
14551 | ECHO_T=' ';; |
14552 | esac;; |
14553 | *) |
14554 | ECHO_N='-n';; |
14555 | esac |
14556 | |
14557 | rm -f conf$$ conf$$.exe conf$$.file |
14558 | if test -d conf$$.dir; then |
14559 | rm -f conf$$.dir/conf$$.file |
14560 | else |
14561 | rm -f conf$$.dir |
14562 | mkdir conf$$.dir 2>/dev/null |
14563 | fi |
14564 | if (echo >conf$$.file) 2>/dev/null; then |
14565 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
14566 | as_ln_s='ln -s' |
14567 | # ... but there are two gotchas: |
14568 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
14569 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
14570 | # In both cases, we have to default to `cp -p'. |
14571 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
14572 | as_ln_s='cp -p' |
14573 | elif ln conf$$.file conf$$ 2>/dev/null; then |
14574 | as_ln_s=ln |
14575 | else |
14576 | as_ln_s='cp -p' |
14577 | fi |
14578 | else |
14579 | as_ln_s='cp -p' |
14580 | fi |
14581 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
14582 | rmdir conf$$.dir 2>/dev/null |
14583 | |
14584 | |
14585 | # as_fn_mkdir_p |
14586 | # ------------- |
14587 | # Create "$as_dir" as a directory, including parents if necessary. |
14588 | as_fn_mkdir_p () |
14589 | { |
14590 | |
14591 | case $as_dir in #( |
14592 | -*) as_dir=./$as_dir;; |
14593 | esac |
14594 | test -d "$as_dir" || eval $as_mkdir_p || { |
14595 | as_dirs= |
14596 | while :; do |
14597 | case $as_dir in #( |
14598 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
14599 | *) as_qdir=$as_dir;; |
14600 | esac |
14601 | as_dirs="'$as_qdir' $as_dirs" |
14602 | as_dir=`$as_dirname -- "$as_dir" || |
14603 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
14604 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
14605 | X"$as_dir" : 'X\(//\)$' \| \ |
14606 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
14607 | $as_echo X"$as_dir" | |
14608 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
14609 | s//\1/ |
14610 | q |
14611 | } |
14612 | /^X\(\/\/\)[^/].*/{ |
14613 | s//\1/ |
14614 | q |
14615 | } |
14616 | /^X\(\/\/\)$/{ |
14617 | s//\1/ |
14618 | q |
14619 | } |
14620 | /^X\(\/\).*/{ |
14621 | s//\1/ |
14622 | q |
14623 | } |
14624 | s/.*/./; q'` |
14625 | test -d "$as_dir" && break |
14626 | done |
14627 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
14628 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
14629 | |
14630 | |
14631 | } # as_fn_mkdir_p |
14632 | if mkdir -p . 2>/dev/null; then |
14633 | as_mkdir_p='mkdir -p "$as_dir"' |
14634 | else |
14635 | test -d ./-p && rmdir ./-p |
14636 | as_mkdir_p=false |
14637 | fi |
14638 | |
14639 | if test -x / >/dev/null 2>&1; then |
14640 | as_test_x='test -x' |
14641 | else |
14642 | if ls -dL / >/dev/null 2>&1; then |
14643 | as_ls_L_option=L |
14644 | else |
14645 | as_ls_L_option= |
14646 | fi |
14647 | as_test_x=' |
14648 | eval sh -c '\'' |
14649 | if test -d "$1"; then |
14650 | test -d "$1/."; |
14651 | else |
14652 | case $1 in #( |
14653 | -*)set "./$1";; |
14654 | esac; |
14655 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
14656 | ???[sx]*):;;*)false;;esac;fi |
14657 | '\'' sh |
14658 | ' |
14659 | fi |
14660 | as_executable_p=$as_test_x |
14661 | |
14662 | # Sed expression to map a string onto a valid CPP name. |
14663 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
14664 | |
14665 | # Sed expression to map a string onto a valid variable name. |
14666 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
14667 | |
14668 | |
14669 | exec 6>&1 |
14670 | ## ----------------------------------- ## |
14671 | ## Main body of $CONFIG_STATUS script. ## |
14672 | ## ----------------------------------- ## |
14673 | _ASEOF |
14674 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
14675 | |
14676 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14677 | # Save the log message, to keep $0 and so on meaningful, and to |
14678 | # report actual input values of CONFIG_FILES etc. instead of their |
14679 | # values after options handling. |
14680 | ac_log=" |
14681 | This file was extended by ntfs-3g $as_me 2014.2.15, which was |
14682 | generated by GNU Autoconf 2.67. Invocation command line was |
14683 | |
14684 | CONFIG_FILES = $CONFIG_FILES |
14685 | CONFIG_HEADERS = $CONFIG_HEADERS |
14686 | CONFIG_LINKS = $CONFIG_LINKS |
14687 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
14688 | $ $0 $@ |
14689 | |
14690 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
14691 | " |
14692 | |
14693 | _ACEOF |
14694 | |
14695 | case $ac_config_files in *" |
14696 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
14697 | esac |
14698 | |
14699 | case $ac_config_headers in *" |
14700 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
14701 | esac |
14702 | |
14703 | |
14704 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
14705 | # Files that config.status was made for. |
14706 | config_files="$ac_config_files" |
14707 | config_headers="$ac_config_headers" |
14708 | config_commands="$ac_config_commands" |
14709 | |
14710 | _ACEOF |
14711 | |
14712 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14713 | ac_cs_usage="\ |
14714 | \`$as_me' instantiates files and other configuration actions |
14715 | from templates according to the current configuration. Unless the files |
14716 | and actions are specified as TAGs, all are instantiated by default. |
14717 | |
14718 | Usage: $0 [OPTION]... [TAG]... |
14719 | |
14720 | -h, --help print this help, then exit |
14721 | -V, --version print version number and configuration settings, then exit |
14722 | --config print configuration, then exit |
14723 | -q, --quiet, --silent |
14724 | do not print progress messages |
14725 | -d, --debug don't remove temporary files |
14726 | --recheck update $as_me by reconfiguring in the same conditions |
14727 | --file=FILE[:TEMPLATE] |
14728 | instantiate the configuration file FILE |
14729 | --header=FILE[:TEMPLATE] |
14730 | instantiate the configuration header FILE |
14731 | |
14732 | Configuration files: |
14733 | $config_files |
14734 | |
14735 | Configuration headers: |
14736 | $config_headers |
14737 | |
14738 | Configuration commands: |
14739 | $config_commands |
14740 | |
14741 | Report bugs to <ntfs-3g-devel@lists.sf.net>." |
14742 | |
14743 | _ACEOF |
14744 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
14745 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
14746 | ac_cs_version="\\ |
14747 | ntfs-3g config.status 2014.2.15 |
14748 | configured by $0, generated by GNU Autoconf 2.67, |
14749 | with options \\"\$ac_cs_config\\" |
14750 | |
14751 | Copyright (C) 2010 Free Software Foundation, Inc. |
14752 | This config.status script is free software; the Free Software Foundation |
14753 | gives unlimited permission to copy, distribute and modify it." |
14754 | |
14755 | ac_pwd='$ac_pwd' |
14756 | srcdir='$srcdir' |
14757 | INSTALL='$INSTALL' |
14758 | MKDIR_P='$MKDIR_P' |
14759 | AWK='$AWK' |
14760 | test -n "\$AWK" || AWK=awk |
14761 | _ACEOF |
14762 | |
14763 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14764 | # The default lists apply if the user does not specify any file. |
14765 | ac_need_defaults=: |
14766 | while test $# != 0 |
14767 | do |
14768 | case $1 in |
14769 | --*=?*) |
14770 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
14771 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
14772 | ac_shift=: |
14773 | ;; |
14774 | --*=) |
14775 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
14776 | ac_optarg= |
14777 | ac_shift=: |
14778 | ;; |
14779 | *) |
14780 | ac_option=$1 |
14781 | ac_optarg=$2 |
14782 | ac_shift=shift |
14783 | ;; |
14784 | esac |
14785 | |
14786 | case $ac_option in |
14787 | # Handling of the options. |
14788 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
14789 | ac_cs_recheck=: ;; |
14790 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
14791 | $as_echo "$ac_cs_version"; exit ;; |
14792 | --config | --confi | --conf | --con | --co | --c ) |
14793 | $as_echo "$ac_cs_config"; exit ;; |
14794 | --debug | --debu | --deb | --de | --d | -d ) |
14795 | debug=: ;; |
14796 | --file | --fil | --fi | --f ) |
14797 | $ac_shift |
14798 | case $ac_optarg in |
14799 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
14800 | '') as_fn_error $? "missing file argument" ;; |
14801 | esac |
14802 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
14803 | ac_need_defaults=false;; |
14804 | --header | --heade | --head | --hea ) |
14805 | $ac_shift |
14806 | case $ac_optarg in |
14807 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
14808 | esac |
14809 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
14810 | ac_need_defaults=false;; |
14811 | --he | --h) |
14812 | # Conflict between --help and --header |
14813 | as_fn_error $? "ambiguous option: \`$1' |
14814 | Try \`$0 --help' for more information.";; |
14815 | --help | --hel | -h ) |
14816 | $as_echo "$ac_cs_usage"; exit ;; |
14817 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
14818 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
14819 | ac_cs_silent=: ;; |
14820 | |
14821 | # This is an error. |
14822 | -*) as_fn_error $? "unrecognized option: \`$1' |
14823 | Try \`$0 --help' for more information." ;; |
14824 | |
14825 | *) as_fn_append ac_config_targets " $1" |
14826 | ac_need_defaults=false ;; |
14827 | |
14828 | esac |
14829 | shift |
14830 | done |
14831 | |
14832 | ac_configure_extra_args= |
14833 | |
14834 | if $ac_cs_silent; then |
14835 | exec 6>/dev/null |
14836 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
14837 | fi |
14838 | |
14839 | _ACEOF |
14840 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
14841 | if \$ac_cs_recheck; then |
14842 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
14843 | shift |
14844 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
14845 | CONFIG_SHELL='$SHELL' |
14846 | export CONFIG_SHELL |
14847 | exec "\$@" |
14848 | fi |
14849 | |
14850 | _ACEOF |
14851 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14852 | exec 5>>config.log |
14853 | { |
14854 | echo |
14855 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
14856 | ## Running $as_me. ## |
14857 | _ASBOX |
14858 | $as_echo "$ac_log" |
14859 | } >&5 |
14860 | |
14861 | _ACEOF |
14862 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
14863 | # |
14864 | # INIT-COMMANDS |
14865 | # |
14866 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
14867 | |
14868 | |
14869 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
14870 | # if CDPATH is set. |
14871 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
14872 | |
14873 | sed_quote_subst='$sed_quote_subst' |
14874 | double_quote_subst='$double_quote_subst' |
14875 | delay_variable_subst='$delay_variable_subst' |
14876 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' |
14877 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' |
14878 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' |
14879 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' |
14880 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' |
14881 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' |
14882 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' |
14883 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' |
14884 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' |
14885 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' |
14886 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' |
14887 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' |
14888 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' |
14889 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' |
14890 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' |
14891 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' |
14892 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' |
14893 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' |
14894 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' |
14895 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' |
14896 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' |
14897 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' |
14898 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' |
14899 | lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' |
14900 | lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' |
14901 | lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' |
14902 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' |
14903 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
14904 | OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' |
14905 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' |
14906 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' |
14907 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' |
14908 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' |
14909 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' |
14910 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' |
14911 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
14912 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
14913 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
14914 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' |
14915 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' |
14916 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' |
14917 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' |
14918 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' |
14919 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' |
14920 | 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"`' |
14921 | 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"`' |
14922 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' |
14923 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' |
14924 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' |
14925 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' |
14926 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' |
14927 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' |
14928 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' |
14929 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' |
14930 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' |
14931 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' |
14932 | DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' |
14933 | NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' |
14934 | LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' |
14935 | OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' |
14936 | OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' |
14937 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' |
14938 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
14939 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
14940 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' |
14941 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' |
14942 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' |
14943 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' |
14944 | compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' |
14945 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
14946 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
14947 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
14948 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
14949 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
14950 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
14951 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' |
14952 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' |
14953 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' |
14954 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' |
14955 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' |
14956 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' |
14957 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' |
14958 | hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' |
14959 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' |
14960 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' |
14961 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' |
14962 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' |
14963 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' |
14964 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' |
14965 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' |
14966 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
14967 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' |
14968 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' |
14969 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
14970 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' |
14971 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' |
14972 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' |
14973 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' |
14974 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' |
14975 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' |
14976 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' |
14977 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' |
14978 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' |
14979 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' |
14980 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' |
14981 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
14982 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
14983 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
14984 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' |
14985 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' |
14986 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' |
14987 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' |
14988 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' |
14989 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' |
14990 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' |
14991 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' |
14992 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' |
14993 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' |
14994 | |
14995 | LTCC='$LTCC' |
14996 | LTCFLAGS='$LTCFLAGS' |
14997 | compiler='$compiler_DEFAULT' |
14998 | |
14999 | # Quote evaled strings. |
15000 | for var in SED \ |
15001 | GREP \ |
15002 | EGREP \ |
15003 | FGREP \ |
15004 | LD \ |
15005 | NM \ |
15006 | LN_S \ |
15007 | lt_SP2NL \ |
15008 | lt_NL2SP \ |
15009 | reload_flag \ |
15010 | OBJDUMP \ |
15011 | deplibs_check_method \ |
15012 | file_magic_cmd \ |
15013 | AR \ |
15014 | AR_FLAGS \ |
15015 | STRIP \ |
15016 | RANLIB \ |
15017 | CC \ |
15018 | CFLAGS \ |
15019 | compiler \ |
15020 | lt_cv_sys_global_symbol_pipe \ |
15021 | lt_cv_sys_global_symbol_to_cdecl \ |
15022 | lt_cv_sys_global_symbol_to_c_name_address \ |
15023 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
15024 | SHELL \ |
15025 | ECHO \ |
15026 | lt_prog_compiler_no_builtin_flag \ |
15027 | lt_prog_compiler_wl \ |
15028 | lt_prog_compiler_pic \ |
15029 | lt_prog_compiler_static \ |
15030 | lt_cv_prog_compiler_c_o \ |
15031 | need_locks \ |
15032 | DSYMUTIL \ |
15033 | NMEDIT \ |
15034 | LIPO \ |
15035 | OTOOL \ |
15036 | OTOOL64 \ |
15037 | shrext_cmds \ |
15038 | export_dynamic_flag_spec \ |
15039 | whole_archive_flag_spec \ |
15040 | compiler_needs_object \ |
15041 | with_gnu_ld \ |
15042 | allow_undefined_flag \ |
15043 | no_undefined_flag \ |
15044 | hardcode_libdir_flag_spec \ |
15045 | hardcode_libdir_flag_spec_ld \ |
15046 | hardcode_libdir_separator \ |
15047 | fix_srcfile_path \ |
15048 | exclude_expsyms \ |
15049 | include_expsyms \ |
15050 | file_list_spec \ |
15051 | variables_saved_for_relink \ |
15052 | libname_spec \ |
15053 | library_names_spec \ |
15054 | soname_spec \ |
15055 | finish_eval \ |
15056 | old_striplib \ |
15057 | striplib; do |
15058 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in |
15059 | *[\\\\\\\`\\"\\\$]*) |
15060 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
15061 | ;; |
15062 | *) |
15063 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
15064 | ;; |
15065 | esac |
15066 | done |
15067 | |
15068 | # Double-quote double-evaled strings. |
15069 | for var in reload_cmds \ |
15070 | old_postinstall_cmds \ |
15071 | old_postuninstall_cmds \ |
15072 | old_archive_cmds \ |
15073 | extract_expsyms_cmds \ |
15074 | old_archive_from_new_cmds \ |
15075 | old_archive_from_expsyms_cmds \ |
15076 | archive_cmds \ |
15077 | archive_expsym_cmds \ |
15078 | module_cmds \ |
15079 | module_expsym_cmds \ |
15080 | export_symbols_cmds \ |
15081 | prelink_cmds \ |
15082 | postinstall_cmds \ |
15083 | postuninstall_cmds \ |
15084 | finish_cmds \ |
15085 | sys_lib_search_path_spec \ |
15086 | sys_lib_dlsearch_path_spec; do |
15087 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in |
15088 | *[\\\\\\\`\\"\\\$]*) |
15089 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
15090 | ;; |
15091 | *) |
15092 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
15093 | ;; |
15094 | esac |
15095 | done |
15096 | |
15097 | # Fix-up fallback echo if it was mangled by the above quoting rules. |
15098 | case \$lt_ECHO in |
15099 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` |
15100 | ;; |
15101 | esac |
15102 | |
15103 | ac_aux_dir='$ac_aux_dir' |
15104 | xsi_shell='$xsi_shell' |
15105 | lt_shell_append='$lt_shell_append' |
15106 | |
15107 | # See if we are running on zsh, and set the options which allow our |
15108 | # commands through without removal of \ escapes INIT. |
15109 | if test -n "\${ZSH_VERSION+set}" ; then |
15110 | setopt NO_GLOB_SUBST |
15111 | fi |
15112 | |
15113 | |
15114 | PACKAGE='$PACKAGE' |
15115 | VERSION='$VERSION' |
15116 | TIMESTAMP='$TIMESTAMP' |
15117 | RM='$RM' |
15118 | ofile='$ofile' |
15119 | |
15120 | |
15121 | |
15122 | |
15123 | _ACEOF |
15124 | |
15125 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15126 | |
15127 | # Handling of arguments. |
15128 | for ac_config_target in $ac_config_targets |
15129 | do |
15130 | case $ac_config_target in |
15131 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
15132 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
15133 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
15134 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
15135 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
15136 | "include/fuse-lite/Makefile") CONFIG_FILES="$CONFIG_FILES include/fuse-lite/Makefile" ;; |
15137 | "include/ntfs-3g/Makefile") CONFIG_FILES="$CONFIG_FILES include/ntfs-3g/Makefile" ;; |
15138 | "libfuse-lite/Makefile") CONFIG_FILES="$CONFIG_FILES libfuse-lite/Makefile" ;; |
15139 | "libntfs-3g/Makefile") CONFIG_FILES="$CONFIG_FILES libntfs-3g/Makefile" ;; |
15140 | "libntfs-3g/libntfs-3g.pc") CONFIG_FILES="$CONFIG_FILES libntfs-3g/libntfs-3g.pc" ;; |
15141 | "libntfs-3g/libntfs-3g.script.so") CONFIG_FILES="$CONFIG_FILES libntfs-3g/libntfs-3g.script.so" ;; |
15142 | "ntfsprogs/Makefile") CONFIG_FILES="$CONFIG_FILES ntfsprogs/Makefile" ;; |
15143 | "ntfsprogs/mkntfs.8") CONFIG_FILES="$CONFIG_FILES ntfsprogs/mkntfs.8" ;; |
15144 | "ntfsprogs/ntfscat.8") CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfscat.8" ;; |
15145 | "ntfsprogs/ntfsclone.8") CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfsclone.8" ;; |
15146 | "ntfsprogs/ntfscluster.8") CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfscluster.8" ;; |
15147 | "ntfsprogs/ntfscmp.8") CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfscmp.8" ;; |
15148 | "ntfsprogs/ntfscp.8") CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfscp.8" ;; |
15149 | "ntfsprogs/ntfsfix.8") CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfsfix.8" ;; |
15150 | "ntfsprogs/ntfsinfo.8") CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfsinfo.8" ;; |
15151 | "ntfsprogs/ntfslabel.8") CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfslabel.8" ;; |
15152 | "ntfsprogs/ntfsls.8") CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfsls.8" ;; |
15153 | "ntfsprogs/ntfsprogs.8") CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfsprogs.8" ;; |
15154 | "ntfsprogs/ntfsresize.8") CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfsresize.8" ;; |
15155 | "ntfsprogs/ntfsundelete.8") CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfsundelete.8" ;; |
15156 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
15157 | "src/ntfs-3g.8") CONFIG_FILES="$CONFIG_FILES src/ntfs-3g.8" ;; |
15158 | "src/ntfs-3g.probe.8") CONFIG_FILES="$CONFIG_FILES src/ntfs-3g.probe.8" ;; |
15159 | "src/ntfs-3g.usermap.8") CONFIG_FILES="$CONFIG_FILES src/ntfs-3g.usermap.8" ;; |
15160 | "src/ntfs-3g.secaudit.8") CONFIG_FILES="$CONFIG_FILES src/ntfs-3g.secaudit.8" ;; |
15161 | |
15162 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;; |
15163 | esac |
15164 | done |
15165 | |
15166 | |
15167 | # If the user did not use the arguments to specify the items to instantiate, |
15168 | # then the envvar interface is used. Set only those that are not. |
15169 | # We use the long form for the default assignment because of an extremely |
15170 | # bizarre bug on SunOS 4.1.3. |
15171 | if $ac_need_defaults; then |
15172 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
15173 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
15174 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
15175 | fi |
15176 | |
15177 | # Have a temporary directory for convenience. Make it in the build tree |
15178 | # simply because there is no reason against having it here, and in addition, |
15179 | # creating and moving files from /tmp can sometimes cause problems. |
15180 | # Hook for its removal unless debugging. |
15181 | # Note that there is a small window in which the directory will not be cleaned: |
15182 | # after its creation but before its name has been assigned to `$tmp'. |
15183 | $debug || |
15184 | { |
15185 | tmp= |
15186 | trap 'exit_status=$? |
15187 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
15188 | ' 0 |
15189 | trap 'as_fn_exit 1' 1 2 13 15 |
15190 | } |
15191 | # Create a (secure) tmp directory for tmp files. |
15192 | |
15193 | { |
15194 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
15195 | test -n "$tmp" && test -d "$tmp" |
15196 | } || |
15197 | { |
15198 | tmp=./conf$$-$RANDOM |
15199 | (umask 077 && mkdir "$tmp") |
15200 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
15201 | |
15202 | # Set up the scripts for CONFIG_FILES section. |
15203 | # No need to generate them if there are no CONFIG_FILES. |
15204 | # This happens for instance with `./config.status config.h'. |
15205 | if test -n "$CONFIG_FILES"; then |
15206 | |
15207 | |
15208 | ac_cr=`echo X | tr X '\015'` |
15209 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
15210 | # But we know of no other shell where ac_cr would be empty at this |
15211 | # point, so we can use a bashism as a fallback. |
15212 | if test "x$ac_cr" = x; then |
15213 | eval ac_cr=\$\'\\r\' |
15214 | fi |
15215 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
15216 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
15217 | ac_cs_awk_cr='\\r' |
15218 | else |
15219 | ac_cs_awk_cr=$ac_cr |
15220 | fi |
15221 | |
15222 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
15223 | _ACEOF |
15224 | |
15225 | |
15226 | { |
15227 | echo "cat >conf$$subs.awk <<_ACEOF" && |
15228 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
15229 | echo "_ACEOF" |
15230 | } >conf$$subs.sh || |
15231 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
15232 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
15233 | ac_delim='%!_!# ' |
15234 | for ac_last_try in false false false false false :; do |
15235 | . ./conf$$subs.sh || |
15236 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
15237 | |
15238 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
15239 | if test $ac_delim_n = $ac_delim_num; then |
15240 | break |
15241 | elif $ac_last_try; then |
15242 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
15243 | else |
15244 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
15245 | fi |
15246 | done |
15247 | rm -f conf$$subs.sh |
15248 | |
15249 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15250 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && |
15251 | _ACEOF |
15252 | sed -n ' |
15253 | h |
15254 | s/^/S["/; s/!.*/"]=/ |
15255 | p |
15256 | g |
15257 | s/^[^!]*!// |
15258 | :repl |
15259 | t repl |
15260 | s/'"$ac_delim"'$// |
15261 | t delim |
15262 | :nl |
15263 | h |
15264 | s/\(.\{148\}\)..*/\1/ |
15265 | t more1 |
15266 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
15267 | p |
15268 | n |
15269 | b repl |
15270 | :more1 |
15271 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
15272 | p |
15273 | g |
15274 | s/.\{148\}// |
15275 | t nl |
15276 | :delim |
15277 | h |
15278 | s/\(.\{148\}\)..*/\1/ |
15279 | t more2 |
15280 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
15281 | p |
15282 | b |
15283 | :more2 |
15284 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
15285 | p |
15286 | g |
15287 | s/.\{148\}// |
15288 | t delim |
15289 | ' <conf$$subs.awk | sed ' |
15290 | /^[^""]/{ |
15291 | N |
15292 | s/\n// |
15293 | } |
15294 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
15295 | rm -f conf$$subs.awk |
15296 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15297 | _ACAWK |
15298 | cat >>"\$tmp/subs1.awk" <<_ACAWK && |
15299 | for (key in S) S_is_set[key] = 1 |
15300 | FS = "" |
15301 | |
15302 | } |
15303 | { |
15304 | line = $ 0 |
15305 | nfields = split(line, field, "@") |
15306 | substed = 0 |
15307 | len = length(field[1]) |
15308 | for (i = 2; i < nfields; i++) { |
15309 | key = field[i] |
15310 | keylen = length(key) |
15311 | if (S_is_set[key]) { |
15312 | value = S[key] |
15313 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
15314 | len += length(value) + length(field[++i]) |
15315 | substed = 1 |
15316 | } else |
15317 | len += 1 + keylen |
15318 | } |
15319 | |
15320 | print line |
15321 | } |
15322 | |
15323 | _ACAWK |
15324 | _ACEOF |
15325 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15326 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
15327 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
15328 | else |
15329 | cat |
15330 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
15331 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
15332 | _ACEOF |
15333 | |
15334 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
15335 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
15336 | # trailing colons and then remove the whole line if VPATH becomes empty |
15337 | # (actually we leave an empty line to preserve line numbers). |
15338 | if test "x$srcdir" = x.; then |
15339 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
15340 | h |
15341 | s/// |
15342 | s/^/:/ |
15343 | s/[ ]*$/:/ |
15344 | s/:\$(srcdir):/:/g |
15345 | s/:\${srcdir}:/:/g |
15346 | s/:@srcdir@:/:/g |
15347 | s/^:*// |
15348 | s/:*$// |
15349 | x |
15350 | s/\(=[ ]*\).*/\1/ |
15351 | G |
15352 | s/\n// |
15353 | s/^[^=]*=[ ]*$// |
15354 | }' |
15355 | fi |
15356 | |
15357 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15358 | fi # test -n "$CONFIG_FILES" |
15359 | |
15360 | # Set up the scripts for CONFIG_HEADERS section. |
15361 | # No need to generate them if there are no CONFIG_HEADERS. |
15362 | # This happens for instance with `./config.status Makefile'. |
15363 | if test -n "$CONFIG_HEADERS"; then |
15364 | cat >"$tmp/defines.awk" <<\_ACAWK || |
15365 | BEGIN { |
15366 | _ACEOF |
15367 | |
15368 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
15369 | # here-document in config.status, that substitutes the proper values into |
15370 | # config.h.in to produce config.h. |
15371 | |
15372 | # Create a delimiter string that does not exist in confdefs.h, to ease |
15373 | # handling of long lines. |
15374 | ac_delim='%!_!# ' |
15375 | for ac_last_try in false false :; do |
15376 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` |
15377 | if test -z "$ac_t"; then |
15378 | break |
15379 | elif $ac_last_try; then |
15380 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
15381 | else |
15382 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
15383 | fi |
15384 | done |
15385 | |
15386 | # For the awk script, D is an array of macro values keyed by name, |
15387 | # likewise P contains macro parameters if any. Preserve backslash |
15388 | # newline sequences. |
15389 | |
15390 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
15391 | sed -n ' |
15392 | s/.\{148\}/&'"$ac_delim"'/g |
15393 | t rset |
15394 | :rset |
15395 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
15396 | t def |
15397 | d |
15398 | :def |
15399 | s/\\$// |
15400 | t bsnl |
15401 | s/["\\]/\\&/g |
15402 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
15403 | D["\1"]=" \3"/p |
15404 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
15405 | d |
15406 | :bsnl |
15407 | s/["\\]/\\&/g |
15408 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
15409 | D["\1"]=" \3\\\\\\n"\\/p |
15410 | t cont |
15411 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
15412 | t cont |
15413 | d |
15414 | :cont |
15415 | n |
15416 | s/.\{148\}/&'"$ac_delim"'/g |
15417 | t clear |
15418 | :clear |
15419 | s/\\$// |
15420 | t bsnlc |
15421 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
15422 | d |
15423 | :bsnlc |
15424 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
15425 | b cont |
15426 | ' <confdefs.h | sed ' |
15427 | s/'"$ac_delim"'/"\\\ |
15428 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
15429 | |
15430 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15431 | for (key in D) D_is_set[key] = 1 |
15432 | FS = "" |
15433 | } |
15434 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
15435 | line = \$ 0 |
15436 | split(line, arg, " ") |
15437 | if (arg[1] == "#") { |
15438 | defundef = arg[2] |
15439 | mac1 = arg[3] |
15440 | } else { |
15441 | defundef = substr(arg[1], 2) |
15442 | mac1 = arg[2] |
15443 | } |
15444 | split(mac1, mac2, "(") #) |
15445 | macro = mac2[1] |
15446 | prefix = substr(line, 1, index(line, defundef) - 1) |
15447 | if (D_is_set[macro]) { |
15448 | # Preserve the white space surrounding the "#". |
15449 | print prefix "define", macro P[macro] D[macro] |
15450 | next |
15451 | } else { |
15452 | # Replace #undef with comments. This is necessary, for example, |
15453 | # in the case of _POSIX_SOURCE, which is predefined and required |
15454 | # on some systems where configure will not decide to define it. |
15455 | if (defundef == "undef") { |
15456 | print "/*", prefix defundef, macro, "*/" |
15457 | next |
15458 | } |
15459 | } |
15460 | } |
15461 | { print } |
15462 | _ACAWK |
15463 | _ACEOF |
15464 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15465 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
15466 | fi # test -n "$CONFIG_HEADERS" |
15467 | |
15468 | |
15469 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
15470 | shift |
15471 | for ac_tag |
15472 | do |
15473 | case $ac_tag in |
15474 | :[FHLC]) ac_mode=$ac_tag; continue;; |
15475 | esac |
15476 | case $ac_mode$ac_tag in |
15477 | :[FHL]*:*);; |
15478 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;; |
15479 | :[FH]-) ac_tag=-:-;; |
15480 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
15481 | esac |
15482 | ac_save_IFS=$IFS |
15483 | IFS=: |
15484 | set x $ac_tag |
15485 | IFS=$ac_save_IFS |
15486 | shift |
15487 | ac_file=$1 |
15488 | shift |
15489 | |
15490 | case $ac_mode in |
15491 | :L) ac_source=$1;; |
15492 | :[FH]) |
15493 | ac_file_inputs= |
15494 | for ac_f |
15495 | do |
15496 | case $ac_f in |
15497 | -) ac_f="$tmp/stdin";; |
15498 | *) # Look for the file first in the build tree, then in the source tree |
15499 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
15500 | # because $ac_f cannot contain `:'. |
15501 | test -f "$ac_f" || |
15502 | case $ac_f in |
15503 | [\\/$]*) false;; |
15504 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
15505 | esac || |
15506 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;; |
15507 | esac |
15508 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
15509 | as_fn_append ac_file_inputs " '$ac_f'" |
15510 | done |
15511 | |
15512 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
15513 | # use $as_me), people would be surprised to read: |
15514 | # /* config.h. Generated by config.status. */ |
15515 | configure_input='Generated from '` |
15516 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
15517 | `' by configure.' |
15518 | if test x"$ac_file" != x-; then |
15519 | configure_input="$ac_file. $configure_input" |
15520 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
15521 | $as_echo "$as_me: creating $ac_file" >&6;} |
15522 | fi |
15523 | # Neutralize special characters interpreted by sed in replacement strings. |
15524 | case $configure_input in #( |
15525 | *\&* | *\|* | *\\* ) |
15526 | ac_sed_conf_input=`$as_echo "$configure_input" | |
15527 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
15528 | *) ac_sed_conf_input=$configure_input;; |
15529 | esac |
15530 | |
15531 | case $ac_tag in |
15532 | *:-:* | *:-) cat >"$tmp/stdin" \ |
15533 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
15534 | esac |
15535 | ;; |
15536 | esac |
15537 | |
15538 | ac_dir=`$as_dirname -- "$ac_file" || |
15539 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
15540 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
15541 | X"$ac_file" : 'X\(//\)$' \| \ |
15542 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
15543 | $as_echo X"$ac_file" | |
15544 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
15545 | s//\1/ |
15546 | q |
15547 | } |
15548 | /^X\(\/\/\)[^/].*/{ |
15549 | s//\1/ |
15550 | q |
15551 | } |
15552 | /^X\(\/\/\)$/{ |
15553 | s//\1/ |
15554 | q |
15555 | } |
15556 | /^X\(\/\).*/{ |
15557 | s//\1/ |
15558 | q |
15559 | } |
15560 | s/.*/./; q'` |
15561 | as_dir="$ac_dir"; as_fn_mkdir_p |
15562 | ac_builddir=. |
15563 | |
15564 | case "$ac_dir" in |
15565 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
15566 | *) |
15567 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
15568 | # A ".." for each directory in $ac_dir_suffix. |
15569 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
15570 | case $ac_top_builddir_sub in |
15571 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
15572 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
15573 | esac ;; |
15574 | esac |
15575 | ac_abs_top_builddir=$ac_pwd |
15576 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
15577 | # for backward compatibility: |
15578 | ac_top_builddir=$ac_top_build_prefix |
15579 | |
15580 | case $srcdir in |
15581 | .) # We are building in place. |
15582 | ac_srcdir=. |
15583 | ac_top_srcdir=$ac_top_builddir_sub |
15584 | ac_abs_top_srcdir=$ac_pwd ;; |
15585 | [\\/]* | ?:[\\/]* ) # Absolute name. |
15586 | ac_srcdir=$srcdir$ac_dir_suffix; |
15587 | ac_top_srcdir=$srcdir |
15588 | ac_abs_top_srcdir=$srcdir ;; |
15589 | *) # Relative name. |
15590 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
15591 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
15592 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
15593 | esac |
15594 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
15595 | |
15596 | |
15597 | case $ac_mode in |
15598 | :F) |
15599 | # |
15600 | # CONFIG_FILE |
15601 | # |
15602 | |
15603 | case $INSTALL in |
15604 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
15605 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
15606 | esac |
15607 | ac_MKDIR_P=$MKDIR_P |
15608 | case $MKDIR_P in |
15609 | [\\/$]* | ?:[\\/]* ) ;; |
15610 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
15611 | esac |
15612 | _ACEOF |
15613 | |
15614 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15615 | # If the template does not know about datarootdir, expand it. |
15616 | # FIXME: This hack should be removed a few years after 2.60. |
15617 | ac_datarootdir_hack=; ac_datarootdir_seen= |
15618 | ac_sed_dataroot=' |
15619 | /datarootdir/ { |
15620 | p |
15621 | q |
15622 | } |
15623 | /@datadir@/p |
15624 | /@docdir@/p |
15625 | /@infodir@/p |
15626 | /@localedir@/p |
15627 | /@mandir@/p' |
15628 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
15629 | *datarootdir*) ac_datarootdir_seen=yes;; |
15630 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
15631 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
15632 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
15633 | _ACEOF |
15634 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15635 | ac_datarootdir_hack=' |
15636 | s&@datadir@&$datadir&g |
15637 | s&@docdir@&$docdir&g |
15638 | s&@infodir@&$infodir&g |
15639 | s&@localedir@&$localedir&g |
15640 | s&@mandir@&$mandir&g |
15641 | s&\\\${datarootdir}&$datarootdir&g' ;; |
15642 | esac |
15643 | _ACEOF |
15644 | |
15645 | # Neutralize VPATH when `$srcdir' = `.'. |
15646 | # Shell code in configure.ac might set extrasub. |
15647 | # FIXME: do we really want to maintain this feature? |
15648 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15649 | ac_sed_extra="$ac_vpsub |
15650 | $extrasub |
15651 | _ACEOF |
15652 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15653 | :t |
15654 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
15655 | s|@configure_input@|$ac_sed_conf_input|;t t |
15656 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
15657 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
15658 | s&@srcdir@&$ac_srcdir&;t t |
15659 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
15660 | s&@top_srcdir@&$ac_top_srcdir&;t t |
15661 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
15662 | s&@builddir@&$ac_builddir&;t t |
15663 | s&@abs_builddir@&$ac_abs_builddir&;t t |
15664 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
15665 | s&@INSTALL@&$ac_INSTALL&;t t |
15666 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
15667 | $ac_datarootdir_hack |
15668 | " |
15669 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ |
15670 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
15671 | |
15672 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
15673 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
15674 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
15675 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
15676 | which seems to be undefined. Please make sure it is defined" >&5 |
15677 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
15678 | which seems to be undefined. Please make sure it is defined" >&2;} |
15679 | |
15680 | rm -f "$tmp/stdin" |
15681 | case $ac_file in |
15682 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
15683 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
15684 | esac \ |
15685 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
15686 | ;; |
15687 | :H) |
15688 | # |
15689 | # CONFIG_HEADER |
15690 | # |
15691 | if test x"$ac_file" != x-; then |
15692 | { |
15693 | $as_echo "/* $configure_input */" \ |
15694 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" |
15695 | } >"$tmp/config.h" \ |
15696 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
15697 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
15698 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
15699 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
15700 | else |
15701 | rm -f "$ac_file" |
15702 | mv "$tmp/config.h" "$ac_file" \ |
15703 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
15704 | fi |
15705 | else |
15706 | $as_echo "/* $configure_input */" \ |
15707 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ |
15708 | || as_fn_error $? "could not create -" "$LINENO" 5 |
15709 | fi |
15710 | # Compute "$ac_file"'s index in $config_headers. |
15711 | _am_arg="$ac_file" |
15712 | _am_stamp_count=1 |
15713 | for _am_header in $config_headers :; do |
15714 | case $_am_header in |
15715 | $_am_arg | $_am_arg:* ) |
15716 | break ;; |
15717 | * ) |
15718 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
15719 | esac |
15720 | done |
15721 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
15722 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
15723 | X"$_am_arg" : 'X\(//\)[^/]' \| \ |
15724 | X"$_am_arg" : 'X\(//\)$' \| \ |
15725 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
15726 | $as_echo X"$_am_arg" | |
15727 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
15728 | s//\1/ |
15729 | q |
15730 | } |
15731 | /^X\(\/\/\)[^/].*/{ |
15732 | s//\1/ |
15733 | q |
15734 | } |
15735 | /^X\(\/\/\)$/{ |
15736 | s//\1/ |
15737 | q |
15738 | } |
15739 | /^X\(\/\).*/{ |
15740 | s//\1/ |
15741 | q |
15742 | } |
15743 | s/.*/./; q'`/stamp-h$_am_stamp_count |
15744 | ;; |
15745 | |
15746 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
15747 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
15748 | ;; |
15749 | esac |
15750 | |
15751 | |
15752 | case $ac_file$ac_mode in |
15753 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
15754 | # Autoconf 2.62 quotes --file arguments for eval, but not when files |
15755 | # are listed without --file. Let's play safe and only enable the eval |
15756 | # if we detect the quoting. |
15757 | case $CONFIG_FILES in |
15758 | *\'*) eval set x "$CONFIG_FILES" ;; |
15759 | *) set x $CONFIG_FILES ;; |
15760 | esac |
15761 | shift |
15762 | for mf |
15763 | do |
15764 | # Strip MF so we end up with the name of the file. |
15765 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
15766 | # Check whether this is an Automake generated Makefile or not. |
15767 | # We used to match only the files named `Makefile.in', but |
15768 | # some people rename them; so instead we look at the file content. |
15769 | # Grep'ing the first line is not enough: some people post-process |
15770 | # each Makefile.in and add a new line on top of each file to say so. |
15771 | # Grep'ing the whole file is not good either: AIX grep has a line |
15772 | # limit of 2048, but all sed's we know have understand at least 4000. |
15773 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
15774 | dirpart=`$as_dirname -- "$mf" || |
15775 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
15776 | X"$mf" : 'X\(//\)[^/]' \| \ |
15777 | X"$mf" : 'X\(//\)$' \| \ |
15778 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
15779 | $as_echo X"$mf" | |
15780 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
15781 | s//\1/ |
15782 | q |
15783 | } |
15784 | /^X\(\/\/\)[^/].*/{ |
15785 | s//\1/ |
15786 | q |
15787 | } |
15788 | /^X\(\/\/\)$/{ |
15789 | s//\1/ |
15790 | q |
15791 | } |
15792 | /^X\(\/\).*/{ |
15793 | s//\1/ |
15794 | q |
15795 | } |
15796 | s/.*/./; q'` |
15797 | else |
15798 | continue |
15799 | fi |
15800 | # Extract the definition of DEPDIR, am__include, and am__quote |
15801 | # from the Makefile without running `make'. |
15802 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
15803 | test -z "$DEPDIR" && continue |
15804 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
15805 | test -z "am__include" && continue |
15806 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
15807 | # When using ansi2knr, U may be empty or an underscore; expand it |
15808 | U=`sed -n 's/^U = //p' < "$mf"` |
15809 | # Find all dependency output files, they are included files with |
15810 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
15811 | # simplest approach to changing $(DEPDIR) to its actual value in the |
15812 | # expansion. |
15813 | for file in `sed -n " |
15814 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
15815 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
15816 | # Make sure the directory exists. |
15817 | test -f "$dirpart/$file" && continue |
15818 | fdir=`$as_dirname -- "$file" || |
15819 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
15820 | X"$file" : 'X\(//\)[^/]' \| \ |
15821 | X"$file" : 'X\(//\)$' \| \ |
15822 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
15823 | $as_echo X"$file" | |
15824 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
15825 | s//\1/ |
15826 | q |
15827 | } |
15828 | /^X\(\/\/\)[^/].*/{ |
15829 | s//\1/ |
15830 | q |
15831 | } |
15832 | /^X\(\/\/\)$/{ |
15833 | s//\1/ |
15834 | q |
15835 | } |
15836 | /^X\(\/\).*/{ |
15837 | s//\1/ |
15838 | q |
15839 | } |
15840 | s/.*/./; q'` |
15841 | as_dir=$dirpart/$fdir; as_fn_mkdir_p |
15842 | # echo "creating $dirpart/$file" |
15843 | echo '# dummy' > "$dirpart/$file" |
15844 | done |
15845 | done |
15846 | } |
15847 | ;; |
15848 | "libtool":C) |
15849 | |
15850 | # See if we are running on zsh, and set the options which allow our |
15851 | # commands through without removal of \ escapes. |
15852 | if test -n "${ZSH_VERSION+set}" ; then |
15853 | setopt NO_GLOB_SUBST |
15854 | fi |
15855 | |
15856 | cfgfile="${ofile}T" |
15857 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
15858 | $RM "$cfgfile" |
15859 | |
15860 | cat <<_LT_EOF >> "$cfgfile" |
15861 | #! $SHELL |
15862 | |
15863 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
15864 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
15865 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
15866 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
15867 | # |
15868 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
15869 | # 2006, 2007, 2008 Free Software Foundation, Inc. |
15870 | # Written by Gordon Matzigkeit, 1996 |
15871 | # |
15872 | # This file is part of GNU Libtool. |
15873 | # |
15874 | # GNU Libtool is free software; you can redistribute it and/or |
15875 | # modify it under the terms of the GNU General Public License as |
15876 | # published by the Free Software Foundation; either version 2 of |
15877 | # the License, or (at your option) any later version. |
15878 | # |
15879 | # As a special exception to the GNU General Public License, |
15880 | # if you distribute this file as part of a program or library that |
15881 | # is built using GNU Libtool, you may include this file under the |
15882 | # same distribution terms that you use for the rest of that program. |
15883 | # |
15884 | # GNU Libtool is distributed in the hope that it will be useful, |
15885 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
15886 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15887 | # GNU General Public License for more details. |
15888 | # |
15889 | # You should have received a copy of the GNU General Public License |
15890 | # along with GNU Libtool; see the file COPYING. If not, a copy |
15891 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or |
15892 | # obtained by writing to the Free Software Foundation, Inc., |
15893 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
15894 | |
15895 | |
15896 | # The names of the tagged configurations supported by this script. |
15897 | available_tags="" |
15898 | |
15899 | # ### BEGIN LIBTOOL CONFIG |
15900 | |
15901 | # Which release of libtool.m4 was used? |
15902 | macro_version=$macro_version |
15903 | macro_revision=$macro_revision |
15904 | |
15905 | # Whether or not to build shared libraries. |
15906 | build_libtool_libs=$enable_shared |
15907 | |
15908 | # Whether or not to build static libraries. |
15909 | build_old_libs=$enable_static |
15910 | |
15911 | # What type of objects to build. |
15912 | pic_mode=$pic_mode |
15913 | |
15914 | # Whether or not to optimize for fast installation. |
15915 | fast_install=$enable_fast_install |
15916 | |
15917 | # The host system. |
15918 | host_alias=$host_alias |
15919 | host=$host |
15920 | host_os=$host_os |
15921 | |
15922 | # The build system. |
15923 | build_alias=$build_alias |
15924 | build=$build |
15925 | build_os=$build_os |
15926 | |
15927 | # A sed program that does not truncate output. |
15928 | SED=$lt_SED |
15929 | |
15930 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
15931 | Xsed="\$SED -e 1s/^X//" |
15932 | |
15933 | # A grep program that handles long lines. |
15934 | GREP=$lt_GREP |
15935 | |
15936 | # An ERE matcher. |
15937 | EGREP=$lt_EGREP |
15938 | |
15939 | # A literal string matcher. |
15940 | FGREP=$lt_FGREP |
15941 | |
15942 | # A BSD- or MS-compatible name lister. |
15943 | NM=$lt_NM |
15944 | |
15945 | # Whether we need soft or hard links. |
15946 | LN_S=$lt_LN_S |
15947 | |
15948 | # What is the maximum length of a command? |
15949 | max_cmd_len=$max_cmd_len |
15950 | |
15951 | # Object file suffix (normally "o"). |
15952 | objext=$ac_objext |
15953 | |
15954 | # Executable file suffix (normally ""). |
15955 | exeext=$exeext |
15956 | |
15957 | # whether the shell understands "unset". |
15958 | lt_unset=$lt_unset |
15959 | |
15960 | # turn spaces into newlines. |
15961 | SP2NL=$lt_lt_SP2NL |
15962 | |
15963 | # turn newlines into spaces. |
15964 | NL2SP=$lt_lt_NL2SP |
15965 | |
15966 | # How to create reloadable object files. |
15967 | reload_flag=$lt_reload_flag |
15968 | reload_cmds=$lt_reload_cmds |
15969 | |
15970 | # An object symbol dumper. |
15971 | OBJDUMP=$lt_OBJDUMP |
15972 | |
15973 | # Method to check whether dependent libraries are shared objects. |
15974 | deplibs_check_method=$lt_deplibs_check_method |
15975 | |
15976 | # Command to use when deplibs_check_method == "file_magic". |
15977 | file_magic_cmd=$lt_file_magic_cmd |
15978 | |
15979 | # The archiver. |
15980 | AR=$lt_AR |
15981 | AR_FLAGS=$lt_AR_FLAGS |
15982 | |
15983 | # A symbol stripping program. |
15984 | STRIP=$lt_STRIP |
15985 | |
15986 | # Commands used to install an old-style archive. |
15987 | RANLIB=$lt_RANLIB |
15988 | old_postinstall_cmds=$lt_old_postinstall_cmds |
15989 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
15990 | |
15991 | # A C compiler. |
15992 | LTCC=$lt_CC |
15993 | |
15994 | # LTCC compiler flags. |
15995 | LTCFLAGS=$lt_CFLAGS |
15996 | |
15997 | # Take the output of nm and produce a listing of raw symbols and C names. |
15998 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
15999 | |
16000 | # Transform the output of nm in a proper C declaration. |
16001 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
16002 | |
16003 | # Transform the output of nm in a C name address pair. |
16004 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
16005 | |
16006 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
16007 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix |
16008 | |
16009 | # The name of the directory that contains temporary libtool files. |
16010 | objdir=$objdir |
16011 | |
16012 | # Shell to use when invoking shell scripts. |
16013 | SHELL=$lt_SHELL |
16014 | |
16015 | # An echo program that does not interpret backslashes. |
16016 | ECHO=$lt_ECHO |
16017 | |
16018 | # Used to examine libraries when file_magic_cmd begins with "file". |
16019 | MAGIC_CMD=$MAGIC_CMD |
16020 | |
16021 | # Must we lock files when doing compilation? |
16022 | need_locks=$lt_need_locks |
16023 | |
16024 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
16025 | DSYMUTIL=$lt_DSYMUTIL |
16026 | |
16027 | # Tool to change global to local symbols on Mac OS X. |
16028 | NMEDIT=$lt_NMEDIT |
16029 | |
16030 | # Tool to manipulate fat objects and archives on Mac OS X. |
16031 | LIPO=$lt_LIPO |
16032 | |
16033 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
16034 | OTOOL=$lt_OTOOL |
16035 | |
16036 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
16037 | OTOOL64=$lt_OTOOL64 |
16038 | |
16039 | # Old archive suffix (normally "a"). |
16040 | libext=$libext |
16041 | |
16042 | # Shared library suffix (normally ".so"). |
16043 | shrext_cmds=$lt_shrext_cmds |
16044 | |
16045 | # The commands to extract the exported symbol list from a shared archive. |
16046 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
16047 | |
16048 | # Variables whose values should be saved in libtool wrapper scripts and |
16049 | # restored at link time. |
16050 | variables_saved_for_relink=$lt_variables_saved_for_relink |
16051 | |
16052 | # Do we need the "lib" prefix for modules? |
16053 | need_lib_prefix=$need_lib_prefix |
16054 | |
16055 | # Do we need a version for libraries? |
16056 | need_version=$need_version |
16057 | |
16058 | # Library versioning type. |
16059 | version_type=$version_type |
16060 | |
16061 | # Shared library runtime path variable. |
16062 | runpath_var=$runpath_var |
16063 | |
16064 | # Shared library path variable. |
16065 | shlibpath_var=$shlibpath_var |
16066 | |
16067 | # Is shlibpath searched before the hard-coded library search path? |
16068 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
16069 | |
16070 | # Format of library name prefix. |
16071 | libname_spec=$lt_libname_spec |
16072 | |
16073 | # List of archive names. First name is the real one, the rest are links. |
16074 | # The last name is the one that the linker finds with -lNAME |
16075 | library_names_spec=$lt_library_names_spec |
16076 | |
16077 | # The coded name of the library, if different from the real name. |
16078 | soname_spec=$lt_soname_spec |
16079 | |
16080 | # Command to use after installation of a shared archive. |
16081 | postinstall_cmds=$lt_postinstall_cmds |
16082 | |
16083 | # Command to use after uninstallation of a shared archive. |
16084 | postuninstall_cmds=$lt_postuninstall_cmds |
16085 | |
16086 | # Commands used to finish a libtool library installation in a directory. |
16087 | finish_cmds=$lt_finish_cmds |
16088 | |
16089 | # As "finish_cmds", except a single script fragment to be evaled but |
16090 | # not shown. |
16091 | finish_eval=$lt_finish_eval |
16092 | |
16093 | # Whether we should hardcode library paths into libraries. |
16094 | hardcode_into_libs=$hardcode_into_libs |
16095 | |
16096 | # Compile-time system search path for libraries. |
16097 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
16098 | |
16099 | # Run-time system search path for libraries. |
16100 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
16101 | |
16102 | # Whether dlopen is supported. |
16103 | dlopen_support=$enable_dlopen |
16104 | |
16105 | # Whether dlopen of programs is supported. |
16106 | dlopen_self=$enable_dlopen_self |
16107 | |
16108 | # Whether dlopen of statically linked programs is supported. |
16109 | dlopen_self_static=$enable_dlopen_self_static |
16110 | |
16111 | # Commands to strip libraries. |
16112 | old_striplib=$lt_old_striplib |
16113 | striplib=$lt_striplib |
16114 | |
16115 | |
16116 | # The linker used to build libraries. |
16117 | LD=$lt_LD |
16118 | |
16119 | # Commands used to build an old-style archive. |
16120 | old_archive_cmds=$lt_old_archive_cmds |
16121 | |
16122 | # A language specific compiler. |
16123 | CC=$lt_compiler |
16124 | |
16125 | # Is the compiler the GNU compiler? |
16126 | with_gcc=$GCC |
16127 | |
16128 | # Compiler flag to turn off builtin functions. |
16129 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
16130 | |
16131 | # How to pass a linker flag through the compiler. |
16132 | wl=$lt_lt_prog_compiler_wl |
16133 | |
16134 | # Additional compiler flags for building library objects. |
16135 | pic_flag=$lt_lt_prog_compiler_pic |
16136 | |
16137 | # Compiler flag to prevent dynamic linking. |
16138 | link_static_flag=$lt_lt_prog_compiler_static |
16139 | |
16140 | # Does compiler simultaneously support -c and -o options? |
16141 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
16142 | |
16143 | # Whether or not to add -lc for building shared libraries. |
16144 | build_libtool_need_lc=$archive_cmds_need_lc |
16145 | |
16146 | # Whether or not to disallow shared libs when runtime libs are static. |
16147 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
16148 | |
16149 | # Compiler flag to allow reflexive dlopens. |
16150 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
16151 | |
16152 | # Compiler flag to generate shared objects directly from archives. |
16153 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
16154 | |
16155 | # Whether the compiler copes with passing no objects directly. |
16156 | compiler_needs_object=$lt_compiler_needs_object |
16157 | |
16158 | # Create an old-style archive from a shared archive. |
16159 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
16160 | |
16161 | # Create a temporary old-style archive to link instead of a shared archive. |
16162 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
16163 | |
16164 | # Commands used to build a shared archive. |
16165 | archive_cmds=$lt_archive_cmds |
16166 | archive_expsym_cmds=$lt_archive_expsym_cmds |
16167 | |
16168 | # Commands used to build a loadable module if different from building |
16169 | # a shared archive. |
16170 | module_cmds=$lt_module_cmds |
16171 | module_expsym_cmds=$lt_module_expsym_cmds |
16172 | |
16173 | # Whether we are building with GNU ld or not. |
16174 | with_gnu_ld=$lt_with_gnu_ld |
16175 | |
16176 | # Flag that allows shared libraries with undefined symbols to be built. |
16177 | allow_undefined_flag=$lt_allow_undefined_flag |
16178 | |
16179 | # Flag that enforces no undefined symbols. |
16180 | no_undefined_flag=$lt_no_undefined_flag |
16181 | |
16182 | # Flag to hardcode \$libdir into a binary during linking. |
16183 | # This must work even if \$libdir does not exist |
16184 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
16185 | |
16186 | # If ld is used when linking, flag to hardcode \$libdir into a binary |
16187 | # during linking. This must work even if \$libdir does not exist. |
16188 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
16189 | |
16190 | # Whether we need a single "-rpath" flag with a separated argument. |
16191 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
16192 | |
16193 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
16194 | # DIR into the resulting binary. |
16195 | hardcode_direct=$hardcode_direct |
16196 | |
16197 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
16198 | # DIR into the resulting binary and the resulting library dependency is |
16199 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the |
16200 | # library is relocated. |
16201 | hardcode_direct_absolute=$hardcode_direct_absolute |
16202 | |
16203 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
16204 | # into the resulting binary. |
16205 | hardcode_minus_L=$hardcode_minus_L |
16206 | |
16207 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
16208 | # into the resulting binary. |
16209 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
16210 | |
16211 | # Set to "yes" if building a shared library automatically hardcodes DIR |
16212 | # into the library and all subsequent libraries and executables linked |
16213 | # against it. |
16214 | hardcode_automatic=$hardcode_automatic |
16215 | |
16216 | # Set to yes if linker adds runtime paths of dependent libraries |
16217 | # to runtime path list. |
16218 | inherit_rpath=$inherit_rpath |
16219 | |
16220 | # Whether libtool must link a program against all its dependency libraries. |
16221 | link_all_deplibs=$link_all_deplibs |
16222 | |
16223 | # Fix the shell variable \$srcfile for the compiler. |
16224 | fix_srcfile_path=$lt_fix_srcfile_path |
16225 | |
16226 | # Set to "yes" if exported symbols are required. |
16227 | always_export_symbols=$always_export_symbols |
16228 | |
16229 | # The commands to list exported symbols. |
16230 | export_symbols_cmds=$lt_export_symbols_cmds |
16231 | |
16232 | # Symbols that should not be listed in the preloaded symbols. |
16233 | exclude_expsyms=$lt_exclude_expsyms |
16234 | |
16235 | # Symbols that must always be exported. |
16236 | include_expsyms=$lt_include_expsyms |
16237 | |
16238 | # Commands necessary for linking programs (against libraries) with templates. |
16239 | prelink_cmds=$lt_prelink_cmds |
16240 | |
16241 | # Specify filename containing input files. |
16242 | file_list_spec=$lt_file_list_spec |
16243 | |
16244 | # How to hardcode a shared library path into an executable. |
16245 | hardcode_action=$hardcode_action |
16246 | |
16247 | # ### END LIBTOOL CONFIG |
16248 | |
16249 | _LT_EOF |
16250 | |
16251 | case $host_os in |
16252 | aix3*) |
16253 | cat <<\_LT_EOF >> "$cfgfile" |
16254 | # AIX sometimes has problems with the GCC collect2 program. For some |
16255 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
16256 | # vanish in a puff of smoke. |
16257 | if test "X${COLLECT_NAMES+set}" != Xset; then |
16258 | COLLECT_NAMES= |
16259 | export COLLECT_NAMES |
16260 | fi |
16261 | _LT_EOF |
16262 | ;; |
16263 | esac |
16264 | |
16265 | |
16266 | ltmain="$ac_aux_dir/ltmain.sh" |
16267 | |
16268 | |
16269 | # We use sed instead of cat because bash on DJGPP gets confused if |
16270 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
16271 | # text mode, it properly converts lines to CR/LF. This bash problem |
16272 | # is reportedly fixed, but why not run on old versions too? |
16273 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ |
16274 | || (rm -f "$cfgfile"; exit 1) |
16275 | |
16276 | case $xsi_shell in |
16277 | yes) |
16278 | cat << \_LT_EOF >> "$cfgfile" |
16279 | |
16280 | # func_dirname file append nondir_replacement |
16281 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, |
16282 | # otherwise set result to NONDIR_REPLACEMENT. |
16283 | func_dirname () |
16284 | { |
16285 | case ${1} in |
16286 | */*) func_dirname_result="${1%/*}${2}" ;; |
16287 | * ) func_dirname_result="${3}" ;; |
16288 | esac |
16289 | } |
16290 | |
16291 | # func_basename file |
16292 | func_basename () |
16293 | { |
16294 | func_basename_result="${1##*/}" |
16295 | } |
16296 | |
16297 | # func_dirname_and_basename file append nondir_replacement |
16298 | # perform func_basename and func_dirname in a single function |
16299 | # call: |
16300 | # dirname: Compute the dirname of FILE. If nonempty, |
16301 | # add APPEND to the result, otherwise set result |
16302 | # to NONDIR_REPLACEMENT. |
16303 | # value returned in "$func_dirname_result" |
16304 | # basename: Compute filename of FILE. |
16305 | # value retuned in "$func_basename_result" |
16306 | # Implementation must be kept synchronized with func_dirname |
16307 | # and func_basename. For efficiency, we do not delegate to |
16308 | # those functions but instead duplicate the functionality here. |
16309 | func_dirname_and_basename () |
16310 | { |
16311 | case ${1} in |
16312 | */*) func_dirname_result="${1%/*}${2}" ;; |
16313 | * ) func_dirname_result="${3}" ;; |
16314 | esac |
16315 | func_basename_result="${1##*/}" |
16316 | } |
16317 | |
16318 | # func_stripname prefix suffix name |
16319 | # strip PREFIX and SUFFIX off of NAME. |
16320 | # PREFIX and SUFFIX must not contain globbing or regex special |
16321 | # characters, hashes, percent signs, but SUFFIX may contain a leading |
16322 | # dot (in which case that matches only a dot). |
16323 | func_stripname () |
16324 | { |
16325 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are |
16326 | # positional parameters, so assign one to ordinary parameter first. |
16327 | func_stripname_result=${3} |
16328 | func_stripname_result=${func_stripname_result#"${1}"} |
16329 | func_stripname_result=${func_stripname_result%"${2}"} |
16330 | } |
16331 | |
16332 | # func_opt_split |
16333 | func_opt_split () |
16334 | { |
16335 | func_opt_split_opt=${1%%=*} |
16336 | func_opt_split_arg=${1#*=} |
16337 | } |
16338 | |
16339 | # func_lo2o object |
16340 | func_lo2o () |
16341 | { |
16342 | case ${1} in |
16343 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; |
16344 | *) func_lo2o_result=${1} ;; |
16345 | esac |
16346 | } |
16347 | |
16348 | # func_xform libobj-or-source |
16349 | func_xform () |
16350 | { |
16351 | func_xform_result=${1%.*}.lo |
16352 | } |
16353 | |
16354 | # func_arith arithmetic-term... |
16355 | func_arith () |
16356 | { |
16357 | func_arith_result=$(( $* )) |
16358 | } |
16359 | |
16360 | # func_len string |
16361 | # STRING may not start with a hyphen. |
16362 | func_len () |
16363 | { |
16364 | func_len_result=${#1} |
16365 | } |
16366 | |
16367 | _LT_EOF |
16368 | ;; |
16369 | *) # Bourne compatible functions. |
16370 | cat << \_LT_EOF >> "$cfgfile" |
16371 | |
16372 | # func_dirname file append nondir_replacement |
16373 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, |
16374 | # otherwise set result to NONDIR_REPLACEMENT. |
16375 | func_dirname () |
16376 | { |
16377 | # Extract subdirectory from the argument. |
16378 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` |
16379 | if test "X$func_dirname_result" = "X${1}"; then |
16380 | func_dirname_result="${3}" |
16381 | else |
16382 | func_dirname_result="$func_dirname_result${2}" |
16383 | fi |
16384 | } |
16385 | |
16386 | # func_basename file |
16387 | func_basename () |
16388 | { |
16389 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` |
16390 | } |
16391 | |
16392 | |
16393 | # func_stripname prefix suffix name |
16394 | # strip PREFIX and SUFFIX off of NAME. |
16395 | # PREFIX and SUFFIX must not contain globbing or regex special |
16396 | # characters, hashes, percent signs, but SUFFIX may contain a leading |
16397 | # dot (in which case that matches only a dot). |
16398 | # func_strip_suffix prefix name |
16399 | func_stripname () |
16400 | { |
16401 | case ${2} in |
16402 | .*) func_stripname_result=`$ECHO "X${3}" \ |
16403 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; |
16404 | *) func_stripname_result=`$ECHO "X${3}" \ |
16405 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; |
16406 | esac |
16407 | } |
16408 | |
16409 | # sed scripts: |
16410 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' |
16411 | my_sed_long_arg='1s/^-[^=]*=//' |
16412 | |
16413 | # func_opt_split |
16414 | func_opt_split () |
16415 | { |
16416 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` |
16417 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` |
16418 | } |
16419 | |
16420 | # func_lo2o object |
16421 | func_lo2o () |
16422 | { |
16423 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` |
16424 | } |
16425 | |
16426 | # func_xform libobj-or-source |
16427 | func_xform () |
16428 | { |
16429 | func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` |
16430 | } |
16431 | |
16432 | # func_arith arithmetic-term... |
16433 | func_arith () |
16434 | { |
16435 | func_arith_result=`expr "$@"` |
16436 | } |
16437 | |
16438 | # func_len string |
16439 | # STRING may not start with a hyphen. |
16440 | func_len () |
16441 | { |
16442 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` |
16443 | } |
16444 | |
16445 | _LT_EOF |
16446 | esac |
16447 | |
16448 | case $lt_shell_append in |
16449 | yes) |
16450 | cat << \_LT_EOF >> "$cfgfile" |
16451 | |
16452 | # func_append var value |
16453 | # Append VALUE to the end of shell variable VAR. |
16454 | func_append () |
16455 | { |
16456 | eval "$1+=\$2" |
16457 | } |
16458 | _LT_EOF |
16459 | ;; |
16460 | *) |
16461 | cat << \_LT_EOF >> "$cfgfile" |
16462 | |
16463 | # func_append var value |
16464 | # Append VALUE to the end of shell variable VAR. |
16465 | func_append () |
16466 | { |
16467 | eval "$1=\$$1\$2" |
16468 | } |
16469 | |
16470 | _LT_EOF |
16471 | ;; |
16472 | esac |
16473 | |
16474 | |
16475 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ |
16476 | || (rm -f "$cfgfile"; exit 1) |
16477 | |
16478 | mv -f "$cfgfile" "$ofile" || |
16479 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
16480 | chmod +x "$ofile" |
16481 | |
16482 | ;; |
16483 | |
16484 | esac |
16485 | done # for ac_tag |
16486 | |
16487 | |
16488 | as_fn_exit 0 |
16489 | _ACEOF |
16490 | ac_clean_files=$ac_clean_files_save |
16491 | |
16492 | test $ac_write_fail = 0 || |
16493 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
16494 | |
16495 | |
16496 | # configure is writing to config.log, and then calls config.status. |
16497 | # config.status does its own redirection, appending to config.log. |
16498 | # Unfortunately, on DOS this fails, as config.log is still kept open |
16499 | # by configure, so config.status won't be able to write to it; its |
16500 | # output is simply discarded. So we exec the FD to /dev/null, |
16501 | # effectively closing config.log, so it can be properly (re)opened and |
16502 | # appended to by config.status. When coming back to configure, we |
16503 | # need to make the FD available again. |
16504 | if test "$no_create" != yes; then |
16505 | ac_cs_success=: |
16506 | ac_config_status_args= |
16507 | test "$silent" = yes && |
16508 | ac_config_status_args="$ac_config_status_args --quiet" |
16509 | exec 5>/dev/null |
16510 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
16511 | exec 5>>config.log |
16512 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
16513 | # would make configure fail if this is the last instruction. |
16514 | $ac_cs_success || as_fn_exit 1 |
16515 | fi |
16516 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
16517 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
16518 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
16519 | fi |
16520 | |
16521 | |
16522 | if test "${with_fuse}" = "external"; then |
16523 | if ! echo "x$FUSE_LIB_PATH" | grep -- "x-L/lib" > /dev/null; then |
16524 | cat <<EOF |
16525 | **************************************************************************** |
16526 | * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING * |
16527 | * The FUSE user space binaries were NOT installed with root directory * |
16528 | * executable prefix. This means that automounting NTFS volumes during boot * |
16529 | * could fail. This can be fixed the below way by reinstalling FUSE using * |
16530 | * the right 'configure' option during FUSE compilation: * |
16531 | * ./configure --exec-prefix=/ * |
16532 | * make && sudo make install * |
16533 | * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING * |
16534 | **************************************************************************** |
16535 | EOF |
16536 | fi |
16537 | fi |
16538 | |
16539 | echo "You can type now 'make' to build ntfs-3g." |
16540 | |
16541 |