Imported Upstream version 1.3.4
[platform/upstream/libvorbis.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libvorbis 1.3.4.
4 #
5 # Report bugs to <vorbis-dev@xiph.org>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100   IFS=$as_save_IFS
101   test -z "$as_dir" && as_dir=.
102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103   done
104 IFS=$as_save_IFS
105
106      ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there.  '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141   emulate sh
142   NULLCMD=:
143   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144   # is contrary to our usage.  Disable this feature.
145   alias -g '\${1+\"\$@\"}'='\"\$@\"'
146   setopt NO_GLOB_SUBST
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
178   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182     PATH=/empty FPATH=/empty; export PATH FPATH
183     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186   if (eval "$as_required") 2>/dev/null; then :
187   as_have_required=yes
188 else
189   as_have_required=no
190 fi
191   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198   IFS=$as_save_IFS
199   test -z "$as_dir" && as_dir=.
200   as_found=:
201   case $as_dir in #(
202          /*)
203            for as_base in sh bash ksh sh5; do
204              # Try only shells that exist, to save several forks.
205              as_shell=$as_dir/$as_base
206              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   CONFIG_SHELL=$as_shell as_have_required=yes
209                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210   break 2
211 fi
212 fi
213            done;;
214        esac
215   as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219   CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224       if test "x$CONFIG_SHELL" != x; then :
225   # We cannot yet assume a decent shell, so we have to provide a
226         # neutralization value for shells without unset; and this also
227         # works around shells that cannot unset nonexistent variables.
228         # Preserve -v and -x to the replacement shell.
229         BASH_ENV=/dev/null
230         ENV=/dev/null
231         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232         export CONFIG_SHELL
233         case $- in # ((((
234           *v*x* | *x*v* ) as_opts=-vx ;;
235           *v* ) as_opts=-v ;;
236           *x* ) as_opts=-x ;;
237           * ) as_opts= ;;
238         esac
239         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242     if test x$as_have_required = xno; then :
243   $as_echo "$0: This script requires a shell more modern than all"
244   $as_echo "$0: the shells that I found on your system."
245   if test x${ZSH_VERSION+set} = xset ; then
246     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248   else
249     $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: vorbis-dev@xiph.org about your system, including any
251 $0: error possibly output before this message. Then install
252 $0: a modern shell, or manually run the script under such a
253 $0: shell if you do have one."
254   fi
255   exit 1
256 fi
257 fi
258 fi
259 SHELL=${CONFIG_SHELL-/bin/sh}
260 export SHELL
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
264
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
268 # as_fn_unset VAR
269 # ---------------
270 # Portably unset VAR.
271 as_fn_unset ()
272 {
273   { eval $1=; unset $1;}
274 }
275 as_unset=as_fn_unset
276
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
280 as_fn_set_status ()
281 {
282   return $1
283 } # as_fn_set_status
284
285 # as_fn_exit STATUS
286 # -----------------
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288 as_fn_exit ()
289 {
290   set +e
291   as_fn_set_status $1
292   exit $1
293 } # as_fn_exit
294
295 # as_fn_mkdir_p
296 # -------------
297 # Create "$as_dir" as a directory, including parents if necessary.
298 as_fn_mkdir_p ()
299 {
300
301   case $as_dir in #(
302   -*) as_dir=./$as_dir;;
303   esac
304   test -d "$as_dir" || eval $as_mkdir_p || {
305     as_dirs=
306     while :; do
307       case $as_dir in #(
308       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309       *) as_qdir=$as_dir;;
310       esac
311       as_dirs="'$as_qdir' $as_dirs"
312       as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314          X"$as_dir" : 'X\(//\)[^/]' \| \
315          X"$as_dir" : 'X\(//\)$' \| \
316          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319             s//\1/
320             q
321           }
322           /^X\(\/\/\)[^/].*/{
323             s//\1/
324             q
325           }
326           /^X\(\/\/\)$/{
327             s//\1/
328             q
329           }
330           /^X\(\/\).*/{
331             s//\1/
332             q
333           }
334           s/.*/./; q'`
335       test -d "$as_dir" && break
336     done
337     test -z "$as_dirs" || eval "mkdir $as_dirs"
338   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341 } # as_fn_mkdir_p
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
347 # implementations.
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349   eval 'as_fn_append ()
350   {
351     eval $1+=\$2
352   }'
353 else
354   as_fn_append ()
355   {
356     eval $1=\$$1\$2
357   }
358 fi # as_fn_append
359
360 # as_fn_arith ARG...
361 # ------------------
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366   eval 'as_fn_arith ()
367   {
368     as_val=$(( $* ))
369   }'
370 else
371   as_fn_arith ()
372   {
373     as_val=`expr "$@" || test $? -eq 1`
374   }
375 fi # as_fn_arith
376
377
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
383 as_fn_error ()
384 {
385   as_status=$1; test $as_status -eq 0 && as_status=1
386   if test "$4"; then
387     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389   fi
390   $as_echo "$as_me: error: $2" >&2
391   as_fn_exit $as_status
392 } # as_fn_error
393
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395    test "X`expr 00001 : '.*\(...\)'`" = X001; then
396   as_expr=expr
397 else
398   as_expr=false
399 fi
400
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402   as_basename=basename
403 else
404   as_basename=false
405 fi
406
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408   as_dirname=dirname
409 else
410   as_dirname=false
411 fi
412
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415          X"$0" : 'X\(//\)$' \| \
416          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417 $as_echo X/"$0" |
418     sed '/^.*\/\([^/][^/]*\)\/*$/{
419             s//\1/
420             q
421           }
422           /^X\/\(\/\/\)$/{
423             s//\1/
424             q
425           }
426           /^X\/\(\/\).*/{
427             s//\1/
428             q
429           }
430           s/.*/./; q'`
431
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440   as_lineno_1=$LINENO as_lineno_1a=$LINENO
441   as_lineno_2=$LINENO as_lineno_2a=$LINENO
442   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
445   sed -n '
446     p
447     /[$]LINENO/=
448   ' <$as_myself |
449     sed '
450       s/[$]LINENO.*/&-/
451       t lineno
452       b
453       :lineno
454       N
455       :loop
456       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457       t loop
458       s/-\n.*//
459     ' >$as_me.lineno &&
460   chmod +x "$as_me.lineno" ||
461     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463   # Don't try to exec as it changes $[0], causing all sort of problems
464   # (the dirname of $[0] is not the place where we might find the
465   # original and so on.  Autoconf is especially sensitive to this).
466   . "./$as_me.lineno"
467   # Exit status is that of the last command.
468   exit
469 }
470
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
473 -n*)
474   case `echo 'xy\c'` in
475   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
476   xy)  ECHO_C='\c';;
477   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
478        ECHO_T=' ';;
479   esac;;
480 *)
481   ECHO_N='-n';;
482 esac
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486   rm -f conf$$.dir/conf$$.file
487 else
488   rm -f conf$$.dir
489   mkdir conf$$.dir 2>/dev/null
490 fi
491 if (echo >conf$$.file) 2>/dev/null; then
492   if ln -s conf$$.file conf$$ 2>/dev/null; then
493     as_ln_s='ln -s'
494     # ... but there are two gotchas:
495     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497     # In both cases, we have to default to `cp -p'.
498     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499       as_ln_s='cp -p'
500   elif ln conf$$.file conf$$ 2>/dev/null; then
501     as_ln_s=ln
502   else
503     as_ln_s='cp -p'
504   fi
505 else
506   as_ln_s='cp -p'
507 fi
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
510
511 if mkdir -p . 2>/dev/null; then
512   as_mkdir_p='mkdir -p "$as_dir"'
513 else
514   test -d ./-p && rmdir ./-p
515   as_mkdir_p=false
516 fi
517
518 if test -x / >/dev/null 2>&1; then
519   as_test_x='test -x'
520 else
521   if ls -dL / >/dev/null 2>&1; then
522     as_ls_L_option=L
523   else
524     as_ls_L_option=
525   fi
526   as_test_x='
527     eval sh -c '\''
528       if test -d "$1"; then
529         test -d "$1/.";
530       else
531         case $1 in #(
532         -*)set "./$1";;
533         esac;
534         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535         ???[sx]*):;;*)false;;esac;fi
536     '\'' sh
537   '
538 fi
539 as_executable_p=$as_test_x
540
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547 SHELL=${CONFIG_SHELL-/bin/sh}
548
549
550 test -n "$DJDIR" || exec 7<&0 </dev/null
551 exec 6>&1
552
553 # Name of the host.
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557
558 #
559 # Initializations.
560 #
561 ac_default_prefix=/usr/local
562 ac_clean_files=
563 ac_config_libobj_dir=.
564 LIBOBJS=
565 cross_compiling=no
566 subdirs=
567 MFLAGS=
568 MAKEFLAGS=
569
570 # Identity of this package.
571 PACKAGE_NAME='libvorbis'
572 PACKAGE_TARNAME='libvorbis'
573 PACKAGE_VERSION='1.3.4'
574 PACKAGE_STRING='libvorbis 1.3.4'
575 PACKAGE_BUGREPORT='vorbis-dev@xiph.org'
576 PACKAGE_URL=''
577
578 ac_unique_file="lib/mdct.c"
579 # Factoring default headers for most tests.
580 ac_includes_default="\
581 #include <stdio.h>
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
584 #endif
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
587 #endif
588 #ifdef STDC_HEADERS
589 # include <stdlib.h>
590 # include <stddef.h>
591 #else
592 # ifdef HAVE_STDLIB_H
593 #  include <stdlib.h>
594 # endif
595 #endif
596 #ifdef HAVE_STRING_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598 #  include <memory.h>
599 # endif
600 # include <string.h>
601 #endif
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
604 #endif
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
607 #endif
608 #ifdef HAVE_STDINT_H
609 # include <stdint.h>
610 #endif
611 #ifdef HAVE_UNISTD_H
612 # include <unistd.h>
613 #endif"
614
615 ac_subst_vars='am__EXEEXT_FALSE
616 am__EXEEXT_TRUE
617 LTLIBOBJS
618 LIBTOOL_DEPS
619 pthread_lib
620 PROFILE
621 DEBUG
622 VORBIS_LIBS
623 LIBOBJS
624 ALLOCA
625 OGG_LIBS
626 OGG_CFLAGS
627 PKG_CONFIG
628 BUILD_EXAMPLES_FALSE
629 BUILD_EXAMPLES_TRUE
630 BUILD_DOCS_FALSE
631 BUILD_DOCS_TRUE
632 HTLATEX
633 PDFLATEX
634 HAVE_DOXYGEN_FALSE
635 HAVE_DOXYGEN_TRUE
636 HAVE_DOXYGEN
637 OTOOL64
638 OTOOL
639 LIPO
640 NMEDIT
641 DSYMUTIL
642 MANIFEST_TOOL
643 RANLIB
644 ac_ct_AR
645 AR
646 LN_S
647 NM
648 ac_ct_DUMPBIN
649 DUMPBIN
650 LD
651 FGREP
652 EGREP
653 GREP
654 SED
655 LIBTOOL
656 OBJDUMP
657 DLLTOOL
658 AS
659 CPP
660 am__fastdepCC_FALSE
661 am__fastdepCC_TRUE
662 CCDEPMODE
663 am__nodep
664 AMDEPBACKSLASH
665 AMDEP_FALSE
666 AMDEP_TRUE
667 am__quote
668 am__include
669 DEPDIR
670 OBJEXT
671 EXEEXT
672 ac_ct_CC
673 CPPFLAGS
674 LDFLAGS
675 CFLAGS
676 CC
677 VE_LIB_AGE
678 VE_LIB_REVISION
679 VE_LIB_CURRENT
680 VF_LIB_AGE
681 VF_LIB_REVISION
682 VF_LIB_CURRENT
683 V_LIB_AGE
684 V_LIB_REVISION
685 V_LIB_CURRENT
686 ACLOCAL_AMFLAGS
687 MAINT
688 MAINTAINER_MODE_FALSE
689 MAINTAINER_MODE_TRUE
690 am__untar
691 am__tar
692 AMTAR
693 am__leading_dot
694 SET_MAKE
695 AWK
696 mkdir_p
697 MKDIR_P
698 INSTALL_STRIP_PROGRAM
699 STRIP
700 install_sh
701 MAKEINFO
702 AUTOHEADER
703 AUTOMAKE
704 AUTOCONF
705 ACLOCAL
706 VERSION
707 PACKAGE
708 CYGPATH_W
709 am__isrc
710 INSTALL_DATA
711 INSTALL_SCRIPT
712 INSTALL_PROGRAM
713 target_os
714 target_vendor
715 target_cpu
716 target
717 host_os
718 host_vendor
719 host_cpu
720 host
721 build_os
722 build_vendor
723 build_cpu
724 build
725 target_alias
726 host_alias
727 build_alias
728 LIBS
729 ECHO_T
730 ECHO_N
731 ECHO_C
732 DEFS
733 mandir
734 localedir
735 libdir
736 psdir
737 pdfdir
738 dvidir
739 htmldir
740 infodir
741 docdir
742 oldincludedir
743 includedir
744 localstatedir
745 sharedstatedir
746 sysconfdir
747 datadir
748 datarootdir
749 libexecdir
750 sbindir
751 bindir
752 program_transform_name
753 prefix
754 exec_prefix
755 PACKAGE_URL
756 PACKAGE_BUGREPORT
757 PACKAGE_STRING
758 PACKAGE_VERSION
759 PACKAGE_TARNAME
760 PACKAGE_NAME
761 PATH_SEPARATOR
762 SHELL'
763 ac_subst_files=''
764 ac_user_opts='
765 enable_option_checking
766 enable_maintainer_mode
767 enable_dependency_tracking
768 enable_shared
769 enable_static
770 with_pic
771 enable_fast_install
772 with_gnu_ld
773 with_sysroot
774 enable_libtool_lock
775 enable_docs
776 enable_examples
777 with_ogg
778 with_ogg_libraries
779 with_ogg_includes
780 enable_oggtest
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 PKG_CONFIG
792 OGG_CFLAGS
793 OGG_LIBS'
794
795
796 # Initialize some variables set by options.
797 ac_init_help=
798 ac_init_version=false
799 ac_unrecognized_opts=
800 ac_unrecognized_sep=
801 # The variables have the same names as the options, with
802 # dashes changed to underlines.
803 cache_file=/dev/null
804 exec_prefix=NONE
805 no_create=
806 no_recursion=
807 prefix=NONE
808 program_prefix=NONE
809 program_suffix=NONE
810 program_transform_name=s,x,x,
811 silent=
812 site=
813 srcdir=
814 verbose=
815 x_includes=NONE
816 x_libraries=NONE
817
818 # Installation directory options.
819 # These are left unexpanded so users can "make install exec_prefix=/foo"
820 # and all the variables that are supposed to be based on exec_prefix
821 # by default will actually change.
822 # Use braces instead of parens because sh, perl, etc. also accept them.
823 # (The list follows the same order as the GNU Coding Standards.)
824 bindir='${exec_prefix}/bin'
825 sbindir='${exec_prefix}/sbin'
826 libexecdir='${exec_prefix}/libexec'
827 datarootdir='${prefix}/share'
828 datadir='${datarootdir}'
829 sysconfdir='${prefix}/etc'
830 sharedstatedir='${prefix}/com'
831 localstatedir='${prefix}/var'
832 includedir='${prefix}/include'
833 oldincludedir='/usr/include'
834 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
835 infodir='${datarootdir}/info'
836 htmldir='${docdir}'
837 dvidir='${docdir}'
838 pdfdir='${docdir}'
839 psdir='${docdir}'
840 libdir='${exec_prefix}/lib'
841 localedir='${datarootdir}/locale'
842 mandir='${datarootdir}/man'
843
844 ac_prev=
845 ac_dashdash=
846 for ac_option
847 do
848   # If the previous option needs an argument, assign it.
849   if test -n "$ac_prev"; then
850     eval $ac_prev=\$ac_option
851     ac_prev=
852     continue
853   fi
854
855   case $ac_option in
856   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
857   *=)   ac_optarg= ;;
858   *)    ac_optarg=yes ;;
859   esac
860
861   # Accept the important Cygnus configure options, so we can diagnose typos.
862
863   case $ac_dashdash$ac_option in
864   --)
865     ac_dashdash=yes ;;
866
867   -bindir | --bindir | --bindi | --bind | --bin | --bi)
868     ac_prev=bindir ;;
869   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
870     bindir=$ac_optarg ;;
871
872   -build | --build | --buil | --bui | --bu)
873     ac_prev=build_alias ;;
874   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
875     build_alias=$ac_optarg ;;
876
877   -cache-file | --cache-file | --cache-fil | --cache-fi \
878   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
879     ac_prev=cache_file ;;
880   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
881   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
882     cache_file=$ac_optarg ;;
883
884   --config-cache | -C)
885     cache_file=config.cache ;;
886
887   -datadir | --datadir | --datadi | --datad)
888     ac_prev=datadir ;;
889   -datadir=* | --datadir=* | --datadi=* | --datad=*)
890     datadir=$ac_optarg ;;
891
892   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
893   | --dataroo | --dataro | --datar)
894     ac_prev=datarootdir ;;
895   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
896   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
897     datarootdir=$ac_optarg ;;
898
899   -disable-* | --disable-*)
900     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
901     # Reject names that are not valid shell variable names.
902     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
903       as_fn_error $? "invalid feature name: $ac_useropt"
904     ac_useropt_orig=$ac_useropt
905     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
906     case $ac_user_opts in
907       *"
908 "enable_$ac_useropt"
909 "*) ;;
910       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
911          ac_unrecognized_sep=', ';;
912     esac
913     eval enable_$ac_useropt=no ;;
914
915   -docdir | --docdir | --docdi | --doc | --do)
916     ac_prev=docdir ;;
917   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
918     docdir=$ac_optarg ;;
919
920   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
921     ac_prev=dvidir ;;
922   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
923     dvidir=$ac_optarg ;;
924
925   -enable-* | --enable-*)
926     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
927     # Reject names that are not valid shell variable names.
928     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
929       as_fn_error $? "invalid feature name: $ac_useropt"
930     ac_useropt_orig=$ac_useropt
931     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
932     case $ac_user_opts in
933       *"
934 "enable_$ac_useropt"
935 "*) ;;
936       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
937          ac_unrecognized_sep=', ';;
938     esac
939     eval enable_$ac_useropt=\$ac_optarg ;;
940
941   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
942   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
943   | --exec | --exe | --ex)
944     ac_prev=exec_prefix ;;
945   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
946   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
947   | --exec=* | --exe=* | --ex=*)
948     exec_prefix=$ac_optarg ;;
949
950   -gas | --gas | --ga | --g)
951     # Obsolete; use --with-gas.
952     with_gas=yes ;;
953
954   -help | --help | --hel | --he | -h)
955     ac_init_help=long ;;
956   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
957     ac_init_help=recursive ;;
958   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
959     ac_init_help=short ;;
960
961   -host | --host | --hos | --ho)
962     ac_prev=host_alias ;;
963   -host=* | --host=* | --hos=* | --ho=*)
964     host_alias=$ac_optarg ;;
965
966   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
967     ac_prev=htmldir ;;
968   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
969   | --ht=*)
970     htmldir=$ac_optarg ;;
971
972   -includedir | --includedir | --includedi | --included | --include \
973   | --includ | --inclu | --incl | --inc)
974     ac_prev=includedir ;;
975   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
976   | --includ=* | --inclu=* | --incl=* | --inc=*)
977     includedir=$ac_optarg ;;
978
979   -infodir | --infodir | --infodi | --infod | --info | --inf)
980     ac_prev=infodir ;;
981   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
982     infodir=$ac_optarg ;;
983
984   -libdir | --libdir | --libdi | --libd)
985     ac_prev=libdir ;;
986   -libdir=* | --libdir=* | --libdi=* | --libd=*)
987     libdir=$ac_optarg ;;
988
989   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
990   | --libexe | --libex | --libe)
991     ac_prev=libexecdir ;;
992   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
993   | --libexe=* | --libex=* | --libe=*)
994     libexecdir=$ac_optarg ;;
995
996   -localedir | --localedir | --localedi | --localed | --locale)
997     ac_prev=localedir ;;
998   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
999     localedir=$ac_optarg ;;
1000
1001   -localstatedir | --localstatedir | --localstatedi | --localstated \
1002   | --localstate | --localstat | --localsta | --localst | --locals)
1003     ac_prev=localstatedir ;;
1004   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1005   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1006     localstatedir=$ac_optarg ;;
1007
1008   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1009     ac_prev=mandir ;;
1010   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1011     mandir=$ac_optarg ;;
1012
1013   -nfp | --nfp | --nf)
1014     # Obsolete; use --without-fp.
1015     with_fp=no ;;
1016
1017   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1018   | --no-cr | --no-c | -n)
1019     no_create=yes ;;
1020
1021   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1022   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1023     no_recursion=yes ;;
1024
1025   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1026   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1027   | --oldin | --oldi | --old | --ol | --o)
1028     ac_prev=oldincludedir ;;
1029   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1030   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1031   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1032     oldincludedir=$ac_optarg ;;
1033
1034   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1035     ac_prev=prefix ;;
1036   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1037     prefix=$ac_optarg ;;
1038
1039   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1040   | --program-pre | --program-pr | --program-p)
1041     ac_prev=program_prefix ;;
1042   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1043   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1044     program_prefix=$ac_optarg ;;
1045
1046   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1047   | --program-suf | --program-su | --program-s)
1048     ac_prev=program_suffix ;;
1049   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1050   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1051     program_suffix=$ac_optarg ;;
1052
1053   -program-transform-name | --program-transform-name \
1054   | --program-transform-nam | --program-transform-na \
1055   | --program-transform-n | --program-transform- \
1056   | --program-transform | --program-transfor \
1057   | --program-transfo | --program-transf \
1058   | --program-trans | --program-tran \
1059   | --progr-tra | --program-tr | --program-t)
1060     ac_prev=program_transform_name ;;
1061   -program-transform-name=* | --program-transform-name=* \
1062   | --program-transform-nam=* | --program-transform-na=* \
1063   | --program-transform-n=* | --program-transform-=* \
1064   | --program-transform=* | --program-transfor=* \
1065   | --program-transfo=* | --program-transf=* \
1066   | --program-trans=* | --program-tran=* \
1067   | --progr-tra=* | --program-tr=* | --program-t=*)
1068     program_transform_name=$ac_optarg ;;
1069
1070   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1071     ac_prev=pdfdir ;;
1072   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1073     pdfdir=$ac_optarg ;;
1074
1075   -psdir | --psdir | --psdi | --psd | --ps)
1076     ac_prev=psdir ;;
1077   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1078     psdir=$ac_optarg ;;
1079
1080   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1081   | -silent | --silent | --silen | --sile | --sil)
1082     silent=yes ;;
1083
1084   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1085     ac_prev=sbindir ;;
1086   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1087   | --sbi=* | --sb=*)
1088     sbindir=$ac_optarg ;;
1089
1090   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1091   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1092   | --sharedst | --shareds | --shared | --share | --shar \
1093   | --sha | --sh)
1094     ac_prev=sharedstatedir ;;
1095   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1096   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1097   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1098   | --sha=* | --sh=*)
1099     sharedstatedir=$ac_optarg ;;
1100
1101   -site | --site | --sit)
1102     ac_prev=site ;;
1103   -site=* | --site=* | --sit=*)
1104     site=$ac_optarg ;;
1105
1106   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1107     ac_prev=srcdir ;;
1108   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1109     srcdir=$ac_optarg ;;
1110
1111   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1112   | --syscon | --sysco | --sysc | --sys | --sy)
1113     ac_prev=sysconfdir ;;
1114   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1115   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1116     sysconfdir=$ac_optarg ;;
1117
1118   -target | --target | --targe | --targ | --tar | --ta | --t)
1119     ac_prev=target_alias ;;
1120   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1121     target_alias=$ac_optarg ;;
1122
1123   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1124     verbose=yes ;;
1125
1126   -version | --version | --versio | --versi | --vers | -V)
1127     ac_init_version=: ;;
1128
1129   -with-* | --with-*)
1130     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1131     # Reject names that are not valid shell variable names.
1132     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1133       as_fn_error $? "invalid package name: $ac_useropt"
1134     ac_useropt_orig=$ac_useropt
1135     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136     case $ac_user_opts in
1137       *"
1138 "with_$ac_useropt"
1139 "*) ;;
1140       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1141          ac_unrecognized_sep=', ';;
1142     esac
1143     eval with_$ac_useropt=\$ac_optarg ;;
1144
1145   -without-* | --without-*)
1146     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1147     # Reject names that are not valid shell variable names.
1148     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1149       as_fn_error $? "invalid package name: $ac_useropt"
1150     ac_useropt_orig=$ac_useropt
1151     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1152     case $ac_user_opts in
1153       *"
1154 "with_$ac_useropt"
1155 "*) ;;
1156       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1157          ac_unrecognized_sep=', ';;
1158     esac
1159     eval with_$ac_useropt=no ;;
1160
1161   --x)
1162     # Obsolete; use --with-x.
1163     with_x=yes ;;
1164
1165   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1166   | --x-incl | --x-inc | --x-in | --x-i)
1167     ac_prev=x_includes ;;
1168   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1169   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1170     x_includes=$ac_optarg ;;
1171
1172   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1173   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1174     ac_prev=x_libraries ;;
1175   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1176   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1177     x_libraries=$ac_optarg ;;
1178
1179   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1180 Try \`$0 --help' for more information"
1181     ;;
1182
1183   *=*)
1184     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1185     # Reject names that are not valid shell variable names.
1186     case $ac_envvar in #(
1187       '' | [0-9]* | *[!_$as_cr_alnum]* )
1188       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1189     esac
1190     eval $ac_envvar=\$ac_optarg
1191     export $ac_envvar ;;
1192
1193   *)
1194     # FIXME: should be removed in autoconf 3.0.
1195     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1196     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1197       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1198     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1199     ;;
1200
1201   esac
1202 done
1203
1204 if test -n "$ac_prev"; then
1205   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1206   as_fn_error $? "missing argument to $ac_option"
1207 fi
1208
1209 if test -n "$ac_unrecognized_opts"; then
1210   case $enable_option_checking in
1211     no) ;;
1212     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1213     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1214   esac
1215 fi
1216
1217 # Check all directory arguments for consistency.
1218 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1219                 datadir sysconfdir sharedstatedir localstatedir includedir \
1220                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1221                 libdir localedir mandir
1222 do
1223   eval ac_val=\$$ac_var
1224   # Remove trailing slashes.
1225   case $ac_val in
1226     */ )
1227       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1228       eval $ac_var=\$ac_val;;
1229   esac
1230   # Be sure to have absolute directory names.
1231   case $ac_val in
1232     [\\/$]* | ?:[\\/]* )  continue;;
1233     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1234   esac
1235   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1236 done
1237
1238 # There might be people who depend on the old broken behavior: `$host'
1239 # used to hold the argument of --host etc.
1240 # FIXME: To remove some day.
1241 build=$build_alias
1242 host=$host_alias
1243 target=$target_alias
1244
1245 # FIXME: To remove some day.
1246 if test "x$host_alias" != x; then
1247   if test "x$build_alias" = x; then
1248     cross_compiling=maybe
1249     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1250     If a cross compiler is detected then cross compile mode will be used" >&2
1251   elif test "x$build_alias" != "x$host_alias"; then
1252     cross_compiling=yes
1253   fi
1254 fi
1255
1256 ac_tool_prefix=
1257 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1258
1259 test "$silent" = yes && exec 6>/dev/null
1260
1261
1262 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1263 ac_ls_di=`ls -di .` &&
1264 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1265   as_fn_error $? "working directory cannot be determined"
1266 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1267   as_fn_error $? "pwd does not report name of working directory"
1268
1269
1270 # Find the source files, if location was not specified.
1271 if test -z "$srcdir"; then
1272   ac_srcdir_defaulted=yes
1273   # Try the directory containing this script, then the parent directory.
1274   ac_confdir=`$as_dirname -- "$as_myself" ||
1275 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1276          X"$as_myself" : 'X\(//\)[^/]' \| \
1277          X"$as_myself" : 'X\(//\)$' \| \
1278          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1279 $as_echo X"$as_myself" |
1280     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1281             s//\1/
1282             q
1283           }
1284           /^X\(\/\/\)[^/].*/{
1285             s//\1/
1286             q
1287           }
1288           /^X\(\/\/\)$/{
1289             s//\1/
1290             q
1291           }
1292           /^X\(\/\).*/{
1293             s//\1/
1294             q
1295           }
1296           s/.*/./; q'`
1297   srcdir=$ac_confdir
1298   if test ! -r "$srcdir/$ac_unique_file"; then
1299     srcdir=..
1300   fi
1301 else
1302   ac_srcdir_defaulted=no
1303 fi
1304 if test ! -r "$srcdir/$ac_unique_file"; then
1305   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1306   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1307 fi
1308 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1309 ac_abs_confdir=`(
1310         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1311         pwd)`
1312 # When building in place, set srcdir=.
1313 if test "$ac_abs_confdir" = "$ac_pwd"; then
1314   srcdir=.
1315 fi
1316 # Remove unnecessary trailing slashes from srcdir.
1317 # Double slashes in file names in object file debugging info
1318 # mess up M-x gdb in Emacs.
1319 case $srcdir in
1320 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1321 esac
1322 for ac_var in $ac_precious_vars; do
1323   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1324   eval ac_env_${ac_var}_value=\$${ac_var}
1325   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1326   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1327 done
1328
1329 #
1330 # Report the --help message.
1331 #
1332 if test "$ac_init_help" = "long"; then
1333   # Omit some internal or obsolete options to make the list less imposing.
1334   # This message is too long to be a string in the A/UX 3.1 sh.
1335   cat <<_ACEOF
1336 \`configure' configures libvorbis 1.3.4 to adapt to many kinds of systems.
1337
1338 Usage: $0 [OPTION]... [VAR=VALUE]...
1339
1340 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1341 VAR=VALUE.  See below for descriptions of some of the useful variables.
1342
1343 Defaults for the options are specified in brackets.
1344
1345 Configuration:
1346   -h, --help              display this help and exit
1347       --help=short        display options specific to this package
1348       --help=recursive    display the short help of all the included packages
1349   -V, --version           display version information and exit
1350   -q, --quiet, --silent   do not print \`checking ...' messages
1351       --cache-file=FILE   cache test results in FILE [disabled]
1352   -C, --config-cache      alias for \`--cache-file=config.cache'
1353   -n, --no-create         do not create output files
1354       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1355
1356 Installation directories:
1357   --prefix=PREFIX         install architecture-independent files in PREFIX
1358                           [$ac_default_prefix]
1359   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1360                           [PREFIX]
1361
1362 By default, \`make install' will install all the files in
1363 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1364 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1365 for instance \`--prefix=\$HOME'.
1366
1367 For better control, use the options below.
1368
1369 Fine tuning of the installation directories:
1370   --bindir=DIR            user executables [EPREFIX/bin]
1371   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1372   --libexecdir=DIR        program executables [EPREFIX/libexec]
1373   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1374   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1375   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1376   --libdir=DIR            object code libraries [EPREFIX/lib]
1377   --includedir=DIR        C header files [PREFIX/include]
1378   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1379   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1380   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1381   --infodir=DIR           info documentation [DATAROOTDIR/info]
1382   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1383   --mandir=DIR            man documentation [DATAROOTDIR/man]
1384   --docdir=DIR            documentation root [DATAROOTDIR/doc/libvorbis]
1385   --htmldir=DIR           html documentation [DOCDIR]
1386   --dvidir=DIR            dvi documentation [DOCDIR]
1387   --pdfdir=DIR            pdf documentation [DOCDIR]
1388   --psdir=DIR             ps documentation [DOCDIR]
1389 _ACEOF
1390
1391   cat <<\_ACEOF
1392
1393 Program names:
1394   --program-prefix=PREFIX            prepend PREFIX to installed program names
1395   --program-suffix=SUFFIX            append SUFFIX to installed program names
1396   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1397
1398 System types:
1399   --build=BUILD     configure for building on BUILD [guessed]
1400   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1401   --target=TARGET   configure for building compilers for TARGET [HOST]
1402 _ACEOF
1403 fi
1404
1405 if test -n "$ac_init_help"; then
1406   case $ac_init_help in
1407      short | recursive ) echo "Configuration of libvorbis 1.3.4:";;
1408    esac
1409   cat <<\_ACEOF
1410
1411 Optional Features:
1412   --disable-option-checking  ignore unrecognized --enable/--with options
1413   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1414   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1415   --enable-maintainer-mode  enable make rules and dependencies not useful
1416                           (and sometimes confusing) to the casual installer
1417   --disable-dependency-tracking  speeds up one-time build
1418   --enable-dependency-tracking   do not reject slow dependency extractors
1419   --enable-shared[=PKGS]  build shared libraries [default=yes]
1420   --enable-static[=PKGS]  build static libraries [default=yes]
1421   --enable-fast-install[=PKGS]
1422                           optimize for fast installation [default=yes]
1423   --disable-libtool-lock  avoid locking (might break parallel builds)
1424   --enable-docs           build the documentation
1425   --enable-examples       build the examples
1426   --disable-oggtest       Do not try to compile and run a test Ogg program
1427
1428 Optional Packages:
1429   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1430   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1431   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1432                           both]
1433   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1434   --with-sysroot=DIR Search for dependent libraries within DIR
1435                         (or the compiler's sysroot if not specified).
1436   --with-ogg=PFX          Prefix where libogg is installed (optional)
1437   --with-ogg-libraries=DIR
1438                           Directory where libogg library is installed
1439                           (optional)
1440   --with-ogg-includes=DIR Directory where libogg header files are installed
1441                           (optional)
1442
1443 Some influential environment variables:
1444   CC          C compiler command
1445   CFLAGS      C compiler flags
1446   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1447               nonstandard directory <lib dir>
1448   LIBS        libraries to pass to the linker, e.g. -l<library>
1449   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1450               you have headers in a nonstandard directory <include dir>
1451   CPP         C preprocessor
1452   PKG_CONFIG  path to pkg-config utility
1453   OGG_CFLAGS  C compiler flags for OGG, overriding pkg-config
1454   OGG_LIBS    linker flags for OGG, overriding pkg-config
1455
1456 Use these variables to override the choices made by `configure' or to help
1457 it to find libraries and programs with nonstandard names/locations.
1458
1459 Report bugs to <vorbis-dev@xiph.org>.
1460 _ACEOF
1461 ac_status=$?
1462 fi
1463
1464 if test "$ac_init_help" = "recursive"; then
1465   # If there are subdirs, report their specific --help.
1466   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1467     test -d "$ac_dir" ||
1468       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1469       continue
1470     ac_builddir=.
1471
1472 case "$ac_dir" in
1473 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1474 *)
1475   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1476   # A ".." for each directory in $ac_dir_suffix.
1477   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1478   case $ac_top_builddir_sub in
1479   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1480   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1481   esac ;;
1482 esac
1483 ac_abs_top_builddir=$ac_pwd
1484 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1485 # for backward compatibility:
1486 ac_top_builddir=$ac_top_build_prefix
1487
1488 case $srcdir in
1489   .)  # We are building in place.
1490     ac_srcdir=.
1491     ac_top_srcdir=$ac_top_builddir_sub
1492     ac_abs_top_srcdir=$ac_pwd ;;
1493   [\\/]* | ?:[\\/]* )  # Absolute name.
1494     ac_srcdir=$srcdir$ac_dir_suffix;
1495     ac_top_srcdir=$srcdir
1496     ac_abs_top_srcdir=$srcdir ;;
1497   *) # Relative name.
1498     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1499     ac_top_srcdir=$ac_top_build_prefix$srcdir
1500     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1501 esac
1502 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1503
1504     cd "$ac_dir" || { ac_status=$?; continue; }
1505     # Check for guested configure.
1506     if test -f "$ac_srcdir/configure.gnu"; then
1507       echo &&
1508       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1509     elif test -f "$ac_srcdir/configure"; then
1510       echo &&
1511       $SHELL "$ac_srcdir/configure" --help=recursive
1512     else
1513       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1514     fi || ac_status=$?
1515     cd "$ac_pwd" || { ac_status=$?; break; }
1516   done
1517 fi
1518
1519 test -n "$ac_init_help" && exit $ac_status
1520 if $ac_init_version; then
1521   cat <<\_ACEOF
1522 libvorbis configure 1.3.4
1523 generated by GNU Autoconf 2.68
1524
1525 Copyright (C) 2010 Free Software Foundation, Inc.
1526 This configure script is free software; the Free Software Foundation
1527 gives unlimited permission to copy, distribute and modify it.
1528 _ACEOF
1529   exit
1530 fi
1531
1532 ## ------------------------ ##
1533 ## Autoconf initialization. ##
1534 ## ------------------------ ##
1535
1536 # ac_fn_c_try_compile LINENO
1537 # --------------------------
1538 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1539 ac_fn_c_try_compile ()
1540 {
1541   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1542   rm -f conftest.$ac_objext
1543   if { { ac_try="$ac_compile"
1544 case "(($ac_try" in
1545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1546   *) ac_try_echo=$ac_try;;
1547 esac
1548 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1549 $as_echo "$ac_try_echo"; } >&5
1550   (eval "$ac_compile") 2>conftest.err
1551   ac_status=$?
1552   if test -s conftest.err; then
1553     grep -v '^ *+' conftest.err >conftest.er1
1554     cat conftest.er1 >&5
1555     mv -f conftest.er1 conftest.err
1556   fi
1557   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1558   test $ac_status = 0; } && {
1559          test -z "$ac_c_werror_flag" ||
1560          test ! -s conftest.err
1561        } && test -s conftest.$ac_objext; then :
1562   ac_retval=0
1563 else
1564   $as_echo "$as_me: failed program was:" >&5
1565 sed 's/^/| /' conftest.$ac_ext >&5
1566
1567         ac_retval=1
1568 fi
1569   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1570   as_fn_set_status $ac_retval
1571
1572 } # ac_fn_c_try_compile
1573
1574 # ac_fn_c_try_cpp LINENO
1575 # ----------------------
1576 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1577 ac_fn_c_try_cpp ()
1578 {
1579   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1580   if { { ac_try="$ac_cpp conftest.$ac_ext"
1581 case "(($ac_try" in
1582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1583   *) ac_try_echo=$ac_try;;
1584 esac
1585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1586 $as_echo "$ac_try_echo"; } >&5
1587   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1588   ac_status=$?
1589   if test -s conftest.err; then
1590     grep -v '^ *+' conftest.err >conftest.er1
1591     cat conftest.er1 >&5
1592     mv -f conftest.er1 conftest.err
1593   fi
1594   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1595   test $ac_status = 0; } > conftest.i && {
1596          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1597          test ! -s conftest.err
1598        }; then :
1599   ac_retval=0
1600 else
1601   $as_echo "$as_me: failed program was:" >&5
1602 sed 's/^/| /' conftest.$ac_ext >&5
1603
1604     ac_retval=1
1605 fi
1606   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1607   as_fn_set_status $ac_retval
1608
1609 } # ac_fn_c_try_cpp
1610
1611 # ac_fn_c_try_link LINENO
1612 # -----------------------
1613 # Try to link conftest.$ac_ext, and return whether this succeeded.
1614 ac_fn_c_try_link ()
1615 {
1616   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617   rm -f conftest.$ac_objext conftest$ac_exeext
1618   if { { ac_try="$ac_link"
1619 case "(($ac_try" in
1620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1621   *) ac_try_echo=$ac_try;;
1622 esac
1623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1624 $as_echo "$ac_try_echo"; } >&5
1625   (eval "$ac_link") 2>conftest.err
1626   ac_status=$?
1627   if test -s conftest.err; then
1628     grep -v '^ *+' conftest.err >conftest.er1
1629     cat conftest.er1 >&5
1630     mv -f conftest.er1 conftest.err
1631   fi
1632   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633   test $ac_status = 0; } && {
1634          test -z "$ac_c_werror_flag" ||
1635          test ! -s conftest.err
1636        } && test -s conftest$ac_exeext && {
1637          test "$cross_compiling" = yes ||
1638          $as_test_x conftest$ac_exeext
1639        }; then :
1640   ac_retval=0
1641 else
1642   $as_echo "$as_me: failed program was:" >&5
1643 sed 's/^/| /' conftest.$ac_ext >&5
1644
1645         ac_retval=1
1646 fi
1647   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1648   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1649   # interfere with the next link command; also delete a directory that is
1650   # left behind by Apple's compiler.  We do this before executing the actions.
1651   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1652   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1653   as_fn_set_status $ac_retval
1654
1655 } # ac_fn_c_try_link
1656
1657 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1658 # -------------------------------------------------------
1659 # Tests whether HEADER exists and can be compiled using the include files in
1660 # INCLUDES, setting the cache variable VAR accordingly.
1661 ac_fn_c_check_header_compile ()
1662 {
1663   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1665 $as_echo_n "checking for $2... " >&6; }
1666 if eval \${$3+:} false; then :
1667   $as_echo_n "(cached) " >&6
1668 else
1669   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1670 /* end confdefs.h.  */
1671 $4
1672 #include <$2>
1673 _ACEOF
1674 if ac_fn_c_try_compile "$LINENO"; then :
1675   eval "$3=yes"
1676 else
1677   eval "$3=no"
1678 fi
1679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1680 fi
1681 eval ac_res=\$$3
1682                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1683 $as_echo "$ac_res" >&6; }
1684   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1685
1686 } # ac_fn_c_check_header_compile
1687
1688 # ac_fn_c_try_run LINENO
1689 # ----------------------
1690 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1691 # that executables *can* be run.
1692 ac_fn_c_try_run ()
1693 {
1694   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695   if { { ac_try="$ac_link"
1696 case "(($ac_try" in
1697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698   *) ac_try_echo=$ac_try;;
1699 esac
1700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 $as_echo "$ac_try_echo"; } >&5
1702   (eval "$ac_link") 2>&5
1703   ac_status=$?
1704   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1706   { { case "(($ac_try" in
1707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1708   *) ac_try_echo=$ac_try;;
1709 esac
1710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1711 $as_echo "$ac_try_echo"; } >&5
1712   (eval "$ac_try") 2>&5
1713   ac_status=$?
1714   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715   test $ac_status = 0; }; }; then :
1716   ac_retval=0
1717 else
1718   $as_echo "$as_me: program exited with status $ac_status" >&5
1719        $as_echo "$as_me: failed program was:" >&5
1720 sed 's/^/| /' conftest.$ac_ext >&5
1721
1722        ac_retval=$ac_status
1723 fi
1724   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1725   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1726   as_fn_set_status $ac_retval
1727
1728 } # ac_fn_c_try_run
1729
1730 # ac_fn_c_check_func LINENO FUNC VAR
1731 # ----------------------------------
1732 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1733 ac_fn_c_check_func ()
1734 {
1735   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1737 $as_echo_n "checking for $2... " >&6; }
1738 if eval \${$3+:} false; then :
1739   $as_echo_n "(cached) " >&6
1740 else
1741   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1742 /* end confdefs.h.  */
1743 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1744    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1745 #define $2 innocuous_$2
1746
1747 /* System header to define __stub macros and hopefully few prototypes,
1748     which can conflict with char $2 (); below.
1749     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1750     <limits.h> exists even on freestanding compilers.  */
1751
1752 #ifdef __STDC__
1753 # include <limits.h>
1754 #else
1755 # include <assert.h>
1756 #endif
1757
1758 #undef $2
1759
1760 /* Override any GCC internal prototype to avoid an error.
1761    Use char because int might match the return type of a GCC
1762    builtin and then its argument prototype would still apply.  */
1763 #ifdef __cplusplus
1764 extern "C"
1765 #endif
1766 char $2 ();
1767 /* The GNU C library defines this for functions which it implements
1768     to always fail with ENOSYS.  Some functions are actually named
1769     something starting with __ and the normal name is an alias.  */
1770 #if defined __stub_$2 || defined __stub___$2
1771 choke me
1772 #endif
1773
1774 int
1775 main ()
1776 {
1777 return $2 ();
1778   ;
1779   return 0;
1780 }
1781 _ACEOF
1782 if ac_fn_c_try_link "$LINENO"; then :
1783   eval "$3=yes"
1784 else
1785   eval "$3=no"
1786 fi
1787 rm -f core conftest.err conftest.$ac_objext \
1788     conftest$ac_exeext conftest.$ac_ext
1789 fi
1790 eval ac_res=\$$3
1791                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1792 $as_echo "$ac_res" >&6; }
1793   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1794
1795 } # ac_fn_c_check_func
1796
1797 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1798 # -------------------------------------------------------
1799 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1800 # the include files in INCLUDES and setting the cache variable VAR
1801 # accordingly.
1802 ac_fn_c_check_header_mongrel ()
1803 {
1804   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805   if eval \${$3+:} false; then :
1806   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1807 $as_echo_n "checking for $2... " >&6; }
1808 if eval \${$3+:} false; then :
1809   $as_echo_n "(cached) " >&6
1810 fi
1811 eval ac_res=\$$3
1812                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1813 $as_echo "$ac_res" >&6; }
1814 else
1815   # Is the header compilable?
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1817 $as_echo_n "checking $2 usability... " >&6; }
1818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1819 /* end confdefs.h.  */
1820 $4
1821 #include <$2>
1822 _ACEOF
1823 if ac_fn_c_try_compile "$LINENO"; then :
1824   ac_header_compiler=yes
1825 else
1826   ac_header_compiler=no
1827 fi
1828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1830 $as_echo "$ac_header_compiler" >&6; }
1831
1832 # Is the header present?
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1834 $as_echo_n "checking $2 presence... " >&6; }
1835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1836 /* end confdefs.h.  */
1837 #include <$2>
1838 _ACEOF
1839 if ac_fn_c_try_cpp "$LINENO"; then :
1840   ac_header_preproc=yes
1841 else
1842   ac_header_preproc=no
1843 fi
1844 rm -f conftest.err conftest.i conftest.$ac_ext
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1846 $as_echo "$ac_header_preproc" >&6; }
1847
1848 # So?  What about this header?
1849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1850   yes:no: )
1851     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1852 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1853     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1854 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1855     ;;
1856   no:yes:* )
1857     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1858 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1859     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1860 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1861     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1862 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1863     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1864 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1865     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1866 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1867 ( $as_echo "## ---------------------------------- ##
1868 ## Report this to vorbis-dev@xiph.org ##
1869 ## ---------------------------------- ##"
1870      ) | sed "s/^/$as_me: WARNING:     /" >&2
1871     ;;
1872 esac
1873   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1874 $as_echo_n "checking for $2... " >&6; }
1875 if eval \${$3+:} false; then :
1876   $as_echo_n "(cached) " >&6
1877 else
1878   eval "$3=\$ac_header_compiler"
1879 fi
1880 eval ac_res=\$$3
1881                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1882 $as_echo "$ac_res" >&6; }
1883 fi
1884   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1885
1886 } # ac_fn_c_check_header_mongrel
1887
1888 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1889 # -------------------------------------------
1890 # Tests whether TYPE exists after having included INCLUDES, setting cache
1891 # variable VAR accordingly.
1892 ac_fn_c_check_type ()
1893 {
1894   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1896 $as_echo_n "checking for $2... " >&6; }
1897 if eval \${$3+:} false; then :
1898   $as_echo_n "(cached) " >&6
1899 else
1900   eval "$3=no"
1901   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1902 /* end confdefs.h.  */
1903 $4
1904 int
1905 main ()
1906 {
1907 if (sizeof ($2))
1908          return 0;
1909   ;
1910   return 0;
1911 }
1912 _ACEOF
1913 if ac_fn_c_try_compile "$LINENO"; then :
1914   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1915 /* end confdefs.h.  */
1916 $4
1917 int
1918 main ()
1919 {
1920 if (sizeof (($2)))
1921             return 0;
1922   ;
1923   return 0;
1924 }
1925 _ACEOF
1926 if ac_fn_c_try_compile "$LINENO"; then :
1927
1928 else
1929   eval "$3=yes"
1930 fi
1931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1932 fi
1933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1934 fi
1935 eval ac_res=\$$3
1936                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1937 $as_echo "$ac_res" >&6; }
1938   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1939
1940 } # ac_fn_c_check_type
1941 cat >config.log <<_ACEOF
1942 This file contains any messages produced by compilers while
1943 running configure, to aid debugging if configure makes a mistake.
1944
1945 It was created by libvorbis $as_me 1.3.4, which was
1946 generated by GNU Autoconf 2.68.  Invocation command line was
1947
1948   $ $0 $@
1949
1950 _ACEOF
1951 exec 5>>config.log
1952 {
1953 cat <<_ASUNAME
1954 ## --------- ##
1955 ## Platform. ##
1956 ## --------- ##
1957
1958 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1959 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1960 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1961 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1962 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1963
1964 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1965 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1966
1967 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1968 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1969 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1970 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1971 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1972 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1973 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1974
1975 _ASUNAME
1976
1977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1978 for as_dir in $PATH
1979 do
1980   IFS=$as_save_IFS
1981   test -z "$as_dir" && as_dir=.
1982     $as_echo "PATH: $as_dir"
1983   done
1984 IFS=$as_save_IFS
1985
1986 } >&5
1987
1988 cat >&5 <<_ACEOF
1989
1990
1991 ## ----------- ##
1992 ## Core tests. ##
1993 ## ----------- ##
1994
1995 _ACEOF
1996
1997
1998 # Keep a trace of the command line.
1999 # Strip out --no-create and --no-recursion so they do not pile up.
2000 # Strip out --silent because we don't want to record it for future runs.
2001 # Also quote any args containing shell meta-characters.
2002 # Make two passes to allow for proper duplicate-argument suppression.
2003 ac_configure_args=
2004 ac_configure_args0=
2005 ac_configure_args1=
2006 ac_must_keep_next=false
2007 for ac_pass in 1 2
2008 do
2009   for ac_arg
2010   do
2011     case $ac_arg in
2012     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2013     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2014     | -silent | --silent | --silen | --sile | --sil)
2015       continue ;;
2016     *\'*)
2017       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2018     esac
2019     case $ac_pass in
2020     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2021     2)
2022       as_fn_append ac_configure_args1 " '$ac_arg'"
2023       if test $ac_must_keep_next = true; then
2024         ac_must_keep_next=false # Got value, back to normal.
2025       else
2026         case $ac_arg in
2027           *=* | --config-cache | -C | -disable-* | --disable-* \
2028           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2029           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2030           | -with-* | --with-* | -without-* | --without-* | --x)
2031             case "$ac_configure_args0 " in
2032               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2033             esac
2034             ;;
2035           -* ) ac_must_keep_next=true ;;
2036         esac
2037       fi
2038       as_fn_append ac_configure_args " '$ac_arg'"
2039       ;;
2040     esac
2041   done
2042 done
2043 { ac_configure_args0=; unset ac_configure_args0;}
2044 { ac_configure_args1=; unset ac_configure_args1;}
2045
2046 # When interrupted or exit'd, cleanup temporary files, and complete
2047 # config.log.  We remove comments because anyway the quotes in there
2048 # would cause problems or look ugly.
2049 # WARNING: Use '\'' to represent an apostrophe within the trap.
2050 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2051 trap 'exit_status=$?
2052   # Save into config.log some information that might help in debugging.
2053   {
2054     echo
2055
2056     $as_echo "## ---------------- ##
2057 ## Cache variables. ##
2058 ## ---------------- ##"
2059     echo
2060     # The following way of writing the cache mishandles newlines in values,
2061 (
2062   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2063     eval ac_val=\$$ac_var
2064     case $ac_val in #(
2065     *${as_nl}*)
2066       case $ac_var in #(
2067       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2068 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2069       esac
2070       case $ac_var in #(
2071       _ | IFS | as_nl) ;; #(
2072       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2073       *) { eval $ac_var=; unset $ac_var;} ;;
2074       esac ;;
2075     esac
2076   done
2077   (set) 2>&1 |
2078     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2079     *${as_nl}ac_space=\ *)
2080       sed -n \
2081         "s/'\''/'\''\\\\'\'''\''/g;
2082           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2083       ;; #(
2084     *)
2085       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2086       ;;
2087     esac |
2088     sort
2089 )
2090     echo
2091
2092     $as_echo "## ----------------- ##
2093 ## Output variables. ##
2094 ## ----------------- ##"
2095     echo
2096     for ac_var in $ac_subst_vars
2097     do
2098       eval ac_val=\$$ac_var
2099       case $ac_val in
2100       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2101       esac
2102       $as_echo "$ac_var='\''$ac_val'\''"
2103     done | sort
2104     echo
2105
2106     if test -n "$ac_subst_files"; then
2107       $as_echo "## ------------------- ##
2108 ## File substitutions. ##
2109 ## ------------------- ##"
2110       echo
2111       for ac_var in $ac_subst_files
2112       do
2113         eval ac_val=\$$ac_var
2114         case $ac_val in
2115         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2116         esac
2117         $as_echo "$ac_var='\''$ac_val'\''"
2118       done | sort
2119       echo
2120     fi
2121
2122     if test -s confdefs.h; then
2123       $as_echo "## ----------- ##
2124 ## confdefs.h. ##
2125 ## ----------- ##"
2126       echo
2127       cat confdefs.h
2128       echo
2129     fi
2130     test "$ac_signal" != 0 &&
2131       $as_echo "$as_me: caught signal $ac_signal"
2132     $as_echo "$as_me: exit $exit_status"
2133   } >&5
2134   rm -f core *.core core.conftest.* &&
2135     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2136     exit $exit_status
2137 ' 0
2138 for ac_signal in 1 2 13 15; do
2139   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2140 done
2141 ac_signal=0
2142
2143 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2144 rm -f -r conftest* confdefs.h
2145
2146 $as_echo "/* confdefs.h */" > confdefs.h
2147
2148 # Predefined preprocessor variables.
2149
2150 cat >>confdefs.h <<_ACEOF
2151 #define PACKAGE_NAME "$PACKAGE_NAME"
2152 _ACEOF
2153
2154 cat >>confdefs.h <<_ACEOF
2155 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2156 _ACEOF
2157
2158 cat >>confdefs.h <<_ACEOF
2159 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2160 _ACEOF
2161
2162 cat >>confdefs.h <<_ACEOF
2163 #define PACKAGE_STRING "$PACKAGE_STRING"
2164 _ACEOF
2165
2166 cat >>confdefs.h <<_ACEOF
2167 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2168 _ACEOF
2169
2170 cat >>confdefs.h <<_ACEOF
2171 #define PACKAGE_URL "$PACKAGE_URL"
2172 _ACEOF
2173
2174
2175 # Let the site file select an alternate cache file if it wants to.
2176 # Prefer an explicitly selected file to automatically selected ones.
2177 ac_site_file1=NONE
2178 ac_site_file2=NONE
2179 if test -n "$CONFIG_SITE"; then
2180   # We do not want a PATH search for config.site.
2181   case $CONFIG_SITE in #((
2182     -*)  ac_site_file1=./$CONFIG_SITE;;
2183     */*) ac_site_file1=$CONFIG_SITE;;
2184     *)   ac_site_file1=./$CONFIG_SITE;;
2185   esac
2186 elif test "x$prefix" != xNONE; then
2187   ac_site_file1=$prefix/share/config.site
2188   ac_site_file2=$prefix/etc/config.site
2189 else
2190   ac_site_file1=$ac_default_prefix/share/config.site
2191   ac_site_file2=$ac_default_prefix/etc/config.site
2192 fi
2193 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2194 do
2195   test "x$ac_site_file" = xNONE && continue
2196   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2197     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2198 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2199     sed 's/^/| /' "$ac_site_file" >&5
2200     . "$ac_site_file" \
2201       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2203 as_fn_error $? "failed to load site script $ac_site_file
2204 See \`config.log' for more details" "$LINENO" 5; }
2205   fi
2206 done
2207
2208 if test -r "$cache_file"; then
2209   # Some versions of bash will fail to source /dev/null (special files
2210   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2211   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2212     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2213 $as_echo "$as_me: loading cache $cache_file" >&6;}
2214     case $cache_file in
2215       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2216       *)                      . "./$cache_file";;
2217     esac
2218   fi
2219 else
2220   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2221 $as_echo "$as_me: creating cache $cache_file" >&6;}
2222   >$cache_file
2223 fi
2224
2225 # Check that the precious variables saved in the cache have kept the same
2226 # value.
2227 ac_cache_corrupted=false
2228 for ac_var in $ac_precious_vars; do
2229   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2230   eval ac_new_set=\$ac_env_${ac_var}_set
2231   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2232   eval ac_new_val=\$ac_env_${ac_var}_value
2233   case $ac_old_set,$ac_new_set in
2234     set,)
2235       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2236 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2237       ac_cache_corrupted=: ;;
2238     ,set)
2239       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2240 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2241       ac_cache_corrupted=: ;;
2242     ,);;
2243     *)
2244       if test "x$ac_old_val" != "x$ac_new_val"; then
2245         # differences in whitespace do not lead to failure.
2246         ac_old_val_w=`echo x $ac_old_val`
2247         ac_new_val_w=`echo x $ac_new_val`
2248         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2249           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2250 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2251           ac_cache_corrupted=:
2252         else
2253           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2254 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2255           eval $ac_var=\$ac_old_val
2256         fi
2257         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2258 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2259         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2260 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2261       fi;;
2262   esac
2263   # Pass precious variables to config.status.
2264   if test "$ac_new_set" = set; then
2265     case $ac_new_val in
2266     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2267     *) ac_arg=$ac_var=$ac_new_val ;;
2268     esac
2269     case " $ac_configure_args " in
2270       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2271       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2272     esac
2273   fi
2274 done
2275 if $ac_cache_corrupted; then
2276   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2277 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2278   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2279 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2280   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2281 fi
2282 ## -------------------- ##
2283 ## Main body of script. ##
2284 ## -------------------- ##
2285
2286 ac_ext=c
2287 ac_cpp='$CPP $CPPFLAGS'
2288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2291
2292
2293
2294
2295
2296 ac_aux_dir=
2297 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2298   if test -f "$ac_dir/install-sh"; then
2299     ac_aux_dir=$ac_dir
2300     ac_install_sh="$ac_aux_dir/install-sh -c"
2301     break
2302   elif test -f "$ac_dir/install.sh"; then
2303     ac_aux_dir=$ac_dir
2304     ac_install_sh="$ac_aux_dir/install.sh -c"
2305     break
2306   elif test -f "$ac_dir/shtool"; then
2307     ac_aux_dir=$ac_dir
2308     ac_install_sh="$ac_aux_dir/shtool install -c"
2309     break
2310   fi
2311 done
2312 if test -z "$ac_aux_dir"; then
2313   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2314 fi
2315
2316 # These three variables are undocumented and unsupported,
2317 # and are intended to be withdrawn in a future Autoconf release.
2318 # They can cause serious problems if a builder's source tree is in a directory
2319 # whose full name contains unusual characters.
2320 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2321 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2322 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2323
2324
2325 # Make sure we can run config.sub.
2326 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2327   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2328
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2330 $as_echo_n "checking build system type... " >&6; }
2331 if ${ac_cv_build+:} false; then :
2332   $as_echo_n "(cached) " >&6
2333 else
2334   ac_build_alias=$build_alias
2335 test "x$ac_build_alias" = x &&
2336   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2337 test "x$ac_build_alias" = x &&
2338   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2339 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2340   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2341
2342 fi
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2344 $as_echo "$ac_cv_build" >&6; }
2345 case $ac_cv_build in
2346 *-*-*) ;;
2347 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2348 esac
2349 build=$ac_cv_build
2350 ac_save_IFS=$IFS; IFS='-'
2351 set x $ac_cv_build
2352 shift
2353 build_cpu=$1
2354 build_vendor=$2
2355 shift; shift
2356 # Remember, the first character of IFS is used to create $*,
2357 # except with old shells:
2358 build_os=$*
2359 IFS=$ac_save_IFS
2360 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2361
2362
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2364 $as_echo_n "checking host system type... " >&6; }
2365 if ${ac_cv_host+:} false; then :
2366   $as_echo_n "(cached) " >&6
2367 else
2368   if test "x$host_alias" = x; then
2369   ac_cv_host=$ac_cv_build
2370 else
2371   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2372     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2373 fi
2374
2375 fi
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2377 $as_echo "$ac_cv_host" >&6; }
2378 case $ac_cv_host in
2379 *-*-*) ;;
2380 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2381 esac
2382 host=$ac_cv_host
2383 ac_save_IFS=$IFS; IFS='-'
2384 set x $ac_cv_host
2385 shift
2386 host_cpu=$1
2387 host_vendor=$2
2388 shift; shift
2389 # Remember, the first character of IFS is used to create $*,
2390 # except with old shells:
2391 host_os=$*
2392 IFS=$ac_save_IFS
2393 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2394
2395
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2397 $as_echo_n "checking target system type... " >&6; }
2398 if ${ac_cv_target+:} false; then :
2399   $as_echo_n "(cached) " >&6
2400 else
2401   if test "x$target_alias" = x; then
2402   ac_cv_target=$ac_cv_host
2403 else
2404   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2405     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2406 fi
2407
2408 fi
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2410 $as_echo "$ac_cv_target" >&6; }
2411 case $ac_cv_target in
2412 *-*-*) ;;
2413 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2414 esac
2415 target=$ac_cv_target
2416 ac_save_IFS=$IFS; IFS='-'
2417 set x $ac_cv_target
2418 shift
2419 target_cpu=$1
2420 target_vendor=$2
2421 shift; shift
2422 # Remember, the first character of IFS is used to create $*,
2423 # except with old shells:
2424 target_os=$*
2425 IFS=$ac_save_IFS
2426 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2427
2428
2429 # The aliases save the names the user supplied, while $host etc.
2430 # will get canonicalized.
2431 test -n "$target_alias" &&
2432   test "$program_prefix$program_suffix$program_transform_name" = \
2433     NONENONEs,x,x, &&
2434   program_prefix=${target_alias}-
2435
2436 am__api_version='1.11'
2437
2438 # Find a good install program.  We prefer a C program (faster),
2439 # so one script is as good as another.  But avoid the broken or
2440 # incompatible versions:
2441 # SysV /etc/install, /usr/sbin/install
2442 # SunOS /usr/etc/install
2443 # IRIX /sbin/install
2444 # AIX /bin/install
2445 # AmigaOS /C/install, which installs bootblocks on floppy discs
2446 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2447 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2448 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2449 # OS/2's system install, which has a completely different semantic
2450 # ./install, which can be erroneously created by make from ./install.sh.
2451 # Reject install programs that cannot install multiple files.
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2453 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2454 if test -z "$INSTALL"; then
2455 if ${ac_cv_path_install+:} false; then :
2456   $as_echo_n "(cached) " >&6
2457 else
2458   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2459 for as_dir in $PATH
2460 do
2461   IFS=$as_save_IFS
2462   test -z "$as_dir" && as_dir=.
2463     # Account for people who put trailing slashes in PATH elements.
2464 case $as_dir/ in #((
2465   ./ | .// | /[cC]/* | \
2466   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2467   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2468   /usr/ucb/* ) ;;
2469   *)
2470     # OSF1 and SCO ODT 3.0 have their own names for install.
2471     # Don't use installbsd from OSF since it installs stuff as root
2472     # by default.
2473     for ac_prog in ginstall scoinst install; do
2474       for ac_exec_ext in '' $ac_executable_extensions; do
2475         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2476           if test $ac_prog = install &&
2477             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2478             # AIX install.  It has an incompatible calling convention.
2479             :
2480           elif test $ac_prog = install &&
2481             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2482             # program-specific install script used by HP pwplus--don't use.
2483             :
2484           else
2485             rm -rf conftest.one conftest.two conftest.dir
2486             echo one > conftest.one
2487             echo two > conftest.two
2488             mkdir conftest.dir
2489             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2490               test -s conftest.one && test -s conftest.two &&
2491               test -s conftest.dir/conftest.one &&
2492               test -s conftest.dir/conftest.two
2493             then
2494               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2495               break 3
2496             fi
2497           fi
2498         fi
2499       done
2500     done
2501     ;;
2502 esac
2503
2504   done
2505 IFS=$as_save_IFS
2506
2507 rm -rf conftest.one conftest.two conftest.dir
2508
2509 fi
2510   if test "${ac_cv_path_install+set}" = set; then
2511     INSTALL=$ac_cv_path_install
2512   else
2513     # As a last resort, use the slow shell script.  Don't cache a
2514     # value for INSTALL within a source directory, because that will
2515     # break other packages using the cache if that directory is
2516     # removed, or if the value is a relative name.
2517     INSTALL=$ac_install_sh
2518   fi
2519 fi
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2521 $as_echo "$INSTALL" >&6; }
2522
2523 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2524 # It thinks the first close brace ends the variable substitution.
2525 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2526
2527 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2528
2529 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2530
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2532 $as_echo_n "checking whether build environment is sane... " >&6; }
2533 # Just in case
2534 sleep 1
2535 echo timestamp > conftest.file
2536 # Reject unsafe characters in $srcdir or the absolute working directory
2537 # name.  Accept space and tab only in the latter.
2538 am_lf='
2539 '
2540 case `pwd` in
2541   *[\\\"\#\$\&\'\`$am_lf]*)
2542     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2543 esac
2544 case $srcdir in
2545   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2546     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2547 esac
2548
2549 # Do `set' in a subshell so we don't clobber the current shell's
2550 # arguments.  Must try -L first in case configure is actually a
2551 # symlink; some systems play weird games with the mod time of symlinks
2552 # (eg FreeBSD returns the mod time of the symlink's containing
2553 # directory).
2554 if (
2555    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2556    if test "$*" = "X"; then
2557       # -L didn't work.
2558       set X `ls -t "$srcdir/configure" conftest.file`
2559    fi
2560    rm -f conftest.file
2561    if test "$*" != "X $srcdir/configure conftest.file" \
2562       && test "$*" != "X conftest.file $srcdir/configure"; then
2563
2564       # If neither matched, then we have a broken ls.  This can happen
2565       # if, for instance, CONFIG_SHELL is bash and it inherits a
2566       # broken ls alias from the environment.  This has actually
2567       # happened.  Such a system could not be considered "sane".
2568       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2569 alias in your environment" "$LINENO" 5
2570    fi
2571
2572    test "$2" = conftest.file
2573    )
2574 then
2575    # Ok.
2576    :
2577 else
2578    as_fn_error $? "newly created file is older than distributed files!
2579 Check your system clock" "$LINENO" 5
2580 fi
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2582 $as_echo "yes" >&6; }
2583 test "$program_prefix" != NONE &&
2584   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2585 # Use a double $ so make ignores it.
2586 test "$program_suffix" != NONE &&
2587   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2588 # Double any \ or $.
2589 # By default was `s,x,x', remove it if useless.
2590 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2591 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2592
2593 # expand $ac_aux_dir to an absolute path
2594 am_aux_dir=`cd $ac_aux_dir && pwd`
2595
2596 if test x"${MISSING+set}" != xset; then
2597   case $am_aux_dir in
2598   *\ * | *\     *)
2599     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2600   *)
2601     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2602   esac
2603 fi
2604 # Use eval to expand $SHELL
2605 if eval "$MISSING --run true"; then
2606   am_missing_run="$MISSING --run "
2607 else
2608   am_missing_run=
2609   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2610 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2611 fi
2612
2613 if test x"${install_sh}" != xset; then
2614   case $am_aux_dir in
2615   *\ * | *\     *)
2616     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2617   *)
2618     install_sh="\${SHELL} $am_aux_dir/install-sh"
2619   esac
2620 fi
2621
2622 # Installed binaries are usually stripped using `strip' when the user
2623 # run `make install-strip'.  However `strip' might not be the right
2624 # tool to use in cross-compilation environments, therefore Automake
2625 # will honor the `STRIP' environment variable to overrule this program.
2626 if test "$cross_compiling" != no; then
2627   if test -n "$ac_tool_prefix"; then
2628   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2629 set dummy ${ac_tool_prefix}strip; ac_word=$2
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2631 $as_echo_n "checking for $ac_word... " >&6; }
2632 if ${ac_cv_prog_STRIP+:} false; then :
2633   $as_echo_n "(cached) " >&6
2634 else
2635   if test -n "$STRIP"; then
2636   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2637 else
2638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2639 for as_dir in $PATH
2640 do
2641   IFS=$as_save_IFS
2642   test -z "$as_dir" && as_dir=.
2643     for ac_exec_ext in '' $ac_executable_extensions; do
2644   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2645     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2646     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2647     break 2
2648   fi
2649 done
2650   done
2651 IFS=$as_save_IFS
2652
2653 fi
2654 fi
2655 STRIP=$ac_cv_prog_STRIP
2656 if test -n "$STRIP"; then
2657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2658 $as_echo "$STRIP" >&6; }
2659 else
2660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2661 $as_echo "no" >&6; }
2662 fi
2663
2664
2665 fi
2666 if test -z "$ac_cv_prog_STRIP"; then
2667   ac_ct_STRIP=$STRIP
2668   # Extract the first word of "strip", so it can be a program name with args.
2669 set dummy strip; ac_word=$2
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2671 $as_echo_n "checking for $ac_word... " >&6; }
2672 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2673   $as_echo_n "(cached) " >&6
2674 else
2675   if test -n "$ac_ct_STRIP"; then
2676   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2677 else
2678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2679 for as_dir in $PATH
2680 do
2681   IFS=$as_save_IFS
2682   test -z "$as_dir" && as_dir=.
2683     for ac_exec_ext in '' $ac_executable_extensions; do
2684   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2685     ac_cv_prog_ac_ct_STRIP="strip"
2686     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2687     break 2
2688   fi
2689 done
2690   done
2691 IFS=$as_save_IFS
2692
2693 fi
2694 fi
2695 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2696 if test -n "$ac_ct_STRIP"; then
2697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2698 $as_echo "$ac_ct_STRIP" >&6; }
2699 else
2700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2701 $as_echo "no" >&6; }
2702 fi
2703
2704   if test "x$ac_ct_STRIP" = x; then
2705     STRIP=":"
2706   else
2707     case $cross_compiling:$ac_tool_warned in
2708 yes:)
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2710 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2711 ac_tool_warned=yes ;;
2712 esac
2713     STRIP=$ac_ct_STRIP
2714   fi
2715 else
2716   STRIP="$ac_cv_prog_STRIP"
2717 fi
2718
2719 fi
2720 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2721
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2723 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2724 if test -z "$MKDIR_P"; then
2725   if ${ac_cv_path_mkdir+:} false; then :
2726   $as_echo_n "(cached) " >&6
2727 else
2728   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2729 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2730 do
2731   IFS=$as_save_IFS
2732   test -z "$as_dir" && as_dir=.
2733     for ac_prog in mkdir gmkdir; do
2734          for ac_exec_ext in '' $ac_executable_extensions; do
2735            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2736            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2737              'mkdir (GNU coreutils) '* | \
2738              'mkdir (coreutils) '* | \
2739              'mkdir (fileutils) '4.1*)
2740                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2741                break 3;;
2742            esac
2743          done
2744        done
2745   done
2746 IFS=$as_save_IFS
2747
2748 fi
2749
2750   test -d ./--version && rmdir ./--version
2751   if test "${ac_cv_path_mkdir+set}" = set; then
2752     MKDIR_P="$ac_cv_path_mkdir -p"
2753   else
2754     # As a last resort, use the slow shell script.  Don't cache a
2755     # value for MKDIR_P within a source directory, because that will
2756     # break other packages using the cache if that directory is
2757     # removed, or if the value is a relative name.
2758     MKDIR_P="$ac_install_sh -d"
2759   fi
2760 fi
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2762 $as_echo "$MKDIR_P" >&6; }
2763
2764 mkdir_p="$MKDIR_P"
2765 case $mkdir_p in
2766   [\\/$]* | ?:[\\/]*) ;;
2767   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2768 esac
2769
2770 for ac_prog in gawk mawk nawk awk
2771 do
2772   # Extract the first word of "$ac_prog", so it can be a program name with args.
2773 set dummy $ac_prog; ac_word=$2
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2775 $as_echo_n "checking for $ac_word... " >&6; }
2776 if ${ac_cv_prog_AWK+:} false; then :
2777   $as_echo_n "(cached) " >&6
2778 else
2779   if test -n "$AWK"; then
2780   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2781 else
2782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783 for as_dir in $PATH
2784 do
2785   IFS=$as_save_IFS
2786   test -z "$as_dir" && as_dir=.
2787     for ac_exec_ext in '' $ac_executable_extensions; do
2788   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2789     ac_cv_prog_AWK="$ac_prog"
2790     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2791     break 2
2792   fi
2793 done
2794   done
2795 IFS=$as_save_IFS
2796
2797 fi
2798 fi
2799 AWK=$ac_cv_prog_AWK
2800 if test -n "$AWK"; then
2801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2802 $as_echo "$AWK" >&6; }
2803 else
2804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2805 $as_echo "no" >&6; }
2806 fi
2807
2808
2809   test -n "$AWK" && break
2810 done
2811
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2813 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2814 set x ${MAKE-make}
2815 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2816 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2817   $as_echo_n "(cached) " >&6
2818 else
2819   cat >conftest.make <<\_ACEOF
2820 SHELL = /bin/sh
2821 all:
2822         @echo '@@@%%%=$(MAKE)=@@@%%%'
2823 _ACEOF
2824 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2825 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2826   *@@@%%%=?*=@@@%%%*)
2827     eval ac_cv_prog_make_${ac_make}_set=yes;;
2828   *)
2829     eval ac_cv_prog_make_${ac_make}_set=no;;
2830 esac
2831 rm -f conftest.make
2832 fi
2833 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2835 $as_echo "yes" >&6; }
2836   SET_MAKE=
2837 else
2838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2839 $as_echo "no" >&6; }
2840   SET_MAKE="MAKE=${MAKE-make}"
2841 fi
2842
2843 rm -rf .tst 2>/dev/null
2844 mkdir .tst 2>/dev/null
2845 if test -d .tst; then
2846   am__leading_dot=.
2847 else
2848   am__leading_dot=_
2849 fi
2850 rmdir .tst 2>/dev/null
2851
2852 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2853   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2854   # is not polluted with repeated "-I."
2855   am__isrc=' -I$(srcdir)'
2856   # test to see if srcdir already configured
2857   if test -f $srcdir/config.status; then
2858     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2859   fi
2860 fi
2861
2862 # test whether we have cygpath
2863 if test -z "$CYGPATH_W"; then
2864   if (cygpath --version) >/dev/null 2>/dev/null; then
2865     CYGPATH_W='cygpath -w'
2866   else
2867     CYGPATH_W=echo
2868   fi
2869 fi
2870
2871
2872 # Define the identity of the package.
2873  PACKAGE='libvorbis'
2874  VERSION='1.3.4'
2875
2876
2877 cat >>confdefs.h <<_ACEOF
2878 #define PACKAGE "$PACKAGE"
2879 _ACEOF
2880
2881
2882 cat >>confdefs.h <<_ACEOF
2883 #define VERSION "$VERSION"
2884 _ACEOF
2885
2886 # Some tools Automake needs.
2887
2888 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2889
2890
2891 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2892
2893
2894 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2895
2896
2897 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2898
2899
2900 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2901
2902 # We need awk for the "check" target.  The system "awk" is bad on
2903 # some platforms.
2904 # Always define AMTAR for backward compatibility.  Yes, it's still used
2905 # in the wild :-(  We should find a proper way to deprecate it ...
2906 AMTAR='$${TAR-tar}'
2907
2908 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2909
2910
2911
2912
2913
2914
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2916 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2917     # Check whether --enable-maintainer-mode was given.
2918 if test "${enable_maintainer_mode+set}" = set; then :
2919   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2920 else
2921   USE_MAINTAINER_MODE=no
2922 fi
2923
2924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2925 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2926    if test $USE_MAINTAINER_MODE = yes; then
2927   MAINTAINER_MODE_TRUE=
2928   MAINTAINER_MODE_FALSE='#'
2929 else
2930   MAINTAINER_MODE_TRUE='#'
2931   MAINTAINER_MODE_FALSE=
2932 fi
2933
2934   MAINT=$MAINTAINER_MODE_TRUE
2935
2936
2937
2938 ACLOCAL_AMFLAGS="-I m4"
2939
2940
2941
2942 V_LIB_CURRENT=4
2943 V_LIB_REVISION=7
2944 V_LIB_AGE=4
2945
2946 VF_LIB_CURRENT=6
2947 VF_LIB_REVISION=6
2948 VF_LIB_AGE=3
2949
2950 VE_LIB_CURRENT=2
2951 VE_LIB_REVISION=10
2952 VE_LIB_AGE=0
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965 cflags_save="$CFLAGS"
2966 ac_ext=c
2967 ac_cpp='$CPP $CPPFLAGS'
2968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2971 if test -n "$ac_tool_prefix"; then
2972   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2973 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2975 $as_echo_n "checking for $ac_word... " >&6; }
2976 if ${ac_cv_prog_CC+:} false; then :
2977   $as_echo_n "(cached) " >&6
2978 else
2979   if test -n "$CC"; then
2980   ac_cv_prog_CC="$CC" # Let the user override the test.
2981 else
2982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2983 for as_dir in $PATH
2984 do
2985   IFS=$as_save_IFS
2986   test -z "$as_dir" && as_dir=.
2987     for ac_exec_ext in '' $ac_executable_extensions; do
2988   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2989     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2990     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2991     break 2
2992   fi
2993 done
2994   done
2995 IFS=$as_save_IFS
2996
2997 fi
2998 fi
2999 CC=$ac_cv_prog_CC
3000 if test -n "$CC"; then
3001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3002 $as_echo "$CC" >&6; }
3003 else
3004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3005 $as_echo "no" >&6; }
3006 fi
3007
3008
3009 fi
3010 if test -z "$ac_cv_prog_CC"; then
3011   ac_ct_CC=$CC
3012   # Extract the first word of "gcc", so it can be a program name with args.
3013 set dummy gcc; ac_word=$2
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3015 $as_echo_n "checking for $ac_word... " >&6; }
3016 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3017   $as_echo_n "(cached) " >&6
3018 else
3019   if test -n "$ac_ct_CC"; then
3020   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3021 else
3022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3023 for as_dir in $PATH
3024 do
3025   IFS=$as_save_IFS
3026   test -z "$as_dir" && as_dir=.
3027     for ac_exec_ext in '' $ac_executable_extensions; do
3028   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3029     ac_cv_prog_ac_ct_CC="gcc"
3030     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3031     break 2
3032   fi
3033 done
3034   done
3035 IFS=$as_save_IFS
3036
3037 fi
3038 fi
3039 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3040 if test -n "$ac_ct_CC"; then
3041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3042 $as_echo "$ac_ct_CC" >&6; }
3043 else
3044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3045 $as_echo "no" >&6; }
3046 fi
3047
3048   if test "x$ac_ct_CC" = x; then
3049     CC=""
3050   else
3051     case $cross_compiling:$ac_tool_warned in
3052 yes:)
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3054 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3055 ac_tool_warned=yes ;;
3056 esac
3057     CC=$ac_ct_CC
3058   fi
3059 else
3060   CC="$ac_cv_prog_CC"
3061 fi
3062
3063 if test -z "$CC"; then
3064           if test -n "$ac_tool_prefix"; then
3065     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3066 set dummy ${ac_tool_prefix}cc; ac_word=$2
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3068 $as_echo_n "checking for $ac_word... " >&6; }
3069 if ${ac_cv_prog_CC+:} false; then :
3070   $as_echo_n "(cached) " >&6
3071 else
3072   if test -n "$CC"; then
3073   ac_cv_prog_CC="$CC" # Let the user override the test.
3074 else
3075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076 for as_dir in $PATH
3077 do
3078   IFS=$as_save_IFS
3079   test -z "$as_dir" && as_dir=.
3080     for ac_exec_ext in '' $ac_executable_extensions; do
3081   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3082     ac_cv_prog_CC="${ac_tool_prefix}cc"
3083     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3084     break 2
3085   fi
3086 done
3087   done
3088 IFS=$as_save_IFS
3089
3090 fi
3091 fi
3092 CC=$ac_cv_prog_CC
3093 if test -n "$CC"; then
3094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3095 $as_echo "$CC" >&6; }
3096 else
3097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3098 $as_echo "no" >&6; }
3099 fi
3100
3101
3102   fi
3103 fi
3104 if test -z "$CC"; then
3105   # Extract the first word of "cc", so it can be a program name with args.
3106 set dummy cc; ac_word=$2
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3108 $as_echo_n "checking for $ac_word... " >&6; }
3109 if ${ac_cv_prog_CC+:} false; then :
3110   $as_echo_n "(cached) " >&6
3111 else
3112   if test -n "$CC"; then
3113   ac_cv_prog_CC="$CC" # Let the user override the test.
3114 else
3115   ac_prog_rejected=no
3116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3117 for as_dir in $PATH
3118 do
3119   IFS=$as_save_IFS
3120   test -z "$as_dir" && as_dir=.
3121     for ac_exec_ext in '' $ac_executable_extensions; do
3122   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3123     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3124        ac_prog_rejected=yes
3125        continue
3126      fi
3127     ac_cv_prog_CC="cc"
3128     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3129     break 2
3130   fi
3131 done
3132   done
3133 IFS=$as_save_IFS
3134
3135 if test $ac_prog_rejected = yes; then
3136   # We found a bogon in the path, so make sure we never use it.
3137   set dummy $ac_cv_prog_CC
3138   shift
3139   if test $# != 0; then
3140     # We chose a different compiler from the bogus one.
3141     # However, it has the same basename, so the bogon will be chosen
3142     # first if we set CC to just the basename; use the full file name.
3143     shift
3144     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3145   fi
3146 fi
3147 fi
3148 fi
3149 CC=$ac_cv_prog_CC
3150 if test -n "$CC"; then
3151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3152 $as_echo "$CC" >&6; }
3153 else
3154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3155 $as_echo "no" >&6; }
3156 fi
3157
3158
3159 fi
3160 if test -z "$CC"; then
3161   if test -n "$ac_tool_prefix"; then
3162   for ac_prog in cl.exe
3163   do
3164     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3165 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3167 $as_echo_n "checking for $ac_word... " >&6; }
3168 if ${ac_cv_prog_CC+:} false; then :
3169   $as_echo_n "(cached) " >&6
3170 else
3171   if test -n "$CC"; then
3172   ac_cv_prog_CC="$CC" # Let the user override the test.
3173 else
3174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175 for as_dir in $PATH
3176 do
3177   IFS=$as_save_IFS
3178   test -z "$as_dir" && as_dir=.
3179     for ac_exec_ext in '' $ac_executable_extensions; do
3180   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3181     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3182     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3183     break 2
3184   fi
3185 done
3186   done
3187 IFS=$as_save_IFS
3188
3189 fi
3190 fi
3191 CC=$ac_cv_prog_CC
3192 if test -n "$CC"; then
3193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3194 $as_echo "$CC" >&6; }
3195 else
3196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3197 $as_echo "no" >&6; }
3198 fi
3199
3200
3201     test -n "$CC" && break
3202   done
3203 fi
3204 if test -z "$CC"; then
3205   ac_ct_CC=$CC
3206   for ac_prog in cl.exe
3207 do
3208   # Extract the first word of "$ac_prog", so it can be a program name with args.
3209 set dummy $ac_prog; ac_word=$2
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3211 $as_echo_n "checking for $ac_word... " >&6; }
3212 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3213   $as_echo_n "(cached) " >&6
3214 else
3215   if test -n "$ac_ct_CC"; then
3216   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3217 else
3218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3219 for as_dir in $PATH
3220 do
3221   IFS=$as_save_IFS
3222   test -z "$as_dir" && as_dir=.
3223     for ac_exec_ext in '' $ac_executable_extensions; do
3224   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3225     ac_cv_prog_ac_ct_CC="$ac_prog"
3226     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3227     break 2
3228   fi
3229 done
3230   done
3231 IFS=$as_save_IFS
3232
3233 fi
3234 fi
3235 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3236 if test -n "$ac_ct_CC"; then
3237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3238 $as_echo "$ac_ct_CC" >&6; }
3239 else
3240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3241 $as_echo "no" >&6; }
3242 fi
3243
3244
3245   test -n "$ac_ct_CC" && break
3246 done
3247
3248   if test "x$ac_ct_CC" = x; then
3249     CC=""
3250   else
3251     case $cross_compiling:$ac_tool_warned in
3252 yes:)
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3254 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3255 ac_tool_warned=yes ;;
3256 esac
3257     CC=$ac_ct_CC
3258   fi
3259 fi
3260
3261 fi
3262
3263
3264 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3265 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3266 as_fn_error $? "no acceptable C compiler found in \$PATH
3267 See \`config.log' for more details" "$LINENO" 5; }
3268
3269 # Provide some information about the compiler.
3270 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3271 set X $ac_compile
3272 ac_compiler=$2
3273 for ac_option in --version -v -V -qversion; do
3274   { { ac_try="$ac_compiler $ac_option >&5"
3275 case "(($ac_try" in
3276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277   *) ac_try_echo=$ac_try;;
3278 esac
3279 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3280 $as_echo "$ac_try_echo"; } >&5
3281   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3282   ac_status=$?
3283   if test -s conftest.err; then
3284     sed '10a\
3285 ... rest of stderr output deleted ...
3286          10q' conftest.err >conftest.er1
3287     cat conftest.er1 >&5
3288   fi
3289   rm -f conftest.er1 conftest.err
3290   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3291   test $ac_status = 0; }
3292 done
3293
3294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3295 /* end confdefs.h.  */
3296
3297 int
3298 main ()
3299 {
3300
3301   ;
3302   return 0;
3303 }
3304 _ACEOF
3305 ac_clean_files_save=$ac_clean_files
3306 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3307 # Try to create an executable without -o first, disregard a.out.
3308 # It will help us diagnose broken compilers, and finding out an intuition
3309 # of exeext.
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3311 $as_echo_n "checking whether the C compiler works... " >&6; }
3312 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3313
3314 # The possible output files:
3315 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3316
3317 ac_rmfiles=
3318 for ac_file in $ac_files
3319 do
3320   case $ac_file in
3321     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3322     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3323   esac
3324 done
3325 rm -f $ac_rmfiles
3326
3327 if { { ac_try="$ac_link_default"
3328 case "(($ac_try" in
3329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3330   *) ac_try_echo=$ac_try;;
3331 esac
3332 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3333 $as_echo "$ac_try_echo"; } >&5
3334   (eval "$ac_link_default") 2>&5
3335   ac_status=$?
3336   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3337   test $ac_status = 0; }; then :
3338   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3339 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3340 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3341 # so that the user can short-circuit this test for compilers unknown to
3342 # Autoconf.
3343 for ac_file in $ac_files ''
3344 do
3345   test -f "$ac_file" || continue
3346   case $ac_file in
3347     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3348         ;;
3349     [ab].out )
3350         # We found the default executable, but exeext='' is most
3351         # certainly right.
3352         break;;
3353     *.* )
3354         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3355         then :; else
3356            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3357         fi
3358         # We set ac_cv_exeext here because the later test for it is not
3359         # safe: cross compilers may not add the suffix if given an `-o'
3360         # argument, so we may need to know it at that point already.
3361         # Even if this section looks crufty: it has the advantage of
3362         # actually working.
3363         break;;
3364     * )
3365         break;;
3366   esac
3367 done
3368 test "$ac_cv_exeext" = no && ac_cv_exeext=
3369
3370 else
3371   ac_file=''
3372 fi
3373 if test -z "$ac_file"; then :
3374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3375 $as_echo "no" >&6; }
3376 $as_echo "$as_me: failed program was:" >&5
3377 sed 's/^/| /' conftest.$ac_ext >&5
3378
3379 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3380 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3381 as_fn_error 77 "C compiler cannot create executables
3382 See \`config.log' for more details" "$LINENO" 5; }
3383 else
3384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3385 $as_echo "yes" >&6; }
3386 fi
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3388 $as_echo_n "checking for C compiler default output file name... " >&6; }
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3390 $as_echo "$ac_file" >&6; }
3391 ac_exeext=$ac_cv_exeext
3392
3393 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3394 ac_clean_files=$ac_clean_files_save
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3396 $as_echo_n "checking for suffix of executables... " >&6; }
3397 if { { ac_try="$ac_link"
3398 case "(($ac_try" in
3399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3400   *) ac_try_echo=$ac_try;;
3401 esac
3402 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3403 $as_echo "$ac_try_echo"; } >&5
3404   (eval "$ac_link") 2>&5
3405   ac_status=$?
3406   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3407   test $ac_status = 0; }; then :
3408   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3409 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3410 # work properly (i.e., refer to `conftest.exe'), while it won't with
3411 # `rm'.
3412 for ac_file in conftest.exe conftest conftest.*; do
3413   test -f "$ac_file" || continue
3414   case $ac_file in
3415     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3416     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3417           break;;
3418     * ) break;;
3419   esac
3420 done
3421 else
3422   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3424 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3425 See \`config.log' for more details" "$LINENO" 5; }
3426 fi
3427 rm -f conftest conftest$ac_cv_exeext
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3429 $as_echo "$ac_cv_exeext" >&6; }
3430
3431 rm -f conftest.$ac_ext
3432 EXEEXT=$ac_cv_exeext
3433 ac_exeext=$EXEEXT
3434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3435 /* end confdefs.h.  */
3436 #include <stdio.h>
3437 int
3438 main ()
3439 {
3440 FILE *f = fopen ("conftest.out", "w");
3441  return ferror (f) || fclose (f) != 0;
3442
3443   ;
3444   return 0;
3445 }
3446 _ACEOF
3447 ac_clean_files="$ac_clean_files conftest.out"
3448 # Check that the compiler produces executables we can run.  If not, either
3449 # the compiler is broken, or we cross compile.
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3451 $as_echo_n "checking whether we are cross compiling... " >&6; }
3452 if test "$cross_compiling" != yes; then
3453   { { ac_try="$ac_link"
3454 case "(($ac_try" in
3455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3456   *) ac_try_echo=$ac_try;;
3457 esac
3458 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3459 $as_echo "$ac_try_echo"; } >&5
3460   (eval "$ac_link") 2>&5
3461   ac_status=$?
3462   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3463   test $ac_status = 0; }
3464   if { ac_try='./conftest$ac_cv_exeext'
3465   { { case "(($ac_try" in
3466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3467   *) ac_try_echo=$ac_try;;
3468 esac
3469 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3470 $as_echo "$ac_try_echo"; } >&5
3471   (eval "$ac_try") 2>&5
3472   ac_status=$?
3473   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3474   test $ac_status = 0; }; }; then
3475     cross_compiling=no
3476   else
3477     if test "$cross_compiling" = maybe; then
3478         cross_compiling=yes
3479     else
3480         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3481 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3482 as_fn_error $? "cannot run C compiled programs.
3483 If you meant to cross compile, use \`--host'.
3484 See \`config.log' for more details" "$LINENO" 5; }
3485     fi
3486   fi
3487 fi
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3489 $as_echo "$cross_compiling" >&6; }
3490
3491 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3492 ac_clean_files=$ac_clean_files_save
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3494 $as_echo_n "checking for suffix of object files... " >&6; }
3495 if ${ac_cv_objext+:} false; then :
3496   $as_echo_n "(cached) " >&6
3497 else
3498   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3499 /* end confdefs.h.  */
3500
3501 int
3502 main ()
3503 {
3504
3505   ;
3506   return 0;
3507 }
3508 _ACEOF
3509 rm -f conftest.o conftest.obj
3510 if { { ac_try="$ac_compile"
3511 case "(($ac_try" in
3512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3513   *) ac_try_echo=$ac_try;;
3514 esac
3515 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3516 $as_echo "$ac_try_echo"; } >&5
3517   (eval "$ac_compile") 2>&5
3518   ac_status=$?
3519   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3520   test $ac_status = 0; }; then :
3521   for ac_file in conftest.o conftest.obj conftest.*; do
3522   test -f "$ac_file" || continue;
3523   case $ac_file in
3524     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3525     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3526        break;;
3527   esac
3528 done
3529 else
3530   $as_echo "$as_me: failed program was:" >&5
3531 sed 's/^/| /' conftest.$ac_ext >&5
3532
3533 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3534 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3535 as_fn_error $? "cannot compute suffix of object files: cannot compile
3536 See \`config.log' for more details" "$LINENO" 5; }
3537 fi
3538 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3539 fi
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3541 $as_echo "$ac_cv_objext" >&6; }
3542 OBJEXT=$ac_cv_objext
3543 ac_objext=$OBJEXT
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3545 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3546 if ${ac_cv_c_compiler_gnu+:} false; then :
3547   $as_echo_n "(cached) " >&6
3548 else
3549   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550 /* end confdefs.h.  */
3551
3552 int
3553 main ()
3554 {
3555 #ifndef __GNUC__
3556        choke me
3557 #endif
3558
3559   ;
3560   return 0;
3561 }
3562 _ACEOF
3563 if ac_fn_c_try_compile "$LINENO"; then :
3564   ac_compiler_gnu=yes
3565 else
3566   ac_compiler_gnu=no
3567 fi
3568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3569 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3570
3571 fi
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3573 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3574 if test $ac_compiler_gnu = yes; then
3575   GCC=yes
3576 else
3577   GCC=
3578 fi
3579 ac_test_CFLAGS=${CFLAGS+set}
3580 ac_save_CFLAGS=$CFLAGS
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3582 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3583 if ${ac_cv_prog_cc_g+:} false; then :
3584   $as_echo_n "(cached) " >&6
3585 else
3586   ac_save_c_werror_flag=$ac_c_werror_flag
3587    ac_c_werror_flag=yes
3588    ac_cv_prog_cc_g=no
3589    CFLAGS="-g"
3590    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3591 /* end confdefs.h.  */
3592
3593 int
3594 main ()
3595 {
3596
3597   ;
3598   return 0;
3599 }
3600 _ACEOF
3601 if ac_fn_c_try_compile "$LINENO"; then :
3602   ac_cv_prog_cc_g=yes
3603 else
3604   CFLAGS=""
3605       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3606 /* end confdefs.h.  */
3607
3608 int
3609 main ()
3610 {
3611
3612   ;
3613   return 0;
3614 }
3615 _ACEOF
3616 if ac_fn_c_try_compile "$LINENO"; then :
3617
3618 else
3619   ac_c_werror_flag=$ac_save_c_werror_flag
3620          CFLAGS="-g"
3621          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3622 /* end confdefs.h.  */
3623
3624 int
3625 main ()
3626 {
3627
3628   ;
3629   return 0;
3630 }
3631 _ACEOF
3632 if ac_fn_c_try_compile "$LINENO"; then :
3633   ac_cv_prog_cc_g=yes
3634 fi
3635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3636 fi
3637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3638 fi
3639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3640    ac_c_werror_flag=$ac_save_c_werror_flag
3641 fi
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3643 $as_echo "$ac_cv_prog_cc_g" >&6; }
3644 if test "$ac_test_CFLAGS" = set; then
3645   CFLAGS=$ac_save_CFLAGS
3646 elif test $ac_cv_prog_cc_g = yes; then
3647   if test "$GCC" = yes; then
3648     CFLAGS="-g -O2"
3649   else
3650     CFLAGS="-g"
3651   fi
3652 else
3653   if test "$GCC" = yes; then
3654     CFLAGS="-O2"
3655   else
3656     CFLAGS=
3657   fi
3658 fi
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3660 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3661 if ${ac_cv_prog_cc_c89+:} false; then :
3662   $as_echo_n "(cached) " >&6
3663 else
3664   ac_cv_prog_cc_c89=no
3665 ac_save_CC=$CC
3666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3667 /* end confdefs.h.  */
3668 #include <stdarg.h>
3669 #include <stdio.h>
3670 #include <sys/types.h>
3671 #include <sys/stat.h>
3672 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3673 struct buf { int x; };
3674 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3675 static char *e (p, i)
3676      char **p;
3677      int i;
3678 {
3679   return p[i];
3680 }
3681 static char *f (char * (*g) (char **, int), char **p, ...)
3682 {
3683   char *s;
3684   va_list v;
3685   va_start (v,p);
3686   s = g (p, va_arg (v,int));
3687   va_end (v);
3688   return s;
3689 }
3690
3691 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3692    function prototypes and stuff, but not '\xHH' hex character constants.
3693    These don't provoke an error unfortunately, instead are silently treated
3694    as 'x'.  The following induces an error, until -std is added to get
3695    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3696    array size at least.  It's necessary to write '\x00'==0 to get something
3697    that's true only with -std.  */
3698 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3699
3700 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3701    inside strings and character constants.  */
3702 #define FOO(x) 'x'
3703 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3704
3705 int test (int i, double x);
3706 struct s1 {int (*f) (int a);};
3707 struct s2 {int (*f) (double a);};
3708 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3709 int argc;
3710 char **argv;
3711 int
3712 main ()
3713 {
3714 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3715   ;
3716   return 0;
3717 }
3718 _ACEOF
3719 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3720         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3721 do
3722   CC="$ac_save_CC $ac_arg"
3723   if ac_fn_c_try_compile "$LINENO"; then :
3724   ac_cv_prog_cc_c89=$ac_arg
3725 fi
3726 rm -f core conftest.err conftest.$ac_objext
3727   test "x$ac_cv_prog_cc_c89" != "xno" && break
3728 done
3729 rm -f conftest.$ac_ext
3730 CC=$ac_save_CC
3731
3732 fi
3733 # AC_CACHE_VAL
3734 case "x$ac_cv_prog_cc_c89" in
3735   x)
3736     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3737 $as_echo "none needed" >&6; } ;;
3738   xno)
3739     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3740 $as_echo "unsupported" >&6; } ;;
3741   *)
3742     CC="$CC $ac_cv_prog_cc_c89"
3743     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3744 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3745 esac
3746 if test "x$ac_cv_prog_cc_c89" != xno; then :
3747
3748 fi
3749
3750 ac_ext=c
3751 ac_cpp='$CPP $CPPFLAGS'
3752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3755 DEPDIR="${am__leading_dot}deps"
3756
3757 ac_config_commands="$ac_config_commands depfiles"
3758
3759
3760 am_make=${MAKE-make}
3761 cat > confinc << 'END'
3762 am__doit:
3763         @echo this is the am__doit target
3764 .PHONY: am__doit
3765 END
3766 # If we don't find an include directive, just comment out the code.
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3768 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3769 am__include="#"
3770 am__quote=
3771 _am_result=none
3772 # First try GNU make style include.
3773 echo "include confinc" > confmf
3774 # Ignore all kinds of additional output from `make'.
3775 case `$am_make -s -f confmf 2> /dev/null` in #(
3776 *the\ am__doit\ target*)
3777   am__include=include
3778   am__quote=
3779   _am_result=GNU
3780   ;;
3781 esac
3782 # Now try BSD make style include.
3783 if test "$am__include" = "#"; then
3784    echo '.include "confinc"' > confmf
3785    case `$am_make -s -f confmf 2> /dev/null` in #(
3786    *the\ am__doit\ target*)
3787      am__include=.include
3788      am__quote="\""
3789      _am_result=BSD
3790      ;;
3791    esac
3792 fi
3793
3794
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3796 $as_echo "$_am_result" >&6; }
3797 rm -f confinc confmf
3798
3799 # Check whether --enable-dependency-tracking was given.
3800 if test "${enable_dependency_tracking+set}" = set; then :
3801   enableval=$enable_dependency_tracking;
3802 fi
3803
3804 if test "x$enable_dependency_tracking" != xno; then
3805   am_depcomp="$ac_aux_dir/depcomp"
3806   AMDEPBACKSLASH='\'
3807   am__nodep='_no'
3808 fi
3809  if test "x$enable_dependency_tracking" != xno; then
3810   AMDEP_TRUE=
3811   AMDEP_FALSE='#'
3812 else
3813   AMDEP_TRUE='#'
3814   AMDEP_FALSE=
3815 fi
3816
3817
3818
3819 depcc="$CC"   am_compiler_list=
3820
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3822 $as_echo_n "checking dependency style of $depcc... " >&6; }
3823 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3824   $as_echo_n "(cached) " >&6
3825 else
3826   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3827   # We make a subdir and do the tests there.  Otherwise we can end up
3828   # making bogus files that we don't know about and never remove.  For
3829   # instance it was reported that on HP-UX the gcc test will end up
3830   # making a dummy file named `D' -- because `-MD' means `put the output
3831   # in D'.
3832   rm -rf conftest.dir
3833   mkdir conftest.dir
3834   # Copy depcomp to subdir because otherwise we won't find it if we're
3835   # using a relative directory.
3836   cp "$am_depcomp" conftest.dir
3837   cd conftest.dir
3838   # We will build objects and dependencies in a subdirectory because
3839   # it helps to detect inapplicable dependency modes.  For instance
3840   # both Tru64's cc and ICC support -MD to output dependencies as a
3841   # side effect of compilation, but ICC will put the dependencies in
3842   # the current directory while Tru64 will put them in the object
3843   # directory.
3844   mkdir sub
3845
3846   am_cv_CC_dependencies_compiler_type=none
3847   if test "$am_compiler_list" = ""; then
3848      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3849   fi
3850   am__universal=false
3851   case " $depcc " in #(
3852      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3853      esac
3854
3855   for depmode in $am_compiler_list; do
3856     # Setup a source with many dependencies, because some compilers
3857     # like to wrap large dependency lists on column 80 (with \), and
3858     # we should not choose a depcomp mode which is confused by this.
3859     #
3860     # We need to recreate these files for each test, as the compiler may
3861     # overwrite some of them when testing with obscure command lines.
3862     # This happens at least with the AIX C compiler.
3863     : > sub/conftest.c
3864     for i in 1 2 3 4 5 6; do
3865       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3866       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3867       # Solaris 8's {/usr,}/bin/sh.
3868       touch sub/conftst$i.h
3869     done
3870     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3871
3872     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3873     # mode.  It turns out that the SunPro C++ compiler does not properly
3874     # handle `-M -o', and we need to detect this.  Also, some Intel
3875     # versions had trouble with output in subdirs
3876     am__obj=sub/conftest.${OBJEXT-o}
3877     am__minus_obj="-o $am__obj"
3878     case $depmode in
3879     gcc)
3880       # This depmode causes a compiler race in universal mode.
3881       test "$am__universal" = false || continue
3882       ;;
3883     nosideeffect)
3884       # after this tag, mechanisms are not by side-effect, so they'll
3885       # only be used when explicitly requested
3886       if test "x$enable_dependency_tracking" = xyes; then
3887         continue
3888       else
3889         break
3890       fi
3891       ;;
3892     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3893       # This compiler won't grok `-c -o', but also, the minuso test has
3894       # not run yet.  These depmodes are late enough in the game, and
3895       # so weak that their functioning should not be impacted.
3896       am__obj=conftest.${OBJEXT-o}
3897       am__minus_obj=
3898       ;;
3899     none) break ;;
3900     esac
3901     if depmode=$depmode \
3902        source=sub/conftest.c object=$am__obj \
3903        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3904        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3905          >/dev/null 2>conftest.err &&
3906        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3907        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3908        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3909        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3910       # icc doesn't choke on unknown options, it will just issue warnings
3911       # or remarks (even with -Werror).  So we grep stderr for any message
3912       # that says an option was ignored or not supported.
3913       # When given -MP, icc 7.0 and 7.1 complain thusly:
3914       #   icc: Command line warning: ignoring option '-M'; no argument required
3915       # The diagnosis changed in icc 8.0:
3916       #   icc: Command line remark: option '-MP' not supported
3917       if (grep 'ignoring option' conftest.err ||
3918           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3919         am_cv_CC_dependencies_compiler_type=$depmode
3920         break
3921       fi
3922     fi
3923   done
3924
3925   cd ..
3926   rm -rf conftest.dir
3927 else
3928   am_cv_CC_dependencies_compiler_type=none
3929 fi
3930
3931 fi
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3933 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3934 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3935
3936  if
3937   test "x$enable_dependency_tracking" != xno \
3938   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3939   am__fastdepCC_TRUE=
3940   am__fastdepCC_FALSE='#'
3941 else
3942   am__fastdepCC_TRUE='#'
3943   am__fastdepCC_FALSE=
3944 fi
3945
3946
3947 ac_ext=c
3948 ac_cpp='$CPP $CPPFLAGS'
3949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3953 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3954 # On Suns, sometimes $CPP names a directory.
3955 if test -n "$CPP" && test -d "$CPP"; then
3956   CPP=
3957 fi
3958 if test -z "$CPP"; then
3959   if ${ac_cv_prog_CPP+:} false; then :
3960   $as_echo_n "(cached) " >&6
3961 else
3962       # Double quotes because CPP needs to be expanded
3963     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3964     do
3965       ac_preproc_ok=false
3966 for ac_c_preproc_warn_flag in '' yes
3967 do
3968   # Use a header file that comes with gcc, so configuring glibc
3969   # with a fresh cross-compiler works.
3970   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3971   # <limits.h> exists even on freestanding compilers.
3972   # On the NeXT, cc -E runs the code through the compiler's parser,
3973   # not just through cpp. "Syntax error" is here to catch this case.
3974   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3975 /* end confdefs.h.  */
3976 #ifdef __STDC__
3977 # include <limits.h>
3978 #else
3979 # include <assert.h>
3980 #endif
3981                      Syntax error
3982 _ACEOF
3983 if ac_fn_c_try_cpp "$LINENO"; then :
3984
3985 else
3986   # Broken: fails on valid input.
3987 continue
3988 fi
3989 rm -f conftest.err conftest.i conftest.$ac_ext
3990
3991   # OK, works on sane cases.  Now check whether nonexistent headers
3992   # can be detected and how.
3993   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3994 /* end confdefs.h.  */
3995 #include <ac_nonexistent.h>
3996 _ACEOF
3997 if ac_fn_c_try_cpp "$LINENO"; then :
3998   # Broken: success on invalid input.
3999 continue
4000 else
4001   # Passes both tests.
4002 ac_preproc_ok=:
4003 break
4004 fi
4005 rm -f conftest.err conftest.i conftest.$ac_ext
4006
4007 done
4008 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4009 rm -f conftest.i conftest.err conftest.$ac_ext
4010 if $ac_preproc_ok; then :
4011   break
4012 fi
4013
4014     done
4015     ac_cv_prog_CPP=$CPP
4016
4017 fi
4018   CPP=$ac_cv_prog_CPP
4019 else
4020   ac_cv_prog_CPP=$CPP
4021 fi
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4023 $as_echo "$CPP" >&6; }
4024 ac_preproc_ok=false
4025 for ac_c_preproc_warn_flag in '' yes
4026 do
4027   # Use a header file that comes with gcc, so configuring glibc
4028   # with a fresh cross-compiler works.
4029   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4030   # <limits.h> exists even on freestanding compilers.
4031   # On the NeXT, cc -E runs the code through the compiler's parser,
4032   # not just through cpp. "Syntax error" is here to catch this case.
4033   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4034 /* end confdefs.h.  */
4035 #ifdef __STDC__
4036 # include <limits.h>
4037 #else
4038 # include <assert.h>
4039 #endif
4040                      Syntax error
4041 _ACEOF
4042 if ac_fn_c_try_cpp "$LINENO"; then :
4043
4044 else
4045   # Broken: fails on valid input.
4046 continue
4047 fi
4048 rm -f conftest.err conftest.i conftest.$ac_ext
4049
4050   # OK, works on sane cases.  Now check whether nonexistent headers
4051   # can be detected and how.
4052   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4053 /* end confdefs.h.  */
4054 #include <ac_nonexistent.h>
4055 _ACEOF
4056 if ac_fn_c_try_cpp "$LINENO"; then :
4057   # Broken: success on invalid input.
4058 continue
4059 else
4060   # Passes both tests.
4061 ac_preproc_ok=:
4062 break
4063 fi
4064 rm -f conftest.err conftest.i conftest.$ac_ext
4065
4066 done
4067 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4068 rm -f conftest.i conftest.err conftest.$ac_ext
4069 if $ac_preproc_ok; then :
4070
4071 else
4072   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4073 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4074 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4075 See \`config.log' for more details" "$LINENO" 5; }
4076 fi
4077
4078 ac_ext=c
4079 ac_cpp='$CPP $CPPFLAGS'
4080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4083
4084 CFLAGS="$cflags_save"
4085
4086
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4088 $as_echo_n "checking for inline... " >&6; }
4089 if ${ac_cv_c_inline+:} false; then :
4090   $as_echo_n "(cached) " >&6
4091 else
4092   ac_cv_c_inline=no
4093 for ac_kw in inline __inline__ __inline; do
4094   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4095 /* end confdefs.h.  */
4096 #ifndef __cplusplus
4097 typedef int foo_t;
4098 static $ac_kw foo_t static_foo () {return 0; }
4099 $ac_kw foo_t foo () {return 0; }
4100 #endif
4101
4102 _ACEOF
4103 if ac_fn_c_try_compile "$LINENO"; then :
4104   ac_cv_c_inline=$ac_kw
4105 fi
4106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4107   test "$ac_cv_c_inline" != no && break
4108 done
4109
4110 fi
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4112 $as_echo "$ac_cv_c_inline" >&6; }
4113
4114 case $ac_cv_c_inline in
4115   inline | yes) ;;
4116   *)
4117     case $ac_cv_c_inline in
4118       no) ac_val=;;
4119       *) ac_val=$ac_cv_c_inline;;
4120     esac
4121     cat >>confdefs.h <<_ACEOF
4122 #ifndef __cplusplus
4123 #define inline $ac_val
4124 #endif
4125 _ACEOF
4126     ;;
4127 esac
4128
4129
4130 enable_win32_dll=yes
4131
4132 case $host in
4133 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
4134   if test -n "$ac_tool_prefix"; then
4135   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4136 set dummy ${ac_tool_prefix}as; ac_word=$2
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4138 $as_echo_n "checking for $ac_word... " >&6; }
4139 if ${ac_cv_prog_AS+:} false; then :
4140   $as_echo_n "(cached) " >&6
4141 else
4142   if test -n "$AS"; then
4143   ac_cv_prog_AS="$AS" # Let the user override the test.
4144 else
4145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4146 for as_dir in $PATH
4147 do
4148   IFS=$as_save_IFS
4149   test -z "$as_dir" && as_dir=.
4150     for ac_exec_ext in '' $ac_executable_extensions; do
4151   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4152     ac_cv_prog_AS="${ac_tool_prefix}as"
4153     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4154     break 2
4155   fi
4156 done
4157   done
4158 IFS=$as_save_IFS
4159
4160 fi
4161 fi
4162 AS=$ac_cv_prog_AS
4163 if test -n "$AS"; then
4164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4165 $as_echo "$AS" >&6; }
4166 else
4167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4168 $as_echo "no" >&6; }
4169 fi
4170
4171
4172 fi
4173 if test -z "$ac_cv_prog_AS"; then
4174   ac_ct_AS=$AS
4175   # Extract the first word of "as", so it can be a program name with args.
4176 set dummy as; ac_word=$2
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4178 $as_echo_n "checking for $ac_word... " >&6; }
4179 if ${ac_cv_prog_ac_ct_AS+:} false; then :
4180   $as_echo_n "(cached) " >&6
4181 else
4182   if test -n "$ac_ct_AS"; then
4183   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4184 else
4185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4186 for as_dir in $PATH
4187 do
4188   IFS=$as_save_IFS
4189   test -z "$as_dir" && as_dir=.
4190     for ac_exec_ext in '' $ac_executable_extensions; do
4191   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4192     ac_cv_prog_ac_ct_AS="as"
4193     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4194     break 2
4195   fi
4196 done
4197   done
4198 IFS=$as_save_IFS
4199
4200 fi
4201 fi
4202 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4203 if test -n "$ac_ct_AS"; then
4204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4205 $as_echo "$ac_ct_AS" >&6; }
4206 else
4207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4208 $as_echo "no" >&6; }
4209 fi
4210
4211   if test "x$ac_ct_AS" = x; then
4212     AS="false"
4213   else
4214     case $cross_compiling:$ac_tool_warned in
4215 yes:)
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4217 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4218 ac_tool_warned=yes ;;
4219 esac
4220     AS=$ac_ct_AS
4221   fi
4222 else
4223   AS="$ac_cv_prog_AS"
4224 fi
4225
4226   if test -n "$ac_tool_prefix"; then
4227   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4228 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4230 $as_echo_n "checking for $ac_word... " >&6; }
4231 if ${ac_cv_prog_DLLTOOL+:} false; then :
4232   $as_echo_n "(cached) " >&6
4233 else
4234   if test -n "$DLLTOOL"; then
4235   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4236 else
4237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4238 for as_dir in $PATH
4239 do
4240   IFS=$as_save_IFS
4241   test -z "$as_dir" && as_dir=.
4242     for ac_exec_ext in '' $ac_executable_extensions; do
4243   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4244     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4245     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4246     break 2
4247   fi
4248 done
4249   done
4250 IFS=$as_save_IFS
4251
4252 fi
4253 fi
4254 DLLTOOL=$ac_cv_prog_DLLTOOL
4255 if test -n "$DLLTOOL"; then
4256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4257 $as_echo "$DLLTOOL" >&6; }
4258 else
4259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4260 $as_echo "no" >&6; }
4261 fi
4262
4263
4264 fi
4265 if test -z "$ac_cv_prog_DLLTOOL"; then
4266   ac_ct_DLLTOOL=$DLLTOOL
4267   # Extract the first word of "dlltool", so it can be a program name with args.
4268 set dummy dlltool; ac_word=$2
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4270 $as_echo_n "checking for $ac_word... " >&6; }
4271 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4272   $as_echo_n "(cached) " >&6
4273 else
4274   if test -n "$ac_ct_DLLTOOL"; then
4275   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4276 else
4277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4278 for as_dir in $PATH
4279 do
4280   IFS=$as_save_IFS
4281   test -z "$as_dir" && as_dir=.
4282     for ac_exec_ext in '' $ac_executable_extensions; do
4283   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4284     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4285     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4286     break 2
4287   fi
4288 done
4289   done
4290 IFS=$as_save_IFS
4291
4292 fi
4293 fi
4294 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4295 if test -n "$ac_ct_DLLTOOL"; then
4296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4297 $as_echo "$ac_ct_DLLTOOL" >&6; }
4298 else
4299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4300 $as_echo "no" >&6; }
4301 fi
4302
4303   if test "x$ac_ct_DLLTOOL" = x; then
4304     DLLTOOL="false"
4305   else
4306     case $cross_compiling:$ac_tool_warned in
4307 yes:)
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4309 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4310 ac_tool_warned=yes ;;
4311 esac
4312     DLLTOOL=$ac_ct_DLLTOOL
4313   fi
4314 else
4315   DLLTOOL="$ac_cv_prog_DLLTOOL"
4316 fi
4317
4318   if test -n "$ac_tool_prefix"; then
4319   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4320 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4322 $as_echo_n "checking for $ac_word... " >&6; }
4323 if ${ac_cv_prog_OBJDUMP+:} false; then :
4324   $as_echo_n "(cached) " >&6
4325 else
4326   if test -n "$OBJDUMP"; then
4327   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4328 else
4329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4330 for as_dir in $PATH
4331 do
4332   IFS=$as_save_IFS
4333   test -z "$as_dir" && as_dir=.
4334     for ac_exec_ext in '' $ac_executable_extensions; do
4335   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4336     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4337     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4338     break 2
4339   fi
4340 done
4341   done
4342 IFS=$as_save_IFS
4343
4344 fi
4345 fi
4346 OBJDUMP=$ac_cv_prog_OBJDUMP
4347 if test -n "$OBJDUMP"; then
4348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4349 $as_echo "$OBJDUMP" >&6; }
4350 else
4351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4352 $as_echo "no" >&6; }
4353 fi
4354
4355
4356 fi
4357 if test -z "$ac_cv_prog_OBJDUMP"; then
4358   ac_ct_OBJDUMP=$OBJDUMP
4359   # Extract the first word of "objdump", so it can be a program name with args.
4360 set dummy objdump; ac_word=$2
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4362 $as_echo_n "checking for $ac_word... " >&6; }
4363 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4364   $as_echo_n "(cached) " >&6
4365 else
4366   if test -n "$ac_ct_OBJDUMP"; then
4367   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4368 else
4369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370 for as_dir in $PATH
4371 do
4372   IFS=$as_save_IFS
4373   test -z "$as_dir" && as_dir=.
4374     for ac_exec_ext in '' $ac_executable_extensions; do
4375   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4376     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4377     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4378     break 2
4379   fi
4380 done
4381   done
4382 IFS=$as_save_IFS
4383
4384 fi
4385 fi
4386 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4387 if test -n "$ac_ct_OBJDUMP"; then
4388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4389 $as_echo "$ac_ct_OBJDUMP" >&6; }
4390 else
4391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4392 $as_echo "no" >&6; }
4393 fi
4394
4395   if test "x$ac_ct_OBJDUMP" = x; then
4396     OBJDUMP="false"
4397   else
4398     case $cross_compiling:$ac_tool_warned in
4399 yes:)
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4401 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4402 ac_tool_warned=yes ;;
4403 esac
4404     OBJDUMP=$ac_ct_OBJDUMP
4405   fi
4406 else
4407   OBJDUMP="$ac_cv_prog_OBJDUMP"
4408 fi
4409
4410   ;;
4411 esac
4412
4413 test -z "$AS" && AS=as
4414
4415
4416
4417
4418
4419 test -z "$DLLTOOL" && DLLTOOL=dlltool
4420
4421
4422
4423
4424
4425 test -z "$OBJDUMP" && OBJDUMP=objdump
4426
4427
4428
4429
4430
4431
4432
4433 case `pwd` in
4434   *\ * | *\     *)
4435     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4436 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4437 esac
4438
4439
4440
4441 macro_version='2.4.2'
4442 macro_revision='1.3337'
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456 ltmain="$ac_aux_dir/ltmain.sh"
4457
4458 # Backslashify metacharacters that are still active within
4459 # double-quoted strings.
4460 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4461
4462 # Same as above, but do not quote variable references.
4463 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4464
4465 # Sed substitution to delay expansion of an escaped shell variable in a
4466 # double_quote_subst'ed string.
4467 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4468
4469 # Sed substitution to delay expansion of an escaped single quote.
4470 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4471
4472 # Sed substitution to avoid accidental globbing in evaled expressions
4473 no_glob_subst='s/\*/\\\*/g'
4474
4475 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4476 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4477 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4478
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4480 $as_echo_n "checking how to print strings... " >&6; }
4481 # Test print first, because it will be a builtin if present.
4482 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4483    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4484   ECHO='print -r --'
4485 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4486   ECHO='printf %s\n'
4487 else
4488   # Use this function as a fallback that always works.
4489   func_fallback_echo ()
4490   {
4491     eval 'cat <<_LTECHO_EOF
4492 $1
4493 _LTECHO_EOF'
4494   }
4495   ECHO='func_fallback_echo'
4496 fi
4497
4498 # func_echo_all arg...
4499 # Invoke $ECHO with all args, space-separated.
4500 func_echo_all ()
4501 {
4502     $ECHO ""
4503 }
4504
4505 case "$ECHO" in
4506   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4507 $as_echo "printf" >&6; } ;;
4508   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4509 $as_echo "print -r" >&6; } ;;
4510   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4511 $as_echo "cat" >&6; } ;;
4512 esac
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4528 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4529 if ${ac_cv_path_SED+:} false; then :
4530   $as_echo_n "(cached) " >&6
4531 else
4532             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4533      for ac_i in 1 2 3 4 5 6 7; do
4534        ac_script="$ac_script$as_nl$ac_script"
4535      done
4536      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4537      { ac_script=; unset ac_script;}
4538      if test -z "$SED"; then
4539   ac_path_SED_found=false
4540   # Loop through the user's path and test for each of PROGNAME-LIST
4541   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4542 for as_dir in $PATH
4543 do
4544   IFS=$as_save_IFS
4545   test -z "$as_dir" && as_dir=.
4546     for ac_prog in sed gsed; do
4547     for ac_exec_ext in '' $ac_executable_extensions; do
4548       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4549       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4550 # Check for GNU ac_path_SED and select it if it is found.
4551   # Check for GNU $ac_path_SED
4552 case `"$ac_path_SED" --version 2>&1` in
4553 *GNU*)
4554   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4555 *)
4556   ac_count=0
4557   $as_echo_n 0123456789 >"conftest.in"
4558   while :
4559   do
4560     cat "conftest.in" "conftest.in" >"conftest.tmp"
4561     mv "conftest.tmp" "conftest.in"
4562     cp "conftest.in" "conftest.nl"
4563     $as_echo '' >> "conftest.nl"
4564     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4565     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4566     as_fn_arith $ac_count + 1 && ac_count=$as_val
4567     if test $ac_count -gt ${ac_path_SED_max-0}; then
4568       # Best one so far, save it but keep looking for a better one
4569       ac_cv_path_SED="$ac_path_SED"
4570       ac_path_SED_max=$ac_count
4571     fi
4572     # 10*(2^10) chars as input seems more than enough
4573     test $ac_count -gt 10 && break
4574   done
4575   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4576 esac
4577
4578       $ac_path_SED_found && break 3
4579     done
4580   done
4581   done
4582 IFS=$as_save_IFS
4583   if test -z "$ac_cv_path_SED"; then
4584     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4585   fi
4586 else
4587   ac_cv_path_SED=$SED
4588 fi
4589
4590 fi
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4592 $as_echo "$ac_cv_path_SED" >&6; }
4593  SED="$ac_cv_path_SED"
4594   rm -f conftest.sed
4595
4596 test -z "$SED" && SED=sed
4597 Xsed="$SED -e 1s/^X//"
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4610 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4611 if ${ac_cv_path_GREP+:} false; then :
4612   $as_echo_n "(cached) " >&6
4613 else
4614   if test -z "$GREP"; then
4615   ac_path_GREP_found=false
4616   # Loop through the user's path and test for each of PROGNAME-LIST
4617   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4619 do
4620   IFS=$as_save_IFS
4621   test -z "$as_dir" && as_dir=.
4622     for ac_prog in grep ggrep; do
4623     for ac_exec_ext in '' $ac_executable_extensions; do
4624       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4625       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4626 # Check for GNU ac_path_GREP and select it if it is found.
4627   # Check for GNU $ac_path_GREP
4628 case `"$ac_path_GREP" --version 2>&1` in
4629 *GNU*)
4630   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4631 *)
4632   ac_count=0
4633   $as_echo_n 0123456789 >"conftest.in"
4634   while :
4635   do
4636     cat "conftest.in" "conftest.in" >"conftest.tmp"
4637     mv "conftest.tmp" "conftest.in"
4638     cp "conftest.in" "conftest.nl"
4639     $as_echo 'GREP' >> "conftest.nl"
4640     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4641     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4642     as_fn_arith $ac_count + 1 && ac_count=$as_val
4643     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4644       # Best one so far, save it but keep looking for a better one
4645       ac_cv_path_GREP="$ac_path_GREP"
4646       ac_path_GREP_max=$ac_count
4647     fi
4648     # 10*(2^10) chars as input seems more than enough
4649     test $ac_count -gt 10 && break
4650   done
4651   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4652 esac
4653
4654       $ac_path_GREP_found && break 3
4655     done
4656   done
4657   done
4658 IFS=$as_save_IFS
4659   if test -z "$ac_cv_path_GREP"; then
4660     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4661   fi
4662 else
4663   ac_cv_path_GREP=$GREP
4664 fi
4665
4666 fi
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4668 $as_echo "$ac_cv_path_GREP" >&6; }
4669  GREP="$ac_cv_path_GREP"
4670
4671
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4673 $as_echo_n "checking for egrep... " >&6; }
4674 if ${ac_cv_path_EGREP+:} false; then :
4675   $as_echo_n "(cached) " >&6
4676 else
4677   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4678    then ac_cv_path_EGREP="$GREP -E"
4679    else
4680      if test -z "$EGREP"; then
4681   ac_path_EGREP_found=false
4682   # Loop through the user's path and test for each of PROGNAME-LIST
4683   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4684 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4685 do
4686   IFS=$as_save_IFS
4687   test -z "$as_dir" && as_dir=.
4688     for ac_prog in egrep; do
4689     for ac_exec_ext in '' $ac_executable_extensions; do
4690       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4691       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4692 # Check for GNU ac_path_EGREP and select it if it is found.
4693   # Check for GNU $ac_path_EGREP
4694 case `"$ac_path_EGREP" --version 2>&1` in
4695 *GNU*)
4696   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4697 *)
4698   ac_count=0
4699   $as_echo_n 0123456789 >"conftest.in"
4700   while :
4701   do
4702     cat "conftest.in" "conftest.in" >"conftest.tmp"
4703     mv "conftest.tmp" "conftest.in"
4704     cp "conftest.in" "conftest.nl"
4705     $as_echo 'EGREP' >> "conftest.nl"
4706     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4707     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4708     as_fn_arith $ac_count + 1 && ac_count=$as_val
4709     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4710       # Best one so far, save it but keep looking for a better one
4711       ac_cv_path_EGREP="$ac_path_EGREP"
4712       ac_path_EGREP_max=$ac_count
4713     fi
4714     # 10*(2^10) chars as input seems more than enough
4715     test $ac_count -gt 10 && break
4716   done
4717   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4718 esac
4719
4720       $ac_path_EGREP_found && break 3
4721     done
4722   done
4723   done
4724 IFS=$as_save_IFS
4725   if test -z "$ac_cv_path_EGREP"; then
4726     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4727   fi
4728 else
4729   ac_cv_path_EGREP=$EGREP
4730 fi
4731
4732    fi
4733 fi
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4735 $as_echo "$ac_cv_path_EGREP" >&6; }
4736  EGREP="$ac_cv_path_EGREP"
4737
4738
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4740 $as_echo_n "checking for fgrep... " >&6; }
4741 if ${ac_cv_path_FGREP+:} false; then :
4742   $as_echo_n "(cached) " >&6
4743 else
4744   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4745    then ac_cv_path_FGREP="$GREP -F"
4746    else
4747      if test -z "$FGREP"; then
4748   ac_path_FGREP_found=false
4749   # Loop through the user's path and test for each of PROGNAME-LIST
4750   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4752 do
4753   IFS=$as_save_IFS
4754   test -z "$as_dir" && as_dir=.
4755     for ac_prog in fgrep; do
4756     for ac_exec_ext in '' $ac_executable_extensions; do
4757       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4758       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4759 # Check for GNU ac_path_FGREP and select it if it is found.
4760   # Check for GNU $ac_path_FGREP
4761 case `"$ac_path_FGREP" --version 2>&1` in
4762 *GNU*)
4763   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4764 *)
4765   ac_count=0
4766   $as_echo_n 0123456789 >"conftest.in"
4767   while :
4768   do
4769     cat "conftest.in" "conftest.in" >"conftest.tmp"
4770     mv "conftest.tmp" "conftest.in"
4771     cp "conftest.in" "conftest.nl"
4772     $as_echo 'FGREP' >> "conftest.nl"
4773     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4774     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4775     as_fn_arith $ac_count + 1 && ac_count=$as_val
4776     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4777       # Best one so far, save it but keep looking for a better one
4778       ac_cv_path_FGREP="$ac_path_FGREP"
4779       ac_path_FGREP_max=$ac_count
4780     fi
4781     # 10*(2^10) chars as input seems more than enough
4782     test $ac_count -gt 10 && break
4783   done
4784   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4785 esac
4786
4787       $ac_path_FGREP_found && break 3
4788     done
4789   done
4790   done
4791 IFS=$as_save_IFS
4792   if test -z "$ac_cv_path_FGREP"; then
4793     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4794   fi
4795 else
4796   ac_cv_path_FGREP=$FGREP
4797 fi
4798
4799    fi
4800 fi
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4802 $as_echo "$ac_cv_path_FGREP" >&6; }
4803  FGREP="$ac_cv_path_FGREP"
4804
4805
4806 test -z "$GREP" && GREP=grep
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826 # Check whether --with-gnu-ld was given.
4827 if test "${with_gnu_ld+set}" = set; then :
4828   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4829 else
4830   with_gnu_ld=no
4831 fi
4832
4833 ac_prog=ld
4834 if test "$GCC" = yes; then
4835   # Check if gcc -print-prog-name=ld gives a path.
4836   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4837 $as_echo_n "checking for ld used by $CC... " >&6; }
4838   case $host in
4839   *-*-mingw*)
4840     # gcc leaves a trailing carriage return which upsets mingw
4841     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4842   *)
4843     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4844   esac
4845   case $ac_prog in
4846     # Accept absolute paths.
4847     [\\/]* | ?:[\\/]*)
4848       re_direlt='/[^/][^/]*/\.\./'
4849       # Canonicalize the pathname of ld
4850       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4851       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4852         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4853       done
4854       test -z "$LD" && LD="$ac_prog"
4855       ;;
4856   "")
4857     # If it fails, then pretend we aren't using GCC.
4858     ac_prog=ld
4859     ;;
4860   *)
4861     # If it is relative, then search for the first ld in PATH.
4862     with_gnu_ld=unknown
4863     ;;
4864   esac
4865 elif test "$with_gnu_ld" = yes; then
4866   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4867 $as_echo_n "checking for GNU ld... " >&6; }
4868 else
4869   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4870 $as_echo_n "checking for non-GNU ld... " >&6; }
4871 fi
4872 if ${lt_cv_path_LD+:} false; then :
4873   $as_echo_n "(cached) " >&6
4874 else
4875   if test -z "$LD"; then
4876   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4877   for ac_dir in $PATH; do
4878     IFS="$lt_save_ifs"
4879     test -z "$ac_dir" && ac_dir=.
4880     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4881       lt_cv_path_LD="$ac_dir/$ac_prog"
4882       # Check to see if the program is GNU ld.  I'd rather use --version,
4883       # but apparently some variants of GNU ld only accept -v.
4884       # Break only if it was the GNU/non-GNU ld that we prefer.
4885       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4886       *GNU* | *'with BFD'*)
4887         test "$with_gnu_ld" != no && break
4888         ;;
4889       *)
4890         test "$with_gnu_ld" != yes && break
4891         ;;
4892       esac
4893     fi
4894   done
4895   IFS="$lt_save_ifs"
4896 else
4897   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4898 fi
4899 fi
4900
4901 LD="$lt_cv_path_LD"
4902 if test -n "$LD"; then
4903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4904 $as_echo "$LD" >&6; }
4905 else
4906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4907 $as_echo "no" >&6; }
4908 fi
4909 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4911 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4912 if ${lt_cv_prog_gnu_ld+:} false; then :
4913   $as_echo_n "(cached) " >&6
4914 else
4915   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4916 case `$LD -v 2>&1 </dev/null` in
4917 *GNU* | *'with BFD'*)
4918   lt_cv_prog_gnu_ld=yes
4919   ;;
4920 *)
4921   lt_cv_prog_gnu_ld=no
4922   ;;
4923 esac
4924 fi
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4926 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4927 with_gnu_ld=$lt_cv_prog_gnu_ld
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4938 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4939 if ${lt_cv_path_NM+:} false; then :
4940   $as_echo_n "(cached) " >&6
4941 else
4942   if test -n "$NM"; then
4943   # Let the user override the test.
4944   lt_cv_path_NM="$NM"
4945 else
4946   lt_nm_to_check="${ac_tool_prefix}nm"
4947   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4948     lt_nm_to_check="$lt_nm_to_check nm"
4949   fi
4950   for lt_tmp_nm in $lt_nm_to_check; do
4951     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4952     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4953       IFS="$lt_save_ifs"
4954       test -z "$ac_dir" && ac_dir=.
4955       tmp_nm="$ac_dir/$lt_tmp_nm"
4956       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4957         # Check to see if the nm accepts a BSD-compat flag.
4958         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4959         #   nm: unknown option "B" ignored
4960         # Tru64's nm complains that /dev/null is an invalid object file
4961         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4962         */dev/null* | *'Invalid file or object type'*)
4963           lt_cv_path_NM="$tmp_nm -B"
4964           break
4965           ;;
4966         *)
4967           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4968           */dev/null*)
4969             lt_cv_path_NM="$tmp_nm -p"
4970             break
4971             ;;
4972           *)
4973             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4974             continue # so that we can try to find one that supports BSD flags
4975             ;;
4976           esac
4977           ;;
4978         esac
4979       fi
4980     done
4981     IFS="$lt_save_ifs"
4982   done
4983   : ${lt_cv_path_NM=no}
4984 fi
4985 fi
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4987 $as_echo "$lt_cv_path_NM" >&6; }
4988 if test "$lt_cv_path_NM" != "no"; then
4989   NM="$lt_cv_path_NM"
4990 else
4991   # Didn't find any BSD compatible name lister, look for dumpbin.
4992   if test -n "$DUMPBIN"; then :
4993     # Let the user override the test.
4994   else
4995     if test -n "$ac_tool_prefix"; then
4996   for ac_prog in dumpbin "link -dump"
4997   do
4998     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4999 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5001 $as_echo_n "checking for $ac_word... " >&6; }
5002 if ${ac_cv_prog_DUMPBIN+:} false; then :
5003   $as_echo_n "(cached) " >&6
5004 else
5005   if test -n "$DUMPBIN"; then
5006   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5007 else
5008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5009 for as_dir in $PATH
5010 do
5011   IFS=$as_save_IFS
5012   test -z "$as_dir" && as_dir=.
5013     for ac_exec_ext in '' $ac_executable_extensions; do
5014   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5015     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5016     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5017     break 2
5018   fi
5019 done
5020   done
5021 IFS=$as_save_IFS
5022
5023 fi
5024 fi
5025 DUMPBIN=$ac_cv_prog_DUMPBIN
5026 if test -n "$DUMPBIN"; then
5027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5028 $as_echo "$DUMPBIN" >&6; }
5029 else
5030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5031 $as_echo "no" >&6; }
5032 fi
5033
5034
5035     test -n "$DUMPBIN" && break
5036   done
5037 fi
5038 if test -z "$DUMPBIN"; then
5039   ac_ct_DUMPBIN=$DUMPBIN
5040   for ac_prog in dumpbin "link -dump"
5041 do
5042   # Extract the first word of "$ac_prog", so it can be a program name with args.
5043 set dummy $ac_prog; ac_word=$2
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5045 $as_echo_n "checking for $ac_word... " >&6; }
5046 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5047   $as_echo_n "(cached) " >&6
5048 else
5049   if test -n "$ac_ct_DUMPBIN"; then
5050   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5051 else
5052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053 for as_dir in $PATH
5054 do
5055   IFS=$as_save_IFS
5056   test -z "$as_dir" && as_dir=.
5057     for ac_exec_ext in '' $ac_executable_extensions; do
5058   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5059     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5060     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5061     break 2
5062   fi
5063 done
5064   done
5065 IFS=$as_save_IFS
5066
5067 fi
5068 fi
5069 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5070 if test -n "$ac_ct_DUMPBIN"; then
5071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5072 $as_echo "$ac_ct_DUMPBIN" >&6; }
5073 else
5074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5075 $as_echo "no" >&6; }
5076 fi
5077
5078
5079   test -n "$ac_ct_DUMPBIN" && break
5080 done
5081
5082   if test "x$ac_ct_DUMPBIN" = x; then
5083     DUMPBIN=":"
5084   else
5085     case $cross_compiling:$ac_tool_warned in
5086 yes:)
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5088 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5089 ac_tool_warned=yes ;;
5090 esac
5091     DUMPBIN=$ac_ct_DUMPBIN
5092   fi
5093 fi
5094
5095     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5096     *COFF*)
5097       DUMPBIN="$DUMPBIN -symbols"
5098       ;;
5099     *)
5100       DUMPBIN=:
5101       ;;
5102     esac
5103   fi
5104
5105   if test "$DUMPBIN" != ":"; then
5106     NM="$DUMPBIN"
5107   fi
5108 fi
5109 test -z "$NM" && NM=nm
5110
5111
5112
5113
5114
5115
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5117 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5118 if ${lt_cv_nm_interface+:} false; then :
5119   $as_echo_n "(cached) " >&6
5120 else
5121   lt_cv_nm_interface="BSD nm"
5122   echo "int some_variable = 0;" > conftest.$ac_ext
5123   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5124   (eval "$ac_compile" 2>conftest.err)
5125   cat conftest.err >&5
5126   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5127   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5128   cat conftest.err >&5
5129   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5130   cat conftest.out >&5
5131   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5132     lt_cv_nm_interface="MS dumpbin"
5133   fi
5134   rm -f conftest*
5135 fi
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5137 $as_echo "$lt_cv_nm_interface" >&6; }
5138
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5140 $as_echo_n "checking whether ln -s works... " >&6; }
5141 LN_S=$as_ln_s
5142 if test "$LN_S" = "ln -s"; then
5143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5144 $as_echo "yes" >&6; }
5145 else
5146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5147 $as_echo "no, using $LN_S" >&6; }
5148 fi
5149
5150 # find the maximum length of command line arguments
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5152 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5153 if ${lt_cv_sys_max_cmd_len+:} false; then :
5154   $as_echo_n "(cached) " >&6
5155 else
5156     i=0
5157   teststring="ABCD"
5158
5159   case $build_os in
5160   msdosdjgpp*)
5161     # On DJGPP, this test can blow up pretty badly due to problems in libc
5162     # (any single argument exceeding 2000 bytes causes a buffer overrun
5163     # during glob expansion).  Even if it were fixed, the result of this
5164     # check would be larger than it should be.
5165     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5166     ;;
5167
5168   gnu*)
5169     # Under GNU Hurd, this test is not required because there is
5170     # no limit to the length of command line arguments.
5171     # Libtool will interpret -1 as no limit whatsoever
5172     lt_cv_sys_max_cmd_len=-1;
5173     ;;
5174
5175   cygwin* | mingw* | cegcc*)
5176     # On Win9x/ME, this test blows up -- it succeeds, but takes
5177     # about 5 minutes as the teststring grows exponentially.
5178     # Worse, since 9x/ME are not pre-emptively multitasking,
5179     # you end up with a "frozen" computer, even though with patience
5180     # the test eventually succeeds (with a max line length of 256k).
5181     # Instead, let's just punt: use the minimum linelength reported by
5182     # all of the supported platforms: 8192 (on NT/2K/XP).
5183     lt_cv_sys_max_cmd_len=8192;
5184     ;;
5185
5186   mint*)
5187     # On MiNT this can take a long time and run out of memory.
5188     lt_cv_sys_max_cmd_len=8192;
5189     ;;
5190
5191   amigaos*)
5192     # On AmigaOS with pdksh, this test takes hours, literally.
5193     # So we just punt and use a minimum line length of 8192.
5194     lt_cv_sys_max_cmd_len=8192;
5195     ;;
5196
5197   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5198     # This has been around since 386BSD, at least.  Likely further.
5199     if test -x /sbin/sysctl; then
5200       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5201     elif test -x /usr/sbin/sysctl; then
5202       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5203     else
5204       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5205     fi
5206     # And add a safety zone
5207     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5208     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5209     ;;
5210
5211   interix*)
5212     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5213     lt_cv_sys_max_cmd_len=196608
5214     ;;
5215
5216   os2*)
5217     # The test takes a long time on OS/2.
5218     lt_cv_sys_max_cmd_len=8192
5219     ;;
5220
5221   osf*)
5222     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5223     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5224     # nice to cause kernel panics so lets avoid the loop below.
5225     # First set a reasonable default.
5226     lt_cv_sys_max_cmd_len=16384
5227     #
5228     if test -x /sbin/sysconfig; then
5229       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5230         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5231       esac
5232     fi
5233     ;;
5234   sco3.2v5*)
5235     lt_cv_sys_max_cmd_len=102400
5236     ;;
5237   sysv5* | sco5v6* | sysv4.2uw2*)
5238     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5239     if test -n "$kargmax"; then
5240       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5241     else
5242       lt_cv_sys_max_cmd_len=32768
5243     fi
5244     ;;
5245   *)
5246     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5247     if test -n "$lt_cv_sys_max_cmd_len"; then
5248       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5249       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5250     else
5251       # Make teststring a little bigger before we do anything with it.
5252       # a 1K string should be a reasonable start.
5253       for i in 1 2 3 4 5 6 7 8 ; do
5254         teststring=$teststring$teststring
5255       done
5256       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5257       # If test is not a shell built-in, we'll probably end up computing a
5258       # maximum length that is only half of the actual maximum length, but
5259       # we can't tell.
5260       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5261                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5262               test $i != 17 # 1/2 MB should be enough
5263       do
5264         i=`expr $i + 1`
5265         teststring=$teststring$teststring
5266       done
5267       # Only check the string length outside the loop.
5268       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5269       teststring=
5270       # Add a significant safety factor because C++ compilers can tack on
5271       # massive amounts of additional arguments before passing them to the
5272       # linker.  It appears as though 1/2 is a usable value.
5273       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5274     fi
5275     ;;
5276   esac
5277
5278 fi
5279
5280 if test -n $lt_cv_sys_max_cmd_len ; then
5281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5282 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5283 else
5284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5285 $as_echo "none" >&6; }
5286 fi
5287 max_cmd_len=$lt_cv_sys_max_cmd_len
5288
5289
5290
5291
5292
5293
5294 : ${CP="cp -f"}
5295 : ${MV="mv -f"}
5296 : ${RM="rm -f"}
5297
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5299 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5300 # Try some XSI features
5301 xsi_shell=no
5302 ( _lt_dummy="a/b/c"
5303   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5304       = c,a/b,b/c, \
5305     && eval 'test $(( 1 + 1 )) -eq 2 \
5306     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5307   && xsi_shell=yes
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5309 $as_echo "$xsi_shell" >&6; }
5310
5311
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5313 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5314 lt_shell_append=no
5315 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5316     >/dev/null 2>&1 \
5317   && lt_shell_append=yes
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5319 $as_echo "$lt_shell_append" >&6; }
5320
5321
5322 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5323   lt_unset=unset
5324 else
5325   lt_unset=false
5326 fi
5327
5328
5329
5330
5331
5332 # test EBCDIC or ASCII
5333 case `echo X|tr X '\101'` in
5334  A) # ASCII based system
5335     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5336   lt_SP2NL='tr \040 \012'
5337   lt_NL2SP='tr \015\012 \040\040'
5338   ;;
5339  *) # EBCDIC based system
5340   lt_SP2NL='tr \100 \n'
5341   lt_NL2SP='tr \r\n \100\100'
5342   ;;
5343 esac
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5354 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5355 if ${lt_cv_to_host_file_cmd+:} false; then :
5356   $as_echo_n "(cached) " >&6
5357 else
5358   case $host in
5359   *-*-mingw* )
5360     case $build in
5361       *-*-mingw* ) # actually msys
5362         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5363         ;;
5364       *-*-cygwin* )
5365         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5366         ;;
5367       * ) # otherwise, assume *nix
5368         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5369         ;;
5370     esac
5371     ;;
5372   *-*-cygwin* )
5373     case $build in
5374       *-*-mingw* ) # actually msys
5375         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5376         ;;
5377       *-*-cygwin* )
5378         lt_cv_to_host_file_cmd=func_convert_file_noop
5379         ;;
5380       * ) # otherwise, assume *nix
5381         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5382         ;;
5383     esac
5384     ;;
5385   * ) # unhandled hosts (and "normal" native builds)
5386     lt_cv_to_host_file_cmd=func_convert_file_noop
5387     ;;
5388 esac
5389
5390 fi
5391
5392 to_host_file_cmd=$lt_cv_to_host_file_cmd
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5394 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5395
5396
5397
5398
5399
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5401 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5402 if ${lt_cv_to_tool_file_cmd+:} false; then :
5403   $as_echo_n "(cached) " >&6
5404 else
5405   #assume ordinary cross tools, or native build.
5406 lt_cv_to_tool_file_cmd=func_convert_file_noop
5407 case $host in
5408   *-*-mingw* )
5409     case $build in
5410       *-*-mingw* ) # actually msys
5411         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5412         ;;
5413     esac
5414     ;;
5415 esac
5416
5417 fi
5418
5419 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5421 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5422
5423
5424
5425
5426
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5428 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5429 if ${lt_cv_ld_reload_flag+:} false; then :
5430   $as_echo_n "(cached) " >&6
5431 else
5432   lt_cv_ld_reload_flag='-r'
5433 fi
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5435 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5436 reload_flag=$lt_cv_ld_reload_flag
5437 case $reload_flag in
5438 "" | " "*) ;;
5439 *) reload_flag=" $reload_flag" ;;
5440 esac
5441 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5442 case $host_os in
5443   cygwin* | mingw* | pw32* | cegcc*)
5444     if test "$GCC" != yes; then
5445       reload_cmds=false
5446     fi
5447     ;;
5448   darwin*)
5449     if test "$GCC" = yes; then
5450       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5451     else
5452       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5453     fi
5454     ;;
5455 esac
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465 if test -n "$ac_tool_prefix"; then
5466   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5467 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5469 $as_echo_n "checking for $ac_word... " >&6; }
5470 if ${ac_cv_prog_OBJDUMP+:} false; then :
5471   $as_echo_n "(cached) " >&6
5472 else
5473   if test -n "$OBJDUMP"; then
5474   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5475 else
5476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5477 for as_dir in $PATH
5478 do
5479   IFS=$as_save_IFS
5480   test -z "$as_dir" && as_dir=.
5481     for ac_exec_ext in '' $ac_executable_extensions; do
5482   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5483     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5484     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5485     break 2
5486   fi
5487 done
5488   done
5489 IFS=$as_save_IFS
5490
5491 fi
5492 fi
5493 OBJDUMP=$ac_cv_prog_OBJDUMP
5494 if test -n "$OBJDUMP"; then
5495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5496 $as_echo "$OBJDUMP" >&6; }
5497 else
5498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5499 $as_echo "no" >&6; }
5500 fi
5501
5502
5503 fi
5504 if test -z "$ac_cv_prog_OBJDUMP"; then
5505   ac_ct_OBJDUMP=$OBJDUMP
5506   # Extract the first word of "objdump", so it can be a program name with args.
5507 set dummy objdump; ac_word=$2
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5509 $as_echo_n "checking for $ac_word... " >&6; }
5510 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5511   $as_echo_n "(cached) " >&6
5512 else
5513   if test -n "$ac_ct_OBJDUMP"; then
5514   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5515 else
5516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5517 for as_dir in $PATH
5518 do
5519   IFS=$as_save_IFS
5520   test -z "$as_dir" && as_dir=.
5521     for ac_exec_ext in '' $ac_executable_extensions; do
5522   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5523     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5524     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5525     break 2
5526   fi
5527 done
5528   done
5529 IFS=$as_save_IFS
5530
5531 fi
5532 fi
5533 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5534 if test -n "$ac_ct_OBJDUMP"; then
5535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5536 $as_echo "$ac_ct_OBJDUMP" >&6; }
5537 else
5538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5539 $as_echo "no" >&6; }
5540 fi
5541
5542   if test "x$ac_ct_OBJDUMP" = x; then
5543     OBJDUMP="false"
5544   else
5545     case $cross_compiling:$ac_tool_warned in
5546 yes:)
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5548 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5549 ac_tool_warned=yes ;;
5550 esac
5551     OBJDUMP=$ac_ct_OBJDUMP
5552   fi
5553 else
5554   OBJDUMP="$ac_cv_prog_OBJDUMP"
5555 fi
5556
5557 test -z "$OBJDUMP" && OBJDUMP=objdump
5558
5559
5560
5561
5562
5563
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5565 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5566 if ${lt_cv_deplibs_check_method+:} false; then :
5567   $as_echo_n "(cached) " >&6
5568 else
5569   lt_cv_file_magic_cmd='$MAGIC_CMD'
5570 lt_cv_file_magic_test_file=
5571 lt_cv_deplibs_check_method='unknown'
5572 # Need to set the preceding variable on all platforms that support
5573 # interlibrary dependencies.
5574 # 'none' -- dependencies not supported.
5575 # `unknown' -- same as none, but documents that we really don't know.
5576 # 'pass_all' -- all dependencies passed with no checks.
5577 # 'test_compile' -- check by making test program.
5578 # 'file_magic [[regex]]' -- check by looking for files in library path
5579 # which responds to the $file_magic_cmd with a given extended regex.
5580 # If you have `file' or equivalent on your system and you're not sure
5581 # whether `pass_all' will *always* work, you probably want this one.
5582
5583 case $host_os in
5584 aix[4-9]*)
5585   lt_cv_deplibs_check_method=pass_all
5586   ;;
5587
5588 beos*)
5589   lt_cv_deplibs_check_method=pass_all
5590   ;;
5591
5592 bsdi[45]*)
5593   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5594   lt_cv_file_magic_cmd='/usr/bin/file -L'
5595   lt_cv_file_magic_test_file=/shlib/libc.so
5596   ;;
5597
5598 cygwin*)
5599   # func_win32_libid is a shell function defined in ltmain.sh
5600   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5601   lt_cv_file_magic_cmd='func_win32_libid'
5602   ;;
5603
5604 mingw* | pw32*)
5605   # Base MSYS/MinGW do not provide the 'file' command needed by
5606   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5607   # unless we find 'file', for example because we are cross-compiling.
5608   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5609   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5610     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5611     lt_cv_file_magic_cmd='func_win32_libid'
5612   else
5613     # Keep this pattern in sync with the one in func_win32_libid.
5614     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5615     lt_cv_file_magic_cmd='$OBJDUMP -f'
5616   fi
5617   ;;
5618
5619 cegcc*)
5620   # use the weaker test based on 'objdump'. See mingw*.
5621   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5622   lt_cv_file_magic_cmd='$OBJDUMP -f'
5623   ;;
5624
5625 darwin* | rhapsody*)
5626   lt_cv_deplibs_check_method=pass_all
5627   ;;
5628
5629 freebsd* | dragonfly*)
5630   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5631     case $host_cpu in
5632     i*86 )
5633       # Not sure whether the presence of OpenBSD here was a mistake.
5634       # Let's accept both of them until this is cleared up.
5635       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5636       lt_cv_file_magic_cmd=/usr/bin/file
5637       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5638       ;;
5639     esac
5640   else
5641     lt_cv_deplibs_check_method=pass_all
5642   fi
5643   ;;
5644
5645 gnu*)
5646   lt_cv_deplibs_check_method=pass_all
5647   ;;
5648
5649 haiku*)
5650   lt_cv_deplibs_check_method=pass_all
5651   ;;
5652
5653 hpux10.20* | hpux11*)
5654   lt_cv_file_magic_cmd=/usr/bin/file
5655   case $host_cpu in
5656   ia64*)
5657     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5658     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5659     ;;
5660   hppa*64*)
5661     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]'
5662     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5663     ;;
5664   *)
5665     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5666     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5667     ;;
5668   esac
5669   ;;
5670
5671 interix[3-9]*)
5672   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5673   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5674   ;;
5675
5676 irix5* | irix6* | nonstopux*)
5677   case $LD in
5678   *-32|*"-32 ") libmagic=32-bit;;
5679   *-n32|*"-n32 ") libmagic=N32;;
5680   *-64|*"-64 ") libmagic=64-bit;;
5681   *) libmagic=never-match;;
5682   esac
5683   lt_cv_deplibs_check_method=pass_all
5684   ;;
5685
5686 # This must be glibc/ELF.
5687 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5688   lt_cv_deplibs_check_method=pass_all
5689   ;;
5690
5691 netbsd*)
5692   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5693     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5694   else
5695     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5696   fi
5697   ;;
5698
5699 newos6*)
5700   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5701   lt_cv_file_magic_cmd=/usr/bin/file
5702   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5703   ;;
5704
5705 *nto* | *qnx*)
5706   lt_cv_deplibs_check_method=pass_all
5707   ;;
5708
5709 openbsd*)
5710   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5711     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5712   else
5713     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5714   fi
5715   ;;
5716
5717 osf3* | osf4* | osf5*)
5718   lt_cv_deplibs_check_method=pass_all
5719   ;;
5720
5721 rdos*)
5722   lt_cv_deplibs_check_method=pass_all
5723   ;;
5724
5725 solaris*)
5726   lt_cv_deplibs_check_method=pass_all
5727   ;;
5728
5729 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5730   lt_cv_deplibs_check_method=pass_all
5731   ;;
5732
5733 sysv4 | sysv4.3*)
5734   case $host_vendor in
5735   motorola)
5736     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]'
5737     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5738     ;;
5739   ncr)
5740     lt_cv_deplibs_check_method=pass_all
5741     ;;
5742   sequent)
5743     lt_cv_file_magic_cmd='/bin/file'
5744     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5745     ;;
5746   sni)
5747     lt_cv_file_magic_cmd='/bin/file'
5748     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5749     lt_cv_file_magic_test_file=/lib/libc.so
5750     ;;
5751   siemens)
5752     lt_cv_deplibs_check_method=pass_all
5753     ;;
5754   pc)
5755     lt_cv_deplibs_check_method=pass_all
5756     ;;
5757   esac
5758   ;;
5759
5760 tpf*)
5761   lt_cv_deplibs_check_method=pass_all
5762   ;;
5763 esac
5764
5765 fi
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5767 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5768
5769 file_magic_glob=
5770 want_nocaseglob=no
5771 if test "$build" = "$host"; then
5772   case $host_os in
5773   mingw* | pw32*)
5774     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5775       want_nocaseglob=yes
5776     else
5777       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5778     fi
5779     ;;
5780   esac
5781 fi
5782
5783 file_magic_cmd=$lt_cv_file_magic_cmd
5784 deplibs_check_method=$lt_cv_deplibs_check_method
5785 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808 if test -n "$ac_tool_prefix"; then
5809   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5810 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5812 $as_echo_n "checking for $ac_word... " >&6; }
5813 if ${ac_cv_prog_DLLTOOL+:} false; then :
5814   $as_echo_n "(cached) " >&6
5815 else
5816   if test -n "$DLLTOOL"; then
5817   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5818 else
5819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5820 for as_dir in $PATH
5821 do
5822   IFS=$as_save_IFS
5823   test -z "$as_dir" && as_dir=.
5824     for ac_exec_ext in '' $ac_executable_extensions; do
5825   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5826     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5827     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5828     break 2
5829   fi
5830 done
5831   done
5832 IFS=$as_save_IFS
5833
5834 fi
5835 fi
5836 DLLTOOL=$ac_cv_prog_DLLTOOL
5837 if test -n "$DLLTOOL"; then
5838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5839 $as_echo "$DLLTOOL" >&6; }
5840 else
5841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5842 $as_echo "no" >&6; }
5843 fi
5844
5845
5846 fi
5847 if test -z "$ac_cv_prog_DLLTOOL"; then
5848   ac_ct_DLLTOOL=$DLLTOOL
5849   # Extract the first word of "dlltool", so it can be a program name with args.
5850 set dummy dlltool; ac_word=$2
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5852 $as_echo_n "checking for $ac_word... " >&6; }
5853 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5854   $as_echo_n "(cached) " >&6
5855 else
5856   if test -n "$ac_ct_DLLTOOL"; then
5857   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5858 else
5859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5860 for as_dir in $PATH
5861 do
5862   IFS=$as_save_IFS
5863   test -z "$as_dir" && as_dir=.
5864     for ac_exec_ext in '' $ac_executable_extensions; do
5865   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5866     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5867     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5868     break 2
5869   fi
5870 done
5871   done
5872 IFS=$as_save_IFS
5873
5874 fi
5875 fi
5876 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5877 if test -n "$ac_ct_DLLTOOL"; then
5878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5879 $as_echo "$ac_ct_DLLTOOL" >&6; }
5880 else
5881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5882 $as_echo "no" >&6; }
5883 fi
5884
5885   if test "x$ac_ct_DLLTOOL" = x; then
5886     DLLTOOL="false"
5887   else
5888     case $cross_compiling:$ac_tool_warned in
5889 yes:)
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5891 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5892 ac_tool_warned=yes ;;
5893 esac
5894     DLLTOOL=$ac_ct_DLLTOOL
5895   fi
5896 else
5897   DLLTOOL="$ac_cv_prog_DLLTOOL"
5898 fi
5899
5900 test -z "$DLLTOOL" && DLLTOOL=dlltool
5901
5902
5903
5904
5905
5906
5907
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5909 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5910 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5911   $as_echo_n "(cached) " >&6
5912 else
5913   lt_cv_sharedlib_from_linklib_cmd='unknown'
5914
5915 case $host_os in
5916 cygwin* | mingw* | pw32* | cegcc*)
5917   # two different shell functions defined in ltmain.sh
5918   # decide which to use based on capabilities of $DLLTOOL
5919   case `$DLLTOOL --help 2>&1` in
5920   *--identify-strict*)
5921     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5922     ;;
5923   *)
5924     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5925     ;;
5926   esac
5927   ;;
5928 *)
5929   # fallback: assume linklib IS sharedlib
5930   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5931   ;;
5932 esac
5933
5934 fi
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5936 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5937 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5938 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5939
5940
5941
5942
5943
5944
5945
5946 if test -n "$ac_tool_prefix"; then
5947   for ac_prog in ar
5948   do
5949     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5950 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5952 $as_echo_n "checking for $ac_word... " >&6; }
5953 if ${ac_cv_prog_AR+:} false; then :
5954   $as_echo_n "(cached) " >&6
5955 else
5956   if test -n "$AR"; then
5957   ac_cv_prog_AR="$AR" # Let the user override the test.
5958 else
5959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5960 for as_dir in $PATH
5961 do
5962   IFS=$as_save_IFS
5963   test -z "$as_dir" && as_dir=.
5964     for ac_exec_ext in '' $ac_executable_extensions; do
5965   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5966     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5967     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5968     break 2
5969   fi
5970 done
5971   done
5972 IFS=$as_save_IFS
5973
5974 fi
5975 fi
5976 AR=$ac_cv_prog_AR
5977 if test -n "$AR"; then
5978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5979 $as_echo "$AR" >&6; }
5980 else
5981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5982 $as_echo "no" >&6; }
5983 fi
5984
5985
5986     test -n "$AR" && break
5987   done
5988 fi
5989 if test -z "$AR"; then
5990   ac_ct_AR=$AR
5991   for ac_prog in ar
5992 do
5993   # Extract the first word of "$ac_prog", so it can be a program name with args.
5994 set dummy $ac_prog; ac_word=$2
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5996 $as_echo_n "checking for $ac_word... " >&6; }
5997 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5998   $as_echo_n "(cached) " >&6
5999 else
6000   if test -n "$ac_ct_AR"; then
6001   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6002 else
6003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6004 for as_dir in $PATH
6005 do
6006   IFS=$as_save_IFS
6007   test -z "$as_dir" && as_dir=.
6008     for ac_exec_ext in '' $ac_executable_extensions; do
6009   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6010     ac_cv_prog_ac_ct_AR="$ac_prog"
6011     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6012     break 2
6013   fi
6014 done
6015   done
6016 IFS=$as_save_IFS
6017
6018 fi
6019 fi
6020 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6021 if test -n "$ac_ct_AR"; then
6022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6023 $as_echo "$ac_ct_AR" >&6; }
6024 else
6025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6026 $as_echo "no" >&6; }
6027 fi
6028
6029
6030   test -n "$ac_ct_AR" && break
6031 done
6032
6033   if test "x$ac_ct_AR" = x; then
6034     AR="false"
6035   else
6036     case $cross_compiling:$ac_tool_warned in
6037 yes:)
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6039 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6040 ac_tool_warned=yes ;;
6041 esac
6042     AR=$ac_ct_AR
6043   fi
6044 fi
6045
6046 : ${AR=ar}
6047 : ${AR_FLAGS=cru}
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6060 $as_echo_n "checking for archiver @FILE support... " >&6; }
6061 if ${lt_cv_ar_at_file+:} false; then :
6062   $as_echo_n "(cached) " >&6
6063 else
6064   lt_cv_ar_at_file=no
6065    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6066 /* end confdefs.h.  */
6067
6068 int
6069 main ()
6070 {
6071
6072   ;
6073   return 0;
6074 }
6075 _ACEOF
6076 if ac_fn_c_try_compile "$LINENO"; then :
6077   echo conftest.$ac_objext > conftest.lst
6078       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6079       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6080   (eval $lt_ar_try) 2>&5
6081   ac_status=$?
6082   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6083   test $ac_status = 0; }
6084       if test "$ac_status" -eq 0; then
6085         # Ensure the archiver fails upon bogus file names.
6086         rm -f conftest.$ac_objext libconftest.a
6087         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6088   (eval $lt_ar_try) 2>&5
6089   ac_status=$?
6090   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6091   test $ac_status = 0; }
6092         if test "$ac_status" -ne 0; then
6093           lt_cv_ar_at_file=@
6094         fi
6095       fi
6096       rm -f conftest.* libconftest.a
6097
6098 fi
6099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6100
6101 fi
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6103 $as_echo "$lt_cv_ar_at_file" >&6; }
6104
6105 if test "x$lt_cv_ar_at_file" = xno; then
6106   archiver_list_spec=
6107 else
6108   archiver_list_spec=$lt_cv_ar_at_file
6109 fi
6110
6111
6112
6113
6114
6115
6116
6117 if test -n "$ac_tool_prefix"; then
6118   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6119 set dummy ${ac_tool_prefix}strip; ac_word=$2
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6121 $as_echo_n "checking for $ac_word... " >&6; }
6122 if ${ac_cv_prog_STRIP+:} false; then :
6123   $as_echo_n "(cached) " >&6
6124 else
6125   if test -n "$STRIP"; then
6126   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6127 else
6128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6129 for as_dir in $PATH
6130 do
6131   IFS=$as_save_IFS
6132   test -z "$as_dir" && as_dir=.
6133     for ac_exec_ext in '' $ac_executable_extensions; do
6134   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6135     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6136     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6137     break 2
6138   fi
6139 done
6140   done
6141 IFS=$as_save_IFS
6142
6143 fi
6144 fi
6145 STRIP=$ac_cv_prog_STRIP
6146 if test -n "$STRIP"; then
6147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6148 $as_echo "$STRIP" >&6; }
6149 else
6150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6151 $as_echo "no" >&6; }
6152 fi
6153
6154
6155 fi
6156 if test -z "$ac_cv_prog_STRIP"; then
6157   ac_ct_STRIP=$STRIP
6158   # Extract the first word of "strip", so it can be a program name with args.
6159 set dummy strip; ac_word=$2
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6161 $as_echo_n "checking for $ac_word... " >&6; }
6162 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6163   $as_echo_n "(cached) " >&6
6164 else
6165   if test -n "$ac_ct_STRIP"; then
6166   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6167 else
6168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6169 for as_dir in $PATH
6170 do
6171   IFS=$as_save_IFS
6172   test -z "$as_dir" && as_dir=.
6173     for ac_exec_ext in '' $ac_executable_extensions; do
6174   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6175     ac_cv_prog_ac_ct_STRIP="strip"
6176     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6177     break 2
6178   fi
6179 done
6180   done
6181 IFS=$as_save_IFS
6182
6183 fi
6184 fi
6185 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6186 if test -n "$ac_ct_STRIP"; then
6187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6188 $as_echo "$ac_ct_STRIP" >&6; }
6189 else
6190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6191 $as_echo "no" >&6; }
6192 fi
6193
6194   if test "x$ac_ct_STRIP" = x; then
6195     STRIP=":"
6196   else
6197     case $cross_compiling:$ac_tool_warned in
6198 yes:)
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6200 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6201 ac_tool_warned=yes ;;
6202 esac
6203     STRIP=$ac_ct_STRIP
6204   fi
6205 else
6206   STRIP="$ac_cv_prog_STRIP"
6207 fi
6208
6209 test -z "$STRIP" && STRIP=:
6210
6211
6212
6213
6214
6215
6216 if test -n "$ac_tool_prefix"; then
6217   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6218 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6220 $as_echo_n "checking for $ac_word... " >&6; }
6221 if ${ac_cv_prog_RANLIB+:} false; then :
6222   $as_echo_n "(cached) " >&6
6223 else
6224   if test -n "$RANLIB"; then
6225   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6226 else
6227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6228 for as_dir in $PATH
6229 do
6230   IFS=$as_save_IFS
6231   test -z "$as_dir" && as_dir=.
6232     for ac_exec_ext in '' $ac_executable_extensions; do
6233   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6234     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6235     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6236     break 2
6237   fi
6238 done
6239   done
6240 IFS=$as_save_IFS
6241
6242 fi
6243 fi
6244 RANLIB=$ac_cv_prog_RANLIB
6245 if test -n "$RANLIB"; then
6246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6247 $as_echo "$RANLIB" >&6; }
6248 else
6249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6250 $as_echo "no" >&6; }
6251 fi
6252
6253
6254 fi
6255 if test -z "$ac_cv_prog_RANLIB"; then
6256   ac_ct_RANLIB=$RANLIB
6257   # Extract the first word of "ranlib", so it can be a program name with args.
6258 set dummy ranlib; ac_word=$2
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6260 $as_echo_n "checking for $ac_word... " >&6; }
6261 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6262   $as_echo_n "(cached) " >&6
6263 else
6264   if test -n "$ac_ct_RANLIB"; then
6265   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6266 else
6267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6268 for as_dir in $PATH
6269 do
6270   IFS=$as_save_IFS
6271   test -z "$as_dir" && as_dir=.
6272     for ac_exec_ext in '' $ac_executable_extensions; do
6273   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6274     ac_cv_prog_ac_ct_RANLIB="ranlib"
6275     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6276     break 2
6277   fi
6278 done
6279   done
6280 IFS=$as_save_IFS
6281
6282 fi
6283 fi
6284 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6285 if test -n "$ac_ct_RANLIB"; then
6286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6287 $as_echo "$ac_ct_RANLIB" >&6; }
6288 else
6289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6290 $as_echo "no" >&6; }
6291 fi
6292
6293   if test "x$ac_ct_RANLIB" = x; then
6294     RANLIB=":"
6295   else
6296     case $cross_compiling:$ac_tool_warned in
6297 yes:)
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6299 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6300 ac_tool_warned=yes ;;
6301 esac
6302     RANLIB=$ac_ct_RANLIB
6303   fi
6304 else
6305   RANLIB="$ac_cv_prog_RANLIB"
6306 fi
6307
6308 test -z "$RANLIB" && RANLIB=:
6309
6310
6311
6312
6313
6314
6315 # Determine commands to create old-style static archives.
6316 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6317 old_postinstall_cmds='chmod 644 $oldlib'
6318 old_postuninstall_cmds=
6319
6320 if test -n "$RANLIB"; then
6321   case $host_os in
6322   openbsd*)
6323     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6324     ;;
6325   *)
6326     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6327     ;;
6328   esac
6329   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6330 fi
6331
6332 case $host_os in
6333   darwin*)
6334     lock_old_archive_extraction=yes ;;
6335   *)
6336     lock_old_archive_extraction=no ;;
6337 esac
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377 # If no C compiler was specified, use CC.
6378 LTCC=${LTCC-"$CC"}
6379
6380 # If no C compiler flags were specified, use CFLAGS.
6381 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6382
6383 # Allow CC to be a program name with arguments.
6384 compiler=$CC
6385
6386
6387 # Check for command to grab the raw symbol name followed by C symbol from nm.
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6389 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6390 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6391   $as_echo_n "(cached) " >&6
6392 else
6393
6394 # These are sane defaults that work on at least a few old systems.
6395 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6396
6397 # Character class describing NM global symbol codes.
6398 symcode='[BCDEGRST]'
6399
6400 # Regexp to match symbols that can be accessed directly from C.
6401 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6402
6403 # Define system-specific variables.
6404 case $host_os in
6405 aix*)
6406   symcode='[BCDT]'
6407   ;;
6408 cygwin* | mingw* | pw32* | cegcc*)
6409   symcode='[ABCDGISTW]'
6410   ;;
6411 hpux*)
6412   if test "$host_cpu" = ia64; then
6413     symcode='[ABCDEGRST]'
6414   fi
6415   ;;
6416 irix* | nonstopux*)
6417   symcode='[BCDEGRST]'
6418   ;;
6419 osf*)
6420   symcode='[BCDEGQRST]'
6421   ;;
6422 solaris*)
6423   symcode='[BDRT]'
6424   ;;
6425 sco3.2v5*)
6426   symcode='[DT]'
6427   ;;
6428 sysv4.2uw2*)
6429   symcode='[DT]'
6430   ;;
6431 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6432   symcode='[ABDT]'
6433   ;;
6434 sysv4)
6435   symcode='[DFNSTU]'
6436   ;;
6437 esac
6438
6439 # If we're using GNU nm, then use its standard symbol codes.
6440 case `$NM -V 2>&1` in
6441 *GNU* | *'with BFD'*)
6442   symcode='[ABCDGIRSTW]' ;;
6443 esac
6444
6445 # Transform an extracted symbol line into a proper C declaration.
6446 # Some systems (esp. on ia64) link data and code symbols differently,
6447 # so use this general approach.
6448 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6449
6450 # Transform an extracted symbol line into symbol name and symbol address
6451 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6452 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'"
6453
6454 # Handle CRLF in mingw tool chain
6455 opt_cr=
6456 case $build_os in
6457 mingw*)
6458   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6459   ;;
6460 esac
6461
6462 # Try without a prefix underscore, then with it.
6463 for ac_symprfx in "" "_"; do
6464
6465   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6466   symxfrm="\\1 $ac_symprfx\\2 \\2"
6467
6468   # Write the raw and C identifiers.
6469   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6470     # Fake it for dumpbin and say T for any non-static function
6471     # and D for any global variable.
6472     # Also find C++ and __fastcall symbols from MSVC++,
6473     # which start with @ or ?.
6474     lt_cv_sys_global_symbol_pipe="$AWK '"\
6475 "     {last_section=section; section=\$ 3};"\
6476 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6477 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6478 "     \$ 0!~/External *\|/{next};"\
6479 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6480 "     {if(hide[section]) next};"\
6481 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6482 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6483 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6484 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6485 "     ' prfx=^$ac_symprfx"
6486   else
6487     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6488   fi
6489   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6490
6491   # Check to see that the pipe works correctly.
6492   pipe_works=no
6493
6494   rm -f conftest*
6495   cat > conftest.$ac_ext <<_LT_EOF
6496 #ifdef __cplusplus
6497 extern "C" {
6498 #endif
6499 char nm_test_var;
6500 void nm_test_func(void);
6501 void nm_test_func(void){}
6502 #ifdef __cplusplus
6503 }
6504 #endif
6505 int main(){nm_test_var='a';nm_test_func();return(0);}
6506 _LT_EOF
6507
6508   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6509   (eval $ac_compile) 2>&5
6510   ac_status=$?
6511   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6512   test $ac_status = 0; }; then
6513     # Now try to grab the symbols.
6514     nlist=conftest.nm
6515     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6516   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6517   ac_status=$?
6518   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6519   test $ac_status = 0; } && test -s "$nlist"; then
6520       # Try sorting and uniquifying the output.
6521       if sort "$nlist" | uniq > "$nlist"T; then
6522         mv -f "$nlist"T "$nlist"
6523       else
6524         rm -f "$nlist"T
6525       fi
6526
6527       # Make sure that we snagged all the symbols we need.
6528       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6529         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6530           cat <<_LT_EOF > conftest.$ac_ext
6531 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6532 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6533 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6534    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6535 # define LT_DLSYM_CONST
6536 #elif defined(__osf__)
6537 /* This system does not cope well with relocations in const data.  */
6538 # define LT_DLSYM_CONST
6539 #else
6540 # define LT_DLSYM_CONST const
6541 #endif
6542
6543 #ifdef __cplusplus
6544 extern "C" {
6545 #endif
6546
6547 _LT_EOF
6548           # Now generate the symbol file.
6549           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6550
6551           cat <<_LT_EOF >> conftest.$ac_ext
6552
6553 /* The mapping between symbol names and symbols.  */
6554 LT_DLSYM_CONST struct {
6555   const char *name;
6556   void       *address;
6557 }
6558 lt__PROGRAM__LTX_preloaded_symbols[] =
6559 {
6560   { "@PROGRAM@", (void *) 0 },
6561 _LT_EOF
6562           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6563           cat <<\_LT_EOF >> conftest.$ac_ext
6564   {0, (void *) 0}
6565 };
6566
6567 /* This works around a problem in FreeBSD linker */
6568 #ifdef FREEBSD_WORKAROUND
6569 static const void *lt_preloaded_setup() {
6570   return lt__PROGRAM__LTX_preloaded_symbols;
6571 }
6572 #endif
6573
6574 #ifdef __cplusplus
6575 }
6576 #endif
6577 _LT_EOF
6578           # Now try linking the two files.
6579           mv conftest.$ac_objext conftstm.$ac_objext
6580           lt_globsym_save_LIBS=$LIBS
6581           lt_globsym_save_CFLAGS=$CFLAGS
6582           LIBS="conftstm.$ac_objext"
6583           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6584           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6585   (eval $ac_link) 2>&5
6586   ac_status=$?
6587   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6588   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6589             pipe_works=yes
6590           fi
6591           LIBS=$lt_globsym_save_LIBS
6592           CFLAGS=$lt_globsym_save_CFLAGS
6593         else
6594           echo "cannot find nm_test_func in $nlist" >&5
6595         fi
6596       else
6597         echo "cannot find nm_test_var in $nlist" >&5
6598       fi
6599     else
6600       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6601     fi
6602   else
6603     echo "$progname: failed program was:" >&5
6604     cat conftest.$ac_ext >&5
6605   fi
6606   rm -rf conftest* conftst*
6607
6608   # Do not use the global_symbol_pipe unless it works.
6609   if test "$pipe_works" = yes; then
6610     break
6611   else
6612     lt_cv_sys_global_symbol_pipe=
6613   fi
6614 done
6615
6616 fi
6617
6618 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6619   lt_cv_sys_global_symbol_to_cdecl=
6620 fi
6621 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6623 $as_echo "failed" >&6; }
6624 else
6625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6626 $as_echo "ok" >&6; }
6627 fi
6628
6629 # Response file support.
6630 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6631   nm_file_list_spec='@'
6632 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6633   nm_file_list_spec='@'
6634 fi
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6663 $as_echo_n "checking for sysroot... " >&6; }
6664
6665 # Check whether --with-sysroot was given.
6666 if test "${with_sysroot+set}" = set; then :
6667   withval=$with_sysroot;
6668 else
6669   with_sysroot=no
6670 fi
6671
6672
6673 lt_sysroot=
6674 case ${with_sysroot} in #(
6675  yes)
6676    if test "$GCC" = yes; then
6677      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6678    fi
6679    ;; #(
6680  /*)
6681    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6682    ;; #(
6683  no|'')
6684    ;; #(
6685  *)
6686    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6687 $as_echo "${with_sysroot}" >&6; }
6688    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6689    ;;
6690 esac
6691
6692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6693 $as_echo "${lt_sysroot:-no}" >&6; }
6694
6695
6696
6697
6698
6699 # Check whether --enable-libtool-lock was given.
6700 if test "${enable_libtool_lock+set}" = set; then :
6701   enableval=$enable_libtool_lock;
6702 fi
6703
6704 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6705
6706 # Some flags need to be propagated to the compiler or linker for good
6707 # libtool support.
6708 case $host in
6709 ia64-*-hpux*)
6710   # Find out which ABI we are using.
6711   echo 'int i;' > conftest.$ac_ext
6712   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6713   (eval $ac_compile) 2>&5
6714   ac_status=$?
6715   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6716   test $ac_status = 0; }; then
6717     case `/usr/bin/file conftest.$ac_objext` in
6718       *ELF-32*)
6719         HPUX_IA64_MODE="32"
6720         ;;
6721       *ELF-64*)
6722         HPUX_IA64_MODE="64"
6723         ;;
6724     esac
6725   fi
6726   rm -rf conftest*
6727   ;;
6728 *-*-irix6*)
6729   # Find out which ABI we are using.
6730   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6731   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6732   (eval $ac_compile) 2>&5
6733   ac_status=$?
6734   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6735   test $ac_status = 0; }; then
6736     if test "$lt_cv_prog_gnu_ld" = yes; then
6737       case `/usr/bin/file conftest.$ac_objext` in
6738         *32-bit*)
6739           LD="${LD-ld} -melf32bsmip"
6740           ;;
6741         *N32*)
6742           LD="${LD-ld} -melf32bmipn32"
6743           ;;
6744         *64-bit*)
6745           LD="${LD-ld} -melf64bmip"
6746         ;;
6747       esac
6748     else
6749       case `/usr/bin/file conftest.$ac_objext` in
6750         *32-bit*)
6751           LD="${LD-ld} -32"
6752           ;;
6753         *N32*)
6754           LD="${LD-ld} -n32"
6755           ;;
6756         *64-bit*)
6757           LD="${LD-ld} -64"
6758           ;;
6759       esac
6760     fi
6761   fi
6762   rm -rf conftest*
6763   ;;
6764
6765 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6766 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6767   # Find out which ABI we are using.
6768   echo 'int i;' > conftest.$ac_ext
6769   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6770   (eval $ac_compile) 2>&5
6771   ac_status=$?
6772   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6773   test $ac_status = 0; }; then
6774     case `/usr/bin/file conftest.o` in
6775       *32-bit*)
6776         case $host in
6777           x86_64-*kfreebsd*-gnu)
6778             LD="${LD-ld} -m elf_i386_fbsd"
6779             ;;
6780           x86_64-*linux*)
6781             LD="${LD-ld} -m elf_i386"
6782             ;;
6783           ppc64-*linux*|powerpc64-*linux*)
6784             LD="${LD-ld} -m elf32ppclinux"
6785             ;;
6786           s390x-*linux*)
6787             LD="${LD-ld} -m elf_s390"
6788             ;;
6789           sparc64-*linux*)
6790             LD="${LD-ld} -m elf32_sparc"
6791             ;;
6792         esac
6793         ;;
6794       *64-bit*)
6795         case $host in
6796           x86_64-*kfreebsd*-gnu)
6797             LD="${LD-ld} -m elf_x86_64_fbsd"
6798             ;;
6799           x86_64-*linux*)
6800             LD="${LD-ld} -m elf_x86_64"
6801             ;;
6802           ppc*-*linux*|powerpc*-*linux*)
6803             LD="${LD-ld} -m elf64ppc"
6804             ;;
6805           s390*-*linux*|s390*-*tpf*)
6806             LD="${LD-ld} -m elf64_s390"
6807             ;;
6808           sparc*-*linux*)
6809             LD="${LD-ld} -m elf64_sparc"
6810             ;;
6811         esac
6812         ;;
6813     esac
6814   fi
6815   rm -rf conftest*
6816   ;;
6817
6818 *-*-sco3.2v5*)
6819   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6820   SAVE_CFLAGS="$CFLAGS"
6821   CFLAGS="$CFLAGS -belf"
6822   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6823 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6824 if ${lt_cv_cc_needs_belf+:} false; then :
6825   $as_echo_n "(cached) " >&6
6826 else
6827   ac_ext=c
6828 ac_cpp='$CPP $CPPFLAGS'
6829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6832
6833      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6834 /* end confdefs.h.  */
6835
6836 int
6837 main ()
6838 {
6839
6840   ;
6841   return 0;
6842 }
6843 _ACEOF
6844 if ac_fn_c_try_link "$LINENO"; then :
6845   lt_cv_cc_needs_belf=yes
6846 else
6847   lt_cv_cc_needs_belf=no
6848 fi
6849 rm -f core conftest.err conftest.$ac_objext \
6850     conftest$ac_exeext conftest.$ac_ext
6851      ac_ext=c
6852 ac_cpp='$CPP $CPPFLAGS'
6853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6856
6857 fi
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6859 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6860   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6861     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6862     CFLAGS="$SAVE_CFLAGS"
6863   fi
6864   ;;
6865 *-*solaris*)
6866   # Find out which ABI we are using.
6867   echo 'int i;' > conftest.$ac_ext
6868   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6869   (eval $ac_compile) 2>&5
6870   ac_status=$?
6871   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6872   test $ac_status = 0; }; then
6873     case `/usr/bin/file conftest.o` in
6874     *64-bit*)
6875       case $lt_cv_prog_gnu_ld in
6876       yes*)
6877         case $host in
6878         i?86-*-solaris*)
6879           LD="${LD-ld} -m elf_x86_64"
6880           ;;
6881         sparc*-*-solaris*)
6882           LD="${LD-ld} -m elf64_sparc"
6883           ;;
6884         esac
6885         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6886         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6887           LD="${LD-ld}_sol2"
6888         fi
6889         ;;
6890       *)
6891         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6892           LD="${LD-ld} -64"
6893         fi
6894         ;;
6895       esac
6896       ;;
6897     esac
6898   fi
6899   rm -rf conftest*
6900   ;;
6901 esac
6902
6903 need_locks="$enable_libtool_lock"
6904
6905 if test -n "$ac_tool_prefix"; then
6906   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6907 set dummy ${ac_tool_prefix}mt; ac_word=$2
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6909 $as_echo_n "checking for $ac_word... " >&6; }
6910 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6911   $as_echo_n "(cached) " >&6
6912 else
6913   if test -n "$MANIFEST_TOOL"; then
6914   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6915 else
6916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6917 for as_dir in $PATH
6918 do
6919   IFS=$as_save_IFS
6920   test -z "$as_dir" && as_dir=.
6921     for ac_exec_ext in '' $ac_executable_extensions; do
6922   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6923     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6924     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6925     break 2
6926   fi
6927 done
6928   done
6929 IFS=$as_save_IFS
6930
6931 fi
6932 fi
6933 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6934 if test -n "$MANIFEST_TOOL"; then
6935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6936 $as_echo "$MANIFEST_TOOL" >&6; }
6937 else
6938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6939 $as_echo "no" >&6; }
6940 fi
6941
6942
6943 fi
6944 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6945   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6946   # Extract the first word of "mt", so it can be a program name with args.
6947 set dummy mt; ac_word=$2
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6949 $as_echo_n "checking for $ac_word... " >&6; }
6950 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6951   $as_echo_n "(cached) " >&6
6952 else
6953   if test -n "$ac_ct_MANIFEST_TOOL"; then
6954   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6955 else
6956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6957 for as_dir in $PATH
6958 do
6959   IFS=$as_save_IFS
6960   test -z "$as_dir" && as_dir=.
6961     for ac_exec_ext in '' $ac_executable_extensions; do
6962   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6963     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6964     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6965     break 2
6966   fi
6967 done
6968   done
6969 IFS=$as_save_IFS
6970
6971 fi
6972 fi
6973 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6974 if test -n "$ac_ct_MANIFEST_TOOL"; then
6975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6976 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6977 else
6978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6979 $as_echo "no" >&6; }
6980 fi
6981
6982   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6983     MANIFEST_TOOL=":"
6984   else
6985     case $cross_compiling:$ac_tool_warned in
6986 yes:)
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6988 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6989 ac_tool_warned=yes ;;
6990 esac
6991     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6992   fi
6993 else
6994   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6995 fi
6996
6997 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6999 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7000 if ${lt_cv_path_mainfest_tool+:} false; then :
7001   $as_echo_n "(cached) " >&6
7002 else
7003   lt_cv_path_mainfest_tool=no
7004   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7005   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7006   cat conftest.err >&5
7007   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7008     lt_cv_path_mainfest_tool=yes
7009   fi
7010   rm -f conftest*
7011 fi
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7013 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7014 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7015   MANIFEST_TOOL=:
7016 fi
7017
7018
7019
7020
7021
7022
7023   case $host_os in
7024     rhapsody* | darwin*)
7025     if test -n "$ac_tool_prefix"; then
7026   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7027 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7029 $as_echo_n "checking for $ac_word... " >&6; }
7030 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7031   $as_echo_n "(cached) " >&6
7032 else
7033   if test -n "$DSYMUTIL"; then
7034   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7035 else
7036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7037 for as_dir in $PATH
7038 do
7039   IFS=$as_save_IFS
7040   test -z "$as_dir" && as_dir=.
7041     for ac_exec_ext in '' $ac_executable_extensions; do
7042   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7043     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7044     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7045     break 2
7046   fi
7047 done
7048   done
7049 IFS=$as_save_IFS
7050
7051 fi
7052 fi
7053 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7054 if test -n "$DSYMUTIL"; then
7055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7056 $as_echo "$DSYMUTIL" >&6; }
7057 else
7058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7059 $as_echo "no" >&6; }
7060 fi
7061
7062
7063 fi
7064 if test -z "$ac_cv_prog_DSYMUTIL"; then
7065   ac_ct_DSYMUTIL=$DSYMUTIL
7066   # Extract the first word of "dsymutil", so it can be a program name with args.
7067 set dummy dsymutil; ac_word=$2
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7069 $as_echo_n "checking for $ac_word... " >&6; }
7070 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7071   $as_echo_n "(cached) " >&6
7072 else
7073   if test -n "$ac_ct_DSYMUTIL"; then
7074   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7075 else
7076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7077 for as_dir in $PATH
7078 do
7079   IFS=$as_save_IFS
7080   test -z "$as_dir" && as_dir=.
7081     for ac_exec_ext in '' $ac_executable_extensions; do
7082   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7084     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7085     break 2
7086   fi
7087 done
7088   done
7089 IFS=$as_save_IFS
7090
7091 fi
7092 fi
7093 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7094 if test -n "$ac_ct_DSYMUTIL"; then
7095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7096 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7097 else
7098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7099 $as_echo "no" >&6; }
7100 fi
7101
7102   if test "x$ac_ct_DSYMUTIL" = x; then
7103     DSYMUTIL=":"
7104   else
7105     case $cross_compiling:$ac_tool_warned in
7106 yes:)
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7109 ac_tool_warned=yes ;;
7110 esac
7111     DSYMUTIL=$ac_ct_DSYMUTIL
7112   fi
7113 else
7114   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7115 fi
7116
7117     if test -n "$ac_tool_prefix"; then
7118   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7119 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7121 $as_echo_n "checking for $ac_word... " >&6; }
7122 if ${ac_cv_prog_NMEDIT+:} false; then :
7123   $as_echo_n "(cached) " >&6
7124 else
7125   if test -n "$NMEDIT"; then
7126   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7127 else
7128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7129 for as_dir in $PATH
7130 do
7131   IFS=$as_save_IFS
7132   test -z "$as_dir" && as_dir=.
7133     for ac_exec_ext in '' $ac_executable_extensions; do
7134   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7135     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7136     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7137     break 2
7138   fi
7139 done
7140   done
7141 IFS=$as_save_IFS
7142
7143 fi
7144 fi
7145 NMEDIT=$ac_cv_prog_NMEDIT
7146 if test -n "$NMEDIT"; then
7147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7148 $as_echo "$NMEDIT" >&6; }
7149 else
7150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7151 $as_echo "no" >&6; }
7152 fi
7153
7154
7155 fi
7156 if test -z "$ac_cv_prog_NMEDIT"; then
7157   ac_ct_NMEDIT=$NMEDIT
7158   # Extract the first word of "nmedit", so it can be a program name with args.
7159 set dummy nmedit; ac_word=$2
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7161 $as_echo_n "checking for $ac_word... " >&6; }
7162 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7163   $as_echo_n "(cached) " >&6
7164 else
7165   if test -n "$ac_ct_NMEDIT"; then
7166   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7167 else
7168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7169 for as_dir in $PATH
7170 do
7171   IFS=$as_save_IFS
7172   test -z "$as_dir" && as_dir=.
7173     for ac_exec_ext in '' $ac_executable_extensions; do
7174   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7175     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7176     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7177     break 2
7178   fi
7179 done
7180   done
7181 IFS=$as_save_IFS
7182
7183 fi
7184 fi
7185 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7186 if test -n "$ac_ct_NMEDIT"; then
7187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7188 $as_echo "$ac_ct_NMEDIT" >&6; }
7189 else
7190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7191 $as_echo "no" >&6; }
7192 fi
7193
7194   if test "x$ac_ct_NMEDIT" = x; then
7195     NMEDIT=":"
7196   else
7197     case $cross_compiling:$ac_tool_warned in
7198 yes:)
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7200 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7201 ac_tool_warned=yes ;;
7202 esac
7203     NMEDIT=$ac_ct_NMEDIT
7204   fi
7205 else
7206   NMEDIT="$ac_cv_prog_NMEDIT"
7207 fi
7208
7209     if test -n "$ac_tool_prefix"; then
7210   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7211 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7213 $as_echo_n "checking for $ac_word... " >&6; }
7214 if ${ac_cv_prog_LIPO+:} false; then :
7215   $as_echo_n "(cached) " >&6
7216 else
7217   if test -n "$LIPO"; then
7218   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7219 else
7220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7221 for as_dir in $PATH
7222 do
7223   IFS=$as_save_IFS
7224   test -z "$as_dir" && as_dir=.
7225     for ac_exec_ext in '' $ac_executable_extensions; do
7226   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7227     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7228     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7229     break 2
7230   fi
7231 done
7232   done
7233 IFS=$as_save_IFS
7234
7235 fi
7236 fi
7237 LIPO=$ac_cv_prog_LIPO
7238 if test -n "$LIPO"; then
7239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7240 $as_echo "$LIPO" >&6; }
7241 else
7242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7243 $as_echo "no" >&6; }
7244 fi
7245
7246
7247 fi
7248 if test -z "$ac_cv_prog_LIPO"; then
7249   ac_ct_LIPO=$LIPO
7250   # Extract the first word of "lipo", so it can be a program name with args.
7251 set dummy lipo; ac_word=$2
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7253 $as_echo_n "checking for $ac_word... " >&6; }
7254 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7255   $as_echo_n "(cached) " >&6
7256 else
7257   if test -n "$ac_ct_LIPO"; then
7258   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7259 else
7260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7261 for as_dir in $PATH
7262 do
7263   IFS=$as_save_IFS
7264   test -z "$as_dir" && as_dir=.
7265     for ac_exec_ext in '' $ac_executable_extensions; do
7266   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7267     ac_cv_prog_ac_ct_LIPO="lipo"
7268     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7269     break 2
7270   fi
7271 done
7272   done
7273 IFS=$as_save_IFS
7274
7275 fi
7276 fi
7277 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7278 if test -n "$ac_ct_LIPO"; then
7279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7280 $as_echo "$ac_ct_LIPO" >&6; }
7281 else
7282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7283 $as_echo "no" >&6; }
7284 fi
7285
7286   if test "x$ac_ct_LIPO" = x; then
7287     LIPO=":"
7288   else
7289     case $cross_compiling:$ac_tool_warned in
7290 yes:)
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7292 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7293 ac_tool_warned=yes ;;
7294 esac
7295     LIPO=$ac_ct_LIPO
7296   fi
7297 else
7298   LIPO="$ac_cv_prog_LIPO"
7299 fi
7300
7301     if test -n "$ac_tool_prefix"; then
7302   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7303 set dummy ${ac_tool_prefix}otool; ac_word=$2
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7305 $as_echo_n "checking for $ac_word... " >&6; }
7306 if ${ac_cv_prog_OTOOL+:} false; then :
7307   $as_echo_n "(cached) " >&6
7308 else
7309   if test -n "$OTOOL"; then
7310   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7311 else
7312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7313 for as_dir in $PATH
7314 do
7315   IFS=$as_save_IFS
7316   test -z "$as_dir" && as_dir=.
7317     for ac_exec_ext in '' $ac_executable_extensions; do
7318   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7319     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7320     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7321     break 2
7322   fi
7323 done
7324   done
7325 IFS=$as_save_IFS
7326
7327 fi
7328 fi
7329 OTOOL=$ac_cv_prog_OTOOL
7330 if test -n "$OTOOL"; then
7331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7332 $as_echo "$OTOOL" >&6; }
7333 else
7334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7335 $as_echo "no" >&6; }
7336 fi
7337
7338
7339 fi
7340 if test -z "$ac_cv_prog_OTOOL"; then
7341   ac_ct_OTOOL=$OTOOL
7342   # Extract the first word of "otool", so it can be a program name with args.
7343 set dummy otool; ac_word=$2
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7345 $as_echo_n "checking for $ac_word... " >&6; }
7346 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7347   $as_echo_n "(cached) " >&6
7348 else
7349   if test -n "$ac_ct_OTOOL"; then
7350   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7351 else
7352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7353 for as_dir in $PATH
7354 do
7355   IFS=$as_save_IFS
7356   test -z "$as_dir" && as_dir=.
7357     for ac_exec_ext in '' $ac_executable_extensions; do
7358   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7359     ac_cv_prog_ac_ct_OTOOL="otool"
7360     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7361     break 2
7362   fi
7363 done
7364   done
7365 IFS=$as_save_IFS
7366
7367 fi
7368 fi
7369 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7370 if test -n "$ac_ct_OTOOL"; then
7371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7372 $as_echo "$ac_ct_OTOOL" >&6; }
7373 else
7374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7375 $as_echo "no" >&6; }
7376 fi
7377
7378   if test "x$ac_ct_OTOOL" = x; then
7379     OTOOL=":"
7380   else
7381     case $cross_compiling:$ac_tool_warned in
7382 yes:)
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7384 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7385 ac_tool_warned=yes ;;
7386 esac
7387     OTOOL=$ac_ct_OTOOL
7388   fi
7389 else
7390   OTOOL="$ac_cv_prog_OTOOL"
7391 fi
7392
7393     if test -n "$ac_tool_prefix"; then
7394   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7395 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7397 $as_echo_n "checking for $ac_word... " >&6; }
7398 if ${ac_cv_prog_OTOOL64+:} false; then :
7399   $as_echo_n "(cached) " >&6
7400 else
7401   if test -n "$OTOOL64"; then
7402   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7403 else
7404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7405 for as_dir in $PATH
7406 do
7407   IFS=$as_save_IFS
7408   test -z "$as_dir" && as_dir=.
7409     for ac_exec_ext in '' $ac_executable_extensions; do
7410   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7411     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7412     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7413     break 2
7414   fi
7415 done
7416   done
7417 IFS=$as_save_IFS
7418
7419 fi
7420 fi
7421 OTOOL64=$ac_cv_prog_OTOOL64
7422 if test -n "$OTOOL64"; then
7423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7424 $as_echo "$OTOOL64" >&6; }
7425 else
7426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7427 $as_echo "no" >&6; }
7428 fi
7429
7430
7431 fi
7432 if test -z "$ac_cv_prog_OTOOL64"; then
7433   ac_ct_OTOOL64=$OTOOL64
7434   # Extract the first word of "otool64", so it can be a program name with args.
7435 set dummy otool64; ac_word=$2
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7437 $as_echo_n "checking for $ac_word... " >&6; }
7438 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7439   $as_echo_n "(cached) " >&6
7440 else
7441   if test -n "$ac_ct_OTOOL64"; then
7442   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7443 else
7444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445 for as_dir in $PATH
7446 do
7447   IFS=$as_save_IFS
7448   test -z "$as_dir" && as_dir=.
7449     for ac_exec_ext in '' $ac_executable_extensions; do
7450   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7451     ac_cv_prog_ac_ct_OTOOL64="otool64"
7452     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7453     break 2
7454   fi
7455 done
7456   done
7457 IFS=$as_save_IFS
7458
7459 fi
7460 fi
7461 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7462 if test -n "$ac_ct_OTOOL64"; then
7463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7464 $as_echo "$ac_ct_OTOOL64" >&6; }
7465 else
7466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7467 $as_echo "no" >&6; }
7468 fi
7469
7470   if test "x$ac_ct_OTOOL64" = x; then
7471     OTOOL64=":"
7472   else
7473     case $cross_compiling:$ac_tool_warned in
7474 yes:)
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7476 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7477 ac_tool_warned=yes ;;
7478 esac
7479     OTOOL64=$ac_ct_OTOOL64
7480   fi
7481 else
7482   OTOOL64="$ac_cv_prog_OTOOL64"
7483 fi
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7512 $as_echo_n "checking for -single_module linker flag... " >&6; }
7513 if ${lt_cv_apple_cc_single_mod+:} false; then :
7514   $as_echo_n "(cached) " >&6
7515 else
7516   lt_cv_apple_cc_single_mod=no
7517       if test -z "${LT_MULTI_MODULE}"; then
7518         # By default we will add the -single_module flag. You can override
7519         # by either setting the environment variable LT_MULTI_MODULE
7520         # non-empty at configure time, or by adding -multi_module to the
7521         # link flags.
7522         rm -rf libconftest.dylib*
7523         echo "int foo(void){return 1;}" > conftest.c
7524         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7525 -dynamiclib -Wl,-single_module conftest.c" >&5
7526         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7527           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7528         _lt_result=$?
7529         # If there is a non-empty error log, and "single_module"
7530         # appears in it, assume the flag caused a linker warning
7531         if test -s conftest.err && $GREP single_module conftest.err; then
7532           cat conftest.err >&5
7533         # Otherwise, if the output was created with a 0 exit code from
7534         # the compiler, it worked.
7535         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7536           lt_cv_apple_cc_single_mod=yes
7537         else
7538           cat conftest.err >&5
7539         fi
7540         rm -rf libconftest.dylib*
7541         rm -f conftest.*
7542       fi
7543 fi
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7545 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7546
7547     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7548 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7549 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7550   $as_echo_n "(cached) " >&6
7551 else
7552   lt_cv_ld_exported_symbols_list=no
7553       save_LDFLAGS=$LDFLAGS
7554       echo "_main" > conftest.sym
7555       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7556       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7557 /* end confdefs.h.  */
7558
7559 int
7560 main ()
7561 {
7562
7563   ;
7564   return 0;
7565 }
7566 _ACEOF
7567 if ac_fn_c_try_link "$LINENO"; then :
7568   lt_cv_ld_exported_symbols_list=yes
7569 else
7570   lt_cv_ld_exported_symbols_list=no
7571 fi
7572 rm -f core conftest.err conftest.$ac_objext \
7573     conftest$ac_exeext conftest.$ac_ext
7574         LDFLAGS="$save_LDFLAGS"
7575
7576 fi
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7578 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7579
7580     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7581 $as_echo_n "checking for -force_load linker flag... " >&6; }
7582 if ${lt_cv_ld_force_load+:} false; then :
7583   $as_echo_n "(cached) " >&6
7584 else
7585   lt_cv_ld_force_load=no
7586       cat > conftest.c << _LT_EOF
7587 int forced_loaded() { return 2;}
7588 _LT_EOF
7589       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7590       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7591       echo "$AR cru libconftest.a conftest.o" >&5
7592       $AR cru libconftest.a conftest.o 2>&5
7593       echo "$RANLIB libconftest.a" >&5
7594       $RANLIB libconftest.a 2>&5
7595       cat > conftest.c << _LT_EOF
7596 int main() { return 0;}
7597 _LT_EOF
7598       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7599       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7600       _lt_result=$?
7601       if test -s conftest.err && $GREP force_load conftest.err; then
7602         cat conftest.err >&5
7603       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7604         lt_cv_ld_force_load=yes
7605       else
7606         cat conftest.err >&5
7607       fi
7608         rm -f conftest.err libconftest.a conftest conftest.c
7609         rm -rf conftest.dSYM
7610
7611 fi
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7613 $as_echo "$lt_cv_ld_force_load" >&6; }
7614     case $host_os in
7615     rhapsody* | darwin1.[012])
7616       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7617     darwin1.*)
7618       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7619     darwin*) # darwin 5.x on
7620       # if running on 10.5 or later, the deployment target defaults
7621       # to the OS version, if on x86, and 10.4, the deployment
7622       # target defaults to 10.4. Don't you love it?
7623       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7624         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7625           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7626         10.[012]*)
7627           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7628         10.*)
7629           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7630       esac
7631     ;;
7632   esac
7633     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7634       _lt_dar_single_mod='$single_module'
7635     fi
7636     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7637       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7638     else
7639       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7640     fi
7641     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7642       _lt_dsymutil='~$DSYMUTIL $lib || :'
7643     else
7644       _lt_dsymutil=
7645     fi
7646     ;;
7647   esac
7648
7649
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7651 $as_echo_n "checking for ANSI C header files... " >&6; }
7652 if ${ac_cv_header_stdc+:} false; then :
7653   $as_echo_n "(cached) " >&6
7654 else
7655   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7656 /* end confdefs.h.  */
7657 #include <stdlib.h>
7658 #include <stdarg.h>
7659 #include <string.h>
7660 #include <float.h>
7661
7662 int
7663 main ()
7664 {
7665
7666   ;
7667   return 0;
7668 }
7669 _ACEOF
7670 if ac_fn_c_try_compile "$LINENO"; then :
7671   ac_cv_header_stdc=yes
7672 else
7673   ac_cv_header_stdc=no
7674 fi
7675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7676
7677 if test $ac_cv_header_stdc = yes; then
7678   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7679   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7680 /* end confdefs.h.  */
7681 #include <string.h>
7682
7683 _ACEOF
7684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7685   $EGREP "memchr" >/dev/null 2>&1; then :
7686
7687 else
7688   ac_cv_header_stdc=no
7689 fi
7690 rm -f conftest*
7691
7692 fi
7693
7694 if test $ac_cv_header_stdc = yes; then
7695   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7696   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7697 /* end confdefs.h.  */
7698 #include <stdlib.h>
7699
7700 _ACEOF
7701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7702   $EGREP "free" >/dev/null 2>&1; then :
7703
7704 else
7705   ac_cv_header_stdc=no
7706 fi
7707 rm -f conftest*
7708
7709 fi
7710
7711 if test $ac_cv_header_stdc = yes; then
7712   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7713   if test "$cross_compiling" = yes; then :
7714   :
7715 else
7716   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7717 /* end confdefs.h.  */
7718 #include <ctype.h>
7719 #include <stdlib.h>
7720 #if ((' ' & 0x0FF) == 0x020)
7721 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7722 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7723 #else
7724 # define ISLOWER(c) \
7725                    (('a' <= (c) && (c) <= 'i') \
7726                      || ('j' <= (c) && (c) <= 'r') \
7727                      || ('s' <= (c) && (c) <= 'z'))
7728 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7729 #endif
7730
7731 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7732 int
7733 main ()
7734 {
7735   int i;
7736   for (i = 0; i < 256; i++)
7737     if (XOR (islower (i), ISLOWER (i))
7738         || toupper (i) != TOUPPER (i))
7739       return 2;
7740   return 0;
7741 }
7742 _ACEOF
7743 if ac_fn_c_try_run "$LINENO"; then :
7744
7745 else
7746   ac_cv_header_stdc=no
7747 fi
7748 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7749   conftest.$ac_objext conftest.beam conftest.$ac_ext
7750 fi
7751
7752 fi
7753 fi
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7755 $as_echo "$ac_cv_header_stdc" >&6; }
7756 if test $ac_cv_header_stdc = yes; then
7757
7758 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7759
7760 fi
7761
7762 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7763 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7764                   inttypes.h stdint.h unistd.h
7765 do :
7766   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7767 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7768 "
7769 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7770   cat >>confdefs.h <<_ACEOF
7771 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7772 _ACEOF
7773
7774 fi
7775
7776 done
7777
7778
7779 for ac_header in dlfcn.h
7780 do :
7781   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7782 "
7783 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7784   cat >>confdefs.h <<_ACEOF
7785 #define HAVE_DLFCN_H 1
7786 _ACEOF
7787
7788 fi
7789
7790 done
7791
7792
7793
7794
7795
7796 # Set options
7797
7798
7799
7800         enable_dlopen=no
7801
7802
7803
7804             # Check whether --enable-shared was given.
7805 if test "${enable_shared+set}" = set; then :
7806   enableval=$enable_shared; p=${PACKAGE-default}
7807     case $enableval in
7808     yes) enable_shared=yes ;;
7809     no) enable_shared=no ;;
7810     *)
7811       enable_shared=no
7812       # Look at the argument we got.  We use all the common list separators.
7813       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7814       for pkg in $enableval; do
7815         IFS="$lt_save_ifs"
7816         if test "X$pkg" = "X$p"; then
7817           enable_shared=yes
7818         fi
7819       done
7820       IFS="$lt_save_ifs"
7821       ;;
7822     esac
7823 else
7824   enable_shared=yes
7825 fi
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835   # Check whether --enable-static was given.
7836 if test "${enable_static+set}" = set; then :
7837   enableval=$enable_static; p=${PACKAGE-default}
7838     case $enableval in
7839     yes) enable_static=yes ;;
7840     no) enable_static=no ;;
7841     *)
7842      enable_static=no
7843       # Look at the argument we got.  We use all the common list separators.
7844       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7845       for pkg in $enableval; do
7846         IFS="$lt_save_ifs"
7847         if test "X$pkg" = "X$p"; then
7848           enable_static=yes
7849         fi
7850       done
7851       IFS="$lt_save_ifs"
7852       ;;
7853     esac
7854 else
7855   enable_static=yes
7856 fi
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867 # Check whether --with-pic was given.
7868 if test "${with_pic+set}" = set; then :
7869   withval=$with_pic; lt_p=${PACKAGE-default}
7870     case $withval in
7871     yes|no) pic_mode=$withval ;;
7872     *)
7873       pic_mode=default
7874       # Look at the argument we got.  We use all the common list separators.
7875       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7876       for lt_pkg in $withval; do
7877         IFS="$lt_save_ifs"
7878         if test "X$lt_pkg" = "X$lt_p"; then
7879           pic_mode=yes
7880         fi
7881       done
7882       IFS="$lt_save_ifs"
7883       ;;
7884     esac
7885 else
7886   pic_mode=default
7887 fi
7888
7889
7890 test -z "$pic_mode" && pic_mode=default
7891
7892
7893
7894
7895
7896
7897
7898   # Check whether --enable-fast-install was given.
7899 if test "${enable_fast_install+set}" = set; then :
7900   enableval=$enable_fast_install; p=${PACKAGE-default}
7901     case $enableval in
7902     yes) enable_fast_install=yes ;;
7903     no) enable_fast_install=no ;;
7904     *)
7905       enable_fast_install=no
7906       # Look at the argument we got.  We use all the common list separators.
7907       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7908       for pkg in $enableval; do
7909         IFS="$lt_save_ifs"
7910         if test "X$pkg" = "X$p"; then
7911           enable_fast_install=yes
7912         fi
7913       done
7914       IFS="$lt_save_ifs"
7915       ;;
7916     esac
7917 else
7918   enable_fast_install=yes
7919 fi
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931 # This can be used to rebuild libtool when needed
7932 LIBTOOL_DEPS="$ltmain"
7933
7934 # Always use our own libtool.
7935 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966 test -z "$LN_S" && LN_S="ln -s"
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981 if test -n "${ZSH_VERSION+set}" ; then
7982    setopt NO_GLOB_SUBST
7983 fi
7984
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7986 $as_echo_n "checking for objdir... " >&6; }
7987 if ${lt_cv_objdir+:} false; then :
7988   $as_echo_n "(cached) " >&6
7989 else
7990   rm -f .libs 2>/dev/null
7991 mkdir .libs 2>/dev/null
7992 if test -d .libs; then
7993   lt_cv_objdir=.libs
7994 else
7995   # MS-DOS does not allow filenames that begin with a dot.
7996   lt_cv_objdir=_libs
7997 fi
7998 rmdir .libs 2>/dev/null
7999 fi
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8001 $as_echo "$lt_cv_objdir" >&6; }
8002 objdir=$lt_cv_objdir
8003
8004
8005
8006
8007
8008 cat >>confdefs.h <<_ACEOF
8009 #define LT_OBJDIR "$lt_cv_objdir/"
8010 _ACEOF
8011
8012
8013
8014
8015 case $host_os in
8016 aix3*)
8017   # AIX sometimes has problems with the GCC collect2 program.  For some
8018   # reason, if we set the COLLECT_NAMES environment variable, the problems
8019   # vanish in a puff of smoke.
8020   if test "X${COLLECT_NAMES+set}" != Xset; then
8021     COLLECT_NAMES=
8022     export COLLECT_NAMES
8023   fi
8024   ;;
8025 esac
8026
8027 # Global variables:
8028 ofile=libtool
8029 can_build_shared=yes
8030
8031 # All known linkers require a `.a' archive for static linking (except MSVC,
8032 # which needs '.lib').
8033 libext=a
8034
8035 with_gnu_ld="$lt_cv_prog_gnu_ld"
8036
8037 old_CC="$CC"
8038 old_CFLAGS="$CFLAGS"
8039
8040 # Set sane defaults for various variables
8041 test -z "$CC" && CC=cc
8042 test -z "$LTCC" && LTCC=$CC
8043 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8044 test -z "$LD" && LD=ld
8045 test -z "$ac_objext" && ac_objext=o
8046
8047 for cc_temp in $compiler""; do
8048   case $cc_temp in
8049     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8050     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8051     \-*) ;;
8052     *) break;;
8053   esac
8054 done
8055 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8056
8057
8058 # Only perform the check for file, if the check method requires it
8059 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8060 case $deplibs_check_method in
8061 file_magic*)
8062   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8063     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8064 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8065 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8066   $as_echo_n "(cached) " >&6
8067 else
8068   case $MAGIC_CMD in
8069 [\\/*] |  ?:[\\/]*)
8070   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8071   ;;
8072 *)
8073   lt_save_MAGIC_CMD="$MAGIC_CMD"
8074   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8075   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8076   for ac_dir in $ac_dummy; do
8077     IFS="$lt_save_ifs"
8078     test -z "$ac_dir" && ac_dir=.
8079     if test -f $ac_dir/${ac_tool_prefix}file; then
8080       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8081       if test -n "$file_magic_test_file"; then
8082         case $deplibs_check_method in
8083         "file_magic "*)
8084           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8085           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8086           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8087             $EGREP "$file_magic_regex" > /dev/null; then
8088             :
8089           else
8090             cat <<_LT_EOF 1>&2
8091
8092 *** Warning: the command libtool uses to detect shared libraries,
8093 *** $file_magic_cmd, produces output that libtool cannot recognize.
8094 *** The result is that libtool may fail to recognize shared libraries
8095 *** as such.  This will affect the creation of libtool libraries that
8096 *** depend on shared libraries, but programs linked with such libtool
8097 *** libraries will work regardless of this problem.  Nevertheless, you
8098 *** may want to report the problem to your system manager and/or to
8099 *** bug-libtool@gnu.org
8100
8101 _LT_EOF
8102           fi ;;
8103         esac
8104       fi
8105       break
8106     fi
8107   done
8108   IFS="$lt_save_ifs"
8109   MAGIC_CMD="$lt_save_MAGIC_CMD"
8110   ;;
8111 esac
8112 fi
8113
8114 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8115 if test -n "$MAGIC_CMD"; then
8116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8117 $as_echo "$MAGIC_CMD" >&6; }
8118 else
8119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8120 $as_echo "no" >&6; }
8121 fi
8122
8123
8124
8125
8126
8127 if test -z "$lt_cv_path_MAGIC_CMD"; then
8128   if test -n "$ac_tool_prefix"; then
8129     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8130 $as_echo_n "checking for file... " >&6; }
8131 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8132   $as_echo_n "(cached) " >&6
8133 else
8134   case $MAGIC_CMD in
8135 [\\/*] |  ?:[\\/]*)
8136   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8137   ;;
8138 *)
8139   lt_save_MAGIC_CMD="$MAGIC_CMD"
8140   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8141   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8142   for ac_dir in $ac_dummy; do
8143     IFS="$lt_save_ifs"
8144     test -z "$ac_dir" && ac_dir=.
8145     if test -f $ac_dir/file; then
8146       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8147       if test -n "$file_magic_test_file"; then
8148         case $deplibs_check_method in
8149         "file_magic "*)
8150           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8151           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8152           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8153             $EGREP "$file_magic_regex" > /dev/null; then
8154             :
8155           else
8156             cat <<_LT_EOF 1>&2
8157
8158 *** Warning: the command libtool uses to detect shared libraries,
8159 *** $file_magic_cmd, produces output that libtool cannot recognize.
8160 *** The result is that libtool may fail to recognize shared libraries
8161 *** as such.  This will affect the creation of libtool libraries that
8162 *** depend on shared libraries, but programs linked with such libtool
8163 *** libraries will work regardless of this problem.  Nevertheless, you
8164 *** may want to report the problem to your system manager and/or to
8165 *** bug-libtool@gnu.org
8166
8167 _LT_EOF
8168           fi ;;
8169         esac
8170       fi
8171       break
8172     fi
8173   done
8174   IFS="$lt_save_ifs"
8175   MAGIC_CMD="$lt_save_MAGIC_CMD"
8176   ;;
8177 esac
8178 fi
8179
8180 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8181 if test -n "$MAGIC_CMD"; then
8182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8183 $as_echo "$MAGIC_CMD" >&6; }
8184 else
8185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8186 $as_echo "no" >&6; }
8187 fi
8188
8189
8190   else
8191     MAGIC_CMD=:
8192   fi
8193 fi
8194
8195   fi
8196   ;;
8197 esac
8198
8199 # Use C for the default configuration in the libtool script
8200
8201 lt_save_CC="$CC"
8202 ac_ext=c
8203 ac_cpp='$CPP $CPPFLAGS'
8204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8207
8208
8209 # Source file extension for C test sources.
8210 ac_ext=c
8211
8212 # Object file extension for compiled C test sources.
8213 objext=o
8214 objext=$objext
8215
8216 # Code to be used in simple compile tests
8217 lt_simple_compile_test_code="int some_variable = 0;"
8218
8219 # Code to be used in simple link tests
8220 lt_simple_link_test_code='int main(){return(0);}'
8221
8222
8223
8224
8225
8226
8227
8228 # If no C compiler was specified, use CC.
8229 LTCC=${LTCC-"$CC"}
8230
8231 # If no C compiler flags were specified, use CFLAGS.
8232 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8233
8234 # Allow CC to be a program name with arguments.
8235 compiler=$CC
8236
8237 # Save the default compiler, since it gets overwritten when the other
8238 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8239 compiler_DEFAULT=$CC
8240
8241 # save warnings/boilerplate of simple test code
8242 ac_outfile=conftest.$ac_objext
8243 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8244 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8245 _lt_compiler_boilerplate=`cat conftest.err`
8246 $RM conftest*
8247
8248 ac_outfile=conftest.$ac_objext
8249 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8250 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8251 _lt_linker_boilerplate=`cat conftest.err`
8252 $RM -r conftest*
8253
8254
8255 if test -n "$compiler"; then
8256
8257 lt_prog_compiler_no_builtin_flag=
8258
8259 if test "$GCC" = yes; then
8260   case $cc_basename in
8261   nvcc*)
8262     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8263   *)
8264     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8265   esac
8266
8267   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8268 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8269 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8270   $as_echo_n "(cached) " >&6
8271 else
8272   lt_cv_prog_compiler_rtti_exceptions=no
8273    ac_outfile=conftest.$ac_objext
8274    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8275    lt_compiler_flag="-fno-rtti -fno-exceptions"
8276    # Insert the option either (1) after the last *FLAGS variable, or
8277    # (2) before a word containing "conftest.", or (3) at the end.
8278    # Note that $ac_compile itself does not contain backslashes and begins
8279    # with a dollar sign (not a hyphen), so the echo should work correctly.
8280    # The option is referenced via a variable to avoid confusing sed.
8281    lt_compile=`echo "$ac_compile" | $SED \
8282    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8283    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8284    -e 's:$: $lt_compiler_flag:'`
8285    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8286    (eval "$lt_compile" 2>conftest.err)
8287    ac_status=$?
8288    cat conftest.err >&5
8289    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8290    if (exit $ac_status) && test -s "$ac_outfile"; then
8291      # The compiler can only warn and ignore the option if not recognized
8292      # So say no if there are warnings other than the usual output.
8293      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8294      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8295      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8296        lt_cv_prog_compiler_rtti_exceptions=yes
8297      fi
8298    fi
8299    $RM conftest*
8300
8301 fi
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8303 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8304
8305 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8306     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8307 else
8308     :
8309 fi
8310
8311 fi
8312
8313
8314
8315
8316
8317
8318   lt_prog_compiler_wl=
8319 lt_prog_compiler_pic=
8320 lt_prog_compiler_static=
8321
8322
8323   if test "$GCC" = yes; then
8324     lt_prog_compiler_wl='-Wl,'
8325     lt_prog_compiler_static='-static'
8326
8327     case $host_os in
8328       aix*)
8329       # All AIX code is PIC.
8330       if test "$host_cpu" = ia64; then
8331         # AIX 5 now supports IA64 processor
8332         lt_prog_compiler_static='-Bstatic'
8333       fi
8334       ;;
8335
8336     amigaos*)
8337       case $host_cpu in
8338       powerpc)
8339             # see comment about AmigaOS4 .so support
8340             lt_prog_compiler_pic='-fPIC'
8341         ;;
8342       m68k)
8343             # FIXME: we need at least 68020 code to build shared libraries, but
8344             # adding the `-m68020' flag to GCC prevents building anything better,
8345             # like `-m68040'.
8346             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8347         ;;
8348       esac
8349       ;;
8350
8351     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8352       # PIC is the default for these OSes.
8353       ;;
8354
8355     mingw* | cygwin* | pw32* | os2* | cegcc*)
8356       # This hack is so that the source file can tell whether it is being
8357       # built for inclusion in a dll (and should export symbols for example).
8358       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8359       # (--disable-auto-import) libraries
8360       lt_prog_compiler_pic='-DDLL_EXPORT'
8361       ;;
8362
8363     darwin* | rhapsody*)
8364       # PIC is the default on this platform
8365       # Common symbols not allowed in MH_DYLIB files
8366       lt_prog_compiler_pic='-fno-common'
8367       ;;
8368
8369     haiku*)
8370       # PIC is the default for Haiku.
8371       # The "-static" flag exists, but is broken.
8372       lt_prog_compiler_static=
8373       ;;
8374
8375     hpux*)
8376       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8377       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8378       # sets the default TLS model and affects inlining.
8379       case $host_cpu in
8380       hppa*64*)
8381         # +Z the default
8382         ;;
8383       *)
8384         lt_prog_compiler_pic='-fPIC'
8385         ;;
8386       esac
8387       ;;
8388
8389     interix[3-9]*)
8390       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8391       # Instead, we relocate shared libraries at runtime.
8392       ;;
8393
8394     msdosdjgpp*)
8395       # Just because we use GCC doesn't mean we suddenly get shared libraries
8396       # on systems that don't support them.
8397       lt_prog_compiler_can_build_shared=no
8398       enable_shared=no
8399       ;;
8400
8401     *nto* | *qnx*)
8402       # QNX uses GNU C++, but need to define -shared option too, otherwise
8403       # it will coredump.
8404       lt_prog_compiler_pic='-fPIC -shared'
8405       ;;
8406
8407     sysv4*MP*)
8408       if test -d /usr/nec; then
8409         lt_prog_compiler_pic=-Kconform_pic
8410       fi
8411       ;;
8412
8413     *)
8414       lt_prog_compiler_pic='-fPIC'
8415       ;;
8416     esac
8417
8418     case $cc_basename in
8419     nvcc*) # Cuda Compiler Driver 2.2
8420       lt_prog_compiler_wl='-Xlinker '
8421       if test -n "$lt_prog_compiler_pic"; then
8422         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8423       fi
8424       ;;
8425     esac
8426   else
8427     # PORTME Check for flag to pass linker flags through the system compiler.
8428     case $host_os in
8429     aix*)
8430       lt_prog_compiler_wl='-Wl,'
8431       if test "$host_cpu" = ia64; then
8432         # AIX 5 now supports IA64 processor
8433         lt_prog_compiler_static='-Bstatic'
8434       else
8435         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8436       fi
8437       ;;
8438
8439     mingw* | cygwin* | pw32* | os2* | cegcc*)
8440       # This hack is so that the source file can tell whether it is being
8441       # built for inclusion in a dll (and should export symbols for example).
8442       lt_prog_compiler_pic='-DDLL_EXPORT'
8443       ;;
8444
8445     hpux9* | hpux10* | hpux11*)
8446       lt_prog_compiler_wl='-Wl,'
8447       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8448       # not for PA HP-UX.
8449       case $host_cpu in
8450       hppa*64*|ia64*)
8451         # +Z the default
8452         ;;
8453       *)
8454         lt_prog_compiler_pic='+Z'
8455         ;;
8456       esac
8457       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8458       lt_prog_compiler_static='${wl}-a ${wl}archive'
8459       ;;
8460
8461     irix5* | irix6* | nonstopux*)
8462       lt_prog_compiler_wl='-Wl,'
8463       # PIC (with -KPIC) is the default.
8464       lt_prog_compiler_static='-non_shared'
8465       ;;
8466
8467     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8468       case $cc_basename in
8469       # old Intel for x86_64 which still supported -KPIC.
8470       ecc*)
8471         lt_prog_compiler_wl='-Wl,'
8472         lt_prog_compiler_pic='-KPIC'
8473         lt_prog_compiler_static='-static'
8474         ;;
8475       # icc used to be incompatible with GCC.
8476       # ICC 10 doesn't accept -KPIC any more.
8477       icc* | ifort*)
8478         lt_prog_compiler_wl='-Wl,'
8479         lt_prog_compiler_pic='-fPIC'
8480         lt_prog_compiler_static='-static'
8481         ;;
8482       # Lahey Fortran 8.1.
8483       lf95*)
8484         lt_prog_compiler_wl='-Wl,'
8485         lt_prog_compiler_pic='--shared'
8486         lt_prog_compiler_static='--static'
8487         ;;
8488       nagfor*)
8489         # NAG Fortran compiler
8490         lt_prog_compiler_wl='-Wl,-Wl,,'
8491         lt_prog_compiler_pic='-PIC'
8492         lt_prog_compiler_static='-Bstatic'
8493         ;;
8494       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8495         # Portland Group compilers (*not* the Pentium gcc compiler,
8496         # which looks to be a dead project)
8497         lt_prog_compiler_wl='-Wl,'
8498         lt_prog_compiler_pic='-fpic'
8499         lt_prog_compiler_static='-Bstatic'
8500         ;;
8501       ccc*)
8502         lt_prog_compiler_wl='-Wl,'
8503         # All Alpha code is PIC.
8504         lt_prog_compiler_static='-non_shared'
8505         ;;
8506       xl* | bgxl* | bgf* | mpixl*)
8507         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8508         lt_prog_compiler_wl='-Wl,'
8509         lt_prog_compiler_pic='-qpic'
8510         lt_prog_compiler_static='-qstaticlink'
8511         ;;
8512       *)
8513         case `$CC -V 2>&1 | sed 5q` in
8514         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8515           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8516           lt_prog_compiler_pic='-KPIC'
8517           lt_prog_compiler_static='-Bstatic'
8518           lt_prog_compiler_wl=''
8519           ;;
8520         *Sun\ F* | *Sun*Fortran*)
8521           lt_prog_compiler_pic='-KPIC'
8522           lt_prog_compiler_static='-Bstatic'
8523           lt_prog_compiler_wl='-Qoption ld '
8524           ;;
8525         *Sun\ C*)
8526           # Sun C 5.9
8527           lt_prog_compiler_pic='-KPIC'
8528           lt_prog_compiler_static='-Bstatic'
8529           lt_prog_compiler_wl='-Wl,'
8530           ;;
8531         *Intel*\ [CF]*Compiler*)
8532           lt_prog_compiler_wl='-Wl,'
8533           lt_prog_compiler_pic='-fPIC'
8534           lt_prog_compiler_static='-static'
8535           ;;
8536         *Portland\ Group*)
8537           lt_prog_compiler_wl='-Wl,'
8538           lt_prog_compiler_pic='-fpic'
8539           lt_prog_compiler_static='-Bstatic'
8540           ;;
8541         esac
8542         ;;
8543       esac
8544       ;;
8545
8546     newsos6)
8547       lt_prog_compiler_pic='-KPIC'
8548       lt_prog_compiler_static='-Bstatic'
8549       ;;
8550
8551     *nto* | *qnx*)
8552       # QNX uses GNU C++, but need to define -shared option too, otherwise
8553       # it will coredump.
8554       lt_prog_compiler_pic='-fPIC -shared'
8555       ;;
8556
8557     osf3* | osf4* | osf5*)
8558       lt_prog_compiler_wl='-Wl,'
8559       # All OSF/1 code is PIC.
8560       lt_prog_compiler_static='-non_shared'
8561       ;;
8562
8563     rdos*)
8564       lt_prog_compiler_static='-non_shared'
8565       ;;
8566
8567     solaris*)
8568       lt_prog_compiler_pic='-KPIC'
8569       lt_prog_compiler_static='-Bstatic'
8570       case $cc_basename in
8571       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8572         lt_prog_compiler_wl='-Qoption ld ';;
8573       *)
8574         lt_prog_compiler_wl='-Wl,';;
8575       esac
8576       ;;
8577
8578     sunos4*)
8579       lt_prog_compiler_wl='-Qoption ld '
8580       lt_prog_compiler_pic='-PIC'
8581       lt_prog_compiler_static='-Bstatic'
8582       ;;
8583
8584     sysv4 | sysv4.2uw2* | sysv4.3*)
8585       lt_prog_compiler_wl='-Wl,'
8586       lt_prog_compiler_pic='-KPIC'
8587       lt_prog_compiler_static='-Bstatic'
8588       ;;
8589
8590     sysv4*MP*)
8591       if test -d /usr/nec ;then
8592         lt_prog_compiler_pic='-Kconform_pic'
8593         lt_prog_compiler_static='-Bstatic'
8594       fi
8595       ;;
8596
8597     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8598       lt_prog_compiler_wl='-Wl,'
8599       lt_prog_compiler_pic='-KPIC'
8600       lt_prog_compiler_static='-Bstatic'
8601       ;;
8602
8603     unicos*)
8604       lt_prog_compiler_wl='-Wl,'
8605       lt_prog_compiler_can_build_shared=no
8606       ;;
8607
8608     uts4*)
8609       lt_prog_compiler_pic='-pic'
8610       lt_prog_compiler_static='-Bstatic'
8611       ;;
8612
8613     *)
8614       lt_prog_compiler_can_build_shared=no
8615       ;;
8616     esac
8617   fi
8618
8619 case $host_os in
8620   # For platforms which do not support PIC, -DPIC is meaningless:
8621   *djgpp*)
8622     lt_prog_compiler_pic=
8623     ;;
8624   *)
8625     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8626     ;;
8627 esac
8628
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8630 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8631 if ${lt_cv_prog_compiler_pic+:} false; then :
8632   $as_echo_n "(cached) " >&6
8633 else
8634   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8635 fi
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8637 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8638 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8639
8640 #
8641 # Check to make sure the PIC flag actually works.
8642 #
8643 if test -n "$lt_prog_compiler_pic"; then
8644   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8645 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8646 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8647   $as_echo_n "(cached) " >&6
8648 else
8649   lt_cv_prog_compiler_pic_works=no
8650    ac_outfile=conftest.$ac_objext
8651    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8652    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8653    # Insert the option either (1) after the last *FLAGS variable, or
8654    # (2) before a word containing "conftest.", or (3) at the end.
8655    # Note that $ac_compile itself does not contain backslashes and begins
8656    # with a dollar sign (not a hyphen), so the echo should work correctly.
8657    # The option is referenced via a variable to avoid confusing sed.
8658    lt_compile=`echo "$ac_compile" | $SED \
8659    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8660    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8661    -e 's:$: $lt_compiler_flag:'`
8662    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8663    (eval "$lt_compile" 2>conftest.err)
8664    ac_status=$?
8665    cat conftest.err >&5
8666    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667    if (exit $ac_status) && test -s "$ac_outfile"; then
8668      # The compiler can only warn and ignore the option if not recognized
8669      # So say no if there are warnings other than the usual output.
8670      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8671      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8672      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8673        lt_cv_prog_compiler_pic_works=yes
8674      fi
8675    fi
8676    $RM conftest*
8677
8678 fi
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8680 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8681
8682 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8683     case $lt_prog_compiler_pic in
8684      "" | " "*) ;;
8685      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8686      esac
8687 else
8688     lt_prog_compiler_pic=
8689      lt_prog_compiler_can_build_shared=no
8690 fi
8691
8692 fi
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704 #
8705 # Check to make sure the static flag actually works.
8706 #
8707 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8709 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8710 if ${lt_cv_prog_compiler_static_works+:} false; then :
8711   $as_echo_n "(cached) " >&6
8712 else
8713   lt_cv_prog_compiler_static_works=no
8714    save_LDFLAGS="$LDFLAGS"
8715    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8716    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8717    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8718      # The linker can only warn and ignore the option if not recognized
8719      # So say no if there are warnings
8720      if test -s conftest.err; then
8721        # Append any errors to the config.log.
8722        cat conftest.err 1>&5
8723        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8724        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8725        if diff conftest.exp conftest.er2 >/dev/null; then
8726          lt_cv_prog_compiler_static_works=yes
8727        fi
8728      else
8729        lt_cv_prog_compiler_static_works=yes
8730      fi
8731    fi
8732    $RM -r conftest*
8733    LDFLAGS="$save_LDFLAGS"
8734
8735 fi
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8737 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8738
8739 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8740     :
8741 else
8742     lt_prog_compiler_static=
8743 fi
8744
8745
8746
8747
8748
8749
8750
8751   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8752 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8753 if ${lt_cv_prog_compiler_c_o+:} false; then :
8754   $as_echo_n "(cached) " >&6
8755 else
8756   lt_cv_prog_compiler_c_o=no
8757    $RM -r conftest 2>/dev/null
8758    mkdir conftest
8759    cd conftest
8760    mkdir out
8761    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8762
8763    lt_compiler_flag="-o out/conftest2.$ac_objext"
8764    # Insert the option either (1) after the last *FLAGS variable, or
8765    # (2) before a word containing "conftest.", or (3) at the end.
8766    # Note that $ac_compile itself does not contain backslashes and begins
8767    # with a dollar sign (not a hyphen), so the echo should work correctly.
8768    lt_compile=`echo "$ac_compile" | $SED \
8769    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8770    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8771    -e 's:$: $lt_compiler_flag:'`
8772    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8773    (eval "$lt_compile" 2>out/conftest.err)
8774    ac_status=$?
8775    cat out/conftest.err >&5
8776    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8778    then
8779      # The compiler can only warn and ignore the option if not recognized
8780      # So say no if there are warnings
8781      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8782      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8783      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8784        lt_cv_prog_compiler_c_o=yes
8785      fi
8786    fi
8787    chmod u+w . 2>&5
8788    $RM conftest*
8789    # SGI C++ compiler will create directory out/ii_files/ for
8790    # template instantiation
8791    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8792    $RM out/* && rmdir out
8793    cd ..
8794    $RM -r conftest
8795    $RM conftest*
8796
8797 fi
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8799 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8800
8801
8802
8803
8804
8805
8806   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8807 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8808 if ${lt_cv_prog_compiler_c_o+:} false; then :
8809   $as_echo_n "(cached) " >&6
8810 else
8811   lt_cv_prog_compiler_c_o=no
8812    $RM -r conftest 2>/dev/null
8813    mkdir conftest
8814    cd conftest
8815    mkdir out
8816    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8817
8818    lt_compiler_flag="-o out/conftest2.$ac_objext"
8819    # Insert the option either (1) after the last *FLAGS variable, or
8820    # (2) before a word containing "conftest.", or (3) at the end.
8821    # Note that $ac_compile itself does not contain backslashes and begins
8822    # with a dollar sign (not a hyphen), so the echo should work correctly.
8823    lt_compile=`echo "$ac_compile" | $SED \
8824    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8825    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8826    -e 's:$: $lt_compiler_flag:'`
8827    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8828    (eval "$lt_compile" 2>out/conftest.err)
8829    ac_status=$?
8830    cat out/conftest.err >&5
8831    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8833    then
8834      # The compiler can only warn and ignore the option if not recognized
8835      # So say no if there are warnings
8836      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8837      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8838      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8839        lt_cv_prog_compiler_c_o=yes
8840      fi
8841    fi
8842    chmod u+w . 2>&5
8843    $RM conftest*
8844    # SGI C++ compiler will create directory out/ii_files/ for
8845    # template instantiation
8846    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8847    $RM out/* && rmdir out
8848    cd ..
8849    $RM -r conftest
8850    $RM conftest*
8851
8852 fi
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8854 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8855
8856
8857
8858
8859 hard_links="nottested"
8860 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8861   # do not overwrite the value of need_locks provided by the user
8862   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8863 $as_echo_n "checking if we can lock with hard links... " >&6; }
8864   hard_links=yes
8865   $RM conftest*
8866   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8867   touch conftest.a
8868   ln conftest.a conftest.b 2>&5 || hard_links=no
8869   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8871 $as_echo "$hard_links" >&6; }
8872   if test "$hard_links" = no; then
8873     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8874 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8875     need_locks=warn
8876   fi
8877 else
8878   need_locks=no
8879 fi
8880
8881
8882
8883
8884
8885
8886   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8887 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8888
8889   runpath_var=
8890   allow_undefined_flag=
8891   always_export_symbols=no
8892   archive_cmds=
8893   archive_expsym_cmds=
8894   compiler_needs_object=no
8895   enable_shared_with_static_runtimes=no
8896   export_dynamic_flag_spec=
8897   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8898   hardcode_automatic=no
8899   hardcode_direct=no
8900   hardcode_direct_absolute=no
8901   hardcode_libdir_flag_spec=
8902   hardcode_libdir_separator=
8903   hardcode_minus_L=no
8904   hardcode_shlibpath_var=unsupported
8905   inherit_rpath=no
8906   link_all_deplibs=unknown
8907   module_cmds=
8908   module_expsym_cmds=
8909   old_archive_from_new_cmds=
8910   old_archive_from_expsyms_cmds=
8911   thread_safe_flag_spec=
8912   whole_archive_flag_spec=
8913   # include_expsyms should be a list of space-separated symbols to be *always*
8914   # included in the symbol list
8915   include_expsyms=
8916   # exclude_expsyms can be an extended regexp of symbols to exclude
8917   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8918   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8919   # as well as any symbol that contains `d'.
8920   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8921   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8922   # platforms (ab)use it in PIC code, but their linkers get confused if
8923   # the symbol is explicitly referenced.  Since portable code cannot
8924   # rely on this symbol name, it's probably fine to never include it in
8925   # preloaded symbol tables.
8926   # Exclude shared library initialization/finalization symbols.
8927   extract_expsyms_cmds=
8928
8929   case $host_os in
8930   cygwin* | mingw* | pw32* | cegcc*)
8931     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8932     # When not using gcc, we currently assume that we are using
8933     # Microsoft Visual C++.
8934     if test "$GCC" != yes; then
8935       with_gnu_ld=no
8936     fi
8937     ;;
8938   interix*)
8939     # we just hope/assume this is gcc and not c89 (= MSVC++)
8940     with_gnu_ld=yes
8941     ;;
8942   openbsd*)
8943     with_gnu_ld=no
8944     ;;
8945   esac
8946
8947   ld_shlibs=yes
8948
8949   # On some targets, GNU ld is compatible enough with the native linker
8950   # that we're better off using the native interface for both.
8951   lt_use_gnu_ld_interface=no
8952   if test "$with_gnu_ld" = yes; then
8953     case $host_os in
8954       aix*)
8955         # The AIX port of GNU ld has always aspired to compatibility
8956         # with the native linker.  However, as the warning in the GNU ld
8957         # block says, versions before 2.19.5* couldn't really create working
8958         # shared libraries, regardless of the interface used.
8959         case `$LD -v 2>&1` in
8960           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8961           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8962           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8963           *)
8964             lt_use_gnu_ld_interface=yes
8965             ;;
8966         esac
8967         ;;
8968       *)
8969         lt_use_gnu_ld_interface=yes
8970         ;;
8971     esac
8972   fi
8973
8974   if test "$lt_use_gnu_ld_interface" = yes; then
8975     # If archive_cmds runs LD, not CC, wlarc should be empty
8976     wlarc='${wl}'
8977
8978     # Set some defaults for GNU ld with shared library support. These
8979     # are reset later if shared libraries are not supported. Putting them
8980     # here allows them to be overridden if necessary.
8981     runpath_var=LD_RUN_PATH
8982     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8983     export_dynamic_flag_spec='${wl}--export-dynamic'
8984     # ancient GNU ld didn't support --whole-archive et. al.
8985     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8986       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8987     else
8988       whole_archive_flag_spec=
8989     fi
8990     supports_anon_versioning=no
8991     case `$LD -v 2>&1` in
8992       *GNU\ gold*) supports_anon_versioning=yes ;;
8993       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8994       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8995       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8996       *\ 2.11.*) ;; # other 2.11 versions
8997       *) supports_anon_versioning=yes ;;
8998     esac
8999
9000     # See if GNU ld supports shared libraries.
9001     case $host_os in
9002     aix[3-9]*)
9003       # On AIX/PPC, the GNU linker is very broken
9004       if test "$host_cpu" != ia64; then
9005         ld_shlibs=no
9006         cat <<_LT_EOF 1>&2
9007
9008 *** Warning: the GNU linker, at least up to release 2.19, is reported
9009 *** to be unable to reliably create shared libraries on AIX.
9010 *** Therefore, libtool is disabling shared libraries support.  If you
9011 *** really care for shared libraries, you may want to install binutils
9012 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9013 *** You will then need to restart the configuration process.
9014
9015 _LT_EOF
9016       fi
9017       ;;
9018
9019     amigaos*)
9020       case $host_cpu in
9021       powerpc)
9022             # see comment about AmigaOS4 .so support
9023             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9024             archive_expsym_cmds=''
9025         ;;
9026       m68k)
9027             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)'
9028             hardcode_libdir_flag_spec='-L$libdir'
9029             hardcode_minus_L=yes
9030         ;;
9031       esac
9032       ;;
9033
9034     beos*)
9035       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9036         allow_undefined_flag=unsupported
9037         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9038         # support --undefined.  This deserves some investigation.  FIXME
9039         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9040       else
9041         ld_shlibs=no
9042       fi
9043       ;;
9044
9045     cygwin* | mingw* | pw32* | cegcc*)
9046       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9047       # as there is no search path for DLLs.
9048       hardcode_libdir_flag_spec='-L$libdir'
9049       export_dynamic_flag_spec='${wl}--export-all-symbols'
9050       allow_undefined_flag=unsupported
9051       always_export_symbols=no
9052       enable_shared_with_static_runtimes=yes
9053       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'
9054       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9055
9056       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9057         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9058         # If the export-symbols file already is a .def file (1st line
9059         # is EXPORTS), use it as is; otherwise, prepend...
9060         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9061           cp $export_symbols $output_objdir/$soname.def;
9062         else
9063           echo EXPORTS > $output_objdir/$soname.def;
9064           cat $export_symbols >> $output_objdir/$soname.def;
9065         fi~
9066         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9067       else
9068         ld_shlibs=no
9069       fi
9070       ;;
9071
9072     haiku*)
9073       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9074       link_all_deplibs=yes
9075       ;;
9076
9077     interix[3-9]*)
9078       hardcode_direct=no
9079       hardcode_shlibpath_var=no
9080       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9081       export_dynamic_flag_spec='${wl}-E'
9082       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9083       # Instead, shared libraries are loaded at an image base (0x10000000 by
9084       # default) and relocated if they conflict, which is a slow very memory
9085       # consuming and fragmenting process.  To avoid this, we pick a random,
9086       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9087       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9088       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9089       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'
9090       ;;
9091
9092     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9093       tmp_diet=no
9094       if test "$host_os" = linux-dietlibc; then
9095         case $cc_basename in
9096           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9097         esac
9098       fi
9099       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9100          && test "$tmp_diet" = no
9101       then
9102         tmp_addflag=' $pic_flag'
9103         tmp_sharedflag='-shared'
9104         case $cc_basename,$host_cpu in
9105         pgcc*)                          # Portland Group C compiler
9106           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'
9107           tmp_addflag=' $pic_flag'
9108           ;;
9109         pgf77* | pgf90* | pgf95* | pgfortran*)
9110                                         # Portland Group f77 and f90 compilers
9111           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'
9112           tmp_addflag=' $pic_flag -Mnomain' ;;
9113         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9114           tmp_addflag=' -i_dynamic' ;;
9115         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9116           tmp_addflag=' -i_dynamic -nofor_main' ;;
9117         ifc* | ifort*)                  # Intel Fortran compiler
9118           tmp_addflag=' -nofor_main' ;;
9119         lf95*)                          # Lahey Fortran 8.1
9120           whole_archive_flag_spec=
9121           tmp_sharedflag='--shared' ;;
9122         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9123           tmp_sharedflag='-qmkshrobj'
9124           tmp_addflag= ;;
9125         nvcc*)  # Cuda Compiler Driver 2.2
9126           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'
9127           compiler_needs_object=yes
9128           ;;
9129         esac
9130         case `$CC -V 2>&1 | sed 5q` in
9131         *Sun\ C*)                       # Sun C 5.9
9132           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'
9133           compiler_needs_object=yes
9134           tmp_sharedflag='-G' ;;
9135         *Sun\ F*)                       # Sun Fortran 8.3
9136           tmp_sharedflag='-G' ;;
9137         esac
9138         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9139
9140         if test "x$supports_anon_versioning" = xyes; then
9141           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9142             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9143             echo "local: *; };" >> $output_objdir/$libname.ver~
9144             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9145         fi
9146
9147         case $cc_basename in
9148         xlf* | bgf* | bgxlf* | mpixlf*)
9149           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9150           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9151           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9152           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9153           if test "x$supports_anon_versioning" = xyes; then
9154             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9155               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9156               echo "local: *; };" >> $output_objdir/$libname.ver~
9157               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9158           fi
9159           ;;
9160         esac
9161       else
9162         ld_shlibs=no
9163       fi
9164       ;;
9165
9166     netbsd*)
9167       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9168         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9169         wlarc=
9170       else
9171         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9172         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9173       fi
9174       ;;
9175
9176     solaris*)
9177       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9178         ld_shlibs=no
9179         cat <<_LT_EOF 1>&2
9180
9181 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9182 *** create shared libraries on Solaris systems.  Therefore, libtool
9183 *** is disabling shared libraries support.  We urge you to upgrade GNU
9184 *** binutils to release 2.9.1 or newer.  Another option is to modify
9185 *** your PATH or compiler configuration so that the native linker is
9186 *** used, and then restart.
9187
9188 _LT_EOF
9189       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9190         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9191         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9192       else
9193         ld_shlibs=no
9194       fi
9195       ;;
9196
9197     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9198       case `$LD -v 2>&1` in
9199         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9200         ld_shlibs=no
9201         cat <<_LT_EOF 1>&2
9202
9203 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9204 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9205 *** is disabling shared libraries support.  We urge you to upgrade GNU
9206 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9207 *** your PATH or compiler configuration so that the native linker is
9208 *** used, and then restart.
9209
9210 _LT_EOF
9211         ;;
9212         *)
9213           # For security reasons, it is highly recommended that you always
9214           # use absolute paths for naming shared libraries, and exclude the
9215           # DT_RUNPATH tag from executables and libraries.  But doing so
9216           # requires that you compile everything twice, which is a pain.
9217           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9218             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9219             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9220             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9221           else
9222             ld_shlibs=no
9223           fi
9224         ;;
9225       esac
9226       ;;
9227
9228     sunos4*)
9229       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9230       wlarc=
9231       hardcode_direct=yes
9232       hardcode_shlibpath_var=no
9233       ;;
9234
9235     *)
9236       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9237         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9238         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9239       else
9240         ld_shlibs=no
9241       fi
9242       ;;
9243     esac
9244
9245     if test "$ld_shlibs" = no; then
9246       runpath_var=
9247       hardcode_libdir_flag_spec=
9248       export_dynamic_flag_spec=
9249       whole_archive_flag_spec=
9250     fi
9251   else
9252     # PORTME fill in a description of your system's linker (not GNU ld)
9253     case $host_os in
9254     aix3*)
9255       allow_undefined_flag=unsupported
9256       always_export_symbols=yes
9257       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'
9258       # Note: this linker hardcodes the directories in LIBPATH if there
9259       # are no directories specified by -L.
9260       hardcode_minus_L=yes
9261       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9262         # Neither direct hardcoding nor static linking is supported with a
9263         # broken collect2.
9264         hardcode_direct=unsupported
9265       fi
9266       ;;
9267
9268     aix[4-9]*)
9269       if test "$host_cpu" = ia64; then
9270         # On IA64, the linker does run time linking by default, so we don't
9271         # have to do anything special.
9272         aix_use_runtimelinking=no
9273         exp_sym_flag='-Bexport'
9274         no_entry_flag=""
9275       else
9276         # If we're using GNU nm, then we don't want the "-C" option.
9277         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9278         # Also, AIX nm treats weak defined symbols like other global
9279         # defined symbols, whereas GNU nm marks them as "W".
9280         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9281           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'
9282         else
9283           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'
9284         fi
9285         aix_use_runtimelinking=no
9286
9287         # Test if we are trying to use run time linking or normal
9288         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9289         # need to do runtime linking.
9290         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9291           for ld_flag in $LDFLAGS; do
9292           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9293             aix_use_runtimelinking=yes
9294             break
9295           fi
9296           done
9297           ;;
9298         esac
9299
9300         exp_sym_flag='-bexport'
9301         no_entry_flag='-bnoentry'
9302       fi
9303
9304       # When large executables or shared objects are built, AIX ld can
9305       # have problems creating the table of contents.  If linking a library
9306       # or program results in "error TOC overflow" add -mminimal-toc to
9307       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9308       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9309
9310       archive_cmds=''
9311       hardcode_direct=yes
9312       hardcode_direct_absolute=yes
9313       hardcode_libdir_separator=':'
9314       link_all_deplibs=yes
9315       file_list_spec='${wl}-f,'
9316
9317       if test "$GCC" = yes; then
9318         case $host_os in aix4.[012]|aix4.[012].*)
9319         # We only want to do this on AIX 4.2 and lower, the check
9320         # below for broken collect2 doesn't work under 4.3+
9321           collect2name=`${CC} -print-prog-name=collect2`
9322           if test -f "$collect2name" &&
9323            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9324           then
9325           # We have reworked collect2
9326           :
9327           else
9328           # We have old collect2
9329           hardcode_direct=unsupported
9330           # It fails to find uninstalled libraries when the uninstalled
9331           # path is not listed in the libpath.  Setting hardcode_minus_L
9332           # to unsupported forces relinking
9333           hardcode_minus_L=yes
9334           hardcode_libdir_flag_spec='-L$libdir'
9335           hardcode_libdir_separator=
9336           fi
9337           ;;
9338         esac
9339         shared_flag='-shared'
9340         if test "$aix_use_runtimelinking" = yes; then
9341           shared_flag="$shared_flag "'${wl}-G'
9342         fi
9343       else
9344         # not using gcc
9345         if test "$host_cpu" = ia64; then
9346         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9347         # chokes on -Wl,-G. The following line is correct:
9348           shared_flag='-G'
9349         else
9350           if test "$aix_use_runtimelinking" = yes; then
9351             shared_flag='${wl}-G'
9352           else
9353             shared_flag='${wl}-bM:SRE'
9354           fi
9355         fi
9356       fi
9357
9358       export_dynamic_flag_spec='${wl}-bexpall'
9359       # It seems that -bexpall does not export symbols beginning with
9360       # underscore (_), so it is better to generate a list of symbols to export.
9361       always_export_symbols=yes
9362       if test "$aix_use_runtimelinking" = yes; then
9363         # Warning - without using the other runtime loading flags (-brtl),
9364         # -berok will link without error, but may produce a broken library.
9365         allow_undefined_flag='-berok'
9366         # Determine the default libpath from the value encoded in an
9367         # empty executable.
9368         if test "${lt_cv_aix_libpath+set}" = set; then
9369   aix_libpath=$lt_cv_aix_libpath
9370 else
9371   if ${lt_cv_aix_libpath_+:} false; then :
9372   $as_echo_n "(cached) " >&6
9373 else
9374   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9375 /* end confdefs.h.  */
9376
9377 int
9378 main ()
9379 {
9380
9381   ;
9382   return 0;
9383 }
9384 _ACEOF
9385 if ac_fn_c_try_link "$LINENO"; then :
9386
9387   lt_aix_libpath_sed='
9388       /Import File Strings/,/^$/ {
9389           /^0/ {
9390               s/^0  *\([^ ]*\) *$/\1/
9391               p
9392           }
9393       }'
9394   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9395   # Check for a 64-bit object if we didn't find anything.
9396   if test -z "$lt_cv_aix_libpath_"; then
9397     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9398   fi
9399 fi
9400 rm -f core conftest.err conftest.$ac_objext \
9401     conftest$ac_exeext conftest.$ac_ext
9402   if test -z "$lt_cv_aix_libpath_"; then
9403     lt_cv_aix_libpath_="/usr/lib:/lib"
9404   fi
9405
9406 fi
9407
9408   aix_libpath=$lt_cv_aix_libpath_
9409 fi
9410
9411         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9412         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"
9413       else
9414         if test "$host_cpu" = ia64; then
9415           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9416           allow_undefined_flag="-z nodefs"
9417           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"
9418         else
9419          # Determine the default libpath from the value encoded in an
9420          # empty executable.
9421          if test "${lt_cv_aix_libpath+set}" = set; then
9422   aix_libpath=$lt_cv_aix_libpath
9423 else
9424   if ${lt_cv_aix_libpath_+:} false; then :
9425   $as_echo_n "(cached) " >&6
9426 else
9427   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9428 /* end confdefs.h.  */
9429
9430 int
9431 main ()
9432 {
9433
9434   ;
9435   return 0;
9436 }
9437 _ACEOF
9438 if ac_fn_c_try_link "$LINENO"; then :
9439
9440   lt_aix_libpath_sed='
9441       /Import File Strings/,/^$/ {
9442           /^0/ {
9443               s/^0  *\([^ ]*\) *$/\1/
9444               p
9445           }
9446       }'
9447   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9448   # Check for a 64-bit object if we didn't find anything.
9449   if test -z "$lt_cv_aix_libpath_"; then
9450     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9451   fi
9452 fi
9453 rm -f core conftest.err conftest.$ac_objext \
9454     conftest$ac_exeext conftest.$ac_ext
9455   if test -z "$lt_cv_aix_libpath_"; then
9456     lt_cv_aix_libpath_="/usr/lib:/lib"
9457   fi
9458
9459 fi
9460
9461   aix_libpath=$lt_cv_aix_libpath_
9462 fi
9463
9464          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9465           # Warning - without using the other run time loading flags,
9466           # -berok will link without error, but may produce a broken library.
9467           no_undefined_flag=' ${wl}-bernotok'
9468           allow_undefined_flag=' ${wl}-berok'
9469           if test "$with_gnu_ld" = yes; then
9470             # We only use this code for GNU lds that support --whole-archive.
9471             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9472           else
9473             # Exported symbols can be pulled into shared objects from archives
9474             whole_archive_flag_spec='$convenience'
9475           fi
9476           archive_cmds_need_lc=yes
9477           # This is similar to how AIX traditionally builds its shared libraries.
9478           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'
9479         fi
9480       fi
9481       ;;
9482
9483     amigaos*)
9484       case $host_cpu in
9485       powerpc)
9486             # see comment about AmigaOS4 .so support
9487             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9488             archive_expsym_cmds=''
9489         ;;
9490       m68k)
9491             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)'
9492             hardcode_libdir_flag_spec='-L$libdir'
9493             hardcode_minus_L=yes
9494         ;;
9495       esac
9496       ;;
9497
9498     bsdi[45]*)
9499       export_dynamic_flag_spec=-rdynamic
9500       ;;
9501
9502     cygwin* | mingw* | pw32* | cegcc*)
9503       # When not using gcc, we currently assume that we are using
9504       # Microsoft Visual C++.
9505       # hardcode_libdir_flag_spec is actually meaningless, as there is
9506       # no search path for DLLs.
9507       case $cc_basename in
9508       cl*)
9509         # Native MSVC
9510         hardcode_libdir_flag_spec=' '
9511         allow_undefined_flag=unsupported
9512         always_export_symbols=yes
9513         file_list_spec='@'
9514         # Tell ltmain to make .lib files, not .a files.
9515         libext=lib
9516         # Tell ltmain to make .dll files, not .so files.
9517         shrext_cmds=".dll"
9518         # FIXME: Setting linknames here is a bad hack.
9519         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9520         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9521             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9522           else
9523             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9524           fi~
9525           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9526           linknames='
9527         # The linker will not automatically build a static lib if we build a DLL.
9528         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9529         enable_shared_with_static_runtimes=yes
9530         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9531         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9532         # Don't use ranlib
9533         old_postinstall_cmds='chmod 644 $oldlib'
9534         postlink_cmds='lt_outputfile="@OUTPUT@"~
9535           lt_tool_outputfile="@TOOL_OUTPUT@"~
9536           case $lt_outputfile in
9537             *.exe|*.EXE) ;;
9538             *)
9539               lt_outputfile="$lt_outputfile.exe"
9540               lt_tool_outputfile="$lt_tool_outputfile.exe"
9541               ;;
9542           esac~
9543           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9544             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9545             $RM "$lt_outputfile.manifest";
9546           fi'
9547         ;;
9548       *)
9549         # Assume MSVC wrapper
9550         hardcode_libdir_flag_spec=' '
9551         allow_undefined_flag=unsupported
9552         # Tell ltmain to make .lib files, not .a files.
9553         libext=lib
9554         # Tell ltmain to make .dll files, not .so files.
9555         shrext_cmds=".dll"
9556         # FIXME: Setting linknames here is a bad hack.
9557         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9558         # The linker will automatically build a .lib file if we build a DLL.
9559         old_archive_from_new_cmds='true'
9560         # FIXME: Should let the user specify the lib program.
9561         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9562         enable_shared_with_static_runtimes=yes
9563         ;;
9564       esac
9565       ;;
9566
9567     darwin* | rhapsody*)
9568
9569
9570   archive_cmds_need_lc=no
9571   hardcode_direct=no
9572   hardcode_automatic=yes
9573   hardcode_shlibpath_var=unsupported
9574   if test "$lt_cv_ld_force_load" = "yes"; then
9575     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\"`'
9576
9577   else
9578     whole_archive_flag_spec=''
9579   fi
9580   link_all_deplibs=yes
9581   allow_undefined_flag="$_lt_dar_allow_undefined"
9582   case $cc_basename in
9583      ifort*) _lt_dar_can_shared=yes ;;
9584      *) _lt_dar_can_shared=$GCC ;;
9585   esac
9586   if test "$_lt_dar_can_shared" = "yes"; then
9587     output_verbose_link_cmd=func_echo_all
9588     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9589     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9590     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}"
9591     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}"
9592
9593   else
9594   ld_shlibs=no
9595   fi
9596
9597       ;;
9598
9599     dgux*)
9600       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9601       hardcode_libdir_flag_spec='-L$libdir'
9602       hardcode_shlibpath_var=no
9603       ;;
9604
9605     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9606     # support.  Future versions do this automatically, but an explicit c++rt0.o
9607     # does not break anything, and helps significantly (at the cost of a little
9608     # extra space).
9609     freebsd2.2*)
9610       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9611       hardcode_libdir_flag_spec='-R$libdir'
9612       hardcode_direct=yes
9613       hardcode_shlibpath_var=no
9614       ;;
9615
9616     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9617     freebsd2.*)
9618       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9619       hardcode_direct=yes
9620       hardcode_minus_L=yes
9621       hardcode_shlibpath_var=no
9622       ;;
9623
9624     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9625     freebsd* | dragonfly*)
9626       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9627       hardcode_libdir_flag_spec='-R$libdir'
9628       hardcode_direct=yes
9629       hardcode_shlibpath_var=no
9630       ;;
9631
9632     hpux9*)
9633       if test "$GCC" = yes; then
9634         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'
9635       else
9636         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'
9637       fi
9638       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9639       hardcode_libdir_separator=:
9640       hardcode_direct=yes
9641
9642       # hardcode_minus_L: Not really in the search PATH,
9643       # but as the default location of the library.
9644       hardcode_minus_L=yes
9645       export_dynamic_flag_spec='${wl}-E'
9646       ;;
9647
9648     hpux10*)
9649       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9650         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9651       else
9652         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9653       fi
9654       if test "$with_gnu_ld" = no; then
9655         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9656         hardcode_libdir_separator=:
9657         hardcode_direct=yes
9658         hardcode_direct_absolute=yes
9659         export_dynamic_flag_spec='${wl}-E'
9660         # hardcode_minus_L: Not really in the search PATH,
9661         # but as the default location of the library.
9662         hardcode_minus_L=yes
9663       fi
9664       ;;
9665
9666     hpux11*)
9667       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9668         case $host_cpu in
9669         hppa*64*)
9670           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9671           ;;
9672         ia64*)
9673           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9674           ;;
9675         *)
9676           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9677           ;;
9678         esac
9679       else
9680         case $host_cpu in
9681         hppa*64*)
9682           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9683           ;;
9684         ia64*)
9685           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9686           ;;
9687         *)
9688
9689           # Older versions of the 11.00 compiler do not understand -b yet
9690           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9691           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9692 $as_echo_n "checking if $CC understands -b... " >&6; }
9693 if ${lt_cv_prog_compiler__b+:} false; then :
9694   $as_echo_n "(cached) " >&6
9695 else
9696   lt_cv_prog_compiler__b=no
9697    save_LDFLAGS="$LDFLAGS"
9698    LDFLAGS="$LDFLAGS -b"
9699    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9700    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9701      # The linker can only warn and ignore the option if not recognized
9702      # So say no if there are warnings
9703      if test -s conftest.err; then
9704        # Append any errors to the config.log.
9705        cat conftest.err 1>&5
9706        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9707        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9708        if diff conftest.exp conftest.er2 >/dev/null; then
9709          lt_cv_prog_compiler__b=yes
9710        fi
9711      else
9712        lt_cv_prog_compiler__b=yes
9713      fi
9714    fi
9715    $RM -r conftest*
9716    LDFLAGS="$save_LDFLAGS"
9717
9718 fi
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9720 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9721
9722 if test x"$lt_cv_prog_compiler__b" = xyes; then
9723     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9724 else
9725     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9726 fi
9727
9728           ;;
9729         esac
9730       fi
9731       if test "$with_gnu_ld" = no; then
9732         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9733         hardcode_libdir_separator=:
9734
9735         case $host_cpu in
9736         hppa*64*|ia64*)
9737           hardcode_direct=no
9738           hardcode_shlibpath_var=no
9739           ;;
9740         *)
9741           hardcode_direct=yes
9742           hardcode_direct_absolute=yes
9743           export_dynamic_flag_spec='${wl}-E'
9744
9745           # hardcode_minus_L: Not really in the search PATH,
9746           # but as the default location of the library.
9747           hardcode_minus_L=yes
9748           ;;
9749         esac
9750       fi
9751       ;;
9752
9753     irix5* | irix6* | nonstopux*)
9754       if test "$GCC" = yes; then
9755         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'
9756         # Try to use the -exported_symbol ld option, if it does not
9757         # work, assume that -exports_file does not work either and
9758         # implicitly export all symbols.
9759         # This should be the same for all languages, so no per-tag cache variable.
9760         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9761 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9762 if ${lt_cv_irix_exported_symbol+:} false; then :
9763   $as_echo_n "(cached) " >&6
9764 else
9765   save_LDFLAGS="$LDFLAGS"
9766            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9767            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9768 /* end confdefs.h.  */
9769 int foo (void) { return 0; }
9770 _ACEOF
9771 if ac_fn_c_try_link "$LINENO"; then :
9772   lt_cv_irix_exported_symbol=yes
9773 else
9774   lt_cv_irix_exported_symbol=no
9775 fi
9776 rm -f core conftest.err conftest.$ac_objext \
9777     conftest$ac_exeext conftest.$ac_ext
9778            LDFLAGS="$save_LDFLAGS"
9779 fi
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9781 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9782         if test "$lt_cv_irix_exported_symbol" = yes; then
9783           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'
9784         fi
9785       else
9786         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'
9787         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'
9788       fi
9789       archive_cmds_need_lc='no'
9790       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9791       hardcode_libdir_separator=:
9792       inherit_rpath=yes
9793       link_all_deplibs=yes
9794       ;;
9795
9796     netbsd*)
9797       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9798         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9799       else
9800         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9801       fi
9802       hardcode_libdir_flag_spec='-R$libdir'
9803       hardcode_direct=yes
9804       hardcode_shlibpath_var=no
9805       ;;
9806
9807     newsos6)
9808       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9809       hardcode_direct=yes
9810       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9811       hardcode_libdir_separator=:
9812       hardcode_shlibpath_var=no
9813       ;;
9814
9815     *nto* | *qnx*)
9816       ;;
9817
9818     openbsd*)
9819       if test -f /usr/libexec/ld.so; then
9820         hardcode_direct=yes
9821         hardcode_shlibpath_var=no
9822         hardcode_direct_absolute=yes
9823         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9824           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9825           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9826           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9827           export_dynamic_flag_spec='${wl}-E'
9828         else
9829           case $host_os in
9830            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9831              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9832              hardcode_libdir_flag_spec='-R$libdir'
9833              ;;
9834            *)
9835              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9836              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9837              ;;
9838           esac
9839         fi
9840       else
9841         ld_shlibs=no
9842       fi
9843       ;;
9844
9845     os2*)
9846       hardcode_libdir_flag_spec='-L$libdir'
9847       hardcode_minus_L=yes
9848       allow_undefined_flag=unsupported
9849       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'
9850       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9851       ;;
9852
9853     osf3*)
9854       if test "$GCC" = yes; then
9855         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9856         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'
9857       else
9858         allow_undefined_flag=' -expect_unresolved \*'
9859         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'
9860       fi
9861       archive_cmds_need_lc='no'
9862       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9863       hardcode_libdir_separator=:
9864       ;;
9865
9866     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9867       if test "$GCC" = yes; then
9868         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9869         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'
9870         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9871       else
9872         allow_undefined_flag=' -expect_unresolved \*'
9873         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'
9874         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~
9875         $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'
9876
9877         # Both c and cxx compiler support -rpath directly
9878         hardcode_libdir_flag_spec='-rpath $libdir'
9879       fi
9880       archive_cmds_need_lc='no'
9881       hardcode_libdir_separator=:
9882       ;;
9883
9884     solaris*)
9885       no_undefined_flag=' -z defs'
9886       if test "$GCC" = yes; then
9887         wlarc='${wl}'
9888         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9889         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9890           $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'
9891       else
9892         case `$CC -V 2>&1` in
9893         *"Compilers 5.0"*)
9894           wlarc=''
9895           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9896           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9897           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9898           ;;
9899         *)
9900           wlarc='${wl}'
9901           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9902           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9903           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9904           ;;
9905         esac
9906       fi
9907       hardcode_libdir_flag_spec='-R$libdir'
9908       hardcode_shlibpath_var=no
9909       case $host_os in
9910       solaris2.[0-5] | solaris2.[0-5].*) ;;
9911       *)
9912         # The compiler driver will combine and reorder linker options,
9913         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9914         # but is careful enough not to reorder.
9915         # Supported since Solaris 2.6 (maybe 2.5.1?)
9916         if test "$GCC" = yes; then
9917           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9918         else
9919           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9920         fi
9921         ;;
9922       esac
9923       link_all_deplibs=yes
9924       ;;
9925
9926     sunos4*)
9927       if test "x$host_vendor" = xsequent; then
9928         # Use $CC to link under sequent, because it throws in some extra .o
9929         # files that make .init and .fini sections work.
9930         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9931       else
9932         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9933       fi
9934       hardcode_libdir_flag_spec='-L$libdir'
9935       hardcode_direct=yes
9936       hardcode_minus_L=yes
9937       hardcode_shlibpath_var=no
9938       ;;
9939
9940     sysv4)
9941       case $host_vendor in
9942         sni)
9943           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9944           hardcode_direct=yes # is this really true???
9945         ;;
9946         siemens)
9947           ## LD is ld it makes a PLAMLIB
9948           ## CC just makes a GrossModule.
9949           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9950           reload_cmds='$CC -r -o $output$reload_objs'
9951           hardcode_direct=no
9952         ;;
9953         motorola)
9954           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9955           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9956         ;;
9957       esac
9958       runpath_var='LD_RUN_PATH'
9959       hardcode_shlibpath_var=no
9960       ;;
9961
9962     sysv4.3*)
9963       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9964       hardcode_shlibpath_var=no
9965       export_dynamic_flag_spec='-Bexport'
9966       ;;
9967
9968     sysv4*MP*)
9969       if test -d /usr/nec; then
9970         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9971         hardcode_shlibpath_var=no
9972         runpath_var=LD_RUN_PATH
9973         hardcode_runpath_var=yes
9974         ld_shlibs=yes
9975       fi
9976       ;;
9977
9978     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9979       no_undefined_flag='${wl}-z,text'
9980       archive_cmds_need_lc=no
9981       hardcode_shlibpath_var=no
9982       runpath_var='LD_RUN_PATH'
9983
9984       if test "$GCC" = yes; then
9985         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9986         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9987       else
9988         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9989         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9990       fi
9991       ;;
9992
9993     sysv5* | sco3.2v5* | sco5v6*)
9994       # Note: We can NOT use -z defs as we might desire, because we do not
9995       # link with -lc, and that would cause any symbols used from libc to
9996       # always be unresolved, which means just about no library would
9997       # ever link correctly.  If we're not using GNU ld we use -z text
9998       # though, which does catch some bad symbols but isn't as heavy-handed
9999       # as -z defs.
10000       no_undefined_flag='${wl}-z,text'
10001       allow_undefined_flag='${wl}-z,nodefs'
10002       archive_cmds_need_lc=no
10003       hardcode_shlibpath_var=no
10004       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10005       hardcode_libdir_separator=':'
10006       link_all_deplibs=yes
10007       export_dynamic_flag_spec='${wl}-Bexport'
10008       runpath_var='LD_RUN_PATH'
10009
10010       if test "$GCC" = yes; then
10011         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10012         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10013       else
10014         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10015         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10016       fi
10017       ;;
10018
10019     uts4*)
10020       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10021       hardcode_libdir_flag_spec='-L$libdir'
10022       hardcode_shlibpath_var=no
10023       ;;
10024
10025     *)
10026       ld_shlibs=no
10027       ;;
10028     esac
10029
10030     if test x$host_vendor = xsni; then
10031       case $host in
10032       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10033         export_dynamic_flag_spec='${wl}-Blargedynsym'
10034         ;;
10035       esac
10036     fi
10037   fi
10038
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10040 $as_echo "$ld_shlibs" >&6; }
10041 test "$ld_shlibs" = no && can_build_shared=no
10042
10043 with_gnu_ld=$with_gnu_ld
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059 #
10060 # Do we need to explicitly link libc?
10061 #
10062 case "x$archive_cmds_need_lc" in
10063 x|xyes)
10064   # Assume -lc should be added
10065   archive_cmds_need_lc=yes
10066
10067   if test "$enable_shared" = yes && test "$GCC" = yes; then
10068     case $archive_cmds in
10069     *'~'*)
10070       # FIXME: we may have to deal with multi-command sequences.
10071       ;;
10072     '$CC '*)
10073       # Test whether the compiler implicitly links with -lc since on some
10074       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10075       # to ld, don't add -lc before -lgcc.
10076       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10077 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10078 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10079   $as_echo_n "(cached) " >&6
10080 else
10081   $RM conftest*
10082         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10083
10084         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10085   (eval $ac_compile) 2>&5
10086   ac_status=$?
10087   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10088   test $ac_status = 0; } 2>conftest.err; then
10089           soname=conftest
10090           lib=conftest
10091           libobjs=conftest.$ac_objext
10092           deplibs=
10093           wl=$lt_prog_compiler_wl
10094           pic_flag=$lt_prog_compiler_pic
10095           compiler_flags=-v
10096           linker_flags=-v
10097           verstring=
10098           output_objdir=.
10099           libname=conftest
10100           lt_save_allow_undefined_flag=$allow_undefined_flag
10101           allow_undefined_flag=
10102           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10103   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10104   ac_status=$?
10105   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10106   test $ac_status = 0; }
10107           then
10108             lt_cv_archive_cmds_need_lc=no
10109           else
10110             lt_cv_archive_cmds_need_lc=yes
10111           fi
10112           allow_undefined_flag=$lt_save_allow_undefined_flag
10113         else
10114           cat conftest.err 1>&5
10115         fi
10116         $RM conftest*
10117
10118 fi
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10120 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10121       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10122       ;;
10123     esac
10124   fi
10125   ;;
10126 esac
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10280 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10281
10282 if test "$GCC" = yes; then
10283   case $host_os in
10284     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10285     *) lt_awk_arg="/^libraries:/" ;;
10286   esac
10287   case $host_os in
10288     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10289     *) lt_sed_strip_eq="s,=/,/,g" ;;
10290   esac
10291   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10292   case $lt_search_path_spec in
10293   *\;*)
10294     # if the path contains ";" then we assume it to be the separator
10295     # otherwise default to the standard path separator (i.e. ":") - it is
10296     # assumed that no part of a normal pathname contains ";" but that should
10297     # okay in the real world where ";" in dirpaths is itself problematic.
10298     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10299     ;;
10300   *)
10301     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10302     ;;
10303   esac
10304   # Ok, now we have the path, separated by spaces, we can step through it
10305   # and add multilib dir if necessary.
10306   lt_tmp_lt_search_path_spec=
10307   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10308   for lt_sys_path in $lt_search_path_spec; do
10309     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10310       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10311     else
10312       test -d "$lt_sys_path" && \
10313         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10314     fi
10315   done
10316   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10317 BEGIN {RS=" "; FS="/|\n";} {
10318   lt_foo="";
10319   lt_count=0;
10320   for (lt_i = NF; lt_i > 0; lt_i--) {
10321     if ($lt_i != "" && $lt_i != ".") {
10322       if ($lt_i == "..") {
10323         lt_count++;
10324       } else {
10325         if (lt_count == 0) {
10326           lt_foo="/" $lt_i lt_foo;
10327         } else {
10328           lt_count--;
10329         }
10330       }
10331     }
10332   }
10333   if (lt_foo != "") { lt_freq[lt_foo]++; }
10334   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10335 }'`
10336   # AWK program above erroneously prepends '/' to C:/dos/paths
10337   # for these hosts.
10338   case $host_os in
10339     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10340       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10341   esac
10342   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10343 else
10344   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10345 fi
10346 library_names_spec=
10347 libname_spec='lib$name'
10348 soname_spec=
10349 shrext_cmds=".so"
10350 postinstall_cmds=
10351 postuninstall_cmds=
10352 finish_cmds=
10353 finish_eval=
10354 shlibpath_var=
10355 shlibpath_overrides_runpath=unknown
10356 version_type=none
10357 dynamic_linker="$host_os ld.so"
10358 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10359 need_lib_prefix=unknown
10360 hardcode_into_libs=no
10361
10362 # when you set need_version to no, make sure it does not cause -set_version
10363 # flags to be left without arguments
10364 need_version=unknown
10365
10366 case $host_os in
10367 aix3*)
10368   version_type=linux # correct to gnu/linux during the next big refactor
10369   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10370   shlibpath_var=LIBPATH
10371
10372   # AIX 3 has no versioning support, so we append a major version to the name.
10373   soname_spec='${libname}${release}${shared_ext}$major'
10374   ;;
10375
10376 aix[4-9]*)
10377   version_type=linux # correct to gnu/linux during the next big refactor
10378   need_lib_prefix=no
10379   need_version=no
10380   hardcode_into_libs=yes
10381   if test "$host_cpu" = ia64; then
10382     # AIX 5 supports IA64
10383     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10384     shlibpath_var=LD_LIBRARY_PATH
10385   else
10386     # With GCC up to 2.95.x, collect2 would create an import file
10387     # for dependence libraries.  The import file would start with
10388     # the line `#! .'.  This would cause the generated library to
10389     # depend on `.', always an invalid library.  This was fixed in
10390     # development snapshots of GCC prior to 3.0.
10391     case $host_os in
10392       aix4 | aix4.[01] | aix4.[01].*)
10393       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10394            echo ' yes '
10395            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10396         :
10397       else
10398         can_build_shared=no
10399       fi
10400       ;;
10401     esac
10402     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10403     # soname into executable. Probably we can add versioning support to
10404     # collect2, so additional links can be useful in future.
10405     if test "$aix_use_runtimelinking" = yes; then
10406       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10407       # instead of lib<name>.a to let people know that these are not
10408       # typical AIX shared libraries.
10409       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10410     else
10411       # We preserve .a as extension for shared libraries through AIX4.2
10412       # and later when we are not doing run time linking.
10413       library_names_spec='${libname}${release}.a $libname.a'
10414       soname_spec='${libname}${release}${shared_ext}$major'
10415     fi
10416     shlibpath_var=LIBPATH
10417   fi
10418   ;;
10419
10420 amigaos*)
10421   case $host_cpu in
10422   powerpc)
10423     # Since July 2007 AmigaOS4 officially supports .so libraries.
10424     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10425     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10426     ;;
10427   m68k)
10428     library_names_spec='$libname.ixlibrary $libname.a'
10429     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10430     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'
10431     ;;
10432   esac
10433   ;;
10434
10435 beos*)
10436   library_names_spec='${libname}${shared_ext}'
10437   dynamic_linker="$host_os ld.so"
10438   shlibpath_var=LIBRARY_PATH
10439   ;;
10440
10441 bsdi[45]*)
10442   version_type=linux # correct to gnu/linux during the next big refactor
10443   need_version=no
10444   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10445   soname_spec='${libname}${release}${shared_ext}$major'
10446   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10447   shlibpath_var=LD_LIBRARY_PATH
10448   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10449   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10450   # the default ld.so.conf also contains /usr/contrib/lib and
10451   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10452   # libtool to hard-code these into programs
10453   ;;
10454
10455 cygwin* | mingw* | pw32* | cegcc*)
10456   version_type=windows
10457   shrext_cmds=".dll"
10458   need_version=no
10459   need_lib_prefix=no
10460
10461   case $GCC,$cc_basename in
10462   yes,*)
10463     # gcc
10464     library_names_spec='$libname.dll.a'
10465     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10466     postinstall_cmds='base_file=`basename \${file}`~
10467       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10468       dldir=$destdir/`dirname \$dlpath`~
10469       test -d \$dldir || mkdir -p \$dldir~
10470       $install_prog $dir/$dlname \$dldir/$dlname~
10471       chmod a+x \$dldir/$dlname~
10472       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10473         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10474       fi'
10475     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10476       dlpath=$dir/\$dldll~
10477        $RM \$dlpath'
10478     shlibpath_overrides_runpath=yes
10479
10480     case $host_os in
10481     cygwin*)
10482       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10483       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10484
10485       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10486       ;;
10487     mingw* | cegcc*)
10488       # MinGW DLLs use traditional 'lib' prefix
10489       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10490       ;;
10491     pw32*)
10492       # pw32 DLLs use 'pw' prefix rather than 'lib'
10493       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10494       ;;
10495     esac
10496     dynamic_linker='Win32 ld.exe'
10497     ;;
10498
10499   *,cl*)
10500     # Native MSVC
10501     libname_spec='$name'
10502     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10503     library_names_spec='${libname}.dll.lib'
10504
10505     case $build_os in
10506     mingw*)
10507       sys_lib_search_path_spec=
10508       lt_save_ifs=$IFS
10509       IFS=';'
10510       for lt_path in $LIB
10511       do
10512         IFS=$lt_save_ifs
10513         # Let DOS variable expansion print the short 8.3 style file name.
10514         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10515         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10516       done
10517       IFS=$lt_save_ifs
10518       # Convert to MSYS style.
10519       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10520       ;;
10521     cygwin*)
10522       # Convert to unix form, then to dos form, then back to unix form
10523       # but this time dos style (no spaces!) so that the unix form looks
10524       # like /cygdrive/c/PROGRA~1:/cygdr...
10525       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10526       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10527       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10528       ;;
10529     *)
10530       sys_lib_search_path_spec="$LIB"
10531       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10532         # It is most probably a Windows format PATH.
10533         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10534       else
10535         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10536       fi
10537       # FIXME: find the short name or the path components, as spaces are
10538       # common. (e.g. "Program Files" -> "PROGRA~1")
10539       ;;
10540     esac
10541
10542     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10543     postinstall_cmds='base_file=`basename \${file}`~
10544       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10545       dldir=$destdir/`dirname \$dlpath`~
10546       test -d \$dldir || mkdir -p \$dldir~
10547       $install_prog $dir/$dlname \$dldir/$dlname'
10548     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10549       dlpath=$dir/\$dldll~
10550        $RM \$dlpath'
10551     shlibpath_overrides_runpath=yes
10552     dynamic_linker='Win32 link.exe'
10553     ;;
10554
10555   *)
10556     # Assume MSVC wrapper
10557     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10558     dynamic_linker='Win32 ld.exe'
10559     ;;
10560   esac
10561   # FIXME: first we should search . and the directory the executable is in
10562   shlibpath_var=PATH
10563   ;;
10564
10565 darwin* | rhapsody*)
10566   dynamic_linker="$host_os dyld"
10567   version_type=darwin
10568   need_lib_prefix=no
10569   need_version=no
10570   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10571   soname_spec='${libname}${release}${major}$shared_ext'
10572   shlibpath_overrides_runpath=yes
10573   shlibpath_var=DYLD_LIBRARY_PATH
10574   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10575
10576   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10577   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10578   ;;
10579
10580 dgux*)
10581   version_type=linux # correct to gnu/linux during the next big refactor
10582   need_lib_prefix=no
10583   need_version=no
10584   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10585   soname_spec='${libname}${release}${shared_ext}$major'
10586   shlibpath_var=LD_LIBRARY_PATH
10587   ;;
10588
10589 freebsd* | dragonfly*)
10590   # DragonFly does not have aout.  When/if they implement a new
10591   # versioning mechanism, adjust this.
10592   if test -x /usr/bin/objformat; then
10593     objformat=`/usr/bin/objformat`
10594   else
10595     case $host_os in
10596     freebsd[23].*) objformat=aout ;;
10597     *) objformat=elf ;;
10598     esac
10599   fi
10600   version_type=freebsd-$objformat
10601   case $version_type in
10602     freebsd-elf*)
10603       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10604       need_version=no
10605       need_lib_prefix=no
10606       ;;
10607     freebsd-*)
10608       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10609       need_version=yes
10610       ;;
10611   esac
10612   shlibpath_var=LD_LIBRARY_PATH
10613   case $host_os in
10614   freebsd2.*)
10615     shlibpath_overrides_runpath=yes
10616     ;;
10617   freebsd3.[01]* | freebsdelf3.[01]*)
10618     shlibpath_overrides_runpath=yes
10619     hardcode_into_libs=yes
10620     ;;
10621   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10622   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10623     shlibpath_overrides_runpath=no
10624     hardcode_into_libs=yes
10625     ;;
10626   *) # from 4.6 on, and DragonFly
10627     shlibpath_overrides_runpath=yes
10628     hardcode_into_libs=yes
10629     ;;
10630   esac
10631   ;;
10632
10633 gnu*)
10634   version_type=linux # correct to gnu/linux during the next big refactor
10635   need_lib_prefix=no
10636   need_version=no
10637   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10638   soname_spec='${libname}${release}${shared_ext}$major'
10639   shlibpath_var=LD_LIBRARY_PATH
10640   shlibpath_overrides_runpath=no
10641   hardcode_into_libs=yes
10642   ;;
10643
10644 haiku*)
10645   version_type=linux # correct to gnu/linux during the next big refactor
10646   need_lib_prefix=no
10647   need_version=no
10648   dynamic_linker="$host_os runtime_loader"
10649   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10650   soname_spec='${libname}${release}${shared_ext}$major'
10651   shlibpath_var=LIBRARY_PATH
10652   shlibpath_overrides_runpath=yes
10653   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10654   hardcode_into_libs=yes
10655   ;;
10656
10657 hpux9* | hpux10* | hpux11*)
10658   # Give a soname corresponding to the major version so that dld.sl refuses to
10659   # link against other versions.
10660   version_type=sunos
10661   need_lib_prefix=no
10662   need_version=no
10663   case $host_cpu in
10664   ia64*)
10665     shrext_cmds='.so'
10666     hardcode_into_libs=yes
10667     dynamic_linker="$host_os dld.so"
10668     shlibpath_var=LD_LIBRARY_PATH
10669     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10670     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10671     soname_spec='${libname}${release}${shared_ext}$major'
10672     if test "X$HPUX_IA64_MODE" = X32; then
10673       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10674     else
10675       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10676     fi
10677     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10678     ;;
10679   hppa*64*)
10680     shrext_cmds='.sl'
10681     hardcode_into_libs=yes
10682     dynamic_linker="$host_os dld.sl"
10683     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10684     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10685     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10686     soname_spec='${libname}${release}${shared_ext}$major'
10687     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10688     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10689     ;;
10690   *)
10691     shrext_cmds='.sl'
10692     dynamic_linker="$host_os dld.sl"
10693     shlibpath_var=SHLIB_PATH
10694     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10695     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10696     soname_spec='${libname}${release}${shared_ext}$major'
10697     ;;
10698   esac
10699   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10700   postinstall_cmds='chmod 555 $lib'
10701   # or fails outright, so override atomically:
10702   install_override_mode=555
10703   ;;
10704
10705 interix[3-9]*)
10706   version_type=linux # correct to gnu/linux during the next big refactor
10707   need_lib_prefix=no
10708   need_version=no
10709   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10710   soname_spec='${libname}${release}${shared_ext}$major'
10711   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10712   shlibpath_var=LD_LIBRARY_PATH
10713   shlibpath_overrides_runpath=no
10714   hardcode_into_libs=yes
10715   ;;
10716
10717 irix5* | irix6* | nonstopux*)
10718   case $host_os in
10719     nonstopux*) version_type=nonstopux ;;
10720     *)
10721         if test "$lt_cv_prog_gnu_ld" = yes; then
10722                 version_type=linux # correct to gnu/linux during the next big refactor
10723         else
10724                 version_type=irix
10725         fi ;;
10726   esac
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}${release}${shared_ext} $libname${shared_ext}'
10731   case $host_os in
10732   irix5* | nonstopux*)
10733     libsuff= shlibsuff=
10734     ;;
10735   *)
10736     case $LD in # libtool.m4 will add one of these switches to LD
10737     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10738       libsuff= shlibsuff= libmagic=32-bit;;
10739     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10740       libsuff=32 shlibsuff=N32 libmagic=N32;;
10741     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10742       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10743     *) libsuff= shlibsuff= libmagic=never-match;;
10744     esac
10745     ;;
10746   esac
10747   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10748   shlibpath_overrides_runpath=no
10749   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10750   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10751   hardcode_into_libs=yes
10752   ;;
10753
10754 # No shared lib support for Linux oldld, aout, or coff.
10755 linux*oldld* | linux*aout* | linux*coff*)
10756   dynamic_linker=no
10757   ;;
10758
10759 # This must be glibc/ELF.
10760 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10761   version_type=linux # correct to gnu/linux during the next big refactor
10762   need_lib_prefix=no
10763   need_version=no
10764   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10765   soname_spec='${libname}${release}${shared_ext}$major'
10766   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10767   shlibpath_var=LD_LIBRARY_PATH
10768   shlibpath_overrides_runpath=no
10769
10770   # Some binutils ld are patched to set DT_RUNPATH
10771   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10772   $as_echo_n "(cached) " >&6
10773 else
10774   lt_cv_shlibpath_overrides_runpath=no
10775     save_LDFLAGS=$LDFLAGS
10776     save_libdir=$libdir
10777     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10778          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10779     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10780 /* end confdefs.h.  */
10781
10782 int
10783 main ()
10784 {
10785
10786   ;
10787   return 0;
10788 }
10789 _ACEOF
10790 if ac_fn_c_try_link "$LINENO"; then :
10791   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10792   lt_cv_shlibpath_overrides_runpath=yes
10793 fi
10794 fi
10795 rm -f core conftest.err conftest.$ac_objext \
10796     conftest$ac_exeext conftest.$ac_ext
10797     LDFLAGS=$save_LDFLAGS
10798     libdir=$save_libdir
10799
10800 fi
10801
10802   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10803
10804   # This implies no fast_install, which is unacceptable.
10805   # Some rework will be needed to allow for fast_install
10806   # before this can be enabled.
10807   hardcode_into_libs=yes
10808
10809   # Add ABI-specific directories to the system library path.
10810   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10811
10812   # Append ld.so.conf contents to the search path
10813   if test -f /etc/ld.so.conf; then
10814     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' ' '`
10815     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10816
10817   fi
10818
10819   # We used to test for /lib/ld.so.1 and disable shared libraries on
10820   # powerpc, because MkLinux only supported shared libraries with the
10821   # GNU dynamic linker.  Since this was broken with cross compilers,
10822   # most powerpc-linux boxes support dynamic linking these days and
10823   # people can always --disable-shared, the test was removed, and we
10824   # assume the GNU/Linux dynamic linker is in use.
10825   dynamic_linker='GNU/Linux ld.so'
10826   ;;
10827
10828 netbsd*)
10829   version_type=sunos
10830   need_lib_prefix=no
10831   need_version=no
10832   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10833     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10834     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10835     dynamic_linker='NetBSD (a.out) ld.so'
10836   else
10837     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10838     soname_spec='${libname}${release}${shared_ext}$major'
10839     dynamic_linker='NetBSD ld.elf_so'
10840   fi
10841   shlibpath_var=LD_LIBRARY_PATH
10842   shlibpath_overrides_runpath=yes
10843   hardcode_into_libs=yes
10844   ;;
10845
10846 newsos6)
10847   version_type=linux # correct to gnu/linux during the next big refactor
10848   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10849   shlibpath_var=LD_LIBRARY_PATH
10850   shlibpath_overrides_runpath=yes
10851   ;;
10852
10853 *nto* | *qnx*)
10854   version_type=qnx
10855   need_lib_prefix=no
10856   need_version=no
10857   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10858   soname_spec='${libname}${release}${shared_ext}$major'
10859   shlibpath_var=LD_LIBRARY_PATH
10860   shlibpath_overrides_runpath=no
10861   hardcode_into_libs=yes
10862   dynamic_linker='ldqnx.so'
10863   ;;
10864
10865 openbsd*)
10866   version_type=sunos
10867   sys_lib_dlsearch_path_spec="/usr/lib"
10868   need_lib_prefix=no
10869   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10870   case $host_os in
10871     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10872     *)                          need_version=no  ;;
10873   esac
10874   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10875   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10876   shlibpath_var=LD_LIBRARY_PATH
10877   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10878     case $host_os in
10879       openbsd2.[89] | openbsd2.[89].*)
10880         shlibpath_overrides_runpath=no
10881         ;;
10882       *)
10883         shlibpath_overrides_runpath=yes
10884         ;;
10885       esac
10886   else
10887     shlibpath_overrides_runpath=yes
10888   fi
10889   ;;
10890
10891 os2*)
10892   libname_spec='$name'
10893   shrext_cmds=".dll"
10894   need_lib_prefix=no
10895   library_names_spec='$libname${shared_ext} $libname.a'
10896   dynamic_linker='OS/2 ld.exe'
10897   shlibpath_var=LIBPATH
10898   ;;
10899
10900 osf3* | osf4* | osf5*)
10901   version_type=osf
10902   need_lib_prefix=no
10903   need_version=no
10904   soname_spec='${libname}${release}${shared_ext}$major'
10905   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10906   shlibpath_var=LD_LIBRARY_PATH
10907   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10908   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10909   ;;
10910
10911 rdos*)
10912   dynamic_linker=no
10913   ;;
10914
10915 solaris*)
10916   version_type=linux # correct to gnu/linux during the next big refactor
10917   need_lib_prefix=no
10918   need_version=no
10919   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10920   soname_spec='${libname}${release}${shared_ext}$major'
10921   shlibpath_var=LD_LIBRARY_PATH
10922   shlibpath_overrides_runpath=yes
10923   hardcode_into_libs=yes
10924   # ldd complains unless libraries are executable
10925   postinstall_cmds='chmod +x $lib'
10926   ;;
10927
10928 sunos4*)
10929   version_type=sunos
10930   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10931   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10932   shlibpath_var=LD_LIBRARY_PATH
10933   shlibpath_overrides_runpath=yes
10934   if test "$with_gnu_ld" = yes; then
10935     need_lib_prefix=no
10936   fi
10937   need_version=yes
10938   ;;
10939
10940 sysv4 | sysv4.3*)
10941   version_type=linux # correct to gnu/linux during the next big refactor
10942   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10943   soname_spec='${libname}${release}${shared_ext}$major'
10944   shlibpath_var=LD_LIBRARY_PATH
10945   case $host_vendor in
10946     sni)
10947       shlibpath_overrides_runpath=no
10948       need_lib_prefix=no
10949       runpath_var=LD_RUN_PATH
10950       ;;
10951     siemens)
10952       need_lib_prefix=no
10953       ;;
10954     motorola)
10955       need_lib_prefix=no
10956       need_version=no
10957       shlibpath_overrides_runpath=no
10958       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10959       ;;
10960   esac
10961   ;;
10962
10963 sysv4*MP*)
10964   if test -d /usr/nec ;then
10965     version_type=linux # correct to gnu/linux during the next big refactor
10966     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10967     soname_spec='$libname${shared_ext}.$major'
10968     shlibpath_var=LD_LIBRARY_PATH
10969   fi
10970   ;;
10971
10972 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10973   version_type=freebsd-elf
10974   need_lib_prefix=no
10975   need_version=no
10976   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10977   soname_spec='${libname}${release}${shared_ext}$major'
10978   shlibpath_var=LD_LIBRARY_PATH
10979   shlibpath_overrides_runpath=yes
10980   hardcode_into_libs=yes
10981   if test "$with_gnu_ld" = yes; then
10982     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10983   else
10984     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10985     case $host_os in
10986       sco3.2v5*)
10987         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10988         ;;
10989     esac
10990   fi
10991   sys_lib_dlsearch_path_spec='/usr/lib'
10992   ;;
10993
10994 tpf*)
10995   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10996   version_type=linux # correct to gnu/linux during the next big refactor
10997   need_lib_prefix=no
10998   need_version=no
10999   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11000   shlibpath_var=LD_LIBRARY_PATH
11001   shlibpath_overrides_runpath=no
11002   hardcode_into_libs=yes
11003   ;;
11004
11005 uts4*)
11006   version_type=linux # correct to gnu/linux during the next big refactor
11007   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11008   soname_spec='${libname}${release}${shared_ext}$major'
11009   shlibpath_var=LD_LIBRARY_PATH
11010   ;;
11011
11012 *)
11013   dynamic_linker=no
11014   ;;
11015 esac
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11017 $as_echo "$dynamic_linker" >&6; }
11018 test "$dynamic_linker" = no && can_build_shared=no
11019
11020 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11021 if test "$GCC" = yes; then
11022   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11023 fi
11024
11025 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11026   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11027 fi
11028 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11029   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11030 fi
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11124 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11125 hardcode_action=
11126 if test -n "$hardcode_libdir_flag_spec" ||
11127    test -n "$runpath_var" ||
11128    test "X$hardcode_automatic" = "Xyes" ; then
11129
11130   # We can hardcode non-existent directories.
11131   if test "$hardcode_direct" != no &&
11132      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11133      # have to relink, otherwise we might link with an installed library
11134      # when we should be linking with a yet-to-be-installed one
11135      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11136      test "$hardcode_minus_L" != no; then
11137     # Linking always hardcodes the temporary library directory.
11138     hardcode_action=relink
11139   else
11140     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11141     hardcode_action=immediate
11142   fi
11143 else
11144   # We cannot hardcode anything, or else we can only hardcode existing
11145   # directories.
11146   hardcode_action=unsupported
11147 fi
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11149 $as_echo "$hardcode_action" >&6; }
11150
11151 if test "$hardcode_action" = relink ||
11152    test "$inherit_rpath" = yes; then
11153   # Fast installation is not supported
11154   enable_fast_install=no
11155 elif test "$shlibpath_overrides_runpath" = yes ||
11156      test "$enable_shared" = no; then
11157   # Fast installation is not necessary
11158   enable_fast_install=needless
11159 fi
11160
11161
11162
11163
11164
11165
11166   if test "x$enable_dlopen" != xyes; then
11167   enable_dlopen=unknown
11168   enable_dlopen_self=unknown
11169   enable_dlopen_self_static=unknown
11170 else
11171   lt_cv_dlopen=no
11172   lt_cv_dlopen_libs=
11173
11174   case $host_os in
11175   beos*)
11176     lt_cv_dlopen="load_add_on"
11177     lt_cv_dlopen_libs=
11178     lt_cv_dlopen_self=yes
11179     ;;
11180
11181   mingw* | pw32* | cegcc*)
11182     lt_cv_dlopen="LoadLibrary"
11183     lt_cv_dlopen_libs=
11184     ;;
11185
11186   cygwin*)
11187     lt_cv_dlopen="dlopen"
11188     lt_cv_dlopen_libs=
11189     ;;
11190
11191   darwin*)
11192   # if libdl is installed we need to link against it
11193     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11194 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11195 if ${ac_cv_lib_dl_dlopen+:} false; then :
11196   $as_echo_n "(cached) " >&6
11197 else
11198   ac_check_lib_save_LIBS=$LIBS
11199 LIBS="-ldl  $LIBS"
11200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11201 /* end confdefs.h.  */
11202
11203 /* Override any GCC internal prototype to avoid an error.
11204    Use char because int might match the return type of a GCC
11205    builtin and then its argument prototype would still apply.  */
11206 #ifdef __cplusplus
11207 extern "C"
11208 #endif
11209 char dlopen ();
11210 int
11211 main ()
11212 {
11213 return dlopen ();
11214   ;
11215   return 0;
11216 }
11217 _ACEOF
11218 if ac_fn_c_try_link "$LINENO"; then :
11219   ac_cv_lib_dl_dlopen=yes
11220 else
11221   ac_cv_lib_dl_dlopen=no
11222 fi
11223 rm -f core conftest.err conftest.$ac_objext \
11224     conftest$ac_exeext conftest.$ac_ext
11225 LIBS=$ac_check_lib_save_LIBS
11226 fi
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11228 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11229 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11230   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11231 else
11232
11233     lt_cv_dlopen="dyld"
11234     lt_cv_dlopen_libs=
11235     lt_cv_dlopen_self=yes
11236
11237 fi
11238
11239     ;;
11240
11241   *)
11242     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11243 if test "x$ac_cv_func_shl_load" = xyes; then :
11244   lt_cv_dlopen="shl_load"
11245 else
11246   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11247 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11248 if ${ac_cv_lib_dld_shl_load+:} false; then :
11249   $as_echo_n "(cached) " >&6
11250 else
11251   ac_check_lib_save_LIBS=$LIBS
11252 LIBS="-ldld  $LIBS"
11253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11254 /* end confdefs.h.  */
11255
11256 /* Override any GCC internal prototype to avoid an error.
11257    Use char because int might match the return type of a GCC
11258    builtin and then its argument prototype would still apply.  */
11259 #ifdef __cplusplus
11260 extern "C"
11261 #endif
11262 char shl_load ();
11263 int
11264 main ()
11265 {
11266 return shl_load ();
11267   ;
11268   return 0;
11269 }
11270 _ACEOF
11271 if ac_fn_c_try_link "$LINENO"; then :
11272   ac_cv_lib_dld_shl_load=yes
11273 else
11274   ac_cv_lib_dld_shl_load=no
11275 fi
11276 rm -f core conftest.err conftest.$ac_objext \
11277     conftest$ac_exeext conftest.$ac_ext
11278 LIBS=$ac_check_lib_save_LIBS
11279 fi
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11281 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11282 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11283   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11284 else
11285   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11286 if test "x$ac_cv_func_dlopen" = xyes; then :
11287   lt_cv_dlopen="dlopen"
11288 else
11289   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11290 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11291 if ${ac_cv_lib_dl_dlopen+:} false; then :
11292   $as_echo_n "(cached) " >&6
11293 else
11294   ac_check_lib_save_LIBS=$LIBS
11295 LIBS="-ldl  $LIBS"
11296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11297 /* end confdefs.h.  */
11298
11299 /* Override any GCC internal prototype to avoid an error.
11300    Use char because int might match the return type of a GCC
11301    builtin and then its argument prototype would still apply.  */
11302 #ifdef __cplusplus
11303 extern "C"
11304 #endif
11305 char dlopen ();
11306 int
11307 main ()
11308 {
11309 return dlopen ();
11310   ;
11311   return 0;
11312 }
11313 _ACEOF
11314 if ac_fn_c_try_link "$LINENO"; then :
11315   ac_cv_lib_dl_dlopen=yes
11316 else
11317   ac_cv_lib_dl_dlopen=no
11318 fi
11319 rm -f core conftest.err conftest.$ac_objext \
11320     conftest$ac_exeext conftest.$ac_ext
11321 LIBS=$ac_check_lib_save_LIBS
11322 fi
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11324 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11325 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11326   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11327 else
11328   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11329 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11330 if ${ac_cv_lib_svld_dlopen+:} false; then :
11331   $as_echo_n "(cached) " >&6
11332 else
11333   ac_check_lib_save_LIBS=$LIBS
11334 LIBS="-lsvld  $LIBS"
11335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11336 /* end confdefs.h.  */
11337
11338 /* Override any GCC internal prototype to avoid an error.
11339    Use char because int might match the return type of a GCC
11340    builtin and then its argument prototype would still apply.  */
11341 #ifdef __cplusplus
11342 extern "C"
11343 #endif
11344 char dlopen ();
11345 int
11346 main ()
11347 {
11348 return dlopen ();
11349   ;
11350   return 0;
11351 }
11352 _ACEOF
11353 if ac_fn_c_try_link "$LINENO"; then :
11354   ac_cv_lib_svld_dlopen=yes
11355 else
11356   ac_cv_lib_svld_dlopen=no
11357 fi
11358 rm -f core conftest.err conftest.$ac_objext \
11359     conftest$ac_exeext conftest.$ac_ext
11360 LIBS=$ac_check_lib_save_LIBS
11361 fi
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11363 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11364 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11365   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11366 else
11367   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11368 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11369 if ${ac_cv_lib_dld_dld_link+:} false; then :
11370   $as_echo_n "(cached) " >&6
11371 else
11372   ac_check_lib_save_LIBS=$LIBS
11373 LIBS="-ldld  $LIBS"
11374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11375 /* end confdefs.h.  */
11376
11377 /* Override any GCC internal prototype to avoid an error.
11378    Use char because int might match the return type of a GCC
11379    builtin and then its argument prototype would still apply.  */
11380 #ifdef __cplusplus
11381 extern "C"
11382 #endif
11383 char dld_link ();
11384 int
11385 main ()
11386 {
11387 return dld_link ();
11388   ;
11389   return 0;
11390 }
11391 _ACEOF
11392 if ac_fn_c_try_link "$LINENO"; then :
11393   ac_cv_lib_dld_dld_link=yes
11394 else
11395   ac_cv_lib_dld_dld_link=no
11396 fi
11397 rm -f core conftest.err conftest.$ac_objext \
11398     conftest$ac_exeext conftest.$ac_ext
11399 LIBS=$ac_check_lib_save_LIBS
11400 fi
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11402 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11403 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11404   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11405 fi
11406
11407
11408 fi
11409
11410
11411 fi
11412
11413
11414 fi
11415
11416
11417 fi
11418
11419
11420 fi
11421
11422     ;;
11423   esac
11424
11425   if test "x$lt_cv_dlopen" != xno; then
11426     enable_dlopen=yes
11427   else
11428     enable_dlopen=no
11429   fi
11430
11431   case $lt_cv_dlopen in
11432   dlopen)
11433     save_CPPFLAGS="$CPPFLAGS"
11434     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11435
11436     save_LDFLAGS="$LDFLAGS"
11437     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11438
11439     save_LIBS="$LIBS"
11440     LIBS="$lt_cv_dlopen_libs $LIBS"
11441
11442     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11443 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11444 if ${lt_cv_dlopen_self+:} false; then :
11445   $as_echo_n "(cached) " >&6
11446 else
11447           if test "$cross_compiling" = yes; then :
11448   lt_cv_dlopen_self=cross
11449 else
11450   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11451   lt_status=$lt_dlunknown
11452   cat > conftest.$ac_ext <<_LT_EOF
11453 #line $LINENO "configure"
11454 #include "confdefs.h"
11455
11456 #if HAVE_DLFCN_H
11457 #include <dlfcn.h>
11458 #endif
11459
11460 #include <stdio.h>
11461
11462 #ifdef RTLD_GLOBAL
11463 #  define LT_DLGLOBAL           RTLD_GLOBAL
11464 #else
11465 #  ifdef DL_GLOBAL
11466 #    define LT_DLGLOBAL         DL_GLOBAL
11467 #  else
11468 #    define LT_DLGLOBAL         0
11469 #  endif
11470 #endif
11471
11472 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11473    find out it does not work in some platform. */
11474 #ifndef LT_DLLAZY_OR_NOW
11475 #  ifdef RTLD_LAZY
11476 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11477 #  else
11478 #    ifdef DL_LAZY
11479 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11480 #    else
11481 #      ifdef RTLD_NOW
11482 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11483 #      else
11484 #        ifdef DL_NOW
11485 #          define LT_DLLAZY_OR_NOW      DL_NOW
11486 #        else
11487 #          define LT_DLLAZY_OR_NOW      0
11488 #        endif
11489 #      endif
11490 #    endif
11491 #  endif
11492 #endif
11493
11494 /* When -fvisbility=hidden is used, assume the code has been annotated
11495    correspondingly for the symbols needed.  */
11496 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11497 int fnord () __attribute__((visibility("default")));
11498 #endif
11499
11500 int fnord () { return 42; }
11501 int main ()
11502 {
11503   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11504   int status = $lt_dlunknown;
11505
11506   if (self)
11507     {
11508       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11509       else
11510         {
11511           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11512           else puts (dlerror ());
11513         }
11514       /* dlclose (self); */
11515     }
11516   else
11517     puts (dlerror ());
11518
11519   return status;
11520 }
11521 _LT_EOF
11522   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11523   (eval $ac_link) 2>&5
11524   ac_status=$?
11525   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11526   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11527     (./conftest; exit; ) >&5 2>/dev/null
11528     lt_status=$?
11529     case x$lt_status in
11530       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11531       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11532       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11533     esac
11534   else :
11535     # compilation failed
11536     lt_cv_dlopen_self=no
11537   fi
11538 fi
11539 rm -fr conftest*
11540
11541
11542 fi
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11544 $as_echo "$lt_cv_dlopen_self" >&6; }
11545
11546     if test "x$lt_cv_dlopen_self" = xyes; then
11547       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11548       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11549 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11550 if ${lt_cv_dlopen_self_static+:} false; then :
11551   $as_echo_n "(cached) " >&6
11552 else
11553           if test "$cross_compiling" = yes; then :
11554   lt_cv_dlopen_self_static=cross
11555 else
11556   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11557   lt_status=$lt_dlunknown
11558   cat > conftest.$ac_ext <<_LT_EOF
11559 #line $LINENO "configure"
11560 #include "confdefs.h"
11561
11562 #if HAVE_DLFCN_H
11563 #include <dlfcn.h>
11564 #endif
11565
11566 #include <stdio.h>
11567
11568 #ifdef RTLD_GLOBAL
11569 #  define LT_DLGLOBAL           RTLD_GLOBAL
11570 #else
11571 #  ifdef DL_GLOBAL
11572 #    define LT_DLGLOBAL         DL_GLOBAL
11573 #  else
11574 #    define LT_DLGLOBAL         0
11575 #  endif
11576 #endif
11577
11578 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11579    find out it does not work in some platform. */
11580 #ifndef LT_DLLAZY_OR_NOW
11581 #  ifdef RTLD_LAZY
11582 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11583 #  else
11584 #    ifdef DL_LAZY
11585 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11586 #    else
11587 #      ifdef RTLD_NOW
11588 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11589 #      else
11590 #        ifdef DL_NOW
11591 #          define LT_DLLAZY_OR_NOW      DL_NOW
11592 #        else
11593 #          define LT_DLLAZY_OR_NOW      0
11594 #        endif
11595 #      endif
11596 #    endif
11597 #  endif
11598 #endif
11599
11600 /* When -fvisbility=hidden is used, assume the code has been annotated
11601    correspondingly for the symbols needed.  */
11602 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11603 int fnord () __attribute__((visibility("default")));
11604 #endif
11605
11606 int fnord () { return 42; }
11607 int main ()
11608 {
11609   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11610   int status = $lt_dlunknown;
11611
11612   if (self)
11613     {
11614       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11615       else
11616         {
11617           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11618           else puts (dlerror ());
11619         }
11620       /* dlclose (self); */
11621     }
11622   else
11623     puts (dlerror ());
11624
11625   return status;
11626 }
11627 _LT_EOF
11628   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11629   (eval $ac_link) 2>&5
11630   ac_status=$?
11631   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11632   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11633     (./conftest; exit; ) >&5 2>/dev/null
11634     lt_status=$?
11635     case x$lt_status in
11636       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11637       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11638       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11639     esac
11640   else :
11641     # compilation failed
11642     lt_cv_dlopen_self_static=no
11643   fi
11644 fi
11645 rm -fr conftest*
11646
11647
11648 fi
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11650 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11651     fi
11652
11653     CPPFLAGS="$save_CPPFLAGS"
11654     LDFLAGS="$save_LDFLAGS"
11655     LIBS="$save_LIBS"
11656     ;;
11657   esac
11658
11659   case $lt_cv_dlopen_self in
11660   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11661   *) enable_dlopen_self=unknown ;;
11662   esac
11663
11664   case $lt_cv_dlopen_self_static in
11665   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11666   *) enable_dlopen_self_static=unknown ;;
11667   esac
11668 fi
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686 striplib=
11687 old_striplib=
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11689 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11690 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11691   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11692   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11694 $as_echo "yes" >&6; }
11695 else
11696 # FIXME - insert some real tests, host_os isn't really good enough
11697   case $host_os in
11698   darwin*)
11699     if test -n "$STRIP" ; then
11700       striplib="$STRIP -x"
11701       old_striplib="$STRIP -S"
11702       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11703 $as_echo "yes" >&6; }
11704     else
11705       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11706 $as_echo "no" >&6; }
11707     fi
11708     ;;
11709   *)
11710     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11711 $as_echo "no" >&6; }
11712     ;;
11713   esac
11714 fi
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727   # Report which library types will actually be built
11728   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11729 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11731 $as_echo "$can_build_shared" >&6; }
11732
11733   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11734 $as_echo_n "checking whether to build shared libraries... " >&6; }
11735   test "$can_build_shared" = "no" && enable_shared=no
11736
11737   # On AIX, shared libraries and static libraries use the same namespace, and
11738   # are all built from PIC.
11739   case $host_os in
11740   aix3*)
11741     test "$enable_shared" = yes && enable_static=no
11742     if test -n "$RANLIB"; then
11743       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11744       postinstall_cmds='$RANLIB $lib'
11745     fi
11746     ;;
11747
11748   aix[4-9]*)
11749     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11750       test "$enable_shared" = yes && enable_static=no
11751     fi
11752     ;;
11753   esac
11754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11755 $as_echo "$enable_shared" >&6; }
11756
11757   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11758 $as_echo_n "checking whether to build static libraries... " >&6; }
11759   # Make sure either enable_shared or enable_static is yes.
11760   test "$enable_shared" = yes || enable_static=yes
11761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11762 $as_echo "$enable_static" >&6; }
11763
11764
11765
11766
11767 fi
11768 ac_ext=c
11769 ac_cpp='$CPP $CPPFLAGS'
11770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11773
11774 CC="$lt_save_CC"
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790         ac_config_commands="$ac_config_commands libtool"
11791
11792
11793
11794
11795 # Only expand once:
11796
11797
11798 if test "x$CC" != xcc; then
11799   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
11800 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11801 else
11802   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
11803 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11804 fi
11805 set dummy $CC; ac_cc=`$as_echo "$2" |
11806                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11807 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
11808   $as_echo_n "(cached) " >&6
11809 else
11810   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11811 /* end confdefs.h.  */
11812
11813 int
11814 main ()
11815 {
11816
11817   ;
11818   return 0;
11819 }
11820 _ACEOF
11821 # Make sure it works both with $CC and with simple cc.
11822 # We do the test twice because some compilers refuse to overwrite an
11823 # existing .o file with -o, though they will create one.
11824 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11825 rm -f conftest2.*
11826 if { { case "(($ac_try" in
11827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11828   *) ac_try_echo=$ac_try;;
11829 esac
11830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11831 $as_echo "$ac_try_echo"; } >&5
11832   (eval "$ac_try") 2>&5
11833   ac_status=$?
11834   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11835   test $ac_status = 0; } &&
11836    test -f conftest2.$ac_objext && { { case "(($ac_try" in
11837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11838   *) ac_try_echo=$ac_try;;
11839 esac
11840 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11841 $as_echo "$ac_try_echo"; } >&5
11842   (eval "$ac_try") 2>&5
11843   ac_status=$?
11844   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11845   test $ac_status = 0; };
11846 then
11847   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11848   if test "x$CC" != xcc; then
11849     # Test first that cc exists at all.
11850     if { ac_try='cc -c conftest.$ac_ext >&5'
11851   { { case "(($ac_try" in
11852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11853   *) ac_try_echo=$ac_try;;
11854 esac
11855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11856 $as_echo "$ac_try_echo"; } >&5
11857   (eval "$ac_try") 2>&5
11858   ac_status=$?
11859   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11860   test $ac_status = 0; }; }; then
11861       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11862       rm -f conftest2.*
11863       if { { case "(($ac_try" in
11864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11865   *) ac_try_echo=$ac_try;;
11866 esac
11867 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11868 $as_echo "$ac_try_echo"; } >&5
11869   (eval "$ac_try") 2>&5
11870   ac_status=$?
11871   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11872   test $ac_status = 0; } &&
11873          test -f conftest2.$ac_objext && { { case "(($ac_try" in
11874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11875   *) ac_try_echo=$ac_try;;
11876 esac
11877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11878 $as_echo "$ac_try_echo"; } >&5
11879   (eval "$ac_try") 2>&5
11880   ac_status=$?
11881   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11882   test $ac_status = 0; };
11883       then
11884         # cc works too.
11885         :
11886       else
11887         # cc exists but doesn't like -o.
11888         eval ac_cv_prog_cc_${ac_cc}_c_o=no
11889       fi
11890     fi
11891   fi
11892 else
11893   eval ac_cv_prog_cc_${ac_cc}_c_o=no
11894 fi
11895 rm -f core conftest*
11896
11897 fi
11898 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11900 $as_echo "yes" >&6; }
11901 else
11902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11903 $as_echo "no" >&6; }
11904
11905 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
11906
11907 fi
11908
11909 # FIXME: we rely on the cache variable name because
11910 # there is no other way.
11911 set dummy $CC
11912 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11913 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11914 if test "$am_t" != yes; then
11915    # Losing compiler, so override with the script.
11916    # FIXME: It is wrong to rewrite CC.
11917    # But if we don't then we get into trouble of one sort or another.
11918    # A longer-term fix would be to have automake use am__CC in this case,
11919    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11920    CC="$am_aux_dir/compile $CC"
11921 fi
11922
11923
11924
11925 if test "x$enable_docs" = xyes; then
11926   # Extract the first word of "doxygen", so it can be a program name with args.
11927 set dummy doxygen; ac_word=$2
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11929 $as_echo_n "checking for $ac_word... " >&6; }
11930 if ${ac_cv_prog_HAVE_DOXYGEN+:} false; then :
11931   $as_echo_n "(cached) " >&6
11932 else
11933   if test -n "$HAVE_DOXYGEN"; then
11934   ac_cv_prog_HAVE_DOXYGEN="$HAVE_DOXYGEN" # Let the user override the test.
11935 else
11936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11937 for as_dir in $PATH
11938 do
11939   IFS=$as_save_IFS
11940   test -z "$as_dir" && as_dir=.
11941     for ac_exec_ext in '' $ac_executable_extensions; do
11942   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11943     ac_cv_prog_HAVE_DOXYGEN="true"
11944     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11945     break 2
11946   fi
11947 done
11948   done
11949 IFS=$as_save_IFS
11950
11951   test -z "$ac_cv_prog_HAVE_DOXYGEN" && ac_cv_prog_HAVE_DOXYGEN="false"
11952 fi
11953 fi
11954 HAVE_DOXYGEN=$ac_cv_prog_HAVE_DOXYGEN
11955 if test -n "$HAVE_DOXYGEN"; then
11956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DOXYGEN" >&5
11957 $as_echo "$HAVE_DOXYGEN" >&6; }
11958 else
11959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11960 $as_echo "no" >&6; }
11961 fi
11962
11963
11964   if test $HAVE_DOXYGEN = "false"; then
11965     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** doxygen not found, API documentation will not be built" >&5
11966 $as_echo "$as_me: WARNING: *** doxygen not found, API documentation will not be built" >&2;}
11967   fi
11968 else
11969   HAVE_DOXYGEN=false
11970 fi
11971  if $HAVE_DOXYGEN; then
11972   HAVE_DOXYGEN_TRUE=
11973   HAVE_DOXYGEN_FALSE='#'
11974 else
11975   HAVE_DOXYGEN_TRUE='#'
11976   HAVE_DOXYGEN_FALSE=
11977 fi
11978
11979
11980 # Check whether --enable-docs was given.
11981 if test "${enable_docs+set}" = set; then :
11982   enableval=$enable_docs;
11983 fi
11984
11985
11986 if test "x$enable_docs" = xyes; then
11987   for ac_prog in pdflatex
11988 do
11989   # Extract the first word of "$ac_prog", so it can be a program name with args.
11990 set dummy $ac_prog; ac_word=$2
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11992 $as_echo_n "checking for $ac_word... " >&6; }
11993 if ${ac_cv_prog_PDFLATEX+:} false; then :
11994   $as_echo_n "(cached) " >&6
11995 else
11996   if test -n "$PDFLATEX"; then
11997   ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test.
11998 else
11999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12000 for as_dir in $PATH
12001 do
12002   IFS=$as_save_IFS
12003   test -z "$as_dir" && as_dir=.
12004     for ac_exec_ext in '' $ac_executable_extensions; do
12005   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12006     ac_cv_prog_PDFLATEX="$ac_prog"
12007     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12008     break 2
12009   fi
12010 done
12011   done
12012 IFS=$as_save_IFS
12013
12014 fi
12015 fi
12016 PDFLATEX=$ac_cv_prog_PDFLATEX
12017 if test -n "$PDFLATEX"; then
12018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5
12019 $as_echo "$PDFLATEX" >&6; }
12020 else
12021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12022 $as_echo "no" >&6; }
12023 fi
12024
12025
12026   test -n "$PDFLATEX" && break
12027 done
12028 test -n "$PDFLATEX" || PDFLATEX="/bin/false"
12029
12030   for ac_prog in htlatex
12031 do
12032   # Extract the first word of "$ac_prog", so it can be a program name with args.
12033 set dummy $ac_prog; ac_word=$2
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12035 $as_echo_n "checking for $ac_word... " >&6; }
12036 if ${ac_cv_prog_HTLATEX+:} false; then :
12037   $as_echo_n "(cached) " >&6
12038 else
12039   if test -n "$HTLATEX"; then
12040   ac_cv_prog_HTLATEX="$HTLATEX" # Let the user override the test.
12041 else
12042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12043 for as_dir in $PATH
12044 do
12045   IFS=$as_save_IFS
12046   test -z "$as_dir" && as_dir=.
12047     for ac_exec_ext in '' $ac_executable_extensions; do
12048   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12049     ac_cv_prog_HTLATEX="$ac_prog"
12050     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12051     break 2
12052   fi
12053 done
12054   done
12055 IFS=$as_save_IFS
12056
12057 fi
12058 fi
12059 HTLATEX=$ac_cv_prog_HTLATEX
12060 if test -n "$HTLATEX"; then
12061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTLATEX" >&5
12062 $as_echo "$HTLATEX" >&6; }
12063 else
12064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12065 $as_echo "no" >&6; }
12066 fi
12067
12068
12069   test -n "$HTLATEX" && break
12070 done
12071 test -n "$HTLATEX" || HTLATEX="/bin/false"
12072
12073   if test "x$PDFLATEX" = x/bin/false || test "x$HTLATEX" = x/bin/false; then
12074     enable_docs=no
12075     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Documentation will not be built!" >&5
12076 $as_echo "$as_me: WARNING: Documentation will not be built!" >&2;}
12077   fi
12078 fi
12079
12080  if test "x$enable_docs" = xyes; then
12081   BUILD_DOCS_TRUE=
12082   BUILD_DOCS_FALSE='#'
12083 else
12084   BUILD_DOCS_TRUE='#'
12085   BUILD_DOCS_FALSE=
12086 fi
12087
12088
12089 # Check whether --enable-examples was given.
12090 if test "${enable_examples+set}" = set; then :
12091   enableval=$enable_examples;
12092 fi
12093
12094
12095  if test "x$enable_examples" = xyes; then
12096   BUILD_EXAMPLES_TRUE=
12097   BUILD_EXAMPLES_FALSE='#'
12098 else
12099   BUILD_EXAMPLES_TRUE='#'
12100   BUILD_EXAMPLES_FALSE=
12101 fi
12102
12103
12104
12105
12106 cflags_save="$CFLAGS"
12107 if test -z "$GCC"; then
12108         case $host in
12109         *-*-irix*)
12110                                                 if test -z "$CC"; then
12111                         CC=cc
12112                 fi
12113                 DEBUG="-g -signed"
12114                 CFLAGS="-O2 -w -signed"
12115                 PROFILE="-p -g3 -O2 -signed" ;;
12116         sparc-sun-solaris*)
12117                 DEBUG="-v -g"
12118                 CFLAGS="-xO4 -fast -w -fsimple -native -xcg92"
12119                 PROFILE="-v -xpg -g -xO4 -fast -native -fsimple -xcg92 -Dsuncc" ;;
12120         *)
12121                 DEBUG="-g"
12122                 CFLAGS="-O"
12123                 PROFILE="-g -p" ;;
12124         esac
12125 else
12126
12127         { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC version" >&5
12128 $as_echo_n "checking GCC version... " >&6; }
12129         GCC_VERSION=`$CC -dumpversion`
12130         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_VERSION" >&5
12131 $as_echo "$GCC_VERSION" >&6; }
12132         case $host in
12133         *86-*-linux*)
12134                 DEBUG="-g -Wall -Wextra -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char"
12135                 CFLAGS="-O20 -ffast-math -mno-ieee-fp -D_REENTRANT -fsigned-char"
12136 #               PROFILE="-Wall -Wextra -pg -g -O20 -ffast-math -D_REENTRANT -fsigned-char -fno-inline -static"
12137                 PROFILE="-Wall -Wextra -pg -g -O20 -ffast-math -mno-ieee-fp -D_REENTRANT -fsigned-char -fno-inline"
12138
12139                 # glibc < 2.1.3 has a serious FP bug in the math inline header
12140                 # that will cripple Vorbis.  Look to see if the magic FP stack
12141                 # clobber is missing in the mathinline header, thus indicating
12142                 # the buggy version
12143
12144                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12145 /* end confdefs.h.  */
12146
12147                                 #define __LIBC_INTERNAL_MATH_INLINES 1
12148                                 #define __OPTIMIZE__
12149                                 #include <math.h>
12150
12151 _ACEOF
12152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12153   $EGREP "log10.*fldlg2.*fxch" >/dev/null 2>&1; then :
12154   bad=maybe
12155 else
12156   bad=no
12157 fi
12158 rm -f conftest*
12159
12160                 if test ${bad} = "maybe" ;then
12161                       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12162 /* end confdefs.h.  */
12163
12164                                         #define __LIBC_INTERNAL_MATH_INLINES 1
12165                                         #define __OPTIMIZE__
12166                                         #include <math.h>
12167
12168 _ACEOF
12169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12170   $EGREP "log10.*fldlg2.*fxch.*st\([0123456789]*\)" >/dev/null 2>&1; then :
12171   bad=no
12172 else
12173   bad=yes
12174 fi
12175 rm -f conftest*
12176
12177                 fi
12178                 if test ${bad} = "yes" ;then
12179  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:                                                         " >&5
12180 $as_echo "$as_me: WARNING:                                                         " >&2;}
12181  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ********************************************************" >&5
12182 $as_echo "$as_me: WARNING: ********************************************************" >&2;}
12183  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * The glibc headers on this machine have a serious bug *" >&5
12184 $as_echo "$as_me: WARNING: * The glibc headers on this machine have a serious bug *" >&2;}
12185  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * in /usr/include/bits/mathinline.h  This bug affects  *" >&5
12186 $as_echo "$as_me: WARNING: * in /usr/include/bits/mathinline.h  This bug affects  *" >&2;}
12187  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * all floating point code, not just Ogg, built on this *" >&5
12188 $as_echo "$as_me: WARNING: * all floating point code, not just Ogg, built on this *" >&2;}
12189  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * machine.  Upgrading to glibc 2.1.3 is strongly urged *" >&5
12190 $as_echo "$as_me: WARNING: * machine.  Upgrading to glibc 2.1.3 is strongly urged *" >&2;}
12191  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * to correct the problem.  Note that upgrading glibc   *" >&5
12192 $as_echo "$as_me: WARNING: * to correct the problem.  Note that upgrading glibc   *" >&2;}
12193  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * will not fix any previously built programs; this is  *" >&5
12194 $as_echo "$as_me: WARNING: * will not fix any previously built programs; this is  *" >&2;}
12195  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * a compile-time bug.                                  *" >&5
12196 $as_echo "$as_me: WARNING: * a compile-time bug.                                  *" >&2;}
12197  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * To work around the problem for this build of Ogg,    *" >&5
12198 $as_echo "$as_me: WARNING: * To work around the problem for this build of Ogg,    *" >&2;}
12199  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * autoconf is disabling all math inlining.  This will  *" >&5
12200 $as_echo "$as_me: WARNING: * autoconf is disabling all math inlining.  This will  *" >&2;}
12201  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * hurt Ogg performace but is necessary for an Ogg that *" >&5
12202 $as_echo "$as_me: WARNING: * hurt Ogg performace but is necessary for an Ogg that *" >&2;}
12203  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * will actually work.  Once glibc is upgraded, rerun   *" >&5
12204 $as_echo "$as_me: WARNING: * will actually work.  Once glibc is upgraded, rerun   *" >&2;}
12205  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * configure and make to build with inlining.           *" >&5
12206 $as_echo "$as_me: WARNING: * configure and make to build with inlining.           *" >&2;}
12207  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ********************************************************" >&5
12208 $as_echo "$as_me: WARNING: ********************************************************" >&2;}
12209  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:                                                         " >&5
12210 $as_echo "$as_me: WARNING:                                                         " >&2;}
12211
12212                 CFLAGS=${OPT}" -D__NO_MATH_INLINES"
12213                 PROFILE=${PROFILE}" -D__NO_MATH_INLINES"
12214                 fi;;
12215         powerpc-*-linux*spe)
12216                 DEBUG="-g -Wall -Wextra -D_REENTRANT -D__NO_MATH_INLINES"
12217                 CFLAGS="-O3 -Wall -Wextra -ffast-math -mfused-madd -D_REENTRANT"
12218                 PROFILE="-pg -g -O3 -ffast-math -mfused-madd -D_REENTRANT";;
12219         powerpc-*-linux*)
12220                 DEBUG="-g -Wall -Wextra -D_REENTRANT -D__NO_MATH_INLINES"
12221                 CFLAGS="-O3 -Wall -Wextra -ffast-math -mfused-madd -mcpu=750 -D_REENTRANT"
12222                 PROFILE="-pg -g -O3 -ffast-math -mfused-madd -mcpu=750 -D_REENTRANT";;
12223         *-*-linux*)
12224                 DEBUG="-g -Wall -Wextra -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char"
12225                 CFLAGS="-O20 -Wall -Wextra -ffast-math -D_REENTRANT -fsigned-char"
12226                 PROFILE="-pg -g -O20 -ffast-math -D_REENTRANT -fsigned-char";;
12227         sparc-sun-*)
12228                 sparc_cpu=""
12229                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -mv8" >&5
12230 $as_echo_n "checking if gcc supports -mv8... " >&6; }
12231                 old_cflags="$CFLAGS"
12232                 CFLAGS="$CFLAGS -mv8"
12233                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12234 /* end confdefs.h.  */
12235
12236 int
12237 main ()
12238 {
12239 return 0;
12240   ;
12241   return 0;
12242 }
12243 _ACEOF
12244 if ac_fn_c_try_compile "$LINENO"; then :
12245
12246                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12247 $as_echo "yes" >&6; }
12248                         sparc_cpu="-mv8"
12249
12250 fi
12251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12252                 CFLAGS="$old_cflags"
12253                 DEBUG="-g -Wall -Wextra -D__NO_MATH_INLINES -fsigned-char $sparc_cpu"
12254                 CFLAGS="-O20 -Wall -Wextra -ffast-math -D__NO_MATH_INLINES -fsigned-char $sparc_cpu"
12255                 PROFILE="-pg -g -O20 -D__NO_MATH_INLINES -fsigned-char $sparc_cpu" ;;
12256         *-*-darwin*)
12257                 DEBUG="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -O0 -fsigned-char"
12258                 CFLAGS="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -O4 -ffast-math -fsigned-char"
12259                 PROFILE="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -pg -O4 -ffast-math -fsigned-char";;
12260         *-*-os2*)
12261                 # Use -W instead of -Wextra because gcc on OS/2 is an old version.
12262                 DEBUG="-g -Wall -W -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char"
12263                 CFLAGS="-O20 -Wall -W -ffast-math -D_REENTRANT -fsigned-char"
12264                 PROFILE="-pg -g -O20 -ffast-math -D_REENTRANT -fsigned-char";;
12265         *)
12266                 DEBUG="-g -Wall -Wextra -D__NO_MATH_INLINES -fsigned-char"
12267                 CFLAGS="-O20 -Wall -Wextra -D__NO_MATH_INLINES -fsigned-char"
12268                 PROFILE="-O20 -g -pg -D__NO_MATH_INLINES -fsigned-char" ;;
12269         esac
12270
12271         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wdeclaration-after-statement" >&5
12272 $as_echo_n "checking if $CC accepts -Wdeclaration-after-statement... " >&6; }
12273         ac_add_cflags__old_cflags="$CFLAGS"
12274         CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12275         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12276 /* end confdefs.h.  */
12277 #include <stdio.h>
12278 int
12279 main ()
12280 {
12281 puts("Hello, World!"); return 0;
12282   ;
12283   return 0;
12284 }
12285 _ACEOF
12286 if ac_fn_c_try_link "$LINENO"; then :
12287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12288 $as_echo "yes" >&6; }
12289 else
12290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12291 $as_echo "no" >&6; }
12292                 CFLAGS="$ac_add_cflags__old_cflags"
12293 fi
12294 rm -f core conftest.err conftest.$ac_objext \
12295     conftest$ac_exeext conftest.$ac_ext
12296
12297 fi
12298 CFLAGS="$CFLAGS $cflags_save"
12299
12300
12301 ac_fn_c_check_header_mongrel "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
12302 if test "x$ac_cv_header_memory_h" = xyes; then :
12303   CFLAGS="$CFLAGS -DUSE_MEMORY_H"
12304 else
12305   :
12306 fi
12307
12308
12309
12310
12311
12312
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
12314 $as_echo_n "checking for cos in -lm... " >&6; }
12315 if ${ac_cv_lib_m_cos+:} false; then :
12316   $as_echo_n "(cached) " >&6
12317 else
12318   ac_check_lib_save_LIBS=$LIBS
12319 LIBS="-lm  $LIBS"
12320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12321 /* end confdefs.h.  */
12322
12323 /* Override any GCC internal prototype to avoid an error.
12324    Use char because int might match the return type of a GCC
12325    builtin and then its argument prototype would still apply.  */
12326 #ifdef __cplusplus
12327 extern "C"
12328 #endif
12329 char cos ();
12330 int
12331 main ()
12332 {
12333 return cos ();
12334   ;
12335   return 0;
12336 }
12337 _ACEOF
12338 if ac_fn_c_try_link "$LINENO"; then :
12339   ac_cv_lib_m_cos=yes
12340 else
12341   ac_cv_lib_m_cos=no
12342 fi
12343 rm -f core conftest.err conftest.$ac_objext \
12344     conftest$ac_exeext conftest.$ac_ext
12345 LIBS=$ac_check_lib_save_LIBS
12346 fi
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
12348 $as_echo "$ac_cv_lib_m_cos" >&6; }
12349 if test "x$ac_cv_lib_m_cos" = xyes; then :
12350   VORBIS_LIBS="-lm"
12351 else
12352   VORBIS_LIBS=""
12353 fi
12354
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
12356 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
12357 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
12358   $as_echo_n "(cached) " >&6
12359 else
12360   ac_check_lib_save_LIBS=$LIBS
12361 LIBS="-lpthread  $LIBS"
12362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12363 /* end confdefs.h.  */
12364
12365 /* Override any GCC internal prototype to avoid an error.
12366    Use char because int might match the return type of a GCC
12367    builtin and then its argument prototype would still apply.  */
12368 #ifdef __cplusplus
12369 extern "C"
12370 #endif
12371 char pthread_create ();
12372 int
12373 main ()
12374 {
12375 return pthread_create ();
12376   ;
12377   return 0;
12378 }
12379 _ACEOF
12380 if ac_fn_c_try_link "$LINENO"; then :
12381   ac_cv_lib_pthread_pthread_create=yes
12382 else
12383   ac_cv_lib_pthread_pthread_create=no
12384 fi
12385 rm -f core conftest.err conftest.$ac_objext \
12386     conftest$ac_exeext conftest.$ac_ext
12387 LIBS=$ac_check_lib_save_LIBS
12388 fi
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
12390 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
12391 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
12392   pthread_lib="-lpthread"
12393 else
12394   :
12395 fi
12396
12397
12398
12399
12400 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12401         if test -n "$ac_tool_prefix"; then
12402   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12403 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12405 $as_echo_n "checking for $ac_word... " >&6; }
12406 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12407   $as_echo_n "(cached) " >&6
12408 else
12409   case $PKG_CONFIG in
12410   [\\/]* | ?:[\\/]*)
12411   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12412   ;;
12413   *)
12414   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12415 for as_dir in $PATH
12416 do
12417   IFS=$as_save_IFS
12418   test -z "$as_dir" && as_dir=.
12419     for ac_exec_ext in '' $ac_executable_extensions; do
12420   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12421     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12422     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12423     break 2
12424   fi
12425 done
12426   done
12427 IFS=$as_save_IFS
12428
12429   ;;
12430 esac
12431 fi
12432 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12433 if test -n "$PKG_CONFIG"; then
12434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12435 $as_echo "$PKG_CONFIG" >&6; }
12436 else
12437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12438 $as_echo "no" >&6; }
12439 fi
12440
12441
12442 fi
12443 if test -z "$ac_cv_path_PKG_CONFIG"; then
12444   ac_pt_PKG_CONFIG=$PKG_CONFIG
12445   # Extract the first word of "pkg-config", so it can be a program name with args.
12446 set dummy pkg-config; ac_word=$2
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12448 $as_echo_n "checking for $ac_word... " >&6; }
12449 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12450   $as_echo_n "(cached) " >&6
12451 else
12452   case $ac_pt_PKG_CONFIG in
12453   [\\/]* | ?:[\\/]*)
12454   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12455   ;;
12456   *)
12457   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12458 for as_dir in $PATH
12459 do
12460   IFS=$as_save_IFS
12461   test -z "$as_dir" && as_dir=.
12462     for ac_exec_ext in '' $ac_executable_extensions; do
12463   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12464     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12465     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12466     break 2
12467   fi
12468 done
12469   done
12470 IFS=$as_save_IFS
12471
12472   ;;
12473 esac
12474 fi
12475 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12476 if test -n "$ac_pt_PKG_CONFIG"; then
12477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12478 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12479 else
12480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12481 $as_echo "no" >&6; }
12482 fi
12483
12484   if test "x$ac_pt_PKG_CONFIG" = x; then
12485     PKG_CONFIG=""
12486   else
12487     case $cross_compiling:$ac_tool_warned in
12488 yes:)
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12490 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12491 ac_tool_warned=yes ;;
12492 esac
12493     PKG_CONFIG=$ac_pt_PKG_CONFIG
12494   fi
12495 else
12496   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12497 fi
12498
12499 fi
12500 if test -n "$PKG_CONFIG"; then
12501         _pkg_min_version=0.9.0
12502         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12503 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12504         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12505                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12506 $as_echo "yes" >&6; }
12507         else
12508                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12509 $as_echo "no" >&6; }
12510                 PKG_CONFIG=""
12511         fi
12512
12513 fi
12514
12515 HAVE_OGG=no
12516 if test "x$PKG_CONFIG" != "x"
12517 then
12518
12519 pkg_failed=no
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OGG" >&5
12521 $as_echo_n "checking for OGG... " >&6; }
12522
12523 if test -n "$PKG_CONFIG"; then
12524     if test -n "$OGG_CFLAGS"; then
12525         pkg_cv_OGG_CFLAGS="$OGG_CFLAGS"
12526     else
12527         if test -n "$PKG_CONFIG" && \
12528     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ogg >= 1.0\""; } >&5
12529   ($PKG_CONFIG --exists --print-errors "ogg >= 1.0") 2>&5
12530   ac_status=$?
12531   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12532   test $ac_status = 0; }; then
12533   pkg_cv_OGG_CFLAGS=`$PKG_CONFIG --cflags "ogg >= 1.0" 2>/dev/null`
12534 else
12535   pkg_failed=yes
12536 fi
12537     fi
12538 else
12539         pkg_failed=untried
12540 fi
12541 if test -n "$PKG_CONFIG"; then
12542     if test -n "$OGG_LIBS"; then
12543         pkg_cv_OGG_LIBS="$OGG_LIBS"
12544     else
12545         if test -n "$PKG_CONFIG" && \
12546     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ogg >= 1.0\""; } >&5
12547   ($PKG_CONFIG --exists --print-errors "ogg >= 1.0") 2>&5
12548   ac_status=$?
12549   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12550   test $ac_status = 0; }; then
12551   pkg_cv_OGG_LIBS=`$PKG_CONFIG --libs "ogg >= 1.0" 2>/dev/null`
12552 else
12553   pkg_failed=yes
12554 fi
12555     fi
12556 else
12557         pkg_failed=untried
12558 fi
12559
12560
12561
12562 if test $pkg_failed = yes; then
12563
12564 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12565         _pkg_short_errors_supported=yes
12566 else
12567         _pkg_short_errors_supported=no
12568 fi
12569         if test $_pkg_short_errors_supported = yes; then
12570                 OGG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "ogg >= 1.0"`
12571         else
12572                 OGG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "ogg >= 1.0"`
12573         fi
12574         # Put the nasty error message in config.log where it belongs
12575         echo "$OGG_PKG_ERRORS" >&5
12576
12577         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12578 $as_echo "no" >&6; }
12579                 HAVE_OGG=no
12580 elif test $pkg_failed = untried; then
12581         HAVE_OGG=no
12582 else
12583         OGG_CFLAGS=$pkg_cv_OGG_CFLAGS
12584         OGG_LIBS=$pkg_cv_OGG_LIBS
12585         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12586 $as_echo "yes" >&6; }
12587         HAVE_OGG=yes
12588 fi
12589 fi
12590 if test "x$HAVE_OGG" = "xno"
12591 then
12592
12593 # Check whether --with-ogg was given.
12594 if test "${with_ogg+set}" = set; then :
12595   withval=$with_ogg; ogg_prefix="$withval"
12596 else
12597   ogg_prefix=""
12598 fi
12599
12600
12601 # Check whether --with-ogg-libraries was given.
12602 if test "${with_ogg_libraries+set}" = set; then :
12603   withval=$with_ogg_libraries; ogg_libraries="$withval"
12604 else
12605   ogg_libraries=""
12606 fi
12607
12608
12609 # Check whether --with-ogg-includes was given.
12610 if test "${with_ogg_includes+set}" = set; then :
12611   withval=$with_ogg_includes; ogg_includes="$withval"
12612 else
12613   ogg_includes=""
12614 fi
12615
12616 # Check whether --enable-oggtest was given.
12617 if test "${enable_oggtest+set}" = set; then :
12618   enableval=$enable_oggtest;
12619 else
12620   enable_oggtest=yes
12621 fi
12622
12623
12624   if test "x$ogg_libraries" != "x" ; then
12625     OGG_LIBS="-L$ogg_libraries"
12626   elif test "x$ogg_prefix" = "xno" || test "x$ogg_prefix" = "xyes" ; then
12627     OGG_LIBS=""
12628   elif test "x$ogg_prefix" != "x" ; then
12629     OGG_LIBS="-L$ogg_prefix/lib"
12630   elif test "x$prefix" != "xNONE" ; then
12631     OGG_LIBS="-L$prefix/lib"
12632   fi
12633
12634   if test "x$ogg_prefix" != "xno" ; then
12635     OGG_LIBS="$OGG_LIBS -logg"
12636   fi
12637
12638   if test "x$ogg_includes" != "x" ; then
12639     OGG_CFLAGS="-I$ogg_includes"
12640   elif test "x$ogg_prefix" = "xno" || test "x$ogg_prefix" = "xyes" ; then
12641     OGG_CFLAGS=""
12642   elif test "x$ogg_prefix" != "x" ; then
12643     OGG_CFLAGS="-I$ogg_prefix/include"
12644   elif test "x$prefix" != "xNONE"; then
12645     OGG_CFLAGS="-I$prefix/include"
12646   fi
12647
12648   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ogg" >&5
12649 $as_echo_n "checking for Ogg... " >&6; }
12650   if test "x$ogg_prefix" = "xno" ; then
12651     no_ogg="disabled"
12652     enable_oggtest="no"
12653   else
12654     no_ogg=""
12655   fi
12656
12657
12658   if test "x$enable_oggtest" = "xyes" ; then
12659     ac_save_CFLAGS="$CFLAGS"
12660     ac_save_LIBS="$LIBS"
12661     CFLAGS="$CFLAGS $OGG_CFLAGS"
12662     LIBS="$LIBS $OGG_LIBS"
12663       rm -f conf.oggtest
12664       if test "$cross_compiling" = yes; then :
12665   echo $ac_n "cross compiling; assumed OK... $ac_c"
12666 else
12667   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12668 /* end confdefs.h.  */
12669
12670 #include <stdio.h>
12671 #include <stdlib.h>
12672 #include <string.h>
12673 #include <ogg/ogg.h>
12674
12675 int main ()
12676 {
12677   system("touch conf.oggtest");
12678   return 0;
12679 }
12680
12681
12682 _ACEOF
12683 if ac_fn_c_try_run "$LINENO"; then :
12684
12685 else
12686   no_ogg=yes
12687 fi
12688 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12689   conftest.$ac_objext conftest.beam conftest.$ac_ext
12690 fi
12691
12692        CFLAGS="$ac_save_CFLAGS"
12693        LIBS="$ac_save_LIBS"
12694   fi
12695
12696   if test "x$no_ogg" = "xdisabled" ; then
12697      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12698 $as_echo "no" >&6; }
12699      as_fn_error $? "must have Ogg installed!" "$LINENO" 5
12700   elif test "x$no_ogg" = "x" ; then
12701      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12702 $as_echo "yes" >&6; }
12703      :
12704   else
12705      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12706 $as_echo "no" >&6; }
12707      if test -f conf.oggtest ; then
12708        :
12709      else
12710        echo "*** Could not run Ogg test program, checking why..."
12711        CFLAGS="$CFLAGS $OGG_CFLAGS"
12712        LIBS="$LIBS $OGG_LIBS"
12713        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12714 /* end confdefs.h.  */
12715
12716 #include <stdio.h>
12717 #include <ogg/ogg.h>
12718
12719 int
12720 main ()
12721 {
12722  return 0;
12723   ;
12724   return 0;
12725 }
12726 _ACEOF
12727 if ac_fn_c_try_link "$LINENO"; then :
12728    echo "*** The test program compiled, but did not run. This usually means"
12729        echo "*** that the run-time linker is not finding Ogg or finding the wrong"
12730        echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your"
12731        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12732        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
12733        echo "*** is required on your system"
12734        echo "***"
12735        echo "*** If you have an old version installed, it is best to remove it, although"
12736        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12737 else
12738    echo "*** The test program failed to compile or link. See the file config.log for the"
12739        echo "*** exact error that occured. This usually means Ogg was incorrectly installed"
12740        echo "*** or that you have moved Ogg since it was installed."
12741 fi
12742 rm -f core conftest.err conftest.$ac_objext \
12743     conftest$ac_exeext conftest.$ac_ext
12744        CFLAGS="$ac_save_CFLAGS"
12745        LIBS="$ac_save_LIBS"
12746      fi
12747      OGG_CFLAGS=""
12748      OGG_LIBS=""
12749      as_fn_error $? "must have Ogg installed!" "$LINENO" 5
12750   fi
12751
12752
12753   rm -f conf.oggtest
12754
12755   libs_save=$LIBS
12756   LIBS="$OGG_LIBS $VORBIS_LIBS"
12757   ac_fn_c_check_func "$LINENO" "oggpack_writealign" "ac_cv_func_oggpack_writealign"
12758 if test "x$ac_cv_func_oggpack_writealign" = xyes; then :
12759
12760 else
12761   as_fn_error $? "Ogg >= 1.0 required !" "$LINENO" 5
12762 fi
12763
12764   LIBS=$libs_save
12765 fi
12766
12767
12768 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12769 if test "x$ac_cv_type_size_t" = xyes; then :
12770
12771 else
12772
12773 cat >>confdefs.h <<_ACEOF
12774 #define size_t unsigned int
12775 _ACEOF
12776
12777 fi
12778
12779 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12780 # for constant arguments.  Useless!
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12782 $as_echo_n "checking for working alloca.h... " >&6; }
12783 if ${ac_cv_working_alloca_h+:} false; then :
12784   $as_echo_n "(cached) " >&6
12785 else
12786   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12787 /* end confdefs.h.  */
12788 #include <alloca.h>
12789 int
12790 main ()
12791 {
12792 char *p = (char *) alloca (2 * sizeof (int));
12793                           if (p) return 0;
12794   ;
12795   return 0;
12796 }
12797 _ACEOF
12798 if ac_fn_c_try_link "$LINENO"; then :
12799   ac_cv_working_alloca_h=yes
12800 else
12801   ac_cv_working_alloca_h=no
12802 fi
12803 rm -f core conftest.err conftest.$ac_objext \
12804     conftest$ac_exeext conftest.$ac_ext
12805 fi
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12807 $as_echo "$ac_cv_working_alloca_h" >&6; }
12808 if test $ac_cv_working_alloca_h = yes; then
12809
12810 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12811
12812 fi
12813
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12815 $as_echo_n "checking for alloca... " >&6; }
12816 if ${ac_cv_func_alloca_works+:} false; then :
12817   $as_echo_n "(cached) " >&6
12818 else
12819   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12820 /* end confdefs.h.  */
12821 #ifdef __GNUC__
12822 # define alloca __builtin_alloca
12823 #else
12824 # ifdef _MSC_VER
12825 #  include <malloc.h>
12826 #  define alloca _alloca
12827 # else
12828 #  ifdef HAVE_ALLOCA_H
12829 #   include <alloca.h>
12830 #  else
12831 #   ifdef _AIX
12832  #pragma alloca
12833 #   else
12834 #    ifndef alloca /* predefined by HP cc +Olibcalls */
12835 void *alloca (size_t);
12836 #    endif
12837 #   endif
12838 #  endif
12839 # endif
12840 #endif
12841
12842 int
12843 main ()
12844 {
12845 char *p = (char *) alloca (1);
12846                                     if (p) return 0;
12847   ;
12848   return 0;
12849 }
12850 _ACEOF
12851 if ac_fn_c_try_link "$LINENO"; then :
12852   ac_cv_func_alloca_works=yes
12853 else
12854   ac_cv_func_alloca_works=no
12855 fi
12856 rm -f core conftest.err conftest.$ac_objext \
12857     conftest$ac_exeext conftest.$ac_ext
12858 fi
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12860 $as_echo "$ac_cv_func_alloca_works" >&6; }
12861
12862 if test $ac_cv_func_alloca_works = yes; then
12863
12864 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12865
12866 else
12867   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12868 # that cause trouble.  Some versions do not even contain alloca or
12869 # contain a buggy version.  If you still want to use their alloca,
12870 # use ar to extract alloca.o from them instead of compiling alloca.c.
12871
12872 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12873
12874 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12875
12876
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12878 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12879 if ${ac_cv_os_cray+:} false; then :
12880   $as_echo_n "(cached) " >&6
12881 else
12882   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12883 /* end confdefs.h.  */
12884 #if defined CRAY && ! defined CRAY2
12885 webecray
12886 #else
12887 wenotbecray
12888 #endif
12889
12890 _ACEOF
12891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12892   $EGREP "webecray" >/dev/null 2>&1; then :
12893   ac_cv_os_cray=yes
12894 else
12895   ac_cv_os_cray=no
12896 fi
12897 rm -f conftest*
12898
12899 fi
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12901 $as_echo "$ac_cv_os_cray" >&6; }
12902 if test $ac_cv_os_cray = yes; then
12903   for ac_func in _getb67 GETB67 getb67; do
12904     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12905 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12906 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12907
12908 cat >>confdefs.h <<_ACEOF
12909 #define CRAY_STACKSEG_END $ac_func
12910 _ACEOF
12911
12912     break
12913 fi
12914
12915   done
12916 fi
12917
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12919 $as_echo_n "checking stack direction for C alloca... " >&6; }
12920 if ${ac_cv_c_stack_direction+:} false; then :
12921   $as_echo_n "(cached) " >&6
12922 else
12923   if test "$cross_compiling" = yes; then :
12924   ac_cv_c_stack_direction=0
12925 else
12926   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12927 /* end confdefs.h.  */
12928 $ac_includes_default
12929 int
12930 find_stack_direction ()
12931 {
12932   static char *addr = 0;
12933   auto char dummy;
12934   if (addr == 0)
12935     {
12936       addr = &dummy;
12937       return find_stack_direction ();
12938     }
12939   else
12940     return (&dummy > addr) ? 1 : -1;
12941 }
12942
12943 int
12944 main ()
12945 {
12946   return find_stack_direction () < 0;
12947 }
12948 _ACEOF
12949 if ac_fn_c_try_run "$LINENO"; then :
12950   ac_cv_c_stack_direction=1
12951 else
12952   ac_cv_c_stack_direction=-1
12953 fi
12954 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12955   conftest.$ac_objext conftest.beam conftest.$ac_ext
12956 fi
12957
12958 fi
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12960 $as_echo "$ac_cv_c_stack_direction" >&6; }
12961 cat >>confdefs.h <<_ACEOF
12962 #define STACK_DIRECTION $ac_cv_c_stack_direction
12963 _ACEOF
12964
12965
12966 fi
12967
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
12969 $as_echo_n "checking for working memcmp... " >&6; }
12970 if ${ac_cv_func_memcmp_working+:} false; then :
12971   $as_echo_n "(cached) " >&6
12972 else
12973   if test "$cross_compiling" = yes; then :
12974   ac_cv_func_memcmp_working=no
12975 else
12976   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12977 /* end confdefs.h.  */
12978 $ac_includes_default
12979 int
12980 main ()
12981 {
12982
12983   /* Some versions of memcmp are not 8-bit clean.  */
12984   char c0 = '\100', c1 = '\200', c2 = '\201';
12985   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
12986     return 1;
12987
12988   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
12989      or more and with at least one buffer not starting on a 4-byte boundary.
12990      William Lewis provided this test program.   */
12991   {
12992     char foo[21];
12993     char bar[21];
12994     int i;
12995     for (i = 0; i < 4; i++)
12996       {
12997         char *a = foo + i;
12998         char *b = bar + i;
12999         strcpy (a, "--------01111111");
13000         strcpy (b, "--------10000000");
13001         if (memcmp (a, b, 16) >= 0)
13002           return 1;
13003       }
13004     return 0;
13005   }
13006
13007   ;
13008   return 0;
13009 }
13010 _ACEOF
13011 if ac_fn_c_try_run "$LINENO"; then :
13012   ac_cv_func_memcmp_working=yes
13013 else
13014   ac_cv_func_memcmp_working=no
13015 fi
13016 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13017   conftest.$ac_objext conftest.beam conftest.$ac_ext
13018 fi
13019
13020 fi
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
13022 $as_echo "$ac_cv_func_memcmp_working" >&6; }
13023 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
13024   *" memcmp.$ac_objext "* ) ;;
13025   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
13026  ;;
13027 esac
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039 ac_config_files="$ac_config_files Makefile m4/Makefile lib/Makefile lib/modes/Makefile lib/books/Makefile lib/books/coupled/Makefile lib/books/uncoupled/Makefile lib/books/floor/Makefile doc/Makefile doc/vorbisfile/Makefile doc/vorbisenc/Makefile doc/libvorbis/Makefile doc/Doxyfile include/Makefile include/vorbis/Makefile examples/Makefile test/Makefile vq/Makefile libvorbis.spec vorbis.pc vorbisenc.pc vorbisfile.pc vorbis-uninstalled.pc vorbisenc-uninstalled.pc vorbisfile-uninstalled.pc"
13040
13041 ac_config_headers="$ac_config_headers config.h"
13042
13043
13044 cat >confcache <<\_ACEOF
13045 # This file is a shell script that caches the results of configure
13046 # tests run on this system so they can be shared between configure
13047 # scripts and configure runs, see configure's option --config-cache.
13048 # It is not useful on other systems.  If it contains results you don't
13049 # want to keep, you may remove or edit it.
13050 #
13051 # config.status only pays attention to the cache file if you give it
13052 # the --recheck option to rerun configure.
13053 #
13054 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13055 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13056 # following values.
13057
13058 _ACEOF
13059
13060 # The following way of writing the cache mishandles newlines in values,
13061 # but we know of no workaround that is simple, portable, and efficient.
13062 # So, we kill variables containing newlines.
13063 # Ultrix sh set writes to stderr and can't be redirected directly,
13064 # and sets the high bit in the cache file unless we assign to the vars.
13065 (
13066   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13067     eval ac_val=\$$ac_var
13068     case $ac_val in #(
13069     *${as_nl}*)
13070       case $ac_var in #(
13071       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13072 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13073       esac
13074       case $ac_var in #(
13075       _ | IFS | as_nl) ;; #(
13076       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13077       *) { eval $ac_var=; unset $ac_var;} ;;
13078       esac ;;
13079     esac
13080   done
13081
13082   (set) 2>&1 |
13083     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13084     *${as_nl}ac_space=\ *)
13085       # `set' does not quote correctly, so add quotes: double-quote
13086       # substitution turns \\\\ into \\, and sed turns \\ into \.
13087       sed -n \
13088         "s/'/'\\\\''/g;
13089           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13090       ;; #(
13091     *)
13092       # `set' quotes correctly as required by POSIX, so do not add quotes.
13093       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13094       ;;
13095     esac |
13096     sort
13097 ) |
13098   sed '
13099      /^ac_cv_env_/b end
13100      t clear
13101      :clear
13102      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13103      t end
13104      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13105      :end' >>confcache
13106 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13107   if test -w "$cache_file"; then
13108     if test "x$cache_file" != "x/dev/null"; then
13109       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13110 $as_echo "$as_me: updating cache $cache_file" >&6;}
13111       if test ! -f "$cache_file" || test -h "$cache_file"; then
13112         cat confcache >"$cache_file"
13113       else
13114         case $cache_file in #(
13115         */* | ?:*)
13116           mv -f confcache "$cache_file"$$ &&
13117           mv -f "$cache_file"$$ "$cache_file" ;; #(
13118         *)
13119           mv -f confcache "$cache_file" ;;
13120         esac
13121       fi
13122     fi
13123   else
13124     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13125 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13126   fi
13127 fi
13128 rm -f confcache
13129
13130 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13131 # Let make expand exec_prefix.
13132 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13133
13134 DEFS=-DHAVE_CONFIG_H
13135
13136 ac_libobjs=
13137 ac_ltlibobjs=
13138 U=
13139 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13140   # 1. Remove the extension, and $U if already installed.
13141   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13142   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13143   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13144   #    will be set to the directory where LIBOBJS objects are built.
13145   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13146   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13147 done
13148 LIBOBJS=$ac_libobjs
13149
13150 LTLIBOBJS=$ac_ltlibobjs
13151
13152
13153  if test -n "$EXEEXT"; then
13154   am__EXEEXT_TRUE=
13155   am__EXEEXT_FALSE='#'
13156 else
13157   am__EXEEXT_TRUE='#'
13158   am__EXEEXT_FALSE=
13159 fi
13160
13161 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13162   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13163 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13164 fi
13165 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13166   as_fn_error $? "conditional \"AMDEP\" was never defined.
13167 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13168 fi
13169 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13170   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13171 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13172 fi
13173 if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
13174   as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
13175 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13176 fi
13177 if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then
13178   as_fn_error $? "conditional \"BUILD_DOCS\" was never defined.
13179 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13180 fi
13181 if test -z "${BUILD_EXAMPLES_TRUE}" && test -z "${BUILD_EXAMPLES_FALSE}"; then
13182   as_fn_error $? "conditional \"BUILD_EXAMPLES\" was never defined.
13183 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13184 fi
13185
13186 : "${CONFIG_STATUS=./config.status}"
13187 ac_write_fail=0
13188 ac_clean_files_save=$ac_clean_files
13189 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13191 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13192 as_write_fail=0
13193 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13194 #! $SHELL
13195 # Generated by $as_me.
13196 # Run this file to recreate the current configuration.
13197 # Compiler output produced by configure, useful for debugging
13198 # configure, is in config.log if it exists.
13199
13200 debug=false
13201 ac_cs_recheck=false
13202 ac_cs_silent=false
13203
13204 SHELL=\${CONFIG_SHELL-$SHELL}
13205 export SHELL
13206 _ASEOF
13207 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13208 ## -------------------- ##
13209 ## M4sh Initialization. ##
13210 ## -------------------- ##
13211
13212 # Be more Bourne compatible
13213 DUALCASE=1; export DUALCASE # for MKS sh
13214 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13215   emulate sh
13216   NULLCMD=:
13217   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13218   # is contrary to our usage.  Disable this feature.
13219   alias -g '${1+"$@"}'='"$@"'
13220   setopt NO_GLOB_SUBST
13221 else
13222   case `(set -o) 2>/dev/null` in #(
13223   *posix*) :
13224     set -o posix ;; #(
13225   *) :
13226      ;;
13227 esac
13228 fi
13229
13230
13231 as_nl='
13232 '
13233 export as_nl
13234 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13235 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13236 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13237 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13238 # Prefer a ksh shell builtin over an external printf program on Solaris,
13239 # but without wasting forks for bash or zsh.
13240 if test -z "$BASH_VERSION$ZSH_VERSION" \
13241     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13242   as_echo='print -r --'
13243   as_echo_n='print -rn --'
13244 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13245   as_echo='printf %s\n'
13246   as_echo_n='printf %s'
13247 else
13248   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13249     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13250     as_echo_n='/usr/ucb/echo -n'
13251   else
13252     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13253     as_echo_n_body='eval
13254       arg=$1;
13255       case $arg in #(
13256       *"$as_nl"*)
13257         expr "X$arg" : "X\\(.*\\)$as_nl";
13258         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13259       esac;
13260       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13261     '
13262     export as_echo_n_body
13263     as_echo_n='sh -c $as_echo_n_body as_echo'
13264   fi
13265   export as_echo_body
13266   as_echo='sh -c $as_echo_body as_echo'
13267 fi
13268
13269 # The user is always right.
13270 if test "${PATH_SEPARATOR+set}" != set; then
13271   PATH_SEPARATOR=:
13272   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13273     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13274       PATH_SEPARATOR=';'
13275   }
13276 fi
13277
13278
13279 # IFS
13280 # We need space, tab and new line, in precisely that order.  Quoting is
13281 # there to prevent editors from complaining about space-tab.
13282 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13283 # splitting by setting IFS to empty value.)
13284 IFS=" ""        $as_nl"
13285
13286 # Find who we are.  Look in the path if we contain no directory separator.
13287 as_myself=
13288 case $0 in #((
13289   *[\\/]* ) as_myself=$0 ;;
13290   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13291 for as_dir in $PATH
13292 do
13293   IFS=$as_save_IFS
13294   test -z "$as_dir" && as_dir=.
13295     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13296   done
13297 IFS=$as_save_IFS
13298
13299      ;;
13300 esac
13301 # We did not find ourselves, most probably we were run as `sh COMMAND'
13302 # in which case we are not to be found in the path.
13303 if test "x$as_myself" = x; then
13304   as_myself=$0
13305 fi
13306 if test ! -f "$as_myself"; then
13307   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13308   exit 1
13309 fi
13310
13311 # Unset variables that we do not need and which cause bugs (e.g. in
13312 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13313 # suppresses any "Segmentation fault" message there.  '((' could
13314 # trigger a bug in pdksh 5.2.14.
13315 for as_var in BASH_ENV ENV MAIL MAILPATH
13316 do eval test x\${$as_var+set} = xset \
13317   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13318 done
13319 PS1='$ '
13320 PS2='> '
13321 PS4='+ '
13322
13323 # NLS nuisances.
13324 LC_ALL=C
13325 export LC_ALL
13326 LANGUAGE=C
13327 export LANGUAGE
13328
13329 # CDPATH.
13330 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13331
13332
13333 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13334 # ----------------------------------------
13335 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13336 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13337 # script with STATUS, using 1 if that was 0.
13338 as_fn_error ()
13339 {
13340   as_status=$1; test $as_status -eq 0 && as_status=1
13341   if test "$4"; then
13342     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13343     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13344   fi
13345   $as_echo "$as_me: error: $2" >&2
13346   as_fn_exit $as_status
13347 } # as_fn_error
13348
13349
13350 # as_fn_set_status STATUS
13351 # -----------------------
13352 # Set $? to STATUS, without forking.
13353 as_fn_set_status ()
13354 {
13355   return $1
13356 } # as_fn_set_status
13357
13358 # as_fn_exit STATUS
13359 # -----------------
13360 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13361 as_fn_exit ()
13362 {
13363   set +e
13364   as_fn_set_status $1
13365   exit $1
13366 } # as_fn_exit
13367
13368 # as_fn_unset VAR
13369 # ---------------
13370 # Portably unset VAR.
13371 as_fn_unset ()
13372 {
13373   { eval $1=; unset $1;}
13374 }
13375 as_unset=as_fn_unset
13376 # as_fn_append VAR VALUE
13377 # ----------------------
13378 # Append the text in VALUE to the end of the definition contained in VAR. Take
13379 # advantage of any shell optimizations that allow amortized linear growth over
13380 # repeated appends, instead of the typical quadratic growth present in naive
13381 # implementations.
13382 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13383   eval 'as_fn_append ()
13384   {
13385     eval $1+=\$2
13386   }'
13387 else
13388   as_fn_append ()
13389   {
13390     eval $1=\$$1\$2
13391   }
13392 fi # as_fn_append
13393
13394 # as_fn_arith ARG...
13395 # ------------------
13396 # Perform arithmetic evaluation on the ARGs, and store the result in the
13397 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13398 # must be portable across $(()) and expr.
13399 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13400   eval 'as_fn_arith ()
13401   {
13402     as_val=$(( $* ))
13403   }'
13404 else
13405   as_fn_arith ()
13406   {
13407     as_val=`expr "$@" || test $? -eq 1`
13408   }
13409 fi # as_fn_arith
13410
13411
13412 if expr a : '\(a\)' >/dev/null 2>&1 &&
13413    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13414   as_expr=expr
13415 else
13416   as_expr=false
13417 fi
13418
13419 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13420   as_basename=basename
13421 else
13422   as_basename=false
13423 fi
13424
13425 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13426   as_dirname=dirname
13427 else
13428   as_dirname=false
13429 fi
13430
13431 as_me=`$as_basename -- "$0" ||
13432 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13433          X"$0" : 'X\(//\)$' \| \
13434          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13435 $as_echo X/"$0" |
13436     sed '/^.*\/\([^/][^/]*\)\/*$/{
13437             s//\1/
13438             q
13439           }
13440           /^X\/\(\/\/\)$/{
13441             s//\1/
13442             q
13443           }
13444           /^X\/\(\/\).*/{
13445             s//\1/
13446             q
13447           }
13448           s/.*/./; q'`
13449
13450 # Avoid depending upon Character Ranges.
13451 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13452 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13453 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13454 as_cr_digits='0123456789'
13455 as_cr_alnum=$as_cr_Letters$as_cr_digits
13456
13457 ECHO_C= ECHO_N= ECHO_T=
13458 case `echo -n x` in #(((((
13459 -n*)
13460   case `echo 'xy\c'` in
13461   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13462   xy)  ECHO_C='\c';;
13463   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13464        ECHO_T=' ';;
13465   esac;;
13466 *)
13467   ECHO_N='-n';;
13468 esac
13469
13470 rm -f conf$$ conf$$.exe conf$$.file
13471 if test -d conf$$.dir; then
13472   rm -f conf$$.dir/conf$$.file
13473 else
13474   rm -f conf$$.dir
13475   mkdir conf$$.dir 2>/dev/null
13476 fi
13477 if (echo >conf$$.file) 2>/dev/null; then
13478   if ln -s conf$$.file conf$$ 2>/dev/null; then
13479     as_ln_s='ln -s'
13480     # ... but there are two gotchas:
13481     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13482     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13483     # In both cases, we have to default to `cp -p'.
13484     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13485       as_ln_s='cp -p'
13486   elif ln conf$$.file conf$$ 2>/dev/null; then
13487     as_ln_s=ln
13488   else
13489     as_ln_s='cp -p'
13490   fi
13491 else
13492   as_ln_s='cp -p'
13493 fi
13494 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13495 rmdir conf$$.dir 2>/dev/null
13496
13497
13498 # as_fn_mkdir_p
13499 # -------------
13500 # Create "$as_dir" as a directory, including parents if necessary.
13501 as_fn_mkdir_p ()
13502 {
13503
13504   case $as_dir in #(
13505   -*) as_dir=./$as_dir;;
13506   esac
13507   test -d "$as_dir" || eval $as_mkdir_p || {
13508     as_dirs=
13509     while :; do
13510       case $as_dir in #(
13511       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13512       *) as_qdir=$as_dir;;
13513       esac
13514       as_dirs="'$as_qdir' $as_dirs"
13515       as_dir=`$as_dirname -- "$as_dir" ||
13516 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13517          X"$as_dir" : 'X\(//\)[^/]' \| \
13518          X"$as_dir" : 'X\(//\)$' \| \
13519          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13520 $as_echo X"$as_dir" |
13521     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13522             s//\1/
13523             q
13524           }
13525           /^X\(\/\/\)[^/].*/{
13526             s//\1/
13527             q
13528           }
13529           /^X\(\/\/\)$/{
13530             s//\1/
13531             q
13532           }
13533           /^X\(\/\).*/{
13534             s//\1/
13535             q
13536           }
13537           s/.*/./; q'`
13538       test -d "$as_dir" && break
13539     done
13540     test -z "$as_dirs" || eval "mkdir $as_dirs"
13541   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13542
13543
13544 } # as_fn_mkdir_p
13545 if mkdir -p . 2>/dev/null; then
13546   as_mkdir_p='mkdir -p "$as_dir"'
13547 else
13548   test -d ./-p && rmdir ./-p
13549   as_mkdir_p=false
13550 fi
13551
13552 if test -x / >/dev/null 2>&1; then
13553   as_test_x='test -x'
13554 else
13555   if ls -dL / >/dev/null 2>&1; then
13556     as_ls_L_option=L
13557   else
13558     as_ls_L_option=
13559   fi
13560   as_test_x='
13561     eval sh -c '\''
13562       if test -d "$1"; then
13563         test -d "$1/.";
13564       else
13565         case $1 in #(
13566         -*)set "./$1";;
13567         esac;
13568         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13569         ???[sx]*):;;*)false;;esac;fi
13570     '\'' sh
13571   '
13572 fi
13573 as_executable_p=$as_test_x
13574
13575 # Sed expression to map a string onto a valid CPP name.
13576 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13577
13578 # Sed expression to map a string onto a valid variable name.
13579 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13580
13581
13582 exec 6>&1
13583 ## ----------------------------------- ##
13584 ## Main body of $CONFIG_STATUS script. ##
13585 ## ----------------------------------- ##
13586 _ASEOF
13587 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13588
13589 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13590 # Save the log message, to keep $0 and so on meaningful, and to
13591 # report actual input values of CONFIG_FILES etc. instead of their
13592 # values after options handling.
13593 ac_log="
13594 This file was extended by libvorbis $as_me 1.3.4, which was
13595 generated by GNU Autoconf 2.68.  Invocation command line was
13596
13597   CONFIG_FILES    = $CONFIG_FILES
13598   CONFIG_HEADERS  = $CONFIG_HEADERS
13599   CONFIG_LINKS    = $CONFIG_LINKS
13600   CONFIG_COMMANDS = $CONFIG_COMMANDS
13601   $ $0 $@
13602
13603 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13604 "
13605
13606 _ACEOF
13607
13608 case $ac_config_files in *"
13609 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13610 esac
13611
13612 case $ac_config_headers in *"
13613 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13614 esac
13615
13616
13617 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13618 # Files that config.status was made for.
13619 config_files="$ac_config_files"
13620 config_headers="$ac_config_headers"
13621 config_commands="$ac_config_commands"
13622
13623 _ACEOF
13624
13625 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13626 ac_cs_usage="\
13627 \`$as_me' instantiates files and other configuration actions
13628 from templates according to the current configuration.  Unless the files
13629 and actions are specified as TAGs, all are instantiated by default.
13630
13631 Usage: $0 [OPTION]... [TAG]...
13632
13633   -h, --help       print this help, then exit
13634   -V, --version    print version number and configuration settings, then exit
13635       --config     print configuration, then exit
13636   -q, --quiet, --silent
13637                    do not print progress messages
13638   -d, --debug      don't remove temporary files
13639       --recheck    update $as_me by reconfiguring in the same conditions
13640       --file=FILE[:TEMPLATE]
13641                    instantiate the configuration file FILE
13642       --header=FILE[:TEMPLATE]
13643                    instantiate the configuration header FILE
13644
13645 Configuration files:
13646 $config_files
13647
13648 Configuration headers:
13649 $config_headers
13650
13651 Configuration commands:
13652 $config_commands
13653
13654 Report bugs to <vorbis-dev@xiph.org>."
13655
13656 _ACEOF
13657 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13658 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13659 ac_cs_version="\\
13660 libvorbis config.status 1.3.4
13661 configured by $0, generated by GNU Autoconf 2.68,
13662   with options \\"\$ac_cs_config\\"
13663
13664 Copyright (C) 2010 Free Software Foundation, Inc.
13665 This config.status script is free software; the Free Software Foundation
13666 gives unlimited permission to copy, distribute and modify it."
13667
13668 ac_pwd='$ac_pwd'
13669 srcdir='$srcdir'
13670 INSTALL='$INSTALL'
13671 MKDIR_P='$MKDIR_P'
13672 AWK='$AWK'
13673 test -n "\$AWK" || AWK=awk
13674 _ACEOF
13675
13676 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13677 # The default lists apply if the user does not specify any file.
13678 ac_need_defaults=:
13679 while test $# != 0
13680 do
13681   case $1 in
13682   --*=?*)
13683     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13684     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13685     ac_shift=:
13686     ;;
13687   --*=)
13688     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13689     ac_optarg=
13690     ac_shift=:
13691     ;;
13692   *)
13693     ac_option=$1
13694     ac_optarg=$2
13695     ac_shift=shift
13696     ;;
13697   esac
13698
13699   case $ac_option in
13700   # Handling of the options.
13701   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13702     ac_cs_recheck=: ;;
13703   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13704     $as_echo "$ac_cs_version"; exit ;;
13705   --config | --confi | --conf | --con | --co | --c )
13706     $as_echo "$ac_cs_config"; exit ;;
13707   --debug | --debu | --deb | --de | --d | -d )
13708     debug=: ;;
13709   --file | --fil | --fi | --f )
13710     $ac_shift
13711     case $ac_optarg in
13712     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13713     '') as_fn_error $? "missing file argument" ;;
13714     esac
13715     as_fn_append CONFIG_FILES " '$ac_optarg'"
13716     ac_need_defaults=false;;
13717   --header | --heade | --head | --hea )
13718     $ac_shift
13719     case $ac_optarg in
13720     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13721     esac
13722     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13723     ac_need_defaults=false;;
13724   --he | --h)
13725     # Conflict between --help and --header
13726     as_fn_error $? "ambiguous option: \`$1'
13727 Try \`$0 --help' for more information.";;
13728   --help | --hel | -h )
13729     $as_echo "$ac_cs_usage"; exit ;;
13730   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13731   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13732     ac_cs_silent=: ;;
13733
13734   # This is an error.
13735   -*) as_fn_error $? "unrecognized option: \`$1'
13736 Try \`$0 --help' for more information." ;;
13737
13738   *) as_fn_append ac_config_targets " $1"
13739      ac_need_defaults=false ;;
13740
13741   esac
13742   shift
13743 done
13744
13745 ac_configure_extra_args=
13746
13747 if $ac_cs_silent; then
13748   exec 6>/dev/null
13749   ac_configure_extra_args="$ac_configure_extra_args --silent"
13750 fi
13751
13752 _ACEOF
13753 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13754 if \$ac_cs_recheck; then
13755   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13756   shift
13757   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13758   CONFIG_SHELL='$SHELL'
13759   export CONFIG_SHELL
13760   exec "\$@"
13761 fi
13762
13763 _ACEOF
13764 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13765 exec 5>>config.log
13766 {
13767   echo
13768   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13769 ## Running $as_me. ##
13770 _ASBOX
13771   $as_echo "$ac_log"
13772 } >&5
13773
13774 _ACEOF
13775 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13776 #
13777 # INIT-COMMANDS
13778 #
13779 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13780
13781
13782 # The HP-UX ksh and POSIX shell print the target directory to stdout
13783 # if CDPATH is set.
13784 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13785
13786 sed_quote_subst='$sed_quote_subst'
13787 double_quote_subst='$double_quote_subst'
13788 delay_variable_subst='$delay_variable_subst'
13789 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
13790 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13791 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13792 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13793 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13794 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13795 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13796 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13797 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13798 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13799 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13800 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13801 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13802 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13803 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13804 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13805 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13806 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13807 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13808 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13809 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13810 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13811 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13812 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13813 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13814 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13815 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13816 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13817 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13818 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13819 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13820 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13821 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13822 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13823 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13824 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13825 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13826 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13827 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13828 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13829 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13830 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13831 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13832 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13833 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13834 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13835 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13836 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13837 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13838 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13839 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13840 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13841 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13842 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13843 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13844 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13845 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13846 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"`'
13847 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13848 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13849 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13850 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13851 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13852 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13853 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13854 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13855 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13856 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13857 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13858 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13859 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13860 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13861 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13862 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13863 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13864 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13865 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13866 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13867 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13868 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13869 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13870 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13871 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13872 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13873 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13874 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13875 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13876 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13877 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13878 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13879 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13880 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13881 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13882 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13883 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13884 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13885 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13886 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13887 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13888 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13889 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13890 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13891 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13892 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13893 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13894 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13895 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13896 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13897 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13898 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13899 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13900 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13901 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13902 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13903 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13904 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13905 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13906 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13907 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13908 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13909 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13910 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13911 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13912 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13913 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13914 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13915 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13916 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13917 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13918 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13919 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13920
13921 LTCC='$LTCC'
13922 LTCFLAGS='$LTCFLAGS'
13923 compiler='$compiler_DEFAULT'
13924
13925 # A function that is used when there is no print builtin or printf.
13926 func_fallback_echo ()
13927 {
13928   eval 'cat <<_LTECHO_EOF
13929 \$1
13930 _LTECHO_EOF'
13931 }
13932
13933 # Quote evaled strings.
13934 for var in AS \
13935 DLLTOOL \
13936 OBJDUMP \
13937 SHELL \
13938 ECHO \
13939 PATH_SEPARATOR \
13940 SED \
13941 GREP \
13942 EGREP \
13943 FGREP \
13944 LD \
13945 NM \
13946 LN_S \
13947 lt_SP2NL \
13948 lt_NL2SP \
13949 reload_flag \
13950 deplibs_check_method \
13951 file_magic_cmd \
13952 file_magic_glob \
13953 want_nocaseglob \
13954 sharedlib_from_linklib_cmd \
13955 AR \
13956 AR_FLAGS \
13957 archiver_list_spec \
13958 STRIP \
13959 RANLIB \
13960 CC \
13961 CFLAGS \
13962 compiler \
13963 lt_cv_sys_global_symbol_pipe \
13964 lt_cv_sys_global_symbol_to_cdecl \
13965 lt_cv_sys_global_symbol_to_c_name_address \
13966 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13967 nm_file_list_spec \
13968 lt_prog_compiler_no_builtin_flag \
13969 lt_prog_compiler_pic \
13970 lt_prog_compiler_wl \
13971 lt_prog_compiler_static \
13972 lt_cv_prog_compiler_c_o \
13973 need_locks \
13974 MANIFEST_TOOL \
13975 DSYMUTIL \
13976 NMEDIT \
13977 LIPO \
13978 OTOOL \
13979 OTOOL64 \
13980 shrext_cmds \
13981 export_dynamic_flag_spec \
13982 whole_archive_flag_spec \
13983 compiler_needs_object \
13984 with_gnu_ld \
13985 allow_undefined_flag \
13986 no_undefined_flag \
13987 hardcode_libdir_flag_spec \
13988 hardcode_libdir_separator \
13989 exclude_expsyms \
13990 include_expsyms \
13991 file_list_spec \
13992 variables_saved_for_relink \
13993 libname_spec \
13994 library_names_spec \
13995 soname_spec \
13996 install_override_mode \
13997 finish_eval \
13998 old_striplib \
13999 striplib; do
14000     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14001     *[\\\\\\\`\\"\\\$]*)
14002       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14003       ;;
14004     *)
14005       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14006       ;;
14007     esac
14008 done
14009
14010 # Double-quote double-evaled strings.
14011 for var in reload_cmds \
14012 old_postinstall_cmds \
14013 old_postuninstall_cmds \
14014 old_archive_cmds \
14015 extract_expsyms_cmds \
14016 old_archive_from_new_cmds \
14017 old_archive_from_expsyms_cmds \
14018 archive_cmds \
14019 archive_expsym_cmds \
14020 module_cmds \
14021 module_expsym_cmds \
14022 export_symbols_cmds \
14023 prelink_cmds \
14024 postlink_cmds \
14025 postinstall_cmds \
14026 postuninstall_cmds \
14027 finish_cmds \
14028 sys_lib_search_path_spec \
14029 sys_lib_dlsearch_path_spec; do
14030     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14031     *[\\\\\\\`\\"\\\$]*)
14032       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14033       ;;
14034     *)
14035       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14036       ;;
14037     esac
14038 done
14039
14040 ac_aux_dir='$ac_aux_dir'
14041 xsi_shell='$xsi_shell'
14042 lt_shell_append='$lt_shell_append'
14043
14044 # See if we are running on zsh, and set the options which allow our
14045 # commands through without removal of \ escapes INIT.
14046 if test -n "\${ZSH_VERSION+set}" ; then
14047    setopt NO_GLOB_SUBST
14048 fi
14049
14050
14051     PACKAGE='$PACKAGE'
14052     VERSION='$VERSION'
14053     TIMESTAMP='$TIMESTAMP'
14054     RM='$RM'
14055     ofile='$ofile'
14056
14057
14058
14059
14060 _ACEOF
14061
14062 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14063
14064 # Handling of arguments.
14065 for ac_config_target in $ac_config_targets
14066 do
14067   case $ac_config_target in
14068     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14069     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14070     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14071     "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
14072     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
14073     "lib/modes/Makefile") CONFIG_FILES="$CONFIG_FILES lib/modes/Makefile" ;;
14074     "lib/books/Makefile") CONFIG_FILES="$CONFIG_FILES lib/books/Makefile" ;;
14075     "lib/books/coupled/Makefile") CONFIG_FILES="$CONFIG_FILES lib/books/coupled/Makefile" ;;
14076     "lib/books/uncoupled/Makefile") CONFIG_FILES="$CONFIG_FILES lib/books/uncoupled/Makefile" ;;
14077     "lib/books/floor/Makefile") CONFIG_FILES="$CONFIG_FILES lib/books/floor/Makefile" ;;
14078     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14079     "doc/vorbisfile/Makefile") CONFIG_FILES="$CONFIG_FILES doc/vorbisfile/Makefile" ;;
14080     "doc/vorbisenc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/vorbisenc/Makefile" ;;
14081     "doc/libvorbis/Makefile") CONFIG_FILES="$CONFIG_FILES doc/libvorbis/Makefile" ;;
14082     "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
14083     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
14084     "include/vorbis/Makefile") CONFIG_FILES="$CONFIG_FILES include/vorbis/Makefile" ;;
14085     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
14086     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
14087     "vq/Makefile") CONFIG_FILES="$CONFIG_FILES vq/Makefile" ;;
14088     "libvorbis.spec") CONFIG_FILES="$CONFIG_FILES libvorbis.spec" ;;
14089     "vorbis.pc") CONFIG_FILES="$CONFIG_FILES vorbis.pc" ;;
14090     "vorbisenc.pc") CONFIG_FILES="$CONFIG_FILES vorbisenc.pc" ;;
14091     "vorbisfile.pc") CONFIG_FILES="$CONFIG_FILES vorbisfile.pc" ;;
14092     "vorbis-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES vorbis-uninstalled.pc" ;;
14093     "vorbisenc-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES vorbisenc-uninstalled.pc" ;;
14094     "vorbisfile-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES vorbisfile-uninstalled.pc" ;;
14095     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14096
14097   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14098   esac
14099 done
14100
14101
14102 # If the user did not use the arguments to specify the items to instantiate,
14103 # then the envvar interface is used.  Set only those that are not.
14104 # We use the long form for the default assignment because of an extremely
14105 # bizarre bug on SunOS 4.1.3.
14106 if $ac_need_defaults; then
14107   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14108   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14109   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14110 fi
14111
14112 # Have a temporary directory for convenience.  Make it in the build tree
14113 # simply because there is no reason against having it here, and in addition,
14114 # creating and moving files from /tmp can sometimes cause problems.
14115 # Hook for its removal unless debugging.
14116 # Note that there is a small window in which the directory will not be cleaned:
14117 # after its creation but before its name has been assigned to `$tmp'.
14118 $debug ||
14119 {
14120   tmp= ac_tmp=
14121   trap 'exit_status=$?
14122   : "${ac_tmp:=$tmp}"
14123   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14124 ' 0
14125   trap 'as_fn_exit 1' 1 2 13 15
14126 }
14127 # Create a (secure) tmp directory for tmp files.
14128
14129 {
14130   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14131   test -d "$tmp"
14132 }  ||
14133 {
14134   tmp=./conf$$-$RANDOM
14135   (umask 077 && mkdir "$tmp")
14136 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14137 ac_tmp=$tmp
14138
14139 # Set up the scripts for CONFIG_FILES section.
14140 # No need to generate them if there are no CONFIG_FILES.
14141 # This happens for instance with `./config.status config.h'.
14142 if test -n "$CONFIG_FILES"; then
14143
14144
14145 ac_cr=`echo X | tr X '\015'`
14146 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14147 # But we know of no other shell where ac_cr would be empty at this
14148 # point, so we can use a bashism as a fallback.
14149 if test "x$ac_cr" = x; then
14150   eval ac_cr=\$\'\\r\'
14151 fi
14152 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14153 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14154   ac_cs_awk_cr='\\r'
14155 else
14156   ac_cs_awk_cr=$ac_cr
14157 fi
14158
14159 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14160 _ACEOF
14161
14162
14163 {
14164   echo "cat >conf$$subs.awk <<_ACEOF" &&
14165   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14166   echo "_ACEOF"
14167 } >conf$$subs.sh ||
14168   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14169 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14170 ac_delim='%!_!# '
14171 for ac_last_try in false false false false false :; do
14172   . ./conf$$subs.sh ||
14173     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14174
14175   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14176   if test $ac_delim_n = $ac_delim_num; then
14177     break
14178   elif $ac_last_try; then
14179     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14180   else
14181     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14182   fi
14183 done
14184 rm -f conf$$subs.sh
14185
14186 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14187 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14188 _ACEOF
14189 sed -n '
14190 h
14191 s/^/S["/; s/!.*/"]=/
14192 p
14193 g
14194 s/^[^!]*!//
14195 :repl
14196 t repl
14197 s/'"$ac_delim"'$//
14198 t delim
14199 :nl
14200 h
14201 s/\(.\{148\}\)..*/\1/
14202 t more1
14203 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14204 p
14205 n
14206 b repl
14207 :more1
14208 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14209 p
14210 g
14211 s/.\{148\}//
14212 t nl
14213 :delim
14214 h
14215 s/\(.\{148\}\)..*/\1/
14216 t more2
14217 s/["\\]/\\&/g; s/^/"/; s/$/"/
14218 p
14219 b
14220 :more2
14221 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14222 p
14223 g
14224 s/.\{148\}//
14225 t delim
14226 ' <conf$$subs.awk | sed '
14227 /^[^""]/{
14228   N
14229   s/\n//
14230 }
14231 ' >>$CONFIG_STATUS || ac_write_fail=1
14232 rm -f conf$$subs.awk
14233 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14234 _ACAWK
14235 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14236   for (key in S) S_is_set[key] = 1
14237   FS = "\a"
14238
14239 }
14240 {
14241   line = $ 0
14242   nfields = split(line, field, "@")
14243   substed = 0
14244   len = length(field[1])
14245   for (i = 2; i < nfields; i++) {
14246     key = field[i]
14247     keylen = length(key)
14248     if (S_is_set[key]) {
14249       value = S[key]
14250       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14251       len += length(value) + length(field[++i])
14252       substed = 1
14253     } else
14254       len += 1 + keylen
14255   }
14256
14257   print line
14258 }
14259
14260 _ACAWK
14261 _ACEOF
14262 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14263 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14264   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14265 else
14266   cat
14267 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14268   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14269 _ACEOF
14270
14271 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14272 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14273 # trailing colons and then remove the whole line if VPATH becomes empty
14274 # (actually we leave an empty line to preserve line numbers).
14275 if test "x$srcdir" = x.; then
14276   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
14277 h
14278 s///
14279 s/^/:/
14280 s/[      ]*$/:/
14281 s/:\$(srcdir):/:/g
14282 s/:\${srcdir}:/:/g
14283 s/:@srcdir@:/:/g
14284 s/^:*//
14285 s/:*$//
14286 x
14287 s/\(=[   ]*\).*/\1/
14288 G
14289 s/\n//
14290 s/^[^=]*=[       ]*$//
14291 }'
14292 fi
14293
14294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14295 fi # test -n "$CONFIG_FILES"
14296
14297 # Set up the scripts for CONFIG_HEADERS section.
14298 # No need to generate them if there are no CONFIG_HEADERS.
14299 # This happens for instance with `./config.status Makefile'.
14300 if test -n "$CONFIG_HEADERS"; then
14301 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14302 BEGIN {
14303 _ACEOF
14304
14305 # Transform confdefs.h into an awk script `defines.awk', embedded as
14306 # here-document in config.status, that substitutes the proper values into
14307 # config.h.in to produce config.h.
14308
14309 # Create a delimiter string that does not exist in confdefs.h, to ease
14310 # handling of long lines.
14311 ac_delim='%!_!# '
14312 for ac_last_try in false false :; do
14313   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14314   if test -z "$ac_tt"; then
14315     break
14316   elif $ac_last_try; then
14317     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14318   else
14319     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14320   fi
14321 done
14322
14323 # For the awk script, D is an array of macro values keyed by name,
14324 # likewise P contains macro parameters if any.  Preserve backslash
14325 # newline sequences.
14326
14327 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14328 sed -n '
14329 s/.\{148\}/&'"$ac_delim"'/g
14330 t rset
14331 :rset
14332 s/^[     ]*#[    ]*define[       ][      ]*/ /
14333 t def
14334 d
14335 :def
14336 s/\\$//
14337 t bsnl
14338 s/["\\]/\\&/g
14339 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14340 D["\1"]=" \3"/p
14341 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
14342 d
14343 :bsnl
14344 s/["\\]/\\&/g
14345 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14346 D["\1"]=" \3\\\\\\n"\\/p
14347 t cont
14348 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14349 t cont
14350 d
14351 :cont
14352 n
14353 s/.\{148\}/&'"$ac_delim"'/g
14354 t clear
14355 :clear
14356 s/\\$//
14357 t bsnlc
14358 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14359 d
14360 :bsnlc
14361 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14362 b cont
14363 ' <confdefs.h | sed '
14364 s/'"$ac_delim"'/"\\\
14365 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14366
14367 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14368   for (key in D) D_is_set[key] = 1
14369   FS = "\a"
14370 }
14371 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14372   line = \$ 0
14373   split(line, arg, " ")
14374   if (arg[1] == "#") {
14375     defundef = arg[2]
14376     mac1 = arg[3]
14377   } else {
14378     defundef = substr(arg[1], 2)
14379     mac1 = arg[2]
14380   }
14381   split(mac1, mac2, "(") #)
14382   macro = mac2[1]
14383   prefix = substr(line, 1, index(line, defundef) - 1)
14384   if (D_is_set[macro]) {
14385     # Preserve the white space surrounding the "#".
14386     print prefix "define", macro P[macro] D[macro]
14387     next
14388   } else {
14389     # Replace #undef with comments.  This is necessary, for example,
14390     # in the case of _POSIX_SOURCE, which is predefined and required
14391     # on some systems where configure will not decide to define it.
14392     if (defundef == "undef") {
14393       print "/*", prefix defundef, macro, "*/"
14394       next
14395     }
14396   }
14397 }
14398 { print }
14399 _ACAWK
14400 _ACEOF
14401 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14402   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14403 fi # test -n "$CONFIG_HEADERS"
14404
14405
14406 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14407 shift
14408 for ac_tag
14409 do
14410   case $ac_tag in
14411   :[FHLC]) ac_mode=$ac_tag; continue;;
14412   esac
14413   case $ac_mode$ac_tag in
14414   :[FHL]*:*);;
14415   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14416   :[FH]-) ac_tag=-:-;;
14417   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14418   esac
14419   ac_save_IFS=$IFS
14420   IFS=:
14421   set x $ac_tag
14422   IFS=$ac_save_IFS
14423   shift
14424   ac_file=$1
14425   shift
14426
14427   case $ac_mode in
14428   :L) ac_source=$1;;
14429   :[FH])
14430     ac_file_inputs=
14431     for ac_f
14432     do
14433       case $ac_f in
14434       -) ac_f="$ac_tmp/stdin";;
14435       *) # Look for the file first in the build tree, then in the source tree
14436          # (if the path is not absolute).  The absolute path cannot be DOS-style,
14437          # because $ac_f cannot contain `:'.
14438          test -f "$ac_f" ||
14439            case $ac_f in
14440            [\\/$]*) false;;
14441            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14442            esac ||
14443            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14444       esac
14445       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14446       as_fn_append ac_file_inputs " '$ac_f'"
14447     done
14448
14449     # Let's still pretend it is `configure' which instantiates (i.e., don't
14450     # use $as_me), people would be surprised to read:
14451     #    /* config.h.  Generated by config.status.  */
14452     configure_input='Generated from '`
14453           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14454         `' by configure.'
14455     if test x"$ac_file" != x-; then
14456       configure_input="$ac_file.  $configure_input"
14457       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14458 $as_echo "$as_me: creating $ac_file" >&6;}
14459     fi
14460     # Neutralize special characters interpreted by sed in replacement strings.
14461     case $configure_input in #(
14462     *\&* | *\|* | *\\* )
14463        ac_sed_conf_input=`$as_echo "$configure_input" |
14464        sed 's/[\\\\&|]/\\\\&/g'`;; #(
14465     *) ac_sed_conf_input=$configure_input;;
14466     esac
14467
14468     case $ac_tag in
14469     *:-:* | *:-) cat >"$ac_tmp/stdin" \
14470       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14471     esac
14472     ;;
14473   esac
14474
14475   ac_dir=`$as_dirname -- "$ac_file" ||
14476 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14477          X"$ac_file" : 'X\(//\)[^/]' \| \
14478          X"$ac_file" : 'X\(//\)$' \| \
14479          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14480 $as_echo X"$ac_file" |
14481     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14482             s//\1/
14483             q
14484           }
14485           /^X\(\/\/\)[^/].*/{
14486             s//\1/
14487             q
14488           }
14489           /^X\(\/\/\)$/{
14490             s//\1/
14491             q
14492           }
14493           /^X\(\/\).*/{
14494             s//\1/
14495             q
14496           }
14497           s/.*/./; q'`
14498   as_dir="$ac_dir"; as_fn_mkdir_p
14499   ac_builddir=.
14500
14501 case "$ac_dir" in
14502 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14503 *)
14504   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14505   # A ".." for each directory in $ac_dir_suffix.
14506   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14507   case $ac_top_builddir_sub in
14508   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14509   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14510   esac ;;
14511 esac
14512 ac_abs_top_builddir=$ac_pwd
14513 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14514 # for backward compatibility:
14515 ac_top_builddir=$ac_top_build_prefix
14516
14517 case $srcdir in
14518   .)  # We are building in place.
14519     ac_srcdir=.
14520     ac_top_srcdir=$ac_top_builddir_sub
14521     ac_abs_top_srcdir=$ac_pwd ;;
14522   [\\/]* | ?:[\\/]* )  # Absolute name.
14523     ac_srcdir=$srcdir$ac_dir_suffix;
14524     ac_top_srcdir=$srcdir
14525     ac_abs_top_srcdir=$srcdir ;;
14526   *) # Relative name.
14527     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14528     ac_top_srcdir=$ac_top_build_prefix$srcdir
14529     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14530 esac
14531 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14532
14533
14534   case $ac_mode in
14535   :F)
14536   #
14537   # CONFIG_FILE
14538   #
14539
14540   case $INSTALL in
14541   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14542   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14543   esac
14544   ac_MKDIR_P=$MKDIR_P
14545   case $MKDIR_P in
14546   [\\/$]* | ?:[\\/]* ) ;;
14547   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14548   esac
14549 _ACEOF
14550
14551 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14552 # If the template does not know about datarootdir, expand it.
14553 # FIXME: This hack should be removed a few years after 2.60.
14554 ac_datarootdir_hack=; ac_datarootdir_seen=
14555 ac_sed_dataroot='
14556 /datarootdir/ {
14557   p
14558   q
14559 }
14560 /@datadir@/p
14561 /@docdir@/p
14562 /@infodir@/p
14563 /@localedir@/p
14564 /@mandir@/p'
14565 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14566 *datarootdir*) ac_datarootdir_seen=yes;;
14567 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14568   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14569 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14570 _ACEOF
14571 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14572   ac_datarootdir_hack='
14573   s&@datadir@&$datadir&g
14574   s&@docdir@&$docdir&g
14575   s&@infodir@&$infodir&g
14576   s&@localedir@&$localedir&g
14577   s&@mandir@&$mandir&g
14578   s&\\\${datarootdir}&$datarootdir&g' ;;
14579 esac
14580 _ACEOF
14581
14582 # Neutralize VPATH when `$srcdir' = `.'.
14583 # Shell code in configure.ac might set extrasub.
14584 # FIXME: do we really want to maintain this feature?
14585 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14586 ac_sed_extra="$ac_vpsub
14587 $extrasub
14588 _ACEOF
14589 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14590 :t
14591 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14592 s|@configure_input@|$ac_sed_conf_input|;t t
14593 s&@top_builddir@&$ac_top_builddir_sub&;t t
14594 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14595 s&@srcdir@&$ac_srcdir&;t t
14596 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14597 s&@top_srcdir@&$ac_top_srcdir&;t t
14598 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14599 s&@builddir@&$ac_builddir&;t t
14600 s&@abs_builddir@&$ac_abs_builddir&;t t
14601 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14602 s&@INSTALL@&$ac_INSTALL&;t t
14603 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14604 $ac_datarootdir_hack
14605 "
14606 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14607   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14608
14609 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14610   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14611   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
14612       "$ac_tmp/out"`; test -z "$ac_out"; } &&
14613   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14614 which seems to be undefined.  Please make sure it is defined" >&5
14615 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14616 which seems to be undefined.  Please make sure it is defined" >&2;}
14617
14618   rm -f "$ac_tmp/stdin"
14619   case $ac_file in
14620   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14621   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14622   esac \
14623   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14624  ;;
14625   :H)
14626   #
14627   # CONFIG_HEADER
14628   #
14629   if test x"$ac_file" != x-; then
14630     {
14631       $as_echo "/* $configure_input  */" \
14632       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14633     } >"$ac_tmp/config.h" \
14634       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14635     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14636       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14637 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14638     else
14639       rm -f "$ac_file"
14640       mv "$ac_tmp/config.h" "$ac_file" \
14641         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14642     fi
14643   else
14644     $as_echo "/* $configure_input  */" \
14645       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14646       || as_fn_error $? "could not create -" "$LINENO" 5
14647   fi
14648 # Compute "$ac_file"'s index in $config_headers.
14649 _am_arg="$ac_file"
14650 _am_stamp_count=1
14651 for _am_header in $config_headers :; do
14652   case $_am_header in
14653     $_am_arg | $_am_arg:* )
14654       break ;;
14655     * )
14656       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14657   esac
14658 done
14659 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14660 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14661          X"$_am_arg" : 'X\(//\)[^/]' \| \
14662          X"$_am_arg" : 'X\(//\)$' \| \
14663          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14664 $as_echo X"$_am_arg" |
14665     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14666             s//\1/
14667             q
14668           }
14669           /^X\(\/\/\)[^/].*/{
14670             s//\1/
14671             q
14672           }
14673           /^X\(\/\/\)$/{
14674             s//\1/
14675             q
14676           }
14677           /^X\(\/\).*/{
14678             s//\1/
14679             q
14680           }
14681           s/.*/./; q'`/stamp-h$_am_stamp_count
14682  ;;
14683
14684   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14685 $as_echo "$as_me: executing $ac_file commands" >&6;}
14686  ;;
14687   esac
14688
14689
14690   case $ac_file$ac_mode in
14691     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14692   # Autoconf 2.62 quotes --file arguments for eval, but not when files
14693   # are listed without --file.  Let's play safe and only enable the eval
14694   # if we detect the quoting.
14695   case $CONFIG_FILES in
14696   *\'*) eval set x "$CONFIG_FILES" ;;
14697   *)   set x $CONFIG_FILES ;;
14698   esac
14699   shift
14700   for mf
14701   do
14702     # Strip MF so we end up with the name of the file.
14703     mf=`echo "$mf" | sed -e 's/:.*$//'`
14704     # Check whether this is an Automake generated Makefile or not.
14705     # We used to match only the files named `Makefile.in', but
14706     # some people rename them; so instead we look at the file content.
14707     # Grep'ing the first line is not enough: some people post-process
14708     # each Makefile.in and add a new line on top of each file to say so.
14709     # Grep'ing the whole file is not good either: AIX grep has a line
14710     # limit of 2048, but all sed's we know have understand at least 4000.
14711     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14712       dirpart=`$as_dirname -- "$mf" ||
14713 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14714          X"$mf" : 'X\(//\)[^/]' \| \
14715          X"$mf" : 'X\(//\)$' \| \
14716          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14717 $as_echo X"$mf" |
14718     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14719             s//\1/
14720             q
14721           }
14722           /^X\(\/\/\)[^/].*/{
14723             s//\1/
14724             q
14725           }
14726           /^X\(\/\/\)$/{
14727             s//\1/
14728             q
14729           }
14730           /^X\(\/\).*/{
14731             s//\1/
14732             q
14733           }
14734           s/.*/./; q'`
14735     else
14736       continue
14737     fi
14738     # Extract the definition of DEPDIR, am__include, and am__quote
14739     # from the Makefile without running `make'.
14740     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14741     test -z "$DEPDIR" && continue
14742     am__include=`sed -n 's/^am__include = //p' < "$mf"`
14743     test -z "am__include" && continue
14744     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14745     # When using ansi2knr, U may be empty or an underscore; expand it
14746     U=`sed -n 's/^U = //p' < "$mf"`
14747     # Find all dependency output files, they are included files with
14748     # $(DEPDIR) in their names.  We invoke sed twice because it is the
14749     # simplest approach to changing $(DEPDIR) to its actual value in the
14750     # expansion.
14751     for file in `sed -n "
14752       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14753          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14754       # Make sure the directory exists.
14755       test -f "$dirpart/$file" && continue
14756       fdir=`$as_dirname -- "$file" ||
14757 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14758          X"$file" : 'X\(//\)[^/]' \| \
14759          X"$file" : 'X\(//\)$' \| \
14760          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14761 $as_echo X"$file" |
14762     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14763             s//\1/
14764             q
14765           }
14766           /^X\(\/\/\)[^/].*/{
14767             s//\1/
14768             q
14769           }
14770           /^X\(\/\/\)$/{
14771             s//\1/
14772             q
14773           }
14774           /^X\(\/\).*/{
14775             s//\1/
14776             q
14777           }
14778           s/.*/./; q'`
14779       as_dir=$dirpart/$fdir; as_fn_mkdir_p
14780       # echo "creating $dirpart/$file"
14781       echo '# dummy' > "$dirpart/$file"
14782     done
14783   done
14784 }
14785  ;;
14786     "libtool":C)
14787
14788     # See if we are running on zsh, and set the options which allow our
14789     # commands through without removal of \ escapes.
14790     if test -n "${ZSH_VERSION+set}" ; then
14791       setopt NO_GLOB_SUBST
14792     fi
14793
14794     cfgfile="${ofile}T"
14795     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14796     $RM "$cfgfile"
14797
14798     cat <<_LT_EOF >> "$cfgfile"
14799 #! $SHELL
14800
14801 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14802 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14803 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14804 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14805 #
14806 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14807 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14808 #                 Foundation, Inc.
14809 #   Written by Gordon Matzigkeit, 1996
14810 #
14811 #   This file is part of GNU Libtool.
14812 #
14813 # GNU Libtool is free software; you can redistribute it and/or
14814 # modify it under the terms of the GNU General Public License as
14815 # published by the Free Software Foundation; either version 2 of
14816 # the License, or (at your option) any later version.
14817 #
14818 # As a special exception to the GNU General Public License,
14819 # if you distribute this file as part of a program or library that
14820 # is built using GNU Libtool, you may include this file under the
14821 # same distribution terms that you use for the rest of that program.
14822 #
14823 # GNU Libtool is distributed in the hope that it will be useful,
14824 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14825 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14826 # GNU General Public License for more details.
14827 #
14828 # You should have received a copy of the GNU General Public License
14829 # along with GNU Libtool; see the file COPYING.  If not, a copy
14830 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14831 # obtained by writing to the Free Software Foundation, Inc.,
14832 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14833
14834
14835 # The names of the tagged configurations supported by this script.
14836 available_tags=""
14837
14838 # ### BEGIN LIBTOOL CONFIG
14839
14840 # Assembler program.
14841 AS=$lt_AS
14842
14843 # DLL creation program.
14844 DLLTOOL=$lt_DLLTOOL
14845
14846 # Object dumper program.
14847 OBJDUMP=$lt_OBJDUMP
14848
14849 # Which release of libtool.m4 was used?
14850 macro_version=$macro_version
14851 macro_revision=$macro_revision
14852
14853 # Whether or not to build shared libraries.
14854 build_libtool_libs=$enable_shared
14855
14856 # Whether or not to build static libraries.
14857 build_old_libs=$enable_static
14858
14859 # What type of objects to build.
14860 pic_mode=$pic_mode
14861
14862 # Whether or not to optimize for fast installation.
14863 fast_install=$enable_fast_install
14864
14865 # Shell to use when invoking shell scripts.
14866 SHELL=$lt_SHELL
14867
14868 # An echo program that protects backslashes.
14869 ECHO=$lt_ECHO
14870
14871 # The PATH separator for the build system.
14872 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14873
14874 # The host system.
14875 host_alias=$host_alias
14876 host=$host
14877 host_os=$host_os
14878
14879 # The build system.
14880 build_alias=$build_alias
14881 build=$build
14882 build_os=$build_os
14883
14884 # A sed program that does not truncate output.
14885 SED=$lt_SED
14886
14887 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14888 Xsed="\$SED -e 1s/^X//"
14889
14890 # A grep program that handles long lines.
14891 GREP=$lt_GREP
14892
14893 # An ERE matcher.
14894 EGREP=$lt_EGREP
14895
14896 # A literal string matcher.
14897 FGREP=$lt_FGREP
14898
14899 # A BSD- or MS-compatible name lister.
14900 NM=$lt_NM
14901
14902 # Whether we need soft or hard links.
14903 LN_S=$lt_LN_S
14904
14905 # What is the maximum length of a command?
14906 max_cmd_len=$max_cmd_len
14907
14908 # Object file suffix (normally "o").
14909 objext=$ac_objext
14910
14911 # Executable file suffix (normally "").
14912 exeext=$exeext
14913
14914 # whether the shell understands "unset".
14915 lt_unset=$lt_unset
14916
14917 # turn spaces into newlines.
14918 SP2NL=$lt_lt_SP2NL
14919
14920 # turn newlines into spaces.
14921 NL2SP=$lt_lt_NL2SP
14922
14923 # convert \$build file names to \$host format.
14924 to_host_file_cmd=$lt_cv_to_host_file_cmd
14925
14926 # convert \$build files to toolchain format.
14927 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14928
14929 # Method to check whether dependent libraries are shared objects.
14930 deplibs_check_method=$lt_deplibs_check_method
14931
14932 # Command to use when deplibs_check_method = "file_magic".
14933 file_magic_cmd=$lt_file_magic_cmd
14934
14935 # How to find potential files when deplibs_check_method = "file_magic".
14936 file_magic_glob=$lt_file_magic_glob
14937
14938 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14939 want_nocaseglob=$lt_want_nocaseglob
14940
14941 # Command to associate shared and link libraries.
14942 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14943
14944 # The archiver.
14945 AR=$lt_AR
14946
14947 # Flags to create an archive.
14948 AR_FLAGS=$lt_AR_FLAGS
14949
14950 # How to feed a file listing to the archiver.
14951 archiver_list_spec=$lt_archiver_list_spec
14952
14953 # A symbol stripping program.
14954 STRIP=$lt_STRIP
14955
14956 # Commands used to install an old-style archive.
14957 RANLIB=$lt_RANLIB
14958 old_postinstall_cmds=$lt_old_postinstall_cmds
14959 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14960
14961 # Whether to use a lock for old archive extraction.
14962 lock_old_archive_extraction=$lock_old_archive_extraction
14963
14964 # A C compiler.
14965 LTCC=$lt_CC
14966
14967 # LTCC compiler flags.
14968 LTCFLAGS=$lt_CFLAGS
14969
14970 # Take the output of nm and produce a listing of raw symbols and C names.
14971 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14972
14973 # Transform the output of nm in a proper C declaration.
14974 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14975
14976 # Transform the output of nm in a C name address pair.
14977 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14978
14979 # Transform the output of nm in a C name address pair when lib prefix is needed.
14980 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14981
14982 # Specify filename containing input files for \$NM.
14983 nm_file_list_spec=$lt_nm_file_list_spec
14984
14985 # The root where to search for dependent libraries,and in which our libraries should be installed.
14986 lt_sysroot=$lt_sysroot
14987
14988 # The name of the directory that contains temporary libtool files.
14989 objdir=$objdir
14990
14991 # Used to examine libraries when file_magic_cmd begins with "file".
14992 MAGIC_CMD=$MAGIC_CMD
14993
14994 # Must we lock files when doing compilation?
14995 need_locks=$lt_need_locks
14996
14997 # Manifest tool.
14998 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14999
15000 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15001 DSYMUTIL=$lt_DSYMUTIL
15002
15003 # Tool to change global to local symbols on Mac OS X.
15004 NMEDIT=$lt_NMEDIT
15005
15006 # Tool to manipulate fat objects and archives on Mac OS X.
15007 LIPO=$lt_LIPO
15008
15009 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15010 OTOOL=$lt_OTOOL
15011
15012 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15013 OTOOL64=$lt_OTOOL64
15014
15015 # Old archive suffix (normally "a").
15016 libext=$libext
15017
15018 # Shared library suffix (normally ".so").
15019 shrext_cmds=$lt_shrext_cmds
15020
15021 # The commands to extract the exported symbol list from a shared archive.
15022 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15023
15024 # Variables whose values should be saved in libtool wrapper scripts and
15025 # restored at link time.
15026 variables_saved_for_relink=$lt_variables_saved_for_relink
15027
15028 # Do we need the "lib" prefix for modules?
15029 need_lib_prefix=$need_lib_prefix
15030
15031 # Do we need a version for libraries?
15032 need_version=$need_version
15033
15034 # Library versioning type.
15035 version_type=$version_type
15036
15037 # Shared library runtime path variable.
15038 runpath_var=$runpath_var
15039
15040 # Shared library path variable.
15041 shlibpath_var=$shlibpath_var
15042
15043 # Is shlibpath searched before the hard-coded library search path?
15044 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15045
15046 # Format of library name prefix.
15047 libname_spec=$lt_libname_spec
15048
15049 # List of archive names.  First name is the real one, the rest are links.
15050 # The last name is the one that the linker finds with -lNAME
15051 library_names_spec=$lt_library_names_spec
15052
15053 # The coded name of the library, if different from the real name.
15054 soname_spec=$lt_soname_spec
15055
15056 # Permission mode override for installation of shared libraries.
15057 install_override_mode=$lt_install_override_mode
15058
15059 # Command to use after installation of a shared archive.
15060 postinstall_cmds=$lt_postinstall_cmds
15061
15062 # Command to use after uninstallation of a shared archive.
15063 postuninstall_cmds=$lt_postuninstall_cmds
15064
15065 # Commands used to finish a libtool library installation in a directory.
15066 finish_cmds=$lt_finish_cmds
15067
15068 # As "finish_cmds", except a single script fragment to be evaled but
15069 # not shown.
15070 finish_eval=$lt_finish_eval
15071
15072 # Whether we should hardcode library paths into libraries.
15073 hardcode_into_libs=$hardcode_into_libs
15074
15075 # Compile-time system search path for libraries.
15076 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15077
15078 # Run-time system search path for libraries.
15079 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15080
15081 # Whether dlopen is supported.
15082 dlopen_support=$enable_dlopen
15083
15084 # Whether dlopen of programs is supported.
15085 dlopen_self=$enable_dlopen_self
15086
15087 # Whether dlopen of statically linked programs is supported.
15088 dlopen_self_static=$enable_dlopen_self_static
15089
15090 # Commands to strip libraries.
15091 old_striplib=$lt_old_striplib
15092 striplib=$lt_striplib
15093
15094
15095 # The linker used to build libraries.
15096 LD=$lt_LD
15097
15098 # How to create reloadable object files.
15099 reload_flag=$lt_reload_flag
15100 reload_cmds=$lt_reload_cmds
15101
15102 # Commands used to build an old-style archive.
15103 old_archive_cmds=$lt_old_archive_cmds
15104
15105 # A language specific compiler.
15106 CC=$lt_compiler
15107
15108 # Is the compiler the GNU compiler?
15109 with_gcc=$GCC
15110
15111 # Compiler flag to turn off builtin functions.
15112 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15113
15114 # Additional compiler flags for building library objects.
15115 pic_flag=$lt_lt_prog_compiler_pic
15116
15117 # How to pass a linker flag through the compiler.
15118 wl=$lt_lt_prog_compiler_wl
15119
15120 # Compiler flag to prevent dynamic linking.
15121 link_static_flag=$lt_lt_prog_compiler_static
15122
15123 # Does compiler simultaneously support -c and -o options?
15124 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15125
15126 # Whether or not to add -lc for building shared libraries.
15127 build_libtool_need_lc=$archive_cmds_need_lc
15128
15129 # Whether or not to disallow shared libs when runtime libs are static.
15130 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15131
15132 # Compiler flag to allow reflexive dlopens.
15133 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15134
15135 # Compiler flag to generate shared objects directly from archives.
15136 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15137
15138 # Whether the compiler copes with passing no objects directly.
15139 compiler_needs_object=$lt_compiler_needs_object
15140
15141 # Create an old-style archive from a shared archive.
15142 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15143
15144 # Create a temporary old-style archive to link instead of a shared archive.
15145 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15146
15147 # Commands used to build a shared archive.
15148 archive_cmds=$lt_archive_cmds
15149 archive_expsym_cmds=$lt_archive_expsym_cmds
15150
15151 # Commands used to build a loadable module if different from building
15152 # a shared archive.
15153 module_cmds=$lt_module_cmds
15154 module_expsym_cmds=$lt_module_expsym_cmds
15155
15156 # Whether we are building with GNU ld or not.
15157 with_gnu_ld=$lt_with_gnu_ld
15158
15159 # Flag that allows shared libraries with undefined symbols to be built.
15160 allow_undefined_flag=$lt_allow_undefined_flag
15161
15162 # Flag that enforces no undefined symbols.
15163 no_undefined_flag=$lt_no_undefined_flag
15164
15165 # Flag to hardcode \$libdir into a binary during linking.
15166 # This must work even if \$libdir does not exist
15167 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15168
15169 # Whether we need a single "-rpath" flag with a separated argument.
15170 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15171
15172 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15173 # DIR into the resulting binary.
15174 hardcode_direct=$hardcode_direct
15175
15176 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15177 # DIR into the resulting binary and the resulting library dependency is
15178 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15179 # library is relocated.
15180 hardcode_direct_absolute=$hardcode_direct_absolute
15181
15182 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15183 # into the resulting binary.
15184 hardcode_minus_L=$hardcode_minus_L
15185
15186 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15187 # into the resulting binary.
15188 hardcode_shlibpath_var=$hardcode_shlibpath_var
15189
15190 # Set to "yes" if building a shared library automatically hardcodes DIR
15191 # into the library and all subsequent libraries and executables linked
15192 # against it.
15193 hardcode_automatic=$hardcode_automatic
15194
15195 # Set to yes if linker adds runtime paths of dependent libraries
15196 # to runtime path list.
15197 inherit_rpath=$inherit_rpath
15198
15199 # Whether libtool must link a program against all its dependency libraries.
15200 link_all_deplibs=$link_all_deplibs
15201
15202 # Set to "yes" if exported symbols are required.
15203 always_export_symbols=$always_export_symbols
15204
15205 # The commands to list exported symbols.
15206 export_symbols_cmds=$lt_export_symbols_cmds
15207
15208 # Symbols that should not be listed in the preloaded symbols.
15209 exclude_expsyms=$lt_exclude_expsyms
15210
15211 # Symbols that must always be exported.
15212 include_expsyms=$lt_include_expsyms
15213
15214 # Commands necessary for linking programs (against libraries) with templates.
15215 prelink_cmds=$lt_prelink_cmds
15216
15217 # Commands necessary for finishing linking programs.
15218 postlink_cmds=$lt_postlink_cmds
15219
15220 # Specify filename containing input files.
15221 file_list_spec=$lt_file_list_spec
15222
15223 # How to hardcode a shared library path into an executable.
15224 hardcode_action=$hardcode_action
15225
15226 # ### END LIBTOOL CONFIG
15227
15228 _LT_EOF
15229
15230   case $host_os in
15231   aix3*)
15232     cat <<\_LT_EOF >> "$cfgfile"
15233 # AIX sometimes has problems with the GCC collect2 program.  For some
15234 # reason, if we set the COLLECT_NAMES environment variable, the problems
15235 # vanish in a puff of smoke.
15236 if test "X${COLLECT_NAMES+set}" != Xset; then
15237   COLLECT_NAMES=
15238   export COLLECT_NAMES
15239 fi
15240 _LT_EOF
15241     ;;
15242   esac
15243
15244
15245 ltmain="$ac_aux_dir/ltmain.sh"
15246
15247
15248   # We use sed instead of cat because bash on DJGPP gets confused if
15249   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15250   # text mode, it properly converts lines to CR/LF.  This bash problem
15251   # is reportedly fixed, but why not run on old versions too?
15252   sed '$q' "$ltmain" >> "$cfgfile" \
15253      || (rm -f "$cfgfile"; exit 1)
15254
15255   if test x"$xsi_shell" = xyes; then
15256   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15257 func_dirname ()\
15258 {\
15259 \    case ${1} in\
15260 \      */*) func_dirname_result="${1%/*}${2}" ;;\
15261 \      *  ) func_dirname_result="${3}" ;;\
15262 \    esac\
15263 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15264   && mv -f "$cfgfile.tmp" "$cfgfile" \
15265     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15266 test 0 -eq $? || _lt_function_replace_fail=:
15267
15268
15269   sed -e '/^func_basename ()$/,/^} # func_basename /c\
15270 func_basename ()\
15271 {\
15272 \    func_basename_result="${1##*/}"\
15273 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15274   && mv -f "$cfgfile.tmp" "$cfgfile" \
15275     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15276 test 0 -eq $? || _lt_function_replace_fail=:
15277
15278
15279   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15280 func_dirname_and_basename ()\
15281 {\
15282 \    case ${1} in\
15283 \      */*) func_dirname_result="${1%/*}${2}" ;;\
15284 \      *  ) func_dirname_result="${3}" ;;\
15285 \    esac\
15286 \    func_basename_result="${1##*/}"\
15287 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15288   && mv -f "$cfgfile.tmp" "$cfgfile" \
15289     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15290 test 0 -eq $? || _lt_function_replace_fail=:
15291
15292
15293   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15294 func_stripname ()\
15295 {\
15296 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15297 \    # positional parameters, so assign one to ordinary parameter first.\
15298 \    func_stripname_result=${3}\
15299 \    func_stripname_result=${func_stripname_result#"${1}"}\
15300 \    func_stripname_result=${func_stripname_result%"${2}"}\
15301 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15302   && mv -f "$cfgfile.tmp" "$cfgfile" \
15303     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15304 test 0 -eq $? || _lt_function_replace_fail=:
15305
15306
15307   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15308 func_split_long_opt ()\
15309 {\
15310 \    func_split_long_opt_name=${1%%=*}\
15311 \    func_split_long_opt_arg=${1#*=}\
15312 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15313   && mv -f "$cfgfile.tmp" "$cfgfile" \
15314     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15315 test 0 -eq $? || _lt_function_replace_fail=:
15316
15317
15318   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15319 func_split_short_opt ()\
15320 {\
15321 \    func_split_short_opt_arg=${1#??}\
15322 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15323 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15324   && mv -f "$cfgfile.tmp" "$cfgfile" \
15325     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15326 test 0 -eq $? || _lt_function_replace_fail=:
15327
15328
15329   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15330 func_lo2o ()\
15331 {\
15332 \    case ${1} in\
15333 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15334 \      *)    func_lo2o_result=${1} ;;\
15335 \    esac\
15336 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15337   && mv -f "$cfgfile.tmp" "$cfgfile" \
15338     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15339 test 0 -eq $? || _lt_function_replace_fail=:
15340
15341
15342   sed -e '/^func_xform ()$/,/^} # func_xform /c\
15343 func_xform ()\
15344 {\
15345     func_xform_result=${1%.*}.lo\
15346 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15347   && mv -f "$cfgfile.tmp" "$cfgfile" \
15348     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15349 test 0 -eq $? || _lt_function_replace_fail=:
15350
15351
15352   sed -e '/^func_arith ()$/,/^} # func_arith /c\
15353 func_arith ()\
15354 {\
15355     func_arith_result=$(( $* ))\
15356 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15357   && mv -f "$cfgfile.tmp" "$cfgfile" \
15358     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15359 test 0 -eq $? || _lt_function_replace_fail=:
15360
15361
15362   sed -e '/^func_len ()$/,/^} # func_len /c\
15363 func_len ()\
15364 {\
15365     func_len_result=${#1}\
15366 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15367   && mv -f "$cfgfile.tmp" "$cfgfile" \
15368     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15369 test 0 -eq $? || _lt_function_replace_fail=:
15370
15371 fi
15372
15373 if test x"$lt_shell_append" = xyes; then
15374   sed -e '/^func_append ()$/,/^} # func_append /c\
15375 func_append ()\
15376 {\
15377     eval "${1}+=\\${2}"\
15378 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15379   && mv -f "$cfgfile.tmp" "$cfgfile" \
15380     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15381 test 0 -eq $? || _lt_function_replace_fail=:
15382
15383
15384   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15385 func_append_quoted ()\
15386 {\
15387 \    func_quote_for_eval "${2}"\
15388 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15389 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15390   && mv -f "$cfgfile.tmp" "$cfgfile" \
15391     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15392 test 0 -eq $? || _lt_function_replace_fail=:
15393
15394
15395   # Save a `func_append' function call where possible by direct use of '+='
15396   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15397     && mv -f "$cfgfile.tmp" "$cfgfile" \
15398       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15399   test 0 -eq $? || _lt_function_replace_fail=:
15400 else
15401   # Save a `func_append' function call even when '+=' is not available
15402   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15403     && mv -f "$cfgfile.tmp" "$cfgfile" \
15404       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15405   test 0 -eq $? || _lt_function_replace_fail=:
15406 fi
15407
15408 if test x"$_lt_function_replace_fail" = x":"; then
15409   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15410 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15411 fi
15412
15413
15414    mv -f "$cfgfile" "$ofile" ||
15415     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15416   chmod +x "$ofile"
15417
15418  ;;
15419
15420   esac
15421 done # for ac_tag
15422
15423
15424 as_fn_exit 0
15425 _ACEOF
15426 ac_clean_files=$ac_clean_files_save
15427
15428 test $ac_write_fail = 0 ||
15429   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15430
15431
15432 # configure is writing to config.log, and then calls config.status.
15433 # config.status does its own redirection, appending to config.log.
15434 # Unfortunately, on DOS this fails, as config.log is still kept open
15435 # by configure, so config.status won't be able to write to it; its
15436 # output is simply discarded.  So we exec the FD to /dev/null,
15437 # effectively closing config.log, so it can be properly (re)opened and
15438 # appended to by config.status.  When coming back to configure, we
15439 # need to make the FD available again.
15440 if test "$no_create" != yes; then
15441   ac_cs_success=:
15442   ac_config_status_args=
15443   test "$silent" = yes &&
15444     ac_config_status_args="$ac_config_status_args --quiet"
15445   exec 5>/dev/null
15446   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15447   exec 5>>config.log
15448   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15449   # would make configure fail if this is the last instruction.
15450   $ac_cs_success || as_fn_exit 1
15451 fi
15452 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15453   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15454 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15455 fi
15456