]> wimlib.net Git - wimlib/blob - configure
4337b09d2f5129c71e370fef834ffac5cb3d9d4c
[wimlib] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for wimlib 0.7.0.
4 #
5 # Report bugs to <ebiggers3@gmail.com>.
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 test \$(( 1 + 1 )) = 2 || exit 1
202
203   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207     PATH=/empty FPATH=/empty; export PATH FPATH
208     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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: ebiggers3@gmail.com 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='wimlib'
592 PACKAGE_TARNAME='wimlib'
593 PACKAGE_VERSION='0.7.0'
594 PACKAGE_STRING='wimlib 0.7.0'
595 PACKAGE_BUGREPORT='ebiggers3@gmail.com'
596 PACKAGE_URL=''
597
598 ac_unique_file="src/wim.c"
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 SHA1_SOURCES
640 LIBCRYPTO_CFLAGS
641 LIBCRYPTO_LDADD
642 SSSE3_SHA1_OBJ
643 NASM
644 nasm
645 LIBFUSE_CFLAGS
646 LIBFUSE_LDADD
647 LIBXML2_CFLAGS
648 LIBXML2_LDADD
649 pkgconfigdir
650 LTLIBICONV
651 LIBICONV
652 OTOOL64
653 OTOOL
654 LIPO
655 NMEDIT
656 DSYMUTIL
657 MANIFEST_TOOL
658 RANLIB
659 DLLTOOL
660 OBJDUMP
661 LN_S
662 NM
663 ac_ct_DUMPBIN
664 DUMPBIN
665 LD
666 FGREP
667 SED
668 host_os
669 host_vendor
670 host_cpu
671 host
672 build_os
673 build_vendor
674 build_cpu
675 build
676 LIBTOOL
677 ac_ct_AR
678 AR
679 EGREP
680 GREP
681 CPP
682 am__fastdepCC_FALSE
683 am__fastdepCC_TRUE
684 CCDEPMODE
685 am__nodep
686 AMDEPBACKSLASH
687 AMDEP_FALSE
688 AMDEP_TRUE
689 am__quote
690 am__include
691 DEPDIR
692 OBJEXT
693 EXEEXT
694 ac_ct_CC
695 CPPFLAGS
696 LDFLAGS
697 CFLAGS
698 CC
699 am__untar
700 am__tar
701 AMTAR
702 am__leading_dot
703 SET_MAKE
704 AWK
705 mkdir_p
706 MKDIR_P
707 INSTALL_STRIP_PROGRAM
708 STRIP
709 install_sh
710 MAKEINFO
711 AUTOHEADER
712 AUTOMAKE
713 AUTOCONF
714 ACLOCAL
715 VERSION
716 PACKAGE
717 CYGPATH_W
718 am__isrc
719 INSTALL_DATA
720 INSTALL_SCRIPT
721 INSTALL_PROGRAM
722 target_alias
723 host_alias
724 build_alias
725 LIBS
726 ECHO_T
727 ECHO_N
728 ECHO_C
729 DEFS
730 mandir
731 localedir
732 libdir
733 psdir
734 pdfdir
735 dvidir
736 htmldir
737 infodir
738 docdir
739 oldincludedir
740 includedir
741 localstatedir
742 sharedstatedir
743 sysconfdir
744 datadir
745 datarootdir
746 libexecdir
747 sbindir
748 bindir
749 program_transform_name
750 prefix
751 exec_prefix
752 PACKAGE_URL
753 PACKAGE_BUGREPORT
754 PACKAGE_STRING
755 PACKAGE_VERSION
756 PACKAGE_TARNAME
757 PACKAGE_NAME
758 PATH_SEPARATOR
759 SHELL'
760 ac_subst_files=''
761 ac_user_opts='
762 enable_option_checking
763 enable_dependency_tracking
764 enable_shared
765 enable_static
766 with_pic
767 enable_fast_install
768 with_gnu_ld
769 with_sysroot
770 enable_libtool_lock
771 enable_rpath
772 with_libiconv_prefix
773 with_pkgconfigdir
774 enable_debug
775 enable_more_debug
776 enable_error_messages
777 enable_custom_memory_allocator
778 enable_assertions
779 enable_verify_compression
780 with_fuse
781 enable_ssse3_sha1
782 with_libcrypto
783 '
784       ac_precious_vars='build_alias
785 host_alias
786 target_alias
787 CC
788 CFLAGS
789 LDFLAGS
790 LIBS
791 CPPFLAGS
792 CPP'
793
794
795 # Initialize some variables set by options.
796 ac_init_help=
797 ac_init_version=false
798 ac_unrecognized_opts=
799 ac_unrecognized_sep=
800 # The variables have the same names as the options, with
801 # dashes changed to underlines.
802 cache_file=/dev/null
803 exec_prefix=NONE
804 no_create=
805 no_recursion=
806 prefix=NONE
807 program_prefix=NONE
808 program_suffix=NONE
809 program_transform_name=s,x,x,
810 silent=
811 site=
812 srcdir=
813 verbose=
814 x_includes=NONE
815 x_libraries=NONE
816
817 # Installation directory options.
818 # These are left unexpanded so users can "make install exec_prefix=/foo"
819 # and all the variables that are supposed to be based on exec_prefix
820 # by default will actually change.
821 # Use braces instead of parens because sh, perl, etc. also accept them.
822 # (The list follows the same order as the GNU Coding Standards.)
823 bindir='${exec_prefix}/bin'
824 sbindir='${exec_prefix}/sbin'
825 libexecdir='${exec_prefix}/libexec'
826 datarootdir='${prefix}/share'
827 datadir='${datarootdir}'
828 sysconfdir='${prefix}/etc'
829 sharedstatedir='${prefix}/com'
830 localstatedir='${prefix}/var'
831 includedir='${prefix}/include'
832 oldincludedir='/usr/include'
833 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
834 infodir='${datarootdir}/info'
835 htmldir='${docdir}'
836 dvidir='${docdir}'
837 pdfdir='${docdir}'
838 psdir='${docdir}'
839 libdir='${exec_prefix}/lib'
840 localedir='${datarootdir}/locale'
841 mandir='${datarootdir}/man'
842
843 ac_prev=
844 ac_dashdash=
845 for ac_option
846 do
847   # If the previous option needs an argument, assign it.
848   if test -n "$ac_prev"; then
849     eval $ac_prev=\$ac_option
850     ac_prev=
851     continue
852   fi
853
854   case $ac_option in
855   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
856   *=)   ac_optarg= ;;
857   *)    ac_optarg=yes ;;
858   esac
859
860   # Accept the important Cygnus configure options, so we can diagnose typos.
861
862   case $ac_dashdash$ac_option in
863   --)
864     ac_dashdash=yes ;;
865
866   -bindir | --bindir | --bindi | --bind | --bin | --bi)
867     ac_prev=bindir ;;
868   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
869     bindir=$ac_optarg ;;
870
871   -build | --build | --buil | --bui | --bu)
872     ac_prev=build_alias ;;
873   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
874     build_alias=$ac_optarg ;;
875
876   -cache-file | --cache-file | --cache-fil | --cache-fi \
877   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
878     ac_prev=cache_file ;;
879   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
880   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
881     cache_file=$ac_optarg ;;
882
883   --config-cache | -C)
884     cache_file=config.cache ;;
885
886   -datadir | --datadir | --datadi | --datad)
887     ac_prev=datadir ;;
888   -datadir=* | --datadir=* | --datadi=* | --datad=*)
889     datadir=$ac_optarg ;;
890
891   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
892   | --dataroo | --dataro | --datar)
893     ac_prev=datarootdir ;;
894   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
895   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
896     datarootdir=$ac_optarg ;;
897
898   -disable-* | --disable-*)
899     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
900     # Reject names that are not valid shell variable names.
901     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
902       as_fn_error $? "invalid feature name: $ac_useropt"
903     ac_useropt_orig=$ac_useropt
904     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
905     case $ac_user_opts in
906       *"
907 "enable_$ac_useropt"
908 "*) ;;
909       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
910          ac_unrecognized_sep=', ';;
911     esac
912     eval enable_$ac_useropt=no ;;
913
914   -docdir | --docdir | --docdi | --doc | --do)
915     ac_prev=docdir ;;
916   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
917     docdir=$ac_optarg ;;
918
919   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
920     ac_prev=dvidir ;;
921   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
922     dvidir=$ac_optarg ;;
923
924   -enable-* | --enable-*)
925     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
926     # Reject names that are not valid shell variable names.
927     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
928       as_fn_error $? "invalid feature name: $ac_useropt"
929     ac_useropt_orig=$ac_useropt
930     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
931     case $ac_user_opts in
932       *"
933 "enable_$ac_useropt"
934 "*) ;;
935       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
936          ac_unrecognized_sep=', ';;
937     esac
938     eval enable_$ac_useropt=\$ac_optarg ;;
939
940   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
941   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
942   | --exec | --exe | --ex)
943     ac_prev=exec_prefix ;;
944   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
945   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
946   | --exec=* | --exe=* | --ex=*)
947     exec_prefix=$ac_optarg ;;
948
949   -gas | --gas | --ga | --g)
950     # Obsolete; use --with-gas.
951     with_gas=yes ;;
952
953   -help | --help | --hel | --he | -h)
954     ac_init_help=long ;;
955   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
956     ac_init_help=recursive ;;
957   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
958     ac_init_help=short ;;
959
960   -host | --host | --hos | --ho)
961     ac_prev=host_alias ;;
962   -host=* | --host=* | --hos=* | --ho=*)
963     host_alias=$ac_optarg ;;
964
965   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
966     ac_prev=htmldir ;;
967   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
968   | --ht=*)
969     htmldir=$ac_optarg ;;
970
971   -includedir | --includedir | --includedi | --included | --include \
972   | --includ | --inclu | --incl | --inc)
973     ac_prev=includedir ;;
974   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
975   | --includ=* | --inclu=* | --incl=* | --inc=*)
976     includedir=$ac_optarg ;;
977
978   -infodir | --infodir | --infodi | --infod | --info | --inf)
979     ac_prev=infodir ;;
980   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
981     infodir=$ac_optarg ;;
982
983   -libdir | --libdir | --libdi | --libd)
984     ac_prev=libdir ;;
985   -libdir=* | --libdir=* | --libdi=* | --libd=*)
986     libdir=$ac_optarg ;;
987
988   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
989   | --libexe | --libex | --libe)
990     ac_prev=libexecdir ;;
991   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
992   | --libexe=* | --libex=* | --libe=*)
993     libexecdir=$ac_optarg ;;
994
995   -localedir | --localedir | --localedi | --localed | --locale)
996     ac_prev=localedir ;;
997   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
998     localedir=$ac_optarg ;;
999
1000   -localstatedir | --localstatedir | --localstatedi | --localstated \
1001   | --localstate | --localstat | --localsta | --localst | --locals)
1002     ac_prev=localstatedir ;;
1003   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1004   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1005     localstatedir=$ac_optarg ;;
1006
1007   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1008     ac_prev=mandir ;;
1009   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1010     mandir=$ac_optarg ;;
1011
1012   -nfp | --nfp | --nf)
1013     # Obsolete; use --without-fp.
1014     with_fp=no ;;
1015
1016   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1017   | --no-cr | --no-c | -n)
1018     no_create=yes ;;
1019
1020   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1021   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1022     no_recursion=yes ;;
1023
1024   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1025   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1026   | --oldin | --oldi | --old | --ol | --o)
1027     ac_prev=oldincludedir ;;
1028   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1029   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1030   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1031     oldincludedir=$ac_optarg ;;
1032
1033   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1034     ac_prev=prefix ;;
1035   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1036     prefix=$ac_optarg ;;
1037
1038   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1039   | --program-pre | --program-pr | --program-p)
1040     ac_prev=program_prefix ;;
1041   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1042   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1043     program_prefix=$ac_optarg ;;
1044
1045   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1046   | --program-suf | --program-su | --program-s)
1047     ac_prev=program_suffix ;;
1048   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1049   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1050     program_suffix=$ac_optarg ;;
1051
1052   -program-transform-name | --program-transform-name \
1053   | --program-transform-nam | --program-transform-na \
1054   | --program-transform-n | --program-transform- \
1055   | --program-transform | --program-transfor \
1056   | --program-transfo | --program-transf \
1057   | --program-trans | --program-tran \
1058   | --progr-tra | --program-tr | --program-t)
1059     ac_prev=program_transform_name ;;
1060   -program-transform-name=* | --program-transform-name=* \
1061   | --program-transform-nam=* | --program-transform-na=* \
1062   | --program-transform-n=* | --program-transform-=* \
1063   | --program-transform=* | --program-transfor=* \
1064   | --program-transfo=* | --program-transf=* \
1065   | --program-trans=* | --program-tran=* \
1066   | --progr-tra=* | --program-tr=* | --program-t=*)
1067     program_transform_name=$ac_optarg ;;
1068
1069   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1070     ac_prev=pdfdir ;;
1071   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1072     pdfdir=$ac_optarg ;;
1073
1074   -psdir | --psdir | --psdi | --psd | --ps)
1075     ac_prev=psdir ;;
1076   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1077     psdir=$ac_optarg ;;
1078
1079   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1080   | -silent | --silent | --silen | --sile | --sil)
1081     silent=yes ;;
1082
1083   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1084     ac_prev=sbindir ;;
1085   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1086   | --sbi=* | --sb=*)
1087     sbindir=$ac_optarg ;;
1088
1089   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1090   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1091   | --sharedst | --shareds | --shared | --share | --shar \
1092   | --sha | --sh)
1093     ac_prev=sharedstatedir ;;
1094   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1095   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1096   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1097   | --sha=* | --sh=*)
1098     sharedstatedir=$ac_optarg ;;
1099
1100   -site | --site | --sit)
1101     ac_prev=site ;;
1102   -site=* | --site=* | --sit=*)
1103     site=$ac_optarg ;;
1104
1105   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1106     ac_prev=srcdir ;;
1107   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1108     srcdir=$ac_optarg ;;
1109
1110   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1111   | --syscon | --sysco | --sysc | --sys | --sy)
1112     ac_prev=sysconfdir ;;
1113   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1114   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1115     sysconfdir=$ac_optarg ;;
1116
1117   -target | --target | --targe | --targ | --tar | --ta | --t)
1118     ac_prev=target_alias ;;
1119   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1120     target_alias=$ac_optarg ;;
1121
1122   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1123     verbose=yes ;;
1124
1125   -version | --version | --versio | --versi | --vers | -V)
1126     ac_init_version=: ;;
1127
1128   -with-* | --with-*)
1129     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1130     # Reject names that are not valid shell variable names.
1131     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1132       as_fn_error $? "invalid package name: $ac_useropt"
1133     ac_useropt_orig=$ac_useropt
1134     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135     case $ac_user_opts in
1136       *"
1137 "with_$ac_useropt"
1138 "*) ;;
1139       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1140          ac_unrecognized_sep=', ';;
1141     esac
1142     eval with_$ac_useropt=\$ac_optarg ;;
1143
1144   -without-* | --without-*)
1145     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1146     # Reject names that are not valid shell variable names.
1147     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1148       as_fn_error $? "invalid package name: $ac_useropt"
1149     ac_useropt_orig=$ac_useropt
1150     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1151     case $ac_user_opts in
1152       *"
1153 "with_$ac_useropt"
1154 "*) ;;
1155       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1156          ac_unrecognized_sep=', ';;
1157     esac
1158     eval with_$ac_useropt=no ;;
1159
1160   --x)
1161     # Obsolete; use --with-x.
1162     with_x=yes ;;
1163
1164   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1165   | --x-incl | --x-inc | --x-in | --x-i)
1166     ac_prev=x_includes ;;
1167   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1168   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1169     x_includes=$ac_optarg ;;
1170
1171   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1172   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1173     ac_prev=x_libraries ;;
1174   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1175   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1176     x_libraries=$ac_optarg ;;
1177
1178   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1179 Try \`$0 --help' for more information"
1180     ;;
1181
1182   *=*)
1183     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1184     # Reject names that are not valid shell variable names.
1185     case $ac_envvar in #(
1186       '' | [0-9]* | *[!_$as_cr_alnum]* )
1187       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1188     esac
1189     eval $ac_envvar=\$ac_optarg
1190     export $ac_envvar ;;
1191
1192   *)
1193     # FIXME: should be removed in autoconf 3.0.
1194     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1195     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1196       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1197     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1198     ;;
1199
1200   esac
1201 done
1202
1203 if test -n "$ac_prev"; then
1204   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1205   as_fn_error $? "missing argument to $ac_option"
1206 fi
1207
1208 if test -n "$ac_unrecognized_opts"; then
1209   case $enable_option_checking in
1210     no) ;;
1211     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1212     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1213   esac
1214 fi
1215
1216 # Check all directory arguments for consistency.
1217 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1218                 datadir sysconfdir sharedstatedir localstatedir includedir \
1219                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1220                 libdir localedir mandir
1221 do
1222   eval ac_val=\$$ac_var
1223   # Remove trailing slashes.
1224   case $ac_val in
1225     */ )
1226       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1227       eval $ac_var=\$ac_val;;
1228   esac
1229   # Be sure to have absolute directory names.
1230   case $ac_val in
1231     [\\/$]* | ?:[\\/]* )  continue;;
1232     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1233   esac
1234   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1235 done
1236
1237 # There might be people who depend on the old broken behavior: `$host'
1238 # used to hold the argument of --host etc.
1239 # FIXME: To remove some day.
1240 build=$build_alias
1241 host=$host_alias
1242 target=$target_alias
1243
1244 # FIXME: To remove some day.
1245 if test "x$host_alias" != x; then
1246   if test "x$build_alias" = x; then
1247     cross_compiling=maybe
1248   elif test "x$build_alias" != "x$host_alias"; then
1249     cross_compiling=yes
1250   fi
1251 fi
1252
1253 ac_tool_prefix=
1254 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1255
1256 test "$silent" = yes && exec 6>/dev/null
1257
1258
1259 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1260 ac_ls_di=`ls -di .` &&
1261 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1262   as_fn_error $? "working directory cannot be determined"
1263 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1264   as_fn_error $? "pwd does not report name of working directory"
1265
1266
1267 # Find the source files, if location was not specified.
1268 if test -z "$srcdir"; then
1269   ac_srcdir_defaulted=yes
1270   # Try the directory containing this script, then the parent directory.
1271   ac_confdir=`$as_dirname -- "$as_myself" ||
1272 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1273          X"$as_myself" : 'X\(//\)[^/]' \| \
1274          X"$as_myself" : 'X\(//\)$' \| \
1275          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1276 $as_echo X"$as_myself" |
1277     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1278             s//\1/
1279             q
1280           }
1281           /^X\(\/\/\)[^/].*/{
1282             s//\1/
1283             q
1284           }
1285           /^X\(\/\/\)$/{
1286             s//\1/
1287             q
1288           }
1289           /^X\(\/\).*/{
1290             s//\1/
1291             q
1292           }
1293           s/.*/./; q'`
1294   srcdir=$ac_confdir
1295   if test ! -r "$srcdir/$ac_unique_file"; then
1296     srcdir=..
1297   fi
1298 else
1299   ac_srcdir_defaulted=no
1300 fi
1301 if test ! -r "$srcdir/$ac_unique_file"; then
1302   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1303   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1304 fi
1305 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1306 ac_abs_confdir=`(
1307         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1308         pwd)`
1309 # When building in place, set srcdir=.
1310 if test "$ac_abs_confdir" = "$ac_pwd"; then
1311   srcdir=.
1312 fi
1313 # Remove unnecessary trailing slashes from srcdir.
1314 # Double slashes in file names in object file debugging info
1315 # mess up M-x gdb in Emacs.
1316 case $srcdir in
1317 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1318 esac
1319 for ac_var in $ac_precious_vars; do
1320   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1321   eval ac_env_${ac_var}_value=\$${ac_var}
1322   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1323   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1324 done
1325
1326 #
1327 # Report the --help message.
1328 #
1329 if test "$ac_init_help" = "long"; then
1330   # Omit some internal or obsolete options to make the list less imposing.
1331   # This message is too long to be a string in the A/UX 3.1 sh.
1332   cat <<_ACEOF
1333 \`configure' configures wimlib 0.7.0 to adapt to many kinds of systems.
1334
1335 Usage: $0 [OPTION]... [VAR=VALUE]...
1336
1337 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1338 VAR=VALUE.  See below for descriptions of some of the useful variables.
1339
1340 Defaults for the options are specified in brackets.
1341
1342 Configuration:
1343   -h, --help              display this help and exit
1344       --help=short        display options specific to this package
1345       --help=recursive    display the short help of all the included packages
1346   -V, --version           display version information and exit
1347   -q, --quiet, --silent   do not print \`checking ...' messages
1348       --cache-file=FILE   cache test results in FILE [disabled]
1349   -C, --config-cache      alias for \`--cache-file=config.cache'
1350   -n, --no-create         do not create output files
1351       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1352
1353 Installation directories:
1354   --prefix=PREFIX         install architecture-independent files in PREFIX
1355                           [$ac_default_prefix]
1356   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1357                           [PREFIX]
1358
1359 By default, \`make install' will install all the files in
1360 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1361 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1362 for instance \`--prefix=\$HOME'.
1363
1364 For better control, use the options below.
1365
1366 Fine tuning of the installation directories:
1367   --bindir=DIR            user executables [EPREFIX/bin]
1368   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1369   --libexecdir=DIR        program executables [EPREFIX/libexec]
1370   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1371   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1372   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1373   --libdir=DIR            object code libraries [EPREFIX/lib]
1374   --includedir=DIR        C header files [PREFIX/include]
1375   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1376   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1377   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1378   --infodir=DIR           info documentation [DATAROOTDIR/info]
1379   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1380   --mandir=DIR            man documentation [DATAROOTDIR/man]
1381   --docdir=DIR            documentation root [DATAROOTDIR/doc/wimlib]
1382   --htmldir=DIR           html documentation [DOCDIR]
1383   --dvidir=DIR            dvi documentation [DOCDIR]
1384   --pdfdir=DIR            pdf documentation [DOCDIR]
1385   --psdir=DIR             ps documentation [DOCDIR]
1386 _ACEOF
1387
1388   cat <<\_ACEOF
1389
1390 Program names:
1391   --program-prefix=PREFIX            prepend PREFIX to installed program names
1392   --program-suffix=SUFFIX            append SUFFIX to installed program names
1393   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1394
1395 System types:
1396   --build=BUILD     configure for building on BUILD [guessed]
1397   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1398 _ACEOF
1399 fi
1400
1401 if test -n "$ac_init_help"; then
1402   case $ac_init_help in
1403      short | recursive ) echo "Configuration of wimlib 0.7.0:";;
1404    esac
1405   cat <<\_ACEOF
1406
1407 Optional Features:
1408   --disable-option-checking  ignore unrecognized --enable/--with options
1409   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1410   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1411   --enable-dependency-tracking
1412                           do not reject slow dependency extractors
1413   --disable-dependency-tracking
1414                           speeds up one-time build
1415   --enable-shared[=PKGS]  build shared libraries [default=yes]
1416   --enable-static[=PKGS]  build static libraries [default=yes]
1417   --enable-fast-install[=PKGS]
1418                           optimize for fast installation [default=yes]
1419   --disable-libtool-lock  avoid locking (might break parallel builds)
1420   --disable-rpath         do not hardcode runtime library paths
1421   --enable-debug          include lots of debugging messages
1422   --enable-more-debug     include even more debugging messages
1423   --disable-error-messages
1424                           do not compile in error messsages
1425   --disable-custom-memory-allocator
1426                           do not support the use of custom memory allocation
1427                           functions
1428   --disable-assertions    do not include assertions
1429   --disable-verify-compression
1430                           disable checking if blocks we compress can be
1431                           correctly decompressed
1432   --enable-ssse3-sha1     use assembly language implementation of SHA1 from
1433                           Intel, accelerated with vector instructions
1434                           (SSSE3-enabled CPU required)
1435
1436 Optional Packages:
1437   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1438   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1439   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1440                           both]
1441   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1442   --with-sysroot=DIR Search for dependent libraries within DIR
1443                         (or the compiler's sysroot if not specified).
1444   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1445   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1446   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1447   --with-pkgconfigdir=DIR      pkgconfig file in DIR [LIBDIR/pkgconfig]
1448   --without-fuse          build without libfuse. This will disable the ability
1449                           to mount WIM files.
1450   --without-libcrypto     build in the SHA1 algorithm, rather than use
1451                           external libcrypto from OpenSSL (default is
1452                           autodetect)
1453
1454 Some influential environment variables:
1455   CC          C compiler command
1456   CFLAGS      C compiler flags
1457   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1458               nonstandard directory <lib dir>
1459   LIBS        libraries to pass to the linker, e.g. -l<library>
1460   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1461               you have headers in a nonstandard directory <include dir>
1462   CPP         C preprocessor
1463
1464 Use these variables to override the choices made by `configure' or to help
1465 it to find libraries and programs with nonstandard names/locations.
1466
1467 Report bugs to <ebiggers3@gmail.com>.
1468 _ACEOF
1469 ac_status=$?
1470 fi
1471
1472 if test "$ac_init_help" = "recursive"; then
1473   # If there are subdirs, report their specific --help.
1474   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1475     test -d "$ac_dir" ||
1476       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1477       continue
1478     ac_builddir=.
1479
1480 case "$ac_dir" in
1481 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1482 *)
1483   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1484   # A ".." for each directory in $ac_dir_suffix.
1485   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1486   case $ac_top_builddir_sub in
1487   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1489   esac ;;
1490 esac
1491 ac_abs_top_builddir=$ac_pwd
1492 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1493 # for backward compatibility:
1494 ac_top_builddir=$ac_top_build_prefix
1495
1496 case $srcdir in
1497   .)  # We are building in place.
1498     ac_srcdir=.
1499     ac_top_srcdir=$ac_top_builddir_sub
1500     ac_abs_top_srcdir=$ac_pwd ;;
1501   [\\/]* | ?:[\\/]* )  # Absolute name.
1502     ac_srcdir=$srcdir$ac_dir_suffix;
1503     ac_top_srcdir=$srcdir
1504     ac_abs_top_srcdir=$srcdir ;;
1505   *) # Relative name.
1506     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1507     ac_top_srcdir=$ac_top_build_prefix$srcdir
1508     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1509 esac
1510 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1511
1512     cd "$ac_dir" || { ac_status=$?; continue; }
1513     # Check for guested configure.
1514     if test -f "$ac_srcdir/configure.gnu"; then
1515       echo &&
1516       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1517     elif test -f "$ac_srcdir/configure"; then
1518       echo &&
1519       $SHELL "$ac_srcdir/configure" --help=recursive
1520     else
1521       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1522     fi || ac_status=$?
1523     cd "$ac_pwd" || { ac_status=$?; break; }
1524   done
1525 fi
1526
1527 test -n "$ac_init_help" && exit $ac_status
1528 if $ac_init_version; then
1529   cat <<\_ACEOF
1530 wimlib configure 0.7.0
1531 generated by GNU Autoconf 2.69
1532
1533 Copyright (C) 2012 Free Software Foundation, Inc.
1534 This configure script is free software; the Free Software Foundation
1535 gives unlimited permission to copy, distribute and modify it.
1536 _ACEOF
1537   exit
1538 fi
1539
1540 ## ------------------------ ##
1541 ## Autoconf initialization. ##
1542 ## ------------------------ ##
1543
1544 # ac_fn_c_try_compile LINENO
1545 # --------------------------
1546 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1547 ac_fn_c_try_compile ()
1548 {
1549   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1550   rm -f conftest.$ac_objext
1551   if { { ac_try="$ac_compile"
1552 case "(($ac_try" in
1553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1554   *) ac_try_echo=$ac_try;;
1555 esac
1556 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1557 $as_echo "$ac_try_echo"; } >&5
1558   (eval "$ac_compile") 2>conftest.err
1559   ac_status=$?
1560   if test -s conftest.err; then
1561     grep -v '^ *+' conftest.err >conftest.er1
1562     cat conftest.er1 >&5
1563     mv -f conftest.er1 conftest.err
1564   fi
1565   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1566   test $ac_status = 0; } && {
1567          test -z "$ac_c_werror_flag" ||
1568          test ! -s conftest.err
1569        } && test -s conftest.$ac_objext; then :
1570   ac_retval=0
1571 else
1572   $as_echo "$as_me: failed program was:" >&5
1573 sed 's/^/| /' conftest.$ac_ext >&5
1574
1575         ac_retval=1
1576 fi
1577   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1578   as_fn_set_status $ac_retval
1579
1580 } # ac_fn_c_try_compile
1581
1582 # ac_fn_c_try_run LINENO
1583 # ----------------------
1584 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1585 # that executables *can* be run.
1586 ac_fn_c_try_run ()
1587 {
1588   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1589   if { { ac_try="$ac_link"
1590 case "(($ac_try" in
1591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1592   *) ac_try_echo=$ac_try;;
1593 esac
1594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1595 $as_echo "$ac_try_echo"; } >&5
1596   (eval "$ac_link") 2>&5
1597   ac_status=$?
1598   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1599   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1600   { { case "(($ac_try" in
1601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1602   *) ac_try_echo=$ac_try;;
1603 esac
1604 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1605 $as_echo "$ac_try_echo"; } >&5
1606   (eval "$ac_try") 2>&5
1607   ac_status=$?
1608   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1609   test $ac_status = 0; }; }; then :
1610   ac_retval=0
1611 else
1612   $as_echo "$as_me: program exited with status $ac_status" >&5
1613        $as_echo "$as_me: failed program was:" >&5
1614 sed 's/^/| /' conftest.$ac_ext >&5
1615
1616        ac_retval=$ac_status
1617 fi
1618   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1619   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1620   as_fn_set_status $ac_retval
1621
1622 } # ac_fn_c_try_run
1623
1624 # ac_fn_c_try_cpp LINENO
1625 # ----------------------
1626 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1627 ac_fn_c_try_cpp ()
1628 {
1629   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630   if { { ac_try="$ac_cpp conftest.$ac_ext"
1631 case "(($ac_try" in
1632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1633   *) ac_try_echo=$ac_try;;
1634 esac
1635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1636 $as_echo "$ac_try_echo"; } >&5
1637   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1638   ac_status=$?
1639   if test -s conftest.err; then
1640     grep -v '^ *+' conftest.err >conftest.er1
1641     cat conftest.er1 >&5
1642     mv -f conftest.er1 conftest.err
1643   fi
1644   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1645   test $ac_status = 0; } > conftest.i && {
1646          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1647          test ! -s conftest.err
1648        }; then :
1649   ac_retval=0
1650 else
1651   $as_echo "$as_me: failed program was:" >&5
1652 sed 's/^/| /' conftest.$ac_ext >&5
1653
1654     ac_retval=1
1655 fi
1656   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1657   as_fn_set_status $ac_retval
1658
1659 } # ac_fn_c_try_cpp
1660
1661 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1662 # -------------------------------------------------------
1663 # Tests whether HEADER exists and can be compiled using the include files in
1664 # INCLUDES, setting the cache variable VAR accordingly.
1665 ac_fn_c_check_header_compile ()
1666 {
1667   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1668   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1669 $as_echo_n "checking for $2... " >&6; }
1670 if eval \${$3+:} false; then :
1671   $as_echo_n "(cached) " >&6
1672 else
1673   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1674 /* end confdefs.h.  */
1675 $4
1676 #include <$2>
1677 _ACEOF
1678 if ac_fn_c_try_compile "$LINENO"; then :
1679   eval "$3=yes"
1680 else
1681   eval "$3=no"
1682 fi
1683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1684 fi
1685 eval ac_res=\$$3
1686                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1687 $as_echo "$ac_res" >&6; }
1688   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1689
1690 } # ac_fn_c_check_header_compile
1691
1692 # ac_fn_c_try_link LINENO
1693 # -----------------------
1694 # Try to link conftest.$ac_ext, and return whether this succeeded.
1695 ac_fn_c_try_link ()
1696 {
1697   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698   rm -f conftest.$ac_objext conftest$ac_exeext
1699   if { { ac_try="$ac_link"
1700 case "(($ac_try" in
1701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1702   *) ac_try_echo=$ac_try;;
1703 esac
1704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1705 $as_echo "$ac_try_echo"; } >&5
1706   (eval "$ac_link") 2>conftest.err
1707   ac_status=$?
1708   if test -s conftest.err; then
1709     grep -v '^ *+' conftest.err >conftest.er1
1710     cat conftest.er1 >&5
1711     mv -f conftest.er1 conftest.err
1712   fi
1713   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1714   test $ac_status = 0; } && {
1715          test -z "$ac_c_werror_flag" ||
1716          test ! -s conftest.err
1717        } && test -s conftest$ac_exeext && {
1718          test "$cross_compiling" = yes ||
1719          test -x conftest$ac_exeext
1720        }; then :
1721   ac_retval=0
1722 else
1723   $as_echo "$as_me: failed program was:" >&5
1724 sed 's/^/| /' conftest.$ac_ext >&5
1725
1726         ac_retval=1
1727 fi
1728   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1729   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1730   # interfere with the next link command; also delete a directory that is
1731   # left behind by Apple's compiler.  We do this before executing the actions.
1732   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1733   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1734   as_fn_set_status $ac_retval
1735
1736 } # ac_fn_c_try_link
1737
1738 # ac_fn_c_check_func LINENO FUNC VAR
1739 # ----------------------------------
1740 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1741 ac_fn_c_check_func ()
1742 {
1743   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1745 $as_echo_n "checking for $2... " >&6; }
1746 if eval \${$3+:} false; then :
1747   $as_echo_n "(cached) " >&6
1748 else
1749   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750 /* end confdefs.h.  */
1751 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1752    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1753 #define $2 innocuous_$2
1754
1755 /* System header to define __stub macros and hopefully few prototypes,
1756     which can conflict with char $2 (); below.
1757     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1758     <limits.h> exists even on freestanding compilers.  */
1759
1760 #ifdef __STDC__
1761 # include <limits.h>
1762 #else
1763 # include <assert.h>
1764 #endif
1765
1766 #undef $2
1767
1768 /* Override any GCC internal prototype to avoid an error.
1769    Use char because int might match the return type of a GCC
1770    builtin and then its argument prototype would still apply.  */
1771 #ifdef __cplusplus
1772 extern "C"
1773 #endif
1774 char $2 ();
1775 /* The GNU C library defines this for functions which it implements
1776     to always fail with ENOSYS.  Some functions are actually named
1777     something starting with __ and the normal name is an alias.  */
1778 #if defined __stub_$2 || defined __stub___$2
1779 choke me
1780 #endif
1781
1782 int
1783 main ()
1784 {
1785 return $2 ();
1786   ;
1787   return 0;
1788 }
1789 _ACEOF
1790 if ac_fn_c_try_link "$LINENO"; then :
1791   eval "$3=yes"
1792 else
1793   eval "$3=no"
1794 fi
1795 rm -f core conftest.err conftest.$ac_objext \
1796     conftest$ac_exeext conftest.$ac_ext
1797 fi
1798 eval ac_res=\$$3
1799                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1800 $as_echo "$ac_res" >&6; }
1801   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1802
1803 } # ac_fn_c_check_func
1804 cat >config.log <<_ACEOF
1805 This file contains any messages produced by compilers while
1806 running configure, to aid debugging if configure makes a mistake.
1807
1808 It was created by wimlib $as_me 0.7.0, which was
1809 generated by GNU Autoconf 2.69.  Invocation command line was
1810
1811   $ $0 $@
1812
1813 _ACEOF
1814 exec 5>>config.log
1815 {
1816 cat <<_ASUNAME
1817 ## --------- ##
1818 ## Platform. ##
1819 ## --------- ##
1820
1821 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1822 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1823 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1824 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1825 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1826
1827 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1828 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1829
1830 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1831 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1832 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1833 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1834 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1835 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1836 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1837
1838 _ASUNAME
1839
1840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1841 for as_dir in $PATH
1842 do
1843   IFS=$as_save_IFS
1844   test -z "$as_dir" && as_dir=.
1845     $as_echo "PATH: $as_dir"
1846   done
1847 IFS=$as_save_IFS
1848
1849 } >&5
1850
1851 cat >&5 <<_ACEOF
1852
1853
1854 ## ----------- ##
1855 ## Core tests. ##
1856 ## ----------- ##
1857
1858 _ACEOF
1859
1860
1861 # Keep a trace of the command line.
1862 # Strip out --no-create and --no-recursion so they do not pile up.
1863 # Strip out --silent because we don't want to record it for future runs.
1864 # Also quote any args containing shell meta-characters.
1865 # Make two passes to allow for proper duplicate-argument suppression.
1866 ac_configure_args=
1867 ac_configure_args0=
1868 ac_configure_args1=
1869 ac_must_keep_next=false
1870 for ac_pass in 1 2
1871 do
1872   for ac_arg
1873   do
1874     case $ac_arg in
1875     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1876     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1877     | -silent | --silent | --silen | --sile | --sil)
1878       continue ;;
1879     *\'*)
1880       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1881     esac
1882     case $ac_pass in
1883     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1884     2)
1885       as_fn_append ac_configure_args1 " '$ac_arg'"
1886       if test $ac_must_keep_next = true; then
1887         ac_must_keep_next=false # Got value, back to normal.
1888       else
1889         case $ac_arg in
1890           *=* | --config-cache | -C | -disable-* | --disable-* \
1891           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1892           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1893           | -with-* | --with-* | -without-* | --without-* | --x)
1894             case "$ac_configure_args0 " in
1895               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1896             esac
1897             ;;
1898           -* ) ac_must_keep_next=true ;;
1899         esac
1900       fi
1901       as_fn_append ac_configure_args " '$ac_arg'"
1902       ;;
1903     esac
1904   done
1905 done
1906 { ac_configure_args0=; unset ac_configure_args0;}
1907 { ac_configure_args1=; unset ac_configure_args1;}
1908
1909 # When interrupted or exit'd, cleanup temporary files, and complete
1910 # config.log.  We remove comments because anyway the quotes in there
1911 # would cause problems or look ugly.
1912 # WARNING: Use '\'' to represent an apostrophe within the trap.
1913 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1914 trap 'exit_status=$?
1915   # Save into config.log some information that might help in debugging.
1916   {
1917     echo
1918
1919     $as_echo "## ---------------- ##
1920 ## Cache variables. ##
1921 ## ---------------- ##"
1922     echo
1923     # The following way of writing the cache mishandles newlines in values,
1924 (
1925   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1926     eval ac_val=\$$ac_var
1927     case $ac_val in #(
1928     *${as_nl}*)
1929       case $ac_var in #(
1930       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1931 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1932       esac
1933       case $ac_var in #(
1934       _ | IFS | as_nl) ;; #(
1935       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1936       *) { eval $ac_var=; unset $ac_var;} ;;
1937       esac ;;
1938     esac
1939   done
1940   (set) 2>&1 |
1941     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1942     *${as_nl}ac_space=\ *)
1943       sed -n \
1944         "s/'\''/'\''\\\\'\'''\''/g;
1945           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1946       ;; #(
1947     *)
1948       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1949       ;;
1950     esac |
1951     sort
1952 )
1953     echo
1954
1955     $as_echo "## ----------------- ##
1956 ## Output variables. ##
1957 ## ----------------- ##"
1958     echo
1959     for ac_var in $ac_subst_vars
1960     do
1961       eval ac_val=\$$ac_var
1962       case $ac_val in
1963       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1964       esac
1965       $as_echo "$ac_var='\''$ac_val'\''"
1966     done | sort
1967     echo
1968
1969     if test -n "$ac_subst_files"; then
1970       $as_echo "## ------------------- ##
1971 ## File substitutions. ##
1972 ## ------------------- ##"
1973       echo
1974       for ac_var in $ac_subst_files
1975       do
1976         eval ac_val=\$$ac_var
1977         case $ac_val in
1978         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1979         esac
1980         $as_echo "$ac_var='\''$ac_val'\''"
1981       done | sort
1982       echo
1983     fi
1984
1985     if test -s confdefs.h; then
1986       $as_echo "## ----------- ##
1987 ## confdefs.h. ##
1988 ## ----------- ##"
1989       echo
1990       cat confdefs.h
1991       echo
1992     fi
1993     test "$ac_signal" != 0 &&
1994       $as_echo "$as_me: caught signal $ac_signal"
1995     $as_echo "$as_me: exit $exit_status"
1996   } >&5
1997   rm -f core *.core core.conftest.* &&
1998     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1999     exit $exit_status
2000 ' 0
2001 for ac_signal in 1 2 13 15; do
2002   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2003 done
2004 ac_signal=0
2005
2006 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2007 rm -f -r conftest* confdefs.h
2008
2009 $as_echo "/* confdefs.h */" > confdefs.h
2010
2011 # Predefined preprocessor variables.
2012
2013 cat >>confdefs.h <<_ACEOF
2014 #define PACKAGE_NAME "$PACKAGE_NAME"
2015 _ACEOF
2016
2017 cat >>confdefs.h <<_ACEOF
2018 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2019 _ACEOF
2020
2021 cat >>confdefs.h <<_ACEOF
2022 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2023 _ACEOF
2024
2025 cat >>confdefs.h <<_ACEOF
2026 #define PACKAGE_STRING "$PACKAGE_STRING"
2027 _ACEOF
2028
2029 cat >>confdefs.h <<_ACEOF
2030 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2031 _ACEOF
2032
2033 cat >>confdefs.h <<_ACEOF
2034 #define PACKAGE_URL "$PACKAGE_URL"
2035 _ACEOF
2036
2037
2038 # Let the site file select an alternate cache file if it wants to.
2039 # Prefer an explicitly selected file to automatically selected ones.
2040 ac_site_file1=NONE
2041 ac_site_file2=NONE
2042 if test -n "$CONFIG_SITE"; then
2043   # We do not want a PATH search for config.site.
2044   case $CONFIG_SITE in #((
2045     -*)  ac_site_file1=./$CONFIG_SITE;;
2046     */*) ac_site_file1=$CONFIG_SITE;;
2047     *)   ac_site_file1=./$CONFIG_SITE;;
2048   esac
2049 elif test "x$prefix" != xNONE; then
2050   ac_site_file1=$prefix/share/config.site
2051   ac_site_file2=$prefix/etc/config.site
2052 else
2053   ac_site_file1=$ac_default_prefix/share/config.site
2054   ac_site_file2=$ac_default_prefix/etc/config.site
2055 fi
2056 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2057 do
2058   test "x$ac_site_file" = xNONE && continue
2059   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2060     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2061 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2062     sed 's/^/| /' "$ac_site_file" >&5
2063     . "$ac_site_file" \
2064       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2065 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2066 as_fn_error $? "failed to load site script $ac_site_file
2067 See \`config.log' for more details" "$LINENO" 5; }
2068   fi
2069 done
2070
2071 if test -r "$cache_file"; then
2072   # Some versions of bash will fail to source /dev/null (special files
2073   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2074   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2075     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2076 $as_echo "$as_me: loading cache $cache_file" >&6;}
2077     case $cache_file in
2078       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2079       *)                      . "./$cache_file";;
2080     esac
2081   fi
2082 else
2083   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2084 $as_echo "$as_me: creating cache $cache_file" >&6;}
2085   >$cache_file
2086 fi
2087
2088 # Check that the precious variables saved in the cache have kept the same
2089 # value.
2090 ac_cache_corrupted=false
2091 for ac_var in $ac_precious_vars; do
2092   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2093   eval ac_new_set=\$ac_env_${ac_var}_set
2094   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2095   eval ac_new_val=\$ac_env_${ac_var}_value
2096   case $ac_old_set,$ac_new_set in
2097     set,)
2098       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2099 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2100       ac_cache_corrupted=: ;;
2101     ,set)
2102       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2103 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2104       ac_cache_corrupted=: ;;
2105     ,);;
2106     *)
2107       if test "x$ac_old_val" != "x$ac_new_val"; then
2108         # differences in whitespace do not lead to failure.
2109         ac_old_val_w=`echo x $ac_old_val`
2110         ac_new_val_w=`echo x $ac_new_val`
2111         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2112           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2113 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2114           ac_cache_corrupted=:
2115         else
2116           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2117 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2118           eval $ac_var=\$ac_old_val
2119         fi
2120         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2121 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2122         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2123 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2124       fi;;
2125   esac
2126   # Pass precious variables to config.status.
2127   if test "$ac_new_set" = set; then
2128     case $ac_new_val in
2129     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2130     *) ac_arg=$ac_var=$ac_new_val ;;
2131     esac
2132     case " $ac_configure_args " in
2133       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2134       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2135     esac
2136   fi
2137 done
2138 if $ac_cache_corrupted; then
2139   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2140 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2141   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2142 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2143   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2144 fi
2145 ## -------------------- ##
2146 ## Main body of script. ##
2147 ## -------------------- ##
2148
2149 ac_ext=c
2150 ac_cpp='$CPP $CPPFLAGS'
2151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2154
2155
2156
2157 am__api_version='1.12'
2158
2159 ac_aux_dir=
2160 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2161   if test -f "$ac_dir/install-sh"; then
2162     ac_aux_dir=$ac_dir
2163     ac_install_sh="$ac_aux_dir/install-sh -c"
2164     break
2165   elif test -f "$ac_dir/install.sh"; then
2166     ac_aux_dir=$ac_dir
2167     ac_install_sh="$ac_aux_dir/install.sh -c"
2168     break
2169   elif test -f "$ac_dir/shtool"; then
2170     ac_aux_dir=$ac_dir
2171     ac_install_sh="$ac_aux_dir/shtool install -c"
2172     break
2173   fi
2174 done
2175 if test -z "$ac_aux_dir"; then
2176   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2177 fi
2178
2179 # These three variables are undocumented and unsupported,
2180 # and are intended to be withdrawn in a future Autoconf release.
2181 # They can cause serious problems if a builder's source tree is in a directory
2182 # whose full name contains unusual characters.
2183 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2184 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2185 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2186
2187
2188 # Find a good install program.  We prefer a C program (faster),
2189 # so one script is as good as another.  But avoid the broken or
2190 # incompatible versions:
2191 # SysV /etc/install, /usr/sbin/install
2192 # SunOS /usr/etc/install
2193 # IRIX /sbin/install
2194 # AIX /bin/install
2195 # AmigaOS /C/install, which installs bootblocks on floppy discs
2196 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2197 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2198 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2199 # OS/2's system install, which has a completely different semantic
2200 # ./install, which can be erroneously created by make from ./install.sh.
2201 # Reject install programs that cannot install multiple files.
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2203 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2204 if test -z "$INSTALL"; then
2205 if ${ac_cv_path_install+:} false; then :
2206   $as_echo_n "(cached) " >&6
2207 else
2208   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2209 for as_dir in $PATH
2210 do
2211   IFS=$as_save_IFS
2212   test -z "$as_dir" && as_dir=.
2213     # Account for people who put trailing slashes in PATH elements.
2214 case $as_dir/ in #((
2215   ./ | .// | /[cC]/* | \
2216   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2217   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2218   /usr/ucb/* ) ;;
2219   *)
2220     # OSF1 and SCO ODT 3.0 have their own names for install.
2221     # Don't use installbsd from OSF since it installs stuff as root
2222     # by default.
2223     for ac_prog in ginstall scoinst install; do
2224       for ac_exec_ext in '' $ac_executable_extensions; do
2225         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2226           if test $ac_prog = install &&
2227             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2228             # AIX install.  It has an incompatible calling convention.
2229             :
2230           elif test $ac_prog = install &&
2231             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2232             # program-specific install script used by HP pwplus--don't use.
2233             :
2234           else
2235             rm -rf conftest.one conftest.two conftest.dir
2236             echo one > conftest.one
2237             echo two > conftest.two
2238             mkdir conftest.dir
2239             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2240               test -s conftest.one && test -s conftest.two &&
2241               test -s conftest.dir/conftest.one &&
2242               test -s conftest.dir/conftest.two
2243             then
2244               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2245               break 3
2246             fi
2247           fi
2248         fi
2249       done
2250     done
2251     ;;
2252 esac
2253
2254   done
2255 IFS=$as_save_IFS
2256
2257 rm -rf conftest.one conftest.two conftest.dir
2258
2259 fi
2260   if test "${ac_cv_path_install+set}" = set; then
2261     INSTALL=$ac_cv_path_install
2262   else
2263     # As a last resort, use the slow shell script.  Don't cache a
2264     # value for INSTALL within a source directory, because that will
2265     # break other packages using the cache if that directory is
2266     # removed, or if the value is a relative name.
2267     INSTALL=$ac_install_sh
2268   fi
2269 fi
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2271 $as_echo "$INSTALL" >&6; }
2272
2273 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2274 # It thinks the first close brace ends the variable substitution.
2275 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2276
2277 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2278
2279 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2280
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2282 $as_echo_n "checking whether build environment is sane... " >&6; }
2283 # Reject unsafe characters in $srcdir or the absolute working directory
2284 # name.  Accept space and tab only in the latter.
2285 am_lf='
2286 '
2287 case `pwd` in
2288   *[\\\"\#\$\&\'\`$am_lf]*)
2289     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2290 esac
2291 case $srcdir in
2292   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2293     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2294 esac
2295
2296 # Do 'set' in a subshell so we don't clobber the current shell's
2297 # arguments.  Must try -L first in case configure is actually a
2298 # symlink; some systems play weird games with the mod time of symlinks
2299 # (eg FreeBSD returns the mod time of the symlink's containing
2300 # directory).
2301 if (
2302    am_has_slept=no
2303    for am_try in 1 2; do
2304      echo "timestamp, slept: $am_has_slept" > conftest.file
2305      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2306      if test "$*" = "X"; then
2307         # -L didn't work.
2308         set X `ls -t "$srcdir/configure" conftest.file`
2309      fi
2310      if test "$*" != "X $srcdir/configure conftest.file" \
2311         && test "$*" != "X conftest.file $srcdir/configure"; then
2312
2313         # If neither matched, then we have a broken ls.  This can happen
2314         # if, for instance, CONFIG_SHELL is bash and it inherits a
2315         # broken ls alias from the environment.  This has actually
2316         # happened.  Such a system could not be considered "sane".
2317         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2318   alias in your environment" "$LINENO" 5
2319      fi
2320      if test "$2" = conftest.file || test $am_try -eq 2; then
2321        break
2322      fi
2323      # Just in case.
2324      sleep 1
2325      am_has_slept=yes
2326    done
2327    test "$2" = conftest.file
2328    )
2329 then
2330    # Ok.
2331    :
2332 else
2333    as_fn_error $? "newly created file is older than distributed files!
2334 Check your system clock" "$LINENO" 5
2335 fi
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2337 $as_echo "yes" >&6; }
2338 # If we didn't sleep, we still need to ensure time stamps of config.status and
2339 # generated files are strictly newer.
2340 am_sleep_pid=
2341 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2342   ( sleep 1 ) &
2343   am_sleep_pid=$!
2344 fi
2345
2346 rm -f conftest.file
2347
2348 test "$program_prefix" != NONE &&
2349   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2350 # Use a double $ so make ignores it.
2351 test "$program_suffix" != NONE &&
2352   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2353 # Double any \ or $.
2354 # By default was `s,x,x', remove it if useless.
2355 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2356 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2357
2358 # expand $ac_aux_dir to an absolute path
2359 am_aux_dir=`cd $ac_aux_dir && pwd`
2360
2361 if test x"${MISSING+set}" != xset; then
2362   case $am_aux_dir in
2363   *\ * | *\     *)
2364     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2365   *)
2366     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2367   esac
2368 fi
2369 # Use eval to expand $SHELL
2370 if eval "$MISSING --run true"; then
2371   am_missing_run="$MISSING --run "
2372 else
2373   am_missing_run=
2374   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2375 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2376 fi
2377
2378 if test x"${install_sh}" != xset; then
2379   case $am_aux_dir in
2380   *\ * | *\     *)
2381     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2382   *)
2383     install_sh="\${SHELL} $am_aux_dir/install-sh"
2384   esac
2385 fi
2386
2387 # Installed binaries are usually stripped using 'strip' when the user
2388 # run "make install-strip".  However 'strip' might not be the right
2389 # tool to use in cross-compilation environments, therefore Automake
2390 # will honor the 'STRIP' environment variable to overrule this program.
2391 if test "$cross_compiling" != no; then
2392   if test -n "$ac_tool_prefix"; then
2393   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2394 set dummy ${ac_tool_prefix}strip; ac_word=$2
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2396 $as_echo_n "checking for $ac_word... " >&6; }
2397 if ${ac_cv_prog_STRIP+:} false; then :
2398   $as_echo_n "(cached) " >&6
2399 else
2400   if test -n "$STRIP"; then
2401   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2402 else
2403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2404 for as_dir in $PATH
2405 do
2406   IFS=$as_save_IFS
2407   test -z "$as_dir" && as_dir=.
2408     for ac_exec_ext in '' $ac_executable_extensions; do
2409   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2410     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2411     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2412     break 2
2413   fi
2414 done
2415   done
2416 IFS=$as_save_IFS
2417
2418 fi
2419 fi
2420 STRIP=$ac_cv_prog_STRIP
2421 if test -n "$STRIP"; then
2422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2423 $as_echo "$STRIP" >&6; }
2424 else
2425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2426 $as_echo "no" >&6; }
2427 fi
2428
2429
2430 fi
2431 if test -z "$ac_cv_prog_STRIP"; then
2432   ac_ct_STRIP=$STRIP
2433   # Extract the first word of "strip", so it can be a program name with args.
2434 set dummy strip; ac_word=$2
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2436 $as_echo_n "checking for $ac_word... " >&6; }
2437 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2438   $as_echo_n "(cached) " >&6
2439 else
2440   if test -n "$ac_ct_STRIP"; then
2441   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2442 else
2443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2444 for as_dir in $PATH
2445 do
2446   IFS=$as_save_IFS
2447   test -z "$as_dir" && as_dir=.
2448     for ac_exec_ext in '' $ac_executable_extensions; do
2449   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2450     ac_cv_prog_ac_ct_STRIP="strip"
2451     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2452     break 2
2453   fi
2454 done
2455   done
2456 IFS=$as_save_IFS
2457
2458 fi
2459 fi
2460 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2461 if test -n "$ac_ct_STRIP"; then
2462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2463 $as_echo "$ac_ct_STRIP" >&6; }
2464 else
2465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2466 $as_echo "no" >&6; }
2467 fi
2468
2469   if test "x$ac_ct_STRIP" = x; then
2470     STRIP=":"
2471   else
2472     case $cross_compiling:$ac_tool_warned in
2473 yes:)
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2475 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2476 ac_tool_warned=yes ;;
2477 esac
2478     STRIP=$ac_ct_STRIP
2479   fi
2480 else
2481   STRIP="$ac_cv_prog_STRIP"
2482 fi
2483
2484 fi
2485 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2486
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2488 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2489 if test -z "$MKDIR_P"; then
2490   if ${ac_cv_path_mkdir+:} false; then :
2491   $as_echo_n "(cached) " >&6
2492 else
2493   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2495 do
2496   IFS=$as_save_IFS
2497   test -z "$as_dir" && as_dir=.
2498     for ac_prog in mkdir gmkdir; do
2499          for ac_exec_ext in '' $ac_executable_extensions; do
2500            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2501            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2502              'mkdir (GNU coreutils) '* | \
2503              'mkdir (coreutils) '* | \
2504              'mkdir (fileutils) '4.1*)
2505                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2506                break 3;;
2507            esac
2508          done
2509        done
2510   done
2511 IFS=$as_save_IFS
2512
2513 fi
2514
2515   test -d ./--version && rmdir ./--version
2516   if test "${ac_cv_path_mkdir+set}" = set; then
2517     MKDIR_P="$ac_cv_path_mkdir -p"
2518   else
2519     # As a last resort, use the slow shell script.  Don't cache a
2520     # value for MKDIR_P within a source directory, because that will
2521     # break other packages using the cache if that directory is
2522     # removed, or if the value is a relative name.
2523     MKDIR_P="$ac_install_sh -d"
2524   fi
2525 fi
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2527 $as_echo "$MKDIR_P" >&6; }
2528
2529 mkdir_p="$MKDIR_P"
2530 case $mkdir_p in
2531   [\\/$]* | ?:[\\/]*) ;;
2532   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2533 esac
2534
2535 for ac_prog in gawk mawk nawk awk
2536 do
2537   # Extract the first word of "$ac_prog", so it can be a program name with args.
2538 set dummy $ac_prog; ac_word=$2
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2540 $as_echo_n "checking for $ac_word... " >&6; }
2541 if ${ac_cv_prog_AWK+:} false; then :
2542   $as_echo_n "(cached) " >&6
2543 else
2544   if test -n "$AWK"; then
2545   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2546 else
2547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2548 for as_dir in $PATH
2549 do
2550   IFS=$as_save_IFS
2551   test -z "$as_dir" && as_dir=.
2552     for ac_exec_ext in '' $ac_executable_extensions; do
2553   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2554     ac_cv_prog_AWK="$ac_prog"
2555     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2556     break 2
2557   fi
2558 done
2559   done
2560 IFS=$as_save_IFS
2561
2562 fi
2563 fi
2564 AWK=$ac_cv_prog_AWK
2565 if test -n "$AWK"; then
2566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2567 $as_echo "$AWK" >&6; }
2568 else
2569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2570 $as_echo "no" >&6; }
2571 fi
2572
2573
2574   test -n "$AWK" && break
2575 done
2576
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2578 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2579 set x ${MAKE-make}
2580 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2581 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2582   $as_echo_n "(cached) " >&6
2583 else
2584   cat >conftest.make <<\_ACEOF
2585 SHELL = /bin/sh
2586 all:
2587         @echo '@@@%%%=$(MAKE)=@@@%%%'
2588 _ACEOF
2589 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2590 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2591   *@@@%%%=?*=@@@%%%*)
2592     eval ac_cv_prog_make_${ac_make}_set=yes;;
2593   *)
2594     eval ac_cv_prog_make_${ac_make}_set=no;;
2595 esac
2596 rm -f conftest.make
2597 fi
2598 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2600 $as_echo "yes" >&6; }
2601   SET_MAKE=
2602 else
2603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2604 $as_echo "no" >&6; }
2605   SET_MAKE="MAKE=${MAKE-make}"
2606 fi
2607
2608 rm -rf .tst 2>/dev/null
2609 mkdir .tst 2>/dev/null
2610 if test -d .tst; then
2611   am__leading_dot=.
2612 else
2613   am__leading_dot=_
2614 fi
2615 rmdir .tst 2>/dev/null
2616
2617 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2618   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2619   # is not polluted with repeated "-I."
2620   am__isrc=' -I$(srcdir)'
2621   # test to see if srcdir already configured
2622   if test -f $srcdir/config.status; then
2623     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2624   fi
2625 fi
2626
2627 # test whether we have cygpath
2628 if test -z "$CYGPATH_W"; then
2629   if (cygpath --version) >/dev/null 2>/dev/null; then
2630     CYGPATH_W='cygpath -w'
2631   else
2632     CYGPATH_W=echo
2633   fi
2634 fi
2635
2636
2637 # Define the identity of the package.
2638  PACKAGE='wimlib'
2639  VERSION='0.7.0'
2640
2641
2642 cat >>confdefs.h <<_ACEOF
2643 #define PACKAGE "$PACKAGE"
2644 _ACEOF
2645
2646
2647 cat >>confdefs.h <<_ACEOF
2648 #define VERSION "$VERSION"
2649 _ACEOF
2650
2651 # Some tools Automake needs.
2652
2653 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2654
2655
2656 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2657
2658
2659 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2660
2661
2662 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2663
2664
2665 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2666
2667 # We need awk for the "check" target.  The system "awk" is bad on
2668 # some platforms.
2669 # Always define AMTAR for backward compatibility.  Yes, it's still used
2670 # in the wild :-(  We should find a proper way to deprecate it ...
2671 AMTAR='$${TAR-tar}'
2672
2673 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2674
2675
2676
2677
2678
2679
2680 DEPDIR="${am__leading_dot}deps"
2681
2682 ac_config_commands="$ac_config_commands depfiles"
2683
2684
2685 am_make=${MAKE-make}
2686 cat > confinc << 'END'
2687 am__doit:
2688         @echo this is the am__doit target
2689 .PHONY: am__doit
2690 END
2691 # If we don't find an include directive, just comment out the code.
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2693 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2694 am__include="#"
2695 am__quote=
2696 _am_result=none
2697 # First try GNU make style include.
2698 echo "include confinc" > confmf
2699 # Ignore all kinds of additional output from 'make'.
2700 case `$am_make -s -f confmf 2> /dev/null` in #(
2701 *the\ am__doit\ target*)
2702   am__include=include
2703   am__quote=
2704   _am_result=GNU
2705   ;;
2706 esac
2707 # Now try BSD make style include.
2708 if test "$am__include" = "#"; then
2709    echo '.include "confinc"' > confmf
2710    case `$am_make -s -f confmf 2> /dev/null` in #(
2711    *the\ am__doit\ target*)
2712      am__include=.include
2713      am__quote="\""
2714      _am_result=BSD
2715      ;;
2716    esac
2717 fi
2718
2719
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2721 $as_echo "$_am_result" >&6; }
2722 rm -f confinc confmf
2723
2724 # Check whether --enable-dependency-tracking was given.
2725 if test "${enable_dependency_tracking+set}" = set; then :
2726   enableval=$enable_dependency_tracking;
2727 fi
2728
2729 if test "x$enable_dependency_tracking" != xno; then
2730   am_depcomp="$ac_aux_dir/depcomp"
2731   AMDEPBACKSLASH='\'
2732   am__nodep='_no'
2733 fi
2734  if test "x$enable_dependency_tracking" != xno; then
2735   AMDEP_TRUE=
2736   AMDEP_FALSE='#'
2737 else
2738   AMDEP_TRUE='#'
2739   AMDEP_FALSE=
2740 fi
2741
2742
2743 ac_ext=c
2744 ac_cpp='$CPP $CPPFLAGS'
2745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2748 if test -n "$ac_tool_prefix"; then
2749   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2750 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2752 $as_echo_n "checking for $ac_word... " >&6; }
2753 if ${ac_cv_prog_CC+:} false; then :
2754   $as_echo_n "(cached) " >&6
2755 else
2756   if test -n "$CC"; then
2757   ac_cv_prog_CC="$CC" # Let the user override the test.
2758 else
2759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2760 for as_dir in $PATH
2761 do
2762   IFS=$as_save_IFS
2763   test -z "$as_dir" && as_dir=.
2764     for ac_exec_ext in '' $ac_executable_extensions; do
2765   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2766     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2767     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2768     break 2
2769   fi
2770 done
2771   done
2772 IFS=$as_save_IFS
2773
2774 fi
2775 fi
2776 CC=$ac_cv_prog_CC
2777 if test -n "$CC"; then
2778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2779 $as_echo "$CC" >&6; }
2780 else
2781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2782 $as_echo "no" >&6; }
2783 fi
2784
2785
2786 fi
2787 if test -z "$ac_cv_prog_CC"; then
2788   ac_ct_CC=$CC
2789   # Extract the first word of "gcc", so it can be a program name with args.
2790 set dummy gcc; ac_word=$2
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2792 $as_echo_n "checking for $ac_word... " >&6; }
2793 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2794   $as_echo_n "(cached) " >&6
2795 else
2796   if test -n "$ac_ct_CC"; then
2797   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2798 else
2799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2800 for as_dir in $PATH
2801 do
2802   IFS=$as_save_IFS
2803   test -z "$as_dir" && as_dir=.
2804     for ac_exec_ext in '' $ac_executable_extensions; do
2805   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2806     ac_cv_prog_ac_ct_CC="gcc"
2807     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2808     break 2
2809   fi
2810 done
2811   done
2812 IFS=$as_save_IFS
2813
2814 fi
2815 fi
2816 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2817 if test -n "$ac_ct_CC"; then
2818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2819 $as_echo "$ac_ct_CC" >&6; }
2820 else
2821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2822 $as_echo "no" >&6; }
2823 fi
2824
2825   if test "x$ac_ct_CC" = x; then
2826     CC=""
2827   else
2828     case $cross_compiling:$ac_tool_warned in
2829 yes:)
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2831 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2832 ac_tool_warned=yes ;;
2833 esac
2834     CC=$ac_ct_CC
2835   fi
2836 else
2837   CC="$ac_cv_prog_CC"
2838 fi
2839
2840 if test -z "$CC"; then
2841           if test -n "$ac_tool_prefix"; then
2842     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2843 set dummy ${ac_tool_prefix}cc; ac_word=$2
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2845 $as_echo_n "checking for $ac_word... " >&6; }
2846 if ${ac_cv_prog_CC+:} false; then :
2847   $as_echo_n "(cached) " >&6
2848 else
2849   if test -n "$CC"; then
2850   ac_cv_prog_CC="$CC" # Let the user override the test.
2851 else
2852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853 for as_dir in $PATH
2854 do
2855   IFS=$as_save_IFS
2856   test -z "$as_dir" && as_dir=.
2857     for ac_exec_ext in '' $ac_executable_extensions; do
2858   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2859     ac_cv_prog_CC="${ac_tool_prefix}cc"
2860     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2861     break 2
2862   fi
2863 done
2864   done
2865 IFS=$as_save_IFS
2866
2867 fi
2868 fi
2869 CC=$ac_cv_prog_CC
2870 if test -n "$CC"; then
2871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2872 $as_echo "$CC" >&6; }
2873 else
2874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2875 $as_echo "no" >&6; }
2876 fi
2877
2878
2879   fi
2880 fi
2881 if test -z "$CC"; then
2882   # Extract the first word of "cc", so it can be a program name with args.
2883 set dummy cc; ac_word=$2
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2885 $as_echo_n "checking for $ac_word... " >&6; }
2886 if ${ac_cv_prog_CC+:} false; then :
2887   $as_echo_n "(cached) " >&6
2888 else
2889   if test -n "$CC"; then
2890   ac_cv_prog_CC="$CC" # Let the user override the test.
2891 else
2892   ac_prog_rejected=no
2893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2894 for as_dir in $PATH
2895 do
2896   IFS=$as_save_IFS
2897   test -z "$as_dir" && as_dir=.
2898     for ac_exec_ext in '' $ac_executable_extensions; do
2899   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2900     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2901        ac_prog_rejected=yes
2902        continue
2903      fi
2904     ac_cv_prog_CC="cc"
2905     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2906     break 2
2907   fi
2908 done
2909   done
2910 IFS=$as_save_IFS
2911
2912 if test $ac_prog_rejected = yes; then
2913   # We found a bogon in the path, so make sure we never use it.
2914   set dummy $ac_cv_prog_CC
2915   shift
2916   if test $# != 0; then
2917     # We chose a different compiler from the bogus one.
2918     # However, it has the same basename, so the bogon will be chosen
2919     # first if we set CC to just the basename; use the full file name.
2920     shift
2921     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2922   fi
2923 fi
2924 fi
2925 fi
2926 CC=$ac_cv_prog_CC
2927 if test -n "$CC"; then
2928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2929 $as_echo "$CC" >&6; }
2930 else
2931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2932 $as_echo "no" >&6; }
2933 fi
2934
2935
2936 fi
2937 if test -z "$CC"; then
2938   if test -n "$ac_tool_prefix"; then
2939   for ac_prog in cl.exe
2940   do
2941     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2942 set dummy $ac_tool_prefix$ac_prog; 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$ac_prog"
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     test -n "$CC" && break
2979   done
2980 fi
2981 if test -z "$CC"; then
2982   ac_ct_CC=$CC
2983   for ac_prog in cl.exe
2984 do
2985   # Extract the first word of "$ac_prog", so it can be a program name with args.
2986 set dummy $ac_prog; ac_word=$2
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2988 $as_echo_n "checking for $ac_word... " >&6; }
2989 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2990   $as_echo_n "(cached) " >&6
2991 else
2992   if test -n "$ac_ct_CC"; then
2993   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2994 else
2995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996 for as_dir in $PATH
2997 do
2998   IFS=$as_save_IFS
2999   test -z "$as_dir" && as_dir=.
3000     for ac_exec_ext in '' $ac_executable_extensions; do
3001   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3002     ac_cv_prog_ac_ct_CC="$ac_prog"
3003     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3004     break 2
3005   fi
3006 done
3007   done
3008 IFS=$as_save_IFS
3009
3010 fi
3011 fi
3012 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3013 if test -n "$ac_ct_CC"; then
3014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3015 $as_echo "$ac_ct_CC" >&6; }
3016 else
3017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3018 $as_echo "no" >&6; }
3019 fi
3020
3021
3022   test -n "$ac_ct_CC" && break
3023 done
3024
3025   if test "x$ac_ct_CC" = x; then
3026     CC=""
3027   else
3028     case $cross_compiling:$ac_tool_warned in
3029 yes:)
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3031 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3032 ac_tool_warned=yes ;;
3033 esac
3034     CC=$ac_ct_CC
3035   fi
3036 fi
3037
3038 fi
3039
3040
3041 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3042 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3043 as_fn_error $? "no acceptable C compiler found in \$PATH
3044 See \`config.log' for more details" "$LINENO" 5; }
3045
3046 # Provide some information about the compiler.
3047 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3048 set X $ac_compile
3049 ac_compiler=$2
3050 for ac_option in --version -v -V -qversion; do
3051   { { ac_try="$ac_compiler $ac_option >&5"
3052 case "(($ac_try" in
3053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054   *) ac_try_echo=$ac_try;;
3055 esac
3056 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3057 $as_echo "$ac_try_echo"; } >&5
3058   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3059   ac_status=$?
3060   if test -s conftest.err; then
3061     sed '10a\
3062 ... rest of stderr output deleted ...
3063          10q' conftest.err >conftest.er1
3064     cat conftest.er1 >&5
3065   fi
3066   rm -f conftest.er1 conftest.err
3067   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3068   test $ac_status = 0; }
3069 done
3070
3071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3072 /* end confdefs.h.  */
3073
3074 int
3075 main ()
3076 {
3077
3078   ;
3079   return 0;
3080 }
3081 _ACEOF
3082 ac_clean_files_save=$ac_clean_files
3083 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3084 # Try to create an executable without -o first, disregard a.out.
3085 # It will help us diagnose broken compilers, and finding out an intuition
3086 # of exeext.
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3088 $as_echo_n "checking whether the C compiler works... " >&6; }
3089 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3090
3091 # The possible output files:
3092 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3093
3094 ac_rmfiles=
3095 for ac_file in $ac_files
3096 do
3097   case $ac_file in
3098     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3099     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3100   esac
3101 done
3102 rm -f $ac_rmfiles
3103
3104 if { { ac_try="$ac_link_default"
3105 case "(($ac_try" in
3106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107   *) ac_try_echo=$ac_try;;
3108 esac
3109 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3110 $as_echo "$ac_try_echo"; } >&5
3111   (eval "$ac_link_default") 2>&5
3112   ac_status=$?
3113   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3114   test $ac_status = 0; }; then :
3115   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3116 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3117 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3118 # so that the user can short-circuit this test for compilers unknown to
3119 # Autoconf.
3120 for ac_file in $ac_files ''
3121 do
3122   test -f "$ac_file" || continue
3123   case $ac_file in
3124     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3125         ;;
3126     [ab].out )
3127         # We found the default executable, but exeext='' is most
3128         # certainly right.
3129         break;;
3130     *.* )
3131         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3132         then :; else
3133            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3134         fi
3135         # We set ac_cv_exeext here because the later test for it is not
3136         # safe: cross compilers may not add the suffix if given an `-o'
3137         # argument, so we may need to know it at that point already.
3138         # Even if this section looks crufty: it has the advantage of
3139         # actually working.
3140         break;;
3141     * )
3142         break;;
3143   esac
3144 done
3145 test "$ac_cv_exeext" = no && ac_cv_exeext=
3146
3147 else
3148   ac_file=''
3149 fi
3150 if test -z "$ac_file"; then :
3151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3152 $as_echo "no" >&6; }
3153 $as_echo "$as_me: failed program was:" >&5
3154 sed 's/^/| /' conftest.$ac_ext >&5
3155
3156 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3157 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3158 as_fn_error 77 "C compiler cannot create executables
3159 See \`config.log' for more details" "$LINENO" 5; }
3160 else
3161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3162 $as_echo "yes" >&6; }
3163 fi
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3165 $as_echo_n "checking for C compiler default output file name... " >&6; }
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3167 $as_echo "$ac_file" >&6; }
3168 ac_exeext=$ac_cv_exeext
3169
3170 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3171 ac_clean_files=$ac_clean_files_save
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3173 $as_echo_n "checking for suffix of executables... " >&6; }
3174 if { { ac_try="$ac_link"
3175 case "(($ac_try" in
3176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177   *) ac_try_echo=$ac_try;;
3178 esac
3179 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3180 $as_echo "$ac_try_echo"; } >&5
3181   (eval "$ac_link") 2>&5
3182   ac_status=$?
3183   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3184   test $ac_status = 0; }; then :
3185   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3186 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3187 # work properly (i.e., refer to `conftest.exe'), while it won't with
3188 # `rm'.
3189 for ac_file in conftest.exe conftest conftest.*; do
3190   test -f "$ac_file" || continue
3191   case $ac_file in
3192     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3193     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3194           break;;
3195     * ) break;;
3196   esac
3197 done
3198 else
3199   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3200 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3201 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3202 See \`config.log' for more details" "$LINENO" 5; }
3203 fi
3204 rm -f conftest conftest$ac_cv_exeext
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3206 $as_echo "$ac_cv_exeext" >&6; }
3207
3208 rm -f conftest.$ac_ext
3209 EXEEXT=$ac_cv_exeext
3210 ac_exeext=$EXEEXT
3211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3212 /* end confdefs.h.  */
3213 #include <stdio.h>
3214 int
3215 main ()
3216 {
3217 FILE *f = fopen ("conftest.out", "w");
3218  return ferror (f) || fclose (f) != 0;
3219
3220   ;
3221   return 0;
3222 }
3223 _ACEOF
3224 ac_clean_files="$ac_clean_files conftest.out"
3225 # Check that the compiler produces executables we can run.  If not, either
3226 # the compiler is broken, or we cross compile.
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3228 $as_echo_n "checking whether we are cross compiling... " >&6; }
3229 if test "$cross_compiling" != yes; then
3230   { { ac_try="$ac_link"
3231 case "(($ac_try" in
3232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233   *) ac_try_echo=$ac_try;;
3234 esac
3235 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3236 $as_echo "$ac_try_echo"; } >&5
3237   (eval "$ac_link") 2>&5
3238   ac_status=$?
3239   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3240   test $ac_status = 0; }
3241   if { ac_try='./conftest$ac_cv_exeext'
3242   { { case "(($ac_try" in
3243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3244   *) ac_try_echo=$ac_try;;
3245 esac
3246 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3247 $as_echo "$ac_try_echo"; } >&5
3248   (eval "$ac_try") 2>&5
3249   ac_status=$?
3250   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3251   test $ac_status = 0; }; }; then
3252     cross_compiling=no
3253   else
3254     if test "$cross_compiling" = maybe; then
3255         cross_compiling=yes
3256     else
3257         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3258 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3259 as_fn_error $? "cannot run C compiled programs.
3260 If you meant to cross compile, use \`--host'.
3261 See \`config.log' for more details" "$LINENO" 5; }
3262     fi
3263   fi
3264 fi
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3266 $as_echo "$cross_compiling" >&6; }
3267
3268 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3269 ac_clean_files=$ac_clean_files_save
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3271 $as_echo_n "checking for suffix of object files... " >&6; }
3272 if ${ac_cv_objext+:} false; then :
3273   $as_echo_n "(cached) " >&6
3274 else
3275   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3276 /* end confdefs.h.  */
3277
3278 int
3279 main ()
3280 {
3281
3282   ;
3283   return 0;
3284 }
3285 _ACEOF
3286 rm -f conftest.o conftest.obj
3287 if { { ac_try="$ac_compile"
3288 case "(($ac_try" in
3289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3290   *) ac_try_echo=$ac_try;;
3291 esac
3292 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3293 $as_echo "$ac_try_echo"; } >&5
3294   (eval "$ac_compile") 2>&5
3295   ac_status=$?
3296   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3297   test $ac_status = 0; }; then :
3298   for ac_file in conftest.o conftest.obj conftest.*; do
3299   test -f "$ac_file" || continue;
3300   case $ac_file in
3301     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3302     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3303        break;;
3304   esac
3305 done
3306 else
3307   $as_echo "$as_me: failed program was:" >&5
3308 sed 's/^/| /' conftest.$ac_ext >&5
3309
3310 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3311 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3312 as_fn_error $? "cannot compute suffix of object files: cannot compile
3313 See \`config.log' for more details" "$LINENO" 5; }
3314 fi
3315 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3316 fi
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3318 $as_echo "$ac_cv_objext" >&6; }
3319 OBJEXT=$ac_cv_objext
3320 ac_objext=$OBJEXT
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3322 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3323 if ${ac_cv_c_compiler_gnu+:} false; then :
3324   $as_echo_n "(cached) " >&6
3325 else
3326   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3327 /* end confdefs.h.  */
3328
3329 int
3330 main ()
3331 {
3332 #ifndef __GNUC__
3333        choke me
3334 #endif
3335
3336   ;
3337   return 0;
3338 }
3339 _ACEOF
3340 if ac_fn_c_try_compile "$LINENO"; then :
3341   ac_compiler_gnu=yes
3342 else
3343   ac_compiler_gnu=no
3344 fi
3345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3346 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3347
3348 fi
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3350 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3351 if test $ac_compiler_gnu = yes; then
3352   GCC=yes
3353 else
3354   GCC=
3355 fi
3356 ac_test_CFLAGS=${CFLAGS+set}
3357 ac_save_CFLAGS=$CFLAGS
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3359 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3360 if ${ac_cv_prog_cc_g+:} false; then :
3361   $as_echo_n "(cached) " >&6
3362 else
3363   ac_save_c_werror_flag=$ac_c_werror_flag
3364    ac_c_werror_flag=yes
3365    ac_cv_prog_cc_g=no
3366    CFLAGS="-g"
3367    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3368 /* end confdefs.h.  */
3369
3370 int
3371 main ()
3372 {
3373
3374   ;
3375   return 0;
3376 }
3377 _ACEOF
3378 if ac_fn_c_try_compile "$LINENO"; then :
3379   ac_cv_prog_cc_g=yes
3380 else
3381   CFLAGS=""
3382       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3383 /* end confdefs.h.  */
3384
3385 int
3386 main ()
3387 {
3388
3389   ;
3390   return 0;
3391 }
3392 _ACEOF
3393 if ac_fn_c_try_compile "$LINENO"; then :
3394
3395 else
3396   ac_c_werror_flag=$ac_save_c_werror_flag
3397          CFLAGS="-g"
3398          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3399 /* end confdefs.h.  */
3400
3401 int
3402 main ()
3403 {
3404
3405   ;
3406   return 0;
3407 }
3408 _ACEOF
3409 if ac_fn_c_try_compile "$LINENO"; then :
3410   ac_cv_prog_cc_g=yes
3411 fi
3412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3413 fi
3414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3415 fi
3416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3417    ac_c_werror_flag=$ac_save_c_werror_flag
3418 fi
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3420 $as_echo "$ac_cv_prog_cc_g" >&6; }
3421 if test "$ac_test_CFLAGS" = set; then
3422   CFLAGS=$ac_save_CFLAGS
3423 elif test $ac_cv_prog_cc_g = yes; then
3424   if test "$GCC" = yes; then
3425     CFLAGS="-g -O2"
3426   else
3427     CFLAGS="-g"
3428   fi
3429 else
3430   if test "$GCC" = yes; then
3431     CFLAGS="-O2"
3432   else
3433     CFLAGS=
3434   fi
3435 fi
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3437 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3438 if ${ac_cv_prog_cc_c89+:} false; then :
3439   $as_echo_n "(cached) " >&6
3440 else
3441   ac_cv_prog_cc_c89=no
3442 ac_save_CC=$CC
3443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3444 /* end confdefs.h.  */
3445 #include <stdarg.h>
3446 #include <stdio.h>
3447 struct stat;
3448 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3449 struct buf { int x; };
3450 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3451 static char *e (p, i)
3452      char **p;
3453      int i;
3454 {
3455   return p[i];
3456 }
3457 static char *f (char * (*g) (char **, int), char **p, ...)
3458 {
3459   char *s;
3460   va_list v;
3461   va_start (v,p);
3462   s = g (p, va_arg (v,int));
3463   va_end (v);
3464   return s;
3465 }
3466
3467 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3468    function prototypes and stuff, but not '\xHH' hex character constants.
3469    These don't provoke an error unfortunately, instead are silently treated
3470    as 'x'.  The following induces an error, until -std is added to get
3471    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3472    array size at least.  It's necessary to write '\x00'==0 to get something
3473    that's true only with -std.  */
3474 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3475
3476 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3477    inside strings and character constants.  */
3478 #define FOO(x) 'x'
3479 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3480
3481 int test (int i, double x);
3482 struct s1 {int (*f) (int a);};
3483 struct s2 {int (*f) (double a);};
3484 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3485 int argc;
3486 char **argv;
3487 int
3488 main ()
3489 {
3490 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3491   ;
3492   return 0;
3493 }
3494 _ACEOF
3495 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3496         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3497 do
3498   CC="$ac_save_CC $ac_arg"
3499   if ac_fn_c_try_compile "$LINENO"; then :
3500   ac_cv_prog_cc_c89=$ac_arg
3501 fi
3502 rm -f core conftest.err conftest.$ac_objext
3503   test "x$ac_cv_prog_cc_c89" != "xno" && break
3504 done
3505 rm -f conftest.$ac_ext
3506 CC=$ac_save_CC
3507
3508 fi
3509 # AC_CACHE_VAL
3510 case "x$ac_cv_prog_cc_c89" in
3511   x)
3512     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3513 $as_echo "none needed" >&6; } ;;
3514   xno)
3515     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3516 $as_echo "unsupported" >&6; } ;;
3517   *)
3518     CC="$CC $ac_cv_prog_cc_c89"
3519     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3520 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3521 esac
3522 if test "x$ac_cv_prog_cc_c89" != xno; then :
3523
3524 fi
3525
3526 ac_ext=c
3527 ac_cpp='$CPP $CPPFLAGS'
3528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3531
3532 depcc="$CC"   am_compiler_list=
3533
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3535 $as_echo_n "checking dependency style of $depcc... " >&6; }
3536 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3537   $as_echo_n "(cached) " >&6
3538 else
3539   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3540   # We make a subdir and do the tests there.  Otherwise we can end up
3541   # making bogus files that we don't know about and never remove.  For
3542   # instance it was reported that on HP-UX the gcc test will end up
3543   # making a dummy file named 'D' -- because '-MD' means "put the output
3544   # in D".
3545   rm -rf conftest.dir
3546   mkdir conftest.dir
3547   # Copy depcomp to subdir because otherwise we won't find it if we're
3548   # using a relative directory.
3549   cp "$am_depcomp" conftest.dir
3550   cd conftest.dir
3551   # We will build objects and dependencies in a subdirectory because
3552   # it helps to detect inapplicable dependency modes.  For instance
3553   # both Tru64's cc and ICC support -MD to output dependencies as a
3554   # side effect of compilation, but ICC will put the dependencies in
3555   # the current directory while Tru64 will put them in the object
3556   # directory.
3557   mkdir sub
3558
3559   am_cv_CC_dependencies_compiler_type=none
3560   if test "$am_compiler_list" = ""; then
3561      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3562   fi
3563   am__universal=false
3564   case " $depcc " in #(
3565      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3566      esac
3567
3568   for depmode in $am_compiler_list; do
3569     # Setup a source with many dependencies, because some compilers
3570     # like to wrap large dependency lists on column 80 (with \), and
3571     # we should not choose a depcomp mode which is confused by this.
3572     #
3573     # We need to recreate these files for each test, as the compiler may
3574     # overwrite some of them when testing with obscure command lines.
3575     # This happens at least with the AIX C compiler.
3576     : > sub/conftest.c
3577     for i in 1 2 3 4 5 6; do
3578       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3579       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3580       # Solaris 10 /bin/sh.
3581       echo '/* dummy */' > sub/conftst$i.h
3582     done
3583     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3584
3585     # We check with '-c' and '-o' for the sake of the "dashmstdout"
3586     # mode.  It turns out that the SunPro C++ compiler does not properly
3587     # handle '-M -o', and we need to detect this.  Also, some Intel
3588     # versions had trouble with output in subdirs.
3589     am__obj=sub/conftest.${OBJEXT-o}
3590     am__minus_obj="-o $am__obj"
3591     case $depmode in
3592     gcc)
3593       # This depmode causes a compiler race in universal mode.
3594       test "$am__universal" = false || continue
3595       ;;
3596     nosideeffect)
3597       # After this tag, mechanisms are not by side-effect, so they'll
3598       # only be used when explicitly requested.
3599       if test "x$enable_dependency_tracking" = xyes; then
3600         continue
3601       else
3602         break
3603       fi
3604       ;;
3605     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3606       # This compiler won't grok '-c -o', but also, the minuso test has
3607       # not run yet.  These depmodes are late enough in the game, and
3608       # so weak that their functioning should not be impacted.
3609       am__obj=conftest.${OBJEXT-o}
3610       am__minus_obj=
3611       ;;
3612     none) break ;;
3613     esac
3614     if depmode=$depmode \
3615        source=sub/conftest.c object=$am__obj \
3616        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3617        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3618          >/dev/null 2>conftest.err &&
3619        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3620        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3621        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3622        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3623       # icc doesn't choke on unknown options, it will just issue warnings
3624       # or remarks (even with -Werror).  So we grep stderr for any message
3625       # that says an option was ignored or not supported.
3626       # When given -MP, icc 7.0 and 7.1 complain thusly:
3627       #   icc: Command line warning: ignoring option '-M'; no argument required
3628       # The diagnosis changed in icc 8.0:
3629       #   icc: Command line remark: option '-MP' not supported
3630       if (grep 'ignoring option' conftest.err ||
3631           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3632         am_cv_CC_dependencies_compiler_type=$depmode
3633         break
3634       fi
3635     fi
3636   done
3637
3638   cd ..
3639   rm -rf conftest.dir
3640 else
3641   am_cv_CC_dependencies_compiler_type=none
3642 fi
3643
3644 fi
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3646 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3647 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3648
3649  if
3650   test "x$enable_dependency_tracking" != xno \
3651   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3652   am__fastdepCC_TRUE=
3653   am__fastdepCC_FALSE='#'
3654 else
3655   am__fastdepCC_TRUE='#'
3656   am__fastdepCC_FALSE=
3657 fi
3658
3659
3660
3661 ac_ext=c
3662 ac_cpp='$CPP $CPPFLAGS'
3663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3667 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3668 # On Suns, sometimes $CPP names a directory.
3669 if test -n "$CPP" && test -d "$CPP"; then
3670   CPP=
3671 fi
3672 if test -z "$CPP"; then
3673   if ${ac_cv_prog_CPP+:} false; then :
3674   $as_echo_n "(cached) " >&6
3675 else
3676       # Double quotes because CPP needs to be expanded
3677     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3678     do
3679       ac_preproc_ok=false
3680 for ac_c_preproc_warn_flag in '' yes
3681 do
3682   # Use a header file that comes with gcc, so configuring glibc
3683   # with a fresh cross-compiler works.
3684   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3685   # <limits.h> exists even on freestanding compilers.
3686   # On the NeXT, cc -E runs the code through the compiler's parser,
3687   # not just through cpp. "Syntax error" is here to catch this case.
3688   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3689 /* end confdefs.h.  */
3690 #ifdef __STDC__
3691 # include <limits.h>
3692 #else
3693 # include <assert.h>
3694 #endif
3695                      Syntax error
3696 _ACEOF
3697 if ac_fn_c_try_cpp "$LINENO"; then :
3698
3699 else
3700   # Broken: fails on valid input.
3701 continue
3702 fi
3703 rm -f conftest.err conftest.i conftest.$ac_ext
3704
3705   # OK, works on sane cases.  Now check whether nonexistent headers
3706   # can be detected and how.
3707   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708 /* end confdefs.h.  */
3709 #include <ac_nonexistent.h>
3710 _ACEOF
3711 if ac_fn_c_try_cpp "$LINENO"; then :
3712   # Broken: success on invalid input.
3713 continue
3714 else
3715   # Passes both tests.
3716 ac_preproc_ok=:
3717 break
3718 fi
3719 rm -f conftest.err conftest.i conftest.$ac_ext
3720
3721 done
3722 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3723 rm -f conftest.i conftest.err conftest.$ac_ext
3724 if $ac_preproc_ok; then :
3725   break
3726 fi
3727
3728     done
3729     ac_cv_prog_CPP=$CPP
3730
3731 fi
3732   CPP=$ac_cv_prog_CPP
3733 else
3734   ac_cv_prog_CPP=$CPP
3735 fi
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3737 $as_echo "$CPP" >&6; }
3738 ac_preproc_ok=false
3739 for ac_c_preproc_warn_flag in '' yes
3740 do
3741   # Use a header file that comes with gcc, so configuring glibc
3742   # with a fresh cross-compiler works.
3743   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3744   # <limits.h> exists even on freestanding compilers.
3745   # On the NeXT, cc -E runs the code through the compiler's parser,
3746   # not just through cpp. "Syntax error" is here to catch this case.
3747   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3748 /* end confdefs.h.  */
3749 #ifdef __STDC__
3750 # include <limits.h>
3751 #else
3752 # include <assert.h>
3753 #endif
3754                      Syntax error
3755 _ACEOF
3756 if ac_fn_c_try_cpp "$LINENO"; then :
3757
3758 else
3759   # Broken: fails on valid input.
3760 continue
3761 fi
3762 rm -f conftest.err conftest.i conftest.$ac_ext
3763
3764   # OK, works on sane cases.  Now check whether nonexistent headers
3765   # can be detected and how.
3766   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3767 /* end confdefs.h.  */
3768 #include <ac_nonexistent.h>
3769 _ACEOF
3770 if ac_fn_c_try_cpp "$LINENO"; then :
3771   # Broken: success on invalid input.
3772 continue
3773 else
3774   # Passes both tests.
3775 ac_preproc_ok=:
3776 break
3777 fi
3778 rm -f conftest.err conftest.i conftest.$ac_ext
3779
3780 done
3781 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3782 rm -f conftest.i conftest.err conftest.$ac_ext
3783 if $ac_preproc_ok; then :
3784
3785 else
3786   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3787 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3788 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3789 See \`config.log' for more details" "$LINENO" 5; }
3790 fi
3791
3792 ac_ext=c
3793 ac_cpp='$CPP $CPPFLAGS'
3794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3797
3798
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3800 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3801 if ${ac_cv_path_GREP+:} false; then :
3802   $as_echo_n "(cached) " >&6
3803 else
3804   if test -z "$GREP"; then
3805   ac_path_GREP_found=false
3806   # Loop through the user's path and test for each of PROGNAME-LIST
3807   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3808 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3809 do
3810   IFS=$as_save_IFS
3811   test -z "$as_dir" && as_dir=.
3812     for ac_prog in grep ggrep; do
3813     for ac_exec_ext in '' $ac_executable_extensions; do
3814       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3815       as_fn_executable_p "$ac_path_GREP" || continue
3816 # Check for GNU ac_path_GREP and select it if it is found.
3817   # Check for GNU $ac_path_GREP
3818 case `"$ac_path_GREP" --version 2>&1` in
3819 *GNU*)
3820   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3821 *)
3822   ac_count=0
3823   $as_echo_n 0123456789 >"conftest.in"
3824   while :
3825   do
3826     cat "conftest.in" "conftest.in" >"conftest.tmp"
3827     mv "conftest.tmp" "conftest.in"
3828     cp "conftest.in" "conftest.nl"
3829     $as_echo 'GREP' >> "conftest.nl"
3830     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3831     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3832     as_fn_arith $ac_count + 1 && ac_count=$as_val
3833     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3834       # Best one so far, save it but keep looking for a better one
3835       ac_cv_path_GREP="$ac_path_GREP"
3836       ac_path_GREP_max=$ac_count
3837     fi
3838     # 10*(2^10) chars as input seems more than enough
3839     test $ac_count -gt 10 && break
3840   done
3841   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3842 esac
3843
3844       $ac_path_GREP_found && break 3
3845     done
3846   done
3847   done
3848 IFS=$as_save_IFS
3849   if test -z "$ac_cv_path_GREP"; then
3850     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3851   fi
3852 else
3853   ac_cv_path_GREP=$GREP
3854 fi
3855
3856 fi
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3858 $as_echo "$ac_cv_path_GREP" >&6; }
3859  GREP="$ac_cv_path_GREP"
3860
3861
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3863 $as_echo_n "checking for egrep... " >&6; }
3864 if ${ac_cv_path_EGREP+:} false; then :
3865   $as_echo_n "(cached) " >&6
3866 else
3867   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3868    then ac_cv_path_EGREP="$GREP -E"
3869    else
3870      if test -z "$EGREP"; then
3871   ac_path_EGREP_found=false
3872   # Loop through the user's path and test for each of PROGNAME-LIST
3873   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3874 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3875 do
3876   IFS=$as_save_IFS
3877   test -z "$as_dir" && as_dir=.
3878     for ac_prog in egrep; do
3879     for ac_exec_ext in '' $ac_executable_extensions; do
3880       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3881       as_fn_executable_p "$ac_path_EGREP" || continue
3882 # Check for GNU ac_path_EGREP and select it if it is found.
3883   # Check for GNU $ac_path_EGREP
3884 case `"$ac_path_EGREP" --version 2>&1` in
3885 *GNU*)
3886   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3887 *)
3888   ac_count=0
3889   $as_echo_n 0123456789 >"conftest.in"
3890   while :
3891   do
3892     cat "conftest.in" "conftest.in" >"conftest.tmp"
3893     mv "conftest.tmp" "conftest.in"
3894     cp "conftest.in" "conftest.nl"
3895     $as_echo 'EGREP' >> "conftest.nl"
3896     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3897     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3898     as_fn_arith $ac_count + 1 && ac_count=$as_val
3899     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3900       # Best one so far, save it but keep looking for a better one
3901       ac_cv_path_EGREP="$ac_path_EGREP"
3902       ac_path_EGREP_max=$ac_count
3903     fi
3904     # 10*(2^10) chars as input seems more than enough
3905     test $ac_count -gt 10 && break
3906   done
3907   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3908 esac
3909
3910       $ac_path_EGREP_found && break 3
3911     done
3912   done
3913   done
3914 IFS=$as_save_IFS
3915   if test -z "$ac_cv_path_EGREP"; then
3916     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3917   fi
3918 else
3919   ac_cv_path_EGREP=$EGREP
3920 fi
3921
3922    fi
3923 fi
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3925 $as_echo "$ac_cv_path_EGREP" >&6; }
3926  EGREP="$ac_cv_path_EGREP"
3927
3928
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3930 $as_echo_n "checking for ANSI C header files... " >&6; }
3931 if ${ac_cv_header_stdc+:} false; then :
3932   $as_echo_n "(cached) " >&6
3933 else
3934   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3935 /* end confdefs.h.  */
3936 #include <stdlib.h>
3937 #include <stdarg.h>
3938 #include <string.h>
3939 #include <float.h>
3940
3941 int
3942 main ()
3943 {
3944
3945   ;
3946   return 0;
3947 }
3948 _ACEOF
3949 if ac_fn_c_try_compile "$LINENO"; then :
3950   ac_cv_header_stdc=yes
3951 else
3952   ac_cv_header_stdc=no
3953 fi
3954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3955
3956 if test $ac_cv_header_stdc = yes; then
3957   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3958   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3959 /* end confdefs.h.  */
3960 #include <string.h>
3961
3962 _ACEOF
3963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3964   $EGREP "memchr" >/dev/null 2>&1; then :
3965
3966 else
3967   ac_cv_header_stdc=no
3968 fi
3969 rm -f conftest*
3970
3971 fi
3972
3973 if test $ac_cv_header_stdc = yes; then
3974   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3975   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3976 /* end confdefs.h.  */
3977 #include <stdlib.h>
3978
3979 _ACEOF
3980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3981   $EGREP "free" >/dev/null 2>&1; then :
3982
3983 else
3984   ac_cv_header_stdc=no
3985 fi
3986 rm -f conftest*
3987
3988 fi
3989
3990 if test $ac_cv_header_stdc = yes; then
3991   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3992   if test "$cross_compiling" = yes; then :
3993   :
3994 else
3995   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3996 /* end confdefs.h.  */
3997 #include <ctype.h>
3998 #include <stdlib.h>
3999 #if ((' ' & 0x0FF) == 0x020)
4000 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4001 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4002 #else
4003 # define ISLOWER(c) \
4004                    (('a' <= (c) && (c) <= 'i') \
4005                      || ('j' <= (c) && (c) <= 'r') \
4006                      || ('s' <= (c) && (c) <= 'z'))
4007 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4008 #endif
4009
4010 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4011 int
4012 main ()
4013 {
4014   int i;
4015   for (i = 0; i < 256; i++)
4016     if (XOR (islower (i), ISLOWER (i))
4017         || toupper (i) != TOUPPER (i))
4018       return 2;
4019   return 0;
4020 }
4021 _ACEOF
4022 if ac_fn_c_try_run "$LINENO"; then :
4023
4024 else
4025   ac_cv_header_stdc=no
4026 fi
4027 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4028   conftest.$ac_objext conftest.beam conftest.$ac_ext
4029 fi
4030
4031 fi
4032 fi
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4034 $as_echo "$ac_cv_header_stdc" >&6; }
4035 if test $ac_cv_header_stdc = yes; then
4036
4037 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4038
4039 fi
4040
4041 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4042 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4043                   inttypes.h stdint.h unistd.h
4044 do :
4045   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4046 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4047 "
4048 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4049   cat >>confdefs.h <<_ACEOF
4050 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4051 _ACEOF
4052
4053 fi
4054
4055 done
4056
4057
4058  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4059 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4060 if ${ac_cv_c_bigendian+:} false; then :
4061   $as_echo_n "(cached) " >&6
4062 else
4063   ac_cv_c_bigendian=unknown
4064     # See if we're dealing with a universal compiler.
4065     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4066 /* end confdefs.h.  */
4067 #ifndef __APPLE_CC__
4068                not a universal capable compiler
4069              #endif
4070              typedef int dummy;
4071
4072 _ACEOF
4073 if ac_fn_c_try_compile "$LINENO"; then :
4074
4075         # Check for potential -arch flags.  It is not universal unless
4076         # there are at least two -arch flags with different values.
4077         ac_arch=
4078         ac_prev=
4079         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4080          if test -n "$ac_prev"; then
4081            case $ac_word in
4082              i?86 | x86_64 | ppc | ppc64)
4083                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4084                  ac_arch=$ac_word
4085                else
4086                  ac_cv_c_bigendian=universal
4087                  break
4088                fi
4089                ;;
4090            esac
4091            ac_prev=
4092          elif test "x$ac_word" = "x-arch"; then
4093            ac_prev=arch
4094          fi
4095        done
4096 fi
4097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4098     if test $ac_cv_c_bigendian = unknown; then
4099       # See if sys/param.h defines the BYTE_ORDER macro.
4100       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4101 /* end confdefs.h.  */
4102 #include <sys/types.h>
4103              #include <sys/param.h>
4104
4105 int
4106 main ()
4107 {
4108 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4109                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4110                      && LITTLE_ENDIAN)
4111               bogus endian macros
4112              #endif
4113
4114   ;
4115   return 0;
4116 }
4117 _ACEOF
4118 if ac_fn_c_try_compile "$LINENO"; then :
4119   # It does; now see whether it defined to BIG_ENDIAN or not.
4120          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4121 /* end confdefs.h.  */
4122 #include <sys/types.h>
4123                 #include <sys/param.h>
4124
4125 int
4126 main ()
4127 {
4128 #if BYTE_ORDER != BIG_ENDIAN
4129                  not big endian
4130                 #endif
4131
4132   ;
4133   return 0;
4134 }
4135 _ACEOF
4136 if ac_fn_c_try_compile "$LINENO"; then :
4137   ac_cv_c_bigendian=yes
4138 else
4139   ac_cv_c_bigendian=no
4140 fi
4141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4142 fi
4143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4144     fi
4145     if test $ac_cv_c_bigendian = unknown; then
4146       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4147       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148 /* end confdefs.h.  */
4149 #include <limits.h>
4150
4151 int
4152 main ()
4153 {
4154 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4155               bogus endian macros
4156              #endif
4157
4158   ;
4159   return 0;
4160 }
4161 _ACEOF
4162 if ac_fn_c_try_compile "$LINENO"; then :
4163   # It does; now see whether it defined to _BIG_ENDIAN or not.
4164          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4165 /* end confdefs.h.  */
4166 #include <limits.h>
4167
4168 int
4169 main ()
4170 {
4171 #ifndef _BIG_ENDIAN
4172                  not big endian
4173                 #endif
4174
4175   ;
4176   return 0;
4177 }
4178 _ACEOF
4179 if ac_fn_c_try_compile "$LINENO"; then :
4180   ac_cv_c_bigendian=yes
4181 else
4182   ac_cv_c_bigendian=no
4183 fi
4184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4185 fi
4186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4187     fi
4188     if test $ac_cv_c_bigendian = unknown; then
4189       # Compile a test program.
4190       if test "$cross_compiling" = yes; then :
4191   # Try to guess by grepping values from an object file.
4192          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4193 /* end confdefs.h.  */
4194 short int ascii_mm[] =
4195                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4196                 short int ascii_ii[] =
4197                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4198                 int use_ascii (int i) {
4199                   return ascii_mm[i] + ascii_ii[i];
4200                 }
4201                 short int ebcdic_ii[] =
4202                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4203                 short int ebcdic_mm[] =
4204                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4205                 int use_ebcdic (int i) {
4206                   return ebcdic_mm[i] + ebcdic_ii[i];
4207                 }
4208                 extern int foo;
4209
4210 int
4211 main ()
4212 {
4213 return use_ascii (foo) == use_ebcdic (foo);
4214   ;
4215   return 0;
4216 }
4217 _ACEOF
4218 if ac_fn_c_try_compile "$LINENO"; then :
4219   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4220               ac_cv_c_bigendian=yes
4221             fi
4222             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4223               if test "$ac_cv_c_bigendian" = unknown; then
4224                 ac_cv_c_bigendian=no
4225               else
4226                 # finding both strings is unlikely to happen, but who knows?
4227                 ac_cv_c_bigendian=unknown
4228               fi
4229             fi
4230 fi
4231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4232 else
4233   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4234 /* end confdefs.h.  */
4235 $ac_includes_default
4236 int
4237 main ()
4238 {
4239
4240              /* Are we little or big endian?  From Harbison&Steele.  */
4241              union
4242              {
4243                long int l;
4244                char c[sizeof (long int)];
4245              } u;
4246              u.l = 1;
4247              return u.c[sizeof (long int) - 1] == 1;
4248
4249   ;
4250   return 0;
4251 }
4252 _ACEOF
4253 if ac_fn_c_try_run "$LINENO"; then :
4254   ac_cv_c_bigendian=no
4255 else
4256   ac_cv_c_bigendian=yes
4257 fi
4258 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4259   conftest.$ac_objext conftest.beam conftest.$ac_ext
4260 fi
4261
4262     fi
4263 fi
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4265 $as_echo "$ac_cv_c_bigendian" >&6; }
4266  case $ac_cv_c_bigendian in #(
4267    yes)
4268      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4269 ;; #(
4270    no)
4271       ;; #(
4272    universal)
4273
4274 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4275
4276      ;; #(
4277    *)
4278      as_fn_error $? "unknown endianness
4279  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4280  esac
4281
4282 if test -n "$ac_tool_prefix"; then
4283   for ac_prog in ar lib "link -lib"
4284   do
4285     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4286 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4288 $as_echo_n "checking for $ac_word... " >&6; }
4289 if ${ac_cv_prog_AR+:} false; then :
4290   $as_echo_n "(cached) " >&6
4291 else
4292   if test -n "$AR"; then
4293   ac_cv_prog_AR="$AR" # Let the user override the test.
4294 else
4295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4296 for as_dir in $PATH
4297 do
4298   IFS=$as_save_IFS
4299   test -z "$as_dir" && as_dir=.
4300     for ac_exec_ext in '' $ac_executable_extensions; do
4301   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4302     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4303     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4304     break 2
4305   fi
4306 done
4307   done
4308 IFS=$as_save_IFS
4309
4310 fi
4311 fi
4312 AR=$ac_cv_prog_AR
4313 if test -n "$AR"; then
4314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4315 $as_echo "$AR" >&6; }
4316 else
4317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4318 $as_echo "no" >&6; }
4319 fi
4320
4321
4322     test -n "$AR" && break
4323   done
4324 fi
4325 if test -z "$AR"; then
4326   ac_ct_AR=$AR
4327   for ac_prog in ar lib "link -lib"
4328 do
4329   # Extract the first word of "$ac_prog", so it can be a program name with args.
4330 set dummy $ac_prog; ac_word=$2
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4332 $as_echo_n "checking for $ac_word... " >&6; }
4333 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4334   $as_echo_n "(cached) " >&6
4335 else
4336   if test -n "$ac_ct_AR"; then
4337   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4338 else
4339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4340 for as_dir in $PATH
4341 do
4342   IFS=$as_save_IFS
4343   test -z "$as_dir" && as_dir=.
4344     for ac_exec_ext in '' $ac_executable_extensions; do
4345   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4346     ac_cv_prog_ac_ct_AR="$ac_prog"
4347     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4348     break 2
4349   fi
4350 done
4351   done
4352 IFS=$as_save_IFS
4353
4354 fi
4355 fi
4356 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4357 if test -n "$ac_ct_AR"; then
4358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4359 $as_echo "$ac_ct_AR" >&6; }
4360 else
4361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4362 $as_echo "no" >&6; }
4363 fi
4364
4365
4366   test -n "$ac_ct_AR" && break
4367 done
4368
4369   if test "x$ac_ct_AR" = x; then
4370     AR="false"
4371   else
4372     case $cross_compiling:$ac_tool_warned in
4373 yes:)
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4375 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4376 ac_tool_warned=yes ;;
4377 esac
4378     AR=$ac_ct_AR
4379   fi
4380 fi
4381
4382 : ${AR=ar}
4383
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4385 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4386 if ${am_cv_ar_interface+:} false; then :
4387   $as_echo_n "(cached) " >&6
4388 else
4389   am_cv_ar_interface=ar
4390    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4391 /* end confdefs.h.  */
4392 int some_variable = 0;
4393 _ACEOF
4394 if ac_fn_c_try_compile "$LINENO"; then :
4395   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4396       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4397   (eval $am_ar_try) 2>&5
4398   ac_status=$?
4399   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4400   test $ac_status = 0; }
4401       if test "$ac_status" -eq 0; then
4402         am_cv_ar_interface=ar
4403       else
4404         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4405         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4406   (eval $am_ar_try) 2>&5
4407   ac_status=$?
4408   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4409   test $ac_status = 0; }
4410         if test "$ac_status" -eq 0; then
4411           am_cv_ar_interface=lib
4412         else
4413           am_cv_ar_interface=unknown
4414         fi
4415       fi
4416       rm -f conftest.lib libconftest.a
4417
4418 fi
4419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4420
4421 fi
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4423 $as_echo "$am_cv_ar_interface" >&6; }
4424
4425 case $am_cv_ar_interface in
4426 ar)
4427   ;;
4428 lib)
4429   # Microsoft lib, so override with the ar-lib wrapper script.
4430   # FIXME: It is wrong to rewrite AR.
4431   # But if we don't then we get into trouble of one sort or another.
4432   # A longer-term fix would be to have automake use am__AR in this case,
4433   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4434   # similar.
4435   AR="$am_aux_dir/ar-lib $AR"
4436   ;;
4437 unknown)
4438   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4439   ;;
4440 esac
4441
4442 case `pwd` in
4443   *\ * | *\     *)
4444     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4445 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4446 esac
4447
4448
4449
4450 macro_version='2.4.2'
4451 macro_revision='1.3337'
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465 ltmain="$ac_aux_dir/ltmain.sh"
4466
4467 # Make sure we can run config.sub.
4468 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4469   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4470
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4472 $as_echo_n "checking build system type... " >&6; }
4473 if ${ac_cv_build+:} false; then :
4474   $as_echo_n "(cached) " >&6
4475 else
4476   ac_build_alias=$build_alias
4477 test "x$ac_build_alias" = x &&
4478   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4479 test "x$ac_build_alias" = x &&
4480   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4481 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4482   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4483
4484 fi
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4486 $as_echo "$ac_cv_build" >&6; }
4487 case $ac_cv_build in
4488 *-*-*) ;;
4489 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4490 esac
4491 build=$ac_cv_build
4492 ac_save_IFS=$IFS; IFS='-'
4493 set x $ac_cv_build
4494 shift
4495 build_cpu=$1
4496 build_vendor=$2
4497 shift; shift
4498 # Remember, the first character of IFS is used to create $*,
4499 # except with old shells:
4500 build_os=$*
4501 IFS=$ac_save_IFS
4502 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4503
4504
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4506 $as_echo_n "checking host system type... " >&6; }
4507 if ${ac_cv_host+:} false; then :
4508   $as_echo_n "(cached) " >&6
4509 else
4510   if test "x$host_alias" = x; then
4511   ac_cv_host=$ac_cv_build
4512 else
4513   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4514     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4515 fi
4516
4517 fi
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4519 $as_echo "$ac_cv_host" >&6; }
4520 case $ac_cv_host in
4521 *-*-*) ;;
4522 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4523 esac
4524 host=$ac_cv_host
4525 ac_save_IFS=$IFS; IFS='-'
4526 set x $ac_cv_host
4527 shift
4528 host_cpu=$1
4529 host_vendor=$2
4530 shift; shift
4531 # Remember, the first character of IFS is used to create $*,
4532 # except with old shells:
4533 host_os=$*
4534 IFS=$ac_save_IFS
4535 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4536
4537
4538 # Backslashify metacharacters that are still active within
4539 # double-quoted strings.
4540 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4541
4542 # Same as above, but do not quote variable references.
4543 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4544
4545 # Sed substitution to delay expansion of an escaped shell variable in a
4546 # double_quote_subst'ed string.
4547 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4548
4549 # Sed substitution to delay expansion of an escaped single quote.
4550 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4551
4552 # Sed substitution to avoid accidental globbing in evaled expressions
4553 no_glob_subst='s/\*/\\\*/g'
4554
4555 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4556 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4557 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4558
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4560 $as_echo_n "checking how to print strings... " >&6; }
4561 # Test print first, because it will be a builtin if present.
4562 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4563    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4564   ECHO='print -r --'
4565 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4566   ECHO='printf %s\n'
4567 else
4568   # Use this function as a fallback that always works.
4569   func_fallback_echo ()
4570   {
4571     eval 'cat <<_LTECHO_EOF
4572 $1
4573 _LTECHO_EOF'
4574   }
4575   ECHO='func_fallback_echo'
4576 fi
4577
4578 # func_echo_all arg...
4579 # Invoke $ECHO with all args, space-separated.
4580 func_echo_all ()
4581 {
4582     $ECHO ""
4583 }
4584
4585 case "$ECHO" in
4586   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4587 $as_echo "printf" >&6; } ;;
4588   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4589 $as_echo "print -r" >&6; } ;;
4590   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4591 $as_echo "cat" >&6; } ;;
4592 esac
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4608 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4609 if ${ac_cv_path_SED+:} false; then :
4610   $as_echo_n "(cached) " >&6
4611 else
4612             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4613      for ac_i in 1 2 3 4 5 6 7; do
4614        ac_script="$ac_script$as_nl$ac_script"
4615      done
4616      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4617      { ac_script=; unset ac_script;}
4618      if test -z "$SED"; then
4619   ac_path_SED_found=false
4620   # Loop through the user's path and test for each of PROGNAME-LIST
4621   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4622 for as_dir in $PATH
4623 do
4624   IFS=$as_save_IFS
4625   test -z "$as_dir" && as_dir=.
4626     for ac_prog in sed gsed; do
4627     for ac_exec_ext in '' $ac_executable_extensions; do
4628       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4629       as_fn_executable_p "$ac_path_SED" || continue
4630 # Check for GNU ac_path_SED and select it if it is found.
4631   # Check for GNU $ac_path_SED
4632 case `"$ac_path_SED" --version 2>&1` in
4633 *GNU*)
4634   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4635 *)
4636   ac_count=0
4637   $as_echo_n 0123456789 >"conftest.in"
4638   while :
4639   do
4640     cat "conftest.in" "conftest.in" >"conftest.tmp"
4641     mv "conftest.tmp" "conftest.in"
4642     cp "conftest.in" "conftest.nl"
4643     $as_echo '' >> "conftest.nl"
4644     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4645     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4646     as_fn_arith $ac_count + 1 && ac_count=$as_val
4647     if test $ac_count -gt ${ac_path_SED_max-0}; then
4648       # Best one so far, save it but keep looking for a better one
4649       ac_cv_path_SED="$ac_path_SED"
4650       ac_path_SED_max=$ac_count
4651     fi
4652     # 10*(2^10) chars as input seems more than enough
4653     test $ac_count -gt 10 && break
4654   done
4655   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4656 esac
4657
4658       $ac_path_SED_found && break 3
4659     done
4660   done
4661   done
4662 IFS=$as_save_IFS
4663   if test -z "$ac_cv_path_SED"; then
4664     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4665   fi
4666 else
4667   ac_cv_path_SED=$SED
4668 fi
4669
4670 fi
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4672 $as_echo "$ac_cv_path_SED" >&6; }
4673  SED="$ac_cv_path_SED"
4674   rm -f conftest.sed
4675
4676 test -z "$SED" && SED=sed
4677 Xsed="$SED -e 1s/^X//"
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4690 $as_echo_n "checking for fgrep... " >&6; }
4691 if ${ac_cv_path_FGREP+:} false; then :
4692   $as_echo_n "(cached) " >&6
4693 else
4694   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4695    then ac_cv_path_FGREP="$GREP -F"
4696    else
4697      if test -z "$FGREP"; then
4698   ac_path_FGREP_found=false
4699   # Loop through the user's path and test for each of PROGNAME-LIST
4700   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4702 do
4703   IFS=$as_save_IFS
4704   test -z "$as_dir" && as_dir=.
4705     for ac_prog in fgrep; do
4706     for ac_exec_ext in '' $ac_executable_extensions; do
4707       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4708       as_fn_executable_p "$ac_path_FGREP" || continue
4709 # Check for GNU ac_path_FGREP and select it if it is found.
4710   # Check for GNU $ac_path_FGREP
4711 case `"$ac_path_FGREP" --version 2>&1` in
4712 *GNU*)
4713   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4714 *)
4715   ac_count=0
4716   $as_echo_n 0123456789 >"conftest.in"
4717   while :
4718   do
4719     cat "conftest.in" "conftest.in" >"conftest.tmp"
4720     mv "conftest.tmp" "conftest.in"
4721     cp "conftest.in" "conftest.nl"
4722     $as_echo 'FGREP' >> "conftest.nl"
4723     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4724     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4725     as_fn_arith $ac_count + 1 && ac_count=$as_val
4726     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4727       # Best one so far, save it but keep looking for a better one
4728       ac_cv_path_FGREP="$ac_path_FGREP"
4729       ac_path_FGREP_max=$ac_count
4730     fi
4731     # 10*(2^10) chars as input seems more than enough
4732     test $ac_count -gt 10 && break
4733   done
4734   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4735 esac
4736
4737       $ac_path_FGREP_found && break 3
4738     done
4739   done
4740   done
4741 IFS=$as_save_IFS
4742   if test -z "$ac_cv_path_FGREP"; then
4743     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4744   fi
4745 else
4746   ac_cv_path_FGREP=$FGREP
4747 fi
4748
4749    fi
4750 fi
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4752 $as_echo "$ac_cv_path_FGREP" >&6; }
4753  FGREP="$ac_cv_path_FGREP"
4754
4755
4756 test -z "$GREP" && GREP=grep
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776 # Check whether --with-gnu-ld was given.
4777 if test "${with_gnu_ld+set}" = set; then :
4778   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4779 else
4780   with_gnu_ld=no
4781 fi
4782
4783 ac_prog=ld
4784 if test "$GCC" = yes; then
4785   # Check if gcc -print-prog-name=ld gives a path.
4786   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4787 $as_echo_n "checking for ld used by $CC... " >&6; }
4788   case $host in
4789   *-*-mingw*)
4790     # gcc leaves a trailing carriage return which upsets mingw
4791     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4792   *)
4793     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4794   esac
4795   case $ac_prog in
4796     # Accept absolute paths.
4797     [\\/]* | ?:[\\/]*)
4798       re_direlt='/[^/][^/]*/\.\./'
4799       # Canonicalize the pathname of ld
4800       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4801       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4802         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4803       done
4804       test -z "$LD" && LD="$ac_prog"
4805       ;;
4806   "")
4807     # If it fails, then pretend we aren't using GCC.
4808     ac_prog=ld
4809     ;;
4810   *)
4811     # If it is relative, then search for the first ld in PATH.
4812     with_gnu_ld=unknown
4813     ;;
4814   esac
4815 elif test "$with_gnu_ld" = yes; then
4816   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4817 $as_echo_n "checking for GNU ld... " >&6; }
4818 else
4819   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4820 $as_echo_n "checking for non-GNU ld... " >&6; }
4821 fi
4822 if ${lt_cv_path_LD+:} false; then :
4823   $as_echo_n "(cached) " >&6
4824 else
4825   if test -z "$LD"; then
4826   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4827   for ac_dir in $PATH; do
4828     IFS="$lt_save_ifs"
4829     test -z "$ac_dir" && ac_dir=.
4830     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4831       lt_cv_path_LD="$ac_dir/$ac_prog"
4832       # Check to see if the program is GNU ld.  I'd rather use --version,
4833       # but apparently some variants of GNU ld only accept -v.
4834       # Break only if it was the GNU/non-GNU ld that we prefer.
4835       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4836       *GNU* | *'with BFD'*)
4837         test "$with_gnu_ld" != no && break
4838         ;;
4839       *)
4840         test "$with_gnu_ld" != yes && break
4841         ;;
4842       esac
4843     fi
4844   done
4845   IFS="$lt_save_ifs"
4846 else
4847   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4848 fi
4849 fi
4850
4851 LD="$lt_cv_path_LD"
4852 if test -n "$LD"; then
4853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4854 $as_echo "$LD" >&6; }
4855 else
4856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4857 $as_echo "no" >&6; }
4858 fi
4859 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4861 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4862 if ${lt_cv_prog_gnu_ld+:} false; then :
4863   $as_echo_n "(cached) " >&6
4864 else
4865   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4866 case `$LD -v 2>&1 </dev/null` in
4867 *GNU* | *'with BFD'*)
4868   lt_cv_prog_gnu_ld=yes
4869   ;;
4870 *)
4871   lt_cv_prog_gnu_ld=no
4872   ;;
4873 esac
4874 fi
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4876 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4877 with_gnu_ld=$lt_cv_prog_gnu_ld
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4888 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4889 if ${lt_cv_path_NM+:} false; then :
4890   $as_echo_n "(cached) " >&6
4891 else
4892   if test -n "$NM"; then
4893   # Let the user override the test.
4894   lt_cv_path_NM="$NM"
4895 else
4896   lt_nm_to_check="${ac_tool_prefix}nm"
4897   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4898     lt_nm_to_check="$lt_nm_to_check nm"
4899   fi
4900   for lt_tmp_nm in $lt_nm_to_check; do
4901     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4902     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4903       IFS="$lt_save_ifs"
4904       test -z "$ac_dir" && ac_dir=.
4905       tmp_nm="$ac_dir/$lt_tmp_nm"
4906       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4907         # Check to see if the nm accepts a BSD-compat flag.
4908         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4909         #   nm: unknown option "B" ignored
4910         # Tru64's nm complains that /dev/null is an invalid object file
4911         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4912         */dev/null* | *'Invalid file or object type'*)
4913           lt_cv_path_NM="$tmp_nm -B"
4914           break
4915           ;;
4916         *)
4917           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4918           */dev/null*)
4919             lt_cv_path_NM="$tmp_nm -p"
4920             break
4921             ;;
4922           *)
4923             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4924             continue # so that we can try to find one that supports BSD flags
4925             ;;
4926           esac
4927           ;;
4928         esac
4929       fi
4930     done
4931     IFS="$lt_save_ifs"
4932   done
4933   : ${lt_cv_path_NM=no}
4934 fi
4935 fi
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4937 $as_echo "$lt_cv_path_NM" >&6; }
4938 if test "$lt_cv_path_NM" != "no"; then
4939   NM="$lt_cv_path_NM"
4940 else
4941   # Didn't find any BSD compatible name lister, look for dumpbin.
4942   if test -n "$DUMPBIN"; then :
4943     # Let the user override the test.
4944   else
4945     if test -n "$ac_tool_prefix"; then
4946   for ac_prog in dumpbin "link -dump"
4947   do
4948     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4949 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4951 $as_echo_n "checking for $ac_word... " >&6; }
4952 if ${ac_cv_prog_DUMPBIN+:} false; then :
4953   $as_echo_n "(cached) " >&6
4954 else
4955   if test -n "$DUMPBIN"; then
4956   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4957 else
4958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4959 for as_dir in $PATH
4960 do
4961   IFS=$as_save_IFS
4962   test -z "$as_dir" && as_dir=.
4963     for ac_exec_ext in '' $ac_executable_extensions; do
4964   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4965     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4966     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4967     break 2
4968   fi
4969 done
4970   done
4971 IFS=$as_save_IFS
4972
4973 fi
4974 fi
4975 DUMPBIN=$ac_cv_prog_DUMPBIN
4976 if test -n "$DUMPBIN"; then
4977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4978 $as_echo "$DUMPBIN" >&6; }
4979 else
4980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4981 $as_echo "no" >&6; }
4982 fi
4983
4984
4985     test -n "$DUMPBIN" && break
4986   done
4987 fi
4988 if test -z "$DUMPBIN"; then
4989   ac_ct_DUMPBIN=$DUMPBIN
4990   for ac_prog in dumpbin "link -dump"
4991 do
4992   # Extract the first word of "$ac_prog", so it can be a program name with args.
4993 set dummy $ac_prog; ac_word=$2
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4995 $as_echo_n "checking for $ac_word... " >&6; }
4996 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4997   $as_echo_n "(cached) " >&6
4998 else
4999   if test -n "$ac_ct_DUMPBIN"; then
5000   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5001 else
5002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5003 for as_dir in $PATH
5004 do
5005   IFS=$as_save_IFS
5006   test -z "$as_dir" && as_dir=.
5007     for ac_exec_ext in '' $ac_executable_extensions; do
5008   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5009     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5010     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5011     break 2
5012   fi
5013 done
5014   done
5015 IFS=$as_save_IFS
5016
5017 fi
5018 fi
5019 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5020 if test -n "$ac_ct_DUMPBIN"; then
5021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5022 $as_echo "$ac_ct_DUMPBIN" >&6; }
5023 else
5024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5025 $as_echo "no" >&6; }
5026 fi
5027
5028
5029   test -n "$ac_ct_DUMPBIN" && break
5030 done
5031
5032   if test "x$ac_ct_DUMPBIN" = x; then
5033     DUMPBIN=":"
5034   else
5035     case $cross_compiling:$ac_tool_warned in
5036 yes:)
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5038 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5039 ac_tool_warned=yes ;;
5040 esac
5041     DUMPBIN=$ac_ct_DUMPBIN
5042   fi
5043 fi
5044
5045     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5046     *COFF*)
5047       DUMPBIN="$DUMPBIN -symbols"
5048       ;;
5049     *)
5050       DUMPBIN=:
5051       ;;
5052     esac
5053   fi
5054
5055   if test "$DUMPBIN" != ":"; then
5056     NM="$DUMPBIN"
5057   fi
5058 fi
5059 test -z "$NM" && NM=nm
5060
5061
5062
5063
5064
5065
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5067 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5068 if ${lt_cv_nm_interface+:} false; then :
5069   $as_echo_n "(cached) " >&6
5070 else
5071   lt_cv_nm_interface="BSD nm"
5072   echo "int some_variable = 0;" > conftest.$ac_ext
5073   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5074   (eval "$ac_compile" 2>conftest.err)
5075   cat conftest.err >&5
5076   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5077   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5078   cat conftest.err >&5
5079   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5080   cat conftest.out >&5
5081   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5082     lt_cv_nm_interface="MS dumpbin"
5083   fi
5084   rm -f conftest*
5085 fi
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5087 $as_echo "$lt_cv_nm_interface" >&6; }
5088
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5090 $as_echo_n "checking whether ln -s works... " >&6; }
5091 LN_S=$as_ln_s
5092 if test "$LN_S" = "ln -s"; then
5093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5094 $as_echo "yes" >&6; }
5095 else
5096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5097 $as_echo "no, using $LN_S" >&6; }
5098 fi
5099
5100 # find the maximum length of command line arguments
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5102 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5103 if ${lt_cv_sys_max_cmd_len+:} false; then :
5104   $as_echo_n "(cached) " >&6
5105 else
5106     i=0
5107   teststring="ABCD"
5108
5109   case $build_os in
5110   msdosdjgpp*)
5111     # On DJGPP, this test can blow up pretty badly due to problems in libc
5112     # (any single argument exceeding 2000 bytes causes a buffer overrun
5113     # during glob expansion).  Even if it were fixed, the result of this
5114     # check would be larger than it should be.
5115     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5116     ;;
5117
5118   gnu*)
5119     # Under GNU Hurd, this test is not required because there is
5120     # no limit to the length of command line arguments.
5121     # Libtool will interpret -1 as no limit whatsoever
5122     lt_cv_sys_max_cmd_len=-1;
5123     ;;
5124
5125   cygwin* | mingw* | cegcc*)
5126     # On Win9x/ME, this test blows up -- it succeeds, but takes
5127     # about 5 minutes as the teststring grows exponentially.
5128     # Worse, since 9x/ME are not pre-emptively multitasking,
5129     # you end up with a "frozen" computer, even though with patience
5130     # the test eventually succeeds (with a max line length of 256k).
5131     # Instead, let's just punt: use the minimum linelength reported by
5132     # all of the supported platforms: 8192 (on NT/2K/XP).
5133     lt_cv_sys_max_cmd_len=8192;
5134     ;;
5135
5136   mint*)
5137     # On MiNT this can take a long time and run out of memory.
5138     lt_cv_sys_max_cmd_len=8192;
5139     ;;
5140
5141   amigaos*)
5142     # On AmigaOS with pdksh, this test takes hours, literally.
5143     # So we just punt and use a minimum line length of 8192.
5144     lt_cv_sys_max_cmd_len=8192;
5145     ;;
5146
5147   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5148     # This has been around since 386BSD, at least.  Likely further.
5149     if test -x /sbin/sysctl; then
5150       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5151     elif test -x /usr/sbin/sysctl; then
5152       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5153     else
5154       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5155     fi
5156     # And add a safety zone
5157     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5158     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5159     ;;
5160
5161   interix*)
5162     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5163     lt_cv_sys_max_cmd_len=196608
5164     ;;
5165
5166   os2*)
5167     # The test takes a long time on OS/2.
5168     lt_cv_sys_max_cmd_len=8192
5169     ;;
5170
5171   osf*)
5172     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5173     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5174     # nice to cause kernel panics so lets avoid the loop below.
5175     # First set a reasonable default.
5176     lt_cv_sys_max_cmd_len=16384
5177     #
5178     if test -x /sbin/sysconfig; then
5179       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5180         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5181       esac
5182     fi
5183     ;;
5184   sco3.2v5*)
5185     lt_cv_sys_max_cmd_len=102400
5186     ;;
5187   sysv5* | sco5v6* | sysv4.2uw2*)
5188     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5189     if test -n "$kargmax"; then
5190       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5191     else
5192       lt_cv_sys_max_cmd_len=32768
5193     fi
5194     ;;
5195   *)
5196     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5197     if test -n "$lt_cv_sys_max_cmd_len"; then
5198       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5199       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5200     else
5201       # Make teststring a little bigger before we do anything with it.
5202       # a 1K string should be a reasonable start.
5203       for i in 1 2 3 4 5 6 7 8 ; do
5204         teststring=$teststring$teststring
5205       done
5206       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5207       # If test is not a shell built-in, we'll probably end up computing a
5208       # maximum length that is only half of the actual maximum length, but
5209       # we can't tell.
5210       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5211                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5212               test $i != 17 # 1/2 MB should be enough
5213       do
5214         i=`expr $i + 1`
5215         teststring=$teststring$teststring
5216       done
5217       # Only check the string length outside the loop.
5218       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5219       teststring=
5220       # Add a significant safety factor because C++ compilers can tack on
5221       # massive amounts of additional arguments before passing them to the
5222       # linker.  It appears as though 1/2 is a usable value.
5223       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5224     fi
5225     ;;
5226   esac
5227
5228 fi
5229
5230 if test -n $lt_cv_sys_max_cmd_len ; then
5231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5232 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5233 else
5234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5235 $as_echo "none" >&6; }
5236 fi
5237 max_cmd_len=$lt_cv_sys_max_cmd_len
5238
5239
5240
5241
5242
5243
5244 : ${CP="cp -f"}
5245 : ${MV="mv -f"}
5246 : ${RM="rm -f"}
5247
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5249 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5250 # Try some XSI features
5251 xsi_shell=no
5252 ( _lt_dummy="a/b/c"
5253   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5254       = c,a/b,b/c, \
5255     && eval 'test $(( 1 + 1 )) -eq 2 \
5256     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5257   && xsi_shell=yes
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5259 $as_echo "$xsi_shell" >&6; }
5260
5261
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5263 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5264 lt_shell_append=no
5265 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5266     >/dev/null 2>&1 \
5267   && lt_shell_append=yes
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5269 $as_echo "$lt_shell_append" >&6; }
5270
5271
5272 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5273   lt_unset=unset
5274 else
5275   lt_unset=false
5276 fi
5277
5278
5279
5280
5281
5282 # test EBCDIC or ASCII
5283 case `echo X|tr X '\101'` in
5284  A) # ASCII based system
5285     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5286   lt_SP2NL='tr \040 \012'
5287   lt_NL2SP='tr \015\012 \040\040'
5288   ;;
5289  *) # EBCDIC based system
5290   lt_SP2NL='tr \100 \n'
5291   lt_NL2SP='tr \r\n \100\100'
5292   ;;
5293 esac
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5304 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5305 if ${lt_cv_to_host_file_cmd+:} false; then :
5306   $as_echo_n "(cached) " >&6
5307 else
5308   case $host in
5309   *-*-mingw* )
5310     case $build in
5311       *-*-mingw* ) # actually msys
5312         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5313         ;;
5314       *-*-cygwin* )
5315         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5316         ;;
5317       * ) # otherwise, assume *nix
5318         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5319         ;;
5320     esac
5321     ;;
5322   *-*-cygwin* )
5323     case $build in
5324       *-*-mingw* ) # actually msys
5325         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5326         ;;
5327       *-*-cygwin* )
5328         lt_cv_to_host_file_cmd=func_convert_file_noop
5329         ;;
5330       * ) # otherwise, assume *nix
5331         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5332         ;;
5333     esac
5334     ;;
5335   * ) # unhandled hosts (and "normal" native builds)
5336     lt_cv_to_host_file_cmd=func_convert_file_noop
5337     ;;
5338 esac
5339
5340 fi
5341
5342 to_host_file_cmd=$lt_cv_to_host_file_cmd
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5344 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5345
5346
5347
5348
5349
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5351 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5352 if ${lt_cv_to_tool_file_cmd+:} false; then :
5353   $as_echo_n "(cached) " >&6
5354 else
5355   #assume ordinary cross tools, or native build.
5356 lt_cv_to_tool_file_cmd=func_convert_file_noop
5357 case $host in
5358   *-*-mingw* )
5359     case $build in
5360       *-*-mingw* ) # actually msys
5361         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5362         ;;
5363     esac
5364     ;;
5365 esac
5366
5367 fi
5368
5369 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5371 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5372
5373
5374
5375
5376
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5378 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5379 if ${lt_cv_ld_reload_flag+:} false; then :
5380   $as_echo_n "(cached) " >&6
5381 else
5382   lt_cv_ld_reload_flag='-r'
5383 fi
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5385 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5386 reload_flag=$lt_cv_ld_reload_flag
5387 case $reload_flag in
5388 "" | " "*) ;;
5389 *) reload_flag=" $reload_flag" ;;
5390 esac
5391 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5392 case $host_os in
5393   cygwin* | mingw* | pw32* | cegcc*)
5394     if test "$GCC" != yes; then
5395       reload_cmds=false
5396     fi
5397     ;;
5398   darwin*)
5399     if test "$GCC" = yes; then
5400       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5401     else
5402       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5403     fi
5404     ;;
5405 esac
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415 if test -n "$ac_tool_prefix"; then
5416   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5417 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5419 $as_echo_n "checking for $ac_word... " >&6; }
5420 if ${ac_cv_prog_OBJDUMP+:} false; then :
5421   $as_echo_n "(cached) " >&6
5422 else
5423   if test -n "$OBJDUMP"; then
5424   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5425 else
5426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5427 for as_dir in $PATH
5428 do
5429   IFS=$as_save_IFS
5430   test -z "$as_dir" && as_dir=.
5431     for ac_exec_ext in '' $ac_executable_extensions; do
5432   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5433     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5434     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5435     break 2
5436   fi
5437 done
5438   done
5439 IFS=$as_save_IFS
5440
5441 fi
5442 fi
5443 OBJDUMP=$ac_cv_prog_OBJDUMP
5444 if test -n "$OBJDUMP"; then
5445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5446 $as_echo "$OBJDUMP" >&6; }
5447 else
5448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5449 $as_echo "no" >&6; }
5450 fi
5451
5452
5453 fi
5454 if test -z "$ac_cv_prog_OBJDUMP"; then
5455   ac_ct_OBJDUMP=$OBJDUMP
5456   # Extract the first word of "objdump", so it can be a program name with args.
5457 set dummy objdump; ac_word=$2
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5459 $as_echo_n "checking for $ac_word... " >&6; }
5460 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5461   $as_echo_n "(cached) " >&6
5462 else
5463   if test -n "$ac_ct_OBJDUMP"; then
5464   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5465 else
5466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5467 for as_dir in $PATH
5468 do
5469   IFS=$as_save_IFS
5470   test -z "$as_dir" && as_dir=.
5471     for ac_exec_ext in '' $ac_executable_extensions; do
5472   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5473     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5474     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5475     break 2
5476   fi
5477 done
5478   done
5479 IFS=$as_save_IFS
5480
5481 fi
5482 fi
5483 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5484 if test -n "$ac_ct_OBJDUMP"; then
5485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5486 $as_echo "$ac_ct_OBJDUMP" >&6; }
5487 else
5488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5489 $as_echo "no" >&6; }
5490 fi
5491
5492   if test "x$ac_ct_OBJDUMP" = x; then
5493     OBJDUMP="false"
5494   else
5495     case $cross_compiling:$ac_tool_warned in
5496 yes:)
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5498 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5499 ac_tool_warned=yes ;;
5500 esac
5501     OBJDUMP=$ac_ct_OBJDUMP
5502   fi
5503 else
5504   OBJDUMP="$ac_cv_prog_OBJDUMP"
5505 fi
5506
5507 test -z "$OBJDUMP" && OBJDUMP=objdump
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5518 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5519 if ${lt_cv_deplibs_check_method+:} false; then :
5520   $as_echo_n "(cached) " >&6
5521 else
5522   lt_cv_file_magic_cmd='$MAGIC_CMD'
5523 lt_cv_file_magic_test_file=
5524 lt_cv_deplibs_check_method='unknown'
5525 # Need to set the preceding variable on all platforms that support
5526 # interlibrary dependencies.
5527 # 'none' -- dependencies not supported.
5528 # `unknown' -- same as none, but documents that we really don't know.
5529 # 'pass_all' -- all dependencies passed with no checks.
5530 # 'test_compile' -- check by making test program.
5531 # 'file_magic [[regex]]' -- check by looking for files in library path
5532 # which responds to the $file_magic_cmd with a given extended regex.
5533 # If you have `file' or equivalent on your system and you're not sure
5534 # whether `pass_all' will *always* work, you probably want this one.
5535
5536 case $host_os in
5537 aix[4-9]*)
5538   lt_cv_deplibs_check_method=pass_all
5539   ;;
5540
5541 beos*)
5542   lt_cv_deplibs_check_method=pass_all
5543   ;;
5544
5545 bsdi[45]*)
5546   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5547   lt_cv_file_magic_cmd='/usr/bin/file -L'
5548   lt_cv_file_magic_test_file=/shlib/libc.so
5549   ;;
5550
5551 cygwin*)
5552   # func_win32_libid is a shell function defined in ltmain.sh
5553   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5554   lt_cv_file_magic_cmd='func_win32_libid'
5555   ;;
5556
5557 mingw* | pw32*)
5558   # Base MSYS/MinGW do not provide the 'file' command needed by
5559   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5560   # unless we find 'file', for example because we are cross-compiling.
5561   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5562   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5563     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5564     lt_cv_file_magic_cmd='func_win32_libid'
5565   else
5566     # Keep this pattern in sync with the one in func_win32_libid.
5567     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5568     lt_cv_file_magic_cmd='$OBJDUMP -f'
5569   fi
5570   ;;
5571
5572 cegcc*)
5573   # use the weaker test based on 'objdump'. See mingw*.
5574   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5575   lt_cv_file_magic_cmd='$OBJDUMP -f'
5576   ;;
5577
5578 darwin* | rhapsody*)
5579   lt_cv_deplibs_check_method=pass_all
5580   ;;
5581
5582 freebsd* | dragonfly*)
5583   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5584     case $host_cpu in
5585     i*86 )
5586       # Not sure whether the presence of OpenBSD here was a mistake.
5587       # Let's accept both of them until this is cleared up.
5588       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5589       lt_cv_file_magic_cmd=/usr/bin/file
5590       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5591       ;;
5592     esac
5593   else
5594     lt_cv_deplibs_check_method=pass_all
5595   fi
5596   ;;
5597
5598 gnu*)
5599   lt_cv_deplibs_check_method=pass_all
5600   ;;
5601
5602 haiku*)
5603   lt_cv_deplibs_check_method=pass_all
5604   ;;
5605
5606 hpux10.20* | hpux11*)
5607   lt_cv_file_magic_cmd=/usr/bin/file
5608   case $host_cpu in
5609   ia64*)
5610     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5611     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5612     ;;
5613   hppa*64*)
5614     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]'
5615     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5616     ;;
5617   *)
5618     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5619     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5620     ;;
5621   esac
5622   ;;
5623
5624 interix[3-9]*)
5625   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5626   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5627   ;;
5628
5629 irix5* | irix6* | nonstopux*)
5630   case $LD in
5631   *-32|*"-32 ") libmagic=32-bit;;
5632   *-n32|*"-n32 ") libmagic=N32;;
5633   *-64|*"-64 ") libmagic=64-bit;;
5634   *) libmagic=never-match;;
5635   esac
5636   lt_cv_deplibs_check_method=pass_all
5637   ;;
5638
5639 # This must be glibc/ELF.
5640 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5641   lt_cv_deplibs_check_method=pass_all
5642   ;;
5643
5644 netbsd*)
5645   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5646     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5647   else
5648     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5649   fi
5650   ;;
5651
5652 newos6*)
5653   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5654   lt_cv_file_magic_cmd=/usr/bin/file
5655   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5656   ;;
5657
5658 *nto* | *qnx*)
5659   lt_cv_deplibs_check_method=pass_all
5660   ;;
5661
5662 openbsd*)
5663   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5664     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5665   else
5666     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5667   fi
5668   ;;
5669
5670 osf3* | osf4* | osf5*)
5671   lt_cv_deplibs_check_method=pass_all
5672   ;;
5673
5674 rdos*)
5675   lt_cv_deplibs_check_method=pass_all
5676   ;;
5677
5678 solaris*)
5679   lt_cv_deplibs_check_method=pass_all
5680   ;;
5681
5682 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5683   lt_cv_deplibs_check_method=pass_all
5684   ;;
5685
5686 sysv4 | sysv4.3*)
5687   case $host_vendor in
5688   motorola)
5689     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]'
5690     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5691     ;;
5692   ncr)
5693     lt_cv_deplibs_check_method=pass_all
5694     ;;
5695   sequent)
5696     lt_cv_file_magic_cmd='/bin/file'
5697     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5698     ;;
5699   sni)
5700     lt_cv_file_magic_cmd='/bin/file'
5701     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5702     lt_cv_file_magic_test_file=/lib/libc.so
5703     ;;
5704   siemens)
5705     lt_cv_deplibs_check_method=pass_all
5706     ;;
5707   pc)
5708     lt_cv_deplibs_check_method=pass_all
5709     ;;
5710   esac
5711   ;;
5712
5713 tpf*)
5714   lt_cv_deplibs_check_method=pass_all
5715   ;;
5716 esac
5717
5718 fi
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5720 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5721
5722 file_magic_glob=
5723 want_nocaseglob=no
5724 if test "$build" = "$host"; then
5725   case $host_os in
5726   mingw* | pw32*)
5727     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5728       want_nocaseglob=yes
5729     else
5730       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5731     fi
5732     ;;
5733   esac
5734 fi
5735
5736 file_magic_cmd=$lt_cv_file_magic_cmd
5737 deplibs_check_method=$lt_cv_deplibs_check_method
5738 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761 if test -n "$ac_tool_prefix"; then
5762   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5763 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5765 $as_echo_n "checking for $ac_word... " >&6; }
5766 if ${ac_cv_prog_DLLTOOL+:} false; then :
5767   $as_echo_n "(cached) " >&6
5768 else
5769   if test -n "$DLLTOOL"; then
5770   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5771 else
5772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5773 for as_dir in $PATH
5774 do
5775   IFS=$as_save_IFS
5776   test -z "$as_dir" && as_dir=.
5777     for ac_exec_ext in '' $ac_executable_extensions; do
5778   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5779     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5780     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5781     break 2
5782   fi
5783 done
5784   done
5785 IFS=$as_save_IFS
5786
5787 fi
5788 fi
5789 DLLTOOL=$ac_cv_prog_DLLTOOL
5790 if test -n "$DLLTOOL"; then
5791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5792 $as_echo "$DLLTOOL" >&6; }
5793 else
5794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5795 $as_echo "no" >&6; }
5796 fi
5797
5798
5799 fi
5800 if test -z "$ac_cv_prog_DLLTOOL"; then
5801   ac_ct_DLLTOOL=$DLLTOOL
5802   # Extract the first word of "dlltool", so it can be a program name with args.
5803 set dummy dlltool; ac_word=$2
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5805 $as_echo_n "checking for $ac_word... " >&6; }
5806 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5807   $as_echo_n "(cached) " >&6
5808 else
5809   if test -n "$ac_ct_DLLTOOL"; then
5810   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5811 else
5812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5813 for as_dir in $PATH
5814 do
5815   IFS=$as_save_IFS
5816   test -z "$as_dir" && as_dir=.
5817     for ac_exec_ext in '' $ac_executable_extensions; do
5818   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5819     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5820     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5821     break 2
5822   fi
5823 done
5824   done
5825 IFS=$as_save_IFS
5826
5827 fi
5828 fi
5829 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5830 if test -n "$ac_ct_DLLTOOL"; then
5831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5832 $as_echo "$ac_ct_DLLTOOL" >&6; }
5833 else
5834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5835 $as_echo "no" >&6; }
5836 fi
5837
5838   if test "x$ac_ct_DLLTOOL" = x; then
5839     DLLTOOL="false"
5840   else
5841     case $cross_compiling:$ac_tool_warned in
5842 yes:)
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5845 ac_tool_warned=yes ;;
5846 esac
5847     DLLTOOL=$ac_ct_DLLTOOL
5848   fi
5849 else
5850   DLLTOOL="$ac_cv_prog_DLLTOOL"
5851 fi
5852
5853 test -z "$DLLTOOL" && DLLTOOL=dlltool
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5865 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5866 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5867   $as_echo_n "(cached) " >&6
5868 else
5869   lt_cv_sharedlib_from_linklib_cmd='unknown'
5870
5871 case $host_os in
5872 cygwin* | mingw* | pw32* | cegcc*)
5873   # two different shell functions defined in ltmain.sh
5874   # decide which to use based on capabilities of $DLLTOOL
5875   case `$DLLTOOL --help 2>&1` in
5876   *--identify-strict*)
5877     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5878     ;;
5879   *)
5880     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5881     ;;
5882   esac
5883   ;;
5884 *)
5885   # fallback: assume linklib IS sharedlib
5886   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5887   ;;
5888 esac
5889
5890 fi
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5892 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5893 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5894 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5895
5896
5897
5898
5899
5900
5901
5902 if test -n "$ac_tool_prefix"; then
5903   for ac_prog in ar
5904   do
5905     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5906 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5908 $as_echo_n "checking for $ac_word... " >&6; }
5909 if ${ac_cv_prog_AR+:} false; then :
5910   $as_echo_n "(cached) " >&6
5911 else
5912   if test -n "$AR"; then
5913   ac_cv_prog_AR="$AR" # Let the user override the test.
5914 else
5915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5916 for as_dir in $PATH
5917 do
5918   IFS=$as_save_IFS
5919   test -z "$as_dir" && as_dir=.
5920     for ac_exec_ext in '' $ac_executable_extensions; do
5921   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5922     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5923     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5924     break 2
5925   fi
5926 done
5927   done
5928 IFS=$as_save_IFS
5929
5930 fi
5931 fi
5932 AR=$ac_cv_prog_AR
5933 if test -n "$AR"; then
5934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5935 $as_echo "$AR" >&6; }
5936 else
5937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5938 $as_echo "no" >&6; }
5939 fi
5940
5941
5942     test -n "$AR" && break
5943   done
5944 fi
5945 if test -z "$AR"; then
5946   ac_ct_AR=$AR
5947   for ac_prog in ar
5948 do
5949   # Extract the first word of "$ac_prog", so it can be a program name with args.
5950 set dummy $ac_prog; ac_word=$2
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5952 $as_echo_n "checking for $ac_word... " >&6; }
5953 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5954   $as_echo_n "(cached) " >&6
5955 else
5956   if test -n "$ac_ct_AR"; then
5957   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5958 else
5959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5960 for as_dir in $PATH
5961 do
5962   IFS=$as_save_IFS
5963   test -z "$as_dir" && as_dir=.
5964     for ac_exec_ext in '' $ac_executable_extensions; do
5965   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5966     ac_cv_prog_ac_ct_AR="$ac_prog"
5967     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5968     break 2
5969   fi
5970 done
5971   done
5972 IFS=$as_save_IFS
5973
5974 fi
5975 fi
5976 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5977 if test -n "$ac_ct_AR"; then
5978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5979 $as_echo "$ac_ct_AR" >&6; }
5980 else
5981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5982 $as_echo "no" >&6; }
5983 fi
5984
5985
5986   test -n "$ac_ct_AR" && break
5987 done
5988
5989   if test "x$ac_ct_AR" = x; then
5990     AR="false"
5991   else
5992     case $cross_compiling:$ac_tool_warned in
5993 yes:)
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5995 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5996 ac_tool_warned=yes ;;
5997 esac
5998     AR=$ac_ct_AR
5999   fi
6000 fi
6001
6002 : ${AR=ar}
6003 : ${AR_FLAGS=cru}
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6016 $as_echo_n "checking for archiver @FILE support... " >&6; }
6017 if ${lt_cv_ar_at_file+:} false; then :
6018   $as_echo_n "(cached) " >&6
6019 else
6020   lt_cv_ar_at_file=no
6021    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6022 /* end confdefs.h.  */
6023
6024 int
6025 main ()
6026 {
6027
6028   ;
6029   return 0;
6030 }
6031 _ACEOF
6032 if ac_fn_c_try_compile "$LINENO"; then :
6033   echo conftest.$ac_objext > conftest.lst
6034       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6035       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6036   (eval $lt_ar_try) 2>&5
6037   ac_status=$?
6038   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6039   test $ac_status = 0; }
6040       if test "$ac_status" -eq 0; then
6041         # Ensure the archiver fails upon bogus file names.
6042         rm -f conftest.$ac_objext libconftest.a
6043         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6044   (eval $lt_ar_try) 2>&5
6045   ac_status=$?
6046   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6047   test $ac_status = 0; }
6048         if test "$ac_status" -ne 0; then
6049           lt_cv_ar_at_file=@
6050         fi
6051       fi
6052       rm -f conftest.* libconftest.a
6053
6054 fi
6055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6056
6057 fi
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6059 $as_echo "$lt_cv_ar_at_file" >&6; }
6060
6061 if test "x$lt_cv_ar_at_file" = xno; then
6062   archiver_list_spec=
6063 else
6064   archiver_list_spec=$lt_cv_ar_at_file
6065 fi
6066
6067
6068
6069
6070
6071
6072
6073 if test -n "$ac_tool_prefix"; then
6074   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6075 set dummy ${ac_tool_prefix}strip; ac_word=$2
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6077 $as_echo_n "checking for $ac_word... " >&6; }
6078 if ${ac_cv_prog_STRIP+:} false; then :
6079   $as_echo_n "(cached) " >&6
6080 else
6081   if test -n "$STRIP"; then
6082   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6083 else
6084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6085 for as_dir in $PATH
6086 do
6087   IFS=$as_save_IFS
6088   test -z "$as_dir" && as_dir=.
6089     for ac_exec_ext in '' $ac_executable_extensions; do
6090   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6091     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6092     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6093     break 2
6094   fi
6095 done
6096   done
6097 IFS=$as_save_IFS
6098
6099 fi
6100 fi
6101 STRIP=$ac_cv_prog_STRIP
6102 if test -n "$STRIP"; then
6103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6104 $as_echo "$STRIP" >&6; }
6105 else
6106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6107 $as_echo "no" >&6; }
6108 fi
6109
6110
6111 fi
6112 if test -z "$ac_cv_prog_STRIP"; then
6113   ac_ct_STRIP=$STRIP
6114   # Extract the first word of "strip", so it can be a program name with args.
6115 set dummy strip; ac_word=$2
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6117 $as_echo_n "checking for $ac_word... " >&6; }
6118 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6119   $as_echo_n "(cached) " >&6
6120 else
6121   if test -n "$ac_ct_STRIP"; then
6122   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6123 else
6124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6125 for as_dir in $PATH
6126 do
6127   IFS=$as_save_IFS
6128   test -z "$as_dir" && as_dir=.
6129     for ac_exec_ext in '' $ac_executable_extensions; do
6130   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6131     ac_cv_prog_ac_ct_STRIP="strip"
6132     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6133     break 2
6134   fi
6135 done
6136   done
6137 IFS=$as_save_IFS
6138
6139 fi
6140 fi
6141 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6142 if test -n "$ac_ct_STRIP"; then
6143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6144 $as_echo "$ac_ct_STRIP" >&6; }
6145 else
6146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6147 $as_echo "no" >&6; }
6148 fi
6149
6150   if test "x$ac_ct_STRIP" = x; then
6151     STRIP=":"
6152   else
6153     case $cross_compiling:$ac_tool_warned in
6154 yes:)
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6156 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6157 ac_tool_warned=yes ;;
6158 esac
6159     STRIP=$ac_ct_STRIP
6160   fi
6161 else
6162   STRIP="$ac_cv_prog_STRIP"
6163 fi
6164
6165 test -z "$STRIP" && STRIP=:
6166
6167
6168
6169
6170
6171
6172 if test -n "$ac_tool_prefix"; then
6173   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6174 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6176 $as_echo_n "checking for $ac_word... " >&6; }
6177 if ${ac_cv_prog_RANLIB+:} false; then :
6178   $as_echo_n "(cached) " >&6
6179 else
6180   if test -n "$RANLIB"; then
6181   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6182 else
6183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6184 for as_dir in $PATH
6185 do
6186   IFS=$as_save_IFS
6187   test -z "$as_dir" && as_dir=.
6188     for ac_exec_ext in '' $ac_executable_extensions; do
6189   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6190     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6191     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6192     break 2
6193   fi
6194 done
6195   done
6196 IFS=$as_save_IFS
6197
6198 fi
6199 fi
6200 RANLIB=$ac_cv_prog_RANLIB
6201 if test -n "$RANLIB"; then
6202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6203 $as_echo "$RANLIB" >&6; }
6204 else
6205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6206 $as_echo "no" >&6; }
6207 fi
6208
6209
6210 fi
6211 if test -z "$ac_cv_prog_RANLIB"; then
6212   ac_ct_RANLIB=$RANLIB
6213   # Extract the first word of "ranlib", so it can be a program name with args.
6214 set dummy ranlib; ac_word=$2
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6216 $as_echo_n "checking for $ac_word... " >&6; }
6217 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6218   $as_echo_n "(cached) " >&6
6219 else
6220   if test -n "$ac_ct_RANLIB"; then
6221   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6222 else
6223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6224 for as_dir in $PATH
6225 do
6226   IFS=$as_save_IFS
6227   test -z "$as_dir" && as_dir=.
6228     for ac_exec_ext in '' $ac_executable_extensions; do
6229   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6230     ac_cv_prog_ac_ct_RANLIB="ranlib"
6231     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6232     break 2
6233   fi
6234 done
6235   done
6236 IFS=$as_save_IFS
6237
6238 fi
6239 fi
6240 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6241 if test -n "$ac_ct_RANLIB"; then
6242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6243 $as_echo "$ac_ct_RANLIB" >&6; }
6244 else
6245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6246 $as_echo "no" >&6; }
6247 fi
6248
6249   if test "x$ac_ct_RANLIB" = x; then
6250     RANLIB=":"
6251   else
6252     case $cross_compiling:$ac_tool_warned in
6253 yes:)
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6255 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6256 ac_tool_warned=yes ;;
6257 esac
6258     RANLIB=$ac_ct_RANLIB
6259   fi
6260 else
6261   RANLIB="$ac_cv_prog_RANLIB"
6262 fi
6263
6264 test -z "$RANLIB" && RANLIB=:
6265
6266
6267
6268
6269
6270
6271 # Determine commands to create old-style static archives.
6272 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6273 old_postinstall_cmds='chmod 644 $oldlib'
6274 old_postuninstall_cmds=
6275
6276 if test -n "$RANLIB"; then
6277   case $host_os in
6278   openbsd*)
6279     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6280     ;;
6281   *)
6282     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6283     ;;
6284   esac
6285   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6286 fi
6287
6288 case $host_os in
6289   darwin*)
6290     lock_old_archive_extraction=yes ;;
6291   *)
6292     lock_old_archive_extraction=no ;;
6293 esac
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333 # If no C compiler was specified, use CC.
6334 LTCC=${LTCC-"$CC"}
6335
6336 # If no C compiler flags were specified, use CFLAGS.
6337 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6338
6339 # Allow CC to be a program name with arguments.
6340 compiler=$CC
6341
6342
6343 # Check for command to grab the raw symbol name followed by C symbol from nm.
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6345 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6346 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6347   $as_echo_n "(cached) " >&6
6348 else
6349
6350 # These are sane defaults that work on at least a few old systems.
6351 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6352
6353 # Character class describing NM global symbol codes.
6354 symcode='[BCDEGRST]'
6355
6356 # Regexp to match symbols that can be accessed directly from C.
6357 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6358
6359 # Define system-specific variables.
6360 case $host_os in
6361 aix*)
6362   symcode='[BCDT]'
6363   ;;
6364 cygwin* | mingw* | pw32* | cegcc*)
6365   symcode='[ABCDGISTW]'
6366   ;;
6367 hpux*)
6368   if test "$host_cpu" = ia64; then
6369     symcode='[ABCDEGRST]'
6370   fi
6371   ;;
6372 irix* | nonstopux*)
6373   symcode='[BCDEGRST]'
6374   ;;
6375 osf*)
6376   symcode='[BCDEGQRST]'
6377   ;;
6378 solaris*)
6379   symcode='[BDRT]'
6380   ;;
6381 sco3.2v5*)
6382   symcode='[DT]'
6383   ;;
6384 sysv4.2uw2*)
6385   symcode='[DT]'
6386   ;;
6387 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6388   symcode='[ABDT]'
6389   ;;
6390 sysv4)
6391   symcode='[DFNSTU]'
6392   ;;
6393 esac
6394
6395 # If we're using GNU nm, then use its standard symbol codes.
6396 case `$NM -V 2>&1` in
6397 *GNU* | *'with BFD'*)
6398   symcode='[ABCDGIRSTW]' ;;
6399 esac
6400
6401 # Transform an extracted symbol line into a proper C declaration.
6402 # Some systems (esp. on ia64) link data and code symbols differently,
6403 # so use this general approach.
6404 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6405
6406 # Transform an extracted symbol line into symbol name and symbol address
6407 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6408 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6409
6410 # Handle CRLF in mingw tool chain
6411 opt_cr=
6412 case $build_os in
6413 mingw*)
6414   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6415   ;;
6416 esac
6417
6418 # Try without a prefix underscore, then with it.
6419 for ac_symprfx in "" "_"; do
6420
6421   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6422   symxfrm="\\1 $ac_symprfx\\2 \\2"
6423
6424   # Write the raw and C identifiers.
6425   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6426     # Fake it for dumpbin and say T for any non-static function
6427     # and D for any global variable.
6428     # Also find C++ and __fastcall symbols from MSVC++,
6429     # which start with @ or ?.
6430     lt_cv_sys_global_symbol_pipe="$AWK '"\
6431 "     {last_section=section; section=\$ 3};"\
6432 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6433 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6434 "     \$ 0!~/External *\|/{next};"\
6435 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6436 "     {if(hide[section]) next};"\
6437 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6438 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6439 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6440 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6441 "     ' prfx=^$ac_symprfx"
6442   else
6443     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6444   fi
6445   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6446
6447   # Check to see that the pipe works correctly.
6448   pipe_works=no
6449
6450   rm -f conftest*
6451   cat > conftest.$ac_ext <<_LT_EOF
6452 #ifdef __cplusplus
6453 extern "C" {
6454 #endif
6455 char nm_test_var;
6456 void nm_test_func(void);
6457 void nm_test_func(void){}
6458 #ifdef __cplusplus
6459 }
6460 #endif
6461 int main(){nm_test_var='a';nm_test_func();return(0);}
6462 _LT_EOF
6463
6464   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6465   (eval $ac_compile) 2>&5
6466   ac_status=$?
6467   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6468   test $ac_status = 0; }; then
6469     # Now try to grab the symbols.
6470     nlist=conftest.nm
6471     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6472   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6473   ac_status=$?
6474   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6475   test $ac_status = 0; } && test -s "$nlist"; then
6476       # Try sorting and uniquifying the output.
6477       if sort "$nlist" | uniq > "$nlist"T; then
6478         mv -f "$nlist"T "$nlist"
6479       else
6480         rm -f "$nlist"T
6481       fi
6482
6483       # Make sure that we snagged all the symbols we need.
6484       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6485         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6486           cat <<_LT_EOF > conftest.$ac_ext
6487 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6488 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6489 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6490    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6491 # define LT_DLSYM_CONST
6492 #elif defined(__osf__)
6493 /* This system does not cope well with relocations in const data.  */
6494 # define LT_DLSYM_CONST
6495 #else
6496 # define LT_DLSYM_CONST const
6497 #endif
6498
6499 #ifdef __cplusplus
6500 extern "C" {
6501 #endif
6502
6503 _LT_EOF
6504           # Now generate the symbol file.
6505           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6506
6507           cat <<_LT_EOF >> conftest.$ac_ext
6508
6509 /* The mapping between symbol names and symbols.  */
6510 LT_DLSYM_CONST struct {
6511   const char *name;
6512   void       *address;
6513 }
6514 lt__PROGRAM__LTX_preloaded_symbols[] =
6515 {
6516   { "@PROGRAM@", (void *) 0 },
6517 _LT_EOF
6518           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6519           cat <<\_LT_EOF >> conftest.$ac_ext
6520   {0, (void *) 0}
6521 };
6522
6523 /* This works around a problem in FreeBSD linker */
6524 #ifdef FREEBSD_WORKAROUND
6525 static const void *lt_preloaded_setup() {
6526   return lt__PROGRAM__LTX_preloaded_symbols;
6527 }
6528 #endif
6529
6530 #ifdef __cplusplus
6531 }
6532 #endif
6533 _LT_EOF
6534           # Now try linking the two files.
6535           mv conftest.$ac_objext conftstm.$ac_objext
6536           lt_globsym_save_LIBS=$LIBS
6537           lt_globsym_save_CFLAGS=$CFLAGS
6538           LIBS="conftstm.$ac_objext"
6539           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6540           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6541   (eval $ac_link) 2>&5
6542   ac_status=$?
6543   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6544   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6545             pipe_works=yes
6546           fi
6547           LIBS=$lt_globsym_save_LIBS
6548           CFLAGS=$lt_globsym_save_CFLAGS
6549         else
6550           echo "cannot find nm_test_func in $nlist" >&5
6551         fi
6552       else
6553         echo "cannot find nm_test_var in $nlist" >&5
6554       fi
6555     else
6556       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6557     fi
6558   else
6559     echo "$progname: failed program was:" >&5
6560     cat conftest.$ac_ext >&5
6561   fi
6562   rm -rf conftest* conftst*
6563
6564   # Do not use the global_symbol_pipe unless it works.
6565   if test "$pipe_works" = yes; then
6566     break
6567   else
6568     lt_cv_sys_global_symbol_pipe=
6569   fi
6570 done
6571
6572 fi
6573
6574 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6575   lt_cv_sys_global_symbol_to_cdecl=
6576 fi
6577 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6579 $as_echo "failed" >&6; }
6580 else
6581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6582 $as_echo "ok" >&6; }
6583 fi
6584
6585 # Response file support.
6586 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6587   nm_file_list_spec='@'
6588 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6589   nm_file_list_spec='@'
6590 fi
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6619 $as_echo_n "checking for sysroot... " >&6; }
6620
6621 # Check whether --with-sysroot was given.
6622 if test "${with_sysroot+set}" = set; then :
6623   withval=$with_sysroot;
6624 else
6625   with_sysroot=no
6626 fi
6627
6628
6629 lt_sysroot=
6630 case ${with_sysroot} in #(
6631  yes)
6632    if test "$GCC" = yes; then
6633      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6634    fi
6635    ;; #(
6636  /*)
6637    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6638    ;; #(
6639  no|'')
6640    ;; #(
6641  *)
6642    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6643 $as_echo "${with_sysroot}" >&6; }
6644    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6645    ;;
6646 esac
6647
6648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6649 $as_echo "${lt_sysroot:-no}" >&6; }
6650
6651
6652
6653
6654
6655 # Check whether --enable-libtool-lock was given.
6656 if test "${enable_libtool_lock+set}" = set; then :
6657   enableval=$enable_libtool_lock;
6658 fi
6659
6660 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6661
6662 # Some flags need to be propagated to the compiler or linker for good
6663 # libtool support.
6664 case $host in
6665 ia64-*-hpux*)
6666   # Find out which ABI we are using.
6667   echo 'int i;' > conftest.$ac_ext
6668   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6669   (eval $ac_compile) 2>&5
6670   ac_status=$?
6671   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6672   test $ac_status = 0; }; then
6673     case `/usr/bin/file conftest.$ac_objext` in
6674       *ELF-32*)
6675         HPUX_IA64_MODE="32"
6676         ;;
6677       *ELF-64*)
6678         HPUX_IA64_MODE="64"
6679         ;;
6680     esac
6681   fi
6682   rm -rf conftest*
6683   ;;
6684 *-*-irix6*)
6685   # Find out which ABI we are using.
6686   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6687   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6688   (eval $ac_compile) 2>&5
6689   ac_status=$?
6690   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6691   test $ac_status = 0; }; then
6692     if test "$lt_cv_prog_gnu_ld" = yes; then
6693       case `/usr/bin/file conftest.$ac_objext` in
6694         *32-bit*)
6695           LD="${LD-ld} -melf32bsmip"
6696           ;;
6697         *N32*)
6698           LD="${LD-ld} -melf32bmipn32"
6699           ;;
6700         *64-bit*)
6701           LD="${LD-ld} -melf64bmip"
6702         ;;
6703       esac
6704     else
6705       case `/usr/bin/file conftest.$ac_objext` in
6706         *32-bit*)
6707           LD="${LD-ld} -32"
6708           ;;
6709         *N32*)
6710           LD="${LD-ld} -n32"
6711           ;;
6712         *64-bit*)
6713           LD="${LD-ld} -64"
6714           ;;
6715       esac
6716     fi
6717   fi
6718   rm -rf conftest*
6719   ;;
6720
6721 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6722 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6723   # Find out which ABI we are using.
6724   echo 'int i;' > conftest.$ac_ext
6725   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6726   (eval $ac_compile) 2>&5
6727   ac_status=$?
6728   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6729   test $ac_status = 0; }; then
6730     case `/usr/bin/file conftest.o` in
6731       *32-bit*)
6732         case $host in
6733           x86_64-*kfreebsd*-gnu)
6734             LD="${LD-ld} -m elf_i386_fbsd"
6735             ;;
6736           x86_64-*linux*)
6737             LD="${LD-ld} -m elf_i386"
6738             ;;
6739           ppc64-*linux*|powerpc64-*linux*)
6740             LD="${LD-ld} -m elf32ppclinux"
6741             ;;
6742           s390x-*linux*)
6743             LD="${LD-ld} -m elf_s390"
6744             ;;
6745           sparc64-*linux*)
6746             LD="${LD-ld} -m elf32_sparc"
6747             ;;
6748         esac
6749         ;;
6750       *64-bit*)
6751         case $host in
6752           x86_64-*kfreebsd*-gnu)
6753             LD="${LD-ld} -m elf_x86_64_fbsd"
6754             ;;
6755           x86_64-*linux*)
6756             LD="${LD-ld} -m elf_x86_64"
6757             ;;
6758           ppc*-*linux*|powerpc*-*linux*)
6759             LD="${LD-ld} -m elf64ppc"
6760             ;;
6761           s390*-*linux*|s390*-*tpf*)
6762             LD="${LD-ld} -m elf64_s390"
6763             ;;
6764           sparc*-*linux*)
6765             LD="${LD-ld} -m elf64_sparc"
6766             ;;
6767         esac
6768         ;;
6769     esac
6770   fi
6771   rm -rf conftest*
6772   ;;
6773
6774 *-*-sco3.2v5*)
6775   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6776   SAVE_CFLAGS="$CFLAGS"
6777   CFLAGS="$CFLAGS -belf"
6778   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6779 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6780 if ${lt_cv_cc_needs_belf+:} false; then :
6781   $as_echo_n "(cached) " >&6
6782 else
6783   ac_ext=c
6784 ac_cpp='$CPP $CPPFLAGS'
6785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6788
6789      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6790 /* end confdefs.h.  */
6791
6792 int
6793 main ()
6794 {
6795
6796   ;
6797   return 0;
6798 }
6799 _ACEOF
6800 if ac_fn_c_try_link "$LINENO"; then :
6801   lt_cv_cc_needs_belf=yes
6802 else
6803   lt_cv_cc_needs_belf=no
6804 fi
6805 rm -f core conftest.err conftest.$ac_objext \
6806     conftest$ac_exeext conftest.$ac_ext
6807      ac_ext=c
6808 ac_cpp='$CPP $CPPFLAGS'
6809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6812
6813 fi
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6815 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6816   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6817     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6818     CFLAGS="$SAVE_CFLAGS"
6819   fi
6820   ;;
6821 *-*solaris*)
6822   # Find out which ABI we are using.
6823   echo 'int i;' > conftest.$ac_ext
6824   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6825   (eval $ac_compile) 2>&5
6826   ac_status=$?
6827   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6828   test $ac_status = 0; }; then
6829     case `/usr/bin/file conftest.o` in
6830     *64-bit*)
6831       case $lt_cv_prog_gnu_ld in
6832       yes*)
6833         case $host in
6834         i?86-*-solaris*)
6835           LD="${LD-ld} -m elf_x86_64"
6836           ;;
6837         sparc*-*-solaris*)
6838           LD="${LD-ld} -m elf64_sparc"
6839           ;;
6840         esac
6841         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6842         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6843           LD="${LD-ld}_sol2"
6844         fi
6845         ;;
6846       *)
6847         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6848           LD="${LD-ld} -64"
6849         fi
6850         ;;
6851       esac
6852       ;;
6853     esac
6854   fi
6855   rm -rf conftest*
6856   ;;
6857 esac
6858
6859 need_locks="$enable_libtool_lock"
6860
6861 if test -n "$ac_tool_prefix"; then
6862   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6863 set dummy ${ac_tool_prefix}mt; ac_word=$2
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6865 $as_echo_n "checking for $ac_word... " >&6; }
6866 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6867   $as_echo_n "(cached) " >&6
6868 else
6869   if test -n "$MANIFEST_TOOL"; then
6870   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6871 else
6872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6873 for as_dir in $PATH
6874 do
6875   IFS=$as_save_IFS
6876   test -z "$as_dir" && as_dir=.
6877     for ac_exec_ext in '' $ac_executable_extensions; do
6878   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6879     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6880     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6881     break 2
6882   fi
6883 done
6884   done
6885 IFS=$as_save_IFS
6886
6887 fi
6888 fi
6889 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6890 if test -n "$MANIFEST_TOOL"; then
6891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6892 $as_echo "$MANIFEST_TOOL" >&6; }
6893 else
6894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6895 $as_echo "no" >&6; }
6896 fi
6897
6898
6899 fi
6900 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6901   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6902   # Extract the first word of "mt", so it can be a program name with args.
6903 set dummy mt; ac_word=$2
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6905 $as_echo_n "checking for $ac_word... " >&6; }
6906 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6907   $as_echo_n "(cached) " >&6
6908 else
6909   if test -n "$ac_ct_MANIFEST_TOOL"; then
6910   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6911 else
6912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6913 for as_dir in $PATH
6914 do
6915   IFS=$as_save_IFS
6916   test -z "$as_dir" && as_dir=.
6917     for ac_exec_ext in '' $ac_executable_extensions; do
6918   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6919     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6920     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6921     break 2
6922   fi
6923 done
6924   done
6925 IFS=$as_save_IFS
6926
6927 fi
6928 fi
6929 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6930 if test -n "$ac_ct_MANIFEST_TOOL"; then
6931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6932 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6933 else
6934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6935 $as_echo "no" >&6; }
6936 fi
6937
6938   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6939     MANIFEST_TOOL=":"
6940   else
6941     case $cross_compiling:$ac_tool_warned in
6942 yes:)
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6944 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6945 ac_tool_warned=yes ;;
6946 esac
6947     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6948   fi
6949 else
6950   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6951 fi
6952
6953 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6955 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6956 if ${lt_cv_path_mainfest_tool+:} false; then :
6957   $as_echo_n "(cached) " >&6
6958 else
6959   lt_cv_path_mainfest_tool=no
6960   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6961   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6962   cat conftest.err >&5
6963   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6964     lt_cv_path_mainfest_tool=yes
6965   fi
6966   rm -f conftest*
6967 fi
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6969 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6970 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6971   MANIFEST_TOOL=:
6972 fi
6973
6974
6975
6976
6977
6978
6979   case $host_os in
6980     rhapsody* | darwin*)
6981     if test -n "$ac_tool_prefix"; then
6982   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6983 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6985 $as_echo_n "checking for $ac_word... " >&6; }
6986 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6987   $as_echo_n "(cached) " >&6
6988 else
6989   if test -n "$DSYMUTIL"; then
6990   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6991 else
6992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6993 for as_dir in $PATH
6994 do
6995   IFS=$as_save_IFS
6996   test -z "$as_dir" && as_dir=.
6997     for ac_exec_ext in '' $ac_executable_extensions; do
6998   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6999     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7000     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7001     break 2
7002   fi
7003 done
7004   done
7005 IFS=$as_save_IFS
7006
7007 fi
7008 fi
7009 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7010 if test -n "$DSYMUTIL"; then
7011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7012 $as_echo "$DSYMUTIL" >&6; }
7013 else
7014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7015 $as_echo "no" >&6; }
7016 fi
7017
7018
7019 fi
7020 if test -z "$ac_cv_prog_DSYMUTIL"; then
7021   ac_ct_DSYMUTIL=$DSYMUTIL
7022   # Extract the first word of "dsymutil", so it can be a program name with args.
7023 set dummy dsymutil; ac_word=$2
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7025 $as_echo_n "checking for $ac_word... " >&6; }
7026 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7027   $as_echo_n "(cached) " >&6
7028 else
7029   if test -n "$ac_ct_DSYMUTIL"; then
7030   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7031 else
7032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7033 for as_dir in $PATH
7034 do
7035   IFS=$as_save_IFS
7036   test -z "$as_dir" && as_dir=.
7037     for ac_exec_ext in '' $ac_executable_extensions; do
7038   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7039     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7040     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7041     break 2
7042   fi
7043 done
7044   done
7045 IFS=$as_save_IFS
7046
7047 fi
7048 fi
7049 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7050 if test -n "$ac_ct_DSYMUTIL"; then
7051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7052 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7053 else
7054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7055 $as_echo "no" >&6; }
7056 fi
7057
7058   if test "x$ac_ct_DSYMUTIL" = x; then
7059     DSYMUTIL=":"
7060   else
7061     case $cross_compiling:$ac_tool_warned in
7062 yes:)
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7064 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7065 ac_tool_warned=yes ;;
7066 esac
7067     DSYMUTIL=$ac_ct_DSYMUTIL
7068   fi
7069 else
7070   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7071 fi
7072
7073     if test -n "$ac_tool_prefix"; then
7074   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7075 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7077 $as_echo_n "checking for $ac_word... " >&6; }
7078 if ${ac_cv_prog_NMEDIT+:} false; then :
7079   $as_echo_n "(cached) " >&6
7080 else
7081   if test -n "$NMEDIT"; then
7082   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7083 else
7084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7085 for as_dir in $PATH
7086 do
7087   IFS=$as_save_IFS
7088   test -z "$as_dir" && as_dir=.
7089     for ac_exec_ext in '' $ac_executable_extensions; do
7090   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7091     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7092     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7093     break 2
7094   fi
7095 done
7096   done
7097 IFS=$as_save_IFS
7098
7099 fi
7100 fi
7101 NMEDIT=$ac_cv_prog_NMEDIT
7102 if test -n "$NMEDIT"; then
7103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7104 $as_echo "$NMEDIT" >&6; }
7105 else
7106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7107 $as_echo "no" >&6; }
7108 fi
7109
7110
7111 fi
7112 if test -z "$ac_cv_prog_NMEDIT"; then
7113   ac_ct_NMEDIT=$NMEDIT
7114   # Extract the first word of "nmedit", so it can be a program name with args.
7115 set dummy nmedit; ac_word=$2
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7117 $as_echo_n "checking for $ac_word... " >&6; }
7118 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7119   $as_echo_n "(cached) " >&6
7120 else
7121   if test -n "$ac_ct_NMEDIT"; then
7122   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7123 else
7124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7125 for as_dir in $PATH
7126 do
7127   IFS=$as_save_IFS
7128   test -z "$as_dir" && as_dir=.
7129     for ac_exec_ext in '' $ac_executable_extensions; do
7130   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7131     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7132     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7133     break 2
7134   fi
7135 done
7136   done
7137 IFS=$as_save_IFS
7138
7139 fi
7140 fi
7141 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7142 if test -n "$ac_ct_NMEDIT"; then
7143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7144 $as_echo "$ac_ct_NMEDIT" >&6; }
7145 else
7146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7147 $as_echo "no" >&6; }
7148 fi
7149
7150   if test "x$ac_ct_NMEDIT" = x; then
7151     NMEDIT=":"
7152   else
7153     case $cross_compiling:$ac_tool_warned in
7154 yes:)
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7156 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7157 ac_tool_warned=yes ;;
7158 esac
7159     NMEDIT=$ac_ct_NMEDIT
7160   fi
7161 else
7162   NMEDIT="$ac_cv_prog_NMEDIT"
7163 fi
7164
7165     if test -n "$ac_tool_prefix"; then
7166   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7167 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7169 $as_echo_n "checking for $ac_word... " >&6; }
7170 if ${ac_cv_prog_LIPO+:} false; then :
7171   $as_echo_n "(cached) " >&6
7172 else
7173   if test -n "$LIPO"; then
7174   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7175 else
7176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177 for as_dir in $PATH
7178 do
7179   IFS=$as_save_IFS
7180   test -z "$as_dir" && as_dir=.
7181     for ac_exec_ext in '' $ac_executable_extensions; do
7182   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7183     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7184     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7185     break 2
7186   fi
7187 done
7188   done
7189 IFS=$as_save_IFS
7190
7191 fi
7192 fi
7193 LIPO=$ac_cv_prog_LIPO
7194 if test -n "$LIPO"; then
7195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7196 $as_echo "$LIPO" >&6; }
7197 else
7198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7199 $as_echo "no" >&6; }
7200 fi
7201
7202
7203 fi
7204 if test -z "$ac_cv_prog_LIPO"; then
7205   ac_ct_LIPO=$LIPO
7206   # Extract the first word of "lipo", so it can be a program name with args.
7207 set dummy lipo; ac_word=$2
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7209 $as_echo_n "checking for $ac_word... " >&6; }
7210 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7211   $as_echo_n "(cached) " >&6
7212 else
7213   if test -n "$ac_ct_LIPO"; then
7214   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7215 else
7216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7217 for as_dir in $PATH
7218 do
7219   IFS=$as_save_IFS
7220   test -z "$as_dir" && as_dir=.
7221     for ac_exec_ext in '' $ac_executable_extensions; do
7222   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7223     ac_cv_prog_ac_ct_LIPO="lipo"
7224     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7225     break 2
7226   fi
7227 done
7228   done
7229 IFS=$as_save_IFS
7230
7231 fi
7232 fi
7233 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7234 if test -n "$ac_ct_LIPO"; then
7235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7236 $as_echo "$ac_ct_LIPO" >&6; }
7237 else
7238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7239 $as_echo "no" >&6; }
7240 fi
7241
7242   if test "x$ac_ct_LIPO" = x; then
7243     LIPO=":"
7244   else
7245     case $cross_compiling:$ac_tool_warned in
7246 yes:)
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7248 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7249 ac_tool_warned=yes ;;
7250 esac
7251     LIPO=$ac_ct_LIPO
7252   fi
7253 else
7254   LIPO="$ac_cv_prog_LIPO"
7255 fi
7256
7257     if test -n "$ac_tool_prefix"; then
7258   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7259 set dummy ${ac_tool_prefix}otool; ac_word=$2
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7261 $as_echo_n "checking for $ac_word... " >&6; }
7262 if ${ac_cv_prog_OTOOL+:} false; then :
7263   $as_echo_n "(cached) " >&6
7264 else
7265   if test -n "$OTOOL"; then
7266   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7267 else
7268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7269 for as_dir in $PATH
7270 do
7271   IFS=$as_save_IFS
7272   test -z "$as_dir" && as_dir=.
7273     for ac_exec_ext in '' $ac_executable_extensions; do
7274   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7275     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7276     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7277     break 2
7278   fi
7279 done
7280   done
7281 IFS=$as_save_IFS
7282
7283 fi
7284 fi
7285 OTOOL=$ac_cv_prog_OTOOL
7286 if test -n "$OTOOL"; then
7287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7288 $as_echo "$OTOOL" >&6; }
7289 else
7290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7291 $as_echo "no" >&6; }
7292 fi
7293
7294
7295 fi
7296 if test -z "$ac_cv_prog_OTOOL"; then
7297   ac_ct_OTOOL=$OTOOL
7298   # Extract the first word of "otool", so it can be a program name with args.
7299 set dummy otool; ac_word=$2
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7301 $as_echo_n "checking for $ac_word... " >&6; }
7302 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7303   $as_echo_n "(cached) " >&6
7304 else
7305   if test -n "$ac_ct_OTOOL"; then
7306   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7307 else
7308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7309 for as_dir in $PATH
7310 do
7311   IFS=$as_save_IFS
7312   test -z "$as_dir" && as_dir=.
7313     for ac_exec_ext in '' $ac_executable_extensions; do
7314   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7315     ac_cv_prog_ac_ct_OTOOL="otool"
7316     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7317     break 2
7318   fi
7319 done
7320   done
7321 IFS=$as_save_IFS
7322
7323 fi
7324 fi
7325 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7326 if test -n "$ac_ct_OTOOL"; then
7327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7328 $as_echo "$ac_ct_OTOOL" >&6; }
7329 else
7330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7331 $as_echo "no" >&6; }
7332 fi
7333
7334   if test "x$ac_ct_OTOOL" = x; then
7335     OTOOL=":"
7336   else
7337     case $cross_compiling:$ac_tool_warned in
7338 yes:)
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7340 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7341 ac_tool_warned=yes ;;
7342 esac
7343     OTOOL=$ac_ct_OTOOL
7344   fi
7345 else
7346   OTOOL="$ac_cv_prog_OTOOL"
7347 fi
7348
7349     if test -n "$ac_tool_prefix"; then
7350   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7351 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7353 $as_echo_n "checking for $ac_word... " >&6; }
7354 if ${ac_cv_prog_OTOOL64+:} false; then :
7355   $as_echo_n "(cached) " >&6
7356 else
7357   if test -n "$OTOOL64"; then
7358   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7359 else
7360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7361 for as_dir in $PATH
7362 do
7363   IFS=$as_save_IFS
7364   test -z "$as_dir" && as_dir=.
7365     for ac_exec_ext in '' $ac_executable_extensions; do
7366   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7367     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7368     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7369     break 2
7370   fi
7371 done
7372   done
7373 IFS=$as_save_IFS
7374
7375 fi
7376 fi
7377 OTOOL64=$ac_cv_prog_OTOOL64
7378 if test -n "$OTOOL64"; then
7379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7380 $as_echo "$OTOOL64" >&6; }
7381 else
7382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7383 $as_echo "no" >&6; }
7384 fi
7385
7386
7387 fi
7388 if test -z "$ac_cv_prog_OTOOL64"; then
7389   ac_ct_OTOOL64=$OTOOL64
7390   # Extract the first word of "otool64", so it can be a program name with args.
7391 set dummy otool64; ac_word=$2
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7393 $as_echo_n "checking for $ac_word... " >&6; }
7394 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7395   $as_echo_n "(cached) " >&6
7396 else
7397   if test -n "$ac_ct_OTOOL64"; then
7398   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7399 else
7400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7401 for as_dir in $PATH
7402 do
7403   IFS=$as_save_IFS
7404   test -z "$as_dir" && as_dir=.
7405     for ac_exec_ext in '' $ac_executable_extensions; do
7406   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7407     ac_cv_prog_ac_ct_OTOOL64="otool64"
7408     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7409     break 2
7410   fi
7411 done
7412   done
7413 IFS=$as_save_IFS
7414
7415 fi
7416 fi
7417 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7418 if test -n "$ac_ct_OTOOL64"; then
7419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7420 $as_echo "$ac_ct_OTOOL64" >&6; }
7421 else
7422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7423 $as_echo "no" >&6; }
7424 fi
7425
7426   if test "x$ac_ct_OTOOL64" = x; then
7427     OTOOL64=":"
7428   else
7429     case $cross_compiling:$ac_tool_warned in
7430 yes:)
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7433 ac_tool_warned=yes ;;
7434 esac
7435     OTOOL64=$ac_ct_OTOOL64
7436   fi
7437 else
7438   OTOOL64="$ac_cv_prog_OTOOL64"
7439 fi
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7468 $as_echo_n "checking for -single_module linker flag... " >&6; }
7469 if ${lt_cv_apple_cc_single_mod+:} false; then :
7470   $as_echo_n "(cached) " >&6
7471 else
7472   lt_cv_apple_cc_single_mod=no
7473       if test -z "${LT_MULTI_MODULE}"; then
7474         # By default we will add the -single_module flag. You can override
7475         # by either setting the environment variable LT_MULTI_MODULE
7476         # non-empty at configure time, or by adding -multi_module to the
7477         # link flags.
7478         rm -rf libconftest.dylib*
7479         echo "int foo(void){return 1;}" > conftest.c
7480         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7481 -dynamiclib -Wl,-single_module conftest.c" >&5
7482         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7483           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7484         _lt_result=$?
7485         # If there is a non-empty error log, and "single_module"
7486         # appears in it, assume the flag caused a linker warning
7487         if test -s conftest.err && $GREP single_module conftest.err; then
7488           cat conftest.err >&5
7489         # Otherwise, if the output was created with a 0 exit code from
7490         # the compiler, it worked.
7491         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7492           lt_cv_apple_cc_single_mod=yes
7493         else
7494           cat conftest.err >&5
7495         fi
7496         rm -rf libconftest.dylib*
7497         rm -f conftest.*
7498       fi
7499 fi
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7501 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7502
7503     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7504 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7505 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7506   $as_echo_n "(cached) " >&6
7507 else
7508   lt_cv_ld_exported_symbols_list=no
7509       save_LDFLAGS=$LDFLAGS
7510       echo "_main" > conftest.sym
7511       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7512       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7513 /* end confdefs.h.  */
7514
7515 int
7516 main ()
7517 {
7518
7519   ;
7520   return 0;
7521 }
7522 _ACEOF
7523 if ac_fn_c_try_link "$LINENO"; then :
7524   lt_cv_ld_exported_symbols_list=yes
7525 else
7526   lt_cv_ld_exported_symbols_list=no
7527 fi
7528 rm -f core conftest.err conftest.$ac_objext \
7529     conftest$ac_exeext conftest.$ac_ext
7530         LDFLAGS="$save_LDFLAGS"
7531
7532 fi
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7534 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7535
7536     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7537 $as_echo_n "checking for -force_load linker flag... " >&6; }
7538 if ${lt_cv_ld_force_load+:} false; then :
7539   $as_echo_n "(cached) " >&6
7540 else
7541   lt_cv_ld_force_load=no
7542       cat > conftest.c << _LT_EOF
7543 int forced_loaded() { return 2;}
7544 _LT_EOF
7545       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7546       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7547       echo "$AR cru libconftest.a conftest.o" >&5
7548       $AR cru libconftest.a conftest.o 2>&5
7549       echo "$RANLIB libconftest.a" >&5
7550       $RANLIB libconftest.a 2>&5
7551       cat > conftest.c << _LT_EOF
7552 int main() { return 0;}
7553 _LT_EOF
7554       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7555       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7556       _lt_result=$?
7557       if test -s conftest.err && $GREP force_load conftest.err; then
7558         cat conftest.err >&5
7559       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7560         lt_cv_ld_force_load=yes
7561       else
7562         cat conftest.err >&5
7563       fi
7564         rm -f conftest.err libconftest.a conftest conftest.c
7565         rm -rf conftest.dSYM
7566
7567 fi
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7569 $as_echo "$lt_cv_ld_force_load" >&6; }
7570     case $host_os in
7571     rhapsody* | darwin1.[012])
7572       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7573     darwin1.*)
7574       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7575     darwin*) # darwin 5.x on
7576       # if running on 10.5 or later, the deployment target defaults
7577       # to the OS version, if on x86, and 10.4, the deployment
7578       # target defaults to 10.4. Don't you love it?
7579       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7580         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7581           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7582         10.[012]*)
7583           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7584         10.*)
7585           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7586       esac
7587     ;;
7588   esac
7589     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7590       _lt_dar_single_mod='$single_module'
7591     fi
7592     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7593       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7594     else
7595       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7596     fi
7597     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7598       _lt_dsymutil='~$DSYMUTIL $lib || :'
7599     else
7600       _lt_dsymutil=
7601     fi
7602     ;;
7603   esac
7604
7605 for ac_header in dlfcn.h
7606 do :
7607   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7608 "
7609 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7610   cat >>confdefs.h <<_ACEOF
7611 #define HAVE_DLFCN_H 1
7612 _ACEOF
7613
7614 fi
7615
7616 done
7617
7618
7619
7620
7621
7622 # Set options
7623
7624
7625
7626         enable_dlopen=no
7627
7628
7629   enable_win32_dll=no
7630
7631
7632             # Check whether --enable-shared was given.
7633 if test "${enable_shared+set}" = set; then :
7634   enableval=$enable_shared; p=${PACKAGE-default}
7635     case $enableval in
7636     yes) enable_shared=yes ;;
7637     no) enable_shared=no ;;
7638     *)
7639       enable_shared=no
7640       # Look at the argument we got.  We use all the common list separators.
7641       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7642       for pkg in $enableval; do
7643         IFS="$lt_save_ifs"
7644         if test "X$pkg" = "X$p"; then
7645           enable_shared=yes
7646         fi
7647       done
7648       IFS="$lt_save_ifs"
7649       ;;
7650     esac
7651 else
7652   enable_shared=yes
7653 fi
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663   # Check whether --enable-static was given.
7664 if test "${enable_static+set}" = set; then :
7665   enableval=$enable_static; p=${PACKAGE-default}
7666     case $enableval in
7667     yes) enable_static=yes ;;
7668     no) enable_static=no ;;
7669     *)
7670      enable_static=no
7671       # Look at the argument we got.  We use all the common list separators.
7672       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7673       for pkg in $enableval; do
7674         IFS="$lt_save_ifs"
7675         if test "X$pkg" = "X$p"; then
7676           enable_static=yes
7677         fi
7678       done
7679       IFS="$lt_save_ifs"
7680       ;;
7681     esac
7682 else
7683   enable_static=yes
7684 fi
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695 # Check whether --with-pic was given.
7696 if test "${with_pic+set}" = set; then :
7697   withval=$with_pic; lt_p=${PACKAGE-default}
7698     case $withval in
7699     yes|no) pic_mode=$withval ;;
7700     *)
7701       pic_mode=default
7702       # Look at the argument we got.  We use all the common list separators.
7703       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7704       for lt_pkg in $withval; do
7705         IFS="$lt_save_ifs"
7706         if test "X$lt_pkg" = "X$lt_p"; then
7707           pic_mode=yes
7708         fi
7709       done
7710       IFS="$lt_save_ifs"
7711       ;;
7712     esac
7713 else
7714   pic_mode=default
7715 fi
7716
7717
7718 test -z "$pic_mode" && pic_mode=default
7719
7720
7721
7722
7723
7724
7725
7726   # Check whether --enable-fast-install was given.
7727 if test "${enable_fast_install+set}" = set; then :
7728   enableval=$enable_fast_install; p=${PACKAGE-default}
7729     case $enableval in
7730     yes) enable_fast_install=yes ;;
7731     no) enable_fast_install=no ;;
7732     *)
7733       enable_fast_install=no
7734       # Look at the argument we got.  We use all the common list separators.
7735       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7736       for pkg in $enableval; do
7737         IFS="$lt_save_ifs"
7738         if test "X$pkg" = "X$p"; then
7739           enable_fast_install=yes
7740         fi
7741       done
7742       IFS="$lt_save_ifs"
7743       ;;
7744     esac
7745 else
7746   enable_fast_install=yes
7747 fi
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759 # This can be used to rebuild libtool when needed
7760 LIBTOOL_DEPS="$ltmain"
7761
7762 # Always use our own libtool.
7763 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794 test -z "$LN_S" && LN_S="ln -s"
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809 if test -n "${ZSH_VERSION+set}" ; then
7810    setopt NO_GLOB_SUBST
7811 fi
7812
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7814 $as_echo_n "checking for objdir... " >&6; }
7815 if ${lt_cv_objdir+:} false; then :
7816   $as_echo_n "(cached) " >&6
7817 else
7818   rm -f .libs 2>/dev/null
7819 mkdir .libs 2>/dev/null
7820 if test -d .libs; then
7821   lt_cv_objdir=.libs
7822 else
7823   # MS-DOS does not allow filenames that begin with a dot.
7824   lt_cv_objdir=_libs
7825 fi
7826 rmdir .libs 2>/dev/null
7827 fi
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7829 $as_echo "$lt_cv_objdir" >&6; }
7830 objdir=$lt_cv_objdir
7831
7832
7833
7834
7835
7836 cat >>confdefs.h <<_ACEOF
7837 #define LT_OBJDIR "$lt_cv_objdir/"
7838 _ACEOF
7839
7840
7841
7842
7843 case $host_os in
7844 aix3*)
7845   # AIX sometimes has problems with the GCC collect2 program.  For some
7846   # reason, if we set the COLLECT_NAMES environment variable, the problems
7847   # vanish in a puff of smoke.
7848   if test "X${COLLECT_NAMES+set}" != Xset; then
7849     COLLECT_NAMES=
7850     export COLLECT_NAMES
7851   fi
7852   ;;
7853 esac
7854
7855 # Global variables:
7856 ofile=libtool
7857 can_build_shared=yes
7858
7859 # All known linkers require a `.a' archive for static linking (except MSVC,
7860 # which needs '.lib').
7861 libext=a
7862
7863 with_gnu_ld="$lt_cv_prog_gnu_ld"
7864
7865 old_CC="$CC"
7866 old_CFLAGS="$CFLAGS"
7867
7868 # Set sane defaults for various variables
7869 test -z "$CC" && CC=cc
7870 test -z "$LTCC" && LTCC=$CC
7871 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7872 test -z "$LD" && LD=ld
7873 test -z "$ac_objext" && ac_objext=o
7874
7875 for cc_temp in $compiler""; do
7876   case $cc_temp in
7877     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7878     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7879     \-*) ;;
7880     *) break;;
7881   esac
7882 done
7883 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7884
7885
7886 # Only perform the check for file, if the check method requires it
7887 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7888 case $deplibs_check_method in
7889 file_magic*)
7890   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7891     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7892 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7893 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7894   $as_echo_n "(cached) " >&6
7895 else
7896   case $MAGIC_CMD in
7897 [\\/*] |  ?:[\\/]*)
7898   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7899   ;;
7900 *)
7901   lt_save_MAGIC_CMD="$MAGIC_CMD"
7902   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7903   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7904   for ac_dir in $ac_dummy; do
7905     IFS="$lt_save_ifs"
7906     test -z "$ac_dir" && ac_dir=.
7907     if test -f $ac_dir/${ac_tool_prefix}file; then
7908       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7909       if test -n "$file_magic_test_file"; then
7910         case $deplibs_check_method in
7911         "file_magic "*)
7912           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7913           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7914           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7915             $EGREP "$file_magic_regex" > /dev/null; then
7916             :
7917           else
7918             cat <<_LT_EOF 1>&2
7919
7920 *** Warning: the command libtool uses to detect shared libraries,
7921 *** $file_magic_cmd, produces output that libtool cannot recognize.
7922 *** The result is that libtool may fail to recognize shared libraries
7923 *** as such.  This will affect the creation of libtool libraries that
7924 *** depend on shared libraries, but programs linked with such libtool
7925 *** libraries will work regardless of this problem.  Nevertheless, you
7926 *** may want to report the problem to your system manager and/or to
7927 *** bug-libtool@gnu.org
7928
7929 _LT_EOF
7930           fi ;;
7931         esac
7932       fi
7933       break
7934     fi
7935   done
7936   IFS="$lt_save_ifs"
7937   MAGIC_CMD="$lt_save_MAGIC_CMD"
7938   ;;
7939 esac
7940 fi
7941
7942 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7943 if test -n "$MAGIC_CMD"; then
7944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7945 $as_echo "$MAGIC_CMD" >&6; }
7946 else
7947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7948 $as_echo "no" >&6; }
7949 fi
7950
7951
7952
7953
7954
7955 if test -z "$lt_cv_path_MAGIC_CMD"; then
7956   if test -n "$ac_tool_prefix"; then
7957     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7958 $as_echo_n "checking for file... " >&6; }
7959 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7960   $as_echo_n "(cached) " >&6
7961 else
7962   case $MAGIC_CMD in
7963 [\\/*] |  ?:[\\/]*)
7964   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7965   ;;
7966 *)
7967   lt_save_MAGIC_CMD="$MAGIC_CMD"
7968   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7969   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7970   for ac_dir in $ac_dummy; do
7971     IFS="$lt_save_ifs"
7972     test -z "$ac_dir" && ac_dir=.
7973     if test -f $ac_dir/file; then
7974       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7975       if test -n "$file_magic_test_file"; then
7976         case $deplibs_check_method in
7977         "file_magic "*)
7978           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7979           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7980           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7981             $EGREP "$file_magic_regex" > /dev/null; then
7982             :
7983           else
7984             cat <<_LT_EOF 1>&2
7985
7986 *** Warning: the command libtool uses to detect shared libraries,
7987 *** $file_magic_cmd, produces output that libtool cannot recognize.
7988 *** The result is that libtool may fail to recognize shared libraries
7989 *** as such.  This will affect the creation of libtool libraries that
7990 *** depend on shared libraries, but programs linked with such libtool
7991 *** libraries will work regardless of this problem.  Nevertheless, you
7992 *** may want to report the problem to your system manager and/or to
7993 *** bug-libtool@gnu.org
7994
7995 _LT_EOF
7996           fi ;;
7997         esac
7998       fi
7999       break
8000     fi
8001   done
8002   IFS="$lt_save_ifs"
8003   MAGIC_CMD="$lt_save_MAGIC_CMD"
8004   ;;
8005 esac
8006 fi
8007
8008 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8009 if test -n "$MAGIC_CMD"; then
8010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8011 $as_echo "$MAGIC_CMD" >&6; }
8012 else
8013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8014 $as_echo "no" >&6; }
8015 fi
8016
8017
8018   else
8019     MAGIC_CMD=:
8020   fi
8021 fi
8022
8023   fi
8024   ;;
8025 esac
8026
8027 # Use C for the default configuration in the libtool script
8028
8029 lt_save_CC="$CC"
8030 ac_ext=c
8031 ac_cpp='$CPP $CPPFLAGS'
8032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8035
8036
8037 # Source file extension for C test sources.
8038 ac_ext=c
8039
8040 # Object file extension for compiled C test sources.
8041 objext=o
8042 objext=$objext
8043
8044 # Code to be used in simple compile tests
8045 lt_simple_compile_test_code="int some_variable = 0;"
8046
8047 # Code to be used in simple link tests
8048 lt_simple_link_test_code='int main(){return(0);}'
8049
8050
8051
8052
8053
8054
8055
8056 # If no C compiler was specified, use CC.
8057 LTCC=${LTCC-"$CC"}
8058
8059 # If no C compiler flags were specified, use CFLAGS.
8060 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8061
8062 # Allow CC to be a program name with arguments.
8063 compiler=$CC
8064
8065 # Save the default compiler, since it gets overwritten when the other
8066 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8067 compiler_DEFAULT=$CC
8068
8069 # save warnings/boilerplate of simple test code
8070 ac_outfile=conftest.$ac_objext
8071 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8072 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8073 _lt_compiler_boilerplate=`cat conftest.err`
8074 $RM conftest*
8075
8076 ac_outfile=conftest.$ac_objext
8077 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8078 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8079 _lt_linker_boilerplate=`cat conftest.err`
8080 $RM -r conftest*
8081
8082
8083 ## CAVEAT EMPTOR:
8084 ## There is no encapsulation within the following macros, do not change
8085 ## the running order or otherwise move them around unless you know exactly
8086 ## what you are doing...
8087 if test -n "$compiler"; then
8088
8089 lt_prog_compiler_no_builtin_flag=
8090
8091 if test "$GCC" = yes; then
8092   case $cc_basename in
8093   nvcc*)
8094     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8095   *)
8096     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8097   esac
8098
8099   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8100 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8101 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8102   $as_echo_n "(cached) " >&6
8103 else
8104   lt_cv_prog_compiler_rtti_exceptions=no
8105    ac_outfile=conftest.$ac_objext
8106    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8107    lt_compiler_flag="-fno-rtti -fno-exceptions"
8108    # Insert the option either (1) after the last *FLAGS variable, or
8109    # (2) before a word containing "conftest.", or (3) at the end.
8110    # Note that $ac_compile itself does not contain backslashes and begins
8111    # with a dollar sign (not a hyphen), so the echo should work correctly.
8112    # The option is referenced via a variable to avoid confusing sed.
8113    lt_compile=`echo "$ac_compile" | $SED \
8114    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8115    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8116    -e 's:$: $lt_compiler_flag:'`
8117    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8118    (eval "$lt_compile" 2>conftest.err)
8119    ac_status=$?
8120    cat conftest.err >&5
8121    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122    if (exit $ac_status) && test -s "$ac_outfile"; then
8123      # The compiler can only warn and ignore the option if not recognized
8124      # So say no if there are warnings other than the usual output.
8125      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8126      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8127      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8128        lt_cv_prog_compiler_rtti_exceptions=yes
8129      fi
8130    fi
8131    $RM conftest*
8132
8133 fi
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8135 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8136
8137 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8138     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8139 else
8140     :
8141 fi
8142
8143 fi
8144
8145
8146
8147
8148
8149
8150   lt_prog_compiler_wl=
8151 lt_prog_compiler_pic=
8152 lt_prog_compiler_static=
8153
8154
8155   if test "$GCC" = yes; then
8156     lt_prog_compiler_wl='-Wl,'
8157     lt_prog_compiler_static='-static'
8158
8159     case $host_os in
8160       aix*)
8161       # All AIX code is PIC.
8162       if test "$host_cpu" = ia64; then
8163         # AIX 5 now supports IA64 processor
8164         lt_prog_compiler_static='-Bstatic'
8165       fi
8166       ;;
8167
8168     amigaos*)
8169       case $host_cpu in
8170       powerpc)
8171             # see comment about AmigaOS4 .so support
8172             lt_prog_compiler_pic='-fPIC'
8173         ;;
8174       m68k)
8175             # FIXME: we need at least 68020 code to build shared libraries, but
8176             # adding the `-m68020' flag to GCC prevents building anything better,
8177             # like `-m68040'.
8178             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8179         ;;
8180       esac
8181       ;;
8182
8183     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8184       # PIC is the default for these OSes.
8185       ;;
8186
8187     mingw* | cygwin* | pw32* | os2* | cegcc*)
8188       # This hack is so that the source file can tell whether it is being
8189       # built for inclusion in a dll (and should export symbols for example).
8190       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8191       # (--disable-auto-import) libraries
8192       lt_prog_compiler_pic='-DDLL_EXPORT'
8193       ;;
8194
8195     darwin* | rhapsody*)
8196       # PIC is the default on this platform
8197       # Common symbols not allowed in MH_DYLIB files
8198       lt_prog_compiler_pic='-fno-common'
8199       ;;
8200
8201     haiku*)
8202       # PIC is the default for Haiku.
8203       # The "-static" flag exists, but is broken.
8204       lt_prog_compiler_static=
8205       ;;
8206
8207     hpux*)
8208       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8209       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8210       # sets the default TLS model and affects inlining.
8211       case $host_cpu in
8212       hppa*64*)
8213         # +Z the default
8214         ;;
8215       *)
8216         lt_prog_compiler_pic='-fPIC'
8217         ;;
8218       esac
8219       ;;
8220
8221     interix[3-9]*)
8222       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8223       # Instead, we relocate shared libraries at runtime.
8224       ;;
8225
8226     msdosdjgpp*)
8227       # Just because we use GCC doesn't mean we suddenly get shared libraries
8228       # on systems that don't support them.
8229       lt_prog_compiler_can_build_shared=no
8230       enable_shared=no
8231       ;;
8232
8233     *nto* | *qnx*)
8234       # QNX uses GNU C++, but need to define -shared option too, otherwise
8235       # it will coredump.
8236       lt_prog_compiler_pic='-fPIC -shared'
8237       ;;
8238
8239     sysv4*MP*)
8240       if test -d /usr/nec; then
8241         lt_prog_compiler_pic=-Kconform_pic
8242       fi
8243       ;;
8244
8245     *)
8246       lt_prog_compiler_pic='-fPIC'
8247       ;;
8248     esac
8249
8250     case $cc_basename in
8251     nvcc*) # Cuda Compiler Driver 2.2
8252       lt_prog_compiler_wl='-Xlinker '
8253       if test -n "$lt_prog_compiler_pic"; then
8254         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8255       fi
8256       ;;
8257     esac
8258   else
8259     # PORTME Check for flag to pass linker flags through the system compiler.
8260     case $host_os in
8261     aix*)
8262       lt_prog_compiler_wl='-Wl,'
8263       if test "$host_cpu" = ia64; then
8264         # AIX 5 now supports IA64 processor
8265         lt_prog_compiler_static='-Bstatic'
8266       else
8267         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8268       fi
8269       ;;
8270
8271     mingw* | cygwin* | pw32* | os2* | cegcc*)
8272       # This hack is so that the source file can tell whether it is being
8273       # built for inclusion in a dll (and should export symbols for example).
8274       lt_prog_compiler_pic='-DDLL_EXPORT'
8275       ;;
8276
8277     hpux9* | hpux10* | hpux11*)
8278       lt_prog_compiler_wl='-Wl,'
8279       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8280       # not for PA HP-UX.
8281       case $host_cpu in
8282       hppa*64*|ia64*)
8283         # +Z the default
8284         ;;
8285       *)
8286         lt_prog_compiler_pic='+Z'
8287         ;;
8288       esac
8289       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8290       lt_prog_compiler_static='${wl}-a ${wl}archive'
8291       ;;
8292
8293     irix5* | irix6* | nonstopux*)
8294       lt_prog_compiler_wl='-Wl,'
8295       # PIC (with -KPIC) is the default.
8296       lt_prog_compiler_static='-non_shared'
8297       ;;
8298
8299     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8300       case $cc_basename in
8301       # old Intel for x86_64 which still supported -KPIC.
8302       ecc*)
8303         lt_prog_compiler_wl='-Wl,'
8304         lt_prog_compiler_pic='-KPIC'
8305         lt_prog_compiler_static='-static'
8306         ;;
8307       # icc used to be incompatible with GCC.
8308       # ICC 10 doesn't accept -KPIC any more.
8309       icc* | ifort*)
8310         lt_prog_compiler_wl='-Wl,'
8311         lt_prog_compiler_pic='-fPIC'
8312         lt_prog_compiler_static='-static'
8313         ;;
8314       # Lahey Fortran 8.1.
8315       lf95*)
8316         lt_prog_compiler_wl='-Wl,'
8317         lt_prog_compiler_pic='--shared'
8318         lt_prog_compiler_static='--static'
8319         ;;
8320       nagfor*)
8321         # NAG Fortran compiler
8322         lt_prog_compiler_wl='-Wl,-Wl,,'
8323         lt_prog_compiler_pic='-PIC'
8324         lt_prog_compiler_static='-Bstatic'
8325         ;;
8326       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8327         # Portland Group compilers (*not* the Pentium gcc compiler,
8328         # which looks to be a dead project)
8329         lt_prog_compiler_wl='-Wl,'
8330         lt_prog_compiler_pic='-fpic'
8331         lt_prog_compiler_static='-Bstatic'
8332         ;;
8333       ccc*)
8334         lt_prog_compiler_wl='-Wl,'
8335         # All Alpha code is PIC.
8336         lt_prog_compiler_static='-non_shared'
8337         ;;
8338       xl* | bgxl* | bgf* | mpixl*)
8339         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8340         lt_prog_compiler_wl='-Wl,'
8341         lt_prog_compiler_pic='-qpic'
8342         lt_prog_compiler_static='-qstaticlink'
8343         ;;
8344       *)
8345         case `$CC -V 2>&1 | sed 5q` in
8346         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8347           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8348           lt_prog_compiler_pic='-KPIC'
8349           lt_prog_compiler_static='-Bstatic'
8350           lt_prog_compiler_wl=''
8351           ;;
8352         *Sun\ F* | *Sun*Fortran*)
8353           lt_prog_compiler_pic='-KPIC'
8354           lt_prog_compiler_static='-Bstatic'
8355           lt_prog_compiler_wl='-Qoption ld '
8356           ;;
8357         *Sun\ C*)
8358           # Sun C 5.9
8359           lt_prog_compiler_pic='-KPIC'
8360           lt_prog_compiler_static='-Bstatic'
8361           lt_prog_compiler_wl='-Wl,'
8362           ;;
8363         *Intel*\ [CF]*Compiler*)
8364           lt_prog_compiler_wl='-Wl,'
8365           lt_prog_compiler_pic='-fPIC'
8366           lt_prog_compiler_static='-static'
8367           ;;
8368         *Portland\ Group*)
8369           lt_prog_compiler_wl='-Wl,'
8370           lt_prog_compiler_pic='-fpic'
8371           lt_prog_compiler_static='-Bstatic'
8372           ;;
8373         esac
8374         ;;
8375       esac
8376       ;;
8377
8378     newsos6)
8379       lt_prog_compiler_pic='-KPIC'
8380       lt_prog_compiler_static='-Bstatic'
8381       ;;
8382
8383     *nto* | *qnx*)
8384       # QNX uses GNU C++, but need to define -shared option too, otherwise
8385       # it will coredump.
8386       lt_prog_compiler_pic='-fPIC -shared'
8387       ;;
8388
8389     osf3* | osf4* | osf5*)
8390       lt_prog_compiler_wl='-Wl,'
8391       # All OSF/1 code is PIC.
8392       lt_prog_compiler_static='-non_shared'
8393       ;;
8394
8395     rdos*)
8396       lt_prog_compiler_static='-non_shared'
8397       ;;
8398
8399     solaris*)
8400       lt_prog_compiler_pic='-KPIC'
8401       lt_prog_compiler_static='-Bstatic'
8402       case $cc_basename in
8403       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8404         lt_prog_compiler_wl='-Qoption ld ';;
8405       *)
8406         lt_prog_compiler_wl='-Wl,';;
8407       esac
8408       ;;
8409
8410     sunos4*)
8411       lt_prog_compiler_wl='-Qoption ld '
8412       lt_prog_compiler_pic='-PIC'
8413       lt_prog_compiler_static='-Bstatic'
8414       ;;
8415
8416     sysv4 | sysv4.2uw2* | sysv4.3*)
8417       lt_prog_compiler_wl='-Wl,'
8418       lt_prog_compiler_pic='-KPIC'
8419       lt_prog_compiler_static='-Bstatic'
8420       ;;
8421
8422     sysv4*MP*)
8423       if test -d /usr/nec ;then
8424         lt_prog_compiler_pic='-Kconform_pic'
8425         lt_prog_compiler_static='-Bstatic'
8426       fi
8427       ;;
8428
8429     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8430       lt_prog_compiler_wl='-Wl,'
8431       lt_prog_compiler_pic='-KPIC'
8432       lt_prog_compiler_static='-Bstatic'
8433       ;;
8434
8435     unicos*)
8436       lt_prog_compiler_wl='-Wl,'
8437       lt_prog_compiler_can_build_shared=no
8438       ;;
8439
8440     uts4*)
8441       lt_prog_compiler_pic='-pic'
8442       lt_prog_compiler_static='-Bstatic'
8443       ;;
8444
8445     *)
8446       lt_prog_compiler_can_build_shared=no
8447       ;;
8448     esac
8449   fi
8450
8451 case $host_os in
8452   # For platforms which do not support PIC, -DPIC is meaningless:
8453   *djgpp*)
8454     lt_prog_compiler_pic=
8455     ;;
8456   *)
8457     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8458     ;;
8459 esac
8460
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8462 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8463 if ${lt_cv_prog_compiler_pic+:} false; then :
8464   $as_echo_n "(cached) " >&6
8465 else
8466   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8467 fi
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8469 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8470 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8471
8472 #
8473 # Check to make sure the PIC flag actually works.
8474 #
8475 if test -n "$lt_prog_compiler_pic"; then
8476   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8477 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8478 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8479   $as_echo_n "(cached) " >&6
8480 else
8481   lt_cv_prog_compiler_pic_works=no
8482    ac_outfile=conftest.$ac_objext
8483    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8484    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8485    # Insert the option either (1) after the last *FLAGS variable, or
8486    # (2) before a word containing "conftest.", or (3) at the end.
8487    # Note that $ac_compile itself does not contain backslashes and begins
8488    # with a dollar sign (not a hyphen), so the echo should work correctly.
8489    # The option is referenced via a variable to avoid confusing sed.
8490    lt_compile=`echo "$ac_compile" | $SED \
8491    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8492    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8493    -e 's:$: $lt_compiler_flag:'`
8494    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8495    (eval "$lt_compile" 2>conftest.err)
8496    ac_status=$?
8497    cat conftest.err >&5
8498    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499    if (exit $ac_status) && test -s "$ac_outfile"; then
8500      # The compiler can only warn and ignore the option if not recognized
8501      # So say no if there are warnings other than the usual output.
8502      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8503      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8504      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8505        lt_cv_prog_compiler_pic_works=yes
8506      fi
8507    fi
8508    $RM conftest*
8509
8510 fi
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8512 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8513
8514 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8515     case $lt_prog_compiler_pic in
8516      "" | " "*) ;;
8517      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8518      esac
8519 else
8520     lt_prog_compiler_pic=
8521      lt_prog_compiler_can_build_shared=no
8522 fi
8523
8524 fi
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536 #
8537 # Check to make sure the static flag actually works.
8538 #
8539 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8541 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8542 if ${lt_cv_prog_compiler_static_works+:} false; then :
8543   $as_echo_n "(cached) " >&6
8544 else
8545   lt_cv_prog_compiler_static_works=no
8546    save_LDFLAGS="$LDFLAGS"
8547    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8548    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8549    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8550      # The linker can only warn and ignore the option if not recognized
8551      # So say no if there are warnings
8552      if test -s conftest.err; then
8553        # Append any errors to the config.log.
8554        cat conftest.err 1>&5
8555        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8556        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8557        if diff conftest.exp conftest.er2 >/dev/null; then
8558          lt_cv_prog_compiler_static_works=yes
8559        fi
8560      else
8561        lt_cv_prog_compiler_static_works=yes
8562      fi
8563    fi
8564    $RM -r conftest*
8565    LDFLAGS="$save_LDFLAGS"
8566
8567 fi
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8569 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8570
8571 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8572     :
8573 else
8574     lt_prog_compiler_static=
8575 fi
8576
8577
8578
8579
8580
8581
8582
8583   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8584 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8585 if ${lt_cv_prog_compiler_c_o+:} false; then :
8586   $as_echo_n "(cached) " >&6
8587 else
8588   lt_cv_prog_compiler_c_o=no
8589    $RM -r conftest 2>/dev/null
8590    mkdir conftest
8591    cd conftest
8592    mkdir out
8593    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8594
8595    lt_compiler_flag="-o out/conftest2.$ac_objext"
8596    # Insert the option either (1) after the last *FLAGS variable, or
8597    # (2) before a word containing "conftest.", or (3) at the end.
8598    # Note that $ac_compile itself does not contain backslashes and begins
8599    # with a dollar sign (not a hyphen), so the echo should work correctly.
8600    lt_compile=`echo "$ac_compile" | $SED \
8601    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8602    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8603    -e 's:$: $lt_compiler_flag:'`
8604    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8605    (eval "$lt_compile" 2>out/conftest.err)
8606    ac_status=$?
8607    cat out/conftest.err >&5
8608    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8610    then
8611      # The compiler can only warn and ignore the option if not recognized
8612      # So say no if there are warnings
8613      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8614      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8615      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8616        lt_cv_prog_compiler_c_o=yes
8617      fi
8618    fi
8619    chmod u+w . 2>&5
8620    $RM conftest*
8621    # SGI C++ compiler will create directory out/ii_files/ for
8622    # template instantiation
8623    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8624    $RM out/* && rmdir out
8625    cd ..
8626    $RM -r conftest
8627    $RM conftest*
8628
8629 fi
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8631 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8632
8633
8634
8635
8636
8637
8638   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8639 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8640 if ${lt_cv_prog_compiler_c_o+:} false; then :
8641   $as_echo_n "(cached) " >&6
8642 else
8643   lt_cv_prog_compiler_c_o=no
8644    $RM -r conftest 2>/dev/null
8645    mkdir conftest
8646    cd conftest
8647    mkdir out
8648    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8649
8650    lt_compiler_flag="-o out/conftest2.$ac_objext"
8651    # Insert the option either (1) after the last *FLAGS variable, or
8652    # (2) before a word containing "conftest.", or (3) at the end.
8653    # Note that $ac_compile itself does not contain backslashes and begins
8654    # with a dollar sign (not a hyphen), so the echo should work correctly.
8655    lt_compile=`echo "$ac_compile" | $SED \
8656    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8657    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8658    -e 's:$: $lt_compiler_flag:'`
8659    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8660    (eval "$lt_compile" 2>out/conftest.err)
8661    ac_status=$?
8662    cat out/conftest.err >&5
8663    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8665    then
8666      # The compiler can only warn and ignore the option if not recognized
8667      # So say no if there are warnings
8668      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8669      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8670      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8671        lt_cv_prog_compiler_c_o=yes
8672      fi
8673    fi
8674    chmod u+w . 2>&5
8675    $RM conftest*
8676    # SGI C++ compiler will create directory out/ii_files/ for
8677    # template instantiation
8678    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8679    $RM out/* && rmdir out
8680    cd ..
8681    $RM -r conftest
8682    $RM conftest*
8683
8684 fi
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8686 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8687
8688
8689
8690
8691 hard_links="nottested"
8692 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8693   # do not overwrite the value of need_locks provided by the user
8694   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8695 $as_echo_n "checking if we can lock with hard links... " >&6; }
8696   hard_links=yes
8697   $RM conftest*
8698   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8699   touch conftest.a
8700   ln conftest.a conftest.b 2>&5 || hard_links=no
8701   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8703 $as_echo "$hard_links" >&6; }
8704   if test "$hard_links" = no; then
8705     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8706 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8707     need_locks=warn
8708   fi
8709 else
8710   need_locks=no
8711 fi
8712
8713
8714
8715
8716
8717
8718   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8719 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8720
8721   runpath_var=
8722   allow_undefined_flag=
8723   always_export_symbols=no
8724   archive_cmds=
8725   archive_expsym_cmds=
8726   compiler_needs_object=no
8727   enable_shared_with_static_runtimes=no
8728   export_dynamic_flag_spec=
8729   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8730   hardcode_automatic=no
8731   hardcode_direct=no
8732   hardcode_direct_absolute=no
8733   hardcode_libdir_flag_spec=
8734   hardcode_libdir_separator=
8735   hardcode_minus_L=no
8736   hardcode_shlibpath_var=unsupported
8737   inherit_rpath=no
8738   link_all_deplibs=unknown
8739   module_cmds=
8740   module_expsym_cmds=
8741   old_archive_from_new_cmds=
8742   old_archive_from_expsyms_cmds=
8743   thread_safe_flag_spec=
8744   whole_archive_flag_spec=
8745   # include_expsyms should be a list of space-separated symbols to be *always*
8746   # included in the symbol list
8747   include_expsyms=
8748   # exclude_expsyms can be an extended regexp of symbols to exclude
8749   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8750   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8751   # as well as any symbol that contains `d'.
8752   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8753   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8754   # platforms (ab)use it in PIC code, but their linkers get confused if
8755   # the symbol is explicitly referenced.  Since portable code cannot
8756   # rely on this symbol name, it's probably fine to never include it in
8757   # preloaded symbol tables.
8758   # Exclude shared library initialization/finalization symbols.
8759   extract_expsyms_cmds=
8760
8761   case $host_os in
8762   cygwin* | mingw* | pw32* | cegcc*)
8763     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8764     # When not using gcc, we currently assume that we are using
8765     # Microsoft Visual C++.
8766     if test "$GCC" != yes; then
8767       with_gnu_ld=no
8768     fi
8769     ;;
8770   interix*)
8771     # we just hope/assume this is gcc and not c89 (= MSVC++)
8772     with_gnu_ld=yes
8773     ;;
8774   openbsd*)
8775     with_gnu_ld=no
8776     ;;
8777   esac
8778
8779   ld_shlibs=yes
8780
8781   # On some targets, GNU ld is compatible enough with the native linker
8782   # that we're better off using the native interface for both.
8783   lt_use_gnu_ld_interface=no
8784   if test "$with_gnu_ld" = yes; then
8785     case $host_os in
8786       aix*)
8787         # The AIX port of GNU ld has always aspired to compatibility
8788         # with the native linker.  However, as the warning in the GNU ld
8789         # block says, versions before 2.19.5* couldn't really create working
8790         # shared libraries, regardless of the interface used.
8791         case `$LD -v 2>&1` in
8792           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8793           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8794           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8795           *)
8796             lt_use_gnu_ld_interface=yes
8797             ;;
8798         esac
8799         ;;
8800       *)
8801         lt_use_gnu_ld_interface=yes
8802         ;;
8803     esac
8804   fi
8805
8806   if test "$lt_use_gnu_ld_interface" = yes; then
8807     # If archive_cmds runs LD, not CC, wlarc should be empty
8808     wlarc='${wl}'
8809
8810     # Set some defaults for GNU ld with shared library support. These
8811     # are reset later if shared libraries are not supported. Putting them
8812     # here allows them to be overridden if necessary.
8813     runpath_var=LD_RUN_PATH
8814     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8815     export_dynamic_flag_spec='${wl}--export-dynamic'
8816     # ancient GNU ld didn't support --whole-archive et. al.
8817     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8818       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8819     else
8820       whole_archive_flag_spec=
8821     fi
8822     supports_anon_versioning=no
8823     case `$LD -v 2>&1` in
8824       *GNU\ gold*) supports_anon_versioning=yes ;;
8825       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8826       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8827       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8828       *\ 2.11.*) ;; # other 2.11 versions
8829       *) supports_anon_versioning=yes ;;
8830     esac
8831
8832     # See if GNU ld supports shared libraries.
8833     case $host_os in
8834     aix[3-9]*)
8835       # On AIX/PPC, the GNU linker is very broken
8836       if test "$host_cpu" != ia64; then
8837         ld_shlibs=no
8838         cat <<_LT_EOF 1>&2
8839
8840 *** Warning: the GNU linker, at least up to release 2.19, is reported
8841 *** to be unable to reliably create shared libraries on AIX.
8842 *** Therefore, libtool is disabling shared libraries support.  If you
8843 *** really care for shared libraries, you may want to install binutils
8844 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8845 *** You will then need to restart the configuration process.
8846
8847 _LT_EOF
8848       fi
8849       ;;
8850
8851     amigaos*)
8852       case $host_cpu in
8853       powerpc)
8854             # see comment about AmigaOS4 .so support
8855             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8856             archive_expsym_cmds=''
8857         ;;
8858       m68k)
8859             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)'
8860             hardcode_libdir_flag_spec='-L$libdir'
8861             hardcode_minus_L=yes
8862         ;;
8863       esac
8864       ;;
8865
8866     beos*)
8867       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8868         allow_undefined_flag=unsupported
8869         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8870         # support --undefined.  This deserves some investigation.  FIXME
8871         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8872       else
8873         ld_shlibs=no
8874       fi
8875       ;;
8876
8877     cygwin* | mingw* | pw32* | cegcc*)
8878       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8879       # as there is no search path for DLLs.
8880       hardcode_libdir_flag_spec='-L$libdir'
8881       export_dynamic_flag_spec='${wl}--export-all-symbols'
8882       allow_undefined_flag=unsupported
8883       always_export_symbols=no
8884       enable_shared_with_static_runtimes=yes
8885       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'
8886       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8887
8888       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8889         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8890         # If the export-symbols file already is a .def file (1st line
8891         # is EXPORTS), use it as is; otherwise, prepend...
8892         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8893           cp $export_symbols $output_objdir/$soname.def;
8894         else
8895           echo EXPORTS > $output_objdir/$soname.def;
8896           cat $export_symbols >> $output_objdir/$soname.def;
8897         fi~
8898         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8899       else
8900         ld_shlibs=no
8901       fi
8902       ;;
8903
8904     haiku*)
8905       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8906       link_all_deplibs=yes
8907       ;;
8908
8909     interix[3-9]*)
8910       hardcode_direct=no
8911       hardcode_shlibpath_var=no
8912       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8913       export_dynamic_flag_spec='${wl}-E'
8914       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8915       # Instead, shared libraries are loaded at an image base (0x10000000 by
8916       # default) and relocated if they conflict, which is a slow very memory
8917       # consuming and fragmenting process.  To avoid this, we pick a random,
8918       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8919       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8920       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8921       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'
8922       ;;
8923
8924     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8925       tmp_diet=no
8926       if test "$host_os" = linux-dietlibc; then
8927         case $cc_basename in
8928           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8929         esac
8930       fi
8931       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8932          && test "$tmp_diet" = no
8933       then
8934         tmp_addflag=' $pic_flag'
8935         tmp_sharedflag='-shared'
8936         case $cc_basename,$host_cpu in
8937         pgcc*)                          # Portland Group C compiler
8938           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'
8939           tmp_addflag=' $pic_flag'
8940           ;;
8941         pgf77* | pgf90* | pgf95* | pgfortran*)
8942                                         # Portland Group f77 and f90 compilers
8943           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'
8944           tmp_addflag=' $pic_flag -Mnomain' ;;
8945         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8946           tmp_addflag=' -i_dynamic' ;;
8947         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8948           tmp_addflag=' -i_dynamic -nofor_main' ;;
8949         ifc* | ifort*)                  # Intel Fortran compiler
8950           tmp_addflag=' -nofor_main' ;;
8951         lf95*)                          # Lahey Fortran 8.1
8952           whole_archive_flag_spec=
8953           tmp_sharedflag='--shared' ;;
8954         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8955           tmp_sharedflag='-qmkshrobj'
8956           tmp_addflag= ;;
8957         nvcc*)  # Cuda Compiler Driver 2.2
8958           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'
8959           compiler_needs_object=yes
8960           ;;
8961         esac
8962         case `$CC -V 2>&1 | sed 5q` in
8963         *Sun\ C*)                       # Sun C 5.9
8964           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'
8965           compiler_needs_object=yes
8966           tmp_sharedflag='-G' ;;
8967         *Sun\ F*)                       # Sun Fortran 8.3
8968           tmp_sharedflag='-G' ;;
8969         esac
8970         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8971
8972         if test "x$supports_anon_versioning" = xyes; then
8973           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8974             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8975             echo "local: *; };" >> $output_objdir/$libname.ver~
8976             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8977         fi
8978
8979         case $cc_basename in
8980         xlf* | bgf* | bgxlf* | mpixlf*)
8981           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8982           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8983           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8984           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8985           if test "x$supports_anon_versioning" = xyes; then
8986             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8987               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8988               echo "local: *; };" >> $output_objdir/$libname.ver~
8989               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8990           fi
8991           ;;
8992         esac
8993       else
8994         ld_shlibs=no
8995       fi
8996       ;;
8997
8998     netbsd*)
8999       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9000         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9001         wlarc=
9002       else
9003         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9004         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9005       fi
9006       ;;
9007
9008     solaris*)
9009       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9010         ld_shlibs=no
9011         cat <<_LT_EOF 1>&2
9012
9013 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9014 *** create shared libraries on Solaris systems.  Therefore, libtool
9015 *** is disabling shared libraries support.  We urge you to upgrade GNU
9016 *** binutils to release 2.9.1 or newer.  Another option is to modify
9017 *** your PATH or compiler configuration so that the native linker is
9018 *** used, and then restart.
9019
9020 _LT_EOF
9021       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9022         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9023         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9024       else
9025         ld_shlibs=no
9026       fi
9027       ;;
9028
9029     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9030       case `$LD -v 2>&1` in
9031         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9032         ld_shlibs=no
9033         cat <<_LT_EOF 1>&2
9034
9035 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9036 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9037 *** is disabling shared libraries support.  We urge you to upgrade GNU
9038 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9039 *** your PATH or compiler configuration so that the native linker is
9040 *** used, and then restart.
9041
9042 _LT_EOF
9043         ;;
9044         *)
9045           # For security reasons, it is highly recommended that you always
9046           # use absolute paths for naming shared libraries, and exclude the
9047           # DT_RUNPATH tag from executables and libraries.  But doing so
9048           # requires that you compile everything twice, which is a pain.
9049           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9050             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9051             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9052             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9053           else
9054             ld_shlibs=no
9055           fi
9056         ;;
9057       esac
9058       ;;
9059
9060     sunos4*)
9061       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9062       wlarc=
9063       hardcode_direct=yes
9064       hardcode_shlibpath_var=no
9065       ;;
9066
9067     *)
9068       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9069         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9070         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9071       else
9072         ld_shlibs=no
9073       fi
9074       ;;
9075     esac
9076
9077     if test "$ld_shlibs" = no; then
9078       runpath_var=
9079       hardcode_libdir_flag_spec=
9080       export_dynamic_flag_spec=
9081       whole_archive_flag_spec=
9082     fi
9083   else
9084     # PORTME fill in a description of your system's linker (not GNU ld)
9085     case $host_os in
9086     aix3*)
9087       allow_undefined_flag=unsupported
9088       always_export_symbols=yes
9089       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'
9090       # Note: this linker hardcodes the directories in LIBPATH if there
9091       # are no directories specified by -L.
9092       hardcode_minus_L=yes
9093       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9094         # Neither direct hardcoding nor static linking is supported with a
9095         # broken collect2.
9096         hardcode_direct=unsupported
9097       fi
9098       ;;
9099
9100     aix[4-9]*)
9101       if test "$host_cpu" = ia64; then
9102         # On IA64, the linker does run time linking by default, so we don't
9103         # have to do anything special.
9104         aix_use_runtimelinking=no
9105         exp_sym_flag='-Bexport'
9106         no_entry_flag=""
9107       else
9108         # If we're using GNU nm, then we don't want the "-C" option.
9109         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9110         # Also, AIX nm treats weak defined symbols like other global
9111         # defined symbols, whereas GNU nm marks them as "W".
9112         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9113           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9114         else
9115           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9116         fi
9117         aix_use_runtimelinking=no
9118
9119         # Test if we are trying to use run time linking or normal
9120         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9121         # need to do runtime linking.
9122         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9123           for ld_flag in $LDFLAGS; do
9124           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9125             aix_use_runtimelinking=yes
9126             break
9127           fi
9128           done
9129           ;;
9130         esac
9131
9132         exp_sym_flag='-bexport'
9133         no_entry_flag='-bnoentry'
9134       fi
9135
9136       # When large executables or shared objects are built, AIX ld can
9137       # have problems creating the table of contents.  If linking a library
9138       # or program results in "error TOC overflow" add -mminimal-toc to
9139       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9140       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9141
9142       archive_cmds=''
9143       hardcode_direct=yes
9144       hardcode_direct_absolute=yes
9145       hardcode_libdir_separator=':'
9146       link_all_deplibs=yes
9147       file_list_spec='${wl}-f,'
9148
9149       if test "$GCC" = yes; then
9150         case $host_os in aix4.[012]|aix4.[012].*)
9151         # We only want to do this on AIX 4.2 and lower, the check
9152         # below for broken collect2 doesn't work under 4.3+
9153           collect2name=`${CC} -print-prog-name=collect2`
9154           if test -f "$collect2name" &&
9155            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9156           then
9157           # We have reworked collect2
9158           :
9159           else
9160           # We have old collect2
9161           hardcode_direct=unsupported
9162           # It fails to find uninstalled libraries when the uninstalled
9163           # path is not listed in the libpath.  Setting hardcode_minus_L
9164           # to unsupported forces relinking
9165           hardcode_minus_L=yes
9166           hardcode_libdir_flag_spec='-L$libdir'
9167           hardcode_libdir_separator=
9168           fi
9169           ;;
9170         esac
9171         shared_flag='-shared'
9172         if test "$aix_use_runtimelinking" = yes; then
9173           shared_flag="$shared_flag "'${wl}-G'
9174         fi
9175       else
9176         # not using gcc
9177         if test "$host_cpu" = ia64; then
9178         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9179         # chokes on -Wl,-G. The following line is correct:
9180           shared_flag='-G'
9181         else
9182           if test "$aix_use_runtimelinking" = yes; then
9183             shared_flag='${wl}-G'
9184           else
9185             shared_flag='${wl}-bM:SRE'
9186           fi
9187         fi
9188       fi
9189
9190       export_dynamic_flag_spec='${wl}-bexpall'
9191       # It seems that -bexpall does not export symbols beginning with
9192       # underscore (_), so it is better to generate a list of symbols to export.
9193       always_export_symbols=yes
9194       if test "$aix_use_runtimelinking" = yes; then
9195         # Warning - without using the other runtime loading flags (-brtl),
9196         # -berok will link without error, but may produce a broken library.
9197         allow_undefined_flag='-berok'
9198         # Determine the default libpath from the value encoded in an
9199         # empty executable.
9200         if test "${lt_cv_aix_libpath+set}" = set; then
9201   aix_libpath=$lt_cv_aix_libpath
9202 else
9203   if ${lt_cv_aix_libpath_+:} false; then :
9204   $as_echo_n "(cached) " >&6
9205 else
9206   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9207 /* end confdefs.h.  */
9208
9209 int
9210 main ()
9211 {
9212
9213   ;
9214   return 0;
9215 }
9216 _ACEOF
9217 if ac_fn_c_try_link "$LINENO"; then :
9218
9219   lt_aix_libpath_sed='
9220       /Import File Strings/,/^$/ {
9221           /^0/ {
9222               s/^0  *\([^ ]*\) *$/\1/
9223               p
9224           }
9225       }'
9226   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9227   # Check for a 64-bit object if we didn't find anything.
9228   if test -z "$lt_cv_aix_libpath_"; then
9229     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9230   fi
9231 fi
9232 rm -f core conftest.err conftest.$ac_objext \
9233     conftest$ac_exeext conftest.$ac_ext
9234   if test -z "$lt_cv_aix_libpath_"; then
9235     lt_cv_aix_libpath_="/usr/lib:/lib"
9236   fi
9237
9238 fi
9239
9240   aix_libpath=$lt_cv_aix_libpath_
9241 fi
9242
9243         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9244         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9245       else
9246         if test "$host_cpu" = ia64; then
9247           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9248           allow_undefined_flag="-z nodefs"
9249           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"
9250         else
9251          # Determine the default libpath from the value encoded in an
9252          # empty executable.
9253          if test "${lt_cv_aix_libpath+set}" = set; then
9254   aix_libpath=$lt_cv_aix_libpath
9255 else
9256   if ${lt_cv_aix_libpath_+:} false; then :
9257   $as_echo_n "(cached) " >&6
9258 else
9259   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9260 /* end confdefs.h.  */
9261
9262 int
9263 main ()
9264 {
9265
9266   ;
9267   return 0;
9268 }
9269 _ACEOF
9270 if ac_fn_c_try_link "$LINENO"; then :
9271
9272   lt_aix_libpath_sed='
9273       /Import File Strings/,/^$/ {
9274           /^0/ {
9275               s/^0  *\([^ ]*\) *$/\1/
9276               p
9277           }
9278       }'
9279   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9280   # Check for a 64-bit object if we didn't find anything.
9281   if test -z "$lt_cv_aix_libpath_"; then
9282     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9283   fi
9284 fi
9285 rm -f core conftest.err conftest.$ac_objext \
9286     conftest$ac_exeext conftest.$ac_ext
9287   if test -z "$lt_cv_aix_libpath_"; then
9288     lt_cv_aix_libpath_="/usr/lib:/lib"
9289   fi
9290
9291 fi
9292
9293   aix_libpath=$lt_cv_aix_libpath_
9294 fi
9295
9296          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9297           # Warning - without using the other run time loading flags,
9298           # -berok will link without error, but may produce a broken library.
9299           no_undefined_flag=' ${wl}-bernotok'
9300           allow_undefined_flag=' ${wl}-berok'
9301           if test "$with_gnu_ld" = yes; then
9302             # We only use this code for GNU lds that support --whole-archive.
9303             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9304           else
9305             # Exported symbols can be pulled into shared objects from archives
9306             whole_archive_flag_spec='$convenience'
9307           fi
9308           archive_cmds_need_lc=yes
9309           # This is similar to how AIX traditionally builds its shared libraries.
9310           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9311         fi
9312       fi
9313       ;;
9314
9315     amigaos*)
9316       case $host_cpu in
9317       powerpc)
9318             # see comment about AmigaOS4 .so support
9319             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9320             archive_expsym_cmds=''
9321         ;;
9322       m68k)
9323             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)'
9324             hardcode_libdir_flag_spec='-L$libdir'
9325             hardcode_minus_L=yes
9326         ;;
9327       esac
9328       ;;
9329
9330     bsdi[45]*)
9331       export_dynamic_flag_spec=-rdynamic
9332       ;;
9333
9334     cygwin* | mingw* | pw32* | cegcc*)
9335       # When not using gcc, we currently assume that we are using
9336       # Microsoft Visual C++.
9337       # hardcode_libdir_flag_spec is actually meaningless, as there is
9338       # no search path for DLLs.
9339       case $cc_basename in
9340       cl*)
9341         # Native MSVC
9342         hardcode_libdir_flag_spec=' '
9343         allow_undefined_flag=unsupported
9344         always_export_symbols=yes
9345         file_list_spec='@'
9346         # Tell ltmain to make .lib files, not .a files.
9347         libext=lib
9348         # Tell ltmain to make .dll files, not .so files.
9349         shrext_cmds=".dll"
9350         # FIXME: Setting linknames here is a bad hack.
9351         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9352         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9353             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9354           else
9355             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9356           fi~
9357           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9358           linknames='
9359         # The linker will not automatically build a static lib if we build a DLL.
9360         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9361         enable_shared_with_static_runtimes=yes
9362         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9363         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9364         # Don't use ranlib
9365         old_postinstall_cmds='chmod 644 $oldlib'
9366         postlink_cmds='lt_outputfile="@OUTPUT@"~
9367           lt_tool_outputfile="@TOOL_OUTPUT@"~
9368           case $lt_outputfile in
9369             *.exe|*.EXE) ;;
9370             *)
9371               lt_outputfile="$lt_outputfile.exe"
9372               lt_tool_outputfile="$lt_tool_outputfile.exe"
9373               ;;
9374           esac~
9375           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9376             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9377             $RM "$lt_outputfile.manifest";
9378           fi'
9379         ;;
9380       *)
9381         # Assume MSVC wrapper
9382         hardcode_libdir_flag_spec=' '
9383         allow_undefined_flag=unsupported
9384         # Tell ltmain to make .lib files, not .a files.
9385         libext=lib
9386         # Tell ltmain to make .dll files, not .so files.
9387         shrext_cmds=".dll"
9388         # FIXME: Setting linknames here is a bad hack.
9389         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9390         # The linker will automatically build a .lib file if we build a DLL.
9391         old_archive_from_new_cmds='true'
9392         # FIXME: Should let the user specify the lib program.
9393         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9394         enable_shared_with_static_runtimes=yes
9395         ;;
9396       esac
9397       ;;
9398
9399     darwin* | rhapsody*)
9400
9401
9402   archive_cmds_need_lc=no
9403   hardcode_direct=no
9404   hardcode_automatic=yes
9405   hardcode_shlibpath_var=unsupported
9406   if test "$lt_cv_ld_force_load" = "yes"; then
9407     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\"`'
9408
9409   else
9410     whole_archive_flag_spec=''
9411   fi
9412   link_all_deplibs=yes
9413   allow_undefined_flag="$_lt_dar_allow_undefined"
9414   case $cc_basename in
9415      ifort*) _lt_dar_can_shared=yes ;;
9416      *) _lt_dar_can_shared=$GCC ;;
9417   esac
9418   if test "$_lt_dar_can_shared" = "yes"; then
9419     output_verbose_link_cmd=func_echo_all
9420     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9421     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9422     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}"
9423     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}"
9424
9425   else
9426   ld_shlibs=no
9427   fi
9428
9429       ;;
9430
9431     dgux*)
9432       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9433       hardcode_libdir_flag_spec='-L$libdir'
9434       hardcode_shlibpath_var=no
9435       ;;
9436
9437     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9438     # support.  Future versions do this automatically, but an explicit c++rt0.o
9439     # does not break anything, and helps significantly (at the cost of a little
9440     # extra space).
9441     freebsd2.2*)
9442       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9443       hardcode_libdir_flag_spec='-R$libdir'
9444       hardcode_direct=yes
9445       hardcode_shlibpath_var=no
9446       ;;
9447
9448     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9449     freebsd2.*)
9450       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9451       hardcode_direct=yes
9452       hardcode_minus_L=yes
9453       hardcode_shlibpath_var=no
9454       ;;
9455
9456     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9457     freebsd* | dragonfly*)
9458       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9459       hardcode_libdir_flag_spec='-R$libdir'
9460       hardcode_direct=yes
9461       hardcode_shlibpath_var=no
9462       ;;
9463
9464     hpux9*)
9465       if test "$GCC" = yes; then
9466         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9467       else
9468         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9469       fi
9470       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9471       hardcode_libdir_separator=:
9472       hardcode_direct=yes
9473
9474       # hardcode_minus_L: Not really in the search PATH,
9475       # but as the default location of the library.
9476       hardcode_minus_L=yes
9477       export_dynamic_flag_spec='${wl}-E'
9478       ;;
9479
9480     hpux10*)
9481       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9482         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9483       else
9484         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9485       fi
9486       if test "$with_gnu_ld" = no; then
9487         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9488         hardcode_libdir_separator=:
9489         hardcode_direct=yes
9490         hardcode_direct_absolute=yes
9491         export_dynamic_flag_spec='${wl}-E'
9492         # hardcode_minus_L: Not really in the search PATH,
9493         # but as the default location of the library.
9494         hardcode_minus_L=yes
9495       fi
9496       ;;
9497
9498     hpux11*)
9499       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9500         case $host_cpu in
9501         hppa*64*)
9502           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9503           ;;
9504         ia64*)
9505           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9506           ;;
9507         *)
9508           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9509           ;;
9510         esac
9511       else
9512         case $host_cpu in
9513         hppa*64*)
9514           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9515           ;;
9516         ia64*)
9517           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9518           ;;
9519         *)
9520
9521           # Older versions of the 11.00 compiler do not understand -b yet
9522           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9523           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9524 $as_echo_n "checking if $CC understands -b... " >&6; }
9525 if ${lt_cv_prog_compiler__b+:} false; then :
9526   $as_echo_n "(cached) " >&6
9527 else
9528   lt_cv_prog_compiler__b=no
9529    save_LDFLAGS="$LDFLAGS"
9530    LDFLAGS="$LDFLAGS -b"
9531    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9532    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9533      # The linker can only warn and ignore the option if not recognized
9534      # So say no if there are warnings
9535      if test -s conftest.err; then
9536        # Append any errors to the config.log.
9537        cat conftest.err 1>&5
9538        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9539        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9540        if diff conftest.exp conftest.er2 >/dev/null; then
9541          lt_cv_prog_compiler__b=yes
9542        fi
9543      else
9544        lt_cv_prog_compiler__b=yes
9545      fi
9546    fi
9547    $RM -r conftest*
9548    LDFLAGS="$save_LDFLAGS"
9549
9550 fi
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9552 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9553
9554 if test x"$lt_cv_prog_compiler__b" = xyes; then
9555     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9556 else
9557     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9558 fi
9559
9560           ;;
9561         esac
9562       fi
9563       if test "$with_gnu_ld" = no; then
9564         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9565         hardcode_libdir_separator=:
9566
9567         case $host_cpu in
9568         hppa*64*|ia64*)
9569           hardcode_direct=no
9570           hardcode_shlibpath_var=no
9571           ;;
9572         *)
9573           hardcode_direct=yes
9574           hardcode_direct_absolute=yes
9575           export_dynamic_flag_spec='${wl}-E'
9576
9577           # hardcode_minus_L: Not really in the search PATH,
9578           # but as the default location of the library.
9579           hardcode_minus_L=yes
9580           ;;
9581         esac
9582       fi
9583       ;;
9584
9585     irix5* | irix6* | nonstopux*)
9586       if test "$GCC" = yes; then
9587         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'
9588         # Try to use the -exported_symbol ld option, if it does not
9589         # work, assume that -exports_file does not work either and
9590         # implicitly export all symbols.
9591         # This should be the same for all languages, so no per-tag cache variable.
9592         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9593 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9594 if ${lt_cv_irix_exported_symbol+:} false; then :
9595   $as_echo_n "(cached) " >&6
9596 else
9597   save_LDFLAGS="$LDFLAGS"
9598            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9599            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9600 /* end confdefs.h.  */
9601 int foo (void) { return 0; }
9602 _ACEOF
9603 if ac_fn_c_try_link "$LINENO"; then :
9604   lt_cv_irix_exported_symbol=yes
9605 else
9606   lt_cv_irix_exported_symbol=no
9607 fi
9608 rm -f core conftest.err conftest.$ac_objext \
9609     conftest$ac_exeext conftest.$ac_ext
9610            LDFLAGS="$save_LDFLAGS"
9611 fi
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9613 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9614         if test "$lt_cv_irix_exported_symbol" = yes; then
9615           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'
9616         fi
9617       else
9618         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'
9619         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'
9620       fi
9621       archive_cmds_need_lc='no'
9622       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9623       hardcode_libdir_separator=:
9624       inherit_rpath=yes
9625       link_all_deplibs=yes
9626       ;;
9627
9628     netbsd*)
9629       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9630         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9631       else
9632         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9633       fi
9634       hardcode_libdir_flag_spec='-R$libdir'
9635       hardcode_direct=yes
9636       hardcode_shlibpath_var=no
9637       ;;
9638
9639     newsos6)
9640       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9641       hardcode_direct=yes
9642       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9643       hardcode_libdir_separator=:
9644       hardcode_shlibpath_var=no
9645       ;;
9646
9647     *nto* | *qnx*)
9648       ;;
9649
9650     openbsd*)
9651       if test -f /usr/libexec/ld.so; then
9652         hardcode_direct=yes
9653         hardcode_shlibpath_var=no
9654         hardcode_direct_absolute=yes
9655         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9656           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9657           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9658           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9659           export_dynamic_flag_spec='${wl}-E'
9660         else
9661           case $host_os in
9662            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9663              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9664              hardcode_libdir_flag_spec='-R$libdir'
9665              ;;
9666            *)
9667              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9668              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9669              ;;
9670           esac
9671         fi
9672       else
9673         ld_shlibs=no
9674       fi
9675       ;;
9676
9677     os2*)
9678       hardcode_libdir_flag_spec='-L$libdir'
9679       hardcode_minus_L=yes
9680       allow_undefined_flag=unsupported
9681       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9682       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9683       ;;
9684
9685     osf3*)
9686       if test "$GCC" = yes; then
9687         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9688         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'
9689       else
9690         allow_undefined_flag=' -expect_unresolved \*'
9691         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'
9692       fi
9693       archive_cmds_need_lc='no'
9694       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9695       hardcode_libdir_separator=:
9696       ;;
9697
9698     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9699       if test "$GCC" = yes; then
9700         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9701         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'
9702         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9703       else
9704         allow_undefined_flag=' -expect_unresolved \*'
9705         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'
9706         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~
9707         $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'
9708
9709         # Both c and cxx compiler support -rpath directly
9710         hardcode_libdir_flag_spec='-rpath $libdir'
9711       fi
9712       archive_cmds_need_lc='no'
9713       hardcode_libdir_separator=:
9714       ;;
9715
9716     solaris*)
9717       no_undefined_flag=' -z defs'
9718       if test "$GCC" = yes; then
9719         wlarc='${wl}'
9720         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9721         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9722           $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'
9723       else
9724         case `$CC -V 2>&1` in
9725         *"Compilers 5.0"*)
9726           wlarc=''
9727           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9728           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9729           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9730           ;;
9731         *)
9732           wlarc='${wl}'
9733           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9734           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9735           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9736           ;;
9737         esac
9738       fi
9739       hardcode_libdir_flag_spec='-R$libdir'
9740       hardcode_shlibpath_var=no
9741       case $host_os in
9742       solaris2.[0-5] | solaris2.[0-5].*) ;;
9743       *)
9744         # The compiler driver will combine and reorder linker options,
9745         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9746         # but is careful enough not to reorder.
9747         # Supported since Solaris 2.6 (maybe 2.5.1?)
9748         if test "$GCC" = yes; then
9749           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9750         else
9751           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9752         fi
9753         ;;
9754       esac
9755       link_all_deplibs=yes
9756       ;;
9757
9758     sunos4*)
9759       if test "x$host_vendor" = xsequent; then
9760         # Use $CC to link under sequent, because it throws in some extra .o
9761         # files that make .init and .fini sections work.
9762         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9763       else
9764         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9765       fi
9766       hardcode_libdir_flag_spec='-L$libdir'
9767       hardcode_direct=yes
9768       hardcode_minus_L=yes
9769       hardcode_shlibpath_var=no
9770       ;;
9771
9772     sysv4)
9773       case $host_vendor in
9774         sni)
9775           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9776           hardcode_direct=yes # is this really true???
9777         ;;
9778         siemens)
9779           ## LD is ld it makes a PLAMLIB
9780           ## CC just makes a GrossModule.
9781           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9782           reload_cmds='$CC -r -o $output$reload_objs'
9783           hardcode_direct=no
9784         ;;
9785         motorola)
9786           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9787           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9788         ;;
9789       esac
9790       runpath_var='LD_RUN_PATH'
9791       hardcode_shlibpath_var=no
9792       ;;
9793
9794     sysv4.3*)
9795       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9796       hardcode_shlibpath_var=no
9797       export_dynamic_flag_spec='-Bexport'
9798       ;;
9799
9800     sysv4*MP*)
9801       if test -d /usr/nec; then
9802         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9803         hardcode_shlibpath_var=no
9804         runpath_var=LD_RUN_PATH
9805         hardcode_runpath_var=yes
9806         ld_shlibs=yes
9807       fi
9808       ;;
9809
9810     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9811       no_undefined_flag='${wl}-z,text'
9812       archive_cmds_need_lc=no
9813       hardcode_shlibpath_var=no
9814       runpath_var='LD_RUN_PATH'
9815
9816       if test "$GCC" = yes; then
9817         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9818         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9819       else
9820         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9821         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9822       fi
9823       ;;
9824
9825     sysv5* | sco3.2v5* | sco5v6*)
9826       # Note: We can NOT use -z defs as we might desire, because we do not
9827       # link with -lc, and that would cause any symbols used from libc to
9828       # always be unresolved, which means just about no library would
9829       # ever link correctly.  If we're not using GNU ld we use -z text
9830       # though, which does catch some bad symbols but isn't as heavy-handed
9831       # as -z defs.
9832       no_undefined_flag='${wl}-z,text'
9833       allow_undefined_flag='${wl}-z,nodefs'
9834       archive_cmds_need_lc=no
9835       hardcode_shlibpath_var=no
9836       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9837       hardcode_libdir_separator=':'
9838       link_all_deplibs=yes
9839       export_dynamic_flag_spec='${wl}-Bexport'
9840       runpath_var='LD_RUN_PATH'
9841
9842       if test "$GCC" = yes; then
9843         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9844         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9845       else
9846         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9847         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9848       fi
9849       ;;
9850
9851     uts4*)
9852       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9853       hardcode_libdir_flag_spec='-L$libdir'
9854       hardcode_shlibpath_var=no
9855       ;;
9856
9857     *)
9858       ld_shlibs=no
9859       ;;
9860     esac
9861
9862     if test x$host_vendor = xsni; then
9863       case $host in
9864       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9865         export_dynamic_flag_spec='${wl}-Blargedynsym'
9866         ;;
9867       esac
9868     fi
9869   fi
9870
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9872 $as_echo "$ld_shlibs" >&6; }
9873 test "$ld_shlibs" = no && can_build_shared=no
9874
9875 with_gnu_ld=$with_gnu_ld
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891 #
9892 # Do we need to explicitly link libc?
9893 #
9894 case "x$archive_cmds_need_lc" in
9895 x|xyes)
9896   # Assume -lc should be added
9897   archive_cmds_need_lc=yes
9898
9899   if test "$enable_shared" = yes && test "$GCC" = yes; then
9900     case $archive_cmds in
9901     *'~'*)
9902       # FIXME: we may have to deal with multi-command sequences.
9903       ;;
9904     '$CC '*)
9905       # Test whether the compiler implicitly links with -lc since on some
9906       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9907       # to ld, don't add -lc before -lgcc.
9908       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9909 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9910 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9911   $as_echo_n "(cached) " >&6
9912 else
9913   $RM conftest*
9914         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9915
9916         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9917   (eval $ac_compile) 2>&5
9918   ac_status=$?
9919   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9920   test $ac_status = 0; } 2>conftest.err; then
9921           soname=conftest
9922           lib=conftest
9923           libobjs=conftest.$ac_objext
9924           deplibs=
9925           wl=$lt_prog_compiler_wl
9926           pic_flag=$lt_prog_compiler_pic
9927           compiler_flags=-v
9928           linker_flags=-v
9929           verstring=
9930           output_objdir=.
9931           libname=conftest
9932           lt_save_allow_undefined_flag=$allow_undefined_flag
9933           allow_undefined_flag=
9934           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9935   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9936   ac_status=$?
9937   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9938   test $ac_status = 0; }
9939           then
9940             lt_cv_archive_cmds_need_lc=no
9941           else
9942             lt_cv_archive_cmds_need_lc=yes
9943           fi
9944           allow_undefined_flag=$lt_save_allow_undefined_flag
9945         else
9946           cat conftest.err 1>&5
9947         fi
9948         $RM conftest*
9949
9950 fi
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9952 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9953       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9954       ;;
9955     esac
9956   fi
9957   ;;
9958 esac
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10112 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10113
10114 if test "$GCC" = yes; then
10115   case $host_os in
10116     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10117     *) lt_awk_arg="/^libraries:/" ;;
10118   esac
10119   case $host_os in
10120     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10121     *) lt_sed_strip_eq="s,=/,/,g" ;;
10122   esac
10123   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10124   case $lt_search_path_spec in
10125   *\;*)
10126     # if the path contains ";" then we assume it to be the separator
10127     # otherwise default to the standard path separator (i.e. ":") - it is
10128     # assumed that no part of a normal pathname contains ";" but that should
10129     # okay in the real world where ";" in dirpaths is itself problematic.
10130     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10131     ;;
10132   *)
10133     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10134     ;;
10135   esac
10136   # Ok, now we have the path, separated by spaces, we can step through it
10137   # and add multilib dir if necessary.
10138   lt_tmp_lt_search_path_spec=
10139   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10140   for lt_sys_path in $lt_search_path_spec; do
10141     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10142       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10143     else
10144       test -d "$lt_sys_path" && \
10145         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10146     fi
10147   done
10148   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10149 BEGIN {RS=" "; FS="/|\n";} {
10150   lt_foo="";
10151   lt_count=0;
10152   for (lt_i = NF; lt_i > 0; lt_i--) {
10153     if ($lt_i != "" && $lt_i != ".") {
10154       if ($lt_i == "..") {
10155         lt_count++;
10156       } else {
10157         if (lt_count == 0) {
10158           lt_foo="/" $lt_i lt_foo;
10159         } else {
10160           lt_count--;
10161         }
10162       }
10163     }
10164   }
10165   if (lt_foo != "") { lt_freq[lt_foo]++; }
10166   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10167 }'`
10168   # AWK program above erroneously prepends '/' to C:/dos/paths
10169   # for these hosts.
10170   case $host_os in
10171     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10172       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10173   esac
10174   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10175 else
10176   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10177 fi
10178 library_names_spec=
10179 libname_spec='lib$name'
10180 soname_spec=
10181 shrext_cmds=".so"
10182 postinstall_cmds=
10183 postuninstall_cmds=
10184 finish_cmds=
10185 finish_eval=
10186 shlibpath_var=
10187 shlibpath_overrides_runpath=unknown
10188 version_type=none
10189 dynamic_linker="$host_os ld.so"
10190 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10191 need_lib_prefix=unknown
10192 hardcode_into_libs=no
10193
10194 # when you set need_version to no, make sure it does not cause -set_version
10195 # flags to be left without arguments
10196 need_version=unknown
10197
10198 case $host_os in
10199 aix3*)
10200   version_type=linux # correct to gnu/linux during the next big refactor
10201   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10202   shlibpath_var=LIBPATH
10203
10204   # AIX 3 has no versioning support, so we append a major version to the name.
10205   soname_spec='${libname}${release}${shared_ext}$major'
10206   ;;
10207
10208 aix[4-9]*)
10209   version_type=linux # correct to gnu/linux during the next big refactor
10210   need_lib_prefix=no
10211   need_version=no
10212   hardcode_into_libs=yes
10213   if test "$host_cpu" = ia64; then
10214     # AIX 5 supports IA64
10215     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10216     shlibpath_var=LD_LIBRARY_PATH
10217   else
10218     # With GCC up to 2.95.x, collect2 would create an import file
10219     # for dependence libraries.  The import file would start with
10220     # the line `#! .'.  This would cause the generated library to
10221     # depend on `.', always an invalid library.  This was fixed in
10222     # development snapshots of GCC prior to 3.0.
10223     case $host_os in
10224       aix4 | aix4.[01] | aix4.[01].*)
10225       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10226            echo ' yes '
10227            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10228         :
10229       else
10230         can_build_shared=no
10231       fi
10232       ;;
10233     esac
10234     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10235     # soname into executable. Probably we can add versioning support to
10236     # collect2, so additional links can be useful in future.
10237     if test "$aix_use_runtimelinking" = yes; then
10238       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10239       # instead of lib<name>.a to let people know that these are not
10240       # typical AIX shared libraries.
10241       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10242     else
10243       # We preserve .a as extension for shared libraries through AIX4.2
10244       # and later when we are not doing run time linking.
10245       library_names_spec='${libname}${release}.a $libname.a'
10246       soname_spec='${libname}${release}${shared_ext}$major'
10247     fi
10248     shlibpath_var=LIBPATH
10249   fi
10250   ;;
10251
10252 amigaos*)
10253   case $host_cpu in
10254   powerpc)
10255     # Since July 2007 AmigaOS4 officially supports .so libraries.
10256     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10257     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10258     ;;
10259   m68k)
10260     library_names_spec='$libname.ixlibrary $libname.a'
10261     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10262     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10263     ;;
10264   esac
10265   ;;
10266
10267 beos*)
10268   library_names_spec='${libname}${shared_ext}'
10269   dynamic_linker="$host_os ld.so"
10270   shlibpath_var=LIBRARY_PATH
10271   ;;
10272
10273 bsdi[45]*)
10274   version_type=linux # correct to gnu/linux during the next big refactor
10275   need_version=no
10276   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10277   soname_spec='${libname}${release}${shared_ext}$major'
10278   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10279   shlibpath_var=LD_LIBRARY_PATH
10280   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10281   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10282   # the default ld.so.conf also contains /usr/contrib/lib and
10283   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10284   # libtool to hard-code these into programs
10285   ;;
10286
10287 cygwin* | mingw* | pw32* | cegcc*)
10288   version_type=windows
10289   shrext_cmds=".dll"
10290   need_version=no
10291   need_lib_prefix=no
10292
10293   case $GCC,$cc_basename in
10294   yes,*)
10295     # gcc
10296     library_names_spec='$libname.dll.a'
10297     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10298     postinstall_cmds='base_file=`basename \${file}`~
10299       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10300       dldir=$destdir/`dirname \$dlpath`~
10301       test -d \$dldir || mkdir -p \$dldir~
10302       $install_prog $dir/$dlname \$dldir/$dlname~
10303       chmod a+x \$dldir/$dlname~
10304       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10305         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10306       fi'
10307     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10308       dlpath=$dir/\$dldll~
10309        $RM \$dlpath'
10310     shlibpath_overrides_runpath=yes
10311
10312     case $host_os in
10313     cygwin*)
10314       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10315       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10316
10317       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10318       ;;
10319     mingw* | cegcc*)
10320       # MinGW DLLs use traditional 'lib' prefix
10321       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10322       ;;
10323     pw32*)
10324       # pw32 DLLs use 'pw' prefix rather than 'lib'
10325       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10326       ;;
10327     esac
10328     dynamic_linker='Win32 ld.exe'
10329     ;;
10330
10331   *,cl*)
10332     # Native MSVC
10333     libname_spec='$name'
10334     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10335     library_names_spec='${libname}.dll.lib'
10336
10337     case $build_os in
10338     mingw*)
10339       sys_lib_search_path_spec=
10340       lt_save_ifs=$IFS
10341       IFS=';'
10342       for lt_path in $LIB
10343       do
10344         IFS=$lt_save_ifs
10345         # Let DOS variable expansion print the short 8.3 style file name.
10346         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10347         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10348       done
10349       IFS=$lt_save_ifs
10350       # Convert to MSYS style.
10351       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10352       ;;
10353     cygwin*)
10354       # Convert to unix form, then to dos form, then back to unix form
10355       # but this time dos style (no spaces!) so that the unix form looks
10356       # like /cygdrive/c/PROGRA~1:/cygdr...
10357       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10358       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10359       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10360       ;;
10361     *)
10362       sys_lib_search_path_spec="$LIB"
10363       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10364         # It is most probably a Windows format PATH.
10365         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10366       else
10367         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10368       fi
10369       # FIXME: find the short name or the path components, as spaces are
10370       # common. (e.g. "Program Files" -> "PROGRA~1")
10371       ;;
10372     esac
10373
10374     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10375     postinstall_cmds='base_file=`basename \${file}`~
10376       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10377       dldir=$destdir/`dirname \$dlpath`~
10378       test -d \$dldir || mkdir -p \$dldir~
10379       $install_prog $dir/$dlname \$dldir/$dlname'
10380     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10381       dlpath=$dir/\$dldll~
10382        $RM \$dlpath'
10383     shlibpath_overrides_runpath=yes
10384     dynamic_linker='Win32 link.exe'
10385     ;;
10386
10387   *)
10388     # Assume MSVC wrapper
10389     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10390     dynamic_linker='Win32 ld.exe'
10391     ;;
10392   esac
10393   # FIXME: first we should search . and the directory the executable is in
10394   shlibpath_var=PATH
10395   ;;
10396
10397 darwin* | rhapsody*)
10398   dynamic_linker="$host_os dyld"
10399   version_type=darwin
10400   need_lib_prefix=no
10401   need_version=no
10402   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10403   soname_spec='${libname}${release}${major}$shared_ext'
10404   shlibpath_overrides_runpath=yes
10405   shlibpath_var=DYLD_LIBRARY_PATH
10406   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10407
10408   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10409   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10410   ;;
10411
10412 dgux*)
10413   version_type=linux # correct to gnu/linux during the next big refactor
10414   need_lib_prefix=no
10415   need_version=no
10416   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10417   soname_spec='${libname}${release}${shared_ext}$major'
10418   shlibpath_var=LD_LIBRARY_PATH
10419   ;;
10420
10421 freebsd* | dragonfly*)
10422   # DragonFly does not have aout.  When/if they implement a new
10423   # versioning mechanism, adjust this.
10424   if test -x /usr/bin/objformat; then
10425     objformat=`/usr/bin/objformat`
10426   else
10427     case $host_os in
10428     freebsd[23].*) objformat=aout ;;
10429     *) objformat=elf ;;
10430     esac
10431   fi
10432   version_type=freebsd-$objformat
10433   case $version_type in
10434     freebsd-elf*)
10435       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10436       need_version=no
10437       need_lib_prefix=no
10438       ;;
10439     freebsd-*)
10440       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10441       need_version=yes
10442       ;;
10443   esac
10444   shlibpath_var=LD_LIBRARY_PATH
10445   case $host_os in
10446   freebsd2.*)
10447     shlibpath_overrides_runpath=yes
10448     ;;
10449   freebsd3.[01]* | freebsdelf3.[01]*)
10450     shlibpath_overrides_runpath=yes
10451     hardcode_into_libs=yes
10452     ;;
10453   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10454   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10455     shlibpath_overrides_runpath=no
10456     hardcode_into_libs=yes
10457     ;;
10458   *) # from 4.6 on, and DragonFly
10459     shlibpath_overrides_runpath=yes
10460     hardcode_into_libs=yes
10461     ;;
10462   esac
10463   ;;
10464
10465 gnu*)
10466   version_type=linux # correct to gnu/linux during the next big refactor
10467   need_lib_prefix=no
10468   need_version=no
10469   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10470   soname_spec='${libname}${release}${shared_ext}$major'
10471   shlibpath_var=LD_LIBRARY_PATH
10472   shlibpath_overrides_runpath=no
10473   hardcode_into_libs=yes
10474   ;;
10475
10476 haiku*)
10477   version_type=linux # correct to gnu/linux during the next big refactor
10478   need_lib_prefix=no
10479   need_version=no
10480   dynamic_linker="$host_os runtime_loader"
10481   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10482   soname_spec='${libname}${release}${shared_ext}$major'
10483   shlibpath_var=LIBRARY_PATH
10484   shlibpath_overrides_runpath=yes
10485   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10486   hardcode_into_libs=yes
10487   ;;
10488
10489 hpux9* | hpux10* | hpux11*)
10490   # Give a soname corresponding to the major version so that dld.sl refuses to
10491   # link against other versions.
10492   version_type=sunos
10493   need_lib_prefix=no
10494   need_version=no
10495   case $host_cpu in
10496   ia64*)
10497     shrext_cmds='.so'
10498     hardcode_into_libs=yes
10499     dynamic_linker="$host_os dld.so"
10500     shlibpath_var=LD_LIBRARY_PATH
10501     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10502     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10503     soname_spec='${libname}${release}${shared_ext}$major'
10504     if test "X$HPUX_IA64_MODE" = X32; then
10505       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10506     else
10507       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10508     fi
10509     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10510     ;;
10511   hppa*64*)
10512     shrext_cmds='.sl'
10513     hardcode_into_libs=yes
10514     dynamic_linker="$host_os dld.sl"
10515     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10516     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10517     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10518     soname_spec='${libname}${release}${shared_ext}$major'
10519     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10520     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10521     ;;
10522   *)
10523     shrext_cmds='.sl'
10524     dynamic_linker="$host_os dld.sl"
10525     shlibpath_var=SHLIB_PATH
10526     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10527     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10528     soname_spec='${libname}${release}${shared_ext}$major'
10529     ;;
10530   esac
10531   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10532   postinstall_cmds='chmod 555 $lib'
10533   # or fails outright, so override atomically:
10534   install_override_mode=555
10535   ;;
10536
10537 interix[3-9]*)
10538   version_type=linux # correct to gnu/linux during the next big refactor
10539   need_lib_prefix=no
10540   need_version=no
10541   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10542   soname_spec='${libname}${release}${shared_ext}$major'
10543   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10544   shlibpath_var=LD_LIBRARY_PATH
10545   shlibpath_overrides_runpath=no
10546   hardcode_into_libs=yes
10547   ;;
10548
10549 irix5* | irix6* | nonstopux*)
10550   case $host_os in
10551     nonstopux*) version_type=nonstopux ;;
10552     *)
10553         if test "$lt_cv_prog_gnu_ld" = yes; then
10554                 version_type=linux # correct to gnu/linux during the next big refactor
10555         else
10556                 version_type=irix
10557         fi ;;
10558   esac
10559   need_lib_prefix=no
10560   need_version=no
10561   soname_spec='${libname}${release}${shared_ext}$major'
10562   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10563   case $host_os in
10564   irix5* | nonstopux*)
10565     libsuff= shlibsuff=
10566     ;;
10567   *)
10568     case $LD in # libtool.m4 will add one of these switches to LD
10569     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10570       libsuff= shlibsuff= libmagic=32-bit;;
10571     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10572       libsuff=32 shlibsuff=N32 libmagic=N32;;
10573     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10574       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10575     *) libsuff= shlibsuff= libmagic=never-match;;
10576     esac
10577     ;;
10578   esac
10579   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10580   shlibpath_overrides_runpath=no
10581   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10582   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10583   hardcode_into_libs=yes
10584   ;;
10585
10586 # No shared lib support for Linux oldld, aout, or coff.
10587 linux*oldld* | linux*aout* | linux*coff*)
10588   dynamic_linker=no
10589   ;;
10590
10591 # This must be glibc/ELF.
10592 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10593   version_type=linux # correct to gnu/linux during the next big refactor
10594   need_lib_prefix=no
10595   need_version=no
10596   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10597   soname_spec='${libname}${release}${shared_ext}$major'
10598   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10599   shlibpath_var=LD_LIBRARY_PATH
10600   shlibpath_overrides_runpath=no
10601
10602   # Some binutils ld are patched to set DT_RUNPATH
10603   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10604   $as_echo_n "(cached) " >&6
10605 else
10606   lt_cv_shlibpath_overrides_runpath=no
10607     save_LDFLAGS=$LDFLAGS
10608     save_libdir=$libdir
10609     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10610          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10611     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10612 /* end confdefs.h.  */
10613
10614 int
10615 main ()
10616 {
10617
10618   ;
10619   return 0;
10620 }
10621 _ACEOF
10622 if ac_fn_c_try_link "$LINENO"; then :
10623   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10624   lt_cv_shlibpath_overrides_runpath=yes
10625 fi
10626 fi
10627 rm -f core conftest.err conftest.$ac_objext \
10628     conftest$ac_exeext conftest.$ac_ext
10629     LDFLAGS=$save_LDFLAGS
10630     libdir=$save_libdir
10631
10632 fi
10633
10634   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10635
10636   # This implies no fast_install, which is unacceptable.
10637   # Some rework will be needed to allow for fast_install
10638   # before this can be enabled.
10639   hardcode_into_libs=yes
10640
10641   # Append ld.so.conf contents to the search path
10642   if test -f /etc/ld.so.conf; then
10643     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' ' '`
10644     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10645   fi
10646
10647   # We used to test for /lib/ld.so.1 and disable shared libraries on
10648   # powerpc, because MkLinux only supported shared libraries with the
10649   # GNU dynamic linker.  Since this was broken with cross compilers,
10650   # most powerpc-linux boxes support dynamic linking these days and
10651   # people can always --disable-shared, the test was removed, and we
10652   # assume the GNU/Linux dynamic linker is in use.
10653   dynamic_linker='GNU/Linux ld.so'
10654   ;;
10655
10656 netbsd*)
10657   version_type=sunos
10658   need_lib_prefix=no
10659   need_version=no
10660   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10661     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10662     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10663     dynamic_linker='NetBSD (a.out) ld.so'
10664   else
10665     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10666     soname_spec='${libname}${release}${shared_ext}$major'
10667     dynamic_linker='NetBSD ld.elf_so'
10668   fi
10669   shlibpath_var=LD_LIBRARY_PATH
10670   shlibpath_overrides_runpath=yes
10671   hardcode_into_libs=yes
10672   ;;
10673
10674 newsos6)
10675   version_type=linux # correct to gnu/linux during the next big refactor
10676   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10677   shlibpath_var=LD_LIBRARY_PATH
10678   shlibpath_overrides_runpath=yes
10679   ;;
10680
10681 *nto* | *qnx*)
10682   version_type=qnx
10683   need_lib_prefix=no
10684   need_version=no
10685   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10686   soname_spec='${libname}${release}${shared_ext}$major'
10687   shlibpath_var=LD_LIBRARY_PATH
10688   shlibpath_overrides_runpath=no
10689   hardcode_into_libs=yes
10690   dynamic_linker='ldqnx.so'
10691   ;;
10692
10693 openbsd*)
10694   version_type=sunos
10695   sys_lib_dlsearch_path_spec="/usr/lib"
10696   need_lib_prefix=no
10697   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10698   case $host_os in
10699     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10700     *)                          need_version=no  ;;
10701   esac
10702   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10703   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10704   shlibpath_var=LD_LIBRARY_PATH
10705   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10706     case $host_os in
10707       openbsd2.[89] | openbsd2.[89].*)
10708         shlibpath_overrides_runpath=no
10709         ;;
10710       *)
10711         shlibpath_overrides_runpath=yes
10712         ;;
10713       esac
10714   else
10715     shlibpath_overrides_runpath=yes
10716   fi
10717   ;;
10718
10719 os2*)
10720   libname_spec='$name'
10721   shrext_cmds=".dll"
10722   need_lib_prefix=no
10723   library_names_spec='$libname${shared_ext} $libname.a'
10724   dynamic_linker='OS/2 ld.exe'
10725   shlibpath_var=LIBPATH
10726   ;;
10727
10728 osf3* | osf4* | osf5*)
10729   version_type=osf
10730   need_lib_prefix=no
10731   need_version=no
10732   soname_spec='${libname}${release}${shared_ext}$major'
10733   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10734   shlibpath_var=LD_LIBRARY_PATH
10735   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10736   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10737   ;;
10738
10739 rdos*)
10740   dynamic_linker=no
10741   ;;
10742
10743 solaris*)
10744   version_type=linux # correct to gnu/linux during the next big refactor
10745   need_lib_prefix=no
10746   need_version=no
10747   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10748   soname_spec='${libname}${release}${shared_ext}$major'
10749   shlibpath_var=LD_LIBRARY_PATH
10750   shlibpath_overrides_runpath=yes
10751   hardcode_into_libs=yes
10752   # ldd complains unless libraries are executable
10753   postinstall_cmds='chmod +x $lib'
10754   ;;
10755
10756 sunos4*)
10757   version_type=sunos
10758   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10759   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10760   shlibpath_var=LD_LIBRARY_PATH
10761   shlibpath_overrides_runpath=yes
10762   if test "$with_gnu_ld" = yes; then
10763     need_lib_prefix=no
10764   fi
10765   need_version=yes
10766   ;;
10767
10768 sysv4 | sysv4.3*)
10769   version_type=linux # correct to gnu/linux during the next big refactor
10770   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10771   soname_spec='${libname}${release}${shared_ext}$major'
10772   shlibpath_var=LD_LIBRARY_PATH
10773   case $host_vendor in
10774     sni)
10775       shlibpath_overrides_runpath=no
10776       need_lib_prefix=no
10777       runpath_var=LD_RUN_PATH
10778       ;;
10779     siemens)
10780       need_lib_prefix=no
10781       ;;
10782     motorola)
10783       need_lib_prefix=no
10784       need_version=no
10785       shlibpath_overrides_runpath=no
10786       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10787       ;;
10788   esac
10789   ;;
10790
10791 sysv4*MP*)
10792   if test -d /usr/nec ;then
10793     version_type=linux # correct to gnu/linux during the next big refactor
10794     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10795     soname_spec='$libname${shared_ext}.$major'
10796     shlibpath_var=LD_LIBRARY_PATH
10797   fi
10798   ;;
10799
10800 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10801   version_type=freebsd-elf
10802   need_lib_prefix=no
10803   need_version=no
10804   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10805   soname_spec='${libname}${release}${shared_ext}$major'
10806   shlibpath_var=LD_LIBRARY_PATH
10807   shlibpath_overrides_runpath=yes
10808   hardcode_into_libs=yes
10809   if test "$with_gnu_ld" = yes; then
10810     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10811   else
10812     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10813     case $host_os in
10814       sco3.2v5*)
10815         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10816         ;;
10817     esac
10818   fi
10819   sys_lib_dlsearch_path_spec='/usr/lib'
10820   ;;
10821
10822 tpf*)
10823   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10824   version_type=linux # correct to gnu/linux during the next big refactor
10825   need_lib_prefix=no
10826   need_version=no
10827   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10828   shlibpath_var=LD_LIBRARY_PATH
10829   shlibpath_overrides_runpath=no
10830   hardcode_into_libs=yes
10831   ;;
10832
10833 uts4*)
10834   version_type=linux # correct to gnu/linux during the next big refactor
10835   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10836   soname_spec='${libname}${release}${shared_ext}$major'
10837   shlibpath_var=LD_LIBRARY_PATH
10838   ;;
10839
10840 *)
10841   dynamic_linker=no
10842   ;;
10843 esac
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10845 $as_echo "$dynamic_linker" >&6; }
10846 test "$dynamic_linker" = no && can_build_shared=no
10847
10848 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10849 if test "$GCC" = yes; then
10850   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10851 fi
10852
10853 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10854   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10855 fi
10856 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10857   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10858 fi
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10952 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10953 hardcode_action=
10954 if test -n "$hardcode_libdir_flag_spec" ||
10955    test -n "$runpath_var" ||
10956    test "X$hardcode_automatic" = "Xyes" ; then
10957
10958   # We can hardcode non-existent directories.
10959   if test "$hardcode_direct" != no &&
10960      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10961      # have to relink, otherwise we might link with an installed library
10962      # when we should be linking with a yet-to-be-installed one
10963      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10964      test "$hardcode_minus_L" != no; then
10965     # Linking always hardcodes the temporary library directory.
10966     hardcode_action=relink
10967   else
10968     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10969     hardcode_action=immediate
10970   fi
10971 else
10972   # We cannot hardcode anything, or else we can only hardcode existing
10973   # directories.
10974   hardcode_action=unsupported
10975 fi
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10977 $as_echo "$hardcode_action" >&6; }
10978
10979 if test "$hardcode_action" = relink ||
10980    test "$inherit_rpath" = yes; then
10981   # Fast installation is not supported
10982   enable_fast_install=no
10983 elif test "$shlibpath_overrides_runpath" = yes ||
10984      test "$enable_shared" = no; then
10985   # Fast installation is not necessary
10986   enable_fast_install=needless
10987 fi
10988
10989
10990
10991
10992
10993
10994   if test "x$enable_dlopen" != xyes; then
10995   enable_dlopen=unknown
10996   enable_dlopen_self=unknown
10997   enable_dlopen_self_static=unknown
10998 else
10999   lt_cv_dlopen=no
11000   lt_cv_dlopen_libs=
11001
11002   case $host_os in
11003   beos*)
11004     lt_cv_dlopen="load_add_on"
11005     lt_cv_dlopen_libs=
11006     lt_cv_dlopen_self=yes
11007     ;;
11008
11009   mingw* | pw32* | cegcc*)
11010     lt_cv_dlopen="LoadLibrary"
11011     lt_cv_dlopen_libs=
11012     ;;
11013
11014   cygwin*)
11015     lt_cv_dlopen="dlopen"
11016     lt_cv_dlopen_libs=
11017     ;;
11018
11019   darwin*)
11020   # if libdl is installed we need to link against it
11021     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11022 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11023 if ${ac_cv_lib_dl_dlopen+:} false; then :
11024   $as_echo_n "(cached) " >&6
11025 else
11026   ac_check_lib_save_LIBS=$LIBS
11027 LIBS="-ldl  $LIBS"
11028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11029 /* end confdefs.h.  */
11030
11031 /* Override any GCC internal prototype to avoid an error.
11032    Use char because int might match the return type of a GCC
11033    builtin and then its argument prototype would still apply.  */
11034 #ifdef __cplusplus
11035 extern "C"
11036 #endif
11037 char dlopen ();
11038 int
11039 main ()
11040 {
11041 return dlopen ();
11042   ;
11043   return 0;
11044 }
11045 _ACEOF
11046 if ac_fn_c_try_link "$LINENO"; then :
11047   ac_cv_lib_dl_dlopen=yes
11048 else
11049   ac_cv_lib_dl_dlopen=no
11050 fi
11051 rm -f core conftest.err conftest.$ac_objext \
11052     conftest$ac_exeext conftest.$ac_ext
11053 LIBS=$ac_check_lib_save_LIBS
11054 fi
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11056 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11057 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11058   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11059 else
11060
11061     lt_cv_dlopen="dyld"
11062     lt_cv_dlopen_libs=
11063     lt_cv_dlopen_self=yes
11064
11065 fi
11066
11067     ;;
11068
11069   *)
11070     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11071 if test "x$ac_cv_func_shl_load" = xyes; then :
11072   lt_cv_dlopen="shl_load"
11073 else
11074   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11075 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11076 if ${ac_cv_lib_dld_shl_load+:} false; then :
11077   $as_echo_n "(cached) " >&6
11078 else
11079   ac_check_lib_save_LIBS=$LIBS
11080 LIBS="-ldld  $LIBS"
11081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11082 /* end confdefs.h.  */
11083
11084 /* Override any GCC internal prototype to avoid an error.
11085    Use char because int might match the return type of a GCC
11086    builtin and then its argument prototype would still apply.  */
11087 #ifdef __cplusplus
11088 extern "C"
11089 #endif
11090 char shl_load ();
11091 int
11092 main ()
11093 {
11094 return shl_load ();
11095   ;
11096   return 0;
11097 }
11098 _ACEOF
11099 if ac_fn_c_try_link "$LINENO"; then :
11100   ac_cv_lib_dld_shl_load=yes
11101 else
11102   ac_cv_lib_dld_shl_load=no
11103 fi
11104 rm -f core conftest.err conftest.$ac_objext \
11105     conftest$ac_exeext conftest.$ac_ext
11106 LIBS=$ac_check_lib_save_LIBS
11107 fi
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11109 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11110 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11111   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11112 else
11113   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11114 if test "x$ac_cv_func_dlopen" = xyes; then :
11115   lt_cv_dlopen="dlopen"
11116 else
11117   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11118 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11119 if ${ac_cv_lib_dl_dlopen+:} false; then :
11120   $as_echo_n "(cached) " >&6
11121 else
11122   ac_check_lib_save_LIBS=$LIBS
11123 LIBS="-ldl  $LIBS"
11124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11125 /* end confdefs.h.  */
11126
11127 /* Override any GCC internal prototype to avoid an error.
11128    Use char because int might match the return type of a GCC
11129    builtin and then its argument prototype would still apply.  */
11130 #ifdef __cplusplus
11131 extern "C"
11132 #endif
11133 char dlopen ();
11134 int
11135 main ()
11136 {
11137 return dlopen ();
11138   ;
11139   return 0;
11140 }
11141 _ACEOF
11142 if ac_fn_c_try_link "$LINENO"; then :
11143   ac_cv_lib_dl_dlopen=yes
11144 else
11145   ac_cv_lib_dl_dlopen=no
11146 fi
11147 rm -f core conftest.err conftest.$ac_objext \
11148     conftest$ac_exeext conftest.$ac_ext
11149 LIBS=$ac_check_lib_save_LIBS
11150 fi
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11152 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11153 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11154   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11155 else
11156   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11157 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11158 if ${ac_cv_lib_svld_dlopen+:} false; then :
11159   $as_echo_n "(cached) " >&6
11160 else
11161   ac_check_lib_save_LIBS=$LIBS
11162 LIBS="-lsvld  $LIBS"
11163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11164 /* end confdefs.h.  */
11165
11166 /* Override any GCC internal prototype to avoid an error.
11167    Use char because int might match the return type of a GCC
11168    builtin and then its argument prototype would still apply.  */
11169 #ifdef __cplusplus
11170 extern "C"
11171 #endif
11172 char dlopen ();
11173 int
11174 main ()
11175 {
11176 return dlopen ();
11177   ;
11178   return 0;
11179 }
11180 _ACEOF
11181 if ac_fn_c_try_link "$LINENO"; then :
11182   ac_cv_lib_svld_dlopen=yes
11183 else
11184   ac_cv_lib_svld_dlopen=no
11185 fi
11186 rm -f core conftest.err conftest.$ac_objext \
11187     conftest$ac_exeext conftest.$ac_ext
11188 LIBS=$ac_check_lib_save_LIBS
11189 fi
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11191 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11192 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11193   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11194 else
11195   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11196 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11197 if ${ac_cv_lib_dld_dld_link+:} false; then :
11198   $as_echo_n "(cached) " >&6
11199 else
11200   ac_check_lib_save_LIBS=$LIBS
11201 LIBS="-ldld  $LIBS"
11202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11203 /* end confdefs.h.  */
11204
11205 /* Override any GCC internal prototype to avoid an error.
11206    Use char because int might match the return type of a GCC
11207    builtin and then its argument prototype would still apply.  */
11208 #ifdef __cplusplus
11209 extern "C"
11210 #endif
11211 char dld_link ();
11212 int
11213 main ()
11214 {
11215 return dld_link ();
11216   ;
11217   return 0;
11218 }
11219 _ACEOF
11220 if ac_fn_c_try_link "$LINENO"; then :
11221   ac_cv_lib_dld_dld_link=yes
11222 else
11223   ac_cv_lib_dld_dld_link=no
11224 fi
11225 rm -f core conftest.err conftest.$ac_objext \
11226     conftest$ac_exeext conftest.$ac_ext
11227 LIBS=$ac_check_lib_save_LIBS
11228 fi
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11230 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11231 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11232   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11233 fi
11234
11235
11236 fi
11237
11238
11239 fi
11240
11241
11242 fi
11243
11244
11245 fi
11246
11247
11248 fi
11249
11250     ;;
11251   esac
11252
11253   if test "x$lt_cv_dlopen" != xno; then
11254     enable_dlopen=yes
11255   else
11256     enable_dlopen=no
11257   fi
11258
11259   case $lt_cv_dlopen in
11260   dlopen)
11261     save_CPPFLAGS="$CPPFLAGS"
11262     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11263
11264     save_LDFLAGS="$LDFLAGS"
11265     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11266
11267     save_LIBS="$LIBS"
11268     LIBS="$lt_cv_dlopen_libs $LIBS"
11269
11270     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11271 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11272 if ${lt_cv_dlopen_self+:} false; then :
11273   $as_echo_n "(cached) " >&6
11274 else
11275           if test "$cross_compiling" = yes; then :
11276   lt_cv_dlopen_self=cross
11277 else
11278   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11279   lt_status=$lt_dlunknown
11280   cat > conftest.$ac_ext <<_LT_EOF
11281 #line $LINENO "configure"
11282 #include "confdefs.h"
11283
11284 #if HAVE_DLFCN_H
11285 #include <dlfcn.h>
11286 #endif
11287
11288 #include <stdio.h>
11289
11290 #ifdef RTLD_GLOBAL
11291 #  define LT_DLGLOBAL           RTLD_GLOBAL
11292 #else
11293 #  ifdef DL_GLOBAL
11294 #    define LT_DLGLOBAL         DL_GLOBAL
11295 #  else
11296 #    define LT_DLGLOBAL         0
11297 #  endif
11298 #endif
11299
11300 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11301    find out it does not work in some platform. */
11302 #ifndef LT_DLLAZY_OR_NOW
11303 #  ifdef RTLD_LAZY
11304 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11305 #  else
11306 #    ifdef DL_LAZY
11307 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11308 #    else
11309 #      ifdef RTLD_NOW
11310 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11311 #      else
11312 #        ifdef DL_NOW
11313 #          define LT_DLLAZY_OR_NOW      DL_NOW
11314 #        else
11315 #          define LT_DLLAZY_OR_NOW      0
11316 #        endif
11317 #      endif
11318 #    endif
11319 #  endif
11320 #endif
11321
11322 /* When -fvisbility=hidden is used, assume the code has been annotated
11323    correspondingly for the symbols needed.  */
11324 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11325 int fnord () __attribute__((visibility("default")));
11326 #endif
11327
11328 int fnord () { return 42; }
11329 int main ()
11330 {
11331   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11332   int status = $lt_dlunknown;
11333
11334   if (self)
11335     {
11336       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11337       else
11338         {
11339           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11340           else puts (dlerror ());
11341         }
11342       /* dlclose (self); */
11343     }
11344   else
11345     puts (dlerror ());
11346
11347   return status;
11348 }
11349 _LT_EOF
11350   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11351   (eval $ac_link) 2>&5
11352   ac_status=$?
11353   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11354   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11355     (./conftest; exit; ) >&5 2>/dev/null
11356     lt_status=$?
11357     case x$lt_status in
11358       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11359       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11360       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11361     esac
11362   else :
11363     # compilation failed
11364     lt_cv_dlopen_self=no
11365   fi
11366 fi
11367 rm -fr conftest*
11368
11369
11370 fi
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11372 $as_echo "$lt_cv_dlopen_self" >&6; }
11373
11374     if test "x$lt_cv_dlopen_self" = xyes; then
11375       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11376       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11377 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11378 if ${lt_cv_dlopen_self_static+:} false; then :
11379   $as_echo_n "(cached) " >&6
11380 else
11381           if test "$cross_compiling" = yes; then :
11382   lt_cv_dlopen_self_static=cross
11383 else
11384   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11385   lt_status=$lt_dlunknown
11386   cat > conftest.$ac_ext <<_LT_EOF
11387 #line $LINENO "configure"
11388 #include "confdefs.h"
11389
11390 #if HAVE_DLFCN_H
11391 #include <dlfcn.h>
11392 #endif
11393
11394 #include <stdio.h>
11395
11396 #ifdef RTLD_GLOBAL
11397 #  define LT_DLGLOBAL           RTLD_GLOBAL
11398 #else
11399 #  ifdef DL_GLOBAL
11400 #    define LT_DLGLOBAL         DL_GLOBAL
11401 #  else
11402 #    define LT_DLGLOBAL         0
11403 #  endif
11404 #endif
11405
11406 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11407    find out it does not work in some platform. */
11408 #ifndef LT_DLLAZY_OR_NOW
11409 #  ifdef RTLD_LAZY
11410 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11411 #  else
11412 #    ifdef DL_LAZY
11413 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11414 #    else
11415 #      ifdef RTLD_NOW
11416 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11417 #      else
11418 #        ifdef DL_NOW
11419 #          define LT_DLLAZY_OR_NOW      DL_NOW
11420 #        else
11421 #          define LT_DLLAZY_OR_NOW      0
11422 #        endif
11423 #      endif
11424 #    endif
11425 #  endif
11426 #endif
11427
11428 /* When -fvisbility=hidden is used, assume the code has been annotated
11429    correspondingly for the symbols needed.  */
11430 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11431 int fnord () __attribute__((visibility("default")));
11432 #endif
11433
11434 int fnord () { return 42; }
11435 int main ()
11436 {
11437   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11438   int status = $lt_dlunknown;
11439
11440   if (self)
11441     {
11442       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11443       else
11444         {
11445           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11446           else puts (dlerror ());
11447         }
11448       /* dlclose (self); */
11449     }
11450   else
11451     puts (dlerror ());
11452
11453   return status;
11454 }
11455 _LT_EOF
11456   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11457   (eval $ac_link) 2>&5
11458   ac_status=$?
11459   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11460   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11461     (./conftest; exit; ) >&5 2>/dev/null
11462     lt_status=$?
11463     case x$lt_status in
11464       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11465       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11466       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11467     esac
11468   else :
11469     # compilation failed
11470     lt_cv_dlopen_self_static=no
11471   fi
11472 fi
11473 rm -fr conftest*
11474
11475
11476 fi
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11478 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11479     fi
11480
11481     CPPFLAGS="$save_CPPFLAGS"
11482     LDFLAGS="$save_LDFLAGS"
11483     LIBS="$save_LIBS"
11484     ;;
11485   esac
11486
11487   case $lt_cv_dlopen_self in
11488   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11489   *) enable_dlopen_self=unknown ;;
11490   esac
11491
11492   case $lt_cv_dlopen_self_static in
11493   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11494   *) enable_dlopen_self_static=unknown ;;
11495   esac
11496 fi
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514 striplib=
11515 old_striplib=
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11517 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11518 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11519   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11520   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11522 $as_echo "yes" >&6; }
11523 else
11524 # FIXME - insert some real tests, host_os isn't really good enough
11525   case $host_os in
11526   darwin*)
11527     if test -n "$STRIP" ; then
11528       striplib="$STRIP -x"
11529       old_striplib="$STRIP -S"
11530       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11531 $as_echo "yes" >&6; }
11532     else
11533       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11534 $as_echo "no" >&6; }
11535     fi
11536     ;;
11537   *)
11538     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11539 $as_echo "no" >&6; }
11540     ;;
11541   esac
11542 fi
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555   # Report which library types will actually be built
11556   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11557 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11559 $as_echo "$can_build_shared" >&6; }
11560
11561   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11562 $as_echo_n "checking whether to build shared libraries... " >&6; }
11563   test "$can_build_shared" = "no" && enable_shared=no
11564
11565   # On AIX, shared libraries and static libraries use the same namespace, and
11566   # are all built from PIC.
11567   case $host_os in
11568   aix3*)
11569     test "$enable_shared" = yes && enable_static=no
11570     if test -n "$RANLIB"; then
11571       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11572       postinstall_cmds='$RANLIB $lib'
11573     fi
11574     ;;
11575
11576   aix[4-9]*)
11577     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11578       test "$enable_shared" = yes && enable_static=no
11579     fi
11580     ;;
11581   esac
11582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11583 $as_echo "$enable_shared" >&6; }
11584
11585   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11586 $as_echo_n "checking whether to build static libraries... " >&6; }
11587   # Make sure either enable_shared or enable_static is yes.
11588   test "$enable_shared" = yes || enable_static=yes
11589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11590 $as_echo "$enable_static" >&6; }
11591
11592
11593
11594
11595 fi
11596 ac_ext=c
11597 ac_cpp='$CPP $CPPFLAGS'
11598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11601
11602 CC="$lt_save_CC"
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618         ac_config_commands="$ac_config_commands libtool"
11619
11620
11621
11622
11623 # Only expand once:
11624
11625
11626 ac_config_headers="$ac_config_headers config.h"
11627
11628 ac_config_files="$ac_config_files Makefile doc/Makefile doc/Doxyfile src/Makefile programs/Makefile wimlib.pc doc/imagex.1 doc/imagex-append.1 doc/imagex-apply.1 doc/imagex-capture.1 doc/imagex-delete.1 doc/imagex-dir.1 doc/imagex-export.1 doc/imagex-info.1 doc/imagex-join.1 doc/imagex-mount.1 doc/imagex-mountrw.1 doc/imagex-unmount.1 doc/mkwinpeimg.1 rpm/wimlib.spec archlinux/PKGBUILD"
11629
11630 ac_ext=c
11631 ac_cpp='$CPP $CPPFLAGS'
11632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11635 if test -n "$ac_tool_prefix"; then
11636   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11637 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11639 $as_echo_n "checking for $ac_word... " >&6; }
11640 if ${ac_cv_prog_CC+:} false; then :
11641   $as_echo_n "(cached) " >&6
11642 else
11643   if test -n "$CC"; then
11644   ac_cv_prog_CC="$CC" # Let the user override the test.
11645 else
11646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11647 for as_dir in $PATH
11648 do
11649   IFS=$as_save_IFS
11650   test -z "$as_dir" && as_dir=.
11651     for ac_exec_ext in '' $ac_executable_extensions; do
11652   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11653     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11654     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11655     break 2
11656   fi
11657 done
11658   done
11659 IFS=$as_save_IFS
11660
11661 fi
11662 fi
11663 CC=$ac_cv_prog_CC
11664 if test -n "$CC"; then
11665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11666 $as_echo "$CC" >&6; }
11667 else
11668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11669 $as_echo "no" >&6; }
11670 fi
11671
11672
11673 fi
11674 if test -z "$ac_cv_prog_CC"; then
11675   ac_ct_CC=$CC
11676   # Extract the first word of "gcc", so it can be a program name with args.
11677 set dummy gcc; ac_word=$2
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11679 $as_echo_n "checking for $ac_word... " >&6; }
11680 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11681   $as_echo_n "(cached) " >&6
11682 else
11683   if test -n "$ac_ct_CC"; then
11684   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11685 else
11686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11687 for as_dir in $PATH
11688 do
11689   IFS=$as_save_IFS
11690   test -z "$as_dir" && as_dir=.
11691     for ac_exec_ext in '' $ac_executable_extensions; do
11692   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11693     ac_cv_prog_ac_ct_CC="gcc"
11694     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11695     break 2
11696   fi
11697 done
11698   done
11699 IFS=$as_save_IFS
11700
11701 fi
11702 fi
11703 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11704 if test -n "$ac_ct_CC"; then
11705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11706 $as_echo "$ac_ct_CC" >&6; }
11707 else
11708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11709 $as_echo "no" >&6; }
11710 fi
11711
11712   if test "x$ac_ct_CC" = x; then
11713     CC=""
11714   else
11715     case $cross_compiling:$ac_tool_warned in
11716 yes:)
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11718 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11719 ac_tool_warned=yes ;;
11720 esac
11721     CC=$ac_ct_CC
11722   fi
11723 else
11724   CC="$ac_cv_prog_CC"
11725 fi
11726
11727 if test -z "$CC"; then
11728           if test -n "$ac_tool_prefix"; then
11729     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11730 set dummy ${ac_tool_prefix}cc; ac_word=$2
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11732 $as_echo_n "checking for $ac_word... " >&6; }
11733 if ${ac_cv_prog_CC+:} false; then :
11734   $as_echo_n "(cached) " >&6
11735 else
11736   if test -n "$CC"; then
11737   ac_cv_prog_CC="$CC" # Let the user override the test.
11738 else
11739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11740 for as_dir in $PATH
11741 do
11742   IFS=$as_save_IFS
11743   test -z "$as_dir" && as_dir=.
11744     for ac_exec_ext in '' $ac_executable_extensions; do
11745   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11746     ac_cv_prog_CC="${ac_tool_prefix}cc"
11747     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11748     break 2
11749   fi
11750 done
11751   done
11752 IFS=$as_save_IFS
11753
11754 fi
11755 fi
11756 CC=$ac_cv_prog_CC
11757 if test -n "$CC"; then
11758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11759 $as_echo "$CC" >&6; }
11760 else
11761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11762 $as_echo "no" >&6; }
11763 fi
11764
11765
11766   fi
11767 fi
11768 if test -z "$CC"; then
11769   # Extract the first word of "cc", so it can be a program name with args.
11770 set dummy cc; ac_word=$2
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11772 $as_echo_n "checking for $ac_word... " >&6; }
11773 if ${ac_cv_prog_CC+:} false; then :
11774   $as_echo_n "(cached) " >&6
11775 else
11776   if test -n "$CC"; then
11777   ac_cv_prog_CC="$CC" # Let the user override the test.
11778 else
11779   ac_prog_rejected=no
11780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11781 for as_dir in $PATH
11782 do
11783   IFS=$as_save_IFS
11784   test -z "$as_dir" && as_dir=.
11785     for ac_exec_ext in '' $ac_executable_extensions; do
11786   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11787     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11788        ac_prog_rejected=yes
11789        continue
11790      fi
11791     ac_cv_prog_CC="cc"
11792     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11793     break 2
11794   fi
11795 done
11796   done
11797 IFS=$as_save_IFS
11798
11799 if test $ac_prog_rejected = yes; then
11800   # We found a bogon in the path, so make sure we never use it.
11801   set dummy $ac_cv_prog_CC
11802   shift
11803   if test $# != 0; then
11804     # We chose a different compiler from the bogus one.
11805     # However, it has the same basename, so the bogon will be chosen
11806     # first if we set CC to just the basename; use the full file name.
11807     shift
11808     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11809   fi
11810 fi
11811 fi
11812 fi
11813 CC=$ac_cv_prog_CC
11814 if test -n "$CC"; then
11815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11816 $as_echo "$CC" >&6; }
11817 else
11818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11819 $as_echo "no" >&6; }
11820 fi
11821
11822
11823 fi
11824 if test -z "$CC"; then
11825   if test -n "$ac_tool_prefix"; then
11826   for ac_prog in cl.exe
11827   do
11828     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11829 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11831 $as_echo_n "checking for $ac_word... " >&6; }
11832 if ${ac_cv_prog_CC+:} false; then :
11833   $as_echo_n "(cached) " >&6
11834 else
11835   if test -n "$CC"; then
11836   ac_cv_prog_CC="$CC" # Let the user override the test.
11837 else
11838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11839 for as_dir in $PATH
11840 do
11841   IFS=$as_save_IFS
11842   test -z "$as_dir" && as_dir=.
11843     for ac_exec_ext in '' $ac_executable_extensions; do
11844   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11845     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11846     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11847     break 2
11848   fi
11849 done
11850   done
11851 IFS=$as_save_IFS
11852
11853 fi
11854 fi
11855 CC=$ac_cv_prog_CC
11856 if test -n "$CC"; then
11857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11858 $as_echo "$CC" >&6; }
11859 else
11860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11861 $as_echo "no" >&6; }
11862 fi
11863
11864
11865     test -n "$CC" && break
11866   done
11867 fi
11868 if test -z "$CC"; then
11869   ac_ct_CC=$CC
11870   for ac_prog in cl.exe
11871 do
11872   # Extract the first word of "$ac_prog", so it can be a program name with args.
11873 set dummy $ac_prog; ac_word=$2
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11875 $as_echo_n "checking for $ac_word... " >&6; }
11876 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11877   $as_echo_n "(cached) " >&6
11878 else
11879   if test -n "$ac_ct_CC"; then
11880   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11881 else
11882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11883 for as_dir in $PATH
11884 do
11885   IFS=$as_save_IFS
11886   test -z "$as_dir" && as_dir=.
11887     for ac_exec_ext in '' $ac_executable_extensions; do
11888   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11889     ac_cv_prog_ac_ct_CC="$ac_prog"
11890     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11891     break 2
11892   fi
11893 done
11894   done
11895 IFS=$as_save_IFS
11896
11897 fi
11898 fi
11899 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11900 if test -n "$ac_ct_CC"; then
11901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11902 $as_echo "$ac_ct_CC" >&6; }
11903 else
11904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11905 $as_echo "no" >&6; }
11906 fi
11907
11908
11909   test -n "$ac_ct_CC" && break
11910 done
11911
11912   if test "x$ac_ct_CC" = x; then
11913     CC=""
11914   else
11915     case $cross_compiling:$ac_tool_warned in
11916 yes:)
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11918 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11919 ac_tool_warned=yes ;;
11920 esac
11921     CC=$ac_ct_CC
11922   fi
11923 fi
11924
11925 fi
11926
11927
11928 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11929 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11930 as_fn_error $? "no acceptable C compiler found in \$PATH
11931 See \`config.log' for more details" "$LINENO" 5; }
11932
11933 # Provide some information about the compiler.
11934 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11935 set X $ac_compile
11936 ac_compiler=$2
11937 for ac_option in --version -v -V -qversion; do
11938   { { ac_try="$ac_compiler $ac_option >&5"
11939 case "(($ac_try" in
11940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11941   *) ac_try_echo=$ac_try;;
11942 esac
11943 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11944 $as_echo "$ac_try_echo"; } >&5
11945   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11946   ac_status=$?
11947   if test -s conftest.err; then
11948     sed '10a\
11949 ... rest of stderr output deleted ...
11950          10q' conftest.err >conftest.er1
11951     cat conftest.er1 >&5
11952   fi
11953   rm -f conftest.er1 conftest.err
11954   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11955   test $ac_status = 0; }
11956 done
11957
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11959 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11960 if ${ac_cv_c_compiler_gnu+:} false; then :
11961   $as_echo_n "(cached) " >&6
11962 else
11963   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11964 /* end confdefs.h.  */
11965
11966 int
11967 main ()
11968 {
11969 #ifndef __GNUC__
11970        choke me
11971 #endif
11972
11973   ;
11974   return 0;
11975 }
11976 _ACEOF
11977 if ac_fn_c_try_compile "$LINENO"; then :
11978   ac_compiler_gnu=yes
11979 else
11980   ac_compiler_gnu=no
11981 fi
11982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11983 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11984
11985 fi
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11987 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11988 if test $ac_compiler_gnu = yes; then
11989   GCC=yes
11990 else
11991   GCC=
11992 fi
11993 ac_test_CFLAGS=${CFLAGS+set}
11994 ac_save_CFLAGS=$CFLAGS
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11996 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11997 if ${ac_cv_prog_cc_g+:} false; then :
11998   $as_echo_n "(cached) " >&6
11999 else
12000   ac_save_c_werror_flag=$ac_c_werror_flag
12001    ac_c_werror_flag=yes
12002    ac_cv_prog_cc_g=no
12003    CFLAGS="-g"
12004    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12005 /* end confdefs.h.  */
12006
12007 int
12008 main ()
12009 {
12010
12011   ;
12012   return 0;
12013 }
12014 _ACEOF
12015 if ac_fn_c_try_compile "$LINENO"; then :
12016   ac_cv_prog_cc_g=yes
12017 else
12018   CFLAGS=""
12019       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12020 /* end confdefs.h.  */
12021
12022 int
12023 main ()
12024 {
12025
12026   ;
12027   return 0;
12028 }
12029 _ACEOF
12030 if ac_fn_c_try_compile "$LINENO"; then :
12031
12032 else
12033   ac_c_werror_flag=$ac_save_c_werror_flag
12034          CFLAGS="-g"
12035          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12036 /* end confdefs.h.  */
12037
12038 int
12039 main ()
12040 {
12041
12042   ;
12043   return 0;
12044 }
12045 _ACEOF
12046 if ac_fn_c_try_compile "$LINENO"; then :
12047   ac_cv_prog_cc_g=yes
12048 fi
12049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12050 fi
12051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12052 fi
12053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12054    ac_c_werror_flag=$ac_save_c_werror_flag
12055 fi
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12057 $as_echo "$ac_cv_prog_cc_g" >&6; }
12058 if test "$ac_test_CFLAGS" = set; then
12059   CFLAGS=$ac_save_CFLAGS
12060 elif test $ac_cv_prog_cc_g = yes; then
12061   if test "$GCC" = yes; then
12062     CFLAGS="-g -O2"
12063   else
12064     CFLAGS="-g"
12065   fi
12066 else
12067   if test "$GCC" = yes; then
12068     CFLAGS="-O2"
12069   else
12070     CFLAGS=
12071   fi
12072 fi
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12074 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12075 if ${ac_cv_prog_cc_c89+:} false; then :
12076   $as_echo_n "(cached) " >&6
12077 else
12078   ac_cv_prog_cc_c89=no
12079 ac_save_CC=$CC
12080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12081 /* end confdefs.h.  */
12082 #include <stdarg.h>
12083 #include <stdio.h>
12084 struct stat;
12085 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12086 struct buf { int x; };
12087 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12088 static char *e (p, i)
12089      char **p;
12090      int i;
12091 {
12092   return p[i];
12093 }
12094 static char *f (char * (*g) (char **, int), char **p, ...)
12095 {
12096   char *s;
12097   va_list v;
12098   va_start (v,p);
12099   s = g (p, va_arg (v,int));
12100   va_end (v);
12101   return s;
12102 }
12103
12104 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12105    function prototypes and stuff, but not '\xHH' hex character constants.
12106    These don't provoke an error unfortunately, instead are silently treated
12107    as 'x'.  The following induces an error, until -std is added to get
12108    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12109    array size at least.  It's necessary to write '\x00'==0 to get something
12110    that's true only with -std.  */
12111 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12112
12113 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12114    inside strings and character constants.  */
12115 #define FOO(x) 'x'
12116 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12117
12118 int test (int i, double x);
12119 struct s1 {int (*f) (int a);};
12120 struct s2 {int (*f) (double a);};
12121 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12122 int argc;
12123 char **argv;
12124 int
12125 main ()
12126 {
12127 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12128   ;
12129   return 0;
12130 }
12131 _ACEOF
12132 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12133         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12134 do
12135   CC="$ac_save_CC $ac_arg"
12136   if ac_fn_c_try_compile "$LINENO"; then :
12137   ac_cv_prog_cc_c89=$ac_arg
12138 fi
12139 rm -f core conftest.err conftest.$ac_objext
12140   test "x$ac_cv_prog_cc_c89" != "xno" && break
12141 done
12142 rm -f conftest.$ac_ext
12143 CC=$ac_save_CC
12144
12145 fi
12146 # AC_CACHE_VAL
12147 case "x$ac_cv_prog_cc_c89" in
12148   x)
12149     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12150 $as_echo "none needed" >&6; } ;;
12151   xno)
12152     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12153 $as_echo "unsupported" >&6; } ;;
12154   *)
12155     CC="$CC $ac_cv_prog_cc_c89"
12156     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12157 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12158 esac
12159 if test "x$ac_cv_prog_cc_c89" != xno; then :
12160
12161 fi
12162
12163 ac_ext=c
12164 ac_cpp='$CPP $CPPFLAGS'
12165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12168
12169 depcc="$CC"   am_compiler_list=
12170
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12172 $as_echo_n "checking dependency style of $depcc... " >&6; }
12173 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12174   $as_echo_n "(cached) " >&6
12175 else
12176   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12177   # We make a subdir and do the tests there.  Otherwise we can end up
12178   # making bogus files that we don't know about and never remove.  For
12179   # instance it was reported that on HP-UX the gcc test will end up
12180   # making a dummy file named 'D' -- because '-MD' means "put the output
12181   # in D".
12182   rm -rf conftest.dir
12183   mkdir conftest.dir
12184   # Copy depcomp to subdir because otherwise we won't find it if we're
12185   # using a relative directory.
12186   cp "$am_depcomp" conftest.dir
12187   cd conftest.dir
12188   # We will build objects and dependencies in a subdirectory because
12189   # it helps to detect inapplicable dependency modes.  For instance
12190   # both Tru64's cc and ICC support -MD to output dependencies as a
12191   # side effect of compilation, but ICC will put the dependencies in
12192   # the current directory while Tru64 will put them in the object
12193   # directory.
12194   mkdir sub
12195
12196   am_cv_CC_dependencies_compiler_type=none
12197   if test "$am_compiler_list" = ""; then
12198      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12199   fi
12200   am__universal=false
12201   case " $depcc " in #(
12202      *\ -arch\ *\ -arch\ *) am__universal=true ;;
12203      esac
12204
12205   for depmode in $am_compiler_list; do
12206     # Setup a source with many dependencies, because some compilers
12207     # like to wrap large dependency lists on column 80 (with \), and
12208     # we should not choose a depcomp mode which is confused by this.
12209     #
12210     # We need to recreate these files for each test, as the compiler may
12211     # overwrite some of them when testing with obscure command lines.
12212     # This happens at least with the AIX C compiler.
12213     : > sub/conftest.c
12214     for i in 1 2 3 4 5 6; do
12215       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12216       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12217       # Solaris 10 /bin/sh.
12218       echo '/* dummy */' > sub/conftst$i.h
12219     done
12220     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12221
12222     # We check with '-c' and '-o' for the sake of the "dashmstdout"
12223     # mode.  It turns out that the SunPro C++ compiler does not properly
12224     # handle '-M -o', and we need to detect this.  Also, some Intel
12225     # versions had trouble with output in subdirs.
12226     am__obj=sub/conftest.${OBJEXT-o}
12227     am__minus_obj="-o $am__obj"
12228     case $depmode in
12229     gcc)
12230       # This depmode causes a compiler race in universal mode.
12231       test "$am__universal" = false || continue
12232       ;;
12233     nosideeffect)
12234       # After this tag, mechanisms are not by side-effect, so they'll
12235       # only be used when explicitly requested.
12236       if test "x$enable_dependency_tracking" = xyes; then
12237         continue
12238       else
12239         break
12240       fi
12241       ;;
12242     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12243       # This compiler won't grok '-c -o', but also, the minuso test has
12244       # not run yet.  These depmodes are late enough in the game, and
12245       # so weak that their functioning should not be impacted.
12246       am__obj=conftest.${OBJEXT-o}
12247       am__minus_obj=
12248       ;;
12249     none) break ;;
12250     esac
12251     if depmode=$depmode \
12252        source=sub/conftest.c object=$am__obj \
12253        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12254        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12255          >/dev/null 2>conftest.err &&
12256        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12257        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12258        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12259        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12260       # icc doesn't choke on unknown options, it will just issue warnings
12261       # or remarks (even with -Werror).  So we grep stderr for any message
12262       # that says an option was ignored or not supported.
12263       # When given -MP, icc 7.0 and 7.1 complain thusly:
12264       #   icc: Command line warning: ignoring option '-M'; no argument required
12265       # The diagnosis changed in icc 8.0:
12266       #   icc: Command line remark: option '-MP' not supported
12267       if (grep 'ignoring option' conftest.err ||
12268           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12269         am_cv_CC_dependencies_compiler_type=$depmode
12270         break
12271       fi
12272     fi
12273   done
12274
12275   cd ..
12276   rm -rf conftest.dir
12277 else
12278   am_cv_CC_dependencies_compiler_type=none
12279 fi
12280
12281 fi
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12283 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12284 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12285
12286  if
12287   test "x$enable_dependency_tracking" != xno \
12288   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12289   am__fastdepCC_TRUE=
12290   am__fastdepCC_FALSE='#'
12291 else
12292   am__fastdepCC_TRUE='#'
12293   am__fastdepCC_FALSE=
12294 fi
12295
12296
12297
12298
12299
12300       if test "X$prefix" = "XNONE"; then
12301     acl_final_prefix="$ac_default_prefix"
12302   else
12303     acl_final_prefix="$prefix"
12304   fi
12305   if test "X$exec_prefix" = "XNONE"; then
12306     acl_final_exec_prefix='${prefix}'
12307   else
12308     acl_final_exec_prefix="$exec_prefix"
12309   fi
12310   acl_save_prefix="$prefix"
12311   prefix="$acl_final_prefix"
12312   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
12313   prefix="$acl_save_prefix"
12314
12315
12316 # Check whether --with-gnu-ld was given.
12317 if test "${with_gnu_ld+set}" = set; then :
12318   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12319 else
12320   with_gnu_ld=no
12321 fi
12322
12323 # Prepare PATH_SEPARATOR.
12324 # The user is always right.
12325 if test "${PATH_SEPARATOR+set}" != set; then
12326   echo "#! /bin/sh" >conf$$.sh
12327   echo  "exit 0"   >>conf$$.sh
12328   chmod +x conf$$.sh
12329   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12330     PATH_SEPARATOR=';'
12331   else
12332     PATH_SEPARATOR=:
12333   fi
12334   rm -f conf$$.sh
12335 fi
12336 ac_prog=ld
12337 if test "$GCC" = yes; then
12338   # Check if gcc -print-prog-name=ld gives a path.
12339   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
12340 $as_echo_n "checking for ld used by GCC... " >&6; }
12341   case $host in
12342   *-*-mingw*)
12343     # gcc leaves a trailing carriage return which upsets mingw
12344     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12345   *)
12346     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12347   esac
12348   case $ac_prog in
12349     # Accept absolute paths.
12350     [\\/]* | [A-Za-z]:[\\/]*)
12351       re_direlt='/[^/][^/]*/\.\./'
12352       # Canonicalize the path of ld
12353       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
12354       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12355         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
12356       done
12357       test -z "$LD" && LD="$ac_prog"
12358       ;;
12359   "")
12360     # If it fails, then pretend we aren't using GCC.
12361     ac_prog=ld
12362     ;;
12363   *)
12364     # If it is relative, then search for the first ld in PATH.
12365     with_gnu_ld=unknown
12366     ;;
12367   esac
12368 elif test "$with_gnu_ld" = yes; then
12369   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12370 $as_echo_n "checking for GNU ld... " >&6; }
12371 else
12372   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12373 $as_echo_n "checking for non-GNU ld... " >&6; }
12374 fi
12375 if ${acl_cv_path_LD+:} false; then :
12376   $as_echo_n "(cached) " >&6
12377 else
12378   if test -z "$LD"; then
12379   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
12380   for ac_dir in $PATH; do
12381     test -z "$ac_dir" && ac_dir=.
12382     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12383       acl_cv_path_LD="$ac_dir/$ac_prog"
12384       # Check to see if the program is GNU ld.  I'd rather use --version,
12385       # but apparently some GNU ld's only accept -v.
12386       # Break only if it was the GNU/non-GNU ld that we prefer.
12387       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
12388       *GNU* | *'with BFD'*)
12389         test "$with_gnu_ld" != no && break ;;
12390       *)
12391         test "$with_gnu_ld" != yes && break ;;
12392       esac
12393     fi
12394   done
12395   IFS="$ac_save_ifs"
12396 else
12397   acl_cv_path_LD="$LD" # Let the user override the test with a path.
12398 fi
12399 fi
12400
12401 LD="$acl_cv_path_LD"
12402 if test -n "$LD"; then
12403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12404 $as_echo "$LD" >&6; }
12405 else
12406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12407 $as_echo "no" >&6; }
12408 fi
12409 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12411 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12412 if ${acl_cv_prog_gnu_ld+:} false; then :
12413   $as_echo_n "(cached) " >&6
12414 else
12415   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12416 case `$LD -v 2>&1 </dev/null` in
12417 *GNU* | *'with BFD'*)
12418   acl_cv_prog_gnu_ld=yes ;;
12419 *)
12420   acl_cv_prog_gnu_ld=no ;;
12421 esac
12422 fi
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
12424 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
12425 with_gnu_ld=$acl_cv_prog_gnu_ld
12426
12427
12428
12429
12430                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
12431 $as_echo_n "checking for shared library run path origin... " >&6; }
12432 if ${acl_cv_rpath+:} false; then :
12433   $as_echo_n "(cached) " >&6
12434 else
12435
12436     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
12437     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
12438     . ./conftest.sh
12439     rm -f ./conftest.sh
12440     acl_cv_rpath=done
12441
12442 fi
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
12444 $as_echo "$acl_cv_rpath" >&6; }
12445   wl="$acl_cv_wl"
12446   acl_libext="$acl_cv_libext"
12447   acl_shlibext="$acl_cv_shlibext"
12448   acl_libname_spec="$acl_cv_libname_spec"
12449   acl_library_names_spec="$acl_cv_library_names_spec"
12450   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
12451   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
12452   acl_hardcode_direct="$acl_cv_hardcode_direct"
12453   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
12454     # Check whether --enable-rpath was given.
12455 if test "${enable_rpath+set}" = set; then :
12456   enableval=$enable_rpath; :
12457 else
12458   enable_rpath=yes
12459 fi
12460
12461
12462
12463
12464   acl_libdirstem=lib
12465   acl_libdirstem2=
12466   case "$host_os" in
12467     solaris*)
12468                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
12469 $as_echo_n "checking for 64-bit host... " >&6; }
12470 if ${gl_cv_solaris_64bit+:} false; then :
12471   $as_echo_n "(cached) " >&6
12472 else
12473   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12474 /* end confdefs.h.  */
12475
12476 #ifdef _LP64
12477 sixtyfour bits
12478 #endif
12479
12480 _ACEOF
12481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12482   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
12483   gl_cv_solaris_64bit=yes
12484 else
12485   gl_cv_solaris_64bit=no
12486 fi
12487 rm -f conftest*
12488
12489
12490 fi
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
12492 $as_echo "$gl_cv_solaris_64bit" >&6; }
12493       if test $gl_cv_solaris_64bit = yes; then
12494         acl_libdirstem=lib/64
12495         case "$host_cpu" in
12496           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
12497           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
12498         esac
12499       fi
12500       ;;
12501     *)
12502       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
12503       if test -n "$searchpath"; then
12504         acl_save_IFS="${IFS=    }"; IFS=":"
12505         for searchdir in $searchpath; do
12506           if test -d "$searchdir"; then
12507             case "$searchdir" in
12508               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
12509               */../ | */.. )
12510                 # Better ignore directories of this form. They are misleading.
12511                 ;;
12512               *) searchdir=`cd "$searchdir" && pwd`
12513                  case "$searchdir" in
12514                    */lib64 ) acl_libdirstem=lib64 ;;
12515                  esac ;;
12516             esac
12517           fi
12518         done
12519         IFS="$acl_save_IFS"
12520       fi
12521       ;;
12522   esac
12523   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536     use_additional=yes
12537
12538   acl_save_prefix="$prefix"
12539   prefix="$acl_final_prefix"
12540   acl_save_exec_prefix="$exec_prefix"
12541   exec_prefix="$acl_final_exec_prefix"
12542
12543     eval additional_includedir=\"$includedir\"
12544     eval additional_libdir=\"$libdir\"
12545
12546   exec_prefix="$acl_save_exec_prefix"
12547   prefix="$acl_save_prefix"
12548
12549
12550 # Check whether --with-libiconv-prefix was given.
12551 if test "${with_libiconv_prefix+set}" = set; then :
12552   withval=$with_libiconv_prefix;
12553     if test "X$withval" = "Xno"; then
12554       use_additional=no
12555     else
12556       if test "X$withval" = "X"; then
12557
12558   acl_save_prefix="$prefix"
12559   prefix="$acl_final_prefix"
12560   acl_save_exec_prefix="$exec_prefix"
12561   exec_prefix="$acl_final_exec_prefix"
12562
12563           eval additional_includedir=\"$includedir\"
12564           eval additional_libdir=\"$libdir\"
12565
12566   exec_prefix="$acl_save_exec_prefix"
12567   prefix="$acl_save_prefix"
12568
12569       else
12570         additional_includedir="$withval/include"
12571         additional_libdir="$withval/$acl_libdirstem"
12572         if test "$acl_libdirstem2" != "$acl_libdirstem" \
12573            && ! test -d "$withval/$acl_libdirstem"; then
12574           additional_libdir="$withval/$acl_libdirstem2"
12575         fi
12576       fi
12577     fi
12578
12579 fi
12580
12581       LIBICONV=
12582   LTLIBICONV=
12583   INCICONV=
12584   LIBICONV_PREFIX=
12585       HAVE_LIBICONV=
12586   rpathdirs=
12587   ltrpathdirs=
12588   names_already_handled=
12589   names_next_round='iconv '
12590   while test -n "$names_next_round"; do
12591     names_this_round="$names_next_round"
12592     names_next_round=
12593     for name in $names_this_round; do
12594       already_handled=
12595       for n in $names_already_handled; do
12596         if test "$n" = "$name"; then
12597           already_handled=yes
12598           break
12599         fi
12600       done
12601       if test -z "$already_handled"; then
12602         names_already_handled="$names_already_handled $name"
12603                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12604         eval value=\"\$HAVE_LIB$uppername\"
12605         if test -n "$value"; then
12606           if test "$value" = yes; then
12607             eval value=\"\$LIB$uppername\"
12608             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
12609             eval value=\"\$LTLIB$uppername\"
12610             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
12611           else
12612                                     :
12613           fi
12614         else
12615                               found_dir=
12616           found_la=
12617           found_so=
12618           found_a=
12619           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
12620           if test -n "$acl_shlibext"; then
12621             shrext=".$acl_shlibext"             # typically: shrext=.so
12622           else
12623             shrext=
12624           fi
12625           if test $use_additional = yes; then
12626             dir="$additional_libdir"
12627                                     if test -n "$acl_shlibext"; then
12628               if test -f "$dir/$libname$shrext"; then
12629                 found_dir="$dir"
12630                 found_so="$dir/$libname$shrext"
12631               else
12632                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12633                   ver=`(cd "$dir" && \
12634                         for f in "$libname$shrext".*; do echo "$f"; done \
12635                         | sed -e "s,^$libname$shrext\\\\.,," \
12636                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12637                         | sed 1q ) 2>/dev/null`
12638                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12639                     found_dir="$dir"
12640                     found_so="$dir/$libname$shrext.$ver"
12641                   fi
12642                 else
12643                   eval library_names=\"$acl_library_names_spec\"
12644                   for f in $library_names; do
12645                     if test -f "$dir/$f"; then
12646                       found_dir="$dir"
12647                       found_so="$dir/$f"
12648                       break
12649                     fi
12650                   done
12651                 fi
12652               fi
12653             fi
12654                         if test "X$found_dir" = "X"; then
12655               if test -f "$dir/$libname.$acl_libext"; then
12656                 found_dir="$dir"
12657                 found_a="$dir/$libname.$acl_libext"
12658               fi
12659             fi
12660             if test "X$found_dir" != "X"; then
12661               if test -f "$dir/$libname.la"; then
12662                 found_la="$dir/$libname.la"
12663               fi
12664             fi
12665           fi
12666           if test "X$found_dir" = "X"; then
12667             for x in $LDFLAGS $LTLIBICONV; do
12668
12669   acl_save_prefix="$prefix"
12670   prefix="$acl_final_prefix"
12671   acl_save_exec_prefix="$exec_prefix"
12672   exec_prefix="$acl_final_exec_prefix"
12673   eval x=\"$x\"
12674   exec_prefix="$acl_save_exec_prefix"
12675   prefix="$acl_save_prefix"
12676
12677               case "$x" in
12678                 -L*)
12679                   dir=`echo "X$x" | sed -e 's/^X-L//'`
12680                                     if test -n "$acl_shlibext"; then
12681                     if test -f "$dir/$libname$shrext"; then
12682                       found_dir="$dir"
12683                       found_so="$dir/$libname$shrext"
12684                     else
12685                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12686                         ver=`(cd "$dir" && \
12687                               for f in "$libname$shrext".*; do echo "$f"; done \
12688                               | sed -e "s,^$libname$shrext\\\\.,," \
12689                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12690                               | sed 1q ) 2>/dev/null`
12691                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12692                           found_dir="$dir"
12693                           found_so="$dir/$libname$shrext.$ver"
12694                         fi
12695                       else
12696                         eval library_names=\"$acl_library_names_spec\"
12697                         for f in $library_names; do
12698                           if test -f "$dir/$f"; then
12699                             found_dir="$dir"
12700                             found_so="$dir/$f"
12701                             break
12702                           fi
12703                         done
12704                       fi
12705                     fi
12706                   fi
12707                                     if test "X$found_dir" = "X"; then
12708                     if test -f "$dir/$libname.$acl_libext"; then
12709                       found_dir="$dir"
12710                       found_a="$dir/$libname.$acl_libext"
12711                     fi
12712                   fi
12713                   if test "X$found_dir" != "X"; then
12714                     if test -f "$dir/$libname.la"; then
12715                       found_la="$dir/$libname.la"
12716                     fi
12717                   fi
12718                   ;;
12719               esac
12720               if test "X$found_dir" != "X"; then
12721                 break
12722               fi
12723             done
12724           fi
12725           if test "X$found_dir" != "X"; then
12726                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
12727             if test "X$found_so" != "X"; then
12728                                                         if test "$enable_rpath" = no \
12729                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
12730                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
12731                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12732               else
12733                                                                                 haveit=
12734                 for x in $ltrpathdirs; do
12735                   if test "X$x" = "X$found_dir"; then
12736                     haveit=yes
12737                     break
12738                   fi
12739                 done
12740                 if test -z "$haveit"; then
12741                   ltrpathdirs="$ltrpathdirs $found_dir"
12742                 fi
12743                                 if test "$acl_hardcode_direct" = yes; then
12744                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12745                 else
12746                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
12747                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12748                                                             haveit=
12749                     for x in $rpathdirs; do
12750                       if test "X$x" = "X$found_dir"; then
12751                         haveit=yes
12752                         break
12753                       fi
12754                     done
12755                     if test -z "$haveit"; then
12756                       rpathdirs="$rpathdirs $found_dir"
12757                     fi
12758                   else
12759                                                                                 haveit=
12760                     for x in $LDFLAGS $LIBICONV; do
12761
12762   acl_save_prefix="$prefix"
12763   prefix="$acl_final_prefix"
12764   acl_save_exec_prefix="$exec_prefix"
12765   exec_prefix="$acl_final_exec_prefix"
12766   eval x=\"$x\"
12767   exec_prefix="$acl_save_exec_prefix"
12768   prefix="$acl_save_prefix"
12769
12770                       if test "X$x" = "X-L$found_dir"; then
12771                         haveit=yes
12772                         break
12773                       fi
12774                     done
12775                     if test -z "$haveit"; then
12776                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
12777                     fi
12778                     if test "$acl_hardcode_minus_L" != no; then
12779                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12780                     else
12781                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12782                     fi
12783                   fi
12784                 fi
12785               fi
12786             else
12787               if test "X$found_a" != "X"; then
12788                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
12789               else
12790                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
12791               fi
12792             fi
12793                         additional_includedir=
12794             case "$found_dir" in
12795               */$acl_libdirstem | */$acl_libdirstem/)
12796                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12797                 if test "$name" = 'iconv'; then
12798                   LIBICONV_PREFIX="$basedir"
12799                 fi
12800                 additional_includedir="$basedir/include"
12801                 ;;
12802               */$acl_libdirstem2 | */$acl_libdirstem2/)
12803                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
12804                 if test "$name" = 'iconv'; then
12805                   LIBICONV_PREFIX="$basedir"
12806                 fi
12807                 additional_includedir="$basedir/include"
12808                 ;;
12809             esac
12810             if test "X$additional_includedir" != "X"; then
12811                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
12812                 haveit=
12813                 if test "X$additional_includedir" = "X/usr/local/include"; then
12814                   if test -n "$GCC"; then
12815                     case $host_os in
12816                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12817                     esac
12818                   fi
12819                 fi
12820                 if test -z "$haveit"; then
12821                   for x in $CPPFLAGS $INCICONV; do
12822
12823   acl_save_prefix="$prefix"
12824   prefix="$acl_final_prefix"
12825   acl_save_exec_prefix="$exec_prefix"
12826   exec_prefix="$acl_final_exec_prefix"
12827   eval x=\"$x\"
12828   exec_prefix="$acl_save_exec_prefix"
12829   prefix="$acl_save_prefix"
12830
12831                     if test "X$x" = "X-I$additional_includedir"; then
12832                       haveit=yes
12833                       break
12834                     fi
12835                   done
12836                   if test -z "$haveit"; then
12837                     if test -d "$additional_includedir"; then
12838                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
12839                     fi
12840                   fi
12841                 fi
12842               fi
12843             fi
12844                         if test -n "$found_la"; then
12845                                                         save_libdir="$libdir"
12846               case "$found_la" in
12847                 */* | *\\*) . "$found_la" ;;
12848                 *) . "./$found_la" ;;
12849               esac
12850               libdir="$save_libdir"
12851                             for dep in $dependency_libs; do
12852                 case "$dep" in
12853                   -L*)
12854                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12855                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
12856                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
12857                       haveit=
12858                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
12859                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
12860                         if test -n "$GCC"; then
12861                           case $host_os in
12862                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12863                           esac
12864                         fi
12865                       fi
12866                       if test -z "$haveit"; then
12867                         haveit=
12868                         for x in $LDFLAGS $LIBICONV; do
12869
12870   acl_save_prefix="$prefix"
12871   prefix="$acl_final_prefix"
12872   acl_save_exec_prefix="$exec_prefix"
12873   exec_prefix="$acl_final_exec_prefix"
12874   eval x=\"$x\"
12875   exec_prefix="$acl_save_exec_prefix"
12876   prefix="$acl_save_prefix"
12877
12878                           if test "X$x" = "X-L$additional_libdir"; then
12879                             haveit=yes
12880                             break
12881                           fi
12882                         done
12883                         if test -z "$haveit"; then
12884                           if test -d "$additional_libdir"; then
12885                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
12886                           fi
12887                         fi
12888                         haveit=
12889                         for x in $LDFLAGS $LTLIBICONV; do
12890
12891   acl_save_prefix="$prefix"
12892   prefix="$acl_final_prefix"
12893   acl_save_exec_prefix="$exec_prefix"
12894   exec_prefix="$acl_final_exec_prefix"
12895   eval x=\"$x\"
12896   exec_prefix="$acl_save_exec_prefix"
12897   prefix="$acl_save_prefix"
12898
12899                           if test "X$x" = "X-L$additional_libdir"; then
12900                             haveit=yes
12901                             break
12902                           fi
12903                         done
12904                         if test -z "$haveit"; then
12905                           if test -d "$additional_libdir"; then
12906                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
12907                           fi
12908                         fi
12909                       fi
12910                     fi
12911                     ;;
12912                   -R*)
12913                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
12914                     if test "$enable_rpath" != no; then
12915                                                                   haveit=
12916                       for x in $rpathdirs; do
12917                         if test "X$x" = "X$dir"; then
12918                           haveit=yes
12919                           break
12920                         fi
12921                       done
12922                       if test -z "$haveit"; then
12923                         rpathdirs="$rpathdirs $dir"
12924                       fi
12925                                                                   haveit=
12926                       for x in $ltrpathdirs; do
12927                         if test "X$x" = "X$dir"; then
12928                           haveit=yes
12929                           break
12930                         fi
12931                       done
12932                       if test -z "$haveit"; then
12933                         ltrpathdirs="$ltrpathdirs $dir"
12934                       fi
12935                     fi
12936                     ;;
12937                   -l*)
12938                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12939                     ;;
12940                   *.la)
12941                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12942                     ;;
12943                   *)
12944                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
12945                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
12946                     ;;
12947                 esac
12948               done
12949             fi
12950           else
12951                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12952             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
12953           fi
12954         fi
12955       fi
12956     done
12957   done
12958   if test "X$rpathdirs" != "X"; then
12959     if test -n "$acl_hardcode_libdir_separator"; then
12960                         alldirs=
12961       for found_dir in $rpathdirs; do
12962         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
12963       done
12964             acl_save_libdir="$libdir"
12965       libdir="$alldirs"
12966       eval flag=\"$acl_hardcode_libdir_flag_spec\"
12967       libdir="$acl_save_libdir"
12968       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12969     else
12970             for found_dir in $rpathdirs; do
12971         acl_save_libdir="$libdir"
12972         libdir="$found_dir"
12973         eval flag=\"$acl_hardcode_libdir_flag_spec\"
12974         libdir="$acl_save_libdir"
12975         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12976       done
12977     fi
12978   fi
12979   if test "X$ltrpathdirs" != "X"; then
12980             for found_dir in $ltrpathdirs; do
12981       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
12982     done
12983   fi
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996           am_save_CPPFLAGS="$CPPFLAGS"
12997
12998   for element in $INCICONV; do
12999     haveit=
13000     for x in $CPPFLAGS; do
13001
13002   acl_save_prefix="$prefix"
13003   prefix="$acl_final_prefix"
13004   acl_save_exec_prefix="$exec_prefix"
13005   exec_prefix="$acl_final_exec_prefix"
13006   eval x=\"$x\"
13007   exec_prefix="$acl_save_exec_prefix"
13008   prefix="$acl_save_prefix"
13009
13010       if test "X$x" = "X$element"; then
13011         haveit=yes
13012         break
13013       fi
13014     done
13015     if test -z "$haveit"; then
13016       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13017     fi
13018   done
13019
13020
13021   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
13022 $as_echo_n "checking for iconv... " >&6; }
13023 if ${am_cv_func_iconv+:} false; then :
13024   $as_echo_n "(cached) " >&6
13025 else
13026
13027     am_cv_func_iconv="no, consider installing GNU libiconv"
13028     am_cv_lib_iconv=no
13029     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13030 /* end confdefs.h.  */
13031 #include <stdlib.h>
13032 #include <iconv.h>
13033 int
13034 main ()
13035 {
13036 iconv_t cd = iconv_open("","");
13037        iconv(cd,NULL,NULL,NULL,NULL);
13038        iconv_close(cd);
13039   ;
13040   return 0;
13041 }
13042 _ACEOF
13043 if ac_fn_c_try_link "$LINENO"; then :
13044   am_cv_func_iconv=yes
13045 fi
13046 rm -f core conftest.err conftest.$ac_objext \
13047     conftest$ac_exeext conftest.$ac_ext
13048     if test "$am_cv_func_iconv" != yes; then
13049       am_save_LIBS="$LIBS"
13050       LIBS="$LIBS $LIBICONV"
13051       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13052 /* end confdefs.h.  */
13053 #include <stdlib.h>
13054 #include <iconv.h>
13055 int
13056 main ()
13057 {
13058 iconv_t cd = iconv_open("","");
13059          iconv(cd,NULL,NULL,NULL,NULL);
13060          iconv_close(cd);
13061   ;
13062   return 0;
13063 }
13064 _ACEOF
13065 if ac_fn_c_try_link "$LINENO"; then :
13066   am_cv_lib_iconv=yes
13067         am_cv_func_iconv=yes
13068 fi
13069 rm -f core conftest.err conftest.$ac_objext \
13070     conftest$ac_exeext conftest.$ac_ext
13071       LIBS="$am_save_LIBS"
13072     fi
13073
13074 fi
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
13076 $as_echo "$am_cv_func_iconv" >&6; }
13077   if test "$am_cv_func_iconv" = yes; then
13078     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
13079 $as_echo_n "checking for working iconv... " >&6; }
13080 if ${am_cv_func_iconv_works+:} false; then :
13081   $as_echo_n "(cached) " >&6
13082 else
13083
13084             am_save_LIBS="$LIBS"
13085       if test $am_cv_lib_iconv = yes; then
13086         LIBS="$LIBS $LIBICONV"
13087       fi
13088       if test "$cross_compiling" = yes; then :
13089   case "$host_os" in
13090            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
13091            *)            am_cv_func_iconv_works="guessing yes" ;;
13092          esac
13093 else
13094   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13095 /* end confdefs.h.  */
13096
13097 #include <iconv.h>
13098 #include <string.h>
13099 int main ()
13100 {
13101   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
13102      returns.  */
13103   {
13104     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
13105     if (cd_utf8_to_88591 != (iconv_t)(-1))
13106       {
13107         static const char input[] = "\342\202\254"; /* EURO SIGN */
13108         char buf[10];
13109         const char *inptr = input;
13110         size_t inbytesleft = strlen (input);
13111         char *outptr = buf;
13112         size_t outbytesleft = sizeof (buf);
13113         size_t res = iconv (cd_utf8_to_88591,
13114                             (char **) &inptr, &inbytesleft,
13115                             &outptr, &outbytesleft);
13116         if (res == 0)
13117           return 1;
13118       }
13119   }
13120   /* Test against Solaris 10 bug: Failures are not distinguishable from
13121      successful returns.  */
13122   {
13123     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
13124     if (cd_ascii_to_88591 != (iconv_t)(-1))
13125       {
13126         static const char input[] = "\263";
13127         char buf[10];
13128         const char *inptr = input;
13129         size_t inbytesleft = strlen (input);
13130         char *outptr = buf;
13131         size_t outbytesleft = sizeof (buf);
13132         size_t res = iconv (cd_ascii_to_88591,
13133                             (char **) &inptr, &inbytesleft,
13134                             &outptr, &outbytesleft);
13135         if (res == 0)
13136           return 1;
13137       }
13138   }
13139 #if 0 /* This bug could be worked around by the caller.  */
13140   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
13141   {
13142     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
13143     if (cd_88591_to_utf8 != (iconv_t)(-1))
13144       {
13145         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
13146         char buf[50];
13147         const char *inptr = input;
13148         size_t inbytesleft = strlen (input);
13149         char *outptr = buf;
13150         size_t outbytesleft = sizeof (buf);
13151         size_t res = iconv (cd_88591_to_utf8,
13152                             (char **) &inptr, &inbytesleft,
13153                             &outptr, &outbytesleft);
13154         if ((int)res > 0)
13155           return 1;
13156       }
13157   }
13158 #endif
13159   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
13160      provided.  */
13161   if (/* Try standardized names.  */
13162       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
13163       /* Try IRIX, OSF/1 names.  */
13164       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
13165       /* Try AIX names.  */
13166       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
13167       /* Try HP-UX names.  */
13168       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
13169     return 1;
13170   return 0;
13171 }
13172 _ACEOF
13173 if ac_fn_c_try_run "$LINENO"; then :
13174   am_cv_func_iconv_works=yes
13175 else
13176   am_cv_func_iconv_works=no
13177 fi
13178 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13179   conftest.$ac_objext conftest.beam conftest.$ac_ext
13180 fi
13181
13182       LIBS="$am_save_LIBS"
13183
13184 fi
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
13186 $as_echo "$am_cv_func_iconv_works" >&6; }
13187     case "$am_cv_func_iconv_works" in
13188       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
13189       *)   am_func_iconv=yes ;;
13190     esac
13191   else
13192     am_func_iconv=no am_cv_lib_iconv=no
13193   fi
13194   if test "$am_func_iconv" = yes; then
13195
13196 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
13197
13198   fi
13199   if test "$am_cv_lib_iconv" = yes; then
13200     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
13201 $as_echo_n "checking how to link with libiconv... " >&6; }
13202     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
13203 $as_echo "$LIBICONV" >&6; }
13204   else
13205             CPPFLAGS="$am_save_CPPFLAGS"
13206     LIBICONV=
13207     LTLIBICONV=
13208   fi
13209
13210
13211
13212   if test "$am_cv_func_iconv" = yes; then
13213     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
13214 $as_echo_n "checking for iconv declaration... " >&6; }
13215     if ${am_cv_proto_iconv+:} false; then :
13216   $as_echo_n "(cached) " >&6
13217 else
13218
13219       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13220 /* end confdefs.h.  */
13221
13222 #include <stdlib.h>
13223 #include <iconv.h>
13224 extern
13225 #ifdef __cplusplus
13226 "C"
13227 #endif
13228 #if defined(__STDC__) || defined(__cplusplus)
13229 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
13230 #else
13231 size_t iconv();
13232 #endif
13233
13234 int
13235 main ()
13236 {
13237
13238   ;
13239   return 0;
13240 }
13241 _ACEOF
13242 if ac_fn_c_try_compile "$LINENO"; then :
13243   am_cv_proto_iconv_arg1=""
13244 else
13245   am_cv_proto_iconv_arg1="const"
13246 fi
13247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13248       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
13249 fi
13250
13251     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
13252     { $as_echo "$as_me:${as_lineno-$LINENO}: result:
13253          $am_cv_proto_iconv" >&5
13254 $as_echo "
13255          $am_cv_proto_iconv" >&6; }
13256
13257 cat >>confdefs.h <<_ACEOF
13258 #define ICONV_CONST $am_cv_proto_iconv_arg1
13259 _ACEOF
13260
13261   fi
13262
13263 if test "x$am_cv_func_iconv" != "xyes"; then
13264         as_fn_error $? "Cannot find the iconv() function.
13265         iconv() is used to convert between UTF-8 and UTF-16 encodings of WIM
13266         filenames and XML data.  Wimlib cannot be compiled without it.  iconv()
13267         is available in the latest version of glibc and sometimes in other
13268         libraries." "$LINENO" 5
13269 fi
13270
13271
13272 # Check whether --with-pkgconfigdir was given.
13273 if test "${with_pkgconfigdir+set}" = set; then :
13274   withval=$with_pkgconfigdir; pkgconfigdir=$withval
13275 else
13276   pkgconfigdir='${libdir}/pkgconfig'
13277 fi
13278
13279
13280
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseFile in -lxml2" >&5
13282 $as_echo_n "checking for xmlParseFile in -lxml2... " >&6; }
13283 if ${ac_cv_lib_xml2_xmlParseFile+:} false; then :
13284   $as_echo_n "(cached) " >&6
13285 else
13286   ac_check_lib_save_LIBS=$LIBS
13287 LIBS="-lxml2  $LIBS"
13288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13289 /* end confdefs.h.  */
13290
13291 /* Override any GCC internal prototype to avoid an error.
13292    Use char because int might match the return type of a GCC
13293    builtin and then its argument prototype would still apply.  */
13294 #ifdef __cplusplus
13295 extern "C"
13296 #endif
13297 char xmlParseFile ();
13298 int
13299 main ()
13300 {
13301 return xmlParseFile ();
13302   ;
13303   return 0;
13304 }
13305 _ACEOF
13306 if ac_fn_c_try_link "$LINENO"; then :
13307   ac_cv_lib_xml2_xmlParseFile=yes
13308 else
13309   ac_cv_lib_xml2_xmlParseFile=no
13310 fi
13311 rm -f core conftest.err conftest.$ac_objext \
13312     conftest$ac_exeext conftest.$ac_ext
13313 LIBS=$ac_check_lib_save_LIBS
13314 fi
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseFile" >&5
13316 $as_echo "$ac_cv_lib_xml2_xmlParseFile" >&6; }
13317 if test "x$ac_cv_lib_xml2_xmlParseFile" = xyes; then :
13318   have_libxml=true
13319 else
13320   as_fn_error $? "\"cannot find libxml2\"" "$LINENO" 5
13321 fi
13322
13323 LIBXML2_LDADD=`pkg-config libxml-2.0 --libs`
13324 LIBXML2_CFLAGS=`pkg-config libxml-2.0 --cflags`
13325 LIBXML2_LDADD=$LIBXML2_LDADD
13326
13327 LIBXML2_CFLAGS=$LIBXML2_CFLAGS
13328
13329
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include debugging messages" >&5
13331 $as_echo_n "checking whether to include debugging messages... " >&6; }
13332 # Check whether --enable-debug was given.
13333 if test "${enable_debug+set}" = set; then :
13334   enableval=$enable_debug; ENABLE_DEBUG=$enableval
13335 else
13336   ENABLE_DEBUG=no
13337
13338 fi
13339
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_DEBUG" >&5
13341 $as_echo "$ENABLE_DEBUG" >&6; }
13342 if test "x$ENABLE_DEBUG" = "xyes"; then
13343
13344 $as_echo "#define ENABLE_DEBUG 1" >>confdefs.h
13345
13346 fi
13347
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include more debugging messages" >&5
13349 $as_echo_n "checking whether to include more debugging messages... " >&6; }
13350 # Check whether --enable-more_debug was given.
13351 if test "${enable_more_debug+set}" = set; then :
13352   enableval=$enable_more_debug; ENABLE_MORE_DEBUG=$enableval
13353 else
13354   ENABLE_MORE_DEBUG=no
13355
13356 fi
13357
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_MORE_DEBUG" >&5
13359 $as_echo "$ENABLE_MORE_DEBUG" >&6; }
13360 if test "x$ENABLE_MORE_DEBUG" = "xyes"; then
13361
13362 $as_echo "#define ENABLE_MORE_DEBUG 1" >>confdefs.h
13363
13364 fi
13365
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include error messages" >&5
13367 $as_echo_n "checking whether to include error messages... " >&6; }
13368 # Check whether --enable-error_messages was given.
13369 if test "${enable_error_messages+set}" = set; then :
13370   enableval=$enable_error_messages; ENABLE_ERROR_MESSAGES=$enableval
13371 else
13372   ENABLE_ERROR_MESSAGES=yes
13373
13374 fi
13375
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_ERROR_MESSAGES" >&5
13377 $as_echo "$ENABLE_ERROR_MESSAGES" >&6; }
13378 if test "x$ENABLE_ERROR_MESSAGES" = "xyes"; then
13379
13380 $as_echo "#define ENABLE_ERROR_MESSAGES 1" >>confdefs.h
13381
13382 fi
13383
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support custom memory allocation functions" >&5
13385 $as_echo_n "checking whether to support custom memory allocation functions... " >&6; }
13386 # Check whether --enable-custom_memory_allocator was given.
13387 if test "${enable_custom_memory_allocator+set}" = set; then :
13388   enableval=$enable_custom_memory_allocator; ENABLE_CUSTOM_MEMORY_ALLOCATOR=$enableval
13389 else
13390   ENABLE_CUSTOM_MEMORY_ALLOCATOR=yes
13391
13392 fi
13393
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_CUSTOM_MEMORY_ALLOCATOR" >&5
13395 $as_echo "$ENABLE_CUSTOM_MEMORY_ALLOCATOR" >&6; }
13396 if test "x$ENABLE_CUSTOM_MEMORY_ALLOCATOR" = "xyes"; then
13397
13398 $as_echo "#define ENABLE_CUSTOM_MEMORY_ALLOCATOR 1" >>confdefs.h
13399
13400 fi
13401
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include assertions" >&5
13403 $as_echo_n "checking whether to include assertions... " >&6; }
13404 # Check whether --enable-assertions was given.
13405 if test "${enable_assertions+set}" = set; then :
13406   enableval=$enable_assertions; ENABLE_ASSERTIONS=$enableval
13407 else
13408   ENABLE_ASSERTIONS=yes
13409
13410 fi
13411
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_ASSERTIONS" >&5
13413 $as_echo "$ENABLE_ASSERTIONS" >&6; }
13414 if test "x$ENABLE_ASSERTIONS" = "xyes"; then
13415
13416 $as_echo "#define ENABLE_ASSERTIONS 1" >>confdefs.h
13417
13418 fi
13419
13420
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include compression verification" >&5
13422 $as_echo_n "checking whether to include compression verification... " >&6; }
13423 # Check whether --enable-verify_compression was given.
13424 if test "${enable_verify_compression+set}" = set; then :
13425   enableval=$enable_verify_compression; ENABLE_VERIFY_COMPRESSION=$enableval
13426 else
13427   ENABLE_VERIFY_COMPRESSION=yes
13428
13429 fi
13430
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_VERIFY_COMPRESSION" >&5
13432 $as_echo "$ENABLE_VERIFY_COMPRESSION" >&6; }
13433 if test "x$ENABLE_VERIFY_COMPRESSION" = "xyes"; then
13434
13435 $as_echo "#define ENABLE_VERIFY_COMPRESSION 1" >>confdefs.h
13436
13437 fi
13438
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for mounting WIMs" >&5
13440 $as_echo_n "checking whether to include support for mounting WIMs... " >&6; }
13441
13442 # Check whether --with-fuse was given.
13443 if test "${with_fuse+set}" = set; then :
13444   withval=$with_fuse; WITH_FUSE=$withval
13445 else
13446   WITH_FUSE=yes
13447
13448 fi
13449
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_FUSE" >&5
13451 $as_echo "$WITH_FUSE" >&6; }
13452 if test "x$WITH_FUSE" = "xyes"; then
13453
13454 $as_echo "#define WITH_FUSE 1" >>confdefs.h
13455
13456
13457
13458         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main_real in -lfuse" >&5
13459 $as_echo_n "checking for fuse_main_real in -lfuse... " >&6; }
13460 if ${ac_cv_lib_fuse_fuse_main_real+:} false; then :
13461   $as_echo_n "(cached) " >&6
13462 else
13463   ac_check_lib_save_LIBS=$LIBS
13464 LIBS="-lfuse  $LIBS"
13465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13466 /* end confdefs.h.  */
13467
13468 /* Override any GCC internal prototype to avoid an error.
13469    Use char because int might match the return type of a GCC
13470    builtin and then its argument prototype would still apply.  */
13471 #ifdef __cplusplus
13472 extern "C"
13473 #endif
13474 char fuse_main_real ();
13475 int
13476 main ()
13477 {
13478 return fuse_main_real ();
13479   ;
13480   return 0;
13481 }
13482 _ACEOF
13483 if ac_fn_c_try_link "$LINENO"; then :
13484   ac_cv_lib_fuse_fuse_main_real=yes
13485 else
13486   ac_cv_lib_fuse_fuse_main_real=no
13487 fi
13488 rm -f core conftest.err conftest.$ac_objext \
13489     conftest$ac_exeext conftest.$ac_ext
13490 LIBS=$ac_check_lib_save_LIBS
13491 fi
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main_real" >&5
13493 $as_echo "$ac_cv_lib_fuse_fuse_main_real" >&6; }
13494 if test "x$ac_cv_lib_fuse_fuse_main_real" = xyes; then :
13495   have_fuse=true
13496 else
13497   as_fn_error $? "Cannot find libfuse.
13498         Without libfuse, WIMLIB cannot include support for mounting WIMs.  You
13499         should either install libfuse, or configure with --without-fuse to
13500         disable support for mounting WIMs." "$LINENO" 5
13501
13502 fi
13503
13504         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mq_open in -lrt" >&5
13505 $as_echo_n "checking for mq_open in -lrt... " >&6; }
13506 if ${ac_cv_lib_rt_mq_open+:} false; then :
13507   $as_echo_n "(cached) " >&6
13508 else
13509   ac_check_lib_save_LIBS=$LIBS
13510 LIBS="-lrt  $LIBS"
13511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13512 /* end confdefs.h.  */
13513
13514 /* Override any GCC internal prototype to avoid an error.
13515    Use char because int might match the return type of a GCC
13516    builtin and then its argument prototype would still apply.  */
13517 #ifdef __cplusplus
13518 extern "C"
13519 #endif
13520 char mq_open ();
13521 int
13522 main ()
13523 {
13524 return mq_open ();
13525   ;
13526   return 0;
13527 }
13528 _ACEOF
13529 if ac_fn_c_try_link "$LINENO"; then :
13530   ac_cv_lib_rt_mq_open=yes
13531 else
13532   ac_cv_lib_rt_mq_open=no
13533 fi
13534 rm -f core conftest.err conftest.$ac_objext \
13535     conftest$ac_exeext conftest.$ac_ext
13536 LIBS=$ac_check_lib_save_LIBS
13537 fi
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_mq_open" >&5
13539 $as_echo "$ac_cv_lib_rt_mq_open" >&6; }
13540 if test "x$ac_cv_lib_rt_mq_open" = xyes; then :
13541   have_posix_mq=true
13542 else
13543   as_fn_error $? "Cannot find librt for POSIX message queue
13544         functions.  Without these functions, WIMLIB cannot include support for
13545         mounting WIMs.  You should either update your C library to a recent
13546         version of glibc, or configure with --without-fuse to disable support
13547         for mounting WIMs." "$LINENO" 5
13548
13549 fi
13550
13551         LIBFUSE_LDADD="`pkg-config --libs fuse` -lrt"
13552         LIBFUSE_CFLAGS="`pkg-config --cflags fuse`"
13553 else
13554         LIBFUSE_LDADD=
13555         LIBFUSE_CFLAGS=
13556 fi
13557 LIBFUSE_LDADD=$LIBFUSE_LDADD
13558
13559 LIBFUSE_CFLAGS=$LIBFUSE_CFLAGS
13560
13561
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use SSSE3-accelerated SHA1 " >&5
13563 $as_echo_n "checking whether to use SSSE3-accelerated SHA1 ... " >&6; }
13564 # Check whether --enable-ssse3-sha1 was given.
13565 if test "${enable_ssse3_sha1+set}" = set; then :
13566   enableval=$enable_ssse3_sha1; ENABLE_SSSE3_SHA1=$enableval
13567 else
13568   ENABLE_SSSE3_SHA1=no
13569
13570 fi
13571
13572
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_SSSE3_SHA1" >&5
13574 $as_echo "$ENABLE_SSSE3_SHA1" >&6; }
13575 if test "x$ENABLE_SSSE3_SHA1" = "xyes"; then
13576
13577 $as_echo "#define ENABLE_SSSE3_SHA1 1" >>confdefs.h
13578
13579         SSSE3_SHA1_OBJ=sha1-ssse3.lo
13580
13581 for ac_prog in nasm nasmw
13582 do
13583   # Extract the first word of "$ac_prog", so it can be a program name with args.
13584 set dummy $ac_prog; ac_word=$2
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13586 $as_echo_n "checking for $ac_word... " >&6; }
13587 if ${ac_cv_prog_nasm+:} false; then :
13588   $as_echo_n "(cached) " >&6
13589 else
13590   if test -n "$nasm"; then
13591   ac_cv_prog_nasm="$nasm" # Let the user override the test.
13592 else
13593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13594 for as_dir in $PATH
13595 do
13596   IFS=$as_save_IFS
13597   test -z "$as_dir" && as_dir=.
13598     for ac_exec_ext in '' $ac_executable_extensions; do
13599   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13600     ac_cv_prog_nasm="$ac_prog"
13601     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13602     break 2
13603   fi
13604 done
13605   done
13606 IFS=$as_save_IFS
13607
13608 fi
13609 fi
13610 nasm=$ac_cv_prog_nasm
13611 if test -n "$nasm"; then
13612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nasm" >&5
13613 $as_echo "$nasm" >&6; }
13614 else
13615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13616 $as_echo "no" >&6; }
13617 fi
13618
13619
13620   test -n "$nasm" && break
13621 done
13622 test -n "$nasm" || nasm="no"
13623
13624 if test "x$nasm" = "xno" ;
13625 then
13626         as_fn_error $? "NASM assembler not found" "$LINENO" 5
13627 fi
13628
13629         NASM=$nasm
13630
13631 else
13632         SSSE3_SHA1_OBJ=
13633 fi
13634 SSSE3_SHA1_OBJ=$SSSE3_SHA1_OBJ
13635
13636
13637 if test "x$ENABLE_SSSE3_SHA1" = "xyes"; then
13638         WITH_LIBCRYPTO=no
13639 else
13640
13641 # Check whether --with-libcrypto was given.
13642 if test "${with_libcrypto+set}" = set; then :
13643   withval=$with_libcrypto; WITH_LIBCRYPTO=$withval
13644 else
13645   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1 in -lcrypto" >&5
13646 $as_echo_n "checking for SHA1 in -lcrypto... " >&6; }
13647 if ${ac_cv_lib_crypto_SHA1+:} false; then :
13648   $as_echo_n "(cached) " >&6
13649 else
13650   ac_check_lib_save_LIBS=$LIBS
13651 LIBS="-lcrypto  $LIBS"
13652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13653 /* end confdefs.h.  */
13654
13655 /* Override any GCC internal prototype to avoid an error.
13656    Use char because int might match the return type of a GCC
13657    builtin and then its argument prototype would still apply.  */
13658 #ifdef __cplusplus
13659 extern "C"
13660 #endif
13661 char SHA1 ();
13662 int
13663 main ()
13664 {
13665 return SHA1 ();
13666   ;
13667   return 0;
13668 }
13669 _ACEOF
13670 if ac_fn_c_try_link "$LINENO"; then :
13671   ac_cv_lib_crypto_SHA1=yes
13672 else
13673   ac_cv_lib_crypto_SHA1=no
13674 fi
13675 rm -f core conftest.err conftest.$ac_objext \
13676     conftest$ac_exeext conftest.$ac_ext
13677 LIBS=$ac_check_lib_save_LIBS
13678 fi
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SHA1" >&5
13680 $as_echo "$ac_cv_lib_crypto_SHA1" >&6; }
13681 if test "x$ac_cv_lib_crypto_SHA1" = xyes; then :
13682   WITH_LIBCRYPTO=yes
13683 else
13684   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libcrypto: using stand-alone SHA1 code instead of OpenSSL" >&5
13685 $as_echo "$as_me: WARNING: Cannot find libcrypto: using stand-alone SHA1 code instead of OpenSSL" >&2;}
13686                      WITH_LIBCRYPTO=no
13687
13688 fi
13689
13690 fi
13691
13692 fi
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use SHA1 function from system libcrypto" >&5
13694 $as_echo_n "checking whether to use SHA1 function from system libcrypto... " >&6; }
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_LIBCRYPTO" >&5
13696 $as_echo "$WITH_LIBCRYPTO" >&6; }
13697
13698 if test "x$WITH_LIBCRYPTO" = "xyes" -a "x$ENABLE_SSSE3_SHA1" = "xno"; then
13699
13700 $as_echo "#define WITH_LIBCRYPTO 1" >>confdefs.h
13701
13702         LIBCRYPTO_LDADD=`pkg-config --libs libcrypto 2>/dev/null`
13703         if test $? -ne 0; then
13704                 LIBCRYPTO_LDADD=-lcrypto;
13705         fi
13706         LIBCRYPTO_CFLAGS=`pkg-config --cflags libcrypto 2>/dev/null`
13707 else
13708         LIBCRYPTO_LDADD=
13709         LIBCRYPTO_CFLAGS=
13710 fi
13711 LIBCRYPTO_LDADD=$LIBCRYPTO_LDADD
13712
13713 LIBCRYPTO_CFLAGS=$LIBCRYPTO_CFLAGS
13714
13715 SHA1_SOURCES=$SHA1_SOURCES
13716
13717
13718 cat >confcache <<\_ACEOF
13719 # This file is a shell script that caches the results of configure
13720 # tests run on this system so they can be shared between configure
13721 # scripts and configure runs, see configure's option --config-cache.
13722 # It is not useful on other systems.  If it contains results you don't
13723 # want to keep, you may remove or edit it.
13724 #
13725 # config.status only pays attention to the cache file if you give it
13726 # the --recheck option to rerun configure.
13727 #
13728 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13729 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13730 # following values.
13731
13732 _ACEOF
13733
13734 # The following way of writing the cache mishandles newlines in values,
13735 # but we know of no workaround that is simple, portable, and efficient.
13736 # So, we kill variables containing newlines.
13737 # Ultrix sh set writes to stderr and can't be redirected directly,
13738 # and sets the high bit in the cache file unless we assign to the vars.
13739 (
13740   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13741     eval ac_val=\$$ac_var
13742     case $ac_val in #(
13743     *${as_nl}*)
13744       case $ac_var in #(
13745       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13746 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13747       esac
13748       case $ac_var in #(
13749       _ | IFS | as_nl) ;; #(
13750       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13751       *) { eval $ac_var=; unset $ac_var;} ;;
13752       esac ;;
13753     esac
13754   done
13755
13756   (set) 2>&1 |
13757     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13758     *${as_nl}ac_space=\ *)
13759       # `set' does not quote correctly, so add quotes: double-quote
13760       # substitution turns \\\\ into \\, and sed turns \\ into \.
13761       sed -n \
13762         "s/'/'\\\\''/g;
13763           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13764       ;; #(
13765     *)
13766       # `set' quotes correctly as required by POSIX, so do not add quotes.
13767       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13768       ;;
13769     esac |
13770     sort
13771 ) |
13772   sed '
13773      /^ac_cv_env_/b end
13774      t clear
13775      :clear
13776      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13777      t end
13778      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13779      :end' >>confcache
13780 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13781   if test -w "$cache_file"; then
13782     if test "x$cache_file" != "x/dev/null"; then
13783       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13784 $as_echo "$as_me: updating cache $cache_file" >&6;}
13785       if test ! -f "$cache_file" || test -h "$cache_file"; then
13786         cat confcache >"$cache_file"
13787       else
13788         case $cache_file in #(
13789         */* | ?:*)
13790           mv -f confcache "$cache_file"$$ &&
13791           mv -f "$cache_file"$$ "$cache_file" ;; #(
13792         *)
13793           mv -f confcache "$cache_file" ;;
13794         esac
13795       fi
13796     fi
13797   else
13798     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13799 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13800   fi
13801 fi
13802 rm -f confcache
13803
13804 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13805 # Let make expand exec_prefix.
13806 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13807
13808 DEFS=-DHAVE_CONFIG_H
13809
13810 ac_libobjs=
13811 ac_ltlibobjs=
13812 U=
13813 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13814   # 1. Remove the extension, and $U if already installed.
13815   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13816   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13817   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13818   #    will be set to the directory where LIBOBJS objects are built.
13819   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13820   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13821 done
13822 LIBOBJS=$ac_libobjs
13823
13824 LTLIBOBJS=$ac_ltlibobjs
13825
13826
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13828 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13829    if test -n "$am_sleep_pid"; then
13830      # Hide warnings about reused PIDs.
13831      wait $am_sleep_pid 2>/dev/null
13832    fi
13833    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13834 $as_echo "done" >&6; }
13835  if test -n "$EXEEXT"; then
13836   am__EXEEXT_TRUE=
13837   am__EXEEXT_FALSE='#'
13838 else
13839   am__EXEEXT_TRUE='#'
13840   am__EXEEXT_FALSE=
13841 fi
13842
13843 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13844   as_fn_error $? "conditional \"AMDEP\" was never defined.
13845 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13846 fi
13847 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13848   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13849 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13850 fi
13851
13852 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13853   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13854 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13855 fi
13856
13857 : "${CONFIG_STATUS=./config.status}"
13858 ac_write_fail=0
13859 ac_clean_files_save=$ac_clean_files
13860 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13862 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13863 as_write_fail=0
13864 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13865 #! $SHELL
13866 # Generated by $as_me.
13867 # Run this file to recreate the current configuration.
13868 # Compiler output produced by configure, useful for debugging
13869 # configure, is in config.log if it exists.
13870
13871 debug=false
13872 ac_cs_recheck=false
13873 ac_cs_silent=false
13874
13875 SHELL=\${CONFIG_SHELL-$SHELL}
13876 export SHELL
13877 _ASEOF
13878 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13879 ## -------------------- ##
13880 ## M4sh Initialization. ##
13881 ## -------------------- ##
13882
13883 # Be more Bourne compatible
13884 DUALCASE=1; export DUALCASE # for MKS sh
13885 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13886   emulate sh
13887   NULLCMD=:
13888   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13889   # is contrary to our usage.  Disable this feature.
13890   alias -g '${1+"$@"}'='"$@"'
13891   setopt NO_GLOB_SUBST
13892 else
13893   case `(set -o) 2>/dev/null` in #(
13894   *posix*) :
13895     set -o posix ;; #(
13896   *) :
13897      ;;
13898 esac
13899 fi
13900
13901
13902 as_nl='
13903 '
13904 export as_nl
13905 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13906 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13907 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13908 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13909 # Prefer a ksh shell builtin over an external printf program on Solaris,
13910 # but without wasting forks for bash or zsh.
13911 if test -z "$BASH_VERSION$ZSH_VERSION" \
13912     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13913   as_echo='print -r --'
13914   as_echo_n='print -rn --'
13915 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13916   as_echo='printf %s\n'
13917   as_echo_n='printf %s'
13918 else
13919   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13920     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13921     as_echo_n='/usr/ucb/echo -n'
13922   else
13923     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13924     as_echo_n_body='eval
13925       arg=$1;
13926       case $arg in #(
13927       *"$as_nl"*)
13928         expr "X$arg" : "X\\(.*\\)$as_nl";
13929         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13930       esac;
13931       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13932     '
13933     export as_echo_n_body
13934     as_echo_n='sh -c $as_echo_n_body as_echo'
13935   fi
13936   export as_echo_body
13937   as_echo='sh -c $as_echo_body as_echo'
13938 fi
13939
13940 # The user is always right.
13941 if test "${PATH_SEPARATOR+set}" != set; then
13942   PATH_SEPARATOR=:
13943   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13944     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13945       PATH_SEPARATOR=';'
13946   }
13947 fi
13948
13949
13950 # IFS
13951 # We need space, tab and new line, in precisely that order.  Quoting is
13952 # there to prevent editors from complaining about space-tab.
13953 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13954 # splitting by setting IFS to empty value.)
13955 IFS=" ""        $as_nl"
13956
13957 # Find who we are.  Look in the path if we contain no directory separator.
13958 as_myself=
13959 case $0 in #((
13960   *[\\/]* ) as_myself=$0 ;;
13961   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13962 for as_dir in $PATH
13963 do
13964   IFS=$as_save_IFS
13965   test -z "$as_dir" && as_dir=.
13966     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13967   done
13968 IFS=$as_save_IFS
13969
13970      ;;
13971 esac
13972 # We did not find ourselves, most probably we were run as `sh COMMAND'
13973 # in which case we are not to be found in the path.
13974 if test "x$as_myself" = x; then
13975   as_myself=$0
13976 fi
13977 if test ! -f "$as_myself"; then
13978   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13979   exit 1
13980 fi
13981
13982 # Unset variables that we do not need and which cause bugs (e.g. in
13983 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13984 # suppresses any "Segmentation fault" message there.  '((' could
13985 # trigger a bug in pdksh 5.2.14.
13986 for as_var in BASH_ENV ENV MAIL MAILPATH
13987 do eval test x\${$as_var+set} = xset \
13988   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13989 done
13990 PS1='$ '
13991 PS2='> '
13992 PS4='+ '
13993
13994 # NLS nuisances.
13995 LC_ALL=C
13996 export LC_ALL
13997 LANGUAGE=C
13998 export LANGUAGE
13999
14000 # CDPATH.
14001 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14002
14003
14004 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14005 # ----------------------------------------
14006 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14007 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14008 # script with STATUS, using 1 if that was 0.
14009 as_fn_error ()
14010 {
14011   as_status=$1; test $as_status -eq 0 && as_status=1
14012   if test "$4"; then
14013     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14014     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14015   fi
14016   $as_echo "$as_me: error: $2" >&2
14017   as_fn_exit $as_status
14018 } # as_fn_error
14019
14020
14021 # as_fn_set_status STATUS
14022 # -----------------------
14023 # Set $? to STATUS, without forking.
14024 as_fn_set_status ()
14025 {
14026   return $1
14027 } # as_fn_set_status
14028
14029 # as_fn_exit STATUS
14030 # -----------------
14031 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14032 as_fn_exit ()
14033 {
14034   set +e
14035   as_fn_set_status $1
14036   exit $1
14037 } # as_fn_exit
14038
14039 # as_fn_unset VAR
14040 # ---------------
14041 # Portably unset VAR.
14042 as_fn_unset ()
14043 {
14044   { eval $1=; unset $1;}
14045 }
14046 as_unset=as_fn_unset
14047 # as_fn_append VAR VALUE
14048 # ----------------------
14049 # Append the text in VALUE to the end of the definition contained in VAR. Take
14050 # advantage of any shell optimizations that allow amortized linear growth over
14051 # repeated appends, instead of the typical quadratic growth present in naive
14052 # implementations.
14053 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14054   eval 'as_fn_append ()
14055   {
14056     eval $1+=\$2
14057   }'
14058 else
14059   as_fn_append ()
14060   {
14061     eval $1=\$$1\$2
14062   }
14063 fi # as_fn_append
14064
14065 # as_fn_arith ARG...
14066 # ------------------
14067 # Perform arithmetic evaluation on the ARGs, and store the result in the
14068 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14069 # must be portable across $(()) and expr.
14070 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14071   eval 'as_fn_arith ()
14072   {
14073     as_val=$(( $* ))
14074   }'
14075 else
14076   as_fn_arith ()
14077   {
14078     as_val=`expr "$@" || test $? -eq 1`
14079   }
14080 fi # as_fn_arith
14081
14082
14083 if expr a : '\(a\)' >/dev/null 2>&1 &&
14084    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14085   as_expr=expr
14086 else
14087   as_expr=false
14088 fi
14089
14090 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14091   as_basename=basename
14092 else
14093   as_basename=false
14094 fi
14095
14096 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14097   as_dirname=dirname
14098 else
14099   as_dirname=false
14100 fi
14101
14102 as_me=`$as_basename -- "$0" ||
14103 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14104          X"$0" : 'X\(//\)$' \| \
14105          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14106 $as_echo X/"$0" |
14107     sed '/^.*\/\([^/][^/]*\)\/*$/{
14108             s//\1/
14109             q
14110           }
14111           /^X\/\(\/\/\)$/{
14112             s//\1/
14113             q
14114           }
14115           /^X\/\(\/\).*/{
14116             s//\1/
14117             q
14118           }
14119           s/.*/./; q'`
14120
14121 # Avoid depending upon Character Ranges.
14122 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14123 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14124 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14125 as_cr_digits='0123456789'
14126 as_cr_alnum=$as_cr_Letters$as_cr_digits
14127
14128 ECHO_C= ECHO_N= ECHO_T=
14129 case `echo -n x` in #(((((
14130 -n*)
14131   case `echo 'xy\c'` in
14132   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14133   xy)  ECHO_C='\c';;
14134   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14135        ECHO_T=' ';;
14136   esac;;
14137 *)
14138   ECHO_N='-n';;
14139 esac
14140
14141 rm -f conf$$ conf$$.exe conf$$.file
14142 if test -d conf$$.dir; then
14143   rm -f conf$$.dir/conf$$.file
14144 else
14145   rm -f conf$$.dir
14146   mkdir conf$$.dir 2>/dev/null
14147 fi
14148 if (echo >conf$$.file) 2>/dev/null; then
14149   if ln -s conf$$.file conf$$ 2>/dev/null; then
14150     as_ln_s='ln -s'
14151     # ... but there are two gotchas:
14152     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14153     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14154     # In both cases, we have to default to `cp -pR'.
14155     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14156       as_ln_s='cp -pR'
14157   elif ln conf$$.file conf$$ 2>/dev/null; then
14158     as_ln_s=ln
14159   else
14160     as_ln_s='cp -pR'
14161   fi
14162 else
14163   as_ln_s='cp -pR'
14164 fi
14165 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14166 rmdir conf$$.dir 2>/dev/null
14167
14168
14169 # as_fn_mkdir_p
14170 # -------------
14171 # Create "$as_dir" as a directory, including parents if necessary.
14172 as_fn_mkdir_p ()
14173 {
14174
14175   case $as_dir in #(
14176   -*) as_dir=./$as_dir;;
14177   esac
14178   test -d "$as_dir" || eval $as_mkdir_p || {
14179     as_dirs=
14180     while :; do
14181       case $as_dir in #(
14182       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14183       *) as_qdir=$as_dir;;
14184       esac
14185       as_dirs="'$as_qdir' $as_dirs"
14186       as_dir=`$as_dirname -- "$as_dir" ||
14187 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14188          X"$as_dir" : 'X\(//\)[^/]' \| \
14189          X"$as_dir" : 'X\(//\)$' \| \
14190          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14191 $as_echo X"$as_dir" |
14192     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14193             s//\1/
14194             q
14195           }
14196           /^X\(\/\/\)[^/].*/{
14197             s//\1/
14198             q
14199           }
14200           /^X\(\/\/\)$/{
14201             s//\1/
14202             q
14203           }
14204           /^X\(\/\).*/{
14205             s//\1/
14206             q
14207           }
14208           s/.*/./; q'`
14209       test -d "$as_dir" && break
14210     done
14211     test -z "$as_dirs" || eval "mkdir $as_dirs"
14212   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14213
14214
14215 } # as_fn_mkdir_p
14216 if mkdir -p . 2>/dev/null; then
14217   as_mkdir_p='mkdir -p "$as_dir"'
14218 else
14219   test -d ./-p && rmdir ./-p
14220   as_mkdir_p=false
14221 fi
14222
14223
14224 # as_fn_executable_p FILE
14225 # -----------------------
14226 # Test if FILE is an executable regular file.
14227 as_fn_executable_p ()
14228 {
14229   test -f "$1" && test -x "$1"
14230 } # as_fn_executable_p
14231 as_test_x='test -x'
14232 as_executable_p=as_fn_executable_p
14233
14234 # Sed expression to map a string onto a valid CPP name.
14235 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14236
14237 # Sed expression to map a string onto a valid variable name.
14238 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14239
14240
14241 exec 6>&1
14242 ## ----------------------------------- ##
14243 ## Main body of $CONFIG_STATUS script. ##
14244 ## ----------------------------------- ##
14245 _ASEOF
14246 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14247
14248 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14249 # Save the log message, to keep $0 and so on meaningful, and to
14250 # report actual input values of CONFIG_FILES etc. instead of their
14251 # values after options handling.
14252 ac_log="
14253 This file was extended by wimlib $as_me 0.7.0, which was
14254 generated by GNU Autoconf 2.69.  Invocation command line was
14255
14256   CONFIG_FILES    = $CONFIG_FILES
14257   CONFIG_HEADERS  = $CONFIG_HEADERS
14258   CONFIG_LINKS    = $CONFIG_LINKS
14259   CONFIG_COMMANDS = $CONFIG_COMMANDS
14260   $ $0 $@
14261
14262 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14263 "
14264
14265 _ACEOF
14266
14267 case $ac_config_files in *"
14268 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14269 esac
14270
14271 case $ac_config_headers in *"
14272 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14273 esac
14274
14275
14276 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14277 # Files that config.status was made for.
14278 config_files="$ac_config_files"
14279 config_headers="$ac_config_headers"
14280 config_commands="$ac_config_commands"
14281
14282 _ACEOF
14283
14284 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14285 ac_cs_usage="\
14286 \`$as_me' instantiates files and other configuration actions
14287 from templates according to the current configuration.  Unless the files
14288 and actions are specified as TAGs, all are instantiated by default.
14289
14290 Usage: $0 [OPTION]... [TAG]...
14291
14292   -h, --help       print this help, then exit
14293   -V, --version    print version number and configuration settings, then exit
14294       --config     print configuration, then exit
14295   -q, --quiet, --silent
14296                    do not print progress messages
14297   -d, --debug      don't remove temporary files
14298       --recheck    update $as_me by reconfiguring in the same conditions
14299       --file=FILE[:TEMPLATE]
14300                    instantiate the configuration file FILE
14301       --header=FILE[:TEMPLATE]
14302                    instantiate the configuration header FILE
14303
14304 Configuration files:
14305 $config_files
14306
14307 Configuration headers:
14308 $config_headers
14309
14310 Configuration commands:
14311 $config_commands
14312
14313 Report bugs to <ebiggers3@gmail.com>."
14314
14315 _ACEOF
14316 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14317 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14318 ac_cs_version="\\
14319 wimlib config.status 0.7.0
14320 configured by $0, generated by GNU Autoconf 2.69,
14321   with options \\"\$ac_cs_config\\"
14322
14323 Copyright (C) 2012 Free Software Foundation, Inc.
14324 This config.status script is free software; the Free Software Foundation
14325 gives unlimited permission to copy, distribute and modify it."
14326
14327 ac_pwd='$ac_pwd'
14328 srcdir='$srcdir'
14329 INSTALL='$INSTALL'
14330 MKDIR_P='$MKDIR_P'
14331 AWK='$AWK'
14332 test -n "\$AWK" || AWK=awk
14333 _ACEOF
14334
14335 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14336 # The default lists apply if the user does not specify any file.
14337 ac_need_defaults=:
14338 while test $# != 0
14339 do
14340   case $1 in
14341   --*=?*)
14342     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14343     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14344     ac_shift=:
14345     ;;
14346   --*=)
14347     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14348     ac_optarg=
14349     ac_shift=:
14350     ;;
14351   *)
14352     ac_option=$1
14353     ac_optarg=$2
14354     ac_shift=shift
14355     ;;
14356   esac
14357
14358   case $ac_option in
14359   # Handling of the options.
14360   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14361     ac_cs_recheck=: ;;
14362   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14363     $as_echo "$ac_cs_version"; exit ;;
14364   --config | --confi | --conf | --con | --co | --c )
14365     $as_echo "$ac_cs_config"; exit ;;
14366   --debug | --debu | --deb | --de | --d | -d )
14367     debug=: ;;
14368   --file | --fil | --fi | --f )
14369     $ac_shift
14370     case $ac_optarg in
14371     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14372     '') as_fn_error $? "missing file argument" ;;
14373     esac
14374     as_fn_append CONFIG_FILES " '$ac_optarg'"
14375     ac_need_defaults=false;;
14376   --header | --heade | --head | --hea )
14377     $ac_shift
14378     case $ac_optarg in
14379     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14380     esac
14381     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14382     ac_need_defaults=false;;
14383   --he | --h)
14384     # Conflict between --help and --header
14385     as_fn_error $? "ambiguous option: \`$1'
14386 Try \`$0 --help' for more information.";;
14387   --help | --hel | -h )
14388     $as_echo "$ac_cs_usage"; exit ;;
14389   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14390   | -silent | --silent | --silen | --sile | --sil | --si | --s)
14391     ac_cs_silent=: ;;
14392
14393   # This is an error.
14394   -*) as_fn_error $? "unrecognized option: \`$1'
14395 Try \`$0 --help' for more information." ;;
14396
14397   *) as_fn_append ac_config_targets " $1"
14398      ac_need_defaults=false ;;
14399
14400   esac
14401   shift
14402 done
14403
14404 ac_configure_extra_args=
14405
14406 if $ac_cs_silent; then
14407   exec 6>/dev/null
14408   ac_configure_extra_args="$ac_configure_extra_args --silent"
14409 fi
14410
14411 _ACEOF
14412 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14413 if \$ac_cs_recheck; then
14414   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14415   shift
14416   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14417   CONFIG_SHELL='$SHELL'
14418   export CONFIG_SHELL
14419   exec "\$@"
14420 fi
14421
14422 _ACEOF
14423 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14424 exec 5>>config.log
14425 {
14426   echo
14427   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14428 ## Running $as_me. ##
14429 _ASBOX
14430   $as_echo "$ac_log"
14431 } >&5
14432
14433 _ACEOF
14434 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14435 #
14436 # INIT-COMMANDS
14437 #
14438 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14439
14440
14441 # The HP-UX ksh and POSIX shell print the target directory to stdout
14442 # if CDPATH is set.
14443 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14444
14445 sed_quote_subst='$sed_quote_subst'
14446 double_quote_subst='$double_quote_subst'
14447 delay_variable_subst='$delay_variable_subst'
14448 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14449 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14450 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14451 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14452 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14453 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14454 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14455 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14456 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14457 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14458 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14459 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14460 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14461 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14462 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14463 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14464 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14465 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14466 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14467 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14468 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14469 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14470 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14471 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14472 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14473 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14474 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14475 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14476 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14477 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14478 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14479 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14480 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14481 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14482 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14483 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14484 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14485 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14486 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14487 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14488 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14489 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14490 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14491 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14492 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14493 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14494 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14495 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14496 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14497 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14498 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14499 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14500 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14501 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14502 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14503 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14504 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"`'
14505 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14506 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14507 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14508 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14509 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14510 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14511 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14512 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14513 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14514 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14515 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14516 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14517 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14518 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14519 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14520 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14521 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14522 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14523 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14524 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14525 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14526 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14527 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14528 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14529 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14530 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14531 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14532 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14533 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14534 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14535 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14536 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14537 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14538 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14539 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14540 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14541 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14542 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14543 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14544 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14545 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14546 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14547 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14548 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14549 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14550 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14551 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14552 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14553 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14554 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14555 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14556 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14557 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14558 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14559 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14560 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14561 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14562 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14563 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14564 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14565 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14566 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14567 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14568 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14569 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14570 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14571 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14572 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14573 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14574 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14575 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14576 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14577 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14578
14579 LTCC='$LTCC'
14580 LTCFLAGS='$LTCFLAGS'
14581 compiler='$compiler_DEFAULT'
14582
14583 # A function that is used when there is no print builtin or printf.
14584 func_fallback_echo ()
14585 {
14586   eval 'cat <<_LTECHO_EOF
14587 \$1
14588 _LTECHO_EOF'
14589 }
14590
14591 # Quote evaled strings.
14592 for var in SHELL \
14593 ECHO \
14594 PATH_SEPARATOR \
14595 SED \
14596 GREP \
14597 EGREP \
14598 FGREP \
14599 LD \
14600 NM \
14601 LN_S \
14602 lt_SP2NL \
14603 lt_NL2SP \
14604 reload_flag \
14605 OBJDUMP \
14606 deplibs_check_method \
14607 file_magic_cmd \
14608 file_magic_glob \
14609 want_nocaseglob \
14610 DLLTOOL \
14611 sharedlib_from_linklib_cmd \
14612 AR \
14613 AR_FLAGS \
14614 archiver_list_spec \
14615 STRIP \
14616 RANLIB \
14617 CC \
14618 CFLAGS \
14619 compiler \
14620 lt_cv_sys_global_symbol_pipe \
14621 lt_cv_sys_global_symbol_to_cdecl \
14622 lt_cv_sys_global_symbol_to_c_name_address \
14623 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14624 nm_file_list_spec \
14625 lt_prog_compiler_no_builtin_flag \
14626 lt_prog_compiler_pic \
14627 lt_prog_compiler_wl \
14628 lt_prog_compiler_static \
14629 lt_cv_prog_compiler_c_o \
14630 need_locks \
14631 MANIFEST_TOOL \
14632 DSYMUTIL \
14633 NMEDIT \
14634 LIPO \
14635 OTOOL \
14636 OTOOL64 \
14637 shrext_cmds \
14638 export_dynamic_flag_spec \
14639 whole_archive_flag_spec \
14640 compiler_needs_object \
14641 with_gnu_ld \
14642 allow_undefined_flag \
14643 no_undefined_flag \
14644 hardcode_libdir_flag_spec \
14645 hardcode_libdir_separator \
14646 exclude_expsyms \
14647 include_expsyms \
14648 file_list_spec \
14649 variables_saved_for_relink \
14650 libname_spec \
14651 library_names_spec \
14652 soname_spec \
14653 install_override_mode \
14654 finish_eval \
14655 old_striplib \
14656 striplib; do
14657     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14658     *[\\\\\\\`\\"\\\$]*)
14659       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14660       ;;
14661     *)
14662       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14663       ;;
14664     esac
14665 done
14666
14667 # Double-quote double-evaled strings.
14668 for var in reload_cmds \
14669 old_postinstall_cmds \
14670 old_postuninstall_cmds \
14671 old_archive_cmds \
14672 extract_expsyms_cmds \
14673 old_archive_from_new_cmds \
14674 old_archive_from_expsyms_cmds \
14675 archive_cmds \
14676 archive_expsym_cmds \
14677 module_cmds \
14678 module_expsym_cmds \
14679 export_symbols_cmds \
14680 prelink_cmds \
14681 postlink_cmds \
14682 postinstall_cmds \
14683 postuninstall_cmds \
14684 finish_cmds \
14685 sys_lib_search_path_spec \
14686 sys_lib_dlsearch_path_spec; do
14687     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14688     *[\\\\\\\`\\"\\\$]*)
14689       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14690       ;;
14691     *)
14692       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14693       ;;
14694     esac
14695 done
14696
14697 ac_aux_dir='$ac_aux_dir'
14698 xsi_shell='$xsi_shell'
14699 lt_shell_append='$lt_shell_append'
14700
14701 # See if we are running on zsh, and set the options which allow our
14702 # commands through without removal of \ escapes INIT.
14703 if test -n "\${ZSH_VERSION+set}" ; then
14704    setopt NO_GLOB_SUBST
14705 fi
14706
14707
14708     PACKAGE='$PACKAGE'
14709     VERSION='$VERSION'
14710     TIMESTAMP='$TIMESTAMP'
14711     RM='$RM'
14712     ofile='$ofile'
14713
14714
14715
14716
14717 _ACEOF
14718
14719 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14720
14721 # Handling of arguments.
14722 for ac_config_target in $ac_config_targets
14723 do
14724   case $ac_config_target in
14725     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14726     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14727     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14728     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14729     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14730     "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
14731     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14732     "programs/Makefile") CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
14733     "wimlib.pc") CONFIG_FILES="$CONFIG_FILES wimlib.pc" ;;
14734     "doc/imagex.1") CONFIG_FILES="$CONFIG_FILES doc/imagex.1" ;;
14735     "doc/imagex-append.1") CONFIG_FILES="$CONFIG_FILES doc/imagex-append.1" ;;
14736     "doc/imagex-apply.1") CONFIG_FILES="$CONFIG_FILES doc/imagex-apply.1" ;;
14737     "doc/imagex-capture.1") CONFIG_FILES="$CONFIG_FILES doc/imagex-capture.1" ;;
14738     "doc/imagex-delete.1") CONFIG_FILES="$CONFIG_FILES doc/imagex-delete.1" ;;
14739     "doc/imagex-dir.1") CONFIG_FILES="$CONFIG_FILES doc/imagex-dir.1" ;;
14740     "doc/imagex-export.1") CONFIG_FILES="$CONFIG_FILES doc/imagex-export.1" ;;
14741     "doc/imagex-info.1") CONFIG_FILES="$CONFIG_FILES doc/imagex-info.1" ;;
14742     "doc/imagex-join.1") CONFIG_FILES="$CONFIG_FILES doc/imagex-join.1" ;;
14743     "doc/imagex-mount.1") CONFIG_FILES="$CONFIG_FILES doc/imagex-mount.1" ;;
14744     "doc/imagex-mountrw.1") CONFIG_FILES="$CONFIG_FILES doc/imagex-mountrw.1" ;;
14745     "doc/imagex-unmount.1") CONFIG_FILES="$CONFIG_FILES doc/imagex-unmount.1" ;;
14746     "doc/mkwinpeimg.1") CONFIG_FILES="$CONFIG_FILES doc/mkwinpeimg.1" ;;
14747     "rpm/wimlib.spec") CONFIG_FILES="$CONFIG_FILES rpm/wimlib.spec" ;;
14748     "archlinux/PKGBUILD") CONFIG_FILES="$CONFIG_FILES archlinux/PKGBUILD" ;;
14749
14750   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14751   esac
14752 done
14753
14754
14755 # If the user did not use the arguments to specify the items to instantiate,
14756 # then the envvar interface is used.  Set only those that are not.
14757 # We use the long form for the default assignment because of an extremely
14758 # bizarre bug on SunOS 4.1.3.
14759 if $ac_need_defaults; then
14760   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14761   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14762   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14763 fi
14764
14765 # Have a temporary directory for convenience.  Make it in the build tree
14766 # simply because there is no reason against having it here, and in addition,
14767 # creating and moving files from /tmp can sometimes cause problems.
14768 # Hook for its removal unless debugging.
14769 # Note that there is a small window in which the directory will not be cleaned:
14770 # after its creation but before its name has been assigned to `$tmp'.
14771 $debug ||
14772 {
14773   tmp= ac_tmp=
14774   trap 'exit_status=$?
14775   : "${ac_tmp:=$tmp}"
14776   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14777 ' 0
14778   trap 'as_fn_exit 1' 1 2 13 15
14779 }
14780 # Create a (secure) tmp directory for tmp files.
14781
14782 {
14783   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14784   test -d "$tmp"
14785 }  ||
14786 {
14787   tmp=./conf$$-$RANDOM
14788   (umask 077 && mkdir "$tmp")
14789 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14790 ac_tmp=$tmp
14791
14792 # Set up the scripts for CONFIG_FILES section.
14793 # No need to generate them if there are no CONFIG_FILES.
14794 # This happens for instance with `./config.status config.h'.
14795 if test -n "$CONFIG_FILES"; then
14796
14797
14798 ac_cr=`echo X | tr X '\015'`
14799 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14800 # But we know of no other shell where ac_cr would be empty at this
14801 # point, so we can use a bashism as a fallback.
14802 if test "x$ac_cr" = x; then
14803   eval ac_cr=\$\'\\r\'
14804 fi
14805 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14806 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14807   ac_cs_awk_cr='\\r'
14808 else
14809   ac_cs_awk_cr=$ac_cr
14810 fi
14811
14812 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14813 _ACEOF
14814
14815
14816 {
14817   echo "cat >conf$$subs.awk <<_ACEOF" &&
14818   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14819   echo "_ACEOF"
14820 } >conf$$subs.sh ||
14821   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14822 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14823 ac_delim='%!_!# '
14824 for ac_last_try in false false false false false :; do
14825   . ./conf$$subs.sh ||
14826     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14827
14828   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14829   if test $ac_delim_n = $ac_delim_num; then
14830     break
14831   elif $ac_last_try; then
14832     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14833   else
14834     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14835   fi
14836 done
14837 rm -f conf$$subs.sh
14838
14839 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14840 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14841 _ACEOF
14842 sed -n '
14843 h
14844 s/^/S["/; s/!.*/"]=/
14845 p
14846 g
14847 s/^[^!]*!//
14848 :repl
14849 t repl
14850 s/'"$ac_delim"'$//
14851 t delim
14852 :nl
14853 h
14854 s/\(.\{148\}\)..*/\1/
14855 t more1
14856 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14857 p
14858 n
14859 b repl
14860 :more1
14861 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14862 p
14863 g
14864 s/.\{148\}//
14865 t nl
14866 :delim
14867 h
14868 s/\(.\{148\}\)..*/\1/
14869 t more2
14870 s/["\\]/\\&/g; s/^/"/; s/$/"/
14871 p
14872 b
14873 :more2
14874 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14875 p
14876 g
14877 s/.\{148\}//
14878 t delim
14879 ' <conf$$subs.awk | sed '
14880 /^[^""]/{
14881   N
14882   s/\n//
14883 }
14884 ' >>$CONFIG_STATUS || ac_write_fail=1
14885 rm -f conf$$subs.awk
14886 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14887 _ACAWK
14888 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14889   for (key in S) S_is_set[key] = 1
14890   FS = "\a"
14891
14892 }
14893 {
14894   line = $ 0
14895   nfields = split(line, field, "@")
14896   substed = 0
14897   len = length(field[1])
14898   for (i = 2; i < nfields; i++) {
14899     key = field[i]
14900     keylen = length(key)
14901     if (S_is_set[key]) {
14902       value = S[key]
14903       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14904       len += length(value) + length(field[++i])
14905       substed = 1
14906     } else
14907       len += 1 + keylen
14908   }
14909
14910   print line
14911 }
14912
14913 _ACAWK
14914 _ACEOF
14915 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14916 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14917   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14918 else
14919   cat
14920 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14921   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14922 _ACEOF
14923
14924 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14925 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14926 # trailing colons and then remove the whole line if VPATH becomes empty
14927 # (actually we leave an empty line to preserve line numbers).
14928 if test "x$srcdir" = x.; then
14929   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
14930 h
14931 s///
14932 s/^/:/
14933 s/[      ]*$/:/
14934 s/:\$(srcdir):/:/g
14935 s/:\${srcdir}:/:/g
14936 s/:@srcdir@:/:/g
14937 s/^:*//
14938 s/:*$//
14939 x
14940 s/\(=[   ]*\).*/\1/
14941 G
14942 s/\n//
14943 s/^[^=]*=[       ]*$//
14944 }'
14945 fi
14946
14947 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14948 fi # test -n "$CONFIG_FILES"
14949
14950 # Set up the scripts for CONFIG_HEADERS section.
14951 # No need to generate them if there are no CONFIG_HEADERS.
14952 # This happens for instance with `./config.status Makefile'.
14953 if test -n "$CONFIG_HEADERS"; then
14954 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14955 BEGIN {
14956 _ACEOF
14957
14958 # Transform confdefs.h into an awk script `defines.awk', embedded as
14959 # here-document in config.status, that substitutes the proper values into
14960 # config.h.in to produce config.h.
14961
14962 # Create a delimiter string that does not exist in confdefs.h, to ease
14963 # handling of long lines.
14964 ac_delim='%!_!# '
14965 for ac_last_try in false false :; do
14966   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14967   if test -z "$ac_tt"; then
14968     break
14969   elif $ac_last_try; then
14970     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14971   else
14972     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14973   fi
14974 done
14975
14976 # For the awk script, D is an array of macro values keyed by name,
14977 # likewise P contains macro parameters if any.  Preserve backslash
14978 # newline sequences.
14979
14980 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14981 sed -n '
14982 s/.\{148\}/&'"$ac_delim"'/g
14983 t rset
14984 :rset
14985 s/^[     ]*#[    ]*define[       ][      ]*/ /
14986 t def
14987 d
14988 :def
14989 s/\\$//
14990 t bsnl
14991 s/["\\]/\\&/g
14992 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14993 D["\1"]=" \3"/p
14994 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
14995 d
14996 :bsnl
14997 s/["\\]/\\&/g
14998 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14999 D["\1"]=" \3\\\\\\n"\\/p
15000 t cont
15001 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15002 t cont
15003 d
15004 :cont
15005 n
15006 s/.\{148\}/&'"$ac_delim"'/g
15007 t clear
15008 :clear
15009 s/\\$//
15010 t bsnlc
15011 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15012 d
15013 :bsnlc
15014 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15015 b cont
15016 ' <confdefs.h | sed '
15017 s/'"$ac_delim"'/"\\\
15018 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15019
15020 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15021   for (key in D) D_is_set[key] = 1
15022   FS = "\a"
15023 }
15024 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15025   line = \$ 0
15026   split(line, arg, " ")
15027   if (arg[1] == "#") {
15028     defundef = arg[2]
15029     mac1 = arg[3]
15030   } else {
15031     defundef = substr(arg[1], 2)
15032     mac1 = arg[2]
15033   }
15034   split(mac1, mac2, "(") #)
15035   macro = mac2[1]
15036   prefix = substr(line, 1, index(line, defundef) - 1)
15037   if (D_is_set[macro]) {
15038     # Preserve the white space surrounding the "#".
15039     print prefix "define", macro P[macro] D[macro]
15040     next
15041   } else {
15042     # Replace #undef with comments.  This is necessary, for example,
15043     # in the case of _POSIX_SOURCE, which is predefined and required
15044     # on some systems where configure will not decide to define it.
15045     if (defundef == "undef") {
15046       print "/*", prefix defundef, macro, "*/"
15047       next
15048     }
15049   }
15050 }
15051 { print }
15052 _ACAWK
15053 _ACEOF
15054 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15055   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15056 fi # test -n "$CONFIG_HEADERS"
15057
15058
15059 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
15060 shift
15061 for ac_tag
15062 do
15063   case $ac_tag in
15064   :[FHLC]) ac_mode=$ac_tag; continue;;
15065   esac
15066   case $ac_mode$ac_tag in
15067   :[FHL]*:*);;
15068   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15069   :[FH]-) ac_tag=-:-;;
15070   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15071   esac
15072   ac_save_IFS=$IFS
15073   IFS=:
15074   set x $ac_tag
15075   IFS=$ac_save_IFS
15076   shift
15077   ac_file=$1
15078   shift
15079
15080   case $ac_mode in
15081   :L) ac_source=$1;;
15082   :[FH])
15083     ac_file_inputs=
15084     for ac_f
15085     do
15086       case $ac_f in
15087       -) ac_f="$ac_tmp/stdin";;
15088       *) # Look for the file first in the build tree, then in the source tree
15089          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15090          # because $ac_f cannot contain `:'.
15091          test -f "$ac_f" ||
15092            case $ac_f in
15093            [\\/$]*) false;;
15094            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15095            esac ||
15096            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15097       esac
15098       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15099       as_fn_append ac_file_inputs " '$ac_f'"
15100     done
15101
15102     # Let's still pretend it is `configure' which instantiates (i.e., don't
15103     # use $as_me), people would be surprised to read:
15104     #    /* config.h.  Generated by config.status.  */
15105     configure_input='Generated from '`
15106           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15107         `' by configure.'
15108     if test x"$ac_file" != x-; then
15109       configure_input="$ac_file.  $configure_input"
15110       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15111 $as_echo "$as_me: creating $ac_file" >&6;}
15112     fi
15113     # Neutralize special characters interpreted by sed in replacement strings.
15114     case $configure_input in #(
15115     *\&* | *\|* | *\\* )
15116        ac_sed_conf_input=`$as_echo "$configure_input" |
15117        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15118     *) ac_sed_conf_input=$configure_input;;
15119     esac
15120
15121     case $ac_tag in
15122     *:-:* | *:-) cat >"$ac_tmp/stdin" \
15123       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15124     esac
15125     ;;
15126   esac
15127
15128   ac_dir=`$as_dirname -- "$ac_file" ||
15129 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15130          X"$ac_file" : 'X\(//\)[^/]' \| \
15131          X"$ac_file" : 'X\(//\)$' \| \
15132          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15133 $as_echo X"$ac_file" |
15134     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15135             s//\1/
15136             q
15137           }
15138           /^X\(\/\/\)[^/].*/{
15139             s//\1/
15140             q
15141           }
15142           /^X\(\/\/\)$/{
15143             s//\1/
15144             q
15145           }
15146           /^X\(\/\).*/{
15147             s//\1/
15148             q
15149           }
15150           s/.*/./; q'`
15151   as_dir="$ac_dir"; as_fn_mkdir_p
15152   ac_builddir=.
15153
15154 case "$ac_dir" in
15155 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15156 *)
15157   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15158   # A ".." for each directory in $ac_dir_suffix.
15159   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15160   case $ac_top_builddir_sub in
15161   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15162   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15163   esac ;;
15164 esac
15165 ac_abs_top_builddir=$ac_pwd
15166 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15167 # for backward compatibility:
15168 ac_top_builddir=$ac_top_build_prefix
15169
15170 case $srcdir in
15171   .)  # We are building in place.
15172     ac_srcdir=.
15173     ac_top_srcdir=$ac_top_builddir_sub
15174     ac_abs_top_srcdir=$ac_pwd ;;
15175   [\\/]* | ?:[\\/]* )  # Absolute name.
15176     ac_srcdir=$srcdir$ac_dir_suffix;
15177     ac_top_srcdir=$srcdir
15178     ac_abs_top_srcdir=$srcdir ;;
15179   *) # Relative name.
15180     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15181     ac_top_srcdir=$ac_top_build_prefix$srcdir
15182     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15183 esac
15184 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15185
15186
15187   case $ac_mode in
15188   :F)
15189   #
15190   # CONFIG_FILE
15191   #
15192
15193   case $INSTALL in
15194   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15195   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15196   esac
15197   ac_MKDIR_P=$MKDIR_P
15198   case $MKDIR_P in
15199   [\\/$]* | ?:[\\/]* ) ;;
15200   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15201   esac
15202 _ACEOF
15203
15204 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15205 # If the template does not know about datarootdir, expand it.
15206 # FIXME: This hack should be removed a few years after 2.60.
15207 ac_datarootdir_hack=; ac_datarootdir_seen=
15208 ac_sed_dataroot='
15209 /datarootdir/ {
15210   p
15211   q
15212 }
15213 /@datadir@/p
15214 /@docdir@/p
15215 /@infodir@/p
15216 /@localedir@/p
15217 /@mandir@/p'
15218 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15219 *datarootdir*) ac_datarootdir_seen=yes;;
15220 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15221   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15222 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15223 _ACEOF
15224 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15225   ac_datarootdir_hack='
15226   s&@datadir@&$datadir&g
15227   s&@docdir@&$docdir&g
15228   s&@infodir@&$infodir&g
15229   s&@localedir@&$localedir&g
15230   s&@mandir@&$mandir&g
15231   s&\\\${datarootdir}&$datarootdir&g' ;;
15232 esac
15233 _ACEOF
15234
15235 # Neutralize VPATH when `$srcdir' = `.'.
15236 # Shell code in configure.ac might set extrasub.
15237 # FIXME: do we really want to maintain this feature?
15238 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15239 ac_sed_extra="$ac_vpsub
15240 $extrasub
15241 _ACEOF
15242 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15243 :t
15244 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15245 s|@configure_input@|$ac_sed_conf_input|;t t
15246 s&@top_builddir@&$ac_top_builddir_sub&;t t
15247 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15248 s&@srcdir@&$ac_srcdir&;t t
15249 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15250 s&@top_srcdir@&$ac_top_srcdir&;t t
15251 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15252 s&@builddir@&$ac_builddir&;t t
15253 s&@abs_builddir@&$ac_abs_builddir&;t t
15254 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15255 s&@INSTALL@&$ac_INSTALL&;t t
15256 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15257 $ac_datarootdir_hack
15258 "
15259 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15260   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15261
15262 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15263   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15264   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
15265       "$ac_tmp/out"`; test -z "$ac_out"; } &&
15266   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15267 which seems to be undefined.  Please make sure it is defined" >&5
15268 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15269 which seems to be undefined.  Please make sure it is defined" >&2;}
15270
15271   rm -f "$ac_tmp/stdin"
15272   case $ac_file in
15273   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15274   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15275   esac \
15276   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15277  ;;
15278   :H)
15279   #
15280   # CONFIG_HEADER
15281   #
15282   if test x"$ac_file" != x-; then
15283     {
15284       $as_echo "/* $configure_input  */" \
15285       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15286     } >"$ac_tmp/config.h" \
15287       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15288     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15289       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15290 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15291     else
15292       rm -f "$ac_file"
15293       mv "$ac_tmp/config.h" "$ac_file" \
15294         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15295     fi
15296   else
15297     $as_echo "/* $configure_input  */" \
15298       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15299       || as_fn_error $? "could not create -" "$LINENO" 5
15300   fi
15301 # Compute "$ac_file"'s index in $config_headers.
15302 _am_arg="$ac_file"
15303 _am_stamp_count=1
15304 for _am_header in $config_headers :; do
15305   case $_am_header in
15306     $_am_arg | $_am_arg:* )
15307       break ;;
15308     * )
15309       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15310   esac
15311 done
15312 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15313 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15314          X"$_am_arg" : 'X\(//\)[^/]' \| \
15315          X"$_am_arg" : 'X\(//\)$' \| \
15316          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15317 $as_echo X"$_am_arg" |
15318     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15319             s//\1/
15320             q
15321           }
15322           /^X\(\/\/\)[^/].*/{
15323             s//\1/
15324             q
15325           }
15326           /^X\(\/\/\)$/{
15327             s//\1/
15328             q
15329           }
15330           /^X\(\/\).*/{
15331             s//\1/
15332             q
15333           }
15334           s/.*/./; q'`/stamp-h$_am_stamp_count
15335  ;;
15336
15337   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15338 $as_echo "$as_me: executing $ac_file commands" >&6;}
15339  ;;
15340   esac
15341
15342
15343   case $ac_file$ac_mode in
15344     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15345   # Autoconf 2.62 quotes --file arguments for eval, but not when files
15346   # are listed without --file.  Let's play safe and only enable the eval
15347   # if we detect the quoting.
15348   case $CONFIG_FILES in
15349   *\'*) eval set x "$CONFIG_FILES" ;;
15350   *)   set x $CONFIG_FILES ;;
15351   esac
15352   shift
15353   for mf
15354   do
15355     # Strip MF so we end up with the name of the file.
15356     mf=`echo "$mf" | sed -e 's/:.*$//'`
15357     # Check whether this is an Automake generated Makefile or not.
15358     # We used to match only the files named 'Makefile.in', but
15359     # some people rename them; so instead we look at the file content.
15360     # Grep'ing the first line is not enough: some people post-process
15361     # each Makefile.in and add a new line on top of each file to say so.
15362     # Grep'ing the whole file is not good either: AIX grep has a line
15363     # limit of 2048, but all sed's we know have understand at least 4000.
15364     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15365       dirpart=`$as_dirname -- "$mf" ||
15366 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15367          X"$mf" : 'X\(//\)[^/]' \| \
15368          X"$mf" : 'X\(//\)$' \| \
15369          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15370 $as_echo X"$mf" |
15371     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15372             s//\1/
15373             q
15374           }
15375           /^X\(\/\/\)[^/].*/{
15376             s//\1/
15377             q
15378           }
15379           /^X\(\/\/\)$/{
15380             s//\1/
15381             q
15382           }
15383           /^X\(\/\).*/{
15384             s//\1/
15385             q
15386           }
15387           s/.*/./; q'`
15388     else
15389       continue
15390     fi
15391     # Extract the definition of DEPDIR, am__include, and am__quote
15392     # from the Makefile without running 'make'.
15393     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15394     test -z "$DEPDIR" && continue
15395     am__include=`sed -n 's/^am__include = //p' < "$mf"`
15396     test -z "am__include" && continue
15397     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15398     # Find all dependency output files, they are included files with
15399     # $(DEPDIR) in their names.  We invoke sed twice because it is the
15400     # simplest approach to changing $(DEPDIR) to its actual value in the
15401     # expansion.
15402     for file in `sed -n "
15403       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15404          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
15405       # Make sure the directory exists.
15406       test -f "$dirpart/$file" && continue
15407       fdir=`$as_dirname -- "$file" ||
15408 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15409          X"$file" : 'X\(//\)[^/]' \| \
15410          X"$file" : 'X\(//\)$' \| \
15411          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15412 $as_echo X"$file" |
15413     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15414             s//\1/
15415             q
15416           }
15417           /^X\(\/\/\)[^/].*/{
15418             s//\1/
15419             q
15420           }
15421           /^X\(\/\/\)$/{
15422             s//\1/
15423             q
15424           }
15425           /^X\(\/\).*/{
15426             s//\1/
15427             q
15428           }
15429           s/.*/./; q'`
15430       as_dir=$dirpart/$fdir; as_fn_mkdir_p
15431       # echo "creating $dirpart/$file"
15432       echo '# dummy' > "$dirpart/$file"
15433     done
15434   done
15435 }
15436  ;;
15437     "libtool":C)
15438
15439     # See if we are running on zsh, and set the options which allow our
15440     # commands through without removal of \ escapes.
15441     if test -n "${ZSH_VERSION+set}" ; then
15442       setopt NO_GLOB_SUBST
15443     fi
15444
15445     cfgfile="${ofile}T"
15446     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15447     $RM "$cfgfile"
15448
15449     cat <<_LT_EOF >> "$cfgfile"
15450 #! $SHELL
15451
15452 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15453 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15454 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15455 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15456 #
15457 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15458 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
15459 #                 Foundation, Inc.
15460 #   Written by Gordon Matzigkeit, 1996
15461 #
15462 #   This file is part of GNU Libtool.
15463 #
15464 # GNU Libtool is free software; you can redistribute it and/or
15465 # modify it under the terms of the GNU General Public License as
15466 # published by the Free Software Foundation; either version 2 of
15467 # the License, or (at your option) any later version.
15468 #
15469 # As a special exception to the GNU General Public License,
15470 # if you distribute this file as part of a program or library that
15471 # is built using GNU Libtool, you may include this file under the
15472 # same distribution terms that you use for the rest of that program.
15473 #
15474 # GNU Libtool is distributed in the hope that it will be useful,
15475 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15476 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15477 # GNU General Public License for more details.
15478 #
15479 # You should have received a copy of the GNU General Public License
15480 # along with GNU Libtool; see the file COPYING.  If not, a copy
15481 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15482 # obtained by writing to the Free Software Foundation, Inc.,
15483 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15484
15485
15486 # The names of the tagged configurations supported by this script.
15487 available_tags=""
15488
15489 # ### BEGIN LIBTOOL CONFIG
15490
15491 # Which release of libtool.m4 was used?
15492 macro_version=$macro_version
15493 macro_revision=$macro_revision
15494
15495 # Whether or not to build shared libraries.
15496 build_libtool_libs=$enable_shared
15497
15498 # Whether or not to build static libraries.
15499 build_old_libs=$enable_static
15500
15501 # What type of objects to build.
15502 pic_mode=$pic_mode
15503
15504 # Whether or not to optimize for fast installation.
15505 fast_install=$enable_fast_install
15506
15507 # Shell to use when invoking shell scripts.
15508 SHELL=$lt_SHELL
15509
15510 # An echo program that protects backslashes.
15511 ECHO=$lt_ECHO
15512
15513 # The PATH separator for the build system.
15514 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15515
15516 # The host system.
15517 host_alias=$host_alias
15518 host=$host
15519 host_os=$host_os
15520
15521 # The build system.
15522 build_alias=$build_alias
15523 build=$build
15524 build_os=$build_os
15525
15526 # A sed program that does not truncate output.
15527 SED=$lt_SED
15528
15529 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15530 Xsed="\$SED -e 1s/^X//"
15531
15532 # A grep program that handles long lines.
15533 GREP=$lt_GREP
15534
15535 # An ERE matcher.
15536 EGREP=$lt_EGREP
15537
15538 # A literal string matcher.
15539 FGREP=$lt_FGREP
15540
15541 # A BSD- or MS-compatible name lister.
15542 NM=$lt_NM
15543
15544 # Whether we need soft or hard links.
15545 LN_S=$lt_LN_S
15546
15547 # What is the maximum length of a command?
15548 max_cmd_len=$max_cmd_len
15549
15550 # Object file suffix (normally "o").
15551 objext=$ac_objext
15552
15553 # Executable file suffix (normally "").
15554 exeext=$exeext
15555
15556 # whether the shell understands "unset".
15557 lt_unset=$lt_unset
15558
15559 # turn spaces into newlines.
15560 SP2NL=$lt_lt_SP2NL
15561
15562 # turn newlines into spaces.
15563 NL2SP=$lt_lt_NL2SP
15564
15565 # convert \$build file names to \$host format.
15566 to_host_file_cmd=$lt_cv_to_host_file_cmd
15567
15568 # convert \$build files to toolchain format.
15569 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15570
15571 # An object symbol dumper.
15572 OBJDUMP=$lt_OBJDUMP
15573
15574 # Method to check whether dependent libraries are shared objects.
15575 deplibs_check_method=$lt_deplibs_check_method
15576
15577 # Command to use when deplibs_check_method = "file_magic".
15578 file_magic_cmd=$lt_file_magic_cmd
15579
15580 # How to find potential files when deplibs_check_method = "file_magic".
15581 file_magic_glob=$lt_file_magic_glob
15582
15583 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15584 want_nocaseglob=$lt_want_nocaseglob
15585
15586 # DLL creation program.
15587 DLLTOOL=$lt_DLLTOOL
15588
15589 # Command to associate shared and link libraries.
15590 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15591
15592 # The archiver.
15593 AR=$lt_AR
15594
15595 # Flags to create an archive.
15596 AR_FLAGS=$lt_AR_FLAGS
15597
15598 # How to feed a file listing to the archiver.
15599 archiver_list_spec=$lt_archiver_list_spec
15600
15601 # A symbol stripping program.
15602 STRIP=$lt_STRIP
15603
15604 # Commands used to install an old-style archive.
15605 RANLIB=$lt_RANLIB
15606 old_postinstall_cmds=$lt_old_postinstall_cmds
15607 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15608
15609 # Whether to use a lock for old archive extraction.
15610 lock_old_archive_extraction=$lock_old_archive_extraction
15611
15612 # A C compiler.
15613 LTCC=$lt_CC
15614
15615 # LTCC compiler flags.
15616 LTCFLAGS=$lt_CFLAGS
15617
15618 # Take the output of nm and produce a listing of raw symbols and C names.
15619 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15620
15621 # Transform the output of nm in a proper C declaration.
15622 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15623
15624 # Transform the output of nm in a C name address pair.
15625 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15626
15627 # Transform the output of nm in a C name address pair when lib prefix is needed.
15628 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15629
15630 # Specify filename containing input files for \$NM.
15631 nm_file_list_spec=$lt_nm_file_list_spec
15632
15633 # The root where to search for dependent libraries,and in which our libraries should be installed.
15634 lt_sysroot=$lt_sysroot
15635
15636 # The name of the directory that contains temporary libtool files.
15637 objdir=$objdir
15638
15639 # Used to examine libraries when file_magic_cmd begins with "file".
15640 MAGIC_CMD=$MAGIC_CMD
15641
15642 # Must we lock files when doing compilation?
15643 need_locks=$lt_need_locks
15644
15645 # Manifest tool.
15646 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15647
15648 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15649 DSYMUTIL=$lt_DSYMUTIL
15650
15651 # Tool to change global to local symbols on Mac OS X.
15652 NMEDIT=$lt_NMEDIT
15653
15654 # Tool to manipulate fat objects and archives on Mac OS X.
15655 LIPO=$lt_LIPO
15656
15657 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15658 OTOOL=$lt_OTOOL
15659
15660 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15661 OTOOL64=$lt_OTOOL64
15662
15663 # Old archive suffix (normally "a").
15664 libext=$libext
15665
15666 # Shared library suffix (normally ".so").
15667 shrext_cmds=$lt_shrext_cmds
15668
15669 # The commands to extract the exported symbol list from a shared archive.
15670 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15671
15672 # Variables whose values should be saved in libtool wrapper scripts and
15673 # restored at link time.
15674 variables_saved_for_relink=$lt_variables_saved_for_relink
15675
15676 # Do we need the "lib" prefix for modules?
15677 need_lib_prefix=$need_lib_prefix
15678
15679 # Do we need a version for libraries?
15680 need_version=$need_version
15681
15682 # Library versioning type.
15683 version_type=$version_type
15684
15685 # Shared library runtime path variable.
15686 runpath_var=$runpath_var
15687
15688 # Shared library path variable.
15689 shlibpath_var=$shlibpath_var
15690
15691 # Is shlibpath searched before the hard-coded library search path?
15692 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15693
15694 # Format of library name prefix.
15695 libname_spec=$lt_libname_spec
15696
15697 # List of archive names.  First name is the real one, the rest are links.
15698 # The last name is the one that the linker finds with -lNAME
15699 library_names_spec=$lt_library_names_spec
15700
15701 # The coded name of the library, if different from the real name.
15702 soname_spec=$lt_soname_spec
15703
15704 # Permission mode override for installation of shared libraries.
15705 install_override_mode=$lt_install_override_mode
15706
15707 # Command to use after installation of a shared archive.
15708 postinstall_cmds=$lt_postinstall_cmds
15709
15710 # Command to use after uninstallation of a shared archive.
15711 postuninstall_cmds=$lt_postuninstall_cmds
15712
15713 # Commands used to finish a libtool library installation in a directory.
15714 finish_cmds=$lt_finish_cmds
15715
15716 # As "finish_cmds", except a single script fragment to be evaled but
15717 # not shown.
15718 finish_eval=$lt_finish_eval
15719
15720 # Whether we should hardcode library paths into libraries.
15721 hardcode_into_libs=$hardcode_into_libs
15722
15723 # Compile-time system search path for libraries.
15724 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15725
15726 # Run-time system search path for libraries.
15727 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15728
15729 # Whether dlopen is supported.
15730 dlopen_support=$enable_dlopen
15731
15732 # Whether dlopen of programs is supported.
15733 dlopen_self=$enable_dlopen_self
15734
15735 # Whether dlopen of statically linked programs is supported.
15736 dlopen_self_static=$enable_dlopen_self_static
15737
15738 # Commands to strip libraries.
15739 old_striplib=$lt_old_striplib
15740 striplib=$lt_striplib
15741
15742
15743 # The linker used to build libraries.
15744 LD=$lt_LD
15745
15746 # How to create reloadable object files.
15747 reload_flag=$lt_reload_flag
15748 reload_cmds=$lt_reload_cmds
15749
15750 # Commands used to build an old-style archive.
15751 old_archive_cmds=$lt_old_archive_cmds
15752
15753 # A language specific compiler.
15754 CC=$lt_compiler
15755
15756 # Is the compiler the GNU compiler?
15757 with_gcc=$GCC
15758
15759 # Compiler flag to turn off builtin functions.
15760 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15761
15762 # Additional compiler flags for building library objects.
15763 pic_flag=$lt_lt_prog_compiler_pic
15764
15765 # How to pass a linker flag through the compiler.
15766 wl=$lt_lt_prog_compiler_wl
15767
15768 # Compiler flag to prevent dynamic linking.
15769 link_static_flag=$lt_lt_prog_compiler_static
15770
15771 # Does compiler simultaneously support -c and -o options?
15772 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15773
15774 # Whether or not to add -lc for building shared libraries.
15775 build_libtool_need_lc=$archive_cmds_need_lc
15776
15777 # Whether or not to disallow shared libs when runtime libs are static.
15778 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15779
15780 # Compiler flag to allow reflexive dlopens.
15781 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15782
15783 # Compiler flag to generate shared objects directly from archives.
15784 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15785
15786 # Whether the compiler copes with passing no objects directly.
15787 compiler_needs_object=$lt_compiler_needs_object
15788
15789 # Create an old-style archive from a shared archive.
15790 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15791
15792 # Create a temporary old-style archive to link instead of a shared archive.
15793 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15794
15795 # Commands used to build a shared archive.
15796 archive_cmds=$lt_archive_cmds
15797 archive_expsym_cmds=$lt_archive_expsym_cmds
15798
15799 # Commands used to build a loadable module if different from building
15800 # a shared archive.
15801 module_cmds=$lt_module_cmds
15802 module_expsym_cmds=$lt_module_expsym_cmds
15803
15804 # Whether we are building with GNU ld or not.
15805 with_gnu_ld=$lt_with_gnu_ld
15806
15807 # Flag that allows shared libraries with undefined symbols to be built.
15808 allow_undefined_flag=$lt_allow_undefined_flag
15809
15810 # Flag that enforces no undefined symbols.
15811 no_undefined_flag=$lt_no_undefined_flag
15812
15813 # Flag to hardcode \$libdir into a binary during linking.
15814 # This must work even if \$libdir does not exist
15815 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15816
15817 # Whether we need a single "-rpath" flag with a separated argument.
15818 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15819
15820 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15821 # DIR into the resulting binary.
15822 hardcode_direct=$hardcode_direct
15823
15824 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15825 # DIR into the resulting binary and the resulting library dependency is
15826 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15827 # library is relocated.
15828 hardcode_direct_absolute=$hardcode_direct_absolute
15829
15830 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15831 # into the resulting binary.
15832 hardcode_minus_L=$hardcode_minus_L
15833
15834 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15835 # into the resulting binary.
15836 hardcode_shlibpath_var=$hardcode_shlibpath_var
15837
15838 # Set to "yes" if building a shared library automatically hardcodes DIR
15839 # into the library and all subsequent libraries and executables linked
15840 # against it.
15841 hardcode_automatic=$hardcode_automatic
15842
15843 # Set to yes if linker adds runtime paths of dependent libraries
15844 # to runtime path list.
15845 inherit_rpath=$inherit_rpath
15846
15847 # Whether libtool must link a program against all its dependency libraries.
15848 link_all_deplibs=$link_all_deplibs
15849
15850 # Set to "yes" if exported symbols are required.
15851 always_export_symbols=$always_export_symbols
15852
15853 # The commands to list exported symbols.
15854 export_symbols_cmds=$lt_export_symbols_cmds
15855
15856 # Symbols that should not be listed in the preloaded symbols.
15857 exclude_expsyms=$lt_exclude_expsyms
15858
15859 # Symbols that must always be exported.
15860 include_expsyms=$lt_include_expsyms
15861
15862 # Commands necessary for linking programs (against libraries) with templates.
15863 prelink_cmds=$lt_prelink_cmds
15864
15865 # Commands necessary for finishing linking programs.
15866 postlink_cmds=$lt_postlink_cmds
15867
15868 # Specify filename containing input files.
15869 file_list_spec=$lt_file_list_spec
15870
15871 # How to hardcode a shared library path into an executable.
15872 hardcode_action=$hardcode_action
15873
15874 # ### END LIBTOOL CONFIG
15875
15876 _LT_EOF
15877
15878   case $host_os in
15879   aix3*)
15880     cat <<\_LT_EOF >> "$cfgfile"
15881 # AIX sometimes has problems with the GCC collect2 program.  For some
15882 # reason, if we set the COLLECT_NAMES environment variable, the problems
15883 # vanish in a puff of smoke.
15884 if test "X${COLLECT_NAMES+set}" != Xset; then
15885   COLLECT_NAMES=
15886   export COLLECT_NAMES
15887 fi
15888 _LT_EOF
15889     ;;
15890   esac
15891
15892
15893 ltmain="$ac_aux_dir/ltmain.sh"
15894
15895
15896   # We use sed instead of cat because bash on DJGPP gets confused if
15897   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15898   # text mode, it properly converts lines to CR/LF.  This bash problem
15899   # is reportedly fixed, but why not run on old versions too?
15900   sed '$q' "$ltmain" >> "$cfgfile" \
15901      || (rm -f "$cfgfile"; exit 1)
15902
15903   if test x"$xsi_shell" = xyes; then
15904   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15905 func_dirname ()\
15906 {\
15907 \    case ${1} in\
15908 \      */*) func_dirname_result="${1%/*}${2}" ;;\
15909 \      *  ) func_dirname_result="${3}" ;;\
15910 \    esac\
15911 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15912   && mv -f "$cfgfile.tmp" "$cfgfile" \
15913     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15914 test 0 -eq $? || _lt_function_replace_fail=:
15915
15916
15917   sed -e '/^func_basename ()$/,/^} # func_basename /c\
15918 func_basename ()\
15919 {\
15920 \    func_basename_result="${1##*/}"\
15921 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15922   && mv -f "$cfgfile.tmp" "$cfgfile" \
15923     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15924 test 0 -eq $? || _lt_function_replace_fail=:
15925
15926
15927   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15928 func_dirname_and_basename ()\
15929 {\
15930 \    case ${1} in\
15931 \      */*) func_dirname_result="${1%/*}${2}" ;;\
15932 \      *  ) func_dirname_result="${3}" ;;\
15933 \    esac\
15934 \    func_basename_result="${1##*/}"\
15935 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15936   && mv -f "$cfgfile.tmp" "$cfgfile" \
15937     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15938 test 0 -eq $? || _lt_function_replace_fail=:
15939
15940
15941   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15942 func_stripname ()\
15943 {\
15944 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15945 \    # positional parameters, so assign one to ordinary parameter first.\
15946 \    func_stripname_result=${3}\
15947 \    func_stripname_result=${func_stripname_result#"${1}"}\
15948 \    func_stripname_result=${func_stripname_result%"${2}"}\
15949 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15950   && mv -f "$cfgfile.tmp" "$cfgfile" \
15951     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15952 test 0 -eq $? || _lt_function_replace_fail=:
15953
15954
15955   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15956 func_split_long_opt ()\
15957 {\
15958 \    func_split_long_opt_name=${1%%=*}\
15959 \    func_split_long_opt_arg=${1#*=}\
15960 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15961   && mv -f "$cfgfile.tmp" "$cfgfile" \
15962     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15963 test 0 -eq $? || _lt_function_replace_fail=:
15964
15965
15966   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15967 func_split_short_opt ()\
15968 {\
15969 \    func_split_short_opt_arg=${1#??}\
15970 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15971 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15972   && mv -f "$cfgfile.tmp" "$cfgfile" \
15973     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15974 test 0 -eq $? || _lt_function_replace_fail=:
15975
15976
15977   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15978 func_lo2o ()\
15979 {\
15980 \    case ${1} in\
15981 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15982 \      *)    func_lo2o_result=${1} ;;\
15983 \    esac\
15984 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15985   && mv -f "$cfgfile.tmp" "$cfgfile" \
15986     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15987 test 0 -eq $? || _lt_function_replace_fail=:
15988
15989
15990   sed -e '/^func_xform ()$/,/^} # func_xform /c\
15991 func_xform ()\
15992 {\
15993     func_xform_result=${1%.*}.lo\
15994 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15995   && mv -f "$cfgfile.tmp" "$cfgfile" \
15996     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15997 test 0 -eq $? || _lt_function_replace_fail=:
15998
15999
16000   sed -e '/^func_arith ()$/,/^} # func_arith /c\
16001 func_arith ()\
16002 {\
16003     func_arith_result=$(( $* ))\
16004 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
16005   && mv -f "$cfgfile.tmp" "$cfgfile" \
16006     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16007 test 0 -eq $? || _lt_function_replace_fail=:
16008
16009
16010   sed -e '/^func_len ()$/,/^} # func_len /c\
16011 func_len ()\
16012 {\
16013     func_len_result=${#1}\
16014 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
16015   && mv -f "$cfgfile.tmp" "$cfgfile" \
16016     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16017 test 0 -eq $? || _lt_function_replace_fail=:
16018
16019 fi
16020
16021 if test x"$lt_shell_append" = xyes; then
16022   sed -e '/^func_append ()$/,/^} # func_append /c\
16023 func_append ()\
16024 {\
16025     eval "${1}+=\\${2}"\
16026 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
16027   && mv -f "$cfgfile.tmp" "$cfgfile" \
16028     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16029 test 0 -eq $? || _lt_function_replace_fail=:
16030
16031
16032   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
16033 func_append_quoted ()\
16034 {\
16035 \    func_quote_for_eval "${2}"\
16036 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
16037 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
16038   && mv -f "$cfgfile.tmp" "$cfgfile" \
16039     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16040 test 0 -eq $? || _lt_function_replace_fail=:
16041
16042
16043   # Save a `func_append' function call where possible by direct use of '+='
16044   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
16045     && mv -f "$cfgfile.tmp" "$cfgfile" \
16046       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16047   test 0 -eq $? || _lt_function_replace_fail=:
16048 else
16049   # Save a `func_append' function call even when '+=' is not available
16050   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
16051     && mv -f "$cfgfile.tmp" "$cfgfile" \
16052       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16053   test 0 -eq $? || _lt_function_replace_fail=:
16054 fi
16055
16056 if test x"$_lt_function_replace_fail" = x":"; then
16057   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
16058 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
16059 fi
16060
16061
16062    mv -f "$cfgfile" "$ofile" ||
16063     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16064   chmod +x "$ofile"
16065
16066  ;;
16067
16068   esac
16069 done # for ac_tag
16070
16071
16072 as_fn_exit 0
16073 _ACEOF
16074 ac_clean_files=$ac_clean_files_save
16075
16076 test $ac_write_fail = 0 ||
16077   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16078
16079
16080 # configure is writing to config.log, and then calls config.status.
16081 # config.status does its own redirection, appending to config.log.
16082 # Unfortunately, on DOS this fails, as config.log is still kept open
16083 # by configure, so config.status won't be able to write to it; its
16084 # output is simply discarded.  So we exec the FD to /dev/null,
16085 # effectively closing config.log, so it can be properly (re)opened and
16086 # appended to by config.status.  When coming back to configure, we
16087 # need to make the FD available again.
16088 if test "$no_create" != yes; then
16089   ac_cs_success=:
16090   ac_config_status_args=
16091   test "$silent" = yes &&
16092     ac_config_status_args="$ac_config_status_args --quiet"
16093   exec 5>/dev/null
16094   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16095   exec 5>>config.log
16096   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16097   # would make configure fail if this is the last instruction.
16098   $ac_cs_success || as_fn_exit 1
16099 fi
16100 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16101   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16102 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16103 fi
16104