Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for exfatprogs 1.4.3.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 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 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
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="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
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 \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 PATH=/empty FPATH=/empty; export PATH FPATH
192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194 test \$(( 1 + 1 )) = 2 || exit 1"
195 if (eval "$as_required") 2>/dev/null
196 then :
197 as_have_required=yes
198 else $as_nop
199 as_have_required=no
200 fi
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else $as_nop
205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209 IFS=$as_save_IFS
210 case $as_dir in #(((
211 '') as_dir=./ ;;
212 */) ;;
213 *) as_dir=$as_dir/ ;;
214 esac
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227 break 2
228 fi
229 fi
230 done;;
231 esac
232 as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else $as_nop
239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242 CONFIG_SHELL=$SHELL as_have_required=yes
243 fi
244 fi
245
246
247 if test "x$CONFIG_SHELL" != x
248 then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno
271 then :
272 printf "%s\n" "$0: This script requires a shell more modern than all"
273 printf "%s\n" "$0: the shells that I found on your system."
274 if test ${ZSH_VERSION+y} ; then
275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277 else
278 printf "%s\n" "$0: Please tell [email protected] and
279 $0: [email protected] about your system, including any
280 $0: error possibly output before this message. Then install
281 $0: a modern shell, or manually run the script under such a
282 $0: shell if you do have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306
307 # as_fn_set_status STATUS
308 # -----------------------
309 # Set $? to STATUS, without forking.
310 as_fn_set_status ()
311 {
312 return $1
313 } # as_fn_set_status
314
315 # as_fn_exit STATUS
316 # -----------------
317 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318 as_fn_exit ()
319 {
320 set +e
321 as_fn_set_status $1
322 exit $1
323 } # as_fn_exit
324 # as_fn_nop
325 # ---------
326 # Do nothing but, unlike ":", preserve the value of $?.
327 as_fn_nop ()
328 {
329 return $?
330 }
331 as_nop=as_fn_nop
332
333 # as_fn_mkdir_p
334 # -------------
335 # Create "$as_dir" as a directory, including parents if necessary.
336 as_fn_mkdir_p ()
337 {
338
339 case $as_dir in #(
340 -*) as_dir=./$as_dir;;
341 esac
342 test -d "$as_dir" || eval $as_mkdir_p || {
343 as_dirs=
344 while :; do
345 case $as_dir in #(
346 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
347 *) as_qdir=$as_dir;;
348 esac
349 as_dirs="'$as_qdir' $as_dirs"
350 as_dir=`$as_dirname -- "$as_dir" ||
351 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
352 X"$as_dir" : 'X\(//\)[^/]' \| \
353 X"$as_dir" : 'X\(//\)$' \| \
354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
355 printf "%s\n" X"$as_dir" |
356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
357 s//\1/
358 q
359 }
360 /^X\(\/\/\)[^/].*/{
361 s//\1/
362 q
363 }
364 /^X\(\/\/\)$/{
365 s//\1/
366 q
367 }
368 /^X\(\/\).*/{
369 s//\1/
370 q
371 }
372 s/.*/./; q'`
373 test -d "$as_dir" && break
374 done
375 test -z "$as_dirs" || eval "mkdir $as_dirs"
376 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
377
378
379 } # as_fn_mkdir_p
380
381 # as_fn_executable_p FILE
382 # -----------------------
383 # Test if FILE is an executable regular file.
384 as_fn_executable_p ()
385 {
386 test -f "$1" && test -x "$1"
387 } # as_fn_executable_p
388 # as_fn_append VAR VALUE
389 # ----------------------
390 # Append the text in VALUE to the end of the definition contained in VAR. Take
391 # advantage of any shell optimizations that allow amortized linear growth over
392 # repeated appends, instead of the typical quadratic growth present in naive
393 # implementations.
394 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
395 then :
396 eval 'as_fn_append ()
397 {
398 eval $1+=\$2
399 }'
400 else $as_nop
401 as_fn_append ()
402 {
403 eval $1=\$$1\$2
404 }
405 fi # as_fn_append
406
407 # as_fn_arith ARG...
408 # ------------------
409 # Perform arithmetic evaluation on the ARGs, and store the result in the
410 # global $as_val. Take advantage of shells that can avoid forks. The arguments
411 # must be portable across $(()) and expr.
412 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
413 then :
414 eval 'as_fn_arith ()
415 {
416 as_val=$(( $* ))
417 }'
418 else $as_nop
419 as_fn_arith ()
420 {
421 as_val=`expr "$@" || test $? -eq 1`
422 }
423 fi # as_fn_arith
424
425 # as_fn_nop
426 # ---------
427 # Do nothing but, unlike ":", preserve the value of $?.
428 as_fn_nop ()
429 {
430 return $?
431 }
432 as_nop=as_fn_nop
433
434 # as_fn_error STATUS ERROR [LINENO LOG_FD]
435 # ----------------------------------------
436 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
437 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
438 # script with STATUS, using 1 if that was 0.
439 as_fn_error ()
440 {
441 as_status=$1; test $as_status -eq 0 && as_status=1
442 if test "$4"; then
443 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
445 fi
446 printf "%s\n" "$as_me: error: $2" >&2
447 as_fn_exit $as_status
448 } # as_fn_error
449
450 if expr a : '\(a\)' >/dev/null 2>&1 &&
451 test "X`expr 00001 : '.*\(...\)'`" = X001; then
452 as_expr=expr
453 else
454 as_expr=false
455 fi
456
457 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
458 as_basename=basename
459 else
460 as_basename=false
461 fi
462
463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
464 as_dirname=dirname
465 else
466 as_dirname=false
467 fi
468
469 as_me=`$as_basename -- "$0" ||
470 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
471 X"$0" : 'X\(//\)$' \| \
472 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
473 printf "%s\n" X/"$0" |
474 sed '/^.*\/\([^/][^/]*\)\/*$/{
475 s//\1/
476 q
477 }
478 /^X\/\(\/\/\)$/{
479 s//\1/
480 q
481 }
482 /^X\/\(\/\).*/{
483 s//\1/
484 q
485 }
486 s/.*/./; q'`
487
488 # Avoid depending upon Character Ranges.
489 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
490 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
491 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
492 as_cr_digits='0123456789'
493 as_cr_alnum=$as_cr_Letters$as_cr_digits
494
495
496 as_lineno_1=$LINENO as_lineno_1a=$LINENO
497 as_lineno_2=$LINENO as_lineno_2a=$LINENO
498 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
499 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
500 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
501 sed -n '
502 p
503 /[$]LINENO/=
504 ' <$as_myself |
505 sed '
506 s/[$]LINENO.*/&-/
507 t lineno
508 b
509 :lineno
510 N
511 :loop
512 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
513 t loop
514 s/-\n.*//
515 ' >$as_me.lineno &&
516 chmod +x "$as_me.lineno" ||
517 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
518
519 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
520 # already done that, so ensure we don't try to do so again and fall
521 # in an infinite loop. This has already happened in practice.
522 _as_can_reexec=no; export _as_can_reexec
523 # Don't try to exec as it changes $[0], causing all sort of problems
524 # (the dirname of $[0] is not the place where we might find the
525 # original and so on. Autoconf is especially sensitive to this).
526 . "./$as_me.lineno"
527 # Exit status is that of the last command.
528 exit
529 }
530
531
532 # Determine whether it's possible to make 'echo' print without a newline.
533 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
534 # for compatibility with existing Makefiles.
535 ECHO_C= ECHO_N= ECHO_T=
536 case `echo -n x` in #(((((
537 -n*)
538 case `echo 'xy\c'` in
539 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
540 xy) ECHO_C='\c';;
541 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
542 ECHO_T=' ';;
543 esac;;
544 *)
545 ECHO_N='-n';;
546 esac
547
548 # For backward compatibility with old third-party macros, we provide
549 # the shell variables $as_echo and $as_echo_n. New code should use
550 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
551 as_echo='printf %s\n'
552 as_echo_n='printf %s'
553
554
555 rm -f conf$$ conf$$.exe conf$$.file
556 if test -d conf$$.dir; then
557 rm -f conf$$.dir/conf$$.file
558 else
559 rm -f conf$$.dir
560 mkdir conf$$.dir 2>/dev/null
561 fi
562 if (echo >conf$$.file) 2>/dev/null; then
563 if ln -s conf$$.file conf$$ 2>/dev/null; then
564 as_ln_s='ln -s'
565 # ... but there are two gotchas:
566 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
567 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
568 # In both cases, we have to default to `cp -pR'.
569 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
570 as_ln_s='cp -pR'
571 elif ln conf$$.file conf$$ 2>/dev/null; then
572 as_ln_s=ln
573 else
574 as_ln_s='cp -pR'
575 fi
576 else
577 as_ln_s='cp -pR'
578 fi
579 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
580 rmdir conf$$.dir 2>/dev/null
581
582 if mkdir -p . 2>/dev/null; then
583 as_mkdir_p='mkdir -p "$as_dir"'
584 else
585 test -d ./-p && rmdir ./-p
586 as_mkdir_p=false
587 fi
588
589 as_test_x='test -x'
590 as_executable_p=as_fn_executable_p
591
592 # Sed expression to map a string onto a valid CPP name.
593 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
594
595 # Sed expression to map a string onto a valid variable name.
596 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
597
598 SHELL=${CONFIG_SHELL-/bin/sh}
599
600
601 test -n "$DJDIR" || exec 7<&0 </dev/null
602 exec 6>&1
603
604 # Name of the host.
605 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606 # so uname gets run too.
607 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
608
609 #
610 # Initializations.
611 #
612 ac_default_prefix=/usr/local
613 ac_clean_files=
614 ac_config_libobj_dir=.
615 LIBOBJS=
616 cross_compiling=no
617 subdirs=
618 MFLAGS=
619 MAKEFLAGS=
620
621 # Identity of this package.
622 PACKAGE_NAME='exfatprogs'
623 PACKAGE_TARNAME='exfatprogs'
624 PACKAGE_VERSION='1.4.3'
625 PACKAGE_STRING='exfatprogs 1.4.3'
626 PACKAGE_BUGREPORT='[email protected]'
627 PACKAGE_URL='https://github.com/exfatprogs/exfatprogs'
628
629 ac_unique_file="config.h.in"
630 # Factoring default headers for most tests.
631 ac_includes_default="\
632 #include <stddef.h>
633 #ifdef HAVE_STDIO_H
634 # include <stdio.h>
635 #endif
636 #ifdef HAVE_STDLIB_H
637 # include <stdlib.h>
638 #endif
639 #ifdef HAVE_STRING_H
640 # include <string.h>
641 #endif
642 #ifdef HAVE_INTTYPES_H
643 # include <inttypes.h>
644 #endif
645 #ifdef HAVE_STDINT_H
646 # include <stdint.h>
647 #endif
648 #ifdef HAVE_STRINGS_H
649 # include <strings.h>
650 #endif
651 #ifdef HAVE_SYS_TYPES_H
652 # include <sys/types.h>
653 #endif
654 #ifdef HAVE_SYS_STAT_H
655 # include <sys/stat.h>
656 #endif
657 #ifdef HAVE_UNISTD_H
658 # include <unistd.h>
659 #endif"
660
661 ac_header_c_list=
662 ac_subst_vars='am__EXEEXT_FALSE
663 am__EXEEXT_TRUE
664 LTLIBOBJS
665 LIBOBJS
666 ENABLE_TESTS_FALSE
667 ENABLE_TESTS_TRUE
668 EXT2_BLKID_LIBS
669 EXT2_BLKID_CFLAGS
670 BLKID_LIBS
671 BLKID_CFLAGS
672 PKG_CONFIG_LIBDIR
673 PKG_CONFIG_PATH
674 PKG_CONFIG
675 ENABLE_DOSATTR_FALSE
676 ENABLE_DOSATTR_TRUE
677 LT_SYS_LIBRARY_PATH
678 OTOOL64
679 OTOOL
680 LIPO
681 NMEDIT
682 DSYMUTIL
683 MANIFEST_TOOL
684 RANLIB
685 ac_ct_AR
686 AR
687 DLLTOOL
688 OBJDUMP
689 FILECMD
690 LN_S
691 NM
692 ac_ct_DUMPBIN
693 DUMPBIN
694 LD
695 FGREP
696 EGREP
697 GREP
698 SED
699 host_os
700 host_vendor
701 host_cpu
702 host
703 build_os
704 build_vendor
705 build_cpu
706 build
707 LIBTOOL
708 am__fastdepCC_FALSE
709 am__fastdepCC_TRUE
710 CCDEPMODE
711 am__nodep
712 AMDEPBACKSLASH
713 AMDEP_FALSE
714 AMDEP_TRUE
715 am__include
716 DEPDIR
717 OBJEXT
718 EXEEXT
719 ac_ct_CC
720 CPPFLAGS
721 LDFLAGS
722 CFLAGS
723 CC
724 AM_BACKSLASH
725 AM_DEFAULT_VERBOSITY
726 AM_DEFAULT_V
727 AM_V
728 CSCOPE
729 ETAGS
730 CTAGS
731 am__untar
732 am__tar
733 AMTAR
734 am__leading_dot
735 SET_MAKE
736 AWK
737 mkdir_p
738 MKDIR_P
739 INSTALL_STRIP_PROGRAM
740 STRIP
741 install_sh
742 MAKEINFO
743 AUTOHEADER
744 AUTOMAKE
745 AUTOCONF
746 ACLOCAL
747 VERSION
748 PACKAGE
749 CYGPATH_W
750 am__isrc
751 INSTALL_DATA
752 INSTALL_SCRIPT
753 INSTALL_PROGRAM
754 target_alias
755 host_alias
756 build_alias
757 LIBS
758 ECHO_T
759 ECHO_N
760 ECHO_C
761 DEFS
762 mandir
763 localedir
764 libdir
765 psdir
766 pdfdir
767 dvidir
768 htmldir
769 infodir
770 docdir
771 oldincludedir
772 includedir
773 runstatedir
774 localstatedir
775 sharedstatedir
776 sysconfdir
777 datadir
778 datarootdir
779 libexecdir
780 sbindir
781 bindir
782 program_transform_name
783 prefix
784 exec_prefix
785 PACKAGE_URL
786 PACKAGE_BUGREPORT
787 PACKAGE_STRING
788 PACKAGE_VERSION
789 PACKAGE_TARNAME
790 PACKAGE_NAME
791 PATH_SEPARATOR
792 SHELL
793 am__quote'
794 ac_subst_files=''
795 ac_user_opts='
796 enable_option_checking
797 enable_silent_rules
798 enable_dependency_tracking
799 enable_shared
800 enable_static
801 with_pic
802 enable_fast_install
803 with_aix_soname
804 with_gnu_ld
805 with_sysroot
806 enable_libtool_lock
807 enable_largefile
808 enable_tests
809 '
810 ac_precious_vars='build_alias
811 host_alias
812 target_alias
813 CC
814 CFLAGS
815 LDFLAGS
816 LIBS
817 CPPFLAGS
818 LT_SYS_LIBRARY_PATH
819 PKG_CONFIG
820 PKG_CONFIG_PATH
821 PKG_CONFIG_LIBDIR
822 BLKID_CFLAGS
823 BLKID_LIBS
824 EXT2_BLKID_CFLAGS
825 EXT2_BLKID_LIBS'
826
827
828 # Initialize some variables set by options.
829 ac_init_help=
830 ac_init_version=false
831 ac_unrecognized_opts=
832 ac_unrecognized_sep=
833 # The variables have the same names as the options, with
834 # dashes changed to underlines.
835 cache_file=/dev/null
836 exec_prefix=NONE
837 no_create=
838 no_recursion=
839 prefix=NONE
840 program_prefix=NONE
841 program_suffix=NONE
842 program_transform_name=s,x,x,
843 silent=
844 site=
845 srcdir=
846 verbose=
847 x_includes=NONE
848 x_libraries=NONE
849
850 # Installation directory options.
851 # These are left unexpanded so users can "make install exec_prefix=/foo"
852 # and all the variables that are supposed to be based on exec_prefix
853 # by default will actually change.
854 # Use braces instead of parens because sh, perl, etc. also accept them.
855 # (The list follows the same order as the GNU Coding Standards.)
856 bindir='${exec_prefix}/bin'
857 sbindir='${exec_prefix}/sbin'
858 libexecdir='${exec_prefix}/libexec'
859 datarootdir='${prefix}/share'
860 datadir='${datarootdir}'
861 sysconfdir='${prefix}/etc'
862 sharedstatedir='${prefix}/com'
863 localstatedir='${prefix}/var'
864 runstatedir='${localstatedir}/run'
865 includedir='${prefix}/include'
866 oldincludedir='/usr/include'
867 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
868 infodir='${datarootdir}/info'
869 htmldir='${docdir}'
870 dvidir='${docdir}'
871 pdfdir='${docdir}'
872 psdir='${docdir}'
873 libdir='${exec_prefix}/lib'
874 localedir='${datarootdir}/locale'
875 mandir='${datarootdir}/man'
876
877 ac_prev=
878 ac_dashdash=
879 for ac_option
880 do
881 # If the previous option needs an argument, assign it.
882 if test -n "$ac_prev"; then
883 eval $ac_prev=\$ac_option
884 ac_prev=
885 continue
886 fi
887
888 case $ac_option in
889 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
890 *=) ac_optarg= ;;
891 *) ac_optarg=yes ;;
892 esac
893
894 case $ac_dashdash$ac_option in
895 --)
896 ac_dashdash=yes ;;
897
898 -bindir | --bindir | --bindi | --bind | --bin | --bi)
899 ac_prev=bindir ;;
900 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
901 bindir=$ac_optarg ;;
902
903 -build | --build | --buil | --bui | --bu)
904 ac_prev=build_alias ;;
905 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
906 build_alias=$ac_optarg ;;
907
908 -cache-file | --cache-file | --cache-fil | --cache-fi \
909 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
910 ac_prev=cache_file ;;
911 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
912 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
913 cache_file=$ac_optarg ;;
914
915 --config-cache | -C)
916 cache_file=config.cache ;;
917
918 -datadir | --datadir | --datadi | --datad)
919 ac_prev=datadir ;;
920 -datadir=* | --datadir=* | --datadi=* | --datad=*)
921 datadir=$ac_optarg ;;
922
923 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
924 | --dataroo | --dataro | --datar)
925 ac_prev=datarootdir ;;
926 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
927 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
928 datarootdir=$ac_optarg ;;
929
930 -disable-* | --disable-*)
931 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
932 # Reject names that are not valid shell variable names.
933 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
934 as_fn_error $? "invalid feature name: \`$ac_useropt'"
935 ac_useropt_orig=$ac_useropt
936 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
937 case $ac_user_opts in
938 *"
939 "enable_$ac_useropt"
940 "*) ;;
941 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
942 ac_unrecognized_sep=', ';;
943 esac
944 eval enable_$ac_useropt=no ;;
945
946 -docdir | --docdir | --docdi | --doc | --do)
947 ac_prev=docdir ;;
948 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
949 docdir=$ac_optarg ;;
950
951 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
952 ac_prev=dvidir ;;
953 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
954 dvidir=$ac_optarg ;;
955
956 -enable-* | --enable-*)
957 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
958 # Reject names that are not valid shell variable names.
959 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
960 as_fn_error $? "invalid feature name: \`$ac_useropt'"
961 ac_useropt_orig=$ac_useropt
962 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
963 case $ac_user_opts in
964 *"
965 "enable_$ac_useropt"
966 "*) ;;
967 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
968 ac_unrecognized_sep=', ';;
969 esac
970 eval enable_$ac_useropt=\$ac_optarg ;;
971
972 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
973 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
974 | --exec | --exe | --ex)
975 ac_prev=exec_prefix ;;
976 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
977 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
978 | --exec=* | --exe=* | --ex=*)
979 exec_prefix=$ac_optarg ;;
980
981 -gas | --gas | --ga | --g)
982 # Obsolete; use --with-gas.
983 with_gas=yes ;;
984
985 -help | --help | --hel | --he | -h)
986 ac_init_help=long ;;
987 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
988 ac_init_help=recursive ;;
989 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
990 ac_init_help=short ;;
991
992 -host | --host | --hos | --ho)
993 ac_prev=host_alias ;;
994 -host=* | --host=* | --hos=* | --ho=*)
995 host_alias=$ac_optarg ;;
996
997 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
998 ac_prev=htmldir ;;
999 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1000 | --ht=*)
1001 htmldir=$ac_optarg ;;
1002
1003 -includedir | --includedir | --includedi | --included | --include \
1004 | --includ | --inclu | --incl | --inc)
1005 ac_prev=includedir ;;
1006 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1007 | --includ=* | --inclu=* | --incl=* | --inc=*)
1008 includedir=$ac_optarg ;;
1009
1010 -infodir | --infodir | --infodi | --infod | --info | --inf)
1011 ac_prev=infodir ;;
1012 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1013 infodir=$ac_optarg ;;
1014
1015 -libdir | --libdir | --libdi | --libd)
1016 ac_prev=libdir ;;
1017 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1018 libdir=$ac_optarg ;;
1019
1020 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1021 | --libexe | --libex | --libe)
1022 ac_prev=libexecdir ;;
1023 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1024 | --libexe=* | --libex=* | --libe=*)
1025 libexecdir=$ac_optarg ;;
1026
1027 -localedir | --localedir | --localedi | --localed | --locale)
1028 ac_prev=localedir ;;
1029 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1030 localedir=$ac_optarg ;;
1031
1032 -localstatedir | --localstatedir | --localstatedi | --localstated \
1033 | --localstate | --localstat | --localsta | --localst | --locals)
1034 ac_prev=localstatedir ;;
1035 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1036 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1037 localstatedir=$ac_optarg ;;
1038
1039 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1040 ac_prev=mandir ;;
1041 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1042 mandir=$ac_optarg ;;
1043
1044 -nfp | --nfp | --nf)
1045 # Obsolete; use --without-fp.
1046 with_fp=no ;;
1047
1048 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1049 | --no-cr | --no-c | -n)
1050 no_create=yes ;;
1051
1052 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1053 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1054 no_recursion=yes ;;
1055
1056 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1057 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1058 | --oldin | --oldi | --old | --ol | --o)
1059 ac_prev=oldincludedir ;;
1060 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1061 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1062 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1063 oldincludedir=$ac_optarg ;;
1064
1065 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1066 ac_prev=prefix ;;
1067 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1068 prefix=$ac_optarg ;;
1069
1070 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1071 | --program-pre | --program-pr | --program-p)
1072 ac_prev=program_prefix ;;
1073 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1074 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1075 program_prefix=$ac_optarg ;;
1076
1077 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1078 | --program-suf | --program-su | --program-s)
1079 ac_prev=program_suffix ;;
1080 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1081 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1082 program_suffix=$ac_optarg ;;
1083
1084 -program-transform-name | --program-transform-name \
1085 | --program-transform-nam | --program-transform-na \
1086 | --program-transform-n | --program-transform- \
1087 | --program-transform | --program-transfor \
1088 | --program-transfo | --program-transf \
1089 | --program-trans | --program-tran \
1090 | --progr-tra | --program-tr | --program-t)
1091 ac_prev=program_transform_name ;;
1092 -program-transform-name=* | --program-transform-name=* \
1093 | --program-transform-nam=* | --program-transform-na=* \
1094 | --program-transform-n=* | --program-transform-=* \
1095 | --program-transform=* | --program-transfor=* \
1096 | --program-transfo=* | --program-transf=* \
1097 | --program-trans=* | --program-tran=* \
1098 | --progr-tra=* | --program-tr=* | --program-t=*)
1099 program_transform_name=$ac_optarg ;;
1100
1101 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1102 ac_prev=pdfdir ;;
1103 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1104 pdfdir=$ac_optarg ;;
1105
1106 -psdir | --psdir | --psdi | --psd | --ps)
1107 ac_prev=psdir ;;
1108 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1109 psdir=$ac_optarg ;;
1110
1111 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1112 | -silent | --silent | --silen | --sile | --sil)
1113 silent=yes ;;
1114
1115 -runstatedir | --runstatedir | --runstatedi | --runstated \
1116 | --runstate | --runstat | --runsta | --runst | --runs \
1117 | --run | --ru | --r)
1118 ac_prev=runstatedir ;;
1119 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1120 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1121 | --run=* | --ru=* | --r=*)
1122 runstatedir=$ac_optarg ;;
1123
1124 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1125 ac_prev=sbindir ;;
1126 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1127 | --sbi=* | --sb=*)
1128 sbindir=$ac_optarg ;;
1129
1130 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1131 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1132 | --sharedst | --shareds | --shared | --share | --shar \
1133 | --sha | --sh)
1134 ac_prev=sharedstatedir ;;
1135 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1136 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1137 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1138 | --sha=* | --sh=*)
1139 sharedstatedir=$ac_optarg ;;
1140
1141 -site | --site | --sit)
1142 ac_prev=site ;;
1143 -site=* | --site=* | --sit=*)
1144 site=$ac_optarg ;;
1145
1146 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1147 ac_prev=srcdir ;;
1148 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1149 srcdir=$ac_optarg ;;
1150
1151 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1152 | --syscon | --sysco | --sysc | --sys | --sy)
1153 ac_prev=sysconfdir ;;
1154 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1155 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1156 sysconfdir=$ac_optarg ;;
1157
1158 -target | --target | --targe | --targ | --tar | --ta | --t)
1159 ac_prev=target_alias ;;
1160 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1161 target_alias=$ac_optarg ;;
1162
1163 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1164 verbose=yes ;;
1165
1166 -version | --version | --versio | --versi | --vers | -V)
1167 ac_init_version=: ;;
1168
1169 -with-* | --with-*)
1170 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1171 # Reject names that are not valid shell variable names.
1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173 as_fn_error $? "invalid package name: \`$ac_useropt'"
1174 ac_useropt_orig=$ac_useropt
1175 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1176 case $ac_user_opts in
1177 *"
1178 "with_$ac_useropt"
1179 "*) ;;
1180 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1181 ac_unrecognized_sep=', ';;
1182 esac
1183 eval with_$ac_useropt=\$ac_optarg ;;
1184
1185 -without-* | --without-*)
1186 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1187 # Reject names that are not valid shell variable names.
1188 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1189 as_fn_error $? "invalid package name: \`$ac_useropt'"
1190 ac_useropt_orig=$ac_useropt
1191 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1192 case $ac_user_opts in
1193 *"
1194 "with_$ac_useropt"
1195 "*) ;;
1196 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1197 ac_unrecognized_sep=', ';;
1198 esac
1199 eval with_$ac_useropt=no ;;
1200
1201 --x)
1202 # Obsolete; use --with-x.
1203 with_x=yes ;;
1204
1205 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1206 | --x-incl | --x-inc | --x-in | --x-i)
1207 ac_prev=x_includes ;;
1208 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1209 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1210 x_includes=$ac_optarg ;;
1211
1212 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1213 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1214 ac_prev=x_libraries ;;
1215 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1216 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1217 x_libraries=$ac_optarg ;;
1218
1219 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1220 Try \`$0 --help' for more information"
1221 ;;
1222
1223 *=*)
1224 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1225 # Reject names that are not valid shell variable names.
1226 case $ac_envvar in #(
1227 '' | [0-9]* | *[!_$as_cr_alnum]* )
1228 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1229 esac
1230 eval $ac_envvar=\$ac_optarg
1231 export $ac_envvar ;;
1232
1233 *)
1234 # FIXME: should be removed in autoconf 3.0.
1235 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1236 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1237 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1238 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1239 ;;
1240
1241 esac
1242 done
1243
1244 if test -n "$ac_prev"; then
1245 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1246 as_fn_error $? "missing argument to $ac_option"
1247 fi
1248
1249 if test -n "$ac_unrecognized_opts"; then
1250 case $enable_option_checking in
1251 no) ;;
1252 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1253 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1254 esac
1255 fi
1256
1257 # Check all directory arguments for consistency.
1258 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1259 datadir sysconfdir sharedstatedir localstatedir includedir \
1260 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1261 libdir localedir mandir runstatedir
1262 do
1263 eval ac_val=\$$ac_var
1264 # Remove trailing slashes.
1265 case $ac_val in
1266 */ )
1267 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1268 eval $ac_var=\$ac_val;;
1269 esac
1270 # Be sure to have absolute directory names.
1271 case $ac_val in
1272 [\\/$]* | ?:[\\/]* ) continue;;
1273 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1274 esac
1275 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1276 done
1277
1278 # There might be people who depend on the old broken behavior: `$host'
1279 # used to hold the argument of --host etc.
1280 # FIXME: To remove some day.
1281 build=$build_alias
1282 host=$host_alias
1283 target=$target_alias
1284
1285 # FIXME: To remove some day.
1286 if test "x$host_alias" != x; then
1287 if test "x$build_alias" = x; then
1288 cross_compiling=maybe
1289 elif test "x$build_alias" != "x$host_alias"; then
1290 cross_compiling=yes
1291 fi
1292 fi
1293
1294 ac_tool_prefix=
1295 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1296
1297 test "$silent" = yes && exec 6>/dev/null
1298
1299
1300 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1301 ac_ls_di=`ls -di .` &&
1302 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1303 as_fn_error $? "working directory cannot be determined"
1304 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1305 as_fn_error $? "pwd does not report name of working directory"
1306
1307
1308 # Find the source files, if location was not specified.
1309 if test -z "$srcdir"; then
1310 ac_srcdir_defaulted=yes
1311 # Try the directory containing this script, then the parent directory.
1312 ac_confdir=`$as_dirname -- "$as_myself" ||
1313 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1314 X"$as_myself" : 'X\(//\)[^/]' \| \
1315 X"$as_myself" : 'X\(//\)$' \| \
1316 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1317 printf "%s\n" X"$as_myself" |
1318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1319 s//\1/
1320 q
1321 }
1322 /^X\(\/\/\)[^/].*/{
1323 s//\1/
1324 q
1325 }
1326 /^X\(\/\/\)$/{
1327 s//\1/
1328 q
1329 }
1330 /^X\(\/\).*/{
1331 s//\1/
1332 q
1333 }
1334 s/.*/./; q'`
1335 srcdir=$ac_confdir
1336 if test ! -r "$srcdir/$ac_unique_file"; then
1337 srcdir=..
1338 fi
1339 else
1340 ac_srcdir_defaulted=no
1341 fi
1342 if test ! -r "$srcdir/$ac_unique_file"; then
1343 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1344 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1345 fi
1346 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1347 ac_abs_confdir=`(
1348 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1349 pwd)`
1350 # When building in place, set srcdir=.
1351 if test "$ac_abs_confdir" = "$ac_pwd"; then
1352 srcdir=.
1353 fi
1354 # Remove unnecessary trailing slashes from srcdir.
1355 # Double slashes in file names in object file debugging info
1356 # mess up M-x gdb in Emacs.
1357 case $srcdir in
1358 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1359 esac
1360 for ac_var in $ac_precious_vars; do
1361 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1362 eval ac_env_${ac_var}_value=\$${ac_var}
1363 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1364 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1365 done
1366
1367 #
1368 # Report the --help message.
1369 #
1370 if test "$ac_init_help" = "long"; then
1371 # Omit some internal or obsolete options to make the list less imposing.
1372 # This message is too long to be a string in the A/UX 3.1 sh.
1373 cat <<_ACEOF
1374 \`configure' configures exfatprogs 1.4.3 to adapt to many kinds of systems.
1375
1376 Usage: $0 [OPTION]... [VAR=VALUE]...
1377
1378 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1379 VAR=VALUE. See below for descriptions of some of the useful variables.
1380
1381 Defaults for the options are specified in brackets.
1382
1383 Configuration:
1384 -h, --help display this help and exit
1385 --help=short display options specific to this package
1386 --help=recursive display the short help of all the included packages
1387 -V, --version display version information and exit
1388 -q, --quiet, --silent do not print \`checking ...' messages
1389 --cache-file=FILE cache test results in FILE [disabled]
1390 -C, --config-cache alias for \`--cache-file=config.cache'
1391 -n, --no-create do not create output files
1392 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1393
1394 Installation directories:
1395 --prefix=PREFIX install architecture-independent files in PREFIX
1396 [$ac_default_prefix]
1397 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1398 [PREFIX]
1399
1400 By default, \`make install' will install all the files in
1401 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1402 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1403 for instance \`--prefix=\$HOME'.
1404
1405 For better control, use the options below.
1406
1407 Fine tuning of the installation directories:
1408 --bindir=DIR user executables [EPREFIX/bin]
1409 --sbindir=DIR system admin executables [EPREFIX/sbin]
1410 --libexecdir=DIR program executables [EPREFIX/libexec]
1411 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1412 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1413 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1414 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1415 --libdir=DIR object code libraries [EPREFIX/lib]
1416 --includedir=DIR C header files [PREFIX/include]
1417 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1418 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1419 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1420 --infodir=DIR info documentation [DATAROOTDIR/info]
1421 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1422 --mandir=DIR man documentation [DATAROOTDIR/man]
1423 --docdir=DIR documentation root [DATAROOTDIR/doc/exfatprogs]
1424 --htmldir=DIR html documentation [DOCDIR]
1425 --dvidir=DIR dvi documentation [DOCDIR]
1426 --pdfdir=DIR pdf documentation [DOCDIR]
1427 --psdir=DIR ps documentation [DOCDIR]
1428 _ACEOF
1429
1430 cat <<\_ACEOF
1431
1432 Program names:
1433 --program-prefix=PREFIX prepend PREFIX to installed program names
1434 --program-suffix=SUFFIX append SUFFIX to installed program names
1435 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1436
1437 System types:
1438 --build=BUILD configure for building on BUILD [guessed]
1439 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1440 _ACEOF
1441 fi
1442
1443 if test -n "$ac_init_help"; then
1444 case $ac_init_help in
1445 short | recursive ) echo "Configuration of exfatprogs 1.4.3:";;
1446 esac
1447 cat <<\_ACEOF
1448
1449 Optional Features:
1450 --disable-option-checking ignore unrecognized --enable/--with options
1451 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1452 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1453 --enable-silent-rules less verbose build output (undo: "make V=1")
1454 --disable-silent-rules verbose build output (undo: "make V=0")
1455 --enable-dependency-tracking
1456 do not reject slow dependency extractors
1457 --disable-dependency-tracking
1458 speeds up one-time build
1459 --enable-shared[=PKGS] build shared libraries [default=yes]
1460 --enable-static[=PKGS] build static libraries [default=yes]
1461 --enable-fast-install[=PKGS]
1462 optimize for fast installation [default=yes]
1463 --disable-libtool-lock avoid locking (might break parallel builds)
1464 --disable-largefile omit support for large files
1465 --enable-tests build internal test programs
1466 enable_tests=yes
1467
1468
1469 Optional Packages:
1470 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1471 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1472 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1473 both]
1474 --with-aix-soname=aix|svr4|both
1475 shared library versioning (aka "SONAME") variant to
1476 provide on AIX, [default=aix].
1477 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1478 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1479 compiler's sysroot if not specified).
1480
1481 Some influential environment variables:
1482 CC C compiler command
1483 CFLAGS C compiler flags
1484 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1485 nonstandard directory <lib dir>
1486 LIBS libraries to pass to the linker, e.g. -l<library>
1487 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1488 you have headers in a nonstandard directory <include dir>
1489 LT_SYS_LIBRARY_PATH
1490 User-defined run-time library search path.
1491 PKG_CONFIG path to pkg-config utility
1492 PKG_CONFIG_PATH
1493 directories to add to pkg-config's search path
1494 PKG_CONFIG_LIBDIR
1495 path overriding pkg-config's built-in search path
1496 BLKID_CFLAGS
1497 C compiler flags for BLKID, overriding pkg-config
1498 BLKID_LIBS linker flags for BLKID, overriding pkg-config
1499 EXT2_BLKID_CFLAGS
1500 C compiler flags for EXT2_BLKID, overriding pkg-config
1501 EXT2_BLKID_LIBS
1502 linker flags for EXT2_BLKID, overriding pkg-config
1503
1504 Use these variables to override the choices made by `configure' or to help
1505 it to find libraries and programs with nonstandard names/locations.
1506
1507 Report bugs to <[email protected]>.
1508 exfatprogs home page: <https://github.com/exfatprogs/exfatprogs>.
1509 _ACEOF
1510 ac_status=$?
1511 fi
1512
1513 if test "$ac_init_help" = "recursive"; then
1514 # If there are subdirs, report their specific --help.
1515 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1516 test -d "$ac_dir" ||
1517 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1518 continue
1519 ac_builddir=.
1520
1521 case "$ac_dir" in
1522 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1523 *)
1524 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1525 # A ".." for each directory in $ac_dir_suffix.
1526 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1527 case $ac_top_builddir_sub in
1528 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1529 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1530 esac ;;
1531 esac
1532 ac_abs_top_builddir=$ac_pwd
1533 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1534 # for backward compatibility:
1535 ac_top_builddir=$ac_top_build_prefix
1536
1537 case $srcdir in
1538 .) # We are building in place.
1539 ac_srcdir=.
1540 ac_top_srcdir=$ac_top_builddir_sub
1541 ac_abs_top_srcdir=$ac_pwd ;;
1542 [\\/]* | ?:[\\/]* ) # Absolute name.
1543 ac_srcdir=$srcdir$ac_dir_suffix;
1544 ac_top_srcdir=$srcdir
1545 ac_abs_top_srcdir=$srcdir ;;
1546 *) # Relative name.
1547 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1548 ac_top_srcdir=$ac_top_build_prefix$srcdir
1549 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1550 esac
1551 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1552
1553 cd "$ac_dir" || { ac_status=$?; continue; }
1554 # Check for configure.gnu first; this name is used for a wrapper for
1555 # Metaconfig's "Configure" on case-insensitive file systems.
1556 if test -f "$ac_srcdir/configure.gnu"; then
1557 echo &&
1558 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1559 elif test -f "$ac_srcdir/configure"; then
1560 echo &&
1561 $SHELL "$ac_srcdir/configure" --help=recursive
1562 else
1563 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1564 fi || ac_status=$?
1565 cd "$ac_pwd" || { ac_status=$?; break; }
1566 done
1567 fi
1568
1569 test -n "$ac_init_help" && exit $ac_status
1570 if $ac_init_version; then
1571 cat <<\_ACEOF
1572 exfatprogs configure 1.4.3
1573 generated by GNU Autoconf 2.71
1574
1575 Copyright (C) 2021 Free Software Foundation, Inc.
1576 This configure script is free software; the Free Software Foundation
1577 gives unlimited permission to copy, distribute and modify it.
1578 _ACEOF
1579 exit
1580 fi
1581
1582 ## ------------------------ ##
1583 ## Autoconf initialization. ##
1584 ## ------------------------ ##
1585
1586 # ac_fn_c_try_compile LINENO
1587 # --------------------------
1588 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1589 ac_fn_c_try_compile ()
1590 {
1591 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1592 rm -f conftest.$ac_objext conftest.beam
1593 if { { ac_try="$ac_compile"
1594 case "(($ac_try" in
1595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1596 *) ac_try_echo=$ac_try;;
1597 esac
1598 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1599 printf "%s\n" "$ac_try_echo"; } >&5
1600 (eval "$ac_compile") 2>conftest.err
1601 ac_status=$?
1602 if test -s conftest.err; then
1603 grep -v '^ *+' conftest.err >conftest.er1
1604 cat conftest.er1 >&5
1605 mv -f conftest.er1 conftest.err
1606 fi
1607 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1608 test $ac_status = 0; } && {
1609 test -z "$ac_c_werror_flag" ||
1610 test ! -s conftest.err
1611 } && test -s conftest.$ac_objext
1612 then :
1613 ac_retval=0
1614 else $as_nop
1615 printf "%s\n" "$as_me: failed program was:" >&5
1616 sed 's/^/| /' conftest.$ac_ext >&5
1617
1618 ac_retval=1
1619 fi
1620 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1621 as_fn_set_status $ac_retval
1622
1623 } # ac_fn_c_try_compile
1624
1625 # ac_fn_c_try_link LINENO
1626 # -----------------------
1627 # Try to link conftest.$ac_ext, and return whether this succeeded.
1628 ac_fn_c_try_link ()
1629 {
1630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1632 if { { ac_try="$ac_link"
1633 case "(($ac_try" in
1634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1635 *) ac_try_echo=$ac_try;;
1636 esac
1637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1638 printf "%s\n" "$ac_try_echo"; } >&5
1639 (eval "$ac_link") 2>conftest.err
1640 ac_status=$?
1641 if test -s conftest.err; then
1642 grep -v '^ *+' conftest.err >conftest.er1
1643 cat conftest.er1 >&5
1644 mv -f conftest.er1 conftest.err
1645 fi
1646 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1647 test $ac_status = 0; } && {
1648 test -z "$ac_c_werror_flag" ||
1649 test ! -s conftest.err
1650 } && test -s conftest$ac_exeext && {
1651 test "$cross_compiling" = yes ||
1652 test -x conftest$ac_exeext
1653 }
1654 then :
1655 ac_retval=0
1656 else $as_nop
1657 printf "%s\n" "$as_me: failed program was:" >&5
1658 sed 's/^/| /' conftest.$ac_ext >&5
1659
1660 ac_retval=1
1661 fi
1662 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1663 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1664 # interfere with the next link command; also delete a directory that is
1665 # left behind by Apple's compiler. We do this before executing the actions.
1666 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1667 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1668 as_fn_set_status $ac_retval
1669
1670 } # ac_fn_c_try_link
1671
1672 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1673 # -------------------------------------------------------
1674 # Tests whether HEADER exists and can be compiled using the include files in
1675 # INCLUDES, setting the cache variable VAR accordingly.
1676 ac_fn_c_check_header_compile ()
1677 {
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1680 printf %s "checking for $2... " >&6; }
1681 if eval test \${$3+y}
1682 then :
1683 printf %s "(cached) " >&6
1684 else $as_nop
1685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1686 /* end confdefs.h. */
1687 $4
1688 #include <$2>
1689 _ACEOF
1690 if ac_fn_c_try_compile "$LINENO"
1691 then :
1692 eval "$3=yes"
1693 else $as_nop
1694 eval "$3=no"
1695 fi
1696 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1697 fi
1698 eval ac_res=\$$3
1699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1700 printf "%s\n" "$ac_res" >&6; }
1701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1702
1703 } # ac_fn_c_check_header_compile
1704
1705 # ac_fn_c_check_func LINENO FUNC VAR
1706 # ----------------------------------
1707 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1708 ac_fn_c_check_func ()
1709 {
1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1712 printf %s "checking for $2... " >&6; }
1713 if eval test \${$3+y}
1714 then :
1715 printf %s "(cached) " >&6
1716 else $as_nop
1717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1718 /* end confdefs.h. */
1719 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1721 #define $2 innocuous_$2
1722
1723 /* System header to define __stub macros and hopefully few prototypes,
1724 which can conflict with char $2 (); below. */
1725
1726 #include <limits.h>
1727 #undef $2
1728
1729 /* Override any GCC internal prototype to avoid an error.
1730 Use char because int might match the return type of a GCC
1731 builtin and then its argument prototype would still apply. */
1732 #ifdef __cplusplus
1733 extern "C"
1734 #endif
1735 char $2 ();
1736 /* The GNU C library defines this for functions which it implements
1737 to always fail with ENOSYS. Some functions are actually named
1738 something starting with __ and the normal name is an alias. */
1739 #if defined __stub_$2 || defined __stub___$2
1740 choke me
1741 #endif
1742
1743 int
1744 main (void)
1745 {
1746 return $2 ();
1747 ;
1748 return 0;
1749 }
1750 _ACEOF
1751 if ac_fn_c_try_link "$LINENO"
1752 then :
1753 eval "$3=yes"
1754 else $as_nop
1755 eval "$3=no"
1756 fi
1757 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1758 conftest$ac_exeext conftest.$ac_ext
1759 fi
1760 eval ac_res=\$$3
1761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1762 printf "%s\n" "$ac_res" >&6; }
1763 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1764
1765 } # ac_fn_c_check_func
1766
1767 # ac_fn_c_try_run LINENO
1768 # ----------------------
1769 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1770 # executables *can* be run.
1771 ac_fn_c_try_run ()
1772 {
1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774 if { { ac_try="$ac_link"
1775 case "(($ac_try" in
1776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1777 *) ac_try_echo=$ac_try;;
1778 esac
1779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1780 printf "%s\n" "$ac_try_echo"; } >&5
1781 (eval "$ac_link") 2>&5
1782 ac_status=$?
1783 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1785 { { case "(($ac_try" in
1786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1787 *) ac_try_echo=$ac_try;;
1788 esac
1789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1790 printf "%s\n" "$ac_try_echo"; } >&5
1791 (eval "$ac_try") 2>&5
1792 ac_status=$?
1793 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1794 test $ac_status = 0; }; }
1795 then :
1796 ac_retval=0
1797 else $as_nop
1798 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1799 printf "%s\n" "$as_me: failed program was:" >&5
1800 sed 's/^/| /' conftest.$ac_ext >&5
1801
1802 ac_retval=$ac_status
1803 fi
1804 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1805 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1806 as_fn_set_status $ac_retval
1807
1808 } # ac_fn_c_try_run
1809 ac_configure_args_raw=
1810 for ac_arg
1811 do
1812 case $ac_arg in
1813 *\'*)
1814 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1815 esac
1816 as_fn_append ac_configure_args_raw " '$ac_arg'"
1817 done
1818
1819 case $ac_configure_args_raw in
1820 *$as_nl*)
1821 ac_safe_unquote= ;;
1822 *)
1823 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1824 ac_unsafe_a="$ac_unsafe_z#~"
1825 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1826 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1827 esac
1828
1829 cat >config.log <<_ACEOF
1830 This file contains any messages produced by compilers while
1831 running configure, to aid debugging if configure makes a mistake.
1832
1833 It was created by exfatprogs $as_me 1.4.3, which was
1834 generated by GNU Autoconf 2.71. Invocation command line was
1835
1836 $ $0$ac_configure_args_raw
1837
1838 _ACEOF
1839 exec 5>>config.log
1840 {
1841 cat <<_ASUNAME
1842 ## --------- ##
1843 ## Platform. ##
1844 ## --------- ##
1845
1846 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1847 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1848 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1849 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1850 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1851
1852 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1853 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1854
1855 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1856 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1857 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1858 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1859 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1860 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1861 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1862
1863 _ASUNAME
1864
1865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1866 for as_dir in $PATH
1867 do
1868 IFS=$as_save_IFS
1869 case $as_dir in #(((
1870 '') as_dir=./ ;;
1871 */) ;;
1872 *) as_dir=$as_dir/ ;;
1873 esac
1874 printf "%s\n" "PATH: $as_dir"
1875 done
1876 IFS=$as_save_IFS
1877
1878 } >&5
1879
1880 cat >&5 <<_ACEOF
1881
1882
1883 ## ----------- ##
1884 ## Core tests. ##
1885 ## ----------- ##
1886
1887 _ACEOF
1888
1889
1890 # Keep a trace of the command line.
1891 # Strip out --no-create and --no-recursion so they do not pile up.
1892 # Strip out --silent because we don't want to record it for future runs.
1893 # Also quote any args containing shell meta-characters.
1894 # Make two passes to allow for proper duplicate-argument suppression.
1895 ac_configure_args=
1896 ac_configure_args0=
1897 ac_configure_args1=
1898 ac_must_keep_next=false
1899 for ac_pass in 1 2
1900 do
1901 for ac_arg
1902 do
1903 case $ac_arg in
1904 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1905 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1906 | -silent | --silent | --silen | --sile | --sil)
1907 continue ;;
1908 *\'*)
1909 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1910 esac
1911 case $ac_pass in
1912 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1913 2)
1914 as_fn_append ac_configure_args1 " '$ac_arg'"
1915 if test $ac_must_keep_next = true; then
1916 ac_must_keep_next=false # Got value, back to normal.
1917 else
1918 case $ac_arg in
1919 *=* | --config-cache | -C | -disable-* | --disable-* \
1920 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1921 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1922 | -with-* | --with-* | -without-* | --without-* | --x)
1923 case "$ac_configure_args0 " in
1924 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1925 esac
1926 ;;
1927 -* ) ac_must_keep_next=true ;;
1928 esac
1929 fi
1930 as_fn_append ac_configure_args " '$ac_arg'"
1931 ;;
1932 esac
1933 done
1934 done
1935 { ac_configure_args0=; unset ac_configure_args0;}
1936 { ac_configure_args1=; unset ac_configure_args1;}
1937
1938 # When interrupted or exit'd, cleanup temporary files, and complete
1939 # config.log. We remove comments because anyway the quotes in there
1940 # would cause problems or look ugly.
1941 # WARNING: Use '\'' to represent an apostrophe within the trap.
1942 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1943 trap 'exit_status=$?
1944 # Sanitize IFS.
1945 IFS=" "" $as_nl"
1946 # Save into config.log some information that might help in debugging.
1947 {
1948 echo
1949
1950 printf "%s\n" "## ---------------- ##
1951 ## Cache variables. ##
1952 ## ---------------- ##"
1953 echo
1954 # The following way of writing the cache mishandles newlines in values,
1955 (
1956 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1957 eval ac_val=\$$ac_var
1958 case $ac_val in #(
1959 *${as_nl}*)
1960 case $ac_var in #(
1961 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1962 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1963 esac
1964 case $ac_var in #(
1965 _ | IFS | as_nl) ;; #(
1966 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1967 *) { eval $ac_var=; unset $ac_var;} ;;
1968 esac ;;
1969 esac
1970 done
1971 (set) 2>&1 |
1972 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1973 *${as_nl}ac_space=\ *)
1974 sed -n \
1975 "s/'\''/'\''\\\\'\'''\''/g;
1976 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1977 ;; #(
1978 *)
1979 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1980 ;;
1981 esac |
1982 sort
1983 )
1984 echo
1985
1986 printf "%s\n" "## ----------------- ##
1987 ## Output variables. ##
1988 ## ----------------- ##"
1989 echo
1990 for ac_var in $ac_subst_vars
1991 do
1992 eval ac_val=\$$ac_var
1993 case $ac_val in
1994 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1995 esac
1996 printf "%s\n" "$ac_var='\''$ac_val'\''"
1997 done | sort
1998 echo
1999
2000 if test -n "$ac_subst_files"; then
2001 printf "%s\n" "## ------------------- ##
2002 ## File substitutions. ##
2003 ## ------------------- ##"
2004 echo
2005 for ac_var in $ac_subst_files
2006 do
2007 eval ac_val=\$$ac_var
2008 case $ac_val in
2009 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2010 esac
2011 printf "%s\n" "$ac_var='\''$ac_val'\''"
2012 done | sort
2013 echo
2014 fi
2015
2016 if test -s confdefs.h; then
2017 printf "%s\n" "## ----------- ##
2018 ## confdefs.h. ##
2019 ## ----------- ##"
2020 echo
2021 cat confdefs.h
2022 echo
2023 fi
2024 test "$ac_signal" != 0 &&
2025 printf "%s\n" "$as_me: caught signal $ac_signal"
2026 printf "%s\n" "$as_me: exit $exit_status"
2027 } >&5
2028 rm -f core *.core core.conftest.* &&
2029 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2030 exit $exit_status
2031 ' 0
2032 for ac_signal in 1 2 13 15; do
2033 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2034 done
2035 ac_signal=0
2036
2037 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2038 rm -f -r conftest* confdefs.h
2039
2040 printf "%s\n" "/* confdefs.h */" > confdefs.h
2041
2042 # Predefined preprocessor variables.
2043
2044 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2045
2046 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2047
2048 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2049
2050 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2051
2052 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2053
2054 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2055
2056
2057 # Let the site file select an alternate cache file if it wants to.
2058 # Prefer an explicitly selected file to automatically selected ones.
2059 if test -n "$CONFIG_SITE"; then
2060 ac_site_files="$CONFIG_SITE"
2061 elif test "x$prefix" != xNONE; then
2062 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2063 else
2064 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2065 fi
2066
2067 for ac_site_file in $ac_site_files
2068 do
2069 case $ac_site_file in #(
2070 */*) :
2071 ;; #(
2072 *) :
2073 ac_site_file=./$ac_site_file ;;
2074 esac
2075 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2077 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2078 sed 's/^/| /' "$ac_site_file" >&5
2079 . "$ac_site_file" \
2080 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2081 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2082 as_fn_error $? "failed to load site script $ac_site_file
2083 See \`config.log' for more details" "$LINENO" 5; }
2084 fi
2085 done
2086
2087 if test -r "$cache_file"; then
2088 # Some versions of bash will fail to source /dev/null (special files
2089 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2090 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2092 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2093 case $cache_file in
2094 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2095 *) . "./$cache_file";;
2096 esac
2097 fi
2098 else
2099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2100 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2101 >$cache_file
2102 fi
2103
2104 # Test code for whether the C compiler supports C89 (global declarations)
2105 ac_c_conftest_c89_globals='
2106 /* Does the compiler advertise C89 conformance?
2107 Do not test the value of __STDC__, because some compilers set it to 0
2108 while being otherwise adequately conformant. */
2109 #if !defined __STDC__
2110 # error "Compiler does not advertise C89 conformance"
2111 #endif
2112
2113 #include <stddef.h>
2114 #include <stdarg.h>
2115 struct stat;
2116 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2117 struct buf { int x; };
2118 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2119 static char *e (p, i)
2120 char **p;
2121 int i;
2122 {
2123 return p[i];
2124 }
2125 static char *f (char * (*g) (char **, int), char **p, ...)
2126 {
2127 char *s;
2128 va_list v;
2129 va_start (v,p);
2130 s = g (p, va_arg (v,int));
2131 va_end (v);
2132 return s;
2133 }
2134
2135 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2136 function prototypes and stuff, but not \xHH hex character constants.
2137 These do not provoke an error unfortunately, instead are silently treated
2138 as an "x". The following induces an error, until -std is added to get
2139 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2140 array size at least. It is necessary to write \x00 == 0 to get something
2141 that is true only with -std. */
2142 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2143
2144 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2145 inside strings and character constants. */
2146 #define FOO(x) '\''x'\''
2147 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2148
2149 int test (int i, double x);
2150 struct s1 {int (*f) (int a);};
2151 struct s2 {int (*f) (double a);};
2152 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2153 int, int);'
2154
2155 # Test code for whether the C compiler supports C89 (body of main).
2156 ac_c_conftest_c89_main='
2157 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2158 '
2159
2160 # Test code for whether the C compiler supports C99 (global declarations)
2161 ac_c_conftest_c99_globals='
2162 // Does the compiler advertise C99 conformance?
2163 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2164 # error "Compiler does not advertise C99 conformance"
2165 #endif
2166
2167 #include <stdbool.h>
2168 extern int puts (const char *);
2169 extern int printf (const char *, ...);
2170 extern int dprintf (int, const char *, ...);
2171 extern void *malloc (size_t);
2172
2173 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2174 // dprintf is used instead of fprintf to avoid needing to declare
2175 // FILE and stderr.
2176 #define debug(...) dprintf (2, __VA_ARGS__)
2177 #define showlist(...) puts (#__VA_ARGS__)
2178 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2179 static void
2180 test_varargs_macros (void)
2181 {
2182 int x = 1234;
2183 int y = 5678;
2184 debug ("Flag");
2185 debug ("X = %d\n", x);
2186 showlist (The first, second, and third items.);
2187 report (x>y, "x is %d but y is %d", x, y);
2188 }
2189
2190 // Check long long types.
2191 #define BIG64 18446744073709551615ull
2192 #define BIG32 4294967295ul
2193 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2194 #if !BIG_OK
2195 #error "your preprocessor is broken"
2196 #endif
2197 #if BIG_OK
2198 #else
2199 #error "your preprocessor is broken"
2200 #endif
2201 static long long int bignum = -9223372036854775807LL;
2202 static unsigned long long int ubignum = BIG64;
2203
2204 struct incomplete_array
2205 {
2206 int datasize;
2207 double data[];
2208 };
2209
2210 struct named_init {
2211 int number;
2212 const wchar_t *name;
2213 double average;
2214 };
2215
2216 typedef const char *ccp;
2217
2218 static inline int
2219 test_restrict (ccp restrict text)
2220 {
2221 // See if C++-style comments work.
2222 // Iterate through items via the restricted pointer.
2223 // Also check for declarations in for loops.
2224 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2225 continue;
2226 return 0;
2227 }
2228
2229 // Check varargs and va_copy.
2230 static bool
2231 test_varargs (const char *format, ...)
2232 {
2233 va_list args;
2234 va_start (args, format);
2235 va_list args_copy;
2236 va_copy (args_copy, args);
2237
2238 const char *str = "";
2239 int number = 0;
2240 float fnumber = 0;
2241
2242 while (*format)
2243 {
2244 switch (*format++)
2245 {
2246 case '\''s'\'': // string
2247 str = va_arg (args_copy, const char *);
2248 break;
2249 case '\''d'\'': // int
2250 number = va_arg (args_copy, int);
2251 break;
2252 case '\''f'\'': // float
2253 fnumber = va_arg (args_copy, double);
2254 break;
2255 default:
2256 break;
2257 }
2258 }
2259 va_end (args_copy);
2260 va_end (args);
2261
2262 return *str && number && fnumber;
2263 }
2264 '
2265
2266 # Test code for whether the C compiler supports C99 (body of main).
2267 ac_c_conftest_c99_main='
2268 // Check bool.
2269 _Bool success = false;
2270 success |= (argc != 0);
2271
2272 // Check restrict.
2273 if (test_restrict ("String literal") == 0)
2274 success = true;
2275 char *restrict newvar = "Another string";
2276
2277 // Check varargs.
2278 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2279 test_varargs_macros ();
2280
2281 // Check flexible array members.
2282 struct incomplete_array *ia =
2283 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2284 ia->datasize = 10;
2285 for (int i = 0; i < ia->datasize; ++i)
2286 ia->data[i] = i * 1.234;
2287
2288 // Check named initializers.
2289 struct named_init ni = {
2290 .number = 34,
2291 .name = L"Test wide string",
2292 .average = 543.34343,
2293 };
2294
2295 ni.number = 58;
2296
2297 int dynamic_array[ni.number];
2298 dynamic_array[0] = argv[0][0];
2299 dynamic_array[ni.number - 1] = 543;
2300
2301 // work around unused variable warnings
2302 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2303 || dynamic_array[ni.number - 1] != 543);
2304 '
2305
2306 # Test code for whether the C compiler supports C11 (global declarations)
2307 ac_c_conftest_c11_globals='
2308 // Does the compiler advertise C11 conformance?
2309 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2310 # error "Compiler does not advertise C11 conformance"
2311 #endif
2312
2313 // Check _Alignas.
2314 char _Alignas (double) aligned_as_double;
2315 char _Alignas (0) no_special_alignment;
2316 extern char aligned_as_int;
2317 char _Alignas (0) _Alignas (int) aligned_as_int;
2318
2319 // Check _Alignof.
2320 enum
2321 {
2322 int_alignment = _Alignof (int),
2323 int_array_alignment = _Alignof (int[100]),
2324 char_alignment = _Alignof (char)
2325 };
2326 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2327
2328 // Check _Noreturn.
2329 int _Noreturn does_not_return (void) { for (;;) continue; }
2330
2331 // Check _Static_assert.
2332 struct test_static_assert
2333 {
2334 int x;
2335 _Static_assert (sizeof (int) <= sizeof (long int),
2336 "_Static_assert does not work in struct");
2337 long int y;
2338 };
2339
2340 // Check UTF-8 literals.
2341 #define u8 syntax error!
2342 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2343
2344 // Check duplicate typedefs.
2345 typedef long *long_ptr;
2346 typedef long int *long_ptr;
2347 typedef long_ptr long_ptr;
2348
2349 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2350 struct anonymous
2351 {
2352 union {
2353 struct { int i; int j; };
2354 struct { int k; long int l; } w;
2355 };
2356 int m;
2357 } v1;
2358 '
2359
2360 # Test code for whether the C compiler supports C11 (body of main).
2361 ac_c_conftest_c11_main='
2362 _Static_assert ((offsetof (struct anonymous, i)
2363 == offsetof (struct anonymous, w.k)),
2364 "Anonymous union alignment botch");
2365 v1.i = 2;
2366 v1.w.k = 5;
2367 ok |= v1.i != 5;
2368 '
2369
2370 # Test code for whether the C compiler supports C11 (complete).
2371 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2372 ${ac_c_conftest_c99_globals}
2373 ${ac_c_conftest_c11_globals}
2374
2375 int
2376 main (int argc, char **argv)
2377 {
2378 int ok = 0;
2379 ${ac_c_conftest_c89_main}
2380 ${ac_c_conftest_c99_main}
2381 ${ac_c_conftest_c11_main}
2382 return ok;
2383 }
2384 "
2385
2386 # Test code for whether the C compiler supports C99 (complete).
2387 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2388 ${ac_c_conftest_c99_globals}
2389
2390 int
2391 main (int argc, char **argv)
2392 {
2393 int ok = 0;
2394 ${ac_c_conftest_c89_main}
2395 ${ac_c_conftest_c99_main}
2396 return ok;
2397 }
2398 "
2399
2400 # Test code for whether the C compiler supports C89 (complete).
2401 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2402
2403 int
2404 main (int argc, char **argv)
2405 {
2406 int ok = 0;
2407 ${ac_c_conftest_c89_main}
2408 return ok;
2409 }
2410 "
2411
2412 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2413 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2414 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2415 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2416 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2417 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2418 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2419 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2420 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2421
2422 # Auxiliary files required by this configure script.
2423 ac_aux_files="config.guess config.sub ltmain.sh compile missing install-sh"
2424
2425 # Locations in which to look for auxiliary files.
2426 ac_aux_dir_candidates="${srcdir}/build-aux"
2427
2428 # Search for a directory containing all of the required auxiliary files,
2429 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2430 # If we don't find one directory that contains all the files we need,
2431 # we report the set of missing files from the *first* directory in
2432 # $ac_aux_dir_candidates and give up.
2433 ac_missing_aux_files=""
2434 ac_first_candidate=:
2435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2437 as_found=false
2438 for as_dir in $ac_aux_dir_candidates
2439 do
2440 IFS=$as_save_IFS
2441 case $as_dir in #(((
2442 '') as_dir=./ ;;
2443 */) ;;
2444 *) as_dir=$as_dir/ ;;
2445 esac
2446 as_found=:
2447
2448 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2449 ac_aux_dir_found=yes
2450 ac_install_sh=
2451 for ac_aux in $ac_aux_files
2452 do
2453 # As a special case, if "install-sh" is required, that requirement
2454 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2455 # and $ac_install_sh is set appropriately for whichever one is found.
2456 if test x"$ac_aux" = x"install-sh"
2457 then
2458 if test -f "${as_dir}install-sh"; then
2459 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2460 ac_install_sh="${as_dir}install-sh -c"
2461 elif test -f "${as_dir}install.sh"; then
2462 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2463 ac_install_sh="${as_dir}install.sh -c"
2464 elif test -f "${as_dir}shtool"; then
2465 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2466 ac_install_sh="${as_dir}shtool install -c"
2467 else
2468 ac_aux_dir_found=no
2469 if $ac_first_candidate; then
2470 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2471 else
2472 break
2473 fi
2474 fi
2475 else
2476 if test -f "${as_dir}${ac_aux}"; then
2477 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2478 else
2479 ac_aux_dir_found=no
2480 if $ac_first_candidate; then
2481 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2482 else
2483 break
2484 fi
2485 fi
2486 fi
2487 done
2488 if test "$ac_aux_dir_found" = yes; then
2489 ac_aux_dir="$as_dir"
2490 break
2491 fi
2492 ac_first_candidate=false
2493
2494 as_found=false
2495 done
2496 IFS=$as_save_IFS
2497 if $as_found
2498 then :
2499
2500 else $as_nop
2501 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2502 fi
2503
2504
2505 # These three variables are undocumented and unsupported,
2506 # and are intended to be withdrawn in a future Autoconf release.
2507 # They can cause serious problems if a builder's source tree is in a directory
2508 # whose full name contains unusual characters.
2509 if test -f "${ac_aux_dir}config.guess"; then
2510 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2511 fi
2512 if test -f "${ac_aux_dir}config.sub"; then
2513 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2514 fi
2515 if test -f "$ac_aux_dir/configure"; then
2516 ac_configure="$SHELL ${ac_aux_dir}configure"
2517 fi
2518
2519 # Check that the precious variables saved in the cache have kept the same
2520 # value.
2521 ac_cache_corrupted=false
2522 for ac_var in $ac_precious_vars; do
2523 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2524 eval ac_new_set=\$ac_env_${ac_var}_set
2525 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2526 eval ac_new_val=\$ac_env_${ac_var}_value
2527 case $ac_old_set,$ac_new_set in
2528 set,)
2529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2530 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2531 ac_cache_corrupted=: ;;
2532 ,set)
2533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2534 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2535 ac_cache_corrupted=: ;;
2536 ,);;
2537 *)
2538 if test "x$ac_old_val" != "x$ac_new_val"; then
2539 # differences in whitespace do not lead to failure.
2540 ac_old_val_w=`echo x $ac_old_val`
2541 ac_new_val_w=`echo x $ac_new_val`
2542 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2544 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2545 ac_cache_corrupted=:
2546 else
2547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2548 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2549 eval $ac_var=\$ac_old_val
2550 fi
2551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2552 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2554 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2555 fi;;
2556 esac
2557 # Pass precious variables to config.status.
2558 if test "$ac_new_set" = set; then
2559 case $ac_new_val in
2560 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2561 *) ac_arg=$ac_var=$ac_new_val ;;
2562 esac
2563 case " $ac_configure_args " in
2564 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2565 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2566 esac
2567 fi
2568 done
2569 if $ac_cache_corrupted; then
2570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2571 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2573 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2574 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2575 and start over" "$LINENO" 5
2576 fi
2577 ## -------------------- ##
2578 ## Main body of script. ##
2579 ## -------------------- ##
2580
2581 ac_ext=c
2582 ac_cpp='$CPP $CPPFLAGS'
2583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2586
2587
2588
2589
2590 ac_config_headers="$ac_config_headers config.h"
2591
2592
2593
2594 am__api_version='1.16'
2595
2596
2597
2598 # Find a good install program. We prefer a C program (faster),
2599 # so one script is as good as another. But avoid the broken or
2600 # incompatible versions:
2601 # SysV /etc/install, /usr/sbin/install
2602 # SunOS /usr/etc/install
2603 # IRIX /sbin/install
2604 # AIX /bin/install
2605 # AmigaOS /C/install, which installs bootblocks on floppy discs
2606 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2607 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2608 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2609 # OS/2's system install, which has a completely different semantic
2610 # ./install, which can be erroneously created by make from ./install.sh.
2611 # Reject install programs that cannot install multiple files.
2612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2613 printf %s "checking for a BSD-compatible install... " >&6; }
2614 if test -z "$INSTALL"; then
2615 if test ${ac_cv_path_install+y}
2616 then :
2617 printf %s "(cached) " >&6
2618 else $as_nop
2619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2620 for as_dir in $PATH
2621 do
2622 IFS=$as_save_IFS
2623 case $as_dir in #(((
2624 '') as_dir=./ ;;
2625 */) ;;
2626 *) as_dir=$as_dir/ ;;
2627 esac
2628 # Account for fact that we put trailing slashes in our PATH walk.
2629 case $as_dir in #((
2630 ./ | /[cC]/* | \
2631 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2632 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2633 /usr/ucb/* ) ;;
2634 *)
2635 # OSF1 and SCO ODT 3.0 have their own names for install.
2636 # Don't use installbsd from OSF since it installs stuff as root
2637 # by default.
2638 for ac_prog in ginstall scoinst install; do
2639 for ac_exec_ext in '' $ac_executable_extensions; do
2640 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2641 if test $ac_prog = install &&
2642 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2643 # AIX install. It has an incompatible calling convention.
2644 :
2645 elif test $ac_prog = install &&
2646 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2647 # program-specific install script used by HP pwplus--don't use.
2648 :
2649 else
2650 rm -rf conftest.one conftest.two conftest.dir
2651 echo one > conftest.one
2652 echo two > conftest.two
2653 mkdir conftest.dir
2654 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2655 test -s conftest.one && test -s conftest.two &&
2656 test -s conftest.dir/conftest.one &&
2657 test -s conftest.dir/conftest.two
2658 then
2659 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2660 break 3
2661 fi
2662 fi
2663 fi
2664 done
2665 done
2666 ;;
2667 esac
2668
2669 done
2670 IFS=$as_save_IFS
2671
2672 rm -rf conftest.one conftest.two conftest.dir
2673
2674 fi
2675 if test ${ac_cv_path_install+y}; then
2676 INSTALL=$ac_cv_path_install
2677 else
2678 # As a last resort, use the slow shell script. Don't cache a
2679 # value for INSTALL within a source directory, because that will
2680 # break other packages using the cache if that directory is
2681 # removed, or if the value is a relative name.
2682 INSTALL=$ac_install_sh
2683 fi
2684 fi
2685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2686 printf "%s\n" "$INSTALL" >&6; }
2687
2688 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2689 # It thinks the first close brace ends the variable substitution.
2690 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2691
2692 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2693
2694 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2695
2696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2697 printf %s "checking whether build environment is sane... " >&6; }
2698 # Reject unsafe characters in $srcdir or the absolute working directory
2699 # name. Accept space and tab only in the latter.
2700 am_lf='
2701 '
2702 case `pwd` in
2703 *[\\\"\#\$\&\'\`$am_lf]*)
2704 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2705 esac
2706 case $srcdir in
2707 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2708 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2709 esac
2710
2711 # Do 'set' in a subshell so we don't clobber the current shell's
2712 # arguments. Must try -L first in case configure is actually a
2713 # symlink; some systems play weird games with the mod time of symlinks
2714 # (eg FreeBSD returns the mod time of the symlink's containing
2715 # directory).
2716 if (
2717 am_has_slept=no
2718 for am_try in 1 2; do
2719 echo "timestamp, slept: $am_has_slept" > conftest.file
2720 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2721 if test "$*" = "X"; then
2722 # -L didn't work.
2723 set X `ls -t "$srcdir/configure" conftest.file`
2724 fi
2725 if test "$*" != "X $srcdir/configure conftest.file" \
2726 && test "$*" != "X conftest.file $srcdir/configure"; then
2727
2728 # If neither matched, then we have a broken ls. This can happen
2729 # if, for instance, CONFIG_SHELL is bash and it inherits a
2730 # broken ls alias from the environment. This has actually
2731 # happened. Such a system could not be considered "sane".
2732 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2733 alias in your environment" "$LINENO" 5
2734 fi
2735 if test "$2" = conftest.file || test $am_try -eq 2; then
2736 break
2737 fi
2738 # Just in case.
2739 sleep 1
2740 am_has_slept=yes
2741 done
2742 test "$2" = conftest.file
2743 )
2744 then
2745 # Ok.
2746 :
2747 else
2748 as_fn_error $? "newly created file is older than distributed files!
2749 Check your system clock" "$LINENO" 5
2750 fi
2751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2752 printf "%s\n" "yes" >&6; }
2753 # If we didn't sleep, we still need to ensure time stamps of config.status and
2754 # generated files are strictly newer.
2755 am_sleep_pid=
2756 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2757 ( sleep 1 ) &
2758 am_sleep_pid=$!
2759 fi
2760
2761 rm -f conftest.file
2762
2763 test "$program_prefix" != NONE &&
2764 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2765 # Use a double $ so make ignores it.
2766 test "$program_suffix" != NONE &&
2767 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2768 # Double any \ or $.
2769 # By default was `s,x,x', remove it if useless.
2770 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2771 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2772
2773
2774 # Expand $ac_aux_dir to an absolute path.
2775 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2776
2777
2778 if test x"${MISSING+set}" != xset; then
2779 MISSING="\${SHELL} '$am_aux_dir/missing'"
2780 fi
2781 # Use eval to expand $SHELL
2782 if eval "$MISSING --is-lightweight"; then
2783 am_missing_run="$MISSING "
2784 else
2785 am_missing_run=
2786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2787 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2788 fi
2789
2790 if test x"${install_sh+set}" != xset; then
2791 case $am_aux_dir in
2792 *\ * | *\ *)
2793 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2794 *)
2795 install_sh="\${SHELL} $am_aux_dir/install-sh"
2796 esac
2797 fi
2798
2799 # Installed binaries are usually stripped using 'strip' when the user
2800 # run "make install-strip". However 'strip' might not be the right
2801 # tool to use in cross-compilation environments, therefore Automake
2802 # will honor the 'STRIP' environment variable to overrule this program.
2803 if test "$cross_compiling" != no; then
2804 if test -n "$ac_tool_prefix"; then
2805 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2806 set dummy ${ac_tool_prefix}strip; ac_word=$2
2807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2808 printf %s "checking for $ac_word... " >&6; }
2809 if test ${ac_cv_prog_STRIP+y}
2810 then :
2811 printf %s "(cached) " >&6
2812 else $as_nop
2813 if test -n "$STRIP"; then
2814 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2815 else
2816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817 for as_dir in $PATH
2818 do
2819 IFS=$as_save_IFS
2820 case $as_dir in #(((
2821 '') as_dir=./ ;;
2822 */) ;;
2823 *) as_dir=$as_dir/ ;;
2824 esac
2825 for ac_exec_ext in '' $ac_executable_extensions; do
2826 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2827 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2828 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2829 break 2
2830 fi
2831 done
2832 done
2833 IFS=$as_save_IFS
2834
2835 fi
2836 fi
2837 STRIP=$ac_cv_prog_STRIP
2838 if test -n "$STRIP"; then
2839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2840 printf "%s\n" "$STRIP" >&6; }
2841 else
2842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2843 printf "%s\n" "no" >&6; }
2844 fi
2845
2846
2847 fi
2848 if test -z "$ac_cv_prog_STRIP"; then
2849 ac_ct_STRIP=$STRIP
2850 # Extract the first word of "strip", so it can be a program name with args.
2851 set dummy strip; ac_word=$2
2852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2853 printf %s "checking for $ac_word... " >&6; }
2854 if test ${ac_cv_prog_ac_ct_STRIP+y}
2855 then :
2856 printf %s "(cached) " >&6
2857 else $as_nop
2858 if test -n "$ac_ct_STRIP"; then
2859 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2860 else
2861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2862 for as_dir in $PATH
2863 do
2864 IFS=$as_save_IFS
2865 case $as_dir in #(((
2866 '') as_dir=./ ;;
2867 */) ;;
2868 *) as_dir=$as_dir/ ;;
2869 esac
2870 for ac_exec_ext in '' $ac_executable_extensions; do
2871 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2872 ac_cv_prog_ac_ct_STRIP="strip"
2873 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2874 break 2
2875 fi
2876 done
2877 done
2878 IFS=$as_save_IFS
2879
2880 fi
2881 fi
2882 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2883 if test -n "$ac_ct_STRIP"; then
2884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2885 printf "%s\n" "$ac_ct_STRIP" >&6; }
2886 else
2887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2888 printf "%s\n" "no" >&6; }
2889 fi
2890
2891 if test "x$ac_ct_STRIP" = x; then
2892 STRIP=":"
2893 else
2894 case $cross_compiling:$ac_tool_warned in
2895 yes:)
2896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2897 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2898 ac_tool_warned=yes ;;
2899 esac
2900 STRIP=$ac_ct_STRIP
2901 fi
2902 else
2903 STRIP="$ac_cv_prog_STRIP"
2904 fi
2905
2906 fi
2907 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2908
2909
2910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2911 printf %s "checking for a race-free mkdir -p... " >&6; }
2912 if test -z "$MKDIR_P"; then
2913 if test ${ac_cv_path_mkdir+y}
2914 then :
2915 printf %s "(cached) " >&6
2916 else $as_nop
2917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2918 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2919 do
2920 IFS=$as_save_IFS
2921 case $as_dir in #(((
2922 '') as_dir=./ ;;
2923 */) ;;
2924 *) as_dir=$as_dir/ ;;
2925 esac
2926 for ac_prog in mkdir gmkdir; do
2927 for ac_exec_ext in '' $ac_executable_extensions; do
2928 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2929 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2930 'mkdir ('*'coreutils) '* | \
2931 'BusyBox '* | \
2932 'mkdir (fileutils) '4.1*)
2933 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2934 break 3;;
2935 esac
2936 done
2937 done
2938 done
2939 IFS=$as_save_IFS
2940
2941 fi
2942
2943 test -d ./--version && rmdir ./--version
2944 if test ${ac_cv_path_mkdir+y}; then
2945 MKDIR_P="$ac_cv_path_mkdir -p"
2946 else
2947 # As a last resort, use the slow shell script. Don't cache a
2948 # value for MKDIR_P within a source directory, because that will
2949 # break other packages using the cache if that directory is
2950 # removed, or if the value is a relative name.
2951 MKDIR_P="$ac_install_sh -d"
2952 fi
2953 fi
2954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2955 printf "%s\n" "$MKDIR_P" >&6; }
2956
2957 for ac_prog in gawk mawk nawk awk
2958 do
2959 # Extract the first word of "$ac_prog", so it can be a program name with args.
2960 set dummy $ac_prog; ac_word=$2
2961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2962 printf %s "checking for $ac_word... " >&6; }
2963 if test ${ac_cv_prog_AWK+y}
2964 then :
2965 printf %s "(cached) " >&6
2966 else $as_nop
2967 if test -n "$AWK"; then
2968 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2969 else
2970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2971 for as_dir in $PATH
2972 do
2973 IFS=$as_save_IFS
2974 case $as_dir in #(((
2975 '') as_dir=./ ;;
2976 */) ;;
2977 *) as_dir=$as_dir/ ;;
2978 esac
2979 for ac_exec_ext in '' $ac_executable_extensions; do
2980 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2981 ac_cv_prog_AWK="$ac_prog"
2982 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2983 break 2
2984 fi
2985 done
2986 done
2987 IFS=$as_save_IFS
2988
2989 fi
2990 fi
2991 AWK=$ac_cv_prog_AWK
2992 if test -n "$AWK"; then
2993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2994 printf "%s\n" "$AWK" >&6; }
2995 else
2996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2997 printf "%s\n" "no" >&6; }
2998 fi
2999
3000
3001 test -n "$AWK" && break
3002 done
3003
3004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3005 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3006 set x ${MAKE-make}
3007 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3008 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3009 then :
3010 printf %s "(cached) " >&6
3011 else $as_nop
3012 cat >conftest.make <<\_ACEOF
3013 SHELL = /bin/sh
3014 all:
3015 @echo '@@@%%%=$(MAKE)=@@@%%%'
3016 _ACEOF
3017 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3018 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3019 *@@@%%%=?*=@@@%%%*)
3020 eval ac_cv_prog_make_${ac_make}_set=yes;;
3021 *)
3022 eval ac_cv_prog_make_${ac_make}_set=no;;
3023 esac
3024 rm -f conftest.make
3025 fi
3026 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3028 printf "%s\n" "yes" >&6; }
3029 SET_MAKE=
3030 else
3031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3032 printf "%s\n" "no" >&6; }
3033 SET_MAKE="MAKE=${MAKE-make}"
3034 fi
3035
3036 rm -rf .tst 2>/dev/null
3037 mkdir .tst 2>/dev/null
3038 if test -d .tst; then
3039 am__leading_dot=.
3040 else
3041 am__leading_dot=_
3042 fi
3043 rmdir .tst 2>/dev/null
3044
3045 # Check whether --enable-silent-rules was given.
3046 if test ${enable_silent_rules+y}
3047 then :
3048 enableval=$enable_silent_rules;
3049 fi
3050
3051 case $enable_silent_rules in # (((
3052 yes) AM_DEFAULT_VERBOSITY=0;;
3053 no) AM_DEFAULT_VERBOSITY=1;;
3054 *) AM_DEFAULT_VERBOSITY=1;;
3055 esac
3056 am_make=${MAKE-make}
3057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3058 printf %s "checking whether $am_make supports nested variables... " >&6; }
3059 if test ${am_cv_make_support_nested_variables+y}
3060 then :
3061 printf %s "(cached) " >&6
3062 else $as_nop
3063 if printf "%s\n" 'TRUE=$(BAR$(V))
3064 BAR0=false
3065 BAR1=true
3066 V=1
3067 am__doit:
3068 @$(TRUE)
3069 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3070 am_cv_make_support_nested_variables=yes
3071 else
3072 am_cv_make_support_nested_variables=no
3073 fi
3074 fi
3075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3076 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3077 if test $am_cv_make_support_nested_variables = yes; then
3078 AM_V='$(V)'
3079 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3080 else
3081 AM_V=$AM_DEFAULT_VERBOSITY
3082 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3083 fi
3084 AM_BACKSLASH='\'
3085
3086 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3087 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3088 # is not polluted with repeated "-I."
3089 am__isrc=' -I$(srcdir)'
3090 # test to see if srcdir already configured
3091 if test -f $srcdir/config.status; then
3092 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3093 fi
3094 fi
3095
3096 # test whether we have cygpath
3097 if test -z "$CYGPATH_W"; then
3098 if (cygpath --version) >/dev/null 2>/dev/null; then
3099 CYGPATH_W='cygpath -w'
3100 else
3101 CYGPATH_W=echo
3102 fi
3103 fi
3104
3105
3106 # Define the identity of the package.
3107 PACKAGE='exfatprogs'
3108 VERSION='1.4.3'
3109
3110
3111 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3112
3113
3114 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3115
3116 # Some tools Automake needs.
3117
3118 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3119
3120
3121 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3122
3123
3124 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3125
3126
3127 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3128
3129
3130 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3131
3132 # For better backward compatibility. To be removed once Automake 1.9.x
3133 # dies out for good. For more background, see:
3134 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3135 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3136 mkdir_p='$(MKDIR_P)'
3137
3138 # We need awk for the "check" target (and possibly the TAP driver). The
3139 # system "awk" is bad on some platforms.
3140 # Always define AMTAR for backward compatibility. Yes, it's still used
3141 # in the wild :-( We should find a proper way to deprecate it ...
3142 AMTAR='$${TAR-tar}'
3143
3144
3145 # We'll loop over all known methods to create a tar archive until one works.
3146 _am_tools='gnutar pax cpio none'
3147
3148
3149
3150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
3151 printf %s "checking how to create a pax tar archive... " >&6; }
3152
3153 # Go ahead even if we have the value already cached. We do so because we
3154 # need to set the values for the 'am__tar' and 'am__untar' variables.
3155 _am_tools=${am_cv_prog_tar_pax-$_am_tools}
3156
3157 for _am_tool in $_am_tools; do
3158 case $_am_tool in
3159 gnutar)
3160 for _am_tar in tar gnutar gtar; do
3161 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3162 ($_am_tar --version) >&5 2>&5
3163 ac_status=$?
3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); } && break
3166 done
3167 am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
3168 am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
3169 am__untar="$_am_tar -xf -"
3170 ;;
3171 plaintar)
3172 # Must skip GNU tar: if it does not support --format= it doesn't create
3173 # ustar tarball either.
3174 (tar --version) >/dev/null 2>&1 && continue
3175 am__tar='tar chf - "$$tardir"'
3176 am__tar_='tar chf - "$tardir"'
3177 am__untar='tar xf -'
3178 ;;
3179 pax)
3180 am__tar='pax -L -x pax -w "$$tardir"'
3181 am__tar_='pax -L -x pax -w "$tardir"'
3182 am__untar='pax -r'
3183 ;;
3184 cpio)
3185 am__tar='find "$$tardir" -print | cpio -o -H pax -L'
3186 am__tar_='find "$tardir" -print | cpio -o -H pax -L'
3187 am__untar='cpio -i -H pax -d'
3188 ;;
3189 none)
3190 am__tar=false
3191 am__tar_=false
3192 am__untar=false
3193 ;;
3194 esac
3195
3196 # If the value was cached, stop now. We just wanted to have am__tar
3197 # and am__untar set.
3198 test -n "${am_cv_prog_tar_pax}" && break
3199
3200 # tar/untar a dummy directory, and stop if the command works.
3201 rm -rf conftest.dir
3202 mkdir conftest.dir
3203 echo GrepMe > conftest.dir/file
3204 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3205 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3206 ac_status=$?
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); }
3209 rm -rf conftest.dir
3210 if test -s conftest.tar; then
3211 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3212 ($am__untar <conftest.tar) >&5 2>&5
3213 ac_status=$?
3214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215 (exit $ac_status); }
3216 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3217 (cat conftest.dir/file) >&5 2>&5
3218 ac_status=$?
3219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220 (exit $ac_status); }
3221 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3222 fi
3223 done
3224 rm -rf conftest.dir
3225
3226 if test ${am_cv_prog_tar_pax+y}
3227 then :
3228 printf %s "(cached) " >&6
3229 else $as_nop
3230 am_cv_prog_tar_pax=$_am_tool
3231 fi
3232
3233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
3234 printf "%s\n" "$am_cv_prog_tar_pax" >&6; }
3235
3236
3237
3238
3239
3240 # Variables for tags utilities; see am/tags.am
3241 if test -z "$CTAGS"; then
3242 CTAGS=ctags
3243 fi
3244
3245 if test -z "$ETAGS"; then
3246 ETAGS=etags
3247 fi
3248
3249 if test -z "$CSCOPE"; then
3250 CSCOPE=cscope
3251 fi
3252
3253
3254
3255 # POSIX will say in a future version that running "rm -f" with no argument
3256 # is OK; and we want to be able to make that assumption in our Makefile
3257 # recipes. So use an aggressive probe to check that the usage we want is
3258 # actually supported "in the wild" to an acceptable degree.
3259 # See automake bug#10828.
3260 # To make any issue more visible, cause the running configure to be aborted
3261 # by default if the 'rm' program in use doesn't match our expectations; the
3262 # user can still override this though.
3263 if rm -f && rm -fr && rm -rf; then : OK; else
3264 cat >&2 <<'END'
3265 Oops!
3266
3267 Your 'rm' program seems unable to run without file operands specified
3268 on the command line, even when the '-f' option is present. This is contrary
3269 to the behaviour of most rm programs out there, and not conforming with
3270 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3271
3272 Please tell [email protected] about your system, including the value
3273 of your $PATH and any error possibly output before this message. This
3274 can help us improve future automake versions.
3275
3276 END
3277 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3278 echo 'Configuration will proceed anyway, since you have set the' >&2
3279 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3280 echo >&2
3281 else
3282 cat >&2 <<'END'
3283 Aborting the configuration process, to ensure you take notice of the issue.
3284
3285 You can download and install GNU coreutils to get an 'rm' implementation
3286 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3287
3288 If you want to complete the configuration process using your problematic
3289 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3290 to "yes", and re-run configure.
3291
3292 END
3293 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3294 fi
3295 fi
3296
3297
3298 ac_ext=c
3299 ac_cpp='$CPP $CPPFLAGS'
3300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313 ac_ext=c
3314 ac_cpp='$CPP $CPPFLAGS'
3315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3318 if test -n "$ac_tool_prefix"; then
3319 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3320 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3322 printf %s "checking for $ac_word... " >&6; }
3323 if test ${ac_cv_prog_CC+y}
3324 then :
3325 printf %s "(cached) " >&6
3326 else $as_nop
3327 if test -n "$CC"; then
3328 ac_cv_prog_CC="$CC" # Let the user override the test.
3329 else
3330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3331 for as_dir in $PATH
3332 do
3333 IFS=$as_save_IFS
3334 case $as_dir in #(((
3335 '') as_dir=./ ;;
3336 */) ;;
3337 *) as_dir=$as_dir/ ;;
3338 esac
3339 for ac_exec_ext in '' $ac_executable_extensions; do
3340 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3341 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3342 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3343 break 2
3344 fi
3345 done
3346 done
3347 IFS=$as_save_IFS
3348
3349 fi
3350 fi
3351 CC=$ac_cv_prog_CC
3352 if test -n "$CC"; then
3353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3354 printf "%s\n" "$CC" >&6; }
3355 else
3356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3357 printf "%s\n" "no" >&6; }
3358 fi
3359
3360
3361 fi
3362 if test -z "$ac_cv_prog_CC"; then
3363 ac_ct_CC=$CC
3364 # Extract the first word of "gcc", so it can be a program name with args.
3365 set dummy gcc; ac_word=$2
3366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3367 printf %s "checking for $ac_word... " >&6; }
3368 if test ${ac_cv_prog_ac_ct_CC+y}
3369 then :
3370 printf %s "(cached) " >&6
3371 else $as_nop
3372 if test -n "$ac_ct_CC"; then
3373 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3374 else
3375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3376 for as_dir in $PATH
3377 do
3378 IFS=$as_save_IFS
3379 case $as_dir in #(((
3380 '') as_dir=./ ;;
3381 */) ;;
3382 *) as_dir=$as_dir/ ;;
3383 esac
3384 for ac_exec_ext in '' $ac_executable_extensions; do
3385 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3386 ac_cv_prog_ac_ct_CC="gcc"
3387 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3388 break 2
3389 fi
3390 done
3391 done
3392 IFS=$as_save_IFS
3393
3394 fi
3395 fi
3396 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3397 if test -n "$ac_ct_CC"; then
3398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3399 printf "%s\n" "$ac_ct_CC" >&6; }
3400 else
3401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3402 printf "%s\n" "no" >&6; }
3403 fi
3404
3405 if test "x$ac_ct_CC" = x; then
3406 CC=""
3407 else
3408 case $cross_compiling:$ac_tool_warned in
3409 yes:)
3410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3411 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3412 ac_tool_warned=yes ;;
3413 esac
3414 CC=$ac_ct_CC
3415 fi
3416 else
3417 CC="$ac_cv_prog_CC"
3418 fi
3419
3420 if test -z "$CC"; then
3421 if test -n "$ac_tool_prefix"; then
3422 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3423 set dummy ${ac_tool_prefix}cc; ac_word=$2
3424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3425 printf %s "checking for $ac_word... " >&6; }
3426 if test ${ac_cv_prog_CC+y}
3427 then :
3428 printf %s "(cached) " >&6
3429 else $as_nop
3430 if test -n "$CC"; then
3431 ac_cv_prog_CC="$CC" # Let the user override the test.
3432 else
3433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3434 for as_dir in $PATH
3435 do
3436 IFS=$as_save_IFS
3437 case $as_dir in #(((
3438 '') as_dir=./ ;;
3439 */) ;;
3440 *) as_dir=$as_dir/ ;;
3441 esac
3442 for ac_exec_ext in '' $ac_executable_extensions; do
3443 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3444 ac_cv_prog_CC="${ac_tool_prefix}cc"
3445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3446 break 2
3447 fi
3448 done
3449 done
3450 IFS=$as_save_IFS
3451
3452 fi
3453 fi
3454 CC=$ac_cv_prog_CC
3455 if test -n "$CC"; then
3456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3457 printf "%s\n" "$CC" >&6; }
3458 else
3459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3460 printf "%s\n" "no" >&6; }
3461 fi
3462
3463
3464 fi
3465 fi
3466 if test -z "$CC"; then
3467 # Extract the first word of "cc", so it can be a program name with args.
3468 set dummy cc; ac_word=$2
3469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3470 printf %s "checking for $ac_word... " >&6; }
3471 if test ${ac_cv_prog_CC+y}
3472 then :
3473 printf %s "(cached) " >&6
3474 else $as_nop
3475 if test -n "$CC"; then
3476 ac_cv_prog_CC="$CC" # Let the user override the test.
3477 else
3478 ac_prog_rejected=no
3479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3480 for as_dir in $PATH
3481 do
3482 IFS=$as_save_IFS
3483 case $as_dir in #(((
3484 '') as_dir=./ ;;
3485 */) ;;
3486 *) as_dir=$as_dir/ ;;
3487 esac
3488 for ac_exec_ext in '' $ac_executable_extensions; do
3489 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3490 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3491 ac_prog_rejected=yes
3492 continue
3493 fi
3494 ac_cv_prog_CC="cc"
3495 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3496 break 2
3497 fi
3498 done
3499 done
3500 IFS=$as_save_IFS
3501
3502 if test $ac_prog_rejected = yes; then
3503 # We found a bogon in the path, so make sure we never use it.
3504 set dummy $ac_cv_prog_CC
3505 shift
3506 if test $# != 0; then
3507 # We chose a different compiler from the bogus one.
3508 # However, it has the same basename, so the bogon will be chosen
3509 # first if we set CC to just the basename; use the full file name.
3510 shift
3511 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3512 fi
3513 fi
3514 fi
3515 fi
3516 CC=$ac_cv_prog_CC
3517 if test -n "$CC"; then
3518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3519 printf "%s\n" "$CC" >&6; }
3520 else
3521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3522 printf "%s\n" "no" >&6; }
3523 fi
3524
3525
3526 fi
3527 if test -z "$CC"; then
3528 if test -n "$ac_tool_prefix"; then
3529 for ac_prog in cl.exe
3530 do
3531 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3532 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3534 printf %s "checking for $ac_word... " >&6; }
3535 if test ${ac_cv_prog_CC+y}
3536 then :
3537 printf %s "(cached) " >&6
3538 else $as_nop
3539 if test -n "$CC"; then
3540 ac_cv_prog_CC="$CC" # Let the user override the test.
3541 else
3542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3543 for as_dir in $PATH
3544 do
3545 IFS=$as_save_IFS
3546 case $as_dir in #(((
3547 '') as_dir=./ ;;
3548 */) ;;
3549 *) as_dir=$as_dir/ ;;
3550 esac
3551 for ac_exec_ext in '' $ac_executable_extensions; do
3552 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3553 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3554 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3555 break 2
3556 fi
3557 done
3558 done
3559 IFS=$as_save_IFS
3560
3561 fi
3562 fi
3563 CC=$ac_cv_prog_CC
3564 if test -n "$CC"; then
3565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3566 printf "%s\n" "$CC" >&6; }
3567 else
3568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3569 printf "%s\n" "no" >&6; }
3570 fi
3571
3572
3573 test -n "$CC" && break
3574 done
3575 fi
3576 if test -z "$CC"; then
3577 ac_ct_CC=$CC
3578 for ac_prog in cl.exe
3579 do
3580 # Extract the first word of "$ac_prog", so it can be a program name with args.
3581 set dummy $ac_prog; ac_word=$2
3582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3583 printf %s "checking for $ac_word... " >&6; }
3584 if test ${ac_cv_prog_ac_ct_CC+y}
3585 then :
3586 printf %s "(cached) " >&6
3587 else $as_nop
3588 if test -n "$ac_ct_CC"; then
3589 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3590 else
3591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3592 for as_dir in $PATH
3593 do
3594 IFS=$as_save_IFS
3595 case $as_dir in #(((
3596 '') as_dir=./ ;;
3597 */) ;;
3598 *) as_dir=$as_dir/ ;;
3599 esac
3600 for ac_exec_ext in '' $ac_executable_extensions; do
3601 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3602 ac_cv_prog_ac_ct_CC="$ac_prog"
3603 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3604 break 2
3605 fi
3606 done
3607 done
3608 IFS=$as_save_IFS
3609
3610 fi
3611 fi
3612 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3613 if test -n "$ac_ct_CC"; then
3614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3615 printf "%s\n" "$ac_ct_CC" >&6; }
3616 else
3617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3618 printf "%s\n" "no" >&6; }
3619 fi
3620
3621
3622 test -n "$ac_ct_CC" && break
3623 done
3624
3625 if test "x$ac_ct_CC" = x; then
3626 CC=""
3627 else
3628 case $cross_compiling:$ac_tool_warned in
3629 yes:)
3630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3631 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3632 ac_tool_warned=yes ;;
3633 esac
3634 CC=$ac_ct_CC
3635 fi
3636 fi
3637
3638 fi
3639 if test -z "$CC"; then
3640 if test -n "$ac_tool_prefix"; then
3641 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3642 set dummy ${ac_tool_prefix}clang; ac_word=$2
3643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3644 printf %s "checking for $ac_word... " >&6; }
3645 if test ${ac_cv_prog_CC+y}
3646 then :
3647 printf %s "(cached) " >&6
3648 else $as_nop
3649 if test -n "$CC"; then
3650 ac_cv_prog_CC="$CC" # Let the user override the test.
3651 else
3652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3653 for as_dir in $PATH
3654 do
3655 IFS=$as_save_IFS
3656 case $as_dir in #(((
3657 '') as_dir=./ ;;
3658 */) ;;
3659 *) as_dir=$as_dir/ ;;
3660 esac
3661 for ac_exec_ext in '' $ac_executable_extensions; do
3662 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3663 ac_cv_prog_CC="${ac_tool_prefix}clang"
3664 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3665 break 2
3666 fi
3667 done
3668 done
3669 IFS=$as_save_IFS
3670
3671 fi
3672 fi
3673 CC=$ac_cv_prog_CC
3674 if test -n "$CC"; then
3675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3676 printf "%s\n" "$CC" >&6; }
3677 else
3678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3679 printf "%s\n" "no" >&6; }
3680 fi
3681
3682
3683 fi
3684 if test -z "$ac_cv_prog_CC"; then
3685 ac_ct_CC=$CC
3686 # Extract the first word of "clang", so it can be a program name with args.
3687 set dummy clang; ac_word=$2
3688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3689 printf %s "checking for $ac_word... " >&6; }
3690 if test ${ac_cv_prog_ac_ct_CC+y}
3691 then :
3692 printf %s "(cached) " >&6
3693 else $as_nop
3694 if test -n "$ac_ct_CC"; then
3695 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3696 else
3697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3698 for as_dir in $PATH
3699 do
3700 IFS=$as_save_IFS
3701 case $as_dir in #(((
3702 '') as_dir=./ ;;
3703 */) ;;
3704 *) as_dir=$as_dir/ ;;
3705 esac
3706 for ac_exec_ext in '' $ac_executable_extensions; do
3707 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3708 ac_cv_prog_ac_ct_CC="clang"
3709 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3710 break 2
3711 fi
3712 done
3713 done
3714 IFS=$as_save_IFS
3715
3716 fi
3717 fi
3718 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3719 if test -n "$ac_ct_CC"; then
3720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3721 printf "%s\n" "$ac_ct_CC" >&6; }
3722 else
3723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3724 printf "%s\n" "no" >&6; }
3725 fi
3726
3727 if test "x$ac_ct_CC" = x; then
3728 CC=""
3729 else
3730 case $cross_compiling:$ac_tool_warned in
3731 yes:)
3732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3733 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3734 ac_tool_warned=yes ;;
3735 esac
3736 CC=$ac_ct_CC
3737 fi
3738 else
3739 CC="$ac_cv_prog_CC"
3740 fi
3741
3742 fi
3743
3744
3745 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3746 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3747 as_fn_error $? "no acceptable C compiler found in \$PATH
3748 See \`config.log' for more details" "$LINENO" 5; }
3749
3750 # Provide some information about the compiler.
3751 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3752 set X $ac_compile
3753 ac_compiler=$2
3754 for ac_option in --version -v -V -qversion -version; do
3755 { { ac_try="$ac_compiler $ac_option >&5"
3756 case "(($ac_try" in
3757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3758 *) ac_try_echo=$ac_try;;
3759 esac
3760 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3761 printf "%s\n" "$ac_try_echo"; } >&5
3762 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3763 ac_status=$?
3764 if test -s conftest.err; then
3765 sed '10a\
3766 ... rest of stderr output deleted ...
3767 10q' conftest.err >conftest.er1
3768 cat conftest.er1 >&5
3769 fi
3770 rm -f conftest.er1 conftest.err
3771 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3772 test $ac_status = 0; }
3773 done
3774
3775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3776 /* end confdefs.h. */
3777
3778 int
3779 main (void)
3780 {
3781
3782 ;
3783 return 0;
3784 }
3785 _ACEOF
3786 ac_clean_files_save=$ac_clean_files
3787 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3788 # Try to create an executable without -o first, disregard a.out.
3789 # It will help us diagnose broken compilers, and finding out an intuition
3790 # of exeext.
3791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3792 printf %s "checking whether the C compiler works... " >&6; }
3793 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3794
3795 # The possible output files:
3796 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3797
3798 ac_rmfiles=
3799 for ac_file in $ac_files
3800 do
3801 case $ac_file in
3802 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3803 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3804 esac
3805 done
3806 rm -f $ac_rmfiles
3807
3808 if { { ac_try="$ac_link_default"
3809 case "(($ac_try" in
3810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3811 *) ac_try_echo=$ac_try;;
3812 esac
3813 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3814 printf "%s\n" "$ac_try_echo"; } >&5
3815 (eval "$ac_link_default") 2>&5
3816 ac_status=$?
3817 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3818 test $ac_status = 0; }
3819 then :
3820 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3821 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3822 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3823 # so that the user can short-circuit this test for compilers unknown to
3824 # Autoconf.
3825 for ac_file in $ac_files ''
3826 do
3827 test -f "$ac_file" || continue
3828 case $ac_file in
3829 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3830 ;;
3831 [ab].out )
3832 # We found the default executable, but exeext='' is most
3833 # certainly right.
3834 break;;
3835 *.* )
3836 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3837 then :; else
3838 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3839 fi
3840 # We set ac_cv_exeext here because the later test for it is not
3841 # safe: cross compilers may not add the suffix if given an `-o'
3842 # argument, so we may need to know it at that point already.
3843 # Even if this section looks crufty: it has the advantage of
3844 # actually working.
3845 break;;
3846 * )
3847 break;;
3848 esac
3849 done
3850 test "$ac_cv_exeext" = no && ac_cv_exeext=
3851
3852 else $as_nop
3853 ac_file=''
3854 fi
3855 if test -z "$ac_file"
3856 then :
3857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3858 printf "%s\n" "no" >&6; }
3859 printf "%s\n" "$as_me: failed program was:" >&5
3860 sed 's/^/| /' conftest.$ac_ext >&5
3861
3862 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3863 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3864 as_fn_error 77 "C compiler cannot create executables
3865 See \`config.log' for more details" "$LINENO" 5; }
3866 else $as_nop
3867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3868 printf "%s\n" "yes" >&6; }
3869 fi
3870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3871 printf %s "checking for C compiler default output file name... " >&6; }
3872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3873 printf "%s\n" "$ac_file" >&6; }
3874 ac_exeext=$ac_cv_exeext
3875
3876 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3877 ac_clean_files=$ac_clean_files_save
3878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3879 printf %s "checking for suffix of executables... " >&6; }
3880 if { { ac_try="$ac_link"
3881 case "(($ac_try" in
3882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3883 *) ac_try_echo=$ac_try;;
3884 esac
3885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3886 printf "%s\n" "$ac_try_echo"; } >&5
3887 (eval "$ac_link") 2>&5
3888 ac_status=$?
3889 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3890 test $ac_status = 0; }
3891 then :
3892 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3893 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3894 # work properly (i.e., refer to `conftest.exe'), while it won't with
3895 # `rm'.
3896 for ac_file in conftest.exe conftest conftest.*; do
3897 test -f "$ac_file" || continue
3898 case $ac_file in
3899 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3900 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3901 break;;
3902 * ) break;;
3903 esac
3904 done
3905 else $as_nop
3906 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3907 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3908 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3909 See \`config.log' for more details" "$LINENO" 5; }
3910 fi
3911 rm -f conftest conftest$ac_cv_exeext
3912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3913 printf "%s\n" "$ac_cv_exeext" >&6; }
3914
3915 rm -f conftest.$ac_ext
3916 EXEEXT=$ac_cv_exeext
3917 ac_exeext=$EXEEXT
3918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3919 /* end confdefs.h. */
3920 #include <stdio.h>
3921 int
3922 main (void)
3923 {
3924 FILE *f = fopen ("conftest.out", "w");
3925 return ferror (f) || fclose (f) != 0;
3926
3927 ;
3928 return 0;
3929 }
3930 _ACEOF
3931 ac_clean_files="$ac_clean_files conftest.out"
3932 # Check that the compiler produces executables we can run. If not, either
3933 # the compiler is broken, or we cross compile.
3934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3935 printf %s "checking whether we are cross compiling... " >&6; }
3936 if test "$cross_compiling" != yes; then
3937 { { ac_try="$ac_link"
3938 case "(($ac_try" in
3939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3940 *) ac_try_echo=$ac_try;;
3941 esac
3942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3943 printf "%s\n" "$ac_try_echo"; } >&5
3944 (eval "$ac_link") 2>&5
3945 ac_status=$?
3946 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3947 test $ac_status = 0; }
3948 if { ac_try='./conftest$ac_cv_exeext'
3949 { { case "(($ac_try" in
3950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3951 *) ac_try_echo=$ac_try;;
3952 esac
3953 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3954 printf "%s\n" "$ac_try_echo"; } >&5
3955 (eval "$ac_try") 2>&5
3956 ac_status=$?
3957 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3958 test $ac_status = 0; }; }; then
3959 cross_compiling=no
3960 else
3961 if test "$cross_compiling" = maybe; then
3962 cross_compiling=yes
3963 else
3964 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3965 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3966 as_fn_error 77 "cannot run C compiled programs.
3967 If you meant to cross compile, use \`--host'.
3968 See \`config.log' for more details" "$LINENO" 5; }
3969 fi
3970 fi
3971 fi
3972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3973 printf "%s\n" "$cross_compiling" >&6; }
3974
3975 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3976 ac_clean_files=$ac_clean_files_save
3977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3978 printf %s "checking for suffix of object files... " >&6; }
3979 if test ${ac_cv_objext+y}
3980 then :
3981 printf %s "(cached) " >&6
3982 else $as_nop
3983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3984 /* end confdefs.h. */
3985
3986 int
3987 main (void)
3988 {
3989
3990 ;
3991 return 0;
3992 }
3993 _ACEOF
3994 rm -f conftest.o conftest.obj
3995 if { { ac_try="$ac_compile"
3996 case "(($ac_try" in
3997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3998 *) ac_try_echo=$ac_try;;
3999 esac
4000 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4001 printf "%s\n" "$ac_try_echo"; } >&5
4002 (eval "$ac_compile") 2>&5
4003 ac_status=$?
4004 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4005 test $ac_status = 0; }
4006 then :
4007 for ac_file in conftest.o conftest.obj conftest.*; do
4008 test -f "$ac_file" || continue;
4009 case $ac_file in
4010 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4011 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4012 break;;
4013 esac
4014 done
4015 else $as_nop
4016 printf "%s\n" "$as_me: failed program was:" >&5
4017 sed 's/^/| /' conftest.$ac_ext >&5
4018
4019 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4020 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4021 as_fn_error $? "cannot compute suffix of object files: cannot compile
4022 See \`config.log' for more details" "$LINENO" 5; }
4023 fi
4024 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4025 fi
4026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4027 printf "%s\n" "$ac_cv_objext" >&6; }
4028 OBJEXT=$ac_cv_objext
4029 ac_objext=$OBJEXT
4030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4031 printf %s "checking whether the compiler supports GNU C... " >&6; }
4032 if test ${ac_cv_c_compiler_gnu+y}
4033 then :
4034 printf %s "(cached) " >&6
4035 else $as_nop
4036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037 /* end confdefs.h. */
4038
4039 int
4040 main (void)
4041 {
4042 #ifndef __GNUC__
4043 choke me
4044 #endif
4045
4046 ;
4047 return 0;
4048 }
4049 _ACEOF
4050 if ac_fn_c_try_compile "$LINENO"
4051 then :
4052 ac_compiler_gnu=yes
4053 else $as_nop
4054 ac_compiler_gnu=no
4055 fi
4056 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4057 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4058
4059 fi
4060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4061 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4063
4064 if test $ac_compiler_gnu = yes; then
4065 GCC=yes
4066 else
4067 GCC=
4068 fi
4069 ac_test_CFLAGS=${CFLAGS+y}
4070 ac_save_CFLAGS=$CFLAGS
4071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4072 printf %s "checking whether $CC accepts -g... " >&6; }
4073 if test ${ac_cv_prog_cc_g+y}
4074 then :
4075 printf %s "(cached) " >&6
4076 else $as_nop
4077 ac_save_c_werror_flag=$ac_c_werror_flag
4078 ac_c_werror_flag=yes
4079 ac_cv_prog_cc_g=no
4080 CFLAGS="-g"
4081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4082 /* end confdefs.h. */
4083
4084 int
4085 main (void)
4086 {
4087
4088 ;
4089 return 0;
4090 }
4091 _ACEOF
4092 if ac_fn_c_try_compile "$LINENO"
4093 then :
4094 ac_cv_prog_cc_g=yes
4095 else $as_nop
4096 CFLAGS=""
4097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4098 /* end confdefs.h. */
4099
4100 int
4101 main (void)
4102 {
4103
4104 ;
4105 return 0;
4106 }
4107 _ACEOF
4108 if ac_fn_c_try_compile "$LINENO"
4109 then :
4110
4111 else $as_nop
4112 ac_c_werror_flag=$ac_save_c_werror_flag
4113 CFLAGS="-g"
4114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4115 /* end confdefs.h. */
4116
4117 int
4118 main (void)
4119 {
4120
4121 ;
4122 return 0;
4123 }
4124 _ACEOF
4125 if ac_fn_c_try_compile "$LINENO"
4126 then :
4127 ac_cv_prog_cc_g=yes
4128 fi
4129 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4130 fi
4131 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4132 fi
4133 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4134 ac_c_werror_flag=$ac_save_c_werror_flag
4135 fi
4136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4137 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4138 if test $ac_test_CFLAGS; then
4139 CFLAGS=$ac_save_CFLAGS
4140 elif test $ac_cv_prog_cc_g = yes; then
4141 if test "$GCC" = yes; then
4142 CFLAGS="-g -O2"
4143 else
4144 CFLAGS="-g"
4145 fi
4146 else
4147 if test "$GCC" = yes; then
4148 CFLAGS="-O2"
4149 else
4150 CFLAGS=
4151 fi
4152 fi
4153 ac_prog_cc_stdc=no
4154 if test x$ac_prog_cc_stdc = xno
4155 then :
4156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4157 printf %s "checking for $CC option to enable C11 features... " >&6; }
4158 if test ${ac_cv_prog_cc_c11+y}
4159 then :
4160 printf %s "(cached) " >&6
4161 else $as_nop
4162 ac_cv_prog_cc_c11=no
4163 ac_save_CC=$CC
4164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4165 /* end confdefs.h. */
4166 $ac_c_conftest_c11_program
4167 _ACEOF
4168 for ac_arg in '' -std=gnu11
4169 do
4170 CC="$ac_save_CC $ac_arg"
4171 if ac_fn_c_try_compile "$LINENO"
4172 then :
4173 ac_cv_prog_cc_c11=$ac_arg
4174 fi
4175 rm -f core conftest.err conftest.$ac_objext conftest.beam
4176 test "x$ac_cv_prog_cc_c11" != "xno" && break
4177 done
4178 rm -f conftest.$ac_ext
4179 CC=$ac_save_CC
4180 fi
4181
4182 if test "x$ac_cv_prog_cc_c11" = xno
4183 then :
4184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4185 printf "%s\n" "unsupported" >&6; }
4186 else $as_nop
4187 if test "x$ac_cv_prog_cc_c11" = x
4188 then :
4189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4190 printf "%s\n" "none needed" >&6; }
4191 else $as_nop
4192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4193 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4194 CC="$CC $ac_cv_prog_cc_c11"
4195 fi
4196 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4197 ac_prog_cc_stdc=c11
4198 fi
4199 fi
4200 if test x$ac_prog_cc_stdc = xno
4201 then :
4202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4203 printf %s "checking for $CC option to enable C99 features... " >&6; }
4204 if test ${ac_cv_prog_cc_c99+y}
4205 then :
4206 printf %s "(cached) " >&6
4207 else $as_nop
4208 ac_cv_prog_cc_c99=no
4209 ac_save_CC=$CC
4210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4211 /* end confdefs.h. */
4212 $ac_c_conftest_c99_program
4213 _ACEOF
4214 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4215 do
4216 CC="$ac_save_CC $ac_arg"
4217 if ac_fn_c_try_compile "$LINENO"
4218 then :
4219 ac_cv_prog_cc_c99=$ac_arg
4220 fi
4221 rm -f core conftest.err conftest.$ac_objext conftest.beam
4222 test "x$ac_cv_prog_cc_c99" != "xno" && break
4223 done
4224 rm -f conftest.$ac_ext
4225 CC=$ac_save_CC
4226 fi
4227
4228 if test "x$ac_cv_prog_cc_c99" = xno
4229 then :
4230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4231 printf "%s\n" "unsupported" >&6; }
4232 else $as_nop
4233 if test "x$ac_cv_prog_cc_c99" = x
4234 then :
4235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4236 printf "%s\n" "none needed" >&6; }
4237 else $as_nop
4238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4239 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4240 CC="$CC $ac_cv_prog_cc_c99"
4241 fi
4242 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4243 ac_prog_cc_stdc=c99
4244 fi
4245 fi
4246 if test x$ac_prog_cc_stdc = xno
4247 then :
4248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4249 printf %s "checking for $CC option to enable C89 features... " >&6; }
4250 if test ${ac_cv_prog_cc_c89+y}
4251 then :
4252 printf %s "(cached) " >&6
4253 else $as_nop
4254 ac_cv_prog_cc_c89=no
4255 ac_save_CC=$CC
4256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4257 /* end confdefs.h. */
4258 $ac_c_conftest_c89_program
4259 _ACEOF
4260 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4261 do
4262 CC="$ac_save_CC $ac_arg"
4263 if ac_fn_c_try_compile "$LINENO"
4264 then :
4265 ac_cv_prog_cc_c89=$ac_arg
4266 fi
4267 rm -f core conftest.err conftest.$ac_objext conftest.beam
4268 test "x$ac_cv_prog_cc_c89" != "xno" && break
4269 done
4270 rm -f conftest.$ac_ext
4271 CC=$ac_save_CC
4272 fi
4273
4274 if test "x$ac_cv_prog_cc_c89" = xno
4275 then :
4276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4277 printf "%s\n" "unsupported" >&6; }
4278 else $as_nop
4279 if test "x$ac_cv_prog_cc_c89" = x
4280 then :
4281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4282 printf "%s\n" "none needed" >&6; }
4283 else $as_nop
4284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4285 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4286 CC="$CC $ac_cv_prog_cc_c89"
4287 fi
4288 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4289 ac_prog_cc_stdc=c89
4290 fi
4291 fi
4292
4293 ac_ext=c
4294 ac_cpp='$CPP $CPPFLAGS'
4295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4298
4299
4300 ac_ext=c
4301 ac_cpp='$CPP $CPPFLAGS'
4302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4306 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4307 if test ${am_cv_prog_cc_c_o+y}
4308 then :
4309 printf %s "(cached) " >&6
4310 else $as_nop
4311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4312 /* end confdefs.h. */
4313
4314 int
4315 main (void)
4316 {
4317
4318 ;
4319 return 0;
4320 }
4321 _ACEOF
4322 # Make sure it works both with $CC and with simple cc.
4323 # Following AC_PROG_CC_C_O, we do the test twice because some
4324 # compilers refuse to overwrite an existing .o file with -o,
4325 # though they will create one.
4326 am_cv_prog_cc_c_o=yes
4327 for am_i in 1 2; do
4328 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4329 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4330 ac_status=$?
4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); } \
4333 && test -f conftest2.$ac_objext; then
4334 : OK
4335 else
4336 am_cv_prog_cc_c_o=no
4337 break
4338 fi
4339 done
4340 rm -f core conftest*
4341 unset am_i
4342 fi
4343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4344 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4345 if test "$am_cv_prog_cc_c_o" != yes; then
4346 # Losing compiler, so override with the script.
4347 # FIXME: It is wrong to rewrite CC.
4348 # But if we don't then we get into trouble of one sort or another.
4349 # A longer-term fix would be to have automake use am__CC in this case,
4350 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4351 CC="$am_aux_dir/compile $CC"
4352 fi
4353 ac_ext=c
4354 ac_cpp='$CPP $CPPFLAGS'
4355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4358
4359 DEPDIR="${am__leading_dot}deps"
4360
4361 ac_config_commands="$ac_config_commands depfiles"
4362
4363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4364 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4365 cat > confinc.mk << 'END'
4366 am__doit:
4367 @echo this is the am__doit target >confinc.out
4368 .PHONY: am__doit
4369 END
4370 am__include="#"
4371 am__quote=
4372 # BSD make does it like this.
4373 echo '.include "confinc.mk" # ignored' > confmf.BSD
4374 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4375 echo 'include confinc.mk # ignored' > confmf.GNU
4376 _am_result=no
4377 for s in GNU BSD; do
4378 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4379 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4380 ac_status=$?
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); }
4383 case $?:`cat confinc.out 2>/dev/null` in #(
4384 '0:this is the am__doit target') :
4385 case $s in #(
4386 BSD) :
4387 am__include='.include' am__quote='"' ;; #(
4388 *) :
4389 am__include='include' am__quote='' ;;
4390 esac ;; #(
4391 *) :
4392 ;;
4393 esac
4394 if test "$am__include" != "#"; then
4395 _am_result="yes ($s style)"
4396 break
4397 fi
4398 done
4399 rm -f confinc.* confmf.*
4400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4401 printf "%s\n" "${_am_result}" >&6; }
4402
4403 # Check whether --enable-dependency-tracking was given.
4404 if test ${enable_dependency_tracking+y}
4405 then :
4406 enableval=$enable_dependency_tracking;
4407 fi
4408
4409 if test "x$enable_dependency_tracking" != xno; then
4410 am_depcomp="$ac_aux_dir/depcomp"
4411 AMDEPBACKSLASH='\'
4412 am__nodep='_no'
4413 fi
4414 if test "x$enable_dependency_tracking" != xno; then
4415 AMDEP_TRUE=
4416 AMDEP_FALSE='#'
4417 else
4418 AMDEP_TRUE='#'
4419 AMDEP_FALSE=
4420 fi
4421
4422
4423
4424 depcc="$CC" am_compiler_list=
4425
4426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4427 printf %s "checking dependency style of $depcc... " >&6; }
4428 if test ${am_cv_CC_dependencies_compiler_type+y}
4429 then :
4430 printf %s "(cached) " >&6
4431 else $as_nop
4432 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4433 # We make a subdir and do the tests there. Otherwise we can end up
4434 # making bogus files that we don't know about and never remove. For
4435 # instance it was reported that on HP-UX the gcc test will end up
4436 # making a dummy file named 'D' -- because '-MD' means "put the output
4437 # in D".
4438 rm -rf conftest.dir
4439 mkdir conftest.dir
4440 # Copy depcomp to subdir because otherwise we won't find it if we're
4441 # using a relative directory.
4442 cp "$am_depcomp" conftest.dir
4443 cd conftest.dir
4444 # We will build objects and dependencies in a subdirectory because
4445 # it helps to detect inapplicable dependency modes. For instance
4446 # both Tru64's cc and ICC support -MD to output dependencies as a
4447 # side effect of compilation, but ICC will put the dependencies in
4448 # the current directory while Tru64 will put them in the object
4449 # directory.
4450 mkdir sub
4451
4452 am_cv_CC_dependencies_compiler_type=none
4453 if test "$am_compiler_list" = ""; then
4454 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4455 fi
4456 am__universal=false
4457 case " $depcc " in #(
4458 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4459 esac
4460
4461 for depmode in $am_compiler_list; do
4462 # Setup a source with many dependencies, because some compilers
4463 # like to wrap large dependency lists on column 80 (with \), and
4464 # we should not choose a depcomp mode which is confused by this.
4465 #
4466 # We need to recreate these files for each test, as the compiler may
4467 # overwrite some of them when testing with obscure command lines.
4468 # This happens at least with the AIX C compiler.
4469 : > sub/conftest.c
4470 for i in 1 2 3 4 5 6; do
4471 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4472 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4473 # Solaris 10 /bin/sh.
4474 echo '/* dummy */' > sub/conftst$i.h
4475 done
4476 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4477
4478 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4479 # mode. It turns out that the SunPro C++ compiler does not properly
4480 # handle '-M -o', and we need to detect this. Also, some Intel
4481 # versions had trouble with output in subdirs.
4482 am__obj=sub/conftest.${OBJEXT-o}
4483 am__minus_obj="-o $am__obj"
4484 case $depmode in
4485 gcc)
4486 # This depmode causes a compiler race in universal mode.
4487 test "$am__universal" = false || continue
4488 ;;
4489 nosideeffect)
4490 # After this tag, mechanisms are not by side-effect, so they'll
4491 # only be used when explicitly requested.
4492 if test "x$enable_dependency_tracking" = xyes; then
4493 continue
4494 else
4495 break
4496 fi
4497 ;;
4498 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4499 # This compiler won't grok '-c -o', but also, the minuso test has
4500 # not run yet. These depmodes are late enough in the game, and
4501 # so weak that their functioning should not be impacted.
4502 am__obj=conftest.${OBJEXT-o}
4503 am__minus_obj=
4504 ;;
4505 none) break ;;
4506 esac
4507 if depmode=$depmode \
4508 source=sub/conftest.c object=$am__obj \
4509 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4510 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4511 >/dev/null 2>conftest.err &&
4512 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4513 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4514 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4515 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4516 # icc doesn't choke on unknown options, it will just issue warnings
4517 # or remarks (even with -Werror). So we grep stderr for any message
4518 # that says an option was ignored or not supported.
4519 # When given -MP, icc 7.0 and 7.1 complain thusly:
4520 # icc: Command line warning: ignoring option '-M'; no argument required
4521 # The diagnosis changed in icc 8.0:
4522 # icc: Command line remark: option '-MP' not supported
4523 if (grep 'ignoring option' conftest.err ||
4524 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4525 am_cv_CC_dependencies_compiler_type=$depmode
4526 break
4527 fi
4528 fi
4529 done
4530
4531 cd ..
4532 rm -rf conftest.dir
4533 else
4534 am_cv_CC_dependencies_compiler_type=none
4535 fi
4536
4537 fi
4538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4539 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4540 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4541
4542 if
4543 test "x$enable_dependency_tracking" != xno \
4544 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4545 am__fastdepCC_TRUE=
4546 am__fastdepCC_FALSE='#'
4547 else
4548 am__fastdepCC_TRUE='#'
4549 am__fastdepCC_FALSE=
4550 fi
4551
4552
4553 # Check whether --enable-silent-rules was given.
4554 if test ${enable_silent_rules+y}
4555 then :
4556 enableval=$enable_silent_rules;
4557 fi
4558
4559 case $enable_silent_rules in # (((
4560 yes) AM_DEFAULT_VERBOSITY=0;;
4561 no) AM_DEFAULT_VERBOSITY=1;;
4562 *) AM_DEFAULT_VERBOSITY=0;;
4563 esac
4564 am_make=${MAKE-make}
4565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4566 printf %s "checking whether $am_make supports nested variables... " >&6; }
4567 if test ${am_cv_make_support_nested_variables+y}
4568 then :
4569 printf %s "(cached) " >&6
4570 else $as_nop
4571 if printf "%s\n" 'TRUE=$(BAR$(V))
4572 BAR0=false
4573 BAR1=true
4574 V=1
4575 am__doit:
4576 @$(TRUE)
4577 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4578 am_cv_make_support_nested_variables=yes
4579 else
4580 am_cv_make_support_nested_variables=no
4581 fi
4582 fi
4583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4584 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4585 if test $am_cv_make_support_nested_variables = yes; then
4586 AM_V='$(V)'
4587 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4588 else
4589 AM_V=$AM_DEFAULT_VERBOSITY
4590 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4591 fi
4592 AM_BACKSLASH='\'
4593
4594 case `pwd` in
4595 *\ * | *\ *)
4596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4597 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4598 esac
4599
4600
4601
4602 macro_version='2.4.7'
4603 macro_revision='2.4.7'
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618 ltmain=$ac_aux_dir/ltmain.sh
4619
4620
4621
4622 # Make sure we can run config.sub.
4623 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4624 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4625
4626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4627 printf %s "checking build system type... " >&6; }
4628 if test ${ac_cv_build+y}
4629 then :
4630 printf %s "(cached) " >&6
4631 else $as_nop
4632 ac_build_alias=$build_alias
4633 test "x$ac_build_alias" = x &&
4634 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4635 test "x$ac_build_alias" = x &&
4636 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4637 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4638 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4639
4640 fi
4641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4642 printf "%s\n" "$ac_cv_build" >&6; }
4643 case $ac_cv_build in
4644 *-*-*) ;;
4645 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4646 esac
4647 build=$ac_cv_build
4648 ac_save_IFS=$IFS; IFS='-'
4649 set x $ac_cv_build
4650 shift
4651 build_cpu=$1
4652 build_vendor=$2
4653 shift; shift
4654 # Remember, the first character of IFS is used to create $*,
4655 # except with old shells:
4656 build_os=$*
4657 IFS=$ac_save_IFS
4658 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4659
4660
4661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4662 printf %s "checking host system type... " >&6; }
4663 if test ${ac_cv_host+y}
4664 then :
4665 printf %s "(cached) " >&6
4666 else $as_nop
4667 if test "x$host_alias" = x; then
4668 ac_cv_host=$ac_cv_build
4669 else
4670 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4671 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4672 fi
4673
4674 fi
4675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4676 printf "%s\n" "$ac_cv_host" >&6; }
4677 case $ac_cv_host in
4678 *-*-*) ;;
4679 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4680 esac
4681 host=$ac_cv_host
4682 ac_save_IFS=$IFS; IFS='-'
4683 set x $ac_cv_host
4684 shift
4685 host_cpu=$1
4686 host_vendor=$2
4687 shift; shift
4688 # Remember, the first character of IFS is used to create $*,
4689 # except with old shells:
4690 host_os=$*
4691 IFS=$ac_save_IFS
4692 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4693
4694
4695 # Backslashify metacharacters that are still active within
4696 # double-quoted strings.
4697 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4698
4699 # Same as above, but do not quote variable references.
4700 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4701
4702 # Sed substitution to delay expansion of an escaped shell variable in a
4703 # double_quote_subst'ed string.
4704 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4705
4706 # Sed substitution to delay expansion of an escaped single quote.
4707 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4708
4709 # Sed substitution to avoid accidental globbing in evaled expressions
4710 no_glob_subst='s/\*/\\\*/g'
4711
4712 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4713 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4714 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4715
4716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4717 printf %s "checking how to print strings... " >&6; }
4718 # Test print first, because it will be a builtin if present.
4719 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4720 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4721 ECHO='print -r --'
4722 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4723 ECHO='printf %s\n'
4724 else
4725 # Use this function as a fallback that always works.
4726 func_fallback_echo ()
4727 {
4728 eval 'cat <<_LTECHO_EOF
4729 $1
4730 _LTECHO_EOF'
4731 }
4732 ECHO='func_fallback_echo'
4733 fi
4734
4735 # func_echo_all arg...
4736 # Invoke $ECHO with all args, space-separated.
4737 func_echo_all ()
4738 {
4739 $ECHO ""
4740 }
4741
4742 case $ECHO in
4743 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4744 printf "%s\n" "printf" >&6; } ;;
4745 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4746 printf "%s\n" "print -r" >&6; } ;;
4747 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4748 printf "%s\n" "cat" >&6; } ;;
4749 esac
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4765 printf %s "checking for a sed that does not truncate output... " >&6; }
4766 if test ${ac_cv_path_SED+y}
4767 then :
4768 printf %s "(cached) " >&6
4769 else $as_nop
4770 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4771 for ac_i in 1 2 3 4 5 6 7; do
4772 ac_script="$ac_script$as_nl$ac_script"
4773 done
4774 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4775 { ac_script=; unset ac_script;}
4776 if test -z "$SED"; then
4777 ac_path_SED_found=false
4778 # Loop through the user's path and test for each of PROGNAME-LIST
4779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4780 for as_dir in $PATH
4781 do
4782 IFS=$as_save_IFS
4783 case $as_dir in #(((
4784 '') as_dir=./ ;;
4785 */) ;;
4786 *) as_dir=$as_dir/ ;;
4787 esac
4788 for ac_prog in sed gsed
4789 do
4790 for ac_exec_ext in '' $ac_executable_extensions; do
4791 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4792 as_fn_executable_p "$ac_path_SED" || continue
4793 # Check for GNU ac_path_SED and select it if it is found.
4794 # Check for GNU $ac_path_SED
4795 case `"$ac_path_SED" --version 2>&1` in
4796 *GNU*)
4797 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4798 *)
4799 ac_count=0
4800 printf %s 0123456789 >"conftest.in"
4801 while :
4802 do
4803 cat "conftest.in" "conftest.in" >"conftest.tmp"
4804 mv "conftest.tmp" "conftest.in"
4805 cp "conftest.in" "conftest.nl"
4806 printf "%s\n" '' >> "conftest.nl"
4807 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4808 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4809 as_fn_arith $ac_count + 1 && ac_count=$as_val
4810 if test $ac_count -gt ${ac_path_SED_max-0}; then
4811 # Best one so far, save it but keep looking for a better one
4812 ac_cv_path_SED="$ac_path_SED"
4813 ac_path_SED_max=$ac_count
4814 fi
4815 # 10*(2^10) chars as input seems more than enough
4816 test $ac_count -gt 10 && break
4817 done
4818 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4819 esac
4820
4821 $ac_path_SED_found && break 3
4822 done
4823 done
4824 done
4825 IFS=$as_save_IFS
4826 if test -z "$ac_cv_path_SED"; then
4827 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4828 fi
4829 else
4830 ac_cv_path_SED=$SED
4831 fi
4832
4833 fi
4834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4835 printf "%s\n" "$ac_cv_path_SED" >&6; }
4836 SED="$ac_cv_path_SED"
4837 rm -f conftest.sed
4838
4839 test -z "$SED" && SED=sed
4840 Xsed="$SED -e 1s/^X//"
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4853 printf %s "checking for grep that handles long lines and -e... " >&6; }
4854 if test ${ac_cv_path_GREP+y}
4855 then :
4856 printf %s "(cached) " >&6
4857 else $as_nop
4858 if test -z "$GREP"; then
4859 ac_path_GREP_found=false
4860 # Loop through the user's path and test for each of PROGNAME-LIST
4861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4863 do
4864 IFS=$as_save_IFS
4865 case $as_dir in #(((
4866 '') as_dir=./ ;;
4867 */) ;;
4868 *) as_dir=$as_dir/ ;;
4869 esac
4870 for ac_prog in grep ggrep
4871 do
4872 for ac_exec_ext in '' $ac_executable_extensions; do
4873 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4874 as_fn_executable_p "$ac_path_GREP" || continue
4875 # Check for GNU ac_path_GREP and select it if it is found.
4876 # Check for GNU $ac_path_GREP
4877 case `"$ac_path_GREP" --version 2>&1` in
4878 *GNU*)
4879 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4880 *)
4881 ac_count=0
4882 printf %s 0123456789 >"conftest.in"
4883 while :
4884 do
4885 cat "conftest.in" "conftest.in" >"conftest.tmp"
4886 mv "conftest.tmp" "conftest.in"
4887 cp "conftest.in" "conftest.nl"
4888 printf "%s\n" 'GREP' >> "conftest.nl"
4889 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4890 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4891 as_fn_arith $ac_count + 1 && ac_count=$as_val
4892 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4893 # Best one so far, save it but keep looking for a better one
4894 ac_cv_path_GREP="$ac_path_GREP"
4895 ac_path_GREP_max=$ac_count
4896 fi
4897 # 10*(2^10) chars as input seems more than enough
4898 test $ac_count -gt 10 && break
4899 done
4900 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4901 esac
4902
4903 $ac_path_GREP_found && break 3
4904 done
4905 done
4906 done
4907 IFS=$as_save_IFS
4908 if test -z "$ac_cv_path_GREP"; then
4909 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4910 fi
4911 else
4912 ac_cv_path_GREP=$GREP
4913 fi
4914
4915 fi
4916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4917 printf "%s\n" "$ac_cv_path_GREP" >&6; }
4918 GREP="$ac_cv_path_GREP"
4919
4920
4921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4922 printf %s "checking for egrep... " >&6; }
4923 if test ${ac_cv_path_EGREP+y}
4924 then :
4925 printf %s "(cached) " >&6
4926 else $as_nop
4927 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4928 then ac_cv_path_EGREP="$GREP -E"
4929 else
4930 if test -z "$EGREP"; then
4931 ac_path_EGREP_found=false
4932 # Loop through the user's path and test for each of PROGNAME-LIST
4933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4934 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4935 do
4936 IFS=$as_save_IFS
4937 case $as_dir in #(((
4938 '') as_dir=./ ;;
4939 */) ;;
4940 *) as_dir=$as_dir/ ;;
4941 esac
4942 for ac_prog in egrep
4943 do
4944 for ac_exec_ext in '' $ac_executable_extensions; do
4945 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
4946 as_fn_executable_p "$ac_path_EGREP" || continue
4947 # Check for GNU ac_path_EGREP and select it if it is found.
4948 # Check for GNU $ac_path_EGREP
4949 case `"$ac_path_EGREP" --version 2>&1` in
4950 *GNU*)
4951 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4952 *)
4953 ac_count=0
4954 printf %s 0123456789 >"conftest.in"
4955 while :
4956 do
4957 cat "conftest.in" "conftest.in" >"conftest.tmp"
4958 mv "conftest.tmp" "conftest.in"
4959 cp "conftest.in" "conftest.nl"
4960 printf "%s\n" 'EGREP' >> "conftest.nl"
4961 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4962 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4963 as_fn_arith $ac_count + 1 && ac_count=$as_val
4964 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4965 # Best one so far, save it but keep looking for a better one
4966 ac_cv_path_EGREP="$ac_path_EGREP"
4967 ac_path_EGREP_max=$ac_count
4968 fi
4969 # 10*(2^10) chars as input seems more than enough
4970 test $ac_count -gt 10 && break
4971 done
4972 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4973 esac
4974
4975 $ac_path_EGREP_found && break 3
4976 done
4977 done
4978 done
4979 IFS=$as_save_IFS
4980 if test -z "$ac_cv_path_EGREP"; then
4981 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4982 fi
4983 else
4984 ac_cv_path_EGREP=$EGREP
4985 fi
4986
4987 fi
4988 fi
4989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4990 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
4991 EGREP="$ac_cv_path_EGREP"
4992
4993
4994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4995 printf %s "checking for fgrep... " >&6; }
4996 if test ${ac_cv_path_FGREP+y}
4997 then :
4998 printf %s "(cached) " >&6
4999 else $as_nop
5000 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5001 then ac_cv_path_FGREP="$GREP -F"
5002 else
5003 if test -z "$FGREP"; then
5004 ac_path_FGREP_found=false
5005 # Loop through the user's path and test for each of PROGNAME-LIST
5006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5007 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5008 do
5009 IFS=$as_save_IFS
5010 case $as_dir in #(((
5011 '') as_dir=./ ;;
5012 */) ;;
5013 *) as_dir=$as_dir/ ;;
5014 esac
5015 for ac_prog in fgrep
5016 do
5017 for ac_exec_ext in '' $ac_executable_extensions; do
5018 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5019 as_fn_executable_p "$ac_path_FGREP" || continue
5020 # Check for GNU ac_path_FGREP and select it if it is found.
5021 # Check for GNU $ac_path_FGREP
5022 case `"$ac_path_FGREP" --version 2>&1` in
5023 *GNU*)
5024 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5025 *)
5026 ac_count=0
5027 printf %s 0123456789 >"conftest.in"
5028 while :
5029 do
5030 cat "conftest.in" "conftest.in" >"conftest.tmp"
5031 mv "conftest.tmp" "conftest.in"
5032 cp "conftest.in" "conftest.nl"
5033 printf "%s\n" 'FGREP' >> "conftest.nl"
5034 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5035 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5036 as_fn_arith $ac_count + 1 && ac_count=$as_val
5037 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5038 # Best one so far, save it but keep looking for a better one
5039 ac_cv_path_FGREP="$ac_path_FGREP"
5040 ac_path_FGREP_max=$ac_count
5041 fi
5042 # 10*(2^10) chars as input seems more than enough
5043 test $ac_count -gt 10 && break
5044 done
5045 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5046 esac
5047
5048 $ac_path_FGREP_found && break 3
5049 done
5050 done
5051 done
5052 IFS=$as_save_IFS
5053 if test -z "$ac_cv_path_FGREP"; then
5054 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5055 fi
5056 else
5057 ac_cv_path_FGREP=$FGREP
5058 fi
5059
5060 fi
5061 fi
5062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5063 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5064 FGREP="$ac_cv_path_FGREP"
5065
5066
5067 test -z "$GREP" && GREP=grep
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087 # Check whether --with-gnu-ld was given.
5088 if test ${with_gnu_ld+y}
5089 then :
5090 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5091 else $as_nop
5092 with_gnu_ld=no
5093 fi
5094
5095 ac_prog=ld
5096 if test yes = "$GCC"; then
5097 # Check if gcc -print-prog-name=ld gives a path.
5098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5099 printf %s "checking for ld used by $CC... " >&6; }
5100 case $host in
5101 *-*-mingw*)
5102 # gcc leaves a trailing carriage return, which upsets mingw
5103 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5104 *)
5105 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5106 esac
5107 case $ac_prog in
5108 # Accept absolute paths.
5109 [\\/]* | ?:[\\/]*)
5110 re_direlt='/[^/][^/]*/\.\./'
5111 # Canonicalize the pathname of ld
5112 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5113 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5114 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5115 done
5116 test -z "$LD" && LD=$ac_prog
5117 ;;
5118 "")
5119 # If it fails, then pretend we aren't using GCC.
5120 ac_prog=ld
5121 ;;
5122 *)
5123 # If it is relative, then search for the first ld in PATH.
5124 with_gnu_ld=unknown
5125 ;;
5126 esac
5127 elif test yes = "$with_gnu_ld"; then
5128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5129 printf %s "checking for GNU ld... " >&6; }
5130 else
5131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5132 printf %s "checking for non-GNU ld... " >&6; }
5133 fi
5134 if test ${lt_cv_path_LD+y}
5135 then :
5136 printf %s "(cached) " >&6
5137 else $as_nop
5138 if test -z "$LD"; then
5139 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5140 for ac_dir in $PATH; do
5141 IFS=$lt_save_ifs
5142 test -z "$ac_dir" && ac_dir=.
5143 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5144 lt_cv_path_LD=$ac_dir/$ac_prog
5145 # Check to see if the program is GNU ld. I'd rather use --version,
5146 # but apparently some variants of GNU ld only accept -v.
5147 # Break only if it was the GNU/non-GNU ld that we prefer.
5148 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5149 *GNU* | *'with BFD'*)
5150 test no != "$with_gnu_ld" && break
5151 ;;
5152 *)
5153 test yes != "$with_gnu_ld" && break
5154 ;;
5155 esac
5156 fi
5157 done
5158 IFS=$lt_save_ifs
5159 else
5160 lt_cv_path_LD=$LD # Let the user override the test with a path.
5161 fi
5162 fi
5163
5164 LD=$lt_cv_path_LD
5165 if test -n "$LD"; then
5166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5167 printf "%s\n" "$LD" >&6; }
5168 else
5169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5170 printf "%s\n" "no" >&6; }
5171 fi
5172 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5174 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5175 if test ${lt_cv_prog_gnu_ld+y}
5176 then :
5177 printf %s "(cached) " >&6
5178 else $as_nop
5179 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5180 case `$LD -v 2>&1 </dev/null` in
5181 *GNU* | *'with BFD'*)
5182 lt_cv_prog_gnu_ld=yes
5183 ;;
5184 *)
5185 lt_cv_prog_gnu_ld=no
5186 ;;
5187 esac
5188 fi
5189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5190 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5191 with_gnu_ld=$lt_cv_prog_gnu_ld
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5202 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5203 if test ${lt_cv_path_NM+y}
5204 then :
5205 printf %s "(cached) " >&6
5206 else $as_nop
5207 if test -n "$NM"; then
5208 # Let the user override the test.
5209 lt_cv_path_NM=$NM
5210 else
5211 lt_nm_to_check=${ac_tool_prefix}nm
5212 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5213 lt_nm_to_check="$lt_nm_to_check nm"
5214 fi
5215 for lt_tmp_nm in $lt_nm_to_check; do
5216 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5217 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5218 IFS=$lt_save_ifs
5219 test -z "$ac_dir" && ac_dir=.
5220 tmp_nm=$ac_dir/$lt_tmp_nm
5221 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5222 # Check to see if the nm accepts a BSD-compat flag.
5223 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5224 # nm: unknown option "B" ignored
5225 # Tru64's nm complains that /dev/null is an invalid object file
5226 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5227 case $build_os in
5228 mingw*) lt_bad_file=conftest.nm/nofile ;;
5229 *) lt_bad_file=/dev/null ;;
5230 esac
5231 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5232 *$lt_bad_file* | *'Invalid file or object type'*)
5233 lt_cv_path_NM="$tmp_nm -B"
5234 break 2
5235 ;;
5236 *)
5237 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5238 */dev/null*)
5239 lt_cv_path_NM="$tmp_nm -p"
5240 break 2
5241 ;;
5242 *)
5243 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5244 continue # so that we can try to find one that supports BSD flags
5245 ;;
5246 esac
5247 ;;
5248 esac
5249 fi
5250 done
5251 IFS=$lt_save_ifs
5252 done
5253 : ${lt_cv_path_NM=no}
5254 fi
5255 fi
5256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5257 printf "%s\n" "$lt_cv_path_NM" >&6; }
5258 if test no != "$lt_cv_path_NM"; then
5259 NM=$lt_cv_path_NM
5260 else
5261 # Didn't find any BSD compatible name lister, look for dumpbin.
5262 if test -n "$DUMPBIN"; then :
5263 # Let the user override the test.
5264 else
5265 if test -n "$ac_tool_prefix"; then
5266 for ac_prog in dumpbin "link -dump"
5267 do
5268 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5269 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5271 printf %s "checking for $ac_word... " >&6; }
5272 if test ${ac_cv_prog_DUMPBIN+y}
5273 then :
5274 printf %s "(cached) " >&6
5275 else $as_nop
5276 if test -n "$DUMPBIN"; then
5277 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5278 else
5279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5280 for as_dir in $PATH
5281 do
5282 IFS=$as_save_IFS
5283 case $as_dir in #(((
5284 '') as_dir=./ ;;
5285 */) ;;
5286 *) as_dir=$as_dir/ ;;
5287 esac
5288 for ac_exec_ext in '' $ac_executable_extensions; do
5289 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5290 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5291 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5292 break 2
5293 fi
5294 done
5295 done
5296 IFS=$as_save_IFS
5297
5298 fi
5299 fi
5300 DUMPBIN=$ac_cv_prog_DUMPBIN
5301 if test -n "$DUMPBIN"; then
5302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5303 printf "%s\n" "$DUMPBIN" >&6; }
5304 else
5305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5306 printf "%s\n" "no" >&6; }
5307 fi
5308
5309
5310 test -n "$DUMPBIN" && break
5311 done
5312 fi
5313 if test -z "$DUMPBIN"; then
5314 ac_ct_DUMPBIN=$DUMPBIN
5315 for ac_prog in dumpbin "link -dump"
5316 do
5317 # Extract the first word of "$ac_prog", so it can be a program name with args.
5318 set dummy $ac_prog; ac_word=$2
5319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5320 printf %s "checking for $ac_word... " >&6; }
5321 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5322 then :
5323 printf %s "(cached) " >&6
5324 else $as_nop
5325 if test -n "$ac_ct_DUMPBIN"; then
5326 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5327 else
5328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5329 for as_dir in $PATH
5330 do
5331 IFS=$as_save_IFS
5332 case $as_dir in #(((
5333 '') as_dir=./ ;;
5334 */) ;;
5335 *) as_dir=$as_dir/ ;;
5336 esac
5337 for ac_exec_ext in '' $ac_executable_extensions; do
5338 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5339 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5340 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5341 break 2
5342 fi
5343 done
5344 done
5345 IFS=$as_save_IFS
5346
5347 fi
5348 fi
5349 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5350 if test -n "$ac_ct_DUMPBIN"; then
5351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5352 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5353 else
5354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5355 printf "%s\n" "no" >&6; }
5356 fi
5357
5358
5359 test -n "$ac_ct_DUMPBIN" && break
5360 done
5361
5362 if test "x$ac_ct_DUMPBIN" = x; then
5363 DUMPBIN=":"
5364 else
5365 case $cross_compiling:$ac_tool_warned in
5366 yes:)
5367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5368 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5369 ac_tool_warned=yes ;;
5370 esac
5371 DUMPBIN=$ac_ct_DUMPBIN
5372 fi
5373 fi
5374
5375 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5376 *COFF*)
5377 DUMPBIN="$DUMPBIN -symbols -headers"
5378 ;;
5379 *)
5380 DUMPBIN=:
5381 ;;
5382 esac
5383 fi
5384
5385 if test : != "$DUMPBIN"; then
5386 NM=$DUMPBIN
5387 fi
5388 fi
5389 test -z "$NM" && NM=nm
5390
5391
5392
5393
5394
5395
5396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5397 printf %s "checking the name lister ($NM) interface... " >&6; }
5398 if test ${lt_cv_nm_interface+y}
5399 then :
5400 printf %s "(cached) " >&6
5401 else $as_nop
5402 lt_cv_nm_interface="BSD nm"
5403 echo "int some_variable = 0;" > conftest.$ac_ext
5404 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5405 (eval "$ac_compile" 2>conftest.err)
5406 cat conftest.err >&5
5407 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5408 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5409 cat conftest.err >&5
5410 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5411 cat conftest.out >&5
5412 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5413 lt_cv_nm_interface="MS dumpbin"
5414 fi
5415 rm -f conftest*
5416 fi
5417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5418 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5419
5420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5421 printf %s "checking whether ln -s works... " >&6; }
5422 LN_S=$as_ln_s
5423 if test "$LN_S" = "ln -s"; then
5424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5425 printf "%s\n" "yes" >&6; }
5426 else
5427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5428 printf "%s\n" "no, using $LN_S" >&6; }
5429 fi
5430
5431 # find the maximum length of command line arguments
5432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5433 printf %s "checking the maximum length of command line arguments... " >&6; }
5434 if test ${lt_cv_sys_max_cmd_len+y}
5435 then :
5436 printf %s "(cached) " >&6
5437 else $as_nop
5438 i=0
5439 teststring=ABCD
5440
5441 case $build_os in
5442 msdosdjgpp*)
5443 # On DJGPP, this test can blow up pretty badly due to problems in libc
5444 # (any single argument exceeding 2000 bytes causes a buffer overrun
5445 # during glob expansion). Even if it were fixed, the result of this
5446 # check would be larger than it should be.
5447 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5448 ;;
5449
5450 gnu*)
5451 # Under GNU Hurd, this test is not required because there is
5452 # no limit to the length of command line arguments.
5453 # Libtool will interpret -1 as no limit whatsoever
5454 lt_cv_sys_max_cmd_len=-1;
5455 ;;
5456
5457 cygwin* | mingw* | cegcc*)
5458 # On Win9x/ME, this test blows up -- it succeeds, but takes
5459 # about 5 minutes as the teststring grows exponentially.
5460 # Worse, since 9x/ME are not pre-emptively multitasking,
5461 # you end up with a "frozen" computer, even though with patience
5462 # the test eventually succeeds (with a max line length of 256k).
5463 # Instead, let's just punt: use the minimum linelength reported by
5464 # all of the supported platforms: 8192 (on NT/2K/XP).
5465 lt_cv_sys_max_cmd_len=8192;
5466 ;;
5467
5468 mint*)
5469 # On MiNT this can take a long time and run out of memory.
5470 lt_cv_sys_max_cmd_len=8192;
5471 ;;
5472
5473 amigaos*)
5474 # On AmigaOS with pdksh, this test takes hours, literally.
5475 # So we just punt and use a minimum line length of 8192.
5476 lt_cv_sys_max_cmd_len=8192;
5477 ;;
5478
5479 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5480 # This has been around since 386BSD, at least. Likely further.
5481 if test -x /sbin/sysctl; then
5482 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5483 elif test -x /usr/sbin/sysctl; then
5484 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5485 else
5486 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5487 fi
5488 # And add a safety zone
5489 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5490 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5491 ;;
5492
5493 interix*)
5494 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5495 lt_cv_sys_max_cmd_len=196608
5496 ;;
5497
5498 os2*)
5499 # The test takes a long time on OS/2.
5500 lt_cv_sys_max_cmd_len=8192
5501 ;;
5502
5503 osf*)
5504 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5505 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5506 # nice to cause kernel panics so lets avoid the loop below.
5507 # First set a reasonable default.
5508 lt_cv_sys_max_cmd_len=16384
5509 #
5510 if test -x /sbin/sysconfig; then
5511 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5512 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5513 esac
5514 fi
5515 ;;
5516 sco3.2v5*)
5517 lt_cv_sys_max_cmd_len=102400
5518 ;;
5519 sysv5* | sco5v6* | sysv4.2uw2*)
5520 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5521 if test -n "$kargmax"; then
5522 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5523 else
5524 lt_cv_sys_max_cmd_len=32768
5525 fi
5526 ;;
5527 *)
5528 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5529 if test -n "$lt_cv_sys_max_cmd_len" && \
5530 test undefined != "$lt_cv_sys_max_cmd_len"; then
5531 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5532 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5533 else
5534 # Make teststring a little bigger before we do anything with it.
5535 # a 1K string should be a reasonable start.
5536 for i in 1 2 3 4 5 6 7 8; do
5537 teststring=$teststring$teststring
5538 done
5539 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5540 # If test is not a shell built-in, we'll probably end up computing a
5541 # maximum length that is only half of the actual maximum length, but
5542 # we can't tell.
5543 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5544 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5545 test 17 != "$i" # 1/2 MB should be enough
5546 do
5547 i=`expr $i + 1`
5548 teststring=$teststring$teststring
5549 done
5550 # Only check the string length outside the loop.
5551 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5552 teststring=
5553 # Add a significant safety factor because C++ compilers can tack on
5554 # massive amounts of additional arguments before passing them to the
5555 # linker. It appears as though 1/2 is a usable value.
5556 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5557 fi
5558 ;;
5559 esac
5560
5561 fi
5562
5563 if test -n "$lt_cv_sys_max_cmd_len"; then
5564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5565 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5566 else
5567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5568 printf "%s\n" "none" >&6; }
5569 fi
5570 max_cmd_len=$lt_cv_sys_max_cmd_len
5571
5572
5573
5574
5575
5576
5577 : ${CP="cp -f"}
5578 : ${MV="mv -f"}
5579 : ${RM="rm -f"}
5580
5581 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5582 lt_unset=unset
5583 else
5584 lt_unset=false
5585 fi
5586
5587
5588
5589
5590
5591 # test EBCDIC or ASCII
5592 case `echo X|tr X '\101'` in
5593 A) # ASCII based system
5594 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5595 lt_SP2NL='tr \040 \012'
5596 lt_NL2SP='tr \015\012 \040\040'
5597 ;;
5598 *) # EBCDIC based system
5599 lt_SP2NL='tr \100 \n'
5600 lt_NL2SP='tr \r\n \100\100'
5601 ;;
5602 esac
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5613 printf %s "checking how to convert $build file names to $host format... " >&6; }
5614 if test ${lt_cv_to_host_file_cmd+y}
5615 then :
5616 printf %s "(cached) " >&6
5617 else $as_nop
5618 case $host in
5619 *-*-mingw* )
5620 case $build in
5621 *-*-mingw* ) # actually msys
5622 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5623 ;;
5624 *-*-cygwin* )
5625 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5626 ;;
5627 * ) # otherwise, assume *nix
5628 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5629 ;;
5630 esac
5631 ;;
5632 *-*-cygwin* )
5633 case $build in
5634 *-*-mingw* ) # actually msys
5635 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5636 ;;
5637 *-*-cygwin* )
5638 lt_cv_to_host_file_cmd=func_convert_file_noop
5639 ;;
5640 * ) # otherwise, assume *nix
5641 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5642 ;;
5643 esac
5644 ;;
5645 * ) # unhandled hosts (and "normal" native builds)
5646 lt_cv_to_host_file_cmd=func_convert_file_noop
5647 ;;
5648 esac
5649
5650 fi
5651
5652 to_host_file_cmd=$lt_cv_to_host_file_cmd
5653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5654 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5655
5656
5657
5658
5659
5660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5661 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5662 if test ${lt_cv_to_tool_file_cmd+y}
5663 then :
5664 printf %s "(cached) " >&6
5665 else $as_nop
5666 #assume ordinary cross tools, or native build.
5667 lt_cv_to_tool_file_cmd=func_convert_file_noop
5668 case $host in
5669 *-*-mingw* )
5670 case $build in
5671 *-*-mingw* ) # actually msys
5672 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5673 ;;
5674 esac
5675 ;;
5676 esac
5677
5678 fi
5679
5680 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5682 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5683
5684
5685
5686
5687
5688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5689 printf %s "checking for $LD option to reload object files... " >&6; }
5690 if test ${lt_cv_ld_reload_flag+y}
5691 then :
5692 printf %s "(cached) " >&6
5693 else $as_nop
5694 lt_cv_ld_reload_flag='-r'
5695 fi
5696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5697 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5698 reload_flag=$lt_cv_ld_reload_flag
5699 case $reload_flag in
5700 "" | " "*) ;;
5701 *) reload_flag=" $reload_flag" ;;
5702 esac
5703 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5704 case $host_os in
5705 cygwin* | mingw* | pw32* | cegcc*)
5706 if test yes != "$GCC"; then
5707 reload_cmds=false
5708 fi
5709 ;;
5710 darwin*)
5711 if test yes = "$GCC"; then
5712 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5713 else
5714 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5715 fi
5716 ;;
5717 esac
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727 if test -n "$ac_tool_prefix"; then
5728 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
5729 set dummy ${ac_tool_prefix}file; ac_word=$2
5730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5731 printf %s "checking for $ac_word... " >&6; }
5732 if test ${ac_cv_prog_FILECMD+y}
5733 then :
5734 printf %s "(cached) " >&6
5735 else $as_nop
5736 if test -n "$FILECMD"; then
5737 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5738 else
5739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5740 for as_dir in $PATH
5741 do
5742 IFS=$as_save_IFS
5743 case $as_dir in #(((
5744 '') as_dir=./ ;;
5745 */) ;;
5746 *) as_dir=$as_dir/ ;;
5747 esac
5748 for ac_exec_ext in '' $ac_executable_extensions; do
5749 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5750 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
5751 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5752 break 2
5753 fi
5754 done
5755 done
5756 IFS=$as_save_IFS
5757
5758 fi
5759 fi
5760 FILECMD=$ac_cv_prog_FILECMD
5761 if test -n "$FILECMD"; then
5762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5763 printf "%s\n" "$FILECMD" >&6; }
5764 else
5765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5766 printf "%s\n" "no" >&6; }
5767 fi
5768
5769
5770 fi
5771 if test -z "$ac_cv_prog_FILECMD"; then
5772 ac_ct_FILECMD=$FILECMD
5773 # Extract the first word of "file", so it can be a program name with args.
5774 set dummy file; ac_word=$2
5775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5776 printf %s "checking for $ac_word... " >&6; }
5777 if test ${ac_cv_prog_ac_ct_FILECMD+y}
5778 then :
5779 printf %s "(cached) " >&6
5780 else $as_nop
5781 if test -n "$ac_ct_FILECMD"; then
5782 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
5783 else
5784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5785 for as_dir in $PATH
5786 do
5787 IFS=$as_save_IFS
5788 case $as_dir in #(((
5789 '') as_dir=./ ;;
5790 */) ;;
5791 *) as_dir=$as_dir/ ;;
5792 esac
5793 for ac_exec_ext in '' $ac_executable_extensions; do
5794 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5795 ac_cv_prog_ac_ct_FILECMD="file"
5796 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5797 break 2
5798 fi
5799 done
5800 done
5801 IFS=$as_save_IFS
5802
5803 fi
5804 fi
5805 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
5806 if test -n "$ac_ct_FILECMD"; then
5807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
5808 printf "%s\n" "$ac_ct_FILECMD" >&6; }
5809 else
5810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5811 printf "%s\n" "no" >&6; }
5812 fi
5813
5814 if test "x$ac_ct_FILECMD" = x; then
5815 FILECMD=":"
5816 else
5817 case $cross_compiling:$ac_tool_warned in
5818 yes:)
5819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5820 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5821 ac_tool_warned=yes ;;
5822 esac
5823 FILECMD=$ac_ct_FILECMD
5824 fi
5825 else
5826 FILECMD="$ac_cv_prog_FILECMD"
5827 fi
5828
5829
5830
5831
5832
5833
5834
5835 if test -n "$ac_tool_prefix"; then
5836 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5837 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5839 printf %s "checking for $ac_word... " >&6; }
5840 if test ${ac_cv_prog_OBJDUMP+y}
5841 then :
5842 printf %s "(cached) " >&6
5843 else $as_nop
5844 if test -n "$OBJDUMP"; then
5845 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5846 else
5847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5848 for as_dir in $PATH
5849 do
5850 IFS=$as_save_IFS
5851 case $as_dir in #(((
5852 '') as_dir=./ ;;
5853 */) ;;
5854 *) as_dir=$as_dir/ ;;
5855 esac
5856 for ac_exec_ext in '' $ac_executable_extensions; do
5857 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5858 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5859 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5860 break 2
5861 fi
5862 done
5863 done
5864 IFS=$as_save_IFS
5865
5866 fi
5867 fi
5868 OBJDUMP=$ac_cv_prog_OBJDUMP
5869 if test -n "$OBJDUMP"; then
5870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5871 printf "%s\n" "$OBJDUMP" >&6; }
5872 else
5873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5874 printf "%s\n" "no" >&6; }
5875 fi
5876
5877
5878 fi
5879 if test -z "$ac_cv_prog_OBJDUMP"; then
5880 ac_ct_OBJDUMP=$OBJDUMP
5881 # Extract the first word of "objdump", so it can be a program name with args.
5882 set dummy objdump; ac_word=$2
5883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5884 printf %s "checking for $ac_word... " >&6; }
5885 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5886 then :
5887 printf %s "(cached) " >&6
5888 else $as_nop
5889 if test -n "$ac_ct_OBJDUMP"; then
5890 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5891 else
5892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5893 for as_dir in $PATH
5894 do
5895 IFS=$as_save_IFS
5896 case $as_dir in #(((
5897 '') as_dir=./ ;;
5898 */) ;;
5899 *) as_dir=$as_dir/ ;;
5900 esac
5901 for ac_exec_ext in '' $ac_executable_extensions; do
5902 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5903 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5904 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5905 break 2
5906 fi
5907 done
5908 done
5909 IFS=$as_save_IFS
5910
5911 fi
5912 fi
5913 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5914 if test -n "$ac_ct_OBJDUMP"; then
5915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5916 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
5917 else
5918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5919 printf "%s\n" "no" >&6; }
5920 fi
5921
5922 if test "x$ac_ct_OBJDUMP" = x; then
5923 OBJDUMP="false"
5924 else
5925 case $cross_compiling:$ac_tool_warned in
5926 yes:)
5927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5928 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5929 ac_tool_warned=yes ;;
5930 esac
5931 OBJDUMP=$ac_ct_OBJDUMP
5932 fi
5933 else
5934 OBJDUMP="$ac_cv_prog_OBJDUMP"
5935 fi
5936
5937 test -z "$OBJDUMP" && OBJDUMP=objdump
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5948 printf %s "checking how to recognize dependent libraries... " >&6; }
5949 if test ${lt_cv_deplibs_check_method+y}
5950 then :
5951 printf %s "(cached) " >&6
5952 else $as_nop
5953 lt_cv_file_magic_cmd='$MAGIC_CMD'
5954 lt_cv_file_magic_test_file=
5955 lt_cv_deplibs_check_method='unknown'
5956 # Need to set the preceding variable on all platforms that support
5957 # interlibrary dependencies.
5958 # 'none' -- dependencies not supported.
5959 # 'unknown' -- same as none, but documents that we really don't know.
5960 # 'pass_all' -- all dependencies passed with no checks.
5961 # 'test_compile' -- check by making test program.
5962 # 'file_magic [[regex]]' -- check by looking for files in library path
5963 # that responds to the $file_magic_cmd with a given extended regex.
5964 # If you have 'file' or equivalent on your system and you're not sure
5965 # whether 'pass_all' will *always* work, you probably want this one.
5966
5967 case $host_os in
5968 aix[4-9]*)
5969 lt_cv_deplibs_check_method=pass_all
5970 ;;
5971
5972 beos*)
5973 lt_cv_deplibs_check_method=pass_all
5974 ;;
5975
5976 bsdi[45]*)
5977 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5978 lt_cv_file_magic_cmd='$FILECMD -L'
5979 lt_cv_file_magic_test_file=/shlib/libc.so
5980 ;;
5981
5982 cygwin*)
5983 # func_win32_libid is a shell function defined in ltmain.sh
5984 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5985 lt_cv_file_magic_cmd='func_win32_libid'
5986 ;;
5987
5988 mingw* | pw32*)
5989 # Base MSYS/MinGW do not provide the 'file' command needed by
5990 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5991 # unless we find 'file', for example because we are cross-compiling.
5992 if ( file / ) >/dev/null 2>&1; then
5993 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5994 lt_cv_file_magic_cmd='func_win32_libid'
5995 else
5996 # Keep this pattern in sync with the one in func_win32_libid.
5997 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5998 lt_cv_file_magic_cmd='$OBJDUMP -f'
5999 fi
6000 ;;
6001
6002 cegcc*)
6003 # use the weaker test based on 'objdump'. See mingw*.
6004 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6005 lt_cv_file_magic_cmd='$OBJDUMP -f'
6006 ;;
6007
6008 darwin* | rhapsody*)
6009 lt_cv_deplibs_check_method=pass_all
6010 ;;
6011
6012 freebsd* | dragonfly* | midnightbsd*)
6013 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6014 case $host_cpu in
6015 i*86 )
6016 # Not sure whether the presence of OpenBSD here was a mistake.
6017 # Let's accept both of them until this is cleared up.
6018 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6019 lt_cv_file_magic_cmd=$FILECMD
6020 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6021 ;;
6022 esac
6023 else
6024 lt_cv_deplibs_check_method=pass_all
6025 fi
6026 ;;
6027
6028 haiku*)
6029 lt_cv_deplibs_check_method=pass_all
6030 ;;
6031
6032 hpux10.20* | hpux11*)
6033 lt_cv_file_magic_cmd=$FILECMD
6034 case $host_cpu in
6035 ia64*)
6036 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6037 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6038 ;;
6039 hppa*64*)
6040 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]'
6041 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6042 ;;
6043 *)
6044 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6045 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6046 ;;
6047 esac
6048 ;;
6049
6050 interix[3-9]*)
6051 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6052 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6053 ;;
6054
6055 irix5* | irix6* | nonstopux*)
6056 case $LD in
6057 *-32|*"-32 ") libmagic=32-bit;;
6058 *-n32|*"-n32 ") libmagic=N32;;
6059 *-64|*"-64 ") libmagic=64-bit;;
6060 *) libmagic=never-match;;
6061 esac
6062 lt_cv_deplibs_check_method=pass_all
6063 ;;
6064
6065 # This must be glibc/ELF.
6066 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6067 lt_cv_deplibs_check_method=pass_all
6068 ;;
6069
6070 netbsd* | netbsdelf*-gnu)
6071 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6072 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6073 else
6074 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6075 fi
6076 ;;
6077
6078 newos6*)
6079 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6080 lt_cv_file_magic_cmd=$FILECMD
6081 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6082 ;;
6083
6084 *nto* | *qnx*)
6085 lt_cv_deplibs_check_method=pass_all
6086 ;;
6087
6088 openbsd* | bitrig*)
6089 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6090 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6091 else
6092 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6093 fi
6094 ;;
6095
6096 osf3* | osf4* | osf5*)
6097 lt_cv_deplibs_check_method=pass_all
6098 ;;
6099
6100 rdos*)
6101 lt_cv_deplibs_check_method=pass_all
6102 ;;
6103
6104 solaris*)
6105 lt_cv_deplibs_check_method=pass_all
6106 ;;
6107
6108 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6109 lt_cv_deplibs_check_method=pass_all
6110 ;;
6111
6112 sysv4 | sysv4.3*)
6113 case $host_vendor in
6114 motorola)
6115 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]'
6116 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6117 ;;
6118 ncr)
6119 lt_cv_deplibs_check_method=pass_all
6120 ;;
6121 sequent)
6122 lt_cv_file_magic_cmd='/bin/file'
6123 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6124 ;;
6125 sni)
6126 lt_cv_file_magic_cmd='/bin/file'
6127 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6128 lt_cv_file_magic_test_file=/lib/libc.so
6129 ;;
6130 siemens)
6131 lt_cv_deplibs_check_method=pass_all
6132 ;;
6133 pc)
6134 lt_cv_deplibs_check_method=pass_all
6135 ;;
6136 esac
6137 ;;
6138
6139 tpf*)
6140 lt_cv_deplibs_check_method=pass_all
6141 ;;
6142 os2*)
6143 lt_cv_deplibs_check_method=pass_all
6144 ;;
6145 esac
6146
6147 fi
6148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6149 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6150
6151 file_magic_glob=
6152 want_nocaseglob=no
6153 if test "$build" = "$host"; then
6154 case $host_os in
6155 mingw* | pw32*)
6156 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6157 want_nocaseglob=yes
6158 else
6159 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6160 fi
6161 ;;
6162 esac
6163 fi
6164
6165 file_magic_cmd=$lt_cv_file_magic_cmd
6166 deplibs_check_method=$lt_cv_deplibs_check_method
6167 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190 if test -n "$ac_tool_prefix"; then
6191 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6192 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6194 printf %s "checking for $ac_word... " >&6; }
6195 if test ${ac_cv_prog_DLLTOOL+y}
6196 then :
6197 printf %s "(cached) " >&6
6198 else $as_nop
6199 if test -n "$DLLTOOL"; then
6200 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6201 else
6202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6203 for as_dir in $PATH
6204 do
6205 IFS=$as_save_IFS
6206 case $as_dir in #(((
6207 '') as_dir=./ ;;
6208 */) ;;
6209 *) as_dir=$as_dir/ ;;
6210 esac
6211 for ac_exec_ext in '' $ac_executable_extensions; do
6212 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6213 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6214 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6215 break 2
6216 fi
6217 done
6218 done
6219 IFS=$as_save_IFS
6220
6221 fi
6222 fi
6223 DLLTOOL=$ac_cv_prog_DLLTOOL
6224 if test -n "$DLLTOOL"; then
6225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6226 printf "%s\n" "$DLLTOOL" >&6; }
6227 else
6228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6229 printf "%s\n" "no" >&6; }
6230 fi
6231
6232
6233 fi
6234 if test -z "$ac_cv_prog_DLLTOOL"; then
6235 ac_ct_DLLTOOL=$DLLTOOL
6236 # Extract the first word of "dlltool", so it can be a program name with args.
6237 set dummy dlltool; ac_word=$2
6238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6239 printf %s "checking for $ac_word... " >&6; }
6240 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6241 then :
6242 printf %s "(cached) " >&6
6243 else $as_nop
6244 if test -n "$ac_ct_DLLTOOL"; then
6245 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6246 else
6247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6248 for as_dir in $PATH
6249 do
6250 IFS=$as_save_IFS
6251 case $as_dir in #(((
6252 '') as_dir=./ ;;
6253 */) ;;
6254 *) as_dir=$as_dir/ ;;
6255 esac
6256 for ac_exec_ext in '' $ac_executable_extensions; do
6257 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6258 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6259 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6260 break 2
6261 fi
6262 done
6263 done
6264 IFS=$as_save_IFS
6265
6266 fi
6267 fi
6268 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6269 if test -n "$ac_ct_DLLTOOL"; then
6270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6271 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6272 else
6273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6274 printf "%s\n" "no" >&6; }
6275 fi
6276
6277 if test "x$ac_ct_DLLTOOL" = x; then
6278 DLLTOOL="false"
6279 else
6280 case $cross_compiling:$ac_tool_warned in
6281 yes:)
6282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6283 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6284 ac_tool_warned=yes ;;
6285 esac
6286 DLLTOOL=$ac_ct_DLLTOOL
6287 fi
6288 else
6289 DLLTOOL="$ac_cv_prog_DLLTOOL"
6290 fi
6291
6292 test -z "$DLLTOOL" && DLLTOOL=dlltool
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6304 printf %s "checking how to associate runtime and link libraries... " >&6; }
6305 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6306 then :
6307 printf %s "(cached) " >&6
6308 else $as_nop
6309 lt_cv_sharedlib_from_linklib_cmd='unknown'
6310
6311 case $host_os in
6312 cygwin* | mingw* | pw32* | cegcc*)
6313 # two different shell functions defined in ltmain.sh;
6314 # decide which one to use based on capabilities of $DLLTOOL
6315 case `$DLLTOOL --help 2>&1` in
6316 *--identify-strict*)
6317 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6318 ;;
6319 *)
6320 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6321 ;;
6322 esac
6323 ;;
6324 *)
6325 # fallback: assume linklib IS sharedlib
6326 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6327 ;;
6328 esac
6329
6330 fi
6331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6332 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6333 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6334 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6335
6336
6337
6338
6339
6340
6341
6342
6343 if test -n "$ac_tool_prefix"; then
6344 for ac_prog in ar
6345 do
6346 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6347 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6349 printf %s "checking for $ac_word... " >&6; }
6350 if test ${ac_cv_prog_AR+y}
6351 then :
6352 printf %s "(cached) " >&6
6353 else $as_nop
6354 if test -n "$AR"; then
6355 ac_cv_prog_AR="$AR" # Let the user override the test.
6356 else
6357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6358 for as_dir in $PATH
6359 do
6360 IFS=$as_save_IFS
6361 case $as_dir in #(((
6362 '') as_dir=./ ;;
6363 */) ;;
6364 *) as_dir=$as_dir/ ;;
6365 esac
6366 for ac_exec_ext in '' $ac_executable_extensions; do
6367 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6368 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6369 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6370 break 2
6371 fi
6372 done
6373 done
6374 IFS=$as_save_IFS
6375
6376 fi
6377 fi
6378 AR=$ac_cv_prog_AR
6379 if test -n "$AR"; then
6380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6381 printf "%s\n" "$AR" >&6; }
6382 else
6383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6384 printf "%s\n" "no" >&6; }
6385 fi
6386
6387
6388 test -n "$AR" && break
6389 done
6390 fi
6391 if test -z "$AR"; then
6392 ac_ct_AR=$AR
6393 for ac_prog in ar
6394 do
6395 # Extract the first word of "$ac_prog", so it can be a program name with args.
6396 set dummy $ac_prog; ac_word=$2
6397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6398 printf %s "checking for $ac_word... " >&6; }
6399 if test ${ac_cv_prog_ac_ct_AR+y}
6400 then :
6401 printf %s "(cached) " >&6
6402 else $as_nop
6403 if test -n "$ac_ct_AR"; then
6404 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6405 else
6406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6407 for as_dir in $PATH
6408 do
6409 IFS=$as_save_IFS
6410 case $as_dir in #(((
6411 '') as_dir=./ ;;
6412 */) ;;
6413 *) as_dir=$as_dir/ ;;
6414 esac
6415 for ac_exec_ext in '' $ac_executable_extensions; do
6416 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6417 ac_cv_prog_ac_ct_AR="$ac_prog"
6418 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6419 break 2
6420 fi
6421 done
6422 done
6423 IFS=$as_save_IFS
6424
6425 fi
6426 fi
6427 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6428 if test -n "$ac_ct_AR"; then
6429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6430 printf "%s\n" "$ac_ct_AR" >&6; }
6431 else
6432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6433 printf "%s\n" "no" >&6; }
6434 fi
6435
6436
6437 test -n "$ac_ct_AR" && break
6438 done
6439
6440 if test "x$ac_ct_AR" = x; then
6441 AR="false"
6442 else
6443 case $cross_compiling:$ac_tool_warned in
6444 yes:)
6445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6446 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6447 ac_tool_warned=yes ;;
6448 esac
6449 AR=$ac_ct_AR
6450 fi
6451 fi
6452
6453 : ${AR=ar}
6454
6455
6456
6457
6458
6459
6460 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6461 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6462 # higher priority because thats what people were doing historically (setting
6463 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6464 # variable obsoleted/removed.
6465
6466 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6467 lt_ar_flags=$AR_FLAGS
6468
6469
6470
6471
6472
6473
6474 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6475 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6476
6477
6478
6479
6480
6481
6482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6483 printf %s "checking for archiver @FILE support... " >&6; }
6484 if test ${lt_cv_ar_at_file+y}
6485 then :
6486 printf %s "(cached) " >&6
6487 else $as_nop
6488 lt_cv_ar_at_file=no
6489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6490 /* end confdefs.h. */
6491
6492 int
6493 main (void)
6494 {
6495
6496 ;
6497 return 0;
6498 }
6499 _ACEOF
6500 if ac_fn_c_try_compile "$LINENO"
6501 then :
6502 echo conftest.$ac_objext > conftest.lst
6503 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6504 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6505 (eval $lt_ar_try) 2>&5
6506 ac_status=$?
6507 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6508 test $ac_status = 0; }
6509 if test 0 -eq "$ac_status"; then
6510 # Ensure the archiver fails upon bogus file names.
6511 rm -f conftest.$ac_objext libconftest.a
6512 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6513 (eval $lt_ar_try) 2>&5
6514 ac_status=$?
6515 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6516 test $ac_status = 0; }
6517 if test 0 -ne "$ac_status"; then
6518 lt_cv_ar_at_file=@
6519 fi
6520 fi
6521 rm -f conftest.* libconftest.a
6522
6523 fi
6524 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6525
6526 fi
6527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6528 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6529
6530 if test no = "$lt_cv_ar_at_file"; then
6531 archiver_list_spec=
6532 else
6533 archiver_list_spec=$lt_cv_ar_at_file
6534 fi
6535
6536
6537
6538
6539
6540
6541
6542 if test -n "$ac_tool_prefix"; then
6543 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6544 set dummy ${ac_tool_prefix}strip; ac_word=$2
6545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6546 printf %s "checking for $ac_word... " >&6; }
6547 if test ${ac_cv_prog_STRIP+y}
6548 then :
6549 printf %s "(cached) " >&6
6550 else $as_nop
6551 if test -n "$STRIP"; then
6552 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6553 else
6554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6555 for as_dir in $PATH
6556 do
6557 IFS=$as_save_IFS
6558 case $as_dir in #(((
6559 '') as_dir=./ ;;
6560 */) ;;
6561 *) as_dir=$as_dir/ ;;
6562 esac
6563 for ac_exec_ext in '' $ac_executable_extensions; do
6564 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6565 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6566 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6567 break 2
6568 fi
6569 done
6570 done
6571 IFS=$as_save_IFS
6572
6573 fi
6574 fi
6575 STRIP=$ac_cv_prog_STRIP
6576 if test -n "$STRIP"; then
6577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6578 printf "%s\n" "$STRIP" >&6; }
6579 else
6580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6581 printf "%s\n" "no" >&6; }
6582 fi
6583
6584
6585 fi
6586 if test -z "$ac_cv_prog_STRIP"; then
6587 ac_ct_STRIP=$STRIP
6588 # Extract the first word of "strip", so it can be a program name with args.
6589 set dummy strip; ac_word=$2
6590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6591 printf %s "checking for $ac_word... " >&6; }
6592 if test ${ac_cv_prog_ac_ct_STRIP+y}
6593 then :
6594 printf %s "(cached) " >&6
6595 else $as_nop
6596 if test -n "$ac_ct_STRIP"; then
6597 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6598 else
6599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6600 for as_dir in $PATH
6601 do
6602 IFS=$as_save_IFS
6603 case $as_dir in #(((
6604 '') as_dir=./ ;;
6605 */) ;;
6606 *) as_dir=$as_dir/ ;;
6607 esac
6608 for ac_exec_ext in '' $ac_executable_extensions; do
6609 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6610 ac_cv_prog_ac_ct_STRIP="strip"
6611 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6612 break 2
6613 fi
6614 done
6615 done
6616 IFS=$as_save_IFS
6617
6618 fi
6619 fi
6620 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6621 if test -n "$ac_ct_STRIP"; then
6622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6623 printf "%s\n" "$ac_ct_STRIP" >&6; }
6624 else
6625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6626 printf "%s\n" "no" >&6; }
6627 fi
6628
6629 if test "x$ac_ct_STRIP" = x; then
6630 STRIP=":"
6631 else
6632 case $cross_compiling:$ac_tool_warned in
6633 yes:)
6634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6635 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6636 ac_tool_warned=yes ;;
6637 esac
6638 STRIP=$ac_ct_STRIP
6639 fi
6640 else
6641 STRIP="$ac_cv_prog_STRIP"
6642 fi
6643
6644 test -z "$STRIP" && STRIP=:
6645
6646
6647
6648
6649
6650
6651 if test -n "$ac_tool_prefix"; then
6652 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6653 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6655 printf %s "checking for $ac_word... " >&6; }
6656 if test ${ac_cv_prog_RANLIB+y}
6657 then :
6658 printf %s "(cached) " >&6
6659 else $as_nop
6660 if test -n "$RANLIB"; then
6661 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6662 else
6663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6664 for as_dir in $PATH
6665 do
6666 IFS=$as_save_IFS
6667 case $as_dir in #(((
6668 '') as_dir=./ ;;
6669 */) ;;
6670 *) as_dir=$as_dir/ ;;
6671 esac
6672 for ac_exec_ext in '' $ac_executable_extensions; do
6673 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6674 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6675 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6676 break 2
6677 fi
6678 done
6679 done
6680 IFS=$as_save_IFS
6681
6682 fi
6683 fi
6684 RANLIB=$ac_cv_prog_RANLIB
6685 if test -n "$RANLIB"; then
6686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6687 printf "%s\n" "$RANLIB" >&6; }
6688 else
6689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6690 printf "%s\n" "no" >&6; }
6691 fi
6692
6693
6694 fi
6695 if test -z "$ac_cv_prog_RANLIB"; then
6696 ac_ct_RANLIB=$RANLIB
6697 # Extract the first word of "ranlib", so it can be a program name with args.
6698 set dummy ranlib; ac_word=$2
6699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6700 printf %s "checking for $ac_word... " >&6; }
6701 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6702 then :
6703 printf %s "(cached) " >&6
6704 else $as_nop
6705 if test -n "$ac_ct_RANLIB"; then
6706 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6707 else
6708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6709 for as_dir in $PATH
6710 do
6711 IFS=$as_save_IFS
6712 case $as_dir in #(((
6713 '') as_dir=./ ;;
6714 */) ;;
6715 *) as_dir=$as_dir/ ;;
6716 esac
6717 for ac_exec_ext in '' $ac_executable_extensions; do
6718 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6719 ac_cv_prog_ac_ct_RANLIB="ranlib"
6720 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6721 break 2
6722 fi
6723 done
6724 done
6725 IFS=$as_save_IFS
6726
6727 fi
6728 fi
6729 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6730 if test -n "$ac_ct_RANLIB"; then
6731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6732 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6733 else
6734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6735 printf "%s\n" "no" >&6; }
6736 fi
6737
6738 if test "x$ac_ct_RANLIB" = x; then
6739 RANLIB=":"
6740 else
6741 case $cross_compiling:$ac_tool_warned in
6742 yes:)
6743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6744 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6745 ac_tool_warned=yes ;;
6746 esac
6747 RANLIB=$ac_ct_RANLIB
6748 fi
6749 else
6750 RANLIB="$ac_cv_prog_RANLIB"
6751 fi
6752
6753 test -z "$RANLIB" && RANLIB=:
6754
6755
6756
6757
6758
6759
6760 # Determine commands to create old-style static archives.
6761 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6762 old_postinstall_cmds='chmod 644 $oldlib'
6763 old_postuninstall_cmds=
6764
6765 if test -n "$RANLIB"; then
6766 case $host_os in
6767 bitrig* | openbsd*)
6768 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6769 ;;
6770 *)
6771 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6772 ;;
6773 esac
6774 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6775 fi
6776
6777 case $host_os in
6778 darwin*)
6779 lock_old_archive_extraction=yes ;;
6780 *)
6781 lock_old_archive_extraction=no ;;
6782 esac
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822 # If no C compiler was specified, use CC.
6823 LTCC=${LTCC-"$CC"}
6824
6825 # If no C compiler flags were specified, use CFLAGS.
6826 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6827
6828 # Allow CC to be a program name with arguments.
6829 compiler=$CC
6830
6831
6832 # Check for command to grab the raw symbol name followed by C symbol from nm.
6833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6834 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6835 if test ${lt_cv_sys_global_symbol_pipe+y}
6836 then :
6837 printf %s "(cached) " >&6
6838 else $as_nop
6839
6840 # These are sane defaults that work on at least a few old systems.
6841 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6842
6843 # Character class describing NM global symbol codes.
6844 symcode='[BCDEGRST]'
6845
6846 # Regexp to match symbols that can be accessed directly from C.
6847 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6848
6849 # Define system-specific variables.
6850 case $host_os in
6851 aix*)
6852 symcode='[BCDT]'
6853 ;;
6854 cygwin* | mingw* | pw32* | cegcc*)
6855 symcode='[ABCDGISTW]'
6856 ;;
6857 hpux*)
6858 if test ia64 = "$host_cpu"; then
6859 symcode='[ABCDEGRST]'
6860 fi
6861 ;;
6862 irix* | nonstopux*)
6863 symcode='[BCDEGRST]'
6864 ;;
6865 osf*)
6866 symcode='[BCDEGQRST]'
6867 ;;
6868 solaris*)
6869 symcode='[BDRT]'
6870 ;;
6871 sco3.2v5*)
6872 symcode='[DT]'
6873 ;;
6874 sysv4.2uw2*)
6875 symcode='[DT]'
6876 ;;
6877 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6878 symcode='[ABDT]'
6879 ;;
6880 sysv4)
6881 symcode='[DFNSTU]'
6882 ;;
6883 esac
6884
6885 # If we're using GNU nm, then use its standard symbol codes.
6886 case `$NM -V 2>&1` in
6887 *GNU* | *'with BFD'*)
6888 symcode='[ABCDGIRSTW]' ;;
6889 esac
6890
6891 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6892 # Gets list of data symbols to import.
6893 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
6894 # Adjust the below global symbol transforms to fixup imported variables.
6895 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6896 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6897 lt_c_name_lib_hook="\
6898 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6899 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6900 else
6901 # Disable hooks by default.
6902 lt_cv_sys_global_symbol_to_import=
6903 lt_cdecl_hook=
6904 lt_c_name_hook=
6905 lt_c_name_lib_hook=
6906 fi
6907
6908 # Transform an extracted symbol line into a proper C declaration.
6909 # Some systems (esp. on ia64) link data and code symbols differently,
6910 # so use this general approach.
6911 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
6912 $lt_cdecl_hook\
6913 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6914 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6915
6916 # Transform an extracted symbol line into symbol name and symbol address
6917 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
6918 $lt_c_name_hook\
6919 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6920 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6921
6922 # Transform an extracted symbol line into symbol name with lib prefix and
6923 # symbol address.
6924 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
6925 $lt_c_name_lib_hook\
6926 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6927 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6928 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6929
6930 # Handle CRLF in mingw tool chain
6931 opt_cr=
6932 case $build_os in
6933 mingw*)
6934 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6935 ;;
6936 esac
6937
6938 # Try without a prefix underscore, then with it.
6939 for ac_symprfx in "" "_"; do
6940
6941 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6942 symxfrm="\\1 $ac_symprfx\\2 \\2"
6943
6944 # Write the raw and C identifiers.
6945 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6946 # Fake it for dumpbin and say T for any non-static function,
6947 # D for any global variable and I for any imported variable.
6948 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
6949 # which start with @ or ?.
6950 lt_cv_sys_global_symbol_pipe="$AWK '"\
6951 " {last_section=section; section=\$ 3};"\
6952 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6953 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6954 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6955 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6956 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6957 " \$ 0!~/External *\|/{next};"\
6958 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6959 " {if(hide[section]) next};"\
6960 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6961 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6962 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6963 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6964 " ' prfx=^$ac_symprfx"
6965 else
6966 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6967 fi
6968 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
6969
6970 # Check to see that the pipe works correctly.
6971 pipe_works=no
6972
6973 rm -f conftest*
6974 cat > conftest.$ac_ext <<_LT_EOF
6975 #ifdef __cplusplus
6976 extern "C" {
6977 #endif
6978 char nm_test_var;
6979 void nm_test_func(void);
6980 void nm_test_func(void){}
6981 #ifdef __cplusplus
6982 }
6983 #endif
6984 int main(){nm_test_var='a';nm_test_func();return(0);}
6985 _LT_EOF
6986
6987 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6988 (eval $ac_compile) 2>&5
6989 ac_status=$?
6990 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6991 test $ac_status = 0; }; then
6992 # Now try to grab the symbols.
6993 nlist=conftest.nm
6994 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
6995 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
6996 # Try sorting and uniquifying the output.
6997 if sort "$nlist" | uniq > "$nlist"T; then
6998 mv -f "$nlist"T "$nlist"
6999 else
7000 rm -f "$nlist"T
7001 fi
7002
7003 # Make sure that we snagged all the symbols we need.
7004 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7005 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7006 cat <<_LT_EOF > conftest.$ac_ext
7007 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7008 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7009 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7010 relocations are performed -- see ld's documentation on pseudo-relocs. */
7011 # define LT_DLSYM_CONST
7012 #elif defined __osf__
7013 /* This system does not cope well with relocations in const data. */
7014 # define LT_DLSYM_CONST
7015 #else
7016 # define LT_DLSYM_CONST const
7017 #endif
7018
7019 #ifdef __cplusplus
7020 extern "C" {
7021 #endif
7022
7023 _LT_EOF
7024 # Now generate the symbol file.
7025 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7026
7027 cat <<_LT_EOF >> conftest.$ac_ext
7028
7029 /* The mapping between symbol names and symbols. */
7030 LT_DLSYM_CONST struct {
7031 const char *name;
7032 void *address;
7033 }
7034 lt__PROGRAM__LTX_preloaded_symbols[] =
7035 {
7036 { "@PROGRAM@", (void *) 0 },
7037 _LT_EOF
7038 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7039 cat <<\_LT_EOF >> conftest.$ac_ext
7040 {0, (void *) 0}
7041 };
7042
7043 /* This works around a problem in FreeBSD linker */
7044 #ifdef FREEBSD_WORKAROUND
7045 static const void *lt_preloaded_setup() {
7046 return lt__PROGRAM__LTX_preloaded_symbols;
7047 }
7048 #endif
7049
7050 #ifdef __cplusplus
7051 }
7052 #endif
7053 _LT_EOF
7054 # Now try linking the two files.
7055 mv conftest.$ac_objext conftstm.$ac_objext
7056 lt_globsym_save_LIBS=$LIBS
7057 lt_globsym_save_CFLAGS=$CFLAGS
7058 LIBS=conftstm.$ac_objext
7059 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7060 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7061 (eval $ac_link) 2>&5
7062 ac_status=$?
7063 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7064 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7065 pipe_works=yes
7066 fi
7067 LIBS=$lt_globsym_save_LIBS
7068 CFLAGS=$lt_globsym_save_CFLAGS
7069 else
7070 echo "cannot find nm_test_func in $nlist" >&5
7071 fi
7072 else
7073 echo "cannot find nm_test_var in $nlist" >&5
7074 fi
7075 else
7076 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7077 fi
7078 else
7079 echo "$progname: failed program was:" >&5
7080 cat conftest.$ac_ext >&5
7081 fi
7082 rm -rf conftest* conftst*
7083
7084 # Do not use the global_symbol_pipe unless it works.
7085 if test yes = "$pipe_works"; then
7086 break
7087 else
7088 lt_cv_sys_global_symbol_pipe=
7089 fi
7090 done
7091
7092 fi
7093
7094 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7095 lt_cv_sys_global_symbol_to_cdecl=
7096 fi
7097 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7099 printf "%s\n" "failed" >&6; }
7100 else
7101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7102 printf "%s\n" "ok" >&6; }
7103 fi
7104
7105 # Response file support.
7106 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7107 nm_file_list_spec='@'
7108 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7109 nm_file_list_spec='@'
7110 fi
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7149 printf %s "checking for sysroot... " >&6; }
7150
7151 # Check whether --with-sysroot was given.
7152 if test ${with_sysroot+y}
7153 then :
7154 withval=$with_sysroot;
7155 else $as_nop
7156 with_sysroot=no
7157 fi
7158
7159
7160 lt_sysroot=
7161 case $with_sysroot in #(
7162 yes)
7163 if test yes = "$GCC"; then
7164 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7165 fi
7166 ;; #(
7167 /*)
7168 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7169 ;; #(
7170 no|'')
7171 ;; #(
7172 *)
7173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7174 printf "%s\n" "$with_sysroot" >&6; }
7175 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7176 ;;
7177 esac
7178
7179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7180 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7181
7182
7183
7184
7185
7186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7187 printf %s "checking for a working dd... " >&6; }
7188 if test ${ac_cv_path_lt_DD+y}
7189 then :
7190 printf %s "(cached) " >&6
7191 else $as_nop
7192 printf 0123456789abcdef0123456789abcdef >conftest.i
7193 cat conftest.i conftest.i >conftest2.i
7194 : ${lt_DD:=$DD}
7195 if test -z "$lt_DD"; then
7196 ac_path_lt_DD_found=false
7197 # Loop through the user's path and test for each of PROGNAME-LIST
7198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7199 for as_dir in $PATH
7200 do
7201 IFS=$as_save_IFS
7202 case $as_dir in #(((
7203 '') as_dir=./ ;;
7204 */) ;;
7205 *) as_dir=$as_dir/ ;;
7206 esac
7207 for ac_prog in dd
7208 do
7209 for ac_exec_ext in '' $ac_executable_extensions; do
7210 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7211 as_fn_executable_p "$ac_path_lt_DD" || continue
7212 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7213 cmp -s conftest.i conftest.out \
7214 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7215 fi
7216 $ac_path_lt_DD_found && break 3
7217 done
7218 done
7219 done
7220 IFS=$as_save_IFS
7221 if test -z "$ac_cv_path_lt_DD"; then
7222 :
7223 fi
7224 else
7225 ac_cv_path_lt_DD=$lt_DD
7226 fi
7227
7228 rm -f conftest.i conftest2.i conftest.out
7229 fi
7230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7231 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7232
7233
7234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7235 printf %s "checking how to truncate binary pipes... " >&6; }
7236 if test ${lt_cv_truncate_bin+y}
7237 then :
7238 printf %s "(cached) " >&6
7239 else $as_nop
7240 printf 0123456789abcdef0123456789abcdef >conftest.i
7241 cat conftest.i conftest.i >conftest2.i
7242 lt_cv_truncate_bin=
7243 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7244 cmp -s conftest.i conftest.out \
7245 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7246 fi
7247 rm -f conftest.i conftest2.i conftest.out
7248 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7249 fi
7250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7251 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7252
7253
7254
7255
7256
7257
7258
7259 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7260 func_cc_basename ()
7261 {
7262 for cc_temp in $*""; do
7263 case $cc_temp in
7264 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7265 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7266 \-*) ;;
7267 *) break;;
7268 esac
7269 done
7270 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7271 }
7272
7273 # Check whether --enable-libtool-lock was given.
7274 if test ${enable_libtool_lock+y}
7275 then :
7276 enableval=$enable_libtool_lock;
7277 fi
7278
7279 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7280
7281 # Some flags need to be propagated to the compiler or linker for good
7282 # libtool support.
7283 case $host in
7284 ia64-*-hpux*)
7285 # Find out what ABI is being produced by ac_compile, and set mode
7286 # options accordingly.
7287 echo 'int i;' > conftest.$ac_ext
7288 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7289 (eval $ac_compile) 2>&5
7290 ac_status=$?
7291 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7292 test $ac_status = 0; }; then
7293 case `$FILECMD conftest.$ac_objext` in
7294 *ELF-32*)
7295 HPUX_IA64_MODE=32
7296 ;;
7297 *ELF-64*)
7298 HPUX_IA64_MODE=64
7299 ;;
7300 esac
7301 fi
7302 rm -rf conftest*
7303 ;;
7304 *-*-irix6*)
7305 # Find out what ABI is being produced by ac_compile, and set linker
7306 # options accordingly.
7307 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7308 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7309 (eval $ac_compile) 2>&5
7310 ac_status=$?
7311 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7312 test $ac_status = 0; }; then
7313 if test yes = "$lt_cv_prog_gnu_ld"; then
7314 case `$FILECMD conftest.$ac_objext` in
7315 *32-bit*)
7316 LD="${LD-ld} -melf32bsmip"
7317 ;;
7318 *N32*)
7319 LD="${LD-ld} -melf32bmipn32"
7320 ;;
7321 *64-bit*)
7322 LD="${LD-ld} -melf64bmip"
7323 ;;
7324 esac
7325 else
7326 case `$FILECMD conftest.$ac_objext` in
7327 *32-bit*)
7328 LD="${LD-ld} -32"
7329 ;;
7330 *N32*)
7331 LD="${LD-ld} -n32"
7332 ;;
7333 *64-bit*)
7334 LD="${LD-ld} -64"
7335 ;;
7336 esac
7337 fi
7338 fi
7339 rm -rf conftest*
7340 ;;
7341
7342 mips64*-*linux*)
7343 # Find out what ABI is being produced by ac_compile, and set linker
7344 # options accordingly.
7345 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7346 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7347 (eval $ac_compile) 2>&5
7348 ac_status=$?
7349 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7350 test $ac_status = 0; }; then
7351 emul=elf
7352 case `$FILECMD conftest.$ac_objext` in
7353 *32-bit*)
7354 emul="${emul}32"
7355 ;;
7356 *64-bit*)
7357 emul="${emul}64"
7358 ;;
7359 esac
7360 case `$FILECMD conftest.$ac_objext` in
7361 *MSB*)
7362 emul="${emul}btsmip"
7363 ;;
7364 *LSB*)
7365 emul="${emul}ltsmip"
7366 ;;
7367 esac
7368 case `$FILECMD conftest.$ac_objext` in
7369 *N32*)
7370 emul="${emul}n32"
7371 ;;
7372 esac
7373 LD="${LD-ld} -m $emul"
7374 fi
7375 rm -rf conftest*
7376 ;;
7377
7378 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7379 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7380 # Find out what ABI is being produced by ac_compile, and set linker
7381 # options accordingly. Note that the listed cases only cover the
7382 # situations where additional linker options are needed (such as when
7383 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7384 # vice versa); the common cases where no linker options are needed do
7385 # not appear in the list.
7386 echo 'int i;' > conftest.$ac_ext
7387 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7388 (eval $ac_compile) 2>&5
7389 ac_status=$?
7390 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7391 test $ac_status = 0; }; then
7392 case `$FILECMD conftest.o` in
7393 *32-bit*)
7394 case $host in
7395 x86_64-*kfreebsd*-gnu)
7396 LD="${LD-ld} -m elf_i386_fbsd"
7397 ;;
7398 x86_64-*linux*)
7399 case `$FILECMD conftest.o` in
7400 *x86-64*)
7401 LD="${LD-ld} -m elf32_x86_64"
7402 ;;
7403 *)
7404 LD="${LD-ld} -m elf_i386"
7405 ;;
7406 esac
7407 ;;
7408 powerpc64le-*linux*)
7409 LD="${LD-ld} -m elf32lppclinux"
7410 ;;
7411 powerpc64-*linux*)
7412 LD="${LD-ld} -m elf32ppclinux"
7413 ;;
7414 s390x-*linux*)
7415 LD="${LD-ld} -m elf_s390"
7416 ;;
7417 sparc64-*linux*)
7418 LD="${LD-ld} -m elf32_sparc"
7419 ;;
7420 esac
7421 ;;
7422 *64-bit*)
7423 case $host in
7424 x86_64-*kfreebsd*-gnu)
7425 LD="${LD-ld} -m elf_x86_64_fbsd"
7426 ;;
7427 x86_64-*linux*)
7428 LD="${LD-ld} -m elf_x86_64"
7429 ;;
7430 powerpcle-*linux*)
7431 LD="${LD-ld} -m elf64lppc"
7432 ;;
7433 powerpc-*linux*)
7434 LD="${LD-ld} -m elf64ppc"
7435 ;;
7436 s390*-*linux*|s390*-*tpf*)
7437 LD="${LD-ld} -m elf64_s390"
7438 ;;
7439 sparc*-*linux*)
7440 LD="${LD-ld} -m elf64_sparc"
7441 ;;
7442 esac
7443 ;;
7444 esac
7445 fi
7446 rm -rf conftest*
7447 ;;
7448
7449 *-*-sco3.2v5*)
7450 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7451 SAVE_CFLAGS=$CFLAGS
7452 CFLAGS="$CFLAGS -belf"
7453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7454 printf %s "checking whether the C compiler needs -belf... " >&6; }
7455 if test ${lt_cv_cc_needs_belf+y}
7456 then :
7457 printf %s "(cached) " >&6
7458 else $as_nop
7459 ac_ext=c
7460 ac_cpp='$CPP $CPPFLAGS'
7461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7464
7465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7466 /* end confdefs.h. */
7467
7468 int
7469 main (void)
7470 {
7471
7472 ;
7473 return 0;
7474 }
7475 _ACEOF
7476 if ac_fn_c_try_link "$LINENO"
7477 then :
7478 lt_cv_cc_needs_belf=yes
7479 else $as_nop
7480 lt_cv_cc_needs_belf=no
7481 fi
7482 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7483 conftest$ac_exeext conftest.$ac_ext
7484 ac_ext=c
7485 ac_cpp='$CPP $CPPFLAGS'
7486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7489
7490 fi
7491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7492 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7493 if test yes != "$lt_cv_cc_needs_belf"; then
7494 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7495 CFLAGS=$SAVE_CFLAGS
7496 fi
7497 ;;
7498 *-*solaris*)
7499 # Find out what ABI is being produced by ac_compile, and set linker
7500 # options accordingly.
7501 echo 'int i;' > conftest.$ac_ext
7502 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7503 (eval $ac_compile) 2>&5
7504 ac_status=$?
7505 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7506 test $ac_status = 0; }; then
7507 case `$FILECMD conftest.o` in
7508 *64-bit*)
7509 case $lt_cv_prog_gnu_ld in
7510 yes*)
7511 case $host in
7512 i?86-*-solaris*|x86_64-*-solaris*)
7513 LD="${LD-ld} -m elf_x86_64"
7514 ;;
7515 sparc*-*-solaris*)
7516 LD="${LD-ld} -m elf64_sparc"
7517 ;;
7518 esac
7519 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7520 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7521 LD=${LD-ld}_sol2
7522 fi
7523 ;;
7524 *)
7525 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7526 LD="${LD-ld} -64"
7527 fi
7528 ;;
7529 esac
7530 ;;
7531 esac
7532 fi
7533 rm -rf conftest*
7534 ;;
7535 esac
7536
7537 need_locks=$enable_libtool_lock
7538
7539 if test -n "$ac_tool_prefix"; then
7540 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7541 set dummy ${ac_tool_prefix}mt; ac_word=$2
7542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7543 printf %s "checking for $ac_word... " >&6; }
7544 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7545 then :
7546 printf %s "(cached) " >&6
7547 else $as_nop
7548 if test -n "$MANIFEST_TOOL"; then
7549 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7550 else
7551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7552 for as_dir in $PATH
7553 do
7554 IFS=$as_save_IFS
7555 case $as_dir in #(((
7556 '') as_dir=./ ;;
7557 */) ;;
7558 *) as_dir=$as_dir/ ;;
7559 esac
7560 for ac_exec_ext in '' $ac_executable_extensions; do
7561 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7562 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7563 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7564 break 2
7565 fi
7566 done
7567 done
7568 IFS=$as_save_IFS
7569
7570 fi
7571 fi
7572 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7573 if test -n "$MANIFEST_TOOL"; then
7574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7575 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7576 else
7577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7578 printf "%s\n" "no" >&6; }
7579 fi
7580
7581
7582 fi
7583 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7584 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7585 # Extract the first word of "mt", so it can be a program name with args.
7586 set dummy mt; ac_word=$2
7587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7588 printf %s "checking for $ac_word... " >&6; }
7589 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7590 then :
7591 printf %s "(cached) " >&6
7592 else $as_nop
7593 if test -n "$ac_ct_MANIFEST_TOOL"; then
7594 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7595 else
7596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7597 for as_dir in $PATH
7598 do
7599 IFS=$as_save_IFS
7600 case $as_dir in #(((
7601 '') as_dir=./ ;;
7602 */) ;;
7603 *) as_dir=$as_dir/ ;;
7604 esac
7605 for ac_exec_ext in '' $ac_executable_extensions; do
7606 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7607 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7608 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7609 break 2
7610 fi
7611 done
7612 done
7613 IFS=$as_save_IFS
7614
7615 fi
7616 fi
7617 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7618 if test -n "$ac_ct_MANIFEST_TOOL"; then
7619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7620 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7621 else
7622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7623 printf "%s\n" "no" >&6; }
7624 fi
7625
7626 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7627 MANIFEST_TOOL=":"
7628 else
7629 case $cross_compiling:$ac_tool_warned in
7630 yes:)
7631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7632 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7633 ac_tool_warned=yes ;;
7634 esac
7635 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7636 fi
7637 else
7638 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7639 fi
7640
7641 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7643 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7644 if test ${lt_cv_path_mainfest_tool+y}
7645 then :
7646 printf %s "(cached) " >&6
7647 else $as_nop
7648 lt_cv_path_mainfest_tool=no
7649 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7650 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7651 cat conftest.err >&5
7652 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7653 lt_cv_path_mainfest_tool=yes
7654 fi
7655 rm -f conftest*
7656 fi
7657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7658 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7659 if test yes != "$lt_cv_path_mainfest_tool"; then
7660 MANIFEST_TOOL=:
7661 fi
7662
7663
7664
7665
7666
7667
7668 case $host_os in
7669 rhapsody* | darwin*)
7670 if test -n "$ac_tool_prefix"; then
7671 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7672 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7674 printf %s "checking for $ac_word... " >&6; }
7675 if test ${ac_cv_prog_DSYMUTIL+y}
7676 then :
7677 printf %s "(cached) " >&6
7678 else $as_nop
7679 if test -n "$DSYMUTIL"; then
7680 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7681 else
7682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7683 for as_dir in $PATH
7684 do
7685 IFS=$as_save_IFS
7686 case $as_dir in #(((
7687 '') as_dir=./ ;;
7688 */) ;;
7689 *) as_dir=$as_dir/ ;;
7690 esac
7691 for ac_exec_ext in '' $ac_executable_extensions; do
7692 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7693 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7694 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7695 break 2
7696 fi
7697 done
7698 done
7699 IFS=$as_save_IFS
7700
7701 fi
7702 fi
7703 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7704 if test -n "$DSYMUTIL"; then
7705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7706 printf "%s\n" "$DSYMUTIL" >&6; }
7707 else
7708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7709 printf "%s\n" "no" >&6; }
7710 fi
7711
7712
7713 fi
7714 if test -z "$ac_cv_prog_DSYMUTIL"; then
7715 ac_ct_DSYMUTIL=$DSYMUTIL
7716 # Extract the first word of "dsymutil", so it can be a program name with args.
7717 set dummy dsymutil; ac_word=$2
7718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7719 printf %s "checking for $ac_word... " >&6; }
7720 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7721 then :
7722 printf %s "(cached) " >&6
7723 else $as_nop
7724 if test -n "$ac_ct_DSYMUTIL"; then
7725 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7726 else
7727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7728 for as_dir in $PATH
7729 do
7730 IFS=$as_save_IFS
7731 case $as_dir in #(((
7732 '') as_dir=./ ;;
7733 */) ;;
7734 *) as_dir=$as_dir/ ;;
7735 esac
7736 for ac_exec_ext in '' $ac_executable_extensions; do
7737 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7738 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7739 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7740 break 2
7741 fi
7742 done
7743 done
7744 IFS=$as_save_IFS
7745
7746 fi
7747 fi
7748 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7749 if test -n "$ac_ct_DSYMUTIL"; then
7750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7751 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7752 else
7753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7754 printf "%s\n" "no" >&6; }
7755 fi
7756
7757 if test "x$ac_ct_DSYMUTIL" = x; then
7758 DSYMUTIL=":"
7759 else
7760 case $cross_compiling:$ac_tool_warned in
7761 yes:)
7762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7763 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7764 ac_tool_warned=yes ;;
7765 esac
7766 DSYMUTIL=$ac_ct_DSYMUTIL
7767 fi
7768 else
7769 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7770 fi
7771
7772 if test -n "$ac_tool_prefix"; then
7773 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7774 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7776 printf %s "checking for $ac_word... " >&6; }
7777 if test ${ac_cv_prog_NMEDIT+y}
7778 then :
7779 printf %s "(cached) " >&6
7780 else $as_nop
7781 if test -n "$NMEDIT"; then
7782 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7783 else
7784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7785 for as_dir in $PATH
7786 do
7787 IFS=$as_save_IFS
7788 case $as_dir in #(((
7789 '') as_dir=./ ;;
7790 */) ;;
7791 *) as_dir=$as_dir/ ;;
7792 esac
7793 for ac_exec_ext in '' $ac_executable_extensions; do
7794 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7795 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7796 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7797 break 2
7798 fi
7799 done
7800 done
7801 IFS=$as_save_IFS
7802
7803 fi
7804 fi
7805 NMEDIT=$ac_cv_prog_NMEDIT
7806 if test -n "$NMEDIT"; then
7807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7808 printf "%s\n" "$NMEDIT" >&6; }
7809 else
7810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7811 printf "%s\n" "no" >&6; }
7812 fi
7813
7814
7815 fi
7816 if test -z "$ac_cv_prog_NMEDIT"; then
7817 ac_ct_NMEDIT=$NMEDIT
7818 # Extract the first word of "nmedit", so it can be a program name with args.
7819 set dummy nmedit; ac_word=$2
7820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7821 printf %s "checking for $ac_word... " >&6; }
7822 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7823 then :
7824 printf %s "(cached) " >&6
7825 else $as_nop
7826 if test -n "$ac_ct_NMEDIT"; then
7827 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7828 else
7829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7830 for as_dir in $PATH
7831 do
7832 IFS=$as_save_IFS
7833 case $as_dir in #(((
7834 '') as_dir=./ ;;
7835 */) ;;
7836 *) as_dir=$as_dir/ ;;
7837 esac
7838 for ac_exec_ext in '' $ac_executable_extensions; do
7839 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7840 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7841 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7842 break 2
7843 fi
7844 done
7845 done
7846 IFS=$as_save_IFS
7847
7848 fi
7849 fi
7850 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7851 if test -n "$ac_ct_NMEDIT"; then
7852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7853 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7854 else
7855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7856 printf "%s\n" "no" >&6; }
7857 fi
7858
7859 if test "x$ac_ct_NMEDIT" = x; then
7860 NMEDIT=":"
7861 else
7862 case $cross_compiling:$ac_tool_warned in
7863 yes:)
7864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7865 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7866 ac_tool_warned=yes ;;
7867 esac
7868 NMEDIT=$ac_ct_NMEDIT
7869 fi
7870 else
7871 NMEDIT="$ac_cv_prog_NMEDIT"
7872 fi
7873
7874 if test -n "$ac_tool_prefix"; then
7875 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7876 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7878 printf %s "checking for $ac_word... " >&6; }
7879 if test ${ac_cv_prog_LIPO+y}
7880 then :
7881 printf %s "(cached) " >&6
7882 else $as_nop
7883 if test -n "$LIPO"; then
7884 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7885 else
7886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7887 for as_dir in $PATH
7888 do
7889 IFS=$as_save_IFS
7890 case $as_dir in #(((
7891 '') as_dir=./ ;;
7892 */) ;;
7893 *) as_dir=$as_dir/ ;;
7894 esac
7895 for ac_exec_ext in '' $ac_executable_extensions; do
7896 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7897 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7898 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7899 break 2
7900 fi
7901 done
7902 done
7903 IFS=$as_save_IFS
7904
7905 fi
7906 fi
7907 LIPO=$ac_cv_prog_LIPO
7908 if test -n "$LIPO"; then
7909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7910 printf "%s\n" "$LIPO" >&6; }
7911 else
7912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7913 printf "%s\n" "no" >&6; }
7914 fi
7915
7916
7917 fi
7918 if test -z "$ac_cv_prog_LIPO"; then
7919 ac_ct_LIPO=$LIPO
7920 # Extract the first word of "lipo", so it can be a program name with args.
7921 set dummy lipo; ac_word=$2
7922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7923 printf %s "checking for $ac_word... " >&6; }
7924 if test ${ac_cv_prog_ac_ct_LIPO+y}
7925 then :
7926 printf %s "(cached) " >&6
7927 else $as_nop
7928 if test -n "$ac_ct_LIPO"; then
7929 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7930 else
7931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7932 for as_dir in $PATH
7933 do
7934 IFS=$as_save_IFS
7935 case $as_dir in #(((
7936 '') as_dir=./ ;;
7937 */) ;;
7938 *) as_dir=$as_dir/ ;;
7939 esac
7940 for ac_exec_ext in '' $ac_executable_extensions; do
7941 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7942 ac_cv_prog_ac_ct_LIPO="lipo"
7943 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7944 break 2
7945 fi
7946 done
7947 done
7948 IFS=$as_save_IFS
7949
7950 fi
7951 fi
7952 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7953 if test -n "$ac_ct_LIPO"; then
7954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7955 printf "%s\n" "$ac_ct_LIPO" >&6; }
7956 else
7957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7958 printf "%s\n" "no" >&6; }
7959 fi
7960
7961 if test "x$ac_ct_LIPO" = x; then
7962 LIPO=":"
7963 else
7964 case $cross_compiling:$ac_tool_warned in
7965 yes:)
7966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7967 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7968 ac_tool_warned=yes ;;
7969 esac
7970 LIPO=$ac_ct_LIPO
7971 fi
7972 else
7973 LIPO="$ac_cv_prog_LIPO"
7974 fi
7975
7976 if test -n "$ac_tool_prefix"; then
7977 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7978 set dummy ${ac_tool_prefix}otool; ac_word=$2
7979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7980 printf %s "checking for $ac_word... " >&6; }
7981 if test ${ac_cv_prog_OTOOL+y}
7982 then :
7983 printf %s "(cached) " >&6
7984 else $as_nop
7985 if test -n "$OTOOL"; then
7986 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7987 else
7988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7989 for as_dir in $PATH
7990 do
7991 IFS=$as_save_IFS
7992 case $as_dir in #(((
7993 '') as_dir=./ ;;
7994 */) ;;
7995 *) as_dir=$as_dir/ ;;
7996 esac
7997 for ac_exec_ext in '' $ac_executable_extensions; do
7998 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7999 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8000 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8001 break 2
8002 fi
8003 done
8004 done
8005 IFS=$as_save_IFS
8006
8007 fi
8008 fi
8009 OTOOL=$ac_cv_prog_OTOOL
8010 if test -n "$OTOOL"; then
8011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8012 printf "%s\n" "$OTOOL" >&6; }
8013 else
8014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8015 printf "%s\n" "no" >&6; }
8016 fi
8017
8018
8019 fi
8020 if test -z "$ac_cv_prog_OTOOL"; then
8021 ac_ct_OTOOL=$OTOOL
8022 # Extract the first word of "otool", so it can be a program name with args.
8023 set dummy otool; ac_word=$2
8024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8025 printf %s "checking for $ac_word... " >&6; }
8026 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8027 then :
8028 printf %s "(cached) " >&6
8029 else $as_nop
8030 if test -n "$ac_ct_OTOOL"; then
8031 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8032 else
8033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8034 for as_dir in $PATH
8035 do
8036 IFS=$as_save_IFS
8037 case $as_dir in #(((
8038 '') as_dir=./ ;;
8039 */) ;;
8040 *) as_dir=$as_dir/ ;;
8041 esac
8042 for ac_exec_ext in '' $ac_executable_extensions; do
8043 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8044 ac_cv_prog_ac_ct_OTOOL="otool"
8045 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8046 break 2
8047 fi
8048 done
8049 done
8050 IFS=$as_save_IFS
8051
8052 fi
8053 fi
8054 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8055 if test -n "$ac_ct_OTOOL"; then
8056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8057 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8058 else
8059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8060 printf "%s\n" "no" >&6; }
8061 fi
8062
8063 if test "x$ac_ct_OTOOL" = x; then
8064 OTOOL=":"
8065 else
8066 case $cross_compiling:$ac_tool_warned in
8067 yes:)
8068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8069 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8070 ac_tool_warned=yes ;;
8071 esac
8072 OTOOL=$ac_ct_OTOOL
8073 fi
8074 else
8075 OTOOL="$ac_cv_prog_OTOOL"
8076 fi
8077
8078 if test -n "$ac_tool_prefix"; then
8079 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8080 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8082 printf %s "checking for $ac_word... " >&6; }
8083 if test ${ac_cv_prog_OTOOL64+y}
8084 then :
8085 printf %s "(cached) " >&6
8086 else $as_nop
8087 if test -n "$OTOOL64"; then
8088 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8089 else
8090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8091 for as_dir in $PATH
8092 do
8093 IFS=$as_save_IFS
8094 case $as_dir in #(((
8095 '') as_dir=./ ;;
8096 */) ;;
8097 *) as_dir=$as_dir/ ;;
8098 esac
8099 for ac_exec_ext in '' $ac_executable_extensions; do
8100 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8101 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8102 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8103 break 2
8104 fi
8105 done
8106 done
8107 IFS=$as_save_IFS
8108
8109 fi
8110 fi
8111 OTOOL64=$ac_cv_prog_OTOOL64
8112 if test -n "$OTOOL64"; then
8113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8114 printf "%s\n" "$OTOOL64" >&6; }
8115 else
8116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8117 printf "%s\n" "no" >&6; }
8118 fi
8119
8120
8121 fi
8122 if test -z "$ac_cv_prog_OTOOL64"; then
8123 ac_ct_OTOOL64=$OTOOL64
8124 # Extract the first word of "otool64", so it can be a program name with args.
8125 set dummy otool64; ac_word=$2
8126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8127 printf %s "checking for $ac_word... " >&6; }
8128 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8129 then :
8130 printf %s "(cached) " >&6
8131 else $as_nop
8132 if test -n "$ac_ct_OTOOL64"; then
8133 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8134 else
8135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8136 for as_dir in $PATH
8137 do
8138 IFS=$as_save_IFS
8139 case $as_dir in #(((
8140 '') as_dir=./ ;;
8141 */) ;;
8142 *) as_dir=$as_dir/ ;;
8143 esac
8144 for ac_exec_ext in '' $ac_executable_extensions; do
8145 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8146 ac_cv_prog_ac_ct_OTOOL64="otool64"
8147 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8148 break 2
8149 fi
8150 done
8151 done
8152 IFS=$as_save_IFS
8153
8154 fi
8155 fi
8156 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8157 if test -n "$ac_ct_OTOOL64"; then
8158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8159 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8160 else
8161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8162 printf "%s\n" "no" >&6; }
8163 fi
8164
8165 if test "x$ac_ct_OTOOL64" = x; then
8166 OTOOL64=":"
8167 else
8168 case $cross_compiling:$ac_tool_warned in
8169 yes:)
8170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8171 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8172 ac_tool_warned=yes ;;
8173 esac
8174 OTOOL64=$ac_ct_OTOOL64
8175 fi
8176 else
8177 OTOOL64="$ac_cv_prog_OTOOL64"
8178 fi
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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8207 printf %s "checking for -single_module linker flag... " >&6; }
8208 if test ${lt_cv_apple_cc_single_mod+y}
8209 then :
8210 printf %s "(cached) " >&6
8211 else $as_nop
8212 lt_cv_apple_cc_single_mod=no
8213 if test -z "$LT_MULTI_MODULE"; then
8214 # By default we will add the -single_module flag. You can override
8215 # by either setting the environment variable LT_MULTI_MODULE
8216 # non-empty at configure time, or by adding -multi_module to the
8217 # link flags.
8218 rm -rf libconftest.dylib*
8219 echo "int foo(void){return 1;}" > conftest.c
8220 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8221 -dynamiclib -Wl,-single_module conftest.c" >&5
8222 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8223 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8224 _lt_result=$?
8225 # If there is a non-empty error log, and "single_module"
8226 # appears in it, assume the flag caused a linker warning
8227 if test -s conftest.err && $GREP single_module conftest.err; then
8228 cat conftest.err >&5
8229 # Otherwise, if the output was created with a 0 exit code from
8230 # the compiler, it worked.
8231 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8232 lt_cv_apple_cc_single_mod=yes
8233 else
8234 cat conftest.err >&5
8235 fi
8236 rm -rf libconftest.dylib*
8237 rm -f conftest.*
8238 fi
8239 fi
8240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8241 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8242
8243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8244 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8245 if test ${lt_cv_ld_exported_symbols_list+y}
8246 then :
8247 printf %s "(cached) " >&6
8248 else $as_nop
8249 lt_cv_ld_exported_symbols_list=no
8250 save_LDFLAGS=$LDFLAGS
8251 echo "_main" > conftest.sym
8252 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8254 /* end confdefs.h. */
8255
8256 int
8257 main (void)
8258 {
8259
8260 ;
8261 return 0;
8262 }
8263 _ACEOF
8264 if ac_fn_c_try_link "$LINENO"
8265 then :
8266 lt_cv_ld_exported_symbols_list=yes
8267 else $as_nop
8268 lt_cv_ld_exported_symbols_list=no
8269 fi
8270 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8271 conftest$ac_exeext conftest.$ac_ext
8272 LDFLAGS=$save_LDFLAGS
8273
8274 fi
8275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8276 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8277
8278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8279 printf %s "checking for -force_load linker flag... " >&6; }
8280 if test ${lt_cv_ld_force_load+y}
8281 then :
8282 printf %s "(cached) " >&6
8283 else $as_nop
8284 lt_cv_ld_force_load=no
8285 cat > conftest.c << _LT_EOF
8286 int forced_loaded() { return 2;}
8287 _LT_EOF
8288 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8289 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8290 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8291 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8292 echo "$RANLIB libconftest.a" >&5
8293 $RANLIB libconftest.a 2>&5
8294 cat > conftest.c << _LT_EOF
8295 int main() { return 0;}
8296 _LT_EOF
8297 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8298 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8299 _lt_result=$?
8300 if test -s conftest.err && $GREP force_load conftest.err; then
8301 cat conftest.err >&5
8302 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8303 lt_cv_ld_force_load=yes
8304 else
8305 cat conftest.err >&5
8306 fi
8307 rm -f conftest.err libconftest.a conftest conftest.c
8308 rm -rf conftest.dSYM
8309
8310 fi
8311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8312 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8313 case $host_os in
8314 rhapsody* | darwin1.[012])
8315 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8316 darwin1.*)
8317 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8318 darwin*)
8319 case $MACOSX_DEPLOYMENT_TARGET,$host in
8320 10.[012],*|,*powerpc*-darwin[5-8]*)
8321 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8322 *)
8323 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8324 esac
8325 ;;
8326 esac
8327 if test yes = "$lt_cv_apple_cc_single_mod"; then
8328 _lt_dar_single_mod='$single_module'
8329 fi
8330 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8331 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8332 else
8333 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8334 fi
8335 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8336 _lt_dsymutil='~$DSYMUTIL $lib || :'
8337 else
8338 _lt_dsymutil=
8339 fi
8340 ;;
8341 esac
8342
8343 # func_munge_path_list VARIABLE PATH
8344 # -----------------------------------
8345 # VARIABLE is name of variable containing _space_ separated list of
8346 # directories to be munged by the contents of PATH, which is string
8347 # having a format:
8348 # "DIR[:DIR]:"
8349 # string "DIR[ DIR]" will be prepended to VARIABLE
8350 # ":DIR[:DIR]"
8351 # string "DIR[ DIR]" will be appended to VARIABLE
8352 # "DIRP[:DIRP]::[DIRA:]DIRA"
8353 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8354 # "DIRA[ DIRA]" will be appended to VARIABLE
8355 # "DIR[:DIR]"
8356 # VARIABLE will be replaced by "DIR[ DIR]"
8357 func_munge_path_list ()
8358 {
8359 case x$2 in
8360 x)
8361 ;;
8362 *:)
8363 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8364 ;;
8365 x:*)
8366 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8367 ;;
8368 *::*)
8369 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8370 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8371 ;;
8372 *)
8373 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8374 ;;
8375 esac
8376 }
8377
8378 ac_header= ac_cache=
8379 for ac_item in $ac_header_c_list
8380 do
8381 if test $ac_cache; then
8382 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8383 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8384 printf "%s\n" "#define $ac_item 1" >> confdefs.h
8385 fi
8386 ac_header= ac_cache=
8387 elif test $ac_header; then
8388 ac_cache=$ac_item
8389 else
8390 ac_header=$ac_item
8391 fi
8392 done
8393
8394
8395
8396
8397
8398
8399
8400
8401 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8402 then :
8403
8404 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8405
8406 fi
8407 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8408 "
8409 if test "x$ac_cv_header_dlfcn_h" = xyes
8410 then :
8411 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8412
8413 fi
8414
8415
8416
8417
8418
8419 # Set options
8420
8421
8422
8423 enable_dlopen=no
8424
8425
8426 enable_win32_dll=no
8427
8428
8429 # Check whether --enable-shared was given.
8430 if test ${enable_shared+y}
8431 then :
8432 enableval=$enable_shared; p=${PACKAGE-default}
8433 case $enableval in
8434 yes) enable_shared=yes ;;
8435 no) enable_shared=no ;;
8436 *)
8437 enable_shared=no
8438 # Look at the argument we got. We use all the common list separators.
8439 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8440 for pkg in $enableval; do
8441 IFS=$lt_save_ifs
8442 if test "X$pkg" = "X$p"; then
8443 enable_shared=yes
8444 fi
8445 done
8446 IFS=$lt_save_ifs
8447 ;;
8448 esac
8449 else $as_nop
8450 enable_shared=yes
8451 fi
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461 # Check whether --enable-static was given.
8462 if test ${enable_static+y}
8463 then :
8464 enableval=$enable_static; p=${PACKAGE-default}
8465 case $enableval in
8466 yes) enable_static=yes ;;
8467 no) enable_static=no ;;
8468 *)
8469 enable_static=no
8470 # Look at the argument we got. We use all the common list separators.
8471 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8472 for pkg in $enableval; do
8473 IFS=$lt_save_ifs
8474 if test "X$pkg" = "X$p"; then
8475 enable_static=yes
8476 fi
8477 done
8478 IFS=$lt_save_ifs
8479 ;;
8480 esac
8481 else $as_nop
8482 enable_static=yes
8483 fi
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494 # Check whether --with-pic was given.
8495 if test ${with_pic+y}
8496 then :
8497 withval=$with_pic; lt_p=${PACKAGE-default}
8498 case $withval in
8499 yes|no) pic_mode=$withval ;;
8500 *)
8501 pic_mode=default
8502 # Look at the argument we got. We use all the common list separators.
8503 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8504 for lt_pkg in $withval; do
8505 IFS=$lt_save_ifs
8506 if test "X$lt_pkg" = "X$lt_p"; then
8507 pic_mode=yes
8508 fi
8509 done
8510 IFS=$lt_save_ifs
8511 ;;
8512 esac
8513 else $as_nop
8514 pic_mode=default
8515 fi
8516
8517
8518
8519
8520
8521
8522
8523
8524 # Check whether --enable-fast-install was given.
8525 if test ${enable_fast_install+y}
8526 then :
8527 enableval=$enable_fast_install; p=${PACKAGE-default}
8528 case $enableval in
8529 yes) enable_fast_install=yes ;;
8530 no) enable_fast_install=no ;;
8531 *)
8532 enable_fast_install=no
8533 # Look at the argument we got. We use all the common list separators.
8534 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8535 for pkg in $enableval; do
8536 IFS=$lt_save_ifs
8537 if test "X$pkg" = "X$p"; then
8538 enable_fast_install=yes
8539 fi
8540 done
8541 IFS=$lt_save_ifs
8542 ;;
8543 esac
8544 else $as_nop
8545 enable_fast_install=yes
8546 fi
8547
8548
8549
8550
8551
8552
8553
8554
8555 shared_archive_member_spec=
8556 case $host,$enable_shared in
8557 power*-*-aix[5-9]*,yes)
8558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8559 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8560
8561 # Check whether --with-aix-soname was given.
8562 if test ${with_aix_soname+y}
8563 then :
8564 withval=$with_aix_soname; case $withval in
8565 aix|svr4|both)
8566 ;;
8567 *)
8568 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8569 ;;
8570 esac
8571 lt_cv_with_aix_soname=$with_aix_soname
8572 else $as_nop
8573 if test ${lt_cv_with_aix_soname+y}
8574 then :
8575 printf %s "(cached) " >&6
8576 else $as_nop
8577 lt_cv_with_aix_soname=aix
8578 fi
8579
8580 with_aix_soname=$lt_cv_with_aix_soname
8581 fi
8582
8583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8584 printf "%s\n" "$with_aix_soname" >&6; }
8585 if test aix != "$with_aix_soname"; then
8586 # For the AIX way of multilib, we name the shared archive member
8587 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8588 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8589 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8590 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8591 if test 64 = "${OBJECT_MODE-32}"; then
8592 shared_archive_member_spec=shr_64
8593 else
8594 shared_archive_member_spec=shr
8595 fi
8596 fi
8597 ;;
8598 *)
8599 with_aix_soname=aix
8600 ;;
8601 esac
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612 # This can be used to rebuild libtool when needed
8613 LIBTOOL_DEPS=$ltmain
8614
8615 # Always use our own libtool.
8616 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647 test -z "$LN_S" && LN_S="ln -s"
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662 if test -n "${ZSH_VERSION+set}"; then
8663 setopt NO_GLOB_SUBST
8664 fi
8665
8666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8667 printf %s "checking for objdir... " >&6; }
8668 if test ${lt_cv_objdir+y}
8669 then :
8670 printf %s "(cached) " >&6
8671 else $as_nop
8672 rm -f .libs 2>/dev/null
8673 mkdir .libs 2>/dev/null
8674 if test -d .libs; then
8675 lt_cv_objdir=.libs
8676 else
8677 # MS-DOS does not allow filenames that begin with a dot.
8678 lt_cv_objdir=_libs
8679 fi
8680 rmdir .libs 2>/dev/null
8681 fi
8682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8683 printf "%s\n" "$lt_cv_objdir" >&6; }
8684 objdir=$lt_cv_objdir
8685
8686
8687
8688
8689
8690 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8691
8692
8693
8694
8695 case $host_os in
8696 aix3*)
8697 # AIX sometimes has problems with the GCC collect2 program. For some
8698 # reason, if we set the COLLECT_NAMES environment variable, the problems
8699 # vanish in a puff of smoke.
8700 if test set != "${COLLECT_NAMES+set}"; then
8701 COLLECT_NAMES=
8702 export COLLECT_NAMES
8703 fi
8704 ;;
8705 esac
8706
8707 # Global variables:
8708 ofile=libtool
8709 can_build_shared=yes
8710
8711 # All known linkers require a '.a' archive for static linking (except MSVC and
8712 # ICC, which need '.lib').
8713 libext=a
8714
8715 with_gnu_ld=$lt_cv_prog_gnu_ld
8716
8717 old_CC=$CC
8718 old_CFLAGS=$CFLAGS
8719
8720 # Set sane defaults for various variables
8721 test -z "$CC" && CC=cc
8722 test -z "$LTCC" && LTCC=$CC
8723 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8724 test -z "$LD" && LD=ld
8725 test -z "$ac_objext" && ac_objext=o
8726
8727 func_cc_basename $compiler
8728 cc_basename=$func_cc_basename_result
8729
8730
8731 # Only perform the check for file, if the check method requires it
8732 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8733 case $deplibs_check_method in
8734 file_magic*)
8735 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8737 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8738 if test ${lt_cv_path_MAGIC_CMD+y}
8739 then :
8740 printf %s "(cached) " >&6
8741 else $as_nop
8742 case $MAGIC_CMD in
8743 [\\/*] | ?:[\\/]*)
8744 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8745 ;;
8746 *)
8747 lt_save_MAGIC_CMD=$MAGIC_CMD
8748 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8749 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8750 for ac_dir in $ac_dummy; do
8751 IFS=$lt_save_ifs
8752 test -z "$ac_dir" && ac_dir=.
8753 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8754 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8755 if test -n "$file_magic_test_file"; then
8756 case $deplibs_check_method in
8757 "file_magic "*)
8758 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8759 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8760 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8761 $EGREP "$file_magic_regex" > /dev/null; then
8762 :
8763 else
8764 cat <<_LT_EOF 1>&2
8765
8766 *** Warning: the command libtool uses to detect shared libraries,
8767 *** $file_magic_cmd, produces output that libtool cannot recognize.
8768 *** The result is that libtool may fail to recognize shared libraries
8769 *** as such. This will affect the creation of libtool libraries that
8770 *** depend on shared libraries, but programs linked with such libtool
8771 *** libraries will work regardless of this problem. Nevertheless, you
8772 *** may want to report the problem to your system manager and/or to
8773 *** [email protected]
8774
8775 _LT_EOF
8776 fi ;;
8777 esac
8778 fi
8779 break
8780 fi
8781 done
8782 IFS=$lt_save_ifs
8783 MAGIC_CMD=$lt_save_MAGIC_CMD
8784 ;;
8785 esac
8786 fi
8787
8788 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8789 if test -n "$MAGIC_CMD"; then
8790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8791 printf "%s\n" "$MAGIC_CMD" >&6; }
8792 else
8793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8794 printf "%s\n" "no" >&6; }
8795 fi
8796
8797
8798
8799
8800
8801 if test -z "$lt_cv_path_MAGIC_CMD"; then
8802 if test -n "$ac_tool_prefix"; then
8803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8804 printf %s "checking for file... " >&6; }
8805 if test ${lt_cv_path_MAGIC_CMD+y}
8806 then :
8807 printf %s "(cached) " >&6
8808 else $as_nop
8809 case $MAGIC_CMD in
8810 [\\/*] | ?:[\\/]*)
8811 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8812 ;;
8813 *)
8814 lt_save_MAGIC_CMD=$MAGIC_CMD
8815 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8816 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8817 for ac_dir in $ac_dummy; do
8818 IFS=$lt_save_ifs
8819 test -z "$ac_dir" && ac_dir=.
8820 if test -f "$ac_dir/file"; then
8821 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8822 if test -n "$file_magic_test_file"; then
8823 case $deplibs_check_method in
8824 "file_magic "*)
8825 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8826 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8827 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8828 $EGREP "$file_magic_regex" > /dev/null; then
8829 :
8830 else
8831 cat <<_LT_EOF 1>&2
8832
8833 *** Warning: the command libtool uses to detect shared libraries,
8834 *** $file_magic_cmd, produces output that libtool cannot recognize.
8835 *** The result is that libtool may fail to recognize shared libraries
8836 *** as such. This will affect the creation of libtool libraries that
8837 *** depend on shared libraries, but programs linked with such libtool
8838 *** libraries will work regardless of this problem. Nevertheless, you
8839 *** may want to report the problem to your system manager and/or to
8840 *** [email protected]
8841
8842 _LT_EOF
8843 fi ;;
8844 esac
8845 fi
8846 break
8847 fi
8848 done
8849 IFS=$lt_save_ifs
8850 MAGIC_CMD=$lt_save_MAGIC_CMD
8851 ;;
8852 esac
8853 fi
8854
8855 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8856 if test -n "$MAGIC_CMD"; then
8857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8858 printf "%s\n" "$MAGIC_CMD" >&6; }
8859 else
8860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8861 printf "%s\n" "no" >&6; }
8862 fi
8863
8864
8865 else
8866 MAGIC_CMD=:
8867 fi
8868 fi
8869
8870 fi
8871 ;;
8872 esac
8873
8874 # Use C for the default configuration in the libtool script
8875
8876 lt_save_CC=$CC
8877 ac_ext=c
8878 ac_cpp='$CPP $CPPFLAGS'
8879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8882
8883
8884 # Source file extension for C test sources.
8885 ac_ext=c
8886
8887 # Object file extension for compiled C test sources.
8888 objext=o
8889 objext=$objext
8890
8891 # Code to be used in simple compile tests
8892 lt_simple_compile_test_code="int some_variable = 0;"
8893
8894 # Code to be used in simple link tests
8895 lt_simple_link_test_code='int main(){return(0);}'
8896
8897
8898
8899
8900
8901
8902
8903 # If no C compiler was specified, use CC.
8904 LTCC=${LTCC-"$CC"}
8905
8906 # If no C compiler flags were specified, use CFLAGS.
8907 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8908
8909 # Allow CC to be a program name with arguments.
8910 compiler=$CC
8911
8912 # Save the default compiler, since it gets overwritten when the other
8913 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8914 compiler_DEFAULT=$CC
8915
8916 # save warnings/boilerplate of simple test code
8917 ac_outfile=conftest.$ac_objext
8918 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8919 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8920 _lt_compiler_boilerplate=`cat conftest.err`
8921 $RM conftest*
8922
8923 ac_outfile=conftest.$ac_objext
8924 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8925 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8926 _lt_linker_boilerplate=`cat conftest.err`
8927 $RM -r conftest*
8928
8929
8930 ## CAVEAT EMPTOR:
8931 ## There is no encapsulation within the following macros, do not change
8932 ## the running order or otherwise move them around unless you know exactly
8933 ## what you are doing...
8934 if test -n "$compiler"; then
8935
8936 lt_prog_compiler_no_builtin_flag=
8937
8938 if test yes = "$GCC"; then
8939 case $cc_basename in
8940 nvcc*)
8941 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8942 *)
8943 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8944 esac
8945
8946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8947 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8948 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
8949 then :
8950 printf %s "(cached) " >&6
8951 else $as_nop
8952 lt_cv_prog_compiler_rtti_exceptions=no
8953 ac_outfile=conftest.$ac_objext
8954 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8955 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8956 # Insert the option either (1) after the last *FLAGS variable, or
8957 # (2) before a word containing "conftest.", or (3) at the end.
8958 # Note that $ac_compile itself does not contain backslashes and begins
8959 # with a dollar sign (not a hyphen), so the echo should work correctly.
8960 # The option is referenced via a variable to avoid confusing sed.
8961 lt_compile=`echo "$ac_compile" | $SED \
8962 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8963 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8964 -e 's:$: $lt_compiler_flag:'`
8965 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8966 (eval "$lt_compile" 2>conftest.err)
8967 ac_status=$?
8968 cat conftest.err >&5
8969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970 if (exit $ac_status) && test -s "$ac_outfile"; then
8971 # The compiler can only warn and ignore the option if not recognized
8972 # So say no if there are warnings other than the usual output.
8973 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8974 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8975 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8976 lt_cv_prog_compiler_rtti_exceptions=yes
8977 fi
8978 fi
8979 $RM conftest*
8980
8981 fi
8982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8983 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8984
8985 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8986 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8987 else
8988 :
8989 fi
8990
8991 fi
8992
8993
8994
8995
8996
8997
8998 lt_prog_compiler_wl=
8999 lt_prog_compiler_pic=
9000 lt_prog_compiler_static=
9001
9002
9003 if test yes = "$GCC"; then
9004 lt_prog_compiler_wl='-Wl,'
9005 lt_prog_compiler_static='-static'
9006
9007 case $host_os in
9008 aix*)
9009 # All AIX code is PIC.
9010 if test ia64 = "$host_cpu"; then
9011 # AIX 5 now supports IA64 processor
9012 lt_prog_compiler_static='-Bstatic'
9013 fi
9014 lt_prog_compiler_pic='-fPIC'
9015 ;;
9016
9017 amigaos*)
9018 case $host_cpu in
9019 powerpc)
9020 # see comment about AmigaOS4 .so support
9021 lt_prog_compiler_pic='-fPIC'
9022 ;;
9023 m68k)
9024 # FIXME: we need at least 68020 code to build shared libraries, but
9025 # adding the '-m68020' flag to GCC prevents building anything better,
9026 # like '-m68040'.
9027 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9028 ;;
9029 esac
9030 ;;
9031
9032 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9033 # PIC is the default for these OSes.
9034 ;;
9035
9036 mingw* | cygwin* | pw32* | os2* | cegcc*)
9037 # This hack is so that the source file can tell whether it is being
9038 # built for inclusion in a dll (and should export symbols for example).
9039 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9040 # (--disable-auto-import) libraries
9041 lt_prog_compiler_pic='-DDLL_EXPORT'
9042 case $host_os in
9043 os2*)
9044 lt_prog_compiler_static='$wl-static'
9045 ;;
9046 esac
9047 ;;
9048
9049 darwin* | rhapsody*)
9050 # PIC is the default on this platform
9051 # Common symbols not allowed in MH_DYLIB files
9052 lt_prog_compiler_pic='-fno-common'
9053 ;;
9054
9055 haiku*)
9056 # PIC is the default for Haiku.
9057 # The "-static" flag exists, but is broken.
9058 lt_prog_compiler_static=
9059 ;;
9060
9061 hpux*)
9062 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9063 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9064 # sets the default TLS model and affects inlining.
9065 case $host_cpu in
9066 hppa*64*)
9067 # +Z the default
9068 ;;
9069 *)
9070 lt_prog_compiler_pic='-fPIC'
9071 ;;
9072 esac
9073 ;;
9074
9075 interix[3-9]*)
9076 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9077 # Instead, we relocate shared libraries at runtime.
9078 ;;
9079
9080 msdosdjgpp*)
9081 # Just because we use GCC doesn't mean we suddenly get shared libraries
9082 # on systems that don't support them.
9083 lt_prog_compiler_can_build_shared=no
9084 enable_shared=no
9085 ;;
9086
9087 *nto* | *qnx*)
9088 # QNX uses GNU C++, but need to define -shared option too, otherwise
9089 # it will coredump.
9090 lt_prog_compiler_pic='-fPIC -shared'
9091 ;;
9092
9093 sysv4*MP*)
9094 if test -d /usr/nec; then
9095 lt_prog_compiler_pic=-Kconform_pic
9096 fi
9097 ;;
9098
9099 *)
9100 lt_prog_compiler_pic='-fPIC'
9101 ;;
9102 esac
9103
9104 case $cc_basename in
9105 nvcc*) # Cuda Compiler Driver 2.2
9106 lt_prog_compiler_wl='-Xlinker '
9107 if test -n "$lt_prog_compiler_pic"; then
9108 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9109 fi
9110 ;;
9111 esac
9112 else
9113 # PORTME Check for flag to pass linker flags through the system compiler.
9114 case $host_os in
9115 aix*)
9116 lt_prog_compiler_wl='-Wl,'
9117 if test ia64 = "$host_cpu"; then
9118 # AIX 5 now supports IA64 processor
9119 lt_prog_compiler_static='-Bstatic'
9120 else
9121 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9122 fi
9123 ;;
9124
9125 darwin* | rhapsody*)
9126 # PIC is the default on this platform
9127 # Common symbols not allowed in MH_DYLIB files
9128 lt_prog_compiler_pic='-fno-common'
9129 case $cc_basename in
9130 nagfor*)
9131 # NAG Fortran compiler
9132 lt_prog_compiler_wl='-Wl,-Wl,,'
9133 lt_prog_compiler_pic='-PIC'
9134 lt_prog_compiler_static='-Bstatic'
9135 ;;
9136 esac
9137 ;;
9138
9139 mingw* | cygwin* | pw32* | os2* | cegcc*)
9140 # This hack is so that the source file can tell whether it is being
9141 # built for inclusion in a dll (and should export symbols for example).
9142 lt_prog_compiler_pic='-DDLL_EXPORT'
9143 case $host_os in
9144 os2*)
9145 lt_prog_compiler_static='$wl-static'
9146 ;;
9147 esac
9148 ;;
9149
9150 hpux9* | hpux10* | hpux11*)
9151 lt_prog_compiler_wl='-Wl,'
9152 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9153 # not for PA HP-UX.
9154 case $host_cpu in
9155 hppa*64*|ia64*)
9156 # +Z the default
9157 ;;
9158 *)
9159 lt_prog_compiler_pic='+Z'
9160 ;;
9161 esac
9162 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9163 lt_prog_compiler_static='$wl-a ${wl}archive'
9164 ;;
9165
9166 irix5* | irix6* | nonstopux*)
9167 lt_prog_compiler_wl='-Wl,'
9168 # PIC (with -KPIC) is the default.
9169 lt_prog_compiler_static='-non_shared'
9170 ;;
9171
9172 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9173 case $cc_basename in
9174 # old Intel for x86_64, which still supported -KPIC.
9175 ecc*)
9176 lt_prog_compiler_wl='-Wl,'
9177 lt_prog_compiler_pic='-KPIC'
9178 lt_prog_compiler_static='-static'
9179 ;;
9180 # flang / f18. f95 an alias for gfortran or flang on Debian
9181 flang* | f18* | f95*)
9182 lt_prog_compiler_wl='-Wl,'
9183 lt_prog_compiler_pic='-fPIC'
9184 lt_prog_compiler_static='-static'
9185 ;;
9186 # icc used to be incompatible with GCC.
9187 # ICC 10 doesn't accept -KPIC any more.
9188 icc* | ifort*)
9189 lt_prog_compiler_wl='-Wl,'
9190 lt_prog_compiler_pic='-fPIC'
9191 lt_prog_compiler_static='-static'
9192 ;;
9193 # Lahey Fortran 8.1.
9194 lf95*)
9195 lt_prog_compiler_wl='-Wl,'
9196 lt_prog_compiler_pic='--shared'
9197 lt_prog_compiler_static='--static'
9198 ;;
9199 nagfor*)
9200 # NAG Fortran compiler
9201 lt_prog_compiler_wl='-Wl,-Wl,,'
9202 lt_prog_compiler_pic='-PIC'
9203 lt_prog_compiler_static='-Bstatic'
9204 ;;
9205 tcc*)
9206 # Fabrice Bellard et al's Tiny C Compiler
9207 lt_prog_compiler_wl='-Wl,'
9208 lt_prog_compiler_pic='-fPIC'
9209 lt_prog_compiler_static='-static'
9210 ;;
9211 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9212 # Portland Group compilers (*not* the Pentium gcc compiler,
9213 # which looks to be a dead project)
9214 lt_prog_compiler_wl='-Wl,'
9215 lt_prog_compiler_pic='-fpic'
9216 lt_prog_compiler_static='-Bstatic'
9217 ;;
9218 ccc*)
9219 lt_prog_compiler_wl='-Wl,'
9220 # All Alpha code is PIC.
9221 lt_prog_compiler_static='-non_shared'
9222 ;;
9223 xl* | bgxl* | bgf* | mpixl*)
9224 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9225 lt_prog_compiler_wl='-Wl,'
9226 lt_prog_compiler_pic='-qpic'
9227 lt_prog_compiler_static='-qstaticlink'
9228 ;;
9229 *)
9230 case `$CC -V 2>&1 | $SED 5q` in
9231 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9232 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9233 lt_prog_compiler_pic='-KPIC'
9234 lt_prog_compiler_static='-Bstatic'
9235 lt_prog_compiler_wl=''
9236 ;;
9237 *Sun\ F* | *Sun*Fortran*)
9238 lt_prog_compiler_pic='-KPIC'
9239 lt_prog_compiler_static='-Bstatic'
9240 lt_prog_compiler_wl='-Qoption ld '
9241 ;;
9242 *Sun\ C*)
9243 # Sun C 5.9
9244 lt_prog_compiler_pic='-KPIC'
9245 lt_prog_compiler_static='-Bstatic'
9246 lt_prog_compiler_wl='-Wl,'
9247 ;;
9248 *Intel*\ [CF]*Compiler*)
9249 lt_prog_compiler_wl='-Wl,'
9250 lt_prog_compiler_pic='-fPIC'
9251 lt_prog_compiler_static='-static'
9252 ;;
9253 *Portland\ Group*)
9254 lt_prog_compiler_wl='-Wl,'
9255 lt_prog_compiler_pic='-fpic'
9256 lt_prog_compiler_static='-Bstatic'
9257 ;;
9258 esac
9259 ;;
9260 esac
9261 ;;
9262
9263 newsos6)
9264 lt_prog_compiler_pic='-KPIC'
9265 lt_prog_compiler_static='-Bstatic'
9266 ;;
9267
9268 *nto* | *qnx*)
9269 # QNX uses GNU C++, but need to define -shared option too, otherwise
9270 # it will coredump.
9271 lt_prog_compiler_pic='-fPIC -shared'
9272 ;;
9273
9274 osf3* | osf4* | osf5*)
9275 lt_prog_compiler_wl='-Wl,'
9276 # All OSF/1 code is PIC.
9277 lt_prog_compiler_static='-non_shared'
9278 ;;
9279
9280 rdos*)
9281 lt_prog_compiler_static='-non_shared'
9282 ;;
9283
9284 solaris*)
9285 lt_prog_compiler_pic='-KPIC'
9286 lt_prog_compiler_static='-Bstatic'
9287 case $cc_basename in
9288 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9289 lt_prog_compiler_wl='-Qoption ld ';;
9290 *)
9291 lt_prog_compiler_wl='-Wl,';;
9292 esac
9293 ;;
9294
9295 sunos4*)
9296 lt_prog_compiler_wl='-Qoption ld '
9297 lt_prog_compiler_pic='-PIC'
9298 lt_prog_compiler_static='-Bstatic'
9299 ;;
9300
9301 sysv4 | sysv4.2uw2* | sysv4.3*)
9302 lt_prog_compiler_wl='-Wl,'
9303 lt_prog_compiler_pic='-KPIC'
9304 lt_prog_compiler_static='-Bstatic'
9305 ;;
9306
9307 sysv4*MP*)
9308 if test -d /usr/nec; then
9309 lt_prog_compiler_pic='-Kconform_pic'
9310 lt_prog_compiler_static='-Bstatic'
9311 fi
9312 ;;
9313
9314 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9315 lt_prog_compiler_wl='-Wl,'
9316 lt_prog_compiler_pic='-KPIC'
9317 lt_prog_compiler_static='-Bstatic'
9318 ;;
9319
9320 unicos*)
9321 lt_prog_compiler_wl='-Wl,'
9322 lt_prog_compiler_can_build_shared=no
9323 ;;
9324
9325 uts4*)
9326 lt_prog_compiler_pic='-pic'
9327 lt_prog_compiler_static='-Bstatic'
9328 ;;
9329
9330 *)
9331 lt_prog_compiler_can_build_shared=no
9332 ;;
9333 esac
9334 fi
9335
9336 case $host_os in
9337 # For platforms that do not support PIC, -DPIC is meaningless:
9338 *djgpp*)
9339 lt_prog_compiler_pic=
9340 ;;
9341 *)
9342 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9343 ;;
9344 esac
9345
9346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9347 printf %s "checking for $compiler option to produce PIC... " >&6; }
9348 if test ${lt_cv_prog_compiler_pic+y}
9349 then :
9350 printf %s "(cached) " >&6
9351 else $as_nop
9352 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9353 fi
9354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9355 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9356 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9357
9358 #
9359 # Check to make sure the PIC flag actually works.
9360 #
9361 if test -n "$lt_prog_compiler_pic"; then
9362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9363 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9364 if test ${lt_cv_prog_compiler_pic_works+y}
9365 then :
9366 printf %s "(cached) " >&6
9367 else $as_nop
9368 lt_cv_prog_compiler_pic_works=no
9369 ac_outfile=conftest.$ac_objext
9370 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9371 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9372 # Insert the option either (1) after the last *FLAGS variable, or
9373 # (2) before a word containing "conftest.", or (3) at the end.
9374 # Note that $ac_compile itself does not contain backslashes and begins
9375 # with a dollar sign (not a hyphen), so the echo should work correctly.
9376 # The option is referenced via a variable to avoid confusing sed.
9377 lt_compile=`echo "$ac_compile" | $SED \
9378 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9379 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9380 -e 's:$: $lt_compiler_flag:'`
9381 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9382 (eval "$lt_compile" 2>conftest.err)
9383 ac_status=$?
9384 cat conftest.err >&5
9385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386 if (exit $ac_status) && test -s "$ac_outfile"; then
9387 # The compiler can only warn and ignore the option if not recognized
9388 # So say no if there are warnings other than the usual output.
9389 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9390 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9391 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9392 lt_cv_prog_compiler_pic_works=yes
9393 fi
9394 fi
9395 $RM conftest*
9396
9397 fi
9398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9399 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9400
9401 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9402 case $lt_prog_compiler_pic in
9403 "" | " "*) ;;
9404 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9405 esac
9406 else
9407 lt_prog_compiler_pic=
9408 lt_prog_compiler_can_build_shared=no
9409 fi
9410
9411 fi
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423 #
9424 # Check to make sure the static flag actually works.
9425 #
9426 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9428 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9429 if test ${lt_cv_prog_compiler_static_works+y}
9430 then :
9431 printf %s "(cached) " >&6
9432 else $as_nop
9433 lt_cv_prog_compiler_static_works=no
9434 save_LDFLAGS=$LDFLAGS
9435 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9436 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9437 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9438 # The linker can only warn and ignore the option if not recognized
9439 # So say no if there are warnings
9440 if test -s conftest.err; then
9441 # Append any errors to the config.log.
9442 cat conftest.err 1>&5
9443 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9444 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9445 if diff conftest.exp conftest.er2 >/dev/null; then
9446 lt_cv_prog_compiler_static_works=yes
9447 fi
9448 else
9449 lt_cv_prog_compiler_static_works=yes
9450 fi
9451 fi
9452 $RM -r conftest*
9453 LDFLAGS=$save_LDFLAGS
9454
9455 fi
9456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9457 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9458
9459 if test yes = "$lt_cv_prog_compiler_static_works"; then
9460 :
9461 else
9462 lt_prog_compiler_static=
9463 fi
9464
9465
9466
9467
9468
9469
9470
9471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9472 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9473 if test ${lt_cv_prog_compiler_c_o+y}
9474 then :
9475 printf %s "(cached) " >&6
9476 else $as_nop
9477 lt_cv_prog_compiler_c_o=no
9478 $RM -r conftest 2>/dev/null
9479 mkdir conftest
9480 cd conftest
9481 mkdir out
9482 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9483
9484 lt_compiler_flag="-o out/conftest2.$ac_objext"
9485 # Insert the option either (1) after the last *FLAGS variable, or
9486 # (2) before a word containing "conftest.", or (3) at the end.
9487 # Note that $ac_compile itself does not contain backslashes and begins
9488 # with a dollar sign (not a hyphen), so the echo should work correctly.
9489 lt_compile=`echo "$ac_compile" | $SED \
9490 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9491 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9492 -e 's:$: $lt_compiler_flag:'`
9493 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9494 (eval "$lt_compile" 2>out/conftest.err)
9495 ac_status=$?
9496 cat out/conftest.err >&5
9497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9499 then
9500 # The compiler can only warn and ignore the option if not recognized
9501 # So say no if there are warnings
9502 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9503 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9504 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9505 lt_cv_prog_compiler_c_o=yes
9506 fi
9507 fi
9508 chmod u+w . 2>&5
9509 $RM conftest*
9510 # SGI C++ compiler will create directory out/ii_files/ for
9511 # template instantiation
9512 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9513 $RM out/* && rmdir out
9514 cd ..
9515 $RM -r conftest
9516 $RM conftest*
9517
9518 fi
9519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9520 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9521
9522
9523
9524
9525
9526
9527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9528 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9529 if test ${lt_cv_prog_compiler_c_o+y}
9530 then :
9531 printf %s "(cached) " >&6
9532 else $as_nop
9533 lt_cv_prog_compiler_c_o=no
9534 $RM -r conftest 2>/dev/null
9535 mkdir conftest
9536 cd conftest
9537 mkdir out
9538 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9539
9540 lt_compiler_flag="-o out/conftest2.$ac_objext"
9541 # Insert the option either (1) after the last *FLAGS variable, or
9542 # (2) before a word containing "conftest.", or (3) at the end.
9543 # Note that $ac_compile itself does not contain backslashes and begins
9544 # with a dollar sign (not a hyphen), so the echo should work correctly.
9545 lt_compile=`echo "$ac_compile" | $SED \
9546 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9547 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9548 -e 's:$: $lt_compiler_flag:'`
9549 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9550 (eval "$lt_compile" 2>out/conftest.err)
9551 ac_status=$?
9552 cat out/conftest.err >&5
9553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9555 then
9556 # The compiler can only warn and ignore the option if not recognized
9557 # So say no if there are warnings
9558 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9559 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9560 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9561 lt_cv_prog_compiler_c_o=yes
9562 fi
9563 fi
9564 chmod u+w . 2>&5
9565 $RM conftest*
9566 # SGI C++ compiler will create directory out/ii_files/ for
9567 # template instantiation
9568 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9569 $RM out/* && rmdir out
9570 cd ..
9571 $RM -r conftest
9572 $RM conftest*
9573
9574 fi
9575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9576 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9577
9578
9579
9580
9581 hard_links=nottested
9582 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9583 # do not overwrite the value of need_locks provided by the user
9584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9585 printf %s "checking if we can lock with hard links... " >&6; }
9586 hard_links=yes
9587 $RM conftest*
9588 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9589 touch conftest.a
9590 ln conftest.a conftest.b 2>&5 || hard_links=no
9591 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9593 printf "%s\n" "$hard_links" >&6; }
9594 if test no = "$hard_links"; then
9595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9596 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9597 need_locks=warn
9598 fi
9599 else
9600 need_locks=no
9601 fi
9602
9603
9604
9605
9606
9607
9608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9609 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9610
9611 runpath_var=
9612 allow_undefined_flag=
9613 always_export_symbols=no
9614 archive_cmds=
9615 archive_expsym_cmds=
9616 compiler_needs_object=no
9617 enable_shared_with_static_runtimes=no
9618 export_dynamic_flag_spec=
9619 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9620 hardcode_automatic=no
9621 hardcode_direct=no
9622 hardcode_direct_absolute=no
9623 hardcode_libdir_flag_spec=
9624 hardcode_libdir_separator=
9625 hardcode_minus_L=no
9626 hardcode_shlibpath_var=unsupported
9627 inherit_rpath=no
9628 link_all_deplibs=unknown
9629 module_cmds=
9630 module_expsym_cmds=
9631 old_archive_from_new_cmds=
9632 old_archive_from_expsyms_cmds=
9633 thread_safe_flag_spec=
9634 whole_archive_flag_spec=
9635 # include_expsyms should be a list of space-separated symbols to be *always*
9636 # included in the symbol list
9637 include_expsyms=
9638 # exclude_expsyms can be an extended regexp of symbols to exclude
9639 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9640 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9641 # as well as any symbol that contains 'd'.
9642 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9643 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9644 # platforms (ab)use it in PIC code, but their linkers get confused if
9645 # the symbol is explicitly referenced. Since portable code cannot
9646 # rely on this symbol name, it's probably fine to never include it in
9647 # preloaded symbol tables.
9648 # Exclude shared library initialization/finalization symbols.
9649 extract_expsyms_cmds=
9650
9651 case $host_os in
9652 cygwin* | mingw* | pw32* | cegcc*)
9653 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9654 # When not using gcc, we currently assume that we are using
9655 # Microsoft Visual C++ or Intel C++ Compiler.
9656 if test yes != "$GCC"; then
9657 with_gnu_ld=no
9658 fi
9659 ;;
9660 interix*)
9661 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9662 with_gnu_ld=yes
9663 ;;
9664 openbsd* | bitrig*)
9665 with_gnu_ld=no
9666 ;;
9667 linux* | k*bsd*-gnu | gnu*)
9668 link_all_deplibs=no
9669 ;;
9670 esac
9671
9672 ld_shlibs=yes
9673
9674 # On some targets, GNU ld is compatible enough with the native linker
9675 # that we're better off using the native interface for both.
9676 lt_use_gnu_ld_interface=no
9677 if test yes = "$with_gnu_ld"; then
9678 case $host_os in
9679 aix*)
9680 # The AIX port of GNU ld has always aspired to compatibility
9681 # with the native linker. However, as the warning in the GNU ld
9682 # block says, versions before 2.19.5* couldn't really create working
9683 # shared libraries, regardless of the interface used.
9684 case `$LD -v 2>&1` in
9685 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9686 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9687 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9688 *)
9689 lt_use_gnu_ld_interface=yes
9690 ;;
9691 esac
9692 ;;
9693 *)
9694 lt_use_gnu_ld_interface=yes
9695 ;;
9696 esac
9697 fi
9698
9699 if test yes = "$lt_use_gnu_ld_interface"; then
9700 # If archive_cmds runs LD, not CC, wlarc should be empty
9701 wlarc='$wl'
9702
9703 # Set some defaults for GNU ld with shared library support. These
9704 # are reset later if shared libraries are not supported. Putting them
9705 # here allows them to be overridden if necessary.
9706 runpath_var=LD_RUN_PATH
9707 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9708 export_dynamic_flag_spec='$wl--export-dynamic'
9709 # ancient GNU ld didn't support --whole-archive et. al.
9710 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9711 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9712 else
9713 whole_archive_flag_spec=
9714 fi
9715 supports_anon_versioning=no
9716 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9717 *GNU\ gold*) supports_anon_versioning=yes ;;
9718 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9719 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9720 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9721 *\ 2.11.*) ;; # other 2.11 versions
9722 *) supports_anon_versioning=yes ;;
9723 esac
9724
9725 # See if GNU ld supports shared libraries.
9726 case $host_os in
9727 aix[3-9]*)
9728 # On AIX/PPC, the GNU linker is very broken
9729 if test ia64 != "$host_cpu"; then
9730 ld_shlibs=no
9731 cat <<_LT_EOF 1>&2
9732
9733 *** Warning: the GNU linker, at least up to release 2.19, is reported
9734 *** to be unable to reliably create shared libraries on AIX.
9735 *** Therefore, libtool is disabling shared libraries support. If you
9736 *** really care for shared libraries, you may want to install binutils
9737 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9738 *** You will then need to restart the configuration process.
9739
9740 _LT_EOF
9741 fi
9742 ;;
9743
9744 amigaos*)
9745 case $host_cpu in
9746 powerpc)
9747 # see comment about AmigaOS4 .so support
9748 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9749 archive_expsym_cmds=''
9750 ;;
9751 m68k)
9752 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)'
9753 hardcode_libdir_flag_spec='-L$libdir'
9754 hardcode_minus_L=yes
9755 ;;
9756 esac
9757 ;;
9758
9759 beos*)
9760 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9761 allow_undefined_flag=unsupported
9762 # Joseph Beckenbach <[email protected]> says some releases of gcc
9763 # support --undefined. This deserves some investigation. FIXME
9764 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9765 else
9766 ld_shlibs=no
9767 fi
9768 ;;
9769
9770 cygwin* | mingw* | pw32* | cegcc*)
9771 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9772 # as there is no search path for DLLs.
9773 hardcode_libdir_flag_spec='-L$libdir'
9774 export_dynamic_flag_spec='$wl--export-all-symbols'
9775 allow_undefined_flag=unsupported
9776 always_export_symbols=no
9777 enable_shared_with_static_runtimes=yes
9778 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'
9779 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9780
9781 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9782 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9783 # If the export-symbols file already is a .def file, use it as
9784 # is; otherwise, prepend EXPORTS...
9785 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9786 cp $export_symbols $output_objdir/$soname.def;
9787 else
9788 echo EXPORTS > $output_objdir/$soname.def;
9789 cat $export_symbols >> $output_objdir/$soname.def;
9790 fi~
9791 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9792 else
9793 ld_shlibs=no
9794 fi
9795 ;;
9796
9797 haiku*)
9798 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9799 link_all_deplibs=yes
9800 ;;
9801
9802 os2*)
9803 hardcode_libdir_flag_spec='-L$libdir'
9804 hardcode_minus_L=yes
9805 allow_undefined_flag=unsupported
9806 shrext_cmds=.dll
9807 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9808 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9809 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9810 $ECHO EXPORTS >> $output_objdir/$libname.def~
9811 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9812 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9813 emximp -o $lib $output_objdir/$libname.def'
9814 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9815 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9816 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9817 $ECHO EXPORTS >> $output_objdir/$libname.def~
9818 prefix_cmds="$SED"~
9819 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9820 prefix_cmds="$prefix_cmds -e 1d";
9821 fi~
9822 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9823 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9824 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9825 emximp -o $lib $output_objdir/$libname.def'
9826 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9827 enable_shared_with_static_runtimes=yes
9828 file_list_spec='@'
9829 ;;
9830
9831 interix[3-9]*)
9832 hardcode_direct=no
9833 hardcode_shlibpath_var=no
9834 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9835 export_dynamic_flag_spec='$wl-E'
9836 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9837 # Instead, shared libraries are loaded at an image base (0x10000000 by
9838 # default) and relocated if they conflict, which is a slow very memory
9839 # consuming and fragmenting process. To avoid this, we pick a random,
9840 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9841 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9842 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9843 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'
9844 ;;
9845
9846 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9847 tmp_diet=no
9848 if test linux-dietlibc = "$host_os"; then
9849 case $cc_basename in
9850 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9851 esac
9852 fi
9853 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9854 && test no = "$tmp_diet"
9855 then
9856 tmp_addflag=' $pic_flag'
9857 tmp_sharedflag='-shared'
9858 case $cc_basename,$host_cpu in
9859 pgcc*) # Portland Group C compiler
9860 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'
9861 tmp_addflag=' $pic_flag'
9862 ;;
9863 pgf77* | pgf90* | pgf95* | pgfortran*)
9864 # Portland Group f77 and f90 compilers
9865 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'
9866 tmp_addflag=' $pic_flag -Mnomain' ;;
9867 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9868 tmp_addflag=' -i_dynamic' ;;
9869 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9870 tmp_addflag=' -i_dynamic -nofor_main' ;;
9871 ifc* | ifort*) # Intel Fortran compiler
9872 tmp_addflag=' -nofor_main' ;;
9873 lf95*) # Lahey Fortran 8.1
9874 whole_archive_flag_spec=
9875 tmp_sharedflag='--shared' ;;
9876 nagfor*) # NAGFOR 5.3
9877 tmp_sharedflag='-Wl,-shared' ;;
9878 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9879 tmp_sharedflag='-qmkshrobj'
9880 tmp_addflag= ;;
9881 nvcc*) # Cuda Compiler Driver 2.2
9882 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'
9883 compiler_needs_object=yes
9884 ;;
9885 esac
9886 case `$CC -V 2>&1 | $SED 5q` in
9887 *Sun\ C*) # Sun C 5.9
9888 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'
9889 compiler_needs_object=yes
9890 tmp_sharedflag='-G' ;;
9891 *Sun\ F*) # Sun Fortran 8.3
9892 tmp_sharedflag='-G' ;;
9893 esac
9894 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9895
9896 if test yes = "$supports_anon_versioning"; then
9897 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9898 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9899 echo "local: *; };" >> $output_objdir/$libname.ver~
9900 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9901 fi
9902
9903 case $cc_basename in
9904 tcc*)
9905 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9906 export_dynamic_flag_spec='-rdynamic'
9907 ;;
9908 xlf* | bgf* | bgxlf* | mpixlf*)
9909 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9910 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9911 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9912 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9913 if test yes = "$supports_anon_versioning"; then
9914 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9915 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9916 echo "local: *; };" >> $output_objdir/$libname.ver~
9917 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9918 fi
9919 ;;
9920 esac
9921 else
9922 ld_shlibs=no
9923 fi
9924 ;;
9925
9926 netbsd* | netbsdelf*-gnu)
9927 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9928 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9929 wlarc=
9930 else
9931 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9932 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9933 fi
9934 ;;
9935
9936 solaris*)
9937 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9938 ld_shlibs=no
9939 cat <<_LT_EOF 1>&2
9940
9941 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9942 *** create shared libraries on Solaris systems. Therefore, libtool
9943 *** is disabling shared libraries support. We urge you to upgrade GNU
9944 *** binutils to release 2.9.1 or newer. Another option is to modify
9945 *** your PATH or compiler configuration so that the native linker is
9946 *** used, and then restart.
9947
9948 _LT_EOF
9949 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9950 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9951 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9952 else
9953 ld_shlibs=no
9954 fi
9955 ;;
9956
9957 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9958 case `$LD -v 2>&1` in
9959 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9960 ld_shlibs=no
9961 cat <<_LT_EOF 1>&2
9962
9963 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9964 *** reliably create shared libraries on SCO systems. Therefore, libtool
9965 *** is disabling shared libraries support. We urge you to upgrade GNU
9966 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9967 *** your PATH or compiler configuration so that the native linker is
9968 *** used, and then restart.
9969
9970 _LT_EOF
9971 ;;
9972 *)
9973 # For security reasons, it is highly recommended that you always
9974 # use absolute paths for naming shared libraries, and exclude the
9975 # DT_RUNPATH tag from executables and libraries. But doing so
9976 # requires that you compile everything twice, which is a pain.
9977 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9978 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9979 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9980 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9981 else
9982 ld_shlibs=no
9983 fi
9984 ;;
9985 esac
9986 ;;
9987
9988 sunos4*)
9989 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9990 wlarc=
9991 hardcode_direct=yes
9992 hardcode_shlibpath_var=no
9993 ;;
9994
9995 *)
9996 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9997 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9998 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9999 else
10000 ld_shlibs=no
10001 fi
10002 ;;
10003 esac
10004
10005 if test no = "$ld_shlibs"; then
10006 runpath_var=
10007 hardcode_libdir_flag_spec=
10008 export_dynamic_flag_spec=
10009 whole_archive_flag_spec=
10010 fi
10011 else
10012 # PORTME fill in a description of your system's linker (not GNU ld)
10013 case $host_os in
10014 aix3*)
10015 allow_undefined_flag=unsupported
10016 always_export_symbols=yes
10017 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'
10018 # Note: this linker hardcodes the directories in LIBPATH if there
10019 # are no directories specified by -L.
10020 hardcode_minus_L=yes
10021 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10022 # Neither direct hardcoding nor static linking is supported with a
10023 # broken collect2.
10024 hardcode_direct=unsupported
10025 fi
10026 ;;
10027
10028 aix[4-9]*)
10029 if test ia64 = "$host_cpu"; then
10030 # On IA64, the linker does run time linking by default, so we don't
10031 # have to do anything special.
10032 aix_use_runtimelinking=no
10033 exp_sym_flag='-Bexport'
10034 no_entry_flag=
10035 else
10036 # If we're using GNU nm, then we don't want the "-C" option.
10037 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10038 # Without the "-l" option, or with the "-B" option, AIX nm treats
10039 # weak defined symbols like other global defined symbols, whereas
10040 # GNU nm marks them as "W".
10041 # While the 'weak' keyword is ignored in the Export File, we need
10042 # it in the Import File for the 'aix-soname' feature, so we have
10043 # to replace the "-B" option with "-P" for AIX nm.
10044 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10045 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'
10046 else
10047 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'
10048 fi
10049 aix_use_runtimelinking=no
10050
10051 # Test if we are trying to use run time linking or normal
10052 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10053 # have runtime linking enabled, and use it for executables.
10054 # For shared libraries, we enable/disable runtime linking
10055 # depending on the kind of the shared library created -
10056 # when "with_aix_soname,aix_use_runtimelinking" is:
10057 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10058 # "aix,yes" lib.so shared, rtl:yes, for executables
10059 # lib.a static archive
10060 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10061 # lib.a(lib.so.V) shared, rtl:no, for executables
10062 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10063 # lib.a(lib.so.V) shared, rtl:no
10064 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10065 # lib.a static archive
10066 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10067 for ld_flag in $LDFLAGS; do
10068 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10069 aix_use_runtimelinking=yes
10070 break
10071 fi
10072 done
10073 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10074 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10075 # so we don't have lib.a shared libs to link our executables.
10076 # We have to force runtime linking in this case.
10077 aix_use_runtimelinking=yes
10078 LDFLAGS="$LDFLAGS -Wl,-brtl"
10079 fi
10080 ;;
10081 esac
10082
10083 exp_sym_flag='-bexport'
10084 no_entry_flag='-bnoentry'
10085 fi
10086
10087 # When large executables or shared objects are built, AIX ld can
10088 # have problems creating the table of contents. If linking a library
10089 # or program results in "error TOC overflow" add -mminimal-toc to
10090 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10091 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10092
10093 archive_cmds=''
10094 hardcode_direct=yes
10095 hardcode_direct_absolute=yes
10096 hardcode_libdir_separator=':'
10097 link_all_deplibs=yes
10098 file_list_spec='$wl-f,'
10099 case $with_aix_soname,$aix_use_runtimelinking in
10100 aix,*) ;; # traditional, no import file
10101 svr4,* | *,yes) # use import file
10102 # The Import File defines what to hardcode.
10103 hardcode_direct=no
10104 hardcode_direct_absolute=no
10105 ;;
10106 esac
10107
10108 if test yes = "$GCC"; then
10109 case $host_os in aix4.[012]|aix4.[012].*)
10110 # We only want to do this on AIX 4.2 and lower, the check
10111 # below for broken collect2 doesn't work under 4.3+
10112 collect2name=`$CC -print-prog-name=collect2`
10113 if test -f "$collect2name" &&
10114 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10115 then
10116 # We have reworked collect2
10117 :
10118 else
10119 # We have old collect2
10120 hardcode_direct=unsupported
10121 # It fails to find uninstalled libraries when the uninstalled
10122 # path is not listed in the libpath. Setting hardcode_minus_L
10123 # to unsupported forces relinking
10124 hardcode_minus_L=yes
10125 hardcode_libdir_flag_spec='-L$libdir'
10126 hardcode_libdir_separator=
10127 fi
10128 ;;
10129 esac
10130 shared_flag='-shared'
10131 if test yes = "$aix_use_runtimelinking"; then
10132 shared_flag="$shared_flag "'$wl-G'
10133 fi
10134 # Need to ensure runtime linking is disabled for the traditional
10135 # shared library, or the linker may eventually find shared libraries
10136 # /with/ Import File - we do not want to mix them.
10137 shared_flag_aix='-shared'
10138 shared_flag_svr4='-shared $wl-G'
10139 else
10140 # not using gcc
10141 if test ia64 = "$host_cpu"; then
10142 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10143 # chokes on -Wl,-G. The following line is correct:
10144 shared_flag='-G'
10145 else
10146 if test yes = "$aix_use_runtimelinking"; then
10147 shared_flag='$wl-G'
10148 else
10149 shared_flag='$wl-bM:SRE'
10150 fi
10151 shared_flag_aix='$wl-bM:SRE'
10152 shared_flag_svr4='$wl-G'
10153 fi
10154 fi
10155
10156 export_dynamic_flag_spec='$wl-bexpall'
10157 # It seems that -bexpall does not export symbols beginning with
10158 # underscore (_), so it is better to generate a list of symbols to export.
10159 always_export_symbols=yes
10160 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10161 # Warning - without using the other runtime loading flags (-brtl),
10162 # -berok will link without error, but may produce a broken library.
10163 allow_undefined_flag='-berok'
10164 # Determine the default libpath from the value encoded in an
10165 # empty executable.
10166 if test set = "${lt_cv_aix_libpath+set}"; then
10167 aix_libpath=$lt_cv_aix_libpath
10168 else
10169 if test ${lt_cv_aix_libpath_+y}
10170 then :
10171 printf %s "(cached) " >&6
10172 else $as_nop
10173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10174 /* end confdefs.h. */
10175
10176 int
10177 main (void)
10178 {
10179
10180 ;
10181 return 0;
10182 }
10183 _ACEOF
10184 if ac_fn_c_try_link "$LINENO"
10185 then :
10186
10187 lt_aix_libpath_sed='
10188 /Import File Strings/,/^$/ {
10189 /^0/ {
10190 s/^0 *\([^ ]*\) *$/\1/
10191 p
10192 }
10193 }'
10194 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10195 # Check for a 64-bit object if we didn't find anything.
10196 if test -z "$lt_cv_aix_libpath_"; then
10197 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10198 fi
10199 fi
10200 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10201 conftest$ac_exeext conftest.$ac_ext
10202 if test -z "$lt_cv_aix_libpath_"; then
10203 lt_cv_aix_libpath_=/usr/lib:/lib
10204 fi
10205
10206 fi
10207
10208 aix_libpath=$lt_cv_aix_libpath_
10209 fi
10210
10211 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10212 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
10213 else
10214 if test ia64 = "$host_cpu"; then
10215 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10216 allow_undefined_flag="-z nodefs"
10217 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"
10218 else
10219 # Determine the default libpath from the value encoded in an
10220 # empty executable.
10221 if test set = "${lt_cv_aix_libpath+set}"; then
10222 aix_libpath=$lt_cv_aix_libpath
10223 else
10224 if test ${lt_cv_aix_libpath_+y}
10225 then :
10226 printf %s "(cached) " >&6
10227 else $as_nop
10228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10229 /* end confdefs.h. */
10230
10231 int
10232 main (void)
10233 {
10234
10235 ;
10236 return 0;
10237 }
10238 _ACEOF
10239 if ac_fn_c_try_link "$LINENO"
10240 then :
10241
10242 lt_aix_libpath_sed='
10243 /Import File Strings/,/^$/ {
10244 /^0/ {
10245 s/^0 *\([^ ]*\) *$/\1/
10246 p
10247 }
10248 }'
10249 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10250 # Check for a 64-bit object if we didn't find anything.
10251 if test -z "$lt_cv_aix_libpath_"; then
10252 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10253 fi
10254 fi
10255 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10256 conftest$ac_exeext conftest.$ac_ext
10257 if test -z "$lt_cv_aix_libpath_"; then
10258 lt_cv_aix_libpath_=/usr/lib:/lib
10259 fi
10260
10261 fi
10262
10263 aix_libpath=$lt_cv_aix_libpath_
10264 fi
10265
10266 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10267 # Warning - without using the other run time loading flags,
10268 # -berok will link without error, but may produce a broken library.
10269 no_undefined_flag=' $wl-bernotok'
10270 allow_undefined_flag=' $wl-berok'
10271 if test yes = "$with_gnu_ld"; then
10272 # We only use this code for GNU lds that support --whole-archive.
10273 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10274 else
10275 # Exported symbols can be pulled into shared objects from archives
10276 whole_archive_flag_spec='$convenience'
10277 fi
10278 archive_cmds_need_lc=yes
10279 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10280 # -brtl affects multiple linker settings, -berok does not and is overridden later
10281 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10282 if test svr4 != "$with_aix_soname"; then
10283 # This is similar to how AIX traditionally builds its shared libraries.
10284 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'
10285 fi
10286 if test aix != "$with_aix_soname"; then
10287 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'
10288 else
10289 # used by -dlpreopen to get the symbols
10290 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10291 fi
10292 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10293 fi
10294 fi
10295 ;;
10296
10297 amigaos*)
10298 case $host_cpu in
10299 powerpc)
10300 # see comment about AmigaOS4 .so support
10301 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10302 archive_expsym_cmds=''
10303 ;;
10304 m68k)
10305 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)'
10306 hardcode_libdir_flag_spec='-L$libdir'
10307 hardcode_minus_L=yes
10308 ;;
10309 esac
10310 ;;
10311
10312 bsdi[45]*)
10313 export_dynamic_flag_spec=-rdynamic
10314 ;;
10315
10316 cygwin* | mingw* | pw32* | cegcc*)
10317 # When not using gcc, we currently assume that we are using
10318 # Microsoft Visual C++ or Intel C++ Compiler.
10319 # hardcode_libdir_flag_spec is actually meaningless, as there is
10320 # no search path for DLLs.
10321 case $cc_basename in
10322 cl* | icl*)
10323 # Native MSVC or ICC
10324 hardcode_libdir_flag_spec=' '
10325 allow_undefined_flag=unsupported
10326 always_export_symbols=yes
10327 file_list_spec='@'
10328 # Tell ltmain to make .lib files, not .a files.
10329 libext=lib
10330 # Tell ltmain to make .dll files, not .so files.
10331 shrext_cmds=.dll
10332 # FIXME: Setting linknames here is a bad hack.
10333 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10334 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10335 cp "$export_symbols" "$output_objdir/$soname.def";
10336 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10337 else
10338 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10339 fi~
10340 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10341 linknames='
10342 # The linker will not automatically build a static lib if we build a DLL.
10343 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10344 enable_shared_with_static_runtimes=yes
10345 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10346 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10347 # Don't use ranlib
10348 old_postinstall_cmds='chmod 644 $oldlib'
10349 postlink_cmds='lt_outputfile="@OUTPUT@"~
10350 lt_tool_outputfile="@TOOL_OUTPUT@"~
10351 case $lt_outputfile in
10352 *.exe|*.EXE) ;;
10353 *)
10354 lt_outputfile=$lt_outputfile.exe
10355 lt_tool_outputfile=$lt_tool_outputfile.exe
10356 ;;
10357 esac~
10358 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10359 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10360 $RM "$lt_outputfile.manifest";
10361 fi'
10362 ;;
10363 *)
10364 # Assume MSVC and ICC wrapper
10365 hardcode_libdir_flag_spec=' '
10366 allow_undefined_flag=unsupported
10367 # Tell ltmain to make .lib files, not .a files.
10368 libext=lib
10369 # Tell ltmain to make .dll files, not .so files.
10370 shrext_cmds=.dll
10371 # FIXME: Setting linknames here is a bad hack.
10372 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10373 # The linker will automatically build a .lib file if we build a DLL.
10374 old_archive_from_new_cmds='true'
10375 # FIXME: Should let the user specify the lib program.
10376 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10377 enable_shared_with_static_runtimes=yes
10378 ;;
10379 esac
10380 ;;
10381
10382 darwin* | rhapsody*)
10383
10384
10385 archive_cmds_need_lc=no
10386 hardcode_direct=no
10387 hardcode_automatic=yes
10388 hardcode_shlibpath_var=unsupported
10389 if test yes = "$lt_cv_ld_force_load"; then
10390 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\"`'
10391
10392 else
10393 whole_archive_flag_spec=''
10394 fi
10395 link_all_deplibs=yes
10396 allow_undefined_flag=$_lt_dar_allow_undefined
10397 case $cc_basename in
10398 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10399 *) _lt_dar_can_shared=$GCC ;;
10400 esac
10401 if test yes = "$_lt_dar_can_shared"; then
10402 output_verbose_link_cmd=func_echo_all
10403 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10404 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10405 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"
10406 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"
10407
10408 else
10409 ld_shlibs=no
10410 fi
10411
10412 ;;
10413
10414 dgux*)
10415 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10416 hardcode_libdir_flag_spec='-L$libdir'
10417 hardcode_shlibpath_var=no
10418 ;;
10419
10420 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10421 # support. Future versions do this automatically, but an explicit c++rt0.o
10422 # does not break anything, and helps significantly (at the cost of a little
10423 # extra space).
10424 freebsd2.2*)
10425 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10426 hardcode_libdir_flag_spec='-R$libdir'
10427 hardcode_direct=yes
10428 hardcode_shlibpath_var=no
10429 ;;
10430
10431 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10432 freebsd2.*)
10433 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10434 hardcode_direct=yes
10435 hardcode_minus_L=yes
10436 hardcode_shlibpath_var=no
10437 ;;
10438
10439 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10440 freebsd* | dragonfly* | midnightbsd*)
10441 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10442 hardcode_libdir_flag_spec='-R$libdir'
10443 hardcode_direct=yes
10444 hardcode_shlibpath_var=no
10445 ;;
10446
10447 hpux9*)
10448 if test yes = "$GCC"; then
10449 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'
10450 else
10451 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'
10452 fi
10453 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10454 hardcode_libdir_separator=:
10455 hardcode_direct=yes
10456
10457 # hardcode_minus_L: Not really in the search PATH,
10458 # but as the default location of the library.
10459 hardcode_minus_L=yes
10460 export_dynamic_flag_spec='$wl-E'
10461 ;;
10462
10463 hpux10*)
10464 if test yes,no = "$GCC,$with_gnu_ld"; then
10465 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10466 else
10467 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10468 fi
10469 if test no = "$with_gnu_ld"; then
10470 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10471 hardcode_libdir_separator=:
10472 hardcode_direct=yes
10473 hardcode_direct_absolute=yes
10474 export_dynamic_flag_spec='$wl-E'
10475 # hardcode_minus_L: Not really in the search PATH,
10476 # but as the default location of the library.
10477 hardcode_minus_L=yes
10478 fi
10479 ;;
10480
10481 hpux11*)
10482 if test yes,no = "$GCC,$with_gnu_ld"; then
10483 case $host_cpu in
10484 hppa*64*)
10485 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10486 ;;
10487 ia64*)
10488 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10489 ;;
10490 *)
10491 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10492 ;;
10493 esac
10494 else
10495 case $host_cpu in
10496 hppa*64*)
10497 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10498 ;;
10499 ia64*)
10500 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10501 ;;
10502 *)
10503
10504 # Older versions of the 11.00 compiler do not understand -b yet
10505 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10507 printf %s "checking if $CC understands -b... " >&6; }
10508 if test ${lt_cv_prog_compiler__b+y}
10509 then :
10510 printf %s "(cached) " >&6
10511 else $as_nop
10512 lt_cv_prog_compiler__b=no
10513 save_LDFLAGS=$LDFLAGS
10514 LDFLAGS="$LDFLAGS -b"
10515 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10516 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10517 # The linker can only warn and ignore the option if not recognized
10518 # So say no if there are warnings
10519 if test -s conftest.err; then
10520 # Append any errors to the config.log.
10521 cat conftest.err 1>&5
10522 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10523 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10524 if diff conftest.exp conftest.er2 >/dev/null; then
10525 lt_cv_prog_compiler__b=yes
10526 fi
10527 else
10528 lt_cv_prog_compiler__b=yes
10529 fi
10530 fi
10531 $RM -r conftest*
10532 LDFLAGS=$save_LDFLAGS
10533
10534 fi
10535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10536 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10537
10538 if test yes = "$lt_cv_prog_compiler__b"; then
10539 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10540 else
10541 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10542 fi
10543
10544 ;;
10545 esac
10546 fi
10547 if test no = "$with_gnu_ld"; then
10548 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10549 hardcode_libdir_separator=:
10550
10551 case $host_cpu in
10552 hppa*64*|ia64*)
10553 hardcode_direct=no
10554 hardcode_shlibpath_var=no
10555 ;;
10556 *)
10557 hardcode_direct=yes
10558 hardcode_direct_absolute=yes
10559 export_dynamic_flag_spec='$wl-E'
10560
10561 # hardcode_minus_L: Not really in the search PATH,
10562 # but as the default location of the library.
10563 hardcode_minus_L=yes
10564 ;;
10565 esac
10566 fi
10567 ;;
10568
10569 irix5* | irix6* | nonstopux*)
10570 if test yes = "$GCC"; then
10571 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'
10572 # Try to use the -exported_symbol ld option, if it does not
10573 # work, assume that -exports_file does not work either and
10574 # implicitly export all symbols.
10575 # This should be the same for all languages, so no per-tag cache variable.
10576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10577 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10578 if test ${lt_cv_irix_exported_symbol+y}
10579 then :
10580 printf %s "(cached) " >&6
10581 else $as_nop
10582 save_LDFLAGS=$LDFLAGS
10583 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10585 /* end confdefs.h. */
10586 int foo (void) { return 0; }
10587 _ACEOF
10588 if ac_fn_c_try_link "$LINENO"
10589 then :
10590 lt_cv_irix_exported_symbol=yes
10591 else $as_nop
10592 lt_cv_irix_exported_symbol=no
10593 fi
10594 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10595 conftest$ac_exeext conftest.$ac_ext
10596 LDFLAGS=$save_LDFLAGS
10597 fi
10598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10599 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10600 if test yes = "$lt_cv_irix_exported_symbol"; then
10601 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'
10602 fi
10603 link_all_deplibs=no
10604 else
10605 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'
10606 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'
10607 fi
10608 archive_cmds_need_lc='no'
10609 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10610 hardcode_libdir_separator=:
10611 inherit_rpath=yes
10612 link_all_deplibs=yes
10613 ;;
10614
10615 linux*)
10616 case $cc_basename in
10617 tcc*)
10618 # Fabrice Bellard et al's Tiny C Compiler
10619 ld_shlibs=yes
10620 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10621 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10622 ;;
10623 esac
10624 ;;
10625
10626 netbsd* | netbsdelf*-gnu)
10627 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10628 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10629 else
10630 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10631 fi
10632 hardcode_libdir_flag_spec='-R$libdir'
10633 hardcode_direct=yes
10634 hardcode_shlibpath_var=no
10635 ;;
10636
10637 newsos6)
10638 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10639 hardcode_direct=yes
10640 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10641 hardcode_libdir_separator=:
10642 hardcode_shlibpath_var=no
10643 ;;
10644
10645 *nto* | *qnx*)
10646 ;;
10647
10648 openbsd* | bitrig*)
10649 if test -f /usr/libexec/ld.so; then
10650 hardcode_direct=yes
10651 hardcode_shlibpath_var=no
10652 hardcode_direct_absolute=yes
10653 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10654 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10655 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10656 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10657 export_dynamic_flag_spec='$wl-E'
10658 else
10659 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10660 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10661 fi
10662 else
10663 ld_shlibs=no
10664 fi
10665 ;;
10666
10667 os2*)
10668 hardcode_libdir_flag_spec='-L$libdir'
10669 hardcode_minus_L=yes
10670 allow_undefined_flag=unsupported
10671 shrext_cmds=.dll
10672 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10673 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10674 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10675 $ECHO EXPORTS >> $output_objdir/$libname.def~
10676 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10677 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10678 emximp -o $lib $output_objdir/$libname.def'
10679 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10680 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10681 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10682 $ECHO EXPORTS >> $output_objdir/$libname.def~
10683 prefix_cmds="$SED"~
10684 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10685 prefix_cmds="$prefix_cmds -e 1d";
10686 fi~
10687 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10688 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10689 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10690 emximp -o $lib $output_objdir/$libname.def'
10691 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10692 enable_shared_with_static_runtimes=yes
10693 file_list_spec='@'
10694 ;;
10695
10696 osf3*)
10697 if test yes = "$GCC"; then
10698 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10699 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'
10700 else
10701 allow_undefined_flag=' -expect_unresolved \*'
10702 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'
10703 fi
10704 archive_cmds_need_lc='no'
10705 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10706 hardcode_libdir_separator=:
10707 ;;
10708
10709 osf4* | osf5*) # as osf3* with the addition of -msym flag
10710 if test yes = "$GCC"; then
10711 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10712 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'
10713 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10714 else
10715 allow_undefined_flag=' -expect_unresolved \*'
10716 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'
10717 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~
10718 $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'
10719
10720 # Both c and cxx compiler support -rpath directly
10721 hardcode_libdir_flag_spec='-rpath $libdir'
10722 fi
10723 archive_cmds_need_lc='no'
10724 hardcode_libdir_separator=:
10725 ;;
10726
10727 solaris*)
10728 no_undefined_flag=' -z defs'
10729 if test yes = "$GCC"; then
10730 wlarc='$wl'
10731 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10732 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10733 $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'
10734 else
10735 case `$CC -V 2>&1` in
10736 *"Compilers 5.0"*)
10737 wlarc=''
10738 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10739 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10740 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10741 ;;
10742 *)
10743 wlarc='$wl'
10744 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10745 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10746 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10747 ;;
10748 esac
10749 fi
10750 hardcode_libdir_flag_spec='-R$libdir'
10751 hardcode_shlibpath_var=no
10752 case $host_os in
10753 solaris2.[0-5] | solaris2.[0-5].*) ;;
10754 *)
10755 # The compiler driver will combine and reorder linker options,
10756 # but understands '-z linker_flag'. GCC discards it without '$wl',
10757 # but is careful enough not to reorder.
10758 # Supported since Solaris 2.6 (maybe 2.5.1?)
10759 if test yes = "$GCC"; then
10760 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10761 else
10762 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10763 fi
10764 ;;
10765 esac
10766 link_all_deplibs=yes
10767 ;;
10768
10769 sunos4*)
10770 if test sequent = "$host_vendor"; then
10771 # Use $CC to link under sequent, because it throws in some extra .o
10772 # files that make .init and .fini sections work.
10773 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10774 else
10775 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10776 fi
10777 hardcode_libdir_flag_spec='-L$libdir'
10778 hardcode_direct=yes
10779 hardcode_minus_L=yes
10780 hardcode_shlibpath_var=no
10781 ;;
10782
10783 sysv4)
10784 case $host_vendor in
10785 sni)
10786 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10787 hardcode_direct=yes # is this really true???
10788 ;;
10789 siemens)
10790 ## LD is ld it makes a PLAMLIB
10791 ## CC just makes a GrossModule.
10792 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10793 reload_cmds='$CC -r -o $output$reload_objs'
10794 hardcode_direct=no
10795 ;;
10796 motorola)
10797 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10798 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10799 ;;
10800 esac
10801 runpath_var='LD_RUN_PATH'
10802 hardcode_shlibpath_var=no
10803 ;;
10804
10805 sysv4.3*)
10806 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10807 hardcode_shlibpath_var=no
10808 export_dynamic_flag_spec='-Bexport'
10809 ;;
10810
10811 sysv4*MP*)
10812 if test -d /usr/nec; then
10813 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10814 hardcode_shlibpath_var=no
10815 runpath_var=LD_RUN_PATH
10816 hardcode_runpath_var=yes
10817 ld_shlibs=yes
10818 fi
10819 ;;
10820
10821 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10822 no_undefined_flag='$wl-z,text'
10823 archive_cmds_need_lc=no
10824 hardcode_shlibpath_var=no
10825 runpath_var='LD_RUN_PATH'
10826
10827 if test yes = "$GCC"; then
10828 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10829 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10830 else
10831 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10832 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10833 fi
10834 ;;
10835
10836 sysv5* | sco3.2v5* | sco5v6*)
10837 # Note: We CANNOT use -z defs as we might desire, because we do not
10838 # link with -lc, and that would cause any symbols used from libc to
10839 # always be unresolved, which means just about no library would
10840 # ever link correctly. If we're not using GNU ld we use -z text
10841 # though, which does catch some bad symbols but isn't as heavy-handed
10842 # as -z defs.
10843 no_undefined_flag='$wl-z,text'
10844 allow_undefined_flag='$wl-z,nodefs'
10845 archive_cmds_need_lc=no
10846 hardcode_shlibpath_var=no
10847 hardcode_libdir_flag_spec='$wl-R,$libdir'
10848 hardcode_libdir_separator=':'
10849 link_all_deplibs=yes
10850 export_dynamic_flag_spec='$wl-Bexport'
10851 runpath_var='LD_RUN_PATH'
10852
10853 if test yes = "$GCC"; then
10854 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10855 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10856 else
10857 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10858 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10859 fi
10860 ;;
10861
10862 uts4*)
10863 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10864 hardcode_libdir_flag_spec='-L$libdir'
10865 hardcode_shlibpath_var=no
10866 ;;
10867
10868 *)
10869 ld_shlibs=no
10870 ;;
10871 esac
10872
10873 if test sni = "$host_vendor"; then
10874 case $host in
10875 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10876 export_dynamic_flag_spec='$wl-Blargedynsym'
10877 ;;
10878 esac
10879 fi
10880 fi
10881
10882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10883 printf "%s\n" "$ld_shlibs" >&6; }
10884 test no = "$ld_shlibs" && can_build_shared=no
10885
10886 with_gnu_ld=$with_gnu_ld
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902 #
10903 # Do we need to explicitly link libc?
10904 #
10905 case "x$archive_cmds_need_lc" in
10906 x|xyes)
10907 # Assume -lc should be added
10908 archive_cmds_need_lc=yes
10909
10910 if test yes,yes = "$GCC,$enable_shared"; then
10911 case $archive_cmds in
10912 *'~'*)
10913 # FIXME: we may have to deal with multi-command sequences.
10914 ;;
10915 '$CC '*)
10916 # Test whether the compiler implicitly links with -lc since on some
10917 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10918 # to ld, don't add -lc before -lgcc.
10919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10920 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
10921 if test ${lt_cv_archive_cmds_need_lc+y}
10922 then :
10923 printf %s "(cached) " >&6
10924 else $as_nop
10925 $RM conftest*
10926 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10927
10928 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10929 (eval $ac_compile) 2>&5
10930 ac_status=$?
10931 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10932 test $ac_status = 0; } 2>conftest.err; then
10933 soname=conftest
10934 lib=conftest
10935 libobjs=conftest.$ac_objext
10936 deplibs=
10937 wl=$lt_prog_compiler_wl
10938 pic_flag=$lt_prog_compiler_pic
10939 compiler_flags=-v
10940 linker_flags=-v
10941 verstring=
10942 output_objdir=.
10943 libname=conftest
10944 lt_save_allow_undefined_flag=$allow_undefined_flag
10945 allow_undefined_flag=
10946 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10947 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10948 ac_status=$?
10949 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10950 test $ac_status = 0; }
10951 then
10952 lt_cv_archive_cmds_need_lc=no
10953 else
10954 lt_cv_archive_cmds_need_lc=yes
10955 fi
10956 allow_undefined_flag=$lt_save_allow_undefined_flag
10957 else
10958 cat conftest.err 1>&5
10959 fi
10960 $RM conftest*
10961
10962 fi
10963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10964 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
10965 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10966 ;;
10967 esac
10968 fi
10969 ;;
10970 esac
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11124 printf %s "checking dynamic linker characteristics... " >&6; }
11125
11126 if test yes = "$GCC"; then
11127 case $host_os in
11128 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11129 *) lt_awk_arg='/^libraries:/' ;;
11130 esac
11131 case $host_os in
11132 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11133 *) lt_sed_strip_eq='s|=/|/|g' ;;
11134 esac
11135 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11136 case $lt_search_path_spec in
11137 *\;*)
11138 # if the path contains ";" then we assume it to be the separator
11139 # otherwise default to the standard path separator (i.e. ":") - it is
11140 # assumed that no part of a normal pathname contains ";" but that should
11141 # okay in the real world where ";" in dirpaths is itself problematic.
11142 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11143 ;;
11144 *)
11145 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11146 ;;
11147 esac
11148 # Ok, now we have the path, separated by spaces, we can step through it
11149 # and add multilib dir if necessary...
11150 lt_tmp_lt_search_path_spec=
11151 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11152 # ...but if some path component already ends with the multilib dir we assume
11153 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11154 case "$lt_multi_os_dir; $lt_search_path_spec " in
11155 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11156 lt_multi_os_dir=
11157 ;;
11158 esac
11159 for lt_sys_path in $lt_search_path_spec; do
11160 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11161 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11162 elif test -n "$lt_multi_os_dir"; then
11163 test -d "$lt_sys_path" && \
11164 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11165 fi
11166 done
11167 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11168 BEGIN {RS = " "; FS = "/|\n";} {
11169 lt_foo = "";
11170 lt_count = 0;
11171 for (lt_i = NF; lt_i > 0; lt_i--) {
11172 if ($lt_i != "" && $lt_i != ".") {
11173 if ($lt_i == "..") {
11174 lt_count++;
11175 } else {
11176 if (lt_count == 0) {
11177 lt_foo = "/" $lt_i lt_foo;
11178 } else {
11179 lt_count--;
11180 }
11181 }
11182 }
11183 }
11184 if (lt_foo != "") { lt_freq[lt_foo]++; }
11185 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11186 }'`
11187 # AWK program above erroneously prepends '/' to C:/dos/paths
11188 # for these hosts.
11189 case $host_os in
11190 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11191 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11192 esac
11193 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11194 else
11195 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11196 fi
11197 library_names_spec=
11198 libname_spec='lib$name'
11199 soname_spec=
11200 shrext_cmds=.so
11201 postinstall_cmds=
11202 postuninstall_cmds=
11203 finish_cmds=
11204 finish_eval=
11205 shlibpath_var=
11206 shlibpath_overrides_runpath=unknown
11207 version_type=none
11208 dynamic_linker="$host_os ld.so"
11209 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11210 need_lib_prefix=unknown
11211 hardcode_into_libs=no
11212
11213 # when you set need_version to no, make sure it does not cause -set_version
11214 # flags to be left without arguments
11215 need_version=unknown
11216
11217
11218
11219 case $host_os in
11220 aix3*)
11221 version_type=linux # correct to gnu/linux during the next big refactor
11222 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11223 shlibpath_var=LIBPATH
11224
11225 # AIX 3 has no versioning support, so we append a major version to the name.
11226 soname_spec='$libname$release$shared_ext$major'
11227 ;;
11228
11229 aix[4-9]*)
11230 version_type=linux # correct to gnu/linux during the next big refactor
11231 need_lib_prefix=no
11232 need_version=no
11233 hardcode_into_libs=yes
11234 if test ia64 = "$host_cpu"; then
11235 # AIX 5 supports IA64
11236 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11237 shlibpath_var=LD_LIBRARY_PATH
11238 else
11239 # With GCC up to 2.95.x, collect2 would create an import file
11240 # for dependence libraries. The import file would start with
11241 # the line '#! .'. This would cause the generated library to
11242 # depend on '.', always an invalid library. This was fixed in
11243 # development snapshots of GCC prior to 3.0.
11244 case $host_os in
11245 aix4 | aix4.[01] | aix4.[01].*)
11246 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11247 echo ' yes '
11248 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11249 :
11250 else
11251 can_build_shared=no
11252 fi
11253 ;;
11254 esac
11255 # Using Import Files as archive members, it is possible to support
11256 # filename-based versioning of shared library archives on AIX. While
11257 # this would work for both with and without runtime linking, it will
11258 # prevent static linking of such archives. So we do filename-based
11259 # shared library versioning with .so extension only, which is used
11260 # when both runtime linking and shared linking is enabled.
11261 # Unfortunately, runtime linking may impact performance, so we do
11262 # not want this to be the default eventually. Also, we use the
11263 # versioned .so libs for executables only if there is the -brtl
11264 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11265 # To allow for filename-based versioning support, we need to create
11266 # libNAME.so.V as an archive file, containing:
11267 # *) an Import File, referring to the versioned filename of the
11268 # archive as well as the shared archive member, telling the
11269 # bitwidth (32 or 64) of that shared object, and providing the
11270 # list of exported symbols of that shared object, eventually
11271 # decorated with the 'weak' keyword
11272 # *) the shared object with the F_LOADONLY flag set, to really avoid
11273 # it being seen by the linker.
11274 # At run time we better use the real file rather than another symlink,
11275 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11276
11277 case $with_aix_soname,$aix_use_runtimelinking in
11278 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11279 # soname into executable. Probably we can add versioning support to
11280 # collect2, so additional links can be useful in future.
11281 aix,yes) # traditional libtool
11282 dynamic_linker='AIX unversionable lib.so'
11283 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11284 # instead of lib<name>.a to let people know that these are not
11285 # typical AIX shared libraries.
11286 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11287 ;;
11288 aix,no) # traditional AIX only
11289 dynamic_linker='AIX lib.a(lib.so.V)'
11290 # We preserve .a as extension for shared libraries through AIX4.2
11291 # and later when we are not doing run time linking.
11292 library_names_spec='$libname$release.a $libname.a'
11293 soname_spec='$libname$release$shared_ext$major'
11294 ;;
11295 svr4,*) # full svr4 only
11296 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11297 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11298 # We do not specify a path in Import Files, so LIBPATH fires.
11299 shlibpath_overrides_runpath=yes
11300 ;;
11301 *,yes) # both, prefer svr4
11302 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11303 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11304 # unpreferred sharedlib libNAME.a needs extra handling
11305 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"'
11306 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"'
11307 # We do not specify a path in Import Files, so LIBPATH fires.
11308 shlibpath_overrides_runpath=yes
11309 ;;
11310 *,no) # both, prefer aix
11311 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11312 library_names_spec='$libname$release.a $libname.a'
11313 soname_spec='$libname$release$shared_ext$major'
11314 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11315 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)'
11316 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"'
11317 ;;
11318 esac
11319 shlibpath_var=LIBPATH
11320 fi
11321 ;;
11322
11323 amigaos*)
11324 case $host_cpu in
11325 powerpc)
11326 # Since July 2007 AmigaOS4 officially supports .so libraries.
11327 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11328 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11329 ;;
11330 m68k)
11331 library_names_spec='$libname.ixlibrary $libname.a'
11332 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11333 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'
11334 ;;
11335 esac
11336 ;;
11337
11338 beos*)
11339 library_names_spec='$libname$shared_ext'
11340 dynamic_linker="$host_os ld.so"
11341 shlibpath_var=LIBRARY_PATH
11342 ;;
11343
11344 bsdi[45]*)
11345 version_type=linux # correct to gnu/linux during the next big refactor
11346 need_version=no
11347 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11348 soname_spec='$libname$release$shared_ext$major'
11349 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11350 shlibpath_var=LD_LIBRARY_PATH
11351 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11352 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11353 # the default ld.so.conf also contains /usr/contrib/lib and
11354 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11355 # libtool to hard-code these into programs
11356 ;;
11357
11358 cygwin* | mingw* | pw32* | cegcc*)
11359 version_type=windows
11360 shrext_cmds=.dll
11361 need_version=no
11362 need_lib_prefix=no
11363
11364 case $GCC,$cc_basename in
11365 yes,*)
11366 # gcc
11367 library_names_spec='$libname.dll.a'
11368 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11369 postinstall_cmds='base_file=`basename \$file`~
11370 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11371 dldir=$destdir/`dirname \$dlpath`~
11372 test -d \$dldir || mkdir -p \$dldir~
11373 $install_prog $dir/$dlname \$dldir/$dlname~
11374 chmod a+x \$dldir/$dlname~
11375 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11376 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11377 fi'
11378 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11379 dlpath=$dir/\$dldll~
11380 $RM \$dlpath'
11381 shlibpath_overrides_runpath=yes
11382
11383 case $host_os in
11384 cygwin*)
11385 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11386 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11387
11388 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11389 ;;
11390 mingw* | cegcc*)
11391 # MinGW DLLs use traditional 'lib' prefix
11392 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11393 ;;
11394 pw32*)
11395 # pw32 DLLs use 'pw' prefix rather than 'lib'
11396 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11397 ;;
11398 esac
11399 dynamic_linker='Win32 ld.exe'
11400 ;;
11401
11402 *,cl* | *,icl*)
11403 # Native MSVC or ICC
11404 libname_spec='$name'
11405 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11406 library_names_spec='$libname.dll.lib'
11407
11408 case $build_os in
11409 mingw*)
11410 sys_lib_search_path_spec=
11411 lt_save_ifs=$IFS
11412 IFS=';'
11413 for lt_path in $LIB
11414 do
11415 IFS=$lt_save_ifs
11416 # Let DOS variable expansion print the short 8.3 style file name.
11417 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11418 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11419 done
11420 IFS=$lt_save_ifs
11421 # Convert to MSYS style.
11422 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11423 ;;
11424 cygwin*)
11425 # Convert to unix form, then to dos form, then back to unix form
11426 # but this time dos style (no spaces!) so that the unix form looks
11427 # like /cygdrive/c/PROGRA~1:/cygdr...
11428 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11429 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11430 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11431 ;;
11432 *)
11433 sys_lib_search_path_spec=$LIB
11434 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11435 # It is most probably a Windows format PATH.
11436 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11437 else
11438 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11439 fi
11440 # FIXME: find the short name or the path components, as spaces are
11441 # common. (e.g. "Program Files" -> "PROGRA~1")
11442 ;;
11443 esac
11444
11445 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11446 postinstall_cmds='base_file=`basename \$file`~
11447 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11448 dldir=$destdir/`dirname \$dlpath`~
11449 test -d \$dldir || mkdir -p \$dldir~
11450 $install_prog $dir/$dlname \$dldir/$dlname'
11451 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11452 dlpath=$dir/\$dldll~
11453 $RM \$dlpath'
11454 shlibpath_overrides_runpath=yes
11455 dynamic_linker='Win32 link.exe'
11456 ;;
11457
11458 *)
11459 # Assume MSVC and ICC wrapper
11460 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11461 dynamic_linker='Win32 ld.exe'
11462 ;;
11463 esac
11464 # FIXME: first we should search . and the directory the executable is in
11465 shlibpath_var=PATH
11466 ;;
11467
11468 darwin* | rhapsody*)
11469 dynamic_linker="$host_os dyld"
11470 version_type=darwin
11471 need_lib_prefix=no
11472 need_version=no
11473 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11474 soname_spec='$libname$release$major$shared_ext'
11475 shlibpath_overrides_runpath=yes
11476 shlibpath_var=DYLD_LIBRARY_PATH
11477 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11478
11479 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11480 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11481 ;;
11482
11483 dgux*)
11484 version_type=linux # correct to gnu/linux during the next big refactor
11485 need_lib_prefix=no
11486 need_version=no
11487 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11488 soname_spec='$libname$release$shared_ext$major'
11489 shlibpath_var=LD_LIBRARY_PATH
11490 ;;
11491
11492 freebsd* | dragonfly* | midnightbsd*)
11493 # DragonFly does not have aout. When/if they implement a new
11494 # versioning mechanism, adjust this.
11495 if test -x /usr/bin/objformat; then
11496 objformat=`/usr/bin/objformat`
11497 else
11498 case $host_os in
11499 freebsd[23].*) objformat=aout ;;
11500 *) objformat=elf ;;
11501 esac
11502 fi
11503 version_type=freebsd-$objformat
11504 case $version_type in
11505 freebsd-elf*)
11506 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11507 soname_spec='$libname$release$shared_ext$major'
11508 need_version=no
11509 need_lib_prefix=no
11510 ;;
11511 freebsd-*)
11512 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11513 need_version=yes
11514 ;;
11515 esac
11516 shlibpath_var=LD_LIBRARY_PATH
11517 case $host_os in
11518 freebsd2.*)
11519 shlibpath_overrides_runpath=yes
11520 ;;
11521 freebsd3.[01]* | freebsdelf3.[01]*)
11522 shlibpath_overrides_runpath=yes
11523 hardcode_into_libs=yes
11524 ;;
11525 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11526 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11527 shlibpath_overrides_runpath=no
11528 hardcode_into_libs=yes
11529 ;;
11530 *) # from 4.6 on, and DragonFly
11531 shlibpath_overrides_runpath=yes
11532 hardcode_into_libs=yes
11533 ;;
11534 esac
11535 ;;
11536
11537 haiku*)
11538 version_type=linux # correct to gnu/linux during the next big refactor
11539 need_lib_prefix=no
11540 need_version=no
11541 dynamic_linker="$host_os runtime_loader"
11542 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11543 soname_spec='$libname$release$shared_ext$major'
11544 shlibpath_var=LIBRARY_PATH
11545 shlibpath_overrides_runpath=no
11546 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11547 hardcode_into_libs=yes
11548 ;;
11549
11550 hpux9* | hpux10* | hpux11*)
11551 # Give a soname corresponding to the major version so that dld.sl refuses to
11552 # link against other versions.
11553 version_type=sunos
11554 need_lib_prefix=no
11555 need_version=no
11556 case $host_cpu in
11557 ia64*)
11558 shrext_cmds='.so'
11559 hardcode_into_libs=yes
11560 dynamic_linker="$host_os dld.so"
11561 shlibpath_var=LD_LIBRARY_PATH
11562 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11563 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11564 soname_spec='$libname$release$shared_ext$major'
11565 if test 32 = "$HPUX_IA64_MODE"; then
11566 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11567 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11568 else
11569 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11570 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11571 fi
11572 ;;
11573 hppa*64*)
11574 shrext_cmds='.sl'
11575 hardcode_into_libs=yes
11576 dynamic_linker="$host_os dld.sl"
11577 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11578 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11579 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11580 soname_spec='$libname$release$shared_ext$major'
11581 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11582 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11583 ;;
11584 *)
11585 shrext_cmds='.sl'
11586 dynamic_linker="$host_os dld.sl"
11587 shlibpath_var=SHLIB_PATH
11588 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11589 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11590 soname_spec='$libname$release$shared_ext$major'
11591 ;;
11592 esac
11593 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11594 postinstall_cmds='chmod 555 $lib'
11595 # or fails outright, so override atomically:
11596 install_override_mode=555
11597 ;;
11598
11599 interix[3-9]*)
11600 version_type=linux # correct to gnu/linux during the next big refactor
11601 need_lib_prefix=no
11602 need_version=no
11603 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11604 soname_spec='$libname$release$shared_ext$major'
11605 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11606 shlibpath_var=LD_LIBRARY_PATH
11607 shlibpath_overrides_runpath=no
11608 hardcode_into_libs=yes
11609 ;;
11610
11611 irix5* | irix6* | nonstopux*)
11612 case $host_os in
11613 nonstopux*) version_type=nonstopux ;;
11614 *)
11615 if test yes = "$lt_cv_prog_gnu_ld"; then
11616 version_type=linux # correct to gnu/linux during the next big refactor
11617 else
11618 version_type=irix
11619 fi ;;
11620 esac
11621 need_lib_prefix=no
11622 need_version=no
11623 soname_spec='$libname$release$shared_ext$major'
11624 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11625 case $host_os in
11626 irix5* | nonstopux*)
11627 libsuff= shlibsuff=
11628 ;;
11629 *)
11630 case $LD in # libtool.m4 will add one of these switches to LD
11631 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11632 libsuff= shlibsuff= libmagic=32-bit;;
11633 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11634 libsuff=32 shlibsuff=N32 libmagic=N32;;
11635 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11636 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11637 *) libsuff= shlibsuff= libmagic=never-match;;
11638 esac
11639 ;;
11640 esac
11641 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11642 shlibpath_overrides_runpath=no
11643 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11644 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11645 hardcode_into_libs=yes
11646 ;;
11647
11648 # No shared lib support for Linux oldld, aout, or coff.
11649 linux*oldld* | linux*aout* | linux*coff*)
11650 dynamic_linker=no
11651 ;;
11652
11653 linux*android*)
11654 version_type=none # Android doesn't support versioned libraries.
11655 need_lib_prefix=no
11656 need_version=no
11657 library_names_spec='$libname$release$shared_ext'
11658 soname_spec='$libname$release$shared_ext'
11659 finish_cmds=
11660 shlibpath_var=LD_LIBRARY_PATH
11661 shlibpath_overrides_runpath=yes
11662
11663 # This implies no fast_install, which is unacceptable.
11664 # Some rework will be needed to allow for fast_install
11665 # before this can be enabled.
11666 hardcode_into_libs=yes
11667
11668 dynamic_linker='Android linker'
11669 # Don't embed -rpath directories since the linker doesn't support them.
11670 hardcode_libdir_flag_spec='-L$libdir'
11671 ;;
11672
11673 # This must be glibc/ELF.
11674 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11675 version_type=linux # correct to gnu/linux during the next big refactor
11676 need_lib_prefix=no
11677 need_version=no
11678 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11679 soname_spec='$libname$release$shared_ext$major'
11680 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11681 shlibpath_var=LD_LIBRARY_PATH
11682 shlibpath_overrides_runpath=no
11683
11684 # Some binutils ld are patched to set DT_RUNPATH
11685 if test ${lt_cv_shlibpath_overrides_runpath+y}
11686 then :
11687 printf %s "(cached) " >&6
11688 else $as_nop
11689 lt_cv_shlibpath_overrides_runpath=no
11690 save_LDFLAGS=$LDFLAGS
11691 save_libdir=$libdir
11692 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11693 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11695 /* end confdefs.h. */
11696
11697 int
11698 main (void)
11699 {
11700
11701 ;
11702 return 0;
11703 }
11704 _ACEOF
11705 if ac_fn_c_try_link "$LINENO"
11706 then :
11707 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11708 then :
11709 lt_cv_shlibpath_overrides_runpath=yes
11710 fi
11711 fi
11712 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11713 conftest$ac_exeext conftest.$ac_ext
11714 LDFLAGS=$save_LDFLAGS
11715 libdir=$save_libdir
11716
11717 fi
11718
11719 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11720
11721 # This implies no fast_install, which is unacceptable.
11722 # Some rework will be needed to allow for fast_install
11723 # before this can be enabled.
11724 hardcode_into_libs=yes
11725
11726 # Ideally, we could use ldconfig to report *all* directores which are
11727 # searched for libraries, however this is still not possible. Aside from not
11728 # being certain /sbin/ldconfig is available, command
11729 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11730 # even though it is searched at run-time. Try to do the best guess by
11731 # appending ld.so.conf contents (and includes) to the search path.
11732 if test -f /etc/ld.so.conf; then
11733 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' ' '`
11734 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11735 fi
11736
11737 # We used to test for /lib/ld.so.1 and disable shared libraries on
11738 # powerpc, because MkLinux only supported shared libraries with the
11739 # GNU dynamic linker. Since this was broken with cross compilers,
11740 # most powerpc-linux boxes support dynamic linking these days and
11741 # people can always --disable-shared, the test was removed, and we
11742 # assume the GNU/Linux dynamic linker is in use.
11743 dynamic_linker='GNU/Linux ld.so'
11744 ;;
11745
11746 netbsdelf*-gnu)
11747 version_type=linux
11748 need_lib_prefix=no
11749 need_version=no
11750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11751 soname_spec='${libname}${release}${shared_ext}$major'
11752 shlibpath_var=LD_LIBRARY_PATH
11753 shlibpath_overrides_runpath=no
11754 hardcode_into_libs=yes
11755 dynamic_linker='NetBSD ld.elf_so'
11756 ;;
11757
11758 netbsd*)
11759 version_type=sunos
11760 need_lib_prefix=no
11761 need_version=no
11762 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11763 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11764 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11765 dynamic_linker='NetBSD (a.out) ld.so'
11766 else
11767 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11768 soname_spec='$libname$release$shared_ext$major'
11769 dynamic_linker='NetBSD ld.elf_so'
11770 fi
11771 shlibpath_var=LD_LIBRARY_PATH
11772 shlibpath_overrides_runpath=yes
11773 hardcode_into_libs=yes
11774 ;;
11775
11776 newsos6)
11777 version_type=linux # correct to gnu/linux during the next big refactor
11778 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11779 shlibpath_var=LD_LIBRARY_PATH
11780 shlibpath_overrides_runpath=yes
11781 ;;
11782
11783 *nto* | *qnx*)
11784 version_type=qnx
11785 need_lib_prefix=no
11786 need_version=no
11787 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11788 soname_spec='$libname$release$shared_ext$major'
11789 shlibpath_var=LD_LIBRARY_PATH
11790 shlibpath_overrides_runpath=no
11791 hardcode_into_libs=yes
11792 dynamic_linker='ldqnx.so'
11793 ;;
11794
11795 openbsd* | bitrig*)
11796 version_type=sunos
11797 sys_lib_dlsearch_path_spec=/usr/lib
11798 need_lib_prefix=no
11799 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11800 need_version=no
11801 else
11802 need_version=yes
11803 fi
11804 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11805 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11806 shlibpath_var=LD_LIBRARY_PATH
11807 shlibpath_overrides_runpath=yes
11808 ;;
11809
11810 os2*)
11811 libname_spec='$name'
11812 version_type=windows
11813 shrext_cmds=.dll
11814 need_version=no
11815 need_lib_prefix=no
11816 # OS/2 can only load a DLL with a base name of 8 characters or less.
11817 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11818 v=$($ECHO $release$versuffix | tr -d .-);
11819 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11820 $ECHO $n$v`$shared_ext'
11821 library_names_spec='${libname}_dll.$libext'
11822 dynamic_linker='OS/2 ld.exe'
11823 shlibpath_var=BEGINLIBPATH
11824 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11825 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11826 postinstall_cmds='base_file=`basename \$file`~
11827 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11828 dldir=$destdir/`dirname \$dlpath`~
11829 test -d \$dldir || mkdir -p \$dldir~
11830 $install_prog $dir/$dlname \$dldir/$dlname~
11831 chmod a+x \$dldir/$dlname~
11832 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11833 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11834 fi'
11835 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11836 dlpath=$dir/\$dldll~
11837 $RM \$dlpath'
11838 ;;
11839
11840 osf3* | osf4* | osf5*)
11841 version_type=osf
11842 need_lib_prefix=no
11843 need_version=no
11844 soname_spec='$libname$release$shared_ext$major'
11845 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11846 shlibpath_var=LD_LIBRARY_PATH
11847 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11848 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11849 ;;
11850
11851 rdos*)
11852 dynamic_linker=no
11853 ;;
11854
11855 solaris*)
11856 version_type=linux # correct to gnu/linux during the next big refactor
11857 need_lib_prefix=no
11858 need_version=no
11859 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11860 soname_spec='$libname$release$shared_ext$major'
11861 shlibpath_var=LD_LIBRARY_PATH
11862 shlibpath_overrides_runpath=yes
11863 hardcode_into_libs=yes
11864 # ldd complains unless libraries are executable
11865 postinstall_cmds='chmod +x $lib'
11866 ;;
11867
11868 sunos4*)
11869 version_type=sunos
11870 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11871 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11872 shlibpath_var=LD_LIBRARY_PATH
11873 shlibpath_overrides_runpath=yes
11874 if test yes = "$with_gnu_ld"; then
11875 need_lib_prefix=no
11876 fi
11877 need_version=yes
11878 ;;
11879
11880 sysv4 | sysv4.3*)
11881 version_type=linux # correct to gnu/linux during the next big refactor
11882 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11883 soname_spec='$libname$release$shared_ext$major'
11884 shlibpath_var=LD_LIBRARY_PATH
11885 case $host_vendor in
11886 sni)
11887 shlibpath_overrides_runpath=no
11888 need_lib_prefix=no
11889 runpath_var=LD_RUN_PATH
11890 ;;
11891 siemens)
11892 need_lib_prefix=no
11893 ;;
11894 motorola)
11895 need_lib_prefix=no
11896 need_version=no
11897 shlibpath_overrides_runpath=no
11898 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11899 ;;
11900 esac
11901 ;;
11902
11903 sysv4*MP*)
11904 if test -d /usr/nec; then
11905 version_type=linux # correct to gnu/linux during the next big refactor
11906 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11907 soname_spec='$libname$shared_ext.$major'
11908 shlibpath_var=LD_LIBRARY_PATH
11909 fi
11910 ;;
11911
11912 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11913 version_type=sco
11914 need_lib_prefix=no
11915 need_version=no
11916 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11917 soname_spec='$libname$release$shared_ext$major'
11918 shlibpath_var=LD_LIBRARY_PATH
11919 shlibpath_overrides_runpath=yes
11920 hardcode_into_libs=yes
11921 if test yes = "$with_gnu_ld"; then
11922 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11923 else
11924 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11925 case $host_os in
11926 sco3.2v5*)
11927 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11928 ;;
11929 esac
11930 fi
11931 sys_lib_dlsearch_path_spec='/usr/lib'
11932 ;;
11933
11934 tpf*)
11935 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11936 version_type=linux # correct to gnu/linux during the next big refactor
11937 need_lib_prefix=no
11938 need_version=no
11939 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11940 shlibpath_var=LD_LIBRARY_PATH
11941 shlibpath_overrides_runpath=no
11942 hardcode_into_libs=yes
11943 ;;
11944
11945 uts4*)
11946 version_type=linux # correct to gnu/linux during the next big refactor
11947 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11948 soname_spec='$libname$release$shared_ext$major'
11949 shlibpath_var=LD_LIBRARY_PATH
11950 ;;
11951
11952 *)
11953 dynamic_linker=no
11954 ;;
11955 esac
11956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11957 printf "%s\n" "$dynamic_linker" >&6; }
11958 test no = "$dynamic_linker" && can_build_shared=no
11959
11960 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11961 if test yes = "$GCC"; then
11962 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11963 fi
11964
11965 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11966 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11967 fi
11968
11969 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11970 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11971 fi
11972
11973 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11974 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11975
11976 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11977 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11978
11979 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11980 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12079 printf %s "checking how to hardcode library paths into programs... " >&6; }
12080 hardcode_action=
12081 if test -n "$hardcode_libdir_flag_spec" ||
12082 test -n "$runpath_var" ||
12083 test yes = "$hardcode_automatic"; then
12084
12085 # We can hardcode non-existent directories.
12086 if test no != "$hardcode_direct" &&
12087 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12088 # have to relink, otherwise we might link with an installed library
12089 # when we should be linking with a yet-to-be-installed one
12090 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12091 test no != "$hardcode_minus_L"; then
12092 # Linking always hardcodes the temporary library directory.
12093 hardcode_action=relink
12094 else
12095 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12096 hardcode_action=immediate
12097 fi
12098 else
12099 # We cannot hardcode anything, or else we can only hardcode existing
12100 # directories.
12101 hardcode_action=unsupported
12102 fi
12103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12104 printf "%s\n" "$hardcode_action" >&6; }
12105
12106 if test relink = "$hardcode_action" ||
12107 test yes = "$inherit_rpath"; then
12108 # Fast installation is not supported
12109 enable_fast_install=no
12110 elif test yes = "$shlibpath_overrides_runpath" ||
12111 test no = "$enable_shared"; then
12112 # Fast installation is not necessary
12113 enable_fast_install=needless
12114 fi
12115
12116
12117
12118
12119
12120
12121 if test yes != "$enable_dlopen"; then
12122 enable_dlopen=unknown
12123 enable_dlopen_self=unknown
12124 enable_dlopen_self_static=unknown
12125 else
12126 lt_cv_dlopen=no
12127 lt_cv_dlopen_libs=
12128
12129 case $host_os in
12130 beos*)
12131 lt_cv_dlopen=load_add_on
12132 lt_cv_dlopen_libs=
12133 lt_cv_dlopen_self=yes
12134 ;;
12135
12136 mingw* | pw32* | cegcc*)
12137 lt_cv_dlopen=LoadLibrary
12138 lt_cv_dlopen_libs=
12139 ;;
12140
12141 cygwin*)
12142 lt_cv_dlopen=dlopen
12143 lt_cv_dlopen_libs=
12144 ;;
12145
12146 darwin*)
12147 # if libdl is installed we need to link against it
12148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12149 printf %s "checking for dlopen in -ldl... " >&6; }
12150 if test ${ac_cv_lib_dl_dlopen+y}
12151 then :
12152 printf %s "(cached) " >&6
12153 else $as_nop
12154 ac_check_lib_save_LIBS=$LIBS
12155 LIBS="-ldl $LIBS"
12156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12157 /* end confdefs.h. */
12158
12159 /* Override any GCC internal prototype to avoid an error.
12160 Use char because int might match the return type of a GCC
12161 builtin and then its argument prototype would still apply. */
12162 char dlopen ();
12163 int
12164 main (void)
12165 {
12166 return dlopen ();
12167 ;
12168 return 0;
12169 }
12170 _ACEOF
12171 if ac_fn_c_try_link "$LINENO"
12172 then :
12173 ac_cv_lib_dl_dlopen=yes
12174 else $as_nop
12175 ac_cv_lib_dl_dlopen=no
12176 fi
12177 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12178 conftest$ac_exeext conftest.$ac_ext
12179 LIBS=$ac_check_lib_save_LIBS
12180 fi
12181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12182 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12183 if test "x$ac_cv_lib_dl_dlopen" = xyes
12184 then :
12185 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12186 else $as_nop
12187
12188 lt_cv_dlopen=dyld
12189 lt_cv_dlopen_libs=
12190 lt_cv_dlopen_self=yes
12191
12192 fi
12193
12194 ;;
12195
12196 tpf*)
12197 # Don't try to run any link tests for TPF. We know it's impossible
12198 # because TPF is a cross-compiler, and we know how we open DSOs.
12199 lt_cv_dlopen=dlopen
12200 lt_cv_dlopen_libs=
12201 lt_cv_dlopen_self=no
12202 ;;
12203
12204 *)
12205 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12206 if test "x$ac_cv_func_shl_load" = xyes
12207 then :
12208 lt_cv_dlopen=shl_load
12209 else $as_nop
12210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12211 printf %s "checking for shl_load in -ldld... " >&6; }
12212 if test ${ac_cv_lib_dld_shl_load+y}
12213 then :
12214 printf %s "(cached) " >&6
12215 else $as_nop
12216 ac_check_lib_save_LIBS=$LIBS
12217 LIBS="-ldld $LIBS"
12218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12219 /* end confdefs.h. */
12220
12221 /* Override any GCC internal prototype to avoid an error.
12222 Use char because int might match the return type of a GCC
12223 builtin and then its argument prototype would still apply. */
12224 char shl_load ();
12225 int
12226 main (void)
12227 {
12228 return shl_load ();
12229 ;
12230 return 0;
12231 }
12232 _ACEOF
12233 if ac_fn_c_try_link "$LINENO"
12234 then :
12235 ac_cv_lib_dld_shl_load=yes
12236 else $as_nop
12237 ac_cv_lib_dld_shl_load=no
12238 fi
12239 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12240 conftest$ac_exeext conftest.$ac_ext
12241 LIBS=$ac_check_lib_save_LIBS
12242 fi
12243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12244 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12245 if test "x$ac_cv_lib_dld_shl_load" = xyes
12246 then :
12247 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12248 else $as_nop
12249 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12250 if test "x$ac_cv_func_dlopen" = xyes
12251 then :
12252 lt_cv_dlopen=dlopen
12253 else $as_nop
12254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12255 printf %s "checking for dlopen in -ldl... " >&6; }
12256 if test ${ac_cv_lib_dl_dlopen+y}
12257 then :
12258 printf %s "(cached) " >&6
12259 else $as_nop
12260 ac_check_lib_save_LIBS=$LIBS
12261 LIBS="-ldl $LIBS"
12262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12263 /* end confdefs.h. */
12264
12265 /* Override any GCC internal prototype to avoid an error.
12266 Use char because int might match the return type of a GCC
12267 builtin and then its argument prototype would still apply. */
12268 char dlopen ();
12269 int
12270 main (void)
12271 {
12272 return dlopen ();
12273 ;
12274 return 0;
12275 }
12276 _ACEOF
12277 if ac_fn_c_try_link "$LINENO"
12278 then :
12279 ac_cv_lib_dl_dlopen=yes
12280 else $as_nop
12281 ac_cv_lib_dl_dlopen=no
12282 fi
12283 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12284 conftest$ac_exeext conftest.$ac_ext
12285 LIBS=$ac_check_lib_save_LIBS
12286 fi
12287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12288 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12289 if test "x$ac_cv_lib_dl_dlopen" = xyes
12290 then :
12291 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12292 else $as_nop
12293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12294 printf %s "checking for dlopen in -lsvld... " >&6; }
12295 if test ${ac_cv_lib_svld_dlopen+y}
12296 then :
12297 printf %s "(cached) " >&6
12298 else $as_nop
12299 ac_check_lib_save_LIBS=$LIBS
12300 LIBS="-lsvld $LIBS"
12301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12302 /* end confdefs.h. */
12303
12304 /* Override any GCC internal prototype to avoid an error.
12305 Use char because int might match the return type of a GCC
12306 builtin and then its argument prototype would still apply. */
12307 char dlopen ();
12308 int
12309 main (void)
12310 {
12311 return dlopen ();
12312 ;
12313 return 0;
12314 }
12315 _ACEOF
12316 if ac_fn_c_try_link "$LINENO"
12317 then :
12318 ac_cv_lib_svld_dlopen=yes
12319 else $as_nop
12320 ac_cv_lib_svld_dlopen=no
12321 fi
12322 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12323 conftest$ac_exeext conftest.$ac_ext
12324 LIBS=$ac_check_lib_save_LIBS
12325 fi
12326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12327 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12328 if test "x$ac_cv_lib_svld_dlopen" = xyes
12329 then :
12330 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12331 else $as_nop
12332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12333 printf %s "checking for dld_link in -ldld... " >&6; }
12334 if test ${ac_cv_lib_dld_dld_link+y}
12335 then :
12336 printf %s "(cached) " >&6
12337 else $as_nop
12338 ac_check_lib_save_LIBS=$LIBS
12339 LIBS="-ldld $LIBS"
12340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12341 /* end confdefs.h. */
12342
12343 /* Override any GCC internal prototype to avoid an error.
12344 Use char because int might match the return type of a GCC
12345 builtin and then its argument prototype would still apply. */
12346 char dld_link ();
12347 int
12348 main (void)
12349 {
12350 return dld_link ();
12351 ;
12352 return 0;
12353 }
12354 _ACEOF
12355 if ac_fn_c_try_link "$LINENO"
12356 then :
12357 ac_cv_lib_dld_dld_link=yes
12358 else $as_nop
12359 ac_cv_lib_dld_dld_link=no
12360 fi
12361 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12362 conftest$ac_exeext conftest.$ac_ext
12363 LIBS=$ac_check_lib_save_LIBS
12364 fi
12365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12366 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12367 if test "x$ac_cv_lib_dld_dld_link" = xyes
12368 then :
12369 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12370 fi
12371
12372
12373 fi
12374
12375
12376 fi
12377
12378
12379 fi
12380
12381
12382 fi
12383
12384
12385 fi
12386
12387 ;;
12388 esac
12389
12390 if test no = "$lt_cv_dlopen"; then
12391 enable_dlopen=no
12392 else
12393 enable_dlopen=yes
12394 fi
12395
12396 case $lt_cv_dlopen in
12397 dlopen)
12398 save_CPPFLAGS=$CPPFLAGS
12399 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12400
12401 save_LDFLAGS=$LDFLAGS
12402 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12403
12404 save_LIBS=$LIBS
12405 LIBS="$lt_cv_dlopen_libs $LIBS"
12406
12407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12408 printf %s "checking whether a program can dlopen itself... " >&6; }
12409 if test ${lt_cv_dlopen_self+y}
12410 then :
12411 printf %s "(cached) " >&6
12412 else $as_nop
12413 if test yes = "$cross_compiling"; then :
12414 lt_cv_dlopen_self=cross
12415 else
12416 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12417 lt_status=$lt_dlunknown
12418 cat > conftest.$ac_ext <<_LT_EOF
12419 #line $LINENO "configure"
12420 #include "confdefs.h"
12421
12422 #if HAVE_DLFCN_H
12423 #include <dlfcn.h>
12424 #endif
12425
12426 #include <stdio.h>
12427
12428 #ifdef RTLD_GLOBAL
12429 # define LT_DLGLOBAL RTLD_GLOBAL
12430 #else
12431 # ifdef DL_GLOBAL
12432 # define LT_DLGLOBAL DL_GLOBAL
12433 # else
12434 # define LT_DLGLOBAL 0
12435 # endif
12436 #endif
12437
12438 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12439 find out it does not work in some platform. */
12440 #ifndef LT_DLLAZY_OR_NOW
12441 # ifdef RTLD_LAZY
12442 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12443 # else
12444 # ifdef DL_LAZY
12445 # define LT_DLLAZY_OR_NOW DL_LAZY
12446 # else
12447 # ifdef RTLD_NOW
12448 # define LT_DLLAZY_OR_NOW RTLD_NOW
12449 # else
12450 # ifdef DL_NOW
12451 # define LT_DLLAZY_OR_NOW DL_NOW
12452 # else
12453 # define LT_DLLAZY_OR_NOW 0
12454 # endif
12455 # endif
12456 # endif
12457 # endif
12458 #endif
12459
12460 /* When -fvisibility=hidden is used, assume the code has been annotated
12461 correspondingly for the symbols needed. */
12462 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12463 int fnord () __attribute__((visibility("default")));
12464 #endif
12465
12466 int fnord () { return 42; }
12467 int main ()
12468 {
12469 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12470 int status = $lt_dlunknown;
12471
12472 if (self)
12473 {
12474 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12475 else
12476 {
12477 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12478 else puts (dlerror ());
12479 }
12480 /* dlclose (self); */
12481 }
12482 else
12483 puts (dlerror ());
12484
12485 return status;
12486 }
12487 _LT_EOF
12488 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12489 (eval $ac_link) 2>&5
12490 ac_status=$?
12491 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12492 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12493 (./conftest; exit; ) >&5 2>/dev/null
12494 lt_status=$?
12495 case x$lt_status in
12496 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12497 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12498 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12499 esac
12500 else :
12501 # compilation failed
12502 lt_cv_dlopen_self=no
12503 fi
12504 fi
12505 rm -fr conftest*
12506
12507
12508 fi
12509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12510 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12511
12512 if test yes = "$lt_cv_dlopen_self"; then
12513 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12515 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12516 if test ${lt_cv_dlopen_self_static+y}
12517 then :
12518 printf %s "(cached) " >&6
12519 else $as_nop
12520 if test yes = "$cross_compiling"; then :
12521 lt_cv_dlopen_self_static=cross
12522 else
12523 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12524 lt_status=$lt_dlunknown
12525 cat > conftest.$ac_ext <<_LT_EOF
12526 #line $LINENO "configure"
12527 #include "confdefs.h"
12528
12529 #if HAVE_DLFCN_H
12530 #include <dlfcn.h>
12531 #endif
12532
12533 #include <stdio.h>
12534
12535 #ifdef RTLD_GLOBAL
12536 # define LT_DLGLOBAL RTLD_GLOBAL
12537 #else
12538 # ifdef DL_GLOBAL
12539 # define LT_DLGLOBAL DL_GLOBAL
12540 # else
12541 # define LT_DLGLOBAL 0
12542 # endif
12543 #endif
12544
12545 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12546 find out it does not work in some platform. */
12547 #ifndef LT_DLLAZY_OR_NOW
12548 # ifdef RTLD_LAZY
12549 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12550 # else
12551 # ifdef DL_LAZY
12552 # define LT_DLLAZY_OR_NOW DL_LAZY
12553 # else
12554 # ifdef RTLD_NOW
12555 # define LT_DLLAZY_OR_NOW RTLD_NOW
12556 # else
12557 # ifdef DL_NOW
12558 # define LT_DLLAZY_OR_NOW DL_NOW
12559 # else
12560 # define LT_DLLAZY_OR_NOW 0
12561 # endif
12562 # endif
12563 # endif
12564 # endif
12565 #endif
12566
12567 /* When -fvisibility=hidden is used, assume the code has been annotated
12568 correspondingly for the symbols needed. */
12569 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12570 int fnord () __attribute__((visibility("default")));
12571 #endif
12572
12573 int fnord () { return 42; }
12574 int main ()
12575 {
12576 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12577 int status = $lt_dlunknown;
12578
12579 if (self)
12580 {
12581 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12582 else
12583 {
12584 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12585 else puts (dlerror ());
12586 }
12587 /* dlclose (self); */
12588 }
12589 else
12590 puts (dlerror ());
12591
12592 return status;
12593 }
12594 _LT_EOF
12595 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12596 (eval $ac_link) 2>&5
12597 ac_status=$?
12598 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12599 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12600 (./conftest; exit; ) >&5 2>/dev/null
12601 lt_status=$?
12602 case x$lt_status in
12603 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12604 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12605 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12606 esac
12607 else :
12608 # compilation failed
12609 lt_cv_dlopen_self_static=no
12610 fi
12611 fi
12612 rm -fr conftest*
12613
12614
12615 fi
12616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12617 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12618 fi
12619
12620 CPPFLAGS=$save_CPPFLAGS
12621 LDFLAGS=$save_LDFLAGS
12622 LIBS=$save_LIBS
12623 ;;
12624 esac
12625
12626 case $lt_cv_dlopen_self in
12627 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12628 *) enable_dlopen_self=unknown ;;
12629 esac
12630
12631 case $lt_cv_dlopen_self_static in
12632 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12633 *) enable_dlopen_self_static=unknown ;;
12634 esac
12635 fi
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653 striplib=
12654 old_striplib=
12655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12656 printf %s "checking whether stripping libraries is possible... " >&6; }
12657 if test -z "$STRIP"; then
12658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12659 printf "%s\n" "no" >&6; }
12660 else
12661 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12662 old_striplib="$STRIP --strip-debug"
12663 striplib="$STRIP --strip-unneeded"
12664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12665 printf "%s\n" "yes" >&6; }
12666 else
12667 case $host_os in
12668 darwin*)
12669 # FIXME - insert some real tests, host_os isn't really good enough
12670 striplib="$STRIP -x"
12671 old_striplib="$STRIP -S"
12672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12673 printf "%s\n" "yes" >&6; }
12674 ;;
12675 freebsd*)
12676 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12677 old_striplib="$STRIP --strip-debug"
12678 striplib="$STRIP --strip-unneeded"
12679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12680 printf "%s\n" "yes" >&6; }
12681 else
12682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12683 printf "%s\n" "no" >&6; }
12684 fi
12685 ;;
12686 *)
12687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12688 printf "%s\n" "no" >&6; }
12689 ;;
12690 esac
12691 fi
12692 fi
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705 # Report what library types will actually be built
12706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12707 printf %s "checking if libtool supports shared libraries... " >&6; }
12708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12709 printf "%s\n" "$can_build_shared" >&6; }
12710
12711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12712 printf %s "checking whether to build shared libraries... " >&6; }
12713 test no = "$can_build_shared" && enable_shared=no
12714
12715 # On AIX, shared libraries and static libraries use the same namespace, and
12716 # are all built from PIC.
12717 case $host_os in
12718 aix3*)
12719 test yes = "$enable_shared" && enable_static=no
12720 if test -n "$RANLIB"; then
12721 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12722 postinstall_cmds='$RANLIB $lib'
12723 fi
12724 ;;
12725
12726 aix[4-9]*)
12727 if test ia64 != "$host_cpu"; then
12728 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12729 yes,aix,yes) ;; # shared object as lib.so file only
12730 yes,svr4,*) ;; # shared object as lib.so archive member only
12731 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12732 esac
12733 fi
12734 ;;
12735 esac
12736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12737 printf "%s\n" "$enable_shared" >&6; }
12738
12739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12740 printf %s "checking whether to build static libraries... " >&6; }
12741 # Make sure either enable_shared or enable_static is yes.
12742 test yes = "$enable_shared" || enable_static=yes
12743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12744 printf "%s\n" "$enable_static" >&6; }
12745
12746
12747
12748
12749 fi
12750 ac_ext=c
12751 ac_cpp='$CPP $CPPFLAGS'
12752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12755
12756 CC=$lt_save_CC
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772 ac_config_commands="$ac_config_commands libtool"
12773
12774
12775
12776
12777 # Only expand once:
12778
12779
12780 # Check whether --enable-largefile was given.
12781 if test ${enable_largefile+y}
12782 then :
12783 enableval=$enable_largefile;
12784 fi
12785
12786 if test "$enable_largefile" != no; then
12787
12788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12789 printf %s "checking for special C compiler options needed for large files... " >&6; }
12790 if test ${ac_cv_sys_largefile_CC+y}
12791 then :
12792 printf %s "(cached) " >&6
12793 else $as_nop
12794 ac_cv_sys_largefile_CC=no
12795 if test "$GCC" != yes; then
12796 ac_save_CC=$CC
12797 while :; do
12798 # IRIX 6.2 and later do not support large files by default,
12799 # so use the C compiler's -n32 option if that helps.
12800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12801 /* end confdefs.h. */
12802 #include <sys/types.h>
12803 /* Check that off_t can represent 2**63 - 1 correctly.
12804 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12805 since some C++ compilers masquerading as C compilers
12806 incorrectly reject 9223372036854775807. */
12807 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
12808 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12809 && LARGE_OFF_T % 2147483647 == 1)
12810 ? 1 : -1];
12811 int
12812 main (void)
12813 {
12814
12815 ;
12816 return 0;
12817 }
12818 _ACEOF
12819 if ac_fn_c_try_compile "$LINENO"
12820 then :
12821 break
12822 fi
12823 rm -f core conftest.err conftest.$ac_objext conftest.beam
12824 CC="$CC -n32"
12825 if ac_fn_c_try_compile "$LINENO"
12826 then :
12827 ac_cv_sys_largefile_CC=' -n32'; break
12828 fi
12829 rm -f core conftest.err conftest.$ac_objext conftest.beam
12830 break
12831 done
12832 CC=$ac_save_CC
12833 rm -f conftest.$ac_ext
12834 fi
12835 fi
12836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12837 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
12838 if test "$ac_cv_sys_largefile_CC" != no; then
12839 CC=$CC$ac_cv_sys_largefile_CC
12840 fi
12841
12842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12843 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12844 if test ${ac_cv_sys_file_offset_bits+y}
12845 then :
12846 printf %s "(cached) " >&6
12847 else $as_nop
12848 while :; do
12849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12850 /* end confdefs.h. */
12851 #include <sys/types.h>
12852 /* Check that off_t can represent 2**63 - 1 correctly.
12853 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12854 since some C++ compilers masquerading as C compilers
12855 incorrectly reject 9223372036854775807. */
12856 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
12857 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12858 && LARGE_OFF_T % 2147483647 == 1)
12859 ? 1 : -1];
12860 int
12861 main (void)
12862 {
12863
12864 ;
12865 return 0;
12866 }
12867 _ACEOF
12868 if ac_fn_c_try_compile "$LINENO"
12869 then :
12870 ac_cv_sys_file_offset_bits=no; break
12871 fi
12872 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12874 /* end confdefs.h. */
12875 #define _FILE_OFFSET_BITS 64
12876 #include <sys/types.h>
12877 /* Check that off_t can represent 2**63 - 1 correctly.
12878 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12879 since some C++ compilers masquerading as C compilers
12880 incorrectly reject 9223372036854775807. */
12881 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
12882 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12883 && LARGE_OFF_T % 2147483647 == 1)
12884 ? 1 : -1];
12885 int
12886 main (void)
12887 {
12888
12889 ;
12890 return 0;
12891 }
12892 _ACEOF
12893 if ac_fn_c_try_compile "$LINENO"
12894 then :
12895 ac_cv_sys_file_offset_bits=64; break
12896 fi
12897 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12898 ac_cv_sys_file_offset_bits=unknown
12899 break
12900 done
12901 fi
12902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12903 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
12904 case $ac_cv_sys_file_offset_bits in #(
12905 no | unknown) ;;
12906 *)
12907 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
12908 ;;
12909 esac
12910 rm -rf conftest*
12911 if test $ac_cv_sys_file_offset_bits = unknown; then
12912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12913 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
12914 if test ${ac_cv_sys_large_files+y}
12915 then :
12916 printf %s "(cached) " >&6
12917 else $as_nop
12918 while :; do
12919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12920 /* end confdefs.h. */
12921 #include <sys/types.h>
12922 /* Check that off_t can represent 2**63 - 1 correctly.
12923 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12924 since some C++ compilers masquerading as C compilers
12925 incorrectly reject 9223372036854775807. */
12926 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
12927 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12928 && LARGE_OFF_T % 2147483647 == 1)
12929 ? 1 : -1];
12930 int
12931 main (void)
12932 {
12933
12934 ;
12935 return 0;
12936 }
12937 _ACEOF
12938 if ac_fn_c_try_compile "$LINENO"
12939 then :
12940 ac_cv_sys_large_files=no; break
12941 fi
12942 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12944 /* end confdefs.h. */
12945 #define _LARGE_FILES 1
12946 #include <sys/types.h>
12947 /* Check that off_t can represent 2**63 - 1 correctly.
12948 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12949 since some C++ compilers masquerading as C compilers
12950 incorrectly reject 9223372036854775807. */
12951 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
12952 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12953 && LARGE_OFF_T % 2147483647 == 1)
12954 ? 1 : -1];
12955 int
12956 main (void)
12957 {
12958
12959 ;
12960 return 0;
12961 }
12962 _ACEOF
12963 if ac_fn_c_try_compile "$LINENO"
12964 then :
12965 ac_cv_sys_large_files=1; break
12966 fi
12967 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12968 ac_cv_sys_large_files=unknown
12969 break
12970 done
12971 fi
12972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12973 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
12974 case $ac_cv_sys_large_files in #(
12975 no | unknown) ;;
12976 *)
12977 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
12978 ;;
12979 esac
12980 rm -rf conftest*
12981 fi
12982 fi
12983
12984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12985 printf %s "checking whether byte ordering is bigendian... " >&6; }
12986 if test ${ac_cv_c_bigendian+y}
12987 then :
12988 printf %s "(cached) " >&6
12989 else $as_nop
12990 ac_cv_c_bigendian=unknown
12991 # See if we're dealing with a universal compiler.
12992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12993 /* end confdefs.h. */
12994 #ifndef __APPLE_CC__
12995 not a universal capable compiler
12996 #endif
12997 typedef int dummy;
12998
12999 _ACEOF
13000 if ac_fn_c_try_compile "$LINENO"
13001 then :
13002
13003 # Check for potential -arch flags. It is not universal unless
13004 # there are at least two -arch flags with different values.
13005 ac_arch=
13006 ac_prev=
13007 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13008 if test -n "$ac_prev"; then
13009 case $ac_word in
13010 i?86 | x86_64 | ppc | ppc64)
13011 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13012 ac_arch=$ac_word
13013 else
13014 ac_cv_c_bigendian=universal
13015 break
13016 fi
13017 ;;
13018 esac
13019 ac_prev=
13020 elif test "x$ac_word" = "x-arch"; then
13021 ac_prev=arch
13022 fi
13023 done
13024 fi
13025 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13026 if test $ac_cv_c_bigendian = unknown; then
13027 # See if sys/param.h defines the BYTE_ORDER macro.
13028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13029 /* end confdefs.h. */
13030 #include <sys/types.h>
13031 #include <sys/param.h>
13032
13033 int
13034 main (void)
13035 {
13036 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13037 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13038 && LITTLE_ENDIAN)
13039 bogus endian macros
13040 #endif
13041
13042 ;
13043 return 0;
13044 }
13045 _ACEOF
13046 if ac_fn_c_try_compile "$LINENO"
13047 then :
13048 # It does; now see whether it defined to BIG_ENDIAN or not.
13049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13050 /* end confdefs.h. */
13051 #include <sys/types.h>
13052 #include <sys/param.h>
13053
13054 int
13055 main (void)
13056 {
13057 #if BYTE_ORDER != BIG_ENDIAN
13058 not big endian
13059 #endif
13060
13061 ;
13062 return 0;
13063 }
13064 _ACEOF
13065 if ac_fn_c_try_compile "$LINENO"
13066 then :
13067 ac_cv_c_bigendian=yes
13068 else $as_nop
13069 ac_cv_c_bigendian=no
13070 fi
13071 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13072 fi
13073 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13074 fi
13075 if test $ac_cv_c_bigendian = unknown; then
13076 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13078 /* end confdefs.h. */
13079 #include <limits.h>
13080
13081 int
13082 main (void)
13083 {
13084 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13085 bogus endian macros
13086 #endif
13087
13088 ;
13089 return 0;
13090 }
13091 _ACEOF
13092 if ac_fn_c_try_compile "$LINENO"
13093 then :
13094 # It does; now see whether it defined to _BIG_ENDIAN or not.
13095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13096 /* end confdefs.h. */
13097 #include <limits.h>
13098
13099 int
13100 main (void)
13101 {
13102 #ifndef _BIG_ENDIAN
13103 not big endian
13104 #endif
13105
13106 ;
13107 return 0;
13108 }
13109 _ACEOF
13110 if ac_fn_c_try_compile "$LINENO"
13111 then :
13112 ac_cv_c_bigendian=yes
13113 else $as_nop
13114 ac_cv_c_bigendian=no
13115 fi
13116 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13117 fi
13118 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13119 fi
13120 if test $ac_cv_c_bigendian = unknown; then
13121 # Compile a test program.
13122 if test "$cross_compiling" = yes
13123 then :
13124 # Try to guess by grepping values from an object file.
13125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13126 /* end confdefs.h. */
13127 unsigned short int ascii_mm[] =
13128 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13129 unsigned short int ascii_ii[] =
13130 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13131 int use_ascii (int i) {
13132 return ascii_mm[i] + ascii_ii[i];
13133 }
13134 unsigned short int ebcdic_ii[] =
13135 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13136 unsigned short int ebcdic_mm[] =
13137 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13138 int use_ebcdic (int i) {
13139 return ebcdic_mm[i] + ebcdic_ii[i];
13140 }
13141 extern int foo;
13142
13143 int
13144 main (void)
13145 {
13146 return use_ascii (foo) == use_ebcdic (foo);
13147 ;
13148 return 0;
13149 }
13150 _ACEOF
13151 if ac_fn_c_try_compile "$LINENO"
13152 then :
13153 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13154 ac_cv_c_bigendian=yes
13155 fi
13156 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13157 if test "$ac_cv_c_bigendian" = unknown; then
13158 ac_cv_c_bigendian=no
13159 else
13160 # finding both strings is unlikely to happen, but who knows?
13161 ac_cv_c_bigendian=unknown
13162 fi
13163 fi
13164 fi
13165 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13166 else $as_nop
13167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13168 /* end confdefs.h. */
13169 $ac_includes_default
13170 int
13171 main (void)
13172 {
13173
13174 /* Are we little or big endian? From Harbison&Steele. */
13175 union
13176 {
13177 long int l;
13178 char c[sizeof (long int)];
13179 } u;
13180 u.l = 1;
13181 return u.c[sizeof (long int) - 1] == 1;
13182
13183 ;
13184 return 0;
13185 }
13186 _ACEOF
13187 if ac_fn_c_try_run "$LINENO"
13188 then :
13189 ac_cv_c_bigendian=no
13190 else $as_nop
13191 ac_cv_c_bigendian=yes
13192 fi
13193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13194 conftest.$ac_objext conftest.beam conftest.$ac_ext
13195 fi
13196
13197 fi
13198 fi
13199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13200 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
13201 case $ac_cv_c_bigendian in #(
13202 yes)
13203 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
13204 ;; #(
13205 no)
13206 ;; #(
13207 universal)
13208
13209 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13210
13211 ;; #(
13212 *)
13213 as_fn_error $? "unknown endianness
13214 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13215 esac
13216
13217
13218 ac_config_files="$ac_config_files Makefile lib/Makefile mkfs/Makefile fsck/Makefile tune/Makefile label/Makefile dump/Makefile exfat2img/Makefile upcase/Makefile dosattr/Makefile"
13219
13220
13221 for ac_header in fts.h
13222 do :
13223 ac_fn_c_check_header_compile "$LINENO" "fts.h" "ac_cv_header_fts_h" "$ac_includes_default"
13224 if test "x$ac_cv_header_fts_h" = xyes
13225 then :
13226 printf "%s\n" "#define HAVE_FTS_H 1" >>confdefs.h
13227 have_fts_h="yes"
13228 fi
13229
13230 done
13231 if test "x$have_fts_h" = "xyes"; then
13232 ENABLE_DOSATTR_TRUE=
13233 ENABLE_DOSATTR_FALSE='#'
13234 else
13235 ENABLE_DOSATTR_TRUE='#'
13236 ENABLE_DOSATTR_FALSE=
13237 fi
13238
13239 if test -z "$ENABLE_DOSATTR_TRUE"; then :
13240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fts_open in -lfts" >&5
13241 printf %s "checking for fts_open in -lfts... " >&6; }
13242 if test ${ac_cv_lib_fts_fts_open+y}
13243 then :
13244 printf %s "(cached) " >&6
13245 else $as_nop
13246 ac_check_lib_save_LIBS=$LIBS
13247 LIBS="-lfts $LIBS"
13248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13249 /* end confdefs.h. */
13250
13251 /* Override any GCC internal prototype to avoid an error.
13252 Use char because int might match the return type of a GCC
13253 builtin and then its argument prototype would still apply. */
13254 char fts_open ();
13255 int
13256 main (void)
13257 {
13258 return fts_open ();
13259 ;
13260 return 0;
13261 }
13262 _ACEOF
13263 if ac_fn_c_try_link "$LINENO"
13264 then :
13265 ac_cv_lib_fts_fts_open=yes
13266 else $as_nop
13267 ac_cv_lib_fts_fts_open=no
13268 fi
13269 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13270 conftest$ac_exeext conftest.$ac_ext
13271 LIBS=$ac_check_lib_save_LIBS
13272 fi
13273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fts_fts_open" >&5
13274 printf "%s\n" "$ac_cv_lib_fts_fts_open" >&6; }
13275 if test "x$ac_cv_lib_fts_fts_open" = xyes
13276 then :
13277 printf "%s\n" "#define HAVE_LIBFTS 1" >>confdefs.h
13278
13279 LIBS="-lfts $LIBS"
13280
13281 fi
13282
13283 else
13284 echo "<fts.h> not found. Not building dosattr programs"
13285
13286 fi
13287
13288 # There are two variants of libblkid: one from util-linux and the other from
13289 # e2fsprogs. In Android(AOSP), only the e2fsprogs variant is available.
13290 # Most distros don't provide a static libblkid so in order to build static
13291 # executables, libblkid.a will have to be built first.
13292
13293
13294
13295
13296
13297
13298
13299 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13300 if test -n "$ac_tool_prefix"; then
13301 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13302 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13304 printf %s "checking for $ac_word... " >&6; }
13305 if test ${ac_cv_path_PKG_CONFIG+y}
13306 then :
13307 printf %s "(cached) " >&6
13308 else $as_nop
13309 case $PKG_CONFIG in
13310 [\\/]* | ?:[\\/]*)
13311 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13312 ;;
13313 *)
13314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13315 for as_dir in $PATH
13316 do
13317 IFS=$as_save_IFS
13318 case $as_dir in #(((
13319 '') as_dir=./ ;;
13320 */) ;;
13321 *) as_dir=$as_dir/ ;;
13322 esac
13323 for ac_exec_ext in '' $ac_executable_extensions; do
13324 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13325 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13326 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13327 break 2
13328 fi
13329 done
13330 done
13331 IFS=$as_save_IFS
13332
13333 ;;
13334 esac
13335 fi
13336 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13337 if test -n "$PKG_CONFIG"; then
13338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13339 printf "%s\n" "$PKG_CONFIG" >&6; }
13340 else
13341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13342 printf "%s\n" "no" >&6; }
13343 fi
13344
13345
13346 fi
13347 if test -z "$ac_cv_path_PKG_CONFIG"; then
13348 ac_pt_PKG_CONFIG=$PKG_CONFIG
13349 # Extract the first word of "pkg-config", so it can be a program name with args.
13350 set dummy pkg-config; ac_word=$2
13351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13352 printf %s "checking for $ac_word... " >&6; }
13353 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
13354 then :
13355 printf %s "(cached) " >&6
13356 else $as_nop
13357 case $ac_pt_PKG_CONFIG in
13358 [\\/]* | ?:[\\/]*)
13359 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13360 ;;
13361 *)
13362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13363 for as_dir in $PATH
13364 do
13365 IFS=$as_save_IFS
13366 case $as_dir in #(((
13367 '') as_dir=./ ;;
13368 */) ;;
13369 *) as_dir=$as_dir/ ;;
13370 esac
13371 for ac_exec_ext in '' $ac_executable_extensions; do
13372 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13373 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13374 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13375 break 2
13376 fi
13377 done
13378 done
13379 IFS=$as_save_IFS
13380
13381 ;;
13382 esac
13383 fi
13384 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13385 if test -n "$ac_pt_PKG_CONFIG"; then
13386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13387 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
13388 else
13389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13390 printf "%s\n" "no" >&6; }
13391 fi
13392
13393 if test "x$ac_pt_PKG_CONFIG" = x; then
13394 PKG_CONFIG=""
13395 else
13396 case $cross_compiling:$ac_tool_warned in
13397 yes:)
13398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13399 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13400 ac_tool_warned=yes ;;
13401 esac
13402 PKG_CONFIG=$ac_pt_PKG_CONFIG
13403 fi
13404 else
13405 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13406 fi
13407
13408 fi
13409 if test -n "$PKG_CONFIG"; then
13410 _pkg_min_version=0.9.0
13411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13412 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13413 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13415 printf "%s\n" "yes" >&6; }
13416 else
13417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13418 printf "%s\n" "no" >&6; }
13419 PKG_CONFIG=""
13420 fi
13421 fi
13422
13423 pkg_failed=no
13424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid >= 2.20" >&5
13425 printf %s "checking for blkid >= 2.20... " >&6; }
13426
13427 if test -n "$BLKID_CFLAGS"; then
13428 pkg_cv_BLKID_CFLAGS="$BLKID_CFLAGS"
13429 elif test -n "$PKG_CONFIG"; then
13430 if test -n "$PKG_CONFIG" && \
13431 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"blkid >= 2.20\""; } >&5
13432 ($PKG_CONFIG --exists --print-errors "blkid >= 2.20") 2>&5
13433 ac_status=$?
13434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13435 test $ac_status = 0; }; then
13436 pkg_cv_BLKID_CFLAGS=`$PKG_CONFIG --cflags "blkid >= 2.20" 2>/dev/null`
13437 test "x$?" != "x0" && pkg_failed=yes
13438 else
13439 pkg_failed=yes
13440 fi
13441 else
13442 pkg_failed=untried
13443 fi
13444 if test -n "$BLKID_LIBS"; then
13445 pkg_cv_BLKID_LIBS="$BLKID_LIBS"
13446 elif test -n "$PKG_CONFIG"; then
13447 if test -n "$PKG_CONFIG" && \
13448 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"blkid >= 2.20\""; } >&5
13449 ($PKG_CONFIG --exists --print-errors "blkid >= 2.20") 2>&5
13450 ac_status=$?
13451 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13452 test $ac_status = 0; }; then
13453 pkg_cv_BLKID_LIBS=`$PKG_CONFIG --libs "blkid >= 2.20" 2>/dev/null`
13454 test "x$?" != "x0" && pkg_failed=yes
13455 else
13456 pkg_failed=yes
13457 fi
13458 else
13459 pkg_failed=untried
13460 fi
13461
13462
13463
13464 if test $pkg_failed = yes; then
13465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13466 printf "%s\n" "no" >&6; }
13467
13468 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13469 _pkg_short_errors_supported=yes
13470 else
13471 _pkg_short_errors_supported=no
13472 fi
13473 if test $_pkg_short_errors_supported = yes; then
13474 BLKID_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "blkid >= 2.20" 2>&1`
13475 else
13476 BLKID_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "blkid >= 2.20" 2>&1`
13477 fi
13478 # Put the nasty error message in config.log where it belongs
13479 echo "$BLKID_PKG_ERRORS" >&5
13480
13481
13482 pkg_failed=no
13483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid" >&5
13484 printf %s "checking for blkid... " >&6; }
13485
13486 if test -n "$EXT2_BLKID_CFLAGS"; then
13487 pkg_cv_EXT2_BLKID_CFLAGS="$EXT2_BLKID_CFLAGS"
13488 elif test -n "$PKG_CONFIG"; then
13489 if test -n "$PKG_CONFIG" && \
13490 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"blkid\""; } >&5
13491 ($PKG_CONFIG --exists --print-errors "blkid") 2>&5
13492 ac_status=$?
13493 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13494 test $ac_status = 0; }; then
13495 pkg_cv_EXT2_BLKID_CFLAGS=`$PKG_CONFIG --cflags "blkid" 2>/dev/null`
13496 test "x$?" != "x0" && pkg_failed=yes
13497 else
13498 pkg_failed=yes
13499 fi
13500 else
13501 pkg_failed=untried
13502 fi
13503 if test -n "$EXT2_BLKID_LIBS"; then
13504 pkg_cv_EXT2_BLKID_LIBS="$EXT2_BLKID_LIBS"
13505 elif test -n "$PKG_CONFIG"; then
13506 if test -n "$PKG_CONFIG" && \
13507 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"blkid\""; } >&5
13508 ($PKG_CONFIG --exists --print-errors "blkid") 2>&5
13509 ac_status=$?
13510 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13511 test $ac_status = 0; }; then
13512 pkg_cv_EXT2_BLKID_LIBS=`$PKG_CONFIG --libs "blkid" 2>/dev/null`
13513 test "x$?" != "x0" && pkg_failed=yes
13514 else
13515 pkg_failed=yes
13516 fi
13517 else
13518 pkg_failed=untried
13519 fi
13520
13521
13522
13523 if test $pkg_failed = yes; then
13524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13525 printf "%s\n" "no" >&6; }
13526
13527 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13528 _pkg_short_errors_supported=yes
13529 else
13530 _pkg_short_errors_supported=no
13531 fi
13532 if test $_pkg_short_errors_supported = yes; then
13533 EXT2_BLKID_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "blkid" 2>&1`
13534 else
13535 EXT2_BLKID_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "blkid" 2>&1`
13536 fi
13537 # Put the nasty error message in config.log where it belongs
13538 echo "$EXT2_BLKID_PKG_ERRORS" >&5
13539
13540 as_fn_error $? "Package requirements (blkid) were not met:
13541
13542 $EXT2_BLKID_PKG_ERRORS
13543
13544 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13545 installed software in a non-standard prefix.
13546
13547 Alternatively, you may set the environment variables EXT2_BLKID_CFLAGS
13548 and EXT2_BLKID_LIBS to avoid the need to call pkg-config.
13549 See the pkg-config man page for more details." "$LINENO" 5
13550 elif test $pkg_failed = untried; then
13551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13552 printf "%s\n" "no" >&6; }
13553 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13554 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13555 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13556 is in your PATH or set the PKG_CONFIG environment variable to the full
13557 path to pkg-config.
13558
13559 Alternatively, you may set the environment variables EXT2_BLKID_CFLAGS
13560 and EXT2_BLKID_LIBS to avoid the need to call pkg-config.
13561 See the pkg-config man page for more details.
13562
13563 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13564 See \`config.log' for more details" "$LINENO" 5; }
13565 else
13566 EXT2_BLKID_CFLAGS=$pkg_cv_EXT2_BLKID_CFLAGS
13567 EXT2_BLKID_LIBS=$pkg_cv_EXT2_BLKID_LIBS
13568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13569 printf "%s\n" "yes" >&6; }
13570
13571 printf "%s\n" "#define HAVE_EXT2_BLKID 1" >>confdefs.h
13572
13573 fi
13574 elif test $pkg_failed = untried; then
13575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13576 printf "%s\n" "no" >&6; }
13577
13578 pkg_failed=no
13579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid" >&5
13580 printf %s "checking for blkid... " >&6; }
13581
13582 if test -n "$EXT2_BLKID_CFLAGS"; then
13583 pkg_cv_EXT2_BLKID_CFLAGS="$EXT2_BLKID_CFLAGS"
13584 elif test -n "$PKG_CONFIG"; then
13585 if test -n "$PKG_CONFIG" && \
13586 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"blkid\""; } >&5
13587 ($PKG_CONFIG --exists --print-errors "blkid") 2>&5
13588 ac_status=$?
13589 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13590 test $ac_status = 0; }; then
13591 pkg_cv_EXT2_BLKID_CFLAGS=`$PKG_CONFIG --cflags "blkid" 2>/dev/null`
13592 test "x$?" != "x0" && pkg_failed=yes
13593 else
13594 pkg_failed=yes
13595 fi
13596 else
13597 pkg_failed=untried
13598 fi
13599 if test -n "$EXT2_BLKID_LIBS"; then
13600 pkg_cv_EXT2_BLKID_LIBS="$EXT2_BLKID_LIBS"
13601 elif test -n "$PKG_CONFIG"; then
13602 if test -n "$PKG_CONFIG" && \
13603 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"blkid\""; } >&5
13604 ($PKG_CONFIG --exists --print-errors "blkid") 2>&5
13605 ac_status=$?
13606 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13607 test $ac_status = 0; }; then
13608 pkg_cv_EXT2_BLKID_LIBS=`$PKG_CONFIG --libs "blkid" 2>/dev/null`
13609 test "x$?" != "x0" && pkg_failed=yes
13610 else
13611 pkg_failed=yes
13612 fi
13613 else
13614 pkg_failed=untried
13615 fi
13616
13617
13618
13619 if test $pkg_failed = yes; then
13620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13621 printf "%s\n" "no" >&6; }
13622
13623 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13624 _pkg_short_errors_supported=yes
13625 else
13626 _pkg_short_errors_supported=no
13627 fi
13628 if test $_pkg_short_errors_supported = yes; then
13629 EXT2_BLKID_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "blkid" 2>&1`
13630 else
13631 EXT2_BLKID_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "blkid" 2>&1`
13632 fi
13633 # Put the nasty error message in config.log where it belongs
13634 echo "$EXT2_BLKID_PKG_ERRORS" >&5
13635
13636 as_fn_error $? "Package requirements (blkid) were not met:
13637
13638 $EXT2_BLKID_PKG_ERRORS
13639
13640 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13641 installed software in a non-standard prefix.
13642
13643 Alternatively, you may set the environment variables EXT2_BLKID_CFLAGS
13644 and EXT2_BLKID_LIBS to avoid the need to call pkg-config.
13645 See the pkg-config man page for more details." "$LINENO" 5
13646 elif test $pkg_failed = untried; then
13647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13648 printf "%s\n" "no" >&6; }
13649 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13650 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13651 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13652 is in your PATH or set the PKG_CONFIG environment variable to the full
13653 path to pkg-config.
13654
13655 Alternatively, you may set the environment variables EXT2_BLKID_CFLAGS
13656 and EXT2_BLKID_LIBS to avoid the need to call pkg-config.
13657 See the pkg-config man page for more details.
13658
13659 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13660 See \`config.log' for more details" "$LINENO" 5; }
13661 else
13662 EXT2_BLKID_CFLAGS=$pkg_cv_EXT2_BLKID_CFLAGS
13663 EXT2_BLKID_LIBS=$pkg_cv_EXT2_BLKID_LIBS
13664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13665 printf "%s\n" "yes" >&6; }
13666
13667 printf "%s\n" "#define HAVE_EXT2_BLKID 1" >>confdefs.h
13668
13669 fi
13670 else
13671 BLKID_CFLAGS=$pkg_cv_BLKID_CFLAGS
13672 BLKID_LIBS=$pkg_cv_BLKID_LIBS
13673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13674 printf "%s\n" "yes" >&6; }
13675
13676 printf "%s\n" "#define HAVE_BLKID 1" >>confdefs.h
13677
13678 fi
13679
13680 # Check whether --enable-tests was given.
13681 if test ${enable_tests+y}
13682 then :
13683 enableval=$enable_tests;
13684 fi
13685
13686 if test "x$enable_tests" = xyes; then
13687 ENABLE_TESTS_TRUE=
13688 ENABLE_TESTS_FALSE='#'
13689 else
13690 ENABLE_TESTS_TRUE='#'
13691 ENABLE_TESTS_FALSE=
13692 fi
13693
13694
13695 cat >confcache <<\_ACEOF
13696 # This file is a shell script that caches the results of configure
13697 # tests run on this system so they can be shared between configure
13698 # scripts and configure runs, see configure's option --config-cache.
13699 # It is not useful on other systems. If it contains results you don't
13700 # want to keep, you may remove or edit it.
13701 #
13702 # config.status only pays attention to the cache file if you give it
13703 # the --recheck option to rerun configure.
13704 #
13705 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13706 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13707 # following values.
13708
13709 _ACEOF
13710
13711 # The following way of writing the cache mishandles newlines in values,
13712 # but we know of no workaround that is simple, portable, and efficient.
13713 # So, we kill variables containing newlines.
13714 # Ultrix sh set writes to stderr and can't be redirected directly,
13715 # and sets the high bit in the cache file unless we assign to the vars.
13716 (
13717 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13718 eval ac_val=\$$ac_var
13719 case $ac_val in #(
13720 *${as_nl}*)
13721 case $ac_var in #(
13722 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13723 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13724 esac
13725 case $ac_var in #(
13726 _ | IFS | as_nl) ;; #(
13727 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13728 *) { eval $ac_var=; unset $ac_var;} ;;
13729 esac ;;
13730 esac
13731 done
13732
13733 (set) 2>&1 |
13734 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13735 *${as_nl}ac_space=\ *)
13736 # `set' does not quote correctly, so add quotes: double-quote
13737 # substitution turns \\\\ into \\, and sed turns \\ into \.
13738 sed -n \
13739 "s/'/'\\\\''/g;
13740 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13741 ;; #(
13742 *)
13743 # `set' quotes correctly as required by POSIX, so do not add quotes.
13744 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13745 ;;
13746 esac |
13747 sort
13748 ) |
13749 sed '
13750 /^ac_cv_env_/b end
13751 t clear
13752 :clear
13753 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
13754 t end
13755 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13756 :end' >>confcache
13757 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13758 if test -w "$cache_file"; then
13759 if test "x$cache_file" != "x/dev/null"; then
13760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13761 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
13762 if test ! -f "$cache_file" || test -h "$cache_file"; then
13763 cat confcache >"$cache_file"
13764 else
13765 case $cache_file in #(
13766 */* | ?:*)
13767 mv -f confcache "$cache_file"$$ &&
13768 mv -f "$cache_file"$$ "$cache_file" ;; #(
13769 *)
13770 mv -f confcache "$cache_file" ;;
13771 esac
13772 fi
13773 fi
13774 else
13775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13776 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
13777 fi
13778 fi
13779 rm -f confcache
13780
13781 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13782 # Let make expand exec_prefix.
13783 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13784
13785 DEFS=-DHAVE_CONFIG_H
13786
13787 ac_libobjs=
13788 ac_ltlibobjs=
13789 U=
13790 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13791 # 1. Remove the extension, and $U if already installed.
13792 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13793 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
13794 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13795 # will be set to the directory where LIBOBJS objects are built.
13796 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13797 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13798 done
13799 LIBOBJS=$ac_libobjs
13800
13801 LTLIBOBJS=$ac_ltlibobjs
13802
13803
13804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13805 printf %s "checking that generated files are newer than configure... " >&6; }
13806 if test -n "$am_sleep_pid"; then
13807 # Hide warnings about reused PIDs.
13808 wait $am_sleep_pid 2>/dev/null
13809 fi
13810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
13811 printf "%s\n" "done" >&6; }
13812 if test -n "$EXEEXT"; then
13813 am__EXEEXT_TRUE=
13814 am__EXEEXT_FALSE='#'
13815 else
13816 am__EXEEXT_TRUE='#'
13817 am__EXEEXT_FALSE=
13818 fi
13819
13820 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13821 as_fn_error $? "conditional \"AMDEP\" was never defined.
13822 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13823 fi
13824 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13825 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13826 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13827 fi
13828
13829 if test -z "${ENABLE_DOSATTR_TRUE}" && test -z "${ENABLE_DOSATTR_FALSE}"; then
13830 as_fn_error $? "conditional \"ENABLE_DOSATTR\" was never defined.
13831 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13832 fi
13833 if test -z "${ENABLE_TESTS_TRUE}" && test -z "${ENABLE_TESTS_FALSE}"; then
13834 as_fn_error $? "conditional \"ENABLE_TESTS\" was never defined.
13835 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13836 fi
13837
13838 : "${CONFIG_STATUS=./config.status}"
13839 ac_write_fail=0
13840 ac_clean_files_save=$ac_clean_files
13841 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13843 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
13844 as_write_fail=0
13845 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13846 #! $SHELL
13847 # Generated by $as_me.
13848 # Run this file to recreate the current configuration.
13849 # Compiler output produced by configure, useful for debugging
13850 # configure, is in config.log if it exists.
13851
13852 debug=false
13853 ac_cs_recheck=false
13854 ac_cs_silent=false
13855
13856 SHELL=\${CONFIG_SHELL-$SHELL}
13857 export SHELL
13858 _ASEOF
13859 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13860 ## -------------------- ##
13861 ## M4sh Initialization. ##
13862 ## -------------------- ##
13863
13864 # Be more Bourne compatible
13865 DUALCASE=1; export DUALCASE # for MKS sh
13866 as_nop=:
13867 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
13868 then :
13869 emulate sh
13870 NULLCMD=:
13871 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13872 # is contrary to our usage. Disable this feature.
13873 alias -g '${1+"$@"}'='"$@"'
13874 setopt NO_GLOB_SUBST
13875 else $as_nop
13876 case `(set -o) 2>/dev/null` in #(
13877 *posix*) :
13878 set -o posix ;; #(
13879 *) :
13880 ;;
13881 esac
13882 fi
13883
13884
13885
13886 # Reset variables that may have inherited troublesome values from
13887 # the environment.
13888
13889 # IFS needs to be set, to space, tab, and newline, in precisely that order.
13890 # (If _AS_PATH_WALK were called with IFS unset, it would have the
13891 # side effect of setting IFS to empty, thus disabling word splitting.)
13892 # Quoting is to prevent editors from complaining about space-tab.
13893 as_nl='
13894 '
13895 export as_nl
13896 IFS=" "" $as_nl"
13897
13898 PS1='$ '
13899 PS2='> '
13900 PS4='+ '
13901
13902 # Ensure predictable behavior from utilities with locale-dependent output.
13903 LC_ALL=C
13904 export LC_ALL
13905 LANGUAGE=C
13906 export LANGUAGE
13907
13908 # We cannot yet rely on "unset" to work, but we need these variables
13909 # to be unset--not just set to an empty or harmless value--now, to
13910 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
13911 # also avoids known problems related to "unset" and subshell syntax
13912 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
13913 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
13914 do eval test \${$as_var+y} \
13915 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13916 done
13917
13918 # Ensure that fds 0, 1, and 2 are open.
13919 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
13920 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
13921 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
13922
13923 # The user is always right.
13924 if ${PATH_SEPARATOR+false} :; then
13925 PATH_SEPARATOR=:
13926 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13927 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13928 PATH_SEPARATOR=';'
13929 }
13930 fi
13931
13932
13933 # Find who we are. Look in the path if we contain no directory separator.
13934 as_myself=
13935 case $0 in #((
13936 *[\\/]* ) as_myself=$0 ;;
13937 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13938 for as_dir in $PATH
13939 do
13940 IFS=$as_save_IFS
13941 case $as_dir in #(((
13942 '') as_dir=./ ;;
13943 */) ;;
13944 *) as_dir=$as_dir/ ;;
13945 esac
13946 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
13947 done
13948 IFS=$as_save_IFS
13949
13950 ;;
13951 esac
13952 # We did not find ourselves, most probably we were run as `sh COMMAND'
13953 # in which case we are not to be found in the path.
13954 if test "x$as_myself" = x; then
13955 as_myself=$0
13956 fi
13957 if test ! -f "$as_myself"; then
13958 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13959 exit 1
13960 fi
13961
13962
13963
13964 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13965 # ----------------------------------------
13966 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13967 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13968 # script with STATUS, using 1 if that was 0.
13969 as_fn_error ()
13970 {
13971 as_status=$1; test $as_status -eq 0 && as_status=1
13972 if test "$4"; then
13973 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13974 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13975 fi
13976 printf "%s\n" "$as_me: error: $2" >&2
13977 as_fn_exit $as_status
13978 } # as_fn_error
13979
13980
13981
13982 # as_fn_set_status STATUS
13983 # -----------------------
13984 # Set $? to STATUS, without forking.
13985 as_fn_set_status ()
13986 {
13987 return $1
13988 } # as_fn_set_status
13989
13990 # as_fn_exit STATUS
13991 # -----------------
13992 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13993 as_fn_exit ()
13994 {
13995 set +e
13996 as_fn_set_status $1
13997 exit $1
13998 } # as_fn_exit
13999
14000 # as_fn_unset VAR
14001 # ---------------
14002 # Portably unset VAR.
14003 as_fn_unset ()
14004 {
14005 { eval $1=; unset $1;}
14006 }
14007 as_unset=as_fn_unset
14008
14009 # as_fn_append VAR VALUE
14010 # ----------------------
14011 # Append the text in VALUE to the end of the definition contained in VAR. Take
14012 # advantage of any shell optimizations that allow amortized linear growth over
14013 # repeated appends, instead of the typical quadratic growth present in naive
14014 # implementations.
14015 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
14016 then :
14017 eval 'as_fn_append ()
14018 {
14019 eval $1+=\$2
14020 }'
14021 else $as_nop
14022 as_fn_append ()
14023 {
14024 eval $1=\$$1\$2
14025 }
14026 fi # as_fn_append
14027
14028 # as_fn_arith ARG...
14029 # ------------------
14030 # Perform arithmetic evaluation on the ARGs, and store the result in the
14031 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14032 # must be portable across $(()) and expr.
14033 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
14034 then :
14035 eval 'as_fn_arith ()
14036 {
14037 as_val=$(( $* ))
14038 }'
14039 else $as_nop
14040 as_fn_arith ()
14041 {
14042 as_val=`expr "$@" || test $? -eq 1`
14043 }
14044 fi # as_fn_arith
14045
14046
14047 if expr a : '\(a\)' >/dev/null 2>&1 &&
14048 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14049 as_expr=expr
14050 else
14051 as_expr=false
14052 fi
14053
14054 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14055 as_basename=basename
14056 else
14057 as_basename=false
14058 fi
14059
14060 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14061 as_dirname=dirname
14062 else
14063 as_dirname=false
14064 fi
14065
14066 as_me=`$as_basename -- "$0" ||
14067 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14068 X"$0" : 'X\(//\)$' \| \
14069 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14070 printf "%s\n" X/"$0" |
14071 sed '/^.*\/\([^/][^/]*\)\/*$/{
14072 s//\1/
14073 q
14074 }
14075 /^X\/\(\/\/\)$/{
14076 s//\1/
14077 q
14078 }
14079 /^X\/\(\/\).*/{
14080 s//\1/
14081 q
14082 }
14083 s/.*/./; q'`
14084
14085 # Avoid depending upon Character Ranges.
14086 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14087 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14088 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14089 as_cr_digits='0123456789'
14090 as_cr_alnum=$as_cr_Letters$as_cr_digits
14091
14092
14093 # Determine whether it's possible to make 'echo' print without a newline.
14094 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
14095 # for compatibility with existing Makefiles.
14096 ECHO_C= ECHO_N= ECHO_T=
14097 case `echo -n x` in #(((((
14098 -n*)
14099 case `echo 'xy\c'` in
14100 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14101 xy) ECHO_C='\c';;
14102 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14103 ECHO_T=' ';;
14104 esac;;
14105 *)
14106 ECHO_N='-n';;
14107 esac
14108
14109 # For backward compatibility with old third-party macros, we provide
14110 # the shell variables $as_echo and $as_echo_n. New code should use
14111 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
14112 as_echo='printf %s\n'
14113 as_echo_n='printf %s'
14114
14115 rm -f conf$$ conf$$.exe conf$$.file
14116 if test -d conf$$.dir; then
14117 rm -f conf$$.dir/conf$$.file
14118 else
14119 rm -f conf$$.dir
14120 mkdir conf$$.dir 2>/dev/null
14121 fi
14122 if (echo >conf$$.file) 2>/dev/null; then
14123 if ln -s conf$$.file conf$$ 2>/dev/null; then
14124 as_ln_s='ln -s'
14125 # ... but there are two gotchas:
14126 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14127 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14128 # In both cases, we have to default to `cp -pR'.
14129 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14130 as_ln_s='cp -pR'
14131 elif ln conf$$.file conf$$ 2>/dev/null; then
14132 as_ln_s=ln
14133 else
14134 as_ln_s='cp -pR'
14135 fi
14136 else
14137 as_ln_s='cp -pR'
14138 fi
14139 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14140 rmdir conf$$.dir 2>/dev/null
14141
14142
14143 # as_fn_mkdir_p
14144 # -------------
14145 # Create "$as_dir" as a directory, including parents if necessary.
14146 as_fn_mkdir_p ()
14147 {
14148
14149 case $as_dir in #(
14150 -*) as_dir=./$as_dir;;
14151 esac
14152 test -d "$as_dir" || eval $as_mkdir_p || {
14153 as_dirs=
14154 while :; do
14155 case $as_dir in #(
14156 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14157 *) as_qdir=$as_dir;;
14158 esac
14159 as_dirs="'$as_qdir' $as_dirs"
14160 as_dir=`$as_dirname -- "$as_dir" ||
14161 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14162 X"$as_dir" : 'X\(//\)[^/]' \| \
14163 X"$as_dir" : 'X\(//\)$' \| \
14164 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14165 printf "%s\n" X"$as_dir" |
14166 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14167 s//\1/
14168 q
14169 }
14170 /^X\(\/\/\)[^/].*/{
14171 s//\1/
14172 q
14173 }
14174 /^X\(\/\/\)$/{
14175 s//\1/
14176 q
14177 }
14178 /^X\(\/\).*/{
14179 s//\1/
14180 q
14181 }
14182 s/.*/./; q'`
14183 test -d "$as_dir" && break
14184 done
14185 test -z "$as_dirs" || eval "mkdir $as_dirs"
14186 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14187
14188
14189 } # as_fn_mkdir_p
14190 if mkdir -p . 2>/dev/null; then
14191 as_mkdir_p='mkdir -p "$as_dir"'
14192 else
14193 test -d ./-p && rmdir ./-p
14194 as_mkdir_p=false
14195 fi
14196
14197
14198 # as_fn_executable_p FILE
14199 # -----------------------
14200 # Test if FILE is an executable regular file.
14201 as_fn_executable_p ()
14202 {
14203 test -f "$1" && test -x "$1"
14204 } # as_fn_executable_p
14205 as_test_x='test -x'
14206 as_executable_p=as_fn_executable_p
14207
14208 # Sed expression to map a string onto a valid CPP name.
14209 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14210
14211 # Sed expression to map a string onto a valid variable name.
14212 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14213
14214
14215 exec 6>&1
14216 ## ----------------------------------- ##
14217 ## Main body of $CONFIG_STATUS script. ##
14218 ## ----------------------------------- ##
14219 _ASEOF
14220 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14221
14222 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14223 # Save the log message, to keep $0 and so on meaningful, and to
14224 # report actual input values of CONFIG_FILES etc. instead of their
14225 # values after options handling.
14226 ac_log="
14227 This file was extended by exfatprogs $as_me 1.4.3, which was
14228 generated by GNU Autoconf 2.71. Invocation command line was
14229
14230 CONFIG_FILES = $CONFIG_FILES
14231 CONFIG_HEADERS = $CONFIG_HEADERS
14232 CONFIG_LINKS = $CONFIG_LINKS
14233 CONFIG_COMMANDS = $CONFIG_COMMANDS
14234 $ $0 $@
14235
14236 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14237 "
14238
14239 _ACEOF
14240
14241 case $ac_config_files in *"
14242 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14243 esac
14244
14245 case $ac_config_headers in *"
14246 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14247 esac
14248
14249
14250 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14251 # Files that config.status was made for.
14252 config_files="$ac_config_files"
14253 config_headers="$ac_config_headers"
14254 config_commands="$ac_config_commands"
14255
14256 _ACEOF
14257
14258 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14259 ac_cs_usage="\
14260 \`$as_me' instantiates files and other configuration actions
14261 from templates according to the current configuration. Unless the files
14262 and actions are specified as TAGs, all are instantiated by default.
14263
14264 Usage: $0 [OPTION]... [TAG]...
14265
14266 -h, --help print this help, then exit
14267 -V, --version print version number and configuration settings, then exit
14268 --config print configuration, then exit
14269 -q, --quiet, --silent
14270 do not print progress messages
14271 -d, --debug don't remove temporary files
14272 --recheck update $as_me by reconfiguring in the same conditions
14273 --file=FILE[:TEMPLATE]
14274 instantiate the configuration file FILE
14275 --header=FILE[:TEMPLATE]
14276 instantiate the configuration header FILE
14277
14278 Configuration files:
14279 $config_files
14280
14281 Configuration headers:
14282 $config_headers
14283
14284 Configuration commands:
14285 $config_commands
14286
14287 Report bugs to <[email protected]>.
14288 exfatprogs home page: <https://github.com/exfatprogs/exfatprogs>."
14289
14290 _ACEOF
14291 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
14292 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
14293 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14294 ac_cs_config='$ac_cs_config_escaped'
14295 ac_cs_version="\\
14296 exfatprogs config.status 1.4.3
14297 configured by $0, generated by GNU Autoconf 2.71,
14298 with options \\"\$ac_cs_config\\"
14299
14300 Copyright (C) 2021 Free Software Foundation, Inc.
14301 This config.status script is free software; the Free Software Foundation
14302 gives unlimited permission to copy, distribute and modify it."
14303
14304 ac_pwd='$ac_pwd'
14305 srcdir='$srcdir'
14306 INSTALL='$INSTALL'
14307 MKDIR_P='$MKDIR_P'
14308 AWK='$AWK'
14309 test -n "\$AWK" || AWK=awk
14310 _ACEOF
14311
14312 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14313 # The default lists apply if the user does not specify any file.
14314 ac_need_defaults=:
14315 while test $# != 0
14316 do
14317 case $1 in
14318 --*=?*)
14319 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14320 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14321 ac_shift=:
14322 ;;
14323 --*=)
14324 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14325 ac_optarg=
14326 ac_shift=:
14327 ;;
14328 *)
14329 ac_option=$1
14330 ac_optarg=$2
14331 ac_shift=shift
14332 ;;
14333 esac
14334
14335 case $ac_option in
14336 # Handling of the options.
14337 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14338 ac_cs_recheck=: ;;
14339 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14340 printf "%s\n" "$ac_cs_version"; exit ;;
14341 --config | --confi | --conf | --con | --co | --c )
14342 printf "%s\n" "$ac_cs_config"; exit ;;
14343 --debug | --debu | --deb | --de | --d | -d )
14344 debug=: ;;
14345 --file | --fil | --fi | --f )
14346 $ac_shift
14347 case $ac_optarg in
14348 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14349 '') as_fn_error $? "missing file argument" ;;
14350 esac
14351 as_fn_append CONFIG_FILES " '$ac_optarg'"
14352 ac_need_defaults=false;;
14353 --header | --heade | --head | --hea )
14354 $ac_shift
14355 case $ac_optarg in
14356 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14357 esac
14358 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14359 ac_need_defaults=false;;
14360 --he | --h)
14361 # Conflict between --help and --header
14362 as_fn_error $? "ambiguous option: \`$1'
14363 Try \`$0 --help' for more information.";;
14364 --help | --hel | -h )
14365 printf "%s\n" "$ac_cs_usage"; exit ;;
14366 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14367 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14368 ac_cs_silent=: ;;
14369
14370 # This is an error.
14371 -*) as_fn_error $? "unrecognized option: \`$1'
14372 Try \`$0 --help' for more information." ;;
14373
14374 *) as_fn_append ac_config_targets " $1"
14375 ac_need_defaults=false ;;
14376
14377 esac
14378 shift
14379 done
14380
14381 ac_configure_extra_args=
14382
14383 if $ac_cs_silent; then
14384 exec 6>/dev/null
14385 ac_configure_extra_args="$ac_configure_extra_args --silent"
14386 fi
14387
14388 _ACEOF
14389 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14390 if \$ac_cs_recheck; then
14391 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14392 shift
14393 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
14394 CONFIG_SHELL='$SHELL'
14395 export CONFIG_SHELL
14396 exec "\$@"
14397 fi
14398
14399 _ACEOF
14400 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14401 exec 5>>config.log
14402 {
14403 echo
14404 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14405 ## Running $as_me. ##
14406 _ASBOX
14407 printf "%s\n" "$ac_log"
14408 } >&5
14409
14410 _ACEOF
14411 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14412 #
14413 # INIT-COMMANDS
14414 #
14415 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
14416
14417
14418 # The HP-UX ksh and POSIX shell print the target directory to stdout
14419 # if CDPATH is set.
14420 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14421
14422 sed_quote_subst='$sed_quote_subst'
14423 double_quote_subst='$double_quote_subst'
14424 delay_variable_subst='$delay_variable_subst'
14425 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14426 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14427 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14428 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14429 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14430 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14431 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14432 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14433 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14434 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14435 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14436 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14437 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14438 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14439 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14440 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14441 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14442 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14443 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14444 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14445 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14446 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14447 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14448 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14449 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14450 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14451 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14452 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14453 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14454 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14455 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14456 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14457 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14458 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14459 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
14460 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14461 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14462 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14463 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14464 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14465 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14466 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14467 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14468 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
14469 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14470 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14471 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14472 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14473 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14474 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14475 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14476 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14477 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14478 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14479 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14480 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14481 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14482 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14483 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14484 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14485 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"`'
14486 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14487 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14488 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14489 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14490 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14491 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14492 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14493 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14494 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14495 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14496 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14497 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14498 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14499 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14500 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14501 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14502 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14503 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14504 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14505 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14506 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14507 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14508 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14509 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14510 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14511 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14512 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14513 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14514 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14515 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14516 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14517 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14518 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14519 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14520 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14521 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14522 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14523 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14524 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14525 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14526 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14527 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14528 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14529 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14530 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14531 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14532 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14533 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14534 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14535 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14536 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14537 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14538 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14539 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14540 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14541 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14542 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14543 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14544 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14545 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14546 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14547 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14548 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14549 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14550 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14551 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14552 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14553 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14554 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14555 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14556 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14557 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14558 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14559 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14560 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14561 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14562
14563 LTCC='$LTCC'
14564 LTCFLAGS='$LTCFLAGS'
14565 compiler='$compiler_DEFAULT'
14566
14567 # A function that is used when there is no print builtin or printf.
14568 func_fallback_echo ()
14569 {
14570 eval 'cat <<_LTECHO_EOF
14571 \$1
14572 _LTECHO_EOF'
14573 }
14574
14575 # Quote evaled strings.
14576 for var in SHELL \
14577 ECHO \
14578 PATH_SEPARATOR \
14579 SED \
14580 GREP \
14581 EGREP \
14582 FGREP \
14583 LD \
14584 NM \
14585 LN_S \
14586 lt_SP2NL \
14587 lt_NL2SP \
14588 reload_flag \
14589 FILECMD \
14590 OBJDUMP \
14591 deplibs_check_method \
14592 file_magic_cmd \
14593 file_magic_glob \
14594 want_nocaseglob \
14595 DLLTOOL \
14596 sharedlib_from_linklib_cmd \
14597 AR \
14598 archiver_list_spec \
14599 STRIP \
14600 RANLIB \
14601 CC \
14602 CFLAGS \
14603 compiler \
14604 lt_cv_sys_global_symbol_pipe \
14605 lt_cv_sys_global_symbol_to_cdecl \
14606 lt_cv_sys_global_symbol_to_import \
14607 lt_cv_sys_global_symbol_to_c_name_address \
14608 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14609 lt_cv_nm_interface \
14610 nm_file_list_spec \
14611 lt_cv_truncate_bin \
14612 lt_prog_compiler_no_builtin_flag \
14613 lt_prog_compiler_pic \
14614 lt_prog_compiler_wl \
14615 lt_prog_compiler_static \
14616 lt_cv_prog_compiler_c_o \
14617 need_locks \
14618 MANIFEST_TOOL \
14619 DSYMUTIL \
14620 NMEDIT \
14621 LIPO \
14622 OTOOL \
14623 OTOOL64 \
14624 shrext_cmds \
14625 export_dynamic_flag_spec \
14626 whole_archive_flag_spec \
14627 compiler_needs_object \
14628 with_gnu_ld \
14629 allow_undefined_flag \
14630 no_undefined_flag \
14631 hardcode_libdir_flag_spec \
14632 hardcode_libdir_separator \
14633 exclude_expsyms \
14634 include_expsyms \
14635 file_list_spec \
14636 variables_saved_for_relink \
14637 libname_spec \
14638 library_names_spec \
14639 soname_spec \
14640 install_override_mode \
14641 finish_eval \
14642 old_striplib \
14643 striplib; do
14644 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14645 *[\\\\\\\`\\"\\\$]*)
14646 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14647 ;;
14648 *)
14649 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14650 ;;
14651 esac
14652 done
14653
14654 # Double-quote double-evaled strings.
14655 for var in reload_cmds \
14656 old_postinstall_cmds \
14657 old_postuninstall_cmds \
14658 old_archive_cmds \
14659 extract_expsyms_cmds \
14660 old_archive_from_new_cmds \
14661 old_archive_from_expsyms_cmds \
14662 archive_cmds \
14663 archive_expsym_cmds \
14664 module_cmds \
14665 module_expsym_cmds \
14666 export_symbols_cmds \
14667 prelink_cmds \
14668 postlink_cmds \
14669 postinstall_cmds \
14670 postuninstall_cmds \
14671 finish_cmds \
14672 sys_lib_search_path_spec \
14673 configure_time_dlsearch_path \
14674 configure_time_lt_sys_library_path; do
14675 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14676 *[\\\\\\\`\\"\\\$]*)
14677 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14678 ;;
14679 *)
14680 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14681 ;;
14682 esac
14683 done
14684
14685 ac_aux_dir='$ac_aux_dir'
14686
14687 # See if we are running on zsh, and set the options that allow our
14688 # commands through without removal of \ escapes INIT.
14689 if test -n "\${ZSH_VERSION+set}"; then
14690 setopt NO_GLOB_SUBST
14691 fi
14692
14693
14694 PACKAGE='$PACKAGE'
14695 VERSION='$VERSION'
14696 RM='$RM'
14697 ofile='$ofile'
14698
14699
14700
14701
14702 _ACEOF
14703
14704 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14705
14706 # Handling of arguments.
14707 for ac_config_target in $ac_config_targets
14708 do
14709 case $ac_config_target in
14710 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14711 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14712 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14713 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14714 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
14715 "mkfs/Makefile") CONFIG_FILES="$CONFIG_FILES mkfs/Makefile" ;;
14716 "fsck/Makefile") CONFIG_FILES="$CONFIG_FILES fsck/Makefile" ;;
14717 "tune/Makefile") CONFIG_FILES="$CONFIG_FILES tune/Makefile" ;;
14718 "label/Makefile") CONFIG_FILES="$CONFIG_FILES label/Makefile" ;;
14719 "dump/Makefile") CONFIG_FILES="$CONFIG_FILES dump/Makefile" ;;
14720 "exfat2img/Makefile") CONFIG_FILES="$CONFIG_FILES exfat2img/Makefile" ;;
14721 "upcase/Makefile") CONFIG_FILES="$CONFIG_FILES upcase/Makefile" ;;
14722 "dosattr/Makefile") CONFIG_FILES="$CONFIG_FILES dosattr/Makefile" ;;
14723
14724 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14725 esac
14726 done
14727
14728
14729 # If the user did not use the arguments to specify the items to instantiate,
14730 # then the envvar interface is used. Set only those that are not.
14731 # We use the long form for the default assignment because of an extremely
14732 # bizarre bug on SunOS 4.1.3.
14733 if $ac_need_defaults; then
14734 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
14735 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
14736 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
14737 fi
14738
14739 # Have a temporary directory for convenience. Make it in the build tree
14740 # simply because there is no reason against having it here, and in addition,
14741 # creating and moving files from /tmp can sometimes cause problems.
14742 # Hook for its removal unless debugging.
14743 # Note that there is a small window in which the directory will not be cleaned:
14744 # after its creation but before its name has been assigned to `$tmp'.
14745 $debug ||
14746 {
14747 tmp= ac_tmp=
14748 trap 'exit_status=$?
14749 : "${ac_tmp:=$tmp}"
14750 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14751 ' 0
14752 trap 'as_fn_exit 1' 1 2 13 15
14753 }
14754 # Create a (secure) tmp directory for tmp files.
14755
14756 {
14757 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14758 test -d "$tmp"
14759 } ||
14760 {
14761 tmp=./conf$$-$RANDOM
14762 (umask 077 && mkdir "$tmp")
14763 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14764 ac_tmp=$tmp
14765
14766 # Set up the scripts for CONFIG_FILES section.
14767 # No need to generate them if there are no CONFIG_FILES.
14768 # This happens for instance with `./config.status config.h'.
14769 if test -n "$CONFIG_FILES"; then
14770
14771
14772 ac_cr=`echo X | tr X '\015'`
14773 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14774 # But we know of no other shell where ac_cr would be empty at this
14775 # point, so we can use a bashism as a fallback.
14776 if test "x$ac_cr" = x; then
14777 eval ac_cr=\$\'\\r\'
14778 fi
14779 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14780 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14781 ac_cs_awk_cr='\\r'
14782 else
14783 ac_cs_awk_cr=$ac_cr
14784 fi
14785
14786 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14787 _ACEOF
14788
14789
14790 {
14791 echo "cat >conf$$subs.awk <<_ACEOF" &&
14792 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14793 echo "_ACEOF"
14794 } >conf$$subs.sh ||
14795 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14796 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14797 ac_delim='%!_!# '
14798 for ac_last_try in false false false false false :; do
14799 . ./conf$$subs.sh ||
14800 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14801
14802 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14803 if test $ac_delim_n = $ac_delim_num; then
14804 break
14805 elif $ac_last_try; then
14806 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14807 else
14808 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14809 fi
14810 done
14811 rm -f conf$$subs.sh
14812
14813 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14814 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14815 _ACEOF
14816 sed -n '
14817 h
14818 s/^/S["/; s/!.*/"]=/
14819 p
14820 g
14821 s/^[^!]*!//
14822 :repl
14823 t repl
14824 s/'"$ac_delim"'$//
14825 t delim
14826 :nl
14827 h
14828 s/\(.\{148\}\)..*/\1/
14829 t more1
14830 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14831 p
14832 n
14833 b repl
14834 :more1
14835 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14836 p
14837 g
14838 s/.\{148\}//
14839 t nl
14840 :delim
14841 h
14842 s/\(.\{148\}\)..*/\1/
14843 t more2
14844 s/["\\]/\\&/g; s/^/"/; s/$/"/
14845 p
14846 b
14847 :more2
14848 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14849 p
14850 g
14851 s/.\{148\}//
14852 t delim
14853 ' <conf$$subs.awk | sed '
14854 /^[^""]/{
14855 N
14856 s/\n//
14857 }
14858 ' >>$CONFIG_STATUS || ac_write_fail=1
14859 rm -f conf$$subs.awk
14860 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14861 _ACAWK
14862 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14863 for (key in S) S_is_set[key] = 1
14864 FS = ""
14865
14866 }
14867 {
14868 line = $ 0
14869 nfields = split(line, field, "@")
14870 substed = 0
14871 len = length(field[1])
14872 for (i = 2; i < nfields; i++) {
14873 key = field[i]
14874 keylen = length(key)
14875 if (S_is_set[key]) {
14876 value = S[key]
14877 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14878 len += length(value) + length(field[++i])
14879 substed = 1
14880 } else
14881 len += 1 + keylen
14882 }
14883
14884 print line
14885 }
14886
14887 _ACAWK
14888 _ACEOF
14889 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14890 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14891 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14892 else
14893 cat
14894 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14895 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14896 _ACEOF
14897
14898 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14899 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14900 # trailing colons and then remove the whole line if VPATH becomes empty
14901 # (actually we leave an empty line to preserve line numbers).
14902 if test "x$srcdir" = x.; then
14903 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14904 h
14905 s///
14906 s/^/:/
14907 s/[ ]*$/:/
14908 s/:\$(srcdir):/:/g
14909 s/:\${srcdir}:/:/g
14910 s/:@srcdir@:/:/g
14911 s/^:*//
14912 s/:*$//
14913 x
14914 s/\(=[ ]*\).*/\1/
14915 G
14916 s/\n//
14917 s/^[^=]*=[ ]*$//
14918 }'
14919 fi
14920
14921 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14922 fi # test -n "$CONFIG_FILES"
14923
14924 # Set up the scripts for CONFIG_HEADERS section.
14925 # No need to generate them if there are no CONFIG_HEADERS.
14926 # This happens for instance with `./config.status Makefile'.
14927 if test -n "$CONFIG_HEADERS"; then
14928 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14929 BEGIN {
14930 _ACEOF
14931
14932 # Transform confdefs.h into an awk script `defines.awk', embedded as
14933 # here-document in config.status, that substitutes the proper values into
14934 # config.h.in to produce config.h.
14935
14936 # Create a delimiter string that does not exist in confdefs.h, to ease
14937 # handling of long lines.
14938 ac_delim='%!_!# '
14939 for ac_last_try in false false :; do
14940 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14941 if test -z "$ac_tt"; then
14942 break
14943 elif $ac_last_try; then
14944 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14945 else
14946 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14947 fi
14948 done
14949
14950 # For the awk script, D is an array of macro values keyed by name,
14951 # likewise P contains macro parameters if any. Preserve backslash
14952 # newline sequences.
14953
14954 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14955 sed -n '
14956 s/.\{148\}/&'"$ac_delim"'/g
14957 t rset
14958 :rset
14959 s/^[ ]*#[ ]*define[ ][ ]*/ /
14960 t def
14961 d
14962 :def
14963 s/\\$//
14964 t bsnl
14965 s/["\\]/\\&/g
14966 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14967 D["\1"]=" \3"/p
14968 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14969 d
14970 :bsnl
14971 s/["\\]/\\&/g
14972 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14973 D["\1"]=" \3\\\\\\n"\\/p
14974 t cont
14975 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14976 t cont
14977 d
14978 :cont
14979 n
14980 s/.\{148\}/&'"$ac_delim"'/g
14981 t clear
14982 :clear
14983 s/\\$//
14984 t bsnlc
14985 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14986 d
14987 :bsnlc
14988 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14989 b cont
14990 ' <confdefs.h | sed '
14991 s/'"$ac_delim"'/"\\\
14992 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14993
14994 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14995 for (key in D) D_is_set[key] = 1
14996 FS = ""
14997 }
14998 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14999 line = \$ 0
15000 split(line, arg, " ")
15001 if (arg[1] == "#") {
15002 defundef = arg[2]
15003 mac1 = arg[3]
15004 } else {
15005 defundef = substr(arg[1], 2)
15006 mac1 = arg[2]
15007 }
15008 split(mac1, mac2, "(") #)
15009 macro = mac2[1]
15010 prefix = substr(line, 1, index(line, defundef) - 1)
15011 if (D_is_set[macro]) {
15012 # Preserve the white space surrounding the "#".
15013 print prefix "define", macro P[macro] D[macro]
15014 next
15015 } else {
15016 # Replace #undef with comments. This is necessary, for example,
15017 # in the case of _POSIX_SOURCE, which is predefined and required
15018 # on some systems where configure will not decide to define it.
15019 if (defundef == "undef") {
15020 print "/*", prefix defundef, macro, "*/"
15021 next
15022 }
15023 }
15024 }
15025 { print }
15026 _ACAWK
15027 _ACEOF
15028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15029 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15030 fi # test -n "$CONFIG_HEADERS"
15031
15032
15033 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15034 shift
15035 for ac_tag
15036 do
15037 case $ac_tag in
15038 :[FHLC]) ac_mode=$ac_tag; continue;;
15039 esac
15040 case $ac_mode$ac_tag in
15041 :[FHL]*:*);;
15042 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15043 :[FH]-) ac_tag=-:-;;
15044 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15045 esac
15046 ac_save_IFS=$IFS
15047 IFS=:
15048 set x $ac_tag
15049 IFS=$ac_save_IFS
15050 shift
15051 ac_file=$1
15052 shift
15053
15054 case $ac_mode in
15055 :L) ac_source=$1;;
15056 :[FH])
15057 ac_file_inputs=
15058 for ac_f
15059 do
15060 case $ac_f in
15061 -) ac_f="$ac_tmp/stdin";;
15062 *) # Look for the file first in the build tree, then in the source tree
15063 # (if the path is not absolute). The absolute path cannot be DOS-style,
15064 # because $ac_f cannot contain `:'.
15065 test -f "$ac_f" ||
15066 case $ac_f in
15067 [\\/$]*) false;;
15068 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15069 esac ||
15070 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15071 esac
15072 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15073 as_fn_append ac_file_inputs " '$ac_f'"
15074 done
15075
15076 # Let's still pretend it is `configure' which instantiates (i.e., don't
15077 # use $as_me), people would be surprised to read:
15078 # /* config.h. Generated by config.status. */
15079 configure_input='Generated from '`
15080 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15081 `' by configure.'
15082 if test x"$ac_file" != x-; then
15083 configure_input="$ac_file. $configure_input"
15084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15085 printf "%s\n" "$as_me: creating $ac_file" >&6;}
15086 fi
15087 # Neutralize special characters interpreted by sed in replacement strings.
15088 case $configure_input in #(
15089 *\&* | *\|* | *\\* )
15090 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
15091 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15092 *) ac_sed_conf_input=$configure_input;;
15093 esac
15094
15095 case $ac_tag in
15096 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15097 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15098 esac
15099 ;;
15100 esac
15101
15102 ac_dir=`$as_dirname -- "$ac_file" ||
15103 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15104 X"$ac_file" : 'X\(//\)[^/]' \| \
15105 X"$ac_file" : 'X\(//\)$' \| \
15106 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15107 printf "%s\n" X"$ac_file" |
15108 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15109 s//\1/
15110 q
15111 }
15112 /^X\(\/\/\)[^/].*/{
15113 s//\1/
15114 q
15115 }
15116 /^X\(\/\/\)$/{
15117 s//\1/
15118 q
15119 }
15120 /^X\(\/\).*/{
15121 s//\1/
15122 q
15123 }
15124 s/.*/./; q'`
15125 as_dir="$ac_dir"; as_fn_mkdir_p
15126 ac_builddir=.
15127
15128 case "$ac_dir" in
15129 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15130 *)
15131 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
15132 # A ".." for each directory in $ac_dir_suffix.
15133 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15134 case $ac_top_builddir_sub in
15135 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15136 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15137 esac ;;
15138 esac
15139 ac_abs_top_builddir=$ac_pwd
15140 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15141 # for backward compatibility:
15142 ac_top_builddir=$ac_top_build_prefix
15143
15144 case $srcdir in
15145 .) # We are building in place.
15146 ac_srcdir=.
15147 ac_top_srcdir=$ac_top_builddir_sub
15148 ac_abs_top_srcdir=$ac_pwd ;;
15149 [\\/]* | ?:[\\/]* ) # Absolute name.
15150 ac_srcdir=$srcdir$ac_dir_suffix;
15151 ac_top_srcdir=$srcdir
15152 ac_abs_top_srcdir=$srcdir ;;
15153 *) # Relative name.
15154 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15155 ac_top_srcdir=$ac_top_build_prefix$srcdir
15156 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15157 esac
15158 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15159
15160
15161 case $ac_mode in
15162 :F)
15163 #
15164 # CONFIG_FILE
15165 #
15166
15167 case $INSTALL in
15168 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15169 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15170 esac
15171 ac_MKDIR_P=$MKDIR_P
15172 case $MKDIR_P in
15173 [\\/$]* | ?:[\\/]* ) ;;
15174 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15175 esac
15176 _ACEOF
15177
15178 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15179 # If the template does not know about datarootdir, expand it.
15180 # FIXME: This hack should be removed a few years after 2.60.
15181 ac_datarootdir_hack=; ac_datarootdir_seen=
15182 ac_sed_dataroot='
15183 /datarootdir/ {
15184 p
15185 q
15186 }
15187 /@datadir@/p
15188 /@docdir@/p
15189 /@infodir@/p
15190 /@localedir@/p
15191 /@mandir@/p'
15192 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15193 *datarootdir*) ac_datarootdir_seen=yes;;
15194 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15196 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15197 _ACEOF
15198 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15199 ac_datarootdir_hack='
15200 s&@datadir@&$datadir&g
15201 s&@docdir@&$docdir&g
15202 s&@infodir@&$infodir&g
15203 s&@localedir@&$localedir&g
15204 s&@mandir@&$mandir&g
15205 s&\\\${datarootdir}&$datarootdir&g' ;;
15206 esac
15207 _ACEOF
15208
15209 # Neutralize VPATH when `$srcdir' = `.'.
15210 # Shell code in configure.ac might set extrasub.
15211 # FIXME: do we really want to maintain this feature?
15212 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15213 ac_sed_extra="$ac_vpsub
15214 $extrasub
15215 _ACEOF
15216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15217 :t
15218 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15219 s|@configure_input@|$ac_sed_conf_input|;t t
15220 s&@top_builddir@&$ac_top_builddir_sub&;t t
15221 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15222 s&@srcdir@&$ac_srcdir&;t t
15223 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15224 s&@top_srcdir@&$ac_top_srcdir&;t t
15225 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15226 s&@builddir@&$ac_builddir&;t t
15227 s&@abs_builddir@&$ac_abs_builddir&;t t
15228 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15229 s&@INSTALL@&$ac_INSTALL&;t t
15230 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15231 $ac_datarootdir_hack
15232 "
15233 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15234 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15235
15236 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15237 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15238 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15239 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15241 which seems to be undefined. Please make sure it is defined" >&5
15242 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15243 which seems to be undefined. Please make sure it is defined" >&2;}
15244
15245 rm -f "$ac_tmp/stdin"
15246 case $ac_file in
15247 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15248 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15249 esac \
15250 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15251 ;;
15252 :H)
15253 #
15254 # CONFIG_HEADER
15255 #
15256 if test x"$ac_file" != x-; then
15257 {
15258 printf "%s\n" "/* $configure_input */" >&1 \
15259 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15260 } >"$ac_tmp/config.h" \
15261 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15262 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15264 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
15265 else
15266 rm -f "$ac_file"
15267 mv "$ac_tmp/config.h" "$ac_file" \
15268 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15269 fi
15270 else
15271 printf "%s\n" "/* $configure_input */" >&1 \
15272 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15273 || as_fn_error $? "could not create -" "$LINENO" 5
15274 fi
15275 # Compute "$ac_file"'s index in $config_headers.
15276 _am_arg="$ac_file"
15277 _am_stamp_count=1
15278 for _am_header in $config_headers :; do
15279 case $_am_header in
15280 $_am_arg | $_am_arg:* )
15281 break ;;
15282 * )
15283 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15284 esac
15285 done
15286 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15287 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15288 X"$_am_arg" : 'X\(//\)[^/]' \| \
15289 X"$_am_arg" : 'X\(//\)$' \| \
15290 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15291 printf "%s\n" X"$_am_arg" |
15292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15293 s//\1/
15294 q
15295 }
15296 /^X\(\/\/\)[^/].*/{
15297 s//\1/
15298 q
15299 }
15300 /^X\(\/\/\)$/{
15301 s//\1/
15302 q
15303 }
15304 /^X\(\/\).*/{
15305 s//\1/
15306 q
15307 }
15308 s/.*/./; q'`/stamp-h$_am_stamp_count
15309 ;;
15310
15311 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15312 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
15313 ;;
15314 esac
15315
15316
15317 case $ac_file$ac_mode in
15318 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15319 # Older Autoconf quotes --file arguments for eval, but not when files
15320 # are listed without --file. Let's play safe and only enable the eval
15321 # if we detect the quoting.
15322 # TODO: see whether this extra hack can be removed once we start
15323 # requiring Autoconf 2.70 or later.
15324 case $CONFIG_FILES in #(
15325 *\'*) :
15326 eval set x "$CONFIG_FILES" ;; #(
15327 *) :
15328 set x $CONFIG_FILES ;; #(
15329 *) :
15330 ;;
15331 esac
15332 shift
15333 # Used to flag and report bootstrapping failures.
15334 am_rc=0
15335 for am_mf
15336 do
15337 # Strip MF so we end up with the name of the file.
15338 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
15339 # Check whether this is an Automake generated Makefile which includes
15340 # dependency-tracking related rules and includes.
15341 # Grep'ing the whole file directly is not great: AIX grep has a line
15342 # limit of 2048, but all sed's we know have understand at least 4000.
15343 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
15344 || continue
15345 am_dirpart=`$as_dirname -- "$am_mf" ||
15346 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15347 X"$am_mf" : 'X\(//\)[^/]' \| \
15348 X"$am_mf" : 'X\(//\)$' \| \
15349 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15350 printf "%s\n" X"$am_mf" |
15351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15352 s//\1/
15353 q
15354 }
15355 /^X\(\/\/\)[^/].*/{
15356 s//\1/
15357 q
15358 }
15359 /^X\(\/\/\)$/{
15360 s//\1/
15361 q
15362 }
15363 /^X\(\/\).*/{
15364 s//\1/
15365 q
15366 }
15367 s/.*/./; q'`
15368 am_filepart=`$as_basename -- "$am_mf" ||
15369 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
15370 X"$am_mf" : 'X\(//\)$' \| \
15371 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15372 printf "%s\n" X/"$am_mf" |
15373 sed '/^.*\/\([^/][^/]*\)\/*$/{
15374 s//\1/
15375 q
15376 }
15377 /^X\/\(\/\/\)$/{
15378 s//\1/
15379 q
15380 }
15381 /^X\/\(\/\).*/{
15382 s//\1/
15383 q
15384 }
15385 s/.*/./; q'`
15386 { echo "$as_me:$LINENO: cd "$am_dirpart" \
15387 && sed -e '/# am--include-marker/d' "$am_filepart" \
15388 | $MAKE -f - am--depfiles" >&5
15389 (cd "$am_dirpart" \
15390 && sed -e '/# am--include-marker/d' "$am_filepart" \
15391 | $MAKE -f - am--depfiles) >&5 2>&5
15392 ac_status=$?
15393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15394 (exit $ac_status); } || am_rc=$?
15395 done
15396 if test $am_rc -ne 0; then
15397 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15398 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15399 as_fn_error $? "Something went wrong bootstrapping makefile fragments
15400 for automatic dependency tracking. If GNU make was not used, consider
15401 re-running the configure script with MAKE=\"gmake\" (or whatever is
15402 necessary). You can also try re-running configure with the
15403 '--disable-dependency-tracking' option to at least be able to build
15404 the package (albeit without support for automatic dependency tracking).
15405 See \`config.log' for more details" "$LINENO" 5; }
15406 fi
15407 { am_dirpart=; unset am_dirpart;}
15408 { am_filepart=; unset am_filepart;}
15409 { am_mf=; unset am_mf;}
15410 { am_rc=; unset am_rc;}
15411 rm -f conftest-deps.mk
15412 }
15413 ;;
15414 "libtool":C)
15415
15416 # See if we are running on zsh, and set the options that allow our
15417 # commands through without removal of \ escapes.
15418 if test -n "${ZSH_VERSION+set}"; then
15419 setopt NO_GLOB_SUBST
15420 fi
15421
15422 cfgfile=${ofile}T
15423 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15424 $RM "$cfgfile"
15425
15426 cat <<_LT_EOF >> "$cfgfile"
15427 #! $SHELL
15428 # Generated automatically by $as_me ($PACKAGE) $VERSION
15429 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15430
15431 # Provide generalized library-building support services.
15432 # Written by Gordon Matzigkeit, 1996
15433
15434 # Copyright (C) 2014 Free Software Foundation, Inc.
15435 # This is free software; see the source for copying conditions. There is NO
15436 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15437
15438 # GNU Libtool is free software; you can redistribute it and/or modify
15439 # it under the terms of the GNU General Public License as published by
15440 # the Free Software Foundation; either version 2 of of the License, or
15441 # (at your option) any later version.
15442 #
15443 # As a special exception to the GNU General Public License, if you
15444 # distribute this file as part of a program or library that is built
15445 # using GNU Libtool, you may include this file under the same
15446 # distribution terms that you use for the rest of that program.
15447 #
15448 # GNU Libtool is distributed in the hope that it will be useful, but
15449 # WITHOUT ANY WARRANTY; without even the implied warranty of
15450 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15451 # GNU General Public License for more details.
15452 #
15453 # You should have received a copy of the GNU General Public License
15454 # along with this program. If not, see <http://www.gnu.org/licenses/>.
15455
15456
15457 # The names of the tagged configurations supported by this script.
15458 available_tags=''
15459
15460 # Configured defaults for sys_lib_dlsearch_path munging.
15461 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15462
15463 # ### BEGIN LIBTOOL CONFIG
15464
15465 # Which release of libtool.m4 was used?
15466 macro_version=$macro_version
15467 macro_revision=$macro_revision
15468
15469 # Whether or not to build shared libraries.
15470 build_libtool_libs=$enable_shared
15471
15472 # Whether or not to build static libraries.
15473 build_old_libs=$enable_static
15474
15475 # What type of objects to build.
15476 pic_mode=$pic_mode
15477
15478 # Whether or not to optimize for fast installation.
15479 fast_install=$enable_fast_install
15480
15481 # Shared archive member basename,for filename based shared library versioning on AIX.
15482 shared_archive_member_spec=$shared_archive_member_spec
15483
15484 # Shell to use when invoking shell scripts.
15485 SHELL=$lt_SHELL
15486
15487 # An echo program that protects backslashes.
15488 ECHO=$lt_ECHO
15489
15490 # The PATH separator for the build system.
15491 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15492
15493 # The host system.
15494 host_alias=$host_alias
15495 host=$host
15496 host_os=$host_os
15497
15498 # The build system.
15499 build_alias=$build_alias
15500 build=$build
15501 build_os=$build_os
15502
15503 # A sed program that does not truncate output.
15504 SED=$lt_SED
15505
15506 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15507 Xsed="\$SED -e 1s/^X//"
15508
15509 # A grep program that handles long lines.
15510 GREP=$lt_GREP
15511
15512 # An ERE matcher.
15513 EGREP=$lt_EGREP
15514
15515 # A literal string matcher.
15516 FGREP=$lt_FGREP
15517
15518 # A BSD- or MS-compatible name lister.
15519 NM=$lt_NM
15520
15521 # Whether we need soft or hard links.
15522 LN_S=$lt_LN_S
15523
15524 # What is the maximum length of a command?
15525 max_cmd_len=$max_cmd_len
15526
15527 # Object file suffix (normally "o").
15528 objext=$ac_objext
15529
15530 # Executable file suffix (normally "").
15531 exeext=$exeext
15532
15533 # whether the shell understands "unset".
15534 lt_unset=$lt_unset
15535
15536 # turn spaces into newlines.
15537 SP2NL=$lt_lt_SP2NL
15538
15539 # turn newlines into spaces.
15540 NL2SP=$lt_lt_NL2SP
15541
15542 # convert \$build file names to \$host format.
15543 to_host_file_cmd=$lt_cv_to_host_file_cmd
15544
15545 # convert \$build files to toolchain format.
15546 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15547
15548 # A file(cmd) program that detects file types.
15549 FILECMD=$lt_FILECMD
15550
15551 # An object symbol dumper.
15552 OBJDUMP=$lt_OBJDUMP
15553
15554 # Method to check whether dependent libraries are shared objects.
15555 deplibs_check_method=$lt_deplibs_check_method
15556
15557 # Command to use when deplibs_check_method = "file_magic".
15558 file_magic_cmd=$lt_file_magic_cmd
15559
15560 # How to find potential files when deplibs_check_method = "file_magic".
15561 file_magic_glob=$lt_file_magic_glob
15562
15563 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15564 want_nocaseglob=$lt_want_nocaseglob
15565
15566 # DLL creation program.
15567 DLLTOOL=$lt_DLLTOOL
15568
15569 # Command to associate shared and link libraries.
15570 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15571
15572 # The archiver.
15573 AR=$lt_AR
15574
15575 # Flags to create an archive (by configure).
15576 lt_ar_flags=$lt_ar_flags
15577
15578 # Flags to create an archive.
15579 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
15580
15581 # How to feed a file listing to the archiver.
15582 archiver_list_spec=$lt_archiver_list_spec
15583
15584 # A symbol stripping program.
15585 STRIP=$lt_STRIP
15586
15587 # Commands used to install an old-style archive.
15588 RANLIB=$lt_RANLIB
15589 old_postinstall_cmds=$lt_old_postinstall_cmds
15590 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15591
15592 # Whether to use a lock for old archive extraction.
15593 lock_old_archive_extraction=$lock_old_archive_extraction
15594
15595 # A C compiler.
15596 LTCC=$lt_CC
15597
15598 # LTCC compiler flags.
15599 LTCFLAGS=$lt_CFLAGS
15600
15601 # Take the output of nm and produce a listing of raw symbols and C names.
15602 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15603
15604 # Transform the output of nm in a proper C declaration.
15605 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15606
15607 # Transform the output of nm into a list of symbols to manually relocate.
15608 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15609
15610 # Transform the output of nm in a C name address pair.
15611 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15612
15613 # Transform the output of nm in a C name address pair when lib prefix is needed.
15614 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15615
15616 # The name lister interface.
15617 nm_interface=$lt_lt_cv_nm_interface
15618
15619 # Specify filename containing input files for \$NM.
15620 nm_file_list_spec=$lt_nm_file_list_spec
15621
15622 # The root where to search for dependent libraries,and where our libraries should be installed.
15623 lt_sysroot=$lt_sysroot
15624
15625 # Command to truncate a binary pipe.
15626 lt_truncate_bin=$lt_lt_cv_truncate_bin
15627
15628 # The name of the directory that contains temporary libtool files.
15629 objdir=$objdir
15630
15631 # Used to examine libraries when file_magic_cmd begins with "file".
15632 MAGIC_CMD=$MAGIC_CMD
15633
15634 # Must we lock files when doing compilation?
15635 need_locks=$lt_need_locks
15636
15637 # Manifest tool.
15638 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15639
15640 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15641 DSYMUTIL=$lt_DSYMUTIL
15642
15643 # Tool to change global to local symbols on Mac OS X.
15644 NMEDIT=$lt_NMEDIT
15645
15646 # Tool to manipulate fat objects and archives on Mac OS X.
15647 LIPO=$lt_LIPO
15648
15649 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15650 OTOOL=$lt_OTOOL
15651
15652 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15653 OTOOL64=$lt_OTOOL64
15654
15655 # Old archive suffix (normally "a").
15656 libext=$libext
15657
15658 # Shared library suffix (normally ".so").
15659 shrext_cmds=$lt_shrext_cmds
15660
15661 # The commands to extract the exported symbol list from a shared archive.
15662 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15663
15664 # Variables whose values should be saved in libtool wrapper scripts and
15665 # restored at link time.
15666 variables_saved_for_relink=$lt_variables_saved_for_relink
15667
15668 # Do we need the "lib" prefix for modules?
15669 need_lib_prefix=$need_lib_prefix
15670
15671 # Do we need a version for libraries?
15672 need_version=$need_version
15673
15674 # Library versioning type.
15675 version_type=$version_type
15676
15677 # Shared library runtime path variable.
15678 runpath_var=$runpath_var
15679
15680 # Shared library path variable.
15681 shlibpath_var=$shlibpath_var
15682
15683 # Is shlibpath searched before the hard-coded library search path?
15684 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15685
15686 # Format of library name prefix.
15687 libname_spec=$lt_libname_spec
15688
15689 # List of archive names. First name is the real one, the rest are links.
15690 # The last name is the one that the linker finds with -lNAME
15691 library_names_spec=$lt_library_names_spec
15692
15693 # The coded name of the library, if different from the real name.
15694 soname_spec=$lt_soname_spec
15695
15696 # Permission mode override for installation of shared libraries.
15697 install_override_mode=$lt_install_override_mode
15698
15699 # Command to use after installation of a shared archive.
15700 postinstall_cmds=$lt_postinstall_cmds
15701
15702 # Command to use after uninstallation of a shared archive.
15703 postuninstall_cmds=$lt_postuninstall_cmds
15704
15705 # Commands used to finish a libtool library installation in a directory.
15706 finish_cmds=$lt_finish_cmds
15707
15708 # As "finish_cmds", except a single script fragment to be evaled but
15709 # not shown.
15710 finish_eval=$lt_finish_eval
15711
15712 # Whether we should hardcode library paths into libraries.
15713 hardcode_into_libs=$hardcode_into_libs
15714
15715 # Compile-time system search path for libraries.
15716 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15717
15718 # Detected run-time system search path for libraries.
15719 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15720
15721 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15722 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15723
15724 # Whether dlopen is supported.
15725 dlopen_support=$enable_dlopen
15726
15727 # Whether dlopen of programs is supported.
15728 dlopen_self=$enable_dlopen_self
15729
15730 # Whether dlopen of statically linked programs is supported.
15731 dlopen_self_static=$enable_dlopen_self_static
15732
15733 # Commands to strip libraries.
15734 old_striplib=$lt_old_striplib
15735 striplib=$lt_striplib
15736
15737
15738 # The linker used to build libraries.
15739 LD=$lt_LD
15740
15741 # How to create reloadable object files.
15742 reload_flag=$lt_reload_flag
15743 reload_cmds=$lt_reload_cmds
15744
15745 # Commands used to build an old-style archive.
15746 old_archive_cmds=$lt_old_archive_cmds
15747
15748 # A language specific compiler.
15749 CC=$lt_compiler
15750
15751 # Is the compiler the GNU compiler?
15752 with_gcc=$GCC
15753
15754 # Compiler flag to turn off builtin functions.
15755 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15756
15757 # Additional compiler flags for building library objects.
15758 pic_flag=$lt_lt_prog_compiler_pic
15759
15760 # How to pass a linker flag through the compiler.
15761 wl=$lt_lt_prog_compiler_wl
15762
15763 # Compiler flag to prevent dynamic linking.
15764 link_static_flag=$lt_lt_prog_compiler_static
15765
15766 # Does compiler simultaneously support -c and -o options?
15767 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15768
15769 # Whether or not to add -lc for building shared libraries.
15770 build_libtool_need_lc=$archive_cmds_need_lc
15771
15772 # Whether or not to disallow shared libs when runtime libs are static.
15773 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15774
15775 # Compiler flag to allow reflexive dlopens.
15776 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15777
15778 # Compiler flag to generate shared objects directly from archives.
15779 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15780
15781 # Whether the compiler copes with passing no objects directly.
15782 compiler_needs_object=$lt_compiler_needs_object
15783
15784 # Create an old-style archive from a shared archive.
15785 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15786
15787 # Create a temporary old-style archive to link instead of a shared archive.
15788 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15789
15790 # Commands used to build a shared archive.
15791 archive_cmds=$lt_archive_cmds
15792 archive_expsym_cmds=$lt_archive_expsym_cmds
15793
15794 # Commands used to build a loadable module if different from building
15795 # a shared archive.
15796 module_cmds=$lt_module_cmds
15797 module_expsym_cmds=$lt_module_expsym_cmds
15798
15799 # Whether we are building with GNU ld or not.
15800 with_gnu_ld=$lt_with_gnu_ld
15801
15802 # Flag that allows shared libraries with undefined symbols to be built.
15803 allow_undefined_flag=$lt_allow_undefined_flag
15804
15805 # Flag that enforces no undefined symbols.
15806 no_undefined_flag=$lt_no_undefined_flag
15807
15808 # Flag to hardcode \$libdir into a binary during linking.
15809 # This must work even if \$libdir does not exist
15810 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15811
15812 # Whether we need a single "-rpath" flag with a separated argument.
15813 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15814
15815 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15816 # DIR into the resulting binary.
15817 hardcode_direct=$hardcode_direct
15818
15819 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15820 # DIR into the resulting binary and the resulting library dependency is
15821 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
15822 # library is relocated.
15823 hardcode_direct_absolute=$hardcode_direct_absolute
15824
15825 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15826 # into the resulting binary.
15827 hardcode_minus_L=$hardcode_minus_L
15828
15829 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15830 # into the resulting binary.
15831 hardcode_shlibpath_var=$hardcode_shlibpath_var
15832
15833 # Set to "yes" if building a shared library automatically hardcodes DIR
15834 # into the library and all subsequent libraries and executables linked
15835 # against it.
15836 hardcode_automatic=$hardcode_automatic
15837
15838 # Set to yes if linker adds runtime paths of dependent libraries
15839 # to runtime path list.
15840 inherit_rpath=$inherit_rpath
15841
15842 # Whether libtool must link a program against all its dependency libraries.
15843 link_all_deplibs=$link_all_deplibs
15844
15845 # Set to "yes" if exported symbols are required.
15846 always_export_symbols=$always_export_symbols
15847
15848 # The commands to list exported symbols.
15849 export_symbols_cmds=$lt_export_symbols_cmds
15850
15851 # Symbols that should not be listed in the preloaded symbols.
15852 exclude_expsyms=$lt_exclude_expsyms
15853
15854 # Symbols that must always be exported.
15855 include_expsyms=$lt_include_expsyms
15856
15857 # Commands necessary for linking programs (against libraries) with templates.
15858 prelink_cmds=$lt_prelink_cmds
15859
15860 # Commands necessary for finishing linking programs.
15861 postlink_cmds=$lt_postlink_cmds
15862
15863 # Specify filename containing input files.
15864 file_list_spec=$lt_file_list_spec
15865
15866 # How to hardcode a shared library path into an executable.
15867 hardcode_action=$hardcode_action
15868
15869 # ### END LIBTOOL CONFIG
15870
15871 _LT_EOF
15872
15873 cat <<'_LT_EOF' >> "$cfgfile"
15874
15875 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15876
15877 # func_munge_path_list VARIABLE PATH
15878 # -----------------------------------
15879 # VARIABLE is name of variable containing _space_ separated list of
15880 # directories to be munged by the contents of PATH, which is string
15881 # having a format:
15882 # "DIR[:DIR]:"
15883 # string "DIR[ DIR]" will be prepended to VARIABLE
15884 # ":DIR[:DIR]"
15885 # string "DIR[ DIR]" will be appended to VARIABLE
15886 # "DIRP[:DIRP]::[DIRA:]DIRA"
15887 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15888 # "DIRA[ DIRA]" will be appended to VARIABLE
15889 # "DIR[:DIR]"
15890 # VARIABLE will be replaced by "DIR[ DIR]"
15891 func_munge_path_list ()
15892 {
15893 case x$2 in
15894 x)
15895 ;;
15896 *:)
15897 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15898 ;;
15899 x:*)
15900 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15901 ;;
15902 *::*)
15903 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15904 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15905 ;;
15906 *)
15907 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15908 ;;
15909 esac
15910 }
15911
15912
15913 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
15914 func_cc_basename ()
15915 {
15916 for cc_temp in $*""; do
15917 case $cc_temp in
15918 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15919 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15920 \-*) ;;
15921 *) break;;
15922 esac
15923 done
15924 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15925 }
15926
15927
15928 # ### END FUNCTIONS SHARED WITH CONFIGURE
15929
15930 _LT_EOF
15931
15932 case $host_os in
15933 aix3*)
15934 cat <<\_LT_EOF >> "$cfgfile"
15935 # AIX sometimes has problems with the GCC collect2 program. For some
15936 # reason, if we set the COLLECT_NAMES environment variable, the problems
15937 # vanish in a puff of smoke.
15938 if test set != "${COLLECT_NAMES+set}"; then
15939 COLLECT_NAMES=
15940 export COLLECT_NAMES
15941 fi
15942 _LT_EOF
15943 ;;
15944 esac
15945
15946
15947
15948 ltmain=$ac_aux_dir/ltmain.sh
15949
15950
15951 # We use sed instead of cat because bash on DJGPP gets confused if
15952 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15953 # text mode, it properly converts lines to CR/LF. This bash problem
15954 # is reportedly fixed, but why not run on old versions too?
15955 $SED '$q' "$ltmain" >> "$cfgfile" \
15956 || (rm -f "$cfgfile"; exit 1)
15957
15958 mv -f "$cfgfile" "$ofile" ||
15959 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15960 chmod +x "$ofile"
15961
15962 ;;
15963
15964 esac
15965 done # for ac_tag
15966
15967
15968 as_fn_exit 0
15969 _ACEOF
15970 ac_clean_files=$ac_clean_files_save
15971
15972 test $ac_write_fail = 0 ||
15973 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15974
15975
15976 # configure is writing to config.log, and then calls config.status.
15977 # config.status does its own redirection, appending to config.log.
15978 # Unfortunately, on DOS this fails, as config.log is still kept open
15979 # by configure, so config.status won't be able to write to it; its
15980 # output is simply discarded. So we exec the FD to /dev/null,
15981 # effectively closing config.log, so it can be properly (re)opened and
15982 # appended to by config.status. When coming back to configure, we
15983 # need to make the FD available again.
15984 if test "$no_create" != yes; then
15985 ac_cs_success=:
15986 ac_config_status_args=
15987 test "$silent" = yes &&
15988 ac_config_status_args="$ac_config_status_args --quiet"
15989 exec 5>/dev/null
15990 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15991 exec 5>>config.log
15992 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15993 # would make configure fail if this is the last instruction.
15994 $ac_cs_success || as_fn_exit 1
15995 fi
15996 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15998 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15999 fi
16000
16001