]> wimlib.net Git - wimlib/blob - configure
Start using NEWS and stop using ChangeLog
[wimlib] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for wimlib 0.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 $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='wimlib'
592 PACKAGE_TARNAME='wimlib'
593 PACKAGE_VERSION='0.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 LIBOBJS
639 SHA1_SOURCES
640 LIBCRYPTO_CFLAGS
641 LIBCRYPTO_LDADD
642 SSSE3_SHA1_OBJ
643 NASM
644 nasm
645 LIBFUSE_CFLAGS
646 LIBFUSE_LDADD
647 LIBXML2_CFLAGS
648 LIBXML2_LDADD
649 LTLIBICONV
650 LIBICONV
651 OTOOL64
652 OTOOL
653 LIPO
654 NMEDIT
655 DSYMUTIL
656 MANIFEST_TOOL
657 RANLIB
658 DLLTOOL
659 OBJDUMP
660 LN_S
661 NM
662 ac_ct_DUMPBIN
663 DUMPBIN
664 LD
665 FGREP
666 SED
667 host_os
668 host_vendor
669 host_cpu
670 host
671 build_os
672 build_vendor
673 build_cpu
674 build
675 LIBTOOL
676 ac_ct_AR
677 AR
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                           [$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.$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.$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.$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.$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 if test -n "$ac_tool_prefix"; then
4280   for ac_prog in ar lib "link -lib"
4281   do
4282     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4283 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4285 $as_echo_n "checking for $ac_word... " >&6; }
4286 if ${ac_cv_prog_AR+:} false; then :
4287   $as_echo_n "(cached) " >&6
4288 else
4289   if test -n "$AR"; then
4290   ac_cv_prog_AR="$AR" # Let the user override the test.
4291 else
4292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4293 for as_dir in $PATH
4294 do
4295   IFS=$as_save_IFS
4296   test -z "$as_dir" && as_dir=.
4297     for ac_exec_ext in '' $ac_executable_extensions; do
4298   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4299     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4300     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4301     break 2
4302   fi
4303 done
4304   done
4305 IFS=$as_save_IFS
4306
4307 fi
4308 fi
4309 AR=$ac_cv_prog_AR
4310 if test -n "$AR"; then
4311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4312 $as_echo "$AR" >&6; }
4313 else
4314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4315 $as_echo "no" >&6; }
4316 fi
4317
4318
4319     test -n "$AR" && break
4320   done
4321 fi
4322 if test -z "$AR"; then
4323   ac_ct_AR=$AR
4324   for ac_prog in ar lib "link -lib"
4325 do
4326   # Extract the first word of "$ac_prog", so it can be a program name with args.
4327 set dummy $ac_prog; ac_word=$2
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4329 $as_echo_n "checking for $ac_word... " >&6; }
4330 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4331   $as_echo_n "(cached) " >&6
4332 else
4333   if test -n "$ac_ct_AR"; then
4334   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4335 else
4336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4337 for as_dir in $PATH
4338 do
4339   IFS=$as_save_IFS
4340   test -z "$as_dir" && as_dir=.
4341     for ac_exec_ext in '' $ac_executable_extensions; do
4342   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4343     ac_cv_prog_ac_ct_AR="$ac_prog"
4344     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4345     break 2
4346   fi
4347 done
4348   done
4349 IFS=$as_save_IFS
4350
4351 fi
4352 fi
4353 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4354 if test -n "$ac_ct_AR"; then
4355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4356 $as_echo "$ac_ct_AR" >&6; }
4357 else
4358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4359 $as_echo "no" >&6; }
4360 fi
4361
4362
4363   test -n "$ac_ct_AR" && break
4364 done
4365
4366   if test "x$ac_ct_AR" = x; then
4367     AR="false"
4368   else
4369     case $cross_compiling:$ac_tool_warned in
4370 yes:)
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4372 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4373 ac_tool_warned=yes ;;
4374 esac
4375     AR=$ac_ct_AR
4376   fi
4377 fi
4378
4379 : ${AR=ar}
4380
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4382 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4383 if ${am_cv_ar_interface+:} false; then :
4384   $as_echo_n "(cached) " >&6
4385 else
4386   am_cv_ar_interface=ar
4387    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4388 /* end confdefs.h.  */
4389 int some_variable = 0;
4390 _ACEOF
4391 if ac_fn_c_try_compile "$LINENO"; then :
4392   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4393       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4394   (eval $am_ar_try) 2>&5
4395   ac_status=$?
4396   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4397   test $ac_status = 0; }
4398       if test "$ac_status" -eq 0; then
4399         am_cv_ar_interface=ar
4400       else
4401         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4402         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4403   (eval $am_ar_try) 2>&5
4404   ac_status=$?
4405   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4406   test $ac_status = 0; }
4407         if test "$ac_status" -eq 0; then
4408           am_cv_ar_interface=lib
4409         else
4410           am_cv_ar_interface=unknown
4411         fi
4412       fi
4413       rm -f conftest.lib libconftest.a
4414
4415 fi
4416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4417
4418 fi
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4420 $as_echo "$am_cv_ar_interface" >&6; }
4421
4422 case $am_cv_ar_interface in
4423 ar)
4424   ;;
4425 lib)
4426   # Microsoft lib, so override with the ar-lib wrapper script.
4427   # FIXME: It is wrong to rewrite AR.
4428   # But if we don't then we get into trouble of one sort or another.
4429   # A longer-term fix would be to have automake use am__AR in this case,
4430   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4431   # similar.
4432   AR="$am_aux_dir/ar-lib $AR"
4433   ;;
4434 unknown)
4435   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4436   ;;
4437 esac
4438
4439 case `pwd` in
4440   *\ * | *\     *)
4441     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4442 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4443 esac
4444
4445
4446
4447 macro_version='2.4.2'
4448 macro_revision='1.3337'
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462 ltmain="$ac_aux_dir/ltmain.sh"
4463
4464 # Make sure we can run config.sub.
4465 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4466   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4467
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4469 $as_echo_n "checking build system type... " >&6; }
4470 if ${ac_cv_build+:} false; then :
4471   $as_echo_n "(cached) " >&6
4472 else
4473   ac_build_alias=$build_alias
4474 test "x$ac_build_alias" = x &&
4475   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4476 test "x$ac_build_alias" = x &&
4477   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4478 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4479   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4480
4481 fi
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4483 $as_echo "$ac_cv_build" >&6; }
4484 case $ac_cv_build in
4485 *-*-*) ;;
4486 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4487 esac
4488 build=$ac_cv_build
4489 ac_save_IFS=$IFS; IFS='-'
4490 set x $ac_cv_build
4491 shift
4492 build_cpu=$1
4493 build_vendor=$2
4494 shift; shift
4495 # Remember, the first character of IFS is used to create $*,
4496 # except with old shells:
4497 build_os=$*
4498 IFS=$ac_save_IFS
4499 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4500
4501
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4503 $as_echo_n "checking host system type... " >&6; }
4504 if ${ac_cv_host+:} false; then :
4505   $as_echo_n "(cached) " >&6
4506 else
4507   if test "x$host_alias" = x; then
4508   ac_cv_host=$ac_cv_build
4509 else
4510   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4511     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4512 fi
4513
4514 fi
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4516 $as_echo "$ac_cv_host" >&6; }
4517 case $ac_cv_host in
4518 *-*-*) ;;
4519 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4520 esac
4521 host=$ac_cv_host
4522 ac_save_IFS=$IFS; IFS='-'
4523 set x $ac_cv_host
4524 shift
4525 host_cpu=$1
4526 host_vendor=$2
4527 shift; shift
4528 # Remember, the first character of IFS is used to create $*,
4529 # except with old shells:
4530 host_os=$*
4531 IFS=$ac_save_IFS
4532 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4533
4534
4535 # Backslashify metacharacters that are still active within
4536 # double-quoted strings.
4537 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4538
4539 # Same as above, but do not quote variable references.
4540 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4541
4542 # Sed substitution to delay expansion of an escaped shell variable in a
4543 # double_quote_subst'ed string.
4544 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4545
4546 # Sed substitution to delay expansion of an escaped single quote.
4547 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4548
4549 # Sed substitution to avoid accidental globbing in evaled expressions
4550 no_glob_subst='s/\*/\\\*/g'
4551
4552 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4553 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4554 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4555
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4557 $as_echo_n "checking how to print strings... " >&6; }
4558 # Test print first, because it will be a builtin if present.
4559 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4560    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4561   ECHO='print -r --'
4562 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4563   ECHO='printf %s\n'
4564 else
4565   # Use this function as a fallback that always works.
4566   func_fallback_echo ()
4567   {
4568     eval 'cat <<_LTECHO_EOF
4569 $1
4570 _LTECHO_EOF'
4571   }
4572   ECHO='func_fallback_echo'
4573 fi
4574
4575 # func_echo_all arg...
4576 # Invoke $ECHO with all args, space-separated.
4577 func_echo_all ()
4578 {
4579     $ECHO ""
4580 }
4581
4582 case "$ECHO" in
4583   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4584 $as_echo "printf" >&6; } ;;
4585   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4586 $as_echo "print -r" >&6; } ;;
4587   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4588 $as_echo "cat" >&6; } ;;
4589 esac
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4605 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4606 if ${ac_cv_path_SED+:} false; then :
4607   $as_echo_n "(cached) " >&6
4608 else
4609             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4610      for ac_i in 1 2 3 4 5 6 7; do
4611        ac_script="$ac_script$as_nl$ac_script"
4612      done
4613      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4614      { ac_script=; unset ac_script;}
4615      if test -z "$SED"; then
4616   ac_path_SED_found=false
4617   # Loop through the user's path and test for each of PROGNAME-LIST
4618   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4619 for as_dir in $PATH
4620 do
4621   IFS=$as_save_IFS
4622   test -z "$as_dir" && as_dir=.
4623     for ac_prog in sed gsed; do
4624     for ac_exec_ext in '' $ac_executable_extensions; do
4625       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4626       as_fn_executable_p "$ac_path_SED" || continue
4627 # Check for GNU ac_path_SED and select it if it is found.
4628   # Check for GNU $ac_path_SED
4629 case `"$ac_path_SED" --version 2>&1` in
4630 *GNU*)
4631   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4632 *)
4633   ac_count=0
4634   $as_echo_n 0123456789 >"conftest.in"
4635   while :
4636   do
4637     cat "conftest.in" "conftest.in" >"conftest.tmp"
4638     mv "conftest.tmp" "conftest.in"
4639     cp "conftest.in" "conftest.nl"
4640     $as_echo '' >> "conftest.nl"
4641     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4642     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4643     as_fn_arith $ac_count + 1 && ac_count=$as_val
4644     if test $ac_count -gt ${ac_path_SED_max-0}; then
4645       # Best one so far, save it but keep looking for a better one
4646       ac_cv_path_SED="$ac_path_SED"
4647       ac_path_SED_max=$ac_count
4648     fi
4649     # 10*(2^10) chars as input seems more than enough
4650     test $ac_count -gt 10 && break
4651   done
4652   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4653 esac
4654
4655       $ac_path_SED_found && break 3
4656     done
4657   done
4658   done
4659 IFS=$as_save_IFS
4660   if test -z "$ac_cv_path_SED"; then
4661     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4662   fi
4663 else
4664   ac_cv_path_SED=$SED
4665 fi
4666
4667 fi
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4669 $as_echo "$ac_cv_path_SED" >&6; }
4670  SED="$ac_cv_path_SED"
4671   rm -f conftest.sed
4672
4673 test -z "$SED" && SED=sed
4674 Xsed="$SED -e 1s/^X//"
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4687 $as_echo_n "checking for fgrep... " >&6; }
4688 if ${ac_cv_path_FGREP+:} false; then :
4689   $as_echo_n "(cached) " >&6
4690 else
4691   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4692    then ac_cv_path_FGREP="$GREP -F"
4693    else
4694      if test -z "$FGREP"; then
4695   ac_path_FGREP_found=false
4696   # Loop through the user's path and test for each of PROGNAME-LIST
4697   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4699 do
4700   IFS=$as_save_IFS
4701   test -z "$as_dir" && as_dir=.
4702     for ac_prog in fgrep; do
4703     for ac_exec_ext in '' $ac_executable_extensions; do
4704       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4705       as_fn_executable_p "$ac_path_FGREP" || continue
4706 # Check for GNU ac_path_FGREP and select it if it is found.
4707   # Check for GNU $ac_path_FGREP
4708 case `"$ac_path_FGREP" --version 2>&1` in
4709 *GNU*)
4710   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4711 *)
4712   ac_count=0
4713   $as_echo_n 0123456789 >"conftest.in"
4714   while :
4715   do
4716     cat "conftest.in" "conftest.in" >"conftest.tmp"
4717     mv "conftest.tmp" "conftest.in"
4718     cp "conftest.in" "conftest.nl"
4719     $as_echo 'FGREP' >> "conftest.nl"
4720     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4721     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4722     as_fn_arith $ac_count + 1 && ac_count=$as_val
4723     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4724       # Best one so far, save it but keep looking for a better one
4725       ac_cv_path_FGREP="$ac_path_FGREP"
4726       ac_path_FGREP_max=$ac_count
4727     fi
4728     # 10*(2^10) chars as input seems more than enough
4729     test $ac_count -gt 10 && break
4730   done
4731   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4732 esac
4733
4734       $ac_path_FGREP_found && break 3
4735     done
4736   done
4737   done
4738 IFS=$as_save_IFS
4739   if test -z "$ac_cv_path_FGREP"; then
4740     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4741   fi
4742 else
4743   ac_cv_path_FGREP=$FGREP
4744 fi
4745
4746    fi
4747 fi
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4749 $as_echo "$ac_cv_path_FGREP" >&6; }
4750  FGREP="$ac_cv_path_FGREP"
4751
4752
4753 test -z "$GREP" && GREP=grep
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773 # Check whether --with-gnu-ld was given.
4774 if test "${with_gnu_ld+set}" = set; then :
4775   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4776 else
4777   with_gnu_ld=no
4778 fi
4779
4780 ac_prog=ld
4781 if test "$GCC" = yes; then
4782   # Check if gcc -print-prog-name=ld gives a path.
4783   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4784 $as_echo_n "checking for ld used by $CC... " >&6; }
4785   case $host in
4786   *-*-mingw*)
4787     # gcc leaves a trailing carriage return which upsets mingw
4788     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4789   *)
4790     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4791   esac
4792   case $ac_prog in
4793     # Accept absolute paths.
4794     [\\/]* | ?:[\\/]*)
4795       re_direlt='/[^/][^/]*/\.\./'
4796       # Canonicalize the pathname of ld
4797       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4798       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4799         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4800       done
4801       test -z "$LD" && LD="$ac_prog"
4802       ;;
4803   "")
4804     # If it fails, then pretend we aren't using GCC.
4805     ac_prog=ld
4806     ;;
4807   *)
4808     # If it is relative, then search for the first ld in PATH.
4809     with_gnu_ld=unknown
4810     ;;
4811   esac
4812 elif test "$with_gnu_ld" = yes; then
4813   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4814 $as_echo_n "checking for GNU ld... " >&6; }
4815 else
4816   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4817 $as_echo_n "checking for non-GNU ld... " >&6; }
4818 fi
4819 if ${lt_cv_path_LD+:} false; then :
4820   $as_echo_n "(cached) " >&6
4821 else
4822   if test -z "$LD"; then
4823   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4824   for ac_dir in $PATH; do
4825     IFS="$lt_save_ifs"
4826     test -z "$ac_dir" && ac_dir=.
4827     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4828       lt_cv_path_LD="$ac_dir/$ac_prog"
4829       # Check to see if the program is GNU ld.  I'd rather use --version,
4830       # but apparently some variants of GNU ld only accept -v.
4831       # Break only if it was the GNU/non-GNU ld that we prefer.
4832       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4833       *GNU* | *'with BFD'*)
4834         test "$with_gnu_ld" != no && break
4835         ;;
4836       *)
4837         test "$with_gnu_ld" != yes && break
4838         ;;
4839       esac
4840     fi
4841   done
4842   IFS="$lt_save_ifs"
4843 else
4844   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4845 fi
4846 fi
4847
4848 LD="$lt_cv_path_LD"
4849 if test -n "$LD"; then
4850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4851 $as_echo "$LD" >&6; }
4852 else
4853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4854 $as_echo "no" >&6; }
4855 fi
4856 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4858 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4859 if ${lt_cv_prog_gnu_ld+:} false; then :
4860   $as_echo_n "(cached) " >&6
4861 else
4862   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4863 case `$LD -v 2>&1 </dev/null` in
4864 *GNU* | *'with BFD'*)
4865   lt_cv_prog_gnu_ld=yes
4866   ;;
4867 *)
4868   lt_cv_prog_gnu_ld=no
4869   ;;
4870 esac
4871 fi
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4873 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4874 with_gnu_ld=$lt_cv_prog_gnu_ld
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4885 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4886 if ${lt_cv_path_NM+:} false; then :
4887   $as_echo_n "(cached) " >&6
4888 else
4889   if test -n "$NM"; then
4890   # Let the user override the test.
4891   lt_cv_path_NM="$NM"
4892 else
4893   lt_nm_to_check="${ac_tool_prefix}nm"
4894   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4895     lt_nm_to_check="$lt_nm_to_check nm"
4896   fi
4897   for lt_tmp_nm in $lt_nm_to_check; do
4898     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4899     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4900       IFS="$lt_save_ifs"
4901       test -z "$ac_dir" && ac_dir=.
4902       tmp_nm="$ac_dir/$lt_tmp_nm"
4903       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4904         # Check to see if the nm accepts a BSD-compat flag.
4905         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4906         #   nm: unknown option "B" ignored
4907         # Tru64's nm complains that /dev/null is an invalid object file
4908         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4909         */dev/null* | *'Invalid file or object type'*)
4910           lt_cv_path_NM="$tmp_nm -B"
4911           break
4912           ;;
4913         *)
4914           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4915           */dev/null*)
4916             lt_cv_path_NM="$tmp_nm -p"
4917             break
4918             ;;
4919           *)
4920             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4921             continue # so that we can try to find one that supports BSD flags
4922             ;;
4923           esac
4924           ;;
4925         esac
4926       fi
4927     done
4928     IFS="$lt_save_ifs"
4929   done
4930   : ${lt_cv_path_NM=no}
4931 fi
4932 fi
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4934 $as_echo "$lt_cv_path_NM" >&6; }
4935 if test "$lt_cv_path_NM" != "no"; then
4936   NM="$lt_cv_path_NM"
4937 else
4938   # Didn't find any BSD compatible name lister, look for dumpbin.
4939   if test -n "$DUMPBIN"; then :
4940     # Let the user override the test.
4941   else
4942     if test -n "$ac_tool_prefix"; then
4943   for ac_prog in dumpbin "link -dump"
4944   do
4945     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4946 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4948 $as_echo_n "checking for $ac_word... " >&6; }
4949 if ${ac_cv_prog_DUMPBIN+:} false; then :
4950   $as_echo_n "(cached) " >&6
4951 else
4952   if test -n "$DUMPBIN"; then
4953   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4954 else
4955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4956 for as_dir in $PATH
4957 do
4958   IFS=$as_save_IFS
4959   test -z "$as_dir" && as_dir=.
4960     for ac_exec_ext in '' $ac_executable_extensions; do
4961   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4962     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4963     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4964     break 2
4965   fi
4966 done
4967   done
4968 IFS=$as_save_IFS
4969
4970 fi
4971 fi
4972 DUMPBIN=$ac_cv_prog_DUMPBIN
4973 if test -n "$DUMPBIN"; then
4974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4975 $as_echo "$DUMPBIN" >&6; }
4976 else
4977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4978 $as_echo "no" >&6; }
4979 fi
4980
4981
4982     test -n "$DUMPBIN" && break
4983   done
4984 fi
4985 if test -z "$DUMPBIN"; then
4986   ac_ct_DUMPBIN=$DUMPBIN
4987   for ac_prog in dumpbin "link -dump"
4988 do
4989   # Extract the first word of "$ac_prog", so it can be a program name with args.
4990 set dummy $ac_prog; ac_word=$2
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4992 $as_echo_n "checking for $ac_word... " >&6; }
4993 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4994   $as_echo_n "(cached) " >&6
4995 else
4996   if test -n "$ac_ct_DUMPBIN"; then
4997   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4998 else
4999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5000 for as_dir in $PATH
5001 do
5002   IFS=$as_save_IFS
5003   test -z "$as_dir" && as_dir=.
5004     for ac_exec_ext in '' $ac_executable_extensions; do
5005   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5006     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5007     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5008     break 2
5009   fi
5010 done
5011   done
5012 IFS=$as_save_IFS
5013
5014 fi
5015 fi
5016 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5017 if test -n "$ac_ct_DUMPBIN"; then
5018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5019 $as_echo "$ac_ct_DUMPBIN" >&6; }
5020 else
5021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5022 $as_echo "no" >&6; }
5023 fi
5024
5025
5026   test -n "$ac_ct_DUMPBIN" && break
5027 done
5028
5029   if test "x$ac_ct_DUMPBIN" = x; then
5030     DUMPBIN=":"
5031   else
5032     case $cross_compiling:$ac_tool_warned in
5033 yes:)
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5035 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5036 ac_tool_warned=yes ;;
5037 esac
5038     DUMPBIN=$ac_ct_DUMPBIN
5039   fi
5040 fi
5041
5042     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5043     *COFF*)
5044       DUMPBIN="$DUMPBIN -symbols"
5045       ;;
5046     *)
5047       DUMPBIN=:
5048       ;;
5049     esac
5050   fi
5051
5052   if test "$DUMPBIN" != ":"; then
5053     NM="$DUMPBIN"
5054   fi
5055 fi
5056 test -z "$NM" && NM=nm
5057
5058
5059
5060
5061
5062
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5064 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5065 if ${lt_cv_nm_interface+:} false; then :
5066   $as_echo_n "(cached) " >&6
5067 else
5068   lt_cv_nm_interface="BSD nm"
5069   echo "int some_variable = 0;" > conftest.$ac_ext
5070   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5071   (eval "$ac_compile" 2>conftest.err)
5072   cat conftest.err >&5
5073   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5074   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5075   cat conftest.err >&5
5076   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5077   cat conftest.out >&5
5078   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5079     lt_cv_nm_interface="MS dumpbin"
5080   fi
5081   rm -f conftest*
5082 fi
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5084 $as_echo "$lt_cv_nm_interface" >&6; }
5085
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5087 $as_echo_n "checking whether ln -s works... " >&6; }
5088 LN_S=$as_ln_s
5089 if test "$LN_S" = "ln -s"; then
5090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5091 $as_echo "yes" >&6; }
5092 else
5093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5094 $as_echo "no, using $LN_S" >&6; }
5095 fi
5096
5097 # find the maximum length of command line arguments
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5099 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5100 if ${lt_cv_sys_max_cmd_len+:} false; then :
5101   $as_echo_n "(cached) " >&6
5102 else
5103     i=0
5104   teststring="ABCD"
5105
5106   case $build_os in
5107   msdosdjgpp*)
5108     # On DJGPP, this test can blow up pretty badly due to problems in libc
5109     # (any single argument exceeding 2000 bytes causes a buffer overrun
5110     # during glob expansion).  Even if it were fixed, the result of this
5111     # check would be larger than it should be.
5112     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5113     ;;
5114
5115   gnu*)
5116     # Under GNU Hurd, this test is not required because there is
5117     # no limit to the length of command line arguments.
5118     # Libtool will interpret -1 as no limit whatsoever
5119     lt_cv_sys_max_cmd_len=-1;
5120     ;;
5121
5122   cygwin* | mingw* | cegcc*)
5123     # On Win9x/ME, this test blows up -- it succeeds, but takes
5124     # about 5 minutes as the teststring grows exponentially.
5125     # Worse, since 9x/ME are not pre-emptively multitasking,
5126     # you end up with a "frozen" computer, even though with patience
5127     # the test eventually succeeds (with a max line length of 256k).
5128     # Instead, let's just punt: use the minimum linelength reported by
5129     # all of the supported platforms: 8192 (on NT/2K/XP).
5130     lt_cv_sys_max_cmd_len=8192;
5131     ;;
5132
5133   mint*)
5134     # On MiNT this can take a long time and run out of memory.
5135     lt_cv_sys_max_cmd_len=8192;
5136     ;;
5137
5138   amigaos*)
5139     # On AmigaOS with pdksh, this test takes hours, literally.
5140     # So we just punt and use a minimum line length of 8192.
5141     lt_cv_sys_max_cmd_len=8192;
5142     ;;
5143
5144   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5145     # This has been around since 386BSD, at least.  Likely further.
5146     if test -x /sbin/sysctl; then
5147       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5148     elif test -x /usr/sbin/sysctl; then
5149       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5150     else
5151       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5152     fi
5153     # And add a safety zone
5154     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5155     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5156     ;;
5157
5158   interix*)
5159     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5160     lt_cv_sys_max_cmd_len=196608
5161     ;;
5162
5163   os2*)
5164     # The test takes a long time on OS/2.
5165     lt_cv_sys_max_cmd_len=8192
5166     ;;
5167
5168   osf*)
5169     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5170     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5171     # nice to cause kernel panics so lets avoid the loop below.
5172     # First set a reasonable default.
5173     lt_cv_sys_max_cmd_len=16384
5174     #
5175     if test -x /sbin/sysconfig; then
5176       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5177         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5178       esac
5179     fi
5180     ;;
5181   sco3.2v5*)
5182     lt_cv_sys_max_cmd_len=102400
5183     ;;
5184   sysv5* | sco5v6* | sysv4.2uw2*)
5185     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5186     if test -n "$kargmax"; then
5187       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5188     else
5189       lt_cv_sys_max_cmd_len=32768
5190     fi
5191     ;;
5192   *)
5193     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5194     if test -n "$lt_cv_sys_max_cmd_len"; then
5195       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5196       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5197     else
5198       # Make teststring a little bigger before we do anything with it.
5199       # a 1K string should be a reasonable start.
5200       for i in 1 2 3 4 5 6 7 8 ; do
5201         teststring=$teststring$teststring
5202       done
5203       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5204       # If test is not a shell built-in, we'll probably end up computing a
5205       # maximum length that is only half of the actual maximum length, but
5206       # we can't tell.
5207       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5208                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5209               test $i != 17 # 1/2 MB should be enough
5210       do
5211         i=`expr $i + 1`
5212         teststring=$teststring$teststring
5213       done
5214       # Only check the string length outside the loop.
5215       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5216       teststring=
5217       # Add a significant safety factor because C++ compilers can tack on
5218       # massive amounts of additional arguments before passing them to the
5219       # linker.  It appears as though 1/2 is a usable value.
5220       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5221     fi
5222     ;;
5223   esac
5224
5225 fi
5226
5227 if test -n $lt_cv_sys_max_cmd_len ; then
5228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5229 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5230 else
5231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5232 $as_echo "none" >&6; }
5233 fi
5234 max_cmd_len=$lt_cv_sys_max_cmd_len
5235
5236
5237
5238
5239
5240
5241 : ${CP="cp -f"}
5242 : ${MV="mv -f"}
5243 : ${RM="rm -f"}
5244
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5246 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5247 # Try some XSI features
5248 xsi_shell=no
5249 ( _lt_dummy="a/b/c"
5250   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5251       = c,a/b,b/c, \
5252     && eval 'test $(( 1 + 1 )) -eq 2 \
5253     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5254   && xsi_shell=yes
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5256 $as_echo "$xsi_shell" >&6; }
5257
5258
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5260 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5261 lt_shell_append=no
5262 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5263     >/dev/null 2>&1 \
5264   && lt_shell_append=yes
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5266 $as_echo "$lt_shell_append" >&6; }
5267
5268
5269 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5270   lt_unset=unset
5271 else
5272   lt_unset=false
5273 fi
5274
5275
5276
5277
5278
5279 # test EBCDIC or ASCII
5280 case `echo X|tr X '\101'` in
5281  A) # ASCII based system
5282     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5283   lt_SP2NL='tr \040 \012'
5284   lt_NL2SP='tr \015\012 \040\040'
5285   ;;
5286  *) # EBCDIC based system
5287   lt_SP2NL='tr \100 \n'
5288   lt_NL2SP='tr \r\n \100\100'
5289   ;;
5290 esac
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5301 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5302 if ${lt_cv_to_host_file_cmd+:} false; then :
5303   $as_echo_n "(cached) " >&6
5304 else
5305   case $host in
5306   *-*-mingw* )
5307     case $build in
5308       *-*-mingw* ) # actually msys
5309         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5310         ;;
5311       *-*-cygwin* )
5312         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5313         ;;
5314       * ) # otherwise, assume *nix
5315         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5316         ;;
5317     esac
5318     ;;
5319   *-*-cygwin* )
5320     case $build in
5321       *-*-mingw* ) # actually msys
5322         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5323         ;;
5324       *-*-cygwin* )
5325         lt_cv_to_host_file_cmd=func_convert_file_noop
5326         ;;
5327       * ) # otherwise, assume *nix
5328         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5329         ;;
5330     esac
5331     ;;
5332   * ) # unhandled hosts (and "normal" native builds)
5333     lt_cv_to_host_file_cmd=func_convert_file_noop
5334     ;;
5335 esac
5336
5337 fi
5338
5339 to_host_file_cmd=$lt_cv_to_host_file_cmd
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5341 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5342
5343
5344
5345
5346
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5348 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5349 if ${lt_cv_to_tool_file_cmd+:} false; then :
5350   $as_echo_n "(cached) " >&6
5351 else
5352   #assume ordinary cross tools, or native build.
5353 lt_cv_to_tool_file_cmd=func_convert_file_noop
5354 case $host in
5355   *-*-mingw* )
5356     case $build in
5357       *-*-mingw* ) # actually msys
5358         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5359         ;;
5360     esac
5361     ;;
5362 esac
5363
5364 fi
5365
5366 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5368 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5369
5370
5371
5372
5373
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5375 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5376 if ${lt_cv_ld_reload_flag+:} false; then :
5377   $as_echo_n "(cached) " >&6
5378 else
5379   lt_cv_ld_reload_flag='-r'
5380 fi
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5382 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5383 reload_flag=$lt_cv_ld_reload_flag
5384 case $reload_flag in
5385 "" | " "*) ;;
5386 *) reload_flag=" $reload_flag" ;;
5387 esac
5388 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5389 case $host_os in
5390   cygwin* | mingw* | pw32* | cegcc*)
5391     if test "$GCC" != yes; then
5392       reload_cmds=false
5393     fi
5394     ;;
5395   darwin*)
5396     if test "$GCC" = yes; then
5397       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5398     else
5399       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5400     fi
5401     ;;
5402 esac
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412 if test -n "$ac_tool_prefix"; then
5413   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5414 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5416 $as_echo_n "checking for $ac_word... " >&6; }
5417 if ${ac_cv_prog_OBJDUMP+:} false; then :
5418   $as_echo_n "(cached) " >&6
5419 else
5420   if test -n "$OBJDUMP"; then
5421   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5422 else
5423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5424 for as_dir in $PATH
5425 do
5426   IFS=$as_save_IFS
5427   test -z "$as_dir" && as_dir=.
5428     for ac_exec_ext in '' $ac_executable_extensions; do
5429   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5430     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5431     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5432     break 2
5433   fi
5434 done
5435   done
5436 IFS=$as_save_IFS
5437
5438 fi
5439 fi
5440 OBJDUMP=$ac_cv_prog_OBJDUMP
5441 if test -n "$OBJDUMP"; then
5442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5443 $as_echo "$OBJDUMP" >&6; }
5444 else
5445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5446 $as_echo "no" >&6; }
5447 fi
5448
5449
5450 fi
5451 if test -z "$ac_cv_prog_OBJDUMP"; then
5452   ac_ct_OBJDUMP=$OBJDUMP
5453   # Extract the first word of "objdump", so it can be a program name with args.
5454 set dummy objdump; ac_word=$2
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5456 $as_echo_n "checking for $ac_word... " >&6; }
5457 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5458   $as_echo_n "(cached) " >&6
5459 else
5460   if test -n "$ac_ct_OBJDUMP"; then
5461   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5462 else
5463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5464 for as_dir in $PATH
5465 do
5466   IFS=$as_save_IFS
5467   test -z "$as_dir" && as_dir=.
5468     for ac_exec_ext in '' $ac_executable_extensions; do
5469   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5470     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5471     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5472     break 2
5473   fi
5474 done
5475   done
5476 IFS=$as_save_IFS
5477
5478 fi
5479 fi
5480 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5481 if test -n "$ac_ct_OBJDUMP"; then
5482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5483 $as_echo "$ac_ct_OBJDUMP" >&6; }
5484 else
5485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5486 $as_echo "no" >&6; }
5487 fi
5488
5489   if test "x$ac_ct_OBJDUMP" = x; then
5490     OBJDUMP="false"
5491   else
5492     case $cross_compiling:$ac_tool_warned in
5493 yes:)
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5495 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5496 ac_tool_warned=yes ;;
5497 esac
5498     OBJDUMP=$ac_ct_OBJDUMP
5499   fi
5500 else
5501   OBJDUMP="$ac_cv_prog_OBJDUMP"
5502 fi
5503
5504 test -z "$OBJDUMP" && OBJDUMP=objdump
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5515 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5516 if ${lt_cv_deplibs_check_method+:} false; then :
5517   $as_echo_n "(cached) " >&6
5518 else
5519   lt_cv_file_magic_cmd='$MAGIC_CMD'
5520 lt_cv_file_magic_test_file=
5521 lt_cv_deplibs_check_method='unknown'
5522 # Need to set the preceding variable on all platforms that support
5523 # interlibrary dependencies.
5524 # 'none' -- dependencies not supported.
5525 # `unknown' -- same as none, but documents that we really don't know.
5526 # 'pass_all' -- all dependencies passed with no checks.
5527 # 'test_compile' -- check by making test program.
5528 # 'file_magic [[regex]]' -- check by looking for files in library path
5529 # which responds to the $file_magic_cmd with a given extended regex.
5530 # If you have `file' or equivalent on your system and you're not sure
5531 # whether `pass_all' will *always* work, you probably want this one.
5532
5533 case $host_os in
5534 aix[4-9]*)
5535   lt_cv_deplibs_check_method=pass_all
5536   ;;
5537
5538 beos*)
5539   lt_cv_deplibs_check_method=pass_all
5540   ;;
5541
5542 bsdi[45]*)
5543   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5544   lt_cv_file_magic_cmd='/usr/bin/file -L'
5545   lt_cv_file_magic_test_file=/shlib/libc.so
5546   ;;
5547
5548 cygwin*)
5549   # func_win32_libid is a shell function defined in ltmain.sh
5550   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5551   lt_cv_file_magic_cmd='func_win32_libid'
5552   ;;
5553
5554 mingw* | pw32*)
5555   # Base MSYS/MinGW do not provide the 'file' command needed by
5556   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5557   # unless we find 'file', for example because we are cross-compiling.
5558   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5559   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5560     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5561     lt_cv_file_magic_cmd='func_win32_libid'
5562   else
5563     # Keep this pattern in sync with the one in func_win32_libid.
5564     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5565     lt_cv_file_magic_cmd='$OBJDUMP -f'
5566   fi
5567   ;;
5568
5569 cegcc*)
5570   # use the weaker test based on 'objdump'. See mingw*.
5571   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5572   lt_cv_file_magic_cmd='$OBJDUMP -f'
5573   ;;
5574
5575 darwin* | rhapsody*)
5576   lt_cv_deplibs_check_method=pass_all
5577   ;;
5578
5579 freebsd* | dragonfly*)
5580   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5581     case $host_cpu in
5582     i*86 )
5583       # Not sure whether the presence of OpenBSD here was a mistake.
5584       # Let's accept both of them until this is cleared up.
5585       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5586       lt_cv_file_magic_cmd=/usr/bin/file
5587       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5588       ;;
5589     esac
5590   else
5591     lt_cv_deplibs_check_method=pass_all
5592   fi
5593   ;;
5594
5595 gnu*)
5596   lt_cv_deplibs_check_method=pass_all
5597   ;;
5598
5599 haiku*)
5600   lt_cv_deplibs_check_method=pass_all
5601   ;;
5602
5603 hpux10.20* | hpux11*)
5604   lt_cv_file_magic_cmd=/usr/bin/file
5605   case $host_cpu in
5606   ia64*)
5607     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5608     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5609     ;;
5610   hppa*64*)
5611     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]'
5612     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5613     ;;
5614   *)
5615     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5616     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5617     ;;
5618   esac
5619   ;;
5620
5621 interix[3-9]*)
5622   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5623   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5624   ;;
5625
5626 irix5* | irix6* | nonstopux*)
5627   case $LD in
5628   *-32|*"-32 ") libmagic=32-bit;;
5629   *-n32|*"-n32 ") libmagic=N32;;
5630   *-64|*"-64 ") libmagic=64-bit;;
5631   *) libmagic=never-match;;
5632   esac
5633   lt_cv_deplibs_check_method=pass_all
5634   ;;
5635
5636 # This must be glibc/ELF.
5637 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5638   lt_cv_deplibs_check_method=pass_all
5639   ;;
5640
5641 netbsd*)
5642   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5643     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5644   else
5645     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5646   fi
5647   ;;
5648
5649 newos6*)
5650   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5651   lt_cv_file_magic_cmd=/usr/bin/file
5652   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5653   ;;
5654
5655 *nto* | *qnx*)
5656   lt_cv_deplibs_check_method=pass_all
5657   ;;
5658
5659 openbsd*)
5660   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5661     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5662   else
5663     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5664   fi
5665   ;;
5666
5667 osf3* | osf4* | osf5*)
5668   lt_cv_deplibs_check_method=pass_all
5669   ;;
5670
5671 rdos*)
5672   lt_cv_deplibs_check_method=pass_all
5673   ;;
5674
5675 solaris*)
5676   lt_cv_deplibs_check_method=pass_all
5677   ;;
5678
5679 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5680   lt_cv_deplibs_check_method=pass_all
5681   ;;
5682
5683 sysv4 | sysv4.3*)
5684   case $host_vendor in
5685   motorola)
5686     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]'
5687     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5688     ;;
5689   ncr)
5690     lt_cv_deplibs_check_method=pass_all
5691     ;;
5692   sequent)
5693     lt_cv_file_magic_cmd='/bin/file'
5694     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5695     ;;
5696   sni)
5697     lt_cv_file_magic_cmd='/bin/file'
5698     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5699     lt_cv_file_magic_test_file=/lib/libc.so
5700     ;;
5701   siemens)
5702     lt_cv_deplibs_check_method=pass_all
5703     ;;
5704   pc)
5705     lt_cv_deplibs_check_method=pass_all
5706     ;;
5707   esac
5708   ;;
5709
5710 tpf*)
5711   lt_cv_deplibs_check_method=pass_all
5712   ;;
5713 esac
5714
5715 fi
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5717 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5718
5719 file_magic_glob=
5720 want_nocaseglob=no
5721 if test "$build" = "$host"; then
5722   case $host_os in
5723   mingw* | pw32*)
5724     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5725       want_nocaseglob=yes
5726     else
5727       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5728     fi
5729     ;;
5730   esac
5731 fi
5732
5733 file_magic_cmd=$lt_cv_file_magic_cmd
5734 deplibs_check_method=$lt_cv_deplibs_check_method
5735 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758 if test -n "$ac_tool_prefix"; then
5759   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5760 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5762 $as_echo_n "checking for $ac_word... " >&6; }
5763 if ${ac_cv_prog_DLLTOOL+:} false; then :
5764   $as_echo_n "(cached) " >&6
5765 else
5766   if test -n "$DLLTOOL"; then
5767   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5768 else
5769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5770 for as_dir in $PATH
5771 do
5772   IFS=$as_save_IFS
5773   test -z "$as_dir" && as_dir=.
5774     for ac_exec_ext in '' $ac_executable_extensions; do
5775   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5776     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5777     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5778     break 2
5779   fi
5780 done
5781   done
5782 IFS=$as_save_IFS
5783
5784 fi
5785 fi
5786 DLLTOOL=$ac_cv_prog_DLLTOOL
5787 if test -n "$DLLTOOL"; then
5788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5789 $as_echo "$DLLTOOL" >&6; }
5790 else
5791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5792 $as_echo "no" >&6; }
5793 fi
5794
5795
5796 fi
5797 if test -z "$ac_cv_prog_DLLTOOL"; then
5798   ac_ct_DLLTOOL=$DLLTOOL
5799   # Extract the first word of "dlltool", so it can be a program name with args.
5800 set dummy dlltool; ac_word=$2
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5802 $as_echo_n "checking for $ac_word... " >&6; }
5803 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5804   $as_echo_n "(cached) " >&6
5805 else
5806   if test -n "$ac_ct_DLLTOOL"; then
5807   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5808 else
5809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5810 for as_dir in $PATH
5811 do
5812   IFS=$as_save_IFS
5813   test -z "$as_dir" && as_dir=.
5814     for ac_exec_ext in '' $ac_executable_extensions; do
5815   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5816     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5817     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5818     break 2
5819   fi
5820 done
5821   done
5822 IFS=$as_save_IFS
5823
5824 fi
5825 fi
5826 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5827 if test -n "$ac_ct_DLLTOOL"; then
5828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5829 $as_echo "$ac_ct_DLLTOOL" >&6; }
5830 else
5831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5832 $as_echo "no" >&6; }
5833 fi
5834
5835   if test "x$ac_ct_DLLTOOL" = x; then
5836     DLLTOOL="false"
5837   else
5838     case $cross_compiling:$ac_tool_warned in
5839 yes:)
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5841 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5842 ac_tool_warned=yes ;;
5843 esac
5844     DLLTOOL=$ac_ct_DLLTOOL
5845   fi
5846 else
5847   DLLTOOL="$ac_cv_prog_DLLTOOL"
5848 fi
5849
5850 test -z "$DLLTOOL" && DLLTOOL=dlltool
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5862 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5863 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5864   $as_echo_n "(cached) " >&6
5865 else
5866   lt_cv_sharedlib_from_linklib_cmd='unknown'
5867
5868 case $host_os in
5869 cygwin* | mingw* | pw32* | cegcc*)
5870   # two different shell functions defined in ltmain.sh
5871   # decide which to use based on capabilities of $DLLTOOL
5872   case `$DLLTOOL --help 2>&1` in
5873   *--identify-strict*)
5874     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5875     ;;
5876   *)
5877     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5878     ;;
5879   esac
5880   ;;
5881 *)
5882   # fallback: assume linklib IS sharedlib
5883   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5884   ;;
5885 esac
5886
5887 fi
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5889 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5890 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5891 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5892
5893
5894
5895
5896
5897
5898
5899 if test -n "$ac_tool_prefix"; then
5900   for ac_prog in ar
5901   do
5902     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5903 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5905 $as_echo_n "checking for $ac_word... " >&6; }
5906 if ${ac_cv_prog_AR+:} false; then :
5907   $as_echo_n "(cached) " >&6
5908 else
5909   if test -n "$AR"; then
5910   ac_cv_prog_AR="$AR" # Let the user override the test.
5911 else
5912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913 for as_dir in $PATH
5914 do
5915   IFS=$as_save_IFS
5916   test -z "$as_dir" && as_dir=.
5917     for ac_exec_ext in '' $ac_executable_extensions; do
5918   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5919     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5920     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5921     break 2
5922   fi
5923 done
5924   done
5925 IFS=$as_save_IFS
5926
5927 fi
5928 fi
5929 AR=$ac_cv_prog_AR
5930 if test -n "$AR"; then
5931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5932 $as_echo "$AR" >&6; }
5933 else
5934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5935 $as_echo "no" >&6; }
5936 fi
5937
5938
5939     test -n "$AR" && break
5940   done
5941 fi
5942 if test -z "$AR"; then
5943   ac_ct_AR=$AR
5944   for ac_prog in ar
5945 do
5946   # Extract the first word of "$ac_prog", so it can be a program name with args.
5947 set dummy $ac_prog; ac_word=$2
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5949 $as_echo_n "checking for $ac_word... " >&6; }
5950 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5951   $as_echo_n "(cached) " >&6
5952 else
5953   if test -n "$ac_ct_AR"; then
5954   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5955 else
5956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5957 for as_dir in $PATH
5958 do
5959   IFS=$as_save_IFS
5960   test -z "$as_dir" && as_dir=.
5961     for ac_exec_ext in '' $ac_executable_extensions; do
5962   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5963     ac_cv_prog_ac_ct_AR="$ac_prog"
5964     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5965     break 2
5966   fi
5967 done
5968   done
5969 IFS=$as_save_IFS
5970
5971 fi
5972 fi
5973 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5974 if test -n "$ac_ct_AR"; then
5975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5976 $as_echo "$ac_ct_AR" >&6; }
5977 else
5978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5979 $as_echo "no" >&6; }
5980 fi
5981
5982
5983   test -n "$ac_ct_AR" && break
5984 done
5985
5986   if test "x$ac_ct_AR" = x; then
5987     AR="false"
5988   else
5989     case $cross_compiling:$ac_tool_warned in
5990 yes:)
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5992 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5993 ac_tool_warned=yes ;;
5994 esac
5995     AR=$ac_ct_AR
5996   fi
5997 fi
5998
5999 : ${AR=ar}
6000 : ${AR_FLAGS=cru}
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6013 $as_echo_n "checking for archiver @FILE support... " >&6; }
6014 if ${lt_cv_ar_at_file+:} false; then :
6015   $as_echo_n "(cached) " >&6
6016 else
6017   lt_cv_ar_at_file=no
6018    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6019 /* end confdefs.h.  */
6020
6021 int
6022 main ()
6023 {
6024
6025   ;
6026   return 0;
6027 }
6028 _ACEOF
6029 if ac_fn_c_try_compile "$LINENO"; then :
6030   echo conftest.$ac_objext > conftest.lst
6031       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6032       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6033   (eval $lt_ar_try) 2>&5
6034   ac_status=$?
6035   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6036   test $ac_status = 0; }
6037       if test "$ac_status" -eq 0; then
6038         # Ensure the archiver fails upon bogus file names.
6039         rm -f conftest.$ac_objext libconftest.a
6040         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6041   (eval $lt_ar_try) 2>&5
6042   ac_status=$?
6043   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6044   test $ac_status = 0; }
6045         if test "$ac_status" -ne 0; then
6046           lt_cv_ar_at_file=@
6047         fi
6048       fi
6049       rm -f conftest.* libconftest.a
6050
6051 fi
6052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6053
6054 fi
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6056 $as_echo "$lt_cv_ar_at_file" >&6; }
6057
6058 if test "x$lt_cv_ar_at_file" = xno; then
6059   archiver_list_spec=
6060 else
6061   archiver_list_spec=$lt_cv_ar_at_file
6062 fi
6063
6064
6065
6066
6067
6068
6069
6070 if test -n "$ac_tool_prefix"; then
6071   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6072 set dummy ${ac_tool_prefix}strip; ac_word=$2
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6074 $as_echo_n "checking for $ac_word... " >&6; }
6075 if ${ac_cv_prog_STRIP+:} false; then :
6076   $as_echo_n "(cached) " >&6
6077 else
6078   if test -n "$STRIP"; then
6079   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6080 else
6081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6082 for as_dir in $PATH
6083 do
6084   IFS=$as_save_IFS
6085   test -z "$as_dir" && as_dir=.
6086     for ac_exec_ext in '' $ac_executable_extensions; do
6087   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6088     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6089     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6090     break 2
6091   fi
6092 done
6093   done
6094 IFS=$as_save_IFS
6095
6096 fi
6097 fi
6098 STRIP=$ac_cv_prog_STRIP
6099 if test -n "$STRIP"; then
6100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6101 $as_echo "$STRIP" >&6; }
6102 else
6103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6104 $as_echo "no" >&6; }
6105 fi
6106
6107
6108 fi
6109 if test -z "$ac_cv_prog_STRIP"; then
6110   ac_ct_STRIP=$STRIP
6111   # Extract the first word of "strip", so it can be a program name with args.
6112 set dummy strip; ac_word=$2
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6114 $as_echo_n "checking for $ac_word... " >&6; }
6115 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6116   $as_echo_n "(cached) " >&6
6117 else
6118   if test -n "$ac_ct_STRIP"; then
6119   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6120 else
6121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6122 for as_dir in $PATH
6123 do
6124   IFS=$as_save_IFS
6125   test -z "$as_dir" && as_dir=.
6126     for ac_exec_ext in '' $ac_executable_extensions; do
6127   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6128     ac_cv_prog_ac_ct_STRIP="strip"
6129     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6130     break 2
6131   fi
6132 done
6133   done
6134 IFS=$as_save_IFS
6135
6136 fi
6137 fi
6138 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6139 if test -n "$ac_ct_STRIP"; then
6140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6141 $as_echo "$ac_ct_STRIP" >&6; }
6142 else
6143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6144 $as_echo "no" >&6; }
6145 fi
6146
6147   if test "x$ac_ct_STRIP" = x; then
6148     STRIP=":"
6149   else
6150     case $cross_compiling:$ac_tool_warned in
6151 yes:)
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6153 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6154 ac_tool_warned=yes ;;
6155 esac
6156     STRIP=$ac_ct_STRIP
6157   fi
6158 else
6159   STRIP="$ac_cv_prog_STRIP"
6160 fi
6161
6162 test -z "$STRIP" && STRIP=:
6163
6164
6165
6166
6167
6168
6169 if test -n "$ac_tool_prefix"; then
6170   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6171 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6173 $as_echo_n "checking for $ac_word... " >&6; }
6174 if ${ac_cv_prog_RANLIB+:} false; then :
6175   $as_echo_n "(cached) " >&6
6176 else
6177   if test -n "$RANLIB"; then
6178   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6179 else
6180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6181 for as_dir in $PATH
6182 do
6183   IFS=$as_save_IFS
6184   test -z "$as_dir" && as_dir=.
6185     for ac_exec_ext in '' $ac_executable_extensions; do
6186   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6187     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6188     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6189     break 2
6190   fi
6191 done
6192   done
6193 IFS=$as_save_IFS
6194
6195 fi
6196 fi
6197 RANLIB=$ac_cv_prog_RANLIB
6198 if test -n "$RANLIB"; then
6199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6200 $as_echo "$RANLIB" >&6; }
6201 else
6202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6203 $as_echo "no" >&6; }
6204 fi
6205
6206
6207 fi
6208 if test -z "$ac_cv_prog_RANLIB"; then
6209   ac_ct_RANLIB=$RANLIB
6210   # Extract the first word of "ranlib", so it can be a program name with args.
6211 set dummy ranlib; ac_word=$2
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6213 $as_echo_n "checking for $ac_word... " >&6; }
6214 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6215   $as_echo_n "(cached) " >&6
6216 else
6217   if test -n "$ac_ct_RANLIB"; then
6218   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6219 else
6220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6221 for as_dir in $PATH
6222 do
6223   IFS=$as_save_IFS
6224   test -z "$as_dir" && as_dir=.
6225     for ac_exec_ext in '' $ac_executable_extensions; do
6226   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6227     ac_cv_prog_ac_ct_RANLIB="ranlib"
6228     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6229     break 2
6230   fi
6231 done
6232   done
6233 IFS=$as_save_IFS
6234
6235 fi
6236 fi
6237 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6238 if test -n "$ac_ct_RANLIB"; then
6239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6240 $as_echo "$ac_ct_RANLIB" >&6; }
6241 else
6242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6243 $as_echo "no" >&6; }
6244 fi
6245
6246   if test "x$ac_ct_RANLIB" = x; then
6247     RANLIB=":"
6248   else
6249     case $cross_compiling:$ac_tool_warned in
6250 yes:)
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6252 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6253 ac_tool_warned=yes ;;
6254 esac
6255     RANLIB=$ac_ct_RANLIB
6256   fi
6257 else
6258   RANLIB="$ac_cv_prog_RANLIB"
6259 fi
6260
6261 test -z "$RANLIB" && RANLIB=:
6262
6263
6264
6265
6266
6267
6268 # Determine commands to create old-style static archives.
6269 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6270 old_postinstall_cmds='chmod 644 $oldlib'
6271 old_postuninstall_cmds=
6272
6273 if test -n "$RANLIB"; then
6274   case $host_os in
6275   openbsd*)
6276     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6277     ;;
6278   *)
6279     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6280     ;;
6281   esac
6282   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6283 fi
6284
6285 case $host_os in
6286   darwin*)
6287     lock_old_archive_extraction=yes ;;
6288   *)
6289     lock_old_archive_extraction=no ;;
6290 esac
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330 # If no C compiler was specified, use CC.
6331 LTCC=${LTCC-"$CC"}
6332
6333 # If no C compiler flags were specified, use CFLAGS.
6334 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6335
6336 # Allow CC to be a program name with arguments.
6337 compiler=$CC
6338
6339
6340 # Check for command to grab the raw symbol name followed by C symbol from nm.
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6342 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6343 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6344   $as_echo_n "(cached) " >&6
6345 else
6346
6347 # These are sane defaults that work on at least a few old systems.
6348 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6349
6350 # Character class describing NM global symbol codes.
6351 symcode='[BCDEGRST]'
6352
6353 # Regexp to match symbols that can be accessed directly from C.
6354 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6355
6356 # Define system-specific variables.
6357 case $host_os in
6358 aix*)
6359   symcode='[BCDT]'
6360   ;;
6361 cygwin* | mingw* | pw32* | cegcc*)
6362   symcode='[ABCDGISTW]'
6363   ;;
6364 hpux*)
6365   if test "$host_cpu" = ia64; then
6366     symcode='[ABCDEGRST]'
6367   fi
6368   ;;
6369 irix* | nonstopux*)
6370   symcode='[BCDEGRST]'
6371   ;;
6372 osf*)
6373   symcode='[BCDEGQRST]'
6374   ;;
6375 solaris*)
6376   symcode='[BDRT]'
6377   ;;
6378 sco3.2v5*)
6379   symcode='[DT]'
6380   ;;
6381 sysv4.2uw2*)
6382   symcode='[DT]'
6383   ;;
6384 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6385   symcode='[ABDT]'
6386   ;;
6387 sysv4)
6388   symcode='[DFNSTU]'
6389   ;;
6390 esac
6391
6392 # If we're using GNU nm, then use its standard symbol codes.
6393 case `$NM -V 2>&1` in
6394 *GNU* | *'with BFD'*)
6395   symcode='[ABCDGIRSTW]' ;;
6396 esac
6397
6398 # Transform an extracted symbol line into a proper C declaration.
6399 # Some systems (esp. on ia64) link data and code symbols differently,
6400 # so use this general approach.
6401 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6402
6403 # Transform an extracted symbol line into symbol name and symbol address
6404 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6405 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'"
6406
6407 # Handle CRLF in mingw tool chain
6408 opt_cr=
6409 case $build_os in
6410 mingw*)
6411   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6412   ;;
6413 esac
6414
6415 # Try without a prefix underscore, then with it.
6416 for ac_symprfx in "" "_"; do
6417
6418   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6419   symxfrm="\\1 $ac_symprfx\\2 \\2"
6420
6421   # Write the raw and C identifiers.
6422   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6423     # Fake it for dumpbin and say T for any non-static function
6424     # and D for any global variable.
6425     # Also find C++ and __fastcall symbols from MSVC++,
6426     # which start with @ or ?.
6427     lt_cv_sys_global_symbol_pipe="$AWK '"\
6428 "     {last_section=section; section=\$ 3};"\
6429 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6430 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6431 "     \$ 0!~/External *\|/{next};"\
6432 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6433 "     {if(hide[section]) next};"\
6434 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6435 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6436 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6437 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6438 "     ' prfx=^$ac_symprfx"
6439   else
6440     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6441   fi
6442   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6443
6444   # Check to see that the pipe works correctly.
6445   pipe_works=no
6446
6447   rm -f conftest*
6448   cat > conftest.$ac_ext <<_LT_EOF
6449 #ifdef __cplusplus
6450 extern "C" {
6451 #endif
6452 char nm_test_var;
6453 void nm_test_func(void);
6454 void nm_test_func(void){}
6455 #ifdef __cplusplus
6456 }
6457 #endif
6458 int main(){nm_test_var='a';nm_test_func();return(0);}
6459 _LT_EOF
6460
6461   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6462   (eval $ac_compile) 2>&5
6463   ac_status=$?
6464   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6465   test $ac_status = 0; }; then
6466     # Now try to grab the symbols.
6467     nlist=conftest.nm
6468     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6469   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6470   ac_status=$?
6471   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6472   test $ac_status = 0; } && test -s "$nlist"; then
6473       # Try sorting and uniquifying the output.
6474       if sort "$nlist" | uniq > "$nlist"T; then
6475         mv -f "$nlist"T "$nlist"
6476       else
6477         rm -f "$nlist"T
6478       fi
6479
6480       # Make sure that we snagged all the symbols we need.
6481       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6482         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6483           cat <<_LT_EOF > conftest.$ac_ext
6484 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6485 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6486 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6487    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6488 # define LT_DLSYM_CONST
6489 #elif defined(__osf__)
6490 /* This system does not cope well with relocations in const data.  */
6491 # define LT_DLSYM_CONST
6492 #else
6493 # define LT_DLSYM_CONST const
6494 #endif
6495
6496 #ifdef __cplusplus
6497 extern "C" {
6498 #endif
6499
6500 _LT_EOF
6501           # Now generate the symbol file.
6502           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6503
6504           cat <<_LT_EOF >> conftest.$ac_ext
6505
6506 /* The mapping between symbol names and symbols.  */
6507 LT_DLSYM_CONST struct {
6508   const char *name;
6509   void       *address;
6510 }
6511 lt__PROGRAM__LTX_preloaded_symbols[] =
6512 {
6513   { "@PROGRAM@", (void *) 0 },
6514 _LT_EOF
6515           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6516           cat <<\_LT_EOF >> conftest.$ac_ext
6517   {0, (void *) 0}
6518 };
6519
6520 /* This works around a problem in FreeBSD linker */
6521 #ifdef FREEBSD_WORKAROUND
6522 static const void *lt_preloaded_setup() {
6523   return lt__PROGRAM__LTX_preloaded_symbols;
6524 }
6525 #endif
6526
6527 #ifdef __cplusplus
6528 }
6529 #endif
6530 _LT_EOF
6531           # Now try linking the two files.
6532           mv conftest.$ac_objext conftstm.$ac_objext
6533           lt_globsym_save_LIBS=$LIBS
6534           lt_globsym_save_CFLAGS=$CFLAGS
6535           LIBS="conftstm.$ac_objext"
6536           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6537           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6538   (eval $ac_link) 2>&5
6539   ac_status=$?
6540   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6541   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6542             pipe_works=yes
6543           fi
6544           LIBS=$lt_globsym_save_LIBS
6545           CFLAGS=$lt_globsym_save_CFLAGS
6546         else
6547           echo "cannot find nm_test_func in $nlist" >&5
6548         fi
6549       else
6550         echo "cannot find nm_test_var in $nlist" >&5
6551       fi
6552     else
6553       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6554     fi
6555   else
6556     echo "$progname: failed program was:" >&5
6557     cat conftest.$ac_ext >&5
6558   fi
6559   rm -rf conftest* conftst*
6560
6561   # Do not use the global_symbol_pipe unless it works.
6562   if test "$pipe_works" = yes; then
6563     break
6564   else
6565     lt_cv_sys_global_symbol_pipe=
6566   fi
6567 done
6568
6569 fi
6570
6571 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6572   lt_cv_sys_global_symbol_to_cdecl=
6573 fi
6574 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6576 $as_echo "failed" >&6; }
6577 else
6578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6579 $as_echo "ok" >&6; }
6580 fi
6581
6582 # Response file support.
6583 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6584   nm_file_list_spec='@'
6585 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6586   nm_file_list_spec='@'
6587 fi
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6616 $as_echo_n "checking for sysroot... " >&6; }
6617
6618 # Check whether --with-sysroot was given.
6619 if test "${with_sysroot+set}" = set; then :
6620   withval=$with_sysroot;
6621 else
6622   with_sysroot=no
6623 fi
6624
6625
6626 lt_sysroot=
6627 case ${with_sysroot} in #(
6628  yes)
6629    if test "$GCC" = yes; then
6630      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6631    fi
6632    ;; #(
6633  /*)
6634    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6635    ;; #(
6636  no|'')
6637    ;; #(
6638  *)
6639    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6640 $as_echo "${with_sysroot}" >&6; }
6641    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6642    ;;
6643 esac
6644
6645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6646 $as_echo "${lt_sysroot:-no}" >&6; }
6647
6648
6649
6650
6651
6652 # Check whether --enable-libtool-lock was given.
6653 if test "${enable_libtool_lock+set}" = set; then :
6654   enableval=$enable_libtool_lock;
6655 fi
6656
6657 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6658
6659 # Some flags need to be propagated to the compiler or linker for good
6660 # libtool support.
6661 case $host in
6662 ia64-*-hpux*)
6663   # Find out which ABI we are using.
6664   echo 'int i;' > conftest.$ac_ext
6665   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6666   (eval $ac_compile) 2>&5
6667   ac_status=$?
6668   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6669   test $ac_status = 0; }; then
6670     case `/usr/bin/file conftest.$ac_objext` in
6671       *ELF-32*)
6672         HPUX_IA64_MODE="32"
6673         ;;
6674       *ELF-64*)
6675         HPUX_IA64_MODE="64"
6676         ;;
6677     esac
6678   fi
6679   rm -rf conftest*
6680   ;;
6681 *-*-irix6*)
6682   # Find out which ABI we are using.
6683   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6684   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6685   (eval $ac_compile) 2>&5
6686   ac_status=$?
6687   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6688   test $ac_status = 0; }; then
6689     if test "$lt_cv_prog_gnu_ld" = yes; then
6690       case `/usr/bin/file conftest.$ac_objext` in
6691         *32-bit*)
6692           LD="${LD-ld} -melf32bsmip"
6693           ;;
6694         *N32*)
6695           LD="${LD-ld} -melf32bmipn32"
6696           ;;
6697         *64-bit*)
6698           LD="${LD-ld} -melf64bmip"
6699         ;;
6700       esac
6701     else
6702       case `/usr/bin/file conftest.$ac_objext` in
6703         *32-bit*)
6704           LD="${LD-ld} -32"
6705           ;;
6706         *N32*)
6707           LD="${LD-ld} -n32"
6708           ;;
6709         *64-bit*)
6710           LD="${LD-ld} -64"
6711           ;;
6712       esac
6713     fi
6714   fi
6715   rm -rf conftest*
6716   ;;
6717
6718 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6719 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6720   # Find out which ABI we are using.
6721   echo 'int i;' > conftest.$ac_ext
6722   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6723   (eval $ac_compile) 2>&5
6724   ac_status=$?
6725   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6726   test $ac_status = 0; }; then
6727     case `/usr/bin/file conftest.o` in
6728       *32-bit*)
6729         case $host in
6730           x86_64-*kfreebsd*-gnu)
6731             LD="${LD-ld} -m elf_i386_fbsd"
6732             ;;
6733           x86_64-*linux*)
6734             LD="${LD-ld} -m elf_i386"
6735             ;;
6736           ppc64-*linux*|powerpc64-*linux*)
6737             LD="${LD-ld} -m elf32ppclinux"
6738             ;;
6739           s390x-*linux*)
6740             LD="${LD-ld} -m elf_s390"
6741             ;;
6742           sparc64-*linux*)
6743             LD="${LD-ld} -m elf32_sparc"
6744             ;;
6745         esac
6746         ;;
6747       *64-bit*)
6748         case $host in
6749           x86_64-*kfreebsd*-gnu)
6750             LD="${LD-ld} -m elf_x86_64_fbsd"
6751             ;;
6752           x86_64-*linux*)
6753             LD="${LD-ld} -m elf_x86_64"
6754             ;;
6755           ppc*-*linux*|powerpc*-*linux*)
6756             LD="${LD-ld} -m elf64ppc"
6757             ;;
6758           s390*-*linux*|s390*-*tpf*)
6759             LD="${LD-ld} -m elf64_s390"
6760             ;;
6761           sparc*-*linux*)
6762             LD="${LD-ld} -m elf64_sparc"
6763             ;;
6764         esac
6765         ;;
6766     esac
6767   fi
6768   rm -rf conftest*
6769   ;;
6770
6771 *-*-sco3.2v5*)
6772   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6773   SAVE_CFLAGS="$CFLAGS"
6774   CFLAGS="$CFLAGS -belf"
6775   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6776 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6777 if ${lt_cv_cc_needs_belf+:} false; then :
6778   $as_echo_n "(cached) " >&6
6779 else
6780   ac_ext=c
6781 ac_cpp='$CPP $CPPFLAGS'
6782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6785
6786      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6787 /* end confdefs.h.  */
6788
6789 int
6790 main ()
6791 {
6792
6793   ;
6794   return 0;
6795 }
6796 _ACEOF
6797 if ac_fn_c_try_link "$LINENO"; then :
6798   lt_cv_cc_needs_belf=yes
6799 else
6800   lt_cv_cc_needs_belf=no
6801 fi
6802 rm -f core conftest.err conftest.$ac_objext \
6803     conftest$ac_exeext conftest.$ac_ext
6804      ac_ext=c
6805 ac_cpp='$CPP $CPPFLAGS'
6806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6809
6810 fi
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6812 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6813   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6814     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6815     CFLAGS="$SAVE_CFLAGS"
6816   fi
6817   ;;
6818 *-*solaris*)
6819   # Find out which ABI we are using.
6820   echo 'int i;' > conftest.$ac_ext
6821   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6822   (eval $ac_compile) 2>&5
6823   ac_status=$?
6824   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6825   test $ac_status = 0; }; then
6826     case `/usr/bin/file conftest.o` in
6827     *64-bit*)
6828       case $lt_cv_prog_gnu_ld in
6829       yes*)
6830         case $host in
6831         i?86-*-solaris*)
6832           LD="${LD-ld} -m elf_x86_64"
6833           ;;
6834         sparc*-*-solaris*)
6835           LD="${LD-ld} -m elf64_sparc"
6836           ;;
6837         esac
6838         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6839         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6840           LD="${LD-ld}_sol2"
6841         fi
6842         ;;
6843       *)
6844         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6845           LD="${LD-ld} -64"
6846         fi
6847         ;;
6848       esac
6849       ;;
6850     esac
6851   fi
6852   rm -rf conftest*
6853   ;;
6854 esac
6855
6856 need_locks="$enable_libtool_lock"
6857
6858 if test -n "$ac_tool_prefix"; then
6859   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6860 set dummy ${ac_tool_prefix}mt; 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_MANIFEST_TOOL+:} false; then :
6864   $as_echo_n "(cached) " >&6
6865 else
6866   if test -n "$MANIFEST_TOOL"; then
6867   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # 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_MANIFEST_TOOL="${ac_tool_prefix}mt"
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 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6887 if test -n "$MANIFEST_TOOL"; then
6888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6889 $as_echo "$MANIFEST_TOOL" >&6; }
6890 else
6891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6892 $as_echo "no" >&6; }
6893 fi
6894
6895
6896 fi
6897 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6898   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6899   # Extract the first word of "mt", so it can be a program name with args.
6900 set dummy mt; ac_word=$2
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6902 $as_echo_n "checking for $ac_word... " >&6; }
6903 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6904   $as_echo_n "(cached) " >&6
6905 else
6906   if test -n "$ac_ct_MANIFEST_TOOL"; then
6907   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6908 else
6909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6910 for as_dir in $PATH
6911 do
6912   IFS=$as_save_IFS
6913   test -z "$as_dir" && as_dir=.
6914     for ac_exec_ext in '' $ac_executable_extensions; do
6915   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6916     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6917     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6918     break 2
6919   fi
6920 done
6921   done
6922 IFS=$as_save_IFS
6923
6924 fi
6925 fi
6926 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6927 if test -n "$ac_ct_MANIFEST_TOOL"; then
6928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6929 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6930 else
6931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6932 $as_echo "no" >&6; }
6933 fi
6934
6935   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6936     MANIFEST_TOOL=":"
6937   else
6938     case $cross_compiling:$ac_tool_warned in
6939 yes:)
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6941 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6942 ac_tool_warned=yes ;;
6943 esac
6944     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6945   fi
6946 else
6947   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6948 fi
6949
6950 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6952 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6953 if ${lt_cv_path_mainfest_tool+:} false; then :
6954   $as_echo_n "(cached) " >&6
6955 else
6956   lt_cv_path_mainfest_tool=no
6957   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6958   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6959   cat conftest.err >&5
6960   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6961     lt_cv_path_mainfest_tool=yes
6962   fi
6963   rm -f conftest*
6964 fi
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6966 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6967 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6968   MANIFEST_TOOL=:
6969 fi
6970
6971
6972
6973
6974
6975
6976   case $host_os in
6977     rhapsody* | darwin*)
6978     if test -n "$ac_tool_prefix"; then
6979   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6980 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6982 $as_echo_n "checking for $ac_word... " >&6; }
6983 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6984   $as_echo_n "(cached) " >&6
6985 else
6986   if test -n "$DSYMUTIL"; then
6987   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6988 else
6989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6990 for as_dir in $PATH
6991 do
6992   IFS=$as_save_IFS
6993   test -z "$as_dir" && as_dir=.
6994     for ac_exec_ext in '' $ac_executable_extensions; do
6995   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6996     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6997     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6998     break 2
6999   fi
7000 done
7001   done
7002 IFS=$as_save_IFS
7003
7004 fi
7005 fi
7006 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7007 if test -n "$DSYMUTIL"; then
7008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7009 $as_echo "$DSYMUTIL" >&6; }
7010 else
7011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7012 $as_echo "no" >&6; }
7013 fi
7014
7015
7016 fi
7017 if test -z "$ac_cv_prog_DSYMUTIL"; then
7018   ac_ct_DSYMUTIL=$DSYMUTIL
7019   # Extract the first word of "dsymutil", so it can be a program name with args.
7020 set dummy dsymutil; ac_word=$2
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7022 $as_echo_n "checking for $ac_word... " >&6; }
7023 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7024   $as_echo_n "(cached) " >&6
7025 else
7026   if test -n "$ac_ct_DSYMUTIL"; then
7027   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7028 else
7029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7030 for as_dir in $PATH
7031 do
7032   IFS=$as_save_IFS
7033   test -z "$as_dir" && as_dir=.
7034     for ac_exec_ext in '' $ac_executable_extensions; do
7035   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7036     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7037     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7038     break 2
7039   fi
7040 done
7041   done
7042 IFS=$as_save_IFS
7043
7044 fi
7045 fi
7046 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7047 if test -n "$ac_ct_DSYMUTIL"; then
7048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7049 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7050 else
7051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7052 $as_echo "no" >&6; }
7053 fi
7054
7055   if test "x$ac_ct_DSYMUTIL" = x; then
7056     DSYMUTIL=":"
7057   else
7058     case $cross_compiling:$ac_tool_warned in
7059 yes:)
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7061 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7062 ac_tool_warned=yes ;;
7063 esac
7064     DSYMUTIL=$ac_ct_DSYMUTIL
7065   fi
7066 else
7067   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7068 fi
7069
7070     if test -n "$ac_tool_prefix"; then
7071   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7072 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7074 $as_echo_n "checking for $ac_word... " >&6; }
7075 if ${ac_cv_prog_NMEDIT+:} false; then :
7076   $as_echo_n "(cached) " >&6
7077 else
7078   if test -n "$NMEDIT"; then
7079   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7080 else
7081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7082 for as_dir in $PATH
7083 do
7084   IFS=$as_save_IFS
7085   test -z "$as_dir" && as_dir=.
7086     for ac_exec_ext in '' $ac_executable_extensions; do
7087   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7088     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7089     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7090     break 2
7091   fi
7092 done
7093   done
7094 IFS=$as_save_IFS
7095
7096 fi
7097 fi
7098 NMEDIT=$ac_cv_prog_NMEDIT
7099 if test -n "$NMEDIT"; then
7100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7101 $as_echo "$NMEDIT" >&6; }
7102 else
7103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7104 $as_echo "no" >&6; }
7105 fi
7106
7107
7108 fi
7109 if test -z "$ac_cv_prog_NMEDIT"; then
7110   ac_ct_NMEDIT=$NMEDIT
7111   # Extract the first word of "nmedit", so it can be a program name with args.
7112 set dummy nmedit; ac_word=$2
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7114 $as_echo_n "checking for $ac_word... " >&6; }
7115 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7116   $as_echo_n "(cached) " >&6
7117 else
7118   if test -n "$ac_ct_NMEDIT"; then
7119   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7120 else
7121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7122 for as_dir in $PATH
7123 do
7124   IFS=$as_save_IFS
7125   test -z "$as_dir" && as_dir=.
7126     for ac_exec_ext in '' $ac_executable_extensions; do
7127   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7128     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7129     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7130     break 2
7131   fi
7132 done
7133   done
7134 IFS=$as_save_IFS
7135
7136 fi
7137 fi
7138 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7139 if test -n "$ac_ct_NMEDIT"; then
7140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7141 $as_echo "$ac_ct_NMEDIT" >&6; }
7142 else
7143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7144 $as_echo "no" >&6; }
7145 fi
7146
7147   if test "x$ac_ct_NMEDIT" = x; then
7148     NMEDIT=":"
7149   else
7150     case $cross_compiling:$ac_tool_warned in
7151 yes:)
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7153 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7154 ac_tool_warned=yes ;;
7155 esac
7156     NMEDIT=$ac_ct_NMEDIT
7157   fi
7158 else
7159   NMEDIT="$ac_cv_prog_NMEDIT"
7160 fi
7161
7162     if test -n "$ac_tool_prefix"; then
7163   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7164 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7166 $as_echo_n "checking for $ac_word... " >&6; }
7167 if ${ac_cv_prog_LIPO+:} false; then :
7168   $as_echo_n "(cached) " >&6
7169 else
7170   if test -n "$LIPO"; then
7171   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7172 else
7173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7174 for as_dir in $PATH
7175 do
7176   IFS=$as_save_IFS
7177   test -z "$as_dir" && as_dir=.
7178     for ac_exec_ext in '' $ac_executable_extensions; do
7179   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7180     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7181     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7182     break 2
7183   fi
7184 done
7185   done
7186 IFS=$as_save_IFS
7187
7188 fi
7189 fi
7190 LIPO=$ac_cv_prog_LIPO
7191 if test -n "$LIPO"; then
7192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7193 $as_echo "$LIPO" >&6; }
7194 else
7195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7196 $as_echo "no" >&6; }
7197 fi
7198
7199
7200 fi
7201 if test -z "$ac_cv_prog_LIPO"; then
7202   ac_ct_LIPO=$LIPO
7203   # Extract the first word of "lipo", so it can be a program name with args.
7204 set dummy lipo; ac_word=$2
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7206 $as_echo_n "checking for $ac_word... " >&6; }
7207 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7208   $as_echo_n "(cached) " >&6
7209 else
7210   if test -n "$ac_ct_LIPO"; then
7211   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7212 else
7213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7214 for as_dir in $PATH
7215 do
7216   IFS=$as_save_IFS
7217   test -z "$as_dir" && as_dir=.
7218     for ac_exec_ext in '' $ac_executable_extensions; do
7219   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7220     ac_cv_prog_ac_ct_LIPO="lipo"
7221     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7222     break 2
7223   fi
7224 done
7225   done
7226 IFS=$as_save_IFS
7227
7228 fi
7229 fi
7230 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7231 if test -n "$ac_ct_LIPO"; then
7232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7233 $as_echo "$ac_ct_LIPO" >&6; }
7234 else
7235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7236 $as_echo "no" >&6; }
7237 fi
7238
7239   if test "x$ac_ct_LIPO" = x; then
7240     LIPO=":"
7241   else
7242     case $cross_compiling:$ac_tool_warned in
7243 yes:)
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7245 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7246 ac_tool_warned=yes ;;
7247 esac
7248     LIPO=$ac_ct_LIPO
7249   fi
7250 else
7251   LIPO="$ac_cv_prog_LIPO"
7252 fi
7253
7254     if test -n "$ac_tool_prefix"; then
7255   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7256 set dummy ${ac_tool_prefix}otool; ac_word=$2
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7258 $as_echo_n "checking for $ac_word... " >&6; }
7259 if ${ac_cv_prog_OTOOL+:} false; then :
7260   $as_echo_n "(cached) " >&6
7261 else
7262   if test -n "$OTOOL"; then
7263   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7264 else
7265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7266 for as_dir in $PATH
7267 do
7268   IFS=$as_save_IFS
7269   test -z "$as_dir" && as_dir=.
7270     for ac_exec_ext in '' $ac_executable_extensions; do
7271   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7272     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7273     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7274     break 2
7275   fi
7276 done
7277   done
7278 IFS=$as_save_IFS
7279
7280 fi
7281 fi
7282 OTOOL=$ac_cv_prog_OTOOL
7283 if test -n "$OTOOL"; then
7284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7285 $as_echo "$OTOOL" >&6; }
7286 else
7287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7288 $as_echo "no" >&6; }
7289 fi
7290
7291
7292 fi
7293 if test -z "$ac_cv_prog_OTOOL"; then
7294   ac_ct_OTOOL=$OTOOL
7295   # Extract the first word of "otool", so it can be a program name with args.
7296 set dummy otool; ac_word=$2
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7298 $as_echo_n "checking for $ac_word... " >&6; }
7299 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7300   $as_echo_n "(cached) " >&6
7301 else
7302   if test -n "$ac_ct_OTOOL"; then
7303   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7304 else
7305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7306 for as_dir in $PATH
7307 do
7308   IFS=$as_save_IFS
7309   test -z "$as_dir" && as_dir=.
7310     for ac_exec_ext in '' $ac_executable_extensions; do
7311   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7312     ac_cv_prog_ac_ct_OTOOL="otool"
7313     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7314     break 2
7315   fi
7316 done
7317   done
7318 IFS=$as_save_IFS
7319
7320 fi
7321 fi
7322 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7323 if test -n "$ac_ct_OTOOL"; then
7324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7325 $as_echo "$ac_ct_OTOOL" >&6; }
7326 else
7327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7328 $as_echo "no" >&6; }
7329 fi
7330
7331   if test "x$ac_ct_OTOOL" = x; then
7332     OTOOL=":"
7333   else
7334     case $cross_compiling:$ac_tool_warned in
7335 yes:)
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7337 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7338 ac_tool_warned=yes ;;
7339 esac
7340     OTOOL=$ac_ct_OTOOL
7341   fi
7342 else
7343   OTOOL="$ac_cv_prog_OTOOL"
7344 fi
7345
7346     if test -n "$ac_tool_prefix"; then
7347   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7348 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7350 $as_echo_n "checking for $ac_word... " >&6; }
7351 if ${ac_cv_prog_OTOOL64+:} false; then :
7352   $as_echo_n "(cached) " >&6
7353 else
7354   if test -n "$OTOOL64"; then
7355   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7356 else
7357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7358 for as_dir in $PATH
7359 do
7360   IFS=$as_save_IFS
7361   test -z "$as_dir" && as_dir=.
7362     for ac_exec_ext in '' $ac_executable_extensions; do
7363   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7364     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7365     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7366     break 2
7367   fi
7368 done
7369   done
7370 IFS=$as_save_IFS
7371
7372 fi
7373 fi
7374 OTOOL64=$ac_cv_prog_OTOOL64
7375 if test -n "$OTOOL64"; then
7376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7377 $as_echo "$OTOOL64" >&6; }
7378 else
7379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7380 $as_echo "no" >&6; }
7381 fi
7382
7383
7384 fi
7385 if test -z "$ac_cv_prog_OTOOL64"; then
7386   ac_ct_OTOOL64=$OTOOL64
7387   # Extract the first word of "otool64", so it can be a program name with args.
7388 set dummy otool64; ac_word=$2
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7390 $as_echo_n "checking for $ac_word... " >&6; }
7391 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7392   $as_echo_n "(cached) " >&6
7393 else
7394   if test -n "$ac_ct_OTOOL64"; then
7395   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7396 else
7397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7398 for as_dir in $PATH
7399 do
7400   IFS=$as_save_IFS
7401   test -z "$as_dir" && as_dir=.
7402     for ac_exec_ext in '' $ac_executable_extensions; do
7403   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7404     ac_cv_prog_ac_ct_OTOOL64="otool64"
7405     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7406     break 2
7407   fi
7408 done
7409   done
7410 IFS=$as_save_IFS
7411
7412 fi
7413 fi
7414 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7415 if test -n "$ac_ct_OTOOL64"; then
7416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7417 $as_echo "$ac_ct_OTOOL64" >&6; }
7418 else
7419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7420 $as_echo "no" >&6; }
7421 fi
7422
7423   if test "x$ac_ct_OTOOL64" = x; then
7424     OTOOL64=":"
7425   else
7426     case $cross_compiling:$ac_tool_warned in
7427 yes:)
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7429 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7430 ac_tool_warned=yes ;;
7431 esac
7432     OTOOL64=$ac_ct_OTOOL64
7433   fi
7434 else
7435   OTOOL64="$ac_cv_prog_OTOOL64"
7436 fi
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7465 $as_echo_n "checking for -single_module linker flag... " >&6; }
7466 if ${lt_cv_apple_cc_single_mod+:} false; then :
7467   $as_echo_n "(cached) " >&6
7468 else
7469   lt_cv_apple_cc_single_mod=no
7470       if test -z "${LT_MULTI_MODULE}"; then
7471         # By default we will add the -single_module flag. You can override
7472         # by either setting the environment variable LT_MULTI_MODULE
7473         # non-empty at configure time, or by adding -multi_module to the
7474         # link flags.
7475         rm -rf libconftest.dylib*
7476         echo "int foo(void){return 1;}" > conftest.c
7477         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7478 -dynamiclib -Wl,-single_module conftest.c" >&5
7479         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7480           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7481         _lt_result=$?
7482         # If there is a non-empty error log, and "single_module"
7483         # appears in it, assume the flag caused a linker warning
7484         if test -s conftest.err && $GREP single_module conftest.err; then
7485           cat conftest.err >&5
7486         # Otherwise, if the output was created with a 0 exit code from
7487         # the compiler, it worked.
7488         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7489           lt_cv_apple_cc_single_mod=yes
7490         else
7491           cat conftest.err >&5
7492         fi
7493         rm -rf libconftest.dylib*
7494         rm -f conftest.*
7495       fi
7496 fi
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7498 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7499
7500     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7501 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7502 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7503   $as_echo_n "(cached) " >&6
7504 else
7505   lt_cv_ld_exported_symbols_list=no
7506       save_LDFLAGS=$LDFLAGS
7507       echo "_main" > conftest.sym
7508       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7509       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7510 /* end confdefs.h.  */
7511
7512 int
7513 main ()
7514 {
7515
7516   ;
7517   return 0;
7518 }
7519 _ACEOF
7520 if ac_fn_c_try_link "$LINENO"; then :
7521   lt_cv_ld_exported_symbols_list=yes
7522 else
7523   lt_cv_ld_exported_symbols_list=no
7524 fi
7525 rm -f core conftest.err conftest.$ac_objext \
7526     conftest$ac_exeext conftest.$ac_ext
7527         LDFLAGS="$save_LDFLAGS"
7528
7529 fi
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7531 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7532
7533     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7534 $as_echo_n "checking for -force_load linker flag... " >&6; }
7535 if ${lt_cv_ld_force_load+:} false; then :
7536   $as_echo_n "(cached) " >&6
7537 else
7538   lt_cv_ld_force_load=no
7539       cat > conftest.c << _LT_EOF
7540 int forced_loaded() { return 2;}
7541 _LT_EOF
7542       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7543       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7544       echo "$AR cru libconftest.a conftest.o" >&5
7545       $AR cru libconftest.a conftest.o 2>&5
7546       echo "$RANLIB libconftest.a" >&5
7547       $RANLIB libconftest.a 2>&5
7548       cat > conftest.c << _LT_EOF
7549 int main() { return 0;}
7550 _LT_EOF
7551       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7552       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7553       _lt_result=$?
7554       if test -s conftest.err && $GREP force_load conftest.err; then
7555         cat conftest.err >&5
7556       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7557         lt_cv_ld_force_load=yes
7558       else
7559         cat conftest.err >&5
7560       fi
7561         rm -f conftest.err libconftest.a conftest conftest.c
7562         rm -rf conftest.dSYM
7563
7564 fi
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7566 $as_echo "$lt_cv_ld_force_load" >&6; }
7567     case $host_os in
7568     rhapsody* | darwin1.[012])
7569       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7570     darwin1.*)
7571       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7572     darwin*) # darwin 5.x on
7573       # if running on 10.5 or later, the deployment target defaults
7574       # to the OS version, if on x86, and 10.4, the deployment
7575       # target defaults to 10.4. Don't you love it?
7576       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7577         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7578           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7579         10.[012]*)
7580           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7581         10.*)
7582           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7583       esac
7584     ;;
7585   esac
7586     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7587       _lt_dar_single_mod='$single_module'
7588     fi
7589     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7590       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7591     else
7592       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7593     fi
7594     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7595       _lt_dsymutil='~$DSYMUTIL $lib || :'
7596     else
7597       _lt_dsymutil=
7598     fi
7599     ;;
7600   esac
7601
7602 for ac_header in dlfcn.h
7603 do :
7604   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7605 "
7606 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7607   cat >>confdefs.h <<_ACEOF
7608 #define HAVE_DLFCN_H 1
7609 _ACEOF
7610
7611 fi
7612
7613 done
7614
7615
7616
7617
7618
7619 # Set options
7620
7621
7622
7623         enable_dlopen=no
7624
7625
7626   enable_win32_dll=no
7627
7628
7629             # Check whether --enable-shared was given.
7630 if test "${enable_shared+set}" = set; then :
7631   enableval=$enable_shared; p=${PACKAGE-default}
7632     case $enableval in
7633     yes) enable_shared=yes ;;
7634     no) enable_shared=no ;;
7635     *)
7636       enable_shared=no
7637       # Look at the argument we got.  We use all the common list separators.
7638       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7639       for pkg in $enableval; do
7640         IFS="$lt_save_ifs"
7641         if test "X$pkg" = "X$p"; then
7642           enable_shared=yes
7643         fi
7644       done
7645       IFS="$lt_save_ifs"
7646       ;;
7647     esac
7648 else
7649   enable_shared=yes
7650 fi
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660   # Check whether --enable-static was given.
7661 if test "${enable_static+set}" = set; then :
7662   enableval=$enable_static; p=${PACKAGE-default}
7663     case $enableval in
7664     yes) enable_static=yes ;;
7665     no) enable_static=no ;;
7666     *)
7667      enable_static=no
7668       # Look at the argument we got.  We use all the common list separators.
7669       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7670       for pkg in $enableval; do
7671         IFS="$lt_save_ifs"
7672         if test "X$pkg" = "X$p"; then
7673           enable_static=yes
7674         fi
7675       done
7676       IFS="$lt_save_ifs"
7677       ;;
7678     esac
7679 else
7680   enable_static=yes
7681 fi
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692 # Check whether --with-pic was given.
7693 if test "${with_pic+set}" = set; then :
7694   withval=$with_pic; lt_p=${PACKAGE-default}
7695     case $withval in
7696     yes|no) pic_mode=$withval ;;
7697     *)
7698       pic_mode=default
7699       # Look at the argument we got.  We use all the common list separators.
7700       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7701       for lt_pkg in $withval; do
7702         IFS="$lt_save_ifs"
7703         if test "X$lt_pkg" = "X$lt_p"; then
7704           pic_mode=yes
7705         fi
7706       done
7707       IFS="$lt_save_ifs"
7708       ;;
7709     esac
7710 else
7711   pic_mode=default
7712 fi
7713
7714
7715 test -z "$pic_mode" && pic_mode=default
7716
7717
7718
7719
7720
7721
7722
7723   # Check whether --enable-fast-install was given.
7724 if test "${enable_fast_install+set}" = set; then :
7725   enableval=$enable_fast_install; p=${PACKAGE-default}
7726     case $enableval in
7727     yes) enable_fast_install=yes ;;
7728     no) enable_fast_install=no ;;
7729     *)
7730       enable_fast_install=no
7731       # Look at the argument we got.  We use all the common list separators.
7732       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7733       for pkg in $enableval; do
7734         IFS="$lt_save_ifs"
7735         if test "X$pkg" = "X$p"; then
7736           enable_fast_install=yes
7737         fi
7738       done
7739       IFS="$lt_save_ifs"
7740       ;;
7741     esac
7742 else
7743   enable_fast_install=yes
7744 fi
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756 # This can be used to rebuild libtool when needed
7757 LIBTOOL_DEPS="$ltmain"
7758
7759 # Always use our own libtool.
7760 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791 test -z "$LN_S" && LN_S="ln -s"
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806 if test -n "${ZSH_VERSION+set}" ; then
7807    setopt NO_GLOB_SUBST
7808 fi
7809
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7811 $as_echo_n "checking for objdir... " >&6; }
7812 if ${lt_cv_objdir+:} false; then :
7813   $as_echo_n "(cached) " >&6
7814 else
7815   rm -f .libs 2>/dev/null
7816 mkdir .libs 2>/dev/null
7817 if test -d .libs; then
7818   lt_cv_objdir=.libs
7819 else
7820   # MS-DOS does not allow filenames that begin with a dot.
7821   lt_cv_objdir=_libs
7822 fi
7823 rmdir .libs 2>/dev/null
7824 fi
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7826 $as_echo "$lt_cv_objdir" >&6; }
7827 objdir=$lt_cv_objdir
7828
7829
7830
7831
7832
7833 cat >>confdefs.h <<_ACEOF
7834 #define LT_OBJDIR "$lt_cv_objdir/"
7835 _ACEOF
7836
7837
7838
7839
7840 case $host_os in
7841 aix3*)
7842   # AIX sometimes has problems with the GCC collect2 program.  For some
7843   # reason, if we set the COLLECT_NAMES environment variable, the problems
7844   # vanish in a puff of smoke.
7845   if test "X${COLLECT_NAMES+set}" != Xset; then
7846     COLLECT_NAMES=
7847     export COLLECT_NAMES
7848   fi
7849   ;;
7850 esac
7851
7852 # Global variables:
7853 ofile=libtool
7854 can_build_shared=yes
7855
7856 # All known linkers require a `.a' archive for static linking (except MSVC,
7857 # which needs '.lib').
7858 libext=a
7859
7860 with_gnu_ld="$lt_cv_prog_gnu_ld"
7861
7862 old_CC="$CC"
7863 old_CFLAGS="$CFLAGS"
7864
7865 # Set sane defaults for various variables
7866 test -z "$CC" && CC=cc
7867 test -z "$LTCC" && LTCC=$CC
7868 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7869 test -z "$LD" && LD=ld
7870 test -z "$ac_objext" && ac_objext=o
7871
7872 for cc_temp in $compiler""; do
7873   case $cc_temp in
7874     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7875     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7876     \-*) ;;
7877     *) break;;
7878   esac
7879 done
7880 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7881
7882
7883 # Only perform the check for file, if the check method requires it
7884 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7885 case $deplibs_check_method in
7886 file_magic*)
7887   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7888     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7889 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7890 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7891   $as_echo_n "(cached) " >&6
7892 else
7893   case $MAGIC_CMD in
7894 [\\/*] |  ?:[\\/]*)
7895   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7896   ;;
7897 *)
7898   lt_save_MAGIC_CMD="$MAGIC_CMD"
7899   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7900   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7901   for ac_dir in $ac_dummy; do
7902     IFS="$lt_save_ifs"
7903     test -z "$ac_dir" && ac_dir=.
7904     if test -f $ac_dir/${ac_tool_prefix}file; then
7905       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7906       if test -n "$file_magic_test_file"; then
7907         case $deplibs_check_method in
7908         "file_magic "*)
7909           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7910           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7911           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7912             $EGREP "$file_magic_regex" > /dev/null; then
7913             :
7914           else
7915             cat <<_LT_EOF 1>&2
7916
7917 *** Warning: the command libtool uses to detect shared libraries,
7918 *** $file_magic_cmd, produces output that libtool cannot recognize.
7919 *** The result is that libtool may fail to recognize shared libraries
7920 *** as such.  This will affect the creation of libtool libraries that
7921 *** depend on shared libraries, but programs linked with such libtool
7922 *** libraries will work regardless of this problem.  Nevertheless, you
7923 *** may want to report the problem to your system manager and/or to
7924 *** bug-libtool@gnu.org
7925
7926 _LT_EOF
7927           fi ;;
7928         esac
7929       fi
7930       break
7931     fi
7932   done
7933   IFS="$lt_save_ifs"
7934   MAGIC_CMD="$lt_save_MAGIC_CMD"
7935   ;;
7936 esac
7937 fi
7938
7939 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7940 if test -n "$MAGIC_CMD"; then
7941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7942 $as_echo "$MAGIC_CMD" >&6; }
7943 else
7944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7945 $as_echo "no" >&6; }
7946 fi
7947
7948
7949
7950
7951
7952 if test -z "$lt_cv_path_MAGIC_CMD"; then
7953   if test -n "$ac_tool_prefix"; then
7954     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7955 $as_echo_n "checking for file... " >&6; }
7956 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7957   $as_echo_n "(cached) " >&6
7958 else
7959   case $MAGIC_CMD in
7960 [\\/*] |  ?:[\\/]*)
7961   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7962   ;;
7963 *)
7964   lt_save_MAGIC_CMD="$MAGIC_CMD"
7965   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7966   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7967   for ac_dir in $ac_dummy; do
7968     IFS="$lt_save_ifs"
7969     test -z "$ac_dir" && ac_dir=.
7970     if test -f $ac_dir/file; then
7971       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7972       if test -n "$file_magic_test_file"; then
7973         case $deplibs_check_method in
7974         "file_magic "*)
7975           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7976           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7977           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7978             $EGREP "$file_magic_regex" > /dev/null; then
7979             :
7980           else
7981             cat <<_LT_EOF 1>&2
7982
7983 *** Warning: the command libtool uses to detect shared libraries,
7984 *** $file_magic_cmd, produces output that libtool cannot recognize.
7985 *** The result is that libtool may fail to recognize shared libraries
7986 *** as such.  This will affect the creation of libtool libraries that
7987 *** depend on shared libraries, but programs linked with such libtool
7988 *** libraries will work regardless of this problem.  Nevertheless, you
7989 *** may want to report the problem to your system manager and/or to
7990 *** bug-libtool@gnu.org
7991
7992 _LT_EOF
7993           fi ;;
7994         esac
7995       fi
7996       break
7997     fi
7998   done
7999   IFS="$lt_save_ifs"
8000   MAGIC_CMD="$lt_save_MAGIC_CMD"
8001   ;;
8002 esac
8003 fi
8004
8005 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8006 if test -n "$MAGIC_CMD"; then
8007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8008 $as_echo "$MAGIC_CMD" >&6; }
8009 else
8010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8011 $as_echo "no" >&6; }
8012 fi
8013
8014
8015   else
8016     MAGIC_CMD=:
8017   fi
8018 fi
8019
8020   fi
8021   ;;
8022 esac
8023
8024 # Use C for the default configuration in the libtool script
8025
8026 lt_save_CC="$CC"
8027 ac_ext=c
8028 ac_cpp='$CPP $CPPFLAGS'
8029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8032
8033
8034 # Source file extension for C test sources.
8035 ac_ext=c
8036
8037 # Object file extension for compiled C test sources.
8038 objext=o
8039 objext=$objext
8040
8041 # Code to be used in simple compile tests
8042 lt_simple_compile_test_code="int some_variable = 0;"
8043
8044 # Code to be used in simple link tests
8045 lt_simple_link_test_code='int main(){return(0);}'
8046
8047
8048
8049
8050
8051
8052
8053 # If no C compiler was specified, use CC.
8054 LTCC=${LTCC-"$CC"}
8055
8056 # If no C compiler flags were specified, use CFLAGS.
8057 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8058
8059 # Allow CC to be a program name with arguments.
8060 compiler=$CC
8061
8062 # Save the default compiler, since it gets overwritten when the other
8063 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8064 compiler_DEFAULT=$CC
8065
8066 # save warnings/boilerplate of simple test code
8067 ac_outfile=conftest.$ac_objext
8068 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8069 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8070 _lt_compiler_boilerplate=`cat conftest.err`
8071 $RM conftest*
8072
8073 ac_outfile=conftest.$ac_objext
8074 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8075 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8076 _lt_linker_boilerplate=`cat conftest.err`
8077 $RM -r conftest*
8078
8079
8080 ## CAVEAT EMPTOR:
8081 ## There is no encapsulation within the following macros, do not change
8082 ## the running order or otherwise move them around unless you know exactly
8083 ## what you are doing...
8084 if test -n "$compiler"; then
8085
8086 lt_prog_compiler_no_builtin_flag=
8087
8088 if test "$GCC" = yes; then
8089   case $cc_basename in
8090   nvcc*)
8091     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8092   *)
8093     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8094   esac
8095
8096   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8097 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8098 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8099   $as_echo_n "(cached) " >&6
8100 else
8101   lt_cv_prog_compiler_rtti_exceptions=no
8102    ac_outfile=conftest.$ac_objext
8103    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8104    lt_compiler_flag="-fno-rtti -fno-exceptions"
8105    # Insert the option either (1) after the last *FLAGS variable, or
8106    # (2) before a word containing "conftest.", or (3) at the end.
8107    # Note that $ac_compile itself does not contain backslashes and begins
8108    # with a dollar sign (not a hyphen), so the echo should work correctly.
8109    # The option is referenced via a variable to avoid confusing sed.
8110    lt_compile=`echo "$ac_compile" | $SED \
8111    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8112    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8113    -e 's:$: $lt_compiler_flag:'`
8114    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8115    (eval "$lt_compile" 2>conftest.err)
8116    ac_status=$?
8117    cat conftest.err >&5
8118    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119    if (exit $ac_status) && test -s "$ac_outfile"; then
8120      # The compiler can only warn and ignore the option if not recognized
8121      # So say no if there are warnings other than the usual output.
8122      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8123      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8124      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8125        lt_cv_prog_compiler_rtti_exceptions=yes
8126      fi
8127    fi
8128    $RM conftest*
8129
8130 fi
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8132 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8133
8134 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8135     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8136 else
8137     :
8138 fi
8139
8140 fi
8141
8142
8143
8144
8145
8146
8147   lt_prog_compiler_wl=
8148 lt_prog_compiler_pic=
8149 lt_prog_compiler_static=
8150
8151
8152   if test "$GCC" = yes; then
8153     lt_prog_compiler_wl='-Wl,'
8154     lt_prog_compiler_static='-static'
8155
8156     case $host_os in
8157       aix*)
8158       # All AIX code is PIC.
8159       if test "$host_cpu" = ia64; then
8160         # AIX 5 now supports IA64 processor
8161         lt_prog_compiler_static='-Bstatic'
8162       fi
8163       ;;
8164
8165     amigaos*)
8166       case $host_cpu in
8167       powerpc)
8168             # see comment about AmigaOS4 .so support
8169             lt_prog_compiler_pic='-fPIC'
8170         ;;
8171       m68k)
8172             # FIXME: we need at least 68020 code to build shared libraries, but
8173             # adding the `-m68020' flag to GCC prevents building anything better,
8174             # like `-m68040'.
8175             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8176         ;;
8177       esac
8178       ;;
8179
8180     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8181       # PIC is the default for these OSes.
8182       ;;
8183
8184     mingw* | cygwin* | pw32* | os2* | cegcc*)
8185       # This hack is so that the source file can tell whether it is being
8186       # built for inclusion in a dll (and should export symbols for example).
8187       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8188       # (--disable-auto-import) libraries
8189       lt_prog_compiler_pic='-DDLL_EXPORT'
8190       ;;
8191
8192     darwin* | rhapsody*)
8193       # PIC is the default on this platform
8194       # Common symbols not allowed in MH_DYLIB files
8195       lt_prog_compiler_pic='-fno-common'
8196       ;;
8197
8198     haiku*)
8199       # PIC is the default for Haiku.
8200       # The "-static" flag exists, but is broken.
8201       lt_prog_compiler_static=
8202       ;;
8203
8204     hpux*)
8205       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8206       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8207       # sets the default TLS model and affects inlining.
8208       case $host_cpu in
8209       hppa*64*)
8210         # +Z the default
8211         ;;
8212       *)
8213         lt_prog_compiler_pic='-fPIC'
8214         ;;
8215       esac
8216       ;;
8217
8218     interix[3-9]*)
8219       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8220       # Instead, we relocate shared libraries at runtime.
8221       ;;
8222
8223     msdosdjgpp*)
8224       # Just because we use GCC doesn't mean we suddenly get shared libraries
8225       # on systems that don't support them.
8226       lt_prog_compiler_can_build_shared=no
8227       enable_shared=no
8228       ;;
8229
8230     *nto* | *qnx*)
8231       # QNX uses GNU C++, but need to define -shared option too, otherwise
8232       # it will coredump.
8233       lt_prog_compiler_pic='-fPIC -shared'
8234       ;;
8235
8236     sysv4*MP*)
8237       if test -d /usr/nec; then
8238         lt_prog_compiler_pic=-Kconform_pic
8239       fi
8240       ;;
8241
8242     *)
8243       lt_prog_compiler_pic='-fPIC'
8244       ;;
8245     esac
8246
8247     case $cc_basename in
8248     nvcc*) # Cuda Compiler Driver 2.2
8249       lt_prog_compiler_wl='-Xlinker '
8250       if test -n "$lt_prog_compiler_pic"; then
8251         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8252       fi
8253       ;;
8254     esac
8255   else
8256     # PORTME Check for flag to pass linker flags through the system compiler.
8257     case $host_os in
8258     aix*)
8259       lt_prog_compiler_wl='-Wl,'
8260       if test "$host_cpu" = ia64; then
8261         # AIX 5 now supports IA64 processor
8262         lt_prog_compiler_static='-Bstatic'
8263       else
8264         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8265       fi
8266       ;;
8267
8268     mingw* | cygwin* | pw32* | os2* | cegcc*)
8269       # This hack is so that the source file can tell whether it is being
8270       # built for inclusion in a dll (and should export symbols for example).
8271       lt_prog_compiler_pic='-DDLL_EXPORT'
8272       ;;
8273
8274     hpux9* | hpux10* | hpux11*)
8275       lt_prog_compiler_wl='-Wl,'
8276       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8277       # not for PA HP-UX.
8278       case $host_cpu in
8279       hppa*64*|ia64*)
8280         # +Z the default
8281         ;;
8282       *)
8283         lt_prog_compiler_pic='+Z'
8284         ;;
8285       esac
8286       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8287       lt_prog_compiler_static='${wl}-a ${wl}archive'
8288       ;;
8289
8290     irix5* | irix6* | nonstopux*)
8291       lt_prog_compiler_wl='-Wl,'
8292       # PIC (with -KPIC) is the default.
8293       lt_prog_compiler_static='-non_shared'
8294       ;;
8295
8296     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8297       case $cc_basename in
8298       # old Intel for x86_64 which still supported -KPIC.
8299       ecc*)
8300         lt_prog_compiler_wl='-Wl,'
8301         lt_prog_compiler_pic='-KPIC'
8302         lt_prog_compiler_static='-static'
8303         ;;
8304       # icc used to be incompatible with GCC.
8305       # ICC 10 doesn't accept -KPIC any more.
8306       icc* | ifort*)
8307         lt_prog_compiler_wl='-Wl,'
8308         lt_prog_compiler_pic='-fPIC'
8309         lt_prog_compiler_static='-static'
8310         ;;
8311       # Lahey Fortran 8.1.
8312       lf95*)
8313         lt_prog_compiler_wl='-Wl,'
8314         lt_prog_compiler_pic='--shared'
8315         lt_prog_compiler_static='--static'
8316         ;;
8317       nagfor*)
8318         # NAG Fortran compiler
8319         lt_prog_compiler_wl='-Wl,-Wl,,'
8320         lt_prog_compiler_pic='-PIC'
8321         lt_prog_compiler_static='-Bstatic'
8322         ;;
8323       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8324         # Portland Group compilers (*not* the Pentium gcc compiler,
8325         # which looks to be a dead project)
8326         lt_prog_compiler_wl='-Wl,'
8327         lt_prog_compiler_pic='-fpic'
8328         lt_prog_compiler_static='-Bstatic'
8329         ;;
8330       ccc*)
8331         lt_prog_compiler_wl='-Wl,'
8332         # All Alpha code is PIC.
8333         lt_prog_compiler_static='-non_shared'
8334         ;;
8335       xl* | bgxl* | bgf* | mpixl*)
8336         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8337         lt_prog_compiler_wl='-Wl,'
8338         lt_prog_compiler_pic='-qpic'
8339         lt_prog_compiler_static='-qstaticlink'
8340         ;;
8341       *)
8342         case `$CC -V 2>&1 | sed 5q` in
8343         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8344           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8345           lt_prog_compiler_pic='-KPIC'
8346           lt_prog_compiler_static='-Bstatic'
8347           lt_prog_compiler_wl=''
8348           ;;
8349         *Sun\ F* | *Sun*Fortran*)
8350           lt_prog_compiler_pic='-KPIC'
8351           lt_prog_compiler_static='-Bstatic'
8352           lt_prog_compiler_wl='-Qoption ld '
8353           ;;
8354         *Sun\ C*)
8355           # Sun C 5.9
8356           lt_prog_compiler_pic='-KPIC'
8357           lt_prog_compiler_static='-Bstatic'
8358           lt_prog_compiler_wl='-Wl,'
8359           ;;
8360         *Intel*\ [CF]*Compiler*)
8361           lt_prog_compiler_wl='-Wl,'
8362           lt_prog_compiler_pic='-fPIC'
8363           lt_prog_compiler_static='-static'
8364           ;;
8365         *Portland\ Group*)
8366           lt_prog_compiler_wl='-Wl,'
8367           lt_prog_compiler_pic='-fpic'
8368           lt_prog_compiler_static='-Bstatic'
8369           ;;
8370         esac
8371         ;;
8372       esac
8373       ;;
8374
8375     newsos6)
8376       lt_prog_compiler_pic='-KPIC'
8377       lt_prog_compiler_static='-Bstatic'
8378       ;;
8379
8380     *nto* | *qnx*)
8381       # QNX uses GNU C++, but need to define -shared option too, otherwise
8382       # it will coredump.
8383       lt_prog_compiler_pic='-fPIC -shared'
8384       ;;
8385
8386     osf3* | osf4* | osf5*)
8387       lt_prog_compiler_wl='-Wl,'
8388       # All OSF/1 code is PIC.
8389       lt_prog_compiler_static='-non_shared'
8390       ;;
8391
8392     rdos*)
8393       lt_prog_compiler_static='-non_shared'
8394       ;;
8395
8396     solaris*)
8397       lt_prog_compiler_pic='-KPIC'
8398       lt_prog_compiler_static='-Bstatic'
8399       case $cc_basename in
8400       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8401         lt_prog_compiler_wl='-Qoption ld ';;
8402       *)
8403         lt_prog_compiler_wl='-Wl,';;
8404       esac
8405       ;;
8406
8407     sunos4*)
8408       lt_prog_compiler_wl='-Qoption ld '
8409       lt_prog_compiler_pic='-PIC'
8410       lt_prog_compiler_static='-Bstatic'
8411       ;;
8412
8413     sysv4 | sysv4.2uw2* | sysv4.3*)
8414       lt_prog_compiler_wl='-Wl,'
8415       lt_prog_compiler_pic='-KPIC'
8416       lt_prog_compiler_static='-Bstatic'
8417       ;;
8418
8419     sysv4*MP*)
8420       if test -d /usr/nec ;then
8421         lt_prog_compiler_pic='-Kconform_pic'
8422         lt_prog_compiler_static='-Bstatic'
8423       fi
8424       ;;
8425
8426     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8427       lt_prog_compiler_wl='-Wl,'
8428       lt_prog_compiler_pic='-KPIC'
8429       lt_prog_compiler_static='-Bstatic'
8430       ;;
8431
8432     unicos*)
8433       lt_prog_compiler_wl='-Wl,'
8434       lt_prog_compiler_can_build_shared=no
8435       ;;
8436
8437     uts4*)
8438       lt_prog_compiler_pic='-pic'
8439       lt_prog_compiler_static='-Bstatic'
8440       ;;
8441
8442     *)
8443       lt_prog_compiler_can_build_shared=no
8444       ;;
8445     esac
8446   fi
8447
8448 case $host_os in
8449   # For platforms which do not support PIC, -DPIC is meaningless:
8450   *djgpp*)
8451     lt_prog_compiler_pic=
8452     ;;
8453   *)
8454     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8455     ;;
8456 esac
8457
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8459 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8460 if ${lt_cv_prog_compiler_pic+:} false; then :
8461   $as_echo_n "(cached) " >&6
8462 else
8463   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8464 fi
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8466 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8467 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8468
8469 #
8470 # Check to make sure the PIC flag actually works.
8471 #
8472 if test -n "$lt_prog_compiler_pic"; then
8473   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8474 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8475 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8476   $as_echo_n "(cached) " >&6
8477 else
8478   lt_cv_prog_compiler_pic_works=no
8479    ac_outfile=conftest.$ac_objext
8480    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8481    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8482    # Insert the option either (1) after the last *FLAGS variable, or
8483    # (2) before a word containing "conftest.", or (3) at the end.
8484    # Note that $ac_compile itself does not contain backslashes and begins
8485    # with a dollar sign (not a hyphen), so the echo should work correctly.
8486    # The option is referenced via a variable to avoid confusing sed.
8487    lt_compile=`echo "$ac_compile" | $SED \
8488    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8489    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8490    -e 's:$: $lt_compiler_flag:'`
8491    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8492    (eval "$lt_compile" 2>conftest.err)
8493    ac_status=$?
8494    cat conftest.err >&5
8495    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496    if (exit $ac_status) && test -s "$ac_outfile"; then
8497      # The compiler can only warn and ignore the option if not recognized
8498      # So say no if there are warnings other than the usual output.
8499      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8500      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8501      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8502        lt_cv_prog_compiler_pic_works=yes
8503      fi
8504    fi
8505    $RM conftest*
8506
8507 fi
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8509 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8510
8511 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8512     case $lt_prog_compiler_pic in
8513      "" | " "*) ;;
8514      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8515      esac
8516 else
8517     lt_prog_compiler_pic=
8518      lt_prog_compiler_can_build_shared=no
8519 fi
8520
8521 fi
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533 #
8534 # Check to make sure the static flag actually works.
8535 #
8536 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8538 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8539 if ${lt_cv_prog_compiler_static_works+:} false; then :
8540   $as_echo_n "(cached) " >&6
8541 else
8542   lt_cv_prog_compiler_static_works=no
8543    save_LDFLAGS="$LDFLAGS"
8544    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8545    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8546    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8547      # The linker can only warn and ignore the option if not recognized
8548      # So say no if there are warnings
8549      if test -s conftest.err; then
8550        # Append any errors to the config.log.
8551        cat conftest.err 1>&5
8552        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8553        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8554        if diff conftest.exp conftest.er2 >/dev/null; then
8555          lt_cv_prog_compiler_static_works=yes
8556        fi
8557      else
8558        lt_cv_prog_compiler_static_works=yes
8559      fi
8560    fi
8561    $RM -r conftest*
8562    LDFLAGS="$save_LDFLAGS"
8563
8564 fi
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8566 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8567
8568 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8569     :
8570 else
8571     lt_prog_compiler_static=
8572 fi
8573
8574
8575
8576
8577
8578
8579
8580   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8581 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8582 if ${lt_cv_prog_compiler_c_o+:} false; then :
8583   $as_echo_n "(cached) " >&6
8584 else
8585   lt_cv_prog_compiler_c_o=no
8586    $RM -r conftest 2>/dev/null
8587    mkdir conftest
8588    cd conftest
8589    mkdir out
8590    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8591
8592    lt_compiler_flag="-o out/conftest2.$ac_objext"
8593    # Insert the option either (1) after the last *FLAGS variable, or
8594    # (2) before a word containing "conftest.", or (3) at the end.
8595    # Note that $ac_compile itself does not contain backslashes and begins
8596    # with a dollar sign (not a hyphen), so the echo should work correctly.
8597    lt_compile=`echo "$ac_compile" | $SED \
8598    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8599    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8600    -e 's:$: $lt_compiler_flag:'`
8601    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8602    (eval "$lt_compile" 2>out/conftest.err)
8603    ac_status=$?
8604    cat out/conftest.err >&5
8605    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8607    then
8608      # The compiler can only warn and ignore the option if not recognized
8609      # So say no if there are warnings
8610      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8611      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8612      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8613        lt_cv_prog_compiler_c_o=yes
8614      fi
8615    fi
8616    chmod u+w . 2>&5
8617    $RM conftest*
8618    # SGI C++ compiler will create directory out/ii_files/ for
8619    # template instantiation
8620    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8621    $RM out/* && rmdir out
8622    cd ..
8623    $RM -r conftest
8624    $RM conftest*
8625
8626 fi
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8628 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8629
8630
8631
8632
8633
8634
8635   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8636 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8637 if ${lt_cv_prog_compiler_c_o+:} false; then :
8638   $as_echo_n "(cached) " >&6
8639 else
8640   lt_cv_prog_compiler_c_o=no
8641    $RM -r conftest 2>/dev/null
8642    mkdir conftest
8643    cd conftest
8644    mkdir out
8645    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8646
8647    lt_compiler_flag="-o out/conftest2.$ac_objext"
8648    # Insert the option either (1) after the last *FLAGS variable, or
8649    # (2) before a word containing "conftest.", or (3) at the end.
8650    # Note that $ac_compile itself does not contain backslashes and begins
8651    # with a dollar sign (not a hyphen), so the echo should work correctly.
8652    lt_compile=`echo "$ac_compile" | $SED \
8653    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8654    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8655    -e 's:$: $lt_compiler_flag:'`
8656    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8657    (eval "$lt_compile" 2>out/conftest.err)
8658    ac_status=$?
8659    cat out/conftest.err >&5
8660    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8662    then
8663      # The compiler can only warn and ignore the option if not recognized
8664      # So say no if there are warnings
8665      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8666      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8667      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8668        lt_cv_prog_compiler_c_o=yes
8669      fi
8670    fi
8671    chmod u+w . 2>&5
8672    $RM conftest*
8673    # SGI C++ compiler will create directory out/ii_files/ for
8674    # template instantiation
8675    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8676    $RM out/* && rmdir out
8677    cd ..
8678    $RM -r conftest
8679    $RM conftest*
8680
8681 fi
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8683 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8684
8685
8686
8687
8688 hard_links="nottested"
8689 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8690   # do not overwrite the value of need_locks provided by the user
8691   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8692 $as_echo_n "checking if we can lock with hard links... " >&6; }
8693   hard_links=yes
8694   $RM conftest*
8695   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8696   touch conftest.a
8697   ln conftest.a conftest.b 2>&5 || hard_links=no
8698   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8700 $as_echo "$hard_links" >&6; }
8701   if test "$hard_links" = no; then
8702     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8703 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8704     need_locks=warn
8705   fi
8706 else
8707   need_locks=no
8708 fi
8709
8710
8711
8712
8713
8714
8715   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8716 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8717
8718   runpath_var=
8719   allow_undefined_flag=
8720   always_export_symbols=no
8721   archive_cmds=
8722   archive_expsym_cmds=
8723   compiler_needs_object=no
8724   enable_shared_with_static_runtimes=no
8725   export_dynamic_flag_spec=
8726   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8727   hardcode_automatic=no
8728   hardcode_direct=no
8729   hardcode_direct_absolute=no
8730   hardcode_libdir_flag_spec=
8731   hardcode_libdir_separator=
8732   hardcode_minus_L=no
8733   hardcode_shlibpath_var=unsupported
8734   inherit_rpath=no
8735   link_all_deplibs=unknown
8736   module_cmds=
8737   module_expsym_cmds=
8738   old_archive_from_new_cmds=
8739   old_archive_from_expsyms_cmds=
8740   thread_safe_flag_spec=
8741   whole_archive_flag_spec=
8742   # include_expsyms should be a list of space-separated symbols to be *always*
8743   # included in the symbol list
8744   include_expsyms=
8745   # exclude_expsyms can be an extended regexp of symbols to exclude
8746   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8747   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8748   # as well as any symbol that contains `d'.
8749   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8750   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8751   # platforms (ab)use it in PIC code, but their linkers get confused if
8752   # the symbol is explicitly referenced.  Since portable code cannot
8753   # rely on this symbol name, it's probably fine to never include it in
8754   # preloaded symbol tables.
8755   # Exclude shared library initialization/finalization symbols.
8756   extract_expsyms_cmds=
8757
8758   case $host_os in
8759   cygwin* | mingw* | pw32* | cegcc*)
8760     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8761     # When not using gcc, we currently assume that we are using
8762     # Microsoft Visual C++.
8763     if test "$GCC" != yes; then
8764       with_gnu_ld=no
8765     fi
8766     ;;
8767   interix*)
8768     # we just hope/assume this is gcc and not c89 (= MSVC++)
8769     with_gnu_ld=yes
8770     ;;
8771   openbsd*)
8772     with_gnu_ld=no
8773     ;;
8774   esac
8775
8776   ld_shlibs=yes
8777
8778   # On some targets, GNU ld is compatible enough with the native linker
8779   # that we're better off using the native interface for both.
8780   lt_use_gnu_ld_interface=no
8781   if test "$with_gnu_ld" = yes; then
8782     case $host_os in
8783       aix*)
8784         # The AIX port of GNU ld has always aspired to compatibility
8785         # with the native linker.  However, as the warning in the GNU ld
8786         # block says, versions before 2.19.5* couldn't really create working
8787         # shared libraries, regardless of the interface used.
8788         case `$LD -v 2>&1` in
8789           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8790           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8791           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8792           *)
8793             lt_use_gnu_ld_interface=yes
8794             ;;
8795         esac
8796         ;;
8797       *)
8798         lt_use_gnu_ld_interface=yes
8799         ;;
8800     esac
8801   fi
8802
8803   if test "$lt_use_gnu_ld_interface" = yes; then
8804     # If archive_cmds runs LD, not CC, wlarc should be empty
8805     wlarc='${wl}'
8806
8807     # Set some defaults for GNU ld with shared library support. These
8808     # are reset later if shared libraries are not supported. Putting them
8809     # here allows them to be overridden if necessary.
8810     runpath_var=LD_RUN_PATH
8811     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8812     export_dynamic_flag_spec='${wl}--export-dynamic'
8813     # ancient GNU ld didn't support --whole-archive et. al.
8814     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8815       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8816     else
8817       whole_archive_flag_spec=
8818     fi
8819     supports_anon_versioning=no
8820     case `$LD -v 2>&1` in
8821       *GNU\ gold*) supports_anon_versioning=yes ;;
8822       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8823       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8824       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8825       *\ 2.11.*) ;; # other 2.11 versions
8826       *) supports_anon_versioning=yes ;;
8827     esac
8828
8829     # See if GNU ld supports shared libraries.
8830     case $host_os in
8831     aix[3-9]*)
8832       # On AIX/PPC, the GNU linker is very broken
8833       if test "$host_cpu" != ia64; then
8834         ld_shlibs=no
8835         cat <<_LT_EOF 1>&2
8836
8837 *** Warning: the GNU linker, at least up to release 2.19, is reported
8838 *** to be unable to reliably create shared libraries on AIX.
8839 *** Therefore, libtool is disabling shared libraries support.  If you
8840 *** really care for shared libraries, you may want to install binutils
8841 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8842 *** You will then need to restart the configuration process.
8843
8844 _LT_EOF
8845       fi
8846       ;;
8847
8848     amigaos*)
8849       case $host_cpu in
8850       powerpc)
8851             # see comment about AmigaOS4 .so support
8852             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8853             archive_expsym_cmds=''
8854         ;;
8855       m68k)
8856             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)'
8857             hardcode_libdir_flag_spec='-L$libdir'
8858             hardcode_minus_L=yes
8859         ;;
8860       esac
8861       ;;
8862
8863     beos*)
8864       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8865         allow_undefined_flag=unsupported
8866         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8867         # support --undefined.  This deserves some investigation.  FIXME
8868         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8869       else
8870         ld_shlibs=no
8871       fi
8872       ;;
8873
8874     cygwin* | mingw* | pw32* | cegcc*)
8875       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8876       # as there is no search path for DLLs.
8877       hardcode_libdir_flag_spec='-L$libdir'
8878       export_dynamic_flag_spec='${wl}--export-all-symbols'
8879       allow_undefined_flag=unsupported
8880       always_export_symbols=no
8881       enable_shared_with_static_runtimes=yes
8882       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'
8883       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8884
8885       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8886         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8887         # If the export-symbols file already is a .def file (1st line
8888         # is EXPORTS), use it as is; otherwise, prepend...
8889         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8890           cp $export_symbols $output_objdir/$soname.def;
8891         else
8892           echo EXPORTS > $output_objdir/$soname.def;
8893           cat $export_symbols >> $output_objdir/$soname.def;
8894         fi~
8895         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8896       else
8897         ld_shlibs=no
8898       fi
8899       ;;
8900
8901     haiku*)
8902       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8903       link_all_deplibs=yes
8904       ;;
8905
8906     interix[3-9]*)
8907       hardcode_direct=no
8908       hardcode_shlibpath_var=no
8909       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8910       export_dynamic_flag_spec='${wl}-E'
8911       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8912       # Instead, shared libraries are loaded at an image base (0x10000000 by
8913       # default) and relocated if they conflict, which is a slow very memory
8914       # consuming and fragmenting process.  To avoid this, we pick a random,
8915       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8916       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8917       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8918       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'
8919       ;;
8920
8921     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8922       tmp_diet=no
8923       if test "$host_os" = linux-dietlibc; then
8924         case $cc_basename in
8925           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8926         esac
8927       fi
8928       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8929          && test "$tmp_diet" = no
8930       then
8931         tmp_addflag=' $pic_flag'
8932         tmp_sharedflag='-shared'
8933         case $cc_basename,$host_cpu in
8934         pgcc*)                          # Portland Group C compiler
8935           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'
8936           tmp_addflag=' $pic_flag'
8937           ;;
8938         pgf77* | pgf90* | pgf95* | pgfortran*)
8939                                         # Portland Group f77 and f90 compilers
8940           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'
8941           tmp_addflag=' $pic_flag -Mnomain' ;;
8942         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8943           tmp_addflag=' -i_dynamic' ;;
8944         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8945           tmp_addflag=' -i_dynamic -nofor_main' ;;
8946         ifc* | ifort*)                  # Intel Fortran compiler
8947           tmp_addflag=' -nofor_main' ;;
8948         lf95*)                          # Lahey Fortran 8.1
8949           whole_archive_flag_spec=
8950           tmp_sharedflag='--shared' ;;
8951         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8952           tmp_sharedflag='-qmkshrobj'
8953           tmp_addflag= ;;
8954         nvcc*)  # Cuda Compiler Driver 2.2
8955           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'
8956           compiler_needs_object=yes
8957           ;;
8958         esac
8959         case `$CC -V 2>&1 | sed 5q` in
8960         *Sun\ C*)                       # Sun C 5.9
8961           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'
8962           compiler_needs_object=yes
8963           tmp_sharedflag='-G' ;;
8964         *Sun\ F*)                       # Sun Fortran 8.3
8965           tmp_sharedflag='-G' ;;
8966         esac
8967         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8968
8969         if test "x$supports_anon_versioning" = xyes; then
8970           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8971             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8972             echo "local: *; };" >> $output_objdir/$libname.ver~
8973             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8974         fi
8975
8976         case $cc_basename in
8977         xlf* | bgf* | bgxlf* | mpixlf*)
8978           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8979           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8980           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8981           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8982           if test "x$supports_anon_versioning" = xyes; then
8983             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8984               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8985               echo "local: *; };" >> $output_objdir/$libname.ver~
8986               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8987           fi
8988           ;;
8989         esac
8990       else
8991         ld_shlibs=no
8992       fi
8993       ;;
8994
8995     netbsd*)
8996       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8997         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8998         wlarc=
8999       else
9000         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9001         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9002       fi
9003       ;;
9004
9005     solaris*)
9006       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9007         ld_shlibs=no
9008         cat <<_LT_EOF 1>&2
9009
9010 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9011 *** create shared libraries on Solaris systems.  Therefore, libtool
9012 *** is disabling shared libraries support.  We urge you to upgrade GNU
9013 *** binutils to release 2.9.1 or newer.  Another option is to modify
9014 *** your PATH or compiler configuration so that the native linker is
9015 *** used, and then restart.
9016
9017 _LT_EOF
9018       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9019         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9020         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9021       else
9022         ld_shlibs=no
9023       fi
9024       ;;
9025
9026     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9027       case `$LD -v 2>&1` in
9028         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9029         ld_shlibs=no
9030         cat <<_LT_EOF 1>&2
9031
9032 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9033 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9034 *** is disabling shared libraries support.  We urge you to upgrade GNU
9035 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9036 *** your PATH or compiler configuration so that the native linker is
9037 *** used, and then restart.
9038
9039 _LT_EOF
9040         ;;
9041         *)
9042           # For security reasons, it is highly recommended that you always
9043           # use absolute paths for naming shared libraries, and exclude the
9044           # DT_RUNPATH tag from executables and libraries.  But doing so
9045           # requires that you compile everything twice, which is a pain.
9046           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9047             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9048             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9049             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9050           else
9051             ld_shlibs=no
9052           fi
9053         ;;
9054       esac
9055       ;;
9056
9057     sunos4*)
9058       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9059       wlarc=
9060       hardcode_direct=yes
9061       hardcode_shlibpath_var=no
9062       ;;
9063
9064     *)
9065       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9066         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9067         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9068       else
9069         ld_shlibs=no
9070       fi
9071       ;;
9072     esac
9073
9074     if test "$ld_shlibs" = no; then
9075       runpath_var=
9076       hardcode_libdir_flag_spec=
9077       export_dynamic_flag_spec=
9078       whole_archive_flag_spec=
9079     fi
9080   else
9081     # PORTME fill in a description of your system's linker (not GNU ld)
9082     case $host_os in
9083     aix3*)
9084       allow_undefined_flag=unsupported
9085       always_export_symbols=yes
9086       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'
9087       # Note: this linker hardcodes the directories in LIBPATH if there
9088       # are no directories specified by -L.
9089       hardcode_minus_L=yes
9090       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9091         # Neither direct hardcoding nor static linking is supported with a
9092         # broken collect2.
9093         hardcode_direct=unsupported
9094       fi
9095       ;;
9096
9097     aix[4-9]*)
9098       if test "$host_cpu" = ia64; then
9099         # On IA64, the linker does run time linking by default, so we don't
9100         # have to do anything special.
9101         aix_use_runtimelinking=no
9102         exp_sym_flag='-Bexport'
9103         no_entry_flag=""
9104       else
9105         # If we're using GNU nm, then we don't want the "-C" option.
9106         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9107         # Also, AIX nm treats weak defined symbols like other global
9108         # defined symbols, whereas GNU nm marks them as "W".
9109         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9110           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'
9111         else
9112           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'
9113         fi
9114         aix_use_runtimelinking=no
9115
9116         # Test if we are trying to use run time linking or normal
9117         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9118         # need to do runtime linking.
9119         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9120           for ld_flag in $LDFLAGS; do
9121           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9122             aix_use_runtimelinking=yes
9123             break
9124           fi
9125           done
9126           ;;
9127         esac
9128
9129         exp_sym_flag='-bexport'
9130         no_entry_flag='-bnoentry'
9131       fi
9132
9133       # When large executables or shared objects are built, AIX ld can
9134       # have problems creating the table of contents.  If linking a library
9135       # or program results in "error TOC overflow" add -mminimal-toc to
9136       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9137       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9138
9139       archive_cmds=''
9140       hardcode_direct=yes
9141       hardcode_direct_absolute=yes
9142       hardcode_libdir_separator=':'
9143       link_all_deplibs=yes
9144       file_list_spec='${wl}-f,'
9145
9146       if test "$GCC" = yes; then
9147         case $host_os in aix4.[012]|aix4.[012].*)
9148         # We only want to do this on AIX 4.2 and lower, the check
9149         # below for broken collect2 doesn't work under 4.3+
9150           collect2name=`${CC} -print-prog-name=collect2`
9151           if test -f "$collect2name" &&
9152            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9153           then
9154           # We have reworked collect2
9155           :
9156           else
9157           # We have old collect2
9158           hardcode_direct=unsupported
9159           # It fails to find uninstalled libraries when the uninstalled
9160           # path is not listed in the libpath.  Setting hardcode_minus_L
9161           # to unsupported forces relinking
9162           hardcode_minus_L=yes
9163           hardcode_libdir_flag_spec='-L$libdir'
9164           hardcode_libdir_separator=
9165           fi
9166           ;;
9167         esac
9168         shared_flag='-shared'
9169         if test "$aix_use_runtimelinking" = yes; then
9170           shared_flag="$shared_flag "'${wl}-G'
9171         fi
9172       else
9173         # not using gcc
9174         if test "$host_cpu" = ia64; then
9175         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9176         # chokes on -Wl,-G. The following line is correct:
9177           shared_flag='-G'
9178         else
9179           if test "$aix_use_runtimelinking" = yes; then
9180             shared_flag='${wl}-G'
9181           else
9182             shared_flag='${wl}-bM:SRE'
9183           fi
9184         fi
9185       fi
9186
9187       export_dynamic_flag_spec='${wl}-bexpall'
9188       # It seems that -bexpall does not export symbols beginning with
9189       # underscore (_), so it is better to generate a list of symbols to export.
9190       always_export_symbols=yes
9191       if test "$aix_use_runtimelinking" = yes; then
9192         # Warning - without using the other runtime loading flags (-brtl),
9193         # -berok will link without error, but may produce a broken library.
9194         allow_undefined_flag='-berok'
9195         # Determine the default libpath from the value encoded in an
9196         # empty executable.
9197         if test "${lt_cv_aix_libpath+set}" = set; then
9198   aix_libpath=$lt_cv_aix_libpath
9199 else
9200   if ${lt_cv_aix_libpath_+:} false; then :
9201   $as_echo_n "(cached) " >&6
9202 else
9203   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9204 /* end confdefs.h.  */
9205
9206 int
9207 main ()
9208 {
9209
9210   ;
9211   return 0;
9212 }
9213 _ACEOF
9214 if ac_fn_c_try_link "$LINENO"; then :
9215
9216   lt_aix_libpath_sed='
9217       /Import File Strings/,/^$/ {
9218           /^0/ {
9219               s/^0  *\([^ ]*\) *$/\1/
9220               p
9221           }
9222       }'
9223   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9224   # Check for a 64-bit object if we didn't find anything.
9225   if test -z "$lt_cv_aix_libpath_"; then
9226     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9227   fi
9228 fi
9229 rm -f core conftest.err conftest.$ac_objext \
9230     conftest$ac_exeext conftest.$ac_ext
9231   if test -z "$lt_cv_aix_libpath_"; then
9232     lt_cv_aix_libpath_="/usr/lib:/lib"
9233   fi
9234
9235 fi
9236
9237   aix_libpath=$lt_cv_aix_libpath_
9238 fi
9239
9240         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9241         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"
9242       else
9243         if test "$host_cpu" = ia64; then
9244           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9245           allow_undefined_flag="-z nodefs"
9246           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"
9247         else
9248          # Determine the default libpath from the value encoded in an
9249          # empty executable.
9250          if test "${lt_cv_aix_libpath+set}" = set; then
9251   aix_libpath=$lt_cv_aix_libpath
9252 else
9253   if ${lt_cv_aix_libpath_+:} false; then :
9254   $as_echo_n "(cached) " >&6
9255 else
9256   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9257 /* end confdefs.h.  */
9258
9259 int
9260 main ()
9261 {
9262
9263   ;
9264   return 0;
9265 }
9266 _ACEOF
9267 if ac_fn_c_try_link "$LINENO"; then :
9268
9269   lt_aix_libpath_sed='
9270       /Import File Strings/,/^$/ {
9271           /^0/ {
9272               s/^0  *\([^ ]*\) *$/\1/
9273               p
9274           }
9275       }'
9276   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9277   # Check for a 64-bit object if we didn't find anything.
9278   if test -z "$lt_cv_aix_libpath_"; then
9279     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9280   fi
9281 fi
9282 rm -f core conftest.err conftest.$ac_objext \
9283     conftest$ac_exeext conftest.$ac_ext
9284   if test -z "$lt_cv_aix_libpath_"; then
9285     lt_cv_aix_libpath_="/usr/lib:/lib"
9286   fi
9287
9288 fi
9289
9290   aix_libpath=$lt_cv_aix_libpath_
9291 fi
9292
9293          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9294           # Warning - without using the other run time loading flags,
9295           # -berok will link without error, but may produce a broken library.
9296           no_undefined_flag=' ${wl}-bernotok'
9297           allow_undefined_flag=' ${wl}-berok'
9298           if test "$with_gnu_ld" = yes; then
9299             # We only use this code for GNU lds that support --whole-archive.
9300             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9301           else
9302             # Exported symbols can be pulled into shared objects from archives
9303             whole_archive_flag_spec='$convenience'
9304           fi
9305           archive_cmds_need_lc=yes
9306           # This is similar to how AIX traditionally builds its shared libraries.
9307           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'
9308         fi
9309       fi
9310       ;;
9311
9312     amigaos*)
9313       case $host_cpu in
9314       powerpc)
9315             # see comment about AmigaOS4 .so support
9316             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9317             archive_expsym_cmds=''
9318         ;;
9319       m68k)
9320             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)'
9321             hardcode_libdir_flag_spec='-L$libdir'
9322             hardcode_minus_L=yes
9323         ;;
9324       esac
9325       ;;
9326
9327     bsdi[45]*)
9328       export_dynamic_flag_spec=-rdynamic
9329       ;;
9330
9331     cygwin* | mingw* | pw32* | cegcc*)
9332       # When not using gcc, we currently assume that we are using
9333       # Microsoft Visual C++.
9334       # hardcode_libdir_flag_spec is actually meaningless, as there is
9335       # no search path for DLLs.
9336       case $cc_basename in
9337       cl*)
9338         # Native MSVC
9339         hardcode_libdir_flag_spec=' '
9340         allow_undefined_flag=unsupported
9341         always_export_symbols=yes
9342         file_list_spec='@'
9343         # Tell ltmain to make .lib files, not .a files.
9344         libext=lib
9345         # Tell ltmain to make .dll files, not .so files.
9346         shrext_cmds=".dll"
9347         # FIXME: Setting linknames here is a bad hack.
9348         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9349         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9350             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9351           else
9352             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9353           fi~
9354           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9355           linknames='
9356         # The linker will not automatically build a static lib if we build a DLL.
9357         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9358         enable_shared_with_static_runtimes=yes
9359         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9360         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9361         # Don't use ranlib
9362         old_postinstall_cmds='chmod 644 $oldlib'
9363         postlink_cmds='lt_outputfile="@OUTPUT@"~
9364           lt_tool_outputfile="@TOOL_OUTPUT@"~
9365           case $lt_outputfile in
9366             *.exe|*.EXE) ;;
9367             *)
9368               lt_outputfile="$lt_outputfile.exe"
9369               lt_tool_outputfile="$lt_tool_outputfile.exe"
9370               ;;
9371           esac~
9372           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9373             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9374             $RM "$lt_outputfile.manifest";
9375           fi'
9376         ;;
9377       *)
9378         # Assume MSVC wrapper
9379         hardcode_libdir_flag_spec=' '
9380         allow_undefined_flag=unsupported
9381         # Tell ltmain to make .lib files, not .a files.
9382         libext=lib
9383         # Tell ltmain to make .dll files, not .so files.
9384         shrext_cmds=".dll"
9385         # FIXME: Setting linknames here is a bad hack.
9386         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9387         # The linker will automatically build a .lib file if we build a DLL.
9388         old_archive_from_new_cmds='true'
9389         # FIXME: Should let the user specify the lib program.
9390         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9391         enable_shared_with_static_runtimes=yes
9392         ;;
9393       esac
9394       ;;
9395
9396     darwin* | rhapsody*)
9397
9398
9399   archive_cmds_need_lc=no
9400   hardcode_direct=no
9401   hardcode_automatic=yes
9402   hardcode_shlibpath_var=unsupported
9403   if test "$lt_cv_ld_force_load" = "yes"; then
9404     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\"`'
9405
9406   else
9407     whole_archive_flag_spec=''
9408   fi
9409   link_all_deplibs=yes
9410   allow_undefined_flag="$_lt_dar_allow_undefined"
9411   case $cc_basename in
9412      ifort*) _lt_dar_can_shared=yes ;;
9413      *) _lt_dar_can_shared=$GCC ;;
9414   esac
9415   if test "$_lt_dar_can_shared" = "yes"; then
9416     output_verbose_link_cmd=func_echo_all
9417     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9418     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9419     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}"
9420     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}"
9421
9422   else
9423   ld_shlibs=no
9424   fi
9425
9426       ;;
9427
9428     dgux*)
9429       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9430       hardcode_libdir_flag_spec='-L$libdir'
9431       hardcode_shlibpath_var=no
9432       ;;
9433
9434     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9435     # support.  Future versions do this automatically, but an explicit c++rt0.o
9436     # does not break anything, and helps significantly (at the cost of a little
9437     # extra space).
9438     freebsd2.2*)
9439       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9440       hardcode_libdir_flag_spec='-R$libdir'
9441       hardcode_direct=yes
9442       hardcode_shlibpath_var=no
9443       ;;
9444
9445     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9446     freebsd2.*)
9447       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9448       hardcode_direct=yes
9449       hardcode_minus_L=yes
9450       hardcode_shlibpath_var=no
9451       ;;
9452
9453     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9454     freebsd* | dragonfly*)
9455       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9456       hardcode_libdir_flag_spec='-R$libdir'
9457       hardcode_direct=yes
9458       hardcode_shlibpath_var=no
9459       ;;
9460
9461     hpux9*)
9462       if test "$GCC" = yes; then
9463         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'
9464       else
9465         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'
9466       fi
9467       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9468       hardcode_libdir_separator=:
9469       hardcode_direct=yes
9470
9471       # hardcode_minus_L: Not really in the search PATH,
9472       # but as the default location of the library.
9473       hardcode_minus_L=yes
9474       export_dynamic_flag_spec='${wl}-E'
9475       ;;
9476
9477     hpux10*)
9478       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9479         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9480       else
9481         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9482       fi
9483       if test "$with_gnu_ld" = no; then
9484         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9485         hardcode_libdir_separator=:
9486         hardcode_direct=yes
9487         hardcode_direct_absolute=yes
9488         export_dynamic_flag_spec='${wl}-E'
9489         # hardcode_minus_L: Not really in the search PATH,
9490         # but as the default location of the library.
9491         hardcode_minus_L=yes
9492       fi
9493       ;;
9494
9495     hpux11*)
9496       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9497         case $host_cpu in
9498         hppa*64*)
9499           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9500           ;;
9501         ia64*)
9502           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9503           ;;
9504         *)
9505           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9506           ;;
9507         esac
9508       else
9509         case $host_cpu in
9510         hppa*64*)
9511           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9512           ;;
9513         ia64*)
9514           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9515           ;;
9516         *)
9517
9518           # Older versions of the 11.00 compiler do not understand -b yet
9519           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9520           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9521 $as_echo_n "checking if $CC understands -b... " >&6; }
9522 if ${lt_cv_prog_compiler__b+:} false; then :
9523   $as_echo_n "(cached) " >&6
9524 else
9525   lt_cv_prog_compiler__b=no
9526    save_LDFLAGS="$LDFLAGS"
9527    LDFLAGS="$LDFLAGS -b"
9528    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9529    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9530      # The linker can only warn and ignore the option if not recognized
9531      # So say no if there are warnings
9532      if test -s conftest.err; then
9533        # Append any errors to the config.log.
9534        cat conftest.err 1>&5
9535        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9536        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9537        if diff conftest.exp conftest.er2 >/dev/null; then
9538          lt_cv_prog_compiler__b=yes
9539        fi
9540      else
9541        lt_cv_prog_compiler__b=yes
9542      fi
9543    fi
9544    $RM -r conftest*
9545    LDFLAGS="$save_LDFLAGS"
9546
9547 fi
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9549 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9550
9551 if test x"$lt_cv_prog_compiler__b" = xyes; then
9552     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9553 else
9554     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9555 fi
9556
9557           ;;
9558         esac
9559       fi
9560       if test "$with_gnu_ld" = no; then
9561         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9562         hardcode_libdir_separator=:
9563
9564         case $host_cpu in
9565         hppa*64*|ia64*)
9566           hardcode_direct=no
9567           hardcode_shlibpath_var=no
9568           ;;
9569         *)
9570           hardcode_direct=yes
9571           hardcode_direct_absolute=yes
9572           export_dynamic_flag_spec='${wl}-E'
9573
9574           # hardcode_minus_L: Not really in the search PATH,
9575           # but as the default location of the library.
9576           hardcode_minus_L=yes
9577           ;;
9578         esac
9579       fi
9580       ;;
9581
9582     irix5* | irix6* | nonstopux*)
9583       if test "$GCC" = yes; then
9584         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'
9585         # Try to use the -exported_symbol ld option, if it does not
9586         # work, assume that -exports_file does not work either and
9587         # implicitly export all symbols.
9588         # This should be the same for all languages, so no per-tag cache variable.
9589         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9590 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9591 if ${lt_cv_irix_exported_symbol+:} false; then :
9592   $as_echo_n "(cached) " >&6
9593 else
9594   save_LDFLAGS="$LDFLAGS"
9595            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9596            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9597 /* end confdefs.h.  */
9598 int foo (void) { return 0; }
9599 _ACEOF
9600 if ac_fn_c_try_link "$LINENO"; then :
9601   lt_cv_irix_exported_symbol=yes
9602 else
9603   lt_cv_irix_exported_symbol=no
9604 fi
9605 rm -f core conftest.err conftest.$ac_objext \
9606     conftest$ac_exeext conftest.$ac_ext
9607            LDFLAGS="$save_LDFLAGS"
9608 fi
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9610 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9611         if test "$lt_cv_irix_exported_symbol" = yes; then
9612           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'
9613         fi
9614       else
9615         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'
9616         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'
9617       fi
9618       archive_cmds_need_lc='no'
9619       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9620       hardcode_libdir_separator=:
9621       inherit_rpath=yes
9622       link_all_deplibs=yes
9623       ;;
9624
9625     netbsd*)
9626       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9627         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9628       else
9629         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9630       fi
9631       hardcode_libdir_flag_spec='-R$libdir'
9632       hardcode_direct=yes
9633       hardcode_shlibpath_var=no
9634       ;;
9635
9636     newsos6)
9637       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9638       hardcode_direct=yes
9639       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9640       hardcode_libdir_separator=:
9641       hardcode_shlibpath_var=no
9642       ;;
9643
9644     *nto* | *qnx*)
9645       ;;
9646
9647     openbsd*)
9648       if test -f /usr/libexec/ld.so; then
9649         hardcode_direct=yes
9650         hardcode_shlibpath_var=no
9651         hardcode_direct_absolute=yes
9652         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9653           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9654           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9655           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9656           export_dynamic_flag_spec='${wl}-E'
9657         else
9658           case $host_os in
9659            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9660              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9661              hardcode_libdir_flag_spec='-R$libdir'
9662              ;;
9663            *)
9664              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9665              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9666              ;;
9667           esac
9668         fi
9669       else
9670         ld_shlibs=no
9671       fi
9672       ;;
9673
9674     os2*)
9675       hardcode_libdir_flag_spec='-L$libdir'
9676       hardcode_minus_L=yes
9677       allow_undefined_flag=unsupported
9678       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'
9679       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9680       ;;
9681
9682     osf3*)
9683       if test "$GCC" = yes; then
9684         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9685         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'
9686       else
9687         allow_undefined_flag=' -expect_unresolved \*'
9688         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'
9689       fi
9690       archive_cmds_need_lc='no'
9691       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9692       hardcode_libdir_separator=:
9693       ;;
9694
9695     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9696       if test "$GCC" = yes; then
9697         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9698         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'
9699         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9700       else
9701         allow_undefined_flag=' -expect_unresolved \*'
9702         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'
9703         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~
9704         $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'
9705
9706         # Both c and cxx compiler support -rpath directly
9707         hardcode_libdir_flag_spec='-rpath $libdir'
9708       fi
9709       archive_cmds_need_lc='no'
9710       hardcode_libdir_separator=:
9711       ;;
9712
9713     solaris*)
9714       no_undefined_flag=' -z defs'
9715       if test "$GCC" = yes; then
9716         wlarc='${wl}'
9717         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9718         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9719           $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'
9720       else
9721         case `$CC -V 2>&1` in
9722         *"Compilers 5.0"*)
9723           wlarc=''
9724           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9725           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9726           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9727           ;;
9728         *)
9729           wlarc='${wl}'
9730           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9731           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9732           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9733           ;;
9734         esac
9735       fi
9736       hardcode_libdir_flag_spec='-R$libdir'
9737       hardcode_shlibpath_var=no
9738       case $host_os in
9739       solaris2.[0-5] | solaris2.[0-5].*) ;;
9740       *)
9741         # The compiler driver will combine and reorder linker options,
9742         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9743         # but is careful enough not to reorder.
9744         # Supported since Solaris 2.6 (maybe 2.5.1?)
9745         if test "$GCC" = yes; then
9746           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9747         else
9748           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9749         fi
9750         ;;
9751       esac
9752       link_all_deplibs=yes
9753       ;;
9754
9755     sunos4*)
9756       if test "x$host_vendor" = xsequent; then
9757         # Use $CC to link under sequent, because it throws in some extra .o
9758         # files that make .init and .fini sections work.
9759         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9760       else
9761         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9762       fi
9763       hardcode_libdir_flag_spec='-L$libdir'
9764       hardcode_direct=yes
9765       hardcode_minus_L=yes
9766       hardcode_shlibpath_var=no
9767       ;;
9768
9769     sysv4)
9770       case $host_vendor in
9771         sni)
9772           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9773           hardcode_direct=yes # is this really true???
9774         ;;
9775         siemens)
9776           ## LD is ld it makes a PLAMLIB
9777           ## CC just makes a GrossModule.
9778           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9779           reload_cmds='$CC -r -o $output$reload_objs'
9780           hardcode_direct=no
9781         ;;
9782         motorola)
9783           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9784           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9785         ;;
9786       esac
9787       runpath_var='LD_RUN_PATH'
9788       hardcode_shlibpath_var=no
9789       ;;
9790
9791     sysv4.3*)
9792       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9793       hardcode_shlibpath_var=no
9794       export_dynamic_flag_spec='-Bexport'
9795       ;;
9796
9797     sysv4*MP*)
9798       if test -d /usr/nec; then
9799         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9800         hardcode_shlibpath_var=no
9801         runpath_var=LD_RUN_PATH
9802         hardcode_runpath_var=yes
9803         ld_shlibs=yes
9804       fi
9805       ;;
9806
9807     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9808       no_undefined_flag='${wl}-z,text'
9809       archive_cmds_need_lc=no
9810       hardcode_shlibpath_var=no
9811       runpath_var='LD_RUN_PATH'
9812
9813       if test "$GCC" = yes; then
9814         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9815         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9816       else
9817         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9818         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9819       fi
9820       ;;
9821
9822     sysv5* | sco3.2v5* | sco5v6*)
9823       # Note: We can NOT use -z defs as we might desire, because we do not
9824       # link with -lc, and that would cause any symbols used from libc to
9825       # always be unresolved, which means just about no library would
9826       # ever link correctly.  If we're not using GNU ld we use -z text
9827       # though, which does catch some bad symbols but isn't as heavy-handed
9828       # as -z defs.
9829       no_undefined_flag='${wl}-z,text'
9830       allow_undefined_flag='${wl}-z,nodefs'
9831       archive_cmds_need_lc=no
9832       hardcode_shlibpath_var=no
9833       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9834       hardcode_libdir_separator=':'
9835       link_all_deplibs=yes
9836       export_dynamic_flag_spec='${wl}-Bexport'
9837       runpath_var='LD_RUN_PATH'
9838
9839       if test "$GCC" = yes; then
9840         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9841         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9842       else
9843         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9844         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9845       fi
9846       ;;
9847
9848     uts4*)
9849       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9850       hardcode_libdir_flag_spec='-L$libdir'
9851       hardcode_shlibpath_var=no
9852       ;;
9853
9854     *)
9855       ld_shlibs=no
9856       ;;
9857     esac
9858
9859     if test x$host_vendor = xsni; then
9860       case $host in
9861       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9862         export_dynamic_flag_spec='${wl}-Blargedynsym'
9863         ;;
9864       esac
9865     fi
9866   fi
9867
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9869 $as_echo "$ld_shlibs" >&6; }
9870 test "$ld_shlibs" = no && can_build_shared=no
9871
9872 with_gnu_ld=$with_gnu_ld
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888 #
9889 # Do we need to explicitly link libc?
9890 #
9891 case "x$archive_cmds_need_lc" in
9892 x|xyes)
9893   # Assume -lc should be added
9894   archive_cmds_need_lc=yes
9895
9896   if test "$enable_shared" = yes && test "$GCC" = yes; then
9897     case $archive_cmds in
9898     *'~'*)
9899       # FIXME: we may have to deal with multi-command sequences.
9900       ;;
9901     '$CC '*)
9902       # Test whether the compiler implicitly links with -lc since on some
9903       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9904       # to ld, don't add -lc before -lgcc.
9905       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9906 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9907 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9908   $as_echo_n "(cached) " >&6
9909 else
9910   $RM conftest*
9911         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9912
9913         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9914   (eval $ac_compile) 2>&5
9915   ac_status=$?
9916   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9917   test $ac_status = 0; } 2>conftest.err; then
9918           soname=conftest
9919           lib=conftest
9920           libobjs=conftest.$ac_objext
9921           deplibs=
9922           wl=$lt_prog_compiler_wl
9923           pic_flag=$lt_prog_compiler_pic
9924           compiler_flags=-v
9925           linker_flags=-v
9926           verstring=
9927           output_objdir=.
9928           libname=conftest
9929           lt_save_allow_undefined_flag=$allow_undefined_flag
9930           allow_undefined_flag=
9931           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9932   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9933   ac_status=$?
9934   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9935   test $ac_status = 0; }
9936           then
9937             lt_cv_archive_cmds_need_lc=no
9938           else
9939             lt_cv_archive_cmds_need_lc=yes
9940           fi
9941           allow_undefined_flag=$lt_save_allow_undefined_flag
9942         else
9943           cat conftest.err 1>&5
9944         fi
9945         $RM conftest*
9946
9947 fi
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9949 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9950       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9951       ;;
9952     esac
9953   fi
9954   ;;
9955 esac
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10109 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10110
10111 if test "$GCC" = yes; then
10112   case $host_os in
10113     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10114     *) lt_awk_arg="/^libraries:/" ;;
10115   esac
10116   case $host_os in
10117     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10118     *) lt_sed_strip_eq="s,=/,/,g" ;;
10119   esac
10120   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10121   case $lt_search_path_spec in
10122   *\;*)
10123     # if the path contains ";" then we assume it to be the separator
10124     # otherwise default to the standard path separator (i.e. ":") - it is
10125     # assumed that no part of a normal pathname contains ";" but that should
10126     # okay in the real world where ";" in dirpaths is itself problematic.
10127     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10128     ;;
10129   *)
10130     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10131     ;;
10132   esac
10133   # Ok, now we have the path, separated by spaces, we can step through it
10134   # and add multilib dir if necessary.
10135   lt_tmp_lt_search_path_spec=
10136   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10137   for lt_sys_path in $lt_search_path_spec; do
10138     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10139       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10140     else
10141       test -d "$lt_sys_path" && \
10142         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10143     fi
10144   done
10145   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10146 BEGIN {RS=" "; FS="/|\n";} {
10147   lt_foo="";
10148   lt_count=0;
10149   for (lt_i = NF; lt_i > 0; lt_i--) {
10150     if ($lt_i != "" && $lt_i != ".") {
10151       if ($lt_i == "..") {
10152         lt_count++;
10153       } else {
10154         if (lt_count == 0) {
10155           lt_foo="/" $lt_i lt_foo;
10156         } else {
10157           lt_count--;
10158         }
10159       }
10160     }
10161   }
10162   if (lt_foo != "") { lt_freq[lt_foo]++; }
10163   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10164 }'`
10165   # AWK program above erroneously prepends '/' to C:/dos/paths
10166   # for these hosts.
10167   case $host_os in
10168     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10169       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10170   esac
10171   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10172 else
10173   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10174 fi
10175 library_names_spec=
10176 libname_spec='lib$name'
10177 soname_spec=
10178 shrext_cmds=".so"
10179 postinstall_cmds=
10180 postuninstall_cmds=
10181 finish_cmds=
10182 finish_eval=
10183 shlibpath_var=
10184 shlibpath_overrides_runpath=unknown
10185 version_type=none
10186 dynamic_linker="$host_os ld.so"
10187 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10188 need_lib_prefix=unknown
10189 hardcode_into_libs=no
10190
10191 # when you set need_version to no, make sure it does not cause -set_version
10192 # flags to be left without arguments
10193 need_version=unknown
10194
10195 case $host_os in
10196 aix3*)
10197   version_type=linux # correct to gnu/linux during the next big refactor
10198   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10199   shlibpath_var=LIBPATH
10200
10201   # AIX 3 has no versioning support, so we append a major version to the name.
10202   soname_spec='${libname}${release}${shared_ext}$major'
10203   ;;
10204
10205 aix[4-9]*)
10206   version_type=linux # correct to gnu/linux during the next big refactor
10207   need_lib_prefix=no
10208   need_version=no
10209   hardcode_into_libs=yes
10210   if test "$host_cpu" = ia64; then
10211     # AIX 5 supports IA64
10212     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10213     shlibpath_var=LD_LIBRARY_PATH
10214   else
10215     # With GCC up to 2.95.x, collect2 would create an import file
10216     # for dependence libraries.  The import file would start with
10217     # the line `#! .'.  This would cause the generated library to
10218     # depend on `.', always an invalid library.  This was fixed in
10219     # development snapshots of GCC prior to 3.0.
10220     case $host_os in
10221       aix4 | aix4.[01] | aix4.[01].*)
10222       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10223            echo ' yes '
10224            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10225         :
10226       else
10227         can_build_shared=no
10228       fi
10229       ;;
10230     esac
10231     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10232     # soname into executable. Probably we can add versioning support to
10233     # collect2, so additional links can be useful in future.
10234     if test "$aix_use_runtimelinking" = yes; then
10235       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10236       # instead of lib<name>.a to let people know that these are not
10237       # typical AIX shared libraries.
10238       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10239     else
10240       # We preserve .a as extension for shared libraries through AIX4.2
10241       # and later when we are not doing run time linking.
10242       library_names_spec='${libname}${release}.a $libname.a'
10243       soname_spec='${libname}${release}${shared_ext}$major'
10244     fi
10245     shlibpath_var=LIBPATH
10246   fi
10247   ;;
10248
10249 amigaos*)
10250   case $host_cpu in
10251   powerpc)
10252     # Since July 2007 AmigaOS4 officially supports .so libraries.
10253     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10254     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10255     ;;
10256   m68k)
10257     library_names_spec='$libname.ixlibrary $libname.a'
10258     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10259     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'
10260     ;;
10261   esac
10262   ;;
10263
10264 beos*)
10265   library_names_spec='${libname}${shared_ext}'
10266   dynamic_linker="$host_os ld.so"
10267   shlibpath_var=LIBRARY_PATH
10268   ;;
10269
10270 bsdi[45]*)
10271   version_type=linux # correct to gnu/linux during the next big refactor
10272   need_version=no
10273   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10274   soname_spec='${libname}${release}${shared_ext}$major'
10275   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10276   shlibpath_var=LD_LIBRARY_PATH
10277   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10278   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10279   # the default ld.so.conf also contains /usr/contrib/lib and
10280   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10281   # libtool to hard-code these into programs
10282   ;;
10283
10284 cygwin* | mingw* | pw32* | cegcc*)
10285   version_type=windows
10286   shrext_cmds=".dll"
10287   need_version=no
10288   need_lib_prefix=no
10289
10290   case $GCC,$cc_basename in
10291   yes,*)
10292     # gcc
10293     library_names_spec='$libname.dll.a'
10294     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10295     postinstall_cmds='base_file=`basename \${file}`~
10296       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10297       dldir=$destdir/`dirname \$dlpath`~
10298       test -d \$dldir || mkdir -p \$dldir~
10299       $install_prog $dir/$dlname \$dldir/$dlname~
10300       chmod a+x \$dldir/$dlname~
10301       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10302         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10303       fi'
10304     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10305       dlpath=$dir/\$dldll~
10306        $RM \$dlpath'
10307     shlibpath_overrides_runpath=yes
10308
10309     case $host_os in
10310     cygwin*)
10311       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10312       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10313
10314       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10315       ;;
10316     mingw* | cegcc*)
10317       # MinGW DLLs use traditional 'lib' prefix
10318       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10319       ;;
10320     pw32*)
10321       # pw32 DLLs use 'pw' prefix rather than 'lib'
10322       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10323       ;;
10324     esac
10325     dynamic_linker='Win32 ld.exe'
10326     ;;
10327
10328   *,cl*)
10329     # Native MSVC
10330     libname_spec='$name'
10331     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10332     library_names_spec='${libname}.dll.lib'
10333
10334     case $build_os in
10335     mingw*)
10336       sys_lib_search_path_spec=
10337       lt_save_ifs=$IFS
10338       IFS=';'
10339       for lt_path in $LIB
10340       do
10341         IFS=$lt_save_ifs
10342         # Let DOS variable expansion print the short 8.3 style file name.
10343         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10344         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10345       done
10346       IFS=$lt_save_ifs
10347       # Convert to MSYS style.
10348       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10349       ;;
10350     cygwin*)
10351       # Convert to unix form, then to dos form, then back to unix form
10352       # but this time dos style (no spaces!) so that the unix form looks
10353       # like /cygdrive/c/PROGRA~1:/cygdr...
10354       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10355       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10356       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10357       ;;
10358     *)
10359       sys_lib_search_path_spec="$LIB"
10360       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10361         # It is most probably a Windows format PATH.
10362         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10363       else
10364         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10365       fi
10366       # FIXME: find the short name or the path components, as spaces are
10367       # common. (e.g. "Program Files" -> "PROGRA~1")
10368       ;;
10369     esac
10370
10371     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10372     postinstall_cmds='base_file=`basename \${file}`~
10373       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10374       dldir=$destdir/`dirname \$dlpath`~
10375       test -d \$dldir || mkdir -p \$dldir~
10376       $install_prog $dir/$dlname \$dldir/$dlname'
10377     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10378       dlpath=$dir/\$dldll~
10379        $RM \$dlpath'
10380     shlibpath_overrides_runpath=yes
10381     dynamic_linker='Win32 link.exe'
10382     ;;
10383
10384   *)
10385     # Assume MSVC wrapper
10386     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10387     dynamic_linker='Win32 ld.exe'
10388     ;;
10389   esac
10390   # FIXME: first we should search . and the directory the executable is in
10391   shlibpath_var=PATH
10392   ;;
10393
10394 darwin* | rhapsody*)
10395   dynamic_linker="$host_os dyld"
10396   version_type=darwin
10397   need_lib_prefix=no
10398   need_version=no
10399   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10400   soname_spec='${libname}${release}${major}$shared_ext'
10401   shlibpath_overrides_runpath=yes
10402   shlibpath_var=DYLD_LIBRARY_PATH
10403   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10404
10405   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10406   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10407   ;;
10408
10409 dgux*)
10410   version_type=linux # correct to gnu/linux during the next big refactor
10411   need_lib_prefix=no
10412   need_version=no
10413   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10414   soname_spec='${libname}${release}${shared_ext}$major'
10415   shlibpath_var=LD_LIBRARY_PATH
10416   ;;
10417
10418 freebsd* | dragonfly*)
10419   # DragonFly does not have aout.  When/if they implement a new
10420   # versioning mechanism, adjust this.
10421   if test -x /usr/bin/objformat; then
10422     objformat=`/usr/bin/objformat`
10423   else
10424     case $host_os in
10425     freebsd[23].*) objformat=aout ;;
10426     *) objformat=elf ;;
10427     esac
10428   fi
10429   version_type=freebsd-$objformat
10430   case $version_type in
10431     freebsd-elf*)
10432       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10433       need_version=no
10434       need_lib_prefix=no
10435       ;;
10436     freebsd-*)
10437       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10438       need_version=yes
10439       ;;
10440   esac
10441   shlibpath_var=LD_LIBRARY_PATH
10442   case $host_os in
10443   freebsd2.*)
10444     shlibpath_overrides_runpath=yes
10445     ;;
10446   freebsd3.[01]* | freebsdelf3.[01]*)
10447     shlibpath_overrides_runpath=yes
10448     hardcode_into_libs=yes
10449     ;;
10450   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10451   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10452     shlibpath_overrides_runpath=no
10453     hardcode_into_libs=yes
10454     ;;
10455   *) # from 4.6 on, and DragonFly
10456     shlibpath_overrides_runpath=yes
10457     hardcode_into_libs=yes
10458     ;;
10459   esac
10460   ;;
10461
10462 gnu*)
10463   version_type=linux # correct to gnu/linux during the next big refactor
10464   need_lib_prefix=no
10465   need_version=no
10466   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10467   soname_spec='${libname}${release}${shared_ext}$major'
10468   shlibpath_var=LD_LIBRARY_PATH
10469   shlibpath_overrides_runpath=no
10470   hardcode_into_libs=yes
10471   ;;
10472
10473 haiku*)
10474   version_type=linux # correct to gnu/linux during the next big refactor
10475   need_lib_prefix=no
10476   need_version=no
10477   dynamic_linker="$host_os runtime_loader"
10478   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10479   soname_spec='${libname}${release}${shared_ext}$major'
10480   shlibpath_var=LIBRARY_PATH
10481   shlibpath_overrides_runpath=yes
10482   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10483   hardcode_into_libs=yes
10484   ;;
10485
10486 hpux9* | hpux10* | hpux11*)
10487   # Give a soname corresponding to the major version so that dld.sl refuses to
10488   # link against other versions.
10489   version_type=sunos
10490   need_lib_prefix=no
10491   need_version=no
10492   case $host_cpu in
10493   ia64*)
10494     shrext_cmds='.so'
10495     hardcode_into_libs=yes
10496     dynamic_linker="$host_os dld.so"
10497     shlibpath_var=LD_LIBRARY_PATH
10498     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10499     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10500     soname_spec='${libname}${release}${shared_ext}$major'
10501     if test "X$HPUX_IA64_MODE" = X32; then
10502       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10503     else
10504       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10505     fi
10506     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10507     ;;
10508   hppa*64*)
10509     shrext_cmds='.sl'
10510     hardcode_into_libs=yes
10511     dynamic_linker="$host_os dld.sl"
10512     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10513     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10514     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10515     soname_spec='${libname}${release}${shared_ext}$major'
10516     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10517     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10518     ;;
10519   *)
10520     shrext_cmds='.sl'
10521     dynamic_linker="$host_os dld.sl"
10522     shlibpath_var=SHLIB_PATH
10523     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10524     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10525     soname_spec='${libname}${release}${shared_ext}$major'
10526     ;;
10527   esac
10528   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10529   postinstall_cmds='chmod 555 $lib'
10530   # or fails outright, so override atomically:
10531   install_override_mode=555
10532   ;;
10533
10534 interix[3-9]*)
10535   version_type=linux # correct to gnu/linux during the next big refactor
10536   need_lib_prefix=no
10537   need_version=no
10538   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10539   soname_spec='${libname}${release}${shared_ext}$major'
10540   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10541   shlibpath_var=LD_LIBRARY_PATH
10542   shlibpath_overrides_runpath=no
10543   hardcode_into_libs=yes
10544   ;;
10545
10546 irix5* | irix6* | nonstopux*)
10547   case $host_os in
10548     nonstopux*) version_type=nonstopux ;;
10549     *)
10550         if test "$lt_cv_prog_gnu_ld" = yes; then
10551                 version_type=linux # correct to gnu/linux during the next big refactor
10552         else
10553                 version_type=irix
10554         fi ;;
10555   esac
10556   need_lib_prefix=no
10557   need_version=no
10558   soname_spec='${libname}${release}${shared_ext}$major'
10559   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10560   case $host_os in
10561   irix5* | nonstopux*)
10562     libsuff= shlibsuff=
10563     ;;
10564   *)
10565     case $LD in # libtool.m4 will add one of these switches to LD
10566     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10567       libsuff= shlibsuff= libmagic=32-bit;;
10568     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10569       libsuff=32 shlibsuff=N32 libmagic=N32;;
10570     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10571       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10572     *) libsuff= shlibsuff= libmagic=never-match;;
10573     esac
10574     ;;
10575   esac
10576   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10577   shlibpath_overrides_runpath=no
10578   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10579   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10580   hardcode_into_libs=yes
10581   ;;
10582
10583 # No shared lib support for Linux oldld, aout, or coff.
10584 linux*oldld* | linux*aout* | linux*coff*)
10585   dynamic_linker=no
10586   ;;
10587
10588 # This must be glibc/ELF.
10589 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10590   version_type=linux # correct to gnu/linux during the next big refactor
10591   need_lib_prefix=no
10592   need_version=no
10593   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10594   soname_spec='${libname}${release}${shared_ext}$major'
10595   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10596   shlibpath_var=LD_LIBRARY_PATH
10597   shlibpath_overrides_runpath=no
10598
10599   # Some binutils ld are patched to set DT_RUNPATH
10600   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10601   $as_echo_n "(cached) " >&6
10602 else
10603   lt_cv_shlibpath_overrides_runpath=no
10604     save_LDFLAGS=$LDFLAGS
10605     save_libdir=$libdir
10606     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10607          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10608     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10609 /* end confdefs.h.  */
10610
10611 int
10612 main ()
10613 {
10614
10615   ;
10616   return 0;
10617 }
10618 _ACEOF
10619 if ac_fn_c_try_link "$LINENO"; then :
10620   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10621   lt_cv_shlibpath_overrides_runpath=yes
10622 fi
10623 fi
10624 rm -f core conftest.err conftest.$ac_objext \
10625     conftest$ac_exeext conftest.$ac_ext
10626     LDFLAGS=$save_LDFLAGS
10627     libdir=$save_libdir
10628
10629 fi
10630
10631   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10632
10633   # This implies no fast_install, which is unacceptable.
10634   # Some rework will be needed to allow for fast_install
10635   # before this can be enabled.
10636   hardcode_into_libs=yes
10637
10638   # Append ld.so.conf contents to the search path
10639   if test -f /etc/ld.so.conf; then
10640     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' ' '`
10641     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10642   fi
10643
10644   # We used to test for /lib/ld.so.1 and disable shared libraries on
10645   # powerpc, because MkLinux only supported shared libraries with the
10646   # GNU dynamic linker.  Since this was broken with cross compilers,
10647   # most powerpc-linux boxes support dynamic linking these days and
10648   # people can always --disable-shared, the test was removed, and we
10649   # assume the GNU/Linux dynamic linker is in use.
10650   dynamic_linker='GNU/Linux ld.so'
10651   ;;
10652
10653 netbsd*)
10654   version_type=sunos
10655   need_lib_prefix=no
10656   need_version=no
10657   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10658     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10659     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10660     dynamic_linker='NetBSD (a.out) ld.so'
10661   else
10662     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10663     soname_spec='${libname}${release}${shared_ext}$major'
10664     dynamic_linker='NetBSD ld.elf_so'
10665   fi
10666   shlibpath_var=LD_LIBRARY_PATH
10667   shlibpath_overrides_runpath=yes
10668   hardcode_into_libs=yes
10669   ;;
10670
10671 newsos6)
10672   version_type=linux # correct to gnu/linux during the next big refactor
10673   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10674   shlibpath_var=LD_LIBRARY_PATH
10675   shlibpath_overrides_runpath=yes
10676   ;;
10677
10678 *nto* | *qnx*)
10679   version_type=qnx
10680   need_lib_prefix=no
10681   need_version=no
10682   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10683   soname_spec='${libname}${release}${shared_ext}$major'
10684   shlibpath_var=LD_LIBRARY_PATH
10685   shlibpath_overrides_runpath=no
10686   hardcode_into_libs=yes
10687   dynamic_linker='ldqnx.so'
10688   ;;
10689
10690 openbsd*)
10691   version_type=sunos
10692   sys_lib_dlsearch_path_spec="/usr/lib"
10693   need_lib_prefix=no
10694   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10695   case $host_os in
10696     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10697     *)                          need_version=no  ;;
10698   esac
10699   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10700   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10701   shlibpath_var=LD_LIBRARY_PATH
10702   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10703     case $host_os in
10704       openbsd2.[89] | openbsd2.[89].*)
10705         shlibpath_overrides_runpath=no
10706         ;;
10707       *)
10708         shlibpath_overrides_runpath=yes
10709         ;;
10710       esac
10711   else
10712     shlibpath_overrides_runpath=yes
10713   fi
10714   ;;
10715
10716 os2*)
10717   libname_spec='$name'
10718   shrext_cmds=".dll"
10719   need_lib_prefix=no
10720   library_names_spec='$libname${shared_ext} $libname.a'
10721   dynamic_linker='OS/2 ld.exe'
10722   shlibpath_var=LIBPATH
10723   ;;
10724
10725 osf3* | osf4* | osf5*)
10726   version_type=osf
10727   need_lib_prefix=no
10728   need_version=no
10729   soname_spec='${libname}${release}${shared_ext}$major'
10730   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10731   shlibpath_var=LD_LIBRARY_PATH
10732   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10733   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10734   ;;
10735
10736 rdos*)
10737   dynamic_linker=no
10738   ;;
10739
10740 solaris*)
10741   version_type=linux # correct to gnu/linux during the next big refactor
10742   need_lib_prefix=no
10743   need_version=no
10744   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10745   soname_spec='${libname}${release}${shared_ext}$major'
10746   shlibpath_var=LD_LIBRARY_PATH
10747   shlibpath_overrides_runpath=yes
10748   hardcode_into_libs=yes
10749   # ldd complains unless libraries are executable
10750   postinstall_cmds='chmod +x $lib'
10751   ;;
10752
10753 sunos4*)
10754   version_type=sunos
10755   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10756   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10757   shlibpath_var=LD_LIBRARY_PATH
10758   shlibpath_overrides_runpath=yes
10759   if test "$with_gnu_ld" = yes; then
10760     need_lib_prefix=no
10761   fi
10762   need_version=yes
10763   ;;
10764
10765 sysv4 | sysv4.3*)
10766   version_type=linux # correct to gnu/linux during the next big refactor
10767   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10768   soname_spec='${libname}${release}${shared_ext}$major'
10769   shlibpath_var=LD_LIBRARY_PATH
10770   case $host_vendor in
10771     sni)
10772       shlibpath_overrides_runpath=no
10773       need_lib_prefix=no
10774       runpath_var=LD_RUN_PATH
10775       ;;
10776     siemens)
10777       need_lib_prefix=no
10778       ;;
10779     motorola)
10780       need_lib_prefix=no
10781       need_version=no
10782       shlibpath_overrides_runpath=no
10783       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10784       ;;
10785   esac
10786   ;;
10787
10788 sysv4*MP*)
10789   if test -d /usr/nec ;then
10790     version_type=linux # correct to gnu/linux during the next big refactor
10791     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10792     soname_spec='$libname${shared_ext}.$major'
10793     shlibpath_var=LD_LIBRARY_PATH
10794   fi
10795   ;;
10796
10797 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10798   version_type=freebsd-elf
10799   need_lib_prefix=no
10800   need_version=no
10801   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10802   soname_spec='${libname}${release}${shared_ext}$major'
10803   shlibpath_var=LD_LIBRARY_PATH
10804   shlibpath_overrides_runpath=yes
10805   hardcode_into_libs=yes
10806   if test "$with_gnu_ld" = yes; then
10807     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10808   else
10809     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10810     case $host_os in
10811       sco3.2v5*)
10812         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10813         ;;
10814     esac
10815   fi
10816   sys_lib_dlsearch_path_spec='/usr/lib'
10817   ;;
10818
10819 tpf*)
10820   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10821   version_type=linux # correct to gnu/linux during the next big refactor
10822   need_lib_prefix=no
10823   need_version=no
10824   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10825   shlibpath_var=LD_LIBRARY_PATH
10826   shlibpath_overrides_runpath=no
10827   hardcode_into_libs=yes
10828   ;;
10829
10830 uts4*)
10831   version_type=linux # correct to gnu/linux during the next big refactor
10832   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10833   soname_spec='${libname}${release}${shared_ext}$major'
10834   shlibpath_var=LD_LIBRARY_PATH
10835   ;;
10836
10837 *)
10838   dynamic_linker=no
10839   ;;
10840 esac
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10842 $as_echo "$dynamic_linker" >&6; }
10843 test "$dynamic_linker" = no && can_build_shared=no
10844
10845 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10846 if test "$GCC" = yes; then
10847   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10848 fi
10849
10850 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10851   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10852 fi
10853 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10854   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10855 fi
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10949 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10950 hardcode_action=
10951 if test -n "$hardcode_libdir_flag_spec" ||
10952    test -n "$runpath_var" ||
10953    test "X$hardcode_automatic" = "Xyes" ; then
10954
10955   # We can hardcode non-existent directories.
10956   if test "$hardcode_direct" != no &&
10957      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10958      # have to relink, otherwise we might link with an installed library
10959      # when we should be linking with a yet-to-be-installed one
10960      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10961      test "$hardcode_minus_L" != no; then
10962     # Linking always hardcodes the temporary library directory.
10963     hardcode_action=relink
10964   else
10965     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10966     hardcode_action=immediate
10967   fi
10968 else
10969   # We cannot hardcode anything, or else we can only hardcode existing
10970   # directories.
10971   hardcode_action=unsupported
10972 fi
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10974 $as_echo "$hardcode_action" >&6; }
10975
10976 if test "$hardcode_action" = relink ||
10977    test "$inherit_rpath" = yes; then
10978   # Fast installation is not supported
10979   enable_fast_install=no
10980 elif test "$shlibpath_overrides_runpath" = yes ||
10981      test "$enable_shared" = no; then
10982   # Fast installation is not necessary
10983   enable_fast_install=needless
10984 fi
10985
10986
10987
10988
10989
10990
10991   if test "x$enable_dlopen" != xyes; then
10992   enable_dlopen=unknown
10993   enable_dlopen_self=unknown
10994   enable_dlopen_self_static=unknown
10995 else
10996   lt_cv_dlopen=no
10997   lt_cv_dlopen_libs=
10998
10999   case $host_os in
11000   beos*)
11001     lt_cv_dlopen="load_add_on"
11002     lt_cv_dlopen_libs=
11003     lt_cv_dlopen_self=yes
11004     ;;
11005
11006   mingw* | pw32* | cegcc*)
11007     lt_cv_dlopen="LoadLibrary"
11008     lt_cv_dlopen_libs=
11009     ;;
11010
11011   cygwin*)
11012     lt_cv_dlopen="dlopen"
11013     lt_cv_dlopen_libs=
11014     ;;
11015
11016   darwin*)
11017   # if libdl is installed we need to link against it
11018     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11019 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11020 if ${ac_cv_lib_dl_dlopen+:} false; then :
11021   $as_echo_n "(cached) " >&6
11022 else
11023   ac_check_lib_save_LIBS=$LIBS
11024 LIBS="-ldl  $LIBS"
11025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11026 /* end confdefs.h.  */
11027
11028 /* Override any GCC internal prototype to avoid an error.
11029    Use char because int might match the return type of a GCC
11030    builtin and then its argument prototype would still apply.  */
11031 #ifdef __cplusplus
11032 extern "C"
11033 #endif
11034 char dlopen ();
11035 int
11036 main ()
11037 {
11038 return dlopen ();
11039   ;
11040   return 0;
11041 }
11042 _ACEOF
11043 if ac_fn_c_try_link "$LINENO"; then :
11044   ac_cv_lib_dl_dlopen=yes
11045 else
11046   ac_cv_lib_dl_dlopen=no
11047 fi
11048 rm -f core conftest.err conftest.$ac_objext \
11049     conftest$ac_exeext conftest.$ac_ext
11050 LIBS=$ac_check_lib_save_LIBS
11051 fi
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11053 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11054 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11055   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11056 else
11057
11058     lt_cv_dlopen="dyld"
11059     lt_cv_dlopen_libs=
11060     lt_cv_dlopen_self=yes
11061
11062 fi
11063
11064     ;;
11065
11066   *)
11067     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11068 if test "x$ac_cv_func_shl_load" = xyes; then :
11069   lt_cv_dlopen="shl_load"
11070 else
11071   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11072 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11073 if ${ac_cv_lib_dld_shl_load+:} false; then :
11074   $as_echo_n "(cached) " >&6
11075 else
11076   ac_check_lib_save_LIBS=$LIBS
11077 LIBS="-ldld  $LIBS"
11078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11079 /* end confdefs.h.  */
11080
11081 /* Override any GCC internal prototype to avoid an error.
11082    Use char because int might match the return type of a GCC
11083    builtin and then its argument prototype would still apply.  */
11084 #ifdef __cplusplus
11085 extern "C"
11086 #endif
11087 char shl_load ();
11088 int
11089 main ()
11090 {
11091 return shl_load ();
11092   ;
11093   return 0;
11094 }
11095 _ACEOF
11096 if ac_fn_c_try_link "$LINENO"; then :
11097   ac_cv_lib_dld_shl_load=yes
11098 else
11099   ac_cv_lib_dld_shl_load=no
11100 fi
11101 rm -f core conftest.err conftest.$ac_objext \
11102     conftest$ac_exeext conftest.$ac_ext
11103 LIBS=$ac_check_lib_save_LIBS
11104 fi
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11106 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11107 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11108   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11109 else
11110   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11111 if test "x$ac_cv_func_dlopen" = xyes; then :
11112   lt_cv_dlopen="dlopen"
11113 else
11114   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11115 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11116 if ${ac_cv_lib_dl_dlopen+:} false; then :
11117   $as_echo_n "(cached) " >&6
11118 else
11119   ac_check_lib_save_LIBS=$LIBS
11120 LIBS="-ldl  $LIBS"
11121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11122 /* end confdefs.h.  */
11123
11124 /* Override any GCC internal prototype to avoid an error.
11125    Use char because int might match the return type of a GCC
11126    builtin and then its argument prototype would still apply.  */
11127 #ifdef __cplusplus
11128 extern "C"
11129 #endif
11130 char dlopen ();
11131 int
11132 main ()
11133 {
11134 return dlopen ();
11135   ;
11136   return 0;
11137 }
11138 _ACEOF
11139 if ac_fn_c_try_link "$LINENO"; then :
11140   ac_cv_lib_dl_dlopen=yes
11141 else
11142   ac_cv_lib_dl_dlopen=no
11143 fi
11144 rm -f core conftest.err conftest.$ac_objext \
11145     conftest$ac_exeext conftest.$ac_ext
11146 LIBS=$ac_check_lib_save_LIBS
11147 fi
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11149 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11150 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11151   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11152 else
11153   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11154 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11155 if ${ac_cv_lib_svld_dlopen+:} false; then :
11156   $as_echo_n "(cached) " >&6
11157 else
11158   ac_check_lib_save_LIBS=$LIBS
11159 LIBS="-lsvld  $LIBS"
11160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11161 /* end confdefs.h.  */
11162
11163 /* Override any GCC internal prototype to avoid an error.
11164    Use char because int might match the return type of a GCC
11165    builtin and then its argument prototype would still apply.  */
11166 #ifdef __cplusplus
11167 extern "C"
11168 #endif
11169 char dlopen ();
11170 int
11171 main ()
11172 {
11173 return dlopen ();
11174   ;
11175   return 0;
11176 }
11177 _ACEOF
11178 if ac_fn_c_try_link "$LINENO"; then :
11179   ac_cv_lib_svld_dlopen=yes
11180 else
11181   ac_cv_lib_svld_dlopen=no
11182 fi
11183 rm -f core conftest.err conftest.$ac_objext \
11184     conftest$ac_exeext conftest.$ac_ext
11185 LIBS=$ac_check_lib_save_LIBS
11186 fi
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11188 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11189 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11190   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11191 else
11192   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11193 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11194 if ${ac_cv_lib_dld_dld_link+:} false; then :
11195   $as_echo_n "(cached) " >&6
11196 else
11197   ac_check_lib_save_LIBS=$LIBS
11198 LIBS="-ldld  $LIBS"
11199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11200 /* end confdefs.h.  */
11201
11202 /* Override any GCC internal prototype to avoid an error.
11203    Use char because int might match the return type of a GCC
11204    builtin and then its argument prototype would still apply.  */
11205 #ifdef __cplusplus
11206 extern "C"
11207 #endif
11208 char dld_link ();
11209 int
11210 main ()
11211 {
11212 return dld_link ();
11213   ;
11214   return 0;
11215 }
11216 _ACEOF
11217 if ac_fn_c_try_link "$LINENO"; then :
11218   ac_cv_lib_dld_dld_link=yes
11219 else
11220   ac_cv_lib_dld_dld_link=no
11221 fi
11222 rm -f core conftest.err conftest.$ac_objext \
11223     conftest$ac_exeext conftest.$ac_ext
11224 LIBS=$ac_check_lib_save_LIBS
11225 fi
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11227 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11228 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11229   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11230 fi
11231
11232
11233 fi
11234
11235
11236 fi
11237
11238
11239 fi
11240
11241
11242 fi
11243
11244
11245 fi
11246
11247     ;;
11248   esac
11249
11250   if test "x$lt_cv_dlopen" != xno; then
11251     enable_dlopen=yes
11252   else
11253     enable_dlopen=no
11254   fi
11255
11256   case $lt_cv_dlopen in
11257   dlopen)
11258     save_CPPFLAGS="$CPPFLAGS"
11259     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11260
11261     save_LDFLAGS="$LDFLAGS"
11262     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11263
11264     save_LIBS="$LIBS"
11265     LIBS="$lt_cv_dlopen_libs $LIBS"
11266
11267     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11268 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11269 if ${lt_cv_dlopen_self+:} false; then :
11270   $as_echo_n "(cached) " >&6
11271 else
11272           if test "$cross_compiling" = yes; then :
11273   lt_cv_dlopen_self=cross
11274 else
11275   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11276   lt_status=$lt_dlunknown
11277   cat > conftest.$ac_ext <<_LT_EOF
11278 #line $LINENO "configure"
11279 #include "confdefs.h"
11280
11281 #if HAVE_DLFCN_H
11282 #include <dlfcn.h>
11283 #endif
11284
11285 #include <stdio.h>
11286
11287 #ifdef RTLD_GLOBAL
11288 #  define LT_DLGLOBAL           RTLD_GLOBAL
11289 #else
11290 #  ifdef DL_GLOBAL
11291 #    define LT_DLGLOBAL         DL_GLOBAL
11292 #  else
11293 #    define LT_DLGLOBAL         0
11294 #  endif
11295 #endif
11296
11297 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11298    find out it does not work in some platform. */
11299 #ifndef LT_DLLAZY_OR_NOW
11300 #  ifdef RTLD_LAZY
11301 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11302 #  else
11303 #    ifdef DL_LAZY
11304 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11305 #    else
11306 #      ifdef RTLD_NOW
11307 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11308 #      else
11309 #        ifdef DL_NOW
11310 #          define LT_DLLAZY_OR_NOW      DL_NOW
11311 #        else
11312 #          define LT_DLLAZY_OR_NOW      0
11313 #        endif
11314 #      endif
11315 #    endif
11316 #  endif
11317 #endif
11318
11319 /* When -fvisbility=hidden is used, assume the code has been annotated
11320    correspondingly for the symbols needed.  */
11321 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11322 int fnord () __attribute__((visibility("default")));
11323 #endif
11324
11325 int fnord () { return 42; }
11326 int main ()
11327 {
11328   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11329   int status = $lt_dlunknown;
11330
11331   if (self)
11332     {
11333       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11334       else
11335         {
11336           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11337           else puts (dlerror ());
11338         }
11339       /* dlclose (self); */
11340     }
11341   else
11342     puts (dlerror ());
11343
11344   return status;
11345 }
11346 _LT_EOF
11347   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11348   (eval $ac_link) 2>&5
11349   ac_status=$?
11350   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11351   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11352     (./conftest; exit; ) >&5 2>/dev/null
11353     lt_status=$?
11354     case x$lt_status in
11355       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11356       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11357       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11358     esac
11359   else :
11360     # compilation failed
11361     lt_cv_dlopen_self=no
11362   fi
11363 fi
11364 rm -fr conftest*
11365
11366
11367 fi
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11369 $as_echo "$lt_cv_dlopen_self" >&6; }
11370
11371     if test "x$lt_cv_dlopen_self" = xyes; then
11372       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11373       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11374 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11375 if ${lt_cv_dlopen_self_static+:} false; then :
11376   $as_echo_n "(cached) " >&6
11377 else
11378           if test "$cross_compiling" = yes; then :
11379   lt_cv_dlopen_self_static=cross
11380 else
11381   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11382   lt_status=$lt_dlunknown
11383   cat > conftest.$ac_ext <<_LT_EOF
11384 #line $LINENO "configure"
11385 #include "confdefs.h"
11386
11387 #if HAVE_DLFCN_H
11388 #include <dlfcn.h>
11389 #endif
11390
11391 #include <stdio.h>
11392
11393 #ifdef RTLD_GLOBAL
11394 #  define LT_DLGLOBAL           RTLD_GLOBAL
11395 #else
11396 #  ifdef DL_GLOBAL
11397 #    define LT_DLGLOBAL         DL_GLOBAL
11398 #  else
11399 #    define LT_DLGLOBAL         0
11400 #  endif
11401 #endif
11402
11403 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11404    find out it does not work in some platform. */
11405 #ifndef LT_DLLAZY_OR_NOW
11406 #  ifdef RTLD_LAZY
11407 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11408 #  else
11409 #    ifdef DL_LAZY
11410 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11411 #    else
11412 #      ifdef RTLD_NOW
11413 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11414 #      else
11415 #        ifdef DL_NOW
11416 #          define LT_DLLAZY_OR_NOW      DL_NOW
11417 #        else
11418 #          define LT_DLLAZY_OR_NOW      0
11419 #        endif
11420 #      endif
11421 #    endif
11422 #  endif
11423 #endif
11424
11425 /* When -fvisbility=hidden is used, assume the code has been annotated
11426    correspondingly for the symbols needed.  */
11427 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11428 int fnord () __attribute__((visibility("default")));
11429 #endif
11430
11431 int fnord () { return 42; }
11432 int main ()
11433 {
11434   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11435   int status = $lt_dlunknown;
11436
11437   if (self)
11438     {
11439       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11440       else
11441         {
11442           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11443           else puts (dlerror ());
11444         }
11445       /* dlclose (self); */
11446     }
11447   else
11448     puts (dlerror ());
11449
11450   return status;
11451 }
11452 _LT_EOF
11453   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11454   (eval $ac_link) 2>&5
11455   ac_status=$?
11456   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11457   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11458     (./conftest; exit; ) >&5 2>/dev/null
11459     lt_status=$?
11460     case x$lt_status in
11461       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11462       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11463       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11464     esac
11465   else :
11466     # compilation failed
11467     lt_cv_dlopen_self_static=no
11468   fi
11469 fi
11470 rm -fr conftest*
11471
11472
11473 fi
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11475 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11476     fi
11477
11478     CPPFLAGS="$save_CPPFLAGS"
11479     LDFLAGS="$save_LDFLAGS"
11480     LIBS="$save_LIBS"
11481     ;;
11482   esac
11483
11484   case $lt_cv_dlopen_self in
11485   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11486   *) enable_dlopen_self=unknown ;;
11487   esac
11488
11489   case $lt_cv_dlopen_self_static in
11490   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11491   *) enable_dlopen_self_static=unknown ;;
11492   esac
11493 fi
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511 striplib=
11512 old_striplib=
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11514 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11515 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11516   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11517   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11519 $as_echo "yes" >&6; }
11520 else
11521 # FIXME - insert some real tests, host_os isn't really good enough
11522   case $host_os in
11523   darwin*)
11524     if test -n "$STRIP" ; then
11525       striplib="$STRIP -x"
11526       old_striplib="$STRIP -S"
11527       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11528 $as_echo "yes" >&6; }
11529     else
11530       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11531 $as_echo "no" >&6; }
11532     fi
11533     ;;
11534   *)
11535     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11536 $as_echo "no" >&6; }
11537     ;;
11538   esac
11539 fi
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552   # Report which library types will actually be built
11553   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11554 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11556 $as_echo "$can_build_shared" >&6; }
11557
11558   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11559 $as_echo_n "checking whether to build shared libraries... " >&6; }
11560   test "$can_build_shared" = "no" && enable_shared=no
11561
11562   # On AIX, shared libraries and static libraries use the same namespace, and
11563   # are all built from PIC.
11564   case $host_os in
11565   aix3*)
11566     test "$enable_shared" = yes && enable_static=no
11567     if test -n "$RANLIB"; then
11568       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11569       postinstall_cmds='$RANLIB $lib'
11570     fi
11571     ;;
11572
11573   aix[4-9]*)
11574     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11575       test "$enable_shared" = yes && enable_static=no
11576     fi
11577     ;;
11578   esac
11579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11580 $as_echo "$enable_shared" >&6; }
11581
11582   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11583 $as_echo_n "checking whether to build static libraries... " >&6; }
11584   # Make sure either enable_shared or enable_static is yes.
11585   test "$enable_shared" = yes || enable_static=yes
11586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11587 $as_echo "$enable_static" >&6; }
11588
11589
11590
11591
11592 fi
11593 ac_ext=c
11594 ac_cpp='$CPP $CPPFLAGS'
11595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11598
11599 CC="$lt_save_CC"
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615         ac_config_commands="$ac_config_commands libtool"
11616
11617
11618
11619
11620 # Only expand once:
11621
11622
11623 ac_config_headers="$ac_config_headers config.h"
11624
11625 ac_config_files="$ac_config_files Makefile doc/Makefile doc/Doxyfile src/Makefile programs/Makefile"
11626
11627 ac_ext=c
11628 ac_cpp='$CPP $CPPFLAGS'
11629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11632 if test -n "$ac_tool_prefix"; then
11633   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11634 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11636 $as_echo_n "checking for $ac_word... " >&6; }
11637 if ${ac_cv_prog_CC+:} false; then :
11638   $as_echo_n "(cached) " >&6
11639 else
11640   if test -n "$CC"; then
11641   ac_cv_prog_CC="$CC" # Let the user override the test.
11642 else
11643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11644 for as_dir in $PATH
11645 do
11646   IFS=$as_save_IFS
11647   test -z "$as_dir" && as_dir=.
11648     for ac_exec_ext in '' $ac_executable_extensions; do
11649   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11650     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11651     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11652     break 2
11653   fi
11654 done
11655   done
11656 IFS=$as_save_IFS
11657
11658 fi
11659 fi
11660 CC=$ac_cv_prog_CC
11661 if test -n "$CC"; then
11662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11663 $as_echo "$CC" >&6; }
11664 else
11665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11666 $as_echo "no" >&6; }
11667 fi
11668
11669
11670 fi
11671 if test -z "$ac_cv_prog_CC"; then
11672   ac_ct_CC=$CC
11673   # Extract the first word of "gcc", so it can be a program name with args.
11674 set dummy gcc; ac_word=$2
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11676 $as_echo_n "checking for $ac_word... " >&6; }
11677 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11678   $as_echo_n "(cached) " >&6
11679 else
11680   if test -n "$ac_ct_CC"; then
11681   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11682 else
11683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11684 for as_dir in $PATH
11685 do
11686   IFS=$as_save_IFS
11687   test -z "$as_dir" && as_dir=.
11688     for ac_exec_ext in '' $ac_executable_extensions; do
11689   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11690     ac_cv_prog_ac_ct_CC="gcc"
11691     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11692     break 2
11693   fi
11694 done
11695   done
11696 IFS=$as_save_IFS
11697
11698 fi
11699 fi
11700 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11701 if test -n "$ac_ct_CC"; then
11702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11703 $as_echo "$ac_ct_CC" >&6; }
11704 else
11705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11706 $as_echo "no" >&6; }
11707 fi
11708
11709   if test "x$ac_ct_CC" = x; then
11710     CC=""
11711   else
11712     case $cross_compiling:$ac_tool_warned in
11713 yes:)
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11715 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11716 ac_tool_warned=yes ;;
11717 esac
11718     CC=$ac_ct_CC
11719   fi
11720 else
11721   CC="$ac_cv_prog_CC"
11722 fi
11723
11724 if test -z "$CC"; then
11725           if test -n "$ac_tool_prefix"; then
11726     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11727 set dummy ${ac_tool_prefix}cc; ac_word=$2
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11729 $as_echo_n "checking for $ac_word... " >&6; }
11730 if ${ac_cv_prog_CC+:} false; then :
11731   $as_echo_n "(cached) " >&6
11732 else
11733   if test -n "$CC"; then
11734   ac_cv_prog_CC="$CC" # Let the user override the test.
11735 else
11736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11737 for as_dir in $PATH
11738 do
11739   IFS=$as_save_IFS
11740   test -z "$as_dir" && as_dir=.
11741     for ac_exec_ext in '' $ac_executable_extensions; do
11742   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11743     ac_cv_prog_CC="${ac_tool_prefix}cc"
11744     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11745     break 2
11746   fi
11747 done
11748   done
11749 IFS=$as_save_IFS
11750
11751 fi
11752 fi
11753 CC=$ac_cv_prog_CC
11754 if test -n "$CC"; then
11755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11756 $as_echo "$CC" >&6; }
11757 else
11758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11759 $as_echo "no" >&6; }
11760 fi
11761
11762
11763   fi
11764 fi
11765 if test -z "$CC"; then
11766   # Extract the first word of "cc", so it can be a program name with args.
11767 set dummy cc; ac_word=$2
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11769 $as_echo_n "checking for $ac_word... " >&6; }
11770 if ${ac_cv_prog_CC+:} false; then :
11771   $as_echo_n "(cached) " >&6
11772 else
11773   if test -n "$CC"; then
11774   ac_cv_prog_CC="$CC" # Let the user override the test.
11775 else
11776   ac_prog_rejected=no
11777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11778 for as_dir in $PATH
11779 do
11780   IFS=$as_save_IFS
11781   test -z "$as_dir" && as_dir=.
11782     for ac_exec_ext in '' $ac_executable_extensions; do
11783   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11784     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11785        ac_prog_rejected=yes
11786        continue
11787      fi
11788     ac_cv_prog_CC="cc"
11789     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11790     break 2
11791   fi
11792 done
11793   done
11794 IFS=$as_save_IFS
11795
11796 if test $ac_prog_rejected = yes; then
11797   # We found a bogon in the path, so make sure we never use it.
11798   set dummy $ac_cv_prog_CC
11799   shift
11800   if test $# != 0; then
11801     # We chose a different compiler from the bogus one.
11802     # However, it has the same basename, so the bogon will be chosen
11803     # first if we set CC to just the basename; use the full file name.
11804     shift
11805     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11806   fi
11807 fi
11808 fi
11809 fi
11810 CC=$ac_cv_prog_CC
11811 if test -n "$CC"; then
11812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11813 $as_echo "$CC" >&6; }
11814 else
11815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11816 $as_echo "no" >&6; }
11817 fi
11818
11819
11820 fi
11821 if test -z "$CC"; then
11822   if test -n "$ac_tool_prefix"; then
11823   for ac_prog in cl.exe
11824   do
11825     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11826 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11828 $as_echo_n "checking for $ac_word... " >&6; }
11829 if ${ac_cv_prog_CC+:} false; then :
11830   $as_echo_n "(cached) " >&6
11831 else
11832   if test -n "$CC"; then
11833   ac_cv_prog_CC="$CC" # Let the user override the test.
11834 else
11835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11836 for as_dir in $PATH
11837 do
11838   IFS=$as_save_IFS
11839   test -z "$as_dir" && as_dir=.
11840     for ac_exec_ext in '' $ac_executable_extensions; do
11841   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11842     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11843     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11844     break 2
11845   fi
11846 done
11847   done
11848 IFS=$as_save_IFS
11849
11850 fi
11851 fi
11852 CC=$ac_cv_prog_CC
11853 if test -n "$CC"; then
11854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11855 $as_echo "$CC" >&6; }
11856 else
11857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11858 $as_echo "no" >&6; }
11859 fi
11860
11861
11862     test -n "$CC" && break
11863   done
11864 fi
11865 if test -z "$CC"; then
11866   ac_ct_CC=$CC
11867   for ac_prog in cl.exe
11868 do
11869   # Extract the first word of "$ac_prog", so it can be a program name with args.
11870 set dummy $ac_prog; ac_word=$2
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11872 $as_echo_n "checking for $ac_word... " >&6; }
11873 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11874   $as_echo_n "(cached) " >&6
11875 else
11876   if test -n "$ac_ct_CC"; then
11877   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11878 else
11879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11880 for as_dir in $PATH
11881 do
11882   IFS=$as_save_IFS
11883   test -z "$as_dir" && as_dir=.
11884     for ac_exec_ext in '' $ac_executable_extensions; do
11885   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11886     ac_cv_prog_ac_ct_CC="$ac_prog"
11887     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11888     break 2
11889   fi
11890 done
11891   done
11892 IFS=$as_save_IFS
11893
11894 fi
11895 fi
11896 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11897 if test -n "$ac_ct_CC"; then
11898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11899 $as_echo "$ac_ct_CC" >&6; }
11900 else
11901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11902 $as_echo "no" >&6; }
11903 fi
11904
11905
11906   test -n "$ac_ct_CC" && break
11907 done
11908
11909   if test "x$ac_ct_CC" = x; then
11910     CC=""
11911   else
11912     case $cross_compiling:$ac_tool_warned in
11913 yes:)
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11915 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11916 ac_tool_warned=yes ;;
11917 esac
11918     CC=$ac_ct_CC
11919   fi
11920 fi
11921
11922 fi
11923
11924
11925 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11927 as_fn_error $? "no acceptable C compiler found in \$PATH
11928 See \`config.log' for more details" "$LINENO" 5; }
11929
11930 # Provide some information about the compiler.
11931 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11932 set X $ac_compile
11933 ac_compiler=$2
11934 for ac_option in --version -v -V -qversion; do
11935   { { ac_try="$ac_compiler $ac_option >&5"
11936 case "(($ac_try" in
11937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11938   *) ac_try_echo=$ac_try;;
11939 esac
11940 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11941 $as_echo "$ac_try_echo"; } >&5
11942   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11943   ac_status=$?
11944   if test -s conftest.err; then
11945     sed '10a\
11946 ... rest of stderr output deleted ...
11947          10q' conftest.err >conftest.er1
11948     cat conftest.er1 >&5
11949   fi
11950   rm -f conftest.er1 conftest.err
11951   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11952   test $ac_status = 0; }
11953 done
11954
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11956 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11957 if ${ac_cv_c_compiler_gnu+:} false; then :
11958   $as_echo_n "(cached) " >&6
11959 else
11960   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11961 /* end confdefs.h.  */
11962
11963 int
11964 main ()
11965 {
11966 #ifndef __GNUC__
11967        choke me
11968 #endif
11969
11970   ;
11971   return 0;
11972 }
11973 _ACEOF
11974 if ac_fn_c_try_compile "$LINENO"; then :
11975   ac_compiler_gnu=yes
11976 else
11977   ac_compiler_gnu=no
11978 fi
11979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11980 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11981
11982 fi
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11984 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11985 if test $ac_compiler_gnu = yes; then
11986   GCC=yes
11987 else
11988   GCC=
11989 fi
11990 ac_test_CFLAGS=${CFLAGS+set}
11991 ac_save_CFLAGS=$CFLAGS
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11993 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11994 if ${ac_cv_prog_cc_g+:} false; then :
11995   $as_echo_n "(cached) " >&6
11996 else
11997   ac_save_c_werror_flag=$ac_c_werror_flag
11998    ac_c_werror_flag=yes
11999    ac_cv_prog_cc_g=no
12000    CFLAGS="-g"
12001    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12002 /* end confdefs.h.  */
12003
12004 int
12005 main ()
12006 {
12007
12008   ;
12009   return 0;
12010 }
12011 _ACEOF
12012 if ac_fn_c_try_compile "$LINENO"; then :
12013   ac_cv_prog_cc_g=yes
12014 else
12015   CFLAGS=""
12016       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12017 /* end confdefs.h.  */
12018
12019 int
12020 main ()
12021 {
12022
12023   ;
12024   return 0;
12025 }
12026 _ACEOF
12027 if ac_fn_c_try_compile "$LINENO"; then :
12028
12029 else
12030   ac_c_werror_flag=$ac_save_c_werror_flag
12031          CFLAGS="-g"
12032          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12033 /* end confdefs.h.  */
12034
12035 int
12036 main ()
12037 {
12038
12039   ;
12040   return 0;
12041 }
12042 _ACEOF
12043 if ac_fn_c_try_compile "$LINENO"; then :
12044   ac_cv_prog_cc_g=yes
12045 fi
12046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12047 fi
12048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12049 fi
12050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12051    ac_c_werror_flag=$ac_save_c_werror_flag
12052 fi
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12054 $as_echo "$ac_cv_prog_cc_g" >&6; }
12055 if test "$ac_test_CFLAGS" = set; then
12056   CFLAGS=$ac_save_CFLAGS
12057 elif test $ac_cv_prog_cc_g = yes; then
12058   if test "$GCC" = yes; then
12059     CFLAGS="-g -O2"
12060   else
12061     CFLAGS="-g"
12062   fi
12063 else
12064   if test "$GCC" = yes; then
12065     CFLAGS="-O2"
12066   else
12067     CFLAGS=
12068   fi
12069 fi
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12071 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12072 if ${ac_cv_prog_cc_c89+:} false; then :
12073   $as_echo_n "(cached) " >&6
12074 else
12075   ac_cv_prog_cc_c89=no
12076 ac_save_CC=$CC
12077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12078 /* end confdefs.h.  */
12079 #include <stdarg.h>
12080 #include <stdio.h>
12081 struct stat;
12082 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12083 struct buf { int x; };
12084 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12085 static char *e (p, i)
12086      char **p;
12087      int i;
12088 {
12089   return p[i];
12090 }
12091 static char *f (char * (*g) (char **, int), char **p, ...)
12092 {
12093   char *s;
12094   va_list v;
12095   va_start (v,p);
12096   s = g (p, va_arg (v,int));
12097   va_end (v);
12098   return s;
12099 }
12100
12101 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12102    function prototypes and stuff, but not '\xHH' hex character constants.
12103    These don't provoke an error unfortunately, instead are silently treated
12104    as 'x'.  The following induces an error, until -std is added to get
12105    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12106    array size at least.  It's necessary to write '\x00'==0 to get something
12107    that's true only with -std.  */
12108 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12109
12110 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12111    inside strings and character constants.  */
12112 #define FOO(x) 'x'
12113 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12114
12115 int test (int i, double x);
12116 struct s1 {int (*f) (int a);};
12117 struct s2 {int (*f) (double a);};
12118 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12119 int argc;
12120 char **argv;
12121 int
12122 main ()
12123 {
12124 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12125   ;
12126   return 0;
12127 }
12128 _ACEOF
12129 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12130         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12131 do
12132   CC="$ac_save_CC $ac_arg"
12133   if ac_fn_c_try_compile "$LINENO"; then :
12134   ac_cv_prog_cc_c89=$ac_arg
12135 fi
12136 rm -f core conftest.err conftest.$ac_objext
12137   test "x$ac_cv_prog_cc_c89" != "xno" && break
12138 done
12139 rm -f conftest.$ac_ext
12140 CC=$ac_save_CC
12141
12142 fi
12143 # AC_CACHE_VAL
12144 case "x$ac_cv_prog_cc_c89" in
12145   x)
12146     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12147 $as_echo "none needed" >&6; } ;;
12148   xno)
12149     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12150 $as_echo "unsupported" >&6; } ;;
12151   *)
12152     CC="$CC $ac_cv_prog_cc_c89"
12153     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12154 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12155 esac
12156 if test "x$ac_cv_prog_cc_c89" != xno; then :
12157
12158 fi
12159
12160 ac_ext=c
12161 ac_cpp='$CPP $CPPFLAGS'
12162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12165
12166 depcc="$CC"   am_compiler_list=
12167
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12169 $as_echo_n "checking dependency style of $depcc... " >&6; }
12170 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12171   $as_echo_n "(cached) " >&6
12172 else
12173   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12174   # We make a subdir and do the tests there.  Otherwise we can end up
12175   # making bogus files that we don't know about and never remove.  For
12176   # instance it was reported that on HP-UX the gcc test will end up
12177   # making a dummy file named 'D' -- because '-MD' means "put the output
12178   # in D".
12179   rm -rf conftest.dir
12180   mkdir conftest.dir
12181   # Copy depcomp to subdir because otherwise we won't find it if we're
12182   # using a relative directory.
12183   cp "$am_depcomp" conftest.dir
12184   cd conftest.dir
12185   # We will build objects and dependencies in a subdirectory because
12186   # it helps to detect inapplicable dependency modes.  For instance
12187   # both Tru64's cc and ICC support -MD to output dependencies as a
12188   # side effect of compilation, but ICC will put the dependencies in
12189   # the current directory while Tru64 will put them in the object
12190   # directory.
12191   mkdir sub
12192
12193   am_cv_CC_dependencies_compiler_type=none
12194   if test "$am_compiler_list" = ""; then
12195      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12196   fi
12197   am__universal=false
12198   case " $depcc " in #(
12199      *\ -arch\ *\ -arch\ *) am__universal=true ;;
12200      esac
12201
12202   for depmode in $am_compiler_list; do
12203     # Setup a source with many dependencies, because some compilers
12204     # like to wrap large dependency lists on column 80 (with \), and
12205     # we should not choose a depcomp mode which is confused by this.
12206     #
12207     # We need to recreate these files for each test, as the compiler may
12208     # overwrite some of them when testing with obscure command lines.
12209     # This happens at least with the AIX C compiler.
12210     : > sub/conftest.c
12211     for i in 1 2 3 4 5 6; do
12212       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12213       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12214       # Solaris 10 /bin/sh.
12215       echo '/* dummy */' > sub/conftst$i.h
12216     done
12217     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12218
12219     # We check with '-c' and '-o' for the sake of the "dashmstdout"
12220     # mode.  It turns out that the SunPro C++ compiler does not properly
12221     # handle '-M -o', and we need to detect this.  Also, some Intel
12222     # versions had trouble with output in subdirs.
12223     am__obj=sub/conftest.${OBJEXT-o}
12224     am__minus_obj="-o $am__obj"
12225     case $depmode in
12226     gcc)
12227       # This depmode causes a compiler race in universal mode.
12228       test "$am__universal" = false || continue
12229       ;;
12230     nosideeffect)
12231       # After this tag, mechanisms are not by side-effect, so they'll
12232       # only be used when explicitly requested.
12233       if test "x$enable_dependency_tracking" = xyes; then
12234         continue
12235       else
12236         break
12237       fi
12238       ;;
12239     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12240       # This compiler won't grok '-c -o', but also, the minuso test has
12241       # not run yet.  These depmodes are late enough in the game, and
12242       # so weak that their functioning should not be impacted.
12243       am__obj=conftest.${OBJEXT-o}
12244       am__minus_obj=
12245       ;;
12246     none) break ;;
12247     esac
12248     if depmode=$depmode \
12249        source=sub/conftest.c object=$am__obj \
12250        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12251        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12252          >/dev/null 2>conftest.err &&
12253        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12254        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12255        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12256        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12257       # icc doesn't choke on unknown options, it will just issue warnings
12258       # or remarks (even with -Werror).  So we grep stderr for any message
12259       # that says an option was ignored or not supported.
12260       # When given -MP, icc 7.0 and 7.1 complain thusly:
12261       #   icc: Command line warning: ignoring option '-M'; no argument required
12262       # The diagnosis changed in icc 8.0:
12263       #   icc: Command line remark: option '-MP' not supported
12264       if (grep 'ignoring option' conftest.err ||
12265           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12266         am_cv_CC_dependencies_compiler_type=$depmode
12267         break
12268       fi
12269     fi
12270   done
12271
12272   cd ..
12273   rm -rf conftest.dir
12274 else
12275   am_cv_CC_dependencies_compiler_type=none
12276 fi
12277
12278 fi
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12280 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12281 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12282
12283  if
12284   test "x$enable_dependency_tracking" != xno \
12285   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12286   am__fastdepCC_TRUE=
12287   am__fastdepCC_FALSE='#'
12288 else
12289   am__fastdepCC_TRUE='#'
12290   am__fastdepCC_FALSE=
12291 fi
12292
12293
12294
12295
12296       if test "X$prefix" = "XNONE"; then
12297     acl_final_prefix="$ac_default_prefix"
12298   else
12299     acl_final_prefix="$prefix"
12300   fi
12301   if test "X$exec_prefix" = "XNONE"; then
12302     acl_final_exec_prefix='${prefix}'
12303   else
12304     acl_final_exec_prefix="$exec_prefix"
12305   fi
12306   acl_save_prefix="$prefix"
12307   prefix="$acl_final_prefix"
12308   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
12309   prefix="$acl_save_prefix"
12310
12311
12312 # Check whether --with-gnu-ld was given.
12313 if test "${with_gnu_ld+set}" = set; then :
12314   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12315 else
12316   with_gnu_ld=no
12317 fi
12318
12319 # Prepare PATH_SEPARATOR.
12320 # The user is always right.
12321 if test "${PATH_SEPARATOR+set}" != set; then
12322   echo "#! /bin/sh" >conf$$.sh
12323   echo  "exit 0"   >>conf$$.sh
12324   chmod +x conf$$.sh
12325   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12326     PATH_SEPARATOR=';'
12327   else
12328     PATH_SEPARATOR=:
12329   fi
12330   rm -f conf$$.sh
12331 fi
12332 ac_prog=ld
12333 if test "$GCC" = yes; then
12334   # Check if gcc -print-prog-name=ld gives a path.
12335   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
12336 $as_echo_n "checking for ld used by GCC... " >&6; }
12337   case $host in
12338   *-*-mingw*)
12339     # gcc leaves a trailing carriage return which upsets mingw
12340     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12341   *)
12342     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12343   esac
12344   case $ac_prog in
12345     # Accept absolute paths.
12346     [\\/]* | [A-Za-z]:[\\/]*)
12347       re_direlt='/[^/][^/]*/\.\./'
12348       # Canonicalize the path of ld
12349       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
12350       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12351         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
12352       done
12353       test -z "$LD" && LD="$ac_prog"
12354       ;;
12355   "")
12356     # If it fails, then pretend we aren't using GCC.
12357     ac_prog=ld
12358     ;;
12359   *)
12360     # If it is relative, then search for the first ld in PATH.
12361     with_gnu_ld=unknown
12362     ;;
12363   esac
12364 elif test "$with_gnu_ld" = yes; then
12365   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12366 $as_echo_n "checking for GNU ld... " >&6; }
12367 else
12368   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12369 $as_echo_n "checking for non-GNU ld... " >&6; }
12370 fi
12371 if ${acl_cv_path_LD+:} false; then :
12372   $as_echo_n "(cached) " >&6
12373 else
12374   if test -z "$LD"; then
12375   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
12376   for ac_dir in $PATH; do
12377     test -z "$ac_dir" && ac_dir=.
12378     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12379       acl_cv_path_LD="$ac_dir/$ac_prog"
12380       # Check to see if the program is GNU ld.  I'd rather use --version,
12381       # but apparently some GNU ld's only accept -v.
12382       # Break only if it was the GNU/non-GNU ld that we prefer.
12383       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
12384       *GNU* | *'with BFD'*)
12385         test "$with_gnu_ld" != no && break ;;
12386       *)
12387         test "$with_gnu_ld" != yes && break ;;
12388       esac
12389     fi
12390   done
12391   IFS="$ac_save_ifs"
12392 else
12393   acl_cv_path_LD="$LD" # Let the user override the test with a path.
12394 fi
12395 fi
12396
12397 LD="$acl_cv_path_LD"
12398 if test -n "$LD"; then
12399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12400 $as_echo "$LD" >&6; }
12401 else
12402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12403 $as_echo "no" >&6; }
12404 fi
12405 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12407 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12408 if ${acl_cv_prog_gnu_ld+:} false; then :
12409   $as_echo_n "(cached) " >&6
12410 else
12411   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12412 case `$LD -v 2>&1 </dev/null` in
12413 *GNU* | *'with BFD'*)
12414   acl_cv_prog_gnu_ld=yes ;;
12415 *)
12416   acl_cv_prog_gnu_ld=no ;;
12417 esac
12418 fi
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
12420 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
12421 with_gnu_ld=$acl_cv_prog_gnu_ld
12422
12423
12424
12425
12426                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
12427 $as_echo_n "checking for shared library run path origin... " >&6; }
12428 if ${acl_cv_rpath+:} false; then :
12429   $as_echo_n "(cached) " >&6
12430 else
12431
12432     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
12433     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
12434     . ./conftest.sh
12435     rm -f ./conftest.sh
12436     acl_cv_rpath=done
12437
12438 fi
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
12440 $as_echo "$acl_cv_rpath" >&6; }
12441   wl="$acl_cv_wl"
12442   acl_libext="$acl_cv_libext"
12443   acl_shlibext="$acl_cv_shlibext"
12444   acl_libname_spec="$acl_cv_libname_spec"
12445   acl_library_names_spec="$acl_cv_library_names_spec"
12446   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
12447   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
12448   acl_hardcode_direct="$acl_cv_hardcode_direct"
12449   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
12450     # Check whether --enable-rpath was given.
12451 if test "${enable_rpath+set}" = set; then :
12452   enableval=$enable_rpath; :
12453 else
12454   enable_rpath=yes
12455 fi
12456
12457
12458
12459
12460   acl_libdirstem=lib
12461   acl_libdirstem2=
12462   case "$host_os" in
12463     solaris*)
12464                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
12465 $as_echo_n "checking for 64-bit host... " >&6; }
12466 if ${gl_cv_solaris_64bit+:} false; then :
12467   $as_echo_n "(cached) " >&6
12468 else
12469   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12470 /* end confdefs.h.  */
12471
12472 #ifdef _LP64
12473 sixtyfour bits
12474 #endif
12475
12476 _ACEOF
12477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12478   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
12479   gl_cv_solaris_64bit=yes
12480 else
12481   gl_cv_solaris_64bit=no
12482 fi
12483 rm -f conftest*
12484
12485
12486 fi
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
12488 $as_echo "$gl_cv_solaris_64bit" >&6; }
12489       if test $gl_cv_solaris_64bit = yes; then
12490         acl_libdirstem=lib/64
12491         case "$host_cpu" in
12492           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
12493           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
12494         esac
12495       fi
12496       ;;
12497     *)
12498       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
12499       if test -n "$searchpath"; then
12500         acl_save_IFS="${IFS=    }"; IFS=":"
12501         for searchdir in $searchpath; do
12502           if test -d "$searchdir"; then
12503             case "$searchdir" in
12504               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
12505               */../ | */.. )
12506                 # Better ignore directories of this form. They are misleading.
12507                 ;;
12508               *) searchdir=`cd "$searchdir" && pwd`
12509                  case "$searchdir" in
12510                    */lib64 ) acl_libdirstem=lib64 ;;
12511                  esac ;;
12512             esac
12513           fi
12514         done
12515         IFS="$acl_save_IFS"
12516       fi
12517       ;;
12518   esac
12519   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532     use_additional=yes
12533
12534   acl_save_prefix="$prefix"
12535   prefix="$acl_final_prefix"
12536   acl_save_exec_prefix="$exec_prefix"
12537   exec_prefix="$acl_final_exec_prefix"
12538
12539     eval additional_includedir=\"$includedir\"
12540     eval additional_libdir=\"$libdir\"
12541
12542   exec_prefix="$acl_save_exec_prefix"
12543   prefix="$acl_save_prefix"
12544
12545
12546 # Check whether --with-libiconv-prefix was given.
12547 if test "${with_libiconv_prefix+set}" = set; then :
12548   withval=$with_libiconv_prefix;
12549     if test "X$withval" = "Xno"; then
12550       use_additional=no
12551     else
12552       if test "X$withval" = "X"; then
12553
12554   acl_save_prefix="$prefix"
12555   prefix="$acl_final_prefix"
12556   acl_save_exec_prefix="$exec_prefix"
12557   exec_prefix="$acl_final_exec_prefix"
12558
12559           eval additional_includedir=\"$includedir\"
12560           eval additional_libdir=\"$libdir\"
12561
12562   exec_prefix="$acl_save_exec_prefix"
12563   prefix="$acl_save_prefix"
12564
12565       else
12566         additional_includedir="$withval/include"
12567         additional_libdir="$withval/$acl_libdirstem"
12568         if test "$acl_libdirstem2" != "$acl_libdirstem" \
12569            && ! test -d "$withval/$acl_libdirstem"; then
12570           additional_libdir="$withval/$acl_libdirstem2"
12571         fi
12572       fi
12573     fi
12574
12575 fi
12576
12577       LIBICONV=
12578   LTLIBICONV=
12579   INCICONV=
12580   LIBICONV_PREFIX=
12581       HAVE_LIBICONV=
12582   rpathdirs=
12583   ltrpathdirs=
12584   names_already_handled=
12585   names_next_round='iconv '
12586   while test -n "$names_next_round"; do
12587     names_this_round="$names_next_round"
12588     names_next_round=
12589     for name in $names_this_round; do
12590       already_handled=
12591       for n in $names_already_handled; do
12592         if test "$n" = "$name"; then
12593           already_handled=yes
12594           break
12595         fi
12596       done
12597       if test -z "$already_handled"; then
12598         names_already_handled="$names_already_handled $name"
12599                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12600         eval value=\"\$HAVE_LIB$uppername\"
12601         if test -n "$value"; then
12602           if test "$value" = yes; then
12603             eval value=\"\$LIB$uppername\"
12604             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
12605             eval value=\"\$LTLIB$uppername\"
12606             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
12607           else
12608                                     :
12609           fi
12610         else
12611                               found_dir=
12612           found_la=
12613           found_so=
12614           found_a=
12615           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
12616           if test -n "$acl_shlibext"; then
12617             shrext=".$acl_shlibext"             # typically: shrext=.so
12618           else
12619             shrext=
12620           fi
12621           if test $use_additional = yes; then
12622             dir="$additional_libdir"
12623                                     if test -n "$acl_shlibext"; then
12624               if test -f "$dir/$libname$shrext"; then
12625                 found_dir="$dir"
12626                 found_so="$dir/$libname$shrext"
12627               else
12628                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12629                   ver=`(cd "$dir" && \
12630                         for f in "$libname$shrext".*; do echo "$f"; done \
12631                         | sed -e "s,^$libname$shrext\\\\.,," \
12632                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12633                         | sed 1q ) 2>/dev/null`
12634                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12635                     found_dir="$dir"
12636                     found_so="$dir/$libname$shrext.$ver"
12637                   fi
12638                 else
12639                   eval library_names=\"$acl_library_names_spec\"
12640                   for f in $library_names; do
12641                     if test -f "$dir/$f"; then
12642                       found_dir="$dir"
12643                       found_so="$dir/$f"
12644                       break
12645                     fi
12646                   done
12647                 fi
12648               fi
12649             fi
12650                         if test "X$found_dir" = "X"; then
12651               if test -f "$dir/$libname.$acl_libext"; then
12652                 found_dir="$dir"
12653                 found_a="$dir/$libname.$acl_libext"
12654               fi
12655             fi
12656             if test "X$found_dir" != "X"; then
12657               if test -f "$dir/$libname.la"; then
12658                 found_la="$dir/$libname.la"
12659               fi
12660             fi
12661           fi
12662           if test "X$found_dir" = "X"; then
12663             for x in $LDFLAGS $LTLIBICONV; do
12664
12665   acl_save_prefix="$prefix"
12666   prefix="$acl_final_prefix"
12667   acl_save_exec_prefix="$exec_prefix"
12668   exec_prefix="$acl_final_exec_prefix"
12669   eval x=\"$x\"
12670   exec_prefix="$acl_save_exec_prefix"
12671   prefix="$acl_save_prefix"
12672
12673               case "$x" in
12674                 -L*)
12675                   dir=`echo "X$x" | sed -e 's/^X-L//'`
12676                                     if test -n "$acl_shlibext"; then
12677                     if test -f "$dir/$libname$shrext"; then
12678                       found_dir="$dir"
12679                       found_so="$dir/$libname$shrext"
12680                     else
12681                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12682                         ver=`(cd "$dir" && \
12683                               for f in "$libname$shrext".*; do echo "$f"; done \
12684                               | sed -e "s,^$libname$shrext\\\\.,," \
12685                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12686                               | sed 1q ) 2>/dev/null`
12687                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12688                           found_dir="$dir"
12689                           found_so="$dir/$libname$shrext.$ver"
12690                         fi
12691                       else
12692                         eval library_names=\"$acl_library_names_spec\"
12693                         for f in $library_names; do
12694                           if test -f "$dir/$f"; then
12695                             found_dir="$dir"
12696                             found_so="$dir/$f"
12697                             break
12698                           fi
12699                         done
12700                       fi
12701                     fi
12702                   fi
12703                                     if test "X$found_dir" = "X"; then
12704                     if test -f "$dir/$libname.$acl_libext"; then
12705                       found_dir="$dir"
12706                       found_a="$dir/$libname.$acl_libext"
12707                     fi
12708                   fi
12709                   if test "X$found_dir" != "X"; then
12710                     if test -f "$dir/$libname.la"; then
12711                       found_la="$dir/$libname.la"
12712                     fi
12713                   fi
12714                   ;;
12715               esac
12716               if test "X$found_dir" != "X"; then
12717                 break
12718               fi
12719             done
12720           fi
12721           if test "X$found_dir" != "X"; then
12722                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
12723             if test "X$found_so" != "X"; then
12724                                                         if test "$enable_rpath" = no \
12725                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
12726                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
12727                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12728               else
12729                                                                                 haveit=
12730                 for x in $ltrpathdirs; do
12731                   if test "X$x" = "X$found_dir"; then
12732                     haveit=yes
12733                     break
12734                   fi
12735                 done
12736                 if test -z "$haveit"; then
12737                   ltrpathdirs="$ltrpathdirs $found_dir"
12738                 fi
12739                                 if test "$acl_hardcode_direct" = yes; then
12740                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12741                 else
12742                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
12743                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12744                                                             haveit=
12745                     for x in $rpathdirs; do
12746                       if test "X$x" = "X$found_dir"; then
12747                         haveit=yes
12748                         break
12749                       fi
12750                     done
12751                     if test -z "$haveit"; then
12752                       rpathdirs="$rpathdirs $found_dir"
12753                     fi
12754                   else
12755                                                                                 haveit=
12756                     for x in $LDFLAGS $LIBICONV; do
12757
12758   acl_save_prefix="$prefix"
12759   prefix="$acl_final_prefix"
12760   acl_save_exec_prefix="$exec_prefix"
12761   exec_prefix="$acl_final_exec_prefix"
12762   eval x=\"$x\"
12763   exec_prefix="$acl_save_exec_prefix"
12764   prefix="$acl_save_prefix"
12765
12766                       if test "X$x" = "X-L$found_dir"; then
12767                         haveit=yes
12768                         break
12769                       fi
12770                     done
12771                     if test -z "$haveit"; then
12772                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
12773                     fi
12774                     if test "$acl_hardcode_minus_L" != no; then
12775                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12776                     else
12777                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12778                     fi
12779                   fi
12780                 fi
12781               fi
12782             else
12783               if test "X$found_a" != "X"; then
12784                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
12785               else
12786                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
12787               fi
12788             fi
12789                         additional_includedir=
12790             case "$found_dir" in
12791               */$acl_libdirstem | */$acl_libdirstem/)
12792                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12793                 if test "$name" = 'iconv'; then
12794                   LIBICONV_PREFIX="$basedir"
12795                 fi
12796                 additional_includedir="$basedir/include"
12797                 ;;
12798               */$acl_libdirstem2 | */$acl_libdirstem2/)
12799                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
12800                 if test "$name" = 'iconv'; then
12801                   LIBICONV_PREFIX="$basedir"
12802                 fi
12803                 additional_includedir="$basedir/include"
12804                 ;;
12805             esac
12806             if test "X$additional_includedir" != "X"; then
12807                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
12808                 haveit=
12809                 if test "X$additional_includedir" = "X/usr/local/include"; then
12810                   if test -n "$GCC"; then
12811                     case $host_os in
12812                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12813                     esac
12814                   fi
12815                 fi
12816                 if test -z "$haveit"; then
12817                   for x in $CPPFLAGS $INCICONV; do
12818
12819   acl_save_prefix="$prefix"
12820   prefix="$acl_final_prefix"
12821   acl_save_exec_prefix="$exec_prefix"
12822   exec_prefix="$acl_final_exec_prefix"
12823   eval x=\"$x\"
12824   exec_prefix="$acl_save_exec_prefix"
12825   prefix="$acl_save_prefix"
12826
12827                     if test "X$x" = "X-I$additional_includedir"; then
12828                       haveit=yes
12829                       break
12830                     fi
12831                   done
12832                   if test -z "$haveit"; then
12833                     if test -d "$additional_includedir"; then
12834                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
12835                     fi
12836                   fi
12837                 fi
12838               fi
12839             fi
12840                         if test -n "$found_la"; then
12841                                                         save_libdir="$libdir"
12842               case "$found_la" in
12843                 */* | *\\*) . "$found_la" ;;
12844                 *) . "./$found_la" ;;
12845               esac
12846               libdir="$save_libdir"
12847                             for dep in $dependency_libs; do
12848                 case "$dep" in
12849                   -L*)
12850                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12851                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
12852                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
12853                       haveit=
12854                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
12855                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
12856                         if test -n "$GCC"; then
12857                           case $host_os in
12858                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12859                           esac
12860                         fi
12861                       fi
12862                       if test -z "$haveit"; then
12863                         haveit=
12864                         for x in $LDFLAGS $LIBICONV; do
12865
12866   acl_save_prefix="$prefix"
12867   prefix="$acl_final_prefix"
12868   acl_save_exec_prefix="$exec_prefix"
12869   exec_prefix="$acl_final_exec_prefix"
12870   eval x=\"$x\"
12871   exec_prefix="$acl_save_exec_prefix"
12872   prefix="$acl_save_prefix"
12873
12874                           if test "X$x" = "X-L$additional_libdir"; then
12875                             haveit=yes
12876                             break
12877                           fi
12878                         done
12879                         if test -z "$haveit"; then
12880                           if test -d "$additional_libdir"; then
12881                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
12882                           fi
12883                         fi
12884                         haveit=
12885                         for x in $LDFLAGS $LTLIBICONV; do
12886
12887   acl_save_prefix="$prefix"
12888   prefix="$acl_final_prefix"
12889   acl_save_exec_prefix="$exec_prefix"
12890   exec_prefix="$acl_final_exec_prefix"
12891   eval x=\"$x\"
12892   exec_prefix="$acl_save_exec_prefix"
12893   prefix="$acl_save_prefix"
12894
12895                           if test "X$x" = "X-L$additional_libdir"; then
12896                             haveit=yes
12897                             break
12898                           fi
12899                         done
12900                         if test -z "$haveit"; then
12901                           if test -d "$additional_libdir"; then
12902                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
12903                           fi
12904                         fi
12905                       fi
12906                     fi
12907                     ;;
12908                   -R*)
12909                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
12910                     if test "$enable_rpath" != no; then
12911                                                                   haveit=
12912                       for x in $rpathdirs; do
12913                         if test "X$x" = "X$dir"; then
12914                           haveit=yes
12915                           break
12916                         fi
12917                       done
12918                       if test -z "$haveit"; then
12919                         rpathdirs="$rpathdirs $dir"
12920                       fi
12921                                                                   haveit=
12922                       for x in $ltrpathdirs; do
12923                         if test "X$x" = "X$dir"; then
12924                           haveit=yes
12925                           break
12926                         fi
12927                       done
12928                       if test -z "$haveit"; then
12929                         ltrpathdirs="$ltrpathdirs $dir"
12930                       fi
12931                     fi
12932                     ;;
12933                   -l*)
12934                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12935                     ;;
12936                   *.la)
12937                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12938                     ;;
12939                   *)
12940                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
12941                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
12942                     ;;
12943                 esac
12944               done
12945             fi
12946           else
12947                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12948             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
12949           fi
12950         fi
12951       fi
12952     done
12953   done
12954   if test "X$rpathdirs" != "X"; then
12955     if test -n "$acl_hardcode_libdir_separator"; then
12956                         alldirs=
12957       for found_dir in $rpathdirs; do
12958         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
12959       done
12960             acl_save_libdir="$libdir"
12961       libdir="$alldirs"
12962       eval flag=\"$acl_hardcode_libdir_flag_spec\"
12963       libdir="$acl_save_libdir"
12964       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12965     else
12966             for found_dir in $rpathdirs; do
12967         acl_save_libdir="$libdir"
12968         libdir="$found_dir"
12969         eval flag=\"$acl_hardcode_libdir_flag_spec\"
12970         libdir="$acl_save_libdir"
12971         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12972       done
12973     fi
12974   fi
12975   if test "X$ltrpathdirs" != "X"; then
12976             for found_dir in $ltrpathdirs; do
12977       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
12978     done
12979   fi
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992           am_save_CPPFLAGS="$CPPFLAGS"
12993
12994   for element in $INCICONV; do
12995     haveit=
12996     for x in $CPPFLAGS; do
12997
12998   acl_save_prefix="$prefix"
12999   prefix="$acl_final_prefix"
13000   acl_save_exec_prefix="$exec_prefix"
13001   exec_prefix="$acl_final_exec_prefix"
13002   eval x=\"$x\"
13003   exec_prefix="$acl_save_exec_prefix"
13004   prefix="$acl_save_prefix"
13005
13006       if test "X$x" = "X$element"; then
13007         haveit=yes
13008         break
13009       fi
13010     done
13011     if test -z "$haveit"; then
13012       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13013     fi
13014   done
13015
13016
13017   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
13018 $as_echo_n "checking for iconv... " >&6; }
13019 if ${am_cv_func_iconv+:} false; then :
13020   $as_echo_n "(cached) " >&6
13021 else
13022
13023     am_cv_func_iconv="no, consider installing GNU libiconv"
13024     am_cv_lib_iconv=no
13025     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13026 /* end confdefs.h.  */
13027 #include <stdlib.h>
13028 #include <iconv.h>
13029 int
13030 main ()
13031 {
13032 iconv_t cd = iconv_open("","");
13033        iconv(cd,NULL,NULL,NULL,NULL);
13034        iconv_close(cd);
13035   ;
13036   return 0;
13037 }
13038 _ACEOF
13039 if ac_fn_c_try_link "$LINENO"; then :
13040   am_cv_func_iconv=yes
13041 fi
13042 rm -f core conftest.err conftest.$ac_objext \
13043     conftest$ac_exeext conftest.$ac_ext
13044     if test "$am_cv_func_iconv" != yes; then
13045       am_save_LIBS="$LIBS"
13046       LIBS="$LIBS $LIBICONV"
13047       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13048 /* end confdefs.h.  */
13049 #include <stdlib.h>
13050 #include <iconv.h>
13051 int
13052 main ()
13053 {
13054 iconv_t cd = iconv_open("","");
13055          iconv(cd,NULL,NULL,NULL,NULL);
13056          iconv_close(cd);
13057   ;
13058   return 0;
13059 }
13060 _ACEOF
13061 if ac_fn_c_try_link "$LINENO"; then :
13062   am_cv_lib_iconv=yes
13063         am_cv_func_iconv=yes
13064 fi
13065 rm -f core conftest.err conftest.$ac_objext \
13066     conftest$ac_exeext conftest.$ac_ext
13067       LIBS="$am_save_LIBS"
13068     fi
13069
13070 fi
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
13072 $as_echo "$am_cv_func_iconv" >&6; }
13073   if test "$am_cv_func_iconv" = yes; then
13074     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
13075 $as_echo_n "checking for working iconv... " >&6; }
13076 if ${am_cv_func_iconv_works+:} false; then :
13077   $as_echo_n "(cached) " >&6
13078 else
13079
13080             am_save_LIBS="$LIBS"
13081       if test $am_cv_lib_iconv = yes; then
13082         LIBS="$LIBS $LIBICONV"
13083       fi
13084       if test "$cross_compiling" = yes; then :
13085   case "$host_os" in
13086            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
13087            *)            am_cv_func_iconv_works="guessing yes" ;;
13088          esac
13089 else
13090   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13091 /* end confdefs.h.  */
13092
13093 #include <iconv.h>
13094 #include <string.h>
13095 int main ()
13096 {
13097   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
13098      returns.  */
13099   {
13100     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
13101     if (cd_utf8_to_88591 != (iconv_t)(-1))
13102       {
13103         static const char input[] = "\342\202\254"; /* EURO SIGN */
13104         char buf[10];
13105         const char *inptr = input;
13106         size_t inbytesleft = strlen (input);
13107         char *outptr = buf;
13108         size_t outbytesleft = sizeof (buf);
13109         size_t res = iconv (cd_utf8_to_88591,
13110                             (char **) &inptr, &inbytesleft,
13111                             &outptr, &outbytesleft);
13112         if (res == 0)
13113           return 1;
13114       }
13115   }
13116   /* Test against Solaris 10 bug: Failures are not distinguishable from
13117      successful returns.  */
13118   {
13119     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
13120     if (cd_ascii_to_88591 != (iconv_t)(-1))
13121       {
13122         static const char input[] = "\263";
13123         char buf[10];
13124         const char *inptr = input;
13125         size_t inbytesleft = strlen (input);
13126         char *outptr = buf;
13127         size_t outbytesleft = sizeof (buf);
13128         size_t res = iconv (cd_ascii_to_88591,
13129                             (char **) &inptr, &inbytesleft,
13130                             &outptr, &outbytesleft);
13131         if (res == 0)
13132           return 1;
13133       }
13134   }
13135 #if 0 /* This bug could be worked around by the caller.  */
13136   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
13137   {
13138     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
13139     if (cd_88591_to_utf8 != (iconv_t)(-1))
13140       {
13141         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
13142         char buf[50];
13143         const char *inptr = input;
13144         size_t inbytesleft = strlen (input);
13145         char *outptr = buf;
13146         size_t outbytesleft = sizeof (buf);
13147         size_t res = iconv (cd_88591_to_utf8,
13148                             (char **) &inptr, &inbytesleft,
13149                             &outptr, &outbytesleft);
13150         if ((int)res > 0)
13151           return 1;
13152       }
13153   }
13154 #endif
13155   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
13156      provided.  */
13157   if (/* Try standardized names.  */
13158       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
13159       /* Try IRIX, OSF/1 names.  */
13160       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
13161       /* Try AIX names.  */
13162       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
13163       /* Try HP-UX names.  */
13164       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
13165     return 1;
13166   return 0;
13167 }
13168 _ACEOF
13169 if ac_fn_c_try_run "$LINENO"; then :
13170   am_cv_func_iconv_works=yes
13171 else
13172   am_cv_func_iconv_works=no
13173 fi
13174 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13175   conftest.$ac_objext conftest.beam conftest.$ac_ext
13176 fi
13177
13178       LIBS="$am_save_LIBS"
13179
13180 fi
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
13182 $as_echo "$am_cv_func_iconv_works" >&6; }
13183     case "$am_cv_func_iconv_works" in
13184       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
13185       *)   am_func_iconv=yes ;;
13186     esac
13187   else
13188     am_func_iconv=no am_cv_lib_iconv=no
13189   fi
13190   if test "$am_func_iconv" = yes; then
13191
13192 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
13193
13194   fi
13195   if test "$am_cv_lib_iconv" = yes; then
13196     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
13197 $as_echo_n "checking how to link with libiconv... " >&6; }
13198     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
13199 $as_echo "$LIBICONV" >&6; }
13200   else
13201             CPPFLAGS="$am_save_CPPFLAGS"
13202     LIBICONV=
13203     LTLIBICONV=
13204   fi
13205
13206
13207
13208   if test "$am_cv_func_iconv" = yes; then
13209     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
13210 $as_echo_n "checking for iconv declaration... " >&6; }
13211     if ${am_cv_proto_iconv+:} false; then :
13212   $as_echo_n "(cached) " >&6
13213 else
13214
13215       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13216 /* end confdefs.h.  */
13217
13218 #include <stdlib.h>
13219 #include <iconv.h>
13220 extern
13221 #ifdef __cplusplus
13222 "C"
13223 #endif
13224 #if defined(__STDC__) || defined(__cplusplus)
13225 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
13226 #else
13227 size_t iconv();
13228 #endif
13229
13230 int
13231 main ()
13232 {
13233
13234   ;
13235   return 0;
13236 }
13237 _ACEOF
13238 if ac_fn_c_try_compile "$LINENO"; then :
13239   am_cv_proto_iconv_arg1=""
13240 else
13241   am_cv_proto_iconv_arg1="const"
13242 fi
13243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13244       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);"
13245 fi
13246
13247     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
13248     { $as_echo "$as_me:${as_lineno-$LINENO}: result:
13249          $am_cv_proto_iconv" >&5
13250 $as_echo "
13251          $am_cv_proto_iconv" >&6; }
13252
13253 cat >>confdefs.h <<_ACEOF
13254 #define ICONV_CONST $am_cv_proto_iconv_arg1
13255 _ACEOF
13256
13257   fi
13258
13259 if test "x$am_cv_func_iconv" != "xyes"; then
13260         as_fn_error $? "Cannot find the iconv() function.
13261         iconv() is used to convert between UTF-8 and UTF-16 encodings of WIM
13262         filenames and XML data.  Wimlib cannot be compiled without it.  iconv()
13263         is available in the latest version of glibc and sometimes in other
13264         libraries." "$LINENO" 5
13265 fi
13266
13267 LIBXML2_LDADD=`pkg-config libxml-2.0 --libs`
13268 LIBXML2_CFLAGS=`pkg-config libxml-2.0 --cflags`
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseFile in -lxml2" >&5
13270 $as_echo_n "checking for xmlParseFile in -lxml2... " >&6; }
13271 if ${ac_cv_lib_xml2_xmlParseFile+:} false; then :
13272   $as_echo_n "(cached) " >&6
13273 else
13274   ac_check_lib_save_LIBS=$LIBS
13275 LIBS="-lxml2  $LIBS"
13276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13277 /* end confdefs.h.  */
13278
13279 /* Override any GCC internal prototype to avoid an error.
13280    Use char because int might match the return type of a GCC
13281    builtin and then its argument prototype would still apply.  */
13282 #ifdef __cplusplus
13283 extern "C"
13284 #endif
13285 char xmlParseFile ();
13286 int
13287 main ()
13288 {
13289 return xmlParseFile ();
13290   ;
13291   return 0;
13292 }
13293 _ACEOF
13294 if ac_fn_c_try_link "$LINENO"; then :
13295   ac_cv_lib_xml2_xmlParseFile=yes
13296 else
13297   ac_cv_lib_xml2_xmlParseFile=no
13298 fi
13299 rm -f core conftest.err conftest.$ac_objext \
13300     conftest$ac_exeext conftest.$ac_ext
13301 LIBS=$ac_check_lib_save_LIBS
13302 fi
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseFile" >&5
13304 $as_echo "$ac_cv_lib_xml2_xmlParseFile" >&6; }
13305 if test "x$ac_cv_lib_xml2_xmlParseFile" = xyes; then :
13306   have_libxml=true
13307 else
13308   as_fn_error $? "\"cannot find libxml2\"" "$LINENO" 5
13309 fi
13310
13311 LIBXML2_LDADD=$LIBXML2_LDADD
13312
13313 LIBXML2_CFLAGS=$LIBXML2_CFLAGS
13314
13315
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include debugging messages" >&5
13317 $as_echo_n "checking whether to include debugging messages... " >&6; }
13318 # Check whether --enable-debug was given.
13319 if test "${enable_debug+set}" = set; then :
13320   enableval=$enable_debug; ENABLE_DEBUG=$enableval
13321 else
13322   ENABLE_DEBUG=no
13323
13324 fi
13325
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_DEBUG" >&5
13327 $as_echo "$ENABLE_DEBUG" >&6; }
13328 if test "x$ENABLE_DEBUG" = "xyes"; then
13329
13330 $as_echo "#define ENABLE_DEBUG 1" >>confdefs.h
13331
13332 fi
13333
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include more debugging messages" >&5
13335 $as_echo_n "checking whether to include more debugging messages... " >&6; }
13336 # Check whether --enable-more_debug was given.
13337 if test "${enable_more_debug+set}" = set; then :
13338   enableval=$enable_more_debug; ENABLE_MORE_DEBUG=$enableval
13339 else
13340   ENABLE_MORE_DEBUG=no
13341
13342 fi
13343
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_MORE_DEBUG" >&5
13345 $as_echo "$ENABLE_MORE_DEBUG" >&6; }
13346 if test "x$ENABLE_MORE_DEBUG" = "xyes"; then
13347
13348 $as_echo "#define ENABLE_MORE_DEBUG 1" >>confdefs.h
13349
13350 fi
13351
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include error messages" >&5
13353 $as_echo_n "checking whether to include error messages... " >&6; }
13354 # Check whether --enable-error_messages was given.
13355 if test "${enable_error_messages+set}" = set; then :
13356   enableval=$enable_error_messages; ENABLE_ERROR_MESSAGES=$enableval
13357 else
13358   ENABLE_ERROR_MESSAGES=yes
13359
13360 fi
13361
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_ERROR_MESSAGES" >&5
13363 $as_echo "$ENABLE_ERROR_MESSAGES" >&6; }
13364 if test "x$ENABLE_ERROR_MESSAGES" = "xyes"; then
13365
13366 $as_echo "#define ENABLE_ERROR_MESSAGES 1" >>confdefs.h
13367
13368 fi
13369
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support custom memory allocation functions" >&5
13371 $as_echo_n "checking whether to support custom memory allocation functions... " >&6; }
13372 # Check whether --enable-custom_memory_allocator was given.
13373 if test "${enable_custom_memory_allocator+set}" = set; then :
13374   enableval=$enable_custom_memory_allocator; ENABLE_CUSTOM_MEMORY_ALLOCATOR=$enableval
13375 else
13376   ENABLE_CUSTOM_MEMORY_ALLOCATOR=yes
13377
13378 fi
13379
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_CUSTOM_MEMORY_ALLOCATOR" >&5
13381 $as_echo "$ENABLE_CUSTOM_MEMORY_ALLOCATOR" >&6; }
13382 if test "x$ENABLE_CUSTOM_MEMORY_ALLOCATOR" = "xyes"; then
13383
13384 $as_echo "#define ENABLE_CUSTOM_MEMORY_ALLOCATOR 1" >>confdefs.h
13385
13386 fi
13387
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include assertions" >&5
13389 $as_echo_n "checking whether to include assertions... " >&6; }
13390 # Check whether --enable-assertions was given.
13391 if test "${enable_assertions+set}" = set; then :
13392   enableval=$enable_assertions; ENABLE_ASSERTIONS=$enableval
13393 else
13394   ENABLE_ASSERTIONS=yes
13395
13396 fi
13397
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_ASSERTIONS" >&5
13399 $as_echo "$ENABLE_ASSERTIONS" >&6; }
13400 if test "x$ENABLE_ASSERTIONS" = "xyes"; then
13401
13402 $as_echo "#define ENABLE_ASSERTIONS 1" >>confdefs.h
13403
13404 fi
13405
13406
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include compression verification" >&5
13408 $as_echo_n "checking whether to include compression verification... " >&6; }
13409 # Check whether --enable-verify_compression was given.
13410 if test "${enable_verify_compression+set}" = set; then :
13411   enableval=$enable_verify_compression; ENABLE_VERIFY_COMPRESSION=$enableval
13412 else
13413   ENABLE_VERIFY_COMPRESSION=yes
13414
13415 fi
13416
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_VERIFY_COMPRESSION" >&5
13418 $as_echo "$ENABLE_VERIFY_COMPRESSION" >&6; }
13419 if test "x$ENABLE_VERIFY_COMPRESSION" = "xyes"; then
13420
13421 $as_echo "#define ENABLE_VERIFY_COMPRESSION 1" >>confdefs.h
13422
13423 fi
13424
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for mounting WIMs" >&5
13426 $as_echo_n "checking whether to include support for mounting WIMs... " >&6; }
13427
13428 # Check whether --with-fuse was given.
13429 if test "${with_fuse+set}" = set; then :
13430   withval=$with_fuse; WITH_FUSE=$withval
13431 else
13432   WITH_FUSE=yes
13433
13434 fi
13435
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_FUSE" >&5
13437 $as_echo "$WITH_FUSE" >&6; }
13438 if test "x$WITH_FUSE" = "xyes"; then
13439
13440 $as_echo "#define WITH_FUSE 1" >>confdefs.h
13441
13442
13443         LIBFUSE_LDADD=`pkg-config --libs fuse`
13444         LIBFUSE_CFLAGS=`pkg-config --cflags fuse`
13445
13446         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main_real in -lfuse" >&5
13447 $as_echo_n "checking for fuse_main_real in -lfuse... " >&6; }
13448 if ${ac_cv_lib_fuse_fuse_main_real+:} false; then :
13449   $as_echo_n "(cached) " >&6
13450 else
13451   ac_check_lib_save_LIBS=$LIBS
13452 LIBS="-lfuse  $LIBS"
13453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13454 /* end confdefs.h.  */
13455
13456 /* Override any GCC internal prototype to avoid an error.
13457    Use char because int might match the return type of a GCC
13458    builtin and then its argument prototype would still apply.  */
13459 #ifdef __cplusplus
13460 extern "C"
13461 #endif
13462 char fuse_main_real ();
13463 int
13464 main ()
13465 {
13466 return fuse_main_real ();
13467   ;
13468   return 0;
13469 }
13470 _ACEOF
13471 if ac_fn_c_try_link "$LINENO"; then :
13472   ac_cv_lib_fuse_fuse_main_real=yes
13473 else
13474   ac_cv_lib_fuse_fuse_main_real=no
13475 fi
13476 rm -f core conftest.err conftest.$ac_objext \
13477     conftest$ac_exeext conftest.$ac_ext
13478 LIBS=$ac_check_lib_save_LIBS
13479 fi
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main_real" >&5
13481 $as_echo "$ac_cv_lib_fuse_fuse_main_real" >&6; }
13482 if test "x$ac_cv_lib_fuse_fuse_main_real" = xyes; then :
13483   have_fuse=true
13484 else
13485   as_fn_error $? "Cannot find libfuse.
13486         Without libfuse, WIMLIB cannot include support for mounting WIMs.  You
13487         should either install libfuse, or configure with --without-fuse to
13488         disable support for mounting WIMs." "$LINENO" 5
13489
13490 fi
13491
13492         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mq_open in -lrt" >&5
13493 $as_echo_n "checking for mq_open in -lrt... " >&6; }
13494 if ${ac_cv_lib_rt_mq_open+:} false; then :
13495   $as_echo_n "(cached) " >&6
13496 else
13497   ac_check_lib_save_LIBS=$LIBS
13498 LIBS="-lrt  $LIBS"
13499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13500 /* end confdefs.h.  */
13501
13502 /* Override any GCC internal prototype to avoid an error.
13503    Use char because int might match the return type of a GCC
13504    builtin and then its argument prototype would still apply.  */
13505 #ifdef __cplusplus
13506 extern "C"
13507 #endif
13508 char mq_open ();
13509 int
13510 main ()
13511 {
13512 return mq_open ();
13513   ;
13514   return 0;
13515 }
13516 _ACEOF
13517 if ac_fn_c_try_link "$LINENO"; then :
13518   ac_cv_lib_rt_mq_open=yes
13519 else
13520   ac_cv_lib_rt_mq_open=no
13521 fi
13522 rm -f core conftest.err conftest.$ac_objext \
13523     conftest$ac_exeext conftest.$ac_ext
13524 LIBS=$ac_check_lib_save_LIBS
13525 fi
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_mq_open" >&5
13527 $as_echo "$ac_cv_lib_rt_mq_open" >&6; }
13528 if test "x$ac_cv_lib_rt_mq_open" = xyes; then :
13529   have_posix_mq=true
13530 else
13531   as_fn_error $? "Cannot find librt for POSIX message queue
13532         functions.  Without these functions, WIMLIB cannot include support for
13533         mounting WIMs.  You should either update your C library to a recent
13534         version of glibc, or configure with --without-fuse to disable support
13535         for mounting WIMs." "$LINENO" 5
13536
13537 fi
13538
13539 else
13540         LIBFUSE_LDADD=
13541         LIBFUSE_CFLAGS=
13542 fi
13543 LIBFUSE_LDADD=$LIBFUSE_LDADD
13544
13545 LIBFUSE_CFLAGS=$LIBFUSE_CFLAGS
13546
13547
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use SSSE3-accelerated SHA1 " >&5
13549 $as_echo_n "checking whether to use SSSE3-accelerated SHA1 ... " >&6; }
13550 # Check whether --enable-ssse3-sha1 was given.
13551 if test "${enable_ssse3_sha1+set}" = set; then :
13552   enableval=$enable_ssse3_sha1; ENABLE_SSSE3_SHA1=$enableval
13553 else
13554   ENABLE_SSSE3_SHA1=no
13555
13556 fi
13557
13558
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_SSSE3_SHA1" >&5
13560 $as_echo "$ENABLE_SSSE3_SHA1" >&6; }
13561 if test "x$ENABLE_SSSE3_SHA1" = "xyes"; then
13562
13563 $as_echo "#define ENABLE_SSSE3_SHA1 1" >>confdefs.h
13564
13565         SSSE3_SHA1_OBJ=sha1-ssse3.lo
13566
13567 for ac_prog in nasm nasmw
13568 do
13569   # Extract the first word of "$ac_prog", so it can be a program name with args.
13570 set dummy $ac_prog; ac_word=$2
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13572 $as_echo_n "checking for $ac_word... " >&6; }
13573 if ${ac_cv_prog_nasm+:} false; then :
13574   $as_echo_n "(cached) " >&6
13575 else
13576   if test -n "$nasm"; then
13577   ac_cv_prog_nasm="$nasm" # Let the user override the test.
13578 else
13579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13580 for as_dir in $PATH
13581 do
13582   IFS=$as_save_IFS
13583   test -z "$as_dir" && as_dir=.
13584     for ac_exec_ext in '' $ac_executable_extensions; do
13585   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13586     ac_cv_prog_nasm="$ac_prog"
13587     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13588     break 2
13589   fi
13590 done
13591   done
13592 IFS=$as_save_IFS
13593
13594 fi
13595 fi
13596 nasm=$ac_cv_prog_nasm
13597 if test -n "$nasm"; then
13598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nasm" >&5
13599 $as_echo "$nasm" >&6; }
13600 else
13601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13602 $as_echo "no" >&6; }
13603 fi
13604
13605
13606   test -n "$nasm" && break
13607 done
13608 test -n "$nasm" || nasm="no"
13609
13610 if test "x$nasm" = "xno" ;
13611 then
13612         as_fn_error $? "NASM assembler not found" "$LINENO" 5
13613 fi
13614
13615         NASM=$nasm
13616
13617 else
13618         SSSE3_SHA1_OBJ=
13619 fi
13620 SSSE3_SHA1_OBJ=$SSSE3_SHA1_OBJ
13621
13622
13623 if test "x$ENABLE_SSSE3_SHA1" = "xyes"; then
13624         WITH_LIBCRYPTO=no
13625 else
13626
13627 # Check whether --with-libcrypto was given.
13628 if test "${with_libcrypto+set}" = set; then :
13629   withval=$with_libcrypto; WITH_LIBCRYPTO=$withval
13630 else
13631   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1 in -lcrypto" >&5
13632 $as_echo_n "checking for SHA1 in -lcrypto... " >&6; }
13633 if ${ac_cv_lib_crypto_SHA1+:} false; then :
13634   $as_echo_n "(cached) " >&6
13635 else
13636   ac_check_lib_save_LIBS=$LIBS
13637 LIBS="-lcrypto  $LIBS"
13638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13639 /* end confdefs.h.  */
13640
13641 /* Override any GCC internal prototype to avoid an error.
13642    Use char because int might match the return type of a GCC
13643    builtin and then its argument prototype would still apply.  */
13644 #ifdef __cplusplus
13645 extern "C"
13646 #endif
13647 char SHA1 ();
13648 int
13649 main ()
13650 {
13651 return SHA1 ();
13652   ;
13653   return 0;
13654 }
13655 _ACEOF
13656 if ac_fn_c_try_link "$LINENO"; then :
13657   ac_cv_lib_crypto_SHA1=yes
13658 else
13659   ac_cv_lib_crypto_SHA1=no
13660 fi
13661 rm -f core conftest.err conftest.$ac_objext \
13662     conftest$ac_exeext conftest.$ac_ext
13663 LIBS=$ac_check_lib_save_LIBS
13664 fi
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SHA1" >&5
13666 $as_echo "$ac_cv_lib_crypto_SHA1" >&6; }
13667 if test "x$ac_cv_lib_crypto_SHA1" = xyes; then :
13668   WITH_LIBCRYPTO=yes
13669 else
13670   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libcrypto: using stand-alone SHA1 code instead of OpenSSL" >&5
13671 $as_echo "$as_me: WARNING: Cannot find libcrypto: using stand-alone SHA1 code instead of OpenSSL" >&2;}
13672                      WITH_LIBCRYPTO=no
13673
13674 fi
13675
13676 fi
13677
13678 fi
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use SHA1 function from system libcrypto" >&5
13680 $as_echo_n "checking whether to use SHA1 function from system libcrypto... " >&6; }
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_LIBCRYPTO" >&5
13682 $as_echo "$WITH_LIBCRYPTO" >&6; }
13683
13684 if test "x$WITH_LIBCRYPTO" = "xyes" -a "x$ENABLE_SSSE3_SHA1" = "xno"; then
13685
13686 $as_echo "#define WITH_LIBCRYPTO 1" >>confdefs.h
13687
13688         LIBCRYPTO_LDADD=`pkg-config --libs libcrypto`
13689         LIBCRYPTO_CFLAGS=`pkg-config --cflags libcrypto`
13690 else
13691         LIBCRYPTO_LDADD=
13692         LIBCRYPTO_CFLAGS=
13693 fi
13694 LIBCRYPTO_LDADD=$LIBCRYPTO_LDADD
13695
13696 LIBCRYPTO_CFLAGS=$LIBCRYPTO_CFLAGS
13697
13698 SHA1_SOURCES=$SHA1_SOURCES
13699
13700
13701 cat >confcache <<\_ACEOF
13702 # This file is a shell script that caches the results of configure
13703 # tests run on this system so they can be shared between configure
13704 # scripts and configure runs, see configure's option --config-cache.
13705 # It is not useful on other systems.  If it contains results you don't
13706 # want to keep, you may remove or edit it.
13707 #
13708 # config.status only pays attention to the cache file if you give it
13709 # the --recheck option to rerun configure.
13710 #
13711 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13712 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13713 # following values.
13714
13715 _ACEOF
13716
13717 # The following way of writing the cache mishandles newlines in values,
13718 # but we know of no workaround that is simple, portable, and efficient.
13719 # So, we kill variables containing newlines.
13720 # Ultrix sh set writes to stderr and can't be redirected directly,
13721 # and sets the high bit in the cache file unless we assign to the vars.
13722 (
13723   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13724     eval ac_val=\$$ac_var
13725     case $ac_val in #(
13726     *${as_nl}*)
13727       case $ac_var in #(
13728       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13729 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13730       esac
13731       case $ac_var in #(
13732       _ | IFS | as_nl) ;; #(
13733       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13734       *) { eval $ac_var=; unset $ac_var;} ;;
13735       esac ;;
13736     esac
13737   done
13738
13739   (set) 2>&1 |
13740     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13741     *${as_nl}ac_space=\ *)
13742       # `set' does not quote correctly, so add quotes: double-quote
13743       # substitution turns \\\\ into \\, and sed turns \\ into \.
13744       sed -n \
13745         "s/'/'\\\\''/g;
13746           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13747       ;; #(
13748     *)
13749       # `set' quotes correctly as required by POSIX, so do not add quotes.
13750       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13751       ;;
13752     esac |
13753     sort
13754 ) |
13755   sed '
13756      /^ac_cv_env_/b end
13757      t clear
13758      :clear
13759      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13760      t end
13761      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13762      :end' >>confcache
13763 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13764   if test -w "$cache_file"; then
13765     if test "x$cache_file" != "x/dev/null"; then
13766       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13767 $as_echo "$as_me: updating cache $cache_file" >&6;}
13768       if test ! -f "$cache_file" || test -h "$cache_file"; then
13769         cat confcache >"$cache_file"
13770       else
13771         case $cache_file in #(
13772         */* | ?:*)
13773           mv -f confcache "$cache_file"$$ &&
13774           mv -f "$cache_file"$$ "$cache_file" ;; #(
13775         *)
13776           mv -f confcache "$cache_file" ;;
13777         esac
13778       fi
13779     fi
13780   else
13781     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13782 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13783   fi
13784 fi
13785 rm -f confcache
13786
13787 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13788 # Let make expand exec_prefix.
13789 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13790
13791 DEFS=-DHAVE_CONFIG_H
13792
13793 ac_libobjs=
13794 ac_ltlibobjs=
13795 U=
13796 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13797   # 1. Remove the extension, and $U if already installed.
13798   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13799   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13800   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13801   #    will be set to the directory where LIBOBJS objects are built.
13802   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13803   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13804 done
13805 LIBOBJS=$ac_libobjs
13806
13807 LTLIBOBJS=$ac_ltlibobjs
13808
13809
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13811 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13812    if test -n "$am_sleep_pid"; then
13813      # Hide warnings about reused PIDs.
13814      wait $am_sleep_pid 2>/dev/null
13815    fi
13816    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13817 $as_echo "done" >&6; }
13818  if test -n "$EXEEXT"; then
13819   am__EXEEXT_TRUE=
13820   am__EXEEXT_FALSE='#'
13821 else
13822   am__EXEEXT_TRUE='#'
13823   am__EXEEXT_FALSE=
13824 fi
13825
13826 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13827   as_fn_error $? "conditional \"AMDEP\" was never defined.
13828 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13829 fi
13830 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13831   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13832 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13833 fi
13834
13835 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13836   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13837 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13838 fi
13839
13840 : "${CONFIG_STATUS=./config.status}"
13841 ac_write_fail=0
13842 ac_clean_files_save=$ac_clean_files
13843 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13845 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13846 as_write_fail=0
13847 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13848 #! $SHELL
13849 # Generated by $as_me.
13850 # Run this file to recreate the current configuration.
13851 # Compiler output produced by configure, useful for debugging
13852 # configure, is in config.log if it exists.
13853
13854 debug=false
13855 ac_cs_recheck=false
13856 ac_cs_silent=false
13857
13858 SHELL=\${CONFIG_SHELL-$SHELL}
13859 export SHELL
13860 _ASEOF
13861 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13862 ## -------------------- ##
13863 ## M4sh Initialization. ##
13864 ## -------------------- ##
13865
13866 # Be more Bourne compatible
13867 DUALCASE=1; export DUALCASE # for MKS sh
13868 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13869   emulate sh
13870   NULLCMD=:
13871   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13872   # is contrary to our usage.  Disable this feature.
13873   alias -g '${1+"$@"}'='"$@"'
13874   setopt NO_GLOB_SUBST
13875 else
13876   case `(set -o) 2>/dev/null` in #(
13877   *posix*) :
13878     set -o posix ;; #(
13879   *) :
13880      ;;
13881 esac
13882 fi
13883
13884
13885 as_nl='
13886 '
13887 export as_nl
13888 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13889 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13890 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13891 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13892 # Prefer a ksh shell builtin over an external printf program on Solaris,
13893 # but without wasting forks for bash or zsh.
13894 if test -z "$BASH_VERSION$ZSH_VERSION" \
13895     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13896   as_echo='print -r --'
13897   as_echo_n='print -rn --'
13898 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13899   as_echo='printf %s\n'
13900   as_echo_n='printf %s'
13901 else
13902   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13903     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13904     as_echo_n='/usr/ucb/echo -n'
13905   else
13906     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13907     as_echo_n_body='eval
13908       arg=$1;
13909       case $arg in #(
13910       *"$as_nl"*)
13911         expr "X$arg" : "X\\(.*\\)$as_nl";
13912         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13913       esac;
13914       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13915     '
13916     export as_echo_n_body
13917     as_echo_n='sh -c $as_echo_n_body as_echo'
13918   fi
13919   export as_echo_body
13920   as_echo='sh -c $as_echo_body as_echo'
13921 fi
13922
13923 # The user is always right.
13924 if test "${PATH_SEPARATOR+set}" != set; then
13925   PATH_SEPARATOR=:
13926   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13927     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13928       PATH_SEPARATOR=';'
13929   }
13930 fi
13931
13932
13933 # IFS
13934 # We need space, tab and new line, in precisely that order.  Quoting is
13935 # there to prevent editors from complaining about space-tab.
13936 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13937 # splitting by setting IFS to empty value.)
13938 IFS=" ""        $as_nl"
13939
13940 # Find who we are.  Look in the path if we contain no directory separator.
13941 as_myself=
13942 case $0 in #((
13943   *[\\/]* ) as_myself=$0 ;;
13944   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13945 for as_dir in $PATH
13946 do
13947   IFS=$as_save_IFS
13948   test -z "$as_dir" && as_dir=.
13949     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13950   done
13951 IFS=$as_save_IFS
13952
13953      ;;
13954 esac
13955 # We did not find ourselves, most probably we were run as `sh COMMAND'
13956 # in which case we are not to be found in the path.
13957 if test "x$as_myself" = x; then
13958   as_myself=$0
13959 fi
13960 if test ! -f "$as_myself"; then
13961   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13962   exit 1
13963 fi
13964
13965 # Unset variables that we do not need and which cause bugs (e.g. in
13966 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13967 # suppresses any "Segmentation fault" message there.  '((' could
13968 # trigger a bug in pdksh 5.2.14.
13969 for as_var in BASH_ENV ENV MAIL MAILPATH
13970 do eval test x\${$as_var+set} = xset \
13971   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13972 done
13973 PS1='$ '
13974 PS2='> '
13975 PS4='+ '
13976
13977 # NLS nuisances.
13978 LC_ALL=C
13979 export LC_ALL
13980 LANGUAGE=C
13981 export LANGUAGE
13982
13983 # CDPATH.
13984 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13985
13986
13987 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13988 # ----------------------------------------
13989 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13990 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13991 # script with STATUS, using 1 if that was 0.
13992 as_fn_error ()
13993 {
13994   as_status=$1; test $as_status -eq 0 && as_status=1
13995   if test "$4"; then
13996     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13997     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13998   fi
13999   $as_echo "$as_me: error: $2" >&2
14000   as_fn_exit $as_status
14001 } # as_fn_error
14002
14003
14004 # as_fn_set_status STATUS
14005 # -----------------------
14006 # Set $? to STATUS, without forking.
14007 as_fn_set_status ()
14008 {
14009   return $1
14010 } # as_fn_set_status
14011
14012 # as_fn_exit STATUS
14013 # -----------------
14014 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14015 as_fn_exit ()
14016 {
14017   set +e
14018   as_fn_set_status $1
14019   exit $1
14020 } # as_fn_exit
14021
14022 # as_fn_unset VAR
14023 # ---------------
14024 # Portably unset VAR.
14025 as_fn_unset ()
14026 {
14027   { eval $1=; unset $1;}
14028 }
14029 as_unset=as_fn_unset
14030 # as_fn_append VAR VALUE
14031 # ----------------------
14032 # Append the text in VALUE to the end of the definition contained in VAR. Take
14033 # advantage of any shell optimizations that allow amortized linear growth over
14034 # repeated appends, instead of the typical quadratic growth present in naive
14035 # implementations.
14036 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14037   eval 'as_fn_append ()
14038   {
14039     eval $1+=\$2
14040   }'
14041 else
14042   as_fn_append ()
14043   {
14044     eval $1=\$$1\$2
14045   }
14046 fi # as_fn_append
14047
14048 # as_fn_arith ARG...
14049 # ------------------
14050 # Perform arithmetic evaluation on the ARGs, and store the result in the
14051 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14052 # must be portable across $(()) and expr.
14053 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14054   eval 'as_fn_arith ()
14055   {
14056     as_val=$(( $* ))
14057   }'
14058 else
14059   as_fn_arith ()
14060   {
14061     as_val=`expr "$@" || test $? -eq 1`
14062   }
14063 fi # as_fn_arith
14064
14065
14066 if expr a : '\(a\)' >/dev/null 2>&1 &&
14067    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14068   as_expr=expr
14069 else
14070   as_expr=false
14071 fi
14072
14073 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14074   as_basename=basename
14075 else
14076   as_basename=false
14077 fi
14078
14079 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14080   as_dirname=dirname
14081 else
14082   as_dirname=false
14083 fi
14084
14085 as_me=`$as_basename -- "$0" ||
14086 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14087          X"$0" : 'X\(//\)$' \| \
14088          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14089 $as_echo X/"$0" |
14090     sed '/^.*\/\([^/][^/]*\)\/*$/{
14091             s//\1/
14092             q
14093           }
14094           /^X\/\(\/\/\)$/{
14095             s//\1/
14096             q
14097           }
14098           /^X\/\(\/\).*/{
14099             s//\1/
14100             q
14101           }
14102           s/.*/./; q'`
14103
14104 # Avoid depending upon Character Ranges.
14105 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14106 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14107 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14108 as_cr_digits='0123456789'
14109 as_cr_alnum=$as_cr_Letters$as_cr_digits
14110
14111 ECHO_C= ECHO_N= ECHO_T=
14112 case `echo -n x` in #(((((
14113 -n*)
14114   case `echo 'xy\c'` in
14115   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14116   xy)  ECHO_C='\c';;
14117   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14118        ECHO_T=' ';;
14119   esac;;
14120 *)
14121   ECHO_N='-n';;
14122 esac
14123
14124 rm -f conf$$ conf$$.exe conf$$.file
14125 if test -d conf$$.dir; then
14126   rm -f conf$$.dir/conf$$.file
14127 else
14128   rm -f conf$$.dir
14129   mkdir conf$$.dir 2>/dev/null
14130 fi
14131 if (echo >conf$$.file) 2>/dev/null; then
14132   if ln -s conf$$.file conf$$ 2>/dev/null; then
14133     as_ln_s='ln -s'
14134     # ... but there are two gotchas:
14135     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14136     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14137     # In both cases, we have to default to `cp -pR'.
14138     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14139       as_ln_s='cp -pR'
14140   elif ln conf$$.file conf$$ 2>/dev/null; then
14141     as_ln_s=ln
14142   else
14143     as_ln_s='cp -pR'
14144   fi
14145 else
14146   as_ln_s='cp -pR'
14147 fi
14148 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14149 rmdir conf$$.dir 2>/dev/null
14150
14151
14152 # as_fn_mkdir_p
14153 # -------------
14154 # Create "$as_dir" as a directory, including parents if necessary.
14155 as_fn_mkdir_p ()
14156 {
14157
14158   case $as_dir in #(
14159   -*) as_dir=./$as_dir;;
14160   esac
14161   test -d "$as_dir" || eval $as_mkdir_p || {
14162     as_dirs=
14163     while :; do
14164       case $as_dir in #(
14165       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14166       *) as_qdir=$as_dir;;
14167       esac
14168       as_dirs="'$as_qdir' $as_dirs"
14169       as_dir=`$as_dirname -- "$as_dir" ||
14170 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14171          X"$as_dir" : 'X\(//\)[^/]' \| \
14172          X"$as_dir" : 'X\(//\)$' \| \
14173          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14174 $as_echo X"$as_dir" |
14175     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14176             s//\1/
14177             q
14178           }
14179           /^X\(\/\/\)[^/].*/{
14180             s//\1/
14181             q
14182           }
14183           /^X\(\/\/\)$/{
14184             s//\1/
14185             q
14186           }
14187           /^X\(\/\).*/{
14188             s//\1/
14189             q
14190           }
14191           s/.*/./; q'`
14192       test -d "$as_dir" && break
14193     done
14194     test -z "$as_dirs" || eval "mkdir $as_dirs"
14195   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14196
14197
14198 } # as_fn_mkdir_p
14199 if mkdir -p . 2>/dev/null; then
14200   as_mkdir_p='mkdir -p "$as_dir"'
14201 else
14202   test -d ./-p && rmdir ./-p
14203   as_mkdir_p=false
14204 fi
14205
14206
14207 # as_fn_executable_p FILE
14208 # -----------------------
14209 # Test if FILE is an executable regular file.
14210 as_fn_executable_p ()
14211 {
14212   test -f "$1" && test -x "$1"
14213 } # as_fn_executable_p
14214 as_test_x='test -x'
14215 as_executable_p=as_fn_executable_p
14216
14217 # Sed expression to map a string onto a valid CPP name.
14218 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14219
14220 # Sed expression to map a string onto a valid variable name.
14221 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14222
14223
14224 exec 6>&1
14225 ## ----------------------------------- ##
14226 ## Main body of $CONFIG_STATUS script. ##
14227 ## ----------------------------------- ##
14228 _ASEOF
14229 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14230
14231 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14232 # Save the log message, to keep $0 and so on meaningful, and to
14233 # report actual input values of CONFIG_FILES etc. instead of their
14234 # values after options handling.
14235 ac_log="
14236 This file was extended by wimlib $as_me 0.6.2, which was
14237 generated by GNU Autoconf 2.69.  Invocation command line was
14238
14239   CONFIG_FILES    = $CONFIG_FILES
14240   CONFIG_HEADERS  = $CONFIG_HEADERS
14241   CONFIG_LINKS    = $CONFIG_LINKS
14242   CONFIG_COMMANDS = $CONFIG_COMMANDS
14243   $ $0 $@
14244
14245 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14246 "
14247
14248 _ACEOF
14249
14250 case $ac_config_files in *"
14251 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14252 esac
14253
14254 case $ac_config_headers in *"
14255 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14256 esac
14257
14258
14259 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14260 # Files that config.status was made for.
14261 config_files="$ac_config_files"
14262 config_headers="$ac_config_headers"
14263 config_commands="$ac_config_commands"
14264
14265 _ACEOF
14266
14267 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14268 ac_cs_usage="\
14269 \`$as_me' instantiates files and other configuration actions
14270 from templates according to the current configuration.  Unless the files
14271 and actions are specified as TAGs, all are instantiated by default.
14272
14273 Usage: $0 [OPTION]... [TAG]...
14274
14275   -h, --help       print this help, then exit
14276   -V, --version    print version number and configuration settings, then exit
14277       --config     print configuration, then exit
14278   -q, --quiet, --silent
14279                    do not print progress messages
14280   -d, --debug      don't remove temporary files
14281       --recheck    update $as_me by reconfiguring in the same conditions
14282       --file=FILE[:TEMPLATE]
14283                    instantiate the configuration file FILE
14284       --header=FILE[:TEMPLATE]
14285                    instantiate the configuration header FILE
14286
14287 Configuration files:
14288 $config_files
14289
14290 Configuration headers:
14291 $config_headers
14292
14293 Configuration commands:
14294 $config_commands
14295
14296 Report bugs to <ebiggers3@gmail.com>."
14297
14298 _ACEOF
14299 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14300 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14301 ac_cs_version="\\
14302 wimlib config.status 0.6.2
14303 configured by $0, generated by GNU Autoconf 2.69,
14304   with options \\"\$ac_cs_config\\"
14305
14306 Copyright (C) 2012 Free Software Foundation, Inc.
14307 This config.status script is free software; the Free Software Foundation
14308 gives unlimited permission to copy, distribute and modify it."
14309
14310 ac_pwd='$ac_pwd'
14311 srcdir='$srcdir'
14312 INSTALL='$INSTALL'
14313 MKDIR_P='$MKDIR_P'
14314 AWK='$AWK'
14315 test -n "\$AWK" || AWK=awk
14316 _ACEOF
14317
14318 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14319 # The default lists apply if the user does not specify any file.
14320 ac_need_defaults=:
14321 while test $# != 0
14322 do
14323   case $1 in
14324   --*=?*)
14325     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14326     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14327     ac_shift=:
14328     ;;
14329   --*=)
14330     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14331     ac_optarg=
14332     ac_shift=:
14333     ;;
14334   *)
14335     ac_option=$1
14336     ac_optarg=$2
14337     ac_shift=shift
14338     ;;
14339   esac
14340
14341   case $ac_option in
14342   # Handling of the options.
14343   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14344     ac_cs_recheck=: ;;
14345   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14346     $as_echo "$ac_cs_version"; exit ;;
14347   --config | --confi | --conf | --con | --co | --c )
14348     $as_echo "$ac_cs_config"; exit ;;
14349   --debug | --debu | --deb | --de | --d | -d )
14350     debug=: ;;
14351   --file | --fil | --fi | --f )
14352     $ac_shift
14353     case $ac_optarg in
14354     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14355     '') as_fn_error $? "missing file argument" ;;
14356     esac
14357     as_fn_append CONFIG_FILES " '$ac_optarg'"
14358     ac_need_defaults=false;;
14359   --header | --heade | --head | --hea )
14360     $ac_shift
14361     case $ac_optarg in
14362     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14363     esac
14364     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14365     ac_need_defaults=false;;
14366   --he | --h)
14367     # Conflict between --help and --header
14368     as_fn_error $? "ambiguous option: \`$1'
14369 Try \`$0 --help' for more information.";;
14370   --help | --hel | -h )
14371     $as_echo "$ac_cs_usage"; exit ;;
14372   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14373   | -silent | --silent | --silen | --sile | --sil | --si | --s)
14374     ac_cs_silent=: ;;
14375
14376   # This is an error.
14377   -*) as_fn_error $? "unrecognized option: \`$1'
14378 Try \`$0 --help' for more information." ;;
14379
14380   *) as_fn_append ac_config_targets " $1"
14381      ac_need_defaults=false ;;
14382
14383   esac
14384   shift
14385 done
14386
14387 ac_configure_extra_args=
14388
14389 if $ac_cs_silent; then
14390   exec 6>/dev/null
14391   ac_configure_extra_args="$ac_configure_extra_args --silent"
14392 fi
14393
14394 _ACEOF
14395 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14396 if \$ac_cs_recheck; then
14397   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14398   shift
14399   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14400   CONFIG_SHELL='$SHELL'
14401   export CONFIG_SHELL
14402   exec "\$@"
14403 fi
14404
14405 _ACEOF
14406 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14407 exec 5>>config.log
14408 {
14409   echo
14410   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14411 ## Running $as_me. ##
14412 _ASBOX
14413   $as_echo "$ac_log"
14414 } >&5
14415
14416 _ACEOF
14417 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14418 #
14419 # INIT-COMMANDS
14420 #
14421 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14422
14423
14424 # The HP-UX ksh and POSIX shell print the target directory to stdout
14425 # if CDPATH is set.
14426 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14427
14428 sed_quote_subst='$sed_quote_subst'
14429 double_quote_subst='$double_quote_subst'
14430 delay_variable_subst='$delay_variable_subst'
14431 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14432 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14433 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14434 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14435 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14436 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14437 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14438 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14439 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14440 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14441 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14442 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14443 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14444 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14445 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14446 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14447 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14448 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14449 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14450 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14451 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14452 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14453 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14454 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14455 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14456 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14457 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14458 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14459 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14460 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14461 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14462 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14463 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14464 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14465 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14466 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14467 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14468 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14469 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14470 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14471 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14472 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14473 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14474 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14475 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14476 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14477 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14478 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14479 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14480 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14481 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14482 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14483 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14484 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14485 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14486 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14487 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"`'
14488 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14489 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14490 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14491 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14492 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14493 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14494 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14495 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14496 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14497 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14498 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14499 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14500 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14501 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14502 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14503 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14504 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14505 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14506 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14507 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14508 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14509 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14510 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14511 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14512 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14513 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14514 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14515 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14516 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14517 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14518 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14519 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14520 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14521 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14522 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14523 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14524 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14525 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14526 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14527 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14528 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14529 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14530 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14531 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14532 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14533 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14534 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14535 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14536 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14537 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14538 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14539 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14540 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14541 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14542 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14543 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14544 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14545 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14546 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14547 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14548 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14549 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14550 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14551 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14552 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14553 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14554 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14555 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14556 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14557 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14558 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14559 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14560 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14561
14562 LTCC='$LTCC'
14563 LTCFLAGS='$LTCFLAGS'
14564 compiler='$compiler_DEFAULT'
14565
14566 # A function that is used when there is no print builtin or printf.
14567 func_fallback_echo ()
14568 {
14569   eval 'cat <<_LTECHO_EOF
14570 \$1
14571 _LTECHO_EOF'
14572 }
14573
14574 # Quote evaled strings.
14575 for var in SHELL \
14576 ECHO \
14577 PATH_SEPARATOR \
14578 SED \
14579 GREP \
14580 EGREP \
14581 FGREP \
14582 LD \
14583 NM \
14584 LN_S \
14585 lt_SP2NL \
14586 lt_NL2SP \
14587 reload_flag \
14588 OBJDUMP \
14589 deplibs_check_method \
14590 file_magic_cmd \
14591 file_magic_glob \
14592 want_nocaseglob \
14593 DLLTOOL \
14594 sharedlib_from_linklib_cmd \
14595 AR \
14596 AR_FLAGS \
14597 archiver_list_spec \
14598 STRIP \
14599 RANLIB \
14600 CC \
14601 CFLAGS \
14602 compiler \
14603 lt_cv_sys_global_symbol_pipe \
14604 lt_cv_sys_global_symbol_to_cdecl \
14605 lt_cv_sys_global_symbol_to_c_name_address \
14606 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14607 nm_file_list_spec \
14608 lt_prog_compiler_no_builtin_flag \
14609 lt_prog_compiler_pic \
14610 lt_prog_compiler_wl \
14611 lt_prog_compiler_static \
14612 lt_cv_prog_compiler_c_o \
14613 need_locks \
14614 MANIFEST_TOOL \
14615 DSYMUTIL \
14616 NMEDIT \
14617 LIPO \
14618 OTOOL \
14619 OTOOL64 \
14620 shrext_cmds \
14621 export_dynamic_flag_spec \
14622 whole_archive_flag_spec \
14623 compiler_needs_object \
14624 with_gnu_ld \
14625 allow_undefined_flag \
14626 no_undefined_flag \
14627 hardcode_libdir_flag_spec \
14628 hardcode_libdir_separator \
14629 exclude_expsyms \
14630 include_expsyms \
14631 file_list_spec \
14632 variables_saved_for_relink \
14633 libname_spec \
14634 library_names_spec \
14635 soname_spec \
14636 install_override_mode \
14637 finish_eval \
14638 old_striplib \
14639 striplib; do
14640     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14641     *[\\\\\\\`\\"\\\$]*)
14642       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14643       ;;
14644     *)
14645       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14646       ;;
14647     esac
14648 done
14649
14650 # Double-quote double-evaled strings.
14651 for var in reload_cmds \
14652 old_postinstall_cmds \
14653 old_postuninstall_cmds \
14654 old_archive_cmds \
14655 extract_expsyms_cmds \
14656 old_archive_from_new_cmds \
14657 old_archive_from_expsyms_cmds \
14658 archive_cmds \
14659 archive_expsym_cmds \
14660 module_cmds \
14661 module_expsym_cmds \
14662 export_symbols_cmds \
14663 prelink_cmds \
14664 postlink_cmds \
14665 postinstall_cmds \
14666 postuninstall_cmds \
14667 finish_cmds \
14668 sys_lib_search_path_spec \
14669 sys_lib_dlsearch_path_spec; do
14670     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14671     *[\\\\\\\`\\"\\\$]*)
14672       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14673       ;;
14674     *)
14675       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14676       ;;
14677     esac
14678 done
14679
14680 ac_aux_dir='$ac_aux_dir'
14681 xsi_shell='$xsi_shell'
14682 lt_shell_append='$lt_shell_append'
14683
14684 # See if we are running on zsh, and set the options which allow our
14685 # commands through without removal of \ escapes INIT.
14686 if test -n "\${ZSH_VERSION+set}" ; then
14687    setopt NO_GLOB_SUBST
14688 fi
14689
14690
14691     PACKAGE='$PACKAGE'
14692     VERSION='$VERSION'
14693     TIMESTAMP='$TIMESTAMP'
14694     RM='$RM'
14695     ofile='$ofile'
14696
14697
14698
14699
14700 _ACEOF
14701
14702 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14703
14704 # Handling of arguments.
14705 for ac_config_target in $ac_config_targets
14706 do
14707   case $ac_config_target in
14708     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14709     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14710     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14711     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14712     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14713     "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
14714     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14715     "programs/Makefile") CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
14716
14717   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14718   esac
14719 done
14720
14721
14722 # If the user did not use the arguments to specify the items to instantiate,
14723 # then the envvar interface is used.  Set only those that are not.
14724 # We use the long form for the default assignment because of an extremely
14725 # bizarre bug on SunOS 4.1.3.
14726 if $ac_need_defaults; then
14727   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14728   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14729   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14730 fi
14731
14732 # Have a temporary directory for convenience.  Make it in the build tree
14733 # simply because there is no reason against having it here, and in addition,
14734 # creating and moving files from /tmp can sometimes cause problems.
14735 # Hook for its removal unless debugging.
14736 # Note that there is a small window in which the directory will not be cleaned:
14737 # after its creation but before its name has been assigned to `$tmp'.
14738 $debug ||
14739 {
14740   tmp= ac_tmp=
14741   trap 'exit_status=$?
14742   : "${ac_tmp:=$tmp}"
14743   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14744 ' 0
14745   trap 'as_fn_exit 1' 1 2 13 15
14746 }
14747 # Create a (secure) tmp directory for tmp files.
14748
14749 {
14750   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14751   test -d "$tmp"
14752 }  ||
14753 {
14754   tmp=./conf$$-$RANDOM
14755   (umask 077 && mkdir "$tmp")
14756 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14757 ac_tmp=$tmp
14758
14759 # Set up the scripts for CONFIG_FILES section.
14760 # No need to generate them if there are no CONFIG_FILES.
14761 # This happens for instance with `./config.status config.h'.
14762 if test -n "$CONFIG_FILES"; then
14763
14764
14765 ac_cr=`echo X | tr X '\015'`
14766 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14767 # But we know of no other shell where ac_cr would be empty at this
14768 # point, so we can use a bashism as a fallback.
14769 if test "x$ac_cr" = x; then
14770   eval ac_cr=\$\'\\r\'
14771 fi
14772 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14773 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14774   ac_cs_awk_cr='\\r'
14775 else
14776   ac_cs_awk_cr=$ac_cr
14777 fi
14778
14779 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14780 _ACEOF
14781
14782
14783 {
14784   echo "cat >conf$$subs.awk <<_ACEOF" &&
14785   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14786   echo "_ACEOF"
14787 } >conf$$subs.sh ||
14788   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14789 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14790 ac_delim='%!_!# '
14791 for ac_last_try in false false false false false :; do
14792   . ./conf$$subs.sh ||
14793     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14794
14795   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14796   if test $ac_delim_n = $ac_delim_num; then
14797     break
14798   elif $ac_last_try; then
14799     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14800   else
14801     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14802   fi
14803 done
14804 rm -f conf$$subs.sh
14805
14806 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14807 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14808 _ACEOF
14809 sed -n '
14810 h
14811 s/^/S["/; s/!.*/"]=/
14812 p
14813 g
14814 s/^[^!]*!//
14815 :repl
14816 t repl
14817 s/'"$ac_delim"'$//
14818 t delim
14819 :nl
14820 h
14821 s/\(.\{148\}\)..*/\1/
14822 t more1
14823 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14824 p
14825 n
14826 b repl
14827 :more1
14828 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14829 p
14830 g
14831 s/.\{148\}//
14832 t nl
14833 :delim
14834 h
14835 s/\(.\{148\}\)..*/\1/
14836 t more2
14837 s/["\\]/\\&/g; s/^/"/; s/$/"/
14838 p
14839 b
14840 :more2
14841 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14842 p
14843 g
14844 s/.\{148\}//
14845 t delim
14846 ' <conf$$subs.awk | sed '
14847 /^[^""]/{
14848   N
14849   s/\n//
14850 }
14851 ' >>$CONFIG_STATUS || ac_write_fail=1
14852 rm -f conf$$subs.awk
14853 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14854 _ACAWK
14855 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14856   for (key in S) S_is_set[key] = 1
14857   FS = "\a"
14858
14859 }
14860 {
14861   line = $ 0
14862   nfields = split(line, field, "@")
14863   substed = 0
14864   len = length(field[1])
14865   for (i = 2; i < nfields; i++) {
14866     key = field[i]
14867     keylen = length(key)
14868     if (S_is_set[key]) {
14869       value = S[key]
14870       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14871       len += length(value) + length(field[++i])
14872       substed = 1
14873     } else
14874       len += 1 + keylen
14875   }
14876
14877   print line
14878 }
14879
14880 _ACAWK
14881 _ACEOF
14882 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14883 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14884   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14885 else
14886   cat
14887 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14888   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14889 _ACEOF
14890
14891 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14892 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14893 # trailing colons and then remove the whole line if VPATH becomes empty
14894 # (actually we leave an empty line to preserve line numbers).
14895 if test "x$srcdir" = x.; then
14896   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
14897 h
14898 s///
14899 s/^/:/
14900 s/[      ]*$/:/
14901 s/:\$(srcdir):/:/g
14902 s/:\${srcdir}:/:/g
14903 s/:@srcdir@:/:/g
14904 s/^:*//
14905 s/:*$//
14906 x
14907 s/\(=[   ]*\).*/\1/
14908 G
14909 s/\n//
14910 s/^[^=]*=[       ]*$//
14911 }'
14912 fi
14913
14914 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14915 fi # test -n "$CONFIG_FILES"
14916
14917 # Set up the scripts for CONFIG_HEADERS section.
14918 # No need to generate them if there are no CONFIG_HEADERS.
14919 # This happens for instance with `./config.status Makefile'.
14920 if test -n "$CONFIG_HEADERS"; then
14921 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14922 BEGIN {
14923 _ACEOF
14924
14925 # Transform confdefs.h into an awk script `defines.awk', embedded as
14926 # here-document in config.status, that substitutes the proper values into
14927 # config.h.in to produce config.h.
14928
14929 # Create a delimiter string that does not exist in confdefs.h, to ease
14930 # handling of long lines.
14931 ac_delim='%!_!# '
14932 for ac_last_try in false false :; do
14933   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14934   if test -z "$ac_tt"; then
14935     break
14936   elif $ac_last_try; then
14937     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14938   else
14939     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14940   fi
14941 done
14942
14943 # For the awk script, D is an array of macro values keyed by name,
14944 # likewise P contains macro parameters if any.  Preserve backslash
14945 # newline sequences.
14946
14947 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14948 sed -n '
14949 s/.\{148\}/&'"$ac_delim"'/g
14950 t rset
14951 :rset
14952 s/^[     ]*#[    ]*define[       ][      ]*/ /
14953 t def
14954 d
14955 :def
14956 s/\\$//
14957 t bsnl
14958 s/["\\]/\\&/g
14959 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14960 D["\1"]=" \3"/p
14961 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
14962 d
14963 :bsnl
14964 s/["\\]/\\&/g
14965 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14966 D["\1"]=" \3\\\\\\n"\\/p
14967 t cont
14968 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14969 t cont
14970 d
14971 :cont
14972 n
14973 s/.\{148\}/&'"$ac_delim"'/g
14974 t clear
14975 :clear
14976 s/\\$//
14977 t bsnlc
14978 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14979 d
14980 :bsnlc
14981 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14982 b cont
14983 ' <confdefs.h | sed '
14984 s/'"$ac_delim"'/"\\\
14985 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14986
14987 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14988   for (key in D) D_is_set[key] = 1
14989   FS = "\a"
14990 }
14991 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14992   line = \$ 0
14993   split(line, arg, " ")
14994   if (arg[1] == "#") {
14995     defundef = arg[2]
14996     mac1 = arg[3]
14997   } else {
14998     defundef = substr(arg[1], 2)
14999     mac1 = arg[2]
15000   }
15001   split(mac1, mac2, "(") #)
15002   macro = mac2[1]
15003   prefix = substr(line, 1, index(line, defundef) - 1)
15004   if (D_is_set[macro]) {
15005     # Preserve the white space surrounding the "#".
15006     print prefix "define", macro P[macro] D[macro]
15007     next
15008   } else {
15009     # Replace #undef with comments.  This is necessary, for example,
15010     # in the case of _POSIX_SOURCE, which is predefined and required
15011     # on some systems where configure will not decide to define it.
15012     if (defundef == "undef") {
15013       print "/*", prefix defundef, macro, "*/"
15014       next
15015     }
15016   }
15017 }
15018 { print }
15019 _ACAWK
15020 _ACEOF
15021 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15022   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15023 fi # test -n "$CONFIG_HEADERS"
15024
15025
15026 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
15027 shift
15028 for ac_tag
15029 do
15030   case $ac_tag in
15031   :[FHLC]) ac_mode=$ac_tag; continue;;
15032   esac
15033   case $ac_mode$ac_tag in
15034   :[FHL]*:*);;
15035   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15036   :[FH]-) ac_tag=-:-;;
15037   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15038   esac
15039   ac_save_IFS=$IFS
15040   IFS=:
15041   set x $ac_tag
15042   IFS=$ac_save_IFS
15043   shift
15044   ac_file=$1
15045   shift
15046
15047   case $ac_mode in
15048   :L) ac_source=$1;;
15049   :[FH])
15050     ac_file_inputs=
15051     for ac_f
15052     do
15053       case $ac_f in
15054       -) ac_f="$ac_tmp/stdin";;
15055       *) # Look for the file first in the build tree, then in the source tree
15056          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15057          # because $ac_f cannot contain `:'.
15058          test -f "$ac_f" ||
15059            case $ac_f in
15060            [\\/$]*) false;;
15061            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15062            esac ||
15063            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15064       esac
15065       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15066       as_fn_append ac_file_inputs " '$ac_f'"
15067     done
15068
15069     # Let's still pretend it is `configure' which instantiates (i.e., don't
15070     # use $as_me), people would be surprised to read:
15071     #    /* config.h.  Generated by config.status.  */
15072     configure_input='Generated from '`
15073           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15074         `' by configure.'
15075     if test x"$ac_file" != x-; then
15076       configure_input="$ac_file.  $configure_input"
15077       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15078 $as_echo "$as_me: creating $ac_file" >&6;}
15079     fi
15080     # Neutralize special characters interpreted by sed in replacement strings.
15081     case $configure_input in #(
15082     *\&* | *\|* | *\\* )
15083        ac_sed_conf_input=`$as_echo "$configure_input" |
15084        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15085     *) ac_sed_conf_input=$configure_input;;
15086     esac
15087
15088     case $ac_tag in
15089     *:-:* | *:-) cat >"$ac_tmp/stdin" \
15090       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15091     esac
15092     ;;
15093   esac
15094
15095   ac_dir=`$as_dirname -- "$ac_file" ||
15096 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15097          X"$ac_file" : 'X\(//\)[^/]' \| \
15098          X"$ac_file" : 'X\(//\)$' \| \
15099          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15100 $as_echo X"$ac_file" |
15101     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15102             s//\1/
15103             q
15104           }
15105           /^X\(\/\/\)[^/].*/{
15106             s//\1/
15107             q
15108           }
15109           /^X\(\/\/\)$/{
15110             s//\1/
15111             q
15112           }
15113           /^X\(\/\).*/{
15114             s//\1/
15115             q
15116           }
15117           s/.*/./; q'`
15118   as_dir="$ac_dir"; as_fn_mkdir_p
15119   ac_builddir=.
15120
15121 case "$ac_dir" in
15122 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15123 *)
15124   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15125   # A ".." for each directory in $ac_dir_suffix.
15126   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15127   case $ac_top_builddir_sub in
15128   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15129   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15130   esac ;;
15131 esac
15132 ac_abs_top_builddir=$ac_pwd
15133 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15134 # for backward compatibility:
15135 ac_top_builddir=$ac_top_build_prefix
15136
15137 case $srcdir in
15138   .)  # We are building in place.
15139     ac_srcdir=.
15140     ac_top_srcdir=$ac_top_builddir_sub
15141     ac_abs_top_srcdir=$ac_pwd ;;
15142   [\\/]* | ?:[\\/]* )  # Absolute name.
15143     ac_srcdir=$srcdir$ac_dir_suffix;
15144     ac_top_srcdir=$srcdir
15145     ac_abs_top_srcdir=$srcdir ;;
15146   *) # Relative name.
15147     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15148     ac_top_srcdir=$ac_top_build_prefix$srcdir
15149     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15150 esac
15151 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15152
15153
15154   case $ac_mode in
15155   :F)
15156   #
15157   # CONFIG_FILE
15158   #
15159
15160   case $INSTALL in
15161   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15162   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15163   esac
15164   ac_MKDIR_P=$MKDIR_P
15165   case $MKDIR_P in
15166   [\\/$]* | ?:[\\/]* ) ;;
15167   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15168   esac
15169 _ACEOF
15170
15171 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15172 # If the template does not know about datarootdir, expand it.
15173 # FIXME: This hack should be removed a few years after 2.60.
15174 ac_datarootdir_hack=; ac_datarootdir_seen=
15175 ac_sed_dataroot='
15176 /datarootdir/ {
15177   p
15178   q
15179 }
15180 /@datadir@/p
15181 /@docdir@/p
15182 /@infodir@/p
15183 /@localedir@/p
15184 /@mandir@/p'
15185 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15186 *datarootdir*) ac_datarootdir_seen=yes;;
15187 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15188   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15189 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15190 _ACEOF
15191 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15192   ac_datarootdir_hack='
15193   s&@datadir@&$datadir&g
15194   s&@docdir@&$docdir&g
15195   s&@infodir@&$infodir&g
15196   s&@localedir@&$localedir&g
15197   s&@mandir@&$mandir&g
15198   s&\\\${datarootdir}&$datarootdir&g' ;;
15199 esac
15200 _ACEOF
15201
15202 # Neutralize VPATH when `$srcdir' = `.'.
15203 # Shell code in configure.ac might set extrasub.
15204 # FIXME: do we really want to maintain this feature?
15205 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15206 ac_sed_extra="$ac_vpsub
15207 $extrasub
15208 _ACEOF
15209 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15210 :t
15211 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15212 s|@configure_input@|$ac_sed_conf_input|;t t
15213 s&@top_builddir@&$ac_top_builddir_sub&;t t
15214 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15215 s&@srcdir@&$ac_srcdir&;t t
15216 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15217 s&@top_srcdir@&$ac_top_srcdir&;t t
15218 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15219 s&@builddir@&$ac_builddir&;t t
15220 s&@abs_builddir@&$ac_abs_builddir&;t t
15221 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15222 s&@INSTALL@&$ac_INSTALL&;t t
15223 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15224 $ac_datarootdir_hack
15225 "
15226 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15227   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15228
15229 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15230   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15231   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
15232       "$ac_tmp/out"`; test -z "$ac_out"; } &&
15233   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15234 which seems to be undefined.  Please make sure it is defined" >&5
15235 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15236 which seems to be undefined.  Please make sure it is defined" >&2;}
15237
15238   rm -f "$ac_tmp/stdin"
15239   case $ac_file in
15240   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15241   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15242   esac \
15243   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15244  ;;
15245   :H)
15246   #
15247   # CONFIG_HEADER
15248   #
15249   if test x"$ac_file" != x-; then
15250     {
15251       $as_echo "/* $configure_input  */" \
15252       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15253     } >"$ac_tmp/config.h" \
15254       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15255     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15256       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15257 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15258     else
15259       rm -f "$ac_file"
15260       mv "$ac_tmp/config.h" "$ac_file" \
15261         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15262     fi
15263   else
15264     $as_echo "/* $configure_input  */" \
15265       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15266       || as_fn_error $? "could not create -" "$LINENO" 5
15267   fi
15268 # Compute "$ac_file"'s index in $config_headers.
15269 _am_arg="$ac_file"
15270 _am_stamp_count=1
15271 for _am_header in $config_headers :; do
15272   case $_am_header in
15273     $_am_arg | $_am_arg:* )
15274       break ;;
15275     * )
15276       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15277   esac
15278 done
15279 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15280 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15281          X"$_am_arg" : 'X\(//\)[^/]' \| \
15282          X"$_am_arg" : 'X\(//\)$' \| \
15283          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15284 $as_echo X"$_am_arg" |
15285     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15286             s//\1/
15287             q
15288           }
15289           /^X\(\/\/\)[^/].*/{
15290             s//\1/
15291             q
15292           }
15293           /^X\(\/\/\)$/{
15294             s//\1/
15295             q
15296           }
15297           /^X\(\/\).*/{
15298             s//\1/
15299             q
15300           }
15301           s/.*/./; q'`/stamp-h$_am_stamp_count
15302  ;;
15303
15304   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15305 $as_echo "$as_me: executing $ac_file commands" >&6;}
15306  ;;
15307   esac
15308
15309
15310   case $ac_file$ac_mode in
15311     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15312   # Autoconf 2.62 quotes --file arguments for eval, but not when files
15313   # are listed without --file.  Let's play safe and only enable the eval
15314   # if we detect the quoting.
15315   case $CONFIG_FILES in
15316   *\'*) eval set x "$CONFIG_FILES" ;;
15317   *)   set x $CONFIG_FILES ;;
15318   esac
15319   shift
15320   for mf
15321   do
15322     # Strip MF so we end up with the name of the file.
15323     mf=`echo "$mf" | sed -e 's/:.*$//'`
15324     # Check whether this is an Automake generated Makefile or not.
15325     # We used to match only the files named 'Makefile.in', but
15326     # some people rename them; so instead we look at the file content.
15327     # Grep'ing the first line is not enough: some people post-process
15328     # each Makefile.in and add a new line on top of each file to say so.
15329     # Grep'ing the whole file is not good either: AIX grep has a line
15330     # limit of 2048, but all sed's we know have understand at least 4000.
15331     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15332       dirpart=`$as_dirname -- "$mf" ||
15333 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15334          X"$mf" : 'X\(//\)[^/]' \| \
15335          X"$mf" : 'X\(//\)$' \| \
15336          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15337 $as_echo X"$mf" |
15338     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15339             s//\1/
15340             q
15341           }
15342           /^X\(\/\/\)[^/].*/{
15343             s//\1/
15344             q
15345           }
15346           /^X\(\/\/\)$/{
15347             s//\1/
15348             q
15349           }
15350           /^X\(\/\).*/{
15351             s//\1/
15352             q
15353           }
15354           s/.*/./; q'`
15355     else
15356       continue
15357     fi
15358     # Extract the definition of DEPDIR, am__include, and am__quote
15359     # from the Makefile without running 'make'.
15360     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15361     test -z "$DEPDIR" && continue
15362     am__include=`sed -n 's/^am__include = //p' < "$mf"`
15363     test -z "am__include" && continue
15364     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15365     # Find all dependency output files, they are included files with
15366     # $(DEPDIR) in their names.  We invoke sed twice because it is the
15367     # simplest approach to changing $(DEPDIR) to its actual value in the
15368     # expansion.
15369     for file in `sed -n "
15370       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15371          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
15372       # Make sure the directory exists.
15373       test -f "$dirpart/$file" && continue
15374       fdir=`$as_dirname -- "$file" ||
15375 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15376          X"$file" : 'X\(//\)[^/]' \| \
15377          X"$file" : 'X\(//\)$' \| \
15378          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15379 $as_echo X"$file" |
15380     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15381             s//\1/
15382             q
15383           }
15384           /^X\(\/\/\)[^/].*/{
15385             s//\1/
15386             q
15387           }
15388           /^X\(\/\/\)$/{
15389             s//\1/
15390             q
15391           }
15392           /^X\(\/\).*/{
15393             s//\1/
15394             q
15395           }
15396           s/.*/./; q'`
15397       as_dir=$dirpart/$fdir; as_fn_mkdir_p
15398       # echo "creating $dirpart/$file"
15399       echo '# dummy' > "$dirpart/$file"
15400     done
15401   done
15402 }
15403  ;;
15404     "libtool":C)
15405
15406     # See if we are running on zsh, and set the options which allow our
15407     # commands through without removal of \ escapes.
15408     if test -n "${ZSH_VERSION+set}" ; then
15409       setopt NO_GLOB_SUBST
15410     fi
15411
15412     cfgfile="${ofile}T"
15413     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15414     $RM "$cfgfile"
15415
15416     cat <<_LT_EOF >> "$cfgfile"
15417 #! $SHELL
15418
15419 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15420 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15421 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15422 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15423 #
15424 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15425 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
15426 #                 Foundation, Inc.
15427 #   Written by Gordon Matzigkeit, 1996
15428 #
15429 #   This file is part of GNU Libtool.
15430 #
15431 # GNU Libtool is free software; you can redistribute it and/or
15432 # modify it under the terms of the GNU General Public License as
15433 # published by the Free Software Foundation; either version 2 of
15434 # the License, or (at your option) any later version.
15435 #
15436 # As a special exception to the GNU General Public License,
15437 # if you distribute this file as part of a program or library that
15438 # is built using GNU Libtool, you may include this file under the
15439 # same distribution terms that you use for the rest of that program.
15440 #
15441 # GNU Libtool is distributed in the hope that it will be useful,
15442 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15443 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15444 # GNU General Public License for more details.
15445 #
15446 # You should have received a copy of the GNU General Public License
15447 # along with GNU Libtool; see the file COPYING.  If not, a copy
15448 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15449 # obtained by writing to the Free Software Foundation, Inc.,
15450 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15451
15452
15453 # The names of the tagged configurations supported by this script.
15454 available_tags=""
15455
15456 # ### BEGIN LIBTOOL CONFIG
15457
15458 # Which release of libtool.m4 was used?
15459 macro_version=$macro_version
15460 macro_revision=$macro_revision
15461
15462 # Whether or not to build shared libraries.
15463 build_libtool_libs=$enable_shared
15464
15465 # Whether or not to build static libraries.
15466 build_old_libs=$enable_static
15467
15468 # What type of objects to build.
15469 pic_mode=$pic_mode
15470
15471 # Whether or not to optimize for fast installation.
15472 fast_install=$enable_fast_install
15473
15474 # Shell to use when invoking shell scripts.
15475 SHELL=$lt_SHELL
15476
15477 # An echo program that protects backslashes.
15478 ECHO=$lt_ECHO
15479
15480 # The PATH separator for the build system.
15481 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15482
15483 # The host system.
15484 host_alias=$host_alias
15485 host=$host
15486 host_os=$host_os
15487
15488 # The build system.
15489 build_alias=$build_alias
15490 build=$build
15491 build_os=$build_os
15492
15493 # A sed program that does not truncate output.
15494 SED=$lt_SED
15495
15496 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15497 Xsed="\$SED -e 1s/^X//"
15498
15499 # A grep program that handles long lines.
15500 GREP=$lt_GREP
15501
15502 # An ERE matcher.
15503 EGREP=$lt_EGREP
15504
15505 # A literal string matcher.
15506 FGREP=$lt_FGREP
15507
15508 # A BSD- or MS-compatible name lister.
15509 NM=$lt_NM
15510
15511 # Whether we need soft or hard links.
15512 LN_S=$lt_LN_S
15513
15514 # What is the maximum length of a command?
15515 max_cmd_len=$max_cmd_len
15516
15517 # Object file suffix (normally "o").
15518 objext=$ac_objext
15519
15520 # Executable file suffix (normally "").
15521 exeext=$exeext
15522
15523 # whether the shell understands "unset".
15524 lt_unset=$lt_unset
15525
15526 # turn spaces into newlines.
15527 SP2NL=$lt_lt_SP2NL
15528
15529 # turn newlines into spaces.
15530 NL2SP=$lt_lt_NL2SP
15531
15532 # convert \$build file names to \$host format.
15533 to_host_file_cmd=$lt_cv_to_host_file_cmd
15534
15535 # convert \$build files to toolchain format.
15536 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15537
15538 # An object symbol dumper.
15539 OBJDUMP=$lt_OBJDUMP
15540
15541 # Method to check whether dependent libraries are shared objects.
15542 deplibs_check_method=$lt_deplibs_check_method
15543
15544 # Command to use when deplibs_check_method = "file_magic".
15545 file_magic_cmd=$lt_file_magic_cmd
15546
15547 # How to find potential files when deplibs_check_method = "file_magic".
15548 file_magic_glob=$lt_file_magic_glob
15549
15550 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15551 want_nocaseglob=$lt_want_nocaseglob
15552
15553 # DLL creation program.
15554 DLLTOOL=$lt_DLLTOOL
15555
15556 # Command to associate shared and link libraries.
15557 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15558
15559 # The archiver.
15560 AR=$lt_AR
15561
15562 # Flags to create an archive.
15563 AR_FLAGS=$lt_AR_FLAGS
15564
15565 # How to feed a file listing to the archiver.
15566 archiver_list_spec=$lt_archiver_list_spec
15567
15568 # A symbol stripping program.
15569 STRIP=$lt_STRIP
15570
15571 # Commands used to install an old-style archive.
15572 RANLIB=$lt_RANLIB
15573 old_postinstall_cmds=$lt_old_postinstall_cmds
15574 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15575
15576 # Whether to use a lock for old archive extraction.
15577 lock_old_archive_extraction=$lock_old_archive_extraction
15578
15579 # A C compiler.
15580 LTCC=$lt_CC
15581
15582 # LTCC compiler flags.
15583 LTCFLAGS=$lt_CFLAGS
15584
15585 # Take the output of nm and produce a listing of raw symbols and C names.
15586 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15587
15588 # Transform the output of nm in a proper C declaration.
15589 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15590
15591 # Transform the output of nm in a C name address pair.
15592 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15593
15594 # Transform the output of nm in a C name address pair when lib prefix is needed.
15595 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15596
15597 # Specify filename containing input files for \$NM.
15598 nm_file_list_spec=$lt_nm_file_list_spec
15599
15600 # The root where to search for dependent libraries,and in which our libraries should be installed.
15601 lt_sysroot=$lt_sysroot
15602
15603 # The name of the directory that contains temporary libtool files.
15604 objdir=$objdir
15605
15606 # Used to examine libraries when file_magic_cmd begins with "file".
15607 MAGIC_CMD=$MAGIC_CMD
15608
15609 # Must we lock files when doing compilation?
15610 need_locks=$lt_need_locks
15611
15612 # Manifest tool.
15613 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15614
15615 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15616 DSYMUTIL=$lt_DSYMUTIL
15617
15618 # Tool to change global to local symbols on Mac OS X.
15619 NMEDIT=$lt_NMEDIT
15620
15621 # Tool to manipulate fat objects and archives on Mac OS X.
15622 LIPO=$lt_LIPO
15623
15624 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15625 OTOOL=$lt_OTOOL
15626
15627 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15628 OTOOL64=$lt_OTOOL64
15629
15630 # Old archive suffix (normally "a").
15631 libext=$libext
15632
15633 # Shared library suffix (normally ".so").
15634 shrext_cmds=$lt_shrext_cmds
15635
15636 # The commands to extract the exported symbol list from a shared archive.
15637 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15638
15639 # Variables whose values should be saved in libtool wrapper scripts and
15640 # restored at link time.
15641 variables_saved_for_relink=$lt_variables_saved_for_relink
15642
15643 # Do we need the "lib" prefix for modules?
15644 need_lib_prefix=$need_lib_prefix
15645
15646 # Do we need a version for libraries?
15647 need_version=$need_version
15648
15649 # Library versioning type.
15650 version_type=$version_type
15651
15652 # Shared library runtime path variable.
15653 runpath_var=$runpath_var
15654
15655 # Shared library path variable.
15656 shlibpath_var=$shlibpath_var
15657
15658 # Is shlibpath searched before the hard-coded library search path?
15659 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15660
15661 # Format of library name prefix.
15662 libname_spec=$lt_libname_spec
15663
15664 # List of archive names.  First name is the real one, the rest are links.
15665 # The last name is the one that the linker finds with -lNAME
15666 library_names_spec=$lt_library_names_spec
15667
15668 # The coded name of the library, if different from the real name.
15669 soname_spec=$lt_soname_spec
15670
15671 # Permission mode override for installation of shared libraries.
15672 install_override_mode=$lt_install_override_mode
15673
15674 # Command to use after installation of a shared archive.
15675 postinstall_cmds=$lt_postinstall_cmds
15676
15677 # Command to use after uninstallation of a shared archive.
15678 postuninstall_cmds=$lt_postuninstall_cmds
15679
15680 # Commands used to finish a libtool library installation in a directory.
15681 finish_cmds=$lt_finish_cmds
15682
15683 # As "finish_cmds", except a single script fragment to be evaled but
15684 # not shown.
15685 finish_eval=$lt_finish_eval
15686
15687 # Whether we should hardcode library paths into libraries.
15688 hardcode_into_libs=$hardcode_into_libs
15689
15690 # Compile-time system search path for libraries.
15691 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15692
15693 # Run-time system search path for libraries.
15694 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15695
15696 # Whether dlopen is supported.
15697 dlopen_support=$enable_dlopen
15698
15699 # Whether dlopen of programs is supported.
15700 dlopen_self=$enable_dlopen_self
15701
15702 # Whether dlopen of statically linked programs is supported.
15703 dlopen_self_static=$enable_dlopen_self_static
15704
15705 # Commands to strip libraries.
15706 old_striplib=$lt_old_striplib
15707 striplib=$lt_striplib
15708
15709
15710 # The linker used to build libraries.
15711 LD=$lt_LD
15712
15713 # How to create reloadable object files.
15714 reload_flag=$lt_reload_flag
15715 reload_cmds=$lt_reload_cmds
15716
15717 # Commands used to build an old-style archive.
15718 old_archive_cmds=$lt_old_archive_cmds
15719
15720 # A language specific compiler.
15721 CC=$lt_compiler
15722
15723 # Is the compiler the GNU compiler?
15724 with_gcc=$GCC
15725
15726 # Compiler flag to turn off builtin functions.
15727 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15728
15729 # Additional compiler flags for building library objects.
15730 pic_flag=$lt_lt_prog_compiler_pic
15731
15732 # How to pass a linker flag through the compiler.
15733 wl=$lt_lt_prog_compiler_wl
15734
15735 # Compiler flag to prevent dynamic linking.
15736 link_static_flag=$lt_lt_prog_compiler_static
15737
15738 # Does compiler simultaneously support -c and -o options?
15739 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15740
15741 # Whether or not to add -lc for building shared libraries.
15742 build_libtool_need_lc=$archive_cmds_need_lc
15743
15744 # Whether or not to disallow shared libs when runtime libs are static.
15745 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15746
15747 # Compiler flag to allow reflexive dlopens.
15748 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15749
15750 # Compiler flag to generate shared objects directly from archives.
15751 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15752
15753 # Whether the compiler copes with passing no objects directly.
15754 compiler_needs_object=$lt_compiler_needs_object
15755
15756 # Create an old-style archive from a shared archive.
15757 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15758
15759 # Create a temporary old-style archive to link instead of a shared archive.
15760 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15761
15762 # Commands used to build a shared archive.
15763 archive_cmds=$lt_archive_cmds
15764 archive_expsym_cmds=$lt_archive_expsym_cmds
15765
15766 # Commands used to build a loadable module if different from building
15767 # a shared archive.
15768 module_cmds=$lt_module_cmds
15769 module_expsym_cmds=$lt_module_expsym_cmds
15770
15771 # Whether we are building with GNU ld or not.
15772 with_gnu_ld=$lt_with_gnu_ld
15773
15774 # Flag that allows shared libraries with undefined symbols to be built.
15775 allow_undefined_flag=$lt_allow_undefined_flag
15776
15777 # Flag that enforces no undefined symbols.
15778 no_undefined_flag=$lt_no_undefined_flag
15779
15780 # Flag to hardcode \$libdir into a binary during linking.
15781 # This must work even if \$libdir does not exist
15782 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15783
15784 # Whether we need a single "-rpath" flag with a separated argument.
15785 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15786
15787 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15788 # DIR into the resulting binary.
15789 hardcode_direct=$hardcode_direct
15790
15791 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15792 # DIR into the resulting binary and the resulting library dependency is
15793 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15794 # library is relocated.
15795 hardcode_direct_absolute=$hardcode_direct_absolute
15796
15797 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15798 # into the resulting binary.
15799 hardcode_minus_L=$hardcode_minus_L
15800
15801 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15802 # into the resulting binary.
15803 hardcode_shlibpath_var=$hardcode_shlibpath_var
15804
15805 # Set to "yes" if building a shared library automatically hardcodes DIR
15806 # into the library and all subsequent libraries and executables linked
15807 # against it.
15808 hardcode_automatic=$hardcode_automatic
15809
15810 # Set to yes if linker adds runtime paths of dependent libraries
15811 # to runtime path list.
15812 inherit_rpath=$inherit_rpath
15813
15814 # Whether libtool must link a program against all its dependency libraries.
15815 link_all_deplibs=$link_all_deplibs
15816
15817 # Set to "yes" if exported symbols are required.
15818 always_export_symbols=$always_export_symbols
15819
15820 # The commands to list exported symbols.
15821 export_symbols_cmds=$lt_export_symbols_cmds
15822
15823 # Symbols that should not be listed in the preloaded symbols.
15824 exclude_expsyms=$lt_exclude_expsyms
15825
15826 # Symbols that must always be exported.
15827 include_expsyms=$lt_include_expsyms
15828
15829 # Commands necessary for linking programs (against libraries) with templates.
15830 prelink_cmds=$lt_prelink_cmds
15831
15832 # Commands necessary for finishing linking programs.
15833 postlink_cmds=$lt_postlink_cmds
15834
15835 # Specify filename containing input files.
15836 file_list_spec=$lt_file_list_spec
15837
15838 # How to hardcode a shared library path into an executable.
15839 hardcode_action=$hardcode_action
15840
15841 # ### END LIBTOOL CONFIG
15842
15843 _LT_EOF
15844
15845   case $host_os in
15846   aix3*)
15847     cat <<\_LT_EOF >> "$cfgfile"
15848 # AIX sometimes has problems with the GCC collect2 program.  For some
15849 # reason, if we set the COLLECT_NAMES environment variable, the problems
15850 # vanish in a puff of smoke.
15851 if test "X${COLLECT_NAMES+set}" != Xset; then
15852   COLLECT_NAMES=
15853   export COLLECT_NAMES
15854 fi
15855 _LT_EOF
15856     ;;
15857   esac
15858
15859
15860 ltmain="$ac_aux_dir/ltmain.sh"
15861
15862
15863   # We use sed instead of cat because bash on DJGPP gets confused if
15864   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15865   # text mode, it properly converts lines to CR/LF.  This bash problem
15866   # is reportedly fixed, but why not run on old versions too?
15867   sed '$q' "$ltmain" >> "$cfgfile" \
15868      || (rm -f "$cfgfile"; exit 1)
15869
15870   if test x"$xsi_shell" = xyes; then
15871   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15872 func_dirname ()\
15873 {\
15874 \    case ${1} in\
15875 \      */*) func_dirname_result="${1%/*}${2}" ;;\
15876 \      *  ) func_dirname_result="${3}" ;;\
15877 \    esac\
15878 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15879   && mv -f "$cfgfile.tmp" "$cfgfile" \
15880     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15881 test 0 -eq $? || _lt_function_replace_fail=:
15882
15883
15884   sed -e '/^func_basename ()$/,/^} # func_basename /c\
15885 func_basename ()\
15886 {\
15887 \    func_basename_result="${1##*/}"\
15888 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15889   && mv -f "$cfgfile.tmp" "$cfgfile" \
15890     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15891 test 0 -eq $? || _lt_function_replace_fail=:
15892
15893
15894   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15895 func_dirname_and_basename ()\
15896 {\
15897 \    case ${1} in\
15898 \      */*) func_dirname_result="${1%/*}${2}" ;;\
15899 \      *  ) func_dirname_result="${3}" ;;\
15900 \    esac\
15901 \    func_basename_result="${1##*/}"\
15902 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15903   && mv -f "$cfgfile.tmp" "$cfgfile" \
15904     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15905 test 0 -eq $? || _lt_function_replace_fail=:
15906
15907
15908   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15909 func_stripname ()\
15910 {\
15911 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15912 \    # positional parameters, so assign one to ordinary parameter first.\
15913 \    func_stripname_result=${3}\
15914 \    func_stripname_result=${func_stripname_result#"${1}"}\
15915 \    func_stripname_result=${func_stripname_result%"${2}"}\
15916 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15917   && mv -f "$cfgfile.tmp" "$cfgfile" \
15918     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15919 test 0 -eq $? || _lt_function_replace_fail=:
15920
15921
15922   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15923 func_split_long_opt ()\
15924 {\
15925 \    func_split_long_opt_name=${1%%=*}\
15926 \    func_split_long_opt_arg=${1#*=}\
15927 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15928   && mv -f "$cfgfile.tmp" "$cfgfile" \
15929     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15930 test 0 -eq $? || _lt_function_replace_fail=:
15931
15932
15933   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15934 func_split_short_opt ()\
15935 {\
15936 \    func_split_short_opt_arg=${1#??}\
15937 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15938 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15939   && mv -f "$cfgfile.tmp" "$cfgfile" \
15940     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15941 test 0 -eq $? || _lt_function_replace_fail=:
15942
15943
15944   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15945 func_lo2o ()\
15946 {\
15947 \    case ${1} in\
15948 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15949 \      *)    func_lo2o_result=${1} ;;\
15950 \    esac\
15951 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15952   && mv -f "$cfgfile.tmp" "$cfgfile" \
15953     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15954 test 0 -eq $? || _lt_function_replace_fail=:
15955
15956
15957   sed -e '/^func_xform ()$/,/^} # func_xform /c\
15958 func_xform ()\
15959 {\
15960     func_xform_result=${1%.*}.lo\
15961 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15962   && mv -f "$cfgfile.tmp" "$cfgfile" \
15963     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15964 test 0 -eq $? || _lt_function_replace_fail=:
15965
15966
15967   sed -e '/^func_arith ()$/,/^} # func_arith /c\
15968 func_arith ()\
15969 {\
15970     func_arith_result=$(( $* ))\
15971 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15972   && mv -f "$cfgfile.tmp" "$cfgfile" \
15973     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15974 test 0 -eq $? || _lt_function_replace_fail=:
15975
15976
15977   sed -e '/^func_len ()$/,/^} # func_len /c\
15978 func_len ()\
15979 {\
15980     func_len_result=${#1}\
15981 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15982   && mv -f "$cfgfile.tmp" "$cfgfile" \
15983     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15984 test 0 -eq $? || _lt_function_replace_fail=:
15985
15986 fi
15987
15988 if test x"$lt_shell_append" = xyes; then
15989   sed -e '/^func_append ()$/,/^} # func_append /c\
15990 func_append ()\
15991 {\
15992     eval "${1}+=\\${2}"\
15993 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15994   && mv -f "$cfgfile.tmp" "$cfgfile" \
15995     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15996 test 0 -eq $? || _lt_function_replace_fail=:
15997
15998
15999   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
16000 func_append_quoted ()\
16001 {\
16002 \    func_quote_for_eval "${2}"\
16003 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
16004 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
16005   && mv -f "$cfgfile.tmp" "$cfgfile" \
16006     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16007 test 0 -eq $? || _lt_function_replace_fail=:
16008
16009
16010   # Save a `func_append' function call where possible by direct use of '+='
16011   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
16012     && mv -f "$cfgfile.tmp" "$cfgfile" \
16013       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16014   test 0 -eq $? || _lt_function_replace_fail=:
16015 else
16016   # Save a `func_append' function call even when '+=' is not available
16017   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
16018     && mv -f "$cfgfile.tmp" "$cfgfile" \
16019       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16020   test 0 -eq $? || _lt_function_replace_fail=:
16021 fi
16022
16023 if test x"$_lt_function_replace_fail" = x":"; then
16024   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
16025 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
16026 fi
16027
16028
16029    mv -f "$cfgfile" "$ofile" ||
16030     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16031   chmod +x "$ofile"
16032
16033  ;;
16034
16035   esac
16036 done # for ac_tag
16037
16038
16039 as_fn_exit 0
16040 _ACEOF
16041 ac_clean_files=$ac_clean_files_save
16042
16043 test $ac_write_fail = 0 ||
16044   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16045
16046
16047 # configure is writing to config.log, and then calls config.status.
16048 # config.status does its own redirection, appending to config.log.
16049 # Unfortunately, on DOS this fails, as config.log is still kept open
16050 # by configure, so config.status won't be able to write to it; its
16051 # output is simply discarded.  So we exec the FD to /dev/null,
16052 # effectively closing config.log, so it can be properly (re)opened and
16053 # appended to by config.status.  When coming back to configure, we
16054 # need to make the FD available again.
16055 if test "$no_create" != yes; then
16056   ac_cs_success=:
16057   ac_config_status_args=
16058   test "$silent" = yes &&
16059     ac_config_status_args="$ac_config_status_args --quiet"
16060   exec 5>/dev/null
16061   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16062   exec 5>>config.log
16063   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16064   # would make configure fail if this is the last instruction.
16065   $ac_cs_success || as_fn_exit 1
16066 fi
16067 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16068   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16069 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16070 fi
16071