]> git.sven.stormbind.net Git - sven/exfatprogs.git/blob - configure
New upstream version 1.1.3
[sven/exfatprogs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for exfatprogs 1.1.3.
4 #
5 # Report bugs to <linkinjeon@kernel.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
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   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     PATH=/empty FPATH=/empty; export PATH FPATH
207     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; 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 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: linkinjeon@kernel.org about your system, including any
279 $0: error possibly output before this message. Then install
280 $0: a modern shell, or manually run the script under such a
281 $0: shell if you do have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='exfatprogs'
592 PACKAGE_TARNAME='exfatprogs'
593 PACKAGE_VERSION='1.1.3'
594 PACKAGE_STRING='exfatprogs 1.1.3'
595 PACKAGE_BUGREPORT='linkinjeon@kernel.org'
596 PACKAGE_URL='https://github.com/exfatprogs/exfatprogs'
597
598 ac_unique_file="config.h.in"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 #  include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 #  include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIBOBJS
639 CPP
640 LT_SYS_LIBRARY_PATH
641 OTOOL64
642 OTOOL
643 LIPO
644 NMEDIT
645 DSYMUTIL
646 MANIFEST_TOOL
647 RANLIB
648 ac_ct_AR
649 AR
650 DLLTOOL
651 OBJDUMP
652 LN_S
653 NM
654 ac_ct_DUMPBIN
655 DUMPBIN
656 LD
657 FGREP
658 EGREP
659 GREP
660 SED
661 host_os
662 host_vendor
663 host_cpu
664 host
665 build_os
666 build_vendor
667 build_cpu
668 build
669 LIBTOOL
670 am__fastdepCC_FALSE
671 am__fastdepCC_TRUE
672 CCDEPMODE
673 am__nodep
674 AMDEPBACKSLASH
675 AMDEP_FALSE
676 AMDEP_TRUE
677 am__include
678 DEPDIR
679 OBJEXT
680 EXEEXT
681 ac_ct_CC
682 CPPFLAGS
683 LDFLAGS
684 CFLAGS
685 CC
686 AM_BACKSLASH
687 AM_DEFAULT_VERBOSITY
688 AM_DEFAULT_V
689 AM_V
690 am__untar
691 am__tar
692 AMTAR
693 am__leading_dot
694 SET_MAKE
695 AWK
696 mkdir_p
697 MKDIR_P
698 INSTALL_STRIP_PROGRAM
699 STRIP
700 install_sh
701 MAKEINFO
702 AUTOHEADER
703 AUTOMAKE
704 AUTOCONF
705 ACLOCAL
706 VERSION
707 PACKAGE
708 CYGPATH_W
709 am__isrc
710 INSTALL_DATA
711 INSTALL_SCRIPT
712 INSTALL_PROGRAM
713 target_alias
714 host_alias
715 build_alias
716 LIBS
717 ECHO_T
718 ECHO_N
719 ECHO_C
720 DEFS
721 mandir
722 localedir
723 libdir
724 psdir
725 pdfdir
726 dvidir
727 htmldir
728 infodir
729 docdir
730 oldincludedir
731 includedir
732 runstatedir
733 localstatedir
734 sharedstatedir
735 sysconfdir
736 datadir
737 datarootdir
738 libexecdir
739 sbindir
740 bindir
741 program_transform_name
742 prefix
743 exec_prefix
744 PACKAGE_URL
745 PACKAGE_BUGREPORT
746 PACKAGE_STRING
747 PACKAGE_VERSION
748 PACKAGE_TARNAME
749 PACKAGE_NAME
750 PATH_SEPARATOR
751 SHELL
752 am__quote'
753 ac_subst_files=''
754 ac_user_opts='
755 enable_option_checking
756 enable_silent_rules
757 enable_dependency_tracking
758 enable_shared
759 enable_static
760 with_pic
761 enable_fast_install
762 with_aix_soname
763 with_gnu_ld
764 with_sysroot
765 enable_libtool_lock
766 enable_largefile
767 '
768       ac_precious_vars='build_alias
769 host_alias
770 target_alias
771 CC
772 CFLAGS
773 LDFLAGS
774 LIBS
775 CPPFLAGS
776 LT_SYS_LIBRARY_PATH
777 CPP'
778
779
780 # Initialize some variables set by options.
781 ac_init_help=
782 ac_init_version=false
783 ac_unrecognized_opts=
784 ac_unrecognized_sep=
785 # The variables have the same names as the options, with
786 # dashes changed to underlines.
787 cache_file=/dev/null
788 exec_prefix=NONE
789 no_create=
790 no_recursion=
791 prefix=NONE
792 program_prefix=NONE
793 program_suffix=NONE
794 program_transform_name=s,x,x,
795 silent=
796 site=
797 srcdir=
798 verbose=
799 x_includes=NONE
800 x_libraries=NONE
801
802 # Installation directory options.
803 # These are left unexpanded so users can "make install exec_prefix=/foo"
804 # and all the variables that are supposed to be based on exec_prefix
805 # by default will actually change.
806 # Use braces instead of parens because sh, perl, etc. also accept them.
807 # (The list follows the same order as the GNU Coding Standards.)
808 bindir='${exec_prefix}/bin'
809 sbindir='${exec_prefix}/sbin'
810 libexecdir='${exec_prefix}/libexec'
811 datarootdir='${prefix}/share'
812 datadir='${datarootdir}'
813 sysconfdir='${prefix}/etc'
814 sharedstatedir='${prefix}/com'
815 localstatedir='${prefix}/var'
816 runstatedir='${localstatedir}/run'
817 includedir='${prefix}/include'
818 oldincludedir='/usr/include'
819 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
820 infodir='${datarootdir}/info'
821 htmldir='${docdir}'
822 dvidir='${docdir}'
823 pdfdir='${docdir}'
824 psdir='${docdir}'
825 libdir='${exec_prefix}/lib'
826 localedir='${datarootdir}/locale'
827 mandir='${datarootdir}/man'
828
829 ac_prev=
830 ac_dashdash=
831 for ac_option
832 do
833   # If the previous option needs an argument, assign it.
834   if test -n "$ac_prev"; then
835     eval $ac_prev=\$ac_option
836     ac_prev=
837     continue
838   fi
839
840   case $ac_option in
841   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
842   *=)   ac_optarg= ;;
843   *)    ac_optarg=yes ;;
844   esac
845
846   # Accept the important Cygnus configure options, so we can diagnose typos.
847
848   case $ac_dashdash$ac_option in
849   --)
850     ac_dashdash=yes ;;
851
852   -bindir | --bindir | --bindi | --bind | --bin | --bi)
853     ac_prev=bindir ;;
854   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
855     bindir=$ac_optarg ;;
856
857   -build | --build | --buil | --bui | --bu)
858     ac_prev=build_alias ;;
859   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
860     build_alias=$ac_optarg ;;
861
862   -cache-file | --cache-file | --cache-fil | --cache-fi \
863   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
864     ac_prev=cache_file ;;
865   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
866   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
867     cache_file=$ac_optarg ;;
868
869   --config-cache | -C)
870     cache_file=config.cache ;;
871
872   -datadir | --datadir | --datadi | --datad)
873     ac_prev=datadir ;;
874   -datadir=* | --datadir=* | --datadi=* | --datad=*)
875     datadir=$ac_optarg ;;
876
877   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
878   | --dataroo | --dataro | --datar)
879     ac_prev=datarootdir ;;
880   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
881   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
882     datarootdir=$ac_optarg ;;
883
884   -disable-* | --disable-*)
885     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
886     # Reject names that are not valid shell variable names.
887     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
888       as_fn_error $? "invalid feature name: $ac_useropt"
889     ac_useropt_orig=$ac_useropt
890     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
891     case $ac_user_opts in
892       *"
893 "enable_$ac_useropt"
894 "*) ;;
895       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
896          ac_unrecognized_sep=', ';;
897     esac
898     eval enable_$ac_useropt=no ;;
899
900   -docdir | --docdir | --docdi | --doc | --do)
901     ac_prev=docdir ;;
902   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
903     docdir=$ac_optarg ;;
904
905   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
906     ac_prev=dvidir ;;
907   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
908     dvidir=$ac_optarg ;;
909
910   -enable-* | --enable-*)
911     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
912     # Reject names that are not valid shell variable names.
913     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
914       as_fn_error $? "invalid feature name: $ac_useropt"
915     ac_useropt_orig=$ac_useropt
916     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
917     case $ac_user_opts in
918       *"
919 "enable_$ac_useropt"
920 "*) ;;
921       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
922          ac_unrecognized_sep=', ';;
923     esac
924     eval enable_$ac_useropt=\$ac_optarg ;;
925
926   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
927   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
928   | --exec | --exe | --ex)
929     ac_prev=exec_prefix ;;
930   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
931   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
932   | --exec=* | --exe=* | --ex=*)
933     exec_prefix=$ac_optarg ;;
934
935   -gas | --gas | --ga | --g)
936     # Obsolete; use --with-gas.
937     with_gas=yes ;;
938
939   -help | --help | --hel | --he | -h)
940     ac_init_help=long ;;
941   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
942     ac_init_help=recursive ;;
943   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
944     ac_init_help=short ;;
945
946   -host | --host | --hos | --ho)
947     ac_prev=host_alias ;;
948   -host=* | --host=* | --hos=* | --ho=*)
949     host_alias=$ac_optarg ;;
950
951   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
952     ac_prev=htmldir ;;
953   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
954   | --ht=*)
955     htmldir=$ac_optarg ;;
956
957   -includedir | --includedir | --includedi | --included | --include \
958   | --includ | --inclu | --incl | --inc)
959     ac_prev=includedir ;;
960   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
961   | --includ=* | --inclu=* | --incl=* | --inc=*)
962     includedir=$ac_optarg ;;
963
964   -infodir | --infodir | --infodi | --infod | --info | --inf)
965     ac_prev=infodir ;;
966   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
967     infodir=$ac_optarg ;;
968
969   -libdir | --libdir | --libdi | --libd)
970     ac_prev=libdir ;;
971   -libdir=* | --libdir=* | --libdi=* | --libd=*)
972     libdir=$ac_optarg ;;
973
974   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
975   | --libexe | --libex | --libe)
976     ac_prev=libexecdir ;;
977   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
978   | --libexe=* | --libex=* | --libe=*)
979     libexecdir=$ac_optarg ;;
980
981   -localedir | --localedir | --localedi | --localed | --locale)
982     ac_prev=localedir ;;
983   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
984     localedir=$ac_optarg ;;
985
986   -localstatedir | --localstatedir | --localstatedi | --localstated \
987   | --localstate | --localstat | --localsta | --localst | --locals)
988     ac_prev=localstatedir ;;
989   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
990   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
991     localstatedir=$ac_optarg ;;
992
993   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
994     ac_prev=mandir ;;
995   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
996     mandir=$ac_optarg ;;
997
998   -nfp | --nfp | --nf)
999     # Obsolete; use --without-fp.
1000     with_fp=no ;;
1001
1002   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1003   | --no-cr | --no-c | -n)
1004     no_create=yes ;;
1005
1006   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1007   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1008     no_recursion=yes ;;
1009
1010   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1011   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1012   | --oldin | --oldi | --old | --ol | --o)
1013     ac_prev=oldincludedir ;;
1014   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1015   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1016   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1017     oldincludedir=$ac_optarg ;;
1018
1019   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1020     ac_prev=prefix ;;
1021   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1022     prefix=$ac_optarg ;;
1023
1024   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1025   | --program-pre | --program-pr | --program-p)
1026     ac_prev=program_prefix ;;
1027   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1028   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1029     program_prefix=$ac_optarg ;;
1030
1031   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1032   | --program-suf | --program-su | --program-s)
1033     ac_prev=program_suffix ;;
1034   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1035   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1036     program_suffix=$ac_optarg ;;
1037
1038   -program-transform-name | --program-transform-name \
1039   | --program-transform-nam | --program-transform-na \
1040   | --program-transform-n | --program-transform- \
1041   | --program-transform | --program-transfor \
1042   | --program-transfo | --program-transf \
1043   | --program-trans | --program-tran \
1044   | --progr-tra | --program-tr | --program-t)
1045     ac_prev=program_transform_name ;;
1046   -program-transform-name=* | --program-transform-name=* \
1047   | --program-transform-nam=* | --program-transform-na=* \
1048   | --program-transform-n=* | --program-transform-=* \
1049   | --program-transform=* | --program-transfor=* \
1050   | --program-transfo=* | --program-transf=* \
1051   | --program-trans=* | --program-tran=* \
1052   | --progr-tra=* | --program-tr=* | --program-t=*)
1053     program_transform_name=$ac_optarg ;;
1054
1055   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1056     ac_prev=pdfdir ;;
1057   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1058     pdfdir=$ac_optarg ;;
1059
1060   -psdir | --psdir | --psdi | --psd | --ps)
1061     ac_prev=psdir ;;
1062   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1063     psdir=$ac_optarg ;;
1064
1065   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1066   | -silent | --silent | --silen | --sile | --sil)
1067     silent=yes ;;
1068
1069   -runstatedir | --runstatedir | --runstatedi | --runstated \
1070   | --runstate | --runstat | --runsta | --runst | --runs \
1071   | --run | --ru | --r)
1072     ac_prev=runstatedir ;;
1073   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1074   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1075   | --run=* | --ru=* | --r=*)
1076     runstatedir=$ac_optarg ;;
1077
1078   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1079     ac_prev=sbindir ;;
1080   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1081   | --sbi=* | --sb=*)
1082     sbindir=$ac_optarg ;;
1083
1084   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1085   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1086   | --sharedst | --shareds | --shared | --share | --shar \
1087   | --sha | --sh)
1088     ac_prev=sharedstatedir ;;
1089   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1090   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1091   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1092   | --sha=* | --sh=*)
1093     sharedstatedir=$ac_optarg ;;
1094
1095   -site | --site | --sit)
1096     ac_prev=site ;;
1097   -site=* | --site=* | --sit=*)
1098     site=$ac_optarg ;;
1099
1100   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1101     ac_prev=srcdir ;;
1102   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1103     srcdir=$ac_optarg ;;
1104
1105   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1106   | --syscon | --sysco | --sysc | --sys | --sy)
1107     ac_prev=sysconfdir ;;
1108   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1109   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1110     sysconfdir=$ac_optarg ;;
1111
1112   -target | --target | --targe | --targ | --tar | --ta | --t)
1113     ac_prev=target_alias ;;
1114   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1115     target_alias=$ac_optarg ;;
1116
1117   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1118     verbose=yes ;;
1119
1120   -version | --version | --versio | --versi | --vers | -V)
1121     ac_init_version=: ;;
1122
1123   -with-* | --with-*)
1124     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1125     # Reject names that are not valid shell variable names.
1126     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1127       as_fn_error $? "invalid package name: $ac_useropt"
1128     ac_useropt_orig=$ac_useropt
1129     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1130     case $ac_user_opts in
1131       *"
1132 "with_$ac_useropt"
1133 "*) ;;
1134       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1135          ac_unrecognized_sep=', ';;
1136     esac
1137     eval with_$ac_useropt=\$ac_optarg ;;
1138
1139   -without-* | --without-*)
1140     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1141     # Reject names that are not valid shell variable names.
1142     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1143       as_fn_error $? "invalid package name: $ac_useropt"
1144     ac_useropt_orig=$ac_useropt
1145     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1146     case $ac_user_opts in
1147       *"
1148 "with_$ac_useropt"
1149 "*) ;;
1150       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1151          ac_unrecognized_sep=', ';;
1152     esac
1153     eval with_$ac_useropt=no ;;
1154
1155   --x)
1156     # Obsolete; use --with-x.
1157     with_x=yes ;;
1158
1159   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1160   | --x-incl | --x-inc | --x-in | --x-i)
1161     ac_prev=x_includes ;;
1162   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1163   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1164     x_includes=$ac_optarg ;;
1165
1166   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1167   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1168     ac_prev=x_libraries ;;
1169   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1170   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1171     x_libraries=$ac_optarg ;;
1172
1173   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1174 Try \`$0 --help' for more information"
1175     ;;
1176
1177   *=*)
1178     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1179     # Reject names that are not valid shell variable names.
1180     case $ac_envvar in #(
1181       '' | [0-9]* | *[!_$as_cr_alnum]* )
1182       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1183     esac
1184     eval $ac_envvar=\$ac_optarg
1185     export $ac_envvar ;;
1186
1187   *)
1188     # FIXME: should be removed in autoconf 3.0.
1189     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1190     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1191       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1192     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1193     ;;
1194
1195   esac
1196 done
1197
1198 if test -n "$ac_prev"; then
1199   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1200   as_fn_error $? "missing argument to $ac_option"
1201 fi
1202
1203 if test -n "$ac_unrecognized_opts"; then
1204   case $enable_option_checking in
1205     no) ;;
1206     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1207     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1208   esac
1209 fi
1210
1211 # Check all directory arguments for consistency.
1212 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1213                 datadir sysconfdir sharedstatedir localstatedir includedir \
1214                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1215                 libdir localedir mandir runstatedir
1216 do
1217   eval ac_val=\$$ac_var
1218   # Remove trailing slashes.
1219   case $ac_val in
1220     */ )
1221       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1222       eval $ac_var=\$ac_val;;
1223   esac
1224   # Be sure to have absolute directory names.
1225   case $ac_val in
1226     [\\/$]* | ?:[\\/]* )  continue;;
1227     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1228   esac
1229   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1230 done
1231
1232 # There might be people who depend on the old broken behavior: `$host'
1233 # used to hold the argument of --host etc.
1234 # FIXME: To remove some day.
1235 build=$build_alias
1236 host=$host_alias
1237 target=$target_alias
1238
1239 # FIXME: To remove some day.
1240 if test "x$host_alias" != x; then
1241   if test "x$build_alias" = x; then
1242     cross_compiling=maybe
1243   elif test "x$build_alias" != "x$host_alias"; then
1244     cross_compiling=yes
1245   fi
1246 fi
1247
1248 ac_tool_prefix=
1249 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1250
1251 test "$silent" = yes && exec 6>/dev/null
1252
1253
1254 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1255 ac_ls_di=`ls -di .` &&
1256 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1257   as_fn_error $? "working directory cannot be determined"
1258 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1259   as_fn_error $? "pwd does not report name of working directory"
1260
1261
1262 # Find the source files, if location was not specified.
1263 if test -z "$srcdir"; then
1264   ac_srcdir_defaulted=yes
1265   # Try the directory containing this script, then the parent directory.
1266   ac_confdir=`$as_dirname -- "$as_myself" ||
1267 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1268          X"$as_myself" : 'X\(//\)[^/]' \| \
1269          X"$as_myself" : 'X\(//\)$' \| \
1270          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1271 $as_echo X"$as_myself" |
1272     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1273             s//\1/
1274             q
1275           }
1276           /^X\(\/\/\)[^/].*/{
1277             s//\1/
1278             q
1279           }
1280           /^X\(\/\/\)$/{
1281             s//\1/
1282             q
1283           }
1284           /^X\(\/\).*/{
1285             s//\1/
1286             q
1287           }
1288           s/.*/./; q'`
1289   srcdir=$ac_confdir
1290   if test ! -r "$srcdir/$ac_unique_file"; then
1291     srcdir=..
1292   fi
1293 else
1294   ac_srcdir_defaulted=no
1295 fi
1296 if test ! -r "$srcdir/$ac_unique_file"; then
1297   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1298   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1299 fi
1300 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1301 ac_abs_confdir=`(
1302         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1303         pwd)`
1304 # When building in place, set srcdir=.
1305 if test "$ac_abs_confdir" = "$ac_pwd"; then
1306   srcdir=.
1307 fi
1308 # Remove unnecessary trailing slashes from srcdir.
1309 # Double slashes in file names in object file debugging info
1310 # mess up M-x gdb in Emacs.
1311 case $srcdir in
1312 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1313 esac
1314 for ac_var in $ac_precious_vars; do
1315   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1316   eval ac_env_${ac_var}_value=\$${ac_var}
1317   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1318   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1319 done
1320
1321 #
1322 # Report the --help message.
1323 #
1324 if test "$ac_init_help" = "long"; then
1325   # Omit some internal or obsolete options to make the list less imposing.
1326   # This message is too long to be a string in the A/UX 3.1 sh.
1327   cat <<_ACEOF
1328 \`configure' configures exfatprogs 1.1.3 to adapt to many kinds of systems.
1329
1330 Usage: $0 [OPTION]... [VAR=VALUE]...
1331
1332 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1333 VAR=VALUE.  See below for descriptions of some of the useful variables.
1334
1335 Defaults for the options are specified in brackets.
1336
1337 Configuration:
1338   -h, --help              display this help and exit
1339       --help=short        display options specific to this package
1340       --help=recursive    display the short help of all the included packages
1341   -V, --version           display version information and exit
1342   -q, --quiet, --silent   do not print \`checking ...' messages
1343       --cache-file=FILE   cache test results in FILE [disabled]
1344   -C, --config-cache      alias for \`--cache-file=config.cache'
1345   -n, --no-create         do not create output files
1346       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1347
1348 Installation directories:
1349   --prefix=PREFIX         install architecture-independent files in PREFIX
1350                           [$ac_default_prefix]
1351   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1352                           [PREFIX]
1353
1354 By default, \`make install' will install all the files in
1355 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1356 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1357 for instance \`--prefix=\$HOME'.
1358
1359 For better control, use the options below.
1360
1361 Fine tuning of the installation directories:
1362   --bindir=DIR            user executables [EPREFIX/bin]
1363   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1364   --libexecdir=DIR        program executables [EPREFIX/libexec]
1365   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1366   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1367   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1368   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1369   --libdir=DIR            object code libraries [EPREFIX/lib]
1370   --includedir=DIR        C header files [PREFIX/include]
1371   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1372   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1373   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1374   --infodir=DIR           info documentation [DATAROOTDIR/info]
1375   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1376   --mandir=DIR            man documentation [DATAROOTDIR/man]
1377   --docdir=DIR            documentation root [DATAROOTDIR/doc/exfatprogs]
1378   --htmldir=DIR           html documentation [DOCDIR]
1379   --dvidir=DIR            dvi documentation [DOCDIR]
1380   --pdfdir=DIR            pdf documentation [DOCDIR]
1381   --psdir=DIR             ps documentation [DOCDIR]
1382 _ACEOF
1383
1384   cat <<\_ACEOF
1385
1386 Program names:
1387   --program-prefix=PREFIX            prepend PREFIX to installed program names
1388   --program-suffix=SUFFIX            append SUFFIX to installed program names
1389   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1390
1391 System types:
1392   --build=BUILD     configure for building on BUILD [guessed]
1393   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1394 _ACEOF
1395 fi
1396
1397 if test -n "$ac_init_help"; then
1398   case $ac_init_help in
1399      short | recursive ) echo "Configuration of exfatprogs 1.1.3:";;
1400    esac
1401   cat <<\_ACEOF
1402
1403 Optional Features:
1404   --disable-option-checking  ignore unrecognized --enable/--with options
1405   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1406   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1407   --enable-silent-rules   less verbose build output (undo: "make V=1")
1408   --disable-silent-rules  verbose build output (undo: "make V=0")
1409   --enable-dependency-tracking
1410                           do not reject slow dependency extractors
1411   --disable-dependency-tracking
1412                           speeds up one-time build
1413   --enable-shared[=PKGS]  build shared libraries [default=yes]
1414   --enable-static[=PKGS]  build static libraries [default=yes]
1415   --enable-fast-install[=PKGS]
1416                           optimize for fast installation [default=yes]
1417   --disable-libtool-lock  avoid locking (might break parallel builds)
1418   --disable-largefile     omit support for large files
1419
1420 Optional Packages:
1421   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1422   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1423   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1424                           both]
1425   --with-aix-soname=aix|svr4|both
1426                           shared library versioning (aka "SONAME") variant to
1427                           provide on AIX, [default=aix].
1428   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1429   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1430                           compiler's sysroot if not specified).
1431
1432 Some influential environment variables:
1433   CC          C compiler command
1434   CFLAGS      C compiler flags
1435   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1436               nonstandard directory <lib dir>
1437   LIBS        libraries to pass to the linker, e.g. -l<library>
1438   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1439               you have headers in a nonstandard directory <include dir>
1440   LT_SYS_LIBRARY_PATH
1441               User-defined run-time library search path.
1442   CPP         C preprocessor
1443
1444 Use these variables to override the choices made by `configure' or to help
1445 it to find libraries and programs with nonstandard names/locations.
1446
1447 Report bugs to <linkinjeon@kernel.org>.
1448 exfatprogs home page: <https://github.com/exfatprogs/exfatprogs>.
1449 _ACEOF
1450 ac_status=$?
1451 fi
1452
1453 if test "$ac_init_help" = "recursive"; then
1454   # If there are subdirs, report their specific --help.
1455   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1456     test -d "$ac_dir" ||
1457       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1458       continue
1459     ac_builddir=.
1460
1461 case "$ac_dir" in
1462 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1463 *)
1464   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1465   # A ".." for each directory in $ac_dir_suffix.
1466   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1467   case $ac_top_builddir_sub in
1468   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1469   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1470   esac ;;
1471 esac
1472 ac_abs_top_builddir=$ac_pwd
1473 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1474 # for backward compatibility:
1475 ac_top_builddir=$ac_top_build_prefix
1476
1477 case $srcdir in
1478   .)  # We are building in place.
1479     ac_srcdir=.
1480     ac_top_srcdir=$ac_top_builddir_sub
1481     ac_abs_top_srcdir=$ac_pwd ;;
1482   [\\/]* | ?:[\\/]* )  # Absolute name.
1483     ac_srcdir=$srcdir$ac_dir_suffix;
1484     ac_top_srcdir=$srcdir
1485     ac_abs_top_srcdir=$srcdir ;;
1486   *) # Relative name.
1487     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1488     ac_top_srcdir=$ac_top_build_prefix$srcdir
1489     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1490 esac
1491 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1492
1493     cd "$ac_dir" || { ac_status=$?; continue; }
1494     # Check for guested configure.
1495     if test -f "$ac_srcdir/configure.gnu"; then
1496       echo &&
1497       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1498     elif test -f "$ac_srcdir/configure"; then
1499       echo &&
1500       $SHELL "$ac_srcdir/configure" --help=recursive
1501     else
1502       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1503     fi || ac_status=$?
1504     cd "$ac_pwd" || { ac_status=$?; break; }
1505   done
1506 fi
1507
1508 test -n "$ac_init_help" && exit $ac_status
1509 if $ac_init_version; then
1510   cat <<\_ACEOF
1511 exfatprogs configure 1.1.3
1512 generated by GNU Autoconf 2.69
1513
1514 Copyright (C) 2012 Free Software Foundation, Inc.
1515 This configure script is free software; the Free Software Foundation
1516 gives unlimited permission to copy, distribute and modify it.
1517 _ACEOF
1518   exit
1519 fi
1520
1521 ## ------------------------ ##
1522 ## Autoconf initialization. ##
1523 ## ------------------------ ##
1524
1525 # ac_fn_c_try_compile LINENO
1526 # --------------------------
1527 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1528 ac_fn_c_try_compile ()
1529 {
1530   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1531   rm -f conftest.$ac_objext
1532   if { { ac_try="$ac_compile"
1533 case "(($ac_try" in
1534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1535   *) ac_try_echo=$ac_try;;
1536 esac
1537 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1538 $as_echo "$ac_try_echo"; } >&5
1539   (eval "$ac_compile") 2>conftest.err
1540   ac_status=$?
1541   if test -s conftest.err; then
1542     grep -v '^ *+' conftest.err >conftest.er1
1543     cat conftest.er1 >&5
1544     mv -f conftest.er1 conftest.err
1545   fi
1546   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1547   test $ac_status = 0; } && {
1548          test -z "$ac_c_werror_flag" ||
1549          test ! -s conftest.err
1550        } && test -s conftest.$ac_objext; then :
1551   ac_retval=0
1552 else
1553   $as_echo "$as_me: failed program was:" >&5
1554 sed 's/^/| /' conftest.$ac_ext >&5
1555
1556         ac_retval=1
1557 fi
1558   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1559   as_fn_set_status $ac_retval
1560
1561 } # ac_fn_c_try_compile
1562
1563 # ac_fn_c_try_link LINENO
1564 # -----------------------
1565 # Try to link conftest.$ac_ext, and return whether this succeeded.
1566 ac_fn_c_try_link ()
1567 {
1568   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1569   rm -f conftest.$ac_objext conftest$ac_exeext
1570   if { { ac_try="$ac_link"
1571 case "(($ac_try" in
1572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1573   *) ac_try_echo=$ac_try;;
1574 esac
1575 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1576 $as_echo "$ac_try_echo"; } >&5
1577   (eval "$ac_link") 2>conftest.err
1578   ac_status=$?
1579   if test -s conftest.err; then
1580     grep -v '^ *+' conftest.err >conftest.er1
1581     cat conftest.er1 >&5
1582     mv -f conftest.er1 conftest.err
1583   fi
1584   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1585   test $ac_status = 0; } && {
1586          test -z "$ac_c_werror_flag" ||
1587          test ! -s conftest.err
1588        } && test -s conftest$ac_exeext && {
1589          test "$cross_compiling" = yes ||
1590          test -x conftest$ac_exeext
1591        }; then :
1592   ac_retval=0
1593 else
1594   $as_echo "$as_me: failed program was:" >&5
1595 sed 's/^/| /' conftest.$ac_ext >&5
1596
1597         ac_retval=1
1598 fi
1599   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1600   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1601   # interfere with the next link command; also delete a directory that is
1602   # left behind by Apple's compiler.  We do this before executing the actions.
1603   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1604   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1605   as_fn_set_status $ac_retval
1606
1607 } # ac_fn_c_try_link
1608
1609 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1610 # -------------------------------------------------------
1611 # Tests whether HEADER exists and can be compiled using the include files in
1612 # INCLUDES, setting the cache variable VAR accordingly.
1613 ac_fn_c_check_header_compile ()
1614 {
1615   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1617 $as_echo_n "checking for $2... " >&6; }
1618 if eval \${$3+:} false; then :
1619   $as_echo_n "(cached) " >&6
1620 else
1621   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1622 /* end confdefs.h.  */
1623 $4
1624 #include <$2>
1625 _ACEOF
1626 if ac_fn_c_try_compile "$LINENO"; then :
1627   eval "$3=yes"
1628 else
1629   eval "$3=no"
1630 fi
1631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1632 fi
1633 eval ac_res=\$$3
1634                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1635 $as_echo "$ac_res" >&6; }
1636   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1637
1638 } # ac_fn_c_check_header_compile
1639
1640 # ac_fn_c_try_cpp LINENO
1641 # ----------------------
1642 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1643 ac_fn_c_try_cpp ()
1644 {
1645   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1646   if { { ac_try="$ac_cpp conftest.$ac_ext"
1647 case "(($ac_try" in
1648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1649   *) ac_try_echo=$ac_try;;
1650 esac
1651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1652 $as_echo "$ac_try_echo"; } >&5
1653   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1654   ac_status=$?
1655   if test -s conftest.err; then
1656     grep -v '^ *+' conftest.err >conftest.er1
1657     cat conftest.er1 >&5
1658     mv -f conftest.er1 conftest.err
1659   fi
1660   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1661   test $ac_status = 0; } > conftest.i && {
1662          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1663          test ! -s conftest.err
1664        }; then :
1665   ac_retval=0
1666 else
1667   $as_echo "$as_me: failed program was:" >&5
1668 sed 's/^/| /' conftest.$ac_ext >&5
1669
1670     ac_retval=1
1671 fi
1672   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1673   as_fn_set_status $ac_retval
1674
1675 } # ac_fn_c_try_cpp
1676
1677 # ac_fn_c_try_run LINENO
1678 # ----------------------
1679 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1680 # that executables *can* be run.
1681 ac_fn_c_try_run ()
1682 {
1683   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684   if { { ac_try="$ac_link"
1685 case "(($ac_try" in
1686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687   *) ac_try_echo=$ac_try;;
1688 esac
1689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690 $as_echo "$ac_try_echo"; } >&5
1691   (eval "$ac_link") 2>&5
1692   ac_status=$?
1693   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1695   { { case "(($ac_try" in
1696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697   *) ac_try_echo=$ac_try;;
1698 esac
1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700 $as_echo "$ac_try_echo"; } >&5
1701   (eval "$ac_try") 2>&5
1702   ac_status=$?
1703   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704   test $ac_status = 0; }; }; then :
1705   ac_retval=0
1706 else
1707   $as_echo "$as_me: program exited with status $ac_status" >&5
1708        $as_echo "$as_me: failed program was:" >&5
1709 sed 's/^/| /' conftest.$ac_ext >&5
1710
1711        ac_retval=$ac_status
1712 fi
1713   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1714   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1715   as_fn_set_status $ac_retval
1716
1717 } # ac_fn_c_try_run
1718
1719 # ac_fn_c_check_func LINENO FUNC VAR
1720 # ----------------------------------
1721 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1722 ac_fn_c_check_func ()
1723 {
1724   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1726 $as_echo_n "checking for $2... " >&6; }
1727 if eval \${$3+:} false; then :
1728   $as_echo_n "(cached) " >&6
1729 else
1730   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1731 /* end confdefs.h.  */
1732 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1733    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1734 #define $2 innocuous_$2
1735
1736 /* System header to define __stub macros and hopefully few prototypes,
1737     which can conflict with char $2 (); below.
1738     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1739     <limits.h> exists even on freestanding compilers.  */
1740
1741 #ifdef __STDC__
1742 # include <limits.h>
1743 #else
1744 # include <assert.h>
1745 #endif
1746
1747 #undef $2
1748
1749 /* Override any GCC internal prototype to avoid an error.
1750    Use char because int might match the return type of a GCC
1751    builtin and then its argument prototype would still apply.  */
1752 #ifdef __cplusplus
1753 extern "C"
1754 #endif
1755 char $2 ();
1756 /* The GNU C library defines this for functions which it implements
1757     to always fail with ENOSYS.  Some functions are actually named
1758     something starting with __ and the normal name is an alias.  */
1759 #if defined __stub_$2 || defined __stub___$2
1760 choke me
1761 #endif
1762
1763 int
1764 main ()
1765 {
1766 return $2 ();
1767   ;
1768   return 0;
1769 }
1770 _ACEOF
1771 if ac_fn_c_try_link "$LINENO"; then :
1772   eval "$3=yes"
1773 else
1774   eval "$3=no"
1775 fi
1776 rm -f core conftest.err conftest.$ac_objext \
1777     conftest$ac_exeext conftest.$ac_ext
1778 fi
1779 eval ac_res=\$$3
1780                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1781 $as_echo "$ac_res" >&6; }
1782   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1783
1784 } # ac_fn_c_check_func
1785 cat >config.log <<_ACEOF
1786 This file contains any messages produced by compilers while
1787 running configure, to aid debugging if configure makes a mistake.
1788
1789 It was created by exfatprogs $as_me 1.1.3, which was
1790 generated by GNU Autoconf 2.69.  Invocation command line was
1791
1792   $ $0 $@
1793
1794 _ACEOF
1795 exec 5>>config.log
1796 {
1797 cat <<_ASUNAME
1798 ## --------- ##
1799 ## Platform. ##
1800 ## --------- ##
1801
1802 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1803 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1804 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1805 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1806 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1807
1808 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1809 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1810
1811 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1812 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1813 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1814 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1815 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1816 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1817 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1818
1819 _ASUNAME
1820
1821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1822 for as_dir in $PATH
1823 do
1824   IFS=$as_save_IFS
1825   test -z "$as_dir" && as_dir=.
1826     $as_echo "PATH: $as_dir"
1827   done
1828 IFS=$as_save_IFS
1829
1830 } >&5
1831
1832 cat >&5 <<_ACEOF
1833
1834
1835 ## ----------- ##
1836 ## Core tests. ##
1837 ## ----------- ##
1838
1839 _ACEOF
1840
1841
1842 # Keep a trace of the command line.
1843 # Strip out --no-create and --no-recursion so they do not pile up.
1844 # Strip out --silent because we don't want to record it for future runs.
1845 # Also quote any args containing shell meta-characters.
1846 # Make two passes to allow for proper duplicate-argument suppression.
1847 ac_configure_args=
1848 ac_configure_args0=
1849 ac_configure_args1=
1850 ac_must_keep_next=false
1851 for ac_pass in 1 2
1852 do
1853   for ac_arg
1854   do
1855     case $ac_arg in
1856     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1857     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1858     | -silent | --silent | --silen | --sile | --sil)
1859       continue ;;
1860     *\'*)
1861       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1862     esac
1863     case $ac_pass in
1864     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1865     2)
1866       as_fn_append ac_configure_args1 " '$ac_arg'"
1867       if test $ac_must_keep_next = true; then
1868         ac_must_keep_next=false # Got value, back to normal.
1869       else
1870         case $ac_arg in
1871           *=* | --config-cache | -C | -disable-* | --disable-* \
1872           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1873           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1874           | -with-* | --with-* | -without-* | --without-* | --x)
1875             case "$ac_configure_args0 " in
1876               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1877             esac
1878             ;;
1879           -* ) ac_must_keep_next=true ;;
1880         esac
1881       fi
1882       as_fn_append ac_configure_args " '$ac_arg'"
1883       ;;
1884     esac
1885   done
1886 done
1887 { ac_configure_args0=; unset ac_configure_args0;}
1888 { ac_configure_args1=; unset ac_configure_args1;}
1889
1890 # When interrupted or exit'd, cleanup temporary files, and complete
1891 # config.log.  We remove comments because anyway the quotes in there
1892 # would cause problems or look ugly.
1893 # WARNING: Use '\'' to represent an apostrophe within the trap.
1894 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1895 trap 'exit_status=$?
1896   # Save into config.log some information that might help in debugging.
1897   {
1898     echo
1899
1900     $as_echo "## ---------------- ##
1901 ## Cache variables. ##
1902 ## ---------------- ##"
1903     echo
1904     # The following way of writing the cache mishandles newlines in values,
1905 (
1906   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1907     eval ac_val=\$$ac_var
1908     case $ac_val in #(
1909     *${as_nl}*)
1910       case $ac_var in #(
1911       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1912 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1913       esac
1914       case $ac_var in #(
1915       _ | IFS | as_nl) ;; #(
1916       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1917       *) { eval $ac_var=; unset $ac_var;} ;;
1918       esac ;;
1919     esac
1920   done
1921   (set) 2>&1 |
1922     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1923     *${as_nl}ac_space=\ *)
1924       sed -n \
1925         "s/'\''/'\''\\\\'\'''\''/g;
1926           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1927       ;; #(
1928     *)
1929       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1930       ;;
1931     esac |
1932     sort
1933 )
1934     echo
1935
1936     $as_echo "## ----------------- ##
1937 ## Output variables. ##
1938 ## ----------------- ##"
1939     echo
1940     for ac_var in $ac_subst_vars
1941     do
1942       eval ac_val=\$$ac_var
1943       case $ac_val in
1944       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1945       esac
1946       $as_echo "$ac_var='\''$ac_val'\''"
1947     done | sort
1948     echo
1949
1950     if test -n "$ac_subst_files"; then
1951       $as_echo "## ------------------- ##
1952 ## File substitutions. ##
1953 ## ------------------- ##"
1954       echo
1955       for ac_var in $ac_subst_files
1956       do
1957         eval ac_val=\$$ac_var
1958         case $ac_val in
1959         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1960         esac
1961         $as_echo "$ac_var='\''$ac_val'\''"
1962       done | sort
1963       echo
1964     fi
1965
1966     if test -s confdefs.h; then
1967       $as_echo "## ----------- ##
1968 ## confdefs.h. ##
1969 ## ----------- ##"
1970       echo
1971       cat confdefs.h
1972       echo
1973     fi
1974     test "$ac_signal" != 0 &&
1975       $as_echo "$as_me: caught signal $ac_signal"
1976     $as_echo "$as_me: exit $exit_status"
1977   } >&5
1978   rm -f core *.core core.conftest.* &&
1979     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1980     exit $exit_status
1981 ' 0
1982 for ac_signal in 1 2 13 15; do
1983   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1984 done
1985 ac_signal=0
1986
1987 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1988 rm -f -r conftest* confdefs.h
1989
1990 $as_echo "/* confdefs.h */" > confdefs.h
1991
1992 # Predefined preprocessor variables.
1993
1994 cat >>confdefs.h <<_ACEOF
1995 #define PACKAGE_NAME "$PACKAGE_NAME"
1996 _ACEOF
1997
1998 cat >>confdefs.h <<_ACEOF
1999 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2000 _ACEOF
2001
2002 cat >>confdefs.h <<_ACEOF
2003 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2004 _ACEOF
2005
2006 cat >>confdefs.h <<_ACEOF
2007 #define PACKAGE_STRING "$PACKAGE_STRING"
2008 _ACEOF
2009
2010 cat >>confdefs.h <<_ACEOF
2011 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2012 _ACEOF
2013
2014 cat >>confdefs.h <<_ACEOF
2015 #define PACKAGE_URL "$PACKAGE_URL"
2016 _ACEOF
2017
2018
2019 # Let the site file select an alternate cache file if it wants to.
2020 # Prefer an explicitly selected file to automatically selected ones.
2021 ac_site_file1=NONE
2022 ac_site_file2=NONE
2023 if test -n "$CONFIG_SITE"; then
2024   # We do not want a PATH search for config.site.
2025   case $CONFIG_SITE in #((
2026     -*)  ac_site_file1=./$CONFIG_SITE;;
2027     */*) ac_site_file1=$CONFIG_SITE;;
2028     *)   ac_site_file1=./$CONFIG_SITE;;
2029   esac
2030 elif test "x$prefix" != xNONE; then
2031   ac_site_file1=$prefix/share/config.site
2032   ac_site_file2=$prefix/etc/config.site
2033 else
2034   ac_site_file1=$ac_default_prefix/share/config.site
2035   ac_site_file2=$ac_default_prefix/etc/config.site
2036 fi
2037 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2038 do
2039   test "x$ac_site_file" = xNONE && continue
2040   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2041     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2042 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2043     sed 's/^/| /' "$ac_site_file" >&5
2044     . "$ac_site_file" \
2045       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2046 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2047 as_fn_error $? "failed to load site script $ac_site_file
2048 See \`config.log' for more details" "$LINENO" 5; }
2049   fi
2050 done
2051
2052 if test -r "$cache_file"; then
2053   # Some versions of bash will fail to source /dev/null (special files
2054   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2055   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2056     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2057 $as_echo "$as_me: loading cache $cache_file" >&6;}
2058     case $cache_file in
2059       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2060       *)                      . "./$cache_file";;
2061     esac
2062   fi
2063 else
2064   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2065 $as_echo "$as_me: creating cache $cache_file" >&6;}
2066   >$cache_file
2067 fi
2068
2069 # Check that the precious variables saved in the cache have kept the same
2070 # value.
2071 ac_cache_corrupted=false
2072 for ac_var in $ac_precious_vars; do
2073   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2074   eval ac_new_set=\$ac_env_${ac_var}_set
2075   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2076   eval ac_new_val=\$ac_env_${ac_var}_value
2077   case $ac_old_set,$ac_new_set in
2078     set,)
2079       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2080 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2081       ac_cache_corrupted=: ;;
2082     ,set)
2083       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2084 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2085       ac_cache_corrupted=: ;;
2086     ,);;
2087     *)
2088       if test "x$ac_old_val" != "x$ac_new_val"; then
2089         # differences in whitespace do not lead to failure.
2090         ac_old_val_w=`echo x $ac_old_val`
2091         ac_new_val_w=`echo x $ac_new_val`
2092         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2093           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2094 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2095           ac_cache_corrupted=:
2096         else
2097           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2098 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2099           eval $ac_var=\$ac_old_val
2100         fi
2101         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2102 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2103         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2104 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2105       fi;;
2106   esac
2107   # Pass precious variables to config.status.
2108   if test "$ac_new_set" = set; then
2109     case $ac_new_val in
2110     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2111     *) ac_arg=$ac_var=$ac_new_val ;;
2112     esac
2113     case " $ac_configure_args " in
2114       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2115       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2116     esac
2117   fi
2118 done
2119 if $ac_cache_corrupted; then
2120   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2121 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2122   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2123 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2124   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2125 fi
2126 ## -------------------- ##
2127 ## Main body of script. ##
2128 ## -------------------- ##
2129
2130 ac_ext=c
2131 ac_cpp='$CPP $CPPFLAGS'
2132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2135
2136
2137
2138
2139 ac_config_headers="$ac_config_headers config.h"
2140
2141
2142 ac_aux_dir=
2143 for ac_dir in build-aux "$srcdir"/build-aux; do
2144   if test -f "$ac_dir/install-sh"; then
2145     ac_aux_dir=$ac_dir
2146     ac_install_sh="$ac_aux_dir/install-sh -c"
2147     break
2148   elif test -f "$ac_dir/install.sh"; then
2149     ac_aux_dir=$ac_dir
2150     ac_install_sh="$ac_aux_dir/install.sh -c"
2151     break
2152   elif test -f "$ac_dir/shtool"; then
2153     ac_aux_dir=$ac_dir
2154     ac_install_sh="$ac_aux_dir/shtool install -c"
2155     break
2156   fi
2157 done
2158 if test -z "$ac_aux_dir"; then
2159   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2160 fi
2161
2162 # These three variables are undocumented and unsupported,
2163 # and are intended to be withdrawn in a future Autoconf release.
2164 # They can cause serious problems if a builder's source tree is in a directory
2165 # whose full name contains unusual characters.
2166 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2167 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2168 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2169
2170
2171 am__api_version='1.16'
2172
2173 # Find a good install program.  We prefer a C program (faster),
2174 # so one script is as good as another.  But avoid the broken or
2175 # incompatible versions:
2176 # SysV /etc/install, /usr/sbin/install
2177 # SunOS /usr/etc/install
2178 # IRIX /sbin/install
2179 # AIX /bin/install
2180 # AmigaOS /C/install, which installs bootblocks on floppy discs
2181 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2182 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2183 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2184 # OS/2's system install, which has a completely different semantic
2185 # ./install, which can be erroneously created by make from ./install.sh.
2186 # Reject install programs that cannot install multiple files.
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2188 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2189 if test -z "$INSTALL"; then
2190 if ${ac_cv_path_install+:} false; then :
2191   $as_echo_n "(cached) " >&6
2192 else
2193   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2194 for as_dir in $PATH
2195 do
2196   IFS=$as_save_IFS
2197   test -z "$as_dir" && as_dir=.
2198     # Account for people who put trailing slashes in PATH elements.
2199 case $as_dir/ in #((
2200   ./ | .// | /[cC]/* | \
2201   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2202   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2203   /usr/ucb/* ) ;;
2204   *)
2205     # OSF1 and SCO ODT 3.0 have their own names for install.
2206     # Don't use installbsd from OSF since it installs stuff as root
2207     # by default.
2208     for ac_prog in ginstall scoinst install; do
2209       for ac_exec_ext in '' $ac_executable_extensions; do
2210         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2211           if test $ac_prog = install &&
2212             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2213             # AIX install.  It has an incompatible calling convention.
2214             :
2215           elif test $ac_prog = install &&
2216             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2217             # program-specific install script used by HP pwplus--don't use.
2218             :
2219           else
2220             rm -rf conftest.one conftest.two conftest.dir
2221             echo one > conftest.one
2222             echo two > conftest.two
2223             mkdir conftest.dir
2224             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2225               test -s conftest.one && test -s conftest.two &&
2226               test -s conftest.dir/conftest.one &&
2227               test -s conftest.dir/conftest.two
2228             then
2229               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2230               break 3
2231             fi
2232           fi
2233         fi
2234       done
2235     done
2236     ;;
2237 esac
2238
2239   done
2240 IFS=$as_save_IFS
2241
2242 rm -rf conftest.one conftest.two conftest.dir
2243
2244 fi
2245   if test "${ac_cv_path_install+set}" = set; then
2246     INSTALL=$ac_cv_path_install
2247   else
2248     # As a last resort, use the slow shell script.  Don't cache a
2249     # value for INSTALL within a source directory, because that will
2250     # break other packages using the cache if that directory is
2251     # removed, or if the value is a relative name.
2252     INSTALL=$ac_install_sh
2253   fi
2254 fi
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2256 $as_echo "$INSTALL" >&6; }
2257
2258 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2259 # It thinks the first close brace ends the variable substitution.
2260 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2261
2262 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2263
2264 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2265
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2267 $as_echo_n "checking whether build environment is sane... " >&6; }
2268 # Reject unsafe characters in $srcdir or the absolute working directory
2269 # name.  Accept space and tab only in the latter.
2270 am_lf='
2271 '
2272 case `pwd` in
2273   *[\\\"\#\$\&\'\`$am_lf]*)
2274     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2275 esac
2276 case $srcdir in
2277   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2278     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2279 esac
2280
2281 # Do 'set' in a subshell so we don't clobber the current shell's
2282 # arguments.  Must try -L first in case configure is actually a
2283 # symlink; some systems play weird games with the mod time of symlinks
2284 # (eg FreeBSD returns the mod time of the symlink's containing
2285 # directory).
2286 if (
2287    am_has_slept=no
2288    for am_try in 1 2; do
2289      echo "timestamp, slept: $am_has_slept" > conftest.file
2290      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2291      if test "$*" = "X"; then
2292         # -L didn't work.
2293         set X `ls -t "$srcdir/configure" conftest.file`
2294      fi
2295      if test "$*" != "X $srcdir/configure conftest.file" \
2296         && test "$*" != "X conftest.file $srcdir/configure"; then
2297
2298         # If neither matched, then we have a broken ls.  This can happen
2299         # if, for instance, CONFIG_SHELL is bash and it inherits a
2300         # broken ls alias from the environment.  This has actually
2301         # happened.  Such a system could not be considered "sane".
2302         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2303   alias in your environment" "$LINENO" 5
2304      fi
2305      if test "$2" = conftest.file || test $am_try -eq 2; then
2306        break
2307      fi
2308      # Just in case.
2309      sleep 1
2310      am_has_slept=yes
2311    done
2312    test "$2" = conftest.file
2313    )
2314 then
2315    # Ok.
2316    :
2317 else
2318    as_fn_error $? "newly created file is older than distributed files!
2319 Check your system clock" "$LINENO" 5
2320 fi
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2322 $as_echo "yes" >&6; }
2323 # If we didn't sleep, we still need to ensure time stamps of config.status and
2324 # generated files are strictly newer.
2325 am_sleep_pid=
2326 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2327   ( sleep 1 ) &
2328   am_sleep_pid=$!
2329 fi
2330
2331 rm -f conftest.file
2332
2333 test "$program_prefix" != NONE &&
2334   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2335 # Use a double $ so make ignores it.
2336 test "$program_suffix" != NONE &&
2337   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2338 # Double any \ or $.
2339 # By default was `s,x,x', remove it if useless.
2340 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2341 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2342
2343 # Expand $ac_aux_dir to an absolute path.
2344 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2345
2346 if test x"${MISSING+set}" != xset; then
2347   case $am_aux_dir in
2348   *\ * | *\     *)
2349     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2350   *)
2351     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2352   esac
2353 fi
2354 # Use eval to expand $SHELL
2355 if eval "$MISSING --is-lightweight"; then
2356   am_missing_run="$MISSING "
2357 else
2358   am_missing_run=
2359   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2360 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2361 fi
2362
2363 if test x"${install_sh+set}" != xset; then
2364   case $am_aux_dir in
2365   *\ * | *\     *)
2366     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2367   *)
2368     install_sh="\${SHELL} $am_aux_dir/install-sh"
2369   esac
2370 fi
2371
2372 # Installed binaries are usually stripped using 'strip' when the user
2373 # run "make install-strip".  However 'strip' might not be the right
2374 # tool to use in cross-compilation environments, therefore Automake
2375 # will honor the 'STRIP' environment variable to overrule this program.
2376 if test "$cross_compiling" != no; then
2377   if test -n "$ac_tool_prefix"; then
2378   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2379 set dummy ${ac_tool_prefix}strip; ac_word=$2
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2381 $as_echo_n "checking for $ac_word... " >&6; }
2382 if ${ac_cv_prog_STRIP+:} false; then :
2383   $as_echo_n "(cached) " >&6
2384 else
2385   if test -n "$STRIP"; then
2386   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2387 else
2388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2389 for as_dir in $PATH
2390 do
2391   IFS=$as_save_IFS
2392   test -z "$as_dir" && as_dir=.
2393     for ac_exec_ext in '' $ac_executable_extensions; do
2394   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2395     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2396     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2397     break 2
2398   fi
2399 done
2400   done
2401 IFS=$as_save_IFS
2402
2403 fi
2404 fi
2405 STRIP=$ac_cv_prog_STRIP
2406 if test -n "$STRIP"; then
2407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2408 $as_echo "$STRIP" >&6; }
2409 else
2410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2411 $as_echo "no" >&6; }
2412 fi
2413
2414
2415 fi
2416 if test -z "$ac_cv_prog_STRIP"; then
2417   ac_ct_STRIP=$STRIP
2418   # Extract the first word of "strip", so it can be a program name with args.
2419 set dummy strip; ac_word=$2
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2421 $as_echo_n "checking for $ac_word... " >&6; }
2422 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2423   $as_echo_n "(cached) " >&6
2424 else
2425   if test -n "$ac_ct_STRIP"; then
2426   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2427 else
2428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2429 for as_dir in $PATH
2430 do
2431   IFS=$as_save_IFS
2432   test -z "$as_dir" && as_dir=.
2433     for ac_exec_ext in '' $ac_executable_extensions; do
2434   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2435     ac_cv_prog_ac_ct_STRIP="strip"
2436     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2437     break 2
2438   fi
2439 done
2440   done
2441 IFS=$as_save_IFS
2442
2443 fi
2444 fi
2445 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2446 if test -n "$ac_ct_STRIP"; then
2447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2448 $as_echo "$ac_ct_STRIP" >&6; }
2449 else
2450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2451 $as_echo "no" >&6; }
2452 fi
2453
2454   if test "x$ac_ct_STRIP" = x; then
2455     STRIP=":"
2456   else
2457     case $cross_compiling:$ac_tool_warned in
2458 yes:)
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2460 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2461 ac_tool_warned=yes ;;
2462 esac
2463     STRIP=$ac_ct_STRIP
2464   fi
2465 else
2466   STRIP="$ac_cv_prog_STRIP"
2467 fi
2468
2469 fi
2470 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2471
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2473 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2474 if test -z "$MKDIR_P"; then
2475   if ${ac_cv_path_mkdir+:} false; then :
2476   $as_echo_n "(cached) " >&6
2477 else
2478   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2479 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2480 do
2481   IFS=$as_save_IFS
2482   test -z "$as_dir" && as_dir=.
2483     for ac_prog in mkdir gmkdir; do
2484          for ac_exec_ext in '' $ac_executable_extensions; do
2485            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2486            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2487              'mkdir (GNU coreutils) '* | \
2488              'mkdir (coreutils) '* | \
2489              'mkdir (fileutils) '4.1*)
2490                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2491                break 3;;
2492            esac
2493          done
2494        done
2495   done
2496 IFS=$as_save_IFS
2497
2498 fi
2499
2500   test -d ./--version && rmdir ./--version
2501   if test "${ac_cv_path_mkdir+set}" = set; then
2502     MKDIR_P="$ac_cv_path_mkdir -p"
2503   else
2504     # As a last resort, use the slow shell script.  Don't cache a
2505     # value for MKDIR_P within a source directory, because that will
2506     # break other packages using the cache if that directory is
2507     # removed, or if the value is a relative name.
2508     MKDIR_P="$ac_install_sh -d"
2509   fi
2510 fi
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2512 $as_echo "$MKDIR_P" >&6; }
2513
2514 for ac_prog in gawk mawk nawk awk
2515 do
2516   # Extract the first word of "$ac_prog", so it can be a program name with args.
2517 set dummy $ac_prog; ac_word=$2
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2519 $as_echo_n "checking for $ac_word... " >&6; }
2520 if ${ac_cv_prog_AWK+:} false; then :
2521   $as_echo_n "(cached) " >&6
2522 else
2523   if test -n "$AWK"; then
2524   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2525 else
2526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2527 for as_dir in $PATH
2528 do
2529   IFS=$as_save_IFS
2530   test -z "$as_dir" && as_dir=.
2531     for ac_exec_ext in '' $ac_executable_extensions; do
2532   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2533     ac_cv_prog_AWK="$ac_prog"
2534     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2535     break 2
2536   fi
2537 done
2538   done
2539 IFS=$as_save_IFS
2540
2541 fi
2542 fi
2543 AWK=$ac_cv_prog_AWK
2544 if test -n "$AWK"; then
2545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2546 $as_echo "$AWK" >&6; }
2547 else
2548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2549 $as_echo "no" >&6; }
2550 fi
2551
2552
2553   test -n "$AWK" && break
2554 done
2555
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2557 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2558 set x ${MAKE-make}
2559 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2560 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2561   $as_echo_n "(cached) " >&6
2562 else
2563   cat >conftest.make <<\_ACEOF
2564 SHELL = /bin/sh
2565 all:
2566         @echo '@@@%%%=$(MAKE)=@@@%%%'
2567 _ACEOF
2568 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2569 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2570   *@@@%%%=?*=@@@%%%*)
2571     eval ac_cv_prog_make_${ac_make}_set=yes;;
2572   *)
2573     eval ac_cv_prog_make_${ac_make}_set=no;;
2574 esac
2575 rm -f conftest.make
2576 fi
2577 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2579 $as_echo "yes" >&6; }
2580   SET_MAKE=
2581 else
2582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2583 $as_echo "no" >&6; }
2584   SET_MAKE="MAKE=${MAKE-make}"
2585 fi
2586
2587 rm -rf .tst 2>/dev/null
2588 mkdir .tst 2>/dev/null
2589 if test -d .tst; then
2590   am__leading_dot=.
2591 else
2592   am__leading_dot=_
2593 fi
2594 rmdir .tst 2>/dev/null
2595
2596 # Check whether --enable-silent-rules was given.
2597 if test "${enable_silent_rules+set}" = set; then :
2598   enableval=$enable_silent_rules;
2599 fi
2600
2601 case $enable_silent_rules in # (((
2602   yes) AM_DEFAULT_VERBOSITY=0;;
2603    no) AM_DEFAULT_VERBOSITY=1;;
2604     *) AM_DEFAULT_VERBOSITY=1;;
2605 esac
2606 am_make=${MAKE-make}
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2608 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2609 if ${am_cv_make_support_nested_variables+:} false; then :
2610   $as_echo_n "(cached) " >&6
2611 else
2612   if $as_echo 'TRUE=$(BAR$(V))
2613 BAR0=false
2614 BAR1=true
2615 V=1
2616 am__doit:
2617         @$(TRUE)
2618 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2619   am_cv_make_support_nested_variables=yes
2620 else
2621   am_cv_make_support_nested_variables=no
2622 fi
2623 fi
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2625 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2626 if test $am_cv_make_support_nested_variables = yes; then
2627     AM_V='$(V)'
2628   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2629 else
2630   AM_V=$AM_DEFAULT_VERBOSITY
2631   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2632 fi
2633 AM_BACKSLASH='\'
2634
2635 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2636   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2637   # is not polluted with repeated "-I."
2638   am__isrc=' -I$(srcdir)'
2639   # test to see if srcdir already configured
2640   if test -f $srcdir/config.status; then
2641     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2642   fi
2643 fi
2644
2645 # test whether we have cygpath
2646 if test -z "$CYGPATH_W"; then
2647   if (cygpath --version) >/dev/null 2>/dev/null; then
2648     CYGPATH_W='cygpath -w'
2649   else
2650     CYGPATH_W=echo
2651   fi
2652 fi
2653
2654
2655 # Define the identity of the package.
2656  PACKAGE='exfatprogs'
2657  VERSION='1.1.3'
2658
2659
2660 cat >>confdefs.h <<_ACEOF
2661 #define PACKAGE "$PACKAGE"
2662 _ACEOF
2663
2664
2665 cat >>confdefs.h <<_ACEOF
2666 #define VERSION "$VERSION"
2667 _ACEOF
2668
2669 # Some tools Automake needs.
2670
2671 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2672
2673
2674 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2675
2676
2677 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2678
2679
2680 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2681
2682
2683 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2684
2685 # For better backward compatibility.  To be removed once Automake 1.9.x
2686 # dies out for good.  For more background, see:
2687 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2688 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2689 mkdir_p='$(MKDIR_P)'
2690
2691 # We need awk for the "check" target (and possibly the TAP driver).  The
2692 # system "awk" is bad on some platforms.
2693 # Always define AMTAR for backward compatibility.  Yes, it's still used
2694 # in the wild :-(  We should find a proper way to deprecate it ...
2695 AMTAR='$${TAR-tar}'
2696
2697
2698 # We'll loop over all known methods to create a tar archive until one works.
2699 _am_tools='gnutar  pax cpio none'
2700
2701
2702
2703   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
2704 $as_echo_n "checking how to create a pax tar archive... " >&6; }
2705
2706   # Go ahead even if we have the value already cached.  We do so because we
2707   # need to set the values for the 'am__tar' and 'am__untar' variables.
2708   _am_tools=${am_cv_prog_tar_pax-$_am_tools}
2709
2710   for _am_tool in $_am_tools; do
2711     case $_am_tool in
2712     gnutar)
2713       for _am_tar in tar gnutar gtar; do
2714         { echo "$as_me:$LINENO: $_am_tar --version" >&5
2715    ($_am_tar --version) >&5 2>&5
2716    ac_status=$?
2717    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718    (exit $ac_status); } && break
2719       done
2720       am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
2721       am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
2722       am__untar="$_am_tar -xf -"
2723       ;;
2724     plaintar)
2725       # Must skip GNU tar: if it does not support --format= it doesn't create
2726       # ustar tarball either.
2727       (tar --version) >/dev/null 2>&1 && continue
2728       am__tar='tar chf - "$$tardir"'
2729       am__tar_='tar chf - "$tardir"'
2730       am__untar='tar xf -'
2731       ;;
2732     pax)
2733       am__tar='pax -L -x pax -w "$$tardir"'
2734       am__tar_='pax -L -x pax -w "$tardir"'
2735       am__untar='pax -r'
2736       ;;
2737     cpio)
2738       am__tar='find "$$tardir" -print | cpio -o -H pax -L'
2739       am__tar_='find "$tardir" -print | cpio -o -H pax -L'
2740       am__untar='cpio -i -H pax -d'
2741       ;;
2742     none)
2743       am__tar=false
2744       am__tar_=false
2745       am__untar=false
2746       ;;
2747     esac
2748
2749     # If the value was cached, stop now.  We just wanted to have am__tar
2750     # and am__untar set.
2751     test -n "${am_cv_prog_tar_pax}" && break
2752
2753     # tar/untar a dummy directory, and stop if the command works.
2754     rm -rf conftest.dir
2755     mkdir conftest.dir
2756     echo GrepMe > conftest.dir/file
2757     { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2758    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2759    ac_status=$?
2760    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761    (exit $ac_status); }
2762     rm -rf conftest.dir
2763     if test -s conftest.tar; then
2764       { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2765    ($am__untar <conftest.tar) >&5 2>&5
2766    ac_status=$?
2767    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768    (exit $ac_status); }
2769       { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
2770    (cat conftest.dir/file) >&5 2>&5
2771    ac_status=$?
2772    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773    (exit $ac_status); }
2774       grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2775     fi
2776   done
2777   rm -rf conftest.dir
2778
2779   if ${am_cv_prog_tar_pax+:} false; then :
2780   $as_echo_n "(cached) " >&6
2781 else
2782   am_cv_prog_tar_pax=$_am_tool
2783 fi
2784
2785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
2786 $as_echo "$am_cv_prog_tar_pax" >&6; }
2787
2788
2789
2790
2791
2792
2793 # POSIX will say in a future version that running "rm -f" with no argument
2794 # is OK; and we want to be able to make that assumption in our Makefile
2795 # recipes.  So use an aggressive probe to check that the usage we want is
2796 # actually supported "in the wild" to an acceptable degree.
2797 # See automake bug#10828.
2798 # To make any issue more visible, cause the running configure to be aborted
2799 # by default if the 'rm' program in use doesn't match our expectations; the
2800 # user can still override this though.
2801 if rm -f && rm -fr && rm -rf; then : OK; else
2802   cat >&2 <<'END'
2803 Oops!
2804
2805 Your 'rm' program seems unable to run without file operands specified
2806 on the command line, even when the '-f' option is present.  This is contrary
2807 to the behaviour of most rm programs out there, and not conforming with
2808 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2809
2810 Please tell bug-automake@gnu.org about your system, including the value
2811 of your $PATH and any error possibly output before this message.  This
2812 can help us improve future automake versions.
2813
2814 END
2815   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2816     echo 'Configuration will proceed anyway, since you have set the' >&2
2817     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2818     echo >&2
2819   else
2820     cat >&2 <<'END'
2821 Aborting the configuration process, to ensure you take notice of the issue.
2822
2823 You can download and install GNU coreutils to get an 'rm' implementation
2824 that behaves properly: <https://www.gnu.org/software/coreutils/>.
2825
2826 If you want to complete the configuration process using your problematic
2827 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2828 to "yes", and re-run configure.
2829
2830 END
2831     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2832   fi
2833 fi
2834
2835
2836 ac_ext=c
2837 ac_cpp='$CPP $CPPFLAGS'
2838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2841
2842 ac_ext=c
2843 ac_cpp='$CPP $CPPFLAGS'
2844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2847 if test -n "$ac_tool_prefix"; then
2848   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2849 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2851 $as_echo_n "checking for $ac_word... " >&6; }
2852 if ${ac_cv_prog_CC+:} false; then :
2853   $as_echo_n "(cached) " >&6
2854 else
2855   if test -n "$CC"; then
2856   ac_cv_prog_CC="$CC" # Let the user override the test.
2857 else
2858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2859 for as_dir in $PATH
2860 do
2861   IFS=$as_save_IFS
2862   test -z "$as_dir" && as_dir=.
2863     for ac_exec_ext in '' $ac_executable_extensions; do
2864   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2865     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2866     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2867     break 2
2868   fi
2869 done
2870   done
2871 IFS=$as_save_IFS
2872
2873 fi
2874 fi
2875 CC=$ac_cv_prog_CC
2876 if test -n "$CC"; then
2877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2878 $as_echo "$CC" >&6; }
2879 else
2880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2881 $as_echo "no" >&6; }
2882 fi
2883
2884
2885 fi
2886 if test -z "$ac_cv_prog_CC"; then
2887   ac_ct_CC=$CC
2888   # Extract the first word of "gcc", so it can be a program name with args.
2889 set dummy gcc; ac_word=$2
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2891 $as_echo_n "checking for $ac_word... " >&6; }
2892 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2893   $as_echo_n "(cached) " >&6
2894 else
2895   if test -n "$ac_ct_CC"; then
2896   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2897 else
2898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2899 for as_dir in $PATH
2900 do
2901   IFS=$as_save_IFS
2902   test -z "$as_dir" && as_dir=.
2903     for ac_exec_ext in '' $ac_executable_extensions; do
2904   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2905     ac_cv_prog_ac_ct_CC="gcc"
2906     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2907     break 2
2908   fi
2909 done
2910   done
2911 IFS=$as_save_IFS
2912
2913 fi
2914 fi
2915 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2916 if test -n "$ac_ct_CC"; then
2917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2918 $as_echo "$ac_ct_CC" >&6; }
2919 else
2920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2921 $as_echo "no" >&6; }
2922 fi
2923
2924   if test "x$ac_ct_CC" = x; then
2925     CC=""
2926   else
2927     case $cross_compiling:$ac_tool_warned in
2928 yes:)
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2930 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2931 ac_tool_warned=yes ;;
2932 esac
2933     CC=$ac_ct_CC
2934   fi
2935 else
2936   CC="$ac_cv_prog_CC"
2937 fi
2938
2939 if test -z "$CC"; then
2940           if test -n "$ac_tool_prefix"; then
2941     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2942 set dummy ${ac_tool_prefix}cc; ac_word=$2
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2944 $as_echo_n "checking for $ac_word... " >&6; }
2945 if ${ac_cv_prog_CC+:} false; then :
2946   $as_echo_n "(cached) " >&6
2947 else
2948   if test -n "$CC"; then
2949   ac_cv_prog_CC="$CC" # Let the user override the test.
2950 else
2951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952 for as_dir in $PATH
2953 do
2954   IFS=$as_save_IFS
2955   test -z "$as_dir" && as_dir=.
2956     for ac_exec_ext in '' $ac_executable_extensions; do
2957   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2958     ac_cv_prog_CC="${ac_tool_prefix}cc"
2959     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2960     break 2
2961   fi
2962 done
2963   done
2964 IFS=$as_save_IFS
2965
2966 fi
2967 fi
2968 CC=$ac_cv_prog_CC
2969 if test -n "$CC"; then
2970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2971 $as_echo "$CC" >&6; }
2972 else
2973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2974 $as_echo "no" >&6; }
2975 fi
2976
2977
2978   fi
2979 fi
2980 if test -z "$CC"; then
2981   # Extract the first word of "cc", so it can be a program name with args.
2982 set dummy cc; ac_word=$2
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2984 $as_echo_n "checking for $ac_word... " >&6; }
2985 if ${ac_cv_prog_CC+:} false; then :
2986   $as_echo_n "(cached) " >&6
2987 else
2988   if test -n "$CC"; then
2989   ac_cv_prog_CC="$CC" # Let the user override the test.
2990 else
2991   ac_prog_rejected=no
2992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993 for as_dir in $PATH
2994 do
2995   IFS=$as_save_IFS
2996   test -z "$as_dir" && as_dir=.
2997     for ac_exec_ext in '' $ac_executable_extensions; do
2998   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2999     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3000        ac_prog_rejected=yes
3001        continue
3002      fi
3003     ac_cv_prog_CC="cc"
3004     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3005     break 2
3006   fi
3007 done
3008   done
3009 IFS=$as_save_IFS
3010
3011 if test $ac_prog_rejected = yes; then
3012   # We found a bogon in the path, so make sure we never use it.
3013   set dummy $ac_cv_prog_CC
3014   shift
3015   if test $# != 0; then
3016     # We chose a different compiler from the bogus one.
3017     # However, it has the same basename, so the bogon will be chosen
3018     # first if we set CC to just the basename; use the full file name.
3019     shift
3020     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3021   fi
3022 fi
3023 fi
3024 fi
3025 CC=$ac_cv_prog_CC
3026 if test -n "$CC"; then
3027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3028 $as_echo "$CC" >&6; }
3029 else
3030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3031 $as_echo "no" >&6; }
3032 fi
3033
3034
3035 fi
3036 if test -z "$CC"; then
3037   if test -n "$ac_tool_prefix"; then
3038   for ac_prog in cl.exe
3039   do
3040     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3041 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3043 $as_echo_n "checking for $ac_word... " >&6; }
3044 if ${ac_cv_prog_CC+:} false; then :
3045   $as_echo_n "(cached) " >&6
3046 else
3047   if test -n "$CC"; then
3048   ac_cv_prog_CC="$CC" # Let the user override the test.
3049 else
3050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3051 for as_dir in $PATH
3052 do
3053   IFS=$as_save_IFS
3054   test -z "$as_dir" && as_dir=.
3055     for ac_exec_ext in '' $ac_executable_extensions; do
3056   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3057     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3058     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3059     break 2
3060   fi
3061 done
3062   done
3063 IFS=$as_save_IFS
3064
3065 fi
3066 fi
3067 CC=$ac_cv_prog_CC
3068 if test -n "$CC"; then
3069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3070 $as_echo "$CC" >&6; }
3071 else
3072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3073 $as_echo "no" >&6; }
3074 fi
3075
3076
3077     test -n "$CC" && break
3078   done
3079 fi
3080 if test -z "$CC"; then
3081   ac_ct_CC=$CC
3082   for ac_prog in cl.exe
3083 do
3084   # Extract the first word of "$ac_prog", so it can be a program name with args.
3085 set dummy $ac_prog; ac_word=$2
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3087 $as_echo_n "checking for $ac_word... " >&6; }
3088 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3089   $as_echo_n "(cached) " >&6
3090 else
3091   if test -n "$ac_ct_CC"; then
3092   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3093 else
3094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3095 for as_dir in $PATH
3096 do
3097   IFS=$as_save_IFS
3098   test -z "$as_dir" && as_dir=.
3099     for ac_exec_ext in '' $ac_executable_extensions; do
3100   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3101     ac_cv_prog_ac_ct_CC="$ac_prog"
3102     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3103     break 2
3104   fi
3105 done
3106   done
3107 IFS=$as_save_IFS
3108
3109 fi
3110 fi
3111 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3112 if test -n "$ac_ct_CC"; then
3113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3114 $as_echo "$ac_ct_CC" >&6; }
3115 else
3116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3117 $as_echo "no" >&6; }
3118 fi
3119
3120
3121   test -n "$ac_ct_CC" && break
3122 done
3123
3124   if test "x$ac_ct_CC" = x; then
3125     CC=""
3126   else
3127     case $cross_compiling:$ac_tool_warned in
3128 yes:)
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3130 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3131 ac_tool_warned=yes ;;
3132 esac
3133     CC=$ac_ct_CC
3134   fi
3135 fi
3136
3137 fi
3138
3139
3140 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3141 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3142 as_fn_error $? "no acceptable C compiler found in \$PATH
3143 See \`config.log' for more details" "$LINENO" 5; }
3144
3145 # Provide some information about the compiler.
3146 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3147 set X $ac_compile
3148 ac_compiler=$2
3149 for ac_option in --version -v -V -qversion; do
3150   { { ac_try="$ac_compiler $ac_option >&5"
3151 case "(($ac_try" in
3152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153   *) ac_try_echo=$ac_try;;
3154 esac
3155 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3156 $as_echo "$ac_try_echo"; } >&5
3157   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3158   ac_status=$?
3159   if test -s conftest.err; then
3160     sed '10a\
3161 ... rest of stderr output deleted ...
3162          10q' conftest.err >conftest.er1
3163     cat conftest.er1 >&5
3164   fi
3165   rm -f conftest.er1 conftest.err
3166   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3167   test $ac_status = 0; }
3168 done
3169
3170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3171 /* end confdefs.h.  */
3172
3173 int
3174 main ()
3175 {
3176
3177   ;
3178   return 0;
3179 }
3180 _ACEOF
3181 ac_clean_files_save=$ac_clean_files
3182 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3183 # Try to create an executable without -o first, disregard a.out.
3184 # It will help us diagnose broken compilers, and finding out an intuition
3185 # of exeext.
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3187 $as_echo_n "checking whether the C compiler works... " >&6; }
3188 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3189
3190 # The possible output files:
3191 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3192
3193 ac_rmfiles=
3194 for ac_file in $ac_files
3195 do
3196   case $ac_file in
3197     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3198     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3199   esac
3200 done
3201 rm -f $ac_rmfiles
3202
3203 if { { ac_try="$ac_link_default"
3204 case "(($ac_try" in
3205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206   *) ac_try_echo=$ac_try;;
3207 esac
3208 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3209 $as_echo "$ac_try_echo"; } >&5
3210   (eval "$ac_link_default") 2>&5
3211   ac_status=$?
3212   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3213   test $ac_status = 0; }; then :
3214   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3215 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3216 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3217 # so that the user can short-circuit this test for compilers unknown to
3218 # Autoconf.
3219 for ac_file in $ac_files ''
3220 do
3221   test -f "$ac_file" || continue
3222   case $ac_file in
3223     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3224         ;;
3225     [ab].out )
3226         # We found the default executable, but exeext='' is most
3227         # certainly right.
3228         break;;
3229     *.* )
3230         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3231         then :; else
3232            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3233         fi
3234         # We set ac_cv_exeext here because the later test for it is not
3235         # safe: cross compilers may not add the suffix if given an `-o'
3236         # argument, so we may need to know it at that point already.
3237         # Even if this section looks crufty: it has the advantage of
3238         # actually working.
3239         break;;
3240     * )
3241         break;;
3242   esac
3243 done
3244 test "$ac_cv_exeext" = no && ac_cv_exeext=
3245
3246 else
3247   ac_file=''
3248 fi
3249 if test -z "$ac_file"; then :
3250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3251 $as_echo "no" >&6; }
3252 $as_echo "$as_me: failed program was:" >&5
3253 sed 's/^/| /' conftest.$ac_ext >&5
3254
3255 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3256 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3257 as_fn_error 77 "C compiler cannot create executables
3258 See \`config.log' for more details" "$LINENO" 5; }
3259 else
3260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3261 $as_echo "yes" >&6; }
3262 fi
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3264 $as_echo_n "checking for C compiler default output file name... " >&6; }
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3266 $as_echo "$ac_file" >&6; }
3267 ac_exeext=$ac_cv_exeext
3268
3269 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3270 ac_clean_files=$ac_clean_files_save
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3272 $as_echo_n "checking for suffix of executables... " >&6; }
3273 if { { ac_try="$ac_link"
3274 case "(($ac_try" in
3275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3276   *) ac_try_echo=$ac_try;;
3277 esac
3278 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3279 $as_echo "$ac_try_echo"; } >&5
3280   (eval "$ac_link") 2>&5
3281   ac_status=$?
3282   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3283   test $ac_status = 0; }; then :
3284   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3285 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3286 # work properly (i.e., refer to `conftest.exe'), while it won't with
3287 # `rm'.
3288 for ac_file in conftest.exe conftest conftest.*; do
3289   test -f "$ac_file" || continue
3290   case $ac_file in
3291     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3292     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3293           break;;
3294     * ) break;;
3295   esac
3296 done
3297 else
3298   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3299 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3300 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3301 See \`config.log' for more details" "$LINENO" 5; }
3302 fi
3303 rm -f conftest conftest$ac_cv_exeext
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3305 $as_echo "$ac_cv_exeext" >&6; }
3306
3307 rm -f conftest.$ac_ext
3308 EXEEXT=$ac_cv_exeext
3309 ac_exeext=$EXEEXT
3310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3311 /* end confdefs.h.  */
3312 #include <stdio.h>
3313 int
3314 main ()
3315 {
3316 FILE *f = fopen ("conftest.out", "w");
3317  return ferror (f) || fclose (f) != 0;
3318
3319   ;
3320   return 0;
3321 }
3322 _ACEOF
3323 ac_clean_files="$ac_clean_files conftest.out"
3324 # Check that the compiler produces executables we can run.  If not, either
3325 # the compiler is broken, or we cross compile.
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3327 $as_echo_n "checking whether we are cross compiling... " >&6; }
3328 if test "$cross_compiling" != yes; then
3329   { { ac_try="$ac_link"
3330 case "(($ac_try" in
3331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332   *) ac_try_echo=$ac_try;;
3333 esac
3334 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3335 $as_echo "$ac_try_echo"; } >&5
3336   (eval "$ac_link") 2>&5
3337   ac_status=$?
3338   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3339   test $ac_status = 0; }
3340   if { ac_try='./conftest$ac_cv_exeext'
3341   { { case "(($ac_try" in
3342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343   *) ac_try_echo=$ac_try;;
3344 esac
3345 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3346 $as_echo "$ac_try_echo"; } >&5
3347   (eval "$ac_try") 2>&5
3348   ac_status=$?
3349   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3350   test $ac_status = 0; }; }; then
3351     cross_compiling=no
3352   else
3353     if test "$cross_compiling" = maybe; then
3354         cross_compiling=yes
3355     else
3356         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3357 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3358 as_fn_error $? "cannot run C compiled programs.
3359 If you meant to cross compile, use \`--host'.
3360 See \`config.log' for more details" "$LINENO" 5; }
3361     fi
3362   fi
3363 fi
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3365 $as_echo "$cross_compiling" >&6; }
3366
3367 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3368 ac_clean_files=$ac_clean_files_save
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3370 $as_echo_n "checking for suffix of object files... " >&6; }
3371 if ${ac_cv_objext+:} false; then :
3372   $as_echo_n "(cached) " >&6
3373 else
3374   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3375 /* end confdefs.h.  */
3376
3377 int
3378 main ()
3379 {
3380
3381   ;
3382   return 0;
3383 }
3384 _ACEOF
3385 rm -f conftest.o conftest.obj
3386 if { { ac_try="$ac_compile"
3387 case "(($ac_try" in
3388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3389   *) ac_try_echo=$ac_try;;
3390 esac
3391 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3392 $as_echo "$ac_try_echo"; } >&5
3393   (eval "$ac_compile") 2>&5
3394   ac_status=$?
3395   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3396   test $ac_status = 0; }; then :
3397   for ac_file in conftest.o conftest.obj conftest.*; do
3398   test -f "$ac_file" || continue;
3399   case $ac_file in
3400     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3401     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3402        break;;
3403   esac
3404 done
3405 else
3406   $as_echo "$as_me: failed program was:" >&5
3407 sed 's/^/| /' conftest.$ac_ext >&5
3408
3409 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3410 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3411 as_fn_error $? "cannot compute suffix of object files: cannot compile
3412 See \`config.log' for more details" "$LINENO" 5; }
3413 fi
3414 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3415 fi
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3417 $as_echo "$ac_cv_objext" >&6; }
3418 OBJEXT=$ac_cv_objext
3419 ac_objext=$OBJEXT
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3421 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3422 if ${ac_cv_c_compiler_gnu+:} false; then :
3423   $as_echo_n "(cached) " >&6
3424 else
3425   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3426 /* end confdefs.h.  */
3427
3428 int
3429 main ()
3430 {
3431 #ifndef __GNUC__
3432        choke me
3433 #endif
3434
3435   ;
3436   return 0;
3437 }
3438 _ACEOF
3439 if ac_fn_c_try_compile "$LINENO"; then :
3440   ac_compiler_gnu=yes
3441 else
3442   ac_compiler_gnu=no
3443 fi
3444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3445 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3446
3447 fi
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3449 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3450 if test $ac_compiler_gnu = yes; then
3451   GCC=yes
3452 else
3453   GCC=
3454 fi
3455 ac_test_CFLAGS=${CFLAGS+set}
3456 ac_save_CFLAGS=$CFLAGS
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3458 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3459 if ${ac_cv_prog_cc_g+:} false; then :
3460   $as_echo_n "(cached) " >&6
3461 else
3462   ac_save_c_werror_flag=$ac_c_werror_flag
3463    ac_c_werror_flag=yes
3464    ac_cv_prog_cc_g=no
3465    CFLAGS="-g"
3466    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3467 /* end confdefs.h.  */
3468
3469 int
3470 main ()
3471 {
3472
3473   ;
3474   return 0;
3475 }
3476 _ACEOF
3477 if ac_fn_c_try_compile "$LINENO"; then :
3478   ac_cv_prog_cc_g=yes
3479 else
3480   CFLAGS=""
3481       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3482 /* end confdefs.h.  */
3483
3484 int
3485 main ()
3486 {
3487
3488   ;
3489   return 0;
3490 }
3491 _ACEOF
3492 if ac_fn_c_try_compile "$LINENO"; then :
3493
3494 else
3495   ac_c_werror_flag=$ac_save_c_werror_flag
3496          CFLAGS="-g"
3497          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3498 /* end confdefs.h.  */
3499
3500 int
3501 main ()
3502 {
3503
3504   ;
3505   return 0;
3506 }
3507 _ACEOF
3508 if ac_fn_c_try_compile "$LINENO"; then :
3509   ac_cv_prog_cc_g=yes
3510 fi
3511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3512 fi
3513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3514 fi
3515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3516    ac_c_werror_flag=$ac_save_c_werror_flag
3517 fi
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3519 $as_echo "$ac_cv_prog_cc_g" >&6; }
3520 if test "$ac_test_CFLAGS" = set; then
3521   CFLAGS=$ac_save_CFLAGS
3522 elif test $ac_cv_prog_cc_g = yes; then
3523   if test "$GCC" = yes; then
3524     CFLAGS="-g -O2"
3525   else
3526     CFLAGS="-g"
3527   fi
3528 else
3529   if test "$GCC" = yes; then
3530     CFLAGS="-O2"
3531   else
3532     CFLAGS=
3533   fi
3534 fi
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3536 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3537 if ${ac_cv_prog_cc_c89+:} false; then :
3538   $as_echo_n "(cached) " >&6
3539 else
3540   ac_cv_prog_cc_c89=no
3541 ac_save_CC=$CC
3542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3543 /* end confdefs.h.  */
3544 #include <stdarg.h>
3545 #include <stdio.h>
3546 struct stat;
3547 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3548 struct buf { int x; };
3549 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3550 static char *e (p, i)
3551      char **p;
3552      int i;
3553 {
3554   return p[i];
3555 }
3556 static char *f (char * (*g) (char **, int), char **p, ...)
3557 {
3558   char *s;
3559   va_list v;
3560   va_start (v,p);
3561   s = g (p, va_arg (v,int));
3562   va_end (v);
3563   return s;
3564 }
3565
3566 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3567    function prototypes and stuff, but not '\xHH' hex character constants.
3568    These don't provoke an error unfortunately, instead are silently treated
3569    as 'x'.  The following induces an error, until -std is added to get
3570    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3571    array size at least.  It's necessary to write '\x00'==0 to get something
3572    that's true only with -std.  */
3573 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3574
3575 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3576    inside strings and character constants.  */
3577 #define FOO(x) 'x'
3578 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3579
3580 int test (int i, double x);
3581 struct s1 {int (*f) (int a);};
3582 struct s2 {int (*f) (double a);};
3583 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3584 int argc;
3585 char **argv;
3586 int
3587 main ()
3588 {
3589 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3590   ;
3591   return 0;
3592 }
3593 _ACEOF
3594 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3595         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3596 do
3597   CC="$ac_save_CC $ac_arg"
3598   if ac_fn_c_try_compile "$LINENO"; then :
3599   ac_cv_prog_cc_c89=$ac_arg
3600 fi
3601 rm -f core conftest.err conftest.$ac_objext
3602   test "x$ac_cv_prog_cc_c89" != "xno" && break
3603 done
3604 rm -f conftest.$ac_ext
3605 CC=$ac_save_CC
3606
3607 fi
3608 # AC_CACHE_VAL
3609 case "x$ac_cv_prog_cc_c89" in
3610   x)
3611     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3612 $as_echo "none needed" >&6; } ;;
3613   xno)
3614     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3615 $as_echo "unsupported" >&6; } ;;
3616   *)
3617     CC="$CC $ac_cv_prog_cc_c89"
3618     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3619 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3620 esac
3621 if test "x$ac_cv_prog_cc_c89" != xno; then :
3622
3623 fi
3624
3625 ac_ext=c
3626 ac_cpp='$CPP $CPPFLAGS'
3627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3630
3631 ac_ext=c
3632 ac_cpp='$CPP $CPPFLAGS'
3633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3637 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3638 if ${am_cv_prog_cc_c_o+:} false; then :
3639   $as_echo_n "(cached) " >&6
3640 else
3641   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3642 /* end confdefs.h.  */
3643
3644 int
3645 main ()
3646 {
3647
3648   ;
3649   return 0;
3650 }
3651 _ACEOF
3652   # Make sure it works both with $CC and with simple cc.
3653   # Following AC_PROG_CC_C_O, we do the test twice because some
3654   # compilers refuse to overwrite an existing .o file with -o,
3655   # though they will create one.
3656   am_cv_prog_cc_c_o=yes
3657   for am_i in 1 2; do
3658     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3659    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3660    ac_status=$?
3661    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662    (exit $ac_status); } \
3663          && test -f conftest2.$ac_objext; then
3664       : OK
3665     else
3666       am_cv_prog_cc_c_o=no
3667       break
3668     fi
3669   done
3670   rm -f core conftest*
3671   unset am_i
3672 fi
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3674 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3675 if test "$am_cv_prog_cc_c_o" != yes; then
3676    # Losing compiler, so override with the script.
3677    # FIXME: It is wrong to rewrite CC.
3678    # But if we don't then we get into trouble of one sort or another.
3679    # A longer-term fix would be to have automake use am__CC in this case,
3680    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3681    CC="$am_aux_dir/compile $CC"
3682 fi
3683 ac_ext=c
3684 ac_cpp='$CPP $CPPFLAGS'
3685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3688
3689 DEPDIR="${am__leading_dot}deps"
3690
3691 ac_config_commands="$ac_config_commands depfiles"
3692
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3694 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3695 cat > confinc.mk << 'END'
3696 am__doit:
3697         @echo this is the am__doit target >confinc.out
3698 .PHONY: am__doit
3699 END
3700 am__include="#"
3701 am__quote=
3702 # BSD make does it like this.
3703 echo '.include "confinc.mk" # ignored' > confmf.BSD
3704 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3705 echo 'include confinc.mk # ignored' > confmf.GNU
3706 _am_result=no
3707 for s in GNU BSD; do
3708   { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3709    (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3710    ac_status=$?
3711    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712    (exit $ac_status); }
3713   case $?:`cat confinc.out 2>/dev/null` in #(
3714   '0:this is the am__doit target') :
3715     case $s in #(
3716   BSD) :
3717     am__include='.include' am__quote='"' ;; #(
3718   *) :
3719     am__include='include' am__quote='' ;;
3720 esac ;; #(
3721   *) :
3722      ;;
3723 esac
3724   if test "$am__include" != "#"; then
3725     _am_result="yes ($s style)"
3726     break
3727   fi
3728 done
3729 rm -f confinc.* confmf.*
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3731 $as_echo "${_am_result}" >&6; }
3732
3733 # Check whether --enable-dependency-tracking was given.
3734 if test "${enable_dependency_tracking+set}" = set; then :
3735   enableval=$enable_dependency_tracking;
3736 fi
3737
3738 if test "x$enable_dependency_tracking" != xno; then
3739   am_depcomp="$ac_aux_dir/depcomp"
3740   AMDEPBACKSLASH='\'
3741   am__nodep='_no'
3742 fi
3743  if test "x$enable_dependency_tracking" != xno; then
3744   AMDEP_TRUE=
3745   AMDEP_FALSE='#'
3746 else
3747   AMDEP_TRUE='#'
3748   AMDEP_FALSE=
3749 fi
3750
3751
3752
3753 depcc="$CC"   am_compiler_list=
3754
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3756 $as_echo_n "checking dependency style of $depcc... " >&6; }
3757 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3758   $as_echo_n "(cached) " >&6
3759 else
3760   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3761   # We make a subdir and do the tests there.  Otherwise we can end up
3762   # making bogus files that we don't know about and never remove.  For
3763   # instance it was reported that on HP-UX the gcc test will end up
3764   # making a dummy file named 'D' -- because '-MD' means "put the output
3765   # in D".
3766   rm -rf conftest.dir
3767   mkdir conftest.dir
3768   # Copy depcomp to subdir because otherwise we won't find it if we're
3769   # using a relative directory.
3770   cp "$am_depcomp" conftest.dir
3771   cd conftest.dir
3772   # We will build objects and dependencies in a subdirectory because
3773   # it helps to detect inapplicable dependency modes.  For instance
3774   # both Tru64's cc and ICC support -MD to output dependencies as a
3775   # side effect of compilation, but ICC will put the dependencies in
3776   # the current directory while Tru64 will put them in the object
3777   # directory.
3778   mkdir sub
3779
3780   am_cv_CC_dependencies_compiler_type=none
3781   if test "$am_compiler_list" = ""; then
3782      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3783   fi
3784   am__universal=false
3785   case " $depcc " in #(
3786      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3787      esac
3788
3789   for depmode in $am_compiler_list; do
3790     # Setup a source with many dependencies, because some compilers
3791     # like to wrap large dependency lists on column 80 (with \), and
3792     # we should not choose a depcomp mode which is confused by this.
3793     #
3794     # We need to recreate these files for each test, as the compiler may
3795     # overwrite some of them when testing with obscure command lines.
3796     # This happens at least with the AIX C compiler.
3797     : > sub/conftest.c
3798     for i in 1 2 3 4 5 6; do
3799       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3800       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3801       # Solaris 10 /bin/sh.
3802       echo '/* dummy */' > sub/conftst$i.h
3803     done
3804     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3805
3806     # We check with '-c' and '-o' for the sake of the "dashmstdout"
3807     # mode.  It turns out that the SunPro C++ compiler does not properly
3808     # handle '-M -o', and we need to detect this.  Also, some Intel
3809     # versions had trouble with output in subdirs.
3810     am__obj=sub/conftest.${OBJEXT-o}
3811     am__minus_obj="-o $am__obj"
3812     case $depmode in
3813     gcc)
3814       # This depmode causes a compiler race in universal mode.
3815       test "$am__universal" = false || continue
3816       ;;
3817     nosideeffect)
3818       # After this tag, mechanisms are not by side-effect, so they'll
3819       # only be used when explicitly requested.
3820       if test "x$enable_dependency_tracking" = xyes; then
3821         continue
3822       else
3823         break
3824       fi
3825       ;;
3826     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3827       # This compiler won't grok '-c -o', but also, the minuso test has
3828       # not run yet.  These depmodes are late enough in the game, and
3829       # so weak that their functioning should not be impacted.
3830       am__obj=conftest.${OBJEXT-o}
3831       am__minus_obj=
3832       ;;
3833     none) break ;;
3834     esac
3835     if depmode=$depmode \
3836        source=sub/conftest.c object=$am__obj \
3837        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3838        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3839          >/dev/null 2>conftest.err &&
3840        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3841        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3842        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3843        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3844       # icc doesn't choke on unknown options, it will just issue warnings
3845       # or remarks (even with -Werror).  So we grep stderr for any message
3846       # that says an option was ignored or not supported.
3847       # When given -MP, icc 7.0 and 7.1 complain thusly:
3848       #   icc: Command line warning: ignoring option '-M'; no argument required
3849       # The diagnosis changed in icc 8.0:
3850       #   icc: Command line remark: option '-MP' not supported
3851       if (grep 'ignoring option' conftest.err ||
3852           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3853         am_cv_CC_dependencies_compiler_type=$depmode
3854         break
3855       fi
3856     fi
3857   done
3858
3859   cd ..
3860   rm -rf conftest.dir
3861 else
3862   am_cv_CC_dependencies_compiler_type=none
3863 fi
3864
3865 fi
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3867 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3868 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3869
3870  if
3871   test "x$enable_dependency_tracking" != xno \
3872   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3873   am__fastdepCC_TRUE=
3874   am__fastdepCC_FALSE='#'
3875 else
3876   am__fastdepCC_TRUE='#'
3877   am__fastdepCC_FALSE=
3878 fi
3879
3880
3881    case $ac_cv_prog_cc_stdc in #(
3882   no) :
3883     ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3884   *) :
3885     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3886 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3887 if ${ac_cv_prog_cc_c99+:} false; then :
3888   $as_echo_n "(cached) " >&6
3889 else
3890   ac_cv_prog_cc_c99=no
3891 ac_save_CC=$CC
3892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3893 /* end confdefs.h.  */
3894 #include <stdarg.h>
3895 #include <stdbool.h>
3896 #include <stdlib.h>
3897 #include <wchar.h>
3898 #include <stdio.h>
3899
3900 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
3901 #define debug(...) fprintf (stderr, __VA_ARGS__)
3902 #define showlist(...) puts (#__VA_ARGS__)
3903 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3904 static void
3905 test_varargs_macros (void)
3906 {
3907   int x = 1234;
3908   int y = 5678;
3909   debug ("Flag");
3910   debug ("X = %d\n", x);
3911   showlist (The first, second, and third items.);
3912   report (x>y, "x is %d but y is %d", x, y);
3913 }
3914
3915 // Check long long types.
3916 #define BIG64 18446744073709551615ull
3917 #define BIG32 4294967295ul
3918 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3919 #if !BIG_OK
3920   your preprocessor is broken;
3921 #endif
3922 #if BIG_OK
3923 #else
3924   your preprocessor is broken;
3925 #endif
3926 static long long int bignum = -9223372036854775807LL;
3927 static unsigned long long int ubignum = BIG64;
3928
3929 struct incomplete_array
3930 {
3931   int datasize;
3932   double data[];
3933 };
3934
3935 struct named_init {
3936   int number;
3937   const wchar_t *name;
3938   double average;
3939 };
3940
3941 typedef const char *ccp;
3942
3943 static inline int
3944 test_restrict (ccp restrict text)
3945 {
3946   // See if C++-style comments work.
3947   // Iterate through items via the restricted pointer.
3948   // Also check for declarations in for loops.
3949   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3950     continue;
3951   return 0;
3952 }
3953
3954 // Check varargs and va_copy.
3955 static void
3956 test_varargs (const char *format, ...)
3957 {
3958   va_list args;
3959   va_start (args, format);
3960   va_list args_copy;
3961   va_copy (args_copy, args);
3962
3963   const char *str;
3964   int number;
3965   float fnumber;
3966
3967   while (*format)
3968     {
3969       switch (*format++)
3970         {
3971         case 's': // string
3972           str = va_arg (args_copy, const char *);
3973           break;
3974         case 'd': // int
3975           number = va_arg (args_copy, int);
3976           break;
3977         case 'f': // float
3978           fnumber = va_arg (args_copy, double);
3979           break;
3980         default:
3981           break;
3982         }
3983     }
3984   va_end (args_copy);
3985   va_end (args);
3986 }
3987
3988 int
3989 main ()
3990 {
3991
3992   // Check bool.
3993   _Bool success = false;
3994
3995   // Check restrict.
3996   if (test_restrict ("String literal") == 0)
3997     success = true;
3998   char *restrict newvar = "Another string";
3999
4000   // Check varargs.
4001   test_varargs ("s, d' f .", "string", 65, 34.234);
4002   test_varargs_macros ();
4003
4004   // Check flexible array members.
4005   struct incomplete_array *ia =
4006     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4007   ia->datasize = 10;
4008   for (int i = 0; i < ia->datasize; ++i)
4009     ia->data[i] = i * 1.234;
4010
4011   // Check named initializers.
4012   struct named_init ni = {
4013     .number = 34,
4014     .name = L"Test wide string",
4015     .average = 543.34343,
4016   };
4017
4018   ni.number = 58;
4019
4020   int dynamic_array[ni.number];
4021   dynamic_array[ni.number - 1] = 543;
4022
4023   // work around unused variable warnings
4024   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4025           || dynamic_array[ni.number - 1] != 543);
4026
4027   ;
4028   return 0;
4029 }
4030 _ACEOF
4031 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4032 do
4033   CC="$ac_save_CC $ac_arg"
4034   if ac_fn_c_try_compile "$LINENO"; then :
4035   ac_cv_prog_cc_c99=$ac_arg
4036 fi
4037 rm -f core conftest.err conftest.$ac_objext
4038   test "x$ac_cv_prog_cc_c99" != "xno" && break
4039 done
4040 rm -f conftest.$ac_ext
4041 CC=$ac_save_CC
4042
4043 fi
4044 # AC_CACHE_VAL
4045 case "x$ac_cv_prog_cc_c99" in
4046   x)
4047     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4048 $as_echo "none needed" >&6; } ;;
4049   xno)
4050     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4051 $as_echo "unsupported" >&6; } ;;
4052   *)
4053     CC="$CC $ac_cv_prog_cc_c99"
4054     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4055 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4056 esac
4057 if test "x$ac_cv_prog_cc_c99" != xno; then :
4058   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4059 else
4060   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4061 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4062 if ${ac_cv_prog_cc_c89+:} false; then :
4063   $as_echo_n "(cached) " >&6
4064 else
4065   ac_cv_prog_cc_c89=no
4066 ac_save_CC=$CC
4067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4068 /* end confdefs.h.  */
4069 #include <stdarg.h>
4070 #include <stdio.h>
4071 struct stat;
4072 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4073 struct buf { int x; };
4074 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4075 static char *e (p, i)
4076      char **p;
4077      int i;
4078 {
4079   return p[i];
4080 }
4081 static char *f (char * (*g) (char **, int), char **p, ...)
4082 {
4083   char *s;
4084   va_list v;
4085   va_start (v,p);
4086   s = g (p, va_arg (v,int));
4087   va_end (v);
4088   return s;
4089 }
4090
4091 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4092    function prototypes and stuff, but not '\xHH' hex character constants.
4093    These don't provoke an error unfortunately, instead are silently treated
4094    as 'x'.  The following induces an error, until -std is added to get
4095    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4096    array size at least.  It's necessary to write '\x00'==0 to get something
4097    that's true only with -std.  */
4098 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4099
4100 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4101    inside strings and character constants.  */
4102 #define FOO(x) 'x'
4103 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4104
4105 int test (int i, double x);
4106 struct s1 {int (*f) (int a);};
4107 struct s2 {int (*f) (double a);};
4108 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4109 int argc;
4110 char **argv;
4111 int
4112 main ()
4113 {
4114 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4115   ;
4116   return 0;
4117 }
4118 _ACEOF
4119 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4120         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4121 do
4122   CC="$ac_save_CC $ac_arg"
4123   if ac_fn_c_try_compile "$LINENO"; then :
4124   ac_cv_prog_cc_c89=$ac_arg
4125 fi
4126 rm -f core conftest.err conftest.$ac_objext
4127   test "x$ac_cv_prog_cc_c89" != "xno" && break
4128 done
4129 rm -f conftest.$ac_ext
4130 CC=$ac_save_CC
4131
4132 fi
4133 # AC_CACHE_VAL
4134 case "x$ac_cv_prog_cc_c89" in
4135   x)
4136     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4137 $as_echo "none needed" >&6; } ;;
4138   xno)
4139     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4140 $as_echo "unsupported" >&6; } ;;
4141   *)
4142     CC="$CC $ac_cv_prog_cc_c89"
4143     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4144 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4145 esac
4146 if test "x$ac_cv_prog_cc_c89" != xno; then :
4147   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4148 else
4149   ac_cv_prog_cc_stdc=no
4150 fi
4151
4152 fi
4153  ;;
4154 esac
4155   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4156 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4157   if ${ac_cv_prog_cc_stdc+:} false; then :
4158   $as_echo_n "(cached) " >&6
4159 fi
4160
4161   case $ac_cv_prog_cc_stdc in #(
4162   no) :
4163     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4164 $as_echo "unsupported" >&6; } ;; #(
4165   '') :
4166     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4167 $as_echo "none needed" >&6; } ;; #(
4168   *) :
4169     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4170 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4171 esac
4172
4173 # Check whether --enable-silent-rules was given.
4174 if test "${enable_silent_rules+set}" = set; then :
4175   enableval=$enable_silent_rules;
4176 fi
4177
4178 case $enable_silent_rules in # (((
4179   yes) AM_DEFAULT_VERBOSITY=0;;
4180    no) AM_DEFAULT_VERBOSITY=1;;
4181     *) AM_DEFAULT_VERBOSITY=0;;
4182 esac
4183 am_make=${MAKE-make}
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4185 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4186 if ${am_cv_make_support_nested_variables+:} false; then :
4187   $as_echo_n "(cached) " >&6
4188 else
4189   if $as_echo 'TRUE=$(BAR$(V))
4190 BAR0=false
4191 BAR1=true
4192 V=1
4193 am__doit:
4194         @$(TRUE)
4195 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4196   am_cv_make_support_nested_variables=yes
4197 else
4198   am_cv_make_support_nested_variables=no
4199 fi
4200 fi
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4202 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4203 if test $am_cv_make_support_nested_variables = yes; then
4204     AM_V='$(V)'
4205   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4206 else
4207   AM_V=$AM_DEFAULT_VERBOSITY
4208   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4209 fi
4210 AM_BACKSLASH='\'
4211
4212 case `pwd` in
4213   *\ * | *\     *)
4214     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4215 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4216 esac
4217
4218
4219
4220 macro_version='2.4.6'
4221 macro_revision='2.4.6'
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235 ltmain=$ac_aux_dir/ltmain.sh
4236
4237 # Make sure we can run config.sub.
4238 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4239   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4240
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4242 $as_echo_n "checking build system type... " >&6; }
4243 if ${ac_cv_build+:} false; then :
4244   $as_echo_n "(cached) " >&6
4245 else
4246   ac_build_alias=$build_alias
4247 test "x$ac_build_alias" = x &&
4248   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4249 test "x$ac_build_alias" = x &&
4250   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4251 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4252   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4253
4254 fi
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4256 $as_echo "$ac_cv_build" >&6; }
4257 case $ac_cv_build in
4258 *-*-*) ;;
4259 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4260 esac
4261 build=$ac_cv_build
4262 ac_save_IFS=$IFS; IFS='-'
4263 set x $ac_cv_build
4264 shift
4265 build_cpu=$1
4266 build_vendor=$2
4267 shift; shift
4268 # Remember, the first character of IFS is used to create $*,
4269 # except with old shells:
4270 build_os=$*
4271 IFS=$ac_save_IFS
4272 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4273
4274
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4276 $as_echo_n "checking host system type... " >&6; }
4277 if ${ac_cv_host+:} false; then :
4278   $as_echo_n "(cached) " >&6
4279 else
4280   if test "x$host_alias" = x; then
4281   ac_cv_host=$ac_cv_build
4282 else
4283   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4284     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4285 fi
4286
4287 fi
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4289 $as_echo "$ac_cv_host" >&6; }
4290 case $ac_cv_host in
4291 *-*-*) ;;
4292 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4293 esac
4294 host=$ac_cv_host
4295 ac_save_IFS=$IFS; IFS='-'
4296 set x $ac_cv_host
4297 shift
4298 host_cpu=$1
4299 host_vendor=$2
4300 shift; shift
4301 # Remember, the first character of IFS is used to create $*,
4302 # except with old shells:
4303 host_os=$*
4304 IFS=$ac_save_IFS
4305 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4306
4307
4308 # Backslashify metacharacters that are still active within
4309 # double-quoted strings.
4310 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4311
4312 # Same as above, but do not quote variable references.
4313 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4314
4315 # Sed substitution to delay expansion of an escaped shell variable in a
4316 # double_quote_subst'ed string.
4317 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4318
4319 # Sed substitution to delay expansion of an escaped single quote.
4320 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4321
4322 # Sed substitution to avoid accidental globbing in evaled expressions
4323 no_glob_subst='s/\*/\\\*/g'
4324
4325 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4326 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4327 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4328
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4330 $as_echo_n "checking how to print strings... " >&6; }
4331 # Test print first, because it will be a builtin if present.
4332 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4333    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4334   ECHO='print -r --'
4335 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4336   ECHO='printf %s\n'
4337 else
4338   # Use this function as a fallback that always works.
4339   func_fallback_echo ()
4340   {
4341     eval 'cat <<_LTECHO_EOF
4342 $1
4343 _LTECHO_EOF'
4344   }
4345   ECHO='func_fallback_echo'
4346 fi
4347
4348 # func_echo_all arg...
4349 # Invoke $ECHO with all args, space-separated.
4350 func_echo_all ()
4351 {
4352     $ECHO ""
4353 }
4354
4355 case $ECHO in
4356   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4357 $as_echo "printf" >&6; } ;;
4358   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4359 $as_echo "print -r" >&6; } ;;
4360   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4361 $as_echo "cat" >&6; } ;;
4362 esac
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4378 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4379 if ${ac_cv_path_SED+:} false; then :
4380   $as_echo_n "(cached) " >&6
4381 else
4382             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4383      for ac_i in 1 2 3 4 5 6 7; do
4384        ac_script="$ac_script$as_nl$ac_script"
4385      done
4386      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4387      { ac_script=; unset ac_script;}
4388      if test -z "$SED"; then
4389   ac_path_SED_found=false
4390   # Loop through the user's path and test for each of PROGNAME-LIST
4391   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4392 for as_dir in $PATH
4393 do
4394   IFS=$as_save_IFS
4395   test -z "$as_dir" && as_dir=.
4396     for ac_prog in sed gsed; do
4397     for ac_exec_ext in '' $ac_executable_extensions; do
4398       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4399       as_fn_executable_p "$ac_path_SED" || continue
4400 # Check for GNU ac_path_SED and select it if it is found.
4401   # Check for GNU $ac_path_SED
4402 case `"$ac_path_SED" --version 2>&1` in
4403 *GNU*)
4404   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4405 *)
4406   ac_count=0
4407   $as_echo_n 0123456789 >"conftest.in"
4408   while :
4409   do
4410     cat "conftest.in" "conftest.in" >"conftest.tmp"
4411     mv "conftest.tmp" "conftest.in"
4412     cp "conftest.in" "conftest.nl"
4413     $as_echo '' >> "conftest.nl"
4414     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4415     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4416     as_fn_arith $ac_count + 1 && ac_count=$as_val
4417     if test $ac_count -gt ${ac_path_SED_max-0}; then
4418       # Best one so far, save it but keep looking for a better one
4419       ac_cv_path_SED="$ac_path_SED"
4420       ac_path_SED_max=$ac_count
4421     fi
4422     # 10*(2^10) chars as input seems more than enough
4423     test $ac_count -gt 10 && break
4424   done
4425   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4426 esac
4427
4428       $ac_path_SED_found && break 3
4429     done
4430   done
4431   done
4432 IFS=$as_save_IFS
4433   if test -z "$ac_cv_path_SED"; then
4434     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4435   fi
4436 else
4437   ac_cv_path_SED=$SED
4438 fi
4439
4440 fi
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4442 $as_echo "$ac_cv_path_SED" >&6; }
4443  SED="$ac_cv_path_SED"
4444   rm -f conftest.sed
4445
4446 test -z "$SED" && SED=sed
4447 Xsed="$SED -e 1s/^X//"
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4460 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4461 if ${ac_cv_path_GREP+:} false; then :
4462   $as_echo_n "(cached) " >&6
4463 else
4464   if test -z "$GREP"; then
4465   ac_path_GREP_found=false
4466   # Loop through the user's path and test for each of PROGNAME-LIST
4467   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4468 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4469 do
4470   IFS=$as_save_IFS
4471   test -z "$as_dir" && as_dir=.
4472     for ac_prog in grep ggrep; do
4473     for ac_exec_ext in '' $ac_executable_extensions; do
4474       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4475       as_fn_executable_p "$ac_path_GREP" || continue
4476 # Check for GNU ac_path_GREP and select it if it is found.
4477   # Check for GNU $ac_path_GREP
4478 case `"$ac_path_GREP" --version 2>&1` in
4479 *GNU*)
4480   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4481 *)
4482   ac_count=0
4483   $as_echo_n 0123456789 >"conftest.in"
4484   while :
4485   do
4486     cat "conftest.in" "conftest.in" >"conftest.tmp"
4487     mv "conftest.tmp" "conftest.in"
4488     cp "conftest.in" "conftest.nl"
4489     $as_echo 'GREP' >> "conftest.nl"
4490     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4491     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4492     as_fn_arith $ac_count + 1 && ac_count=$as_val
4493     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4494       # Best one so far, save it but keep looking for a better one
4495       ac_cv_path_GREP="$ac_path_GREP"
4496       ac_path_GREP_max=$ac_count
4497     fi
4498     # 10*(2^10) chars as input seems more than enough
4499     test $ac_count -gt 10 && break
4500   done
4501   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4502 esac
4503
4504       $ac_path_GREP_found && break 3
4505     done
4506   done
4507   done
4508 IFS=$as_save_IFS
4509   if test -z "$ac_cv_path_GREP"; then
4510     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4511   fi
4512 else
4513   ac_cv_path_GREP=$GREP
4514 fi
4515
4516 fi
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4518 $as_echo "$ac_cv_path_GREP" >&6; }
4519  GREP="$ac_cv_path_GREP"
4520
4521
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4523 $as_echo_n "checking for egrep... " >&6; }
4524 if ${ac_cv_path_EGREP+:} false; then :
4525   $as_echo_n "(cached) " >&6
4526 else
4527   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4528    then ac_cv_path_EGREP="$GREP -E"
4529    else
4530      if test -z "$EGREP"; then
4531   ac_path_EGREP_found=false
4532   # Loop through the user's path and test for each of PROGNAME-LIST
4533   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4534 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4535 do
4536   IFS=$as_save_IFS
4537   test -z "$as_dir" && as_dir=.
4538     for ac_prog in egrep; do
4539     for ac_exec_ext in '' $ac_executable_extensions; do
4540       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4541       as_fn_executable_p "$ac_path_EGREP" || continue
4542 # Check for GNU ac_path_EGREP and select it if it is found.
4543   # Check for GNU $ac_path_EGREP
4544 case `"$ac_path_EGREP" --version 2>&1` in
4545 *GNU*)
4546   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4547 *)
4548   ac_count=0
4549   $as_echo_n 0123456789 >"conftest.in"
4550   while :
4551   do
4552     cat "conftest.in" "conftest.in" >"conftest.tmp"
4553     mv "conftest.tmp" "conftest.in"
4554     cp "conftest.in" "conftest.nl"
4555     $as_echo 'EGREP' >> "conftest.nl"
4556     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4557     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4558     as_fn_arith $ac_count + 1 && ac_count=$as_val
4559     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4560       # Best one so far, save it but keep looking for a better one
4561       ac_cv_path_EGREP="$ac_path_EGREP"
4562       ac_path_EGREP_max=$ac_count
4563     fi
4564     # 10*(2^10) chars as input seems more than enough
4565     test $ac_count -gt 10 && break
4566   done
4567   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4568 esac
4569
4570       $ac_path_EGREP_found && break 3
4571     done
4572   done
4573   done
4574 IFS=$as_save_IFS
4575   if test -z "$ac_cv_path_EGREP"; then
4576     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4577   fi
4578 else
4579   ac_cv_path_EGREP=$EGREP
4580 fi
4581
4582    fi
4583 fi
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4585 $as_echo "$ac_cv_path_EGREP" >&6; }
4586  EGREP="$ac_cv_path_EGREP"
4587
4588
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4590 $as_echo_n "checking for fgrep... " >&6; }
4591 if ${ac_cv_path_FGREP+:} false; then :
4592   $as_echo_n "(cached) " >&6
4593 else
4594   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4595    then ac_cv_path_FGREP="$GREP -F"
4596    else
4597      if test -z "$FGREP"; then
4598   ac_path_FGREP_found=false
4599   # Loop through the user's path and test for each of PROGNAME-LIST
4600   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4602 do
4603   IFS=$as_save_IFS
4604   test -z "$as_dir" && as_dir=.
4605     for ac_prog in fgrep; do
4606     for ac_exec_ext in '' $ac_executable_extensions; do
4607       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4608       as_fn_executable_p "$ac_path_FGREP" || continue
4609 # Check for GNU ac_path_FGREP and select it if it is found.
4610   # Check for GNU $ac_path_FGREP
4611 case `"$ac_path_FGREP" --version 2>&1` in
4612 *GNU*)
4613   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4614 *)
4615   ac_count=0
4616   $as_echo_n 0123456789 >"conftest.in"
4617   while :
4618   do
4619     cat "conftest.in" "conftest.in" >"conftest.tmp"
4620     mv "conftest.tmp" "conftest.in"
4621     cp "conftest.in" "conftest.nl"
4622     $as_echo 'FGREP' >> "conftest.nl"
4623     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4624     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4625     as_fn_arith $ac_count + 1 && ac_count=$as_val
4626     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4627       # Best one so far, save it but keep looking for a better one
4628       ac_cv_path_FGREP="$ac_path_FGREP"
4629       ac_path_FGREP_max=$ac_count
4630     fi
4631     # 10*(2^10) chars as input seems more than enough
4632     test $ac_count -gt 10 && break
4633   done
4634   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4635 esac
4636
4637       $ac_path_FGREP_found && break 3
4638     done
4639   done
4640   done
4641 IFS=$as_save_IFS
4642   if test -z "$ac_cv_path_FGREP"; then
4643     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4644   fi
4645 else
4646   ac_cv_path_FGREP=$FGREP
4647 fi
4648
4649    fi
4650 fi
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4652 $as_echo "$ac_cv_path_FGREP" >&6; }
4653  FGREP="$ac_cv_path_FGREP"
4654
4655
4656 test -z "$GREP" && GREP=grep
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676 # Check whether --with-gnu-ld was given.
4677 if test "${with_gnu_ld+set}" = set; then :
4678   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4679 else
4680   with_gnu_ld=no
4681 fi
4682
4683 ac_prog=ld
4684 if test yes = "$GCC"; then
4685   # Check if gcc -print-prog-name=ld gives a path.
4686   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4687 $as_echo_n "checking for ld used by $CC... " >&6; }
4688   case $host in
4689   *-*-mingw*)
4690     # gcc leaves a trailing carriage return, which upsets mingw
4691     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4692   *)
4693     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4694   esac
4695   case $ac_prog in
4696     # Accept absolute paths.
4697     [\\/]* | ?:[\\/]*)
4698       re_direlt='/[^/][^/]*/\.\./'
4699       # Canonicalize the pathname of ld
4700       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4701       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4702         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4703       done
4704       test -z "$LD" && LD=$ac_prog
4705       ;;
4706   "")
4707     # If it fails, then pretend we aren't using GCC.
4708     ac_prog=ld
4709     ;;
4710   *)
4711     # If it is relative, then search for the first ld in PATH.
4712     with_gnu_ld=unknown
4713     ;;
4714   esac
4715 elif test yes = "$with_gnu_ld"; then
4716   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4717 $as_echo_n "checking for GNU ld... " >&6; }
4718 else
4719   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4720 $as_echo_n "checking for non-GNU ld... " >&6; }
4721 fi
4722 if ${lt_cv_path_LD+:} false; then :
4723   $as_echo_n "(cached) " >&6
4724 else
4725   if test -z "$LD"; then
4726   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4727   for ac_dir in $PATH; do
4728     IFS=$lt_save_ifs
4729     test -z "$ac_dir" && ac_dir=.
4730     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4731       lt_cv_path_LD=$ac_dir/$ac_prog
4732       # Check to see if the program is GNU ld.  I'd rather use --version,
4733       # but apparently some variants of GNU ld only accept -v.
4734       # Break only if it was the GNU/non-GNU ld that we prefer.
4735       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4736       *GNU* | *'with BFD'*)
4737         test no != "$with_gnu_ld" && break
4738         ;;
4739       *)
4740         test yes != "$with_gnu_ld" && break
4741         ;;
4742       esac
4743     fi
4744   done
4745   IFS=$lt_save_ifs
4746 else
4747   lt_cv_path_LD=$LD # Let the user override the test with a path.
4748 fi
4749 fi
4750
4751 LD=$lt_cv_path_LD
4752 if test -n "$LD"; then
4753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4754 $as_echo "$LD" >&6; }
4755 else
4756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4757 $as_echo "no" >&6; }
4758 fi
4759 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4761 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4762 if ${lt_cv_prog_gnu_ld+:} false; then :
4763   $as_echo_n "(cached) " >&6
4764 else
4765   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4766 case `$LD -v 2>&1 </dev/null` in
4767 *GNU* | *'with BFD'*)
4768   lt_cv_prog_gnu_ld=yes
4769   ;;
4770 *)
4771   lt_cv_prog_gnu_ld=no
4772   ;;
4773 esac
4774 fi
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4776 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4777 with_gnu_ld=$lt_cv_prog_gnu_ld
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4788 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4789 if ${lt_cv_path_NM+:} false; then :
4790   $as_echo_n "(cached) " >&6
4791 else
4792   if test -n "$NM"; then
4793   # Let the user override the test.
4794   lt_cv_path_NM=$NM
4795 else
4796   lt_nm_to_check=${ac_tool_prefix}nm
4797   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4798     lt_nm_to_check="$lt_nm_to_check nm"
4799   fi
4800   for lt_tmp_nm in $lt_nm_to_check; do
4801     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4802     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4803       IFS=$lt_save_ifs
4804       test -z "$ac_dir" && ac_dir=.
4805       tmp_nm=$ac_dir/$lt_tmp_nm
4806       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4807         # Check to see if the nm accepts a BSD-compat flag.
4808         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4809         #   nm: unknown option "B" ignored
4810         # Tru64's nm complains that /dev/null is an invalid object file
4811         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4812         case $build_os in
4813         mingw*) lt_bad_file=conftest.nm/nofile ;;
4814         *) lt_bad_file=/dev/null ;;
4815         esac
4816         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4817         *$lt_bad_file* | *'Invalid file or object type'*)
4818           lt_cv_path_NM="$tmp_nm -B"
4819           break 2
4820           ;;
4821         *)
4822           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4823           */dev/null*)
4824             lt_cv_path_NM="$tmp_nm -p"
4825             break 2
4826             ;;
4827           *)
4828             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4829             continue # so that we can try to find one that supports BSD flags
4830             ;;
4831           esac
4832           ;;
4833         esac
4834       fi
4835     done
4836     IFS=$lt_save_ifs
4837   done
4838   : ${lt_cv_path_NM=no}
4839 fi
4840 fi
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4842 $as_echo "$lt_cv_path_NM" >&6; }
4843 if test no != "$lt_cv_path_NM"; then
4844   NM=$lt_cv_path_NM
4845 else
4846   # Didn't find any BSD compatible name lister, look for dumpbin.
4847   if test -n "$DUMPBIN"; then :
4848     # Let the user override the test.
4849   else
4850     if test -n "$ac_tool_prefix"; then
4851   for ac_prog in dumpbin "link -dump"
4852   do
4853     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4854 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4856 $as_echo_n "checking for $ac_word... " >&6; }
4857 if ${ac_cv_prog_DUMPBIN+:} false; then :
4858   $as_echo_n "(cached) " >&6
4859 else
4860   if test -n "$DUMPBIN"; then
4861   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4862 else
4863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864 for as_dir in $PATH
4865 do
4866   IFS=$as_save_IFS
4867   test -z "$as_dir" && as_dir=.
4868     for ac_exec_ext in '' $ac_executable_extensions; do
4869   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4870     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4871     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4872     break 2
4873   fi
4874 done
4875   done
4876 IFS=$as_save_IFS
4877
4878 fi
4879 fi
4880 DUMPBIN=$ac_cv_prog_DUMPBIN
4881 if test -n "$DUMPBIN"; then
4882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4883 $as_echo "$DUMPBIN" >&6; }
4884 else
4885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4886 $as_echo "no" >&6; }
4887 fi
4888
4889
4890     test -n "$DUMPBIN" && break
4891   done
4892 fi
4893 if test -z "$DUMPBIN"; then
4894   ac_ct_DUMPBIN=$DUMPBIN
4895   for ac_prog in dumpbin "link -dump"
4896 do
4897   # Extract the first word of "$ac_prog", so it can be a program name with args.
4898 set dummy $ac_prog; ac_word=$2
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4900 $as_echo_n "checking for $ac_word... " >&6; }
4901 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4902   $as_echo_n "(cached) " >&6
4903 else
4904   if test -n "$ac_ct_DUMPBIN"; then
4905   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4906 else
4907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4908 for as_dir in $PATH
4909 do
4910   IFS=$as_save_IFS
4911   test -z "$as_dir" && as_dir=.
4912     for ac_exec_ext in '' $ac_executable_extensions; do
4913   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4914     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4915     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4916     break 2
4917   fi
4918 done
4919   done
4920 IFS=$as_save_IFS
4921
4922 fi
4923 fi
4924 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4925 if test -n "$ac_ct_DUMPBIN"; then
4926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4927 $as_echo "$ac_ct_DUMPBIN" >&6; }
4928 else
4929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4930 $as_echo "no" >&6; }
4931 fi
4932
4933
4934   test -n "$ac_ct_DUMPBIN" && break
4935 done
4936
4937   if test "x$ac_ct_DUMPBIN" = x; then
4938     DUMPBIN=":"
4939   else
4940     case $cross_compiling:$ac_tool_warned in
4941 yes:)
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4943 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4944 ac_tool_warned=yes ;;
4945 esac
4946     DUMPBIN=$ac_ct_DUMPBIN
4947   fi
4948 fi
4949
4950     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4951     *COFF*)
4952       DUMPBIN="$DUMPBIN -symbols -headers"
4953       ;;
4954     *)
4955       DUMPBIN=:
4956       ;;
4957     esac
4958   fi
4959
4960   if test : != "$DUMPBIN"; then
4961     NM=$DUMPBIN
4962   fi
4963 fi
4964 test -z "$NM" && NM=nm
4965
4966
4967
4968
4969
4970
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4972 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4973 if ${lt_cv_nm_interface+:} false; then :
4974   $as_echo_n "(cached) " >&6
4975 else
4976   lt_cv_nm_interface="BSD nm"
4977   echo "int some_variable = 0;" > conftest.$ac_ext
4978   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4979   (eval "$ac_compile" 2>conftest.err)
4980   cat conftest.err >&5
4981   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4982   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4983   cat conftest.err >&5
4984   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4985   cat conftest.out >&5
4986   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4987     lt_cv_nm_interface="MS dumpbin"
4988   fi
4989   rm -f conftest*
4990 fi
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4992 $as_echo "$lt_cv_nm_interface" >&6; }
4993
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4995 $as_echo_n "checking whether ln -s works... " >&6; }
4996 LN_S=$as_ln_s
4997 if test "$LN_S" = "ln -s"; then
4998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4999 $as_echo "yes" >&6; }
5000 else
5001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5002 $as_echo "no, using $LN_S" >&6; }
5003 fi
5004
5005 # find the maximum length of command line arguments
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5007 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5008 if ${lt_cv_sys_max_cmd_len+:} false; then :
5009   $as_echo_n "(cached) " >&6
5010 else
5011     i=0
5012   teststring=ABCD
5013
5014   case $build_os in
5015   msdosdjgpp*)
5016     # On DJGPP, this test can blow up pretty badly due to problems in libc
5017     # (any single argument exceeding 2000 bytes causes a buffer overrun
5018     # during glob expansion).  Even if it were fixed, the result of this
5019     # check would be larger than it should be.
5020     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5021     ;;
5022
5023   gnu*)
5024     # Under GNU Hurd, this test is not required because there is
5025     # no limit to the length of command line arguments.
5026     # Libtool will interpret -1 as no limit whatsoever
5027     lt_cv_sys_max_cmd_len=-1;
5028     ;;
5029
5030   cygwin* | mingw* | cegcc*)
5031     # On Win9x/ME, this test blows up -- it succeeds, but takes
5032     # about 5 minutes as the teststring grows exponentially.
5033     # Worse, since 9x/ME are not pre-emptively multitasking,
5034     # you end up with a "frozen" computer, even though with patience
5035     # the test eventually succeeds (with a max line length of 256k).
5036     # Instead, let's just punt: use the minimum linelength reported by
5037     # all of the supported platforms: 8192 (on NT/2K/XP).
5038     lt_cv_sys_max_cmd_len=8192;
5039     ;;
5040
5041   mint*)
5042     # On MiNT this can take a long time and run out of memory.
5043     lt_cv_sys_max_cmd_len=8192;
5044     ;;
5045
5046   amigaos*)
5047     # On AmigaOS with pdksh, this test takes hours, literally.
5048     # So we just punt and use a minimum line length of 8192.
5049     lt_cv_sys_max_cmd_len=8192;
5050     ;;
5051
5052   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5053     # This has been around since 386BSD, at least.  Likely further.
5054     if test -x /sbin/sysctl; then
5055       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5056     elif test -x /usr/sbin/sysctl; then
5057       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5058     else
5059       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5060     fi
5061     # And add a safety zone
5062     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5063     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5064     ;;
5065
5066   interix*)
5067     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5068     lt_cv_sys_max_cmd_len=196608
5069     ;;
5070
5071   os2*)
5072     # The test takes a long time on OS/2.
5073     lt_cv_sys_max_cmd_len=8192
5074     ;;
5075
5076   osf*)
5077     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5078     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5079     # nice to cause kernel panics so lets avoid the loop below.
5080     # First set a reasonable default.
5081     lt_cv_sys_max_cmd_len=16384
5082     #
5083     if test -x /sbin/sysconfig; then
5084       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5085         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5086       esac
5087     fi
5088     ;;
5089   sco3.2v5*)
5090     lt_cv_sys_max_cmd_len=102400
5091     ;;
5092   sysv5* | sco5v6* | sysv4.2uw2*)
5093     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5094     if test -n "$kargmax"; then
5095       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5096     else
5097       lt_cv_sys_max_cmd_len=32768
5098     fi
5099     ;;
5100   *)
5101     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5102     if test -n "$lt_cv_sys_max_cmd_len" && \
5103        test undefined != "$lt_cv_sys_max_cmd_len"; then
5104       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5105       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5106     else
5107       # Make teststring a little bigger before we do anything with it.
5108       # a 1K string should be a reasonable start.
5109       for i in 1 2 3 4 5 6 7 8; do
5110         teststring=$teststring$teststring
5111       done
5112       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5113       # If test is not a shell built-in, we'll probably end up computing a
5114       # maximum length that is only half of the actual maximum length, but
5115       # we can't tell.
5116       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5117                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5118               test 17 != "$i" # 1/2 MB should be enough
5119       do
5120         i=`expr $i + 1`
5121         teststring=$teststring$teststring
5122       done
5123       # Only check the string length outside the loop.
5124       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5125       teststring=
5126       # Add a significant safety factor because C++ compilers can tack on
5127       # massive amounts of additional arguments before passing them to the
5128       # linker.  It appears as though 1/2 is a usable value.
5129       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5130     fi
5131     ;;
5132   esac
5133
5134 fi
5135
5136 if test -n "$lt_cv_sys_max_cmd_len"; then
5137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5138 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5139 else
5140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5141 $as_echo "none" >&6; }
5142 fi
5143 max_cmd_len=$lt_cv_sys_max_cmd_len
5144
5145
5146
5147
5148
5149
5150 : ${CP="cp -f"}
5151 : ${MV="mv -f"}
5152 : ${RM="rm -f"}
5153
5154 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5155   lt_unset=unset
5156 else
5157   lt_unset=false
5158 fi
5159
5160
5161
5162
5163
5164 # test EBCDIC or ASCII
5165 case `echo X|tr X '\101'` in
5166  A) # ASCII based system
5167     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5168   lt_SP2NL='tr \040 \012'
5169   lt_NL2SP='tr \015\012 \040\040'
5170   ;;
5171  *) # EBCDIC based system
5172   lt_SP2NL='tr \100 \n'
5173   lt_NL2SP='tr \r\n \100\100'
5174   ;;
5175 esac
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5186 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5187 if ${lt_cv_to_host_file_cmd+:} false; then :
5188   $as_echo_n "(cached) " >&6
5189 else
5190   case $host in
5191   *-*-mingw* )
5192     case $build in
5193       *-*-mingw* ) # actually msys
5194         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5195         ;;
5196       *-*-cygwin* )
5197         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5198         ;;
5199       * ) # otherwise, assume *nix
5200         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5201         ;;
5202     esac
5203     ;;
5204   *-*-cygwin* )
5205     case $build in
5206       *-*-mingw* ) # actually msys
5207         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5208         ;;
5209       *-*-cygwin* )
5210         lt_cv_to_host_file_cmd=func_convert_file_noop
5211         ;;
5212       * ) # otherwise, assume *nix
5213         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5214         ;;
5215     esac
5216     ;;
5217   * ) # unhandled hosts (and "normal" native builds)
5218     lt_cv_to_host_file_cmd=func_convert_file_noop
5219     ;;
5220 esac
5221
5222 fi
5223
5224 to_host_file_cmd=$lt_cv_to_host_file_cmd
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5226 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5227
5228
5229
5230
5231
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5233 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5234 if ${lt_cv_to_tool_file_cmd+:} false; then :
5235   $as_echo_n "(cached) " >&6
5236 else
5237   #assume ordinary cross tools, or native build.
5238 lt_cv_to_tool_file_cmd=func_convert_file_noop
5239 case $host in
5240   *-*-mingw* )
5241     case $build in
5242       *-*-mingw* ) # actually msys
5243         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5244         ;;
5245     esac
5246     ;;
5247 esac
5248
5249 fi
5250
5251 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5253 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5254
5255
5256
5257
5258
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5260 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5261 if ${lt_cv_ld_reload_flag+:} false; then :
5262   $as_echo_n "(cached) " >&6
5263 else
5264   lt_cv_ld_reload_flag='-r'
5265 fi
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5267 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5268 reload_flag=$lt_cv_ld_reload_flag
5269 case $reload_flag in
5270 "" | " "*) ;;
5271 *) reload_flag=" $reload_flag" ;;
5272 esac
5273 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5274 case $host_os in
5275   cygwin* | mingw* | pw32* | cegcc*)
5276     if test yes != "$GCC"; then
5277       reload_cmds=false
5278     fi
5279     ;;
5280   darwin*)
5281     if test yes = "$GCC"; then
5282       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5283     else
5284       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5285     fi
5286     ;;
5287 esac
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297 if test -n "$ac_tool_prefix"; then
5298   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5299 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5301 $as_echo_n "checking for $ac_word... " >&6; }
5302 if ${ac_cv_prog_OBJDUMP+:} false; then :
5303   $as_echo_n "(cached) " >&6
5304 else
5305   if test -n "$OBJDUMP"; then
5306   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5307 else
5308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5309 for as_dir in $PATH
5310 do
5311   IFS=$as_save_IFS
5312   test -z "$as_dir" && as_dir=.
5313     for ac_exec_ext in '' $ac_executable_extensions; do
5314   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5315     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5316     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5317     break 2
5318   fi
5319 done
5320   done
5321 IFS=$as_save_IFS
5322
5323 fi
5324 fi
5325 OBJDUMP=$ac_cv_prog_OBJDUMP
5326 if test -n "$OBJDUMP"; then
5327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5328 $as_echo "$OBJDUMP" >&6; }
5329 else
5330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5331 $as_echo "no" >&6; }
5332 fi
5333
5334
5335 fi
5336 if test -z "$ac_cv_prog_OBJDUMP"; then
5337   ac_ct_OBJDUMP=$OBJDUMP
5338   # Extract the first word of "objdump", so it can be a program name with args.
5339 set dummy objdump; ac_word=$2
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5341 $as_echo_n "checking for $ac_word... " >&6; }
5342 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5343   $as_echo_n "(cached) " >&6
5344 else
5345   if test -n "$ac_ct_OBJDUMP"; then
5346   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5347 else
5348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5349 for as_dir in $PATH
5350 do
5351   IFS=$as_save_IFS
5352   test -z "$as_dir" && as_dir=.
5353     for ac_exec_ext in '' $ac_executable_extensions; do
5354   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5355     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5356     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5357     break 2
5358   fi
5359 done
5360   done
5361 IFS=$as_save_IFS
5362
5363 fi
5364 fi
5365 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5366 if test -n "$ac_ct_OBJDUMP"; then
5367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5368 $as_echo "$ac_ct_OBJDUMP" >&6; }
5369 else
5370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5371 $as_echo "no" >&6; }
5372 fi
5373
5374   if test "x$ac_ct_OBJDUMP" = x; then
5375     OBJDUMP="false"
5376   else
5377     case $cross_compiling:$ac_tool_warned in
5378 yes:)
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5380 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5381 ac_tool_warned=yes ;;
5382 esac
5383     OBJDUMP=$ac_ct_OBJDUMP
5384   fi
5385 else
5386   OBJDUMP="$ac_cv_prog_OBJDUMP"
5387 fi
5388
5389 test -z "$OBJDUMP" && OBJDUMP=objdump
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5400 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5401 if ${lt_cv_deplibs_check_method+:} false; then :
5402   $as_echo_n "(cached) " >&6
5403 else
5404   lt_cv_file_magic_cmd='$MAGIC_CMD'
5405 lt_cv_file_magic_test_file=
5406 lt_cv_deplibs_check_method='unknown'
5407 # Need to set the preceding variable on all platforms that support
5408 # interlibrary dependencies.
5409 # 'none' -- dependencies not supported.
5410 # 'unknown' -- same as none, but documents that we really don't know.
5411 # 'pass_all' -- all dependencies passed with no checks.
5412 # 'test_compile' -- check by making test program.
5413 # 'file_magic [[regex]]' -- check by looking for files in library path
5414 # that responds to the $file_magic_cmd with a given extended regex.
5415 # If you have 'file' or equivalent on your system and you're not sure
5416 # whether 'pass_all' will *always* work, you probably want this one.
5417
5418 case $host_os in
5419 aix[4-9]*)
5420   lt_cv_deplibs_check_method=pass_all
5421   ;;
5422
5423 beos*)
5424   lt_cv_deplibs_check_method=pass_all
5425   ;;
5426
5427 bsdi[45]*)
5428   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5429   lt_cv_file_magic_cmd='/usr/bin/file -L'
5430   lt_cv_file_magic_test_file=/shlib/libc.so
5431   ;;
5432
5433 cygwin*)
5434   # func_win32_libid is a shell function defined in ltmain.sh
5435   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5436   lt_cv_file_magic_cmd='func_win32_libid'
5437   ;;
5438
5439 mingw* | pw32*)
5440   # Base MSYS/MinGW do not provide the 'file' command needed by
5441   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5442   # unless we find 'file', for example because we are cross-compiling.
5443   if ( file / ) >/dev/null 2>&1; then
5444     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5445     lt_cv_file_magic_cmd='func_win32_libid'
5446   else
5447     # Keep this pattern in sync with the one in func_win32_libid.
5448     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5449     lt_cv_file_magic_cmd='$OBJDUMP -f'
5450   fi
5451   ;;
5452
5453 cegcc*)
5454   # use the weaker test based on 'objdump'. See mingw*.
5455   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5456   lt_cv_file_magic_cmd='$OBJDUMP -f'
5457   ;;
5458
5459 darwin* | rhapsody*)
5460   lt_cv_deplibs_check_method=pass_all
5461   ;;
5462
5463 freebsd* | dragonfly*)
5464   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5465     case $host_cpu in
5466     i*86 )
5467       # Not sure whether the presence of OpenBSD here was a mistake.
5468       # Let's accept both of them until this is cleared up.
5469       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5470       lt_cv_file_magic_cmd=/usr/bin/file
5471       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5472       ;;
5473     esac
5474   else
5475     lt_cv_deplibs_check_method=pass_all
5476   fi
5477   ;;
5478
5479 haiku*)
5480   lt_cv_deplibs_check_method=pass_all
5481   ;;
5482
5483 hpux10.20* | hpux11*)
5484   lt_cv_file_magic_cmd=/usr/bin/file
5485   case $host_cpu in
5486   ia64*)
5487     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5488     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5489     ;;
5490   hppa*64*)
5491     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]'
5492     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5493     ;;
5494   *)
5495     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5496     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5497     ;;
5498   esac
5499   ;;
5500
5501 interix[3-9]*)
5502   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5503   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5504   ;;
5505
5506 irix5* | irix6* | nonstopux*)
5507   case $LD in
5508   *-32|*"-32 ") libmagic=32-bit;;
5509   *-n32|*"-n32 ") libmagic=N32;;
5510   *-64|*"-64 ") libmagic=64-bit;;
5511   *) libmagic=never-match;;
5512   esac
5513   lt_cv_deplibs_check_method=pass_all
5514   ;;
5515
5516 # This must be glibc/ELF.
5517 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5518   lt_cv_deplibs_check_method=pass_all
5519   ;;
5520
5521 netbsd* | netbsdelf*-gnu)
5522   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5523     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5524   else
5525     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5526   fi
5527   ;;
5528
5529 newos6*)
5530   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5531   lt_cv_file_magic_cmd=/usr/bin/file
5532   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5533   ;;
5534
5535 *nto* | *qnx*)
5536   lt_cv_deplibs_check_method=pass_all
5537   ;;
5538
5539 openbsd* | bitrig*)
5540   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5541     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5542   else
5543     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5544   fi
5545   ;;
5546
5547 osf3* | osf4* | osf5*)
5548   lt_cv_deplibs_check_method=pass_all
5549   ;;
5550
5551 rdos*)
5552   lt_cv_deplibs_check_method=pass_all
5553   ;;
5554
5555 solaris*)
5556   lt_cv_deplibs_check_method=pass_all
5557   ;;
5558
5559 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5560   lt_cv_deplibs_check_method=pass_all
5561   ;;
5562
5563 sysv4 | sysv4.3*)
5564   case $host_vendor in
5565   motorola)
5566     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]'
5567     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5568     ;;
5569   ncr)
5570     lt_cv_deplibs_check_method=pass_all
5571     ;;
5572   sequent)
5573     lt_cv_file_magic_cmd='/bin/file'
5574     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5575     ;;
5576   sni)
5577     lt_cv_file_magic_cmd='/bin/file'
5578     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5579     lt_cv_file_magic_test_file=/lib/libc.so
5580     ;;
5581   siemens)
5582     lt_cv_deplibs_check_method=pass_all
5583     ;;
5584   pc)
5585     lt_cv_deplibs_check_method=pass_all
5586     ;;
5587   esac
5588   ;;
5589
5590 tpf*)
5591   lt_cv_deplibs_check_method=pass_all
5592   ;;
5593 os2*)
5594   lt_cv_deplibs_check_method=pass_all
5595   ;;
5596 esac
5597
5598 fi
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5600 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5601
5602 file_magic_glob=
5603 want_nocaseglob=no
5604 if test "$build" = "$host"; then
5605   case $host_os in
5606   mingw* | pw32*)
5607     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5608       want_nocaseglob=yes
5609     else
5610       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5611     fi
5612     ;;
5613   esac
5614 fi
5615
5616 file_magic_cmd=$lt_cv_file_magic_cmd
5617 deplibs_check_method=$lt_cv_deplibs_check_method
5618 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641 if test -n "$ac_tool_prefix"; then
5642   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5643 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5645 $as_echo_n "checking for $ac_word... " >&6; }
5646 if ${ac_cv_prog_DLLTOOL+:} false; then :
5647   $as_echo_n "(cached) " >&6
5648 else
5649   if test -n "$DLLTOOL"; then
5650   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5651 else
5652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5653 for as_dir in $PATH
5654 do
5655   IFS=$as_save_IFS
5656   test -z "$as_dir" && as_dir=.
5657     for ac_exec_ext in '' $ac_executable_extensions; do
5658   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5659     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5660     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5661     break 2
5662   fi
5663 done
5664   done
5665 IFS=$as_save_IFS
5666
5667 fi
5668 fi
5669 DLLTOOL=$ac_cv_prog_DLLTOOL
5670 if test -n "$DLLTOOL"; then
5671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5672 $as_echo "$DLLTOOL" >&6; }
5673 else
5674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5675 $as_echo "no" >&6; }
5676 fi
5677
5678
5679 fi
5680 if test -z "$ac_cv_prog_DLLTOOL"; then
5681   ac_ct_DLLTOOL=$DLLTOOL
5682   # Extract the first word of "dlltool", so it can be a program name with args.
5683 set dummy dlltool; ac_word=$2
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5685 $as_echo_n "checking for $ac_word... " >&6; }
5686 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5687   $as_echo_n "(cached) " >&6
5688 else
5689   if test -n "$ac_ct_DLLTOOL"; then
5690   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5691 else
5692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5693 for as_dir in $PATH
5694 do
5695   IFS=$as_save_IFS
5696   test -z "$as_dir" && as_dir=.
5697     for ac_exec_ext in '' $ac_executable_extensions; do
5698   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5699     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5700     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5701     break 2
5702   fi
5703 done
5704   done
5705 IFS=$as_save_IFS
5706
5707 fi
5708 fi
5709 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5710 if test -n "$ac_ct_DLLTOOL"; then
5711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5712 $as_echo "$ac_ct_DLLTOOL" >&6; }
5713 else
5714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5715 $as_echo "no" >&6; }
5716 fi
5717
5718   if test "x$ac_ct_DLLTOOL" = x; then
5719     DLLTOOL="false"
5720   else
5721     case $cross_compiling:$ac_tool_warned in
5722 yes:)
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5724 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5725 ac_tool_warned=yes ;;
5726 esac
5727     DLLTOOL=$ac_ct_DLLTOOL
5728   fi
5729 else
5730   DLLTOOL="$ac_cv_prog_DLLTOOL"
5731 fi
5732
5733 test -z "$DLLTOOL" && DLLTOOL=dlltool
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5745 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5746 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5747   $as_echo_n "(cached) " >&6
5748 else
5749   lt_cv_sharedlib_from_linklib_cmd='unknown'
5750
5751 case $host_os in
5752 cygwin* | mingw* | pw32* | cegcc*)
5753   # two different shell functions defined in ltmain.sh;
5754   # decide which one to use based on capabilities of $DLLTOOL
5755   case `$DLLTOOL --help 2>&1` in
5756   *--identify-strict*)
5757     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5758     ;;
5759   *)
5760     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5761     ;;
5762   esac
5763   ;;
5764 *)
5765   # fallback: assume linklib IS sharedlib
5766   lt_cv_sharedlib_from_linklib_cmd=$ECHO
5767   ;;
5768 esac
5769
5770 fi
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5772 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5773 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5774 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5775
5776
5777
5778
5779
5780
5781
5782
5783 if test -n "$ac_tool_prefix"; then
5784   for ac_prog in ar
5785   do
5786     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5787 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5789 $as_echo_n "checking for $ac_word... " >&6; }
5790 if ${ac_cv_prog_AR+:} false; then :
5791   $as_echo_n "(cached) " >&6
5792 else
5793   if test -n "$AR"; then
5794   ac_cv_prog_AR="$AR" # Let the user override the test.
5795 else
5796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5797 for as_dir in $PATH
5798 do
5799   IFS=$as_save_IFS
5800   test -z "$as_dir" && as_dir=.
5801     for ac_exec_ext in '' $ac_executable_extensions; do
5802   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5803     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5804     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5805     break 2
5806   fi
5807 done
5808   done
5809 IFS=$as_save_IFS
5810
5811 fi
5812 fi
5813 AR=$ac_cv_prog_AR
5814 if test -n "$AR"; then
5815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5816 $as_echo "$AR" >&6; }
5817 else
5818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5819 $as_echo "no" >&6; }
5820 fi
5821
5822
5823     test -n "$AR" && break
5824   done
5825 fi
5826 if test -z "$AR"; then
5827   ac_ct_AR=$AR
5828   for ac_prog in ar
5829 do
5830   # Extract the first word of "$ac_prog", so it can be a program name with args.
5831 set dummy $ac_prog; ac_word=$2
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5833 $as_echo_n "checking for $ac_word... " >&6; }
5834 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5835   $as_echo_n "(cached) " >&6
5836 else
5837   if test -n "$ac_ct_AR"; then
5838   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5839 else
5840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5841 for as_dir in $PATH
5842 do
5843   IFS=$as_save_IFS
5844   test -z "$as_dir" && as_dir=.
5845     for ac_exec_ext in '' $ac_executable_extensions; do
5846   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5847     ac_cv_prog_ac_ct_AR="$ac_prog"
5848     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5849     break 2
5850   fi
5851 done
5852   done
5853 IFS=$as_save_IFS
5854
5855 fi
5856 fi
5857 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5858 if test -n "$ac_ct_AR"; then
5859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5860 $as_echo "$ac_ct_AR" >&6; }
5861 else
5862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5863 $as_echo "no" >&6; }
5864 fi
5865
5866
5867   test -n "$ac_ct_AR" && break
5868 done
5869
5870   if test "x$ac_ct_AR" = x; then
5871     AR="false"
5872   else
5873     case $cross_compiling:$ac_tool_warned in
5874 yes:)
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5876 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5877 ac_tool_warned=yes ;;
5878 esac
5879     AR=$ac_ct_AR
5880   fi
5881 fi
5882
5883 : ${AR=ar}
5884 : ${AR_FLAGS=cr}
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5897 $as_echo_n "checking for archiver @FILE support... " >&6; }
5898 if ${lt_cv_ar_at_file+:} false; then :
5899   $as_echo_n "(cached) " >&6
5900 else
5901   lt_cv_ar_at_file=no
5902    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5903 /* end confdefs.h.  */
5904
5905 int
5906 main ()
5907 {
5908
5909   ;
5910   return 0;
5911 }
5912 _ACEOF
5913 if ac_fn_c_try_compile "$LINENO"; then :
5914   echo conftest.$ac_objext > conftest.lst
5915       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5916       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5917   (eval $lt_ar_try) 2>&5
5918   ac_status=$?
5919   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5920   test $ac_status = 0; }
5921       if test 0 -eq "$ac_status"; then
5922         # Ensure the archiver fails upon bogus file names.
5923         rm -f conftest.$ac_objext libconftest.a
5924         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5925   (eval $lt_ar_try) 2>&5
5926   ac_status=$?
5927   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5928   test $ac_status = 0; }
5929         if test 0 -ne "$ac_status"; then
5930           lt_cv_ar_at_file=@
5931         fi
5932       fi
5933       rm -f conftest.* libconftest.a
5934
5935 fi
5936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5937
5938 fi
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5940 $as_echo "$lt_cv_ar_at_file" >&6; }
5941
5942 if test no = "$lt_cv_ar_at_file"; then
5943   archiver_list_spec=
5944 else
5945   archiver_list_spec=$lt_cv_ar_at_file
5946 fi
5947
5948
5949
5950
5951
5952
5953
5954 if test -n "$ac_tool_prefix"; then
5955   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5956 set dummy ${ac_tool_prefix}strip; ac_word=$2
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5958 $as_echo_n "checking for $ac_word... " >&6; }
5959 if ${ac_cv_prog_STRIP+:} false; then :
5960   $as_echo_n "(cached) " >&6
5961 else
5962   if test -n "$STRIP"; then
5963   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5964 else
5965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5966 for as_dir in $PATH
5967 do
5968   IFS=$as_save_IFS
5969   test -z "$as_dir" && as_dir=.
5970     for ac_exec_ext in '' $ac_executable_extensions; do
5971   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5972     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5973     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5974     break 2
5975   fi
5976 done
5977   done
5978 IFS=$as_save_IFS
5979
5980 fi
5981 fi
5982 STRIP=$ac_cv_prog_STRIP
5983 if test -n "$STRIP"; then
5984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5985 $as_echo "$STRIP" >&6; }
5986 else
5987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5988 $as_echo "no" >&6; }
5989 fi
5990
5991
5992 fi
5993 if test -z "$ac_cv_prog_STRIP"; then
5994   ac_ct_STRIP=$STRIP
5995   # Extract the first word of "strip", so it can be a program name with args.
5996 set dummy strip; ac_word=$2
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5998 $as_echo_n "checking for $ac_word... " >&6; }
5999 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6000   $as_echo_n "(cached) " >&6
6001 else
6002   if test -n "$ac_ct_STRIP"; then
6003   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6004 else
6005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6006 for as_dir in $PATH
6007 do
6008   IFS=$as_save_IFS
6009   test -z "$as_dir" && as_dir=.
6010     for ac_exec_ext in '' $ac_executable_extensions; do
6011   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6012     ac_cv_prog_ac_ct_STRIP="strip"
6013     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6014     break 2
6015   fi
6016 done
6017   done
6018 IFS=$as_save_IFS
6019
6020 fi
6021 fi
6022 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6023 if test -n "$ac_ct_STRIP"; then
6024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6025 $as_echo "$ac_ct_STRIP" >&6; }
6026 else
6027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6028 $as_echo "no" >&6; }
6029 fi
6030
6031   if test "x$ac_ct_STRIP" = x; then
6032     STRIP=":"
6033   else
6034     case $cross_compiling:$ac_tool_warned in
6035 yes:)
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6037 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6038 ac_tool_warned=yes ;;
6039 esac
6040     STRIP=$ac_ct_STRIP
6041   fi
6042 else
6043   STRIP="$ac_cv_prog_STRIP"
6044 fi
6045
6046 test -z "$STRIP" && STRIP=:
6047
6048
6049
6050
6051
6052
6053 if test -n "$ac_tool_prefix"; then
6054   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6055 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6057 $as_echo_n "checking for $ac_word... " >&6; }
6058 if ${ac_cv_prog_RANLIB+:} false; then :
6059   $as_echo_n "(cached) " >&6
6060 else
6061   if test -n "$RANLIB"; then
6062   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6063 else
6064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6065 for as_dir in $PATH
6066 do
6067   IFS=$as_save_IFS
6068   test -z "$as_dir" && as_dir=.
6069     for ac_exec_ext in '' $ac_executable_extensions; do
6070   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6071     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6072     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6073     break 2
6074   fi
6075 done
6076   done
6077 IFS=$as_save_IFS
6078
6079 fi
6080 fi
6081 RANLIB=$ac_cv_prog_RANLIB
6082 if test -n "$RANLIB"; then
6083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6084 $as_echo "$RANLIB" >&6; }
6085 else
6086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6087 $as_echo "no" >&6; }
6088 fi
6089
6090
6091 fi
6092 if test -z "$ac_cv_prog_RANLIB"; then
6093   ac_ct_RANLIB=$RANLIB
6094   # Extract the first word of "ranlib", so it can be a program name with args.
6095 set dummy ranlib; ac_word=$2
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6097 $as_echo_n "checking for $ac_word... " >&6; }
6098 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6099   $as_echo_n "(cached) " >&6
6100 else
6101   if test -n "$ac_ct_RANLIB"; then
6102   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6103 else
6104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6105 for as_dir in $PATH
6106 do
6107   IFS=$as_save_IFS
6108   test -z "$as_dir" && as_dir=.
6109     for ac_exec_ext in '' $ac_executable_extensions; do
6110   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6111     ac_cv_prog_ac_ct_RANLIB="ranlib"
6112     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6113     break 2
6114   fi
6115 done
6116   done
6117 IFS=$as_save_IFS
6118
6119 fi
6120 fi
6121 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6122 if test -n "$ac_ct_RANLIB"; then
6123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6124 $as_echo "$ac_ct_RANLIB" >&6; }
6125 else
6126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6127 $as_echo "no" >&6; }
6128 fi
6129
6130   if test "x$ac_ct_RANLIB" = x; then
6131     RANLIB=":"
6132   else
6133     case $cross_compiling:$ac_tool_warned in
6134 yes:)
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6136 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6137 ac_tool_warned=yes ;;
6138 esac
6139     RANLIB=$ac_ct_RANLIB
6140   fi
6141 else
6142   RANLIB="$ac_cv_prog_RANLIB"
6143 fi
6144
6145 test -z "$RANLIB" && RANLIB=:
6146
6147
6148
6149
6150
6151
6152 # Determine commands to create old-style static archives.
6153 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6154 old_postinstall_cmds='chmod 644 $oldlib'
6155 old_postuninstall_cmds=
6156
6157 if test -n "$RANLIB"; then
6158   case $host_os in
6159   bitrig* | openbsd*)
6160     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6161     ;;
6162   *)
6163     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6164     ;;
6165   esac
6166   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6167 fi
6168
6169 case $host_os in
6170   darwin*)
6171     lock_old_archive_extraction=yes ;;
6172   *)
6173     lock_old_archive_extraction=no ;;
6174 esac
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214 # If no C compiler was specified, use CC.
6215 LTCC=${LTCC-"$CC"}
6216
6217 # If no C compiler flags were specified, use CFLAGS.
6218 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6219
6220 # Allow CC to be a program name with arguments.
6221 compiler=$CC
6222
6223
6224 # Check for command to grab the raw symbol name followed by C symbol from nm.
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6226 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6227 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6228   $as_echo_n "(cached) " >&6
6229 else
6230
6231 # These are sane defaults that work on at least a few old systems.
6232 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6233
6234 # Character class describing NM global symbol codes.
6235 symcode='[BCDEGRST]'
6236
6237 # Regexp to match symbols that can be accessed directly from C.
6238 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6239
6240 # Define system-specific variables.
6241 case $host_os in
6242 aix*)
6243   symcode='[BCDT]'
6244   ;;
6245 cygwin* | mingw* | pw32* | cegcc*)
6246   symcode='[ABCDGISTW]'
6247   ;;
6248 hpux*)
6249   if test ia64 = "$host_cpu"; then
6250     symcode='[ABCDEGRST]'
6251   fi
6252   ;;
6253 irix* | nonstopux*)
6254   symcode='[BCDEGRST]'
6255   ;;
6256 osf*)
6257   symcode='[BCDEGQRST]'
6258   ;;
6259 solaris*)
6260   symcode='[BDRT]'
6261   ;;
6262 sco3.2v5*)
6263   symcode='[DT]'
6264   ;;
6265 sysv4.2uw2*)
6266   symcode='[DT]'
6267   ;;
6268 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6269   symcode='[ABDT]'
6270   ;;
6271 sysv4)
6272   symcode='[DFNSTU]'
6273   ;;
6274 esac
6275
6276 # If we're using GNU nm, then use its standard symbol codes.
6277 case `$NM -V 2>&1` in
6278 *GNU* | *'with BFD'*)
6279   symcode='[ABCDGIRSTW]' ;;
6280 esac
6281
6282 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6283   # Gets list of data symbols to import.
6284   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6285   # Adjust the below global symbol transforms to fixup imported variables.
6286   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6287   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6288   lt_c_name_lib_hook="\
6289   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6290   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6291 else
6292   # Disable hooks by default.
6293   lt_cv_sys_global_symbol_to_import=
6294   lt_cdecl_hook=
6295   lt_c_name_hook=
6296   lt_c_name_lib_hook=
6297 fi
6298
6299 # Transform an extracted symbol line into a proper C declaration.
6300 # Some systems (esp. on ia64) link data and code symbols differently,
6301 # so use this general approach.
6302 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6303 $lt_cdecl_hook\
6304 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6305 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6306
6307 # Transform an extracted symbol line into symbol name and symbol address
6308 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6309 $lt_c_name_hook\
6310 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6311 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6312
6313 # Transform an extracted symbol line into symbol name with lib prefix and
6314 # symbol address.
6315 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6316 $lt_c_name_lib_hook\
6317 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6318 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6319 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6320
6321 # Handle CRLF in mingw tool chain
6322 opt_cr=
6323 case $build_os in
6324 mingw*)
6325   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6326   ;;
6327 esac
6328
6329 # Try without a prefix underscore, then with it.
6330 for ac_symprfx in "" "_"; do
6331
6332   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6333   symxfrm="\\1 $ac_symprfx\\2 \\2"
6334
6335   # Write the raw and C identifiers.
6336   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6337     # Fake it for dumpbin and say T for any non-static function,
6338     # D for any global variable and I for any imported variable.
6339     # Also find C++ and __fastcall symbols from MSVC++,
6340     # which start with @ or ?.
6341     lt_cv_sys_global_symbol_pipe="$AWK '"\
6342 "     {last_section=section; section=\$ 3};"\
6343 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6344 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6345 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6346 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6347 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6348 "     \$ 0!~/External *\|/{next};"\
6349 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6350 "     {if(hide[section]) next};"\
6351 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6352 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6353 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6354 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6355 "     ' prfx=^$ac_symprfx"
6356   else
6357     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6358   fi
6359   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6360
6361   # Check to see that the pipe works correctly.
6362   pipe_works=no
6363
6364   rm -f conftest*
6365   cat > conftest.$ac_ext <<_LT_EOF
6366 #ifdef __cplusplus
6367 extern "C" {
6368 #endif
6369 char nm_test_var;
6370 void nm_test_func(void);
6371 void nm_test_func(void){}
6372 #ifdef __cplusplus
6373 }
6374 #endif
6375 int main(){nm_test_var='a';nm_test_func();return(0);}
6376 _LT_EOF
6377
6378   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6379   (eval $ac_compile) 2>&5
6380   ac_status=$?
6381   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6382   test $ac_status = 0; }; then
6383     # Now try to grab the symbols.
6384     nlist=conftest.nm
6385     $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
6386     if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
6387       # Try sorting and uniquifying the output.
6388       if sort "$nlist" | uniq > "$nlist"T; then
6389         mv -f "$nlist"T "$nlist"
6390       else
6391         rm -f "$nlist"T
6392       fi
6393
6394       # Make sure that we snagged all the symbols we need.
6395       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6396         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6397           cat <<_LT_EOF > conftest.$ac_ext
6398 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6399 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6400 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6401    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6402 # define LT_DLSYM_CONST
6403 #elif defined __osf__
6404 /* This system does not cope well with relocations in const data.  */
6405 # define LT_DLSYM_CONST
6406 #else
6407 # define LT_DLSYM_CONST const
6408 #endif
6409
6410 #ifdef __cplusplus
6411 extern "C" {
6412 #endif
6413
6414 _LT_EOF
6415           # Now generate the symbol file.
6416           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6417
6418           cat <<_LT_EOF >> conftest.$ac_ext
6419
6420 /* The mapping between symbol names and symbols.  */
6421 LT_DLSYM_CONST struct {
6422   const char *name;
6423   void       *address;
6424 }
6425 lt__PROGRAM__LTX_preloaded_symbols[] =
6426 {
6427   { "@PROGRAM@", (void *) 0 },
6428 _LT_EOF
6429           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6430           cat <<\_LT_EOF >> conftest.$ac_ext
6431   {0, (void *) 0}
6432 };
6433
6434 /* This works around a problem in FreeBSD linker */
6435 #ifdef FREEBSD_WORKAROUND
6436 static const void *lt_preloaded_setup() {
6437   return lt__PROGRAM__LTX_preloaded_symbols;
6438 }
6439 #endif
6440
6441 #ifdef __cplusplus
6442 }
6443 #endif
6444 _LT_EOF
6445           # Now try linking the two files.
6446           mv conftest.$ac_objext conftstm.$ac_objext
6447           lt_globsym_save_LIBS=$LIBS
6448           lt_globsym_save_CFLAGS=$CFLAGS
6449           LIBS=conftstm.$ac_objext
6450           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6451           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6452   (eval $ac_link) 2>&5
6453   ac_status=$?
6454   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6455   test $ac_status = 0; } && test -s conftest$ac_exeext; then
6456             pipe_works=yes
6457           fi
6458           LIBS=$lt_globsym_save_LIBS
6459           CFLAGS=$lt_globsym_save_CFLAGS
6460         else
6461           echo "cannot find nm_test_func in $nlist" >&5
6462         fi
6463       else
6464         echo "cannot find nm_test_var in $nlist" >&5
6465       fi
6466     else
6467       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6468     fi
6469   else
6470     echo "$progname: failed program was:" >&5
6471     cat conftest.$ac_ext >&5
6472   fi
6473   rm -rf conftest* conftst*
6474
6475   # Do not use the global_symbol_pipe unless it works.
6476   if test yes = "$pipe_works"; then
6477     break
6478   else
6479     lt_cv_sys_global_symbol_pipe=
6480   fi
6481 done
6482
6483 fi
6484
6485 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6486   lt_cv_sys_global_symbol_to_cdecl=
6487 fi
6488 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6490 $as_echo "failed" >&6; }
6491 else
6492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6493 $as_echo "ok" >&6; }
6494 fi
6495
6496 # Response file support.
6497 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6498   nm_file_list_spec='@'
6499 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6500   nm_file_list_spec='@'
6501 fi
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6540 $as_echo_n "checking for sysroot... " >&6; }
6541
6542 # Check whether --with-sysroot was given.
6543 if test "${with_sysroot+set}" = set; then :
6544   withval=$with_sysroot;
6545 else
6546   with_sysroot=no
6547 fi
6548
6549
6550 lt_sysroot=
6551 case $with_sysroot in #(
6552  yes)
6553    if test yes = "$GCC"; then
6554      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6555    fi
6556    ;; #(
6557  /*)
6558    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6559    ;; #(
6560  no|'')
6561    ;; #(
6562  *)
6563    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6564 $as_echo "$with_sysroot" >&6; }
6565    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6566    ;;
6567 esac
6568
6569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6570 $as_echo "${lt_sysroot:-no}" >&6; }
6571
6572
6573
6574
6575
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6577 $as_echo_n "checking for a working dd... " >&6; }
6578 if ${ac_cv_path_lt_DD+:} false; then :
6579   $as_echo_n "(cached) " >&6
6580 else
6581   printf 0123456789abcdef0123456789abcdef >conftest.i
6582 cat conftest.i conftest.i >conftest2.i
6583 : ${lt_DD:=$DD}
6584 if test -z "$lt_DD"; then
6585   ac_path_lt_DD_found=false
6586   # Loop through the user's path and test for each of PROGNAME-LIST
6587   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6588 for as_dir in $PATH
6589 do
6590   IFS=$as_save_IFS
6591   test -z "$as_dir" && as_dir=.
6592     for ac_prog in dd; do
6593     for ac_exec_ext in '' $ac_executable_extensions; do
6594       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6595       as_fn_executable_p "$ac_path_lt_DD" || continue
6596 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6597   cmp -s conftest.i conftest.out \
6598   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6599 fi
6600       $ac_path_lt_DD_found && break 3
6601     done
6602   done
6603   done
6604 IFS=$as_save_IFS
6605   if test -z "$ac_cv_path_lt_DD"; then
6606     :
6607   fi
6608 else
6609   ac_cv_path_lt_DD=$lt_DD
6610 fi
6611
6612 rm -f conftest.i conftest2.i conftest.out
6613 fi
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6615 $as_echo "$ac_cv_path_lt_DD" >&6; }
6616
6617
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6619 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6620 if ${lt_cv_truncate_bin+:} false; then :
6621   $as_echo_n "(cached) " >&6
6622 else
6623   printf 0123456789abcdef0123456789abcdef >conftest.i
6624 cat conftest.i conftest.i >conftest2.i
6625 lt_cv_truncate_bin=
6626 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6627   cmp -s conftest.i conftest.out \
6628   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6629 fi
6630 rm -f conftest.i conftest2.i conftest.out
6631 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6632 fi
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6634 $as_echo "$lt_cv_truncate_bin" >&6; }
6635
6636
6637
6638
6639
6640
6641
6642 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6643 func_cc_basename ()
6644 {
6645     for cc_temp in $*""; do
6646       case $cc_temp in
6647         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6648         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6649         \-*) ;;
6650         *) break;;
6651       esac
6652     done
6653     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6654 }
6655
6656 # Check whether --enable-libtool-lock was given.
6657 if test "${enable_libtool_lock+set}" = set; then :
6658   enableval=$enable_libtool_lock;
6659 fi
6660
6661 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6662
6663 # Some flags need to be propagated to the compiler or linker for good
6664 # libtool support.
6665 case $host in
6666 ia64-*-hpux*)
6667   # Find out what ABI is being produced by ac_compile, and set mode
6668   # options accordingly.
6669   echo 'int i;' > conftest.$ac_ext
6670   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6671   (eval $ac_compile) 2>&5
6672   ac_status=$?
6673   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6674   test $ac_status = 0; }; then
6675     case `/usr/bin/file conftest.$ac_objext` in
6676       *ELF-32*)
6677         HPUX_IA64_MODE=32
6678         ;;
6679       *ELF-64*)
6680         HPUX_IA64_MODE=64
6681         ;;
6682     esac
6683   fi
6684   rm -rf conftest*
6685   ;;
6686 *-*-irix6*)
6687   # Find out what ABI is being produced by ac_compile, and set linker
6688   # options accordingly.
6689   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6690   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6691   (eval $ac_compile) 2>&5
6692   ac_status=$?
6693   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6694   test $ac_status = 0; }; then
6695     if test yes = "$lt_cv_prog_gnu_ld"; then
6696       case `/usr/bin/file conftest.$ac_objext` in
6697         *32-bit*)
6698           LD="${LD-ld} -melf32bsmip"
6699           ;;
6700         *N32*)
6701           LD="${LD-ld} -melf32bmipn32"
6702           ;;
6703         *64-bit*)
6704           LD="${LD-ld} -melf64bmip"
6705         ;;
6706       esac
6707     else
6708       case `/usr/bin/file conftest.$ac_objext` in
6709         *32-bit*)
6710           LD="${LD-ld} -32"
6711           ;;
6712         *N32*)
6713           LD="${LD-ld} -n32"
6714           ;;
6715         *64-bit*)
6716           LD="${LD-ld} -64"
6717           ;;
6718       esac
6719     fi
6720   fi
6721   rm -rf conftest*
6722   ;;
6723
6724 mips64*-*linux*)
6725   # Find out what ABI is being produced by ac_compile, and set linker
6726   # options accordingly.
6727   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6728   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6729   (eval $ac_compile) 2>&5
6730   ac_status=$?
6731   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6732   test $ac_status = 0; }; then
6733     emul=elf
6734     case `/usr/bin/file conftest.$ac_objext` in
6735       *32-bit*)
6736         emul="${emul}32"
6737         ;;
6738       *64-bit*)
6739         emul="${emul}64"
6740         ;;
6741     esac
6742     case `/usr/bin/file conftest.$ac_objext` in
6743       *MSB*)
6744         emul="${emul}btsmip"
6745         ;;
6746       *LSB*)
6747         emul="${emul}ltsmip"
6748         ;;
6749     esac
6750     case `/usr/bin/file conftest.$ac_objext` in
6751       *N32*)
6752         emul="${emul}n32"
6753         ;;
6754     esac
6755     LD="${LD-ld} -m $emul"
6756   fi
6757   rm -rf conftest*
6758   ;;
6759
6760 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6761 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6762   # Find out what ABI is being produced by ac_compile, and set linker
6763   # options accordingly.  Note that the listed cases only cover the
6764   # situations where additional linker options are needed (such as when
6765   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6766   # vice versa); the common cases where no linker options are needed do
6767   # not appear in the list.
6768   echo 'int i;' > conftest.$ac_ext
6769   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6770   (eval $ac_compile) 2>&5
6771   ac_status=$?
6772   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6773   test $ac_status = 0; }; then
6774     case `/usr/bin/file conftest.o` in
6775       *32-bit*)
6776         case $host in
6777           x86_64-*kfreebsd*-gnu)
6778             LD="${LD-ld} -m elf_i386_fbsd"
6779             ;;
6780           x86_64-*linux*)
6781             case `/usr/bin/file conftest.o` in
6782               *x86-64*)
6783                 LD="${LD-ld} -m elf32_x86_64"
6784                 ;;
6785               *)
6786                 LD="${LD-ld} -m elf_i386"
6787                 ;;
6788             esac
6789             ;;
6790           powerpc64le-*linux*)
6791             LD="${LD-ld} -m elf32lppclinux"
6792             ;;
6793           powerpc64-*linux*)
6794             LD="${LD-ld} -m elf32ppclinux"
6795             ;;
6796           s390x-*linux*)
6797             LD="${LD-ld} -m elf_s390"
6798             ;;
6799           sparc64-*linux*)
6800             LD="${LD-ld} -m elf32_sparc"
6801             ;;
6802         esac
6803         ;;
6804       *64-bit*)
6805         case $host in
6806           x86_64-*kfreebsd*-gnu)
6807             LD="${LD-ld} -m elf_x86_64_fbsd"
6808             ;;
6809           x86_64-*linux*)
6810             LD="${LD-ld} -m elf_x86_64"
6811             ;;
6812           powerpcle-*linux*)
6813             LD="${LD-ld} -m elf64lppc"
6814             ;;
6815           powerpc-*linux*)
6816             LD="${LD-ld} -m elf64ppc"
6817             ;;
6818           s390*-*linux*|s390*-*tpf*)
6819             LD="${LD-ld} -m elf64_s390"
6820             ;;
6821           sparc*-*linux*)
6822             LD="${LD-ld} -m elf64_sparc"
6823             ;;
6824         esac
6825         ;;
6826     esac
6827   fi
6828   rm -rf conftest*
6829   ;;
6830
6831 *-*-sco3.2v5*)
6832   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6833   SAVE_CFLAGS=$CFLAGS
6834   CFLAGS="$CFLAGS -belf"
6835   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6836 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6837 if ${lt_cv_cc_needs_belf+:} false; then :
6838   $as_echo_n "(cached) " >&6
6839 else
6840   ac_ext=c
6841 ac_cpp='$CPP $CPPFLAGS'
6842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6845
6846      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6847 /* end confdefs.h.  */
6848
6849 int
6850 main ()
6851 {
6852
6853   ;
6854   return 0;
6855 }
6856 _ACEOF
6857 if ac_fn_c_try_link "$LINENO"; then :
6858   lt_cv_cc_needs_belf=yes
6859 else
6860   lt_cv_cc_needs_belf=no
6861 fi
6862 rm -f core conftest.err conftest.$ac_objext \
6863     conftest$ac_exeext conftest.$ac_ext
6864      ac_ext=c
6865 ac_cpp='$CPP $CPPFLAGS'
6866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6869
6870 fi
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6872 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6873   if test yes != "$lt_cv_cc_needs_belf"; then
6874     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6875     CFLAGS=$SAVE_CFLAGS
6876   fi
6877   ;;
6878 *-*solaris*)
6879   # Find out what ABI is being produced by ac_compile, and set linker
6880   # options accordingly.
6881   echo 'int i;' > conftest.$ac_ext
6882   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6883   (eval $ac_compile) 2>&5
6884   ac_status=$?
6885   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6886   test $ac_status = 0; }; then
6887     case `/usr/bin/file conftest.o` in
6888     *64-bit*)
6889       case $lt_cv_prog_gnu_ld in
6890       yes*)
6891         case $host in
6892         i?86-*-solaris*|x86_64-*-solaris*)
6893           LD="${LD-ld} -m elf_x86_64"
6894           ;;
6895         sparc*-*-solaris*)
6896           LD="${LD-ld} -m elf64_sparc"
6897           ;;
6898         esac
6899         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6900         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6901           LD=${LD-ld}_sol2
6902         fi
6903         ;;
6904       *)
6905         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6906           LD="${LD-ld} -64"
6907         fi
6908         ;;
6909       esac
6910       ;;
6911     esac
6912   fi
6913   rm -rf conftest*
6914   ;;
6915 esac
6916
6917 need_locks=$enable_libtool_lock
6918
6919 if test -n "$ac_tool_prefix"; then
6920   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6921 set dummy ${ac_tool_prefix}mt; ac_word=$2
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6923 $as_echo_n "checking for $ac_word... " >&6; }
6924 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6925   $as_echo_n "(cached) " >&6
6926 else
6927   if test -n "$MANIFEST_TOOL"; then
6928   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6929 else
6930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6931 for as_dir in $PATH
6932 do
6933   IFS=$as_save_IFS
6934   test -z "$as_dir" && as_dir=.
6935     for ac_exec_ext in '' $ac_executable_extensions; do
6936   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6937     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6938     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6939     break 2
6940   fi
6941 done
6942   done
6943 IFS=$as_save_IFS
6944
6945 fi
6946 fi
6947 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6948 if test -n "$MANIFEST_TOOL"; then
6949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6950 $as_echo "$MANIFEST_TOOL" >&6; }
6951 else
6952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6953 $as_echo "no" >&6; }
6954 fi
6955
6956
6957 fi
6958 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6959   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6960   # Extract the first word of "mt", so it can be a program name with args.
6961 set dummy mt; ac_word=$2
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6963 $as_echo_n "checking for $ac_word... " >&6; }
6964 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6965   $as_echo_n "(cached) " >&6
6966 else
6967   if test -n "$ac_ct_MANIFEST_TOOL"; then
6968   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6969 else
6970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6971 for as_dir in $PATH
6972 do
6973   IFS=$as_save_IFS
6974   test -z "$as_dir" && as_dir=.
6975     for ac_exec_ext in '' $ac_executable_extensions; do
6976   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6977     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6978     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6979     break 2
6980   fi
6981 done
6982   done
6983 IFS=$as_save_IFS
6984
6985 fi
6986 fi
6987 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6988 if test -n "$ac_ct_MANIFEST_TOOL"; then
6989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6990 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6991 else
6992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6993 $as_echo "no" >&6; }
6994 fi
6995
6996   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6997     MANIFEST_TOOL=":"
6998   else
6999     case $cross_compiling:$ac_tool_warned in
7000 yes:)
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7003 ac_tool_warned=yes ;;
7004 esac
7005     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7006   fi
7007 else
7008   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7009 fi
7010
7011 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7013 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7014 if ${lt_cv_path_mainfest_tool+:} false; then :
7015   $as_echo_n "(cached) " >&6
7016 else
7017   lt_cv_path_mainfest_tool=no
7018   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7019   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7020   cat conftest.err >&5
7021   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7022     lt_cv_path_mainfest_tool=yes
7023   fi
7024   rm -f conftest*
7025 fi
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7027 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7028 if test yes != "$lt_cv_path_mainfest_tool"; then
7029   MANIFEST_TOOL=:
7030 fi
7031
7032
7033
7034
7035
7036
7037   case $host_os in
7038     rhapsody* | darwin*)
7039     if test -n "$ac_tool_prefix"; then
7040   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7041 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7043 $as_echo_n "checking for $ac_word... " >&6; }
7044 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7045   $as_echo_n "(cached) " >&6
7046 else
7047   if test -n "$DSYMUTIL"; then
7048   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7049 else
7050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7051 for as_dir in $PATH
7052 do
7053   IFS=$as_save_IFS
7054   test -z "$as_dir" && as_dir=.
7055     for ac_exec_ext in '' $ac_executable_extensions; do
7056   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7057     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7058     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7059     break 2
7060   fi
7061 done
7062   done
7063 IFS=$as_save_IFS
7064
7065 fi
7066 fi
7067 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7068 if test -n "$DSYMUTIL"; then
7069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7070 $as_echo "$DSYMUTIL" >&6; }
7071 else
7072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7073 $as_echo "no" >&6; }
7074 fi
7075
7076
7077 fi
7078 if test -z "$ac_cv_prog_DSYMUTIL"; then
7079   ac_ct_DSYMUTIL=$DSYMUTIL
7080   # Extract the first word of "dsymutil", so it can be a program name with args.
7081 set dummy dsymutil; ac_word=$2
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7083 $as_echo_n "checking for $ac_word... " >&6; }
7084 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7085   $as_echo_n "(cached) " >&6
7086 else
7087   if test -n "$ac_ct_DSYMUTIL"; then
7088   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7089 else
7090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7091 for as_dir in $PATH
7092 do
7093   IFS=$as_save_IFS
7094   test -z "$as_dir" && as_dir=.
7095     for ac_exec_ext in '' $ac_executable_extensions; do
7096   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7097     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7098     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7099     break 2
7100   fi
7101 done
7102   done
7103 IFS=$as_save_IFS
7104
7105 fi
7106 fi
7107 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7108 if test -n "$ac_ct_DSYMUTIL"; then
7109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7110 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7111 else
7112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7113 $as_echo "no" >&6; }
7114 fi
7115
7116   if test "x$ac_ct_DSYMUTIL" = x; then
7117     DSYMUTIL=":"
7118   else
7119     case $cross_compiling:$ac_tool_warned in
7120 yes:)
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7122 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7123 ac_tool_warned=yes ;;
7124 esac
7125     DSYMUTIL=$ac_ct_DSYMUTIL
7126   fi
7127 else
7128   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7129 fi
7130
7131     if test -n "$ac_tool_prefix"; then
7132   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7133 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7135 $as_echo_n "checking for $ac_word... " >&6; }
7136 if ${ac_cv_prog_NMEDIT+:} false; then :
7137   $as_echo_n "(cached) " >&6
7138 else
7139   if test -n "$NMEDIT"; then
7140   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7141 else
7142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7143 for as_dir in $PATH
7144 do
7145   IFS=$as_save_IFS
7146   test -z "$as_dir" && as_dir=.
7147     for ac_exec_ext in '' $ac_executable_extensions; do
7148   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7149     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7150     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7151     break 2
7152   fi
7153 done
7154   done
7155 IFS=$as_save_IFS
7156
7157 fi
7158 fi
7159 NMEDIT=$ac_cv_prog_NMEDIT
7160 if test -n "$NMEDIT"; then
7161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7162 $as_echo "$NMEDIT" >&6; }
7163 else
7164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7165 $as_echo "no" >&6; }
7166 fi
7167
7168
7169 fi
7170 if test -z "$ac_cv_prog_NMEDIT"; then
7171   ac_ct_NMEDIT=$NMEDIT
7172   # Extract the first word of "nmedit", so it can be a program name with args.
7173 set dummy nmedit; ac_word=$2
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7175 $as_echo_n "checking for $ac_word... " >&6; }
7176 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7177   $as_echo_n "(cached) " >&6
7178 else
7179   if test -n "$ac_ct_NMEDIT"; then
7180   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7181 else
7182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7183 for as_dir in $PATH
7184 do
7185   IFS=$as_save_IFS
7186   test -z "$as_dir" && as_dir=.
7187     for ac_exec_ext in '' $ac_executable_extensions; do
7188   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7189     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7190     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7191     break 2
7192   fi
7193 done
7194   done
7195 IFS=$as_save_IFS
7196
7197 fi
7198 fi
7199 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7200 if test -n "$ac_ct_NMEDIT"; then
7201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7202 $as_echo "$ac_ct_NMEDIT" >&6; }
7203 else
7204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7205 $as_echo "no" >&6; }
7206 fi
7207
7208   if test "x$ac_ct_NMEDIT" = x; then
7209     NMEDIT=":"
7210   else
7211     case $cross_compiling:$ac_tool_warned in
7212 yes:)
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7214 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7215 ac_tool_warned=yes ;;
7216 esac
7217     NMEDIT=$ac_ct_NMEDIT
7218   fi
7219 else
7220   NMEDIT="$ac_cv_prog_NMEDIT"
7221 fi
7222
7223     if test -n "$ac_tool_prefix"; then
7224   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7225 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7227 $as_echo_n "checking for $ac_word... " >&6; }
7228 if ${ac_cv_prog_LIPO+:} false; then :
7229   $as_echo_n "(cached) " >&6
7230 else
7231   if test -n "$LIPO"; then
7232   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7233 else
7234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7235 for as_dir in $PATH
7236 do
7237   IFS=$as_save_IFS
7238   test -z "$as_dir" && as_dir=.
7239     for ac_exec_ext in '' $ac_executable_extensions; do
7240   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7241     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7242     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7243     break 2
7244   fi
7245 done
7246   done
7247 IFS=$as_save_IFS
7248
7249 fi
7250 fi
7251 LIPO=$ac_cv_prog_LIPO
7252 if test -n "$LIPO"; then
7253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7254 $as_echo "$LIPO" >&6; }
7255 else
7256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7257 $as_echo "no" >&6; }
7258 fi
7259
7260
7261 fi
7262 if test -z "$ac_cv_prog_LIPO"; then
7263   ac_ct_LIPO=$LIPO
7264   # Extract the first word of "lipo", so it can be a program name with args.
7265 set dummy lipo; ac_word=$2
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7267 $as_echo_n "checking for $ac_word... " >&6; }
7268 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7269   $as_echo_n "(cached) " >&6
7270 else
7271   if test -n "$ac_ct_LIPO"; then
7272   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7273 else
7274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7275 for as_dir in $PATH
7276 do
7277   IFS=$as_save_IFS
7278   test -z "$as_dir" && as_dir=.
7279     for ac_exec_ext in '' $ac_executable_extensions; do
7280   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7281     ac_cv_prog_ac_ct_LIPO="lipo"
7282     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7283     break 2
7284   fi
7285 done
7286   done
7287 IFS=$as_save_IFS
7288
7289 fi
7290 fi
7291 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7292 if test -n "$ac_ct_LIPO"; then
7293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7294 $as_echo "$ac_ct_LIPO" >&6; }
7295 else
7296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7297 $as_echo "no" >&6; }
7298 fi
7299
7300   if test "x$ac_ct_LIPO" = x; then
7301     LIPO=":"
7302   else
7303     case $cross_compiling:$ac_tool_warned in
7304 yes:)
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7306 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7307 ac_tool_warned=yes ;;
7308 esac
7309     LIPO=$ac_ct_LIPO
7310   fi
7311 else
7312   LIPO="$ac_cv_prog_LIPO"
7313 fi
7314
7315     if test -n "$ac_tool_prefix"; then
7316   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7317 set dummy ${ac_tool_prefix}otool; ac_word=$2
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7319 $as_echo_n "checking for $ac_word... " >&6; }
7320 if ${ac_cv_prog_OTOOL+:} false; then :
7321   $as_echo_n "(cached) " >&6
7322 else
7323   if test -n "$OTOOL"; then
7324   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7325 else
7326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7327 for as_dir in $PATH
7328 do
7329   IFS=$as_save_IFS
7330   test -z "$as_dir" && as_dir=.
7331     for ac_exec_ext in '' $ac_executable_extensions; do
7332   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7333     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7334     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7335     break 2
7336   fi
7337 done
7338   done
7339 IFS=$as_save_IFS
7340
7341 fi
7342 fi
7343 OTOOL=$ac_cv_prog_OTOOL
7344 if test -n "$OTOOL"; then
7345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7346 $as_echo "$OTOOL" >&6; }
7347 else
7348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7349 $as_echo "no" >&6; }
7350 fi
7351
7352
7353 fi
7354 if test -z "$ac_cv_prog_OTOOL"; then
7355   ac_ct_OTOOL=$OTOOL
7356   # Extract the first word of "otool", so it can be a program name with args.
7357 set dummy otool; ac_word=$2
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7359 $as_echo_n "checking for $ac_word... " >&6; }
7360 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7361   $as_echo_n "(cached) " >&6
7362 else
7363   if test -n "$ac_ct_OTOOL"; then
7364   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7365 else
7366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7367 for as_dir in $PATH
7368 do
7369   IFS=$as_save_IFS
7370   test -z "$as_dir" && as_dir=.
7371     for ac_exec_ext in '' $ac_executable_extensions; do
7372   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7373     ac_cv_prog_ac_ct_OTOOL="otool"
7374     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7375     break 2
7376   fi
7377 done
7378   done
7379 IFS=$as_save_IFS
7380
7381 fi
7382 fi
7383 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7384 if test -n "$ac_ct_OTOOL"; then
7385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7386 $as_echo "$ac_ct_OTOOL" >&6; }
7387 else
7388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7389 $as_echo "no" >&6; }
7390 fi
7391
7392   if test "x$ac_ct_OTOOL" = x; then
7393     OTOOL=":"
7394   else
7395     case $cross_compiling:$ac_tool_warned in
7396 yes:)
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7398 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7399 ac_tool_warned=yes ;;
7400 esac
7401     OTOOL=$ac_ct_OTOOL
7402   fi
7403 else
7404   OTOOL="$ac_cv_prog_OTOOL"
7405 fi
7406
7407     if test -n "$ac_tool_prefix"; then
7408   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7409 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7411 $as_echo_n "checking for $ac_word... " >&6; }
7412 if ${ac_cv_prog_OTOOL64+:} false; then :
7413   $as_echo_n "(cached) " >&6
7414 else
7415   if test -n "$OTOOL64"; then
7416   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7417 else
7418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7419 for as_dir in $PATH
7420 do
7421   IFS=$as_save_IFS
7422   test -z "$as_dir" && as_dir=.
7423     for ac_exec_ext in '' $ac_executable_extensions; do
7424   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7425     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7426     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7427     break 2
7428   fi
7429 done
7430   done
7431 IFS=$as_save_IFS
7432
7433 fi
7434 fi
7435 OTOOL64=$ac_cv_prog_OTOOL64
7436 if test -n "$OTOOL64"; then
7437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7438 $as_echo "$OTOOL64" >&6; }
7439 else
7440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7441 $as_echo "no" >&6; }
7442 fi
7443
7444
7445 fi
7446 if test -z "$ac_cv_prog_OTOOL64"; then
7447   ac_ct_OTOOL64=$OTOOL64
7448   # Extract the first word of "otool64", so it can be a program name with args.
7449 set dummy otool64; ac_word=$2
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7451 $as_echo_n "checking for $ac_word... " >&6; }
7452 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7453   $as_echo_n "(cached) " >&6
7454 else
7455   if test -n "$ac_ct_OTOOL64"; then
7456   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7457 else
7458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7459 for as_dir in $PATH
7460 do
7461   IFS=$as_save_IFS
7462   test -z "$as_dir" && as_dir=.
7463     for ac_exec_ext in '' $ac_executable_extensions; do
7464   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7465     ac_cv_prog_ac_ct_OTOOL64="otool64"
7466     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7467     break 2
7468   fi
7469 done
7470   done
7471 IFS=$as_save_IFS
7472
7473 fi
7474 fi
7475 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7476 if test -n "$ac_ct_OTOOL64"; then
7477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7478 $as_echo "$ac_ct_OTOOL64" >&6; }
7479 else
7480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7481 $as_echo "no" >&6; }
7482 fi
7483
7484   if test "x$ac_ct_OTOOL64" = x; then
7485     OTOOL64=":"
7486   else
7487     case $cross_compiling:$ac_tool_warned in
7488 yes:)
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7490 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7491 ac_tool_warned=yes ;;
7492 esac
7493     OTOOL64=$ac_ct_OTOOL64
7494   fi
7495 else
7496   OTOOL64="$ac_cv_prog_OTOOL64"
7497 fi
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7526 $as_echo_n "checking for -single_module linker flag... " >&6; }
7527 if ${lt_cv_apple_cc_single_mod+:} false; then :
7528   $as_echo_n "(cached) " >&6
7529 else
7530   lt_cv_apple_cc_single_mod=no
7531       if test -z "$LT_MULTI_MODULE"; then
7532         # By default we will add the -single_module flag. You can override
7533         # by either setting the environment variable LT_MULTI_MODULE
7534         # non-empty at configure time, or by adding -multi_module to the
7535         # link flags.
7536         rm -rf libconftest.dylib*
7537         echo "int foo(void){return 1;}" > conftest.c
7538         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7539 -dynamiclib -Wl,-single_module conftest.c" >&5
7540         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7541           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7542         _lt_result=$?
7543         # If there is a non-empty error log, and "single_module"
7544         # appears in it, assume the flag caused a linker warning
7545         if test -s conftest.err && $GREP single_module conftest.err; then
7546           cat conftest.err >&5
7547         # Otherwise, if the output was created with a 0 exit code from
7548         # the compiler, it worked.
7549         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7550           lt_cv_apple_cc_single_mod=yes
7551         else
7552           cat conftest.err >&5
7553         fi
7554         rm -rf libconftest.dylib*
7555         rm -f conftest.*
7556       fi
7557 fi
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7559 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7560
7561     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7562 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7563 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7564   $as_echo_n "(cached) " >&6
7565 else
7566   lt_cv_ld_exported_symbols_list=no
7567       save_LDFLAGS=$LDFLAGS
7568       echo "_main" > conftest.sym
7569       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7570       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7571 /* end confdefs.h.  */
7572
7573 int
7574 main ()
7575 {
7576
7577   ;
7578   return 0;
7579 }
7580 _ACEOF
7581 if ac_fn_c_try_link "$LINENO"; then :
7582   lt_cv_ld_exported_symbols_list=yes
7583 else
7584   lt_cv_ld_exported_symbols_list=no
7585 fi
7586 rm -f core conftest.err conftest.$ac_objext \
7587     conftest$ac_exeext conftest.$ac_ext
7588         LDFLAGS=$save_LDFLAGS
7589
7590 fi
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7592 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7593
7594     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7595 $as_echo_n "checking for -force_load linker flag... " >&6; }
7596 if ${lt_cv_ld_force_load+:} false; then :
7597   $as_echo_n "(cached) " >&6
7598 else
7599   lt_cv_ld_force_load=no
7600       cat > conftest.c << _LT_EOF
7601 int forced_loaded() { return 2;}
7602 _LT_EOF
7603       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7604       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7605       echo "$AR cr libconftest.a conftest.o" >&5
7606       $AR cr libconftest.a conftest.o 2>&5
7607       echo "$RANLIB libconftest.a" >&5
7608       $RANLIB libconftest.a 2>&5
7609       cat > conftest.c << _LT_EOF
7610 int main() { return 0;}
7611 _LT_EOF
7612       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7613       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7614       _lt_result=$?
7615       if test -s conftest.err && $GREP force_load conftest.err; then
7616         cat conftest.err >&5
7617       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7618         lt_cv_ld_force_load=yes
7619       else
7620         cat conftest.err >&5
7621       fi
7622         rm -f conftest.err libconftest.a conftest conftest.c
7623         rm -rf conftest.dSYM
7624
7625 fi
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7627 $as_echo "$lt_cv_ld_force_load" >&6; }
7628     case $host_os in
7629     rhapsody* | darwin1.[012])
7630       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7631     darwin1.*)
7632       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7633     darwin*) # darwin 5.x on
7634       # if running on 10.5 or later, the deployment target defaults
7635       # to the OS version, if on x86, and 10.4, the deployment
7636       # target defaults to 10.4. Don't you love it?
7637       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7638         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7639           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7640         10.[012][,.]*)
7641           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7642         10.*)
7643           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7644       esac
7645     ;;
7646   esac
7647     if test yes = "$lt_cv_apple_cc_single_mod"; then
7648       _lt_dar_single_mod='$single_module'
7649     fi
7650     if test yes = "$lt_cv_ld_exported_symbols_list"; then
7651       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7652     else
7653       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7654     fi
7655     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7656       _lt_dsymutil='~$DSYMUTIL $lib || :'
7657     else
7658       _lt_dsymutil=
7659     fi
7660     ;;
7661   esac
7662
7663 # func_munge_path_list VARIABLE PATH
7664 # -----------------------------------
7665 # VARIABLE is name of variable containing _space_ separated list of
7666 # directories to be munged by the contents of PATH, which is string
7667 # having a format:
7668 # "DIR[:DIR]:"
7669 #       string "DIR[ DIR]" will be prepended to VARIABLE
7670 # ":DIR[:DIR]"
7671 #       string "DIR[ DIR]" will be appended to VARIABLE
7672 # "DIRP[:DIRP]::[DIRA:]DIRA"
7673 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7674 #       "DIRA[ DIRA]" will be appended to VARIABLE
7675 # "DIR[:DIR]"
7676 #       VARIABLE will be replaced by "DIR[ DIR]"
7677 func_munge_path_list ()
7678 {
7679     case x$2 in
7680     x)
7681         ;;
7682     *:)
7683         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7684         ;;
7685     x:*)
7686         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7687         ;;
7688     *::*)
7689         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7690         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7691         ;;
7692     *)
7693         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7694         ;;
7695     esac
7696 }
7697
7698 ac_ext=c
7699 ac_cpp='$CPP $CPPFLAGS'
7700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7704 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7705 # On Suns, sometimes $CPP names a directory.
7706 if test -n "$CPP" && test -d "$CPP"; then
7707   CPP=
7708 fi
7709 if test -z "$CPP"; then
7710   if ${ac_cv_prog_CPP+:} false; then :
7711   $as_echo_n "(cached) " >&6
7712 else
7713       # Double quotes because CPP needs to be expanded
7714     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7715     do
7716       ac_preproc_ok=false
7717 for ac_c_preproc_warn_flag in '' yes
7718 do
7719   # Use a header file that comes with gcc, so configuring glibc
7720   # with a fresh cross-compiler works.
7721   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7722   # <limits.h> exists even on freestanding compilers.
7723   # On the NeXT, cc -E runs the code through the compiler's parser,
7724   # not just through cpp. "Syntax error" is here to catch this case.
7725   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7726 /* end confdefs.h.  */
7727 #ifdef __STDC__
7728 # include <limits.h>
7729 #else
7730 # include <assert.h>
7731 #endif
7732                      Syntax error
7733 _ACEOF
7734 if ac_fn_c_try_cpp "$LINENO"; then :
7735
7736 else
7737   # Broken: fails on valid input.
7738 continue
7739 fi
7740 rm -f conftest.err conftest.i conftest.$ac_ext
7741
7742   # OK, works on sane cases.  Now check whether nonexistent headers
7743   # can be detected and how.
7744   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7745 /* end confdefs.h.  */
7746 #include <ac_nonexistent.h>
7747 _ACEOF
7748 if ac_fn_c_try_cpp "$LINENO"; then :
7749   # Broken: success on invalid input.
7750 continue
7751 else
7752   # Passes both tests.
7753 ac_preproc_ok=:
7754 break
7755 fi
7756 rm -f conftest.err conftest.i conftest.$ac_ext
7757
7758 done
7759 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7760 rm -f conftest.i conftest.err conftest.$ac_ext
7761 if $ac_preproc_ok; then :
7762   break
7763 fi
7764
7765     done
7766     ac_cv_prog_CPP=$CPP
7767
7768 fi
7769   CPP=$ac_cv_prog_CPP
7770 else
7771   ac_cv_prog_CPP=$CPP
7772 fi
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7774 $as_echo "$CPP" >&6; }
7775 ac_preproc_ok=false
7776 for ac_c_preproc_warn_flag in '' yes
7777 do
7778   # Use a header file that comes with gcc, so configuring glibc
7779   # with a fresh cross-compiler works.
7780   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7781   # <limits.h> exists even on freestanding compilers.
7782   # On the NeXT, cc -E runs the code through the compiler's parser,
7783   # not just through cpp. "Syntax error" is here to catch this case.
7784   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7785 /* end confdefs.h.  */
7786 #ifdef __STDC__
7787 # include <limits.h>
7788 #else
7789 # include <assert.h>
7790 #endif
7791                      Syntax error
7792 _ACEOF
7793 if ac_fn_c_try_cpp "$LINENO"; then :
7794
7795 else
7796   # Broken: fails on valid input.
7797 continue
7798 fi
7799 rm -f conftest.err conftest.i conftest.$ac_ext
7800
7801   # OK, works on sane cases.  Now check whether nonexistent headers
7802   # can be detected and how.
7803   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7804 /* end confdefs.h.  */
7805 #include <ac_nonexistent.h>
7806 _ACEOF
7807 if ac_fn_c_try_cpp "$LINENO"; then :
7808   # Broken: success on invalid input.
7809 continue
7810 else
7811   # Passes both tests.
7812 ac_preproc_ok=:
7813 break
7814 fi
7815 rm -f conftest.err conftest.i conftest.$ac_ext
7816
7817 done
7818 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7819 rm -f conftest.i conftest.err conftest.$ac_ext
7820 if $ac_preproc_ok; then :
7821
7822 else
7823   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7824 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7825 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7826 See \`config.log' for more details" "$LINENO" 5; }
7827 fi
7828
7829 ac_ext=c
7830 ac_cpp='$CPP $CPPFLAGS'
7831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7834
7835
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7837 $as_echo_n "checking for ANSI C header files... " >&6; }
7838 if ${ac_cv_header_stdc+:} false; then :
7839   $as_echo_n "(cached) " >&6
7840 else
7841   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7842 /* end confdefs.h.  */
7843 #include <stdlib.h>
7844 #include <stdarg.h>
7845 #include <string.h>
7846 #include <float.h>
7847
7848 int
7849 main ()
7850 {
7851
7852   ;
7853   return 0;
7854 }
7855 _ACEOF
7856 if ac_fn_c_try_compile "$LINENO"; then :
7857   ac_cv_header_stdc=yes
7858 else
7859   ac_cv_header_stdc=no
7860 fi
7861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7862
7863 if test $ac_cv_header_stdc = yes; then
7864   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7865   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7866 /* end confdefs.h.  */
7867 #include <string.h>
7868
7869 _ACEOF
7870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7871   $EGREP "memchr" >/dev/null 2>&1; then :
7872
7873 else
7874   ac_cv_header_stdc=no
7875 fi
7876 rm -f conftest*
7877
7878 fi
7879
7880 if test $ac_cv_header_stdc = yes; then
7881   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7882   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7883 /* end confdefs.h.  */
7884 #include <stdlib.h>
7885
7886 _ACEOF
7887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7888   $EGREP "free" >/dev/null 2>&1; then :
7889
7890 else
7891   ac_cv_header_stdc=no
7892 fi
7893 rm -f conftest*
7894
7895 fi
7896
7897 if test $ac_cv_header_stdc = yes; then
7898   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7899   if test "$cross_compiling" = yes; then :
7900   :
7901 else
7902   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7903 /* end confdefs.h.  */
7904 #include <ctype.h>
7905 #include <stdlib.h>
7906 #if ((' ' & 0x0FF) == 0x020)
7907 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7908 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7909 #else
7910 # define ISLOWER(c) \
7911                    (('a' <= (c) && (c) <= 'i') \
7912                      || ('j' <= (c) && (c) <= 'r') \
7913                      || ('s' <= (c) && (c) <= 'z'))
7914 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7915 #endif
7916
7917 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7918 int
7919 main ()
7920 {
7921   int i;
7922   for (i = 0; i < 256; i++)
7923     if (XOR (islower (i), ISLOWER (i))
7924         || toupper (i) != TOUPPER (i))
7925       return 2;
7926   return 0;
7927 }
7928 _ACEOF
7929 if ac_fn_c_try_run "$LINENO"; then :
7930
7931 else
7932   ac_cv_header_stdc=no
7933 fi
7934 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7935   conftest.$ac_objext conftest.beam conftest.$ac_ext
7936 fi
7937
7938 fi
7939 fi
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7941 $as_echo "$ac_cv_header_stdc" >&6; }
7942 if test $ac_cv_header_stdc = yes; then
7943
7944 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7945
7946 fi
7947
7948 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7949 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7950                   inttypes.h stdint.h unistd.h
7951 do :
7952   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7953 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7954 "
7955 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7956   cat >>confdefs.h <<_ACEOF
7957 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7958 _ACEOF
7959
7960 fi
7961
7962 done
7963
7964
7965 for ac_header in dlfcn.h
7966 do :
7967   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7968 "
7969 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7970   cat >>confdefs.h <<_ACEOF
7971 #define HAVE_DLFCN_H 1
7972 _ACEOF
7973
7974 fi
7975
7976 done
7977
7978
7979
7980
7981
7982 # Set options
7983
7984
7985
7986         enable_dlopen=no
7987
7988
7989   enable_win32_dll=no
7990
7991
7992             # Check whether --enable-shared was given.
7993 if test "${enable_shared+set}" = set; then :
7994   enableval=$enable_shared; p=${PACKAGE-default}
7995     case $enableval in
7996     yes) enable_shared=yes ;;
7997     no) enable_shared=no ;;
7998     *)
7999       enable_shared=no
8000       # Look at the argument we got.  We use all the common list separators.
8001       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8002       for pkg in $enableval; do
8003         IFS=$lt_save_ifs
8004         if test "X$pkg" = "X$p"; then
8005           enable_shared=yes
8006         fi
8007       done
8008       IFS=$lt_save_ifs
8009       ;;
8010     esac
8011 else
8012   enable_shared=yes
8013 fi
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023   # Check whether --enable-static was given.
8024 if test "${enable_static+set}" = set; then :
8025   enableval=$enable_static; p=${PACKAGE-default}
8026     case $enableval in
8027     yes) enable_static=yes ;;
8028     no) enable_static=no ;;
8029     *)
8030      enable_static=no
8031       # Look at the argument we got.  We use all the common list separators.
8032       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8033       for pkg in $enableval; do
8034         IFS=$lt_save_ifs
8035         if test "X$pkg" = "X$p"; then
8036           enable_static=yes
8037         fi
8038       done
8039       IFS=$lt_save_ifs
8040       ;;
8041     esac
8042 else
8043   enable_static=yes
8044 fi
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055 # Check whether --with-pic was given.
8056 if test "${with_pic+set}" = set; then :
8057   withval=$with_pic; lt_p=${PACKAGE-default}
8058     case $withval in
8059     yes|no) pic_mode=$withval ;;
8060     *)
8061       pic_mode=default
8062       # Look at the argument we got.  We use all the common list separators.
8063       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8064       for lt_pkg in $withval; do
8065         IFS=$lt_save_ifs
8066         if test "X$lt_pkg" = "X$lt_p"; then
8067           pic_mode=yes
8068         fi
8069       done
8070       IFS=$lt_save_ifs
8071       ;;
8072     esac
8073 else
8074   pic_mode=default
8075 fi
8076
8077
8078
8079
8080
8081
8082
8083
8084   # Check whether --enable-fast-install was given.
8085 if test "${enable_fast_install+set}" = set; then :
8086   enableval=$enable_fast_install; p=${PACKAGE-default}
8087     case $enableval in
8088     yes) enable_fast_install=yes ;;
8089     no) enable_fast_install=no ;;
8090     *)
8091       enable_fast_install=no
8092       # Look at the argument we got.  We use all the common list separators.
8093       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8094       for pkg in $enableval; do
8095         IFS=$lt_save_ifs
8096         if test "X$pkg" = "X$p"; then
8097           enable_fast_install=yes
8098         fi
8099       done
8100       IFS=$lt_save_ifs
8101       ;;
8102     esac
8103 else
8104   enable_fast_install=yes
8105 fi
8106
8107
8108
8109
8110
8111
8112
8113
8114   shared_archive_member_spec=
8115 case $host,$enable_shared in
8116 power*-*-aix[5-9]*,yes)
8117   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8118 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8119
8120 # Check whether --with-aix-soname was given.
8121 if test "${with_aix_soname+set}" = set; then :
8122   withval=$with_aix_soname; case $withval in
8123     aix|svr4|both)
8124       ;;
8125     *)
8126       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8127       ;;
8128     esac
8129     lt_cv_with_aix_soname=$with_aix_soname
8130 else
8131   if ${lt_cv_with_aix_soname+:} false; then :
8132   $as_echo_n "(cached) " >&6
8133 else
8134   lt_cv_with_aix_soname=aix
8135 fi
8136
8137     with_aix_soname=$lt_cv_with_aix_soname
8138 fi
8139
8140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8141 $as_echo "$with_aix_soname" >&6; }
8142   if test aix != "$with_aix_soname"; then
8143     # For the AIX way of multilib, we name the shared archive member
8144     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8145     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8146     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8147     # the AIX toolchain works better with OBJECT_MODE set (default 32).
8148     if test 64 = "${OBJECT_MODE-32}"; then
8149       shared_archive_member_spec=shr_64
8150     else
8151       shared_archive_member_spec=shr
8152     fi
8153   fi
8154   ;;
8155 *)
8156   with_aix_soname=aix
8157   ;;
8158 esac
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169 # This can be used to rebuild libtool when needed
8170 LIBTOOL_DEPS=$ltmain
8171
8172 # Always use our own libtool.
8173 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204 test -z "$LN_S" && LN_S="ln -s"
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219 if test -n "${ZSH_VERSION+set}"; then
8220    setopt NO_GLOB_SUBST
8221 fi
8222
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8224 $as_echo_n "checking for objdir... " >&6; }
8225 if ${lt_cv_objdir+:} false; then :
8226   $as_echo_n "(cached) " >&6
8227 else
8228   rm -f .libs 2>/dev/null
8229 mkdir .libs 2>/dev/null
8230 if test -d .libs; then
8231   lt_cv_objdir=.libs
8232 else
8233   # MS-DOS does not allow filenames that begin with a dot.
8234   lt_cv_objdir=_libs
8235 fi
8236 rmdir .libs 2>/dev/null
8237 fi
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8239 $as_echo "$lt_cv_objdir" >&6; }
8240 objdir=$lt_cv_objdir
8241
8242
8243
8244
8245
8246 cat >>confdefs.h <<_ACEOF
8247 #define LT_OBJDIR "$lt_cv_objdir/"
8248 _ACEOF
8249
8250
8251
8252
8253 case $host_os in
8254 aix3*)
8255   # AIX sometimes has problems with the GCC collect2 program.  For some
8256   # reason, if we set the COLLECT_NAMES environment variable, the problems
8257   # vanish in a puff of smoke.
8258   if test set != "${COLLECT_NAMES+set}"; then
8259     COLLECT_NAMES=
8260     export COLLECT_NAMES
8261   fi
8262   ;;
8263 esac
8264
8265 # Global variables:
8266 ofile=libtool
8267 can_build_shared=yes
8268
8269 # All known linkers require a '.a' archive for static linking (except MSVC,
8270 # which needs '.lib').
8271 libext=a
8272
8273 with_gnu_ld=$lt_cv_prog_gnu_ld
8274
8275 old_CC=$CC
8276 old_CFLAGS=$CFLAGS
8277
8278 # Set sane defaults for various variables
8279 test -z "$CC" && CC=cc
8280 test -z "$LTCC" && LTCC=$CC
8281 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8282 test -z "$LD" && LD=ld
8283 test -z "$ac_objext" && ac_objext=o
8284
8285 func_cc_basename $compiler
8286 cc_basename=$func_cc_basename_result
8287
8288
8289 # Only perform the check for file, if the check method requires it
8290 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8291 case $deplibs_check_method in
8292 file_magic*)
8293   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8294     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8295 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8296 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8297   $as_echo_n "(cached) " >&6
8298 else
8299   case $MAGIC_CMD in
8300 [\\/*] |  ?:[\\/]*)
8301   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8302   ;;
8303 *)
8304   lt_save_MAGIC_CMD=$MAGIC_CMD
8305   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8306   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8307   for ac_dir in $ac_dummy; do
8308     IFS=$lt_save_ifs
8309     test -z "$ac_dir" && ac_dir=.
8310     if test -f "$ac_dir/${ac_tool_prefix}file"; then
8311       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8312       if test -n "$file_magic_test_file"; then
8313         case $deplibs_check_method in
8314         "file_magic "*)
8315           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8316           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8317           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8318             $EGREP "$file_magic_regex" > /dev/null; then
8319             :
8320           else
8321             cat <<_LT_EOF 1>&2
8322
8323 *** Warning: the command libtool uses to detect shared libraries,
8324 *** $file_magic_cmd, produces output that libtool cannot recognize.
8325 *** The result is that libtool may fail to recognize shared libraries
8326 *** as such.  This will affect the creation of libtool libraries that
8327 *** depend on shared libraries, but programs linked with such libtool
8328 *** libraries will work regardless of this problem.  Nevertheless, you
8329 *** may want to report the problem to your system manager and/or to
8330 *** bug-libtool@gnu.org
8331
8332 _LT_EOF
8333           fi ;;
8334         esac
8335       fi
8336       break
8337     fi
8338   done
8339   IFS=$lt_save_ifs
8340   MAGIC_CMD=$lt_save_MAGIC_CMD
8341   ;;
8342 esac
8343 fi
8344
8345 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8346 if test -n "$MAGIC_CMD"; then
8347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8348 $as_echo "$MAGIC_CMD" >&6; }
8349 else
8350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8351 $as_echo "no" >&6; }
8352 fi
8353
8354
8355
8356
8357
8358 if test -z "$lt_cv_path_MAGIC_CMD"; then
8359   if test -n "$ac_tool_prefix"; then
8360     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8361 $as_echo_n "checking for file... " >&6; }
8362 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8363   $as_echo_n "(cached) " >&6
8364 else
8365   case $MAGIC_CMD in
8366 [\\/*] |  ?:[\\/]*)
8367   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8368   ;;
8369 *)
8370   lt_save_MAGIC_CMD=$MAGIC_CMD
8371   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8372   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8373   for ac_dir in $ac_dummy; do
8374     IFS=$lt_save_ifs
8375     test -z "$ac_dir" && ac_dir=.
8376     if test -f "$ac_dir/file"; then
8377       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8378       if test -n "$file_magic_test_file"; then
8379         case $deplibs_check_method in
8380         "file_magic "*)
8381           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8382           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8383           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8384             $EGREP "$file_magic_regex" > /dev/null; then
8385             :
8386           else
8387             cat <<_LT_EOF 1>&2
8388
8389 *** Warning: the command libtool uses to detect shared libraries,
8390 *** $file_magic_cmd, produces output that libtool cannot recognize.
8391 *** The result is that libtool may fail to recognize shared libraries
8392 *** as such.  This will affect the creation of libtool libraries that
8393 *** depend on shared libraries, but programs linked with such libtool
8394 *** libraries will work regardless of this problem.  Nevertheless, you
8395 *** may want to report the problem to your system manager and/or to
8396 *** bug-libtool@gnu.org
8397
8398 _LT_EOF
8399           fi ;;
8400         esac
8401       fi
8402       break
8403     fi
8404   done
8405   IFS=$lt_save_ifs
8406   MAGIC_CMD=$lt_save_MAGIC_CMD
8407   ;;
8408 esac
8409 fi
8410
8411 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8412 if test -n "$MAGIC_CMD"; then
8413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8414 $as_echo "$MAGIC_CMD" >&6; }
8415 else
8416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8417 $as_echo "no" >&6; }
8418 fi
8419
8420
8421   else
8422     MAGIC_CMD=:
8423   fi
8424 fi
8425
8426   fi
8427   ;;
8428 esac
8429
8430 # Use C for the default configuration in the libtool script
8431
8432 lt_save_CC=$CC
8433 ac_ext=c
8434 ac_cpp='$CPP $CPPFLAGS'
8435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8438
8439
8440 # Source file extension for C test sources.
8441 ac_ext=c
8442
8443 # Object file extension for compiled C test sources.
8444 objext=o
8445 objext=$objext
8446
8447 # Code to be used in simple compile tests
8448 lt_simple_compile_test_code="int some_variable = 0;"
8449
8450 # Code to be used in simple link tests
8451 lt_simple_link_test_code='int main(){return(0);}'
8452
8453
8454
8455
8456
8457
8458
8459 # If no C compiler was specified, use CC.
8460 LTCC=${LTCC-"$CC"}
8461
8462 # If no C compiler flags were specified, use CFLAGS.
8463 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8464
8465 # Allow CC to be a program name with arguments.
8466 compiler=$CC
8467
8468 # Save the default compiler, since it gets overwritten when the other
8469 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8470 compiler_DEFAULT=$CC
8471
8472 # save warnings/boilerplate of simple test code
8473 ac_outfile=conftest.$ac_objext
8474 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8475 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8476 _lt_compiler_boilerplate=`cat conftest.err`
8477 $RM conftest*
8478
8479 ac_outfile=conftest.$ac_objext
8480 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8481 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8482 _lt_linker_boilerplate=`cat conftest.err`
8483 $RM -r conftest*
8484
8485
8486 ## CAVEAT EMPTOR:
8487 ## There is no encapsulation within the following macros, do not change
8488 ## the running order or otherwise move them around unless you know exactly
8489 ## what you are doing...
8490 if test -n "$compiler"; then
8491
8492 lt_prog_compiler_no_builtin_flag=
8493
8494 if test yes = "$GCC"; then
8495   case $cc_basename in
8496   nvcc*)
8497     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8498   *)
8499     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8500   esac
8501
8502   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8503 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8504 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8505   $as_echo_n "(cached) " >&6
8506 else
8507   lt_cv_prog_compiler_rtti_exceptions=no
8508    ac_outfile=conftest.$ac_objext
8509    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8510    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8511    # Insert the option either (1) after the last *FLAGS variable, or
8512    # (2) before a word containing "conftest.", or (3) at the end.
8513    # Note that $ac_compile itself does not contain backslashes and begins
8514    # with a dollar sign (not a hyphen), so the echo should work correctly.
8515    # The option is referenced via a variable to avoid confusing sed.
8516    lt_compile=`echo "$ac_compile" | $SED \
8517    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8518    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8519    -e 's:$: $lt_compiler_flag:'`
8520    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8521    (eval "$lt_compile" 2>conftest.err)
8522    ac_status=$?
8523    cat conftest.err >&5
8524    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525    if (exit $ac_status) && test -s "$ac_outfile"; then
8526      # The compiler can only warn and ignore the option if not recognized
8527      # So say no if there are warnings other than the usual output.
8528      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8529      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8530      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8531        lt_cv_prog_compiler_rtti_exceptions=yes
8532      fi
8533    fi
8534    $RM conftest*
8535
8536 fi
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8538 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8539
8540 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8541     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8542 else
8543     :
8544 fi
8545
8546 fi
8547
8548
8549
8550
8551
8552
8553   lt_prog_compiler_wl=
8554 lt_prog_compiler_pic=
8555 lt_prog_compiler_static=
8556
8557
8558   if test yes = "$GCC"; then
8559     lt_prog_compiler_wl='-Wl,'
8560     lt_prog_compiler_static='-static'
8561
8562     case $host_os in
8563       aix*)
8564       # All AIX code is PIC.
8565       if test ia64 = "$host_cpu"; then
8566         # AIX 5 now supports IA64 processor
8567         lt_prog_compiler_static='-Bstatic'
8568       fi
8569       lt_prog_compiler_pic='-fPIC'
8570       ;;
8571
8572     amigaos*)
8573       case $host_cpu in
8574       powerpc)
8575             # see comment about AmigaOS4 .so support
8576             lt_prog_compiler_pic='-fPIC'
8577         ;;
8578       m68k)
8579             # FIXME: we need at least 68020 code to build shared libraries, but
8580             # adding the '-m68020' flag to GCC prevents building anything better,
8581             # like '-m68040'.
8582             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8583         ;;
8584       esac
8585       ;;
8586
8587     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8588       # PIC is the default for these OSes.
8589       ;;
8590
8591     mingw* | cygwin* | pw32* | os2* | cegcc*)
8592       # This hack is so that the source file can tell whether it is being
8593       # built for inclusion in a dll (and should export symbols for example).
8594       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8595       # (--disable-auto-import) libraries
8596       lt_prog_compiler_pic='-DDLL_EXPORT'
8597       case $host_os in
8598       os2*)
8599         lt_prog_compiler_static='$wl-static'
8600         ;;
8601       esac
8602       ;;
8603
8604     darwin* | rhapsody*)
8605       # PIC is the default on this platform
8606       # Common symbols not allowed in MH_DYLIB files
8607       lt_prog_compiler_pic='-fno-common'
8608       ;;
8609
8610     haiku*)
8611       # PIC is the default for Haiku.
8612       # The "-static" flag exists, but is broken.
8613       lt_prog_compiler_static=
8614       ;;
8615
8616     hpux*)
8617       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8618       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8619       # sets the default TLS model and affects inlining.
8620       case $host_cpu in
8621       hppa*64*)
8622         # +Z the default
8623         ;;
8624       *)
8625         lt_prog_compiler_pic='-fPIC'
8626         ;;
8627       esac
8628       ;;
8629
8630     interix[3-9]*)
8631       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8632       # Instead, we relocate shared libraries at runtime.
8633       ;;
8634
8635     msdosdjgpp*)
8636       # Just because we use GCC doesn't mean we suddenly get shared libraries
8637       # on systems that don't support them.
8638       lt_prog_compiler_can_build_shared=no
8639       enable_shared=no
8640       ;;
8641
8642     *nto* | *qnx*)
8643       # QNX uses GNU C++, but need to define -shared option too, otherwise
8644       # it will coredump.
8645       lt_prog_compiler_pic='-fPIC -shared'
8646       ;;
8647
8648     sysv4*MP*)
8649       if test -d /usr/nec; then
8650         lt_prog_compiler_pic=-Kconform_pic
8651       fi
8652       ;;
8653
8654     *)
8655       lt_prog_compiler_pic='-fPIC'
8656       ;;
8657     esac
8658
8659     case $cc_basename in
8660     nvcc*) # Cuda Compiler Driver 2.2
8661       lt_prog_compiler_wl='-Xlinker '
8662       if test -n "$lt_prog_compiler_pic"; then
8663         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8664       fi
8665       ;;
8666     esac
8667   else
8668     # PORTME Check for flag to pass linker flags through the system compiler.
8669     case $host_os in
8670     aix*)
8671       lt_prog_compiler_wl='-Wl,'
8672       if test ia64 = "$host_cpu"; then
8673         # AIX 5 now supports IA64 processor
8674         lt_prog_compiler_static='-Bstatic'
8675       else
8676         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8677       fi
8678       ;;
8679
8680     darwin* | rhapsody*)
8681       # PIC is the default on this platform
8682       # Common symbols not allowed in MH_DYLIB files
8683       lt_prog_compiler_pic='-fno-common'
8684       case $cc_basename in
8685       nagfor*)
8686         # NAG Fortran compiler
8687         lt_prog_compiler_wl='-Wl,-Wl,,'
8688         lt_prog_compiler_pic='-PIC'
8689         lt_prog_compiler_static='-Bstatic'
8690         ;;
8691       esac
8692       ;;
8693
8694     mingw* | cygwin* | pw32* | os2* | cegcc*)
8695       # This hack is so that the source file can tell whether it is being
8696       # built for inclusion in a dll (and should export symbols for example).
8697       lt_prog_compiler_pic='-DDLL_EXPORT'
8698       case $host_os in
8699       os2*)
8700         lt_prog_compiler_static='$wl-static'
8701         ;;
8702       esac
8703       ;;
8704
8705     hpux9* | hpux10* | hpux11*)
8706       lt_prog_compiler_wl='-Wl,'
8707       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8708       # not for PA HP-UX.
8709       case $host_cpu in
8710       hppa*64*|ia64*)
8711         # +Z the default
8712         ;;
8713       *)
8714         lt_prog_compiler_pic='+Z'
8715         ;;
8716       esac
8717       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8718       lt_prog_compiler_static='$wl-a ${wl}archive'
8719       ;;
8720
8721     irix5* | irix6* | nonstopux*)
8722       lt_prog_compiler_wl='-Wl,'
8723       # PIC (with -KPIC) is the default.
8724       lt_prog_compiler_static='-non_shared'
8725       ;;
8726
8727     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8728       case $cc_basename in
8729       # old Intel for x86_64, which still supported -KPIC.
8730       ecc*)
8731         lt_prog_compiler_wl='-Wl,'
8732         lt_prog_compiler_pic='-KPIC'
8733         lt_prog_compiler_static='-static'
8734         ;;
8735       # flang / f18. f95 an alias for gfortran or flang on Debian
8736       flang* | f18* | f95*)
8737         lt_prog_compiler_wl='-Wl,'
8738         lt_prog_compiler_pic='-fPIC'
8739         lt_prog_compiler_static='-static'
8740         ;;
8741       # icc used to be incompatible with GCC.
8742       # ICC 10 doesn't accept -KPIC any more.
8743       icc* | ifort*)
8744         lt_prog_compiler_wl='-Wl,'
8745         lt_prog_compiler_pic='-fPIC'
8746         lt_prog_compiler_static='-static'
8747         ;;
8748       # Lahey Fortran 8.1.
8749       lf95*)
8750         lt_prog_compiler_wl='-Wl,'
8751         lt_prog_compiler_pic='--shared'
8752         lt_prog_compiler_static='--static'
8753         ;;
8754       nagfor*)
8755         # NAG Fortran compiler
8756         lt_prog_compiler_wl='-Wl,-Wl,,'
8757         lt_prog_compiler_pic='-PIC'
8758         lt_prog_compiler_static='-Bstatic'
8759         ;;
8760       tcc*)
8761         # Fabrice Bellard et al's Tiny C Compiler
8762         lt_prog_compiler_wl='-Wl,'
8763         lt_prog_compiler_pic='-fPIC'
8764         lt_prog_compiler_static='-static'
8765         ;;
8766       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8767         # Portland Group compilers (*not* the Pentium gcc compiler,
8768         # which looks to be a dead project)
8769         lt_prog_compiler_wl='-Wl,'
8770         lt_prog_compiler_pic='-fpic'
8771         lt_prog_compiler_static='-Bstatic'
8772         ;;
8773       ccc*)
8774         lt_prog_compiler_wl='-Wl,'
8775         # All Alpha code is PIC.
8776         lt_prog_compiler_static='-non_shared'
8777         ;;
8778       xl* | bgxl* | bgf* | mpixl*)
8779         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8780         lt_prog_compiler_wl='-Wl,'
8781         lt_prog_compiler_pic='-qpic'
8782         lt_prog_compiler_static='-qstaticlink'
8783         ;;
8784       *)
8785         case `$CC -V 2>&1 | sed 5q` in
8786         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8787           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8788           lt_prog_compiler_pic='-KPIC'
8789           lt_prog_compiler_static='-Bstatic'
8790           lt_prog_compiler_wl=''
8791           ;;
8792         *Sun\ F* | *Sun*Fortran*)
8793           lt_prog_compiler_pic='-KPIC'
8794           lt_prog_compiler_static='-Bstatic'
8795           lt_prog_compiler_wl='-Qoption ld '
8796           ;;
8797         *Sun\ C*)
8798           # Sun C 5.9
8799           lt_prog_compiler_pic='-KPIC'
8800           lt_prog_compiler_static='-Bstatic'
8801           lt_prog_compiler_wl='-Wl,'
8802           ;;
8803         *Intel*\ [CF]*Compiler*)
8804           lt_prog_compiler_wl='-Wl,'
8805           lt_prog_compiler_pic='-fPIC'
8806           lt_prog_compiler_static='-static'
8807           ;;
8808         *Portland\ Group*)
8809           lt_prog_compiler_wl='-Wl,'
8810           lt_prog_compiler_pic='-fpic'
8811           lt_prog_compiler_static='-Bstatic'
8812           ;;
8813         esac
8814         ;;
8815       esac
8816       ;;
8817
8818     newsos6)
8819       lt_prog_compiler_pic='-KPIC'
8820       lt_prog_compiler_static='-Bstatic'
8821       ;;
8822
8823     *nto* | *qnx*)
8824       # QNX uses GNU C++, but need to define -shared option too, otherwise
8825       # it will coredump.
8826       lt_prog_compiler_pic='-fPIC -shared'
8827       ;;
8828
8829     osf3* | osf4* | osf5*)
8830       lt_prog_compiler_wl='-Wl,'
8831       # All OSF/1 code is PIC.
8832       lt_prog_compiler_static='-non_shared'
8833       ;;
8834
8835     rdos*)
8836       lt_prog_compiler_static='-non_shared'
8837       ;;
8838
8839     solaris*)
8840       lt_prog_compiler_pic='-KPIC'
8841       lt_prog_compiler_static='-Bstatic'
8842       case $cc_basename in
8843       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8844         lt_prog_compiler_wl='-Qoption ld ';;
8845       *)
8846         lt_prog_compiler_wl='-Wl,';;
8847       esac
8848       ;;
8849
8850     sunos4*)
8851       lt_prog_compiler_wl='-Qoption ld '
8852       lt_prog_compiler_pic='-PIC'
8853       lt_prog_compiler_static='-Bstatic'
8854       ;;
8855
8856     sysv4 | sysv4.2uw2* | sysv4.3*)
8857       lt_prog_compiler_wl='-Wl,'
8858       lt_prog_compiler_pic='-KPIC'
8859       lt_prog_compiler_static='-Bstatic'
8860       ;;
8861
8862     sysv4*MP*)
8863       if test -d /usr/nec; then
8864         lt_prog_compiler_pic='-Kconform_pic'
8865         lt_prog_compiler_static='-Bstatic'
8866       fi
8867       ;;
8868
8869     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8870       lt_prog_compiler_wl='-Wl,'
8871       lt_prog_compiler_pic='-KPIC'
8872       lt_prog_compiler_static='-Bstatic'
8873       ;;
8874
8875     unicos*)
8876       lt_prog_compiler_wl='-Wl,'
8877       lt_prog_compiler_can_build_shared=no
8878       ;;
8879
8880     uts4*)
8881       lt_prog_compiler_pic='-pic'
8882       lt_prog_compiler_static='-Bstatic'
8883       ;;
8884
8885     *)
8886       lt_prog_compiler_can_build_shared=no
8887       ;;
8888     esac
8889   fi
8890
8891 case $host_os in
8892   # For platforms that do not support PIC, -DPIC is meaningless:
8893   *djgpp*)
8894     lt_prog_compiler_pic=
8895     ;;
8896   *)
8897     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8898     ;;
8899 esac
8900
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8902 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8903 if ${lt_cv_prog_compiler_pic+:} false; then :
8904   $as_echo_n "(cached) " >&6
8905 else
8906   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8907 fi
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8909 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8910 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8911
8912 #
8913 # Check to make sure the PIC flag actually works.
8914 #
8915 if test -n "$lt_prog_compiler_pic"; then
8916   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8917 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8918 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8919   $as_echo_n "(cached) " >&6
8920 else
8921   lt_cv_prog_compiler_pic_works=no
8922    ac_outfile=conftest.$ac_objext
8923    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8924    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
8925    # Insert the option either (1) after the last *FLAGS variable, or
8926    # (2) before a word containing "conftest.", or (3) at the end.
8927    # Note that $ac_compile itself does not contain backslashes and begins
8928    # with a dollar sign (not a hyphen), so the echo should work correctly.
8929    # The option is referenced via a variable to avoid confusing sed.
8930    lt_compile=`echo "$ac_compile" | $SED \
8931    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8932    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8933    -e 's:$: $lt_compiler_flag:'`
8934    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8935    (eval "$lt_compile" 2>conftest.err)
8936    ac_status=$?
8937    cat conftest.err >&5
8938    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939    if (exit $ac_status) && test -s "$ac_outfile"; then
8940      # The compiler can only warn and ignore the option if not recognized
8941      # So say no if there are warnings other than the usual output.
8942      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8943      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8944      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8945        lt_cv_prog_compiler_pic_works=yes
8946      fi
8947    fi
8948    $RM conftest*
8949
8950 fi
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8952 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8953
8954 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8955     case $lt_prog_compiler_pic in
8956      "" | " "*) ;;
8957      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8958      esac
8959 else
8960     lt_prog_compiler_pic=
8961      lt_prog_compiler_can_build_shared=no
8962 fi
8963
8964 fi
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976 #
8977 # Check to make sure the static flag actually works.
8978 #
8979 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8981 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8982 if ${lt_cv_prog_compiler_static_works+:} false; then :
8983   $as_echo_n "(cached) " >&6
8984 else
8985   lt_cv_prog_compiler_static_works=no
8986    save_LDFLAGS=$LDFLAGS
8987    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8988    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8989    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8990      # The linker can only warn and ignore the option if not recognized
8991      # So say no if there are warnings
8992      if test -s conftest.err; then
8993        # Append any errors to the config.log.
8994        cat conftest.err 1>&5
8995        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8996        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8997        if diff conftest.exp conftest.er2 >/dev/null; then
8998          lt_cv_prog_compiler_static_works=yes
8999        fi
9000      else
9001        lt_cv_prog_compiler_static_works=yes
9002      fi
9003    fi
9004    $RM -r conftest*
9005    LDFLAGS=$save_LDFLAGS
9006
9007 fi
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9009 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9010
9011 if test yes = "$lt_cv_prog_compiler_static_works"; then
9012     :
9013 else
9014     lt_prog_compiler_static=
9015 fi
9016
9017
9018
9019
9020
9021
9022
9023   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9024 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9025 if ${lt_cv_prog_compiler_c_o+:} false; then :
9026   $as_echo_n "(cached) " >&6
9027 else
9028   lt_cv_prog_compiler_c_o=no
9029    $RM -r conftest 2>/dev/null
9030    mkdir conftest
9031    cd conftest
9032    mkdir out
9033    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9034
9035    lt_compiler_flag="-o out/conftest2.$ac_objext"
9036    # Insert the option either (1) after the last *FLAGS variable, or
9037    # (2) before a word containing "conftest.", or (3) at the end.
9038    # Note that $ac_compile itself does not contain backslashes and begins
9039    # with a dollar sign (not a hyphen), so the echo should work correctly.
9040    lt_compile=`echo "$ac_compile" | $SED \
9041    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9042    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9043    -e 's:$: $lt_compiler_flag:'`
9044    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9045    (eval "$lt_compile" 2>out/conftest.err)
9046    ac_status=$?
9047    cat out/conftest.err >&5
9048    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9050    then
9051      # The compiler can only warn and ignore the option if not recognized
9052      # So say no if there are warnings
9053      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9054      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9055      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9056        lt_cv_prog_compiler_c_o=yes
9057      fi
9058    fi
9059    chmod u+w . 2>&5
9060    $RM conftest*
9061    # SGI C++ compiler will create directory out/ii_files/ for
9062    # template instantiation
9063    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9064    $RM out/* && rmdir out
9065    cd ..
9066    $RM -r conftest
9067    $RM conftest*
9068
9069 fi
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9071 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9072
9073
9074
9075
9076
9077
9078   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9079 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9080 if ${lt_cv_prog_compiler_c_o+:} false; then :
9081   $as_echo_n "(cached) " >&6
9082 else
9083   lt_cv_prog_compiler_c_o=no
9084    $RM -r conftest 2>/dev/null
9085    mkdir conftest
9086    cd conftest
9087    mkdir out
9088    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9089
9090    lt_compiler_flag="-o out/conftest2.$ac_objext"
9091    # Insert the option either (1) after the last *FLAGS variable, or
9092    # (2) before a word containing "conftest.", or (3) at the end.
9093    # Note that $ac_compile itself does not contain backslashes and begins
9094    # with a dollar sign (not a hyphen), so the echo should work correctly.
9095    lt_compile=`echo "$ac_compile" | $SED \
9096    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9097    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9098    -e 's:$: $lt_compiler_flag:'`
9099    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9100    (eval "$lt_compile" 2>out/conftest.err)
9101    ac_status=$?
9102    cat out/conftest.err >&5
9103    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9105    then
9106      # The compiler can only warn and ignore the option if not recognized
9107      # So say no if there are warnings
9108      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9109      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9110      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9111        lt_cv_prog_compiler_c_o=yes
9112      fi
9113    fi
9114    chmod u+w . 2>&5
9115    $RM conftest*
9116    # SGI C++ compiler will create directory out/ii_files/ for
9117    # template instantiation
9118    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9119    $RM out/* && rmdir out
9120    cd ..
9121    $RM -r conftest
9122    $RM conftest*
9123
9124 fi
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9126 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9127
9128
9129
9130
9131 hard_links=nottested
9132 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9133   # do not overwrite the value of need_locks provided by the user
9134   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9135 $as_echo_n "checking if we can lock with hard links... " >&6; }
9136   hard_links=yes
9137   $RM conftest*
9138   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9139   touch conftest.a
9140   ln conftest.a conftest.b 2>&5 || hard_links=no
9141   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9143 $as_echo "$hard_links" >&6; }
9144   if test no = "$hard_links"; then
9145     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9146 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9147     need_locks=warn
9148   fi
9149 else
9150   need_locks=no
9151 fi
9152
9153
9154
9155
9156
9157
9158   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9159 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9160
9161   runpath_var=
9162   allow_undefined_flag=
9163   always_export_symbols=no
9164   archive_cmds=
9165   archive_expsym_cmds=
9166   compiler_needs_object=no
9167   enable_shared_with_static_runtimes=no
9168   export_dynamic_flag_spec=
9169   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9170   hardcode_automatic=no
9171   hardcode_direct=no
9172   hardcode_direct_absolute=no
9173   hardcode_libdir_flag_spec=
9174   hardcode_libdir_separator=
9175   hardcode_minus_L=no
9176   hardcode_shlibpath_var=unsupported
9177   inherit_rpath=no
9178   link_all_deplibs=unknown
9179   module_cmds=
9180   module_expsym_cmds=
9181   old_archive_from_new_cmds=
9182   old_archive_from_expsyms_cmds=
9183   thread_safe_flag_spec=
9184   whole_archive_flag_spec=
9185   # include_expsyms should be a list of space-separated symbols to be *always*
9186   # included in the symbol list
9187   include_expsyms=
9188   # exclude_expsyms can be an extended regexp of symbols to exclude
9189   # it will be wrapped by ' (' and ')$', so one must not match beginning or
9190   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9191   # as well as any symbol that contains 'd'.
9192   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9193   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9194   # platforms (ab)use it in PIC code, but their linkers get confused if
9195   # the symbol is explicitly referenced.  Since portable code cannot
9196   # rely on this symbol name, it's probably fine to never include it in
9197   # preloaded symbol tables.
9198   # Exclude shared library initialization/finalization symbols.
9199   extract_expsyms_cmds=
9200
9201   case $host_os in
9202   cygwin* | mingw* | pw32* | cegcc*)
9203     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9204     # When not using gcc, we currently assume that we are using
9205     # Microsoft Visual C++.
9206     if test yes != "$GCC"; then
9207       with_gnu_ld=no
9208     fi
9209     ;;
9210   interix*)
9211     # we just hope/assume this is gcc and not c89 (= MSVC++)
9212     with_gnu_ld=yes
9213     ;;
9214   openbsd* | bitrig*)
9215     with_gnu_ld=no
9216     ;;
9217   linux* | k*bsd*-gnu | gnu*)
9218     link_all_deplibs=no
9219     ;;
9220   esac
9221
9222   ld_shlibs=yes
9223
9224   # On some targets, GNU ld is compatible enough with the native linker
9225   # that we're better off using the native interface for both.
9226   lt_use_gnu_ld_interface=no
9227   if test yes = "$with_gnu_ld"; then
9228     case $host_os in
9229       aix*)
9230         # The AIX port of GNU ld has always aspired to compatibility
9231         # with the native linker.  However, as the warning in the GNU ld
9232         # block says, versions before 2.19.5* couldn't really create working
9233         # shared libraries, regardless of the interface used.
9234         case `$LD -v 2>&1` in
9235           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9236           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9237           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9238           *)
9239             lt_use_gnu_ld_interface=yes
9240             ;;
9241         esac
9242         ;;
9243       *)
9244         lt_use_gnu_ld_interface=yes
9245         ;;
9246     esac
9247   fi
9248
9249   if test yes = "$lt_use_gnu_ld_interface"; then
9250     # If archive_cmds runs LD, not CC, wlarc should be empty
9251     wlarc='$wl'
9252
9253     # Set some defaults for GNU ld with shared library support. These
9254     # are reset later if shared libraries are not supported. Putting them
9255     # here allows them to be overridden if necessary.
9256     runpath_var=LD_RUN_PATH
9257     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9258     export_dynamic_flag_spec='$wl--export-dynamic'
9259     # ancient GNU ld didn't support --whole-archive et. al.
9260     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9261       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9262     else
9263       whole_archive_flag_spec=
9264     fi
9265     supports_anon_versioning=no
9266     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9267       *GNU\ gold*) supports_anon_versioning=yes ;;
9268       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9269       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9270       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9271       *\ 2.11.*) ;; # other 2.11 versions
9272       *) supports_anon_versioning=yes ;;
9273     esac
9274
9275     # See if GNU ld supports shared libraries.
9276     case $host_os in
9277     aix[3-9]*)
9278       # On AIX/PPC, the GNU linker is very broken
9279       if test ia64 != "$host_cpu"; then
9280         ld_shlibs=no
9281         cat <<_LT_EOF 1>&2
9282
9283 *** Warning: the GNU linker, at least up to release 2.19, is reported
9284 *** to be unable to reliably create shared libraries on AIX.
9285 *** Therefore, libtool is disabling shared libraries support.  If you
9286 *** really care for shared libraries, you may want to install binutils
9287 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9288 *** You will then need to restart the configuration process.
9289
9290 _LT_EOF
9291       fi
9292       ;;
9293
9294     amigaos*)
9295       case $host_cpu in
9296       powerpc)
9297             # see comment about AmigaOS4 .so support
9298             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9299             archive_expsym_cmds=''
9300         ;;
9301       m68k)
9302             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)'
9303             hardcode_libdir_flag_spec='-L$libdir'
9304             hardcode_minus_L=yes
9305         ;;
9306       esac
9307       ;;
9308
9309     beos*)
9310       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9311         allow_undefined_flag=unsupported
9312         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9313         # support --undefined.  This deserves some investigation.  FIXME
9314         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9315       else
9316         ld_shlibs=no
9317       fi
9318       ;;
9319
9320     cygwin* | mingw* | pw32* | cegcc*)
9321       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9322       # as there is no search path for DLLs.
9323       hardcode_libdir_flag_spec='-L$libdir'
9324       export_dynamic_flag_spec='$wl--export-all-symbols'
9325       allow_undefined_flag=unsupported
9326       always_export_symbols=no
9327       enable_shared_with_static_runtimes=yes
9328       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'
9329       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9330
9331       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9332         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9333         # If the export-symbols file already is a .def file, use it as
9334         # is; otherwise, prepend EXPORTS...
9335         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9336           cp $export_symbols $output_objdir/$soname.def;
9337         else
9338           echo EXPORTS > $output_objdir/$soname.def;
9339           cat $export_symbols >> $output_objdir/$soname.def;
9340         fi~
9341         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9342       else
9343         ld_shlibs=no
9344       fi
9345       ;;
9346
9347     haiku*)
9348       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9349       link_all_deplibs=yes
9350       ;;
9351
9352     os2*)
9353       hardcode_libdir_flag_spec='-L$libdir'
9354       hardcode_minus_L=yes
9355       allow_undefined_flag=unsupported
9356       shrext_cmds=.dll
9357       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9358         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9359         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9360         $ECHO EXPORTS >> $output_objdir/$libname.def~
9361         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9362         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9363         emximp -o $lib $output_objdir/$libname.def'
9364       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9365         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9366         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9367         $ECHO EXPORTS >> $output_objdir/$libname.def~
9368         prefix_cmds="$SED"~
9369         if test EXPORTS = "`$SED 1q $export_symbols`"; then
9370           prefix_cmds="$prefix_cmds -e 1d";
9371         fi~
9372         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9373         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9374         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9375         emximp -o $lib $output_objdir/$libname.def'
9376       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9377       enable_shared_with_static_runtimes=yes
9378       ;;
9379
9380     interix[3-9]*)
9381       hardcode_direct=no
9382       hardcode_shlibpath_var=no
9383       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9384       export_dynamic_flag_spec='$wl-E'
9385       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9386       # Instead, shared libraries are loaded at an image base (0x10000000 by
9387       # default) and relocated if they conflict, which is a slow very memory
9388       # consuming and fragmenting process.  To avoid this, we pick a random,
9389       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9390       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9391       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9392       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'
9393       ;;
9394
9395     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9396       tmp_diet=no
9397       if test linux-dietlibc = "$host_os"; then
9398         case $cc_basename in
9399           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9400         esac
9401       fi
9402       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9403          && test no = "$tmp_diet"
9404       then
9405         tmp_addflag=' $pic_flag'
9406         tmp_sharedflag='-shared'
9407         case $cc_basename,$host_cpu in
9408         pgcc*)                          # Portland Group C compiler
9409           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'
9410           tmp_addflag=' $pic_flag'
9411           ;;
9412         pgf77* | pgf90* | pgf95* | pgfortran*)
9413                                         # Portland Group f77 and f90 compilers
9414           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'
9415           tmp_addflag=' $pic_flag -Mnomain' ;;
9416         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9417           tmp_addflag=' -i_dynamic' ;;
9418         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9419           tmp_addflag=' -i_dynamic -nofor_main' ;;
9420         ifc* | ifort*)                  # Intel Fortran compiler
9421           tmp_addflag=' -nofor_main' ;;
9422         lf95*)                          # Lahey Fortran 8.1
9423           whole_archive_flag_spec=
9424           tmp_sharedflag='--shared' ;;
9425         nagfor*)                        # NAGFOR 5.3
9426           tmp_sharedflag='-Wl,-shared' ;;
9427         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9428           tmp_sharedflag='-qmkshrobj'
9429           tmp_addflag= ;;
9430         nvcc*)  # Cuda Compiler Driver 2.2
9431           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'
9432           compiler_needs_object=yes
9433           ;;
9434         esac
9435         case `$CC -V 2>&1 | sed 5q` in
9436         *Sun\ C*)                       # Sun C 5.9
9437           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'
9438           compiler_needs_object=yes
9439           tmp_sharedflag='-G' ;;
9440         *Sun\ F*)                       # Sun Fortran 8.3
9441           tmp_sharedflag='-G' ;;
9442         esac
9443         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9444
9445         if test yes = "$supports_anon_versioning"; then
9446           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9447             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9448             echo "local: *; };" >> $output_objdir/$libname.ver~
9449             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9450         fi
9451
9452         case $cc_basename in
9453         tcc*)
9454           export_dynamic_flag_spec='-rdynamic'
9455           ;;
9456         xlf* | bgf* | bgxlf* | mpixlf*)
9457           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9458           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9459           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9460           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9461           if test yes = "$supports_anon_versioning"; then
9462             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9463               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9464               echo "local: *; };" >> $output_objdir/$libname.ver~
9465               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9466           fi
9467           ;;
9468         esac
9469       else
9470         ld_shlibs=no
9471       fi
9472       ;;
9473
9474     netbsd* | netbsdelf*-gnu)
9475       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9476         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9477         wlarc=
9478       else
9479         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9480         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9481       fi
9482       ;;
9483
9484     solaris*)
9485       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9486         ld_shlibs=no
9487         cat <<_LT_EOF 1>&2
9488
9489 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9490 *** create shared libraries on Solaris systems.  Therefore, libtool
9491 *** is disabling shared libraries support.  We urge you to upgrade GNU
9492 *** binutils to release 2.9.1 or newer.  Another option is to modify
9493 *** your PATH or compiler configuration so that the native linker is
9494 *** used, and then restart.
9495
9496 _LT_EOF
9497       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9498         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9499         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9500       else
9501         ld_shlibs=no
9502       fi
9503       ;;
9504
9505     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9506       case `$LD -v 2>&1` in
9507         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9508         ld_shlibs=no
9509         cat <<_LT_EOF 1>&2
9510
9511 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9512 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9513 *** is disabling shared libraries support.  We urge you to upgrade GNU
9514 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9515 *** your PATH or compiler configuration so that the native linker is
9516 *** used, and then restart.
9517
9518 _LT_EOF
9519         ;;
9520         *)
9521           # For security reasons, it is highly recommended that you always
9522           # use absolute paths for naming shared libraries, and exclude the
9523           # DT_RUNPATH tag from executables and libraries.  But doing so
9524           # requires that you compile everything twice, which is a pain.
9525           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9526             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9527             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9528             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9529           else
9530             ld_shlibs=no
9531           fi
9532         ;;
9533       esac
9534       ;;
9535
9536     sunos4*)
9537       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9538       wlarc=
9539       hardcode_direct=yes
9540       hardcode_shlibpath_var=no
9541       ;;
9542
9543     *)
9544       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9545         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9546         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9547       else
9548         ld_shlibs=no
9549       fi
9550       ;;
9551     esac
9552
9553     if test no = "$ld_shlibs"; then
9554       runpath_var=
9555       hardcode_libdir_flag_spec=
9556       export_dynamic_flag_spec=
9557       whole_archive_flag_spec=
9558     fi
9559   else
9560     # PORTME fill in a description of your system's linker (not GNU ld)
9561     case $host_os in
9562     aix3*)
9563       allow_undefined_flag=unsupported
9564       always_export_symbols=yes
9565       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'
9566       # Note: this linker hardcodes the directories in LIBPATH if there
9567       # are no directories specified by -L.
9568       hardcode_minus_L=yes
9569       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9570         # Neither direct hardcoding nor static linking is supported with a
9571         # broken collect2.
9572         hardcode_direct=unsupported
9573       fi
9574       ;;
9575
9576     aix[4-9]*)
9577       if test ia64 = "$host_cpu"; then
9578         # On IA64, the linker does run time linking by default, so we don't
9579         # have to do anything special.
9580         aix_use_runtimelinking=no
9581         exp_sym_flag='-Bexport'
9582         no_entry_flag=
9583       else
9584         # If we're using GNU nm, then we don't want the "-C" option.
9585         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9586         # Without the "-l" option, or with the "-B" option, AIX nm treats
9587         # weak defined symbols like other global defined symbols, whereas
9588         # GNU nm marks them as "W".
9589         # While the 'weak' keyword is ignored in the Export File, we need
9590         # it in the Import File for the 'aix-soname' feature, so we have
9591         # to replace the "-B" option with "-P" for AIX nm.
9592         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9593           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'
9594         else
9595           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 == "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'
9596         fi
9597         aix_use_runtimelinking=no
9598
9599         # Test if we are trying to use run time linking or normal
9600         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9601         # have runtime linking enabled, and use it for executables.
9602         # For shared libraries, we enable/disable runtime linking
9603         # depending on the kind of the shared library created -
9604         # when "with_aix_soname,aix_use_runtimelinking" is:
9605         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9606         # "aix,yes"  lib.so          shared, rtl:yes, for executables
9607         #            lib.a           static archive
9608         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
9609         #            lib.a(lib.so.V) shared, rtl:no,  for executables
9610         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9611         #            lib.a(lib.so.V) shared, rtl:no
9612         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9613         #            lib.a           static archive
9614         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9615           for ld_flag in $LDFLAGS; do
9616           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9617             aix_use_runtimelinking=yes
9618             break
9619           fi
9620           done
9621           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9622             # With aix-soname=svr4, we create the lib.so.V shared archives only,
9623             # so we don't have lib.a shared libs to link our executables.
9624             # We have to force runtime linking in this case.
9625             aix_use_runtimelinking=yes
9626             LDFLAGS="$LDFLAGS -Wl,-brtl"
9627           fi
9628           ;;
9629         esac
9630
9631         exp_sym_flag='-bexport'
9632         no_entry_flag='-bnoentry'
9633       fi
9634
9635       # When large executables or shared objects are built, AIX ld can
9636       # have problems creating the table of contents.  If linking a library
9637       # or program results in "error TOC overflow" add -mminimal-toc to
9638       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9639       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9640
9641       archive_cmds=''
9642       hardcode_direct=yes
9643       hardcode_direct_absolute=yes
9644       hardcode_libdir_separator=':'
9645       link_all_deplibs=yes
9646       file_list_spec='$wl-f,'
9647       case $with_aix_soname,$aix_use_runtimelinking in
9648       aix,*) ;; # traditional, no import file
9649       svr4,* | *,yes) # use import file
9650         # The Import File defines what to hardcode.
9651         hardcode_direct=no
9652         hardcode_direct_absolute=no
9653         ;;
9654       esac
9655
9656       if test yes = "$GCC"; then
9657         case $host_os in aix4.[012]|aix4.[012].*)
9658         # We only want to do this on AIX 4.2 and lower, the check
9659         # below for broken collect2 doesn't work under 4.3+
9660           collect2name=`$CC -print-prog-name=collect2`
9661           if test -f "$collect2name" &&
9662            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9663           then
9664           # We have reworked collect2
9665           :
9666           else
9667           # We have old collect2
9668           hardcode_direct=unsupported
9669           # It fails to find uninstalled libraries when the uninstalled
9670           # path is not listed in the libpath.  Setting hardcode_minus_L
9671           # to unsupported forces relinking
9672           hardcode_minus_L=yes
9673           hardcode_libdir_flag_spec='-L$libdir'
9674           hardcode_libdir_separator=
9675           fi
9676           ;;
9677         esac
9678         shared_flag='-shared'
9679         if test yes = "$aix_use_runtimelinking"; then
9680           shared_flag="$shared_flag "'$wl-G'
9681         fi
9682         # Need to ensure runtime linking is disabled for the traditional
9683         # shared library, or the linker may eventually find shared libraries
9684         # /with/ Import File - we do not want to mix them.
9685         shared_flag_aix='-shared'
9686         shared_flag_svr4='-shared $wl-G'
9687       else
9688         # not using gcc
9689         if test ia64 = "$host_cpu"; then
9690         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9691         # chokes on -Wl,-G. The following line is correct:
9692           shared_flag='-G'
9693         else
9694           if test yes = "$aix_use_runtimelinking"; then
9695             shared_flag='$wl-G'
9696           else
9697             shared_flag='$wl-bM:SRE'
9698           fi
9699           shared_flag_aix='$wl-bM:SRE'
9700           shared_flag_svr4='$wl-G'
9701         fi
9702       fi
9703
9704       export_dynamic_flag_spec='$wl-bexpall'
9705       # It seems that -bexpall does not export symbols beginning with
9706       # underscore (_), so it is better to generate a list of symbols to export.
9707       always_export_symbols=yes
9708       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9709         # Warning - without using the other runtime loading flags (-brtl),
9710         # -berok will link without error, but may produce a broken library.
9711         allow_undefined_flag='-berok'
9712         # Determine the default libpath from the value encoded in an
9713         # empty executable.
9714         if test set = "${lt_cv_aix_libpath+set}"; then
9715   aix_libpath=$lt_cv_aix_libpath
9716 else
9717   if ${lt_cv_aix_libpath_+:} false; then :
9718   $as_echo_n "(cached) " >&6
9719 else
9720   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9721 /* end confdefs.h.  */
9722
9723 int
9724 main ()
9725 {
9726
9727   ;
9728   return 0;
9729 }
9730 _ACEOF
9731 if ac_fn_c_try_link "$LINENO"; then :
9732
9733   lt_aix_libpath_sed='
9734       /Import File Strings/,/^$/ {
9735           /^0/ {
9736               s/^0  *\([^ ]*\) *$/\1/
9737               p
9738           }
9739       }'
9740   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9741   # Check for a 64-bit object if we didn't find anything.
9742   if test -z "$lt_cv_aix_libpath_"; then
9743     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9744   fi
9745 fi
9746 rm -f core conftest.err conftest.$ac_objext \
9747     conftest$ac_exeext conftest.$ac_ext
9748   if test -z "$lt_cv_aix_libpath_"; then
9749     lt_cv_aix_libpath_=/usr/lib:/lib
9750   fi
9751
9752 fi
9753
9754   aix_libpath=$lt_cv_aix_libpath_
9755 fi
9756
9757         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9758         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
9759       else
9760         if test ia64 = "$host_cpu"; then
9761           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9762           allow_undefined_flag="-z nodefs"
9763           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"
9764         else
9765          # Determine the default libpath from the value encoded in an
9766          # empty executable.
9767          if test set = "${lt_cv_aix_libpath+set}"; then
9768   aix_libpath=$lt_cv_aix_libpath
9769 else
9770   if ${lt_cv_aix_libpath_+:} false; then :
9771   $as_echo_n "(cached) " >&6
9772 else
9773   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9774 /* end confdefs.h.  */
9775
9776 int
9777 main ()
9778 {
9779
9780   ;
9781   return 0;
9782 }
9783 _ACEOF
9784 if ac_fn_c_try_link "$LINENO"; then :
9785
9786   lt_aix_libpath_sed='
9787       /Import File Strings/,/^$/ {
9788           /^0/ {
9789               s/^0  *\([^ ]*\) *$/\1/
9790               p
9791           }
9792       }'
9793   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9794   # Check for a 64-bit object if we didn't find anything.
9795   if test -z "$lt_cv_aix_libpath_"; then
9796     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9797   fi
9798 fi
9799 rm -f core conftest.err conftest.$ac_objext \
9800     conftest$ac_exeext conftest.$ac_ext
9801   if test -z "$lt_cv_aix_libpath_"; then
9802     lt_cv_aix_libpath_=/usr/lib:/lib
9803   fi
9804
9805 fi
9806
9807   aix_libpath=$lt_cv_aix_libpath_
9808 fi
9809
9810          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9811           # Warning - without using the other run time loading flags,
9812           # -berok will link without error, but may produce a broken library.
9813           no_undefined_flag=' $wl-bernotok'
9814           allow_undefined_flag=' $wl-berok'
9815           if test yes = "$with_gnu_ld"; then
9816             # We only use this code for GNU lds that support --whole-archive.
9817             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9818           else
9819             # Exported symbols can be pulled into shared objects from archives
9820             whole_archive_flag_spec='$convenience'
9821           fi
9822           archive_cmds_need_lc=yes
9823           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9824           # -brtl affects multiple linker settings, -berok does not and is overridden later
9825           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9826           if test svr4 != "$with_aix_soname"; then
9827             # This is similar to how AIX traditionally builds its shared libraries.
9828             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'
9829           fi
9830           if test aix != "$with_aix_soname"; then
9831             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'
9832           else
9833             # used by -dlpreopen to get the symbols
9834             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9835           fi
9836           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9837         fi
9838       fi
9839       ;;
9840
9841     amigaos*)
9842       case $host_cpu in
9843       powerpc)
9844             # see comment about AmigaOS4 .so support
9845             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9846             archive_expsym_cmds=''
9847         ;;
9848       m68k)
9849             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)'
9850             hardcode_libdir_flag_spec='-L$libdir'
9851             hardcode_minus_L=yes
9852         ;;
9853       esac
9854       ;;
9855
9856     bsdi[45]*)
9857       export_dynamic_flag_spec=-rdynamic
9858       ;;
9859
9860     cygwin* | mingw* | pw32* | cegcc*)
9861       # When not using gcc, we currently assume that we are using
9862       # Microsoft Visual C++.
9863       # hardcode_libdir_flag_spec is actually meaningless, as there is
9864       # no search path for DLLs.
9865       case $cc_basename in
9866       cl*)
9867         # Native MSVC
9868         hardcode_libdir_flag_spec=' '
9869         allow_undefined_flag=unsupported
9870         always_export_symbols=yes
9871         file_list_spec='@'
9872         # Tell ltmain to make .lib files, not .a files.
9873         libext=lib
9874         # Tell ltmain to make .dll files, not .so files.
9875         shrext_cmds=.dll
9876         # FIXME: Setting linknames here is a bad hack.
9877         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9878         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9879             cp "$export_symbols" "$output_objdir/$soname.def";
9880             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9881           else
9882             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9883           fi~
9884           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9885           linknames='
9886         # The linker will not automatically build a static lib if we build a DLL.
9887         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9888         enable_shared_with_static_runtimes=yes
9889         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9890         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9891         # Don't use ranlib
9892         old_postinstall_cmds='chmod 644 $oldlib'
9893         postlink_cmds='lt_outputfile="@OUTPUT@"~
9894           lt_tool_outputfile="@TOOL_OUTPUT@"~
9895           case $lt_outputfile in
9896             *.exe|*.EXE) ;;
9897             *)
9898               lt_outputfile=$lt_outputfile.exe
9899               lt_tool_outputfile=$lt_tool_outputfile.exe
9900               ;;
9901           esac~
9902           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9903             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9904             $RM "$lt_outputfile.manifest";
9905           fi'
9906         ;;
9907       *)
9908         # Assume MSVC wrapper
9909         hardcode_libdir_flag_spec=' '
9910         allow_undefined_flag=unsupported
9911         # Tell ltmain to make .lib files, not .a files.
9912         libext=lib
9913         # Tell ltmain to make .dll files, not .so files.
9914         shrext_cmds=.dll
9915         # FIXME: Setting linknames here is a bad hack.
9916         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9917         # The linker will automatically build a .lib file if we build a DLL.
9918         old_archive_from_new_cmds='true'
9919         # FIXME: Should let the user specify the lib program.
9920         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9921         enable_shared_with_static_runtimes=yes
9922         ;;
9923       esac
9924       ;;
9925
9926     darwin* | rhapsody*)
9927
9928
9929   archive_cmds_need_lc=no
9930   hardcode_direct=no
9931   hardcode_automatic=yes
9932   hardcode_shlibpath_var=unsupported
9933   if test yes = "$lt_cv_ld_force_load"; then
9934     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\"`'
9935
9936   else
9937     whole_archive_flag_spec=''
9938   fi
9939   link_all_deplibs=yes
9940   allow_undefined_flag=$_lt_dar_allow_undefined
9941   case $cc_basename in
9942      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9943      *) _lt_dar_can_shared=$GCC ;;
9944   esac
9945   if test yes = "$_lt_dar_can_shared"; then
9946     output_verbose_link_cmd=func_echo_all
9947     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9948     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9949     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"
9950     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"
9951
9952   else
9953   ld_shlibs=no
9954   fi
9955
9956       ;;
9957
9958     dgux*)
9959       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9960       hardcode_libdir_flag_spec='-L$libdir'
9961       hardcode_shlibpath_var=no
9962       ;;
9963
9964     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9965     # support.  Future versions do this automatically, but an explicit c++rt0.o
9966     # does not break anything, and helps significantly (at the cost of a little
9967     # extra space).
9968     freebsd2.2*)
9969       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9970       hardcode_libdir_flag_spec='-R$libdir'
9971       hardcode_direct=yes
9972       hardcode_shlibpath_var=no
9973       ;;
9974
9975     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9976     freebsd2.*)
9977       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9978       hardcode_direct=yes
9979       hardcode_minus_L=yes
9980       hardcode_shlibpath_var=no
9981       ;;
9982
9983     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9984     freebsd* | dragonfly*)
9985       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9986       hardcode_libdir_flag_spec='-R$libdir'
9987       hardcode_direct=yes
9988       hardcode_shlibpath_var=no
9989       ;;
9990
9991     hpux9*)
9992       if test yes = "$GCC"; then
9993         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'
9994       else
9995         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'
9996       fi
9997       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9998       hardcode_libdir_separator=:
9999       hardcode_direct=yes
10000
10001       # hardcode_minus_L: Not really in the search PATH,
10002       # but as the default location of the library.
10003       hardcode_minus_L=yes
10004       export_dynamic_flag_spec='$wl-E'
10005       ;;
10006
10007     hpux10*)
10008       if test yes,no = "$GCC,$with_gnu_ld"; then
10009         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10010       else
10011         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10012       fi
10013       if test no = "$with_gnu_ld"; then
10014         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10015         hardcode_libdir_separator=:
10016         hardcode_direct=yes
10017         hardcode_direct_absolute=yes
10018         export_dynamic_flag_spec='$wl-E'
10019         # hardcode_minus_L: Not really in the search PATH,
10020         # but as the default location of the library.
10021         hardcode_minus_L=yes
10022       fi
10023       ;;
10024
10025     hpux11*)
10026       if test yes,no = "$GCC,$with_gnu_ld"; then
10027         case $host_cpu in
10028         hppa*64*)
10029           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10030           ;;
10031         ia64*)
10032           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10033           ;;
10034         *)
10035           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10036           ;;
10037         esac
10038       else
10039         case $host_cpu in
10040         hppa*64*)
10041           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10042           ;;
10043         ia64*)
10044           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10045           ;;
10046         *)
10047
10048           # Older versions of the 11.00 compiler do not understand -b yet
10049           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10050           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10051 $as_echo_n "checking if $CC understands -b... " >&6; }
10052 if ${lt_cv_prog_compiler__b+:} false; then :
10053   $as_echo_n "(cached) " >&6
10054 else
10055   lt_cv_prog_compiler__b=no
10056    save_LDFLAGS=$LDFLAGS
10057    LDFLAGS="$LDFLAGS -b"
10058    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10059    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10060      # The linker can only warn and ignore the option if not recognized
10061      # So say no if there are warnings
10062      if test -s conftest.err; then
10063        # Append any errors to the config.log.
10064        cat conftest.err 1>&5
10065        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10066        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10067        if diff conftest.exp conftest.er2 >/dev/null; then
10068          lt_cv_prog_compiler__b=yes
10069        fi
10070      else
10071        lt_cv_prog_compiler__b=yes
10072      fi
10073    fi
10074    $RM -r conftest*
10075    LDFLAGS=$save_LDFLAGS
10076
10077 fi
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10079 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10080
10081 if test yes = "$lt_cv_prog_compiler__b"; then
10082     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10083 else
10084     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10085 fi
10086
10087           ;;
10088         esac
10089       fi
10090       if test no = "$with_gnu_ld"; then
10091         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10092         hardcode_libdir_separator=:
10093
10094         case $host_cpu in
10095         hppa*64*|ia64*)
10096           hardcode_direct=no
10097           hardcode_shlibpath_var=no
10098           ;;
10099         *)
10100           hardcode_direct=yes
10101           hardcode_direct_absolute=yes
10102           export_dynamic_flag_spec='$wl-E'
10103
10104           # hardcode_minus_L: Not really in the search PATH,
10105           # but as the default location of the library.
10106           hardcode_minus_L=yes
10107           ;;
10108         esac
10109       fi
10110       ;;
10111
10112     irix5* | irix6* | nonstopux*)
10113       if test yes = "$GCC"; then
10114         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'
10115         # Try to use the -exported_symbol ld option, if it does not
10116         # work, assume that -exports_file does not work either and
10117         # implicitly export all symbols.
10118         # This should be the same for all languages, so no per-tag cache variable.
10119         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10120 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10121 if ${lt_cv_irix_exported_symbol+:} false; then :
10122   $as_echo_n "(cached) " >&6
10123 else
10124   save_LDFLAGS=$LDFLAGS
10125            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10126            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10127 /* end confdefs.h.  */
10128 int foo (void) { return 0; }
10129 _ACEOF
10130 if ac_fn_c_try_link "$LINENO"; then :
10131   lt_cv_irix_exported_symbol=yes
10132 else
10133   lt_cv_irix_exported_symbol=no
10134 fi
10135 rm -f core conftest.err conftest.$ac_objext \
10136     conftest$ac_exeext conftest.$ac_ext
10137            LDFLAGS=$save_LDFLAGS
10138 fi
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10140 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10141         if test yes = "$lt_cv_irix_exported_symbol"; then
10142           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'
10143         fi
10144         link_all_deplibs=no
10145       else
10146         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'
10147         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'
10148       fi
10149       archive_cmds_need_lc='no'
10150       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10151       hardcode_libdir_separator=:
10152       inherit_rpath=yes
10153       link_all_deplibs=yes
10154       ;;
10155
10156     linux*)
10157       case $cc_basename in
10158       tcc*)
10159         # Fabrice Bellard et al's Tiny C Compiler
10160         ld_shlibs=yes
10161         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10162         ;;
10163       esac
10164       ;;
10165
10166     netbsd* | netbsdelf*-gnu)
10167       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10168         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10169       else
10170         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10171       fi
10172       hardcode_libdir_flag_spec='-R$libdir'
10173       hardcode_direct=yes
10174       hardcode_shlibpath_var=no
10175       ;;
10176
10177     newsos6)
10178       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10179       hardcode_direct=yes
10180       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10181       hardcode_libdir_separator=:
10182       hardcode_shlibpath_var=no
10183       ;;
10184
10185     *nto* | *qnx*)
10186       ;;
10187
10188     openbsd* | bitrig*)
10189       if test -f /usr/libexec/ld.so; then
10190         hardcode_direct=yes
10191         hardcode_shlibpath_var=no
10192         hardcode_direct_absolute=yes
10193         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10194           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10195           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10196           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10197           export_dynamic_flag_spec='$wl-E'
10198         else
10199           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10200           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10201         fi
10202       else
10203         ld_shlibs=no
10204       fi
10205       ;;
10206
10207     os2*)
10208       hardcode_libdir_flag_spec='-L$libdir'
10209       hardcode_minus_L=yes
10210       allow_undefined_flag=unsupported
10211       shrext_cmds=.dll
10212       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10213         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10214         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10215         $ECHO EXPORTS >> $output_objdir/$libname.def~
10216         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10217         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10218         emximp -o $lib $output_objdir/$libname.def'
10219       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10220         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10221         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10222         $ECHO EXPORTS >> $output_objdir/$libname.def~
10223         prefix_cmds="$SED"~
10224         if test EXPORTS = "`$SED 1q $export_symbols`"; then
10225           prefix_cmds="$prefix_cmds -e 1d";
10226         fi~
10227         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10228         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10229         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10230         emximp -o $lib $output_objdir/$libname.def'
10231       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10232       enable_shared_with_static_runtimes=yes
10233       ;;
10234
10235     osf3*)
10236       if test yes = "$GCC"; then
10237         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10238         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'
10239       else
10240         allow_undefined_flag=' -expect_unresolved \*'
10241         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'
10242       fi
10243       archive_cmds_need_lc='no'
10244       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10245       hardcode_libdir_separator=:
10246       ;;
10247
10248     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10249       if test yes = "$GCC"; then
10250         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10251         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'
10252         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10253       else
10254         allow_undefined_flag=' -expect_unresolved \*'
10255         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'
10256         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~
10257           $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'
10258
10259         # Both c and cxx compiler support -rpath directly
10260         hardcode_libdir_flag_spec='-rpath $libdir'
10261       fi
10262       archive_cmds_need_lc='no'
10263       hardcode_libdir_separator=:
10264       ;;
10265
10266     solaris*)
10267       no_undefined_flag=' -z defs'
10268       if test yes = "$GCC"; then
10269         wlarc='$wl'
10270         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10271         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10272           $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'
10273       else
10274         case `$CC -V 2>&1` in
10275         *"Compilers 5.0"*)
10276           wlarc=''
10277           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10278           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10279             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10280           ;;
10281         *)
10282           wlarc='$wl'
10283           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10284           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10285             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10286           ;;
10287         esac
10288       fi
10289       hardcode_libdir_flag_spec='-R$libdir'
10290       hardcode_shlibpath_var=no
10291       case $host_os in
10292       solaris2.[0-5] | solaris2.[0-5].*) ;;
10293       *)
10294         # The compiler driver will combine and reorder linker options,
10295         # but understands '-z linker_flag'.  GCC discards it without '$wl',
10296         # but is careful enough not to reorder.
10297         # Supported since Solaris 2.6 (maybe 2.5.1?)
10298         if test yes = "$GCC"; then
10299           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10300         else
10301           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10302         fi
10303         ;;
10304       esac
10305       link_all_deplibs=yes
10306       ;;
10307
10308     sunos4*)
10309       if test sequent = "$host_vendor"; then
10310         # Use $CC to link under sequent, because it throws in some extra .o
10311         # files that make .init and .fini sections work.
10312         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10313       else
10314         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10315       fi
10316       hardcode_libdir_flag_spec='-L$libdir'
10317       hardcode_direct=yes
10318       hardcode_minus_L=yes
10319       hardcode_shlibpath_var=no
10320       ;;
10321
10322     sysv4)
10323       case $host_vendor in
10324         sni)
10325           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10326           hardcode_direct=yes # is this really true???
10327         ;;
10328         siemens)
10329           ## LD is ld it makes a PLAMLIB
10330           ## CC just makes a GrossModule.
10331           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10332           reload_cmds='$CC -r -o $output$reload_objs'
10333           hardcode_direct=no
10334         ;;
10335         motorola)
10336           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10337           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10338         ;;
10339       esac
10340       runpath_var='LD_RUN_PATH'
10341       hardcode_shlibpath_var=no
10342       ;;
10343
10344     sysv4.3*)
10345       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10346       hardcode_shlibpath_var=no
10347       export_dynamic_flag_spec='-Bexport'
10348       ;;
10349
10350     sysv4*MP*)
10351       if test -d /usr/nec; then
10352         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10353         hardcode_shlibpath_var=no
10354         runpath_var=LD_RUN_PATH
10355         hardcode_runpath_var=yes
10356         ld_shlibs=yes
10357       fi
10358       ;;
10359
10360     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10361       no_undefined_flag='$wl-z,text'
10362       archive_cmds_need_lc=no
10363       hardcode_shlibpath_var=no
10364       runpath_var='LD_RUN_PATH'
10365
10366       if test yes = "$GCC"; then
10367         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10368         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10369       else
10370         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10371         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10372       fi
10373       ;;
10374
10375     sysv5* | sco3.2v5* | sco5v6*)
10376       # Note: We CANNOT use -z defs as we might desire, because we do not
10377       # link with -lc, and that would cause any symbols used from libc to
10378       # always be unresolved, which means just about no library would
10379       # ever link correctly.  If we're not using GNU ld we use -z text
10380       # though, which does catch some bad symbols but isn't as heavy-handed
10381       # as -z defs.
10382       no_undefined_flag='$wl-z,text'
10383       allow_undefined_flag='$wl-z,nodefs'
10384       archive_cmds_need_lc=no
10385       hardcode_shlibpath_var=no
10386       hardcode_libdir_flag_spec='$wl-R,$libdir'
10387       hardcode_libdir_separator=':'
10388       link_all_deplibs=yes
10389       export_dynamic_flag_spec='$wl-Bexport'
10390       runpath_var='LD_RUN_PATH'
10391
10392       if test yes = "$GCC"; then
10393         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10394         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10395       else
10396         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10397         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10398       fi
10399       ;;
10400
10401     uts4*)
10402       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10403       hardcode_libdir_flag_spec='-L$libdir'
10404       hardcode_shlibpath_var=no
10405       ;;
10406
10407     *)
10408       ld_shlibs=no
10409       ;;
10410     esac
10411
10412     if test sni = "$host_vendor"; then
10413       case $host in
10414       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10415         export_dynamic_flag_spec='$wl-Blargedynsym'
10416         ;;
10417       esac
10418     fi
10419   fi
10420
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10422 $as_echo "$ld_shlibs" >&6; }
10423 test no = "$ld_shlibs" && can_build_shared=no
10424
10425 with_gnu_ld=$with_gnu_ld
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441 #
10442 # Do we need to explicitly link libc?
10443 #
10444 case "x$archive_cmds_need_lc" in
10445 x|xyes)
10446   # Assume -lc should be added
10447   archive_cmds_need_lc=yes
10448
10449   if test yes,yes = "$GCC,$enable_shared"; then
10450     case $archive_cmds in
10451     *'~'*)
10452       # FIXME: we may have to deal with multi-command sequences.
10453       ;;
10454     '$CC '*)
10455       # Test whether the compiler implicitly links with -lc since on some
10456       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10457       # to ld, don't add -lc before -lgcc.
10458       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10459 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10460 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10461   $as_echo_n "(cached) " >&6
10462 else
10463   $RM conftest*
10464         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10465
10466         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10467   (eval $ac_compile) 2>&5
10468   ac_status=$?
10469   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10470   test $ac_status = 0; } 2>conftest.err; then
10471           soname=conftest
10472           lib=conftest
10473           libobjs=conftest.$ac_objext
10474           deplibs=
10475           wl=$lt_prog_compiler_wl
10476           pic_flag=$lt_prog_compiler_pic
10477           compiler_flags=-v
10478           linker_flags=-v
10479           verstring=
10480           output_objdir=.
10481           libname=conftest
10482           lt_save_allow_undefined_flag=$allow_undefined_flag
10483           allow_undefined_flag=
10484           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10485   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10486   ac_status=$?
10487   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10488   test $ac_status = 0; }
10489           then
10490             lt_cv_archive_cmds_need_lc=no
10491           else
10492             lt_cv_archive_cmds_need_lc=yes
10493           fi
10494           allow_undefined_flag=$lt_save_allow_undefined_flag
10495         else
10496           cat conftest.err 1>&5
10497         fi
10498         $RM conftest*
10499
10500 fi
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10502 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10503       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10504       ;;
10505     esac
10506   fi
10507   ;;
10508 esac
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10662 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10663
10664 if test yes = "$GCC"; then
10665   case $host_os in
10666     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10667     *) lt_awk_arg='/^libraries:/' ;;
10668   esac
10669   case $host_os in
10670     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10671     *) lt_sed_strip_eq='s|=/|/|g' ;;
10672   esac
10673   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10674   case $lt_search_path_spec in
10675   *\;*)
10676     # if the path contains ";" then we assume it to be the separator
10677     # otherwise default to the standard path separator (i.e. ":") - it is
10678     # assumed that no part of a normal pathname contains ";" but that should
10679     # okay in the real world where ";" in dirpaths is itself problematic.
10680     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10681     ;;
10682   *)
10683     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10684     ;;
10685   esac
10686   # Ok, now we have the path, separated by spaces, we can step through it
10687   # and add multilib dir if necessary...
10688   lt_tmp_lt_search_path_spec=
10689   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10690   # ...but if some path component already ends with the multilib dir we assume
10691   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10692   case "$lt_multi_os_dir; $lt_search_path_spec " in
10693   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10694     lt_multi_os_dir=
10695     ;;
10696   esac
10697   for lt_sys_path in $lt_search_path_spec; do
10698     if test -d "$lt_sys_path$lt_multi_os_dir"; then
10699       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10700     elif test -n "$lt_multi_os_dir"; then
10701       test -d "$lt_sys_path" && \
10702         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10703     fi
10704   done
10705   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10706 BEGIN {RS = " "; FS = "/|\n";} {
10707   lt_foo = "";
10708   lt_count = 0;
10709   for (lt_i = NF; lt_i > 0; lt_i--) {
10710     if ($lt_i != "" && $lt_i != ".") {
10711       if ($lt_i == "..") {
10712         lt_count++;
10713       } else {
10714         if (lt_count == 0) {
10715           lt_foo = "/" $lt_i lt_foo;
10716         } else {
10717           lt_count--;
10718         }
10719       }
10720     }
10721   }
10722   if (lt_foo != "") { lt_freq[lt_foo]++; }
10723   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10724 }'`
10725   # AWK program above erroneously prepends '/' to C:/dos/paths
10726   # for these hosts.
10727   case $host_os in
10728     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10729       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10730   esac
10731   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10732 else
10733   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10734 fi
10735 library_names_spec=
10736 libname_spec='lib$name'
10737 soname_spec=
10738 shrext_cmds=.so
10739 postinstall_cmds=
10740 postuninstall_cmds=
10741 finish_cmds=
10742 finish_eval=
10743 shlibpath_var=
10744 shlibpath_overrides_runpath=unknown
10745 version_type=none
10746 dynamic_linker="$host_os ld.so"
10747 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10748 need_lib_prefix=unknown
10749 hardcode_into_libs=no
10750
10751 # when you set need_version to no, make sure it does not cause -set_version
10752 # flags to be left without arguments
10753 need_version=unknown
10754
10755
10756
10757 case $host_os in
10758 aix3*)
10759   version_type=linux # correct to gnu/linux during the next big refactor
10760   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10761   shlibpath_var=LIBPATH
10762
10763   # AIX 3 has no versioning support, so we append a major version to the name.
10764   soname_spec='$libname$release$shared_ext$major'
10765   ;;
10766
10767 aix[4-9]*)
10768   version_type=linux # correct to gnu/linux during the next big refactor
10769   need_lib_prefix=no
10770   need_version=no
10771   hardcode_into_libs=yes
10772   if test ia64 = "$host_cpu"; then
10773     # AIX 5 supports IA64
10774     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10775     shlibpath_var=LD_LIBRARY_PATH
10776   else
10777     # With GCC up to 2.95.x, collect2 would create an import file
10778     # for dependence libraries.  The import file would start with
10779     # the line '#! .'.  This would cause the generated library to
10780     # depend on '.', always an invalid library.  This was fixed in
10781     # development snapshots of GCC prior to 3.0.
10782     case $host_os in
10783       aix4 | aix4.[01] | aix4.[01].*)
10784       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10785            echo ' yes '
10786            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10787         :
10788       else
10789         can_build_shared=no
10790       fi
10791       ;;
10792     esac
10793     # Using Import Files as archive members, it is possible to support
10794     # filename-based versioning of shared library archives on AIX. While
10795     # this would work for both with and without runtime linking, it will
10796     # prevent static linking of such archives. So we do filename-based
10797     # shared library versioning with .so extension only, which is used
10798     # when both runtime linking and shared linking is enabled.
10799     # Unfortunately, runtime linking may impact performance, so we do
10800     # not want this to be the default eventually. Also, we use the
10801     # versioned .so libs for executables only if there is the -brtl
10802     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10803     # To allow for filename-based versioning support, we need to create
10804     # libNAME.so.V as an archive file, containing:
10805     # *) an Import File, referring to the versioned filename of the
10806     #    archive as well as the shared archive member, telling the
10807     #    bitwidth (32 or 64) of that shared object, and providing the
10808     #    list of exported symbols of that shared object, eventually
10809     #    decorated with the 'weak' keyword
10810     # *) the shared object with the F_LOADONLY flag set, to really avoid
10811     #    it being seen by the linker.
10812     # At run time we better use the real file rather than another symlink,
10813     # but for link time we create the symlink libNAME.so -> libNAME.so.V
10814
10815     case $with_aix_soname,$aix_use_runtimelinking in
10816     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10817     # soname into executable. Probably we can add versioning support to
10818     # collect2, so additional links can be useful in future.
10819     aix,yes) # traditional libtool
10820       dynamic_linker='AIX unversionable lib.so'
10821       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10822       # instead of lib<name>.a to let people know that these are not
10823       # typical AIX shared libraries.
10824       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10825       ;;
10826     aix,no) # traditional AIX only
10827       dynamic_linker='AIX lib.a(lib.so.V)'
10828       # We preserve .a as extension for shared libraries through AIX4.2
10829       # and later when we are not doing run time linking.
10830       library_names_spec='$libname$release.a $libname.a'
10831       soname_spec='$libname$release$shared_ext$major'
10832       ;;
10833     svr4,*) # full svr4 only
10834       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10835       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10836       # We do not specify a path in Import Files, so LIBPATH fires.
10837       shlibpath_overrides_runpath=yes
10838       ;;
10839     *,yes) # both, prefer svr4
10840       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10841       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10842       # unpreferred sharedlib libNAME.a needs extra handling
10843       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"'
10844       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"'
10845       # We do not specify a path in Import Files, so LIBPATH fires.
10846       shlibpath_overrides_runpath=yes
10847       ;;
10848     *,no) # both, prefer aix
10849       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10850       library_names_spec='$libname$release.a $libname.a'
10851       soname_spec='$libname$release$shared_ext$major'
10852       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10853       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)'
10854       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"'
10855       ;;
10856     esac
10857     shlibpath_var=LIBPATH
10858   fi
10859   ;;
10860
10861 amigaos*)
10862   case $host_cpu in
10863   powerpc)
10864     # Since July 2007 AmigaOS4 officially supports .so libraries.
10865     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10866     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10867     ;;
10868   m68k)
10869     library_names_spec='$libname.ixlibrary $libname.a'
10870     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10871     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'
10872     ;;
10873   esac
10874   ;;
10875
10876 beos*)
10877   library_names_spec='$libname$shared_ext'
10878   dynamic_linker="$host_os ld.so"
10879   shlibpath_var=LIBRARY_PATH
10880   ;;
10881
10882 bsdi[45]*)
10883   version_type=linux # correct to gnu/linux during the next big refactor
10884   need_version=no
10885   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10886   soname_spec='$libname$release$shared_ext$major'
10887   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10888   shlibpath_var=LD_LIBRARY_PATH
10889   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10890   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10891   # the default ld.so.conf also contains /usr/contrib/lib and
10892   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10893   # libtool to hard-code these into programs
10894   ;;
10895
10896 cygwin* | mingw* | pw32* | cegcc*)
10897   version_type=windows
10898   shrext_cmds=.dll
10899   need_version=no
10900   need_lib_prefix=no
10901
10902   case $GCC,$cc_basename in
10903   yes,*)
10904     # gcc
10905     library_names_spec='$libname.dll.a'
10906     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10907     postinstall_cmds='base_file=`basename \$file`~
10908       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10909       dldir=$destdir/`dirname \$dlpath`~
10910       test -d \$dldir || mkdir -p \$dldir~
10911       $install_prog $dir/$dlname \$dldir/$dlname~
10912       chmod a+x \$dldir/$dlname~
10913       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10914         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10915       fi'
10916     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10917       dlpath=$dir/\$dldll~
10918        $RM \$dlpath'
10919     shlibpath_overrides_runpath=yes
10920
10921     case $host_os in
10922     cygwin*)
10923       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10924       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10925
10926       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10927       ;;
10928     mingw* | cegcc*)
10929       # MinGW DLLs use traditional 'lib' prefix
10930       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10931       ;;
10932     pw32*)
10933       # pw32 DLLs use 'pw' prefix rather than 'lib'
10934       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10935       ;;
10936     esac
10937     dynamic_linker='Win32 ld.exe'
10938     ;;
10939
10940   *,cl*)
10941     # Native MSVC
10942     libname_spec='$name'
10943     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10944     library_names_spec='$libname.dll.lib'
10945
10946     case $build_os in
10947     mingw*)
10948       sys_lib_search_path_spec=
10949       lt_save_ifs=$IFS
10950       IFS=';'
10951       for lt_path in $LIB
10952       do
10953         IFS=$lt_save_ifs
10954         # Let DOS variable expansion print the short 8.3 style file name.
10955         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10956         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10957       done
10958       IFS=$lt_save_ifs
10959       # Convert to MSYS style.
10960       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10961       ;;
10962     cygwin*)
10963       # Convert to unix form, then to dos form, then back to unix form
10964       # but this time dos style (no spaces!) so that the unix form looks
10965       # like /cygdrive/c/PROGRA~1:/cygdr...
10966       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10967       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10968       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10969       ;;
10970     *)
10971       sys_lib_search_path_spec=$LIB
10972       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10973         # It is most probably a Windows format PATH.
10974         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10975       else
10976         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10977       fi
10978       # FIXME: find the short name or the path components, as spaces are
10979       # common. (e.g. "Program Files" -> "PROGRA~1")
10980       ;;
10981     esac
10982
10983     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10984     postinstall_cmds='base_file=`basename \$file`~
10985       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10986       dldir=$destdir/`dirname \$dlpath`~
10987       test -d \$dldir || mkdir -p \$dldir~
10988       $install_prog $dir/$dlname \$dldir/$dlname'
10989     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10990       dlpath=$dir/\$dldll~
10991        $RM \$dlpath'
10992     shlibpath_overrides_runpath=yes
10993     dynamic_linker='Win32 link.exe'
10994     ;;
10995
10996   *)
10997     # Assume MSVC wrapper
10998     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10999     dynamic_linker='Win32 ld.exe'
11000     ;;
11001   esac
11002   # FIXME: first we should search . and the directory the executable is in
11003   shlibpath_var=PATH
11004   ;;
11005
11006 darwin* | rhapsody*)
11007   dynamic_linker="$host_os dyld"
11008   version_type=darwin
11009   need_lib_prefix=no
11010   need_version=no
11011   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11012   soname_spec='$libname$release$major$shared_ext'
11013   shlibpath_overrides_runpath=yes
11014   shlibpath_var=DYLD_LIBRARY_PATH
11015   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11016
11017   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11018   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11019   ;;
11020
11021 dgux*)
11022   version_type=linux # correct to gnu/linux during the next big refactor
11023   need_lib_prefix=no
11024   need_version=no
11025   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11026   soname_spec='$libname$release$shared_ext$major'
11027   shlibpath_var=LD_LIBRARY_PATH
11028   ;;
11029
11030 freebsd* | dragonfly*)
11031   # DragonFly does not have aout.  When/if they implement a new
11032   # versioning mechanism, adjust this.
11033   if test -x /usr/bin/objformat; then
11034     objformat=`/usr/bin/objformat`
11035   else
11036     case $host_os in
11037     freebsd[23].*) objformat=aout ;;
11038     *) objformat=elf ;;
11039     esac
11040   fi
11041   version_type=freebsd-$objformat
11042   case $version_type in
11043     freebsd-elf*)
11044       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11045       soname_spec='$libname$release$shared_ext$major'
11046       need_version=no
11047       need_lib_prefix=no
11048       ;;
11049     freebsd-*)
11050       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11051       need_version=yes
11052       ;;
11053   esac
11054   shlibpath_var=LD_LIBRARY_PATH
11055   case $host_os in
11056   freebsd2.*)
11057     shlibpath_overrides_runpath=yes
11058     ;;
11059   freebsd3.[01]* | freebsdelf3.[01]*)
11060     shlibpath_overrides_runpath=yes
11061     hardcode_into_libs=yes
11062     ;;
11063   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11064   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11065     shlibpath_overrides_runpath=no
11066     hardcode_into_libs=yes
11067     ;;
11068   *) # from 4.6 on, and DragonFly
11069     shlibpath_overrides_runpath=yes
11070     hardcode_into_libs=yes
11071     ;;
11072   esac
11073   ;;
11074
11075 haiku*)
11076   version_type=linux # correct to gnu/linux during the next big refactor
11077   need_lib_prefix=no
11078   need_version=no
11079   dynamic_linker="$host_os runtime_loader"
11080   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11081   soname_spec='$libname$release$shared_ext$major'
11082   shlibpath_var=LIBRARY_PATH
11083   shlibpath_overrides_runpath=no
11084   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11085   hardcode_into_libs=yes
11086   ;;
11087
11088 hpux9* | hpux10* | hpux11*)
11089   # Give a soname corresponding to the major version so that dld.sl refuses to
11090   # link against other versions.
11091   version_type=sunos
11092   need_lib_prefix=no
11093   need_version=no
11094   case $host_cpu in
11095   ia64*)
11096     shrext_cmds='.so'
11097     hardcode_into_libs=yes
11098     dynamic_linker="$host_os dld.so"
11099     shlibpath_var=LD_LIBRARY_PATH
11100     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11101     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11102     soname_spec='$libname$release$shared_ext$major'
11103     if test 32 = "$HPUX_IA64_MODE"; then
11104       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11105       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11106     else
11107       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11108       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11109     fi
11110     ;;
11111   hppa*64*)
11112     shrext_cmds='.sl'
11113     hardcode_into_libs=yes
11114     dynamic_linker="$host_os dld.sl"
11115     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11116     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11117     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11118     soname_spec='$libname$release$shared_ext$major'
11119     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11120     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11121     ;;
11122   *)
11123     shrext_cmds='.sl'
11124     dynamic_linker="$host_os dld.sl"
11125     shlibpath_var=SHLIB_PATH
11126     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11127     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11128     soname_spec='$libname$release$shared_ext$major'
11129     ;;
11130   esac
11131   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11132   postinstall_cmds='chmod 555 $lib'
11133   # or fails outright, so override atomically:
11134   install_override_mode=555
11135   ;;
11136
11137 interix[3-9]*)
11138   version_type=linux # correct to gnu/linux during the next big refactor
11139   need_lib_prefix=no
11140   need_version=no
11141   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11142   soname_spec='$libname$release$shared_ext$major'
11143   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11144   shlibpath_var=LD_LIBRARY_PATH
11145   shlibpath_overrides_runpath=no
11146   hardcode_into_libs=yes
11147   ;;
11148
11149 irix5* | irix6* | nonstopux*)
11150   case $host_os in
11151     nonstopux*) version_type=nonstopux ;;
11152     *)
11153         if test yes = "$lt_cv_prog_gnu_ld"; then
11154                 version_type=linux # correct to gnu/linux during the next big refactor
11155         else
11156                 version_type=irix
11157         fi ;;
11158   esac
11159   need_lib_prefix=no
11160   need_version=no
11161   soname_spec='$libname$release$shared_ext$major'
11162   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11163   case $host_os in
11164   irix5* | nonstopux*)
11165     libsuff= shlibsuff=
11166     ;;
11167   *)
11168     case $LD in # libtool.m4 will add one of these switches to LD
11169     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11170       libsuff= shlibsuff= libmagic=32-bit;;
11171     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11172       libsuff=32 shlibsuff=N32 libmagic=N32;;
11173     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11174       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11175     *) libsuff= shlibsuff= libmagic=never-match;;
11176     esac
11177     ;;
11178   esac
11179   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11180   shlibpath_overrides_runpath=no
11181   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11182   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11183   hardcode_into_libs=yes
11184   ;;
11185
11186 # No shared lib support for Linux oldld, aout, or coff.
11187 linux*oldld* | linux*aout* | linux*coff*)
11188   dynamic_linker=no
11189   ;;
11190
11191 linux*android*)
11192   version_type=none # Android doesn't support versioned libraries.
11193   need_lib_prefix=no
11194   need_version=no
11195   library_names_spec='$libname$release$shared_ext'
11196   soname_spec='$libname$release$shared_ext'
11197   finish_cmds=
11198   shlibpath_var=LD_LIBRARY_PATH
11199   shlibpath_overrides_runpath=yes
11200
11201   # This implies no fast_install, which is unacceptable.
11202   # Some rework will be needed to allow for fast_install
11203   # before this can be enabled.
11204   hardcode_into_libs=yes
11205
11206   dynamic_linker='Android linker'
11207   # Don't embed -rpath directories since the linker doesn't support them.
11208   hardcode_libdir_flag_spec='-L$libdir'
11209   ;;
11210
11211 # This must be glibc/ELF.
11212 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11213   version_type=linux # correct to gnu/linux during the next big refactor
11214   need_lib_prefix=no
11215   need_version=no
11216   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11217   soname_spec='$libname$release$shared_ext$major'
11218   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11219   shlibpath_var=LD_LIBRARY_PATH
11220   shlibpath_overrides_runpath=no
11221
11222   # Some binutils ld are patched to set DT_RUNPATH
11223   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11224   $as_echo_n "(cached) " >&6
11225 else
11226   lt_cv_shlibpath_overrides_runpath=no
11227     save_LDFLAGS=$LDFLAGS
11228     save_libdir=$libdir
11229     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11230          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11231     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11232 /* end confdefs.h.  */
11233
11234 int
11235 main ()
11236 {
11237
11238   ;
11239   return 0;
11240 }
11241 _ACEOF
11242 if ac_fn_c_try_link "$LINENO"; then :
11243   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11244   lt_cv_shlibpath_overrides_runpath=yes
11245 fi
11246 fi
11247 rm -f core conftest.err conftest.$ac_objext \
11248     conftest$ac_exeext conftest.$ac_ext
11249     LDFLAGS=$save_LDFLAGS
11250     libdir=$save_libdir
11251
11252 fi
11253
11254   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11255
11256   # This implies no fast_install, which is unacceptable.
11257   # Some rework will be needed to allow for fast_install
11258   # before this can be enabled.
11259   hardcode_into_libs=yes
11260
11261   # Ideally, we could use ldconfig to report *all* directores which are
11262   # searched for libraries, however this is still not possible.  Aside from not
11263   # being certain /sbin/ldconfig is available, command
11264   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11265   # even though it is searched at run-time.  Try to do the best guess by
11266   # appending ld.so.conf contents (and includes) to the search path.
11267   if test -f /etc/ld.so.conf; then
11268     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' ' '`
11269     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11270   fi
11271
11272   # We used to test for /lib/ld.so.1 and disable shared libraries on
11273   # powerpc, because MkLinux only supported shared libraries with the
11274   # GNU dynamic linker.  Since this was broken with cross compilers,
11275   # most powerpc-linux boxes support dynamic linking these days and
11276   # people can always --disable-shared, the test was removed, and we
11277   # assume the GNU/Linux dynamic linker is in use.
11278   dynamic_linker='GNU/Linux ld.so'
11279   ;;
11280
11281 netbsdelf*-gnu)
11282   version_type=linux
11283   need_lib_prefix=no
11284   need_version=no
11285   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11286   soname_spec='${libname}${release}${shared_ext}$major'
11287   shlibpath_var=LD_LIBRARY_PATH
11288   shlibpath_overrides_runpath=no
11289   hardcode_into_libs=yes
11290   dynamic_linker='NetBSD ld.elf_so'
11291   ;;
11292
11293 netbsd*)
11294   version_type=sunos
11295   need_lib_prefix=no
11296   need_version=no
11297   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11298     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11299     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11300     dynamic_linker='NetBSD (a.out) ld.so'
11301   else
11302     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11303     soname_spec='$libname$release$shared_ext$major'
11304     dynamic_linker='NetBSD ld.elf_so'
11305   fi
11306   shlibpath_var=LD_LIBRARY_PATH
11307   shlibpath_overrides_runpath=yes
11308   hardcode_into_libs=yes
11309   ;;
11310
11311 newsos6)
11312   version_type=linux # correct to gnu/linux during the next big refactor
11313   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11314   shlibpath_var=LD_LIBRARY_PATH
11315   shlibpath_overrides_runpath=yes
11316   ;;
11317
11318 *nto* | *qnx*)
11319   version_type=qnx
11320   need_lib_prefix=no
11321   need_version=no
11322   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11323   soname_spec='$libname$release$shared_ext$major'
11324   shlibpath_var=LD_LIBRARY_PATH
11325   shlibpath_overrides_runpath=no
11326   hardcode_into_libs=yes
11327   dynamic_linker='ldqnx.so'
11328   ;;
11329
11330 openbsd* | bitrig*)
11331   version_type=sunos
11332   sys_lib_dlsearch_path_spec=/usr/lib
11333   need_lib_prefix=no
11334   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11335     need_version=no
11336   else
11337     need_version=yes
11338   fi
11339   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11340   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11341   shlibpath_var=LD_LIBRARY_PATH
11342   shlibpath_overrides_runpath=yes
11343   ;;
11344
11345 os2*)
11346   libname_spec='$name'
11347   version_type=windows
11348   shrext_cmds=.dll
11349   need_version=no
11350   need_lib_prefix=no
11351   # OS/2 can only load a DLL with a base name of 8 characters or less.
11352   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11353     v=$($ECHO $release$versuffix | tr -d .-);
11354     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11355     $ECHO $n$v`$shared_ext'
11356   library_names_spec='${libname}_dll.$libext'
11357   dynamic_linker='OS/2 ld.exe'
11358   shlibpath_var=BEGINLIBPATH
11359   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11360   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11361   postinstall_cmds='base_file=`basename \$file`~
11362     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11363     dldir=$destdir/`dirname \$dlpath`~
11364     test -d \$dldir || mkdir -p \$dldir~
11365     $install_prog $dir/$dlname \$dldir/$dlname~
11366     chmod a+x \$dldir/$dlname~
11367     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11368       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11369     fi'
11370   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11371     dlpath=$dir/\$dldll~
11372     $RM \$dlpath'
11373   ;;
11374
11375 osf3* | osf4* | osf5*)
11376   version_type=osf
11377   need_lib_prefix=no
11378   need_version=no
11379   soname_spec='$libname$release$shared_ext$major'
11380   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11381   shlibpath_var=LD_LIBRARY_PATH
11382   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11383   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11384   ;;
11385
11386 rdos*)
11387   dynamic_linker=no
11388   ;;
11389
11390 solaris*)
11391   version_type=linux # correct to gnu/linux during the next big refactor
11392   need_lib_prefix=no
11393   need_version=no
11394   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11395   soname_spec='$libname$release$shared_ext$major'
11396   shlibpath_var=LD_LIBRARY_PATH
11397   shlibpath_overrides_runpath=yes
11398   hardcode_into_libs=yes
11399   # ldd complains unless libraries are executable
11400   postinstall_cmds='chmod +x $lib'
11401   ;;
11402
11403 sunos4*)
11404   version_type=sunos
11405   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11406   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11407   shlibpath_var=LD_LIBRARY_PATH
11408   shlibpath_overrides_runpath=yes
11409   if test yes = "$with_gnu_ld"; then
11410     need_lib_prefix=no
11411   fi
11412   need_version=yes
11413   ;;
11414
11415 sysv4 | sysv4.3*)
11416   version_type=linux # correct to gnu/linux during the next big refactor
11417   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11418   soname_spec='$libname$release$shared_ext$major'
11419   shlibpath_var=LD_LIBRARY_PATH
11420   case $host_vendor in
11421     sni)
11422       shlibpath_overrides_runpath=no
11423       need_lib_prefix=no
11424       runpath_var=LD_RUN_PATH
11425       ;;
11426     siemens)
11427       need_lib_prefix=no
11428       ;;
11429     motorola)
11430       need_lib_prefix=no
11431       need_version=no
11432       shlibpath_overrides_runpath=no
11433       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11434       ;;
11435   esac
11436   ;;
11437
11438 sysv4*MP*)
11439   if test -d /usr/nec; then
11440     version_type=linux # correct to gnu/linux during the next big refactor
11441     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11442     soname_spec='$libname$shared_ext.$major'
11443     shlibpath_var=LD_LIBRARY_PATH
11444   fi
11445   ;;
11446
11447 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11448   version_type=sco
11449   need_lib_prefix=no
11450   need_version=no
11451   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11452   soname_spec='$libname$release$shared_ext$major'
11453   shlibpath_var=LD_LIBRARY_PATH
11454   shlibpath_overrides_runpath=yes
11455   hardcode_into_libs=yes
11456   if test yes = "$with_gnu_ld"; then
11457     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11458   else
11459     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11460     case $host_os in
11461       sco3.2v5*)
11462         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11463         ;;
11464     esac
11465   fi
11466   sys_lib_dlsearch_path_spec='/usr/lib'
11467   ;;
11468
11469 tpf*)
11470   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11471   version_type=linux # correct to gnu/linux during the next big refactor
11472   need_lib_prefix=no
11473   need_version=no
11474   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11475   shlibpath_var=LD_LIBRARY_PATH
11476   shlibpath_overrides_runpath=no
11477   hardcode_into_libs=yes
11478   ;;
11479
11480 uts4*)
11481   version_type=linux # correct to gnu/linux during the next big refactor
11482   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11483   soname_spec='$libname$release$shared_ext$major'
11484   shlibpath_var=LD_LIBRARY_PATH
11485   ;;
11486
11487 *)
11488   dynamic_linker=no
11489   ;;
11490 esac
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11492 $as_echo "$dynamic_linker" >&6; }
11493 test no = "$dynamic_linker" && can_build_shared=no
11494
11495 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11496 if test yes = "$GCC"; then
11497   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11498 fi
11499
11500 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11501   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11502 fi
11503
11504 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11505   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11506 fi
11507
11508 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11509 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11510
11511 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11512 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11513
11514 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11515 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11614 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11615 hardcode_action=
11616 if test -n "$hardcode_libdir_flag_spec" ||
11617    test -n "$runpath_var" ||
11618    test yes = "$hardcode_automatic"; then
11619
11620   # We can hardcode non-existent directories.
11621   if test no != "$hardcode_direct" &&
11622      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11623      # have to relink, otherwise we might link with an installed library
11624      # when we should be linking with a yet-to-be-installed one
11625      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11626      test no != "$hardcode_minus_L"; then
11627     # Linking always hardcodes the temporary library directory.
11628     hardcode_action=relink
11629   else
11630     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11631     hardcode_action=immediate
11632   fi
11633 else
11634   # We cannot hardcode anything, or else we can only hardcode existing
11635   # directories.
11636   hardcode_action=unsupported
11637 fi
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11639 $as_echo "$hardcode_action" >&6; }
11640
11641 if test relink = "$hardcode_action" ||
11642    test yes = "$inherit_rpath"; then
11643   # Fast installation is not supported
11644   enable_fast_install=no
11645 elif test yes = "$shlibpath_overrides_runpath" ||
11646      test no = "$enable_shared"; then
11647   # Fast installation is not necessary
11648   enable_fast_install=needless
11649 fi
11650
11651
11652
11653
11654
11655
11656   if test yes != "$enable_dlopen"; then
11657   enable_dlopen=unknown
11658   enable_dlopen_self=unknown
11659   enable_dlopen_self_static=unknown
11660 else
11661   lt_cv_dlopen=no
11662   lt_cv_dlopen_libs=
11663
11664   case $host_os in
11665   beos*)
11666     lt_cv_dlopen=load_add_on
11667     lt_cv_dlopen_libs=
11668     lt_cv_dlopen_self=yes
11669     ;;
11670
11671   mingw* | pw32* | cegcc*)
11672     lt_cv_dlopen=LoadLibrary
11673     lt_cv_dlopen_libs=
11674     ;;
11675
11676   cygwin*)
11677     lt_cv_dlopen=dlopen
11678     lt_cv_dlopen_libs=
11679     ;;
11680
11681   darwin*)
11682     # if libdl is installed we need to link against it
11683     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11684 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11685 if ${ac_cv_lib_dl_dlopen+:} false; then :
11686   $as_echo_n "(cached) " >&6
11687 else
11688   ac_check_lib_save_LIBS=$LIBS
11689 LIBS="-ldl  $LIBS"
11690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11691 /* end confdefs.h.  */
11692
11693 /* Override any GCC internal prototype to avoid an error.
11694    Use char because int might match the return type of a GCC
11695    builtin and then its argument prototype would still apply.  */
11696 #ifdef __cplusplus
11697 extern "C"
11698 #endif
11699 char dlopen ();
11700 int
11701 main ()
11702 {
11703 return dlopen ();
11704   ;
11705   return 0;
11706 }
11707 _ACEOF
11708 if ac_fn_c_try_link "$LINENO"; then :
11709   ac_cv_lib_dl_dlopen=yes
11710 else
11711   ac_cv_lib_dl_dlopen=no
11712 fi
11713 rm -f core conftest.err conftest.$ac_objext \
11714     conftest$ac_exeext conftest.$ac_ext
11715 LIBS=$ac_check_lib_save_LIBS
11716 fi
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11718 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11719 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11720   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11721 else
11722
11723     lt_cv_dlopen=dyld
11724     lt_cv_dlopen_libs=
11725     lt_cv_dlopen_self=yes
11726
11727 fi
11728
11729     ;;
11730
11731   tpf*)
11732     # Don't try to run any link tests for TPF.  We know it's impossible
11733     # because TPF is a cross-compiler, and we know how we open DSOs.
11734     lt_cv_dlopen=dlopen
11735     lt_cv_dlopen_libs=
11736     lt_cv_dlopen_self=no
11737     ;;
11738
11739   *)
11740     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11741 if test "x$ac_cv_func_shl_load" = xyes; then :
11742   lt_cv_dlopen=shl_load
11743 else
11744   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11745 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11746 if ${ac_cv_lib_dld_shl_load+:} false; then :
11747   $as_echo_n "(cached) " >&6
11748 else
11749   ac_check_lib_save_LIBS=$LIBS
11750 LIBS="-ldld  $LIBS"
11751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11752 /* end confdefs.h.  */
11753
11754 /* Override any GCC internal prototype to avoid an error.
11755    Use char because int might match the return type of a GCC
11756    builtin and then its argument prototype would still apply.  */
11757 #ifdef __cplusplus
11758 extern "C"
11759 #endif
11760 char shl_load ();
11761 int
11762 main ()
11763 {
11764 return shl_load ();
11765   ;
11766   return 0;
11767 }
11768 _ACEOF
11769 if ac_fn_c_try_link "$LINENO"; then :
11770   ac_cv_lib_dld_shl_load=yes
11771 else
11772   ac_cv_lib_dld_shl_load=no
11773 fi
11774 rm -f core conftest.err conftest.$ac_objext \
11775     conftest$ac_exeext conftest.$ac_ext
11776 LIBS=$ac_check_lib_save_LIBS
11777 fi
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11779 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11780 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11781   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11782 else
11783   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11784 if test "x$ac_cv_func_dlopen" = xyes; then :
11785   lt_cv_dlopen=dlopen
11786 else
11787   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11788 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11789 if ${ac_cv_lib_dl_dlopen+:} false; then :
11790   $as_echo_n "(cached) " >&6
11791 else
11792   ac_check_lib_save_LIBS=$LIBS
11793 LIBS="-ldl  $LIBS"
11794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11795 /* end confdefs.h.  */
11796
11797 /* Override any GCC internal prototype to avoid an error.
11798    Use char because int might match the return type of a GCC
11799    builtin and then its argument prototype would still apply.  */
11800 #ifdef __cplusplus
11801 extern "C"
11802 #endif
11803 char dlopen ();
11804 int
11805 main ()
11806 {
11807 return dlopen ();
11808   ;
11809   return 0;
11810 }
11811 _ACEOF
11812 if ac_fn_c_try_link "$LINENO"; then :
11813   ac_cv_lib_dl_dlopen=yes
11814 else
11815   ac_cv_lib_dl_dlopen=no
11816 fi
11817 rm -f core conftest.err conftest.$ac_objext \
11818     conftest$ac_exeext conftest.$ac_ext
11819 LIBS=$ac_check_lib_save_LIBS
11820 fi
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11822 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11823 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11824   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11825 else
11826   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11827 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11828 if ${ac_cv_lib_svld_dlopen+:} false; then :
11829   $as_echo_n "(cached) " >&6
11830 else
11831   ac_check_lib_save_LIBS=$LIBS
11832 LIBS="-lsvld  $LIBS"
11833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11834 /* end confdefs.h.  */
11835
11836 /* Override any GCC internal prototype to avoid an error.
11837    Use char because int might match the return type of a GCC
11838    builtin and then its argument prototype would still apply.  */
11839 #ifdef __cplusplus
11840 extern "C"
11841 #endif
11842 char dlopen ();
11843 int
11844 main ()
11845 {
11846 return dlopen ();
11847   ;
11848   return 0;
11849 }
11850 _ACEOF
11851 if ac_fn_c_try_link "$LINENO"; then :
11852   ac_cv_lib_svld_dlopen=yes
11853 else
11854   ac_cv_lib_svld_dlopen=no
11855 fi
11856 rm -f core conftest.err conftest.$ac_objext \
11857     conftest$ac_exeext conftest.$ac_ext
11858 LIBS=$ac_check_lib_save_LIBS
11859 fi
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11861 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11862 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11863   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11864 else
11865   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11866 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11867 if ${ac_cv_lib_dld_dld_link+:} false; then :
11868   $as_echo_n "(cached) " >&6
11869 else
11870   ac_check_lib_save_LIBS=$LIBS
11871 LIBS="-ldld  $LIBS"
11872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11873 /* end confdefs.h.  */
11874
11875 /* Override any GCC internal prototype to avoid an error.
11876    Use char because int might match the return type of a GCC
11877    builtin and then its argument prototype would still apply.  */
11878 #ifdef __cplusplus
11879 extern "C"
11880 #endif
11881 char dld_link ();
11882 int
11883 main ()
11884 {
11885 return dld_link ();
11886   ;
11887   return 0;
11888 }
11889 _ACEOF
11890 if ac_fn_c_try_link "$LINENO"; then :
11891   ac_cv_lib_dld_dld_link=yes
11892 else
11893   ac_cv_lib_dld_dld_link=no
11894 fi
11895 rm -f core conftest.err conftest.$ac_objext \
11896     conftest$ac_exeext conftest.$ac_ext
11897 LIBS=$ac_check_lib_save_LIBS
11898 fi
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11900 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11901 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11902   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11903 fi
11904
11905
11906 fi
11907
11908
11909 fi
11910
11911
11912 fi
11913
11914
11915 fi
11916
11917
11918 fi
11919
11920     ;;
11921   esac
11922
11923   if test no = "$lt_cv_dlopen"; then
11924     enable_dlopen=no
11925   else
11926     enable_dlopen=yes
11927   fi
11928
11929   case $lt_cv_dlopen in
11930   dlopen)
11931     save_CPPFLAGS=$CPPFLAGS
11932     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11933
11934     save_LDFLAGS=$LDFLAGS
11935     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11936
11937     save_LIBS=$LIBS
11938     LIBS="$lt_cv_dlopen_libs $LIBS"
11939
11940     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11941 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11942 if ${lt_cv_dlopen_self+:} false; then :
11943   $as_echo_n "(cached) " >&6
11944 else
11945           if test yes = "$cross_compiling"; then :
11946   lt_cv_dlopen_self=cross
11947 else
11948   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11949   lt_status=$lt_dlunknown
11950   cat > conftest.$ac_ext <<_LT_EOF
11951 #line $LINENO "configure"
11952 #include "confdefs.h"
11953
11954 #if HAVE_DLFCN_H
11955 #include <dlfcn.h>
11956 #endif
11957
11958 #include <stdio.h>
11959
11960 #ifdef RTLD_GLOBAL
11961 #  define LT_DLGLOBAL           RTLD_GLOBAL
11962 #else
11963 #  ifdef DL_GLOBAL
11964 #    define LT_DLGLOBAL         DL_GLOBAL
11965 #  else
11966 #    define LT_DLGLOBAL         0
11967 #  endif
11968 #endif
11969
11970 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11971    find out it does not work in some platform. */
11972 #ifndef LT_DLLAZY_OR_NOW
11973 #  ifdef RTLD_LAZY
11974 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11975 #  else
11976 #    ifdef DL_LAZY
11977 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11978 #    else
11979 #      ifdef RTLD_NOW
11980 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11981 #      else
11982 #        ifdef DL_NOW
11983 #          define LT_DLLAZY_OR_NOW      DL_NOW
11984 #        else
11985 #          define LT_DLLAZY_OR_NOW      0
11986 #        endif
11987 #      endif
11988 #    endif
11989 #  endif
11990 #endif
11991
11992 /* When -fvisibility=hidden is used, assume the code has been annotated
11993    correspondingly for the symbols needed.  */
11994 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11995 int fnord () __attribute__((visibility("default")));
11996 #endif
11997
11998 int fnord () { return 42; }
11999 int main ()
12000 {
12001   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12002   int status = $lt_dlunknown;
12003
12004   if (self)
12005     {
12006       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12007       else
12008         {
12009           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12010           else puts (dlerror ());
12011         }
12012       /* dlclose (self); */
12013     }
12014   else
12015     puts (dlerror ());
12016
12017   return status;
12018 }
12019 _LT_EOF
12020   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12021   (eval $ac_link) 2>&5
12022   ac_status=$?
12023   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12024   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12025     (./conftest; exit; ) >&5 2>/dev/null
12026     lt_status=$?
12027     case x$lt_status in
12028       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12029       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12030       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12031     esac
12032   else :
12033     # compilation failed
12034     lt_cv_dlopen_self=no
12035   fi
12036 fi
12037 rm -fr conftest*
12038
12039
12040 fi
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12042 $as_echo "$lt_cv_dlopen_self" >&6; }
12043
12044     if test yes = "$lt_cv_dlopen_self"; then
12045       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12046       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12047 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12048 if ${lt_cv_dlopen_self_static+:} false; then :
12049   $as_echo_n "(cached) " >&6
12050 else
12051           if test yes = "$cross_compiling"; then :
12052   lt_cv_dlopen_self_static=cross
12053 else
12054   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12055   lt_status=$lt_dlunknown
12056   cat > conftest.$ac_ext <<_LT_EOF
12057 #line $LINENO "configure"
12058 #include "confdefs.h"
12059
12060 #if HAVE_DLFCN_H
12061 #include <dlfcn.h>
12062 #endif
12063
12064 #include <stdio.h>
12065
12066 #ifdef RTLD_GLOBAL
12067 #  define LT_DLGLOBAL           RTLD_GLOBAL
12068 #else
12069 #  ifdef DL_GLOBAL
12070 #    define LT_DLGLOBAL         DL_GLOBAL
12071 #  else
12072 #    define LT_DLGLOBAL         0
12073 #  endif
12074 #endif
12075
12076 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12077    find out it does not work in some platform. */
12078 #ifndef LT_DLLAZY_OR_NOW
12079 #  ifdef RTLD_LAZY
12080 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12081 #  else
12082 #    ifdef DL_LAZY
12083 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12084 #    else
12085 #      ifdef RTLD_NOW
12086 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12087 #      else
12088 #        ifdef DL_NOW
12089 #          define LT_DLLAZY_OR_NOW      DL_NOW
12090 #        else
12091 #          define LT_DLLAZY_OR_NOW      0
12092 #        endif
12093 #      endif
12094 #    endif
12095 #  endif
12096 #endif
12097
12098 /* When -fvisibility=hidden is used, assume the code has been annotated
12099    correspondingly for the symbols needed.  */
12100 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12101 int fnord () __attribute__((visibility("default")));
12102 #endif
12103
12104 int fnord () { return 42; }
12105 int main ()
12106 {
12107   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12108   int status = $lt_dlunknown;
12109
12110   if (self)
12111     {
12112       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12113       else
12114         {
12115           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12116           else puts (dlerror ());
12117         }
12118       /* dlclose (self); */
12119     }
12120   else
12121     puts (dlerror ());
12122
12123   return status;
12124 }
12125 _LT_EOF
12126   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12127   (eval $ac_link) 2>&5
12128   ac_status=$?
12129   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12130   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12131     (./conftest; exit; ) >&5 2>/dev/null
12132     lt_status=$?
12133     case x$lt_status in
12134       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12135       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12136       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12137     esac
12138   else :
12139     # compilation failed
12140     lt_cv_dlopen_self_static=no
12141   fi
12142 fi
12143 rm -fr conftest*
12144
12145
12146 fi
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12148 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12149     fi
12150
12151     CPPFLAGS=$save_CPPFLAGS
12152     LDFLAGS=$save_LDFLAGS
12153     LIBS=$save_LIBS
12154     ;;
12155   esac
12156
12157   case $lt_cv_dlopen_self in
12158   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12159   *) enable_dlopen_self=unknown ;;
12160   esac
12161
12162   case $lt_cv_dlopen_self_static in
12163   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12164   *) enable_dlopen_self_static=unknown ;;
12165   esac
12166 fi
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184 striplib=
12185 old_striplib=
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12187 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12188 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12189   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12190   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12192 $as_echo "yes" >&6; }
12193 else
12194 # FIXME - insert some real tests, host_os isn't really good enough
12195   case $host_os in
12196   darwin*)
12197     if test -n "$STRIP"; then
12198       striplib="$STRIP -x"
12199       old_striplib="$STRIP -S"
12200       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12201 $as_echo "yes" >&6; }
12202     else
12203       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12204 $as_echo "no" >&6; }
12205     fi
12206     ;;
12207   *)
12208     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12209 $as_echo "no" >&6; }
12210     ;;
12211   esac
12212 fi
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225   # Report what library types will actually be built
12226   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12227 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12229 $as_echo "$can_build_shared" >&6; }
12230
12231   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12232 $as_echo_n "checking whether to build shared libraries... " >&6; }
12233   test no = "$can_build_shared" && enable_shared=no
12234
12235   # On AIX, shared libraries and static libraries use the same namespace, and
12236   # are all built from PIC.
12237   case $host_os in
12238   aix3*)
12239     test yes = "$enable_shared" && enable_static=no
12240     if test -n "$RANLIB"; then
12241       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12242       postinstall_cmds='$RANLIB $lib'
12243     fi
12244     ;;
12245
12246   aix[4-9]*)
12247     if test ia64 != "$host_cpu"; then
12248       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12249       yes,aix,yes) ;;                   # shared object as lib.so file only
12250       yes,svr4,*) ;;                    # shared object as lib.so archive member only
12251       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
12252       esac
12253     fi
12254     ;;
12255   esac
12256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12257 $as_echo "$enable_shared" >&6; }
12258
12259   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12260 $as_echo_n "checking whether to build static libraries... " >&6; }
12261   # Make sure either enable_shared or enable_static is yes.
12262   test yes = "$enable_shared" || enable_static=yes
12263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12264 $as_echo "$enable_static" >&6; }
12265
12266
12267
12268
12269 fi
12270 ac_ext=c
12271 ac_cpp='$CPP $CPPFLAGS'
12272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12275
12276 CC=$lt_save_CC
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292         ac_config_commands="$ac_config_commands libtool"
12293
12294
12295
12296
12297 # Only expand once:
12298
12299
12300 # Check whether --enable-largefile was given.
12301 if test "${enable_largefile+set}" = set; then :
12302   enableval=$enable_largefile;
12303 fi
12304
12305 if test "$enable_largefile" != no; then
12306
12307   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12308 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12309 if ${ac_cv_sys_largefile_CC+:} false; then :
12310   $as_echo_n "(cached) " >&6
12311 else
12312   ac_cv_sys_largefile_CC=no
12313      if test "$GCC" != yes; then
12314        ac_save_CC=$CC
12315        while :; do
12316          # IRIX 6.2 and later do not support large files by default,
12317          # so use the C compiler's -n32 option if that helps.
12318          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12319 /* end confdefs.h.  */
12320 #include <sys/types.h>
12321  /* Check that off_t can represent 2**63 - 1 correctly.
12322     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12323     since some C++ compilers masquerading as C compilers
12324     incorrectly reject 9223372036854775807.  */
12325 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12326   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12327                        && LARGE_OFF_T % 2147483647 == 1)
12328                       ? 1 : -1];
12329 int
12330 main ()
12331 {
12332
12333   ;
12334   return 0;
12335 }
12336 _ACEOF
12337          if ac_fn_c_try_compile "$LINENO"; then :
12338   break
12339 fi
12340 rm -f core conftest.err conftest.$ac_objext
12341          CC="$CC -n32"
12342          if ac_fn_c_try_compile "$LINENO"; then :
12343   ac_cv_sys_largefile_CC=' -n32'; break
12344 fi
12345 rm -f core conftest.err conftest.$ac_objext
12346          break
12347        done
12348        CC=$ac_save_CC
12349        rm -f conftest.$ac_ext
12350     fi
12351 fi
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12353 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
12354   if test "$ac_cv_sys_largefile_CC" != no; then
12355     CC=$CC$ac_cv_sys_largefile_CC
12356   fi
12357
12358   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12359 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12360 if ${ac_cv_sys_file_offset_bits+:} false; then :
12361   $as_echo_n "(cached) " >&6
12362 else
12363   while :; do
12364   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12365 /* end confdefs.h.  */
12366 #include <sys/types.h>
12367  /* Check that off_t can represent 2**63 - 1 correctly.
12368     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12369     since some C++ compilers masquerading as C compilers
12370     incorrectly reject 9223372036854775807.  */
12371 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12372   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12373                        && LARGE_OFF_T % 2147483647 == 1)
12374                       ? 1 : -1];
12375 int
12376 main ()
12377 {
12378
12379   ;
12380   return 0;
12381 }
12382 _ACEOF
12383 if ac_fn_c_try_compile "$LINENO"; then :
12384   ac_cv_sys_file_offset_bits=no; break
12385 fi
12386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12387   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12388 /* end confdefs.h.  */
12389 #define _FILE_OFFSET_BITS 64
12390 #include <sys/types.h>
12391  /* Check that off_t can represent 2**63 - 1 correctly.
12392     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12393     since some C++ compilers masquerading as C compilers
12394     incorrectly reject 9223372036854775807.  */
12395 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12396   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12397                        && LARGE_OFF_T % 2147483647 == 1)
12398                       ? 1 : -1];
12399 int
12400 main ()
12401 {
12402
12403   ;
12404   return 0;
12405 }
12406 _ACEOF
12407 if ac_fn_c_try_compile "$LINENO"; then :
12408   ac_cv_sys_file_offset_bits=64; break
12409 fi
12410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12411   ac_cv_sys_file_offset_bits=unknown
12412   break
12413 done
12414 fi
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12416 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12417 case $ac_cv_sys_file_offset_bits in #(
12418   no | unknown) ;;
12419   *)
12420 cat >>confdefs.h <<_ACEOF
12421 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12422 _ACEOF
12423 ;;
12424 esac
12425 rm -rf conftest*
12426   if test $ac_cv_sys_file_offset_bits = unknown; then
12427     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12428 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12429 if ${ac_cv_sys_large_files+:} false; then :
12430   $as_echo_n "(cached) " >&6
12431 else
12432   while :; do
12433   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12434 /* end confdefs.h.  */
12435 #include <sys/types.h>
12436  /* Check that off_t can represent 2**63 - 1 correctly.
12437     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12438     since some C++ compilers masquerading as C compilers
12439     incorrectly reject 9223372036854775807.  */
12440 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12441   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12442                        && LARGE_OFF_T % 2147483647 == 1)
12443                       ? 1 : -1];
12444 int
12445 main ()
12446 {
12447
12448   ;
12449   return 0;
12450 }
12451 _ACEOF
12452 if ac_fn_c_try_compile "$LINENO"; then :
12453   ac_cv_sys_large_files=no; break
12454 fi
12455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12456   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12457 /* end confdefs.h.  */
12458 #define _LARGE_FILES 1
12459 #include <sys/types.h>
12460  /* Check that off_t can represent 2**63 - 1 correctly.
12461     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12462     since some C++ compilers masquerading as C compilers
12463     incorrectly reject 9223372036854775807.  */
12464 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12465   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12466                        && LARGE_OFF_T % 2147483647 == 1)
12467                       ? 1 : -1];
12468 int
12469 main ()
12470 {
12471
12472   ;
12473   return 0;
12474 }
12475 _ACEOF
12476 if ac_fn_c_try_compile "$LINENO"; then :
12477   ac_cv_sys_large_files=1; break
12478 fi
12479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12480   ac_cv_sys_large_files=unknown
12481   break
12482 done
12483 fi
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12485 $as_echo "$ac_cv_sys_large_files" >&6; }
12486 case $ac_cv_sys_large_files in #(
12487   no | unknown) ;;
12488   *)
12489 cat >>confdefs.h <<_ACEOF
12490 #define _LARGE_FILES $ac_cv_sys_large_files
12491 _ACEOF
12492 ;;
12493 esac
12494 rm -rf conftest*
12495   fi
12496
12497
12498 fi
12499
12500  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12501 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12502 if ${ac_cv_c_bigendian+:} false; then :
12503   $as_echo_n "(cached) " >&6
12504 else
12505   ac_cv_c_bigendian=unknown
12506     # See if we're dealing with a universal compiler.
12507     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12508 /* end confdefs.h.  */
12509 #ifndef __APPLE_CC__
12510                not a universal capable compiler
12511              #endif
12512              typedef int dummy;
12513
12514 _ACEOF
12515 if ac_fn_c_try_compile "$LINENO"; then :
12516
12517         # Check for potential -arch flags.  It is not universal unless
12518         # there are at least two -arch flags with different values.
12519         ac_arch=
12520         ac_prev=
12521         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12522          if test -n "$ac_prev"; then
12523            case $ac_word in
12524              i?86 | x86_64 | ppc | ppc64)
12525                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12526                  ac_arch=$ac_word
12527                else
12528                  ac_cv_c_bigendian=universal
12529                  break
12530                fi
12531                ;;
12532            esac
12533            ac_prev=
12534          elif test "x$ac_word" = "x-arch"; then
12535            ac_prev=arch
12536          fi
12537        done
12538 fi
12539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12540     if test $ac_cv_c_bigendian = unknown; then
12541       # See if sys/param.h defines the BYTE_ORDER macro.
12542       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12543 /* end confdefs.h.  */
12544 #include <sys/types.h>
12545              #include <sys/param.h>
12546
12547 int
12548 main ()
12549 {
12550 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12551                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12552                      && LITTLE_ENDIAN)
12553               bogus endian macros
12554              #endif
12555
12556   ;
12557   return 0;
12558 }
12559 _ACEOF
12560 if ac_fn_c_try_compile "$LINENO"; then :
12561   # It does; now see whether it defined to BIG_ENDIAN or not.
12562          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12563 /* end confdefs.h.  */
12564 #include <sys/types.h>
12565                 #include <sys/param.h>
12566
12567 int
12568 main ()
12569 {
12570 #if BYTE_ORDER != BIG_ENDIAN
12571                  not big endian
12572                 #endif
12573
12574   ;
12575   return 0;
12576 }
12577 _ACEOF
12578 if ac_fn_c_try_compile "$LINENO"; then :
12579   ac_cv_c_bigendian=yes
12580 else
12581   ac_cv_c_bigendian=no
12582 fi
12583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12584 fi
12585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12586     fi
12587     if test $ac_cv_c_bigendian = unknown; then
12588       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12589       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12590 /* end confdefs.h.  */
12591 #include <limits.h>
12592
12593 int
12594 main ()
12595 {
12596 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12597               bogus endian macros
12598              #endif
12599
12600   ;
12601   return 0;
12602 }
12603 _ACEOF
12604 if ac_fn_c_try_compile "$LINENO"; then :
12605   # It does; now see whether it defined to _BIG_ENDIAN or not.
12606          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12607 /* end confdefs.h.  */
12608 #include <limits.h>
12609
12610 int
12611 main ()
12612 {
12613 #ifndef _BIG_ENDIAN
12614                  not big endian
12615                 #endif
12616
12617   ;
12618   return 0;
12619 }
12620 _ACEOF
12621 if ac_fn_c_try_compile "$LINENO"; then :
12622   ac_cv_c_bigendian=yes
12623 else
12624   ac_cv_c_bigendian=no
12625 fi
12626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12627 fi
12628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12629     fi
12630     if test $ac_cv_c_bigendian = unknown; then
12631       # Compile a test program.
12632       if test "$cross_compiling" = yes; then :
12633   # Try to guess by grepping values from an object file.
12634          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12635 /* end confdefs.h.  */
12636 short int ascii_mm[] =
12637                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12638                 short int ascii_ii[] =
12639                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12640                 int use_ascii (int i) {
12641                   return ascii_mm[i] + ascii_ii[i];
12642                 }
12643                 short int ebcdic_ii[] =
12644                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12645                 short int ebcdic_mm[] =
12646                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12647                 int use_ebcdic (int i) {
12648                   return ebcdic_mm[i] + ebcdic_ii[i];
12649                 }
12650                 extern int foo;
12651
12652 int
12653 main ()
12654 {
12655 return use_ascii (foo) == use_ebcdic (foo);
12656   ;
12657   return 0;
12658 }
12659 _ACEOF
12660 if ac_fn_c_try_compile "$LINENO"; then :
12661   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12662               ac_cv_c_bigendian=yes
12663             fi
12664             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12665               if test "$ac_cv_c_bigendian" = unknown; then
12666                 ac_cv_c_bigendian=no
12667               else
12668                 # finding both strings is unlikely to happen, but who knows?
12669                 ac_cv_c_bigendian=unknown
12670               fi
12671             fi
12672 fi
12673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12674 else
12675   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12676 /* end confdefs.h.  */
12677 $ac_includes_default
12678 int
12679 main ()
12680 {
12681
12682              /* Are we little or big endian?  From Harbison&Steele.  */
12683              union
12684              {
12685                long int l;
12686                char c[sizeof (long int)];
12687              } u;
12688              u.l = 1;
12689              return u.c[sizeof (long int) - 1] == 1;
12690
12691   ;
12692   return 0;
12693 }
12694 _ACEOF
12695 if ac_fn_c_try_run "$LINENO"; then :
12696   ac_cv_c_bigendian=no
12697 else
12698   ac_cv_c_bigendian=yes
12699 fi
12700 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12701   conftest.$ac_objext conftest.beam conftest.$ac_ext
12702 fi
12703
12704     fi
12705 fi
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12707 $as_echo "$ac_cv_c_bigendian" >&6; }
12708  case $ac_cv_c_bigendian in #(
12709    yes)
12710      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12711 ;; #(
12712    no)
12713       ;; #(
12714    universal)
12715
12716 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12717
12718      ;; #(
12719    *)
12720      as_fn_error $? "unknown endianness
12721  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12722  esac
12723
12724
12725 ac_config_files="$ac_config_files Makefile lib/Makefile mkfs/Makefile fsck/Makefile tune/Makefile label/Makefile dump/Makefile"
12726
12727
12728 cat >confcache <<\_ACEOF
12729 # This file is a shell script that caches the results of configure
12730 # tests run on this system so they can be shared between configure
12731 # scripts and configure runs, see configure's option --config-cache.
12732 # It is not useful on other systems.  If it contains results you don't
12733 # want to keep, you may remove or edit it.
12734 #
12735 # config.status only pays attention to the cache file if you give it
12736 # the --recheck option to rerun configure.
12737 #
12738 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12739 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12740 # following values.
12741
12742 _ACEOF
12743
12744 # The following way of writing the cache mishandles newlines in values,
12745 # but we know of no workaround that is simple, portable, and efficient.
12746 # So, we kill variables containing newlines.
12747 # Ultrix sh set writes to stderr and can't be redirected directly,
12748 # and sets the high bit in the cache file unless we assign to the vars.
12749 (
12750   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12751     eval ac_val=\$$ac_var
12752     case $ac_val in #(
12753     *${as_nl}*)
12754       case $ac_var in #(
12755       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12756 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12757       esac
12758       case $ac_var in #(
12759       _ | IFS | as_nl) ;; #(
12760       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12761       *) { eval $ac_var=; unset $ac_var;} ;;
12762       esac ;;
12763     esac
12764   done
12765
12766   (set) 2>&1 |
12767     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12768     *${as_nl}ac_space=\ *)
12769       # `set' does not quote correctly, so add quotes: double-quote
12770       # substitution turns \\\\ into \\, and sed turns \\ into \.
12771       sed -n \
12772         "s/'/'\\\\''/g;
12773           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12774       ;; #(
12775     *)
12776       # `set' quotes correctly as required by POSIX, so do not add quotes.
12777       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12778       ;;
12779     esac |
12780     sort
12781 ) |
12782   sed '
12783      /^ac_cv_env_/b end
12784      t clear
12785      :clear
12786      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12787      t end
12788      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12789      :end' >>confcache
12790 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12791   if test -w "$cache_file"; then
12792     if test "x$cache_file" != "x/dev/null"; then
12793       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12794 $as_echo "$as_me: updating cache $cache_file" >&6;}
12795       if test ! -f "$cache_file" || test -h "$cache_file"; then
12796         cat confcache >"$cache_file"
12797       else
12798         case $cache_file in #(
12799         */* | ?:*)
12800           mv -f confcache "$cache_file"$$ &&
12801           mv -f "$cache_file"$$ "$cache_file" ;; #(
12802         *)
12803           mv -f confcache "$cache_file" ;;
12804         esac
12805       fi
12806     fi
12807   else
12808     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12809 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12810   fi
12811 fi
12812 rm -f confcache
12813
12814 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12815 # Let make expand exec_prefix.
12816 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12817
12818 DEFS=-DHAVE_CONFIG_H
12819
12820 ac_libobjs=
12821 ac_ltlibobjs=
12822 U=
12823 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12824   # 1. Remove the extension, and $U if already installed.
12825   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12826   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12827   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12828   #    will be set to the directory where LIBOBJS objects are built.
12829   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12830   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12831 done
12832 LIBOBJS=$ac_libobjs
12833
12834 LTLIBOBJS=$ac_ltlibobjs
12835
12836
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12838 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12839    if test -n "$am_sleep_pid"; then
12840      # Hide warnings about reused PIDs.
12841      wait $am_sleep_pid 2>/dev/null
12842    fi
12843    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12844 $as_echo "done" >&6; }
12845  if test -n "$EXEEXT"; then
12846   am__EXEEXT_TRUE=
12847   am__EXEEXT_FALSE='#'
12848 else
12849   am__EXEEXT_TRUE='#'
12850   am__EXEEXT_FALSE=
12851 fi
12852
12853 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12854   as_fn_error $? "conditional \"AMDEP\" was never defined.
12855 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12856 fi
12857 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12858   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12859 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12860 fi
12861
12862
12863 : "${CONFIG_STATUS=./config.status}"
12864 ac_write_fail=0
12865 ac_clean_files_save=$ac_clean_files
12866 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12868 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12869 as_write_fail=0
12870 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12871 #! $SHELL
12872 # Generated by $as_me.
12873 # Run this file to recreate the current configuration.
12874 # Compiler output produced by configure, useful for debugging
12875 # configure, is in config.log if it exists.
12876
12877 debug=false
12878 ac_cs_recheck=false
12879 ac_cs_silent=false
12880
12881 SHELL=\${CONFIG_SHELL-$SHELL}
12882 export SHELL
12883 _ASEOF
12884 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12885 ## -------------------- ##
12886 ## M4sh Initialization. ##
12887 ## -------------------- ##
12888
12889 # Be more Bourne compatible
12890 DUALCASE=1; export DUALCASE # for MKS sh
12891 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12892   emulate sh
12893   NULLCMD=:
12894   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12895   # is contrary to our usage.  Disable this feature.
12896   alias -g '${1+"$@"}'='"$@"'
12897   setopt NO_GLOB_SUBST
12898 else
12899   case `(set -o) 2>/dev/null` in #(
12900   *posix*) :
12901     set -o posix ;; #(
12902   *) :
12903      ;;
12904 esac
12905 fi
12906
12907
12908 as_nl='
12909 '
12910 export as_nl
12911 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12912 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12913 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12914 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12915 # Prefer a ksh shell builtin over an external printf program on Solaris,
12916 # but without wasting forks for bash or zsh.
12917 if test -z "$BASH_VERSION$ZSH_VERSION" \
12918     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12919   as_echo='print -r --'
12920   as_echo_n='print -rn --'
12921 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12922   as_echo='printf %s\n'
12923   as_echo_n='printf %s'
12924 else
12925   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12926     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12927     as_echo_n='/usr/ucb/echo -n'
12928   else
12929     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12930     as_echo_n_body='eval
12931       arg=$1;
12932       case $arg in #(
12933       *"$as_nl"*)
12934         expr "X$arg" : "X\\(.*\\)$as_nl";
12935         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12936       esac;
12937       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12938     '
12939     export as_echo_n_body
12940     as_echo_n='sh -c $as_echo_n_body as_echo'
12941   fi
12942   export as_echo_body
12943   as_echo='sh -c $as_echo_body as_echo'
12944 fi
12945
12946 # The user is always right.
12947 if test "${PATH_SEPARATOR+set}" != set; then
12948   PATH_SEPARATOR=:
12949   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12950     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12951       PATH_SEPARATOR=';'
12952   }
12953 fi
12954
12955
12956 # IFS
12957 # We need space, tab and new line, in precisely that order.  Quoting is
12958 # there to prevent editors from complaining about space-tab.
12959 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12960 # splitting by setting IFS to empty value.)
12961 IFS=" ""        $as_nl"
12962
12963 # Find who we are.  Look in the path if we contain no directory separator.
12964 as_myself=
12965 case $0 in #((
12966   *[\\/]* ) as_myself=$0 ;;
12967   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12968 for as_dir in $PATH
12969 do
12970   IFS=$as_save_IFS
12971   test -z "$as_dir" && as_dir=.
12972     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12973   done
12974 IFS=$as_save_IFS
12975
12976      ;;
12977 esac
12978 # We did not find ourselves, most probably we were run as `sh COMMAND'
12979 # in which case we are not to be found in the path.
12980 if test "x$as_myself" = x; then
12981   as_myself=$0
12982 fi
12983 if test ! -f "$as_myself"; then
12984   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12985   exit 1
12986 fi
12987
12988 # Unset variables that we do not need and which cause bugs (e.g. in
12989 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12990 # suppresses any "Segmentation fault" message there.  '((' could
12991 # trigger a bug in pdksh 5.2.14.
12992 for as_var in BASH_ENV ENV MAIL MAILPATH
12993 do eval test x\${$as_var+set} = xset \
12994   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12995 done
12996 PS1='$ '
12997 PS2='> '
12998 PS4='+ '
12999
13000 # NLS nuisances.
13001 LC_ALL=C
13002 export LC_ALL
13003 LANGUAGE=C
13004 export LANGUAGE
13005
13006 # CDPATH.
13007 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13008
13009
13010 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13011 # ----------------------------------------
13012 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13013 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13014 # script with STATUS, using 1 if that was 0.
13015 as_fn_error ()
13016 {
13017   as_status=$1; test $as_status -eq 0 && as_status=1
13018   if test "$4"; then
13019     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13020     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13021   fi
13022   $as_echo "$as_me: error: $2" >&2
13023   as_fn_exit $as_status
13024 } # as_fn_error
13025
13026
13027 # as_fn_set_status STATUS
13028 # -----------------------
13029 # Set $? to STATUS, without forking.
13030 as_fn_set_status ()
13031 {
13032   return $1
13033 } # as_fn_set_status
13034
13035 # as_fn_exit STATUS
13036 # -----------------
13037 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13038 as_fn_exit ()
13039 {
13040   set +e
13041   as_fn_set_status $1
13042   exit $1
13043 } # as_fn_exit
13044
13045 # as_fn_unset VAR
13046 # ---------------
13047 # Portably unset VAR.
13048 as_fn_unset ()
13049 {
13050   { eval $1=; unset $1;}
13051 }
13052 as_unset=as_fn_unset
13053 # as_fn_append VAR VALUE
13054 # ----------------------
13055 # Append the text in VALUE to the end of the definition contained in VAR. Take
13056 # advantage of any shell optimizations that allow amortized linear growth over
13057 # repeated appends, instead of the typical quadratic growth present in naive
13058 # implementations.
13059 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13060   eval 'as_fn_append ()
13061   {
13062     eval $1+=\$2
13063   }'
13064 else
13065   as_fn_append ()
13066   {
13067     eval $1=\$$1\$2
13068   }
13069 fi # as_fn_append
13070
13071 # as_fn_arith ARG...
13072 # ------------------
13073 # Perform arithmetic evaluation on the ARGs, and store the result in the
13074 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13075 # must be portable across $(()) and expr.
13076 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13077   eval 'as_fn_arith ()
13078   {
13079     as_val=$(( $* ))
13080   }'
13081 else
13082   as_fn_arith ()
13083   {
13084     as_val=`expr "$@" || test $? -eq 1`
13085   }
13086 fi # as_fn_arith
13087
13088
13089 if expr a : '\(a\)' >/dev/null 2>&1 &&
13090    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13091   as_expr=expr
13092 else
13093   as_expr=false
13094 fi
13095
13096 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13097   as_basename=basename
13098 else
13099   as_basename=false
13100 fi
13101
13102 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13103   as_dirname=dirname
13104 else
13105   as_dirname=false
13106 fi
13107
13108 as_me=`$as_basename -- "$0" ||
13109 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13110          X"$0" : 'X\(//\)$' \| \
13111          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13112 $as_echo X/"$0" |
13113     sed '/^.*\/\([^/][^/]*\)\/*$/{
13114             s//\1/
13115             q
13116           }
13117           /^X\/\(\/\/\)$/{
13118             s//\1/
13119             q
13120           }
13121           /^X\/\(\/\).*/{
13122             s//\1/
13123             q
13124           }
13125           s/.*/./; q'`
13126
13127 # Avoid depending upon Character Ranges.
13128 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13129 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13130 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13131 as_cr_digits='0123456789'
13132 as_cr_alnum=$as_cr_Letters$as_cr_digits
13133
13134 ECHO_C= ECHO_N= ECHO_T=
13135 case `echo -n x` in #(((((
13136 -n*)
13137   case `echo 'xy\c'` in
13138   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13139   xy)  ECHO_C='\c';;
13140   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13141        ECHO_T=' ';;
13142   esac;;
13143 *)
13144   ECHO_N='-n';;
13145 esac
13146
13147 rm -f conf$$ conf$$.exe conf$$.file
13148 if test -d conf$$.dir; then
13149   rm -f conf$$.dir/conf$$.file
13150 else
13151   rm -f conf$$.dir
13152   mkdir conf$$.dir 2>/dev/null
13153 fi
13154 if (echo >conf$$.file) 2>/dev/null; then
13155   if ln -s conf$$.file conf$$ 2>/dev/null; then
13156     as_ln_s='ln -s'
13157     # ... but there are two gotchas:
13158     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13159     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13160     # In both cases, we have to default to `cp -pR'.
13161     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13162       as_ln_s='cp -pR'
13163   elif ln conf$$.file conf$$ 2>/dev/null; then
13164     as_ln_s=ln
13165   else
13166     as_ln_s='cp -pR'
13167   fi
13168 else
13169   as_ln_s='cp -pR'
13170 fi
13171 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13172 rmdir conf$$.dir 2>/dev/null
13173
13174
13175 # as_fn_mkdir_p
13176 # -------------
13177 # Create "$as_dir" as a directory, including parents if necessary.
13178 as_fn_mkdir_p ()
13179 {
13180
13181   case $as_dir in #(
13182   -*) as_dir=./$as_dir;;
13183   esac
13184   test -d "$as_dir" || eval $as_mkdir_p || {
13185     as_dirs=
13186     while :; do
13187       case $as_dir in #(
13188       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13189       *) as_qdir=$as_dir;;
13190       esac
13191       as_dirs="'$as_qdir' $as_dirs"
13192       as_dir=`$as_dirname -- "$as_dir" ||
13193 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13194          X"$as_dir" : 'X\(//\)[^/]' \| \
13195          X"$as_dir" : 'X\(//\)$' \| \
13196          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13197 $as_echo X"$as_dir" |
13198     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13199             s//\1/
13200             q
13201           }
13202           /^X\(\/\/\)[^/].*/{
13203             s//\1/
13204             q
13205           }
13206           /^X\(\/\/\)$/{
13207             s//\1/
13208             q
13209           }
13210           /^X\(\/\).*/{
13211             s//\1/
13212             q
13213           }
13214           s/.*/./; q'`
13215       test -d "$as_dir" && break
13216     done
13217     test -z "$as_dirs" || eval "mkdir $as_dirs"
13218   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13219
13220
13221 } # as_fn_mkdir_p
13222 if mkdir -p . 2>/dev/null; then
13223   as_mkdir_p='mkdir -p "$as_dir"'
13224 else
13225   test -d ./-p && rmdir ./-p
13226   as_mkdir_p=false
13227 fi
13228
13229
13230 # as_fn_executable_p FILE
13231 # -----------------------
13232 # Test if FILE is an executable regular file.
13233 as_fn_executable_p ()
13234 {
13235   test -f "$1" && test -x "$1"
13236 } # as_fn_executable_p
13237 as_test_x='test -x'
13238 as_executable_p=as_fn_executable_p
13239
13240 # Sed expression to map a string onto a valid CPP name.
13241 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13242
13243 # Sed expression to map a string onto a valid variable name.
13244 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13245
13246
13247 exec 6>&1
13248 ## ----------------------------------- ##
13249 ## Main body of $CONFIG_STATUS script. ##
13250 ## ----------------------------------- ##
13251 _ASEOF
13252 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13253
13254 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13255 # Save the log message, to keep $0 and so on meaningful, and to
13256 # report actual input values of CONFIG_FILES etc. instead of their
13257 # values after options handling.
13258 ac_log="
13259 This file was extended by exfatprogs $as_me 1.1.3, which was
13260 generated by GNU Autoconf 2.69.  Invocation command line was
13261
13262   CONFIG_FILES    = $CONFIG_FILES
13263   CONFIG_HEADERS  = $CONFIG_HEADERS
13264   CONFIG_LINKS    = $CONFIG_LINKS
13265   CONFIG_COMMANDS = $CONFIG_COMMANDS
13266   $ $0 $@
13267
13268 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13269 "
13270
13271 _ACEOF
13272
13273 case $ac_config_files in *"
13274 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13275 esac
13276
13277 case $ac_config_headers in *"
13278 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13279 esac
13280
13281
13282 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13283 # Files that config.status was made for.
13284 config_files="$ac_config_files"
13285 config_headers="$ac_config_headers"
13286 config_commands="$ac_config_commands"
13287
13288 _ACEOF
13289
13290 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13291 ac_cs_usage="\
13292 \`$as_me' instantiates files and other configuration actions
13293 from templates according to the current configuration.  Unless the files
13294 and actions are specified as TAGs, all are instantiated by default.
13295
13296 Usage: $0 [OPTION]... [TAG]...
13297
13298   -h, --help       print this help, then exit
13299   -V, --version    print version number and configuration settings, then exit
13300       --config     print configuration, then exit
13301   -q, --quiet, --silent
13302                    do not print progress messages
13303   -d, --debug      don't remove temporary files
13304       --recheck    update $as_me by reconfiguring in the same conditions
13305       --file=FILE[:TEMPLATE]
13306                    instantiate the configuration file FILE
13307       --header=FILE[:TEMPLATE]
13308                    instantiate the configuration header FILE
13309
13310 Configuration files:
13311 $config_files
13312
13313 Configuration headers:
13314 $config_headers
13315
13316 Configuration commands:
13317 $config_commands
13318
13319 Report bugs to <linkinjeon@kernel.org>.
13320 exfatprogs home page: <https://github.com/exfatprogs/exfatprogs>."
13321
13322 _ACEOF
13323 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13324 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13325 ac_cs_version="\\
13326 exfatprogs config.status 1.1.3
13327 configured by $0, generated by GNU Autoconf 2.69,
13328   with options \\"\$ac_cs_config\\"
13329
13330 Copyright (C) 2012 Free Software Foundation, Inc.
13331 This config.status script is free software; the Free Software Foundation
13332 gives unlimited permission to copy, distribute and modify it."
13333
13334 ac_pwd='$ac_pwd'
13335 srcdir='$srcdir'
13336 INSTALL='$INSTALL'
13337 MKDIR_P='$MKDIR_P'
13338 AWK='$AWK'
13339 test -n "\$AWK" || AWK=awk
13340 _ACEOF
13341
13342 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13343 # The default lists apply if the user does not specify any file.
13344 ac_need_defaults=:
13345 while test $# != 0
13346 do
13347   case $1 in
13348   --*=?*)
13349     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13350     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13351     ac_shift=:
13352     ;;
13353   --*=)
13354     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13355     ac_optarg=
13356     ac_shift=:
13357     ;;
13358   *)
13359     ac_option=$1
13360     ac_optarg=$2
13361     ac_shift=shift
13362     ;;
13363   esac
13364
13365   case $ac_option in
13366   # Handling of the options.
13367   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13368     ac_cs_recheck=: ;;
13369   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13370     $as_echo "$ac_cs_version"; exit ;;
13371   --config | --confi | --conf | --con | --co | --c )
13372     $as_echo "$ac_cs_config"; exit ;;
13373   --debug | --debu | --deb | --de | --d | -d )
13374     debug=: ;;
13375   --file | --fil | --fi | --f )
13376     $ac_shift
13377     case $ac_optarg in
13378     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13379     '') as_fn_error $? "missing file argument" ;;
13380     esac
13381     as_fn_append CONFIG_FILES " '$ac_optarg'"
13382     ac_need_defaults=false;;
13383   --header | --heade | --head | --hea )
13384     $ac_shift
13385     case $ac_optarg in
13386     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13387     esac
13388     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13389     ac_need_defaults=false;;
13390   --he | --h)
13391     # Conflict between --help and --header
13392     as_fn_error $? "ambiguous option: \`$1'
13393 Try \`$0 --help' for more information.";;
13394   --help | --hel | -h )
13395     $as_echo "$ac_cs_usage"; exit ;;
13396   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13397   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13398     ac_cs_silent=: ;;
13399
13400   # This is an error.
13401   -*) as_fn_error $? "unrecognized option: \`$1'
13402 Try \`$0 --help' for more information." ;;
13403
13404   *) as_fn_append ac_config_targets " $1"
13405      ac_need_defaults=false ;;
13406
13407   esac
13408   shift
13409 done
13410
13411 ac_configure_extra_args=
13412
13413 if $ac_cs_silent; then
13414   exec 6>/dev/null
13415   ac_configure_extra_args="$ac_configure_extra_args --silent"
13416 fi
13417
13418 _ACEOF
13419 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13420 if \$ac_cs_recheck; then
13421   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13422   shift
13423   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13424   CONFIG_SHELL='$SHELL'
13425   export CONFIG_SHELL
13426   exec "\$@"
13427 fi
13428
13429 _ACEOF
13430 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13431 exec 5>>config.log
13432 {
13433   echo
13434   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13435 ## Running $as_me. ##
13436 _ASBOX
13437   $as_echo "$ac_log"
13438 } >&5
13439
13440 _ACEOF
13441 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13442 #
13443 # INIT-COMMANDS
13444 #
13445 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
13446
13447
13448 # The HP-UX ksh and POSIX shell print the target directory to stdout
13449 # if CDPATH is set.
13450 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13451
13452 sed_quote_subst='$sed_quote_subst'
13453 double_quote_subst='$double_quote_subst'
13454 delay_variable_subst='$delay_variable_subst'
13455 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13456 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13457 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13458 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13459 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13460 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13461 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
13462 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13463 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13464 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13465 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13466 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13467 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13468 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13469 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13470 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13471 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13472 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13473 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13474 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13475 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13476 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13477 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13478 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13479 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13480 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13481 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13482 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13483 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13484 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13485 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13486 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13487 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13488 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13489 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13490 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13491 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13492 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13493 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13494 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13495 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13496 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13497 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13498 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13499 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13500 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13501 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13502 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13503 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13504 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13505 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13506 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13507 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13508 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13509 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13510 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13511 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
13512 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13513 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"`'
13514 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
13515 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13516 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13517 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
13518 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13519 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13520 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13521 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13522 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13523 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13524 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13525 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13526 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13527 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13528 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13529 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13530 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13531 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13532 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13533 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13534 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13535 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13536 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13537 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13538 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13539 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13540 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13541 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13542 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13543 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13544 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13545 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13546 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13547 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13548 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13549 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13550 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13551 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13552 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13553 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13554 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13555 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13556 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13557 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13558 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13559 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13560 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13561 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13562 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13563 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13564 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13565 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13566 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13567 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13568 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13569 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13570 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13571 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13572 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13573 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13574 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13575 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13576 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13577 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13578 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13579 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13580 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13581 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13582 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
13583 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
13584 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13585 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13586 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13587 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13588 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13589 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13590
13591 LTCC='$LTCC'
13592 LTCFLAGS='$LTCFLAGS'
13593 compiler='$compiler_DEFAULT'
13594
13595 # A function that is used when there is no print builtin or printf.
13596 func_fallback_echo ()
13597 {
13598   eval 'cat <<_LTECHO_EOF
13599 \$1
13600 _LTECHO_EOF'
13601 }
13602
13603 # Quote evaled strings.
13604 for var in SHELL \
13605 ECHO \
13606 PATH_SEPARATOR \
13607 SED \
13608 GREP \
13609 EGREP \
13610 FGREP \
13611 LD \
13612 NM \
13613 LN_S \
13614 lt_SP2NL \
13615 lt_NL2SP \
13616 reload_flag \
13617 OBJDUMP \
13618 deplibs_check_method \
13619 file_magic_cmd \
13620 file_magic_glob \
13621 want_nocaseglob \
13622 DLLTOOL \
13623 sharedlib_from_linklib_cmd \
13624 AR \
13625 AR_FLAGS \
13626 archiver_list_spec \
13627 STRIP \
13628 RANLIB \
13629 CC \
13630 CFLAGS \
13631 compiler \
13632 lt_cv_sys_global_symbol_pipe \
13633 lt_cv_sys_global_symbol_to_cdecl \
13634 lt_cv_sys_global_symbol_to_import \
13635 lt_cv_sys_global_symbol_to_c_name_address \
13636 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13637 lt_cv_nm_interface \
13638 nm_file_list_spec \
13639 lt_cv_truncate_bin \
13640 lt_prog_compiler_no_builtin_flag \
13641 lt_prog_compiler_pic \
13642 lt_prog_compiler_wl \
13643 lt_prog_compiler_static \
13644 lt_cv_prog_compiler_c_o \
13645 need_locks \
13646 MANIFEST_TOOL \
13647 DSYMUTIL \
13648 NMEDIT \
13649 LIPO \
13650 OTOOL \
13651 OTOOL64 \
13652 shrext_cmds \
13653 export_dynamic_flag_spec \
13654 whole_archive_flag_spec \
13655 compiler_needs_object \
13656 with_gnu_ld \
13657 allow_undefined_flag \
13658 no_undefined_flag \
13659 hardcode_libdir_flag_spec \
13660 hardcode_libdir_separator \
13661 exclude_expsyms \
13662 include_expsyms \
13663 file_list_spec \
13664 variables_saved_for_relink \
13665 libname_spec \
13666 library_names_spec \
13667 soname_spec \
13668 install_override_mode \
13669 finish_eval \
13670 old_striplib \
13671 striplib; do
13672     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13673     *[\\\\\\\`\\"\\\$]*)
13674       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13675       ;;
13676     *)
13677       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13678       ;;
13679     esac
13680 done
13681
13682 # Double-quote double-evaled strings.
13683 for var in reload_cmds \
13684 old_postinstall_cmds \
13685 old_postuninstall_cmds \
13686 old_archive_cmds \
13687 extract_expsyms_cmds \
13688 old_archive_from_new_cmds \
13689 old_archive_from_expsyms_cmds \
13690 archive_cmds \
13691 archive_expsym_cmds \
13692 module_cmds \
13693 module_expsym_cmds \
13694 export_symbols_cmds \
13695 prelink_cmds \
13696 postlink_cmds \
13697 postinstall_cmds \
13698 postuninstall_cmds \
13699 finish_cmds \
13700 sys_lib_search_path_spec \
13701 configure_time_dlsearch_path \
13702 configure_time_lt_sys_library_path; do
13703     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13704     *[\\\\\\\`\\"\\\$]*)
13705       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13706       ;;
13707     *)
13708       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13709       ;;
13710     esac
13711 done
13712
13713 ac_aux_dir='$ac_aux_dir'
13714
13715 # See if we are running on zsh, and set the options that allow our
13716 # commands through without removal of \ escapes INIT.
13717 if test -n "\${ZSH_VERSION+set}"; then
13718    setopt NO_GLOB_SUBST
13719 fi
13720
13721
13722     PACKAGE='$PACKAGE'
13723     VERSION='$VERSION'
13724     RM='$RM'
13725     ofile='$ofile'
13726
13727
13728
13729
13730 _ACEOF
13731
13732 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13733
13734 # Handling of arguments.
13735 for ac_config_target in $ac_config_targets
13736 do
13737   case $ac_config_target in
13738     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13739     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13740     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13741     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13742     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
13743     "mkfs/Makefile") CONFIG_FILES="$CONFIG_FILES mkfs/Makefile" ;;
13744     "fsck/Makefile") CONFIG_FILES="$CONFIG_FILES fsck/Makefile" ;;
13745     "tune/Makefile") CONFIG_FILES="$CONFIG_FILES tune/Makefile" ;;
13746     "label/Makefile") CONFIG_FILES="$CONFIG_FILES label/Makefile" ;;
13747     "dump/Makefile") CONFIG_FILES="$CONFIG_FILES dump/Makefile" ;;
13748
13749   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13750   esac
13751 done
13752
13753
13754 # If the user did not use the arguments to specify the items to instantiate,
13755 # then the envvar interface is used.  Set only those that are not.
13756 # We use the long form for the default assignment because of an extremely
13757 # bizarre bug on SunOS 4.1.3.
13758 if $ac_need_defaults; then
13759   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13760   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13761   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13762 fi
13763
13764 # Have a temporary directory for convenience.  Make it in the build tree
13765 # simply because there is no reason against having it here, and in addition,
13766 # creating and moving files from /tmp can sometimes cause problems.
13767 # Hook for its removal unless debugging.
13768 # Note that there is a small window in which the directory will not be cleaned:
13769 # after its creation but before its name has been assigned to `$tmp'.
13770 $debug ||
13771 {
13772   tmp= ac_tmp=
13773   trap 'exit_status=$?
13774   : "${ac_tmp:=$tmp}"
13775   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13776 ' 0
13777   trap 'as_fn_exit 1' 1 2 13 15
13778 }
13779 # Create a (secure) tmp directory for tmp files.
13780
13781 {
13782   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13783   test -d "$tmp"
13784 }  ||
13785 {
13786   tmp=./conf$$-$RANDOM
13787   (umask 077 && mkdir "$tmp")
13788 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13789 ac_tmp=$tmp
13790
13791 # Set up the scripts for CONFIG_FILES section.
13792 # No need to generate them if there are no CONFIG_FILES.
13793 # This happens for instance with `./config.status config.h'.
13794 if test -n "$CONFIG_FILES"; then
13795
13796
13797 ac_cr=`echo X | tr X '\015'`
13798 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13799 # But we know of no other shell where ac_cr would be empty at this
13800 # point, so we can use a bashism as a fallback.
13801 if test "x$ac_cr" = x; then
13802   eval ac_cr=\$\'\\r\'
13803 fi
13804 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13805 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13806   ac_cs_awk_cr='\\r'
13807 else
13808   ac_cs_awk_cr=$ac_cr
13809 fi
13810
13811 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13812 _ACEOF
13813
13814
13815 {
13816   echo "cat >conf$$subs.awk <<_ACEOF" &&
13817   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13818   echo "_ACEOF"
13819 } >conf$$subs.sh ||
13820   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13821 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13822 ac_delim='%!_!# '
13823 for ac_last_try in false false false false false :; do
13824   . ./conf$$subs.sh ||
13825     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13826
13827   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13828   if test $ac_delim_n = $ac_delim_num; then
13829     break
13830   elif $ac_last_try; then
13831     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13832   else
13833     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13834   fi
13835 done
13836 rm -f conf$$subs.sh
13837
13838 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13839 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13840 _ACEOF
13841 sed -n '
13842 h
13843 s/^/S["/; s/!.*/"]=/
13844 p
13845 g
13846 s/^[^!]*!//
13847 :repl
13848 t repl
13849 s/'"$ac_delim"'$//
13850 t delim
13851 :nl
13852 h
13853 s/\(.\{148\}\)..*/\1/
13854 t more1
13855 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13856 p
13857 n
13858 b repl
13859 :more1
13860 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13861 p
13862 g
13863 s/.\{148\}//
13864 t nl
13865 :delim
13866 h
13867 s/\(.\{148\}\)..*/\1/
13868 t more2
13869 s/["\\]/\\&/g; s/^/"/; s/$/"/
13870 p
13871 b
13872 :more2
13873 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13874 p
13875 g
13876 s/.\{148\}//
13877 t delim
13878 ' <conf$$subs.awk | sed '
13879 /^[^""]/{
13880   N
13881   s/\n//
13882 }
13883 ' >>$CONFIG_STATUS || ac_write_fail=1
13884 rm -f conf$$subs.awk
13885 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13886 _ACAWK
13887 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13888   for (key in S) S_is_set[key] = 1
13889   FS = "\a"
13890
13891 }
13892 {
13893   line = $ 0
13894   nfields = split(line, field, "@")
13895   substed = 0
13896   len = length(field[1])
13897   for (i = 2; i < nfields; i++) {
13898     key = field[i]
13899     keylen = length(key)
13900     if (S_is_set[key]) {
13901       value = S[key]
13902       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13903       len += length(value) + length(field[++i])
13904       substed = 1
13905     } else
13906       len += 1 + keylen
13907   }
13908
13909   print line
13910 }
13911
13912 _ACAWK
13913 _ACEOF
13914 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13915 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13916   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13917 else
13918   cat
13919 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13920   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13921 _ACEOF
13922
13923 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13924 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13925 # trailing colons and then remove the whole line if VPATH becomes empty
13926 # (actually we leave an empty line to preserve line numbers).
13927 if test "x$srcdir" = x.; then
13928   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
13929 h
13930 s///
13931 s/^/:/
13932 s/[      ]*$/:/
13933 s/:\$(srcdir):/:/g
13934 s/:\${srcdir}:/:/g
13935 s/:@srcdir@:/:/g
13936 s/^:*//
13937 s/:*$//
13938 x
13939 s/\(=[   ]*\).*/\1/
13940 G
13941 s/\n//
13942 s/^[^=]*=[       ]*$//
13943 }'
13944 fi
13945
13946 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13947 fi # test -n "$CONFIG_FILES"
13948
13949 # Set up the scripts for CONFIG_HEADERS section.
13950 # No need to generate them if there are no CONFIG_HEADERS.
13951 # This happens for instance with `./config.status Makefile'.
13952 if test -n "$CONFIG_HEADERS"; then
13953 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13954 BEGIN {
13955 _ACEOF
13956
13957 # Transform confdefs.h into an awk script `defines.awk', embedded as
13958 # here-document in config.status, that substitutes the proper values into
13959 # config.h.in to produce config.h.
13960
13961 # Create a delimiter string that does not exist in confdefs.h, to ease
13962 # handling of long lines.
13963 ac_delim='%!_!# '
13964 for ac_last_try in false false :; do
13965   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13966   if test -z "$ac_tt"; then
13967     break
13968   elif $ac_last_try; then
13969     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13970   else
13971     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13972   fi
13973 done
13974
13975 # For the awk script, D is an array of macro values keyed by name,
13976 # likewise P contains macro parameters if any.  Preserve backslash
13977 # newline sequences.
13978
13979 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13980 sed -n '
13981 s/.\{148\}/&'"$ac_delim"'/g
13982 t rset
13983 :rset
13984 s/^[     ]*#[    ]*define[       ][      ]*/ /
13985 t def
13986 d
13987 :def
13988 s/\\$//
13989 t bsnl
13990 s/["\\]/\\&/g
13991 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13992 D["\1"]=" \3"/p
13993 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
13994 d
13995 :bsnl
13996 s/["\\]/\\&/g
13997 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13998 D["\1"]=" \3\\\\\\n"\\/p
13999 t cont
14000 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14001 t cont
14002 d
14003 :cont
14004 n
14005 s/.\{148\}/&'"$ac_delim"'/g
14006 t clear
14007 :clear
14008 s/\\$//
14009 t bsnlc
14010 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14011 d
14012 :bsnlc
14013 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14014 b cont
14015 ' <confdefs.h | sed '
14016 s/'"$ac_delim"'/"\\\
14017 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14018
14019 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14020   for (key in D) D_is_set[key] = 1
14021   FS = "\a"
14022 }
14023 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14024   line = \$ 0
14025   split(line, arg, " ")
14026   if (arg[1] == "#") {
14027     defundef = arg[2]
14028     mac1 = arg[3]
14029   } else {
14030     defundef = substr(arg[1], 2)
14031     mac1 = arg[2]
14032   }
14033   split(mac1, mac2, "(") #)
14034   macro = mac2[1]
14035   prefix = substr(line, 1, index(line, defundef) - 1)
14036   if (D_is_set[macro]) {
14037     # Preserve the white space surrounding the "#".
14038     print prefix "define", macro P[macro] D[macro]
14039     next
14040   } else {
14041     # Replace #undef with comments.  This is necessary, for example,
14042     # in the case of _POSIX_SOURCE, which is predefined and required
14043     # on some systems where configure will not decide to define it.
14044     if (defundef == "undef") {
14045       print "/*", prefix defundef, macro, "*/"
14046       next
14047     }
14048   }
14049 }
14050 { print }
14051 _ACAWK
14052 _ACEOF
14053 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14054   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14055 fi # test -n "$CONFIG_HEADERS"
14056
14057
14058 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14059 shift
14060 for ac_tag
14061 do
14062   case $ac_tag in
14063   :[FHLC]) ac_mode=$ac_tag; continue;;
14064   esac
14065   case $ac_mode$ac_tag in
14066   :[FHL]*:*);;
14067   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14068   :[FH]-) ac_tag=-:-;;
14069   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14070   esac
14071   ac_save_IFS=$IFS
14072   IFS=:
14073   set x $ac_tag
14074   IFS=$ac_save_IFS
14075   shift
14076   ac_file=$1
14077   shift
14078
14079   case $ac_mode in
14080   :L) ac_source=$1;;
14081   :[FH])
14082     ac_file_inputs=
14083     for ac_f
14084     do
14085       case $ac_f in
14086       -) ac_f="$ac_tmp/stdin";;
14087       *) # Look for the file first in the build tree, then in the source tree
14088          # (if the path is not absolute).  The absolute path cannot be DOS-style,
14089          # because $ac_f cannot contain `:'.
14090          test -f "$ac_f" ||
14091            case $ac_f in
14092            [\\/$]*) false;;
14093            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14094            esac ||
14095            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14096       esac
14097       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14098       as_fn_append ac_file_inputs " '$ac_f'"
14099     done
14100
14101     # Let's still pretend it is `configure' which instantiates (i.e., don't
14102     # use $as_me), people would be surprised to read:
14103     #    /* config.h.  Generated by config.status.  */
14104     configure_input='Generated from '`
14105           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14106         `' by configure.'
14107     if test x"$ac_file" != x-; then
14108       configure_input="$ac_file.  $configure_input"
14109       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14110 $as_echo "$as_me: creating $ac_file" >&6;}
14111     fi
14112     # Neutralize special characters interpreted by sed in replacement strings.
14113     case $configure_input in #(
14114     *\&* | *\|* | *\\* )
14115        ac_sed_conf_input=`$as_echo "$configure_input" |
14116        sed 's/[\\\\&|]/\\\\&/g'`;; #(
14117     *) ac_sed_conf_input=$configure_input;;
14118     esac
14119
14120     case $ac_tag in
14121     *:-:* | *:-) cat >"$ac_tmp/stdin" \
14122       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14123     esac
14124     ;;
14125   esac
14126
14127   ac_dir=`$as_dirname -- "$ac_file" ||
14128 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14129          X"$ac_file" : 'X\(//\)[^/]' \| \
14130          X"$ac_file" : 'X\(//\)$' \| \
14131          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14132 $as_echo X"$ac_file" |
14133     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14134             s//\1/
14135             q
14136           }
14137           /^X\(\/\/\)[^/].*/{
14138             s//\1/
14139             q
14140           }
14141           /^X\(\/\/\)$/{
14142             s//\1/
14143             q
14144           }
14145           /^X\(\/\).*/{
14146             s//\1/
14147             q
14148           }
14149           s/.*/./; q'`
14150   as_dir="$ac_dir"; as_fn_mkdir_p
14151   ac_builddir=.
14152
14153 case "$ac_dir" in
14154 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14155 *)
14156   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14157   # A ".." for each directory in $ac_dir_suffix.
14158   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14159   case $ac_top_builddir_sub in
14160   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14161   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14162   esac ;;
14163 esac
14164 ac_abs_top_builddir=$ac_pwd
14165 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14166 # for backward compatibility:
14167 ac_top_builddir=$ac_top_build_prefix
14168
14169 case $srcdir in
14170   .)  # We are building in place.
14171     ac_srcdir=.
14172     ac_top_srcdir=$ac_top_builddir_sub
14173     ac_abs_top_srcdir=$ac_pwd ;;
14174   [\\/]* | ?:[\\/]* )  # Absolute name.
14175     ac_srcdir=$srcdir$ac_dir_suffix;
14176     ac_top_srcdir=$srcdir
14177     ac_abs_top_srcdir=$srcdir ;;
14178   *) # Relative name.
14179     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14180     ac_top_srcdir=$ac_top_build_prefix$srcdir
14181     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14182 esac
14183 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14184
14185
14186   case $ac_mode in
14187   :F)
14188   #
14189   # CONFIG_FILE
14190   #
14191
14192   case $INSTALL in
14193   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14194   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14195   esac
14196   ac_MKDIR_P=$MKDIR_P
14197   case $MKDIR_P in
14198   [\\/$]* | ?:[\\/]* ) ;;
14199   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14200   esac
14201 _ACEOF
14202
14203 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14204 # If the template does not know about datarootdir, expand it.
14205 # FIXME: This hack should be removed a few years after 2.60.
14206 ac_datarootdir_hack=; ac_datarootdir_seen=
14207 ac_sed_dataroot='
14208 /datarootdir/ {
14209   p
14210   q
14211 }
14212 /@datadir@/p
14213 /@docdir@/p
14214 /@infodir@/p
14215 /@localedir@/p
14216 /@mandir@/p'
14217 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14218 *datarootdir*) ac_datarootdir_seen=yes;;
14219 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14220   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14221 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14222 _ACEOF
14223 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14224   ac_datarootdir_hack='
14225   s&@datadir@&$datadir&g
14226   s&@docdir@&$docdir&g
14227   s&@infodir@&$infodir&g
14228   s&@localedir@&$localedir&g
14229   s&@mandir@&$mandir&g
14230   s&\\\${datarootdir}&$datarootdir&g' ;;
14231 esac
14232 _ACEOF
14233
14234 # Neutralize VPATH when `$srcdir' = `.'.
14235 # Shell code in configure.ac might set extrasub.
14236 # FIXME: do we really want to maintain this feature?
14237 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14238 ac_sed_extra="$ac_vpsub
14239 $extrasub
14240 _ACEOF
14241 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14242 :t
14243 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14244 s|@configure_input@|$ac_sed_conf_input|;t t
14245 s&@top_builddir@&$ac_top_builddir_sub&;t t
14246 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14247 s&@srcdir@&$ac_srcdir&;t t
14248 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14249 s&@top_srcdir@&$ac_top_srcdir&;t t
14250 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14251 s&@builddir@&$ac_builddir&;t t
14252 s&@abs_builddir@&$ac_abs_builddir&;t t
14253 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14254 s&@INSTALL@&$ac_INSTALL&;t t
14255 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14256 $ac_datarootdir_hack
14257 "
14258 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14259   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14260
14261 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14262   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14263   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
14264       "$ac_tmp/out"`; test -z "$ac_out"; } &&
14265   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14266 which seems to be undefined.  Please make sure it is defined" >&5
14267 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14268 which seems to be undefined.  Please make sure it is defined" >&2;}
14269
14270   rm -f "$ac_tmp/stdin"
14271   case $ac_file in
14272   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14273   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14274   esac \
14275   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14276  ;;
14277   :H)
14278   #
14279   # CONFIG_HEADER
14280   #
14281   if test x"$ac_file" != x-; then
14282     {
14283       $as_echo "/* $configure_input  */" \
14284       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14285     } >"$ac_tmp/config.h" \
14286       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14287     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14288       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14289 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14290     else
14291       rm -f "$ac_file"
14292       mv "$ac_tmp/config.h" "$ac_file" \
14293         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14294     fi
14295   else
14296     $as_echo "/* $configure_input  */" \
14297       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14298       || as_fn_error $? "could not create -" "$LINENO" 5
14299   fi
14300 # Compute "$ac_file"'s index in $config_headers.
14301 _am_arg="$ac_file"
14302 _am_stamp_count=1
14303 for _am_header in $config_headers :; do
14304   case $_am_header in
14305     $_am_arg | $_am_arg:* )
14306       break ;;
14307     * )
14308       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14309   esac
14310 done
14311 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14312 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14313          X"$_am_arg" : 'X\(//\)[^/]' \| \
14314          X"$_am_arg" : 'X\(//\)$' \| \
14315          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14316 $as_echo X"$_am_arg" |
14317     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14318             s//\1/
14319             q
14320           }
14321           /^X\(\/\/\)[^/].*/{
14322             s//\1/
14323             q
14324           }
14325           /^X\(\/\/\)$/{
14326             s//\1/
14327             q
14328           }
14329           /^X\(\/\).*/{
14330             s//\1/
14331             q
14332           }
14333           s/.*/./; q'`/stamp-h$_am_stamp_count
14334  ;;
14335
14336   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14337 $as_echo "$as_me: executing $ac_file commands" >&6;}
14338  ;;
14339   esac
14340
14341
14342   case $ac_file$ac_mode in
14343     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14344   # Older Autoconf quotes --file arguments for eval, but not when files
14345   # are listed without --file.  Let's play safe and only enable the eval
14346   # if we detect the quoting.
14347   # TODO: see whether this extra hack can be removed once we start
14348   # requiring Autoconf 2.70 or later.
14349   case $CONFIG_FILES in #(
14350   *\'*) :
14351     eval set x "$CONFIG_FILES" ;; #(
14352   *) :
14353     set x $CONFIG_FILES ;; #(
14354   *) :
14355      ;;
14356 esac
14357   shift
14358   # Used to flag and report bootstrapping failures.
14359   am_rc=0
14360   for am_mf
14361   do
14362     # Strip MF so we end up with the name of the file.
14363     am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
14364     # Check whether this is an Automake generated Makefile which includes
14365     # dependency-tracking related rules and includes.
14366     # Grep'ing the whole file directly is not great: AIX grep has a line
14367     # limit of 2048, but all sed's we know have understand at least 4000.
14368     sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
14369       || continue
14370     am_dirpart=`$as_dirname -- "$am_mf" ||
14371 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14372          X"$am_mf" : 'X\(//\)[^/]' \| \
14373          X"$am_mf" : 'X\(//\)$' \| \
14374          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14375 $as_echo X"$am_mf" |
14376     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14377             s//\1/
14378             q
14379           }
14380           /^X\(\/\/\)[^/].*/{
14381             s//\1/
14382             q
14383           }
14384           /^X\(\/\/\)$/{
14385             s//\1/
14386             q
14387           }
14388           /^X\(\/\).*/{
14389             s//\1/
14390             q
14391           }
14392           s/.*/./; q'`
14393     am_filepart=`$as_basename -- "$am_mf" ||
14394 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
14395          X"$am_mf" : 'X\(//\)$' \| \
14396          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14397 $as_echo X/"$am_mf" |
14398     sed '/^.*\/\([^/][^/]*\)\/*$/{
14399             s//\1/
14400             q
14401           }
14402           /^X\/\(\/\/\)$/{
14403             s//\1/
14404             q
14405           }
14406           /^X\/\(\/\).*/{
14407             s//\1/
14408             q
14409           }
14410           s/.*/./; q'`
14411     { echo "$as_me:$LINENO: cd "$am_dirpart" \
14412       && sed -e '/# am--include-marker/d' "$am_filepart" \
14413         | $MAKE -f - am--depfiles" >&5
14414    (cd "$am_dirpart" \
14415       && sed -e '/# am--include-marker/d' "$am_filepart" \
14416         | $MAKE -f - am--depfiles) >&5 2>&5
14417    ac_status=$?
14418    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419    (exit $ac_status); } || am_rc=$?
14420   done
14421   if test $am_rc -ne 0; then
14422     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14424 as_fn_error $? "Something went wrong bootstrapping makefile fragments
14425     for automatic dependency tracking.  Try re-running configure with the
14426     '--disable-dependency-tracking' option to at least be able to build
14427     the package (albeit without support for automatic dependency tracking).
14428 See \`config.log' for more details" "$LINENO" 5; }
14429   fi
14430   { am_dirpart=; unset am_dirpart;}
14431   { am_filepart=; unset am_filepart;}
14432   { am_mf=; unset am_mf;}
14433   { am_rc=; unset am_rc;}
14434   rm -f conftest-deps.mk
14435 }
14436  ;;
14437     "libtool":C)
14438
14439     # See if we are running on zsh, and set the options that allow our
14440     # commands through without removal of \ escapes.
14441     if test -n "${ZSH_VERSION+set}"; then
14442       setopt NO_GLOB_SUBST
14443     fi
14444
14445     cfgfile=${ofile}T
14446     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14447     $RM "$cfgfile"
14448
14449     cat <<_LT_EOF >> "$cfgfile"
14450 #! $SHELL
14451 # Generated automatically by $as_me ($PACKAGE) $VERSION
14452 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14453
14454 # Provide generalized library-building support services.
14455 # Written by Gordon Matzigkeit, 1996
14456
14457 # Copyright (C) 2014 Free Software Foundation, Inc.
14458 # This is free software; see the source for copying conditions.  There is NO
14459 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14460
14461 # GNU Libtool is free software; you can redistribute it and/or modify
14462 # it under the terms of the GNU General Public License as published by
14463 # the Free Software Foundation; either version 2 of of the License, or
14464 # (at your option) any later version.
14465 #
14466 # As a special exception to the GNU General Public License, if you
14467 # distribute this file as part of a program or library that is built
14468 # using GNU Libtool, you may include this file under the  same
14469 # distribution terms that you use for the rest of that program.
14470 #
14471 # GNU Libtool is distributed in the hope that it will be useful, but
14472 # WITHOUT ANY WARRANTY; without even the implied warranty of
14473 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14474 # GNU General Public License for more details.
14475 #
14476 # You should have received a copy of the GNU General Public License
14477 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
14478
14479
14480 # The names of the tagged configurations supported by this script.
14481 available_tags=''
14482
14483 # Configured defaults for sys_lib_dlsearch_path munging.
14484 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
14485
14486 # ### BEGIN LIBTOOL CONFIG
14487
14488 # Which release of libtool.m4 was used?
14489 macro_version=$macro_version
14490 macro_revision=$macro_revision
14491
14492 # Whether or not to build shared libraries.
14493 build_libtool_libs=$enable_shared
14494
14495 # Whether or not to build static libraries.
14496 build_old_libs=$enable_static
14497
14498 # What type of objects to build.
14499 pic_mode=$pic_mode
14500
14501 # Whether or not to optimize for fast installation.
14502 fast_install=$enable_fast_install
14503
14504 # Shared archive member basename,for filename based shared library versioning on AIX.
14505 shared_archive_member_spec=$shared_archive_member_spec
14506
14507 # Shell to use when invoking shell scripts.
14508 SHELL=$lt_SHELL
14509
14510 # An echo program that protects backslashes.
14511 ECHO=$lt_ECHO
14512
14513 # The PATH separator for the build system.
14514 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14515
14516 # The host system.
14517 host_alias=$host_alias
14518 host=$host
14519 host_os=$host_os
14520
14521 # The build system.
14522 build_alias=$build_alias
14523 build=$build
14524 build_os=$build_os
14525
14526 # A sed program that does not truncate output.
14527 SED=$lt_SED
14528
14529 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14530 Xsed="\$SED -e 1s/^X//"
14531
14532 # A grep program that handles long lines.
14533 GREP=$lt_GREP
14534
14535 # An ERE matcher.
14536 EGREP=$lt_EGREP
14537
14538 # A literal string matcher.
14539 FGREP=$lt_FGREP
14540
14541 # A BSD- or MS-compatible name lister.
14542 NM=$lt_NM
14543
14544 # Whether we need soft or hard links.
14545 LN_S=$lt_LN_S
14546
14547 # What is the maximum length of a command?
14548 max_cmd_len=$max_cmd_len
14549
14550 # Object file suffix (normally "o").
14551 objext=$ac_objext
14552
14553 # Executable file suffix (normally "").
14554 exeext=$exeext
14555
14556 # whether the shell understands "unset".
14557 lt_unset=$lt_unset
14558
14559 # turn spaces into newlines.
14560 SP2NL=$lt_lt_SP2NL
14561
14562 # turn newlines into spaces.
14563 NL2SP=$lt_lt_NL2SP
14564
14565 # convert \$build file names to \$host format.
14566 to_host_file_cmd=$lt_cv_to_host_file_cmd
14567
14568 # convert \$build files to toolchain format.
14569 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14570
14571 # An object symbol dumper.
14572 OBJDUMP=$lt_OBJDUMP
14573
14574 # Method to check whether dependent libraries are shared objects.
14575 deplibs_check_method=$lt_deplibs_check_method
14576
14577 # Command to use when deplibs_check_method = "file_magic".
14578 file_magic_cmd=$lt_file_magic_cmd
14579
14580 # How to find potential files when deplibs_check_method = "file_magic".
14581 file_magic_glob=$lt_file_magic_glob
14582
14583 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14584 want_nocaseglob=$lt_want_nocaseglob
14585
14586 # DLL creation program.
14587 DLLTOOL=$lt_DLLTOOL
14588
14589 # Command to associate shared and link libraries.
14590 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14591
14592 # The archiver.
14593 AR=$lt_AR
14594
14595 # Flags to create an archive.
14596 AR_FLAGS=$lt_AR_FLAGS
14597
14598 # How to feed a file listing to the archiver.
14599 archiver_list_spec=$lt_archiver_list_spec
14600
14601 # A symbol stripping program.
14602 STRIP=$lt_STRIP
14603
14604 # Commands used to install an old-style archive.
14605 RANLIB=$lt_RANLIB
14606 old_postinstall_cmds=$lt_old_postinstall_cmds
14607 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14608
14609 # Whether to use a lock for old archive extraction.
14610 lock_old_archive_extraction=$lock_old_archive_extraction
14611
14612 # A C compiler.
14613 LTCC=$lt_CC
14614
14615 # LTCC compiler flags.
14616 LTCFLAGS=$lt_CFLAGS
14617
14618 # Take the output of nm and produce a listing of raw symbols and C names.
14619 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14620
14621 # Transform the output of nm in a proper C declaration.
14622 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14623
14624 # Transform the output of nm into a list of symbols to manually relocate.
14625 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
14626
14627 # Transform the output of nm in a C name address pair.
14628 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14629
14630 # Transform the output of nm in a C name address pair when lib prefix is needed.
14631 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14632
14633 # The name lister interface.
14634 nm_interface=$lt_lt_cv_nm_interface
14635
14636 # Specify filename containing input files for \$NM.
14637 nm_file_list_spec=$lt_nm_file_list_spec
14638
14639 # The root where to search for dependent libraries,and where our libraries should be installed.
14640 lt_sysroot=$lt_sysroot
14641
14642 # Command to truncate a binary pipe.
14643 lt_truncate_bin=$lt_lt_cv_truncate_bin
14644
14645 # The name of the directory that contains temporary libtool files.
14646 objdir=$objdir
14647
14648 # Used to examine libraries when file_magic_cmd begins with "file".
14649 MAGIC_CMD=$MAGIC_CMD
14650
14651 # Must we lock files when doing compilation?
14652 need_locks=$lt_need_locks
14653
14654 # Manifest tool.
14655 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14656
14657 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14658 DSYMUTIL=$lt_DSYMUTIL
14659
14660 # Tool to change global to local symbols on Mac OS X.
14661 NMEDIT=$lt_NMEDIT
14662
14663 # Tool to manipulate fat objects and archives on Mac OS X.
14664 LIPO=$lt_LIPO
14665
14666 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14667 OTOOL=$lt_OTOOL
14668
14669 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14670 OTOOL64=$lt_OTOOL64
14671
14672 # Old archive suffix (normally "a").
14673 libext=$libext
14674
14675 # Shared library suffix (normally ".so").
14676 shrext_cmds=$lt_shrext_cmds
14677
14678 # The commands to extract the exported symbol list from a shared archive.
14679 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14680
14681 # Variables whose values should be saved in libtool wrapper scripts and
14682 # restored at link time.
14683 variables_saved_for_relink=$lt_variables_saved_for_relink
14684
14685 # Do we need the "lib" prefix for modules?
14686 need_lib_prefix=$need_lib_prefix
14687
14688 # Do we need a version for libraries?
14689 need_version=$need_version
14690
14691 # Library versioning type.
14692 version_type=$version_type
14693
14694 # Shared library runtime path variable.
14695 runpath_var=$runpath_var
14696
14697 # Shared library path variable.
14698 shlibpath_var=$shlibpath_var
14699
14700 # Is shlibpath searched before the hard-coded library search path?
14701 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14702
14703 # Format of library name prefix.
14704 libname_spec=$lt_libname_spec
14705
14706 # List of archive names.  First name is the real one, the rest are links.
14707 # The last name is the one that the linker finds with -lNAME
14708 library_names_spec=$lt_library_names_spec
14709
14710 # The coded name of the library, if different from the real name.
14711 soname_spec=$lt_soname_spec
14712
14713 # Permission mode override for installation of shared libraries.
14714 install_override_mode=$lt_install_override_mode
14715
14716 # Command to use after installation of a shared archive.
14717 postinstall_cmds=$lt_postinstall_cmds
14718
14719 # Command to use after uninstallation of a shared archive.
14720 postuninstall_cmds=$lt_postuninstall_cmds
14721
14722 # Commands used to finish a libtool library installation in a directory.
14723 finish_cmds=$lt_finish_cmds
14724
14725 # As "finish_cmds", except a single script fragment to be evaled but
14726 # not shown.
14727 finish_eval=$lt_finish_eval
14728
14729 # Whether we should hardcode library paths into libraries.
14730 hardcode_into_libs=$hardcode_into_libs
14731
14732 # Compile-time system search path for libraries.
14733 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14734
14735 # Detected run-time system search path for libraries.
14736 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
14737
14738 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
14739 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
14740
14741 # Whether dlopen is supported.
14742 dlopen_support=$enable_dlopen
14743
14744 # Whether dlopen of programs is supported.
14745 dlopen_self=$enable_dlopen_self
14746
14747 # Whether dlopen of statically linked programs is supported.
14748 dlopen_self_static=$enable_dlopen_self_static
14749
14750 # Commands to strip libraries.
14751 old_striplib=$lt_old_striplib
14752 striplib=$lt_striplib
14753
14754
14755 # The linker used to build libraries.
14756 LD=$lt_LD
14757
14758 # How to create reloadable object files.
14759 reload_flag=$lt_reload_flag
14760 reload_cmds=$lt_reload_cmds
14761
14762 # Commands used to build an old-style archive.
14763 old_archive_cmds=$lt_old_archive_cmds
14764
14765 # A language specific compiler.
14766 CC=$lt_compiler
14767
14768 # Is the compiler the GNU compiler?
14769 with_gcc=$GCC
14770
14771 # Compiler flag to turn off builtin functions.
14772 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14773
14774 # Additional compiler flags for building library objects.
14775 pic_flag=$lt_lt_prog_compiler_pic
14776
14777 # How to pass a linker flag through the compiler.
14778 wl=$lt_lt_prog_compiler_wl
14779
14780 # Compiler flag to prevent dynamic linking.
14781 link_static_flag=$lt_lt_prog_compiler_static
14782
14783 # Does compiler simultaneously support -c and -o options?
14784 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14785
14786 # Whether or not to add -lc for building shared libraries.
14787 build_libtool_need_lc=$archive_cmds_need_lc
14788
14789 # Whether or not to disallow shared libs when runtime libs are static.
14790 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14791
14792 # Compiler flag to allow reflexive dlopens.
14793 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14794
14795 # Compiler flag to generate shared objects directly from archives.
14796 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14797
14798 # Whether the compiler copes with passing no objects directly.
14799 compiler_needs_object=$lt_compiler_needs_object
14800
14801 # Create an old-style archive from a shared archive.
14802 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14803
14804 # Create a temporary old-style archive to link instead of a shared archive.
14805 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14806
14807 # Commands used to build a shared archive.
14808 archive_cmds=$lt_archive_cmds
14809 archive_expsym_cmds=$lt_archive_expsym_cmds
14810
14811 # Commands used to build a loadable module if different from building
14812 # a shared archive.
14813 module_cmds=$lt_module_cmds
14814 module_expsym_cmds=$lt_module_expsym_cmds
14815
14816 # Whether we are building with GNU ld or not.
14817 with_gnu_ld=$lt_with_gnu_ld
14818
14819 # Flag that allows shared libraries with undefined symbols to be built.
14820 allow_undefined_flag=$lt_allow_undefined_flag
14821
14822 # Flag that enforces no undefined symbols.
14823 no_undefined_flag=$lt_no_undefined_flag
14824
14825 # Flag to hardcode \$libdir into a binary during linking.
14826 # This must work even if \$libdir does not exist
14827 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14828
14829 # Whether we need a single "-rpath" flag with a separated argument.
14830 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14831
14832 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14833 # DIR into the resulting binary.
14834 hardcode_direct=$hardcode_direct
14835
14836 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14837 # DIR into the resulting binary and the resulting library dependency is
14838 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
14839 # library is relocated.
14840 hardcode_direct_absolute=$hardcode_direct_absolute
14841
14842 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14843 # into the resulting binary.
14844 hardcode_minus_L=$hardcode_minus_L
14845
14846 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14847 # into the resulting binary.
14848 hardcode_shlibpath_var=$hardcode_shlibpath_var
14849
14850 # Set to "yes" if building a shared library automatically hardcodes DIR
14851 # into the library and all subsequent libraries and executables linked
14852 # against it.
14853 hardcode_automatic=$hardcode_automatic
14854
14855 # Set to yes if linker adds runtime paths of dependent libraries
14856 # to runtime path list.
14857 inherit_rpath=$inherit_rpath
14858
14859 # Whether libtool must link a program against all its dependency libraries.
14860 link_all_deplibs=$link_all_deplibs
14861
14862 # Set to "yes" if exported symbols are required.
14863 always_export_symbols=$always_export_symbols
14864
14865 # The commands to list exported symbols.
14866 export_symbols_cmds=$lt_export_symbols_cmds
14867
14868 # Symbols that should not be listed in the preloaded symbols.
14869 exclude_expsyms=$lt_exclude_expsyms
14870
14871 # Symbols that must always be exported.
14872 include_expsyms=$lt_include_expsyms
14873
14874 # Commands necessary for linking programs (against libraries) with templates.
14875 prelink_cmds=$lt_prelink_cmds
14876
14877 # Commands necessary for finishing linking programs.
14878 postlink_cmds=$lt_postlink_cmds
14879
14880 # Specify filename containing input files.
14881 file_list_spec=$lt_file_list_spec
14882
14883 # How to hardcode a shared library path into an executable.
14884 hardcode_action=$hardcode_action
14885
14886 # ### END LIBTOOL CONFIG
14887
14888 _LT_EOF
14889
14890     cat <<'_LT_EOF' >> "$cfgfile"
14891
14892 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
14893
14894 # func_munge_path_list VARIABLE PATH
14895 # -----------------------------------
14896 # VARIABLE is name of variable containing _space_ separated list of
14897 # directories to be munged by the contents of PATH, which is string
14898 # having a format:
14899 # "DIR[:DIR]:"
14900 #       string "DIR[ DIR]" will be prepended to VARIABLE
14901 # ":DIR[:DIR]"
14902 #       string "DIR[ DIR]" will be appended to VARIABLE
14903 # "DIRP[:DIRP]::[DIRA:]DIRA"
14904 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14905 #       "DIRA[ DIRA]" will be appended to VARIABLE
14906 # "DIR[:DIR]"
14907 #       VARIABLE will be replaced by "DIR[ DIR]"
14908 func_munge_path_list ()
14909 {
14910     case x$2 in
14911     x)
14912         ;;
14913     *:)
14914         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14915         ;;
14916     x:*)
14917         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14918         ;;
14919     *::*)
14920         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14921         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14922         ;;
14923     *)
14924         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14925         ;;
14926     esac
14927 }
14928
14929
14930 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
14931 func_cc_basename ()
14932 {
14933     for cc_temp in $*""; do
14934       case $cc_temp in
14935         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14936         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14937         \-*) ;;
14938         *) break;;
14939       esac
14940     done
14941     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14942 }
14943
14944
14945 # ### END FUNCTIONS SHARED WITH CONFIGURE
14946
14947 _LT_EOF
14948
14949   case $host_os in
14950   aix3*)
14951     cat <<\_LT_EOF >> "$cfgfile"
14952 # AIX sometimes has problems with the GCC collect2 program.  For some
14953 # reason, if we set the COLLECT_NAMES environment variable, the problems
14954 # vanish in a puff of smoke.
14955 if test set != "${COLLECT_NAMES+set}"; then
14956   COLLECT_NAMES=
14957   export COLLECT_NAMES
14958 fi
14959 _LT_EOF
14960     ;;
14961   esac
14962
14963
14964 ltmain=$ac_aux_dir/ltmain.sh
14965
14966
14967   # We use sed instead of cat because bash on DJGPP gets confused if
14968   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14969   # text mode, it properly converts lines to CR/LF.  This bash problem
14970   # is reportedly fixed, but why not run on old versions too?
14971   sed '$q' "$ltmain" >> "$cfgfile" \
14972      || (rm -f "$cfgfile"; exit 1)
14973
14974    mv -f "$cfgfile" "$ofile" ||
14975     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14976   chmod +x "$ofile"
14977
14978  ;;
14979
14980   esac
14981 done # for ac_tag
14982
14983
14984 as_fn_exit 0
14985 _ACEOF
14986 ac_clean_files=$ac_clean_files_save
14987
14988 test $ac_write_fail = 0 ||
14989   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14990
14991
14992 # configure is writing to config.log, and then calls config.status.
14993 # config.status does its own redirection, appending to config.log.
14994 # Unfortunately, on DOS this fails, as config.log is still kept open
14995 # by configure, so config.status won't be able to write to it; its
14996 # output is simply discarded.  So we exec the FD to /dev/null,
14997 # effectively closing config.log, so it can be properly (re)opened and
14998 # appended to by config.status.  When coming back to configure, we
14999 # need to make the FD available again.
15000 if test "$no_create" != yes; then
15001   ac_cs_success=:
15002   ac_config_status_args=
15003   test "$silent" = yes &&
15004     ac_config_status_args="$ac_config_status_args --quiet"
15005   exec 5>/dev/null
15006   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15007   exec 5>>config.log
15008   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15009   # would make configure fail if this is the last instruction.
15010   $ac_cs_success || as_fn_exit 1
15011 fi
15012 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15013   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15014 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15015 fi
15016