]> wimlib.net Git - wimlib/blob - autom4te.cache/output.0
fbe99e603f632578981e12a961e54d3bb7e2be58
[wimlib] / autom4te.cache / output.0
1 @%:@! /bin/sh
2 @%:@ Guess values for system-dependent variables and create Makefiles.
3 @%:@ Generated by GNU Autoconf 2.69 for wimlib 0.6.2.
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 @S|@? 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 "@S|@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 @S|@as_val. Take advantage of shells that can avoid forks. The arguments
400 @%:@ must be portable across @S|@(()) 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 @S|@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 LIB@&t@OBJS=
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.6.2'
594 PACKAGE_STRING='wimlib 0.6.2'
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 LIB@&t@OBJS
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 LTLIBICONV
650 LIBICONV
651 OTOOL64
652 OTOOL
653 LIPO
654 NMEDIT
655 DSYMUTIL
656 MANIFEST_TOOL
657 RANLIB
658 ac_ct_AR
659 AR
660 DLLTOOL
661 OBJDUMP
662 LN_S
663 NM
664 ac_ct_DUMPBIN
665 DUMPBIN
666 LD
667 FGREP
668 SED
669 host_os
670 host_vendor
671 host_cpu
672 host
673 build_os
674 build_vendor
675 build_cpu
676 build
677 LIBTOOL
678 EGREP
679 GREP
680 CPP
681 am__fastdepCC_FALSE
682 am__fastdepCC_TRUE
683 CCDEPMODE
684 am__nodep
685 AMDEPBACKSLASH
686 AMDEP_FALSE
687 AMDEP_TRUE
688 am__quote
689 am__include
690 DEPDIR
691 OBJEXT
692 EXEEXT
693 ac_ct_CC
694 CPPFLAGS
695 LDFLAGS
696 CFLAGS
697 CC
698 am__untar
699 am__tar
700 AMTAR
701 am__leading_dot
702 SET_MAKE
703 AWK
704 mkdir_p
705 MKDIR_P
706 INSTALL_STRIP_PROGRAM
707 STRIP
708 install_sh
709 MAKEINFO
710 AUTOHEADER
711 AUTOMAKE
712 AUTOCONF
713 ACLOCAL
714 VERSION
715 PACKAGE
716 CYGPATH_W
717 am__isrc
718 INSTALL_DATA
719 INSTALL_SCRIPT
720 INSTALL_PROGRAM
721 target_alias
722 host_alias
723 build_alias
724 LIBS
725 ECHO_T
726 ECHO_N
727 ECHO_C
728 DEFS
729 mandir
730 localedir
731 libdir
732 psdir
733 pdfdir
734 dvidir
735 htmldir
736 infodir
737 docdir
738 oldincludedir
739 includedir
740 localstatedir
741 sharedstatedir
742 sysconfdir
743 datadir
744 datarootdir
745 libexecdir
746 sbindir
747 bindir
748 program_transform_name
749 prefix
750 exec_prefix
751 PACKAGE_URL
752 PACKAGE_BUGREPORT
753 PACKAGE_STRING
754 PACKAGE_VERSION
755 PACKAGE_TARNAME
756 PACKAGE_NAME
757 PATH_SEPARATOR
758 SHELL'
759 ac_subst_files=''
760 ac_user_opts='
761 enable_option_checking
762 enable_dependency_tracking
763 enable_shared
764 enable_static
765 with_pic
766 enable_fast_install
767 with_gnu_ld
768 with_sysroot
769 enable_libtool_lock
770 enable_rpath
771 with_libiconv_prefix
772 enable_debug
773 enable_more_debug
774 enable_error_messages
775 enable_custom_memory_allocator
776 enable_assertions
777 enable_verify_compression
778 with_fuse
779 enable_ssse3_sha1
780 with_libcrypto
781 '
782       ac_precious_vars='build_alias
783 host_alias
784 target_alias
785 CC
786 CFLAGS
787 LDFLAGS
788 LIBS
789 CPPFLAGS
790 CPP'
791
792
793 # Initialize some variables set by options.
794 ac_init_help=
795 ac_init_version=false
796 ac_unrecognized_opts=
797 ac_unrecognized_sep=
798 # The variables have the same names as the options, with
799 # dashes changed to underlines.
800 cache_file=/dev/null
801 exec_prefix=NONE
802 no_create=
803 no_recursion=
804 prefix=NONE
805 program_prefix=NONE
806 program_suffix=NONE
807 program_transform_name=s,x,x,
808 silent=
809 site=
810 srcdir=
811 verbose=
812 x_includes=NONE
813 x_libraries=NONE
814
815 # Installation directory options.
816 # These are left unexpanded so users can "make install exec_prefix=/foo"
817 # and all the variables that are supposed to be based on exec_prefix
818 # by default will actually change.
819 # Use braces instead of parens because sh, perl, etc. also accept them.
820 # (The list follows the same order as the GNU Coding Standards.)
821 bindir='${exec_prefix}/bin'
822 sbindir='${exec_prefix}/sbin'
823 libexecdir='${exec_prefix}/libexec'
824 datarootdir='${prefix}/share'
825 datadir='${datarootdir}'
826 sysconfdir='${prefix}/etc'
827 sharedstatedir='${prefix}/com'
828 localstatedir='${prefix}/var'
829 includedir='${prefix}/include'
830 oldincludedir='/usr/include'
831 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
832 infodir='${datarootdir}/info'
833 htmldir='${docdir}'
834 dvidir='${docdir}'
835 pdfdir='${docdir}'
836 psdir='${docdir}'
837 libdir='${exec_prefix}/lib'
838 localedir='${datarootdir}/locale'
839 mandir='${datarootdir}/man'
840
841 ac_prev=
842 ac_dashdash=
843 for ac_option
844 do
845   # If the previous option needs an argument, assign it.
846   if test -n "$ac_prev"; then
847     eval $ac_prev=\$ac_option
848     ac_prev=
849     continue
850   fi
851
852   case $ac_option in
853   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
854   *=)   ac_optarg= ;;
855   *)    ac_optarg=yes ;;
856   esac
857
858   # Accept the important Cygnus configure options, so we can diagnose typos.
859
860   case $ac_dashdash$ac_option in
861   --)
862     ac_dashdash=yes ;;
863
864   -bindir | --bindir | --bindi | --bind | --bin | --bi)
865     ac_prev=bindir ;;
866   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
867     bindir=$ac_optarg ;;
868
869   -build | --build | --buil | --bui | --bu)
870     ac_prev=build_alias ;;
871   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
872     build_alias=$ac_optarg ;;
873
874   -cache-file | --cache-file | --cache-fil | --cache-fi \
875   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
876     ac_prev=cache_file ;;
877   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
878   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
879     cache_file=$ac_optarg ;;
880
881   --config-cache | -C)
882     cache_file=config.cache ;;
883
884   -datadir | --datadir | --datadi | --datad)
885     ac_prev=datadir ;;
886   -datadir=* | --datadir=* | --datadi=* | --datad=*)
887     datadir=$ac_optarg ;;
888
889   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
890   | --dataroo | --dataro | --datar)
891     ac_prev=datarootdir ;;
892   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
893   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
894     datarootdir=$ac_optarg ;;
895
896   -disable-* | --disable-*)
897     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
898     # Reject names that are not valid shell variable names.
899     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
900       as_fn_error $? "invalid feature name: $ac_useropt"
901     ac_useropt_orig=$ac_useropt
902     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
903     case $ac_user_opts in
904       *"
905 "enable_$ac_useropt"
906 "*) ;;
907       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
908          ac_unrecognized_sep=', ';;
909     esac
910     eval enable_$ac_useropt=no ;;
911
912   -docdir | --docdir | --docdi | --doc | --do)
913     ac_prev=docdir ;;
914   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
915     docdir=$ac_optarg ;;
916
917   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
918     ac_prev=dvidir ;;
919   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
920     dvidir=$ac_optarg ;;
921
922   -enable-* | --enable-*)
923     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
924     # Reject names that are not valid shell variable names.
925     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
926       as_fn_error $? "invalid feature name: $ac_useropt"
927     ac_useropt_orig=$ac_useropt
928     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
929     case $ac_user_opts in
930       *"
931 "enable_$ac_useropt"
932 "*) ;;
933       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
934          ac_unrecognized_sep=', ';;
935     esac
936     eval enable_$ac_useropt=\$ac_optarg ;;
937
938   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
939   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
940   | --exec | --exe | --ex)
941     ac_prev=exec_prefix ;;
942   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
943   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
944   | --exec=* | --exe=* | --ex=*)
945     exec_prefix=$ac_optarg ;;
946
947   -gas | --gas | --ga | --g)
948     # Obsolete; use --with-gas.
949     with_gas=yes ;;
950
951   -help | --help | --hel | --he | -h)
952     ac_init_help=long ;;
953   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
954     ac_init_help=recursive ;;
955   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
956     ac_init_help=short ;;
957
958   -host | --host | --hos | --ho)
959     ac_prev=host_alias ;;
960   -host=* | --host=* | --hos=* | --ho=*)
961     host_alias=$ac_optarg ;;
962
963   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
964     ac_prev=htmldir ;;
965   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
966   | --ht=*)
967     htmldir=$ac_optarg ;;
968
969   -includedir | --includedir | --includedi | --included | --include \
970   | --includ | --inclu | --incl | --inc)
971     ac_prev=includedir ;;
972   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
973   | --includ=* | --inclu=* | --incl=* | --inc=*)
974     includedir=$ac_optarg ;;
975
976   -infodir | --infodir | --infodi | --infod | --info | --inf)
977     ac_prev=infodir ;;
978   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
979     infodir=$ac_optarg ;;
980
981   -libdir | --libdir | --libdi | --libd)
982     ac_prev=libdir ;;
983   -libdir=* | --libdir=* | --libdi=* | --libd=*)
984     libdir=$ac_optarg ;;
985
986   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
987   | --libexe | --libex | --libe)
988     ac_prev=libexecdir ;;
989   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
990   | --libexe=* | --libex=* | --libe=*)
991     libexecdir=$ac_optarg ;;
992
993   -localedir | --localedir | --localedi | --localed | --locale)
994     ac_prev=localedir ;;
995   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
996     localedir=$ac_optarg ;;
997
998   -localstatedir | --localstatedir | --localstatedi | --localstated \
999   | --localstate | --localstat | --localsta | --localst | --locals)
1000     ac_prev=localstatedir ;;
1001   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1002   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1003     localstatedir=$ac_optarg ;;
1004
1005   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1006     ac_prev=mandir ;;
1007   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1008     mandir=$ac_optarg ;;
1009
1010   -nfp | --nfp | --nf)
1011     # Obsolete; use --without-fp.
1012     with_fp=no ;;
1013
1014   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1015   | --no-cr | --no-c | -n)
1016     no_create=yes ;;
1017
1018   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1019   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1020     no_recursion=yes ;;
1021
1022   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1023   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1024   | --oldin | --oldi | --old | --ol | --o)
1025     ac_prev=oldincludedir ;;
1026   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1027   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1028   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1029     oldincludedir=$ac_optarg ;;
1030
1031   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1032     ac_prev=prefix ;;
1033   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1034     prefix=$ac_optarg ;;
1035
1036   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1037   | --program-pre | --program-pr | --program-p)
1038     ac_prev=program_prefix ;;
1039   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1040   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1041     program_prefix=$ac_optarg ;;
1042
1043   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1044   | --program-suf | --program-su | --program-s)
1045     ac_prev=program_suffix ;;
1046   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1047   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1048     program_suffix=$ac_optarg ;;
1049
1050   -program-transform-name | --program-transform-name \
1051   | --program-transform-nam | --program-transform-na \
1052   | --program-transform-n | --program-transform- \
1053   | --program-transform | --program-transfor \
1054   | --program-transfo | --program-transf \
1055   | --program-trans | --program-tran \
1056   | --progr-tra | --program-tr | --program-t)
1057     ac_prev=program_transform_name ;;
1058   -program-transform-name=* | --program-transform-name=* \
1059   | --program-transform-nam=* | --program-transform-na=* \
1060   | --program-transform-n=* | --program-transform-=* \
1061   | --program-transform=* | --program-transfor=* \
1062   | --program-transfo=* | --program-transf=* \
1063   | --program-trans=* | --program-tran=* \
1064   | --progr-tra=* | --program-tr=* | --program-t=*)
1065     program_transform_name=$ac_optarg ;;
1066
1067   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1068     ac_prev=pdfdir ;;
1069   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1070     pdfdir=$ac_optarg ;;
1071
1072   -psdir | --psdir | --psdi | --psd | --ps)
1073     ac_prev=psdir ;;
1074   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1075     psdir=$ac_optarg ;;
1076
1077   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078   | -silent | --silent | --silen | --sile | --sil)
1079     silent=yes ;;
1080
1081   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1082     ac_prev=sbindir ;;
1083   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1084   | --sbi=* | --sb=*)
1085     sbindir=$ac_optarg ;;
1086
1087   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1088   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1089   | --sharedst | --shareds | --shared | --share | --shar \
1090   | --sha | --sh)
1091     ac_prev=sharedstatedir ;;
1092   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1093   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1094   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1095   | --sha=* | --sh=*)
1096     sharedstatedir=$ac_optarg ;;
1097
1098   -site | --site | --sit)
1099     ac_prev=site ;;
1100   -site=* | --site=* | --sit=*)
1101     site=$ac_optarg ;;
1102
1103   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1104     ac_prev=srcdir ;;
1105   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1106     srcdir=$ac_optarg ;;
1107
1108   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1109   | --syscon | --sysco | --sysc | --sys | --sy)
1110     ac_prev=sysconfdir ;;
1111   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1112   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1113     sysconfdir=$ac_optarg ;;
1114
1115   -target | --target | --targe | --targ | --tar | --ta | --t)
1116     ac_prev=target_alias ;;
1117   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1118     target_alias=$ac_optarg ;;
1119
1120   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1121     verbose=yes ;;
1122
1123   -version | --version | --versio | --versi | --vers | -V)
1124     ac_init_version=: ;;
1125
1126   -with-* | --with-*)
1127     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1128     # Reject names that are not valid shell variable names.
1129     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1130       as_fn_error $? "invalid package name: $ac_useropt"
1131     ac_useropt_orig=$ac_useropt
1132     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1133     case $ac_user_opts in
1134       *"
1135 "with_$ac_useropt"
1136 "*) ;;
1137       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1138          ac_unrecognized_sep=', ';;
1139     esac
1140     eval with_$ac_useropt=\$ac_optarg ;;
1141
1142   -without-* | --without-*)
1143     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1144     # Reject names that are not valid shell variable names.
1145     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146       as_fn_error $? "invalid package name: $ac_useropt"
1147     ac_useropt_orig=$ac_useropt
1148     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149     case $ac_user_opts in
1150       *"
1151 "with_$ac_useropt"
1152 "*) ;;
1153       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1154          ac_unrecognized_sep=', ';;
1155     esac
1156     eval with_$ac_useropt=no ;;
1157
1158   --x)
1159     # Obsolete; use --with-x.
1160     with_x=yes ;;
1161
1162   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1163   | --x-incl | --x-inc | --x-in | --x-i)
1164     ac_prev=x_includes ;;
1165   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1166   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1167     x_includes=$ac_optarg ;;
1168
1169   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1170   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1171     ac_prev=x_libraries ;;
1172   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1173   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1174     x_libraries=$ac_optarg ;;
1175
1176   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1177 Try \`$0 --help' for more information"
1178     ;;
1179
1180   *=*)
1181     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1182     # Reject names that are not valid shell variable names.
1183     case $ac_envvar in #(
1184       '' | [0-9]* | *[!_$as_cr_alnum]* )
1185       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1186     esac
1187     eval $ac_envvar=\$ac_optarg
1188     export $ac_envvar ;;
1189
1190   *)
1191     # FIXME: should be removed in autoconf 3.0.
1192     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1193     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1194       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1195     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1196     ;;
1197
1198   esac
1199 done
1200
1201 if test -n "$ac_prev"; then
1202   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1203   as_fn_error $? "missing argument to $ac_option"
1204 fi
1205
1206 if test -n "$ac_unrecognized_opts"; then
1207   case $enable_option_checking in
1208     no) ;;
1209     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1210     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1211   esac
1212 fi
1213
1214 # Check all directory arguments for consistency.
1215 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1216                 datadir sysconfdir sharedstatedir localstatedir includedir \
1217                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1218                 libdir localedir mandir
1219 do
1220   eval ac_val=\$$ac_var
1221   # Remove trailing slashes.
1222   case $ac_val in
1223     */ )
1224       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1225       eval $ac_var=\$ac_val;;
1226   esac
1227   # Be sure to have absolute directory names.
1228   case $ac_val in
1229     [\\/$]* | ?:[\\/]* )  continue;;
1230     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1231   esac
1232   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1233 done
1234
1235 # There might be people who depend on the old broken behavior: `$host'
1236 # used to hold the argument of --host etc.
1237 # FIXME: To remove some day.
1238 build=$build_alias
1239 host=$host_alias
1240 target=$target_alias
1241
1242 # FIXME: To remove some day.
1243 if test "x$host_alias" != x; then
1244   if test "x$build_alias" = x; then
1245     cross_compiling=maybe
1246   elif test "x$build_alias" != "x$host_alias"; then
1247     cross_compiling=yes
1248   fi
1249 fi
1250
1251 ac_tool_prefix=
1252 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1253
1254 test "$silent" = yes && exec 6>/dev/null
1255
1256
1257 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1258 ac_ls_di=`ls -di .` &&
1259 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1260   as_fn_error $? "working directory cannot be determined"
1261 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1262   as_fn_error $? "pwd does not report name of working directory"
1263
1264
1265 # Find the source files, if location was not specified.
1266 if test -z "$srcdir"; then
1267   ac_srcdir_defaulted=yes
1268   # Try the directory containing this script, then the parent directory.
1269   ac_confdir=`$as_dirname -- "$as_myself" ||
1270 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1271          X"$as_myself" : 'X\(//\)[^/]' \| \
1272          X"$as_myself" : 'X\(//\)$' \| \
1273          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1274 $as_echo X"$as_myself" |
1275     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1276             s//\1/
1277             q
1278           }
1279           /^X\(\/\/\)[^/].*/{
1280             s//\1/
1281             q
1282           }
1283           /^X\(\/\/\)$/{
1284             s//\1/
1285             q
1286           }
1287           /^X\(\/\).*/{
1288             s//\1/
1289             q
1290           }
1291           s/.*/./; q'`
1292   srcdir=$ac_confdir
1293   if test ! -r "$srcdir/$ac_unique_file"; then
1294     srcdir=..
1295   fi
1296 else
1297   ac_srcdir_defaulted=no
1298 fi
1299 if test ! -r "$srcdir/$ac_unique_file"; then
1300   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1301   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1302 fi
1303 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1304 ac_abs_confdir=`(
1305         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1306         pwd)`
1307 # When building in place, set srcdir=.
1308 if test "$ac_abs_confdir" = "$ac_pwd"; then
1309   srcdir=.
1310 fi
1311 # Remove unnecessary trailing slashes from srcdir.
1312 # Double slashes in file names in object file debugging info
1313 # mess up M-x gdb in Emacs.
1314 case $srcdir in
1315 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1316 esac
1317 for ac_var in $ac_precious_vars; do
1318   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1319   eval ac_env_${ac_var}_value=\$${ac_var}
1320   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1321   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1322 done
1323
1324 #
1325 # Report the --help message.
1326 #
1327 if test "$ac_init_help" = "long"; then
1328   # Omit some internal or obsolete options to make the list less imposing.
1329   # This message is too long to be a string in the A/UX 3.1 sh.
1330   cat <<_ACEOF
1331 \`configure' configures wimlib 0.6.2 to adapt to many kinds of systems.
1332
1333 Usage: $0 [OPTION]... [VAR=VALUE]...
1334
1335 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1336 VAR=VALUE.  See below for descriptions of some of the useful variables.
1337
1338 Defaults for the options are specified in brackets.
1339
1340 Configuration:
1341   -h, --help              display this help and exit
1342       --help=short        display options specific to this package
1343       --help=recursive    display the short help of all the included packages
1344   -V, --version           display version information and exit
1345   -q, --quiet, --silent   do not print \`checking ...' messages
1346       --cache-file=FILE   cache test results in FILE [disabled]
1347   -C, --config-cache      alias for \`--cache-file=config.cache'
1348   -n, --no-create         do not create output files
1349       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1350
1351 Installation directories:
1352   --prefix=PREFIX         install architecture-independent files in PREFIX
1353                           @<:@@S|@ac_default_prefix@:>@
1354   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1355                           @<:@PREFIX@:>@
1356
1357 By default, \`make install' will install all the files in
1358 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1359 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1360 for instance \`--prefix=\$HOME'.
1361
1362 For better control, use the options below.
1363
1364 Fine tuning of the installation directories:
1365   --bindir=DIR            user executables [EPREFIX/bin]
1366   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1367   --libexecdir=DIR        program executables [EPREFIX/libexec]
1368   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1369   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1370   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1371   --libdir=DIR            object code libraries [EPREFIX/lib]
1372   --includedir=DIR        C header files [PREFIX/include]
1373   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1374   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1375   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1376   --infodir=DIR           info documentation [DATAROOTDIR/info]
1377   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1378   --mandir=DIR            man documentation [DATAROOTDIR/man]
1379   --docdir=DIR            documentation root @<:@DATAROOTDIR/doc/wimlib@:>@
1380   --htmldir=DIR           html documentation [DOCDIR]
1381   --dvidir=DIR            dvi documentation [DOCDIR]
1382   --pdfdir=DIR            pdf documentation [DOCDIR]
1383   --psdir=DIR             ps documentation [DOCDIR]
1384 _ACEOF
1385
1386   cat <<\_ACEOF
1387
1388 Program names:
1389   --program-prefix=PREFIX            prepend PREFIX to installed program names
1390   --program-suffix=SUFFIX            append SUFFIX to installed program names
1391   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1392
1393 System types:
1394   --build=BUILD     configure for building on BUILD [guessed]
1395   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1396 _ACEOF
1397 fi
1398
1399 if test -n "$ac_init_help"; then
1400   case $ac_init_help in
1401      short | recursive ) echo "Configuration of wimlib 0.6.2:";;
1402    esac
1403   cat <<\_ACEOF
1404
1405 Optional Features:
1406   --disable-option-checking  ignore unrecognized --enable/--with options
1407   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1408   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1409   --enable-dependency-tracking 
1410                           do not reject slow dependency extractors
1411   --disable-dependency-tracking 
1412                           speeds up one-time build
1413   --enable-shared@<:@=PKGS@:>@  build shared libraries @<:@default=yes@:>@
1414   --enable-static@<:@=PKGS@:>@  build static libraries @<:@default=yes@:>@
1415   --enable-fast-install@<:@=PKGS@:>@ 
1416                           optimize for fast installation @<:@default=yes@:>@
1417   --disable-libtool-lock  avoid locking (might break parallel builds)
1418   --disable-rpath         do not hardcode runtime library paths
1419   --enable-debug          include lots of debugging messages
1420   --enable-more-debug     include even more debugging messages
1421   --disable-error-messages 
1422                           do not compile in error messsages
1423   --disable-custom-memory-allocator 
1424                           do not support the use of custom memory allocation
1425                           functions
1426   --disable-assertions    do not include assertions
1427   --disable-verify-compression 
1428                           disable checking if blocks we compress can be
1429                           correctly decompressed
1430   --enable-ssse3-sha1     use assembly language implementation of SHA1 from
1431                           Intel, accelerated with vector instructions
1432                           (SSSE3-enabled CPU required)
1433
1434 Optional Packages:
1435   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1436   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1437   --with-pic@<:@=PKGS@:>@       try to use only PIC/non-PIC objects @<:@default=use
1438                           both@:>@
1439   --with-gnu-ld           assume the C compiler uses GNU ld @<:@default=no@:>@
1440   --with-sysroot=DIR Search for dependent libraries within DIR
1441                         (or the compiler's sysroot if not specified).
1442   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1443   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1444   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1445   --without-fuse          build without libfuse. This will disable the ability
1446                           to mount WIM files.
1447   --without-libcrypto     build in the SHA1 algorithm, rather than use
1448                           external libcrypto from OpenSSL (default is
1449                           autodetect)
1450
1451 Some influential environment variables:
1452   CC          C compiler command
1453   CFLAGS      C compiler flags
1454   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1455               nonstandard directory <lib dir>
1456   LIBS        libraries to pass to the linker, e.g. -l<library>
1457   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1458               you have headers in a nonstandard directory <include dir>
1459   CPP         C preprocessor
1460
1461 Use these variables to override the choices made by `configure' or to help
1462 it to find libraries and programs with nonstandard names/locations.
1463
1464 Report bugs to <ebiggers3@gmail.com>.
1465 _ACEOF
1466 ac_status=$?
1467 fi
1468
1469 if test "$ac_init_help" = "recursive"; then
1470   # If there are subdirs, report their specific --help.
1471   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1472     test -d "$ac_dir" ||
1473       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1474       continue
1475     ac_builddir=.
1476
1477 case "$ac_dir" in
1478 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1479 *)
1480   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1481   # A ".." for each directory in $ac_dir_suffix.
1482   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1483   case $ac_top_builddir_sub in
1484   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1485   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1486   esac ;;
1487 esac
1488 ac_abs_top_builddir=$ac_pwd
1489 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1490 # for backward compatibility:
1491 ac_top_builddir=$ac_top_build_prefix
1492
1493 case $srcdir in
1494   .)  # We are building in place.
1495     ac_srcdir=.
1496     ac_top_srcdir=$ac_top_builddir_sub
1497     ac_abs_top_srcdir=$ac_pwd ;;
1498   [\\/]* | ?:[\\/]* )  # Absolute name.
1499     ac_srcdir=$srcdir$ac_dir_suffix;
1500     ac_top_srcdir=$srcdir
1501     ac_abs_top_srcdir=$srcdir ;;
1502   *) # Relative name.
1503     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1504     ac_top_srcdir=$ac_top_build_prefix$srcdir
1505     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1506 esac
1507 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1508
1509     cd "$ac_dir" || { ac_status=$?; continue; }
1510     # Check for guested configure.
1511     if test -f "$ac_srcdir/configure.gnu"; then
1512       echo &&
1513       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1514     elif test -f "$ac_srcdir/configure"; then
1515       echo &&
1516       $SHELL "$ac_srcdir/configure" --help=recursive
1517     else
1518       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1519     fi || ac_status=$?
1520     cd "$ac_pwd" || { ac_status=$?; break; }
1521   done
1522 fi
1523
1524 test -n "$ac_init_help" && exit $ac_status
1525 if $ac_init_version; then
1526   cat <<\_ACEOF
1527 wimlib configure 0.6.2
1528 generated by GNU Autoconf 2.69
1529
1530 Copyright (C) 2012 Free Software Foundation, Inc.
1531 This configure script is free software; the Free Software Foundation
1532 gives unlimited permission to copy, distribute and modify it.
1533 _ACEOF
1534   exit
1535 fi
1536
1537 ## ------------------------ ##
1538 ## Autoconf initialization. ##
1539 ## ------------------------ ##
1540
1541 @%:@ ac_fn_c_try_compile LINENO
1542 @%:@ --------------------------
1543 @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1544 ac_fn_c_try_compile ()
1545 {
1546   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1547   rm -f conftest.$ac_objext
1548   if { { ac_try="$ac_compile"
1549 case "(($ac_try" in
1550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1551   *) ac_try_echo=$ac_try;;
1552 esac
1553 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1554 $as_echo "$ac_try_echo"; } >&5
1555   (eval "$ac_compile") 2>conftest.err
1556   ac_status=$?
1557   if test -s conftest.err; then
1558     grep -v '^ *+' conftest.err >conftest.er1
1559     cat conftest.er1 >&5
1560     mv -f conftest.er1 conftest.err
1561   fi
1562   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1563   test $ac_status = 0; } && {
1564          test -z "$ac_c_werror_flag" ||
1565          test ! -s conftest.err
1566        } && test -s conftest.$ac_objext; then :
1567   ac_retval=0
1568 else
1569   $as_echo "$as_me: failed program was:" >&5
1570 sed 's/^/| /' conftest.$ac_ext >&5
1571
1572         ac_retval=1
1573 fi
1574   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1575   as_fn_set_status $ac_retval
1576
1577 } @%:@ ac_fn_c_try_compile
1578
1579 @%:@ ac_fn_c_try_run LINENO
1580 @%:@ ----------------------
1581 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
1582 @%:@ that executables *can* be run.
1583 ac_fn_c_try_run ()
1584 {
1585   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1586   if { { ac_try="$ac_link"
1587 case "(($ac_try" in
1588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1589   *) ac_try_echo=$ac_try;;
1590 esac
1591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1592 $as_echo "$ac_try_echo"; } >&5
1593   (eval "$ac_link") 2>&5
1594   ac_status=$?
1595   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1596   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1597   { { case "(($ac_try" in
1598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1599   *) ac_try_echo=$ac_try;;
1600 esac
1601 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1602 $as_echo "$ac_try_echo"; } >&5
1603   (eval "$ac_try") 2>&5
1604   ac_status=$?
1605   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1606   test $ac_status = 0; }; }; then :
1607   ac_retval=0
1608 else
1609   $as_echo "$as_me: program exited with status $ac_status" >&5
1610        $as_echo "$as_me: failed program was:" >&5
1611 sed 's/^/| /' conftest.$ac_ext >&5
1612
1613        ac_retval=$ac_status
1614 fi
1615   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1616   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1617   as_fn_set_status $ac_retval
1618
1619 } @%:@ ac_fn_c_try_run
1620
1621 @%:@ ac_fn_c_try_cpp LINENO
1622 @%:@ ----------------------
1623 @%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
1624 ac_fn_c_try_cpp ()
1625 {
1626   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627   if { { ac_try="$ac_cpp conftest.$ac_ext"
1628 case "(($ac_try" in
1629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1630   *) ac_try_echo=$ac_try;;
1631 esac
1632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1633 $as_echo "$ac_try_echo"; } >&5
1634   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1635   ac_status=$?
1636   if test -s conftest.err; then
1637     grep -v '^ *+' conftest.err >conftest.er1
1638     cat conftest.er1 >&5
1639     mv -f conftest.er1 conftest.err
1640   fi
1641   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1642   test $ac_status = 0; } > conftest.i && {
1643          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1644          test ! -s conftest.err
1645        }; then :
1646   ac_retval=0
1647 else
1648   $as_echo "$as_me: failed program was:" >&5
1649 sed 's/^/| /' conftest.$ac_ext >&5
1650
1651     ac_retval=1
1652 fi
1653   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1654   as_fn_set_status $ac_retval
1655
1656 } @%:@ ac_fn_c_try_cpp
1657
1658 @%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1659 @%:@ -------------------------------------------------------
1660 @%:@ Tests whether HEADER exists and can be compiled using the include files in
1661 @%:@ INCLUDES, setting the cache variable VAR accordingly.
1662 ac_fn_c_check_header_compile ()
1663 {
1664   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1666 $as_echo_n "checking for $2... " >&6; }
1667 if eval \${$3+:} false; then :
1668   $as_echo_n "(cached) " >&6
1669 else
1670   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1671 /* end confdefs.h.  */
1672 $4
1673 @%:@include <$2>
1674 _ACEOF
1675 if ac_fn_c_try_compile "$LINENO"; then :
1676   eval "$3=yes"
1677 else
1678   eval "$3=no"
1679 fi
1680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1681 fi
1682 eval ac_res=\$$3
1683                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1684 $as_echo "$ac_res" >&6; }
1685   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686
1687 } @%:@ ac_fn_c_check_header_compile
1688
1689 @%:@ ac_fn_c_try_link LINENO
1690 @%:@ -----------------------
1691 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
1692 ac_fn_c_try_link ()
1693 {
1694   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695   rm -f conftest.$ac_objext conftest$ac_exeext
1696   if { { ac_try="$ac_link"
1697 case "(($ac_try" in
1698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699   *) ac_try_echo=$ac_try;;
1700 esac
1701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702 $as_echo "$ac_try_echo"; } >&5
1703   (eval "$ac_link") 2>conftest.err
1704   ac_status=$?
1705   if test -s conftest.err; then
1706     grep -v '^ *+' conftest.err >conftest.er1
1707     cat conftest.er1 >&5
1708     mv -f conftest.er1 conftest.err
1709   fi
1710   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711   test $ac_status = 0; } && {
1712          test -z "$ac_c_werror_flag" ||
1713          test ! -s conftest.err
1714        } && test -s conftest$ac_exeext && {
1715          test "$cross_compiling" = yes ||
1716          test -x conftest$ac_exeext
1717        }; then :
1718   ac_retval=0
1719 else
1720   $as_echo "$as_me: failed program was:" >&5
1721 sed 's/^/| /' conftest.$ac_ext >&5
1722
1723         ac_retval=1
1724 fi
1725   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1726   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1727   # interfere with the next link command; also delete a directory that is
1728   # left behind by Apple's compiler.  We do this before executing the actions.
1729   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1730   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1731   as_fn_set_status $ac_retval
1732
1733 } @%:@ ac_fn_c_try_link
1734
1735 @%:@ ac_fn_c_check_func LINENO FUNC VAR
1736 @%:@ ----------------------------------
1737 @%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
1738 ac_fn_c_check_func ()
1739 {
1740   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1742 $as_echo_n "checking for $2... " >&6; }
1743 if eval \${$3+:} false; then :
1744   $as_echo_n "(cached) " >&6
1745 else
1746   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1747 /* end confdefs.h.  */
1748 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1749    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1750 #define $2 innocuous_$2
1751
1752 /* System header to define __stub macros and hopefully few prototypes,
1753     which can conflict with char $2 (); below.
1754     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1755     <limits.h> exists even on freestanding compilers.  */
1756
1757 #ifdef __STDC__
1758 # include <limits.h>
1759 #else
1760 # include <assert.h>
1761 #endif
1762
1763 #undef $2
1764
1765 /* Override any GCC internal prototype to avoid an error.
1766    Use char because int might match the return type of a GCC
1767    builtin and then its argument prototype would still apply.  */
1768 #ifdef __cplusplus
1769 extern "C"
1770 #endif
1771 char $2 ();
1772 /* The GNU C library defines this for functions which it implements
1773     to always fail with ENOSYS.  Some functions are actually named
1774     something starting with __ and the normal name is an alias.  */
1775 #if defined __stub_$2 || defined __stub___$2
1776 choke me
1777 #endif
1778
1779 int
1780 main ()
1781 {
1782 return $2 ();
1783   ;
1784   return 0;
1785 }
1786 _ACEOF
1787 if ac_fn_c_try_link "$LINENO"; then :
1788   eval "$3=yes"
1789 else
1790   eval "$3=no"
1791 fi
1792 rm -f core conftest.err conftest.$ac_objext \
1793     conftest$ac_exeext conftest.$ac_ext
1794 fi
1795 eval ac_res=\$$3
1796                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1797 $as_echo "$ac_res" >&6; }
1798   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1799
1800 } @%:@ ac_fn_c_check_func
1801 cat >config.log <<_ACEOF
1802 This file contains any messages produced by compilers while
1803 running configure, to aid debugging if configure makes a mistake.
1804
1805 It was created by wimlib $as_me 0.6.2, which was
1806 generated by GNU Autoconf 2.69.  Invocation command line was
1807
1808   $ $0 $@
1809
1810 _ACEOF
1811 exec 5>>config.log
1812 {
1813 cat <<_ASUNAME
1814 ## --------- ##
1815 ## Platform. ##
1816 ## --------- ##
1817
1818 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1819 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1820 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1821 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1822 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1823
1824 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1825 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1826
1827 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1828 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1829 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1830 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1831 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1832 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1833 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1834
1835 _ASUNAME
1836
1837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1838 for as_dir in $PATH
1839 do
1840   IFS=$as_save_IFS
1841   test -z "$as_dir" && as_dir=.
1842     $as_echo "PATH: $as_dir"
1843   done
1844 IFS=$as_save_IFS
1845
1846 } >&5
1847
1848 cat >&5 <<_ACEOF
1849
1850
1851 ## ----------- ##
1852 ## Core tests. ##
1853 ## ----------- ##
1854
1855 _ACEOF
1856
1857
1858 # Keep a trace of the command line.
1859 # Strip out --no-create and --no-recursion so they do not pile up.
1860 # Strip out --silent because we don't want to record it for future runs.
1861 # Also quote any args containing shell meta-characters.
1862 # Make two passes to allow for proper duplicate-argument suppression.
1863 ac_configure_args=
1864 ac_configure_args0=
1865 ac_configure_args1=
1866 ac_must_keep_next=false
1867 for ac_pass in 1 2
1868 do
1869   for ac_arg
1870   do
1871     case $ac_arg in
1872     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1873     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1874     | -silent | --silent | --silen | --sile | --sil)
1875       continue ;;
1876     *\'*)
1877       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1878     esac
1879     case $ac_pass in
1880     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1881     2)
1882       as_fn_append ac_configure_args1 " '$ac_arg'"
1883       if test $ac_must_keep_next = true; then
1884         ac_must_keep_next=false # Got value, back to normal.
1885       else
1886         case $ac_arg in
1887           *=* | --config-cache | -C | -disable-* | --disable-* \
1888           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1889           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1890           | -with-* | --with-* | -without-* | --without-* | --x)
1891             case "$ac_configure_args0 " in
1892               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1893             esac
1894             ;;
1895           -* ) ac_must_keep_next=true ;;
1896         esac
1897       fi
1898       as_fn_append ac_configure_args " '$ac_arg'"
1899       ;;
1900     esac
1901   done
1902 done
1903 { ac_configure_args0=; unset ac_configure_args0;}
1904 { ac_configure_args1=; unset ac_configure_args1;}
1905
1906 # When interrupted or exit'd, cleanup temporary files, and complete
1907 # config.log.  We remove comments because anyway the quotes in there
1908 # would cause problems or look ugly.
1909 # WARNING: Use '\'' to represent an apostrophe within the trap.
1910 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1911 trap 'exit_status=$?
1912   # Save into config.log some information that might help in debugging.
1913   {
1914     echo
1915
1916     $as_echo "## ---------------- ##
1917 ## Cache variables. ##
1918 ## ---------------- ##"
1919     echo
1920     # The following way of writing the cache mishandles newlines in values,
1921 (
1922   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1923     eval ac_val=\$$ac_var
1924     case $ac_val in #(
1925     *${as_nl}*)
1926       case $ac_var in #(
1927       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1928 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1929       esac
1930       case $ac_var in #(
1931       _ | IFS | as_nl) ;; #(
1932       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1933       *) { eval $ac_var=; unset $ac_var;} ;;
1934       esac ;;
1935     esac
1936   done
1937   (set) 2>&1 |
1938     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1939     *${as_nl}ac_space=\ *)
1940       sed -n \
1941         "s/'\''/'\''\\\\'\'''\''/g;
1942           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1943       ;; #(
1944     *)
1945       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1946       ;;
1947     esac |
1948     sort
1949 )
1950     echo
1951
1952     $as_echo "## ----------------- ##
1953 ## Output variables. ##
1954 ## ----------------- ##"
1955     echo
1956     for ac_var in $ac_subst_vars
1957     do
1958       eval ac_val=\$$ac_var
1959       case $ac_val in
1960       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1961       esac
1962       $as_echo "$ac_var='\''$ac_val'\''"
1963     done | sort
1964     echo
1965
1966     if test -n "$ac_subst_files"; then
1967       $as_echo "## ------------------- ##
1968 ## File substitutions. ##
1969 ## ------------------- ##"
1970       echo
1971       for ac_var in $ac_subst_files
1972       do
1973         eval ac_val=\$$ac_var
1974         case $ac_val in
1975         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1976         esac
1977         $as_echo "$ac_var='\''$ac_val'\''"
1978       done | sort
1979       echo
1980     fi
1981
1982     if test -s confdefs.h; then
1983       $as_echo "## ----------- ##
1984 ## confdefs.h. ##
1985 ## ----------- ##"
1986       echo
1987       cat confdefs.h
1988       echo
1989     fi
1990     test "$ac_signal" != 0 &&
1991       $as_echo "$as_me: caught signal $ac_signal"
1992     $as_echo "$as_me: exit $exit_status"
1993   } >&5
1994   rm -f core *.core core.conftest.* &&
1995     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1996     exit $exit_status
1997 ' 0
1998 for ac_signal in 1 2 13 15; do
1999   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2000 done
2001 ac_signal=0
2002
2003 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2004 rm -f -r conftest* confdefs.h
2005
2006 $as_echo "/* confdefs.h */" > confdefs.h
2007
2008 # Predefined preprocessor variables.
2009
2010 cat >>confdefs.h <<_ACEOF
2011 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
2012 _ACEOF
2013
2014 cat >>confdefs.h <<_ACEOF
2015 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2016 _ACEOF
2017
2018 cat >>confdefs.h <<_ACEOF
2019 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
2020 _ACEOF
2021
2022 cat >>confdefs.h <<_ACEOF
2023 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
2024 _ACEOF
2025
2026 cat >>confdefs.h <<_ACEOF
2027 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2028 _ACEOF
2029
2030 cat >>confdefs.h <<_ACEOF
2031 @%:@define PACKAGE_URL "$PACKAGE_URL"
2032 _ACEOF
2033
2034
2035 # Let the site file select an alternate cache file if it wants to.
2036 # Prefer an explicitly selected file to automatically selected ones.
2037 ac_site_file1=NONE
2038 ac_site_file2=NONE
2039 if test -n "$CONFIG_SITE"; then
2040   # We do not want a PATH search for config.site.
2041   case $CONFIG_SITE in @%:@((
2042     -*)  ac_site_file1=./$CONFIG_SITE;;
2043     */*) ac_site_file1=$CONFIG_SITE;;
2044     *)   ac_site_file1=./$CONFIG_SITE;;
2045   esac
2046 elif test "x$prefix" != xNONE; then
2047   ac_site_file1=$prefix/share/config.site
2048   ac_site_file2=$prefix/etc/config.site
2049 else
2050   ac_site_file1=$ac_default_prefix/share/config.site
2051   ac_site_file2=$ac_default_prefix/etc/config.site
2052 fi
2053 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2054 do
2055   test "x$ac_site_file" = xNONE && continue
2056   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2057     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2058 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2059     sed 's/^/| /' "$ac_site_file" >&5
2060     . "$ac_site_file" \
2061       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2062 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2063 as_fn_error $? "failed to load site script $ac_site_file
2064 See \`config.log' for more details" "$LINENO" 5; }
2065   fi
2066 done
2067
2068 if test -r "$cache_file"; then
2069   # Some versions of bash will fail to source /dev/null (special files
2070   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2071   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2072     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2073 $as_echo "$as_me: loading cache $cache_file" >&6;}
2074     case $cache_file in
2075       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2076       *)                      . "./$cache_file";;
2077     esac
2078   fi
2079 else
2080   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2081 $as_echo "$as_me: creating cache $cache_file" >&6;}
2082   >$cache_file
2083 fi
2084
2085 # Check that the precious variables saved in the cache have kept the same
2086 # value.
2087 ac_cache_corrupted=false
2088 for ac_var in $ac_precious_vars; do
2089   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2090   eval ac_new_set=\$ac_env_${ac_var}_set
2091   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2092   eval ac_new_val=\$ac_env_${ac_var}_value
2093   case $ac_old_set,$ac_new_set in
2094     set,)
2095       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2096 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2097       ac_cache_corrupted=: ;;
2098     ,set)
2099       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2100 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2101       ac_cache_corrupted=: ;;
2102     ,);;
2103     *)
2104       if test "x$ac_old_val" != "x$ac_new_val"; then
2105         # differences in whitespace do not lead to failure.
2106         ac_old_val_w=`echo x $ac_old_val`
2107         ac_new_val_w=`echo x $ac_new_val`
2108         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2109           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2110 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2111           ac_cache_corrupted=:
2112         else
2113           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2114 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2115           eval $ac_var=\$ac_old_val
2116         fi
2117         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2118 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2119         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2120 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2121       fi;;
2122   esac
2123   # Pass precious variables to config.status.
2124   if test "$ac_new_set" = set; then
2125     case $ac_new_val in
2126     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2127     *) ac_arg=$ac_var=$ac_new_val ;;
2128     esac
2129     case " $ac_configure_args " in
2130       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2131       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2132     esac
2133   fi
2134 done
2135 if $ac_cache_corrupted; then
2136   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2137 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2138   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2139 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2140   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2141 fi
2142 ## -------------------- ##
2143 ## Main body of script. ##
2144 ## -------------------- ##
2145
2146 ac_ext=c
2147 ac_cpp='$CPP $CPPFLAGS'
2148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2151
2152
2153
2154 am__api_version='1.12'
2155
2156 ac_aux_dir=
2157 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2158   if test -f "$ac_dir/install-sh"; then
2159     ac_aux_dir=$ac_dir
2160     ac_install_sh="$ac_aux_dir/install-sh -c"
2161     break
2162   elif test -f "$ac_dir/install.sh"; then
2163     ac_aux_dir=$ac_dir
2164     ac_install_sh="$ac_aux_dir/install.sh -c"
2165     break
2166   elif test -f "$ac_dir/shtool"; then
2167     ac_aux_dir=$ac_dir
2168     ac_install_sh="$ac_aux_dir/shtool install -c"
2169     break
2170   fi
2171 done
2172 if test -z "$ac_aux_dir"; then
2173   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2174 fi
2175
2176 # These three variables are undocumented and unsupported,
2177 # and are intended to be withdrawn in a future Autoconf release.
2178 # They can cause serious problems if a builder's source tree is in a directory
2179 # whose full name contains unusual characters.
2180 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2181 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2182 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2183
2184
2185 # Find a good install program.  We prefer a C program (faster),
2186 # so one script is as good as another.  But avoid the broken or
2187 # incompatible versions:
2188 # SysV /etc/install, /usr/sbin/install
2189 # SunOS /usr/etc/install
2190 # IRIX /sbin/install
2191 # AIX /bin/install
2192 # AmigaOS /C/install, which installs bootblocks on floppy discs
2193 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2194 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2195 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2196 # OS/2's system install, which has a completely different semantic
2197 # ./install, which can be erroneously created by make from ./install.sh.
2198 # Reject install programs that cannot install multiple files.
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2200 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2201 if test -z "$INSTALL"; then
2202 if ${ac_cv_path_install+:} false; then :
2203   $as_echo_n "(cached) " >&6
2204 else
2205   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2206 for as_dir in $PATH
2207 do
2208   IFS=$as_save_IFS
2209   test -z "$as_dir" && as_dir=.
2210     # Account for people who put trailing slashes in PATH elements.
2211 case $as_dir/ in @%:@((
2212   ./ | .// | /[cC]/* | \
2213   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2214   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2215   /usr/ucb/* ) ;;
2216   *)
2217     # OSF1 and SCO ODT 3.0 have their own names for install.
2218     # Don't use installbsd from OSF since it installs stuff as root
2219     # by default.
2220     for ac_prog in ginstall scoinst install; do
2221       for ac_exec_ext in '' $ac_executable_extensions; do
2222         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2223           if test $ac_prog = install &&
2224             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2225             # AIX install.  It has an incompatible calling convention.
2226             :
2227           elif test $ac_prog = install &&
2228             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2229             # program-specific install script used by HP pwplus--don't use.
2230             :
2231           else
2232             rm -rf conftest.one conftest.two conftest.dir
2233             echo one > conftest.one
2234             echo two > conftest.two
2235             mkdir conftest.dir
2236             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2237               test -s conftest.one && test -s conftest.two &&
2238               test -s conftest.dir/conftest.one &&
2239               test -s conftest.dir/conftest.two
2240             then
2241               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2242               break 3
2243             fi
2244           fi
2245         fi
2246       done
2247     done
2248     ;;
2249 esac
2250
2251   done
2252 IFS=$as_save_IFS
2253
2254 rm -rf conftest.one conftest.two conftest.dir
2255
2256 fi
2257   if test "${ac_cv_path_install+set}" = set; then
2258     INSTALL=$ac_cv_path_install
2259   else
2260     # As a last resort, use the slow shell script.  Don't cache a
2261     # value for INSTALL within a source directory, because that will
2262     # break other packages using the cache if that directory is
2263     # removed, or if the value is a relative name.
2264     INSTALL=$ac_install_sh
2265   fi
2266 fi
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2268 $as_echo "$INSTALL" >&6; }
2269
2270 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2271 # It thinks the first close brace ends the variable substitution.
2272 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2273
2274 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2275
2276 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2277
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2279 $as_echo_n "checking whether build environment is sane... " >&6; }
2280 # Reject unsafe characters in $srcdir or the absolute working directory
2281 # name.  Accept space and tab only in the latter.
2282 am_lf='
2283 '
2284 case `pwd` in
2285   *[\\\"\#\$\&\'\`$am_lf]*)
2286     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2287 esac
2288 case $srcdir in
2289   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2290     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2291 esac
2292
2293 # Do 'set' in a subshell so we don't clobber the current shell's
2294 # arguments.  Must try -L first in case configure is actually a
2295 # symlink; some systems play weird games with the mod time of symlinks
2296 # (eg FreeBSD returns the mod time of the symlink's containing
2297 # directory).
2298 if (
2299    am_has_slept=no
2300    for am_try in 1 2; do
2301      echo "timestamp, slept: $am_has_slept" > conftest.file
2302      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2303      if test "$*" = "X"; then
2304         # -L didn't work.
2305         set X `ls -t "$srcdir/configure" conftest.file`
2306      fi
2307      if test "$*" != "X $srcdir/configure conftest.file" \
2308         && test "$*" != "X conftest.file $srcdir/configure"; then
2309
2310         # If neither matched, then we have a broken ls.  This can happen
2311         # if, for instance, CONFIG_SHELL is bash and it inherits a
2312         # broken ls alias from the environment.  This has actually
2313         # happened.  Such a system could not be considered "sane".
2314         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2315   alias in your environment" "$LINENO" 5
2316      fi
2317      if test "$2" = conftest.file || test $am_try -eq 2; then
2318        break
2319      fi
2320      # Just in case.
2321      sleep 1
2322      am_has_slept=yes
2323    done
2324    test "$2" = conftest.file
2325    )
2326 then
2327    # Ok.
2328    :
2329 else
2330    as_fn_error $? "newly created file is older than distributed files!
2331 Check your system clock" "$LINENO" 5
2332 fi
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2334 $as_echo "yes" >&6; }
2335 # If we didn't sleep, we still need to ensure time stamps of config.status and
2336 # generated files are strictly newer.
2337 am_sleep_pid=
2338 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2339   ( sleep 1 ) &
2340   am_sleep_pid=$!
2341 fi
2342
2343 rm -f conftest.file
2344
2345 test "$program_prefix" != NONE &&
2346   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2347 # Use a double $ so make ignores it.
2348 test "$program_suffix" != NONE &&
2349   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2350 # Double any \ or $.
2351 # By default was `s,x,x', remove it if useless.
2352 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2353 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2354
2355 # expand $ac_aux_dir to an absolute path
2356 am_aux_dir=`cd $ac_aux_dir && pwd`
2357
2358 if test x"${MISSING+set}" != xset; then
2359   case $am_aux_dir in
2360   *\ * | *\     *)
2361     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2362   *)
2363     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2364   esac
2365 fi
2366 # Use eval to expand $SHELL
2367 if eval "$MISSING --run true"; then
2368   am_missing_run="$MISSING --run "
2369 else
2370   am_missing_run=
2371   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2372 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2373 fi
2374
2375 if test x"${install_sh}" != xset; then
2376   case $am_aux_dir in
2377   *\ * | *\     *)
2378     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2379   *)
2380     install_sh="\${SHELL} $am_aux_dir/install-sh"
2381   esac
2382 fi
2383
2384 # Installed binaries are usually stripped using 'strip' when the user
2385 # run "make install-strip".  However 'strip' might not be the right
2386 # tool to use in cross-compilation environments, therefore Automake
2387 # will honor the 'STRIP' environment variable to overrule this program.
2388 if test "$cross_compiling" != no; then
2389   if test -n "$ac_tool_prefix"; then
2390   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2391 set dummy ${ac_tool_prefix}strip; ac_word=$2
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2393 $as_echo_n "checking for $ac_word... " >&6; }
2394 if ${ac_cv_prog_STRIP+:} false; then :
2395   $as_echo_n "(cached) " >&6
2396 else
2397   if test -n "$STRIP"; then
2398   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2399 else
2400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2401 for as_dir in $PATH
2402 do
2403   IFS=$as_save_IFS
2404   test -z "$as_dir" && as_dir=.
2405     for ac_exec_ext in '' $ac_executable_extensions; do
2406   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2407     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2408     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2409     break 2
2410   fi
2411 done
2412   done
2413 IFS=$as_save_IFS
2414
2415 fi
2416 fi
2417 STRIP=$ac_cv_prog_STRIP
2418 if test -n "$STRIP"; then
2419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2420 $as_echo "$STRIP" >&6; }
2421 else
2422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2423 $as_echo "no" >&6; }
2424 fi
2425
2426
2427 fi
2428 if test -z "$ac_cv_prog_STRIP"; then
2429   ac_ct_STRIP=$STRIP
2430   # Extract the first word of "strip", so it can be a program name with args.
2431 set dummy strip; ac_word=$2
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2433 $as_echo_n "checking for $ac_word... " >&6; }
2434 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2435   $as_echo_n "(cached) " >&6
2436 else
2437   if test -n "$ac_ct_STRIP"; then
2438   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2439 else
2440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2441 for as_dir in $PATH
2442 do
2443   IFS=$as_save_IFS
2444   test -z "$as_dir" && as_dir=.
2445     for ac_exec_ext in '' $ac_executable_extensions; do
2446   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2447     ac_cv_prog_ac_ct_STRIP="strip"
2448     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2449     break 2
2450   fi
2451 done
2452   done
2453 IFS=$as_save_IFS
2454
2455 fi
2456 fi
2457 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2458 if test -n "$ac_ct_STRIP"; then
2459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2460 $as_echo "$ac_ct_STRIP" >&6; }
2461 else
2462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2463 $as_echo "no" >&6; }
2464 fi
2465
2466   if test "x$ac_ct_STRIP" = x; then
2467     STRIP=":"
2468   else
2469     case $cross_compiling:$ac_tool_warned in
2470 yes:)
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2472 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2473 ac_tool_warned=yes ;;
2474 esac
2475     STRIP=$ac_ct_STRIP
2476   fi
2477 else
2478   STRIP="$ac_cv_prog_STRIP"
2479 fi
2480
2481 fi
2482 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2483
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2485 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2486 if test -z "$MKDIR_P"; then
2487   if ${ac_cv_path_mkdir+:} false; then :
2488   $as_echo_n "(cached) " >&6
2489 else
2490   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2492 do
2493   IFS=$as_save_IFS
2494   test -z "$as_dir" && as_dir=.
2495     for ac_prog in mkdir gmkdir; do
2496          for ac_exec_ext in '' $ac_executable_extensions; do
2497            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2498            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2499              'mkdir (GNU coreutils) '* | \
2500              'mkdir (coreutils) '* | \
2501              'mkdir (fileutils) '4.1*)
2502                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2503                break 3;;
2504            esac
2505          done
2506        done
2507   done
2508 IFS=$as_save_IFS
2509
2510 fi
2511
2512   test -d ./--version && rmdir ./--version
2513   if test "${ac_cv_path_mkdir+set}" = set; then
2514     MKDIR_P="$ac_cv_path_mkdir -p"
2515   else
2516     # As a last resort, use the slow shell script.  Don't cache a
2517     # value for MKDIR_P within a source directory, because that will
2518     # break other packages using the cache if that directory is
2519     # removed, or if the value is a relative name.
2520     MKDIR_P="$ac_install_sh -d"
2521   fi
2522 fi
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2524 $as_echo "$MKDIR_P" >&6; }
2525
2526 mkdir_p="$MKDIR_P"
2527 case $mkdir_p in
2528   [\\/$]* | ?:[\\/]*) ;;
2529   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2530 esac
2531
2532 for ac_prog in gawk mawk nawk awk
2533 do
2534   # Extract the first word of "$ac_prog", so it can be a program name with args.
2535 set dummy $ac_prog; ac_word=$2
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2537 $as_echo_n "checking for $ac_word... " >&6; }
2538 if ${ac_cv_prog_AWK+:} false; then :
2539   $as_echo_n "(cached) " >&6
2540 else
2541   if test -n "$AWK"; then
2542   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2543 else
2544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2545 for as_dir in $PATH
2546 do
2547   IFS=$as_save_IFS
2548   test -z "$as_dir" && as_dir=.
2549     for ac_exec_ext in '' $ac_executable_extensions; do
2550   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2551     ac_cv_prog_AWK="$ac_prog"
2552     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2553     break 2
2554   fi
2555 done
2556   done
2557 IFS=$as_save_IFS
2558
2559 fi
2560 fi
2561 AWK=$ac_cv_prog_AWK
2562 if test -n "$AWK"; then
2563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2564 $as_echo "$AWK" >&6; }
2565 else
2566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2567 $as_echo "no" >&6; }
2568 fi
2569
2570
2571   test -n "$AWK" && break
2572 done
2573
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2575 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2576 set x ${MAKE-make}
2577 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2578 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2579   $as_echo_n "(cached) " >&6
2580 else
2581   cat >conftest.make <<\_ACEOF
2582 SHELL = /bin/sh
2583 all:
2584         @echo '@@@%%%=$(MAKE)=@@@%%%'
2585 _ACEOF
2586 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2587 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2588   *@@@%%%=?*=@@@%%%*)
2589     eval ac_cv_prog_make_${ac_make}_set=yes;;
2590   *)
2591     eval ac_cv_prog_make_${ac_make}_set=no;;
2592 esac
2593 rm -f conftest.make
2594 fi
2595 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2597 $as_echo "yes" >&6; }
2598   SET_MAKE=
2599 else
2600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2601 $as_echo "no" >&6; }
2602   SET_MAKE="MAKE=${MAKE-make}"
2603 fi
2604
2605 rm -rf .tst 2>/dev/null
2606 mkdir .tst 2>/dev/null
2607 if test -d .tst; then
2608   am__leading_dot=.
2609 else
2610   am__leading_dot=_
2611 fi
2612 rmdir .tst 2>/dev/null
2613
2614 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2615   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2616   # is not polluted with repeated "-I."
2617   am__isrc=' -I$(srcdir)'
2618   # test to see if srcdir already configured
2619   if test -f $srcdir/config.status; then
2620     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2621   fi
2622 fi
2623
2624 # test whether we have cygpath
2625 if test -z "$CYGPATH_W"; then
2626   if (cygpath --version) >/dev/null 2>/dev/null; then
2627     CYGPATH_W='cygpath -w'
2628   else
2629     CYGPATH_W=echo
2630   fi
2631 fi
2632
2633
2634 # Define the identity of the package.
2635  PACKAGE='wimlib'
2636  VERSION='0.6.2'
2637
2638
2639 cat >>confdefs.h <<_ACEOF
2640 @%:@define PACKAGE "$PACKAGE"
2641 _ACEOF
2642
2643  
2644 cat >>confdefs.h <<_ACEOF
2645 @%:@define VERSION "$VERSION"
2646 _ACEOF
2647
2648 # Some tools Automake needs.
2649
2650 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2651
2652
2653 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2654
2655
2656 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2657
2658
2659 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2660
2661
2662 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2663
2664 # We need awk for the "check" target.  The system "awk" is bad on
2665 # some platforms.
2666 # Always define AMTAR for backward compatibility.  Yes, it's still used
2667 # in the wild :-(  We should find a proper way to deprecate it ...
2668 AMTAR='$${TAR-tar}'
2669
2670 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2671
2672
2673
2674
2675
2676
2677 DEPDIR="${am__leading_dot}deps"
2678
2679 ac_config_commands="$ac_config_commands depfiles"
2680
2681
2682 am_make=${MAKE-make}
2683 cat > confinc << 'END'
2684 am__doit:
2685         @echo this is the am__doit target
2686 .PHONY: am__doit
2687 END
2688 # If we don't find an include directive, just comment out the code.
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2690 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2691 am__include="#"
2692 am__quote=
2693 _am_result=none
2694 # First try GNU make style include.
2695 echo "include confinc" > confmf
2696 # Ignore all kinds of additional output from 'make'.
2697 case `$am_make -s -f confmf 2> /dev/null` in #(
2698 *the\ am__doit\ target*)
2699   am__include=include
2700   am__quote=
2701   _am_result=GNU
2702   ;;
2703 esac
2704 # Now try BSD make style include.
2705 if test "$am__include" = "#"; then
2706    echo '.include "confinc"' > confmf
2707    case `$am_make -s -f confmf 2> /dev/null` in #(
2708    *the\ am__doit\ target*)
2709      am__include=.include
2710      am__quote="\""
2711      _am_result=BSD
2712      ;;
2713    esac
2714 fi
2715
2716
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2718 $as_echo "$_am_result" >&6; }
2719 rm -f confinc confmf
2720
2721 @%:@ Check whether --enable-dependency-tracking was given.
2722 if test "${enable_dependency_tracking+set}" = set; then :
2723   enableval=$enable_dependency_tracking; 
2724 fi
2725
2726 if test "x$enable_dependency_tracking" != xno; then
2727   am_depcomp="$ac_aux_dir/depcomp"
2728   AMDEPBACKSLASH='\'
2729   am__nodep='_no'
2730 fi
2731  if test "x$enable_dependency_tracking" != xno; then
2732   AMDEP_TRUE=
2733   AMDEP_FALSE='#'
2734 else
2735   AMDEP_TRUE='#'
2736   AMDEP_FALSE=
2737 fi
2738
2739
2740 ac_ext=c
2741 ac_cpp='$CPP $CPPFLAGS'
2742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2745 if test -n "$ac_tool_prefix"; then
2746   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2747 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2749 $as_echo_n "checking for $ac_word... " >&6; }
2750 if ${ac_cv_prog_CC+:} false; then :
2751   $as_echo_n "(cached) " >&6
2752 else
2753   if test -n "$CC"; then
2754   ac_cv_prog_CC="$CC" # Let the user override the test.
2755 else
2756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2757 for as_dir in $PATH
2758 do
2759   IFS=$as_save_IFS
2760   test -z "$as_dir" && as_dir=.
2761     for ac_exec_ext in '' $ac_executable_extensions; do
2762   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2763     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2764     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2765     break 2
2766   fi
2767 done
2768   done
2769 IFS=$as_save_IFS
2770
2771 fi
2772 fi
2773 CC=$ac_cv_prog_CC
2774 if test -n "$CC"; then
2775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2776 $as_echo "$CC" >&6; }
2777 else
2778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2779 $as_echo "no" >&6; }
2780 fi
2781
2782
2783 fi
2784 if test -z "$ac_cv_prog_CC"; then
2785   ac_ct_CC=$CC
2786   # Extract the first word of "gcc", so it can be a program name with args.
2787 set dummy gcc; ac_word=$2
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2789 $as_echo_n "checking for $ac_word... " >&6; }
2790 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2791   $as_echo_n "(cached) " >&6
2792 else
2793   if test -n "$ac_ct_CC"; then
2794   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2795 else
2796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797 for as_dir in $PATH
2798 do
2799   IFS=$as_save_IFS
2800   test -z "$as_dir" && as_dir=.
2801     for ac_exec_ext in '' $ac_executable_extensions; do
2802   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2803     ac_cv_prog_ac_ct_CC="gcc"
2804     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2805     break 2
2806   fi
2807 done
2808   done
2809 IFS=$as_save_IFS
2810
2811 fi
2812 fi
2813 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2814 if test -n "$ac_ct_CC"; then
2815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2816 $as_echo "$ac_ct_CC" >&6; }
2817 else
2818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2819 $as_echo "no" >&6; }
2820 fi
2821
2822   if test "x$ac_ct_CC" = x; then
2823     CC=""
2824   else
2825     case $cross_compiling:$ac_tool_warned in
2826 yes:)
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2828 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2829 ac_tool_warned=yes ;;
2830 esac
2831     CC=$ac_ct_CC
2832   fi
2833 else
2834   CC="$ac_cv_prog_CC"
2835 fi
2836
2837 if test -z "$CC"; then
2838           if test -n "$ac_tool_prefix"; then
2839     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2840 set dummy ${ac_tool_prefix}cc; ac_word=$2
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2842 $as_echo_n "checking for $ac_word... " >&6; }
2843 if ${ac_cv_prog_CC+:} false; then :
2844   $as_echo_n "(cached) " >&6
2845 else
2846   if test -n "$CC"; then
2847   ac_cv_prog_CC="$CC" # Let the user override the test.
2848 else
2849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850 for as_dir in $PATH
2851 do
2852   IFS=$as_save_IFS
2853   test -z "$as_dir" && as_dir=.
2854     for ac_exec_ext in '' $ac_executable_extensions; do
2855   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2856     ac_cv_prog_CC="${ac_tool_prefix}cc"
2857     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2858     break 2
2859   fi
2860 done
2861   done
2862 IFS=$as_save_IFS
2863
2864 fi
2865 fi
2866 CC=$ac_cv_prog_CC
2867 if test -n "$CC"; then
2868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2869 $as_echo "$CC" >&6; }
2870 else
2871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2872 $as_echo "no" >&6; }
2873 fi
2874
2875
2876   fi
2877 fi
2878 if test -z "$CC"; then
2879   # Extract the first word of "cc", so it can be a program name with args.
2880 set dummy cc; ac_word=$2
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2882 $as_echo_n "checking for $ac_word... " >&6; }
2883 if ${ac_cv_prog_CC+:} false; then :
2884   $as_echo_n "(cached) " >&6
2885 else
2886   if test -n "$CC"; then
2887   ac_cv_prog_CC="$CC" # Let the user override the test.
2888 else
2889   ac_prog_rejected=no
2890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891 for as_dir in $PATH
2892 do
2893   IFS=$as_save_IFS
2894   test -z "$as_dir" && as_dir=.
2895     for ac_exec_ext in '' $ac_executable_extensions; do
2896   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2897     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2898        ac_prog_rejected=yes
2899        continue
2900      fi
2901     ac_cv_prog_CC="cc"
2902     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2903     break 2
2904   fi
2905 done
2906   done
2907 IFS=$as_save_IFS
2908
2909 if test $ac_prog_rejected = yes; then
2910   # We found a bogon in the path, so make sure we never use it.
2911   set dummy $ac_cv_prog_CC
2912   shift
2913   if test $@%:@ != 0; then
2914     # We chose a different compiler from the bogus one.
2915     # However, it has the same basename, so the bogon will be chosen
2916     # first if we set CC to just the basename; use the full file name.
2917     shift
2918     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2919   fi
2920 fi
2921 fi
2922 fi
2923 CC=$ac_cv_prog_CC
2924 if test -n "$CC"; then
2925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2926 $as_echo "$CC" >&6; }
2927 else
2928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2929 $as_echo "no" >&6; }
2930 fi
2931
2932
2933 fi
2934 if test -z "$CC"; then
2935   if test -n "$ac_tool_prefix"; then
2936   for ac_prog in cl.exe
2937   do
2938     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2939 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2941 $as_echo_n "checking for $ac_word... " >&6; }
2942 if ${ac_cv_prog_CC+:} false; then :
2943   $as_echo_n "(cached) " >&6
2944 else
2945   if test -n "$CC"; then
2946   ac_cv_prog_CC="$CC" # Let the user override the test.
2947 else
2948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949 for as_dir in $PATH
2950 do
2951   IFS=$as_save_IFS
2952   test -z "$as_dir" && as_dir=.
2953     for ac_exec_ext in '' $ac_executable_extensions; do
2954   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2955     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2956     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2957     break 2
2958   fi
2959 done
2960   done
2961 IFS=$as_save_IFS
2962
2963 fi
2964 fi
2965 CC=$ac_cv_prog_CC
2966 if test -n "$CC"; then
2967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2968 $as_echo "$CC" >&6; }
2969 else
2970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2971 $as_echo "no" >&6; }
2972 fi
2973
2974
2975     test -n "$CC" && break
2976   done
2977 fi
2978 if test -z "$CC"; then
2979   ac_ct_CC=$CC
2980   for ac_prog in cl.exe
2981 do
2982   # Extract the first word of "$ac_prog", so it can be a program name with args.
2983 set dummy $ac_prog; ac_word=$2
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2985 $as_echo_n "checking for $ac_word... " >&6; }
2986 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2987   $as_echo_n "(cached) " >&6
2988 else
2989   if test -n "$ac_ct_CC"; then
2990   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2991 else
2992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993 for as_dir in $PATH
2994 do
2995   IFS=$as_save_IFS
2996   test -z "$as_dir" && as_dir=.
2997     for ac_exec_ext in '' $ac_executable_extensions; do
2998   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2999     ac_cv_prog_ac_ct_CC="$ac_prog"
3000     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3001     break 2
3002   fi
3003 done
3004   done
3005 IFS=$as_save_IFS
3006
3007 fi
3008 fi
3009 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3010 if test -n "$ac_ct_CC"; then
3011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3012 $as_echo "$ac_ct_CC" >&6; }
3013 else
3014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3015 $as_echo "no" >&6; }
3016 fi
3017
3018
3019   test -n "$ac_ct_CC" && break
3020 done
3021
3022   if test "x$ac_ct_CC" = x; then
3023     CC=""
3024   else
3025     case $cross_compiling:$ac_tool_warned in
3026 yes:)
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3028 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3029 ac_tool_warned=yes ;;
3030 esac
3031     CC=$ac_ct_CC
3032   fi
3033 fi
3034
3035 fi
3036
3037
3038 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3039 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3040 as_fn_error $? "no acceptable C compiler found in \$PATH
3041 See \`config.log' for more details" "$LINENO" 5; }
3042
3043 # Provide some information about the compiler.
3044 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3045 set X $ac_compile
3046 ac_compiler=$2
3047 for ac_option in --version -v -V -qversion; do
3048   { { ac_try="$ac_compiler $ac_option >&5"
3049 case "(($ac_try" in
3050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3051   *) ac_try_echo=$ac_try;;
3052 esac
3053 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3054 $as_echo "$ac_try_echo"; } >&5
3055   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3056   ac_status=$?
3057   if test -s conftest.err; then
3058     sed '10a\
3059 ... rest of stderr output deleted ...
3060          10q' conftest.err >conftest.er1
3061     cat conftest.er1 >&5
3062   fi
3063   rm -f conftest.er1 conftest.err
3064   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3065   test $ac_status = 0; }
3066 done
3067
3068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3069 /* end confdefs.h.  */
3070
3071 int
3072 main ()
3073 {
3074
3075   ;
3076   return 0;
3077 }
3078 _ACEOF
3079 ac_clean_files_save=$ac_clean_files
3080 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3081 # Try to create an executable without -o first, disregard a.out.
3082 # It will help us diagnose broken compilers, and finding out an intuition
3083 # of exeext.
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3085 $as_echo_n "checking whether the C compiler works... " >&6; }
3086 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3087
3088 # The possible output files:
3089 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3090
3091 ac_rmfiles=
3092 for ac_file in $ac_files
3093 do
3094   case $ac_file in
3095     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3096     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3097   esac
3098 done
3099 rm -f $ac_rmfiles
3100
3101 if { { ac_try="$ac_link_default"
3102 case "(($ac_try" in
3103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104   *) ac_try_echo=$ac_try;;
3105 esac
3106 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3107 $as_echo "$ac_try_echo"; } >&5
3108   (eval "$ac_link_default") 2>&5
3109   ac_status=$?
3110   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3111   test $ac_status = 0; }; then :
3112   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3113 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3114 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3115 # so that the user can short-circuit this test for compilers unknown to
3116 # Autoconf.
3117 for ac_file in $ac_files ''
3118 do
3119   test -f "$ac_file" || continue
3120   case $ac_file in
3121     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3122         ;;
3123     [ab].out )
3124         # We found the default executable, but exeext='' is most
3125         # certainly right.
3126         break;;
3127     *.* )
3128         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3129         then :; else
3130            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3131         fi
3132         # We set ac_cv_exeext here because the later test for it is not
3133         # safe: cross compilers may not add the suffix if given an `-o'
3134         # argument, so we may need to know it at that point already.
3135         # Even if this section looks crufty: it has the advantage of
3136         # actually working.
3137         break;;
3138     * )
3139         break;;
3140   esac
3141 done
3142 test "$ac_cv_exeext" = no && ac_cv_exeext=
3143
3144 else
3145   ac_file=''
3146 fi
3147 if test -z "$ac_file"; then :
3148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3149 $as_echo "no" >&6; }
3150 $as_echo "$as_me: failed program was:" >&5
3151 sed 's/^/| /' conftest.$ac_ext >&5
3152
3153 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3154 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3155 as_fn_error 77 "C compiler cannot create executables
3156 See \`config.log' for more details" "$LINENO" 5; }
3157 else
3158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3159 $as_echo "yes" >&6; }
3160 fi
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3162 $as_echo_n "checking for C compiler default output file name... " >&6; }
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3164 $as_echo "$ac_file" >&6; }
3165 ac_exeext=$ac_cv_exeext
3166
3167 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3168 ac_clean_files=$ac_clean_files_save
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3170 $as_echo_n "checking for suffix of executables... " >&6; }
3171 if { { ac_try="$ac_link"
3172 case "(($ac_try" in
3173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174   *) ac_try_echo=$ac_try;;
3175 esac
3176 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3177 $as_echo "$ac_try_echo"; } >&5
3178   (eval "$ac_link") 2>&5
3179   ac_status=$?
3180   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3181   test $ac_status = 0; }; then :
3182   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3183 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3184 # work properly (i.e., refer to `conftest.exe'), while it won't with
3185 # `rm'.
3186 for ac_file in conftest.exe conftest conftest.*; do
3187   test -f "$ac_file" || continue
3188   case $ac_file in
3189     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3190     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3191           break;;
3192     * ) break;;
3193   esac
3194 done
3195 else
3196   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3197 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3198 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3199 See \`config.log' for more details" "$LINENO" 5; }
3200 fi
3201 rm -f conftest conftest$ac_cv_exeext
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3203 $as_echo "$ac_cv_exeext" >&6; }
3204
3205 rm -f conftest.$ac_ext
3206 EXEEXT=$ac_cv_exeext
3207 ac_exeext=$EXEEXT
3208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3209 /* end confdefs.h.  */
3210 @%:@include <stdio.h>
3211 int
3212 main ()
3213 {
3214 FILE *f = fopen ("conftest.out", "w");
3215  return ferror (f) || fclose (f) != 0;
3216
3217   ;
3218   return 0;
3219 }
3220 _ACEOF
3221 ac_clean_files="$ac_clean_files conftest.out"
3222 # Check that the compiler produces executables we can run.  If not, either
3223 # the compiler is broken, or we cross compile.
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3225 $as_echo_n "checking whether we are cross compiling... " >&6; }
3226 if test "$cross_compiling" != yes; then
3227   { { ac_try="$ac_link"
3228 case "(($ac_try" in
3229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230   *) ac_try_echo=$ac_try;;
3231 esac
3232 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3233 $as_echo "$ac_try_echo"; } >&5
3234   (eval "$ac_link") 2>&5
3235   ac_status=$?
3236   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3237   test $ac_status = 0; }
3238   if { ac_try='./conftest$ac_cv_exeext'
3239   { { case "(($ac_try" in
3240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241   *) ac_try_echo=$ac_try;;
3242 esac
3243 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3244 $as_echo "$ac_try_echo"; } >&5
3245   (eval "$ac_try") 2>&5
3246   ac_status=$?
3247   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3248   test $ac_status = 0; }; }; then
3249     cross_compiling=no
3250   else
3251     if test "$cross_compiling" = maybe; then
3252         cross_compiling=yes
3253     else
3254         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3255 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3256 as_fn_error $? "cannot run C compiled programs.
3257 If you meant to cross compile, use \`--host'.
3258 See \`config.log' for more details" "$LINENO" 5; }
3259     fi
3260   fi
3261 fi
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3263 $as_echo "$cross_compiling" >&6; }
3264
3265 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3266 ac_clean_files=$ac_clean_files_save
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3268 $as_echo_n "checking for suffix of object files... " >&6; }
3269 if ${ac_cv_objext+:} false; then :
3270   $as_echo_n "(cached) " >&6
3271 else
3272   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3273 /* end confdefs.h.  */
3274
3275 int
3276 main ()
3277 {
3278
3279   ;
3280   return 0;
3281 }
3282 _ACEOF
3283 rm -f conftest.o conftest.obj
3284 if { { ac_try="$ac_compile"
3285 case "(($ac_try" in
3286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287   *) ac_try_echo=$ac_try;;
3288 esac
3289 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3290 $as_echo "$ac_try_echo"; } >&5
3291   (eval "$ac_compile") 2>&5
3292   ac_status=$?
3293   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3294   test $ac_status = 0; }; then :
3295   for ac_file in conftest.o conftest.obj conftest.*; do
3296   test -f "$ac_file" || continue;
3297   case $ac_file in
3298     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3299     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3300        break;;
3301   esac
3302 done
3303 else
3304   $as_echo "$as_me: failed program was:" >&5
3305 sed 's/^/| /' conftest.$ac_ext >&5
3306
3307 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3308 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3309 as_fn_error $? "cannot compute suffix of object files: cannot compile
3310 See \`config.log' for more details" "$LINENO" 5; }
3311 fi
3312 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3313 fi
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3315 $as_echo "$ac_cv_objext" >&6; }
3316 OBJEXT=$ac_cv_objext
3317 ac_objext=$OBJEXT
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3319 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3320 if ${ac_cv_c_compiler_gnu+:} false; then :
3321   $as_echo_n "(cached) " >&6
3322 else
3323   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3324 /* end confdefs.h.  */
3325
3326 int
3327 main ()
3328 {
3329 #ifndef __GNUC__
3330        choke me
3331 #endif
3332
3333   ;
3334   return 0;
3335 }
3336 _ACEOF
3337 if ac_fn_c_try_compile "$LINENO"; then :
3338   ac_compiler_gnu=yes
3339 else
3340   ac_compiler_gnu=no
3341 fi
3342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3343 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3344
3345 fi
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3347 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3348 if test $ac_compiler_gnu = yes; then
3349   GCC=yes
3350 else
3351   GCC=
3352 fi
3353 ac_test_CFLAGS=${CFLAGS+set}
3354 ac_save_CFLAGS=$CFLAGS
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3356 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3357 if ${ac_cv_prog_cc_g+:} false; then :
3358   $as_echo_n "(cached) " >&6
3359 else
3360   ac_save_c_werror_flag=$ac_c_werror_flag
3361    ac_c_werror_flag=yes
3362    ac_cv_prog_cc_g=no
3363    CFLAGS="-g"
3364    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3365 /* end confdefs.h.  */
3366
3367 int
3368 main ()
3369 {
3370
3371   ;
3372   return 0;
3373 }
3374 _ACEOF
3375 if ac_fn_c_try_compile "$LINENO"; then :
3376   ac_cv_prog_cc_g=yes
3377 else
3378   CFLAGS=""
3379       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3380 /* end confdefs.h.  */
3381
3382 int
3383 main ()
3384 {
3385
3386   ;
3387   return 0;
3388 }
3389 _ACEOF
3390 if ac_fn_c_try_compile "$LINENO"; then :
3391   
3392 else
3393   ac_c_werror_flag=$ac_save_c_werror_flag
3394          CFLAGS="-g"
3395          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3396 /* end confdefs.h.  */
3397
3398 int
3399 main ()
3400 {
3401
3402   ;
3403   return 0;
3404 }
3405 _ACEOF
3406 if ac_fn_c_try_compile "$LINENO"; then :
3407   ac_cv_prog_cc_g=yes
3408 fi
3409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3410 fi
3411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3412 fi
3413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3414    ac_c_werror_flag=$ac_save_c_werror_flag
3415 fi
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3417 $as_echo "$ac_cv_prog_cc_g" >&6; }
3418 if test "$ac_test_CFLAGS" = set; then
3419   CFLAGS=$ac_save_CFLAGS
3420 elif test $ac_cv_prog_cc_g = yes; then
3421   if test "$GCC" = yes; then
3422     CFLAGS="-g -O2"
3423   else
3424     CFLAGS="-g"
3425   fi
3426 else
3427   if test "$GCC" = yes; then
3428     CFLAGS="-O2"
3429   else
3430     CFLAGS=
3431   fi
3432 fi
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3434 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3435 if ${ac_cv_prog_cc_c89+:} false; then :
3436   $as_echo_n "(cached) " >&6
3437 else
3438   ac_cv_prog_cc_c89=no
3439 ac_save_CC=$CC
3440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3441 /* end confdefs.h.  */
3442 #include <stdarg.h>
3443 #include <stdio.h>
3444 struct stat;
3445 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3446 struct buf { int x; };
3447 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3448 static char *e (p, i)
3449      char **p;
3450      int i;
3451 {
3452   return p[i];
3453 }
3454 static char *f (char * (*g) (char **, int), char **p, ...)
3455 {
3456   char *s;
3457   va_list v;
3458   va_start (v,p);
3459   s = g (p, va_arg (v,int));
3460   va_end (v);
3461   return s;
3462 }
3463
3464 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3465    function prototypes and stuff, but not '\xHH' hex character constants.
3466    These don't provoke an error unfortunately, instead are silently treated
3467    as 'x'.  The following induces an error, until -std is added to get
3468    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3469    array size at least.  It's necessary to write '\x00'==0 to get something
3470    that's true only with -std.  */
3471 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3472
3473 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3474    inside strings and character constants.  */
3475 #define FOO(x) 'x'
3476 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3477
3478 int test (int i, double x);
3479 struct s1 {int (*f) (int a);};
3480 struct s2 {int (*f) (double a);};
3481 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3482 int argc;
3483 char **argv;
3484 int
3485 main ()
3486 {
3487 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3488   ;
3489   return 0;
3490 }
3491 _ACEOF
3492 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3493         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3494 do
3495   CC="$ac_save_CC $ac_arg"
3496   if ac_fn_c_try_compile "$LINENO"; then :
3497   ac_cv_prog_cc_c89=$ac_arg
3498 fi
3499 rm -f core conftest.err conftest.$ac_objext
3500   test "x$ac_cv_prog_cc_c89" != "xno" && break
3501 done
3502 rm -f conftest.$ac_ext
3503 CC=$ac_save_CC
3504
3505 fi
3506 # AC_CACHE_VAL
3507 case "x$ac_cv_prog_cc_c89" in
3508   x)
3509     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3510 $as_echo "none needed" >&6; } ;;
3511   xno)
3512     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3513 $as_echo "unsupported" >&6; } ;;
3514   *)
3515     CC="$CC $ac_cv_prog_cc_c89"
3516     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3517 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3518 esac
3519 if test "x$ac_cv_prog_cc_c89" != xno; then :
3520   
3521 fi
3522
3523 ac_ext=c
3524 ac_cpp='$CPP $CPPFLAGS'
3525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3528
3529 depcc="$CC"   am_compiler_list=
3530
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3532 $as_echo_n "checking dependency style of $depcc... " >&6; }
3533 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3534   $as_echo_n "(cached) " >&6
3535 else
3536   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3537   # We make a subdir and do the tests there.  Otherwise we can end up
3538   # making bogus files that we don't know about and never remove.  For
3539   # instance it was reported that on HP-UX the gcc test will end up
3540   # making a dummy file named 'D' -- because '-MD' means "put the output
3541   # in D".
3542   rm -rf conftest.dir
3543   mkdir conftest.dir
3544   # Copy depcomp to subdir because otherwise we won't find it if we're
3545   # using a relative directory.
3546   cp "$am_depcomp" conftest.dir
3547   cd conftest.dir
3548   # We will build objects and dependencies in a subdirectory because
3549   # it helps to detect inapplicable dependency modes.  For instance
3550   # both Tru64's cc and ICC support -MD to output dependencies as a
3551   # side effect of compilation, but ICC will put the dependencies in
3552   # the current directory while Tru64 will put them in the object
3553   # directory.
3554   mkdir sub
3555
3556   am_cv_CC_dependencies_compiler_type=none
3557   if test "$am_compiler_list" = ""; then
3558      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3559   fi
3560   am__universal=false
3561   case " $depcc " in #(
3562      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3563      esac
3564
3565   for depmode in $am_compiler_list; do
3566     # Setup a source with many dependencies, because some compilers
3567     # like to wrap large dependency lists on column 80 (with \), and
3568     # we should not choose a depcomp mode which is confused by this.
3569     #
3570     # We need to recreate these files for each test, as the compiler may
3571     # overwrite some of them when testing with obscure command lines.
3572     # This happens at least with the AIX C compiler.
3573     : > sub/conftest.c
3574     for i in 1 2 3 4 5 6; do
3575       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3576       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3577       # Solaris 10 /bin/sh.
3578       echo '/* dummy */' > sub/conftst$i.h
3579     done
3580     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3581
3582     # We check with '-c' and '-o' for the sake of the "dashmstdout"
3583     # mode.  It turns out that the SunPro C++ compiler does not properly
3584     # handle '-M -o', and we need to detect this.  Also, some Intel
3585     # versions had trouble with output in subdirs.
3586     am__obj=sub/conftest.${OBJEXT-o}
3587     am__minus_obj="-o $am__obj"
3588     case $depmode in
3589     gcc)
3590       # This depmode causes a compiler race in universal mode.
3591       test "$am__universal" = false || continue
3592       ;;
3593     nosideeffect)
3594       # After this tag, mechanisms are not by side-effect, so they'll
3595       # only be used when explicitly requested.
3596       if test "x$enable_dependency_tracking" = xyes; then
3597         continue
3598       else
3599         break
3600       fi
3601       ;;
3602     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3603       # This compiler won't grok '-c -o', but also, the minuso test has
3604       # not run yet.  These depmodes are late enough in the game, and
3605       # so weak that their functioning should not be impacted.
3606       am__obj=conftest.${OBJEXT-o}
3607       am__minus_obj=
3608       ;;
3609     none) break ;;
3610     esac
3611     if depmode=$depmode \
3612        source=sub/conftest.c object=$am__obj \
3613        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3614        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3615          >/dev/null 2>conftest.err &&
3616        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3617        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3618        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3619        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3620       # icc doesn't choke on unknown options, it will just issue warnings
3621       # or remarks (even with -Werror).  So we grep stderr for any message
3622       # that says an option was ignored or not supported.
3623       # When given -MP, icc 7.0 and 7.1 complain thusly:
3624       #   icc: Command line warning: ignoring option '-M'; no argument required
3625       # The diagnosis changed in icc 8.0:
3626       #   icc: Command line remark: option '-MP' not supported
3627       if (grep 'ignoring option' conftest.err ||
3628           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3629         am_cv_CC_dependencies_compiler_type=$depmode
3630         break
3631       fi
3632     fi
3633   done
3634
3635   cd ..
3636   rm -rf conftest.dir
3637 else
3638   am_cv_CC_dependencies_compiler_type=none
3639 fi
3640
3641 fi
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3643 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3644 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3645
3646  if 
3647   test "x$enable_dependency_tracking" != xno \
3648   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3649   am__fastdepCC_TRUE=
3650   am__fastdepCC_FALSE='#'
3651 else
3652   am__fastdepCC_TRUE='#'
3653   am__fastdepCC_FALSE=
3654 fi
3655
3656
3657
3658 ac_ext=c
3659 ac_cpp='$CPP $CPPFLAGS'
3660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3664 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3665 # On Suns, sometimes $CPP names a directory.
3666 if test -n "$CPP" && test -d "$CPP"; then
3667   CPP=
3668 fi
3669 if test -z "$CPP"; then
3670   if ${ac_cv_prog_CPP+:} false; then :
3671   $as_echo_n "(cached) " >&6
3672 else
3673       # Double quotes because CPP needs to be expanded
3674     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3675     do
3676       ac_preproc_ok=false
3677 for ac_c_preproc_warn_flag in '' yes
3678 do
3679   # Use a header file that comes with gcc, so configuring glibc
3680   # with a fresh cross-compiler works.
3681   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3682   # <limits.h> exists even on freestanding compilers.
3683   # On the NeXT, cc -E runs the code through the compiler's parser,
3684   # not just through cpp. "Syntax error" is here to catch this case.
3685   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3686 /* end confdefs.h.  */
3687 @%:@ifdef __STDC__
3688 @%:@ include <limits.h>
3689 @%:@else
3690 @%:@ include <assert.h>
3691 @%:@endif
3692                      Syntax error
3693 _ACEOF
3694 if ac_fn_c_try_cpp "$LINENO"; then :
3695   
3696 else
3697   # Broken: fails on valid input.
3698 continue
3699 fi
3700 rm -f conftest.err conftest.i conftest.$ac_ext
3701
3702   # OK, works on sane cases.  Now check whether nonexistent headers
3703   # can be detected and how.
3704   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3705 /* end confdefs.h.  */
3706 @%:@include <ac_nonexistent.h>
3707 _ACEOF
3708 if ac_fn_c_try_cpp "$LINENO"; then :
3709   # Broken: success on invalid input.
3710 continue
3711 else
3712   # Passes both tests.
3713 ac_preproc_ok=:
3714 break
3715 fi
3716 rm -f conftest.err conftest.i conftest.$ac_ext
3717
3718 done
3719 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3720 rm -f conftest.i conftest.err conftest.$ac_ext
3721 if $ac_preproc_ok; then :
3722   break
3723 fi
3724
3725     done
3726     ac_cv_prog_CPP=$CPP
3727   
3728 fi
3729   CPP=$ac_cv_prog_CPP
3730 else
3731   ac_cv_prog_CPP=$CPP
3732 fi
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3734 $as_echo "$CPP" >&6; }
3735 ac_preproc_ok=false
3736 for ac_c_preproc_warn_flag in '' yes
3737 do
3738   # Use a header file that comes with gcc, so configuring glibc
3739   # with a fresh cross-compiler works.
3740   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3741   # <limits.h> exists even on freestanding compilers.
3742   # On the NeXT, cc -E runs the code through the compiler's parser,
3743   # not just through cpp. "Syntax error" is here to catch this case.
3744   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3745 /* end confdefs.h.  */
3746 @%:@ifdef __STDC__
3747 @%:@ include <limits.h>
3748 @%:@else
3749 @%:@ include <assert.h>
3750 @%:@endif
3751                      Syntax error
3752 _ACEOF
3753 if ac_fn_c_try_cpp "$LINENO"; then :
3754   
3755 else
3756   # Broken: fails on valid input.
3757 continue
3758 fi
3759 rm -f conftest.err conftest.i conftest.$ac_ext
3760
3761   # OK, works on sane cases.  Now check whether nonexistent headers
3762   # can be detected and how.
3763   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3764 /* end confdefs.h.  */
3765 @%:@include <ac_nonexistent.h>
3766 _ACEOF
3767 if ac_fn_c_try_cpp "$LINENO"; then :
3768   # Broken: success on invalid input.
3769 continue
3770 else
3771   # Passes both tests.
3772 ac_preproc_ok=:
3773 break
3774 fi
3775 rm -f conftest.err conftest.i conftest.$ac_ext
3776
3777 done
3778 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3779 rm -f conftest.i conftest.err conftest.$ac_ext
3780 if $ac_preproc_ok; then :
3781   
3782 else
3783   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3784 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3785 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3786 See \`config.log' for more details" "$LINENO" 5; }
3787 fi
3788
3789 ac_ext=c
3790 ac_cpp='$CPP $CPPFLAGS'
3791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3794
3795
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3797 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3798 if ${ac_cv_path_GREP+:} false; then :
3799   $as_echo_n "(cached) " >&6
3800 else
3801   if test -z "$GREP"; then
3802   ac_path_GREP_found=false
3803   # Loop through the user's path and test for each of PROGNAME-LIST
3804   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3805 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3806 do
3807   IFS=$as_save_IFS
3808   test -z "$as_dir" && as_dir=.
3809     for ac_prog in grep ggrep; do
3810     for ac_exec_ext in '' $ac_executable_extensions; do
3811       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3812       as_fn_executable_p "$ac_path_GREP" || continue
3813 # Check for GNU ac_path_GREP and select it if it is found.
3814   # Check for GNU $ac_path_GREP
3815 case `"$ac_path_GREP" --version 2>&1` in
3816 *GNU*)
3817   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3818 *)
3819   ac_count=0
3820   $as_echo_n 0123456789 >"conftest.in"
3821   while :
3822   do
3823     cat "conftest.in" "conftest.in" >"conftest.tmp"
3824     mv "conftest.tmp" "conftest.in"
3825     cp "conftest.in" "conftest.nl"
3826     $as_echo 'GREP' >> "conftest.nl"
3827     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3828     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3829     as_fn_arith $ac_count + 1 && ac_count=$as_val
3830     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3831       # Best one so far, save it but keep looking for a better one
3832       ac_cv_path_GREP="$ac_path_GREP"
3833       ac_path_GREP_max=$ac_count
3834     fi
3835     # 10*(2^10) chars as input seems more than enough
3836     test $ac_count -gt 10 && break
3837   done
3838   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3839 esac
3840
3841       $ac_path_GREP_found && break 3
3842     done
3843   done
3844   done
3845 IFS=$as_save_IFS
3846   if test -z "$ac_cv_path_GREP"; then
3847     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3848   fi
3849 else
3850   ac_cv_path_GREP=$GREP
3851 fi
3852
3853 fi
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3855 $as_echo "$ac_cv_path_GREP" >&6; }
3856  GREP="$ac_cv_path_GREP"
3857  
3858
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3860 $as_echo_n "checking for egrep... " >&6; }
3861 if ${ac_cv_path_EGREP+:} false; then :
3862   $as_echo_n "(cached) " >&6
3863 else
3864   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3865    then ac_cv_path_EGREP="$GREP -E"
3866    else
3867      if test -z "$EGREP"; then
3868   ac_path_EGREP_found=false
3869   # Loop through the user's path and test for each of PROGNAME-LIST
3870   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3871 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3872 do
3873   IFS=$as_save_IFS
3874   test -z "$as_dir" && as_dir=.
3875     for ac_prog in egrep; do
3876     for ac_exec_ext in '' $ac_executable_extensions; do
3877       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3878       as_fn_executable_p "$ac_path_EGREP" || continue
3879 # Check for GNU ac_path_EGREP and select it if it is found.
3880   # Check for GNU $ac_path_EGREP
3881 case `"$ac_path_EGREP" --version 2>&1` in
3882 *GNU*)
3883   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3884 *)
3885   ac_count=0
3886   $as_echo_n 0123456789 >"conftest.in"
3887   while :
3888   do
3889     cat "conftest.in" "conftest.in" >"conftest.tmp"
3890     mv "conftest.tmp" "conftest.in"
3891     cp "conftest.in" "conftest.nl"
3892     $as_echo 'EGREP' >> "conftest.nl"
3893     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3894     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3895     as_fn_arith $ac_count + 1 && ac_count=$as_val
3896     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3897       # Best one so far, save it but keep looking for a better one
3898       ac_cv_path_EGREP="$ac_path_EGREP"
3899       ac_path_EGREP_max=$ac_count
3900     fi
3901     # 10*(2^10) chars as input seems more than enough
3902     test $ac_count -gt 10 && break
3903   done
3904   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3905 esac
3906
3907       $ac_path_EGREP_found && break 3
3908     done
3909   done
3910   done
3911 IFS=$as_save_IFS
3912   if test -z "$ac_cv_path_EGREP"; then
3913     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3914   fi
3915 else
3916   ac_cv_path_EGREP=$EGREP
3917 fi
3918
3919    fi
3920 fi
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3922 $as_echo "$ac_cv_path_EGREP" >&6; }
3923  EGREP="$ac_cv_path_EGREP"
3924  
3925
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3927 $as_echo_n "checking for ANSI C header files... " >&6; }
3928 if ${ac_cv_header_stdc+:} false; then :
3929   $as_echo_n "(cached) " >&6
3930 else
3931   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3932 /* end confdefs.h.  */
3933 #include <stdlib.h>
3934 #include <stdarg.h>
3935 #include <string.h>
3936 #include <float.h>
3937
3938 int
3939 main ()
3940 {
3941
3942   ;
3943   return 0;
3944 }
3945 _ACEOF
3946 if ac_fn_c_try_compile "$LINENO"; then :
3947   ac_cv_header_stdc=yes
3948 else
3949   ac_cv_header_stdc=no
3950 fi
3951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3952
3953 if test $ac_cv_header_stdc = yes; then
3954   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3955   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3956 /* end confdefs.h.  */
3957 #include <string.h>
3958
3959 _ACEOF
3960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3961   $EGREP "memchr" >/dev/null 2>&1; then :
3962   
3963 else
3964   ac_cv_header_stdc=no
3965 fi
3966 rm -f conftest*
3967
3968 fi
3969
3970 if test $ac_cv_header_stdc = yes; then
3971   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3972   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3973 /* end confdefs.h.  */
3974 #include <stdlib.h>
3975
3976 _ACEOF
3977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3978   $EGREP "free" >/dev/null 2>&1; then :
3979   
3980 else
3981   ac_cv_header_stdc=no
3982 fi
3983 rm -f conftest*
3984
3985 fi
3986
3987 if test $ac_cv_header_stdc = yes; then
3988   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3989   if test "$cross_compiling" = yes; then :
3990   :
3991 else
3992   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3993 /* end confdefs.h.  */
3994 #include <ctype.h>
3995 #include <stdlib.h>
3996 #if ((' ' & 0x0FF) == 0x020)
3997 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3998 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3999 #else
4000 # define ISLOWER(c) \
4001                    (('a' <= (c) && (c) <= 'i') \
4002                      || ('j' <= (c) && (c) <= 'r') \
4003                      || ('s' <= (c) && (c) <= 'z'))
4004 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4005 #endif
4006
4007 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4008 int
4009 main ()
4010 {
4011   int i;
4012   for (i = 0; i < 256; i++)
4013     if (XOR (islower (i), ISLOWER (i))
4014         || toupper (i) != TOUPPER (i))
4015       return 2;
4016   return 0;
4017 }
4018 _ACEOF
4019 if ac_fn_c_try_run "$LINENO"; then :
4020   
4021 else
4022   ac_cv_header_stdc=no
4023 fi
4024 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4025   conftest.$ac_objext conftest.beam conftest.$ac_ext
4026 fi
4027
4028 fi
4029 fi
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4031 $as_echo "$ac_cv_header_stdc" >&6; }
4032 if test $ac_cv_header_stdc = yes; then
4033   
4034 $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
4035
4036 fi
4037
4038 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4039 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4040                   inttypes.h stdint.h unistd.h
4041 do :
4042   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4043 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4044 "
4045 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4046   cat >>confdefs.h <<_ACEOF
4047 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4048 _ACEOF
4049  
4050 fi
4051
4052 done
4053
4054
4055  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4056 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4057 if ${ac_cv_c_bigendian+:} false; then :
4058   $as_echo_n "(cached) " >&6
4059 else
4060   ac_cv_c_bigendian=unknown
4061     # See if we're dealing with a universal compiler.
4062     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4063 /* end confdefs.h.  */
4064 #ifndef __APPLE_CC__
4065                not a universal capable compiler
4066              #endif
4067              typedef int dummy;
4068             
4069 _ACEOF
4070 if ac_fn_c_try_compile "$LINENO"; then :
4071   
4072         # Check for potential -arch flags.  It is not universal unless
4073         # there are at least two -arch flags with different values.
4074         ac_arch=
4075         ac_prev=
4076         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4077          if test -n "$ac_prev"; then
4078            case $ac_word in
4079              i?86 | x86_64 | ppc | ppc64)
4080                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4081                  ac_arch=$ac_word
4082                else
4083                  ac_cv_c_bigendian=universal
4084                  break
4085                fi
4086                ;;
4087            esac
4088            ac_prev=
4089          elif test "x$ac_word" = "x-arch"; then
4090            ac_prev=arch
4091          fi
4092        done
4093 fi
4094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4095     if test $ac_cv_c_bigendian = unknown; then
4096       # See if sys/param.h defines the BYTE_ORDER macro.
4097       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4098 /* end confdefs.h.  */
4099 #include <sys/types.h>
4100              #include <sys/param.h>
4101            
4102 int
4103 main ()
4104 {
4105 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4106                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4107                      && LITTLE_ENDIAN)
4108               bogus endian macros
4109              #endif
4110            
4111   ;
4112   return 0;
4113 }
4114 _ACEOF
4115 if ac_fn_c_try_compile "$LINENO"; then :
4116   # It does; now see whether it defined to BIG_ENDIAN or not.
4117          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4118 /* end confdefs.h.  */
4119 #include <sys/types.h>
4120                 #include <sys/param.h>
4121               
4122 int
4123 main ()
4124 {
4125 #if BYTE_ORDER != BIG_ENDIAN
4126                  not big endian
4127                 #endif
4128               
4129   ;
4130   return 0;
4131 }
4132 _ACEOF
4133 if ac_fn_c_try_compile "$LINENO"; then :
4134   ac_cv_c_bigendian=yes
4135 else
4136   ac_cv_c_bigendian=no
4137 fi
4138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4139 fi
4140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4141     fi
4142     if test $ac_cv_c_bigendian = unknown; then
4143       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4144       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4145 /* end confdefs.h.  */
4146 #include <limits.h>
4147            
4148 int
4149 main ()
4150 {
4151 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4152               bogus endian macros
4153              #endif
4154            
4155   ;
4156   return 0;
4157 }
4158 _ACEOF
4159 if ac_fn_c_try_compile "$LINENO"; then :
4160   # It does; now see whether it defined to _BIG_ENDIAN or not.
4161          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4162 /* end confdefs.h.  */
4163 #include <limits.h>
4164               
4165 int
4166 main ()
4167 {
4168 #ifndef _BIG_ENDIAN
4169                  not big endian
4170                 #endif
4171               
4172   ;
4173   return 0;
4174 }
4175 _ACEOF
4176 if ac_fn_c_try_compile "$LINENO"; then :
4177   ac_cv_c_bigendian=yes
4178 else
4179   ac_cv_c_bigendian=no
4180 fi
4181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4182 fi
4183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4184     fi
4185     if test $ac_cv_c_bigendian = unknown; then
4186       # Compile a test program.
4187       if test "$cross_compiling" = yes; then :
4188   # Try to guess by grepping values from an object file.
4189          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4190 /* end confdefs.h.  */
4191 short int ascii_mm[] =
4192                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4193                 short int ascii_ii[] =
4194                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4195                 int use_ascii (int i) {
4196                   return ascii_mm[i] + ascii_ii[i];
4197                 }
4198                 short int ebcdic_ii[] =
4199                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4200                 short int ebcdic_mm[] =
4201                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4202                 int use_ebcdic (int i) {
4203                   return ebcdic_mm[i] + ebcdic_ii[i];
4204                 }
4205                 extern int foo;
4206               
4207 int
4208 main ()
4209 {
4210 return use_ascii (foo) == use_ebcdic (foo);
4211   ;
4212   return 0;
4213 }
4214 _ACEOF
4215 if ac_fn_c_try_compile "$LINENO"; then :
4216   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4217               ac_cv_c_bigendian=yes
4218             fi
4219             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4220               if test "$ac_cv_c_bigendian" = unknown; then
4221                 ac_cv_c_bigendian=no
4222               else
4223                 # finding both strings is unlikely to happen, but who knows?
4224                 ac_cv_c_bigendian=unknown
4225               fi
4226             fi
4227 fi
4228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4229 else
4230   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4231 /* end confdefs.h.  */
4232 $ac_includes_default
4233 int
4234 main ()
4235 {
4236
4237              /* Are we little or big endian?  From Harbison&Steele.  */
4238              union
4239              {
4240                long int l;
4241                char c[sizeof (long int)];
4242              } u;
4243              u.l = 1;
4244              return u.c[sizeof (long int) - 1] == 1;
4245            
4246   ;
4247   return 0;
4248 }
4249 _ACEOF
4250 if ac_fn_c_try_run "$LINENO"; then :
4251   ac_cv_c_bigendian=no
4252 else
4253   ac_cv_c_bigendian=yes
4254 fi
4255 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4256   conftest.$ac_objext conftest.beam conftest.$ac_ext
4257 fi
4258
4259     fi
4260 fi
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4262 $as_echo "$ac_cv_c_bigendian" >&6; }
4263  case $ac_cv_c_bigendian in #(
4264    yes)
4265      $as_echo "@%:@define WORDS_BIGENDIAN 1" >>confdefs.h
4266 ;; #(
4267    no)
4268       ;; #(
4269    universal)
4270         
4271 $as_echo "@%:@define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4272
4273      ;; #(
4274    *)
4275      as_fn_error $? "unknown endianness
4276  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4277  esac
4278
4279 case `pwd` in
4280   *\ * | *\     *)
4281     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4282 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4283 esac
4284
4285
4286
4287 macro_version='2.4.2'
4288 macro_revision='1.3337'
4289
4290     
4291     
4292     
4293
4294
4295     
4296     
4297     
4298
4299
4300
4301
4302 ltmain="$ac_aux_dir/ltmain.sh"
4303
4304 # Make sure we can run config.sub.
4305 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4306   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4307
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4309 $as_echo_n "checking build system type... " >&6; }
4310 if ${ac_cv_build+:} false; then :
4311   $as_echo_n "(cached) " >&6
4312 else
4313   ac_build_alias=$build_alias
4314 test "x$ac_build_alias" = x &&
4315   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4316 test "x$ac_build_alias" = x &&
4317   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4318 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4319   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4320
4321 fi
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4323 $as_echo "$ac_cv_build" >&6; }
4324 case $ac_cv_build in
4325 *-*-*) ;;
4326 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4327 esac
4328 build=$ac_cv_build
4329 ac_save_IFS=$IFS; IFS='-'
4330 set x $ac_cv_build
4331 shift
4332 build_cpu=$1
4333 build_vendor=$2
4334 shift; shift
4335 # Remember, the first character of IFS is used to create $*,
4336 # except with old shells:
4337 build_os=$*
4338 IFS=$ac_save_IFS
4339 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4340
4341
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4343 $as_echo_n "checking host system type... " >&6; }
4344 if ${ac_cv_host+:} false; then :
4345   $as_echo_n "(cached) " >&6
4346 else
4347   if test "x$host_alias" = x; then
4348   ac_cv_host=$ac_cv_build
4349 else
4350   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4351     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4352 fi
4353
4354 fi
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4356 $as_echo "$ac_cv_host" >&6; }
4357 case $ac_cv_host in
4358 *-*-*) ;;
4359 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4360 esac
4361 host=$ac_cv_host
4362 ac_save_IFS=$IFS; IFS='-'
4363 set x $ac_cv_host
4364 shift
4365 host_cpu=$1
4366 host_vendor=$2
4367 shift; shift
4368 # Remember, the first character of IFS is used to create $*,
4369 # except with old shells:
4370 host_os=$*
4371 IFS=$ac_save_IFS
4372 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4373
4374
4375 # Backslashify metacharacters that are still active within
4376 # double-quoted strings.
4377 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4378
4379 # Same as above, but do not quote variable references.
4380 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4381
4382 # Sed substitution to delay expansion of an escaped shell variable in a
4383 # double_quote_subst'ed string.
4384 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4385
4386 # Sed substitution to delay expansion of an escaped single quote.
4387 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4388
4389 # Sed substitution to avoid accidental globbing in evaled expressions
4390 no_glob_subst='s/\*/\\\*/g'
4391
4392 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4393 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4394 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4395
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4397 $as_echo_n "checking how to print strings... " >&6; }
4398 # Test print first, because it will be a builtin if present.
4399 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4400    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4401   ECHO='print -r --'
4402 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4403   ECHO='printf %s\n'
4404 else
4405   # Use this function as a fallback that always works.
4406   func_fallback_echo ()
4407   {
4408     eval 'cat <<_LTECHO_EOF
4409 $1
4410 _LTECHO_EOF'
4411   }
4412   ECHO='func_fallback_echo'
4413 fi
4414
4415 # func_echo_all arg...
4416 # Invoke $ECHO with all args, space-separated.
4417 func_echo_all ()
4418 {
4419     $ECHO "" 
4420 }
4421
4422 case "$ECHO" in
4423   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4424 $as_echo "printf" >&6; } ;;
4425   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4426 $as_echo "print -r" >&6; } ;;
4427   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4428 $as_echo "cat" >&6; } ;;
4429 esac
4430
4431
4432
4433
4434     
4435     
4436     
4437
4438
4439     
4440     
4441     
4442
4443
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4445 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4446 if ${ac_cv_path_SED+:} false; then :
4447   $as_echo_n "(cached) " >&6
4448 else
4449             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4450      for ac_i in 1 2 3 4 5 6 7; do
4451        ac_script="$ac_script$as_nl$ac_script"
4452      done
4453      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4454      { ac_script=; unset ac_script;}
4455      if test -z "$SED"; then
4456   ac_path_SED_found=false
4457   # Loop through the user's path and test for each of PROGNAME-LIST
4458   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4459 for as_dir in $PATH
4460 do
4461   IFS=$as_save_IFS
4462   test -z "$as_dir" && as_dir=.
4463     for ac_prog in sed gsed; do
4464     for ac_exec_ext in '' $ac_executable_extensions; do
4465       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4466       as_fn_executable_p "$ac_path_SED" || continue
4467 # Check for GNU ac_path_SED and select it if it is found.
4468   # Check for GNU $ac_path_SED
4469 case `"$ac_path_SED" --version 2>&1` in
4470 *GNU*)
4471   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4472 *)
4473   ac_count=0
4474   $as_echo_n 0123456789 >"conftest.in"
4475   while :
4476   do
4477     cat "conftest.in" "conftest.in" >"conftest.tmp"
4478     mv "conftest.tmp" "conftest.in"
4479     cp "conftest.in" "conftest.nl"
4480     $as_echo '' >> "conftest.nl"
4481     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4482     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4483     as_fn_arith $ac_count + 1 && ac_count=$as_val
4484     if test $ac_count -gt ${ac_path_SED_max-0}; then
4485       # Best one so far, save it but keep looking for a better one
4486       ac_cv_path_SED="$ac_path_SED"
4487       ac_path_SED_max=$ac_count
4488     fi
4489     # 10*(2^10) chars as input seems more than enough
4490     test $ac_count -gt 10 && break
4491   done
4492   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4493 esac
4494
4495       $ac_path_SED_found && break 3
4496     done
4497   done
4498   done
4499 IFS=$as_save_IFS
4500   if test -z "$ac_cv_path_SED"; then
4501     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4502   fi
4503 else
4504   ac_cv_path_SED=$SED
4505 fi
4506
4507 fi
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4509 $as_echo "$ac_cv_path_SED" >&6; }
4510  SED="$ac_cv_path_SED"
4511   rm -f conftest.sed
4512
4513 test -z "$SED" && SED=sed
4514 Xsed="$SED -e 1s/^X//"
4515
4516     
4517     
4518     
4519
4520
4521     
4522     
4523     
4524
4525
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4527 $as_echo_n "checking for fgrep... " >&6; }
4528 if ${ac_cv_path_FGREP+:} false; then :
4529   $as_echo_n "(cached) " >&6
4530 else
4531   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4532    then ac_cv_path_FGREP="$GREP -F"
4533    else
4534      if test -z "$FGREP"; then
4535   ac_path_FGREP_found=false
4536   # Loop through the user's path and test for each of PROGNAME-LIST
4537   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4538 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4539 do
4540   IFS=$as_save_IFS
4541   test -z "$as_dir" && as_dir=.
4542     for ac_prog in fgrep; do
4543     for ac_exec_ext in '' $ac_executable_extensions; do
4544       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4545       as_fn_executable_p "$ac_path_FGREP" || continue
4546 # Check for GNU ac_path_FGREP and select it if it is found.
4547   # Check for GNU $ac_path_FGREP
4548 case `"$ac_path_FGREP" --version 2>&1` in
4549 *GNU*)
4550   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4551 *)
4552   ac_count=0
4553   $as_echo_n 0123456789 >"conftest.in"
4554   while :
4555   do
4556     cat "conftest.in" "conftest.in" >"conftest.tmp"
4557     mv "conftest.tmp" "conftest.in"
4558     cp "conftest.in" "conftest.nl"
4559     $as_echo 'FGREP' >> "conftest.nl"
4560     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4561     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4562     as_fn_arith $ac_count + 1 && ac_count=$as_val
4563     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4564       # Best one so far, save it but keep looking for a better one
4565       ac_cv_path_FGREP="$ac_path_FGREP"
4566       ac_path_FGREP_max=$ac_count
4567     fi
4568     # 10*(2^10) chars as input seems more than enough
4569     test $ac_count -gt 10 && break
4570   done
4571   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4572 esac
4573
4574       $ac_path_FGREP_found && break 3
4575     done
4576   done
4577   done
4578 IFS=$as_save_IFS
4579   if test -z "$ac_cv_path_FGREP"; then
4580     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4581   fi
4582 else
4583   ac_cv_path_FGREP=$FGREP
4584 fi
4585
4586    fi
4587 fi
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4589 $as_echo "$ac_cv_path_FGREP" >&6; }
4590  FGREP="$ac_cv_path_FGREP"
4591  
4592
4593 test -z "$GREP" && GREP=grep
4594
4595     
4596     
4597     
4598
4599
4600     
4601     
4602     
4603
4604
4605     
4606     
4607     
4608
4609
4610
4611
4612
4613 @%:@ Check whether --with-gnu-ld was given.
4614 if test "${with_gnu_ld+set}" = set; then :
4615   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4616 else
4617   with_gnu_ld=no
4618 fi
4619
4620 ac_prog=ld
4621 if test "$GCC" = yes; then
4622   # Check if gcc -print-prog-name=ld gives a path.
4623   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4624 $as_echo_n "checking for ld used by $CC... " >&6; }
4625   case $host in
4626   *-*-mingw*)
4627     # gcc leaves a trailing carriage return which upsets mingw
4628     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4629   *)
4630     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4631   esac
4632   case $ac_prog in
4633     # Accept absolute paths.
4634     [\\/]* | ?:[\\/]*)
4635       re_direlt='/[^/][^/]*/\.\./'
4636       # Canonicalize the pathname of ld
4637       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4638       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4639         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4640       done
4641       test -z "$LD" && LD="$ac_prog"
4642       ;;
4643   "")
4644     # If it fails, then pretend we aren't using GCC.
4645     ac_prog=ld
4646     ;;
4647   *)
4648     # If it is relative, then search for the first ld in PATH.
4649     with_gnu_ld=unknown
4650     ;;
4651   esac
4652 elif test "$with_gnu_ld" = yes; then
4653   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4654 $as_echo_n "checking for GNU ld... " >&6; }
4655 else
4656   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4657 $as_echo_n "checking for non-GNU ld... " >&6; }
4658 fi
4659 if ${lt_cv_path_LD+:} false; then :
4660   $as_echo_n "(cached) " >&6
4661 else
4662   if test -z "$LD"; then
4663   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4664   for ac_dir in $PATH; do
4665     IFS="$lt_save_ifs"
4666     test -z "$ac_dir" && ac_dir=.
4667     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4668       lt_cv_path_LD="$ac_dir/$ac_prog"
4669       # Check to see if the program is GNU ld.  I'd rather use --version,
4670       # but apparently some variants of GNU ld only accept -v.
4671       # Break only if it was the GNU/non-GNU ld that we prefer.
4672       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4673       *GNU* | *'with BFD'*)
4674         test "$with_gnu_ld" != no && break
4675         ;;
4676       *)
4677         test "$with_gnu_ld" != yes && break
4678         ;;
4679       esac
4680     fi
4681   done
4682   IFS="$lt_save_ifs"
4683 else
4684   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4685 fi
4686 fi
4687
4688 LD="$lt_cv_path_LD"
4689 if test -n "$LD"; then
4690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4691 $as_echo "$LD" >&6; }
4692 else
4693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4694 $as_echo "no" >&6; }
4695 fi
4696 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4698 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4699 if ${lt_cv_prog_gnu_ld+:} false; then :
4700   $as_echo_n "(cached) " >&6
4701 else
4702   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4703 case `$LD -v 2>&1 </dev/null` in
4704 *GNU* | *'with BFD'*)
4705   lt_cv_prog_gnu_ld=yes
4706   ;;
4707 *)
4708   lt_cv_prog_gnu_ld=no
4709   ;;
4710 esac
4711 fi
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4713 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4714 with_gnu_ld=$lt_cv_prog_gnu_ld
4715
4716
4717
4718
4719     
4720     
4721     
4722
4723
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4725 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4726 if ${lt_cv_path_NM+:} false; then :
4727   $as_echo_n "(cached) " >&6
4728 else
4729   if test -n "$NM"; then
4730   # Let the user override the test.
4731   lt_cv_path_NM="$NM"
4732 else
4733   lt_nm_to_check="${ac_tool_prefix}nm"
4734   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4735     lt_nm_to_check="$lt_nm_to_check nm"
4736   fi
4737   for lt_tmp_nm in $lt_nm_to_check; do
4738     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4739     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4740       IFS="$lt_save_ifs"
4741       test -z "$ac_dir" && ac_dir=.
4742       tmp_nm="$ac_dir/$lt_tmp_nm"
4743       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4744         # Check to see if the nm accepts a BSD-compat flag.
4745         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4746         #   nm: unknown option "B" ignored
4747         # Tru64's nm complains that /dev/null is an invalid object file
4748         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4749         */dev/null* | *'Invalid file or object type'*)
4750           lt_cv_path_NM="$tmp_nm -B"
4751           break
4752           ;;
4753         *)
4754           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4755           */dev/null*)
4756             lt_cv_path_NM="$tmp_nm -p"
4757             break
4758             ;;
4759           *)
4760             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4761             continue # so that we can try to find one that supports BSD flags
4762             ;;
4763           esac
4764           ;;
4765         esac
4766       fi
4767     done
4768     IFS="$lt_save_ifs"
4769   done
4770   : ${lt_cv_path_NM=no}
4771 fi
4772 fi
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4774 $as_echo "$lt_cv_path_NM" >&6; }
4775 if test "$lt_cv_path_NM" != "no"; then
4776   NM="$lt_cv_path_NM"
4777 else
4778   # Didn't find any BSD compatible name lister, look for dumpbin.
4779   if test -n "$DUMPBIN"; then :
4780     # Let the user override the test.
4781   else
4782     if test -n "$ac_tool_prefix"; then
4783   for ac_prog in dumpbin "link -dump"
4784   do
4785     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4786 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4788 $as_echo_n "checking for $ac_word... " >&6; }
4789 if ${ac_cv_prog_DUMPBIN+:} false; then :
4790   $as_echo_n "(cached) " >&6
4791 else
4792   if test -n "$DUMPBIN"; then
4793   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4794 else
4795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4796 for as_dir in $PATH
4797 do
4798   IFS=$as_save_IFS
4799   test -z "$as_dir" && as_dir=.
4800     for ac_exec_ext in '' $ac_executable_extensions; do
4801   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4802     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4803     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4804     break 2
4805   fi
4806 done
4807   done
4808 IFS=$as_save_IFS
4809
4810 fi
4811 fi
4812 DUMPBIN=$ac_cv_prog_DUMPBIN
4813 if test -n "$DUMPBIN"; then
4814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4815 $as_echo "$DUMPBIN" >&6; }
4816 else
4817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4818 $as_echo "no" >&6; }
4819 fi
4820
4821
4822     test -n "$DUMPBIN" && break
4823   done
4824 fi
4825 if test -z "$DUMPBIN"; then
4826   ac_ct_DUMPBIN=$DUMPBIN
4827   for ac_prog in dumpbin "link -dump"
4828 do
4829   # Extract the first word of "$ac_prog", so it can be a program name with args.
4830 set dummy $ac_prog; ac_word=$2
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4832 $as_echo_n "checking for $ac_word... " >&6; }
4833 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4834   $as_echo_n "(cached) " >&6
4835 else
4836   if test -n "$ac_ct_DUMPBIN"; then
4837   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4838 else
4839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4840 for as_dir in $PATH
4841 do
4842   IFS=$as_save_IFS
4843   test -z "$as_dir" && as_dir=.
4844     for ac_exec_ext in '' $ac_executable_extensions; do
4845   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4846     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4847     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4848     break 2
4849   fi
4850 done
4851   done
4852 IFS=$as_save_IFS
4853
4854 fi
4855 fi
4856 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4857 if test -n "$ac_ct_DUMPBIN"; then
4858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4859 $as_echo "$ac_ct_DUMPBIN" >&6; }
4860 else
4861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4862 $as_echo "no" >&6; }
4863 fi
4864
4865
4866   test -n "$ac_ct_DUMPBIN" && break
4867 done
4868
4869   if test "x$ac_ct_DUMPBIN" = x; then
4870     DUMPBIN=":"
4871   else
4872     case $cross_compiling:$ac_tool_warned in
4873 yes:)
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4875 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4876 ac_tool_warned=yes ;;
4877 esac
4878     DUMPBIN=$ac_ct_DUMPBIN
4879   fi
4880 fi
4881
4882     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4883     *COFF*)
4884       DUMPBIN="$DUMPBIN -symbols"
4885       ;;
4886     *)
4887       DUMPBIN=:
4888       ;;
4889     esac
4890   fi
4891   
4892   if test "$DUMPBIN" != ":"; then
4893     NM="$DUMPBIN"
4894   fi
4895 fi
4896 test -z "$NM" && NM=nm
4897
4898
4899     
4900     
4901     
4902
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4904 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4905 if ${lt_cv_nm_interface+:} false; then :
4906   $as_echo_n "(cached) " >&6
4907 else
4908   lt_cv_nm_interface="BSD nm"
4909   echo "int some_variable = 0;" > conftest.$ac_ext
4910   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4911   (eval "$ac_compile" 2>conftest.err)
4912   cat conftest.err >&5
4913   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4914   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4915   cat conftest.err >&5
4916   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4917   cat conftest.out >&5
4918   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4919     lt_cv_nm_interface="MS dumpbin"
4920   fi
4921   rm -f conftest*
4922 fi
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4924 $as_echo "$lt_cv_nm_interface" >&6; }
4925
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4927 $as_echo_n "checking whether ln -s works... " >&6; }
4928 LN_S=$as_ln_s
4929 if test "$LN_S" = "ln -s"; then
4930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4931 $as_echo "yes" >&6; }
4932 else
4933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4934 $as_echo "no, using $LN_S" >&6; }
4935 fi
4936
4937 # find the maximum length of command line arguments
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4939 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4940 if ${lt_cv_sys_max_cmd_len+:} false; then :
4941   $as_echo_n "(cached) " >&6
4942 else
4943     i=0
4944   teststring="ABCD"
4945
4946   case $build_os in
4947   msdosdjgpp*)
4948     # On DJGPP, this test can blow up pretty badly due to problems in libc
4949     # (any single argument exceeding 2000 bytes causes a buffer overrun
4950     # during glob expansion).  Even if it were fixed, the result of this
4951     # check would be larger than it should be.
4952     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4953     ;;
4954
4955   gnu*)
4956     # Under GNU Hurd, this test is not required because there is
4957     # no limit to the length of command line arguments.
4958     # Libtool will interpret -1 as no limit whatsoever
4959     lt_cv_sys_max_cmd_len=-1;
4960     ;;
4961
4962   cygwin* | mingw* | cegcc*)
4963     # On Win9x/ME, this test blows up -- it succeeds, but takes
4964     # about 5 minutes as the teststring grows exponentially.
4965     # Worse, since 9x/ME are not pre-emptively multitasking,
4966     # you end up with a "frozen" computer, even though with patience
4967     # the test eventually succeeds (with a max line length of 256k).
4968     # Instead, let's just punt: use the minimum linelength reported by
4969     # all of the supported platforms: 8192 (on NT/2K/XP).
4970     lt_cv_sys_max_cmd_len=8192;
4971     ;;
4972
4973   mint*)
4974     # On MiNT this can take a long time and run out of memory.
4975     lt_cv_sys_max_cmd_len=8192;
4976     ;;
4977
4978   amigaos*)
4979     # On AmigaOS with pdksh, this test takes hours, literally.
4980     # So we just punt and use a minimum line length of 8192.
4981     lt_cv_sys_max_cmd_len=8192;
4982     ;;
4983
4984   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4985     # This has been around since 386BSD, at least.  Likely further.
4986     if test -x /sbin/sysctl; then
4987       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4988     elif test -x /usr/sbin/sysctl; then
4989       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4990     else
4991       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4992     fi
4993     # And add a safety zone
4994     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4995     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4996     ;;
4997
4998   interix*)
4999     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5000     lt_cv_sys_max_cmd_len=196608
5001     ;;
5002
5003   os2*)
5004     # The test takes a long time on OS/2.
5005     lt_cv_sys_max_cmd_len=8192
5006     ;;
5007
5008   osf*)
5009     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5010     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5011     # nice to cause kernel panics so lets avoid the loop below.
5012     # First set a reasonable default.
5013     lt_cv_sys_max_cmd_len=16384
5014     #
5015     if test -x /sbin/sysconfig; then
5016       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5017         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5018       esac
5019     fi
5020     ;;
5021   sco3.2v5*)
5022     lt_cv_sys_max_cmd_len=102400
5023     ;;
5024   sysv5* | sco5v6* | sysv4.2uw2*)
5025     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5026     if test -n "$kargmax"; then
5027       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5028     else
5029       lt_cv_sys_max_cmd_len=32768
5030     fi
5031     ;;
5032   *)
5033     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5034     if test -n "$lt_cv_sys_max_cmd_len"; then
5035       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5036       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5037     else
5038       # Make teststring a little bigger before we do anything with it.
5039       # a 1K string should be a reasonable start.
5040       for i in 1 2 3 4 5 6 7 8 ; do
5041         teststring=$teststring$teststring
5042       done
5043       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5044       # If test is not a shell built-in, we'll probably end up computing a
5045       # maximum length that is only half of the actual maximum length, but
5046       # we can't tell.
5047       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5048                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5049               test $i != 17 # 1/2 MB should be enough
5050       do
5051         i=`expr $i + 1`
5052         teststring=$teststring$teststring
5053       done
5054       # Only check the string length outside the loop.
5055       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5056       teststring=
5057       # Add a significant safety factor because C++ compilers can tack on
5058       # massive amounts of additional arguments before passing them to the
5059       # linker.  It appears as though 1/2 is a usable value.
5060       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5061     fi
5062     ;;
5063   esac
5064
5065 fi
5066
5067 if test -n $lt_cv_sys_max_cmd_len ; then
5068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5069 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5070 else
5071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5072 $as_echo "none" >&6; }
5073 fi
5074 max_cmd_len=$lt_cv_sys_max_cmd_len
5075
5076     
5077     
5078     
5079
5080
5081 : ${CP="cp -f"}
5082 : ${MV="mv -f"}
5083 : ${RM="rm -f"}
5084
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5086 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5087 # Try some XSI features
5088 xsi_shell=no
5089 ( _lt_dummy="a/b/c"
5090   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5091       = c,a/b,b/c, \
5092     && eval 'test $(( 1 + 1 )) -eq 2 \
5093     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5094   && xsi_shell=yes
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5096 $as_echo "$xsi_shell" >&6; }
5097
5098
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5100 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5101 lt_shell_append=no
5102 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5103     >/dev/null 2>&1 \
5104   && lt_shell_append=yes
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5106 $as_echo "$lt_shell_append" >&6; }
5107
5108
5109 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5110   lt_unset=unset
5111 else
5112   lt_unset=false
5113 fi
5114
5115     
5116     
5117     
5118
5119 # test EBCDIC or ASCII
5120 case `echo X|tr X '\101'` in
5121  A) # ASCII based system
5122     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5123   lt_SP2NL='tr \040 \012'
5124   lt_NL2SP='tr \015\012 \040\040'
5125   ;;
5126  *) # EBCDIC based system
5127   lt_SP2NL='tr \100 \n'
5128   lt_NL2SP='tr \r\n \100\100'
5129   ;;
5130 esac
5131
5132     
5133     
5134     
5135
5136     
5137     
5138     
5139
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5141 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5142 if ${lt_cv_to_host_file_cmd+:} false; then :
5143   $as_echo_n "(cached) " >&6
5144 else
5145   case $host in
5146   *-*-mingw* )
5147     case $build in
5148       *-*-mingw* ) # actually msys
5149         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5150         ;;
5151       *-*-cygwin* )
5152         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5153         ;;
5154       * ) # otherwise, assume *nix
5155         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5156         ;;
5157     esac
5158     ;;
5159   *-*-cygwin* )
5160     case $build in
5161       *-*-mingw* ) # actually msys
5162         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5163         ;;
5164       *-*-cygwin* )
5165         lt_cv_to_host_file_cmd=func_convert_file_noop
5166         ;;
5167       * ) # otherwise, assume *nix
5168         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5169         ;;
5170     esac
5171     ;;
5172   * ) # unhandled hosts (and "normal" native builds)
5173     lt_cv_to_host_file_cmd=func_convert_file_noop
5174     ;;
5175 esac
5176
5177 fi
5178
5179 to_host_file_cmd=$lt_cv_to_host_file_cmd
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5181 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5182
5183     
5184     
5185     
5186
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5188 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5189 if ${lt_cv_to_tool_file_cmd+:} false; then :
5190   $as_echo_n "(cached) " >&6
5191 else
5192   #assume ordinary cross tools, or native build.
5193 lt_cv_to_tool_file_cmd=func_convert_file_noop
5194 case $host in
5195   *-*-mingw* )
5196     case $build in
5197       *-*-mingw* ) # actually msys
5198         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5199         ;;
5200     esac
5201     ;;
5202 esac
5203
5204 fi
5205
5206 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5208 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5209
5210     
5211     
5212     
5213
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5215 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5216 if ${lt_cv_ld_reload_flag+:} false; then :
5217   $as_echo_n "(cached) " >&6
5218 else
5219   lt_cv_ld_reload_flag='-r'
5220 fi
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5222 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5223 reload_flag=$lt_cv_ld_reload_flag
5224 case $reload_flag in
5225 "" | " "*) ;;
5226 *) reload_flag=" $reload_flag" ;;
5227 esac
5228 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5229 case $host_os in
5230   cygwin* | mingw* | pw32* | cegcc*)
5231     if test "$GCC" != yes; then
5232       reload_cmds=false
5233     fi
5234     ;;
5235   darwin*)
5236     if test "$GCC" = yes; then
5237       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5238     else
5239       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5240     fi
5241     ;;
5242 esac
5243
5244     
5245     
5246     
5247
5248     
5249     
5250     
5251
5252 if test -n "$ac_tool_prefix"; then
5253   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5254 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5256 $as_echo_n "checking for $ac_word... " >&6; }
5257 if ${ac_cv_prog_OBJDUMP+:} false; then :
5258   $as_echo_n "(cached) " >&6
5259 else
5260   if test -n "$OBJDUMP"; then
5261   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5262 else
5263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5264 for as_dir in $PATH
5265 do
5266   IFS=$as_save_IFS
5267   test -z "$as_dir" && as_dir=.
5268     for ac_exec_ext in '' $ac_executable_extensions; do
5269   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5270     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5271     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5272     break 2
5273   fi
5274 done
5275   done
5276 IFS=$as_save_IFS
5277
5278 fi
5279 fi
5280 OBJDUMP=$ac_cv_prog_OBJDUMP
5281 if test -n "$OBJDUMP"; then
5282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5283 $as_echo "$OBJDUMP" >&6; }
5284 else
5285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5286 $as_echo "no" >&6; }
5287 fi
5288
5289
5290 fi
5291 if test -z "$ac_cv_prog_OBJDUMP"; then
5292   ac_ct_OBJDUMP=$OBJDUMP
5293   # Extract the first word of "objdump", so it can be a program name with args.
5294 set dummy objdump; ac_word=$2
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5296 $as_echo_n "checking for $ac_word... " >&6; }
5297 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5298   $as_echo_n "(cached) " >&6
5299 else
5300   if test -n "$ac_ct_OBJDUMP"; then
5301   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5302 else
5303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5304 for as_dir in $PATH
5305 do
5306   IFS=$as_save_IFS
5307   test -z "$as_dir" && as_dir=.
5308     for ac_exec_ext in '' $ac_executable_extensions; do
5309   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5310     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5311     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5312     break 2
5313   fi
5314 done
5315   done
5316 IFS=$as_save_IFS
5317
5318 fi
5319 fi
5320 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5321 if test -n "$ac_ct_OBJDUMP"; then
5322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5323 $as_echo "$ac_ct_OBJDUMP" >&6; }
5324 else
5325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5326 $as_echo "no" >&6; }
5327 fi
5328
5329   if test "x$ac_ct_OBJDUMP" = x; then
5330     OBJDUMP="false"
5331   else
5332     case $cross_compiling:$ac_tool_warned in
5333 yes:)
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5335 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5336 ac_tool_warned=yes ;;
5337 esac
5338     OBJDUMP=$ac_ct_OBJDUMP
5339   fi
5340 else
5341   OBJDUMP="$ac_cv_prog_OBJDUMP"
5342 fi
5343
5344 test -z "$OBJDUMP" && OBJDUMP=objdump
5345
5346     
5347     
5348     
5349
5350
5351
5352
5353
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5355 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5356 if ${lt_cv_deplibs_check_method+:} false; then :
5357   $as_echo_n "(cached) " >&6
5358 else
5359   lt_cv_file_magic_cmd='$MAGIC_CMD'
5360 lt_cv_file_magic_test_file=
5361 lt_cv_deplibs_check_method='unknown'
5362 # Need to set the preceding variable on all platforms that support
5363 # interlibrary dependencies.
5364 # 'none' -- dependencies not supported.
5365 # `unknown' -- same as none, but documents that we really don't know.
5366 # 'pass_all' -- all dependencies passed with no checks.
5367 # 'test_compile' -- check by making test program.
5368 # 'file_magic [[regex]]' -- check by looking for files in library path
5369 # which responds to the $file_magic_cmd with a given extended regex.
5370 # If you have `file' or equivalent on your system and you're not sure
5371 # whether `pass_all' will *always* work, you probably want this one.
5372
5373 case $host_os in
5374 aix[4-9]*)
5375   lt_cv_deplibs_check_method=pass_all
5376   ;;
5377
5378 beos*)
5379   lt_cv_deplibs_check_method=pass_all
5380   ;;
5381
5382 bsdi[45]*)
5383   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5384   lt_cv_file_magic_cmd='/usr/bin/file -L'
5385   lt_cv_file_magic_test_file=/shlib/libc.so
5386   ;;
5387
5388 cygwin*)
5389   # func_win32_libid is a shell function defined in ltmain.sh
5390   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5391   lt_cv_file_magic_cmd='func_win32_libid'
5392   ;;
5393
5394 mingw* | pw32*)
5395   # Base MSYS/MinGW do not provide the 'file' command needed by
5396   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5397   # unless we find 'file', for example because we are cross-compiling.
5398   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5399   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5400     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5401     lt_cv_file_magic_cmd='func_win32_libid'
5402   else
5403     # Keep this pattern in sync with the one in func_win32_libid.
5404     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5405     lt_cv_file_magic_cmd='$OBJDUMP -f'
5406   fi
5407   ;;
5408
5409 cegcc*)
5410   # use the weaker test based on 'objdump'. See mingw*.
5411   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5412   lt_cv_file_magic_cmd='$OBJDUMP -f'
5413   ;;
5414
5415 darwin* | rhapsody*)
5416   lt_cv_deplibs_check_method=pass_all
5417   ;;
5418
5419 freebsd* | dragonfly*)
5420   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5421     case $host_cpu in
5422     i*86 )
5423       # Not sure whether the presence of OpenBSD here was a mistake.
5424       # Let's accept both of them until this is cleared up.
5425       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5426       lt_cv_file_magic_cmd=/usr/bin/file
5427       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5428       ;;
5429     esac
5430   else
5431     lt_cv_deplibs_check_method=pass_all
5432   fi
5433   ;;
5434
5435 gnu*)
5436   lt_cv_deplibs_check_method=pass_all
5437   ;;
5438
5439 haiku*)
5440   lt_cv_deplibs_check_method=pass_all
5441   ;;
5442
5443 hpux10.20* | hpux11*)
5444   lt_cv_file_magic_cmd=/usr/bin/file
5445   case $host_cpu in
5446   ia64*)
5447     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5448     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5449     ;;
5450   hppa*64*)
5451     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]'
5452     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5453     ;;
5454   *)
5455     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5456     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5457     ;;
5458   esac
5459   ;;
5460
5461 interix[3-9]*)
5462   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5463   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5464   ;;
5465
5466 irix5* | irix6* | nonstopux*)
5467   case $LD in
5468   *-32|*"-32 ") libmagic=32-bit;;
5469   *-n32|*"-n32 ") libmagic=N32;;
5470   *-64|*"-64 ") libmagic=64-bit;;
5471   *) libmagic=never-match;;
5472   esac
5473   lt_cv_deplibs_check_method=pass_all
5474   ;;
5475
5476 # This must be glibc/ELF.
5477 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5478   lt_cv_deplibs_check_method=pass_all
5479   ;;
5480
5481 netbsd*)
5482   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5483     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5484   else
5485     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5486   fi
5487   ;;
5488
5489 newos6*)
5490   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5491   lt_cv_file_magic_cmd=/usr/bin/file
5492   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5493   ;;
5494
5495 *nto* | *qnx*)
5496   lt_cv_deplibs_check_method=pass_all
5497   ;;
5498
5499 openbsd*)
5500   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5501     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5502   else
5503     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5504   fi
5505   ;;
5506
5507 osf3* | osf4* | osf5*)
5508   lt_cv_deplibs_check_method=pass_all
5509   ;;
5510
5511 rdos*)
5512   lt_cv_deplibs_check_method=pass_all
5513   ;;
5514
5515 solaris*)
5516   lt_cv_deplibs_check_method=pass_all
5517   ;;
5518
5519 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5520   lt_cv_deplibs_check_method=pass_all
5521   ;;
5522
5523 sysv4 | sysv4.3*)
5524   case $host_vendor in
5525   motorola)
5526     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]'
5527     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5528     ;;
5529   ncr)
5530     lt_cv_deplibs_check_method=pass_all
5531     ;;
5532   sequent)
5533     lt_cv_file_magic_cmd='/bin/file'
5534     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5535     ;;
5536   sni)
5537     lt_cv_file_magic_cmd='/bin/file'
5538     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5539     lt_cv_file_magic_test_file=/lib/libc.so
5540     ;;
5541   siemens)
5542     lt_cv_deplibs_check_method=pass_all
5543     ;;
5544   pc)
5545     lt_cv_deplibs_check_method=pass_all
5546     ;;
5547   esac
5548   ;;
5549
5550 tpf*)
5551   lt_cv_deplibs_check_method=pass_all
5552   ;;
5553 esac
5554
5555 fi
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5557 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5558
5559 file_magic_glob=
5560 want_nocaseglob=no
5561 if test "$build" = "$host"; then
5562   case $host_os in
5563   mingw* | pw32*)
5564     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5565       want_nocaseglob=yes
5566     else
5567       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5568     fi
5569     ;;
5570   esac
5571 fi
5572
5573 file_magic_cmd=$lt_cv_file_magic_cmd
5574 deplibs_check_method=$lt_cv_deplibs_check_method
5575 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5576
5577
5578     
5579     
5580     
5581
5582
5583     
5584     
5585     
5586
5587
5588     
5589     
5590     
5591
5592
5593     
5594     
5595     
5596
5597
5598 if test -n "$ac_tool_prefix"; then
5599   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5600 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5602 $as_echo_n "checking for $ac_word... " >&6; }
5603 if ${ac_cv_prog_DLLTOOL+:} false; then :
5604   $as_echo_n "(cached) " >&6
5605 else
5606   if test -n "$DLLTOOL"; then
5607   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5608 else
5609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5610 for as_dir in $PATH
5611 do
5612   IFS=$as_save_IFS
5613   test -z "$as_dir" && as_dir=.
5614     for ac_exec_ext in '' $ac_executable_extensions; do
5615   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5616     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5617     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5618     break 2
5619   fi
5620 done
5621   done
5622 IFS=$as_save_IFS
5623
5624 fi
5625 fi
5626 DLLTOOL=$ac_cv_prog_DLLTOOL
5627 if test -n "$DLLTOOL"; then
5628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5629 $as_echo "$DLLTOOL" >&6; }
5630 else
5631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5632 $as_echo "no" >&6; }
5633 fi
5634
5635
5636 fi
5637 if test -z "$ac_cv_prog_DLLTOOL"; then
5638   ac_ct_DLLTOOL=$DLLTOOL
5639   # Extract the first word of "dlltool", so it can be a program name with args.
5640 set dummy dlltool; ac_word=$2
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5642 $as_echo_n "checking for $ac_word... " >&6; }
5643 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5644   $as_echo_n "(cached) " >&6
5645 else
5646   if test -n "$ac_ct_DLLTOOL"; then
5647   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5648 else
5649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5650 for as_dir in $PATH
5651 do
5652   IFS=$as_save_IFS
5653   test -z "$as_dir" && as_dir=.
5654     for ac_exec_ext in '' $ac_executable_extensions; do
5655   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5656     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5657     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5658     break 2
5659   fi
5660 done
5661   done
5662 IFS=$as_save_IFS
5663
5664 fi
5665 fi
5666 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5667 if test -n "$ac_ct_DLLTOOL"; then
5668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5669 $as_echo "$ac_ct_DLLTOOL" >&6; }
5670 else
5671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5672 $as_echo "no" >&6; }
5673 fi
5674
5675   if test "x$ac_ct_DLLTOOL" = x; then
5676     DLLTOOL="false"
5677   else
5678     case $cross_compiling:$ac_tool_warned in
5679 yes:)
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5681 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5682 ac_tool_warned=yes ;;
5683 esac
5684     DLLTOOL=$ac_ct_DLLTOOL
5685   fi
5686 else
5687   DLLTOOL="$ac_cv_prog_DLLTOOL"
5688 fi
5689
5690 test -z "$DLLTOOL" && DLLTOOL=dlltool
5691
5692     
5693     
5694     
5695
5696
5697
5698
5699
5700
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5702 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5703 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5704   $as_echo_n "(cached) " >&6
5705 else
5706   lt_cv_sharedlib_from_linklib_cmd='unknown'
5707
5708 case $host_os in
5709 cygwin* | mingw* | pw32* | cegcc*)
5710   # two different shell functions defined in ltmain.sh
5711   # decide which to use based on capabilities of $DLLTOOL
5712   case `$DLLTOOL --help 2>&1` in
5713   *--identify-strict*)
5714     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5715     ;;
5716   *)
5717     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5718     ;;
5719   esac
5720   ;;
5721 *)
5722   # fallback: assume linklib IS sharedlib
5723   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5724   ;;
5725 esac
5726
5727 fi
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5729 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5730 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5731 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5732
5733
5734     
5735     
5736     
5737
5738
5739 if test -n "$ac_tool_prefix"; then
5740   for ac_prog in ar
5741   do
5742     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5743 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5745 $as_echo_n "checking for $ac_word... " >&6; }
5746 if ${ac_cv_prog_AR+:} false; then :
5747   $as_echo_n "(cached) " >&6
5748 else
5749   if test -n "$AR"; then
5750   ac_cv_prog_AR="$AR" # Let the user override the test.
5751 else
5752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5753 for as_dir in $PATH
5754 do
5755   IFS=$as_save_IFS
5756   test -z "$as_dir" && as_dir=.
5757     for ac_exec_ext in '' $ac_executable_extensions; do
5758   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5759     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5760     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5761     break 2
5762   fi
5763 done
5764   done
5765 IFS=$as_save_IFS
5766
5767 fi
5768 fi
5769 AR=$ac_cv_prog_AR
5770 if test -n "$AR"; then
5771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5772 $as_echo "$AR" >&6; }
5773 else
5774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5775 $as_echo "no" >&6; }
5776 fi
5777
5778
5779     test -n "$AR" && break
5780   done
5781 fi
5782 if test -z "$AR"; then
5783   ac_ct_AR=$AR
5784   for ac_prog in ar
5785 do
5786   # Extract the first word of "$ac_prog", so it can be a program name with args.
5787 set dummy $ac_prog; ac_word=$2
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5789 $as_echo_n "checking for $ac_word... " >&6; }
5790 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5791   $as_echo_n "(cached) " >&6
5792 else
5793   if test -n "$ac_ct_AR"; then
5794   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5795 else
5796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5797 for as_dir in $PATH
5798 do
5799   IFS=$as_save_IFS
5800   test -z "$as_dir" && as_dir=.
5801     for ac_exec_ext in '' $ac_executable_extensions; do
5802   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5803     ac_cv_prog_ac_ct_AR="$ac_prog"
5804     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5805     break 2
5806   fi
5807 done
5808   done
5809 IFS=$as_save_IFS
5810
5811 fi
5812 fi
5813 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5814 if test -n "$ac_ct_AR"; then
5815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5816 $as_echo "$ac_ct_AR" >&6; }
5817 else
5818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5819 $as_echo "no" >&6; }
5820 fi
5821
5822
5823   test -n "$ac_ct_AR" && break
5824 done
5825
5826   if test "x$ac_ct_AR" = x; then
5827     AR="false"
5828   else
5829     case $cross_compiling:$ac_tool_warned in
5830 yes:)
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5832 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5833 ac_tool_warned=yes ;;
5834 esac
5835     AR=$ac_ct_AR
5836   fi
5837 fi
5838
5839 : ${AR=ar}
5840 : ${AR_FLAGS=cru}
5841
5842     
5843     
5844     
5845
5846
5847     
5848     
5849     
5850
5851
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5853 $as_echo_n "checking for archiver @FILE support... " >&6; }
5854 if ${lt_cv_ar_at_file+:} false; then :
5855   $as_echo_n "(cached) " >&6
5856 else
5857   lt_cv_ar_at_file=no
5858    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5859 /* end confdefs.h.  */
5860
5861 int
5862 main ()
5863 {
5864
5865   ;
5866   return 0;
5867 }
5868 _ACEOF
5869 if ac_fn_c_try_compile "$LINENO"; then :
5870   echo conftest.$ac_objext > conftest.lst
5871       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5872       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5873   (eval $lt_ar_try) 2>&5
5874   ac_status=$?
5875   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5876   test $ac_status = 0; }
5877       if test "$ac_status" -eq 0; then
5878         # Ensure the archiver fails upon bogus file names.
5879         rm -f conftest.$ac_objext libconftest.a
5880         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5881   (eval $lt_ar_try) 2>&5
5882   ac_status=$?
5883   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5884   test $ac_status = 0; }
5885         if test "$ac_status" -ne 0; then
5886           lt_cv_ar_at_file=@
5887         fi
5888       fi
5889       rm -f conftest.* libconftest.a
5890      
5891 fi
5892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5893   
5894 fi
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5896 $as_echo "$lt_cv_ar_at_file" >&6; }
5897
5898 if test "x$lt_cv_ar_at_file" = xno; then
5899   archiver_list_spec=
5900 else
5901   archiver_list_spec=$lt_cv_ar_at_file
5902 fi
5903
5904     
5905     
5906     
5907
5908
5909
5910 if test -n "$ac_tool_prefix"; then
5911   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5912 set dummy ${ac_tool_prefix}strip; ac_word=$2
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5914 $as_echo_n "checking for $ac_word... " >&6; }
5915 if ${ac_cv_prog_STRIP+:} false; then :
5916   $as_echo_n "(cached) " >&6
5917 else
5918   if test -n "$STRIP"; then
5919   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5920 else
5921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5922 for as_dir in $PATH
5923 do
5924   IFS=$as_save_IFS
5925   test -z "$as_dir" && as_dir=.
5926     for ac_exec_ext in '' $ac_executable_extensions; do
5927   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5928     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5929     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5930     break 2
5931   fi
5932 done
5933   done
5934 IFS=$as_save_IFS
5935
5936 fi
5937 fi
5938 STRIP=$ac_cv_prog_STRIP
5939 if test -n "$STRIP"; then
5940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5941 $as_echo "$STRIP" >&6; }
5942 else
5943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5944 $as_echo "no" >&6; }
5945 fi
5946
5947
5948 fi
5949 if test -z "$ac_cv_prog_STRIP"; then
5950   ac_ct_STRIP=$STRIP
5951   # Extract the first word of "strip", so it can be a program name with args.
5952 set dummy strip; ac_word=$2
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5954 $as_echo_n "checking for $ac_word... " >&6; }
5955 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5956   $as_echo_n "(cached) " >&6
5957 else
5958   if test -n "$ac_ct_STRIP"; then
5959   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5960 else
5961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5962 for as_dir in $PATH
5963 do
5964   IFS=$as_save_IFS
5965   test -z "$as_dir" && as_dir=.
5966     for ac_exec_ext in '' $ac_executable_extensions; do
5967   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5968     ac_cv_prog_ac_ct_STRIP="strip"
5969     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5970     break 2
5971   fi
5972 done
5973   done
5974 IFS=$as_save_IFS
5975
5976 fi
5977 fi
5978 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5979 if test -n "$ac_ct_STRIP"; then
5980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5981 $as_echo "$ac_ct_STRIP" >&6; }
5982 else
5983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5984 $as_echo "no" >&6; }
5985 fi
5986
5987   if test "x$ac_ct_STRIP" = x; then
5988     STRIP=":"
5989   else
5990     case $cross_compiling:$ac_tool_warned in
5991 yes:)
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5993 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5994 ac_tool_warned=yes ;;
5995 esac
5996     STRIP=$ac_ct_STRIP
5997   fi
5998 else
5999   STRIP="$ac_cv_prog_STRIP"
6000 fi
6001
6002 test -z "$STRIP" && STRIP=:
6003
6004     
6005     
6006     
6007
6008
6009 if test -n "$ac_tool_prefix"; then
6010   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6011 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6013 $as_echo_n "checking for $ac_word... " >&6; }
6014 if ${ac_cv_prog_RANLIB+:} false; then :
6015   $as_echo_n "(cached) " >&6
6016 else
6017   if test -n "$RANLIB"; then
6018   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6019 else
6020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6021 for as_dir in $PATH
6022 do
6023   IFS=$as_save_IFS
6024   test -z "$as_dir" && as_dir=.
6025     for ac_exec_ext in '' $ac_executable_extensions; do
6026   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6027     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6028     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6029     break 2
6030   fi
6031 done
6032   done
6033 IFS=$as_save_IFS
6034
6035 fi
6036 fi
6037 RANLIB=$ac_cv_prog_RANLIB
6038 if test -n "$RANLIB"; then
6039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6040 $as_echo "$RANLIB" >&6; }
6041 else
6042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6043 $as_echo "no" >&6; }
6044 fi
6045
6046
6047 fi
6048 if test -z "$ac_cv_prog_RANLIB"; then
6049   ac_ct_RANLIB=$RANLIB
6050   # Extract the first word of "ranlib", so it can be a program name with args.
6051 set dummy ranlib; ac_word=$2
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6053 $as_echo_n "checking for $ac_word... " >&6; }
6054 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6055   $as_echo_n "(cached) " >&6
6056 else
6057   if test -n "$ac_ct_RANLIB"; then
6058   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6059 else
6060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6061 for as_dir in $PATH
6062 do
6063   IFS=$as_save_IFS
6064   test -z "$as_dir" && as_dir=.
6065     for ac_exec_ext in '' $ac_executable_extensions; do
6066   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6067     ac_cv_prog_ac_ct_RANLIB="ranlib"
6068     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6069     break 2
6070   fi
6071 done
6072   done
6073 IFS=$as_save_IFS
6074
6075 fi
6076 fi
6077 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6078 if test -n "$ac_ct_RANLIB"; then
6079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6080 $as_echo "$ac_ct_RANLIB" >&6; }
6081 else
6082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6083 $as_echo "no" >&6; }
6084 fi
6085
6086   if test "x$ac_ct_RANLIB" = x; then
6087     RANLIB=":"
6088   else
6089     case $cross_compiling:$ac_tool_warned in
6090 yes:)
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6092 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6093 ac_tool_warned=yes ;;
6094 esac
6095     RANLIB=$ac_ct_RANLIB
6096   fi
6097 else
6098   RANLIB="$ac_cv_prog_RANLIB"
6099 fi
6100
6101 test -z "$RANLIB" && RANLIB=:
6102
6103     
6104     
6105     
6106
6107
6108 # Determine commands to create old-style static archives.
6109 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6110 old_postinstall_cmds='chmod 644 $oldlib'
6111 old_postuninstall_cmds=
6112
6113 if test -n "$RANLIB"; then
6114   case $host_os in
6115   openbsd*)
6116     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6117     ;;
6118   *)
6119     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6120     ;;
6121   esac
6122   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6123 fi
6124
6125 case $host_os in
6126   darwin*)
6127     lock_old_archive_extraction=yes ;;
6128   *)
6129     lock_old_archive_extraction=no ;;
6130 esac
6131
6132     
6133     
6134     
6135
6136
6137     
6138     
6139     
6140
6141
6142     
6143     
6144     
6145
6146
6147     
6148     
6149     
6150
6151
6152
6153
6154     
6155     
6156     
6157
6158     
6159     
6160     
6161
6162     
6163     
6164     
6165
6166     
6167     
6168     
6169
6170 # If no C compiler was specified, use CC.
6171 LTCC=${LTCC-"$CC"}
6172
6173 # If no C compiler flags were specified, use CFLAGS.
6174 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6175
6176 # Allow CC to be a program name with arguments.
6177 compiler=$CC
6178
6179
6180 # Check for command to grab the raw symbol name followed by C symbol from nm.
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6182 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6183 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6184   $as_echo_n "(cached) " >&6
6185 else
6186   
6187 # These are sane defaults that work on at least a few old systems.
6188 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6189
6190 # Character class describing NM global symbol codes.
6191 symcode='[BCDEGRST]'
6192
6193 # Regexp to match symbols that can be accessed directly from C.
6194 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6195
6196 # Define system-specific variables.
6197 case $host_os in
6198 aix*)
6199   symcode='[BCDT]'
6200   ;;
6201 cygwin* | mingw* | pw32* | cegcc*)
6202   symcode='[ABCDGISTW]'
6203   ;;
6204 hpux*)
6205   if test "$host_cpu" = ia64; then
6206     symcode='[ABCDEGRST]'
6207   fi
6208   ;;
6209 irix* | nonstopux*)
6210   symcode='[BCDEGRST]'
6211   ;;
6212 osf*)
6213   symcode='[BCDEGQRST]'
6214   ;;
6215 solaris*)
6216   symcode='[BDRT]'
6217   ;;
6218 sco3.2v5*)
6219   symcode='[DT]'
6220   ;;
6221 sysv4.2uw2*)
6222   symcode='[DT]'
6223   ;;
6224 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6225   symcode='[ABDT]'
6226   ;;
6227 sysv4)
6228   symcode='[DFNSTU]'
6229   ;;
6230 esac
6231
6232 # If we're using GNU nm, then use its standard symbol codes.
6233 case `$NM -V 2>&1` in
6234 *GNU* | *'with BFD'*)
6235   symcode='[ABCDGIRSTW]' ;;
6236 esac
6237
6238 # Transform an extracted symbol line into a proper C declaration.
6239 # Some systems (esp. on ia64) link data and code symbols differently,
6240 # so use this general approach.
6241 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6242
6243 # Transform an extracted symbol line into symbol name and symbol address
6244 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6245 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'"
6246
6247 # Handle CRLF in mingw tool chain
6248 opt_cr=
6249 case $build_os in
6250 mingw*)
6251   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6252   ;;
6253 esac
6254
6255 # Try without a prefix underscore, then with it.
6256 for ac_symprfx in "" "_"; do
6257
6258   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6259   symxfrm="\\1 $ac_symprfx\\2 \\2"
6260
6261   # Write the raw and C identifiers.
6262   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6263     # Fake it for dumpbin and say T for any non-static function
6264     # and D for any global variable.
6265     # Also find C++ and __fastcall symbols from MSVC++,
6266     # which start with @ or ?.
6267     lt_cv_sys_global_symbol_pipe="$AWK '"\
6268 "     {last_section=section; section=\$ 3};"\
6269 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6270 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6271 "     \$ 0!~/External *\|/{next};"\
6272 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6273 "     {if(hide[section]) next};"\
6274 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6275 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6276 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6277 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6278 "     ' prfx=^$ac_symprfx"
6279   else
6280     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6281   fi
6282   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6283
6284   # Check to see that the pipe works correctly.
6285   pipe_works=no
6286
6287   rm -f conftest*
6288   cat > conftest.$ac_ext <<_LT_EOF
6289 #ifdef __cplusplus
6290 extern "C" {
6291 #endif
6292 char nm_test_var;
6293 void nm_test_func(void);
6294 void nm_test_func(void){}
6295 #ifdef __cplusplus
6296 }
6297 #endif
6298 int main(){nm_test_var='a';nm_test_func();return(0);}
6299 _LT_EOF
6300
6301   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6302   (eval $ac_compile) 2>&5
6303   ac_status=$?
6304   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6305   test $ac_status = 0; }; then
6306     # Now try to grab the symbols.
6307     nlist=conftest.nm
6308     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6309   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6310   ac_status=$?
6311   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6312   test $ac_status = 0; } && test -s "$nlist"; then
6313       # Try sorting and uniquifying the output.
6314       if sort "$nlist" | uniq > "$nlist"T; then
6315         mv -f "$nlist"T "$nlist"
6316       else
6317         rm -f "$nlist"T
6318       fi
6319
6320       # Make sure that we snagged all the symbols we need.
6321       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6322         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6323           cat <<_LT_EOF > conftest.$ac_ext
6324 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6325 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6326 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6327    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6328 # define LT@&t@_DLSYM_CONST
6329 #elif defined(__osf__)
6330 /* This system does not cope well with relocations in const data.  */
6331 # define LT@&t@_DLSYM_CONST
6332 #else
6333 # define LT@&t@_DLSYM_CONST const
6334 #endif
6335
6336 #ifdef __cplusplus
6337 extern "C" {
6338 #endif
6339
6340 _LT_EOF
6341           # Now generate the symbol file.
6342           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6343
6344           cat <<_LT_EOF >> conftest.$ac_ext
6345
6346 /* The mapping between symbol names and symbols.  */
6347 LT@&t@_DLSYM_CONST struct {
6348   const char *name;
6349   void       *address;
6350 }
6351 lt__PROGRAM__LTX_preloaded_symbols[] =
6352 {
6353   { "@PROGRAM@", (void *) 0 },
6354 _LT_EOF
6355           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6356           cat <<\_LT_EOF >> conftest.$ac_ext
6357   {0, (void *) 0}
6358 };
6359
6360 /* This works around a problem in FreeBSD linker */
6361 #ifdef FREEBSD_WORKAROUND
6362 static const void *lt_preloaded_setup() {
6363   return lt__PROGRAM__LTX_preloaded_symbols;
6364 }
6365 #endif
6366
6367 #ifdef __cplusplus
6368 }
6369 #endif
6370 _LT_EOF
6371           # Now try linking the two files.
6372           mv conftest.$ac_objext conftstm.$ac_objext
6373           lt_globsym_save_LIBS=$LIBS
6374           lt_globsym_save_CFLAGS=$CFLAGS
6375           LIBS="conftstm.$ac_objext"
6376           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6377           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6378   (eval $ac_link) 2>&5
6379   ac_status=$?
6380   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6381   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6382             pipe_works=yes
6383           fi
6384           LIBS=$lt_globsym_save_LIBS
6385           CFLAGS=$lt_globsym_save_CFLAGS
6386         else
6387           echo "cannot find nm_test_func in $nlist" >&5
6388         fi
6389       else
6390         echo "cannot find nm_test_var in $nlist" >&5
6391       fi
6392     else
6393       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6394     fi
6395   else
6396     echo "$progname: failed program was:" >&5
6397     cat conftest.$ac_ext >&5
6398   fi
6399   rm -rf conftest* conftst*
6400
6401   # Do not use the global_symbol_pipe unless it works.
6402   if test "$pipe_works" = yes; then
6403     break
6404   else
6405     lt_cv_sys_global_symbol_pipe=
6406   fi
6407 done
6408
6409 fi
6410
6411 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6412   lt_cv_sys_global_symbol_to_cdecl=
6413 fi
6414 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6416 $as_echo "failed" >&6; }
6417 else
6418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6419 $as_echo "ok" >&6; }
6420 fi
6421
6422 # Response file support.
6423 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6424   nm_file_list_spec='@'
6425 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6426   nm_file_list_spec='@'
6427 fi
6428
6429
6430     
6431     
6432     
6433
6434
6435     
6436     
6437     
6438
6439
6440     
6441     
6442     
6443
6444
6445     
6446     
6447     
6448
6449
6450     
6451     
6452     
6453
6454
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6456 $as_echo_n "checking for sysroot... " >&6; }
6457
6458 @%:@ Check whether --with-sysroot was given.
6459 if test "${with_sysroot+set}" = set; then :
6460   withval=$with_sysroot; 
6461 else
6462   with_sysroot=no
6463 fi
6464
6465
6466 lt_sysroot=
6467 case ${with_sysroot} in #(
6468  yes)
6469    if test "$GCC" = yes; then
6470      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6471    fi
6472    ;; #(
6473  /*)
6474    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6475    ;; #(
6476  no|'')
6477    ;; #(
6478  *)
6479    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6480 $as_echo "${with_sysroot}" >&6; }
6481    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6482    ;;
6483 esac
6484
6485  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6486 $as_echo "${lt_sysroot:-no}" >&6; }
6487
6488     
6489     
6490     
6491
6492 @%:@ Check whether --enable-libtool-lock was given.
6493 if test "${enable_libtool_lock+set}" = set; then :
6494   enableval=$enable_libtool_lock; 
6495 fi
6496
6497 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6498
6499 # Some flags need to be propagated to the compiler or linker for good
6500 # libtool support.
6501 case $host in
6502 ia64-*-hpux*)
6503   # Find out which ABI we are using.
6504   echo 'int i;' > conftest.$ac_ext
6505   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6506   (eval $ac_compile) 2>&5
6507   ac_status=$?
6508   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6509   test $ac_status = 0; }; then
6510     case `/usr/bin/file conftest.$ac_objext` in
6511       *ELF-32*)
6512         HPUX_IA64_MODE="32"
6513         ;;
6514       *ELF-64*)
6515         HPUX_IA64_MODE="64"
6516         ;;
6517     esac
6518   fi
6519   rm -rf conftest*
6520   ;;
6521 *-*-irix6*)
6522   # Find out which ABI we are using.
6523   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6524   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6525   (eval $ac_compile) 2>&5
6526   ac_status=$?
6527   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6528   test $ac_status = 0; }; then
6529     if test "$lt_cv_prog_gnu_ld" = yes; then
6530       case `/usr/bin/file conftest.$ac_objext` in
6531         *32-bit*)
6532           LD="${LD-ld} -melf32bsmip"
6533           ;;
6534         *N32*)
6535           LD="${LD-ld} -melf32bmipn32"
6536           ;;
6537         *64-bit*)
6538           LD="${LD-ld} -melf64bmip"
6539         ;;
6540       esac
6541     else
6542       case `/usr/bin/file conftest.$ac_objext` in
6543         *32-bit*)
6544           LD="${LD-ld} -32"
6545           ;;
6546         *N32*)
6547           LD="${LD-ld} -n32"
6548           ;;
6549         *64-bit*)
6550           LD="${LD-ld} -64"
6551           ;;
6552       esac
6553     fi
6554   fi
6555   rm -rf conftest*
6556   ;;
6557
6558 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6559 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6560   # Find out which ABI we are using.
6561   echo 'int i;' > conftest.$ac_ext
6562   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6563   (eval $ac_compile) 2>&5
6564   ac_status=$?
6565   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6566   test $ac_status = 0; }; then
6567     case `/usr/bin/file conftest.o` in
6568       *32-bit*)
6569         case $host in
6570           x86_64-*kfreebsd*-gnu)
6571             LD="${LD-ld} -m elf_i386_fbsd"
6572             ;;
6573           x86_64-*linux*)
6574             LD="${LD-ld} -m elf_i386"
6575             ;;
6576           ppc64-*linux*|powerpc64-*linux*)
6577             LD="${LD-ld} -m elf32ppclinux"
6578             ;;
6579           s390x-*linux*)
6580             LD="${LD-ld} -m elf_s390"
6581             ;;
6582           sparc64-*linux*)
6583             LD="${LD-ld} -m elf32_sparc"
6584             ;;
6585         esac
6586         ;;
6587       *64-bit*)
6588         case $host in
6589           x86_64-*kfreebsd*-gnu)
6590             LD="${LD-ld} -m elf_x86_64_fbsd"
6591             ;;
6592           x86_64-*linux*)
6593             LD="${LD-ld} -m elf_x86_64"
6594             ;;
6595           ppc*-*linux*|powerpc*-*linux*)
6596             LD="${LD-ld} -m elf64ppc"
6597             ;;
6598           s390*-*linux*|s390*-*tpf*)
6599             LD="${LD-ld} -m elf64_s390"
6600             ;;
6601           sparc*-*linux*)
6602             LD="${LD-ld} -m elf64_sparc"
6603             ;;
6604         esac
6605         ;;
6606     esac
6607   fi
6608   rm -rf conftest*
6609   ;;
6610
6611 *-*-sco3.2v5*)
6612   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6613   SAVE_CFLAGS="$CFLAGS"
6614   CFLAGS="$CFLAGS -belf"
6615   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6616 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6617 if ${lt_cv_cc_needs_belf+:} false; then :
6618   $as_echo_n "(cached) " >&6
6619 else
6620   ac_ext=c
6621 ac_cpp='$CPP $CPPFLAGS'
6622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6625
6626      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6627 /* end confdefs.h.  */
6628
6629 int
6630 main ()
6631 {
6632
6633   ;
6634   return 0;
6635 }
6636 _ACEOF
6637 if ac_fn_c_try_link "$LINENO"; then :
6638   lt_cv_cc_needs_belf=yes
6639 else
6640   lt_cv_cc_needs_belf=no
6641 fi
6642 rm -f core conftest.err conftest.$ac_objext \
6643     conftest$ac_exeext conftest.$ac_ext
6644      ac_ext=c
6645 ac_cpp='$CPP $CPPFLAGS'
6646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6649
6650 fi
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6652 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6653   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6654     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6655     CFLAGS="$SAVE_CFLAGS"
6656   fi
6657   ;;
6658 *-*solaris*)
6659   # Find out which ABI we are using.
6660   echo 'int i;' > conftest.$ac_ext
6661   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6662   (eval $ac_compile) 2>&5
6663   ac_status=$?
6664   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6665   test $ac_status = 0; }; then
6666     case `/usr/bin/file conftest.o` in
6667     *64-bit*)
6668       case $lt_cv_prog_gnu_ld in
6669       yes*)
6670         case $host in
6671         i?86-*-solaris*)
6672           LD="${LD-ld} -m elf_x86_64"
6673           ;;
6674         sparc*-*-solaris*)
6675           LD="${LD-ld} -m elf64_sparc"
6676           ;;
6677         esac
6678         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6679         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6680           LD="${LD-ld}_sol2"
6681         fi
6682         ;;
6683       *)
6684         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6685           LD="${LD-ld} -64"
6686         fi
6687         ;;
6688       esac
6689       ;;
6690     esac
6691   fi
6692   rm -rf conftest*
6693   ;;
6694 esac
6695
6696 need_locks="$enable_libtool_lock"
6697
6698 if test -n "$ac_tool_prefix"; then
6699   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6700 set dummy ${ac_tool_prefix}mt; ac_word=$2
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6702 $as_echo_n "checking for $ac_word... " >&6; }
6703 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6704   $as_echo_n "(cached) " >&6
6705 else
6706   if test -n "$MANIFEST_TOOL"; then
6707   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6708 else
6709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6710 for as_dir in $PATH
6711 do
6712   IFS=$as_save_IFS
6713   test -z "$as_dir" && as_dir=.
6714     for ac_exec_ext in '' $ac_executable_extensions; do
6715   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6716     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6717     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6718     break 2
6719   fi
6720 done
6721   done
6722 IFS=$as_save_IFS
6723
6724 fi
6725 fi
6726 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6727 if test -n "$MANIFEST_TOOL"; then
6728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6729 $as_echo "$MANIFEST_TOOL" >&6; }
6730 else
6731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6732 $as_echo "no" >&6; }
6733 fi
6734
6735
6736 fi
6737 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6738   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6739   # Extract the first word of "mt", so it can be a program name with args.
6740 set dummy mt; ac_word=$2
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6742 $as_echo_n "checking for $ac_word... " >&6; }
6743 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6744   $as_echo_n "(cached) " >&6
6745 else
6746   if test -n "$ac_ct_MANIFEST_TOOL"; then
6747   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6748 else
6749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6750 for as_dir in $PATH
6751 do
6752   IFS=$as_save_IFS
6753   test -z "$as_dir" && as_dir=.
6754     for ac_exec_ext in '' $ac_executable_extensions; do
6755   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6756     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6757     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6758     break 2
6759   fi
6760 done
6761   done
6762 IFS=$as_save_IFS
6763
6764 fi
6765 fi
6766 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6767 if test -n "$ac_ct_MANIFEST_TOOL"; then
6768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6769 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6770 else
6771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6772 $as_echo "no" >&6; }
6773 fi
6774
6775   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6776     MANIFEST_TOOL=":"
6777   else
6778     case $cross_compiling:$ac_tool_warned in
6779 yes:)
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6781 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6782 ac_tool_warned=yes ;;
6783 esac
6784     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6785   fi
6786 else
6787   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6788 fi
6789
6790 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6792 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6793 if ${lt_cv_path_mainfest_tool+:} false; then :
6794   $as_echo_n "(cached) " >&6
6795 else
6796   lt_cv_path_mainfest_tool=no
6797   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6798   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6799   cat conftest.err >&5
6800   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6801     lt_cv_path_mainfest_tool=yes
6802   fi
6803   rm -f conftest*
6804 fi
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6806 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6807 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6808   MANIFEST_TOOL=:
6809 fi
6810
6811     
6812     
6813     
6814
6815
6816   case $host_os in
6817     rhapsody* | darwin*)
6818     if test -n "$ac_tool_prefix"; then
6819   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6820 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6822 $as_echo_n "checking for $ac_word... " >&6; }
6823 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6824   $as_echo_n "(cached) " >&6
6825 else
6826   if test -n "$DSYMUTIL"; then
6827   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6828 else
6829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6830 for as_dir in $PATH
6831 do
6832   IFS=$as_save_IFS
6833   test -z "$as_dir" && as_dir=.
6834     for ac_exec_ext in '' $ac_executable_extensions; do
6835   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6836     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6837     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6838     break 2
6839   fi
6840 done
6841   done
6842 IFS=$as_save_IFS
6843
6844 fi
6845 fi
6846 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6847 if test -n "$DSYMUTIL"; then
6848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6849 $as_echo "$DSYMUTIL" >&6; }
6850 else
6851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6852 $as_echo "no" >&6; }
6853 fi
6854
6855
6856 fi
6857 if test -z "$ac_cv_prog_DSYMUTIL"; then
6858   ac_ct_DSYMUTIL=$DSYMUTIL
6859   # Extract the first word of "dsymutil", so it can be a program name with args.
6860 set dummy dsymutil; ac_word=$2
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6862 $as_echo_n "checking for $ac_word... " >&6; }
6863 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6864   $as_echo_n "(cached) " >&6
6865 else
6866   if test -n "$ac_ct_DSYMUTIL"; then
6867   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6868 else
6869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6870 for as_dir in $PATH
6871 do
6872   IFS=$as_save_IFS
6873   test -z "$as_dir" && as_dir=.
6874     for ac_exec_ext in '' $ac_executable_extensions; do
6875   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6876     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6877     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6878     break 2
6879   fi
6880 done
6881   done
6882 IFS=$as_save_IFS
6883
6884 fi
6885 fi
6886 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6887 if test -n "$ac_ct_DSYMUTIL"; then
6888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6889 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6890 else
6891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6892 $as_echo "no" >&6; }
6893 fi
6894
6895   if test "x$ac_ct_DSYMUTIL" = x; then
6896     DSYMUTIL=":"
6897   else
6898     case $cross_compiling:$ac_tool_warned in
6899 yes:)
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6901 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6902 ac_tool_warned=yes ;;
6903 esac
6904     DSYMUTIL=$ac_ct_DSYMUTIL
6905   fi
6906 else
6907   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6908 fi
6909
6910     if test -n "$ac_tool_prefix"; then
6911   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6912 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6914 $as_echo_n "checking for $ac_word... " >&6; }
6915 if ${ac_cv_prog_NMEDIT+:} false; then :
6916   $as_echo_n "(cached) " >&6
6917 else
6918   if test -n "$NMEDIT"; then
6919   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6920 else
6921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6922 for as_dir in $PATH
6923 do
6924   IFS=$as_save_IFS
6925   test -z "$as_dir" && as_dir=.
6926     for ac_exec_ext in '' $ac_executable_extensions; do
6927   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6928     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6929     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6930     break 2
6931   fi
6932 done
6933   done
6934 IFS=$as_save_IFS
6935
6936 fi
6937 fi
6938 NMEDIT=$ac_cv_prog_NMEDIT
6939 if test -n "$NMEDIT"; then
6940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6941 $as_echo "$NMEDIT" >&6; }
6942 else
6943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6944 $as_echo "no" >&6; }
6945 fi
6946
6947
6948 fi
6949 if test -z "$ac_cv_prog_NMEDIT"; then
6950   ac_ct_NMEDIT=$NMEDIT
6951   # Extract the first word of "nmedit", so it can be a program name with args.
6952 set dummy nmedit; ac_word=$2
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6954 $as_echo_n "checking for $ac_word... " >&6; }
6955 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6956   $as_echo_n "(cached) " >&6
6957 else
6958   if test -n "$ac_ct_NMEDIT"; then
6959   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6960 else
6961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6962 for as_dir in $PATH
6963 do
6964   IFS=$as_save_IFS
6965   test -z "$as_dir" && as_dir=.
6966     for ac_exec_ext in '' $ac_executable_extensions; do
6967   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6968     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6969     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6970     break 2
6971   fi
6972 done
6973   done
6974 IFS=$as_save_IFS
6975
6976 fi
6977 fi
6978 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6979 if test -n "$ac_ct_NMEDIT"; then
6980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6981 $as_echo "$ac_ct_NMEDIT" >&6; }
6982 else
6983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6984 $as_echo "no" >&6; }
6985 fi
6986
6987   if test "x$ac_ct_NMEDIT" = x; then
6988     NMEDIT=":"
6989   else
6990     case $cross_compiling:$ac_tool_warned in
6991 yes:)
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6993 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6994 ac_tool_warned=yes ;;
6995 esac
6996     NMEDIT=$ac_ct_NMEDIT
6997   fi
6998 else
6999   NMEDIT="$ac_cv_prog_NMEDIT"
7000 fi
7001
7002     if test -n "$ac_tool_prefix"; then
7003   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7004 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7006 $as_echo_n "checking for $ac_word... " >&6; }
7007 if ${ac_cv_prog_LIPO+:} false; then :
7008   $as_echo_n "(cached) " >&6
7009 else
7010   if test -n "$LIPO"; then
7011   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7012 else
7013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7014 for as_dir in $PATH
7015 do
7016   IFS=$as_save_IFS
7017   test -z "$as_dir" && as_dir=.
7018     for ac_exec_ext in '' $ac_executable_extensions; do
7019   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7020     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7021     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7022     break 2
7023   fi
7024 done
7025   done
7026 IFS=$as_save_IFS
7027
7028 fi
7029 fi
7030 LIPO=$ac_cv_prog_LIPO
7031 if test -n "$LIPO"; then
7032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7033 $as_echo "$LIPO" >&6; }
7034 else
7035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7036 $as_echo "no" >&6; }
7037 fi
7038
7039
7040 fi
7041 if test -z "$ac_cv_prog_LIPO"; then
7042   ac_ct_LIPO=$LIPO
7043   # Extract the first word of "lipo", so it can be a program name with args.
7044 set dummy lipo; ac_word=$2
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7046 $as_echo_n "checking for $ac_word... " >&6; }
7047 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7048   $as_echo_n "(cached) " >&6
7049 else
7050   if test -n "$ac_ct_LIPO"; then
7051   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7052 else
7053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7054 for as_dir in $PATH
7055 do
7056   IFS=$as_save_IFS
7057   test -z "$as_dir" && as_dir=.
7058     for ac_exec_ext in '' $ac_executable_extensions; do
7059   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7060     ac_cv_prog_ac_ct_LIPO="lipo"
7061     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7062     break 2
7063   fi
7064 done
7065   done
7066 IFS=$as_save_IFS
7067
7068 fi
7069 fi
7070 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7071 if test -n "$ac_ct_LIPO"; then
7072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7073 $as_echo "$ac_ct_LIPO" >&6; }
7074 else
7075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7076 $as_echo "no" >&6; }
7077 fi
7078
7079   if test "x$ac_ct_LIPO" = x; then
7080     LIPO=":"
7081   else
7082     case $cross_compiling:$ac_tool_warned in
7083 yes:)
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7085 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7086 ac_tool_warned=yes ;;
7087 esac
7088     LIPO=$ac_ct_LIPO
7089   fi
7090 else
7091   LIPO="$ac_cv_prog_LIPO"
7092 fi
7093
7094     if test -n "$ac_tool_prefix"; then
7095   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7096 set dummy ${ac_tool_prefix}otool; ac_word=$2
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7098 $as_echo_n "checking for $ac_word... " >&6; }
7099 if ${ac_cv_prog_OTOOL+:} false; then :
7100   $as_echo_n "(cached) " >&6
7101 else
7102   if test -n "$OTOOL"; then
7103   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7104 else
7105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7106 for as_dir in $PATH
7107 do
7108   IFS=$as_save_IFS
7109   test -z "$as_dir" && as_dir=.
7110     for ac_exec_ext in '' $ac_executable_extensions; do
7111   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7112     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7113     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7114     break 2
7115   fi
7116 done
7117   done
7118 IFS=$as_save_IFS
7119
7120 fi
7121 fi
7122 OTOOL=$ac_cv_prog_OTOOL
7123 if test -n "$OTOOL"; then
7124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7125 $as_echo "$OTOOL" >&6; }
7126 else
7127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7128 $as_echo "no" >&6; }
7129 fi
7130
7131
7132 fi
7133 if test -z "$ac_cv_prog_OTOOL"; then
7134   ac_ct_OTOOL=$OTOOL
7135   # Extract the first word of "otool", so it can be a program name with args.
7136 set dummy otool; ac_word=$2
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7138 $as_echo_n "checking for $ac_word... " >&6; }
7139 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7140   $as_echo_n "(cached) " >&6
7141 else
7142   if test -n "$ac_ct_OTOOL"; then
7143   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7144 else
7145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7146 for as_dir in $PATH
7147 do
7148   IFS=$as_save_IFS
7149   test -z "$as_dir" && as_dir=.
7150     for ac_exec_ext in '' $ac_executable_extensions; do
7151   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7152     ac_cv_prog_ac_ct_OTOOL="otool"
7153     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7154     break 2
7155   fi
7156 done
7157   done
7158 IFS=$as_save_IFS
7159
7160 fi
7161 fi
7162 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7163 if test -n "$ac_ct_OTOOL"; then
7164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7165 $as_echo "$ac_ct_OTOOL" >&6; }
7166 else
7167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7168 $as_echo "no" >&6; }
7169 fi
7170
7171   if test "x$ac_ct_OTOOL" = x; then
7172     OTOOL=":"
7173   else
7174     case $cross_compiling:$ac_tool_warned in
7175 yes:)
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7177 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7178 ac_tool_warned=yes ;;
7179 esac
7180     OTOOL=$ac_ct_OTOOL
7181   fi
7182 else
7183   OTOOL="$ac_cv_prog_OTOOL"
7184 fi
7185
7186     if test -n "$ac_tool_prefix"; then
7187   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7188 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7190 $as_echo_n "checking for $ac_word... " >&6; }
7191 if ${ac_cv_prog_OTOOL64+:} false; then :
7192   $as_echo_n "(cached) " >&6
7193 else
7194   if test -n "$OTOOL64"; then
7195   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7196 else
7197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7198 for as_dir in $PATH
7199 do
7200   IFS=$as_save_IFS
7201   test -z "$as_dir" && as_dir=.
7202     for ac_exec_ext in '' $ac_executable_extensions; do
7203   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7204     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7205     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7206     break 2
7207   fi
7208 done
7209   done
7210 IFS=$as_save_IFS
7211
7212 fi
7213 fi
7214 OTOOL64=$ac_cv_prog_OTOOL64
7215 if test -n "$OTOOL64"; then
7216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7217 $as_echo "$OTOOL64" >&6; }
7218 else
7219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7220 $as_echo "no" >&6; }
7221 fi
7222
7223
7224 fi
7225 if test -z "$ac_cv_prog_OTOOL64"; then
7226   ac_ct_OTOOL64=$OTOOL64
7227   # Extract the first word of "otool64", so it can be a program name with args.
7228 set dummy otool64; ac_word=$2
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7230 $as_echo_n "checking for $ac_word... " >&6; }
7231 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7232   $as_echo_n "(cached) " >&6
7233 else
7234   if test -n "$ac_ct_OTOOL64"; then
7235   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7236 else
7237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7238 for as_dir in $PATH
7239 do
7240   IFS=$as_save_IFS
7241   test -z "$as_dir" && as_dir=.
7242     for ac_exec_ext in '' $ac_executable_extensions; do
7243   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7244     ac_cv_prog_ac_ct_OTOOL64="otool64"
7245     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7246     break 2
7247   fi
7248 done
7249   done
7250 IFS=$as_save_IFS
7251
7252 fi
7253 fi
7254 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7255 if test -n "$ac_ct_OTOOL64"; then
7256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7257 $as_echo "$ac_ct_OTOOL64" >&6; }
7258 else
7259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7260 $as_echo "no" >&6; }
7261 fi
7262
7263   if test "x$ac_ct_OTOOL64" = x; then
7264     OTOOL64=":"
7265   else
7266     case $cross_compiling:$ac_tool_warned in
7267 yes:)
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7269 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7270 ac_tool_warned=yes ;;
7271 esac
7272     OTOOL64=$ac_ct_OTOOL64
7273   fi
7274 else
7275   OTOOL64="$ac_cv_prog_OTOOL64"
7276 fi
7277
7278     
7279     
7280     
7281     
7282
7283     
7284     
7285     
7286     
7287
7288     
7289     
7290     
7291     
7292
7293     
7294     
7295     
7296     
7297
7298     
7299     
7300     
7301     
7302
7303
7304     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7305 $as_echo_n "checking for -single_module linker flag... " >&6; }
7306 if ${lt_cv_apple_cc_single_mod+:} false; then :
7307   $as_echo_n "(cached) " >&6
7308 else
7309   lt_cv_apple_cc_single_mod=no
7310       if test -z "${LT_MULTI_MODULE}"; then
7311         # By default we will add the -single_module flag. You can override
7312         # by either setting the environment variable LT_MULTI_MODULE
7313         # non-empty at configure time, or by adding -multi_module to the
7314         # link flags.
7315         rm -rf libconftest.dylib*
7316         echo "int foo(void){return 1;}" > conftest.c
7317         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7318 -dynamiclib -Wl,-single_module conftest.c" >&5
7319         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7320           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7321         _lt_result=$?
7322         # If there is a non-empty error log, and "single_module"
7323         # appears in it, assume the flag caused a linker warning
7324         if test -s conftest.err && $GREP single_module conftest.err; then
7325           cat conftest.err >&5
7326         # Otherwise, if the output was created with a 0 exit code from
7327         # the compiler, it worked.
7328         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7329           lt_cv_apple_cc_single_mod=yes
7330         else
7331           cat conftest.err >&5
7332         fi
7333         rm -rf libconftest.dylib*
7334         rm -f conftest.*
7335       fi
7336 fi
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7338 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7339
7340     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7341 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7342 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7343   $as_echo_n "(cached) " >&6
7344 else
7345   lt_cv_ld_exported_symbols_list=no
7346       save_LDFLAGS=$LDFLAGS
7347       echo "_main" > conftest.sym
7348       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7349       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7350 /* end confdefs.h.  */
7351
7352 int
7353 main ()
7354 {
7355
7356   ;
7357   return 0;
7358 }
7359 _ACEOF
7360 if ac_fn_c_try_link "$LINENO"; then :
7361   lt_cv_ld_exported_symbols_list=yes
7362 else
7363   lt_cv_ld_exported_symbols_list=no
7364 fi
7365 rm -f core conftest.err conftest.$ac_objext \
7366     conftest$ac_exeext conftest.$ac_ext
7367         LDFLAGS="$save_LDFLAGS"
7368     
7369 fi
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7371 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7372
7373     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7374 $as_echo_n "checking for -force_load linker flag... " >&6; }
7375 if ${lt_cv_ld_force_load+:} false; then :
7376   $as_echo_n "(cached) " >&6
7377 else
7378   lt_cv_ld_force_load=no
7379       cat > conftest.c << _LT_EOF
7380 int forced_loaded() { return 2;}
7381 _LT_EOF
7382       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7383       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7384       echo "$AR cru libconftest.a conftest.o" >&5
7385       $AR cru libconftest.a conftest.o 2>&5
7386       echo "$RANLIB libconftest.a" >&5
7387       $RANLIB libconftest.a 2>&5
7388       cat > conftest.c << _LT_EOF
7389 int main() { return 0;}
7390 _LT_EOF
7391       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7392       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7393       _lt_result=$?
7394       if test -s conftest.err && $GREP force_load conftest.err; then
7395         cat conftest.err >&5
7396       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7397         lt_cv_ld_force_load=yes
7398       else
7399         cat conftest.err >&5
7400       fi
7401         rm -f conftest.err libconftest.a conftest conftest.c
7402         rm -rf conftest.dSYM
7403     
7404 fi
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7406 $as_echo "$lt_cv_ld_force_load" >&6; }
7407     case $host_os in
7408     rhapsody* | darwin1.[012])
7409       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7410     darwin1.*)
7411       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7412     darwin*) # darwin 5.x on
7413       # if running on 10.5 or later, the deployment target defaults
7414       # to the OS version, if on x86, and 10.4, the deployment
7415       # target defaults to 10.4. Don't you love it?
7416       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7417         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7418           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7419         10.[012]*)
7420           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7421         10.*)
7422           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7423       esac
7424     ;;
7425   esac
7426     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7427       _lt_dar_single_mod='$single_module'
7428     fi
7429     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7430       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7431     else
7432       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7433     fi
7434     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7435       _lt_dsymutil='~$DSYMUTIL $lib || :'
7436     else
7437       _lt_dsymutil=
7438     fi
7439     ;;
7440   esac
7441
7442 for ac_header in dlfcn.h
7443 do :
7444   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7445 "
7446 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7447   cat >>confdefs.h <<_ACEOF
7448 @%:@define HAVE_DLFCN_H 1
7449 _ACEOF
7450  
7451 fi
7452
7453 done
7454
7455
7456
7457
7458
7459 # Set options
7460
7461
7462
7463         enable_dlopen=no
7464   
7465
7466   enable_win32_dll=no
7467   
7468
7469             @%:@ Check whether --enable-shared was given.
7470 if test "${enable_shared+set}" = set; then :
7471   enableval=$enable_shared; p=${PACKAGE-default}
7472     case $enableval in
7473     yes) enable_shared=yes ;;
7474     no) enable_shared=no ;;
7475     *)
7476       enable_shared=no
7477       # Look at the argument we got.  We use all the common list separators.
7478       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7479       for pkg in $enableval; do
7480         IFS="$lt_save_ifs"
7481         if test "X$pkg" = "X$p"; then
7482           enable_shared=yes
7483         fi
7484       done
7485       IFS="$lt_save_ifs"
7486       ;;
7487     esac
7488 else
7489   enable_shared=yes
7490 fi
7491
7492
7493     
7494     
7495     
7496     
7497
7498
7499
7500   @%:@ Check whether --enable-static was given.
7501 if test "${enable_static+set}" = set; then :
7502   enableval=$enable_static; p=${PACKAGE-default}
7503     case $enableval in
7504     yes) enable_static=yes ;;
7505     no) enable_static=no ;;
7506     *)
7507      enable_static=no
7508       # Look at the argument we got.  We use all the common list separators.
7509       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7510       for pkg in $enableval; do
7511         IFS="$lt_save_ifs"
7512         if test "X$pkg" = "X$p"; then
7513           enable_static=yes
7514         fi
7515       done
7516       IFS="$lt_save_ifs"
7517       ;;
7518     esac
7519 else
7520   enable_static=yes
7521 fi
7522
7523
7524     
7525     
7526     
7527     
7528
7529
7530
7531   
7532 @%:@ Check whether --with-pic was given.
7533 if test "${with_pic+set}" = set; then :
7534   withval=$with_pic; lt_p=${PACKAGE-default}
7535     case $withval in
7536     yes|no) pic_mode=$withval ;;
7537     *)
7538       pic_mode=default
7539       # Look at the argument we got.  We use all the common list separators.
7540       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7541       for lt_pkg in $withval; do
7542         IFS="$lt_save_ifs"
7543         if test "X$lt_pkg" = "X$lt_p"; then
7544           pic_mode=yes
7545         fi
7546       done
7547       IFS="$lt_save_ifs"
7548       ;;
7549     esac
7550 else
7551   pic_mode=default
7552 fi
7553
7554
7555 test -z "$pic_mode" && pic_mode=default
7556
7557
7558     
7559     
7560     
7561
7562
7563   @%:@ Check whether --enable-fast-install was given.
7564 if test "${enable_fast_install+set}" = set; then :
7565   enableval=$enable_fast_install; p=${PACKAGE-default}
7566     case $enableval in
7567     yes) enable_fast_install=yes ;;
7568     no) enable_fast_install=no ;;
7569     *)
7570       enable_fast_install=no
7571       # Look at the argument we got.  We use all the common list separators.
7572       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7573       for pkg in $enableval; do
7574         IFS="$lt_save_ifs"
7575         if test "X$pkg" = "X$p"; then
7576           enable_fast_install=yes
7577         fi
7578       done
7579       IFS="$lt_save_ifs"
7580       ;;
7581     esac
7582 else
7583   enable_fast_install=yes
7584 fi
7585
7586
7587
7588     
7589     
7590     
7591
7592
7593   
7594
7595
7596 # This can be used to rebuild libtool when needed
7597 LIBTOOL_DEPS="$ltmain"
7598
7599 # Always use our own libtool.
7600 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7601
7602
7603
7604     
7605     
7606     
7607
7608     
7609     
7610     
7611
7612     
7613     
7614     
7615
7616     
7617     
7618     
7619
7620     
7621     
7622     
7623
7624     
7625     
7626     
7627
7628     
7629     
7630     
7631 test -z "$LN_S" && LN_S="ln -s"
7632
7633     
7634     
7635     
7636
7637     
7638     
7639     
7640
7641     
7642     
7643     
7644
7645
7646 if test -n "${ZSH_VERSION+set}" ; then
7647    setopt NO_GLOB_SUBST
7648 fi
7649
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7651 $as_echo_n "checking for objdir... " >&6; }
7652 if ${lt_cv_objdir+:} false; then :
7653   $as_echo_n "(cached) " >&6
7654 else
7655   rm -f .libs 2>/dev/null
7656 mkdir .libs 2>/dev/null
7657 if test -d .libs; then
7658   lt_cv_objdir=.libs
7659 else
7660   # MS-DOS does not allow filenames that begin with a dot.
7661   lt_cv_objdir=_libs
7662 fi
7663 rmdir .libs 2>/dev/null
7664 fi
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7666 $as_echo "$lt_cv_objdir" >&6; }
7667 objdir=$lt_cv_objdir
7668
7669     
7670     
7671     
7672
7673 cat >>confdefs.h <<_ACEOF
7674 @%:@define LT_OBJDIR "$lt_cv_objdir/"
7675 _ACEOF
7676
7677
7678
7679
7680 case $host_os in
7681 aix3*)
7682   # AIX sometimes has problems with the GCC collect2 program.  For some
7683   # reason, if we set the COLLECT_NAMES environment variable, the problems
7684   # vanish in a puff of smoke.
7685   if test "X${COLLECT_NAMES+set}" != Xset; then
7686     COLLECT_NAMES=
7687     export COLLECT_NAMES
7688   fi
7689   ;;
7690 esac
7691
7692 # Global variables:
7693 ofile=libtool
7694 can_build_shared=yes
7695
7696 # All known linkers require a `.a' archive for static linking (except MSVC,
7697 # which needs '.lib').
7698 libext=a
7699
7700 with_gnu_ld="$lt_cv_prog_gnu_ld"
7701
7702 old_CC="$CC"
7703 old_CFLAGS="$CFLAGS"
7704
7705 # Set sane defaults for various variables
7706 test -z "$CC" && CC=cc
7707 test -z "$LTCC" && LTCC=$CC
7708 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7709 test -z "$LD" && LD=ld
7710 test -z "$ac_objext" && ac_objext=o
7711
7712 for cc_temp in $compiler""; do
7713   case $cc_temp in
7714     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7715     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7716     \-*) ;;
7717     *) break;;
7718   esac
7719 done
7720 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7721
7722
7723 # Only perform the check for file, if the check method requires it
7724 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7725 case $deplibs_check_method in
7726 file_magic*)
7727   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7728     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7729 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7730 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7731   $as_echo_n "(cached) " >&6
7732 else
7733   case $MAGIC_CMD in
7734 [\\/*] |  ?:[\\/]*)
7735   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7736   ;;
7737 *)
7738   lt_save_MAGIC_CMD="$MAGIC_CMD"
7739   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7740   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7741   for ac_dir in $ac_dummy; do
7742     IFS="$lt_save_ifs"
7743     test -z "$ac_dir" && ac_dir=.
7744     if test -f $ac_dir/${ac_tool_prefix}file; then
7745       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7746       if test -n "$file_magic_test_file"; then
7747         case $deplibs_check_method in
7748         "file_magic "*)
7749           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7750           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7751           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7752             $EGREP "$file_magic_regex" > /dev/null; then
7753             :
7754           else
7755             cat <<_LT_EOF 1>&2
7756
7757 *** Warning: the command libtool uses to detect shared libraries,
7758 *** $file_magic_cmd, produces output that libtool cannot recognize.
7759 *** The result is that libtool may fail to recognize shared libraries
7760 *** as such.  This will affect the creation of libtool libraries that
7761 *** depend on shared libraries, but programs linked with such libtool
7762 *** libraries will work regardless of this problem.  Nevertheless, you
7763 *** may want to report the problem to your system manager and/or to
7764 *** bug-libtool@gnu.org
7765
7766 _LT_EOF
7767           fi ;;
7768         esac
7769       fi
7770       break
7771     fi
7772   done
7773   IFS="$lt_save_ifs"
7774   MAGIC_CMD="$lt_save_MAGIC_CMD"
7775   ;;
7776 esac
7777 fi
7778
7779 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7780 if test -n "$MAGIC_CMD"; then
7781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7782 $as_echo "$MAGIC_CMD" >&6; }
7783 else
7784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7785 $as_echo "no" >&6; }
7786 fi
7787
7788     
7789     
7790     
7791
7792 if test -z "$lt_cv_path_MAGIC_CMD"; then
7793   if test -n "$ac_tool_prefix"; then
7794     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7795 $as_echo_n "checking for file... " >&6; }
7796 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7797   $as_echo_n "(cached) " >&6
7798 else
7799   case $MAGIC_CMD in
7800 [\\/*] |  ?:[\\/]*)
7801   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7802   ;;
7803 *)
7804   lt_save_MAGIC_CMD="$MAGIC_CMD"
7805   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7806   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7807   for ac_dir in $ac_dummy; do
7808     IFS="$lt_save_ifs"
7809     test -z "$ac_dir" && ac_dir=.
7810     if test -f $ac_dir/file; then
7811       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7812       if test -n "$file_magic_test_file"; then
7813         case $deplibs_check_method in
7814         "file_magic "*)
7815           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7816           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7817           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7818             $EGREP "$file_magic_regex" > /dev/null; then
7819             :
7820           else
7821             cat <<_LT_EOF 1>&2
7822
7823 *** Warning: the command libtool uses to detect shared libraries,
7824 *** $file_magic_cmd, produces output that libtool cannot recognize.
7825 *** The result is that libtool may fail to recognize shared libraries
7826 *** as such.  This will affect the creation of libtool libraries that
7827 *** depend on shared libraries, but programs linked with such libtool
7828 *** libraries will work regardless of this problem.  Nevertheless, you
7829 *** may want to report the problem to your system manager and/or to
7830 *** bug-libtool@gnu.org
7831
7832 _LT_EOF
7833           fi ;;
7834         esac
7835       fi
7836       break
7837     fi
7838   done
7839   IFS="$lt_save_ifs"
7840   MAGIC_CMD="$lt_save_MAGIC_CMD"
7841   ;;
7842 esac
7843 fi
7844
7845 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7846 if test -n "$MAGIC_CMD"; then
7847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7848 $as_echo "$MAGIC_CMD" >&6; }
7849 else
7850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7851 $as_echo "no" >&6; }
7852 fi
7853
7854
7855   else
7856     MAGIC_CMD=:
7857   fi
7858 fi
7859
7860   fi
7861   ;;
7862 esac
7863
7864 # Use C for the default configuration in the libtool script
7865
7866 lt_save_CC="$CC"
7867 ac_ext=c
7868 ac_cpp='$CPP $CPPFLAGS'
7869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7872
7873
7874 # Source file extension for C test sources.
7875 ac_ext=c
7876
7877 # Object file extension for compiled C test sources.
7878 objext=o
7879 objext=$objext
7880
7881 # Code to be used in simple compile tests
7882 lt_simple_compile_test_code="int some_variable = 0;"
7883
7884 # Code to be used in simple link tests
7885 lt_simple_link_test_code='int main(){return(0);}'
7886
7887
7888
7889
7890
7891
7892
7893 # If no C compiler was specified, use CC.
7894 LTCC=${LTCC-"$CC"}
7895
7896 # If no C compiler flags were specified, use CFLAGS.
7897 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7898
7899 # Allow CC to be a program name with arguments.
7900 compiler=$CC
7901
7902 # Save the default compiler, since it gets overwritten when the other
7903 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7904 compiler_DEFAULT=$CC
7905
7906 # save warnings/boilerplate of simple test code
7907 ac_outfile=conftest.$ac_objext
7908 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7909 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7910 _lt_compiler_boilerplate=`cat conftest.err`
7911 $RM conftest*
7912
7913 ac_outfile=conftest.$ac_objext
7914 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7915 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7916 _lt_linker_boilerplate=`cat conftest.err`
7917 $RM -r conftest*
7918
7919
7920 ## CAVEAT EMPTOR:
7921 ## There is no encapsulation within the following macros, do not change
7922 ## the running order or otherwise move them around unless you know exactly
7923 ## what you are doing...
7924 if test -n "$compiler"; then
7925   
7926 lt_prog_compiler_no_builtin_flag=
7927
7928 if test "$GCC" = yes; then
7929   case $cc_basename in
7930   nvcc*)
7931     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7932   *)
7933     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7934   esac
7935
7936   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7937 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7938 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7939   $as_echo_n "(cached) " >&6
7940 else
7941   lt_cv_prog_compiler_rtti_exceptions=no
7942    ac_outfile=conftest.$ac_objext
7943    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7944    lt_compiler_flag="-fno-rtti -fno-exceptions"
7945    # Insert the option either (1) after the last *FLAGS variable, or
7946    # (2) before a word containing "conftest.", or (3) at the end.
7947    # Note that $ac_compile itself does not contain backslashes and begins
7948    # with a dollar sign (not a hyphen), so the echo should work correctly.
7949    # The option is referenced via a variable to avoid confusing sed.
7950    lt_compile=`echo "$ac_compile" | $SED \
7951    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7952    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7953    -e 's:$: $lt_compiler_flag:'`
7954    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7955    (eval "$lt_compile" 2>conftest.err)
7956    ac_status=$?
7957    cat conftest.err >&5
7958    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959    if (exit $ac_status) && test -s "$ac_outfile"; then
7960      # The compiler can only warn and ignore the option if not recognized
7961      # So say no if there are warnings other than the usual output.
7962      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7963      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7964      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7965        lt_cv_prog_compiler_rtti_exceptions=yes
7966      fi
7967    fi
7968    $RM conftest*
7969
7970 fi
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7972 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7973
7974 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7975     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7976 else
7977     :
7978 fi
7979
7980 fi
7981
7982     
7983     
7984     
7985
7986
7987   lt_prog_compiler_wl=
7988 lt_prog_compiler_pic=
7989 lt_prog_compiler_static=
7990
7991
7992   if test "$GCC" = yes; then
7993     lt_prog_compiler_wl='-Wl,'
7994     lt_prog_compiler_static='-static'
7995
7996     case $host_os in
7997       aix*)
7998       # All AIX code is PIC.
7999       if test "$host_cpu" = ia64; then
8000         # AIX 5 now supports IA64 processor
8001         lt_prog_compiler_static='-Bstatic'
8002       fi
8003       ;;
8004
8005     amigaos*)
8006       case $host_cpu in
8007       powerpc)
8008             # see comment about AmigaOS4 .so support
8009             lt_prog_compiler_pic='-fPIC'
8010         ;;
8011       m68k)
8012             # FIXME: we need at least 68020 code to build shared libraries, but
8013             # adding the `-m68020' flag to GCC prevents building anything better,
8014             # like `-m68040'.
8015             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8016         ;;
8017       esac
8018       ;;
8019
8020     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8021       # PIC is the default for these OSes.
8022       ;;
8023
8024     mingw* | cygwin* | pw32* | os2* | cegcc*)
8025       # This hack is so that the source file can tell whether it is being
8026       # built for inclusion in a dll (and should export symbols for example).
8027       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8028       # (--disable-auto-import) libraries
8029       lt_prog_compiler_pic='-DDLL_EXPORT'
8030       ;;
8031
8032     darwin* | rhapsody*)
8033       # PIC is the default on this platform
8034       # Common symbols not allowed in MH_DYLIB files
8035       lt_prog_compiler_pic='-fno-common'
8036       ;;
8037
8038     haiku*)
8039       # PIC is the default for Haiku.
8040       # The "-static" flag exists, but is broken.
8041       lt_prog_compiler_static=
8042       ;;
8043
8044     hpux*)
8045       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8046       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8047       # sets the default TLS model and affects inlining.
8048       case $host_cpu in
8049       hppa*64*)
8050         # +Z the default
8051         ;;
8052       *)
8053         lt_prog_compiler_pic='-fPIC'
8054         ;;
8055       esac
8056       ;;
8057
8058     interix[3-9]*)
8059       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8060       # Instead, we relocate shared libraries at runtime.
8061       ;;
8062
8063     msdosdjgpp*)
8064       # Just because we use GCC doesn't mean we suddenly get shared libraries
8065       # on systems that don't support them.
8066       lt_prog_compiler_can_build_shared=no
8067       enable_shared=no
8068       ;;
8069
8070     *nto* | *qnx*)
8071       # QNX uses GNU C++, but need to define -shared option too, otherwise
8072       # it will coredump.
8073       lt_prog_compiler_pic='-fPIC -shared'
8074       ;;
8075
8076     sysv4*MP*)
8077       if test -d /usr/nec; then
8078         lt_prog_compiler_pic=-Kconform_pic
8079       fi
8080       ;;
8081
8082     *)
8083       lt_prog_compiler_pic='-fPIC'
8084       ;;
8085     esac
8086
8087     case $cc_basename in
8088     nvcc*) # Cuda Compiler Driver 2.2
8089       lt_prog_compiler_wl='-Xlinker '
8090       if test -n "$lt_prog_compiler_pic"; then
8091         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8092       fi
8093       ;;
8094     esac
8095   else
8096     # PORTME Check for flag to pass linker flags through the system compiler.
8097     case $host_os in
8098     aix*)
8099       lt_prog_compiler_wl='-Wl,'
8100       if test "$host_cpu" = ia64; then
8101         # AIX 5 now supports IA64 processor
8102         lt_prog_compiler_static='-Bstatic'
8103       else
8104         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8105       fi
8106       ;;
8107
8108     mingw* | cygwin* | pw32* | os2* | cegcc*)
8109       # This hack is so that the source file can tell whether it is being
8110       # built for inclusion in a dll (and should export symbols for example).
8111       lt_prog_compiler_pic='-DDLL_EXPORT'
8112       ;;
8113
8114     hpux9* | hpux10* | hpux11*)
8115       lt_prog_compiler_wl='-Wl,'
8116       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8117       # not for PA HP-UX.
8118       case $host_cpu in
8119       hppa*64*|ia64*)
8120         # +Z the default
8121         ;;
8122       *)
8123         lt_prog_compiler_pic='+Z'
8124         ;;
8125       esac
8126       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8127       lt_prog_compiler_static='${wl}-a ${wl}archive'
8128       ;;
8129
8130     irix5* | irix6* | nonstopux*)
8131       lt_prog_compiler_wl='-Wl,'
8132       # PIC (with -KPIC) is the default.
8133       lt_prog_compiler_static='-non_shared'
8134       ;;
8135
8136     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8137       case $cc_basename in
8138       # old Intel for x86_64 which still supported -KPIC.
8139       ecc*)
8140         lt_prog_compiler_wl='-Wl,'
8141         lt_prog_compiler_pic='-KPIC'
8142         lt_prog_compiler_static='-static'
8143         ;;
8144       # icc used to be incompatible with GCC.
8145       # ICC 10 doesn't accept -KPIC any more.
8146       icc* | ifort*)
8147         lt_prog_compiler_wl='-Wl,'
8148         lt_prog_compiler_pic='-fPIC'
8149         lt_prog_compiler_static='-static'
8150         ;;
8151       # Lahey Fortran 8.1.
8152       lf95*)
8153         lt_prog_compiler_wl='-Wl,'
8154         lt_prog_compiler_pic='--shared'
8155         lt_prog_compiler_static='--static'
8156         ;;
8157       nagfor*)
8158         # NAG Fortran compiler
8159         lt_prog_compiler_wl='-Wl,-Wl,,'
8160         lt_prog_compiler_pic='-PIC'
8161         lt_prog_compiler_static='-Bstatic'
8162         ;;
8163       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8164         # Portland Group compilers (*not* the Pentium gcc compiler,
8165         # which looks to be a dead project)
8166         lt_prog_compiler_wl='-Wl,'
8167         lt_prog_compiler_pic='-fpic'
8168         lt_prog_compiler_static='-Bstatic'
8169         ;;
8170       ccc*)
8171         lt_prog_compiler_wl='-Wl,'
8172         # All Alpha code is PIC.
8173         lt_prog_compiler_static='-non_shared'
8174         ;;
8175       xl* | bgxl* | bgf* | mpixl*)
8176         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8177         lt_prog_compiler_wl='-Wl,'
8178         lt_prog_compiler_pic='-qpic'
8179         lt_prog_compiler_static='-qstaticlink'
8180         ;;
8181       *)
8182         case `$CC -V 2>&1 | sed 5q` in
8183         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8184           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8185           lt_prog_compiler_pic='-KPIC'
8186           lt_prog_compiler_static='-Bstatic'
8187           lt_prog_compiler_wl=''
8188           ;;
8189         *Sun\ F* | *Sun*Fortran*)
8190           lt_prog_compiler_pic='-KPIC'
8191           lt_prog_compiler_static='-Bstatic'
8192           lt_prog_compiler_wl='-Qoption ld '
8193           ;;
8194         *Sun\ C*)
8195           # Sun C 5.9
8196           lt_prog_compiler_pic='-KPIC'
8197           lt_prog_compiler_static='-Bstatic'
8198           lt_prog_compiler_wl='-Wl,'
8199           ;;
8200         *Intel*\ [CF]*Compiler*)
8201           lt_prog_compiler_wl='-Wl,'
8202           lt_prog_compiler_pic='-fPIC'
8203           lt_prog_compiler_static='-static'
8204           ;;
8205         *Portland\ Group*)
8206           lt_prog_compiler_wl='-Wl,'
8207           lt_prog_compiler_pic='-fpic'
8208           lt_prog_compiler_static='-Bstatic'
8209           ;;
8210         esac
8211         ;;
8212       esac
8213       ;;
8214
8215     newsos6)
8216       lt_prog_compiler_pic='-KPIC'
8217       lt_prog_compiler_static='-Bstatic'
8218       ;;
8219
8220     *nto* | *qnx*)
8221       # QNX uses GNU C++, but need to define -shared option too, otherwise
8222       # it will coredump.
8223       lt_prog_compiler_pic='-fPIC -shared'
8224       ;;
8225
8226     osf3* | osf4* | osf5*)
8227       lt_prog_compiler_wl='-Wl,'
8228       # All OSF/1 code is PIC.
8229       lt_prog_compiler_static='-non_shared'
8230       ;;
8231
8232     rdos*)
8233       lt_prog_compiler_static='-non_shared'
8234       ;;
8235
8236     solaris*)
8237       lt_prog_compiler_pic='-KPIC'
8238       lt_prog_compiler_static='-Bstatic'
8239       case $cc_basename in
8240       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8241         lt_prog_compiler_wl='-Qoption ld ';;
8242       *)
8243         lt_prog_compiler_wl='-Wl,';;
8244       esac
8245       ;;
8246
8247     sunos4*)
8248       lt_prog_compiler_wl='-Qoption ld '
8249       lt_prog_compiler_pic='-PIC'
8250       lt_prog_compiler_static='-Bstatic'
8251       ;;
8252
8253     sysv4 | sysv4.2uw2* | sysv4.3*)
8254       lt_prog_compiler_wl='-Wl,'
8255       lt_prog_compiler_pic='-KPIC'
8256       lt_prog_compiler_static='-Bstatic'
8257       ;;
8258
8259     sysv4*MP*)
8260       if test -d /usr/nec ;then
8261         lt_prog_compiler_pic='-Kconform_pic'
8262         lt_prog_compiler_static='-Bstatic'
8263       fi
8264       ;;
8265
8266     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8267       lt_prog_compiler_wl='-Wl,'
8268       lt_prog_compiler_pic='-KPIC'
8269       lt_prog_compiler_static='-Bstatic'
8270       ;;
8271
8272     unicos*)
8273       lt_prog_compiler_wl='-Wl,'
8274       lt_prog_compiler_can_build_shared=no
8275       ;;
8276
8277     uts4*)
8278       lt_prog_compiler_pic='-pic'
8279       lt_prog_compiler_static='-Bstatic'
8280       ;;
8281
8282     *)
8283       lt_prog_compiler_can_build_shared=no
8284       ;;
8285     esac
8286   fi
8287
8288 case $host_os in
8289   # For platforms which do not support PIC, -DPIC is meaningless:
8290   *djgpp*)
8291     lt_prog_compiler_pic=
8292     ;;
8293   *)
8294     lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC"
8295     ;;
8296 esac
8297
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8299 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8300 if ${lt_cv_prog_compiler_pic+:} false; then :
8301   $as_echo_n "(cached) " >&6
8302 else
8303   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8304 fi
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8306 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8307 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8308
8309 #
8310 # Check to make sure the PIC flag actually works.
8311 #
8312 if test -n "$lt_prog_compiler_pic"; then
8313   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8314 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8315 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8316   $as_echo_n "(cached) " >&6
8317 else
8318   lt_cv_prog_compiler_pic_works=no
8319    ac_outfile=conftest.$ac_objext
8320    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8321    lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC"
8322    # Insert the option either (1) after the last *FLAGS variable, or
8323    # (2) before a word containing "conftest.", or (3) at the end.
8324    # Note that $ac_compile itself does not contain backslashes and begins
8325    # with a dollar sign (not a hyphen), so the echo should work correctly.
8326    # The option is referenced via a variable to avoid confusing sed.
8327    lt_compile=`echo "$ac_compile" | $SED \
8328    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8329    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8330    -e 's:$: $lt_compiler_flag:'`
8331    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8332    (eval "$lt_compile" 2>conftest.err)
8333    ac_status=$?
8334    cat conftest.err >&5
8335    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336    if (exit $ac_status) && test -s "$ac_outfile"; then
8337      # The compiler can only warn and ignore the option if not recognized
8338      # So say no if there are warnings other than the usual output.
8339      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8340      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8341      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8342        lt_cv_prog_compiler_pic_works=yes
8343      fi
8344    fi
8345    $RM conftest*
8346
8347 fi
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8349 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8350
8351 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8352     case $lt_prog_compiler_pic in
8353      "" | " "*) ;;
8354      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8355      esac
8356 else
8357     lt_prog_compiler_pic=
8358      lt_prog_compiler_can_build_shared=no
8359 fi
8360
8361 fi
8362
8363     
8364     
8365     
8366
8367
8368
8369     
8370     
8371     
8372
8373 #
8374 # Check to make sure the static flag actually works.
8375 #
8376 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8378 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8379 if ${lt_cv_prog_compiler_static_works+:} false; then :
8380   $as_echo_n "(cached) " >&6
8381 else
8382   lt_cv_prog_compiler_static_works=no
8383    save_LDFLAGS="$LDFLAGS"
8384    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8385    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8386    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8387      # The linker can only warn and ignore the option if not recognized
8388      # So say no if there are warnings
8389      if test -s conftest.err; then
8390        # Append any errors to the config.log.
8391        cat conftest.err 1>&5
8392        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8393        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8394        if diff conftest.exp conftest.er2 >/dev/null; then
8395          lt_cv_prog_compiler_static_works=yes
8396        fi
8397      else
8398        lt_cv_prog_compiler_static_works=yes
8399      fi
8400    fi
8401    $RM -r conftest*
8402    LDFLAGS="$save_LDFLAGS"
8403
8404 fi
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8406 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8407
8408 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8409     :
8410 else
8411     lt_prog_compiler_static=
8412 fi
8413
8414
8415     
8416     
8417     
8418
8419
8420   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8421 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8422 if ${lt_cv_prog_compiler_c_o+:} false; then :
8423   $as_echo_n "(cached) " >&6
8424 else
8425   lt_cv_prog_compiler_c_o=no
8426    $RM -r conftest 2>/dev/null
8427    mkdir conftest
8428    cd conftest
8429    mkdir out
8430    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8431
8432    lt_compiler_flag="-o out/conftest2.$ac_objext"
8433    # Insert the option either (1) after the last *FLAGS variable, or
8434    # (2) before a word containing "conftest.", or (3) at the end.
8435    # Note that $ac_compile itself does not contain backslashes and begins
8436    # with a dollar sign (not a hyphen), so the echo should work correctly.
8437    lt_compile=`echo "$ac_compile" | $SED \
8438    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8439    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8440    -e 's:$: $lt_compiler_flag:'`
8441    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8442    (eval "$lt_compile" 2>out/conftest.err)
8443    ac_status=$?
8444    cat out/conftest.err >&5
8445    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8447    then
8448      # The compiler can only warn and ignore the option if not recognized
8449      # So say no if there are warnings
8450      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8451      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8452      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8453        lt_cv_prog_compiler_c_o=yes
8454      fi
8455    fi
8456    chmod u+w . 2>&5
8457    $RM conftest*
8458    # SGI C++ compiler will create directory out/ii_files/ for
8459    # template instantiation
8460    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8461    $RM out/* && rmdir out
8462    cd ..
8463    $RM -r conftest
8464    $RM conftest*
8465
8466 fi
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8468 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8469
8470     
8471     
8472     
8473
8474
8475   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8476 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8477 if ${lt_cv_prog_compiler_c_o+:} false; then :
8478   $as_echo_n "(cached) " >&6
8479 else
8480   lt_cv_prog_compiler_c_o=no
8481    $RM -r conftest 2>/dev/null
8482    mkdir conftest
8483    cd conftest
8484    mkdir out
8485    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8486
8487    lt_compiler_flag="-o out/conftest2.$ac_objext"
8488    # Insert the option either (1) after the last *FLAGS variable, or
8489    # (2) before a word containing "conftest.", or (3) at the end.
8490    # Note that $ac_compile itself does not contain backslashes and begins
8491    # with a dollar sign (not a hyphen), so the echo should work correctly.
8492    lt_compile=`echo "$ac_compile" | $SED \
8493    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8494    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8495    -e 's:$: $lt_compiler_flag:'`
8496    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8497    (eval "$lt_compile" 2>out/conftest.err)
8498    ac_status=$?
8499    cat out/conftest.err >&5
8500    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8502    then
8503      # The compiler can only warn and ignore the option if not recognized
8504      # So say no if there are warnings
8505      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8506      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8507      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8508        lt_cv_prog_compiler_c_o=yes
8509      fi
8510    fi
8511    chmod u+w . 2>&5
8512    $RM conftest*
8513    # SGI C++ compiler will create directory out/ii_files/ for
8514    # template instantiation
8515    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8516    $RM out/* && rmdir out
8517    cd ..
8518    $RM -r conftest
8519    $RM conftest*
8520
8521 fi
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8523 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8524
8525
8526
8527
8528 hard_links="nottested"
8529 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8530   # do not overwrite the value of need_locks provided by the user
8531   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8532 $as_echo_n "checking if we can lock with hard links... " >&6; }
8533   hard_links=yes
8534   $RM conftest*
8535   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8536   touch conftest.a
8537   ln conftest.a conftest.b 2>&5 || hard_links=no
8538   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8540 $as_echo "$hard_links" >&6; }
8541   if test "$hard_links" = no; then
8542     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8543 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8544     need_locks=warn
8545   fi
8546 else
8547   need_locks=no
8548 fi
8549
8550     
8551     
8552     
8553
8554
8555   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8556 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8557
8558   runpath_var=
8559   allow_undefined_flag=
8560   always_export_symbols=no
8561   archive_cmds=
8562   archive_expsym_cmds=
8563   compiler_needs_object=no
8564   enable_shared_with_static_runtimes=no
8565   export_dynamic_flag_spec=
8566   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8567   hardcode_automatic=no
8568   hardcode_direct=no
8569   hardcode_direct_absolute=no
8570   hardcode_libdir_flag_spec=
8571   hardcode_libdir_separator=
8572   hardcode_minus_L=no
8573   hardcode_shlibpath_var=unsupported
8574   inherit_rpath=no
8575   link_all_deplibs=unknown
8576   module_cmds=
8577   module_expsym_cmds=
8578   old_archive_from_new_cmds=
8579   old_archive_from_expsyms_cmds=
8580   thread_safe_flag_spec=
8581   whole_archive_flag_spec=
8582   # include_expsyms should be a list of space-separated symbols to be *always*
8583   # included in the symbol list
8584   include_expsyms=
8585   # exclude_expsyms can be an extended regexp of symbols to exclude
8586   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8587   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8588   # as well as any symbol that contains `d'.
8589   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8590   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8591   # platforms (ab)use it in PIC code, but their linkers get confused if
8592   # the symbol is explicitly referenced.  Since portable code cannot
8593   # rely on this symbol name, it's probably fine to never include it in
8594   # preloaded symbol tables.
8595   # Exclude shared library initialization/finalization symbols.
8596   extract_expsyms_cmds=
8597
8598   case $host_os in
8599   cygwin* | mingw* | pw32* | cegcc*)
8600     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8601     # When not using gcc, we currently assume that we are using
8602     # Microsoft Visual C++.
8603     if test "$GCC" != yes; then
8604       with_gnu_ld=no
8605     fi
8606     ;;
8607   interix*)
8608     # we just hope/assume this is gcc and not c89 (= MSVC++)
8609     with_gnu_ld=yes
8610     ;;
8611   openbsd*)
8612     with_gnu_ld=no
8613     ;;
8614   esac
8615
8616   ld_shlibs=yes
8617
8618   # On some targets, GNU ld is compatible enough with the native linker
8619   # that we're better off using the native interface for both.
8620   lt_use_gnu_ld_interface=no
8621   if test "$with_gnu_ld" = yes; then
8622     case $host_os in
8623       aix*)
8624         # The AIX port of GNU ld has always aspired to compatibility
8625         # with the native linker.  However, as the warning in the GNU ld
8626         # block says, versions before 2.19.5* couldn't really create working
8627         # shared libraries, regardless of the interface used.
8628         case `$LD -v 2>&1` in
8629           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8630           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8631           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8632           *)
8633             lt_use_gnu_ld_interface=yes
8634             ;;
8635         esac
8636         ;;
8637       *)
8638         lt_use_gnu_ld_interface=yes
8639         ;;
8640     esac
8641   fi
8642
8643   if test "$lt_use_gnu_ld_interface" = yes; then
8644     # If archive_cmds runs LD, not CC, wlarc should be empty
8645     wlarc='${wl}'
8646
8647     # Set some defaults for GNU ld with shared library support. These
8648     # are reset later if shared libraries are not supported. Putting them
8649     # here allows them to be overridden if necessary.
8650     runpath_var=LD_RUN_PATH
8651     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8652     export_dynamic_flag_spec='${wl}--export-dynamic'
8653     # ancient GNU ld didn't support --whole-archive et. al.
8654     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8655       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8656     else
8657       whole_archive_flag_spec=
8658     fi
8659     supports_anon_versioning=no
8660     case `$LD -v 2>&1` in
8661       *GNU\ gold*) supports_anon_versioning=yes ;;
8662       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8663       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8664       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8665       *\ 2.11.*) ;; # other 2.11 versions
8666       *) supports_anon_versioning=yes ;;
8667     esac
8668
8669     # See if GNU ld supports shared libraries.
8670     case $host_os in
8671     aix[3-9]*)
8672       # On AIX/PPC, the GNU linker is very broken
8673       if test "$host_cpu" != ia64; then
8674         ld_shlibs=no
8675         cat <<_LT_EOF 1>&2
8676
8677 *** Warning: the GNU linker, at least up to release 2.19, is reported
8678 *** to be unable to reliably create shared libraries on AIX.
8679 *** Therefore, libtool is disabling shared libraries support.  If you
8680 *** really care for shared libraries, you may want to install binutils
8681 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8682 *** You will then need to restart the configuration process.
8683
8684 _LT_EOF
8685       fi
8686       ;;
8687
8688     amigaos*)
8689       case $host_cpu in
8690       powerpc)
8691             # see comment about AmigaOS4 .so support
8692             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8693             archive_expsym_cmds=''
8694         ;;
8695       m68k)
8696             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)'
8697             hardcode_libdir_flag_spec='-L$libdir'
8698             hardcode_minus_L=yes
8699         ;;
8700       esac
8701       ;;
8702
8703     beos*)
8704       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8705         allow_undefined_flag=unsupported
8706         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8707         # support --undefined.  This deserves some investigation.  FIXME
8708         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8709       else
8710         ld_shlibs=no
8711       fi
8712       ;;
8713
8714     cygwin* | mingw* | pw32* | cegcc*)
8715       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8716       # as there is no search path for DLLs.
8717       hardcode_libdir_flag_spec='-L$libdir'
8718       export_dynamic_flag_spec='${wl}--export-all-symbols'
8719       allow_undefined_flag=unsupported
8720       always_export_symbols=no
8721       enable_shared_with_static_runtimes=yes
8722       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'
8723       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8724
8725       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8726         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8727         # If the export-symbols file already is a .def file (1st line
8728         # is EXPORTS), use it as is; otherwise, prepend...
8729         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8730           cp $export_symbols $output_objdir/$soname.def;
8731         else
8732           echo EXPORTS > $output_objdir/$soname.def;
8733           cat $export_symbols >> $output_objdir/$soname.def;
8734         fi~
8735         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8736       else
8737         ld_shlibs=no
8738       fi
8739       ;;
8740
8741     haiku*)
8742       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8743       link_all_deplibs=yes
8744       ;;
8745
8746     interix[3-9]*)
8747       hardcode_direct=no
8748       hardcode_shlibpath_var=no
8749       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8750       export_dynamic_flag_spec='${wl}-E'
8751       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8752       # Instead, shared libraries are loaded at an image base (0x10000000 by
8753       # default) and relocated if they conflict, which is a slow very memory
8754       # consuming and fragmenting process.  To avoid this, we pick a random,
8755       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8756       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8757       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8758       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'
8759       ;;
8760
8761     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8762       tmp_diet=no
8763       if test "$host_os" = linux-dietlibc; then
8764         case $cc_basename in
8765           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8766         esac
8767       fi
8768       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8769          && test "$tmp_diet" = no
8770       then
8771         tmp_addflag=' $pic_flag'
8772         tmp_sharedflag='-shared'
8773         case $cc_basename,$host_cpu in
8774         pgcc*)                          # Portland Group C compiler
8775           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'
8776           tmp_addflag=' $pic_flag'
8777           ;;
8778         pgf77* | pgf90* | pgf95* | pgfortran*)
8779                                         # Portland Group f77 and f90 compilers
8780           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'
8781           tmp_addflag=' $pic_flag -Mnomain' ;;
8782         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8783           tmp_addflag=' -i_dynamic' ;;
8784         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8785           tmp_addflag=' -i_dynamic -nofor_main' ;;
8786         ifc* | ifort*)                  # Intel Fortran compiler
8787           tmp_addflag=' -nofor_main' ;;
8788         lf95*)                          # Lahey Fortran 8.1
8789           whole_archive_flag_spec=
8790           tmp_sharedflag='--shared' ;;
8791         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8792           tmp_sharedflag='-qmkshrobj'
8793           tmp_addflag= ;;
8794         nvcc*)  # Cuda Compiler Driver 2.2
8795           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'
8796           compiler_needs_object=yes
8797           ;;
8798         esac
8799         case `$CC -V 2>&1 | sed 5q` in
8800         *Sun\ C*)                       # Sun C 5.9
8801           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'
8802           compiler_needs_object=yes
8803           tmp_sharedflag='-G' ;;
8804         *Sun\ F*)                       # Sun Fortran 8.3
8805           tmp_sharedflag='-G' ;;
8806         esac
8807         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8808
8809         if test "x$supports_anon_versioning" = xyes; then
8810           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8811             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8812             echo "local: *; };" >> $output_objdir/$libname.ver~
8813             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8814         fi
8815
8816         case $cc_basename in
8817         xlf* | bgf* | bgxlf* | mpixlf*)
8818           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8819           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8820           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8821           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8822           if test "x$supports_anon_versioning" = xyes; then
8823             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8824               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8825               echo "local: *; };" >> $output_objdir/$libname.ver~
8826               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8827           fi
8828           ;;
8829         esac
8830       else
8831         ld_shlibs=no
8832       fi
8833       ;;
8834
8835     netbsd*)
8836       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8837         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8838         wlarc=
8839       else
8840         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8841         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8842       fi
8843       ;;
8844
8845     solaris*)
8846       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8847         ld_shlibs=no
8848         cat <<_LT_EOF 1>&2
8849
8850 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8851 *** create shared libraries on Solaris systems.  Therefore, libtool
8852 *** is disabling shared libraries support.  We urge you to upgrade GNU
8853 *** binutils to release 2.9.1 or newer.  Another option is to modify
8854 *** your PATH or compiler configuration so that the native linker is
8855 *** used, and then restart.
8856
8857 _LT_EOF
8858       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8859         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8860         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8861       else
8862         ld_shlibs=no
8863       fi
8864       ;;
8865
8866     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8867       case `$LD -v 2>&1` in
8868         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8869         ld_shlibs=no
8870         cat <<_LT_EOF 1>&2
8871
8872 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8873 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8874 *** is disabling shared libraries support.  We urge you to upgrade GNU
8875 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8876 *** your PATH or compiler configuration so that the native linker is
8877 *** used, and then restart.
8878
8879 _LT_EOF
8880         ;;
8881         *)
8882           # For security reasons, it is highly recommended that you always
8883           # use absolute paths for naming shared libraries, and exclude the
8884           # DT_RUNPATH tag from executables and libraries.  But doing so
8885           # requires that you compile everything twice, which is a pain.
8886           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8887             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8888             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8889             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8890           else
8891             ld_shlibs=no
8892           fi
8893         ;;
8894       esac
8895       ;;
8896
8897     sunos4*)
8898       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8899       wlarc=
8900       hardcode_direct=yes
8901       hardcode_shlibpath_var=no
8902       ;;
8903
8904     *)
8905       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8906         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8907         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8908       else
8909         ld_shlibs=no
8910       fi
8911       ;;
8912     esac
8913
8914     if test "$ld_shlibs" = no; then
8915       runpath_var=
8916       hardcode_libdir_flag_spec=
8917       export_dynamic_flag_spec=
8918       whole_archive_flag_spec=
8919     fi
8920   else
8921     # PORTME fill in a description of your system's linker (not GNU ld)
8922     case $host_os in
8923     aix3*)
8924       allow_undefined_flag=unsupported
8925       always_export_symbols=yes
8926       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'
8927       # Note: this linker hardcodes the directories in LIBPATH if there
8928       # are no directories specified by -L.
8929       hardcode_minus_L=yes
8930       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8931         # Neither direct hardcoding nor static linking is supported with a
8932         # broken collect2.
8933         hardcode_direct=unsupported
8934       fi
8935       ;;
8936
8937     aix[4-9]*)
8938       if test "$host_cpu" = ia64; then
8939         # On IA64, the linker does run time linking by default, so we don't
8940         # have to do anything special.
8941         aix_use_runtimelinking=no
8942         exp_sym_flag='-Bexport'
8943         no_entry_flag=""
8944       else
8945         # If we're using GNU nm, then we don't want the "-C" option.
8946         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8947         # Also, AIX nm treats weak defined symbols like other global
8948         # defined symbols, whereas GNU nm marks them as "W".
8949         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8950           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'
8951         else
8952           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'
8953         fi
8954         aix_use_runtimelinking=no
8955
8956         # Test if we are trying to use run time linking or normal
8957         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8958         # need to do runtime linking.
8959         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8960           for ld_flag in $LDFLAGS; do
8961           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8962             aix_use_runtimelinking=yes
8963             break
8964           fi
8965           done
8966           ;;
8967         esac
8968
8969         exp_sym_flag='-bexport'
8970         no_entry_flag='-bnoentry'
8971       fi
8972
8973       # When large executables or shared objects are built, AIX ld can
8974       # have problems creating the table of contents.  If linking a library
8975       # or program results in "error TOC overflow" add -mminimal-toc to
8976       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8977       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8978
8979       archive_cmds=''
8980       hardcode_direct=yes
8981       hardcode_direct_absolute=yes
8982       hardcode_libdir_separator=':'
8983       link_all_deplibs=yes
8984       file_list_spec='${wl}-f,'
8985
8986       if test "$GCC" = yes; then
8987         case $host_os in aix4.[012]|aix4.[012].*)
8988         # We only want to do this on AIX 4.2 and lower, the check
8989         # below for broken collect2 doesn't work under 4.3+
8990           collect2name=`${CC} -print-prog-name=collect2`
8991           if test -f "$collect2name" &&
8992            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8993           then
8994           # We have reworked collect2
8995           :
8996           else
8997           # We have old collect2
8998           hardcode_direct=unsupported
8999           # It fails to find uninstalled libraries when the uninstalled
9000           # path is not listed in the libpath.  Setting hardcode_minus_L
9001           # to unsupported forces relinking
9002           hardcode_minus_L=yes
9003           hardcode_libdir_flag_spec='-L$libdir'
9004           hardcode_libdir_separator=
9005           fi
9006           ;;
9007         esac
9008         shared_flag='-shared'
9009         if test "$aix_use_runtimelinking" = yes; then
9010           shared_flag="$shared_flag "'${wl}-G'
9011         fi
9012       else
9013         # not using gcc
9014         if test "$host_cpu" = ia64; then
9015         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9016         # chokes on -Wl,-G. The following line is correct:
9017           shared_flag='-G'
9018         else
9019           if test "$aix_use_runtimelinking" = yes; then
9020             shared_flag='${wl}-G'
9021           else
9022             shared_flag='${wl}-bM:SRE'
9023           fi
9024         fi
9025       fi
9026
9027       export_dynamic_flag_spec='${wl}-bexpall'
9028       # It seems that -bexpall does not export symbols beginning with
9029       # underscore (_), so it is better to generate a list of symbols to export.
9030       always_export_symbols=yes
9031       if test "$aix_use_runtimelinking" = yes; then
9032         # Warning - without using the other runtime loading flags (-brtl),
9033         # -berok will link without error, but may produce a broken library.
9034         allow_undefined_flag='-berok'
9035         # Determine the default libpath from the value encoded in an
9036         # empty executable.
9037         if test "${lt_cv_aix_libpath+set}" = set; then
9038   aix_libpath=$lt_cv_aix_libpath
9039 else
9040   if ${lt_cv_aix_libpath_+:} false; then :
9041   $as_echo_n "(cached) " >&6
9042 else
9043   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9044 /* end confdefs.h.  */
9045
9046 int
9047 main ()
9048 {
9049
9050   ;
9051   return 0;
9052 }
9053 _ACEOF
9054 if ac_fn_c_try_link "$LINENO"; then :
9055   
9056   lt_aix_libpath_sed='
9057       /Import File Strings/,/^$/ {
9058           /^0/ {
9059               s/^0  *\([^ ]*\) *$/\1/
9060               p
9061           }
9062       }'
9063   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9064   # Check for a 64-bit object if we didn't find anything.
9065   if test -z "$lt_cv_aix_libpath_"; then
9066     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9067   fi
9068 fi
9069 rm -f core conftest.err conftest.$ac_objext \
9070     conftest$ac_exeext conftest.$ac_ext
9071   if test -z "$lt_cv_aix_libpath_"; then
9072     lt_cv_aix_libpath_="/usr/lib:/lib"
9073   fi
9074   
9075 fi
9076
9077   aix_libpath=$lt_cv_aix_libpath_
9078 fi
9079
9080         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9081         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"
9082       else
9083         if test "$host_cpu" = ia64; then
9084           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9085           allow_undefined_flag="-z nodefs"
9086           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"
9087         else
9088          # Determine the default libpath from the value encoded in an
9089          # empty executable.
9090          if test "${lt_cv_aix_libpath+set}" = set; then
9091   aix_libpath=$lt_cv_aix_libpath
9092 else
9093   if ${lt_cv_aix_libpath_+:} false; then :
9094   $as_echo_n "(cached) " >&6
9095 else
9096   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9097 /* end confdefs.h.  */
9098
9099 int
9100 main ()
9101 {
9102
9103   ;
9104   return 0;
9105 }
9106 _ACEOF
9107 if ac_fn_c_try_link "$LINENO"; then :
9108   
9109   lt_aix_libpath_sed='
9110       /Import File Strings/,/^$/ {
9111           /^0/ {
9112               s/^0  *\([^ ]*\) *$/\1/
9113               p
9114           }
9115       }'
9116   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9117   # Check for a 64-bit object if we didn't find anything.
9118   if test -z "$lt_cv_aix_libpath_"; then
9119     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9120   fi
9121 fi
9122 rm -f core conftest.err conftest.$ac_objext \
9123     conftest$ac_exeext conftest.$ac_ext
9124   if test -z "$lt_cv_aix_libpath_"; then
9125     lt_cv_aix_libpath_="/usr/lib:/lib"
9126   fi
9127   
9128 fi
9129
9130   aix_libpath=$lt_cv_aix_libpath_
9131 fi
9132
9133          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9134           # Warning - without using the other run time loading flags,
9135           # -berok will link without error, but may produce a broken library.
9136           no_undefined_flag=' ${wl}-bernotok'
9137           allow_undefined_flag=' ${wl}-berok'
9138           if test "$with_gnu_ld" = yes; then
9139             # We only use this code for GNU lds that support --whole-archive.
9140             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9141           else
9142             # Exported symbols can be pulled into shared objects from archives
9143             whole_archive_flag_spec='$convenience'
9144           fi
9145           archive_cmds_need_lc=yes
9146           # This is similar to how AIX traditionally builds its shared libraries.
9147           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'
9148         fi
9149       fi
9150       ;;
9151
9152     amigaos*)
9153       case $host_cpu in
9154       powerpc)
9155             # see comment about AmigaOS4 .so support
9156             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9157             archive_expsym_cmds=''
9158         ;;
9159       m68k)
9160             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)'
9161             hardcode_libdir_flag_spec='-L$libdir'
9162             hardcode_minus_L=yes
9163         ;;
9164       esac
9165       ;;
9166
9167     bsdi[45]*)
9168       export_dynamic_flag_spec=-rdynamic
9169       ;;
9170
9171     cygwin* | mingw* | pw32* | cegcc*)
9172       # When not using gcc, we currently assume that we are using
9173       # Microsoft Visual C++.
9174       # hardcode_libdir_flag_spec is actually meaningless, as there is
9175       # no search path for DLLs.
9176       case $cc_basename in
9177       cl*)
9178         # Native MSVC
9179         hardcode_libdir_flag_spec=' '
9180         allow_undefined_flag=unsupported
9181         always_export_symbols=yes
9182         file_list_spec='@'
9183         # Tell ltmain to make .lib files, not .a files.
9184         libext=lib
9185         # Tell ltmain to make .dll files, not .so files.
9186         shrext_cmds=".dll"
9187         # FIXME: Setting linknames here is a bad hack.
9188         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9189         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9190             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9191           else
9192             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9193           fi~
9194           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9195           linknames='
9196         # The linker will not automatically build a static lib if we build a DLL.
9197         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9198         enable_shared_with_static_runtimes=yes
9199         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9200         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9201         # Don't use ranlib
9202         old_postinstall_cmds='chmod 644 $oldlib'
9203         postlink_cmds='lt_outputfile="@OUTPUT@"~
9204           lt_tool_outputfile="@TOOL_OUTPUT@"~
9205           case $lt_outputfile in
9206             *.exe|*.EXE) ;;
9207             *)
9208               lt_outputfile="$lt_outputfile.exe"
9209               lt_tool_outputfile="$lt_tool_outputfile.exe"
9210               ;;
9211           esac~
9212           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9213             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9214             $RM "$lt_outputfile.manifest";
9215           fi'
9216         ;;
9217       *)
9218         # Assume MSVC wrapper
9219         hardcode_libdir_flag_spec=' '
9220         allow_undefined_flag=unsupported
9221         # Tell ltmain to make .lib files, not .a files.
9222         libext=lib
9223         # Tell ltmain to make .dll files, not .so files.
9224         shrext_cmds=".dll"
9225         # FIXME: Setting linknames here is a bad hack.
9226         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9227         # The linker will automatically build a .lib file if we build a DLL.
9228         old_archive_from_new_cmds='true'
9229         # FIXME: Should let the user specify the lib program.
9230         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9231         enable_shared_with_static_runtimes=yes
9232         ;;
9233       esac
9234       ;;
9235
9236     darwin* | rhapsody*)
9237       
9238   
9239   archive_cmds_need_lc=no
9240   hardcode_direct=no
9241   hardcode_automatic=yes
9242   hardcode_shlibpath_var=unsupported
9243   if test "$lt_cv_ld_force_load" = "yes"; then
9244     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\"`'
9245     
9246   else
9247     whole_archive_flag_spec=''
9248   fi
9249   link_all_deplibs=yes
9250   allow_undefined_flag="$_lt_dar_allow_undefined"
9251   case $cc_basename in
9252      ifort*) _lt_dar_can_shared=yes ;;
9253      *) _lt_dar_can_shared=$GCC ;;
9254   esac
9255   if test "$_lt_dar_can_shared" = "yes"; then
9256     output_verbose_link_cmd=func_echo_all
9257     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9258     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9259     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}"
9260     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}"
9261     
9262   else
9263   ld_shlibs=no
9264   fi
9265
9266       ;;
9267
9268     dgux*)
9269       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9270       hardcode_libdir_flag_spec='-L$libdir'
9271       hardcode_shlibpath_var=no
9272       ;;
9273
9274     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9275     # support.  Future versions do this automatically, but an explicit c++rt0.o
9276     # does not break anything, and helps significantly (at the cost of a little
9277     # extra space).
9278     freebsd2.2*)
9279       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9280       hardcode_libdir_flag_spec='-R$libdir'
9281       hardcode_direct=yes
9282       hardcode_shlibpath_var=no
9283       ;;
9284
9285     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9286     freebsd2.*)
9287       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9288       hardcode_direct=yes
9289       hardcode_minus_L=yes
9290       hardcode_shlibpath_var=no
9291       ;;
9292
9293     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9294     freebsd* | dragonfly*)
9295       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9296       hardcode_libdir_flag_spec='-R$libdir'
9297       hardcode_direct=yes
9298       hardcode_shlibpath_var=no
9299       ;;
9300
9301     hpux9*)
9302       if test "$GCC" = yes; then
9303         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'
9304       else
9305         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'
9306       fi
9307       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9308       hardcode_libdir_separator=:
9309       hardcode_direct=yes
9310
9311       # hardcode_minus_L: Not really in the search PATH,
9312       # but as the default location of the library.
9313       hardcode_minus_L=yes
9314       export_dynamic_flag_spec='${wl}-E'
9315       ;;
9316
9317     hpux10*)
9318       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9319         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9320       else
9321         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9322       fi
9323       if test "$with_gnu_ld" = no; then
9324         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9325         hardcode_libdir_separator=:
9326         hardcode_direct=yes
9327         hardcode_direct_absolute=yes
9328         export_dynamic_flag_spec='${wl}-E'
9329         # hardcode_minus_L: Not really in the search PATH,
9330         # but as the default location of the library.
9331         hardcode_minus_L=yes
9332       fi
9333       ;;
9334
9335     hpux11*)
9336       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9337         case $host_cpu in
9338         hppa*64*)
9339           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9340           ;;
9341         ia64*)
9342           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9343           ;;
9344         *)
9345           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9346           ;;
9347         esac
9348       else
9349         case $host_cpu in
9350         hppa*64*)
9351           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9352           ;;
9353         ia64*)
9354           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9355           ;;
9356         *)
9357         
9358           # Older versions of the 11.00 compiler do not understand -b yet
9359           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9360           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9361 $as_echo_n "checking if $CC understands -b... " >&6; }
9362 if ${lt_cv_prog_compiler__b+:} false; then :
9363   $as_echo_n "(cached) " >&6
9364 else
9365   lt_cv_prog_compiler__b=no
9366    save_LDFLAGS="$LDFLAGS"
9367    LDFLAGS="$LDFLAGS -b"
9368    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9369    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9370      # The linker can only warn and ignore the option if not recognized
9371      # So say no if there are warnings
9372      if test -s conftest.err; then
9373        # Append any errors to the config.log.
9374        cat conftest.err 1>&5
9375        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9376        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9377        if diff conftest.exp conftest.er2 >/dev/null; then
9378          lt_cv_prog_compiler__b=yes
9379        fi
9380      else
9381        lt_cv_prog_compiler__b=yes
9382      fi
9383    fi
9384    $RM -r conftest*
9385    LDFLAGS="$save_LDFLAGS"
9386
9387 fi
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9389 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9390
9391 if test x"$lt_cv_prog_compiler__b" = xyes; then
9392     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9393 else
9394     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9395 fi
9396
9397           ;;
9398         esac
9399       fi
9400       if test "$with_gnu_ld" = no; then
9401         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9402         hardcode_libdir_separator=:
9403
9404         case $host_cpu in
9405         hppa*64*|ia64*)
9406           hardcode_direct=no
9407           hardcode_shlibpath_var=no
9408           ;;
9409         *)
9410           hardcode_direct=yes
9411           hardcode_direct_absolute=yes
9412           export_dynamic_flag_spec='${wl}-E'
9413
9414           # hardcode_minus_L: Not really in the search PATH,
9415           # but as the default location of the library.
9416           hardcode_minus_L=yes
9417           ;;
9418         esac
9419       fi
9420       ;;
9421
9422     irix5* | irix6* | nonstopux*)
9423       if test "$GCC" = yes; then
9424         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'
9425         # Try to use the -exported_symbol ld option, if it does not
9426         # work, assume that -exports_file does not work either and
9427         # implicitly export all symbols.
9428         # This should be the same for all languages, so no per-tag cache variable.
9429         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9430 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9431 if ${lt_cv_irix_exported_symbol+:} false; then :
9432   $as_echo_n "(cached) " >&6
9433 else
9434   save_LDFLAGS="$LDFLAGS"
9435            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9436            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9437 /* end confdefs.h.  */
9438 int foo (void) { return 0; }
9439 _ACEOF
9440 if ac_fn_c_try_link "$LINENO"; then :
9441   lt_cv_irix_exported_symbol=yes
9442 else
9443   lt_cv_irix_exported_symbol=no
9444 fi
9445 rm -f core conftest.err conftest.$ac_objext \
9446     conftest$ac_exeext conftest.$ac_ext
9447            LDFLAGS="$save_LDFLAGS"
9448 fi
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9450 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9451         if test "$lt_cv_irix_exported_symbol" = yes; then
9452           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'
9453         fi
9454       else
9455         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'
9456         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'
9457       fi
9458       archive_cmds_need_lc='no'
9459       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9460       hardcode_libdir_separator=:
9461       inherit_rpath=yes
9462       link_all_deplibs=yes
9463       ;;
9464
9465     netbsd*)
9466       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9467         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9468       else
9469         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9470       fi
9471       hardcode_libdir_flag_spec='-R$libdir'
9472       hardcode_direct=yes
9473       hardcode_shlibpath_var=no
9474       ;;
9475
9476     newsos6)
9477       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9478       hardcode_direct=yes
9479       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9480       hardcode_libdir_separator=:
9481       hardcode_shlibpath_var=no
9482       ;;
9483
9484     *nto* | *qnx*)
9485       ;;
9486
9487     openbsd*)
9488       if test -f /usr/libexec/ld.so; then
9489         hardcode_direct=yes
9490         hardcode_shlibpath_var=no
9491         hardcode_direct_absolute=yes
9492         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9493           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9494           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9495           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9496           export_dynamic_flag_spec='${wl}-E'
9497         else
9498           case $host_os in
9499            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9500              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9501              hardcode_libdir_flag_spec='-R$libdir'
9502              ;;
9503            *)
9504              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9505              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9506              ;;
9507           esac
9508         fi
9509       else
9510         ld_shlibs=no
9511       fi
9512       ;;
9513
9514     os2*)
9515       hardcode_libdir_flag_spec='-L$libdir'
9516       hardcode_minus_L=yes
9517       allow_undefined_flag=unsupported
9518       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'
9519       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9520       ;;
9521
9522     osf3*)
9523       if test "$GCC" = yes; then
9524         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9525         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'
9526       else
9527         allow_undefined_flag=' -expect_unresolved \*'
9528         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'
9529       fi
9530       archive_cmds_need_lc='no'
9531       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9532       hardcode_libdir_separator=:
9533       ;;
9534
9535     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9536       if test "$GCC" = yes; then
9537         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9538         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'
9539         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9540       else
9541         allow_undefined_flag=' -expect_unresolved \*'
9542         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'
9543         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~
9544         $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'
9545
9546         # Both c and cxx compiler support -rpath directly
9547         hardcode_libdir_flag_spec='-rpath $libdir'
9548       fi
9549       archive_cmds_need_lc='no'
9550       hardcode_libdir_separator=:
9551       ;;
9552
9553     solaris*)
9554       no_undefined_flag=' -z defs'
9555       if test "$GCC" = yes; then
9556         wlarc='${wl}'
9557         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9558         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9559           $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'
9560       else
9561         case `$CC -V 2>&1` in
9562         *"Compilers 5.0"*)
9563           wlarc=''
9564           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9565           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9566           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9567           ;;
9568         *)
9569           wlarc='${wl}'
9570           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9571           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9572           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9573           ;;
9574         esac
9575       fi
9576       hardcode_libdir_flag_spec='-R$libdir'
9577       hardcode_shlibpath_var=no
9578       case $host_os in
9579       solaris2.[0-5] | solaris2.[0-5].*) ;;
9580       *)
9581         # The compiler driver will combine and reorder linker options,
9582         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9583         # but is careful enough not to reorder.
9584         # Supported since Solaris 2.6 (maybe 2.5.1?)
9585         if test "$GCC" = yes; then
9586           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9587         else
9588           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9589         fi
9590         ;;
9591       esac
9592       link_all_deplibs=yes
9593       ;;
9594
9595     sunos4*)
9596       if test "x$host_vendor" = xsequent; then
9597         # Use $CC to link under sequent, because it throws in some extra .o
9598         # files that make .init and .fini sections work.
9599         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9600       else
9601         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9602       fi
9603       hardcode_libdir_flag_spec='-L$libdir'
9604       hardcode_direct=yes
9605       hardcode_minus_L=yes
9606       hardcode_shlibpath_var=no
9607       ;;
9608
9609     sysv4)
9610       case $host_vendor in
9611         sni)
9612           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9613           hardcode_direct=yes # is this really true???
9614         ;;
9615         siemens)
9616           ## LD is ld it makes a PLAMLIB
9617           ## CC just makes a GrossModule.
9618           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9619           reload_cmds='$CC -r -o $output$reload_objs'
9620           hardcode_direct=no
9621         ;;
9622         motorola)
9623           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9624           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9625         ;;
9626       esac
9627       runpath_var='LD_RUN_PATH'
9628       hardcode_shlibpath_var=no
9629       ;;
9630
9631     sysv4.3*)
9632       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9633       hardcode_shlibpath_var=no
9634       export_dynamic_flag_spec='-Bexport'
9635       ;;
9636
9637     sysv4*MP*)
9638       if test -d /usr/nec; then
9639         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9640         hardcode_shlibpath_var=no
9641         runpath_var=LD_RUN_PATH
9642         hardcode_runpath_var=yes
9643         ld_shlibs=yes
9644       fi
9645       ;;
9646
9647     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9648       no_undefined_flag='${wl}-z,text'
9649       archive_cmds_need_lc=no
9650       hardcode_shlibpath_var=no
9651       runpath_var='LD_RUN_PATH'
9652
9653       if test "$GCC" = yes; then
9654         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9655         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9656       else
9657         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9658         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9659       fi
9660       ;;
9661
9662     sysv5* | sco3.2v5* | sco5v6*)
9663       # Note: We can NOT use -z defs as we might desire, because we do not
9664       # link with -lc, and that would cause any symbols used from libc to
9665       # always be unresolved, which means just about no library would
9666       # ever link correctly.  If we're not using GNU ld we use -z text
9667       # though, which does catch some bad symbols but isn't as heavy-handed
9668       # as -z defs.
9669       no_undefined_flag='${wl}-z,text'
9670       allow_undefined_flag='${wl}-z,nodefs'
9671       archive_cmds_need_lc=no
9672       hardcode_shlibpath_var=no
9673       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9674       hardcode_libdir_separator=':'
9675       link_all_deplibs=yes
9676       export_dynamic_flag_spec='${wl}-Bexport'
9677       runpath_var='LD_RUN_PATH'
9678
9679       if test "$GCC" = yes; then
9680         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9681         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9682       else
9683         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9684         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9685       fi
9686       ;;
9687
9688     uts4*)
9689       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9690       hardcode_libdir_flag_spec='-L$libdir'
9691       hardcode_shlibpath_var=no
9692       ;;
9693
9694     *)
9695       ld_shlibs=no
9696       ;;
9697     esac
9698
9699     if test x$host_vendor = xsni; then
9700       case $host in
9701       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9702         export_dynamic_flag_spec='${wl}-Blargedynsym'
9703         ;;
9704       esac
9705     fi
9706   fi
9707
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9709 $as_echo "$ld_shlibs" >&6; }
9710 test "$ld_shlibs" = no && can_build_shared=no
9711
9712 with_gnu_ld=$with_gnu_ld
9713
9714
9715     
9716     
9717     
9718
9719     
9720     
9721     
9722
9723     
9724     
9725     
9726
9727
9728 #
9729 # Do we need to explicitly link libc?
9730 #
9731 case "x$archive_cmds_need_lc" in
9732 x|xyes)
9733   # Assume -lc should be added
9734   archive_cmds_need_lc=yes
9735
9736   if test "$enable_shared" = yes && test "$GCC" = yes; then
9737     case $archive_cmds in
9738     *'~'*)
9739       # FIXME: we may have to deal with multi-command sequences.
9740       ;;
9741     '$CC '*)
9742       # Test whether the compiler implicitly links with -lc since on some
9743       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9744       # to ld, don't add -lc before -lgcc.
9745       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9746 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9747 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9748   $as_echo_n "(cached) " >&6
9749 else
9750   $RM conftest*
9751         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9752
9753         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9754   (eval $ac_compile) 2>&5
9755   ac_status=$?
9756   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9757   test $ac_status = 0; } 2>conftest.err; then
9758           soname=conftest
9759           lib=conftest
9760           libobjs=conftest.$ac_objext
9761           deplibs=
9762           wl=$lt_prog_compiler_wl
9763           pic_flag=$lt_prog_compiler_pic
9764           compiler_flags=-v
9765           linker_flags=-v
9766           verstring=
9767           output_objdir=.
9768           libname=conftest
9769           lt_save_allow_undefined_flag=$allow_undefined_flag
9770           allow_undefined_flag=
9771           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9772   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9773   ac_status=$?
9774   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9775   test $ac_status = 0; }
9776           then
9777             lt_cv_archive_cmds_need_lc=no
9778           else
9779             lt_cv_archive_cmds_need_lc=yes
9780           fi
9781           allow_undefined_flag=$lt_save_allow_undefined_flag
9782         else
9783           cat conftest.err 1>&5
9784         fi
9785         $RM conftest*
9786         
9787 fi
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9789 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9790       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9791       ;;
9792     esac
9793   fi
9794   ;;
9795 esac
9796
9797
9798     
9799     
9800     
9801
9802
9803     
9804     
9805     
9806
9807
9808     
9809     
9810     
9811
9812
9813     
9814     
9815     
9816
9817
9818     
9819     
9820     
9821
9822
9823     
9824     
9825     
9826
9827
9828     
9829     
9830     
9831
9832
9833     
9834     
9835     
9836
9837
9838     
9839     
9840     
9841
9842
9843     
9844     
9845     
9846
9847
9848     
9849     
9850     
9851
9852
9853     
9854     
9855     
9856
9857
9858     
9859     
9860     
9861
9862
9863     
9864     
9865     
9866
9867
9868     
9869     
9870     
9871
9872
9873     
9874     
9875     
9876
9877
9878     
9879     
9880     
9881
9882
9883     
9884     
9885     
9886
9887
9888     
9889     
9890     
9891
9892
9893     
9894     
9895     
9896
9897
9898     
9899     
9900     
9901
9902
9903     
9904     
9905     
9906
9907
9908     
9909     
9910     
9911
9912
9913     
9914     
9915     
9916
9917
9918     
9919     
9920     
9921
9922
9923     
9924     
9925     
9926
9927
9928     
9929     
9930     
9931
9932
9933     
9934     
9935     
9936
9937
9938     
9939     
9940     
9941
9942
9943     
9944     
9945     
9946
9947
9948   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9949 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9950
9951 if test "$GCC" = yes; then
9952   case $host_os in
9953     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9954     *) lt_awk_arg="/^libraries:/" ;;
9955   esac
9956   case $host_os in
9957     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9958     *) lt_sed_strip_eq="s,=/,/,g" ;;
9959   esac
9960   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9961   case $lt_search_path_spec in
9962   *\;*)
9963     # if the path contains ";" then we assume it to be the separator
9964     # otherwise default to the standard path separator (i.e. ":") - it is
9965     # assumed that no part of a normal pathname contains ";" but that should
9966     # okay in the real world where ";" in dirpaths is itself problematic.
9967     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9968     ;;
9969   *)
9970     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9971     ;;
9972   esac
9973   # Ok, now we have the path, separated by spaces, we can step through it
9974   # and add multilib dir if necessary.
9975   lt_tmp_lt_search_path_spec=
9976   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9977   for lt_sys_path in $lt_search_path_spec; do
9978     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9979       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9980     else
9981       test -d "$lt_sys_path" && \
9982         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9983     fi
9984   done
9985   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9986 BEGIN {RS=" "; FS="/|\n";} {
9987   lt_foo="";
9988   lt_count=0;
9989   for (lt_i = NF; lt_i > 0; lt_i--) {
9990     if ($lt_i != "" && $lt_i != ".") {
9991       if ($lt_i == "..") {
9992         lt_count++;
9993       } else {
9994         if (lt_count == 0) {
9995           lt_foo="/" $lt_i lt_foo;
9996         } else {
9997           lt_count--;
9998         }
9999       }
10000     }
10001   }
10002   if (lt_foo != "") { lt_freq[lt_foo]++; }
10003   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10004 }'`
10005   # AWK program above erroneously prepends '/' to C:/dos/paths
10006   # for these hosts.
10007   case $host_os in
10008     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10009       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10010   esac
10011   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10012 else
10013   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10014 fi
10015 library_names_spec=
10016 libname_spec='lib$name'
10017 soname_spec=
10018 shrext_cmds=".so"
10019 postinstall_cmds=
10020 postuninstall_cmds=
10021 finish_cmds=
10022 finish_eval=
10023 shlibpath_var=
10024 shlibpath_overrides_runpath=unknown
10025 version_type=none
10026 dynamic_linker="$host_os ld.so"
10027 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10028 need_lib_prefix=unknown
10029 hardcode_into_libs=no
10030
10031 # when you set need_version to no, make sure it does not cause -set_version
10032 # flags to be left without arguments
10033 need_version=unknown
10034
10035 case $host_os in
10036 aix3*)
10037   version_type=linux # correct to gnu/linux during the next big refactor
10038   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10039   shlibpath_var=LIBPATH
10040
10041   # AIX 3 has no versioning support, so we append a major version to the name.
10042   soname_spec='${libname}${release}${shared_ext}$major'
10043   ;;
10044
10045 aix[4-9]*)
10046   version_type=linux # correct to gnu/linux during the next big refactor
10047   need_lib_prefix=no
10048   need_version=no
10049   hardcode_into_libs=yes
10050   if test "$host_cpu" = ia64; then
10051     # AIX 5 supports IA64
10052     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10053     shlibpath_var=LD_LIBRARY_PATH
10054   else
10055     # With GCC up to 2.95.x, collect2 would create an import file
10056     # for dependence libraries.  The import file would start with
10057     # the line `#! .'.  This would cause the generated library to
10058     # depend on `.', always an invalid library.  This was fixed in
10059     # development snapshots of GCC prior to 3.0.
10060     case $host_os in
10061       aix4 | aix4.[01] | aix4.[01].*)
10062       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10063            echo ' yes '
10064            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10065         :
10066       else
10067         can_build_shared=no
10068       fi
10069       ;;
10070     esac
10071     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10072     # soname into executable. Probably we can add versioning support to
10073     # collect2, so additional links can be useful in future.
10074     if test "$aix_use_runtimelinking" = yes; then
10075       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10076       # instead of lib<name>.a to let people know that these are not
10077       # typical AIX shared libraries.
10078       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10079     else
10080       # We preserve .a as extension for shared libraries through AIX4.2
10081       # and later when we are not doing run time linking.
10082       library_names_spec='${libname}${release}.a $libname.a'
10083       soname_spec='${libname}${release}${shared_ext}$major'
10084     fi
10085     shlibpath_var=LIBPATH
10086   fi
10087   ;;
10088
10089 amigaos*)
10090   case $host_cpu in
10091   powerpc)
10092     # Since July 2007 AmigaOS4 officially supports .so libraries.
10093     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10094     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10095     ;;
10096   m68k)
10097     library_names_spec='$libname.ixlibrary $libname.a'
10098     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10099     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'
10100     ;;
10101   esac
10102   ;;
10103
10104 beos*)
10105   library_names_spec='${libname}${shared_ext}'
10106   dynamic_linker="$host_os ld.so"
10107   shlibpath_var=LIBRARY_PATH
10108   ;;
10109
10110 bsdi[45]*)
10111   version_type=linux # correct to gnu/linux during the next big refactor
10112   need_version=no
10113   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10114   soname_spec='${libname}${release}${shared_ext}$major'
10115   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10116   shlibpath_var=LD_LIBRARY_PATH
10117   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10118   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10119   # the default ld.so.conf also contains /usr/contrib/lib and
10120   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10121   # libtool to hard-code these into programs
10122   ;;
10123
10124 cygwin* | mingw* | pw32* | cegcc*)
10125   version_type=windows
10126   shrext_cmds=".dll"
10127   need_version=no
10128   need_lib_prefix=no
10129
10130   case $GCC,$cc_basename in
10131   yes,*)
10132     # gcc
10133     library_names_spec='$libname.dll.a'
10134     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10135     postinstall_cmds='base_file=`basename \${file}`~
10136       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10137       dldir=$destdir/`dirname \$dlpath`~
10138       test -d \$dldir || mkdir -p \$dldir~
10139       $install_prog $dir/$dlname \$dldir/$dlname~
10140       chmod a+x \$dldir/$dlname~
10141       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10142         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10143       fi'
10144     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10145       dlpath=$dir/\$dldll~
10146        $RM \$dlpath'
10147     shlibpath_overrides_runpath=yes
10148
10149     case $host_os in
10150     cygwin*)
10151       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10152       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10153
10154       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10155       ;;
10156     mingw* | cegcc*)
10157       # MinGW DLLs use traditional 'lib' prefix
10158       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10159       ;;
10160     pw32*)
10161       # pw32 DLLs use 'pw' prefix rather than 'lib'
10162       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10163       ;;
10164     esac
10165     dynamic_linker='Win32 ld.exe'
10166     ;;
10167
10168   *,cl*)
10169     # Native MSVC
10170     libname_spec='$name'
10171     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10172     library_names_spec='${libname}.dll.lib'
10173
10174     case $build_os in
10175     mingw*)
10176       sys_lib_search_path_spec=
10177       lt_save_ifs=$IFS
10178       IFS=';'
10179       for lt_path in $LIB
10180       do
10181         IFS=$lt_save_ifs
10182         # Let DOS variable expansion print the short 8.3 style file name.
10183         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10184         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10185       done
10186       IFS=$lt_save_ifs
10187       # Convert to MSYS style.
10188       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10189       ;;
10190     cygwin*)
10191       # Convert to unix form, then to dos form, then back to unix form
10192       # but this time dos style (no spaces!) so that the unix form looks
10193       # like /cygdrive/c/PROGRA~1:/cygdr...
10194       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10195       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10196       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10197       ;;
10198     *)
10199       sys_lib_search_path_spec="$LIB"
10200       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10201         # It is most probably a Windows format PATH.
10202         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10203       else
10204         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10205       fi
10206       # FIXME: find the short name or the path components, as spaces are
10207       # common. (e.g. "Program Files" -> "PROGRA~1")
10208       ;;
10209     esac
10210
10211     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10212     postinstall_cmds='base_file=`basename \${file}`~
10213       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10214       dldir=$destdir/`dirname \$dlpath`~
10215       test -d \$dldir || mkdir -p \$dldir~
10216       $install_prog $dir/$dlname \$dldir/$dlname'
10217     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10218       dlpath=$dir/\$dldll~
10219        $RM \$dlpath'
10220     shlibpath_overrides_runpath=yes
10221     dynamic_linker='Win32 link.exe'
10222     ;;
10223
10224   *)
10225     # Assume MSVC wrapper
10226     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10227     dynamic_linker='Win32 ld.exe'
10228     ;;
10229   esac
10230   # FIXME: first we should search . and the directory the executable is in
10231   shlibpath_var=PATH
10232   ;;
10233
10234 darwin* | rhapsody*)
10235   dynamic_linker="$host_os dyld"
10236   version_type=darwin
10237   need_lib_prefix=no
10238   need_version=no
10239   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10240   soname_spec='${libname}${release}${major}$shared_ext'
10241   shlibpath_overrides_runpath=yes
10242   shlibpath_var=DYLD_LIBRARY_PATH
10243   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10244
10245   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10246   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10247   ;;
10248
10249 dgux*)
10250   version_type=linux # correct to gnu/linux during the next big refactor
10251   need_lib_prefix=no
10252   need_version=no
10253   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10254   soname_spec='${libname}${release}${shared_ext}$major'
10255   shlibpath_var=LD_LIBRARY_PATH
10256   ;;
10257
10258 freebsd* | dragonfly*)
10259   # DragonFly does not have aout.  When/if they implement a new
10260   # versioning mechanism, adjust this.
10261   if test -x /usr/bin/objformat; then
10262     objformat=`/usr/bin/objformat`
10263   else
10264     case $host_os in
10265     freebsd[23].*) objformat=aout ;;
10266     *) objformat=elf ;;
10267     esac
10268   fi
10269   version_type=freebsd-$objformat
10270   case $version_type in
10271     freebsd-elf*)
10272       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10273       need_version=no
10274       need_lib_prefix=no
10275       ;;
10276     freebsd-*)
10277       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10278       need_version=yes
10279       ;;
10280   esac
10281   shlibpath_var=LD_LIBRARY_PATH
10282   case $host_os in
10283   freebsd2.*)
10284     shlibpath_overrides_runpath=yes
10285     ;;
10286   freebsd3.[01]* | freebsdelf3.[01]*)
10287     shlibpath_overrides_runpath=yes
10288     hardcode_into_libs=yes
10289     ;;
10290   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10291   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10292     shlibpath_overrides_runpath=no
10293     hardcode_into_libs=yes
10294     ;;
10295   *) # from 4.6 on, and DragonFly
10296     shlibpath_overrides_runpath=yes
10297     hardcode_into_libs=yes
10298     ;;
10299   esac
10300   ;;
10301
10302 gnu*)
10303   version_type=linux # correct to gnu/linux during the next big refactor
10304   need_lib_prefix=no
10305   need_version=no
10306   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10307   soname_spec='${libname}${release}${shared_ext}$major'
10308   shlibpath_var=LD_LIBRARY_PATH
10309   shlibpath_overrides_runpath=no
10310   hardcode_into_libs=yes
10311   ;;
10312
10313 haiku*)
10314   version_type=linux # correct to gnu/linux during the next big refactor
10315   need_lib_prefix=no
10316   need_version=no
10317   dynamic_linker="$host_os runtime_loader"
10318   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10319   soname_spec='${libname}${release}${shared_ext}$major'
10320   shlibpath_var=LIBRARY_PATH
10321   shlibpath_overrides_runpath=yes
10322   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10323   hardcode_into_libs=yes
10324   ;;
10325
10326 hpux9* | hpux10* | hpux11*)
10327   # Give a soname corresponding to the major version so that dld.sl refuses to
10328   # link against other versions.
10329   version_type=sunos
10330   need_lib_prefix=no
10331   need_version=no
10332   case $host_cpu in
10333   ia64*)
10334     shrext_cmds='.so'
10335     hardcode_into_libs=yes
10336     dynamic_linker="$host_os dld.so"
10337     shlibpath_var=LD_LIBRARY_PATH
10338     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10339     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10340     soname_spec='${libname}${release}${shared_ext}$major'
10341     if test "X$HPUX_IA64_MODE" = X32; then
10342       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10343     else
10344       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10345     fi
10346     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10347     ;;
10348   hppa*64*)
10349     shrext_cmds='.sl'
10350     hardcode_into_libs=yes
10351     dynamic_linker="$host_os dld.sl"
10352     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10353     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10354     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10355     soname_spec='${libname}${release}${shared_ext}$major'
10356     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10357     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10358     ;;
10359   *)
10360     shrext_cmds='.sl'
10361     dynamic_linker="$host_os dld.sl"
10362     shlibpath_var=SHLIB_PATH
10363     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10364     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10365     soname_spec='${libname}${release}${shared_ext}$major'
10366     ;;
10367   esac
10368   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10369   postinstall_cmds='chmod 555 $lib'
10370   # or fails outright, so override atomically:
10371   install_override_mode=555
10372   ;;
10373
10374 interix[3-9]*)
10375   version_type=linux # correct to gnu/linux during the next big refactor
10376   need_lib_prefix=no
10377   need_version=no
10378   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10379   soname_spec='${libname}${release}${shared_ext}$major'
10380   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10381   shlibpath_var=LD_LIBRARY_PATH
10382   shlibpath_overrides_runpath=no
10383   hardcode_into_libs=yes
10384   ;;
10385
10386 irix5* | irix6* | nonstopux*)
10387   case $host_os in
10388     nonstopux*) version_type=nonstopux ;;
10389     *)
10390         if test "$lt_cv_prog_gnu_ld" = yes; then
10391                 version_type=linux # correct to gnu/linux during the next big refactor
10392         else
10393                 version_type=irix
10394         fi ;;
10395   esac
10396   need_lib_prefix=no
10397   need_version=no
10398   soname_spec='${libname}${release}${shared_ext}$major'
10399   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10400   case $host_os in
10401   irix5* | nonstopux*)
10402     libsuff= shlibsuff=
10403     ;;
10404   *)
10405     case $LD in # libtool.m4 will add one of these switches to LD
10406     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10407       libsuff= shlibsuff= libmagic=32-bit;;
10408     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10409       libsuff=32 shlibsuff=N32 libmagic=N32;;
10410     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10411       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10412     *) libsuff= shlibsuff= libmagic=never-match;;
10413     esac
10414     ;;
10415   esac
10416   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10417   shlibpath_overrides_runpath=no
10418   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10419   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10420   hardcode_into_libs=yes
10421   ;;
10422
10423 # No shared lib support for Linux oldld, aout, or coff.
10424 linux*oldld* | linux*aout* | linux*coff*)
10425   dynamic_linker=no
10426   ;;
10427
10428 # This must be glibc/ELF.
10429 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10430   version_type=linux # correct to gnu/linux during the next big refactor
10431   need_lib_prefix=no
10432   need_version=no
10433   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10434   soname_spec='${libname}${release}${shared_ext}$major'
10435   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10436   shlibpath_var=LD_LIBRARY_PATH
10437   shlibpath_overrides_runpath=no
10438
10439   # Some binutils ld are patched to set DT_RUNPATH
10440   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10441   $as_echo_n "(cached) " >&6
10442 else
10443   lt_cv_shlibpath_overrides_runpath=no
10444     save_LDFLAGS=$LDFLAGS
10445     save_libdir=$libdir
10446     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10447          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10448     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10449 /* end confdefs.h.  */
10450
10451 int
10452 main ()
10453 {
10454
10455   ;
10456   return 0;
10457 }
10458 _ACEOF
10459 if ac_fn_c_try_link "$LINENO"; then :
10460   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10461   lt_cv_shlibpath_overrides_runpath=yes
10462 fi
10463 fi
10464 rm -f core conftest.err conftest.$ac_objext \
10465     conftest$ac_exeext conftest.$ac_ext
10466     LDFLAGS=$save_LDFLAGS
10467     libdir=$save_libdir
10468     
10469 fi
10470
10471   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10472
10473   # This implies no fast_install, which is unacceptable.
10474   # Some rework will be needed to allow for fast_install
10475   # before this can be enabled.
10476   hardcode_into_libs=yes
10477
10478   # Append ld.so.conf contents to the search path
10479   if test -f /etc/ld.so.conf; then
10480     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' ' '`
10481     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10482   fi
10483
10484   # We used to test for /lib/ld.so.1 and disable shared libraries on
10485   # powerpc, because MkLinux only supported shared libraries with the
10486   # GNU dynamic linker.  Since this was broken with cross compilers,
10487   # most powerpc-linux boxes support dynamic linking these days and
10488   # people can always --disable-shared, the test was removed, and we
10489   # assume the GNU/Linux dynamic linker is in use.
10490   dynamic_linker='GNU/Linux ld.so'
10491   ;;
10492
10493 netbsd*)
10494   version_type=sunos
10495   need_lib_prefix=no
10496   need_version=no
10497   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10498     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10499     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10500     dynamic_linker='NetBSD (a.out) ld.so'
10501   else
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     dynamic_linker='NetBSD ld.elf_so'
10505   fi
10506   shlibpath_var=LD_LIBRARY_PATH
10507   shlibpath_overrides_runpath=yes
10508   hardcode_into_libs=yes
10509   ;;
10510
10511 newsos6)
10512   version_type=linux # correct to gnu/linux during the next big refactor
10513   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10514   shlibpath_var=LD_LIBRARY_PATH
10515   shlibpath_overrides_runpath=yes
10516   ;;
10517
10518 *nto* | *qnx*)
10519   version_type=qnx
10520   need_lib_prefix=no
10521   need_version=no
10522   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10523   soname_spec='${libname}${release}${shared_ext}$major'
10524   shlibpath_var=LD_LIBRARY_PATH
10525   shlibpath_overrides_runpath=no
10526   hardcode_into_libs=yes
10527   dynamic_linker='ldqnx.so'
10528   ;;
10529
10530 openbsd*)
10531   version_type=sunos
10532   sys_lib_dlsearch_path_spec="/usr/lib"
10533   need_lib_prefix=no
10534   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10535   case $host_os in
10536     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10537     *)                          need_version=no  ;;
10538   esac
10539   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10540   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10541   shlibpath_var=LD_LIBRARY_PATH
10542   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10543     case $host_os in
10544       openbsd2.[89] | openbsd2.[89].*)
10545         shlibpath_overrides_runpath=no
10546         ;;
10547       *)
10548         shlibpath_overrides_runpath=yes
10549         ;;
10550       esac
10551   else
10552     shlibpath_overrides_runpath=yes
10553   fi
10554   ;;
10555
10556 os2*)
10557   libname_spec='$name'
10558   shrext_cmds=".dll"
10559   need_lib_prefix=no
10560   library_names_spec='$libname${shared_ext} $libname.a'
10561   dynamic_linker='OS/2 ld.exe'
10562   shlibpath_var=LIBPATH
10563   ;;
10564
10565 osf3* | osf4* | osf5*)
10566   version_type=osf
10567   need_lib_prefix=no
10568   need_version=no
10569   soname_spec='${libname}${release}${shared_ext}$major'
10570   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10571   shlibpath_var=LD_LIBRARY_PATH
10572   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10573   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10574   ;;
10575
10576 rdos*)
10577   dynamic_linker=no
10578   ;;
10579
10580 solaris*)
10581   version_type=linux # correct to gnu/linux during the next big refactor
10582   need_lib_prefix=no
10583   need_version=no
10584   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10585   soname_spec='${libname}${release}${shared_ext}$major'
10586   shlibpath_var=LD_LIBRARY_PATH
10587   shlibpath_overrides_runpath=yes
10588   hardcode_into_libs=yes
10589   # ldd complains unless libraries are executable
10590   postinstall_cmds='chmod +x $lib'
10591   ;;
10592
10593 sunos4*)
10594   version_type=sunos
10595   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10596   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10597   shlibpath_var=LD_LIBRARY_PATH
10598   shlibpath_overrides_runpath=yes
10599   if test "$with_gnu_ld" = yes; then
10600     need_lib_prefix=no
10601   fi
10602   need_version=yes
10603   ;;
10604
10605 sysv4 | sysv4.3*)
10606   version_type=linux # correct to gnu/linux during the next big refactor
10607   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10608   soname_spec='${libname}${release}${shared_ext}$major'
10609   shlibpath_var=LD_LIBRARY_PATH
10610   case $host_vendor in
10611     sni)
10612       shlibpath_overrides_runpath=no
10613       need_lib_prefix=no
10614       runpath_var=LD_RUN_PATH
10615       ;;
10616     siemens)
10617       need_lib_prefix=no
10618       ;;
10619     motorola)
10620       need_lib_prefix=no
10621       need_version=no
10622       shlibpath_overrides_runpath=no
10623       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10624       ;;
10625   esac
10626   ;;
10627
10628 sysv4*MP*)
10629   if test -d /usr/nec ;then
10630     version_type=linux # correct to gnu/linux during the next big refactor
10631     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10632     soname_spec='$libname${shared_ext}.$major'
10633     shlibpath_var=LD_LIBRARY_PATH
10634   fi
10635   ;;
10636
10637 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10638   version_type=freebsd-elf
10639   need_lib_prefix=no
10640   need_version=no
10641   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10642   soname_spec='${libname}${release}${shared_ext}$major'
10643   shlibpath_var=LD_LIBRARY_PATH
10644   shlibpath_overrides_runpath=yes
10645   hardcode_into_libs=yes
10646   if test "$with_gnu_ld" = yes; then
10647     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10648   else
10649     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10650     case $host_os in
10651       sco3.2v5*)
10652         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10653         ;;
10654     esac
10655   fi
10656   sys_lib_dlsearch_path_spec='/usr/lib'
10657   ;;
10658
10659 tpf*)
10660   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10661   version_type=linux # correct to gnu/linux during the next big refactor
10662   need_lib_prefix=no
10663   need_version=no
10664   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10665   shlibpath_var=LD_LIBRARY_PATH
10666   shlibpath_overrides_runpath=no
10667   hardcode_into_libs=yes
10668   ;;
10669
10670 uts4*)
10671   version_type=linux # correct to gnu/linux during the next big refactor
10672   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10673   soname_spec='${libname}${release}${shared_ext}$major'
10674   shlibpath_var=LD_LIBRARY_PATH
10675   ;;
10676
10677 *)
10678   dynamic_linker=no
10679   ;;
10680 esac
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10682 $as_echo "$dynamic_linker" >&6; }
10683 test "$dynamic_linker" = no && can_build_shared=no
10684
10685 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10686 if test "$GCC" = yes; then
10687   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10688 fi
10689
10690 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10691   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10692 fi
10693 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10694   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10695 fi
10696
10697
10698     
10699     
10700     
10701
10702
10703     
10704     
10705     
10706
10707
10708     
10709     
10710     
10711
10712
10713     
10714     
10715     
10716
10717
10718     
10719     
10720     
10721
10722
10723     
10724     
10725     
10726
10727
10728     
10729     
10730     
10731
10732
10733     
10734     
10735     
10736
10737
10738     
10739     
10740     
10741
10742
10743     
10744     
10745     
10746
10747
10748     
10749     
10750     
10751
10752
10753     
10754     
10755     
10756
10757
10758     
10759     
10760     
10761
10762
10763     
10764     
10765     
10766
10767
10768     
10769     
10770     
10771
10772
10773     
10774     
10775     
10776
10777
10778     
10779     
10780     
10781
10782
10783     
10784     
10785     
10786
10787
10788   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10789 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10790 hardcode_action=
10791 if test -n "$hardcode_libdir_flag_spec" ||
10792    test -n "$runpath_var" ||
10793    test "X$hardcode_automatic" = "Xyes" ; then
10794
10795   # We can hardcode non-existent directories.
10796   if test "$hardcode_direct" != no &&
10797      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10798      # have to relink, otherwise we might link with an installed library
10799      # when we should be linking with a yet-to-be-installed one
10800      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10801      test "$hardcode_minus_L" != no; then
10802     # Linking always hardcodes the temporary library directory.
10803     hardcode_action=relink
10804   else
10805     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10806     hardcode_action=immediate
10807   fi
10808 else
10809   # We cannot hardcode anything, or else we can only hardcode existing
10810   # directories.
10811   hardcode_action=unsupported
10812 fi
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10814 $as_echo "$hardcode_action" >&6; }
10815
10816 if test "$hardcode_action" = relink ||
10817    test "$inherit_rpath" = yes; then
10818   # Fast installation is not supported
10819   enable_fast_install=no
10820 elif test "$shlibpath_overrides_runpath" = yes ||
10821      test "$enable_shared" = no; then
10822   # Fast installation is not necessary
10823   enable_fast_install=needless
10824 fi
10825
10826     
10827     
10828     
10829
10830
10831   if test "x$enable_dlopen" != xyes; then
10832   enable_dlopen=unknown
10833   enable_dlopen_self=unknown
10834   enable_dlopen_self_static=unknown
10835 else
10836   lt_cv_dlopen=no
10837   lt_cv_dlopen_libs=
10838
10839   case $host_os in
10840   beos*)
10841     lt_cv_dlopen="load_add_on"
10842     lt_cv_dlopen_libs=
10843     lt_cv_dlopen_self=yes
10844     ;;
10845
10846   mingw* | pw32* | cegcc*)
10847     lt_cv_dlopen="LoadLibrary"
10848     lt_cv_dlopen_libs=
10849     ;;
10850
10851   cygwin*)
10852     lt_cv_dlopen="dlopen"
10853     lt_cv_dlopen_libs=
10854     ;;
10855
10856   darwin*)
10857   # if libdl is installed we need to link against it
10858     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10859 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10860 if ${ac_cv_lib_dl_dlopen+:} false; then :
10861   $as_echo_n "(cached) " >&6
10862 else
10863   ac_check_lib_save_LIBS=$LIBS
10864 LIBS="-ldl  $LIBS"
10865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10866 /* end confdefs.h.  */
10867
10868 /* Override any GCC internal prototype to avoid an error.
10869    Use char because int might match the return type of a GCC
10870    builtin and then its argument prototype would still apply.  */
10871 #ifdef __cplusplus
10872 extern "C"
10873 #endif
10874 char dlopen ();
10875 int
10876 main ()
10877 {
10878 return dlopen ();
10879   ;
10880   return 0;
10881 }
10882 _ACEOF
10883 if ac_fn_c_try_link "$LINENO"; then :
10884   ac_cv_lib_dl_dlopen=yes
10885 else
10886   ac_cv_lib_dl_dlopen=no
10887 fi
10888 rm -f core conftest.err conftest.$ac_objext \
10889     conftest$ac_exeext conftest.$ac_ext
10890 LIBS=$ac_check_lib_save_LIBS
10891 fi
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10893 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10894 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10895   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10896 else
10897   
10898     lt_cv_dlopen="dyld"
10899     lt_cv_dlopen_libs=
10900     lt_cv_dlopen_self=yes
10901     
10902 fi
10903
10904     ;;
10905
10906   *)
10907     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10908 if test "x$ac_cv_func_shl_load" = xyes; then :
10909   lt_cv_dlopen="shl_load"
10910 else
10911   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10912 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10913 if ${ac_cv_lib_dld_shl_load+:} false; then :
10914   $as_echo_n "(cached) " >&6
10915 else
10916   ac_check_lib_save_LIBS=$LIBS
10917 LIBS="-ldld  $LIBS"
10918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10919 /* end confdefs.h.  */
10920
10921 /* Override any GCC internal prototype to avoid an error.
10922    Use char because int might match the return type of a GCC
10923    builtin and then its argument prototype would still apply.  */
10924 #ifdef __cplusplus
10925 extern "C"
10926 #endif
10927 char shl_load ();
10928 int
10929 main ()
10930 {
10931 return shl_load ();
10932   ;
10933   return 0;
10934 }
10935 _ACEOF
10936 if ac_fn_c_try_link "$LINENO"; then :
10937   ac_cv_lib_dld_shl_load=yes
10938 else
10939   ac_cv_lib_dld_shl_load=no
10940 fi
10941 rm -f core conftest.err conftest.$ac_objext \
10942     conftest$ac_exeext conftest.$ac_ext
10943 LIBS=$ac_check_lib_save_LIBS
10944 fi
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10946 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10947 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10948   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10949 else
10950   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10951 if test "x$ac_cv_func_dlopen" = xyes; then :
10952   lt_cv_dlopen="dlopen"
10953 else
10954   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10955 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10956 if ${ac_cv_lib_dl_dlopen+:} false; then :
10957   $as_echo_n "(cached) " >&6
10958 else
10959   ac_check_lib_save_LIBS=$LIBS
10960 LIBS="-ldl  $LIBS"
10961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10962 /* end confdefs.h.  */
10963
10964 /* Override any GCC internal prototype to avoid an error.
10965    Use char because int might match the return type of a GCC
10966    builtin and then its argument prototype would still apply.  */
10967 #ifdef __cplusplus
10968 extern "C"
10969 #endif
10970 char dlopen ();
10971 int
10972 main ()
10973 {
10974 return dlopen ();
10975   ;
10976   return 0;
10977 }
10978 _ACEOF
10979 if ac_fn_c_try_link "$LINENO"; then :
10980   ac_cv_lib_dl_dlopen=yes
10981 else
10982   ac_cv_lib_dl_dlopen=no
10983 fi
10984 rm -f core conftest.err conftest.$ac_objext \
10985     conftest$ac_exeext conftest.$ac_ext
10986 LIBS=$ac_check_lib_save_LIBS
10987 fi
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10989 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10990 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10991   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10992 else
10993   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10994 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10995 if ${ac_cv_lib_svld_dlopen+:} false; then :
10996   $as_echo_n "(cached) " >&6
10997 else
10998   ac_check_lib_save_LIBS=$LIBS
10999 LIBS="-lsvld  $LIBS"
11000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11001 /* end confdefs.h.  */
11002
11003 /* Override any GCC internal prototype to avoid an error.
11004    Use char because int might match the return type of a GCC
11005    builtin and then its argument prototype would still apply.  */
11006 #ifdef __cplusplus
11007 extern "C"
11008 #endif
11009 char dlopen ();
11010 int
11011 main ()
11012 {
11013 return dlopen ();
11014   ;
11015   return 0;
11016 }
11017 _ACEOF
11018 if ac_fn_c_try_link "$LINENO"; then :
11019   ac_cv_lib_svld_dlopen=yes
11020 else
11021   ac_cv_lib_svld_dlopen=no
11022 fi
11023 rm -f core conftest.err conftest.$ac_objext \
11024     conftest$ac_exeext conftest.$ac_ext
11025 LIBS=$ac_check_lib_save_LIBS
11026 fi
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11028 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11029 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11030   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11031 else
11032   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11033 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11034 if ${ac_cv_lib_dld_dld_link+:} false; then :
11035   $as_echo_n "(cached) " >&6
11036 else
11037   ac_check_lib_save_LIBS=$LIBS
11038 LIBS="-ldld  $LIBS"
11039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11040 /* end confdefs.h.  */
11041
11042 /* Override any GCC internal prototype to avoid an error.
11043    Use char because int might match the return type of a GCC
11044    builtin and then its argument prototype would still apply.  */
11045 #ifdef __cplusplus
11046 extern "C"
11047 #endif
11048 char dld_link ();
11049 int
11050 main ()
11051 {
11052 return dld_link ();
11053   ;
11054   return 0;
11055 }
11056 _ACEOF
11057 if ac_fn_c_try_link "$LINENO"; then :
11058   ac_cv_lib_dld_dld_link=yes
11059 else
11060   ac_cv_lib_dld_dld_link=no
11061 fi
11062 rm -f core conftest.err conftest.$ac_objext \
11063     conftest$ac_exeext conftest.$ac_ext
11064 LIBS=$ac_check_lib_save_LIBS
11065 fi
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11067 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11068 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11069   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11070 fi
11071
11072               
11073 fi
11074
11075             
11076 fi
11077
11078           
11079 fi
11080
11081         
11082 fi
11083
11084       
11085 fi
11086
11087     ;;
11088   esac
11089
11090   if test "x$lt_cv_dlopen" != xno; then
11091     enable_dlopen=yes
11092   else
11093     enable_dlopen=no
11094   fi
11095
11096   case $lt_cv_dlopen in
11097   dlopen)
11098     save_CPPFLAGS="$CPPFLAGS"
11099     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11100
11101     save_LDFLAGS="$LDFLAGS"
11102     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11103
11104     save_LIBS="$LIBS"
11105     LIBS="$lt_cv_dlopen_libs $LIBS"
11106
11107     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11108 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11109 if ${lt_cv_dlopen_self+:} false; then :
11110   $as_echo_n "(cached) " >&6
11111 else
11112           if test "$cross_compiling" = yes; then :
11113   lt_cv_dlopen_self=cross
11114 else
11115   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11116   lt_status=$lt_dlunknown
11117   cat > conftest.$ac_ext <<_LT_EOF
11118 #line $LINENO "configure"
11119 #include "confdefs.h"
11120
11121 #if HAVE_DLFCN_H
11122 #include <dlfcn.h>
11123 #endif
11124
11125 #include <stdio.h>
11126
11127 #ifdef RTLD_GLOBAL
11128 #  define LT_DLGLOBAL           RTLD_GLOBAL
11129 #else
11130 #  ifdef DL_GLOBAL
11131 #    define LT_DLGLOBAL         DL_GLOBAL
11132 #  else
11133 #    define LT_DLGLOBAL         0
11134 #  endif
11135 #endif
11136
11137 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11138    find out it does not work in some platform. */
11139 #ifndef LT_DLLAZY_OR_NOW
11140 #  ifdef RTLD_LAZY
11141 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11142 #  else
11143 #    ifdef DL_LAZY
11144 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11145 #    else
11146 #      ifdef RTLD_NOW
11147 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11148 #      else
11149 #        ifdef DL_NOW
11150 #          define LT_DLLAZY_OR_NOW      DL_NOW
11151 #        else
11152 #          define LT_DLLAZY_OR_NOW      0
11153 #        endif
11154 #      endif
11155 #    endif
11156 #  endif
11157 #endif
11158
11159 /* When -fvisbility=hidden is used, assume the code has been annotated
11160    correspondingly for the symbols needed.  */
11161 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11162 int fnord () __attribute__((visibility("default")));
11163 #endif
11164
11165 int fnord () { return 42; }
11166 int main ()
11167 {
11168   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11169   int status = $lt_dlunknown;
11170
11171   if (self)
11172     {
11173       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11174       else
11175         {
11176           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11177           else puts (dlerror ());
11178         }
11179       /* dlclose (self); */
11180     }
11181   else
11182     puts (dlerror ());
11183
11184   return status;
11185 }
11186 _LT_EOF
11187   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11188   (eval $ac_link) 2>&5
11189   ac_status=$?
11190   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11191   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11192     (./conftest; exit; ) >&5 2>/dev/null
11193     lt_status=$?
11194     case x$lt_status in
11195       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11196       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11197       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11198     esac
11199   else :
11200     # compilation failed
11201     lt_cv_dlopen_self=no
11202   fi
11203 fi
11204 rm -fr conftest*
11205
11206     
11207 fi
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11209 $as_echo "$lt_cv_dlopen_self" >&6; }
11210
11211     if test "x$lt_cv_dlopen_self" = xyes; then
11212       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11213       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11214 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11215 if ${lt_cv_dlopen_self_static+:} false; then :
11216   $as_echo_n "(cached) " >&6
11217 else
11218           if test "$cross_compiling" = yes; then :
11219   lt_cv_dlopen_self_static=cross
11220 else
11221   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11222   lt_status=$lt_dlunknown
11223   cat > conftest.$ac_ext <<_LT_EOF
11224 #line $LINENO "configure"
11225 #include "confdefs.h"
11226
11227 #if HAVE_DLFCN_H
11228 #include <dlfcn.h>
11229 #endif
11230
11231 #include <stdio.h>
11232
11233 #ifdef RTLD_GLOBAL
11234 #  define LT_DLGLOBAL           RTLD_GLOBAL
11235 #else
11236 #  ifdef DL_GLOBAL
11237 #    define LT_DLGLOBAL         DL_GLOBAL
11238 #  else
11239 #    define LT_DLGLOBAL         0
11240 #  endif
11241 #endif
11242
11243 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11244    find out it does not work in some platform. */
11245 #ifndef LT_DLLAZY_OR_NOW
11246 #  ifdef RTLD_LAZY
11247 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11248 #  else
11249 #    ifdef DL_LAZY
11250 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11251 #    else
11252 #      ifdef RTLD_NOW
11253 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11254 #      else
11255 #        ifdef DL_NOW
11256 #          define LT_DLLAZY_OR_NOW      DL_NOW
11257 #        else
11258 #          define LT_DLLAZY_OR_NOW      0
11259 #        endif
11260 #      endif
11261 #    endif
11262 #  endif
11263 #endif
11264
11265 /* When -fvisbility=hidden is used, assume the code has been annotated
11266    correspondingly for the symbols needed.  */
11267 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11268 int fnord () __attribute__((visibility("default")));
11269 #endif
11270
11271 int fnord () { return 42; }
11272 int main ()
11273 {
11274   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11275   int status = $lt_dlunknown;
11276
11277   if (self)
11278     {
11279       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11280       else
11281         {
11282           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11283           else puts (dlerror ());
11284         }
11285       /* dlclose (self); */
11286     }
11287   else
11288     puts (dlerror ());
11289
11290   return status;
11291 }
11292 _LT_EOF
11293   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11294   (eval $ac_link) 2>&5
11295   ac_status=$?
11296   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11297   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11298     (./conftest; exit; ) >&5 2>/dev/null
11299     lt_status=$?
11300     case x$lt_status in
11301       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11302       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11303       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11304     esac
11305   else :
11306     # compilation failed
11307     lt_cv_dlopen_self_static=no
11308   fi
11309 fi
11310 rm -fr conftest*
11311
11312       
11313 fi
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11315 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11316     fi
11317
11318     CPPFLAGS="$save_CPPFLAGS"
11319     LDFLAGS="$save_LDFLAGS"
11320     LIBS="$save_LIBS"
11321     ;;
11322   esac
11323
11324   case $lt_cv_dlopen_self in
11325   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11326   *) enable_dlopen_self=unknown ;;
11327   esac
11328
11329   case $lt_cv_dlopen_self_static in
11330   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11331   *) enable_dlopen_self_static=unknown ;;
11332   esac
11333 fi
11334
11335     
11336     
11337     
11338
11339
11340     
11341     
11342     
11343
11344
11345     
11346     
11347     
11348
11349
11350   
11351 striplib=
11352 old_striplib=
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11354 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11355 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11356   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11357   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11359 $as_echo "yes" >&6; }
11360 else
11361 # FIXME - insert some real tests, host_os isn't really good enough
11362   case $host_os in
11363   darwin*)
11364     if test -n "$STRIP" ; then
11365       striplib="$STRIP -x"
11366       old_striplib="$STRIP -S"
11367       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11368 $as_echo "yes" >&6; }
11369     else
11370       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11371 $as_echo "no" >&6; }
11372     fi
11373     ;;
11374   *)
11375     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11376 $as_echo "no" >&6; }
11377     ;;
11378   esac
11379 fi
11380
11381     
11382     
11383     
11384
11385
11386     
11387     
11388     
11389
11390
11391
11392   # Report which library types will actually be built
11393   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11394 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11396 $as_echo "$can_build_shared" >&6; }
11397
11398   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11399 $as_echo_n "checking whether to build shared libraries... " >&6; }
11400   test "$can_build_shared" = "no" && enable_shared=no
11401
11402   # On AIX, shared libraries and static libraries use the same namespace, and
11403   # are all built from PIC.
11404   case $host_os in
11405   aix3*)
11406     test "$enable_shared" = yes && enable_static=no
11407     if test -n "$RANLIB"; then
11408       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11409       postinstall_cmds='$RANLIB $lib'
11410     fi
11411     ;;
11412
11413   aix[4-9]*)
11414     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11415       test "$enable_shared" = yes && enable_static=no
11416     fi
11417     ;;
11418   esac
11419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11420 $as_echo "$enable_shared" >&6; }
11421
11422   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11423 $as_echo_n "checking whether to build static libraries... " >&6; }
11424   # Make sure either enable_shared or enable_static is yes.
11425   test "$enable_shared" = yes || enable_static=yes
11426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11427 $as_echo "$enable_static" >&6; }
11428
11429   
11430
11431
11432 fi
11433 ac_ext=c
11434 ac_cpp='$CPP $CPPFLAGS'
11435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11438
11439 CC="$lt_save_CC"
11440
11441
11442
11443
11444
11445
11446
11447
11448        
11449        
11450
11451
11452
11453
11454
11455         ac_config_commands="$ac_config_commands libtool"
11456
11457
11458
11459
11460 # Only expand once:
11461
11462
11463 ac_config_headers="$ac_config_headers config.h"
11464
11465 ac_config_files="$ac_config_files Makefile doc/Makefile doc/Doxyfile src/Makefile programs/Makefile"
11466
11467 ac_ext=c
11468 ac_cpp='$CPP $CPPFLAGS'
11469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11472 if test -n "$ac_tool_prefix"; then
11473   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11474 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11476 $as_echo_n "checking for $ac_word... " >&6; }
11477 if ${ac_cv_prog_CC+:} false; then :
11478   $as_echo_n "(cached) " >&6
11479 else
11480   if test -n "$CC"; then
11481   ac_cv_prog_CC="$CC" # Let the user override the test.
11482 else
11483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11484 for as_dir in $PATH
11485 do
11486   IFS=$as_save_IFS
11487   test -z "$as_dir" && as_dir=.
11488     for ac_exec_ext in '' $ac_executable_extensions; do
11489   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11490     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11491     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11492     break 2
11493   fi
11494 done
11495   done
11496 IFS=$as_save_IFS
11497
11498 fi
11499 fi
11500 CC=$ac_cv_prog_CC
11501 if test -n "$CC"; then
11502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11503 $as_echo "$CC" >&6; }
11504 else
11505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11506 $as_echo "no" >&6; }
11507 fi
11508
11509
11510 fi
11511 if test -z "$ac_cv_prog_CC"; then
11512   ac_ct_CC=$CC
11513   # Extract the first word of "gcc", so it can be a program name with args.
11514 set dummy gcc; ac_word=$2
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11516 $as_echo_n "checking for $ac_word... " >&6; }
11517 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11518   $as_echo_n "(cached) " >&6
11519 else
11520   if test -n "$ac_ct_CC"; then
11521   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11522 else
11523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11524 for as_dir in $PATH
11525 do
11526   IFS=$as_save_IFS
11527   test -z "$as_dir" && as_dir=.
11528     for ac_exec_ext in '' $ac_executable_extensions; do
11529   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11530     ac_cv_prog_ac_ct_CC="gcc"
11531     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11532     break 2
11533   fi
11534 done
11535   done
11536 IFS=$as_save_IFS
11537
11538 fi
11539 fi
11540 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11541 if test -n "$ac_ct_CC"; then
11542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11543 $as_echo "$ac_ct_CC" >&6; }
11544 else
11545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11546 $as_echo "no" >&6; }
11547 fi
11548
11549   if test "x$ac_ct_CC" = x; then
11550     CC=""
11551   else
11552     case $cross_compiling:$ac_tool_warned in
11553 yes:)
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11555 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11556 ac_tool_warned=yes ;;
11557 esac
11558     CC=$ac_ct_CC
11559   fi
11560 else
11561   CC="$ac_cv_prog_CC"
11562 fi
11563
11564 if test -z "$CC"; then
11565           if test -n "$ac_tool_prefix"; then
11566     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11567 set dummy ${ac_tool_prefix}cc; ac_word=$2
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11569 $as_echo_n "checking for $ac_word... " >&6; }
11570 if ${ac_cv_prog_CC+:} false; then :
11571   $as_echo_n "(cached) " >&6
11572 else
11573   if test -n "$CC"; then
11574   ac_cv_prog_CC="$CC" # Let the user override the test.
11575 else
11576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11577 for as_dir in $PATH
11578 do
11579   IFS=$as_save_IFS
11580   test -z "$as_dir" && as_dir=.
11581     for ac_exec_ext in '' $ac_executable_extensions; do
11582   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11583     ac_cv_prog_CC="${ac_tool_prefix}cc"
11584     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11585     break 2
11586   fi
11587 done
11588   done
11589 IFS=$as_save_IFS
11590
11591 fi
11592 fi
11593 CC=$ac_cv_prog_CC
11594 if test -n "$CC"; then
11595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11596 $as_echo "$CC" >&6; }
11597 else
11598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11599 $as_echo "no" >&6; }
11600 fi
11601
11602
11603   fi
11604 fi
11605 if test -z "$CC"; then
11606   # Extract the first word of "cc", so it can be a program name with args.
11607 set dummy cc; ac_word=$2
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11609 $as_echo_n "checking for $ac_word... " >&6; }
11610 if ${ac_cv_prog_CC+:} false; then :
11611   $as_echo_n "(cached) " >&6
11612 else
11613   if test -n "$CC"; then
11614   ac_cv_prog_CC="$CC" # Let the user override the test.
11615 else
11616   ac_prog_rejected=no
11617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11618 for as_dir in $PATH
11619 do
11620   IFS=$as_save_IFS
11621   test -z "$as_dir" && as_dir=.
11622     for ac_exec_ext in '' $ac_executable_extensions; do
11623   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11624     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11625        ac_prog_rejected=yes
11626        continue
11627      fi
11628     ac_cv_prog_CC="cc"
11629     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11630     break 2
11631   fi
11632 done
11633   done
11634 IFS=$as_save_IFS
11635
11636 if test $ac_prog_rejected = yes; then
11637   # We found a bogon in the path, so make sure we never use it.
11638   set dummy $ac_cv_prog_CC
11639   shift
11640   if test $@%:@ != 0; then
11641     # We chose a different compiler from the bogus one.
11642     # However, it has the same basename, so the bogon will be chosen
11643     # first if we set CC to just the basename; use the full file name.
11644     shift
11645     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11646   fi
11647 fi
11648 fi
11649 fi
11650 CC=$ac_cv_prog_CC
11651 if test -n "$CC"; then
11652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11653 $as_echo "$CC" >&6; }
11654 else
11655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11656 $as_echo "no" >&6; }
11657 fi
11658
11659
11660 fi
11661 if test -z "$CC"; then
11662   if test -n "$ac_tool_prefix"; then
11663   for ac_prog in cl.exe
11664   do
11665     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11666 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11668 $as_echo_n "checking for $ac_word... " >&6; }
11669 if ${ac_cv_prog_CC+:} false; then :
11670   $as_echo_n "(cached) " >&6
11671 else
11672   if test -n "$CC"; then
11673   ac_cv_prog_CC="$CC" # Let the user override the test.
11674 else
11675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11676 for as_dir in $PATH
11677 do
11678   IFS=$as_save_IFS
11679   test -z "$as_dir" && as_dir=.
11680     for ac_exec_ext in '' $ac_executable_extensions; do
11681   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11682     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11683     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11684     break 2
11685   fi
11686 done
11687   done
11688 IFS=$as_save_IFS
11689
11690 fi
11691 fi
11692 CC=$ac_cv_prog_CC
11693 if test -n "$CC"; then
11694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11695 $as_echo "$CC" >&6; }
11696 else
11697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11698 $as_echo "no" >&6; }
11699 fi
11700
11701
11702     test -n "$CC" && break
11703   done
11704 fi
11705 if test -z "$CC"; then
11706   ac_ct_CC=$CC
11707   for ac_prog in cl.exe
11708 do
11709   # Extract the first word of "$ac_prog", so it can be a program name with args.
11710 set dummy $ac_prog; ac_word=$2
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11712 $as_echo_n "checking for $ac_word... " >&6; }
11713 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11714   $as_echo_n "(cached) " >&6
11715 else
11716   if test -n "$ac_ct_CC"; then
11717   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11718 else
11719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11720 for as_dir in $PATH
11721 do
11722   IFS=$as_save_IFS
11723   test -z "$as_dir" && as_dir=.
11724     for ac_exec_ext in '' $ac_executable_extensions; do
11725   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11726     ac_cv_prog_ac_ct_CC="$ac_prog"
11727     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11728     break 2
11729   fi
11730 done
11731   done
11732 IFS=$as_save_IFS
11733
11734 fi
11735 fi
11736 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11737 if test -n "$ac_ct_CC"; then
11738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11739 $as_echo "$ac_ct_CC" >&6; }
11740 else
11741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11742 $as_echo "no" >&6; }
11743 fi
11744
11745
11746   test -n "$ac_ct_CC" && break
11747 done
11748
11749   if test "x$ac_ct_CC" = x; then
11750     CC=""
11751   else
11752     case $cross_compiling:$ac_tool_warned in
11753 yes:)
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11755 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11756 ac_tool_warned=yes ;;
11757 esac
11758     CC=$ac_ct_CC
11759   fi
11760 fi
11761
11762 fi
11763
11764
11765 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11766 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11767 as_fn_error $? "no acceptable C compiler found in \$PATH
11768 See \`config.log' for more details" "$LINENO" 5; }
11769
11770 # Provide some information about the compiler.
11771 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11772 set X $ac_compile
11773 ac_compiler=$2
11774 for ac_option in --version -v -V -qversion; do
11775   { { ac_try="$ac_compiler $ac_option >&5"
11776 case "(($ac_try" in
11777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11778   *) ac_try_echo=$ac_try;;
11779 esac
11780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11781 $as_echo "$ac_try_echo"; } >&5
11782   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11783   ac_status=$?
11784   if test -s conftest.err; then
11785     sed '10a\
11786 ... rest of stderr output deleted ...
11787          10q' conftest.err >conftest.er1
11788     cat conftest.er1 >&5
11789   fi
11790   rm -f conftest.er1 conftest.err
11791   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11792   test $ac_status = 0; }
11793 done
11794
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11796 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11797 if ${ac_cv_c_compiler_gnu+:} false; then :
11798   $as_echo_n "(cached) " >&6
11799 else
11800   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11801 /* end confdefs.h.  */
11802
11803 int
11804 main ()
11805 {
11806 #ifndef __GNUC__
11807        choke me
11808 #endif
11809
11810   ;
11811   return 0;
11812 }
11813 _ACEOF
11814 if ac_fn_c_try_compile "$LINENO"; then :
11815   ac_compiler_gnu=yes
11816 else
11817   ac_compiler_gnu=no
11818 fi
11819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11820 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11821
11822 fi
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11824 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11825 if test $ac_compiler_gnu = yes; then
11826   GCC=yes
11827 else
11828   GCC=
11829 fi
11830 ac_test_CFLAGS=${CFLAGS+set}
11831 ac_save_CFLAGS=$CFLAGS
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11833 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11834 if ${ac_cv_prog_cc_g+:} false; then :
11835   $as_echo_n "(cached) " >&6
11836 else
11837   ac_save_c_werror_flag=$ac_c_werror_flag
11838    ac_c_werror_flag=yes
11839    ac_cv_prog_cc_g=no
11840    CFLAGS="-g"
11841    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11842 /* end confdefs.h.  */
11843
11844 int
11845 main ()
11846 {
11847
11848   ;
11849   return 0;
11850 }
11851 _ACEOF
11852 if ac_fn_c_try_compile "$LINENO"; then :
11853   ac_cv_prog_cc_g=yes
11854 else
11855   CFLAGS=""
11856       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11857 /* end confdefs.h.  */
11858
11859 int
11860 main ()
11861 {
11862
11863   ;
11864   return 0;
11865 }
11866 _ACEOF
11867 if ac_fn_c_try_compile "$LINENO"; then :
11868   
11869 else
11870   ac_c_werror_flag=$ac_save_c_werror_flag
11871          CFLAGS="-g"
11872          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11873 /* end confdefs.h.  */
11874
11875 int
11876 main ()
11877 {
11878
11879   ;
11880   return 0;
11881 }
11882 _ACEOF
11883 if ac_fn_c_try_compile "$LINENO"; then :
11884   ac_cv_prog_cc_g=yes
11885 fi
11886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11887 fi
11888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11889 fi
11890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11891    ac_c_werror_flag=$ac_save_c_werror_flag
11892 fi
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11894 $as_echo "$ac_cv_prog_cc_g" >&6; }
11895 if test "$ac_test_CFLAGS" = set; then
11896   CFLAGS=$ac_save_CFLAGS
11897 elif test $ac_cv_prog_cc_g = yes; then
11898   if test "$GCC" = yes; then
11899     CFLAGS="-g -O2"
11900   else
11901     CFLAGS="-g"
11902   fi
11903 else
11904   if test "$GCC" = yes; then
11905     CFLAGS="-O2"
11906   else
11907     CFLAGS=
11908   fi
11909 fi
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11911 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11912 if ${ac_cv_prog_cc_c89+:} false; then :
11913   $as_echo_n "(cached) " >&6
11914 else
11915   ac_cv_prog_cc_c89=no
11916 ac_save_CC=$CC
11917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11918 /* end confdefs.h.  */
11919 #include <stdarg.h>
11920 #include <stdio.h>
11921 struct stat;
11922 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11923 struct buf { int x; };
11924 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11925 static char *e (p, i)
11926      char **p;
11927      int i;
11928 {
11929   return p[i];
11930 }
11931 static char *f (char * (*g) (char **, int), char **p, ...)
11932 {
11933   char *s;
11934   va_list v;
11935   va_start (v,p);
11936   s = g (p, va_arg (v,int));
11937   va_end (v);
11938   return s;
11939 }
11940
11941 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11942    function prototypes and stuff, but not '\xHH' hex character constants.
11943    These don't provoke an error unfortunately, instead are silently treated
11944    as 'x'.  The following induces an error, until -std is added to get
11945    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11946    array size at least.  It's necessary to write '\x00'==0 to get something
11947    that's true only with -std.  */
11948 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11949
11950 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11951    inside strings and character constants.  */
11952 #define FOO(x) 'x'
11953 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11954
11955 int test (int i, double x);
11956 struct s1 {int (*f) (int a);};
11957 struct s2 {int (*f) (double a);};
11958 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11959 int argc;
11960 char **argv;
11961 int
11962 main ()
11963 {
11964 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11965   ;
11966   return 0;
11967 }
11968 _ACEOF
11969 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11970         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11971 do
11972   CC="$ac_save_CC $ac_arg"
11973   if ac_fn_c_try_compile "$LINENO"; then :
11974   ac_cv_prog_cc_c89=$ac_arg
11975 fi
11976 rm -f core conftest.err conftest.$ac_objext
11977   test "x$ac_cv_prog_cc_c89" != "xno" && break
11978 done
11979 rm -f conftest.$ac_ext
11980 CC=$ac_save_CC
11981
11982 fi
11983 # AC_CACHE_VAL
11984 case "x$ac_cv_prog_cc_c89" in
11985   x)
11986     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11987 $as_echo "none needed" >&6; } ;;
11988   xno)
11989     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11990 $as_echo "unsupported" >&6; } ;;
11991   *)
11992     CC="$CC $ac_cv_prog_cc_c89"
11993     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11994 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11995 esac
11996 if test "x$ac_cv_prog_cc_c89" != xno; then :
11997   
11998 fi
11999
12000 ac_ext=c
12001 ac_cpp='$CPP $CPPFLAGS'
12002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12005
12006 depcc="$CC"   am_compiler_list=
12007
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12009 $as_echo_n "checking dependency style of $depcc... " >&6; }
12010 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12011   $as_echo_n "(cached) " >&6
12012 else
12013   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12014   # We make a subdir and do the tests there.  Otherwise we can end up
12015   # making bogus files that we don't know about and never remove.  For
12016   # instance it was reported that on HP-UX the gcc test will end up
12017   # making a dummy file named 'D' -- because '-MD' means "put the output
12018   # in D".
12019   rm -rf conftest.dir
12020   mkdir conftest.dir
12021   # Copy depcomp to subdir because otherwise we won't find it if we're
12022   # using a relative directory.
12023   cp "$am_depcomp" conftest.dir
12024   cd conftest.dir
12025   # We will build objects and dependencies in a subdirectory because
12026   # it helps to detect inapplicable dependency modes.  For instance
12027   # both Tru64's cc and ICC support -MD to output dependencies as a
12028   # side effect of compilation, but ICC will put the dependencies in
12029   # the current directory while Tru64 will put them in the object
12030   # directory.
12031   mkdir sub
12032
12033   am_cv_CC_dependencies_compiler_type=none
12034   if test "$am_compiler_list" = ""; then
12035      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12036   fi
12037   am__universal=false
12038   case " $depcc " in #(
12039      *\ -arch\ *\ -arch\ *) am__universal=true ;;
12040      esac
12041
12042   for depmode in $am_compiler_list; do
12043     # Setup a source with many dependencies, because some compilers
12044     # like to wrap large dependency lists on column 80 (with \), and
12045     # we should not choose a depcomp mode which is confused by this.
12046     #
12047     # We need to recreate these files for each test, as the compiler may
12048     # overwrite some of them when testing with obscure command lines.
12049     # This happens at least with the AIX C compiler.
12050     : > sub/conftest.c
12051     for i in 1 2 3 4 5 6; do
12052       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12053       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12054       # Solaris 10 /bin/sh.
12055       echo '/* dummy */' > sub/conftst$i.h
12056     done
12057     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12058
12059     # We check with '-c' and '-o' for the sake of the "dashmstdout"
12060     # mode.  It turns out that the SunPro C++ compiler does not properly
12061     # handle '-M -o', and we need to detect this.  Also, some Intel
12062     # versions had trouble with output in subdirs.
12063     am__obj=sub/conftest.${OBJEXT-o}
12064     am__minus_obj="-o $am__obj"
12065     case $depmode in
12066     gcc)
12067       # This depmode causes a compiler race in universal mode.
12068       test "$am__universal" = false || continue
12069       ;;
12070     nosideeffect)
12071       # After this tag, mechanisms are not by side-effect, so they'll
12072       # only be used when explicitly requested.
12073       if test "x$enable_dependency_tracking" = xyes; then
12074         continue
12075       else
12076         break
12077       fi
12078       ;;
12079     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12080       # This compiler won't grok '-c -o', but also, the minuso test has
12081       # not run yet.  These depmodes are late enough in the game, and
12082       # so weak that their functioning should not be impacted.
12083       am__obj=conftest.${OBJEXT-o}
12084       am__minus_obj=
12085       ;;
12086     none) break ;;
12087     esac
12088     if depmode=$depmode \
12089        source=sub/conftest.c object=$am__obj \
12090        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12091        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12092          >/dev/null 2>conftest.err &&
12093        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12094        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12095        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12096        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12097       # icc doesn't choke on unknown options, it will just issue warnings
12098       # or remarks (even with -Werror).  So we grep stderr for any message
12099       # that says an option was ignored or not supported.
12100       # When given -MP, icc 7.0 and 7.1 complain thusly:
12101       #   icc: Command line warning: ignoring option '-M'; no argument required
12102       # The diagnosis changed in icc 8.0:
12103       #   icc: Command line remark: option '-MP' not supported
12104       if (grep 'ignoring option' conftest.err ||
12105           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12106         am_cv_CC_dependencies_compiler_type=$depmode
12107         break
12108       fi
12109     fi
12110   done
12111
12112   cd ..
12113   rm -rf conftest.dir
12114 else
12115   am_cv_CC_dependencies_compiler_type=none
12116 fi
12117
12118 fi
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12120 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12121 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12122
12123  if 
12124   test "x$enable_dependency_tracking" != xno \
12125   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12126   am__fastdepCC_TRUE=
12127   am__fastdepCC_FALSE='#'
12128 else
12129   am__fastdepCC_TRUE='#'
12130   am__fastdepCC_FALSE=
12131 fi
12132
12133
12134
12135
12136       if test "X$prefix" = "XNONE"; then
12137     acl_final_prefix="$ac_default_prefix"
12138   else
12139     acl_final_prefix="$prefix"
12140   fi
12141   if test "X$exec_prefix" = "XNONE"; then
12142     acl_final_exec_prefix='${prefix}'
12143   else
12144     acl_final_exec_prefix="$exec_prefix"
12145   fi
12146   acl_save_prefix="$prefix"
12147   prefix="$acl_final_prefix"
12148   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
12149   prefix="$acl_save_prefix"
12150
12151
12152 @%:@ Check whether --with-gnu-ld was given.
12153 if test "${with_gnu_ld+set}" = set; then :
12154   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12155 else
12156   with_gnu_ld=no
12157 fi
12158
12159 # Prepare PATH_SEPARATOR.
12160 # The user is always right.
12161 if test "${PATH_SEPARATOR+set}" != set; then
12162   echo "#! /bin/sh" >conf$$.sh
12163   echo  "exit 0"   >>conf$$.sh
12164   chmod +x conf$$.sh
12165   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12166     PATH_SEPARATOR=';'
12167   else
12168     PATH_SEPARATOR=:
12169   fi
12170   rm -f conf$$.sh
12171 fi
12172 ac_prog=ld
12173 if test "$GCC" = yes; then
12174   # Check if gcc -print-prog-name=ld gives a path.
12175   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
12176 $as_echo_n "checking for ld used by GCC... " >&6; }
12177   case $host in
12178   *-*-mingw*)
12179     # gcc leaves a trailing carriage return which upsets mingw
12180     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12181   *)
12182     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12183   esac
12184   case $ac_prog in
12185     # Accept absolute paths.
12186     [\\/]* | [A-Za-z]:[\\/]*)
12187       re_direlt='/[^/][^/]*/\.\./'
12188       # Canonicalize the path of ld
12189       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
12190       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12191         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
12192       done
12193       test -z "$LD" && LD="$ac_prog"
12194       ;;
12195   "")
12196     # If it fails, then pretend we aren't using GCC.
12197     ac_prog=ld
12198     ;;
12199   *)
12200     # If it is relative, then search for the first ld in PATH.
12201     with_gnu_ld=unknown
12202     ;;
12203   esac
12204 elif test "$with_gnu_ld" = yes; then
12205   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12206 $as_echo_n "checking for GNU ld... " >&6; }
12207 else
12208   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12209 $as_echo_n "checking for non-GNU ld... " >&6; }
12210 fi
12211 if ${acl_cv_path_LD+:} false; then :
12212   $as_echo_n "(cached) " >&6
12213 else
12214   if test -z "$LD"; then
12215   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
12216   for ac_dir in $PATH; do
12217     test -z "$ac_dir" && ac_dir=.
12218     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12219       acl_cv_path_LD="$ac_dir/$ac_prog"
12220       # Check to see if the program is GNU ld.  I'd rather use --version,
12221       # but apparently some GNU ld's only accept -v.
12222       # Break only if it was the GNU/non-GNU ld that we prefer.
12223       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
12224       *GNU* | *'with BFD'*)
12225         test "$with_gnu_ld" != no && break ;;
12226       *)
12227         test "$with_gnu_ld" != yes && break ;;
12228       esac
12229     fi
12230   done
12231   IFS="$ac_save_ifs"
12232 else
12233   acl_cv_path_LD="$LD" # Let the user override the test with a path.
12234 fi
12235 fi
12236
12237 LD="$acl_cv_path_LD"
12238 if test -n "$LD"; then
12239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12240 $as_echo "$LD" >&6; }
12241 else
12242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12243 $as_echo "no" >&6; }
12244 fi
12245 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12247 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12248 if ${acl_cv_prog_gnu_ld+:} false; then :
12249   $as_echo_n "(cached) " >&6
12250 else
12251   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12252 case `$LD -v 2>&1 </dev/null` in
12253 *GNU* | *'with BFD'*)
12254   acl_cv_prog_gnu_ld=yes ;;
12255 *)
12256   acl_cv_prog_gnu_ld=no ;;
12257 esac
12258 fi
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
12260 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
12261 with_gnu_ld=$acl_cv_prog_gnu_ld
12262
12263
12264
12265     
12266                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
12267 $as_echo_n "checking for shared library run path origin... " >&6; }
12268 if ${acl_cv_rpath+:} false; then :
12269   $as_echo_n "(cached) " >&6
12270 else
12271   
12272     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
12273     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
12274     . ./conftest.sh
12275     rm -f ./conftest.sh
12276     acl_cv_rpath=done
12277   
12278 fi
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
12280 $as_echo "$acl_cv_rpath" >&6; }
12281   wl="$acl_cv_wl"
12282   acl_libext="$acl_cv_libext"
12283   acl_shlibext="$acl_cv_shlibext"
12284   acl_libname_spec="$acl_cv_libname_spec"
12285   acl_library_names_spec="$acl_cv_library_names_spec"
12286   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
12287   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
12288   acl_hardcode_direct="$acl_cv_hardcode_direct"
12289   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
12290     @%:@ Check whether --enable-rpath was given.
12291 if test "${enable_rpath+set}" = set; then :
12292   enableval=$enable_rpath; :
12293 else
12294   enable_rpath=yes
12295 fi
12296
12297
12298
12299                           
12300   acl_libdirstem=lib
12301   acl_libdirstem2=
12302   case "$host_os" in
12303     solaris*)
12304                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
12305 $as_echo_n "checking for 64-bit host... " >&6; }
12306 if ${gl_cv_solaris_64bit+:} false; then :
12307   $as_echo_n "(cached) " >&6
12308 else
12309   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12310 /* end confdefs.h.  */
12311
12312 #ifdef _LP64
12313 sixtyfour bits
12314 #endif
12315            
12316 _ACEOF
12317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12318   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
12319   gl_cv_solaris_64bit=yes
12320 else
12321   gl_cv_solaris_64bit=no
12322 fi
12323 rm -f conftest*
12324
12325         
12326 fi
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
12328 $as_echo "$gl_cv_solaris_64bit" >&6; }
12329       if test $gl_cv_solaris_64bit = yes; then
12330         acl_libdirstem=lib/64
12331         case "$host_cpu" in
12332           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
12333           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
12334         esac
12335       fi
12336       ;;
12337     *)
12338       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
12339       if test -n "$searchpath"; then
12340         acl_save_IFS="${IFS=    }"; IFS=":"
12341         for searchdir in $searchpath; do
12342           if test -d "$searchdir"; then
12343             case "$searchdir" in
12344               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
12345               */../ | */.. )
12346                 # Better ignore directories of this form. They are misleading.
12347                 ;;
12348               *) searchdir=`cd "$searchdir" && pwd`
12349                  case "$searchdir" in
12350                    */lib64 ) acl_libdirstem=lib64 ;;
12351                  esac ;;
12352             esac
12353           fi
12354         done
12355         IFS="$acl_save_IFS"
12356       fi
12357       ;;
12358   esac
12359   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
12360
12361
12362     
12363   
12364
12365       
12366   
12367   
12368   
12369   
12370   
12371     
12372     use_additional=yes
12373   
12374   acl_save_prefix="$prefix"
12375   prefix="$acl_final_prefix"
12376   acl_save_exec_prefix="$exec_prefix"
12377   exec_prefix="$acl_final_exec_prefix"
12378   
12379     eval additional_includedir=\"$includedir\"
12380     eval additional_libdir=\"$libdir\"
12381   
12382   exec_prefix="$acl_save_exec_prefix"
12383   prefix="$acl_save_prefix"
12384
12385   
12386 @%:@ Check whether --with-libiconv-prefix was given.
12387 if test "${with_libiconv_prefix+set}" = set; then :
12388   withval=$with_libiconv_prefix; 
12389     if test "X$withval" = "Xno"; then
12390       use_additional=no
12391     else
12392       if test "X$withval" = "X"; then
12393         
12394   acl_save_prefix="$prefix"
12395   prefix="$acl_final_prefix"
12396   acl_save_exec_prefix="$exec_prefix"
12397   exec_prefix="$acl_final_exec_prefix"
12398   
12399           eval additional_includedir=\"$includedir\"
12400           eval additional_libdir=\"$libdir\"
12401         
12402   exec_prefix="$acl_save_exec_prefix"
12403   prefix="$acl_save_prefix"
12404
12405       else
12406         additional_includedir="$withval/include"
12407         additional_libdir="$withval/$acl_libdirstem"
12408         if test "$acl_libdirstem2" != "$acl_libdirstem" \
12409            && ! test -d "$withval/$acl_libdirstem"; then
12410           additional_libdir="$withval/$acl_libdirstem2"
12411         fi
12412       fi
12413     fi
12414
12415 fi
12416
12417       LIBICONV=
12418   LTLIBICONV=
12419   INCICONV=
12420   LIBICONV_PREFIX=
12421       HAVE_LIBICONV=
12422   rpathdirs=
12423   ltrpathdirs=
12424   names_already_handled=
12425   names_next_round='iconv '
12426   while test -n "$names_next_round"; do
12427     names_this_round="$names_next_round"
12428     names_next_round=
12429     for name in $names_this_round; do
12430       already_handled=
12431       for n in $names_already_handled; do
12432         if test "$n" = "$name"; then
12433           already_handled=yes
12434           break
12435         fi
12436       done
12437       if test -z "$already_handled"; then
12438         names_already_handled="$names_already_handled $name"
12439                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12440         eval value=\"\$HAVE_LIB$uppername\"
12441         if test -n "$value"; then
12442           if test "$value" = yes; then
12443             eval value=\"\$LIB$uppername\"
12444             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
12445             eval value=\"\$LTLIB$uppername\"
12446             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
12447           else
12448                                     :
12449           fi
12450         else
12451                               found_dir=
12452           found_la=
12453           found_so=
12454           found_a=
12455           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
12456           if test -n "$acl_shlibext"; then
12457             shrext=".$acl_shlibext"             # typically: shrext=.so
12458           else
12459             shrext=
12460           fi
12461           if test $use_additional = yes; then
12462             dir="$additional_libdir"
12463                                     if test -n "$acl_shlibext"; then
12464               if test -f "$dir/$libname$shrext"; then
12465                 found_dir="$dir"
12466                 found_so="$dir/$libname$shrext"
12467               else
12468                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12469                   ver=`(cd "$dir" && \
12470                         for f in "$libname$shrext".*; do echo "$f"; done \
12471                         | sed -e "s,^$libname$shrext\\\\.,," \
12472                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12473                         | sed 1q ) 2>/dev/null`
12474                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12475                     found_dir="$dir"
12476                     found_so="$dir/$libname$shrext.$ver"
12477                   fi
12478                 else
12479                   eval library_names=\"$acl_library_names_spec\"
12480                   for f in $library_names; do
12481                     if test -f "$dir/$f"; then
12482                       found_dir="$dir"
12483                       found_so="$dir/$f"
12484                       break
12485                     fi
12486                   done
12487                 fi
12488               fi
12489             fi
12490                         if test "X$found_dir" = "X"; then
12491               if test -f "$dir/$libname.$acl_libext"; then
12492                 found_dir="$dir"
12493                 found_a="$dir/$libname.$acl_libext"
12494               fi
12495             fi
12496             if test "X$found_dir" != "X"; then
12497               if test -f "$dir/$libname.la"; then
12498                 found_la="$dir/$libname.la"
12499               fi
12500             fi
12501           fi
12502           if test "X$found_dir" = "X"; then
12503             for x in $LDFLAGS $LTLIBICONV; do
12504               
12505   acl_save_prefix="$prefix"
12506   prefix="$acl_final_prefix"
12507   acl_save_exec_prefix="$exec_prefix"
12508   exec_prefix="$acl_final_exec_prefix"
12509   eval x=\"$x\"
12510   exec_prefix="$acl_save_exec_prefix"
12511   prefix="$acl_save_prefix"
12512
12513               case "$x" in
12514                 -L*)
12515                   dir=`echo "X$x" | sed -e 's/^X-L//'`
12516                                     if test -n "$acl_shlibext"; then
12517                     if test -f "$dir/$libname$shrext"; then
12518                       found_dir="$dir"
12519                       found_so="$dir/$libname$shrext"
12520                     else
12521                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12522                         ver=`(cd "$dir" && \
12523                               for f in "$libname$shrext".*; do echo "$f"; done \
12524                               | sed -e "s,^$libname$shrext\\\\.,," \
12525                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12526                               | sed 1q ) 2>/dev/null`
12527                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12528                           found_dir="$dir"
12529                           found_so="$dir/$libname$shrext.$ver"
12530                         fi
12531                       else
12532                         eval library_names=\"$acl_library_names_spec\"
12533                         for f in $library_names; do
12534                           if test -f "$dir/$f"; then
12535                             found_dir="$dir"
12536                             found_so="$dir/$f"
12537                             break
12538                           fi
12539                         done
12540                       fi
12541                     fi
12542                   fi
12543                                     if test "X$found_dir" = "X"; then
12544                     if test -f "$dir/$libname.$acl_libext"; then
12545                       found_dir="$dir"
12546                       found_a="$dir/$libname.$acl_libext"
12547                     fi
12548                   fi
12549                   if test "X$found_dir" != "X"; then
12550                     if test -f "$dir/$libname.la"; then
12551                       found_la="$dir/$libname.la"
12552                     fi
12553                   fi
12554                   ;;
12555               esac
12556               if test "X$found_dir" != "X"; then
12557                 break
12558               fi
12559             done
12560           fi
12561           if test "X$found_dir" != "X"; then
12562                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
12563             if test "X$found_so" != "X"; then
12564                                                         if test "$enable_rpath" = no \
12565                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
12566                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
12567                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12568               else
12569                                                                                 haveit=
12570                 for x in $ltrpathdirs; do
12571                   if test "X$x" = "X$found_dir"; then
12572                     haveit=yes
12573                     break
12574                   fi
12575                 done
12576                 if test -z "$haveit"; then
12577                   ltrpathdirs="$ltrpathdirs $found_dir"
12578                 fi
12579                                 if test "$acl_hardcode_direct" = yes; then
12580                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12581                 else
12582                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
12583                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12584                                                             haveit=
12585                     for x in $rpathdirs; do
12586                       if test "X$x" = "X$found_dir"; then
12587                         haveit=yes
12588                         break
12589                       fi
12590                     done
12591                     if test -z "$haveit"; then
12592                       rpathdirs="$rpathdirs $found_dir"
12593                     fi
12594                   else
12595                                                                                 haveit=
12596                     for x in $LDFLAGS $LIBICONV; do
12597                       
12598   acl_save_prefix="$prefix"
12599   prefix="$acl_final_prefix"
12600   acl_save_exec_prefix="$exec_prefix"
12601   exec_prefix="$acl_final_exec_prefix"
12602   eval x=\"$x\"
12603   exec_prefix="$acl_save_exec_prefix"
12604   prefix="$acl_save_prefix"
12605
12606                       if test "X$x" = "X-L$found_dir"; then
12607                         haveit=yes
12608                         break
12609                       fi
12610                     done
12611                     if test -z "$haveit"; then
12612                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
12613                     fi
12614                     if test "$acl_hardcode_minus_L" != no; then
12615                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12616                     else
12617                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12618                     fi
12619                   fi
12620                 fi
12621               fi
12622             else
12623               if test "X$found_a" != "X"; then
12624                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
12625               else
12626                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
12627               fi
12628             fi
12629                         additional_includedir=
12630             case "$found_dir" in
12631               */$acl_libdirstem | */$acl_libdirstem/)
12632                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12633                 if test "$name" = 'iconv'; then
12634                   LIBICONV_PREFIX="$basedir"
12635                 fi
12636                 additional_includedir="$basedir/include"
12637                 ;;
12638               */$acl_libdirstem2 | */$acl_libdirstem2/)
12639                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
12640                 if test "$name" = 'iconv'; then
12641                   LIBICONV_PREFIX="$basedir"
12642                 fi
12643                 additional_includedir="$basedir/include"
12644                 ;;
12645             esac
12646             if test "X$additional_includedir" != "X"; then
12647                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
12648                 haveit=
12649                 if test "X$additional_includedir" = "X/usr/local/include"; then
12650                   if test -n "$GCC"; then
12651                     case $host_os in
12652                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12653                     esac
12654                   fi
12655                 fi
12656                 if test -z "$haveit"; then
12657                   for x in $CPPFLAGS $INCICONV; do
12658                     
12659   acl_save_prefix="$prefix"
12660   prefix="$acl_final_prefix"
12661   acl_save_exec_prefix="$exec_prefix"
12662   exec_prefix="$acl_final_exec_prefix"
12663   eval x=\"$x\"
12664   exec_prefix="$acl_save_exec_prefix"
12665   prefix="$acl_save_prefix"
12666
12667                     if test "X$x" = "X-I$additional_includedir"; then
12668                       haveit=yes
12669                       break
12670                     fi
12671                   done
12672                   if test -z "$haveit"; then
12673                     if test -d "$additional_includedir"; then
12674                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
12675                     fi
12676                   fi
12677                 fi
12678               fi
12679             fi
12680                         if test -n "$found_la"; then
12681                                                         save_libdir="$libdir"
12682               case "$found_la" in
12683                 */* | *\\*) . "$found_la" ;;
12684                 *) . "./$found_la" ;;
12685               esac
12686               libdir="$save_libdir"
12687                             for dep in $dependency_libs; do
12688                 case "$dep" in
12689                   -L*)
12690                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12691                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
12692                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
12693                       haveit=
12694                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
12695                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
12696                         if test -n "$GCC"; then
12697                           case $host_os in
12698                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12699                           esac
12700                         fi
12701                       fi
12702                       if test -z "$haveit"; then
12703                         haveit=
12704                         for x in $LDFLAGS $LIBICONV; do
12705                           
12706   acl_save_prefix="$prefix"
12707   prefix="$acl_final_prefix"
12708   acl_save_exec_prefix="$exec_prefix"
12709   exec_prefix="$acl_final_exec_prefix"
12710   eval x=\"$x\"
12711   exec_prefix="$acl_save_exec_prefix"
12712   prefix="$acl_save_prefix"
12713
12714                           if test "X$x" = "X-L$additional_libdir"; then
12715                             haveit=yes
12716                             break
12717                           fi
12718                         done
12719                         if test -z "$haveit"; then
12720                           if test -d "$additional_libdir"; then
12721                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
12722                           fi
12723                         fi
12724                         haveit=
12725                         for x in $LDFLAGS $LTLIBICONV; do
12726                           
12727   acl_save_prefix="$prefix"
12728   prefix="$acl_final_prefix"
12729   acl_save_exec_prefix="$exec_prefix"
12730   exec_prefix="$acl_final_exec_prefix"
12731   eval x=\"$x\"
12732   exec_prefix="$acl_save_exec_prefix"
12733   prefix="$acl_save_prefix"
12734
12735                           if test "X$x" = "X-L$additional_libdir"; then
12736                             haveit=yes
12737                             break
12738                           fi
12739                         done
12740                         if test -z "$haveit"; then
12741                           if test -d "$additional_libdir"; then
12742                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
12743                           fi
12744                         fi
12745                       fi
12746                     fi
12747                     ;;
12748                   -R*)
12749                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
12750                     if test "$enable_rpath" != no; then
12751                                                                   haveit=
12752                       for x in $rpathdirs; do
12753                         if test "X$x" = "X$dir"; then
12754                           haveit=yes
12755                           break
12756                         fi
12757                       done
12758                       if test -z "$haveit"; then
12759                         rpathdirs="$rpathdirs $dir"
12760                       fi
12761                                                                   haveit=
12762                       for x in $ltrpathdirs; do
12763                         if test "X$x" = "X$dir"; then
12764                           haveit=yes
12765                           break
12766                         fi
12767                       done
12768                       if test -z "$haveit"; then
12769                         ltrpathdirs="$ltrpathdirs $dir"
12770                       fi
12771                     fi
12772                     ;;
12773                   -l*)
12774                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12775                     ;;
12776                   *.la)
12777                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12778                     ;;
12779                   *)
12780                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
12781                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
12782                     ;;
12783                 esac
12784               done
12785             fi
12786           else
12787                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12788             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
12789           fi
12790         fi
12791       fi
12792     done
12793   done
12794   if test "X$rpathdirs" != "X"; then
12795     if test -n "$acl_hardcode_libdir_separator"; then
12796                         alldirs=
12797       for found_dir in $rpathdirs; do
12798         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
12799       done
12800             acl_save_libdir="$libdir"
12801       libdir="$alldirs"
12802       eval flag=\"$acl_hardcode_libdir_flag_spec\"
12803       libdir="$acl_save_libdir"
12804       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12805     else
12806             for found_dir in $rpathdirs; do
12807         acl_save_libdir="$libdir"
12808         libdir="$found_dir"
12809         eval flag=\"$acl_hardcode_libdir_flag_spec\"
12810         libdir="$acl_save_libdir"
12811         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12812       done
12813     fi
12814   fi
12815   if test "X$ltrpathdirs" != "X"; then
12816             for found_dir in $ltrpathdirs; do
12817       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
12818     done
12819   fi
12820   
12821   
12822   
12823   
12824   
12825
12826
12827
12828   
12829        
12830       
12831
12832           am_save_CPPFLAGS="$CPPFLAGS"
12833   
12834   for element in $INCICONV; do
12835     haveit=
12836     for x in $CPPFLAGS; do
12837       
12838   acl_save_prefix="$prefix"
12839   prefix="$acl_final_prefix"
12840   acl_save_exec_prefix="$exec_prefix"
12841   exec_prefix="$acl_final_exec_prefix"
12842   eval x=\"$x\"
12843   exec_prefix="$acl_save_exec_prefix"
12844   prefix="$acl_save_prefix"
12845
12846       if test "X$x" = "X$element"; then
12847         haveit=yes
12848         break
12849       fi
12850     done
12851     if test -z "$haveit"; then
12852       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12853     fi
12854   done
12855
12856
12857   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
12858 $as_echo_n "checking for iconv... " >&6; }
12859 if ${am_cv_func_iconv+:} false; then :
12860   $as_echo_n "(cached) " >&6
12861 else
12862   
12863     am_cv_func_iconv="no, consider installing GNU libiconv"
12864     am_cv_lib_iconv=no
12865     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12866 /* end confdefs.h.  */
12867 #include <stdlib.h>
12868 #include <iconv.h>
12869 int
12870 main ()
12871 {
12872 iconv_t cd = iconv_open("","");
12873        iconv(cd,NULL,NULL,NULL,NULL);
12874        iconv_close(cd);
12875   ;
12876   return 0;
12877 }
12878 _ACEOF
12879 if ac_fn_c_try_link "$LINENO"; then :
12880   am_cv_func_iconv=yes
12881 fi
12882 rm -f core conftest.err conftest.$ac_objext \
12883     conftest$ac_exeext conftest.$ac_ext
12884     if test "$am_cv_func_iconv" != yes; then
12885       am_save_LIBS="$LIBS"
12886       LIBS="$LIBS $LIBICONV"
12887       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12888 /* end confdefs.h.  */
12889 #include <stdlib.h>
12890 #include <iconv.h>
12891 int
12892 main ()
12893 {
12894 iconv_t cd = iconv_open("","");
12895          iconv(cd,NULL,NULL,NULL,NULL);
12896          iconv_close(cd);
12897   ;
12898   return 0;
12899 }
12900 _ACEOF
12901 if ac_fn_c_try_link "$LINENO"; then :
12902   am_cv_lib_iconv=yes
12903         am_cv_func_iconv=yes
12904 fi
12905 rm -f core conftest.err conftest.$ac_objext \
12906     conftest$ac_exeext conftest.$ac_ext
12907       LIBS="$am_save_LIBS"
12908     fi
12909   
12910 fi
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
12912 $as_echo "$am_cv_func_iconv" >&6; }
12913   if test "$am_cv_func_iconv" = yes; then
12914     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
12915 $as_echo_n "checking for working iconv... " >&6; }
12916 if ${am_cv_func_iconv_works+:} false; then :
12917   $as_echo_n "(cached) " >&6
12918 else
12919   
12920             am_save_LIBS="$LIBS"
12921       if test $am_cv_lib_iconv = yes; then
12922         LIBS="$LIBS $LIBICONV"
12923       fi
12924       if test "$cross_compiling" = yes; then :
12925   case "$host_os" in
12926            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
12927            *)            am_cv_func_iconv_works="guessing yes" ;;
12928          esac
12929 else
12930   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12931 /* end confdefs.h.  */
12932
12933 #include <iconv.h>
12934 #include <string.h>
12935 int main ()
12936 {
12937   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
12938      returns.  */
12939   {
12940     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
12941     if (cd_utf8_to_88591 != (iconv_t)(-1))
12942       {
12943         static const char input[] = "\342\202\254"; /* EURO SIGN */
12944         char buf[10];
12945         const char *inptr = input;
12946         size_t inbytesleft = strlen (input);
12947         char *outptr = buf;
12948         size_t outbytesleft = sizeof (buf);
12949         size_t res = iconv (cd_utf8_to_88591,
12950                             (char **) &inptr, &inbytesleft,
12951                             &outptr, &outbytesleft);
12952         if (res == 0)
12953           return 1;
12954       }
12955   }
12956   /* Test against Solaris 10 bug: Failures are not distinguishable from
12957      successful returns.  */
12958   {
12959     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
12960     if (cd_ascii_to_88591 != (iconv_t)(-1))
12961       {
12962         static const char input[] = "\263";
12963         char buf[10];
12964         const char *inptr = input;
12965         size_t inbytesleft = strlen (input);
12966         char *outptr = buf;
12967         size_t outbytesleft = sizeof (buf);
12968         size_t res = iconv (cd_ascii_to_88591,
12969                             (char **) &inptr, &inbytesleft,
12970                             &outptr, &outbytesleft);
12971         if (res == 0)
12972           return 1;
12973       }
12974   }
12975 #if 0 /* This bug could be worked around by the caller.  */
12976   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
12977   {
12978     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
12979     if (cd_88591_to_utf8 != (iconv_t)(-1))
12980       {
12981         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
12982         char buf[50];
12983         const char *inptr = input;
12984         size_t inbytesleft = strlen (input);
12985         char *outptr = buf;
12986         size_t outbytesleft = sizeof (buf);
12987         size_t res = iconv (cd_88591_to_utf8,
12988                             (char **) &inptr, &inbytesleft,
12989                             &outptr, &outbytesleft);
12990         if ((int)res > 0)
12991           return 1;
12992       }
12993   }
12994 #endif
12995   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
12996      provided.  */
12997   if (/* Try standardized names.  */
12998       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
12999       /* Try IRIX, OSF/1 names.  */
13000       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
13001       /* Try AIX names.  */
13002       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
13003       /* Try HP-UX names.  */
13004       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
13005     return 1;
13006   return 0;
13007 }
13008 _ACEOF
13009 if ac_fn_c_try_run "$LINENO"; then :
13010   am_cv_func_iconv_works=yes
13011 else
13012   am_cv_func_iconv_works=no
13013 fi
13014 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13015   conftest.$ac_objext conftest.beam conftest.$ac_ext
13016 fi
13017
13018       LIBS="$am_save_LIBS"
13019     
13020 fi
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
13022 $as_echo "$am_cv_func_iconv_works" >&6; }
13023     case "$am_cv_func_iconv_works" in
13024       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
13025       *)   am_func_iconv=yes ;;
13026     esac
13027   else
13028     am_func_iconv=no am_cv_lib_iconv=no
13029   fi
13030   if test "$am_func_iconv" = yes; then
13031     
13032 $as_echo "@%:@define HAVE_ICONV 1" >>confdefs.h
13033
13034   fi
13035   if test "$am_cv_lib_iconv" = yes; then
13036     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
13037 $as_echo_n "checking how to link with libiconv... " >&6; }
13038     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
13039 $as_echo "$LIBICONV" >&6; }
13040   else
13041             CPPFLAGS="$am_save_CPPFLAGS"
13042     LIBICONV=
13043     LTLIBICONV=
13044   fi
13045   
13046   
13047
13048   if test "$am_cv_func_iconv" = yes; then
13049     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
13050 $as_echo_n "checking for iconv declaration... " >&6; }
13051     if ${am_cv_proto_iconv+:} false; then :
13052   $as_echo_n "(cached) " >&6
13053 else
13054   
13055       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13056 /* end confdefs.h.  */
13057
13058 #include <stdlib.h>
13059 #include <iconv.h>
13060 extern
13061 #ifdef __cplusplus
13062 "C"
13063 #endif
13064 #if defined(__STDC__) || defined(__cplusplus)
13065 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
13066 #else
13067 size_t iconv();
13068 #endif
13069
13070 int
13071 main ()
13072 {
13073
13074   ;
13075   return 0;
13076 }
13077 _ACEOF
13078 if ac_fn_c_try_compile "$LINENO"; then :
13079   am_cv_proto_iconv_arg1=""
13080 else
13081   am_cv_proto_iconv_arg1="const"
13082 fi
13083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13084       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);"
13085 fi
13086
13087     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
13088     { $as_echo "$as_me:${as_lineno-$LINENO}: result: 
13089          $am_cv_proto_iconv" >&5
13090 $as_echo "
13091          $am_cv_proto_iconv" >&6; }
13092     
13093 cat >>confdefs.h <<_ACEOF
13094 @%:@define ICONV_CONST $am_cv_proto_iconv_arg1
13095 _ACEOF
13096
13097   fi
13098
13099 if test "x$am_cv_func_iconv" != "xyes"; then
13100         as_fn_error $? "Cannot find the iconv() function.
13101         iconv() is used to convert between UTF-8 and UTF-16 encodings of WIM
13102         filenames and XML data.  Wimlib cannot be compiled without it.  iconv()
13103         is available in the latest version of glibc and sometimes in other
13104         libraries." "$LINENO" 5
13105 fi
13106
13107 LIBXML2_LDADD=`pkg-config libxml-2.0 --libs`
13108 LIBXML2_CFLAGS=`pkg-config libxml-2.0 --cflags`
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseFile in -lxml2" >&5
13110 $as_echo_n "checking for xmlParseFile in -lxml2... " >&6; }
13111 if ${ac_cv_lib_xml2_xmlParseFile+:} false; then :
13112   $as_echo_n "(cached) " >&6
13113 else
13114   ac_check_lib_save_LIBS=$LIBS
13115 LIBS="-lxml2  $LIBS"
13116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13117 /* end confdefs.h.  */
13118
13119 /* Override any GCC internal prototype to avoid an error.
13120    Use char because int might match the return type of a GCC
13121    builtin and then its argument prototype would still apply.  */
13122 #ifdef __cplusplus
13123 extern "C"
13124 #endif
13125 char xmlParseFile ();
13126 int
13127 main ()
13128 {
13129 return xmlParseFile ();
13130   ;
13131   return 0;
13132 }
13133 _ACEOF
13134 if ac_fn_c_try_link "$LINENO"; then :
13135   ac_cv_lib_xml2_xmlParseFile=yes
13136 else
13137   ac_cv_lib_xml2_xmlParseFile=no
13138 fi
13139 rm -f core conftest.err conftest.$ac_objext \
13140     conftest$ac_exeext conftest.$ac_ext
13141 LIBS=$ac_check_lib_save_LIBS
13142 fi
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseFile" >&5
13144 $as_echo "$ac_cv_lib_xml2_xmlParseFile" >&6; }
13145 if test "x$ac_cv_lib_xml2_xmlParseFile" = xyes; then :
13146   have_libxml=true
13147 else
13148   as_fn_error $? "\"cannot find libxml2\"" "$LINENO" 5
13149 fi
13150
13151 LIBXML2_LDADD=$LIBXML2_LDADD
13152
13153 LIBXML2_CFLAGS=$LIBXML2_CFLAGS
13154
13155
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include debugging messages" >&5
13157 $as_echo_n "checking whether to include debugging messages... " >&6; }
13158 @%:@ Check whether --enable-debug was given.
13159 if test "${enable_debug+set}" = set; then :
13160   enableval=$enable_debug; ENABLE_DEBUG=$enableval
13161 else
13162   ENABLE_DEBUG=no
13163         
13164 fi
13165
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_DEBUG" >&5
13167 $as_echo "$ENABLE_DEBUG" >&6; }
13168 if test "x$ENABLE_DEBUG" = "xyes"; then
13169         
13170 $as_echo "@%:@define ENABLE_DEBUG 1" >>confdefs.h
13171
13172 fi
13173
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include more debugging messages" >&5
13175 $as_echo_n "checking whether to include more debugging messages... " >&6; }
13176 @%:@ Check whether --enable-more_debug was given.
13177 if test "${enable_more_debug+set}" = set; then :
13178   enableval=$enable_more_debug; ENABLE_MORE_DEBUG=$enableval
13179 else
13180   ENABLE_MORE_DEBUG=no
13181         
13182 fi
13183
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_MORE_DEBUG" >&5
13185 $as_echo "$ENABLE_MORE_DEBUG" >&6; }
13186 if test "x$ENABLE_MORE_DEBUG" = "xyes"; then
13187         
13188 $as_echo "@%:@define ENABLE_MORE_DEBUG 1" >>confdefs.h
13189
13190 fi
13191
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include error messages" >&5
13193 $as_echo_n "checking whether to include error messages... " >&6; }
13194 @%:@ Check whether --enable-error_messages was given.
13195 if test "${enable_error_messages+set}" = set; then :
13196   enableval=$enable_error_messages; ENABLE_ERROR_MESSAGES=$enableval
13197 else
13198   ENABLE_ERROR_MESSAGES=yes
13199         
13200 fi
13201
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_ERROR_MESSAGES" >&5
13203 $as_echo "$ENABLE_ERROR_MESSAGES" >&6; }
13204 if test "x$ENABLE_ERROR_MESSAGES" = "xyes"; then
13205         
13206 $as_echo "@%:@define ENABLE_ERROR_MESSAGES 1" >>confdefs.h
13207
13208 fi
13209
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support custom memory allocation functions" >&5
13211 $as_echo_n "checking whether to support custom memory allocation functions... " >&6; }
13212 @%:@ Check whether --enable-custom_memory_allocator was given.
13213 if test "${enable_custom_memory_allocator+set}" = set; then :
13214   enableval=$enable_custom_memory_allocator; ENABLE_CUSTOM_MEMORY_ALLOCATOR=$enableval
13215 else
13216   ENABLE_CUSTOM_MEMORY_ALLOCATOR=yes
13217         
13218 fi
13219
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_CUSTOM_MEMORY_ALLOCATOR" >&5
13221 $as_echo "$ENABLE_CUSTOM_MEMORY_ALLOCATOR" >&6; }
13222 if test "x$ENABLE_CUSTOM_MEMORY_ALLOCATOR" = "xyes"; then
13223         
13224 $as_echo "@%:@define ENABLE_CUSTOM_MEMORY_ALLOCATOR 1" >>confdefs.h
13225
13226 fi
13227
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include assertions" >&5
13229 $as_echo_n "checking whether to include assertions... " >&6; }
13230 @%:@ Check whether --enable-assertions was given.
13231 if test "${enable_assertions+set}" = set; then :
13232   enableval=$enable_assertions; ENABLE_ASSERTIONS=$enableval
13233 else
13234   ENABLE_ASSERTIONS=yes
13235         
13236 fi
13237
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_ASSERTIONS" >&5
13239 $as_echo "$ENABLE_ASSERTIONS" >&6; }
13240 if test "x$ENABLE_ASSERTIONS" = "xyes"; then
13241         
13242 $as_echo "@%:@define ENABLE_ASSERTIONS 1" >>confdefs.h
13243
13244 fi
13245
13246
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include compression verification" >&5
13248 $as_echo_n "checking whether to include compression verification... " >&6; }
13249 @%:@ Check whether --enable-verify_compression was given.
13250 if test "${enable_verify_compression+set}" = set; then :
13251   enableval=$enable_verify_compression; ENABLE_VERIFY_COMPRESSION=$enableval
13252 else
13253   ENABLE_VERIFY_COMPRESSION=yes
13254         
13255 fi
13256
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_VERIFY_COMPRESSION" >&5
13258 $as_echo "$ENABLE_VERIFY_COMPRESSION" >&6; }
13259 if test "x$ENABLE_VERIFY_COMPRESSION" = "xyes"; then
13260         
13261 $as_echo "@%:@define ENABLE_VERIFY_COMPRESSION 1" >>confdefs.h
13262
13263 fi
13264
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for mounting WIMs" >&5
13266 $as_echo_n "checking whether to include support for mounting WIMs... " >&6; }
13267
13268 @%:@ Check whether --with-fuse was given.
13269 if test "${with_fuse+set}" = set; then :
13270   withval=$with_fuse; WITH_FUSE=$withval
13271 else
13272   WITH_FUSE=yes
13273         
13274 fi
13275
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_FUSE" >&5
13277 $as_echo "$WITH_FUSE" >&6; }
13278 if test "x$WITH_FUSE" = "xyes"; then
13279         
13280 $as_echo "@%:@define WITH_FUSE 1" >>confdefs.h
13281
13282
13283         LIBFUSE_LDADD=`pkg-config --libs fuse`
13284         LIBFUSE_CFLAGS=`pkg-config --cflags fuse`
13285
13286         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main_real in -lfuse" >&5
13287 $as_echo_n "checking for fuse_main_real in -lfuse... " >&6; }
13288 if ${ac_cv_lib_fuse_fuse_main_real+:} false; then :
13289   $as_echo_n "(cached) " >&6
13290 else
13291   ac_check_lib_save_LIBS=$LIBS
13292 LIBS="-lfuse  $LIBS"
13293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13294 /* end confdefs.h.  */
13295
13296 /* Override any GCC internal prototype to avoid an error.
13297    Use char because int might match the return type of a GCC
13298    builtin and then its argument prototype would still apply.  */
13299 #ifdef __cplusplus
13300 extern "C"
13301 #endif
13302 char fuse_main_real ();
13303 int
13304 main ()
13305 {
13306 return fuse_main_real ();
13307   ;
13308   return 0;
13309 }
13310 _ACEOF
13311 if ac_fn_c_try_link "$LINENO"; then :
13312   ac_cv_lib_fuse_fuse_main_real=yes
13313 else
13314   ac_cv_lib_fuse_fuse_main_real=no
13315 fi
13316 rm -f core conftest.err conftest.$ac_objext \
13317     conftest$ac_exeext conftest.$ac_ext
13318 LIBS=$ac_check_lib_save_LIBS
13319 fi
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main_real" >&5
13321 $as_echo "$ac_cv_lib_fuse_fuse_main_real" >&6; }
13322 if test "x$ac_cv_lib_fuse_fuse_main_real" = xyes; then :
13323   have_fuse=true
13324 else
13325   as_fn_error $? "Cannot find libfuse.  
13326         Without libfuse, WIMLIB cannot include support for mounting WIMs.  You
13327         should either install libfuse, or configure with --without-fuse to
13328         disable support for mounting WIMs." "$LINENO" 5
13329         
13330 fi
13331
13332         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mq_open in -lrt" >&5
13333 $as_echo_n "checking for mq_open in -lrt... " >&6; }
13334 if ${ac_cv_lib_rt_mq_open+:} false; then :
13335   $as_echo_n "(cached) " >&6
13336 else
13337   ac_check_lib_save_LIBS=$LIBS
13338 LIBS="-lrt  $LIBS"
13339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13340 /* end confdefs.h.  */
13341
13342 /* Override any GCC internal prototype to avoid an error.
13343    Use char because int might match the return type of a GCC
13344    builtin and then its argument prototype would still apply.  */
13345 #ifdef __cplusplus
13346 extern "C"
13347 #endif
13348 char mq_open ();
13349 int
13350 main ()
13351 {
13352 return mq_open ();
13353   ;
13354   return 0;
13355 }
13356 _ACEOF
13357 if ac_fn_c_try_link "$LINENO"; then :
13358   ac_cv_lib_rt_mq_open=yes
13359 else
13360   ac_cv_lib_rt_mq_open=no
13361 fi
13362 rm -f core conftest.err conftest.$ac_objext \
13363     conftest$ac_exeext conftest.$ac_ext
13364 LIBS=$ac_check_lib_save_LIBS
13365 fi
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_mq_open" >&5
13367 $as_echo "$ac_cv_lib_rt_mq_open" >&6; }
13368 if test "x$ac_cv_lib_rt_mq_open" = xyes; then :
13369   have_posix_mq=true
13370 else
13371   as_fn_error $? "Cannot find librt for POSIX message queue
13372         functions.  Without these functions, WIMLIB cannot include support for
13373         mounting WIMs.  You should either update your C library to a recent
13374         version of glibc, or configure with --without-fuse to disable support
13375         for mounting WIMs." "$LINENO" 5
13376         
13377 fi
13378
13379 else
13380         LIBFUSE_LDADD=
13381         LIBFUSE_CFLAGS=
13382 fi
13383 LIBFUSE_LDADD=$LIBFUSE_LDADD
13384
13385 LIBFUSE_CFLAGS=$LIBFUSE_CFLAGS
13386
13387
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use SSSE3-accelerated SHA1 " >&5
13389 $as_echo_n "checking whether to use SSSE3-accelerated SHA1 ... " >&6; }
13390 @%:@ Check whether --enable-ssse3-sha1 was given.
13391 if test "${enable_ssse3_sha1+set}" = set; then :
13392   enableval=$enable_ssse3_sha1; ENABLE_SSSE3_SHA1=$enableval
13393 else
13394   ENABLE_SSSE3_SHA1=no
13395         
13396 fi
13397
13398         
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_SSSE3_SHA1" >&5
13400 $as_echo "$ENABLE_SSSE3_SHA1" >&6; }
13401 if test "x$ENABLE_SSSE3_SHA1" = "xyes"; then
13402         
13403 $as_echo "@%:@define ENABLE_SSSE3_SHA1 1" >>confdefs.h
13404
13405         SSSE3_SHA1_OBJ=sha1-ssse3.lo
13406         
13407 for ac_prog in nasm nasmw
13408 do
13409   # Extract the first word of "$ac_prog", so it can be a program name with args.
13410 set dummy $ac_prog; ac_word=$2
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13412 $as_echo_n "checking for $ac_word... " >&6; }
13413 if ${ac_cv_prog_nasm+:} false; then :
13414   $as_echo_n "(cached) " >&6
13415 else
13416   if test -n "$nasm"; then
13417   ac_cv_prog_nasm="$nasm" # Let the user override the test.
13418 else
13419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13420 for as_dir in $PATH
13421 do
13422   IFS=$as_save_IFS
13423   test -z "$as_dir" && as_dir=.
13424     for ac_exec_ext in '' $ac_executable_extensions; do
13425   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13426     ac_cv_prog_nasm="$ac_prog"
13427     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13428     break 2
13429   fi
13430 done
13431   done
13432 IFS=$as_save_IFS
13433
13434 fi
13435 fi
13436 nasm=$ac_cv_prog_nasm
13437 if test -n "$nasm"; then
13438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nasm" >&5
13439 $as_echo "$nasm" >&6; }
13440 else
13441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13442 $as_echo "no" >&6; }
13443 fi
13444
13445
13446   test -n "$nasm" && break
13447 done
13448 test -n "$nasm" || nasm="no"
13449
13450 if test "x$nasm" = "xno" ;
13451 then
13452         as_fn_error $? "NASM assembler not found" "$LINENO" 5
13453 fi
13454
13455         NASM=$nasm
13456
13457 else
13458         SSSE3_SHA1_OBJ=
13459 fi
13460 SSSE3_SHA1_OBJ=$SSSE3_SHA1_OBJ
13461
13462
13463 if test "x$ENABLE_SSSE3_SHA1" = "xyes"; then
13464         WITH_LIBCRYPTO=no
13465 else
13466         
13467 @%:@ Check whether --with-libcrypto was given.
13468 if test "${with_libcrypto+set}" = set; then :
13469   withval=$with_libcrypto; WITH_LIBCRYPTO=$withval
13470 else
13471   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1 in -lcrypto" >&5
13472 $as_echo_n "checking for SHA1 in -lcrypto... " >&6; }
13473 if ${ac_cv_lib_crypto_SHA1+:} false; then :
13474   $as_echo_n "(cached) " >&6
13475 else
13476   ac_check_lib_save_LIBS=$LIBS
13477 LIBS="-lcrypto  $LIBS"
13478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13479 /* end confdefs.h.  */
13480
13481 /* Override any GCC internal prototype to avoid an error.
13482    Use char because int might match the return type of a GCC
13483    builtin and then its argument prototype would still apply.  */
13484 #ifdef __cplusplus
13485 extern "C"
13486 #endif
13487 char SHA1 ();
13488 int
13489 main ()
13490 {
13491 return SHA1 ();
13492   ;
13493   return 0;
13494 }
13495 _ACEOF
13496 if ac_fn_c_try_link "$LINENO"; then :
13497   ac_cv_lib_crypto_SHA1=yes
13498 else
13499   ac_cv_lib_crypto_SHA1=no
13500 fi
13501 rm -f core conftest.err conftest.$ac_objext \
13502     conftest$ac_exeext conftest.$ac_ext
13503 LIBS=$ac_check_lib_save_LIBS
13504 fi
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SHA1" >&5
13506 $as_echo "$ac_cv_lib_crypto_SHA1" >&6; }
13507 if test "x$ac_cv_lib_crypto_SHA1" = xyes; then :
13508   WITH_LIBCRYPTO=yes
13509 else
13510   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libcrypto: using stand-alone SHA1 code instead of OpenSSL" >&5
13511 $as_echo "$as_me: WARNING: Cannot find libcrypto: using stand-alone SHA1 code instead of OpenSSL" >&2;}
13512                      WITH_LIBCRYPTO=no
13513                      
13514 fi
13515
13516 fi
13517
13518 fi
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use SHA1 function from system libcrypto" >&5
13520 $as_echo_n "checking whether to use SHA1 function from system libcrypto... " >&6; }
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_LIBCRYPTO" >&5
13522 $as_echo "$WITH_LIBCRYPTO" >&6; }
13523
13524 if test "x$WITH_LIBCRYPTO" = "xyes" -a "x$ENABLE_SSSE3_SHA1" = "xno"; then
13525         
13526 $as_echo "@%:@define WITH_LIBCRYPTO 1" >>confdefs.h
13527
13528         LIBCRYPTO_LDADD=`pkg-config --libs libcrypto`
13529         LIBCRYPTO_CFLAGS=`pkg-config --cflags libcrypto`
13530 else
13531         LIBCRYPTO_LDADD=
13532         LIBCRYPTO_CFLAGS=
13533 fi
13534 LIBCRYPTO_LDADD=$LIBCRYPTO_LDADD
13535
13536 LIBCRYPTO_CFLAGS=$LIBCRYPTO_CFLAGS
13537
13538 SHA1_SOURCES=$SHA1_SOURCES
13539
13540
13541 cat >confcache <<\_ACEOF
13542 # This file is a shell script that caches the results of configure
13543 # tests run on this system so they can be shared between configure
13544 # scripts and configure runs, see configure's option --config-cache.
13545 # It is not useful on other systems.  If it contains results you don't
13546 # want to keep, you may remove or edit it.
13547 #
13548 # config.status only pays attention to the cache file if you give it
13549 # the --recheck option to rerun configure.
13550 #
13551 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13552 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13553 # following values.
13554
13555 _ACEOF
13556
13557 # The following way of writing the cache mishandles newlines in values,
13558 # but we know of no workaround that is simple, portable, and efficient.
13559 # So, we kill variables containing newlines.
13560 # Ultrix sh set writes to stderr and can't be redirected directly,
13561 # and sets the high bit in the cache file unless we assign to the vars.
13562 (
13563   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13564     eval ac_val=\$$ac_var
13565     case $ac_val in #(
13566     *${as_nl}*)
13567       case $ac_var in #(
13568       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13569 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13570       esac
13571       case $ac_var in #(
13572       _ | IFS | as_nl) ;; #(
13573       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13574       *) { eval $ac_var=; unset $ac_var;} ;;
13575       esac ;;
13576     esac
13577   done
13578
13579   (set) 2>&1 |
13580     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13581     *${as_nl}ac_space=\ *)
13582       # `set' does not quote correctly, so add quotes: double-quote
13583       # substitution turns \\\\ into \\, and sed turns \\ into \.
13584       sed -n \
13585         "s/'/'\\\\''/g;
13586           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13587       ;; #(
13588     *)
13589       # `set' quotes correctly as required by POSIX, so do not add quotes.
13590       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13591       ;;
13592     esac |
13593     sort
13594 ) |
13595   sed '
13596      /^ac_cv_env_/b end
13597      t clear
13598      :clear
13599      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13600      t end
13601      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13602      :end' >>confcache
13603 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13604   if test -w "$cache_file"; then
13605     if test "x$cache_file" != "x/dev/null"; then
13606       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13607 $as_echo "$as_me: updating cache $cache_file" >&6;}
13608       if test ! -f "$cache_file" || test -h "$cache_file"; then
13609         cat confcache >"$cache_file"
13610       else
13611         case $cache_file in #(
13612         */* | ?:*)
13613           mv -f confcache "$cache_file"$$ &&
13614           mv -f "$cache_file"$$ "$cache_file" ;; #(
13615         *)
13616           mv -f confcache "$cache_file" ;;
13617         esac
13618       fi
13619     fi
13620   else
13621     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13622 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13623   fi
13624 fi
13625 rm -f confcache
13626
13627 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13628 # Let make expand exec_prefix.
13629 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13630
13631 DEFS=-DHAVE_CONFIG_H
13632
13633 ac_libobjs=
13634 ac_ltlibobjs=
13635 U=
13636 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
13637   # 1. Remove the extension, and $U if already installed.
13638   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13639   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13640   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13641   #    will be set to the directory where LIBOBJS objects are built.
13642   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13643   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13644 done
13645 LIB@&t@OBJS=$ac_libobjs
13646
13647 LTLIBOBJS=$ac_ltlibobjs
13648
13649
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13651 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13652    if test -n "$am_sleep_pid"; then
13653      # Hide warnings about reused PIDs.
13654      wait $am_sleep_pid 2>/dev/null
13655    fi
13656    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13657 $as_echo "done" >&6; }
13658  if test -n "$EXEEXT"; then
13659   am__EXEEXT_TRUE=
13660   am__EXEEXT_FALSE='#'
13661 else
13662   am__EXEEXT_TRUE='#'
13663   am__EXEEXT_FALSE=
13664 fi
13665
13666 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13667   as_fn_error $? "conditional \"AMDEP\" was never defined.
13668 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13669 fi
13670 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13671   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13672 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13673 fi
13674
13675 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13676   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13677 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13678 fi
13679
13680 : "${CONFIG_STATUS=./config.status}"
13681 ac_write_fail=0
13682 ac_clean_files_save=$ac_clean_files
13683 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13685 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13686 as_write_fail=0
13687 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13688 #! $SHELL
13689 # Generated by $as_me.
13690 # Run this file to recreate the current configuration.
13691 # Compiler output produced by configure, useful for debugging
13692 # configure, is in config.log if it exists.
13693
13694 debug=false
13695 ac_cs_recheck=false
13696 ac_cs_silent=false
13697
13698 SHELL=\${CONFIG_SHELL-$SHELL}
13699 export SHELL
13700 _ASEOF
13701 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13702 ## -------------------- ##
13703 ## M4sh Initialization. ##
13704 ## -------------------- ##
13705
13706 # Be more Bourne compatible
13707 DUALCASE=1; export DUALCASE # for MKS sh
13708 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13709   emulate sh
13710   NULLCMD=:
13711   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13712   # is contrary to our usage.  Disable this feature.
13713   alias -g '${1+"$@"}'='"$@"'
13714   setopt NO_GLOB_SUBST
13715 else
13716   case `(set -o) 2>/dev/null` in @%:@(
13717   *posix*) :
13718     set -o posix ;; @%:@(
13719   *) :
13720      ;;
13721 esac
13722 fi
13723
13724
13725 as_nl='
13726 '
13727 export as_nl
13728 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13729 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13730 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13731 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13732 # Prefer a ksh shell builtin over an external printf program on Solaris,
13733 # but without wasting forks for bash or zsh.
13734 if test -z "$BASH_VERSION$ZSH_VERSION" \
13735     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13736   as_echo='print -r --'
13737   as_echo_n='print -rn --'
13738 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13739   as_echo='printf %s\n'
13740   as_echo_n='printf %s'
13741 else
13742   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13743     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13744     as_echo_n='/usr/ucb/echo -n'
13745   else
13746     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13747     as_echo_n_body='eval
13748       arg=$1;
13749       case $arg in @%:@(
13750       *"$as_nl"*)
13751         expr "X$arg" : "X\\(.*\\)$as_nl";
13752         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13753       esac;
13754       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13755     '
13756     export as_echo_n_body
13757     as_echo_n='sh -c $as_echo_n_body as_echo'
13758   fi
13759   export as_echo_body
13760   as_echo='sh -c $as_echo_body as_echo'
13761 fi
13762
13763 # The user is always right.
13764 if test "${PATH_SEPARATOR+set}" != set; then
13765   PATH_SEPARATOR=:
13766   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13767     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13768       PATH_SEPARATOR=';'
13769   }
13770 fi
13771
13772
13773 # IFS
13774 # We need space, tab and new line, in precisely that order.  Quoting is
13775 # there to prevent editors from complaining about space-tab.
13776 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13777 # splitting by setting IFS to empty value.)
13778 IFS=" ""        $as_nl"
13779
13780 # Find who we are.  Look in the path if we contain no directory separator.
13781 as_myself=
13782 case $0 in @%:@((
13783   *[\\/]* ) as_myself=$0 ;;
13784   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13785 for as_dir in $PATH
13786 do
13787   IFS=$as_save_IFS
13788   test -z "$as_dir" && as_dir=.
13789     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13790   done
13791 IFS=$as_save_IFS
13792
13793      ;;
13794 esac
13795 # We did not find ourselves, most probably we were run as `sh COMMAND'
13796 # in which case we are not to be found in the path.
13797 if test "x$as_myself" = x; then
13798   as_myself=$0
13799 fi
13800 if test ! -f "$as_myself"; then
13801   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13802   exit 1
13803 fi
13804
13805 # Unset variables that we do not need and which cause bugs (e.g. in
13806 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13807 # suppresses any "Segmentation fault" message there.  '((' could
13808 # trigger a bug in pdksh 5.2.14.
13809 for as_var in BASH_ENV ENV MAIL MAILPATH
13810 do eval test x\${$as_var+set} = xset \
13811   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13812 done
13813 PS1='$ '
13814 PS2='> '
13815 PS4='+ '
13816
13817 # NLS nuisances.
13818 LC_ALL=C
13819 export LC_ALL
13820 LANGUAGE=C
13821 export LANGUAGE
13822
13823 # CDPATH.
13824 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13825
13826
13827 @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
13828 @%:@ ----------------------------------------
13829 @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13830 @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13831 @%:@ script with STATUS, using 1 if that was 0.
13832 as_fn_error ()
13833 {
13834   as_status=$1; test $as_status -eq 0 && as_status=1
13835   if test "$4"; then
13836     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13837     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13838   fi
13839   $as_echo "$as_me: error: $2" >&2
13840   as_fn_exit $as_status
13841 } @%:@ as_fn_error
13842
13843
13844 @%:@ as_fn_set_status STATUS
13845 @%:@ -----------------------
13846 @%:@ Set @S|@? to STATUS, without forking.
13847 as_fn_set_status ()
13848 {
13849   return $1
13850 } @%:@ as_fn_set_status
13851
13852 @%:@ as_fn_exit STATUS
13853 @%:@ -----------------
13854 @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13855 as_fn_exit ()
13856 {
13857   set +e
13858   as_fn_set_status $1
13859   exit $1
13860 } @%:@ as_fn_exit
13861
13862 @%:@ as_fn_unset VAR
13863 @%:@ ---------------
13864 @%:@ Portably unset VAR.
13865 as_fn_unset ()
13866 {
13867   { eval $1=; unset $1;}
13868 }
13869 as_unset=as_fn_unset
13870 @%:@ as_fn_append VAR VALUE
13871 @%:@ ----------------------
13872 @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
13873 @%:@ advantage of any shell optimizations that allow amortized linear growth over
13874 @%:@ repeated appends, instead of the typical quadratic growth present in naive
13875 @%:@ implementations.
13876 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13877   eval 'as_fn_append ()
13878   {
13879     eval $1+=\$2
13880   }'
13881 else
13882   as_fn_append ()
13883   {
13884     eval $1=\$$1\$2
13885   }
13886 fi # as_fn_append
13887
13888 @%:@ as_fn_arith ARG...
13889 @%:@ ------------------
13890 @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
13891 @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
13892 @%:@ must be portable across @S|@(()) and expr.
13893 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13894   eval 'as_fn_arith ()
13895   {
13896     as_val=$(( $* ))
13897   }'
13898 else
13899   as_fn_arith ()
13900   {
13901     as_val=`expr "$@" || test $? -eq 1`
13902   }
13903 fi # as_fn_arith
13904
13905
13906 if expr a : '\(a\)' >/dev/null 2>&1 &&
13907    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13908   as_expr=expr
13909 else
13910   as_expr=false
13911 fi
13912
13913 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13914   as_basename=basename
13915 else
13916   as_basename=false
13917 fi
13918
13919 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13920   as_dirname=dirname
13921 else
13922   as_dirname=false
13923 fi
13924
13925 as_me=`$as_basename -- "$0" ||
13926 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13927          X"$0" : 'X\(//\)$' \| \
13928          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13929 $as_echo X/"$0" |
13930     sed '/^.*\/\([^/][^/]*\)\/*$/{
13931             s//\1/
13932             q
13933           }
13934           /^X\/\(\/\/\)$/{
13935             s//\1/
13936             q
13937           }
13938           /^X\/\(\/\).*/{
13939             s//\1/
13940             q
13941           }
13942           s/.*/./; q'`
13943
13944 # Avoid depending upon Character Ranges.
13945 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13946 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13947 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13948 as_cr_digits='0123456789'
13949 as_cr_alnum=$as_cr_Letters$as_cr_digits
13950
13951 ECHO_C= ECHO_N= ECHO_T=
13952 case `echo -n x` in @%:@(((((
13953 -n*)
13954   case `echo 'xy\c'` in
13955   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13956   xy)  ECHO_C='\c';;
13957   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13958        ECHO_T=' ';;
13959   esac;;
13960 *)
13961   ECHO_N='-n';;
13962 esac
13963
13964 rm -f conf$$ conf$$.exe conf$$.file
13965 if test -d conf$$.dir; then
13966   rm -f conf$$.dir/conf$$.file
13967 else
13968   rm -f conf$$.dir
13969   mkdir conf$$.dir 2>/dev/null
13970 fi
13971 if (echo >conf$$.file) 2>/dev/null; then
13972   if ln -s conf$$.file conf$$ 2>/dev/null; then
13973     as_ln_s='ln -s'
13974     # ... but there are two gotchas:
13975     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13976     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13977     # In both cases, we have to default to `cp -pR'.
13978     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13979       as_ln_s='cp -pR'
13980   elif ln conf$$.file conf$$ 2>/dev/null; then
13981     as_ln_s=ln
13982   else
13983     as_ln_s='cp -pR'
13984   fi
13985 else
13986   as_ln_s='cp -pR'
13987 fi
13988 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13989 rmdir conf$$.dir 2>/dev/null
13990
13991
13992 @%:@ as_fn_mkdir_p
13993 @%:@ -------------
13994 @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
13995 as_fn_mkdir_p ()
13996 {
13997
13998   case $as_dir in #(
13999   -*) as_dir=./$as_dir;;
14000   esac
14001   test -d "$as_dir" || eval $as_mkdir_p || {
14002     as_dirs=
14003     while :; do
14004       case $as_dir in #(
14005       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14006       *) as_qdir=$as_dir;;
14007       esac
14008       as_dirs="'$as_qdir' $as_dirs"
14009       as_dir=`$as_dirname -- "$as_dir" ||
14010 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14011          X"$as_dir" : 'X\(//\)[^/]' \| \
14012          X"$as_dir" : 'X\(//\)$' \| \
14013          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14014 $as_echo X"$as_dir" |
14015     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14016             s//\1/
14017             q
14018           }
14019           /^X\(\/\/\)[^/].*/{
14020             s//\1/
14021             q
14022           }
14023           /^X\(\/\/\)$/{
14024             s//\1/
14025             q
14026           }
14027           /^X\(\/\).*/{
14028             s//\1/
14029             q
14030           }
14031           s/.*/./; q'`
14032       test -d "$as_dir" && break
14033     done
14034     test -z "$as_dirs" || eval "mkdir $as_dirs"
14035   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14036
14037
14038 } @%:@ as_fn_mkdir_p
14039 if mkdir -p . 2>/dev/null; then
14040   as_mkdir_p='mkdir -p "$as_dir"'
14041 else
14042   test -d ./-p && rmdir ./-p
14043   as_mkdir_p=false
14044 fi
14045
14046
14047 @%:@ as_fn_executable_p FILE
14048 @%:@ -----------------------
14049 @%:@ Test if FILE is an executable regular file.
14050 as_fn_executable_p ()
14051 {
14052   test -f "$1" && test -x "$1"
14053 } @%:@ as_fn_executable_p
14054 as_test_x='test -x'
14055 as_executable_p=as_fn_executable_p
14056
14057 # Sed expression to map a string onto a valid CPP name.
14058 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14059
14060 # Sed expression to map a string onto a valid variable name.
14061 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14062
14063
14064 exec 6>&1
14065 ## ----------------------------------- ##
14066 ## Main body of $CONFIG_STATUS script. ##
14067 ## ----------------------------------- ##
14068 _ASEOF
14069 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14070
14071 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14072 # Save the log message, to keep $0 and so on meaningful, and to
14073 # report actual input values of CONFIG_FILES etc. instead of their
14074 # values after options handling.
14075 ac_log="
14076 This file was extended by wimlib $as_me 0.6.2, which was
14077 generated by GNU Autoconf 2.69.  Invocation command line was
14078
14079   CONFIG_FILES    = $CONFIG_FILES
14080   CONFIG_HEADERS  = $CONFIG_HEADERS
14081   CONFIG_LINKS    = $CONFIG_LINKS
14082   CONFIG_COMMANDS = $CONFIG_COMMANDS
14083   $ $0 $@
14084
14085 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14086 "
14087
14088 _ACEOF
14089
14090 case $ac_config_files in *"
14091 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14092 esac
14093
14094 case $ac_config_headers in *"
14095 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14096 esac
14097
14098
14099 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14100 # Files that config.status was made for.
14101 config_files="$ac_config_files"
14102 config_headers="$ac_config_headers"
14103 config_commands="$ac_config_commands"
14104
14105 _ACEOF
14106
14107 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14108 ac_cs_usage="\
14109 \`$as_me' instantiates files and other configuration actions
14110 from templates according to the current configuration.  Unless the files
14111 and actions are specified as TAGs, all are instantiated by default.
14112
14113 Usage: $0 [OPTION]... [TAG]...
14114
14115   -h, --help       print this help, then exit
14116   -V, --version    print version number and configuration settings, then exit
14117       --config     print configuration, then exit
14118   -q, --quiet, --silent
14119                    do not print progress messages
14120   -d, --debug      don't remove temporary files
14121       --recheck    update $as_me by reconfiguring in the same conditions
14122       --file=FILE[:TEMPLATE] 
14123                    instantiate the configuration file FILE
14124       --header=FILE[:TEMPLATE] 
14125                    instantiate the configuration header FILE
14126
14127 Configuration files:
14128 $config_files
14129
14130 Configuration headers:
14131 $config_headers
14132
14133 Configuration commands:
14134 $config_commands
14135
14136 Report bugs to <ebiggers3@gmail.com>."
14137
14138 _ACEOF
14139 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14140 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14141 ac_cs_version="\\
14142 wimlib config.status 0.6.2
14143 configured by $0, generated by GNU Autoconf 2.69,
14144   with options \\"\$ac_cs_config\\"
14145
14146 Copyright (C) 2012 Free Software Foundation, Inc.
14147 This config.status script is free software; the Free Software Foundation
14148 gives unlimited permission to copy, distribute and modify it."
14149
14150 ac_pwd='$ac_pwd'
14151 srcdir='$srcdir'
14152 INSTALL='$INSTALL'
14153 MKDIR_P='$MKDIR_P'
14154 AWK='$AWK'
14155 test -n "\$AWK" || AWK=awk
14156 _ACEOF
14157
14158 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14159 # The default lists apply if the user does not specify any file.
14160 ac_need_defaults=:
14161 while test $# != 0
14162 do
14163   case $1 in
14164   --*=?*)
14165     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14166     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14167     ac_shift=:
14168     ;;
14169   --*=)
14170     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14171     ac_optarg=
14172     ac_shift=:
14173     ;;
14174   *)
14175     ac_option=$1
14176     ac_optarg=$2
14177     ac_shift=shift
14178     ;;
14179   esac
14180
14181   case $ac_option in
14182   # Handling of the options.
14183   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14184     ac_cs_recheck=: ;;
14185   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14186     $as_echo "$ac_cs_version"; exit ;;
14187   --config | --confi | --conf | --con | --co | --c )
14188     $as_echo "$ac_cs_config"; exit ;;
14189   --debug | --debu | --deb | --de | --d | -d )
14190     debug=: ;;
14191   --file | --fil | --fi | --f )
14192     $ac_shift
14193     case $ac_optarg in
14194     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14195     '') as_fn_error $? "missing file argument" ;;
14196     esac
14197     as_fn_append CONFIG_FILES " '$ac_optarg'"
14198     ac_need_defaults=false;;
14199   --header | --heade | --head | --hea )
14200     $ac_shift
14201     case $ac_optarg in
14202     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14203     esac
14204     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14205     ac_need_defaults=false;;
14206   --he | --h)
14207     # Conflict between --help and --header
14208     as_fn_error $? "ambiguous option: \`$1'
14209 Try \`$0 --help' for more information.";;
14210   --help | --hel | -h )
14211     $as_echo "$ac_cs_usage"; exit ;;
14212   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14213   | -silent | --silent | --silen | --sile | --sil | --si | --s)
14214     ac_cs_silent=: ;;
14215
14216   # This is an error.
14217   -*) as_fn_error $? "unrecognized option: \`$1'
14218 Try \`$0 --help' for more information." ;;
14219
14220   *) as_fn_append ac_config_targets " $1"
14221      ac_need_defaults=false ;;
14222
14223   esac
14224   shift
14225 done
14226
14227 ac_configure_extra_args=
14228
14229 if $ac_cs_silent; then
14230   exec 6>/dev/null
14231   ac_configure_extra_args="$ac_configure_extra_args --silent"
14232 fi
14233
14234 _ACEOF
14235 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14236 if \$ac_cs_recheck; then
14237   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14238   shift
14239   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14240   CONFIG_SHELL='$SHELL'
14241   export CONFIG_SHELL
14242   exec "\$@"
14243 fi
14244
14245 _ACEOF
14246 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14247 exec 5>>config.log
14248 {
14249   echo
14250   sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
14251 @%:@@%:@ Running $as_me. @%:@@%:@
14252 _ASBOX
14253   $as_echo "$ac_log"
14254 } >&5
14255
14256 _ACEOF
14257 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14258 #
14259 # INIT-COMMANDS
14260 #
14261 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14262
14263
14264 # The HP-UX ksh and POSIX shell print the target directory to stdout
14265 # if CDPATH is set.
14266 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14267
14268 sed_quote_subst='$sed_quote_subst'
14269 double_quote_subst='$double_quote_subst'
14270 delay_variable_subst='$delay_variable_subst'
14271 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14272 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14273 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14274 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14275 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14276 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14277 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14278 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14279 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14280 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14281 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14282 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14283 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14284 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14285 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14286 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14287 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14288 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14289 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14290 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14291 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14292 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14293 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14294 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14295 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14296 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14297 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14298 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14299 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14300 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14301 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14302 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14303 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14304 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14305 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14306 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14307 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14308 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14309 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14310 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14311 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14312 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14313 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14314 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14315 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14316 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14317 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14318 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14319 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14320 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14321 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14322 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14323 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14324 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14325 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14326 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14327 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"`'
14328 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14329 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14330 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14331 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14332 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14333 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14334 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14335 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14336 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14337 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14338 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14339 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14340 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14341 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14342 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14343 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14344 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14345 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14346 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14347 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14348 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14349 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14350 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14351 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14352 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14353 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14354 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14355 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14356 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14357 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14358 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14359 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14360 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14361 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14362 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14363 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14364 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14365 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14366 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14367 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14368 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14369 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14370 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14371 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14372 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14373 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14374 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14375 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14376 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14377 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14378 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14379 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14380 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14381 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14382 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14383 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14384 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14385 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14386 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14387 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14388 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14389 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14390 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14391 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14392 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14393 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14394 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14395 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14396 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14397 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14398 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14399 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14400 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14401
14402 LTCC='$LTCC'
14403 LTCFLAGS='$LTCFLAGS'
14404 compiler='$compiler_DEFAULT'
14405
14406 # A function that is used when there is no print builtin or printf.
14407 func_fallback_echo ()
14408 {
14409   eval 'cat <<_LTECHO_EOF
14410 \$1
14411 _LTECHO_EOF'
14412 }
14413
14414 # Quote evaled strings.
14415 for var in SHELL \
14416 ECHO \
14417 PATH_SEPARATOR \
14418 SED \
14419 GREP \
14420 EGREP \
14421 FGREP \
14422 LD \
14423 NM \
14424 LN_S \
14425 lt_SP2NL \
14426 lt_NL2SP \
14427 reload_flag \
14428 OBJDUMP \
14429 deplibs_check_method \
14430 file_magic_cmd \
14431 file_magic_glob \
14432 want_nocaseglob \
14433 DLLTOOL \
14434 sharedlib_from_linklib_cmd \
14435 AR \
14436 AR_FLAGS \
14437 archiver_list_spec \
14438 STRIP \
14439 RANLIB \
14440 CC \
14441 CFLAGS \
14442 compiler \
14443 lt_cv_sys_global_symbol_pipe \
14444 lt_cv_sys_global_symbol_to_cdecl \
14445 lt_cv_sys_global_symbol_to_c_name_address \
14446 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14447 nm_file_list_spec \
14448 lt_prog_compiler_no_builtin_flag \
14449 lt_prog_compiler_pic \
14450 lt_prog_compiler_wl \
14451 lt_prog_compiler_static \
14452 lt_cv_prog_compiler_c_o \
14453 need_locks \
14454 MANIFEST_TOOL \
14455 DSYMUTIL \
14456 NMEDIT \
14457 LIPO \
14458 OTOOL \
14459 OTOOL64 \
14460 shrext_cmds \
14461 export_dynamic_flag_spec \
14462 whole_archive_flag_spec \
14463 compiler_needs_object \
14464 with_gnu_ld \
14465 allow_undefined_flag \
14466 no_undefined_flag \
14467 hardcode_libdir_flag_spec \
14468 hardcode_libdir_separator \
14469 exclude_expsyms \
14470 include_expsyms \
14471 file_list_spec \
14472 variables_saved_for_relink \
14473 libname_spec \
14474 library_names_spec \
14475 soname_spec \
14476 install_override_mode \
14477 finish_eval \
14478 old_striplib \
14479 striplib; do
14480     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14481     *[\\\\\\\`\\"\\\$]*)
14482       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14483       ;;
14484     *)
14485       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14486       ;;
14487     esac
14488 done
14489
14490 # Double-quote double-evaled strings.
14491 for var in reload_cmds \
14492 old_postinstall_cmds \
14493 old_postuninstall_cmds \
14494 old_archive_cmds \
14495 extract_expsyms_cmds \
14496 old_archive_from_new_cmds \
14497 old_archive_from_expsyms_cmds \
14498 archive_cmds \
14499 archive_expsym_cmds \
14500 module_cmds \
14501 module_expsym_cmds \
14502 export_symbols_cmds \
14503 prelink_cmds \
14504 postlink_cmds \
14505 postinstall_cmds \
14506 postuninstall_cmds \
14507 finish_cmds \
14508 sys_lib_search_path_spec \
14509 sys_lib_dlsearch_path_spec; do
14510     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14511     *[\\\\\\\`\\"\\\$]*)
14512       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14513       ;;
14514     *)
14515       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14516       ;;
14517     esac
14518 done
14519
14520 ac_aux_dir='$ac_aux_dir'
14521 xsi_shell='$xsi_shell'
14522 lt_shell_append='$lt_shell_append'
14523
14524 # See if we are running on zsh, and set the options which allow our
14525 # commands through without removal of \ escapes INIT.
14526 if test -n "\${ZSH_VERSION+set}" ; then
14527    setopt NO_GLOB_SUBST
14528 fi
14529
14530
14531     PACKAGE='$PACKAGE'
14532     VERSION='$VERSION'
14533     TIMESTAMP='$TIMESTAMP'
14534     RM='$RM'
14535     ofile='$ofile'
14536
14537
14538
14539
14540 _ACEOF
14541
14542 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14543
14544 # Handling of arguments.
14545 for ac_config_target in $ac_config_targets
14546 do
14547   case $ac_config_target in
14548     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14549     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14550     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14551     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14552     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14553     "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
14554     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14555     "programs/Makefile") CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
14556
14557   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14558   esac
14559 done
14560
14561
14562 # If the user did not use the arguments to specify the items to instantiate,
14563 # then the envvar interface is used.  Set only those that are not.
14564 # We use the long form for the default assignment because of an extremely
14565 # bizarre bug on SunOS 4.1.3.
14566 if $ac_need_defaults; then
14567   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14568   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14569   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14570 fi
14571
14572 # Have a temporary directory for convenience.  Make it in the build tree
14573 # simply because there is no reason against having it here, and in addition,
14574 # creating and moving files from /tmp can sometimes cause problems.
14575 # Hook for its removal unless debugging.
14576 # Note that there is a small window in which the directory will not be cleaned:
14577 # after its creation but before its name has been assigned to `$tmp'.
14578 $debug ||
14579 {
14580   tmp= ac_tmp=
14581   trap 'exit_status=$?
14582   : "${ac_tmp:=$tmp}"
14583   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14584 ' 0
14585   trap 'as_fn_exit 1' 1 2 13 15
14586 }
14587 # Create a (secure) tmp directory for tmp files.
14588
14589 {
14590   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14591   test -d "$tmp"
14592 }  ||
14593 {
14594   tmp=./conf$$-$RANDOM
14595   (umask 077 && mkdir "$tmp")
14596 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14597 ac_tmp=$tmp
14598
14599 # Set up the scripts for CONFIG_FILES section.
14600 # No need to generate them if there are no CONFIG_FILES.
14601 # This happens for instance with `./config.status config.h'.
14602 if test -n "$CONFIG_FILES"; then
14603
14604
14605 ac_cr=`echo X | tr X '\015'`
14606 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14607 # But we know of no other shell where ac_cr would be empty at this
14608 # point, so we can use a bashism as a fallback.
14609 if test "x$ac_cr" = x; then
14610   eval ac_cr=\$\'\\r\'
14611 fi
14612 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14613 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14614   ac_cs_awk_cr='\\r'
14615 else
14616   ac_cs_awk_cr=$ac_cr
14617 fi
14618
14619 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14620 _ACEOF
14621
14622
14623 {
14624   echo "cat >conf$$subs.awk <<_ACEOF" &&
14625   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14626   echo "_ACEOF"
14627 } >conf$$subs.sh ||
14628   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14629 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14630 ac_delim='%!_!# '
14631 for ac_last_try in false false false false false :; do
14632   . ./conf$$subs.sh ||
14633     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14634
14635   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14636   if test $ac_delim_n = $ac_delim_num; then
14637     break
14638   elif $ac_last_try; then
14639     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14640   else
14641     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14642   fi
14643 done
14644 rm -f conf$$subs.sh
14645
14646 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14647 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14648 _ACEOF
14649 sed -n '
14650 h
14651 s/^/S["/; s/!.*/"]=/
14652 p
14653 g
14654 s/^[^!]*!//
14655 :repl
14656 t repl
14657 s/'"$ac_delim"'$//
14658 t delim
14659 :nl
14660 h
14661 s/\(.\{148\}\)..*/\1/
14662 t more1
14663 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14664 p
14665 n
14666 b repl
14667 :more1
14668 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14669 p
14670 g
14671 s/.\{148\}//
14672 t nl
14673 :delim
14674 h
14675 s/\(.\{148\}\)..*/\1/
14676 t more2
14677 s/["\\]/\\&/g; s/^/"/; s/$/"/
14678 p
14679 b
14680 :more2
14681 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14682 p
14683 g
14684 s/.\{148\}//
14685 t delim
14686 ' <conf$$subs.awk | sed '
14687 /^[^""]/{
14688   N
14689   s/\n//
14690 }
14691 ' >>$CONFIG_STATUS || ac_write_fail=1
14692 rm -f conf$$subs.awk
14693 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14694 _ACAWK
14695 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14696   for (key in S) S_is_set[key] = 1
14697   FS = "\a"
14698
14699 }
14700 {
14701   line = $ 0
14702   nfields = split(line, field, "@")
14703   substed = 0
14704   len = length(field[1])
14705   for (i = 2; i < nfields; i++) {
14706     key = field[i]
14707     keylen = length(key)
14708     if (S_is_set[key]) {
14709       value = S[key]
14710       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14711       len += length(value) + length(field[++i])
14712       substed = 1
14713     } else
14714       len += 1 + keylen
14715   }
14716
14717   print line
14718 }
14719
14720 _ACAWK
14721 _ACEOF
14722 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14723 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14724   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14725 else
14726   cat
14727 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14728   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14729 _ACEOF
14730
14731 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14732 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14733 # trailing colons and then remove the whole line if VPATH becomes empty
14734 # (actually we leave an empty line to preserve line numbers).
14735 if test "x$srcdir" = x.; then
14736   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
14737 h
14738 s///
14739 s/^/:/
14740 s/[      ]*$/:/
14741 s/:\$(srcdir):/:/g
14742 s/:\${srcdir}:/:/g
14743 s/:@srcdir@:/:/g
14744 s/^:*//
14745 s/:*$//
14746 x
14747 s/\(=[   ]*\).*/\1/
14748 G
14749 s/\n//
14750 s/^[^=]*=[       ]*$//
14751 }'
14752 fi
14753
14754 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14755 fi # test -n "$CONFIG_FILES"
14756
14757 # Set up the scripts for CONFIG_HEADERS section.
14758 # No need to generate them if there are no CONFIG_HEADERS.
14759 # This happens for instance with `./config.status Makefile'.
14760 if test -n "$CONFIG_HEADERS"; then
14761 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14762 BEGIN {
14763 _ACEOF
14764
14765 # Transform confdefs.h into an awk script `defines.awk', embedded as
14766 # here-document in config.status, that substitutes the proper values into
14767 # config.h.in to produce config.h.
14768
14769 # Create a delimiter string that does not exist in confdefs.h, to ease
14770 # handling of long lines.
14771 ac_delim='%!_!# '
14772 for ac_last_try in false false :; do
14773   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14774   if test -z "$ac_tt"; then
14775     break
14776   elif $ac_last_try; then
14777     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14778   else
14779     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14780   fi
14781 done
14782
14783 # For the awk script, D is an array of macro values keyed by name,
14784 # likewise P contains macro parameters if any.  Preserve backslash
14785 # newline sequences.
14786
14787 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14788 sed -n '
14789 s/.\{148\}/&'"$ac_delim"'/g
14790 t rset
14791 :rset
14792 s/^[     ]*#[    ]*define[       ][      ]*/ /
14793 t def
14794 d
14795 :def
14796 s/\\$//
14797 t bsnl
14798 s/["\\]/\\&/g
14799 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14800 D["\1"]=" \3"/p
14801 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
14802 d
14803 :bsnl
14804 s/["\\]/\\&/g
14805 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14806 D["\1"]=" \3\\\\\\n"\\/p
14807 t cont
14808 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14809 t cont
14810 d
14811 :cont
14812 n
14813 s/.\{148\}/&'"$ac_delim"'/g
14814 t clear
14815 :clear
14816 s/\\$//
14817 t bsnlc
14818 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14819 d
14820 :bsnlc
14821 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14822 b cont
14823 ' <confdefs.h | sed '
14824 s/'"$ac_delim"'/"\\\
14825 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14826
14827 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14828   for (key in D) D_is_set[key] = 1
14829   FS = "\a"
14830 }
14831 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14832   line = \$ 0
14833   split(line, arg, " ")
14834   if (arg[1] == "#") {
14835     defundef = arg[2]
14836     mac1 = arg[3]
14837   } else {
14838     defundef = substr(arg[1], 2)
14839     mac1 = arg[2]
14840   }
14841   split(mac1, mac2, "(") #)
14842   macro = mac2[1]
14843   prefix = substr(line, 1, index(line, defundef) - 1)
14844   if (D_is_set[macro]) {
14845     # Preserve the white space surrounding the "#".
14846     print prefix "define", macro P[macro] D[macro]
14847     next
14848   } else {
14849     # Replace #undef with comments.  This is necessary, for example,
14850     # in the case of _POSIX_SOURCE, which is predefined and required
14851     # on some systems where configure will not decide to define it.
14852     if (defundef == "undef") {
14853       print "/*", prefix defundef, macro, "*/"
14854       next
14855     }
14856   }
14857 }
14858 { print }
14859 _ACAWK
14860 _ACEOF
14861 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14862   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14863 fi # test -n "$CONFIG_HEADERS"
14864
14865
14866 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14867 shift
14868 for ac_tag
14869 do
14870   case $ac_tag in
14871   :[FHLC]) ac_mode=$ac_tag; continue;;
14872   esac
14873   case $ac_mode$ac_tag in
14874   :[FHL]*:*);;
14875   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14876   :[FH]-) ac_tag=-:-;;
14877   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14878   esac
14879   ac_save_IFS=$IFS
14880   IFS=:
14881   set x $ac_tag
14882   IFS=$ac_save_IFS
14883   shift
14884   ac_file=$1
14885   shift
14886
14887   case $ac_mode in
14888   :L) ac_source=$1;;
14889   :[FH])
14890     ac_file_inputs=
14891     for ac_f
14892     do
14893       case $ac_f in
14894       -) ac_f="$ac_tmp/stdin";;
14895       *) # Look for the file first in the build tree, then in the source tree
14896          # (if the path is not absolute).  The absolute path cannot be DOS-style,
14897          # because $ac_f cannot contain `:'.
14898          test -f "$ac_f" ||
14899            case $ac_f in
14900            [\\/$]*) false;;
14901            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14902            esac ||
14903            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14904       esac
14905       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14906       as_fn_append ac_file_inputs " '$ac_f'"
14907     done
14908
14909     # Let's still pretend it is `configure' which instantiates (i.e., don't
14910     # use $as_me), people would be surprised to read:
14911     #    /* config.h.  Generated by config.status.  */
14912     configure_input='Generated from '`
14913           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14914         `' by configure.'
14915     if test x"$ac_file" != x-; then
14916       configure_input="$ac_file.  $configure_input"
14917       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14918 $as_echo "$as_me: creating $ac_file" >&6;}
14919     fi
14920     # Neutralize special characters interpreted by sed in replacement strings.
14921     case $configure_input in #(
14922     *\&* | *\|* | *\\* )
14923        ac_sed_conf_input=`$as_echo "$configure_input" |
14924        sed 's/[\\\\&|]/\\\\&/g'`;; #(
14925     *) ac_sed_conf_input=$configure_input;;
14926     esac
14927
14928     case $ac_tag in
14929     *:-:* | *:-) cat >"$ac_tmp/stdin" \
14930       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14931     esac
14932     ;;
14933   esac
14934
14935   ac_dir=`$as_dirname -- "$ac_file" ||
14936 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14937          X"$ac_file" : 'X\(//\)[^/]' \| \
14938          X"$ac_file" : 'X\(//\)$' \| \
14939          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14940 $as_echo X"$ac_file" |
14941     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14942             s//\1/
14943             q
14944           }
14945           /^X\(\/\/\)[^/].*/{
14946             s//\1/
14947             q
14948           }
14949           /^X\(\/\/\)$/{
14950             s//\1/
14951             q
14952           }
14953           /^X\(\/\).*/{
14954             s//\1/
14955             q
14956           }
14957           s/.*/./; q'`
14958   as_dir="$ac_dir"; as_fn_mkdir_p
14959   ac_builddir=.
14960
14961 case "$ac_dir" in
14962 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14963 *)
14964   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14965   # A ".." for each directory in $ac_dir_suffix.
14966   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14967   case $ac_top_builddir_sub in
14968   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14969   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14970   esac ;;
14971 esac
14972 ac_abs_top_builddir=$ac_pwd
14973 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14974 # for backward compatibility:
14975 ac_top_builddir=$ac_top_build_prefix
14976
14977 case $srcdir in
14978   .)  # We are building in place.
14979     ac_srcdir=.
14980     ac_top_srcdir=$ac_top_builddir_sub
14981     ac_abs_top_srcdir=$ac_pwd ;;
14982   [\\/]* | ?:[\\/]* )  # Absolute name.
14983     ac_srcdir=$srcdir$ac_dir_suffix;
14984     ac_top_srcdir=$srcdir
14985     ac_abs_top_srcdir=$srcdir ;;
14986   *) # Relative name.
14987     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14988     ac_top_srcdir=$ac_top_build_prefix$srcdir
14989     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14990 esac
14991 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14992
14993
14994   case $ac_mode in
14995   :F)
14996   #
14997   # CONFIG_FILE
14998   #
14999
15000   case $INSTALL in
15001   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15002   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15003   esac
15004   ac_MKDIR_P=$MKDIR_P
15005   case $MKDIR_P in
15006   [\\/$]* | ?:[\\/]* ) ;;
15007   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15008   esac
15009 _ACEOF
15010
15011 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15012 # If the template does not know about datarootdir, expand it.
15013 # FIXME: This hack should be removed a few years after 2.60.
15014 ac_datarootdir_hack=; ac_datarootdir_seen=
15015 ac_sed_dataroot='
15016 /datarootdir/ {
15017   p
15018   q
15019 }
15020 /@datadir@/p
15021 /@docdir@/p
15022 /@infodir@/p
15023 /@localedir@/p
15024 /@mandir@/p'
15025 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15026 *datarootdir*) ac_datarootdir_seen=yes;;
15027 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15028   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15029 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15030 _ACEOF
15031 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15032   ac_datarootdir_hack='
15033   s&@datadir@&$datadir&g
15034   s&@docdir@&$docdir&g
15035   s&@infodir@&$infodir&g
15036   s&@localedir@&$localedir&g
15037   s&@mandir@&$mandir&g
15038   s&\\\${datarootdir}&$datarootdir&g' ;;
15039 esac
15040 _ACEOF
15041
15042 # Neutralize VPATH when `$srcdir' = `.'.
15043 # Shell code in configure.ac might set extrasub.
15044 # FIXME: do we really want to maintain this feature?
15045 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15046 ac_sed_extra="$ac_vpsub
15047 $extrasub
15048 _ACEOF
15049 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15050 :t
15051 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15052 s|@configure_input@|$ac_sed_conf_input|;t t
15053 s&@top_builddir@&$ac_top_builddir_sub&;t t
15054 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15055 s&@srcdir@&$ac_srcdir&;t t
15056 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15057 s&@top_srcdir@&$ac_top_srcdir&;t t
15058 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15059 s&@builddir@&$ac_builddir&;t t
15060 s&@abs_builddir@&$ac_abs_builddir&;t t
15061 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15062 s&@INSTALL@&$ac_INSTALL&;t t
15063 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15064 $ac_datarootdir_hack
15065 "
15066 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15067   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15068
15069 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15070   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15071   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
15072       "$ac_tmp/out"`; test -z "$ac_out"; } &&
15073   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15074 which seems to be undefined.  Please make sure it is defined" >&5
15075 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15076 which seems to be undefined.  Please make sure it is defined" >&2;}
15077
15078   rm -f "$ac_tmp/stdin"
15079   case $ac_file in
15080   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15081   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15082   esac \
15083   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15084  ;;
15085   :H)
15086   #
15087   # CONFIG_HEADER
15088   #
15089   if test x"$ac_file" != x-; then
15090     {
15091       $as_echo "/* $configure_input  */" \
15092       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15093     } >"$ac_tmp/config.h" \
15094       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15095     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15096       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15097 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15098     else
15099       rm -f "$ac_file"
15100       mv "$ac_tmp/config.h" "$ac_file" \
15101         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15102     fi
15103   else
15104     $as_echo "/* $configure_input  */" \
15105       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15106       || as_fn_error $? "could not create -" "$LINENO" 5
15107   fi
15108 # Compute "$ac_file"'s index in $config_headers.
15109 _am_arg="$ac_file"
15110 _am_stamp_count=1
15111 for _am_header in $config_headers :; do
15112   case $_am_header in
15113     $_am_arg | $_am_arg:* )
15114       break ;;
15115     * )
15116       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15117   esac
15118 done
15119 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15120 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15121          X"$_am_arg" : 'X\(//\)[^/]' \| \
15122          X"$_am_arg" : 'X\(//\)$' \| \
15123          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15124 $as_echo X"$_am_arg" |
15125     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15126             s//\1/
15127             q
15128           }
15129           /^X\(\/\/\)[^/].*/{
15130             s//\1/
15131             q
15132           }
15133           /^X\(\/\/\)$/{
15134             s//\1/
15135             q
15136           }
15137           /^X\(\/\).*/{
15138             s//\1/
15139             q
15140           }
15141           s/.*/./; q'`/stamp-h$_am_stamp_count
15142  ;;
15143   
15144   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15145 $as_echo "$as_me: executing $ac_file commands" >&6;}
15146  ;;
15147   esac
15148
15149
15150   case $ac_file$ac_mode in
15151     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15152   # Autoconf 2.62 quotes --file arguments for eval, but not when files
15153   # are listed without --file.  Let's play safe and only enable the eval
15154   # if we detect the quoting.
15155   case $CONFIG_FILES in
15156   *\'*) eval set x "$CONFIG_FILES" ;;
15157   *)   set x $CONFIG_FILES ;;
15158   esac
15159   shift
15160   for mf
15161   do
15162     # Strip MF so we end up with the name of the file.
15163     mf=`echo "$mf" | sed -e 's/:.*$//'`
15164     # Check whether this is an Automake generated Makefile or not.
15165     # We used to match only the files named 'Makefile.in', but
15166     # some people rename them; so instead we look at the file content.
15167     # Grep'ing the first line is not enough: some people post-process
15168     # each Makefile.in and add a new line on top of each file to say so.
15169     # Grep'ing the whole file is not good either: AIX grep has a line
15170     # limit of 2048, but all sed's we know have understand at least 4000.
15171     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15172       dirpart=`$as_dirname -- "$mf" ||
15173 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15174          X"$mf" : 'X\(//\)[^/]' \| \
15175          X"$mf" : 'X\(//\)$' \| \
15176          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15177 $as_echo X"$mf" |
15178     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15179             s//\1/
15180             q
15181           }
15182           /^X\(\/\/\)[^/].*/{
15183             s//\1/
15184             q
15185           }
15186           /^X\(\/\/\)$/{
15187             s//\1/
15188             q
15189           }
15190           /^X\(\/\).*/{
15191             s//\1/
15192             q
15193           }
15194           s/.*/./; q'`
15195     else
15196       continue
15197     fi
15198     # Extract the definition of DEPDIR, am__include, and am__quote
15199     # from the Makefile without running 'make'.
15200     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15201     test -z "$DEPDIR" && continue
15202     am__include=`sed -n 's/^am__include = //p' < "$mf"`
15203     test -z "am__include" && continue
15204     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15205     # Find all dependency output files, they are included files with
15206     # $(DEPDIR) in their names.  We invoke sed twice because it is the
15207     # simplest approach to changing $(DEPDIR) to its actual value in the
15208     # expansion.
15209     for file in `sed -n "
15210       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15211          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
15212       # Make sure the directory exists.
15213       test -f "$dirpart/$file" && continue
15214       fdir=`$as_dirname -- "$file" ||
15215 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15216          X"$file" : 'X\(//\)[^/]' \| \
15217          X"$file" : 'X\(//\)$' \| \
15218          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15219 $as_echo X"$file" |
15220     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15221             s//\1/
15222             q
15223           }
15224           /^X\(\/\/\)[^/].*/{
15225             s//\1/
15226             q
15227           }
15228           /^X\(\/\/\)$/{
15229             s//\1/
15230             q
15231           }
15232           /^X\(\/\).*/{
15233             s//\1/
15234             q
15235           }
15236           s/.*/./; q'`
15237       as_dir=$dirpart/$fdir; as_fn_mkdir_p
15238       # echo "creating $dirpart/$file"
15239       echo '# dummy' > "$dirpart/$file"
15240     done
15241   done
15242 }
15243  ;;
15244     "libtool":C) 
15245     
15246     # See if we are running on zsh, and set the options which allow our
15247     # commands through without removal of \ escapes.
15248     if test -n "${ZSH_VERSION+set}" ; then
15249       setopt NO_GLOB_SUBST
15250     fi
15251
15252     cfgfile="${ofile}T"
15253     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15254     $RM "$cfgfile"
15255
15256     cat <<_LT_EOF >> "$cfgfile"
15257 #! $SHELL
15258
15259 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15260 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15261 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15262 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15263 #
15264 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15265 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
15266 #                 Foundation, Inc.
15267 #   Written by Gordon Matzigkeit, 1996
15268 #
15269 #   This file is part of GNU Libtool.
15270 #
15271 # GNU Libtool is free software; you can redistribute it and/or
15272 # modify it under the terms of the GNU General Public License as
15273 # published by the Free Software Foundation; either version 2 of
15274 # the License, or (at your option) any later version.
15275 #
15276 # As a special exception to the GNU General Public License,
15277 # if you distribute this file as part of a program or library that
15278 # is built using GNU Libtool, you may include this file under the
15279 # same distribution terms that you use for the rest of that program.
15280 #
15281 # GNU Libtool is distributed in the hope that it will be useful,
15282 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15283 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15284 # GNU General Public License for more details.
15285 #
15286 # You should have received a copy of the GNU General Public License
15287 # along with GNU Libtool; see the file COPYING.  If not, a copy
15288 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15289 # obtained by writing to the Free Software Foundation, Inc.,
15290 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15291
15292
15293 # The names of the tagged configurations supported by this script.
15294 available_tags=""
15295
15296 # ### BEGIN LIBTOOL CONFIG
15297
15298 # Which release of libtool.m4 was used?
15299 macro_version=$macro_version
15300 macro_revision=$macro_revision
15301
15302 # Whether or not to build shared libraries.
15303 build_libtool_libs=$enable_shared
15304
15305 # Whether or not to build static libraries.
15306 build_old_libs=$enable_static
15307
15308 # What type of objects to build.
15309 pic_mode=$pic_mode
15310
15311 # Whether or not to optimize for fast installation.
15312 fast_install=$enable_fast_install
15313
15314 # Shell to use when invoking shell scripts.
15315 SHELL=$lt_SHELL
15316
15317 # An echo program that protects backslashes.
15318 ECHO=$lt_ECHO
15319
15320 # The PATH separator for the build system.
15321 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15322
15323 # The host system.
15324 host_alias=$host_alias
15325 host=$host
15326 host_os=$host_os
15327
15328 # The build system.
15329 build_alias=$build_alias
15330 build=$build
15331 build_os=$build_os
15332
15333 # A sed program that does not truncate output.
15334 SED=$lt_SED
15335
15336 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15337 Xsed="\$SED -e 1s/^X//"
15338
15339 # A grep program that handles long lines.
15340 GREP=$lt_GREP
15341
15342 # An ERE matcher.
15343 EGREP=$lt_EGREP
15344
15345 # A literal string matcher.
15346 FGREP=$lt_FGREP
15347
15348 # A BSD- or MS-compatible name lister.
15349 NM=$lt_NM
15350
15351 # Whether we need soft or hard links.
15352 LN_S=$lt_LN_S
15353
15354 # What is the maximum length of a command?
15355 max_cmd_len=$max_cmd_len
15356
15357 # Object file suffix (normally "o").
15358 objext=$ac_objext
15359
15360 # Executable file suffix (normally "").
15361 exeext=$exeext
15362
15363 # whether the shell understands "unset".
15364 lt_unset=$lt_unset
15365
15366 # turn spaces into newlines.
15367 SP2NL=$lt_lt_SP2NL
15368
15369 # turn newlines into spaces.
15370 NL2SP=$lt_lt_NL2SP
15371
15372 # convert \$build file names to \$host format.
15373 to_host_file_cmd=$lt_cv_to_host_file_cmd
15374
15375 # convert \$build files to toolchain format.
15376 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15377
15378 # An object symbol dumper.
15379 OBJDUMP=$lt_OBJDUMP
15380
15381 # Method to check whether dependent libraries are shared objects.
15382 deplibs_check_method=$lt_deplibs_check_method
15383
15384 # Command to use when deplibs_check_method = "file_magic".
15385 file_magic_cmd=$lt_file_magic_cmd
15386
15387 # How to find potential files when deplibs_check_method = "file_magic".
15388 file_magic_glob=$lt_file_magic_glob
15389
15390 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15391 want_nocaseglob=$lt_want_nocaseglob
15392
15393 # DLL creation program.
15394 DLLTOOL=$lt_DLLTOOL
15395
15396 # Command to associate shared and link libraries.
15397 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15398
15399 # The archiver.
15400 AR=$lt_AR
15401
15402 # Flags to create an archive.
15403 AR_FLAGS=$lt_AR_FLAGS
15404
15405 # How to feed a file listing to the archiver.
15406 archiver_list_spec=$lt_archiver_list_spec
15407
15408 # A symbol stripping program.
15409 STRIP=$lt_STRIP
15410
15411 # Commands used to install an old-style archive.
15412 RANLIB=$lt_RANLIB
15413 old_postinstall_cmds=$lt_old_postinstall_cmds
15414 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15415
15416 # Whether to use a lock for old archive extraction.
15417 lock_old_archive_extraction=$lock_old_archive_extraction
15418
15419 # A C compiler.
15420 LTCC=$lt_CC
15421
15422 # LTCC compiler flags.
15423 LTCFLAGS=$lt_CFLAGS
15424
15425 # Take the output of nm and produce a listing of raw symbols and C names.
15426 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15427
15428 # Transform the output of nm in a proper C declaration.
15429 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15430
15431 # Transform the output of nm in a C name address pair.
15432 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15433
15434 # Transform the output of nm in a C name address pair when lib prefix is needed.
15435 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15436
15437 # Specify filename containing input files for \$NM.
15438 nm_file_list_spec=$lt_nm_file_list_spec
15439
15440 # The root where to search for dependent libraries,and in which our libraries should be installed.
15441 lt_sysroot=$lt_sysroot
15442
15443 # The name of the directory that contains temporary libtool files.
15444 objdir=$objdir
15445
15446 # Used to examine libraries when file_magic_cmd begins with "file".
15447 MAGIC_CMD=$MAGIC_CMD
15448
15449 # Must we lock files when doing compilation?
15450 need_locks=$lt_need_locks
15451
15452 # Manifest tool.
15453 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15454
15455 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15456 DSYMUTIL=$lt_DSYMUTIL
15457
15458 # Tool to change global to local symbols on Mac OS X.
15459 NMEDIT=$lt_NMEDIT
15460
15461 # Tool to manipulate fat objects and archives on Mac OS X.
15462 LIPO=$lt_LIPO
15463
15464 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15465 OTOOL=$lt_OTOOL
15466
15467 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15468 OTOOL64=$lt_OTOOL64
15469
15470 # Old archive suffix (normally "a").
15471 libext=$libext
15472
15473 # Shared library suffix (normally ".so").
15474 shrext_cmds=$lt_shrext_cmds
15475
15476 # The commands to extract the exported symbol list from a shared archive.
15477 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15478
15479 # Variables whose values should be saved in libtool wrapper scripts and
15480 # restored at link time.
15481 variables_saved_for_relink=$lt_variables_saved_for_relink
15482
15483 # Do we need the "lib" prefix for modules?
15484 need_lib_prefix=$need_lib_prefix
15485
15486 # Do we need a version for libraries?
15487 need_version=$need_version
15488
15489 # Library versioning type.
15490 version_type=$version_type
15491
15492 # Shared library runtime path variable.
15493 runpath_var=$runpath_var
15494
15495 # Shared library path variable.
15496 shlibpath_var=$shlibpath_var
15497
15498 # Is shlibpath searched before the hard-coded library search path?
15499 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15500
15501 # Format of library name prefix.
15502 libname_spec=$lt_libname_spec
15503
15504 # List of archive names.  First name is the real one, the rest are links.
15505 # The last name is the one that the linker finds with -lNAME
15506 library_names_spec=$lt_library_names_spec
15507
15508 # The coded name of the library, if different from the real name.
15509 soname_spec=$lt_soname_spec
15510
15511 # Permission mode override for installation of shared libraries.
15512 install_override_mode=$lt_install_override_mode
15513
15514 # Command to use after installation of a shared archive.
15515 postinstall_cmds=$lt_postinstall_cmds
15516
15517 # Command to use after uninstallation of a shared archive.
15518 postuninstall_cmds=$lt_postuninstall_cmds
15519
15520 # Commands used to finish a libtool library installation in a directory.
15521 finish_cmds=$lt_finish_cmds
15522
15523 # As "finish_cmds", except a single script fragment to be evaled but
15524 # not shown.
15525 finish_eval=$lt_finish_eval
15526
15527 # Whether we should hardcode library paths into libraries.
15528 hardcode_into_libs=$hardcode_into_libs
15529
15530 # Compile-time system search path for libraries.
15531 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15532
15533 # Run-time system search path for libraries.
15534 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15535
15536 # Whether dlopen is supported.
15537 dlopen_support=$enable_dlopen
15538
15539 # Whether dlopen of programs is supported.
15540 dlopen_self=$enable_dlopen_self
15541
15542 # Whether dlopen of statically linked programs is supported.
15543 dlopen_self_static=$enable_dlopen_self_static
15544
15545 # Commands to strip libraries.
15546 old_striplib=$lt_old_striplib
15547 striplib=$lt_striplib
15548
15549
15550 # The linker used to build libraries.
15551 LD=$lt_LD
15552
15553 # How to create reloadable object files.
15554 reload_flag=$lt_reload_flag
15555 reload_cmds=$lt_reload_cmds
15556
15557 # Commands used to build an old-style archive.
15558 old_archive_cmds=$lt_old_archive_cmds
15559
15560 # A language specific compiler.
15561 CC=$lt_compiler
15562
15563 # Is the compiler the GNU compiler?
15564 with_gcc=$GCC
15565
15566 # Compiler flag to turn off builtin functions.
15567 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15568
15569 # Additional compiler flags for building library objects.
15570 pic_flag=$lt_lt_prog_compiler_pic
15571
15572 # How to pass a linker flag through the compiler.
15573 wl=$lt_lt_prog_compiler_wl
15574
15575 # Compiler flag to prevent dynamic linking.
15576 link_static_flag=$lt_lt_prog_compiler_static
15577
15578 # Does compiler simultaneously support -c and -o options?
15579 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15580
15581 # Whether or not to add -lc for building shared libraries.
15582 build_libtool_need_lc=$archive_cmds_need_lc
15583
15584 # Whether or not to disallow shared libs when runtime libs are static.
15585 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15586
15587 # Compiler flag to allow reflexive dlopens.
15588 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15589
15590 # Compiler flag to generate shared objects directly from archives.
15591 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15592
15593 # Whether the compiler copes with passing no objects directly.
15594 compiler_needs_object=$lt_compiler_needs_object
15595
15596 # Create an old-style archive from a shared archive.
15597 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15598
15599 # Create a temporary old-style archive to link instead of a shared archive.
15600 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15601
15602 # Commands used to build a shared archive.
15603 archive_cmds=$lt_archive_cmds
15604 archive_expsym_cmds=$lt_archive_expsym_cmds
15605
15606 # Commands used to build a loadable module if different from building
15607 # a shared archive.
15608 module_cmds=$lt_module_cmds
15609 module_expsym_cmds=$lt_module_expsym_cmds
15610
15611 # Whether we are building with GNU ld or not.
15612 with_gnu_ld=$lt_with_gnu_ld
15613
15614 # Flag that allows shared libraries with undefined symbols to be built.
15615 allow_undefined_flag=$lt_allow_undefined_flag
15616
15617 # Flag that enforces no undefined symbols.
15618 no_undefined_flag=$lt_no_undefined_flag
15619
15620 # Flag to hardcode \$libdir into a binary during linking.
15621 # This must work even if \$libdir does not exist
15622 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15623
15624 # Whether we need a single "-rpath" flag with a separated argument.
15625 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15626
15627 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15628 # DIR into the resulting binary.
15629 hardcode_direct=$hardcode_direct
15630
15631 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15632 # DIR into the resulting binary and the resulting library dependency is
15633 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15634 # library is relocated.
15635 hardcode_direct_absolute=$hardcode_direct_absolute
15636
15637 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15638 # into the resulting binary.
15639 hardcode_minus_L=$hardcode_minus_L
15640
15641 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15642 # into the resulting binary.
15643 hardcode_shlibpath_var=$hardcode_shlibpath_var
15644
15645 # Set to "yes" if building a shared library automatically hardcodes DIR
15646 # into the library and all subsequent libraries and executables linked
15647 # against it.
15648 hardcode_automatic=$hardcode_automatic
15649
15650 # Set to yes if linker adds runtime paths of dependent libraries
15651 # to runtime path list.
15652 inherit_rpath=$inherit_rpath
15653
15654 # Whether libtool must link a program against all its dependency libraries.
15655 link_all_deplibs=$link_all_deplibs
15656
15657 # Set to "yes" if exported symbols are required.
15658 always_export_symbols=$always_export_symbols
15659
15660 # The commands to list exported symbols.
15661 export_symbols_cmds=$lt_export_symbols_cmds
15662
15663 # Symbols that should not be listed in the preloaded symbols.
15664 exclude_expsyms=$lt_exclude_expsyms
15665
15666 # Symbols that must always be exported.
15667 include_expsyms=$lt_include_expsyms
15668
15669 # Commands necessary for linking programs (against libraries) with templates.
15670 prelink_cmds=$lt_prelink_cmds
15671
15672 # Commands necessary for finishing linking programs.
15673 postlink_cmds=$lt_postlink_cmds
15674
15675 # Specify filename containing input files.
15676 file_list_spec=$lt_file_list_spec
15677
15678 # How to hardcode a shared library path into an executable.
15679 hardcode_action=$hardcode_action
15680
15681 # ### END LIBTOOL CONFIG
15682
15683 _LT_EOF
15684
15685   case $host_os in
15686   aix3*)
15687     cat <<\_LT_EOF >> "$cfgfile"
15688 # AIX sometimes has problems with the GCC collect2 program.  For some
15689 # reason, if we set the COLLECT_NAMES environment variable, the problems
15690 # vanish in a puff of smoke.
15691 if test "X${COLLECT_NAMES+set}" != Xset; then
15692   COLLECT_NAMES=
15693   export COLLECT_NAMES
15694 fi
15695 _LT_EOF
15696     ;;
15697   esac
15698
15699   
15700 ltmain="$ac_aux_dir/ltmain.sh"
15701
15702
15703   # We use sed instead of cat because bash on DJGPP gets confused if
15704   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15705   # text mode, it properly converts lines to CR/LF.  This bash problem
15706   # is reportedly fixed, but why not run on old versions too?
15707   sed '$q' "$ltmain" >> "$cfgfile" \
15708      || (rm -f "$cfgfile"; exit 1)
15709
15710   if test x"$xsi_shell" = xyes; then
15711   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15712 func_dirname ()\
15713 {\
15714 \    case ${1} in\
15715 \      */*) func_dirname_result="${1%/*}${2}" ;;\
15716 \      *  ) func_dirname_result="${3}" ;;\
15717 \    esac\
15718 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15719   && mv -f "$cfgfile.tmp" "$cfgfile" \
15720     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15721 test 0 -eq $? || _lt_function_replace_fail=:
15722
15723
15724   sed -e '/^func_basename ()$/,/^} # func_basename /c\
15725 func_basename ()\
15726 {\
15727 \    func_basename_result="${1##*/}"\
15728 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15729   && mv -f "$cfgfile.tmp" "$cfgfile" \
15730     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15731 test 0 -eq $? || _lt_function_replace_fail=:
15732
15733
15734   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15735 func_dirname_and_basename ()\
15736 {\
15737 \    case ${1} in\
15738 \      */*) func_dirname_result="${1%/*}${2}" ;;\
15739 \      *  ) func_dirname_result="${3}" ;;\
15740 \    esac\
15741 \    func_basename_result="${1##*/}"\
15742 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15743   && mv -f "$cfgfile.tmp" "$cfgfile" \
15744     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15745 test 0 -eq $? || _lt_function_replace_fail=:
15746
15747
15748   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15749 func_stripname ()\
15750 {\
15751 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15752 \    # positional parameters, so assign one to ordinary parameter first.\
15753 \    func_stripname_result=${3}\
15754 \    func_stripname_result=${func_stripname_result#"${1}"}\
15755 \    func_stripname_result=${func_stripname_result%"${2}"}\
15756 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15757   && mv -f "$cfgfile.tmp" "$cfgfile" \
15758     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15759 test 0 -eq $? || _lt_function_replace_fail=:
15760
15761
15762   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15763 func_split_long_opt ()\
15764 {\
15765 \    func_split_long_opt_name=${1%%=*}\
15766 \    func_split_long_opt_arg=${1#*=}\
15767 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15768   && mv -f "$cfgfile.tmp" "$cfgfile" \
15769     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15770 test 0 -eq $? || _lt_function_replace_fail=:
15771
15772
15773   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15774 func_split_short_opt ()\
15775 {\
15776 \    func_split_short_opt_arg=${1#??}\
15777 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15778 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15779   && mv -f "$cfgfile.tmp" "$cfgfile" \
15780     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15781 test 0 -eq $? || _lt_function_replace_fail=:
15782
15783
15784   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15785 func_lo2o ()\
15786 {\
15787 \    case ${1} in\
15788 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15789 \      *)    func_lo2o_result=${1} ;;\
15790 \    esac\
15791 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15792   && mv -f "$cfgfile.tmp" "$cfgfile" \
15793     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15794 test 0 -eq $? || _lt_function_replace_fail=:
15795
15796
15797   sed -e '/^func_xform ()$/,/^} # func_xform /c\
15798 func_xform ()\
15799 {\
15800     func_xform_result=${1%.*}.lo\
15801 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15802   && mv -f "$cfgfile.tmp" "$cfgfile" \
15803     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15804 test 0 -eq $? || _lt_function_replace_fail=:
15805
15806
15807   sed -e '/^func_arith ()$/,/^} # func_arith /c\
15808 func_arith ()\
15809 {\
15810     func_arith_result=$(( $* ))\
15811 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15812   && mv -f "$cfgfile.tmp" "$cfgfile" \
15813     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15814 test 0 -eq $? || _lt_function_replace_fail=:
15815
15816
15817   sed -e '/^func_len ()$/,/^} # func_len /c\
15818 func_len ()\
15819 {\
15820     func_len_result=${#1}\
15821 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15822   && mv -f "$cfgfile.tmp" "$cfgfile" \
15823     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15824 test 0 -eq $? || _lt_function_replace_fail=:
15825
15826 fi
15827
15828 if test x"$lt_shell_append" = xyes; then
15829   sed -e '/^func_append ()$/,/^} # func_append /c\
15830 func_append ()\
15831 {\
15832     eval "${1}+=\\${2}"\
15833 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15834   && mv -f "$cfgfile.tmp" "$cfgfile" \
15835     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15836 test 0 -eq $? || _lt_function_replace_fail=:
15837
15838
15839   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15840 func_append_quoted ()\
15841 {\
15842 \    func_quote_for_eval "${2}"\
15843 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15844 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15845   && mv -f "$cfgfile.tmp" "$cfgfile" \
15846     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15847 test 0 -eq $? || _lt_function_replace_fail=:
15848
15849
15850   # Save a `func_append' function call where possible by direct use of '+='
15851   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15852     && mv -f "$cfgfile.tmp" "$cfgfile" \
15853       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15854   test 0 -eq $? || _lt_function_replace_fail=:
15855 else
15856   # Save a `func_append' function call even when '+=' is not available
15857   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15858     && mv -f "$cfgfile.tmp" "$cfgfile" \
15859       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15860   test 0 -eq $? || _lt_function_replace_fail=:
15861 fi
15862
15863 if test x"$_lt_function_replace_fail" = x":"; then
15864   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15865 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15866 fi
15867
15868
15869    mv -f "$cfgfile" "$ofile" ||
15870     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15871   chmod +x "$ofile"
15872
15873  ;;
15874
15875   esac
15876 done # for ac_tag
15877
15878
15879 as_fn_exit 0
15880 _ACEOF
15881 ac_clean_files=$ac_clean_files_save
15882
15883 test $ac_write_fail = 0 ||
15884   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15885
15886
15887 # configure is writing to config.log, and then calls config.status.
15888 # config.status does its own redirection, appending to config.log.
15889 # Unfortunately, on DOS this fails, as config.log is still kept open
15890 # by configure, so config.status won't be able to write to it; its
15891 # output is simply discarded.  So we exec the FD to /dev/null,
15892 # effectively closing config.log, so it can be properly (re)opened and
15893 # appended to by config.status.  When coming back to configure, we
15894 # need to make the FD available again.
15895 if test "$no_create" != yes; then
15896   ac_cs_success=:
15897   ac_config_status_args=
15898   test "$silent" = yes &&
15899     ac_config_status_args="$ac_config_status_args --quiet"
15900   exec 5>/dev/null
15901   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15902   exec 5>>config.log
15903   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15904   # would make configure fail if this is the last instruction.
15905   $ac_cs_success || as_fn_exit 1
15906 fi
15907 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15908   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15909 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15910 fi
15911