]> git.sven.stormbind.net Git - sven/exfatprogs.git/blob - configure
Add exfatprogs release signing key. ID D58529CC5376E36D6E1E6F6234F230FAF78E48D3 Hyunc...
[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.0.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.0.3'
594 PACKAGE_STRING='exfatprogs 1.0.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__quote
678 am__include
679 DEPDIR
680 OBJEXT
681 EXEEXT
682 ac_ct_CC
683 CPPFLAGS
684 LDFLAGS
685 CFLAGS
686 CC
687 AM_BACKSLASH
688 AM_DEFAULT_VERBOSITY
689 AM_DEFAULT_V
690 AM_V
691 am__untar
692 am__tar
693 AMTAR
694 am__leading_dot
695 SET_MAKE
696 AWK
697 mkdir_p
698 MKDIR_P
699 INSTALL_STRIP_PROGRAM
700 STRIP
701 install_sh
702 MAKEINFO
703 AUTOHEADER
704 AUTOMAKE
705 AUTOCONF
706 ACLOCAL
707 VERSION
708 PACKAGE
709 CYGPATH_W
710 am__isrc
711 INSTALL_DATA
712 INSTALL_SCRIPT
713 INSTALL_PROGRAM
714 target_alias
715 host_alias
716 build_alias
717 LIBS
718 ECHO_T
719 ECHO_N
720 ECHO_C
721 DEFS
722 mandir
723 localedir
724 libdir
725 psdir
726 pdfdir
727 dvidir
728 htmldir
729 infodir
730 docdir
731 oldincludedir
732 includedir
733 runstatedir
734 localstatedir
735 sharedstatedir
736 sysconfdir
737 datadir
738 datarootdir
739 libexecdir
740 sbindir
741 bindir
742 program_transform_name
743 prefix
744 exec_prefix
745 PACKAGE_URL
746 PACKAGE_BUGREPORT
747 PACKAGE_STRING
748 PACKAGE_VERSION
749 PACKAGE_TARNAME
750 PACKAGE_NAME
751 PATH_SEPARATOR
752 SHELL'
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.0.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.0.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.0.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.0.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.15'
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.0.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 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2688 # <http://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: <http://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
3694 am_make=${MAKE-make}
3695 cat > confinc << 'END'
3696 am__doit:
3697         @echo this is the am__doit target
3698 .PHONY: am__doit
3699 END
3700 # If we don't find an include directive, just comment out the code.
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3702 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3703 am__include="#"
3704 am__quote=
3705 _am_result=none
3706 # First try GNU make style include.
3707 echo "include confinc" > confmf
3708 # Ignore all kinds of additional output from 'make'.
3709 case `$am_make -s -f confmf 2> /dev/null` in #(
3710 *the\ am__doit\ target*)
3711   am__include=include
3712   am__quote=
3713   _am_result=GNU
3714   ;;
3715 esac
3716 # Now try BSD make style include.
3717 if test "$am__include" = "#"; then
3718    echo '.include "confinc"' > confmf
3719    case `$am_make -s -f confmf 2> /dev/null` in #(
3720    *the\ am__doit\ target*)
3721      am__include=.include
3722      am__quote="\""
3723      _am_result=BSD
3724      ;;
3725    esac
3726 fi
3727
3728
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3730 $as_echo "$_am_result" >&6; }
3731 rm -f confinc confmf
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=cru}
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     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6386   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6387   ac_status=$?
6388   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6389   test $ac_status = 0; } && test -s "$nlist"; then
6390       # Try sorting and uniquifying the output.
6391       if sort "$nlist" | uniq > "$nlist"T; then
6392         mv -f "$nlist"T "$nlist"
6393       else
6394         rm -f "$nlist"T
6395       fi
6396
6397       # Make sure that we snagged all the symbols we need.
6398       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6399         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6400           cat <<_LT_EOF > conftest.$ac_ext
6401 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6402 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6403 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6404    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6405 # define LT_DLSYM_CONST
6406 #elif defined __osf__
6407 /* This system does not cope well with relocations in const data.  */
6408 # define LT_DLSYM_CONST
6409 #else
6410 # define LT_DLSYM_CONST const
6411 #endif
6412
6413 #ifdef __cplusplus
6414 extern "C" {
6415 #endif
6416
6417 _LT_EOF
6418           # Now generate the symbol file.
6419           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6420
6421           cat <<_LT_EOF >> conftest.$ac_ext
6422
6423 /* The mapping between symbol names and symbols.  */
6424 LT_DLSYM_CONST struct {
6425   const char *name;
6426   void       *address;
6427 }
6428 lt__PROGRAM__LTX_preloaded_symbols[] =
6429 {
6430   { "@PROGRAM@", (void *) 0 },
6431 _LT_EOF
6432           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6433           cat <<\_LT_EOF >> conftest.$ac_ext
6434   {0, (void *) 0}
6435 };
6436
6437 /* This works around a problem in FreeBSD linker */
6438 #ifdef FREEBSD_WORKAROUND
6439 static const void *lt_preloaded_setup() {
6440   return lt__PROGRAM__LTX_preloaded_symbols;
6441 }
6442 #endif
6443
6444 #ifdef __cplusplus
6445 }
6446 #endif
6447 _LT_EOF
6448           # Now try linking the two files.
6449           mv conftest.$ac_objext conftstm.$ac_objext
6450           lt_globsym_save_LIBS=$LIBS
6451           lt_globsym_save_CFLAGS=$CFLAGS
6452           LIBS=conftstm.$ac_objext
6453           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6454           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6455   (eval $ac_link) 2>&5
6456   ac_status=$?
6457   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6458   test $ac_status = 0; } && test -s conftest$ac_exeext; then
6459             pipe_works=yes
6460           fi
6461           LIBS=$lt_globsym_save_LIBS
6462           CFLAGS=$lt_globsym_save_CFLAGS
6463         else
6464           echo "cannot find nm_test_func in $nlist" >&5
6465         fi
6466       else
6467         echo "cannot find nm_test_var in $nlist" >&5
6468       fi
6469     else
6470       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6471     fi
6472   else
6473     echo "$progname: failed program was:" >&5
6474     cat conftest.$ac_ext >&5
6475   fi
6476   rm -rf conftest* conftst*
6477
6478   # Do not use the global_symbol_pipe unless it works.
6479   if test yes = "$pipe_works"; then
6480     break
6481   else
6482     lt_cv_sys_global_symbol_pipe=
6483   fi
6484 done
6485
6486 fi
6487
6488 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6489   lt_cv_sys_global_symbol_to_cdecl=
6490 fi
6491 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6493 $as_echo "failed" >&6; }
6494 else
6495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6496 $as_echo "ok" >&6; }
6497 fi
6498
6499 # Response file support.
6500 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6501   nm_file_list_spec='@'
6502 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6503   nm_file_list_spec='@'
6504 fi
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
6540
6541
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6543 $as_echo_n "checking for sysroot... " >&6; }
6544
6545 # Check whether --with-sysroot was given.
6546 if test "${with_sysroot+set}" = set; then :
6547   withval=$with_sysroot;
6548 else
6549   with_sysroot=no
6550 fi
6551
6552
6553 lt_sysroot=
6554 case $with_sysroot in #(
6555  yes)
6556    if test yes = "$GCC"; then
6557      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6558    fi
6559    ;; #(
6560  /*)
6561    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6562    ;; #(
6563  no|'')
6564    ;; #(
6565  *)
6566    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6567 $as_echo "$with_sysroot" >&6; }
6568    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6569    ;;
6570 esac
6571
6572  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6573 $as_echo "${lt_sysroot:-no}" >&6; }
6574
6575
6576
6577
6578
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6580 $as_echo_n "checking for a working dd... " >&6; }
6581 if ${ac_cv_path_lt_DD+:} false; then :
6582   $as_echo_n "(cached) " >&6
6583 else
6584   printf 0123456789abcdef0123456789abcdef >conftest.i
6585 cat conftest.i conftest.i >conftest2.i
6586 : ${lt_DD:=$DD}
6587 if test -z "$lt_DD"; then
6588   ac_path_lt_DD_found=false
6589   # Loop through the user's path and test for each of PROGNAME-LIST
6590   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6591 for as_dir in $PATH
6592 do
6593   IFS=$as_save_IFS
6594   test -z "$as_dir" && as_dir=.
6595     for ac_prog in dd; do
6596     for ac_exec_ext in '' $ac_executable_extensions; do
6597       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6598       as_fn_executable_p "$ac_path_lt_DD" || continue
6599 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6600   cmp -s conftest.i conftest.out \
6601   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6602 fi
6603       $ac_path_lt_DD_found && break 3
6604     done
6605   done
6606   done
6607 IFS=$as_save_IFS
6608   if test -z "$ac_cv_path_lt_DD"; then
6609     :
6610   fi
6611 else
6612   ac_cv_path_lt_DD=$lt_DD
6613 fi
6614
6615 rm -f conftest.i conftest2.i conftest.out
6616 fi
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6618 $as_echo "$ac_cv_path_lt_DD" >&6; }
6619
6620
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6622 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6623 if ${lt_cv_truncate_bin+:} false; then :
6624   $as_echo_n "(cached) " >&6
6625 else
6626   printf 0123456789abcdef0123456789abcdef >conftest.i
6627 cat conftest.i conftest.i >conftest2.i
6628 lt_cv_truncate_bin=
6629 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6630   cmp -s conftest.i conftest.out \
6631   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6632 fi
6633 rm -f conftest.i conftest2.i conftest.out
6634 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6635 fi
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6637 $as_echo "$lt_cv_truncate_bin" >&6; }
6638
6639
6640
6641
6642
6643
6644
6645 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6646 func_cc_basename ()
6647 {
6648     for cc_temp in $*""; do
6649       case $cc_temp in
6650         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6651         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6652         \-*) ;;
6653         *) break;;
6654       esac
6655     done
6656     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6657 }
6658
6659 # Check whether --enable-libtool-lock was given.
6660 if test "${enable_libtool_lock+set}" = set; then :
6661   enableval=$enable_libtool_lock;
6662 fi
6663
6664 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6665
6666 # Some flags need to be propagated to the compiler or linker for good
6667 # libtool support.
6668 case $host in
6669 ia64-*-hpux*)
6670   # Find out what ABI is being produced by ac_compile, and set mode
6671   # options accordingly.
6672   echo 'int i;' > conftest.$ac_ext
6673   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6674   (eval $ac_compile) 2>&5
6675   ac_status=$?
6676   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6677   test $ac_status = 0; }; then
6678     case `/usr/bin/file conftest.$ac_objext` in
6679       *ELF-32*)
6680         HPUX_IA64_MODE=32
6681         ;;
6682       *ELF-64*)
6683         HPUX_IA64_MODE=64
6684         ;;
6685     esac
6686   fi
6687   rm -rf conftest*
6688   ;;
6689 *-*-irix6*)
6690   # Find out what ABI is being produced by ac_compile, and set linker
6691   # options accordingly.
6692   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6693   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6694   (eval $ac_compile) 2>&5
6695   ac_status=$?
6696   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6697   test $ac_status = 0; }; then
6698     if test yes = "$lt_cv_prog_gnu_ld"; then
6699       case `/usr/bin/file conftest.$ac_objext` in
6700         *32-bit*)
6701           LD="${LD-ld} -melf32bsmip"
6702           ;;
6703         *N32*)
6704           LD="${LD-ld} -melf32bmipn32"
6705           ;;
6706         *64-bit*)
6707           LD="${LD-ld} -melf64bmip"
6708         ;;
6709       esac
6710     else
6711       case `/usr/bin/file conftest.$ac_objext` in
6712         *32-bit*)
6713           LD="${LD-ld} -32"
6714           ;;
6715         *N32*)
6716           LD="${LD-ld} -n32"
6717           ;;
6718         *64-bit*)
6719           LD="${LD-ld} -64"
6720           ;;
6721       esac
6722     fi
6723   fi
6724   rm -rf conftest*
6725   ;;
6726
6727 mips64*-*linux*)
6728   # Find out what ABI is being produced by ac_compile, and set linker
6729   # options accordingly.
6730   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6731   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6732   (eval $ac_compile) 2>&5
6733   ac_status=$?
6734   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6735   test $ac_status = 0; }; then
6736     emul=elf
6737     case `/usr/bin/file conftest.$ac_objext` in
6738       *32-bit*)
6739         emul="${emul}32"
6740         ;;
6741       *64-bit*)
6742         emul="${emul}64"
6743         ;;
6744     esac
6745     case `/usr/bin/file conftest.$ac_objext` in
6746       *MSB*)
6747         emul="${emul}btsmip"
6748         ;;
6749       *LSB*)
6750         emul="${emul}ltsmip"
6751         ;;
6752     esac
6753     case `/usr/bin/file conftest.$ac_objext` in
6754       *N32*)
6755         emul="${emul}n32"
6756         ;;
6757     esac
6758     LD="${LD-ld} -m $emul"
6759   fi
6760   rm -rf conftest*
6761   ;;
6762
6763 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6764 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6765   # Find out what ABI is being produced by ac_compile, and set linker
6766   # options accordingly.  Note that the listed cases only cover the
6767   # situations where additional linker options are needed (such as when
6768   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6769   # vice versa); the common cases where no linker options are needed do
6770   # not appear in the list.
6771   echo 'int i;' > conftest.$ac_ext
6772   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6773   (eval $ac_compile) 2>&5
6774   ac_status=$?
6775   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6776   test $ac_status = 0; }; then
6777     case `/usr/bin/file conftest.o` in
6778       *32-bit*)
6779         case $host in
6780           x86_64-*kfreebsd*-gnu)
6781             LD="${LD-ld} -m elf_i386_fbsd"
6782             ;;
6783           x86_64-*linux*)
6784             case `/usr/bin/file conftest.o` in
6785               *x86-64*)
6786                 LD="${LD-ld} -m elf32_x86_64"
6787                 ;;
6788               *)
6789                 LD="${LD-ld} -m elf_i386"
6790                 ;;
6791             esac
6792             ;;
6793           powerpc64le-*linux*)
6794             LD="${LD-ld} -m elf32lppclinux"
6795             ;;
6796           powerpc64-*linux*)
6797             LD="${LD-ld} -m elf32ppclinux"
6798             ;;
6799           s390x-*linux*)
6800             LD="${LD-ld} -m elf_s390"
6801             ;;
6802           sparc64-*linux*)
6803             LD="${LD-ld} -m elf32_sparc"
6804             ;;
6805         esac
6806         ;;
6807       *64-bit*)
6808         case $host in
6809           x86_64-*kfreebsd*-gnu)
6810             LD="${LD-ld} -m elf_x86_64_fbsd"
6811             ;;
6812           x86_64-*linux*)
6813             LD="${LD-ld} -m elf_x86_64"
6814             ;;
6815           powerpcle-*linux*)
6816             LD="${LD-ld} -m elf64lppc"
6817             ;;
6818           powerpc-*linux*)
6819             LD="${LD-ld} -m elf64ppc"
6820             ;;
6821           s390*-*linux*|s390*-*tpf*)
6822             LD="${LD-ld} -m elf64_s390"
6823             ;;
6824           sparc*-*linux*)
6825             LD="${LD-ld} -m elf64_sparc"
6826             ;;
6827         esac
6828         ;;
6829     esac
6830   fi
6831   rm -rf conftest*
6832   ;;
6833
6834 *-*-sco3.2v5*)
6835   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6836   SAVE_CFLAGS=$CFLAGS
6837   CFLAGS="$CFLAGS -belf"
6838   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6839 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6840 if ${lt_cv_cc_needs_belf+:} false; then :
6841   $as_echo_n "(cached) " >&6
6842 else
6843   ac_ext=c
6844 ac_cpp='$CPP $CPPFLAGS'
6845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6848
6849      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6850 /* end confdefs.h.  */
6851
6852 int
6853 main ()
6854 {
6855
6856   ;
6857   return 0;
6858 }
6859 _ACEOF
6860 if ac_fn_c_try_link "$LINENO"; then :
6861   lt_cv_cc_needs_belf=yes
6862 else
6863   lt_cv_cc_needs_belf=no
6864 fi
6865 rm -f core conftest.err conftest.$ac_objext \
6866     conftest$ac_exeext conftest.$ac_ext
6867      ac_ext=c
6868 ac_cpp='$CPP $CPPFLAGS'
6869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6872
6873 fi
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6875 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6876   if test yes != "$lt_cv_cc_needs_belf"; then
6877     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6878     CFLAGS=$SAVE_CFLAGS
6879   fi
6880   ;;
6881 *-*solaris*)
6882   # Find out what ABI is being produced by ac_compile, and set linker
6883   # options accordingly.
6884   echo 'int i;' > conftest.$ac_ext
6885   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6886   (eval $ac_compile) 2>&5
6887   ac_status=$?
6888   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6889   test $ac_status = 0; }; then
6890     case `/usr/bin/file conftest.o` in
6891     *64-bit*)
6892       case $lt_cv_prog_gnu_ld in
6893       yes*)
6894         case $host in
6895         i?86-*-solaris*|x86_64-*-solaris*)
6896           LD="${LD-ld} -m elf_x86_64"
6897           ;;
6898         sparc*-*-solaris*)
6899           LD="${LD-ld} -m elf64_sparc"
6900           ;;
6901         esac
6902         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6903         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6904           LD=${LD-ld}_sol2
6905         fi
6906         ;;
6907       *)
6908         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6909           LD="${LD-ld} -64"
6910         fi
6911         ;;
6912       esac
6913       ;;
6914     esac
6915   fi
6916   rm -rf conftest*
6917   ;;
6918 esac
6919
6920 need_locks=$enable_libtool_lock
6921
6922 if test -n "$ac_tool_prefix"; then
6923   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6924 set dummy ${ac_tool_prefix}mt; ac_word=$2
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6926 $as_echo_n "checking for $ac_word... " >&6; }
6927 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6928   $as_echo_n "(cached) " >&6
6929 else
6930   if test -n "$MANIFEST_TOOL"; then
6931   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6932 else
6933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6934 for as_dir in $PATH
6935 do
6936   IFS=$as_save_IFS
6937   test -z "$as_dir" && as_dir=.
6938     for ac_exec_ext in '' $ac_executable_extensions; do
6939   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6940     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6941     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6942     break 2
6943   fi
6944 done
6945   done
6946 IFS=$as_save_IFS
6947
6948 fi
6949 fi
6950 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6951 if test -n "$MANIFEST_TOOL"; then
6952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6953 $as_echo "$MANIFEST_TOOL" >&6; }
6954 else
6955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6956 $as_echo "no" >&6; }
6957 fi
6958
6959
6960 fi
6961 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6962   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6963   # Extract the first word of "mt", so it can be a program name with args.
6964 set dummy mt; ac_word=$2
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6966 $as_echo_n "checking for $ac_word... " >&6; }
6967 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6968   $as_echo_n "(cached) " >&6
6969 else
6970   if test -n "$ac_ct_MANIFEST_TOOL"; then
6971   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6972 else
6973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6974 for as_dir in $PATH
6975 do
6976   IFS=$as_save_IFS
6977   test -z "$as_dir" && as_dir=.
6978     for ac_exec_ext in '' $ac_executable_extensions; do
6979   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6980     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6981     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6982     break 2
6983   fi
6984 done
6985   done
6986 IFS=$as_save_IFS
6987
6988 fi
6989 fi
6990 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6991 if test -n "$ac_ct_MANIFEST_TOOL"; then
6992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6993 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6994 else
6995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6996 $as_echo "no" >&6; }
6997 fi
6998
6999   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7000     MANIFEST_TOOL=":"
7001   else
7002     case $cross_compiling:$ac_tool_warned in
7003 yes:)
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7005 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7006 ac_tool_warned=yes ;;
7007 esac
7008     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7009   fi
7010 else
7011   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7012 fi
7013
7014 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7016 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7017 if ${lt_cv_path_mainfest_tool+:} false; then :
7018   $as_echo_n "(cached) " >&6
7019 else
7020   lt_cv_path_mainfest_tool=no
7021   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7022   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7023   cat conftest.err >&5
7024   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7025     lt_cv_path_mainfest_tool=yes
7026   fi
7027   rm -f conftest*
7028 fi
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7030 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7031 if test yes != "$lt_cv_path_mainfest_tool"; then
7032   MANIFEST_TOOL=:
7033 fi
7034
7035
7036
7037
7038
7039
7040   case $host_os in
7041     rhapsody* | darwin*)
7042     if test -n "$ac_tool_prefix"; then
7043   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7044 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7046 $as_echo_n "checking for $ac_word... " >&6; }
7047 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7048   $as_echo_n "(cached) " >&6
7049 else
7050   if test -n "$DSYMUTIL"; then
7051   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7052 else
7053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7054 for as_dir in $PATH
7055 do
7056   IFS=$as_save_IFS
7057   test -z "$as_dir" && as_dir=.
7058     for ac_exec_ext in '' $ac_executable_extensions; do
7059   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7060     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7061     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7062     break 2
7063   fi
7064 done
7065   done
7066 IFS=$as_save_IFS
7067
7068 fi
7069 fi
7070 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7071 if test -n "$DSYMUTIL"; then
7072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7073 $as_echo "$DSYMUTIL" >&6; }
7074 else
7075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7076 $as_echo "no" >&6; }
7077 fi
7078
7079
7080 fi
7081 if test -z "$ac_cv_prog_DSYMUTIL"; then
7082   ac_ct_DSYMUTIL=$DSYMUTIL
7083   # Extract the first word of "dsymutil", so it can be a program name with args.
7084 set dummy dsymutil; ac_word=$2
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7086 $as_echo_n "checking for $ac_word... " >&6; }
7087 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7088   $as_echo_n "(cached) " >&6
7089 else
7090   if test -n "$ac_ct_DSYMUTIL"; then
7091   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7092 else
7093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7094 for as_dir in $PATH
7095 do
7096   IFS=$as_save_IFS
7097   test -z "$as_dir" && as_dir=.
7098     for ac_exec_ext in '' $ac_executable_extensions; do
7099   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7100     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7101     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7102     break 2
7103   fi
7104 done
7105   done
7106 IFS=$as_save_IFS
7107
7108 fi
7109 fi
7110 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7111 if test -n "$ac_ct_DSYMUTIL"; then
7112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7113 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7114 else
7115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7116 $as_echo "no" >&6; }
7117 fi
7118
7119   if test "x$ac_ct_DSYMUTIL" = x; then
7120     DSYMUTIL=":"
7121   else
7122     case $cross_compiling:$ac_tool_warned in
7123 yes:)
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7125 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7126 ac_tool_warned=yes ;;
7127 esac
7128     DSYMUTIL=$ac_ct_DSYMUTIL
7129   fi
7130 else
7131   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7132 fi
7133
7134     if test -n "$ac_tool_prefix"; then
7135   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7136 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7138 $as_echo_n "checking for $ac_word... " >&6; }
7139 if ${ac_cv_prog_NMEDIT+:} false; then :
7140   $as_echo_n "(cached) " >&6
7141 else
7142   if test -n "$NMEDIT"; then
7143   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7144 else
7145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7146 for as_dir in $PATH
7147 do
7148   IFS=$as_save_IFS
7149   test -z "$as_dir" && as_dir=.
7150     for ac_exec_ext in '' $ac_executable_extensions; do
7151   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7152     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7153     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7154     break 2
7155   fi
7156 done
7157   done
7158 IFS=$as_save_IFS
7159
7160 fi
7161 fi
7162 NMEDIT=$ac_cv_prog_NMEDIT
7163 if test -n "$NMEDIT"; then
7164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7165 $as_echo "$NMEDIT" >&6; }
7166 else
7167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7168 $as_echo "no" >&6; }
7169 fi
7170
7171
7172 fi
7173 if test -z "$ac_cv_prog_NMEDIT"; then
7174   ac_ct_NMEDIT=$NMEDIT
7175   # Extract the first word of "nmedit", so it can be a program name with args.
7176 set dummy nmedit; ac_word=$2
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7178 $as_echo_n "checking for $ac_word... " >&6; }
7179 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7180   $as_echo_n "(cached) " >&6
7181 else
7182   if test -n "$ac_ct_NMEDIT"; then
7183   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7184 else
7185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7186 for as_dir in $PATH
7187 do
7188   IFS=$as_save_IFS
7189   test -z "$as_dir" && as_dir=.
7190     for ac_exec_ext in '' $ac_executable_extensions; do
7191   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7192     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7193     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7194     break 2
7195   fi
7196 done
7197   done
7198 IFS=$as_save_IFS
7199
7200 fi
7201 fi
7202 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7203 if test -n "$ac_ct_NMEDIT"; then
7204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7205 $as_echo "$ac_ct_NMEDIT" >&6; }
7206 else
7207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7208 $as_echo "no" >&6; }
7209 fi
7210
7211   if test "x$ac_ct_NMEDIT" = x; then
7212     NMEDIT=":"
7213   else
7214     case $cross_compiling:$ac_tool_warned in
7215 yes:)
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7217 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7218 ac_tool_warned=yes ;;
7219 esac
7220     NMEDIT=$ac_ct_NMEDIT
7221   fi
7222 else
7223   NMEDIT="$ac_cv_prog_NMEDIT"
7224 fi
7225
7226     if test -n "$ac_tool_prefix"; then
7227   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7228 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7230 $as_echo_n "checking for $ac_word... " >&6; }
7231 if ${ac_cv_prog_LIPO+:} false; then :
7232   $as_echo_n "(cached) " >&6
7233 else
7234   if test -n "$LIPO"; then
7235   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7236 else
7237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7238 for as_dir in $PATH
7239 do
7240   IFS=$as_save_IFS
7241   test -z "$as_dir" && as_dir=.
7242     for ac_exec_ext in '' $ac_executable_extensions; do
7243   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7244     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7245     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7246     break 2
7247   fi
7248 done
7249   done
7250 IFS=$as_save_IFS
7251
7252 fi
7253 fi
7254 LIPO=$ac_cv_prog_LIPO
7255 if test -n "$LIPO"; then
7256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7257 $as_echo "$LIPO" >&6; }
7258 else
7259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7260 $as_echo "no" >&6; }
7261 fi
7262
7263
7264 fi
7265 if test -z "$ac_cv_prog_LIPO"; then
7266   ac_ct_LIPO=$LIPO
7267   # Extract the first word of "lipo", so it can be a program name with args.
7268 set dummy lipo; ac_word=$2
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7270 $as_echo_n "checking for $ac_word... " >&6; }
7271 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7272   $as_echo_n "(cached) " >&6
7273 else
7274   if test -n "$ac_ct_LIPO"; then
7275   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7276 else
7277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7278 for as_dir in $PATH
7279 do
7280   IFS=$as_save_IFS
7281   test -z "$as_dir" && as_dir=.
7282     for ac_exec_ext in '' $ac_executable_extensions; do
7283   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7284     ac_cv_prog_ac_ct_LIPO="lipo"
7285     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7286     break 2
7287   fi
7288 done
7289   done
7290 IFS=$as_save_IFS
7291
7292 fi
7293 fi
7294 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7295 if test -n "$ac_ct_LIPO"; then
7296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7297 $as_echo "$ac_ct_LIPO" >&6; }
7298 else
7299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7300 $as_echo "no" >&6; }
7301 fi
7302
7303   if test "x$ac_ct_LIPO" = x; then
7304     LIPO=":"
7305   else
7306     case $cross_compiling:$ac_tool_warned in
7307 yes:)
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7309 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7310 ac_tool_warned=yes ;;
7311 esac
7312     LIPO=$ac_ct_LIPO
7313   fi
7314 else
7315   LIPO="$ac_cv_prog_LIPO"
7316 fi
7317
7318     if test -n "$ac_tool_prefix"; then
7319   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7320 set dummy ${ac_tool_prefix}otool; ac_word=$2
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7322 $as_echo_n "checking for $ac_word... " >&6; }
7323 if ${ac_cv_prog_OTOOL+:} false; then :
7324   $as_echo_n "(cached) " >&6
7325 else
7326   if test -n "$OTOOL"; then
7327   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7328 else
7329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7330 for as_dir in $PATH
7331 do
7332   IFS=$as_save_IFS
7333   test -z "$as_dir" && as_dir=.
7334     for ac_exec_ext in '' $ac_executable_extensions; do
7335   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7336     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7337     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7338     break 2
7339   fi
7340 done
7341   done
7342 IFS=$as_save_IFS
7343
7344 fi
7345 fi
7346 OTOOL=$ac_cv_prog_OTOOL
7347 if test -n "$OTOOL"; then
7348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7349 $as_echo "$OTOOL" >&6; }
7350 else
7351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7352 $as_echo "no" >&6; }
7353 fi
7354
7355
7356 fi
7357 if test -z "$ac_cv_prog_OTOOL"; then
7358   ac_ct_OTOOL=$OTOOL
7359   # Extract the first word of "otool", so it can be a program name with args.
7360 set dummy otool; ac_word=$2
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7362 $as_echo_n "checking for $ac_word... " >&6; }
7363 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7364   $as_echo_n "(cached) " >&6
7365 else
7366   if test -n "$ac_ct_OTOOL"; then
7367   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7368 else
7369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7370 for as_dir in $PATH
7371 do
7372   IFS=$as_save_IFS
7373   test -z "$as_dir" && as_dir=.
7374     for ac_exec_ext in '' $ac_executable_extensions; do
7375   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7376     ac_cv_prog_ac_ct_OTOOL="otool"
7377     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7378     break 2
7379   fi
7380 done
7381   done
7382 IFS=$as_save_IFS
7383
7384 fi
7385 fi
7386 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7387 if test -n "$ac_ct_OTOOL"; then
7388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7389 $as_echo "$ac_ct_OTOOL" >&6; }
7390 else
7391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7392 $as_echo "no" >&6; }
7393 fi
7394
7395   if test "x$ac_ct_OTOOL" = x; then
7396     OTOOL=":"
7397   else
7398     case $cross_compiling:$ac_tool_warned in
7399 yes:)
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7401 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7402 ac_tool_warned=yes ;;
7403 esac
7404     OTOOL=$ac_ct_OTOOL
7405   fi
7406 else
7407   OTOOL="$ac_cv_prog_OTOOL"
7408 fi
7409
7410     if test -n "$ac_tool_prefix"; then
7411   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7412 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7414 $as_echo_n "checking for $ac_word... " >&6; }
7415 if ${ac_cv_prog_OTOOL64+:} false; then :
7416   $as_echo_n "(cached) " >&6
7417 else
7418   if test -n "$OTOOL64"; then
7419   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7420 else
7421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7422 for as_dir in $PATH
7423 do
7424   IFS=$as_save_IFS
7425   test -z "$as_dir" && as_dir=.
7426     for ac_exec_ext in '' $ac_executable_extensions; do
7427   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7428     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7429     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7430     break 2
7431   fi
7432 done
7433   done
7434 IFS=$as_save_IFS
7435
7436 fi
7437 fi
7438 OTOOL64=$ac_cv_prog_OTOOL64
7439 if test -n "$OTOOL64"; then
7440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7441 $as_echo "$OTOOL64" >&6; }
7442 else
7443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7444 $as_echo "no" >&6; }
7445 fi
7446
7447
7448 fi
7449 if test -z "$ac_cv_prog_OTOOL64"; then
7450   ac_ct_OTOOL64=$OTOOL64
7451   # Extract the first word of "otool64", so it can be a program name with args.
7452 set dummy otool64; ac_word=$2
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7454 $as_echo_n "checking for $ac_word... " >&6; }
7455 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7456   $as_echo_n "(cached) " >&6
7457 else
7458   if test -n "$ac_ct_OTOOL64"; then
7459   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7460 else
7461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7462 for as_dir in $PATH
7463 do
7464   IFS=$as_save_IFS
7465   test -z "$as_dir" && as_dir=.
7466     for ac_exec_ext in '' $ac_executable_extensions; do
7467   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7468     ac_cv_prog_ac_ct_OTOOL64="otool64"
7469     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7470     break 2
7471   fi
7472 done
7473   done
7474 IFS=$as_save_IFS
7475
7476 fi
7477 fi
7478 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7479 if test -n "$ac_ct_OTOOL64"; then
7480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7481 $as_echo "$ac_ct_OTOOL64" >&6; }
7482 else
7483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7484 $as_echo "no" >&6; }
7485 fi
7486
7487   if test "x$ac_ct_OTOOL64" = x; then
7488     OTOOL64=":"
7489   else
7490     case $cross_compiling:$ac_tool_warned in
7491 yes:)
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7493 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7494 ac_tool_warned=yes ;;
7495 esac
7496     OTOOL64=$ac_ct_OTOOL64
7497   fi
7498 else
7499   OTOOL64="$ac_cv_prog_OTOOL64"
7500 fi
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
7526
7527
7528     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7529 $as_echo_n "checking for -single_module linker flag... " >&6; }
7530 if ${lt_cv_apple_cc_single_mod+:} false; then :
7531   $as_echo_n "(cached) " >&6
7532 else
7533   lt_cv_apple_cc_single_mod=no
7534       if test -z "$LT_MULTI_MODULE"; then
7535         # By default we will add the -single_module flag. You can override
7536         # by either setting the environment variable LT_MULTI_MODULE
7537         # non-empty at configure time, or by adding -multi_module to the
7538         # link flags.
7539         rm -rf libconftest.dylib*
7540         echo "int foo(void){return 1;}" > conftest.c
7541         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7542 -dynamiclib -Wl,-single_module conftest.c" >&5
7543         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7544           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7545         _lt_result=$?
7546         # If there is a non-empty error log, and "single_module"
7547         # appears in it, assume the flag caused a linker warning
7548         if test -s conftest.err && $GREP single_module conftest.err; then
7549           cat conftest.err >&5
7550         # Otherwise, if the output was created with a 0 exit code from
7551         # the compiler, it worked.
7552         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7553           lt_cv_apple_cc_single_mod=yes
7554         else
7555           cat conftest.err >&5
7556         fi
7557         rm -rf libconftest.dylib*
7558         rm -f conftest.*
7559       fi
7560 fi
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7562 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7563
7564     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7565 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7566 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7567   $as_echo_n "(cached) " >&6
7568 else
7569   lt_cv_ld_exported_symbols_list=no
7570       save_LDFLAGS=$LDFLAGS
7571       echo "_main" > conftest.sym
7572       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7573       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7574 /* end confdefs.h.  */
7575
7576 int
7577 main ()
7578 {
7579
7580   ;
7581   return 0;
7582 }
7583 _ACEOF
7584 if ac_fn_c_try_link "$LINENO"; then :
7585   lt_cv_ld_exported_symbols_list=yes
7586 else
7587   lt_cv_ld_exported_symbols_list=no
7588 fi
7589 rm -f core conftest.err conftest.$ac_objext \
7590     conftest$ac_exeext conftest.$ac_ext
7591         LDFLAGS=$save_LDFLAGS
7592
7593 fi
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7595 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7596
7597     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7598 $as_echo_n "checking for -force_load linker flag... " >&6; }
7599 if ${lt_cv_ld_force_load+:} false; then :
7600   $as_echo_n "(cached) " >&6
7601 else
7602   lt_cv_ld_force_load=no
7603       cat > conftest.c << _LT_EOF
7604 int forced_loaded() { return 2;}
7605 _LT_EOF
7606       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7607       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7608       echo "$AR cru libconftest.a conftest.o" >&5
7609       $AR cru libconftest.a conftest.o 2>&5
7610       echo "$RANLIB libconftest.a" >&5
7611       $RANLIB libconftest.a 2>&5
7612       cat > conftest.c << _LT_EOF
7613 int main() { return 0;}
7614 _LT_EOF
7615       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7616       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7617       _lt_result=$?
7618       if test -s conftest.err && $GREP force_load conftest.err; then
7619         cat conftest.err >&5
7620       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7621         lt_cv_ld_force_load=yes
7622       else
7623         cat conftest.err >&5
7624       fi
7625         rm -f conftest.err libconftest.a conftest conftest.c
7626         rm -rf conftest.dSYM
7627
7628 fi
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7630 $as_echo "$lt_cv_ld_force_load" >&6; }
7631     case $host_os in
7632     rhapsody* | darwin1.[012])
7633       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7634     darwin1.*)
7635       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7636     darwin*) # darwin 5.x on
7637       # if running on 10.5 or later, the deployment target defaults
7638       # to the OS version, if on x86, and 10.4, the deployment
7639       # target defaults to 10.4. Don't you love it?
7640       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7641         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7642           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7643         10.[012][,.]*)
7644           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7645         10.*)
7646           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7647       esac
7648     ;;
7649   esac
7650     if test yes = "$lt_cv_apple_cc_single_mod"; then
7651       _lt_dar_single_mod='$single_module'
7652     fi
7653     if test yes = "$lt_cv_ld_exported_symbols_list"; then
7654       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7655     else
7656       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7657     fi
7658     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7659       _lt_dsymutil='~$DSYMUTIL $lib || :'
7660     else
7661       _lt_dsymutil=
7662     fi
7663     ;;
7664   esac
7665
7666 # func_munge_path_list VARIABLE PATH
7667 # -----------------------------------
7668 # VARIABLE is name of variable containing _space_ separated list of
7669 # directories to be munged by the contents of PATH, which is string
7670 # having a format:
7671 # "DIR[:DIR]:"
7672 #       string "DIR[ DIR]" will be prepended to VARIABLE
7673 # ":DIR[:DIR]"
7674 #       string "DIR[ DIR]" will be appended to VARIABLE
7675 # "DIRP[:DIRP]::[DIRA:]DIRA"
7676 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7677 #       "DIRA[ DIRA]" will be appended to VARIABLE
7678 # "DIR[:DIR]"
7679 #       VARIABLE will be replaced by "DIR[ DIR]"
7680 func_munge_path_list ()
7681 {
7682     case x$2 in
7683     x)
7684         ;;
7685     *:)
7686         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7687         ;;
7688     x:*)
7689         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7690         ;;
7691     *::*)
7692         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7693         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7694         ;;
7695     *)
7696         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7697         ;;
7698     esac
7699 }
7700
7701 ac_ext=c
7702 ac_cpp='$CPP $CPPFLAGS'
7703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7707 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7708 # On Suns, sometimes $CPP names a directory.
7709 if test -n "$CPP" && test -d "$CPP"; then
7710   CPP=
7711 fi
7712 if test -z "$CPP"; then
7713   if ${ac_cv_prog_CPP+:} false; then :
7714   $as_echo_n "(cached) " >&6
7715 else
7716       # Double quotes because CPP needs to be expanded
7717     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7718     do
7719       ac_preproc_ok=false
7720 for ac_c_preproc_warn_flag in '' yes
7721 do
7722   # Use a header file that comes with gcc, so configuring glibc
7723   # with a fresh cross-compiler works.
7724   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7725   # <limits.h> exists even on freestanding compilers.
7726   # On the NeXT, cc -E runs the code through the compiler's parser,
7727   # not just through cpp. "Syntax error" is here to catch this case.
7728   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7729 /* end confdefs.h.  */
7730 #ifdef __STDC__
7731 # include <limits.h>
7732 #else
7733 # include <assert.h>
7734 #endif
7735                      Syntax error
7736 _ACEOF
7737 if ac_fn_c_try_cpp "$LINENO"; then :
7738
7739 else
7740   # Broken: fails on valid input.
7741 continue
7742 fi
7743 rm -f conftest.err conftest.i conftest.$ac_ext
7744
7745   # OK, works on sane cases.  Now check whether nonexistent headers
7746   # can be detected and how.
7747   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7748 /* end confdefs.h.  */
7749 #include <ac_nonexistent.h>
7750 _ACEOF
7751 if ac_fn_c_try_cpp "$LINENO"; then :
7752   # Broken: success on invalid input.
7753 continue
7754 else
7755   # Passes both tests.
7756 ac_preproc_ok=:
7757 break
7758 fi
7759 rm -f conftest.err conftest.i conftest.$ac_ext
7760
7761 done
7762 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7763 rm -f conftest.i conftest.err conftest.$ac_ext
7764 if $ac_preproc_ok; then :
7765   break
7766 fi
7767
7768     done
7769     ac_cv_prog_CPP=$CPP
7770
7771 fi
7772   CPP=$ac_cv_prog_CPP
7773 else
7774   ac_cv_prog_CPP=$CPP
7775 fi
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7777 $as_echo "$CPP" >&6; }
7778 ac_preproc_ok=false
7779 for ac_c_preproc_warn_flag in '' yes
7780 do
7781   # Use a header file that comes with gcc, so configuring glibc
7782   # with a fresh cross-compiler works.
7783   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7784   # <limits.h> exists even on freestanding compilers.
7785   # On the NeXT, cc -E runs the code through the compiler's parser,
7786   # not just through cpp. "Syntax error" is here to catch this case.
7787   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7788 /* end confdefs.h.  */
7789 #ifdef __STDC__
7790 # include <limits.h>
7791 #else
7792 # include <assert.h>
7793 #endif
7794                      Syntax error
7795 _ACEOF
7796 if ac_fn_c_try_cpp "$LINENO"; then :
7797
7798 else
7799   # Broken: fails on valid input.
7800 continue
7801 fi
7802 rm -f conftest.err conftest.i conftest.$ac_ext
7803
7804   # OK, works on sane cases.  Now check whether nonexistent headers
7805   # can be detected and how.
7806   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7807 /* end confdefs.h.  */
7808 #include <ac_nonexistent.h>
7809 _ACEOF
7810 if ac_fn_c_try_cpp "$LINENO"; then :
7811   # Broken: success on invalid input.
7812 continue
7813 else
7814   # Passes both tests.
7815 ac_preproc_ok=:
7816 break
7817 fi
7818 rm -f conftest.err conftest.i conftest.$ac_ext
7819
7820 done
7821 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7822 rm -f conftest.i conftest.err conftest.$ac_ext
7823 if $ac_preproc_ok; then :
7824
7825 else
7826   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7827 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7828 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7829 See \`config.log' for more details" "$LINENO" 5; }
7830 fi
7831
7832 ac_ext=c
7833 ac_cpp='$CPP $CPPFLAGS'
7834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7837
7838
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7840 $as_echo_n "checking for ANSI C header files... " >&6; }
7841 if ${ac_cv_header_stdc+:} false; then :
7842   $as_echo_n "(cached) " >&6
7843 else
7844   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7845 /* end confdefs.h.  */
7846 #include <stdlib.h>
7847 #include <stdarg.h>
7848 #include <string.h>
7849 #include <float.h>
7850
7851 int
7852 main ()
7853 {
7854
7855   ;
7856   return 0;
7857 }
7858 _ACEOF
7859 if ac_fn_c_try_compile "$LINENO"; then :
7860   ac_cv_header_stdc=yes
7861 else
7862   ac_cv_header_stdc=no
7863 fi
7864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7865
7866 if test $ac_cv_header_stdc = yes; then
7867   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7868   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7869 /* end confdefs.h.  */
7870 #include <string.h>
7871
7872 _ACEOF
7873 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7874   $EGREP "memchr" >/dev/null 2>&1; then :
7875
7876 else
7877   ac_cv_header_stdc=no
7878 fi
7879 rm -f conftest*
7880
7881 fi
7882
7883 if test $ac_cv_header_stdc = yes; then
7884   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7885   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7886 /* end confdefs.h.  */
7887 #include <stdlib.h>
7888
7889 _ACEOF
7890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7891   $EGREP "free" >/dev/null 2>&1; then :
7892
7893 else
7894   ac_cv_header_stdc=no
7895 fi
7896 rm -f conftest*
7897
7898 fi
7899
7900 if test $ac_cv_header_stdc = yes; then
7901   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7902   if test "$cross_compiling" = yes; then :
7903   :
7904 else
7905   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7906 /* end confdefs.h.  */
7907 #include <ctype.h>
7908 #include <stdlib.h>
7909 #if ((' ' & 0x0FF) == 0x020)
7910 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7911 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7912 #else
7913 # define ISLOWER(c) \
7914                    (('a' <= (c) && (c) <= 'i') \
7915                      || ('j' <= (c) && (c) <= 'r') \
7916                      || ('s' <= (c) && (c) <= 'z'))
7917 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7918 #endif
7919
7920 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7921 int
7922 main ()
7923 {
7924   int i;
7925   for (i = 0; i < 256; i++)
7926     if (XOR (islower (i), ISLOWER (i))
7927         || toupper (i) != TOUPPER (i))
7928       return 2;
7929   return 0;
7930 }
7931 _ACEOF
7932 if ac_fn_c_try_run "$LINENO"; then :
7933
7934 else
7935   ac_cv_header_stdc=no
7936 fi
7937 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7938   conftest.$ac_objext conftest.beam conftest.$ac_ext
7939 fi
7940
7941 fi
7942 fi
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7944 $as_echo "$ac_cv_header_stdc" >&6; }
7945 if test $ac_cv_header_stdc = yes; then
7946
7947 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7948
7949 fi
7950
7951 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7952 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7953                   inttypes.h stdint.h unistd.h
7954 do :
7955   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7956 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7957 "
7958 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7959   cat >>confdefs.h <<_ACEOF
7960 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7961 _ACEOF
7962
7963 fi
7964
7965 done
7966
7967
7968 for ac_header in dlfcn.h
7969 do :
7970   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7971 "
7972 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7973   cat >>confdefs.h <<_ACEOF
7974 #define HAVE_DLFCN_H 1
7975 _ACEOF
7976
7977 fi
7978
7979 done
7980
7981
7982
7983
7984
7985 # Set options
7986
7987
7988
7989         enable_dlopen=no
7990
7991
7992   enable_win32_dll=no
7993
7994
7995             # Check whether --enable-shared was given.
7996 if test "${enable_shared+set}" = set; then :
7997   enableval=$enable_shared; p=${PACKAGE-default}
7998     case $enableval in
7999     yes) enable_shared=yes ;;
8000     no) enable_shared=no ;;
8001     *)
8002       enable_shared=no
8003       # Look at the argument we got.  We use all the common list separators.
8004       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8005       for pkg in $enableval; do
8006         IFS=$lt_save_ifs
8007         if test "X$pkg" = "X$p"; then
8008           enable_shared=yes
8009         fi
8010       done
8011       IFS=$lt_save_ifs
8012       ;;
8013     esac
8014 else
8015   enable_shared=yes
8016 fi
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026   # Check whether --enable-static was given.
8027 if test "${enable_static+set}" = set; then :
8028   enableval=$enable_static; p=${PACKAGE-default}
8029     case $enableval in
8030     yes) enable_static=yes ;;
8031     no) enable_static=no ;;
8032     *)
8033      enable_static=no
8034       # Look at the argument we got.  We use all the common list separators.
8035       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8036       for pkg in $enableval; do
8037         IFS=$lt_save_ifs
8038         if test "X$pkg" = "X$p"; then
8039           enable_static=yes
8040         fi
8041       done
8042       IFS=$lt_save_ifs
8043       ;;
8044     esac
8045 else
8046   enable_static=yes
8047 fi
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058 # Check whether --with-pic was given.
8059 if test "${with_pic+set}" = set; then :
8060   withval=$with_pic; lt_p=${PACKAGE-default}
8061     case $withval in
8062     yes|no) pic_mode=$withval ;;
8063     *)
8064       pic_mode=default
8065       # Look at the argument we got.  We use all the common list separators.
8066       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8067       for lt_pkg in $withval; do
8068         IFS=$lt_save_ifs
8069         if test "X$lt_pkg" = "X$lt_p"; then
8070           pic_mode=yes
8071         fi
8072       done
8073       IFS=$lt_save_ifs
8074       ;;
8075     esac
8076 else
8077   pic_mode=default
8078 fi
8079
8080
8081
8082
8083
8084
8085
8086
8087   # Check whether --enable-fast-install was given.
8088 if test "${enable_fast_install+set}" = set; then :
8089   enableval=$enable_fast_install; p=${PACKAGE-default}
8090     case $enableval in
8091     yes) enable_fast_install=yes ;;
8092     no) enable_fast_install=no ;;
8093     *)
8094       enable_fast_install=no
8095       # Look at the argument we got.  We use all the common list separators.
8096       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8097       for pkg in $enableval; do
8098         IFS=$lt_save_ifs
8099         if test "X$pkg" = "X$p"; then
8100           enable_fast_install=yes
8101         fi
8102       done
8103       IFS=$lt_save_ifs
8104       ;;
8105     esac
8106 else
8107   enable_fast_install=yes
8108 fi
8109
8110
8111
8112
8113
8114
8115
8116
8117   shared_archive_member_spec=
8118 case $host,$enable_shared in
8119 power*-*-aix[5-9]*,yes)
8120   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8121 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8122
8123 # Check whether --with-aix-soname was given.
8124 if test "${with_aix_soname+set}" = set; then :
8125   withval=$with_aix_soname; case $withval in
8126     aix|svr4|both)
8127       ;;
8128     *)
8129       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8130       ;;
8131     esac
8132     lt_cv_with_aix_soname=$with_aix_soname
8133 else
8134   if ${lt_cv_with_aix_soname+:} false; then :
8135   $as_echo_n "(cached) " >&6
8136 else
8137   lt_cv_with_aix_soname=aix
8138 fi
8139
8140     with_aix_soname=$lt_cv_with_aix_soname
8141 fi
8142
8143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8144 $as_echo "$with_aix_soname" >&6; }
8145   if test aix != "$with_aix_soname"; then
8146     # For the AIX way of multilib, we name the shared archive member
8147     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8148     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8149     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8150     # the AIX toolchain works better with OBJECT_MODE set (default 32).
8151     if test 64 = "${OBJECT_MODE-32}"; then
8152       shared_archive_member_spec=shr_64
8153     else
8154       shared_archive_member_spec=shr
8155     fi
8156   fi
8157   ;;
8158 *)
8159   with_aix_soname=aix
8160   ;;
8161 esac
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172 # This can be used to rebuild libtool when needed
8173 LIBTOOL_DEPS=$ltmain
8174
8175 # Always use our own libtool.
8176 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207 test -z "$LN_S" && LN_S="ln -s"
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222 if test -n "${ZSH_VERSION+set}"; then
8223    setopt NO_GLOB_SUBST
8224 fi
8225
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8227 $as_echo_n "checking for objdir... " >&6; }
8228 if ${lt_cv_objdir+:} false; then :
8229   $as_echo_n "(cached) " >&6
8230 else
8231   rm -f .libs 2>/dev/null
8232 mkdir .libs 2>/dev/null
8233 if test -d .libs; then
8234   lt_cv_objdir=.libs
8235 else
8236   # MS-DOS does not allow filenames that begin with a dot.
8237   lt_cv_objdir=_libs
8238 fi
8239 rmdir .libs 2>/dev/null
8240 fi
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8242 $as_echo "$lt_cv_objdir" >&6; }
8243 objdir=$lt_cv_objdir
8244
8245
8246
8247
8248
8249 cat >>confdefs.h <<_ACEOF
8250 #define LT_OBJDIR "$lt_cv_objdir/"
8251 _ACEOF
8252
8253
8254
8255
8256 case $host_os in
8257 aix3*)
8258   # AIX sometimes has problems with the GCC collect2 program.  For some
8259   # reason, if we set the COLLECT_NAMES environment variable, the problems
8260   # vanish in a puff of smoke.
8261   if test set != "${COLLECT_NAMES+set}"; then
8262     COLLECT_NAMES=
8263     export COLLECT_NAMES
8264   fi
8265   ;;
8266 esac
8267
8268 # Global variables:
8269 ofile=libtool
8270 can_build_shared=yes
8271
8272 # All known linkers require a '.a' archive for static linking (except MSVC,
8273 # which needs '.lib').
8274 libext=a
8275
8276 with_gnu_ld=$lt_cv_prog_gnu_ld
8277
8278 old_CC=$CC
8279 old_CFLAGS=$CFLAGS
8280
8281 # Set sane defaults for various variables
8282 test -z "$CC" && CC=cc
8283 test -z "$LTCC" && LTCC=$CC
8284 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8285 test -z "$LD" && LD=ld
8286 test -z "$ac_objext" && ac_objext=o
8287
8288 func_cc_basename $compiler
8289 cc_basename=$func_cc_basename_result
8290
8291
8292 # Only perform the check for file, if the check method requires it
8293 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8294 case $deplibs_check_method in
8295 file_magic*)
8296   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8297     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8298 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8299 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8300   $as_echo_n "(cached) " >&6
8301 else
8302   case $MAGIC_CMD in
8303 [\\/*] |  ?:[\\/]*)
8304   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8305   ;;
8306 *)
8307   lt_save_MAGIC_CMD=$MAGIC_CMD
8308   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8309   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8310   for ac_dir in $ac_dummy; do
8311     IFS=$lt_save_ifs
8312     test -z "$ac_dir" && ac_dir=.
8313     if test -f "$ac_dir/${ac_tool_prefix}file"; then
8314       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8315       if test -n "$file_magic_test_file"; then
8316         case $deplibs_check_method in
8317         "file_magic "*)
8318           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8319           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8320           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8321             $EGREP "$file_magic_regex" > /dev/null; then
8322             :
8323           else
8324             cat <<_LT_EOF 1>&2
8325
8326 *** Warning: the command libtool uses to detect shared libraries,
8327 *** $file_magic_cmd, produces output that libtool cannot recognize.
8328 *** The result is that libtool may fail to recognize shared libraries
8329 *** as such.  This will affect the creation of libtool libraries that
8330 *** depend on shared libraries, but programs linked with such libtool
8331 *** libraries will work regardless of this problem.  Nevertheless, you
8332 *** may want to report the problem to your system manager and/or to
8333 *** bug-libtool@gnu.org
8334
8335 _LT_EOF
8336           fi ;;
8337         esac
8338       fi
8339       break
8340     fi
8341   done
8342   IFS=$lt_save_ifs
8343   MAGIC_CMD=$lt_save_MAGIC_CMD
8344   ;;
8345 esac
8346 fi
8347
8348 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8349 if test -n "$MAGIC_CMD"; then
8350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8351 $as_echo "$MAGIC_CMD" >&6; }
8352 else
8353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8354 $as_echo "no" >&6; }
8355 fi
8356
8357
8358
8359
8360
8361 if test -z "$lt_cv_path_MAGIC_CMD"; then
8362   if test -n "$ac_tool_prefix"; then
8363     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8364 $as_echo_n "checking for file... " >&6; }
8365 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8366   $as_echo_n "(cached) " >&6
8367 else
8368   case $MAGIC_CMD in
8369 [\\/*] |  ?:[\\/]*)
8370   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8371   ;;
8372 *)
8373   lt_save_MAGIC_CMD=$MAGIC_CMD
8374   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8375   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8376   for ac_dir in $ac_dummy; do
8377     IFS=$lt_save_ifs
8378     test -z "$ac_dir" && ac_dir=.
8379     if test -f "$ac_dir/file"; then
8380       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8381       if test -n "$file_magic_test_file"; then
8382         case $deplibs_check_method in
8383         "file_magic "*)
8384           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8385           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8386           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8387             $EGREP "$file_magic_regex" > /dev/null; then
8388             :
8389           else
8390             cat <<_LT_EOF 1>&2
8391
8392 *** Warning: the command libtool uses to detect shared libraries,
8393 *** $file_magic_cmd, produces output that libtool cannot recognize.
8394 *** The result is that libtool may fail to recognize shared libraries
8395 *** as such.  This will affect the creation of libtool libraries that
8396 *** depend on shared libraries, but programs linked with such libtool
8397 *** libraries will work regardless of this problem.  Nevertheless, you
8398 *** may want to report the problem to your system manager and/or to
8399 *** bug-libtool@gnu.org
8400
8401 _LT_EOF
8402           fi ;;
8403         esac
8404       fi
8405       break
8406     fi
8407   done
8408   IFS=$lt_save_ifs
8409   MAGIC_CMD=$lt_save_MAGIC_CMD
8410   ;;
8411 esac
8412 fi
8413
8414 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8415 if test -n "$MAGIC_CMD"; then
8416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8417 $as_echo "$MAGIC_CMD" >&6; }
8418 else
8419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8420 $as_echo "no" >&6; }
8421 fi
8422
8423
8424   else
8425     MAGIC_CMD=:
8426   fi
8427 fi
8428
8429   fi
8430   ;;
8431 esac
8432
8433 # Use C for the default configuration in the libtool script
8434
8435 lt_save_CC=$CC
8436 ac_ext=c
8437 ac_cpp='$CPP $CPPFLAGS'
8438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8441
8442
8443 # Source file extension for C test sources.
8444 ac_ext=c
8445
8446 # Object file extension for compiled C test sources.
8447 objext=o
8448 objext=$objext
8449
8450 # Code to be used in simple compile tests
8451 lt_simple_compile_test_code="int some_variable = 0;"
8452
8453 # Code to be used in simple link tests
8454 lt_simple_link_test_code='int main(){return(0);}'
8455
8456
8457
8458
8459
8460
8461
8462 # If no C compiler was specified, use CC.
8463 LTCC=${LTCC-"$CC"}
8464
8465 # If no C compiler flags were specified, use CFLAGS.
8466 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8467
8468 # Allow CC to be a program name with arguments.
8469 compiler=$CC
8470
8471 # Save the default compiler, since it gets overwritten when the other
8472 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8473 compiler_DEFAULT=$CC
8474
8475 # save warnings/boilerplate of simple test code
8476 ac_outfile=conftest.$ac_objext
8477 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8478 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8479 _lt_compiler_boilerplate=`cat conftest.err`
8480 $RM conftest*
8481
8482 ac_outfile=conftest.$ac_objext
8483 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8484 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8485 _lt_linker_boilerplate=`cat conftest.err`
8486 $RM -r conftest*
8487
8488
8489 ## CAVEAT EMPTOR:
8490 ## There is no encapsulation within the following macros, do not change
8491 ## the running order or otherwise move them around unless you know exactly
8492 ## what you are doing...
8493 if test -n "$compiler"; then
8494
8495 lt_prog_compiler_no_builtin_flag=
8496
8497 if test yes = "$GCC"; then
8498   case $cc_basename in
8499   nvcc*)
8500     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8501   *)
8502     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8503   esac
8504
8505   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8506 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8507 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8508   $as_echo_n "(cached) " >&6
8509 else
8510   lt_cv_prog_compiler_rtti_exceptions=no
8511    ac_outfile=conftest.$ac_objext
8512    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8513    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8514    # Insert the option either (1) after the last *FLAGS variable, or
8515    # (2) before a word containing "conftest.", or (3) at the end.
8516    # Note that $ac_compile itself does not contain backslashes and begins
8517    # with a dollar sign (not a hyphen), so the echo should work correctly.
8518    # The option is referenced via a variable to avoid confusing sed.
8519    lt_compile=`echo "$ac_compile" | $SED \
8520    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8521    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8522    -e 's:$: $lt_compiler_flag:'`
8523    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8524    (eval "$lt_compile" 2>conftest.err)
8525    ac_status=$?
8526    cat conftest.err >&5
8527    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528    if (exit $ac_status) && test -s "$ac_outfile"; then
8529      # The compiler can only warn and ignore the option if not recognized
8530      # So say no if there are warnings other than the usual output.
8531      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8532      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8533      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8534        lt_cv_prog_compiler_rtti_exceptions=yes
8535      fi
8536    fi
8537    $RM conftest*
8538
8539 fi
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8541 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8542
8543 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8544     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8545 else
8546     :
8547 fi
8548
8549 fi
8550
8551
8552
8553
8554
8555
8556   lt_prog_compiler_wl=
8557 lt_prog_compiler_pic=
8558 lt_prog_compiler_static=
8559
8560
8561   if test yes = "$GCC"; then
8562     lt_prog_compiler_wl='-Wl,'
8563     lt_prog_compiler_static='-static'
8564
8565     case $host_os in
8566       aix*)
8567       # All AIX code is PIC.
8568       if test ia64 = "$host_cpu"; then
8569         # AIX 5 now supports IA64 processor
8570         lt_prog_compiler_static='-Bstatic'
8571       fi
8572       lt_prog_compiler_pic='-fPIC'
8573       ;;
8574
8575     amigaos*)
8576       case $host_cpu in
8577       powerpc)
8578             # see comment about AmigaOS4 .so support
8579             lt_prog_compiler_pic='-fPIC'
8580         ;;
8581       m68k)
8582             # FIXME: we need at least 68020 code to build shared libraries, but
8583             # adding the '-m68020' flag to GCC prevents building anything better,
8584             # like '-m68040'.
8585             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8586         ;;
8587       esac
8588       ;;
8589
8590     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8591       # PIC is the default for these OSes.
8592       ;;
8593
8594     mingw* | cygwin* | pw32* | os2* | cegcc*)
8595       # This hack is so that the source file can tell whether it is being
8596       # built for inclusion in a dll (and should export symbols for example).
8597       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8598       # (--disable-auto-import) libraries
8599       lt_prog_compiler_pic='-DDLL_EXPORT'
8600       case $host_os in
8601       os2*)
8602         lt_prog_compiler_static='$wl-static'
8603         ;;
8604       esac
8605       ;;
8606
8607     darwin* | rhapsody*)
8608       # PIC is the default on this platform
8609       # Common symbols not allowed in MH_DYLIB files
8610       lt_prog_compiler_pic='-fno-common'
8611       ;;
8612
8613     haiku*)
8614       # PIC is the default for Haiku.
8615       # The "-static" flag exists, but is broken.
8616       lt_prog_compiler_static=
8617       ;;
8618
8619     hpux*)
8620       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8621       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8622       # sets the default TLS model and affects inlining.
8623       case $host_cpu in
8624       hppa*64*)
8625         # +Z the default
8626         ;;
8627       *)
8628         lt_prog_compiler_pic='-fPIC'
8629         ;;
8630       esac
8631       ;;
8632
8633     interix[3-9]*)
8634       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8635       # Instead, we relocate shared libraries at runtime.
8636       ;;
8637
8638     msdosdjgpp*)
8639       # Just because we use GCC doesn't mean we suddenly get shared libraries
8640       # on systems that don't support them.
8641       lt_prog_compiler_can_build_shared=no
8642       enable_shared=no
8643       ;;
8644
8645     *nto* | *qnx*)
8646       # QNX uses GNU C++, but need to define -shared option too, otherwise
8647       # it will coredump.
8648       lt_prog_compiler_pic='-fPIC -shared'
8649       ;;
8650
8651     sysv4*MP*)
8652       if test -d /usr/nec; then
8653         lt_prog_compiler_pic=-Kconform_pic
8654       fi
8655       ;;
8656
8657     *)
8658       lt_prog_compiler_pic='-fPIC'
8659       ;;
8660     esac
8661
8662     case $cc_basename in
8663     nvcc*) # Cuda Compiler Driver 2.2
8664       lt_prog_compiler_wl='-Xlinker '
8665       if test -n "$lt_prog_compiler_pic"; then
8666         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8667       fi
8668       ;;
8669     esac
8670   else
8671     # PORTME Check for flag to pass linker flags through the system compiler.
8672     case $host_os in
8673     aix*)
8674       lt_prog_compiler_wl='-Wl,'
8675       if test ia64 = "$host_cpu"; then
8676         # AIX 5 now supports IA64 processor
8677         lt_prog_compiler_static='-Bstatic'
8678       else
8679         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8680       fi
8681       ;;
8682
8683     darwin* | rhapsody*)
8684       # PIC is the default on this platform
8685       # Common symbols not allowed in MH_DYLIB files
8686       lt_prog_compiler_pic='-fno-common'
8687       case $cc_basename in
8688       nagfor*)
8689         # NAG Fortran compiler
8690         lt_prog_compiler_wl='-Wl,-Wl,,'
8691         lt_prog_compiler_pic='-PIC'
8692         lt_prog_compiler_static='-Bstatic'
8693         ;;
8694       esac
8695       ;;
8696
8697     mingw* | cygwin* | pw32* | os2* | cegcc*)
8698       # This hack is so that the source file can tell whether it is being
8699       # built for inclusion in a dll (and should export symbols for example).
8700       lt_prog_compiler_pic='-DDLL_EXPORT'
8701       case $host_os in
8702       os2*)
8703         lt_prog_compiler_static='$wl-static'
8704         ;;
8705       esac
8706       ;;
8707
8708     hpux9* | hpux10* | hpux11*)
8709       lt_prog_compiler_wl='-Wl,'
8710       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8711       # not for PA HP-UX.
8712       case $host_cpu in
8713       hppa*64*|ia64*)
8714         # +Z the default
8715         ;;
8716       *)
8717         lt_prog_compiler_pic='+Z'
8718         ;;
8719       esac
8720       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8721       lt_prog_compiler_static='$wl-a ${wl}archive'
8722       ;;
8723
8724     irix5* | irix6* | nonstopux*)
8725       lt_prog_compiler_wl='-Wl,'
8726       # PIC (with -KPIC) is the default.
8727       lt_prog_compiler_static='-non_shared'
8728       ;;
8729
8730     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8731       case $cc_basename in
8732       # old Intel for x86_64, which still supported -KPIC.
8733       ecc*)
8734         lt_prog_compiler_wl='-Wl,'
8735         lt_prog_compiler_pic='-KPIC'
8736         lt_prog_compiler_static='-static'
8737         ;;
8738       # icc used to be incompatible with GCC.
8739       # ICC 10 doesn't accept -KPIC any more.
8740       icc* | ifort*)
8741         lt_prog_compiler_wl='-Wl,'
8742         lt_prog_compiler_pic='-fPIC'
8743         lt_prog_compiler_static='-static'
8744         ;;
8745       # Lahey Fortran 8.1.
8746       lf95*)
8747         lt_prog_compiler_wl='-Wl,'
8748         lt_prog_compiler_pic='--shared'
8749         lt_prog_compiler_static='--static'
8750         ;;
8751       nagfor*)
8752         # NAG Fortran compiler
8753         lt_prog_compiler_wl='-Wl,-Wl,,'
8754         lt_prog_compiler_pic='-PIC'
8755         lt_prog_compiler_static='-Bstatic'
8756         ;;
8757       tcc*)
8758         # Fabrice Bellard et al's Tiny C Compiler
8759         lt_prog_compiler_wl='-Wl,'
8760         lt_prog_compiler_pic='-fPIC'
8761         lt_prog_compiler_static='-static'
8762         ;;
8763       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8764         # Portland Group compilers (*not* the Pentium gcc compiler,
8765         # which looks to be a dead project)
8766         lt_prog_compiler_wl='-Wl,'
8767         lt_prog_compiler_pic='-fpic'
8768         lt_prog_compiler_static='-Bstatic'
8769         ;;
8770       ccc*)
8771         lt_prog_compiler_wl='-Wl,'
8772         # All Alpha code is PIC.
8773         lt_prog_compiler_static='-non_shared'
8774         ;;
8775       xl* | bgxl* | bgf* | mpixl*)
8776         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8777         lt_prog_compiler_wl='-Wl,'
8778         lt_prog_compiler_pic='-qpic'
8779         lt_prog_compiler_static='-qstaticlink'
8780         ;;
8781       *)
8782         case `$CC -V 2>&1 | sed 5q` in
8783         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8784           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8785           lt_prog_compiler_pic='-KPIC'
8786           lt_prog_compiler_static='-Bstatic'
8787           lt_prog_compiler_wl=''
8788           ;;
8789         *Sun\ F* | *Sun*Fortran*)
8790           lt_prog_compiler_pic='-KPIC'
8791           lt_prog_compiler_static='-Bstatic'
8792           lt_prog_compiler_wl='-Qoption ld '
8793           ;;
8794         *Sun\ C*)
8795           # Sun C 5.9
8796           lt_prog_compiler_pic='-KPIC'
8797           lt_prog_compiler_static='-Bstatic'
8798           lt_prog_compiler_wl='-Wl,'
8799           ;;
8800         *Intel*\ [CF]*Compiler*)
8801           lt_prog_compiler_wl='-Wl,'
8802           lt_prog_compiler_pic='-fPIC'
8803           lt_prog_compiler_static='-static'
8804           ;;
8805         *Portland\ Group*)
8806           lt_prog_compiler_wl='-Wl,'
8807           lt_prog_compiler_pic='-fpic'
8808           lt_prog_compiler_static='-Bstatic'
8809           ;;
8810         esac
8811         ;;
8812       esac
8813       ;;
8814
8815     newsos6)
8816       lt_prog_compiler_pic='-KPIC'
8817       lt_prog_compiler_static='-Bstatic'
8818       ;;
8819
8820     *nto* | *qnx*)
8821       # QNX uses GNU C++, but need to define -shared option too, otherwise
8822       # it will coredump.
8823       lt_prog_compiler_pic='-fPIC -shared'
8824       ;;
8825
8826     osf3* | osf4* | osf5*)
8827       lt_prog_compiler_wl='-Wl,'
8828       # All OSF/1 code is PIC.
8829       lt_prog_compiler_static='-non_shared'
8830       ;;
8831
8832     rdos*)
8833       lt_prog_compiler_static='-non_shared'
8834       ;;
8835
8836     solaris*)
8837       lt_prog_compiler_pic='-KPIC'
8838       lt_prog_compiler_static='-Bstatic'
8839       case $cc_basename in
8840       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8841         lt_prog_compiler_wl='-Qoption ld ';;
8842       *)
8843         lt_prog_compiler_wl='-Wl,';;
8844       esac
8845       ;;
8846
8847     sunos4*)
8848       lt_prog_compiler_wl='-Qoption ld '
8849       lt_prog_compiler_pic='-PIC'
8850       lt_prog_compiler_static='-Bstatic'
8851       ;;
8852
8853     sysv4 | sysv4.2uw2* | sysv4.3*)
8854       lt_prog_compiler_wl='-Wl,'
8855       lt_prog_compiler_pic='-KPIC'
8856       lt_prog_compiler_static='-Bstatic'
8857       ;;
8858
8859     sysv4*MP*)
8860       if test -d /usr/nec; then
8861         lt_prog_compiler_pic='-Kconform_pic'
8862         lt_prog_compiler_static='-Bstatic'
8863       fi
8864       ;;
8865
8866     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8867       lt_prog_compiler_wl='-Wl,'
8868       lt_prog_compiler_pic='-KPIC'
8869       lt_prog_compiler_static='-Bstatic'
8870       ;;
8871
8872     unicos*)
8873       lt_prog_compiler_wl='-Wl,'
8874       lt_prog_compiler_can_build_shared=no
8875       ;;
8876
8877     uts4*)
8878       lt_prog_compiler_pic='-pic'
8879       lt_prog_compiler_static='-Bstatic'
8880       ;;
8881
8882     *)
8883       lt_prog_compiler_can_build_shared=no
8884       ;;
8885     esac
8886   fi
8887
8888 case $host_os in
8889   # For platforms that do not support PIC, -DPIC is meaningless:
8890   *djgpp*)
8891     lt_prog_compiler_pic=
8892     ;;
8893   *)
8894     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8895     ;;
8896 esac
8897
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8899 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8900 if ${lt_cv_prog_compiler_pic+:} false; then :
8901   $as_echo_n "(cached) " >&6
8902 else
8903   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8904 fi
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8906 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8907 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8908
8909 #
8910 # Check to make sure the PIC flag actually works.
8911 #
8912 if test -n "$lt_prog_compiler_pic"; then
8913   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8914 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8915 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8916   $as_echo_n "(cached) " >&6
8917 else
8918   lt_cv_prog_compiler_pic_works=no
8919    ac_outfile=conftest.$ac_objext
8920    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8921    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
8922    # Insert the option either (1) after the last *FLAGS variable, or
8923    # (2) before a word containing "conftest.", or (3) at the end.
8924    # Note that $ac_compile itself does not contain backslashes and begins
8925    # with a dollar sign (not a hyphen), so the echo should work correctly.
8926    # The option is referenced via a variable to avoid confusing sed.
8927    lt_compile=`echo "$ac_compile" | $SED \
8928    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8929    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8930    -e 's:$: $lt_compiler_flag:'`
8931    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8932    (eval "$lt_compile" 2>conftest.err)
8933    ac_status=$?
8934    cat conftest.err >&5
8935    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936    if (exit $ac_status) && test -s "$ac_outfile"; then
8937      # The compiler can only warn and ignore the option if not recognized
8938      # So say no if there are warnings other than the usual output.
8939      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8940      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8941      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8942        lt_cv_prog_compiler_pic_works=yes
8943      fi
8944    fi
8945    $RM conftest*
8946
8947 fi
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8949 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8950
8951 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8952     case $lt_prog_compiler_pic in
8953      "" | " "*) ;;
8954      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8955      esac
8956 else
8957     lt_prog_compiler_pic=
8958      lt_prog_compiler_can_build_shared=no
8959 fi
8960
8961 fi
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973 #
8974 # Check to make sure the static flag actually works.
8975 #
8976 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8978 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8979 if ${lt_cv_prog_compiler_static_works+:} false; then :
8980   $as_echo_n "(cached) " >&6
8981 else
8982   lt_cv_prog_compiler_static_works=no
8983    save_LDFLAGS=$LDFLAGS
8984    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8985    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8986    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8987      # The linker can only warn and ignore the option if not recognized
8988      # So say no if there are warnings
8989      if test -s conftest.err; then
8990        # Append any errors to the config.log.
8991        cat conftest.err 1>&5
8992        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8993        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8994        if diff conftest.exp conftest.er2 >/dev/null; then
8995          lt_cv_prog_compiler_static_works=yes
8996        fi
8997      else
8998        lt_cv_prog_compiler_static_works=yes
8999      fi
9000    fi
9001    $RM -r conftest*
9002    LDFLAGS=$save_LDFLAGS
9003
9004 fi
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9006 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9007
9008 if test yes = "$lt_cv_prog_compiler_static_works"; then
9009     :
9010 else
9011     lt_prog_compiler_static=
9012 fi
9013
9014
9015
9016
9017
9018
9019
9020   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9021 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9022 if ${lt_cv_prog_compiler_c_o+:} false; then :
9023   $as_echo_n "(cached) " >&6
9024 else
9025   lt_cv_prog_compiler_c_o=no
9026    $RM -r conftest 2>/dev/null
9027    mkdir conftest
9028    cd conftest
9029    mkdir out
9030    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9031
9032    lt_compiler_flag="-o out/conftest2.$ac_objext"
9033    # Insert the option either (1) after the last *FLAGS variable, or
9034    # (2) before a word containing "conftest.", or (3) at the end.
9035    # Note that $ac_compile itself does not contain backslashes and begins
9036    # with a dollar sign (not a hyphen), so the echo should work correctly.
9037    lt_compile=`echo "$ac_compile" | $SED \
9038    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9039    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9040    -e 's:$: $lt_compiler_flag:'`
9041    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9042    (eval "$lt_compile" 2>out/conftest.err)
9043    ac_status=$?
9044    cat out/conftest.err >&5
9045    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9046    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9047    then
9048      # The compiler can only warn and ignore the option if not recognized
9049      # So say no if there are warnings
9050      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9051      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9052      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9053        lt_cv_prog_compiler_c_o=yes
9054      fi
9055    fi
9056    chmod u+w . 2>&5
9057    $RM conftest*
9058    # SGI C++ compiler will create directory out/ii_files/ for
9059    # template instantiation
9060    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9061    $RM out/* && rmdir out
9062    cd ..
9063    $RM -r conftest
9064    $RM conftest*
9065
9066 fi
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9068 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9069
9070
9071
9072
9073
9074
9075   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9076 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9077 if ${lt_cv_prog_compiler_c_o+:} false; then :
9078   $as_echo_n "(cached) " >&6
9079 else
9080   lt_cv_prog_compiler_c_o=no
9081    $RM -r conftest 2>/dev/null
9082    mkdir conftest
9083    cd conftest
9084    mkdir out
9085    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9086
9087    lt_compiler_flag="-o out/conftest2.$ac_objext"
9088    # Insert the option either (1) after the last *FLAGS variable, or
9089    # (2) before a word containing "conftest.", or (3) at the end.
9090    # Note that $ac_compile itself does not contain backslashes and begins
9091    # with a dollar sign (not a hyphen), so the echo should work correctly.
9092    lt_compile=`echo "$ac_compile" | $SED \
9093    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9094    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9095    -e 's:$: $lt_compiler_flag:'`
9096    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9097    (eval "$lt_compile" 2>out/conftest.err)
9098    ac_status=$?
9099    cat out/conftest.err >&5
9100    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9102    then
9103      # The compiler can only warn and ignore the option if not recognized
9104      # So say no if there are warnings
9105      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9106      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9107      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9108        lt_cv_prog_compiler_c_o=yes
9109      fi
9110    fi
9111    chmod u+w . 2>&5
9112    $RM conftest*
9113    # SGI C++ compiler will create directory out/ii_files/ for
9114    # template instantiation
9115    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9116    $RM out/* && rmdir out
9117    cd ..
9118    $RM -r conftest
9119    $RM conftest*
9120
9121 fi
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9123 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9124
9125
9126
9127
9128 hard_links=nottested
9129 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9130   # do not overwrite the value of need_locks provided by the user
9131   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9132 $as_echo_n "checking if we can lock with hard links... " >&6; }
9133   hard_links=yes
9134   $RM conftest*
9135   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9136   touch conftest.a
9137   ln conftest.a conftest.b 2>&5 || hard_links=no
9138   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9140 $as_echo "$hard_links" >&6; }
9141   if test no = "$hard_links"; then
9142     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9143 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9144     need_locks=warn
9145   fi
9146 else
9147   need_locks=no
9148 fi
9149
9150
9151
9152
9153
9154
9155   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9156 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9157
9158   runpath_var=
9159   allow_undefined_flag=
9160   always_export_symbols=no
9161   archive_cmds=
9162   archive_expsym_cmds=
9163   compiler_needs_object=no
9164   enable_shared_with_static_runtimes=no
9165   export_dynamic_flag_spec=
9166   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9167   hardcode_automatic=no
9168   hardcode_direct=no
9169   hardcode_direct_absolute=no
9170   hardcode_libdir_flag_spec=
9171   hardcode_libdir_separator=
9172   hardcode_minus_L=no
9173   hardcode_shlibpath_var=unsupported
9174   inherit_rpath=no
9175   link_all_deplibs=unknown
9176   module_cmds=
9177   module_expsym_cmds=
9178   old_archive_from_new_cmds=
9179   old_archive_from_expsyms_cmds=
9180   thread_safe_flag_spec=
9181   whole_archive_flag_spec=
9182   # include_expsyms should be a list of space-separated symbols to be *always*
9183   # included in the symbol list
9184   include_expsyms=
9185   # exclude_expsyms can be an extended regexp of symbols to exclude
9186   # it will be wrapped by ' (' and ')$', so one must not match beginning or
9187   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9188   # as well as any symbol that contains 'd'.
9189   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9190   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9191   # platforms (ab)use it in PIC code, but their linkers get confused if
9192   # the symbol is explicitly referenced.  Since portable code cannot
9193   # rely on this symbol name, it's probably fine to never include it in
9194   # preloaded symbol tables.
9195   # Exclude shared library initialization/finalization symbols.
9196   extract_expsyms_cmds=
9197
9198   case $host_os in
9199   cygwin* | mingw* | pw32* | cegcc*)
9200     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9201     # When not using gcc, we currently assume that we are using
9202     # Microsoft Visual C++.
9203     if test yes != "$GCC"; then
9204       with_gnu_ld=no
9205     fi
9206     ;;
9207   interix*)
9208     # we just hope/assume this is gcc and not c89 (= MSVC++)
9209     with_gnu_ld=yes
9210     ;;
9211   openbsd* | bitrig*)
9212     with_gnu_ld=no
9213     ;;
9214   linux* | k*bsd*-gnu | gnu*)
9215     link_all_deplibs=no
9216     ;;
9217   esac
9218
9219   ld_shlibs=yes
9220
9221   # On some targets, GNU ld is compatible enough with the native linker
9222   # that we're better off using the native interface for both.
9223   lt_use_gnu_ld_interface=no
9224   if test yes = "$with_gnu_ld"; then
9225     case $host_os in
9226       aix*)
9227         # The AIX port of GNU ld has always aspired to compatibility
9228         # with the native linker.  However, as the warning in the GNU ld
9229         # block says, versions before 2.19.5* couldn't really create working
9230         # shared libraries, regardless of the interface used.
9231         case `$LD -v 2>&1` in
9232           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9233           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9234           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9235           *)
9236             lt_use_gnu_ld_interface=yes
9237             ;;
9238         esac
9239         ;;
9240       *)
9241         lt_use_gnu_ld_interface=yes
9242         ;;
9243     esac
9244   fi
9245
9246   if test yes = "$lt_use_gnu_ld_interface"; then
9247     # If archive_cmds runs LD, not CC, wlarc should be empty
9248     wlarc='$wl'
9249
9250     # Set some defaults for GNU ld with shared library support. These
9251     # are reset later if shared libraries are not supported. Putting them
9252     # here allows them to be overridden if necessary.
9253     runpath_var=LD_RUN_PATH
9254     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9255     export_dynamic_flag_spec='$wl--export-dynamic'
9256     # ancient GNU ld didn't support --whole-archive et. al.
9257     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9258       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9259     else
9260       whole_archive_flag_spec=
9261     fi
9262     supports_anon_versioning=no
9263     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9264       *GNU\ gold*) supports_anon_versioning=yes ;;
9265       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9266       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9267       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9268       *\ 2.11.*) ;; # other 2.11 versions
9269       *) supports_anon_versioning=yes ;;
9270     esac
9271
9272     # See if GNU ld supports shared libraries.
9273     case $host_os in
9274     aix[3-9]*)
9275       # On AIX/PPC, the GNU linker is very broken
9276       if test ia64 != "$host_cpu"; then
9277         ld_shlibs=no
9278         cat <<_LT_EOF 1>&2
9279
9280 *** Warning: the GNU linker, at least up to release 2.19, is reported
9281 *** to be unable to reliably create shared libraries on AIX.
9282 *** Therefore, libtool is disabling shared libraries support.  If you
9283 *** really care for shared libraries, you may want to install binutils
9284 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9285 *** You will then need to restart the configuration process.
9286
9287 _LT_EOF
9288       fi
9289       ;;
9290
9291     amigaos*)
9292       case $host_cpu in
9293       powerpc)
9294             # see comment about AmigaOS4 .so support
9295             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9296             archive_expsym_cmds=''
9297         ;;
9298       m68k)
9299             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)'
9300             hardcode_libdir_flag_spec='-L$libdir'
9301             hardcode_minus_L=yes
9302         ;;
9303       esac
9304       ;;
9305
9306     beos*)
9307       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9308         allow_undefined_flag=unsupported
9309         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9310         # support --undefined.  This deserves some investigation.  FIXME
9311         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9312       else
9313         ld_shlibs=no
9314       fi
9315       ;;
9316
9317     cygwin* | mingw* | pw32* | cegcc*)
9318       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9319       # as there is no search path for DLLs.
9320       hardcode_libdir_flag_spec='-L$libdir'
9321       export_dynamic_flag_spec='$wl--export-all-symbols'
9322       allow_undefined_flag=unsupported
9323       always_export_symbols=no
9324       enable_shared_with_static_runtimes=yes
9325       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'
9326       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9327
9328       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9329         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9330         # If the export-symbols file already is a .def file, use it as
9331         # is; otherwise, prepend EXPORTS...
9332         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9333           cp $export_symbols $output_objdir/$soname.def;
9334         else
9335           echo EXPORTS > $output_objdir/$soname.def;
9336           cat $export_symbols >> $output_objdir/$soname.def;
9337         fi~
9338         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9339       else
9340         ld_shlibs=no
9341       fi
9342       ;;
9343
9344     haiku*)
9345       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9346       link_all_deplibs=yes
9347       ;;
9348
9349     os2*)
9350       hardcode_libdir_flag_spec='-L$libdir'
9351       hardcode_minus_L=yes
9352       allow_undefined_flag=unsupported
9353       shrext_cmds=.dll
9354       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9355         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9356         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9357         $ECHO EXPORTS >> $output_objdir/$libname.def~
9358         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9359         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9360         emximp -o $lib $output_objdir/$libname.def'
9361       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9362         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9363         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9364         $ECHO EXPORTS >> $output_objdir/$libname.def~
9365         prefix_cmds="$SED"~
9366         if test EXPORTS = "`$SED 1q $export_symbols`"; then
9367           prefix_cmds="$prefix_cmds -e 1d";
9368         fi~
9369         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9370         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9371         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9372         emximp -o $lib $output_objdir/$libname.def'
9373       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9374       enable_shared_with_static_runtimes=yes
9375       ;;
9376
9377     interix[3-9]*)
9378       hardcode_direct=no
9379       hardcode_shlibpath_var=no
9380       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9381       export_dynamic_flag_spec='$wl-E'
9382       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9383       # Instead, shared libraries are loaded at an image base (0x10000000 by
9384       # default) and relocated if they conflict, which is a slow very memory
9385       # consuming and fragmenting process.  To avoid this, we pick a random,
9386       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9387       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9388       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9389       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'
9390       ;;
9391
9392     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9393       tmp_diet=no
9394       if test linux-dietlibc = "$host_os"; then
9395         case $cc_basename in
9396           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9397         esac
9398       fi
9399       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9400          && test no = "$tmp_diet"
9401       then
9402         tmp_addflag=' $pic_flag'
9403         tmp_sharedflag='-shared'
9404         case $cc_basename,$host_cpu in
9405         pgcc*)                          # Portland Group C compiler
9406           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'
9407           tmp_addflag=' $pic_flag'
9408           ;;
9409         pgf77* | pgf90* | pgf95* | pgfortran*)
9410                                         # Portland Group f77 and f90 compilers
9411           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'
9412           tmp_addflag=' $pic_flag -Mnomain' ;;
9413         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9414           tmp_addflag=' -i_dynamic' ;;
9415         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9416           tmp_addflag=' -i_dynamic -nofor_main' ;;
9417         ifc* | ifort*)                  # Intel Fortran compiler
9418           tmp_addflag=' -nofor_main' ;;
9419         lf95*)                          # Lahey Fortran 8.1
9420           whole_archive_flag_spec=
9421           tmp_sharedflag='--shared' ;;
9422         nagfor*)                        # NAGFOR 5.3
9423           tmp_sharedflag='-Wl,-shared' ;;
9424         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9425           tmp_sharedflag='-qmkshrobj'
9426           tmp_addflag= ;;
9427         nvcc*)  # Cuda Compiler Driver 2.2
9428           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'
9429           compiler_needs_object=yes
9430           ;;
9431         esac
9432         case `$CC -V 2>&1 | sed 5q` in
9433         *Sun\ C*)                       # Sun C 5.9
9434           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'
9435           compiler_needs_object=yes
9436           tmp_sharedflag='-G' ;;
9437         *Sun\ F*)                       # Sun Fortran 8.3
9438           tmp_sharedflag='-G' ;;
9439         esac
9440         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9441
9442         if test yes = "$supports_anon_versioning"; then
9443           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9444             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9445             echo "local: *; };" >> $output_objdir/$libname.ver~
9446             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9447         fi
9448
9449         case $cc_basename in
9450         tcc*)
9451           export_dynamic_flag_spec='-rdynamic'
9452           ;;
9453         xlf* | bgf* | bgxlf* | mpixlf*)
9454           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9455           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9456           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9457           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9458           if test yes = "$supports_anon_versioning"; then
9459             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9460               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9461               echo "local: *; };" >> $output_objdir/$libname.ver~
9462               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9463           fi
9464           ;;
9465         esac
9466       else
9467         ld_shlibs=no
9468       fi
9469       ;;
9470
9471     netbsd* | netbsdelf*-gnu)
9472       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9473         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9474         wlarc=
9475       else
9476         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9477         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9478       fi
9479       ;;
9480
9481     solaris*)
9482       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9483         ld_shlibs=no
9484         cat <<_LT_EOF 1>&2
9485
9486 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9487 *** create shared libraries on Solaris systems.  Therefore, libtool
9488 *** is disabling shared libraries support.  We urge you to upgrade GNU
9489 *** binutils to release 2.9.1 or newer.  Another option is to modify
9490 *** your PATH or compiler configuration so that the native linker is
9491 *** used, and then restart.
9492
9493 _LT_EOF
9494       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9495         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9496         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9497       else
9498         ld_shlibs=no
9499       fi
9500       ;;
9501
9502     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9503       case `$LD -v 2>&1` in
9504         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9505         ld_shlibs=no
9506         cat <<_LT_EOF 1>&2
9507
9508 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9509 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9510 *** is disabling shared libraries support.  We urge you to upgrade GNU
9511 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9512 *** your PATH or compiler configuration so that the native linker is
9513 *** used, and then restart.
9514
9515 _LT_EOF
9516         ;;
9517         *)
9518           # For security reasons, it is highly recommended that you always
9519           # use absolute paths for naming shared libraries, and exclude the
9520           # DT_RUNPATH tag from executables and libraries.  But doing so
9521           # requires that you compile everything twice, which is a pain.
9522           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9523             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9524             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9525             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9526           else
9527             ld_shlibs=no
9528           fi
9529         ;;
9530       esac
9531       ;;
9532
9533     sunos4*)
9534       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9535       wlarc=
9536       hardcode_direct=yes
9537       hardcode_shlibpath_var=no
9538       ;;
9539
9540     *)
9541       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9542         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9543         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9544       else
9545         ld_shlibs=no
9546       fi
9547       ;;
9548     esac
9549
9550     if test no = "$ld_shlibs"; then
9551       runpath_var=
9552       hardcode_libdir_flag_spec=
9553       export_dynamic_flag_spec=
9554       whole_archive_flag_spec=
9555     fi
9556   else
9557     # PORTME fill in a description of your system's linker (not GNU ld)
9558     case $host_os in
9559     aix3*)
9560       allow_undefined_flag=unsupported
9561       always_export_symbols=yes
9562       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'
9563       # Note: this linker hardcodes the directories in LIBPATH if there
9564       # are no directories specified by -L.
9565       hardcode_minus_L=yes
9566       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9567         # Neither direct hardcoding nor static linking is supported with a
9568         # broken collect2.
9569         hardcode_direct=unsupported
9570       fi
9571       ;;
9572
9573     aix[4-9]*)
9574       if test ia64 = "$host_cpu"; then
9575         # On IA64, the linker does run time linking by default, so we don't
9576         # have to do anything special.
9577         aix_use_runtimelinking=no
9578         exp_sym_flag='-Bexport'
9579         no_entry_flag=
9580       else
9581         # If we're using GNU nm, then we don't want the "-C" option.
9582         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9583         # Without the "-l" option, or with the "-B" option, AIX nm treats
9584         # weak defined symbols like other global defined symbols, whereas
9585         # GNU nm marks them as "W".
9586         # While the 'weak' keyword is ignored in the Export File, we need
9587         # it in the Import File for the 'aix-soname' feature, so we have
9588         # to replace the "-B" option with "-P" for AIX nm.
9589         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9590           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'
9591         else
9592           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'
9593         fi
9594         aix_use_runtimelinking=no
9595
9596         # Test if we are trying to use run time linking or normal
9597         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9598         # have runtime linking enabled, and use it for executables.
9599         # For shared libraries, we enable/disable runtime linking
9600         # depending on the kind of the shared library created -
9601         # when "with_aix_soname,aix_use_runtimelinking" is:
9602         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9603         # "aix,yes"  lib.so          shared, rtl:yes, for executables
9604         #            lib.a           static archive
9605         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
9606         #            lib.a(lib.so.V) shared, rtl:no,  for executables
9607         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9608         #            lib.a(lib.so.V) shared, rtl:no
9609         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9610         #            lib.a           static archive
9611         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9612           for ld_flag in $LDFLAGS; do
9613           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9614             aix_use_runtimelinking=yes
9615             break
9616           fi
9617           done
9618           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9619             # With aix-soname=svr4, we create the lib.so.V shared archives only,
9620             # so we don't have lib.a shared libs to link our executables.
9621             # We have to force runtime linking in this case.
9622             aix_use_runtimelinking=yes
9623             LDFLAGS="$LDFLAGS -Wl,-brtl"
9624           fi
9625           ;;
9626         esac
9627
9628         exp_sym_flag='-bexport'
9629         no_entry_flag='-bnoentry'
9630       fi
9631
9632       # When large executables or shared objects are built, AIX ld can
9633       # have problems creating the table of contents.  If linking a library
9634       # or program results in "error TOC overflow" add -mminimal-toc to
9635       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9636       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9637
9638       archive_cmds=''
9639       hardcode_direct=yes
9640       hardcode_direct_absolute=yes
9641       hardcode_libdir_separator=':'
9642       link_all_deplibs=yes
9643       file_list_spec='$wl-f,'
9644       case $with_aix_soname,$aix_use_runtimelinking in
9645       aix,*) ;; # traditional, no import file
9646       svr4,* | *,yes) # use import file
9647         # The Import File defines what to hardcode.
9648         hardcode_direct=no
9649         hardcode_direct_absolute=no
9650         ;;
9651       esac
9652
9653       if test yes = "$GCC"; then
9654         case $host_os in aix4.[012]|aix4.[012].*)
9655         # We only want to do this on AIX 4.2 and lower, the check
9656         # below for broken collect2 doesn't work under 4.3+
9657           collect2name=`$CC -print-prog-name=collect2`
9658           if test -f "$collect2name" &&
9659            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9660           then
9661           # We have reworked collect2
9662           :
9663           else
9664           # We have old collect2
9665           hardcode_direct=unsupported
9666           # It fails to find uninstalled libraries when the uninstalled
9667           # path is not listed in the libpath.  Setting hardcode_minus_L
9668           # to unsupported forces relinking
9669           hardcode_minus_L=yes
9670           hardcode_libdir_flag_spec='-L$libdir'
9671           hardcode_libdir_separator=
9672           fi
9673           ;;
9674         esac
9675         shared_flag='-shared'
9676         if test yes = "$aix_use_runtimelinking"; then
9677           shared_flag="$shared_flag "'$wl-G'
9678         fi
9679         # Need to ensure runtime linking is disabled for the traditional
9680         # shared library, or the linker may eventually find shared libraries
9681         # /with/ Import File - we do not want to mix them.
9682         shared_flag_aix='-shared'
9683         shared_flag_svr4='-shared $wl-G'
9684       else
9685         # not using gcc
9686         if test ia64 = "$host_cpu"; then
9687         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9688         # chokes on -Wl,-G. The following line is correct:
9689           shared_flag='-G'
9690         else
9691           if test yes = "$aix_use_runtimelinking"; then
9692             shared_flag='$wl-G'
9693           else
9694             shared_flag='$wl-bM:SRE'
9695           fi
9696           shared_flag_aix='$wl-bM:SRE'
9697           shared_flag_svr4='$wl-G'
9698         fi
9699       fi
9700
9701       export_dynamic_flag_spec='$wl-bexpall'
9702       # It seems that -bexpall does not export symbols beginning with
9703       # underscore (_), so it is better to generate a list of symbols to export.
9704       always_export_symbols=yes
9705       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9706         # Warning - without using the other runtime loading flags (-brtl),
9707         # -berok will link without error, but may produce a broken library.
9708         allow_undefined_flag='-berok'
9709         # Determine the default libpath from the value encoded in an
9710         # empty executable.
9711         if test set = "${lt_cv_aix_libpath+set}"; then
9712   aix_libpath=$lt_cv_aix_libpath
9713 else
9714   if ${lt_cv_aix_libpath_+:} false; then :
9715   $as_echo_n "(cached) " >&6
9716 else
9717   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9718 /* end confdefs.h.  */
9719
9720 int
9721 main ()
9722 {
9723
9724   ;
9725   return 0;
9726 }
9727 _ACEOF
9728 if ac_fn_c_try_link "$LINENO"; then :
9729
9730   lt_aix_libpath_sed='
9731       /Import File Strings/,/^$/ {
9732           /^0/ {
9733               s/^0  *\([^ ]*\) *$/\1/
9734               p
9735           }
9736       }'
9737   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9738   # Check for a 64-bit object if we didn't find anything.
9739   if test -z "$lt_cv_aix_libpath_"; then
9740     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9741   fi
9742 fi
9743 rm -f core conftest.err conftest.$ac_objext \
9744     conftest$ac_exeext conftest.$ac_ext
9745   if test -z "$lt_cv_aix_libpath_"; then
9746     lt_cv_aix_libpath_=/usr/lib:/lib
9747   fi
9748
9749 fi
9750
9751   aix_libpath=$lt_cv_aix_libpath_
9752 fi
9753
9754         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9755         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
9756       else
9757         if test ia64 = "$host_cpu"; then
9758           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9759           allow_undefined_flag="-z nodefs"
9760           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"
9761         else
9762          # Determine the default libpath from the value encoded in an
9763          # empty executable.
9764          if test set = "${lt_cv_aix_libpath+set}"; then
9765   aix_libpath=$lt_cv_aix_libpath
9766 else
9767   if ${lt_cv_aix_libpath_+:} false; then :
9768   $as_echo_n "(cached) " >&6
9769 else
9770   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9771 /* end confdefs.h.  */
9772
9773 int
9774 main ()
9775 {
9776
9777   ;
9778   return 0;
9779 }
9780 _ACEOF
9781 if ac_fn_c_try_link "$LINENO"; then :
9782
9783   lt_aix_libpath_sed='
9784       /Import File Strings/,/^$/ {
9785           /^0/ {
9786               s/^0  *\([^ ]*\) *$/\1/
9787               p
9788           }
9789       }'
9790   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9791   # Check for a 64-bit object if we didn't find anything.
9792   if test -z "$lt_cv_aix_libpath_"; then
9793     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9794   fi
9795 fi
9796 rm -f core conftest.err conftest.$ac_objext \
9797     conftest$ac_exeext conftest.$ac_ext
9798   if test -z "$lt_cv_aix_libpath_"; then
9799     lt_cv_aix_libpath_=/usr/lib:/lib
9800   fi
9801
9802 fi
9803
9804   aix_libpath=$lt_cv_aix_libpath_
9805 fi
9806
9807          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9808           # Warning - without using the other run time loading flags,
9809           # -berok will link without error, but may produce a broken library.
9810           no_undefined_flag=' $wl-bernotok'
9811           allow_undefined_flag=' $wl-berok'
9812           if test yes = "$with_gnu_ld"; then
9813             # We only use this code for GNU lds that support --whole-archive.
9814             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9815           else
9816             # Exported symbols can be pulled into shared objects from archives
9817             whole_archive_flag_spec='$convenience'
9818           fi
9819           archive_cmds_need_lc=yes
9820           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9821           # -brtl affects multiple linker settings, -berok does not and is overridden later
9822           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9823           if test svr4 != "$with_aix_soname"; then
9824             # This is similar to how AIX traditionally builds its shared libraries.
9825             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'
9826           fi
9827           if test aix != "$with_aix_soname"; then
9828             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'
9829           else
9830             # used by -dlpreopen to get the symbols
9831             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9832           fi
9833           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9834         fi
9835       fi
9836       ;;
9837
9838     amigaos*)
9839       case $host_cpu in
9840       powerpc)
9841             # see comment about AmigaOS4 .so support
9842             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9843             archive_expsym_cmds=''
9844         ;;
9845       m68k)
9846             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)'
9847             hardcode_libdir_flag_spec='-L$libdir'
9848             hardcode_minus_L=yes
9849         ;;
9850       esac
9851       ;;
9852
9853     bsdi[45]*)
9854       export_dynamic_flag_spec=-rdynamic
9855       ;;
9856
9857     cygwin* | mingw* | pw32* | cegcc*)
9858       # When not using gcc, we currently assume that we are using
9859       # Microsoft Visual C++.
9860       # hardcode_libdir_flag_spec is actually meaningless, as there is
9861       # no search path for DLLs.
9862       case $cc_basename in
9863       cl*)
9864         # Native MSVC
9865         hardcode_libdir_flag_spec=' '
9866         allow_undefined_flag=unsupported
9867         always_export_symbols=yes
9868         file_list_spec='@'
9869         # Tell ltmain to make .lib files, not .a files.
9870         libext=lib
9871         # Tell ltmain to make .dll files, not .so files.
9872         shrext_cmds=.dll
9873         # FIXME: Setting linknames here is a bad hack.
9874         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9875         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9876             cp "$export_symbols" "$output_objdir/$soname.def";
9877             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9878           else
9879             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9880           fi~
9881           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9882           linknames='
9883         # The linker will not automatically build a static lib if we build a DLL.
9884         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9885         enable_shared_with_static_runtimes=yes
9886         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9887         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9888         # Don't use ranlib
9889         old_postinstall_cmds='chmod 644 $oldlib'
9890         postlink_cmds='lt_outputfile="@OUTPUT@"~
9891           lt_tool_outputfile="@TOOL_OUTPUT@"~
9892           case $lt_outputfile in
9893             *.exe|*.EXE) ;;
9894             *)
9895               lt_outputfile=$lt_outputfile.exe
9896               lt_tool_outputfile=$lt_tool_outputfile.exe
9897               ;;
9898           esac~
9899           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9900             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9901             $RM "$lt_outputfile.manifest";
9902           fi'
9903         ;;
9904       *)
9905         # Assume MSVC wrapper
9906         hardcode_libdir_flag_spec=' '
9907         allow_undefined_flag=unsupported
9908         # Tell ltmain to make .lib files, not .a files.
9909         libext=lib
9910         # Tell ltmain to make .dll files, not .so files.
9911         shrext_cmds=.dll
9912         # FIXME: Setting linknames here is a bad hack.
9913         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9914         # The linker will automatically build a .lib file if we build a DLL.
9915         old_archive_from_new_cmds='true'
9916         # FIXME: Should let the user specify the lib program.
9917         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9918         enable_shared_with_static_runtimes=yes
9919         ;;
9920       esac
9921       ;;
9922
9923     darwin* | rhapsody*)
9924
9925
9926   archive_cmds_need_lc=no
9927   hardcode_direct=no
9928   hardcode_automatic=yes
9929   hardcode_shlibpath_var=unsupported
9930   if test yes = "$lt_cv_ld_force_load"; then
9931     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\"`'
9932
9933   else
9934     whole_archive_flag_spec=''
9935   fi
9936   link_all_deplibs=yes
9937   allow_undefined_flag=$_lt_dar_allow_undefined
9938   case $cc_basename in
9939      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9940      *) _lt_dar_can_shared=$GCC ;;
9941   esac
9942   if test yes = "$_lt_dar_can_shared"; then
9943     output_verbose_link_cmd=func_echo_all
9944     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9945     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9946     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"
9947     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"
9948
9949   else
9950   ld_shlibs=no
9951   fi
9952
9953       ;;
9954
9955     dgux*)
9956       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9957       hardcode_libdir_flag_spec='-L$libdir'
9958       hardcode_shlibpath_var=no
9959       ;;
9960
9961     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9962     # support.  Future versions do this automatically, but an explicit c++rt0.o
9963     # does not break anything, and helps significantly (at the cost of a little
9964     # extra space).
9965     freebsd2.2*)
9966       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9967       hardcode_libdir_flag_spec='-R$libdir'
9968       hardcode_direct=yes
9969       hardcode_shlibpath_var=no
9970       ;;
9971
9972     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9973     freebsd2.*)
9974       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9975       hardcode_direct=yes
9976       hardcode_minus_L=yes
9977       hardcode_shlibpath_var=no
9978       ;;
9979
9980     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9981     freebsd* | dragonfly*)
9982       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9983       hardcode_libdir_flag_spec='-R$libdir'
9984       hardcode_direct=yes
9985       hardcode_shlibpath_var=no
9986       ;;
9987
9988     hpux9*)
9989       if test yes = "$GCC"; then
9990         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'
9991       else
9992         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'
9993       fi
9994       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9995       hardcode_libdir_separator=:
9996       hardcode_direct=yes
9997
9998       # hardcode_minus_L: Not really in the search PATH,
9999       # but as the default location of the library.
10000       hardcode_minus_L=yes
10001       export_dynamic_flag_spec='$wl-E'
10002       ;;
10003
10004     hpux10*)
10005       if test yes,no = "$GCC,$with_gnu_ld"; then
10006         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10007       else
10008         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10009       fi
10010       if test no = "$with_gnu_ld"; then
10011         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10012         hardcode_libdir_separator=:
10013         hardcode_direct=yes
10014         hardcode_direct_absolute=yes
10015         export_dynamic_flag_spec='$wl-E'
10016         # hardcode_minus_L: Not really in the search PATH,
10017         # but as the default location of the library.
10018         hardcode_minus_L=yes
10019       fi
10020       ;;
10021
10022     hpux11*)
10023       if test yes,no = "$GCC,$with_gnu_ld"; then
10024         case $host_cpu in
10025         hppa*64*)
10026           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10027           ;;
10028         ia64*)
10029           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10030           ;;
10031         *)
10032           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10033           ;;
10034         esac
10035       else
10036         case $host_cpu in
10037         hppa*64*)
10038           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10039           ;;
10040         ia64*)
10041           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10042           ;;
10043         *)
10044
10045           # Older versions of the 11.00 compiler do not understand -b yet
10046           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10047           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10048 $as_echo_n "checking if $CC understands -b... " >&6; }
10049 if ${lt_cv_prog_compiler__b+:} false; then :
10050   $as_echo_n "(cached) " >&6
10051 else
10052   lt_cv_prog_compiler__b=no
10053    save_LDFLAGS=$LDFLAGS
10054    LDFLAGS="$LDFLAGS -b"
10055    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10056    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10057      # The linker can only warn and ignore the option if not recognized
10058      # So say no if there are warnings
10059      if test -s conftest.err; then
10060        # Append any errors to the config.log.
10061        cat conftest.err 1>&5
10062        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10063        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10064        if diff conftest.exp conftest.er2 >/dev/null; then
10065          lt_cv_prog_compiler__b=yes
10066        fi
10067      else
10068        lt_cv_prog_compiler__b=yes
10069      fi
10070    fi
10071    $RM -r conftest*
10072    LDFLAGS=$save_LDFLAGS
10073
10074 fi
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10076 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10077
10078 if test yes = "$lt_cv_prog_compiler__b"; then
10079     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10080 else
10081     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10082 fi
10083
10084           ;;
10085         esac
10086       fi
10087       if test no = "$with_gnu_ld"; then
10088         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10089         hardcode_libdir_separator=:
10090
10091         case $host_cpu in
10092         hppa*64*|ia64*)
10093           hardcode_direct=no
10094           hardcode_shlibpath_var=no
10095           ;;
10096         *)
10097           hardcode_direct=yes
10098           hardcode_direct_absolute=yes
10099           export_dynamic_flag_spec='$wl-E'
10100
10101           # hardcode_minus_L: Not really in the search PATH,
10102           # but as the default location of the library.
10103           hardcode_minus_L=yes
10104           ;;
10105         esac
10106       fi
10107       ;;
10108
10109     irix5* | irix6* | nonstopux*)
10110       if test yes = "$GCC"; then
10111         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'
10112         # Try to use the -exported_symbol ld option, if it does not
10113         # work, assume that -exports_file does not work either and
10114         # implicitly export all symbols.
10115         # This should be the same for all languages, so no per-tag cache variable.
10116         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10117 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10118 if ${lt_cv_irix_exported_symbol+:} false; then :
10119   $as_echo_n "(cached) " >&6
10120 else
10121   save_LDFLAGS=$LDFLAGS
10122            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10123            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10124 /* end confdefs.h.  */
10125 int foo (void) { return 0; }
10126 _ACEOF
10127 if ac_fn_c_try_link "$LINENO"; then :
10128   lt_cv_irix_exported_symbol=yes
10129 else
10130   lt_cv_irix_exported_symbol=no
10131 fi
10132 rm -f core conftest.err conftest.$ac_objext \
10133     conftest$ac_exeext conftest.$ac_ext
10134            LDFLAGS=$save_LDFLAGS
10135 fi
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10137 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10138         if test yes = "$lt_cv_irix_exported_symbol"; then
10139           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'
10140         fi
10141         link_all_deplibs=no
10142       else
10143         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'
10144         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'
10145       fi
10146       archive_cmds_need_lc='no'
10147       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10148       hardcode_libdir_separator=:
10149       inherit_rpath=yes
10150       link_all_deplibs=yes
10151       ;;
10152
10153     linux*)
10154       case $cc_basename in
10155       tcc*)
10156         # Fabrice Bellard et al's Tiny C Compiler
10157         ld_shlibs=yes
10158         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10159         ;;
10160       esac
10161       ;;
10162
10163     netbsd* | netbsdelf*-gnu)
10164       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10165         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10166       else
10167         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10168       fi
10169       hardcode_libdir_flag_spec='-R$libdir'
10170       hardcode_direct=yes
10171       hardcode_shlibpath_var=no
10172       ;;
10173
10174     newsos6)
10175       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10176       hardcode_direct=yes
10177       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10178       hardcode_libdir_separator=:
10179       hardcode_shlibpath_var=no
10180       ;;
10181
10182     *nto* | *qnx*)
10183       ;;
10184
10185     openbsd* | bitrig*)
10186       if test -f /usr/libexec/ld.so; then
10187         hardcode_direct=yes
10188         hardcode_shlibpath_var=no
10189         hardcode_direct_absolute=yes
10190         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10191           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10192           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10193           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10194           export_dynamic_flag_spec='$wl-E'
10195         else
10196           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10197           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10198         fi
10199       else
10200         ld_shlibs=no
10201       fi
10202       ;;
10203
10204     os2*)
10205       hardcode_libdir_flag_spec='-L$libdir'
10206       hardcode_minus_L=yes
10207       allow_undefined_flag=unsupported
10208       shrext_cmds=.dll
10209       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10210         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10211         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10212         $ECHO EXPORTS >> $output_objdir/$libname.def~
10213         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10214         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10215         emximp -o $lib $output_objdir/$libname.def'
10216       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10217         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10218         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10219         $ECHO EXPORTS >> $output_objdir/$libname.def~
10220         prefix_cmds="$SED"~
10221         if test EXPORTS = "`$SED 1q $export_symbols`"; then
10222           prefix_cmds="$prefix_cmds -e 1d";
10223         fi~
10224         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10225         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10226         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10227         emximp -o $lib $output_objdir/$libname.def'
10228       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10229       enable_shared_with_static_runtimes=yes
10230       ;;
10231
10232     osf3*)
10233       if test yes = "$GCC"; then
10234         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10235         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'
10236       else
10237         allow_undefined_flag=' -expect_unresolved \*'
10238         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'
10239       fi
10240       archive_cmds_need_lc='no'
10241       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10242       hardcode_libdir_separator=:
10243       ;;
10244
10245     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10246       if test yes = "$GCC"; then
10247         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10248         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'
10249         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10250       else
10251         allow_undefined_flag=' -expect_unresolved \*'
10252         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'
10253         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~
10254           $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'
10255
10256         # Both c and cxx compiler support -rpath directly
10257         hardcode_libdir_flag_spec='-rpath $libdir'
10258       fi
10259       archive_cmds_need_lc='no'
10260       hardcode_libdir_separator=:
10261       ;;
10262
10263     solaris*)
10264       no_undefined_flag=' -z defs'
10265       if test yes = "$GCC"; then
10266         wlarc='$wl'
10267         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10268         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10269           $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'
10270       else
10271         case `$CC -V 2>&1` in
10272         *"Compilers 5.0"*)
10273           wlarc=''
10274           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10275           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10276             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10277           ;;
10278         *)
10279           wlarc='$wl'
10280           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10281           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10282             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10283           ;;
10284         esac
10285       fi
10286       hardcode_libdir_flag_spec='-R$libdir'
10287       hardcode_shlibpath_var=no
10288       case $host_os in
10289       solaris2.[0-5] | solaris2.[0-5].*) ;;
10290       *)
10291         # The compiler driver will combine and reorder linker options,
10292         # but understands '-z linker_flag'.  GCC discards it without '$wl',
10293         # but is careful enough not to reorder.
10294         # Supported since Solaris 2.6 (maybe 2.5.1?)
10295         if test yes = "$GCC"; then
10296           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10297         else
10298           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10299         fi
10300         ;;
10301       esac
10302       link_all_deplibs=yes
10303       ;;
10304
10305     sunos4*)
10306       if test sequent = "$host_vendor"; then
10307         # Use $CC to link under sequent, because it throws in some extra .o
10308         # files that make .init and .fini sections work.
10309         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10310       else
10311         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10312       fi
10313       hardcode_libdir_flag_spec='-L$libdir'
10314       hardcode_direct=yes
10315       hardcode_minus_L=yes
10316       hardcode_shlibpath_var=no
10317       ;;
10318
10319     sysv4)
10320       case $host_vendor in
10321         sni)
10322           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10323           hardcode_direct=yes # is this really true???
10324         ;;
10325         siemens)
10326           ## LD is ld it makes a PLAMLIB
10327           ## CC just makes a GrossModule.
10328           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10329           reload_cmds='$CC -r -o $output$reload_objs'
10330           hardcode_direct=no
10331         ;;
10332         motorola)
10333           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10334           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10335         ;;
10336       esac
10337       runpath_var='LD_RUN_PATH'
10338       hardcode_shlibpath_var=no
10339       ;;
10340
10341     sysv4.3*)
10342       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10343       hardcode_shlibpath_var=no
10344       export_dynamic_flag_spec='-Bexport'
10345       ;;
10346
10347     sysv4*MP*)
10348       if test -d /usr/nec; then
10349         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10350         hardcode_shlibpath_var=no
10351         runpath_var=LD_RUN_PATH
10352         hardcode_runpath_var=yes
10353         ld_shlibs=yes
10354       fi
10355       ;;
10356
10357     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10358       no_undefined_flag='$wl-z,text'
10359       archive_cmds_need_lc=no
10360       hardcode_shlibpath_var=no
10361       runpath_var='LD_RUN_PATH'
10362
10363       if test yes = "$GCC"; then
10364         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10365         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10366       else
10367         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10368         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10369       fi
10370       ;;
10371
10372     sysv5* | sco3.2v5* | sco5v6*)
10373       # Note: We CANNOT use -z defs as we might desire, because we do not
10374       # link with -lc, and that would cause any symbols used from libc to
10375       # always be unresolved, which means just about no library would
10376       # ever link correctly.  If we're not using GNU ld we use -z text
10377       # though, which does catch some bad symbols but isn't as heavy-handed
10378       # as -z defs.
10379       no_undefined_flag='$wl-z,text'
10380       allow_undefined_flag='$wl-z,nodefs'
10381       archive_cmds_need_lc=no
10382       hardcode_shlibpath_var=no
10383       hardcode_libdir_flag_spec='$wl-R,$libdir'
10384       hardcode_libdir_separator=':'
10385       link_all_deplibs=yes
10386       export_dynamic_flag_spec='$wl-Bexport'
10387       runpath_var='LD_RUN_PATH'
10388
10389       if test yes = "$GCC"; then
10390         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10391         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10392       else
10393         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10394         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10395       fi
10396       ;;
10397
10398     uts4*)
10399       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10400       hardcode_libdir_flag_spec='-L$libdir'
10401       hardcode_shlibpath_var=no
10402       ;;
10403
10404     *)
10405       ld_shlibs=no
10406       ;;
10407     esac
10408
10409     if test sni = "$host_vendor"; then
10410       case $host in
10411       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10412         export_dynamic_flag_spec='$wl-Blargedynsym'
10413         ;;
10414       esac
10415     fi
10416   fi
10417
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10419 $as_echo "$ld_shlibs" >&6; }
10420 test no = "$ld_shlibs" && can_build_shared=no
10421
10422 with_gnu_ld=$with_gnu_ld
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438 #
10439 # Do we need to explicitly link libc?
10440 #
10441 case "x$archive_cmds_need_lc" in
10442 x|xyes)
10443   # Assume -lc should be added
10444   archive_cmds_need_lc=yes
10445
10446   if test yes,yes = "$GCC,$enable_shared"; then
10447     case $archive_cmds in
10448     *'~'*)
10449       # FIXME: we may have to deal with multi-command sequences.
10450       ;;
10451     '$CC '*)
10452       # Test whether the compiler implicitly links with -lc since on some
10453       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10454       # to ld, don't add -lc before -lgcc.
10455       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10456 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10457 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10458   $as_echo_n "(cached) " >&6
10459 else
10460   $RM conftest*
10461         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10462
10463         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10464   (eval $ac_compile) 2>&5
10465   ac_status=$?
10466   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10467   test $ac_status = 0; } 2>conftest.err; then
10468           soname=conftest
10469           lib=conftest
10470           libobjs=conftest.$ac_objext
10471           deplibs=
10472           wl=$lt_prog_compiler_wl
10473           pic_flag=$lt_prog_compiler_pic
10474           compiler_flags=-v
10475           linker_flags=-v
10476           verstring=
10477           output_objdir=.
10478           libname=conftest
10479           lt_save_allow_undefined_flag=$allow_undefined_flag
10480           allow_undefined_flag=
10481           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10482   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10483   ac_status=$?
10484   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10485   test $ac_status = 0; }
10486           then
10487             lt_cv_archive_cmds_need_lc=no
10488           else
10489             lt_cv_archive_cmds_need_lc=yes
10490           fi
10491           allow_undefined_flag=$lt_save_allow_undefined_flag
10492         else
10493           cat conftest.err 1>&5
10494         fi
10495         $RM conftest*
10496
10497 fi
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10499 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10500       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10501       ;;
10502     esac
10503   fi
10504   ;;
10505 esac
10506
10507
10508
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10659 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10660
10661 if test yes = "$GCC"; then
10662   case $host_os in
10663     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10664     *) lt_awk_arg='/^libraries:/' ;;
10665   esac
10666   case $host_os in
10667     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10668     *) lt_sed_strip_eq='s|=/|/|g' ;;
10669   esac
10670   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10671   case $lt_search_path_spec in
10672   *\;*)
10673     # if the path contains ";" then we assume it to be the separator
10674     # otherwise default to the standard path separator (i.e. ":") - it is
10675     # assumed that no part of a normal pathname contains ";" but that should
10676     # okay in the real world where ";" in dirpaths is itself problematic.
10677     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10678     ;;
10679   *)
10680     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10681     ;;
10682   esac
10683   # Ok, now we have the path, separated by spaces, we can step through it
10684   # and add multilib dir if necessary...
10685   lt_tmp_lt_search_path_spec=
10686   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10687   # ...but if some path component already ends with the multilib dir we assume
10688   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10689   case "$lt_multi_os_dir; $lt_search_path_spec " in
10690   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10691     lt_multi_os_dir=
10692     ;;
10693   esac
10694   for lt_sys_path in $lt_search_path_spec; do
10695     if test -d "$lt_sys_path$lt_multi_os_dir"; then
10696       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10697     elif test -n "$lt_multi_os_dir"; then
10698       test -d "$lt_sys_path" && \
10699         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10700     fi
10701   done
10702   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10703 BEGIN {RS = " "; FS = "/|\n";} {
10704   lt_foo = "";
10705   lt_count = 0;
10706   for (lt_i = NF; lt_i > 0; lt_i--) {
10707     if ($lt_i != "" && $lt_i != ".") {
10708       if ($lt_i == "..") {
10709         lt_count++;
10710       } else {
10711         if (lt_count == 0) {
10712           lt_foo = "/" $lt_i lt_foo;
10713         } else {
10714           lt_count--;
10715         }
10716       }
10717     }
10718   }
10719   if (lt_foo != "") { lt_freq[lt_foo]++; }
10720   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10721 }'`
10722   # AWK program above erroneously prepends '/' to C:/dos/paths
10723   # for these hosts.
10724   case $host_os in
10725     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10726       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10727   esac
10728   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10729 else
10730   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10731 fi
10732 library_names_spec=
10733 libname_spec='lib$name'
10734 soname_spec=
10735 shrext_cmds=.so
10736 postinstall_cmds=
10737 postuninstall_cmds=
10738 finish_cmds=
10739 finish_eval=
10740 shlibpath_var=
10741 shlibpath_overrides_runpath=unknown
10742 version_type=none
10743 dynamic_linker="$host_os ld.so"
10744 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10745 need_lib_prefix=unknown
10746 hardcode_into_libs=no
10747
10748 # when you set need_version to no, make sure it does not cause -set_version
10749 # flags to be left without arguments
10750 need_version=unknown
10751
10752
10753
10754 case $host_os in
10755 aix3*)
10756   version_type=linux # correct to gnu/linux during the next big refactor
10757   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10758   shlibpath_var=LIBPATH
10759
10760   # AIX 3 has no versioning support, so we append a major version to the name.
10761   soname_spec='$libname$release$shared_ext$major'
10762   ;;
10763
10764 aix[4-9]*)
10765   version_type=linux # correct to gnu/linux during the next big refactor
10766   need_lib_prefix=no
10767   need_version=no
10768   hardcode_into_libs=yes
10769   if test ia64 = "$host_cpu"; then
10770     # AIX 5 supports IA64
10771     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10772     shlibpath_var=LD_LIBRARY_PATH
10773   else
10774     # With GCC up to 2.95.x, collect2 would create an import file
10775     # for dependence libraries.  The import file would start with
10776     # the line '#! .'.  This would cause the generated library to
10777     # depend on '.', always an invalid library.  This was fixed in
10778     # development snapshots of GCC prior to 3.0.
10779     case $host_os in
10780       aix4 | aix4.[01] | aix4.[01].*)
10781       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10782            echo ' yes '
10783            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10784         :
10785       else
10786         can_build_shared=no
10787       fi
10788       ;;
10789     esac
10790     # Using Import Files as archive members, it is possible to support
10791     # filename-based versioning of shared library archives on AIX. While
10792     # this would work for both with and without runtime linking, it will
10793     # prevent static linking of such archives. So we do filename-based
10794     # shared library versioning with .so extension only, which is used
10795     # when both runtime linking and shared linking is enabled.
10796     # Unfortunately, runtime linking may impact performance, so we do
10797     # not want this to be the default eventually. Also, we use the
10798     # versioned .so libs for executables only if there is the -brtl
10799     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10800     # To allow for filename-based versioning support, we need to create
10801     # libNAME.so.V as an archive file, containing:
10802     # *) an Import File, referring to the versioned filename of the
10803     #    archive as well as the shared archive member, telling the
10804     #    bitwidth (32 or 64) of that shared object, and providing the
10805     #    list of exported symbols of that shared object, eventually
10806     #    decorated with the 'weak' keyword
10807     # *) the shared object with the F_LOADONLY flag set, to really avoid
10808     #    it being seen by the linker.
10809     # At run time we better use the real file rather than another symlink,
10810     # but for link time we create the symlink libNAME.so -> libNAME.so.V
10811
10812     case $with_aix_soname,$aix_use_runtimelinking in
10813     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10814     # soname into executable. Probably we can add versioning support to
10815     # collect2, so additional links can be useful in future.
10816     aix,yes) # traditional libtool
10817       dynamic_linker='AIX unversionable lib.so'
10818       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10819       # instead of lib<name>.a to let people know that these are not
10820       # typical AIX shared libraries.
10821       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10822       ;;
10823     aix,no) # traditional AIX only
10824       dynamic_linker='AIX lib.a(lib.so.V)'
10825       # We preserve .a as extension for shared libraries through AIX4.2
10826       # and later when we are not doing run time linking.
10827       library_names_spec='$libname$release.a $libname.a'
10828       soname_spec='$libname$release$shared_ext$major'
10829       ;;
10830     svr4,*) # full svr4 only
10831       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10832       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10833       # We do not specify a path in Import Files, so LIBPATH fires.
10834       shlibpath_overrides_runpath=yes
10835       ;;
10836     *,yes) # both, prefer svr4
10837       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10838       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10839       # unpreferred sharedlib libNAME.a needs extra handling
10840       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"'
10841       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"'
10842       # We do not specify a path in Import Files, so LIBPATH fires.
10843       shlibpath_overrides_runpath=yes
10844       ;;
10845     *,no) # both, prefer aix
10846       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10847       library_names_spec='$libname$release.a $libname.a'
10848       soname_spec='$libname$release$shared_ext$major'
10849       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10850       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)'
10851       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"'
10852       ;;
10853     esac
10854     shlibpath_var=LIBPATH
10855   fi
10856   ;;
10857
10858 amigaos*)
10859   case $host_cpu in
10860   powerpc)
10861     # Since July 2007 AmigaOS4 officially supports .so libraries.
10862     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10863     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10864     ;;
10865   m68k)
10866     library_names_spec='$libname.ixlibrary $libname.a'
10867     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10868     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'
10869     ;;
10870   esac
10871   ;;
10872
10873 beos*)
10874   library_names_spec='$libname$shared_ext'
10875   dynamic_linker="$host_os ld.so"
10876   shlibpath_var=LIBRARY_PATH
10877   ;;
10878
10879 bsdi[45]*)
10880   version_type=linux # correct to gnu/linux during the next big refactor
10881   need_version=no
10882   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10883   soname_spec='$libname$release$shared_ext$major'
10884   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10885   shlibpath_var=LD_LIBRARY_PATH
10886   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10887   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10888   # the default ld.so.conf also contains /usr/contrib/lib and
10889   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10890   # libtool to hard-code these into programs
10891   ;;
10892
10893 cygwin* | mingw* | pw32* | cegcc*)
10894   version_type=windows
10895   shrext_cmds=.dll
10896   need_version=no
10897   need_lib_prefix=no
10898
10899   case $GCC,$cc_basename in
10900   yes,*)
10901     # gcc
10902     library_names_spec='$libname.dll.a'
10903     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10904     postinstall_cmds='base_file=`basename \$file`~
10905       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10906       dldir=$destdir/`dirname \$dlpath`~
10907       test -d \$dldir || mkdir -p \$dldir~
10908       $install_prog $dir/$dlname \$dldir/$dlname~
10909       chmod a+x \$dldir/$dlname~
10910       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10911         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10912       fi'
10913     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10914       dlpath=$dir/\$dldll~
10915        $RM \$dlpath'
10916     shlibpath_overrides_runpath=yes
10917
10918     case $host_os in
10919     cygwin*)
10920       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10921       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10922
10923       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10924       ;;
10925     mingw* | cegcc*)
10926       # MinGW DLLs use traditional 'lib' prefix
10927       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10928       ;;
10929     pw32*)
10930       # pw32 DLLs use 'pw' prefix rather than 'lib'
10931       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10932       ;;
10933     esac
10934     dynamic_linker='Win32 ld.exe'
10935     ;;
10936
10937   *,cl*)
10938     # Native MSVC
10939     libname_spec='$name'
10940     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10941     library_names_spec='$libname.dll.lib'
10942
10943     case $build_os in
10944     mingw*)
10945       sys_lib_search_path_spec=
10946       lt_save_ifs=$IFS
10947       IFS=';'
10948       for lt_path in $LIB
10949       do
10950         IFS=$lt_save_ifs
10951         # Let DOS variable expansion print the short 8.3 style file name.
10952         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10953         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10954       done
10955       IFS=$lt_save_ifs
10956       # Convert to MSYS style.
10957       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10958       ;;
10959     cygwin*)
10960       # Convert to unix form, then to dos form, then back to unix form
10961       # but this time dos style (no spaces!) so that the unix form looks
10962       # like /cygdrive/c/PROGRA~1:/cygdr...
10963       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10964       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10965       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10966       ;;
10967     *)
10968       sys_lib_search_path_spec=$LIB
10969       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10970         # It is most probably a Windows format PATH.
10971         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10972       else
10973         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10974       fi
10975       # FIXME: find the short name or the path components, as spaces are
10976       # common. (e.g. "Program Files" -> "PROGRA~1")
10977       ;;
10978     esac
10979
10980     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10981     postinstall_cmds='base_file=`basename \$file`~
10982       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10983       dldir=$destdir/`dirname \$dlpath`~
10984       test -d \$dldir || mkdir -p \$dldir~
10985       $install_prog $dir/$dlname \$dldir/$dlname'
10986     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10987       dlpath=$dir/\$dldll~
10988        $RM \$dlpath'
10989     shlibpath_overrides_runpath=yes
10990     dynamic_linker='Win32 link.exe'
10991     ;;
10992
10993   *)
10994     # Assume MSVC wrapper
10995     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10996     dynamic_linker='Win32 ld.exe'
10997     ;;
10998   esac
10999   # FIXME: first we should search . and the directory the executable is in
11000   shlibpath_var=PATH
11001   ;;
11002
11003 darwin* | rhapsody*)
11004   dynamic_linker="$host_os dyld"
11005   version_type=darwin
11006   need_lib_prefix=no
11007   need_version=no
11008   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11009   soname_spec='$libname$release$major$shared_ext'
11010   shlibpath_overrides_runpath=yes
11011   shlibpath_var=DYLD_LIBRARY_PATH
11012   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11013
11014   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11015   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11016   ;;
11017
11018 dgux*)
11019   version_type=linux # correct to gnu/linux during the next big refactor
11020   need_lib_prefix=no
11021   need_version=no
11022   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11023   soname_spec='$libname$release$shared_ext$major'
11024   shlibpath_var=LD_LIBRARY_PATH
11025   ;;
11026
11027 freebsd* | dragonfly*)
11028   # DragonFly does not have aout.  When/if they implement a new
11029   # versioning mechanism, adjust this.
11030   if test -x /usr/bin/objformat; then
11031     objformat=`/usr/bin/objformat`
11032   else
11033     case $host_os in
11034     freebsd[23].*) objformat=aout ;;
11035     *) objformat=elf ;;
11036     esac
11037   fi
11038   version_type=freebsd-$objformat
11039   case $version_type in
11040     freebsd-elf*)
11041       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11042       soname_spec='$libname$release$shared_ext$major'
11043       need_version=no
11044       need_lib_prefix=no
11045       ;;
11046     freebsd-*)
11047       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11048       need_version=yes
11049       ;;
11050   esac
11051   shlibpath_var=LD_LIBRARY_PATH
11052   case $host_os in
11053   freebsd2.*)
11054     shlibpath_overrides_runpath=yes
11055     ;;
11056   freebsd3.[01]* | freebsdelf3.[01]*)
11057     shlibpath_overrides_runpath=yes
11058     hardcode_into_libs=yes
11059     ;;
11060   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11061   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11062     shlibpath_overrides_runpath=no
11063     hardcode_into_libs=yes
11064     ;;
11065   *) # from 4.6 on, and DragonFly
11066     shlibpath_overrides_runpath=yes
11067     hardcode_into_libs=yes
11068     ;;
11069   esac
11070   ;;
11071
11072 haiku*)
11073   version_type=linux # correct to gnu/linux during the next big refactor
11074   need_lib_prefix=no
11075   need_version=no
11076   dynamic_linker="$host_os runtime_loader"
11077   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11078   soname_spec='$libname$release$shared_ext$major'
11079   shlibpath_var=LIBRARY_PATH
11080   shlibpath_overrides_runpath=no
11081   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11082   hardcode_into_libs=yes
11083   ;;
11084
11085 hpux9* | hpux10* | hpux11*)
11086   # Give a soname corresponding to the major version so that dld.sl refuses to
11087   # link against other versions.
11088   version_type=sunos
11089   need_lib_prefix=no
11090   need_version=no
11091   case $host_cpu in
11092   ia64*)
11093     shrext_cmds='.so'
11094     hardcode_into_libs=yes
11095     dynamic_linker="$host_os dld.so"
11096     shlibpath_var=LD_LIBRARY_PATH
11097     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11098     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11099     soname_spec='$libname$release$shared_ext$major'
11100     if test 32 = "$HPUX_IA64_MODE"; then
11101       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11102       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11103     else
11104       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11105       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11106     fi
11107     ;;
11108   hppa*64*)
11109     shrext_cmds='.sl'
11110     hardcode_into_libs=yes
11111     dynamic_linker="$host_os dld.sl"
11112     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11113     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11114     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11115     soname_spec='$libname$release$shared_ext$major'
11116     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11117     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11118     ;;
11119   *)
11120     shrext_cmds='.sl'
11121     dynamic_linker="$host_os dld.sl"
11122     shlibpath_var=SHLIB_PATH
11123     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11124     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11125     soname_spec='$libname$release$shared_ext$major'
11126     ;;
11127   esac
11128   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11129   postinstall_cmds='chmod 555 $lib'
11130   # or fails outright, so override atomically:
11131   install_override_mode=555
11132   ;;
11133
11134 interix[3-9]*)
11135   version_type=linux # correct to gnu/linux during the next big refactor
11136   need_lib_prefix=no
11137   need_version=no
11138   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11139   soname_spec='$libname$release$shared_ext$major'
11140   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11141   shlibpath_var=LD_LIBRARY_PATH
11142   shlibpath_overrides_runpath=no
11143   hardcode_into_libs=yes
11144   ;;
11145
11146 irix5* | irix6* | nonstopux*)
11147   case $host_os in
11148     nonstopux*) version_type=nonstopux ;;
11149     *)
11150         if test yes = "$lt_cv_prog_gnu_ld"; then
11151                 version_type=linux # correct to gnu/linux during the next big refactor
11152         else
11153                 version_type=irix
11154         fi ;;
11155   esac
11156   need_lib_prefix=no
11157   need_version=no
11158   soname_spec='$libname$release$shared_ext$major'
11159   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11160   case $host_os in
11161   irix5* | nonstopux*)
11162     libsuff= shlibsuff=
11163     ;;
11164   *)
11165     case $LD in # libtool.m4 will add one of these switches to LD
11166     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11167       libsuff= shlibsuff= libmagic=32-bit;;
11168     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11169       libsuff=32 shlibsuff=N32 libmagic=N32;;
11170     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11171       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11172     *) libsuff= shlibsuff= libmagic=never-match;;
11173     esac
11174     ;;
11175   esac
11176   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11177   shlibpath_overrides_runpath=no
11178   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11179   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11180   hardcode_into_libs=yes
11181   ;;
11182
11183 # No shared lib support for Linux oldld, aout, or coff.
11184 linux*oldld* | linux*aout* | linux*coff*)
11185   dynamic_linker=no
11186   ;;
11187
11188 linux*android*)
11189   version_type=none # Android doesn't support versioned libraries.
11190   need_lib_prefix=no
11191   need_version=no
11192   library_names_spec='$libname$release$shared_ext'
11193   soname_spec='$libname$release$shared_ext'
11194   finish_cmds=
11195   shlibpath_var=LD_LIBRARY_PATH
11196   shlibpath_overrides_runpath=yes
11197
11198   # This implies no fast_install, which is unacceptable.
11199   # Some rework will be needed to allow for fast_install
11200   # before this can be enabled.
11201   hardcode_into_libs=yes
11202
11203   dynamic_linker='Android linker'
11204   # Don't embed -rpath directories since the linker doesn't support them.
11205   hardcode_libdir_flag_spec='-L$libdir'
11206   ;;
11207
11208 # This must be glibc/ELF.
11209 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11210   version_type=linux # correct to gnu/linux during the next big refactor
11211   need_lib_prefix=no
11212   need_version=no
11213   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11214   soname_spec='$libname$release$shared_ext$major'
11215   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11216   shlibpath_var=LD_LIBRARY_PATH
11217   shlibpath_overrides_runpath=no
11218
11219   # Some binutils ld are patched to set DT_RUNPATH
11220   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11221   $as_echo_n "(cached) " >&6
11222 else
11223   lt_cv_shlibpath_overrides_runpath=no
11224     save_LDFLAGS=$LDFLAGS
11225     save_libdir=$libdir
11226     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11227          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11228     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11229 /* end confdefs.h.  */
11230
11231 int
11232 main ()
11233 {
11234
11235   ;
11236   return 0;
11237 }
11238 _ACEOF
11239 if ac_fn_c_try_link "$LINENO"; then :
11240   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11241   lt_cv_shlibpath_overrides_runpath=yes
11242 fi
11243 fi
11244 rm -f core conftest.err conftest.$ac_objext \
11245     conftest$ac_exeext conftest.$ac_ext
11246     LDFLAGS=$save_LDFLAGS
11247     libdir=$save_libdir
11248
11249 fi
11250
11251   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11252
11253   # This implies no fast_install, which is unacceptable.
11254   # Some rework will be needed to allow for fast_install
11255   # before this can be enabled.
11256   hardcode_into_libs=yes
11257
11258   # Ideally, we could use ldconfig to report *all* directores which are
11259   # searched for libraries, however this is still not possible.  Aside from not
11260   # being certain /sbin/ldconfig is available, command
11261   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11262   # even though it is searched at run-time.  Try to do the best guess by
11263   # appending ld.so.conf contents (and includes) to the search path.
11264   if test -f /etc/ld.so.conf; then
11265     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' ' '`
11266     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11267   fi
11268
11269   # We used to test for /lib/ld.so.1 and disable shared libraries on
11270   # powerpc, because MkLinux only supported shared libraries with the
11271   # GNU dynamic linker.  Since this was broken with cross compilers,
11272   # most powerpc-linux boxes support dynamic linking these days and
11273   # people can always --disable-shared, the test was removed, and we
11274   # assume the GNU/Linux dynamic linker is in use.
11275   dynamic_linker='GNU/Linux ld.so'
11276   ;;
11277
11278 netbsdelf*-gnu)
11279   version_type=linux
11280   need_lib_prefix=no
11281   need_version=no
11282   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11283   soname_spec='${libname}${release}${shared_ext}$major'
11284   shlibpath_var=LD_LIBRARY_PATH
11285   shlibpath_overrides_runpath=no
11286   hardcode_into_libs=yes
11287   dynamic_linker='NetBSD ld.elf_so'
11288   ;;
11289
11290 netbsd*)
11291   version_type=sunos
11292   need_lib_prefix=no
11293   need_version=no
11294   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11295     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11296     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11297     dynamic_linker='NetBSD (a.out) ld.so'
11298   else
11299     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11300     soname_spec='$libname$release$shared_ext$major'
11301     dynamic_linker='NetBSD ld.elf_so'
11302   fi
11303   shlibpath_var=LD_LIBRARY_PATH
11304   shlibpath_overrides_runpath=yes
11305   hardcode_into_libs=yes
11306   ;;
11307
11308 newsos6)
11309   version_type=linux # correct to gnu/linux during the next big refactor
11310   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11311   shlibpath_var=LD_LIBRARY_PATH
11312   shlibpath_overrides_runpath=yes
11313   ;;
11314
11315 *nto* | *qnx*)
11316   version_type=qnx
11317   need_lib_prefix=no
11318   need_version=no
11319   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11320   soname_spec='$libname$release$shared_ext$major'
11321   shlibpath_var=LD_LIBRARY_PATH
11322   shlibpath_overrides_runpath=no
11323   hardcode_into_libs=yes
11324   dynamic_linker='ldqnx.so'
11325   ;;
11326
11327 openbsd* | bitrig*)
11328   version_type=sunos
11329   sys_lib_dlsearch_path_spec=/usr/lib
11330   need_lib_prefix=no
11331   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11332     need_version=no
11333   else
11334     need_version=yes
11335   fi
11336   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11337   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11338   shlibpath_var=LD_LIBRARY_PATH
11339   shlibpath_overrides_runpath=yes
11340   ;;
11341
11342 os2*)
11343   libname_spec='$name'
11344   version_type=windows
11345   shrext_cmds=.dll
11346   need_version=no
11347   need_lib_prefix=no
11348   # OS/2 can only load a DLL with a base name of 8 characters or less.
11349   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11350     v=$($ECHO $release$versuffix | tr -d .-);
11351     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11352     $ECHO $n$v`$shared_ext'
11353   library_names_spec='${libname}_dll.$libext'
11354   dynamic_linker='OS/2 ld.exe'
11355   shlibpath_var=BEGINLIBPATH
11356   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11357   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11358   postinstall_cmds='base_file=`basename \$file`~
11359     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11360     dldir=$destdir/`dirname \$dlpath`~
11361     test -d \$dldir || mkdir -p \$dldir~
11362     $install_prog $dir/$dlname \$dldir/$dlname~
11363     chmod a+x \$dldir/$dlname~
11364     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11365       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11366     fi'
11367   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11368     dlpath=$dir/\$dldll~
11369     $RM \$dlpath'
11370   ;;
11371
11372 osf3* | osf4* | osf5*)
11373   version_type=osf
11374   need_lib_prefix=no
11375   need_version=no
11376   soname_spec='$libname$release$shared_ext$major'
11377   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11378   shlibpath_var=LD_LIBRARY_PATH
11379   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11380   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11381   ;;
11382
11383 rdos*)
11384   dynamic_linker=no
11385   ;;
11386
11387 solaris*)
11388   version_type=linux # correct to gnu/linux during the next big refactor
11389   need_lib_prefix=no
11390   need_version=no
11391   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11392   soname_spec='$libname$release$shared_ext$major'
11393   shlibpath_var=LD_LIBRARY_PATH
11394   shlibpath_overrides_runpath=yes
11395   hardcode_into_libs=yes
11396   # ldd complains unless libraries are executable
11397   postinstall_cmds='chmod +x $lib'
11398   ;;
11399
11400 sunos4*)
11401   version_type=sunos
11402   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11403   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11404   shlibpath_var=LD_LIBRARY_PATH
11405   shlibpath_overrides_runpath=yes
11406   if test yes = "$with_gnu_ld"; then
11407     need_lib_prefix=no
11408   fi
11409   need_version=yes
11410   ;;
11411
11412 sysv4 | sysv4.3*)
11413   version_type=linux # correct to gnu/linux during the next big refactor
11414   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11415   soname_spec='$libname$release$shared_ext$major'
11416   shlibpath_var=LD_LIBRARY_PATH
11417   case $host_vendor in
11418     sni)
11419       shlibpath_overrides_runpath=no
11420       need_lib_prefix=no
11421       runpath_var=LD_RUN_PATH
11422       ;;
11423     siemens)
11424       need_lib_prefix=no
11425       ;;
11426     motorola)
11427       need_lib_prefix=no
11428       need_version=no
11429       shlibpath_overrides_runpath=no
11430       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11431       ;;
11432   esac
11433   ;;
11434
11435 sysv4*MP*)
11436   if test -d /usr/nec; then
11437     version_type=linux # correct to gnu/linux during the next big refactor
11438     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11439     soname_spec='$libname$shared_ext.$major'
11440     shlibpath_var=LD_LIBRARY_PATH
11441   fi
11442   ;;
11443
11444 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11445   version_type=sco
11446   need_lib_prefix=no
11447   need_version=no
11448   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11449   soname_spec='$libname$release$shared_ext$major'
11450   shlibpath_var=LD_LIBRARY_PATH
11451   shlibpath_overrides_runpath=yes
11452   hardcode_into_libs=yes
11453   if test yes = "$with_gnu_ld"; then
11454     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11455   else
11456     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11457     case $host_os in
11458       sco3.2v5*)
11459         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11460         ;;
11461     esac
11462   fi
11463   sys_lib_dlsearch_path_spec='/usr/lib'
11464   ;;
11465
11466 tpf*)
11467   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11468   version_type=linux # correct to gnu/linux during the next big refactor
11469   need_lib_prefix=no
11470   need_version=no
11471   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11472   shlibpath_var=LD_LIBRARY_PATH
11473   shlibpath_overrides_runpath=no
11474   hardcode_into_libs=yes
11475   ;;
11476
11477 uts4*)
11478   version_type=linux # correct to gnu/linux during the next big refactor
11479   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11480   soname_spec='$libname$release$shared_ext$major'
11481   shlibpath_var=LD_LIBRARY_PATH
11482   ;;
11483
11484 *)
11485   dynamic_linker=no
11486   ;;
11487 esac
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11489 $as_echo "$dynamic_linker" >&6; }
11490 test no = "$dynamic_linker" && can_build_shared=no
11491
11492 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11493 if test yes = "$GCC"; then
11494   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11495 fi
11496
11497 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11498   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11499 fi
11500
11501 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11502   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11503 fi
11504
11505 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11506 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11507
11508 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11509 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11510
11511 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11512 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11513
11514
11515
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11611 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11612 hardcode_action=
11613 if test -n "$hardcode_libdir_flag_spec" ||
11614    test -n "$runpath_var" ||
11615    test yes = "$hardcode_automatic"; then
11616
11617   # We can hardcode non-existent directories.
11618   if test no != "$hardcode_direct" &&
11619      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11620      # have to relink, otherwise we might link with an installed library
11621      # when we should be linking with a yet-to-be-installed one
11622      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11623      test no != "$hardcode_minus_L"; then
11624     # Linking always hardcodes the temporary library directory.
11625     hardcode_action=relink
11626   else
11627     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11628     hardcode_action=immediate
11629   fi
11630 else
11631   # We cannot hardcode anything, or else we can only hardcode existing
11632   # directories.
11633   hardcode_action=unsupported
11634 fi
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11636 $as_echo "$hardcode_action" >&6; }
11637
11638 if test relink = "$hardcode_action" ||
11639    test yes = "$inherit_rpath"; then
11640   # Fast installation is not supported
11641   enable_fast_install=no
11642 elif test yes = "$shlibpath_overrides_runpath" ||
11643      test no = "$enable_shared"; then
11644   # Fast installation is not necessary
11645   enable_fast_install=needless
11646 fi
11647
11648
11649
11650
11651
11652
11653   if test yes != "$enable_dlopen"; then
11654   enable_dlopen=unknown
11655   enable_dlopen_self=unknown
11656   enable_dlopen_self_static=unknown
11657 else
11658   lt_cv_dlopen=no
11659   lt_cv_dlopen_libs=
11660
11661   case $host_os in
11662   beos*)
11663     lt_cv_dlopen=load_add_on
11664     lt_cv_dlopen_libs=
11665     lt_cv_dlopen_self=yes
11666     ;;
11667
11668   mingw* | pw32* | cegcc*)
11669     lt_cv_dlopen=LoadLibrary
11670     lt_cv_dlopen_libs=
11671     ;;
11672
11673   cygwin*)
11674     lt_cv_dlopen=dlopen
11675     lt_cv_dlopen_libs=
11676     ;;
11677
11678   darwin*)
11679     # if libdl is installed we need to link against it
11680     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11681 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11682 if ${ac_cv_lib_dl_dlopen+:} false; then :
11683   $as_echo_n "(cached) " >&6
11684 else
11685   ac_check_lib_save_LIBS=$LIBS
11686 LIBS="-ldl  $LIBS"
11687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11688 /* end confdefs.h.  */
11689
11690 /* Override any GCC internal prototype to avoid an error.
11691    Use char because int might match the return type of a GCC
11692    builtin and then its argument prototype would still apply.  */
11693 #ifdef __cplusplus
11694 extern "C"
11695 #endif
11696 char dlopen ();
11697 int
11698 main ()
11699 {
11700 return dlopen ();
11701   ;
11702   return 0;
11703 }
11704 _ACEOF
11705 if ac_fn_c_try_link "$LINENO"; then :
11706   ac_cv_lib_dl_dlopen=yes
11707 else
11708   ac_cv_lib_dl_dlopen=no
11709 fi
11710 rm -f core conftest.err conftest.$ac_objext \
11711     conftest$ac_exeext conftest.$ac_ext
11712 LIBS=$ac_check_lib_save_LIBS
11713 fi
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11715 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11716 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11717   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11718 else
11719
11720     lt_cv_dlopen=dyld
11721     lt_cv_dlopen_libs=
11722     lt_cv_dlopen_self=yes
11723
11724 fi
11725
11726     ;;
11727
11728   tpf*)
11729     # Don't try to run any link tests for TPF.  We know it's impossible
11730     # because TPF is a cross-compiler, and we know how we open DSOs.
11731     lt_cv_dlopen=dlopen
11732     lt_cv_dlopen_libs=
11733     lt_cv_dlopen_self=no
11734     ;;
11735
11736   *)
11737     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11738 if test "x$ac_cv_func_shl_load" = xyes; then :
11739   lt_cv_dlopen=shl_load
11740 else
11741   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11742 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11743 if ${ac_cv_lib_dld_shl_load+:} false; then :
11744   $as_echo_n "(cached) " >&6
11745 else
11746   ac_check_lib_save_LIBS=$LIBS
11747 LIBS="-ldld  $LIBS"
11748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11749 /* end confdefs.h.  */
11750
11751 /* Override any GCC internal prototype to avoid an error.
11752    Use char because int might match the return type of a GCC
11753    builtin and then its argument prototype would still apply.  */
11754 #ifdef __cplusplus
11755 extern "C"
11756 #endif
11757 char shl_load ();
11758 int
11759 main ()
11760 {
11761 return shl_load ();
11762   ;
11763   return 0;
11764 }
11765 _ACEOF
11766 if ac_fn_c_try_link "$LINENO"; then :
11767   ac_cv_lib_dld_shl_load=yes
11768 else
11769   ac_cv_lib_dld_shl_load=no
11770 fi
11771 rm -f core conftest.err conftest.$ac_objext \
11772     conftest$ac_exeext conftest.$ac_ext
11773 LIBS=$ac_check_lib_save_LIBS
11774 fi
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11776 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11777 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11778   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11779 else
11780   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11781 if test "x$ac_cv_func_dlopen" = xyes; then :
11782   lt_cv_dlopen=dlopen
11783 else
11784   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11785 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11786 if ${ac_cv_lib_dl_dlopen+:} false; then :
11787   $as_echo_n "(cached) " >&6
11788 else
11789   ac_check_lib_save_LIBS=$LIBS
11790 LIBS="-ldl  $LIBS"
11791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11792 /* end confdefs.h.  */
11793
11794 /* Override any GCC internal prototype to avoid an error.
11795    Use char because int might match the return type of a GCC
11796    builtin and then its argument prototype would still apply.  */
11797 #ifdef __cplusplus
11798 extern "C"
11799 #endif
11800 char dlopen ();
11801 int
11802 main ()
11803 {
11804 return dlopen ();
11805   ;
11806   return 0;
11807 }
11808 _ACEOF
11809 if ac_fn_c_try_link "$LINENO"; then :
11810   ac_cv_lib_dl_dlopen=yes
11811 else
11812   ac_cv_lib_dl_dlopen=no
11813 fi
11814 rm -f core conftest.err conftest.$ac_objext \
11815     conftest$ac_exeext conftest.$ac_ext
11816 LIBS=$ac_check_lib_save_LIBS
11817 fi
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11819 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11820 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11821   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11822 else
11823   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11824 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11825 if ${ac_cv_lib_svld_dlopen+:} false; then :
11826   $as_echo_n "(cached) " >&6
11827 else
11828   ac_check_lib_save_LIBS=$LIBS
11829 LIBS="-lsvld  $LIBS"
11830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11831 /* end confdefs.h.  */
11832
11833 /* Override any GCC internal prototype to avoid an error.
11834    Use char because int might match the return type of a GCC
11835    builtin and then its argument prototype would still apply.  */
11836 #ifdef __cplusplus
11837 extern "C"
11838 #endif
11839 char dlopen ();
11840 int
11841 main ()
11842 {
11843 return dlopen ();
11844   ;
11845   return 0;
11846 }
11847 _ACEOF
11848 if ac_fn_c_try_link "$LINENO"; then :
11849   ac_cv_lib_svld_dlopen=yes
11850 else
11851   ac_cv_lib_svld_dlopen=no
11852 fi
11853 rm -f core conftest.err conftest.$ac_objext \
11854     conftest$ac_exeext conftest.$ac_ext
11855 LIBS=$ac_check_lib_save_LIBS
11856 fi
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11858 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11859 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11860   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11861 else
11862   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11863 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11864 if ${ac_cv_lib_dld_dld_link+:} false; then :
11865   $as_echo_n "(cached) " >&6
11866 else
11867   ac_check_lib_save_LIBS=$LIBS
11868 LIBS="-ldld  $LIBS"
11869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11870 /* end confdefs.h.  */
11871
11872 /* Override any GCC internal prototype to avoid an error.
11873    Use char because int might match the return type of a GCC
11874    builtin and then its argument prototype would still apply.  */
11875 #ifdef __cplusplus
11876 extern "C"
11877 #endif
11878 char dld_link ();
11879 int
11880 main ()
11881 {
11882 return dld_link ();
11883   ;
11884   return 0;
11885 }
11886 _ACEOF
11887 if ac_fn_c_try_link "$LINENO"; then :
11888   ac_cv_lib_dld_dld_link=yes
11889 else
11890   ac_cv_lib_dld_dld_link=no
11891 fi
11892 rm -f core conftest.err conftest.$ac_objext \
11893     conftest$ac_exeext conftest.$ac_ext
11894 LIBS=$ac_check_lib_save_LIBS
11895 fi
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11897 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11898 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11899   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11900 fi
11901
11902
11903 fi
11904
11905
11906 fi
11907
11908
11909 fi
11910
11911
11912 fi
11913
11914
11915 fi
11916
11917     ;;
11918   esac
11919
11920   if test no = "$lt_cv_dlopen"; then
11921     enable_dlopen=no
11922   else
11923     enable_dlopen=yes
11924   fi
11925
11926   case $lt_cv_dlopen in
11927   dlopen)
11928     save_CPPFLAGS=$CPPFLAGS
11929     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11930
11931     save_LDFLAGS=$LDFLAGS
11932     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11933
11934     save_LIBS=$LIBS
11935     LIBS="$lt_cv_dlopen_libs $LIBS"
11936
11937     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11938 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11939 if ${lt_cv_dlopen_self+:} false; then :
11940   $as_echo_n "(cached) " >&6
11941 else
11942           if test yes = "$cross_compiling"; then :
11943   lt_cv_dlopen_self=cross
11944 else
11945   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11946   lt_status=$lt_dlunknown
11947   cat > conftest.$ac_ext <<_LT_EOF
11948 #line $LINENO "configure"
11949 #include "confdefs.h"
11950
11951 #if HAVE_DLFCN_H
11952 #include <dlfcn.h>
11953 #endif
11954
11955 #include <stdio.h>
11956
11957 #ifdef RTLD_GLOBAL
11958 #  define LT_DLGLOBAL           RTLD_GLOBAL
11959 #else
11960 #  ifdef DL_GLOBAL
11961 #    define LT_DLGLOBAL         DL_GLOBAL
11962 #  else
11963 #    define LT_DLGLOBAL         0
11964 #  endif
11965 #endif
11966
11967 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11968    find out it does not work in some platform. */
11969 #ifndef LT_DLLAZY_OR_NOW
11970 #  ifdef RTLD_LAZY
11971 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11972 #  else
11973 #    ifdef DL_LAZY
11974 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11975 #    else
11976 #      ifdef RTLD_NOW
11977 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11978 #      else
11979 #        ifdef DL_NOW
11980 #          define LT_DLLAZY_OR_NOW      DL_NOW
11981 #        else
11982 #          define LT_DLLAZY_OR_NOW      0
11983 #        endif
11984 #      endif
11985 #    endif
11986 #  endif
11987 #endif
11988
11989 /* When -fvisibility=hidden is used, assume the code has been annotated
11990    correspondingly for the symbols needed.  */
11991 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11992 int fnord () __attribute__((visibility("default")));
11993 #endif
11994
11995 int fnord () { return 42; }
11996 int main ()
11997 {
11998   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11999   int status = $lt_dlunknown;
12000
12001   if (self)
12002     {
12003       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12004       else
12005         {
12006           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12007           else puts (dlerror ());
12008         }
12009       /* dlclose (self); */
12010     }
12011   else
12012     puts (dlerror ());
12013
12014   return status;
12015 }
12016 _LT_EOF
12017   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12018   (eval $ac_link) 2>&5
12019   ac_status=$?
12020   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12021   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12022     (./conftest; exit; ) >&5 2>/dev/null
12023     lt_status=$?
12024     case x$lt_status in
12025       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12026       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12027       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12028     esac
12029   else :
12030     # compilation failed
12031     lt_cv_dlopen_self=no
12032   fi
12033 fi
12034 rm -fr conftest*
12035
12036
12037 fi
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12039 $as_echo "$lt_cv_dlopen_self" >&6; }
12040
12041     if test yes = "$lt_cv_dlopen_self"; then
12042       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12043       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12044 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12045 if ${lt_cv_dlopen_self_static+:} false; then :
12046   $as_echo_n "(cached) " >&6
12047 else
12048           if test yes = "$cross_compiling"; then :
12049   lt_cv_dlopen_self_static=cross
12050 else
12051   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12052   lt_status=$lt_dlunknown
12053   cat > conftest.$ac_ext <<_LT_EOF
12054 #line $LINENO "configure"
12055 #include "confdefs.h"
12056
12057 #if HAVE_DLFCN_H
12058 #include <dlfcn.h>
12059 #endif
12060
12061 #include <stdio.h>
12062
12063 #ifdef RTLD_GLOBAL
12064 #  define LT_DLGLOBAL           RTLD_GLOBAL
12065 #else
12066 #  ifdef DL_GLOBAL
12067 #    define LT_DLGLOBAL         DL_GLOBAL
12068 #  else
12069 #    define LT_DLGLOBAL         0
12070 #  endif
12071 #endif
12072
12073 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12074    find out it does not work in some platform. */
12075 #ifndef LT_DLLAZY_OR_NOW
12076 #  ifdef RTLD_LAZY
12077 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12078 #  else
12079 #    ifdef DL_LAZY
12080 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12081 #    else
12082 #      ifdef RTLD_NOW
12083 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12084 #      else
12085 #        ifdef DL_NOW
12086 #          define LT_DLLAZY_OR_NOW      DL_NOW
12087 #        else
12088 #          define LT_DLLAZY_OR_NOW      0
12089 #        endif
12090 #      endif
12091 #    endif
12092 #  endif
12093 #endif
12094
12095 /* When -fvisibility=hidden is used, assume the code has been annotated
12096    correspondingly for the symbols needed.  */
12097 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12098 int fnord () __attribute__((visibility("default")));
12099 #endif
12100
12101 int fnord () { return 42; }
12102 int main ()
12103 {
12104   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12105   int status = $lt_dlunknown;
12106
12107   if (self)
12108     {
12109       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12110       else
12111         {
12112           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12113           else puts (dlerror ());
12114         }
12115       /* dlclose (self); */
12116     }
12117   else
12118     puts (dlerror ());
12119
12120   return status;
12121 }
12122 _LT_EOF
12123   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12124   (eval $ac_link) 2>&5
12125   ac_status=$?
12126   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12127   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12128     (./conftest; exit; ) >&5 2>/dev/null
12129     lt_status=$?
12130     case x$lt_status in
12131       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12132       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12133       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12134     esac
12135   else :
12136     # compilation failed
12137     lt_cv_dlopen_self_static=no
12138   fi
12139 fi
12140 rm -fr conftest*
12141
12142
12143 fi
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12145 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12146     fi
12147
12148     CPPFLAGS=$save_CPPFLAGS
12149     LDFLAGS=$save_LDFLAGS
12150     LIBS=$save_LIBS
12151     ;;
12152   esac
12153
12154   case $lt_cv_dlopen_self in
12155   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12156   *) enable_dlopen_self=unknown ;;
12157   esac
12158
12159   case $lt_cv_dlopen_self_static in
12160   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12161   *) enable_dlopen_self_static=unknown ;;
12162   esac
12163 fi
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181 striplib=
12182 old_striplib=
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12184 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12185 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12186   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12187   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12189 $as_echo "yes" >&6; }
12190 else
12191 # FIXME - insert some real tests, host_os isn't really good enough
12192   case $host_os in
12193   darwin*)
12194     if test -n "$STRIP"; then
12195       striplib="$STRIP -x"
12196       old_striplib="$STRIP -S"
12197       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12198 $as_echo "yes" >&6; }
12199     else
12200       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12201 $as_echo "no" >&6; }
12202     fi
12203     ;;
12204   *)
12205     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12206 $as_echo "no" >&6; }
12207     ;;
12208   esac
12209 fi
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222   # Report what library types will actually be built
12223   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12224 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12226 $as_echo "$can_build_shared" >&6; }
12227
12228   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12229 $as_echo_n "checking whether to build shared libraries... " >&6; }
12230   test no = "$can_build_shared" && enable_shared=no
12231
12232   # On AIX, shared libraries and static libraries use the same namespace, and
12233   # are all built from PIC.
12234   case $host_os in
12235   aix3*)
12236     test yes = "$enable_shared" && enable_static=no
12237     if test -n "$RANLIB"; then
12238       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12239       postinstall_cmds='$RANLIB $lib'
12240     fi
12241     ;;
12242
12243   aix[4-9]*)
12244     if test ia64 != "$host_cpu"; then
12245       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12246       yes,aix,yes) ;;                   # shared object as lib.so file only
12247       yes,svr4,*) ;;                    # shared object as lib.so archive member only
12248       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
12249       esac
12250     fi
12251     ;;
12252   esac
12253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12254 $as_echo "$enable_shared" >&6; }
12255
12256   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12257 $as_echo_n "checking whether to build static libraries... " >&6; }
12258   # Make sure either enable_shared or enable_static is yes.
12259   test yes = "$enable_shared" || enable_static=yes
12260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12261 $as_echo "$enable_static" >&6; }
12262
12263
12264
12265
12266 fi
12267 ac_ext=c
12268 ac_cpp='$CPP $CPPFLAGS'
12269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12272
12273 CC=$lt_save_CC
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289         ac_config_commands="$ac_config_commands libtool"
12290
12291
12292
12293
12294 # Only expand once:
12295
12296
12297 # Check whether --enable-largefile was given.
12298 if test "${enable_largefile+set}" = set; then :
12299   enableval=$enable_largefile;
12300 fi
12301
12302 if test "$enable_largefile" != no; then
12303
12304   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12305 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12306 if ${ac_cv_sys_largefile_CC+:} false; then :
12307   $as_echo_n "(cached) " >&6
12308 else
12309   ac_cv_sys_largefile_CC=no
12310      if test "$GCC" != yes; then
12311        ac_save_CC=$CC
12312        while :; do
12313          # IRIX 6.2 and later do not support large files by default,
12314          # so use the C compiler's -n32 option if that helps.
12315          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12316 /* end confdefs.h.  */
12317 #include <sys/types.h>
12318  /* Check that off_t can represent 2**63 - 1 correctly.
12319     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12320     since some C++ compilers masquerading as C compilers
12321     incorrectly reject 9223372036854775807.  */
12322 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12323   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12324                        && LARGE_OFF_T % 2147483647 == 1)
12325                       ? 1 : -1];
12326 int
12327 main ()
12328 {
12329
12330   ;
12331   return 0;
12332 }
12333 _ACEOF
12334          if ac_fn_c_try_compile "$LINENO"; then :
12335   break
12336 fi
12337 rm -f core conftest.err conftest.$ac_objext
12338          CC="$CC -n32"
12339          if ac_fn_c_try_compile "$LINENO"; then :
12340   ac_cv_sys_largefile_CC=' -n32'; break
12341 fi
12342 rm -f core conftest.err conftest.$ac_objext
12343          break
12344        done
12345        CC=$ac_save_CC
12346        rm -f conftest.$ac_ext
12347     fi
12348 fi
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12350 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
12351   if test "$ac_cv_sys_largefile_CC" != no; then
12352     CC=$CC$ac_cv_sys_largefile_CC
12353   fi
12354
12355   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12356 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12357 if ${ac_cv_sys_file_offset_bits+:} false; then :
12358   $as_echo_n "(cached) " >&6
12359 else
12360   while :; do
12361   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12362 /* end confdefs.h.  */
12363 #include <sys/types.h>
12364  /* Check that off_t can represent 2**63 - 1 correctly.
12365     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12366     since some C++ compilers masquerading as C compilers
12367     incorrectly reject 9223372036854775807.  */
12368 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12369   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12370                        && LARGE_OFF_T % 2147483647 == 1)
12371                       ? 1 : -1];
12372 int
12373 main ()
12374 {
12375
12376   ;
12377   return 0;
12378 }
12379 _ACEOF
12380 if ac_fn_c_try_compile "$LINENO"; then :
12381   ac_cv_sys_file_offset_bits=no; break
12382 fi
12383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12384   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12385 /* end confdefs.h.  */
12386 #define _FILE_OFFSET_BITS 64
12387 #include <sys/types.h>
12388  /* Check that off_t can represent 2**63 - 1 correctly.
12389     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12390     since some C++ compilers masquerading as C compilers
12391     incorrectly reject 9223372036854775807.  */
12392 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12393   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12394                        && LARGE_OFF_T % 2147483647 == 1)
12395                       ? 1 : -1];
12396 int
12397 main ()
12398 {
12399
12400   ;
12401   return 0;
12402 }
12403 _ACEOF
12404 if ac_fn_c_try_compile "$LINENO"; then :
12405   ac_cv_sys_file_offset_bits=64; break
12406 fi
12407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12408   ac_cv_sys_file_offset_bits=unknown
12409   break
12410 done
12411 fi
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12413 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12414 case $ac_cv_sys_file_offset_bits in #(
12415   no | unknown) ;;
12416   *)
12417 cat >>confdefs.h <<_ACEOF
12418 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12419 _ACEOF
12420 ;;
12421 esac
12422 rm -rf conftest*
12423   if test $ac_cv_sys_file_offset_bits = unknown; then
12424     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12425 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12426 if ${ac_cv_sys_large_files+:} false; then :
12427   $as_echo_n "(cached) " >&6
12428 else
12429   while :; do
12430   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12431 /* end confdefs.h.  */
12432 #include <sys/types.h>
12433  /* Check that off_t can represent 2**63 - 1 correctly.
12434     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12435     since some C++ compilers masquerading as C compilers
12436     incorrectly reject 9223372036854775807.  */
12437 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12438   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12439                        && LARGE_OFF_T % 2147483647 == 1)
12440                       ? 1 : -1];
12441 int
12442 main ()
12443 {
12444
12445   ;
12446   return 0;
12447 }
12448 _ACEOF
12449 if ac_fn_c_try_compile "$LINENO"; then :
12450   ac_cv_sys_large_files=no; break
12451 fi
12452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12453   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12454 /* end confdefs.h.  */
12455 #define _LARGE_FILES 1
12456 #include <sys/types.h>
12457  /* Check that off_t can represent 2**63 - 1 correctly.
12458     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12459     since some C++ compilers masquerading as C compilers
12460     incorrectly reject 9223372036854775807.  */
12461 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12462   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12463                        && LARGE_OFF_T % 2147483647 == 1)
12464                       ? 1 : -1];
12465 int
12466 main ()
12467 {
12468
12469   ;
12470   return 0;
12471 }
12472 _ACEOF
12473 if ac_fn_c_try_compile "$LINENO"; then :
12474   ac_cv_sys_large_files=1; break
12475 fi
12476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12477   ac_cv_sys_large_files=unknown
12478   break
12479 done
12480 fi
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12482 $as_echo "$ac_cv_sys_large_files" >&6; }
12483 case $ac_cv_sys_large_files in #(
12484   no | unknown) ;;
12485   *)
12486 cat >>confdefs.h <<_ACEOF
12487 #define _LARGE_FILES $ac_cv_sys_large_files
12488 _ACEOF
12489 ;;
12490 esac
12491 rm -rf conftest*
12492   fi
12493
12494
12495 fi
12496
12497  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12498 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12499 if ${ac_cv_c_bigendian+:} false; then :
12500   $as_echo_n "(cached) " >&6
12501 else
12502   ac_cv_c_bigendian=unknown
12503     # See if we're dealing with a universal compiler.
12504     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12505 /* end confdefs.h.  */
12506 #ifndef __APPLE_CC__
12507                not a universal capable compiler
12508              #endif
12509              typedef int dummy;
12510
12511 _ACEOF
12512 if ac_fn_c_try_compile "$LINENO"; then :
12513
12514         # Check for potential -arch flags.  It is not universal unless
12515         # there are at least two -arch flags with different values.
12516         ac_arch=
12517         ac_prev=
12518         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12519          if test -n "$ac_prev"; then
12520            case $ac_word in
12521              i?86 | x86_64 | ppc | ppc64)
12522                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12523                  ac_arch=$ac_word
12524                else
12525                  ac_cv_c_bigendian=universal
12526                  break
12527                fi
12528                ;;
12529            esac
12530            ac_prev=
12531          elif test "x$ac_word" = "x-arch"; then
12532            ac_prev=arch
12533          fi
12534        done
12535 fi
12536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12537     if test $ac_cv_c_bigendian = unknown; then
12538       # See if sys/param.h defines the BYTE_ORDER macro.
12539       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12540 /* end confdefs.h.  */
12541 #include <sys/types.h>
12542              #include <sys/param.h>
12543
12544 int
12545 main ()
12546 {
12547 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12548                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12549                      && LITTLE_ENDIAN)
12550               bogus endian macros
12551              #endif
12552
12553   ;
12554   return 0;
12555 }
12556 _ACEOF
12557 if ac_fn_c_try_compile "$LINENO"; then :
12558   # It does; now see whether it defined to BIG_ENDIAN or not.
12559          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12560 /* end confdefs.h.  */
12561 #include <sys/types.h>
12562                 #include <sys/param.h>
12563
12564 int
12565 main ()
12566 {
12567 #if BYTE_ORDER != BIG_ENDIAN
12568                  not big endian
12569                 #endif
12570
12571   ;
12572   return 0;
12573 }
12574 _ACEOF
12575 if ac_fn_c_try_compile "$LINENO"; then :
12576   ac_cv_c_bigendian=yes
12577 else
12578   ac_cv_c_bigendian=no
12579 fi
12580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12581 fi
12582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12583     fi
12584     if test $ac_cv_c_bigendian = unknown; then
12585       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12586       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12587 /* end confdefs.h.  */
12588 #include <limits.h>
12589
12590 int
12591 main ()
12592 {
12593 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12594               bogus endian macros
12595              #endif
12596
12597   ;
12598   return 0;
12599 }
12600 _ACEOF
12601 if ac_fn_c_try_compile "$LINENO"; then :
12602   # It does; now see whether it defined to _BIG_ENDIAN or not.
12603          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12604 /* end confdefs.h.  */
12605 #include <limits.h>
12606
12607 int
12608 main ()
12609 {
12610 #ifndef _BIG_ENDIAN
12611                  not big endian
12612                 #endif
12613
12614   ;
12615   return 0;
12616 }
12617 _ACEOF
12618 if ac_fn_c_try_compile "$LINENO"; then :
12619   ac_cv_c_bigendian=yes
12620 else
12621   ac_cv_c_bigendian=no
12622 fi
12623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12624 fi
12625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12626     fi
12627     if test $ac_cv_c_bigendian = unknown; then
12628       # Compile a test program.
12629       if test "$cross_compiling" = yes; then :
12630   # Try to guess by grepping values from an object file.
12631          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12632 /* end confdefs.h.  */
12633 short int ascii_mm[] =
12634                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12635                 short int ascii_ii[] =
12636                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12637                 int use_ascii (int i) {
12638                   return ascii_mm[i] + ascii_ii[i];
12639                 }
12640                 short int ebcdic_ii[] =
12641                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12642                 short int ebcdic_mm[] =
12643                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12644                 int use_ebcdic (int i) {
12645                   return ebcdic_mm[i] + ebcdic_ii[i];
12646                 }
12647                 extern int foo;
12648
12649 int
12650 main ()
12651 {
12652 return use_ascii (foo) == use_ebcdic (foo);
12653   ;
12654   return 0;
12655 }
12656 _ACEOF
12657 if ac_fn_c_try_compile "$LINENO"; then :
12658   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12659               ac_cv_c_bigendian=yes
12660             fi
12661             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12662               if test "$ac_cv_c_bigendian" = unknown; then
12663                 ac_cv_c_bigendian=no
12664               else
12665                 # finding both strings is unlikely to happen, but who knows?
12666                 ac_cv_c_bigendian=unknown
12667               fi
12668             fi
12669 fi
12670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12671 else
12672   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12673 /* end confdefs.h.  */
12674 $ac_includes_default
12675 int
12676 main ()
12677 {
12678
12679              /* Are we little or big endian?  From Harbison&Steele.  */
12680              union
12681              {
12682                long int l;
12683                char c[sizeof (long int)];
12684              } u;
12685              u.l = 1;
12686              return u.c[sizeof (long int) - 1] == 1;
12687
12688   ;
12689   return 0;
12690 }
12691 _ACEOF
12692 if ac_fn_c_try_run "$LINENO"; then :
12693   ac_cv_c_bigendian=no
12694 else
12695   ac_cv_c_bigendian=yes
12696 fi
12697 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12698   conftest.$ac_objext conftest.beam conftest.$ac_ext
12699 fi
12700
12701     fi
12702 fi
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12704 $as_echo "$ac_cv_c_bigendian" >&6; }
12705  case $ac_cv_c_bigendian in #(
12706    yes)
12707      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12708 ;; #(
12709    no)
12710       ;; #(
12711    universal)
12712
12713 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12714
12715      ;; #(
12716    *)
12717      as_fn_error $? "unknown endianness
12718  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12719  esac
12720
12721
12722 ac_config_files="$ac_config_files Makefile lib/Makefile mkfs/Makefile fsck/Makefile tune/Makefile"
12723
12724
12725 cat >confcache <<\_ACEOF
12726 # This file is a shell script that caches the results of configure
12727 # tests run on this system so they can be shared between configure
12728 # scripts and configure runs, see configure's option --config-cache.
12729 # It is not useful on other systems.  If it contains results you don't
12730 # want to keep, you may remove or edit it.
12731 #
12732 # config.status only pays attention to the cache file if you give it
12733 # the --recheck option to rerun configure.
12734 #
12735 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12736 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12737 # following values.
12738
12739 _ACEOF
12740
12741 # The following way of writing the cache mishandles newlines in values,
12742 # but we know of no workaround that is simple, portable, and efficient.
12743 # So, we kill variables containing newlines.
12744 # Ultrix sh set writes to stderr and can't be redirected directly,
12745 # and sets the high bit in the cache file unless we assign to the vars.
12746 (
12747   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12748     eval ac_val=\$$ac_var
12749     case $ac_val in #(
12750     *${as_nl}*)
12751       case $ac_var in #(
12752       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12753 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12754       esac
12755       case $ac_var in #(
12756       _ | IFS | as_nl) ;; #(
12757       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12758       *) { eval $ac_var=; unset $ac_var;} ;;
12759       esac ;;
12760     esac
12761   done
12762
12763   (set) 2>&1 |
12764     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12765     *${as_nl}ac_space=\ *)
12766       # `set' does not quote correctly, so add quotes: double-quote
12767       # substitution turns \\\\ into \\, and sed turns \\ into \.
12768       sed -n \
12769         "s/'/'\\\\''/g;
12770           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12771       ;; #(
12772     *)
12773       # `set' quotes correctly as required by POSIX, so do not add quotes.
12774       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12775       ;;
12776     esac |
12777     sort
12778 ) |
12779   sed '
12780      /^ac_cv_env_/b end
12781      t clear
12782      :clear
12783      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12784      t end
12785      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12786      :end' >>confcache
12787 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12788   if test -w "$cache_file"; then
12789     if test "x$cache_file" != "x/dev/null"; then
12790       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12791 $as_echo "$as_me: updating cache $cache_file" >&6;}
12792       if test ! -f "$cache_file" || test -h "$cache_file"; then
12793         cat confcache >"$cache_file"
12794       else
12795         case $cache_file in #(
12796         */* | ?:*)
12797           mv -f confcache "$cache_file"$$ &&
12798           mv -f "$cache_file"$$ "$cache_file" ;; #(
12799         *)
12800           mv -f confcache "$cache_file" ;;
12801         esac
12802       fi
12803     fi
12804   else
12805     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12806 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12807   fi
12808 fi
12809 rm -f confcache
12810
12811 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12812 # Let make expand exec_prefix.
12813 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12814
12815 DEFS=-DHAVE_CONFIG_H
12816
12817 ac_libobjs=
12818 ac_ltlibobjs=
12819 U=
12820 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12821   # 1. Remove the extension, and $U if already installed.
12822   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12823   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12824   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12825   #    will be set to the directory where LIBOBJS objects are built.
12826   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12827   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12828 done
12829 LIBOBJS=$ac_libobjs
12830
12831 LTLIBOBJS=$ac_ltlibobjs
12832
12833
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12835 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12836    if test -n "$am_sleep_pid"; then
12837      # Hide warnings about reused PIDs.
12838      wait $am_sleep_pid 2>/dev/null
12839    fi
12840    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12841 $as_echo "done" >&6; }
12842  if test -n "$EXEEXT"; then
12843   am__EXEEXT_TRUE=
12844   am__EXEEXT_FALSE='#'
12845 else
12846   am__EXEEXT_TRUE='#'
12847   am__EXEEXT_FALSE=
12848 fi
12849
12850 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12851   as_fn_error $? "conditional \"AMDEP\" was never defined.
12852 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12853 fi
12854 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12855   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12856 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12857 fi
12858
12859
12860 : "${CONFIG_STATUS=./config.status}"
12861 ac_write_fail=0
12862 ac_clean_files_save=$ac_clean_files
12863 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12865 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12866 as_write_fail=0
12867 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12868 #! $SHELL
12869 # Generated by $as_me.
12870 # Run this file to recreate the current configuration.
12871 # Compiler output produced by configure, useful for debugging
12872 # configure, is in config.log if it exists.
12873
12874 debug=false
12875 ac_cs_recheck=false
12876 ac_cs_silent=false
12877
12878 SHELL=\${CONFIG_SHELL-$SHELL}
12879 export SHELL
12880 _ASEOF
12881 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12882 ## -------------------- ##
12883 ## M4sh Initialization. ##
12884 ## -------------------- ##
12885
12886 # Be more Bourne compatible
12887 DUALCASE=1; export DUALCASE # for MKS sh
12888 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12889   emulate sh
12890   NULLCMD=:
12891   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12892   # is contrary to our usage.  Disable this feature.
12893   alias -g '${1+"$@"}'='"$@"'
12894   setopt NO_GLOB_SUBST
12895 else
12896   case `(set -o) 2>/dev/null` in #(
12897   *posix*) :
12898     set -o posix ;; #(
12899   *) :
12900      ;;
12901 esac
12902 fi
12903
12904
12905 as_nl='
12906 '
12907 export as_nl
12908 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12909 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12910 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12911 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12912 # Prefer a ksh shell builtin over an external printf program on Solaris,
12913 # but without wasting forks for bash or zsh.
12914 if test -z "$BASH_VERSION$ZSH_VERSION" \
12915     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12916   as_echo='print -r --'
12917   as_echo_n='print -rn --'
12918 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12919   as_echo='printf %s\n'
12920   as_echo_n='printf %s'
12921 else
12922   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12923     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12924     as_echo_n='/usr/ucb/echo -n'
12925   else
12926     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12927     as_echo_n_body='eval
12928       arg=$1;
12929       case $arg in #(
12930       *"$as_nl"*)
12931         expr "X$arg" : "X\\(.*\\)$as_nl";
12932         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12933       esac;
12934       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12935     '
12936     export as_echo_n_body
12937     as_echo_n='sh -c $as_echo_n_body as_echo'
12938   fi
12939   export as_echo_body
12940   as_echo='sh -c $as_echo_body as_echo'
12941 fi
12942
12943 # The user is always right.
12944 if test "${PATH_SEPARATOR+set}" != set; then
12945   PATH_SEPARATOR=:
12946   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12947     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12948       PATH_SEPARATOR=';'
12949   }
12950 fi
12951
12952
12953 # IFS
12954 # We need space, tab and new line, in precisely that order.  Quoting is
12955 # there to prevent editors from complaining about space-tab.
12956 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12957 # splitting by setting IFS to empty value.)
12958 IFS=" ""        $as_nl"
12959
12960 # Find who we are.  Look in the path if we contain no directory separator.
12961 as_myself=
12962 case $0 in #((
12963   *[\\/]* ) as_myself=$0 ;;
12964   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12965 for as_dir in $PATH
12966 do
12967   IFS=$as_save_IFS
12968   test -z "$as_dir" && as_dir=.
12969     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12970   done
12971 IFS=$as_save_IFS
12972
12973      ;;
12974 esac
12975 # We did not find ourselves, most probably we were run as `sh COMMAND'
12976 # in which case we are not to be found in the path.
12977 if test "x$as_myself" = x; then
12978   as_myself=$0
12979 fi
12980 if test ! -f "$as_myself"; then
12981   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12982   exit 1
12983 fi
12984
12985 # Unset variables that we do not need and which cause bugs (e.g. in
12986 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12987 # suppresses any "Segmentation fault" message there.  '((' could
12988 # trigger a bug in pdksh 5.2.14.
12989 for as_var in BASH_ENV ENV MAIL MAILPATH
12990 do eval test x\${$as_var+set} = xset \
12991   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12992 done
12993 PS1='$ '
12994 PS2='> '
12995 PS4='+ '
12996
12997 # NLS nuisances.
12998 LC_ALL=C
12999 export LC_ALL
13000 LANGUAGE=C
13001 export LANGUAGE
13002
13003 # CDPATH.
13004 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13005
13006
13007 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13008 # ----------------------------------------
13009 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13010 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13011 # script with STATUS, using 1 if that was 0.
13012 as_fn_error ()
13013 {
13014   as_status=$1; test $as_status -eq 0 && as_status=1
13015   if test "$4"; then
13016     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13017     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13018   fi
13019   $as_echo "$as_me: error: $2" >&2
13020   as_fn_exit $as_status
13021 } # as_fn_error
13022
13023
13024 # as_fn_set_status STATUS
13025 # -----------------------
13026 # Set $? to STATUS, without forking.
13027 as_fn_set_status ()
13028 {
13029   return $1
13030 } # as_fn_set_status
13031
13032 # as_fn_exit STATUS
13033 # -----------------
13034 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13035 as_fn_exit ()
13036 {
13037   set +e
13038   as_fn_set_status $1
13039   exit $1
13040 } # as_fn_exit
13041
13042 # as_fn_unset VAR
13043 # ---------------
13044 # Portably unset VAR.
13045 as_fn_unset ()
13046 {
13047   { eval $1=; unset $1;}
13048 }
13049 as_unset=as_fn_unset
13050 # as_fn_append VAR VALUE
13051 # ----------------------
13052 # Append the text in VALUE to the end of the definition contained in VAR. Take
13053 # advantage of any shell optimizations that allow amortized linear growth over
13054 # repeated appends, instead of the typical quadratic growth present in naive
13055 # implementations.
13056 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13057   eval 'as_fn_append ()
13058   {
13059     eval $1+=\$2
13060   }'
13061 else
13062   as_fn_append ()
13063   {
13064     eval $1=\$$1\$2
13065   }
13066 fi # as_fn_append
13067
13068 # as_fn_arith ARG...
13069 # ------------------
13070 # Perform arithmetic evaluation on the ARGs, and store the result in the
13071 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13072 # must be portable across $(()) and expr.
13073 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13074   eval 'as_fn_arith ()
13075   {
13076     as_val=$(( $* ))
13077   }'
13078 else
13079   as_fn_arith ()
13080   {
13081     as_val=`expr "$@" || test $? -eq 1`
13082   }
13083 fi # as_fn_arith
13084
13085
13086 if expr a : '\(a\)' >/dev/null 2>&1 &&
13087    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13088   as_expr=expr
13089 else
13090   as_expr=false
13091 fi
13092
13093 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13094   as_basename=basename
13095 else
13096   as_basename=false
13097 fi
13098
13099 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13100   as_dirname=dirname
13101 else
13102   as_dirname=false
13103 fi
13104
13105 as_me=`$as_basename -- "$0" ||
13106 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13107          X"$0" : 'X\(//\)$' \| \
13108          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13109 $as_echo X/"$0" |
13110     sed '/^.*\/\([^/][^/]*\)\/*$/{
13111             s//\1/
13112             q
13113           }
13114           /^X\/\(\/\/\)$/{
13115             s//\1/
13116             q
13117           }
13118           /^X\/\(\/\).*/{
13119             s//\1/
13120             q
13121           }
13122           s/.*/./; q'`
13123
13124 # Avoid depending upon Character Ranges.
13125 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13126 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13127 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13128 as_cr_digits='0123456789'
13129 as_cr_alnum=$as_cr_Letters$as_cr_digits
13130
13131 ECHO_C= ECHO_N= ECHO_T=
13132 case `echo -n x` in #(((((
13133 -n*)
13134   case `echo 'xy\c'` in
13135   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13136   xy)  ECHO_C='\c';;
13137   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13138        ECHO_T=' ';;
13139   esac;;
13140 *)
13141   ECHO_N='-n';;
13142 esac
13143
13144 rm -f conf$$ conf$$.exe conf$$.file
13145 if test -d conf$$.dir; then
13146   rm -f conf$$.dir/conf$$.file
13147 else
13148   rm -f conf$$.dir
13149   mkdir conf$$.dir 2>/dev/null
13150 fi
13151 if (echo >conf$$.file) 2>/dev/null; then
13152   if ln -s conf$$.file conf$$ 2>/dev/null; then
13153     as_ln_s='ln -s'
13154     # ... but there are two gotchas:
13155     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13156     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13157     # In both cases, we have to default to `cp -pR'.
13158     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13159       as_ln_s='cp -pR'
13160   elif ln conf$$.file conf$$ 2>/dev/null; then
13161     as_ln_s=ln
13162   else
13163     as_ln_s='cp -pR'
13164   fi
13165 else
13166   as_ln_s='cp -pR'
13167 fi
13168 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13169 rmdir conf$$.dir 2>/dev/null
13170
13171
13172 # as_fn_mkdir_p
13173 # -------------
13174 # Create "$as_dir" as a directory, including parents if necessary.
13175 as_fn_mkdir_p ()
13176 {
13177
13178   case $as_dir in #(
13179   -*) as_dir=./$as_dir;;
13180   esac
13181   test -d "$as_dir" || eval $as_mkdir_p || {
13182     as_dirs=
13183     while :; do
13184       case $as_dir in #(
13185       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13186       *) as_qdir=$as_dir;;
13187       esac
13188       as_dirs="'$as_qdir' $as_dirs"
13189       as_dir=`$as_dirname -- "$as_dir" ||
13190 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13191          X"$as_dir" : 'X\(//\)[^/]' \| \
13192          X"$as_dir" : 'X\(//\)$' \| \
13193          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13194 $as_echo X"$as_dir" |
13195     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13196             s//\1/
13197             q
13198           }
13199           /^X\(\/\/\)[^/].*/{
13200             s//\1/
13201             q
13202           }
13203           /^X\(\/\/\)$/{
13204             s//\1/
13205             q
13206           }
13207           /^X\(\/\).*/{
13208             s//\1/
13209             q
13210           }
13211           s/.*/./; q'`
13212       test -d "$as_dir" && break
13213     done
13214     test -z "$as_dirs" || eval "mkdir $as_dirs"
13215   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13216
13217
13218 } # as_fn_mkdir_p
13219 if mkdir -p . 2>/dev/null; then
13220   as_mkdir_p='mkdir -p "$as_dir"'
13221 else
13222   test -d ./-p && rmdir ./-p
13223   as_mkdir_p=false
13224 fi
13225
13226
13227 # as_fn_executable_p FILE
13228 # -----------------------
13229 # Test if FILE is an executable regular file.
13230 as_fn_executable_p ()
13231 {
13232   test -f "$1" && test -x "$1"
13233 } # as_fn_executable_p
13234 as_test_x='test -x'
13235 as_executable_p=as_fn_executable_p
13236
13237 # Sed expression to map a string onto a valid CPP name.
13238 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13239
13240 # Sed expression to map a string onto a valid variable name.
13241 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13242
13243
13244 exec 6>&1
13245 ## ----------------------------------- ##
13246 ## Main body of $CONFIG_STATUS script. ##
13247 ## ----------------------------------- ##
13248 _ASEOF
13249 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13250
13251 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13252 # Save the log message, to keep $0 and so on meaningful, and to
13253 # report actual input values of CONFIG_FILES etc. instead of their
13254 # values after options handling.
13255 ac_log="
13256 This file was extended by exfatprogs $as_me 1.0.3, which was
13257 generated by GNU Autoconf 2.69.  Invocation command line was
13258
13259   CONFIG_FILES    = $CONFIG_FILES
13260   CONFIG_HEADERS  = $CONFIG_HEADERS
13261   CONFIG_LINKS    = $CONFIG_LINKS
13262   CONFIG_COMMANDS = $CONFIG_COMMANDS
13263   $ $0 $@
13264
13265 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13266 "
13267
13268 _ACEOF
13269
13270 case $ac_config_files in *"
13271 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13272 esac
13273
13274 case $ac_config_headers in *"
13275 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13276 esac
13277
13278
13279 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13280 # Files that config.status was made for.
13281 config_files="$ac_config_files"
13282 config_headers="$ac_config_headers"
13283 config_commands="$ac_config_commands"
13284
13285 _ACEOF
13286
13287 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13288 ac_cs_usage="\
13289 \`$as_me' instantiates files and other configuration actions
13290 from templates according to the current configuration.  Unless the files
13291 and actions are specified as TAGs, all are instantiated by default.
13292
13293 Usage: $0 [OPTION]... [TAG]...
13294
13295   -h, --help       print this help, then exit
13296   -V, --version    print version number and configuration settings, then exit
13297       --config     print configuration, then exit
13298   -q, --quiet, --silent
13299                    do not print progress messages
13300   -d, --debug      don't remove temporary files
13301       --recheck    update $as_me by reconfiguring in the same conditions
13302       --file=FILE[:TEMPLATE]
13303                    instantiate the configuration file FILE
13304       --header=FILE[:TEMPLATE]
13305                    instantiate the configuration header FILE
13306
13307 Configuration files:
13308 $config_files
13309
13310 Configuration headers:
13311 $config_headers
13312
13313 Configuration commands:
13314 $config_commands
13315
13316 Report bugs to <linkinjeon@kernel.org>.
13317 exfatprogs home page: <https://github.com/exfatprogs/exfatprogs>."
13318
13319 _ACEOF
13320 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13321 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13322 ac_cs_version="\\
13323 exfatprogs config.status 1.0.3
13324 configured by $0, generated by GNU Autoconf 2.69,
13325   with options \\"\$ac_cs_config\\"
13326
13327 Copyright (C) 2012 Free Software Foundation, Inc.
13328 This config.status script is free software; the Free Software Foundation
13329 gives unlimited permission to copy, distribute and modify it."
13330
13331 ac_pwd='$ac_pwd'
13332 srcdir='$srcdir'
13333 INSTALL='$INSTALL'
13334 MKDIR_P='$MKDIR_P'
13335 AWK='$AWK'
13336 test -n "\$AWK" || AWK=awk
13337 _ACEOF
13338
13339 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13340 # The default lists apply if the user does not specify any file.
13341 ac_need_defaults=:
13342 while test $# != 0
13343 do
13344   case $1 in
13345   --*=?*)
13346     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13347     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13348     ac_shift=:
13349     ;;
13350   --*=)
13351     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13352     ac_optarg=
13353     ac_shift=:
13354     ;;
13355   *)
13356     ac_option=$1
13357     ac_optarg=$2
13358     ac_shift=shift
13359     ;;
13360   esac
13361
13362   case $ac_option in
13363   # Handling of the options.
13364   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13365     ac_cs_recheck=: ;;
13366   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13367     $as_echo "$ac_cs_version"; exit ;;
13368   --config | --confi | --conf | --con | --co | --c )
13369     $as_echo "$ac_cs_config"; exit ;;
13370   --debug | --debu | --deb | --de | --d | -d )
13371     debug=: ;;
13372   --file | --fil | --fi | --f )
13373     $ac_shift
13374     case $ac_optarg in
13375     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13376     '') as_fn_error $? "missing file argument" ;;
13377     esac
13378     as_fn_append CONFIG_FILES " '$ac_optarg'"
13379     ac_need_defaults=false;;
13380   --header | --heade | --head | --hea )
13381     $ac_shift
13382     case $ac_optarg in
13383     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13384     esac
13385     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13386     ac_need_defaults=false;;
13387   --he | --h)
13388     # Conflict between --help and --header
13389     as_fn_error $? "ambiguous option: \`$1'
13390 Try \`$0 --help' for more information.";;
13391   --help | --hel | -h )
13392     $as_echo "$ac_cs_usage"; exit ;;
13393   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13394   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13395     ac_cs_silent=: ;;
13396
13397   # This is an error.
13398   -*) as_fn_error $? "unrecognized option: \`$1'
13399 Try \`$0 --help' for more information." ;;
13400
13401   *) as_fn_append ac_config_targets " $1"
13402      ac_need_defaults=false ;;
13403
13404   esac
13405   shift
13406 done
13407
13408 ac_configure_extra_args=
13409
13410 if $ac_cs_silent; then
13411   exec 6>/dev/null
13412   ac_configure_extra_args="$ac_configure_extra_args --silent"
13413 fi
13414
13415 _ACEOF
13416 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13417 if \$ac_cs_recheck; then
13418   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13419   shift
13420   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13421   CONFIG_SHELL='$SHELL'
13422   export CONFIG_SHELL
13423   exec "\$@"
13424 fi
13425
13426 _ACEOF
13427 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13428 exec 5>>config.log
13429 {
13430   echo
13431   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13432 ## Running $as_me. ##
13433 _ASBOX
13434   $as_echo "$ac_log"
13435 } >&5
13436
13437 _ACEOF
13438 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13439 #
13440 # INIT-COMMANDS
13441 #
13442 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13443
13444
13445 # The HP-UX ksh and POSIX shell print the target directory to stdout
13446 # if CDPATH is set.
13447 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13448
13449 sed_quote_subst='$sed_quote_subst'
13450 double_quote_subst='$double_quote_subst'
13451 delay_variable_subst='$delay_variable_subst'
13452 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13453 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13454 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13455 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13456 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13457 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13458 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
13459 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13460 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13461 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13462 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13463 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13464 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13465 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13466 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13467 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13468 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13469 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13470 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13471 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13472 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13473 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13474 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13475 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13476 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13477 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13478 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13479 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13480 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13481 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13482 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13483 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13484 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13485 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13486 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13487 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13488 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13489 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13490 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13491 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13492 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13493 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13494 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13495 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13496 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13497 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13498 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13499 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13500 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13501 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13502 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13503 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13504 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13505 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13506 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13507 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13508 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
13509 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13510 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"`'
13511 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
13512 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13513 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13514 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
13515 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13516 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13517 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13518 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13519 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13520 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13521 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13522 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13523 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13524 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13525 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13526 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13527 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13528 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13529 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13530 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13531 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13532 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13533 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13534 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13535 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13536 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13537 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13538 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13539 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13540 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13541 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13542 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13543 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13544 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13545 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13546 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13547 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13548 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13549 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13550 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13551 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13552 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13553 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13554 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13555 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13556 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13557 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13558 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13559 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13560 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13561 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13562 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13563 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13564 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13565 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13566 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13567 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13568 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13569 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13570 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13571 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13572 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13573 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13574 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13575 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13576 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13577 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13578 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13579 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
13580 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
13581 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13582 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13583 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13584 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13585 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13586 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13587
13588 LTCC='$LTCC'
13589 LTCFLAGS='$LTCFLAGS'
13590 compiler='$compiler_DEFAULT'
13591
13592 # A function that is used when there is no print builtin or printf.
13593 func_fallback_echo ()
13594 {
13595   eval 'cat <<_LTECHO_EOF
13596 \$1
13597 _LTECHO_EOF'
13598 }
13599
13600 # Quote evaled strings.
13601 for var in SHELL \
13602 ECHO \
13603 PATH_SEPARATOR \
13604 SED \
13605 GREP \
13606 EGREP \
13607 FGREP \
13608 LD \
13609 NM \
13610 LN_S \
13611 lt_SP2NL \
13612 lt_NL2SP \
13613 reload_flag \
13614 OBJDUMP \
13615 deplibs_check_method \
13616 file_magic_cmd \
13617 file_magic_glob \
13618 want_nocaseglob \
13619 DLLTOOL \
13620 sharedlib_from_linklib_cmd \
13621 AR \
13622 AR_FLAGS \
13623 archiver_list_spec \
13624 STRIP \
13625 RANLIB \
13626 CC \
13627 CFLAGS \
13628 compiler \
13629 lt_cv_sys_global_symbol_pipe \
13630 lt_cv_sys_global_symbol_to_cdecl \
13631 lt_cv_sys_global_symbol_to_import \
13632 lt_cv_sys_global_symbol_to_c_name_address \
13633 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13634 lt_cv_nm_interface \
13635 nm_file_list_spec \
13636 lt_cv_truncate_bin \
13637 lt_prog_compiler_no_builtin_flag \
13638 lt_prog_compiler_pic \
13639 lt_prog_compiler_wl \
13640 lt_prog_compiler_static \
13641 lt_cv_prog_compiler_c_o \
13642 need_locks \
13643 MANIFEST_TOOL \
13644 DSYMUTIL \
13645 NMEDIT \
13646 LIPO \
13647 OTOOL \
13648 OTOOL64 \
13649 shrext_cmds \
13650 export_dynamic_flag_spec \
13651 whole_archive_flag_spec \
13652 compiler_needs_object \
13653 with_gnu_ld \
13654 allow_undefined_flag \
13655 no_undefined_flag \
13656 hardcode_libdir_flag_spec \
13657 hardcode_libdir_separator \
13658 exclude_expsyms \
13659 include_expsyms \
13660 file_list_spec \
13661 variables_saved_for_relink \
13662 libname_spec \
13663 library_names_spec \
13664 soname_spec \
13665 install_override_mode \
13666 finish_eval \
13667 old_striplib \
13668 striplib; do
13669     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13670     *[\\\\\\\`\\"\\\$]*)
13671       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13672       ;;
13673     *)
13674       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13675       ;;
13676     esac
13677 done
13678
13679 # Double-quote double-evaled strings.
13680 for var in reload_cmds \
13681 old_postinstall_cmds \
13682 old_postuninstall_cmds \
13683 old_archive_cmds \
13684 extract_expsyms_cmds \
13685 old_archive_from_new_cmds \
13686 old_archive_from_expsyms_cmds \
13687 archive_cmds \
13688 archive_expsym_cmds \
13689 module_cmds \
13690 module_expsym_cmds \
13691 export_symbols_cmds \
13692 prelink_cmds \
13693 postlink_cmds \
13694 postinstall_cmds \
13695 postuninstall_cmds \
13696 finish_cmds \
13697 sys_lib_search_path_spec \
13698 configure_time_dlsearch_path \
13699 configure_time_lt_sys_library_path; do
13700     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13701     *[\\\\\\\`\\"\\\$]*)
13702       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13703       ;;
13704     *)
13705       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13706       ;;
13707     esac
13708 done
13709
13710 ac_aux_dir='$ac_aux_dir'
13711
13712 # See if we are running on zsh, and set the options that allow our
13713 # commands through without removal of \ escapes INIT.
13714 if test -n "\${ZSH_VERSION+set}"; then
13715    setopt NO_GLOB_SUBST
13716 fi
13717
13718
13719     PACKAGE='$PACKAGE'
13720     VERSION='$VERSION'
13721     RM='$RM'
13722     ofile='$ofile'
13723
13724
13725
13726
13727 _ACEOF
13728
13729 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13730
13731 # Handling of arguments.
13732 for ac_config_target in $ac_config_targets
13733 do
13734   case $ac_config_target in
13735     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13736     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13737     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13738     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13739     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
13740     "mkfs/Makefile") CONFIG_FILES="$CONFIG_FILES mkfs/Makefile" ;;
13741     "fsck/Makefile") CONFIG_FILES="$CONFIG_FILES fsck/Makefile" ;;
13742     "tune/Makefile") CONFIG_FILES="$CONFIG_FILES tune/Makefile" ;;
13743
13744   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13745   esac
13746 done
13747
13748
13749 # If the user did not use the arguments to specify the items to instantiate,
13750 # then the envvar interface is used.  Set only those that are not.
13751 # We use the long form for the default assignment because of an extremely
13752 # bizarre bug on SunOS 4.1.3.
13753 if $ac_need_defaults; then
13754   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13755   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13756   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13757 fi
13758
13759 # Have a temporary directory for convenience.  Make it in the build tree
13760 # simply because there is no reason against having it here, and in addition,
13761 # creating and moving files from /tmp can sometimes cause problems.
13762 # Hook for its removal unless debugging.
13763 # Note that there is a small window in which the directory will not be cleaned:
13764 # after its creation but before its name has been assigned to `$tmp'.
13765 $debug ||
13766 {
13767   tmp= ac_tmp=
13768   trap 'exit_status=$?
13769   : "${ac_tmp:=$tmp}"
13770   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13771 ' 0
13772   trap 'as_fn_exit 1' 1 2 13 15
13773 }
13774 # Create a (secure) tmp directory for tmp files.
13775
13776 {
13777   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13778   test -d "$tmp"
13779 }  ||
13780 {
13781   tmp=./conf$$-$RANDOM
13782   (umask 077 && mkdir "$tmp")
13783 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13784 ac_tmp=$tmp
13785
13786 # Set up the scripts for CONFIG_FILES section.
13787 # No need to generate them if there are no CONFIG_FILES.
13788 # This happens for instance with `./config.status config.h'.
13789 if test -n "$CONFIG_FILES"; then
13790
13791
13792 ac_cr=`echo X | tr X '\015'`
13793 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13794 # But we know of no other shell where ac_cr would be empty at this
13795 # point, so we can use a bashism as a fallback.
13796 if test "x$ac_cr" = x; then
13797   eval ac_cr=\$\'\\r\'
13798 fi
13799 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13800 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13801   ac_cs_awk_cr='\\r'
13802 else
13803   ac_cs_awk_cr=$ac_cr
13804 fi
13805
13806 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13807 _ACEOF
13808
13809
13810 {
13811   echo "cat >conf$$subs.awk <<_ACEOF" &&
13812   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13813   echo "_ACEOF"
13814 } >conf$$subs.sh ||
13815   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13816 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13817 ac_delim='%!_!# '
13818 for ac_last_try in false false false false false :; do
13819   . ./conf$$subs.sh ||
13820     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13821
13822   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13823   if test $ac_delim_n = $ac_delim_num; then
13824     break
13825   elif $ac_last_try; then
13826     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13827   else
13828     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13829   fi
13830 done
13831 rm -f conf$$subs.sh
13832
13833 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13834 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13835 _ACEOF
13836 sed -n '
13837 h
13838 s/^/S["/; s/!.*/"]=/
13839 p
13840 g
13841 s/^[^!]*!//
13842 :repl
13843 t repl
13844 s/'"$ac_delim"'$//
13845 t delim
13846 :nl
13847 h
13848 s/\(.\{148\}\)..*/\1/
13849 t more1
13850 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13851 p
13852 n
13853 b repl
13854 :more1
13855 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13856 p
13857 g
13858 s/.\{148\}//
13859 t nl
13860 :delim
13861 h
13862 s/\(.\{148\}\)..*/\1/
13863 t more2
13864 s/["\\]/\\&/g; s/^/"/; s/$/"/
13865 p
13866 b
13867 :more2
13868 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13869 p
13870 g
13871 s/.\{148\}//
13872 t delim
13873 ' <conf$$subs.awk | sed '
13874 /^[^""]/{
13875   N
13876   s/\n//
13877 }
13878 ' >>$CONFIG_STATUS || ac_write_fail=1
13879 rm -f conf$$subs.awk
13880 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13881 _ACAWK
13882 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13883   for (key in S) S_is_set[key] = 1
13884   FS = "\a"
13885
13886 }
13887 {
13888   line = $ 0
13889   nfields = split(line, field, "@")
13890   substed = 0
13891   len = length(field[1])
13892   for (i = 2; i < nfields; i++) {
13893     key = field[i]
13894     keylen = length(key)
13895     if (S_is_set[key]) {
13896       value = S[key]
13897       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13898       len += length(value) + length(field[++i])
13899       substed = 1
13900     } else
13901       len += 1 + keylen
13902   }
13903
13904   print line
13905 }
13906
13907 _ACAWK
13908 _ACEOF
13909 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13910 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13911   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13912 else
13913   cat
13914 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13915   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13916 _ACEOF
13917
13918 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13919 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13920 # trailing colons and then remove the whole line if VPATH becomes empty
13921 # (actually we leave an empty line to preserve line numbers).
13922 if test "x$srcdir" = x.; then
13923   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
13924 h
13925 s///
13926 s/^/:/
13927 s/[      ]*$/:/
13928 s/:\$(srcdir):/:/g
13929 s/:\${srcdir}:/:/g
13930 s/:@srcdir@:/:/g
13931 s/^:*//
13932 s/:*$//
13933 x
13934 s/\(=[   ]*\).*/\1/
13935 G
13936 s/\n//
13937 s/^[^=]*=[       ]*$//
13938 }'
13939 fi
13940
13941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13942 fi # test -n "$CONFIG_FILES"
13943
13944 # Set up the scripts for CONFIG_HEADERS section.
13945 # No need to generate them if there are no CONFIG_HEADERS.
13946 # This happens for instance with `./config.status Makefile'.
13947 if test -n "$CONFIG_HEADERS"; then
13948 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13949 BEGIN {
13950 _ACEOF
13951
13952 # Transform confdefs.h into an awk script `defines.awk', embedded as
13953 # here-document in config.status, that substitutes the proper values into
13954 # config.h.in to produce config.h.
13955
13956 # Create a delimiter string that does not exist in confdefs.h, to ease
13957 # handling of long lines.
13958 ac_delim='%!_!# '
13959 for ac_last_try in false false :; do
13960   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13961   if test -z "$ac_tt"; then
13962     break
13963   elif $ac_last_try; then
13964     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13965   else
13966     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13967   fi
13968 done
13969
13970 # For the awk script, D is an array of macro values keyed by name,
13971 # likewise P contains macro parameters if any.  Preserve backslash
13972 # newline sequences.
13973
13974 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13975 sed -n '
13976 s/.\{148\}/&'"$ac_delim"'/g
13977 t rset
13978 :rset
13979 s/^[     ]*#[    ]*define[       ][      ]*/ /
13980 t def
13981 d
13982 :def
13983 s/\\$//
13984 t bsnl
13985 s/["\\]/\\&/g
13986 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13987 D["\1"]=" \3"/p
13988 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
13989 d
13990 :bsnl
13991 s/["\\]/\\&/g
13992 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13993 D["\1"]=" \3\\\\\\n"\\/p
13994 t cont
13995 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13996 t cont
13997 d
13998 :cont
13999 n
14000 s/.\{148\}/&'"$ac_delim"'/g
14001 t clear
14002 :clear
14003 s/\\$//
14004 t bsnlc
14005 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14006 d
14007 :bsnlc
14008 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14009 b cont
14010 ' <confdefs.h | sed '
14011 s/'"$ac_delim"'/"\\\
14012 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14013
14014 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14015   for (key in D) D_is_set[key] = 1
14016   FS = "\a"
14017 }
14018 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14019   line = \$ 0
14020   split(line, arg, " ")
14021   if (arg[1] == "#") {
14022     defundef = arg[2]
14023     mac1 = arg[3]
14024   } else {
14025     defundef = substr(arg[1], 2)
14026     mac1 = arg[2]
14027   }
14028   split(mac1, mac2, "(") #)
14029   macro = mac2[1]
14030   prefix = substr(line, 1, index(line, defundef) - 1)
14031   if (D_is_set[macro]) {
14032     # Preserve the white space surrounding the "#".
14033     print prefix "define", macro P[macro] D[macro]
14034     next
14035   } else {
14036     # Replace #undef with comments.  This is necessary, for example,
14037     # in the case of _POSIX_SOURCE, which is predefined and required
14038     # on some systems where configure will not decide to define it.
14039     if (defundef == "undef") {
14040       print "/*", prefix defundef, macro, "*/"
14041       next
14042     }
14043   }
14044 }
14045 { print }
14046 _ACAWK
14047 _ACEOF
14048 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14049   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14050 fi # test -n "$CONFIG_HEADERS"
14051
14052
14053 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14054 shift
14055 for ac_tag
14056 do
14057   case $ac_tag in
14058   :[FHLC]) ac_mode=$ac_tag; continue;;
14059   esac
14060   case $ac_mode$ac_tag in
14061   :[FHL]*:*);;
14062   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14063   :[FH]-) ac_tag=-:-;;
14064   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14065   esac
14066   ac_save_IFS=$IFS
14067   IFS=:
14068   set x $ac_tag
14069   IFS=$ac_save_IFS
14070   shift
14071   ac_file=$1
14072   shift
14073
14074   case $ac_mode in
14075   :L) ac_source=$1;;
14076   :[FH])
14077     ac_file_inputs=
14078     for ac_f
14079     do
14080       case $ac_f in
14081       -) ac_f="$ac_tmp/stdin";;
14082       *) # Look for the file first in the build tree, then in the source tree
14083          # (if the path is not absolute).  The absolute path cannot be DOS-style,
14084          # because $ac_f cannot contain `:'.
14085          test -f "$ac_f" ||
14086            case $ac_f in
14087            [\\/$]*) false;;
14088            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14089            esac ||
14090            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14091       esac
14092       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14093       as_fn_append ac_file_inputs " '$ac_f'"
14094     done
14095
14096     # Let's still pretend it is `configure' which instantiates (i.e., don't
14097     # use $as_me), people would be surprised to read:
14098     #    /* config.h.  Generated by config.status.  */
14099     configure_input='Generated from '`
14100           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14101         `' by configure.'
14102     if test x"$ac_file" != x-; then
14103       configure_input="$ac_file.  $configure_input"
14104       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14105 $as_echo "$as_me: creating $ac_file" >&6;}
14106     fi
14107     # Neutralize special characters interpreted by sed in replacement strings.
14108     case $configure_input in #(
14109     *\&* | *\|* | *\\* )
14110        ac_sed_conf_input=`$as_echo "$configure_input" |
14111        sed 's/[\\\\&|]/\\\\&/g'`;; #(
14112     *) ac_sed_conf_input=$configure_input;;
14113     esac
14114
14115     case $ac_tag in
14116     *:-:* | *:-) cat >"$ac_tmp/stdin" \
14117       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14118     esac
14119     ;;
14120   esac
14121
14122   ac_dir=`$as_dirname -- "$ac_file" ||
14123 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14124          X"$ac_file" : 'X\(//\)[^/]' \| \
14125          X"$ac_file" : 'X\(//\)$' \| \
14126          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14127 $as_echo X"$ac_file" |
14128     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14129             s//\1/
14130             q
14131           }
14132           /^X\(\/\/\)[^/].*/{
14133             s//\1/
14134             q
14135           }
14136           /^X\(\/\/\)$/{
14137             s//\1/
14138             q
14139           }
14140           /^X\(\/\).*/{
14141             s//\1/
14142             q
14143           }
14144           s/.*/./; q'`
14145   as_dir="$ac_dir"; as_fn_mkdir_p
14146   ac_builddir=.
14147
14148 case "$ac_dir" in
14149 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14150 *)
14151   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14152   # A ".." for each directory in $ac_dir_suffix.
14153   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14154   case $ac_top_builddir_sub in
14155   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14156   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14157   esac ;;
14158 esac
14159 ac_abs_top_builddir=$ac_pwd
14160 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14161 # for backward compatibility:
14162 ac_top_builddir=$ac_top_build_prefix
14163
14164 case $srcdir in
14165   .)  # We are building in place.
14166     ac_srcdir=.
14167     ac_top_srcdir=$ac_top_builddir_sub
14168     ac_abs_top_srcdir=$ac_pwd ;;
14169   [\\/]* | ?:[\\/]* )  # Absolute name.
14170     ac_srcdir=$srcdir$ac_dir_suffix;
14171     ac_top_srcdir=$srcdir
14172     ac_abs_top_srcdir=$srcdir ;;
14173   *) # Relative name.
14174     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14175     ac_top_srcdir=$ac_top_build_prefix$srcdir
14176     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14177 esac
14178 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14179
14180
14181   case $ac_mode in
14182   :F)
14183   #
14184   # CONFIG_FILE
14185   #
14186
14187   case $INSTALL in
14188   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14189   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14190   esac
14191   ac_MKDIR_P=$MKDIR_P
14192   case $MKDIR_P in
14193   [\\/$]* | ?:[\\/]* ) ;;
14194   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14195   esac
14196 _ACEOF
14197
14198 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14199 # If the template does not know about datarootdir, expand it.
14200 # FIXME: This hack should be removed a few years after 2.60.
14201 ac_datarootdir_hack=; ac_datarootdir_seen=
14202 ac_sed_dataroot='
14203 /datarootdir/ {
14204   p
14205   q
14206 }
14207 /@datadir@/p
14208 /@docdir@/p
14209 /@infodir@/p
14210 /@localedir@/p
14211 /@mandir@/p'
14212 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14213 *datarootdir*) ac_datarootdir_seen=yes;;
14214 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14215   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14216 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14217 _ACEOF
14218 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14219   ac_datarootdir_hack='
14220   s&@datadir@&$datadir&g
14221   s&@docdir@&$docdir&g
14222   s&@infodir@&$infodir&g
14223   s&@localedir@&$localedir&g
14224   s&@mandir@&$mandir&g
14225   s&\\\${datarootdir}&$datarootdir&g' ;;
14226 esac
14227 _ACEOF
14228
14229 # Neutralize VPATH when `$srcdir' = `.'.
14230 # Shell code in configure.ac might set extrasub.
14231 # FIXME: do we really want to maintain this feature?
14232 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14233 ac_sed_extra="$ac_vpsub
14234 $extrasub
14235 _ACEOF
14236 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14237 :t
14238 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14239 s|@configure_input@|$ac_sed_conf_input|;t t
14240 s&@top_builddir@&$ac_top_builddir_sub&;t t
14241 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14242 s&@srcdir@&$ac_srcdir&;t t
14243 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14244 s&@top_srcdir@&$ac_top_srcdir&;t t
14245 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14246 s&@builddir@&$ac_builddir&;t t
14247 s&@abs_builddir@&$ac_abs_builddir&;t t
14248 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14249 s&@INSTALL@&$ac_INSTALL&;t t
14250 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14251 $ac_datarootdir_hack
14252 "
14253 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14254   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14255
14256 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14257   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14258   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
14259       "$ac_tmp/out"`; test -z "$ac_out"; } &&
14260   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14261 which seems to be undefined.  Please make sure it is defined" >&5
14262 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14263 which seems to be undefined.  Please make sure it is defined" >&2;}
14264
14265   rm -f "$ac_tmp/stdin"
14266   case $ac_file in
14267   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14268   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14269   esac \
14270   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14271  ;;
14272   :H)
14273   #
14274   # CONFIG_HEADER
14275   #
14276   if test x"$ac_file" != x-; then
14277     {
14278       $as_echo "/* $configure_input  */" \
14279       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14280     } >"$ac_tmp/config.h" \
14281       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14282     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14283       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14284 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14285     else
14286       rm -f "$ac_file"
14287       mv "$ac_tmp/config.h" "$ac_file" \
14288         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14289     fi
14290   else
14291     $as_echo "/* $configure_input  */" \
14292       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14293       || as_fn_error $? "could not create -" "$LINENO" 5
14294   fi
14295 # Compute "$ac_file"'s index in $config_headers.
14296 _am_arg="$ac_file"
14297 _am_stamp_count=1
14298 for _am_header in $config_headers :; do
14299   case $_am_header in
14300     $_am_arg | $_am_arg:* )
14301       break ;;
14302     * )
14303       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14304   esac
14305 done
14306 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14307 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14308          X"$_am_arg" : 'X\(//\)[^/]' \| \
14309          X"$_am_arg" : 'X\(//\)$' \| \
14310          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14311 $as_echo X"$_am_arg" |
14312     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14313             s//\1/
14314             q
14315           }
14316           /^X\(\/\/\)[^/].*/{
14317             s//\1/
14318             q
14319           }
14320           /^X\(\/\/\)$/{
14321             s//\1/
14322             q
14323           }
14324           /^X\(\/\).*/{
14325             s//\1/
14326             q
14327           }
14328           s/.*/./; q'`/stamp-h$_am_stamp_count
14329  ;;
14330
14331   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14332 $as_echo "$as_me: executing $ac_file commands" >&6;}
14333  ;;
14334   esac
14335
14336
14337   case $ac_file$ac_mode in
14338     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14339   # Older Autoconf quotes --file arguments for eval, but not when files
14340   # are listed without --file.  Let's play safe and only enable the eval
14341   # if we detect the quoting.
14342   case $CONFIG_FILES in
14343   *\'*) eval set x "$CONFIG_FILES" ;;
14344   *)   set x $CONFIG_FILES ;;
14345   esac
14346   shift
14347   for mf
14348   do
14349     # Strip MF so we end up with the name of the file.
14350     mf=`echo "$mf" | sed -e 's/:.*$//'`
14351     # Check whether this is an Automake generated Makefile or not.
14352     # We used to match only the files named 'Makefile.in', but
14353     # some people rename them; so instead we look at the file content.
14354     # Grep'ing the first line is not enough: some people post-process
14355     # each Makefile.in and add a new line on top of each file to say so.
14356     # Grep'ing the whole file is not good either: AIX grep has a line
14357     # limit of 2048, but all sed's we know have understand at least 4000.
14358     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14359       dirpart=`$as_dirname -- "$mf" ||
14360 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14361          X"$mf" : 'X\(//\)[^/]' \| \
14362          X"$mf" : 'X\(//\)$' \| \
14363          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14364 $as_echo X"$mf" |
14365     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14366             s//\1/
14367             q
14368           }
14369           /^X\(\/\/\)[^/].*/{
14370             s//\1/
14371             q
14372           }
14373           /^X\(\/\/\)$/{
14374             s//\1/
14375             q
14376           }
14377           /^X\(\/\).*/{
14378             s//\1/
14379             q
14380           }
14381           s/.*/./; q'`
14382     else
14383       continue
14384     fi
14385     # Extract the definition of DEPDIR, am__include, and am__quote
14386     # from the Makefile without running 'make'.
14387     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14388     test -z "$DEPDIR" && continue
14389     am__include=`sed -n 's/^am__include = //p' < "$mf"`
14390     test -z "$am__include" && continue
14391     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14392     # Find all dependency output files, they are included files with
14393     # $(DEPDIR) in their names.  We invoke sed twice because it is the
14394     # simplest approach to changing $(DEPDIR) to its actual value in the
14395     # expansion.
14396     for file in `sed -n "
14397       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14398          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14399       # Make sure the directory exists.
14400       test -f "$dirpart/$file" && continue
14401       fdir=`$as_dirname -- "$file" ||
14402 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14403          X"$file" : 'X\(//\)[^/]' \| \
14404          X"$file" : 'X\(//\)$' \| \
14405          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14406 $as_echo X"$file" |
14407     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14408             s//\1/
14409             q
14410           }
14411           /^X\(\/\/\)[^/].*/{
14412             s//\1/
14413             q
14414           }
14415           /^X\(\/\/\)$/{
14416             s//\1/
14417             q
14418           }
14419           /^X\(\/\).*/{
14420             s//\1/
14421             q
14422           }
14423           s/.*/./; q'`
14424       as_dir=$dirpart/$fdir; as_fn_mkdir_p
14425       # echo "creating $dirpart/$file"
14426       echo '# dummy' > "$dirpart/$file"
14427     done
14428   done
14429 }
14430  ;;
14431     "libtool":C)
14432
14433     # See if we are running on zsh, and set the options that allow our
14434     # commands through without removal of \ escapes.
14435     if test -n "${ZSH_VERSION+set}"; then
14436       setopt NO_GLOB_SUBST
14437     fi
14438
14439     cfgfile=${ofile}T
14440     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14441     $RM "$cfgfile"
14442
14443     cat <<_LT_EOF >> "$cfgfile"
14444 #! $SHELL
14445 # Generated automatically by $as_me ($PACKAGE) $VERSION
14446 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14447
14448 # Provide generalized library-building support services.
14449 # Written by Gordon Matzigkeit, 1996
14450
14451 # Copyright (C) 2014 Free Software Foundation, Inc.
14452 # This is free software; see the source for copying conditions.  There is NO
14453 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14454
14455 # GNU Libtool is free software; you can redistribute it and/or modify
14456 # it under the terms of the GNU General Public License as published by
14457 # the Free Software Foundation; either version 2 of of the License, or
14458 # (at your option) any later version.
14459 #
14460 # As a special exception to the GNU General Public License, if you
14461 # distribute this file as part of a program or library that is built
14462 # using GNU Libtool, you may include this file under the  same
14463 # distribution terms that you use for the rest of that program.
14464 #
14465 # GNU Libtool is distributed in the hope that it will be useful, but
14466 # WITHOUT ANY WARRANTY; without even the implied warranty of
14467 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14468 # GNU General Public License for more details.
14469 #
14470 # You should have received a copy of the GNU General Public License
14471 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
14472
14473
14474 # The names of the tagged configurations supported by this script.
14475 available_tags=''
14476
14477 # Configured defaults for sys_lib_dlsearch_path munging.
14478 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
14479
14480 # ### BEGIN LIBTOOL CONFIG
14481
14482 # Which release of libtool.m4 was used?
14483 macro_version=$macro_version
14484 macro_revision=$macro_revision
14485
14486 # Whether or not to build shared libraries.
14487 build_libtool_libs=$enable_shared
14488
14489 # Whether or not to build static libraries.
14490 build_old_libs=$enable_static
14491
14492 # What type of objects to build.
14493 pic_mode=$pic_mode
14494
14495 # Whether or not to optimize for fast installation.
14496 fast_install=$enable_fast_install
14497
14498 # Shared archive member basename,for filename based shared library versioning on AIX.
14499 shared_archive_member_spec=$shared_archive_member_spec
14500
14501 # Shell to use when invoking shell scripts.
14502 SHELL=$lt_SHELL
14503
14504 # An echo program that protects backslashes.
14505 ECHO=$lt_ECHO
14506
14507 # The PATH separator for the build system.
14508 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14509
14510 # The host system.
14511 host_alias=$host_alias
14512 host=$host
14513 host_os=$host_os
14514
14515 # The build system.
14516 build_alias=$build_alias
14517 build=$build
14518 build_os=$build_os
14519
14520 # A sed program that does not truncate output.
14521 SED=$lt_SED
14522
14523 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14524 Xsed="\$SED -e 1s/^X//"
14525
14526 # A grep program that handles long lines.
14527 GREP=$lt_GREP
14528
14529 # An ERE matcher.
14530 EGREP=$lt_EGREP
14531
14532 # A literal string matcher.
14533 FGREP=$lt_FGREP
14534
14535 # A BSD- or MS-compatible name lister.
14536 NM=$lt_NM
14537
14538 # Whether we need soft or hard links.
14539 LN_S=$lt_LN_S
14540
14541 # What is the maximum length of a command?
14542 max_cmd_len=$max_cmd_len
14543
14544 # Object file suffix (normally "o").
14545 objext=$ac_objext
14546
14547 # Executable file suffix (normally "").
14548 exeext=$exeext
14549
14550 # whether the shell understands "unset".
14551 lt_unset=$lt_unset
14552
14553 # turn spaces into newlines.
14554 SP2NL=$lt_lt_SP2NL
14555
14556 # turn newlines into spaces.
14557 NL2SP=$lt_lt_NL2SP
14558
14559 # convert \$build file names to \$host format.
14560 to_host_file_cmd=$lt_cv_to_host_file_cmd
14561
14562 # convert \$build files to toolchain format.
14563 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14564
14565 # An object symbol dumper.
14566 OBJDUMP=$lt_OBJDUMP
14567
14568 # Method to check whether dependent libraries are shared objects.
14569 deplibs_check_method=$lt_deplibs_check_method
14570
14571 # Command to use when deplibs_check_method = "file_magic".
14572 file_magic_cmd=$lt_file_magic_cmd
14573
14574 # How to find potential files when deplibs_check_method = "file_magic".
14575 file_magic_glob=$lt_file_magic_glob
14576
14577 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14578 want_nocaseglob=$lt_want_nocaseglob
14579
14580 # DLL creation program.
14581 DLLTOOL=$lt_DLLTOOL
14582
14583 # Command to associate shared and link libraries.
14584 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14585
14586 # The archiver.
14587 AR=$lt_AR
14588
14589 # Flags to create an archive.
14590 AR_FLAGS=$lt_AR_FLAGS
14591
14592 # How to feed a file listing to the archiver.
14593 archiver_list_spec=$lt_archiver_list_spec
14594
14595 # A symbol stripping program.
14596 STRIP=$lt_STRIP
14597
14598 # Commands used to install an old-style archive.
14599 RANLIB=$lt_RANLIB
14600 old_postinstall_cmds=$lt_old_postinstall_cmds
14601 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14602
14603 # Whether to use a lock for old archive extraction.
14604 lock_old_archive_extraction=$lock_old_archive_extraction
14605
14606 # A C compiler.
14607 LTCC=$lt_CC
14608
14609 # LTCC compiler flags.
14610 LTCFLAGS=$lt_CFLAGS
14611
14612 # Take the output of nm and produce a listing of raw symbols and C names.
14613 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14614
14615 # Transform the output of nm in a proper C declaration.
14616 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14617
14618 # Transform the output of nm into a list of symbols to manually relocate.
14619 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
14620
14621 # Transform the output of nm in a C name address pair.
14622 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14623
14624 # Transform the output of nm in a C name address pair when lib prefix is needed.
14625 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14626
14627 # The name lister interface.
14628 nm_interface=$lt_lt_cv_nm_interface
14629
14630 # Specify filename containing input files for \$NM.
14631 nm_file_list_spec=$lt_nm_file_list_spec
14632
14633 # The root where to search for dependent libraries,and where our libraries should be installed.
14634 lt_sysroot=$lt_sysroot
14635
14636 # Command to truncate a binary pipe.
14637 lt_truncate_bin=$lt_lt_cv_truncate_bin
14638
14639 # The name of the directory that contains temporary libtool files.
14640 objdir=$objdir
14641
14642 # Used to examine libraries when file_magic_cmd begins with "file".
14643 MAGIC_CMD=$MAGIC_CMD
14644
14645 # Must we lock files when doing compilation?
14646 need_locks=$lt_need_locks
14647
14648 # Manifest tool.
14649 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14650
14651 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14652 DSYMUTIL=$lt_DSYMUTIL
14653
14654 # Tool to change global to local symbols on Mac OS X.
14655 NMEDIT=$lt_NMEDIT
14656
14657 # Tool to manipulate fat objects and archives on Mac OS X.
14658 LIPO=$lt_LIPO
14659
14660 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14661 OTOOL=$lt_OTOOL
14662
14663 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14664 OTOOL64=$lt_OTOOL64
14665
14666 # Old archive suffix (normally "a").
14667 libext=$libext
14668
14669 # Shared library suffix (normally ".so").
14670 shrext_cmds=$lt_shrext_cmds
14671
14672 # The commands to extract the exported symbol list from a shared archive.
14673 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14674
14675 # Variables whose values should be saved in libtool wrapper scripts and
14676 # restored at link time.
14677 variables_saved_for_relink=$lt_variables_saved_for_relink
14678
14679 # Do we need the "lib" prefix for modules?
14680 need_lib_prefix=$need_lib_prefix
14681
14682 # Do we need a version for libraries?
14683 need_version=$need_version
14684
14685 # Library versioning type.
14686 version_type=$version_type
14687
14688 # Shared library runtime path variable.
14689 runpath_var=$runpath_var
14690
14691 # Shared library path variable.
14692 shlibpath_var=$shlibpath_var
14693
14694 # Is shlibpath searched before the hard-coded library search path?
14695 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14696
14697 # Format of library name prefix.
14698 libname_spec=$lt_libname_spec
14699
14700 # List of archive names.  First name is the real one, the rest are links.
14701 # The last name is the one that the linker finds with -lNAME
14702 library_names_spec=$lt_library_names_spec
14703
14704 # The coded name of the library, if different from the real name.
14705 soname_spec=$lt_soname_spec
14706
14707 # Permission mode override for installation of shared libraries.
14708 install_override_mode=$lt_install_override_mode
14709
14710 # Command to use after installation of a shared archive.
14711 postinstall_cmds=$lt_postinstall_cmds
14712
14713 # Command to use after uninstallation of a shared archive.
14714 postuninstall_cmds=$lt_postuninstall_cmds
14715
14716 # Commands used to finish a libtool library installation in a directory.
14717 finish_cmds=$lt_finish_cmds
14718
14719 # As "finish_cmds", except a single script fragment to be evaled but
14720 # not shown.
14721 finish_eval=$lt_finish_eval
14722
14723 # Whether we should hardcode library paths into libraries.
14724 hardcode_into_libs=$hardcode_into_libs
14725
14726 # Compile-time system search path for libraries.
14727 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14728
14729 # Detected run-time system search path for libraries.
14730 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
14731
14732 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
14733 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
14734
14735 # Whether dlopen is supported.
14736 dlopen_support=$enable_dlopen
14737
14738 # Whether dlopen of programs is supported.
14739 dlopen_self=$enable_dlopen_self
14740
14741 # Whether dlopen of statically linked programs is supported.
14742 dlopen_self_static=$enable_dlopen_self_static
14743
14744 # Commands to strip libraries.
14745 old_striplib=$lt_old_striplib
14746 striplib=$lt_striplib
14747
14748
14749 # The linker used to build libraries.
14750 LD=$lt_LD
14751
14752 # How to create reloadable object files.
14753 reload_flag=$lt_reload_flag
14754 reload_cmds=$lt_reload_cmds
14755
14756 # Commands used to build an old-style archive.
14757 old_archive_cmds=$lt_old_archive_cmds
14758
14759 # A language specific compiler.
14760 CC=$lt_compiler
14761
14762 # Is the compiler the GNU compiler?
14763 with_gcc=$GCC
14764
14765 # Compiler flag to turn off builtin functions.
14766 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14767
14768 # Additional compiler flags for building library objects.
14769 pic_flag=$lt_lt_prog_compiler_pic
14770
14771 # How to pass a linker flag through the compiler.
14772 wl=$lt_lt_prog_compiler_wl
14773
14774 # Compiler flag to prevent dynamic linking.
14775 link_static_flag=$lt_lt_prog_compiler_static
14776
14777 # Does compiler simultaneously support -c and -o options?
14778 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14779
14780 # Whether or not to add -lc for building shared libraries.
14781 build_libtool_need_lc=$archive_cmds_need_lc
14782
14783 # Whether or not to disallow shared libs when runtime libs are static.
14784 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14785
14786 # Compiler flag to allow reflexive dlopens.
14787 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14788
14789 # Compiler flag to generate shared objects directly from archives.
14790 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14791
14792 # Whether the compiler copes with passing no objects directly.
14793 compiler_needs_object=$lt_compiler_needs_object
14794
14795 # Create an old-style archive from a shared archive.
14796 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14797
14798 # Create a temporary old-style archive to link instead of a shared archive.
14799 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14800
14801 # Commands used to build a shared archive.
14802 archive_cmds=$lt_archive_cmds
14803 archive_expsym_cmds=$lt_archive_expsym_cmds
14804
14805 # Commands used to build a loadable module if different from building
14806 # a shared archive.
14807 module_cmds=$lt_module_cmds
14808 module_expsym_cmds=$lt_module_expsym_cmds
14809
14810 # Whether we are building with GNU ld or not.
14811 with_gnu_ld=$lt_with_gnu_ld
14812
14813 # Flag that allows shared libraries with undefined symbols to be built.
14814 allow_undefined_flag=$lt_allow_undefined_flag
14815
14816 # Flag that enforces no undefined symbols.
14817 no_undefined_flag=$lt_no_undefined_flag
14818
14819 # Flag to hardcode \$libdir into a binary during linking.
14820 # This must work even if \$libdir does not exist
14821 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14822
14823 # Whether we need a single "-rpath" flag with a separated argument.
14824 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14825
14826 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14827 # DIR into the resulting binary.
14828 hardcode_direct=$hardcode_direct
14829
14830 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14831 # DIR into the resulting binary and the resulting library dependency is
14832 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
14833 # library is relocated.
14834 hardcode_direct_absolute=$hardcode_direct_absolute
14835
14836 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14837 # into the resulting binary.
14838 hardcode_minus_L=$hardcode_minus_L
14839
14840 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14841 # into the resulting binary.
14842 hardcode_shlibpath_var=$hardcode_shlibpath_var
14843
14844 # Set to "yes" if building a shared library automatically hardcodes DIR
14845 # into the library and all subsequent libraries and executables linked
14846 # against it.
14847 hardcode_automatic=$hardcode_automatic
14848
14849 # Set to yes if linker adds runtime paths of dependent libraries
14850 # to runtime path list.
14851 inherit_rpath=$inherit_rpath
14852
14853 # Whether libtool must link a program against all its dependency libraries.
14854 link_all_deplibs=$link_all_deplibs
14855
14856 # Set to "yes" if exported symbols are required.
14857 always_export_symbols=$always_export_symbols
14858
14859 # The commands to list exported symbols.
14860 export_symbols_cmds=$lt_export_symbols_cmds
14861
14862 # Symbols that should not be listed in the preloaded symbols.
14863 exclude_expsyms=$lt_exclude_expsyms
14864
14865 # Symbols that must always be exported.
14866 include_expsyms=$lt_include_expsyms
14867
14868 # Commands necessary for linking programs (against libraries) with templates.
14869 prelink_cmds=$lt_prelink_cmds
14870
14871 # Commands necessary for finishing linking programs.
14872 postlink_cmds=$lt_postlink_cmds
14873
14874 # Specify filename containing input files.
14875 file_list_spec=$lt_file_list_spec
14876
14877 # How to hardcode a shared library path into an executable.
14878 hardcode_action=$hardcode_action
14879
14880 # ### END LIBTOOL CONFIG
14881
14882 _LT_EOF
14883
14884     cat <<'_LT_EOF' >> "$cfgfile"
14885
14886 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
14887
14888 # func_munge_path_list VARIABLE PATH
14889 # -----------------------------------
14890 # VARIABLE is name of variable containing _space_ separated list of
14891 # directories to be munged by the contents of PATH, which is string
14892 # having a format:
14893 # "DIR[:DIR]:"
14894 #       string "DIR[ DIR]" will be prepended to VARIABLE
14895 # ":DIR[:DIR]"
14896 #       string "DIR[ DIR]" will be appended to VARIABLE
14897 # "DIRP[:DIRP]::[DIRA:]DIRA"
14898 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14899 #       "DIRA[ DIRA]" will be appended to VARIABLE
14900 # "DIR[:DIR]"
14901 #       VARIABLE will be replaced by "DIR[ DIR]"
14902 func_munge_path_list ()
14903 {
14904     case x$2 in
14905     x)
14906         ;;
14907     *:)
14908         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14909         ;;
14910     x:*)
14911         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14912         ;;
14913     *::*)
14914         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14915         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14916         ;;
14917     *)
14918         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14919         ;;
14920     esac
14921 }
14922
14923
14924 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
14925 func_cc_basename ()
14926 {
14927     for cc_temp in $*""; do
14928       case $cc_temp in
14929         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14930         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14931         \-*) ;;
14932         *) break;;
14933       esac
14934     done
14935     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14936 }
14937
14938
14939 # ### END FUNCTIONS SHARED WITH CONFIGURE
14940
14941 _LT_EOF
14942
14943   case $host_os in
14944   aix3*)
14945     cat <<\_LT_EOF >> "$cfgfile"
14946 # AIX sometimes has problems with the GCC collect2 program.  For some
14947 # reason, if we set the COLLECT_NAMES environment variable, the problems
14948 # vanish in a puff of smoke.
14949 if test set != "${COLLECT_NAMES+set}"; then
14950   COLLECT_NAMES=
14951   export COLLECT_NAMES
14952 fi
14953 _LT_EOF
14954     ;;
14955   esac
14956
14957
14958 ltmain=$ac_aux_dir/ltmain.sh
14959
14960
14961   # We use sed instead of cat because bash on DJGPP gets confused if
14962   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14963   # text mode, it properly converts lines to CR/LF.  This bash problem
14964   # is reportedly fixed, but why not run on old versions too?
14965   sed '$q' "$ltmain" >> "$cfgfile" \
14966      || (rm -f "$cfgfile"; exit 1)
14967
14968    mv -f "$cfgfile" "$ofile" ||
14969     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14970   chmod +x "$ofile"
14971
14972  ;;
14973
14974   esac
14975 done # for ac_tag
14976
14977
14978 as_fn_exit 0
14979 _ACEOF
14980 ac_clean_files=$ac_clean_files_save
14981
14982 test $ac_write_fail = 0 ||
14983   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14984
14985
14986 # configure is writing to config.log, and then calls config.status.
14987 # config.status does its own redirection, appending to config.log.
14988 # Unfortunately, on DOS this fails, as config.log is still kept open
14989 # by configure, so config.status won't be able to write to it; its
14990 # output is simply discarded.  So we exec the FD to /dev/null,
14991 # effectively closing config.log, so it can be properly (re)opened and
14992 # appended to by config.status.  When coming back to configure, we
14993 # need to make the FD available again.
14994 if test "$no_create" != yes; then
14995   ac_cs_success=:
14996   ac_config_status_args=
14997   test "$silent" = yes &&
14998     ac_config_status_args="$ac_config_status_args --quiet"
14999   exec 5>/dev/null
15000   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15001   exec 5>>config.log
15002   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15003   # would make configure fail if this is the last instruction.
15004   $ac_cs_success || as_fn_exit 1
15005 fi
15006 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15007   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15008 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15009 fi
15010