Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for ntfs-3g 2026.2.25.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 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 case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as 'sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed 'exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177 esac
178 fi
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
182 test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187
188 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
189 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192 PATH=/empty FPATH=/empty; export PATH FPATH
193 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
194 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
195 test \$(( 1 + 1 )) = 2 || exit 1"
196 if (eval "$as_required") 2>/dev/null
197 then :
198 as_have_required=yes
199 else case e in #(
200 e) as_have_required=no ;;
201 esac
202 fi
203 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
204 then :
205
206 else case e in #(
207 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
208 as_found=false
209 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
210 do
211 IFS=$as_save_IFS
212 case $as_dir in #(((
213 '') as_dir=./ ;;
214 */) ;;
215 *) as_dir=$as_dir/ ;;
216 esac
217 as_found=:
218 case $as_dir in #(
219 /*)
220 for as_base in sh bash ksh sh5; do
221 # Try only shells that exist, to save several forks.
222 as_shell=$as_dir$as_base
223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
224 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
225 then :
226 CONFIG_SHELL=$as_shell as_have_required=yes
227 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
228 then :
229 break 2
230 fi
231 fi
232 done;;
233 esac
234 as_found=false
235 done
236 IFS=$as_save_IFS
237 if $as_found
238 then :
239
240 else case e in #(
241 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
243 then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
245 fi ;;
246 esac
247 fi
248
249
250 if test "x$CONFIG_SHELL" != x
251 then :
252 export CONFIG_SHELL
253 # We cannot yet assume a decent shell, so we have to provide a
254 # neutralization value for shells without unset; and this also
255 # works around shells that cannot unset nonexistent variables.
256 # Preserve -v and -x to the replacement shell.
257 BASH_ENV=/dev/null
258 ENV=/dev/null
259 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
260 case $- in # ((((
261 *v*x* | *x*v* ) as_opts=-vx ;;
262 *v* ) as_opts=-v ;;
263 *x* ) as_opts=-x ;;
264 * ) as_opts= ;;
265 esac
266 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
267 # Admittedly, this is quite paranoid, since all the known shells bail
268 # out after a failed 'exec'.
269 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
270 exit 255
271 fi
272
273 if test x$as_have_required = xno
274 then :
275 printf "%s\n" "$0: This script requires a shell more modern than all"
276 printf "%s\n" "$0: the shells that I found on your system."
277 if test ${ZSH_VERSION+y} ; then
278 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
279 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
280 else
281 printf "%s\n" "$0: Please tell [email protected] and
282 $0: [email protected] about your system, including
283 $0: any error possibly output before this message. Then
284 $0: install a modern shell, or manually run the script
285 $0: under such a shell if you do have one."
286 fi
287 exit 1
288 fi ;;
289 esac
290 fi
291 fi
292 SHELL=${CONFIG_SHELL-/bin/sh}
293 export SHELL
294 # Unset more variables known to interfere with behavior of common tools.
295 CLICOLOR_FORCE= GREP_OPTIONS=
296 unset CLICOLOR_FORCE GREP_OPTIONS
297
298 ## --------------------- ##
299 ## M4sh Shell Functions. ##
300 ## --------------------- ##
301 # as_fn_unset VAR
302 # ---------------
303 # Portably unset VAR.
304 as_fn_unset ()
305 {
306 { eval $1=; unset $1;}
307 }
308 as_unset=as_fn_unset
309
310
311 # as_fn_set_status STATUS
312 # -----------------------
313 # Set $? to STATUS, without forking.
314 as_fn_set_status ()
315 {
316 return $1
317 } # as_fn_set_status
318
319 # as_fn_exit STATUS
320 # -----------------
321 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 as_fn_exit ()
323 {
324 set +e
325 as_fn_set_status $1
326 exit $1
327 } # as_fn_exit
328
329 # as_fn_mkdir_p
330 # -------------
331 # Create "$as_dir" as a directory, including parents if necessary.
332 as_fn_mkdir_p ()
333 {
334
335 case $as_dir in #(
336 -*) as_dir=./$as_dir;;
337 esac
338 test -d "$as_dir" || eval $as_mkdir_p || {
339 as_dirs=
340 while :; do
341 case $as_dir in #(
342 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
343 *) as_qdir=$as_dir;;
344 esac
345 as_dirs="'$as_qdir' $as_dirs"
346 as_dir=`$as_dirname -- "$as_dir" ||
347 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
348 X"$as_dir" : 'X\(//\)[^/]' \| \
349 X"$as_dir" : 'X\(//\)$' \| \
350 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
351 printf "%s\n" X"$as_dir" |
352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
353 s//\1/
354 q
355 }
356 /^X\(\/\/\)[^/].*/{
357 s//\1/
358 q
359 }
360 /^X\(\/\/\)$/{
361 s//\1/
362 q
363 }
364 /^X\(\/\).*/{
365 s//\1/
366 q
367 }
368 s/.*/./; q'`
369 test -d "$as_dir" && break
370 done
371 test -z "$as_dirs" || eval "mkdir $as_dirs"
372 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
373
374
375 } # as_fn_mkdir_p
376
377 # as_fn_executable_p FILE
378 # -----------------------
379 # Test if FILE is an executable regular file.
380 as_fn_executable_p ()
381 {
382 test -f "$1" && test -x "$1"
383 } # as_fn_executable_p
384 # as_fn_append VAR VALUE
385 # ----------------------
386 # Append the text in VALUE to the end of the definition contained in VAR. Take
387 # advantage of any shell optimizations that allow amortized linear growth over
388 # repeated appends, instead of the typical quadratic growth present in naive
389 # implementations.
390 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
391 then :
392 eval 'as_fn_append ()
393 {
394 eval $1+=\$2
395 }'
396 else case e in #(
397 e) as_fn_append ()
398 {
399 eval $1=\$$1\$2
400 } ;;
401 esac
402 fi # as_fn_append
403
404 # as_fn_arith ARG...
405 # ------------------
406 # Perform arithmetic evaluation on the ARGs, and store the result in the
407 # global $as_val. Take advantage of shells that can avoid forks. The arguments
408 # must be portable across $(()) and expr.
409 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
410 then :
411 eval 'as_fn_arith ()
412 {
413 as_val=$(( $* ))
414 }'
415 else case e in #(
416 e) as_fn_arith ()
417 {
418 as_val=`expr "$@" || test $? -eq 1`
419 } ;;
420 esac
421 fi # as_fn_arith
422
423
424 # as_fn_error STATUS ERROR [LINENO LOG_FD]
425 # ----------------------------------------
426 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
427 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
428 # script with STATUS, using 1 if that was 0.
429 as_fn_error ()
430 {
431 as_status=$1; test $as_status -eq 0 && as_status=1
432 if test "$4"; then
433 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
435 fi
436 printf "%s\n" "$as_me: error: $2" >&2
437 as_fn_exit $as_status
438 } # as_fn_error
439
440 if expr a : '\(a\)' >/dev/null 2>&1 &&
441 test "X`expr 00001 : '.*\(...\)'`" = X001; then
442 as_expr=expr
443 else
444 as_expr=false
445 fi
446
447 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
448 as_basename=basename
449 else
450 as_basename=false
451 fi
452
453 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
454 as_dirname=dirname
455 else
456 as_dirname=false
457 fi
458
459 as_me=`$as_basename -- "$0" ||
460 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
461 X"$0" : 'X\(//\)$' \| \
462 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
463 printf "%s\n" X/"$0" |
464 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 s//\1/
466 q
467 }
468 /^X\/\(\/\/\)$/{
469 s//\1/
470 q
471 }
472 /^X\/\(\/\).*/{
473 s//\1/
474 q
475 }
476 s/.*/./; q'`
477
478 # Avoid depending upon Character Ranges.
479 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
480 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
481 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
482 as_cr_digits='0123456789'
483 as_cr_alnum=$as_cr_Letters$as_cr_digits
484
485
486 as_lineno_1=$LINENO as_lineno_1a=$LINENO
487 as_lineno_2=$LINENO as_lineno_2a=$LINENO
488 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
489 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
490 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
491 sed -n '
492 p
493 /[$]LINENO/=
494 ' <$as_myself |
495 sed '
496 t clear
497 :clear
498 s/[$]LINENO.*/&-/
499 t lineno
500 b
501 :lineno
502 N
503 :loop
504 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
505 t loop
506 s/-\n.*//
507 ' >$as_me.lineno &&
508 chmod +x "$as_me.lineno" ||
509 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
510
511 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
512 # already done that, so ensure we don't try to do so again and fall
513 # in an infinite loop. This has already happened in practice.
514 _as_can_reexec=no; export _as_can_reexec
515 # Don't try to exec as it changes $[0], causing all sort of problems
516 # (the dirname of $[0] is not the place where we might find the
517 # original and so on. Autoconf is especially sensitive to this).
518 . "./$as_me.lineno"
519 # Exit status is that of the last command.
520 exit
521 }
522
523
524 # Determine whether it's possible to make 'echo' print without a newline.
525 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
526 # for compatibility with existing Makefiles.
527 ECHO_C= ECHO_N= ECHO_T=
528 case `echo -n x` in #(((((
529 -n*)
530 case `echo 'xy\c'` in
531 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
532 xy) ECHO_C='\c';;
533 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
534 ECHO_T=' ';;
535 esac;;
536 *)
537 ECHO_N='-n';;
538 esac
539
540 # For backward compatibility with old third-party macros, we provide
541 # the shell variables $as_echo and $as_echo_n. New code should use
542 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
543 as_echo='printf %s\n'
544 as_echo_n='printf %s'
545
546 rm -f conf$$ conf$$.exe conf$$.file
547 if test -d conf$$.dir; then
548 rm -f conf$$.dir/conf$$.file
549 else
550 rm -f conf$$.dir
551 mkdir conf$$.dir 2>/dev/null
552 fi
553 if (echo >conf$$.file) 2>/dev/null; then
554 if ln -s conf$$.file conf$$ 2>/dev/null; then
555 as_ln_s='ln -s'
556 # ... but there are two gotchas:
557 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
558 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
559 # In both cases, we have to default to 'cp -pR'.
560 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
561 as_ln_s='cp -pR'
562 elif ln conf$$.file conf$$ 2>/dev/null; then
563 as_ln_s=ln
564 else
565 as_ln_s='cp -pR'
566 fi
567 else
568 as_ln_s='cp -pR'
569 fi
570 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
571 rmdir conf$$.dir 2>/dev/null
572
573 if mkdir -p . 2>/dev/null; then
574 as_mkdir_p='mkdir -p "$as_dir"'
575 else
576 test -d ./-p && rmdir ./-p
577 as_mkdir_p=false
578 fi
579
580 as_test_x='test -x'
581 as_executable_p=as_fn_executable_p
582
583 # Sed expression to map a string onto a valid CPP name.
584 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
585 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
586
587 # Sed expression to map a string onto a valid variable name.
588 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
589 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
590
591 SHELL=${CONFIG_SHELL-/bin/sh}
592
593
594 test -n "$DJDIR" || exec 7<&0 </dev/null
595 exec 6>&1
596
597 # Name of the host.
598 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
599 # so uname gets run too.
600 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
601
602 #
603 # Initializations.
604 #
605 ac_default_prefix=/usr/local
606 ac_clean_files=
607 ac_config_libobj_dir=.
608 LIBOBJS=
609 cross_compiling=no
610 subdirs=
611 MFLAGS=
612 MAKEFLAGS=
613
614 # Identity of this package.
615 PACKAGE_NAME='ntfs-3g'
616 PACKAGE_TARNAME='ntfs-3g'
617 PACKAGE_VERSION='2026.2.25'
618 PACKAGE_STRING='ntfs-3g 2026.2.25'
619 PACKAGE_BUGREPORT='[email protected]'
620 PACKAGE_URL=''
621
622 ac_unique_file="src/ntfs-3g.c"
623 # Factoring default headers for most tests.
624 ac_includes_default="\
625 #include <stddef.h>
626 #ifdef HAVE_STDIO_H
627 # include <stdio.h>
628 #endif
629 #ifdef HAVE_STDLIB_H
630 # include <stdlib.h>
631 #endif
632 #ifdef HAVE_STRING_H
633 # include <string.h>
634 #endif
635 #ifdef HAVE_INTTYPES_H
636 # include <inttypes.h>
637 #endif
638 #ifdef HAVE_STDINT_H
639 # include <stdint.h>
640 #endif
641 #ifdef HAVE_STRINGS_H
642 # include <strings.h>
643 #endif
644 #ifdef HAVE_SYS_TYPES_H
645 # include <sys/types.h>
646 #endif
647 #ifdef HAVE_SYS_STAT_H
648 # include <sys/stat.h>
649 #endif
650 #ifdef HAVE_UNISTD_H
651 # include <unistd.h>
652 #endif"
653
654 ac_header_c_list=
655 ac_func_c_list=
656 enable_year2038=no
657 ac_subst_vars='am__EXEEXT_FALSE
658 am__EXEEXT_TRUE
659 LTLIBOBJS
660 DISABLE_PLUGINS_FALSE
661 DISABLE_PLUGINS_TRUE
662 ENABLE_QUARANTINED_FALSE
663 ENABLE_QUARANTINED_TRUE
664 ENABLE_EXTRAS_FALSE
665 ENABLE_EXTRAS_TRUE
666 ENABLE_NTFSPROGS_FALSE
667 ENABLE_NTFSPROGS_TRUE
668 ENABLE_NTFS_3G_FALSE
669 ENABLE_NTFS_3G_TRUE
670 ENABLE_MOUNT_HELPER_FALSE
671 ENABLE_MOUNT_HELPER_TRUE
672 INSTALL_LIBRARY_FALSE
673 INSTALL_LIBRARY_TRUE
674 REALLYSTATIC_FALSE
675 REALLYSTATIC_TRUE
676 RUN_LDCONFIG_FALSE
677 RUN_LDCONFIG_TRUE
678 NTFS_DEVICE_DEFAULT_IO_OPS_FALSE
679 NTFS_DEVICE_DEFAULT_IO_OPS_TRUE
680 WINDOWS_FALSE
681 WINDOWS_TRUE
682 GENERATE_LDSCRIPT_FALSE
683 GENERATE_LDSCRIPT_TRUE
684 FUSE_INTERNAL_FALSE
685 FUSE_INTERNAL_TRUE
686 OUTPUT_FORMAT
687 NTFSPROGS_STATIC_LIBS
688 LIBNTFS_LIBS
689 LIBNTFS_CPPFLAGS
690 MKNTFS_LIBS
691 MKNTFS_CPPFLAGS
692 LIBFUSE_LITE_LIBS
693 LIBFUSE_LITE_CFLAGS
694 LIBNTFS_3G_VERSION
695 rootlibdir
696 rootsbindir
697 rootbindir
698 ntfs3gincludedir
699 pkgconfigdir
700 LIBDL
701 LIBOBJS
702 all_libraries
703 all_includes
704 ENABLE_CRYPTO_FALSE
705 ENABLE_CRYPTO_TRUE
706 GNUTLS_LIBS
707 GNUTLS_CFLAGS
708 LIBGCRYPT_LIBS
709 LIBGCRYPT_CFLAGS
710 LIBGCRYPT_CONFIG
711 GPGRT_CONFIG
712 FUSE_MODULE_LIBS
713 FUSE_MODULE_CFLAGS
714 LDCONFIG
715 RM
716 MV
717 PKG_CONFIG_LIBDIR
718 PKG_CONFIG_PATH
719 PKG_CONFIG
720 LT_SYS_LIBRARY_PATH
721 OTOOL64
722 OTOOL
723 LIPO
724 NMEDIT
725 DSYMUTIL
726 MANIFEST_TOOL
727 RANLIB
728 ac_ct_AR
729 AR
730 DLLTOOL
731 OBJDUMP
732 FILECMD
733 NM
734 ac_ct_DUMPBIN
735 DUMPBIN
736 LD
737 FGREP
738 EGREP
739 GREP
740 SED
741 LIBTOOL
742 LN_S
743 am__fastdepCC_FALSE
744 am__fastdepCC_TRUE
745 CCDEPMODE
746 am__nodep
747 AMDEPBACKSLASH
748 AMDEP_FALSE
749 AMDEP_TRUE
750 am__include
751 DEPDIR
752 OBJEXT
753 EXEEXT
754 ac_ct_CC
755 CPPFLAGS
756 LDFLAGS
757 CFLAGS
758 CC
759 MAINT
760 MAINTAINER_MODE_FALSE
761 MAINTAINER_MODE_TRUE
762 am__xargs_n
763 am__rm_f_notfound
764 AM_BACKSLASH
765 AM_DEFAULT_VERBOSITY
766 AM_DEFAULT_V
767 AM_V
768 CSCOPE
769 ETAGS
770 CTAGS
771 am__untar
772 am__tar
773 AMTAR
774 am__leading_dot
775 SET_MAKE
776 AWK
777 mkdir_p
778 MKDIR_P
779 INSTALL_STRIP_PROGRAM
780 STRIP
781 install_sh
782 MAKEINFO
783 AUTOHEADER
784 AUTOMAKE
785 AUTOCONF
786 ACLOCAL
787 VERSION
788 PACKAGE
789 CYGPATH_W
790 am__isrc
791 INSTALL_DATA
792 INSTALL_SCRIPT
793 INSTALL_PROGRAM
794 target_os
795 target_vendor
796 target_cpu
797 target
798 host_os
799 host_vendor
800 host_cpu
801 host
802 build_os
803 build_vendor
804 build_cpu
805 build
806 target_alias
807 host_alias
808 build_alias
809 LIBS
810 ECHO_T
811 ECHO_N
812 ECHO_C
813 DEFS
814 mandir
815 localedir
816 libdir
817 psdir
818 pdfdir
819 dvidir
820 htmldir
821 infodir
822 docdir
823 oldincludedir
824 includedir
825 runstatedir
826 localstatedir
827 sharedstatedir
828 sysconfdir
829 datadir
830 datarootdir
831 libexecdir
832 sbindir
833 bindir
834 program_transform_name
835 prefix
836 exec_prefix
837 PACKAGE_URL
838 PACKAGE_BUGREPORT
839 PACKAGE_STRING
840 PACKAGE_VERSION
841 PACKAGE_TARNAME
842 PACKAGE_NAME
843 PATH_SEPARATOR
844 SHELL
845 am__quote'
846 ac_subst_files=''
847 ac_user_opts='
848 enable_option_checking
849 enable_silent_rules
850 enable_maintainer_mode
851 enable_debug
852 enable_warnings
853 enable_pedantic
854 enable_really_static
855 enable_mount_helper
856 enable_ldscript
857 enable_ldconfig
858 enable_library
859 enable_mtab
860 enable_posix_acls
861 enable_xattr_mappings
862 enable_plugins
863 enable_device_default_io_ops
864 enable_ntfs_3g
865 enable_ntfsprogs
866 enable_crypto
867 enable_extras
868 enable_quarantined
869 enable_nfconv
870 enable_dependency_tracking
871 enable_shared
872 enable_static
873 enable_pic
874 with_pic
875 enable_fast_install
876 enable_aix_soname
877 with_aix_soname
878 with_gnu_ld
879 with_sysroot
880 enable_libtool_lock
881 with_fuse
882 with_libgcrypt_prefix
883 with_uuid
884 with_hd
885 enable_largefile
886 enable_year2038
887 '
888 ac_precious_vars='build_alias
889 host_alias
890 target_alias
891 CC
892 CFLAGS
893 LDFLAGS
894 LIBS
895 CPPFLAGS
896 LT_SYS_LIBRARY_PATH
897 PKG_CONFIG
898 PKG_CONFIG_PATH
899 PKG_CONFIG_LIBDIR
900 LDCONFIG
901 FUSE_MODULE_CFLAGS
902 FUSE_MODULE_LIBS
903 GNUTLS_CFLAGS
904 GNUTLS_LIBS'
905
906
907 # Initialize some variables set by options.
908 ac_init_help=
909 ac_init_version=false
910 ac_unrecognized_opts=
911 ac_unrecognized_sep=
912 # The variables have the same names as the options, with
913 # dashes changed to underlines.
914 cache_file=/dev/null
915 exec_prefix=NONE
916 no_create=
917 no_recursion=
918 prefix=NONE
919 program_prefix=NONE
920 program_suffix=NONE
921 program_transform_name=s,x,x,
922 silent=
923 site=
924 srcdir=
925 verbose=
926 x_includes=NONE
927 x_libraries=NONE
928
929 # Installation directory options.
930 # These are left unexpanded so users can "make install exec_prefix=/foo"
931 # and all the variables that are supposed to be based on exec_prefix
932 # by default will actually change.
933 # Use braces instead of parens because sh, perl, etc. also accept them.
934 # (The list follows the same order as the GNU Coding Standards.)
935 bindir='${exec_prefix}/bin'
936 sbindir='${exec_prefix}/sbin'
937 libexecdir='${exec_prefix}/libexec'
938 datarootdir='${prefix}/share'
939 datadir='${datarootdir}'
940 sysconfdir='${prefix}/etc'
941 sharedstatedir='${prefix}/com'
942 localstatedir='${prefix}/var'
943 runstatedir='${localstatedir}/run'
944 includedir='${prefix}/include'
945 oldincludedir='/usr/include'
946 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
947 infodir='${datarootdir}/info'
948 htmldir='${docdir}'
949 dvidir='${docdir}'
950 pdfdir='${docdir}'
951 psdir='${docdir}'
952 libdir='${exec_prefix}/lib'
953 localedir='${datarootdir}/locale'
954 mandir='${datarootdir}/man'
955
956 ac_prev=
957 ac_dashdash=
958 for ac_option
959 do
960 # If the previous option needs an argument, assign it.
961 if test -n "$ac_prev"; then
962 eval $ac_prev=\$ac_option
963 ac_prev=
964 continue
965 fi
966
967 case $ac_option in
968 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
969 *=) ac_optarg= ;;
970 *) ac_optarg=yes ;;
971 esac
972
973 case $ac_dashdash$ac_option in
974 --)
975 ac_dashdash=yes ;;
976
977 -bindir | --bindir | --bindi | --bind | --bin | --bi)
978 ac_prev=bindir ;;
979 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
980 bindir=$ac_optarg ;;
981
982 -build | --build | --buil | --bui | --bu)
983 ac_prev=build_alias ;;
984 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
985 build_alias=$ac_optarg ;;
986
987 -cache-file | --cache-file | --cache-fil | --cache-fi \
988 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
989 ac_prev=cache_file ;;
990 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
991 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
992 cache_file=$ac_optarg ;;
993
994 --config-cache | -C)
995 cache_file=config.cache ;;
996
997 -datadir | --datadir | --datadi | --datad)
998 ac_prev=datadir ;;
999 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1000 datadir=$ac_optarg ;;
1001
1002 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1003 | --dataroo | --dataro | --datar)
1004 ac_prev=datarootdir ;;
1005 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1006 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1007 datarootdir=$ac_optarg ;;
1008
1009 -disable-* | --disable-*)
1010 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1011 # Reject names that are not valid shell variable names.
1012 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1013 as_fn_error $? "invalid feature name: '$ac_useropt'"
1014 ac_useropt_orig=$ac_useropt
1015 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1016 case $ac_user_opts in
1017 *"
1018 "enable_$ac_useropt"
1019 "*) ;;
1020 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1021 ac_unrecognized_sep=', ';;
1022 esac
1023 eval enable_$ac_useropt=no ;;
1024
1025 -docdir | --docdir | --docdi | --doc | --do)
1026 ac_prev=docdir ;;
1027 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1028 docdir=$ac_optarg ;;
1029
1030 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1031 ac_prev=dvidir ;;
1032 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1033 dvidir=$ac_optarg ;;
1034
1035 -enable-* | --enable-*)
1036 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1037 # Reject names that are not valid shell variable names.
1038 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1039 as_fn_error $? "invalid feature name: '$ac_useropt'"
1040 ac_useropt_orig=$ac_useropt
1041 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1042 case $ac_user_opts in
1043 *"
1044 "enable_$ac_useropt"
1045 "*) ;;
1046 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1047 ac_unrecognized_sep=', ';;
1048 esac
1049 eval enable_$ac_useropt=\$ac_optarg ;;
1050
1051 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1052 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1053 | --exec | --exe | --ex)
1054 ac_prev=exec_prefix ;;
1055 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1056 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1057 | --exec=* | --exe=* | --ex=*)
1058 exec_prefix=$ac_optarg ;;
1059
1060 -gas | --gas | --ga | --g)
1061 # Obsolete; use --with-gas.
1062 with_gas=yes ;;
1063
1064 -help | --help | --hel | --he | -h)
1065 ac_init_help=long ;;
1066 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1067 ac_init_help=recursive ;;
1068 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1069 ac_init_help=short ;;
1070
1071 -host | --host | --hos | --ho)
1072 ac_prev=host_alias ;;
1073 -host=* | --host=* | --hos=* | --ho=*)
1074 host_alias=$ac_optarg ;;
1075
1076 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1077 ac_prev=htmldir ;;
1078 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1079 | --ht=*)
1080 htmldir=$ac_optarg ;;
1081
1082 -includedir | --includedir | --includedi | --included | --include \
1083 | --includ | --inclu | --incl | --inc)
1084 ac_prev=includedir ;;
1085 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1086 | --includ=* | --inclu=* | --incl=* | --inc=*)
1087 includedir=$ac_optarg ;;
1088
1089 -infodir | --infodir | --infodi | --infod | --info | --inf)
1090 ac_prev=infodir ;;
1091 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1092 infodir=$ac_optarg ;;
1093
1094 -libdir | --libdir | --libdi | --libd)
1095 ac_prev=libdir ;;
1096 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1097 libdir=$ac_optarg ;;
1098
1099 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1100 | --libexe | --libex | --libe)
1101 ac_prev=libexecdir ;;
1102 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1103 | --libexe=* | --libex=* | --libe=*)
1104 libexecdir=$ac_optarg ;;
1105
1106 -localedir | --localedir | --localedi | --localed | --locale)
1107 ac_prev=localedir ;;
1108 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1109 localedir=$ac_optarg ;;
1110
1111 -localstatedir | --localstatedir | --localstatedi | --localstated \
1112 | --localstate | --localstat | --localsta | --localst | --locals)
1113 ac_prev=localstatedir ;;
1114 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1115 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1116 localstatedir=$ac_optarg ;;
1117
1118 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1119 ac_prev=mandir ;;
1120 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1121 mandir=$ac_optarg ;;
1122
1123 -nfp | --nfp | --nf)
1124 # Obsolete; use --without-fp.
1125 with_fp=no ;;
1126
1127 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1128 | --no-cr | --no-c | -n)
1129 no_create=yes ;;
1130
1131 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1132 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1133 no_recursion=yes ;;
1134
1135 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1136 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1137 | --oldin | --oldi | --old | --ol | --o)
1138 ac_prev=oldincludedir ;;
1139 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1140 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1141 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1142 oldincludedir=$ac_optarg ;;
1143
1144 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1145 ac_prev=prefix ;;
1146 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1147 prefix=$ac_optarg ;;
1148
1149 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1150 | --program-pre | --program-pr | --program-p)
1151 ac_prev=program_prefix ;;
1152 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1153 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1154 program_prefix=$ac_optarg ;;
1155
1156 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1157 | --program-suf | --program-su | --program-s)
1158 ac_prev=program_suffix ;;
1159 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1160 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1161 program_suffix=$ac_optarg ;;
1162
1163 -program-transform-name | --program-transform-name \
1164 | --program-transform-nam | --program-transform-na \
1165 | --program-transform-n | --program-transform- \
1166 | --program-transform | --program-transfor \
1167 | --program-transfo | --program-transf \
1168 | --program-trans | --program-tran \
1169 | --progr-tra | --program-tr | --program-t)
1170 ac_prev=program_transform_name ;;
1171 -program-transform-name=* | --program-transform-name=* \
1172 | --program-transform-nam=* | --program-transform-na=* \
1173 | --program-transform-n=* | --program-transform-=* \
1174 | --program-transform=* | --program-transfor=* \
1175 | --program-transfo=* | --program-transf=* \
1176 | --program-trans=* | --program-tran=* \
1177 | --progr-tra=* | --program-tr=* | --program-t=*)
1178 program_transform_name=$ac_optarg ;;
1179
1180 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1181 ac_prev=pdfdir ;;
1182 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1183 pdfdir=$ac_optarg ;;
1184
1185 -psdir | --psdir | --psdi | --psd | --ps)
1186 ac_prev=psdir ;;
1187 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1188 psdir=$ac_optarg ;;
1189
1190 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1191 | -silent | --silent | --silen | --sile | --sil)
1192 silent=yes ;;
1193
1194 -runstatedir | --runstatedir | --runstatedi | --runstated \
1195 | --runstate | --runstat | --runsta | --runst | --runs \
1196 | --run | --ru | --r)
1197 ac_prev=runstatedir ;;
1198 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1199 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1200 | --run=* | --ru=* | --r=*)
1201 runstatedir=$ac_optarg ;;
1202
1203 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1204 ac_prev=sbindir ;;
1205 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1206 | --sbi=* | --sb=*)
1207 sbindir=$ac_optarg ;;
1208
1209 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1210 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1211 | --sharedst | --shareds | --shared | --share | --shar \
1212 | --sha | --sh)
1213 ac_prev=sharedstatedir ;;
1214 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1215 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1216 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1217 | --sha=* | --sh=*)
1218 sharedstatedir=$ac_optarg ;;
1219
1220 -site | --site | --sit)
1221 ac_prev=site ;;
1222 -site=* | --site=* | --sit=*)
1223 site=$ac_optarg ;;
1224
1225 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1226 ac_prev=srcdir ;;
1227 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1228 srcdir=$ac_optarg ;;
1229
1230 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1231 | --syscon | --sysco | --sysc | --sys | --sy)
1232 ac_prev=sysconfdir ;;
1233 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1234 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1235 sysconfdir=$ac_optarg ;;
1236
1237 -target | --target | --targe | --targ | --tar | --ta | --t)
1238 ac_prev=target_alias ;;
1239 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1240 target_alias=$ac_optarg ;;
1241
1242 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1243 verbose=yes ;;
1244
1245 -version | --version | --versio | --versi | --vers | -V)
1246 ac_init_version=: ;;
1247
1248 -with-* | --with-*)
1249 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1250 # Reject names that are not valid shell variable names.
1251 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1252 as_fn_error $? "invalid package name: '$ac_useropt'"
1253 ac_useropt_orig=$ac_useropt
1254 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1255 case $ac_user_opts in
1256 *"
1257 "with_$ac_useropt"
1258 "*) ;;
1259 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1260 ac_unrecognized_sep=', ';;
1261 esac
1262 eval with_$ac_useropt=\$ac_optarg ;;
1263
1264 -without-* | --without-*)
1265 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1266 # Reject names that are not valid shell variable names.
1267 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1268 as_fn_error $? "invalid package name: '$ac_useropt'"
1269 ac_useropt_orig=$ac_useropt
1270 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1271 case $ac_user_opts in
1272 *"
1273 "with_$ac_useropt"
1274 "*) ;;
1275 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1276 ac_unrecognized_sep=', ';;
1277 esac
1278 eval with_$ac_useropt=no ;;
1279
1280 --x)
1281 # Obsolete; use --with-x.
1282 with_x=yes ;;
1283
1284 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1285 | --x-incl | --x-inc | --x-in | --x-i)
1286 ac_prev=x_includes ;;
1287 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1288 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1289 x_includes=$ac_optarg ;;
1290
1291 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1292 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1293 ac_prev=x_libraries ;;
1294 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1295 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1296 x_libraries=$ac_optarg ;;
1297
1298 -*) as_fn_error $? "unrecognized option: '$ac_option'
1299 Try '$0 --help' for more information"
1300 ;;
1301
1302 *=*)
1303 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1304 # Reject names that are not valid shell variable names.
1305 case $ac_envvar in #(
1306 '' | [0-9]* | *[!_$as_cr_alnum]* )
1307 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1308 esac
1309 eval $ac_envvar=\$ac_optarg
1310 export $ac_envvar ;;
1311
1312 *)
1313 # FIXME: should be removed in autoconf 3.0.
1314 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1315 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1316 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1317 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1318 ;;
1319
1320 esac
1321 done
1322
1323 if test -n "$ac_prev"; then
1324 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1325 as_fn_error $? "missing argument to $ac_option"
1326 fi
1327
1328 if test -n "$ac_unrecognized_opts"; then
1329 case $enable_option_checking in
1330 no) ;;
1331 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1332 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1333 esac
1334 fi
1335
1336 # Check all directory arguments for consistency.
1337 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1338 datadir sysconfdir sharedstatedir localstatedir includedir \
1339 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1340 libdir localedir mandir runstatedir
1341 do
1342 eval ac_val=\$$ac_var
1343 # Remove trailing slashes.
1344 case $ac_val in
1345 */ )
1346 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1347 eval $ac_var=\$ac_val;;
1348 esac
1349 # Be sure to have absolute directory names.
1350 case $ac_val in
1351 [\\/$]* | ?:[\\/]* ) continue;;
1352 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1353 esac
1354 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1355 done
1356
1357 # There might be people who depend on the old broken behavior: '$host'
1358 # used to hold the argument of --host etc.
1359 # FIXME: To remove some day.
1360 build=$build_alias
1361 host=$host_alias
1362 target=$target_alias
1363
1364 # FIXME: To remove some day.
1365 if test "x$host_alias" != x; then
1366 if test "x$build_alias" = x; then
1367 cross_compiling=maybe
1368 elif test "x$build_alias" != "x$host_alias"; then
1369 cross_compiling=yes
1370 fi
1371 fi
1372
1373 ac_tool_prefix=
1374 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1375
1376 test "$silent" = yes && exec 6>/dev/null
1377
1378
1379 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1380 ac_ls_di=`ls -di .` &&
1381 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1382 as_fn_error $? "working directory cannot be determined"
1383 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1384 as_fn_error $? "pwd does not report name of working directory"
1385
1386
1387 # Find the source files, if location was not specified.
1388 if test -z "$srcdir"; then
1389 ac_srcdir_defaulted=yes
1390 # Try the directory containing this script, then the parent directory.
1391 ac_confdir=`$as_dirname -- "$as_myself" ||
1392 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1393 X"$as_myself" : 'X\(//\)[^/]' \| \
1394 X"$as_myself" : 'X\(//\)$' \| \
1395 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1396 printf "%s\n" X"$as_myself" |
1397 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1398 s//\1/
1399 q
1400 }
1401 /^X\(\/\/\)[^/].*/{
1402 s//\1/
1403 q
1404 }
1405 /^X\(\/\/\)$/{
1406 s//\1/
1407 q
1408 }
1409 /^X\(\/\).*/{
1410 s//\1/
1411 q
1412 }
1413 s/.*/./; q'`
1414 srcdir=$ac_confdir
1415 if test ! -r "$srcdir/$ac_unique_file"; then
1416 srcdir=..
1417 fi
1418 else
1419 ac_srcdir_defaulted=no
1420 fi
1421 if test ! -r "$srcdir/$ac_unique_file"; then
1422 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1423 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1424 fi
1425 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1426 ac_abs_confdir=`(
1427 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1428 pwd)`
1429 # When building in place, set srcdir=.
1430 if test "$ac_abs_confdir" = "$ac_pwd"; then
1431 srcdir=.
1432 fi
1433 # Remove unnecessary trailing slashes from srcdir.
1434 # Double slashes in file names in object file debugging info
1435 # mess up M-x gdb in Emacs.
1436 case $srcdir in
1437 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1438 esac
1439 for ac_var in $ac_precious_vars; do
1440 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1441 eval ac_env_${ac_var}_value=\$${ac_var}
1442 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1443 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1444 done
1445
1446 #
1447 # Report the --help message.
1448 #
1449 if test "$ac_init_help" = "long"; then
1450 # Omit some internal or obsolete options to make the list less imposing.
1451 # This message is too long to be a string in the A/UX 3.1 sh.
1452 cat <<_ACEOF
1453 'configure' configures ntfs-3g 2026.2.25 to adapt to many kinds of systems.
1454
1455 Usage: $0 [OPTION]... [VAR=VALUE]...
1456
1457 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1458 VAR=VALUE. See below for descriptions of some of the useful variables.
1459
1460 Defaults for the options are specified in brackets.
1461
1462 Configuration:
1463 -h, --help display this help and exit
1464 --help=short display options specific to this package
1465 --help=recursive display the short help of all the included packages
1466 -V, --version display version information and exit
1467 -q, --quiet, --silent do not print 'checking ...' messages
1468 --cache-file=FILE cache test results in FILE [disabled]
1469 -C, --config-cache alias for '--cache-file=config.cache'
1470 -n, --no-create do not create output files
1471 --srcdir=DIR find the sources in DIR [configure dir or '..']
1472
1473 Installation directories:
1474 --prefix=PREFIX install architecture-independent files in PREFIX
1475 [$ac_default_prefix]
1476 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1477 [PREFIX]
1478
1479 By default, 'make install' will install all the files in
1480 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1481 an installation prefix other than '$ac_default_prefix' using '--prefix',
1482 for instance '--prefix=\$HOME'.
1483
1484 For better control, use the options below.
1485
1486 Fine tuning of the installation directories:
1487 --bindir=DIR user executables [EPREFIX/bin]
1488 --sbindir=DIR system admin executables [EPREFIX/sbin]
1489 --libexecdir=DIR program executables [EPREFIX/libexec]
1490 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1491 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1492 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1493 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1494 --libdir=DIR object code libraries [EPREFIX/lib]
1495 --includedir=DIR C header files [PREFIX/include]
1496 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1497 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1498 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1499 --infodir=DIR info documentation [DATAROOTDIR/info]
1500 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1501 --mandir=DIR man documentation [DATAROOTDIR/man]
1502 --docdir=DIR documentation root [DATAROOTDIR/doc/ntfs-3g]
1503 --htmldir=DIR html documentation [DOCDIR]
1504 --dvidir=DIR dvi documentation [DOCDIR]
1505 --pdfdir=DIR pdf documentation [DOCDIR]
1506 --psdir=DIR ps documentation [DOCDIR]
1507 _ACEOF
1508
1509 cat <<\_ACEOF
1510
1511 Program names:
1512 --program-prefix=PREFIX prepend PREFIX to installed program names
1513 --program-suffix=SUFFIX append SUFFIX to installed program names
1514 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1515
1516 System types:
1517 --build=BUILD configure for building on BUILD [guessed]
1518 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1519 --target=TARGET configure for building compilers for TARGET [HOST]
1520 _ACEOF
1521 fi
1522
1523 if test -n "$ac_init_help"; then
1524 case $ac_init_help in
1525 short | recursive ) echo "Configuration of ntfs-3g 2026.2.25:";;
1526 esac
1527 cat <<\_ACEOF
1528
1529 Optional Features:
1530 --disable-option-checking ignore unrecognized --enable/--with options
1531 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1532 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1533 --enable-silent-rules less verbose build output (undo: "make V=1")
1534 --disable-silent-rules verbose build output (undo: "make V=0")
1535 --enable-maintainer-mode
1536 enable make rules and dependencies not useful (and
1537 sometimes confusing) to the casual installer
1538 --enable-debug enable debugging code and output
1539 --enable-warnings enable lots of compiler warnings
1540 --enable-pedantic enable compile pedantic mode
1541 --enable-really-static create fully static binaries
1542 --enable-mount-helper install mount helper [default=enabled for linux]
1543 --enable-ldscript use ldscript instead of .so symlink
1544 --disable-ldconfig do not update dynamic linker cache using ldconfig
1545 --disable-library do not install libntfs-3g but link it into ntfs-3g
1546 --disable-mtab disable and ignore usage of /etc/mtab
1547 --enable-posix-acls enable POSIX ACL support
1548 --enable-xattr-mappings enable system extended attributes mappings
1549 --disable-plugins Disable external reparse point plugins for the
1550 ntfs-3g FUSE driver
1551 --disable-device-default-io-ops
1552 install default IO ops
1553 --disable-ntfs-3g disable the ntfs-3g FUSE driver
1554 --disable-ntfsprogs disable ntfsprogs utilities (default=no)
1555 --enable-crypto enable crypto related code and utilities
1556 (default=no)
1557 --enable-extras enable extra ntfsprogs utilities (default=no)
1558 --enable-quarantined enable quarantined ntfsprogs utilities (default=no)
1559 --disable-nfconv disable the 'nfconv' patch, which adds support for
1560 Unicode normalization form conversion when built on
1561 Mac OS X [default=enabled for Mac OS X]
1562 --enable-dependency-tracking
1563 do not reject slow dependency extractors
1564 --disable-dependency-tracking
1565 speeds up one-time build
1566 --enable-shared[=PKGS] build shared libraries [default=yes]
1567 --enable-static[=PKGS] build static libraries [default=yes]
1568 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1569 both]
1570 --enable-fast-install[=PKGS]
1571 optimize for fast installation [default=yes]
1572 --enable-aix-soname=aix|svr4|both
1573 shared library versioning (aka "SONAME") variant to
1574 provide on AIX, [default=aix].
1575 --disable-libtool-lock avoid locking (might break parallel builds)
1576 --disable-largefile omit support for large files
1577 --enable-year2038 support timestamps after 2038
1578
1579 Optional Packages:
1580 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1581 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1582 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1583 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1584 compiler's sysroot if not specified).
1585 --with-fuse=<internal|external>
1586 Select FUSE library: internal or external
1587 [default=internal]
1588 --with-libgcrypt-prefix=PFX
1589 prefix where LIBGCRYPT is installed (optional)
1590
1591 --with-uuid[=PFX] generate DCE compliant UUIDs, with optional prefix
1592 to uuid library and headers [default=detect]
1593 --without-uuid do not generate DCE compliant UUIDs
1594
1595 --with-hd[=PFX] use Windows compliant disk geometry, with optional
1596 prefix to hd library and headers [default=detect]
1597 --without-hd do not use Windows compliant disk geometry
1598
1599 Some influential environment variables:
1600 CC C compiler command
1601 CFLAGS C compiler flags
1602 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1603 nonstandard directory <lib dir>
1604 LIBS libraries to pass to the linker, e.g. -l<library>
1605 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1606 you have headers in a nonstandard directory <include dir>
1607 LT_SYS_LIBRARY_PATH
1608 User-defined run-time library search path.
1609 PKG_CONFIG path to pkg-config utility
1610 PKG_CONFIG_PATH
1611 directories to add to pkg-config's search path
1612 PKG_CONFIG_LIBDIR
1613 path overriding pkg-config's built-in search path
1614 LDCONFIG ldconfig utility
1615 FUSE_MODULE_CFLAGS
1616 C compiler flags for FUSE_MODULE, overriding pkg-config
1617 FUSE_MODULE_LIBS
1618 linker flags for FUSE_MODULE, overriding pkg-config
1619 GNUTLS_CFLAGS
1620 C compiler flags for GNUTLS, overriding pkg-config
1621 GNUTLS_LIBS linker flags for GNUTLS, overriding pkg-config
1622
1623 Use these variables to override the choices made by 'configure' or to help
1624 it to find libraries and programs with nonstandard names/locations.
1625
1626 Report bugs to <[email protected]>.
1627 _ACEOF
1628 ac_status=$?
1629 fi
1630
1631 if test "$ac_init_help" = "recursive"; then
1632 # If there are subdirs, report their specific --help.
1633 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1634 test -d "$ac_dir" ||
1635 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1636 continue
1637 ac_builddir=.
1638
1639 case "$ac_dir" in
1640 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1641 *)
1642 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1643 # A ".." for each directory in $ac_dir_suffix.
1644 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1645 case $ac_top_builddir_sub in
1646 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1647 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1648 esac ;;
1649 esac
1650 ac_abs_top_builddir=$ac_pwd
1651 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1652 # for backward compatibility:
1653 ac_top_builddir=$ac_top_build_prefix
1654
1655 case $srcdir in
1656 .) # We are building in place.
1657 ac_srcdir=.
1658 ac_top_srcdir=$ac_top_builddir_sub
1659 ac_abs_top_srcdir=$ac_pwd ;;
1660 [\\/]* | ?:[\\/]* ) # Absolute name.
1661 ac_srcdir=$srcdir$ac_dir_suffix;
1662 ac_top_srcdir=$srcdir
1663 ac_abs_top_srcdir=$srcdir ;;
1664 *) # Relative name.
1665 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1666 ac_top_srcdir=$ac_top_build_prefix$srcdir
1667 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1668 esac
1669 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1670
1671 cd "$ac_dir" || { ac_status=$?; continue; }
1672 # Check for configure.gnu first; this name is used for a wrapper for
1673 # Metaconfig's "Configure" on case-insensitive file systems.
1674 if test -f "$ac_srcdir/configure.gnu"; then
1675 echo &&
1676 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1677 elif test -f "$ac_srcdir/configure"; then
1678 echo &&
1679 $SHELL "$ac_srcdir/configure" --help=recursive
1680 else
1681 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1682 fi || ac_status=$?
1683 cd "$ac_pwd" || { ac_status=$?; break; }
1684 done
1685 fi
1686
1687 test -n "$ac_init_help" && exit $ac_status
1688 if $ac_init_version; then
1689 cat <<\_ACEOF
1690 ntfs-3g configure 2026.2.25
1691 generated by GNU Autoconf 2.72
1692
1693 Copyright (C) 2023 Free Software Foundation, Inc.
1694 This configure script is free software; the Free Software Foundation
1695 gives unlimited permission to copy, distribute and modify it.
1696 _ACEOF
1697 exit
1698 fi
1699
1700 ## ------------------------ ##
1701 ## Autoconf initialization. ##
1702 ## ------------------------ ##
1703
1704 # ac_fn_c_try_compile LINENO
1705 # --------------------------
1706 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1707 ac_fn_c_try_compile ()
1708 {
1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710 rm -f conftest.$ac_objext conftest.beam
1711 if { { ac_try="$ac_compile"
1712 case "(($ac_try" in
1713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714 *) ac_try_echo=$ac_try;;
1715 esac
1716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717 printf "%s\n" "$ac_try_echo"; } >&5
1718 (eval "$ac_compile") 2>conftest.err
1719 ac_status=$?
1720 if test -s conftest.err; then
1721 grep -v '^ *+' conftest.err >conftest.er1
1722 cat conftest.er1 >&5
1723 mv -f conftest.er1 conftest.err
1724 fi
1725 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1726 test $ac_status = 0; } && {
1727 test -z "$ac_c_werror_flag" ||
1728 test ! -s conftest.err
1729 } && test -s conftest.$ac_objext
1730 then :
1731 ac_retval=0
1732 else case e in #(
1733 e) printf "%s\n" "$as_me: failed program was:" >&5
1734 sed 's/^/| /' conftest.$ac_ext >&5
1735
1736 ac_retval=1 ;;
1737 esac
1738 fi
1739 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1740 as_fn_set_status $ac_retval
1741
1742 } # ac_fn_c_try_compile
1743
1744 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1745 # -------------------------------------------------------
1746 # Tests whether HEADER exists and can be compiled using the include files in
1747 # INCLUDES, setting the cache variable VAR accordingly.
1748 ac_fn_c_check_header_compile ()
1749 {
1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1752 printf %s "checking for $2... " >&6; }
1753 if eval test \${$3+y}
1754 then :
1755 printf %s "(cached) " >&6
1756 else case e in #(
1757 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1758 /* end confdefs.h. */
1759 $4
1760 #include <$2>
1761 _ACEOF
1762 if ac_fn_c_try_compile "$LINENO"
1763 then :
1764 eval "$3=yes"
1765 else case e in #(
1766 e) eval "$3=no" ;;
1767 esac
1768 fi
1769 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1770 esac
1771 fi
1772 eval ac_res=\$$3
1773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1774 printf "%s\n" "$ac_res" >&6; }
1775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1776
1777 } # ac_fn_c_check_header_compile
1778
1779 # ac_fn_c_try_link LINENO
1780 # -----------------------
1781 # Try to link conftest.$ac_ext, and return whether this succeeded.
1782 ac_fn_c_try_link ()
1783 {
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1786 if { { ac_try="$ac_link"
1787 case "(($ac_try" in
1788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1789 *) ac_try_echo=$ac_try;;
1790 esac
1791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1792 printf "%s\n" "$ac_try_echo"; } >&5
1793 (eval "$ac_link") 2>conftest.err
1794 ac_status=$?
1795 if test -s conftest.err; then
1796 grep -v '^ *+' conftest.err >conftest.er1
1797 cat conftest.er1 >&5
1798 mv -f conftest.er1 conftest.err
1799 fi
1800 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801 test $ac_status = 0; } && {
1802 test -z "$ac_c_werror_flag" ||
1803 test ! -s conftest.err
1804 } && test -s conftest$ac_exeext && {
1805 test "$cross_compiling" = yes ||
1806 test -x conftest$ac_exeext
1807 }
1808 then :
1809 ac_retval=0
1810 else case e in #(
1811 e) printf "%s\n" "$as_me: failed program was:" >&5
1812 sed 's/^/| /' conftest.$ac_ext >&5
1813
1814 ac_retval=1 ;;
1815 esac
1816 fi
1817 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1818 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1819 # interfere with the next link command; also delete a directory that is
1820 # left behind by Apple's compiler. We do this before executing the actions.
1821 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1822 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1823 as_fn_set_status $ac_retval
1824
1825 } # ac_fn_c_try_link
1826
1827 # ac_fn_c_check_func LINENO FUNC VAR
1828 # ----------------------------------
1829 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1830 ac_fn_c_check_func ()
1831 {
1832 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1834 printf %s "checking for $2... " >&6; }
1835 if eval test \${$3+y}
1836 then :
1837 printf %s "(cached) " >&6
1838 else case e in #(
1839 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1840 /* end confdefs.h. */
1841 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1842 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1843 #define $2 innocuous_$2
1844
1845 /* System header to define __stub macros and hopefully few prototypes,
1846 which can conflict with char $2 (void); below. */
1847
1848 #include <limits.h>
1849 #undef $2
1850
1851 /* Override any GCC internal prototype to avoid an error.
1852 Use char because int might match the return type of a GCC
1853 builtin and then its argument prototype would still apply. */
1854 #ifdef __cplusplus
1855 extern "C"
1856 #endif
1857 char $2 (void);
1858 /* The GNU C library defines this for functions which it implements
1859 to always fail with ENOSYS. Some functions are actually named
1860 something starting with __ and the normal name is an alias. */
1861 #if defined __stub_$2 || defined __stub___$2
1862 choke me
1863 #endif
1864
1865 int
1866 main (void)
1867 {
1868 return $2 ();
1869 ;
1870 return 0;
1871 }
1872 _ACEOF
1873 if ac_fn_c_try_link "$LINENO"
1874 then :
1875 eval "$3=yes"
1876 else case e in #(
1877 e) eval "$3=no" ;;
1878 esac
1879 fi
1880 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1881 conftest$ac_exeext conftest.$ac_ext ;;
1882 esac
1883 fi
1884 eval ac_res=\$$3
1885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1886 printf "%s\n" "$ac_res" >&6; }
1887 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1888
1889 } # ac_fn_c_check_func
1890
1891 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1892 # -------------------------------------------
1893 # Tests whether TYPE exists after having included INCLUDES, setting cache
1894 # variable VAR accordingly.
1895 ac_fn_c_check_type ()
1896 {
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1899 printf %s "checking for $2... " >&6; }
1900 if eval test \${$3+y}
1901 then :
1902 printf %s "(cached) " >&6
1903 else case e in #(
1904 e) eval "$3=no"
1905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906 /* end confdefs.h. */
1907 $4
1908 int
1909 main (void)
1910 {
1911 if (sizeof ($2))
1912 return 0;
1913 ;
1914 return 0;
1915 }
1916 _ACEOF
1917 if ac_fn_c_try_compile "$LINENO"
1918 then :
1919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1920 /* end confdefs.h. */
1921 $4
1922 int
1923 main (void)
1924 {
1925 if (sizeof (($2)))
1926 return 0;
1927 ;
1928 return 0;
1929 }
1930 _ACEOF
1931 if ac_fn_c_try_compile "$LINENO"
1932 then :
1933
1934 else case e in #(
1935 e) eval "$3=yes" ;;
1936 esac
1937 fi
1938 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1939 fi
1940 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1941 esac
1942 fi
1943 eval ac_res=\$$3
1944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1945 printf "%s\n" "$ac_res" >&6; }
1946 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1947
1948 } # ac_fn_c_check_type
1949
1950 # ac_fn_c_try_run LINENO
1951 # ----------------------
1952 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1953 # executables *can* be run.
1954 ac_fn_c_try_run ()
1955 {
1956 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1957 if { { ac_try="$ac_link"
1958 case "(($ac_try" in
1959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1960 *) ac_try_echo=$ac_try;;
1961 esac
1962 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1963 printf "%s\n" "$ac_try_echo"; } >&5
1964 (eval "$ac_link") 2>&5
1965 ac_status=$?
1966 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1967 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1968 { { case "(($ac_try" in
1969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1970 *) ac_try_echo=$ac_try;;
1971 esac
1972 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1973 printf "%s\n" "$ac_try_echo"; } >&5
1974 (eval "$ac_try") 2>&5
1975 ac_status=$?
1976 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1977 test $ac_status = 0; }; }
1978 then :
1979 ac_retval=0
1980 else case e in #(
1981 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1982 printf "%s\n" "$as_me: failed program was:" >&5
1983 sed 's/^/| /' conftest.$ac_ext >&5
1984
1985 ac_retval=$ac_status ;;
1986 esac
1987 fi
1988 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1989 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1990 as_fn_set_status $ac_retval
1991
1992 } # ac_fn_c_try_run
1993
1994 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1995 # ----------------------------------------------------
1996 # Tries to find if the field MEMBER exists in type AGGR, after including
1997 # INCLUDES, setting cache variable VAR accordingly.
1998 ac_fn_c_check_member ()
1999 {
2000 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2002 printf %s "checking for $2.$3... " >&6; }
2003 if eval test \${$4+y}
2004 then :
2005 printf %s "(cached) " >&6
2006 else case e in #(
2007 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008 /* end confdefs.h. */
2009 $5
2010 int
2011 main (void)
2012 {
2013 static $2 ac_aggr;
2014 if (ac_aggr.$3)
2015 return 0;
2016 ;
2017 return 0;
2018 }
2019 _ACEOF
2020 if ac_fn_c_try_compile "$LINENO"
2021 then :
2022 eval "$4=yes"
2023 else case e in #(
2024 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025 /* end confdefs.h. */
2026 $5
2027 int
2028 main (void)
2029 {
2030 static $2 ac_aggr;
2031 if (sizeof ac_aggr.$3)
2032 return 0;
2033 ;
2034 return 0;
2035 }
2036 _ACEOF
2037 if ac_fn_c_try_compile "$LINENO"
2038 then :
2039 eval "$4=yes"
2040 else case e in #(
2041 e) eval "$4=no" ;;
2042 esac
2043 fi
2044 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2045 esac
2046 fi
2047 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2048 esac
2049 fi
2050 eval ac_res=\$$4
2051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2052 printf "%s\n" "$ac_res" >&6; }
2053 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2054
2055 } # ac_fn_c_check_member
2056 ac_configure_args_raw=
2057 for ac_arg
2058 do
2059 case $ac_arg in
2060 *\'*)
2061 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2062 esac
2063 as_fn_append ac_configure_args_raw " '$ac_arg'"
2064 done
2065
2066 case $ac_configure_args_raw in
2067 *$as_nl*)
2068 ac_safe_unquote= ;;
2069 *)
2070 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2071 ac_unsafe_a="$ac_unsafe_z#~"
2072 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2073 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2074 esac
2075
2076 cat >config.log <<_ACEOF
2077 This file contains any messages produced by compilers while
2078 running configure, to aid debugging if configure makes a mistake.
2079
2080 It was created by ntfs-3g $as_me 2026.2.25, which was
2081 generated by GNU Autoconf 2.72. Invocation command line was
2082
2083 $ $0$ac_configure_args_raw
2084
2085 _ACEOF
2086 exec 5>>config.log
2087 {
2088 cat <<_ASUNAME
2089 ## --------- ##
2090 ## Platform. ##
2091 ## --------- ##
2092
2093 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2094 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2095 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2096 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2097 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2098
2099 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2100 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2101
2102 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2103 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2104 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2105 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2106 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2107 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2108 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2109
2110 _ASUNAME
2111
2112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2113 for as_dir in $PATH
2114 do
2115 IFS=$as_save_IFS
2116 case $as_dir in #(((
2117 '') as_dir=./ ;;
2118 */) ;;
2119 *) as_dir=$as_dir/ ;;
2120 esac
2121 printf "%s\n" "PATH: $as_dir"
2122 done
2123 IFS=$as_save_IFS
2124
2125 } >&5
2126
2127 cat >&5 <<_ACEOF
2128
2129
2130 ## ----------- ##
2131 ## Core tests. ##
2132 ## ----------- ##
2133
2134 _ACEOF
2135
2136
2137 # Keep a trace of the command line.
2138 # Strip out --no-create and --no-recursion so they do not pile up.
2139 # Strip out --silent because we don't want to record it for future runs.
2140 # Also quote any args containing shell meta-characters.
2141 # Make two passes to allow for proper duplicate-argument suppression.
2142 ac_configure_args=
2143 ac_configure_args0=
2144 ac_configure_args1=
2145 ac_must_keep_next=false
2146 for ac_pass in 1 2
2147 do
2148 for ac_arg
2149 do
2150 case $ac_arg in
2151 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2152 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2153 | -silent | --silent | --silen | --sile | --sil)
2154 continue ;;
2155 *\'*)
2156 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2157 esac
2158 case $ac_pass in
2159 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2160 2)
2161 as_fn_append ac_configure_args1 " '$ac_arg'"
2162 if test $ac_must_keep_next = true; then
2163 ac_must_keep_next=false # Got value, back to normal.
2164 else
2165 case $ac_arg in
2166 *=* | --config-cache | -C | -disable-* | --disable-* \
2167 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2168 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2169 | -with-* | --with-* | -without-* | --without-* | --x)
2170 case "$ac_configure_args0 " in
2171 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2172 esac
2173 ;;
2174 -* ) ac_must_keep_next=true ;;
2175 esac
2176 fi
2177 as_fn_append ac_configure_args " '$ac_arg'"
2178 ;;
2179 esac
2180 done
2181 done
2182 { ac_configure_args0=; unset ac_configure_args0;}
2183 { ac_configure_args1=; unset ac_configure_args1;}
2184
2185 # When interrupted or exit'd, cleanup temporary files, and complete
2186 # config.log. We remove comments because anyway the quotes in there
2187 # would cause problems or look ugly.
2188 # WARNING: Use '\'' to represent an apostrophe within the trap.
2189 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2190 trap 'exit_status=$?
2191 # Sanitize IFS.
2192 IFS=" "" $as_nl"
2193 # Save into config.log some information that might help in debugging.
2194 {
2195 echo
2196
2197 printf "%s\n" "## ---------------- ##
2198 ## Cache variables. ##
2199 ## ---------------- ##"
2200 echo
2201 # The following way of writing the cache mishandles newlines in values,
2202 (
2203 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2204 eval ac_val=\$$ac_var
2205 case $ac_val in #(
2206 *${as_nl}*)
2207 case $ac_var in #(
2208 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2209 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2210 esac
2211 case $ac_var in #(
2212 _ | IFS | as_nl) ;; #(
2213 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2214 *) { eval $ac_var=; unset $ac_var;} ;;
2215 esac ;;
2216 esac
2217 done
2218 (set) 2>&1 |
2219 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2220 *${as_nl}ac_space=\ *)
2221 sed -n \
2222 "s/'\''/'\''\\\\'\'''\''/g;
2223 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2224 ;; #(
2225 *)
2226 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2227 ;;
2228 esac |
2229 sort
2230 )
2231 echo
2232
2233 printf "%s\n" "## ----------------- ##
2234 ## Output variables. ##
2235 ## ----------------- ##"
2236 echo
2237 for ac_var in $ac_subst_vars
2238 do
2239 eval ac_val=\$$ac_var
2240 case $ac_val in
2241 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2242 esac
2243 printf "%s\n" "$ac_var='\''$ac_val'\''"
2244 done | sort
2245 echo
2246
2247 if test -n "$ac_subst_files"; then
2248 printf "%s\n" "## ------------------- ##
2249 ## File substitutions. ##
2250 ## ------------------- ##"
2251 echo
2252 for ac_var in $ac_subst_files
2253 do
2254 eval ac_val=\$$ac_var
2255 case $ac_val in
2256 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2257 esac
2258 printf "%s\n" "$ac_var='\''$ac_val'\''"
2259 done | sort
2260 echo
2261 fi
2262
2263 if test -s confdefs.h; then
2264 printf "%s\n" "## ----------- ##
2265 ## confdefs.h. ##
2266 ## ----------- ##"
2267 echo
2268 cat confdefs.h
2269 echo
2270 fi
2271 test "$ac_signal" != 0 &&
2272 printf "%s\n" "$as_me: caught signal $ac_signal"
2273 printf "%s\n" "$as_me: exit $exit_status"
2274 } >&5
2275 rm -f core *.core core.conftest.* &&
2276 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2277 exit $exit_status
2278 ' 0
2279 for ac_signal in 1 2 13 15; do
2280 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2281 done
2282 ac_signal=0
2283
2284 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2285 rm -f -r conftest* confdefs.h
2286
2287 printf "%s\n" "/* confdefs.h */" > confdefs.h
2288
2289 # Predefined preprocessor variables.
2290
2291 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2292
2293 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2294
2295 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2296
2297 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2298
2299 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2300
2301 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2302
2303
2304 # Let the site file select an alternate cache file if it wants to.
2305 # Prefer an explicitly selected file to automatically selected ones.
2306 if test -n "$CONFIG_SITE"; then
2307 ac_site_files="$CONFIG_SITE"
2308 elif test "x$prefix" != xNONE; then
2309 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2310 else
2311 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2312 fi
2313
2314 for ac_site_file in $ac_site_files
2315 do
2316 case $ac_site_file in #(
2317 */*) :
2318 ;; #(
2319 *) :
2320 ac_site_file=./$ac_site_file ;;
2321 esac
2322 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2324 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2325 sed 's/^/| /' "$ac_site_file" >&5
2326 . "$ac_site_file" \
2327 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2328 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2329 as_fn_error $? "failed to load site script $ac_site_file
2330 See 'config.log' for more details" "$LINENO" 5; }
2331 fi
2332 done
2333
2334 if test -r "$cache_file"; then
2335 # Some versions of bash will fail to source /dev/null (special files
2336 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2337 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2339 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2340 case $cache_file in
2341 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2342 *) . "./$cache_file";;
2343 esac
2344 fi
2345 else
2346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2347 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2348 >$cache_file
2349 fi
2350
2351 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2352 # Test code for whether the C compiler supports C89 (global declarations)
2353 ac_c_conftest_c89_globals='
2354 /* Does the compiler advertise C89 conformance?
2355 Do not test the value of __STDC__, because some compilers set it to 0
2356 while being otherwise adequately conformant. */
2357 #if !defined __STDC__
2358 # error "Compiler does not advertise C89 conformance"
2359 #endif
2360
2361 #include <stddef.h>
2362 #include <stdarg.h>
2363 struct stat;
2364 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2365 struct buf { int x; };
2366 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2367 static char *e (char **p, int i)
2368 {
2369 return p[i];
2370 }
2371 static char *f (char * (*g) (char **, int), char **p, ...)
2372 {
2373 char *s;
2374 va_list v;
2375 va_start (v,p);
2376 s = g (p, va_arg (v,int));
2377 va_end (v);
2378 return s;
2379 }
2380
2381 /* C89 style stringification. */
2382 #define noexpand_stringify(a) #a
2383 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2384
2385 /* C89 style token pasting. Exercises some of the corner cases that
2386 e.g. old MSVC gets wrong, but not very hard. */
2387 #define noexpand_concat(a,b) a##b
2388 #define expand_concat(a,b) noexpand_concat(a,b)
2389 extern int vA;
2390 extern int vbee;
2391 #define aye A
2392 #define bee B
2393 int *pvA = &expand_concat(v,aye);
2394 int *pvbee = &noexpand_concat(v,bee);
2395
2396 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2397 function prototypes and stuff, but not \xHH hex character constants.
2398 These do not provoke an error unfortunately, instead are silently treated
2399 as an "x". The following induces an error, until -std is added to get
2400 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2401 array size at least. It is necessary to write \x00 == 0 to get something
2402 that is true only with -std. */
2403 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2404
2405 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2406 inside strings and character constants. */
2407 #define FOO(x) '\''x'\''
2408 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2409
2410 int test (int i, double x);
2411 struct s1 {int (*f) (int a);};
2412 struct s2 {int (*f) (double a);};
2413 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2414 int, int);'
2415
2416 # Test code for whether the C compiler supports C89 (body of main).
2417 ac_c_conftest_c89_main='
2418 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2419 '
2420
2421 # Test code for whether the C compiler supports C99 (global declarations)
2422 ac_c_conftest_c99_globals='
2423 /* Does the compiler advertise C99 conformance? */
2424 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2425 # error "Compiler does not advertise C99 conformance"
2426 #endif
2427
2428 // See if C++-style comments work.
2429
2430 #include <stdbool.h>
2431 extern int puts (const char *);
2432 extern int printf (const char *, ...);
2433 extern int dprintf (int, const char *, ...);
2434 extern void *malloc (size_t);
2435 extern void free (void *);
2436
2437 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2438 // dprintf is used instead of fprintf to avoid needing to declare
2439 // FILE and stderr.
2440 #define debug(...) dprintf (2, __VA_ARGS__)
2441 #define showlist(...) puts (#__VA_ARGS__)
2442 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2443 static void
2444 test_varargs_macros (void)
2445 {
2446 int x = 1234;
2447 int y = 5678;
2448 debug ("Flag");
2449 debug ("X = %d\n", x);
2450 showlist (The first, second, and third items.);
2451 report (x>y, "x is %d but y is %d", x, y);
2452 }
2453
2454 // Check long long types.
2455 #define BIG64 18446744073709551615ull
2456 #define BIG32 4294967295ul
2457 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2458 #if !BIG_OK
2459 #error "your preprocessor is broken"
2460 #endif
2461 #if BIG_OK
2462 #else
2463 #error "your preprocessor is broken"
2464 #endif
2465 static long long int bignum = -9223372036854775807LL;
2466 static unsigned long long int ubignum = BIG64;
2467
2468 struct incomplete_array
2469 {
2470 int datasize;
2471 double data[];
2472 };
2473
2474 struct named_init {
2475 int number;
2476 const wchar_t *name;
2477 double average;
2478 };
2479
2480 typedef const char *ccp;
2481
2482 static inline int
2483 test_restrict (ccp restrict text)
2484 {
2485 // Iterate through items via the restricted pointer.
2486 // Also check for declarations in for loops.
2487 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2488 continue;
2489 return 0;
2490 }
2491
2492 // Check varargs and va_copy.
2493 static bool
2494 test_varargs (const char *format, ...)
2495 {
2496 va_list args;
2497 va_start (args, format);
2498 va_list args_copy;
2499 va_copy (args_copy, args);
2500
2501 const char *str = "";
2502 int number = 0;
2503 float fnumber = 0;
2504
2505 while (*format)
2506 {
2507 switch (*format++)
2508 {
2509 case '\''s'\'': // string
2510 str = va_arg (args_copy, const char *);
2511 break;
2512 case '\''d'\'': // int
2513 number = va_arg (args_copy, int);
2514 break;
2515 case '\''f'\'': // float
2516 fnumber = va_arg (args_copy, double);
2517 break;
2518 default:
2519 break;
2520 }
2521 }
2522 va_end (args_copy);
2523 va_end (args);
2524
2525 return *str && number && fnumber;
2526 }
2527 '
2528
2529 # Test code for whether the C compiler supports C99 (body of main).
2530 ac_c_conftest_c99_main='
2531 // Check bool.
2532 _Bool success = false;
2533 success |= (argc != 0);
2534
2535 // Check restrict.
2536 if (test_restrict ("String literal") == 0)
2537 success = true;
2538 char *restrict newvar = "Another string";
2539
2540 // Check varargs.
2541 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2542 test_varargs_macros ();
2543
2544 // Check flexible array members.
2545 struct incomplete_array *ia =
2546 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2547 ia->datasize = 10;
2548 for (int i = 0; i < ia->datasize; ++i)
2549 ia->data[i] = i * 1.234;
2550 // Work around memory leak warnings.
2551 free (ia);
2552
2553 // Check named initializers.
2554 struct named_init ni = {
2555 .number = 34,
2556 .name = L"Test wide string",
2557 .average = 543.34343,
2558 };
2559
2560 ni.number = 58;
2561
2562 int dynamic_array[ni.number];
2563 dynamic_array[0] = argv[0][0];
2564 dynamic_array[ni.number - 1] = 543;
2565
2566 // work around unused variable warnings
2567 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2568 || dynamic_array[ni.number - 1] != 543);
2569 '
2570
2571 # Test code for whether the C compiler supports C11 (global declarations)
2572 ac_c_conftest_c11_globals='
2573 /* Does the compiler advertise C11 conformance? */
2574 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2575 # error "Compiler does not advertise C11 conformance"
2576 #endif
2577
2578 // Check _Alignas.
2579 char _Alignas (double) aligned_as_double;
2580 char _Alignas (0) no_special_alignment;
2581 extern char aligned_as_int;
2582 char _Alignas (0) _Alignas (int) aligned_as_int;
2583
2584 // Check _Alignof.
2585 enum
2586 {
2587 int_alignment = _Alignof (int),
2588 int_array_alignment = _Alignof (int[100]),
2589 char_alignment = _Alignof (char)
2590 };
2591 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2592
2593 // Check _Noreturn.
2594 int _Noreturn does_not_return (void) { for (;;) continue; }
2595
2596 // Check _Static_assert.
2597 struct test_static_assert
2598 {
2599 int x;
2600 _Static_assert (sizeof (int) <= sizeof (long int),
2601 "_Static_assert does not work in struct");
2602 long int y;
2603 };
2604
2605 // Check UTF-8 literals.
2606 #define u8 syntax error!
2607 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2608
2609 // Check duplicate typedefs.
2610 typedef long *long_ptr;
2611 typedef long int *long_ptr;
2612 typedef long_ptr long_ptr;
2613
2614 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2615 struct anonymous
2616 {
2617 union {
2618 struct { int i; int j; };
2619 struct { int k; long int l; } w;
2620 };
2621 int m;
2622 } v1;
2623 '
2624
2625 # Test code for whether the C compiler supports C11 (body of main).
2626 ac_c_conftest_c11_main='
2627 _Static_assert ((offsetof (struct anonymous, i)
2628 == offsetof (struct anonymous, w.k)),
2629 "Anonymous union alignment botch");
2630 v1.i = 2;
2631 v1.w.k = 5;
2632 ok |= v1.i != 5;
2633 '
2634
2635 # Test code for whether the C compiler supports C11 (complete).
2636 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2637 ${ac_c_conftest_c99_globals}
2638 ${ac_c_conftest_c11_globals}
2639
2640 int
2641 main (int argc, char **argv)
2642 {
2643 int ok = 0;
2644 ${ac_c_conftest_c89_main}
2645 ${ac_c_conftest_c99_main}
2646 ${ac_c_conftest_c11_main}
2647 return ok;
2648 }
2649 "
2650
2651 # Test code for whether the C compiler supports C99 (complete).
2652 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2653 ${ac_c_conftest_c99_globals}
2654
2655 int
2656 main (int argc, char **argv)
2657 {
2658 int ok = 0;
2659 ${ac_c_conftest_c89_main}
2660 ${ac_c_conftest_c99_main}
2661 return ok;
2662 }
2663 "
2664
2665 # Test code for whether the C compiler supports C89 (complete).
2666 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2667
2668 int
2669 main (int argc, char **argv)
2670 {
2671 int ok = 0;
2672 ${ac_c_conftest_c89_main}
2673 return ok;
2674 }
2675 "
2676
2677 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2678 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2679 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2680 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2681 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2682 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2683 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2684 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2685 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2686 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2687 as_fn_append ac_header_c_list " utime.h utime_h HAVE_UTIME_H"
2688 as_fn_append ac_func_c_list " vprintf HAVE_VPRINTF"
2689
2690 # Auxiliary files required by this configure script.
2691 ac_aux_files="ltmain.sh compile missing install-sh config.guess config.sub"
2692
2693 # Locations in which to look for auxiliary files.
2694 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2695
2696 # Search for a directory containing all of the required auxiliary files,
2697 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2698 # If we don't find one directory that contains all the files we need,
2699 # we report the set of missing files from the *first* directory in
2700 # $ac_aux_dir_candidates and give up.
2701 ac_missing_aux_files=""
2702 ac_first_candidate=:
2703 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2705 as_found=false
2706 for as_dir in $ac_aux_dir_candidates
2707 do
2708 IFS=$as_save_IFS
2709 case $as_dir in #(((
2710 '') as_dir=./ ;;
2711 */) ;;
2712 *) as_dir=$as_dir/ ;;
2713 esac
2714 as_found=:
2715
2716 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2717 ac_aux_dir_found=yes
2718 ac_install_sh=
2719 for ac_aux in $ac_aux_files
2720 do
2721 # As a special case, if "install-sh" is required, that requirement
2722 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2723 # and $ac_install_sh is set appropriately for whichever one is found.
2724 if test x"$ac_aux" = x"install-sh"
2725 then
2726 if test -f "${as_dir}install-sh"; then
2727 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2728 ac_install_sh="${as_dir}install-sh -c"
2729 elif test -f "${as_dir}install.sh"; then
2730 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2731 ac_install_sh="${as_dir}install.sh -c"
2732 elif test -f "${as_dir}shtool"; then
2733 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2734 ac_install_sh="${as_dir}shtool install -c"
2735 else
2736 ac_aux_dir_found=no
2737 if $ac_first_candidate; then
2738 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2739 else
2740 break
2741 fi
2742 fi
2743 else
2744 if test -f "${as_dir}${ac_aux}"; then
2745 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2746 else
2747 ac_aux_dir_found=no
2748 if $ac_first_candidate; then
2749 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2750 else
2751 break
2752 fi
2753 fi
2754 fi
2755 done
2756 if test "$ac_aux_dir_found" = yes; then
2757 ac_aux_dir="$as_dir"
2758 break
2759 fi
2760 ac_first_candidate=false
2761
2762 as_found=false
2763 done
2764 IFS=$as_save_IFS
2765 if $as_found
2766 then :
2767
2768 else case e in #(
2769 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2770 esac
2771 fi
2772
2773
2774 # These three variables are undocumented and unsupported,
2775 # and are intended to be withdrawn in a future Autoconf release.
2776 # They can cause serious problems if a builder's source tree is in a directory
2777 # whose full name contains unusual characters.
2778 if test -f "${ac_aux_dir}config.guess"; then
2779 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2780 fi
2781 if test -f "${ac_aux_dir}config.sub"; then
2782 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2783 fi
2784 if test -f "$ac_aux_dir/configure"; then
2785 ac_configure="$SHELL ${ac_aux_dir}configure"
2786 fi
2787
2788 # Check that the precious variables saved in the cache have kept the same
2789 # value.
2790 ac_cache_corrupted=false
2791 for ac_var in $ac_precious_vars; do
2792 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2793 eval ac_new_set=\$ac_env_${ac_var}_set
2794 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2795 eval ac_new_val=\$ac_env_${ac_var}_value
2796 case $ac_old_set,$ac_new_set in
2797 set,)
2798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2799 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2800 ac_cache_corrupted=: ;;
2801 ,set)
2802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2803 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2804 ac_cache_corrupted=: ;;
2805 ,);;
2806 *)
2807 if test "x$ac_old_val" != "x$ac_new_val"; then
2808 # differences in whitespace do not lead to failure.
2809 ac_old_val_w=`echo x $ac_old_val`
2810 ac_new_val_w=`echo x $ac_new_val`
2811 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2813 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2814 ac_cache_corrupted=:
2815 else
2816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2817 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2818 eval $ac_var=\$ac_old_val
2819 fi
2820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2821 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2823 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2824 fi;;
2825 esac
2826 # Pass precious variables to config.status.
2827 if test "$ac_new_set" = set; then
2828 case $ac_new_val in
2829 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2830 *) ac_arg=$ac_var=$ac_new_val ;;
2831 esac
2832 case " $ac_configure_args " in
2833 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2834 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2835 esac
2836 fi
2837 done
2838 if $ac_cache_corrupted; then
2839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2840 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2842 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2843 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2844 and start over" "$LINENO" 5
2845 fi
2846 ## -------------------- ##
2847 ## Main body of script. ##
2848 ## -------------------- ##
2849
2850 ac_ext=c
2851 ac_cpp='$CPP $CPPFLAGS'
2852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2855
2856
2857 LIBNTFS_3G_VERSION="89"
2858
2859
2860 # Environment
2861
2862
2863
2864 # Make sure we can run config.sub.
2865 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
2866 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
2867
2868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2869 printf %s "checking build system type... " >&6; }
2870 if test ${ac_cv_build+y}
2871 then :
2872 printf %s "(cached) " >&6
2873 else case e in #(
2874 e) ac_build_alias=$build_alias
2875 test "x$ac_build_alias" = x &&
2876 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
2877 test "x$ac_build_alias" = x &&
2878 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2879 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
2880 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
2881 ;;
2882 esac
2883 fi
2884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2885 printf "%s\n" "$ac_cv_build" >&6; }
2886 case $ac_cv_build in
2887 *-*-*) ;;
2888 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2889 esac
2890 build=$ac_cv_build
2891 ac_save_IFS=$IFS; IFS='-'
2892 set x $ac_cv_build
2893 shift
2894 build_cpu=$1
2895 build_vendor=$2
2896 shift; shift
2897 # Remember, the first character of IFS is used to create $*,
2898 # except with old shells:
2899 build_os=$*
2900 IFS=$ac_save_IFS
2901 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2902
2903
2904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2905 printf %s "checking host system type... " >&6; }
2906 if test ${ac_cv_host+y}
2907 then :
2908 printf %s "(cached) " >&6
2909 else case e in #(
2910 e) if test "x$host_alias" = x; then
2911 ac_cv_host=$ac_cv_build
2912 else
2913 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
2914 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
2915 fi
2916 ;;
2917 esac
2918 fi
2919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2920 printf "%s\n" "$ac_cv_host" >&6; }
2921 case $ac_cv_host in
2922 *-*-*) ;;
2923 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2924 esac
2925 host=$ac_cv_host
2926 ac_save_IFS=$IFS; IFS='-'
2927 set x $ac_cv_host
2928 shift
2929 host_cpu=$1
2930 host_vendor=$2
2931 shift; shift
2932 # Remember, the first character of IFS is used to create $*,
2933 # except with old shells:
2934 host_os=$*
2935 IFS=$ac_save_IFS
2936 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2937
2938
2939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2940 printf %s "checking target system type... " >&6; }
2941 if test ${ac_cv_target+y}
2942 then :
2943 printf %s "(cached) " >&6
2944 else case e in #(
2945 e) if test "x$target_alias" = x; then
2946 ac_cv_target=$ac_cv_host
2947 else
2948 ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` ||
2949 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5
2950 fi
2951 ;;
2952 esac
2953 fi
2954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2955 printf "%s\n" "$ac_cv_target" >&6; }
2956 case $ac_cv_target in
2957 *-*-*) ;;
2958 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2959 esac
2960 target=$ac_cv_target
2961 ac_save_IFS=$IFS; IFS='-'
2962 set x $ac_cv_target
2963 shift
2964 target_cpu=$1
2965 target_vendor=$2
2966 shift; shift
2967 # Remember, the first character of IFS is used to create $*,
2968 # except with old shells:
2969 target_os=$*
2970 IFS=$ac_save_IFS
2971 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2972
2973
2974 # The aliases save the names the user supplied, while $host etc.
2975 # will get canonicalized.
2976 test -n "$target_alias" &&
2977 test "$program_prefix$program_suffix$program_transform_name" = \
2978 NONENONEs,x,x, &&
2979 program_prefix=${target_alias}-
2980
2981 # Automake
2982 am__api_version='1.17'
2983
2984
2985 # Find a good install program. We prefer a C program (faster),
2986 # so one script is as good as another. But avoid the broken or
2987 # incompatible versions:
2988 # SysV /etc/install, /usr/sbin/install
2989 # SunOS /usr/etc/install
2990 # IRIX /sbin/install
2991 # AIX /bin/install
2992 # AmigaOS /C/install, which installs bootblocks on floppy discs
2993 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2994 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2995 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2996 # OS/2's system install, which has a completely different semantic
2997 # ./install, which can be erroneously created by make from ./install.sh.
2998 # Reject install programs that cannot install multiple files.
2999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3000 printf %s "checking for a BSD-compatible install... " >&6; }
3001 if test -z "$INSTALL"; then
3002 if test ${ac_cv_path_install+y}
3003 then :
3004 printf %s "(cached) " >&6
3005 else case e in #(
3006 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3007 for as_dir in $PATH
3008 do
3009 IFS=$as_save_IFS
3010 case $as_dir in #(((
3011 '') as_dir=./ ;;
3012 */) ;;
3013 *) as_dir=$as_dir/ ;;
3014 esac
3015 # Account for fact that we put trailing slashes in our PATH walk.
3016 case $as_dir in #((
3017 ./ | /[cC]/* | \
3018 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3019 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3020 /usr/ucb/* ) ;;
3021 *)
3022 # OSF1 and SCO ODT 3.0 have their own names for install.
3023 # Don't use installbsd from OSF since it installs stuff as root
3024 # by default.
3025 for ac_prog in ginstall scoinst install; do
3026 for ac_exec_ext in '' $ac_executable_extensions; do
3027 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3028 if test $ac_prog = install &&
3029 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3030 # AIX install. It has an incompatible calling convention.
3031 :
3032 elif test $ac_prog = install &&
3033 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3034 # program-specific install script used by HP pwplus--don't use.
3035 :
3036 else
3037 rm -rf conftest.one conftest.two conftest.dir
3038 echo one > conftest.one
3039 echo two > conftest.two
3040 mkdir conftest.dir
3041 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3042 test -s conftest.one && test -s conftest.two &&
3043 test -s conftest.dir/conftest.one &&
3044 test -s conftest.dir/conftest.two
3045 then
3046 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3047 break 3
3048 fi
3049 fi
3050 fi
3051 done
3052 done
3053 ;;
3054 esac
3055
3056 done
3057 IFS=$as_save_IFS
3058
3059 rm -rf conftest.one conftest.two conftest.dir
3060 ;;
3061 esac
3062 fi
3063 if test ${ac_cv_path_install+y}; then
3064 INSTALL=$ac_cv_path_install
3065 else
3066 # As a last resort, use the slow shell script. Don't cache a
3067 # value for INSTALL within a source directory, because that will
3068 # break other packages using the cache if that directory is
3069 # removed, or if the value is a relative name.
3070 INSTALL=$ac_install_sh
3071 fi
3072 fi
3073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3074 printf "%s\n" "$INSTALL" >&6; }
3075
3076 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3077 # It thinks the first close brace ends the variable substitution.
3078 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3079
3080 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3081
3082 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3083
3084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
3085 printf %s "checking whether sleep supports fractional seconds... " >&6; }
3086 if test ${am_cv_sleep_fractional_seconds+y}
3087 then :
3088 printf %s "(cached) " >&6
3089 else case e in #(
3090 e) if sleep 0.001 2>/dev/null
3091 then :
3092 am_cv_sleep_fractional_seconds=yes
3093 else case e in #(
3094 e) am_cv_sleep_fractional_seconds=no ;;
3095 esac
3096 fi
3097 ;;
3098 esac
3099 fi
3100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
3101 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
3102
3103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
3104 printf %s "checking filesystem timestamp resolution... " >&6; }
3105 if test ${am_cv_filesystem_timestamp_resolution+y}
3106 then :
3107 printf %s "(cached) " >&6
3108 else case e in #(
3109 e) # Default to the worst case.
3110 am_cv_filesystem_timestamp_resolution=2
3111
3112 # Only try to go finer than 1 sec if sleep can do it.
3113 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
3114 # - 1 sec is not much of a win compared to 2 sec, and
3115 # - it takes 2 seconds to perform the test whether 1 sec works.
3116 #
3117 # Instead, just use the default 2s on platforms that have 1s resolution,
3118 # accept the extra 1s delay when using $sleep in the Automake tests, in
3119 # exchange for not incurring the 2s delay for running the test for all
3120 # packages.
3121 #
3122 am_try_resolutions=
3123 if test "$am_cv_sleep_fractional_seconds" = yes; then
3124 # Even a millisecond often causes a bunch of false positives,
3125 # so just try a hundredth of a second. The time saved between .001 and
3126 # .01 is not terribly consequential.
3127 am_try_resolutions="0.01 0.1 $am_try_resolutions"
3128 fi
3129
3130 # In order to catch current-generation FAT out, we must *modify* files
3131 # that already exist; the *creation* timestamp is finer. Use names
3132 # that make ls -t sort them differently when they have equal
3133 # timestamps than when they have distinct timestamps, keeping
3134 # in mind that ls -t prints the *newest* file first.
3135 rm -f conftest.ts?
3136 : > conftest.ts1
3137 : > conftest.ts2
3138 : > conftest.ts3
3139
3140 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
3141 # clobber the current shell's arguments. (Outer-level square brackets
3142 # are removed by m4; they're present so that m4 does not expand
3143 # <dollar><star>; be careful, easy to get confused.)
3144 if (
3145 set X `ls -t conftest.ts[12]` &&
3146 {
3147 test "$*" != "X conftest.ts1 conftest.ts2" ||
3148 test "$*" != "X conftest.ts2 conftest.ts1";
3149 }
3150 ); then :; else
3151 # If neither matched, then we have a broken ls. This can happen
3152 # if, for instance, CONFIG_SHELL is bash and it inherits a
3153 # broken ls alias from the environment. This has actually
3154 # happened. Such a system could not be considered "sane".
3155 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
3156 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3157 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3158 as_fn_error $? "ls -t produces unexpected output.
3159 Make sure there is not a broken ls alias in your environment.
3160 See 'config.log' for more details" "$LINENO" 5; }
3161 fi
3162
3163 for am_try_res in $am_try_resolutions; do
3164 # Any one fine-grained sleep might happen to cross the boundary
3165 # between two values of a coarser actual resolution, but if we do
3166 # two fine-grained sleeps in a row, at least one of them will fall
3167 # entirely within a coarse interval.
3168 echo alpha > conftest.ts1
3169 sleep $am_try_res
3170 echo beta > conftest.ts2
3171 sleep $am_try_res
3172 echo gamma > conftest.ts3
3173
3174 # We assume that 'ls -t' will make use of high-resolution
3175 # timestamps if the operating system supports them at all.
3176 if (set X `ls -t conftest.ts?` &&
3177 test "$2" = conftest.ts3 &&
3178 test "$3" = conftest.ts2 &&
3179 test "$4" = conftest.ts1); then
3180 #
3181 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
3182 # because we don't need to test make.
3183 make_ok=true
3184 if test $am_try_res != 1; then
3185 # But if we've succeeded so far with a subsecond resolution, we
3186 # have one more thing to check: make. It can happen that
3187 # everything else supports the subsecond mtimes, but make doesn't;
3188 # notably on macOS, which ships make 3.81 from 2006 (the last one
3189 # released under GPLv2). https://bugs.gnu.org/68808
3190 #
3191 # We test $MAKE if it is defined in the environment, else "make".
3192 # It might get overridden later, but our hope is that in practice
3193 # it does not matter: it is the system "make" which is (by far)
3194 # the most likely to be broken, whereas if the user overrides it,
3195 # probably they did so with a better, or at least not worse, make.
3196 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
3197 #
3198 # Create a Makefile (real tab character here):
3199 rm -f conftest.mk
3200 echo 'conftest.ts1: conftest.ts2' >conftest.mk
3201 echo ' touch conftest.ts2' >>conftest.mk
3202 #
3203 # Now, running
3204 # touch conftest.ts1; touch conftest.ts2; make
3205 # should touch ts1 because ts2 is newer. This could happen by luck,
3206 # but most often, it will fail if make's support is insufficient. So
3207 # test for several consecutive successes.
3208 #
3209 # (We reuse conftest.ts[12] because we still want to modify existing
3210 # files, not create new ones, per above.)
3211 n=0
3212 make=${MAKE-make}
3213 until test $n -eq 3; do
3214 echo one > conftest.ts1
3215 sleep $am_try_res
3216 echo two > conftest.ts2 # ts2 should now be newer than ts1
3217 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
3218 make_ok=false
3219 break # out of $n loop
3220 fi
3221 n=`expr $n + 1`
3222 done
3223 fi
3224 #
3225 if $make_ok; then
3226 # Everything we know to check worked out, so call this resolution good.
3227 am_cv_filesystem_timestamp_resolution=$am_try_res
3228 break # out of $am_try_res loop
3229 fi
3230 # Otherwise, we'll go on to check the next resolution.
3231 fi
3232 done
3233 rm -f conftest.ts?
3234 # (end _am_filesystem_timestamp_resolution)
3235 ;;
3236 esac
3237 fi
3238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
3239 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
3240
3241 # This check should not be cached, as it may vary across builds of
3242 # different projects.
3243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3244 printf %s "checking whether build environment is sane... " >&6; }
3245 # Reject unsafe characters in $srcdir or the absolute working directory
3246 # name. Accept space and tab only in the latter.
3247 am_lf='
3248 '
3249 case `pwd` in
3250 *[\\\"\#\$\&\'\`$am_lf]*)
3251 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3252 esac
3253 case $srcdir in
3254 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3255 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3256 esac
3257
3258 # Do 'set' in a subshell so we don't clobber the current shell's
3259 # arguments. Must try -L first in case configure is actually a
3260 # symlink; some systems play weird games with the mod time of symlinks
3261 # (eg FreeBSD returns the mod time of the symlink's containing
3262 # directory).
3263 am_build_env_is_sane=no
3264 am_has_slept=no
3265 rm -f conftest.file
3266 for am_try in 1 2; do
3267 echo "timestamp, slept: $am_has_slept" > conftest.file
3268 if (
3269 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3270 if test "$*" = "X"; then
3271 # -L didn't work.
3272 set X `ls -t "$srcdir/configure" conftest.file`
3273 fi
3274 test "$2" = conftest.file
3275 ); then
3276 am_build_env_is_sane=yes
3277 break
3278 fi
3279 # Just in case.
3280 sleep "$am_cv_filesystem_timestamp_resolution"
3281 am_has_slept=yes
3282 done
3283
3284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3285 printf "%s\n" "$am_build_env_is_sane" >&6; }
3286 if test "$am_build_env_is_sane" = no; then
3287 as_fn_error $? "newly created file is older than distributed files!
3288 Check your system clock" "$LINENO" 5
3289 fi
3290
3291 # If we didn't sleep, we still need to ensure time stamps of config.status and
3292 # generated files are strictly newer.
3293 am_sleep_pid=
3294 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3295 then :
3296
3297 else case e in #(
3298 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3299 am_sleep_pid=$!
3300 ;;
3301 esac
3302 fi
3303
3304 rm -f conftest.file
3305
3306 test "$program_prefix" != NONE &&
3307 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3308 # Use a double $ so make ignores it.
3309 test "$program_suffix" != NONE &&
3310 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3311 # Double any \ or $.
3312 # By default was 's,x,x', remove it if useless.
3313 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3314 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3315
3316
3317 # Expand $ac_aux_dir to an absolute path.
3318 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3319
3320
3321 if test x"${MISSING+set}" != xset; then
3322 MISSING="\${SHELL} '$am_aux_dir/missing'"
3323 fi
3324 # Use eval to expand $SHELL
3325 if eval "$MISSING --is-lightweight"; then
3326 am_missing_run="$MISSING "
3327 else
3328 am_missing_run=
3329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3330 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3331 fi
3332
3333 if test x"${install_sh+set}" != xset; then
3334 case $am_aux_dir in
3335 *\ * | *\ *)
3336 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3337 *)
3338 install_sh="\${SHELL} $am_aux_dir/install-sh"
3339 esac
3340 fi
3341
3342 # Installed binaries are usually stripped using 'strip' when the user
3343 # run "make install-strip". However 'strip' might not be the right
3344 # tool to use in cross-compilation environments, therefore Automake
3345 # will honor the 'STRIP' environment variable to overrule this program.
3346 if test "$cross_compiling" != no; then
3347 if test -n "$ac_tool_prefix"; then
3348 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3349 set dummy ${ac_tool_prefix}strip; ac_word=$2
3350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3351 printf %s "checking for $ac_word... " >&6; }
3352 if test ${ac_cv_prog_STRIP+y}
3353 then :
3354 printf %s "(cached) " >&6
3355 else case e in #(
3356 e) if test -n "$STRIP"; then
3357 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3358 else
3359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3360 for as_dir in $PATH
3361 do
3362 IFS=$as_save_IFS
3363 case $as_dir in #(((
3364 '') as_dir=./ ;;
3365 */) ;;
3366 *) as_dir=$as_dir/ ;;
3367 esac
3368 for ac_exec_ext in '' $ac_executable_extensions; do
3369 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3370 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3371 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3372 break 2
3373 fi
3374 done
3375 done
3376 IFS=$as_save_IFS
3377
3378 fi ;;
3379 esac
3380 fi
3381 STRIP=$ac_cv_prog_STRIP
3382 if test -n "$STRIP"; then
3383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3384 printf "%s\n" "$STRIP" >&6; }
3385 else
3386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3387 printf "%s\n" "no" >&6; }
3388 fi
3389
3390
3391 fi
3392 if test -z "$ac_cv_prog_STRIP"; then
3393 ac_ct_STRIP=$STRIP
3394 # Extract the first word of "strip", so it can be a program name with args.
3395 set dummy strip; ac_word=$2
3396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3397 printf %s "checking for $ac_word... " >&6; }
3398 if test ${ac_cv_prog_ac_ct_STRIP+y}
3399 then :
3400 printf %s "(cached) " >&6
3401 else case e in #(
3402 e) if test -n "$ac_ct_STRIP"; then
3403 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3404 else
3405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3406 for as_dir in $PATH
3407 do
3408 IFS=$as_save_IFS
3409 case $as_dir in #(((
3410 '') as_dir=./ ;;
3411 */) ;;
3412 *) as_dir=$as_dir/ ;;
3413 esac
3414 for ac_exec_ext in '' $ac_executable_extensions; do
3415 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3416 ac_cv_prog_ac_ct_STRIP="strip"
3417 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3418 break 2
3419 fi
3420 done
3421 done
3422 IFS=$as_save_IFS
3423
3424 fi ;;
3425 esac
3426 fi
3427 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3428 if test -n "$ac_ct_STRIP"; then
3429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3430 printf "%s\n" "$ac_ct_STRIP" >&6; }
3431 else
3432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3433 printf "%s\n" "no" >&6; }
3434 fi
3435
3436 if test "x$ac_ct_STRIP" = x; then
3437 STRIP=":"
3438 else
3439 case $cross_compiling:$ac_tool_warned in
3440 yes:)
3441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3442 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3443 ac_tool_warned=yes ;;
3444 esac
3445 STRIP=$ac_ct_STRIP
3446 fi
3447 else
3448 STRIP="$ac_cv_prog_STRIP"
3449 fi
3450
3451 fi
3452 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3453
3454
3455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3456 printf %s "checking for a race-free mkdir -p... " >&6; }
3457 if test -z "$MKDIR_P"; then
3458 if test ${ac_cv_path_mkdir+y}
3459 then :
3460 printf %s "(cached) " >&6
3461 else case e in #(
3462 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3463 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3464 do
3465 IFS=$as_save_IFS
3466 case $as_dir in #(((
3467 '') as_dir=./ ;;
3468 */) ;;
3469 *) as_dir=$as_dir/ ;;
3470 esac
3471 for ac_prog in mkdir gmkdir; do
3472 for ac_exec_ext in '' $ac_executable_extensions; do
3473 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3474 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3475 'mkdir ('*'coreutils) '* | \
3476 *'BusyBox '* | \
3477 'mkdir (fileutils) '4.1*)
3478 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3479 break 3;;
3480 esac
3481 done
3482 done
3483 done
3484 IFS=$as_save_IFS
3485 ;;
3486 esac
3487 fi
3488
3489 test -d ./--version && rmdir ./--version
3490 if test ${ac_cv_path_mkdir+y}; then
3491 MKDIR_P="$ac_cv_path_mkdir -p"
3492 else
3493 # As a last resort, use plain mkdir -p,
3494 # in the hope it doesn't have the bugs of ancient mkdir.
3495 MKDIR_P='mkdir -p'
3496 fi
3497 fi
3498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3499 printf "%s\n" "$MKDIR_P" >&6; }
3500
3501 for ac_prog in gawk mawk nawk awk
3502 do
3503 # Extract the first word of "$ac_prog", so it can be a program name with args.
3504 set dummy $ac_prog; ac_word=$2
3505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3506 printf %s "checking for $ac_word... " >&6; }
3507 if test ${ac_cv_prog_AWK+y}
3508 then :
3509 printf %s "(cached) " >&6
3510 else case e in #(
3511 e) if test -n "$AWK"; then
3512 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3513 else
3514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3515 for as_dir in $PATH
3516 do
3517 IFS=$as_save_IFS
3518 case $as_dir in #(((
3519 '') as_dir=./ ;;
3520 */) ;;
3521 *) as_dir=$as_dir/ ;;
3522 esac
3523 for ac_exec_ext in '' $ac_executable_extensions; do
3524 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3525 ac_cv_prog_AWK="$ac_prog"
3526 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3527 break 2
3528 fi
3529 done
3530 done
3531 IFS=$as_save_IFS
3532
3533 fi ;;
3534 esac
3535 fi
3536 AWK=$ac_cv_prog_AWK
3537 if test -n "$AWK"; then
3538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3539 printf "%s\n" "$AWK" >&6; }
3540 else
3541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3542 printf "%s\n" "no" >&6; }
3543 fi
3544
3545
3546 test -n "$AWK" && break
3547 done
3548
3549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3550 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3551 set x ${MAKE-make}
3552 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3553 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3554 then :
3555 printf %s "(cached) " >&6
3556 else case e in #(
3557 e) cat >conftest.make <<\_ACEOF
3558 SHELL = /bin/sh
3559 all:
3560 @echo '@@@%%%=$(MAKE)=@@@%%%'
3561 _ACEOF
3562 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3563 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3564 *@@@%%%=?*=@@@%%%*)
3565 eval ac_cv_prog_make_${ac_make}_set=yes;;
3566 *)
3567 eval ac_cv_prog_make_${ac_make}_set=no;;
3568 esac
3569 rm -f conftest.make ;;
3570 esac
3571 fi
3572 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3574 printf "%s\n" "yes" >&6; }
3575 SET_MAKE=
3576 else
3577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3578 printf "%s\n" "no" >&6; }
3579 SET_MAKE="MAKE=${MAKE-make}"
3580 fi
3581
3582 rm -rf .tst 2>/dev/null
3583 mkdir .tst 2>/dev/null
3584 if test -d .tst; then
3585 am__leading_dot=.
3586 else
3587 am__leading_dot=_
3588 fi
3589 rmdir .tst 2>/dev/null
3590
3591 AM_DEFAULT_VERBOSITY=1
3592 # Check whether --enable-silent-rules was given.
3593 if test ${enable_silent_rules+y}
3594 then :
3595 enableval=$enable_silent_rules;
3596 fi
3597
3598 am_make=${MAKE-make}
3599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3600 printf %s "checking whether $am_make supports nested variables... " >&6; }
3601 if test ${am_cv_make_support_nested_variables+y}
3602 then :
3603 printf %s "(cached) " >&6
3604 else case e in #(
3605 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3606 BAR0=false
3607 BAR1=true
3608 V=1
3609 am__doit:
3610 @$(TRUE)
3611 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3612 am_cv_make_support_nested_variables=yes
3613 else
3614 am_cv_make_support_nested_variables=no
3615 fi ;;
3616 esac
3617 fi
3618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3619 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3620 AM_BACKSLASH='\'
3621
3622 am__rm_f_notfound=
3623 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3624 then :
3625
3626 else case e in #(
3627 e) am__rm_f_notfound='""' ;;
3628 esac
3629 fi
3630
3631
3632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3633 printf %s "checking xargs -n works... " >&6; }
3634 if test ${am_cv_xargs_n_works+y}
3635 then :
3636 printf %s "(cached) " >&6
3637 else case e in #(
3638 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3639 3"
3640 then :
3641 am_cv_xargs_n_works=yes
3642 else case e in #(
3643 e) am_cv_xargs_n_works=no ;;
3644 esac
3645 fi ;;
3646 esac
3647 fi
3648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3649 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3650 if test "$am_cv_xargs_n_works" = yes
3651 then :
3652 am__xargs_n='xargs -n'
3653 else case e in #(
3654 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3655 ;;
3656 esac
3657 fi
3658
3659 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3660 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3661 # is not polluted with repeated "-I."
3662 am__isrc=' -I$(srcdir)'
3663 # test to see if srcdir already configured
3664 if test -f $srcdir/config.status; then
3665 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3666 fi
3667 fi
3668
3669 # test whether we have cygpath
3670 if test -z "$CYGPATH_W"; then
3671 if (cygpath --version) >/dev/null 2>/dev/null; then
3672 CYGPATH_W='cygpath -w'
3673 else
3674 CYGPATH_W=echo
3675 fi
3676 fi
3677
3678
3679 # Define the identity of the package.
3680 PACKAGE='ntfs-3g'
3681 VERSION='2026.2.25'
3682
3683
3684 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3685
3686
3687 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3688
3689 # Some tools Automake needs.
3690
3691 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3692
3693
3694 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3695
3696
3697 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3698
3699
3700 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3701
3702
3703 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3704
3705 # For better backward compatibility. To be removed once Automake 1.9.x
3706 # dies out for good. For more background, see:
3707 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3708 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3709 mkdir_p='$(MKDIR_P)'
3710
3711 # We need awk for the "check" target (and possibly the TAP driver). The
3712 # system "awk" is bad on some platforms.
3713 # Always define AMTAR for backward compatibility. Yes, it's still used
3714 # in the wild :-( We should find a proper way to deprecate it ...
3715 AMTAR='$${TAR-tar}'
3716
3717
3718 # We'll loop over all known methods to create a tar archive until one works.
3719 _am_tools='gnutar pax cpio none'
3720
3721 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3722
3723
3724
3725
3726
3727 # Variables for tags utilities; see am/tags.am
3728 if test -z "$CTAGS"; then
3729 CTAGS=ctags
3730 fi
3731
3732 if test -z "$ETAGS"; then
3733 ETAGS=etags
3734 fi
3735
3736 if test -z "$CSCOPE"; then
3737 CSCOPE=cscope
3738 fi
3739
3740
3741
3742
3743
3744
3745
3746 ac_config_headers="$ac_config_headers config.h"
3747
3748
3749
3750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3751 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3752 # Check whether --enable-maintainer-mode was given.
3753 if test ${enable_maintainer_mode+y}
3754 then :
3755 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3756 else case e in #(
3757 e) USE_MAINTAINER_MODE=no ;;
3758 esac
3759 fi
3760
3761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3762 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3763 if test $USE_MAINTAINER_MODE = yes; then
3764 MAINTAINER_MODE_TRUE=
3765 MAINTAINER_MODE_FALSE='#'
3766 else
3767 MAINTAINER_MODE_TRUE='#'
3768 MAINTAINER_MODE_FALSE=
3769 fi
3770
3771 MAINT=$MAINTAINER_MODE_TRUE
3772
3773
3774
3775 # Options
3776 # Check whether --enable-debug was given.
3777 if test ${enable_debug+y}
3778 then :
3779 enableval=$enable_debug;
3780 else case e in #(
3781 e) enable_debug="no"
3782 ;;
3783 esac
3784 fi
3785
3786
3787 # Check whether --enable-warnings was given.
3788 if test ${enable_warnings+y}
3789 then :
3790 enableval=$enable_warnings;
3791 else case e in #(
3792 e) enable_warnings="no"
3793 ;;
3794 esac
3795 fi
3796
3797
3798 # Check whether --enable-pedantic was given.
3799 if test ${enable_pedantic+y}
3800 then :
3801 enableval=$enable_pedantic;
3802 else case e in #(
3803 e) enable_pedantic="no"
3804 ;;
3805 esac
3806 fi
3807
3808
3809 # Check whether --enable-really-static was given.
3810 if test ${enable_really_static+y}
3811 then :
3812 enableval=$enable_really_static;
3813 else case e in #(
3814 e) enable_really_static="no"
3815 ;;
3816 esac
3817 fi
3818
3819
3820 # Check whether --enable-mount-helper was given.
3821 if test ${enable_mount_helper+y}
3822 then :
3823 enableval=$enable_mount_helper;
3824 else case e in #(
3825 e)
3826 case "${target_os}" in
3827 linux*) enable_mount_helper="yes" ;;
3828 *) enable_mount_helper="no" ;;
3829 esac
3830
3831 ;;
3832 esac
3833 fi
3834
3835
3836 # Check whether --enable-ldscript was given.
3837 if test ${enable_ldscript+y}
3838 then :
3839 enableval=$enable_ldscript;
3840 else case e in #(
3841 e) enable_ldscript="no"
3842 ;;
3843 esac
3844 fi
3845
3846
3847 # Check whether --enable-ldconfig was given.
3848 if test ${enable_ldconfig+y}
3849 then :
3850 enableval=$enable_ldconfig;
3851 else case e in #(
3852 e) enable_ldconfig="yes"
3853 ;;
3854 esac
3855 fi
3856
3857
3858 # Check whether --enable-library was given.
3859 if test ${enable_library+y}
3860 then :
3861 enableval=$enable_library;
3862 else case e in #(
3863 e) enable_library="yes"
3864 ;;
3865 esac
3866 fi
3867
3868
3869 # Check whether --enable-mtab was given.
3870 if test ${enable_mtab+y}
3871 then :
3872 enableval=$enable_mtab;
3873 else case e in #(
3874 e) enable_mtab="yes"
3875 ;;
3876 esac
3877 fi
3878
3879
3880 # Check whether --enable-posix-acls was given.
3881 if test ${enable_posix_acls+y}
3882 then :
3883 enableval=$enable_posix_acls;
3884 else case e in #(
3885 e) enable_posix_acls="no"
3886 ;;
3887 esac
3888 fi
3889
3890
3891 # Check whether --enable-xattr-mappings was given.
3892 if test ${enable_xattr_mappings+y}
3893 then :
3894 enableval=$enable_xattr_mappings;
3895 else case e in #(
3896 e) enable_xattr_mappings="no"
3897 ;;
3898 esac
3899 fi
3900
3901
3902 # Check whether --enable-plugins was given.
3903 if test ${enable_plugins+y}
3904 then :
3905 enableval=$enable_plugins; if test x${enableval} = "xyes"; then disable_plugins="no"; fi
3906 else case e in #(
3907 e) disable_plugins="no"
3908 ;;
3909 esac
3910 fi
3911
3912
3913 # Check whether --enable-device-default-io-ops was given.
3914 if test ${enable_device_default_io_ops+y}
3915 then :
3916 enableval=$enable_device_default_io_ops;
3917 else case e in #(
3918 e) enable_device_default_io_ops="yes"
3919 ;;
3920 esac
3921 fi
3922
3923
3924 # Check whether --enable-ntfs-3g was given.
3925 if test ${enable_ntfs_3g+y}
3926 then :
3927 enableval=$enable_ntfs_3g;
3928 else case e in #(
3929 e) enable_ntfs_3g="yes"
3930 ;;
3931 esac
3932 fi
3933
3934
3935 # Check whether --enable-ntfsprogs was given.
3936 if test ${enable_ntfsprogs+y}
3937 then :
3938 enableval=$enable_ntfsprogs;
3939 else case e in #(
3940 e) enable_ntfsprogs="yes"
3941 ;;
3942 esac
3943 fi
3944
3945
3946 # Check whether --enable-crypto was given.
3947 if test ${enable_crypto+y}
3948 then :
3949 enableval=$enable_crypto;
3950 else case e in #(
3951 e) enable_crypto=no
3952 ;;
3953 esac
3954 fi
3955
3956
3957 # Check whether --enable-extras was given.
3958 if test ${enable_extras+y}
3959 then :
3960 enableval=$enable_extras;
3961 else case e in #(
3962 e) enable_extras="no"
3963 ;;
3964 esac
3965 fi
3966
3967
3968 # Check whether --enable-quarantined was given.
3969 if test ${enable_quarantined+y}
3970 then :
3971 enableval=$enable_quarantined;
3972 else case e in #(
3973 e) enable_quarantined="no"
3974 ;;
3975 esac
3976 fi
3977
3978
3979 # Check whether --enable-nfconv was given.
3980 if test ${enable_nfconv+y}
3981 then :
3982 enableval=$enable_nfconv; enable_nfconv="no"
3983 else case e in #(
3984 e)
3985 case "${target_os}" in
3986 darwin*) enable_nfconv="yes" ;;
3987 *) enable_nfconv="no" ;;
3988 esac
3989
3990 ;;
3991 esac
3992 fi
3993
3994
3995 # pthread_rwlock_t requires _GNU_SOURCE
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005 DEPDIR="${am__leading_dot}deps"
4006
4007 ac_config_commands="$ac_config_commands depfiles"
4008
4009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4010 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4011 cat > confinc.mk << 'END'
4012 am__doit:
4013 @echo this is the am__doit target >confinc.out
4014 .PHONY: am__doit
4015 END
4016 am__include="#"
4017 am__quote=
4018 # BSD make does it like this.
4019 echo '.include "confinc.mk" # ignored' > confmf.BSD
4020 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4021 echo 'include confinc.mk # ignored' > confmf.GNU
4022 _am_result=no
4023 for s in GNU BSD; do
4024 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4025 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4026 ac_status=$?
4027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028 (exit $ac_status); }
4029 case $?:`cat confinc.out 2>/dev/null` in #(
4030 '0:this is the am__doit target') :
4031 case $s in #(
4032 BSD) :
4033 am__include='.include' am__quote='"' ;; #(
4034 *) :
4035 am__include='include' am__quote='' ;;
4036 esac ;; #(
4037 *) :
4038 ;;
4039 esac
4040 if test "$am__include" != "#"; then
4041 _am_result="yes ($s style)"
4042 break
4043 fi
4044 done
4045 rm -f confinc.* confmf.*
4046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4047 printf "%s\n" "${_am_result}" >&6; }
4048
4049 # Check whether --enable-dependency-tracking was given.
4050 if test ${enable_dependency_tracking+y}
4051 then :
4052 enableval=$enable_dependency_tracking;
4053 fi
4054
4055 if test "x$enable_dependency_tracking" != xno; then
4056 am_depcomp="$ac_aux_dir/depcomp"
4057 AMDEPBACKSLASH='\'
4058 am__nodep='_no'
4059 fi
4060 if test "x$enable_dependency_tracking" != xno; then
4061 AMDEP_TRUE=
4062 AMDEP_FALSE='#'
4063 else
4064 AMDEP_TRUE='#'
4065 AMDEP_FALSE=
4066 fi
4067
4068
4069 ac_ext=c
4070 ac_cpp='$CPP $CPPFLAGS'
4071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4074 if test -n "$ac_tool_prefix"; then
4075 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4076 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4078 printf %s "checking for $ac_word... " >&6; }
4079 if test ${ac_cv_prog_CC+y}
4080 then :
4081 printf %s "(cached) " >&6
4082 else case e in #(
4083 e) if test -n "$CC"; then
4084 ac_cv_prog_CC="$CC" # Let the user override the test.
4085 else
4086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4087 for as_dir in $PATH
4088 do
4089 IFS=$as_save_IFS
4090 case $as_dir in #(((
4091 '') as_dir=./ ;;
4092 */) ;;
4093 *) as_dir=$as_dir/ ;;
4094 esac
4095 for ac_exec_ext in '' $ac_executable_extensions; do
4096 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4097 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4098 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4099 break 2
4100 fi
4101 done
4102 done
4103 IFS=$as_save_IFS
4104
4105 fi ;;
4106 esac
4107 fi
4108 CC=$ac_cv_prog_CC
4109 if test -n "$CC"; then
4110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4111 printf "%s\n" "$CC" >&6; }
4112 else
4113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4114 printf "%s\n" "no" >&6; }
4115 fi
4116
4117
4118 fi
4119 if test -z "$ac_cv_prog_CC"; then
4120 ac_ct_CC=$CC
4121 # Extract the first word of "gcc", so it can be a program name with args.
4122 set dummy gcc; ac_word=$2
4123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4124 printf %s "checking for $ac_word... " >&6; }
4125 if test ${ac_cv_prog_ac_ct_CC+y}
4126 then :
4127 printf %s "(cached) " >&6
4128 else case e in #(
4129 e) if test -n "$ac_ct_CC"; then
4130 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4131 else
4132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4133 for as_dir in $PATH
4134 do
4135 IFS=$as_save_IFS
4136 case $as_dir in #(((
4137 '') as_dir=./ ;;
4138 */) ;;
4139 *) as_dir=$as_dir/ ;;
4140 esac
4141 for ac_exec_ext in '' $ac_executable_extensions; do
4142 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4143 ac_cv_prog_ac_ct_CC="gcc"
4144 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4145 break 2
4146 fi
4147 done
4148 done
4149 IFS=$as_save_IFS
4150
4151 fi ;;
4152 esac
4153 fi
4154 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4155 if test -n "$ac_ct_CC"; then
4156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4157 printf "%s\n" "$ac_ct_CC" >&6; }
4158 else
4159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4160 printf "%s\n" "no" >&6; }
4161 fi
4162
4163 if test "x$ac_ct_CC" = x; then
4164 CC=""
4165 else
4166 case $cross_compiling:$ac_tool_warned in
4167 yes:)
4168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4169 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4170 ac_tool_warned=yes ;;
4171 esac
4172 CC=$ac_ct_CC
4173 fi
4174 else
4175 CC="$ac_cv_prog_CC"
4176 fi
4177
4178 if test -z "$CC"; then
4179 if test -n "$ac_tool_prefix"; then
4180 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4181 set dummy ${ac_tool_prefix}cc; ac_word=$2
4182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4183 printf %s "checking for $ac_word... " >&6; }
4184 if test ${ac_cv_prog_CC+y}
4185 then :
4186 printf %s "(cached) " >&6
4187 else case e in #(
4188 e) if test -n "$CC"; then
4189 ac_cv_prog_CC="$CC" # Let the user override the test.
4190 else
4191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4192 for as_dir in $PATH
4193 do
4194 IFS=$as_save_IFS
4195 case $as_dir in #(((
4196 '') as_dir=./ ;;
4197 */) ;;
4198 *) as_dir=$as_dir/ ;;
4199 esac
4200 for ac_exec_ext in '' $ac_executable_extensions; do
4201 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4202 ac_cv_prog_CC="${ac_tool_prefix}cc"
4203 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4204 break 2
4205 fi
4206 done
4207 done
4208 IFS=$as_save_IFS
4209
4210 fi ;;
4211 esac
4212 fi
4213 CC=$ac_cv_prog_CC
4214 if test -n "$CC"; then
4215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4216 printf "%s\n" "$CC" >&6; }
4217 else
4218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4219 printf "%s\n" "no" >&6; }
4220 fi
4221
4222
4223 fi
4224 fi
4225 if test -z "$CC"; then
4226 # Extract the first word of "cc", so it can be a program name with args.
4227 set dummy cc; ac_word=$2
4228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4229 printf %s "checking for $ac_word... " >&6; }
4230 if test ${ac_cv_prog_CC+y}
4231 then :
4232 printf %s "(cached) " >&6
4233 else case e in #(
4234 e) if test -n "$CC"; then
4235 ac_cv_prog_CC="$CC" # Let the user override the test.
4236 else
4237 ac_prog_rejected=no
4238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239 for as_dir in $PATH
4240 do
4241 IFS=$as_save_IFS
4242 case $as_dir in #(((
4243 '') as_dir=./ ;;
4244 */) ;;
4245 *) as_dir=$as_dir/ ;;
4246 esac
4247 for ac_exec_ext in '' $ac_executable_extensions; do
4248 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4249 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4250 ac_prog_rejected=yes
4251 continue
4252 fi
4253 ac_cv_prog_CC="cc"
4254 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4255 break 2
4256 fi
4257 done
4258 done
4259 IFS=$as_save_IFS
4260
4261 if test $ac_prog_rejected = yes; then
4262 # We found a bogon in the path, so make sure we never use it.
4263 set dummy $ac_cv_prog_CC
4264 shift
4265 if test $# != 0; then
4266 # We chose a different compiler from the bogus one.
4267 # However, it has the same basename, so the bogon will be chosen
4268 # first if we set CC to just the basename; use the full file name.
4269 shift
4270 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4271 fi
4272 fi
4273 fi ;;
4274 esac
4275 fi
4276 CC=$ac_cv_prog_CC
4277 if test -n "$CC"; then
4278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4279 printf "%s\n" "$CC" >&6; }
4280 else
4281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4282 printf "%s\n" "no" >&6; }
4283 fi
4284
4285
4286 fi
4287 if test -z "$CC"; then
4288 if test -n "$ac_tool_prefix"; then
4289 for ac_prog in cl.exe
4290 do
4291 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4292 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4294 printf %s "checking for $ac_word... " >&6; }
4295 if test ${ac_cv_prog_CC+y}
4296 then :
4297 printf %s "(cached) " >&6
4298 else case e in #(
4299 e) if test -n "$CC"; then
4300 ac_cv_prog_CC="$CC" # Let the user override the test.
4301 else
4302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4303 for as_dir in $PATH
4304 do
4305 IFS=$as_save_IFS
4306 case $as_dir in #(((
4307 '') as_dir=./ ;;
4308 */) ;;
4309 *) as_dir=$as_dir/ ;;
4310 esac
4311 for ac_exec_ext in '' $ac_executable_extensions; do
4312 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4313 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4314 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4315 break 2
4316 fi
4317 done
4318 done
4319 IFS=$as_save_IFS
4320
4321 fi ;;
4322 esac
4323 fi
4324 CC=$ac_cv_prog_CC
4325 if test -n "$CC"; then
4326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4327 printf "%s\n" "$CC" >&6; }
4328 else
4329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4330 printf "%s\n" "no" >&6; }
4331 fi
4332
4333
4334 test -n "$CC" && break
4335 done
4336 fi
4337 if test -z "$CC"; then
4338 ac_ct_CC=$CC
4339 for ac_prog in cl.exe
4340 do
4341 # Extract the first word of "$ac_prog", so it can be a program name with args.
4342 set dummy $ac_prog; ac_word=$2
4343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4344 printf %s "checking for $ac_word... " >&6; }
4345 if test ${ac_cv_prog_ac_ct_CC+y}
4346 then :
4347 printf %s "(cached) " >&6
4348 else case e in #(
4349 e) if test -n "$ac_ct_CC"; then
4350 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4351 else
4352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4353 for as_dir in $PATH
4354 do
4355 IFS=$as_save_IFS
4356 case $as_dir in #(((
4357 '') as_dir=./ ;;
4358 */) ;;
4359 *) as_dir=$as_dir/ ;;
4360 esac
4361 for ac_exec_ext in '' $ac_executable_extensions; do
4362 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4363 ac_cv_prog_ac_ct_CC="$ac_prog"
4364 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4365 break 2
4366 fi
4367 done
4368 done
4369 IFS=$as_save_IFS
4370
4371 fi ;;
4372 esac
4373 fi
4374 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4375 if test -n "$ac_ct_CC"; then
4376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4377 printf "%s\n" "$ac_ct_CC" >&6; }
4378 else
4379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4380 printf "%s\n" "no" >&6; }
4381 fi
4382
4383
4384 test -n "$ac_ct_CC" && break
4385 done
4386
4387 if test "x$ac_ct_CC" = x; then
4388 CC=""
4389 else
4390 case $cross_compiling:$ac_tool_warned in
4391 yes:)
4392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4393 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4394 ac_tool_warned=yes ;;
4395 esac
4396 CC=$ac_ct_CC
4397 fi
4398 fi
4399
4400 fi
4401 if test -z "$CC"; then
4402 if test -n "$ac_tool_prefix"; then
4403 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4404 set dummy ${ac_tool_prefix}clang; ac_word=$2
4405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4406 printf %s "checking for $ac_word... " >&6; }
4407 if test ${ac_cv_prog_CC+y}
4408 then :
4409 printf %s "(cached) " >&6
4410 else case e in #(
4411 e) if test -n "$CC"; then
4412 ac_cv_prog_CC="$CC" # Let the user override the test.
4413 else
4414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4415 for as_dir in $PATH
4416 do
4417 IFS=$as_save_IFS
4418 case $as_dir in #(((
4419 '') as_dir=./ ;;
4420 */) ;;
4421 *) as_dir=$as_dir/ ;;
4422 esac
4423 for ac_exec_ext in '' $ac_executable_extensions; do
4424 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4425 ac_cv_prog_CC="${ac_tool_prefix}clang"
4426 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4427 break 2
4428 fi
4429 done
4430 done
4431 IFS=$as_save_IFS
4432
4433 fi ;;
4434 esac
4435 fi
4436 CC=$ac_cv_prog_CC
4437 if test -n "$CC"; then
4438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4439 printf "%s\n" "$CC" >&6; }
4440 else
4441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4442 printf "%s\n" "no" >&6; }
4443 fi
4444
4445
4446 fi
4447 if test -z "$ac_cv_prog_CC"; then
4448 ac_ct_CC=$CC
4449 # Extract the first word of "clang", so it can be a program name with args.
4450 set dummy clang; ac_word=$2
4451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4452 printf %s "checking for $ac_word... " >&6; }
4453 if test ${ac_cv_prog_ac_ct_CC+y}
4454 then :
4455 printf %s "(cached) " >&6
4456 else case e in #(
4457 e) if test -n "$ac_ct_CC"; then
4458 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4459 else
4460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4461 for as_dir in $PATH
4462 do
4463 IFS=$as_save_IFS
4464 case $as_dir in #(((
4465 '') as_dir=./ ;;
4466 */) ;;
4467 *) as_dir=$as_dir/ ;;
4468 esac
4469 for ac_exec_ext in '' $ac_executable_extensions; do
4470 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4471 ac_cv_prog_ac_ct_CC="clang"
4472 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4473 break 2
4474 fi
4475 done
4476 done
4477 IFS=$as_save_IFS
4478
4479 fi ;;
4480 esac
4481 fi
4482 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4483 if test -n "$ac_ct_CC"; then
4484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4485 printf "%s\n" "$ac_ct_CC" >&6; }
4486 else
4487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4488 printf "%s\n" "no" >&6; }
4489 fi
4490
4491 if test "x$ac_ct_CC" = x; then
4492 CC=""
4493 else
4494 case $cross_compiling:$ac_tool_warned in
4495 yes:)
4496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4497 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4498 ac_tool_warned=yes ;;
4499 esac
4500 CC=$ac_ct_CC
4501 fi
4502 else
4503 CC="$ac_cv_prog_CC"
4504 fi
4505
4506 fi
4507
4508
4509 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4510 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4511 as_fn_error $? "no acceptable C compiler found in \$PATH
4512 See 'config.log' for more details" "$LINENO" 5; }
4513
4514 # Provide some information about the compiler.
4515 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4516 set X $ac_compile
4517 ac_compiler=$2
4518 for ac_option in --version -v -V -qversion -version; do
4519 { { ac_try="$ac_compiler $ac_option >&5"
4520 case "(($ac_try" in
4521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4522 *) ac_try_echo=$ac_try;;
4523 esac
4524 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4525 printf "%s\n" "$ac_try_echo"; } >&5
4526 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4527 ac_status=$?
4528 if test -s conftest.err; then
4529 sed '10a\
4530 ... rest of stderr output deleted ...
4531 10q' conftest.err >conftest.er1
4532 cat conftest.er1 >&5
4533 fi
4534 rm -f conftest.er1 conftest.err
4535 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4536 test $ac_status = 0; }
4537 done
4538
4539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4540 /* end confdefs.h. */
4541
4542 int
4543 main (void)
4544 {
4545
4546 ;
4547 return 0;
4548 }
4549 _ACEOF
4550 ac_clean_files_save=$ac_clean_files
4551 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4552 # Try to create an executable without -o first, disregard a.out.
4553 # It will help us diagnose broken compilers, and finding out an intuition
4554 # of exeext.
4555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4556 printf %s "checking whether the C compiler works... " >&6; }
4557 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4558
4559 # The possible output files:
4560 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4561
4562 ac_rmfiles=
4563 for ac_file in $ac_files
4564 do
4565 case $ac_file in
4566 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4567 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4568 esac
4569 done
4570 rm -f $ac_rmfiles
4571
4572 if { { ac_try="$ac_link_default"
4573 case "(($ac_try" in
4574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4575 *) ac_try_echo=$ac_try;;
4576 esac
4577 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4578 printf "%s\n" "$ac_try_echo"; } >&5
4579 (eval "$ac_link_default") 2>&5
4580 ac_status=$?
4581 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4582 test $ac_status = 0; }
4583 then :
4584 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4585 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4586 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4587 # so that the user can short-circuit this test for compilers unknown to
4588 # Autoconf.
4589 for ac_file in $ac_files ''
4590 do
4591 test -f "$ac_file" || continue
4592 case $ac_file in
4593 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4594 ;;
4595 [ab].out )
4596 # We found the default executable, but exeext='' is most
4597 # certainly right.
4598 break;;
4599 *.* )
4600 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4601 then :; else
4602 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4603 fi
4604 # We set ac_cv_exeext here because the later test for it is not
4605 # safe: cross compilers may not add the suffix if given an '-o'
4606 # argument, so we may need to know it at that point already.
4607 # Even if this section looks crufty: it has the advantage of
4608 # actually working.
4609 break;;
4610 * )
4611 break;;
4612 esac
4613 done
4614 test "$ac_cv_exeext" = no && ac_cv_exeext=
4615
4616 else case e in #(
4617 e) ac_file='' ;;
4618 esac
4619 fi
4620 if test -z "$ac_file"
4621 then :
4622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4623 printf "%s\n" "no" >&6; }
4624 printf "%s\n" "$as_me: failed program was:" >&5
4625 sed 's/^/| /' conftest.$ac_ext >&5
4626
4627 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4628 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4629 as_fn_error 77 "C compiler cannot create executables
4630 See 'config.log' for more details" "$LINENO" 5; }
4631 else case e in #(
4632 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4633 printf "%s\n" "yes" >&6; } ;;
4634 esac
4635 fi
4636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4637 printf %s "checking for C compiler default output file name... " >&6; }
4638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4639 printf "%s\n" "$ac_file" >&6; }
4640 ac_exeext=$ac_cv_exeext
4641
4642 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4643 ac_clean_files=$ac_clean_files_save
4644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4645 printf %s "checking for suffix of executables... " >&6; }
4646 if { { ac_try="$ac_link"
4647 case "(($ac_try" in
4648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4649 *) ac_try_echo=$ac_try;;
4650 esac
4651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4652 printf "%s\n" "$ac_try_echo"; } >&5
4653 (eval "$ac_link") 2>&5
4654 ac_status=$?
4655 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4656 test $ac_status = 0; }
4657 then :
4658 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4659 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4660 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4661 # 'rm'.
4662 for ac_file in conftest.exe conftest conftest.*; do
4663 test -f "$ac_file" || continue
4664 case $ac_file in
4665 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4666 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4667 break;;
4668 * ) break;;
4669 esac
4670 done
4671 else case e in #(
4672 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4673 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4674 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4675 See 'config.log' for more details" "$LINENO" 5; } ;;
4676 esac
4677 fi
4678 rm -f conftest conftest$ac_cv_exeext
4679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4680 printf "%s\n" "$ac_cv_exeext" >&6; }
4681
4682 rm -f conftest.$ac_ext
4683 EXEEXT=$ac_cv_exeext
4684 ac_exeext=$EXEEXT
4685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4686 /* end confdefs.h. */
4687 #include <stdio.h>
4688 int
4689 main (void)
4690 {
4691 FILE *f = fopen ("conftest.out", "w");
4692 if (!f)
4693 return 1;
4694 return ferror (f) || fclose (f) != 0;
4695
4696 ;
4697 return 0;
4698 }
4699 _ACEOF
4700 ac_clean_files="$ac_clean_files conftest.out"
4701 # Check that the compiler produces executables we can run. If not, either
4702 # the compiler is broken, or we cross compile.
4703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4704 printf %s "checking whether we are cross compiling... " >&6; }
4705 if test "$cross_compiling" != yes; then
4706 { { ac_try="$ac_link"
4707 case "(($ac_try" in
4708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4709 *) ac_try_echo=$ac_try;;
4710 esac
4711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4712 printf "%s\n" "$ac_try_echo"; } >&5
4713 (eval "$ac_link") 2>&5
4714 ac_status=$?
4715 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4716 test $ac_status = 0; }
4717 if { ac_try='./conftest$ac_cv_exeext'
4718 { { case "(($ac_try" in
4719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4720 *) ac_try_echo=$ac_try;;
4721 esac
4722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4723 printf "%s\n" "$ac_try_echo"; } >&5
4724 (eval "$ac_try") 2>&5
4725 ac_status=$?
4726 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4727 test $ac_status = 0; }; }; then
4728 cross_compiling=no
4729 else
4730 if test "$cross_compiling" = maybe; then
4731 cross_compiling=yes
4732 else
4733 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4734 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4735 as_fn_error 77 "cannot run C compiled programs.
4736 If you meant to cross compile, use '--host'.
4737 See 'config.log' for more details" "$LINENO" 5; }
4738 fi
4739 fi
4740 fi
4741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4742 printf "%s\n" "$cross_compiling" >&6; }
4743
4744 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4745 conftest.o conftest.obj conftest.out
4746 ac_clean_files=$ac_clean_files_save
4747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4748 printf %s "checking for suffix of object files... " >&6; }
4749 if test ${ac_cv_objext+y}
4750 then :
4751 printf %s "(cached) " >&6
4752 else case e in #(
4753 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4754 /* end confdefs.h. */
4755
4756 int
4757 main (void)
4758 {
4759
4760 ;
4761 return 0;
4762 }
4763 _ACEOF
4764 rm -f conftest.o conftest.obj
4765 if { { ac_try="$ac_compile"
4766 case "(($ac_try" in
4767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4768 *) ac_try_echo=$ac_try;;
4769 esac
4770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4771 printf "%s\n" "$ac_try_echo"; } >&5
4772 (eval "$ac_compile") 2>&5
4773 ac_status=$?
4774 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4775 test $ac_status = 0; }
4776 then :
4777 for ac_file in conftest.o conftest.obj conftest.*; do
4778 test -f "$ac_file" || continue;
4779 case $ac_file in
4780 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4781 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4782 break;;
4783 esac
4784 done
4785 else case e in #(
4786 e) printf "%s\n" "$as_me: failed program was:" >&5
4787 sed 's/^/| /' conftest.$ac_ext >&5
4788
4789 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4790 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4791 as_fn_error $? "cannot compute suffix of object files: cannot compile
4792 See 'config.log' for more details" "$LINENO" 5; } ;;
4793 esac
4794 fi
4795 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4796 esac
4797 fi
4798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4799 printf "%s\n" "$ac_cv_objext" >&6; }
4800 OBJEXT=$ac_cv_objext
4801 ac_objext=$OBJEXT
4802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4803 printf %s "checking whether the compiler supports GNU C... " >&6; }
4804 if test ${ac_cv_c_compiler_gnu+y}
4805 then :
4806 printf %s "(cached) " >&6
4807 else case e in #(
4808 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4809 /* end confdefs.h. */
4810
4811 int
4812 main (void)
4813 {
4814 #ifndef __GNUC__
4815 choke me
4816 #endif
4817
4818 ;
4819 return 0;
4820 }
4821 _ACEOF
4822 if ac_fn_c_try_compile "$LINENO"
4823 then :
4824 ac_compiler_gnu=yes
4825 else case e in #(
4826 e) ac_compiler_gnu=no ;;
4827 esac
4828 fi
4829 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4830 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4831 ;;
4832 esac
4833 fi
4834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4835 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4837
4838 if test $ac_compiler_gnu = yes; then
4839 GCC=yes
4840 else
4841 GCC=
4842 fi
4843 ac_test_CFLAGS=${CFLAGS+y}
4844 ac_save_CFLAGS=$CFLAGS
4845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4846 printf %s "checking whether $CC accepts -g... " >&6; }
4847 if test ${ac_cv_prog_cc_g+y}
4848 then :
4849 printf %s "(cached) " >&6
4850 else case e in #(
4851 e) ac_save_c_werror_flag=$ac_c_werror_flag
4852 ac_c_werror_flag=yes
4853 ac_cv_prog_cc_g=no
4854 CFLAGS="-g"
4855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4856 /* end confdefs.h. */
4857
4858 int
4859 main (void)
4860 {
4861
4862 ;
4863 return 0;
4864 }
4865 _ACEOF
4866 if ac_fn_c_try_compile "$LINENO"
4867 then :
4868 ac_cv_prog_cc_g=yes
4869 else case e in #(
4870 e) CFLAGS=""
4871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4872 /* end confdefs.h. */
4873
4874 int
4875 main (void)
4876 {
4877
4878 ;
4879 return 0;
4880 }
4881 _ACEOF
4882 if ac_fn_c_try_compile "$LINENO"
4883 then :
4884
4885 else case e in #(
4886 e) ac_c_werror_flag=$ac_save_c_werror_flag
4887 CFLAGS="-g"
4888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4889 /* end confdefs.h. */
4890
4891 int
4892 main (void)
4893 {
4894
4895 ;
4896 return 0;
4897 }
4898 _ACEOF
4899 if ac_fn_c_try_compile "$LINENO"
4900 then :
4901 ac_cv_prog_cc_g=yes
4902 fi
4903 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4904 esac
4905 fi
4906 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4907 esac
4908 fi
4909 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4910 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4911 esac
4912 fi
4913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4914 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4915 if test $ac_test_CFLAGS; then
4916 CFLAGS=$ac_save_CFLAGS
4917 elif test $ac_cv_prog_cc_g = yes; then
4918 if test "$GCC" = yes; then
4919 CFLAGS="-g -O2"
4920 else
4921 CFLAGS="-g"
4922 fi
4923 else
4924 if test "$GCC" = yes; then
4925 CFLAGS="-O2"
4926 else
4927 CFLAGS=
4928 fi
4929 fi
4930 ac_prog_cc_stdc=no
4931 if test x$ac_prog_cc_stdc = xno
4932 then :
4933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4934 printf %s "checking for $CC option to enable C11 features... " >&6; }
4935 if test ${ac_cv_prog_cc_c11+y}
4936 then :
4937 printf %s "(cached) " >&6
4938 else case e in #(
4939 e) ac_cv_prog_cc_c11=no
4940 ac_save_CC=$CC
4941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4942 /* end confdefs.h. */
4943 $ac_c_conftest_c11_program
4944 _ACEOF
4945 for ac_arg in '' -std=gnu11
4946 do
4947 CC="$ac_save_CC $ac_arg"
4948 if ac_fn_c_try_compile "$LINENO"
4949 then :
4950 ac_cv_prog_cc_c11=$ac_arg
4951 fi
4952 rm -f core conftest.err conftest.$ac_objext conftest.beam
4953 test "x$ac_cv_prog_cc_c11" != "xno" && break
4954 done
4955 rm -f conftest.$ac_ext
4956 CC=$ac_save_CC ;;
4957 esac
4958 fi
4959
4960 if test "x$ac_cv_prog_cc_c11" = xno
4961 then :
4962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4963 printf "%s\n" "unsupported" >&6; }
4964 else case e in #(
4965 e) if test "x$ac_cv_prog_cc_c11" = x
4966 then :
4967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4968 printf "%s\n" "none needed" >&6; }
4969 else case e in #(
4970 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4971 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4972 CC="$CC $ac_cv_prog_cc_c11" ;;
4973 esac
4974 fi
4975 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4976 ac_prog_cc_stdc=c11 ;;
4977 esac
4978 fi
4979 fi
4980 if test x$ac_prog_cc_stdc = xno
4981 then :
4982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4983 printf %s "checking for $CC option to enable C99 features... " >&6; }
4984 if test ${ac_cv_prog_cc_c99+y}
4985 then :
4986 printf %s "(cached) " >&6
4987 else case e in #(
4988 e) ac_cv_prog_cc_c99=no
4989 ac_save_CC=$CC
4990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4991 /* end confdefs.h. */
4992 $ac_c_conftest_c99_program
4993 _ACEOF
4994 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4995 do
4996 CC="$ac_save_CC $ac_arg"
4997 if ac_fn_c_try_compile "$LINENO"
4998 then :
4999 ac_cv_prog_cc_c99=$ac_arg
5000 fi
5001 rm -f core conftest.err conftest.$ac_objext conftest.beam
5002 test "x$ac_cv_prog_cc_c99" != "xno" && break
5003 done
5004 rm -f conftest.$ac_ext
5005 CC=$ac_save_CC ;;
5006 esac
5007 fi
5008
5009 if test "x$ac_cv_prog_cc_c99" = xno
5010 then :
5011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5012 printf "%s\n" "unsupported" >&6; }
5013 else case e in #(
5014 e) if test "x$ac_cv_prog_cc_c99" = x
5015 then :
5016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5017 printf "%s\n" "none needed" >&6; }
5018 else case e in #(
5019 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5020 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5021 CC="$CC $ac_cv_prog_cc_c99" ;;
5022 esac
5023 fi
5024 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5025 ac_prog_cc_stdc=c99 ;;
5026 esac
5027 fi
5028 fi
5029 if test x$ac_prog_cc_stdc = xno
5030 then :
5031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5032 printf %s "checking for $CC option to enable C89 features... " >&6; }
5033 if test ${ac_cv_prog_cc_c89+y}
5034 then :
5035 printf %s "(cached) " >&6
5036 else case e in #(
5037 e) ac_cv_prog_cc_c89=no
5038 ac_save_CC=$CC
5039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5040 /* end confdefs.h. */
5041 $ac_c_conftest_c89_program
5042 _ACEOF
5043 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5044 do
5045 CC="$ac_save_CC $ac_arg"
5046 if ac_fn_c_try_compile "$LINENO"
5047 then :
5048 ac_cv_prog_cc_c89=$ac_arg
5049 fi
5050 rm -f core conftest.err conftest.$ac_objext conftest.beam
5051 test "x$ac_cv_prog_cc_c89" != "xno" && break
5052 done
5053 rm -f conftest.$ac_ext
5054 CC=$ac_save_CC ;;
5055 esac
5056 fi
5057
5058 if test "x$ac_cv_prog_cc_c89" = xno
5059 then :
5060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5061 printf "%s\n" "unsupported" >&6; }
5062 else case e in #(
5063 e) if test "x$ac_cv_prog_cc_c89" = x
5064 then :
5065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5066 printf "%s\n" "none needed" >&6; }
5067 else case e in #(
5068 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5069 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5070 CC="$CC $ac_cv_prog_cc_c89" ;;
5071 esac
5072 fi
5073 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5074 ac_prog_cc_stdc=c89 ;;
5075 esac
5076 fi
5077 fi
5078
5079 ac_ext=c
5080 ac_cpp='$CPP $CPPFLAGS'
5081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5084
5085
5086 ac_ext=c
5087 ac_cpp='$CPP $CPPFLAGS'
5088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5092 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5093 if test ${am_cv_prog_cc_c_o+y}
5094 then :
5095 printf %s "(cached) " >&6
5096 else case e in #(
5097 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5098 /* end confdefs.h. */
5099
5100 int
5101 main (void)
5102 {
5103
5104 ;
5105 return 0;
5106 }
5107 _ACEOF
5108 # Make sure it works both with $CC and with simple cc.
5109 # Following AC_PROG_CC_C_O, we do the test twice because some
5110 # compilers refuse to overwrite an existing .o file with -o,
5111 # though they will create one.
5112 am_cv_prog_cc_c_o=yes
5113 for am_i in 1 2; do
5114 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5115 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5116 ac_status=$?
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); } \
5119 && test -f conftest2.$ac_objext; then
5120 : OK
5121 else
5122 am_cv_prog_cc_c_o=no
5123 break
5124 fi
5125 done
5126 rm -f core conftest*
5127 unset am_i ;;
5128 esac
5129 fi
5130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5131 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5132 if test "$am_cv_prog_cc_c_o" != yes; then
5133 # Losing compiler, so override with the script.
5134 # FIXME: It is wrong to rewrite CC.
5135 # But if we don't then we get into trouble of one sort or another.
5136 # A longer-term fix would be to have automake use am__CC in this case,
5137 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5138 CC="$am_aux_dir/compile $CC"
5139 fi
5140 ac_ext=c
5141 ac_cpp='$CPP $CPPFLAGS'
5142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5145
5146
5147 depcc="$CC" am_compiler_list=
5148
5149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5150 printf %s "checking dependency style of $depcc... " >&6; }
5151 if test ${am_cv_CC_dependencies_compiler_type+y}
5152 then :
5153 printf %s "(cached) " >&6
5154 else case e in #(
5155 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5156 # We make a subdir and do the tests there. Otherwise we can end up
5157 # making bogus files that we don't know about and never remove. For
5158 # instance it was reported that on HP-UX the gcc test will end up
5159 # making a dummy file named 'D' -- because '-MD' means "put the output
5160 # in D".
5161 rm -rf conftest.dir
5162 mkdir conftest.dir
5163 # Copy depcomp to subdir because otherwise we won't find it if we're
5164 # using a relative directory.
5165 cp "$am_depcomp" conftest.dir
5166 cd conftest.dir
5167 # We will build objects and dependencies in a subdirectory because
5168 # it helps to detect inapplicable dependency modes. For instance
5169 # both Tru64's cc and ICC support -MD to output dependencies as a
5170 # side effect of compilation, but ICC will put the dependencies in
5171 # the current directory while Tru64 will put them in the object
5172 # directory.
5173 mkdir sub
5174
5175 am_cv_CC_dependencies_compiler_type=none
5176 if test "$am_compiler_list" = ""; then
5177 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5178 fi
5179 am__universal=false
5180 case " $depcc " in #(
5181 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5182 esac
5183
5184 for depmode in $am_compiler_list; do
5185 # Setup a source with many dependencies, because some compilers
5186 # like to wrap large dependency lists on column 80 (with \), and
5187 # we should not choose a depcomp mode which is confused by this.
5188 #
5189 # We need to recreate these files for each test, as the compiler may
5190 # overwrite some of them when testing with obscure command lines.
5191 # This happens at least with the AIX C compiler.
5192 : > sub/conftest.c
5193 for i in 1 2 3 4 5 6; do
5194 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5195 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5196 # Solaris 10 /bin/sh.
5197 echo '/* dummy */' > sub/conftst$i.h
5198 done
5199 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5200
5201 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5202 # mode. It turns out that the SunPro C++ compiler does not properly
5203 # handle '-M -o', and we need to detect this. Also, some Intel
5204 # versions had trouble with output in subdirs.
5205 am__obj=sub/conftest.${OBJEXT-o}
5206 am__minus_obj="-o $am__obj"
5207 case $depmode in
5208 gcc)
5209 # This depmode causes a compiler race in universal mode.
5210 test "$am__universal" = false || continue
5211 ;;
5212 nosideeffect)
5213 # After this tag, mechanisms are not by side-effect, so they'll
5214 # only be used when explicitly requested.
5215 if test "x$enable_dependency_tracking" = xyes; then
5216 continue
5217 else
5218 break
5219 fi
5220 ;;
5221 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5222 # This compiler won't grok '-c -o', but also, the minuso test has
5223 # not run yet. These depmodes are late enough in the game, and
5224 # so weak that their functioning should not be impacted.
5225 am__obj=conftest.${OBJEXT-o}
5226 am__minus_obj=
5227 ;;
5228 none) break ;;
5229 esac
5230 if depmode=$depmode \
5231 source=sub/conftest.c object=$am__obj \
5232 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5233 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5234 >/dev/null 2>conftest.err &&
5235 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5236 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5237 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5238 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5239 # icc doesn't choke on unknown options, it will just issue warnings
5240 # or remarks (even with -Werror). So we grep stderr for any message
5241 # that says an option was ignored or not supported.
5242 # When given -MP, icc 7.0 and 7.1 complain thus:
5243 # icc: Command line warning: ignoring option '-M'; no argument required
5244 # The diagnosis changed in icc 8.0:
5245 # icc: Command line remark: option '-MP' not supported
5246 if (grep 'ignoring option' conftest.err ||
5247 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5248 am_cv_CC_dependencies_compiler_type=$depmode
5249 break
5250 fi
5251 fi
5252 done
5253
5254 cd ..
5255 rm -rf conftest.dir
5256 else
5257 am_cv_CC_dependencies_compiler_type=none
5258 fi
5259 ;;
5260 esac
5261 fi
5262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5263 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5264 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5265
5266 if
5267 test "x$enable_dependency_tracking" != xno \
5268 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5269 am__fastdepCC_TRUE=
5270 am__fastdepCC_FALSE='#'
5271 else
5272 am__fastdepCC_TRUE='#'
5273 am__fastdepCC_FALSE=
5274 fi
5275
5276
5277
5278 ac_header= ac_cache=
5279 for ac_item in $ac_header_c_list
5280 do
5281 if test $ac_cache; then
5282 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5283 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5284 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5285 fi
5286 ac_header= ac_cache=
5287 elif test $ac_header; then
5288 ac_cache=$ac_item
5289 else
5290 ac_header=$ac_item
5291 fi
5292 done
5293
5294
5295
5296
5297
5298
5299
5300
5301 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5302 then :
5303
5304 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5305
5306 fi
5307
5308
5309
5310
5311
5312
5313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5314 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5315 if test ${ac_cv_safe_to_define___extensions__+y}
5316 then :
5317 printf %s "(cached) " >&6
5318 else case e in #(
5319 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5320 /* end confdefs.h. */
5321
5322 # define __EXTENSIONS__ 1
5323 $ac_includes_default
5324 int
5325 main (void)
5326 {
5327
5328 ;
5329 return 0;
5330 }
5331 _ACEOF
5332 if ac_fn_c_try_compile "$LINENO"
5333 then :
5334 ac_cv_safe_to_define___extensions__=yes
5335 else case e in #(
5336 e) ac_cv_safe_to_define___extensions__=no ;;
5337 esac
5338 fi
5339 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5340 esac
5341 fi
5342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5343 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
5344
5345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5346 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5347 if test ${ac_cv_should_define__xopen_source+y}
5348 then :
5349 printf %s "(cached) " >&6
5350 else case e in #(
5351 e) ac_cv_should_define__xopen_source=no
5352 if test $ac_cv_header_wchar_h = yes
5353 then :
5354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5355 /* end confdefs.h. */
5356
5357 #include <wchar.h>
5358 mbstate_t x;
5359 int
5360 main (void)
5361 {
5362
5363 ;
5364 return 0;
5365 }
5366 _ACEOF
5367 if ac_fn_c_try_compile "$LINENO"
5368 then :
5369
5370 else case e in #(
5371 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5372 /* end confdefs.h. */
5373
5374 #define _XOPEN_SOURCE 500
5375 #include <wchar.h>
5376 mbstate_t x;
5377 int
5378 main (void)
5379 {
5380
5381 ;
5382 return 0;
5383 }
5384 _ACEOF
5385 if ac_fn_c_try_compile "$LINENO"
5386 then :
5387 ac_cv_should_define__xopen_source=yes
5388 fi
5389 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5390 esac
5391 fi
5392 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5393 fi ;;
5394 esac
5395 fi
5396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5397 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
5398
5399 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
5400
5401 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5402
5403 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5404
5405 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5406
5407 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5408
5409 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
5410
5411 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5412
5413 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5414
5415 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5416
5417 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5418
5419 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
5420
5421 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5422
5423 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5424
5425 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5426
5427 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5428
5429 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5430
5431 if test $ac_cv_header_minix_config_h = yes
5432 then :
5433 MINIX=yes
5434 printf "%s\n" "#define _MINIX 1" >>confdefs.h
5435
5436 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5437
5438 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5439
5440 else case e in #(
5441 e) MINIX= ;;
5442 esac
5443 fi
5444 if test $ac_cv_safe_to_define___extensions__ = yes
5445 then :
5446 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5447
5448 fi
5449 if test $ac_cv_should_define__xopen_source = yes
5450 then :
5451 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5452
5453 fi
5454
5455
5456
5457 # Programs
5458 ac_ext=c
5459 ac_cpp='$CPP $CPPFLAGS'
5460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5463 if test -n "$ac_tool_prefix"; then
5464 for ac_prog in gcc cc
5465 do
5466 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5467 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5469 printf %s "checking for $ac_word... " >&6; }
5470 if test ${ac_cv_prog_CC+y}
5471 then :
5472 printf %s "(cached) " >&6
5473 else case e in #(
5474 e) if test -n "$CC"; then
5475 ac_cv_prog_CC="$CC" # Let the user override the test.
5476 else
5477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5478 for as_dir in $PATH
5479 do
5480 IFS=$as_save_IFS
5481 case $as_dir in #(((
5482 '') as_dir=./ ;;
5483 */) ;;
5484 *) as_dir=$as_dir/ ;;
5485 esac
5486 for ac_exec_ext in '' $ac_executable_extensions; do
5487 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5488 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5489 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5490 break 2
5491 fi
5492 done
5493 done
5494 IFS=$as_save_IFS
5495
5496 fi ;;
5497 esac
5498 fi
5499 CC=$ac_cv_prog_CC
5500 if test -n "$CC"; then
5501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5502 printf "%s\n" "$CC" >&6; }
5503 else
5504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5505 printf "%s\n" "no" >&6; }
5506 fi
5507
5508
5509 test -n "$CC" && break
5510 done
5511 fi
5512 if test -z "$CC"; then
5513 ac_ct_CC=$CC
5514 for ac_prog in gcc cc
5515 do
5516 # Extract the first word of "$ac_prog", so it can be a program name with args.
5517 set dummy $ac_prog; ac_word=$2
5518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5519 printf %s "checking for $ac_word... " >&6; }
5520 if test ${ac_cv_prog_ac_ct_CC+y}
5521 then :
5522 printf %s "(cached) " >&6
5523 else case e in #(
5524 e) if test -n "$ac_ct_CC"; then
5525 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5526 else
5527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5528 for as_dir in $PATH
5529 do
5530 IFS=$as_save_IFS
5531 case $as_dir in #(((
5532 '') as_dir=./ ;;
5533 */) ;;
5534 *) as_dir=$as_dir/ ;;
5535 esac
5536 for ac_exec_ext in '' $ac_executable_extensions; do
5537 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5538 ac_cv_prog_ac_ct_CC="$ac_prog"
5539 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5540 break 2
5541 fi
5542 done
5543 done
5544 IFS=$as_save_IFS
5545
5546 fi ;;
5547 esac
5548 fi
5549 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5550 if test -n "$ac_ct_CC"; then
5551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5552 printf "%s\n" "$ac_ct_CC" >&6; }
5553 else
5554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5555 printf "%s\n" "no" >&6; }
5556 fi
5557
5558
5559 test -n "$ac_ct_CC" && break
5560 done
5561
5562 if test "x$ac_ct_CC" = x; then
5563 CC=""
5564 else
5565 case $cross_compiling:$ac_tool_warned in
5566 yes:)
5567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5568 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5569 ac_tool_warned=yes ;;
5570 esac
5571 CC=$ac_ct_CC
5572 fi
5573 fi
5574
5575
5576 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5577 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5578 as_fn_error $? "no acceptable C compiler found in \$PATH
5579 See 'config.log' for more details" "$LINENO" 5; }
5580
5581 # Provide some information about the compiler.
5582 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5583 set X $ac_compile
5584 ac_compiler=$2
5585 for ac_option in --version -v -V -qversion -version; do
5586 { { ac_try="$ac_compiler $ac_option >&5"
5587 case "(($ac_try" in
5588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5589 *) ac_try_echo=$ac_try;;
5590 esac
5591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5592 printf "%s\n" "$ac_try_echo"; } >&5
5593 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5594 ac_status=$?
5595 if test -s conftest.err; then
5596 sed '10a\
5597 ... rest of stderr output deleted ...
5598 10q' conftest.err >conftest.er1
5599 cat conftest.er1 >&5
5600 fi
5601 rm -f conftest.er1 conftest.err
5602 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5603 test $ac_status = 0; }
5604 done
5605
5606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5607 printf %s "checking whether the compiler supports GNU C... " >&6; }
5608 if test ${ac_cv_c_compiler_gnu+y}
5609 then :
5610 printf %s "(cached) " >&6
5611 else case e in #(
5612 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5613 /* end confdefs.h. */
5614
5615 int
5616 main (void)
5617 {
5618 #ifndef __GNUC__
5619 choke me
5620 #endif
5621
5622 ;
5623 return 0;
5624 }
5625 _ACEOF
5626 if ac_fn_c_try_compile "$LINENO"
5627 then :
5628 ac_compiler_gnu=yes
5629 else case e in #(
5630 e) ac_compiler_gnu=no ;;
5631 esac
5632 fi
5633 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5634 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5635 ;;
5636 esac
5637 fi
5638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5639 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5641
5642 if test $ac_compiler_gnu = yes; then
5643 GCC=yes
5644 else
5645 GCC=
5646 fi
5647 ac_test_CFLAGS=${CFLAGS+y}
5648 ac_save_CFLAGS=$CFLAGS
5649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5650 printf %s "checking whether $CC accepts -g... " >&6; }
5651 if test ${ac_cv_prog_cc_g+y}
5652 then :
5653 printf %s "(cached) " >&6
5654 else case e in #(
5655 e) ac_save_c_werror_flag=$ac_c_werror_flag
5656 ac_c_werror_flag=yes
5657 ac_cv_prog_cc_g=no
5658 CFLAGS="-g"
5659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5660 /* end confdefs.h. */
5661
5662 int
5663 main (void)
5664 {
5665
5666 ;
5667 return 0;
5668 }
5669 _ACEOF
5670 if ac_fn_c_try_compile "$LINENO"
5671 then :
5672 ac_cv_prog_cc_g=yes
5673 else case e in #(
5674 e) CFLAGS=""
5675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5676 /* end confdefs.h. */
5677
5678 int
5679 main (void)
5680 {
5681
5682 ;
5683 return 0;
5684 }
5685 _ACEOF
5686 if ac_fn_c_try_compile "$LINENO"
5687 then :
5688
5689 else case e in #(
5690 e) ac_c_werror_flag=$ac_save_c_werror_flag
5691 CFLAGS="-g"
5692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5693 /* end confdefs.h. */
5694
5695 int
5696 main (void)
5697 {
5698
5699 ;
5700 return 0;
5701 }
5702 _ACEOF
5703 if ac_fn_c_try_compile "$LINENO"
5704 then :
5705 ac_cv_prog_cc_g=yes
5706 fi
5707 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5708 esac
5709 fi
5710 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5711 esac
5712 fi
5713 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5714 ac_c_werror_flag=$ac_save_c_werror_flag ;;
5715 esac
5716 fi
5717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5718 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5719 if test $ac_test_CFLAGS; then
5720 CFLAGS=$ac_save_CFLAGS
5721 elif test $ac_cv_prog_cc_g = yes; then
5722 if test "$GCC" = yes; then
5723 CFLAGS="-g -O2"
5724 else
5725 CFLAGS="-g"
5726 fi
5727 else
5728 if test "$GCC" = yes; then
5729 CFLAGS="-O2"
5730 else
5731 CFLAGS=
5732 fi
5733 fi
5734 ac_prog_cc_stdc=no
5735 if test x$ac_prog_cc_stdc = xno
5736 then :
5737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5738 printf %s "checking for $CC option to enable C11 features... " >&6; }
5739 if test ${ac_cv_prog_cc_c11+y}
5740 then :
5741 printf %s "(cached) " >&6
5742 else case e in #(
5743 e) ac_cv_prog_cc_c11=no
5744 ac_save_CC=$CC
5745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5746 /* end confdefs.h. */
5747 $ac_c_conftest_c11_program
5748 _ACEOF
5749 for ac_arg in '' -std=gnu11
5750 do
5751 CC="$ac_save_CC $ac_arg"
5752 if ac_fn_c_try_compile "$LINENO"
5753 then :
5754 ac_cv_prog_cc_c11=$ac_arg
5755 fi
5756 rm -f core conftest.err conftest.$ac_objext conftest.beam
5757 test "x$ac_cv_prog_cc_c11" != "xno" && break
5758 done
5759 rm -f conftest.$ac_ext
5760 CC=$ac_save_CC ;;
5761 esac
5762 fi
5763
5764 if test "x$ac_cv_prog_cc_c11" = xno
5765 then :
5766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5767 printf "%s\n" "unsupported" >&6; }
5768 else case e in #(
5769 e) if test "x$ac_cv_prog_cc_c11" = x
5770 then :
5771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5772 printf "%s\n" "none needed" >&6; }
5773 else case e in #(
5774 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5775 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5776 CC="$CC $ac_cv_prog_cc_c11" ;;
5777 esac
5778 fi
5779 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5780 ac_prog_cc_stdc=c11 ;;
5781 esac
5782 fi
5783 fi
5784 if test x$ac_prog_cc_stdc = xno
5785 then :
5786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5787 printf %s "checking for $CC option to enable C99 features... " >&6; }
5788 if test ${ac_cv_prog_cc_c99+y}
5789 then :
5790 printf %s "(cached) " >&6
5791 else case e in #(
5792 e) ac_cv_prog_cc_c99=no
5793 ac_save_CC=$CC
5794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5795 /* end confdefs.h. */
5796 $ac_c_conftest_c99_program
5797 _ACEOF
5798 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5799 do
5800 CC="$ac_save_CC $ac_arg"
5801 if ac_fn_c_try_compile "$LINENO"
5802 then :
5803 ac_cv_prog_cc_c99=$ac_arg
5804 fi
5805 rm -f core conftest.err conftest.$ac_objext conftest.beam
5806 test "x$ac_cv_prog_cc_c99" != "xno" && break
5807 done
5808 rm -f conftest.$ac_ext
5809 CC=$ac_save_CC ;;
5810 esac
5811 fi
5812
5813 if test "x$ac_cv_prog_cc_c99" = xno
5814 then :
5815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5816 printf "%s\n" "unsupported" >&6; }
5817 else case e in #(
5818 e) if test "x$ac_cv_prog_cc_c99" = x
5819 then :
5820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5821 printf "%s\n" "none needed" >&6; }
5822 else case e in #(
5823 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5824 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5825 CC="$CC $ac_cv_prog_cc_c99" ;;
5826 esac
5827 fi
5828 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5829 ac_prog_cc_stdc=c99 ;;
5830 esac
5831 fi
5832 fi
5833 if test x$ac_prog_cc_stdc = xno
5834 then :
5835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5836 printf %s "checking for $CC option to enable C89 features... " >&6; }
5837 if test ${ac_cv_prog_cc_c89+y}
5838 then :
5839 printf %s "(cached) " >&6
5840 else case e in #(
5841 e) ac_cv_prog_cc_c89=no
5842 ac_save_CC=$CC
5843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5844 /* end confdefs.h. */
5845 $ac_c_conftest_c89_program
5846 _ACEOF
5847 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5848 do
5849 CC="$ac_save_CC $ac_arg"
5850 if ac_fn_c_try_compile "$LINENO"
5851 then :
5852 ac_cv_prog_cc_c89=$ac_arg
5853 fi
5854 rm -f core conftest.err conftest.$ac_objext conftest.beam
5855 test "x$ac_cv_prog_cc_c89" != "xno" && break
5856 done
5857 rm -f conftest.$ac_ext
5858 CC=$ac_save_CC ;;
5859 esac
5860 fi
5861
5862 if test "x$ac_cv_prog_cc_c89" = xno
5863 then :
5864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5865 printf "%s\n" "unsupported" >&6; }
5866 else case e in #(
5867 e) if test "x$ac_cv_prog_cc_c89" = x
5868 then :
5869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5870 printf "%s\n" "none needed" >&6; }
5871 else case e in #(
5872 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5873 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5874 CC="$CC $ac_cv_prog_cc_c89" ;;
5875 esac
5876 fi
5877 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5878 ac_prog_cc_stdc=c89 ;;
5879 esac
5880 fi
5881 fi
5882
5883 ac_ext=c
5884 ac_cpp='$CPP $CPPFLAGS'
5885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5888
5889
5890 ac_ext=c
5891 ac_cpp='$CPP $CPPFLAGS'
5892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5896 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5897 if test ${am_cv_prog_cc_c_o+y}
5898 then :
5899 printf %s "(cached) " >&6
5900 else case e in #(
5901 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5902 /* end confdefs.h. */
5903
5904 int
5905 main (void)
5906 {
5907
5908 ;
5909 return 0;
5910 }
5911 _ACEOF
5912 # Make sure it works both with $CC and with simple cc.
5913 # Following AC_PROG_CC_C_O, we do the test twice because some
5914 # compilers refuse to overwrite an existing .o file with -o,
5915 # though they will create one.
5916 am_cv_prog_cc_c_o=yes
5917 for am_i in 1 2; do
5918 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5919 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5920 ac_status=$?
5921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922 (exit $ac_status); } \
5923 && test -f conftest2.$ac_objext; then
5924 : OK
5925 else
5926 am_cv_prog_cc_c_o=no
5927 break
5928 fi
5929 done
5930 rm -f core conftest*
5931 unset am_i ;;
5932 esac
5933 fi
5934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5935 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5936 if test "$am_cv_prog_cc_c_o" != yes; then
5937 # Losing compiler, so override with the script.
5938 # FIXME: It is wrong to rewrite CC.
5939 # But if we don't then we get into trouble of one sort or another.
5940 # A longer-term fix would be to have automake use am__CC in this case,
5941 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5942 CC="$am_aux_dir/compile $CC"
5943 fi
5944 ac_ext=c
5945 ac_cpp='$CPP $CPPFLAGS'
5946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5949
5950
5951 depcc="$CC" am_compiler_list=
5952
5953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5954 printf %s "checking dependency style of $depcc... " >&6; }
5955 if test ${am_cv_CC_dependencies_compiler_type+y}
5956 then :
5957 printf %s "(cached) " >&6
5958 else case e in #(
5959 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5960 # We make a subdir and do the tests there. Otherwise we can end up
5961 # making bogus files that we don't know about and never remove. For
5962 # instance it was reported that on HP-UX the gcc test will end up
5963 # making a dummy file named 'D' -- because '-MD' means "put the output
5964 # in D".
5965 rm -rf conftest.dir
5966 mkdir conftest.dir
5967 # Copy depcomp to subdir because otherwise we won't find it if we're
5968 # using a relative directory.
5969 cp "$am_depcomp" conftest.dir
5970 cd conftest.dir
5971 # We will build objects and dependencies in a subdirectory because
5972 # it helps to detect inapplicable dependency modes. For instance
5973 # both Tru64's cc and ICC support -MD to output dependencies as a
5974 # side effect of compilation, but ICC will put the dependencies in
5975 # the current directory while Tru64 will put them in the object
5976 # directory.
5977 mkdir sub
5978
5979 am_cv_CC_dependencies_compiler_type=none
5980 if test "$am_compiler_list" = ""; then
5981 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5982 fi
5983 am__universal=false
5984 case " $depcc " in #(
5985 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5986 esac
5987
5988 for depmode in $am_compiler_list; do
5989 # Setup a source with many dependencies, because some compilers
5990 # like to wrap large dependency lists on column 80 (with \), and
5991 # we should not choose a depcomp mode which is confused by this.
5992 #
5993 # We need to recreate these files for each test, as the compiler may
5994 # overwrite some of them when testing with obscure command lines.
5995 # This happens at least with the AIX C compiler.
5996 : > sub/conftest.c
5997 for i in 1 2 3 4 5 6; do
5998 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5999 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6000 # Solaris 10 /bin/sh.
6001 echo '/* dummy */' > sub/conftst$i.h
6002 done
6003 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6004
6005 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6006 # mode. It turns out that the SunPro C++ compiler does not properly
6007 # handle '-M -o', and we need to detect this. Also, some Intel
6008 # versions had trouble with output in subdirs.
6009 am__obj=sub/conftest.${OBJEXT-o}
6010 am__minus_obj="-o $am__obj"
6011 case $depmode in
6012 gcc)
6013 # This depmode causes a compiler race in universal mode.
6014 test "$am__universal" = false || continue
6015 ;;
6016 nosideeffect)
6017 # After this tag, mechanisms are not by side-effect, so they'll
6018 # only be used when explicitly requested.
6019 if test "x$enable_dependency_tracking" = xyes; then
6020 continue
6021 else
6022 break
6023 fi
6024 ;;
6025 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6026 # This compiler won't grok '-c -o', but also, the minuso test has
6027 # not run yet. These depmodes are late enough in the game, and
6028 # so weak that their functioning should not be impacted.
6029 am__obj=conftest.${OBJEXT-o}
6030 am__minus_obj=
6031 ;;
6032 none) break ;;
6033 esac
6034 if depmode=$depmode \
6035 source=sub/conftest.c object=$am__obj \
6036 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6037 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6038 >/dev/null 2>conftest.err &&
6039 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6040 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6041 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6042 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6043 # icc doesn't choke on unknown options, it will just issue warnings
6044 # or remarks (even with -Werror). So we grep stderr for any message
6045 # that says an option was ignored or not supported.
6046 # When given -MP, icc 7.0 and 7.1 complain thus:
6047 # icc: Command line warning: ignoring option '-M'; no argument required
6048 # The diagnosis changed in icc 8.0:
6049 # icc: Command line remark: option '-MP' not supported
6050 if (grep 'ignoring option' conftest.err ||
6051 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6052 am_cv_CC_dependencies_compiler_type=$depmode
6053 break
6054 fi
6055 fi
6056 done
6057
6058 cd ..
6059 rm -rf conftest.dir
6060 else
6061 am_cv_CC_dependencies_compiler_type=none
6062 fi
6063 ;;
6064 esac
6065 fi
6066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6067 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
6068 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6069
6070 if
6071 test "x$enable_dependency_tracking" != xno \
6072 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6073 am__fastdepCC_TRUE=
6074 am__fastdepCC_FALSE='#'
6075 else
6076 am__fastdepCC_TRUE='#'
6077 am__fastdepCC_FALSE=
6078 fi
6079
6080
6081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6082 printf %s "checking whether ln -s works... " >&6; }
6083 LN_S=$as_ln_s
6084 if test "$LN_S" = "ln -s"; then
6085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6086 printf "%s\n" "yes" >&6; }
6087 else
6088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6089 printf "%s\n" "no, using $LN_S" >&6; }
6090 fi
6091
6092
6093
6094 case `pwd` in
6095 *\ * | *\ *)
6096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6097 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6098 esac
6099
6100
6101
6102 macro_version='2.5.4'
6103 macro_revision='2.5.4'
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118 ltmain=$ac_aux_dir/ltmain.sh
6119
6120 # Backslashify metacharacters that are still active within
6121 # double-quoted strings.
6122 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6123
6124 # Same as above, but do not quote variable references.
6125 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6126
6127 # Sed substitution to delay expansion of an escaped shell variable in a
6128 # double_quote_subst'ed string.
6129 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6130
6131 # Sed substitution to delay expansion of an escaped single quote.
6132 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6133
6134 # Sed substitution to avoid accidental globbing in evaled expressions
6135 no_glob_subst='s/\*/\\\*/g'
6136
6137 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6138 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6139 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6140
6141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6142 printf %s "checking how to print strings... " >&6; }
6143 # Test print first, because it will be a builtin if present.
6144 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6145 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6146 ECHO='print -r --'
6147 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6148 ECHO='printf %s\n'
6149 else
6150 # Use this function as a fallback that always works.
6151 func_fallback_echo ()
6152 {
6153 eval 'cat <<_LTECHO_EOF
6154 $1
6155 _LTECHO_EOF'
6156 }
6157 ECHO='func_fallback_echo'
6158 fi
6159
6160 # func_echo_all arg...
6161 # Invoke $ECHO with all args, space-separated.
6162 func_echo_all ()
6163 {
6164 $ECHO ""
6165 }
6166
6167 case $ECHO in
6168 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6169 printf "%s\n" "printf" >&6; } ;;
6170 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6171 printf "%s\n" "print -r" >&6; } ;;
6172 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6173 printf "%s\n" "cat" >&6; } ;;
6174 esac
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6190 printf %s "checking for a sed that does not truncate output... " >&6; }
6191 if test ${ac_cv_path_SED+y}
6192 then :
6193 printf %s "(cached) " >&6
6194 else case e in #(
6195 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6196 for ac_i in 1 2 3 4 5 6 7; do
6197 ac_script="$ac_script$as_nl$ac_script"
6198 done
6199 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6200 { ac_script=; unset ac_script;}
6201 if test -z "$SED"; then
6202 ac_path_SED_found=false
6203 # Loop through the user's path and test for each of PROGNAME-LIST
6204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6205 for as_dir in $PATH
6206 do
6207 IFS=$as_save_IFS
6208 case $as_dir in #(((
6209 '') as_dir=./ ;;
6210 */) ;;
6211 *) as_dir=$as_dir/ ;;
6212 esac
6213 for ac_prog in sed gsed
6214 do
6215 for ac_exec_ext in '' $ac_executable_extensions; do
6216 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6217 as_fn_executable_p "$ac_path_SED" || continue
6218 # Check for GNU ac_path_SED and select it if it is found.
6219 # Check for GNU $ac_path_SED
6220 case `"$ac_path_SED" --version 2>&1` in #(
6221 *GNU*)
6222 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6223 #(
6224 *)
6225 ac_count=0
6226 printf %s 0123456789 >"conftest.in"
6227 while :
6228 do
6229 cat "conftest.in" "conftest.in" >"conftest.tmp"
6230 mv "conftest.tmp" "conftest.in"
6231 cp "conftest.in" "conftest.nl"
6232 printf "%s\n" '' >> "conftest.nl"
6233 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6234 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6235 as_fn_arith $ac_count + 1 && ac_count=$as_val
6236 if test $ac_count -gt ${ac_path_SED_max-0}; then
6237 # Best one so far, save it but keep looking for a better one
6238 ac_cv_path_SED="$ac_path_SED"
6239 ac_path_SED_max=$ac_count
6240 fi
6241 # 10*(2^10) chars as input seems more than enough
6242 test $ac_count -gt 10 && break
6243 done
6244 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6245 esac
6246
6247 $ac_path_SED_found && break 3
6248 done
6249 done
6250 done
6251 IFS=$as_save_IFS
6252 if test -z "$ac_cv_path_SED"; then
6253 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6254 fi
6255 else
6256 ac_cv_path_SED=$SED
6257 fi
6258 ;;
6259 esac
6260 fi
6261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6262 printf "%s\n" "$ac_cv_path_SED" >&6; }
6263 SED="$ac_cv_path_SED"
6264 rm -f conftest.sed
6265
6266 test -z "$SED" && SED=sed
6267 Xsed="$SED -e 1s/^X//"
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6280 printf %s "checking for grep that handles long lines and -e... " >&6; }
6281 if test ${ac_cv_path_GREP+y}
6282 then :
6283 printf %s "(cached) " >&6
6284 else case e in #(
6285 e) if test -z "$GREP"; then
6286 ac_path_GREP_found=false
6287 # Loop through the user's path and test for each of PROGNAME-LIST
6288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6289 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6290 do
6291 IFS=$as_save_IFS
6292 case $as_dir in #(((
6293 '') as_dir=./ ;;
6294 */) ;;
6295 *) as_dir=$as_dir/ ;;
6296 esac
6297 for ac_prog in grep ggrep
6298 do
6299 for ac_exec_ext in '' $ac_executable_extensions; do
6300 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6301 as_fn_executable_p "$ac_path_GREP" || continue
6302 # Check for GNU ac_path_GREP and select it if it is found.
6303 # Check for GNU $ac_path_GREP
6304 case `"$ac_path_GREP" --version 2>&1` in #(
6305 *GNU*)
6306 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6307 #(
6308 *)
6309 ac_count=0
6310 printf %s 0123456789 >"conftest.in"
6311 while :
6312 do
6313 cat "conftest.in" "conftest.in" >"conftest.tmp"
6314 mv "conftest.tmp" "conftest.in"
6315 cp "conftest.in" "conftest.nl"
6316 printf "%s\n" 'GREP' >> "conftest.nl"
6317 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6318 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6319 as_fn_arith $ac_count + 1 && ac_count=$as_val
6320 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6321 # Best one so far, save it but keep looking for a better one
6322 ac_cv_path_GREP="$ac_path_GREP"
6323 ac_path_GREP_max=$ac_count
6324 fi
6325 # 10*(2^10) chars as input seems more than enough
6326 test $ac_count -gt 10 && break
6327 done
6328 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6329 esac
6330
6331 $ac_path_GREP_found && break 3
6332 done
6333 done
6334 done
6335 IFS=$as_save_IFS
6336 if test -z "$ac_cv_path_GREP"; then
6337 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6338 fi
6339 else
6340 ac_cv_path_GREP=$GREP
6341 fi
6342 ;;
6343 esac
6344 fi
6345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6346 printf "%s\n" "$ac_cv_path_GREP" >&6; }
6347 GREP="$ac_cv_path_GREP"
6348
6349
6350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6351 printf %s "checking for egrep... " >&6; }
6352 if test ${ac_cv_path_EGREP+y}
6353 then :
6354 printf %s "(cached) " >&6
6355 else case e in #(
6356 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6357 then ac_cv_path_EGREP="$GREP -E"
6358 else
6359 if test -z "$EGREP"; then
6360 ac_path_EGREP_found=false
6361 # Loop through the user's path and test for each of PROGNAME-LIST
6362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6363 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6364 do
6365 IFS=$as_save_IFS
6366 case $as_dir in #(((
6367 '') as_dir=./ ;;
6368 */) ;;
6369 *) as_dir=$as_dir/ ;;
6370 esac
6371 for ac_prog in egrep
6372 do
6373 for ac_exec_ext in '' $ac_executable_extensions; do
6374 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
6375 as_fn_executable_p "$ac_path_EGREP" || continue
6376 # Check for GNU ac_path_EGREP and select it if it is found.
6377 # Check for GNU $ac_path_EGREP
6378 case `"$ac_path_EGREP" --version 2>&1` in #(
6379 *GNU*)
6380 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6381 #(
6382 *)
6383 ac_count=0
6384 printf %s 0123456789 >"conftest.in"
6385 while :
6386 do
6387 cat "conftest.in" "conftest.in" >"conftest.tmp"
6388 mv "conftest.tmp" "conftest.in"
6389 cp "conftest.in" "conftest.nl"
6390 printf "%s\n" 'EGREP' >> "conftest.nl"
6391 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6392 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6393 as_fn_arith $ac_count + 1 && ac_count=$as_val
6394 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6395 # Best one so far, save it but keep looking for a better one
6396 ac_cv_path_EGREP="$ac_path_EGREP"
6397 ac_path_EGREP_max=$ac_count
6398 fi
6399 # 10*(2^10) chars as input seems more than enough
6400 test $ac_count -gt 10 && break
6401 done
6402 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6403 esac
6404
6405 $ac_path_EGREP_found && break 3
6406 done
6407 done
6408 done
6409 IFS=$as_save_IFS
6410 if test -z "$ac_cv_path_EGREP"; then
6411 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6412 fi
6413 else
6414 ac_cv_path_EGREP=$EGREP
6415 fi
6416
6417 fi ;;
6418 esac
6419 fi
6420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6421 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6422 EGREP="$ac_cv_path_EGREP"
6423
6424 EGREP_TRADITIONAL=$EGREP
6425 ac_cv_path_EGREP_TRADITIONAL=$EGREP
6426
6427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6428 printf %s "checking for fgrep... " >&6; }
6429 if test ${ac_cv_path_FGREP+y}
6430 then :
6431 printf %s "(cached) " >&6
6432 else case e in #(
6433 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6434 then ac_cv_path_FGREP="$GREP -F"
6435 else
6436 if test -z "$FGREP"; then
6437 ac_path_FGREP_found=false
6438 # Loop through the user's path and test for each of PROGNAME-LIST
6439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6440 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6441 do
6442 IFS=$as_save_IFS
6443 case $as_dir in #(((
6444 '') as_dir=./ ;;
6445 */) ;;
6446 *) as_dir=$as_dir/ ;;
6447 esac
6448 for ac_prog in fgrep
6449 do
6450 for ac_exec_ext in '' $ac_executable_extensions; do
6451 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
6452 as_fn_executable_p "$ac_path_FGREP" || continue
6453 # Check for GNU ac_path_FGREP and select it if it is found.
6454 # Check for GNU $ac_path_FGREP
6455 case `"$ac_path_FGREP" --version 2>&1` in #(
6456 *GNU*)
6457 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6458 #(
6459 *)
6460 ac_count=0
6461 printf %s 0123456789 >"conftest.in"
6462 while :
6463 do
6464 cat "conftest.in" "conftest.in" >"conftest.tmp"
6465 mv "conftest.tmp" "conftest.in"
6466 cp "conftest.in" "conftest.nl"
6467 printf "%s\n" 'FGREP' >> "conftest.nl"
6468 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6469 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6470 as_fn_arith $ac_count + 1 && ac_count=$as_val
6471 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6472 # Best one so far, save it but keep looking for a better one
6473 ac_cv_path_FGREP="$ac_path_FGREP"
6474 ac_path_FGREP_max=$ac_count
6475 fi
6476 # 10*(2^10) chars as input seems more than enough
6477 test $ac_count -gt 10 && break
6478 done
6479 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6480 esac
6481
6482 $ac_path_FGREP_found && break 3
6483 done
6484 done
6485 done
6486 IFS=$as_save_IFS
6487 if test -z "$ac_cv_path_FGREP"; then
6488 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6489 fi
6490 else
6491 ac_cv_path_FGREP=$FGREP
6492 fi
6493
6494 fi ;;
6495 esac
6496 fi
6497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6498 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
6499 FGREP="$ac_cv_path_FGREP"
6500
6501
6502 test -z "$GREP" && GREP=grep
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522 # Check whether --with-gnu-ld was given.
6523 if test ${with_gnu_ld+y}
6524 then :
6525 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6526 else case e in #(
6527 e) with_gnu_ld=no ;;
6528 esac
6529 fi
6530
6531 ac_prog=ld
6532 if test yes = "$GCC"; then
6533 # Check if gcc -print-prog-name=ld gives a path.
6534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6535 printf %s "checking for ld used by $CC... " >&6; }
6536 case $host in
6537 *-*-mingw* | *-*-windows*)
6538 # gcc leaves a trailing carriage return, which upsets mingw
6539 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6540 *)
6541 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6542 esac
6543 case $ac_prog in
6544 # Accept absolute paths.
6545 [\\/]* | ?:[\\/]*)
6546 re_direlt='/[^/][^/]*/\.\./'
6547 # Canonicalize the pathname of ld
6548 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6549 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6550 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6551 done
6552 test -z "$LD" && LD=$ac_prog
6553 ;;
6554 "")
6555 # If it fails, then pretend we aren't using GCC.
6556 ac_prog=ld
6557 ;;
6558 *)
6559 # If it is relative, then search for the first ld in PATH.
6560 with_gnu_ld=unknown
6561 ;;
6562 esac
6563 elif test yes = "$with_gnu_ld"; then
6564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6565 printf %s "checking for GNU ld... " >&6; }
6566 else
6567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6568 printf %s "checking for non-GNU ld... " >&6; }
6569 fi
6570 if test ${lt_cv_path_LD+y}
6571 then :
6572 printf %s "(cached) " >&6
6573 else case e in #(
6574 e) if test -z "$LD"; then
6575 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6576 for ac_dir in $PATH; do
6577 IFS=$lt_save_ifs
6578 test -z "$ac_dir" && ac_dir=.
6579 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6580 lt_cv_path_LD=$ac_dir/$ac_prog
6581 # Check to see if the program is GNU ld. I'd rather use --version,
6582 # but apparently some variants of GNU ld only accept -v.
6583 # Break only if it was the GNU/non-GNU ld that we prefer.
6584 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6585 *GNU* | *'with BFD'*)
6586 test no != "$with_gnu_ld" && break
6587 ;;
6588 *)
6589 test yes != "$with_gnu_ld" && break
6590 ;;
6591 esac
6592 fi
6593 done
6594 IFS=$lt_save_ifs
6595 else
6596 lt_cv_path_LD=$LD # Let the user override the test with a path.
6597 fi ;;
6598 esac
6599 fi
6600
6601 LD=$lt_cv_path_LD
6602 if test -n "$LD"; then
6603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6604 printf "%s\n" "$LD" >&6; }
6605 else
6606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6607 printf "%s\n" "no" >&6; }
6608 fi
6609 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6611 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
6612 if test ${lt_cv_prog_gnu_ld+y}
6613 then :
6614 printf %s "(cached) " >&6
6615 else case e in #(
6616 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
6617 case `$LD -v 2>&1 </dev/null` in
6618 *GNU* | *'with BFD'*)
6619 lt_cv_prog_gnu_ld=yes
6620 ;;
6621 *)
6622 lt_cv_prog_gnu_ld=no
6623 ;;
6624 esac ;;
6625 esac
6626 fi
6627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6628 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
6629 with_gnu_ld=$lt_cv_prog_gnu_ld
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6640 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6641 if test ${lt_cv_path_NM+y}
6642 then :
6643 printf %s "(cached) " >&6
6644 else case e in #(
6645 e) if test -n "$NM"; then
6646 # Let the user override the test.
6647 lt_cv_path_NM=$NM
6648 else
6649 lt_nm_to_check=${ac_tool_prefix}nm
6650 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6651 lt_nm_to_check="$lt_nm_to_check nm"
6652 fi
6653 for lt_tmp_nm in $lt_nm_to_check; do
6654 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6655 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6656 IFS=$lt_save_ifs
6657 test -z "$ac_dir" && ac_dir=.
6658 tmp_nm=$ac_dir/$lt_tmp_nm
6659 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6660 # Check to see if the nm accepts a BSD-compat flag.
6661 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6662 # nm: unknown option "B" ignored
6663 # Tru64's nm complains that /dev/null is an invalid object file
6664 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6665 case $build_os in
6666 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
6667 *) lt_bad_file=/dev/null ;;
6668 esac
6669 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
6670 *$lt_bad_file* | *'Invalid file or object type'*)
6671 lt_cv_path_NM="$tmp_nm -B"
6672 break 2
6673 ;;
6674 *)
6675 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
6676 */dev/null*)
6677 lt_cv_path_NM="$tmp_nm -p"
6678 break 2
6679 ;;
6680 *)
6681 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6682 continue # so that we can try to find one that supports BSD flags
6683 ;;
6684 esac
6685 ;;
6686 esac
6687 fi
6688 done
6689 IFS=$lt_save_ifs
6690 done
6691 : ${lt_cv_path_NM=no}
6692 fi ;;
6693 esac
6694 fi
6695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6696 printf "%s\n" "$lt_cv_path_NM" >&6; }
6697 if test no != "$lt_cv_path_NM"; then
6698 NM=$lt_cv_path_NM
6699 else
6700 # Didn't find any BSD compatible name lister, look for dumpbin.
6701 if test -n "$DUMPBIN"; then :
6702 # Let the user override the test.
6703 else
6704 if test -n "$ac_tool_prefix"; then
6705 for ac_prog in dumpbin "link -dump"
6706 do
6707 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6708 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6710 printf %s "checking for $ac_word... " >&6; }
6711 if test ${ac_cv_prog_DUMPBIN+y}
6712 then :
6713 printf %s "(cached) " >&6
6714 else case e in #(
6715 e) if test -n "$DUMPBIN"; then
6716 ac_cv_prog_DUMPBIN="$DUMPBIN" # 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 case $as_dir in #(((
6723 '') as_dir=./ ;;
6724 */) ;;
6725 *) as_dir=$as_dir/ ;;
6726 esac
6727 for ac_exec_ext in '' $ac_executable_extensions; do
6728 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6729 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6730 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6731 break 2
6732 fi
6733 done
6734 done
6735 IFS=$as_save_IFS
6736
6737 fi ;;
6738 esac
6739 fi
6740 DUMPBIN=$ac_cv_prog_DUMPBIN
6741 if test -n "$DUMPBIN"; then
6742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6743 printf "%s\n" "$DUMPBIN" >&6; }
6744 else
6745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6746 printf "%s\n" "no" >&6; }
6747 fi
6748
6749
6750 test -n "$DUMPBIN" && break
6751 done
6752 fi
6753 if test -z "$DUMPBIN"; then
6754 ac_ct_DUMPBIN=$DUMPBIN
6755 for ac_prog in dumpbin "link -dump"
6756 do
6757 # Extract the first word of "$ac_prog", so it can be a program name with args.
6758 set dummy $ac_prog; ac_word=$2
6759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6760 printf %s "checking for $ac_word... " >&6; }
6761 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6762 then :
6763 printf %s "(cached) " >&6
6764 else case e in #(
6765 e) if test -n "$ac_ct_DUMPBIN"; then
6766 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6767 else
6768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6769 for as_dir in $PATH
6770 do
6771 IFS=$as_save_IFS
6772 case $as_dir in #(((
6773 '') as_dir=./ ;;
6774 */) ;;
6775 *) as_dir=$as_dir/ ;;
6776 esac
6777 for ac_exec_ext in '' $ac_executable_extensions; do
6778 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6779 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6780 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6781 break 2
6782 fi
6783 done
6784 done
6785 IFS=$as_save_IFS
6786
6787 fi ;;
6788 esac
6789 fi
6790 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6791 if test -n "$ac_ct_DUMPBIN"; then
6792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6793 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6794 else
6795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6796 printf "%s\n" "no" >&6; }
6797 fi
6798
6799
6800 test -n "$ac_ct_DUMPBIN" && break
6801 done
6802
6803 if test "x$ac_ct_DUMPBIN" = x; then
6804 DUMPBIN=":"
6805 else
6806 case $cross_compiling:$ac_tool_warned in
6807 yes:)
6808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6809 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6810 ac_tool_warned=yes ;;
6811 esac
6812 DUMPBIN=$ac_ct_DUMPBIN
6813 fi
6814 fi
6815
6816 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
6817 *COFF*)
6818 DUMPBIN="$DUMPBIN -symbols -headers"
6819 ;;
6820 *)
6821 DUMPBIN=:
6822 ;;
6823 esac
6824 fi
6825
6826 if test : != "$DUMPBIN"; then
6827 NM=$DUMPBIN
6828 fi
6829 fi
6830 test -z "$NM" && NM=nm
6831
6832
6833
6834
6835
6836
6837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6838 printf %s "checking the name lister ($NM) interface... " >&6; }
6839 if test ${lt_cv_nm_interface+y}
6840 then :
6841 printf %s "(cached) " >&6
6842 else case e in #(
6843 e) lt_cv_nm_interface="BSD nm"
6844 echo "int some_variable = 0;" > conftest.$ac_ext
6845 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6846 (eval "$ac_compile" 2>conftest.err)
6847 cat conftest.err >&5
6848 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6849 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6850 cat conftest.err >&5
6851 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6852 cat conftest.out >&5
6853 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6854 lt_cv_nm_interface="MS dumpbin"
6855 fi
6856 rm -f conftest* ;;
6857 esac
6858 fi
6859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6860 printf "%s\n" "$lt_cv_nm_interface" >&6; }
6861
6862 # find the maximum length of command line arguments
6863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6864 printf %s "checking the maximum length of command line arguments... " >&6; }
6865 if test ${lt_cv_sys_max_cmd_len+y}
6866 then :
6867 printf %s "(cached) " >&6
6868 else case e in #(
6869 e) i=0
6870 teststring=ABCD
6871
6872 case $build_os in
6873 msdosdjgpp*)
6874 # On DJGPP, this test can blow up pretty badly due to problems in libc
6875 # (any single argument exceeding 2000 bytes causes a buffer overrun
6876 # during glob expansion). Even if it were fixed, the result of this
6877 # check would be larger than it should be.
6878 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6879 ;;
6880
6881 gnu* | ironclad*)
6882 # Under GNU Hurd and Ironclad, this test is not required because there
6883 # is no limit to the length of command line arguments.
6884 # Libtool will interpret -1 as no limit whatsoever
6885 lt_cv_sys_max_cmd_len=-1;
6886 ;;
6887
6888 cygwin* | mingw* | windows* | cegcc*)
6889 # On Win9x/ME, this test blows up -- it succeeds, but takes
6890 # about 5 minutes as the teststring grows exponentially.
6891 # Worse, since 9x/ME are not pre-emptively multitasking,
6892 # you end up with a "frozen" computer, even though with patience
6893 # the test eventually succeeds (with a max line length of 256k).
6894 # Instead, let's just punt: use the minimum linelength reported by
6895 # all of the supported platforms: 8192 (on NT/2K/XP).
6896 lt_cv_sys_max_cmd_len=8192;
6897 ;;
6898
6899 mint*)
6900 # On MiNT this can take a long time and run out of memory.
6901 lt_cv_sys_max_cmd_len=8192;
6902 ;;
6903
6904 amigaos*)
6905 # On AmigaOS with pdksh, this test takes hours, literally.
6906 # So we just punt and use a minimum line length of 8192.
6907 lt_cv_sys_max_cmd_len=8192;
6908 ;;
6909
6910 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
6911 # This has been around since 386BSD, at least. Likely further.
6912 if test -x /sbin/sysctl; then
6913 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6914 elif test -x /usr/sbin/sysctl; then
6915 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6916 else
6917 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6918 fi
6919 # And add a safety zone
6920 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6921 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6922 ;;
6923
6924 interix*)
6925 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6926 lt_cv_sys_max_cmd_len=196608
6927 ;;
6928
6929 os2*)
6930 # The test takes a long time on OS/2.
6931 lt_cv_sys_max_cmd_len=8192
6932 ;;
6933
6934 osf*)
6935 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6936 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6937 # nice to cause kernel panics so lets avoid the loop below.
6938 # First set a reasonable default.
6939 lt_cv_sys_max_cmd_len=16384
6940 #
6941 if test -x /sbin/sysconfig; then
6942 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6943 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6944 esac
6945 fi
6946 ;;
6947 sco3.2v5*)
6948 lt_cv_sys_max_cmd_len=102400
6949 ;;
6950 sysv5* | sco5v6* | sysv4.2uw2*)
6951 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6952 if test -n "$kargmax"; then
6953 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
6954 else
6955 lt_cv_sys_max_cmd_len=32768
6956 fi
6957 ;;
6958 *)
6959 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6960 if test -n "$lt_cv_sys_max_cmd_len" && \
6961 test undefined != "$lt_cv_sys_max_cmd_len"; then
6962 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6963 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6964 else
6965 # Make teststring a little bigger before we do anything with it.
6966 # a 1K string should be a reasonable start.
6967 for i in 1 2 3 4 5 6 7 8; do
6968 teststring=$teststring$teststring
6969 done
6970 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6971 # If test is not a shell built-in, we'll probably end up computing a
6972 # maximum length that is only half of the actual maximum length, but
6973 # we can't tell.
6974 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6975 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6976 test 17 != "$i" # 1/2 MB should be enough
6977 do
6978 i=`expr $i + 1`
6979 teststring=$teststring$teststring
6980 done
6981 # Only check the string length outside the loop.
6982 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6983 teststring=
6984 # Add a significant safety factor because C++ compilers can tack on
6985 # massive amounts of additional arguments before passing them to the
6986 # linker. It appears as though 1/2 is a usable value.
6987 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6988 fi
6989 ;;
6990 esac
6991 ;;
6992 esac
6993 fi
6994
6995 if test -n "$lt_cv_sys_max_cmd_len"; then
6996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6997 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6998 else
6999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
7000 printf "%s\n" "none" >&6; }
7001 fi
7002 max_cmd_len=$lt_cv_sys_max_cmd_len
7003
7004
7005
7006
7007
7008
7009 : ${CP="cp -f"}
7010 : ${MV="mv -f"}
7011 : ${RM="rm -f"}
7012
7013 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7014 lt_unset=unset
7015 else
7016 lt_unset=false
7017 fi
7018
7019
7020
7021
7022
7023 # test EBCDIC or ASCII
7024 case `echo X|tr X '\101'` in
7025 A) # ASCII based system
7026 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7027 lt_SP2NL='tr \040 \012'
7028 lt_NL2SP='tr \015\012 \040\040'
7029 ;;
7030 *) # EBCDIC based system
7031 lt_SP2NL='tr \100 \n'
7032 lt_NL2SP='tr \r\n \100\100'
7033 ;;
7034 esac
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7045 printf %s "checking how to convert $build file names to $host format... " >&6; }
7046 if test ${lt_cv_to_host_file_cmd+y}
7047 then :
7048 printf %s "(cached) " >&6
7049 else case e in #(
7050 e) case $host in
7051 *-*-mingw* )
7052 case $build in
7053 *-*-mingw* | *-*-windows* ) # actually msys
7054 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7055 ;;
7056 *-*-cygwin* )
7057 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7058 ;;
7059 * ) # otherwise, assume *nix
7060 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7061 ;;
7062 esac
7063 ;;
7064 *-*-cygwin* )
7065 case $build in
7066 *-*-mingw* | *-*-windows* ) # actually msys
7067 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7068 ;;
7069 *-*-cygwin* )
7070 lt_cv_to_host_file_cmd=func_convert_file_noop
7071 ;;
7072 * ) # otherwise, assume *nix
7073 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7074 ;;
7075 esac
7076 ;;
7077 * ) # unhandled hosts (and "normal" native builds)
7078 lt_cv_to_host_file_cmd=func_convert_file_noop
7079 ;;
7080 esac
7081 ;;
7082 esac
7083 fi
7084
7085 to_host_file_cmd=$lt_cv_to_host_file_cmd
7086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7087 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
7088
7089
7090
7091
7092
7093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7094 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
7095 if test ${lt_cv_to_tool_file_cmd+y}
7096 then :
7097 printf %s "(cached) " >&6
7098 else case e in #(
7099 e) #assume ordinary cross tools, or native build.
7100 lt_cv_to_tool_file_cmd=func_convert_file_noop
7101 case $host in
7102 *-*-mingw* | *-*-windows* )
7103 case $build in
7104 *-*-mingw* | *-*-windows* ) # actually msys
7105 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7106 ;;
7107 esac
7108 ;;
7109 esac
7110 ;;
7111 esac
7112 fi
7113
7114 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7116 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
7117
7118
7119
7120
7121
7122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7123 printf %s "checking for $LD option to reload object files... " >&6; }
7124 if test ${lt_cv_ld_reload_flag+y}
7125 then :
7126 printf %s "(cached) " >&6
7127 else case e in #(
7128 e) lt_cv_ld_reload_flag='-r' ;;
7129 esac
7130 fi
7131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7132 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
7133 reload_flag=$lt_cv_ld_reload_flag
7134 case $reload_flag in
7135 "" | " "*) ;;
7136 *) reload_flag=" $reload_flag" ;;
7137 esac
7138 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7139 case $host_os in
7140 cygwin* | mingw* | windows* | pw32* | cegcc*)
7141 if test yes != "$GCC"; then
7142 reload_cmds=false
7143 fi
7144 ;;
7145 darwin*)
7146 if test yes = "$GCC"; then
7147 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7148 else
7149 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7150 fi
7151 ;;
7152 esac
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162 # Extract the first word of "file", so it can be a program name with args.
7163 set dummy file; ac_word=$2
7164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7165 printf %s "checking for $ac_word... " >&6; }
7166 if test ${ac_cv_prog_FILECMD+y}
7167 then :
7168 printf %s "(cached) " >&6
7169 else case e in #(
7170 e) if test -n "$FILECMD"; then
7171 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
7172 else
7173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7174 for as_dir in $PATH
7175 do
7176 IFS=$as_save_IFS
7177 case $as_dir in #(((
7178 '') as_dir=./ ;;
7179 */) ;;
7180 *) as_dir=$as_dir/ ;;
7181 esac
7182 for ac_exec_ext in '' $ac_executable_extensions; do
7183 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7184 ac_cv_prog_FILECMD="file"
7185 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7186 break 2
7187 fi
7188 done
7189 done
7190 IFS=$as_save_IFS
7191
7192 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
7193 fi ;;
7194 esac
7195 fi
7196 FILECMD=$ac_cv_prog_FILECMD
7197 if test -n "$FILECMD"; then
7198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
7199 printf "%s\n" "$FILECMD" >&6; }
7200 else
7201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7202 printf "%s\n" "no" >&6; }
7203 fi
7204
7205
7206
7207
7208
7209
7210
7211
7212 if test -n "$ac_tool_prefix"; then
7213 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7214 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7216 printf %s "checking for $ac_word... " >&6; }
7217 if test ${ac_cv_prog_OBJDUMP+y}
7218 then :
7219 printf %s "(cached) " >&6
7220 else case e in #(
7221 e) if test -n "$OBJDUMP"; then
7222 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7223 else
7224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7225 for as_dir in $PATH
7226 do
7227 IFS=$as_save_IFS
7228 case $as_dir in #(((
7229 '') as_dir=./ ;;
7230 */) ;;
7231 *) as_dir=$as_dir/ ;;
7232 esac
7233 for ac_exec_ext in '' $ac_executable_extensions; do
7234 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7235 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7236 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7237 break 2
7238 fi
7239 done
7240 done
7241 IFS=$as_save_IFS
7242
7243 fi ;;
7244 esac
7245 fi
7246 OBJDUMP=$ac_cv_prog_OBJDUMP
7247 if test -n "$OBJDUMP"; then
7248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7249 printf "%s\n" "$OBJDUMP" >&6; }
7250 else
7251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7252 printf "%s\n" "no" >&6; }
7253 fi
7254
7255
7256 fi
7257 if test -z "$ac_cv_prog_OBJDUMP"; then
7258 ac_ct_OBJDUMP=$OBJDUMP
7259 # Extract the first word of "objdump", so it can be a program name with args.
7260 set dummy objdump; ac_word=$2
7261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7262 printf %s "checking for $ac_word... " >&6; }
7263 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
7264 then :
7265 printf %s "(cached) " >&6
7266 else case e in #(
7267 e) if test -n "$ac_ct_OBJDUMP"; then
7268 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7269 else
7270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7271 for as_dir in $PATH
7272 do
7273 IFS=$as_save_IFS
7274 case $as_dir in #(((
7275 '') as_dir=./ ;;
7276 */) ;;
7277 *) as_dir=$as_dir/ ;;
7278 esac
7279 for ac_exec_ext in '' $ac_executable_extensions; do
7280 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7281 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7282 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7283 break 2
7284 fi
7285 done
7286 done
7287 IFS=$as_save_IFS
7288
7289 fi ;;
7290 esac
7291 fi
7292 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7293 if test -n "$ac_ct_OBJDUMP"; then
7294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7295 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
7296 else
7297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7298 printf "%s\n" "no" >&6; }
7299 fi
7300
7301 if test "x$ac_ct_OBJDUMP" = x; then
7302 OBJDUMP="false"
7303 else
7304 case $cross_compiling:$ac_tool_warned in
7305 yes:)
7306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7307 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7308 ac_tool_warned=yes ;;
7309 esac
7310 OBJDUMP=$ac_ct_OBJDUMP
7311 fi
7312 else
7313 OBJDUMP="$ac_cv_prog_OBJDUMP"
7314 fi
7315
7316 test -z "$OBJDUMP" && OBJDUMP=objdump
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7327 printf %s "checking how to recognize dependent libraries... " >&6; }
7328 if test ${lt_cv_deplibs_check_method+y}
7329 then :
7330 printf %s "(cached) " >&6
7331 else case e in #(
7332 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
7333 lt_cv_file_magic_test_file=
7334 lt_cv_deplibs_check_method='unknown'
7335 # Need to set the preceding variable on all platforms that support
7336 # interlibrary dependencies.
7337 # 'none' -- dependencies not supported.
7338 # 'unknown' -- same as none, but documents that we really don't know.
7339 # 'pass_all' -- all dependencies passed with no checks.
7340 # 'file_magic [[regex]]' -- check by looking for files in library path
7341 # that responds to the $file_magic_cmd with a given extended regex.
7342 # If you have 'file' or equivalent on your system and you're not sure
7343 # whether 'pass_all' will *always* work, you probably want this one.
7344
7345 case $host_os in
7346 aix[4-9]*)
7347 lt_cv_deplibs_check_method=pass_all
7348 ;;
7349
7350 beos*)
7351 lt_cv_deplibs_check_method=pass_all
7352 ;;
7353
7354 bsdi[45]*)
7355 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7356 lt_cv_file_magic_cmd='$FILECMD -L'
7357 lt_cv_file_magic_test_file=/shlib/libc.so
7358 ;;
7359
7360 cygwin*)
7361 # func_win32_libid is a shell function defined in ltmain.sh
7362 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7363 lt_cv_file_magic_cmd='func_win32_libid'
7364 ;;
7365
7366 mingw* | windows* | pw32*)
7367 # Base MSYS/MinGW do not provide the 'file' command needed by
7368 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7369 # unless we find 'file', for example because we are cross-compiling.
7370 if ( file / ) >/dev/null 2>&1; then
7371 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7372 lt_cv_file_magic_cmd='func_win32_libid'
7373 else
7374 # Keep this pattern in sync with the one in func_win32_libid.
7375 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
7376 lt_cv_file_magic_cmd='$OBJDUMP -f'
7377 fi
7378 ;;
7379
7380 cegcc*)
7381 # use the weaker test based on 'objdump'. See mingw*.
7382 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7383 lt_cv_file_magic_cmd='$OBJDUMP -f'
7384 ;;
7385
7386 darwin* | rhapsody*)
7387 lt_cv_deplibs_check_method=pass_all
7388 ;;
7389
7390 freebsd* | dragonfly* | midnightbsd*)
7391 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7392 case $host_cpu in
7393 i*86 )
7394 # Not sure whether the presence of OpenBSD here was a mistake.
7395 # Let's accept both of them until this is cleared up.
7396 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7397 lt_cv_file_magic_cmd=$FILECMD
7398 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7399 ;;
7400 esac
7401 else
7402 lt_cv_deplibs_check_method=pass_all
7403 fi
7404 ;;
7405
7406 haiku*)
7407 lt_cv_deplibs_check_method=pass_all
7408 ;;
7409
7410 hpux10.20* | hpux11*)
7411 lt_cv_file_magic_cmd=$FILECMD
7412 case $host_cpu in
7413 ia64*)
7414 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7415 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7416 ;;
7417 hppa*64*)
7418 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
7419 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7420 ;;
7421 *)
7422 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7423 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7424 ;;
7425 esac
7426 ;;
7427
7428 interix[3-9]*)
7429 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7430 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7431 ;;
7432
7433 irix5* | irix6* | nonstopux*)
7434 case $LD in
7435 *-32|*"-32 ") libmagic=32-bit;;
7436 *-n32|*"-n32 ") libmagic=N32;;
7437 *-64|*"-64 ") libmagic=64-bit;;
7438 *) libmagic=never-match;;
7439 esac
7440 lt_cv_deplibs_check_method=pass_all
7441 ;;
7442
7443 # This must be glibc/ELF.
7444 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7445 lt_cv_deplibs_check_method=pass_all
7446 ;;
7447
7448 *-mlibc)
7449 lt_cv_deplibs_check_method=pass_all
7450 ;;
7451
7452 netbsd* | netbsdelf*-gnu)
7453 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7454 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7455 else
7456 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7457 fi
7458 ;;
7459
7460 newos6*)
7461 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7462 lt_cv_file_magic_cmd=$FILECMD
7463 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7464 ;;
7465
7466 *nto* | *qnx*)
7467 lt_cv_deplibs_check_method=pass_all
7468 ;;
7469
7470 openbsd*)
7471 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7472 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7473 else
7474 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7475 fi
7476 ;;
7477
7478 osf3* | osf4* | osf5*)
7479 lt_cv_deplibs_check_method=pass_all
7480 ;;
7481
7482 rdos*)
7483 lt_cv_deplibs_check_method=pass_all
7484 ;;
7485
7486 serenity*)
7487 lt_cv_deplibs_check_method=pass_all
7488 ;;
7489
7490 solaris*)
7491 lt_cv_deplibs_check_method=pass_all
7492 ;;
7493
7494 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7495 lt_cv_deplibs_check_method=pass_all
7496 ;;
7497
7498 sysv4 | sysv4.3*)
7499 case $host_vendor in
7500 motorola)
7501 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]'
7502 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7503 ;;
7504 ncr)
7505 lt_cv_deplibs_check_method=pass_all
7506 ;;
7507 sequent)
7508 lt_cv_file_magic_cmd='/bin/file'
7509 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7510 ;;
7511 sni)
7512 lt_cv_file_magic_cmd='/bin/file'
7513 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7514 lt_cv_file_magic_test_file=/lib/libc.so
7515 ;;
7516 siemens)
7517 lt_cv_deplibs_check_method=pass_all
7518 ;;
7519 pc)
7520 lt_cv_deplibs_check_method=pass_all
7521 ;;
7522 esac
7523 ;;
7524
7525 tpf*)
7526 lt_cv_deplibs_check_method=pass_all
7527 ;;
7528 os2*)
7529 lt_cv_deplibs_check_method=pass_all
7530 ;;
7531 esac
7532 ;;
7533 esac
7534 fi
7535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7536 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
7537
7538 file_magic_glob=
7539 want_nocaseglob=no
7540 if test "$build" = "$host"; then
7541 case $host_os in
7542 mingw* | windows* | pw32*)
7543 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7544 want_nocaseglob=yes
7545 else
7546 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7547 fi
7548 ;;
7549 esac
7550 fi
7551
7552 file_magic_cmd=$lt_cv_file_magic_cmd
7553 deplibs_check_method=$lt_cv_deplibs_check_method
7554 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577 if test -n "$ac_tool_prefix"; then
7578 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7579 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7581 printf %s "checking for $ac_word... " >&6; }
7582 if test ${ac_cv_prog_DLLTOOL+y}
7583 then :
7584 printf %s "(cached) " >&6
7585 else case e in #(
7586 e) if test -n "$DLLTOOL"; then
7587 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7588 else
7589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7590 for as_dir in $PATH
7591 do
7592 IFS=$as_save_IFS
7593 case $as_dir in #(((
7594 '') as_dir=./ ;;
7595 */) ;;
7596 *) as_dir=$as_dir/ ;;
7597 esac
7598 for ac_exec_ext in '' $ac_executable_extensions; do
7599 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7600 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7601 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7602 break 2
7603 fi
7604 done
7605 done
7606 IFS=$as_save_IFS
7607
7608 fi ;;
7609 esac
7610 fi
7611 DLLTOOL=$ac_cv_prog_DLLTOOL
7612 if test -n "$DLLTOOL"; then
7613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7614 printf "%s\n" "$DLLTOOL" >&6; }
7615 else
7616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7617 printf "%s\n" "no" >&6; }
7618 fi
7619
7620
7621 fi
7622 if test -z "$ac_cv_prog_DLLTOOL"; then
7623 ac_ct_DLLTOOL=$DLLTOOL
7624 # Extract the first word of "dlltool", so it can be a program name with args.
7625 set dummy dlltool; ac_word=$2
7626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7627 printf %s "checking for $ac_word... " >&6; }
7628 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
7629 then :
7630 printf %s "(cached) " >&6
7631 else case e in #(
7632 e) if test -n "$ac_ct_DLLTOOL"; then
7633 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7634 else
7635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7636 for as_dir in $PATH
7637 do
7638 IFS=$as_save_IFS
7639 case $as_dir in #(((
7640 '') as_dir=./ ;;
7641 */) ;;
7642 *) as_dir=$as_dir/ ;;
7643 esac
7644 for ac_exec_ext in '' $ac_executable_extensions; do
7645 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7646 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7647 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7648 break 2
7649 fi
7650 done
7651 done
7652 IFS=$as_save_IFS
7653
7654 fi ;;
7655 esac
7656 fi
7657 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7658 if test -n "$ac_ct_DLLTOOL"; then
7659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7660 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
7661 else
7662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7663 printf "%s\n" "no" >&6; }
7664 fi
7665
7666 if test "x$ac_ct_DLLTOOL" = x; then
7667 DLLTOOL="false"
7668 else
7669 case $cross_compiling:$ac_tool_warned in
7670 yes:)
7671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7672 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7673 ac_tool_warned=yes ;;
7674 esac
7675 DLLTOOL=$ac_ct_DLLTOOL
7676 fi
7677 else
7678 DLLTOOL="$ac_cv_prog_DLLTOOL"
7679 fi
7680
7681 test -z "$DLLTOOL" && DLLTOOL=dlltool
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7693 printf %s "checking how to associate runtime and link libraries... " >&6; }
7694 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
7695 then :
7696 printf %s "(cached) " >&6
7697 else case e in #(
7698 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
7699
7700 case $host_os in
7701 cygwin* | mingw* | windows* | pw32* | cegcc*)
7702 # two different shell functions defined in ltmain.sh;
7703 # decide which one to use based on capabilities of $DLLTOOL
7704 case `$DLLTOOL --help 2>&1` in
7705 *--identify-strict*)
7706 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7707 ;;
7708 *)
7709 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7710 ;;
7711 esac
7712 ;;
7713 *)
7714 # fallback: assume linklib IS sharedlib
7715 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7716 ;;
7717 esac
7718 ;;
7719 esac
7720 fi
7721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7722 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7723 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7724 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7725
7726
7727
7728
7729
7730
7731
7732 if test -n "$ac_tool_prefix"; then
7733 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7734 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7736 printf %s "checking for $ac_word... " >&6; }
7737 if test ${ac_cv_prog_RANLIB+y}
7738 then :
7739 printf %s "(cached) " >&6
7740 else case e in #(
7741 e) if test -n "$RANLIB"; then
7742 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7743 else
7744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7745 for as_dir in $PATH
7746 do
7747 IFS=$as_save_IFS
7748 case $as_dir in #(((
7749 '') as_dir=./ ;;
7750 */) ;;
7751 *) as_dir=$as_dir/ ;;
7752 esac
7753 for ac_exec_ext in '' $ac_executable_extensions; do
7754 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7755 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7756 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7757 break 2
7758 fi
7759 done
7760 done
7761 IFS=$as_save_IFS
7762
7763 fi ;;
7764 esac
7765 fi
7766 RANLIB=$ac_cv_prog_RANLIB
7767 if test -n "$RANLIB"; then
7768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7769 printf "%s\n" "$RANLIB" >&6; }
7770 else
7771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7772 printf "%s\n" "no" >&6; }
7773 fi
7774
7775
7776 fi
7777 if test -z "$ac_cv_prog_RANLIB"; then
7778 ac_ct_RANLIB=$RANLIB
7779 # Extract the first word of "ranlib", so it can be a program name with args.
7780 set dummy ranlib; ac_word=$2
7781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7782 printf %s "checking for $ac_word... " >&6; }
7783 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7784 then :
7785 printf %s "(cached) " >&6
7786 else case e in #(
7787 e) if test -n "$ac_ct_RANLIB"; then
7788 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7789 else
7790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7791 for as_dir in $PATH
7792 do
7793 IFS=$as_save_IFS
7794 case $as_dir in #(((
7795 '') as_dir=./ ;;
7796 */) ;;
7797 *) as_dir=$as_dir/ ;;
7798 esac
7799 for ac_exec_ext in '' $ac_executable_extensions; do
7800 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7801 ac_cv_prog_ac_ct_RANLIB="ranlib"
7802 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7803 break 2
7804 fi
7805 done
7806 done
7807 IFS=$as_save_IFS
7808
7809 fi ;;
7810 esac
7811 fi
7812 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7813 if test -n "$ac_ct_RANLIB"; then
7814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7815 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7816 else
7817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7818 printf "%s\n" "no" >&6; }
7819 fi
7820
7821 if test "x$ac_ct_RANLIB" = x; then
7822 RANLIB=":"
7823 else
7824 case $cross_compiling:$ac_tool_warned in
7825 yes:)
7826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7827 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7828 ac_tool_warned=yes ;;
7829 esac
7830 RANLIB=$ac_ct_RANLIB
7831 fi
7832 else
7833 RANLIB="$ac_cv_prog_RANLIB"
7834 fi
7835
7836 if test -n "$ac_tool_prefix"; then
7837 for ac_prog in ar
7838 do
7839 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7840 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7842 printf %s "checking for $ac_word... " >&6; }
7843 if test ${ac_cv_prog_AR+y}
7844 then :
7845 printf %s "(cached) " >&6
7846 else case e in #(
7847 e) if test -n "$AR"; then
7848 ac_cv_prog_AR="$AR" # Let the user override the test.
7849 else
7850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7851 for as_dir in $PATH
7852 do
7853 IFS=$as_save_IFS
7854 case $as_dir in #(((
7855 '') as_dir=./ ;;
7856 */) ;;
7857 *) as_dir=$as_dir/ ;;
7858 esac
7859 for ac_exec_ext in '' $ac_executable_extensions; do
7860 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7861 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7862 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7863 break 2
7864 fi
7865 done
7866 done
7867 IFS=$as_save_IFS
7868
7869 fi ;;
7870 esac
7871 fi
7872 AR=$ac_cv_prog_AR
7873 if test -n "$AR"; then
7874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7875 printf "%s\n" "$AR" >&6; }
7876 else
7877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7878 printf "%s\n" "no" >&6; }
7879 fi
7880
7881
7882 test -n "$AR" && break
7883 done
7884 fi
7885 if test -z "$AR"; then
7886 ac_ct_AR=$AR
7887 for ac_prog in ar
7888 do
7889 # Extract the first word of "$ac_prog", so it can be a program name with args.
7890 set dummy $ac_prog; ac_word=$2
7891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7892 printf %s "checking for $ac_word... " >&6; }
7893 if test ${ac_cv_prog_ac_ct_AR+y}
7894 then :
7895 printf %s "(cached) " >&6
7896 else case e in #(
7897 e) if test -n "$ac_ct_AR"; then
7898 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7899 else
7900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7901 for as_dir in $PATH
7902 do
7903 IFS=$as_save_IFS
7904 case $as_dir in #(((
7905 '') as_dir=./ ;;
7906 */) ;;
7907 *) as_dir=$as_dir/ ;;
7908 esac
7909 for ac_exec_ext in '' $ac_executable_extensions; do
7910 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7911 ac_cv_prog_ac_ct_AR="$ac_prog"
7912 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7913 break 2
7914 fi
7915 done
7916 done
7917 IFS=$as_save_IFS
7918
7919 fi ;;
7920 esac
7921 fi
7922 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7923 if test -n "$ac_ct_AR"; then
7924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7925 printf "%s\n" "$ac_ct_AR" >&6; }
7926 else
7927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7928 printf "%s\n" "no" >&6; }
7929 fi
7930
7931
7932 test -n "$ac_ct_AR" && break
7933 done
7934
7935 if test "x$ac_ct_AR" = x; then
7936 AR="false"
7937 else
7938 case $cross_compiling:$ac_tool_warned in
7939 yes:)
7940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7941 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7942 ac_tool_warned=yes ;;
7943 esac
7944 AR=$ac_ct_AR
7945 fi
7946 fi
7947
7948 : ${AR=ar}
7949
7950
7951
7952
7953
7954
7955 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
7956 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
7957 # higher priority because that's what people were doing historically (setting
7958 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
7959 # variable obsoleted/removed.
7960
7961 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7962 lt_ar_flags=$AR_FLAGS
7963
7964
7965
7966
7967
7968
7969 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
7970 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7971
7972
7973
7974
7975
7976
7977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7978 printf %s "checking for archiver @FILE support... " >&6; }
7979 if test ${lt_cv_ar_at_file+y}
7980 then :
7981 printf %s "(cached) " >&6
7982 else case e in #(
7983 e) lt_cv_ar_at_file=no
7984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7985 /* end confdefs.h. */
7986
7987 int
7988 main (void)
7989 {
7990
7991 ;
7992 return 0;
7993 }
7994 _ACEOF
7995 if ac_fn_c_try_compile "$LINENO"
7996 then :
7997 echo conftest.$ac_objext > conftest.lst
7998 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7999 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8000 (eval $lt_ar_try) 2>&5
8001 ac_status=$?
8002 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8003 test $ac_status = 0; }
8004 if test 0 -eq "$ac_status"; then
8005 # Ensure the archiver fails upon bogus file names.
8006 rm -f conftest.$ac_objext libconftest.a
8007 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8008 (eval $lt_ar_try) 2>&5
8009 ac_status=$?
8010 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8011 test $ac_status = 0; }
8012 if test 0 -ne "$ac_status"; then
8013 lt_cv_ar_at_file=@
8014 fi
8015 fi
8016 rm -f conftest.* libconftest.a
8017
8018 fi
8019 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8020 ;;
8021 esac
8022 fi
8023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8024 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
8025
8026 if test no = "$lt_cv_ar_at_file"; then
8027 archiver_list_spec=
8028 else
8029 archiver_list_spec=$lt_cv_ar_at_file
8030 fi
8031
8032
8033
8034
8035
8036
8037
8038 if test -n "$ac_tool_prefix"; then
8039 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8040 set dummy ${ac_tool_prefix}strip; ac_word=$2
8041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8042 printf %s "checking for $ac_word... " >&6; }
8043 if test ${ac_cv_prog_STRIP+y}
8044 then :
8045 printf %s "(cached) " >&6
8046 else case e in #(
8047 e) if test -n "$STRIP"; then
8048 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8049 else
8050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8051 for as_dir in $PATH
8052 do
8053 IFS=$as_save_IFS
8054 case $as_dir in #(((
8055 '') as_dir=./ ;;
8056 */) ;;
8057 *) as_dir=$as_dir/ ;;
8058 esac
8059 for ac_exec_ext in '' $ac_executable_extensions; do
8060 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8061 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8062 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8063 break 2
8064 fi
8065 done
8066 done
8067 IFS=$as_save_IFS
8068
8069 fi ;;
8070 esac
8071 fi
8072 STRIP=$ac_cv_prog_STRIP
8073 if test -n "$STRIP"; then
8074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8075 printf "%s\n" "$STRIP" >&6; }
8076 else
8077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8078 printf "%s\n" "no" >&6; }
8079 fi
8080
8081
8082 fi
8083 if test -z "$ac_cv_prog_STRIP"; then
8084 ac_ct_STRIP=$STRIP
8085 # Extract the first word of "strip", so it can be a program name with args.
8086 set dummy strip; ac_word=$2
8087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8088 printf %s "checking for $ac_word... " >&6; }
8089 if test ${ac_cv_prog_ac_ct_STRIP+y}
8090 then :
8091 printf %s "(cached) " >&6
8092 else case e in #(
8093 e) if test -n "$ac_ct_STRIP"; then
8094 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8095 else
8096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8097 for as_dir in $PATH
8098 do
8099 IFS=$as_save_IFS
8100 case $as_dir in #(((
8101 '') as_dir=./ ;;
8102 */) ;;
8103 *) as_dir=$as_dir/ ;;
8104 esac
8105 for ac_exec_ext in '' $ac_executable_extensions; do
8106 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8107 ac_cv_prog_ac_ct_STRIP="strip"
8108 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8109 break 2
8110 fi
8111 done
8112 done
8113 IFS=$as_save_IFS
8114
8115 fi ;;
8116 esac
8117 fi
8118 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8119 if test -n "$ac_ct_STRIP"; then
8120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8121 printf "%s\n" "$ac_ct_STRIP" >&6; }
8122 else
8123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8124 printf "%s\n" "no" >&6; }
8125 fi
8126
8127 if test "x$ac_ct_STRIP" = x; then
8128 STRIP=":"
8129 else
8130 case $cross_compiling:$ac_tool_warned in
8131 yes:)
8132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8133 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8134 ac_tool_warned=yes ;;
8135 esac
8136 STRIP=$ac_ct_STRIP
8137 fi
8138 else
8139 STRIP="$ac_cv_prog_STRIP"
8140 fi
8141
8142 test -z "$STRIP" && STRIP=:
8143
8144
8145
8146
8147
8148
8149
8150 test -z "$RANLIB" && RANLIB=:
8151
8152
8153
8154
8155
8156
8157 # Determine commands to create old-style static archives.
8158 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8159 old_postinstall_cmds='chmod 644 $oldlib'
8160 old_postuninstall_cmds=
8161
8162 if test -n "$RANLIB"; then
8163 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8164 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8165 fi
8166
8167 case $host_os in
8168 darwin*)
8169 lock_old_archive_extraction=yes ;;
8170 *)
8171 lock_old_archive_extraction=no ;;
8172 esac
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212 # If no C compiler was specified, use CC.
8213 LTCC=${LTCC-"$CC"}
8214
8215 # If no C compiler flags were specified, use CFLAGS.
8216 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8217
8218 # Allow CC to be a program name with arguments.
8219 compiler=$CC
8220
8221
8222 # Check for command to grab the raw symbol name followed by C symbol from nm.
8223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8224 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
8225 if test ${lt_cv_sys_global_symbol_pipe+y}
8226 then :
8227 printf %s "(cached) " >&6
8228 else case e in #(
8229 e)
8230 # These are sane defaults that work on at least a few old systems.
8231 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8232
8233 # Character class describing NM global symbol codes.
8234 symcode='[BCDEGRST]'
8235
8236 # Regexp to match symbols that can be accessed directly from C.
8237 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8238
8239 # Define system-specific variables.
8240 case $host_os in
8241 aix*)
8242 symcode='[BCDT]'
8243 ;;
8244 cygwin* | mingw* | windows* | pw32* | cegcc*)
8245 symcode='[ABCDGISTW]'
8246 ;;
8247 hpux*)
8248 if test ia64 = "$host_cpu"; then
8249 symcode='[ABCDEGRST]'
8250 fi
8251 ;;
8252 irix* | nonstopux*)
8253 symcode='[BCDEGRST]'
8254 ;;
8255 osf*)
8256 symcode='[BCDEGQRST]'
8257 ;;
8258 solaris*)
8259 symcode='[BCDRT]'
8260 ;;
8261 sco3.2v5*)
8262 symcode='[DT]'
8263 ;;
8264 sysv4.2uw2*)
8265 symcode='[DT]'
8266 ;;
8267 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8268 symcode='[ABDT]'
8269 ;;
8270 sysv4)
8271 symcode='[DFNSTU]'
8272 ;;
8273 esac
8274
8275 # If we're using GNU nm, then use its standard symbol codes.
8276 case `$NM -V 2>&1` in
8277 *GNU* | *'with BFD'*)
8278 symcode='[ABCDGIRSTW]' ;;
8279 esac
8280
8281 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8282 # Gets list of data symbols to import.
8283 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
8284 # Adjust the below global symbol transforms to fixup imported variables.
8285 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8286 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
8287 lt_c_name_lib_hook="\
8288 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
8289 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
8290 else
8291 # Disable hooks by default.
8292 lt_cv_sys_global_symbol_to_import=
8293 lt_cdecl_hook=
8294 lt_c_name_hook=
8295 lt_c_name_lib_hook=
8296 fi
8297
8298 # Transform an extracted symbol line into a proper C declaration.
8299 # Some systems (esp. on ia64) link data and code symbols differently,
8300 # so use this general approach.
8301 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
8302 $lt_cdecl_hook\
8303 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8304 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8305
8306 # Transform an extracted symbol line into symbol name and symbol address
8307 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
8308 $lt_c_name_hook\
8309 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8310 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
8311
8312 # Transform an extracted symbol line into symbol name with lib prefix and
8313 # symbol address.
8314 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
8315 $lt_c_name_lib_hook\
8316 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8317 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
8318 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
8319
8320 # Handle CRLF in mingw tool chain
8321 opt_cr=
8322 case $build_os in
8323 mingw* | windows*)
8324 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8325 ;;
8326 esac
8327
8328 # Try without a prefix underscore, then with it.
8329 for ac_symprfx in "" "_"; do
8330
8331 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8332 symxfrm="\\1 $ac_symprfx\\2 \\2"
8333
8334 # Write the raw and C identifiers.
8335 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8336 # Fake it for dumpbin and say T for any non-static function,
8337 # D for any global variable and I for any imported variable.
8338 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
8339 # which start with @ or ?.
8340 lt_cv_sys_global_symbol_pipe="$AWK '"\
8341 " {last_section=section; section=\$ 3};"\
8342 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8343 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8344 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8345 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8346 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8347 " \$ 0!~/External *\|/{next};"\
8348 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8349 " {if(hide[section]) next};"\
8350 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8351 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8352 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8353 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8354 " ' prfx=^$ac_symprfx"
8355 else
8356 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8357 fi
8358 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
8359
8360 # Check to see that the pipe works correctly.
8361 pipe_works=no
8362
8363 rm -f conftest*
8364 cat > conftest.$ac_ext <<_LT_EOF
8365 #ifdef __cplusplus
8366 extern "C" {
8367 #endif
8368 char nm_test_var;
8369 void nm_test_func(void);
8370 void nm_test_func(void){}
8371 #ifdef __cplusplus
8372 }
8373 #endif
8374 int main(void){nm_test_var='a';nm_test_func();return(0);}
8375 _LT_EOF
8376
8377 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8378 (eval $ac_compile) 2>&5
8379 ac_status=$?
8380 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8381 test $ac_status = 0; }; then
8382 # Now try to grab the symbols.
8383 nlist=conftest.nm
8384 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
8385 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
8386 # Try sorting and uniquifying the output.
8387 if sort "$nlist" | uniq > "$nlist"T; then
8388 mv -f "$nlist"T "$nlist"
8389 else
8390 rm -f "$nlist"T
8391 fi
8392
8393 # Make sure that we snagged all the symbols we need.
8394 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8395 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8396 cat <<_LT_EOF > conftest.$ac_ext
8397 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8398 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8399 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8400 relocations are performed -- see ld's documentation on pseudo-relocs. */
8401 # define LT_DLSYM_CONST
8402 #elif defined __osf__
8403 /* This system does not cope well with relocations in const data. */
8404 # define LT_DLSYM_CONST
8405 #else
8406 # define LT_DLSYM_CONST const
8407 #endif
8408
8409 #ifdef __cplusplus
8410 extern "C" {
8411 #endif
8412
8413 _LT_EOF
8414 # Now generate the symbol file.
8415 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8416
8417 cat <<_LT_EOF >> conftest.$ac_ext
8418
8419 /* The mapping between symbol names and symbols. */
8420 LT_DLSYM_CONST struct {
8421 const char *name;
8422 void *address;
8423 }
8424 lt__PROGRAM__LTX_preloaded_symbols[] =
8425 {
8426 { "@PROGRAM@", (void *) 0 },
8427 _LT_EOF
8428 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8429 cat <<\_LT_EOF >> conftest.$ac_ext
8430 {0, (void *) 0}
8431 };
8432
8433 /* This works around a problem in FreeBSD linker */
8434 #ifdef FREEBSD_WORKAROUND
8435 static const void *lt_preloaded_setup() {
8436 return lt__PROGRAM__LTX_preloaded_symbols;
8437 }
8438 #endif
8439
8440 #ifdef __cplusplus
8441 }
8442 #endif
8443 _LT_EOF
8444 # Now try linking the two files.
8445 mv conftest.$ac_objext conftstm.$ac_objext
8446 lt_globsym_save_LIBS=$LIBS
8447 lt_globsym_save_CFLAGS=$CFLAGS
8448 LIBS=conftstm.$ac_objext
8449 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8450 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8451 (eval $ac_link) 2>&5
8452 ac_status=$?
8453 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8454 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8455 pipe_works=yes
8456 fi
8457 LIBS=$lt_globsym_save_LIBS
8458 CFLAGS=$lt_globsym_save_CFLAGS
8459 else
8460 echo "cannot find nm_test_func in $nlist" >&5
8461 fi
8462 else
8463 echo "cannot find nm_test_var in $nlist" >&5
8464 fi
8465 else
8466 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8467 fi
8468 else
8469 echo "$progname: failed program was:" >&5
8470 cat conftest.$ac_ext >&5
8471 fi
8472 rm -rf conftest* conftst*
8473
8474 # Do not use the global_symbol_pipe unless it works.
8475 if test yes = "$pipe_works"; then
8476 break
8477 else
8478 lt_cv_sys_global_symbol_pipe=
8479 fi
8480 done
8481 ;;
8482 esac
8483 fi
8484
8485 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8486 lt_cv_sys_global_symbol_to_cdecl=
8487 fi
8488 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8490 printf "%s\n" "failed" >&6; }
8491 else
8492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8493 printf "%s\n" "ok" >&6; }
8494 fi
8495
8496 # Response file support.
8497 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8498 nm_file_list_spec='@'
8499 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8500 nm_file_list_spec='@'
8501 fi
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8540 printf %s "checking for sysroot... " >&6; }
8541
8542 # Check whether --with-sysroot was given.
8543 if test ${with_sysroot+y}
8544 then :
8545 withval=$with_sysroot;
8546 else case e in #(
8547 e) with_sysroot=no ;;
8548 esac
8549 fi
8550
8551
8552 lt_sysroot=
8553 case $with_sysroot in #(
8554 yes)
8555 if test yes = "$GCC"; then
8556 # Trim trailing / since we'll always append absolute paths and we want
8557 # to avoid //, if only for less confusing output for the user.
8558 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
8559 fi
8560 ;; #(
8561 /*)
8562 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
8563 ;; #(
8564 no|'')
8565 ;; #(
8566 *)
8567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8568 printf "%s\n" "$with_sysroot" >&6; }
8569 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8570 ;;
8571 esac
8572
8573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8574 printf "%s\n" "${lt_sysroot:-no}" >&6; }
8575
8576
8577
8578
8579
8580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8581 printf %s "checking for a working dd... " >&6; }
8582 if test ${ac_cv_path_lt_DD+y}
8583 then :
8584 printf %s "(cached) " >&6
8585 else case e in #(
8586 e) printf 0123456789abcdef0123456789abcdef >conftest.i
8587 cat conftest.i conftest.i >conftest2.i
8588 : ${lt_DD:=$DD}
8589 if test -z "$lt_DD"; then
8590 ac_path_lt_DD_found=false
8591 # Loop through the user's path and test for each of PROGNAME-LIST
8592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8593 for as_dir in $PATH
8594 do
8595 IFS=$as_save_IFS
8596 case $as_dir in #(((
8597 '') as_dir=./ ;;
8598 */) ;;
8599 *) as_dir=$as_dir/ ;;
8600 esac
8601 for ac_prog in dd
8602 do
8603 for ac_exec_ext in '' $ac_executable_extensions; do
8604 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
8605 as_fn_executable_p "$ac_path_lt_DD" || continue
8606 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8607 cmp -s conftest.i conftest.out \
8608 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8609 fi
8610 $ac_path_lt_DD_found && break 3
8611 done
8612 done
8613 done
8614 IFS=$as_save_IFS
8615 if test -z "$ac_cv_path_lt_DD"; then
8616 :
8617 fi
8618 else
8619 ac_cv_path_lt_DD=$lt_DD
8620 fi
8621
8622 rm -f conftest.i conftest2.i conftest.out ;;
8623 esac
8624 fi
8625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8626 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
8627
8628
8629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8630 printf %s "checking how to truncate binary pipes... " >&6; }
8631 if test ${lt_cv_truncate_bin+y}
8632 then :
8633 printf %s "(cached) " >&6
8634 else case e in #(
8635 e) printf 0123456789abcdef0123456789abcdef >conftest.i
8636 cat conftest.i conftest.i >conftest2.i
8637 lt_cv_truncate_bin=
8638 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8639 cmp -s conftest.i conftest.out \
8640 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8641 fi
8642 rm -f conftest.i conftest2.i conftest.out
8643 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
8644 esac
8645 fi
8646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8647 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
8648
8649
8650
8651
8652
8653
8654
8655 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8656 func_cc_basename ()
8657 {
8658 for cc_temp in $*""; do
8659 case $cc_temp in
8660 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8661 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8662 \-*) ;;
8663 *) break;;
8664 esac
8665 done
8666 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8667 }
8668
8669 # Check whether --enable-libtool-lock was given.
8670 if test ${enable_libtool_lock+y}
8671 then :
8672 enableval=$enable_libtool_lock;
8673 fi
8674
8675 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8676
8677 # Some flags need to be propagated to the compiler or linker for good
8678 # libtool support.
8679 case $host in
8680 ia64-*-hpux*)
8681 # Find out what ABI is being produced by ac_compile, and set mode
8682 # options accordingly.
8683 echo 'int i;' > conftest.$ac_ext
8684 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8685 (eval $ac_compile) 2>&5
8686 ac_status=$?
8687 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8688 test $ac_status = 0; }; then
8689 case `$FILECMD conftest.$ac_objext` in
8690 *ELF-32*)
8691 HPUX_IA64_MODE=32
8692 ;;
8693 *ELF-64*)
8694 HPUX_IA64_MODE=64
8695 ;;
8696 esac
8697 fi
8698 rm -rf conftest*
8699 ;;
8700 *-*-irix6*)
8701 # Find out what ABI is being produced by ac_compile, and set linker
8702 # options accordingly.
8703 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8704 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8705 (eval $ac_compile) 2>&5
8706 ac_status=$?
8707 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8708 test $ac_status = 0; }; then
8709 if test yes = "$lt_cv_prog_gnu_ld"; then
8710 case `$FILECMD conftest.$ac_objext` in
8711 *32-bit*)
8712 LD="${LD-ld} -melf32bsmip"
8713 ;;
8714 *N32*)
8715 LD="${LD-ld} -melf32bmipn32"
8716 ;;
8717 *64-bit*)
8718 LD="${LD-ld} -melf64bmip"
8719 ;;
8720 esac
8721 else
8722 case `$FILECMD conftest.$ac_objext` in
8723 *32-bit*)
8724 LD="${LD-ld} -32"
8725 ;;
8726 *N32*)
8727 LD="${LD-ld} -n32"
8728 ;;
8729 *64-bit*)
8730 LD="${LD-ld} -64"
8731 ;;
8732 esac
8733 fi
8734 fi
8735 rm -rf conftest*
8736 ;;
8737
8738 mips64*-*linux*)
8739 # Find out what ABI is being produced by ac_compile, and set linker
8740 # options accordingly.
8741 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8742 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8743 (eval $ac_compile) 2>&5
8744 ac_status=$?
8745 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8746 test $ac_status = 0; }; then
8747 emul=elf
8748 case `$FILECMD conftest.$ac_objext` in
8749 *32-bit*)
8750 emul="${emul}32"
8751 ;;
8752 *64-bit*)
8753 emul="${emul}64"
8754 ;;
8755 esac
8756 case `$FILECMD conftest.$ac_objext` in
8757 *MSB*)
8758 emul="${emul}btsmip"
8759 ;;
8760 *LSB*)
8761 emul="${emul}ltsmip"
8762 ;;
8763 esac
8764 case `$FILECMD conftest.$ac_objext` in
8765 *N32*)
8766 emul="${emul}n32"
8767 ;;
8768 esac
8769 LD="${LD-ld} -m $emul"
8770 fi
8771 rm -rf conftest*
8772 ;;
8773
8774 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8775 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
8776 # Find out what ABI is being produced by ac_compile, and set linker
8777 # options accordingly. Note that the listed cases only cover the
8778 # situations where additional linker options are needed (such as when
8779 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8780 # vice versa); the common cases where no linker options are needed do
8781 # not appear in the list.
8782 echo 'int i;' > conftest.$ac_ext
8783 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8784 (eval $ac_compile) 2>&5
8785 ac_status=$?
8786 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8787 test $ac_status = 0; }; then
8788 case `$FILECMD conftest.o` in
8789 *32-bit*)
8790 case $host in
8791 x86_64-*kfreebsd*-gnu)
8792 LD="${LD-ld} -m elf_i386_fbsd"
8793 ;;
8794 x86_64-*linux*|x86_64-gnu*)
8795 case `$FILECMD conftest.o` in
8796 *x86-64*)
8797 LD="${LD-ld} -m elf32_x86_64"
8798 ;;
8799 *)
8800 LD="${LD-ld} -m elf_i386"
8801 ;;
8802 esac
8803 ;;
8804 powerpc64le-*linux*)
8805 LD="${LD-ld} -m elf32lppclinux"
8806 ;;
8807 powerpc64-*linux*)
8808 LD="${LD-ld} -m elf32ppclinux"
8809 ;;
8810 s390x-*linux*)
8811 LD="${LD-ld} -m elf_s390"
8812 ;;
8813 sparc64-*linux*)
8814 LD="${LD-ld} -m elf32_sparc"
8815 ;;
8816 esac
8817 ;;
8818 *64-bit*)
8819 case $host in
8820 x86_64-*kfreebsd*-gnu)
8821 LD="${LD-ld} -m elf_x86_64_fbsd"
8822 ;;
8823 x86_64-*linux*|x86_64-gnu*)
8824 LD="${LD-ld} -m elf_x86_64"
8825 ;;
8826 powerpcle-*linux*)
8827 LD="${LD-ld} -m elf64lppc"
8828 ;;
8829 powerpc-*linux*)
8830 LD="${LD-ld} -m elf64ppc"
8831 ;;
8832 s390*-*linux*|s390*-*tpf*)
8833 LD="${LD-ld} -m elf64_s390"
8834 ;;
8835 sparc*-*linux*)
8836 LD="${LD-ld} -m elf64_sparc"
8837 ;;
8838 esac
8839 ;;
8840 esac
8841 fi
8842 rm -rf conftest*
8843 ;;
8844
8845 *-*-sco3.2v5*)
8846 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8847 SAVE_CFLAGS=$CFLAGS
8848 CFLAGS="$CFLAGS -belf"
8849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8850 printf %s "checking whether the C compiler needs -belf... " >&6; }
8851 if test ${lt_cv_cc_needs_belf+y}
8852 then :
8853 printf %s "(cached) " >&6
8854 else case e in #(
8855 e) ac_ext=c
8856 ac_cpp='$CPP $CPPFLAGS'
8857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8860
8861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8862 /* end confdefs.h. */
8863
8864 int
8865 main (void)
8866 {
8867
8868 ;
8869 return 0;
8870 }
8871 _ACEOF
8872 if ac_fn_c_try_link "$LINENO"
8873 then :
8874 lt_cv_cc_needs_belf=yes
8875 else case e in #(
8876 e) lt_cv_cc_needs_belf=no ;;
8877 esac
8878 fi
8879 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8880 conftest$ac_exeext conftest.$ac_ext
8881 ac_ext=c
8882 ac_cpp='$CPP $CPPFLAGS'
8883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8886 ;;
8887 esac
8888 fi
8889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8890 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8891 if test yes != "$lt_cv_cc_needs_belf"; then
8892 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8893 CFLAGS=$SAVE_CFLAGS
8894 fi
8895 ;;
8896 *-*solaris*)
8897 # Find out what ABI is being produced by ac_compile, and set linker
8898 # options accordingly.
8899 echo 'int i;' > conftest.$ac_ext
8900 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8901 (eval $ac_compile) 2>&5
8902 ac_status=$?
8903 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8904 test $ac_status = 0; }; then
8905 case `$FILECMD conftest.o` in
8906 *64-bit*)
8907 case $lt_cv_prog_gnu_ld in
8908 yes*)
8909 case $host in
8910 i?86-*-solaris*|x86_64-*-solaris*)
8911 LD="${LD-ld} -m elf_x86_64"
8912 ;;
8913 sparc*-*-solaris*)
8914 LD="${LD-ld} -m elf64_sparc"
8915 ;;
8916 esac
8917 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8918 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8919 LD=${LD-ld}_sol2
8920 fi
8921 ;;
8922 *)
8923 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8924 LD="${LD-ld} -64"
8925 fi
8926 ;;
8927 esac
8928 ;;
8929 esac
8930 fi
8931 rm -rf conftest*
8932 ;;
8933 esac
8934
8935 need_locks=$enable_libtool_lock
8936
8937 if test -n "$ac_tool_prefix"; then
8938 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8939 set dummy ${ac_tool_prefix}mt; ac_word=$2
8940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8941 printf %s "checking for $ac_word... " >&6; }
8942 if test ${ac_cv_prog_MANIFEST_TOOL+y}
8943 then :
8944 printf %s "(cached) " >&6
8945 else case e in #(
8946 e) if test -n "$MANIFEST_TOOL"; then
8947 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8948 else
8949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8950 for as_dir in $PATH
8951 do
8952 IFS=$as_save_IFS
8953 case $as_dir in #(((
8954 '') as_dir=./ ;;
8955 */) ;;
8956 *) as_dir=$as_dir/ ;;
8957 esac
8958 for ac_exec_ext in '' $ac_executable_extensions; do
8959 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8960 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8961 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8962 break 2
8963 fi
8964 done
8965 done
8966 IFS=$as_save_IFS
8967
8968 fi ;;
8969 esac
8970 fi
8971 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8972 if test -n "$MANIFEST_TOOL"; then
8973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8974 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8975 else
8976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8977 printf "%s\n" "no" >&6; }
8978 fi
8979
8980
8981 fi
8982 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8983 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8984 # Extract the first word of "mt", so it can be a program name with args.
8985 set dummy mt; ac_word=$2
8986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8987 printf %s "checking for $ac_word... " >&6; }
8988 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8989 then :
8990 printf %s "(cached) " >&6
8991 else case e in #(
8992 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
8993 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8994 else
8995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8996 for as_dir in $PATH
8997 do
8998 IFS=$as_save_IFS
8999 case $as_dir in #(((
9000 '') as_dir=./ ;;
9001 */) ;;
9002 *) as_dir=$as_dir/ ;;
9003 esac
9004 for ac_exec_ext in '' $ac_executable_extensions; do
9005 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9006 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9007 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9008 break 2
9009 fi
9010 done
9011 done
9012 IFS=$as_save_IFS
9013
9014 fi ;;
9015 esac
9016 fi
9017 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9018 if test -n "$ac_ct_MANIFEST_TOOL"; then
9019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9020 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
9021 else
9022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9023 printf "%s\n" "no" >&6; }
9024 fi
9025
9026 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9027 MANIFEST_TOOL=":"
9028 else
9029 case $cross_compiling:$ac_tool_warned in
9030 yes:)
9031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9032 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9033 ac_tool_warned=yes ;;
9034 esac
9035 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9036 fi
9037 else
9038 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9039 fi
9040
9041 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9043 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9044 if test ${lt_cv_path_manifest_tool+y}
9045 then :
9046 printf %s "(cached) " >&6
9047 else case e in #(
9048 e) lt_cv_path_manifest_tool=no
9049 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9050 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9051 cat conftest.err >&5
9052 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9053 lt_cv_path_manifest_tool=yes
9054 fi
9055 rm -f conftest* ;;
9056 esac
9057 fi
9058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
9059 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
9060 if test yes != "$lt_cv_path_manifest_tool"; then
9061 MANIFEST_TOOL=:
9062 fi
9063
9064
9065
9066
9067
9068
9069 case $host_os in
9070 rhapsody* | darwin*)
9071 if test -n "$ac_tool_prefix"; then
9072 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9073 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9075 printf %s "checking for $ac_word... " >&6; }
9076 if test ${ac_cv_prog_DSYMUTIL+y}
9077 then :
9078 printf %s "(cached) " >&6
9079 else case e in #(
9080 e) if test -n "$DSYMUTIL"; then
9081 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9082 else
9083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9084 for as_dir in $PATH
9085 do
9086 IFS=$as_save_IFS
9087 case $as_dir in #(((
9088 '') as_dir=./ ;;
9089 */) ;;
9090 *) as_dir=$as_dir/ ;;
9091 esac
9092 for ac_exec_ext in '' $ac_executable_extensions; do
9093 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9094 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9095 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9096 break 2
9097 fi
9098 done
9099 done
9100 IFS=$as_save_IFS
9101
9102 fi ;;
9103 esac
9104 fi
9105 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9106 if test -n "$DSYMUTIL"; then
9107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9108 printf "%s\n" "$DSYMUTIL" >&6; }
9109 else
9110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9111 printf "%s\n" "no" >&6; }
9112 fi
9113
9114
9115 fi
9116 if test -z "$ac_cv_prog_DSYMUTIL"; then
9117 ac_ct_DSYMUTIL=$DSYMUTIL
9118 # Extract the first word of "dsymutil", so it can be a program name with args.
9119 set dummy dsymutil; ac_word=$2
9120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9121 printf %s "checking for $ac_word... " >&6; }
9122 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
9123 then :
9124 printf %s "(cached) " >&6
9125 else case e in #(
9126 e) if test -n "$ac_ct_DSYMUTIL"; then
9127 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9128 else
9129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9130 for as_dir in $PATH
9131 do
9132 IFS=$as_save_IFS
9133 case $as_dir in #(((
9134 '') as_dir=./ ;;
9135 */) ;;
9136 *) as_dir=$as_dir/ ;;
9137 esac
9138 for ac_exec_ext in '' $ac_executable_extensions; do
9139 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9140 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9141 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9142 break 2
9143 fi
9144 done
9145 done
9146 IFS=$as_save_IFS
9147
9148 fi ;;
9149 esac
9150 fi
9151 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9152 if test -n "$ac_ct_DSYMUTIL"; then
9153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9154 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
9155 else
9156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9157 printf "%s\n" "no" >&6; }
9158 fi
9159
9160 if test "x$ac_ct_DSYMUTIL" = x; then
9161 DSYMUTIL=":"
9162 else
9163 case $cross_compiling:$ac_tool_warned in
9164 yes:)
9165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9166 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9167 ac_tool_warned=yes ;;
9168 esac
9169 DSYMUTIL=$ac_ct_DSYMUTIL
9170 fi
9171 else
9172 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9173 fi
9174
9175 if test -n "$ac_tool_prefix"; then
9176 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9177 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9179 printf %s "checking for $ac_word... " >&6; }
9180 if test ${ac_cv_prog_NMEDIT+y}
9181 then :
9182 printf %s "(cached) " >&6
9183 else case e in #(
9184 e) if test -n "$NMEDIT"; then
9185 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9186 else
9187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9188 for as_dir in $PATH
9189 do
9190 IFS=$as_save_IFS
9191 case $as_dir in #(((
9192 '') as_dir=./ ;;
9193 */) ;;
9194 *) as_dir=$as_dir/ ;;
9195 esac
9196 for ac_exec_ext in '' $ac_executable_extensions; do
9197 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9198 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9199 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9200 break 2
9201 fi
9202 done
9203 done
9204 IFS=$as_save_IFS
9205
9206 fi ;;
9207 esac
9208 fi
9209 NMEDIT=$ac_cv_prog_NMEDIT
9210 if test -n "$NMEDIT"; then
9211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9212 printf "%s\n" "$NMEDIT" >&6; }
9213 else
9214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9215 printf "%s\n" "no" >&6; }
9216 fi
9217
9218
9219 fi
9220 if test -z "$ac_cv_prog_NMEDIT"; then
9221 ac_ct_NMEDIT=$NMEDIT
9222 # Extract the first word of "nmedit", so it can be a program name with args.
9223 set dummy nmedit; ac_word=$2
9224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9225 printf %s "checking for $ac_word... " >&6; }
9226 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
9227 then :
9228 printf %s "(cached) " >&6
9229 else case e in #(
9230 e) if test -n "$ac_ct_NMEDIT"; then
9231 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9232 else
9233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9234 for as_dir in $PATH
9235 do
9236 IFS=$as_save_IFS
9237 case $as_dir in #(((
9238 '') as_dir=./ ;;
9239 */) ;;
9240 *) as_dir=$as_dir/ ;;
9241 esac
9242 for ac_exec_ext in '' $ac_executable_extensions; do
9243 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9244 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9245 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9246 break 2
9247 fi
9248 done
9249 done
9250 IFS=$as_save_IFS
9251
9252 fi ;;
9253 esac
9254 fi
9255 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9256 if test -n "$ac_ct_NMEDIT"; then
9257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9258 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
9259 else
9260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9261 printf "%s\n" "no" >&6; }
9262 fi
9263
9264 if test "x$ac_ct_NMEDIT" = x; then
9265 NMEDIT=":"
9266 else
9267 case $cross_compiling:$ac_tool_warned in
9268 yes:)
9269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9270 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9271 ac_tool_warned=yes ;;
9272 esac
9273 NMEDIT=$ac_ct_NMEDIT
9274 fi
9275 else
9276 NMEDIT="$ac_cv_prog_NMEDIT"
9277 fi
9278
9279 if test -n "$ac_tool_prefix"; then
9280 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9281 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9283 printf %s "checking for $ac_word... " >&6; }
9284 if test ${ac_cv_prog_LIPO+y}
9285 then :
9286 printf %s "(cached) " >&6
9287 else case e in #(
9288 e) if test -n "$LIPO"; then
9289 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9290 else
9291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9292 for as_dir in $PATH
9293 do
9294 IFS=$as_save_IFS
9295 case $as_dir in #(((
9296 '') as_dir=./ ;;
9297 */) ;;
9298 *) as_dir=$as_dir/ ;;
9299 esac
9300 for ac_exec_ext in '' $ac_executable_extensions; do
9301 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9302 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9303 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9304 break 2
9305 fi
9306 done
9307 done
9308 IFS=$as_save_IFS
9309
9310 fi ;;
9311 esac
9312 fi
9313 LIPO=$ac_cv_prog_LIPO
9314 if test -n "$LIPO"; then
9315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9316 printf "%s\n" "$LIPO" >&6; }
9317 else
9318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9319 printf "%s\n" "no" >&6; }
9320 fi
9321
9322
9323 fi
9324 if test -z "$ac_cv_prog_LIPO"; then
9325 ac_ct_LIPO=$LIPO
9326 # Extract the first word of "lipo", so it can be a program name with args.
9327 set dummy lipo; ac_word=$2
9328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9329 printf %s "checking for $ac_word... " >&6; }
9330 if test ${ac_cv_prog_ac_ct_LIPO+y}
9331 then :
9332 printf %s "(cached) " >&6
9333 else case e in #(
9334 e) if test -n "$ac_ct_LIPO"; then
9335 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9336 else
9337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9338 for as_dir in $PATH
9339 do
9340 IFS=$as_save_IFS
9341 case $as_dir in #(((
9342 '') as_dir=./ ;;
9343 */) ;;
9344 *) as_dir=$as_dir/ ;;
9345 esac
9346 for ac_exec_ext in '' $ac_executable_extensions; do
9347 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9348 ac_cv_prog_ac_ct_LIPO="lipo"
9349 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9350 break 2
9351 fi
9352 done
9353 done
9354 IFS=$as_save_IFS
9355
9356 fi ;;
9357 esac
9358 fi
9359 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9360 if test -n "$ac_ct_LIPO"; then
9361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9362 printf "%s\n" "$ac_ct_LIPO" >&6; }
9363 else
9364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9365 printf "%s\n" "no" >&6; }
9366 fi
9367
9368 if test "x$ac_ct_LIPO" = x; then
9369 LIPO=":"
9370 else
9371 case $cross_compiling:$ac_tool_warned in
9372 yes:)
9373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9374 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9375 ac_tool_warned=yes ;;
9376 esac
9377 LIPO=$ac_ct_LIPO
9378 fi
9379 else
9380 LIPO="$ac_cv_prog_LIPO"
9381 fi
9382
9383 if test -n "$ac_tool_prefix"; then
9384 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9385 set dummy ${ac_tool_prefix}otool; ac_word=$2
9386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9387 printf %s "checking for $ac_word... " >&6; }
9388 if test ${ac_cv_prog_OTOOL+y}
9389 then :
9390 printf %s "(cached) " >&6
9391 else case e in #(
9392 e) if test -n "$OTOOL"; then
9393 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9394 else
9395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9396 for as_dir in $PATH
9397 do
9398 IFS=$as_save_IFS
9399 case $as_dir in #(((
9400 '') as_dir=./ ;;
9401 */) ;;
9402 *) as_dir=$as_dir/ ;;
9403 esac
9404 for ac_exec_ext in '' $ac_executable_extensions; do
9405 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9406 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9407 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9408 break 2
9409 fi
9410 done
9411 done
9412 IFS=$as_save_IFS
9413
9414 fi ;;
9415 esac
9416 fi
9417 OTOOL=$ac_cv_prog_OTOOL
9418 if test -n "$OTOOL"; then
9419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9420 printf "%s\n" "$OTOOL" >&6; }
9421 else
9422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9423 printf "%s\n" "no" >&6; }
9424 fi
9425
9426
9427 fi
9428 if test -z "$ac_cv_prog_OTOOL"; then
9429 ac_ct_OTOOL=$OTOOL
9430 # Extract the first word of "otool", so it can be a program name with args.
9431 set dummy otool; ac_word=$2
9432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9433 printf %s "checking for $ac_word... " >&6; }
9434 if test ${ac_cv_prog_ac_ct_OTOOL+y}
9435 then :
9436 printf %s "(cached) " >&6
9437 else case e in #(
9438 e) if test -n "$ac_ct_OTOOL"; then
9439 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9440 else
9441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9442 for as_dir in $PATH
9443 do
9444 IFS=$as_save_IFS
9445 case $as_dir in #(((
9446 '') as_dir=./ ;;
9447 */) ;;
9448 *) as_dir=$as_dir/ ;;
9449 esac
9450 for ac_exec_ext in '' $ac_executable_extensions; do
9451 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9452 ac_cv_prog_ac_ct_OTOOL="otool"
9453 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9454 break 2
9455 fi
9456 done
9457 done
9458 IFS=$as_save_IFS
9459
9460 fi ;;
9461 esac
9462 fi
9463 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9464 if test -n "$ac_ct_OTOOL"; then
9465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9466 printf "%s\n" "$ac_ct_OTOOL" >&6; }
9467 else
9468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9469 printf "%s\n" "no" >&6; }
9470 fi
9471
9472 if test "x$ac_ct_OTOOL" = x; then
9473 OTOOL=":"
9474 else
9475 case $cross_compiling:$ac_tool_warned in
9476 yes:)
9477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9478 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9479 ac_tool_warned=yes ;;
9480 esac
9481 OTOOL=$ac_ct_OTOOL
9482 fi
9483 else
9484 OTOOL="$ac_cv_prog_OTOOL"
9485 fi
9486
9487 if test -n "$ac_tool_prefix"; then
9488 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9489 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9491 printf %s "checking for $ac_word... " >&6; }
9492 if test ${ac_cv_prog_OTOOL64+y}
9493 then :
9494 printf %s "(cached) " >&6
9495 else case e in #(
9496 e) if test -n "$OTOOL64"; then
9497 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9498 else
9499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9500 for as_dir in $PATH
9501 do
9502 IFS=$as_save_IFS
9503 case $as_dir in #(((
9504 '') as_dir=./ ;;
9505 */) ;;
9506 *) as_dir=$as_dir/ ;;
9507 esac
9508 for ac_exec_ext in '' $ac_executable_extensions; do
9509 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9510 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9511 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9512 break 2
9513 fi
9514 done
9515 done
9516 IFS=$as_save_IFS
9517
9518 fi ;;
9519 esac
9520 fi
9521 OTOOL64=$ac_cv_prog_OTOOL64
9522 if test -n "$OTOOL64"; then
9523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9524 printf "%s\n" "$OTOOL64" >&6; }
9525 else
9526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9527 printf "%s\n" "no" >&6; }
9528 fi
9529
9530
9531 fi
9532 if test -z "$ac_cv_prog_OTOOL64"; then
9533 ac_ct_OTOOL64=$OTOOL64
9534 # Extract the first word of "otool64", so it can be a program name with args.
9535 set dummy otool64; ac_word=$2
9536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9537 printf %s "checking for $ac_word... " >&6; }
9538 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
9539 then :
9540 printf %s "(cached) " >&6
9541 else case e in #(
9542 e) if test -n "$ac_ct_OTOOL64"; then
9543 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9544 else
9545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9546 for as_dir in $PATH
9547 do
9548 IFS=$as_save_IFS
9549 case $as_dir in #(((
9550 '') as_dir=./ ;;
9551 */) ;;
9552 *) as_dir=$as_dir/ ;;
9553 esac
9554 for ac_exec_ext in '' $ac_executable_extensions; do
9555 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9556 ac_cv_prog_ac_ct_OTOOL64="otool64"
9557 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9558 break 2
9559 fi
9560 done
9561 done
9562 IFS=$as_save_IFS
9563
9564 fi ;;
9565 esac
9566 fi
9567 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9568 if test -n "$ac_ct_OTOOL64"; then
9569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9570 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
9571 else
9572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9573 printf "%s\n" "no" >&6; }
9574 fi
9575
9576 if test "x$ac_ct_OTOOL64" = x; then
9577 OTOOL64=":"
9578 else
9579 case $cross_compiling:$ac_tool_warned in
9580 yes:)
9581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9582 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9583 ac_tool_warned=yes ;;
9584 esac
9585 OTOOL64=$ac_ct_OTOOL64
9586 fi
9587 else
9588 OTOOL64="$ac_cv_prog_OTOOL64"
9589 fi
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9618 printf %s "checking for -single_module linker flag... " >&6; }
9619 if test ${lt_cv_apple_cc_single_mod+y}
9620 then :
9621 printf %s "(cached) " >&6
9622 else case e in #(
9623 e) lt_cv_apple_cc_single_mod=no
9624 if test -z "$LT_MULTI_MODULE"; then
9625 # By default we will add the -single_module flag. You can override
9626 # by either setting the environment variable LT_MULTI_MODULE
9627 # non-empty at configure time, or by adding -multi_module to the
9628 # link flags.
9629 rm -rf libconftest.dylib*
9630 echo "int foo(void){return 1;}" > conftest.c
9631 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9632 -dynamiclib -Wl,-single_module conftest.c" >&5
9633 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9634 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9635 _lt_result=$?
9636 # If there is a non-empty error log, and "single_module"
9637 # appears in it, assume the flag caused a linker warning
9638 if test -s conftest.err && $GREP single_module conftest.err; then
9639 cat conftest.err >&5
9640 # Otherwise, if the output was created with a 0 exit code from
9641 # the compiler, it worked.
9642 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9643 lt_cv_apple_cc_single_mod=yes
9644 else
9645 cat conftest.err >&5
9646 fi
9647 rm -rf libconftest.dylib*
9648 rm -f conftest.*
9649 fi ;;
9650 esac
9651 fi
9652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9653 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
9654
9655 # Feature test to disable chained fixups since it is not
9656 # compatible with '-undefined dynamic_lookup'
9657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
9658 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
9659 if test ${lt_cv_support_no_fixup_chains+y}
9660 then :
9661 printf %s "(cached) " >&6
9662 else case e in #(
9663 e) save_LDFLAGS=$LDFLAGS
9664 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
9665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9666 /* end confdefs.h. */
9667
9668 int
9669 main (void)
9670 {
9671
9672 ;
9673 return 0;
9674 }
9675 _ACEOF
9676 if ac_fn_c_try_link "$LINENO"
9677 then :
9678 lt_cv_support_no_fixup_chains=yes
9679 else case e in #(
9680 e) lt_cv_support_no_fixup_chains=no
9681 ;;
9682 esac
9683 fi
9684 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9685 conftest$ac_exeext conftest.$ac_ext
9686 LDFLAGS=$save_LDFLAGS
9687
9688 ;;
9689 esac
9690 fi
9691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
9692 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
9693
9694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9695 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
9696 if test ${lt_cv_ld_exported_symbols_list+y}
9697 then :
9698 printf %s "(cached) " >&6
9699 else case e in #(
9700 e) lt_cv_ld_exported_symbols_list=no
9701 save_LDFLAGS=$LDFLAGS
9702 echo "_main" > conftest.sym
9703 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9705 /* end confdefs.h. */
9706
9707 int
9708 main (void)
9709 {
9710
9711 ;
9712 return 0;
9713 }
9714 _ACEOF
9715 if ac_fn_c_try_link "$LINENO"
9716 then :
9717 lt_cv_ld_exported_symbols_list=yes
9718 else case e in #(
9719 e) lt_cv_ld_exported_symbols_list=no ;;
9720 esac
9721 fi
9722 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9723 conftest$ac_exeext conftest.$ac_ext
9724 LDFLAGS=$save_LDFLAGS
9725 ;;
9726 esac
9727 fi
9728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9729 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
9730
9731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9732 printf %s "checking for -force_load linker flag... " >&6; }
9733 if test ${lt_cv_ld_force_load+y}
9734 then :
9735 printf %s "(cached) " >&6
9736 else case e in #(
9737 e) lt_cv_ld_force_load=no
9738 cat > conftest.c << _LT_EOF
9739 int forced_loaded() { return 2;}
9740 _LT_EOF
9741 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9742 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9743 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
9744 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
9745 echo "$RANLIB libconftest.a" >&5
9746 $RANLIB libconftest.a 2>&5
9747 cat > conftest.c << _LT_EOF
9748 int main(void) { return 0;}
9749 _LT_EOF
9750 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9751 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9752 _lt_result=$?
9753 if test -s conftest.err && $GREP force_load conftest.err; then
9754 cat conftest.err >&5
9755 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9756 lt_cv_ld_force_load=yes
9757 else
9758 cat conftest.err >&5
9759 fi
9760 rm -f conftest.err libconftest.a conftest conftest.c
9761 rm -rf conftest.dSYM
9762 ;;
9763 esac
9764 fi
9765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9766 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
9767 case $host_os in
9768 rhapsody* | darwin1.[012])
9769 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9770 darwin1.*)
9771 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9772 darwin*)
9773 case $MACOSX_DEPLOYMENT_TARGET,$host in
9774 10.[012],*|,*powerpc*-darwin[5-8]*)
9775 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9776 *)
9777 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
9778 if test yes = "$lt_cv_support_no_fixup_chains"; then
9779 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
9780 fi
9781 ;;
9782 esac
9783 ;;
9784 esac
9785 if test yes = "$lt_cv_apple_cc_single_mod"; then
9786 _lt_dar_single_mod='$single_module'
9787 fi
9788 _lt_dar_needs_single_mod=no
9789 case $host_os in
9790 rhapsody* | darwin1.*)
9791 _lt_dar_needs_single_mod=yes ;;
9792 darwin*)
9793 # When targeting Mac OS X 10.4 (darwin 8) or later,
9794 # -single_module is the default and -multi_module is unsupported.
9795 # The toolchain on macOS 10.14 (darwin 18) and later cannot
9796 # target any OS version that needs -single_module.
9797 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9798 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
9799 _lt_dar_needs_single_mod=yes ;;
9800 esac
9801 ;;
9802 esac
9803 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9804 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9805 else
9806 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9807 fi
9808 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9809 _lt_dsymutil='~$DSYMUTIL $lib || :'
9810 else
9811 _lt_dsymutil=
9812 fi
9813 ;;
9814 esac
9815
9816 # func_munge_path_list VARIABLE PATH
9817 # -----------------------------------
9818 # VARIABLE is name of variable containing _space_ separated list of
9819 # directories to be munged by the contents of PATH, which is string
9820 # having a format:
9821 # "DIR[:DIR]:"
9822 # string "DIR[ DIR]" will be prepended to VARIABLE
9823 # ":DIR[:DIR]"
9824 # string "DIR[ DIR]" will be appended to VARIABLE
9825 # "DIRP[:DIRP]::[DIRA:]DIRA"
9826 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9827 # "DIRA[ DIRA]" will be appended to VARIABLE
9828 # "DIR[:DIR]"
9829 # VARIABLE will be replaced by "DIR[ DIR]"
9830 func_munge_path_list ()
9831 {
9832 case x$2 in
9833 x)
9834 ;;
9835 *:)
9836 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9837 ;;
9838 x:*)
9839 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9840 ;;
9841 *::*)
9842 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9843 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9844 ;;
9845 *)
9846 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9847 ;;
9848 esac
9849 }
9850
9851 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9852 "
9853 if test "x$ac_cv_header_dlfcn_h" = xyes
9854 then :
9855 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9856
9857 fi
9858
9859
9860
9861
9862
9863 # Set options
9864
9865
9866
9867 enable_dlopen=no
9868
9869
9870 enable_win32_dll=no
9871
9872
9873 # Check whether --enable-shared was given.
9874 if test ${enable_shared+y}
9875 then :
9876 enableval=$enable_shared; p=${PACKAGE-default}
9877 case $enableval in
9878 yes) enable_shared=yes ;;
9879 no) enable_shared=no ;;
9880 *)
9881 enable_shared=no
9882 # Look at the argument we got. We use all the common list separators.
9883 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9884 for pkg in $enableval; do
9885 IFS=$lt_save_ifs
9886 if test "X$pkg" = "X$p"; then
9887 enable_shared=yes
9888 fi
9889 done
9890 IFS=$lt_save_ifs
9891 ;;
9892 esac
9893 else case e in #(
9894 e) enable_shared=yes ;;
9895 esac
9896 fi
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906 # Check whether --enable-static was given.
9907 if test ${enable_static+y}
9908 then :
9909 enableval=$enable_static; p=${PACKAGE-default}
9910 case $enableval in
9911 yes) enable_static=yes ;;
9912 no) enable_static=no ;;
9913 *)
9914 enable_static=no
9915 # Look at the argument we got. We use all the common list separators.
9916 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9917 for pkg in $enableval; do
9918 IFS=$lt_save_ifs
9919 if test "X$pkg" = "X$p"; then
9920 enable_static=yes
9921 fi
9922 done
9923 IFS=$lt_save_ifs
9924 ;;
9925 esac
9926 else case e in #(
9927 e) enable_static=yes ;;
9928 esac
9929 fi
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939 # Check whether --enable-pic was given.
9940 if test ${enable_pic+y}
9941 then :
9942 enableval=$enable_pic; lt_p=${PACKAGE-default}
9943 case $enableval in
9944 yes|no) pic_mode=$enableval ;;
9945 *)
9946 pic_mode=default
9947 # Look at the argument we got. We use all the common list separators.
9948 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9949 for lt_pkg in $enableval; do
9950 IFS=$lt_save_ifs
9951 if test "X$lt_pkg" = "X$lt_p"; then
9952 pic_mode=yes
9953 fi
9954 done
9955 IFS=$lt_save_ifs
9956 ;;
9957 esac
9958 else case e in #(
9959 e) # Check whether --with-pic was given.
9960 if test ${with_pic+y}
9961 then :
9962 withval=$with_pic; lt_p=${PACKAGE-default}
9963 case $withval in
9964 yes|no) pic_mode=$withval ;;
9965 *)
9966 pic_mode=default
9967 # Look at the argument we got. We use all the common list separators.
9968 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9969 for lt_pkg in $withval; do
9970 IFS=$lt_save_ifs
9971 if test "X$lt_pkg" = "X$lt_p"; then
9972 pic_mode=yes
9973 fi
9974 done
9975 IFS=$lt_save_ifs
9976 ;;
9977 esac
9978 else case e in #(
9979 e) pic_mode=default ;;
9980 esac
9981 fi
9982
9983 ;;
9984 esac
9985 fi
9986
9987
9988
9989
9990
9991
9992
9993
9994 # Check whether --enable-fast-install was given.
9995 if test ${enable_fast_install+y}
9996 then :
9997 enableval=$enable_fast_install; p=${PACKAGE-default}
9998 case $enableval in
9999 yes) enable_fast_install=yes ;;
10000 no) enable_fast_install=no ;;
10001 *)
10002 enable_fast_install=no
10003 # Look at the argument we got. We use all the common list separators.
10004 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10005 for pkg in $enableval; do
10006 IFS=$lt_save_ifs
10007 if test "X$pkg" = "X$p"; then
10008 enable_fast_install=yes
10009 fi
10010 done
10011 IFS=$lt_save_ifs
10012 ;;
10013 esac
10014 else case e in #(
10015 e) enable_fast_install=yes ;;
10016 esac
10017 fi
10018
10019
10020
10021
10022
10023
10024
10025
10026 shared_archive_member_spec=
10027 case $host,$enable_shared in
10028 power*-*-aix[5-9]*,yes)
10029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10030 printf %s "checking which variant of shared library versioning to provide... " >&6; }
10031 # Check whether --enable-aix-soname was given.
10032 if test ${enable_aix_soname+y}
10033 then :
10034 enableval=$enable_aix_soname; case $enableval in
10035 aix|svr4|both)
10036 ;;
10037 *)
10038 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
10039 ;;
10040 esac
10041 lt_cv_with_aix_soname=$enable_aix_soname
10042 else case e in #(
10043 e) # Check whether --with-aix-soname was given.
10044 if test ${with_aix_soname+y}
10045 then :
10046 withval=$with_aix_soname; case $withval in
10047 aix|svr4|both)
10048 ;;
10049 *)
10050 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10051 ;;
10052 esac
10053 lt_cv_with_aix_soname=$with_aix_soname
10054 else case e in #(
10055 e) if test ${lt_cv_with_aix_soname+y}
10056 then :
10057 printf %s "(cached) " >&6
10058 else case e in #(
10059 e) lt_cv_with_aix_soname=aix ;;
10060 esac
10061 fi
10062 ;;
10063 esac
10064 fi
10065
10066 enable_aix_soname=$lt_cv_with_aix_soname ;;
10067 esac
10068 fi
10069
10070 with_aix_soname=$enable_aix_soname
10071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10072 printf "%s\n" "$with_aix_soname" >&6; }
10073 if test aix != "$with_aix_soname"; then
10074 # For the AIX way of multilib, we name the shared archive member
10075 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10076 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10077 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10078 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10079 if test 64 = "${OBJECT_MODE-32}"; then
10080 shared_archive_member_spec=shr_64
10081 else
10082 shared_archive_member_spec=shr
10083 fi
10084 fi
10085 ;;
10086 *)
10087 with_aix_soname=aix
10088 ;;
10089 esac
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100 # This can be used to rebuild libtool when needed
10101 LIBTOOL_DEPS=$ltmain
10102
10103 # Always use our own libtool.
10104 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
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 test -z "$LN_S" && LN_S="ln -s"
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150 if test -n "${ZSH_VERSION+set}"; then
10151 setopt NO_GLOB_SUBST
10152 fi
10153
10154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10155 printf %s "checking for objdir... " >&6; }
10156 if test ${lt_cv_objdir+y}
10157 then :
10158 printf %s "(cached) " >&6
10159 else case e in #(
10160 e) rm -f .libs 2>/dev/null
10161 mkdir .libs 2>/dev/null
10162 if test -d .libs; then
10163 lt_cv_objdir=.libs
10164 else
10165 # MS-DOS does not allow filenames that begin with a dot.
10166 lt_cv_objdir=_libs
10167 fi
10168 rmdir .libs 2>/dev/null ;;
10169 esac
10170 fi
10171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10172 printf "%s\n" "$lt_cv_objdir" >&6; }
10173 objdir=$lt_cv_objdir
10174
10175
10176
10177
10178
10179 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
10180
10181
10182
10183
10184 case $host_os in
10185 aix3*)
10186 # AIX sometimes has problems with the GCC collect2 program. For some
10187 # reason, if we set the COLLECT_NAMES environment variable, the problems
10188 # vanish in a puff of smoke.
10189 if test set != "${COLLECT_NAMES+set}"; then
10190 COLLECT_NAMES=
10191 export COLLECT_NAMES
10192 fi
10193 ;;
10194 esac
10195
10196 # Global variables:
10197 ofile=libtool
10198 can_build_shared=yes
10199
10200 # All known linkers require a '.a' archive for static linking (except MSVC and
10201 # ICC, which need '.lib').
10202 libext=a
10203
10204 with_gnu_ld=$lt_cv_prog_gnu_ld
10205
10206 old_CC=$CC
10207 old_CFLAGS=$CFLAGS
10208
10209 # Set sane defaults for various variables
10210 test -z "$CC" && CC=cc
10211 test -z "$LTCC" && LTCC=$CC
10212 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10213 test -z "$LD" && LD=ld
10214 test -z "$ac_objext" && ac_objext=o
10215
10216 func_cc_basename $compiler
10217 cc_basename=$func_cc_basename_result
10218
10219
10220 # Only perform the check for file, if the check method requires it
10221 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10222 case $deplibs_check_method in
10223 file_magic*)
10224 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10226 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
10227 if test ${lt_cv_path_MAGIC_CMD+y}
10228 then :
10229 printf %s "(cached) " >&6
10230 else case e in #(
10231 e) case $MAGIC_CMD in
10232 [\\/*] | ?:[\\/]*)
10233 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10234 ;;
10235 *)
10236 lt_save_MAGIC_CMD=$MAGIC_CMD
10237 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10238 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10239 for ac_dir in $ac_dummy; do
10240 IFS=$lt_save_ifs
10241 test -z "$ac_dir" && ac_dir=.
10242 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10243 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10244 if test -n "$file_magic_test_file"; then
10245 case $deplibs_check_method in
10246 "file_magic "*)
10247 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10248 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10249 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10250 $EGREP "$file_magic_regex" > /dev/null; then
10251 :
10252 else
10253 cat <<_LT_EOF 1>&2
10254
10255 *** Warning: the command libtool uses to detect shared libraries,
10256 *** $file_magic_cmd, produces output that libtool cannot recognize.
10257 *** The result is that libtool may fail to recognize shared libraries
10258 *** as such. This will affect the creation of libtool libraries that
10259 *** depend on shared libraries, but programs linked with such libtool
10260 *** libraries will work regardless of this problem. Nevertheless, you
10261 *** may want to report the problem to your system manager and/or to
10262 *** [email protected]
10263
10264 _LT_EOF
10265 fi ;;
10266 esac
10267 fi
10268 break
10269 fi
10270 done
10271 IFS=$lt_save_ifs
10272 MAGIC_CMD=$lt_save_MAGIC_CMD
10273 ;;
10274 esac ;;
10275 esac
10276 fi
10277
10278 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10279 if test -n "$MAGIC_CMD"; then
10280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10281 printf "%s\n" "$MAGIC_CMD" >&6; }
10282 else
10283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10284 printf "%s\n" "no" >&6; }
10285 fi
10286
10287
10288
10289
10290
10291 if test -z "$lt_cv_path_MAGIC_CMD"; then
10292 if test -n "$ac_tool_prefix"; then
10293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10294 printf %s "checking for file... " >&6; }
10295 if test ${lt_cv_path_MAGIC_CMD+y}
10296 then :
10297 printf %s "(cached) " >&6
10298 else case e in #(
10299 e) case $MAGIC_CMD in
10300 [\\/*] | ?:[\\/]*)
10301 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10302 ;;
10303 *)
10304 lt_save_MAGIC_CMD=$MAGIC_CMD
10305 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10306 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10307 for ac_dir in $ac_dummy; do
10308 IFS=$lt_save_ifs
10309 test -z "$ac_dir" && ac_dir=.
10310 if test -f "$ac_dir/file"; then
10311 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10312 if test -n "$file_magic_test_file"; then
10313 case $deplibs_check_method in
10314 "file_magic "*)
10315 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10316 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10317 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10318 $EGREP "$file_magic_regex" > /dev/null; then
10319 :
10320 else
10321 cat <<_LT_EOF 1>&2
10322
10323 *** Warning: the command libtool uses to detect shared libraries,
10324 *** $file_magic_cmd, produces output that libtool cannot recognize.
10325 *** The result is that libtool may fail to recognize shared libraries
10326 *** as such. This will affect the creation of libtool libraries that
10327 *** depend on shared libraries, but programs linked with such libtool
10328 *** libraries will work regardless of this problem. Nevertheless, you
10329 *** may want to report the problem to your system manager and/or to
10330 *** [email protected]
10331
10332 _LT_EOF
10333 fi ;;
10334 esac
10335 fi
10336 break
10337 fi
10338 done
10339 IFS=$lt_save_ifs
10340 MAGIC_CMD=$lt_save_MAGIC_CMD
10341 ;;
10342 esac ;;
10343 esac
10344 fi
10345
10346 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10347 if test -n "$MAGIC_CMD"; then
10348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10349 printf "%s\n" "$MAGIC_CMD" >&6; }
10350 else
10351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10352 printf "%s\n" "no" >&6; }
10353 fi
10354
10355
10356 else
10357 MAGIC_CMD=:
10358 fi
10359 fi
10360
10361 fi
10362 ;;
10363 esac
10364
10365 # Use C for the default configuration in the libtool script
10366
10367 lt_save_CC=$CC
10368 ac_ext=c
10369 ac_cpp='$CPP $CPPFLAGS'
10370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10373
10374
10375 # Source file extension for C test sources.
10376 ac_ext=c
10377
10378 # Object file extension for compiled C test sources.
10379 objext=o
10380 objext=$objext
10381
10382 # Code to be used in simple compile tests
10383 lt_simple_compile_test_code="int some_variable = 0;"
10384
10385 # Code to be used in simple link tests
10386 lt_simple_link_test_code='int main(void){return(0);}'
10387
10388
10389
10390
10391
10392
10393
10394 # If no C compiler was specified, use CC.
10395 LTCC=${LTCC-"$CC"}
10396
10397 # If no C compiler flags were specified, use CFLAGS.
10398 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10399
10400 # Allow CC to be a program name with arguments.
10401 compiler=$CC
10402
10403 # Save the default compiler, since it gets overwritten when the other
10404 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10405 compiler_DEFAULT=$CC
10406
10407 # save warnings/boilerplate of simple test code
10408 ac_outfile=conftest.$ac_objext
10409 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10410 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10411 _lt_compiler_boilerplate=`cat conftest.err`
10412 $RM conftest*
10413
10414 ac_outfile=conftest.$ac_objext
10415 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10416 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10417 _lt_linker_boilerplate=`cat conftest.err`
10418 $RM -r conftest*
10419
10420
10421 ## CAVEAT EMPTOR:
10422 ## There is no encapsulation within the following macros, do not change
10423 ## the running order or otherwise move them around unless you know exactly
10424 ## what you are doing...
10425 if test -n "$compiler"; then
10426
10427 lt_prog_compiler_no_builtin_flag=
10428
10429 if test yes = "$GCC"; then
10430 case $cc_basename in
10431 nvcc*)
10432 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10433 *)
10434 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10435 esac
10436
10437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10438 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10439 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
10440 then :
10441 printf %s "(cached) " >&6
10442 else case e in #(
10443 e) lt_cv_prog_compiler_rtti_exceptions=no
10444 ac_outfile=conftest.$ac_objext
10445 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10446 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10447 # Insert the option either (1) after the last *FLAGS variable, or
10448 # (2) before a word containing "conftest.", or (3) at the end.
10449 # Note that $ac_compile itself does not contain backslashes and begins
10450 # with a dollar sign (not a hyphen), so the echo should work correctly.
10451 # The option is referenced via a variable to avoid confusing sed.
10452 lt_compile=`echo "$ac_compile" | $SED \
10453 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10454 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10455 -e 's:$: $lt_compiler_flag:'`
10456 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10457 (eval "$lt_compile" 2>conftest.err)
10458 ac_status=$?
10459 cat conftest.err >&5
10460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461 if (exit $ac_status) && test -s "$ac_outfile"; then
10462 # The compiler can only warn and ignore the option if not recognized
10463 # So say no if there are warnings other than the usual output.
10464 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10465 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10466 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10467 lt_cv_prog_compiler_rtti_exceptions=yes
10468 fi
10469 fi
10470 $RM conftest*
10471 ;;
10472 esac
10473 fi
10474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10475 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10476
10477 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10478 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10479 else
10480 :
10481 fi
10482
10483 fi
10484
10485
10486
10487
10488
10489
10490 lt_prog_compiler_wl=
10491 lt_prog_compiler_pic=
10492 lt_prog_compiler_static=
10493
10494
10495 if test yes = "$GCC"; then
10496 lt_prog_compiler_wl='-Wl,'
10497 lt_prog_compiler_static='-static'
10498
10499 case $host_os in
10500 aix*)
10501 # All AIX code is PIC.
10502 if test ia64 = "$host_cpu"; then
10503 # AIX 5 now supports IA64 processor
10504 lt_prog_compiler_static='-Bstatic'
10505 fi
10506 lt_prog_compiler_pic='-fPIC'
10507 ;;
10508
10509 amigaos*)
10510 case $host_cpu in
10511 powerpc)
10512 # see comment about AmigaOS4 .so support
10513 lt_prog_compiler_pic='-fPIC'
10514 ;;
10515 m68k)
10516 # FIXME: we need at least 68020 code to build shared libraries, but
10517 # adding the '-m68020' flag to GCC prevents building anything better,
10518 # like '-m68040'.
10519 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10520 ;;
10521 esac
10522 ;;
10523
10524 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10525 # PIC is the default for these OSes.
10526 ;;
10527
10528 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
10529 # This hack is so that the source file can tell whether it is being
10530 # built for inclusion in a dll (and should export symbols for example).
10531 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10532 # (--disable-auto-import) libraries
10533 lt_prog_compiler_pic='-DDLL_EXPORT'
10534 case $host_os in
10535 os2*)
10536 lt_prog_compiler_static='$wl-static'
10537 ;;
10538 esac
10539 ;;
10540
10541 darwin* | rhapsody*)
10542 # PIC is the default on this platform
10543 # Common symbols not allowed in MH_DYLIB files
10544 lt_prog_compiler_pic='-fno-common'
10545 ;;
10546
10547 haiku*)
10548 # PIC is the default for Haiku.
10549 # The "-static" flag exists, but is broken.
10550 lt_prog_compiler_static=
10551 ;;
10552
10553 hpux*)
10554 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10555 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10556 # sets the default TLS model and affects inlining.
10557 case $host_cpu in
10558 hppa*64*)
10559 # +Z the default
10560 ;;
10561 *)
10562 lt_prog_compiler_pic='-fPIC'
10563 ;;
10564 esac
10565 ;;
10566
10567 interix[3-9]*)
10568 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10569 # Instead, we relocate shared libraries at runtime.
10570 ;;
10571
10572 msdosdjgpp*)
10573 # Just because we use GCC doesn't mean we suddenly get shared libraries
10574 # on systems that don't support them.
10575 lt_prog_compiler_can_build_shared=no
10576 enable_shared=no
10577 ;;
10578
10579 *nto* | *qnx*)
10580 # QNX uses GNU C++, but need to define -shared option too, otherwise
10581 # it will coredump.
10582 lt_prog_compiler_pic='-fPIC -shared'
10583 ;;
10584
10585 sysv4*MP*)
10586 if test -d /usr/nec; then
10587 lt_prog_compiler_pic=-Kconform_pic
10588 fi
10589 ;;
10590
10591 *)
10592 lt_prog_compiler_pic='-fPIC'
10593 ;;
10594 esac
10595
10596 case $cc_basename in
10597 nvcc*) # Cuda Compiler Driver 2.2
10598 lt_prog_compiler_wl='-Xlinker '
10599 if test -n "$lt_prog_compiler_pic"; then
10600 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10601 fi
10602 ;;
10603 esac
10604 else
10605 # PORTME Check for flag to pass linker flags through the system compiler.
10606 case $host_os in
10607 aix*)
10608 lt_prog_compiler_wl='-Wl,'
10609 if test ia64 = "$host_cpu"; then
10610 # AIX 5 now supports IA64 processor
10611 lt_prog_compiler_static='-Bstatic'
10612 else
10613 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10614 fi
10615 ;;
10616
10617 darwin* | rhapsody*)
10618 # PIC is the default on this platform
10619 # Common symbols not allowed in MH_DYLIB files
10620 lt_prog_compiler_pic='-fno-common'
10621 case $cc_basename in
10622 nagfor*)
10623 # NAG Fortran compiler
10624 lt_prog_compiler_wl='-Wl,-Wl,,'
10625 lt_prog_compiler_pic='-PIC'
10626 lt_prog_compiler_static='-Bstatic'
10627 ;;
10628 esac
10629 ;;
10630
10631 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
10632 # This hack is so that the source file can tell whether it is being
10633 # built for inclusion in a dll (and should export symbols for example).
10634 lt_prog_compiler_pic='-DDLL_EXPORT'
10635 case $host_os in
10636 os2*)
10637 lt_prog_compiler_static='$wl-static'
10638 ;;
10639 esac
10640 ;;
10641
10642 hpux9* | hpux10* | hpux11*)
10643 lt_prog_compiler_wl='-Wl,'
10644 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10645 # not for PA HP-UX.
10646 case $host_cpu in
10647 hppa*64*|ia64*)
10648 # +Z the default
10649 ;;
10650 *)
10651 lt_prog_compiler_pic='+Z'
10652 ;;
10653 esac
10654 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10655 lt_prog_compiler_static='$wl-a ${wl}archive'
10656 ;;
10657
10658 irix5* | irix6* | nonstopux*)
10659 lt_prog_compiler_wl='-Wl,'
10660 # PIC (with -KPIC) is the default.
10661 lt_prog_compiler_static='-non_shared'
10662 ;;
10663
10664 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10665 case $cc_basename in
10666 # old Intel for x86_64, which still supported -KPIC.
10667 ecc*)
10668 lt_prog_compiler_wl='-Wl,'
10669 lt_prog_compiler_pic='-KPIC'
10670 lt_prog_compiler_static='-static'
10671 ;;
10672 *flang* | ftn | f18* | f95*)
10673 # Flang compiler.
10674 lt_prog_compiler_wl='-Wl,'
10675 lt_prog_compiler_pic='-fPIC'
10676 lt_prog_compiler_static='-static'
10677 ;;
10678 # flang / f18. f95 an alias for gfortran or flang on Debian
10679 flang* | f18* | f95*)
10680 lt_prog_compiler_wl='-Wl,'
10681 lt_prog_compiler_pic='-fPIC'
10682 lt_prog_compiler_static='-static'
10683 ;;
10684 # icc used to be incompatible with GCC.
10685 # ICC 10 doesn't accept -KPIC any more.
10686 icc* | ifort*)
10687 lt_prog_compiler_wl='-Wl,'
10688 lt_prog_compiler_pic='-fPIC'
10689 lt_prog_compiler_static='-static'
10690 ;;
10691 # Lahey Fortran 8.1.
10692 lf95*)
10693 lt_prog_compiler_wl='-Wl,'
10694 lt_prog_compiler_pic='--shared'
10695 lt_prog_compiler_static='--static'
10696 ;;
10697 nagfor*)
10698 # NAG Fortran compiler
10699 lt_prog_compiler_wl='-Wl,-Wl,,'
10700 lt_prog_compiler_pic='-PIC'
10701 lt_prog_compiler_static='-Bstatic'
10702 ;;
10703 tcc*)
10704 # Fabrice Bellard et al's Tiny C Compiler
10705 lt_prog_compiler_wl='-Wl,'
10706 lt_prog_compiler_pic='-fPIC'
10707 lt_prog_compiler_static='-static'
10708 ;;
10709 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10710 # Portland Group compilers (*not* the Pentium gcc compiler,
10711 # which looks to be a dead project)
10712 lt_prog_compiler_wl='-Wl,'
10713 lt_prog_compiler_pic='-fpic'
10714 lt_prog_compiler_static='-Bstatic'
10715 ;;
10716 ccc*)
10717 lt_prog_compiler_wl='-Wl,'
10718 # All Alpha code is PIC.
10719 lt_prog_compiler_static='-non_shared'
10720 ;;
10721 xl* | bgxl* | bgf* | mpixl*)
10722 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10723 lt_prog_compiler_wl='-Wl,'
10724 lt_prog_compiler_pic='-qpic'
10725 lt_prog_compiler_static='-qstaticlink'
10726 ;;
10727 *)
10728 case `$CC -V 2>&1 | $SED 5q` in
10729 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10730 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10731 lt_prog_compiler_pic='-KPIC'
10732 lt_prog_compiler_static='-Bstatic'
10733 lt_prog_compiler_wl=''
10734 ;;
10735 *Sun\ F* | *Sun*Fortran*)
10736 lt_prog_compiler_pic='-KPIC'
10737 lt_prog_compiler_static='-Bstatic'
10738 lt_prog_compiler_wl='-Qoption ld '
10739 ;;
10740 *Sun\ C*)
10741 # Sun C 5.9
10742 lt_prog_compiler_pic='-KPIC'
10743 lt_prog_compiler_static='-Bstatic'
10744 lt_prog_compiler_wl='-Wl,'
10745 ;;
10746 *Intel*\ [CF]*Compiler*)
10747 lt_prog_compiler_wl='-Wl,'
10748 lt_prog_compiler_pic='-fPIC'
10749 lt_prog_compiler_static='-static'
10750 ;;
10751 *Portland\ Group*)
10752 lt_prog_compiler_wl='-Wl,'
10753 lt_prog_compiler_pic='-fpic'
10754 lt_prog_compiler_static='-Bstatic'
10755 ;;
10756 esac
10757 ;;
10758 esac
10759 ;;
10760
10761 newsos6)
10762 lt_prog_compiler_pic='-KPIC'
10763 lt_prog_compiler_static='-Bstatic'
10764 ;;
10765
10766 *-mlibc)
10767 lt_prog_compiler_wl='-Wl,'
10768 lt_prog_compiler_pic='-fPIC'
10769 lt_prog_compiler_static='-static'
10770 ;;
10771
10772 *nto* | *qnx*)
10773 # QNX uses GNU C++, but need to define -shared option too, otherwise
10774 # it will coredump.
10775 lt_prog_compiler_pic='-fPIC -shared'
10776 ;;
10777
10778 osf3* | osf4* | osf5*)
10779 lt_prog_compiler_wl='-Wl,'
10780 # All OSF/1 code is PIC.
10781 lt_prog_compiler_static='-non_shared'
10782 ;;
10783
10784 rdos*)
10785 lt_prog_compiler_static='-non_shared'
10786 ;;
10787
10788 serenity*)
10789 ;;
10790
10791 solaris*)
10792 lt_prog_compiler_pic='-KPIC'
10793 lt_prog_compiler_static='-Bstatic'
10794 case $cc_basename in
10795 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10796 lt_prog_compiler_wl='-Qoption ld ';;
10797 *)
10798 lt_prog_compiler_wl='-Wl,';;
10799 esac
10800 ;;
10801
10802 sunos4*)
10803 lt_prog_compiler_wl='-Qoption ld '
10804 lt_prog_compiler_pic='-PIC'
10805 lt_prog_compiler_static='-Bstatic'
10806 ;;
10807
10808 sysv4 | sysv4.2uw2* | sysv4.3*)
10809 lt_prog_compiler_wl='-Wl,'
10810 lt_prog_compiler_pic='-KPIC'
10811 lt_prog_compiler_static='-Bstatic'
10812 ;;
10813
10814 sysv4*MP*)
10815 if test -d /usr/nec; then
10816 lt_prog_compiler_pic='-Kconform_pic'
10817 lt_prog_compiler_static='-Bstatic'
10818 fi
10819 ;;
10820
10821 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10822 lt_prog_compiler_wl='-Wl,'
10823 lt_prog_compiler_pic='-KPIC'
10824 lt_prog_compiler_static='-Bstatic'
10825 ;;
10826
10827 unicos*)
10828 lt_prog_compiler_wl='-Wl,'
10829 lt_prog_compiler_can_build_shared=no
10830 ;;
10831
10832 uts4*)
10833 lt_prog_compiler_pic='-pic'
10834 lt_prog_compiler_static='-Bstatic'
10835 ;;
10836
10837 *)
10838 lt_prog_compiler_can_build_shared=no
10839 ;;
10840 esac
10841 fi
10842
10843 case $host_os in
10844 # For platforms that do not support PIC, -DPIC is meaningless:
10845 *djgpp*)
10846 lt_prog_compiler_pic=
10847 ;;
10848 *)
10849 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10850 ;;
10851 esac
10852
10853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10854 printf %s "checking for $compiler option to produce PIC... " >&6; }
10855 if test ${lt_cv_prog_compiler_pic+y}
10856 then :
10857 printf %s "(cached) " >&6
10858 else case e in #(
10859 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
10860 esac
10861 fi
10862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10863 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10864 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10865
10866 #
10867 # Check to make sure the PIC flag actually works.
10868 #
10869 if test -n "$lt_prog_compiler_pic"; then
10870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10871 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10872 if test ${lt_cv_prog_compiler_pic_works+y}
10873 then :
10874 printf %s "(cached) " >&6
10875 else case e in #(
10876 e) lt_cv_prog_compiler_pic_works=no
10877 ac_outfile=conftest.$ac_objext
10878 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10879 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10880 # Insert the option either (1) after the last *FLAGS variable, or
10881 # (2) before a word containing "conftest.", or (3) at the end.
10882 # Note that $ac_compile itself does not contain backslashes and begins
10883 # with a dollar sign (not a hyphen), so the echo should work correctly.
10884 # The option is referenced via a variable to avoid confusing sed.
10885 lt_compile=`echo "$ac_compile" | $SED \
10886 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10887 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10888 -e 's:$: $lt_compiler_flag:'`
10889 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10890 (eval "$lt_compile" 2>conftest.err)
10891 ac_status=$?
10892 cat conftest.err >&5
10893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894 if (exit $ac_status) && test -s "$ac_outfile"; then
10895 # The compiler can only warn and ignore the option if not recognized
10896 # So say no if there are warnings other than the usual output.
10897 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10898 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10899 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10900 lt_cv_prog_compiler_pic_works=yes
10901 fi
10902 fi
10903 $RM conftest*
10904 ;;
10905 esac
10906 fi
10907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10908 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10909
10910 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10911 case $lt_prog_compiler_pic in
10912 "" | " "*) ;;
10913 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10914 esac
10915 else
10916 lt_prog_compiler_pic=
10917 lt_prog_compiler_can_build_shared=no
10918 fi
10919
10920 fi
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932 #
10933 # Check to make sure the static flag actually works.
10934 #
10935 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10937 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10938 if test ${lt_cv_prog_compiler_static_works+y}
10939 then :
10940 printf %s "(cached) " >&6
10941 else case e in #(
10942 e) lt_cv_prog_compiler_static_works=no
10943 save_LDFLAGS=$LDFLAGS
10944 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10945 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10946 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10947 # The linker can only warn and ignore the option if not recognized
10948 # So say no if there are warnings
10949 if test -s conftest.err; then
10950 # Append any errors to the config.log.
10951 cat conftest.err 1>&5
10952 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10953 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10954 if diff conftest.exp conftest.er2 >/dev/null; then
10955 lt_cv_prog_compiler_static_works=yes
10956 fi
10957 else
10958 lt_cv_prog_compiler_static_works=yes
10959 fi
10960 fi
10961 $RM -r conftest*
10962 LDFLAGS=$save_LDFLAGS
10963 ;;
10964 esac
10965 fi
10966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10967 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10968
10969 if test yes = "$lt_cv_prog_compiler_static_works"; then
10970 :
10971 else
10972 lt_prog_compiler_static=
10973 fi
10974
10975
10976
10977
10978
10979
10980
10981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10982 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10983 if test ${lt_cv_prog_compiler_c_o+y}
10984 then :
10985 printf %s "(cached) " >&6
10986 else case e in #(
10987 e) lt_cv_prog_compiler_c_o=no
10988 $RM -r conftest 2>/dev/null
10989 mkdir conftest
10990 cd conftest
10991 mkdir out
10992 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10993
10994 lt_compiler_flag="-o out/conftest2.$ac_objext"
10995 # Insert the option either (1) after the last *FLAGS variable, or
10996 # (2) before a word containing "conftest.", or (3) at the end.
10997 # Note that $ac_compile itself does not contain backslashes and begins
10998 # with a dollar sign (not a hyphen), so the echo should work correctly.
10999 lt_compile=`echo "$ac_compile" | $SED \
11000 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11001 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11002 -e 's:$: $lt_compiler_flag:'`
11003 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11004 (eval "$lt_compile" 2>out/conftest.err)
11005 ac_status=$?
11006 cat out/conftest.err >&5
11007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11008 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11009 then
11010 # The compiler can only warn and ignore the option if not recognized
11011 # So say no if there are warnings
11012 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11013 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11014 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11015 lt_cv_prog_compiler_c_o=yes
11016 fi
11017 fi
11018 chmod u+w . 2>&5
11019 $RM conftest*
11020 # SGI C++ compiler will create directory out/ii_files/ for
11021 # template instantiation
11022 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11023 $RM out/* && rmdir out
11024 cd ..
11025 $RM -r conftest
11026 $RM conftest*
11027 ;;
11028 esac
11029 fi
11030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11031 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11032
11033
11034
11035
11036
11037
11038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11039 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11040 if test ${lt_cv_prog_compiler_c_o+y}
11041 then :
11042 printf %s "(cached) " >&6
11043 else case e in #(
11044 e) lt_cv_prog_compiler_c_o=no
11045 $RM -r conftest 2>/dev/null
11046 mkdir conftest
11047 cd conftest
11048 mkdir out
11049 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11050
11051 lt_compiler_flag="-o out/conftest2.$ac_objext"
11052 # Insert the option either (1) after the last *FLAGS variable, or
11053 # (2) before a word containing "conftest.", or (3) at the end.
11054 # Note that $ac_compile itself does not contain backslashes and begins
11055 # with a dollar sign (not a hyphen), so the echo should work correctly.
11056 lt_compile=`echo "$ac_compile" | $SED \
11057 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11058 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11059 -e 's:$: $lt_compiler_flag:'`
11060 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11061 (eval "$lt_compile" 2>out/conftest.err)
11062 ac_status=$?
11063 cat out/conftest.err >&5
11064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11065 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11066 then
11067 # The compiler can only warn and ignore the option if not recognized
11068 # So say no if there are warnings
11069 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11070 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11071 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11072 lt_cv_prog_compiler_c_o=yes
11073 fi
11074 fi
11075 chmod u+w . 2>&5
11076 $RM conftest*
11077 # SGI C++ compiler will create directory out/ii_files/ for
11078 # template instantiation
11079 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11080 $RM out/* && rmdir out
11081 cd ..
11082 $RM -r conftest
11083 $RM conftest*
11084 ;;
11085 esac
11086 fi
11087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11088 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11089
11090
11091
11092
11093 hard_links=nottested
11094 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11095 # do not overwrite the value of need_locks provided by the user
11096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11097 printf %s "checking if we can lock with hard links... " >&6; }
11098 hard_links=yes
11099 $RM conftest*
11100 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11101 touch conftest.a
11102 ln conftest.a conftest.b 2>&5 || hard_links=no
11103 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11105 printf "%s\n" "$hard_links" >&6; }
11106 if test no = "$hard_links"; then
11107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11108 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11109 need_locks=warn
11110 fi
11111 else
11112 need_locks=no
11113 fi
11114
11115
11116
11117
11118
11119
11120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11121 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11122
11123 runpath_var=
11124 allow_undefined_flag=
11125 always_export_symbols=no
11126 archive_cmds=
11127 archive_expsym_cmds=
11128 compiler_needs_object=no
11129 enable_shared_with_static_runtimes=no
11130 export_dynamic_flag_spec=
11131 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11132 hardcode_automatic=no
11133 hardcode_direct=no
11134 hardcode_direct_absolute=no
11135 hardcode_libdir_flag_spec=
11136 hardcode_libdir_separator=
11137 hardcode_minus_L=no
11138 hardcode_shlibpath_var=unsupported
11139 inherit_rpath=no
11140 link_all_deplibs=unknown
11141 module_cmds=
11142 module_expsym_cmds=
11143 old_archive_from_new_cmds=
11144 old_archive_from_expsyms_cmds=
11145 thread_safe_flag_spec=
11146 whole_archive_flag_spec=
11147 # include_expsyms should be a list of space-separated symbols to be *always*
11148 # included in the symbol list
11149 include_expsyms=
11150 # exclude_expsyms can be an extended regexp of symbols to exclude
11151 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11152 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11153 # as well as any symbol that contains 'd'.
11154 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11155 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11156 # platforms (ab)use it in PIC code, but their linkers get confused if
11157 # the symbol is explicitly referenced. Since portable code cannot
11158 # rely on this symbol name, it's probably fine to never include it in
11159 # preloaded symbol tables.
11160 # Exclude shared library initialization/finalization symbols.
11161 extract_expsyms_cmds=
11162
11163 case $host_os in
11164 cygwin* | mingw* | windows* | pw32* | cegcc*)
11165 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
11166 # When not using gcc, we currently assume that we are using
11167 # Microsoft Visual C++ or Intel C++ Compiler.
11168 if test yes != "$GCC"; then
11169 with_gnu_ld=no
11170 fi
11171 ;;
11172 interix*)
11173 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
11174 with_gnu_ld=yes
11175 ;;
11176 linux* | k*bsd*-gnu | gnu*)
11177 link_all_deplibs=no
11178 ;;
11179 esac
11180
11181 ld_shlibs=yes
11182
11183 # On some targets, GNU ld is compatible enough with the native linker
11184 # that we're better off using the native interface for both.
11185 lt_use_gnu_ld_interface=no
11186 if test yes = "$with_gnu_ld"; then
11187 case $host_os in
11188 aix*)
11189 # The AIX port of GNU ld has always aspired to compatibility
11190 # with the native linker. However, as the warning in the GNU ld
11191 # block says, versions before 2.19.5* couldn't really create working
11192 # shared libraries, regardless of the interface used.
11193 case `$LD -v 2>&1` in
11194 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11195 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11196 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11197 *)
11198 lt_use_gnu_ld_interface=yes
11199 ;;
11200 esac
11201 ;;
11202 *)
11203 lt_use_gnu_ld_interface=yes
11204 ;;
11205 esac
11206 fi
11207
11208 if test yes = "$lt_use_gnu_ld_interface"; then
11209 # If archive_cmds runs LD, not CC, wlarc should be empty
11210 wlarc='$wl'
11211
11212 # Set some defaults for GNU ld with shared library support. These
11213 # are reset later if shared libraries are not supported. Putting them
11214 # here allows them to be overridden if necessary.
11215 runpath_var=LD_RUN_PATH
11216 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11217 export_dynamic_flag_spec='$wl--export-dynamic'
11218 # ancient GNU ld didn't support --whole-archive et. al.
11219 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11220 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11221 else
11222 whole_archive_flag_spec=
11223 fi
11224 supports_anon_versioning=no
11225 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
11226 *GNU\ gold*) supports_anon_versioning=yes ;;
11227 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11228 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11229 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11230 *\ 2.11.*) ;; # other 2.11 versions
11231 *) supports_anon_versioning=yes ;;
11232 esac
11233
11234 # See if GNU ld supports shared libraries.
11235 case $host_os in
11236 aix[3-9]*)
11237 # On AIX/PPC, the GNU linker is very broken
11238 if test ia64 != "$host_cpu"; then
11239 ld_shlibs=no
11240 cat <<_LT_EOF 1>&2
11241
11242 *** Warning: the GNU linker, at least up to release 2.19, is reported
11243 *** to be unable to reliably create shared libraries on AIX.
11244 *** Therefore, libtool is disabling shared libraries support. If you
11245 *** really care for shared libraries, you may want to install binutils
11246 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11247 *** You will then need to restart the configuration process.
11248
11249 _LT_EOF
11250 fi
11251 ;;
11252
11253 amigaos*)
11254 case $host_cpu in
11255 powerpc)
11256 # see comment about AmigaOS4 .so support
11257 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11258 archive_expsym_cmds=''
11259 ;;
11260 m68k)
11261 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)'
11262 hardcode_libdir_flag_spec='-L$libdir'
11263 hardcode_minus_L=yes
11264 ;;
11265 esac
11266 ;;
11267
11268 beos*)
11269 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11270 allow_undefined_flag=unsupported
11271 # Joseph Beckenbach <[email protected]> says some releases of gcc
11272 # support --undefined. This deserves some investigation. FIXME
11273 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11274 else
11275 ld_shlibs=no
11276 fi
11277 ;;
11278
11279 cygwin* | mingw* | windows* | pw32* | cegcc*)
11280 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11281 # as there is no search path for DLLs.
11282 hardcode_libdir_flag_spec='-L$libdir'
11283 export_dynamic_flag_spec='$wl--export-all-symbols'
11284 allow_undefined_flag=unsupported
11285 always_export_symbols=no
11286 enable_shared_with_static_runtimes=yes
11287 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
11288 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11289 file_list_spec='@'
11290
11291 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11292 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11293 # If the export-symbols file already is a .def file, use it as
11294 # is; otherwise, prepend EXPORTS...
11295 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11296 cp $export_symbols $output_objdir/$soname.def;
11297 else
11298 echo EXPORTS > $output_objdir/$soname.def;
11299 cat $export_symbols >> $output_objdir/$soname.def;
11300 fi~
11301 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11302 else
11303 ld_shlibs=no
11304 fi
11305 ;;
11306
11307 haiku*)
11308 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11309 link_all_deplibs=no
11310 ;;
11311
11312 os2*)
11313 hardcode_libdir_flag_spec='-L$libdir'
11314 hardcode_minus_L=yes
11315 allow_undefined_flag=unsupported
11316 shrext_cmds=.dll
11317 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11318 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11319 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11320 $ECHO EXPORTS >> $output_objdir/$libname.def~
11321 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11322 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11323 emximp -o $lib $output_objdir/$libname.def'
11324 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11325 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11326 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11327 $ECHO EXPORTS >> $output_objdir/$libname.def~
11328 prefix_cmds="$SED"~
11329 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11330 prefix_cmds="$prefix_cmds -e 1d";
11331 fi~
11332 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11333 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11334 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11335 emximp -o $lib $output_objdir/$libname.def'
11336 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11337 enable_shared_with_static_runtimes=yes
11338 file_list_spec='@'
11339 ;;
11340
11341 interix[3-9]*)
11342 hardcode_direct=no
11343 hardcode_shlibpath_var=no
11344 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11345 export_dynamic_flag_spec='$wl-E'
11346 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11347 # Instead, shared libraries are loaded at an image base (0x10000000 by
11348 # default) and relocated if they conflict, which is a slow very memory
11349 # consuming and fragmenting process. To avoid this, we pick a random,
11350 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11351 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11352 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11353 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'
11354 ;;
11355
11356 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11357 tmp_diet=no
11358 if test linux-dietlibc = "$host_os"; then
11359 case $cc_basename in
11360 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11361 esac
11362 fi
11363 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11364 && test no = "$tmp_diet"
11365 then
11366 tmp_addflag=' $pic_flag'
11367 tmp_sharedflag='-shared'
11368 case $cc_basename,$host_cpu in
11369 pgcc*) # Portland Group C compiler
11370 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
11371 tmp_addflag=' $pic_flag'
11372 ;;
11373 pgf77* | pgf90* | pgf95* | pgfortran*)
11374 # Portland Group f77 and f90 compilers
11375 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
11376 tmp_addflag=' $pic_flag -Mnomain' ;;
11377 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11378 tmp_addflag=' -i_dynamic' ;;
11379 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11380 tmp_addflag=' -i_dynamic -nofor_main' ;;
11381 ifc* | ifort*) # Intel Fortran compiler
11382 tmp_addflag=' -nofor_main' ;;
11383 lf95*) # Lahey Fortran 8.1
11384 whole_archive_flag_spec=
11385 tmp_sharedflag='--shared' ;;
11386 nagfor*) # NAGFOR 5.3
11387 tmp_sharedflag='-Wl,-shared' ;;
11388 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11389 tmp_sharedflag='-qmkshrobj'
11390 tmp_addflag= ;;
11391 nvcc*) # Cuda Compiler Driver 2.2
11392 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
11393 compiler_needs_object=yes
11394 ;;
11395 esac
11396 case `$CC -V 2>&1 | $SED 5q` in
11397 *Sun\ C*) # Sun C 5.9
11398 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
11399 compiler_needs_object=yes
11400 tmp_sharedflag='-G' ;;
11401 *Sun\ F*) # Sun Fortran 8.3
11402 tmp_sharedflag='-G' ;;
11403 esac
11404 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11405
11406 if test yes = "$supports_anon_versioning"; then
11407 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11408 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11409 echo "local: *; };" >> $output_objdir/$libname.ver~
11410 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11411 fi
11412
11413 case $cc_basename in
11414 tcc*)
11415 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11416 export_dynamic_flag_spec='-rdynamic'
11417 ;;
11418 xlf* | bgf* | bgxlf* | mpixlf*)
11419 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11420 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11421 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11422 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11423 if test yes = "$supports_anon_versioning"; then
11424 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11425 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11426 echo "local: *; };" >> $output_objdir/$libname.ver~
11427 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11428 fi
11429 ;;
11430 esac
11431 else
11432 ld_shlibs=no
11433 fi
11434 ;;
11435
11436 *-mlibc)
11437 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11438 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11439 ;;
11440
11441 netbsd* | netbsdelf*-gnu)
11442 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11443 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11444 wlarc=
11445 else
11446 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11447 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11448 fi
11449 ;;
11450
11451 solaris*)
11452 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11453 ld_shlibs=no
11454 cat <<_LT_EOF 1>&2
11455
11456 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11457 *** create shared libraries on Solaris systems. Therefore, libtool
11458 *** is disabling shared libraries support. We urge you to upgrade GNU
11459 *** binutils to release 2.9.1 or newer. Another option is to modify
11460 *** your PATH or compiler configuration so that the native linker is
11461 *** used, and then restart.
11462
11463 _LT_EOF
11464 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11465 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11466 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11467 else
11468 ld_shlibs=no
11469 fi
11470 ;;
11471
11472 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11473 case `$LD -v 2>&1` in
11474 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11475 ld_shlibs=no
11476 cat <<_LT_EOF 1>&2
11477
11478 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11479 *** reliably create shared libraries on SCO systems. Therefore, libtool
11480 *** is disabling shared libraries support. We urge you to upgrade GNU
11481 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11482 *** your PATH or compiler configuration so that the native linker is
11483 *** used, and then restart.
11484
11485 _LT_EOF
11486 ;;
11487 *)
11488 # For security reasons, it is highly recommended that you always
11489 # use absolute paths for naming shared libraries, and exclude the
11490 # DT_RUNPATH tag from executables and libraries. But doing so
11491 # requires that you compile everything twice, which is a pain.
11492 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11493 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11494 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11495 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11496 else
11497 ld_shlibs=no
11498 fi
11499 ;;
11500 esac
11501 ;;
11502
11503 sunos4*)
11504 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11505 wlarc=
11506 hardcode_direct=yes
11507 hardcode_shlibpath_var=no
11508 ;;
11509
11510 *)
11511 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11512 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11513 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11514 else
11515 ld_shlibs=no
11516 fi
11517 ;;
11518 esac
11519
11520 if test no = "$ld_shlibs"; then
11521 runpath_var=
11522 hardcode_libdir_flag_spec=
11523 export_dynamic_flag_spec=
11524 whole_archive_flag_spec=
11525 fi
11526 else
11527 # PORTME fill in a description of your system's linker (not GNU ld)
11528 case $host_os in
11529 aix3*)
11530 allow_undefined_flag=unsupported
11531 always_export_symbols=yes
11532 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'
11533 # Note: this linker hardcodes the directories in LIBPATH if there
11534 # are no directories specified by -L.
11535 hardcode_minus_L=yes
11536 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11537 # Neither direct hardcoding nor static linking is supported with a
11538 # broken collect2.
11539 hardcode_direct=unsupported
11540 fi
11541 ;;
11542
11543 aix[4-9]*)
11544 if test ia64 = "$host_cpu"; then
11545 # On IA64, the linker does run time linking by default, so we don't
11546 # have to do anything special.
11547 aix_use_runtimelinking=no
11548 exp_sym_flag='-Bexport'
11549 no_entry_flag=
11550 else
11551 # If we're using GNU nm, then we don't want the "-C" option.
11552 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11553 # Without the "-l" option, or with the "-B" option, AIX nm treats
11554 # weak defined symbols like other global defined symbols, whereas
11555 # GNU nm marks them as "W".
11556 # While the 'weak' keyword is ignored in the Export File, we need
11557 # it in the Import File for the 'aix-soname' feature, so we have
11558 # to replace the "-B" option with "-P" for AIX nm.
11559 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11560 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
11561 else
11562 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
11563 fi
11564 aix_use_runtimelinking=no
11565
11566 # Test if we are trying to use run time linking or normal
11567 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11568 # have runtime linking enabled, and use it for executables.
11569 # For shared libraries, we enable/disable runtime linking
11570 # depending on the kind of the shared library created -
11571 # when "with_aix_soname,aix_use_runtimelinking" is:
11572 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11573 # "aix,yes" lib.so shared, rtl:yes, for executables
11574 # lib.a static archive
11575 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11576 # lib.a(lib.so.V) shared, rtl:no, for executables
11577 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11578 # lib.a(lib.so.V) shared, rtl:no
11579 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11580 # lib.a static archive
11581 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11582 for ld_flag in $LDFLAGS; do
11583 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11584 aix_use_runtimelinking=yes
11585 break
11586 fi
11587 done
11588 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11589 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11590 # so we don't have lib.a shared libs to link our executables.
11591 # We have to force runtime linking in this case.
11592 aix_use_runtimelinking=yes
11593 LDFLAGS="$LDFLAGS -Wl,-brtl"
11594 fi
11595 ;;
11596 esac
11597
11598 exp_sym_flag='-bexport'
11599 no_entry_flag='-bnoentry'
11600 fi
11601
11602 # When large executables or shared objects are built, AIX ld can
11603 # have problems creating the table of contents. If linking a library
11604 # or program results in "error TOC overflow" add -mminimal-toc to
11605 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11606 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11607
11608 archive_cmds=''
11609 hardcode_direct=yes
11610 hardcode_direct_absolute=yes
11611 hardcode_libdir_separator=':'
11612 link_all_deplibs=yes
11613 file_list_spec='$wl-f,'
11614 case $with_aix_soname,$aix_use_runtimelinking in
11615 aix,*) ;; # traditional, no import file
11616 svr4,* | *,yes) # use import file
11617 # The Import File defines what to hardcode.
11618 hardcode_direct=no
11619 hardcode_direct_absolute=no
11620 ;;
11621 esac
11622
11623 if test yes = "$GCC"; then
11624 case $host_os in aix4.[012]|aix4.[012].*)
11625 # We only want to do this on AIX 4.2 and lower, the check
11626 # below for broken collect2 doesn't work under 4.3+
11627 collect2name=`$CC -print-prog-name=collect2`
11628 if test -f "$collect2name" &&
11629 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11630 then
11631 # We have reworked collect2
11632 :
11633 else
11634 # We have old collect2
11635 hardcode_direct=unsupported
11636 # It fails to find uninstalled libraries when the uninstalled
11637 # path is not listed in the libpath. Setting hardcode_minus_L
11638 # to unsupported forces relinking
11639 hardcode_minus_L=yes
11640 hardcode_libdir_flag_spec='-L$libdir'
11641 hardcode_libdir_separator=
11642 fi
11643 ;;
11644 esac
11645 shared_flag='-shared'
11646 if test yes = "$aix_use_runtimelinking"; then
11647 shared_flag="$shared_flag "'$wl-G'
11648 fi
11649 # Need to ensure runtime linking is disabled for the traditional
11650 # shared library, or the linker may eventually find shared libraries
11651 # /with/ Import File - we do not want to mix them.
11652 shared_flag_aix='-shared'
11653 shared_flag_svr4='-shared $wl-G'
11654 else
11655 # not using gcc
11656 if test ia64 = "$host_cpu"; then
11657 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11658 # chokes on -Wl,-G. The following line is correct:
11659 shared_flag='-G'
11660 else
11661 if test yes = "$aix_use_runtimelinking"; then
11662 shared_flag='$wl-G'
11663 else
11664 shared_flag='$wl-bM:SRE'
11665 fi
11666 shared_flag_aix='$wl-bM:SRE'
11667 shared_flag_svr4='$wl-G'
11668 fi
11669 fi
11670
11671 export_dynamic_flag_spec='$wl-bexpall'
11672 # It seems that -bexpall does not export symbols beginning with
11673 # underscore (_), so it is better to generate a list of symbols to export.
11674 always_export_symbols=yes
11675 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11676 # Warning - without using the other runtime loading flags (-brtl),
11677 # -berok will link without error, but may produce a broken library.
11678 allow_undefined_flag='-berok'
11679 # Determine the default libpath from the value encoded in an
11680 # empty executable.
11681 if test set = "${lt_cv_aix_libpath+set}"; then
11682 aix_libpath=$lt_cv_aix_libpath
11683 else
11684 if test ${lt_cv_aix_libpath_+y}
11685 then :
11686 printf %s "(cached) " >&6
11687 else case e in #(
11688 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11689 /* end confdefs.h. */
11690
11691 int
11692 main (void)
11693 {
11694
11695 ;
11696 return 0;
11697 }
11698 _ACEOF
11699 if ac_fn_c_try_link "$LINENO"
11700 then :
11701
11702 lt_aix_libpath_sed='
11703 /Import File Strings/,/^$/ {
11704 /^0/ {
11705 s/^0 *\([^ ]*\) *$/\1/
11706 p
11707 }
11708 }'
11709 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11710 # Check for a 64-bit object if we didn't find anything.
11711 if test -z "$lt_cv_aix_libpath_"; then
11712 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11713 fi
11714 fi
11715 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11716 conftest$ac_exeext conftest.$ac_ext
11717 if test -z "$lt_cv_aix_libpath_"; then
11718 lt_cv_aix_libpath_=/usr/lib:/lib
11719 fi
11720 ;;
11721 esac
11722 fi
11723
11724 aix_libpath=$lt_cv_aix_libpath_
11725 fi
11726
11727 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11728 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
11729 else
11730 if test ia64 = "$host_cpu"; then
11731 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11732 allow_undefined_flag="-z nodefs"
11733 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"
11734 else
11735 # Determine the default libpath from the value encoded in an
11736 # empty executable.
11737 if test set = "${lt_cv_aix_libpath+set}"; then
11738 aix_libpath=$lt_cv_aix_libpath
11739 else
11740 if test ${lt_cv_aix_libpath_+y}
11741 then :
11742 printf %s "(cached) " >&6
11743 else case e in #(
11744 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11745 /* end confdefs.h. */
11746
11747 int
11748 main (void)
11749 {
11750
11751 ;
11752 return 0;
11753 }
11754 _ACEOF
11755 if ac_fn_c_try_link "$LINENO"
11756 then :
11757
11758 lt_aix_libpath_sed='
11759 /Import File Strings/,/^$/ {
11760 /^0/ {
11761 s/^0 *\([^ ]*\) *$/\1/
11762 p
11763 }
11764 }'
11765 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11766 # Check for a 64-bit object if we didn't find anything.
11767 if test -z "$lt_cv_aix_libpath_"; then
11768 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11769 fi
11770 fi
11771 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11772 conftest$ac_exeext conftest.$ac_ext
11773 if test -z "$lt_cv_aix_libpath_"; then
11774 lt_cv_aix_libpath_=/usr/lib:/lib
11775 fi
11776 ;;
11777 esac
11778 fi
11779
11780 aix_libpath=$lt_cv_aix_libpath_
11781 fi
11782
11783 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11784 # Warning - without using the other run time loading flags,
11785 # -berok will link without error, but may produce a broken library.
11786 no_undefined_flag=' $wl-bernotok'
11787 allow_undefined_flag=' $wl-berok'
11788 if test yes = "$with_gnu_ld"; then
11789 # We only use this code for GNU lds that support --whole-archive.
11790 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11791 else
11792 # Exported symbols can be pulled into shared objects from archives
11793 whole_archive_flag_spec='$convenience'
11794 fi
11795 archive_cmds_need_lc=yes
11796 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11797 # -brtl affects multiple linker settings, -berok does not and is overridden later
11798 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11799 if test svr4 != "$with_aix_soname"; then
11800 # This is similar to how AIX traditionally builds its shared libraries.
11801 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
11802 fi
11803 if test aix != "$with_aix_soname"; then
11804 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
11805 else
11806 # used by -dlpreopen to get the symbols
11807 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11808 fi
11809 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11810 fi
11811 fi
11812 ;;
11813
11814 amigaos*)
11815 case $host_cpu in
11816 powerpc)
11817 # see comment about AmigaOS4 .so support
11818 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11819 archive_expsym_cmds=''
11820 ;;
11821 m68k)
11822 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)'
11823 hardcode_libdir_flag_spec='-L$libdir'
11824 hardcode_minus_L=yes
11825 ;;
11826 esac
11827 ;;
11828
11829 bsdi[45]*)
11830 export_dynamic_flag_spec=-rdynamic
11831 ;;
11832
11833 cygwin* | mingw* | windows* | pw32* | cegcc*)
11834 # When not using gcc, we currently assume that we are using
11835 # Microsoft Visual C++ or Intel C++ Compiler.
11836 # hardcode_libdir_flag_spec is actually meaningless, as there is
11837 # no search path for DLLs.
11838 case $cc_basename in
11839 cl* | icl*)
11840 # Native MSVC or ICC
11841 hardcode_libdir_flag_spec=' '
11842 allow_undefined_flag=unsupported
11843 always_export_symbols=yes
11844 file_list_spec='@'
11845 # Tell ltmain to make .lib files, not .a files.
11846 libext=lib
11847 # Tell ltmain to make .dll files, not .so files.
11848 shrext_cmds=.dll
11849 # FIXME: Setting linknames here is a bad hack.
11850 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11851 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11852 cp "$export_symbols" "$output_objdir/$soname.def";
11853 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11854 else
11855 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11856 fi~
11857 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11858 linknames='
11859 # The linker will not automatically build a static lib if we build a DLL.
11860 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11861 enable_shared_with_static_runtimes=yes
11862 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11863 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11864 # Don't use ranlib
11865 old_postinstall_cmds='chmod 644 $oldlib'
11866 postlink_cmds='lt_outputfile="@OUTPUT@"~
11867 lt_tool_outputfile="@TOOL_OUTPUT@"~
11868 case $lt_outputfile in
11869 *.exe|*.EXE) ;;
11870 *)
11871 lt_outputfile=$lt_outputfile.exe
11872 lt_tool_outputfile=$lt_tool_outputfile.exe
11873 ;;
11874 esac~
11875 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11876 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11877 $RM "$lt_outputfile.manifest";
11878 fi'
11879 ;;
11880 *)
11881 # Assume MSVC and ICC wrapper
11882 hardcode_libdir_flag_spec=' '
11883 allow_undefined_flag=unsupported
11884 # Tell ltmain to make .lib files, not .a files.
11885 libext=lib
11886 # Tell ltmain to make .dll files, not .so files.
11887 shrext_cmds=.dll
11888 # FIXME: Setting linknames here is a bad hack.
11889 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11890 # The linker will automatically build a .lib file if we build a DLL.
11891 old_archive_from_new_cmds='true'
11892 # FIXME: Should let the user specify the lib program.
11893 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11894 enable_shared_with_static_runtimes=yes
11895 ;;
11896 esac
11897 ;;
11898
11899 darwin* | rhapsody*)
11900
11901
11902 archive_cmds_need_lc=no
11903 hardcode_direct=no
11904 hardcode_automatic=yes
11905 hardcode_shlibpath_var=unsupported
11906 if test yes = "$lt_cv_ld_force_load"; then
11907 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
11908
11909 else
11910 whole_archive_flag_spec=''
11911 fi
11912 link_all_deplibs=yes
11913 allow_undefined_flag=$_lt_dar_allow_undefined
11914 case $cc_basename in
11915 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11916 *) _lt_dar_can_shared=$GCC ;;
11917 esac
11918 if test yes = "$_lt_dar_can_shared"; then
11919 output_verbose_link_cmd=func_echo_all
11920 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11921 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11922 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"
11923 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"
11924
11925 else
11926 ld_shlibs=no
11927 fi
11928
11929 ;;
11930
11931 dgux*)
11932 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11933 hardcode_libdir_flag_spec='-L$libdir'
11934 hardcode_shlibpath_var=no
11935 ;;
11936
11937 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11938 # support. Future versions do this automatically, but an explicit c++rt0.o
11939 # does not break anything, and helps significantly (at the cost of a little
11940 # extra space).
11941 freebsd2.2*)
11942 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11943 hardcode_libdir_flag_spec='-R$libdir'
11944 hardcode_direct=yes
11945 hardcode_shlibpath_var=no
11946 ;;
11947
11948 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11949 freebsd2.*)
11950 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11951 hardcode_direct=yes
11952 hardcode_minus_L=yes
11953 hardcode_shlibpath_var=no
11954 ;;
11955
11956 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11957 freebsd* | dragonfly* | midnightbsd*)
11958 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11959 hardcode_libdir_flag_spec='-R$libdir'
11960 hardcode_direct=yes
11961 hardcode_shlibpath_var=no
11962 ;;
11963
11964 hpux9*)
11965 if test yes = "$GCC"; then
11966 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11967 else
11968 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11969 fi
11970 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11971 hardcode_libdir_separator=:
11972 hardcode_direct=yes
11973
11974 # hardcode_minus_L: Not really in the search PATH,
11975 # but as the default location of the library.
11976 hardcode_minus_L=yes
11977 export_dynamic_flag_spec='$wl-E'
11978 ;;
11979
11980 hpux10*)
11981 if test yes,no = "$GCC,$with_gnu_ld"; then
11982 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11983 else
11984 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11985 fi
11986 if test no = "$with_gnu_ld"; then
11987 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11988 hardcode_libdir_separator=:
11989 hardcode_direct=yes
11990 hardcode_direct_absolute=yes
11991 export_dynamic_flag_spec='$wl-E'
11992 # hardcode_minus_L: Not really in the search PATH,
11993 # but as the default location of the library.
11994 hardcode_minus_L=yes
11995 fi
11996 ;;
11997
11998 hpux11*)
11999 if test yes,no = "$GCC,$with_gnu_ld"; then
12000 case $host_cpu in
12001 hppa*64*)
12002 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12003 ;;
12004 ia64*)
12005 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12006 ;;
12007 *)
12008 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12009 ;;
12010 esac
12011 else
12012 case $host_cpu in
12013 hppa*64*)
12014 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12015 ;;
12016 ia64*)
12017 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12018 ;;
12019 *)
12020
12021 # Older versions of the 11.00 compiler do not understand -b yet
12022 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12024 printf %s "checking if $CC understands -b... " >&6; }
12025 if test ${lt_cv_prog_compiler__b+y}
12026 then :
12027 printf %s "(cached) " >&6
12028 else case e in #(
12029 e) lt_cv_prog_compiler__b=no
12030 save_LDFLAGS=$LDFLAGS
12031 LDFLAGS="$LDFLAGS -b"
12032 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12033 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12034 # The linker can only warn and ignore the option if not recognized
12035 # So say no if there are warnings
12036 if test -s conftest.err; then
12037 # Append any errors to the config.log.
12038 cat conftest.err 1>&5
12039 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12040 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12041 if diff conftest.exp conftest.er2 >/dev/null; then
12042 lt_cv_prog_compiler__b=yes
12043 fi
12044 else
12045 lt_cv_prog_compiler__b=yes
12046 fi
12047 fi
12048 $RM -r conftest*
12049 LDFLAGS=$save_LDFLAGS
12050 ;;
12051 esac
12052 fi
12053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12054 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
12055
12056 if test yes = "$lt_cv_prog_compiler__b"; then
12057 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12058 else
12059 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12060 fi
12061
12062 ;;
12063 esac
12064 fi
12065 if test no = "$with_gnu_ld"; then
12066 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12067 hardcode_libdir_separator=:
12068
12069 case $host_cpu in
12070 hppa*64*|ia64*)
12071 hardcode_direct=no
12072 hardcode_shlibpath_var=no
12073 ;;
12074 *)
12075 hardcode_direct=yes
12076 hardcode_direct_absolute=yes
12077 export_dynamic_flag_spec='$wl-E'
12078
12079 # hardcode_minus_L: Not really in the search PATH,
12080 # but as the default location of the library.
12081 hardcode_minus_L=yes
12082 ;;
12083 esac
12084 fi
12085 ;;
12086
12087 irix5* | irix6* | nonstopux*)
12088 if test yes = "$GCC"; then
12089 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
12090 # Try to use the -exported_symbol ld option, if it does not
12091 # work, assume that -exports_file does not work either and
12092 # implicitly export all symbols.
12093 # This should be the same for all languages, so no per-tag cache variable.
12094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12095 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12096 if test ${lt_cv_irix_exported_symbol+y}
12097 then :
12098 printf %s "(cached) " >&6
12099 else case e in #(
12100 e) save_LDFLAGS=$LDFLAGS
12101 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12103 /* end confdefs.h. */
12104 int foo (void) { return 0; }
12105 _ACEOF
12106 if ac_fn_c_try_link "$LINENO"
12107 then :
12108 lt_cv_irix_exported_symbol=yes
12109 else case e in #(
12110 e) lt_cv_irix_exported_symbol=no ;;
12111 esac
12112 fi
12113 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12114 conftest$ac_exeext conftest.$ac_ext
12115 LDFLAGS=$save_LDFLAGS ;;
12116 esac
12117 fi
12118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12119 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
12120 if test yes = "$lt_cv_irix_exported_symbol"; then
12121 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
12122 fi
12123 link_all_deplibs=no
12124 else
12125 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
12126 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
12127 fi
12128 archive_cmds_need_lc='no'
12129 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12130 hardcode_libdir_separator=:
12131 inherit_rpath=yes
12132 link_all_deplibs=yes
12133 ;;
12134
12135 linux*)
12136 case $cc_basename in
12137 tcc*)
12138 # Fabrice Bellard et al's Tiny C Compiler
12139 ld_shlibs=yes
12140 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12141 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12142 ;;
12143 esac
12144 ;;
12145
12146 *-mlibc)
12147 ;;
12148
12149 netbsd* | netbsdelf*-gnu)
12150 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12151 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12152 else
12153 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12154 fi
12155 hardcode_libdir_flag_spec='-R$libdir'
12156 hardcode_direct=yes
12157 hardcode_shlibpath_var=no
12158 ;;
12159
12160 newsos6)
12161 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12162 hardcode_direct=yes
12163 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12164 hardcode_libdir_separator=:
12165 hardcode_shlibpath_var=no
12166 ;;
12167
12168 *nto* | *qnx*)
12169 ;;
12170
12171 openbsd*)
12172 if test -f /usr/libexec/ld.so; then
12173 hardcode_direct=yes
12174 hardcode_shlibpath_var=no
12175 hardcode_direct_absolute=yes
12176 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12177 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12178 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12179 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12180 export_dynamic_flag_spec='$wl-E'
12181 else
12182 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12183 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12184 fi
12185 else
12186 ld_shlibs=no
12187 fi
12188 ;;
12189
12190 os2*)
12191 hardcode_libdir_flag_spec='-L$libdir'
12192 hardcode_minus_L=yes
12193 allow_undefined_flag=unsupported
12194 shrext_cmds=.dll
12195 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12196 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12197 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12198 $ECHO EXPORTS >> $output_objdir/$libname.def~
12199 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12200 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12201 emximp -o $lib $output_objdir/$libname.def'
12202 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12203 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12204 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12205 $ECHO EXPORTS >> $output_objdir/$libname.def~
12206 prefix_cmds="$SED"~
12207 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12208 prefix_cmds="$prefix_cmds -e 1d";
12209 fi~
12210 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12211 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12212 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12213 emximp -o $lib $output_objdir/$libname.def'
12214 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12215 enable_shared_with_static_runtimes=yes
12216 file_list_spec='@'
12217 ;;
12218
12219 osf3*)
12220 if test yes = "$GCC"; then
12221 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12222 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
12223 else
12224 allow_undefined_flag=' -expect_unresolved \*'
12225 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
12226 fi
12227 archive_cmds_need_lc='no'
12228 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12229 hardcode_libdir_separator=:
12230 ;;
12231
12232 osf4* | osf5*) # as osf3* with the addition of -msym flag
12233 if test yes = "$GCC"; then
12234 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12235 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
12236 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12237 else
12238 allow_undefined_flag=' -expect_unresolved \*'
12239 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
12240 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~
12241 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
12242
12243 # Both c and cxx compiler support -rpath directly
12244 hardcode_libdir_flag_spec='-rpath $libdir'
12245 fi
12246 archive_cmds_need_lc='no'
12247 hardcode_libdir_separator=:
12248 ;;
12249
12250 serenity*)
12251 ;;
12252
12253 solaris*)
12254 no_undefined_flag=' -z defs'
12255 if test yes = "$GCC"; then
12256 wlarc='$wl'
12257 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12258 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12259 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12260 else
12261 case `$CC -V 2>&1` in
12262 *"Compilers 5.0"*)
12263 wlarc=''
12264 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12265 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12266 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12267 ;;
12268 *)
12269 wlarc='$wl'
12270 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12271 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12272 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12273 ;;
12274 esac
12275 fi
12276 hardcode_libdir_flag_spec='-R$libdir'
12277 hardcode_shlibpath_var=no
12278 case $host_os in
12279 solaris2.[0-5] | solaris2.[0-5].*) ;;
12280 *)
12281 # The compiler driver will combine and reorder linker options,
12282 # but understands '-z linker_flag'. GCC discards it without '$wl',
12283 # but is careful enough not to reorder.
12284 # Supported since Solaris 2.6 (maybe 2.5.1?)
12285 if test yes = "$GCC"; then
12286 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12287 else
12288 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12289 fi
12290 ;;
12291 esac
12292 link_all_deplibs=yes
12293 ;;
12294
12295 sunos4*)
12296 if test sequent = "$host_vendor"; then
12297 # Use $CC to link under sequent, because it throws in some extra .o
12298 # files that make .init and .fini sections work.
12299 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12300 else
12301 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12302 fi
12303 hardcode_libdir_flag_spec='-L$libdir'
12304 hardcode_direct=yes
12305 hardcode_minus_L=yes
12306 hardcode_shlibpath_var=no
12307 ;;
12308
12309 sysv4)
12310 case $host_vendor in
12311 sni)
12312 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12313 hardcode_direct=yes # is this really true???
12314 ;;
12315 siemens)
12316 ## LD is ld it makes a PLAMLIB
12317 ## CC just makes a GrossModule.
12318 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12319 reload_cmds='$CC -r -o $output$reload_objs'
12320 hardcode_direct=no
12321 ;;
12322 motorola)
12323 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12324 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12325 ;;
12326 esac
12327 runpath_var='LD_RUN_PATH'
12328 hardcode_shlibpath_var=no
12329 ;;
12330
12331 sysv4.3*)
12332 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12333 hardcode_shlibpath_var=no
12334 export_dynamic_flag_spec='-Bexport'
12335 ;;
12336
12337 sysv4*MP*)
12338 if test -d /usr/nec; then
12339 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12340 hardcode_shlibpath_var=no
12341 runpath_var=LD_RUN_PATH
12342 hardcode_runpath_var=yes
12343 ld_shlibs=yes
12344 fi
12345 ;;
12346
12347 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12348 no_undefined_flag='$wl-z,text'
12349 archive_cmds_need_lc=no
12350 hardcode_shlibpath_var=no
12351 runpath_var='LD_RUN_PATH'
12352
12353 if test yes = "$GCC"; then
12354 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12355 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12356 else
12357 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12358 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12359 fi
12360 ;;
12361
12362 sysv5* | sco3.2v5* | sco5v6*)
12363 # Note: We CANNOT use -z defs as we might desire, because we do not
12364 # link with -lc, and that would cause any symbols used from libc to
12365 # always be unresolved, which means just about no library would
12366 # ever link correctly. If we're not using GNU ld we use -z text
12367 # though, which does catch some bad symbols but isn't as heavy-handed
12368 # as -z defs.
12369 no_undefined_flag='$wl-z,text'
12370 allow_undefined_flag='$wl-z,nodefs'
12371 archive_cmds_need_lc=no
12372 hardcode_shlibpath_var=no
12373 hardcode_libdir_flag_spec='$wl-R,$libdir'
12374 hardcode_libdir_separator=':'
12375 link_all_deplibs=yes
12376 export_dynamic_flag_spec='$wl-Bexport'
12377 runpath_var='LD_RUN_PATH'
12378
12379 if test yes = "$GCC"; then
12380 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12381 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12382 else
12383 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12384 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12385 fi
12386 ;;
12387
12388 uts4*)
12389 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12390 hardcode_libdir_flag_spec='-L$libdir'
12391 hardcode_shlibpath_var=no
12392 ;;
12393
12394 *)
12395 ld_shlibs=no
12396 ;;
12397 esac
12398
12399 if test sni = "$host_vendor"; then
12400 case $host in
12401 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12402 export_dynamic_flag_spec='$wl-Blargedynsym'
12403 ;;
12404 esac
12405 fi
12406 fi
12407
12408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12409 printf "%s\n" "$ld_shlibs" >&6; }
12410 test no = "$ld_shlibs" && can_build_shared=no
12411
12412 with_gnu_ld=$with_gnu_ld
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428 #
12429 # Do we need to explicitly link libc?
12430 #
12431 case "x$archive_cmds_need_lc" in
12432 x|xyes)
12433 # Assume -lc should be added
12434 archive_cmds_need_lc=yes
12435
12436 if test yes,yes = "$GCC,$enable_shared"; then
12437 case $archive_cmds in
12438 *'~'*)
12439 # FIXME: we may have to deal with multi-command sequences.
12440 ;;
12441 '$CC '*)
12442 # Test whether the compiler implicitly links with -lc since on some
12443 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12444 # to ld, don't add -lc before -lgcc.
12445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12446 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
12447 if test ${lt_cv_archive_cmds_need_lc+y}
12448 then :
12449 printf %s "(cached) " >&6
12450 else case e in #(
12451 e) $RM conftest*
12452 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12453
12454 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12455 (eval $ac_compile) 2>&5
12456 ac_status=$?
12457 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12458 test $ac_status = 0; } 2>conftest.err; then
12459 soname=conftest
12460 lib=conftest
12461 libobjs=conftest.$ac_objext
12462 deplibs=
12463 wl=$lt_prog_compiler_wl
12464 pic_flag=$lt_prog_compiler_pic
12465 compiler_flags=-v
12466 linker_flags=-v
12467 verstring=
12468 output_objdir=.
12469 libname=conftest
12470 lt_save_allow_undefined_flag=$allow_undefined_flag
12471 allow_undefined_flag=
12472 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12473 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12474 ac_status=$?
12475 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12476 test $ac_status = 0; }
12477 then
12478 lt_cv_archive_cmds_need_lc=no
12479 else
12480 lt_cv_archive_cmds_need_lc=yes
12481 fi
12482 allow_undefined_flag=$lt_save_allow_undefined_flag
12483 else
12484 cat conftest.err 1>&5
12485 fi
12486 $RM conftest*
12487 ;;
12488 esac
12489 fi
12490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12491 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
12492 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12493 ;;
12494 esac
12495 fi
12496 ;;
12497 esac
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12651 printf %s "checking dynamic linker characteristics... " >&6; }
12652
12653 if test yes = "$GCC"; then
12654 case $host_os in
12655 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12656 *) lt_awk_arg='/^libraries:/' ;;
12657 esac
12658 case $host_os in
12659 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12660 *) lt_sed_strip_eq='s|=/|/|g' ;;
12661 esac
12662 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12663 case $lt_search_path_spec in
12664 *\;*)
12665 # if the path contains ";" then we assume it to be the separator
12666 # otherwise default to the standard path separator (i.e. ":") - it is
12667 # assumed that no part of a normal pathname contains ";" but that should
12668 # okay in the real world where ";" in dirpaths is itself problematic.
12669 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12670 ;;
12671 *)
12672 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12673 ;;
12674 esac
12675 # Ok, now we have the path, separated by spaces, we can step through it
12676 # and add multilib dir if necessary...
12677 lt_tmp_lt_search_path_spec=
12678 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12679 # ...but if some path component already ends with the multilib dir we assume
12680 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12681 case "$lt_multi_os_dir; $lt_search_path_spec " in
12682 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12683 lt_multi_os_dir=
12684 ;;
12685 esac
12686 for lt_sys_path in $lt_search_path_spec; do
12687 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12688 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12689 elif test -n "$lt_multi_os_dir"; then
12690 test -d "$lt_sys_path" && \
12691 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12692 fi
12693 done
12694 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12695 BEGIN {RS = " "; FS = "/|\n";} {
12696 lt_foo = "";
12697 lt_count = 0;
12698 for (lt_i = NF; lt_i > 0; lt_i--) {
12699 if ($lt_i != "" && $lt_i != ".") {
12700 if ($lt_i == "..") {
12701 lt_count++;
12702 } else {
12703 if (lt_count == 0) {
12704 lt_foo = "/" $lt_i lt_foo;
12705 } else {
12706 lt_count--;
12707 }
12708 }
12709 }
12710 }
12711 if (lt_foo != "") { lt_freq[lt_foo]++; }
12712 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12713 }'`
12714 # AWK program above erroneously prepends '/' to C:/dos/paths
12715 # for these hosts.
12716 case $host_os in
12717 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12718 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12719 esac
12720 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12721 else
12722 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12723 fi
12724 library_names_spec=
12725 libname_spec='lib$name'
12726 soname_spec=
12727 shrext_cmds=.so
12728 postinstall_cmds=
12729 postuninstall_cmds=
12730 finish_cmds=
12731 finish_eval=
12732 shlibpath_var=
12733 shlibpath_overrides_runpath=unknown
12734 version_type=none
12735 dynamic_linker="$host_os ld.so"
12736 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12737 need_lib_prefix=unknown
12738 hardcode_into_libs=no
12739
12740 # when you set need_version to no, make sure it does not cause -set_version
12741 # flags to be left without arguments
12742 need_version=unknown
12743
12744
12745
12746 case $host_os in
12747 aix3*)
12748 version_type=linux # correct to gnu/linux during the next big refactor
12749 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12750 shlibpath_var=LIBPATH
12751
12752 # AIX 3 has no versioning support, so we append a major version to the name.
12753 soname_spec='$libname$release$shared_ext$major'
12754 ;;
12755
12756 aix[4-9]*)
12757 version_type=linux # correct to gnu/linux during the next big refactor
12758 need_lib_prefix=no
12759 need_version=no
12760 hardcode_into_libs=yes
12761 if test ia64 = "$host_cpu"; then
12762 # AIX 5 supports IA64
12763 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12764 shlibpath_var=LD_LIBRARY_PATH
12765 else
12766 # With GCC up to 2.95.x, collect2 would create an import file
12767 # for dependence libraries. The import file would start with
12768 # the line '#! .'. This would cause the generated library to
12769 # depend on '.', always an invalid library. This was fixed in
12770 # development snapshots of GCC prior to 3.0.
12771 case $host_os in
12772 aix4 | aix4.[01] | aix4.[01].*)
12773 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12774 echo ' yes '
12775 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12776 :
12777 else
12778 can_build_shared=no
12779 fi
12780 ;;
12781 esac
12782 # Using Import Files as archive members, it is possible to support
12783 # filename-based versioning of shared library archives on AIX. While
12784 # this would work for both with and without runtime linking, it will
12785 # prevent static linking of such archives. So we do filename-based
12786 # shared library versioning with .so extension only, which is used
12787 # when both runtime linking and shared linking is enabled.
12788 # Unfortunately, runtime linking may impact performance, so we do
12789 # not want this to be the default eventually. Also, we use the
12790 # versioned .so libs for executables only if there is the -brtl
12791 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
12792 # To allow for filename-based versioning support, we need to create
12793 # libNAME.so.V as an archive file, containing:
12794 # *) an Import File, referring to the versioned filename of the
12795 # archive as well as the shared archive member, telling the
12796 # bitwidth (32 or 64) of that shared object, and providing the
12797 # list of exported symbols of that shared object, eventually
12798 # decorated with the 'weak' keyword
12799 # *) the shared object with the F_LOADONLY flag set, to really avoid
12800 # it being seen by the linker.
12801 # At run time we better use the real file rather than another symlink,
12802 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12803
12804 case $with_aix_soname,$aix_use_runtimelinking in
12805 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12806 # soname into executable. Probably we can add versioning support to
12807 # collect2, so additional links can be useful in future.
12808 aix,yes) # traditional libtool
12809 dynamic_linker='AIX unversionable lib.so'
12810 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12811 # instead of lib<name>.a to let people know that these are not
12812 # typical AIX shared libraries.
12813 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12814 ;;
12815 aix,no) # traditional AIX only
12816 dynamic_linker='AIX lib.a(lib.so.V)'
12817 # We preserve .a as extension for shared libraries through AIX4.2
12818 # and later when we are not doing run time linking.
12819 library_names_spec='$libname$release.a $libname.a'
12820 soname_spec='$libname$release$shared_ext$major'
12821 ;;
12822 svr4,*) # full svr4 only
12823 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12824 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12825 # We do not specify a path in Import Files, so LIBPATH fires.
12826 shlibpath_overrides_runpath=yes
12827 ;;
12828 *,yes) # both, prefer svr4
12829 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12830 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12831 # unpreferred sharedlib libNAME.a needs extra handling
12832 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
12833 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
12834 # We do not specify a path in Import Files, so LIBPATH fires.
12835 shlibpath_overrides_runpath=yes
12836 ;;
12837 *,no) # both, prefer aix
12838 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12839 library_names_spec='$libname$release.a $libname.a'
12840 soname_spec='$libname$release$shared_ext$major'
12841 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12842 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
12843 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
12844 ;;
12845 esac
12846 shlibpath_var=LIBPATH
12847 fi
12848 ;;
12849
12850 amigaos*)
12851 case $host_cpu in
12852 powerpc)
12853 # Since July 2007 AmigaOS4 officially supports .so libraries.
12854 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12855 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12856 ;;
12857 m68k)
12858 library_names_spec='$libname.ixlibrary $libname.a'
12859 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12860 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
12861 ;;
12862 esac
12863 ;;
12864
12865 beos*)
12866 library_names_spec='$libname$shared_ext'
12867 dynamic_linker="$host_os ld.so"
12868 shlibpath_var=LIBRARY_PATH
12869 ;;
12870
12871 bsdi[45]*)
12872 version_type=linux # correct to gnu/linux during the next big refactor
12873 need_version=no
12874 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12875 soname_spec='$libname$release$shared_ext$major'
12876 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12877 shlibpath_var=LD_LIBRARY_PATH
12878 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12879 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12880 # the default ld.so.conf also contains /usr/contrib/lib and
12881 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12882 # libtool to hard-code these into programs
12883 ;;
12884
12885 cygwin* | mingw* | windows* | pw32* | cegcc*)
12886 version_type=windows
12887 shrext_cmds=.dll
12888 need_version=no
12889 need_lib_prefix=no
12890
12891 case $GCC,$cc_basename in
12892 yes,*)
12893 # gcc
12894 library_names_spec='$libname.dll.a'
12895 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12896 # If user builds GCC with multilib enabled,
12897 # it should just install on $(libdir)
12898 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
12899 if test xyes = x"$multilib"; then
12900 postinstall_cmds='base_file=`basename \$file`~
12901 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12902 dldir=$destdir/`dirname \$dlpath`~
12903 $install_prog $dir/$dlname $destdir/$dlname~
12904 chmod a+x $destdir/$dlname~
12905 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12906 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
12907 fi'
12908 else
12909 postinstall_cmds='base_file=`basename \$file`~
12910 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12911 dldir=$destdir/`dirname \$dlpath`~
12912 test -d \$dldir || mkdir -p \$dldir~
12913 $install_prog $dir/$dlname \$dldir/$dlname~
12914 chmod a+x \$dldir/$dlname~
12915 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12916 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12917 fi'
12918 fi
12919 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12920 dlpath=$dir/\$dldll~
12921 $RM \$dlpath'
12922 shlibpath_overrides_runpath=yes
12923
12924 case $host_os in
12925 cygwin*)
12926 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12927 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12928
12929 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12930 ;;
12931 mingw* | windows* | cegcc*)
12932 # MinGW DLLs use traditional 'lib' prefix
12933 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12934 ;;
12935 pw32*)
12936 # pw32 DLLs use 'pw' prefix rather than 'lib'
12937 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12938 ;;
12939 esac
12940 dynamic_linker='Win32 ld.exe'
12941 ;;
12942
12943 *,cl* | *,icl*)
12944 # Native MSVC or ICC
12945 libname_spec='$name'
12946 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12947 library_names_spec='$libname.dll.lib'
12948
12949 case $build_os in
12950 mingw* | windows*)
12951 sys_lib_search_path_spec=
12952 lt_save_ifs=$IFS
12953 IFS=';'
12954 for lt_path in $LIB
12955 do
12956 IFS=$lt_save_ifs
12957 # Let DOS variable expansion print the short 8.3 style file name.
12958 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12959 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12960 done
12961 IFS=$lt_save_ifs
12962 # Convert to MSYS style.
12963 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12964 ;;
12965 cygwin*)
12966 # Convert to unix form, then to dos form, then back to unix form
12967 # but this time dos style (no spaces!) so that the unix form looks
12968 # like /cygdrive/c/PROGRA~1:/cygdr...
12969 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12970 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12971 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12972 ;;
12973 *)
12974 sys_lib_search_path_spec=$LIB
12975 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12976 # It is most probably a Windows format PATH.
12977 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12978 else
12979 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12980 fi
12981 # FIXME: find the short name or the path components, as spaces are
12982 # common. (e.g. "Program Files" -> "PROGRA~1")
12983 ;;
12984 esac
12985
12986 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12987 postinstall_cmds='base_file=`basename \$file`~
12988 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12989 dldir=$destdir/`dirname \$dlpath`~
12990 test -d \$dldir || mkdir -p \$dldir~
12991 $install_prog $dir/$dlname \$dldir/$dlname'
12992 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12993 dlpath=$dir/\$dldll~
12994 $RM \$dlpath'
12995 shlibpath_overrides_runpath=yes
12996 dynamic_linker='Win32 link.exe'
12997 ;;
12998
12999 *)
13000 # Assume MSVC and ICC wrapper
13001 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13002 dynamic_linker='Win32 ld.exe'
13003 ;;
13004 esac
13005 # FIXME: first we should search . and the directory the executable is in
13006 shlibpath_var=PATH
13007 ;;
13008
13009 darwin* | rhapsody*)
13010 dynamic_linker="$host_os dyld"
13011 version_type=darwin
13012 need_lib_prefix=no
13013 need_version=no
13014 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13015 soname_spec='$libname$release$major$shared_ext'
13016 shlibpath_overrides_runpath=yes
13017 shlibpath_var=DYLD_LIBRARY_PATH
13018 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13019
13020 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13021 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13022 ;;
13023
13024 dgux*)
13025 version_type=linux # correct to gnu/linux during the next big refactor
13026 need_lib_prefix=no
13027 need_version=no
13028 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13029 soname_spec='$libname$release$shared_ext$major'
13030 shlibpath_var=LD_LIBRARY_PATH
13031 ;;
13032
13033 freebsd* | dragonfly* | midnightbsd*)
13034 # DragonFly does not have aout. When/if they implement a new
13035 # versioning mechanism, adjust this.
13036 if test -x /usr/bin/objformat; then
13037 objformat=`/usr/bin/objformat`
13038 else
13039 case $host_os in
13040 freebsd[23].*) objformat=aout ;;
13041 *) objformat=elf ;;
13042 esac
13043 fi
13044 version_type=freebsd-$objformat
13045 case $version_type in
13046 freebsd-elf*)
13047 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13048 soname_spec='$libname$release$shared_ext$major'
13049 need_version=no
13050 need_lib_prefix=no
13051 ;;
13052 freebsd-*)
13053 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13054 need_version=yes
13055 ;;
13056 esac
13057 case $host_cpu in
13058 powerpc64)
13059 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
13060 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
13061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13062 /* end confdefs.h. */
13063 int test_pointer_size[sizeof (void *) - 5];
13064
13065 _ACEOF
13066 if ac_fn_c_try_compile "$LINENO"
13067 then :
13068 shlibpath_var=LD_LIBRARY_PATH
13069 else case e in #(
13070 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
13071 esac
13072 fi
13073 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13074 ;;
13075 *)
13076 shlibpath_var=LD_LIBRARY_PATH
13077 ;;
13078 esac
13079 case $host_os in
13080 freebsd2.*)
13081 shlibpath_overrides_runpath=yes
13082 ;;
13083 freebsd3.[01]* | freebsdelf3.[01]*)
13084 shlibpath_overrides_runpath=yes
13085 hardcode_into_libs=yes
13086 ;;
13087 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13088 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13089 shlibpath_overrides_runpath=no
13090 hardcode_into_libs=yes
13091 ;;
13092 *) # from 4.6 on, and DragonFly
13093 shlibpath_overrides_runpath=yes
13094 hardcode_into_libs=yes
13095 ;;
13096 esac
13097 ;;
13098
13099 haiku*)
13100 version_type=linux # correct to gnu/linux during the next big refactor
13101 need_lib_prefix=no
13102 need_version=no
13103 dynamic_linker="$host_os runtime_loader"
13104 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13105 soname_spec='$libname$release$shared_ext$major'
13106 shlibpath_var=LIBRARY_PATH
13107 shlibpath_overrides_runpath=no
13108 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
13109 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
13110 hardcode_into_libs=no
13111 ;;
13112
13113 hpux9* | hpux10* | hpux11*)
13114 # Give a soname corresponding to the major version so that dld.sl refuses to
13115 # link against other versions.
13116 version_type=sunos
13117 need_lib_prefix=no
13118 need_version=no
13119 case $host_cpu in
13120 ia64*)
13121 shrext_cmds='.so'
13122 hardcode_into_libs=yes
13123 dynamic_linker="$host_os dld.so"
13124 shlibpath_var=LD_LIBRARY_PATH
13125 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13126 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13127 soname_spec='$libname$release$shared_ext$major'
13128 if test 32 = "$HPUX_IA64_MODE"; then
13129 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13130 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13131 else
13132 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13133 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13134 fi
13135 ;;
13136 hppa*64*)
13137 shrext_cmds='.sl'
13138 hardcode_into_libs=yes
13139 dynamic_linker="$host_os dld.sl"
13140 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13141 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13142 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13143 soname_spec='$libname$release$shared_ext$major'
13144 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13145 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13146 ;;
13147 *)
13148 shrext_cmds='.sl'
13149 dynamic_linker="$host_os dld.sl"
13150 shlibpath_var=SHLIB_PATH
13151 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13152 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13153 soname_spec='$libname$release$shared_ext$major'
13154 ;;
13155 esac
13156 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13157 postinstall_cmds='chmod 555 $lib'
13158 # or fails outright, so override atomically:
13159 install_override_mode=555
13160 ;;
13161
13162 interix[3-9]*)
13163 version_type=linux # correct to gnu/linux during the next big refactor
13164 need_lib_prefix=no
13165 need_version=no
13166 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13167 soname_spec='$libname$release$shared_ext$major'
13168 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13169 shlibpath_var=LD_LIBRARY_PATH
13170 shlibpath_overrides_runpath=no
13171 hardcode_into_libs=yes
13172 ;;
13173
13174 irix5* | irix6* | nonstopux*)
13175 case $host_os in
13176 nonstopux*) version_type=nonstopux ;;
13177 *)
13178 if test yes = "$lt_cv_prog_gnu_ld"; then
13179 version_type=linux # correct to gnu/linux during the next big refactor
13180 else
13181 version_type=irix
13182 fi ;;
13183 esac
13184 need_lib_prefix=no
13185 need_version=no
13186 soname_spec='$libname$release$shared_ext$major'
13187 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13188 case $host_os in
13189 irix5* | nonstopux*)
13190 libsuff= shlibsuff=
13191 ;;
13192 *)
13193 case $LD in # libtool.m4 will add one of these switches to LD
13194 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13195 libsuff= shlibsuff= libmagic=32-bit;;
13196 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13197 libsuff=32 shlibsuff=N32 libmagic=N32;;
13198 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13199 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13200 *) libsuff= shlibsuff= libmagic=never-match;;
13201 esac
13202 ;;
13203 esac
13204 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13205 shlibpath_overrides_runpath=no
13206 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13207 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13208 hardcode_into_libs=yes
13209 ;;
13210
13211 # No shared lib support for Linux oldld, aout, or coff.
13212 linux*oldld* | linux*aout* | linux*coff*)
13213 dynamic_linker=no
13214 ;;
13215
13216 linux*android*)
13217 version_type=none # Android doesn't support versioned libraries.
13218 need_lib_prefix=no
13219 need_version=no
13220 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
13221 soname_spec='$libname$release$shared_ext'
13222 finish_cmds=
13223 shlibpath_var=LD_LIBRARY_PATH
13224 shlibpath_overrides_runpath=yes
13225
13226 # This implies no fast_install, which is unacceptable.
13227 # Some rework will be needed to allow for fast_install
13228 # before this can be enabled.
13229 hardcode_into_libs=yes
13230
13231 dynamic_linker='Android linker'
13232 # -rpath works at least for libraries that are not overridden by
13233 # libraries installed in system locations.
13234 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13235 ;;
13236
13237 # This must be glibc/ELF.
13238 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13239 version_type=linux # correct to gnu/linux during the next big refactor
13240 need_lib_prefix=no
13241 need_version=no
13242 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13243 soname_spec='$libname$release$shared_ext$major'
13244 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13245 shlibpath_var=LD_LIBRARY_PATH
13246 shlibpath_overrides_runpath=no
13247
13248 # Some binutils ld are patched to set DT_RUNPATH
13249 if test ${lt_cv_shlibpath_overrides_runpath+y}
13250 then :
13251 printf %s "(cached) " >&6
13252 else case e in #(
13253 e) lt_cv_shlibpath_overrides_runpath=no
13254 save_LDFLAGS=$LDFLAGS
13255 save_libdir=$libdir
13256 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13257 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13259 /* end confdefs.h. */
13260
13261 int
13262 main (void)
13263 {
13264
13265 ;
13266 return 0;
13267 }
13268 _ACEOF
13269 if ac_fn_c_try_link "$LINENO"
13270 then :
13271 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
13272 then :
13273 lt_cv_shlibpath_overrides_runpath=yes
13274 fi
13275 fi
13276 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13277 conftest$ac_exeext conftest.$ac_ext
13278 LDFLAGS=$save_LDFLAGS
13279 libdir=$save_libdir
13280 ;;
13281 esac
13282 fi
13283
13284 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13285
13286 # This implies no fast_install, which is unacceptable.
13287 # Some rework will be needed to allow for fast_install
13288 # before this can be enabled.
13289 hardcode_into_libs=yes
13290
13291 # Ideally, we could use ldconfig to report *all* directories which are
13292 # searched for libraries, however this is still not possible. Aside from not
13293 # being certain /sbin/ldconfig is available, command
13294 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13295 # even though it is searched at run-time. Try to do the best guess by
13296 # appending ld.so.conf contents (and includes) to the search path.
13297 if test -f /etc/ld.so.conf; then
13298 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;s/"//g;/^$/d' | tr '\n' ' '`
13299 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13300 fi
13301
13302 # We used to test for /lib/ld.so.1 and disable shared libraries on
13303 # powerpc, because MkLinux only supported shared libraries with the
13304 # GNU dynamic linker. Since this was broken with cross compilers,
13305 # most powerpc-linux boxes support dynamic linking these days and
13306 # people can always --disable-shared, the test was removed, and we
13307 # assume the GNU/Linux dynamic linker is in use.
13308 dynamic_linker='GNU/Linux ld.so'
13309 ;;
13310
13311 netbsdelf*-gnu)
13312 version_type=linux
13313 need_lib_prefix=no
13314 need_version=no
13315 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13316 soname_spec='$libname$release$shared_ext$major'
13317 shlibpath_var=LD_LIBRARY_PATH
13318 shlibpath_overrides_runpath=no
13319 hardcode_into_libs=yes
13320 dynamic_linker='NetBSD ld.elf_so'
13321 ;;
13322
13323 netbsdelf*-gnu)
13324 version_type=linux
13325 need_lib_prefix=no
13326 need_version=no
13327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13328 soname_spec='${libname}${release}${shared_ext}$major'
13329 shlibpath_var=LD_LIBRARY_PATH
13330 shlibpath_overrides_runpath=no
13331 hardcode_into_libs=yes
13332 dynamic_linker='NetBSD ld.elf_so'
13333 ;;
13334
13335 netbsd*)
13336 version_type=sunos
13337 need_lib_prefix=no
13338 need_version=no
13339 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13340 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13341 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13342 dynamic_linker='NetBSD (a.out) ld.so'
13343 else
13344 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13345 soname_spec='$libname$release$shared_ext$major'
13346 dynamic_linker='NetBSD ld.elf_so'
13347 fi
13348 shlibpath_var=LD_LIBRARY_PATH
13349 shlibpath_overrides_runpath=yes
13350 hardcode_into_libs=yes
13351 ;;
13352
13353 *-mlibc)
13354 version_type=linux # correct to gnu/linux during the next big refactor
13355 need_lib_prefix=no
13356 need_version=no
13357 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13358 soname_spec='$libname$release$shared_ext$major'
13359 dynamic_linker='mlibc ld.so'
13360 shlibpath_var=LD_LIBRARY_PATH
13361 shlibpath_overrides_runpath=no
13362 hardcode_into_libs=yes
13363 ;;
13364
13365 newsos6)
13366 version_type=linux # correct to gnu/linux during the next big refactor
13367 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13368 shlibpath_var=LD_LIBRARY_PATH
13369 shlibpath_overrides_runpath=yes
13370 ;;
13371
13372 *nto* | *qnx*)
13373 version_type=qnx
13374 need_lib_prefix=no
13375 need_version=no
13376 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13377 soname_spec='$libname$release$shared_ext$major'
13378 shlibpath_var=LD_LIBRARY_PATH
13379 shlibpath_overrides_runpath=no
13380 hardcode_into_libs=yes
13381 dynamic_linker='ldqnx.so'
13382 ;;
13383
13384 openbsd*)
13385 version_type=sunos
13386 sys_lib_dlsearch_path_spec=/usr/lib
13387 need_lib_prefix=no
13388 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13389 need_version=no
13390 else
13391 need_version=yes
13392 fi
13393 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13394 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13395 shlibpath_var=LD_LIBRARY_PATH
13396 shlibpath_overrides_runpath=yes
13397 ;;
13398
13399 os2*)
13400 libname_spec='$name'
13401 version_type=windows
13402 shrext_cmds=.dll
13403 need_version=no
13404 need_lib_prefix=no
13405 # OS/2 can only load a DLL with a base name of 8 characters or less.
13406 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13407 v=$($ECHO $release$versuffix | tr -d .-);
13408 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13409 $ECHO $n$v`$shared_ext'
13410 library_names_spec='${libname}_dll.$libext'
13411 dynamic_linker='OS/2 ld.exe'
13412 shlibpath_var=BEGINLIBPATH
13413 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13414 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13415 postinstall_cmds='base_file=`basename \$file`~
13416 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13417 dldir=$destdir/`dirname \$dlpath`~
13418 test -d \$dldir || mkdir -p \$dldir~
13419 $install_prog $dir/$dlname \$dldir/$dlname~
13420 chmod a+x \$dldir/$dlname~
13421 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13422 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13423 fi'
13424 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13425 dlpath=$dir/\$dldll~
13426 $RM \$dlpath'
13427 ;;
13428
13429 osf3* | osf4* | osf5*)
13430 version_type=osf
13431 need_lib_prefix=no
13432 need_version=no
13433 soname_spec='$libname$release$shared_ext$major'
13434 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13435 shlibpath_var=LD_LIBRARY_PATH
13436 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13437 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13438 ;;
13439
13440 rdos*)
13441 dynamic_linker=no
13442 ;;
13443
13444 serenity*)
13445 version_type=linux # correct to gnu/linux during the next big refactor
13446 need_lib_prefix=no
13447 need_version=no
13448 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13449 soname_spec='$libname$release$shared_ext$major'
13450 shlibpath_var=LD_LIBRARY_PATH
13451 shlibpath_overrides_runpath=no
13452 dynamic_linker='SerenityOS LibELF'
13453 ;;
13454
13455 solaris*)
13456 version_type=linux # correct to gnu/linux during the next big refactor
13457 need_lib_prefix=no
13458 need_version=no
13459 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13460 soname_spec='$libname$release$shared_ext$major'
13461 shlibpath_var=LD_LIBRARY_PATH
13462 shlibpath_overrides_runpath=yes
13463 hardcode_into_libs=yes
13464 # ldd complains unless libraries are executable
13465 postinstall_cmds='chmod +x $lib'
13466 ;;
13467
13468 sunos4*)
13469 version_type=sunos
13470 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13471 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13472 shlibpath_var=LD_LIBRARY_PATH
13473 shlibpath_overrides_runpath=yes
13474 if test yes = "$with_gnu_ld"; then
13475 need_lib_prefix=no
13476 fi
13477 need_version=yes
13478 ;;
13479
13480 sysv4 | sysv4.3*)
13481 version_type=linux # correct to gnu/linux during the next big refactor
13482 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13483 soname_spec='$libname$release$shared_ext$major'
13484 shlibpath_var=LD_LIBRARY_PATH
13485 case $host_vendor in
13486 sni)
13487 shlibpath_overrides_runpath=no
13488 need_lib_prefix=no
13489 runpath_var=LD_RUN_PATH
13490 ;;
13491 siemens)
13492 need_lib_prefix=no
13493 ;;
13494 motorola)
13495 need_lib_prefix=no
13496 need_version=no
13497 shlibpath_overrides_runpath=no
13498 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13499 ;;
13500 esac
13501 ;;
13502
13503 sysv4*MP*)
13504 if test -d /usr/nec; then
13505 version_type=linux # correct to gnu/linux during the next big refactor
13506 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13507 soname_spec='$libname$shared_ext.$major'
13508 shlibpath_var=LD_LIBRARY_PATH
13509 fi
13510 ;;
13511
13512 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13513 version_type=sco
13514 need_lib_prefix=no
13515 need_version=no
13516 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13517 soname_spec='$libname$release$shared_ext$major'
13518 shlibpath_var=LD_LIBRARY_PATH
13519 shlibpath_overrides_runpath=yes
13520 hardcode_into_libs=yes
13521 if test yes = "$with_gnu_ld"; then
13522 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13523 else
13524 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13525 case $host_os in
13526 sco3.2v5*)
13527 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13528 ;;
13529 esac
13530 fi
13531 sys_lib_dlsearch_path_spec='/usr/lib'
13532 ;;
13533
13534 tpf*)
13535 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13536 version_type=linux # correct to gnu/linux during the next big refactor
13537 need_lib_prefix=no
13538 need_version=no
13539 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13540 shlibpath_var=LD_LIBRARY_PATH
13541 shlibpath_overrides_runpath=no
13542 hardcode_into_libs=yes
13543 ;;
13544
13545 uts4*)
13546 version_type=linux # correct to gnu/linux during the next big refactor
13547 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13548 soname_spec='$libname$release$shared_ext$major'
13549 shlibpath_var=LD_LIBRARY_PATH
13550 ;;
13551
13552 emscripten*)
13553 version_type=none
13554 need_lib_prefix=no
13555 need_version=no
13556 library_names_spec='$libname$release$shared_ext'
13557 soname_spec='$libname$release$shared_ext'
13558 finish_cmds=
13559 dynamic_linker="Emscripten linker"
13560 lt_prog_compiler_wl=
13561 lt_prog_compiler_pic=
13562 lt_prog_compiler_static=
13563
13564
13565 if test yes = "$GCC"; then
13566 lt_prog_compiler_wl='-Wl,'
13567 lt_prog_compiler_static='-static'
13568
13569 case $host_os in
13570 aix*)
13571 # All AIX code is PIC.
13572 if test ia64 = "$host_cpu"; then
13573 # AIX 5 now supports IA64 processor
13574 lt_prog_compiler_static='-Bstatic'
13575 fi
13576 lt_prog_compiler_pic='-fPIC'
13577 ;;
13578
13579 amigaos*)
13580 case $host_cpu in
13581 powerpc)
13582 # see comment about AmigaOS4 .so support
13583 lt_prog_compiler_pic='-fPIC'
13584 ;;
13585 m68k)
13586 # FIXME: we need at least 68020 code to build shared libraries, but
13587 # adding the '-m68020' flag to GCC prevents building anything better,
13588 # like '-m68040'.
13589 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13590 ;;
13591 esac
13592 ;;
13593
13594 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13595 # PIC is the default for these OSes.
13596 ;;
13597
13598 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13599 # This hack is so that the source file can tell whether it is being
13600 # built for inclusion in a dll (and should export symbols for example).
13601 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13602 # (--disable-auto-import) libraries
13603 lt_prog_compiler_pic='-DDLL_EXPORT'
13604 case $host_os in
13605 os2*)
13606 lt_prog_compiler_static='$wl-static'
13607 ;;
13608 esac
13609 ;;
13610
13611 darwin* | rhapsody*)
13612 # PIC is the default on this platform
13613 # Common symbols not allowed in MH_DYLIB files
13614 lt_prog_compiler_pic='-fno-common'
13615 ;;
13616
13617 haiku*)
13618 # PIC is the default for Haiku.
13619 # The "-static" flag exists, but is broken.
13620 lt_prog_compiler_static=
13621 ;;
13622
13623 hpux*)
13624 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13625 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13626 # sets the default TLS model and affects inlining.
13627 case $host_cpu in
13628 hppa*64*)
13629 # +Z the default
13630 ;;
13631 *)
13632 lt_prog_compiler_pic='-fPIC'
13633 ;;
13634 esac
13635 ;;
13636
13637 interix[3-9]*)
13638 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13639 # Instead, we relocate shared libraries at runtime.
13640 ;;
13641
13642 msdosdjgpp*)
13643 # Just because we use GCC doesn't mean we suddenly get shared libraries
13644 # on systems that don't support them.
13645 lt_prog_compiler_can_build_shared=no
13646 enable_shared=no
13647 ;;
13648
13649 *nto* | *qnx*)
13650 # QNX uses GNU C++, but need to define -shared option too, otherwise
13651 # it will coredump.
13652 lt_prog_compiler_pic='-fPIC -shared'
13653 ;;
13654
13655 sysv4*MP*)
13656 if test -d /usr/nec; then
13657 lt_prog_compiler_pic=-Kconform_pic
13658 fi
13659 ;;
13660
13661 *)
13662 lt_prog_compiler_pic='-fPIC'
13663 ;;
13664 esac
13665
13666 case $cc_basename in
13667 nvcc*) # Cuda Compiler Driver 2.2
13668 lt_prog_compiler_wl='-Xlinker '
13669 if test -n "$lt_prog_compiler_pic"; then
13670 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13671 fi
13672 ;;
13673 esac
13674 else
13675 # PORTME Check for flag to pass linker flags through the system compiler.
13676 case $host_os in
13677 aix*)
13678 lt_prog_compiler_wl='-Wl,'
13679 if test ia64 = "$host_cpu"; then
13680 # AIX 5 now supports IA64 processor
13681 lt_prog_compiler_static='-Bstatic'
13682 else
13683 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13684 fi
13685 ;;
13686
13687 darwin* | rhapsody*)
13688 # PIC is the default on this platform
13689 # Common symbols not allowed in MH_DYLIB files
13690 lt_prog_compiler_pic='-fno-common'
13691 case $cc_basename in
13692 nagfor*)
13693 # NAG Fortran compiler
13694 lt_prog_compiler_wl='-Wl,-Wl,,'
13695 lt_prog_compiler_pic='-PIC'
13696 lt_prog_compiler_static='-Bstatic'
13697 ;;
13698 esac
13699 ;;
13700
13701 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13702 # This hack is so that the source file can tell whether it is being
13703 # built for inclusion in a dll (and should export symbols for example).
13704 lt_prog_compiler_pic='-DDLL_EXPORT'
13705 case $host_os in
13706 os2*)
13707 lt_prog_compiler_static='$wl-static'
13708 ;;
13709 esac
13710 ;;
13711
13712 hpux9* | hpux10* | hpux11*)
13713 lt_prog_compiler_wl='-Wl,'
13714 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13715 # not for PA HP-UX.
13716 case $host_cpu in
13717 hppa*64*|ia64*)
13718 # +Z the default
13719 ;;
13720 *)
13721 lt_prog_compiler_pic='+Z'
13722 ;;
13723 esac
13724 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13725 lt_prog_compiler_static='$wl-a ${wl}archive'
13726 ;;
13727
13728 irix5* | irix6* | nonstopux*)
13729 lt_prog_compiler_wl='-Wl,'
13730 # PIC (with -KPIC) is the default.
13731 lt_prog_compiler_static='-non_shared'
13732 ;;
13733
13734 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13735 case $cc_basename in
13736 # old Intel for x86_64, which still supported -KPIC.
13737 ecc*)
13738 lt_prog_compiler_wl='-Wl,'
13739 lt_prog_compiler_pic='-KPIC'
13740 lt_prog_compiler_static='-static'
13741 ;;
13742 *flang* | ftn | f18* | f95*)
13743 # Flang compiler.
13744 lt_prog_compiler_wl='-Wl,'
13745 lt_prog_compiler_pic='-fPIC'
13746 lt_prog_compiler_static='-static'
13747 ;;
13748 # flang / f18. f95 an alias for gfortran or flang on Debian
13749 flang* | f18* | f95*)
13750 lt_prog_compiler_wl='-Wl,'
13751 lt_prog_compiler_pic='-fPIC'
13752 lt_prog_compiler_static='-static'
13753 ;;
13754 # icc used to be incompatible with GCC.
13755 # ICC 10 doesn't accept -KPIC any more.
13756 icc* | ifort*)
13757 lt_prog_compiler_wl='-Wl,'
13758 lt_prog_compiler_pic='-fPIC'
13759 lt_prog_compiler_static='-static'
13760 ;;
13761 # Lahey Fortran 8.1.
13762 lf95*)
13763 lt_prog_compiler_wl='-Wl,'
13764 lt_prog_compiler_pic='--shared'
13765 lt_prog_compiler_static='--static'
13766 ;;
13767 nagfor*)
13768 # NAG Fortran compiler
13769 lt_prog_compiler_wl='-Wl,-Wl,,'
13770 lt_prog_compiler_pic='-PIC'
13771 lt_prog_compiler_static='-Bstatic'
13772 ;;
13773 tcc*)
13774 # Fabrice Bellard et al's Tiny C Compiler
13775 lt_prog_compiler_wl='-Wl,'
13776 lt_prog_compiler_pic='-fPIC'
13777 lt_prog_compiler_static='-static'
13778 ;;
13779 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13780 # Portland Group compilers (*not* the Pentium gcc compiler,
13781 # which looks to be a dead project)
13782 lt_prog_compiler_wl='-Wl,'
13783 lt_prog_compiler_pic='-fpic'
13784 lt_prog_compiler_static='-Bstatic'
13785 ;;
13786 ccc*)
13787 lt_prog_compiler_wl='-Wl,'
13788 # All Alpha code is PIC.
13789 lt_prog_compiler_static='-non_shared'
13790 ;;
13791 xl* | bgxl* | bgf* | mpixl*)
13792 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13793 lt_prog_compiler_wl='-Wl,'
13794 lt_prog_compiler_pic='-qpic'
13795 lt_prog_compiler_static='-qstaticlink'
13796 ;;
13797 *)
13798 case `$CC -V 2>&1 | $SED 5q` in
13799 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13800 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13801 lt_prog_compiler_pic='-KPIC'
13802 lt_prog_compiler_static='-Bstatic'
13803 lt_prog_compiler_wl=''
13804 ;;
13805 *Sun\ F* | *Sun*Fortran*)
13806 lt_prog_compiler_pic='-KPIC'
13807 lt_prog_compiler_static='-Bstatic'
13808 lt_prog_compiler_wl='-Qoption ld '
13809 ;;
13810 *Sun\ C*)
13811 # Sun C 5.9
13812 lt_prog_compiler_pic='-KPIC'
13813 lt_prog_compiler_static='-Bstatic'
13814 lt_prog_compiler_wl='-Wl,'
13815 ;;
13816 *Intel*\ [CF]*Compiler*)
13817 lt_prog_compiler_wl='-Wl,'
13818 lt_prog_compiler_pic='-fPIC'
13819 lt_prog_compiler_static='-static'
13820 ;;
13821 *Portland\ Group*)
13822 lt_prog_compiler_wl='-Wl,'
13823 lt_prog_compiler_pic='-fpic'
13824 lt_prog_compiler_static='-Bstatic'
13825 ;;
13826 esac
13827 ;;
13828 esac
13829 ;;
13830
13831 newsos6)
13832 lt_prog_compiler_pic='-KPIC'
13833 lt_prog_compiler_static='-Bstatic'
13834 ;;
13835
13836 *-mlibc)
13837 lt_prog_compiler_wl='-Wl,'
13838 lt_prog_compiler_pic='-fPIC'
13839 lt_prog_compiler_static='-static'
13840 ;;
13841
13842 *nto* | *qnx*)
13843 # QNX uses GNU C++, but need to define -shared option too, otherwise
13844 # it will coredump.
13845 lt_prog_compiler_pic='-fPIC -shared'
13846 ;;
13847
13848 osf3* | osf4* | osf5*)
13849 lt_prog_compiler_wl='-Wl,'
13850 # All OSF/1 code is PIC.
13851 lt_prog_compiler_static='-non_shared'
13852 ;;
13853
13854 rdos*)
13855 lt_prog_compiler_static='-non_shared'
13856 ;;
13857
13858 serenity*)
13859 ;;
13860
13861 solaris*)
13862 lt_prog_compiler_pic='-KPIC'
13863 lt_prog_compiler_static='-Bstatic'
13864 case $cc_basename in
13865 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13866 lt_prog_compiler_wl='-Qoption ld ';;
13867 *)
13868 lt_prog_compiler_wl='-Wl,';;
13869 esac
13870 ;;
13871
13872 sunos4*)
13873 lt_prog_compiler_wl='-Qoption ld '
13874 lt_prog_compiler_pic='-PIC'
13875 lt_prog_compiler_static='-Bstatic'
13876 ;;
13877
13878 sysv4 | sysv4.2uw2* | sysv4.3*)
13879 lt_prog_compiler_wl='-Wl,'
13880 lt_prog_compiler_pic='-KPIC'
13881 lt_prog_compiler_static='-Bstatic'
13882 ;;
13883
13884 sysv4*MP*)
13885 if test -d /usr/nec; then
13886 lt_prog_compiler_pic='-Kconform_pic'
13887 lt_prog_compiler_static='-Bstatic'
13888 fi
13889 ;;
13890
13891 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13892 lt_prog_compiler_wl='-Wl,'
13893 lt_prog_compiler_pic='-KPIC'
13894 lt_prog_compiler_static='-Bstatic'
13895 ;;
13896
13897 unicos*)
13898 lt_prog_compiler_wl='-Wl,'
13899 lt_prog_compiler_can_build_shared=no
13900 ;;
13901
13902 uts4*)
13903 lt_prog_compiler_pic='-pic'
13904 lt_prog_compiler_static='-Bstatic'
13905 ;;
13906
13907 *)
13908 lt_prog_compiler_can_build_shared=no
13909 ;;
13910 esac
13911 fi
13912
13913 case $host_os in
13914 # For platforms that do not support PIC, -DPIC is meaningless:
13915 *djgpp*)
13916 lt_prog_compiler_pic=
13917 ;;
13918 *)
13919 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13920 ;;
13921 esac
13922
13923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13924 printf %s "checking for $compiler option to produce PIC... " >&6; }
13925 if test ${lt_cv_prog_compiler_pic+y}
13926 then :
13927 printf %s "(cached) " >&6
13928 else case e in #(
13929 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
13930 esac
13931 fi
13932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13933 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
13934 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13935
13936 #
13937 # Check to make sure the PIC flag actually works.
13938 #
13939 if test -n "$lt_prog_compiler_pic"; then
13940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13941 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13942 if test ${lt_cv_prog_compiler_pic_works+y}
13943 then :
13944 printf %s "(cached) " >&6
13945 else case e in #(
13946 e) lt_cv_prog_compiler_pic_works=no
13947 ac_outfile=conftest.$ac_objext
13948 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13949 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
13950 # Insert the option either (1) after the last *FLAGS variable, or
13951 # (2) before a word containing "conftest.", or (3) at the end.
13952 # Note that $ac_compile itself does not contain backslashes and begins
13953 # with a dollar sign (not a hyphen), so the echo should work correctly.
13954 # The option is referenced via a variable to avoid confusing sed.
13955 lt_compile=`echo "$ac_compile" | $SED \
13956 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13957 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13958 -e 's:$: $lt_compiler_flag:'`
13959 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13960 (eval "$lt_compile" 2>conftest.err)
13961 ac_status=$?
13962 cat conftest.err >&5
13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 if (exit $ac_status) && test -s "$ac_outfile"; then
13965 # The compiler can only warn and ignore the option if not recognized
13966 # So say no if there are warnings other than the usual output.
13967 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13968 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13969 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13970 lt_cv_prog_compiler_pic_works=yes
13971 fi
13972 fi
13973 $RM conftest*
13974 ;;
13975 esac
13976 fi
13977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13978 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
13979
13980 if test yes = "$lt_cv_prog_compiler_pic_works"; then
13981 case $lt_prog_compiler_pic in
13982 "" | " "*) ;;
13983 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13984 esac
13985 else
13986 lt_prog_compiler_pic=
13987 lt_prog_compiler_can_build_shared=no
13988 fi
13989
13990 fi
13991
13992
13993
13994
13995
13996 #
13997 # Check to make sure the static flag actually works.
13998 #
13999 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14001 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14002 if test ${lt_cv_prog_compiler_static_works+y}
14003 then :
14004 printf %s "(cached) " >&6
14005 else case e in #(
14006 e) lt_cv_prog_compiler_static_works=no
14007 save_LDFLAGS=$LDFLAGS
14008 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14009 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14010 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14011 # The linker can only warn and ignore the option if not recognized
14012 # So say no if there are warnings
14013 if test -s conftest.err; then
14014 # Append any errors to the config.log.
14015 cat conftest.err 1>&5
14016 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14017 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14018 if diff conftest.exp conftest.er2 >/dev/null; then
14019 lt_cv_prog_compiler_static_works=yes
14020 fi
14021 else
14022 lt_cv_prog_compiler_static_works=yes
14023 fi
14024 fi
14025 $RM -r conftest*
14026 LDFLAGS=$save_LDFLAGS
14027 ;;
14028 esac
14029 fi
14030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14031 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
14032
14033 if test yes = "$lt_cv_prog_compiler_static_works"; then
14034 :
14035 else
14036 lt_prog_compiler_static=
14037 fi
14038
14039
14040
14041 ='-fPIC'
14042 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
14043 archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
14044 archive_cmds_need_lc=no
14045 no_undefined_flag=
14046 ;;
14047
14048 *)
14049 dynamic_linker=no
14050 ;;
14051 esac
14052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14053 printf "%s\n" "$dynamic_linker" >&6; }
14054 test no = "$dynamic_linker" && can_build_shared=no
14055
14056 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14057 if test yes = "$GCC"; then
14058 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14059 fi
14060
14061 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14062 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14063 fi
14064
14065 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14066 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14067 fi
14068
14069 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14070 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14071
14072 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14073 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14074
14075 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14076 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14175 printf %s "checking how to hardcode library paths into programs... " >&6; }
14176 hardcode_action=
14177 if test -n "$hardcode_libdir_flag_spec" ||
14178 test -n "$runpath_var" ||
14179 test yes = "$hardcode_automatic"; then
14180
14181 # We can hardcode non-existent directories.
14182 if test no != "$hardcode_direct" &&
14183 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14184 # have to relink, otherwise we might link with an installed library
14185 # when we should be linking with a yet-to-be-installed one
14186 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14187 test no != "$hardcode_minus_L"; then
14188 # Linking always hardcodes the temporary library directory.
14189 hardcode_action=relink
14190 else
14191 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14192 hardcode_action=immediate
14193 fi
14194 else
14195 # We cannot hardcode anything, or else we can only hardcode existing
14196 # directories.
14197 hardcode_action=unsupported
14198 fi
14199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14200 printf "%s\n" "$hardcode_action" >&6; }
14201
14202 if test relink = "$hardcode_action" ||
14203 test yes = "$inherit_rpath"; then
14204 # Fast installation is not supported
14205 enable_fast_install=no
14206 elif test yes = "$shlibpath_overrides_runpath" ||
14207 test no = "$enable_shared"; then
14208 # Fast installation is not necessary
14209 enable_fast_install=needless
14210 fi
14211
14212
14213
14214
14215
14216
14217 if test yes != "$enable_dlopen"; then
14218 enable_dlopen=unknown
14219 enable_dlopen_self=unknown
14220 enable_dlopen_self_static=unknown
14221 else
14222 lt_cv_dlopen=no
14223 lt_cv_dlopen_libs=
14224
14225 case $host_os in
14226 beos*)
14227 lt_cv_dlopen=load_add_on
14228 lt_cv_dlopen_libs=
14229 lt_cv_dlopen_self=yes
14230 ;;
14231
14232 mingw* | windows* | pw32* | cegcc*)
14233 lt_cv_dlopen=LoadLibrary
14234 lt_cv_dlopen_libs=
14235 ;;
14236
14237 cygwin*)
14238 lt_cv_dlopen=dlopen
14239 lt_cv_dlopen_libs=
14240 ;;
14241
14242 darwin*)
14243 # if libdl is installed we need to link against it
14244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14245 printf %s "checking for dlopen in -ldl... " >&6; }
14246 if test ${ac_cv_lib_dl_dlopen+y}
14247 then :
14248 printf %s "(cached) " >&6
14249 else case e in #(
14250 e) ac_check_lib_save_LIBS=$LIBS
14251 LIBS="-ldl $LIBS"
14252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14253 /* end confdefs.h. */
14254
14255 /* Override any GCC internal prototype to avoid an error.
14256 Use char because int might match the return type of a GCC
14257 builtin and then its argument prototype would still apply.
14258 The 'extern "C"' is for builds by C++ compilers;
14259 although this is not generally supported in C code supporting it here
14260 has little cost and some practical benefit (sr 110532). */
14261 #ifdef __cplusplus
14262 extern "C"
14263 #endif
14264 char dlopen (void);
14265 int
14266 main (void)
14267 {
14268 return dlopen ();
14269 ;
14270 return 0;
14271 }
14272 _ACEOF
14273 if ac_fn_c_try_link "$LINENO"
14274 then :
14275 ac_cv_lib_dl_dlopen=yes
14276 else case e in #(
14277 e) ac_cv_lib_dl_dlopen=no ;;
14278 esac
14279 fi
14280 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14281 conftest$ac_exeext conftest.$ac_ext
14282 LIBS=$ac_check_lib_save_LIBS ;;
14283 esac
14284 fi
14285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14286 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14287 if test "x$ac_cv_lib_dl_dlopen" = xyes
14288 then :
14289 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14290 else case e in #(
14291 e)
14292 lt_cv_dlopen=dyld
14293 lt_cv_dlopen_libs=
14294 lt_cv_dlopen_self=yes
14295 ;;
14296 esac
14297 fi
14298
14299 ;;
14300
14301 tpf*)
14302 # Don't try to run any link tests for TPF. We know it's impossible
14303 # because TPF is a cross-compiler, and we know how we open DSOs.
14304 lt_cv_dlopen=dlopen
14305 lt_cv_dlopen_libs=
14306 lt_cv_dlopen_self=no
14307 ;;
14308
14309 *)
14310 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14311 if test "x$ac_cv_func_shl_load" = xyes
14312 then :
14313 lt_cv_dlopen=shl_load
14314 else case e in #(
14315 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14316 printf %s "checking for shl_load in -ldld... " >&6; }
14317 if test ${ac_cv_lib_dld_shl_load+y}
14318 then :
14319 printf %s "(cached) " >&6
14320 else case e in #(
14321 e) ac_check_lib_save_LIBS=$LIBS
14322 LIBS="-ldld $LIBS"
14323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14324 /* end confdefs.h. */
14325
14326 /* Override any GCC internal prototype to avoid an error.
14327 Use char because int might match the return type of a GCC
14328 builtin and then its argument prototype would still apply.
14329 The 'extern "C"' is for builds by C++ compilers;
14330 although this is not generally supported in C code supporting it here
14331 has little cost and some practical benefit (sr 110532). */
14332 #ifdef __cplusplus
14333 extern "C"
14334 #endif
14335 char shl_load (void);
14336 int
14337 main (void)
14338 {
14339 return shl_load ();
14340 ;
14341 return 0;
14342 }
14343 _ACEOF
14344 if ac_fn_c_try_link "$LINENO"
14345 then :
14346 ac_cv_lib_dld_shl_load=yes
14347 else case e in #(
14348 e) ac_cv_lib_dld_shl_load=no ;;
14349 esac
14350 fi
14351 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14352 conftest$ac_exeext conftest.$ac_ext
14353 LIBS=$ac_check_lib_save_LIBS ;;
14354 esac
14355 fi
14356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14357 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
14358 if test "x$ac_cv_lib_dld_shl_load" = xyes
14359 then :
14360 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14361 else case e in #(
14362 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14363 if test "x$ac_cv_func_dlopen" = xyes
14364 then :
14365 lt_cv_dlopen=dlopen
14366 else case e in #(
14367 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14368 printf %s "checking for dlopen in -ldl... " >&6; }
14369 if test ${ac_cv_lib_dl_dlopen+y}
14370 then :
14371 printf %s "(cached) " >&6
14372 else case e in #(
14373 e) ac_check_lib_save_LIBS=$LIBS
14374 LIBS="-ldl $LIBS"
14375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14376 /* end confdefs.h. */
14377
14378 /* Override any GCC internal prototype to avoid an error.
14379 Use char because int might match the return type of a GCC
14380 builtin and then its argument prototype would still apply.
14381 The 'extern "C"' is for builds by C++ compilers;
14382 although this is not generally supported in C code supporting it here
14383 has little cost and some practical benefit (sr 110532). */
14384 #ifdef __cplusplus
14385 extern "C"
14386 #endif
14387 char dlopen (void);
14388 int
14389 main (void)
14390 {
14391 return dlopen ();
14392 ;
14393 return 0;
14394 }
14395 _ACEOF
14396 if ac_fn_c_try_link "$LINENO"
14397 then :
14398 ac_cv_lib_dl_dlopen=yes
14399 else case e in #(
14400 e) ac_cv_lib_dl_dlopen=no ;;
14401 esac
14402 fi
14403 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14404 conftest$ac_exeext conftest.$ac_ext
14405 LIBS=$ac_check_lib_save_LIBS ;;
14406 esac
14407 fi
14408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14409 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14410 if test "x$ac_cv_lib_dl_dlopen" = xyes
14411 then :
14412 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14413 else case e in #(
14414 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14415 printf %s "checking for dlopen in -lsvld... " >&6; }
14416 if test ${ac_cv_lib_svld_dlopen+y}
14417 then :
14418 printf %s "(cached) " >&6
14419 else case e in #(
14420 e) ac_check_lib_save_LIBS=$LIBS
14421 LIBS="-lsvld $LIBS"
14422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14423 /* end confdefs.h. */
14424
14425 /* Override any GCC internal prototype to avoid an error.
14426 Use char because int might match the return type of a GCC
14427 builtin and then its argument prototype would still apply.
14428 The 'extern "C"' is for builds by C++ compilers;
14429 although this is not generally supported in C code supporting it here
14430 has little cost and some practical benefit (sr 110532). */
14431 #ifdef __cplusplus
14432 extern "C"
14433 #endif
14434 char dlopen (void);
14435 int
14436 main (void)
14437 {
14438 return dlopen ();
14439 ;
14440 return 0;
14441 }
14442 _ACEOF
14443 if ac_fn_c_try_link "$LINENO"
14444 then :
14445 ac_cv_lib_svld_dlopen=yes
14446 else case e in #(
14447 e) ac_cv_lib_svld_dlopen=no ;;
14448 esac
14449 fi
14450 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14451 conftest$ac_exeext conftest.$ac_ext
14452 LIBS=$ac_check_lib_save_LIBS ;;
14453 esac
14454 fi
14455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14456 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
14457 if test "x$ac_cv_lib_svld_dlopen" = xyes
14458 then :
14459 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14460 else case e in #(
14461 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14462 printf %s "checking for dld_link in -ldld... " >&6; }
14463 if test ${ac_cv_lib_dld_dld_link+y}
14464 then :
14465 printf %s "(cached) " >&6
14466 else case e in #(
14467 e) ac_check_lib_save_LIBS=$LIBS
14468 LIBS="-ldld $LIBS"
14469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14470 /* end confdefs.h. */
14471
14472 /* Override any GCC internal prototype to avoid an error.
14473 Use char because int might match the return type of a GCC
14474 builtin and then its argument prototype would still apply.
14475 The 'extern "C"' is for builds by C++ compilers;
14476 although this is not generally supported in C code supporting it here
14477 has little cost and some practical benefit (sr 110532). */
14478 #ifdef __cplusplus
14479 extern "C"
14480 #endif
14481 char dld_link (void);
14482 int
14483 main (void)
14484 {
14485 return dld_link ();
14486 ;
14487 return 0;
14488 }
14489 _ACEOF
14490 if ac_fn_c_try_link "$LINENO"
14491 then :
14492 ac_cv_lib_dld_dld_link=yes
14493 else case e in #(
14494 e) ac_cv_lib_dld_dld_link=no ;;
14495 esac
14496 fi
14497 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14498 conftest$ac_exeext conftest.$ac_ext
14499 LIBS=$ac_check_lib_save_LIBS ;;
14500 esac
14501 fi
14502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14503 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
14504 if test "x$ac_cv_lib_dld_dld_link" = xyes
14505 then :
14506 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14507 fi
14508
14509 ;;
14510 esac
14511 fi
14512
14513 ;;
14514 esac
14515 fi
14516
14517 ;;
14518 esac
14519 fi
14520
14521 ;;
14522 esac
14523 fi
14524
14525 ;;
14526 esac
14527 fi
14528
14529 ;;
14530 esac
14531
14532 if test no = "$lt_cv_dlopen"; then
14533 enable_dlopen=no
14534 else
14535 enable_dlopen=yes
14536 fi
14537
14538 case $lt_cv_dlopen in
14539 dlopen)
14540 save_CPPFLAGS=$CPPFLAGS
14541 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14542
14543 save_LDFLAGS=$LDFLAGS
14544 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14545
14546 save_LIBS=$LIBS
14547 LIBS="$lt_cv_dlopen_libs $LIBS"
14548
14549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14550 printf %s "checking whether a program can dlopen itself... " >&6; }
14551 if test ${lt_cv_dlopen_self+y}
14552 then :
14553 printf %s "(cached) " >&6
14554 else case e in #(
14555 e) if test yes = "$cross_compiling"; then :
14556 lt_cv_dlopen_self=cross
14557 else
14558 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14559 lt_status=$lt_dlunknown
14560 cat > conftest.$ac_ext <<_LT_EOF
14561 #line $LINENO "configure"
14562 #include "confdefs.h"
14563
14564 #if HAVE_DLFCN_H
14565 #include <dlfcn.h>
14566 #endif
14567
14568 #include <stdio.h>
14569
14570 #ifdef RTLD_GLOBAL
14571 # define LT_DLGLOBAL RTLD_GLOBAL
14572 #else
14573 # ifdef DL_GLOBAL
14574 # define LT_DLGLOBAL DL_GLOBAL
14575 # else
14576 # define LT_DLGLOBAL 0
14577 # endif
14578 #endif
14579
14580 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14581 find out it does not work in some platform. */
14582 #ifndef LT_DLLAZY_OR_NOW
14583 # ifdef RTLD_LAZY
14584 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14585 # else
14586 # ifdef DL_LAZY
14587 # define LT_DLLAZY_OR_NOW DL_LAZY
14588 # else
14589 # ifdef RTLD_NOW
14590 # define LT_DLLAZY_OR_NOW RTLD_NOW
14591 # else
14592 # ifdef DL_NOW
14593 # define LT_DLLAZY_OR_NOW DL_NOW
14594 # else
14595 # define LT_DLLAZY_OR_NOW 0
14596 # endif
14597 # endif
14598 # endif
14599 # endif
14600 #endif
14601
14602 /* When -fvisibility=hidden is used, assume the code has been annotated
14603 correspondingly for the symbols needed. */
14604 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14605 int fnord (void) __attribute__((visibility("default")));
14606 #endif
14607
14608 int fnord (void) { return 42; }
14609 int main (void)
14610 {
14611 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14612 int status = $lt_dlunknown;
14613
14614 if (self)
14615 {
14616 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14617 else
14618 {
14619 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14620 else puts (dlerror ());
14621 }
14622 /* dlclose (self); */
14623 }
14624 else
14625 puts (dlerror ());
14626
14627 return status;
14628 }
14629 _LT_EOF
14630 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14631 (eval $ac_link) 2>&5
14632 ac_status=$?
14633 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14634 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14635 (./conftest; exit; ) >&5 2>/dev/null
14636 lt_status=$?
14637 case x$lt_status in
14638 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14639 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14640 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14641 esac
14642 else :
14643 # compilation failed
14644 lt_cv_dlopen_self=no
14645 fi
14646 fi
14647 rm -fr conftest*
14648
14649 ;;
14650 esac
14651 fi
14652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14653 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
14654
14655 if test yes = "$lt_cv_dlopen_self"; then
14656 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14658 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
14659 if test ${lt_cv_dlopen_self_static+y}
14660 then :
14661 printf %s "(cached) " >&6
14662 else case e in #(
14663 e) if test yes = "$cross_compiling"; then :
14664 lt_cv_dlopen_self_static=cross
14665 else
14666 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14667 lt_status=$lt_dlunknown
14668 cat > conftest.$ac_ext <<_LT_EOF
14669 #line $LINENO "configure"
14670 #include "confdefs.h"
14671
14672 #if HAVE_DLFCN_H
14673 #include <dlfcn.h>
14674 #endif
14675
14676 #include <stdio.h>
14677
14678 #ifdef RTLD_GLOBAL
14679 # define LT_DLGLOBAL RTLD_GLOBAL
14680 #else
14681 # ifdef DL_GLOBAL
14682 # define LT_DLGLOBAL DL_GLOBAL
14683 # else
14684 # define LT_DLGLOBAL 0
14685 # endif
14686 #endif
14687
14688 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14689 find out it does not work in some platform. */
14690 #ifndef LT_DLLAZY_OR_NOW
14691 # ifdef RTLD_LAZY
14692 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14693 # else
14694 # ifdef DL_LAZY
14695 # define LT_DLLAZY_OR_NOW DL_LAZY
14696 # else
14697 # ifdef RTLD_NOW
14698 # define LT_DLLAZY_OR_NOW RTLD_NOW
14699 # else
14700 # ifdef DL_NOW
14701 # define LT_DLLAZY_OR_NOW DL_NOW
14702 # else
14703 # define LT_DLLAZY_OR_NOW 0
14704 # endif
14705 # endif
14706 # endif
14707 # endif
14708 #endif
14709
14710 /* When -fvisibility=hidden is used, assume the code has been annotated
14711 correspondingly for the symbols needed. */
14712 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14713 int fnord (void) __attribute__((visibility("default")));
14714 #endif
14715
14716 int fnord (void) { return 42; }
14717 int main (void)
14718 {
14719 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14720 int status = $lt_dlunknown;
14721
14722 if (self)
14723 {
14724 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14725 else
14726 {
14727 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14728 else puts (dlerror ());
14729 }
14730 /* dlclose (self); */
14731 }
14732 else
14733 puts (dlerror ());
14734
14735 return status;
14736 }
14737 _LT_EOF
14738 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14739 (eval $ac_link) 2>&5
14740 ac_status=$?
14741 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14742 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14743 (./conftest; exit; ) >&5 2>/dev/null
14744 lt_status=$?
14745 case x$lt_status in
14746 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14747 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14748 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14749 esac
14750 else :
14751 # compilation failed
14752 lt_cv_dlopen_self_static=no
14753 fi
14754 fi
14755 rm -fr conftest*
14756
14757 ;;
14758 esac
14759 fi
14760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14761 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
14762 fi
14763
14764 CPPFLAGS=$save_CPPFLAGS
14765 LDFLAGS=$save_LDFLAGS
14766 LIBS=$save_LIBS
14767 ;;
14768 esac
14769
14770 case $lt_cv_dlopen_self in
14771 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14772 *) enable_dlopen_self=unknown ;;
14773 esac
14774
14775 case $lt_cv_dlopen_self_static in
14776 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14777 *) enable_dlopen_self_static=unknown ;;
14778 esac
14779 fi
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797 striplib=
14798 old_striplib=
14799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14800 printf %s "checking whether stripping libraries is possible... " >&6; }
14801 if test -z "$STRIP"; then
14802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14803 printf "%s\n" "no" >&6; }
14804 else
14805 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14806 old_striplib="$STRIP --strip-debug"
14807 striplib="$STRIP --strip-unneeded"
14808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14809 printf "%s\n" "yes" >&6; }
14810 else
14811 case $host_os in
14812 darwin*)
14813 # FIXME - insert some real tests, host_os isn't really good enough
14814 striplib="$STRIP -x"
14815 old_striplib="$STRIP -S"
14816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14817 printf "%s\n" "yes" >&6; }
14818 ;;
14819 freebsd*)
14820 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
14821 old_striplib="$STRIP --strip-debug"
14822 striplib="$STRIP --strip-unneeded"
14823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14824 printf "%s\n" "yes" >&6; }
14825 else
14826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14827 printf "%s\n" "no" >&6; }
14828 fi
14829 ;;
14830 *)
14831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14832 printf "%s\n" "no" >&6; }
14833 ;;
14834 esac
14835 fi
14836 fi
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849 # Report what library types will actually be built
14850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14851 printf %s "checking if libtool supports shared libraries... " >&6; }
14852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14853 printf "%s\n" "$can_build_shared" >&6; }
14854
14855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14856 printf %s "checking whether to build shared libraries... " >&6; }
14857 test no = "$can_build_shared" && enable_shared=no
14858
14859 # On AIX, shared libraries and static libraries use the same namespace, and
14860 # are all built from PIC.
14861 case $host_os in
14862 aix3*)
14863 test yes = "$enable_shared" && enable_static=no
14864 if test -n "$RANLIB"; then
14865 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14866 postinstall_cmds='$RANLIB $lib'
14867 fi
14868 ;;
14869
14870 aix[4-9]*)
14871 if test ia64 != "$host_cpu"; then
14872 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14873 yes,aix,yes) ;; # shared object as lib.so file only
14874 yes,svr4,*) ;; # shared object as lib.so archive member only
14875 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14876 esac
14877 fi
14878 ;;
14879 esac
14880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14881 printf "%s\n" "$enable_shared" >&6; }
14882
14883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14884 printf %s "checking whether to build static libraries... " >&6; }
14885 # Make sure either enable_shared or enable_static is yes.
14886 test yes = "$enable_shared" || enable_static=yes
14887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14888 printf "%s\n" "$enable_static" >&6; }
14889
14890
14891
14892
14893 fi
14894 ac_ext=c
14895 ac_cpp='$CPP $CPPFLAGS'
14896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14899
14900 CC=$lt_save_CC
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916 ac_config_commands="$ac_config_commands libtool"
14917
14918
14919
14920
14921 # Only expand once:
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14934 if test -n "$ac_tool_prefix"; then
14935 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14936 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14938 printf %s "checking for $ac_word... " >&6; }
14939 if test ${ac_cv_path_PKG_CONFIG+y}
14940 then :
14941 printf %s "(cached) " >&6
14942 else case e in #(
14943 e) case $PKG_CONFIG in
14944 [\\/]* | ?:[\\/]*)
14945 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14946 ;;
14947 *)
14948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14949 for as_dir in $PATH
14950 do
14951 IFS=$as_save_IFS
14952 case $as_dir in #(((
14953 '') as_dir=./ ;;
14954 */) ;;
14955 *) as_dir=$as_dir/ ;;
14956 esac
14957 for ac_exec_ext in '' $ac_executable_extensions; do
14958 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14959 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
14960 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14961 break 2
14962 fi
14963 done
14964 done
14965 IFS=$as_save_IFS
14966
14967 ;;
14968 esac ;;
14969 esac
14970 fi
14971 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14972 if test -n "$PKG_CONFIG"; then
14973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14974 printf "%s\n" "$PKG_CONFIG" >&6; }
14975 else
14976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14977 printf "%s\n" "no" >&6; }
14978 fi
14979
14980
14981 fi
14982 if test -z "$ac_cv_path_PKG_CONFIG"; then
14983 ac_pt_PKG_CONFIG=$PKG_CONFIG
14984 # Extract the first word of "pkg-config", so it can be a program name with args.
14985 set dummy pkg-config; ac_word=$2
14986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14987 printf %s "checking for $ac_word... " >&6; }
14988 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
14989 then :
14990 printf %s "(cached) " >&6
14991 else case e in #(
14992 e) case $ac_pt_PKG_CONFIG in
14993 [\\/]* | ?:[\\/]*)
14994 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14995 ;;
14996 *)
14997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14998 for as_dir in $PATH
14999 do
15000 IFS=$as_save_IFS
15001 case $as_dir in #(((
15002 '') as_dir=./ ;;
15003 */) ;;
15004 *) as_dir=$as_dir/ ;;
15005 esac
15006 for ac_exec_ext in '' $ac_executable_extensions; do
15007 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15008 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
15009 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15010 break 2
15011 fi
15012 done
15013 done
15014 IFS=$as_save_IFS
15015
15016 ;;
15017 esac ;;
15018 esac
15019 fi
15020 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15021 if test -n "$ac_pt_PKG_CONFIG"; then
15022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15023 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
15024 else
15025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15026 printf "%s\n" "no" >&6; }
15027 fi
15028
15029 if test "x$ac_pt_PKG_CONFIG" = x; then
15030 PKG_CONFIG=""
15031 else
15032 case $cross_compiling:$ac_tool_warned in
15033 yes:)
15034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15035 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15036 ac_tool_warned=yes ;;
15037 esac
15038 PKG_CONFIG=$ac_pt_PKG_CONFIG
15039 fi
15040 else
15041 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15042 fi
15043
15044 fi
15045 if test -n "$PKG_CONFIG"; then
15046 _pkg_min_version=0.9.0
15047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15048 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15049 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15051 printf "%s\n" "yes" >&6; }
15052 else
15053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15054 printf "%s\n" "no" >&6; }
15055 PKG_CONFIG=""
15056 fi
15057 fi
15058
15059 # Extract the first word of "mv", so it can be a program name with args.
15060 set dummy mv; ac_word=$2
15061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15062 printf %s "checking for $ac_word... " >&6; }
15063 if test ${ac_cv_path_MV+y}
15064 then :
15065 printf %s "(cached) " >&6
15066 else case e in #(
15067 e) case $MV in
15068 [\\/]* | ?:[\\/]*)
15069 ac_cv_path_MV="$MV" # Let the user override the test with a path.
15070 ;;
15071 *)
15072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15073 for as_dir in $PATH
15074 do
15075 IFS=$as_save_IFS
15076 case $as_dir in #(((
15077 '') as_dir=./ ;;
15078 */) ;;
15079 *) as_dir=$as_dir/ ;;
15080 esac
15081 for ac_exec_ext in '' $ac_executable_extensions; do
15082 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15083 ac_cv_path_MV="$as_dir$ac_word$ac_exec_ext"
15084 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15085 break 2
15086 fi
15087 done
15088 done
15089 IFS=$as_save_IFS
15090
15091 ;;
15092 esac ;;
15093 esac
15094 fi
15095 MV=$ac_cv_path_MV
15096 if test -n "$MV"; then
15097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
15098 printf "%s\n" "$MV" >&6; }
15099 else
15100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15101 printf "%s\n" "no" >&6; }
15102 fi
15103
15104
15105 # Extract the first word of "rm", so it can be a program name with args.
15106 set dummy rm; ac_word=$2
15107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15108 printf %s "checking for $ac_word... " >&6; }
15109 if test ${ac_cv_path_RM+y}
15110 then :
15111 printf %s "(cached) " >&6
15112 else case e in #(
15113 e) case $RM in
15114 [\\/]* | ?:[\\/]*)
15115 ac_cv_path_RM="$RM" # Let the user override the test with a path.
15116 ;;
15117 *)
15118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15119 for as_dir in $PATH
15120 do
15121 IFS=$as_save_IFS
15122 case $as_dir in #(((
15123 '') as_dir=./ ;;
15124 */) ;;
15125 *) as_dir=$as_dir/ ;;
15126 esac
15127 for ac_exec_ext in '' $ac_executable_extensions; do
15128 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15129 ac_cv_path_RM="$as_dir$ac_word$ac_exec_ext"
15130 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15131 break 2
15132 fi
15133 done
15134 done
15135 IFS=$as_save_IFS
15136
15137 ;;
15138 esac ;;
15139 esac
15140 fi
15141 RM=$ac_cv_path_RM
15142 if test -n "$RM"; then
15143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
15144 printf "%s\n" "$RM" >&6; }
15145 else
15146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15147 printf "%s\n" "no" >&6; }
15148 fi
15149
15150
15151 # Extract the first word of "sed", so it can be a program name with args.
15152 set dummy sed; ac_word=$2
15153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15154 printf %s "checking for $ac_word... " >&6; }
15155 if test ${ac_cv_path_SED+y}
15156 then :
15157 printf %s "(cached) " >&6
15158 else case e in #(
15159 e) case $SED in
15160 [\\/]* | ?:[\\/]*)
15161 ac_cv_path_SED="$SED" # Let the user override the test with a path.
15162 ;;
15163 *)
15164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15165 for as_dir in $PATH
15166 do
15167 IFS=$as_save_IFS
15168 case $as_dir in #(((
15169 '') as_dir=./ ;;
15170 */) ;;
15171 *) as_dir=$as_dir/ ;;
15172 esac
15173 for ac_exec_ext in '' $ac_executable_extensions; do
15174 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15175 ac_cv_path_SED="$as_dir$ac_word$ac_exec_ext"
15176 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15177 break 2
15178 fi
15179 done
15180 done
15181 IFS=$as_save_IFS
15182
15183 ;;
15184 esac ;;
15185 esac
15186 fi
15187 SED=$ac_cv_path_SED
15188 if test -n "$SED"; then
15189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
15190 printf "%s\n" "$SED" >&6; }
15191 else
15192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15193 printf "%s\n" "no" >&6; }
15194 fi
15195
15196
15197
15198 # Extract the first word of "ldconfig", so it can be a program name with args.
15199 set dummy ldconfig; ac_word=$2
15200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15201 printf %s "checking for $ac_word... " >&6; }
15202 if test ${ac_cv_path_LDCONFIG+y}
15203 then :
15204 printf %s "(cached) " >&6
15205 else case e in #(
15206 e) case $LDCONFIG in
15207 [\\/]* | ?:[\\/]*)
15208 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
15209 ;;
15210 *)
15211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15212 for as_dir in /sbin /usr/sbin $PATH
15213 do
15214 IFS=$as_save_IFS
15215 case $as_dir in #(((
15216 '') as_dir=./ ;;
15217 */) ;;
15218 *) as_dir=$as_dir/ ;;
15219 esac
15220 for ac_exec_ext in '' $ac_executable_extensions; do
15221 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15222 ac_cv_path_LDCONFIG="$as_dir$ac_word$ac_exec_ext"
15223 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15224 break 2
15225 fi
15226 done
15227 done
15228 IFS=$as_save_IFS
15229
15230 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
15231 ;;
15232 esac ;;
15233 esac
15234 fi
15235 LDCONFIG=$ac_cv_path_LDCONFIG
15236 if test -n "$LDCONFIG"; then
15237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
15238 printf "%s\n" "$LDCONFIG" >&6; }
15239 else
15240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15241 printf "%s\n" "no" >&6; }
15242 fi
15243
15244
15245
15246 # Environment
15247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows OS" >&5
15248 printf %s "checking Windows OS... " >&6; }
15249 case "${target}" in
15250 *-mingw32*|*-winnt*|*-cygwin*)
15251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15252 printf "%s\n" "yes" >&6; }
15253 WINDOWS="yes"
15254
15255 printf "%s\n" "#define WINDOWS 1" >>confdefs.h
15256
15257 ;;
15258 *)
15259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15260 printf "%s\n" "no" >&6; }
15261 WINDOWS="no"
15262 ;;
15263 esac
15264
15265 if test "x${enable_ntfs_3g}" != "xyes"; then
15266 with_fuse="none"
15267 elif test "x${with_fuse}" = "x"; then
15268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking fuse compatibility" >&5
15269 printf %s "checking fuse compatibility... " >&6; }
15270 case "${target_os}" in
15271 linux*|solaris*)
15272
15273 # Check whether --with-fuse was given.
15274 if test ${with_fuse+y}
15275 then :
15276 withval=$with_fuse;
15277 else case e in #(
15278 e) with_fuse="internal"
15279 ;;
15280 esac
15281 fi
15282
15283 ;;
15284 darwin*|netbsd*|kfreebsd*-gnu)
15285 with_fuse="external"
15286 ;;
15287 freebsd*)
15288 as_fn_error $? "Please see FreeBSD support at http://www.freshports.org/sysutils/fusefs-ntfs" "$LINENO" 5
15289 ;;
15290 *)
15291 as_fn_error $? "ntfs-3g can be built for Linux, FreeBSD, Mac OS X, NetBSD, and Solaris only." "$LINENO" 5
15292 ;;
15293 esac
15294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${with_fuse}" >&5
15295 printf "%s\n" "${with_fuse}" >&6; }
15296 fi
15297
15298 case "${target_os}" in
15299 solaris*)
15300 if test "x$GCC" != "xyes" ; then
15301 as_fn_error $? "ntfs-3g can be built only with gcc on Solaris. Install it by 'pkg install gcc-dev' and retry.)" "$LINENO" 5
15302 fi
15303 ;;
15304 esac
15305
15306 if test "${enable_ldscript}" = "yes"; then
15307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Output format" >&5
15308 printf %s "checking Output format... " >&6; }
15309 OUTPUT_FORMAT="$(${CC} ${CFLAGS} ${LDFLAGS} -Wl,--verbose 2>&1 | ${SED} -n 's/^OUTPUT_FORMAT("\([^"]*\)",.*/\1/p')"
15310 if test -z "${OUTPUT_FORMAT}"; then
15311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: None" >&5
15312 printf "%s\n" "None" >&6; }
15313 else
15314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${OUTPUT_FORMAT}" >&5
15315 printf "%s\n" "${OUTPUT_FORMAT}" >&6; }
15316 OUTPUT_FORMAT="OUTPUT_FORMAT ( ${OUTPUT_FORMAT} )"
15317 fi
15318 fi
15319
15320 # Libraries
15321 if test "${with_fuse}" = "internal"; then
15322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
15323 printf %s "checking for pthread_create in -lpthread... " >&6; }
15324 if test ${ac_cv_lib_pthread_pthread_create+y}
15325 then :
15326 printf %s "(cached) " >&6
15327 else case e in #(
15328 e) ac_check_lib_save_LIBS=$LIBS
15329 LIBS="-lpthread $LIBS"
15330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15331 /* end confdefs.h. */
15332
15333 /* Override any GCC internal prototype to avoid an error.
15334 Use char because int might match the return type of a GCC
15335 builtin and then its argument prototype would still apply.
15336 The 'extern "C"' is for builds by C++ compilers;
15337 although this is not generally supported in C code supporting it here
15338 has little cost and some practical benefit (sr 110532). */
15339 #ifdef __cplusplus
15340 extern "C"
15341 #endif
15342 char pthread_create (void);
15343 int
15344 main (void)
15345 {
15346 return pthread_create ();
15347 ;
15348 return 0;
15349 }
15350 _ACEOF
15351 if ac_fn_c_try_link "$LINENO"
15352 then :
15353 ac_cv_lib_pthread_pthread_create=yes
15354 else case e in #(
15355 e) ac_cv_lib_pthread_pthread_create=no ;;
15356 esac
15357 fi
15358 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15359 conftest$ac_exeext conftest.$ac_ext
15360 LIBS=$ac_check_lib_save_LIBS ;;
15361 esac
15362 fi
15363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
15364 printf "%s\n" "$ac_cv_lib_pthread_pthread_create" >&6; }
15365 if test "x$ac_cv_lib_pthread_pthread_create" = xyes
15366 then :
15367 LIBFUSE_LITE_LIBS="${LIBFUSE_LITE_LIBS} -lpthread"
15368 else case e in #(
15369 e) as_fn_error $? "Cannot find pthread library" "$LINENO" 5
15370 ;;
15371 esac
15372 fi
15373
15374
15375 printf "%s\n" "#define _REENTRANT 1" >>confdefs.h
15376
15377 # required so that we re-compile anything
15378
15379 printf "%s\n" "#define FUSE_INTERNAL 1" >>confdefs.h
15380
15381
15382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Solaris OS" >&5
15383 printf %s "checking Solaris OS... " >&6; }
15384 ac_ext=c
15385 ac_cpp='$CPP $CPPFLAGS'
15386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15389
15390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15391 /* end confdefs.h. */
15392
15393 #if !((defined(sun) || defined(__sun)) && (defined(__SVR4) || defined(__svr4__)))
15394 #error "Not a Solaris system."
15395 #endif
15396
15397
15398 _ACEOF
15399 if ac_fn_c_try_compile "$LINENO"
15400 then :
15401
15402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15403 printf "%s\n" "yes" >&6; }
15404 LIBFUSE_LITE_CFLAGS="${LIBFUSE_LITE_CFLAGS} -std=c99 -D__SOLARIS__ -D_XOPEN_SOURCE=600 -D__EXTENSIONS__"
15405 LIBFUSE_LITE_LIBS="${LIBFUSE_LITE_LIBS} -lxnet"
15406
15407 else case e in #(
15408 e)
15409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15410 printf "%s\n" "no" >&6; }
15411
15412 ;;
15413 esac
15414 fi
15415 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15416 ac_ext=c
15417 ac_cpp='$CPP $CPPFLAGS'
15418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15421
15422 elif test "${with_fuse}" = "external"; then
15423 if test -z "$PKG_CONFIG"; then
15424 # Extract the first word of "pkg-config", so it can be a program name with args.
15425 set dummy pkg-config; ac_word=$2
15426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15427 printf %s "checking for $ac_word... " >&6; }
15428 if test ${ac_cv_path_PKG_CONFIG+y}
15429 then :
15430 printf %s "(cached) " >&6
15431 else case e in #(
15432 e) case $PKG_CONFIG in
15433 [\\/]* | ?:[\\/]*)
15434 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15435 ;;
15436 *)
15437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15438 for as_dir in $PATH
15439 do
15440 IFS=$as_save_IFS
15441 case $as_dir in #(((
15442 '') as_dir=./ ;;
15443 */) ;;
15444 *) as_dir=$as_dir/ ;;
15445 esac
15446 for ac_exec_ext in '' $ac_executable_extensions; do
15447 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15448 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
15449 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15450 break 2
15451 fi
15452 done
15453 done
15454 IFS=$as_save_IFS
15455
15456 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
15457 ;;
15458 esac ;;
15459 esac
15460 fi
15461 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15462 if test -n "$PKG_CONFIG"; then
15463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15464 printf "%s\n" "$PKG_CONFIG" >&6; }
15465 else
15466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15467 printf "%s\n" "no" >&6; }
15468 fi
15469
15470
15471 fi
15472 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
15473 # Libraries often install their metadata .pc files in directories
15474 # not searched by pkg-config. Let's workaround this.
15475 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
15476
15477 pkg_failed=no
15478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse >= 2.6.0" >&5
15479 printf %s "checking for fuse >= 2.6.0... " >&6; }
15480
15481 if test -n "$FUSE_MODULE_CFLAGS"; then
15482 pkg_cv_FUSE_MODULE_CFLAGS="$FUSE_MODULE_CFLAGS"
15483 elif test -n "$PKG_CONFIG"; then
15484 if test -n "$PKG_CONFIG" && \
15485 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse >= 2.6.0\""; } >&5
15486 ($PKG_CONFIG --exists --print-errors "fuse >= 2.6.0") 2>&5
15487 ac_status=$?
15488 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15489 test $ac_status = 0; }; then
15490 pkg_cv_FUSE_MODULE_CFLAGS=`$PKG_CONFIG --cflags "fuse >= 2.6.0" 2>/dev/null`
15491 test "x$?" != "x0" && pkg_failed=yes
15492 else
15493 pkg_failed=yes
15494 fi
15495 else
15496 pkg_failed=untried
15497 fi
15498 if test -n "$FUSE_MODULE_LIBS"; then
15499 pkg_cv_FUSE_MODULE_LIBS="$FUSE_MODULE_LIBS"
15500 elif test -n "$PKG_CONFIG"; then
15501 if test -n "$PKG_CONFIG" && \
15502 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse >= 2.6.0\""; } >&5
15503 ($PKG_CONFIG --exists --print-errors "fuse >= 2.6.0") 2>&5
15504 ac_status=$?
15505 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15506 test $ac_status = 0; }; then
15507 pkg_cv_FUSE_MODULE_LIBS=`$PKG_CONFIG --libs "fuse >= 2.6.0" 2>/dev/null`
15508 test "x$?" != "x0" && pkg_failed=yes
15509 else
15510 pkg_failed=yes
15511 fi
15512 else
15513 pkg_failed=untried
15514 fi
15515
15516
15517
15518 if test $pkg_failed = yes; then
15519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15520 printf "%s\n" "no" >&6; }
15521
15522 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15523 _pkg_short_errors_supported=yes
15524 else
15525 _pkg_short_errors_supported=no
15526 fi
15527 if test $_pkg_short_errors_supported = yes; then
15528 FUSE_MODULE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fuse >= 2.6.0" 2>&1`
15529 else
15530 FUSE_MODULE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fuse >= 2.6.0" 2>&1`
15531 fi
15532 # Put the nasty error message in config.log where it belongs
15533 echo "$FUSE_MODULE_PKG_ERRORS" >&5
15534
15535
15536 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
15537
15538
15539 elif test $pkg_failed = untried; then
15540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15541 printf "%s\n" "no" >&6; }
15542
15543 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
15544
15545
15546 else
15547 FUSE_MODULE_CFLAGS=$pkg_cv_FUSE_MODULE_CFLAGS
15548 FUSE_MODULE_LIBS=$pkg_cv_FUSE_MODULE_LIBS
15549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15550 printf "%s\n" "yes" >&6; }
15551
15552 fi
15553 FUSE_LIB_PATH=`$PKG_CONFIG --libs-only-L fuse | sed -e 's,//*,/,g' -e 's, *$,,'`
15554 fi
15555
15556 # Autodetect whether we can build crypto stuff or not.
15557 compile_crypto=false
15558 if test "$enable_crypto" != "no"; then
15559 have_libgcrypt=false
15560 # Extract the first word of "gpgrt-config", so it can be a program name with args.
15561 set dummy gpgrt-config; ac_word=$2
15562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15563 printf %s "checking for $ac_word... " >&6; }
15564 if test ${ac_cv_path_GPGRT_CONFIG+y}
15565 then :
15566 printf %s "(cached) " >&6
15567 else case e in #(
15568 e) case $GPGRT_CONFIG in
15569 [\\/]* | ?:[\\/]*)
15570 ac_cv_path_GPGRT_CONFIG="$GPGRT_CONFIG" # Let the user override the test with a path.
15571 ;;
15572 *)
15573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15574 as_dummy="$prefix/bin:$PATH"
15575 for as_dir in $as_dummy
15576 do
15577 IFS=$as_save_IFS
15578 case $as_dir in #(((
15579 '') as_dir=./ ;;
15580 */) ;;
15581 *) as_dir=$as_dir/ ;;
15582 esac
15583 for ac_exec_ext in '' $ac_executable_extensions; do
15584 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15585 ac_cv_path_GPGRT_CONFIG="$as_dir$ac_word$ac_exec_ext"
15586 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15587 break 2
15588 fi
15589 done
15590 done
15591 IFS=$as_save_IFS
15592
15593 test -z "$ac_cv_path_GPGRT_CONFIG" && ac_cv_path_GPGRT_CONFIG="no"
15594 ;;
15595 esac ;;
15596 esac
15597 fi
15598 GPGRT_CONFIG=$ac_cv_path_GPGRT_CONFIG
15599 if test -n "$GPGRT_CONFIG"; then
15600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GPGRT_CONFIG" >&5
15601 printf "%s\n" "$GPGRT_CONFIG" >&6; }
15602 else
15603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15604 printf "%s\n" "no" >&6; }
15605 fi
15606
15607
15608 if test "$GPGRT_CONFIG" != "no"; then
15609 # Determine gpgrt_libdir
15610 #
15611 # Get the prefix of gpgrt-config assuming it's something like:
15612 # <PREFIX>/bin/gpgrt-config
15613 gpgrt_prefix=${GPGRT_CONFIG%/*/*}
15614 possible_libdir1=${gpgrt_prefix}/lib
15615 # Determine by using system libdir-format with CC, it's like:
15616 # Normal style: /usr/lib
15617 # GNU cross style: /usr/<triplet>/lib
15618 # Debian style: /usr/lib/<multiarch-name>
15619 # Fedora/openSUSE style: /usr/lib, /usr/lib32 or /usr/lib64
15620 # It is assumed that CC is specified to the one of host on cross build.
15621 if libdir_candidates=$(${CC:-cc} -print-search-dirs | \
15622 sed -n -e "/^libraries/{s/libraries: =//;s/:/\\
15623 /g;p;}"); then
15624 # From the output of -print-search-dirs, select valid pkgconfig dirs.
15625 libdir_candidates=$(for dir in $libdir_candidates; do
15626 if p=$(cd $dir 2>/dev/null && pwd); then
15627 test -d "$p/pkgconfig" && echo $p;
15628 fi
15629 done)
15630
15631 for possible_libdir0 in $libdir_candidates; do
15632 # possible_libdir0:
15633 # Fallback candidate, the one of system-installed (by $CC)
15634 # (/usr/<triplet>/lib, /usr/lib/<multiarch-name> or /usr/lib32)
15635 # possible_libdir1:
15636 # Another candidate, user-locally-installed
15637 # (<gpgrt_prefix>/lib)
15638 # possible_libdir2
15639 # Most preferred
15640 # (<gpgrt_prefix>/<triplet>/lib,
15641 # <gpgrt_prefix>/lib/<multiarch-name> or <gpgrt_prefix>/lib32)
15642 if test "${possible_libdir0##*/}" = "lib"; then
15643 possible_prefix0=${possible_libdir0%/lib}
15644 possible_prefix0_triplet=${possible_prefix0##*/}
15645 if test -z "$possible_prefix0_triplet"; then
15646 continue
15647 fi
15648 possible_libdir2=${gpgrt_prefix}/$possible_prefix0_triplet/lib
15649 else
15650 possible_prefix0=${possible_libdir0%%/lib*}
15651 possible_libdir2=${gpgrt_prefix}${possible_libdir0#$possible_prefix0}
15652 fi
15653 if test -f ${possible_libdir2}/pkgconfig/gpg-error.pc; then
15654 gpgrt_libdir=${possible_libdir2}
15655 elif test -f ${possible_libdir1}/pkgconfig/gpg-error.pc; then
15656 gpgrt_libdir=${possible_libdir1}
15657 elif test -f ${possible_libdir0}/pkgconfig/gpg-error.pc; then
15658 gpgrt_libdir=${possible_libdir0}
15659 fi
15660 if test -n "$gpgrt_libdir"; then break; fi
15661 done
15662 fi
15663 if test -z "$gpgrt_libdir"; then
15664 # No valid pkgconfig dir in any of the system directories, fallback
15665 gpgrt_libdir=${possible_libdir1}
15666 fi
15667 else
15668 unset GPGRT_CONFIG
15669 fi
15670
15671 if test -n "$gpgrt_libdir"; then
15672 # Add the --libdir option to GPGRT_CONFIG
15673 GPGRT_CONFIG="$GPGRT_CONFIG --libdir=$gpgrt_libdir"
15674 # Make sure if gpgrt-config really works, by testing config gpg-error
15675 if ! $GPGRT_CONFIG gpg-error --exists; then
15676 # If it doesn't work, clear the GPGRT_CONFIG variable.
15677 unset GPGRT_CONFIG
15678 fi
15679 else
15680 # GPGRT_CONFIG found but no suitable dir for --libdir found.
15681 # This is a failure. Clear the GPGRT_CONFIG variable.
15682 unset GPGRT_CONFIG
15683 fi
15684
15685
15686 # Check whether --with-libgcrypt-prefix was given.
15687 if test ${with_libgcrypt_prefix+y}
15688 then :
15689 withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
15690 else case e in #(
15691 e) libgcrypt_config_prefix="" ;;
15692 esac
15693 fi
15694
15695 if test x"${LIBGCRYPT_CONFIG}" = x ; then
15696 if test x"${libgcrypt_config_prefix}" != x ; then
15697 LIBGCRYPT_CONFIG="${libgcrypt_config_prefix}/bin/libgcrypt-config"
15698 fi
15699 fi
15700
15701 use_gpgrt_config=""
15702 if test x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
15703 if $GPGRT_CONFIG libgcrypt --exists; then
15704 LIBGCRYPT_CONFIG="$GPGRT_CONFIG libgcrypt"
15705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as libgcrypt-config" >&5
15706 printf "%s\n" "$as_me: Use gpgrt-config as libgcrypt-config" >&6;}
15707 use_gpgrt_config=yes
15708 fi
15709 fi
15710 if test -z "$use_gpgrt_config"; then
15711 if test x"${LIBGCRYPT_CONFIG}" = x ; then
15712 case "${SYSROOT}" in
15713 /*)
15714 if test -x "${SYSROOT}/bin/libgcrypt-config" ; then
15715 LIBGCRYPT_CONFIG="${SYSROOT}/bin/libgcrypt-config"
15716 fi
15717 ;;
15718 '')
15719 ;;
15720 *)
15721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
15722 printf "%s\n" "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
15723 ;;
15724 esac
15725 fi
15726 # Extract the first word of "libgcrypt-config", so it can be a program name with args.
15727 set dummy libgcrypt-config; ac_word=$2
15728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15729 printf %s "checking for $ac_word... " >&6; }
15730 if test ${ac_cv_path_LIBGCRYPT_CONFIG+y}
15731 then :
15732 printf %s "(cached) " >&6
15733 else case e in #(
15734 e) case $LIBGCRYPT_CONFIG in
15735 [\\/]* | ?:[\\/]*)
15736 ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
15737 ;;
15738 *)
15739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15740 for as_dir in $PATH
15741 do
15742 IFS=$as_save_IFS
15743 case $as_dir in #(((
15744 '') as_dir=./ ;;
15745 */) ;;
15746 *) as_dir=$as_dir/ ;;
15747 esac
15748 for ac_exec_ext in '' $ac_executable_extensions; do
15749 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15750 ac_cv_path_LIBGCRYPT_CONFIG="$as_dir$ac_word$ac_exec_ext"
15751 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15752 break 2
15753 fi
15754 done
15755 done
15756 IFS=$as_save_IFS
15757
15758 test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
15759 ;;
15760 esac ;;
15761 esac
15762 fi
15763 LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
15764 if test -n "$LIBGCRYPT_CONFIG"; then
15765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
15766 printf "%s\n" "$LIBGCRYPT_CONFIG" >&6; }
15767 else
15768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15769 printf "%s\n" "no" >&6; }
15770 fi
15771
15772
15773 fi
15774
15775 tmp=1.2.2
15776 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
15777 req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
15778 min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
15779 else
15780 req_libgcrypt_api=0
15781 min_libgcrypt_version="$tmp"
15782 fi
15783
15784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
15785 printf %s "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
15786 ok=no
15787 if test "$LIBGCRYPT_CONFIG" != "no" ; then
15788 req_major=`echo $min_libgcrypt_version | \
15789 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
15790 req_minor=`echo $min_libgcrypt_version | \
15791 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
15792 req_micro=`echo $min_libgcrypt_version | \
15793 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
15794 if test -z "$use_gpgrt_config"; then
15795 libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
15796 else
15797 libgcrypt_config_version=`$LIBGCRYPT_CONFIG --modversion`
15798 fi
15799 major=`echo $libgcrypt_config_version | \
15800 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
15801 minor=`echo $libgcrypt_config_version | \
15802 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
15803 micro=`echo $libgcrypt_config_version | \
15804 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
15805 if test "$major" -gt "$req_major"; then
15806 ok=yes
15807 else
15808 if test "$major" -eq "$req_major"; then
15809 if test "$minor" -gt "$req_minor"; then
15810 ok=yes
15811 else
15812 if test "$minor" -eq "$req_minor"; then
15813 if test "$micro" -ge "$req_micro"; then
15814 ok=yes
15815 fi
15816 fi
15817 fi
15818 fi
15819 fi
15820 fi
15821 if test $ok = yes; then
15822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
15823 printf "%s\n" "yes ($libgcrypt_config_version)" >&6; }
15824 else
15825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15826 printf "%s\n" "no" >&6; }
15827 fi
15828 if test $ok = yes; then
15829 # If we have a recent libgcrypt, we should also check that the
15830 # API is compatible
15831 if test "$req_libgcrypt_api" -gt 0 ; then
15832 if test -z "$use_gpgrt_config"; then
15833 tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
15834 else
15835 tmp=`$LIBGCRYPT_CONFIG --variable=api_version 2>/dev/null || echo 0`
15836 fi
15837 if test "$tmp" -gt 0 ; then
15838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5
15839 printf %s "checking LIBGCRYPT API version... " >&6; }
15840 if test "$req_libgcrypt_api" -eq "$tmp" ; then
15841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: okay" >&5
15842 printf "%s\n" "okay" >&6; }
15843 else
15844 ok=no
15845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
15846 printf "%s\n" "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
15847 fi
15848 fi
15849 fi
15850 fi
15851 if test $ok = yes; then
15852 LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
15853 LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
15854 have_libgcrypt=true
15855 if test -z "$use_gpgrt_config"; then
15856 libgcrypt_config_host=`$LIBGCRYPT_CONFIG --host 2>/dev/null || echo none`
15857 else
15858 libgcrypt_config_host=`$LIBGCRYPT_CONFIG --variable=host 2>/dev/null || echo none`
15859 fi
15860 if test x"$libgcrypt_config_host" != xnone ; then
15861 if test x"$libgcrypt_config_host" != x"$host" ; then
15862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
15863 ***
15864 *** The config script \"$LIBGCRYPT_CONFIG\" was
15865 *** built for $libgcrypt_config_host and thus may not match the
15866 *** used host $host.
15867 *** You may want to use the configure option --with-libgcrypt-prefix
15868 *** to specify a matching config script or use \$SYSROOT.
15869 ***" >&5
15870 printf "%s\n" "$as_me: WARNING:
15871 ***
15872 *** The config script \"$LIBGCRYPT_CONFIG\" was
15873 *** built for $libgcrypt_config_host and thus may not match the
15874 *** used host $host.
15875 *** You may want to use the configure option --with-libgcrypt-prefix
15876 *** to specify a matching config script or use \$SYSROOT.
15877 ***" >&2;}
15878 gpg_config_script_warn="$gpg_config_script_warn libgcrypt"
15879 fi
15880 fi
15881 else
15882 LIBGCRYPT_CFLAGS=""
15883 LIBGCRYPT_LIBS=""
15884
15885 if test "$enable_crypto" = "yes"; then
15886 as_fn_error $? "ntfsprogs crypto code requires the gcrypt library." "$LINENO" 5
15887 else
15888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ntfsprogs crypto code requires the gcrypt library." >&5
15889 printf "%s\n" "$as_me: WARNING: ntfsprogs crypto code requires the gcrypt library." >&2;}
15890 fi
15891
15892 fi
15893
15894
15895
15896 have_libgnutls=false
15897
15898 pkg_failed=no
15899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 1.4.4" >&5
15900 printf %s "checking for gnutls >= 1.4.4... " >&6; }
15901
15902 if test -n "$GNUTLS_CFLAGS"; then
15903 pkg_cv_GNUTLS_CFLAGS="$GNUTLS_CFLAGS"
15904 elif test -n "$PKG_CONFIG"; then
15905 if test -n "$PKG_CONFIG" && \
15906 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 1.4.4\""; } >&5
15907 ($PKG_CONFIG --exists --print-errors "gnutls >= 1.4.4") 2>&5
15908 ac_status=$?
15909 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15910 test $ac_status = 0; }; then
15911 pkg_cv_GNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 1.4.4" 2>/dev/null`
15912 test "x$?" != "x0" && pkg_failed=yes
15913 else
15914 pkg_failed=yes
15915 fi
15916 else
15917 pkg_failed=untried
15918 fi
15919 if test -n "$GNUTLS_LIBS"; then
15920 pkg_cv_GNUTLS_LIBS="$GNUTLS_LIBS"
15921 elif test -n "$PKG_CONFIG"; then
15922 if test -n "$PKG_CONFIG" && \
15923 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 1.4.4\""; } >&5
15924 ($PKG_CONFIG --exists --print-errors "gnutls >= 1.4.4") 2>&5
15925 ac_status=$?
15926 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15927 test $ac_status = 0; }; then
15928 pkg_cv_GNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 1.4.4" 2>/dev/null`
15929 test "x$?" != "x0" && pkg_failed=yes
15930 else
15931 pkg_failed=yes
15932 fi
15933 else
15934 pkg_failed=untried
15935 fi
15936
15937
15938
15939 if test $pkg_failed = yes; then
15940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15941 printf "%s\n" "no" >&6; }
15942
15943 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15944 _pkg_short_errors_supported=yes
15945 else
15946 _pkg_short_errors_supported=no
15947 fi
15948 if test $_pkg_short_errors_supported = yes; then
15949 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gnutls >= 1.4.4" 2>&1`
15950 else
15951 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gnutls >= 1.4.4" 2>&1`
15952 fi
15953 # Put the nasty error message in config.log where it belongs
15954 echo "$GNUTLS_PKG_ERRORS" >&5
15955
15956 if test "$enable_crypto" = "yes"; then
15957 as_fn_error $? "ntfsprogs crypto code requires the gnutls library." "$LINENO" 5
15958 else
15959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ntfsprogs crypto code requires the gnutls library." >&5
15960 printf "%s\n" "$as_me: WARNING: ntfsprogs crypto code requires the gnutls library." >&2;}
15961 fi
15962
15963 elif test $pkg_failed = untried; then
15964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15965 printf "%s\n" "no" >&6; }
15966 if test "$enable_crypto" = "yes"; then
15967 as_fn_error $? "ntfsprogs crypto code requires the gnutls library." "$LINENO" 5
15968 else
15969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ntfsprogs crypto code requires the gnutls library." >&5
15970 printf "%s\n" "$as_me: WARNING: ntfsprogs crypto code requires the gnutls library." >&2;}
15971 fi
15972
15973 else
15974 GNUTLS_CFLAGS=$pkg_cv_GNUTLS_CFLAGS
15975 GNUTLS_LIBS=$pkg_cv_GNUTLS_LIBS
15976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15977 printf "%s\n" "yes" >&6; }
15978 have_libgnutls=true
15979 fi
15980 if test "$have_libgcrypt" = "true"; then
15981 if test "$have_libgnutls" = "true"; then
15982 compile_crypto=true
15983
15984 printf "%s\n" "#define ENABLE_CRYPTO 1" >>confdefs.h
15985
15986 fi
15987 fi
15988 fi
15989 if $compile_crypto; then
15990 ENABLE_CRYPTO_TRUE=
15991 ENABLE_CRYPTO_FALSE='#'
15992 else
15993 ENABLE_CRYPTO_TRUE='#'
15994 ENABLE_CRYPTO_FALSE=
15995 fi
15996
15997
15998 # add --with-extra-includes and --with-extra-libs switch to ./configure
15999 all_libraries="$all_libraries $USER_LDFLAGS"
16000 all_includes="$all_includes $USER_INCLUDES"
16001
16002
16003
16004 # Specify support for generating DCE compliant UUIDs (aka GUIDs). We check if
16005 # uuid/uuid.h header is present and the uuid library is present that goes with
16006 # it and then check if uuid_generate() is present and usable.
16007 #
16008 # DCE UUIDs are enabled by default and can be disabled with the --disable-uuid
16009 # option to the configure script.
16010
16011 # Check whether --with-uuid was given.
16012 if test ${with_uuid+y}
16013 then :
16014 withval=$with_uuid; if test "$with_uuid" = "yes"; then
16015 extrapath=default
16016 elif test "$with_uuid" = "no"; then
16017 extrapath=
16018 else
16019 extrapath=$with_uuid
16020 fi
16021 else case e in #(
16022 e) extrapath=default
16023 ;;
16024 esac
16025 fi
16026
16027 if test "x$extrapath" != "x"; then
16028 if test "x$extrapath" != "xdefault"; then
16029 MKNTFS_CPPFLAGS="$MKNTFS_CPPFLAGS -I$extrapath/include"
16030 MKNTFS_LIBS="$MKNTFS_LIBS -L$extrapath/lib"
16031 fi
16032
16033 search_for_luuid="yes"
16034 ac_fn_c_check_header_compile "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
16035 if test "x$ac_cv_header_uuid_uuid_h" = xyes
16036 then :
16037
16038 else case e in #(
16039 e)
16040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ntfsprogs DCE compliant UUID generation code requires the uuid library." >&5
16041 printf "%s\n" "$as_me: WARNING: ntfsprogs DCE compliant UUID generation code requires the uuid library." >&2;}
16042 search_for_luuid="no"
16043 ;;
16044 esac
16045 fi
16046
16047
16048 if test "x$search_for_luuid" != "xno"; then
16049 # Look for uuid_generate in the standard C library.
16050 ac_fn_c_check_func "$LINENO" "uuid_generate" "ac_cv_func_uuid_generate"
16051 if test "x$ac_cv_func_uuid_generate" = xyes
16052 then :
16053
16054
16055 printf "%s\n" "#define ENABLE_UUID 1" >>confdefs.h
16056
16057 search_for_luuid="no"
16058
16059 fi
16060
16061 fi
16062
16063 if test "x$search_for_luuid" != "xno"; then
16064 # Look for uuid_generate in the 'uuid' library.
16065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
16066 printf %s "checking for uuid_generate in -luuid... " >&6; }
16067 if test ${ac_cv_lib_uuid_uuid_generate+y}
16068 then :
16069 printf %s "(cached) " >&6
16070 else case e in #(
16071 e) ac_check_lib_save_LIBS=$LIBS
16072 LIBS="-luuid $LIBS"
16073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16074 /* end confdefs.h. */
16075
16076 /* Override any GCC internal prototype to avoid an error.
16077 Use char because int might match the return type of a GCC
16078 builtin and then its argument prototype would still apply.
16079 The 'extern "C"' is for builds by C++ compilers;
16080 although this is not generally supported in C code supporting it here
16081 has little cost and some practical benefit (sr 110532). */
16082 #ifdef __cplusplus
16083 extern "C"
16084 #endif
16085 char uuid_generate (void);
16086 int
16087 main (void)
16088 {
16089 return uuid_generate ();
16090 ;
16091 return 0;
16092 }
16093 _ACEOF
16094 if ac_fn_c_try_link "$LINENO"
16095 then :
16096 ac_cv_lib_uuid_uuid_generate=yes
16097 else case e in #(
16098 e) ac_cv_lib_uuid_uuid_generate=no ;;
16099 esac
16100 fi
16101 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16102 conftest$ac_exeext conftest.$ac_ext
16103 LIBS=$ac_check_lib_save_LIBS ;;
16104 esac
16105 fi
16106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
16107 printf "%s\n" "$ac_cv_lib_uuid_uuid_generate" >&6; }
16108 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes
16109 then :
16110
16111
16112 printf "%s\n" "#define ENABLE_UUID 1" >>confdefs.h
16113
16114 MKNTFS_LIBS="$MKNTFS_LIBS -luuid"
16115 search_for_luuid="no"
16116
16117 fi
16118
16119 fi
16120
16121 if test "x$search_for_luuid" != "xno"; then
16122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ntfsprogs DCE compliant UUID generation code requires the uuid library." >&5
16123 printf "%s\n" "$as_me: WARNING: ntfsprogs DCE compliant UUID generation code requires the uuid library." >&2;}
16124 fi
16125 fi
16126
16127 # Specify support for obtaining the correct BIOS legacy geometry needed for
16128 # Windows to boot in CHS mode. We check if hd.h header is present and the hd
16129 # library is present that goes with it and then check if the hd_list() function
16130 # is present and usable.
16131 #
16132 # Using the hd library is enabled by default and can be disabled with the
16133 # --disable-hd option to the configure script.
16134
16135 # Check whether --with-hd was given.
16136 if test ${with_hd+y}
16137 then :
16138 withval=$with_hd; if test "$with_hd" = "yes"; then
16139 extrapath2=default
16140 elif test "$with_hd" = "no"; then
16141 extrapath2=
16142 else
16143 extrapath2=$with_hd
16144 fi
16145 else case e in #(
16146 e) extrapath2=default
16147 ;;
16148 esac
16149 fi
16150
16151 if test "x$extrapath2" != "x"; then
16152 if test "x$extrapath2" != "xdefault"; then
16153 LIBNTFS_CPPFLAGS="$LIBNTFS_CPPFLAGS -I$extrapath2/include"
16154 LIBNTFS_LIBS="$LIBNTFS_LIBS -L$extrapath2/lib"
16155 fi
16156 ac_fn_c_check_header_compile "$LINENO" "hd.h" "ac_cv_header_hd_h" "$ac_includes_default"
16157 if test "x$ac_cv_header_hd_h" = xyes
16158 then :
16159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hd_list in -lhd" >&5
16160 printf %s "checking for hd_list in -lhd... " >&6; }
16161 if test ${ac_cv_lib_hd_hd_list+y}
16162 then :
16163 printf %s "(cached) " >&6
16164 else case e in #(
16165 e) ac_check_lib_save_LIBS=$LIBS
16166 LIBS="-lhd $LIBS"
16167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16168 /* end confdefs.h. */
16169
16170 /* Override any GCC internal prototype to avoid an error.
16171 Use char because int might match the return type of a GCC
16172 builtin and then its argument prototype would still apply.
16173 The 'extern "C"' is for builds by C++ compilers;
16174 although this is not generally supported in C code supporting it here
16175 has little cost and some practical benefit (sr 110532). */
16176 #ifdef __cplusplus
16177 extern "C"
16178 #endif
16179 char hd_list (void);
16180 int
16181 main (void)
16182 {
16183 return hd_list ();
16184 ;
16185 return 0;
16186 }
16187 _ACEOF
16188 if ac_fn_c_try_link "$LINENO"
16189 then :
16190 ac_cv_lib_hd_hd_list=yes
16191 else case e in #(
16192 e) ac_cv_lib_hd_hd_list=no ;;
16193 esac
16194 fi
16195 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16196 conftest$ac_exeext conftest.$ac_ext
16197 LIBS=$ac_check_lib_save_LIBS ;;
16198 esac
16199 fi
16200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hd_hd_list" >&5
16201 printf "%s\n" "$ac_cv_lib_hd_hd_list" >&6; }
16202 if test "x$ac_cv_lib_hd_hd_list" = xyes
16203 then :
16204
16205 printf "%s\n" "#define ENABLE_HD 1" >>confdefs.h
16206
16207 LIBNTFS_LIBS="$LIBNTFS_LIBS -lhd"
16208 NTFSPROGS_STATIC_LIBS="$NTFSPROGS_STATIC_LIBS -lhd"
16209 else case e in #(
16210 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ntfsprogs Windows compliant geometry code requires the hd library." >&5
16211 printf "%s\n" "$as_me: WARNING: ntfsprogs Windows compliant geometry code requires the hd library." >&2;} ;;
16212 esac
16213 fi
16214
16215 else case e in #(
16216 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ntfsprogs Windows compliant geometry code requires the hd library." >&5
16217 printf "%s\n" "$as_me: WARNING: ntfsprogs Windows compliant geometry code requires the hd library." >&2;} ;;
16218 esac
16219 fi
16220
16221 fi
16222
16223 # Checks for header files.
16224 # Autoupdate added the next two lines to ensure that your configure
16225 # script's behavior did not change. They are probably safe to remove.
16226
16227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
16228 printf %s "checking for egrep... " >&6; }
16229 if test ${ac_cv_path_EGREP+y}
16230 then :
16231 printf %s "(cached) " >&6
16232 else case e in #(
16233 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
16234 then ac_cv_path_EGREP="$GREP -E"
16235 else
16236 if test -z "$EGREP"; then
16237 ac_path_EGREP_found=false
16238 # Loop through the user's path and test for each of PROGNAME-LIST
16239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16240 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
16241 do
16242 IFS=$as_save_IFS
16243 case $as_dir in #(((
16244 '') as_dir=./ ;;
16245 */) ;;
16246 *) as_dir=$as_dir/ ;;
16247 esac
16248 for ac_prog in egrep
16249 do
16250 for ac_exec_ext in '' $ac_executable_extensions; do
16251 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
16252 as_fn_executable_p "$ac_path_EGREP" || continue
16253 # Check for GNU ac_path_EGREP and select it if it is found.
16254 # Check for GNU $ac_path_EGREP
16255 case `"$ac_path_EGREP" --version 2>&1` in #(
16256 *GNU*)
16257 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
16258 #(
16259 *)
16260 ac_count=0
16261 printf %s 0123456789 >"conftest.in"
16262 while :
16263 do
16264 cat "conftest.in" "conftest.in" >"conftest.tmp"
16265 mv "conftest.tmp" "conftest.in"
16266 cp "conftest.in" "conftest.nl"
16267 printf "%s\n" 'EGREP' >> "conftest.nl"
16268 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
16269 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
16270 as_fn_arith $ac_count + 1 && ac_count=$as_val
16271 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
16272 # Best one so far, save it but keep looking for a better one
16273 ac_cv_path_EGREP="$ac_path_EGREP"
16274 ac_path_EGREP_max=$ac_count
16275 fi
16276 # 10*(2^10) chars as input seems more than enough
16277 test $ac_count -gt 10 && break
16278 done
16279 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
16280 esac
16281
16282 $ac_path_EGREP_found && break 3
16283 done
16284 done
16285 done
16286 IFS=$as_save_IFS
16287 if test -z "$ac_cv_path_EGREP"; then
16288 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
16289 fi
16290 else
16291 ac_cv_path_EGREP=$EGREP
16292 fi
16293
16294 fi ;;
16295 esac
16296 fi
16297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
16298 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
16299 EGREP="$ac_cv_path_EGREP"
16300
16301 EGREP_TRADITIONAL=$EGREP
16302 ac_cv_path_EGREP_TRADITIONAL=$EGREP
16303
16304
16305
16306 ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
16307 if test "x$ac_cv_header_sys_mkdev_h" = xyes
16308 then :
16309
16310 printf "%s\n" "#define MAJOR_IN_MKDEV 1" >>confdefs.h
16311
16312 fi
16313
16314 if test $ac_cv_header_sys_mkdev_h = no; then
16315 ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
16316 if test "x$ac_cv_header_sys_sysmacros_h" = xyes
16317 then :
16318
16319 printf "%s\n" "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
16320
16321 fi
16322
16323 fi
16324
16325 ac_fn_c_check_header_compile "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
16326 if test "x$ac_cv_header_ctype_h" = xyes
16327 then :
16328 printf "%s\n" "#define HAVE_CTYPE_H 1" >>confdefs.h
16329
16330 fi
16331 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
16332 if test "x$ac_cv_header_fcntl_h" = xyes
16333 then :
16334 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
16335
16336 fi
16337 ac_fn_c_check_header_compile "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
16338 if test "x$ac_cv_header_libgen_h" = xyes
16339 then :
16340 printf "%s\n" "#define HAVE_LIBGEN_H 1" >>confdefs.h
16341
16342 fi
16343 ac_fn_c_check_header_compile "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
16344 if test "x$ac_cv_header_libintl_h" = xyes
16345 then :
16346 printf "%s\n" "#define HAVE_LIBINTL_H 1" >>confdefs.h
16347
16348 fi
16349 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
16350 if test "x$ac_cv_header_limits_h" = xyes
16351 then :
16352 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
16353
16354 fi
16355 ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
16356 if test "x$ac_cv_header_locale_h" = xyes
16357 then :
16358 printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h
16359
16360 fi
16361 ac_fn_c_check_header_compile "$LINENO" "mntent.h" "ac_cv_header_mntent_h" "$ac_includes_default"
16362 if test "x$ac_cv_header_mntent_h" = xyes
16363 then :
16364 printf "%s\n" "#define HAVE_MNTENT_H 1" >>confdefs.h
16365
16366 fi
16367 ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
16368 if test "x$ac_cv_header_stddef_h" = xyes
16369 then :
16370 printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
16371
16372 fi
16373 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
16374 if test "x$ac_cv_header_stdint_h" = xyes
16375 then :
16376 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
16377
16378 fi
16379 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
16380 if test "x$ac_cv_header_stdlib_h" = xyes
16381 then :
16382 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
16383
16384 fi
16385 ac_fn_c_check_header_compile "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
16386 if test "x$ac_cv_header_stdio_h" = xyes
16387 then :
16388 printf "%s\n" "#define HAVE_STDIO_H 1" >>confdefs.h
16389
16390 fi
16391 ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
16392 if test "x$ac_cv_header_stdarg_h" = xyes
16393 then :
16394 printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
16395
16396 fi
16397 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
16398 if test "x$ac_cv_header_string_h" = xyes
16399 then :
16400 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
16401
16402 fi
16403 ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
16404 if test "x$ac_cv_header_strings_h" = xyes
16405 then :
16406 printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
16407
16408 fi
16409 ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
16410 if test "x$ac_cv_header_errno_h" = xyes
16411 then :
16412 printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
16413
16414 fi
16415 ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
16416 if test "x$ac_cv_header_time_h" = xyes
16417 then :
16418 printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h
16419
16420 fi
16421 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
16422 if test "x$ac_cv_header_unistd_h" = xyes
16423 then :
16424 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
16425
16426 fi
16427 ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default"
16428 if test "x$ac_cv_header_utime_h" = xyes
16429 then :
16430 printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h
16431
16432 fi
16433 ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
16434 if test "x$ac_cv_header_wchar_h" = xyes
16435 then :
16436 printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
16437
16438 fi
16439 ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
16440 if test "x$ac_cv_header_getopt_h" = xyes
16441 then :
16442 printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h
16443
16444 fi
16445 ac_fn_c_check_header_compile "$LINENO" "features.h" "ac_cv_header_features_h" "$ac_includes_default"
16446 if test "x$ac_cv_header_features_h" = xyes
16447 then :
16448 printf "%s\n" "#define HAVE_FEATURES_H 1" >>confdefs.h
16449
16450 fi
16451 ac_fn_c_check_header_compile "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
16452 if test "x$ac_cv_header_regex_h" = xyes
16453 then :
16454 printf "%s\n" "#define HAVE_REGEX_H 1" >>confdefs.h
16455
16456 fi
16457 ac_fn_c_check_header_compile "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
16458 if test "x$ac_cv_header_endian_h" = xyes
16459 then :
16460 printf "%s\n" "#define HAVE_ENDIAN_H 1" >>confdefs.h
16461
16462 fi
16463 ac_fn_c_check_header_compile "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
16464 if test "x$ac_cv_header_byteswap_h" = xyes
16465 then :
16466 printf "%s\n" "#define HAVE_BYTESWAP_H 1" >>confdefs.h
16467
16468 fi
16469 ac_fn_c_check_header_compile "$LINENO" "sys/byteorder.h" "ac_cv_header_sys_byteorder_h" "$ac_includes_default"
16470 if test "x$ac_cv_header_sys_byteorder_h" = xyes
16471 then :
16472 printf "%s\n" "#define HAVE_SYS_BYTEORDER_H 1" >>confdefs.h
16473
16474 fi
16475 ac_fn_c_check_header_compile "$LINENO" "sys/disk.h" "ac_cv_header_sys_disk_h" "$ac_includes_default"
16476 if test "x$ac_cv_header_sys_disk_h" = xyes
16477 then :
16478 printf "%s\n" "#define HAVE_SYS_DISK_H 1" >>confdefs.h
16479
16480 fi
16481 ac_fn_c_check_header_compile "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default"
16482 if test "x$ac_cv_header_sys_endian_h" = xyes
16483 then :
16484 printf "%s\n" "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h
16485
16486 fi
16487 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
16488 if test "x$ac_cv_header_sys_param_h" = xyes
16489 then :
16490 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
16491
16492 fi
16493 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
16494 if test "x$ac_cv_header_sys_ioctl_h" = xyes
16495 then :
16496 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
16497
16498 fi
16499 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default"
16500 if test "x$ac_cv_header_sys_mount_h" = xyes
16501 then :
16502 printf "%s\n" "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h
16503
16504 fi
16505 ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
16506 if test "x$ac_cv_header_sys_stat_h" = xyes
16507 then :
16508 printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
16509
16510 fi
16511 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
16512 if test "x$ac_cv_header_sys_types_h" = xyes
16513 then :
16514 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
16515
16516 fi
16517 ac_fn_c_check_header_compile "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default"
16518 if test "x$ac_cv_header_sys_vfs_h" = xyes
16519 then :
16520 printf "%s\n" "#define HAVE_SYS_VFS_H 1" >>confdefs.h
16521
16522 fi
16523 ac_fn_c_check_header_compile "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
16524 if test "x$ac_cv_header_sys_statvfs_h" = xyes
16525 then :
16526 printf "%s\n" "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
16527
16528 fi
16529 ac_fn_c_check_header_compile "$LINENO" "linux/major.h" "ac_cv_header_linux_major_h" "$ac_includes_default"
16530 if test "x$ac_cv_header_linux_major_h" = xyes
16531 then :
16532 printf "%s\n" "#define HAVE_LINUX_MAJOR_H 1" >>confdefs.h
16533
16534 fi
16535 ac_fn_c_check_header_compile "$LINENO" "linux/fd.h" "ac_cv_header_linux_fd_h" "$ac_includes_default"
16536 if test "x$ac_cv_header_linux_fd_h" = xyes
16537 then :
16538 printf "%s\n" "#define HAVE_LINUX_FD_H 1" >>confdefs.h
16539
16540 fi
16541 ac_fn_c_check_header_compile "$LINENO" "linux/fs.h" "ac_cv_header_linux_fs_h" "$ac_includes_default"
16542 if test "x$ac_cv_header_linux_fs_h" = xyes
16543 then :
16544 printf "%s\n" "#define HAVE_LINUX_FS_H 1" >>confdefs.h
16545
16546 fi
16547 ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
16548 if test "x$ac_cv_header_inttypes_h" = xyes
16549 then :
16550 printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
16551
16552 fi
16553 ac_fn_c_check_header_compile "$LINENO" "linux/hdreg.h" "ac_cv_header_linux_hdreg_h" "$ac_includes_default"
16554 if test "x$ac_cv_header_linux_hdreg_h" = xyes
16555 then :
16556 printf "%s\n" "#define HAVE_LINUX_HDREG_H 1" >>confdefs.h
16557
16558 fi
16559 ac_fn_c_check_header_compile "$LINENO" "machine/endian.h" "ac_cv_header_machine_endian_h" "$ac_includes_default"
16560 if test "x$ac_cv_header_machine_endian_h" = xyes
16561 then :
16562 printf "%s\n" "#define HAVE_MACHINE_ENDIAN_H 1" >>confdefs.h
16563
16564 fi
16565 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
16566 if test "x$ac_cv_header_windows_h" = xyes
16567 then :
16568 printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h
16569
16570 fi
16571 ac_fn_c_check_header_compile "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
16572 if test "x$ac_cv_header_syslog_h" = xyes
16573 then :
16574 printf "%s\n" "#define HAVE_SYSLOG_H 1" >>confdefs.h
16575
16576 fi
16577 ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
16578 if test "x$ac_cv_header_pwd_h" = xyes
16579 then :
16580 printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h
16581
16582 fi
16583 ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
16584 if test "x$ac_cv_header_malloc_h" = xyes
16585 then :
16586 printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
16587
16588 fi
16589
16590
16591 # Checks for typedefs, structures, and compiler characteristics.
16592 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
16593 if test "x$ac_cv_type__Bool" = xyes
16594 then :
16595
16596 printf "%s\n" "#define HAVE__BOOL 1" >>confdefs.h
16597
16598
16599 fi
16600
16601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99 or later" >&5
16602 printf %s "checking for stdbool.h that conforms to C99 or later... " >&6; }
16603 if test ${ac_cv_header_stdbool_h+y}
16604 then :
16605 printf %s "(cached) " >&6
16606 else case e in #(
16607 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16608 /* end confdefs.h. */
16609 #include <stdbool.h>
16610
16611 /* "true" and "false" should be usable in #if expressions and
16612 integer constant expressions, and "bool" should be a valid
16613 type name.
16614
16615 Although C99 requires bool, true, and false to be macros,
16616 C23 and C++11 overrule that, so do not test for that.
16617 Although C99 requires __bool_true_false_are_defined and
16618 _Bool, C23 says they are obsolescent, so do not require
16619 them. */
16620
16621 #if !true
16622 #error "'true' is not true"
16623 #endif
16624 #if true != 1
16625 #error "'true' is not equal to 1"
16626 #endif
16627 char b[true == 1 ? 1 : -1];
16628 char c[true];
16629
16630 #if false
16631 #error "'false' is not false"
16632 #endif
16633 #if false != 0
16634 #error "'false' is not equal to 0"
16635 #endif
16636 char d[false == 0 ? 1 : -1];
16637
16638 enum { e = false, f = true, g = false * true, h = true * 256 };
16639
16640 char i[(bool) 0.5 == true ? 1 : -1];
16641 char j[(bool) 0.0 == false ? 1 : -1];
16642 char k[sizeof (bool) > 0 ? 1 : -1];
16643
16644 struct sb { bool s: 1; bool t; } s;
16645 char l[sizeof s.t > 0 ? 1 : -1];
16646
16647 /* The following fails for
16648 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
16649 bool m[h];
16650 char n[sizeof m == h * sizeof m[0] ? 1 : -1];
16651 char o[-1 - (bool) 0 < 0 ? 1 : -1];
16652 /* Catch a bug in an HP-UX C compiler. See
16653 https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
16654 https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html
16655 */
16656 bool p = true;
16657 bool *pp = &p;
16658
16659 int
16660 main (void)
16661 {
16662
16663 bool ps = &s;
16664 *pp |= p;
16665 *pp |= ! p;
16666
16667 /* Refer to every declared value, so they cannot be
16668 discarded as unused. */
16669 return (!b + !c + !d + !e + !f + !g + !h + !i + !j + !k
16670 + !l + !m + !n + !o + !p + !pp + !ps);
16671
16672 ;
16673 return 0;
16674 }
16675 _ACEOF
16676 if ac_fn_c_try_compile "$LINENO"
16677 then :
16678 ac_cv_header_stdbool_h=yes
16679 else case e in #(
16680 e) ac_cv_header_stdbool_h=no ;;
16681 esac
16682 fi
16683 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16684 esac
16685 fi
16686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
16687 printf "%s\n" "$ac_cv_header_stdbool_h" >&6; }
16688
16689 if test $ac_cv_header_stdbool_h = yes; then
16690
16691 printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
16692
16693 fi
16694
16695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16696 printf %s "checking whether byte ordering is bigendian... " >&6; }
16697 if test ${ac_cv_c_bigendian+y}
16698 then :
16699 printf %s "(cached) " >&6
16700 else case e in #(
16701 e) ac_cv_c_bigendian=unknown
16702 # See if we're dealing with a universal compiler.
16703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16704 /* end confdefs.h. */
16705 #ifndef __APPLE_CC__
16706 not a universal capable compiler
16707 #endif
16708 typedef int dummy;
16709
16710 _ACEOF
16711 if ac_fn_c_try_compile "$LINENO"
16712 then :
16713
16714 # Check for potential -arch flags. It is not universal unless
16715 # there are at least two -arch flags with different values.
16716 ac_arch=
16717 ac_prev=
16718 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16719 if test -n "$ac_prev"; then
16720 case $ac_word in
16721 i?86 | x86_64 | ppc | ppc64)
16722 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16723 ac_arch=$ac_word
16724 else
16725 ac_cv_c_bigendian=universal
16726 break
16727 fi
16728 ;;
16729 esac
16730 ac_prev=
16731 elif test "x$ac_word" = "x-arch"; then
16732 ac_prev=arch
16733 fi
16734 done
16735 fi
16736 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16737 if test $ac_cv_c_bigendian = unknown; then
16738 # See if sys/param.h defines the BYTE_ORDER macro.
16739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16740 /* end confdefs.h. */
16741 #include <sys/types.h>
16742 #include <sys/param.h>
16743
16744 int
16745 main (void)
16746 {
16747 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \\
16748 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \\
16749 && LITTLE_ENDIAN)
16750 bogus endian macros
16751 #endif
16752
16753 ;
16754 return 0;
16755 }
16756 _ACEOF
16757 if ac_fn_c_try_compile "$LINENO"
16758 then :
16759 # It does; now see whether it defined to BIG_ENDIAN or not.
16760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16761 /* end confdefs.h. */
16762 #include <sys/types.h>
16763 #include <sys/param.h>
16764
16765 int
16766 main (void)
16767 {
16768 #if BYTE_ORDER != BIG_ENDIAN
16769 not big endian
16770 #endif
16771
16772 ;
16773 return 0;
16774 }
16775 _ACEOF
16776 if ac_fn_c_try_compile "$LINENO"
16777 then :
16778 ac_cv_c_bigendian=yes
16779 else case e in #(
16780 e) ac_cv_c_bigendian=no ;;
16781 esac
16782 fi
16783 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16784 fi
16785 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16786 fi
16787 if test $ac_cv_c_bigendian = unknown; then
16788 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16790 /* end confdefs.h. */
16791 #include <limits.h>
16792
16793 int
16794 main (void)
16795 {
16796 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16797 bogus endian macros
16798 #endif
16799
16800 ;
16801 return 0;
16802 }
16803 _ACEOF
16804 if ac_fn_c_try_compile "$LINENO"
16805 then :
16806 # It does; now see whether it defined to _BIG_ENDIAN or not.
16807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16808 /* end confdefs.h. */
16809 #include <limits.h>
16810
16811 int
16812 main (void)
16813 {
16814 #ifndef _BIG_ENDIAN
16815 not big endian
16816 #endif
16817
16818 ;
16819 return 0;
16820 }
16821 _ACEOF
16822 if ac_fn_c_try_compile "$LINENO"
16823 then :
16824 ac_cv_c_bigendian=yes
16825 else case e in #(
16826 e) ac_cv_c_bigendian=no ;;
16827 esac
16828 fi
16829 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16830 fi
16831 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16832 fi
16833 if test $ac_cv_c_bigendian = unknown; then
16834 # Compile a test program.
16835 if test "$cross_compiling" = yes
16836 then :
16837 # Try to guess by grepping values from an object file.
16838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16839 /* end confdefs.h. */
16840 unsigned short int ascii_mm[] =
16841 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16842 unsigned short int ascii_ii[] =
16843 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16844 int use_ascii (int i) {
16845 return ascii_mm[i] + ascii_ii[i];
16846 }
16847 unsigned short int ebcdic_ii[] =
16848 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16849 unsigned short int ebcdic_mm[] =
16850 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16851 int use_ebcdic (int i) {
16852 return ebcdic_mm[i] + ebcdic_ii[i];
16853 }
16854 int
16855 main (int argc, char **argv)
16856 {
16857 /* Intimidate the compiler so that it does not
16858 optimize the arrays away. */
16859 char *p = argv[0];
16860 ascii_mm[1] = *p++; ebcdic_mm[1] = *p++;
16861 ascii_ii[1] = *p++; ebcdic_ii[1] = *p++;
16862 return use_ascii (argc) == use_ebcdic (*p);
16863 }
16864 _ACEOF
16865 if ac_fn_c_try_link "$LINENO"
16866 then :
16867 if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then
16868 ac_cv_c_bigendian=yes
16869 fi
16870 if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then
16871 if test "$ac_cv_c_bigendian" = unknown; then
16872 ac_cv_c_bigendian=no
16873 else
16874 # finding both strings is unlikely to happen, but who knows?
16875 ac_cv_c_bigendian=unknown
16876 fi
16877 fi
16878 fi
16879 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16880 conftest$ac_exeext conftest.$ac_ext
16881 else case e in #(
16882 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16883 /* end confdefs.h. */
16884 $ac_includes_default
16885 int
16886 main (void)
16887 {
16888
16889 /* Are we little or big endian? From Harbison&Steele. */
16890 union
16891 {
16892 long int l;
16893 char c[sizeof (long int)];
16894 } u;
16895 u.l = 1;
16896 return u.c[sizeof (long int) - 1] == 1;
16897
16898 ;
16899 return 0;
16900 }
16901 _ACEOF
16902 if ac_fn_c_try_run "$LINENO"
16903 then :
16904 ac_cv_c_bigendian=no
16905 else case e in #(
16906 e) ac_cv_c_bigendian=yes ;;
16907 esac
16908 fi
16909 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16910 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16911 esac
16912 fi
16913
16914 fi ;;
16915 esac
16916 fi
16917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16918 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
16919 case $ac_cv_c_bigendian in #(
16920 yes)
16921 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
16922 ;; #(
16923 no)
16924
16925
16926 printf "%s\n" "#define WORDS_LITTLEENDIAN 1" >>confdefs.h
16927
16928
16929 ;; #(
16930 universal)
16931
16932 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16933
16934 ;; #(
16935 *)
16936 as_fn_error $? "unknown endianness
16937 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16938 esac
16939
16940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16941 printf %s "checking for an ANSI C-conforming const... " >&6; }
16942 if test ${ac_cv_c_const+y}
16943 then :
16944 printf %s "(cached) " >&6
16945 else case e in #(
16946 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16947 /* end confdefs.h. */
16948
16949 int
16950 main (void)
16951 {
16952
16953 #ifndef __cplusplus
16954 /* Ultrix mips cc rejects this sort of thing. */
16955 typedef int charset[2];
16956 const charset cs = { 0, 0 };
16957 /* SunOS 4.1.1 cc rejects this. */
16958 char const *const *pcpcc;
16959 char **ppc;
16960 /* NEC SVR4.0.2 mips cc rejects this. */
16961 struct point {int x, y;};
16962 static struct point const zero = {0,0};
16963 /* IBM XL C 1.02.0.0 rejects this.
16964 It does not let you subtract one const X* pointer from another in
16965 an arm of an if-expression whose if-part is not a constant
16966 expression */
16967 const char *g = "string";
16968 pcpcc = &g + (g ? g-g : 0);
16969 /* HPUX 7.0 cc rejects these. */
16970 ++pcpcc;
16971 ppc = (char**) pcpcc;
16972 pcpcc = (char const *const *) ppc;
16973 { /* SCO 3.2v4 cc rejects this sort of thing. */
16974 char tx;
16975 char *t = &tx;
16976 char const *s = 0 ? (char *) 0 : (char const *) 0;
16977
16978 *t++ = 0;
16979 if (s) return 0;
16980 }
16981 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16982 int x[] = {25, 17};
16983 const int *foo = &x[0];
16984 ++foo;
16985 }
16986 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16987 typedef const int *iptr;
16988 iptr p = 0;
16989 ++p;
16990 }
16991 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
16992 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16993 struct s { int j; const int *ap[3]; } bx;
16994 struct s *b = &bx; b->j = 5;
16995 }
16996 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16997 const int foo = 10;
16998 if (!foo) return 0;
16999 }
17000 return !cs[0] && !zero.x;
17001 #endif
17002
17003 ;
17004 return 0;
17005 }
17006 _ACEOF
17007 if ac_fn_c_try_compile "$LINENO"
17008 then :
17009 ac_cv_c_const=yes
17010 else case e in #(
17011 e) ac_cv_c_const=no ;;
17012 esac
17013 fi
17014 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17015 esac
17016 fi
17017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17018 printf "%s\n" "$ac_cv_c_const" >&6; }
17019 if test $ac_cv_c_const = no; then
17020
17021 printf "%s\n" "#define const /**/" >>confdefs.h
17022
17023 fi
17024
17025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
17026 printf %s "checking for inline... " >&6; }
17027 if test ${ac_cv_c_inline+y}
17028 then :
17029 printf %s "(cached) " >&6
17030 else case e in #(
17031 e) ac_cv_c_inline=no
17032 for ac_kw in inline __inline__ __inline; do
17033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17034 /* end confdefs.h. */
17035 #ifndef __cplusplus
17036 typedef int foo_t;
17037 static $ac_kw foo_t static_foo (void) {return 0; }
17038 $ac_kw foo_t foo (void) {return 0; }
17039 #endif
17040
17041 _ACEOF
17042 if ac_fn_c_try_compile "$LINENO"
17043 then :
17044 ac_cv_c_inline=$ac_kw
17045 fi
17046 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17047 test "$ac_cv_c_inline" != no && break
17048 done
17049 ;;
17050 esac
17051 fi
17052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
17053 printf "%s\n" "$ac_cv_c_inline" >&6; }
17054
17055 case $ac_cv_c_inline in
17056 inline | yes) ;;
17057 *)
17058 case $ac_cv_c_inline in
17059 no) ac_val=;;
17060 *) ac_val=$ac_cv_c_inline;;
17061 esac
17062 cat >>confdefs.h <<_ACEOF
17063 #ifndef __cplusplus
17064 #define inline $ac_val
17065 #endif
17066 _ACEOF
17067 ;;
17068 esac
17069
17070 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
17071 if test "x$ac_cv_type_off_t" = xyes
17072 then :
17073
17074 else case e in #(
17075 e)
17076 printf "%s\n" "#define off_t long int" >>confdefs.h
17077 ;;
17078 esac
17079 fi
17080
17081 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17082 if test "x$ac_cv_type_size_t" = xyes
17083 then :
17084
17085 else case e in #(
17086 e)
17087 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
17088 ;;
17089 esac
17090 fi
17091
17092 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
17093 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
17094 then :
17095
17096 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BLOCKS 1" >>confdefs.h
17097
17098
17099 printf "%s\n" "#define HAVE_ST_BLOCKS 1" >>confdefs.h
17100
17101 else case e in #(
17102 e) case " $LIBOBJS " in
17103 *" fileblocks.$ac_objext "* ) ;;
17104 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
17105 ;;
17106 esac
17107 ;;
17108 esac
17109 fi
17110
17111
17112 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
17113 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes
17114 then :
17115
17116 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_RDEV 1" >>confdefs.h
17117
17118
17119 fi
17120
17121 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
17122 if test "x$ac_cv_member_struct_stat_st_atim" = xyes
17123 then :
17124
17125 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM 1" >>confdefs.h
17126
17127
17128 fi
17129
17130 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec" "ac_cv_member_struct_stat_st_atimespec" "$ac_includes_default"
17131 if test "x$ac_cv_member_struct_stat_st_atimespec" = xyes
17132 then :
17133
17134 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIMESPEC 1" >>confdefs.h
17135
17136
17137 fi
17138
17139 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "$ac_includes_default"
17140 if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes
17141 then :
17142
17143 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIMENSEC 1" >>confdefs.h
17144
17145
17146 fi
17147
17148
17149 # For the 'nfconv' patch (Mac OS X only):
17150 case "${target_os}" in
17151 darwin*)
17152 if test "${enable_nfconv}" = "yes"; then
17153 ac_fn_c_check_header_compile "$LINENO" "CoreFoundation/CoreFoundation.h" "ac_cv_header_CoreFoundation_CoreFoundation_h" "$ac_includes_default"
17154 if test "x$ac_cv_header_CoreFoundation_CoreFoundation_h" = xyes
17155 then :
17156
17157 LDFLAGS="${LDFLAGS} -framework CoreFoundation"
17158
17159 printf "%s\n" "#define ENABLE_NFCONV 1" >>confdefs.h
17160
17161
17162 else case e in #(
17163 e) 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
17164 ;;
17165 esac
17166 fi
17167
17168 fi
17169 ;;
17170 esac
17171
17172 # Checks for library functions.
17173 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
17174 # -lseq on Dynix/PTX, -lgen on Unixware.
17175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
17176 printf %s "checking for library containing getmntent... " >&6; }
17177 if test ${ac_cv_search_getmntent+y}
17178 then :
17179 printf %s "(cached) " >&6
17180 else case e in #(
17181 e) ac_func_search_save_LIBS=$LIBS
17182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17183 /* end confdefs.h. */
17184
17185 /* Override any GCC internal prototype to avoid an error.
17186 Use char because int might match the return type of a GCC
17187 builtin and then its argument prototype would still apply.
17188 The 'extern "C"' is for builds by C++ compilers;
17189 although this is not generally supported in C code supporting it here
17190 has little cost and some practical benefit (sr 110532). */
17191 #ifdef __cplusplus
17192 extern "C"
17193 #endif
17194 char getmntent (void);
17195 int
17196 main (void)
17197 {
17198 return getmntent ();
17199 ;
17200 return 0;
17201 }
17202 _ACEOF
17203 for ac_lib in '' sun seq gen
17204 do
17205 if test -z "$ac_lib"; then
17206 ac_res="none required"
17207 else
17208 ac_res=-l$ac_lib
17209 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17210 fi
17211 if ac_fn_c_try_link "$LINENO"
17212 then :
17213 ac_cv_search_getmntent=$ac_res
17214 fi
17215 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17216 conftest$ac_exeext
17217 if test ${ac_cv_search_getmntent+y}
17218 then :
17219 break
17220 fi
17221 done
17222 if test ${ac_cv_search_getmntent+y}
17223 then :
17224
17225 else case e in #(
17226 e) ac_cv_search_getmntent=no ;;
17227 esac
17228 fi
17229 rm conftest.$ac_ext
17230 LIBS=$ac_func_search_save_LIBS ;;
17231 esac
17232 fi
17233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
17234 printf "%s\n" "$ac_cv_search_getmntent" >&6; }
17235 ac_res=$ac_cv_search_getmntent
17236 if test "$ac_res" != no
17237 then :
17238 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17239 ac_cv_func_getmntent=yes
17240
17241 printf "%s\n" "#define HAVE_GETMNTENT 1" >>confdefs.h
17242
17243 else case e in #(
17244 e) ac_cv_func_getmntent=no ;;
17245 esac
17246 fi
17247
17248
17249
17250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
17251 printf %s "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
17252 if test ${ac_cv_func_mbrtowc+y}
17253 then :
17254 printf %s "(cached) " >&6
17255 else case e in #(
17256 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17257 /* end confdefs.h. */
17258 #include <wchar.h>
17259 int
17260 main (void)
17261 {
17262 wchar_t wc;
17263 char const s[] = "";
17264 size_t n = 1;
17265 mbstate_t state;
17266 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
17267 ;
17268 return 0;
17269 }
17270 _ACEOF
17271 if ac_fn_c_try_link "$LINENO"
17272 then :
17273 ac_cv_func_mbrtowc=yes
17274 else case e in #(
17275 e) ac_cv_func_mbrtowc=no ;;
17276 esac
17277 fi
17278 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17279 conftest$ac_exeext conftest.$ac_ext ;;
17280 esac
17281 fi
17282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5
17283 printf "%s\n" "$ac_cv_func_mbrtowc" >&6; }
17284 if test $ac_cv_func_mbrtowc = yes; then
17285
17286 printf "%s\n" "#define HAVE_MBRTOWC 1" >>confdefs.h
17287
17288 fi
17289
17290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
17291 printf %s "checking for working memcmp... " >&6; }
17292 if test ${ac_cv_func_memcmp_working+y}
17293 then :
17294 printf %s "(cached) " >&6
17295 else case e in #(
17296 e) if test "$cross_compiling" = yes
17297 then :
17298 ac_cv_func_memcmp_working=no
17299 else case e in #(
17300 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17301 /* end confdefs.h. */
17302 $ac_includes_default
17303 int
17304 main (void)
17305 {
17306
17307 /* Some versions of memcmp are not 8-bit clean. */
17308 char c0 = '\100', c1 = '\200', c2 = '\201';
17309 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
17310 return 1;
17311
17312 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
17313 or more and with at least one buffer not starting on a 4-byte boundary.
17314 William Lewis provided this test program. */
17315 {
17316 char foo[21];
17317 char bar[21];
17318 int i;
17319 for (i = 0; i < 4; i++)
17320 {
17321 char *a = foo + i;
17322 char *b = bar + i;
17323 strcpy (a, "--------01111111");
17324 strcpy (b, "--------10000000");
17325 if (memcmp (a, b, 16) >= 0)
17326 return 1;
17327 }
17328 return 0;
17329 }
17330
17331 ;
17332 return 0;
17333 }
17334 _ACEOF
17335 if ac_fn_c_try_run "$LINENO"
17336 then :
17337 ac_cv_func_memcmp_working=yes
17338 else case e in #(
17339 e) ac_cv_func_memcmp_working=no ;;
17340 esac
17341 fi
17342 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17343 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17344 esac
17345 fi
17346 ;;
17347 esac
17348 fi
17349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
17350 printf "%s\n" "$ac_cv_func_memcmp_working" >&6; }
17351 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
17352 *" memcmp.$ac_objext "* ) ;;
17353 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
17354 ;;
17355 esac
17356
17357
17358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
17359 printf %s "checking whether lstat correctly handles trailing slash... " >&6; }
17360 if test ${ac_cv_func_lstat_dereferences_slashed_symlink+y}
17361 then :
17362 printf %s "(cached) " >&6
17363 else case e in #(
17364 e) rm -f conftest.sym conftest.file
17365 echo >conftest.file
17366 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
17367 if test "$cross_compiling" = yes
17368 then :
17369 case "$host_os" in # ((
17370 # Guess yes on glibc systems.
17371 *-gnu*) ac_cv_func_lstat_dereferences_slashed_symlink=yes ;;
17372 # If we don't know, assume the worst.
17373 *) ac_cv_func_lstat_dereferences_slashed_symlink=no ;;
17374 esac
17375 else case e in #(
17376 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17377 /* end confdefs.h. */
17378 $ac_includes_default
17379 int
17380 main (void)
17381 {
17382 struct stat sbuf;
17383 /* Linux will dereference the symlink and fail, as required by POSIX.
17384 That is better in the sense that it means we will not
17385 have to compile and use the lstat wrapper. */
17386 return lstat ("conftest.sym/", &sbuf) == 0;
17387 ;
17388 return 0;
17389 }
17390 _ACEOF
17391 if ac_fn_c_try_run "$LINENO"
17392 then :
17393 ac_cv_func_lstat_dereferences_slashed_symlink=yes
17394 else case e in #(
17395 e) ac_cv_func_lstat_dereferences_slashed_symlink=no ;;
17396 esac
17397 fi
17398 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17399 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17400 esac
17401 fi
17402
17403 else
17404 # If the 'ln -s' command failed, then we probably don't even
17405 # have an lstat function.
17406 ac_cv_func_lstat_dereferences_slashed_symlink=no
17407 fi
17408 rm -f conftest.sym conftest.file
17409 ;;
17410 esac
17411 fi
17412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
17413 printf "%s\n" "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
17414
17415 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
17416
17417 printf "%s\n" "#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1" >>confdefs.h
17418
17419
17420 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
17421 case " $LIBOBJS " in
17422 *" lstat.$ac_objext "* ) ;;
17423 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
17424 ;;
17425 esac
17426
17427 fi
17428
17429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
17430 printf %s "checking whether stat accepts an empty string... " >&6; }
17431 if test ${ac_cv_func_stat_empty_string_bug+y}
17432 then :
17433 printf %s "(cached) " >&6
17434 else case e in #(
17435 e) if test "$cross_compiling" = yes
17436 then :
17437 ac_cv_func_stat_empty_string_bug=yes
17438 else case e in #(
17439 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17440 /* end confdefs.h. */
17441 $ac_includes_default
17442 int
17443 main (void)
17444 {
17445 struct stat sbuf;
17446 return stat ("", &sbuf) == 0;
17447 ;
17448 return 0;
17449 }
17450 _ACEOF
17451 if ac_fn_c_try_run "$LINENO"
17452 then :
17453 ac_cv_func_stat_empty_string_bug=no
17454 else case e in #(
17455 e) ac_cv_func_stat_empty_string_bug=yes ;;
17456 esac
17457 fi
17458 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17459 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17460 esac
17461 fi
17462 ;;
17463 esac
17464 fi
17465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
17466 printf "%s\n" "$ac_cv_func_stat_empty_string_bug" >&6; }
17467 if test $ac_cv_func_stat_empty_string_bug = yes; then
17468 case " $LIBOBJS " in
17469 *" stat.$ac_objext "* ) ;;
17470 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
17471 ;;
17472 esac
17473
17474
17475 printf "%s\n" "#define HAVE_STAT_EMPTY_STRING_BUG 1" >>confdefs.h
17476
17477 fi
17478
17479
17480 for ac_func in strftime
17481 do :
17482 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
17483 if test "x$ac_cv_func_strftime" = xyes
17484 then :
17485 printf "%s\n" "#define HAVE_STRFTIME 1" >>confdefs.h
17486
17487 else case e in #(
17488 e) # strftime is in -lintl on SCO UNIX.
17489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
17490 printf %s "checking for strftime in -lintl... " >&6; }
17491 if test ${ac_cv_lib_intl_strftime+y}
17492 then :
17493 printf %s "(cached) " >&6
17494 else case e in #(
17495 e) ac_check_lib_save_LIBS=$LIBS
17496 LIBS="-lintl $LIBS"
17497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17498 /* end confdefs.h. */
17499
17500 /* Override any GCC internal prototype to avoid an error.
17501 Use char because int might match the return type of a GCC
17502 builtin and then its argument prototype would still apply.
17503 The 'extern "C"' is for builds by C++ compilers;
17504 although this is not generally supported in C code supporting it here
17505 has little cost and some practical benefit (sr 110532). */
17506 #ifdef __cplusplus
17507 extern "C"
17508 #endif
17509 char strftime (void);
17510 int
17511 main (void)
17512 {
17513 return strftime ();
17514 ;
17515 return 0;
17516 }
17517 _ACEOF
17518 if ac_fn_c_try_link "$LINENO"
17519 then :
17520 ac_cv_lib_intl_strftime=yes
17521 else case e in #(
17522 e) ac_cv_lib_intl_strftime=no ;;
17523 esac
17524 fi
17525 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17526 conftest$ac_exeext conftest.$ac_ext
17527 LIBS=$ac_check_lib_save_LIBS ;;
17528 esac
17529 fi
17530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
17531 printf "%s\n" "$ac_cv_lib_intl_strftime" >&6; }
17532 if test "x$ac_cv_lib_intl_strftime" = xyes
17533 then :
17534 printf "%s\n" "#define HAVE_STRFTIME 1" >>confdefs.h
17535
17536 LIBS="-lintl $LIBS"
17537 fi
17538 ;;
17539 esac
17540 fi
17541
17542 done
17543
17544
17545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether utime accepts a null argument" >&5
17546 printf %s "checking whether utime accepts a null argument... " >&6; }
17547 if test ${ac_cv_func_utime_null+y}
17548 then :
17549 printf %s "(cached) " >&6
17550 else case e in #(
17551 e) rm -f conftest.data; >conftest.data
17552 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
17553 if test "$cross_compiling" = yes
17554 then :
17555 ac_cv_func_utime_null='guessing yes'
17556 else case e in #(
17557 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17558 /* end confdefs.h. */
17559 $ac_includes_default
17560 #ifdef HAVE_UTIME_H
17561 # include <utime.h>
17562 #endif
17563 int
17564 main (void)
17565 {
17566 struct stat s, t;
17567 return ! (stat ("conftest.data", &s) == 0
17568 && utime ("conftest.data", 0) == 0
17569 && stat ("conftest.data", &t) == 0
17570 && t.st_mtime >= s.st_mtime
17571 && t.st_mtime - s.st_mtime < 120);
17572 ;
17573 return 0;
17574 }
17575 _ACEOF
17576 if ac_fn_c_try_run "$LINENO"
17577 then :
17578 ac_cv_func_utime_null=yes
17579 else case e in #(
17580 e) ac_cv_func_utime_null=no ;;
17581 esac
17582 fi
17583 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17584 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17585 esac
17586 fi
17587 ;;
17588 esac
17589 fi
17590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_utime_null" >&5
17591 printf "%s\n" "$ac_cv_func_utime_null" >&6; }
17592 if test "x$ac_cv_func_utime_null" != xno; then
17593 ac_cv_func_utime_null=yes
17594
17595 printf "%s\n" "#define HAVE_UTIME_NULL 1" >>confdefs.h
17596
17597 fi
17598 rm -f conftest.data
17599
17600 ac_func=
17601 for ac_item in $ac_func_c_list
17602 do
17603 if test $ac_func; then
17604 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
17605 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
17606 echo "#define $ac_item 1" >> confdefs.h
17607 fi
17608 ac_func=
17609 else
17610 ac_func=$ac_item
17611 fi
17612 done
17613
17614 if test "x$ac_cv_func_vprintf" = xno
17615 then :
17616 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
17617 if test "x$ac_cv_func__doprnt" = xyes
17618 then :
17619
17620 printf "%s\n" "#define HAVE_DOPRNT 1" >>confdefs.h
17621
17622 fi
17623
17624 fi
17625 ac_fn_c_check_func "$LINENO" "atexit" "ac_cv_func_atexit"
17626 if test "x$ac_cv_func_atexit" = xyes
17627 then :
17628 printf "%s\n" "#define HAVE_ATEXIT 1" >>confdefs.h
17629
17630 fi
17631 ac_fn_c_check_func "$LINENO" "basename" "ac_cv_func_basename"
17632 if test "x$ac_cv_func_basename" = xyes
17633 then :
17634 printf "%s\n" "#define HAVE_BASENAME 1" >>confdefs.h
17635
17636 fi
17637 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
17638 if test "x$ac_cv_func_daemon" = xyes
17639 then :
17640 printf "%s\n" "#define HAVE_DAEMON 1" >>confdefs.h
17641
17642 fi
17643 ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2"
17644 if test "x$ac_cv_func_dup2" = xyes
17645 then :
17646 printf "%s\n" "#define HAVE_DUP2 1" >>confdefs.h
17647
17648 fi
17649 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
17650 if test "x$ac_cv_func_fdatasync" = xyes
17651 then :
17652 printf "%s\n" "#define HAVE_FDATASYNC 1" >>confdefs.h
17653
17654 fi
17655 ac_fn_c_check_func "$LINENO" "ffs" "ac_cv_func_ffs"
17656 if test "x$ac_cv_func_ffs" = xyes
17657 then :
17658 printf "%s\n" "#define HAVE_FFS 1" >>confdefs.h
17659
17660 fi
17661 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
17662 if test "x$ac_cv_func_getopt_long" = xyes
17663 then :
17664 printf "%s\n" "#define HAVE_GETOPT_LONG 1" >>confdefs.h
17665
17666 fi
17667 ac_fn_c_check_func "$LINENO" "hasmntopt" "ac_cv_func_hasmntopt"
17668 if test "x$ac_cv_func_hasmntopt" = xyes
17669 then :
17670 printf "%s\n" "#define HAVE_HASMNTOPT 1" >>confdefs.h
17671
17672 fi
17673 ac_fn_c_check_func "$LINENO" "mbsinit" "ac_cv_func_mbsinit"
17674 if test "x$ac_cv_func_mbsinit" = xyes
17675 then :
17676 printf "%s\n" "#define HAVE_MBSINIT 1" >>confdefs.h
17677
17678 fi
17679 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
17680 if test "x$ac_cv_func_memmove" = xyes
17681 then :
17682 printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
17683
17684 fi
17685 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
17686 if test "x$ac_cv_func_memset" = xyes
17687 then :
17688 printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
17689
17690 fi
17691 ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath"
17692 if test "x$ac_cv_func_realpath" = xyes
17693 then :
17694 printf "%s\n" "#define HAVE_REALPATH 1" >>confdefs.h
17695
17696 fi
17697 ac_fn_c_check_func "$LINENO" "regcomp" "ac_cv_func_regcomp"
17698 if test "x$ac_cv_func_regcomp" = xyes
17699 then :
17700 printf "%s\n" "#define HAVE_REGCOMP 1" >>confdefs.h
17701
17702 fi
17703 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
17704 if test "x$ac_cv_func_setlocale" = xyes
17705 then :
17706 printf "%s\n" "#define HAVE_SETLOCALE 1" >>confdefs.h
17707
17708 fi
17709 ac_fn_c_check_func "$LINENO" "setxattr" "ac_cv_func_setxattr"
17710 if test "x$ac_cv_func_setxattr" = xyes
17711 then :
17712 printf "%s\n" "#define HAVE_SETXATTR 1" >>confdefs.h
17713
17714 fi
17715 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
17716 if test "x$ac_cv_func_strcasecmp" = xyes
17717 then :
17718 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
17719
17720 fi
17721 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
17722 if test "x$ac_cv_func_strchr" = xyes
17723 then :
17724 printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
17725
17726 fi
17727 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
17728 if test "x$ac_cv_func_strdup" = xyes
17729 then :
17730 printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
17731
17732 fi
17733 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
17734 if test "x$ac_cv_func_strerror" = xyes
17735 then :
17736 printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
17737
17738 fi
17739 ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
17740 if test "x$ac_cv_func_strnlen" = xyes
17741 then :
17742 printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h
17743
17744 fi
17745 ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
17746 if test "x$ac_cv_func_strsep" = xyes
17747 then :
17748 printf "%s\n" "#define HAVE_STRSEP 1" >>confdefs.h
17749
17750 fi
17751 ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
17752 if test "x$ac_cv_func_strtol" = xyes
17753 then :
17754 printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
17755
17756 fi
17757 ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
17758 if test "x$ac_cv_func_strtoul" = xyes
17759 then :
17760 printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h
17761
17762 fi
17763 ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
17764 if test "x$ac_cv_func_sysconf" = xyes
17765 then :
17766 printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
17767
17768 fi
17769 ac_fn_c_check_func "$LINENO" "utime" "ac_cv_func_utime"
17770 if test "x$ac_cv_func_utime" = xyes
17771 then :
17772 printf "%s\n" "#define HAVE_UTIME 1" >>confdefs.h
17773
17774 fi
17775 ac_fn_c_check_func "$LINENO" "utimensat" "ac_cv_func_utimensat"
17776 if test "x$ac_cv_func_utimensat" = xyes
17777 then :
17778 printf "%s\n" "#define HAVE_UTIMENSAT 1" >>confdefs.h
17779
17780 fi
17781 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
17782 if test "x$ac_cv_func_gettimeofday" = xyes
17783 then :
17784 printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
17785
17786 fi
17787 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
17788 if test "x$ac_cv_func_clock_gettime" = xyes
17789 then :
17790 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
17791
17792 fi
17793 ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
17794 if test "x$ac_cv_func_fork" = xyes
17795 then :
17796 printf "%s\n" "#define HAVE_FORK 1" >>confdefs.h
17797
17798 fi
17799 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
17800 if test "x$ac_cv_func_memcpy" = xyes
17801 then :
17802 printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
17803
17804 fi
17805 ac_fn_c_check_func "$LINENO" "random" "ac_cv_func_random"
17806 if test "x$ac_cv_func_random" = xyes
17807 then :
17808 printf "%s\n" "#define HAVE_RANDOM 1" >>confdefs.h
17809
17810 fi
17811 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
17812 if test "x$ac_cv_func_snprintf" = xyes
17813 then :
17814 printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
17815
17816 fi
17817
17818 # Check whether --enable-largefile was given.
17819 if test ${enable_largefile+y}
17820 then :
17821 enableval=$enable_largefile;
17822 fi
17823 if test "$enable_largefile,$enable_year2038" != no,no
17824 then :
17825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CPPFLAGS option for large files" >&5
17826 printf %s "checking for $CPPFLAGS option for large files... " >&6; }
17827 if test ${ac_cv_sys_largefile_opts+y}
17828 then :
17829 printf %s "(cached) " >&6
17830 else case e in #(
17831 e) ac_save_CPPFLAGS=$CPPFLAGS
17832 ac_opt_found=no
17833 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1"; do
17834 if test x"$ac_opt" != x"none needed"
17835 then :
17836 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
17837 fi
17838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17839 /* end confdefs.h. */
17840 #include <sys/types.h>
17841 #ifndef FTYPE
17842 # define FTYPE off_t
17843 #endif
17844 /* Check that FTYPE can represent 2**63 - 1 correctly.
17845 We can't simply define LARGE_FTYPE to be 9223372036854775807,
17846 since some C++ compilers masquerading as C compilers
17847 incorrectly reject 9223372036854775807. */
17848 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
17849 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
17850 && LARGE_FTYPE % 2147483647 == 1)
17851 ? 1 : -1];
17852 int
17853 main (void)
17854 {
17855
17856 ;
17857 return 0;
17858 }
17859 _ACEOF
17860 if ac_fn_c_try_compile "$LINENO"
17861 then :
17862 if test x"$ac_opt" = x"none needed"
17863 then :
17864 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
17865 CPPFLAGS="$CPPFLAGS -DFTYPE=ino_t"
17866 if ac_fn_c_try_compile "$LINENO"
17867 then :
17868
17869 else case e in #(
17870 e) CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64"
17871 if ac_fn_c_try_compile "$LINENO"
17872 then :
17873 ac_opt='-D_FILE_OFFSET_BITS=64'
17874 fi
17875 rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
17876 esac
17877 fi
17878 rm -f core conftest.err conftest.$ac_objext conftest.beam
17879 fi
17880 ac_cv_sys_largefile_opts=$ac_opt
17881 ac_opt_found=yes
17882 fi
17883 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17884 test $ac_opt_found = no || break
17885 done
17886 CPPFLAGS=$ac_save_CPPFLAGS
17887
17888 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
17889 esac
17890 fi
17891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
17892 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
17893
17894 ac_have_largefile=yes
17895 case $ac_cv_sys_largefile_opts in #(
17896 "none needed") :
17897 ;; #(
17898 "supported through gnulib") :
17899 ;; #(
17900 "support not detected") :
17901 ac_have_largefile=no ;; #(
17902 "-D_FILE_OFFSET_BITS=64") :
17903
17904 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
17905 ;; #(
17906 "-D_LARGE_FILES=1") :
17907
17908 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
17909 ;; #(
17910 *) :
17911 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
17912 esac
17913
17914 if test "$enable_year2038" != no
17915 then :
17916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CPPFLAGS option for timestamps after 2038" >&5
17917 printf %s "checking for $CPPFLAGS option for timestamps after 2038... " >&6; }
17918 if test ${ac_cv_sys_year2038_opts+y}
17919 then :
17920 printf %s "(cached) " >&6
17921 else case e in #(
17922 e) ac_save_CPPFLAGS="$CPPFLAGS"
17923 ac_opt_found=no
17924 for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do
17925 if test x"$ac_opt" != x"none needed"
17926 then :
17927 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
17928 fi
17929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17930 /* end confdefs.h. */
17931
17932 #include <time.h>
17933 /* Check that time_t can represent 2**32 - 1 correctly. */
17934 #define LARGE_TIME_T \\
17935 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
17936 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
17937 && LARGE_TIME_T % 65537 == 0)
17938 ? 1 : -1];
17939
17940 int
17941 main (void)
17942 {
17943
17944 ;
17945 return 0;
17946 }
17947 _ACEOF
17948 if ac_fn_c_try_compile "$LINENO"
17949 then :
17950 ac_cv_sys_year2038_opts="$ac_opt"
17951 ac_opt_found=yes
17952 fi
17953 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17954 test $ac_opt_found = no || break
17955 done
17956 CPPFLAGS="$ac_save_CPPFLAGS"
17957 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
17958 esac
17959 fi
17960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
17961 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
17962
17963 ac_have_year2038=yes
17964 case $ac_cv_sys_year2038_opts in #(
17965 "none needed") :
17966 ;; #(
17967 "support not detected") :
17968 ac_have_year2038=no ;; #(
17969 "-D_TIME_BITS=64") :
17970
17971 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
17972 ;; #(
17973 "-D__MINGW_USE_VC2005_COMPAT") :
17974
17975 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
17976 ;; #(
17977 "-U_USE_32_BIT_TIME_T"*) :
17978 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
17979 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
17980 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
17981 will stop working after mid-January 2038. Remove
17982 _USE_32BIT_TIME_T from the compiler flags.
17983 See 'config.log' for more details" "$LINENO" 5; } ;; #(
17984 *) :
17985 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
17986 esac
17987
17988 fi
17989
17990 fi
17991
17992 # The dlopen API might be in libc or in libdl. Check libc first, then
17993 # fall back to libdl.
17994 LIBDL=""
17995 if test "x${disable_external_plugins}" = "xno"; then
17996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
17997 printf %s "checking for dlopen in -lc... " >&6; }
17998 if test ${ac_cv_lib_c_dlopen+y}
17999 then :
18000 printf %s "(cached) " >&6
18001 else case e in #(
18002 e) ac_check_lib_save_LIBS=$LIBS
18003 LIBS="-lc $LIBS"
18004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18005 /* end confdefs.h. */
18006
18007 /* Override any GCC internal prototype to avoid an error.
18008 Use char because int might match the return type of a GCC
18009 builtin and then its argument prototype would still apply.
18010 The 'extern "C"' is for builds by C++ compilers;
18011 although this is not generally supported in C code supporting it here
18012 has little cost and some practical benefit (sr 110532). */
18013 #ifdef __cplusplus
18014 extern "C"
18015 #endif
18016 char dlopen (void);
18017 int
18018 main (void)
18019 {
18020 return dlopen ();
18021 ;
18022 return 0;
18023 }
18024 _ACEOF
18025 if ac_fn_c_try_link "$LINENO"
18026 then :
18027 ac_cv_lib_c_dlopen=yes
18028 else case e in #(
18029 e) ac_cv_lib_c_dlopen=no ;;
18030 esac
18031 fi
18032 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18033 conftest$ac_exeext conftest.$ac_ext
18034 LIBS=$ac_check_lib_save_LIBS ;;
18035 esac
18036 fi
18037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
18038 printf "%s\n" "$ac_cv_lib_c_dlopen" >&6; }
18039 if test "x$ac_cv_lib_c_dlopen" = xyes
18040 then :
18041 printf "%s\n" "#define HAVE_LIBC 1" >>confdefs.h
18042
18043 LIBS="-lc $LIBS"
18044
18045 else case e in #(
18046 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18047 printf %s "checking for dlopen in -ldl... " >&6; }
18048 if test ${ac_cv_lib_dl_dlopen+y}
18049 then :
18050 printf %s "(cached) " >&6
18051 else case e in #(
18052 e) ac_check_lib_save_LIBS=$LIBS
18053 LIBS="-ldl $LIBS"
18054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18055 /* end confdefs.h. */
18056
18057 /* Override any GCC internal prototype to avoid an error.
18058 Use char because int might match the return type of a GCC
18059 builtin and then its argument prototype would still apply.
18060 The 'extern "C"' is for builds by C++ compilers;
18061 although this is not generally supported in C code supporting it here
18062 has little cost and some practical benefit (sr 110532). */
18063 #ifdef __cplusplus
18064 extern "C"
18065 #endif
18066 char dlopen (void);
18067 int
18068 main (void)
18069 {
18070 return dlopen ();
18071 ;
18072 return 0;
18073 }
18074 _ACEOF
18075 if ac_fn_c_try_link "$LINENO"
18076 then :
18077 ac_cv_lib_dl_dlopen=yes
18078 else case e in #(
18079 e) ac_cv_lib_dl_dlopen=no ;;
18080 esac
18081 fi
18082 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18083 conftest$ac_exeext conftest.$ac_ext
18084 LIBS=$ac_check_lib_save_LIBS ;;
18085 esac
18086 fi
18087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18088 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
18089 if test "x$ac_cv_lib_dl_dlopen" = xyes
18090 then :
18091 LIBDL="-ldl"
18092 else case e in #(
18093 e) as_fn_error $? "\"Unable to find libdl (required for external plugin support)\"" "$LINENO" 5 ;;
18094 esac
18095 fi
18096 ;;
18097 esac
18098 fi
18099
18100 fi
18101
18102
18103 if test "$GCC" = "yes" ; then
18104 # We add -Wall to enable some compiler warnings.
18105 CFLAGS="${CFLAGS} -Wall"
18106 fi
18107
18108 if test "${enable_pedantic}" = "yes"; then
18109 enable_warnings="yes"
18110 CFLAGS="${CFLAGS} -pedantic"
18111 fi
18112
18113 if test "${enable_warnings}" = "yes"; then
18114 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"
18115 fi
18116
18117 if test "${enable_debug}" = "yes"; then
18118 CFLAGS="${CFLAGS} -ggdb3 -DDEBUG"
18119
18120 printf "%s\n" "#define ENABLE_DEBUG 1" >>confdefs.h
18121
18122 fi
18123
18124 test "${enable_device_default_io_ops}" = "no" &&
18125 printf "%s\n" "#define NO_NTFS_DEVICE_DEFAULT_IO_OPS 1" >>confdefs.h
18126
18127
18128 test "${enable_mtab}" = "no" &&
18129 printf "%s\n" "#define IGNORE_MTAB 1" >>confdefs.h
18130
18131 test "${enable_posix_acls}" != "no" &&
18132 printf "%s\n" "#define POSIXACLS 1" >>confdefs.h
18133
18134 test "${enable_xattr_mappings}" != "no" &&
18135 printf "%s\n" "#define XATTR_MAPPINGS 1" >>confdefs.h
18136
18137 test "${disable_plugins}" != "no" &&
18138 printf "%s\n" "#define DISABLE_PLUGINS 1" >>confdefs.h
18139
18140
18141 test "${enable_really_static}" = "yes" && enable_library="no"
18142 test "${enable_library}" = "no" && enable_ldconfig="no"
18143
18144 if test "x${DISTCHECK_HACK}" != "x"; then
18145 enable_mount_helper="no"
18146 enable_ldconfig="no"
18147 fi
18148
18149 # Settings
18150 pkgconfigdir="\$(libdir)/pkgconfig"
18151 ntfs3gincludedir="\$(includedir)/ntfs-3g"
18152 # Executables should be installed to the root filesystem, otherwise
18153 # automounting NTFS volumes can fail during boot if the driver binaries
18154 # and their dependencies are on an unmounted partition. Use --exec-prefix
18155 # to override this.
18156 if test "x${exec_prefix}" = "xNONE"; then
18157 rootbindir="/bin"
18158 rootsbindir="/sbin"
18159 rootlibdir="/lib${libdir##*/lib}"
18160 else
18161 rootbindir="\$(bindir)"
18162 rootsbindir="\$(sbindir)"
18163 rootlibdir="\$(libdir)"
18164 fi
18165
18166
18167
18168
18169
18170
18171
18172
18173
18174
18175
18176
18177
18178
18179 if test "${with_fuse}" = "internal"; then
18180 FUSE_INTERNAL_TRUE=
18181 FUSE_INTERNAL_FALSE='#'
18182 else
18183 FUSE_INTERNAL_TRUE='#'
18184 FUSE_INTERNAL_FALSE=
18185 fi
18186
18187 if test "${enable_ldscript}" = "yes"; then
18188 GENERATE_LDSCRIPT_TRUE=
18189 GENERATE_LDSCRIPT_FALSE='#'
18190 else
18191 GENERATE_LDSCRIPT_TRUE='#'
18192 GENERATE_LDSCRIPT_FALSE=
18193 fi
18194
18195 if test "${WINDOWS}" = "yes"; then
18196 WINDOWS_TRUE=
18197 WINDOWS_FALSE='#'
18198 else
18199 WINDOWS_TRUE='#'
18200 WINDOWS_FALSE=
18201 fi
18202
18203 if test "${enable_device_default_io_ops}" = "yes"; then
18204 NTFS_DEVICE_DEFAULT_IO_OPS_TRUE=
18205 NTFS_DEVICE_DEFAULT_IO_OPS_FALSE='#'
18206 else
18207 NTFS_DEVICE_DEFAULT_IO_OPS_TRUE='#'
18208 NTFS_DEVICE_DEFAULT_IO_OPS_FALSE=
18209 fi
18210
18211 if test "${enable_ldconfig}" = "yes"; then
18212 RUN_LDCONFIG_TRUE=
18213 RUN_LDCONFIG_FALSE='#'
18214 else
18215 RUN_LDCONFIG_TRUE='#'
18216 RUN_LDCONFIG_FALSE=
18217 fi
18218
18219 if test "${enable_really_static}" = "yes"; then
18220 REALLYSTATIC_TRUE=
18221 REALLYSTATIC_FALSE='#'
18222 else
18223 REALLYSTATIC_TRUE='#'
18224 REALLYSTATIC_FALSE=
18225 fi
18226
18227 if test "${enable_library}" = "yes"; then
18228 INSTALL_LIBRARY_TRUE=
18229 INSTALL_LIBRARY_FALSE='#'
18230 else
18231 INSTALL_LIBRARY_TRUE='#'
18232 INSTALL_LIBRARY_FALSE=
18233 fi
18234
18235 if test "${enable_mount_helper}" = "yes"; then
18236 ENABLE_MOUNT_HELPER_TRUE=
18237 ENABLE_MOUNT_HELPER_FALSE='#'
18238 else
18239 ENABLE_MOUNT_HELPER_TRUE='#'
18240 ENABLE_MOUNT_HELPER_FALSE=
18241 fi
18242
18243 if test "${enable_ntfs_3g}" = "yes"; then
18244 ENABLE_NTFS_3G_TRUE=
18245 ENABLE_NTFS_3G_FALSE='#'
18246 else
18247 ENABLE_NTFS_3G_TRUE='#'
18248 ENABLE_NTFS_3G_FALSE=
18249 fi
18250
18251 if test "${enable_ntfsprogs}" = "yes"; then
18252 ENABLE_NTFSPROGS_TRUE=
18253 ENABLE_NTFSPROGS_FALSE='#'
18254 else
18255 ENABLE_NTFSPROGS_TRUE='#'
18256 ENABLE_NTFSPROGS_FALSE=
18257 fi
18258
18259 if test "${enable_extras}" = "yes"; then
18260 ENABLE_EXTRAS_TRUE=
18261 ENABLE_EXTRAS_FALSE='#'
18262 else
18263 ENABLE_EXTRAS_TRUE='#'
18264 ENABLE_EXTRAS_FALSE=
18265 fi
18266
18267 if test "${enable_quarantined}" = "yes"; then
18268 ENABLE_QUARANTINED_TRUE=
18269 ENABLE_QUARANTINED_FALSE='#'
18270 else
18271 ENABLE_QUARANTINED_TRUE='#'
18272 ENABLE_QUARANTINED_FALSE=
18273 fi
18274
18275 if test "${disable_plugins}" != "no"; then
18276 DISABLE_PLUGINS_TRUE=
18277 DISABLE_PLUGINS_FALSE='#'
18278 else
18279 DISABLE_PLUGINS_TRUE='#'
18280 DISABLE_PLUGINS_FALSE=
18281 fi
18282
18283
18284 # workaround for <autoconf-2.60
18285 if test -z "${docdir}"; then
18286 docdir="\$(datarootdir)/doc/\$(PACKAGE_NAME)"
18287
18288 fi
18289 # workaround for <automake-1.10
18290 if test -z "${MKDIR_P}"; then
18291 MKDIR_P="\$(mkdir_p)"
18292
18293 fi
18294
18295 # generate files
18296 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 ntfsprogs/ntfsdecrypt.8 ntfsprogs/ntfswipe.8 ntfsprogs/ntfstruncate.8 ntfsprogs/ntfsfallocate.8 ntfsprogs/ntfsrecover.8 ntfsprogs/ntfsusermap.8 ntfsprogs/ntfssecaudit.8 src/Makefile src/ntfs-3g.8 src/ntfs-3g.probe.8"
18297
18298 cat >confcache <<\_ACEOF
18299 # This file is a shell script that caches the results of configure
18300 # tests run on this system so they can be shared between configure
18301 # scripts and configure runs, see configure's option --config-cache.
18302 # It is not useful on other systems. If it contains results you don't
18303 # want to keep, you may remove or edit it.
18304 #
18305 # config.status only pays attention to the cache file if you give it
18306 # the --recheck option to rerun configure.
18307 #
18308 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
18309 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
18310 # following values.
18311
18312 _ACEOF
18313
18314 # The following way of writing the cache mishandles newlines in values,
18315 # but we know of no workaround that is simple, portable, and efficient.
18316 # So, we kill variables containing newlines.
18317 # Ultrix sh set writes to stderr and can't be redirected directly,
18318 # and sets the high bit in the cache file unless we assign to the vars.
18319 (
18320 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18321 eval ac_val=\$$ac_var
18322 case $ac_val in #(
18323 *${as_nl}*)
18324 case $ac_var in #(
18325 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18326 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18327 esac
18328 case $ac_var in #(
18329 _ | IFS | as_nl) ;; #(
18330 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18331 *) { eval $ac_var=; unset $ac_var;} ;;
18332 esac ;;
18333 esac
18334 done
18335
18336 (set) 2>&1 |
18337 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18338 *${as_nl}ac_space=\ *)
18339 # 'set' does not quote correctly, so add quotes: double-quote
18340 # substitution turns \\\\ into \\, and sed turns \\ into \.
18341 sed -n \
18342 "s/'/'\\\\''/g;
18343 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18344 ;; #(
18345 *)
18346 # 'set' quotes correctly as required by POSIX, so do not add quotes.
18347 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18348 ;;
18349 esac |
18350 sort
18351 ) |
18352 sed '
18353 /^ac_cv_env_/b end
18354 t clear
18355 :clear
18356 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
18357 t end
18358 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18359 :end' >>confcache
18360 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18361 if test -w "$cache_file"; then
18362 if test "x$cache_file" != "x/dev/null"; then
18363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18364 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
18365 if test ! -f "$cache_file" || test -h "$cache_file"; then
18366 cat confcache >"$cache_file"
18367 else
18368 case $cache_file in #(
18369 */* | ?:*)
18370 mv -f confcache "$cache_file"$$ &&
18371 mv -f "$cache_file"$$ "$cache_file" ;; #(
18372 *)
18373 mv -f confcache "$cache_file" ;;
18374 esac
18375 fi
18376 fi
18377 else
18378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18379 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
18380 fi
18381 fi
18382 rm -f confcache
18383
18384 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18385 # Let make expand exec_prefix.
18386 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18387
18388 DEFS=-DHAVE_CONFIG_H
18389
18390 ac_libobjs=
18391 ac_ltlibobjs=
18392 U=
18393 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18394 # 1. Remove the extension, and $U if already installed.
18395 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18396 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
18397 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18398 # will be set to the directory where LIBOBJS objects are built.
18399 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18400 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18401 done
18402 LIBOBJS=$ac_libobjs
18403
18404 LTLIBOBJS=$ac_ltlibobjs
18405
18406
18407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18408 printf %s "checking that generated files are newer than configure... " >&6; }
18409 if test -n "$am_sleep_pid"; then
18410 # Hide warnings about reused PIDs.
18411 wait $am_sleep_pid 2>/dev/null
18412 fi
18413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
18414 printf "%s\n" "done" >&6; }
18415 case $enable_silent_rules in # (((
18416 yes) AM_DEFAULT_VERBOSITY=0;;
18417 no) AM_DEFAULT_VERBOSITY=1;;
18418 esac
18419 if test $am_cv_make_support_nested_variables = yes; then
18420 AM_V='$(V)'
18421 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
18422 else
18423 AM_V=$AM_DEFAULT_VERBOSITY
18424 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
18425 fi
18426
18427 if test -n "$EXEEXT"; then
18428 am__EXEEXT_TRUE=
18429 am__EXEEXT_FALSE='#'
18430 else
18431 am__EXEEXT_TRUE='#'
18432 am__EXEEXT_FALSE=
18433 fi
18434
18435 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18436 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18437 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18438 fi
18439 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18440 as_fn_error $? "conditional \"AMDEP\" was never defined.
18441 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18442 fi
18443 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18444 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18445 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18446 fi
18447 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18448 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18449 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18450 fi
18451 if test -z "${ENABLE_CRYPTO_TRUE}" && test -z "${ENABLE_CRYPTO_FALSE}"; then
18452 as_fn_error $? "conditional \"ENABLE_CRYPTO\" was never defined.
18453 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18454 fi
18455
18456 # Check whether --enable-year2038 was given.
18457 if test ${enable_year2038+y}
18458 then :
18459 enableval=$enable_year2038;
18460 fi
18461
18462 if test -z "${FUSE_INTERNAL_TRUE}" && test -z "${FUSE_INTERNAL_FALSE}"; then
18463 as_fn_error $? "conditional \"FUSE_INTERNAL\" was never defined.
18464 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18465 fi
18466 if test -z "${GENERATE_LDSCRIPT_TRUE}" && test -z "${GENERATE_LDSCRIPT_FALSE}"; then
18467 as_fn_error $? "conditional \"GENERATE_LDSCRIPT\" was never defined.
18468 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18469 fi
18470 if test -z "${WINDOWS_TRUE}" && test -z "${WINDOWS_FALSE}"; then
18471 as_fn_error $? "conditional \"WINDOWS\" was never defined.
18472 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18473 fi
18474 if test -z "${NTFS_DEVICE_DEFAULT_IO_OPS_TRUE}" && test -z "${NTFS_DEVICE_DEFAULT_IO_OPS_FALSE}"; then
18475 as_fn_error $? "conditional \"NTFS_DEVICE_DEFAULT_IO_OPS\" was never defined.
18476 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18477 fi
18478 if test -z "${RUN_LDCONFIG_TRUE}" && test -z "${RUN_LDCONFIG_FALSE}"; then
18479 as_fn_error $? "conditional \"RUN_LDCONFIG\" was never defined.
18480 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18481 fi
18482 if test -z "${REALLYSTATIC_TRUE}" && test -z "${REALLYSTATIC_FALSE}"; then
18483 as_fn_error $? "conditional \"REALLYSTATIC\" was never defined.
18484 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18485 fi
18486 if test -z "${INSTALL_LIBRARY_TRUE}" && test -z "${INSTALL_LIBRARY_FALSE}"; then
18487 as_fn_error $? "conditional \"INSTALL_LIBRARY\" was never defined.
18488 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18489 fi
18490 if test -z "${ENABLE_MOUNT_HELPER_TRUE}" && test -z "${ENABLE_MOUNT_HELPER_FALSE}"; then
18491 as_fn_error $? "conditional \"ENABLE_MOUNT_HELPER\" was never defined.
18492 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18493 fi
18494 if test -z "${ENABLE_NTFS_3G_TRUE}" && test -z "${ENABLE_NTFS_3G_FALSE}"; then
18495 as_fn_error $? "conditional \"ENABLE_NTFS_3G\" was never defined.
18496 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18497 fi
18498 if test -z "${ENABLE_NTFSPROGS_TRUE}" && test -z "${ENABLE_NTFSPROGS_FALSE}"; then
18499 as_fn_error $? "conditional \"ENABLE_NTFSPROGS\" was never defined.
18500 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18501 fi
18502 if test -z "${ENABLE_EXTRAS_TRUE}" && test -z "${ENABLE_EXTRAS_FALSE}"; then
18503 as_fn_error $? "conditional \"ENABLE_EXTRAS\" was never defined.
18504 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18505 fi
18506 if test -z "${ENABLE_QUARANTINED_TRUE}" && test -z "${ENABLE_QUARANTINED_FALSE}"; then
18507 as_fn_error $? "conditional \"ENABLE_QUARANTINED\" was never defined.
18508 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18509 fi
18510 if test -z "${DISABLE_PLUGINS_TRUE}" && test -z "${DISABLE_PLUGINS_FALSE}"; then
18511 as_fn_error $? "conditional \"DISABLE_PLUGINS\" was never defined.
18512 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18513 fi
18514
18515 : "${CONFIG_STATUS=./config.status}"
18516 ac_write_fail=0
18517 ac_clean_files_save=$ac_clean_files
18518 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18520 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
18521 as_write_fail=0
18522 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18523 #! $SHELL
18524 # Generated by $as_me.
18525 # Run this file to recreate the current configuration.
18526 # Compiler output produced by configure, useful for debugging
18527 # configure, is in config.log if it exists.
18528
18529 debug=false
18530 ac_cs_recheck=false
18531 ac_cs_silent=false
18532
18533 SHELL=\${CONFIG_SHELL-$SHELL}
18534 export SHELL
18535 _ASEOF
18536 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18537 ## -------------------- ##
18538 ## M4sh Initialization. ##
18539 ## -------------------- ##
18540
18541 # Be more Bourne compatible
18542 DUALCASE=1; export DUALCASE # for MKS sh
18543 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
18544 then :
18545 emulate sh
18546 NULLCMD=:
18547 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18548 # is contrary to our usage. Disable this feature.
18549 alias -g '${1+"$@"}'='"$@"'
18550 setopt NO_GLOB_SUBST
18551 else case e in #(
18552 e) case `(set -o) 2>/dev/null` in #(
18553 *posix*) :
18554 set -o posix ;; #(
18555 *) :
18556 ;;
18557 esac ;;
18558 esac
18559 fi
18560
18561
18562
18563 # Reset variables that may have inherited troublesome values from
18564 # the environment.
18565
18566 # IFS needs to be set, to space, tab, and newline, in precisely that order.
18567 # (If _AS_PATH_WALK were called with IFS unset, it would have the
18568 # side effect of setting IFS to empty, thus disabling word splitting.)
18569 # Quoting is to prevent editors from complaining about space-tab.
18570 as_nl='
18571 '
18572 export as_nl
18573 IFS=" "" $as_nl"
18574
18575 PS1='$ '
18576 PS2='> '
18577 PS4='+ '
18578
18579 # Ensure predictable behavior from utilities with locale-dependent output.
18580 LC_ALL=C
18581 export LC_ALL
18582 LANGUAGE=C
18583 export LANGUAGE
18584
18585 # We cannot yet rely on "unset" to work, but we need these variables
18586 # to be unset--not just set to an empty or harmless value--now, to
18587 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
18588 # also avoids known problems related to "unset" and subshell syntax
18589 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
18590 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
18591 do eval test \${$as_var+y} \
18592 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18593 done
18594
18595 # Ensure that fds 0, 1, and 2 are open.
18596 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
18597 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
18598 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
18599
18600 # The user is always right.
18601 if ${PATH_SEPARATOR+false} :; then
18602 PATH_SEPARATOR=:
18603 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18604 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18605 PATH_SEPARATOR=';'
18606 }
18607 fi
18608
18609
18610 # Find who we are. Look in the path if we contain no directory separator.
18611 as_myself=
18612 case $0 in #((
18613 *[\\/]* ) as_myself=$0 ;;
18614 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18615 for as_dir in $PATH
18616 do
18617 IFS=$as_save_IFS
18618 case $as_dir in #(((
18619 '') as_dir=./ ;;
18620 */) ;;
18621 *) as_dir=$as_dir/ ;;
18622 esac
18623 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
18624 done
18625 IFS=$as_save_IFS
18626
18627 ;;
18628 esac
18629 # We did not find ourselves, most probably we were run as 'sh COMMAND'
18630 # in which case we are not to be found in the path.
18631 if test "x$as_myself" = x; then
18632 as_myself=$0
18633 fi
18634 if test ! -f "$as_myself"; then
18635 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18636 exit 1
18637 fi
18638
18639
18640
18641 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18642 # ----------------------------------------
18643 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18644 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18645 # script with STATUS, using 1 if that was 0.
18646 as_fn_error ()
18647 {
18648 as_status=$1; test $as_status -eq 0 && as_status=1
18649 if test "$4"; then
18650 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18651 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18652 fi
18653 printf "%s\n" "$as_me: error: $2" >&2
18654 as_fn_exit $as_status
18655 } # as_fn_error
18656
18657
18658 # as_fn_set_status STATUS
18659 # -----------------------
18660 # Set $? to STATUS, without forking.
18661 as_fn_set_status ()
18662 {
18663 return $1
18664 } # as_fn_set_status
18665
18666 # as_fn_exit STATUS
18667 # -----------------
18668 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18669 as_fn_exit ()
18670 {
18671 set +e
18672 as_fn_set_status $1
18673 exit $1
18674 } # as_fn_exit
18675
18676 # as_fn_unset VAR
18677 # ---------------
18678 # Portably unset VAR.
18679 as_fn_unset ()
18680 {
18681 { eval $1=; unset $1;}
18682 }
18683 as_unset=as_fn_unset
18684
18685 # as_fn_append VAR VALUE
18686 # ----------------------
18687 # Append the text in VALUE to the end of the definition contained in VAR. Take
18688 # advantage of any shell optimizations that allow amortized linear growth over
18689 # repeated appends, instead of the typical quadratic growth present in naive
18690 # implementations.
18691 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
18692 then :
18693 eval 'as_fn_append ()
18694 {
18695 eval $1+=\$2
18696 }'
18697 else case e in #(
18698 e) as_fn_append ()
18699 {
18700 eval $1=\$$1\$2
18701 } ;;
18702 esac
18703 fi # as_fn_append
18704
18705 # as_fn_arith ARG...
18706 # ------------------
18707 # Perform arithmetic evaluation on the ARGs, and store the result in the
18708 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18709 # must be portable across $(()) and expr.
18710 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
18711 then :
18712 eval 'as_fn_arith ()
18713 {
18714 as_val=$(( $* ))
18715 }'
18716 else case e in #(
18717 e) as_fn_arith ()
18718 {
18719 as_val=`expr "$@" || test $? -eq 1`
18720 } ;;
18721 esac
18722 fi # as_fn_arith
18723
18724
18725 if expr a : '\(a\)' >/dev/null 2>&1 &&
18726 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18727 as_expr=expr
18728 else
18729 as_expr=false
18730 fi
18731
18732 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18733 as_basename=basename
18734 else
18735 as_basename=false
18736 fi
18737
18738 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18739 as_dirname=dirname
18740 else
18741 as_dirname=false
18742 fi
18743
18744 as_me=`$as_basename -- "$0" ||
18745 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18746 X"$0" : 'X\(//\)$' \| \
18747 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18748 printf "%s\n" X/"$0" |
18749 sed '/^.*\/\([^/][^/]*\)\/*$/{
18750 s//\1/
18751 q
18752 }
18753 /^X\/\(\/\/\)$/{
18754 s//\1/
18755 q
18756 }
18757 /^X\/\(\/\).*/{
18758 s//\1/
18759 q
18760 }
18761 s/.*/./; q'`
18762
18763 # Avoid depending upon Character Ranges.
18764 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18765 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18766 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18767 as_cr_digits='0123456789'
18768 as_cr_alnum=$as_cr_Letters$as_cr_digits
18769
18770
18771 # Determine whether it's possible to make 'echo' print without a newline.
18772 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
18773 # for compatibility with existing Makefiles.
18774 ECHO_C= ECHO_N= ECHO_T=
18775 case `echo -n x` in #(((((
18776 -n*)
18777 case `echo 'xy\c'` in
18778 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18779 xy) ECHO_C='\c';;
18780 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18781 ECHO_T=' ';;
18782 esac;;
18783 *)
18784 ECHO_N='-n';;
18785 esac
18786
18787 # For backward compatibility with old third-party macros, we provide
18788 # the shell variables $as_echo and $as_echo_n. New code should use
18789 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
18790 as_echo='printf %s\n'
18791 as_echo_n='printf %s'
18792
18793 rm -f conf$$ conf$$.exe conf$$.file
18794 if test -d conf$$.dir; then
18795 rm -f conf$$.dir/conf$$.file
18796 else
18797 rm -f conf$$.dir
18798 mkdir conf$$.dir 2>/dev/null
18799 fi
18800 if (echo >conf$$.file) 2>/dev/null; then
18801 if ln -s conf$$.file conf$$ 2>/dev/null; then
18802 as_ln_s='ln -s'
18803 # ... but there are two gotchas:
18804 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
18805 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
18806 # In both cases, we have to default to 'cp -pR'.
18807 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18808 as_ln_s='cp -pR'
18809 elif ln conf$$.file conf$$ 2>/dev/null; then
18810 as_ln_s=ln
18811 else
18812 as_ln_s='cp -pR'
18813 fi
18814 else
18815 as_ln_s='cp -pR'
18816 fi
18817 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18818 rmdir conf$$.dir 2>/dev/null
18819
18820
18821 # as_fn_mkdir_p
18822 # -------------
18823 # Create "$as_dir" as a directory, including parents if necessary.
18824 as_fn_mkdir_p ()
18825 {
18826
18827 case $as_dir in #(
18828 -*) as_dir=./$as_dir;;
18829 esac
18830 test -d "$as_dir" || eval $as_mkdir_p || {
18831 as_dirs=
18832 while :; do
18833 case $as_dir in #(
18834 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18835 *) as_qdir=$as_dir;;
18836 esac
18837 as_dirs="'$as_qdir' $as_dirs"
18838 as_dir=`$as_dirname -- "$as_dir" ||
18839 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18840 X"$as_dir" : 'X\(//\)[^/]' \| \
18841 X"$as_dir" : 'X\(//\)$' \| \
18842 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18843 printf "%s\n" X"$as_dir" |
18844 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18845 s//\1/
18846 q
18847 }
18848 /^X\(\/\/\)[^/].*/{
18849 s//\1/
18850 q
18851 }
18852 /^X\(\/\/\)$/{
18853 s//\1/
18854 q
18855 }
18856 /^X\(\/\).*/{
18857 s//\1/
18858 q
18859 }
18860 s/.*/./; q'`
18861 test -d "$as_dir" && break
18862 done
18863 test -z "$as_dirs" || eval "mkdir $as_dirs"
18864 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18865
18866
18867 } # as_fn_mkdir_p
18868 if mkdir -p . 2>/dev/null; then
18869 as_mkdir_p='mkdir -p "$as_dir"'
18870 else
18871 test -d ./-p && rmdir ./-p
18872 as_mkdir_p=false
18873 fi
18874
18875
18876 # as_fn_executable_p FILE
18877 # -----------------------
18878 # Test if FILE is an executable regular file.
18879 as_fn_executable_p ()
18880 {
18881 test -f "$1" && test -x "$1"
18882 } # as_fn_executable_p
18883 as_test_x='test -x'
18884 as_executable_p=as_fn_executable_p
18885
18886 # Sed expression to map a string onto a valid CPP name.
18887 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18888 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
18889
18890 # Sed expression to map a string onto a valid variable name.
18891 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18892 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
18893
18894
18895 exec 6>&1
18896 ## ----------------------------------- ##
18897 ## Main body of $CONFIG_STATUS script. ##
18898 ## ----------------------------------- ##
18899 _ASEOF
18900 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18901
18902 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18903 # Save the log message, to keep $0 and so on meaningful, and to
18904 # report actual input values of CONFIG_FILES etc. instead of their
18905 # values after options handling.
18906 ac_log="
18907 This file was extended by ntfs-3g $as_me 2026.2.25, which was
18908 generated by GNU Autoconf 2.72. Invocation command line was
18909
18910 CONFIG_FILES = $CONFIG_FILES
18911 CONFIG_HEADERS = $CONFIG_HEADERS
18912 CONFIG_LINKS = $CONFIG_LINKS
18913 CONFIG_COMMANDS = $CONFIG_COMMANDS
18914 $ $0 $@
18915
18916 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18917 "
18918
18919 _ACEOF
18920
18921 case $ac_config_files in *"
18922 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18923 esac
18924
18925 case $ac_config_headers in *"
18926 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18927 esac
18928
18929
18930 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18931 # Files that config.status was made for.
18932 config_files="$ac_config_files"
18933 config_headers="$ac_config_headers"
18934 config_commands="$ac_config_commands"
18935
18936 _ACEOF
18937
18938 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18939 ac_cs_usage="\
18940 '$as_me' instantiates files and other configuration actions
18941 from templates according to the current configuration. Unless the files
18942 and actions are specified as TAGs, all are instantiated by default.
18943
18944 Usage: $0 [OPTION]... [TAG]...
18945
18946 -h, --help print this help, then exit
18947 -V, --version print version number and configuration settings, then exit
18948 --config print configuration, then exit
18949 -q, --quiet, --silent
18950 do not print progress messages
18951 -d, --debug don't remove temporary files
18952 --recheck update $as_me by reconfiguring in the same conditions
18953 --file=FILE[:TEMPLATE]
18954 instantiate the configuration file FILE
18955 --header=FILE[:TEMPLATE]
18956 instantiate the configuration header FILE
18957
18958 Configuration files:
18959 $config_files
18960
18961 Configuration headers:
18962 $config_headers
18963
18964 Configuration commands:
18965 $config_commands
18966
18967 Report bugs to <[email protected]>."
18968
18969 _ACEOF
18970 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
18971 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
18972 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18973 ac_cs_config='$ac_cs_config_escaped'
18974 ac_cs_version="\\
18975 ntfs-3g config.status 2026.2.25
18976 configured by $0, generated by GNU Autoconf 2.72,
18977 with options \\"\$ac_cs_config\\"
18978
18979 Copyright (C) 2023 Free Software Foundation, Inc.
18980 This config.status script is free software; the Free Software Foundation
18981 gives unlimited permission to copy, distribute and modify it."
18982
18983 ac_pwd='$ac_pwd'
18984 srcdir='$srcdir'
18985 INSTALL='$INSTALL'
18986 MKDIR_P='$MKDIR_P'
18987 AWK='$AWK'
18988 test -n "\$AWK" || AWK=awk
18989 _ACEOF
18990
18991 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18992 # The default lists apply if the user does not specify any file.
18993 ac_need_defaults=:
18994 while test $# != 0
18995 do
18996 case $1 in
18997 --*=?*)
18998 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18999 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19000 ac_shift=:
19001 ;;
19002 --*=)
19003 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19004 ac_optarg=
19005 ac_shift=:
19006 ;;
19007 *)
19008 ac_option=$1
19009 ac_optarg=$2
19010 ac_shift=shift
19011 ;;
19012 esac
19013
19014 case $ac_option in
19015 # Handling of the options.
19016 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19017 ac_cs_recheck=: ;;
19018 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19019 printf "%s\n" "$ac_cs_version"; exit ;;
19020 --config | --confi | --conf | --con | --co | --c )
19021 printf "%s\n" "$ac_cs_config"; exit ;;
19022 --debug | --debu | --deb | --de | --d | -d )
19023 debug=: ;;
19024 --file | --fil | --fi | --f )
19025 $ac_shift
19026 case $ac_optarg in
19027 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19028 '') as_fn_error $? "missing file argument" ;;
19029 esac
19030 as_fn_append CONFIG_FILES " '$ac_optarg'"
19031 ac_need_defaults=false;;
19032 --header | --heade | --head | --hea )
19033 $ac_shift
19034 case $ac_optarg in
19035 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19036 esac
19037 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19038 ac_need_defaults=false;;
19039 --he | --h)
19040 # Conflict between --help and --header
19041 as_fn_error $? "ambiguous option: '$1'
19042 Try '$0 --help' for more information.";;
19043 --help | --hel | -h )
19044 printf "%s\n" "$ac_cs_usage"; exit ;;
19045 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19046 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19047 ac_cs_silent=: ;;
19048
19049 # This is an error.
19050 -*) as_fn_error $? "unrecognized option: '$1'
19051 Try '$0 --help' for more information." ;;
19052
19053 *) as_fn_append ac_config_targets " $1"
19054 ac_need_defaults=false ;;
19055
19056 esac
19057 shift
19058 done
19059
19060 ac_configure_extra_args=
19061
19062 if $ac_cs_silent; then
19063 exec 6>/dev/null
19064 ac_configure_extra_args="$ac_configure_extra_args --silent"
19065 fi
19066
19067 _ACEOF
19068 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19069 if \$ac_cs_recheck; then
19070 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19071 shift
19072 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
19073 CONFIG_SHELL='$SHELL'
19074 export CONFIG_SHELL
19075 exec "\$@"
19076 fi
19077
19078 _ACEOF
19079 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19080 exec 5>>config.log
19081 {
19082 echo
19083 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19084 ## Running $as_me. ##
19085 _ASBOX
19086 printf "%s\n" "$ac_log"
19087 } >&5
19088
19089 _ACEOF
19090 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19091 #
19092 # INIT-COMMANDS
19093 #
19094 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
19095
19096
19097 # The HP-UX ksh and POSIX shell print the target directory to stdout
19098 # if CDPATH is set.
19099 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19100
19101 sed_quote_subst='$sed_quote_subst'
19102 double_quote_subst='$double_quote_subst'
19103 delay_variable_subst='$delay_variable_subst'
19104 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19105 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19106 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19107 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19108 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19109 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19110 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19111 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19112 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19113 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19114 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19115 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19116 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19117 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19118 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19119 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19120 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19121 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19122 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19123 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19124 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19125 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19126 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19127 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19128 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19129 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19130 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19131 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19132 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19133 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19134 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19135 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19136 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19137 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19138 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
19139 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19140 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19141 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19142 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19143 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19144 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19145 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19146 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19147 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
19148 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19149 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19150 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19151 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19152 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19153 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19154 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19155 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19156 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19157 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19158 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19159 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19160 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19161 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19162 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19163 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19164 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
19165 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19166 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19167 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19168 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19169 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19170 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19171 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19172 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19173 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19174 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19175 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19176 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19177 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19178 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19179 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19180 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19181 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19182 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19183 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19184 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19185 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19186 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19187 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19188 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19189 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19190 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19191 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19192 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19193 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19194 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19195 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19196 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19197 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19198 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19199 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19200 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19201 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19202 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19203 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19204 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19205 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19206 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19207 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19208 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19209 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19210 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19211 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19212 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19213 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19214 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19215 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19216 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19217 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19218 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19219 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19220 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19221 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19222 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19223 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19224 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19225 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19226 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19227 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19228 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19229 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19230 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19231 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19232 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19233 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19234 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19235 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19236 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19237 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19238 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19239 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19240 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19241
19242 LTCC='$LTCC'
19243 LTCFLAGS='$LTCFLAGS'
19244 compiler='$compiler_DEFAULT'
19245
19246 # A function that is used when there is no print builtin or printf.
19247 func_fallback_echo ()
19248 {
19249 eval 'cat <<_LTECHO_EOF
19250 \$1
19251 _LTECHO_EOF'
19252 }
19253
19254 # Quote evaled strings.
19255 for var in SHELL \
19256 ECHO \
19257 PATH_SEPARATOR \
19258 SED \
19259 GREP \
19260 EGREP \
19261 FGREP \
19262 LD \
19263 NM \
19264 LN_S \
19265 lt_SP2NL \
19266 lt_NL2SP \
19267 reload_flag \
19268 FILECMD \
19269 OBJDUMP \
19270 deplibs_check_method \
19271 file_magic_cmd \
19272 file_magic_glob \
19273 want_nocaseglob \
19274 DLLTOOL \
19275 sharedlib_from_linklib_cmd \
19276 AR \
19277 archiver_list_spec \
19278 STRIP \
19279 RANLIB \
19280 CC \
19281 CFLAGS \
19282 compiler \
19283 lt_cv_sys_global_symbol_pipe \
19284 lt_cv_sys_global_symbol_to_cdecl \
19285 lt_cv_sys_global_symbol_to_import \
19286 lt_cv_sys_global_symbol_to_c_name_address \
19287 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19288 lt_cv_nm_interface \
19289 nm_file_list_spec \
19290 lt_cv_truncate_bin \
19291 lt_prog_compiler_no_builtin_flag \
19292 lt_prog_compiler_pic \
19293 lt_prog_compiler_wl \
19294 lt_prog_compiler_static \
19295 lt_cv_prog_compiler_c_o \
19296 need_locks \
19297 MANIFEST_TOOL \
19298 DSYMUTIL \
19299 NMEDIT \
19300 LIPO \
19301 OTOOL \
19302 OTOOL64 \
19303 shrext_cmds \
19304 export_dynamic_flag_spec \
19305 whole_archive_flag_spec \
19306 compiler_needs_object \
19307 with_gnu_ld \
19308 allow_undefined_flag \
19309 no_undefined_flag \
19310 hardcode_libdir_flag_spec \
19311 hardcode_libdir_separator \
19312 exclude_expsyms \
19313 include_expsyms \
19314 file_list_spec \
19315 variables_saved_for_relink \
19316 libname_spec \
19317 library_names_spec \
19318 soname_spec \
19319 install_override_mode \
19320 finish_eval \
19321 old_striplib \
19322 striplib; do
19323 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19324 *[\\\\\\\`\\"\\\$]*)
19325 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19326 ;;
19327 *)
19328 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19329 ;;
19330 esac
19331 done
19332
19333 # Double-quote double-evaled strings.
19334 for var in reload_cmds \
19335 old_postinstall_cmds \
19336 old_postuninstall_cmds \
19337 old_archive_cmds \
19338 extract_expsyms_cmds \
19339 old_archive_from_new_cmds \
19340 old_archive_from_expsyms_cmds \
19341 archive_cmds \
19342 archive_expsym_cmds \
19343 module_cmds \
19344 module_expsym_cmds \
19345 export_symbols_cmds \
19346 prelink_cmds \
19347 postlink_cmds \
19348 postinstall_cmds \
19349 postuninstall_cmds \
19350 finish_cmds \
19351 sys_lib_search_path_spec \
19352 configure_time_dlsearch_path \
19353 configure_time_lt_sys_library_path; do
19354 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19355 *[\\\\\\\`\\"\\\$]*)
19356 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19357 ;;
19358 *)
19359 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19360 ;;
19361 esac
19362 done
19363
19364 ac_aux_dir='$ac_aux_dir'
19365
19366 # See if we are running on zsh, and set the options that allow our
19367 # commands through without removal of \ escapes INIT.
19368 if test -n "\${ZSH_VERSION+set}"; then
19369 setopt NO_GLOB_SUBST
19370 fi
19371
19372
19373 PACKAGE='$PACKAGE'
19374 VERSION='$VERSION'
19375 RM='$RM'
19376 ofile='$ofile'
19377
19378
19379
19380
19381 _ACEOF
19382
19383 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19384
19385 # Handling of arguments.
19386 for ac_config_target in $ac_config_targets
19387 do
19388 case $ac_config_target in
19389 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19390 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19391 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19392 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19393 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
19394 "include/fuse-lite/Makefile") CONFIG_FILES="$CONFIG_FILES include/fuse-lite/Makefile" ;;
19395 "include/ntfs-3g/Makefile") CONFIG_FILES="$CONFIG_FILES include/ntfs-3g/Makefile" ;;
19396 "libfuse-lite/Makefile") CONFIG_FILES="$CONFIG_FILES libfuse-lite/Makefile" ;;
19397 "libntfs-3g/Makefile") CONFIG_FILES="$CONFIG_FILES libntfs-3g/Makefile" ;;
19398 "libntfs-3g/libntfs-3g.pc") CONFIG_FILES="$CONFIG_FILES libntfs-3g/libntfs-3g.pc" ;;
19399 "libntfs-3g/libntfs-3g.script.so") CONFIG_FILES="$CONFIG_FILES libntfs-3g/libntfs-3g.script.so" ;;
19400 "ntfsprogs/Makefile") CONFIG_FILES="$CONFIG_FILES ntfsprogs/Makefile" ;;
19401 "ntfsprogs/mkntfs.8") CONFIG_FILES="$CONFIG_FILES ntfsprogs/mkntfs.8" ;;
19402 "ntfsprogs/ntfscat.8") CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfscat.8" ;;
19403 "ntfsprogs/ntfsclone.8") CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfsclone.8" ;;
19404 "ntfsprogs/ntfscluster.8") CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfscluster.8" ;;
19405 "ntfsprogs/ntfscmp.8") CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfscmp.8" ;;
19406 "ntfsprogs/ntfscp.8") CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfscp.8" ;;
19407 "ntfsprogs/ntfsfix.8") CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfsfix.8" ;;
19408 "ntfsprogs/ntfsinfo.8") CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfsinfo.8" ;;
19409 "ntfsprogs/ntfslabel.8") CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfslabel.8" ;;
19410 "ntfsprogs/ntfsls.8") CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfsls.8" ;;
19411 "ntfsprogs/ntfsprogs.8") CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfsprogs.8" ;;
19412 "ntfsprogs/ntfsresize.8") CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfsresize.8" ;;
19413 "ntfsprogs/ntfsundelete.8") CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfsundelete.8" ;;
19414 "ntfsprogs/ntfsdecrypt.8") CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfsdecrypt.8" ;;
19415 "ntfsprogs/ntfswipe.8") CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfswipe.8" ;;
19416 "ntfsprogs/ntfstruncate.8") CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfstruncate.8" ;;
19417 "ntfsprogs/ntfsfallocate.8") CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfsfallocate.8" ;;
19418 "ntfsprogs/ntfsrecover.8") CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfsrecover.8" ;;
19419 "ntfsprogs/ntfsusermap.8") CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfsusermap.8" ;;
19420 "ntfsprogs/ntfssecaudit.8") CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfssecaudit.8" ;;
19421 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19422 "src/ntfs-3g.8") CONFIG_FILES="$CONFIG_FILES src/ntfs-3g.8" ;;
19423 "src/ntfs-3g.probe.8") CONFIG_FILES="$CONFIG_FILES src/ntfs-3g.probe.8" ;;
19424
19425 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
19426 esac
19427 done
19428
19429
19430 # If the user did not use the arguments to specify the items to instantiate,
19431 # then the envvar interface is used. Set only those that are not.
19432 # We use the long form for the default assignment because of an extremely
19433 # bizarre bug on SunOS 4.1.3.
19434 if $ac_need_defaults; then
19435 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
19436 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
19437 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
19438 fi
19439
19440 # Have a temporary directory for convenience. Make it in the build tree
19441 # simply because there is no reason against having it here, and in addition,
19442 # creating and moving files from /tmp can sometimes cause problems.
19443 # Hook for its removal unless debugging.
19444 # Note that there is a small window in which the directory will not be cleaned:
19445 # after its creation but before its name has been assigned to '$tmp'.
19446 $debug ||
19447 {
19448 tmp= ac_tmp=
19449 trap 'exit_status=$?
19450 : "${ac_tmp:=$tmp}"
19451 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19452 ' 0
19453 trap 'as_fn_exit 1' 1 2 13 15
19454 }
19455 # Create a (secure) tmp directory for tmp files.
19456
19457 {
19458 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19459 test -d "$tmp"
19460 } ||
19461 {
19462 tmp=./conf$$-$RANDOM
19463 (umask 077 && mkdir "$tmp")
19464 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19465 ac_tmp=$tmp
19466
19467 # Set up the scripts for CONFIG_FILES section.
19468 # No need to generate them if there are no CONFIG_FILES.
19469 # This happens for instance with './config.status config.h'.
19470 if test -n "$CONFIG_FILES"; then
19471
19472
19473 ac_cr=`echo X | tr X '\015'`
19474 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19475 # But we know of no other shell where ac_cr would be empty at this
19476 # point, so we can use a bashism as a fallback.
19477 if test "x$ac_cr" = x; then
19478 eval ac_cr=\$\'\\r\'
19479 fi
19480 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19481 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19482 ac_cs_awk_cr='\\r'
19483 else
19484 ac_cs_awk_cr=$ac_cr
19485 fi
19486
19487 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19488 _ACEOF
19489
19490
19491 {
19492 echo "cat >conf$$subs.awk <<_ACEOF" &&
19493 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19494 echo "_ACEOF"
19495 } >conf$$subs.sh ||
19496 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19497 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19498 ac_delim='%!_!# '
19499 for ac_last_try in false false false false false :; do
19500 . ./conf$$subs.sh ||
19501 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19502
19503 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19504 if test $ac_delim_n = $ac_delim_num; then
19505 break
19506 elif $ac_last_try; then
19507 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19508 else
19509 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19510 fi
19511 done
19512 rm -f conf$$subs.sh
19513
19514 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19515 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19516 _ACEOF
19517 sed -n '
19518 h
19519 s/^/S["/; s/!.*/"]=/
19520 p
19521 g
19522 s/^[^!]*!//
19523 :repl
19524 t repl
19525 s/'"$ac_delim"'$//
19526 t delim
19527 :nl
19528 h
19529 s/\(.\{148\}\)..*/\1/
19530 t more1
19531 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19532 p
19533 n
19534 b repl
19535 :more1
19536 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19537 p
19538 g
19539 s/.\{148\}//
19540 t nl
19541 :delim
19542 h
19543 s/\(.\{148\}\)..*/\1/
19544 t more2
19545 s/["\\]/\\&/g; s/^/"/; s/$/"/
19546 p
19547 b
19548 :more2
19549 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19550 p
19551 g
19552 s/.\{148\}//
19553 t delim
19554 ' <conf$$subs.awk | sed '
19555 /^[^""]/{
19556 N
19557 s/\n//
19558 }
19559 ' >>$CONFIG_STATUS || ac_write_fail=1
19560 rm -f conf$$subs.awk
19561 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19562 _ACAWK
19563 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19564 for (key in S) S_is_set[key] = 1
19565 FS = ""
19566
19567 }
19568 {
19569 line = $ 0
19570 nfields = split(line, field, "@")
19571 substed = 0
19572 len = length(field[1])
19573 for (i = 2; i < nfields; i++) {
19574 key = field[i]
19575 keylen = length(key)
19576 if (S_is_set[key]) {
19577 value = S[key]
19578 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19579 len += length(value) + length(field[++i])
19580 substed = 1
19581 } else
19582 len += 1 + keylen
19583 }
19584
19585 print line
19586 }
19587
19588 _ACAWK
19589 _ACEOF
19590 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19591 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19592 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19593 else
19594 cat
19595 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19596 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19597 _ACEOF
19598
19599 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19600 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19601 # trailing colons and then remove the whole line if VPATH becomes empty
19602 # (actually we leave an empty line to preserve line numbers).
19603 if test "x$srcdir" = x.; then
19604 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19605 h
19606 s///
19607 s/^/:/
19608 s/[ ]*$/:/
19609 s/:\$(srcdir):/:/g
19610 s/:\${srcdir}:/:/g
19611 s/:@srcdir@:/:/g
19612 s/^:*//
19613 s/:*$//
19614 x
19615 s/\(=[ ]*\).*/\1/
19616 G
19617 s/\n//
19618 s/^[^=]*=[ ]*$//
19619 }'
19620 fi
19621
19622 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19623 fi # test -n "$CONFIG_FILES"
19624
19625 # Set up the scripts for CONFIG_HEADERS section.
19626 # No need to generate them if there are no CONFIG_HEADERS.
19627 # This happens for instance with './config.status Makefile'.
19628 if test -n "$CONFIG_HEADERS"; then
19629 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19630 BEGIN {
19631 _ACEOF
19632
19633 # Transform confdefs.h into an awk script 'defines.awk', embedded as
19634 # here-document in config.status, that substitutes the proper values into
19635 # config.h.in to produce config.h.
19636
19637 # Create a delimiter string that does not exist in confdefs.h, to ease
19638 # handling of long lines.
19639 ac_delim='%!_!# '
19640 for ac_last_try in false false :; do
19641 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19642 if test -z "$ac_tt"; then
19643 break
19644 elif $ac_last_try; then
19645 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19646 else
19647 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19648 fi
19649 done
19650
19651 # For the awk script, D is an array of macro values keyed by name,
19652 # likewise P contains macro parameters if any. Preserve backslash
19653 # newline sequences.
19654
19655 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19656 sed -n '
19657 s/.\{148\}/&'"$ac_delim"'/g
19658 t rset
19659 :rset
19660 s/^[ ]*#[ ]*define[ ][ ]*/ /
19661 t def
19662 d
19663 :def
19664 s/\\$//
19665 t bsnl
19666 s/["\\]/\\&/g
19667 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19668 D["\1"]=" \3"/p
19669 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19670 d
19671 :bsnl
19672 s/["\\]/\\&/g
19673 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19674 D["\1"]=" \3\\\\\\n"\\/p
19675 t cont
19676 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19677 t cont
19678 d
19679 :cont
19680 n
19681 s/.\{148\}/&'"$ac_delim"'/g
19682 t clear
19683 :clear
19684 s/\\$//
19685 t bsnlc
19686 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19687 d
19688 :bsnlc
19689 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19690 b cont
19691 ' <confdefs.h | sed '
19692 s/'"$ac_delim"'/"\\\
19693 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19694
19695 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19696 for (key in D) D_is_set[key] = 1
19697 FS = ""
19698 }
19699 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19700 line = \$ 0
19701 split(line, arg, " ")
19702 if (arg[1] == "#") {
19703 defundef = arg[2]
19704 mac1 = arg[3]
19705 } else {
19706 defundef = substr(arg[1], 2)
19707 mac1 = arg[2]
19708 }
19709 split(mac1, mac2, "(") #)
19710 macro = mac2[1]
19711 prefix = substr(line, 1, index(line, defundef) - 1)
19712 if (D_is_set[macro]) {
19713 # Preserve the white space surrounding the "#".
19714 print prefix "define", macro P[macro] D[macro]
19715 next
19716 } else {
19717 # Replace #undef with comments. This is necessary, for example,
19718 # in the case of _POSIX_SOURCE, which is predefined and required
19719 # on some systems where configure will not decide to define it.
19720 if (defundef == "undef") {
19721 print "/*", prefix defundef, macro, "*/"
19722 next
19723 }
19724 }
19725 }
19726 { print }
19727 _ACAWK
19728 _ACEOF
19729 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19730 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19731 fi # test -n "$CONFIG_HEADERS"
19732
19733
19734 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19735 shift
19736 for ac_tag
19737 do
19738 case $ac_tag in
19739 :[FHLC]) ac_mode=$ac_tag; continue;;
19740 esac
19741 case $ac_mode$ac_tag in
19742 :[FHL]*:*);;
19743 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
19744 :[FH]-) ac_tag=-:-;;
19745 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19746 esac
19747 ac_save_IFS=$IFS
19748 IFS=:
19749 set x $ac_tag
19750 IFS=$ac_save_IFS
19751 shift
19752 ac_file=$1
19753 shift
19754
19755 case $ac_mode in
19756 :L) ac_source=$1;;
19757 :[FH])
19758 ac_file_inputs=
19759 for ac_f
19760 do
19761 case $ac_f in
19762 -) ac_f="$ac_tmp/stdin";;
19763 *) # Look for the file first in the build tree, then in the source tree
19764 # (if the path is not absolute). The absolute path cannot be DOS-style,
19765 # because $ac_f cannot contain ':'.
19766 test -f "$ac_f" ||
19767 case $ac_f in
19768 [\\/$]*) false;;
19769 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19770 esac ||
19771 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
19772 esac
19773 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19774 as_fn_append ac_file_inputs " '$ac_f'"
19775 done
19776
19777 # Let's still pretend it is 'configure' which instantiates (i.e., don't
19778 # use $as_me), people would be surprised to read:
19779 # /* config.h. Generated by config.status. */
19780 configure_input='Generated from '`
19781 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19782 `' by configure.'
19783 if test x"$ac_file" != x-; then
19784 configure_input="$ac_file. $configure_input"
19785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19786 printf "%s\n" "$as_me: creating $ac_file" >&6;}
19787 fi
19788 # Neutralize special characters interpreted by sed in replacement strings.
19789 case $configure_input in #(
19790 *\&* | *\|* | *\\* )
19791 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
19792 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19793 *) ac_sed_conf_input=$configure_input;;
19794 esac
19795
19796 case $ac_tag in
19797 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19798 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19799 esac
19800 ;;
19801 esac
19802
19803 ac_dir=`$as_dirname -- "$ac_file" ||
19804 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19805 X"$ac_file" : 'X\(//\)[^/]' \| \
19806 X"$ac_file" : 'X\(//\)$' \| \
19807 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19808 printf "%s\n" X"$ac_file" |
19809 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19810 s//\1/
19811 q
19812 }
19813 /^X\(\/\/\)[^/].*/{
19814 s//\1/
19815 q
19816 }
19817 /^X\(\/\/\)$/{
19818 s//\1/
19819 q
19820 }
19821 /^X\(\/\).*/{
19822 s//\1/
19823 q
19824 }
19825 s/.*/./; q'`
19826 as_dir="$ac_dir"; as_fn_mkdir_p
19827 ac_builddir=.
19828
19829 case "$ac_dir" in
19830 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19831 *)
19832 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
19833 # A ".." for each directory in $ac_dir_suffix.
19834 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19835 case $ac_top_builddir_sub in
19836 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19837 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19838 esac ;;
19839 esac
19840 ac_abs_top_builddir=$ac_pwd
19841 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19842 # for backward compatibility:
19843 ac_top_builddir=$ac_top_build_prefix
19844
19845 case $srcdir in
19846 .) # We are building in place.
19847 ac_srcdir=.
19848 ac_top_srcdir=$ac_top_builddir_sub
19849 ac_abs_top_srcdir=$ac_pwd ;;
19850 [\\/]* | ?:[\\/]* ) # Absolute name.
19851 ac_srcdir=$srcdir$ac_dir_suffix;
19852 ac_top_srcdir=$srcdir
19853 ac_abs_top_srcdir=$srcdir ;;
19854 *) # Relative name.
19855 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19856 ac_top_srcdir=$ac_top_build_prefix$srcdir
19857 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19858 esac
19859 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19860
19861
19862 case $ac_mode in
19863 :F)
19864 #
19865 # CONFIG_FILE
19866 #
19867
19868 case $INSTALL in
19869 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19870 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19871 esac
19872 ac_MKDIR_P=$MKDIR_P
19873 case $MKDIR_P in
19874 [\\/$]* | ?:[\\/]* ) ;;
19875 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19876 esac
19877 _ACEOF
19878
19879 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19880 # If the template does not know about datarootdir, expand it.
19881 # FIXME: This hack should be removed a few years after 2.60.
19882 ac_datarootdir_hack=; ac_datarootdir_seen=
19883 ac_sed_dataroot='
19884 /datarootdir/ {
19885 p
19886 q
19887 }
19888 /@datadir@/p
19889 /@docdir@/p
19890 /@infodir@/p
19891 /@localedir@/p
19892 /@mandir@/p'
19893 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19894 *datarootdir*) ac_datarootdir_seen=yes;;
19895 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19897 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19898 _ACEOF
19899 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19900 ac_datarootdir_hack='
19901 s&@datadir@&$datadir&g
19902 s&@docdir@&$docdir&g
19903 s&@infodir@&$infodir&g
19904 s&@localedir@&$localedir&g
19905 s&@mandir@&$mandir&g
19906 s&\\\${datarootdir}&$datarootdir&g' ;;
19907 esac
19908 _ACEOF
19909
19910 # Neutralize VPATH when '$srcdir' = '.'.
19911 # Shell code in configure.ac might set extrasub.
19912 # FIXME: do we really want to maintain this feature?
19913 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19914 ac_sed_extra="$ac_vpsub
19915 $extrasub
19916 _ACEOF
19917 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19918 :t
19919 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19920 s|@configure_input@|$ac_sed_conf_input|;t t
19921 s&@top_builddir@&$ac_top_builddir_sub&;t t
19922 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19923 s&@srcdir@&$ac_srcdir&;t t
19924 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19925 s&@top_srcdir@&$ac_top_srcdir&;t t
19926 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19927 s&@builddir@&$ac_builddir&;t t
19928 s&@abs_builddir@&$ac_abs_builddir&;t t
19929 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19930 s&@INSTALL@&$ac_INSTALL&;t t
19931 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19932 $ac_datarootdir_hack
19933 "
19934 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19935 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19936
19937 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19938 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19939 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19940 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
19942 which seems to be undefined. Please make sure it is defined" >&5
19943 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
19944 which seems to be undefined. Please make sure it is defined" >&2;}
19945
19946 rm -f "$ac_tmp/stdin"
19947 case $ac_file in
19948 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19949 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19950 esac \
19951 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19952 ;;
19953 :H)
19954 #
19955 # CONFIG_HEADER
19956 #
19957 if test x"$ac_file" != x-; then
19958 {
19959 printf "%s\n" "/* $configure_input */" >&1 \
19960 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19961 } >"$ac_tmp/config.h" \
19962 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19963 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19965 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
19966 else
19967 rm -f "$ac_file"
19968 mv "$ac_tmp/config.h" "$ac_file" \
19969 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19970 fi
19971 else
19972 printf "%s\n" "/* $configure_input */" >&1 \
19973 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19974 || as_fn_error $? "could not create -" "$LINENO" 5
19975 fi
19976 # Compute "$ac_file"'s index in $config_headers.
19977 _am_arg="$ac_file"
19978 _am_stamp_count=1
19979 for _am_header in $config_headers :; do
19980 case $_am_header in
19981 $_am_arg | $_am_arg:* )
19982 break ;;
19983 * )
19984 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19985 esac
19986 done
19987 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19988 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19989 X"$_am_arg" : 'X\(//\)[^/]' \| \
19990 X"$_am_arg" : 'X\(//\)$' \| \
19991 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19992 printf "%s\n" X"$_am_arg" |
19993 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19994 s//\1/
19995 q
19996 }
19997 /^X\(\/\/\)[^/].*/{
19998 s//\1/
19999 q
20000 }
20001 /^X\(\/\/\)$/{
20002 s//\1/
20003 q
20004 }
20005 /^X\(\/\).*/{
20006 s//\1/
20007 q
20008 }
20009 s/.*/./; q'`/stamp-h$_am_stamp_count
20010 ;;
20011
20012 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20013 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
20014 ;;
20015 esac
20016
20017
20018 case $ac_file$ac_mode in
20019 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20020 # Older Autoconf quotes --file arguments for eval, but not when files
20021 # are listed without --file. Let's play safe and only enable the eval
20022 # if we detect the quoting.
20023 # TODO: see whether this extra hack can be removed once we start
20024 # requiring Autoconf 2.70 or later.
20025 case $CONFIG_FILES in #(
20026 *\'*) :
20027 eval set x "$CONFIG_FILES" ;; #(
20028 *) :
20029 set x $CONFIG_FILES ;; #(
20030 *) :
20031 ;;
20032 esac
20033 shift
20034 # Used to flag and report bootstrapping failures.
20035 am_rc=0
20036 for am_mf
20037 do
20038 # Strip MF so we end up with the name of the file.
20039 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
20040 # Check whether this is an Automake generated Makefile which includes
20041 # dependency-tracking related rules and includes.
20042 # Grep'ing the whole file directly is not great: AIX grep has a line
20043 # limit of 2048, but all sed's we know have understand at least 4000.
20044 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
20045 || continue
20046 am_dirpart=`$as_dirname -- "$am_mf" ||
20047 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20048 X"$am_mf" : 'X\(//\)[^/]' \| \
20049 X"$am_mf" : 'X\(//\)$' \| \
20050 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20051 printf "%s\n" X"$am_mf" |
20052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20053 s//\1/
20054 q
20055 }
20056 /^X\(\/\/\)[^/].*/{
20057 s//\1/
20058 q
20059 }
20060 /^X\(\/\/\)$/{
20061 s//\1/
20062 q
20063 }
20064 /^X\(\/\).*/{
20065 s//\1/
20066 q
20067 }
20068 s/.*/./; q'`
20069 am_filepart=`$as_basename -- "$am_mf" ||
20070 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
20071 X"$am_mf" : 'X\(//\)$' \| \
20072 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20073 printf "%s\n" X/"$am_mf" |
20074 sed '/^.*\/\([^/][^/]*\)\/*$/{
20075 s//\1/
20076 q
20077 }
20078 /^X\/\(\/\/\)$/{
20079 s//\1/
20080 q
20081 }
20082 /^X\/\(\/\).*/{
20083 s//\1/
20084 q
20085 }
20086 s/.*/./; q'`
20087 { echo "$as_me:$LINENO: cd "$am_dirpart" \
20088 && sed -e '/# am--include-marker/d' "$am_filepart" \
20089 | $MAKE -f - am--depfiles" >&5
20090 (cd "$am_dirpart" \
20091 && sed -e '/# am--include-marker/d' "$am_filepart" \
20092 | $MAKE -f - am--depfiles) >&5 2>&5
20093 ac_status=$?
20094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20095 (exit $ac_status); } || am_rc=$?
20096 done
20097 if test $am_rc -ne 0; then
20098 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
20099 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
20100 as_fn_error $? "Something went wrong bootstrapping makefile fragments
20101 for automatic dependency tracking. If GNU make was not used, consider
20102 re-running the configure script with MAKE=\"gmake\" (or whatever is
20103 necessary). You can also try re-running configure with the
20104 '--disable-dependency-tracking' option to at least be able to build
20105 the package (albeit without support for automatic dependency tracking).
20106 See 'config.log' for more details" "$LINENO" 5; }
20107 fi
20108 { am_dirpart=; unset am_dirpart;}
20109 { am_filepart=; unset am_filepart;}
20110 { am_mf=; unset am_mf;}
20111 { am_rc=; unset am_rc;}
20112 rm -f conftest-deps.mk
20113 }
20114 ;;
20115 "libtool":C)
20116
20117 # See if we are running on zsh, and set the options that allow our
20118 # commands through without removal of \ escapes.
20119 if test -n "${ZSH_VERSION+set}"; then
20120 setopt NO_GLOB_SUBST
20121 fi
20122
20123 cfgfile=${ofile}T
20124 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20125 $RM "$cfgfile"
20126
20127 cat <<_LT_EOF >> "$cfgfile"
20128 #! $SHELL
20129 # Generated automatically by $as_me ($PACKAGE) $VERSION
20130 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20131
20132 # Provide generalized library-building support services.
20133 # Written by Gordon Matzigkeit, 1996
20134
20135 # Copyright (C) 2024 Free Software Foundation, Inc.
20136 # This is free software; see the source for copying conditions. There is NO
20137 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20138
20139 # GNU Libtool is free software; you can redistribute it and/or modify
20140 # it under the terms of the GNU General Public License as published by
20141 # the Free Software Foundation; either version 2 of the License, or
20142 # (at your option) any later version.
20143 #
20144 # As a special exception to the GNU General Public License, if you
20145 # distribute this file as part of a program or library that is built
20146 # using GNU Libtool, you may include this file under the same
20147 # distribution terms that you use for the rest of that program.
20148 #
20149 # GNU Libtool is distributed in the hope that it will be useful, but
20150 # WITHOUT ANY WARRANTY; without even the implied warranty of
20151 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20152 # GNU General Public License for more details.
20153 #
20154 # You should have received a copy of the GNU General Public License
20155 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20156
20157
20158 # The names of the tagged configurations supported by this script.
20159 available_tags=''
20160
20161 # Configured defaults for sys_lib_dlsearch_path munging.
20162 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20163
20164 # ### BEGIN LIBTOOL CONFIG
20165
20166 # Which release of libtool.m4 was used?
20167 macro_version=$macro_version
20168 macro_revision=$macro_revision
20169
20170 # Whether or not to build shared libraries.
20171 build_libtool_libs=$enable_shared
20172
20173 # Whether or not to build static libraries.
20174 build_old_libs=$enable_static
20175
20176 # What type of objects to build.
20177 pic_mode=$pic_mode
20178
20179 # Whether or not to optimize for fast installation.
20180 fast_install=$enable_fast_install
20181
20182 # Shared archive member basename,for filename based shared library versioning on AIX.
20183 shared_archive_member_spec=$shared_archive_member_spec
20184
20185 # Shell to use when invoking shell scripts.
20186 SHELL=$lt_SHELL
20187
20188 # An echo program that protects backslashes.
20189 ECHO=$lt_ECHO
20190
20191 # The PATH separator for the build system.
20192 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20193
20194 # The host system.
20195 host_alias=$host_alias
20196 host=$host
20197 host_os=$host_os
20198
20199 # The build system.
20200 build_alias=$build_alias
20201 build=$build
20202 build_os=$build_os
20203
20204 # A sed program that does not truncate output.
20205 SED=$lt_SED
20206
20207 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20208 Xsed="\$SED -e 1s/^X//"
20209
20210 # A grep program that handles long lines.
20211 GREP=$lt_GREP
20212
20213 # An ERE matcher.
20214 EGREP=$lt_EGREP
20215
20216 # A literal string matcher.
20217 FGREP=$lt_FGREP
20218
20219 # A BSD- or MS-compatible name lister.
20220 NM=$lt_NM
20221
20222 # Whether we need soft or hard links.
20223 LN_S=$lt_LN_S
20224
20225 # What is the maximum length of a command?
20226 max_cmd_len=$max_cmd_len
20227
20228 # Object file suffix (normally "o").
20229 objext=$ac_objext
20230
20231 # Executable file suffix (normally "").
20232 exeext=$exeext
20233
20234 # whether the shell understands "unset".
20235 lt_unset=$lt_unset
20236
20237 # turn spaces into newlines.
20238 SP2NL=$lt_lt_SP2NL
20239
20240 # turn newlines into spaces.
20241 NL2SP=$lt_lt_NL2SP
20242
20243 # convert \$build file names to \$host format.
20244 to_host_file_cmd=$lt_cv_to_host_file_cmd
20245
20246 # convert \$build files to toolchain format.
20247 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20248
20249 # A file(cmd) program that detects file types.
20250 FILECMD=$lt_FILECMD
20251
20252 # An object symbol dumper.
20253 OBJDUMP=$lt_OBJDUMP
20254
20255 # Method to check whether dependent libraries are shared objects.
20256 deplibs_check_method=$lt_deplibs_check_method
20257
20258 # Command to use when deplibs_check_method = "file_magic".
20259 file_magic_cmd=$lt_file_magic_cmd
20260
20261 # How to find potential files when deplibs_check_method = "file_magic".
20262 file_magic_glob=$lt_file_magic_glob
20263
20264 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20265 want_nocaseglob=$lt_want_nocaseglob
20266
20267 # DLL creation program.
20268 DLLTOOL=$lt_DLLTOOL
20269
20270 # Command to associate shared and link libraries.
20271 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20272
20273 # The archiver.
20274 AR=$lt_AR
20275
20276 # Flags to create an archive (by configure).
20277 lt_ar_flags=$lt_ar_flags
20278
20279 # Flags to create an archive.
20280 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
20281
20282 # How to feed a file listing to the archiver.
20283 archiver_list_spec=$lt_archiver_list_spec
20284
20285 # A symbol stripping program.
20286 STRIP=$lt_STRIP
20287
20288 # Commands used to install an old-style archive.
20289 RANLIB=$lt_RANLIB
20290 old_postinstall_cmds=$lt_old_postinstall_cmds
20291 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20292
20293 # Whether to use a lock for old archive extraction.
20294 lock_old_archive_extraction=$lock_old_archive_extraction
20295
20296 # A C compiler.
20297 LTCC=$lt_CC
20298
20299 # LTCC compiler flags.
20300 LTCFLAGS=$lt_CFLAGS
20301
20302 # Take the output of nm and produce a listing of raw symbols and C names.
20303 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20304
20305 # Transform the output of nm in a proper C declaration.
20306 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20307
20308 # Transform the output of nm into a list of symbols to manually relocate.
20309 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20310
20311 # Transform the output of nm in a C name address pair.
20312 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20313
20314 # Transform the output of nm in a C name address pair when lib prefix is needed.
20315 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20316
20317 # The name lister interface.
20318 nm_interface=$lt_lt_cv_nm_interface
20319
20320 # Specify filename containing input files for \$NM.
20321 nm_file_list_spec=$lt_nm_file_list_spec
20322
20323 # The root where to search for dependent libraries,and where our libraries should be installed.
20324 lt_sysroot=$lt_sysroot
20325
20326 # Command to truncate a binary pipe.
20327 lt_truncate_bin=$lt_lt_cv_truncate_bin
20328
20329 # The name of the directory that contains temporary libtool files.
20330 objdir=$objdir
20331
20332 # Used to examine libraries when file_magic_cmd begins with "file".
20333 MAGIC_CMD=$MAGIC_CMD
20334
20335 # Must we lock files when doing compilation?
20336 need_locks=$lt_need_locks
20337
20338 # Manifest tool.
20339 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20340
20341 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20342 DSYMUTIL=$lt_DSYMUTIL
20343
20344 # Tool to change global to local symbols on Mac OS X.
20345 NMEDIT=$lt_NMEDIT
20346
20347 # Tool to manipulate fat objects and archives on Mac OS X.
20348 LIPO=$lt_LIPO
20349
20350 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20351 OTOOL=$lt_OTOOL
20352
20353 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20354 OTOOL64=$lt_OTOOL64
20355
20356 # Old archive suffix (normally "a").
20357 libext=$libext
20358
20359 # Shared library suffix (normally ".so").
20360 shrext_cmds=$lt_shrext_cmds
20361
20362 # The commands to extract the exported symbol list from a shared archive.
20363 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20364
20365 # Variables whose values should be saved in libtool wrapper scripts and
20366 # restored at link time.
20367 variables_saved_for_relink=$lt_variables_saved_for_relink
20368
20369 # Do we need the "lib" prefix for modules?
20370 need_lib_prefix=$need_lib_prefix
20371
20372 # Do we need a version for libraries?
20373 need_version=$need_version
20374
20375 # Library versioning type.
20376 version_type=$version_type
20377
20378 # Shared library runtime path variable.
20379 runpath_var=$runpath_var
20380
20381 # Shared library path variable.
20382 shlibpath_var=$shlibpath_var
20383
20384 # Is shlibpath searched before the hard-coded library search path?
20385 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20386
20387 # Format of library name prefix.
20388 libname_spec=$lt_libname_spec
20389
20390 # List of archive names. First name is the real one, the rest are links.
20391 # The last name is the one that the linker finds with -lNAME
20392 library_names_spec=$lt_library_names_spec
20393
20394 # The coded name of the library, if different from the real name.
20395 soname_spec=$lt_soname_spec
20396
20397 # Permission mode override for installation of shared libraries.
20398 install_override_mode=$lt_install_override_mode
20399
20400 # Command to use after installation of a shared archive.
20401 postinstall_cmds=$lt_postinstall_cmds
20402
20403 # Command to use after uninstallation of a shared archive.
20404 postuninstall_cmds=$lt_postuninstall_cmds
20405
20406 # Commands used to finish a libtool library installation in a directory.
20407 finish_cmds=$lt_finish_cmds
20408
20409 # As "finish_cmds", except a single script fragment to be evaled but
20410 # not shown.
20411 finish_eval=$lt_finish_eval
20412
20413 # Whether we should hardcode library paths into libraries.
20414 hardcode_into_libs=$hardcode_into_libs
20415
20416 # Compile-time system search path for libraries.
20417 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20418
20419 # Detected run-time system search path for libraries.
20420 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20421
20422 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20423 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20424
20425 # Whether dlopen is supported.
20426 dlopen_support=$enable_dlopen
20427
20428 # Whether dlopen of programs is supported.
20429 dlopen_self=$enable_dlopen_self
20430
20431 # Whether dlopen of statically linked programs is supported.
20432 dlopen_self_static=$enable_dlopen_self_static
20433
20434 # Commands to strip libraries.
20435 old_striplib=$lt_old_striplib
20436 striplib=$lt_striplib
20437
20438
20439 # The linker used to build libraries.
20440 LD=$lt_LD
20441
20442 # How to create reloadable object files.
20443 reload_flag=$lt_reload_flag
20444 reload_cmds=$lt_reload_cmds
20445
20446 # Commands used to build an old-style archive.
20447 old_archive_cmds=$lt_old_archive_cmds
20448
20449 # A language specific compiler.
20450 CC=$lt_compiler
20451
20452 # Is the compiler the GNU compiler?
20453 with_gcc=$GCC
20454
20455 # Compiler flag to turn off builtin functions.
20456 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20457
20458 # Additional compiler flags for building library objects.
20459 pic_flag=$lt_lt_prog_compiler_pic
20460
20461 # How to pass a linker flag through the compiler.
20462 wl=$lt_lt_prog_compiler_wl
20463
20464 # Compiler flag to prevent dynamic linking.
20465 link_static_flag=$lt_lt_prog_compiler_static
20466
20467 # Does compiler simultaneously support -c and -o options?
20468 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20469
20470 # Whether or not to add -lc for building shared libraries.
20471 build_libtool_need_lc=$archive_cmds_need_lc
20472
20473 # Whether or not to disallow shared libs when runtime libs are static.
20474 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20475
20476 # Compiler flag to allow reflexive dlopens.
20477 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20478
20479 # Compiler flag to generate shared objects directly from archives.
20480 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20481
20482 # Whether the compiler copes with passing no objects directly.
20483 compiler_needs_object=$lt_compiler_needs_object
20484
20485 # Create an old-style archive from a shared archive.
20486 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20487
20488 # Create a temporary old-style archive to link instead of a shared archive.
20489 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20490
20491 # Commands used to build a shared archive.
20492 archive_cmds=$lt_archive_cmds
20493 archive_expsym_cmds=$lt_archive_expsym_cmds
20494
20495 # Commands used to build a loadable module if different from building
20496 # a shared archive.
20497 module_cmds=$lt_module_cmds
20498 module_expsym_cmds=$lt_module_expsym_cmds
20499
20500 # Whether we are building with GNU ld or not.
20501 with_gnu_ld=$lt_with_gnu_ld
20502
20503 # Flag that allows shared libraries with undefined symbols to be built.
20504 allow_undefined_flag=$lt_allow_undefined_flag
20505
20506 # Flag that enforces no undefined symbols.
20507 no_undefined_flag=$lt_no_undefined_flag
20508
20509 # Flag to hardcode \$libdir into a binary during linking.
20510 # This must work even if \$libdir does not exist
20511 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20512
20513 # Whether we need a single "-rpath" flag with a separated argument.
20514 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20515
20516 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20517 # DIR into the resulting binary.
20518 hardcode_direct=$hardcode_direct
20519
20520 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20521 # DIR into the resulting binary and the resulting library dependency is
20522 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
20523 # library is relocated.
20524 hardcode_direct_absolute=$hardcode_direct_absolute
20525
20526 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20527 # into the resulting binary.
20528 hardcode_minus_L=$hardcode_minus_L
20529
20530 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20531 # into the resulting binary.
20532 hardcode_shlibpath_var=$hardcode_shlibpath_var
20533
20534 # Set to "yes" if building a shared library automatically hardcodes DIR
20535 # into the library and all subsequent libraries and executables linked
20536 # against it.
20537 hardcode_automatic=$hardcode_automatic
20538
20539 # Set to yes if linker adds runtime paths of dependent libraries
20540 # to runtime path list.
20541 inherit_rpath=$inherit_rpath
20542
20543 # Whether libtool must link a program against all its dependency libraries.
20544 link_all_deplibs=$link_all_deplibs
20545
20546 # Set to "yes" if exported symbols are required.
20547 always_export_symbols=$always_export_symbols
20548
20549 # The commands to list exported symbols.
20550 export_symbols_cmds=$lt_export_symbols_cmds
20551
20552 # Symbols that should not be listed in the preloaded symbols.
20553 exclude_expsyms=$lt_exclude_expsyms
20554
20555 # Symbols that must always be exported.
20556 include_expsyms=$lt_include_expsyms
20557
20558 # Commands necessary for linking programs (against libraries) with templates.
20559 prelink_cmds=$lt_prelink_cmds
20560
20561 # Commands necessary for finishing linking programs.
20562 postlink_cmds=$lt_postlink_cmds
20563
20564 # Specify filename containing input files.
20565 file_list_spec=$lt_file_list_spec
20566
20567 # How to hardcode a shared library path into an executable.
20568 hardcode_action=$hardcode_action
20569
20570 # ### END LIBTOOL CONFIG
20571
20572 _LT_EOF
20573
20574 cat <<'_LT_EOF' >> "$cfgfile"
20575
20576 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20577
20578 # func_munge_path_list VARIABLE PATH
20579 # -----------------------------------
20580 # VARIABLE is name of variable containing _space_ separated list of
20581 # directories to be munged by the contents of PATH, which is string
20582 # having a format:
20583 # "DIR[:DIR]:"
20584 # string "DIR[ DIR]" will be prepended to VARIABLE
20585 # ":DIR[:DIR]"
20586 # string "DIR[ DIR]" will be appended to VARIABLE
20587 # "DIRP[:DIRP]::[DIRA:]DIRA"
20588 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20589 # "DIRA[ DIRA]" will be appended to VARIABLE
20590 # "DIR[:DIR]"
20591 # VARIABLE will be replaced by "DIR[ DIR]"
20592 func_munge_path_list ()
20593 {
20594 case x$2 in
20595 x)
20596 ;;
20597 *:)
20598 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20599 ;;
20600 x:*)
20601 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20602 ;;
20603 *::*)
20604 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20605 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20606 ;;
20607 *)
20608 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20609 ;;
20610 esac
20611 }
20612
20613
20614 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
20615 func_cc_basename ()
20616 {
20617 for cc_temp in $*""; do
20618 case $cc_temp in
20619 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20620 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20621 \-*) ;;
20622 *) break;;
20623 esac
20624 done
20625 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20626 }
20627
20628
20629 # ### END FUNCTIONS SHARED WITH CONFIGURE
20630
20631 _LT_EOF
20632
20633 case $host_os in
20634 aix3*)
20635 cat <<\_LT_EOF >> "$cfgfile"
20636 # AIX sometimes has problems with the GCC collect2 program. For some
20637 # reason, if we set the COLLECT_NAMES environment variable, the problems
20638 # vanish in a puff of smoke.
20639 if test set != "${COLLECT_NAMES+set}"; then
20640 COLLECT_NAMES=
20641 export COLLECT_NAMES
20642 fi
20643 _LT_EOF
20644 ;;
20645 esac
20646
20647
20648
20649 ltmain=$ac_aux_dir/ltmain.sh
20650
20651
20652 # We use sed instead of cat because bash on DJGPP gets confused if
20653 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20654 # text mode, it properly converts lines to CR/LF. This bash problem
20655 # is reportedly fixed, but why not run on old versions too?
20656 $SED '$q' "$ltmain" >> "$cfgfile" \
20657 || (rm -f "$cfgfile"; exit 1)
20658
20659 mv -f "$cfgfile" "$ofile" ||
20660 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20661 chmod +x "$ofile"
20662
20663 ;;
20664
20665 esac
20666 done # for ac_tag
20667
20668
20669 as_fn_exit 0
20670 _ACEOF
20671 ac_clean_files=$ac_clean_files_save
20672
20673 test $ac_write_fail = 0 ||
20674 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20675
20676
20677 # configure is writing to config.log, and then calls config.status.
20678 # config.status does its own redirection, appending to config.log.
20679 # Unfortunately, on DOS this fails, as config.log is still kept open
20680 # by configure, so config.status won't be able to write to it; its
20681 # output is simply discarded. So we exec the FD to /dev/null,
20682 # effectively closing config.log, so it can be properly (re)opened and
20683 # appended to by config.status. When coming back to configure, we
20684 # need to make the FD available again.
20685 if test "$no_create" != yes; then
20686 ac_cs_success=:
20687 ac_config_status_args=
20688 test "$silent" = yes &&
20689 ac_config_status_args="$ac_config_status_args --quiet"
20690 exec 5>/dev/null
20691 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20692 exec 5>>config.log
20693 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20694 # would make configure fail if this is the last instruction.
20695 $ac_cs_success || as_fn_exit 1
20696 fi
20697 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20699 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20700 fi
20701
20702
20703 if test "${with_fuse}" = "external"; then
20704 if ! echo "x$FUSE_LIB_PATH" | grep -- "x-L/lib" > /dev/null; then
20705 cat <<EOF
20706 ****************************************************************************
20707 * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING *
20708 * The FUSE user space binaries were NOT installed with root directory *
20709 * executable prefix. This means that automounting NTFS volumes during boot *
20710 * could fail. This can be fixed the below way by reinstalling FUSE using *
20711 * the right 'configure' option during FUSE compilation: *
20712 * ./configure --exec-prefix=/ *
20713 * make && sudo make install *
20714 * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING *
20715 ****************************************************************************
20716 EOF
20717 fi
20718 fi
20719
20720 echo "You can type now 'make' to build ntfs-3g."
20721
20722