Update tizen 2.0 beta source
[external/speex.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
555
556 case X$lt_ECHO in
557 X*--fallback-echo)
558   # Remove one level of quotation (which was required for Make).
559   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
560   ;;
561 esac
562
563 ECHO=${lt_ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565   # Discard the --no-reexec flag, and continue.
566   shift
567 elif test "X$1" = X--fallback-echo; then
568   # Avoid inline document here, it may be left over
569   :
570 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
571   # Yippee, $ECHO works!
572   :
573 else
574   # Restart under the correct shell.
575   exec $SHELL "$0" --no-reexec ${1+"$@"}
576 fi
577
578 if test "X$1" = X--fallback-echo; then
579   # used as fallback echo
580   shift
581   cat <<_LT_EOF
582 $*
583 _LT_EOF
584   exit 0
585 fi
586
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
591 if test -z "$lt_ECHO"; then
592   if test "X${echo_test_string+set}" != Xset; then
593     # find a string as large as possible, as long as the shell can cope with it
594     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
597          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
598       then
599         break
600       fi
601     done
602   fi
603
604   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
605      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
606      test "X$echo_testing_string" = "X$echo_test_string"; then
607     :
608   else
609     # The Solaris, AIX, and Digital Unix default echo programs unquote
610     # backslashes.  This makes it impossible to quote backslashes using
611     #   echo "$something" | sed 's/\\/\\\\/g'
612     #
613     # So, first we look for a working echo in the user's PATH.
614
615     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
616     for dir in $PATH /usr/ucb; do
617       IFS="$lt_save_ifs"
618       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
619          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
620          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
621          test "X$echo_testing_string" = "X$echo_test_string"; then
622         ECHO="$dir/echo"
623         break
624       fi
625     done
626     IFS="$lt_save_ifs"
627
628     if test "X$ECHO" = Xecho; then
629       # We didn't find a better echo, so look for alternatives.
630       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
631          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
632          test "X$echo_testing_string" = "X$echo_test_string"; then
633         # This shell has a builtin print -r that does the trick.
634         ECHO='print -r'
635       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
636            test "X$CONFIG_SHELL" != X/bin/ksh; then
637         # If we have ksh, try running configure again with it.
638         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
639         export ORIGINAL_CONFIG_SHELL
640         CONFIG_SHELL=/bin/ksh
641         export CONFIG_SHELL
642         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
643       else
644         # Try using printf.
645         ECHO='printf %s\n'
646         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
647            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
648            test "X$echo_testing_string" = "X$echo_test_string"; then
649           # Cool, printf works
650           :
651         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
652              test "X$echo_testing_string" = 'X\t' &&
653              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
654              test "X$echo_testing_string" = "X$echo_test_string"; then
655           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
656           export CONFIG_SHELL
657           SHELL="$CONFIG_SHELL"
658           export SHELL
659           ECHO="$CONFIG_SHELL $0 --fallback-echo"
660         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
661              test "X$echo_testing_string" = 'X\t' &&
662              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
663              test "X$echo_testing_string" = "X$echo_test_string"; then
664           ECHO="$CONFIG_SHELL $0 --fallback-echo"
665         else
666           # maybe with a smaller string...
667           prev=:
668
669           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
670             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
671             then
672               break
673             fi
674             prev="$cmd"
675           done
676
677           if test "$prev" != 'sed 50q "$0"'; then
678             echo_test_string=`eval $prev`
679             export echo_test_string
680             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
681           else
682             # Oops.  We lost completely, so just stick with echo.
683             ECHO=echo
684           fi
685         fi
686       fi
687     fi
688   fi
689 fi
690
691 # Copy echo and quote the copy suitably for passing to libtool from
692 # the Makefile, instead of quoting the original, which is used later.
693 lt_ECHO=$ECHO
694 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
695    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
696 fi
697
698
699
700
701 exec 7<&0 </dev/null 6>&1
702
703 # Name of the host.
704 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
705 # so uname gets run too.
706 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
707
708 #
709 # Initializations.
710 #
711 ac_default_prefix=/usr/local
712 ac_clean_files=
713 ac_config_libobj_dir=.
714 LIBOBJS=
715 cross_compiling=no
716 subdirs=
717 MFLAGS=
718 MAKEFLAGS=
719 SHELL=${CONFIG_SHELL-/bin/sh}
720
721 # Identity of this package.
722 PACKAGE_NAME=
723 PACKAGE_TARNAME=
724 PACKAGE_VERSION=
725 PACKAGE_STRING=
726 PACKAGE_BUGREPORT=
727
728 ac_unique_file="libspeex/speex.c"
729 # Factoring default headers for most tests.
730 ac_includes_default="\
731 #include <stdio.h>
732 #ifdef HAVE_SYS_TYPES_H
733 # include <sys/types.h>
734 #endif
735 #ifdef HAVE_SYS_STAT_H
736 # include <sys/stat.h>
737 #endif
738 #ifdef STDC_HEADERS
739 # include <stdlib.h>
740 # include <stddef.h>
741 #else
742 # ifdef HAVE_STDLIB_H
743 #  include <stdlib.h>
744 # endif
745 #endif
746 #ifdef HAVE_STRING_H
747 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
748 #  include <memory.h>
749 # endif
750 # include <string.h>
751 #endif
752 #ifdef HAVE_STRINGS_H
753 # include <strings.h>
754 #endif
755 #ifdef HAVE_INTTYPES_H
756 # include <inttypes.h>
757 #endif
758 #ifdef HAVE_STDINT_H
759 # include <stdint.h>
760 #endif
761 #ifdef HAVE_UNISTD_H
762 # include <unistd.h>
763 #endif"
764
765 ac_subst_vars='SHELL
766 PATH_SEPARATOR
767 PACKAGE_NAME
768 PACKAGE_TARNAME
769 PACKAGE_VERSION
770 PACKAGE_STRING
771 PACKAGE_BUGREPORT
772 exec_prefix
773 prefix
774 program_transform_name
775 bindir
776 sbindir
777 libexecdir
778 datarootdir
779 datadir
780 sysconfdir
781 sharedstatedir
782 localstatedir
783 includedir
784 oldincludedir
785 docdir
786 infodir
787 htmldir
788 dvidir
789 pdfdir
790 psdir
791 libdir
792 localedir
793 mandir
794 DEFS
795 ECHO_C
796 ECHO_N
797 ECHO_T
798 LIBS
799 build_alias
800 host_alias
801 target_alias
802 SPEEX_LT_CURRENT
803 SPEEX_LT_REVISION
804 SPEEX_LT_AGE
805 SPEEX_VERSION
806 INSTALL_PROGRAM
807 INSTALL_SCRIPT
808 INSTALL_DATA
809 CYGPATH_W
810 PACKAGE
811 VERSION
812 ACLOCAL
813 AUTOCONF
814 AUTOMAKE
815 AUTOHEADER
816 MAKEINFO
817 AMTAR
818 install_sh
819 STRIP
820 INSTALL_STRIP_PROGRAM
821 mkdir_p
822 AWK
823 SET_MAKE
824 am__leading_dot
825 MAINTAINER_MODE_TRUE
826 MAINTAINER_MODE_FALSE
827 MAINT
828 build
829 build_cpu
830 build_vendor
831 build_os
832 host
833 host_cpu
834 host_vendor
835 host_os
836 AS
837 DLLTOOL
838 OBJDUMP
839 LIBTOOL
840 CC
841 CFLAGS
842 LDFLAGS
843 CPPFLAGS
844 ac_ct_CC
845 EXEEXT
846 OBJEXT
847 DEPDIR
848 am__include
849 am__quote
850 AMDEP_TRUE
851 AMDEP_FALSE
852 AMDEPBACKSLASH
853 CCDEPMODE
854 am__fastdepCC_TRUE
855 am__fastdepCC_FALSE
856 SED
857 GREP
858 EGREP
859 FGREP
860 LD
861 DUMPBIN
862 ac_ct_DUMPBIN
863 NM
864 LN_S
865 AR
866 RANLIB
867 lt_ECHO
868 DSYMUTIL
869 NMEDIT
870 LIPO
871 OTOOL
872 OTOOL64
873 CPP
874 OGG_CFLAGS
875 OGG_LIBS
876 src
877 LIBOBJS
878 PKG_CONFIG
879 FFT_CFLAGS
880 FFT_LIBS
881 BUILD_KISS_FFT_TRUE
882 BUILD_KISS_FFT_FALSE
883 BUILD_SMALLFT_TRUE
884 BUILD_SMALLFT_FALSE
885 FFT_PKGCONFIG
886 SIZE16
887 SIZE32
888 LTLIBOBJS'
889 ac_subst_files=''
890       ac_precious_vars='build_alias
891 host_alias
892 target_alias
893 CC
894 CFLAGS
895 LDFLAGS
896 LIBS
897 CPPFLAGS
898 CPP
899 PKG_CONFIG
900 FFT_CFLAGS
901 FFT_LIBS'
902
903
904 # Initialize some variables set by options.
905 ac_init_help=
906 ac_init_version=false
907 # The variables have the same names as the options, with
908 # dashes changed to underlines.
909 cache_file=/dev/null
910 exec_prefix=NONE
911 no_create=
912 no_recursion=
913 prefix=NONE
914 program_prefix=NONE
915 program_suffix=NONE
916 program_transform_name=s,x,x,
917 silent=
918 site=
919 srcdir=
920 verbose=
921 x_includes=NONE
922 x_libraries=NONE
923
924 # Installation directory options.
925 # These are left unexpanded so users can "make install exec_prefix=/foo"
926 # and all the variables that are supposed to be based on exec_prefix
927 # by default will actually change.
928 # Use braces instead of parens because sh, perl, etc. also accept them.
929 # (The list follows the same order as the GNU Coding Standards.)
930 bindir='${exec_prefix}/bin'
931 sbindir='${exec_prefix}/sbin'
932 libexecdir='${exec_prefix}/libexec'
933 datarootdir='${prefix}/share'
934 datadir='${datarootdir}'
935 sysconfdir='${prefix}/etc'
936 sharedstatedir='${prefix}/com'
937 localstatedir='${prefix}/var'
938 includedir='${prefix}/include'
939 oldincludedir='/usr/include'
940 docdir='${datarootdir}/doc/${PACKAGE}'
941 infodir='${datarootdir}/info'
942 htmldir='${docdir}'
943 dvidir='${docdir}'
944 pdfdir='${docdir}'
945 psdir='${docdir}'
946 libdir='${exec_prefix}/lib'
947 localedir='${datarootdir}/locale'
948 mandir='${datarootdir}/man'
949
950 ac_prev=
951 ac_dashdash=
952 for ac_option
953 do
954   # If the previous option needs an argument, assign it.
955   if test -n "$ac_prev"; then
956     eval $ac_prev=\$ac_option
957     ac_prev=
958     continue
959   fi
960
961   case $ac_option in
962   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
963   *)    ac_optarg=yes ;;
964   esac
965
966   # Accept the important Cygnus configure options, so we can diagnose typos.
967
968   case $ac_dashdash$ac_option in
969   --)
970     ac_dashdash=yes ;;
971
972   -bindir | --bindir | --bindi | --bind | --bin | --bi)
973     ac_prev=bindir ;;
974   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
975     bindir=$ac_optarg ;;
976
977   -build | --build | --buil | --bui | --bu)
978     ac_prev=build_alias ;;
979   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
980     build_alias=$ac_optarg ;;
981
982   -cache-file | --cache-file | --cache-fil | --cache-fi \
983   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
984     ac_prev=cache_file ;;
985   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
986   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
987     cache_file=$ac_optarg ;;
988
989   --config-cache | -C)
990     cache_file=config.cache ;;
991
992   -datadir | --datadir | --datadi | --datad)
993     ac_prev=datadir ;;
994   -datadir=* | --datadir=* | --datadi=* | --datad=*)
995     datadir=$ac_optarg ;;
996
997   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
998   | --dataroo | --dataro | --datar)
999     ac_prev=datarootdir ;;
1000   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1001   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1002     datarootdir=$ac_optarg ;;
1003
1004   -disable-* | --disable-*)
1005     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1006     # Reject names that are not valid shell variable names.
1007     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1008       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1009    { (exit 1); exit 1; }; }
1010     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1011     eval enable_$ac_feature=no ;;
1012
1013   -docdir | --docdir | --docdi | --doc | --do)
1014     ac_prev=docdir ;;
1015   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1016     docdir=$ac_optarg ;;
1017
1018   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1019     ac_prev=dvidir ;;
1020   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1021     dvidir=$ac_optarg ;;
1022
1023   -enable-* | --enable-*)
1024     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1025     # Reject names that are not valid shell variable names.
1026     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1027       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1028    { (exit 1); exit 1; }; }
1029     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1030     eval enable_$ac_feature=\$ac_optarg ;;
1031
1032   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1033   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1034   | --exec | --exe | --ex)
1035     ac_prev=exec_prefix ;;
1036   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1037   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1038   | --exec=* | --exe=* | --ex=*)
1039     exec_prefix=$ac_optarg ;;
1040
1041   -gas | --gas | --ga | --g)
1042     # Obsolete; use --with-gas.
1043     with_gas=yes ;;
1044
1045   -help | --help | --hel | --he | -h)
1046     ac_init_help=long ;;
1047   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1048     ac_init_help=recursive ;;
1049   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1050     ac_init_help=short ;;
1051
1052   -host | --host | --hos | --ho)
1053     ac_prev=host_alias ;;
1054   -host=* | --host=* | --hos=* | --ho=*)
1055     host_alias=$ac_optarg ;;
1056
1057   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1058     ac_prev=htmldir ;;
1059   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1060   | --ht=*)
1061     htmldir=$ac_optarg ;;
1062
1063   -includedir | --includedir | --includedi | --included | --include \
1064   | --includ | --inclu | --incl | --inc)
1065     ac_prev=includedir ;;
1066   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1067   | --includ=* | --inclu=* | --incl=* | --inc=*)
1068     includedir=$ac_optarg ;;
1069
1070   -infodir | --infodir | --infodi | --infod | --info | --inf)
1071     ac_prev=infodir ;;
1072   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1073     infodir=$ac_optarg ;;
1074
1075   -libdir | --libdir | --libdi | --libd)
1076     ac_prev=libdir ;;
1077   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1078     libdir=$ac_optarg ;;
1079
1080   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1081   | --libexe | --libex | --libe)
1082     ac_prev=libexecdir ;;
1083   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1084   | --libexe=* | --libex=* | --libe=*)
1085     libexecdir=$ac_optarg ;;
1086
1087   -localedir | --localedir | --localedi | --localed | --locale)
1088     ac_prev=localedir ;;
1089   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1090     localedir=$ac_optarg ;;
1091
1092   -localstatedir | --localstatedir | --localstatedi | --localstated \
1093   | --localstate | --localstat | --localsta | --localst | --locals)
1094     ac_prev=localstatedir ;;
1095   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1096   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1097     localstatedir=$ac_optarg ;;
1098
1099   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1100     ac_prev=mandir ;;
1101   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1102     mandir=$ac_optarg ;;
1103
1104   -nfp | --nfp | --nf)
1105     # Obsolete; use --without-fp.
1106     with_fp=no ;;
1107
1108   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1109   | --no-cr | --no-c | -n)
1110     no_create=yes ;;
1111
1112   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1113   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1114     no_recursion=yes ;;
1115
1116   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1117   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1118   | --oldin | --oldi | --old | --ol | --o)
1119     ac_prev=oldincludedir ;;
1120   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1121   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1122   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1123     oldincludedir=$ac_optarg ;;
1124
1125   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1126     ac_prev=prefix ;;
1127   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1128     prefix=$ac_optarg ;;
1129
1130   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1131   | --program-pre | --program-pr | --program-p)
1132     ac_prev=program_prefix ;;
1133   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1134   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1135     program_prefix=$ac_optarg ;;
1136
1137   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1138   | --program-suf | --program-su | --program-s)
1139     ac_prev=program_suffix ;;
1140   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1141   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1142     program_suffix=$ac_optarg ;;
1143
1144   -program-transform-name | --program-transform-name \
1145   | --program-transform-nam | --program-transform-na \
1146   | --program-transform-n | --program-transform- \
1147   | --program-transform | --program-transfor \
1148   | --program-transfo | --program-transf \
1149   | --program-trans | --program-tran \
1150   | --progr-tra | --program-tr | --program-t)
1151     ac_prev=program_transform_name ;;
1152   -program-transform-name=* | --program-transform-name=* \
1153   | --program-transform-nam=* | --program-transform-na=* \
1154   | --program-transform-n=* | --program-transform-=* \
1155   | --program-transform=* | --program-transfor=* \
1156   | --program-transfo=* | --program-transf=* \
1157   | --program-trans=* | --program-tran=* \
1158   | --progr-tra=* | --program-tr=* | --program-t=*)
1159     program_transform_name=$ac_optarg ;;
1160
1161   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1162     ac_prev=pdfdir ;;
1163   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1164     pdfdir=$ac_optarg ;;
1165
1166   -psdir | --psdir | --psdi | --psd | --ps)
1167     ac_prev=psdir ;;
1168   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1169     psdir=$ac_optarg ;;
1170
1171   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1172   | -silent | --silent | --silen | --sile | --sil)
1173     silent=yes ;;
1174
1175   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1176     ac_prev=sbindir ;;
1177   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1178   | --sbi=* | --sb=*)
1179     sbindir=$ac_optarg ;;
1180
1181   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1182   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1183   | --sharedst | --shareds | --shared | --share | --shar \
1184   | --sha | --sh)
1185     ac_prev=sharedstatedir ;;
1186   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1187   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1188   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1189   | --sha=* | --sh=*)
1190     sharedstatedir=$ac_optarg ;;
1191
1192   -site | --site | --sit)
1193     ac_prev=site ;;
1194   -site=* | --site=* | --sit=*)
1195     site=$ac_optarg ;;
1196
1197   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1198     ac_prev=srcdir ;;
1199   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1200     srcdir=$ac_optarg ;;
1201
1202   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1203   | --syscon | --sysco | --sysc | --sys | --sy)
1204     ac_prev=sysconfdir ;;
1205   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1206   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1207     sysconfdir=$ac_optarg ;;
1208
1209   -target | --target | --targe | --targ | --tar | --ta | --t)
1210     ac_prev=target_alias ;;
1211   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1212     target_alias=$ac_optarg ;;
1213
1214   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1215     verbose=yes ;;
1216
1217   -version | --version | --versio | --versi | --vers | -V)
1218     ac_init_version=: ;;
1219
1220   -with-* | --with-*)
1221     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1222     # Reject names that are not valid shell variable names.
1223     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1224       { echo "$as_me: error: invalid package name: $ac_package" >&2
1225    { (exit 1); exit 1; }; }
1226     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1227     eval with_$ac_package=\$ac_optarg ;;
1228
1229   -without-* | --without-*)
1230     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1231     # Reject names that are not valid shell variable names.
1232     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1233       { echo "$as_me: error: invalid package name: $ac_package" >&2
1234    { (exit 1); exit 1; }; }
1235     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1236     eval with_$ac_package=no ;;
1237
1238   --x)
1239     # Obsolete; use --with-x.
1240     with_x=yes ;;
1241
1242   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1243   | --x-incl | --x-inc | --x-in | --x-i)
1244     ac_prev=x_includes ;;
1245   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1246   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1247     x_includes=$ac_optarg ;;
1248
1249   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1250   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1251     ac_prev=x_libraries ;;
1252   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1253   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1254     x_libraries=$ac_optarg ;;
1255
1256   -*) { echo "$as_me: error: unrecognized option: $ac_option
1257 Try \`$0 --help' for more information." >&2
1258    { (exit 1); exit 1; }; }
1259     ;;
1260
1261   *=*)
1262     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1263     # Reject names that are not valid shell variable names.
1264     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1265       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1266    { (exit 1); exit 1; }; }
1267     eval $ac_envvar=\$ac_optarg
1268     export $ac_envvar ;;
1269
1270   *)
1271     # FIXME: should be removed in autoconf 3.0.
1272     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1273     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1274       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1275     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1276     ;;
1277
1278   esac
1279 done
1280
1281 if test -n "$ac_prev"; then
1282   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1283   { echo "$as_me: error: missing argument to $ac_option" >&2
1284    { (exit 1); exit 1; }; }
1285 fi
1286
1287 # Be sure to have absolute directory names.
1288 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1289                 datadir sysconfdir sharedstatedir localstatedir includedir \
1290                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1291                 libdir localedir mandir
1292 do
1293   eval ac_val=\$$ac_var
1294   case $ac_val in
1295     [\\/$]* | ?:[\\/]* )  continue;;
1296     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1297   esac
1298   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1299    { (exit 1); exit 1; }; }
1300 done
1301
1302 # There might be people who depend on the old broken behavior: `$host'
1303 # used to hold the argument of --host etc.
1304 # FIXME: To remove some day.
1305 build=$build_alias
1306 host=$host_alias
1307 target=$target_alias
1308
1309 # FIXME: To remove some day.
1310 if test "x$host_alias" != x; then
1311   if test "x$build_alias" = x; then
1312     cross_compiling=maybe
1313     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1314     If a cross compiler is detected then cross compile mode will be used." >&2
1315   elif test "x$build_alias" != "x$host_alias"; then
1316     cross_compiling=yes
1317   fi
1318 fi
1319
1320 ac_tool_prefix=
1321 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1322
1323 test "$silent" = yes && exec 6>/dev/null
1324
1325
1326 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1327 ac_ls_di=`ls -di .` &&
1328 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1329   { echo "$as_me: error: Working directory cannot be determined" >&2
1330    { (exit 1); exit 1; }; }
1331 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1332   { echo "$as_me: error: pwd does not report name of working directory" >&2
1333    { (exit 1); exit 1; }; }
1334
1335
1336 # Find the source files, if location was not specified.
1337 if test -z "$srcdir"; then
1338   ac_srcdir_defaulted=yes
1339   # Try the directory containing this script, then the parent directory.
1340   ac_confdir=`$as_dirname -- "$0" ||
1341 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1342          X"$0" : 'X\(//\)[^/]' \| \
1343          X"$0" : 'X\(//\)$' \| \
1344          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1345 echo X"$0" |
1346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1347             s//\1/
1348             q
1349           }
1350           /^X\(\/\/\)[^/].*/{
1351             s//\1/
1352             q
1353           }
1354           /^X\(\/\/\)$/{
1355             s//\1/
1356             q
1357           }
1358           /^X\(\/\).*/{
1359             s//\1/
1360             q
1361           }
1362           s/.*/./; q'`
1363   srcdir=$ac_confdir
1364   if test ! -r "$srcdir/$ac_unique_file"; then
1365     srcdir=..
1366   fi
1367 else
1368   ac_srcdir_defaulted=no
1369 fi
1370 if test ! -r "$srcdir/$ac_unique_file"; then
1371   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1372   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1373    { (exit 1); exit 1; }; }
1374 fi
1375 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1376 ac_abs_confdir=`(
1377         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1378    { (exit 1); exit 1; }; }
1379         pwd)`
1380 # When building in place, set srcdir=.
1381 if test "$ac_abs_confdir" = "$ac_pwd"; then
1382   srcdir=.
1383 fi
1384 # Remove unnecessary trailing slashes from srcdir.
1385 # Double slashes in file names in object file debugging info
1386 # mess up M-x gdb in Emacs.
1387 case $srcdir in
1388 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1389 esac
1390 for ac_var in $ac_precious_vars; do
1391   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1392   eval ac_env_${ac_var}_value=\$${ac_var}
1393   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1394   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1395 done
1396
1397 #
1398 # Report the --help message.
1399 #
1400 if test "$ac_init_help" = "long"; then
1401   # Omit some internal or obsolete options to make the list less imposing.
1402   # This message is too long to be a string in the A/UX 3.1 sh.
1403   cat <<_ACEOF
1404 \`configure' configures this package to adapt to many kinds of systems.
1405
1406 Usage: $0 [OPTION]... [VAR=VALUE]...
1407
1408 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1409 VAR=VALUE.  See below for descriptions of some of the useful variables.
1410
1411 Defaults for the options are specified in brackets.
1412
1413 Configuration:
1414   -h, --help              display this help and exit
1415       --help=short        display options specific to this package
1416       --help=recursive    display the short help of all the included packages
1417   -V, --version           display version information and exit
1418   -q, --quiet, --silent   do not print \`checking...' messages
1419       --cache-file=FILE   cache test results in FILE [disabled]
1420   -C, --config-cache      alias for \`--cache-file=config.cache'
1421   -n, --no-create         do not create output files
1422       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1423
1424 Installation directories:
1425   --prefix=PREFIX         install architecture-independent files in PREFIX
1426                           [$ac_default_prefix]
1427   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1428                           [PREFIX]
1429
1430 By default, \`make install' will install all the files in
1431 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1432 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1433 for instance \`--prefix=\$HOME'.
1434
1435 For better control, use the options below.
1436
1437 Fine tuning of the installation directories:
1438   --bindir=DIR           user executables [EPREFIX/bin]
1439   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1440   --libexecdir=DIR       program executables [EPREFIX/libexec]
1441   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1442   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1443   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1444   --libdir=DIR           object code libraries [EPREFIX/lib]
1445   --includedir=DIR       C header files [PREFIX/include]
1446   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1447   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1448   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1449   --infodir=DIR          info documentation [DATAROOTDIR/info]
1450   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1451   --mandir=DIR           man documentation [DATAROOTDIR/man]
1452   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1453   --htmldir=DIR          html documentation [DOCDIR]
1454   --dvidir=DIR           dvi documentation [DOCDIR]
1455   --pdfdir=DIR           pdf documentation [DOCDIR]
1456   --psdir=DIR            ps documentation [DOCDIR]
1457 _ACEOF
1458
1459   cat <<\_ACEOF
1460
1461 Program names:
1462   --program-prefix=PREFIX            prepend PREFIX to installed program names
1463   --program-suffix=SUFFIX            append SUFFIX to installed program names
1464   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1465
1466 System types:
1467   --build=BUILD     configure for building on BUILD [guessed]
1468   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1469 _ACEOF
1470 fi
1471
1472 if test -n "$ac_init_help"; then
1473
1474   cat <<\_ACEOF
1475
1476 Optional Features:
1477   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1478   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1479   --enable-maintainer-mode  enable make rules and dependencies not useful
1480                           (and sometimes confusing) to the casual installer
1481   --enable-shared[=PKGS]  build shared libraries [default=yes]
1482   --enable-static[=PKGS]  build static libraries [default=yes]
1483   --enable-fast-install[=PKGS]
1484                           optimize for fast installation [default=yes]
1485   --disable-dependency-tracking  speeds up one-time build
1486   --enable-dependency-tracking   do not reject slow dependency extractors
1487   --disable-libtool-lock  avoid locking (might break parallel builds)
1488   --disable-oggtest       Do not try to compile and run a test Ogg program
1489   --enable-valgrind       Enable valgrind extra checks
1490   --enable-sse            Enable SSE support
1491   --enable-fixed-point    Compile as fixed-point
1492   --disable-float-api     Disable the floating-point API
1493   --disable-vbr           Disable VBR and VAD from the codec
1494   --enable-arm4-asm       Make use of ARM4 assembly optimizations
1495   --enable-arm5e-asm      Make use of ARM5E assembly optimizations
1496   --enable-blackfin-asm   Make use of Blackfin assembly optimizations
1497   --enable-fixed-point-debug  Debug fixed-point implementation
1498   --enable-ti-c55x        Enable support for TI C55X DSP
1499
1500 Optional Packages:
1501   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1502   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1503   --with-pic              try to use only PIC/non-PIC objects [default=use
1504                           both]
1505   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1506   --with-ogg=PFX   Prefix where libogg is installed (optional)
1507   --with-ogg-libraries=DIR   Directory where libogg library is installed (optional)
1508   --with-ogg-includes=DIR   Directory where libogg header files are installed (optional)
1509   --with-fft=choice       use an alternate FFT implementation. The available
1510                           choices are kiss (default fixed point), smallft
1511                           (default floating point), gpl-fftw3 and
1512                           proprietary-intel-mkl
1513
1514 Some influential environment variables:
1515   CC          C compiler command
1516   CFLAGS      C compiler flags
1517   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1518               nonstandard directory <lib dir>
1519   LIBS        libraries to pass to the linker, e.g. -l<library>
1520   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1521               you have headers in a nonstandard directory <include dir>
1522   CPP         C preprocessor
1523   PKG_CONFIG  path to pkg-config utility
1524   FFT_CFLAGS  C compiler flags for FFT, overriding pkg-config
1525   FFT_LIBS    linker flags for FFT, overriding pkg-config
1526
1527 Use these variables to override the choices made by `configure' or to help
1528 it to find libraries and programs with nonstandard names/locations.
1529
1530 _ACEOF
1531 ac_status=$?
1532 fi
1533
1534 if test "$ac_init_help" = "recursive"; then
1535   # If there are subdirs, report their specific --help.
1536   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1537     test -d "$ac_dir" || continue
1538     ac_builddir=.
1539
1540 case "$ac_dir" in
1541 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1542 *)
1543   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1544   # A ".." for each directory in $ac_dir_suffix.
1545   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1546   case $ac_top_builddir_sub in
1547   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1548   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1549   esac ;;
1550 esac
1551 ac_abs_top_builddir=$ac_pwd
1552 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1553 # for backward compatibility:
1554 ac_top_builddir=$ac_top_build_prefix
1555
1556 case $srcdir in
1557   .)  # We are building in place.
1558     ac_srcdir=.
1559     ac_top_srcdir=$ac_top_builddir_sub
1560     ac_abs_top_srcdir=$ac_pwd ;;
1561   [\\/]* | ?:[\\/]* )  # Absolute name.
1562     ac_srcdir=$srcdir$ac_dir_suffix;
1563     ac_top_srcdir=$srcdir
1564     ac_abs_top_srcdir=$srcdir ;;
1565   *) # Relative name.
1566     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1567     ac_top_srcdir=$ac_top_build_prefix$srcdir
1568     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1569 esac
1570 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1571
1572     cd "$ac_dir" || { ac_status=$?; continue; }
1573     # Check for guested configure.
1574     if test -f "$ac_srcdir/configure.gnu"; then
1575       echo &&
1576       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1577     elif test -f "$ac_srcdir/configure"; then
1578       echo &&
1579       $SHELL "$ac_srcdir/configure" --help=recursive
1580     else
1581       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1582     fi || ac_status=$?
1583     cd "$ac_pwd" || { ac_status=$?; break; }
1584   done
1585 fi
1586
1587 test -n "$ac_init_help" && exit $ac_status
1588 if $ac_init_version; then
1589   cat <<\_ACEOF
1590 configure
1591 generated by GNU Autoconf 2.61
1592
1593 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1594 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1595 This configure script is free software; the Free Software Foundation
1596 gives unlimited permission to copy, distribute and modify it.
1597 _ACEOF
1598   exit
1599 fi
1600 cat >config.log <<_ACEOF
1601 This file contains any messages produced by compilers while
1602 running configure, to aid debugging if configure makes a mistake.
1603
1604 It was created by $as_me, which was
1605 generated by GNU Autoconf 2.61.  Invocation command line was
1606
1607   $ $0 $@
1608
1609 _ACEOF
1610 exec 5>>config.log
1611 {
1612 cat <<_ASUNAME
1613 ## --------- ##
1614 ## Platform. ##
1615 ## --------- ##
1616
1617 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1618 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1619 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1620 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1621 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1622
1623 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1624 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1625
1626 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1627 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1628 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1629 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1630 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1631 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1632 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1633
1634 _ASUNAME
1635
1636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1637 for as_dir in $PATH
1638 do
1639   IFS=$as_save_IFS
1640   test -z "$as_dir" && as_dir=.
1641   echo "PATH: $as_dir"
1642 done
1643 IFS=$as_save_IFS
1644
1645 } >&5
1646
1647 cat >&5 <<_ACEOF
1648
1649
1650 ## ----------- ##
1651 ## Core tests. ##
1652 ## ----------- ##
1653
1654 _ACEOF
1655
1656
1657 # Keep a trace of the command line.
1658 # Strip out --no-create and --no-recursion so they do not pile up.
1659 # Strip out --silent because we don't want to record it for future runs.
1660 # Also quote any args containing shell meta-characters.
1661 # Make two passes to allow for proper duplicate-argument suppression.
1662 ac_configure_args=
1663 ac_configure_args0=
1664 ac_configure_args1=
1665 ac_must_keep_next=false
1666 for ac_pass in 1 2
1667 do
1668   for ac_arg
1669   do
1670     case $ac_arg in
1671     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1672     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1673     | -silent | --silent | --silen | --sile | --sil)
1674       continue ;;
1675     *\'*)
1676       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1677     esac
1678     case $ac_pass in
1679     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1680     2)
1681       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1682       if test $ac_must_keep_next = true; then
1683         ac_must_keep_next=false # Got value, back to normal.
1684       else
1685         case $ac_arg in
1686           *=* | --config-cache | -C | -disable-* | --disable-* \
1687           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1688           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1689           | -with-* | --with-* | -without-* | --without-* | --x)
1690             case "$ac_configure_args0 " in
1691               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1692             esac
1693             ;;
1694           -* ) ac_must_keep_next=true ;;
1695         esac
1696       fi
1697       ac_configure_args="$ac_configure_args '$ac_arg'"
1698       ;;
1699     esac
1700   done
1701 done
1702 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1703 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1704
1705 # When interrupted or exit'd, cleanup temporary files, and complete
1706 # config.log.  We remove comments because anyway the quotes in there
1707 # would cause problems or look ugly.
1708 # WARNING: Use '\'' to represent an apostrophe within the trap.
1709 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1710 trap 'exit_status=$?
1711   # Save into config.log some information that might help in debugging.
1712   {
1713     echo
1714
1715     cat <<\_ASBOX
1716 ## ---------------- ##
1717 ## Cache variables. ##
1718 ## ---------------- ##
1719 _ASBOX
1720     echo
1721     # The following way of writing the cache mishandles newlines in values,
1722 (
1723   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1724     eval ac_val=\$$ac_var
1725     case $ac_val in #(
1726     *${as_nl}*)
1727       case $ac_var in #(
1728       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1729 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1730       esac
1731       case $ac_var in #(
1732       _ | IFS | as_nl) ;; #(
1733       *) $as_unset $ac_var ;;
1734       esac ;;
1735     esac
1736   done
1737   (set) 2>&1 |
1738     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1739     *${as_nl}ac_space=\ *)
1740       sed -n \
1741         "s/'\''/'\''\\\\'\'''\''/g;
1742           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1743       ;; #(
1744     *)
1745       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1746       ;;
1747     esac |
1748     sort
1749 )
1750     echo
1751
1752     cat <<\_ASBOX
1753 ## ----------------- ##
1754 ## Output variables. ##
1755 ## ----------------- ##
1756 _ASBOX
1757     echo
1758     for ac_var in $ac_subst_vars
1759     do
1760       eval ac_val=\$$ac_var
1761       case $ac_val in
1762       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1763       esac
1764       echo "$ac_var='\''$ac_val'\''"
1765     done | sort
1766     echo
1767
1768     if test -n "$ac_subst_files"; then
1769       cat <<\_ASBOX
1770 ## ------------------- ##
1771 ## File substitutions. ##
1772 ## ------------------- ##
1773 _ASBOX
1774       echo
1775       for ac_var in $ac_subst_files
1776       do
1777         eval ac_val=\$$ac_var
1778         case $ac_val in
1779         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1780         esac
1781         echo "$ac_var='\''$ac_val'\''"
1782       done | sort
1783       echo
1784     fi
1785
1786     if test -s confdefs.h; then
1787       cat <<\_ASBOX
1788 ## ----------- ##
1789 ## confdefs.h. ##
1790 ## ----------- ##
1791 _ASBOX
1792       echo
1793       cat confdefs.h
1794       echo
1795     fi
1796     test "$ac_signal" != 0 &&
1797       echo "$as_me: caught signal $ac_signal"
1798     echo "$as_me: exit $exit_status"
1799   } >&5
1800   rm -f core *.core core.conftest.* &&
1801     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1802     exit $exit_status
1803 ' 0
1804 for ac_signal in 1 2 13 15; do
1805   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1806 done
1807 ac_signal=0
1808
1809 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1810 rm -f -r conftest* confdefs.h
1811
1812 # Predefined preprocessor variables.
1813
1814 cat >>confdefs.h <<_ACEOF
1815 #define PACKAGE_NAME "$PACKAGE_NAME"
1816 _ACEOF
1817
1818
1819 cat >>confdefs.h <<_ACEOF
1820 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1821 _ACEOF
1822
1823
1824 cat >>confdefs.h <<_ACEOF
1825 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1826 _ACEOF
1827
1828
1829 cat >>confdefs.h <<_ACEOF
1830 #define PACKAGE_STRING "$PACKAGE_STRING"
1831 _ACEOF
1832
1833
1834 cat >>confdefs.h <<_ACEOF
1835 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1836 _ACEOF
1837
1838
1839 # Let the site file select an alternate cache file if it wants to.
1840 # Prefer explicitly selected file to automatically selected ones.
1841 if test -n "$CONFIG_SITE"; then
1842   set x "$CONFIG_SITE"
1843 elif test "x$prefix" != xNONE; then
1844   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1845 else
1846   set x "$ac_default_prefix/share/config.site" \
1847         "$ac_default_prefix/etc/config.site"
1848 fi
1849 shift
1850 for ac_site_file
1851 do
1852   if test -r "$ac_site_file"; then
1853     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1854 echo "$as_me: loading site script $ac_site_file" >&6;}
1855     sed 's/^/| /' "$ac_site_file" >&5
1856     . "$ac_site_file"
1857   fi
1858 done
1859
1860 if test -r "$cache_file"; then
1861   # Some versions of bash will fail to source /dev/null (special
1862   # files actually), so we avoid doing that.
1863   if test -f "$cache_file"; then
1864     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1865 echo "$as_me: loading cache $cache_file" >&6;}
1866     case $cache_file in
1867       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1868       *)                      . "./$cache_file";;
1869     esac
1870   fi
1871 else
1872   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1873 echo "$as_me: creating cache $cache_file" >&6;}
1874   >$cache_file
1875 fi
1876
1877 # Check that the precious variables saved in the cache have kept the same
1878 # value.
1879 ac_cache_corrupted=false
1880 for ac_var in $ac_precious_vars; do
1881   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1882   eval ac_new_set=\$ac_env_${ac_var}_set
1883   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1884   eval ac_new_val=\$ac_env_${ac_var}_value
1885   case $ac_old_set,$ac_new_set in
1886     set,)
1887       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1888 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1889       ac_cache_corrupted=: ;;
1890     ,set)
1891       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1892 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1893       ac_cache_corrupted=: ;;
1894     ,);;
1895     *)
1896       if test "x$ac_old_val" != "x$ac_new_val"; then
1897         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1898 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1899         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1900 echo "$as_me:   former value:  $ac_old_val" >&2;}
1901         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1902 echo "$as_me:   current value: $ac_new_val" >&2;}
1903         ac_cache_corrupted=:
1904       fi;;
1905   esac
1906   # Pass precious variables to config.status.
1907   if test "$ac_new_set" = set; then
1908     case $ac_new_val in
1909     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1910     *) ac_arg=$ac_var=$ac_new_val ;;
1911     esac
1912     case " $ac_configure_args " in
1913       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1914       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1915     esac
1916   fi
1917 done
1918 if $ac_cache_corrupted; then
1919   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1920 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1921   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1922 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1923    { (exit 1); exit 1; }; }
1924 fi
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942 ac_ext=c
1943 ac_cpp='$CPP $CPPFLAGS'
1944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1947
1948
1949
1950 ac_config_headers="$ac_config_headers config.h"
1951
1952
1953 SPEEX_MAJOR_VERSION=1
1954 SPEEX_MINOR_VERSION=1
1955 SPEEX_MICRO_VERSION=16
1956 SPEEX_EXTRA_VERSION=
1957 #SPEEX_VERSION=
1958 #SPEEX_VERSION=$SPEEX_MAJOR_VERSION.$SPEEX_MINOR_VERSION.$SPEEX_MICRO_VERSION$SPEEX_EXTRA_VERSION
1959 SPEEX_VERSION="1.2rc1"
1960
1961 SPEEX_LT_CURRENT=6
1962 SPEEX_LT_REVISION=0
1963 SPEEX_LT_AGE=5
1964
1965
1966
1967
1968
1969 # For automake.
1970 VERSION=$SPEEX_VERSION
1971 PACKAGE=speex
1972
1973
1974
1975 am__api_version="1.8"
1976 ac_aux_dir=
1977 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1978   if test -f "$ac_dir/install-sh"; then
1979     ac_aux_dir=$ac_dir
1980     ac_install_sh="$ac_aux_dir/install-sh -c"
1981     break
1982   elif test -f "$ac_dir/install.sh"; then
1983     ac_aux_dir=$ac_dir
1984     ac_install_sh="$ac_aux_dir/install.sh -c"
1985     break
1986   elif test -f "$ac_dir/shtool"; then
1987     ac_aux_dir=$ac_dir
1988     ac_install_sh="$ac_aux_dir/shtool install -c"
1989     break
1990   fi
1991 done
1992 if test -z "$ac_aux_dir"; then
1993   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1994 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1995    { (exit 1); exit 1; }; }
1996 fi
1997
1998 # These three variables are undocumented and unsupported,
1999 # and are intended to be withdrawn in a future Autoconf release.
2000 # They can cause serious problems if a builder's source tree is in a directory
2001 # whose full name contains unusual characters.
2002 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2003 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2004 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2005
2006
2007 # Find a good install program.  We prefer a C program (faster),
2008 # so one script is as good as another.  But avoid the broken or
2009 # incompatible versions:
2010 # SysV /etc/install, /usr/sbin/install
2011 # SunOS /usr/etc/install
2012 # IRIX /sbin/install
2013 # AIX /bin/install
2014 # AmigaOS /C/install, which installs bootblocks on floppy discs
2015 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2016 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2017 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2018 # OS/2's system install, which has a completely different semantic
2019 # ./install, which can be erroneously created by make from ./install.sh.
2020 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2021 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2022 if test -z "$INSTALL"; then
2023 if test "${ac_cv_path_install+set}" = set; then
2024   echo $ECHO_N "(cached) $ECHO_C" >&6
2025 else
2026   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2027 for as_dir in $PATH
2028 do
2029   IFS=$as_save_IFS
2030   test -z "$as_dir" && as_dir=.
2031   # Account for people who put trailing slashes in PATH elements.
2032 case $as_dir/ in
2033   ./ | .// | /cC/* | \
2034   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2035   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2036   /usr/ucb/* ) ;;
2037   *)
2038     # OSF1 and SCO ODT 3.0 have their own names for install.
2039     # Don't use installbsd from OSF since it installs stuff as root
2040     # by default.
2041     for ac_prog in ginstall scoinst install; do
2042       for ac_exec_ext in '' $ac_executable_extensions; do
2043         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2044           if test $ac_prog = install &&
2045             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2046             # AIX install.  It has an incompatible calling convention.
2047             :
2048           elif test $ac_prog = install &&
2049             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2050             # program-specific install script used by HP pwplus--don't use.
2051             :
2052           else
2053             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2054             break 3
2055           fi
2056         fi
2057       done
2058     done
2059     ;;
2060 esac
2061 done
2062 IFS=$as_save_IFS
2063
2064
2065 fi
2066   if test "${ac_cv_path_install+set}" = set; then
2067     INSTALL=$ac_cv_path_install
2068   else
2069     # As a last resort, use the slow shell script.  Don't cache a
2070     # value for INSTALL within a source directory, because that will
2071     # break other packages using the cache if that directory is
2072     # removed, or if the value is a relative name.
2073     INSTALL=$ac_install_sh
2074   fi
2075 fi
2076 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2077 echo "${ECHO_T}$INSTALL" >&6; }
2078
2079 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2080 # It thinks the first close brace ends the variable substitution.
2081 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2082
2083 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2084
2085 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2086
2087 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2088 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2089 # Just in case
2090 sleep 1
2091 echo timestamp > conftest.file
2092 # Do `set' in a subshell so we don't clobber the current shell's
2093 # arguments.  Must try -L first in case configure is actually a
2094 # symlink; some systems play weird games with the mod time of symlinks
2095 # (eg FreeBSD returns the mod time of the symlink's containing
2096 # directory).
2097 if (
2098    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2099    if test "$*" = "X"; then
2100       # -L didn't work.
2101       set X `ls -t $srcdir/configure conftest.file`
2102    fi
2103    rm -f conftest.file
2104    if test "$*" != "X $srcdir/configure conftest.file" \
2105       && test "$*" != "X conftest.file $srcdir/configure"; then
2106
2107       # If neither matched, then we have a broken ls.  This can happen
2108       # if, for instance, CONFIG_SHELL is bash and it inherits a
2109       # broken ls alias from the environment.  This has actually
2110       # happened.  Such a system could not be considered "sane".
2111       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2112 alias in your environment" >&5
2113 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2114 alias in your environment" >&2;}
2115    { (exit 1); exit 1; }; }
2116    fi
2117
2118    test "$2" = conftest.file
2119    )
2120 then
2121    # Ok.
2122    :
2123 else
2124    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2125 Check your system clock" >&5
2126 echo "$as_me: error: newly created file is older than distributed files!
2127 Check your system clock" >&2;}
2128    { (exit 1); exit 1; }; }
2129 fi
2130 { echo "$as_me:$LINENO: result: yes" >&5
2131 echo "${ECHO_T}yes" >&6; }
2132 test "$program_prefix" != NONE &&
2133   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2134 # Use a double $ so make ignores it.
2135 test "$program_suffix" != NONE &&
2136   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2137 # Double any \ or $.  echo might interpret backslashes.
2138 # By default was `s,x,x', remove it if useless.
2139 cat <<\_ACEOF >conftest.sed
2140 s/[\\$]/&&/g;s/;s,x,x,$//
2141 _ACEOF
2142 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2143 rm -f conftest.sed
2144
2145 # expand $ac_aux_dir to an absolute path
2146 am_aux_dir=`cd $ac_aux_dir && pwd`
2147
2148 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2149 # Use eval to expand $SHELL
2150 if eval "$MISSING --run true"; then
2151   am_missing_run="$MISSING --run "
2152 else
2153   am_missing_run=
2154   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2155 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2156 fi
2157
2158 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2159   # Keeping the `.' argument allows $(mkdir_p) to be used without
2160   # argument.  Indeed, we sometimes output rules like
2161   #   $(mkdir_p) $(somedir)
2162   # where $(somedir) is conditionally defined.
2163   # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
2164   # expensive solution, as it forces Make to start a sub-shell.)
2165   mkdir_p='mkdir -p -- .'
2166 else
2167   # On NextStep and OpenStep, the `mkdir' command does not
2168   # recognize any option.  It will interpret all options as
2169   # directories to create, and then abort because `.' already
2170   # exists.
2171   for d in ./-p ./--version;
2172   do
2173     test -d $d && rmdir $d
2174   done
2175   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2176   if test -f "$ac_aux_dir/mkinstalldirs"; then
2177     mkdir_p='$(mkinstalldirs)'
2178   else
2179     mkdir_p='$(install_sh) -d'
2180   fi
2181 fi
2182
2183 for ac_prog in gawk mawk nawk awk
2184 do
2185   # Extract the first word of "$ac_prog", so it can be a program name with args.
2186 set dummy $ac_prog; ac_word=$2
2187 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2189 if test "${ac_cv_prog_AWK+set}" = set; then
2190   echo $ECHO_N "(cached) $ECHO_C" >&6
2191 else
2192   if test -n "$AWK"; then
2193   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2194 else
2195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2196 for as_dir in $PATH
2197 do
2198   IFS=$as_save_IFS
2199   test -z "$as_dir" && as_dir=.
2200   for ac_exec_ext in '' $ac_executable_extensions; do
2201   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2202     ac_cv_prog_AWK="$ac_prog"
2203     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2204     break 2
2205   fi
2206 done
2207 done
2208 IFS=$as_save_IFS
2209
2210 fi
2211 fi
2212 AWK=$ac_cv_prog_AWK
2213 if test -n "$AWK"; then
2214   { echo "$as_me:$LINENO: result: $AWK" >&5
2215 echo "${ECHO_T}$AWK" >&6; }
2216 else
2217   { echo "$as_me:$LINENO: result: no" >&5
2218 echo "${ECHO_T}no" >&6; }
2219 fi
2220
2221
2222   test -n "$AWK" && break
2223 done
2224
2225 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2226 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2227 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2228 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2229   echo $ECHO_N "(cached) $ECHO_C" >&6
2230 else
2231   cat >conftest.make <<\_ACEOF
2232 SHELL = /bin/sh
2233 all:
2234         @echo '@@@%%%=$(MAKE)=@@@%%%'
2235 _ACEOF
2236 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2237 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2238   *@@@%%%=?*=@@@%%%*)
2239     eval ac_cv_prog_make_${ac_make}_set=yes;;
2240   *)
2241     eval ac_cv_prog_make_${ac_make}_set=no;;
2242 esac
2243 rm -f conftest.make
2244 fi
2245 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2246   { echo "$as_me:$LINENO: result: yes" >&5
2247 echo "${ECHO_T}yes" >&6; }
2248   SET_MAKE=
2249 else
2250   { echo "$as_me:$LINENO: result: no" >&5
2251 echo "${ECHO_T}no" >&6; }
2252   SET_MAKE="MAKE=${MAKE-make}"
2253 fi
2254
2255 rm -rf .tst 2>/dev/null
2256 mkdir .tst 2>/dev/null
2257 if test -d .tst; then
2258   am__leading_dot=.
2259 else
2260   am__leading_dot=_
2261 fi
2262 rmdir .tst 2>/dev/null
2263
2264 # test to see if srcdir already configured
2265 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2266    test -f $srcdir/config.status; then
2267   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2268 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2269    { (exit 1); exit 1; }; }
2270 fi
2271
2272 # test whether we have cygpath
2273 if test -z "$CYGPATH_W"; then
2274   if (cygpath --version) >/dev/null 2>/dev/null; then
2275     CYGPATH_W='cygpath -w'
2276   else
2277     CYGPATH_W=echo
2278   fi
2279 fi
2280
2281
2282 # Define the identity of the package.
2283  PACKAGE=$PACKAGE
2284  VERSION=$VERSION
2285
2286
2287 # Some tools Automake needs.
2288
2289 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2290
2291
2292 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2293
2294
2295 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2296
2297
2298 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2299
2300
2301 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2302
2303
2304 AMTAR=${AMTAR-"${am_missing_run}tar"}
2305
2306 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2307
2308 # Installed binaries are usually stripped using `strip' when the user
2309 # run `make install-strip'.  However `strip' might not be the right
2310 # tool to use in cross-compilation environments, therefore Automake
2311 # will honor the `STRIP' environment variable to overrule this program.
2312 if test "$cross_compiling" != no; then
2313   if test -n "$ac_tool_prefix"; then
2314   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2315 set dummy ${ac_tool_prefix}strip; ac_word=$2
2316 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2318 if test "${ac_cv_prog_STRIP+set}" = set; then
2319   echo $ECHO_N "(cached) $ECHO_C" >&6
2320 else
2321   if test -n "$STRIP"; then
2322   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2323 else
2324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2325 for as_dir in $PATH
2326 do
2327   IFS=$as_save_IFS
2328   test -z "$as_dir" && as_dir=.
2329   for ac_exec_ext in '' $ac_executable_extensions; do
2330   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2331     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2332     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2333     break 2
2334   fi
2335 done
2336 done
2337 IFS=$as_save_IFS
2338
2339 fi
2340 fi
2341 STRIP=$ac_cv_prog_STRIP
2342 if test -n "$STRIP"; then
2343   { echo "$as_me:$LINENO: result: $STRIP" >&5
2344 echo "${ECHO_T}$STRIP" >&6; }
2345 else
2346   { echo "$as_me:$LINENO: result: no" >&5
2347 echo "${ECHO_T}no" >&6; }
2348 fi
2349
2350
2351 fi
2352 if test -z "$ac_cv_prog_STRIP"; then
2353   ac_ct_STRIP=$STRIP
2354   # Extract the first word of "strip", so it can be a program name with args.
2355 set dummy strip; ac_word=$2
2356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2358 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2359   echo $ECHO_N "(cached) $ECHO_C" >&6
2360 else
2361   if test -n "$ac_ct_STRIP"; then
2362   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2363 else
2364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2365 for as_dir in $PATH
2366 do
2367   IFS=$as_save_IFS
2368   test -z "$as_dir" && as_dir=.
2369   for ac_exec_ext in '' $ac_executable_extensions; do
2370   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2371     ac_cv_prog_ac_ct_STRIP="strip"
2372     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2373     break 2
2374   fi
2375 done
2376 done
2377 IFS=$as_save_IFS
2378
2379 fi
2380 fi
2381 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2382 if test -n "$ac_ct_STRIP"; then
2383   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2384 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2385 else
2386   { echo "$as_me:$LINENO: result: no" >&5
2387 echo "${ECHO_T}no" >&6; }
2388 fi
2389
2390   if test "x$ac_ct_STRIP" = x; then
2391     STRIP=":"
2392   else
2393     case $cross_compiling:$ac_tool_warned in
2394 yes:)
2395 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2396 whose name does not start with the host triplet.  If you think this
2397 configuration is useful to you, please write to autoconf@gnu.org." >&5
2398 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2399 whose name does not start with the host triplet.  If you think this
2400 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2401 ac_tool_warned=yes ;;
2402 esac
2403     STRIP=$ac_ct_STRIP
2404   fi
2405 else
2406   STRIP="$ac_cv_prog_STRIP"
2407 fi
2408
2409 fi
2410 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2411
2412 # We need awk for the "check" target.  The system "awk" is bad on
2413 # some platforms.
2414
2415
2416
2417 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2418 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2419     # Check whether --enable-maintainer-mode was given.
2420 if test "${enable_maintainer_mode+set}" = set; then
2421   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2422 else
2423   USE_MAINTAINER_MODE=no
2424 fi
2425
2426   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2427 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2428
2429
2430 if test $USE_MAINTAINER_MODE = yes; then
2431   MAINTAINER_MODE_TRUE=
2432   MAINTAINER_MODE_FALSE='#'
2433 else
2434   MAINTAINER_MODE_TRUE='#'
2435   MAINTAINER_MODE_FALSE=
2436 fi
2437
2438   MAINT=$MAINTAINER_MODE_TRUE
2439
2440
2441
2442 # Make sure we can run config.sub.
2443 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2444   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2445 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2446    { (exit 1); exit 1; }; }
2447
2448 { echo "$as_me:$LINENO: checking build system type" >&5
2449 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2450 if test "${ac_cv_build+set}" = set; then
2451   echo $ECHO_N "(cached) $ECHO_C" >&6
2452 else
2453   ac_build_alias=$build_alias
2454 test "x$ac_build_alias" = x &&
2455   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2456 test "x$ac_build_alias" = x &&
2457   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2458 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2459    { (exit 1); exit 1; }; }
2460 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2461   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2462 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2463    { (exit 1); exit 1; }; }
2464
2465 fi
2466 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2467 echo "${ECHO_T}$ac_cv_build" >&6; }
2468 case $ac_cv_build in
2469 *-*-*) ;;
2470 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2471 echo "$as_me: error: invalid value of canonical build" >&2;}
2472    { (exit 1); exit 1; }; };;
2473 esac
2474 build=$ac_cv_build
2475 ac_save_IFS=$IFS; IFS='-'
2476 set x $ac_cv_build
2477 shift
2478 build_cpu=$1
2479 build_vendor=$2
2480 shift; shift
2481 # Remember, the first character of IFS is used to create $*,
2482 # except with old shells:
2483 build_os=$*
2484 IFS=$ac_save_IFS
2485 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2486
2487
2488 { echo "$as_me:$LINENO: checking host system type" >&5
2489 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2490 if test "${ac_cv_host+set}" = set; then
2491   echo $ECHO_N "(cached) $ECHO_C" >&6
2492 else
2493   if test "x$host_alias" = x; then
2494   ac_cv_host=$ac_cv_build
2495 else
2496   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2497     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2498 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2499    { (exit 1); exit 1; }; }
2500 fi
2501
2502 fi
2503 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2504 echo "${ECHO_T}$ac_cv_host" >&6; }
2505 case $ac_cv_host in
2506 *-*-*) ;;
2507 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2508 echo "$as_me: error: invalid value of canonical host" >&2;}
2509    { (exit 1); exit 1; }; };;
2510 esac
2511 host=$ac_cv_host
2512 ac_save_IFS=$IFS; IFS='-'
2513 set x $ac_cv_host
2514 shift
2515 host_cpu=$1
2516 host_vendor=$2
2517 shift; shift
2518 # Remember, the first character of IFS is used to create $*,
2519 # except with old shells:
2520 host_os=$*
2521 IFS=$ac_save_IFS
2522 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2523
2524
2525 enable_win32_dll=yes
2526
2527 case $host in
2528 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
2529   if test -n "$ac_tool_prefix"; then
2530   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2531 set dummy ${ac_tool_prefix}as; ac_word=$2
2532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2534 if test "${ac_cv_prog_AS+set}" = set; then
2535   echo $ECHO_N "(cached) $ECHO_C" >&6
2536 else
2537   if test -n "$AS"; then
2538   ac_cv_prog_AS="$AS" # Let the user override the test.
2539 else
2540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2541 for as_dir in $PATH
2542 do
2543   IFS=$as_save_IFS
2544   test -z "$as_dir" && as_dir=.
2545   for ac_exec_ext in '' $ac_executable_extensions; do
2546   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2547     ac_cv_prog_AS="${ac_tool_prefix}as"
2548     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2549     break 2
2550   fi
2551 done
2552 done
2553 IFS=$as_save_IFS
2554
2555 fi
2556 fi
2557 AS=$ac_cv_prog_AS
2558 if test -n "$AS"; then
2559   { echo "$as_me:$LINENO: result: $AS" >&5
2560 echo "${ECHO_T}$AS" >&6; }
2561 else
2562   { echo "$as_me:$LINENO: result: no" >&5
2563 echo "${ECHO_T}no" >&6; }
2564 fi
2565
2566
2567 fi
2568 if test -z "$ac_cv_prog_AS"; then
2569   ac_ct_AS=$AS
2570   # Extract the first word of "as", so it can be a program name with args.
2571 set dummy as; ac_word=$2
2572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2574 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
2575   echo $ECHO_N "(cached) $ECHO_C" >&6
2576 else
2577   if test -n "$ac_ct_AS"; then
2578   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
2579 else
2580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2581 for as_dir in $PATH
2582 do
2583   IFS=$as_save_IFS
2584   test -z "$as_dir" && as_dir=.
2585   for ac_exec_ext in '' $ac_executable_extensions; do
2586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2587     ac_cv_prog_ac_ct_AS="as"
2588     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2589     break 2
2590   fi
2591 done
2592 done
2593 IFS=$as_save_IFS
2594
2595 fi
2596 fi
2597 ac_ct_AS=$ac_cv_prog_ac_ct_AS
2598 if test -n "$ac_ct_AS"; then
2599   { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
2600 echo "${ECHO_T}$ac_ct_AS" >&6; }
2601 else
2602   { echo "$as_me:$LINENO: result: no" >&5
2603 echo "${ECHO_T}no" >&6; }
2604 fi
2605
2606   if test "x$ac_ct_AS" = x; then
2607     AS="false"
2608   else
2609     case $cross_compiling:$ac_tool_warned in
2610 yes:)
2611 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2612 whose name does not start with the host triplet.  If you think this
2613 configuration is useful to you, please write to autoconf@gnu.org." >&5
2614 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2615 whose name does not start with the host triplet.  If you think this
2616 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2617 ac_tool_warned=yes ;;
2618 esac
2619     AS=$ac_ct_AS
2620   fi
2621 else
2622   AS="$ac_cv_prog_AS"
2623 fi
2624
2625   if test -n "$ac_tool_prefix"; then
2626   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
2627 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
2628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2630 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
2631   echo $ECHO_N "(cached) $ECHO_C" >&6
2632 else
2633   if test -n "$DLLTOOL"; then
2634   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2635 else
2636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2637 for as_dir in $PATH
2638 do
2639   IFS=$as_save_IFS
2640   test -z "$as_dir" && as_dir=.
2641   for ac_exec_ext in '' $ac_executable_extensions; do
2642   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2643     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
2644     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2645     break 2
2646   fi
2647 done
2648 done
2649 IFS=$as_save_IFS
2650
2651 fi
2652 fi
2653 DLLTOOL=$ac_cv_prog_DLLTOOL
2654 if test -n "$DLLTOOL"; then
2655   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
2656 echo "${ECHO_T}$DLLTOOL" >&6; }
2657 else
2658   { echo "$as_me:$LINENO: result: no" >&5
2659 echo "${ECHO_T}no" >&6; }
2660 fi
2661
2662
2663 fi
2664 if test -z "$ac_cv_prog_DLLTOOL"; then
2665   ac_ct_DLLTOOL=$DLLTOOL
2666   # Extract the first word of "dlltool", so it can be a program name with args.
2667 set dummy dlltool; ac_word=$2
2668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2670 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
2671   echo $ECHO_N "(cached) $ECHO_C" >&6
2672 else
2673   if test -n "$ac_ct_DLLTOOL"; then
2674   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
2675 else
2676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2677 for as_dir in $PATH
2678 do
2679   IFS=$as_save_IFS
2680   test -z "$as_dir" && as_dir=.
2681   for ac_exec_ext in '' $ac_executable_extensions; do
2682   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2683     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
2684     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2685     break 2
2686   fi
2687 done
2688 done
2689 IFS=$as_save_IFS
2690
2691 fi
2692 fi
2693 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
2694 if test -n "$ac_ct_DLLTOOL"; then
2695   { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
2696 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
2697 else
2698   { echo "$as_me:$LINENO: result: no" >&5
2699 echo "${ECHO_T}no" >&6; }
2700 fi
2701
2702   if test "x$ac_ct_DLLTOOL" = x; then
2703     DLLTOOL="false"
2704   else
2705     case $cross_compiling:$ac_tool_warned in
2706 yes:)
2707 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2708 whose name does not start with the host triplet.  If you think this
2709 configuration is useful to you, please write to autoconf@gnu.org." >&5
2710 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2711 whose name does not start with the host triplet.  If you think this
2712 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2713 ac_tool_warned=yes ;;
2714 esac
2715     DLLTOOL=$ac_ct_DLLTOOL
2716   fi
2717 else
2718   DLLTOOL="$ac_cv_prog_DLLTOOL"
2719 fi
2720
2721   if test -n "$ac_tool_prefix"; then
2722   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
2723 set dummy ${ac_tool_prefix}objdump; ac_word=$2
2724 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2726 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
2727   echo $ECHO_N "(cached) $ECHO_C" >&6
2728 else
2729   if test -n "$OBJDUMP"; then
2730   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
2731 else
2732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2733 for as_dir in $PATH
2734 do
2735   IFS=$as_save_IFS
2736   test -z "$as_dir" && as_dir=.
2737   for ac_exec_ext in '' $ac_executable_extensions; do
2738   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2739     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
2740     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2741     break 2
2742   fi
2743 done
2744 done
2745 IFS=$as_save_IFS
2746
2747 fi
2748 fi
2749 OBJDUMP=$ac_cv_prog_OBJDUMP
2750 if test -n "$OBJDUMP"; then
2751   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
2752 echo "${ECHO_T}$OBJDUMP" >&6; }
2753 else
2754   { echo "$as_me:$LINENO: result: no" >&5
2755 echo "${ECHO_T}no" >&6; }
2756 fi
2757
2758
2759 fi
2760 if test -z "$ac_cv_prog_OBJDUMP"; then
2761   ac_ct_OBJDUMP=$OBJDUMP
2762   # Extract the first word of "objdump", so it can be a program name with args.
2763 set dummy objdump; ac_word=$2
2764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2766 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
2767   echo $ECHO_N "(cached) $ECHO_C" >&6
2768 else
2769   if test -n "$ac_ct_OBJDUMP"; then
2770   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
2771 else
2772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2773 for as_dir in $PATH
2774 do
2775   IFS=$as_save_IFS
2776   test -z "$as_dir" && as_dir=.
2777   for ac_exec_ext in '' $ac_executable_extensions; do
2778   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2779     ac_cv_prog_ac_ct_OBJDUMP="objdump"
2780     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2781     break 2
2782   fi
2783 done
2784 done
2785 IFS=$as_save_IFS
2786
2787 fi
2788 fi
2789 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
2790 if test -n "$ac_ct_OBJDUMP"; then
2791   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
2792 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
2793 else
2794   { echo "$as_me:$LINENO: result: no" >&5
2795 echo "${ECHO_T}no" >&6; }
2796 fi
2797
2798   if test "x$ac_ct_OBJDUMP" = x; then
2799     OBJDUMP="false"
2800   else
2801     case $cross_compiling:$ac_tool_warned in
2802 yes:)
2803 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2804 whose name does not start with the host triplet.  If you think this
2805 configuration is useful to you, please write to autoconf@gnu.org." >&5
2806 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2807 whose name does not start with the host triplet.  If you think this
2808 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2809 ac_tool_warned=yes ;;
2810 esac
2811     OBJDUMP=$ac_ct_OBJDUMP
2812   fi
2813 else
2814   OBJDUMP="$ac_cv_prog_OBJDUMP"
2815 fi
2816
2817   ;;
2818 esac
2819
2820 test -z "$AS" && AS=as
2821
2822
2823
2824
2825
2826 test -z "$DLLTOOL" && DLLTOOL=dlltool
2827
2828
2829
2830
2831
2832 test -z "$OBJDUMP" && OBJDUMP=objdump
2833
2834
2835
2836
2837
2838
2839
2840 case `pwd` in
2841   *\ * | *\     *)
2842     { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2843 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2844 esac
2845
2846
2847
2848 macro_version='2.2.4'
2849 macro_revision='1.2976'
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863 ltmain="$ac_aux_dir/ltmain.sh"
2864
2865 DEPDIR="${am__leading_dot}deps"
2866
2867 ac_config_commands="$ac_config_commands depfiles"
2868
2869
2870 am_make=${MAKE-make}
2871 cat > confinc << 'END'
2872 am__doit:
2873         @echo done
2874 .PHONY: am__doit
2875 END
2876 # If we don't find an include directive, just comment out the code.
2877 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2878 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2879 am__include="#"
2880 am__quote=
2881 _am_result=none
2882 # First try GNU make style include.
2883 echo "include confinc" > confmf
2884 # We grep out `Entering directory' and `Leaving directory'
2885 # messages which can occur if `w' ends up in MAKEFLAGS.
2886 # In particular we don't look at `^make:' because GNU make might
2887 # be invoked under some other name (usually "gmake"), in which
2888 # case it prints its new name instead of `make'.
2889 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2890    am__include=include
2891    am__quote=
2892    _am_result=GNU
2893 fi
2894 # Now try BSD make style include.
2895 if test "$am__include" = "#"; then
2896    echo '.include "confinc"' > confmf
2897    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2898       am__include=.include
2899       am__quote="\""
2900       _am_result=BSD
2901    fi
2902 fi
2903
2904
2905 { echo "$as_me:$LINENO: result: $_am_result" >&5
2906 echo "${ECHO_T}$_am_result" >&6; }
2907 rm -f confinc confmf
2908
2909 # Check whether --enable-dependency-tracking was given.
2910 if test "${enable_dependency_tracking+set}" = set; then
2911   enableval=$enable_dependency_tracking;
2912 fi
2913
2914 if test "x$enable_dependency_tracking" != xno; then
2915   am_depcomp="$ac_aux_dir/depcomp"
2916   AMDEPBACKSLASH='\'
2917 fi
2918
2919
2920 if test "x$enable_dependency_tracking" != xno; then
2921   AMDEP_TRUE=
2922   AMDEP_FALSE='#'
2923 else
2924   AMDEP_TRUE='#'
2925   AMDEP_FALSE=
2926 fi
2927
2928
2929
2930 ac_ext=c
2931 ac_cpp='$CPP $CPPFLAGS'
2932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2935 if test -n "$ac_tool_prefix"; then
2936   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2937 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2938 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2940 if test "${ac_cv_prog_CC+set}" = set; then
2941   echo $ECHO_N "(cached) $ECHO_C" >&6
2942 else
2943   if test -n "$CC"; then
2944   ac_cv_prog_CC="$CC" # Let the user override the test.
2945 else
2946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947 for as_dir in $PATH
2948 do
2949   IFS=$as_save_IFS
2950   test -z "$as_dir" && as_dir=.
2951   for ac_exec_ext in '' $ac_executable_extensions; do
2952   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2953     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2954     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2955     break 2
2956   fi
2957 done
2958 done
2959 IFS=$as_save_IFS
2960
2961 fi
2962 fi
2963 CC=$ac_cv_prog_CC
2964 if test -n "$CC"; then
2965   { echo "$as_me:$LINENO: result: $CC" >&5
2966 echo "${ECHO_T}$CC" >&6; }
2967 else
2968   { echo "$as_me:$LINENO: result: no" >&5
2969 echo "${ECHO_T}no" >&6; }
2970 fi
2971
2972
2973 fi
2974 if test -z "$ac_cv_prog_CC"; then
2975   ac_ct_CC=$CC
2976   # Extract the first word of "gcc", so it can be a program name with args.
2977 set dummy gcc; ac_word=$2
2978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2980 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2981   echo $ECHO_N "(cached) $ECHO_C" >&6
2982 else
2983   if test -n "$ac_ct_CC"; then
2984   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2985 else
2986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2987 for as_dir in $PATH
2988 do
2989   IFS=$as_save_IFS
2990   test -z "$as_dir" && as_dir=.
2991   for ac_exec_ext in '' $ac_executable_extensions; do
2992   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2993     ac_cv_prog_ac_ct_CC="gcc"
2994     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2995     break 2
2996   fi
2997 done
2998 done
2999 IFS=$as_save_IFS
3000
3001 fi
3002 fi
3003 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3004 if test -n "$ac_ct_CC"; then
3005   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3006 echo "${ECHO_T}$ac_ct_CC" >&6; }
3007 else
3008   { echo "$as_me:$LINENO: result: no" >&5
3009 echo "${ECHO_T}no" >&6; }
3010 fi
3011
3012   if test "x$ac_ct_CC" = x; then
3013     CC=""
3014   else
3015     case $cross_compiling:$ac_tool_warned in
3016 yes:)
3017 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3018 whose name does not start with the host triplet.  If you think this
3019 configuration is useful to you, please write to autoconf@gnu.org." >&5
3020 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3021 whose name does not start with the host triplet.  If you think this
3022 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3023 ac_tool_warned=yes ;;
3024 esac
3025     CC=$ac_ct_CC
3026   fi
3027 else
3028   CC="$ac_cv_prog_CC"
3029 fi
3030
3031 if test -z "$CC"; then
3032           if test -n "$ac_tool_prefix"; then
3033     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3034 set dummy ${ac_tool_prefix}cc; ac_word=$2
3035 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3037 if test "${ac_cv_prog_CC+set}" = set; then
3038   echo $ECHO_N "(cached) $ECHO_C" >&6
3039 else
3040   if test -n "$CC"; then
3041   ac_cv_prog_CC="$CC" # Let the user override the test.
3042 else
3043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3044 for as_dir in $PATH
3045 do
3046   IFS=$as_save_IFS
3047   test -z "$as_dir" && as_dir=.
3048   for ac_exec_ext in '' $ac_executable_extensions; do
3049   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3050     ac_cv_prog_CC="${ac_tool_prefix}cc"
3051     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3052     break 2
3053   fi
3054 done
3055 done
3056 IFS=$as_save_IFS
3057
3058 fi
3059 fi
3060 CC=$ac_cv_prog_CC
3061 if test -n "$CC"; then
3062   { echo "$as_me:$LINENO: result: $CC" >&5
3063 echo "${ECHO_T}$CC" >&6; }
3064 else
3065   { echo "$as_me:$LINENO: result: no" >&5
3066 echo "${ECHO_T}no" >&6; }
3067 fi
3068
3069
3070   fi
3071 fi
3072 if test -z "$CC"; then
3073   # Extract the first word of "cc", so it can be a program name with args.
3074 set dummy cc; ac_word=$2
3075 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3077 if test "${ac_cv_prog_CC+set}" = set; then
3078   echo $ECHO_N "(cached) $ECHO_C" >&6
3079 else
3080   if test -n "$CC"; then
3081   ac_cv_prog_CC="$CC" # Let the user override the test.
3082 else
3083   ac_prog_rejected=no
3084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085 for as_dir in $PATH
3086 do
3087   IFS=$as_save_IFS
3088   test -z "$as_dir" && as_dir=.
3089   for ac_exec_ext in '' $ac_executable_extensions; do
3090   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3091     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3092        ac_prog_rejected=yes
3093        continue
3094      fi
3095     ac_cv_prog_CC="cc"
3096     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3097     break 2
3098   fi
3099 done
3100 done
3101 IFS=$as_save_IFS
3102
3103 if test $ac_prog_rejected = yes; then
3104   # We found a bogon in the path, so make sure we never use it.
3105   set dummy $ac_cv_prog_CC
3106   shift
3107   if test $# != 0; then
3108     # We chose a different compiler from the bogus one.
3109     # However, it has the same basename, so the bogon will be chosen
3110     # first if we set CC to just the basename; use the full file name.
3111     shift
3112     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3113   fi
3114 fi
3115 fi
3116 fi
3117 CC=$ac_cv_prog_CC
3118 if test -n "$CC"; then
3119   { echo "$as_me:$LINENO: result: $CC" >&5
3120 echo "${ECHO_T}$CC" >&6; }
3121 else
3122   { echo "$as_me:$LINENO: result: no" >&5
3123 echo "${ECHO_T}no" >&6; }
3124 fi
3125
3126
3127 fi
3128 if test -z "$CC"; then
3129   if test -n "$ac_tool_prefix"; then
3130   for ac_prog in cl.exe
3131   do
3132     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3133 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3134 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3136 if test "${ac_cv_prog_CC+set}" = set; then
3137   echo $ECHO_N "(cached) $ECHO_C" >&6
3138 else
3139   if test -n "$CC"; then
3140   ac_cv_prog_CC="$CC" # Let the user override the test.
3141 else
3142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3143 for as_dir in $PATH
3144 do
3145   IFS=$as_save_IFS
3146   test -z "$as_dir" && as_dir=.
3147   for ac_exec_ext in '' $ac_executable_extensions; do
3148   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3149     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3150     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3151     break 2
3152   fi
3153 done
3154 done
3155 IFS=$as_save_IFS
3156
3157 fi
3158 fi
3159 CC=$ac_cv_prog_CC
3160 if test -n "$CC"; then
3161   { echo "$as_me:$LINENO: result: $CC" >&5
3162 echo "${ECHO_T}$CC" >&6; }
3163 else
3164   { echo "$as_me:$LINENO: result: no" >&5
3165 echo "${ECHO_T}no" >&6; }
3166 fi
3167
3168
3169     test -n "$CC" && break
3170   done
3171 fi
3172 if test -z "$CC"; then
3173   ac_ct_CC=$CC
3174   for ac_prog in cl.exe
3175 do
3176   # Extract the first word of "$ac_prog", so it can be a program name with args.
3177 set dummy $ac_prog; ac_word=$2
3178 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3180 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3181   echo $ECHO_N "(cached) $ECHO_C" >&6
3182 else
3183   if test -n "$ac_ct_CC"; then
3184   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3185 else
3186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3187 for as_dir in $PATH
3188 do
3189   IFS=$as_save_IFS
3190   test -z "$as_dir" && as_dir=.
3191   for ac_exec_ext in '' $ac_executable_extensions; do
3192   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3193     ac_cv_prog_ac_ct_CC="$ac_prog"
3194     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3195     break 2
3196   fi
3197 done
3198 done
3199 IFS=$as_save_IFS
3200
3201 fi
3202 fi
3203 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3204 if test -n "$ac_ct_CC"; then
3205   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3206 echo "${ECHO_T}$ac_ct_CC" >&6; }
3207 else
3208   { echo "$as_me:$LINENO: result: no" >&5
3209 echo "${ECHO_T}no" >&6; }
3210 fi
3211
3212
3213   test -n "$ac_ct_CC" && break
3214 done
3215
3216   if test "x$ac_ct_CC" = x; then
3217     CC=""
3218   else
3219     case $cross_compiling:$ac_tool_warned in
3220 yes:)
3221 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3222 whose name does not start with the host triplet.  If you think this
3223 configuration is useful to you, please write to autoconf@gnu.org." >&5
3224 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3225 whose name does not start with the host triplet.  If you think this
3226 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3227 ac_tool_warned=yes ;;
3228 esac
3229     CC=$ac_ct_CC
3230   fi
3231 fi
3232
3233 fi
3234
3235
3236 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3237 See \`config.log' for more details." >&5
3238 echo "$as_me: error: no acceptable C compiler found in \$PATH
3239 See \`config.log' for more details." >&2;}
3240    { (exit 1); exit 1; }; }
3241
3242 # Provide some information about the compiler.
3243 echo "$as_me:$LINENO: checking for C compiler version" >&5
3244 ac_compiler=`set X $ac_compile; echo $2`
3245 { (ac_try="$ac_compiler --version >&5"
3246 case "(($ac_try" in
3247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248   *) ac_try_echo=$ac_try;;
3249 esac
3250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3251   (eval "$ac_compiler --version >&5") 2>&5
3252   ac_status=$?
3253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254   (exit $ac_status); }
3255 { (ac_try="$ac_compiler -v >&5"
3256 case "(($ac_try" in
3257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3258   *) ac_try_echo=$ac_try;;
3259 esac
3260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3261   (eval "$ac_compiler -v >&5") 2>&5
3262   ac_status=$?
3263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264   (exit $ac_status); }
3265 { (ac_try="$ac_compiler -V >&5"
3266 case "(($ac_try" in
3267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268   *) ac_try_echo=$ac_try;;
3269 esac
3270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3271   (eval "$ac_compiler -V >&5") 2>&5
3272   ac_status=$?
3273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274   (exit $ac_status); }
3275
3276 cat >conftest.$ac_ext <<_ACEOF
3277 /* confdefs.h.  */
3278 _ACEOF
3279 cat confdefs.h >>conftest.$ac_ext
3280 cat >>conftest.$ac_ext <<_ACEOF
3281 /* end confdefs.h.  */
3282
3283 int
3284 main ()
3285 {
3286
3287   ;
3288   return 0;
3289 }
3290 _ACEOF
3291 ac_clean_files_save=$ac_clean_files
3292 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3293 # Try to create an executable without -o first, disregard a.out.
3294 # It will help us diagnose broken compilers, and finding out an intuition
3295 # of exeext.
3296 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3297 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3298 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3299 #
3300 # List of possible output files, starting from the most likely.
3301 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3302 # only as a last resort.  b.out is created by i960 compilers.
3303 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3304 #
3305 # The IRIX 6 linker writes into existing files which may not be
3306 # executable, retaining their permissions.  Remove them first so a
3307 # subsequent execution test works.
3308 ac_rmfiles=
3309 for ac_file in $ac_files
3310 do
3311   case $ac_file in
3312     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3313     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3314   esac
3315 done
3316 rm -f $ac_rmfiles
3317
3318 if { (ac_try="$ac_link_default"
3319 case "(($ac_try" in
3320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321   *) ac_try_echo=$ac_try;;
3322 esac
3323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3324   (eval "$ac_link_default") 2>&5
3325   ac_status=$?
3326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327   (exit $ac_status); }; then
3328   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3329 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3330 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3331 # so that the user can short-circuit this test for compilers unknown to
3332 # Autoconf.
3333 for ac_file in $ac_files ''
3334 do
3335   test -f "$ac_file" || continue
3336   case $ac_file in
3337     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3338         ;;
3339     [ab].out )
3340         # We found the default executable, but exeext='' is most
3341         # certainly right.
3342         break;;
3343     *.* )
3344         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3345         then :; else
3346            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3347         fi
3348         # We set ac_cv_exeext here because the later test for it is not
3349         # safe: cross compilers may not add the suffix if given an `-o'
3350         # argument, so we may need to know it at that point already.
3351         # Even if this section looks crufty: it has the advantage of
3352         # actually working.
3353         break;;
3354     * )
3355         break;;
3356   esac
3357 done
3358 test "$ac_cv_exeext" = no && ac_cv_exeext=
3359
3360 else
3361   ac_file=''
3362 fi
3363
3364 { echo "$as_me:$LINENO: result: $ac_file" >&5
3365 echo "${ECHO_T}$ac_file" >&6; }
3366 if test -z "$ac_file"; then
3367   echo "$as_me: failed program was:" >&5
3368 sed 's/^/| /' conftest.$ac_ext >&5
3369
3370 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3371 See \`config.log' for more details." >&5
3372 echo "$as_me: error: C compiler cannot create executables
3373 See \`config.log' for more details." >&2;}
3374    { (exit 77); exit 77; }; }
3375 fi
3376
3377 ac_exeext=$ac_cv_exeext
3378
3379 # Check that the compiler produces executables we can run.  If not, either
3380 # the compiler is broken, or we cross compile.
3381 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3382 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3383 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3384 # If not cross compiling, check that we can run a simple program.
3385 if test "$cross_compiling" != yes; then
3386   if { ac_try='./$ac_file'
3387   { (case "(($ac_try" in
3388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3389   *) ac_try_echo=$ac_try;;
3390 esac
3391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3392   (eval "$ac_try") 2>&5
3393   ac_status=$?
3394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395   (exit $ac_status); }; }; then
3396     cross_compiling=no
3397   else
3398     if test "$cross_compiling" = maybe; then
3399         cross_compiling=yes
3400     else
3401         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3402 If you meant to cross compile, use \`--host'.
3403 See \`config.log' for more details." >&5
3404 echo "$as_me: error: cannot run C compiled programs.
3405 If you meant to cross compile, use \`--host'.
3406 See \`config.log' for more details." >&2;}
3407    { (exit 1); exit 1; }; }
3408     fi
3409   fi
3410 fi
3411 { echo "$as_me:$LINENO: result: yes" >&5
3412 echo "${ECHO_T}yes" >&6; }
3413
3414 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3415 ac_clean_files=$ac_clean_files_save
3416 # Check that the compiler produces executables we can run.  If not, either
3417 # the compiler is broken, or we cross compile.
3418 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3419 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3420 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3421 echo "${ECHO_T}$cross_compiling" >&6; }
3422
3423 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3424 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3425 if { (ac_try="$ac_link"
3426 case "(($ac_try" in
3427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428   *) ac_try_echo=$ac_try;;
3429 esac
3430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3431   (eval "$ac_link") 2>&5
3432   ac_status=$?
3433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434   (exit $ac_status); }; then
3435   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3436 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3437 # work properly (i.e., refer to `conftest.exe'), while it won't with
3438 # `rm'.
3439 for ac_file in conftest.exe conftest conftest.*; do
3440   test -f "$ac_file" || continue
3441   case $ac_file in
3442     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3443     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3444           break;;
3445     * ) break;;
3446   esac
3447 done
3448 else
3449   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3450 See \`config.log' for more details." >&5
3451 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3452 See \`config.log' for more details." >&2;}
3453    { (exit 1); exit 1; }; }
3454 fi
3455
3456 rm -f conftest$ac_cv_exeext
3457 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3458 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3459
3460 rm -f conftest.$ac_ext
3461 EXEEXT=$ac_cv_exeext
3462 ac_exeext=$EXEEXT
3463 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3464 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3465 if test "${ac_cv_objext+set}" = set; then
3466   echo $ECHO_N "(cached) $ECHO_C" >&6
3467 else
3468   cat >conftest.$ac_ext <<_ACEOF
3469 /* confdefs.h.  */
3470 _ACEOF
3471 cat confdefs.h >>conftest.$ac_ext
3472 cat >>conftest.$ac_ext <<_ACEOF
3473 /* end confdefs.h.  */
3474
3475 int
3476 main ()
3477 {
3478
3479   ;
3480   return 0;
3481 }
3482 _ACEOF
3483 rm -f conftest.o conftest.obj
3484 if { (ac_try="$ac_compile"
3485 case "(($ac_try" in
3486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3487   *) ac_try_echo=$ac_try;;
3488 esac
3489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3490   (eval "$ac_compile") 2>&5
3491   ac_status=$?
3492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493   (exit $ac_status); }; then
3494   for ac_file in conftest.o conftest.obj conftest.*; do
3495   test -f "$ac_file" || continue;
3496   case $ac_file in
3497     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3498     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3499        break;;
3500   esac
3501 done
3502 else
3503   echo "$as_me: failed program was:" >&5
3504 sed 's/^/| /' conftest.$ac_ext >&5
3505
3506 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3507 See \`config.log' for more details." >&5
3508 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3509 See \`config.log' for more details." >&2;}
3510    { (exit 1); exit 1; }; }
3511 fi
3512
3513 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3514 fi
3515 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3516 echo "${ECHO_T}$ac_cv_objext" >&6; }
3517 OBJEXT=$ac_cv_objext
3518 ac_objext=$OBJEXT
3519 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3520 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3521 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3522   echo $ECHO_N "(cached) $ECHO_C" >&6
3523 else
3524   cat >conftest.$ac_ext <<_ACEOF
3525 /* confdefs.h.  */
3526 _ACEOF
3527 cat confdefs.h >>conftest.$ac_ext
3528 cat >>conftest.$ac_ext <<_ACEOF
3529 /* end confdefs.h.  */
3530
3531 int
3532 main ()
3533 {
3534 #ifndef __GNUC__
3535        choke me
3536 #endif
3537
3538   ;
3539   return 0;
3540 }
3541 _ACEOF
3542 rm -f conftest.$ac_objext
3543 if { (ac_try="$ac_compile"
3544 case "(($ac_try" in
3545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3546   *) ac_try_echo=$ac_try;;
3547 esac
3548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3549   (eval "$ac_compile") 2>conftest.er1
3550   ac_status=$?
3551   grep -v '^ *+' conftest.er1 >conftest.err
3552   rm -f conftest.er1
3553   cat conftest.err >&5
3554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555   (exit $ac_status); } && {
3556          test -z "$ac_c_werror_flag" ||
3557          test ! -s conftest.err
3558        } && test -s conftest.$ac_objext; then
3559   ac_compiler_gnu=yes
3560 else
3561   echo "$as_me: failed program was:" >&5
3562 sed 's/^/| /' conftest.$ac_ext >&5
3563
3564         ac_compiler_gnu=no
3565 fi
3566
3567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3568 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3569
3570 fi
3571 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3572 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3573 GCC=`test $ac_compiler_gnu = yes && echo yes`
3574 ac_test_CFLAGS=${CFLAGS+set}
3575 ac_save_CFLAGS=$CFLAGS
3576 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3577 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3578 if test "${ac_cv_prog_cc_g+set}" = set; then
3579   echo $ECHO_N "(cached) $ECHO_C" >&6
3580 else
3581   ac_save_c_werror_flag=$ac_c_werror_flag
3582    ac_c_werror_flag=yes
3583    ac_cv_prog_cc_g=no
3584    CFLAGS="-g"
3585    cat >conftest.$ac_ext <<_ACEOF
3586 /* confdefs.h.  */
3587 _ACEOF
3588 cat confdefs.h >>conftest.$ac_ext
3589 cat >>conftest.$ac_ext <<_ACEOF
3590 /* end confdefs.h.  */
3591
3592 int
3593 main ()
3594 {
3595
3596   ;
3597   return 0;
3598 }
3599 _ACEOF
3600 rm -f conftest.$ac_objext
3601 if { (ac_try="$ac_compile"
3602 case "(($ac_try" in
3603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604   *) ac_try_echo=$ac_try;;
3605 esac
3606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3607   (eval "$ac_compile") 2>conftest.er1
3608   ac_status=$?
3609   grep -v '^ *+' conftest.er1 >conftest.err
3610   rm -f conftest.er1
3611   cat conftest.err >&5
3612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613   (exit $ac_status); } && {
3614          test -z "$ac_c_werror_flag" ||
3615          test ! -s conftest.err
3616        } && test -s conftest.$ac_objext; then
3617   ac_cv_prog_cc_g=yes
3618 else
3619   echo "$as_me: failed program was:" >&5
3620 sed 's/^/| /' conftest.$ac_ext >&5
3621
3622         CFLAGS=""
3623       cat >conftest.$ac_ext <<_ACEOF
3624 /* confdefs.h.  */
3625 _ACEOF
3626 cat confdefs.h >>conftest.$ac_ext
3627 cat >>conftest.$ac_ext <<_ACEOF
3628 /* end confdefs.h.  */
3629
3630 int
3631 main ()
3632 {
3633
3634   ;
3635   return 0;
3636 }
3637 _ACEOF
3638 rm -f conftest.$ac_objext
3639 if { (ac_try="$ac_compile"
3640 case "(($ac_try" in
3641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3642   *) ac_try_echo=$ac_try;;
3643 esac
3644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3645   (eval "$ac_compile") 2>conftest.er1
3646   ac_status=$?
3647   grep -v '^ *+' conftest.er1 >conftest.err
3648   rm -f conftest.er1
3649   cat conftest.err >&5
3650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651   (exit $ac_status); } && {
3652          test -z "$ac_c_werror_flag" ||
3653          test ! -s conftest.err
3654        } && test -s conftest.$ac_objext; then
3655   :
3656 else
3657   echo "$as_me: failed program was:" >&5
3658 sed 's/^/| /' conftest.$ac_ext >&5
3659
3660         ac_c_werror_flag=$ac_save_c_werror_flag
3661          CFLAGS="-g"
3662          cat >conftest.$ac_ext <<_ACEOF
3663 /* confdefs.h.  */
3664 _ACEOF
3665 cat confdefs.h >>conftest.$ac_ext
3666 cat >>conftest.$ac_ext <<_ACEOF
3667 /* end confdefs.h.  */
3668
3669 int
3670 main ()
3671 {
3672
3673   ;
3674   return 0;
3675 }
3676 _ACEOF
3677 rm -f conftest.$ac_objext
3678 if { (ac_try="$ac_compile"
3679 case "(($ac_try" in
3680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3681   *) ac_try_echo=$ac_try;;
3682 esac
3683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3684   (eval "$ac_compile") 2>conftest.er1
3685   ac_status=$?
3686   grep -v '^ *+' conftest.er1 >conftest.err
3687   rm -f conftest.er1
3688   cat conftest.err >&5
3689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690   (exit $ac_status); } && {
3691          test -z "$ac_c_werror_flag" ||
3692          test ! -s conftest.err
3693        } && test -s conftest.$ac_objext; then
3694   ac_cv_prog_cc_g=yes
3695 else
3696   echo "$as_me: failed program was:" >&5
3697 sed 's/^/| /' conftest.$ac_ext >&5
3698
3699
3700 fi
3701
3702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3703 fi
3704
3705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3706 fi
3707
3708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3709    ac_c_werror_flag=$ac_save_c_werror_flag
3710 fi
3711 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3712 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3713 if test "$ac_test_CFLAGS" = set; then
3714   CFLAGS=$ac_save_CFLAGS
3715 elif test $ac_cv_prog_cc_g = yes; then
3716   if test "$GCC" = yes; then
3717     CFLAGS="-g -O2"
3718   else
3719     CFLAGS="-g"
3720   fi
3721 else
3722   if test "$GCC" = yes; then
3723     CFLAGS="-O2"
3724   else
3725     CFLAGS=
3726   fi
3727 fi
3728 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3729 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3730 if test "${ac_cv_prog_cc_c89+set}" = set; then
3731   echo $ECHO_N "(cached) $ECHO_C" >&6
3732 else
3733   ac_cv_prog_cc_c89=no
3734 ac_save_CC=$CC
3735 cat >conftest.$ac_ext <<_ACEOF
3736 /* confdefs.h.  */
3737 _ACEOF
3738 cat confdefs.h >>conftest.$ac_ext
3739 cat >>conftest.$ac_ext <<_ACEOF
3740 /* end confdefs.h.  */
3741 #include <stdarg.h>
3742 #include <stdio.h>
3743 #include <sys/types.h>
3744 #include <sys/stat.h>
3745 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3746 struct buf { int x; };
3747 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3748 static char *e (p, i)
3749      char **p;
3750      int i;
3751 {
3752   return p[i];
3753 }
3754 static char *f (char * (*g) (char **, int), char **p, ...)
3755 {
3756   char *s;
3757   va_list v;
3758   va_start (v,p);
3759   s = g (p, va_arg (v,int));
3760   va_end (v);
3761   return s;
3762 }
3763
3764 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3765    function prototypes and stuff, but not '\xHH' hex character constants.
3766    These don't provoke an error unfortunately, instead are silently treated
3767    as 'x'.  The following induces an error, until -std is added to get
3768    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3769    array size at least.  It's necessary to write '\x00'==0 to get something
3770    that's true only with -std.  */
3771 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3772
3773 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3774    inside strings and character constants.  */
3775 #define FOO(x) 'x'
3776 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3777
3778 int test (int i, double x);
3779 struct s1 {int (*f) (int a);};
3780 struct s2 {int (*f) (double a);};
3781 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3782 int argc;
3783 char **argv;
3784 int
3785 main ()
3786 {
3787 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3788   ;
3789   return 0;
3790 }
3791 _ACEOF
3792 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3793         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3794 do
3795   CC="$ac_save_CC $ac_arg"
3796   rm -f conftest.$ac_objext
3797 if { (ac_try="$ac_compile"
3798 case "(($ac_try" in
3799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3800   *) ac_try_echo=$ac_try;;
3801 esac
3802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3803   (eval "$ac_compile") 2>conftest.er1
3804   ac_status=$?
3805   grep -v '^ *+' conftest.er1 >conftest.err
3806   rm -f conftest.er1
3807   cat conftest.err >&5
3808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809   (exit $ac_status); } && {
3810          test -z "$ac_c_werror_flag" ||
3811          test ! -s conftest.err
3812        } && test -s conftest.$ac_objext; then
3813   ac_cv_prog_cc_c89=$ac_arg
3814 else
3815   echo "$as_me: failed program was:" >&5
3816 sed 's/^/| /' conftest.$ac_ext >&5
3817
3818
3819 fi
3820
3821 rm -f core conftest.err conftest.$ac_objext
3822   test "x$ac_cv_prog_cc_c89" != "xno" && break
3823 done
3824 rm -f conftest.$ac_ext
3825 CC=$ac_save_CC
3826
3827 fi
3828 # AC_CACHE_VAL
3829 case "x$ac_cv_prog_cc_c89" in
3830   x)
3831     { echo "$as_me:$LINENO: result: none needed" >&5
3832 echo "${ECHO_T}none needed" >&6; } ;;
3833   xno)
3834     { echo "$as_me:$LINENO: result: unsupported" >&5
3835 echo "${ECHO_T}unsupported" >&6; } ;;
3836   *)
3837     CC="$CC $ac_cv_prog_cc_c89"
3838     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3839 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3840 esac
3841
3842
3843 ac_ext=c
3844 ac_cpp='$CPP $CPPFLAGS'
3845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3848
3849 depcc="$CC"   am_compiler_list=
3850
3851 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3852 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3853 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3854   echo $ECHO_N "(cached) $ECHO_C" >&6
3855 else
3856   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3857   # We make a subdir and do the tests there.  Otherwise we can end up
3858   # making bogus files that we don't know about and never remove.  For
3859   # instance it was reported that on HP-UX the gcc test will end up
3860   # making a dummy file named `D' -- because `-MD' means `put the output
3861   # in D'.
3862   mkdir conftest.dir
3863   # Copy depcomp to subdir because otherwise we won't find it if we're
3864   # using a relative directory.
3865   cp "$am_depcomp" conftest.dir
3866   cd conftest.dir
3867   # We will build objects and dependencies in a subdirectory because
3868   # it helps to detect inapplicable dependency modes.  For instance
3869   # both Tru64's cc and ICC support -MD to output dependencies as a
3870   # side effect of compilation, but ICC will put the dependencies in
3871   # the current directory while Tru64 will put them in the object
3872   # directory.
3873   mkdir sub
3874
3875   am_cv_CC_dependencies_compiler_type=none
3876   if test "$am_compiler_list" = ""; then
3877      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3878   fi
3879   for depmode in $am_compiler_list; do
3880     # Setup a source with many dependencies, because some compilers
3881     # like to wrap large dependency lists on column 80 (with \), and
3882     # we should not choose a depcomp mode which is confused by this.
3883     #
3884     # We need to recreate these files for each test, as the compiler may
3885     # overwrite some of them when testing with obscure command lines.
3886     # This happens at least with the AIX C compiler.
3887     : > sub/conftest.c
3888     for i in 1 2 3 4 5 6; do
3889       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3890       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3891       # Solaris 8's {/usr,}/bin/sh.
3892       touch sub/conftst$i.h
3893     done
3894     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3895
3896     case $depmode in
3897     nosideeffect)
3898       # after this tag, mechanisms are not by side-effect, so they'll
3899       # only be used when explicitly requested
3900       if test "x$enable_dependency_tracking" = xyes; then
3901         continue
3902       else
3903         break
3904       fi
3905       ;;
3906     none) break ;;
3907     esac
3908     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3909     # mode.  It turns out that the SunPro C++ compiler does not properly
3910     # handle `-M -o', and we need to detect this.
3911     if depmode=$depmode \
3912        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3913        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3914        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3915          >/dev/null 2>conftest.err &&
3916        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3917        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3918        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3919       # icc doesn't choke on unknown options, it will just issue warnings
3920       # or remarks (even with -Werror).  So we grep stderr for any message
3921       # that says an option was ignored or not supported.
3922       # When given -MP, icc 7.0 and 7.1 complain thusly:
3923       #   icc: Command line warning: ignoring option '-M'; no argument required
3924       # The diagnosis changed in icc 8.0:
3925       #   icc: Command line remark: option '-MP' not supported
3926       if (grep 'ignoring option' conftest.err ||
3927           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3928         am_cv_CC_dependencies_compiler_type=$depmode
3929         break
3930       fi
3931     fi
3932   done
3933
3934   cd ..
3935   rm -rf conftest.dir
3936 else
3937   am_cv_CC_dependencies_compiler_type=none
3938 fi
3939
3940 fi
3941 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3942 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3943 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3944
3945
3946
3947 if
3948   test "x$enable_dependency_tracking" != xno \
3949   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3950   am__fastdepCC_TRUE=
3951   am__fastdepCC_FALSE='#'
3952 else
3953   am__fastdepCC_TRUE='#'
3954   am__fastdepCC_FALSE=
3955 fi
3956
3957
3958 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3959 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3960 if test "${ac_cv_path_SED+set}" = set; then
3961   echo $ECHO_N "(cached) $ECHO_C" >&6
3962 else
3963             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3964      for ac_i in 1 2 3 4 5 6 7; do
3965        ac_script="$ac_script$as_nl$ac_script"
3966      done
3967      echo "$ac_script" | sed 99q >conftest.sed
3968      $as_unset ac_script || ac_script=
3969      # Extract the first word of "sed gsed" to use in msg output
3970 if test -z "$SED"; then
3971 set dummy sed gsed; ac_prog_name=$2
3972 if test "${ac_cv_path_SED+set}" = set; then
3973   echo $ECHO_N "(cached) $ECHO_C" >&6
3974 else
3975   ac_path_SED_found=false
3976 # Loop through the user's path and test for each of PROGNAME-LIST
3977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3978 for as_dir in $PATH
3979 do
3980   IFS=$as_save_IFS
3981   test -z "$as_dir" && as_dir=.
3982   for ac_prog in sed gsed; do
3983   for ac_exec_ext in '' $ac_executable_extensions; do
3984     ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3985     { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3986     # Check for GNU ac_path_SED and select it if it is found.
3987   # Check for GNU $ac_path_SED
3988 case `"$ac_path_SED" --version 2>&1` in
3989 *GNU*)
3990   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3991 *)
3992   ac_count=0
3993   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3994   while :
3995   do
3996     cat "conftest.in" "conftest.in" >"conftest.tmp"
3997     mv "conftest.tmp" "conftest.in"
3998     cp "conftest.in" "conftest.nl"
3999     echo '' >> "conftest.nl"
4000     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4001     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4002     ac_count=`expr $ac_count + 1`
4003     if test $ac_count -gt ${ac_path_SED_max-0}; then
4004       # Best one so far, save it but keep looking for a better one
4005       ac_cv_path_SED="$ac_path_SED"
4006       ac_path_SED_max=$ac_count
4007     fi
4008     # 10*(2^10) chars as input seems more than enough
4009     test $ac_count -gt 10 && break
4010   done
4011   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4012 esac
4013
4014
4015     $ac_path_SED_found && break 3
4016   done
4017 done
4018
4019 done
4020 IFS=$as_save_IFS
4021
4022
4023 fi
4024
4025 SED="$ac_cv_path_SED"
4026 if test -z "$SED"; then
4027   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
4028 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
4029    { (exit 1); exit 1; }; }
4030 fi
4031
4032 else
4033   ac_cv_path_SED=$SED
4034 fi
4035
4036 fi
4037 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4038 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
4039  SED="$ac_cv_path_SED"
4040   rm -f conftest.sed
4041
4042 test -z "$SED" && SED=sed
4043 Xsed="$SED -e 1s/^X//"
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4056 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4057 if test "${ac_cv_path_GREP+set}" = set; then
4058   echo $ECHO_N "(cached) $ECHO_C" >&6
4059 else
4060   # Extract the first word of "grep ggrep" to use in msg output
4061 if test -z "$GREP"; then
4062 set dummy grep ggrep; ac_prog_name=$2
4063 if test "${ac_cv_path_GREP+set}" = set; then
4064   echo $ECHO_N "(cached) $ECHO_C" >&6
4065 else
4066   ac_path_GREP_found=false
4067 # Loop through the user's path and test for each of PROGNAME-LIST
4068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4069 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4070 do
4071   IFS=$as_save_IFS
4072   test -z "$as_dir" && as_dir=.
4073   for ac_prog in grep ggrep; do
4074   for ac_exec_ext in '' $ac_executable_extensions; do
4075     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4076     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4077     # Check for GNU ac_path_GREP and select it if it is found.
4078   # Check for GNU $ac_path_GREP
4079 case `"$ac_path_GREP" --version 2>&1` in
4080 *GNU*)
4081   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4082 *)
4083   ac_count=0
4084   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4085   while :
4086   do
4087     cat "conftest.in" "conftest.in" >"conftest.tmp"
4088     mv "conftest.tmp" "conftest.in"
4089     cp "conftest.in" "conftest.nl"
4090     echo 'GREP' >> "conftest.nl"
4091     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4092     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4093     ac_count=`expr $ac_count + 1`
4094     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4095       # Best one so far, save it but keep looking for a better one
4096       ac_cv_path_GREP="$ac_path_GREP"
4097       ac_path_GREP_max=$ac_count
4098     fi
4099     # 10*(2^10) chars as input seems more than enough
4100     test $ac_count -gt 10 && break
4101   done
4102   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4103 esac
4104
4105
4106     $ac_path_GREP_found && break 3
4107   done
4108 done
4109
4110 done
4111 IFS=$as_save_IFS
4112
4113
4114 fi
4115
4116 GREP="$ac_cv_path_GREP"
4117 if test -z "$GREP"; then
4118   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4119 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4120    { (exit 1); exit 1; }; }
4121 fi
4122
4123 else
4124   ac_cv_path_GREP=$GREP
4125 fi
4126
4127
4128 fi
4129 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4130 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4131  GREP="$ac_cv_path_GREP"
4132
4133
4134 { echo "$as_me:$LINENO: checking for egrep" >&5
4135 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4136 if test "${ac_cv_path_EGREP+set}" = set; then
4137   echo $ECHO_N "(cached) $ECHO_C" >&6
4138 else
4139   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4140    then ac_cv_path_EGREP="$GREP -E"
4141    else
4142      # Extract the first word of "egrep" to use in msg output
4143 if test -z "$EGREP"; then
4144 set dummy egrep; ac_prog_name=$2
4145 if test "${ac_cv_path_EGREP+set}" = set; then
4146   echo $ECHO_N "(cached) $ECHO_C" >&6
4147 else
4148   ac_path_EGREP_found=false
4149 # Loop through the user's path and test for each of PROGNAME-LIST
4150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4151 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4152 do
4153   IFS=$as_save_IFS
4154   test -z "$as_dir" && as_dir=.
4155   for ac_prog in egrep; do
4156   for ac_exec_ext in '' $ac_executable_extensions; do
4157     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4158     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4159     # Check for GNU ac_path_EGREP and select it if it is found.
4160   # Check for GNU $ac_path_EGREP
4161 case `"$ac_path_EGREP" --version 2>&1` in
4162 *GNU*)
4163   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4164 *)
4165   ac_count=0
4166   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4167   while :
4168   do
4169     cat "conftest.in" "conftest.in" >"conftest.tmp"
4170     mv "conftest.tmp" "conftest.in"
4171     cp "conftest.in" "conftest.nl"
4172     echo 'EGREP' >> "conftest.nl"
4173     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4174     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4175     ac_count=`expr $ac_count + 1`
4176     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4177       # Best one so far, save it but keep looking for a better one
4178       ac_cv_path_EGREP="$ac_path_EGREP"
4179       ac_path_EGREP_max=$ac_count
4180     fi
4181     # 10*(2^10) chars as input seems more than enough
4182     test $ac_count -gt 10 && break
4183   done
4184   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4185 esac
4186
4187
4188     $ac_path_EGREP_found && break 3
4189   done
4190 done
4191
4192 done
4193 IFS=$as_save_IFS
4194
4195
4196 fi
4197
4198 EGREP="$ac_cv_path_EGREP"
4199 if test -z "$EGREP"; then
4200   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4201 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4202    { (exit 1); exit 1; }; }
4203 fi
4204
4205 else
4206   ac_cv_path_EGREP=$EGREP
4207 fi
4208
4209
4210    fi
4211 fi
4212 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4213 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4214  EGREP="$ac_cv_path_EGREP"
4215
4216
4217 { echo "$as_me:$LINENO: checking for fgrep" >&5
4218 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
4219 if test "${ac_cv_path_FGREP+set}" = set; then
4220   echo $ECHO_N "(cached) $ECHO_C" >&6
4221 else
4222   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4223    then ac_cv_path_FGREP="$GREP -F"
4224    else
4225      # Extract the first word of "fgrep" to use in msg output
4226 if test -z "$FGREP"; then
4227 set dummy fgrep; ac_prog_name=$2
4228 if test "${ac_cv_path_FGREP+set}" = set; then
4229   echo $ECHO_N "(cached) $ECHO_C" >&6
4230 else
4231   ac_path_FGREP_found=false
4232 # Loop through the user's path and test for each of PROGNAME-LIST
4233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4234 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4235 do
4236   IFS=$as_save_IFS
4237   test -z "$as_dir" && as_dir=.
4238   for ac_prog in fgrep; do
4239   for ac_exec_ext in '' $ac_executable_extensions; do
4240     ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4241     { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4242     # Check for GNU ac_path_FGREP and select it if it is found.
4243   # Check for GNU $ac_path_FGREP
4244 case `"$ac_path_FGREP" --version 2>&1` in
4245 *GNU*)
4246   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4247 *)
4248   ac_count=0
4249   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4250   while :
4251   do
4252     cat "conftest.in" "conftest.in" >"conftest.tmp"
4253     mv "conftest.tmp" "conftest.in"
4254     cp "conftest.in" "conftest.nl"
4255     echo 'FGREP' >> "conftest.nl"
4256     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4257     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4258     ac_count=`expr $ac_count + 1`
4259     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4260       # Best one so far, save it but keep looking for a better one
4261       ac_cv_path_FGREP="$ac_path_FGREP"
4262       ac_path_FGREP_max=$ac_count
4263     fi
4264     # 10*(2^10) chars as input seems more than enough
4265     test $ac_count -gt 10 && break
4266   done
4267   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4268 esac
4269
4270
4271     $ac_path_FGREP_found && break 3
4272   done
4273 done
4274
4275 done
4276 IFS=$as_save_IFS
4277
4278
4279 fi
4280
4281 FGREP="$ac_cv_path_FGREP"
4282 if test -z "$FGREP"; then
4283   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4284 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4285    { (exit 1); exit 1; }; }
4286 fi
4287
4288 else
4289   ac_cv_path_FGREP=$FGREP
4290 fi
4291
4292
4293    fi
4294 fi
4295 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4296 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
4297  FGREP="$ac_cv_path_FGREP"
4298
4299
4300 test -z "$GREP" && GREP=grep
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320 # Check whether --with-gnu-ld was given.
4321 if test "${with_gnu_ld+set}" = set; then
4322   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4323 else
4324   with_gnu_ld=no
4325 fi
4326
4327 ac_prog=ld
4328 if test "$GCC" = yes; then
4329   # Check if gcc -print-prog-name=ld gives a path.
4330   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4331 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4332   case $host in
4333   *-*-mingw*)
4334     # gcc leaves a trailing carriage return which upsets mingw
4335     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4336   *)
4337     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4338   esac
4339   case $ac_prog in
4340     # Accept absolute paths.
4341     [\\/]* | ?:[\\/]*)
4342       re_direlt='/[^/][^/]*/\.\./'
4343       # Canonicalize the pathname of ld
4344       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4345       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4346         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4347       done
4348       test -z "$LD" && LD="$ac_prog"
4349       ;;
4350   "")
4351     # If it fails, then pretend we aren't using GCC.
4352     ac_prog=ld
4353     ;;
4354   *)
4355     # If it is relative, then search for the first ld in PATH.
4356     with_gnu_ld=unknown
4357     ;;
4358   esac
4359 elif test "$with_gnu_ld" = yes; then
4360   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4361 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4362 else
4363   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4364 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4365 fi
4366 if test "${lt_cv_path_LD+set}" = set; then
4367   echo $ECHO_N "(cached) $ECHO_C" >&6
4368 else
4369   if test -z "$LD"; then
4370   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4371   for ac_dir in $PATH; do
4372     IFS="$lt_save_ifs"
4373     test -z "$ac_dir" && ac_dir=.
4374     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4375       lt_cv_path_LD="$ac_dir/$ac_prog"
4376       # Check to see if the program is GNU ld.  I'd rather use --version,
4377       # but apparently some variants of GNU ld only accept -v.
4378       # Break only if it was the GNU/non-GNU ld that we prefer.
4379       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4380       *GNU* | *'with BFD'*)
4381         test "$with_gnu_ld" != no && break
4382         ;;
4383       *)
4384         test "$with_gnu_ld" != yes && break
4385         ;;
4386       esac
4387     fi
4388   done
4389   IFS="$lt_save_ifs"
4390 else
4391   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4392 fi
4393 fi
4394
4395 LD="$lt_cv_path_LD"
4396 if test -n "$LD"; then
4397   { echo "$as_me:$LINENO: result: $LD" >&5
4398 echo "${ECHO_T}$LD" >&6; }
4399 else
4400   { echo "$as_me:$LINENO: result: no" >&5
4401 echo "${ECHO_T}no" >&6; }
4402 fi
4403 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4404 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4405    { (exit 1); exit 1; }; }
4406 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4407 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4408 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4409   echo $ECHO_N "(cached) $ECHO_C" >&6
4410 else
4411   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4412 case `$LD -v 2>&1 </dev/null` in
4413 *GNU* | *'with BFD'*)
4414   lt_cv_prog_gnu_ld=yes
4415   ;;
4416 *)
4417   lt_cv_prog_gnu_ld=no
4418   ;;
4419 esac
4420 fi
4421 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4422 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4423 with_gnu_ld=$lt_cv_prog_gnu_ld
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4434 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
4435 if test "${lt_cv_path_NM+set}" = set; then
4436   echo $ECHO_N "(cached) $ECHO_C" >&6
4437 else
4438   if test -n "$NM"; then
4439   # Let the user override the test.
4440   lt_cv_path_NM="$NM"
4441 else
4442   lt_nm_to_check="${ac_tool_prefix}nm"
4443   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4444     lt_nm_to_check="$lt_nm_to_check nm"
4445   fi
4446   for lt_tmp_nm in $lt_nm_to_check; do
4447     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4448     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4449       IFS="$lt_save_ifs"
4450       test -z "$ac_dir" && ac_dir=.
4451       tmp_nm="$ac_dir/$lt_tmp_nm"
4452       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4453         # Check to see if the nm accepts a BSD-compat flag.
4454         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4455         #   nm: unknown option "B" ignored
4456         # Tru64's nm complains that /dev/null is an invalid object file
4457         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4458         */dev/null* | *'Invalid file or object type'*)
4459           lt_cv_path_NM="$tmp_nm -B"
4460           break
4461           ;;
4462         *)
4463           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4464           */dev/null*)
4465             lt_cv_path_NM="$tmp_nm -p"
4466             break
4467             ;;
4468           *)
4469             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4470             continue # so that we can try to find one that supports BSD flags
4471             ;;
4472           esac
4473           ;;
4474         esac
4475       fi
4476     done
4477     IFS="$lt_save_ifs"
4478   done
4479   : ${lt_cv_path_NM=no}
4480 fi
4481 fi
4482 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4483 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4484 if test "$lt_cv_path_NM" != "no"; then
4485   NM="$lt_cv_path_NM"
4486 else
4487   # Didn't find any BSD compatible name lister, look for dumpbin.
4488   if test -n "$ac_tool_prefix"; then
4489   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4490   do
4491     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4492 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4493 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4495 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4496   echo $ECHO_N "(cached) $ECHO_C" >&6
4497 else
4498   if test -n "$DUMPBIN"; then
4499   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4500 else
4501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4502 for as_dir in $PATH
4503 do
4504   IFS=$as_save_IFS
4505   test -z "$as_dir" && as_dir=.
4506   for ac_exec_ext in '' $ac_executable_extensions; do
4507   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4508     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4509     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4510     break 2
4511   fi
4512 done
4513 done
4514 IFS=$as_save_IFS
4515
4516 fi
4517 fi
4518 DUMPBIN=$ac_cv_prog_DUMPBIN
4519 if test -n "$DUMPBIN"; then
4520   { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4521 echo "${ECHO_T}$DUMPBIN" >&6; }
4522 else
4523   { echo "$as_me:$LINENO: result: no" >&5
4524 echo "${ECHO_T}no" >&6; }
4525 fi
4526
4527
4528     test -n "$DUMPBIN" && break
4529   done
4530 fi
4531 if test -z "$DUMPBIN"; then
4532   ac_ct_DUMPBIN=$DUMPBIN
4533   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4534 do
4535   # Extract the first word of "$ac_prog", so it can be a program name with args.
4536 set dummy $ac_prog; ac_word=$2
4537 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4539 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4540   echo $ECHO_N "(cached) $ECHO_C" >&6
4541 else
4542   if test -n "$ac_ct_DUMPBIN"; then
4543   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4544 else
4545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4546 for as_dir in $PATH
4547 do
4548   IFS=$as_save_IFS
4549   test -z "$as_dir" && as_dir=.
4550   for ac_exec_ext in '' $ac_executable_extensions; do
4551   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4552     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4553     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4554     break 2
4555   fi
4556 done
4557 done
4558 IFS=$as_save_IFS
4559
4560 fi
4561 fi
4562 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4563 if test -n "$ac_ct_DUMPBIN"; then
4564   { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4565 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
4566 else
4567   { echo "$as_me:$LINENO: result: no" >&5
4568 echo "${ECHO_T}no" >&6; }
4569 fi
4570
4571
4572   test -n "$ac_ct_DUMPBIN" && break
4573 done
4574
4575   if test "x$ac_ct_DUMPBIN" = x; then
4576     DUMPBIN=":"
4577   else
4578     case $cross_compiling:$ac_tool_warned in
4579 yes:)
4580 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4581 whose name does not start with the host triplet.  If you think this
4582 configuration is useful to you, please write to autoconf@gnu.org." >&5
4583 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4584 whose name does not start with the host triplet.  If you think this
4585 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4586 ac_tool_warned=yes ;;
4587 esac
4588     DUMPBIN=$ac_ct_DUMPBIN
4589   fi
4590 fi
4591
4592
4593   if test "$DUMPBIN" != ":"; then
4594     NM="$DUMPBIN"
4595   fi
4596 fi
4597 test -z "$NM" && NM=nm
4598
4599
4600
4601
4602
4603
4604 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4605 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
4606 if test "${lt_cv_nm_interface+set}" = set; then
4607   echo $ECHO_N "(cached) $ECHO_C" >&6
4608 else
4609   lt_cv_nm_interface="BSD nm"
4610   echo "int some_variable = 0;" > conftest.$ac_ext
4611   (eval echo "\"\$as_me:4611: $ac_compile\"" >&5)
4612   (eval "$ac_compile" 2>conftest.err)
4613   cat conftest.err >&5
4614   (eval echo "\"\$as_me:4614: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4615   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4616   cat conftest.err >&5
4617   (eval echo "\"\$as_me:4617: output\"" >&5)
4618   cat conftest.out >&5
4619   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4620     lt_cv_nm_interface="MS dumpbin"
4621   fi
4622   rm -f conftest*
4623 fi
4624 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4625 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
4626
4627 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4628 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4629 LN_S=$as_ln_s
4630 if test "$LN_S" = "ln -s"; then
4631   { echo "$as_me:$LINENO: result: yes" >&5
4632 echo "${ECHO_T}yes" >&6; }
4633 else
4634   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4635 echo "${ECHO_T}no, using $LN_S" >&6; }
4636 fi
4637
4638 # find the maximum length of command line arguments
4639 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4640 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
4641 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4642   echo $ECHO_N "(cached) $ECHO_C" >&6
4643 else
4644     i=0
4645   teststring="ABCD"
4646
4647   case $build_os in
4648   msdosdjgpp*)
4649     # On DJGPP, this test can blow up pretty badly due to problems in libc
4650     # (any single argument exceeding 2000 bytes causes a buffer overrun
4651     # during glob expansion).  Even if it were fixed, the result of this
4652     # check would be larger than it should be.
4653     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4654     ;;
4655
4656   gnu*)
4657     # Under GNU Hurd, this test is not required because there is
4658     # no limit to the length of command line arguments.
4659     # Libtool will interpret -1 as no limit whatsoever
4660     lt_cv_sys_max_cmd_len=-1;
4661     ;;
4662
4663   cygwin* | mingw*)
4664     # On Win9x/ME, this test blows up -- it succeeds, but takes
4665     # about 5 minutes as the teststring grows exponentially.
4666     # Worse, since 9x/ME are not pre-emptively multitasking,
4667     # you end up with a "frozen" computer, even though with patience
4668     # the test eventually succeeds (with a max line length of 256k).
4669     # Instead, let's just punt: use the minimum linelength reported by
4670     # all of the supported platforms: 8192 (on NT/2K/XP).
4671     lt_cv_sys_max_cmd_len=8192;
4672     ;;
4673
4674   amigaos*)
4675     # On AmigaOS with pdksh, this test takes hours, literally.
4676     # So we just punt and use a minimum line length of 8192.
4677     lt_cv_sys_max_cmd_len=8192;
4678     ;;
4679
4680   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4681     # This has been around since 386BSD, at least.  Likely further.
4682     if test -x /sbin/sysctl; then
4683       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4684     elif test -x /usr/sbin/sysctl; then
4685       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4686     else
4687       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4688     fi
4689     # And add a safety zone
4690     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4691     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4692     ;;
4693
4694   interix*)
4695     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4696     lt_cv_sys_max_cmd_len=196608
4697     ;;
4698
4699   osf*)
4700     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4701     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4702     # nice to cause kernel panics so lets avoid the loop below.
4703     # First set a reasonable default.
4704     lt_cv_sys_max_cmd_len=16384
4705     #
4706     if test -x /sbin/sysconfig; then
4707       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4708         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4709       esac
4710     fi
4711     ;;
4712   sco3.2v5*)
4713     lt_cv_sys_max_cmd_len=102400
4714     ;;
4715   sysv5* | sco5v6* | sysv4.2uw2*)
4716     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4717     if test -n "$kargmax"; then
4718       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4719     else
4720       lt_cv_sys_max_cmd_len=32768
4721     fi
4722     ;;
4723   *)
4724     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4725     if test -n "$lt_cv_sys_max_cmd_len"; then
4726       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4727       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4728     else
4729       # Make teststring a little bigger before we do anything with it.
4730       # a 1K string should be a reasonable start.
4731       for i in 1 2 3 4 5 6 7 8 ; do
4732         teststring=$teststring$teststring
4733       done
4734       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4735       # If test is not a shell built-in, we'll probably end up computing a
4736       # maximum length that is only half of the actual maximum length, but
4737       # we can't tell.
4738       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4739                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4740               test $i != 17 # 1/2 MB should be enough
4741       do
4742         i=`expr $i + 1`
4743         teststring=$teststring$teststring
4744       done
4745       # Only check the string length outside the loop.
4746       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4747       teststring=
4748       # Add a significant safety factor because C++ compilers can tack on
4749       # massive amounts of additional arguments before passing them to the
4750       # linker.  It appears as though 1/2 is a usable value.
4751       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4752     fi
4753     ;;
4754   esac
4755
4756 fi
4757
4758 if test -n $lt_cv_sys_max_cmd_len ; then
4759   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4760 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
4761 else
4762   { echo "$as_me:$LINENO: result: none" >&5
4763 echo "${ECHO_T}none" >&6; }
4764 fi
4765 max_cmd_len=$lt_cv_sys_max_cmd_len
4766
4767
4768
4769
4770
4771
4772 : ${CP="cp -f"}
4773 : ${MV="mv -f"}
4774 : ${RM="rm -f"}
4775
4776 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4777 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
4778 # Try some XSI features
4779 xsi_shell=no
4780 ( _lt_dummy="a/b/c"
4781   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4782       = c,a/b,, \
4783     && eval 'test $(( 1 + 1 )) -eq 2 \
4784     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4785   && xsi_shell=yes
4786 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
4787 echo "${ECHO_T}$xsi_shell" >&6; }
4788
4789
4790 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4791 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
4792 lt_shell_append=no
4793 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4794     >/dev/null 2>&1 \
4795   && lt_shell_append=yes
4796 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4797 echo "${ECHO_T}$lt_shell_append" >&6; }
4798
4799
4800 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4801   lt_unset=unset
4802 else
4803   lt_unset=false
4804 fi
4805
4806
4807
4808
4809
4810 # test EBCDIC or ASCII
4811 case `echo X|tr X '\101'` in
4812  A) # ASCII based system
4813     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4814   lt_SP2NL='tr \040 \012'
4815   lt_NL2SP='tr \015\012 \040\040'
4816   ;;
4817  *) # EBCDIC based system
4818   lt_SP2NL='tr \100 \n'
4819   lt_NL2SP='tr \r\n \100\100'
4820   ;;
4821 esac
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4832 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4833 if test "${lt_cv_ld_reload_flag+set}" = set; then
4834   echo $ECHO_N "(cached) $ECHO_C" >&6
4835 else
4836   lt_cv_ld_reload_flag='-r'
4837 fi
4838 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4839 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4840 reload_flag=$lt_cv_ld_reload_flag
4841 case $reload_flag in
4842 "" | " "*) ;;
4843 *) reload_flag=" $reload_flag" ;;
4844 esac
4845 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4846 case $host_os in
4847   darwin*)
4848     if test "$GCC" = yes; then
4849       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4850     else
4851       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4852     fi
4853     ;;
4854 esac
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4866 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4867 if test "${lt_cv_deplibs_check_method+set}" = set; then
4868   echo $ECHO_N "(cached) $ECHO_C" >&6
4869 else
4870   lt_cv_file_magic_cmd='$MAGIC_CMD'
4871 lt_cv_file_magic_test_file=
4872 lt_cv_deplibs_check_method='unknown'
4873 # Need to set the preceding variable on all platforms that support
4874 # interlibrary dependencies.
4875 # 'none' -- dependencies not supported.
4876 # `unknown' -- same as none, but documents that we really don't know.
4877 # 'pass_all' -- all dependencies passed with no checks.
4878 # 'test_compile' -- check by making test program.
4879 # 'file_magic [[regex]]' -- check by looking for files in library path
4880 # which responds to the $file_magic_cmd with a given extended regex.
4881 # If you have `file' or equivalent on your system and you're not sure
4882 # whether `pass_all' will *always* work, you probably want this one.
4883
4884 case $host_os in
4885 aix[4-9]*)
4886   lt_cv_deplibs_check_method=pass_all
4887   ;;
4888
4889 beos*)
4890   lt_cv_deplibs_check_method=pass_all
4891   ;;
4892
4893 bsdi[45]*)
4894   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4895   lt_cv_file_magic_cmd='/usr/bin/file -L'
4896   lt_cv_file_magic_test_file=/shlib/libc.so
4897   ;;
4898
4899 cygwin*)
4900   # func_win32_libid is a shell function defined in ltmain.sh
4901   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4902   lt_cv_file_magic_cmd='func_win32_libid'
4903   ;;
4904
4905 mingw* | pw32*)
4906   # Base MSYS/MinGW do not provide the 'file' command needed by
4907   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4908   # unless we find 'file', for example because we are cross-compiling.
4909   if ( file / ) >/dev/null 2>&1; then
4910     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4911     lt_cv_file_magic_cmd='func_win32_libid'
4912   else
4913     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4914     lt_cv_file_magic_cmd='$OBJDUMP -f'
4915   fi
4916   ;;
4917
4918 darwin* | rhapsody*)
4919   lt_cv_deplibs_check_method=pass_all
4920   ;;
4921
4922 freebsd* | dragonfly*)
4923   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4924     case $host_cpu in
4925     i*86 )
4926       # Not sure whether the presence of OpenBSD here was a mistake.
4927       # Let's accept both of them until this is cleared up.
4928       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4929       lt_cv_file_magic_cmd=/usr/bin/file
4930       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4931       ;;
4932     esac
4933   else
4934     lt_cv_deplibs_check_method=pass_all
4935   fi
4936   ;;
4937
4938 gnu*)
4939   lt_cv_deplibs_check_method=pass_all
4940   ;;
4941
4942 hpux10.20* | hpux11*)
4943   lt_cv_file_magic_cmd=/usr/bin/file
4944   case $host_cpu in
4945   ia64*)
4946     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4947     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4948     ;;
4949   hppa*64*)
4950     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4951     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4952     ;;
4953   *)
4954     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4955     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4956     ;;
4957   esac
4958   ;;
4959
4960 interix[3-9]*)
4961   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4962   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4963   ;;
4964
4965 irix5* | irix6* | nonstopux*)
4966   case $LD in
4967   *-32|*"-32 ") libmagic=32-bit;;
4968   *-n32|*"-n32 ") libmagic=N32;;
4969   *-64|*"-64 ") libmagic=64-bit;;
4970   *) libmagic=never-match;;
4971   esac
4972   lt_cv_deplibs_check_method=pass_all
4973   ;;
4974
4975 # This must be Linux ELF.
4976 linux* | k*bsd*-gnu)
4977   lt_cv_deplibs_check_method=pass_all
4978   ;;
4979
4980 netbsd*)
4981   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4982     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4983   else
4984     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4985   fi
4986   ;;
4987
4988 newos6*)
4989   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4990   lt_cv_file_magic_cmd=/usr/bin/file
4991   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4992   ;;
4993
4994 *nto* | *qnx*)
4995   lt_cv_deplibs_check_method=pass_all
4996   ;;
4997
4998 openbsd*)
4999   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5000     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5001   else
5002     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5003   fi
5004   ;;
5005
5006 osf3* | osf4* | osf5*)
5007   lt_cv_deplibs_check_method=pass_all
5008   ;;
5009
5010 rdos*)
5011   lt_cv_deplibs_check_method=pass_all
5012   ;;
5013
5014 solaris*)
5015   lt_cv_deplibs_check_method=pass_all
5016   ;;
5017
5018 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5019   lt_cv_deplibs_check_method=pass_all
5020   ;;
5021
5022 sysv4 | sysv4.3*)
5023   case $host_vendor in
5024   motorola)
5025     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]'
5026     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5027     ;;
5028   ncr)
5029     lt_cv_deplibs_check_method=pass_all
5030     ;;
5031   sequent)
5032     lt_cv_file_magic_cmd='/bin/file'
5033     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5034     ;;
5035   sni)
5036     lt_cv_file_magic_cmd='/bin/file'
5037     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5038     lt_cv_file_magic_test_file=/lib/libc.so
5039     ;;
5040   siemens)
5041     lt_cv_deplibs_check_method=pass_all
5042     ;;
5043   pc)
5044     lt_cv_deplibs_check_method=pass_all
5045     ;;
5046   esac
5047   ;;
5048
5049 tpf*)
5050   lt_cv_deplibs_check_method=pass_all
5051   ;;
5052 esac
5053
5054 fi
5055 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5056 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5057 file_magic_cmd=$lt_cv_file_magic_cmd
5058 deplibs_check_method=$lt_cv_deplibs_check_method
5059 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072 if test -n "$ac_tool_prefix"; then
5073   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5074 set dummy ${ac_tool_prefix}ar; ac_word=$2
5075 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5077 if test "${ac_cv_prog_AR+set}" = set; then
5078   echo $ECHO_N "(cached) $ECHO_C" >&6
5079 else
5080   if test -n "$AR"; then
5081   ac_cv_prog_AR="$AR" # Let the user override the test.
5082 else
5083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5084 for as_dir in $PATH
5085 do
5086   IFS=$as_save_IFS
5087   test -z "$as_dir" && as_dir=.
5088   for ac_exec_ext in '' $ac_executable_extensions; do
5089   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5090     ac_cv_prog_AR="${ac_tool_prefix}ar"
5091     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5092     break 2
5093   fi
5094 done
5095 done
5096 IFS=$as_save_IFS
5097
5098 fi
5099 fi
5100 AR=$ac_cv_prog_AR
5101 if test -n "$AR"; then
5102   { echo "$as_me:$LINENO: result: $AR" >&5
5103 echo "${ECHO_T}$AR" >&6; }
5104 else
5105   { echo "$as_me:$LINENO: result: no" >&5
5106 echo "${ECHO_T}no" >&6; }
5107 fi
5108
5109
5110 fi
5111 if test -z "$ac_cv_prog_AR"; then
5112   ac_ct_AR=$AR
5113   # Extract the first word of "ar", so it can be a program name with args.
5114 set dummy ar; ac_word=$2
5115 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5117 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5118   echo $ECHO_N "(cached) $ECHO_C" >&6
5119 else
5120   if test -n "$ac_ct_AR"; then
5121   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5122 else
5123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5124 for as_dir in $PATH
5125 do
5126   IFS=$as_save_IFS
5127   test -z "$as_dir" && as_dir=.
5128   for ac_exec_ext in '' $ac_executable_extensions; do
5129   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5130     ac_cv_prog_ac_ct_AR="ar"
5131     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5132     break 2
5133   fi
5134 done
5135 done
5136 IFS=$as_save_IFS
5137
5138 fi
5139 fi
5140 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5141 if test -n "$ac_ct_AR"; then
5142   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5143 echo "${ECHO_T}$ac_ct_AR" >&6; }
5144 else
5145   { echo "$as_me:$LINENO: result: no" >&5
5146 echo "${ECHO_T}no" >&6; }
5147 fi
5148
5149   if test "x$ac_ct_AR" = x; then
5150     AR="false"
5151   else
5152     case $cross_compiling:$ac_tool_warned in
5153 yes:)
5154 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5155 whose name does not start with the host triplet.  If you think this
5156 configuration is useful to you, please write to autoconf@gnu.org." >&5
5157 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5158 whose name does not start with the host triplet.  If you think this
5159 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5160 ac_tool_warned=yes ;;
5161 esac
5162     AR=$ac_ct_AR
5163   fi
5164 else
5165   AR="$ac_cv_prog_AR"
5166 fi
5167
5168 test -z "$AR" && AR=ar
5169 test -z "$AR_FLAGS" && AR_FLAGS=cru
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181 if test -n "$ac_tool_prefix"; then
5182   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5183 set dummy ${ac_tool_prefix}strip; ac_word=$2
5184 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5186 if test "${ac_cv_prog_STRIP+set}" = set; then
5187   echo $ECHO_N "(cached) $ECHO_C" >&6
5188 else
5189   if test -n "$STRIP"; then
5190   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5191 else
5192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193 for as_dir in $PATH
5194 do
5195   IFS=$as_save_IFS
5196   test -z "$as_dir" && as_dir=.
5197   for ac_exec_ext in '' $ac_executable_extensions; do
5198   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5199     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5200     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5201     break 2
5202   fi
5203 done
5204 done
5205 IFS=$as_save_IFS
5206
5207 fi
5208 fi
5209 STRIP=$ac_cv_prog_STRIP
5210 if test -n "$STRIP"; then
5211   { echo "$as_me:$LINENO: result: $STRIP" >&5
5212 echo "${ECHO_T}$STRIP" >&6; }
5213 else
5214   { echo "$as_me:$LINENO: result: no" >&5
5215 echo "${ECHO_T}no" >&6; }
5216 fi
5217
5218
5219 fi
5220 if test -z "$ac_cv_prog_STRIP"; then
5221   ac_ct_STRIP=$STRIP
5222   # Extract the first word of "strip", so it can be a program name with args.
5223 set dummy strip; ac_word=$2
5224 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5226 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5227   echo $ECHO_N "(cached) $ECHO_C" >&6
5228 else
5229   if test -n "$ac_ct_STRIP"; then
5230   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5231 else
5232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5233 for as_dir in $PATH
5234 do
5235   IFS=$as_save_IFS
5236   test -z "$as_dir" && as_dir=.
5237   for ac_exec_ext in '' $ac_executable_extensions; do
5238   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5239     ac_cv_prog_ac_ct_STRIP="strip"
5240     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5241     break 2
5242   fi
5243 done
5244 done
5245 IFS=$as_save_IFS
5246
5247 fi
5248 fi
5249 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5250 if test -n "$ac_ct_STRIP"; then
5251   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5252 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
5253 else
5254   { echo "$as_me:$LINENO: result: no" >&5
5255 echo "${ECHO_T}no" >&6; }
5256 fi
5257
5258   if test "x$ac_ct_STRIP" = x; then
5259     STRIP=":"
5260   else
5261     case $cross_compiling:$ac_tool_warned in
5262 yes:)
5263 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5264 whose name does not start with the host triplet.  If you think this
5265 configuration is useful to you, please write to autoconf@gnu.org." >&5
5266 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5267 whose name does not start with the host triplet.  If you think this
5268 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5269 ac_tool_warned=yes ;;
5270 esac
5271     STRIP=$ac_ct_STRIP
5272   fi
5273 else
5274   STRIP="$ac_cv_prog_STRIP"
5275 fi
5276
5277 test -z "$STRIP" && STRIP=:
5278
5279
5280
5281
5282
5283
5284 if test -n "$ac_tool_prefix"; then
5285   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5286 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5289 if test "${ac_cv_prog_RANLIB+set}" = set; then
5290   echo $ECHO_N "(cached) $ECHO_C" >&6
5291 else
5292   if test -n "$RANLIB"; then
5293   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5294 else
5295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5296 for as_dir in $PATH
5297 do
5298   IFS=$as_save_IFS
5299   test -z "$as_dir" && as_dir=.
5300   for ac_exec_ext in '' $ac_executable_extensions; do
5301   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5302     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5303     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5304     break 2
5305   fi
5306 done
5307 done
5308 IFS=$as_save_IFS
5309
5310 fi
5311 fi
5312 RANLIB=$ac_cv_prog_RANLIB
5313 if test -n "$RANLIB"; then
5314   { echo "$as_me:$LINENO: result: $RANLIB" >&5
5315 echo "${ECHO_T}$RANLIB" >&6; }
5316 else
5317   { echo "$as_me:$LINENO: result: no" >&5
5318 echo "${ECHO_T}no" >&6; }
5319 fi
5320
5321
5322 fi
5323 if test -z "$ac_cv_prog_RANLIB"; then
5324   ac_ct_RANLIB=$RANLIB
5325   # Extract the first word of "ranlib", so it can be a program name with args.
5326 set dummy ranlib; ac_word=$2
5327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5329 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5330   echo $ECHO_N "(cached) $ECHO_C" >&6
5331 else
5332   if test -n "$ac_ct_RANLIB"; then
5333   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5334 else
5335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5336 for as_dir in $PATH
5337 do
5338   IFS=$as_save_IFS
5339   test -z "$as_dir" && as_dir=.
5340   for ac_exec_ext in '' $ac_executable_extensions; do
5341   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5342     ac_cv_prog_ac_ct_RANLIB="ranlib"
5343     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5344     break 2
5345   fi
5346 done
5347 done
5348 IFS=$as_save_IFS
5349
5350 fi
5351 fi
5352 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5353 if test -n "$ac_ct_RANLIB"; then
5354   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5355 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5356 else
5357   { echo "$as_me:$LINENO: result: no" >&5
5358 echo "${ECHO_T}no" >&6; }
5359 fi
5360
5361   if test "x$ac_ct_RANLIB" = x; then
5362     RANLIB=":"
5363   else
5364     case $cross_compiling:$ac_tool_warned in
5365 yes:)
5366 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5367 whose name does not start with the host triplet.  If you think this
5368 configuration is useful to you, please write to autoconf@gnu.org." >&5
5369 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5370 whose name does not start with the host triplet.  If you think this
5371 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5372 ac_tool_warned=yes ;;
5373 esac
5374     RANLIB=$ac_ct_RANLIB
5375   fi
5376 else
5377   RANLIB="$ac_cv_prog_RANLIB"
5378 fi
5379
5380 test -z "$RANLIB" && RANLIB=:
5381
5382
5383
5384
5385
5386
5387 # Determine commands to create old-style static archives.
5388 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5389 old_postinstall_cmds='chmod 644 $oldlib'
5390 old_postuninstall_cmds=
5391
5392 if test -n "$RANLIB"; then
5393   case $host_os in
5394   openbsd*)
5395     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5396     ;;
5397   *)
5398     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5399     ;;
5400   esac
5401   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5402 fi
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437 # If no C compiler was specified, use CC.
5438 LTCC=${LTCC-"$CC"}
5439
5440 # If no C compiler flags were specified, use CFLAGS.
5441 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5442
5443 # Allow CC to be a program name with arguments.
5444 compiler=$CC
5445
5446
5447 # Check for command to grab the raw symbol name followed by C symbol from nm.
5448 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5449 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5450 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5451   echo $ECHO_N "(cached) $ECHO_C" >&6
5452 else
5453
5454 # These are sane defaults that work on at least a few old systems.
5455 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5456
5457 # Character class describing NM global symbol codes.
5458 symcode='[BCDEGRST]'
5459
5460 # Regexp to match symbols that can be accessed directly from C.
5461 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5462
5463 # Define system-specific variables.
5464 case $host_os in
5465 aix*)
5466   symcode='[BCDT]'
5467   ;;
5468 cygwin* | mingw* | pw32*)
5469   symcode='[ABCDGISTW]'
5470   ;;
5471 hpux*)
5472   if test "$host_cpu" = ia64; then
5473     symcode='[ABCDEGRST]'
5474   fi
5475   ;;
5476 irix* | nonstopux*)
5477   symcode='[BCDEGRST]'
5478   ;;
5479 osf*)
5480   symcode='[BCDEGQRST]'
5481   ;;
5482 solaris*)
5483   symcode='[BDRT]'
5484   ;;
5485 sco3.2v5*)
5486   symcode='[DT]'
5487   ;;
5488 sysv4.2uw2*)
5489   symcode='[DT]'
5490   ;;
5491 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5492   symcode='[ABDT]'
5493   ;;
5494 sysv4)
5495   symcode='[DFNSTU]'
5496   ;;
5497 esac
5498
5499 # If we're using GNU nm, then use its standard symbol codes.
5500 case `$NM -V 2>&1` in
5501 *GNU* | *'with BFD'*)
5502   symcode='[ABCDGIRSTW]' ;;
5503 esac
5504
5505 # Transform an extracted symbol line into a proper C declaration.
5506 # Some systems (esp. on ia64) link data and code symbols differently,
5507 # so use this general approach.
5508 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5509
5510 # Transform an extracted symbol line into symbol name and symbol address
5511 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5512 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'"
5513
5514 # Handle CRLF in mingw tool chain
5515 opt_cr=
5516 case $build_os in
5517 mingw*)
5518   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5519   ;;
5520 esac
5521
5522 # Try without a prefix underscore, then with it.
5523 for ac_symprfx in "" "_"; do
5524
5525   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5526   symxfrm="\\1 $ac_symprfx\\2 \\2"
5527
5528   # Write the raw and C identifiers.
5529   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5530     # Fake it for dumpbin and say T for any non-static function
5531     # and D for any global variable.
5532     # Also find C++ and __fastcall symbols from MSVC++,
5533     # which start with @ or ?.
5534     lt_cv_sys_global_symbol_pipe="$AWK '"\
5535 "     {last_section=section; section=\$ 3};"\
5536 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5537 "     \$ 0!~/External *\|/{next};"\
5538 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5539 "     {if(hide[section]) next};"\
5540 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5541 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5542 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5543 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5544 "     ' prfx=^$ac_symprfx"
5545   else
5546     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5547   fi
5548
5549   # Check to see that the pipe works correctly.
5550   pipe_works=no
5551
5552   rm -f conftest*
5553   cat > conftest.$ac_ext <<_LT_EOF
5554 #ifdef __cplusplus
5555 extern "C" {
5556 #endif
5557 char nm_test_var;
5558 void nm_test_func(void);
5559 void nm_test_func(void){}
5560 #ifdef __cplusplus
5561 }
5562 #endif
5563 int main(){nm_test_var='a';nm_test_func();return(0);}
5564 _LT_EOF
5565
5566   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5567   (eval $ac_compile) 2>&5
5568   ac_status=$?
5569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570   (exit $ac_status); }; then
5571     # Now try to grab the symbols.
5572     nlist=conftest.nm
5573     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5574   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5575   ac_status=$?
5576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577   (exit $ac_status); } && test -s "$nlist"; then
5578       # Try sorting and uniquifying the output.
5579       if sort "$nlist" | uniq > "$nlist"T; then
5580         mv -f "$nlist"T "$nlist"
5581       else
5582         rm -f "$nlist"T
5583       fi
5584
5585       # Make sure that we snagged all the symbols we need.
5586       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5587         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5588           cat <<_LT_EOF > conftest.$ac_ext
5589 #ifdef __cplusplus
5590 extern "C" {
5591 #endif
5592
5593 _LT_EOF
5594           # Now generate the symbol file.
5595           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5596
5597           cat <<_LT_EOF >> conftest.$ac_ext
5598
5599 /* The mapping between symbol names and symbols.  */
5600 const struct {
5601   const char *name;
5602   void       *address;
5603 }
5604 lt__PROGRAM__LTX_preloaded_symbols[] =
5605 {
5606   { "@PROGRAM@", (void *) 0 },
5607 _LT_EOF
5608           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5609           cat <<\_LT_EOF >> conftest.$ac_ext
5610   {0, (void *) 0}
5611 };
5612
5613 /* This works around a problem in FreeBSD linker */
5614 #ifdef FREEBSD_WORKAROUND
5615 static const void *lt_preloaded_setup() {
5616   return lt__PROGRAM__LTX_preloaded_symbols;
5617 }
5618 #endif
5619
5620 #ifdef __cplusplus
5621 }
5622 #endif
5623 _LT_EOF
5624           # Now try linking the two files.
5625           mv conftest.$ac_objext conftstm.$ac_objext
5626           lt_save_LIBS="$LIBS"
5627           lt_save_CFLAGS="$CFLAGS"
5628           LIBS="conftstm.$ac_objext"
5629           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5630           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5631   (eval $ac_link) 2>&5
5632   ac_status=$?
5633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5635             pipe_works=yes
5636           fi
5637           LIBS="$lt_save_LIBS"
5638           CFLAGS="$lt_save_CFLAGS"
5639         else
5640           echo "cannot find nm_test_func in $nlist" >&5
5641         fi
5642       else
5643         echo "cannot find nm_test_var in $nlist" >&5
5644       fi
5645     else
5646       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5647     fi
5648   else
5649     echo "$progname: failed program was:" >&5
5650     cat conftest.$ac_ext >&5
5651   fi
5652   rm -rf conftest* conftst*
5653
5654   # Do not use the global_symbol_pipe unless it works.
5655   if test "$pipe_works" = yes; then
5656     break
5657   else
5658     lt_cv_sys_global_symbol_pipe=
5659   fi
5660 done
5661
5662 fi
5663
5664 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5665   lt_cv_sys_global_symbol_to_cdecl=
5666 fi
5667 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5668   { echo "$as_me:$LINENO: result: failed" >&5
5669 echo "${ECHO_T}failed" >&6; }
5670 else
5671   { echo "$as_me:$LINENO: result: ok" >&5
5672 echo "${ECHO_T}ok" >&6; }
5673 fi
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697 # Check whether --enable-libtool-lock was given.
5698 if test "${enable_libtool_lock+set}" = set; then
5699   enableval=$enable_libtool_lock;
5700 fi
5701
5702 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5703
5704 # Some flags need to be propagated to the compiler or linker for good
5705 # libtool support.
5706 case $host in
5707 ia64-*-hpux*)
5708   # Find out which ABI we are using.
5709   echo 'int i;' > conftest.$ac_ext
5710   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5711   (eval $ac_compile) 2>&5
5712   ac_status=$?
5713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714   (exit $ac_status); }; then
5715     case `/usr/bin/file conftest.$ac_objext` in
5716       *ELF-32*)
5717         HPUX_IA64_MODE="32"
5718         ;;
5719       *ELF-64*)
5720         HPUX_IA64_MODE="64"
5721         ;;
5722     esac
5723   fi
5724   rm -rf conftest*
5725   ;;
5726 *-*-irix6*)
5727   # Find out which ABI we are using.
5728   echo '#line 5728 "configure"' > conftest.$ac_ext
5729   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5730   (eval $ac_compile) 2>&5
5731   ac_status=$?
5732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733   (exit $ac_status); }; then
5734     if test "$lt_cv_prog_gnu_ld" = yes; then
5735       case `/usr/bin/file conftest.$ac_objext` in
5736         *32-bit*)
5737           LD="${LD-ld} -melf32bsmip"
5738           ;;
5739         *N32*)
5740           LD="${LD-ld} -melf32bmipn32"
5741           ;;
5742         *64-bit*)
5743           LD="${LD-ld} -melf64bmip"
5744         ;;
5745       esac
5746     else
5747       case `/usr/bin/file conftest.$ac_objext` in
5748         *32-bit*)
5749           LD="${LD-ld} -32"
5750           ;;
5751         *N32*)
5752           LD="${LD-ld} -n32"
5753           ;;
5754         *64-bit*)
5755           LD="${LD-ld} -64"
5756           ;;
5757       esac
5758     fi
5759   fi
5760   rm -rf conftest*
5761   ;;
5762
5763 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5764 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5765   # Find out which ABI we are using.
5766   echo 'int i;' > conftest.$ac_ext
5767   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5768   (eval $ac_compile) 2>&5
5769   ac_status=$?
5770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771   (exit $ac_status); }; then
5772     case `/usr/bin/file conftest.o` in
5773       *32-bit*)
5774         case $host in
5775           x86_64-*kfreebsd*-gnu)
5776             LD="${LD-ld} -m elf_i386_fbsd"
5777             ;;
5778           x86_64-*linux*)
5779             LD="${LD-ld} -m elf_i386"
5780             ;;
5781           ppc64-*linux*|powerpc64-*linux*)
5782             LD="${LD-ld} -m elf32ppclinux"
5783             ;;
5784           s390x-*linux*)
5785             LD="${LD-ld} -m elf_s390"
5786             ;;
5787           sparc64-*linux*)
5788             LD="${LD-ld} -m elf32_sparc"
5789             ;;
5790         esac
5791         ;;
5792       *64-bit*)
5793         case $host in
5794           x86_64-*kfreebsd*-gnu)
5795             LD="${LD-ld} -m elf_x86_64_fbsd"
5796             ;;
5797           x86_64-*linux*)
5798             LD="${LD-ld} -m elf_x86_64"
5799             ;;
5800           ppc*-*linux*|powerpc*-*linux*)
5801             LD="${LD-ld} -m elf64ppc"
5802             ;;
5803           s390*-*linux*|s390*-*tpf*)
5804             LD="${LD-ld} -m elf64_s390"
5805             ;;
5806           sparc*-*linux*)
5807             LD="${LD-ld} -m elf64_sparc"
5808             ;;
5809         esac
5810         ;;
5811     esac
5812   fi
5813   rm -rf conftest*
5814   ;;
5815
5816 *-*-sco3.2v5*)
5817   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5818   SAVE_CFLAGS="$CFLAGS"
5819   CFLAGS="$CFLAGS -belf"
5820   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5821 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5822 if test "${lt_cv_cc_needs_belf+set}" = set; then
5823   echo $ECHO_N "(cached) $ECHO_C" >&6
5824 else
5825   ac_ext=c
5826 ac_cpp='$CPP $CPPFLAGS'
5827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5830
5831      cat >conftest.$ac_ext <<_ACEOF
5832 /* confdefs.h.  */
5833 _ACEOF
5834 cat confdefs.h >>conftest.$ac_ext
5835 cat >>conftest.$ac_ext <<_ACEOF
5836 /* end confdefs.h.  */
5837
5838 int
5839 main ()
5840 {
5841
5842   ;
5843   return 0;
5844 }
5845 _ACEOF
5846 rm -f conftest.$ac_objext conftest$ac_exeext
5847 if { (ac_try="$ac_link"
5848 case "(($ac_try" in
5849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5850   *) ac_try_echo=$ac_try;;
5851 esac
5852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5853   (eval "$ac_link") 2>conftest.er1
5854   ac_status=$?
5855   grep -v '^ *+' conftest.er1 >conftest.err
5856   rm -f conftest.er1
5857   cat conftest.err >&5
5858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859   (exit $ac_status); } && {
5860          test -z "$ac_c_werror_flag" ||
5861          test ! -s conftest.err
5862        } && test -s conftest$ac_exeext &&
5863        $as_test_x conftest$ac_exeext; then
5864   lt_cv_cc_needs_belf=yes
5865 else
5866   echo "$as_me: failed program was:" >&5
5867 sed 's/^/| /' conftest.$ac_ext >&5
5868
5869         lt_cv_cc_needs_belf=no
5870 fi
5871
5872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5873       conftest$ac_exeext conftest.$ac_ext
5874      ac_ext=c
5875 ac_cpp='$CPP $CPPFLAGS'
5876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5879
5880 fi
5881 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5882 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5883   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5884     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5885     CFLAGS="$SAVE_CFLAGS"
5886   fi
5887   ;;
5888 sparc*-*solaris*)
5889   # Find out which ABI we are using.
5890   echo 'int i;' > conftest.$ac_ext
5891   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5892   (eval $ac_compile) 2>&5
5893   ac_status=$?
5894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895   (exit $ac_status); }; then
5896     case `/usr/bin/file conftest.o` in
5897     *64-bit*)
5898       case $lt_cv_prog_gnu_ld in
5899       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5900       *)
5901         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5902           LD="${LD-ld} -64"
5903         fi
5904         ;;
5905       esac
5906       ;;
5907     esac
5908   fi
5909   rm -rf conftest*
5910   ;;
5911 esac
5912
5913 need_locks="$enable_libtool_lock"
5914
5915
5916   case $host_os in
5917     rhapsody* | darwin*)
5918     if test -n "$ac_tool_prefix"; then
5919   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5920 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5923 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5924   echo $ECHO_N "(cached) $ECHO_C" >&6
5925 else
5926   if test -n "$DSYMUTIL"; then
5927   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5928 else
5929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5930 for as_dir in $PATH
5931 do
5932   IFS=$as_save_IFS
5933   test -z "$as_dir" && as_dir=.
5934   for ac_exec_ext in '' $ac_executable_extensions; do
5935   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5936     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5937     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5938     break 2
5939   fi
5940 done
5941 done
5942 IFS=$as_save_IFS
5943
5944 fi
5945 fi
5946 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5947 if test -n "$DSYMUTIL"; then
5948   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5949 echo "${ECHO_T}$DSYMUTIL" >&6; }
5950 else
5951   { echo "$as_me:$LINENO: result: no" >&5
5952 echo "${ECHO_T}no" >&6; }
5953 fi
5954
5955
5956 fi
5957 if test -z "$ac_cv_prog_DSYMUTIL"; then
5958   ac_ct_DSYMUTIL=$DSYMUTIL
5959   # Extract the first word of "dsymutil", so it can be a program name with args.
5960 set dummy dsymutil; ac_word=$2
5961 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5963 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5964   echo $ECHO_N "(cached) $ECHO_C" >&6
5965 else
5966   if test -n "$ac_ct_DSYMUTIL"; then
5967   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5968 else
5969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5970 for as_dir in $PATH
5971 do
5972   IFS=$as_save_IFS
5973   test -z "$as_dir" && as_dir=.
5974   for ac_exec_ext in '' $ac_executable_extensions; do
5975   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5976     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5977     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5978     break 2
5979   fi
5980 done
5981 done
5982 IFS=$as_save_IFS
5983
5984 fi
5985 fi
5986 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5987 if test -n "$ac_ct_DSYMUTIL"; then
5988   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5989 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
5990 else
5991   { echo "$as_me:$LINENO: result: no" >&5
5992 echo "${ECHO_T}no" >&6; }
5993 fi
5994
5995   if test "x$ac_ct_DSYMUTIL" = x; then
5996     DSYMUTIL=":"
5997   else
5998     case $cross_compiling:$ac_tool_warned in
5999 yes:)
6000 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6001 whose name does not start with the host triplet.  If you think this
6002 configuration is useful to you, please write to autoconf@gnu.org." >&5
6003 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6004 whose name does not start with the host triplet.  If you think this
6005 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6006 ac_tool_warned=yes ;;
6007 esac
6008     DSYMUTIL=$ac_ct_DSYMUTIL
6009   fi
6010 else
6011   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6012 fi
6013
6014     if test -n "$ac_tool_prefix"; then
6015   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6016 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6017 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6019 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6020   echo $ECHO_N "(cached) $ECHO_C" >&6
6021 else
6022   if test -n "$NMEDIT"; then
6023   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6024 else
6025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6026 for as_dir in $PATH
6027 do
6028   IFS=$as_save_IFS
6029   test -z "$as_dir" && as_dir=.
6030   for ac_exec_ext in '' $ac_executable_extensions; do
6031   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6032     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6033     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6034     break 2
6035   fi
6036 done
6037 done
6038 IFS=$as_save_IFS
6039
6040 fi
6041 fi
6042 NMEDIT=$ac_cv_prog_NMEDIT
6043 if test -n "$NMEDIT"; then
6044   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
6045 echo "${ECHO_T}$NMEDIT" >&6; }
6046 else
6047   { echo "$as_me:$LINENO: result: no" >&5
6048 echo "${ECHO_T}no" >&6; }
6049 fi
6050
6051
6052 fi
6053 if test -z "$ac_cv_prog_NMEDIT"; then
6054   ac_ct_NMEDIT=$NMEDIT
6055   # Extract the first word of "nmedit", so it can be a program name with args.
6056 set dummy nmedit; ac_word=$2
6057 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6059 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6060   echo $ECHO_N "(cached) $ECHO_C" >&6
6061 else
6062   if test -n "$ac_ct_NMEDIT"; then
6063   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6064 else
6065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6066 for as_dir in $PATH
6067 do
6068   IFS=$as_save_IFS
6069   test -z "$as_dir" && as_dir=.
6070   for ac_exec_ext in '' $ac_executable_extensions; do
6071   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6072     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6073     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6074     break 2
6075   fi
6076 done
6077 done
6078 IFS=$as_save_IFS
6079
6080 fi
6081 fi
6082 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6083 if test -n "$ac_ct_NMEDIT"; then
6084   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6085 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
6086 else
6087   { echo "$as_me:$LINENO: result: no" >&5
6088 echo "${ECHO_T}no" >&6; }
6089 fi
6090
6091   if test "x$ac_ct_NMEDIT" = x; then
6092     NMEDIT=":"
6093   else
6094     case $cross_compiling:$ac_tool_warned in
6095 yes:)
6096 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6097 whose name does not start with the host triplet.  If you think this
6098 configuration is useful to you, please write to autoconf@gnu.org." >&5
6099 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6100 whose name does not start with the host triplet.  If you think this
6101 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6102 ac_tool_warned=yes ;;
6103 esac
6104     NMEDIT=$ac_ct_NMEDIT
6105   fi
6106 else
6107   NMEDIT="$ac_cv_prog_NMEDIT"
6108 fi
6109
6110     if test -n "$ac_tool_prefix"; then
6111   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6112 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6115 if test "${ac_cv_prog_LIPO+set}" = set; then
6116   echo $ECHO_N "(cached) $ECHO_C" >&6
6117 else
6118   if test -n "$LIPO"; then
6119   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6120 else
6121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6122 for as_dir in $PATH
6123 do
6124   IFS=$as_save_IFS
6125   test -z "$as_dir" && as_dir=.
6126   for ac_exec_ext in '' $ac_executable_extensions; do
6127   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6128     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6129     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6130     break 2
6131   fi
6132 done
6133 done
6134 IFS=$as_save_IFS
6135
6136 fi
6137 fi
6138 LIPO=$ac_cv_prog_LIPO
6139 if test -n "$LIPO"; then
6140   { echo "$as_me:$LINENO: result: $LIPO" >&5
6141 echo "${ECHO_T}$LIPO" >&6; }
6142 else
6143   { echo "$as_me:$LINENO: result: no" >&5
6144 echo "${ECHO_T}no" >&6; }
6145 fi
6146
6147
6148 fi
6149 if test -z "$ac_cv_prog_LIPO"; then
6150   ac_ct_LIPO=$LIPO
6151   # Extract the first word of "lipo", so it can be a program name with args.
6152 set dummy lipo; ac_word=$2
6153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6155 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6156   echo $ECHO_N "(cached) $ECHO_C" >&6
6157 else
6158   if test -n "$ac_ct_LIPO"; then
6159   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6160 else
6161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6162 for as_dir in $PATH
6163 do
6164   IFS=$as_save_IFS
6165   test -z "$as_dir" && as_dir=.
6166   for ac_exec_ext in '' $ac_executable_extensions; do
6167   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6168     ac_cv_prog_ac_ct_LIPO="lipo"
6169     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6170     break 2
6171   fi
6172 done
6173 done
6174 IFS=$as_save_IFS
6175
6176 fi
6177 fi
6178 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6179 if test -n "$ac_ct_LIPO"; then
6180   { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6181 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
6182 else
6183   { echo "$as_me:$LINENO: result: no" >&5
6184 echo "${ECHO_T}no" >&6; }
6185 fi
6186
6187   if test "x$ac_ct_LIPO" = x; then
6188     LIPO=":"
6189   else
6190     case $cross_compiling:$ac_tool_warned in
6191 yes:)
6192 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6193 whose name does not start with the host triplet.  If you think this
6194 configuration is useful to you, please write to autoconf@gnu.org." >&5
6195 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6196 whose name does not start with the host triplet.  If you think this
6197 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6198 ac_tool_warned=yes ;;
6199 esac
6200     LIPO=$ac_ct_LIPO
6201   fi
6202 else
6203   LIPO="$ac_cv_prog_LIPO"
6204 fi
6205
6206     if test -n "$ac_tool_prefix"; then
6207   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6208 set dummy ${ac_tool_prefix}otool; ac_word=$2
6209 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6211 if test "${ac_cv_prog_OTOOL+set}" = set; then
6212   echo $ECHO_N "(cached) $ECHO_C" >&6
6213 else
6214   if test -n "$OTOOL"; then
6215   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6216 else
6217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6218 for as_dir in $PATH
6219 do
6220   IFS=$as_save_IFS
6221   test -z "$as_dir" && as_dir=.
6222   for ac_exec_ext in '' $ac_executable_extensions; do
6223   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6224     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6225     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6226     break 2
6227   fi
6228 done
6229 done
6230 IFS=$as_save_IFS
6231
6232 fi
6233 fi
6234 OTOOL=$ac_cv_prog_OTOOL
6235 if test -n "$OTOOL"; then
6236   { echo "$as_me:$LINENO: result: $OTOOL" >&5
6237 echo "${ECHO_T}$OTOOL" >&6; }
6238 else
6239   { echo "$as_me:$LINENO: result: no" >&5
6240 echo "${ECHO_T}no" >&6; }
6241 fi
6242
6243
6244 fi
6245 if test -z "$ac_cv_prog_OTOOL"; then
6246   ac_ct_OTOOL=$OTOOL
6247   # Extract the first word of "otool", so it can be a program name with args.
6248 set dummy otool; ac_word=$2
6249 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6251 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6252   echo $ECHO_N "(cached) $ECHO_C" >&6
6253 else
6254   if test -n "$ac_ct_OTOOL"; then
6255   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6256 else
6257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6258 for as_dir in $PATH
6259 do
6260   IFS=$as_save_IFS
6261   test -z "$as_dir" && as_dir=.
6262   for ac_exec_ext in '' $ac_executable_extensions; do
6263   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6264     ac_cv_prog_ac_ct_OTOOL="otool"
6265     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6266     break 2
6267   fi
6268 done
6269 done
6270 IFS=$as_save_IFS
6271
6272 fi
6273 fi
6274 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6275 if test -n "$ac_ct_OTOOL"; then
6276   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6277 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
6278 else
6279   { echo "$as_me:$LINENO: result: no" >&5
6280 echo "${ECHO_T}no" >&6; }
6281 fi
6282
6283   if test "x$ac_ct_OTOOL" = x; then
6284     OTOOL=":"
6285   else
6286     case $cross_compiling:$ac_tool_warned in
6287 yes:)
6288 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6289 whose name does not start with the host triplet.  If you think this
6290 configuration is useful to you, please write to autoconf@gnu.org." >&5
6291 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6292 whose name does not start with the host triplet.  If you think this
6293 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6294 ac_tool_warned=yes ;;
6295 esac
6296     OTOOL=$ac_ct_OTOOL
6297   fi
6298 else
6299   OTOOL="$ac_cv_prog_OTOOL"
6300 fi
6301
6302     if test -n "$ac_tool_prefix"; then
6303   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6304 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6305 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6307 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6308   echo $ECHO_N "(cached) $ECHO_C" >&6
6309 else
6310   if test -n "$OTOOL64"; then
6311   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6312 else
6313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6314 for as_dir in $PATH
6315 do
6316   IFS=$as_save_IFS
6317   test -z "$as_dir" && as_dir=.
6318   for ac_exec_ext in '' $ac_executable_extensions; do
6319   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6320     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6321     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6322     break 2
6323   fi
6324 done
6325 done
6326 IFS=$as_save_IFS
6327
6328 fi
6329 fi
6330 OTOOL64=$ac_cv_prog_OTOOL64
6331 if test -n "$OTOOL64"; then
6332   { echo "$as_me:$LINENO: result: $OTOOL64" >&5
6333 echo "${ECHO_T}$OTOOL64" >&6; }
6334 else
6335   { echo "$as_me:$LINENO: result: no" >&5
6336 echo "${ECHO_T}no" >&6; }
6337 fi
6338
6339
6340 fi
6341 if test -z "$ac_cv_prog_OTOOL64"; then
6342   ac_ct_OTOOL64=$OTOOL64
6343   # Extract the first word of "otool64", so it can be a program name with args.
6344 set dummy otool64; ac_word=$2
6345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6347 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6348   echo $ECHO_N "(cached) $ECHO_C" >&6
6349 else
6350   if test -n "$ac_ct_OTOOL64"; then
6351   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6352 else
6353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6354 for as_dir in $PATH
6355 do
6356   IFS=$as_save_IFS
6357   test -z "$as_dir" && as_dir=.
6358   for ac_exec_ext in '' $ac_executable_extensions; do
6359   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6360     ac_cv_prog_ac_ct_OTOOL64="otool64"
6361     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6362     break 2
6363   fi
6364 done
6365 done
6366 IFS=$as_save_IFS
6367
6368 fi
6369 fi
6370 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6371 if test -n "$ac_ct_OTOOL64"; then
6372   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6373 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
6374 else
6375   { echo "$as_me:$LINENO: result: no" >&5
6376 echo "${ECHO_T}no" >&6; }
6377 fi
6378
6379   if test "x$ac_ct_OTOOL64" = x; then
6380     OTOOL64=":"
6381   else
6382     case $cross_compiling:$ac_tool_warned in
6383 yes:)
6384 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6385 whose name does not start with the host triplet.  If you think this
6386 configuration is useful to you, please write to autoconf@gnu.org." >&5
6387 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6388 whose name does not start with the host triplet.  If you think this
6389 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6390 ac_tool_warned=yes ;;
6391 esac
6392     OTOOL64=$ac_ct_OTOOL64
6393   fi
6394 else
6395   OTOOL64="$ac_cv_prog_OTOOL64"
6396 fi
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6425 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
6426 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6427   echo $ECHO_N "(cached) $ECHO_C" >&6
6428 else
6429   lt_cv_apple_cc_single_mod=no
6430       if test -z "${LT_MULTI_MODULE}"; then
6431         # By default we will add the -single_module flag. You can override
6432         # by either setting the environment variable LT_MULTI_MODULE
6433         # non-empty at configure time, or by adding -multi_module to the
6434         # link flags.
6435         rm -rf libconftest.dylib*
6436         echo "int foo(void){return 1;}" > conftest.c
6437         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6438 -dynamiclib -Wl,-single_module conftest.c" >&5
6439         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6440           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6441         _lt_result=$?
6442         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6443           lt_cv_apple_cc_single_mod=yes
6444         else
6445           cat conftest.err >&5
6446         fi
6447         rm -rf libconftest.dylib*
6448         rm -f conftest.*
6449       fi
6450 fi
6451 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6452 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
6453     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6454 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
6455 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6456   echo $ECHO_N "(cached) $ECHO_C" >&6
6457 else
6458   lt_cv_ld_exported_symbols_list=no
6459       save_LDFLAGS=$LDFLAGS
6460       echo "_main" > conftest.sym
6461       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6462       cat >conftest.$ac_ext <<_ACEOF
6463 /* confdefs.h.  */
6464 _ACEOF
6465 cat confdefs.h >>conftest.$ac_ext
6466 cat >>conftest.$ac_ext <<_ACEOF
6467 /* end confdefs.h.  */
6468
6469 int
6470 main ()
6471 {
6472
6473   ;
6474   return 0;
6475 }
6476 _ACEOF
6477 rm -f conftest.$ac_objext conftest$ac_exeext
6478 if { (ac_try="$ac_link"
6479 case "(($ac_try" in
6480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6481   *) ac_try_echo=$ac_try;;
6482 esac
6483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6484   (eval "$ac_link") 2>conftest.er1
6485   ac_status=$?
6486   grep -v '^ *+' conftest.er1 >conftest.err
6487   rm -f conftest.er1
6488   cat conftest.err >&5
6489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490   (exit $ac_status); } && {
6491          test -z "$ac_c_werror_flag" ||
6492          test ! -s conftest.err
6493        } && test -s conftest$ac_exeext &&
6494        $as_test_x conftest$ac_exeext; then
6495   lt_cv_ld_exported_symbols_list=yes
6496 else
6497   echo "$as_me: failed program was:" >&5
6498 sed 's/^/| /' conftest.$ac_ext >&5
6499
6500         lt_cv_ld_exported_symbols_list=no
6501 fi
6502
6503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6504       conftest$ac_exeext conftest.$ac_ext
6505         LDFLAGS="$save_LDFLAGS"
6506
6507 fi
6508 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6509 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
6510     case $host_os in
6511     rhapsody* | darwin1.[012])
6512       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6513     darwin1.*)
6514       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6515     darwin*) # darwin 5.x on
6516       # if running on 10.5 or later, the deployment target defaults
6517       # to the OS version, if on x86, and 10.4, the deployment
6518       # target defaults to 10.4. Don't you love it?
6519       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6520         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6521           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6522         10.[012]*)
6523           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6524         10.*)
6525           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6526       esac
6527     ;;
6528   esac
6529     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6530       _lt_dar_single_mod='$single_module'
6531     fi
6532     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6533       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6534     else
6535       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6536     fi
6537     if test "$DSYMUTIL" != ":"; then
6538       _lt_dsymutil='~$DSYMUTIL $lib || :'
6539     else
6540       _lt_dsymutil=
6541     fi
6542     ;;
6543   esac
6544
6545 ac_ext=c
6546 ac_cpp='$CPP $CPPFLAGS'
6547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6550 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6551 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6552 # On Suns, sometimes $CPP names a directory.
6553 if test -n "$CPP" && test -d "$CPP"; then
6554   CPP=
6555 fi
6556 if test -z "$CPP"; then
6557   if test "${ac_cv_prog_CPP+set}" = set; then
6558   echo $ECHO_N "(cached) $ECHO_C" >&6
6559 else
6560       # Double quotes because CPP needs to be expanded
6561     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6562     do
6563       ac_preproc_ok=false
6564 for ac_c_preproc_warn_flag in '' yes
6565 do
6566   # Use a header file that comes with gcc, so configuring glibc
6567   # with a fresh cross-compiler works.
6568   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6569   # <limits.h> exists even on freestanding compilers.
6570   # On the NeXT, cc -E runs the code through the compiler's parser,
6571   # not just through cpp. "Syntax error" is here to catch this case.
6572   cat >conftest.$ac_ext <<_ACEOF
6573 /* confdefs.h.  */
6574 _ACEOF
6575 cat confdefs.h >>conftest.$ac_ext
6576 cat >>conftest.$ac_ext <<_ACEOF
6577 /* end confdefs.h.  */
6578 #ifdef __STDC__
6579 # include <limits.h>
6580 #else
6581 # include <assert.h>
6582 #endif
6583                      Syntax error
6584 _ACEOF
6585 if { (ac_try="$ac_cpp conftest.$ac_ext"
6586 case "(($ac_try" in
6587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6588   *) ac_try_echo=$ac_try;;
6589 esac
6590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6591   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6592   ac_status=$?
6593   grep -v '^ *+' conftest.er1 >conftest.err
6594   rm -f conftest.er1
6595   cat conftest.err >&5
6596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597   (exit $ac_status); } >/dev/null && {
6598          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6599          test ! -s conftest.err
6600        }; then
6601   :
6602 else
6603   echo "$as_me: failed program was:" >&5
6604 sed 's/^/| /' conftest.$ac_ext >&5
6605
6606   # Broken: fails on valid input.
6607 continue
6608 fi
6609
6610 rm -f conftest.err conftest.$ac_ext
6611
6612   # OK, works on sane cases.  Now check whether nonexistent headers
6613   # can be detected and how.
6614   cat >conftest.$ac_ext <<_ACEOF
6615 /* confdefs.h.  */
6616 _ACEOF
6617 cat confdefs.h >>conftest.$ac_ext
6618 cat >>conftest.$ac_ext <<_ACEOF
6619 /* end confdefs.h.  */
6620 #include <ac_nonexistent.h>
6621 _ACEOF
6622 if { (ac_try="$ac_cpp conftest.$ac_ext"
6623 case "(($ac_try" in
6624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6625   *) ac_try_echo=$ac_try;;
6626 esac
6627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6628   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6629   ac_status=$?
6630   grep -v '^ *+' conftest.er1 >conftest.err
6631   rm -f conftest.er1
6632   cat conftest.err >&5
6633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634   (exit $ac_status); } >/dev/null && {
6635          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6636          test ! -s conftest.err
6637        }; then
6638   # Broken: success on invalid input.
6639 continue
6640 else
6641   echo "$as_me: failed program was:" >&5
6642 sed 's/^/| /' conftest.$ac_ext >&5
6643
6644   # Passes both tests.
6645 ac_preproc_ok=:
6646 break
6647 fi
6648
6649 rm -f conftest.err conftest.$ac_ext
6650
6651 done
6652 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6653 rm -f conftest.err conftest.$ac_ext
6654 if $ac_preproc_ok; then
6655   break
6656 fi
6657
6658     done
6659     ac_cv_prog_CPP=$CPP
6660
6661 fi
6662   CPP=$ac_cv_prog_CPP
6663 else
6664   ac_cv_prog_CPP=$CPP
6665 fi
6666 { echo "$as_me:$LINENO: result: $CPP" >&5
6667 echo "${ECHO_T}$CPP" >&6; }
6668 ac_preproc_ok=false
6669 for ac_c_preproc_warn_flag in '' yes
6670 do
6671   # Use a header file that comes with gcc, so configuring glibc
6672   # with a fresh cross-compiler works.
6673   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6674   # <limits.h> exists even on freestanding compilers.
6675   # On the NeXT, cc -E runs the code through the compiler's parser,
6676   # not just through cpp. "Syntax error" is here to catch this case.
6677   cat >conftest.$ac_ext <<_ACEOF
6678 /* confdefs.h.  */
6679 _ACEOF
6680 cat confdefs.h >>conftest.$ac_ext
6681 cat >>conftest.$ac_ext <<_ACEOF
6682 /* end confdefs.h.  */
6683 #ifdef __STDC__
6684 # include <limits.h>
6685 #else
6686 # include <assert.h>
6687 #endif
6688                      Syntax error
6689 _ACEOF
6690 if { (ac_try="$ac_cpp conftest.$ac_ext"
6691 case "(($ac_try" in
6692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6693   *) ac_try_echo=$ac_try;;
6694 esac
6695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6696   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6697   ac_status=$?
6698   grep -v '^ *+' conftest.er1 >conftest.err
6699   rm -f conftest.er1
6700   cat conftest.err >&5
6701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702   (exit $ac_status); } >/dev/null && {
6703          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6704          test ! -s conftest.err
6705        }; then
6706   :
6707 else
6708   echo "$as_me: failed program was:" >&5
6709 sed 's/^/| /' conftest.$ac_ext >&5
6710
6711   # Broken: fails on valid input.
6712 continue
6713 fi
6714
6715 rm -f conftest.err conftest.$ac_ext
6716
6717   # OK, works on sane cases.  Now check whether nonexistent headers
6718   # can be detected and how.
6719   cat >conftest.$ac_ext <<_ACEOF
6720 /* confdefs.h.  */
6721 _ACEOF
6722 cat confdefs.h >>conftest.$ac_ext
6723 cat >>conftest.$ac_ext <<_ACEOF
6724 /* end confdefs.h.  */
6725 #include <ac_nonexistent.h>
6726 _ACEOF
6727 if { (ac_try="$ac_cpp conftest.$ac_ext"
6728 case "(($ac_try" in
6729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6730   *) ac_try_echo=$ac_try;;
6731 esac
6732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6733   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6734   ac_status=$?
6735   grep -v '^ *+' conftest.er1 >conftest.err
6736   rm -f conftest.er1
6737   cat conftest.err >&5
6738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739   (exit $ac_status); } >/dev/null && {
6740          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6741          test ! -s conftest.err
6742        }; then
6743   # Broken: success on invalid input.
6744 continue
6745 else
6746   echo "$as_me: failed program was:" >&5
6747 sed 's/^/| /' conftest.$ac_ext >&5
6748
6749   # Passes both tests.
6750 ac_preproc_ok=:
6751 break
6752 fi
6753
6754 rm -f conftest.err conftest.$ac_ext
6755
6756 done
6757 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6758 rm -f conftest.err conftest.$ac_ext
6759 if $ac_preproc_ok; then
6760   :
6761 else
6762   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6763 See \`config.log' for more details." >&5
6764 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6765 See \`config.log' for more details." >&2;}
6766    { (exit 1); exit 1; }; }
6767 fi
6768
6769 ac_ext=c
6770 ac_cpp='$CPP $CPPFLAGS'
6771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6774
6775
6776 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6777 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6778 if test "${ac_cv_header_stdc+set}" = set; then
6779   echo $ECHO_N "(cached) $ECHO_C" >&6
6780 else
6781   cat >conftest.$ac_ext <<_ACEOF
6782 /* confdefs.h.  */
6783 _ACEOF
6784 cat confdefs.h >>conftest.$ac_ext
6785 cat >>conftest.$ac_ext <<_ACEOF
6786 /* end confdefs.h.  */
6787 #include <stdlib.h>
6788 #include <stdarg.h>
6789 #include <string.h>
6790 #include <float.h>
6791
6792 int
6793 main ()
6794 {
6795
6796   ;
6797   return 0;
6798 }
6799 _ACEOF
6800 rm -f conftest.$ac_objext
6801 if { (ac_try="$ac_compile"
6802 case "(($ac_try" in
6803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6804   *) ac_try_echo=$ac_try;;
6805 esac
6806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6807   (eval "$ac_compile") 2>conftest.er1
6808   ac_status=$?
6809   grep -v '^ *+' conftest.er1 >conftest.err
6810   rm -f conftest.er1
6811   cat conftest.err >&5
6812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813   (exit $ac_status); } && {
6814          test -z "$ac_c_werror_flag" ||
6815          test ! -s conftest.err
6816        } && test -s conftest.$ac_objext; then
6817   ac_cv_header_stdc=yes
6818 else
6819   echo "$as_me: failed program was:" >&5
6820 sed 's/^/| /' conftest.$ac_ext >&5
6821
6822         ac_cv_header_stdc=no
6823 fi
6824
6825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6826
6827 if test $ac_cv_header_stdc = yes; then
6828   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6829   cat >conftest.$ac_ext <<_ACEOF
6830 /* confdefs.h.  */
6831 _ACEOF
6832 cat confdefs.h >>conftest.$ac_ext
6833 cat >>conftest.$ac_ext <<_ACEOF
6834 /* end confdefs.h.  */
6835 #include <string.h>
6836
6837 _ACEOF
6838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6839   $EGREP "memchr" >/dev/null 2>&1; then
6840   :
6841 else
6842   ac_cv_header_stdc=no
6843 fi
6844 rm -f conftest*
6845
6846 fi
6847
6848 if test $ac_cv_header_stdc = yes; then
6849   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6850   cat >conftest.$ac_ext <<_ACEOF
6851 /* confdefs.h.  */
6852 _ACEOF
6853 cat confdefs.h >>conftest.$ac_ext
6854 cat >>conftest.$ac_ext <<_ACEOF
6855 /* end confdefs.h.  */
6856 #include <stdlib.h>
6857
6858 _ACEOF
6859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6860   $EGREP "free" >/dev/null 2>&1; then
6861   :
6862 else
6863   ac_cv_header_stdc=no
6864 fi
6865 rm -f conftest*
6866
6867 fi
6868
6869 if test $ac_cv_header_stdc = yes; then
6870   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6871   if test "$cross_compiling" = yes; then
6872   :
6873 else
6874   cat >conftest.$ac_ext <<_ACEOF
6875 /* confdefs.h.  */
6876 _ACEOF
6877 cat confdefs.h >>conftest.$ac_ext
6878 cat >>conftest.$ac_ext <<_ACEOF
6879 /* end confdefs.h.  */
6880 #include <ctype.h>
6881 #include <stdlib.h>
6882 #if ((' ' & 0x0FF) == 0x020)
6883 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6884 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6885 #else
6886 # define ISLOWER(c) \
6887                    (('a' <= (c) && (c) <= 'i') \
6888                      || ('j' <= (c) && (c) <= 'r') \
6889                      || ('s' <= (c) && (c) <= 'z'))
6890 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6891 #endif
6892
6893 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6894 int
6895 main ()
6896 {
6897   int i;
6898   for (i = 0; i < 256; i++)
6899     if (XOR (islower (i), ISLOWER (i))
6900         || toupper (i) != TOUPPER (i))
6901       return 2;
6902   return 0;
6903 }
6904 _ACEOF
6905 rm -f conftest$ac_exeext
6906 if { (ac_try="$ac_link"
6907 case "(($ac_try" in
6908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6909   *) ac_try_echo=$ac_try;;
6910 esac
6911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6912   (eval "$ac_link") 2>&5
6913   ac_status=$?
6914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6916   { (case "(($ac_try" in
6917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6918   *) ac_try_echo=$ac_try;;
6919 esac
6920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6921   (eval "$ac_try") 2>&5
6922   ac_status=$?
6923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924   (exit $ac_status); }; }; then
6925   :
6926 else
6927   echo "$as_me: program exited with status $ac_status" >&5
6928 echo "$as_me: failed program was:" >&5
6929 sed 's/^/| /' conftest.$ac_ext >&5
6930
6931 ( exit $ac_status )
6932 ac_cv_header_stdc=no
6933 fi
6934 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6935 fi
6936
6937
6938 fi
6939 fi
6940 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6941 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6942 if test $ac_cv_header_stdc = yes; then
6943
6944 cat >>confdefs.h <<\_ACEOF
6945 #define STDC_HEADERS 1
6946 _ACEOF
6947
6948 fi
6949
6950 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6961                   inttypes.h stdint.h unistd.h
6962 do
6963 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6964 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6966 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6967   echo $ECHO_N "(cached) $ECHO_C" >&6
6968 else
6969   cat >conftest.$ac_ext <<_ACEOF
6970 /* confdefs.h.  */
6971 _ACEOF
6972 cat confdefs.h >>conftest.$ac_ext
6973 cat >>conftest.$ac_ext <<_ACEOF
6974 /* end confdefs.h.  */
6975 $ac_includes_default
6976
6977 #include <$ac_header>
6978 _ACEOF
6979 rm -f conftest.$ac_objext
6980 if { (ac_try="$ac_compile"
6981 case "(($ac_try" in
6982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6983   *) ac_try_echo=$ac_try;;
6984 esac
6985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6986   (eval "$ac_compile") 2>conftest.er1
6987   ac_status=$?
6988   grep -v '^ *+' conftest.er1 >conftest.err
6989   rm -f conftest.er1
6990   cat conftest.err >&5
6991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992   (exit $ac_status); } && {
6993          test -z "$ac_c_werror_flag" ||
6994          test ! -s conftest.err
6995        } && test -s conftest.$ac_objext; then
6996   eval "$as_ac_Header=yes"
6997 else
6998   echo "$as_me: failed program was:" >&5
6999 sed 's/^/| /' conftest.$ac_ext >&5
7000
7001         eval "$as_ac_Header=no"
7002 fi
7003
7004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7005 fi
7006 ac_res=`eval echo '${'$as_ac_Header'}'`
7007                { echo "$as_me:$LINENO: result: $ac_res" >&5
7008 echo "${ECHO_T}$ac_res" >&6; }
7009 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7010   cat >>confdefs.h <<_ACEOF
7011 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7012 _ACEOF
7013
7014 fi
7015
7016 done
7017
7018
7019
7020 for ac_header in dlfcn.h
7021 do
7022 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7023 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7026   echo $ECHO_N "(cached) $ECHO_C" >&6
7027 else
7028   cat >conftest.$ac_ext <<_ACEOF
7029 /* confdefs.h.  */
7030 _ACEOF
7031 cat confdefs.h >>conftest.$ac_ext
7032 cat >>conftest.$ac_ext <<_ACEOF
7033 /* end confdefs.h.  */
7034 $ac_includes_default
7035
7036 #include <$ac_header>
7037 _ACEOF
7038 rm -f conftest.$ac_objext
7039 if { (ac_try="$ac_compile"
7040 case "(($ac_try" in
7041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7042   *) ac_try_echo=$ac_try;;
7043 esac
7044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7045   (eval "$ac_compile") 2>conftest.er1
7046   ac_status=$?
7047   grep -v '^ *+' conftest.er1 >conftest.err
7048   rm -f conftest.er1
7049   cat conftest.err >&5
7050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051   (exit $ac_status); } && {
7052          test -z "$ac_c_werror_flag" ||
7053          test ! -s conftest.err
7054        } && test -s conftest.$ac_objext; then
7055   eval "$as_ac_Header=yes"
7056 else
7057   echo "$as_me: failed program was:" >&5
7058 sed 's/^/| /' conftest.$ac_ext >&5
7059
7060         eval "$as_ac_Header=no"
7061 fi
7062
7063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7064 fi
7065 ac_res=`eval echo '${'$as_ac_Header'}'`
7066                { echo "$as_me:$LINENO: result: $ac_res" >&5
7067 echo "${ECHO_T}$ac_res" >&6; }
7068 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7069   cat >>confdefs.h <<_ACEOF
7070 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7071 _ACEOF
7072
7073 fi
7074
7075 done
7076
7077
7078
7079 # Set options
7080
7081
7082
7083         enable_dlopen=no
7084
7085
7086
7087             # Check whether --enable-shared was given.
7088 if test "${enable_shared+set}" = set; then
7089   enableval=$enable_shared; p=${PACKAGE-default}
7090     case $enableval in
7091     yes) enable_shared=yes ;;
7092     no) enable_shared=no ;;
7093     *)
7094       enable_shared=no
7095       # Look at the argument we got.  We use all the common list separators.
7096       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7097       for pkg in $enableval; do
7098         IFS="$lt_save_ifs"
7099         if test "X$pkg" = "X$p"; then
7100           enable_shared=yes
7101         fi
7102       done
7103       IFS="$lt_save_ifs"
7104       ;;
7105     esac
7106 else
7107   enable_shared=yes
7108 fi
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118   # Check whether --enable-static was given.
7119 if test "${enable_static+set}" = set; then
7120   enableval=$enable_static; p=${PACKAGE-default}
7121     case $enableval in
7122     yes) enable_static=yes ;;
7123     no) enable_static=no ;;
7124     *)
7125      enable_static=no
7126       # Look at the argument we got.  We use all the common list separators.
7127       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7128       for pkg in $enableval; do
7129         IFS="$lt_save_ifs"
7130         if test "X$pkg" = "X$p"; then
7131           enable_static=yes
7132         fi
7133       done
7134       IFS="$lt_save_ifs"
7135       ;;
7136     esac
7137 else
7138   enable_static=yes
7139 fi
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150 # Check whether --with-pic was given.
7151 if test "${with_pic+set}" = set; then
7152   withval=$with_pic; pic_mode="$withval"
7153 else
7154   pic_mode=default
7155 fi
7156
7157
7158 test -z "$pic_mode" && pic_mode=default
7159
7160
7161
7162
7163
7164
7165
7166   # Check whether --enable-fast-install was given.
7167 if test "${enable_fast_install+set}" = set; then
7168   enableval=$enable_fast_install; p=${PACKAGE-default}
7169     case $enableval in
7170     yes) enable_fast_install=yes ;;
7171     no) enable_fast_install=no ;;
7172     *)
7173       enable_fast_install=no
7174       # Look at the argument we got.  We use all the common list separators.
7175       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7176       for pkg in $enableval; do
7177         IFS="$lt_save_ifs"
7178         if test "X$pkg" = "X$p"; then
7179           enable_fast_install=yes
7180         fi
7181       done
7182       IFS="$lt_save_ifs"
7183       ;;
7184     esac
7185 else
7186   enable_fast_install=yes
7187 fi
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199 # This can be used to rebuild libtool when needed
7200 LIBTOOL_DEPS="$ltmain"
7201
7202 # Always use our own libtool.
7203 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229 test -z "$LN_S" && LN_S="ln -s"
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244 if test -n "${ZSH_VERSION+set}" ; then
7245    setopt NO_GLOB_SUBST
7246 fi
7247
7248 { echo "$as_me:$LINENO: checking for objdir" >&5
7249 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7250 if test "${lt_cv_objdir+set}" = set; then
7251   echo $ECHO_N "(cached) $ECHO_C" >&6
7252 else
7253   rm -f .libs 2>/dev/null
7254 mkdir .libs 2>/dev/null
7255 if test -d .libs; then
7256   lt_cv_objdir=.libs
7257 else
7258   # MS-DOS does not allow filenames that begin with a dot.
7259   lt_cv_objdir=_libs
7260 fi
7261 rmdir .libs 2>/dev/null
7262 fi
7263 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7264 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7265 objdir=$lt_cv_objdir
7266
7267
7268
7269
7270
7271 cat >>confdefs.h <<_ACEOF
7272 #define LT_OBJDIR "$lt_cv_objdir/"
7273 _ACEOF
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291 case $host_os in
7292 aix3*)
7293   # AIX sometimes has problems with the GCC collect2 program.  For some
7294   # reason, if we set the COLLECT_NAMES environment variable, the problems
7295   # vanish in a puff of smoke.
7296   if test "X${COLLECT_NAMES+set}" != Xset; then
7297     COLLECT_NAMES=
7298     export COLLECT_NAMES
7299   fi
7300   ;;
7301 esac
7302
7303 # Sed substitution that helps us do robust quoting.  It backslashifies
7304 # metacharacters that are still active within double-quoted strings.
7305 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7306
7307 # Same as above, but do not quote variable references.
7308 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7309
7310 # Sed substitution to delay expansion of an escaped shell variable in a
7311 # double_quote_subst'ed string.
7312 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7313
7314 # Sed substitution to delay expansion of an escaped single quote.
7315 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7316
7317 # Sed substitution to avoid accidental globbing in evaled expressions
7318 no_glob_subst='s/\*/\\\*/g'
7319
7320 # Global variables:
7321 ofile=libtool
7322 can_build_shared=yes
7323
7324 # All known linkers require a `.a' archive for static linking (except MSVC,
7325 # which needs '.lib').
7326 libext=a
7327
7328 with_gnu_ld="$lt_cv_prog_gnu_ld"
7329
7330 old_CC="$CC"
7331 old_CFLAGS="$CFLAGS"
7332
7333 # Set sane defaults for various variables
7334 test -z "$CC" && CC=cc
7335 test -z "$LTCC" && LTCC=$CC
7336 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7337 test -z "$LD" && LD=ld
7338 test -z "$ac_objext" && ac_objext=o
7339
7340 for cc_temp in $compiler""; do
7341   case $cc_temp in
7342     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7343     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7344     \-*) ;;
7345     *) break;;
7346   esac
7347 done
7348 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7349
7350
7351 # Only perform the check for file, if the check method requires it
7352 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7353 case $deplibs_check_method in
7354 file_magic*)
7355   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7356     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7357 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7358 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7359   echo $ECHO_N "(cached) $ECHO_C" >&6
7360 else
7361   case $MAGIC_CMD in
7362 [\\/*] |  ?:[\\/]*)
7363   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7364   ;;
7365 *)
7366   lt_save_MAGIC_CMD="$MAGIC_CMD"
7367   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7368   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7369   for ac_dir in $ac_dummy; do
7370     IFS="$lt_save_ifs"
7371     test -z "$ac_dir" && ac_dir=.
7372     if test -f $ac_dir/${ac_tool_prefix}file; then
7373       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7374       if test -n "$file_magic_test_file"; then
7375         case $deplibs_check_method in
7376         "file_magic "*)
7377           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7378           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7379           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7380             $EGREP "$file_magic_regex" > /dev/null; then
7381             :
7382           else
7383             cat <<_LT_EOF 1>&2
7384
7385 *** Warning: the command libtool uses to detect shared libraries,
7386 *** $file_magic_cmd, produces output that libtool cannot recognize.
7387 *** The result is that libtool may fail to recognize shared libraries
7388 *** as such.  This will affect the creation of libtool libraries that
7389 *** depend on shared libraries, but programs linked with such libtool
7390 *** libraries will work regardless of this problem.  Nevertheless, you
7391 *** may want to report the problem to your system manager and/or to
7392 *** bug-libtool@gnu.org
7393
7394 _LT_EOF
7395           fi ;;
7396         esac
7397       fi
7398       break
7399     fi
7400   done
7401   IFS="$lt_save_ifs"
7402   MAGIC_CMD="$lt_save_MAGIC_CMD"
7403   ;;
7404 esac
7405 fi
7406
7407 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7408 if test -n "$MAGIC_CMD"; then
7409   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7410 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7411 else
7412   { echo "$as_me:$LINENO: result: no" >&5
7413 echo "${ECHO_T}no" >&6; }
7414 fi
7415
7416
7417
7418
7419
7420 if test -z "$lt_cv_path_MAGIC_CMD"; then
7421   if test -n "$ac_tool_prefix"; then
7422     { echo "$as_me:$LINENO: checking for file" >&5
7423 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7424 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7425   echo $ECHO_N "(cached) $ECHO_C" >&6
7426 else
7427   case $MAGIC_CMD in
7428 [\\/*] |  ?:[\\/]*)
7429   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7430   ;;
7431 *)
7432   lt_save_MAGIC_CMD="$MAGIC_CMD"
7433   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7434   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7435   for ac_dir in $ac_dummy; do
7436     IFS="$lt_save_ifs"
7437     test -z "$ac_dir" && ac_dir=.
7438     if test -f $ac_dir/file; then
7439       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7440       if test -n "$file_magic_test_file"; then
7441         case $deplibs_check_method in
7442         "file_magic "*)
7443           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7444           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7445           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7446             $EGREP "$file_magic_regex" > /dev/null; then
7447             :
7448           else
7449             cat <<_LT_EOF 1>&2
7450
7451 *** Warning: the command libtool uses to detect shared libraries,
7452 *** $file_magic_cmd, produces output that libtool cannot recognize.
7453 *** The result is that libtool may fail to recognize shared libraries
7454 *** as such.  This will affect the creation of libtool libraries that
7455 *** depend on shared libraries, but programs linked with such libtool
7456 *** libraries will work regardless of this problem.  Nevertheless, you
7457 *** may want to report the problem to your system manager and/or to
7458 *** bug-libtool@gnu.org
7459
7460 _LT_EOF
7461           fi ;;
7462         esac
7463       fi
7464       break
7465     fi
7466   done
7467   IFS="$lt_save_ifs"
7468   MAGIC_CMD="$lt_save_MAGIC_CMD"
7469   ;;
7470 esac
7471 fi
7472
7473 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7474 if test -n "$MAGIC_CMD"; then
7475   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7476 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7477 else
7478   { echo "$as_me:$LINENO: result: no" >&5
7479 echo "${ECHO_T}no" >&6; }
7480 fi
7481
7482
7483   else
7484     MAGIC_CMD=:
7485   fi
7486 fi
7487
7488   fi
7489   ;;
7490 esac
7491
7492 # Use C for the default configuration in the libtool script
7493
7494 lt_save_CC="$CC"
7495 ac_ext=c
7496 ac_cpp='$CPP $CPPFLAGS'
7497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7500
7501
7502 # Source file extension for C test sources.
7503 ac_ext=c
7504
7505 # Object file extension for compiled C test sources.
7506 objext=o
7507 objext=$objext
7508
7509 # Code to be used in simple compile tests
7510 lt_simple_compile_test_code="int some_variable = 0;"
7511
7512 # Code to be used in simple link tests
7513 lt_simple_link_test_code='int main(){return(0);}'
7514
7515
7516
7517
7518
7519
7520
7521 # If no C compiler was specified, use CC.
7522 LTCC=${LTCC-"$CC"}
7523
7524 # If no C compiler flags were specified, use CFLAGS.
7525 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7526
7527 # Allow CC to be a program name with arguments.
7528 compiler=$CC
7529
7530 # Save the default compiler, since it gets overwritten when the other
7531 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7532 compiler_DEFAULT=$CC
7533
7534 # save warnings/boilerplate of simple test code
7535 ac_outfile=conftest.$ac_objext
7536 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7537 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7538 _lt_compiler_boilerplate=`cat conftest.err`
7539 $RM conftest*
7540
7541 ac_outfile=conftest.$ac_objext
7542 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7543 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7544 _lt_linker_boilerplate=`cat conftest.err`
7545 $RM -r conftest*
7546
7547
7548 if test -n "$compiler"; then
7549
7550 lt_prog_compiler_no_builtin_flag=
7551
7552 if test "$GCC" = yes; then
7553   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7554
7555   { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7556 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7557 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7558   echo $ECHO_N "(cached) $ECHO_C" >&6
7559 else
7560   lt_cv_prog_compiler_rtti_exceptions=no
7561    ac_outfile=conftest.$ac_objext
7562    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7563    lt_compiler_flag="-fno-rtti -fno-exceptions"
7564    # Insert the option either (1) after the last *FLAGS variable, or
7565    # (2) before a word containing "conftest.", or (3) at the end.
7566    # Note that $ac_compile itself does not contain backslashes and begins
7567    # with a dollar sign (not a hyphen), so the echo should work correctly.
7568    # The option is referenced via a variable to avoid confusing sed.
7569    lt_compile=`echo "$ac_compile" | $SED \
7570    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7571    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7572    -e 's:$: $lt_compiler_flag:'`
7573    (eval echo "\"\$as_me:7573: $lt_compile\"" >&5)
7574    (eval "$lt_compile" 2>conftest.err)
7575    ac_status=$?
7576    cat conftest.err >&5
7577    echo "$as_me:7577: \$? = $ac_status" >&5
7578    if (exit $ac_status) && test -s "$ac_outfile"; then
7579      # The compiler can only warn and ignore the option if not recognized
7580      # So say no if there are warnings other than the usual output.
7581      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7582      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7583      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7584        lt_cv_prog_compiler_rtti_exceptions=yes
7585      fi
7586    fi
7587    $RM conftest*
7588
7589 fi
7590 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7591 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7592
7593 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7594     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7595 else
7596     :
7597 fi
7598
7599 fi
7600
7601
7602
7603
7604
7605
7606   lt_prog_compiler_wl=
7607 lt_prog_compiler_pic=
7608 lt_prog_compiler_static=
7609
7610 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7611 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7612
7613   if test "$GCC" = yes; then
7614     lt_prog_compiler_wl='-Wl,'
7615     lt_prog_compiler_static='-static'
7616
7617     case $host_os in
7618       aix*)
7619       # All AIX code is PIC.
7620       if test "$host_cpu" = ia64; then
7621         # AIX 5 now supports IA64 processor
7622         lt_prog_compiler_static='-Bstatic'
7623       fi
7624       ;;
7625
7626     amigaos*)
7627       case $host_cpu in
7628       powerpc)
7629             # see comment about AmigaOS4 .so support
7630             lt_prog_compiler_pic='-fPIC'
7631         ;;
7632       m68k)
7633             # FIXME: we need at least 68020 code to build shared libraries, but
7634             # adding the `-m68020' flag to GCC prevents building anything better,
7635             # like `-m68040'.
7636             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7637         ;;
7638       esac
7639       ;;
7640
7641     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7642       # PIC is the default for these OSes.
7643       ;;
7644
7645     mingw* | cygwin* | pw32* | os2*)
7646       # This hack is so that the source file can tell whether it is being
7647       # built for inclusion in a dll (and should export symbols for example).
7648       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7649       # (--disable-auto-import) libraries
7650       lt_prog_compiler_pic='-DDLL_EXPORT'
7651       ;;
7652
7653     darwin* | rhapsody*)
7654       # PIC is the default on this platform
7655       # Common symbols not allowed in MH_DYLIB files
7656       lt_prog_compiler_pic='-fno-common'
7657       ;;
7658
7659     hpux*)
7660       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7661       # not for PA HP-UX.
7662       case $host_cpu in
7663       hppa*64*|ia64*)
7664         # +Z the default
7665         ;;
7666       *)
7667         lt_prog_compiler_pic='-fPIC'
7668         ;;
7669       esac
7670       ;;
7671
7672     interix[3-9]*)
7673       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7674       # Instead, we relocate shared libraries at runtime.
7675       ;;
7676
7677     msdosdjgpp*)
7678       # Just because we use GCC doesn't mean we suddenly get shared libraries
7679       # on systems that don't support them.
7680       lt_prog_compiler_can_build_shared=no
7681       enable_shared=no
7682       ;;
7683
7684     *nto* | *qnx*)
7685       # QNX uses GNU C++, but need to define -shared option too, otherwise
7686       # it will coredump.
7687       lt_prog_compiler_pic='-fPIC -shared'
7688       ;;
7689
7690     sysv4*MP*)
7691       if test -d /usr/nec; then
7692         lt_prog_compiler_pic=-Kconform_pic
7693       fi
7694       ;;
7695
7696     *)
7697       lt_prog_compiler_pic='-fPIC'
7698       ;;
7699     esac
7700   else
7701     # PORTME Check for flag to pass linker flags through the system compiler.
7702     case $host_os in
7703     aix*)
7704       lt_prog_compiler_wl='-Wl,'
7705       if test "$host_cpu" = ia64; then
7706         # AIX 5 now supports IA64 processor
7707         lt_prog_compiler_static='-Bstatic'
7708       else
7709         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7710       fi
7711       ;;
7712
7713     mingw* | cygwin* | pw32* | os2*)
7714       # This hack is so that the source file can tell whether it is being
7715       # built for inclusion in a dll (and should export symbols for example).
7716       lt_prog_compiler_pic='-DDLL_EXPORT'
7717       ;;
7718
7719     hpux9* | hpux10* | hpux11*)
7720       lt_prog_compiler_wl='-Wl,'
7721       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7722       # not for PA HP-UX.
7723       case $host_cpu in
7724       hppa*64*|ia64*)
7725         # +Z the default
7726         ;;
7727       *)
7728         lt_prog_compiler_pic='+Z'
7729         ;;
7730       esac
7731       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7732       lt_prog_compiler_static='${wl}-a ${wl}archive'
7733       ;;
7734
7735     irix5* | irix6* | nonstopux*)
7736       lt_prog_compiler_wl='-Wl,'
7737       # PIC (with -KPIC) is the default.
7738       lt_prog_compiler_static='-non_shared'
7739       ;;
7740
7741     linux* | k*bsd*-gnu)
7742       case $cc_basename in
7743       icc* | ecc* | ifort*)
7744         lt_prog_compiler_wl='-Wl,'
7745         lt_prog_compiler_pic='-KPIC'
7746         lt_prog_compiler_static='-static'
7747         ;;
7748       pgcc* | pgf77* | pgf90* | pgf95*)
7749         # Portland Group compilers (*not* the Pentium gcc compiler,
7750         # which looks to be a dead project)
7751         lt_prog_compiler_wl='-Wl,'
7752         lt_prog_compiler_pic='-fpic'
7753         lt_prog_compiler_static='-Bstatic'
7754         ;;
7755       ccc*)
7756         lt_prog_compiler_wl='-Wl,'
7757         # All Alpha code is PIC.
7758         lt_prog_compiler_static='-non_shared'
7759         ;;
7760       xl*)
7761         # IBM XL C 8.0/Fortran 10.1 on PPC
7762         lt_prog_compiler_wl='-Wl,'
7763         lt_prog_compiler_pic='-qpic'
7764         lt_prog_compiler_static='-qstaticlink'
7765         ;;
7766       *)
7767         case `$CC -V 2>&1 | sed 5q` in
7768         *Sun\ C*)
7769           # Sun C 5.9
7770           lt_prog_compiler_pic='-KPIC'
7771           lt_prog_compiler_static='-Bstatic'
7772           lt_prog_compiler_wl='-Wl,'
7773           ;;
7774         *Sun\ F*)
7775           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7776           lt_prog_compiler_pic='-KPIC'
7777           lt_prog_compiler_static='-Bstatic'
7778           lt_prog_compiler_wl=''
7779           ;;
7780         esac
7781         ;;
7782       esac
7783       ;;
7784
7785     newsos6)
7786       lt_prog_compiler_pic='-KPIC'
7787       lt_prog_compiler_static='-Bstatic'
7788       ;;
7789
7790     *nto* | *qnx*)
7791       # QNX uses GNU C++, but need to define -shared option too, otherwise
7792       # it will coredump.
7793       lt_prog_compiler_pic='-fPIC -shared'
7794       ;;
7795
7796     osf3* | osf4* | osf5*)
7797       lt_prog_compiler_wl='-Wl,'
7798       # All OSF/1 code is PIC.
7799       lt_prog_compiler_static='-non_shared'
7800       ;;
7801
7802     rdos*)
7803       lt_prog_compiler_static='-non_shared'
7804       ;;
7805
7806     solaris*)
7807       lt_prog_compiler_pic='-KPIC'
7808       lt_prog_compiler_static='-Bstatic'
7809       case $cc_basename in
7810       f77* | f90* | f95*)
7811         lt_prog_compiler_wl='-Qoption ld ';;
7812       *)
7813         lt_prog_compiler_wl='-Wl,';;
7814       esac
7815       ;;
7816
7817     sunos4*)
7818       lt_prog_compiler_wl='-Qoption ld '
7819       lt_prog_compiler_pic='-PIC'
7820       lt_prog_compiler_static='-Bstatic'
7821       ;;
7822
7823     sysv4 | sysv4.2uw2* | sysv4.3*)
7824       lt_prog_compiler_wl='-Wl,'
7825       lt_prog_compiler_pic='-KPIC'
7826       lt_prog_compiler_static='-Bstatic'
7827       ;;
7828
7829     sysv4*MP*)
7830       if test -d /usr/nec ;then
7831         lt_prog_compiler_pic='-Kconform_pic'
7832         lt_prog_compiler_static='-Bstatic'
7833       fi
7834       ;;
7835
7836     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7837       lt_prog_compiler_wl='-Wl,'
7838       lt_prog_compiler_pic='-KPIC'
7839       lt_prog_compiler_static='-Bstatic'
7840       ;;
7841
7842     unicos*)
7843       lt_prog_compiler_wl='-Wl,'
7844       lt_prog_compiler_can_build_shared=no
7845       ;;
7846
7847     uts4*)
7848       lt_prog_compiler_pic='-pic'
7849       lt_prog_compiler_static='-Bstatic'
7850       ;;
7851
7852     *)
7853       lt_prog_compiler_can_build_shared=no
7854       ;;
7855     esac
7856   fi
7857
7858 case $host_os in
7859   # For platforms which do not support PIC, -DPIC is meaningless:
7860   *djgpp*)
7861     lt_prog_compiler_pic=
7862     ;;
7863   *)
7864     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7865     ;;
7866 esac
7867 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7868 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7869
7870
7871
7872
7873
7874
7875 #
7876 # Check to make sure the PIC flag actually works.
7877 #
7878 if test -n "$lt_prog_compiler_pic"; then
7879   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7880 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7881 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7882   echo $ECHO_N "(cached) $ECHO_C" >&6
7883 else
7884   lt_cv_prog_compiler_pic_works=no
7885    ac_outfile=conftest.$ac_objext
7886    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7887    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7888    # Insert the option either (1) after the last *FLAGS variable, or
7889    # (2) before a word containing "conftest.", or (3) at the end.
7890    # Note that $ac_compile itself does not contain backslashes and begins
7891    # with a dollar sign (not a hyphen), so the echo should work correctly.
7892    # The option is referenced via a variable to avoid confusing sed.
7893    lt_compile=`echo "$ac_compile" | $SED \
7894    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7895    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7896    -e 's:$: $lt_compiler_flag:'`
7897    (eval echo "\"\$as_me:7897: $lt_compile\"" >&5)
7898    (eval "$lt_compile" 2>conftest.err)
7899    ac_status=$?
7900    cat conftest.err >&5
7901    echo "$as_me:7901: \$? = $ac_status" >&5
7902    if (exit $ac_status) && test -s "$ac_outfile"; then
7903      # The compiler can only warn and ignore the option if not recognized
7904      # So say no if there are warnings other than the usual output.
7905      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7906      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7907      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7908        lt_cv_prog_compiler_pic_works=yes
7909      fi
7910    fi
7911    $RM conftest*
7912
7913 fi
7914 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7915 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7916
7917 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7918     case $lt_prog_compiler_pic in
7919      "" | " "*) ;;
7920      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7921      esac
7922 else
7923     lt_prog_compiler_pic=
7924      lt_prog_compiler_can_build_shared=no
7925 fi
7926
7927 fi
7928
7929
7930
7931
7932
7933
7934 #
7935 # Check to make sure the static flag actually works.
7936 #
7937 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7938 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7939 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7940 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7941   echo $ECHO_N "(cached) $ECHO_C" >&6
7942 else
7943   lt_cv_prog_compiler_static_works=no
7944    save_LDFLAGS="$LDFLAGS"
7945    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7946    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7947    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7948      # The linker can only warn and ignore the option if not recognized
7949      # So say no if there are warnings
7950      if test -s conftest.err; then
7951        # Append any errors to the config.log.
7952        cat conftest.err 1>&5
7953        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7954        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7955        if diff conftest.exp conftest.er2 >/dev/null; then
7956          lt_cv_prog_compiler_static_works=yes
7957        fi
7958      else
7959        lt_cv_prog_compiler_static_works=yes
7960      fi
7961    fi
7962    $RM -r conftest*
7963    LDFLAGS="$save_LDFLAGS"
7964
7965 fi
7966 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7967 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7968
7969 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7970     :
7971 else
7972     lt_prog_compiler_static=
7973 fi
7974
7975
7976
7977
7978
7979
7980
7981   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7982 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7983 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7984   echo $ECHO_N "(cached) $ECHO_C" >&6
7985 else
7986   lt_cv_prog_compiler_c_o=no
7987    $RM -r conftest 2>/dev/null
7988    mkdir conftest
7989    cd conftest
7990    mkdir out
7991    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7992
7993    lt_compiler_flag="-o out/conftest2.$ac_objext"
7994    # Insert the option either (1) after the last *FLAGS variable, or
7995    # (2) before a word containing "conftest.", or (3) at the end.
7996    # Note that $ac_compile itself does not contain backslashes and begins
7997    # with a dollar sign (not a hyphen), so the echo should work correctly.
7998    lt_compile=`echo "$ac_compile" | $SED \
7999    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8000    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8001    -e 's:$: $lt_compiler_flag:'`
8002    (eval echo "\"\$as_me:8002: $lt_compile\"" >&5)
8003    (eval "$lt_compile" 2>out/conftest.err)
8004    ac_status=$?
8005    cat out/conftest.err >&5
8006    echo "$as_me:8006: \$? = $ac_status" >&5
8007    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8008    then
8009      # The compiler can only warn and ignore the option if not recognized
8010      # So say no if there are warnings
8011      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8012      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8013      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8014        lt_cv_prog_compiler_c_o=yes
8015      fi
8016    fi
8017    chmod u+w . 2>&5
8018    $RM conftest*
8019    # SGI C++ compiler will create directory out/ii_files/ for
8020    # template instantiation
8021    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8022    $RM out/* && rmdir out
8023    cd ..
8024    $RM -r conftest
8025    $RM conftest*
8026
8027 fi
8028 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8029 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8030
8031
8032
8033
8034
8035
8036   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8037 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8038 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8039   echo $ECHO_N "(cached) $ECHO_C" >&6
8040 else
8041   lt_cv_prog_compiler_c_o=no
8042    $RM -r conftest 2>/dev/null
8043    mkdir conftest
8044    cd conftest
8045    mkdir out
8046    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8047
8048    lt_compiler_flag="-o out/conftest2.$ac_objext"
8049    # Insert the option either (1) after the last *FLAGS variable, or
8050    # (2) before a word containing "conftest.", or (3) at the end.
8051    # Note that $ac_compile itself does not contain backslashes and begins
8052    # with a dollar sign (not a hyphen), so the echo should work correctly.
8053    lt_compile=`echo "$ac_compile" | $SED \
8054    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8055    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8056    -e 's:$: $lt_compiler_flag:'`
8057    (eval echo "\"\$as_me:8057: $lt_compile\"" >&5)
8058    (eval "$lt_compile" 2>out/conftest.err)
8059    ac_status=$?
8060    cat out/conftest.err >&5
8061    echo "$as_me:8061: \$? = $ac_status" >&5
8062    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8063    then
8064      # The compiler can only warn and ignore the option if not recognized
8065      # So say no if there are warnings
8066      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8067      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8068      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8069        lt_cv_prog_compiler_c_o=yes
8070      fi
8071    fi
8072    chmod u+w . 2>&5
8073    $RM conftest*
8074    # SGI C++ compiler will create directory out/ii_files/ for
8075    # template instantiation
8076    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8077    $RM out/* && rmdir out
8078    cd ..
8079    $RM -r conftest
8080    $RM conftest*
8081
8082 fi
8083 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8084 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8085
8086
8087
8088
8089 hard_links="nottested"
8090 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8091   # do not overwrite the value of need_locks provided by the user
8092   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8093 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8094   hard_links=yes
8095   $RM conftest*
8096   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8097   touch conftest.a
8098   ln conftest.a conftest.b 2>&5 || hard_links=no
8099   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8100   { echo "$as_me:$LINENO: result: $hard_links" >&5
8101 echo "${ECHO_T}$hard_links" >&6; }
8102   if test "$hard_links" = no; then
8103     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8104 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8105     need_locks=warn
8106   fi
8107 else
8108   need_locks=no
8109 fi
8110
8111
8112
8113
8114
8115
8116   { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8117 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8118
8119   runpath_var=
8120   allow_undefined_flag=
8121   always_export_symbols=no
8122   archive_cmds=
8123   archive_expsym_cmds=
8124   compiler_needs_object=no
8125   enable_shared_with_static_runtimes=no
8126   export_dynamic_flag_spec=
8127   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8128   hardcode_automatic=no
8129   hardcode_direct=no
8130   hardcode_direct_absolute=no
8131   hardcode_libdir_flag_spec=
8132   hardcode_libdir_flag_spec_ld=
8133   hardcode_libdir_separator=
8134   hardcode_minus_L=no
8135   hardcode_shlibpath_var=unsupported
8136   inherit_rpath=no
8137   link_all_deplibs=unknown
8138   module_cmds=
8139   module_expsym_cmds=
8140   old_archive_from_new_cmds=
8141   old_archive_from_expsyms_cmds=
8142   thread_safe_flag_spec=
8143   whole_archive_flag_spec=
8144   # include_expsyms should be a list of space-separated symbols to be *always*
8145   # included in the symbol list
8146   include_expsyms=
8147   # exclude_expsyms can be an extended regexp of symbols to exclude
8148   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8149   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8150   # as well as any symbol that contains `d'.
8151   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8152   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8153   # platforms (ab)use it in PIC code, but their linkers get confused if
8154   # the symbol is explicitly referenced.  Since portable code cannot
8155   # rely on this symbol name, it's probably fine to never include it in
8156   # preloaded symbol tables.
8157   # Exclude shared library initialization/finalization symbols.
8158   extract_expsyms_cmds=
8159
8160   case $host_os in
8161   cygwin* | mingw* | pw32*)
8162     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8163     # When not using gcc, we currently assume that we are using
8164     # Microsoft Visual C++.
8165     if test "$GCC" != yes; then
8166       with_gnu_ld=no
8167     fi
8168     ;;
8169   interix*)
8170     # we just hope/assume this is gcc and not c89 (= MSVC++)
8171     with_gnu_ld=yes
8172     ;;
8173   openbsd*)
8174     with_gnu_ld=no
8175     ;;
8176   esac
8177
8178   ld_shlibs=yes
8179   if test "$with_gnu_ld" = yes; then
8180     # If archive_cmds runs LD, not CC, wlarc should be empty
8181     wlarc='${wl}'
8182
8183     # Set some defaults for GNU ld with shared library support. These
8184     # are reset later if shared libraries are not supported. Putting them
8185     # here allows them to be overridden if necessary.
8186     runpath_var=LD_RUN_PATH
8187     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8188     export_dynamic_flag_spec='${wl}--export-dynamic'
8189     # ancient GNU ld didn't support --whole-archive et. al.
8190     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8191       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8192     else
8193       whole_archive_flag_spec=
8194     fi
8195     supports_anon_versioning=no
8196     case `$LD -v 2>&1` in
8197       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8198       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8199       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8200       *\ 2.11.*) ;; # other 2.11 versions
8201       *) supports_anon_versioning=yes ;;
8202     esac
8203
8204     # See if GNU ld supports shared libraries.
8205     case $host_os in
8206     aix[3-9]*)
8207       # On AIX/PPC, the GNU linker is very broken
8208       if test "$host_cpu" != ia64; then
8209         ld_shlibs=no
8210         cat <<_LT_EOF 1>&2
8211
8212 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8213 *** to be unable to reliably create shared libraries on AIX.
8214 *** Therefore, libtool is disabling shared libraries support.  If you
8215 *** really care for shared libraries, you may want to modify your PATH
8216 *** so that a non-GNU linker is found, and then restart.
8217
8218 _LT_EOF
8219       fi
8220       ;;
8221
8222     amigaos*)
8223       case $host_cpu in
8224       powerpc)
8225             # see comment about AmigaOS4 .so support
8226             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8227             archive_expsym_cmds=''
8228         ;;
8229       m68k)
8230             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)'
8231             hardcode_libdir_flag_spec='-L$libdir'
8232             hardcode_minus_L=yes
8233         ;;
8234       esac
8235       ;;
8236
8237     beos*)
8238       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8239         allow_undefined_flag=unsupported
8240         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8241         # support --undefined.  This deserves some investigation.  FIXME
8242         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8243       else
8244         ld_shlibs=no
8245       fi
8246       ;;
8247
8248     cygwin* | mingw* | pw32*)
8249       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8250       # as there is no search path for DLLs.
8251       hardcode_libdir_flag_spec='-L$libdir'
8252       allow_undefined_flag=unsupported
8253       always_export_symbols=no
8254       enable_shared_with_static_runtimes=yes
8255       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8256
8257       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8258         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8259         # If the export-symbols file already is a .def file (1st line
8260         # is EXPORTS), use it as is; otherwise, prepend...
8261         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8262           cp $export_symbols $output_objdir/$soname.def;
8263         else
8264           echo EXPORTS > $output_objdir/$soname.def;
8265           cat $export_symbols >> $output_objdir/$soname.def;
8266         fi~
8267         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8268       else
8269         ld_shlibs=no
8270       fi
8271       ;;
8272
8273     interix[3-9]*)
8274       hardcode_direct=no
8275       hardcode_shlibpath_var=no
8276       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8277       export_dynamic_flag_spec='${wl}-E'
8278       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8279       # Instead, shared libraries are loaded at an image base (0x10000000 by
8280       # default) and relocated if they conflict, which is a slow very memory
8281       # consuming and fragmenting process.  To avoid this, we pick a random,
8282       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8283       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8284       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8285       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'
8286       ;;
8287
8288     gnu* | linux* | tpf* | k*bsd*-gnu)
8289       tmp_diet=no
8290       if test "$host_os" = linux-dietlibc; then
8291         case $cc_basename in
8292           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8293         esac
8294       fi
8295       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8296          && test "$tmp_diet" = no
8297       then
8298         tmp_addflag=
8299         tmp_sharedflag='-shared'
8300         case $cc_basename,$host_cpu in
8301         pgcc*)                          # Portland Group C compiler
8302           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8303           tmp_addflag=' $pic_flag'
8304           ;;
8305         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8306           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8307           tmp_addflag=' $pic_flag -Mnomain' ;;
8308         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8309           tmp_addflag=' -i_dynamic' ;;
8310         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8311           tmp_addflag=' -i_dynamic -nofor_main' ;;
8312         ifc* | ifort*)                  # Intel Fortran compiler
8313           tmp_addflag=' -nofor_main' ;;
8314         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8315           tmp_sharedflag='-qmkshrobj'
8316           tmp_addflag= ;;
8317         esac
8318         case `$CC -V 2>&1 | sed 5q` in
8319         *Sun\ C*)                       # Sun C 5.9
8320           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8321           compiler_needs_object=yes
8322           tmp_sharedflag='-G' ;;
8323         *Sun\ F*)                       # Sun Fortran 8.3
8324           tmp_sharedflag='-G' ;;
8325         esac
8326         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8327
8328         if test "x$supports_anon_versioning" = xyes; then
8329           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8330             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8331             echo "local: *; };" >> $output_objdir/$libname.ver~
8332             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8333         fi
8334
8335         case $cc_basename in
8336         xlf*)
8337           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8338           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8339           hardcode_libdir_flag_spec=
8340           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8341           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8342           if test "x$supports_anon_versioning" = xyes; then
8343             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8344               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8345               echo "local: *; };" >> $output_objdir/$libname.ver~
8346               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8347           fi
8348           ;;
8349         esac
8350       else
8351         ld_shlibs=no
8352       fi
8353       ;;
8354
8355     netbsd*)
8356       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8357         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8358         wlarc=
8359       else
8360         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8361         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8362       fi
8363       ;;
8364
8365     solaris*)
8366       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8367         ld_shlibs=no
8368         cat <<_LT_EOF 1>&2
8369
8370 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8371 *** create shared libraries on Solaris systems.  Therefore, libtool
8372 *** is disabling shared libraries support.  We urge you to upgrade GNU
8373 *** binutils to release 2.9.1 or newer.  Another option is to modify
8374 *** your PATH or compiler configuration so that the native linker is
8375 *** used, and then restart.
8376
8377 _LT_EOF
8378       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8379         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8380         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8381       else
8382         ld_shlibs=no
8383       fi
8384       ;;
8385
8386     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8387       case `$LD -v 2>&1` in
8388         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8389         ld_shlibs=no
8390         cat <<_LT_EOF 1>&2
8391
8392 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8393 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8394 *** is disabling shared libraries support.  We urge you to upgrade GNU
8395 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8396 *** your PATH or compiler configuration so that the native linker is
8397 *** used, and then restart.
8398
8399 _LT_EOF
8400         ;;
8401         *)
8402           # For security reasons, it is highly recommended that you always
8403           # use absolute paths for naming shared libraries, and exclude the
8404           # DT_RUNPATH tag from executables and libraries.  But doing so
8405           # requires that you compile everything twice, which is a pain.
8406           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8407             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8408             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8409             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8410           else
8411             ld_shlibs=no
8412           fi
8413         ;;
8414       esac
8415       ;;
8416
8417     sunos4*)
8418       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8419       wlarc=
8420       hardcode_direct=yes
8421       hardcode_shlibpath_var=no
8422       ;;
8423
8424     *)
8425       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8426         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8427         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8428       else
8429         ld_shlibs=no
8430       fi
8431       ;;
8432     esac
8433
8434     if test "$ld_shlibs" = no; then
8435       runpath_var=
8436       hardcode_libdir_flag_spec=
8437       export_dynamic_flag_spec=
8438       whole_archive_flag_spec=
8439     fi
8440   else
8441     # PORTME fill in a description of your system's linker (not GNU ld)
8442     case $host_os in
8443     aix3*)
8444       allow_undefined_flag=unsupported
8445       always_export_symbols=yes
8446       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'
8447       # Note: this linker hardcodes the directories in LIBPATH if there
8448       # are no directories specified by -L.
8449       hardcode_minus_L=yes
8450       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8451         # Neither direct hardcoding nor static linking is supported with a
8452         # broken collect2.
8453         hardcode_direct=unsupported
8454       fi
8455       ;;
8456
8457     aix[4-9]*)
8458       if test "$host_cpu" = ia64; then
8459         # On IA64, the linker does run time linking by default, so we don't
8460         # have to do anything special.
8461         aix_use_runtimelinking=no
8462         exp_sym_flag='-Bexport'
8463         no_entry_flag=""
8464       else
8465         # If we're using GNU nm, then we don't want the "-C" option.
8466         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8467         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8468           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8469         else
8470           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'
8471         fi
8472         aix_use_runtimelinking=no
8473
8474         # Test if we are trying to use run time linking or normal
8475         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8476         # need to do runtime linking.
8477         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8478           for ld_flag in $LDFLAGS; do
8479           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8480             aix_use_runtimelinking=yes
8481             break
8482           fi
8483           done
8484           ;;
8485         esac
8486
8487         exp_sym_flag='-bexport'
8488         no_entry_flag='-bnoentry'
8489       fi
8490
8491       # When large executables or shared objects are built, AIX ld can
8492       # have problems creating the table of contents.  If linking a library
8493       # or program results in "error TOC overflow" add -mminimal-toc to
8494       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8495       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8496
8497       archive_cmds=''
8498       hardcode_direct=yes
8499       hardcode_direct_absolute=yes
8500       hardcode_libdir_separator=':'
8501       link_all_deplibs=yes
8502       file_list_spec='${wl}-f,'
8503
8504       if test "$GCC" = yes; then
8505         case $host_os in aix4.[012]|aix4.[012].*)
8506         # We only want to do this on AIX 4.2 and lower, the check
8507         # below for broken collect2 doesn't work under 4.3+
8508           collect2name=`${CC} -print-prog-name=collect2`
8509           if test -f "$collect2name" &&
8510            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8511           then
8512           # We have reworked collect2
8513           :
8514           else
8515           # We have old collect2
8516           hardcode_direct=unsupported
8517           # It fails to find uninstalled libraries when the uninstalled
8518           # path is not listed in the libpath.  Setting hardcode_minus_L
8519           # to unsupported forces relinking
8520           hardcode_minus_L=yes
8521           hardcode_libdir_flag_spec='-L$libdir'
8522           hardcode_libdir_separator=
8523           fi
8524           ;;
8525         esac
8526         shared_flag='-shared'
8527         if test "$aix_use_runtimelinking" = yes; then
8528           shared_flag="$shared_flag "'${wl}-G'
8529         fi
8530       else
8531         # not using gcc
8532         if test "$host_cpu" = ia64; then
8533         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8534         # chokes on -Wl,-G. The following line is correct:
8535           shared_flag='-G'
8536         else
8537           if test "$aix_use_runtimelinking" = yes; then
8538             shared_flag='${wl}-G'
8539           else
8540             shared_flag='${wl}-bM:SRE'
8541           fi
8542         fi
8543       fi
8544
8545       # It seems that -bexpall does not export symbols beginning with
8546       # underscore (_), so it is better to generate a list of symbols to export.
8547       always_export_symbols=yes
8548       if test "$aix_use_runtimelinking" = yes; then
8549         # Warning - without using the other runtime loading flags (-brtl),
8550         # -berok will link without error, but may produce a broken library.
8551         allow_undefined_flag='-berok'
8552         # Determine the default libpath from the value encoded in an
8553         # empty executable.
8554         cat >conftest.$ac_ext <<_ACEOF
8555 /* confdefs.h.  */
8556 _ACEOF
8557 cat confdefs.h >>conftest.$ac_ext
8558 cat >>conftest.$ac_ext <<_ACEOF
8559 /* end confdefs.h.  */
8560
8561 int
8562 main ()
8563 {
8564
8565   ;
8566   return 0;
8567 }
8568 _ACEOF
8569 rm -f conftest.$ac_objext conftest$ac_exeext
8570 if { (ac_try="$ac_link"
8571 case "(($ac_try" in
8572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8573   *) ac_try_echo=$ac_try;;
8574 esac
8575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8576   (eval "$ac_link") 2>conftest.er1
8577   ac_status=$?
8578   grep -v '^ *+' conftest.er1 >conftest.err
8579   rm -f conftest.er1
8580   cat conftest.err >&5
8581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582   (exit $ac_status); } && {
8583          test -z "$ac_c_werror_flag" ||
8584          test ! -s conftest.err
8585        } && test -s conftest$ac_exeext &&
8586        $as_test_x conftest$ac_exeext; then
8587
8588 lt_aix_libpath_sed='
8589     /Import File Strings/,/^$/ {
8590         /^0/ {
8591             s/^0  *\(.*\)$/\1/
8592             p
8593         }
8594     }'
8595 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8596 # Check for a 64-bit object if we didn't find anything.
8597 if test -z "$aix_libpath"; then
8598   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8599 fi
8600 else
8601   echo "$as_me: failed program was:" >&5
8602 sed 's/^/| /' conftest.$ac_ext >&5
8603
8604
8605 fi
8606
8607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8608       conftest$ac_exeext conftest.$ac_ext
8609 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8610
8611         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8612         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8613       else
8614         if test "$host_cpu" = ia64; then
8615           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8616           allow_undefined_flag="-z nodefs"
8617           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"
8618         else
8619          # Determine the default libpath from the value encoded in an
8620          # empty executable.
8621          cat >conftest.$ac_ext <<_ACEOF
8622 /* confdefs.h.  */
8623 _ACEOF
8624 cat confdefs.h >>conftest.$ac_ext
8625 cat >>conftest.$ac_ext <<_ACEOF
8626 /* end confdefs.h.  */
8627
8628 int
8629 main ()
8630 {
8631
8632   ;
8633   return 0;
8634 }
8635 _ACEOF
8636 rm -f conftest.$ac_objext conftest$ac_exeext
8637 if { (ac_try="$ac_link"
8638 case "(($ac_try" in
8639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8640   *) ac_try_echo=$ac_try;;
8641 esac
8642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8643   (eval "$ac_link") 2>conftest.er1
8644   ac_status=$?
8645   grep -v '^ *+' conftest.er1 >conftest.err
8646   rm -f conftest.er1
8647   cat conftest.err >&5
8648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649   (exit $ac_status); } && {
8650          test -z "$ac_c_werror_flag" ||
8651          test ! -s conftest.err
8652        } && test -s conftest$ac_exeext &&
8653        $as_test_x conftest$ac_exeext; then
8654
8655 lt_aix_libpath_sed='
8656     /Import File Strings/,/^$/ {
8657         /^0/ {
8658             s/^0  *\(.*\)$/\1/
8659             p
8660         }
8661     }'
8662 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8663 # Check for a 64-bit object if we didn't find anything.
8664 if test -z "$aix_libpath"; then
8665   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8666 fi
8667 else
8668   echo "$as_me: failed program was:" >&5
8669 sed 's/^/| /' conftest.$ac_ext >&5
8670
8671
8672 fi
8673
8674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8675       conftest$ac_exeext conftest.$ac_ext
8676 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8677
8678          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8679           # Warning - without using the other run time loading flags,
8680           # -berok will link without error, but may produce a broken library.
8681           no_undefined_flag=' ${wl}-bernotok'
8682           allow_undefined_flag=' ${wl}-berok'
8683           # Exported symbols can be pulled into shared objects from archives
8684           whole_archive_flag_spec='$convenience'
8685           archive_cmds_need_lc=yes
8686           # This is similar to how AIX traditionally builds its shared libraries.
8687           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'
8688         fi
8689       fi
8690       ;;
8691
8692     amigaos*)
8693       case $host_cpu in
8694       powerpc)
8695             # see comment about AmigaOS4 .so support
8696             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8697             archive_expsym_cmds=''
8698         ;;
8699       m68k)
8700             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)'
8701             hardcode_libdir_flag_spec='-L$libdir'
8702             hardcode_minus_L=yes
8703         ;;
8704       esac
8705       ;;
8706
8707     bsdi[45]*)
8708       export_dynamic_flag_spec=-rdynamic
8709       ;;
8710
8711     cygwin* | mingw* | pw32*)
8712       # When not using gcc, we currently assume that we are using
8713       # Microsoft Visual C++.
8714       # hardcode_libdir_flag_spec is actually meaningless, as there is
8715       # no search path for DLLs.
8716       hardcode_libdir_flag_spec=' '
8717       allow_undefined_flag=unsupported
8718       # Tell ltmain to make .lib files, not .a files.
8719       libext=lib
8720       # Tell ltmain to make .dll files, not .so files.
8721       shrext_cmds=".dll"
8722       # FIXME: Setting linknames here is a bad hack.
8723       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8724       # The linker will automatically build a .lib file if we build a DLL.
8725       old_archive_from_new_cmds='true'
8726       # FIXME: Should let the user specify the lib program.
8727       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8728       fix_srcfile_path='`cygpath -w "$srcfile"`'
8729       enable_shared_with_static_runtimes=yes
8730       ;;
8731
8732     darwin* | rhapsody*)
8733
8734
8735   archive_cmds_need_lc=no
8736   hardcode_direct=no
8737   hardcode_automatic=yes
8738   hardcode_shlibpath_var=unsupported
8739   whole_archive_flag_spec=''
8740   link_all_deplibs=yes
8741   allow_undefined_flag="$_lt_dar_allow_undefined"
8742   if test "$GCC" = "yes"; then
8743     output_verbose_link_cmd=echo
8744     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8745     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8746     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}"
8747     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}"
8748
8749   else
8750   ld_shlibs=no
8751   fi
8752
8753       ;;
8754
8755     dgux*)
8756       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8757       hardcode_libdir_flag_spec='-L$libdir'
8758       hardcode_shlibpath_var=no
8759       ;;
8760
8761     freebsd1*)
8762       ld_shlibs=no
8763       ;;
8764
8765     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8766     # support.  Future versions do this automatically, but an explicit c++rt0.o
8767     # does not break anything, and helps significantly (at the cost of a little
8768     # extra space).
8769     freebsd2.2*)
8770       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8771       hardcode_libdir_flag_spec='-R$libdir'
8772       hardcode_direct=yes
8773       hardcode_shlibpath_var=no
8774       ;;
8775
8776     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8777     freebsd2*)
8778       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8779       hardcode_direct=yes
8780       hardcode_minus_L=yes
8781       hardcode_shlibpath_var=no
8782       ;;
8783
8784     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8785     freebsd* | dragonfly*)
8786       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8787       hardcode_libdir_flag_spec='-R$libdir'
8788       hardcode_direct=yes
8789       hardcode_shlibpath_var=no
8790       ;;
8791
8792     hpux9*)
8793       if test "$GCC" = yes; then
8794         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8795       else
8796         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'
8797       fi
8798       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8799       hardcode_libdir_separator=:
8800       hardcode_direct=yes
8801
8802       # hardcode_minus_L: Not really in the search PATH,
8803       # but as the default location of the library.
8804       hardcode_minus_L=yes
8805       export_dynamic_flag_spec='${wl}-E'
8806       ;;
8807
8808     hpux10*)
8809       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8810         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8811       else
8812         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8813       fi
8814       if test "$with_gnu_ld" = no; then
8815         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8816         hardcode_libdir_flag_spec_ld='+b $libdir'
8817         hardcode_libdir_separator=:
8818         hardcode_direct=yes
8819         hardcode_direct_absolute=yes
8820         export_dynamic_flag_spec='${wl}-E'
8821         # hardcode_minus_L: Not really in the search PATH,
8822         # but as the default location of the library.
8823         hardcode_minus_L=yes
8824       fi
8825       ;;
8826
8827     hpux11*)
8828       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8829         case $host_cpu in
8830         hppa*64*)
8831           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8832           ;;
8833         ia64*)
8834           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8835           ;;
8836         *)
8837           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8838           ;;
8839         esac
8840       else
8841         case $host_cpu in
8842         hppa*64*)
8843           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8844           ;;
8845         ia64*)
8846           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8847           ;;
8848         *)
8849           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8850           ;;
8851         esac
8852       fi
8853       if test "$with_gnu_ld" = no; then
8854         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8855         hardcode_libdir_separator=:
8856
8857         case $host_cpu in
8858         hppa*64*|ia64*)
8859           hardcode_direct=no
8860           hardcode_shlibpath_var=no
8861           ;;
8862         *)
8863           hardcode_direct=yes
8864           hardcode_direct_absolute=yes
8865           export_dynamic_flag_spec='${wl}-E'
8866
8867           # hardcode_minus_L: Not really in the search PATH,
8868           # but as the default location of the library.
8869           hardcode_minus_L=yes
8870           ;;
8871         esac
8872       fi
8873       ;;
8874
8875     irix5* | irix6* | nonstopux*)
8876       if test "$GCC" = yes; then
8877         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8878         # Try to use the -exported_symbol ld option, if it does not
8879         # work, assume that -exports_file does not work either and
8880         # implicitly export all symbols.
8881         save_LDFLAGS="$LDFLAGS"
8882         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8883         cat >conftest.$ac_ext <<_ACEOF
8884 int foo(void) {}
8885 _ACEOF
8886 rm -f conftest.$ac_objext conftest$ac_exeext
8887 if { (ac_try="$ac_link"
8888 case "(($ac_try" in
8889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8890   *) ac_try_echo=$ac_try;;
8891 esac
8892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8893   (eval "$ac_link") 2>conftest.er1
8894   ac_status=$?
8895   grep -v '^ *+' conftest.er1 >conftest.err
8896   rm -f conftest.er1
8897   cat conftest.err >&5
8898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899   (exit $ac_status); } && {
8900          test -z "$ac_c_werror_flag" ||
8901          test ! -s conftest.err
8902        } && test -s conftest$ac_exeext &&
8903        $as_test_x conftest$ac_exeext; then
8904   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8905
8906 else
8907   echo "$as_me: failed program was:" >&5
8908 sed 's/^/| /' conftest.$ac_ext >&5
8909
8910
8911 fi
8912
8913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8914       conftest$ac_exeext conftest.$ac_ext
8915         LDFLAGS="$save_LDFLAGS"
8916       else
8917         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8918         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8919       fi
8920       archive_cmds_need_lc='no'
8921       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8922       hardcode_libdir_separator=:
8923       inherit_rpath=yes
8924       link_all_deplibs=yes
8925       ;;
8926
8927     netbsd*)
8928       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8929         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8930       else
8931         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8932       fi
8933       hardcode_libdir_flag_spec='-R$libdir'
8934       hardcode_direct=yes
8935       hardcode_shlibpath_var=no
8936       ;;
8937
8938     newsos6)
8939       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8940       hardcode_direct=yes
8941       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8942       hardcode_libdir_separator=:
8943       hardcode_shlibpath_var=no
8944       ;;
8945
8946     *nto* | *qnx*)
8947       ;;
8948
8949     openbsd*)
8950       if test -f /usr/libexec/ld.so; then
8951         hardcode_direct=yes
8952         hardcode_shlibpath_var=no
8953         hardcode_direct_absolute=yes
8954         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8955           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8956           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8957           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8958           export_dynamic_flag_spec='${wl}-E'
8959         else
8960           case $host_os in
8961            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8962              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8963              hardcode_libdir_flag_spec='-R$libdir'
8964              ;;
8965            *)
8966              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8967              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8968              ;;
8969           esac
8970         fi
8971       else
8972         ld_shlibs=no
8973       fi
8974       ;;
8975
8976     os2*)
8977       hardcode_libdir_flag_spec='-L$libdir'
8978       hardcode_minus_L=yes
8979       allow_undefined_flag=unsupported
8980       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'
8981       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8982       ;;
8983
8984     osf3*)
8985       if test "$GCC" = yes; then
8986         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8987         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8988       else
8989         allow_undefined_flag=' -expect_unresolved \*'
8990         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8991       fi
8992       archive_cmds_need_lc='no'
8993       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8994       hardcode_libdir_separator=:
8995       ;;
8996
8997     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8998       if test "$GCC" = yes; then
8999         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9000         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9001         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9002       else
9003         allow_undefined_flag=' -expect_unresolved \*'
9004         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9005         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~
9006         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9007
9008         # Both c and cxx compiler support -rpath directly
9009         hardcode_libdir_flag_spec='-rpath $libdir'
9010       fi
9011       archive_cmds_need_lc='no'
9012       hardcode_libdir_separator=:
9013       ;;
9014
9015     solaris*)
9016       no_undefined_flag=' -z defs'
9017       if test "$GCC" = yes; then
9018         wlarc='${wl}'
9019         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9020         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9021           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9022       else
9023         case `$CC -V 2>&1` in
9024         *"Compilers 5.0"*)
9025           wlarc=''
9026           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9027           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9028           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9029           ;;
9030         *)
9031           wlarc='${wl}'
9032           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9033           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9034           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9035           ;;
9036         esac
9037       fi
9038       hardcode_libdir_flag_spec='-R$libdir'
9039       hardcode_shlibpath_var=no
9040       case $host_os in
9041       solaris2.[0-5] | solaris2.[0-5].*) ;;
9042       *)
9043         # The compiler driver will combine and reorder linker options,
9044         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9045         # but is careful enough not to reorder.
9046         # Supported since Solaris 2.6 (maybe 2.5.1?)
9047         if test "$GCC" = yes; then
9048           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9049         else
9050           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9051         fi
9052         ;;
9053       esac
9054       link_all_deplibs=yes
9055       ;;
9056
9057     sunos4*)
9058       if test "x$host_vendor" = xsequent; then
9059         # Use $CC to link under sequent, because it throws in some extra .o
9060         # files that make .init and .fini sections work.
9061         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9062       else
9063         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9064       fi
9065       hardcode_libdir_flag_spec='-L$libdir'
9066       hardcode_direct=yes
9067       hardcode_minus_L=yes
9068       hardcode_shlibpath_var=no
9069       ;;
9070
9071     sysv4)
9072       case $host_vendor in
9073         sni)
9074           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9075           hardcode_direct=yes # is this really true???
9076         ;;
9077         siemens)
9078           ## LD is ld it makes a PLAMLIB
9079           ## CC just makes a GrossModule.
9080           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9081           reload_cmds='$CC -r -o $output$reload_objs'
9082           hardcode_direct=no
9083         ;;
9084         motorola)
9085           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9086           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9087         ;;
9088       esac
9089       runpath_var='LD_RUN_PATH'
9090       hardcode_shlibpath_var=no
9091       ;;
9092
9093     sysv4.3*)
9094       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9095       hardcode_shlibpath_var=no
9096       export_dynamic_flag_spec='-Bexport'
9097       ;;
9098
9099     sysv4*MP*)
9100       if test -d /usr/nec; then
9101         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9102         hardcode_shlibpath_var=no
9103         runpath_var=LD_RUN_PATH
9104         hardcode_runpath_var=yes
9105         ld_shlibs=yes
9106       fi
9107       ;;
9108
9109     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9110       no_undefined_flag='${wl}-z,text'
9111       archive_cmds_need_lc=no
9112       hardcode_shlibpath_var=no
9113       runpath_var='LD_RUN_PATH'
9114
9115       if test "$GCC" = yes; then
9116         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9117         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9118       else
9119         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9120         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9121       fi
9122       ;;
9123
9124     sysv5* | sco3.2v5* | sco5v6*)
9125       # Note: We can NOT use -z defs as we might desire, because we do not
9126       # link with -lc, and that would cause any symbols used from libc to
9127       # always be unresolved, which means just about no library would
9128       # ever link correctly.  If we're not using GNU ld we use -z text
9129       # though, which does catch some bad symbols but isn't as heavy-handed
9130       # as -z defs.
9131       no_undefined_flag='${wl}-z,text'
9132       allow_undefined_flag='${wl}-z,nodefs'
9133       archive_cmds_need_lc=no
9134       hardcode_shlibpath_var=no
9135       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9136       hardcode_libdir_separator=':'
9137       link_all_deplibs=yes
9138       export_dynamic_flag_spec='${wl}-Bexport'
9139       runpath_var='LD_RUN_PATH'
9140
9141       if test "$GCC" = yes; then
9142         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9143         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9144       else
9145         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9146         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9147       fi
9148       ;;
9149
9150     uts4*)
9151       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9152       hardcode_libdir_flag_spec='-L$libdir'
9153       hardcode_shlibpath_var=no
9154       ;;
9155
9156     *)
9157       ld_shlibs=no
9158       ;;
9159     esac
9160
9161     if test x$host_vendor = xsni; then
9162       case $host in
9163       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9164         export_dynamic_flag_spec='${wl}-Blargedynsym'
9165         ;;
9166       esac
9167     fi
9168   fi
9169
9170 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9171 echo "${ECHO_T}$ld_shlibs" >&6; }
9172 test "$ld_shlibs" = no && can_build_shared=no
9173
9174 with_gnu_ld=$with_gnu_ld
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190 #
9191 # Do we need to explicitly link libc?
9192 #
9193 case "x$archive_cmds_need_lc" in
9194 x|xyes)
9195   # Assume -lc should be added
9196   archive_cmds_need_lc=yes
9197
9198   if test "$enable_shared" = yes && test "$GCC" = yes; then
9199     case $archive_cmds in
9200     *'~'*)
9201       # FIXME: we may have to deal with multi-command sequences.
9202       ;;
9203     '$CC '*)
9204       # Test whether the compiler implicitly links with -lc since on some
9205       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9206       # to ld, don't add -lc before -lgcc.
9207       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9208 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9209       $RM conftest*
9210       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9211
9212       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9213   (eval $ac_compile) 2>&5
9214   ac_status=$?
9215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216   (exit $ac_status); } 2>conftest.err; then
9217         soname=conftest
9218         lib=conftest
9219         libobjs=conftest.$ac_objext
9220         deplibs=
9221         wl=$lt_prog_compiler_wl
9222         pic_flag=$lt_prog_compiler_pic
9223         compiler_flags=-v
9224         linker_flags=-v
9225         verstring=
9226         output_objdir=.
9227         libname=conftest
9228         lt_save_allow_undefined_flag=$allow_undefined_flag
9229         allow_undefined_flag=
9230         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9231   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9232   ac_status=$?
9233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9234   (exit $ac_status); }
9235         then
9236           archive_cmds_need_lc=no
9237         else
9238           archive_cmds_need_lc=yes
9239         fi
9240         allow_undefined_flag=$lt_save_allow_undefined_flag
9241       else
9242         cat conftest.err 1>&5
9243       fi
9244       $RM conftest*
9245       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9246 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9247       ;;
9248     esac
9249   fi
9250   ;;
9251 esac
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409   { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9410 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9411
9412 if test "$GCC" = yes; then
9413   case $host_os in
9414     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9415     *) lt_awk_arg="/^libraries:/" ;;
9416   esac
9417   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9418   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9419     # if the path contains ";" then we assume it to be the separator
9420     # otherwise default to the standard path separator (i.e. ":") - it is
9421     # assumed that no part of a normal pathname contains ";" but that should
9422     # okay in the real world where ";" in dirpaths is itself problematic.
9423     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9424   else
9425     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9426   fi
9427   # Ok, now we have the path, separated by spaces, we can step through it
9428   # and add multilib dir if necessary.
9429   lt_tmp_lt_search_path_spec=
9430   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9431   for lt_sys_path in $lt_search_path_spec; do
9432     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9433       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9434     else
9435       test -d "$lt_sys_path" && \
9436         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9437     fi
9438   done
9439   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9440 BEGIN {RS=" "; FS="/|\n";} {
9441   lt_foo="";
9442   lt_count=0;
9443   for (lt_i = NF; lt_i > 0; lt_i--) {
9444     if ($lt_i != "" && $lt_i != ".") {
9445       if ($lt_i == "..") {
9446         lt_count++;
9447       } else {
9448         if (lt_count == 0) {
9449           lt_foo="/" $lt_i lt_foo;
9450         } else {
9451           lt_count--;
9452         }
9453       }
9454     }
9455   }
9456   if (lt_foo != "") { lt_freq[lt_foo]++; }
9457   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9458 }'`
9459   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9460 else
9461   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9462 fi
9463 library_names_spec=
9464 libname_spec='lib$name'
9465 soname_spec=
9466 shrext_cmds=".so"
9467 postinstall_cmds=
9468 postuninstall_cmds=
9469 finish_cmds=
9470 finish_eval=
9471 shlibpath_var=
9472 shlibpath_overrides_runpath=unknown
9473 version_type=none
9474 dynamic_linker="$host_os ld.so"
9475 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9476 need_lib_prefix=unknown
9477 hardcode_into_libs=no
9478
9479 # when you set need_version to no, make sure it does not cause -set_version
9480 # flags to be left without arguments
9481 need_version=unknown
9482
9483 case $host_os in
9484 aix3*)
9485   version_type=linux
9486   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9487   shlibpath_var=LIBPATH
9488
9489   # AIX 3 has no versioning support, so we append a major version to the name.
9490   soname_spec='${libname}${release}${shared_ext}$major'
9491   ;;
9492
9493 aix[4-9]*)
9494   version_type=linux
9495   need_lib_prefix=no
9496   need_version=no
9497   hardcode_into_libs=yes
9498   if test "$host_cpu" = ia64; then
9499     # AIX 5 supports IA64
9500     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9501     shlibpath_var=LD_LIBRARY_PATH
9502   else
9503     # With GCC up to 2.95.x, collect2 would create an import file
9504     # for dependence libraries.  The import file would start with
9505     # the line `#! .'.  This would cause the generated library to
9506     # depend on `.', always an invalid library.  This was fixed in
9507     # development snapshots of GCC prior to 3.0.
9508     case $host_os in
9509       aix4 | aix4.[01] | aix4.[01].*)
9510       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9511            echo ' yes '
9512            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9513         :
9514       else
9515         can_build_shared=no
9516       fi
9517       ;;
9518     esac
9519     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9520     # soname into executable. Probably we can add versioning support to
9521     # collect2, so additional links can be useful in future.
9522     if test "$aix_use_runtimelinking" = yes; then
9523       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9524       # instead of lib<name>.a to let people know that these are not
9525       # typical AIX shared libraries.
9526       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9527     else
9528       # We preserve .a as extension for shared libraries through AIX4.2
9529       # and later when we are not doing run time linking.
9530       library_names_spec='${libname}${release}.a $libname.a'
9531       soname_spec='${libname}${release}${shared_ext}$major'
9532     fi
9533     shlibpath_var=LIBPATH
9534   fi
9535   ;;
9536
9537 amigaos*)
9538   case $host_cpu in
9539   powerpc)
9540     # Since July 2007 AmigaOS4 officially supports .so libraries.
9541     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9542     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9543     ;;
9544   m68k)
9545     library_names_spec='$libname.ixlibrary $libname.a'
9546     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9547     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
9548     ;;
9549   esac
9550   ;;
9551
9552 beos*)
9553   library_names_spec='${libname}${shared_ext}'
9554   dynamic_linker="$host_os ld.so"
9555   shlibpath_var=LIBRARY_PATH
9556   ;;
9557
9558 bsdi[45]*)
9559   version_type=linux
9560   need_version=no
9561   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9562   soname_spec='${libname}${release}${shared_ext}$major'
9563   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9564   shlibpath_var=LD_LIBRARY_PATH
9565   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9566   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9567   # the default ld.so.conf also contains /usr/contrib/lib and
9568   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9569   # libtool to hard-code these into programs
9570   ;;
9571
9572 cygwin* | mingw* | pw32*)
9573   version_type=windows
9574   shrext_cmds=".dll"
9575   need_version=no
9576   need_lib_prefix=no
9577
9578   case $GCC,$host_os in
9579   yes,cygwin* | yes,mingw* | yes,pw32*)
9580     library_names_spec='$libname.dll.a'
9581     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9582     postinstall_cmds='base_file=`basename \${file}`~
9583       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9584       dldir=$destdir/`dirname \$dlpath`~
9585       test -d \$dldir || mkdir -p \$dldir~
9586       $install_prog $dir/$dlname \$dldir/$dlname~
9587       chmod a+x \$dldir/$dlname~
9588       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9589         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9590       fi'
9591     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9592       dlpath=$dir/\$dldll~
9593        $RM \$dlpath'
9594     shlibpath_overrides_runpath=yes
9595
9596     case $host_os in
9597     cygwin*)
9598       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9599       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9600       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9601       ;;
9602     mingw*)
9603       # MinGW DLLs use traditional 'lib' prefix
9604       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9605       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9606       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9607         # It is most probably a Windows format PATH printed by
9608         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9609         # path with ; separators, and with drive letters. We can handle the
9610         # drive letters (cygwin fileutils understands them), so leave them,
9611         # especially as we might pass files found there to a mingw objdump,
9612         # which wouldn't understand a cygwinified path. Ahh.
9613         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9614       else
9615         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9616       fi
9617       ;;
9618     pw32*)
9619       # pw32 DLLs use 'pw' prefix rather than 'lib'
9620       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9621       ;;
9622     esac
9623     ;;
9624
9625   *)
9626     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9627     ;;
9628   esac
9629   dynamic_linker='Win32 ld.exe'
9630   # FIXME: first we should search . and the directory the executable is in
9631   shlibpath_var=PATH
9632   ;;
9633
9634 darwin* | rhapsody*)
9635   dynamic_linker="$host_os dyld"
9636   version_type=darwin
9637   need_lib_prefix=no
9638   need_version=no
9639   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9640   soname_spec='${libname}${release}${major}$shared_ext'
9641   shlibpath_overrides_runpath=yes
9642   shlibpath_var=DYLD_LIBRARY_PATH
9643   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9644
9645   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9646   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9647   ;;
9648
9649 dgux*)
9650   version_type=linux
9651   need_lib_prefix=no
9652   need_version=no
9653   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9654   soname_spec='${libname}${release}${shared_ext}$major'
9655   shlibpath_var=LD_LIBRARY_PATH
9656   ;;
9657
9658 freebsd1*)
9659   dynamic_linker=no
9660   ;;
9661
9662 freebsd* | dragonfly*)
9663   # DragonFly does not have aout.  When/if they implement a new
9664   # versioning mechanism, adjust this.
9665   if test -x /usr/bin/objformat; then
9666     objformat=`/usr/bin/objformat`
9667   else
9668     case $host_os in
9669     freebsd[123]*) objformat=aout ;;
9670     *) objformat=elf ;;
9671     esac
9672   fi
9673   version_type=freebsd-$objformat
9674   case $version_type in
9675     freebsd-elf*)
9676       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9677       need_version=no
9678       need_lib_prefix=no
9679       ;;
9680     freebsd-*)
9681       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9682       need_version=yes
9683       ;;
9684   esac
9685   shlibpath_var=LD_LIBRARY_PATH
9686   case $host_os in
9687   freebsd2*)
9688     shlibpath_overrides_runpath=yes
9689     ;;
9690   freebsd3.[01]* | freebsdelf3.[01]*)
9691     shlibpath_overrides_runpath=yes
9692     hardcode_into_libs=yes
9693     ;;
9694   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9695   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9696     shlibpath_overrides_runpath=no
9697     hardcode_into_libs=yes
9698     ;;
9699   *) # from 4.6 on, and DragonFly
9700     shlibpath_overrides_runpath=yes
9701     hardcode_into_libs=yes
9702     ;;
9703   esac
9704   ;;
9705
9706 gnu*)
9707   version_type=linux
9708   need_lib_prefix=no
9709   need_version=no
9710   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9711   soname_spec='${libname}${release}${shared_ext}$major'
9712   shlibpath_var=LD_LIBRARY_PATH
9713   hardcode_into_libs=yes
9714   ;;
9715
9716 hpux9* | hpux10* | hpux11*)
9717   # Give a soname corresponding to the major version so that dld.sl refuses to
9718   # link against other versions.
9719   version_type=sunos
9720   need_lib_prefix=no
9721   need_version=no
9722   case $host_cpu in
9723   ia64*)
9724     shrext_cmds='.so'
9725     hardcode_into_libs=yes
9726     dynamic_linker="$host_os dld.so"
9727     shlibpath_var=LD_LIBRARY_PATH
9728     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9729     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9730     soname_spec='${libname}${release}${shared_ext}$major'
9731     if test "X$HPUX_IA64_MODE" = X32; then
9732       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9733     else
9734       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9735     fi
9736     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9737     ;;
9738   hppa*64*)
9739     shrext_cmds='.sl'
9740     hardcode_into_libs=yes
9741     dynamic_linker="$host_os dld.sl"
9742     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9743     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9744     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9745     soname_spec='${libname}${release}${shared_ext}$major'
9746     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9747     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9748     ;;
9749   *)
9750     shrext_cmds='.sl'
9751     dynamic_linker="$host_os dld.sl"
9752     shlibpath_var=SHLIB_PATH
9753     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9754     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9755     soname_spec='${libname}${release}${shared_ext}$major'
9756     ;;
9757   esac
9758   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9759   postinstall_cmds='chmod 555 $lib'
9760   ;;
9761
9762 interix[3-9]*)
9763   version_type=linux
9764   need_lib_prefix=no
9765   need_version=no
9766   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9767   soname_spec='${libname}${release}${shared_ext}$major'
9768   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9769   shlibpath_var=LD_LIBRARY_PATH
9770   shlibpath_overrides_runpath=no
9771   hardcode_into_libs=yes
9772   ;;
9773
9774 irix5* | irix6* | nonstopux*)
9775   case $host_os in
9776     nonstopux*) version_type=nonstopux ;;
9777     *)
9778         if test "$lt_cv_prog_gnu_ld" = yes; then
9779                 version_type=linux
9780         else
9781                 version_type=irix
9782         fi ;;
9783   esac
9784   need_lib_prefix=no
9785   need_version=no
9786   soname_spec='${libname}${release}${shared_ext}$major'
9787   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9788   case $host_os in
9789   irix5* | nonstopux*)
9790     libsuff= shlibsuff=
9791     ;;
9792   *)
9793     case $LD in # libtool.m4 will add one of these switches to LD
9794     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9795       libsuff= shlibsuff= libmagic=32-bit;;
9796     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9797       libsuff=32 shlibsuff=N32 libmagic=N32;;
9798     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9799       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9800     *) libsuff= shlibsuff= libmagic=never-match;;
9801     esac
9802     ;;
9803   esac
9804   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9805   shlibpath_overrides_runpath=no
9806   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9807   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9808   hardcode_into_libs=yes
9809   ;;
9810
9811 # No shared lib support for Linux oldld, aout, or coff.
9812 linux*oldld* | linux*aout* | linux*coff*)
9813   dynamic_linker=no
9814   ;;
9815
9816 # This must be Linux ELF.
9817 linux* | k*bsd*-gnu)
9818   version_type=linux
9819   need_lib_prefix=no
9820   need_version=no
9821   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9822   soname_spec='${libname}${release}${shared_ext}$major'
9823   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9824   shlibpath_var=LD_LIBRARY_PATH
9825   shlibpath_overrides_runpath=no
9826   # Some binutils ld are patched to set DT_RUNPATH
9827   save_LDFLAGS=$LDFLAGS
9828   save_libdir=$libdir
9829   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9830        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9831   cat >conftest.$ac_ext <<_ACEOF
9832 /* confdefs.h.  */
9833 _ACEOF
9834 cat confdefs.h >>conftest.$ac_ext
9835 cat >>conftest.$ac_ext <<_ACEOF
9836 /* end confdefs.h.  */
9837
9838 int
9839 main ()
9840 {
9841
9842   ;
9843   return 0;
9844 }
9845 _ACEOF
9846 rm -f conftest.$ac_objext conftest$ac_exeext
9847 if { (ac_try="$ac_link"
9848 case "(($ac_try" in
9849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9850   *) ac_try_echo=$ac_try;;
9851 esac
9852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9853   (eval "$ac_link") 2>conftest.er1
9854   ac_status=$?
9855   grep -v '^ *+' conftest.er1 >conftest.err
9856   rm -f conftest.er1
9857   cat conftest.err >&5
9858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859   (exit $ac_status); } && {
9860          test -z "$ac_c_werror_flag" ||
9861          test ! -s conftest.err
9862        } && test -s conftest$ac_exeext &&
9863        $as_test_x conftest$ac_exeext; then
9864   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9865   shlibpath_overrides_runpath=yes
9866 fi
9867
9868 else
9869   echo "$as_me: failed program was:" >&5
9870 sed 's/^/| /' conftest.$ac_ext >&5
9871
9872
9873 fi
9874
9875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9876       conftest$ac_exeext conftest.$ac_ext
9877   LDFLAGS=$save_LDFLAGS
9878   libdir=$save_libdir
9879
9880   # This implies no fast_install, which is unacceptable.
9881   # Some rework will be needed to allow for fast_install
9882   # before this can be enabled.
9883   hardcode_into_libs=yes
9884
9885   # Append ld.so.conf contents to the search path
9886   if test -f /etc/ld.so.conf; then
9887     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;/^$/d' | tr '\n' ' '`
9888     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9889   fi
9890
9891   # We used to test for /lib/ld.so.1 and disable shared libraries on
9892   # powerpc, because MkLinux only supported shared libraries with the
9893   # GNU dynamic linker.  Since this was broken with cross compilers,
9894   # most powerpc-linux boxes support dynamic linking these days and
9895   # people can always --disable-shared, the test was removed, and we
9896   # assume the GNU/Linux dynamic linker is in use.
9897   dynamic_linker='GNU/Linux ld.so'
9898   ;;
9899
9900 netbsd*)
9901   version_type=sunos
9902   need_lib_prefix=no
9903   need_version=no
9904   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9905     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9906     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9907     dynamic_linker='NetBSD (a.out) ld.so'
9908   else
9909     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9910     soname_spec='${libname}${release}${shared_ext}$major'
9911     dynamic_linker='NetBSD ld.elf_so'
9912   fi
9913   shlibpath_var=LD_LIBRARY_PATH
9914   shlibpath_overrides_runpath=yes
9915   hardcode_into_libs=yes
9916   ;;
9917
9918 newsos6)
9919   version_type=linux
9920   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9921   shlibpath_var=LD_LIBRARY_PATH
9922   shlibpath_overrides_runpath=yes
9923   ;;
9924
9925 *nto* | *qnx*)
9926   version_type=qnx
9927   need_lib_prefix=no
9928   need_version=no
9929   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9930   soname_spec='${libname}${release}${shared_ext}$major'
9931   shlibpath_var=LD_LIBRARY_PATH
9932   shlibpath_overrides_runpath=no
9933   hardcode_into_libs=yes
9934   dynamic_linker='ldqnx.so'
9935   ;;
9936
9937 openbsd*)
9938   version_type=sunos
9939   sys_lib_dlsearch_path_spec="/usr/lib"
9940   need_lib_prefix=no
9941   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9942   case $host_os in
9943     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9944     *)                          need_version=no  ;;
9945   esac
9946   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9947   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9948   shlibpath_var=LD_LIBRARY_PATH
9949   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9950     case $host_os in
9951       openbsd2.[89] | openbsd2.[89].*)
9952         shlibpath_overrides_runpath=no
9953         ;;
9954       *)
9955         shlibpath_overrides_runpath=yes
9956         ;;
9957       esac
9958   else
9959     shlibpath_overrides_runpath=yes
9960   fi
9961   ;;
9962
9963 os2*)
9964   libname_spec='$name'
9965   shrext_cmds=".dll"
9966   need_lib_prefix=no
9967   library_names_spec='$libname${shared_ext} $libname.a'
9968   dynamic_linker='OS/2 ld.exe'
9969   shlibpath_var=LIBPATH
9970   ;;
9971
9972 osf3* | osf4* | osf5*)
9973   version_type=osf
9974   need_lib_prefix=no
9975   need_version=no
9976   soname_spec='${libname}${release}${shared_ext}$major'
9977   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9978   shlibpath_var=LD_LIBRARY_PATH
9979   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9980   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9981   ;;
9982
9983 rdos*)
9984   dynamic_linker=no
9985   ;;
9986
9987 solaris*)
9988   version_type=linux
9989   need_lib_prefix=no
9990   need_version=no
9991   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9992   soname_spec='${libname}${release}${shared_ext}$major'
9993   shlibpath_var=LD_LIBRARY_PATH
9994   shlibpath_overrides_runpath=yes
9995   hardcode_into_libs=yes
9996   # ldd complains unless libraries are executable
9997   postinstall_cmds='chmod +x $lib'
9998   ;;
9999
10000 sunos4*)
10001   version_type=sunos
10002   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10003   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10004   shlibpath_var=LD_LIBRARY_PATH
10005   shlibpath_overrides_runpath=yes
10006   if test "$with_gnu_ld" = yes; then
10007     need_lib_prefix=no
10008   fi
10009   need_version=yes
10010   ;;
10011
10012 sysv4 | sysv4.3*)
10013   version_type=linux
10014   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10015   soname_spec='${libname}${release}${shared_ext}$major'
10016   shlibpath_var=LD_LIBRARY_PATH
10017   case $host_vendor in
10018     sni)
10019       shlibpath_overrides_runpath=no
10020       need_lib_prefix=no
10021       runpath_var=LD_RUN_PATH
10022       ;;
10023     siemens)
10024       need_lib_prefix=no
10025       ;;
10026     motorola)
10027       need_lib_prefix=no
10028       need_version=no
10029       shlibpath_overrides_runpath=no
10030       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10031       ;;
10032   esac
10033   ;;
10034
10035 sysv4*MP*)
10036   if test -d /usr/nec ;then
10037     version_type=linux
10038     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10039     soname_spec='$libname${shared_ext}.$major'
10040     shlibpath_var=LD_LIBRARY_PATH
10041   fi
10042   ;;
10043
10044 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10045   version_type=freebsd-elf
10046   need_lib_prefix=no
10047   need_version=no
10048   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10049   soname_spec='${libname}${release}${shared_ext}$major'
10050   shlibpath_var=LD_LIBRARY_PATH
10051   shlibpath_overrides_runpath=yes
10052   hardcode_into_libs=yes
10053   if test "$with_gnu_ld" = yes; then
10054     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10055   else
10056     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10057     case $host_os in
10058       sco3.2v5*)
10059         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10060         ;;
10061     esac
10062   fi
10063   sys_lib_dlsearch_path_spec='/usr/lib'
10064   ;;
10065
10066 tpf*)
10067   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10068   version_type=linux
10069   need_lib_prefix=no
10070   need_version=no
10071   library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10072   shlibpath_var=LD_LIBRARY_PATH
10073   shlibpath_overrides_runpath=no
10074   hardcode_into_libs=yes
10075   ;;
10076
10077 uts4*)
10078   version_type=linux
10079   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10080   soname_spec='${libname}${release}${shared_ext}$major'
10081   shlibpath_var=LD_LIBRARY_PATH
10082   ;;
10083
10084 *)
10085   dynamic_linker=no
10086   ;;
10087 esac
10088 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10089 echo "${ECHO_T}$dynamic_linker" >&6; }
10090 test "$dynamic_linker" = no && can_build_shared=no
10091
10092 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10093 if test "$GCC" = yes; then
10094   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10095 fi
10096
10097 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10098   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10099 fi
10100 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10101   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10102 fi
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
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   { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10191 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10192 hardcode_action=
10193 if test -n "$hardcode_libdir_flag_spec" ||
10194    test -n "$runpath_var" ||
10195    test "X$hardcode_automatic" = "Xyes" ; then
10196
10197   # We can hardcode non-existent directories.
10198   if test "$hardcode_direct" != no &&
10199      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10200      # have to relink, otherwise we might link with an installed library
10201      # when we should be linking with a yet-to-be-installed one
10202      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10203      test "$hardcode_minus_L" != no; then
10204     # Linking always hardcodes the temporary library directory.
10205     hardcode_action=relink
10206   else
10207     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10208     hardcode_action=immediate
10209   fi
10210 else
10211   # We cannot hardcode anything, or else we can only hardcode existing
10212   # directories.
10213   hardcode_action=unsupported
10214 fi
10215 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10216 echo "${ECHO_T}$hardcode_action" >&6; }
10217
10218 if test "$hardcode_action" = relink ||
10219    test "$inherit_rpath" = yes; then
10220   # Fast installation is not supported
10221   enable_fast_install=no
10222 elif test "$shlibpath_overrides_runpath" = yes ||
10223      test "$enable_shared" = no; then
10224   # Fast installation is not necessary
10225   enable_fast_install=needless
10226 fi
10227
10228
10229
10230
10231
10232
10233   if test "x$enable_dlopen" != xyes; then
10234   enable_dlopen=unknown
10235   enable_dlopen_self=unknown
10236   enable_dlopen_self_static=unknown
10237 else
10238   lt_cv_dlopen=no
10239   lt_cv_dlopen_libs=
10240
10241   case $host_os in
10242   beos*)
10243     lt_cv_dlopen="load_add_on"
10244     lt_cv_dlopen_libs=
10245     lt_cv_dlopen_self=yes
10246     ;;
10247
10248   mingw* | pw32*)
10249     lt_cv_dlopen="LoadLibrary"
10250     lt_cv_dlopen_libs=
10251     ;;
10252
10253   cygwin*)
10254     lt_cv_dlopen="dlopen"
10255     lt_cv_dlopen_libs=
10256     ;;
10257
10258   darwin*)
10259   # if libdl is installed we need to link against it
10260     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10261 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10262 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10263   echo $ECHO_N "(cached) $ECHO_C" >&6
10264 else
10265   ac_check_lib_save_LIBS=$LIBS
10266 LIBS="-ldl  $LIBS"
10267 cat >conftest.$ac_ext <<_ACEOF
10268 /* confdefs.h.  */
10269 _ACEOF
10270 cat confdefs.h >>conftest.$ac_ext
10271 cat >>conftest.$ac_ext <<_ACEOF
10272 /* end confdefs.h.  */
10273
10274 /* Override any GCC internal prototype to avoid an error.
10275    Use char because int might match the return type of a GCC
10276    builtin and then its argument prototype would still apply.  */
10277 #ifdef __cplusplus
10278 extern "C"
10279 #endif
10280 char dlopen ();
10281 int
10282 main ()
10283 {
10284 return dlopen ();
10285   ;
10286   return 0;
10287 }
10288 _ACEOF
10289 rm -f conftest.$ac_objext conftest$ac_exeext
10290 if { (ac_try="$ac_link"
10291 case "(($ac_try" in
10292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10293   *) ac_try_echo=$ac_try;;
10294 esac
10295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10296   (eval "$ac_link") 2>conftest.er1
10297   ac_status=$?
10298   grep -v '^ *+' conftest.er1 >conftest.err
10299   rm -f conftest.er1
10300   cat conftest.err >&5
10301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302   (exit $ac_status); } && {
10303          test -z "$ac_c_werror_flag" ||
10304          test ! -s conftest.err
10305        } && test -s conftest$ac_exeext &&
10306        $as_test_x conftest$ac_exeext; then
10307   ac_cv_lib_dl_dlopen=yes
10308 else
10309   echo "$as_me: failed program was:" >&5
10310 sed 's/^/| /' conftest.$ac_ext >&5
10311
10312         ac_cv_lib_dl_dlopen=no
10313 fi
10314
10315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10316       conftest$ac_exeext conftest.$ac_ext
10317 LIBS=$ac_check_lib_save_LIBS
10318 fi
10319 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10320 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10321 if test $ac_cv_lib_dl_dlopen = yes; then
10322   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10323 else
10324
10325     lt_cv_dlopen="dyld"
10326     lt_cv_dlopen_libs=
10327     lt_cv_dlopen_self=yes
10328
10329 fi
10330
10331     ;;
10332
10333   *)
10334     { echo "$as_me:$LINENO: checking for shl_load" >&5
10335 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10336 if test "${ac_cv_func_shl_load+set}" = set; then
10337   echo $ECHO_N "(cached) $ECHO_C" >&6
10338 else
10339   cat >conftest.$ac_ext <<_ACEOF
10340 /* confdefs.h.  */
10341 _ACEOF
10342 cat confdefs.h >>conftest.$ac_ext
10343 cat >>conftest.$ac_ext <<_ACEOF
10344 /* end confdefs.h.  */
10345 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10346    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10347 #define shl_load innocuous_shl_load
10348
10349 /* System header to define __stub macros and hopefully few prototypes,
10350     which can conflict with char shl_load (); below.
10351     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10352     <limits.h> exists even on freestanding compilers.  */
10353
10354 #ifdef __STDC__
10355 # include <limits.h>
10356 #else
10357 # include <assert.h>
10358 #endif
10359
10360 #undef shl_load
10361
10362 /* Override any GCC internal prototype to avoid an error.
10363    Use char because int might match the return type of a GCC
10364    builtin and then its argument prototype would still apply.  */
10365 #ifdef __cplusplus
10366 extern "C"
10367 #endif
10368 char shl_load ();
10369 /* The GNU C library defines this for functions which it implements
10370     to always fail with ENOSYS.  Some functions are actually named
10371     something starting with __ and the normal name is an alias.  */
10372 #if defined __stub_shl_load || defined __stub___shl_load
10373 choke me
10374 #endif
10375
10376 int
10377 main ()
10378 {
10379 return shl_load ();
10380   ;
10381   return 0;
10382 }
10383 _ACEOF
10384 rm -f conftest.$ac_objext conftest$ac_exeext
10385 if { (ac_try="$ac_link"
10386 case "(($ac_try" in
10387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10388   *) ac_try_echo=$ac_try;;
10389 esac
10390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10391   (eval "$ac_link") 2>conftest.er1
10392   ac_status=$?
10393   grep -v '^ *+' conftest.er1 >conftest.err
10394   rm -f conftest.er1
10395   cat conftest.err >&5
10396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397   (exit $ac_status); } && {
10398          test -z "$ac_c_werror_flag" ||
10399          test ! -s conftest.err
10400        } && test -s conftest$ac_exeext &&
10401        $as_test_x conftest$ac_exeext; then
10402   ac_cv_func_shl_load=yes
10403 else
10404   echo "$as_me: failed program was:" >&5
10405 sed 's/^/| /' conftest.$ac_ext >&5
10406
10407         ac_cv_func_shl_load=no
10408 fi
10409
10410 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10411       conftest$ac_exeext conftest.$ac_ext
10412 fi
10413 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10414 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10415 if test $ac_cv_func_shl_load = yes; then
10416   lt_cv_dlopen="shl_load"
10417 else
10418   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10419 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10420 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10421   echo $ECHO_N "(cached) $ECHO_C" >&6
10422 else
10423   ac_check_lib_save_LIBS=$LIBS
10424 LIBS="-ldld  $LIBS"
10425 cat >conftest.$ac_ext <<_ACEOF
10426 /* confdefs.h.  */
10427 _ACEOF
10428 cat confdefs.h >>conftest.$ac_ext
10429 cat >>conftest.$ac_ext <<_ACEOF
10430 /* end confdefs.h.  */
10431
10432 /* Override any GCC internal prototype to avoid an error.
10433    Use char because int might match the return type of a GCC
10434    builtin and then its argument prototype would still apply.  */
10435 #ifdef __cplusplus
10436 extern "C"
10437 #endif
10438 char shl_load ();
10439 int
10440 main ()
10441 {
10442 return shl_load ();
10443   ;
10444   return 0;
10445 }
10446 _ACEOF
10447 rm -f conftest.$ac_objext conftest$ac_exeext
10448 if { (ac_try="$ac_link"
10449 case "(($ac_try" in
10450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10451   *) ac_try_echo=$ac_try;;
10452 esac
10453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10454   (eval "$ac_link") 2>conftest.er1
10455   ac_status=$?
10456   grep -v '^ *+' conftest.er1 >conftest.err
10457   rm -f conftest.er1
10458   cat conftest.err >&5
10459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460   (exit $ac_status); } && {
10461          test -z "$ac_c_werror_flag" ||
10462          test ! -s conftest.err
10463        } && test -s conftest$ac_exeext &&
10464        $as_test_x conftest$ac_exeext; then
10465   ac_cv_lib_dld_shl_load=yes
10466 else
10467   echo "$as_me: failed program was:" >&5
10468 sed 's/^/| /' conftest.$ac_ext >&5
10469
10470         ac_cv_lib_dld_shl_load=no
10471 fi
10472
10473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10474       conftest$ac_exeext conftest.$ac_ext
10475 LIBS=$ac_check_lib_save_LIBS
10476 fi
10477 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10478 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10479 if test $ac_cv_lib_dld_shl_load = yes; then
10480   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10481 else
10482   { echo "$as_me:$LINENO: checking for dlopen" >&5
10483 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10484 if test "${ac_cv_func_dlopen+set}" = set; then
10485   echo $ECHO_N "(cached) $ECHO_C" >&6
10486 else
10487   cat >conftest.$ac_ext <<_ACEOF
10488 /* confdefs.h.  */
10489 _ACEOF
10490 cat confdefs.h >>conftest.$ac_ext
10491 cat >>conftest.$ac_ext <<_ACEOF
10492 /* end confdefs.h.  */
10493 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10494    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10495 #define dlopen innocuous_dlopen
10496
10497 /* System header to define __stub macros and hopefully few prototypes,
10498     which can conflict with char dlopen (); below.
10499     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10500     <limits.h> exists even on freestanding compilers.  */
10501
10502 #ifdef __STDC__
10503 # include <limits.h>
10504 #else
10505 # include <assert.h>
10506 #endif
10507
10508 #undef dlopen
10509
10510 /* Override any GCC internal prototype to avoid an error.
10511    Use char because int might match the return type of a GCC
10512    builtin and then its argument prototype would still apply.  */
10513 #ifdef __cplusplus
10514 extern "C"
10515 #endif
10516 char dlopen ();
10517 /* The GNU C library defines this for functions which it implements
10518     to always fail with ENOSYS.  Some functions are actually named
10519     something starting with __ and the normal name is an alias.  */
10520 #if defined __stub_dlopen || defined __stub___dlopen
10521 choke me
10522 #endif
10523
10524 int
10525 main ()
10526 {
10527 return dlopen ();
10528   ;
10529   return 0;
10530 }
10531 _ACEOF
10532 rm -f conftest.$ac_objext conftest$ac_exeext
10533 if { (ac_try="$ac_link"
10534 case "(($ac_try" in
10535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10536   *) ac_try_echo=$ac_try;;
10537 esac
10538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10539   (eval "$ac_link") 2>conftest.er1
10540   ac_status=$?
10541   grep -v '^ *+' conftest.er1 >conftest.err
10542   rm -f conftest.er1
10543   cat conftest.err >&5
10544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545   (exit $ac_status); } && {
10546          test -z "$ac_c_werror_flag" ||
10547          test ! -s conftest.err
10548        } && test -s conftest$ac_exeext &&
10549        $as_test_x conftest$ac_exeext; then
10550   ac_cv_func_dlopen=yes
10551 else
10552   echo "$as_me: failed program was:" >&5
10553 sed 's/^/| /' conftest.$ac_ext >&5
10554
10555         ac_cv_func_dlopen=no
10556 fi
10557
10558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10559       conftest$ac_exeext conftest.$ac_ext
10560 fi
10561 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10562 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10563 if test $ac_cv_func_dlopen = yes; then
10564   lt_cv_dlopen="dlopen"
10565 else
10566   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10567 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10568 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10569   echo $ECHO_N "(cached) $ECHO_C" >&6
10570 else
10571   ac_check_lib_save_LIBS=$LIBS
10572 LIBS="-ldl  $LIBS"
10573 cat >conftest.$ac_ext <<_ACEOF
10574 /* confdefs.h.  */
10575 _ACEOF
10576 cat confdefs.h >>conftest.$ac_ext
10577 cat >>conftest.$ac_ext <<_ACEOF
10578 /* end confdefs.h.  */
10579
10580 /* Override any GCC internal prototype to avoid an error.
10581    Use char because int might match the return type of a GCC
10582    builtin and then its argument prototype would still apply.  */
10583 #ifdef __cplusplus
10584 extern "C"
10585 #endif
10586 char dlopen ();
10587 int
10588 main ()
10589 {
10590 return dlopen ();
10591   ;
10592   return 0;
10593 }
10594 _ACEOF
10595 rm -f conftest.$ac_objext conftest$ac_exeext
10596 if { (ac_try="$ac_link"
10597 case "(($ac_try" in
10598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10599   *) ac_try_echo=$ac_try;;
10600 esac
10601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10602   (eval "$ac_link") 2>conftest.er1
10603   ac_status=$?
10604   grep -v '^ *+' conftest.er1 >conftest.err
10605   rm -f conftest.er1
10606   cat conftest.err >&5
10607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608   (exit $ac_status); } && {
10609          test -z "$ac_c_werror_flag" ||
10610          test ! -s conftest.err
10611        } && test -s conftest$ac_exeext &&
10612        $as_test_x conftest$ac_exeext; then
10613   ac_cv_lib_dl_dlopen=yes
10614 else
10615   echo "$as_me: failed program was:" >&5
10616 sed 's/^/| /' conftest.$ac_ext >&5
10617
10618         ac_cv_lib_dl_dlopen=no
10619 fi
10620
10621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10622       conftest$ac_exeext conftest.$ac_ext
10623 LIBS=$ac_check_lib_save_LIBS
10624 fi
10625 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10626 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10627 if test $ac_cv_lib_dl_dlopen = yes; then
10628   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10629 else
10630   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10631 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10632 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10633   echo $ECHO_N "(cached) $ECHO_C" >&6
10634 else
10635   ac_check_lib_save_LIBS=$LIBS
10636 LIBS="-lsvld  $LIBS"
10637 cat >conftest.$ac_ext <<_ACEOF
10638 /* confdefs.h.  */
10639 _ACEOF
10640 cat confdefs.h >>conftest.$ac_ext
10641 cat >>conftest.$ac_ext <<_ACEOF
10642 /* end confdefs.h.  */
10643
10644 /* Override any GCC internal prototype to avoid an error.
10645    Use char because int might match the return type of a GCC
10646    builtin and then its argument prototype would still apply.  */
10647 #ifdef __cplusplus
10648 extern "C"
10649 #endif
10650 char dlopen ();
10651 int
10652 main ()
10653 {
10654 return dlopen ();
10655   ;
10656   return 0;
10657 }
10658 _ACEOF
10659 rm -f conftest.$ac_objext conftest$ac_exeext
10660 if { (ac_try="$ac_link"
10661 case "(($ac_try" in
10662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10663   *) ac_try_echo=$ac_try;;
10664 esac
10665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10666   (eval "$ac_link") 2>conftest.er1
10667   ac_status=$?
10668   grep -v '^ *+' conftest.er1 >conftest.err
10669   rm -f conftest.er1
10670   cat conftest.err >&5
10671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672   (exit $ac_status); } && {
10673          test -z "$ac_c_werror_flag" ||
10674          test ! -s conftest.err
10675        } && test -s conftest$ac_exeext &&
10676        $as_test_x conftest$ac_exeext; then
10677   ac_cv_lib_svld_dlopen=yes
10678 else
10679   echo "$as_me: failed program was:" >&5
10680 sed 's/^/| /' conftest.$ac_ext >&5
10681
10682         ac_cv_lib_svld_dlopen=no
10683 fi
10684
10685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10686       conftest$ac_exeext conftest.$ac_ext
10687 LIBS=$ac_check_lib_save_LIBS
10688 fi
10689 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10690 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10691 if test $ac_cv_lib_svld_dlopen = yes; then
10692   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10693 else
10694   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10695 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10696 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10697   echo $ECHO_N "(cached) $ECHO_C" >&6
10698 else
10699   ac_check_lib_save_LIBS=$LIBS
10700 LIBS="-ldld  $LIBS"
10701 cat >conftest.$ac_ext <<_ACEOF
10702 /* confdefs.h.  */
10703 _ACEOF
10704 cat confdefs.h >>conftest.$ac_ext
10705 cat >>conftest.$ac_ext <<_ACEOF
10706 /* end confdefs.h.  */
10707
10708 /* Override any GCC internal prototype to avoid an error.
10709    Use char because int might match the return type of a GCC
10710    builtin and then its argument prototype would still apply.  */
10711 #ifdef __cplusplus
10712 extern "C"
10713 #endif
10714 char dld_link ();
10715 int
10716 main ()
10717 {
10718 return dld_link ();
10719   ;
10720   return 0;
10721 }
10722 _ACEOF
10723 rm -f conftest.$ac_objext conftest$ac_exeext
10724 if { (ac_try="$ac_link"
10725 case "(($ac_try" in
10726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10727   *) ac_try_echo=$ac_try;;
10728 esac
10729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10730   (eval "$ac_link") 2>conftest.er1
10731   ac_status=$?
10732   grep -v '^ *+' conftest.er1 >conftest.err
10733   rm -f conftest.er1
10734   cat conftest.err >&5
10735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736   (exit $ac_status); } && {
10737          test -z "$ac_c_werror_flag" ||
10738          test ! -s conftest.err
10739        } && test -s conftest$ac_exeext &&
10740        $as_test_x conftest$ac_exeext; then
10741   ac_cv_lib_dld_dld_link=yes
10742 else
10743   echo "$as_me: failed program was:" >&5
10744 sed 's/^/| /' conftest.$ac_ext >&5
10745
10746         ac_cv_lib_dld_dld_link=no
10747 fi
10748
10749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10750       conftest$ac_exeext conftest.$ac_ext
10751 LIBS=$ac_check_lib_save_LIBS
10752 fi
10753 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10754 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10755 if test $ac_cv_lib_dld_dld_link = yes; then
10756   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10757 fi
10758
10759
10760 fi
10761
10762
10763 fi
10764
10765
10766 fi
10767
10768
10769 fi
10770
10771
10772 fi
10773
10774     ;;
10775   esac
10776
10777   if test "x$lt_cv_dlopen" != xno; then
10778     enable_dlopen=yes
10779   else
10780     enable_dlopen=no
10781   fi
10782
10783   case $lt_cv_dlopen in
10784   dlopen)
10785     save_CPPFLAGS="$CPPFLAGS"
10786     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10787
10788     save_LDFLAGS="$LDFLAGS"
10789     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10790
10791     save_LIBS="$LIBS"
10792     LIBS="$lt_cv_dlopen_libs $LIBS"
10793
10794     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10795 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10796 if test "${lt_cv_dlopen_self+set}" = set; then
10797   echo $ECHO_N "(cached) $ECHO_C" >&6
10798 else
10799           if test "$cross_compiling" = yes; then :
10800   lt_cv_dlopen_self=cross
10801 else
10802   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10803   lt_status=$lt_dlunknown
10804   cat > conftest.$ac_ext <<_LT_EOF
10805 #line 10805 "configure"
10806 #include "confdefs.h"
10807
10808 #if HAVE_DLFCN_H
10809 #include <dlfcn.h>
10810 #endif
10811
10812 #include <stdio.h>
10813
10814 #ifdef RTLD_GLOBAL
10815 #  define LT_DLGLOBAL           RTLD_GLOBAL
10816 #else
10817 #  ifdef DL_GLOBAL
10818 #    define LT_DLGLOBAL         DL_GLOBAL
10819 #  else
10820 #    define LT_DLGLOBAL         0
10821 #  endif
10822 #endif
10823
10824 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10825    find out it does not work in some platform. */
10826 #ifndef LT_DLLAZY_OR_NOW
10827 #  ifdef RTLD_LAZY
10828 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10829 #  else
10830 #    ifdef DL_LAZY
10831 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10832 #    else
10833 #      ifdef RTLD_NOW
10834 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10835 #      else
10836 #        ifdef DL_NOW
10837 #          define LT_DLLAZY_OR_NOW      DL_NOW
10838 #        else
10839 #          define LT_DLLAZY_OR_NOW      0
10840 #        endif
10841 #      endif
10842 #    endif
10843 #  endif
10844 #endif
10845
10846 #ifdef __cplusplus
10847 extern "C" void exit (int);
10848 #endif
10849
10850 void fnord() { int i=42;}
10851 int main ()
10852 {
10853   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10854   int status = $lt_dlunknown;
10855
10856   if (self)
10857     {
10858       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10859       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10860       /* dlclose (self); */
10861     }
10862   else
10863     puts (dlerror ());
10864
10865     exit (status);
10866 }
10867 _LT_EOF
10868   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10869   (eval $ac_link) 2>&5
10870   ac_status=$?
10871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10873     (./conftest; exit; ) >&5 2>/dev/null
10874     lt_status=$?
10875     case x$lt_status in
10876       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10877       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10878       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10879     esac
10880   else :
10881     # compilation failed
10882     lt_cv_dlopen_self=no
10883   fi
10884 fi
10885 rm -fr conftest*
10886
10887
10888 fi
10889 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10890 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10891
10892     if test "x$lt_cv_dlopen_self" = xyes; then
10893       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10894       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10895 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10896 if test "${lt_cv_dlopen_self_static+set}" = set; then
10897   echo $ECHO_N "(cached) $ECHO_C" >&6
10898 else
10899           if test "$cross_compiling" = yes; then :
10900   lt_cv_dlopen_self_static=cross
10901 else
10902   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10903   lt_status=$lt_dlunknown
10904   cat > conftest.$ac_ext <<_LT_EOF
10905 #line 10905 "configure"
10906 #include "confdefs.h"
10907
10908 #if HAVE_DLFCN_H
10909 #include <dlfcn.h>
10910 #endif
10911
10912 #include <stdio.h>
10913
10914 #ifdef RTLD_GLOBAL
10915 #  define LT_DLGLOBAL           RTLD_GLOBAL
10916 #else
10917 #  ifdef DL_GLOBAL
10918 #    define LT_DLGLOBAL         DL_GLOBAL
10919 #  else
10920 #    define LT_DLGLOBAL         0
10921 #  endif
10922 #endif
10923
10924 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10925    find out it does not work in some platform. */
10926 #ifndef LT_DLLAZY_OR_NOW
10927 #  ifdef RTLD_LAZY
10928 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10929 #  else
10930 #    ifdef DL_LAZY
10931 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10932 #    else
10933 #      ifdef RTLD_NOW
10934 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10935 #      else
10936 #        ifdef DL_NOW
10937 #          define LT_DLLAZY_OR_NOW      DL_NOW
10938 #        else
10939 #          define LT_DLLAZY_OR_NOW      0
10940 #        endif
10941 #      endif
10942 #    endif
10943 #  endif
10944 #endif
10945
10946 #ifdef __cplusplus
10947 extern "C" void exit (int);
10948 #endif
10949
10950 void fnord() { int i=42;}
10951 int main ()
10952 {
10953   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10954   int status = $lt_dlunknown;
10955
10956   if (self)
10957     {
10958       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10959       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10960       /* dlclose (self); */
10961     }
10962   else
10963     puts (dlerror ());
10964
10965     exit (status);
10966 }
10967 _LT_EOF
10968   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10969   (eval $ac_link) 2>&5
10970   ac_status=$?
10971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10973     (./conftest; exit; ) >&5 2>/dev/null
10974     lt_status=$?
10975     case x$lt_status in
10976       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10977       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10978       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10979     esac
10980   else :
10981     # compilation failed
10982     lt_cv_dlopen_self_static=no
10983   fi
10984 fi
10985 rm -fr conftest*
10986
10987
10988 fi
10989 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10990 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10991     fi
10992
10993     CPPFLAGS="$save_CPPFLAGS"
10994     LDFLAGS="$save_LDFLAGS"
10995     LIBS="$save_LIBS"
10996     ;;
10997   esac
10998
10999   case $lt_cv_dlopen_self in
11000   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11001   *) enable_dlopen_self=unknown ;;
11002   esac
11003
11004   case $lt_cv_dlopen_self_static in
11005   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11006   *) enable_dlopen_self_static=unknown ;;
11007   esac
11008 fi
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026 striplib=
11027 old_striplib=
11028 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11029 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
11030 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11031   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11032   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11033   { echo "$as_me:$LINENO: result: yes" >&5
11034 echo "${ECHO_T}yes" >&6; }
11035 else
11036 # FIXME - insert some real tests, host_os isn't really good enough
11037   case $host_os in
11038   darwin*)
11039     if test -n "$STRIP" ; then
11040       striplib="$STRIP -x"
11041       old_striplib="$STRIP -S"
11042       { echo "$as_me:$LINENO: result: yes" >&5
11043 echo "${ECHO_T}yes" >&6; }
11044     else
11045       { echo "$as_me:$LINENO: result: no" >&5
11046 echo "${ECHO_T}no" >&6; }
11047     fi
11048     ;;
11049   *)
11050     { echo "$as_me:$LINENO: result: no" >&5
11051 echo "${ECHO_T}no" >&6; }
11052     ;;
11053   esac
11054 fi
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067   # Report which library types will actually be built
11068   { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11069 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11070   { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11071 echo "${ECHO_T}$can_build_shared" >&6; }
11072
11073   { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11074 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11075   test "$can_build_shared" = "no" && enable_shared=no
11076
11077   # On AIX, shared libraries and static libraries use the same namespace, and
11078   # are all built from PIC.
11079   case $host_os in
11080   aix3*)
11081     test "$enable_shared" = yes && enable_static=no
11082     if test -n "$RANLIB"; then
11083       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11084       postinstall_cmds='$RANLIB $lib'
11085     fi
11086     ;;
11087
11088   aix[4-9]*)
11089     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11090       test "$enable_shared" = yes && enable_static=no
11091     fi
11092     ;;
11093   esac
11094   { echo "$as_me:$LINENO: result: $enable_shared" >&5
11095 echo "${ECHO_T}$enable_shared" >&6; }
11096
11097   { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11098 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11099   # Make sure either enable_shared or enable_static is yes.
11100   test "$enable_shared" = yes || enable_static=yes
11101   { echo "$as_me:$LINENO: result: $enable_static" >&5
11102 echo "${ECHO_T}$enable_static" >&6; }
11103
11104
11105
11106
11107 fi
11108 ac_ext=c
11109 ac_cpp='$CPP $CPPFLAGS'
11110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11113
11114 CC="$lt_save_CC"
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128         ac_config_commands="$ac_config_commands libtool"
11129
11130
11131
11132
11133 # Only expand once:
11134
11135
11136
11137 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
11138 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
11139 if test "${ac_cv_c_bigendian+set}" = set; then
11140   echo $ECHO_N "(cached) $ECHO_C" >&6
11141 else
11142   # See if sys/param.h defines the BYTE_ORDER macro.
11143 cat >conftest.$ac_ext <<_ACEOF
11144 /* confdefs.h.  */
11145 _ACEOF
11146 cat confdefs.h >>conftest.$ac_ext
11147 cat >>conftest.$ac_ext <<_ACEOF
11148 /* end confdefs.h.  */
11149 #include <sys/types.h>
11150 #include <sys/param.h>
11151
11152 int
11153 main ()
11154 {
11155 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
11156         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
11157  bogus endian macros
11158 #endif
11159
11160   ;
11161   return 0;
11162 }
11163 _ACEOF
11164 rm -f conftest.$ac_objext
11165 if { (ac_try="$ac_compile"
11166 case "(($ac_try" in
11167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11168   *) ac_try_echo=$ac_try;;
11169 esac
11170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11171   (eval "$ac_compile") 2>conftest.er1
11172   ac_status=$?
11173   grep -v '^ *+' conftest.er1 >conftest.err
11174   rm -f conftest.er1
11175   cat conftest.err >&5
11176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177   (exit $ac_status); } && {
11178          test -z "$ac_c_werror_flag" ||
11179          test ! -s conftest.err
11180        } && test -s conftest.$ac_objext; then
11181   # It does; now see whether it defined to BIG_ENDIAN or not.
11182 cat >conftest.$ac_ext <<_ACEOF
11183 /* confdefs.h.  */
11184 _ACEOF
11185 cat confdefs.h >>conftest.$ac_ext
11186 cat >>conftest.$ac_ext <<_ACEOF
11187 /* end confdefs.h.  */
11188 #include <sys/types.h>
11189 #include <sys/param.h>
11190
11191 int
11192 main ()
11193 {
11194 #if BYTE_ORDER != BIG_ENDIAN
11195  not big endian
11196 #endif
11197
11198   ;
11199   return 0;
11200 }
11201 _ACEOF
11202 rm -f conftest.$ac_objext
11203 if { (ac_try="$ac_compile"
11204 case "(($ac_try" in
11205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11206   *) ac_try_echo=$ac_try;;
11207 esac
11208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11209   (eval "$ac_compile") 2>conftest.er1
11210   ac_status=$?
11211   grep -v '^ *+' conftest.er1 >conftest.err
11212   rm -f conftest.er1
11213   cat conftest.err >&5
11214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215   (exit $ac_status); } && {
11216          test -z "$ac_c_werror_flag" ||
11217          test ! -s conftest.err
11218        } && test -s conftest.$ac_objext; then
11219   ac_cv_c_bigendian=yes
11220 else
11221   echo "$as_me: failed program was:" >&5
11222 sed 's/^/| /' conftest.$ac_ext >&5
11223
11224         ac_cv_c_bigendian=no
11225 fi
11226
11227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11228 else
11229   echo "$as_me: failed program was:" >&5
11230 sed 's/^/| /' conftest.$ac_ext >&5
11231
11232         # It does not; compile a test program.
11233 if test "$cross_compiling" = yes; then
11234   # try to guess the endianness by grepping values into an object file
11235   ac_cv_c_bigendian=unknown
11236   cat >conftest.$ac_ext <<_ACEOF
11237 /* confdefs.h.  */
11238 _ACEOF
11239 cat confdefs.h >>conftest.$ac_ext
11240 cat >>conftest.$ac_ext <<_ACEOF
11241 /* end confdefs.h.  */
11242 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11243 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11244 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
11245 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11246 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11247 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
11248 int
11249 main ()
11250 {
11251  _ascii (); _ebcdic ();
11252   ;
11253   return 0;
11254 }
11255 _ACEOF
11256 rm -f conftest.$ac_objext
11257 if { (ac_try="$ac_compile"
11258 case "(($ac_try" in
11259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11260   *) ac_try_echo=$ac_try;;
11261 esac
11262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11263   (eval "$ac_compile") 2>conftest.er1
11264   ac_status=$?
11265   grep -v '^ *+' conftest.er1 >conftest.err
11266   rm -f conftest.er1
11267   cat conftest.err >&5
11268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269   (exit $ac_status); } && {
11270          test -z "$ac_c_werror_flag" ||
11271          test ! -s conftest.err
11272        } && test -s conftest.$ac_objext; then
11273   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
11274   ac_cv_c_bigendian=yes
11275 fi
11276 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11277   if test "$ac_cv_c_bigendian" = unknown; then
11278     ac_cv_c_bigendian=no
11279   else
11280     # finding both strings is unlikely to happen, but who knows?
11281     ac_cv_c_bigendian=unknown
11282   fi
11283 fi
11284 else
11285   echo "$as_me: failed program was:" >&5
11286 sed 's/^/| /' conftest.$ac_ext >&5
11287
11288
11289 fi
11290
11291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11292 else
11293   cat >conftest.$ac_ext <<_ACEOF
11294 /* confdefs.h.  */
11295 _ACEOF
11296 cat confdefs.h >>conftest.$ac_ext
11297 cat >>conftest.$ac_ext <<_ACEOF
11298 /* end confdefs.h.  */
11299 $ac_includes_default
11300 int
11301 main ()
11302 {
11303
11304   /* Are we little or big endian?  From Harbison&Steele.  */
11305   union
11306   {
11307     long int l;
11308     char c[sizeof (long int)];
11309   } u;
11310   u.l = 1;
11311   return u.c[sizeof (long int) - 1] == 1;
11312
11313   ;
11314   return 0;
11315 }
11316 _ACEOF
11317 rm -f conftest$ac_exeext
11318 if { (ac_try="$ac_link"
11319 case "(($ac_try" in
11320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11321   *) ac_try_echo=$ac_try;;
11322 esac
11323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11324   (eval "$ac_link") 2>&5
11325   ac_status=$?
11326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11328   { (case "(($ac_try" in
11329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11330   *) ac_try_echo=$ac_try;;
11331 esac
11332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11333   (eval "$ac_try") 2>&5
11334   ac_status=$?
11335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336   (exit $ac_status); }; }; then
11337   ac_cv_c_bigendian=no
11338 else
11339   echo "$as_me: program exited with status $ac_status" >&5
11340 echo "$as_me: failed program was:" >&5
11341 sed 's/^/| /' conftest.$ac_ext >&5
11342
11343 ( exit $ac_status )
11344 ac_cv_c_bigendian=yes
11345 fi
11346 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11347 fi
11348
11349
11350 fi
11351
11352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11353 fi
11354 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
11355 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
11356 case $ac_cv_c_bigendian in
11357   yes)
11358
11359 cat >>confdefs.h <<\_ACEOF
11360 #define WORDS_BIGENDIAN 1
11361 _ACEOF
11362  ;;
11363   no)
11364      ;;
11365   *)
11366     { { echo "$as_me:$LINENO: error: unknown endianness
11367 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
11368 echo "$as_me: error: unknown endianness
11369 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
11370    { (exit 1); exit 1; }; } ;;
11371 esac
11372
11373 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11374 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
11375 if test "${ac_cv_c_const+set}" = set; then
11376   echo $ECHO_N "(cached) $ECHO_C" >&6
11377 else
11378   cat >conftest.$ac_ext <<_ACEOF
11379 /* confdefs.h.  */
11380 _ACEOF
11381 cat confdefs.h >>conftest.$ac_ext
11382 cat >>conftest.$ac_ext <<_ACEOF
11383 /* end confdefs.h.  */
11384
11385 int
11386 main ()
11387 {
11388 /* FIXME: Include the comments suggested by Paul. */
11389 #ifndef __cplusplus
11390   /* Ultrix mips cc rejects this.  */
11391   typedef int charset[2];
11392   const charset cs;
11393   /* SunOS 4.1.1 cc rejects this.  */
11394   char const *const *pcpcc;
11395   char **ppc;
11396   /* NEC SVR4.0.2 mips cc rejects this.  */
11397   struct point {int x, y;};
11398   static struct point const zero = {0,0};
11399   /* AIX XL C 1.02.0.0 rejects this.
11400      It does not let you subtract one const X* pointer from another in
11401      an arm of an if-expression whose if-part is not a constant
11402      expression */
11403   const char *g = "string";
11404   pcpcc = &g + (g ? g-g : 0);
11405   /* HPUX 7.0 cc rejects these. */
11406   ++pcpcc;
11407   ppc = (char**) pcpcc;
11408   pcpcc = (char const *const *) ppc;
11409   { /* SCO 3.2v4 cc rejects this.  */
11410     char *t;
11411     char const *s = 0 ? (char *) 0 : (char const *) 0;
11412
11413     *t++ = 0;
11414     if (s) return 0;
11415   }
11416   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11417     int x[] = {25, 17};
11418     const int *foo = &x[0];
11419     ++foo;
11420   }
11421   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11422     typedef const int *iptr;
11423     iptr p = 0;
11424     ++p;
11425   }
11426   { /* AIX XL C 1.02.0.0 rejects this saying
11427        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11428     struct s { int j; const int *ap[3]; };
11429     struct s *b; b->j = 5;
11430   }
11431   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11432     const int foo = 10;
11433     if (!foo) return 0;
11434   }
11435   return !cs[0] && !zero.x;
11436 #endif
11437
11438   ;
11439   return 0;
11440 }
11441 _ACEOF
11442 rm -f conftest.$ac_objext
11443 if { (ac_try="$ac_compile"
11444 case "(($ac_try" in
11445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11446   *) ac_try_echo=$ac_try;;
11447 esac
11448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11449   (eval "$ac_compile") 2>conftest.er1
11450   ac_status=$?
11451   grep -v '^ *+' conftest.er1 >conftest.err
11452   rm -f conftest.er1
11453   cat conftest.err >&5
11454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455   (exit $ac_status); } && {
11456          test -z "$ac_c_werror_flag" ||
11457          test ! -s conftest.err
11458        } && test -s conftest.$ac_objext; then
11459   ac_cv_c_const=yes
11460 else
11461   echo "$as_me: failed program was:" >&5
11462 sed 's/^/| /' conftest.$ac_ext >&5
11463
11464         ac_cv_c_const=no
11465 fi
11466
11467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11468 fi
11469 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11470 echo "${ECHO_T}$ac_cv_c_const" >&6; }
11471 if test $ac_cv_c_const = no; then
11472
11473 cat >>confdefs.h <<\_ACEOF
11474 #define const
11475 _ACEOF
11476
11477 fi
11478
11479 { echo "$as_me:$LINENO: checking for inline" >&5
11480 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
11481 if test "${ac_cv_c_inline+set}" = set; then
11482   echo $ECHO_N "(cached) $ECHO_C" >&6
11483 else
11484   ac_cv_c_inline=no
11485 for ac_kw in inline __inline__ __inline; do
11486   cat >conftest.$ac_ext <<_ACEOF
11487 /* confdefs.h.  */
11488 _ACEOF
11489 cat confdefs.h >>conftest.$ac_ext
11490 cat >>conftest.$ac_ext <<_ACEOF
11491 /* end confdefs.h.  */
11492 #ifndef __cplusplus
11493 typedef int foo_t;
11494 static $ac_kw foo_t static_foo () {return 0; }
11495 $ac_kw foo_t foo () {return 0; }
11496 #endif
11497
11498 _ACEOF
11499 rm -f conftest.$ac_objext
11500 if { (ac_try="$ac_compile"
11501 case "(($ac_try" in
11502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11503   *) ac_try_echo=$ac_try;;
11504 esac
11505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11506   (eval "$ac_compile") 2>conftest.er1
11507   ac_status=$?
11508   grep -v '^ *+' conftest.er1 >conftest.err
11509   rm -f conftest.er1
11510   cat conftest.err >&5
11511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512   (exit $ac_status); } && {
11513          test -z "$ac_c_werror_flag" ||
11514          test ! -s conftest.err
11515        } && test -s conftest.$ac_objext; then
11516   ac_cv_c_inline=$ac_kw
11517 else
11518   echo "$as_me: failed program was:" >&5
11519 sed 's/^/| /' conftest.$ac_ext >&5
11520
11521
11522 fi
11523
11524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11525   test "$ac_cv_c_inline" != no && break
11526 done
11527
11528 fi
11529 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
11530 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
11531
11532
11533 case $ac_cv_c_inline in
11534   inline | yes) ;;
11535   *)
11536     case $ac_cv_c_inline in
11537       no) ac_val=;;
11538       *) ac_val=$ac_cv_c_inline;;
11539     esac
11540     cat >>confdefs.h <<_ACEOF
11541 #ifndef __cplusplus
11542 #define inline $ac_val
11543 #endif
11544 _ACEOF
11545     ;;
11546 esac
11547
11548 { echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
11549 echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6; }
11550 if test "${ac_cv_c_restrict+set}" = set; then
11551   echo $ECHO_N "(cached) $ECHO_C" >&6
11552 else
11553   ac_cv_c_restrict=no
11554    # Try the official restrict keyword, then gcc's __restrict, and
11555    # the less common variants.
11556    for ac_kw in restrict __restrict __restrict__ _Restrict; do
11557      cat >conftest.$ac_ext <<_ACEOF
11558 /* confdefs.h.  */
11559 _ACEOF
11560 cat confdefs.h >>conftest.$ac_ext
11561 cat >>conftest.$ac_ext <<_ACEOF
11562 /* end confdefs.h.  */
11563 typedef int * int_ptr;
11564         int foo (int_ptr $ac_kw ip) {
11565         return ip[0];
11566        }
11567 int
11568 main ()
11569 {
11570 int s[1];
11571         int * $ac_kw t = s;
11572         t[0] = 0;
11573         return foo(t)
11574   ;
11575   return 0;
11576 }
11577 _ACEOF
11578 rm -f conftest.$ac_objext
11579 if { (ac_try="$ac_compile"
11580 case "(($ac_try" in
11581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11582   *) ac_try_echo=$ac_try;;
11583 esac
11584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11585   (eval "$ac_compile") 2>conftest.er1
11586   ac_status=$?
11587   grep -v '^ *+' conftest.er1 >conftest.err
11588   rm -f conftest.er1
11589   cat conftest.err >&5
11590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591   (exit $ac_status); } && {
11592          test -z "$ac_c_werror_flag" ||
11593          test ! -s conftest.err
11594        } && test -s conftest.$ac_objext; then
11595   ac_cv_c_restrict=$ac_kw
11596 else
11597   echo "$as_me: failed program was:" >&5
11598 sed 's/^/| /' conftest.$ac_ext >&5
11599
11600
11601 fi
11602
11603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11604      test "$ac_cv_c_restrict" != no && break
11605    done
11606
11607 fi
11608 { echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
11609 echo "${ECHO_T}$ac_cv_c_restrict" >&6; }
11610  case $ac_cv_c_restrict in
11611    restrict) ;;
11612    no)
11613 cat >>confdefs.h <<\_ACEOF
11614 #define restrict
11615 _ACEOF
11616  ;;
11617    *)  cat >>confdefs.h <<_ACEOF
11618 #define restrict $ac_cv_c_restrict
11619 _ACEOF
11620  ;;
11621  esac
11622
11623
11624
11625 { echo "$as_me:$LINENO: checking for C99 variable-size arrays" >&5
11626 echo $ECHO_N "checking for C99 variable-size arrays... $ECHO_C" >&6; }
11627 cat >conftest.$ac_ext <<_ACEOF
11628 /* confdefs.h.  */
11629 _ACEOF
11630 cat confdefs.h >>conftest.$ac_ext
11631 cat >>conftest.$ac_ext <<_ACEOF
11632 /* end confdefs.h.  */
11633
11634 int
11635 main ()
11636 {
11637
11638 int foo;
11639 foo = 10;
11640 int array[foo];
11641
11642   ;
11643   return 0;
11644 }
11645 _ACEOF
11646 rm -f conftest.$ac_objext
11647 if { (ac_try="$ac_compile"
11648 case "(($ac_try" in
11649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11650   *) ac_try_echo=$ac_try;;
11651 esac
11652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11653   (eval "$ac_compile") 2>conftest.er1
11654   ac_status=$?
11655   grep -v '^ *+' conftest.er1 >conftest.err
11656   rm -f conftest.er1
11657   cat conftest.err >&5
11658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659   (exit $ac_status); } && {
11660          test -z "$ac_c_werror_flag" ||
11661          test ! -s conftest.err
11662        } && test -s conftest.$ac_objext; then
11663   has_var_arrays=yes;
11664 cat >>confdefs.h <<\_ACEOF
11665 #define VAR_ARRAYS
11666 _ACEOF
11667
11668
11669 else
11670   echo "$as_me: failed program was:" >&5
11671 sed 's/^/| /' conftest.$ac_ext >&5
11672
11673         has_var_arrays=no
11674
11675 fi
11676
11677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11678 { echo "$as_me:$LINENO: result: $has_var_arrays" >&5
11679 echo "${ECHO_T}$has_var_arrays" >&6; }
11680
11681
11682
11683 for ac_header in alloca.h getopt.h
11684 do
11685 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11687   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11689 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11690   echo $ECHO_N "(cached) $ECHO_C" >&6
11691 fi
11692 ac_res=`eval echo '${'$as_ac_Header'}'`
11693                { echo "$as_me:$LINENO: result: $ac_res" >&5
11694 echo "${ECHO_T}$ac_res" >&6; }
11695 else
11696   # Is the header compilable?
11697 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11698 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11699 cat >conftest.$ac_ext <<_ACEOF
11700 /* confdefs.h.  */
11701 _ACEOF
11702 cat confdefs.h >>conftest.$ac_ext
11703 cat >>conftest.$ac_ext <<_ACEOF
11704 /* end confdefs.h.  */
11705 $ac_includes_default
11706 #include <$ac_header>
11707 _ACEOF
11708 rm -f conftest.$ac_objext
11709 if { (ac_try="$ac_compile"
11710 case "(($ac_try" in
11711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11712   *) ac_try_echo=$ac_try;;
11713 esac
11714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11715   (eval "$ac_compile") 2>conftest.er1
11716   ac_status=$?
11717   grep -v '^ *+' conftest.er1 >conftest.err
11718   rm -f conftest.er1
11719   cat conftest.err >&5
11720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721   (exit $ac_status); } && {
11722          test -z "$ac_c_werror_flag" ||
11723          test ! -s conftest.err
11724        } && test -s conftest.$ac_objext; then
11725   ac_header_compiler=yes
11726 else
11727   echo "$as_me: failed program was:" >&5
11728 sed 's/^/| /' conftest.$ac_ext >&5
11729
11730         ac_header_compiler=no
11731 fi
11732
11733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11734 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11735 echo "${ECHO_T}$ac_header_compiler" >&6; }
11736
11737 # Is the header present?
11738 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11739 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11740 cat >conftest.$ac_ext <<_ACEOF
11741 /* confdefs.h.  */
11742 _ACEOF
11743 cat confdefs.h >>conftest.$ac_ext
11744 cat >>conftest.$ac_ext <<_ACEOF
11745 /* end confdefs.h.  */
11746 #include <$ac_header>
11747 _ACEOF
11748 if { (ac_try="$ac_cpp conftest.$ac_ext"
11749 case "(($ac_try" in
11750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11751   *) ac_try_echo=$ac_try;;
11752 esac
11753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11754   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11755   ac_status=$?
11756   grep -v '^ *+' conftest.er1 >conftest.err
11757   rm -f conftest.er1
11758   cat conftest.err >&5
11759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760   (exit $ac_status); } >/dev/null && {
11761          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11762          test ! -s conftest.err
11763        }; then
11764   ac_header_preproc=yes
11765 else
11766   echo "$as_me: failed program was:" >&5
11767 sed 's/^/| /' conftest.$ac_ext >&5
11768
11769   ac_header_preproc=no
11770 fi
11771
11772 rm -f conftest.err conftest.$ac_ext
11773 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11774 echo "${ECHO_T}$ac_header_preproc" >&6; }
11775
11776 # So?  What about this header?
11777 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11778   yes:no: )
11779     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11780 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11781     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11782 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11783     ac_header_preproc=yes
11784     ;;
11785   no:yes:* )
11786     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11787 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11788     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11789 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11790     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11791 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11792     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11793 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11794     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11795 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11796     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11797 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11798
11799     ;;
11800 esac
11801 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11804   echo $ECHO_N "(cached) $ECHO_C" >&6
11805 else
11806   eval "$as_ac_Header=\$ac_header_preproc"
11807 fi
11808 ac_res=`eval echo '${'$as_ac_Header'}'`
11809                { echo "$as_me:$LINENO: result: $ac_res" >&5
11810 echo "${ECHO_T}$ac_res" >&6; }
11811
11812 fi
11813 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11814   cat >>confdefs.h <<_ACEOF
11815 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11816 _ACEOF
11817
11818 fi
11819
11820 done
11821
11822 { echo "$as_me:$LINENO: checking for alloca" >&5
11823 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
11824 cat >conftest.$ac_ext <<_ACEOF
11825 /* confdefs.h.  */
11826 _ACEOF
11827 cat confdefs.h >>conftest.$ac_ext
11828 cat >>conftest.$ac_ext <<_ACEOF
11829 /* end confdefs.h.  */
11830
11831 #ifdef HAVE_ALLOCA_H
11832 # include <alloca.h>
11833 #endif
11834 #include <stdlib.h>
11835
11836 int
11837 main ()
11838 {
11839
11840 int foo=10;
11841 int *array = alloca(foo);
11842
11843   ;
11844   return 0;
11845 }
11846 _ACEOF
11847 rm -f conftest.$ac_objext
11848 if { (ac_try="$ac_compile"
11849 case "(($ac_try" in
11850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11851   *) ac_try_echo=$ac_try;;
11852 esac
11853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11854   (eval "$ac_compile") 2>conftest.er1
11855   ac_status=$?
11856   grep -v '^ *+' conftest.er1 >conftest.err
11857   rm -f conftest.er1
11858   cat conftest.err >&5
11859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860   (exit $ac_status); } && {
11861          test -z "$ac_c_werror_flag" ||
11862          test ! -s conftest.err
11863        } && test -s conftest.$ac_objext; then
11864
11865 has_alloca=yes;
11866 if test x$has_var_arrays = "xno" ; then
11867
11868 cat >>confdefs.h <<\_ACEOF
11869 #define USE_ALLOCA
11870 _ACEOF
11871
11872 fi
11873
11874 else
11875   echo "$as_me: failed program was:" >&5
11876 sed 's/^/| /' conftest.$ac_ext >&5
11877
11878         has_alloca=no
11879
11880 fi
11881
11882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11883 { echo "$as_me:$LINENO: result: $has_alloca" >&5
11884 echo "${ECHO_T}$has_alloca" >&6; }
11885
11886 { echo "$as_me:$LINENO: checking for SSE in current arch/CFLAGS" >&5
11887 echo $ECHO_N "checking for SSE in current arch/CFLAGS... $ECHO_C" >&6; }
11888 cat >conftest.$ac_ext <<_ACEOF
11889
11890 /* confdefs.h.  */
11891 _ACEOF
11892 cat confdefs.h >>conftest.$ac_ext
11893 cat >>conftest.$ac_ext <<_ACEOF
11894 /* end confdefs.h.  */
11895
11896 #include <xmmintrin.h>
11897 __m128 testfunc(float *a, float *b) {
11898   return _mm_add_ps(_mm_loadu_ps(a), _mm_loadu_ps(b));
11899 }
11900
11901 int
11902 main ()
11903 {
11904
11905   ;
11906   return 0;
11907 }
11908 _ACEOF
11909 rm -f conftest.$ac_objext conftest$ac_exeext
11910 if { (ac_try="$ac_link"
11911 case "(($ac_try" in
11912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11913   *) ac_try_echo=$ac_try;;
11914 esac
11915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11916   (eval "$ac_link") 2>conftest.er1
11917   ac_status=$?
11918   grep -v '^ *+' conftest.er1 >conftest.err
11919   rm -f conftest.er1
11920   cat conftest.err >&5
11921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922   (exit $ac_status); } && {
11923          test -z "$ac_c_werror_flag" ||
11924          test ! -s conftest.err
11925        } && test -s conftest$ac_exeext &&
11926        $as_test_x conftest$ac_exeext; then
11927
11928 has_sse=yes
11929
11930 else
11931   echo "$as_me: failed program was:" >&5
11932 sed 's/^/| /' conftest.$ac_ext >&5
11933
11934
11935 has_sse=no
11936
11937
11938 fi
11939
11940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11941       conftest$ac_exeext conftest.$ac_ext
11942 { echo "$as_me:$LINENO: result: $has_sse" >&5
11943 echo "${ECHO_T}$has_sse" >&6; }
11944
11945 SAVE_CFLAGS="$CFLAGS"
11946 CFLAGS="$CFLAGS -fvisibility=hidden"
11947 { echo "$as_me:$LINENO: checking for ELF visibility" >&5
11948 echo $ECHO_N "checking for ELF visibility... $ECHO_C" >&6; }
11949 cat >conftest.$ac_ext <<_ACEOF
11950
11951 /* confdefs.h.  */
11952 _ACEOF
11953 cat confdefs.h >>conftest.$ac_ext
11954 cat >>conftest.$ac_ext <<_ACEOF
11955 /* end confdefs.h.  */
11956
11957 #pragma GCC visibility push(hidden)
11958 __attribute__((visibility("default")))
11959 int var=10;
11960
11961 int
11962 main ()
11963 {
11964
11965   ;
11966   return 0;
11967 }
11968 _ACEOF
11969 rm -f conftest.$ac_objext
11970 if { (ac_try="$ac_compile"
11971 case "(($ac_try" in
11972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11973   *) ac_try_echo=$ac_try;;
11974 esac
11975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11976   (eval "$ac_compile") 2>conftest.er1
11977   ac_status=$?
11978   grep -v '^ *+' conftest.er1 >conftest.err
11979   rm -f conftest.er1
11980   cat conftest.err >&5
11981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982   (exit $ac_status); } && {
11983          test -z "$ac_c_werror_flag" ||
11984          test ! -s conftest.err
11985        } && test -s conftest.$ac_objext; then
11986
11987 has_visibility=yes
11988
11989 cat >>confdefs.h <<\_ACEOF
11990 #define EXPORT __attribute__((visibility("default")))
11991 _ACEOF
11992
11993
11994 else
11995   echo "$as_me: failed program was:" >&5
11996 sed 's/^/| /' conftest.$ac_ext >&5
11997
11998
11999 has_visibility=no
12000
12001 cat >>confdefs.h <<\_ACEOF
12002 #define EXPORT
12003 _ACEOF
12004
12005 CFLAGS="$SAVE_CFLAGS"
12006
12007
12008 fi
12009
12010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12011 { echo "$as_me:$LINENO: result: $has_visibility" >&5
12012 echo "${ECHO_T}$has_visibility" >&6; }
12013
12014
12015
12016 for ac_header in sys/soundcard.h sys/audioio.h
12017 do
12018 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12019 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12020   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12021 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12022 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12023   echo $ECHO_N "(cached) $ECHO_C" >&6
12024 fi
12025 ac_res=`eval echo '${'$as_ac_Header'}'`
12026                { echo "$as_me:$LINENO: result: $ac_res" >&5
12027 echo "${ECHO_T}$ac_res" >&6; }
12028 else
12029   # Is the header compilable?
12030 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12031 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12032 cat >conftest.$ac_ext <<_ACEOF
12033 /* confdefs.h.  */
12034 _ACEOF
12035 cat confdefs.h >>conftest.$ac_ext
12036 cat >>conftest.$ac_ext <<_ACEOF
12037 /* end confdefs.h.  */
12038 $ac_includes_default
12039 #include <$ac_header>
12040 _ACEOF
12041 rm -f conftest.$ac_objext
12042 if { (ac_try="$ac_compile"
12043 case "(($ac_try" in
12044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12045   *) ac_try_echo=$ac_try;;
12046 esac
12047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12048   (eval "$ac_compile") 2>conftest.er1
12049   ac_status=$?
12050   grep -v '^ *+' conftest.er1 >conftest.err
12051   rm -f conftest.er1
12052   cat conftest.err >&5
12053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12054   (exit $ac_status); } && {
12055          test -z "$ac_c_werror_flag" ||
12056          test ! -s conftest.err
12057        } && test -s conftest.$ac_objext; then
12058   ac_header_compiler=yes
12059 else
12060   echo "$as_me: failed program was:" >&5
12061 sed 's/^/| /' conftest.$ac_ext >&5
12062
12063         ac_header_compiler=no
12064 fi
12065
12066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12067 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12068 echo "${ECHO_T}$ac_header_compiler" >&6; }
12069
12070 # Is the header present?
12071 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12072 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12073 cat >conftest.$ac_ext <<_ACEOF
12074 /* confdefs.h.  */
12075 _ACEOF
12076 cat confdefs.h >>conftest.$ac_ext
12077 cat >>conftest.$ac_ext <<_ACEOF
12078 /* end confdefs.h.  */
12079 #include <$ac_header>
12080 _ACEOF
12081 if { (ac_try="$ac_cpp conftest.$ac_ext"
12082 case "(($ac_try" in
12083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12084   *) ac_try_echo=$ac_try;;
12085 esac
12086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12087   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12088   ac_status=$?
12089   grep -v '^ *+' conftest.er1 >conftest.err
12090   rm -f conftest.er1
12091   cat conftest.err >&5
12092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093   (exit $ac_status); } >/dev/null && {
12094          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12095          test ! -s conftest.err
12096        }; then
12097   ac_header_preproc=yes
12098 else
12099   echo "$as_me: failed program was:" >&5
12100 sed 's/^/| /' conftest.$ac_ext >&5
12101
12102   ac_header_preproc=no
12103 fi
12104
12105 rm -f conftest.err conftest.$ac_ext
12106 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12107 echo "${ECHO_T}$ac_header_preproc" >&6; }
12108
12109 # So?  What about this header?
12110 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12111   yes:no: )
12112     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12113 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12114     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12115 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12116     ac_header_preproc=yes
12117     ;;
12118   no:yes:* )
12119     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12120 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12121     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12122 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12123     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12124 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12125     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12126 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12127     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12128 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12129     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12130 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12131
12132     ;;
12133 esac
12134 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12135 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12137   echo $ECHO_N "(cached) $ECHO_C" >&6
12138 else
12139   eval "$as_ac_Header=\$ac_header_preproc"
12140 fi
12141 ac_res=`eval echo '${'$as_ac_Header'}'`
12142                { echo "$as_me:$LINENO: result: $ac_res" >&5
12143 echo "${ECHO_T}$ac_res" >&6; }
12144
12145 fi
12146 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12147   cat >>confdefs.h <<_ACEOF
12148 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12149 _ACEOF
12150
12151 fi
12152
12153 done
12154
12155
12156
12157 # Check whether --with-ogg was given.
12158 if test "${with_ogg+set}" = set; then
12159   withval=$with_ogg; ogg_prefix="$withval"
12160 else
12161   ogg_prefix=""
12162 fi
12163
12164
12165 # Check whether --with-ogg-libraries was given.
12166 if test "${with_ogg_libraries+set}" = set; then
12167   withval=$with_ogg_libraries; ogg_libraries="$withval"
12168 else
12169   ogg_libraries=""
12170 fi
12171
12172
12173 # Check whether --with-ogg-includes was given.
12174 if test "${with_ogg_includes+set}" = set; then
12175   withval=$with_ogg_includes; ogg_includes="$withval"
12176 else
12177   ogg_includes=""
12178 fi
12179
12180 # Check whether --enable-oggtest was given.
12181 if test "${enable_oggtest+set}" = set; then
12182   enableval=$enable_oggtest;
12183 else
12184   enable_oggtest=yes
12185 fi
12186
12187
12188   if test "x$ogg_libraries" != "x" ; then
12189     OGG_LIBS="-L$ogg_libraries"
12190   elif test "x$ogg_prefix" != "x" ; then
12191     OGG_LIBS="-L$ogg_prefix/lib"
12192   elif test "x$prefix" != "xNONE" ; then
12193     OGG_LIBS="-L$prefix/lib"
12194   fi
12195
12196   OGG_LIBS="$OGG_LIBS -logg"
12197
12198   if test "x$ogg_includes" != "x" ; then
12199     OGG_CFLAGS="-I$ogg_includes"
12200   elif test "x$ogg_prefix" != "x" ; then
12201     OGG_CFLAGS="-I$ogg_prefix/include"
12202   elif test "x$prefix" != "xNONE"; then
12203     OGG_CFLAGS="-I$prefix/include"
12204   fi
12205
12206   { echo "$as_me:$LINENO: checking for Ogg" >&5
12207 echo $ECHO_N "checking for Ogg... $ECHO_C" >&6; }
12208   no_ogg=""
12209
12210
12211   if test "x$enable_oggtest" = "xyes" ; then
12212     ac_save_CFLAGS="$CFLAGS"
12213     ac_save_LIBS="$LIBS"
12214     CFLAGS="$CFLAGS $OGG_CFLAGS"
12215     LIBS="$LIBS $OGG_LIBS"
12216       rm -f conf.oggtest
12217       if test "$cross_compiling" = yes; then
12218   echo $ac_n "cross compiling; assumed OK... $ac_c"
12219 else
12220   cat >conftest.$ac_ext <<_ACEOF
12221 /* confdefs.h.  */
12222 _ACEOF
12223 cat confdefs.h >>conftest.$ac_ext
12224 cat >>conftest.$ac_ext <<_ACEOF
12225 /* end confdefs.h.  */
12226
12227 #include <stdio.h>
12228 #include <stdlib.h>
12229 #include <string.h>
12230 #include <ogg/ogg.h>
12231
12232 int main ()
12233 {
12234   system("touch conf.oggtest");
12235   return 0;
12236 }
12237
12238
12239 _ACEOF
12240 rm -f conftest$ac_exeext
12241 if { (ac_try="$ac_link"
12242 case "(($ac_try" in
12243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12244   *) ac_try_echo=$ac_try;;
12245 esac
12246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12247   (eval "$ac_link") 2>&5
12248   ac_status=$?
12249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12251   { (case "(($ac_try" in
12252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12253   *) ac_try_echo=$ac_try;;
12254 esac
12255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12256   (eval "$ac_try") 2>&5
12257   ac_status=$?
12258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259   (exit $ac_status); }; }; then
12260   :
12261 else
12262   echo "$as_me: program exited with status $ac_status" >&5
12263 echo "$as_me: failed program was:" >&5
12264 sed 's/^/| /' conftest.$ac_ext >&5
12265
12266 ( exit $ac_status )
12267 no_ogg=yes
12268 fi
12269 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12270 fi
12271
12272
12273        CFLAGS="$ac_save_CFLAGS"
12274        LIBS="$ac_save_LIBS"
12275   fi
12276
12277   if test "x$no_ogg" = "x" ; then
12278      { echo "$as_me:$LINENO: result: yes" >&5
12279 echo "${ECHO_T}yes" >&6; }
12280      src="src"
12281   else
12282      { echo "$as_me:$LINENO: result: no" >&5
12283 echo "${ECHO_T}no" >&6; }
12284      if test -f conf.oggtest ; then
12285        :
12286      else
12287        echo "*** Could not run Ogg test program, checking why..."
12288        CFLAGS="$CFLAGS $OGG_CFLAGS"
12289        LIBS="$LIBS $OGG_LIBS"
12290        cat >conftest.$ac_ext <<_ACEOF
12291 /* confdefs.h.  */
12292 _ACEOF
12293 cat confdefs.h >>conftest.$ac_ext
12294 cat >>conftest.$ac_ext <<_ACEOF
12295 /* end confdefs.h.  */
12296
12297 #include <stdio.h>
12298 #include <ogg/ogg.h>
12299
12300 int
12301 main ()
12302 {
12303  return 0;
12304   ;
12305   return 0;
12306 }
12307 _ACEOF
12308 rm -f conftest.$ac_objext conftest$ac_exeext
12309 if { (ac_try="$ac_link"
12310 case "(($ac_try" in
12311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12312   *) ac_try_echo=$ac_try;;
12313 esac
12314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12315   (eval "$ac_link") 2>conftest.er1
12316   ac_status=$?
12317   grep -v '^ *+' conftest.er1 >conftest.err
12318   rm -f conftest.er1
12319   cat conftest.err >&5
12320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321   (exit $ac_status); } && {
12322          test -z "$ac_c_werror_flag" ||
12323          test ! -s conftest.err
12324        } && test -s conftest$ac_exeext &&
12325        $as_test_x conftest$ac_exeext; then
12326    echo "*** The test program compiled, but did not run. This usually means"
12327        echo "*** that the run-time linker is not finding Ogg or finding the wrong"
12328        echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your"
12329        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12330        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
12331        echo "*** is required on your system"
12332        echo "***"
12333        echo "*** If you have an old version installed, it is best to remove it, although"
12334        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12335 else
12336   echo "$as_me: failed program was:" >&5
12337 sed 's/^/| /' conftest.$ac_ext >&5
12338
12339          echo "*** The test program failed to compile or link. See the file config.log for the"
12340        echo "*** exact error that occured. This usually means Ogg was incorrectly installed"
12341        echo "*** or that you have moved Ogg since it was installed."
12342 fi
12343
12344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12345       conftest$ac_exeext conftest.$ac_ext
12346        CFLAGS="$ac_save_CFLAGS"
12347        LIBS="$ac_save_LIBS"
12348      fi
12349      OGG_CFLAGS=""
12350      OGG_LIBS=""
12351      src=""
12352   fi
12353
12354
12355   rm -f conf.oggtest
12356
12357
12358
12359
12360 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12361 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12362 if test "${ac_cv_lib_m_sin+set}" = set; then
12363   echo $ECHO_N "(cached) $ECHO_C" >&6
12364 else
12365   ac_check_lib_save_LIBS=$LIBS
12366 LIBS="-lm  $LIBS"
12367 cat >conftest.$ac_ext <<_ACEOF
12368 /* confdefs.h.  */
12369 _ACEOF
12370 cat confdefs.h >>conftest.$ac_ext
12371 cat >>conftest.$ac_ext <<_ACEOF
12372 /* end confdefs.h.  */
12373
12374 /* Override any GCC internal prototype to avoid an error.
12375    Use char because int might match the return type of a GCC
12376    builtin and then its argument prototype would still apply.  */
12377 #ifdef __cplusplus
12378 extern "C"
12379 #endif
12380 char sin ();
12381 int
12382 main ()
12383 {
12384 return sin ();
12385   ;
12386   return 0;
12387 }
12388 _ACEOF
12389 rm -f conftest.$ac_objext conftest$ac_exeext
12390 if { (ac_try="$ac_link"
12391 case "(($ac_try" in
12392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12393   *) ac_try_echo=$ac_try;;
12394 esac
12395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12396   (eval "$ac_link") 2>conftest.er1
12397   ac_status=$?
12398   grep -v '^ *+' conftest.er1 >conftest.err
12399   rm -f conftest.er1
12400   cat conftest.err >&5
12401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402   (exit $ac_status); } && {
12403          test -z "$ac_c_werror_flag" ||
12404          test ! -s conftest.err
12405        } && test -s conftest$ac_exeext &&
12406        $as_test_x conftest$ac_exeext; then
12407   ac_cv_lib_m_sin=yes
12408 else
12409   echo "$as_me: failed program was:" >&5
12410 sed 's/^/| /' conftest.$ac_ext >&5
12411
12412         ac_cv_lib_m_sin=no
12413 fi
12414
12415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12416       conftest$ac_exeext conftest.$ac_ext
12417 LIBS=$ac_check_lib_save_LIBS
12418 fi
12419 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12420 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12421 if test $ac_cv_lib_m_sin = yes; then
12422   cat >>confdefs.h <<_ACEOF
12423 #define HAVE_LIBM 1
12424 _ACEOF
12425
12426   LIBS="-lm $LIBS"
12427
12428 fi
12429
12430
12431 # Check for getopt_long; if not found, use included source.
12432
12433 for ac_func in getopt_long
12434 do
12435 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12436 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12437 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12438 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12439   echo $ECHO_N "(cached) $ECHO_C" >&6
12440 else
12441   cat >conftest.$ac_ext <<_ACEOF
12442 /* confdefs.h.  */
12443 _ACEOF
12444 cat confdefs.h >>conftest.$ac_ext
12445 cat >>conftest.$ac_ext <<_ACEOF
12446 /* end confdefs.h.  */
12447 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12448    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12449 #define $ac_func innocuous_$ac_func
12450
12451 /* System header to define __stub macros and hopefully few prototypes,
12452     which can conflict with char $ac_func (); below.
12453     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12454     <limits.h> exists even on freestanding compilers.  */
12455
12456 #ifdef __STDC__
12457 # include <limits.h>
12458 #else
12459 # include <assert.h>
12460 #endif
12461
12462 #undef $ac_func
12463
12464 /* Override any GCC internal prototype to avoid an error.
12465    Use char because int might match the return type of a GCC
12466    builtin and then its argument prototype would still apply.  */
12467 #ifdef __cplusplus
12468 extern "C"
12469 #endif
12470 char $ac_func ();
12471 /* The GNU C library defines this for functions which it implements
12472     to always fail with ENOSYS.  Some functions are actually named
12473     something starting with __ and the normal name is an alias.  */
12474 #if defined __stub_$ac_func || defined __stub___$ac_func
12475 choke me
12476 #endif
12477
12478 int
12479 main ()
12480 {
12481 return $ac_func ();
12482   ;
12483   return 0;
12484 }
12485 _ACEOF
12486 rm -f conftest.$ac_objext conftest$ac_exeext
12487 if { (ac_try="$ac_link"
12488 case "(($ac_try" in
12489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12490   *) ac_try_echo=$ac_try;;
12491 esac
12492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12493   (eval "$ac_link") 2>conftest.er1
12494   ac_status=$?
12495   grep -v '^ *+' conftest.er1 >conftest.err
12496   rm -f conftest.er1
12497   cat conftest.err >&5
12498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499   (exit $ac_status); } && {
12500          test -z "$ac_c_werror_flag" ||
12501          test ! -s conftest.err
12502        } && test -s conftest$ac_exeext &&
12503        $as_test_x conftest$ac_exeext; then
12504   eval "$as_ac_var=yes"
12505 else
12506   echo "$as_me: failed program was:" >&5
12507 sed 's/^/| /' conftest.$ac_ext >&5
12508
12509         eval "$as_ac_var=no"
12510 fi
12511
12512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12513       conftest$ac_exeext conftest.$ac_ext
12514 fi
12515 ac_res=`eval echo '${'$as_ac_var'}'`
12516                { echo "$as_me:$LINENO: result: $ac_res" >&5
12517 echo "${ECHO_T}$ac_res" >&6; }
12518 if test `eval echo '${'$as_ac_var'}'` = yes; then
12519   cat >>confdefs.h <<_ACEOF
12520 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12521 _ACEOF
12522
12523 else
12524   # FreeBSD has a gnugetopt library.
12525   { echo "$as_me:$LINENO: checking for getopt_long in -lgnugetopt" >&5
12526 echo $ECHO_N "checking for getopt_long in -lgnugetopt... $ECHO_C" >&6; }
12527 if test "${ac_cv_lib_gnugetopt_getopt_long+set}" = set; then
12528   echo $ECHO_N "(cached) $ECHO_C" >&6
12529 else
12530   ac_check_lib_save_LIBS=$LIBS
12531 LIBS="-lgnugetopt  $LIBS"
12532 cat >conftest.$ac_ext <<_ACEOF
12533 /* confdefs.h.  */
12534 _ACEOF
12535 cat confdefs.h >>conftest.$ac_ext
12536 cat >>conftest.$ac_ext <<_ACEOF
12537 /* end confdefs.h.  */
12538
12539 /* Override any GCC internal prototype to avoid an error.
12540    Use char because int might match the return type of a GCC
12541    builtin and then its argument prototype would still apply.  */
12542 #ifdef __cplusplus
12543 extern "C"
12544 #endif
12545 char getopt_long ();
12546 int
12547 main ()
12548 {
12549 return getopt_long ();
12550   ;
12551   return 0;
12552 }
12553 _ACEOF
12554 rm -f conftest.$ac_objext conftest$ac_exeext
12555 if { (ac_try="$ac_link"
12556 case "(($ac_try" in
12557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12558   *) ac_try_echo=$ac_try;;
12559 esac
12560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12561   (eval "$ac_link") 2>conftest.er1
12562   ac_status=$?
12563   grep -v '^ *+' conftest.er1 >conftest.err
12564   rm -f conftest.er1
12565   cat conftest.err >&5
12566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567   (exit $ac_status); } && {
12568          test -z "$ac_c_werror_flag" ||
12569          test ! -s conftest.err
12570        } && test -s conftest$ac_exeext &&
12571        $as_test_x conftest$ac_exeext; then
12572   ac_cv_lib_gnugetopt_getopt_long=yes
12573 else
12574   echo "$as_me: failed program was:" >&5
12575 sed 's/^/| /' conftest.$ac_ext >&5
12576
12577         ac_cv_lib_gnugetopt_getopt_long=no
12578 fi
12579
12580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12581       conftest$ac_exeext conftest.$ac_ext
12582 LIBS=$ac_check_lib_save_LIBS
12583 fi
12584 { echo "$as_me:$LINENO: result: $ac_cv_lib_gnugetopt_getopt_long" >&5
12585 echo "${ECHO_T}$ac_cv_lib_gnugetopt_getopt_long" >&6; }
12586 if test $ac_cv_lib_gnugetopt_getopt_long = yes; then
12587   cat >>confdefs.h <<\_ACEOF
12588 #define HAVE_GETOPT_LONG 1
12589 _ACEOF
12590
12591 else
12592   # Use the GNU replacement.
12593 case " $LIBOBJS " in
12594   *" getopt.$ac_objext "* ) ;;
12595   *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
12596  ;;
12597 esac
12598
12599 case " $LIBOBJS " in
12600   *" getopt1.$ac_objext "* ) ;;
12601   *) LIBOBJS="$LIBOBJS getopt1.$ac_objext"
12602  ;;
12603 esac
12604
12605 fi
12606
12607 fi
12608 done
12609
12610
12611
12612 { echo "$as_me:$LINENO: checking for main in -lwinmm" >&5
12613 echo $ECHO_N "checking for main in -lwinmm... $ECHO_C" >&6; }
12614 if test "${ac_cv_lib_winmm_main+set}" = set; then
12615   echo $ECHO_N "(cached) $ECHO_C" >&6
12616 else
12617   ac_check_lib_save_LIBS=$LIBS
12618 LIBS="-lwinmm  $LIBS"
12619 cat >conftest.$ac_ext <<_ACEOF
12620 /* confdefs.h.  */
12621 _ACEOF
12622 cat confdefs.h >>conftest.$ac_ext
12623 cat >>conftest.$ac_ext <<_ACEOF
12624 /* end confdefs.h.  */
12625
12626
12627 int
12628 main ()
12629 {
12630 return main ();
12631   ;
12632   return 0;
12633 }
12634 _ACEOF
12635 rm -f conftest.$ac_objext conftest$ac_exeext
12636 if { (ac_try="$ac_link"
12637 case "(($ac_try" in
12638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12639   *) ac_try_echo=$ac_try;;
12640 esac
12641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12642   (eval "$ac_link") 2>conftest.er1
12643   ac_status=$?
12644   grep -v '^ *+' conftest.er1 >conftest.err
12645   rm -f conftest.er1
12646   cat conftest.err >&5
12647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648   (exit $ac_status); } && {
12649          test -z "$ac_c_werror_flag" ||
12650          test ! -s conftest.err
12651        } && test -s conftest$ac_exeext &&
12652        $as_test_x conftest$ac_exeext; then
12653   ac_cv_lib_winmm_main=yes
12654 else
12655   echo "$as_me: failed program was:" >&5
12656 sed 's/^/| /' conftest.$ac_ext >&5
12657
12658         ac_cv_lib_winmm_main=no
12659 fi
12660
12661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12662       conftest$ac_exeext conftest.$ac_ext
12663 LIBS=$ac_check_lib_save_LIBS
12664 fi
12665 { echo "$as_me:$LINENO: result: $ac_cv_lib_winmm_main" >&5
12666 echo "${ECHO_T}$ac_cv_lib_winmm_main" >&6; }
12667 if test $ac_cv_lib_winmm_main = yes; then
12668   cat >>confdefs.h <<_ACEOF
12669 #define HAVE_LIBWINMM 1
12670 _ACEOF
12671
12672   LIBS="-lwinmm $LIBS"
12673
12674 fi
12675
12676
12677
12678 cat >>confdefs.h <<_ACEOF
12679 #define SPEEX_VERSION "${SPEEX_VERSION}"
12680 _ACEOF
12681
12682
12683 cat >>confdefs.h <<_ACEOF
12684 #define SPEEX_MAJOR_VERSION ${SPEEX_MAJOR_VERSION}
12685 _ACEOF
12686
12687
12688 cat >>confdefs.h <<_ACEOF
12689 #define SPEEX_MINOR_VERSION ${SPEEX_MINOR_VERSION}
12690 _ACEOF
12691
12692
12693 cat >>confdefs.h <<_ACEOF
12694 #define SPEEX_MICRO_VERSION ${SPEEX_MICRO_VERSION}
12695 _ACEOF
12696
12697
12698 cat >>confdefs.h <<_ACEOF
12699 #define SPEEX_EXTRA_VERSION "${SPEEX_EXTRA_VERSION}"
12700 _ACEOF
12701
12702
12703 # Check whether --enable-valgrind was given.
12704 if test "${enable_valgrind+set}" = set; then
12705   enableval=$enable_valgrind; if test "$enableval" = yes; then
12706
12707 cat >>confdefs.h <<\_ACEOF
12708 #define ENABLE_VALGRIND
12709 _ACEOF
12710
12711 fi
12712 fi
12713
12714
12715 # Check whether --enable-sse was given.
12716 if test "${enable_sse+set}" = set; then
12717   enableval=$enable_sse;
12718 if test "x$enableval" != xno; then
12719 has_sse=yes
12720 CFLAGS="$CFLAGS -O3 -msse"
12721 else
12722 has_sse=no
12723 fi
12724
12725 fi
12726
12727
12728
12729 FFT=smallft
12730
12731 # Check whether --enable-fixed-point was given.
12732 if test "${enable_fixed_point+set}" = set; then
12733   enableval=$enable_fixed_point; if test "$enableval" = yes; then
12734   FFT=kiss
12735   has_sse=no
12736
12737 cat >>confdefs.h <<\_ACEOF
12738 #define FIXED_POINT
12739 _ACEOF
12740
12741 else
12742
12743 cat >>confdefs.h <<\_ACEOF
12744 #define FLOATING_POINT
12745 _ACEOF
12746
12747 fi
12748 else
12749
12750 cat >>confdefs.h <<\_ACEOF
12751 #define FLOATING_POINT
12752 _ACEOF
12753
12754 fi
12755
12756
12757 if test "$has_sse" = yes; then
12758
12759 cat >>confdefs.h <<\_ACEOF
12760 #define _USE_SSE
12761 _ACEOF
12762
12763 fi
12764
12765 # Check whether --enable-float-api was given.
12766 if test "${enable_float_api+set}" = set; then
12767   enableval=$enable_float_api; if test "$enableval" = no; then
12768
12769 cat >>confdefs.h <<\_ACEOF
12770 #define DISABLE_FLOAT_API
12771 _ACEOF
12772
12773 fi
12774 fi
12775
12776
12777 # Check whether --enable-vbr was given.
12778 if test "${enable_vbr+set}" = set; then
12779   enableval=$enable_vbr; if test "$enableval" = no; then
12780
12781 cat >>confdefs.h <<\_ACEOF
12782 #define DISABLE_VBR
12783 _ACEOF
12784
12785 fi
12786 fi
12787
12788
12789 # Check whether --enable-arm4-asm was given.
12790 if test "${enable_arm4_asm+set}" = set; then
12791   enableval=$enable_arm4_asm; if test "$enableval" = yes; then
12792
12793 cat >>confdefs.h <<\_ACEOF
12794 #define ARM4_ASM
12795 _ACEOF
12796
12797 fi
12798 fi
12799
12800
12801 # Check whether --enable-arm5e-asm was given.
12802 if test "${enable_arm5e_asm+set}" = set; then
12803   enableval=$enable_arm5e_asm; if test "$enableval" = yes; then
12804
12805 cat >>confdefs.h <<\_ACEOF
12806 #define ARM5E_ASM
12807 _ACEOF
12808
12809 fi
12810 fi
12811
12812
12813 # Check whether --enable-blackfin-asm was given.
12814 if test "${enable_blackfin_asm+set}" = set; then
12815   enableval=$enable_blackfin_asm; if test "$enableval" = yes; then
12816
12817 cat >>confdefs.h <<\_ACEOF
12818 #define BFIN_ASM
12819 _ACEOF
12820
12821   LDFLAGS="-Wl,-elf2flt=-s100000"
12822 fi
12823 fi
12824
12825
12826 # Check whether --enable-fixed-point-debug was given.
12827 if test "${enable_fixed_point_debug+set}" = set; then
12828   enableval=$enable_fixed_point_debug; if test "$enableval" = yes; then
12829
12830 cat >>confdefs.h <<\_ACEOF
12831 #define FIXED_DEBUG
12832 _ACEOF
12833
12834 fi
12835 fi
12836
12837
12838 # Check whether --enable-ti-c55x was given.
12839 if test "${enable_ti_c55x+set}" = set; then
12840   enableval=$enable_ti_c55x; if test "$enableval" = yes; then
12841   has_char16=yes;
12842
12843 cat >>confdefs.h <<\_ACEOF
12844 #define TI_C55X
12845 _ACEOF
12846
12847 fi
12848 fi
12849
12850
12851
12852 # Check whether --with-fft was given.
12853 if test "${with_fft+set}" = set; then
12854   withval=$with_fft; FFT=$withval
12855
12856 fi
12857
12858
12859 FFT_PKGCONFIG=
12860
12861
12862 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12863         if test -n "$ac_tool_prefix"; then
12864   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12865 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12866 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12868 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12869   echo $ECHO_N "(cached) $ECHO_C" >&6
12870 else
12871   case $PKG_CONFIG in
12872   [\\/]* | ?:[\\/]*)
12873   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12874   ;;
12875   *)
12876   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12877 for as_dir in $PATH
12878 do
12879   IFS=$as_save_IFS
12880   test -z "$as_dir" && as_dir=.
12881   for ac_exec_ext in '' $ac_executable_extensions; do
12882   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12883     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12884     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12885     break 2
12886   fi
12887 done
12888 done
12889 IFS=$as_save_IFS
12890
12891   ;;
12892 esac
12893 fi
12894 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12895 if test -n "$PKG_CONFIG"; then
12896   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12897 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12898 else
12899   { echo "$as_me:$LINENO: result: no" >&5
12900 echo "${ECHO_T}no" >&6; }
12901 fi
12902
12903
12904 fi
12905 if test -z "$ac_cv_path_PKG_CONFIG"; then
12906   ac_pt_PKG_CONFIG=$PKG_CONFIG
12907   # Extract the first word of "pkg-config", so it can be a program name with args.
12908 set dummy pkg-config; ac_word=$2
12909 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12911 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
12912   echo $ECHO_N "(cached) $ECHO_C" >&6
12913 else
12914   case $ac_pt_PKG_CONFIG in
12915   [\\/]* | ?:[\\/]*)
12916   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12917   ;;
12918   *)
12919   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12920 for as_dir in $PATH
12921 do
12922   IFS=$as_save_IFS
12923   test -z "$as_dir" && as_dir=.
12924   for ac_exec_ext in '' $ac_executable_extensions; do
12925   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12926     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12927     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12928     break 2
12929   fi
12930 done
12931 done
12932 IFS=$as_save_IFS
12933
12934   ;;
12935 esac
12936 fi
12937 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12938 if test -n "$ac_pt_PKG_CONFIG"; then
12939   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
12940 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
12941 else
12942   { echo "$as_me:$LINENO: result: no" >&5
12943 echo "${ECHO_T}no" >&6; }
12944 fi
12945
12946   if test "x$ac_pt_PKG_CONFIG" = x; then
12947     PKG_CONFIG=""
12948   else
12949     case $cross_compiling:$ac_tool_warned in
12950 yes:)
12951 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12952 whose name does not start with the host triplet.  If you think this
12953 configuration is useful to you, please write to autoconf@gnu.org." >&5
12954 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12955 whose name does not start with the host triplet.  If you think this
12956 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12957 ac_tool_warned=yes ;;
12958 esac
12959     PKG_CONFIG=$ac_pt_PKG_CONFIG
12960   fi
12961 else
12962   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12963 fi
12964
12965 fi
12966 if test -n "$PKG_CONFIG"; then
12967         _pkg_min_version=0.9.0
12968         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
12969 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
12970         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12971                 { echo "$as_me:$LINENO: result: yes" >&5
12972 echo "${ECHO_T}yes" >&6; }
12973         else
12974                 { echo "$as_me:$LINENO: result: no" >&5
12975 echo "${ECHO_T}no" >&6; }
12976                 PKG_CONFIG=""
12977         fi
12978
12979 fi
12980 case $FFT in
12981   kiss)
12982
12983 cat >>confdefs.h <<\_ACEOF
12984 #define USE_KISS_FFT
12985 _ACEOF
12986
12987   ;;
12988   smallft)
12989
12990 cat >>confdefs.h <<\_ACEOF
12991 #define USE_SMALLFT
12992 _ACEOF
12993
12994   ;;
12995   gpl-fftw3)
12996
12997 cat >>confdefs.h <<\_ACEOF
12998 #define USE_GPL_FFTW3
12999 _ACEOF
13000
13001
13002 pkg_failed=no
13003 { echo "$as_me:$LINENO: checking for FFT" >&5
13004 echo $ECHO_N "checking for FFT... $ECHO_C" >&6; }
13005
13006 if test -n "$PKG_CONFIG"; then
13007     if test -n "$FFT_CFLAGS"; then
13008         pkg_cv_FFT_CFLAGS="$FFT_CFLAGS"
13009     else
13010         if test -n "$PKG_CONFIG" && \
13011     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fftw3f\"") >&5
13012   ($PKG_CONFIG --exists --print-errors "fftw3f") 2>&5
13013   ac_status=$?
13014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13015   (exit $ac_status); }; then
13016   pkg_cv_FFT_CFLAGS=`$PKG_CONFIG --cflags "fftw3f" 2>/dev/null`
13017 else
13018   pkg_failed=yes
13019 fi
13020     fi
13021 else
13022         pkg_failed=untried
13023 fi
13024 if test -n "$PKG_CONFIG"; then
13025     if test -n "$FFT_LIBS"; then
13026         pkg_cv_FFT_LIBS="$FFT_LIBS"
13027     else
13028         if test -n "$PKG_CONFIG" && \
13029     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fftw3f\"") >&5
13030   ($PKG_CONFIG --exists --print-errors "fftw3f") 2>&5
13031   ac_status=$?
13032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13033   (exit $ac_status); }; then
13034   pkg_cv_FFT_LIBS=`$PKG_CONFIG --libs "fftw3f" 2>/dev/null`
13035 else
13036   pkg_failed=yes
13037 fi
13038     fi
13039 else
13040         pkg_failed=untried
13041 fi
13042
13043
13044
13045 if test $pkg_failed = yes; then
13046
13047 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13048         _pkg_short_errors_supported=yes
13049 else
13050         _pkg_short_errors_supported=no
13051 fi
13052         if test $_pkg_short_errors_supported = yes; then
13053                 FFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "fftw3f"`
13054         else
13055                 FFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fftw3f"`
13056         fi
13057         # Put the nasty error message in config.log where it belongs
13058         echo "$FFT_PKG_ERRORS" >&5
13059
13060         { { echo "$as_me:$LINENO: error: Package requirements (fftw3f) were not met:
13061
13062 $FFT_PKG_ERRORS
13063
13064 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13065 installed software in a non-standard prefix.
13066
13067 Alternatively, you may set the environment variables FFT_CFLAGS
13068 and FFT_LIBS to avoid the need to call pkg-config.
13069 See the pkg-config man page for more details.
13070 " >&5
13071 echo "$as_me: error: Package requirements (fftw3f) were not met:
13072
13073 $FFT_PKG_ERRORS
13074
13075 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13076 installed software in a non-standard prefix.
13077
13078 Alternatively, you may set the environment variables FFT_CFLAGS
13079 and FFT_LIBS to avoid the need to call pkg-config.
13080 See the pkg-config man page for more details.
13081 " >&2;}
13082    { (exit 1); exit 1; }; }
13083 elif test $pkg_failed = untried; then
13084         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
13085 is in your PATH or set the PKG_CONFIG environment variable to the full
13086 path to pkg-config.
13087
13088 Alternatively, you may set the environment variables FFT_CFLAGS
13089 and FFT_LIBS to avoid the need to call pkg-config.
13090 See the pkg-config man page for more details.
13091
13092 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
13093 See \`config.log' for more details." >&5
13094 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
13095 is in your PATH or set the PKG_CONFIG environment variable to the full
13096 path to pkg-config.
13097
13098 Alternatively, you may set the environment variables FFT_CFLAGS
13099 and FFT_LIBS to avoid the need to call pkg-config.
13100 See the pkg-config man page for more details.
13101
13102 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
13103 See \`config.log' for more details." >&2;}
13104    { (exit 1); exit 1; }; }
13105 else
13106         FFT_CFLAGS=$pkg_cv_FFT_CFLAGS
13107         FFT_LIBS=$pkg_cv_FFT_LIBS
13108         { echo "$as_me:$LINENO: result: yes" >&5
13109 echo "${ECHO_T}yes" >&6; }
13110         :
13111 fi
13112   ;;
13113   proprietary-intel-mkl)
13114
13115 cat >>confdefs.h <<\_ACEOF
13116 #define USE_INTEL_MKL
13117 _ACEOF
13118
13119   { echo "$as_me:$LINENO: checking for valid MKL" >&5
13120 echo $ECHO_N "checking for valid MKL... $ECHO_C" >&6; }
13121   cat >conftest.$ac_ext <<_ACEOF
13122
13123    /* confdefs.h.  */
13124 _ACEOF
13125 cat confdefs.h >>conftest.$ac_ext
13126 cat >>conftest.$ac_ext <<_ACEOF
13127 /* end confdefs.h.  */
13128
13129 #include <mkl.h>
13130 void func() {
13131   DFTI_DESCRIPTOR_HANDLE h;
13132   MKL_LONG result=DftiCreateDescriptor(&h, DFTI_SINGLE, DFTI_REAL, 0);
13133 }
13134 int
13135 main ()
13136 {
13137
13138   ;
13139   return 0;
13140 }
13141 _ACEOF
13142 rm -f conftest.$ac_objext conftest$ac_exeext
13143 if { (ac_try="$ac_link"
13144 case "(($ac_try" in
13145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13146   *) ac_try_echo=$ac_try;;
13147 esac
13148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13149   (eval "$ac_link") 2>conftest.er1
13150   ac_status=$?
13151   grep -v '^ *+' conftest.er1 >conftest.err
13152   rm -f conftest.er1
13153   cat conftest.err >&5
13154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155   (exit $ac_status); } && {
13156          test -z "$ac_c_werror_flag" ||
13157          test ! -s conftest.err
13158        } && test -s conftest$ac_exeext &&
13159        $as_test_x conftest$ac_exeext; then
13160   { echo "$as_me:$LINENO: result: yes" >&5
13161 echo "${ECHO_T}yes" >&6; }
13162 else
13163   echo "$as_me: failed program was:" >&5
13164 sed 's/^/| /' conftest.$ac_ext >&5
13165
13166         { { echo "$as_me:$LINENO: error: Failed to compile MKL test program. Make sure you set CFLAGS to include the include directory and set LDFLAGS to include the library directory and all necesarry libraries.
13167 See \`config.log' for more details." >&5
13168 echo "$as_me: error: Failed to compile MKL test program. Make sure you set CFLAGS to include the include directory and set LDFLAGS to include the library directory and all necesarry libraries.
13169 See \`config.log' for more details." >&2;}
13170    { (exit 1); exit 1; }; }
13171
13172 fi
13173
13174 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13175       conftest$ac_exeext conftest.$ac_ext
13176   ;;
13177   *) { { echo "$as_me:$LINENO: error: Unknown FFT $FFT specified for --with-fft
13178 See \`config.log' for more details." >&5
13179 echo "$as_me: error: Unknown FFT $FFT specified for --with-fft
13180 See \`config.log' for more details." >&2;}
13181    { (exit 1); exit 1; }; }
13182  ;;
13183 esac
13184
13185
13186
13187 if test "$FFT" = "kiss"; then
13188   BUILD_KISS_FFT_TRUE=
13189   BUILD_KISS_FFT_FALSE='#'
13190 else
13191   BUILD_KISS_FFT_TRUE='#'
13192   BUILD_KISS_FFT_FALSE=
13193 fi
13194
13195
13196
13197 if test "$FFT" = "smallft"; then
13198   BUILD_SMALLFT_TRUE=
13199   BUILD_SMALLFT_FALSE='#'
13200 else
13201   BUILD_SMALLFT_TRUE='#'
13202   BUILD_SMALLFT_FALSE=
13203 fi
13204
13205
13206
13207
13208 { echo "$as_me:$LINENO: checking for short" >&5
13209 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
13210 if test "${ac_cv_type_short+set}" = set; then
13211   echo $ECHO_N "(cached) $ECHO_C" >&6
13212 else
13213   cat >conftest.$ac_ext <<_ACEOF
13214 /* confdefs.h.  */
13215 _ACEOF
13216 cat confdefs.h >>conftest.$ac_ext
13217 cat >>conftest.$ac_ext <<_ACEOF
13218 /* end confdefs.h.  */
13219 $ac_includes_default
13220 typedef short ac__type_new_;
13221 int
13222 main ()
13223 {
13224 if ((ac__type_new_ *) 0)
13225   return 0;
13226 if (sizeof (ac__type_new_))
13227   return 0;
13228   ;
13229   return 0;
13230 }
13231 _ACEOF
13232 rm -f conftest.$ac_objext
13233 if { (ac_try="$ac_compile"
13234 case "(($ac_try" in
13235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13236   *) ac_try_echo=$ac_try;;
13237 esac
13238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13239   (eval "$ac_compile") 2>conftest.er1
13240   ac_status=$?
13241   grep -v '^ *+' conftest.er1 >conftest.err
13242   rm -f conftest.er1
13243   cat conftest.err >&5
13244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245   (exit $ac_status); } && {
13246          test -z "$ac_c_werror_flag" ||
13247          test ! -s conftest.err
13248        } && test -s conftest.$ac_objext; then
13249   ac_cv_type_short=yes
13250 else
13251   echo "$as_me: failed program was:" >&5
13252 sed 's/^/| /' conftest.$ac_ext >&5
13253
13254         ac_cv_type_short=no
13255 fi
13256
13257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13258 fi
13259 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
13260 echo "${ECHO_T}$ac_cv_type_short" >&6; }
13261
13262 # The cast to long int works around a bug in the HP C Compiler
13263 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13264 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13265 # This bug is HP SR number 8606223364.
13266 { echo "$as_me:$LINENO: checking size of short" >&5
13267 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
13268 if test "${ac_cv_sizeof_short+set}" = set; then
13269   echo $ECHO_N "(cached) $ECHO_C" >&6
13270 else
13271   if test "$cross_compiling" = yes; then
13272   # Depending upon the size, compute the lo and hi bounds.
13273 cat >conftest.$ac_ext <<_ACEOF
13274 /* confdefs.h.  */
13275 _ACEOF
13276 cat confdefs.h >>conftest.$ac_ext
13277 cat >>conftest.$ac_ext <<_ACEOF
13278 /* end confdefs.h.  */
13279 $ac_includes_default
13280    typedef short ac__type_sizeof_;
13281 int
13282 main ()
13283 {
13284 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13285 test_array [0] = 0
13286
13287   ;
13288   return 0;
13289 }
13290 _ACEOF
13291 rm -f conftest.$ac_objext
13292 if { (ac_try="$ac_compile"
13293 case "(($ac_try" in
13294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13295   *) ac_try_echo=$ac_try;;
13296 esac
13297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13298   (eval "$ac_compile") 2>conftest.er1
13299   ac_status=$?
13300   grep -v '^ *+' conftest.er1 >conftest.err
13301   rm -f conftest.er1
13302   cat conftest.err >&5
13303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304   (exit $ac_status); } && {
13305          test -z "$ac_c_werror_flag" ||
13306          test ! -s conftest.err
13307        } && test -s conftest.$ac_objext; then
13308   ac_lo=0 ac_mid=0
13309   while :; do
13310     cat >conftest.$ac_ext <<_ACEOF
13311 /* confdefs.h.  */
13312 _ACEOF
13313 cat confdefs.h >>conftest.$ac_ext
13314 cat >>conftest.$ac_ext <<_ACEOF
13315 /* end confdefs.h.  */
13316 $ac_includes_default
13317    typedef short ac__type_sizeof_;
13318 int
13319 main ()
13320 {
13321 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13322 test_array [0] = 0
13323
13324   ;
13325   return 0;
13326 }
13327 _ACEOF
13328 rm -f conftest.$ac_objext
13329 if { (ac_try="$ac_compile"
13330 case "(($ac_try" in
13331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13332   *) ac_try_echo=$ac_try;;
13333 esac
13334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13335   (eval "$ac_compile") 2>conftest.er1
13336   ac_status=$?
13337   grep -v '^ *+' conftest.er1 >conftest.err
13338   rm -f conftest.er1
13339   cat conftest.err >&5
13340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341   (exit $ac_status); } && {
13342          test -z "$ac_c_werror_flag" ||
13343          test ! -s conftest.err
13344        } && test -s conftest.$ac_objext; then
13345   ac_hi=$ac_mid; break
13346 else
13347   echo "$as_me: failed program was:" >&5
13348 sed 's/^/| /' conftest.$ac_ext >&5
13349
13350         ac_lo=`expr $ac_mid + 1`
13351                         if test $ac_lo -le $ac_mid; then
13352                           ac_lo= ac_hi=
13353                           break
13354                         fi
13355                         ac_mid=`expr 2 '*' $ac_mid + 1`
13356 fi
13357
13358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13359   done
13360 else
13361   echo "$as_me: failed program was:" >&5
13362 sed 's/^/| /' conftest.$ac_ext >&5
13363
13364         cat >conftest.$ac_ext <<_ACEOF
13365 /* confdefs.h.  */
13366 _ACEOF
13367 cat confdefs.h >>conftest.$ac_ext
13368 cat >>conftest.$ac_ext <<_ACEOF
13369 /* end confdefs.h.  */
13370 $ac_includes_default
13371    typedef short ac__type_sizeof_;
13372 int
13373 main ()
13374 {
13375 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13376 test_array [0] = 0
13377
13378   ;
13379   return 0;
13380 }
13381 _ACEOF
13382 rm -f conftest.$ac_objext
13383 if { (ac_try="$ac_compile"
13384 case "(($ac_try" in
13385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13386   *) ac_try_echo=$ac_try;;
13387 esac
13388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13389   (eval "$ac_compile") 2>conftest.er1
13390   ac_status=$?
13391   grep -v '^ *+' conftest.er1 >conftest.err
13392   rm -f conftest.er1
13393   cat conftest.err >&5
13394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395   (exit $ac_status); } && {
13396          test -z "$ac_c_werror_flag" ||
13397          test ! -s conftest.err
13398        } && test -s conftest.$ac_objext; then
13399   ac_hi=-1 ac_mid=-1
13400   while :; do
13401     cat >conftest.$ac_ext <<_ACEOF
13402 /* confdefs.h.  */
13403 _ACEOF
13404 cat confdefs.h >>conftest.$ac_ext
13405 cat >>conftest.$ac_ext <<_ACEOF
13406 /* end confdefs.h.  */
13407 $ac_includes_default
13408    typedef short ac__type_sizeof_;
13409 int
13410 main ()
13411 {
13412 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13413 test_array [0] = 0
13414
13415   ;
13416   return 0;
13417 }
13418 _ACEOF
13419 rm -f conftest.$ac_objext
13420 if { (ac_try="$ac_compile"
13421 case "(($ac_try" in
13422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13423   *) ac_try_echo=$ac_try;;
13424 esac
13425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13426   (eval "$ac_compile") 2>conftest.er1
13427   ac_status=$?
13428   grep -v '^ *+' conftest.er1 >conftest.err
13429   rm -f conftest.er1
13430   cat conftest.err >&5
13431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13432   (exit $ac_status); } && {
13433          test -z "$ac_c_werror_flag" ||
13434          test ! -s conftest.err
13435        } && test -s conftest.$ac_objext; then
13436   ac_lo=$ac_mid; break
13437 else
13438   echo "$as_me: failed program was:" >&5
13439 sed 's/^/| /' conftest.$ac_ext >&5
13440
13441         ac_hi=`expr '(' $ac_mid ')' - 1`
13442                         if test $ac_mid -le $ac_hi; then
13443                           ac_lo= ac_hi=
13444                           break
13445                         fi
13446                         ac_mid=`expr 2 '*' $ac_mid`
13447 fi
13448
13449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13450   done
13451 else
13452   echo "$as_me: failed program was:" >&5
13453 sed 's/^/| /' conftest.$ac_ext >&5
13454
13455         ac_lo= ac_hi=
13456 fi
13457
13458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13459 fi
13460
13461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13462 # Binary search between lo and hi bounds.
13463 while test "x$ac_lo" != "x$ac_hi"; do
13464   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13465   cat >conftest.$ac_ext <<_ACEOF
13466 /* confdefs.h.  */
13467 _ACEOF
13468 cat confdefs.h >>conftest.$ac_ext
13469 cat >>conftest.$ac_ext <<_ACEOF
13470 /* end confdefs.h.  */
13471 $ac_includes_default
13472    typedef short ac__type_sizeof_;
13473 int
13474 main ()
13475 {
13476 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13477 test_array [0] = 0
13478
13479   ;
13480   return 0;
13481 }
13482 _ACEOF
13483 rm -f conftest.$ac_objext
13484 if { (ac_try="$ac_compile"
13485 case "(($ac_try" in
13486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13487   *) ac_try_echo=$ac_try;;
13488 esac
13489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13490   (eval "$ac_compile") 2>conftest.er1
13491   ac_status=$?
13492   grep -v '^ *+' conftest.er1 >conftest.err
13493   rm -f conftest.er1
13494   cat conftest.err >&5
13495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496   (exit $ac_status); } && {
13497          test -z "$ac_c_werror_flag" ||
13498          test ! -s conftest.err
13499        } && test -s conftest.$ac_objext; then
13500   ac_hi=$ac_mid
13501 else
13502   echo "$as_me: failed program was:" >&5
13503 sed 's/^/| /' conftest.$ac_ext >&5
13504
13505         ac_lo=`expr '(' $ac_mid ')' + 1`
13506 fi
13507
13508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13509 done
13510 case $ac_lo in
13511 ?*) ac_cv_sizeof_short=$ac_lo;;
13512 '') if test "$ac_cv_type_short" = yes; then
13513      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
13514 See \`config.log' for more details." >&5
13515 echo "$as_me: error: cannot compute sizeof (short)
13516 See \`config.log' for more details." >&2;}
13517    { (exit 77); exit 77; }; }
13518    else
13519      ac_cv_sizeof_short=0
13520    fi ;;
13521 esac
13522 else
13523   cat >conftest.$ac_ext <<_ACEOF
13524 /* confdefs.h.  */
13525 _ACEOF
13526 cat confdefs.h >>conftest.$ac_ext
13527 cat >>conftest.$ac_ext <<_ACEOF
13528 /* end confdefs.h.  */
13529 $ac_includes_default
13530    typedef short ac__type_sizeof_;
13531 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13532 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13533 #include <stdio.h>
13534 #include <stdlib.h>
13535 int
13536 main ()
13537 {
13538
13539   FILE *f = fopen ("conftest.val", "w");
13540   if (! f)
13541     return 1;
13542   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13543     {
13544       long int i = longval ();
13545       if (i != ((long int) (sizeof (ac__type_sizeof_))))
13546         return 1;
13547       fprintf (f, "%ld\n", i);
13548     }
13549   else
13550     {
13551       unsigned long int i = ulongval ();
13552       if (i != ((long int) (sizeof (ac__type_sizeof_))))
13553         return 1;
13554       fprintf (f, "%lu\n", i);
13555     }
13556   return ferror (f) || fclose (f) != 0;
13557
13558   ;
13559   return 0;
13560 }
13561 _ACEOF
13562 rm -f conftest$ac_exeext
13563 if { (ac_try="$ac_link"
13564 case "(($ac_try" in
13565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13566   *) ac_try_echo=$ac_try;;
13567 esac
13568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13569   (eval "$ac_link") 2>&5
13570   ac_status=$?
13571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13573   { (case "(($ac_try" in
13574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13575   *) ac_try_echo=$ac_try;;
13576 esac
13577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13578   (eval "$ac_try") 2>&5
13579   ac_status=$?
13580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581   (exit $ac_status); }; }; then
13582   ac_cv_sizeof_short=`cat conftest.val`
13583 else
13584   echo "$as_me: program exited with status $ac_status" >&5
13585 echo "$as_me: failed program was:" >&5
13586 sed 's/^/| /' conftest.$ac_ext >&5
13587
13588 ( exit $ac_status )
13589 if test "$ac_cv_type_short" = yes; then
13590      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
13591 See \`config.log' for more details." >&5
13592 echo "$as_me: error: cannot compute sizeof (short)
13593 See \`config.log' for more details." >&2;}
13594    { (exit 77); exit 77; }; }
13595    else
13596      ac_cv_sizeof_short=0
13597    fi
13598 fi
13599 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13600 fi
13601 rm -f conftest.val
13602 fi
13603 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
13604 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
13605
13606
13607
13608 cat >>confdefs.h <<_ACEOF
13609 #define SIZEOF_SHORT $ac_cv_sizeof_short
13610 _ACEOF
13611
13612
13613 { echo "$as_me:$LINENO: checking for int" >&5
13614 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
13615 if test "${ac_cv_type_int+set}" = set; then
13616   echo $ECHO_N "(cached) $ECHO_C" >&6
13617 else
13618   cat >conftest.$ac_ext <<_ACEOF
13619 /* confdefs.h.  */
13620 _ACEOF
13621 cat confdefs.h >>conftest.$ac_ext
13622 cat >>conftest.$ac_ext <<_ACEOF
13623 /* end confdefs.h.  */
13624 $ac_includes_default
13625 typedef int ac__type_new_;
13626 int
13627 main ()
13628 {
13629 if ((ac__type_new_ *) 0)
13630   return 0;
13631 if (sizeof (ac__type_new_))
13632   return 0;
13633   ;
13634   return 0;
13635 }
13636 _ACEOF
13637 rm -f conftest.$ac_objext
13638 if { (ac_try="$ac_compile"
13639 case "(($ac_try" in
13640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13641   *) ac_try_echo=$ac_try;;
13642 esac
13643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13644   (eval "$ac_compile") 2>conftest.er1
13645   ac_status=$?
13646   grep -v '^ *+' conftest.er1 >conftest.err
13647   rm -f conftest.er1
13648   cat conftest.err >&5
13649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650   (exit $ac_status); } && {
13651          test -z "$ac_c_werror_flag" ||
13652          test ! -s conftest.err
13653        } && test -s conftest.$ac_objext; then
13654   ac_cv_type_int=yes
13655 else
13656   echo "$as_me: failed program was:" >&5
13657 sed 's/^/| /' conftest.$ac_ext >&5
13658
13659         ac_cv_type_int=no
13660 fi
13661
13662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13663 fi
13664 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13665 echo "${ECHO_T}$ac_cv_type_int" >&6; }
13666
13667 # The cast to long int works around a bug in the HP C Compiler
13668 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13669 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13670 # This bug is HP SR number 8606223364.
13671 { echo "$as_me:$LINENO: checking size of int" >&5
13672 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
13673 if test "${ac_cv_sizeof_int+set}" = set; then
13674   echo $ECHO_N "(cached) $ECHO_C" >&6
13675 else
13676   if test "$cross_compiling" = yes; then
13677   # Depending upon the size, compute the lo and hi bounds.
13678 cat >conftest.$ac_ext <<_ACEOF
13679 /* confdefs.h.  */
13680 _ACEOF
13681 cat confdefs.h >>conftest.$ac_ext
13682 cat >>conftest.$ac_ext <<_ACEOF
13683 /* end confdefs.h.  */
13684 $ac_includes_default
13685    typedef int ac__type_sizeof_;
13686 int
13687 main ()
13688 {
13689 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13690 test_array [0] = 0
13691
13692   ;
13693   return 0;
13694 }
13695 _ACEOF
13696 rm -f conftest.$ac_objext
13697 if { (ac_try="$ac_compile"
13698 case "(($ac_try" in
13699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13700   *) ac_try_echo=$ac_try;;
13701 esac
13702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13703   (eval "$ac_compile") 2>conftest.er1
13704   ac_status=$?
13705   grep -v '^ *+' conftest.er1 >conftest.err
13706   rm -f conftest.er1
13707   cat conftest.err >&5
13708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709   (exit $ac_status); } && {
13710          test -z "$ac_c_werror_flag" ||
13711          test ! -s conftest.err
13712        } && test -s conftest.$ac_objext; then
13713   ac_lo=0 ac_mid=0
13714   while :; do
13715     cat >conftest.$ac_ext <<_ACEOF
13716 /* confdefs.h.  */
13717 _ACEOF
13718 cat confdefs.h >>conftest.$ac_ext
13719 cat >>conftest.$ac_ext <<_ACEOF
13720 /* end confdefs.h.  */
13721 $ac_includes_default
13722    typedef int ac__type_sizeof_;
13723 int
13724 main ()
13725 {
13726 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13727 test_array [0] = 0
13728
13729   ;
13730   return 0;
13731 }
13732 _ACEOF
13733 rm -f conftest.$ac_objext
13734 if { (ac_try="$ac_compile"
13735 case "(($ac_try" in
13736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13737   *) ac_try_echo=$ac_try;;
13738 esac
13739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13740   (eval "$ac_compile") 2>conftest.er1
13741   ac_status=$?
13742   grep -v '^ *+' conftest.er1 >conftest.err
13743   rm -f conftest.er1
13744   cat conftest.err >&5
13745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746   (exit $ac_status); } && {
13747          test -z "$ac_c_werror_flag" ||
13748          test ! -s conftest.err
13749        } && test -s conftest.$ac_objext; then
13750   ac_hi=$ac_mid; break
13751 else
13752   echo "$as_me: failed program was:" >&5
13753 sed 's/^/| /' conftest.$ac_ext >&5
13754
13755         ac_lo=`expr $ac_mid + 1`
13756                         if test $ac_lo -le $ac_mid; then
13757                           ac_lo= ac_hi=
13758                           break
13759                         fi
13760                         ac_mid=`expr 2 '*' $ac_mid + 1`
13761 fi
13762
13763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13764   done
13765 else
13766   echo "$as_me: failed program was:" >&5
13767 sed 's/^/| /' conftest.$ac_ext >&5
13768
13769         cat >conftest.$ac_ext <<_ACEOF
13770 /* confdefs.h.  */
13771 _ACEOF
13772 cat confdefs.h >>conftest.$ac_ext
13773 cat >>conftest.$ac_ext <<_ACEOF
13774 /* end confdefs.h.  */
13775 $ac_includes_default
13776    typedef int ac__type_sizeof_;
13777 int
13778 main ()
13779 {
13780 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13781 test_array [0] = 0
13782
13783   ;
13784   return 0;
13785 }
13786 _ACEOF
13787 rm -f conftest.$ac_objext
13788 if { (ac_try="$ac_compile"
13789 case "(($ac_try" in
13790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13791   *) ac_try_echo=$ac_try;;
13792 esac
13793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13794   (eval "$ac_compile") 2>conftest.er1
13795   ac_status=$?
13796   grep -v '^ *+' conftest.er1 >conftest.err
13797   rm -f conftest.er1
13798   cat conftest.err >&5
13799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800   (exit $ac_status); } && {
13801          test -z "$ac_c_werror_flag" ||
13802          test ! -s conftest.err
13803        } && test -s conftest.$ac_objext; then
13804   ac_hi=-1 ac_mid=-1
13805   while :; do
13806     cat >conftest.$ac_ext <<_ACEOF
13807 /* confdefs.h.  */
13808 _ACEOF
13809 cat confdefs.h >>conftest.$ac_ext
13810 cat >>conftest.$ac_ext <<_ACEOF
13811 /* end confdefs.h.  */
13812 $ac_includes_default
13813    typedef int ac__type_sizeof_;
13814 int
13815 main ()
13816 {
13817 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13818 test_array [0] = 0
13819
13820   ;
13821   return 0;
13822 }
13823 _ACEOF
13824 rm -f conftest.$ac_objext
13825 if { (ac_try="$ac_compile"
13826 case "(($ac_try" in
13827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13828   *) ac_try_echo=$ac_try;;
13829 esac
13830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13831   (eval "$ac_compile") 2>conftest.er1
13832   ac_status=$?
13833   grep -v '^ *+' conftest.er1 >conftest.err
13834   rm -f conftest.er1
13835   cat conftest.err >&5
13836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837   (exit $ac_status); } && {
13838          test -z "$ac_c_werror_flag" ||
13839          test ! -s conftest.err
13840        } && test -s conftest.$ac_objext; then
13841   ac_lo=$ac_mid; break
13842 else
13843   echo "$as_me: failed program was:" >&5
13844 sed 's/^/| /' conftest.$ac_ext >&5
13845
13846         ac_hi=`expr '(' $ac_mid ')' - 1`
13847                         if test $ac_mid -le $ac_hi; then
13848                           ac_lo= ac_hi=
13849                           break
13850                         fi
13851                         ac_mid=`expr 2 '*' $ac_mid`
13852 fi
13853
13854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13855   done
13856 else
13857   echo "$as_me: failed program was:" >&5
13858 sed 's/^/| /' conftest.$ac_ext >&5
13859
13860         ac_lo= ac_hi=
13861 fi
13862
13863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13864 fi
13865
13866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13867 # Binary search between lo and hi bounds.
13868 while test "x$ac_lo" != "x$ac_hi"; do
13869   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13870   cat >conftest.$ac_ext <<_ACEOF
13871 /* confdefs.h.  */
13872 _ACEOF
13873 cat confdefs.h >>conftest.$ac_ext
13874 cat >>conftest.$ac_ext <<_ACEOF
13875 /* end confdefs.h.  */
13876 $ac_includes_default
13877    typedef int ac__type_sizeof_;
13878 int
13879 main ()
13880 {
13881 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13882 test_array [0] = 0
13883
13884   ;
13885   return 0;
13886 }
13887 _ACEOF
13888 rm -f conftest.$ac_objext
13889 if { (ac_try="$ac_compile"
13890 case "(($ac_try" in
13891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13892   *) ac_try_echo=$ac_try;;
13893 esac
13894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13895   (eval "$ac_compile") 2>conftest.er1
13896   ac_status=$?
13897   grep -v '^ *+' conftest.er1 >conftest.err
13898   rm -f conftest.er1
13899   cat conftest.err >&5
13900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901   (exit $ac_status); } && {
13902          test -z "$ac_c_werror_flag" ||
13903          test ! -s conftest.err
13904        } && test -s conftest.$ac_objext; then
13905   ac_hi=$ac_mid
13906 else
13907   echo "$as_me: failed program was:" >&5
13908 sed 's/^/| /' conftest.$ac_ext >&5
13909
13910         ac_lo=`expr '(' $ac_mid ')' + 1`
13911 fi
13912
13913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13914 done
13915 case $ac_lo in
13916 ?*) ac_cv_sizeof_int=$ac_lo;;
13917 '') if test "$ac_cv_type_int" = yes; then
13918      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
13919 See \`config.log' for more details." >&5
13920 echo "$as_me: error: cannot compute sizeof (int)
13921 See \`config.log' for more details." >&2;}
13922    { (exit 77); exit 77; }; }
13923    else
13924      ac_cv_sizeof_int=0
13925    fi ;;
13926 esac
13927 else
13928   cat >conftest.$ac_ext <<_ACEOF
13929 /* confdefs.h.  */
13930 _ACEOF
13931 cat confdefs.h >>conftest.$ac_ext
13932 cat >>conftest.$ac_ext <<_ACEOF
13933 /* end confdefs.h.  */
13934 $ac_includes_default
13935    typedef int ac__type_sizeof_;
13936 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13937 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13938 #include <stdio.h>
13939 #include <stdlib.h>
13940 int
13941 main ()
13942 {
13943
13944   FILE *f = fopen ("conftest.val", "w");
13945   if (! f)
13946     return 1;
13947   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13948     {
13949       long int i = longval ();
13950       if (i != ((long int) (sizeof (ac__type_sizeof_))))
13951         return 1;
13952       fprintf (f, "%ld\n", i);
13953     }
13954   else
13955     {
13956       unsigned long int i = ulongval ();
13957       if (i != ((long int) (sizeof (ac__type_sizeof_))))
13958         return 1;
13959       fprintf (f, "%lu\n", i);
13960     }
13961   return ferror (f) || fclose (f) != 0;
13962
13963   ;
13964   return 0;
13965 }
13966 _ACEOF
13967 rm -f conftest$ac_exeext
13968 if { (ac_try="$ac_link"
13969 case "(($ac_try" in
13970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13971   *) ac_try_echo=$ac_try;;
13972 esac
13973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13974   (eval "$ac_link") 2>&5
13975   ac_status=$?
13976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13978   { (case "(($ac_try" in
13979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13980   *) ac_try_echo=$ac_try;;
13981 esac
13982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13983   (eval "$ac_try") 2>&5
13984   ac_status=$?
13985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986   (exit $ac_status); }; }; then
13987   ac_cv_sizeof_int=`cat conftest.val`
13988 else
13989   echo "$as_me: program exited with status $ac_status" >&5
13990 echo "$as_me: failed program was:" >&5
13991 sed 's/^/| /' conftest.$ac_ext >&5
13992
13993 ( exit $ac_status )
13994 if test "$ac_cv_type_int" = yes; then
13995      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
13996 See \`config.log' for more details." >&5
13997 echo "$as_me: error: cannot compute sizeof (int)
13998 See \`config.log' for more details." >&2;}
13999    { (exit 77); exit 77; }; }
14000    else
14001      ac_cv_sizeof_int=0
14002    fi
14003 fi
14004 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14005 fi
14006 rm -f conftest.val
14007 fi
14008 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14009 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
14010
14011
14012
14013 cat >>confdefs.h <<_ACEOF
14014 #define SIZEOF_INT $ac_cv_sizeof_int
14015 _ACEOF
14016
14017
14018 { echo "$as_me:$LINENO: checking for long" >&5
14019 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
14020 if test "${ac_cv_type_long+set}" = set; then
14021   echo $ECHO_N "(cached) $ECHO_C" >&6
14022 else
14023   cat >conftest.$ac_ext <<_ACEOF
14024 /* confdefs.h.  */
14025 _ACEOF
14026 cat confdefs.h >>conftest.$ac_ext
14027 cat >>conftest.$ac_ext <<_ACEOF
14028 /* end confdefs.h.  */
14029 $ac_includes_default
14030 typedef long ac__type_new_;
14031 int
14032 main ()
14033 {
14034 if ((ac__type_new_ *) 0)
14035   return 0;
14036 if (sizeof (ac__type_new_))
14037   return 0;
14038   ;
14039   return 0;
14040 }
14041 _ACEOF
14042 rm -f conftest.$ac_objext
14043 if { (ac_try="$ac_compile"
14044 case "(($ac_try" in
14045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14046   *) ac_try_echo=$ac_try;;
14047 esac
14048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14049   (eval "$ac_compile") 2>conftest.er1
14050   ac_status=$?
14051   grep -v '^ *+' conftest.er1 >conftest.err
14052   rm -f conftest.er1
14053   cat conftest.err >&5
14054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055   (exit $ac_status); } && {
14056          test -z "$ac_c_werror_flag" ||
14057          test ! -s conftest.err
14058        } && test -s conftest.$ac_objext; then
14059   ac_cv_type_long=yes
14060 else
14061   echo "$as_me: failed program was:" >&5
14062 sed 's/^/| /' conftest.$ac_ext >&5
14063
14064         ac_cv_type_long=no
14065 fi
14066
14067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14068 fi
14069 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14070 echo "${ECHO_T}$ac_cv_type_long" >&6; }
14071
14072 # The cast to long int works around a bug in the HP C Compiler
14073 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14074 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14075 # This bug is HP SR number 8606223364.
14076 { echo "$as_me:$LINENO: checking size of long" >&5
14077 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
14078 if test "${ac_cv_sizeof_long+set}" = set; then
14079   echo $ECHO_N "(cached) $ECHO_C" >&6
14080 else
14081   if test "$cross_compiling" = yes; then
14082   # Depending upon the size, compute the lo and hi bounds.
14083 cat >conftest.$ac_ext <<_ACEOF
14084 /* confdefs.h.  */
14085 _ACEOF
14086 cat confdefs.h >>conftest.$ac_ext
14087 cat >>conftest.$ac_ext <<_ACEOF
14088 /* end confdefs.h.  */
14089 $ac_includes_default
14090    typedef long ac__type_sizeof_;
14091 int
14092 main ()
14093 {
14094 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
14095 test_array [0] = 0
14096
14097   ;
14098   return 0;
14099 }
14100 _ACEOF
14101 rm -f conftest.$ac_objext
14102 if { (ac_try="$ac_compile"
14103 case "(($ac_try" in
14104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14105   *) ac_try_echo=$ac_try;;
14106 esac
14107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14108   (eval "$ac_compile") 2>conftest.er1
14109   ac_status=$?
14110   grep -v '^ *+' conftest.er1 >conftest.err
14111   rm -f conftest.er1
14112   cat conftest.err >&5
14113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114   (exit $ac_status); } && {
14115          test -z "$ac_c_werror_flag" ||
14116          test ! -s conftest.err
14117        } && test -s conftest.$ac_objext; then
14118   ac_lo=0 ac_mid=0
14119   while :; do
14120     cat >conftest.$ac_ext <<_ACEOF
14121 /* confdefs.h.  */
14122 _ACEOF
14123 cat confdefs.h >>conftest.$ac_ext
14124 cat >>conftest.$ac_ext <<_ACEOF
14125 /* end confdefs.h.  */
14126 $ac_includes_default
14127    typedef long ac__type_sizeof_;
14128 int
14129 main ()
14130 {
14131 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14132 test_array [0] = 0
14133
14134   ;
14135   return 0;
14136 }
14137 _ACEOF
14138 rm -f conftest.$ac_objext
14139 if { (ac_try="$ac_compile"
14140 case "(($ac_try" in
14141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14142   *) ac_try_echo=$ac_try;;
14143 esac
14144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14145   (eval "$ac_compile") 2>conftest.er1
14146   ac_status=$?
14147   grep -v '^ *+' conftest.er1 >conftest.err
14148   rm -f conftest.er1
14149   cat conftest.err >&5
14150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151   (exit $ac_status); } && {
14152          test -z "$ac_c_werror_flag" ||
14153          test ! -s conftest.err
14154        } && test -s conftest.$ac_objext; then
14155   ac_hi=$ac_mid; break
14156 else
14157   echo "$as_me: failed program was:" >&5
14158 sed 's/^/| /' conftest.$ac_ext >&5
14159
14160         ac_lo=`expr $ac_mid + 1`
14161                         if test $ac_lo -le $ac_mid; then
14162                           ac_lo= ac_hi=
14163                           break
14164                         fi
14165                         ac_mid=`expr 2 '*' $ac_mid + 1`
14166 fi
14167
14168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14169   done
14170 else
14171   echo "$as_me: failed program was:" >&5
14172 sed 's/^/| /' conftest.$ac_ext >&5
14173
14174         cat >conftest.$ac_ext <<_ACEOF
14175 /* confdefs.h.  */
14176 _ACEOF
14177 cat confdefs.h >>conftest.$ac_ext
14178 cat >>conftest.$ac_ext <<_ACEOF
14179 /* end confdefs.h.  */
14180 $ac_includes_default
14181    typedef long ac__type_sizeof_;
14182 int
14183 main ()
14184 {
14185 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
14186 test_array [0] = 0
14187
14188   ;
14189   return 0;
14190 }
14191 _ACEOF
14192 rm -f conftest.$ac_objext
14193 if { (ac_try="$ac_compile"
14194 case "(($ac_try" in
14195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14196   *) ac_try_echo=$ac_try;;
14197 esac
14198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14199   (eval "$ac_compile") 2>conftest.er1
14200   ac_status=$?
14201   grep -v '^ *+' conftest.er1 >conftest.err
14202   rm -f conftest.er1
14203   cat conftest.err >&5
14204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205   (exit $ac_status); } && {
14206          test -z "$ac_c_werror_flag" ||
14207          test ! -s conftest.err
14208        } && test -s conftest.$ac_objext; then
14209   ac_hi=-1 ac_mid=-1
14210   while :; do
14211     cat >conftest.$ac_ext <<_ACEOF
14212 /* confdefs.h.  */
14213 _ACEOF
14214 cat confdefs.h >>conftest.$ac_ext
14215 cat >>conftest.$ac_ext <<_ACEOF
14216 /* end confdefs.h.  */
14217 $ac_includes_default
14218    typedef long ac__type_sizeof_;
14219 int
14220 main ()
14221 {
14222 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
14223 test_array [0] = 0
14224
14225   ;
14226   return 0;
14227 }
14228 _ACEOF
14229 rm -f conftest.$ac_objext
14230 if { (ac_try="$ac_compile"
14231 case "(($ac_try" in
14232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14233   *) ac_try_echo=$ac_try;;
14234 esac
14235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14236   (eval "$ac_compile") 2>conftest.er1
14237   ac_status=$?
14238   grep -v '^ *+' conftest.er1 >conftest.err
14239   rm -f conftest.er1
14240   cat conftest.err >&5
14241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242   (exit $ac_status); } && {
14243          test -z "$ac_c_werror_flag" ||
14244          test ! -s conftest.err
14245        } && test -s conftest.$ac_objext; then
14246   ac_lo=$ac_mid; break
14247 else
14248   echo "$as_me: failed program was:" >&5
14249 sed 's/^/| /' conftest.$ac_ext >&5
14250
14251         ac_hi=`expr '(' $ac_mid ')' - 1`
14252                         if test $ac_mid -le $ac_hi; then
14253                           ac_lo= ac_hi=
14254                           break
14255                         fi
14256                         ac_mid=`expr 2 '*' $ac_mid`
14257 fi
14258
14259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14260   done
14261 else
14262   echo "$as_me: failed program was:" >&5
14263 sed 's/^/| /' conftest.$ac_ext >&5
14264
14265         ac_lo= ac_hi=
14266 fi
14267
14268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14269 fi
14270
14271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14272 # Binary search between lo and hi bounds.
14273 while test "x$ac_lo" != "x$ac_hi"; do
14274   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14275   cat >conftest.$ac_ext <<_ACEOF
14276 /* confdefs.h.  */
14277 _ACEOF
14278 cat confdefs.h >>conftest.$ac_ext
14279 cat >>conftest.$ac_ext <<_ACEOF
14280 /* end confdefs.h.  */
14281 $ac_includes_default
14282    typedef long ac__type_sizeof_;
14283 int
14284 main ()
14285 {
14286 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14287 test_array [0] = 0
14288
14289   ;
14290   return 0;
14291 }
14292 _ACEOF
14293 rm -f conftest.$ac_objext
14294 if { (ac_try="$ac_compile"
14295 case "(($ac_try" in
14296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14297   *) ac_try_echo=$ac_try;;
14298 esac
14299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14300   (eval "$ac_compile") 2>conftest.er1
14301   ac_status=$?
14302   grep -v '^ *+' conftest.er1 >conftest.err
14303   rm -f conftest.er1
14304   cat conftest.err >&5
14305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306   (exit $ac_status); } && {
14307          test -z "$ac_c_werror_flag" ||
14308          test ! -s conftest.err
14309        } && test -s conftest.$ac_objext; then
14310   ac_hi=$ac_mid
14311 else
14312   echo "$as_me: failed program was:" >&5
14313 sed 's/^/| /' conftest.$ac_ext >&5
14314
14315         ac_lo=`expr '(' $ac_mid ')' + 1`
14316 fi
14317
14318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14319 done
14320 case $ac_lo in
14321 ?*) ac_cv_sizeof_long=$ac_lo;;
14322 '') if test "$ac_cv_type_long" = yes; then
14323      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
14324 See \`config.log' for more details." >&5
14325 echo "$as_me: error: cannot compute sizeof (long)
14326 See \`config.log' for more details." >&2;}
14327    { (exit 77); exit 77; }; }
14328    else
14329      ac_cv_sizeof_long=0
14330    fi ;;
14331 esac
14332 else
14333   cat >conftest.$ac_ext <<_ACEOF
14334 /* confdefs.h.  */
14335 _ACEOF
14336 cat confdefs.h >>conftest.$ac_ext
14337 cat >>conftest.$ac_ext <<_ACEOF
14338 /* end confdefs.h.  */
14339 $ac_includes_default
14340    typedef long ac__type_sizeof_;
14341 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14342 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
14343 #include <stdio.h>
14344 #include <stdlib.h>
14345 int
14346 main ()
14347 {
14348
14349   FILE *f = fopen ("conftest.val", "w");
14350   if (! f)
14351     return 1;
14352   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
14353     {
14354       long int i = longval ();
14355       if (i != ((long int) (sizeof (ac__type_sizeof_))))
14356         return 1;
14357       fprintf (f, "%ld\n", i);
14358     }
14359   else
14360     {
14361       unsigned long int i = ulongval ();
14362       if (i != ((long int) (sizeof (ac__type_sizeof_))))
14363         return 1;
14364       fprintf (f, "%lu\n", i);
14365     }
14366   return ferror (f) || fclose (f) != 0;
14367
14368   ;
14369   return 0;
14370 }
14371 _ACEOF
14372 rm -f conftest$ac_exeext
14373 if { (ac_try="$ac_link"
14374 case "(($ac_try" in
14375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14376   *) ac_try_echo=$ac_try;;
14377 esac
14378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14379   (eval "$ac_link") 2>&5
14380   ac_status=$?
14381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14383   { (case "(($ac_try" in
14384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14385   *) ac_try_echo=$ac_try;;
14386 esac
14387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14388   (eval "$ac_try") 2>&5
14389   ac_status=$?
14390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391   (exit $ac_status); }; }; then
14392   ac_cv_sizeof_long=`cat conftest.val`
14393 else
14394   echo "$as_me: program exited with status $ac_status" >&5
14395 echo "$as_me: failed program was:" >&5
14396 sed 's/^/| /' conftest.$ac_ext >&5
14397
14398 ( exit $ac_status )
14399 if test "$ac_cv_type_long" = yes; then
14400      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
14401 See \`config.log' for more details." >&5
14402 echo "$as_me: error: cannot compute sizeof (long)
14403 See \`config.log' for more details." >&2;}
14404    { (exit 77); exit 77; }; }
14405    else
14406      ac_cv_sizeof_long=0
14407    fi
14408 fi
14409 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14410 fi
14411 rm -f conftest.val
14412 fi
14413 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
14414 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
14415
14416
14417
14418 cat >>confdefs.h <<_ACEOF
14419 #define SIZEOF_LONG $ac_cv_sizeof_long
14420 _ACEOF
14421
14422
14423
14424 if test x$has_char16 = "xyes" ; then
14425         case 1 in
14426                 $ac_cv_sizeof_short) SIZE16="short";;
14427                 $ac_cv_sizeof_int) SIZE16="int";;
14428         esac
14429 else
14430         case 2 in
14431                 $ac_cv_sizeof_short) SIZE16="short";;
14432                 $ac_cv_sizeof_int) SIZE16="int";;
14433         esac
14434 fi
14435
14436 if test x$has_char16 = "xyes" ; then
14437         case 2 in
14438                 $ac_cv_sizeof_int) SIZE32="int";;
14439                 $ac_cv_sizeof_long) SIZE32="long";;
14440                 $ac_cv_sizeof_short) SIZE32="short";;
14441         esac
14442 else
14443         case 4 in
14444                 $ac_cv_sizeof_int) SIZE32="int";;
14445                 $ac_cv_sizeof_long) SIZE32="long";;
14446                 $ac_cv_sizeof_short) SIZE32="short";;
14447         esac
14448 fi
14449
14450
14451
14452
14453 ac_config_files="$ac_config_files Makefile libspeex/Makefile src/Makefile doc/Makefile include/Makefile include/speex/Makefile speex.pc speexdsp.pc win32/Makefile win32/libspeex/Makefile win32/speexenc/Makefile win32/speexdec/Makefile symbian/Makefile win32/VS2003/Makefile win32/VS2003/tests/Makefile win32/VS2003/libspeex/Makefile win32/VS2003/libspeexdsp/Makefile win32/VS2003/speexdec/Makefile win32/VS2003/speexenc/Makefile win32/VS2005/Makefile win32/VS2005/libspeex/Makefile win32/VS2005/speexdec/Makefile win32/VS2005/speexenc/Makefile win32/VS2005/libspeexdsp/Makefile win32/VS2005/tests/Makefile win32/VS2008/libspeexdsp/Makefile win32/VS2008/Makefile win32/VS2008/speexdec/Makefile win32/VS2008/tests/Makefile win32/VS2008/libspeex/Makefile win32/VS2008/speexenc/Makefile include/speex/speex_config_types.h ti/Makefile ti/speex_C54_test/Makefile ti/speex_C55_test/Makefile ti/speex_C64_test/Makefile"
14454
14455 cat >confcache <<\_ACEOF
14456 # This file is a shell script that caches the results of configure
14457 # tests run on this system so they can be shared between configure
14458 # scripts and configure runs, see configure's option --config-cache.
14459 # It is not useful on other systems.  If it contains results you don't
14460 # want to keep, you may remove or edit it.
14461 #
14462 # config.status only pays attention to the cache file if you give it
14463 # the --recheck option to rerun configure.
14464 #
14465 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14466 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14467 # following values.
14468
14469 _ACEOF
14470
14471 # The following way of writing the cache mishandles newlines in values,
14472 # but we know of no workaround that is simple, portable, and efficient.
14473 # So, we kill variables containing newlines.
14474 # Ultrix sh set writes to stderr and can't be redirected directly,
14475 # and sets the high bit in the cache file unless we assign to the vars.
14476 (
14477   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14478     eval ac_val=\$$ac_var
14479     case $ac_val in #(
14480     *${as_nl}*)
14481       case $ac_var in #(
14482       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
14483 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
14484       esac
14485       case $ac_var in #(
14486       _ | IFS | as_nl) ;; #(
14487       *) $as_unset $ac_var ;;
14488       esac ;;
14489     esac
14490   done
14491
14492   (set) 2>&1 |
14493     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14494     *${as_nl}ac_space=\ *)
14495       # `set' does not quote correctly, so add quotes (double-quote
14496       # substitution turns \\\\ into \\, and sed turns \\ into \).
14497       sed -n \
14498         "s/'/'\\\\''/g;
14499           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14500       ;; #(
14501     *)
14502       # `set' quotes correctly as required by POSIX, so do not add quotes.
14503       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14504       ;;
14505     esac |
14506     sort
14507 ) |
14508   sed '
14509      /^ac_cv_env_/b end
14510      t clear
14511      :clear
14512      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14513      t end
14514      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14515      :end' >>confcache
14516 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14517   if test -w "$cache_file"; then
14518     test "x$cache_file" != "x/dev/null" &&
14519       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
14520 echo "$as_me: updating cache $cache_file" >&6;}
14521     cat confcache >$cache_file
14522   else
14523     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14524 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14525   fi
14526 fi
14527 rm -f confcache
14528
14529 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14530 # Let make expand exec_prefix.
14531 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14532
14533 DEFS=-DHAVE_CONFIG_H
14534
14535 ac_libobjs=
14536 ac_ltlibobjs=
14537 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14538   # 1. Remove the extension, and $U if already installed.
14539   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14540   ac_i=`echo "$ac_i" | sed "$ac_script"`
14541   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14542   #    will be set to the directory where LIBOBJS objects are built.
14543   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14544   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
14545 done
14546 LIBOBJS=$ac_libobjs
14547
14548 LTLIBOBJS=$ac_ltlibobjs
14549
14550
14551 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14552   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
14553 Usually this means the macro was only invoked conditionally." >&5
14554 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
14555 Usually this means the macro was only invoked conditionally." >&2;}
14556    { (exit 1); exit 1; }; }
14557 fi
14558 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14559   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
14560 Usually this means the macro was only invoked conditionally." >&5
14561 echo "$as_me: error: conditional \"AMDEP\" was never defined.
14562 Usually this means the macro was only invoked conditionally." >&2;}
14563    { (exit 1); exit 1; }; }
14564 fi
14565 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14566   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14567 Usually this means the macro was only invoked conditionally." >&5
14568 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14569 Usually this means the macro was only invoked conditionally." >&2;}
14570    { (exit 1); exit 1; }; }
14571 fi
14572 if test -z "${BUILD_KISS_FFT_TRUE}" && test -z "${BUILD_KISS_FFT_FALSE}"; then
14573   { { echo "$as_me:$LINENO: error: conditional \"BUILD_KISS_FFT\" was never defined.
14574 Usually this means the macro was only invoked conditionally." >&5
14575 echo "$as_me: error: conditional \"BUILD_KISS_FFT\" was never defined.
14576 Usually this means the macro was only invoked conditionally." >&2;}
14577    { (exit 1); exit 1; }; }
14578 fi
14579 if test -z "${BUILD_SMALLFT_TRUE}" && test -z "${BUILD_SMALLFT_FALSE}"; then
14580   { { echo "$as_me:$LINENO: error: conditional \"BUILD_SMALLFT\" was never defined.
14581 Usually this means the macro was only invoked conditionally." >&5
14582 echo "$as_me: error: conditional \"BUILD_SMALLFT\" was never defined.
14583 Usually this means the macro was only invoked conditionally." >&2;}
14584    { (exit 1); exit 1; }; }
14585 fi
14586
14587 : ${CONFIG_STATUS=./config.status}
14588 ac_clean_files_save=$ac_clean_files
14589 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14590 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14591 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14592 cat >$CONFIG_STATUS <<_ACEOF
14593 #! $SHELL
14594 # Generated by $as_me.
14595 # Run this file to recreate the current configuration.
14596 # Compiler output produced by configure, useful for debugging
14597 # configure, is in config.log if it exists.
14598
14599 debug=false
14600 ac_cs_recheck=false
14601 ac_cs_silent=false
14602 SHELL=\${CONFIG_SHELL-$SHELL}
14603 _ACEOF
14604
14605 cat >>$CONFIG_STATUS <<\_ACEOF
14606 ## --------------------- ##
14607 ## M4sh Initialization.  ##
14608 ## --------------------- ##
14609
14610 # Be more Bourne compatible
14611 DUALCASE=1; export DUALCASE # for MKS sh
14612 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14613   emulate sh
14614   NULLCMD=:
14615   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14616   # is contrary to our usage.  Disable this feature.
14617   alias -g '${1+"$@"}'='"$@"'
14618   setopt NO_GLOB_SUBST
14619 else
14620   case `(set -o) 2>/dev/null` in
14621   *posix*) set -o posix ;;
14622 esac
14623
14624 fi
14625
14626
14627
14628
14629 # PATH needs CR
14630 # Avoid depending upon Character Ranges.
14631 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14632 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14633 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14634 as_cr_digits='0123456789'
14635 as_cr_alnum=$as_cr_Letters$as_cr_digits
14636
14637 # The user is always right.
14638 if test "${PATH_SEPARATOR+set}" != set; then
14639   echo "#! /bin/sh" >conf$$.sh
14640   echo  "exit 0"   >>conf$$.sh
14641   chmod +x conf$$.sh
14642   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14643     PATH_SEPARATOR=';'
14644   else
14645     PATH_SEPARATOR=:
14646   fi
14647   rm -f conf$$.sh
14648 fi
14649
14650 # Support unset when possible.
14651 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14652   as_unset=unset
14653 else
14654   as_unset=false
14655 fi
14656
14657
14658 # IFS
14659 # We need space, tab and new line, in precisely that order.  Quoting is
14660 # there to prevent editors from complaining about space-tab.
14661 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14662 # splitting by setting IFS to empty value.)
14663 as_nl='
14664 '
14665 IFS=" ""        $as_nl"
14666
14667 # Find who we are.  Look in the path if we contain no directory separator.
14668 case $0 in
14669   *[\\/]* ) as_myself=$0 ;;
14670   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14671 for as_dir in $PATH
14672 do
14673   IFS=$as_save_IFS
14674   test -z "$as_dir" && as_dir=.
14675   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14676 done
14677 IFS=$as_save_IFS
14678
14679      ;;
14680 esac
14681 # We did not find ourselves, most probably we were run as `sh COMMAND'
14682 # in which case we are not to be found in the path.
14683 if test "x$as_myself" = x; then
14684   as_myself=$0
14685 fi
14686 if test ! -f "$as_myself"; then
14687   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14688   { (exit 1); exit 1; }
14689 fi
14690
14691 # Work around bugs in pre-3.0 UWIN ksh.
14692 for as_var in ENV MAIL MAILPATH
14693 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14694 done
14695 PS1='$ '
14696 PS2='> '
14697 PS4='+ '
14698
14699 # NLS nuisances.
14700 for as_var in \
14701   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14702   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14703   LC_TELEPHONE LC_TIME
14704 do
14705   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14706     eval $as_var=C; export $as_var
14707   else
14708     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14709   fi
14710 done
14711
14712 # Required to use basename.
14713 if expr a : '\(a\)' >/dev/null 2>&1 &&
14714    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14715   as_expr=expr
14716 else
14717   as_expr=false
14718 fi
14719
14720 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14721   as_basename=basename
14722 else
14723   as_basename=false
14724 fi
14725
14726
14727 # Name of the executable.
14728 as_me=`$as_basename -- "$0" ||
14729 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14730          X"$0" : 'X\(//\)$' \| \
14731          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14732 echo X/"$0" |
14733     sed '/^.*\/\([^/][^/]*\)\/*$/{
14734             s//\1/
14735             q
14736           }
14737           /^X\/\(\/\/\)$/{
14738             s//\1/
14739             q
14740           }
14741           /^X\/\(\/\).*/{
14742             s//\1/
14743             q
14744           }
14745           s/.*/./; q'`
14746
14747 # CDPATH.
14748 $as_unset CDPATH
14749
14750
14751
14752   as_lineno_1=$LINENO
14753   as_lineno_2=$LINENO
14754   test "x$as_lineno_1" != "x$as_lineno_2" &&
14755   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
14756
14757   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14758   # uniformly replaced by the line number.  The first 'sed' inserts a
14759   # line-number line after each line using $LINENO; the second 'sed'
14760   # does the real work.  The second script uses 'N' to pair each
14761   # line-number line with the line containing $LINENO, and appends
14762   # trailing '-' during substitution so that $LINENO is not a special
14763   # case at line end.
14764   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14765   # scripts with optimization help from Paolo Bonzini.  Blame Lee
14766   # E. McMahon (1931-1989) for sed's syntax.  :-)
14767   sed -n '
14768     p
14769     /[$]LINENO/=
14770   ' <$as_myself |
14771     sed '
14772       s/[$]LINENO.*/&-/
14773       t lineno
14774       b
14775       :lineno
14776       N
14777       :loop
14778       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
14779       t loop
14780       s/-\n.*//
14781     ' >$as_me.lineno &&
14782   chmod +x "$as_me.lineno" ||
14783     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
14784    { (exit 1); exit 1; }; }
14785
14786   # Don't try to exec as it changes $[0], causing all sort of problems
14787   # (the dirname of $[0] is not the place where we might find the
14788   # original and so on.  Autoconf is especially sensitive to this).
14789   . "./$as_me.lineno"
14790   # Exit status is that of the last command.
14791   exit
14792 }
14793
14794
14795 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14796   as_dirname=dirname
14797 else
14798   as_dirname=false
14799 fi
14800
14801 ECHO_C= ECHO_N= ECHO_T=
14802 case `echo -n x` in
14803 -n*)
14804   case `echo 'x\c'` in
14805   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14806   *)   ECHO_C='\c';;
14807   esac;;
14808 *)
14809   ECHO_N='-n';;
14810 esac
14811
14812 if expr a : '\(a\)' >/dev/null 2>&1 &&
14813    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14814   as_expr=expr
14815 else
14816   as_expr=false
14817 fi
14818
14819 rm -f conf$$ conf$$.exe conf$$.file
14820 if test -d conf$$.dir; then
14821   rm -f conf$$.dir/conf$$.file
14822 else
14823   rm -f conf$$.dir
14824   mkdir conf$$.dir
14825 fi
14826 echo >conf$$.file
14827 if ln -s conf$$.file conf$$ 2>/dev/null; then
14828   as_ln_s='ln -s'
14829   # ... but there are two gotchas:
14830   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14831   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14832   # In both cases, we have to default to `cp -p'.
14833   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14834     as_ln_s='cp -p'
14835 elif ln conf$$.file conf$$ 2>/dev/null; then
14836   as_ln_s=ln
14837 else
14838   as_ln_s='cp -p'
14839 fi
14840 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14841 rmdir conf$$.dir 2>/dev/null
14842
14843 if mkdir -p . 2>/dev/null; then
14844   as_mkdir_p=:
14845 else
14846   test -d ./-p && rmdir ./-p
14847   as_mkdir_p=false
14848 fi
14849
14850 if test -x / >/dev/null 2>&1; then
14851   as_test_x='test -x'
14852 else
14853   if ls -dL / >/dev/null 2>&1; then
14854     as_ls_L_option=L
14855   else
14856     as_ls_L_option=
14857   fi
14858   as_test_x='
14859     eval sh -c '\''
14860       if test -d "$1"; then
14861         test -d "$1/.";
14862       else
14863         case $1 in
14864         -*)set "./$1";;
14865         esac;
14866         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14867         ???[sx]*):;;*)false;;esac;fi
14868     '\'' sh
14869   '
14870 fi
14871 as_executable_p=$as_test_x
14872
14873 # Sed expression to map a string onto a valid CPP name.
14874 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14875
14876 # Sed expression to map a string onto a valid variable name.
14877 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14878
14879
14880 exec 6>&1
14881
14882 # Save the log message, to keep $[0] and so on meaningful, and to
14883 # report actual input values of CONFIG_FILES etc. instead of their
14884 # values after options handling.
14885 ac_log="
14886 This file was extended by $as_me, which was
14887 generated by GNU Autoconf 2.61.  Invocation command line was
14888
14889   CONFIG_FILES    = $CONFIG_FILES
14890   CONFIG_HEADERS  = $CONFIG_HEADERS
14891   CONFIG_LINKS    = $CONFIG_LINKS
14892   CONFIG_COMMANDS = $CONFIG_COMMANDS
14893   $ $0 $@
14894
14895 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14896 "
14897
14898 _ACEOF
14899
14900 cat >>$CONFIG_STATUS <<_ACEOF
14901 # Files that config.status was made for.
14902 config_files="$ac_config_files"
14903 config_headers="$ac_config_headers"
14904 config_commands="$ac_config_commands"
14905
14906 _ACEOF
14907
14908 cat >>$CONFIG_STATUS <<\_ACEOF
14909 ac_cs_usage="\
14910 \`$as_me' instantiates files from templates according to the
14911 current configuration.
14912
14913 Usage: $0 [OPTIONS] [FILE]...
14914
14915   -h, --help       print this help, then exit
14916   -V, --version    print version number and configuration settings, then exit
14917   -q, --quiet      do not print progress messages
14918   -d, --debug      don't remove temporary files
14919       --recheck    update $as_me by reconfiguring in the same conditions
14920   --file=FILE[:TEMPLATE]
14921                    instantiate the configuration file FILE
14922   --header=FILE[:TEMPLATE]
14923                    instantiate the configuration header FILE
14924
14925 Configuration files:
14926 $config_files
14927
14928 Configuration headers:
14929 $config_headers
14930
14931 Configuration commands:
14932 $config_commands
14933
14934 Report bugs to <bug-autoconf@gnu.org>."
14935
14936 _ACEOF
14937 cat >>$CONFIG_STATUS <<_ACEOF
14938 ac_cs_version="\\
14939 config.status
14940 configured by $0, generated by GNU Autoconf 2.61,
14941   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14942
14943 Copyright (C) 2006 Free Software Foundation, Inc.
14944 This config.status script is free software; the Free Software Foundation
14945 gives unlimited permission to copy, distribute and modify it."
14946
14947 ac_pwd='$ac_pwd'
14948 srcdir='$srcdir'
14949 INSTALL='$INSTALL'
14950 _ACEOF
14951
14952 cat >>$CONFIG_STATUS <<\_ACEOF
14953 # If no file are specified by the user, then we need to provide default
14954 # value.  By we need to know if files were specified by the user.
14955 ac_need_defaults=:
14956 while test $# != 0
14957 do
14958   case $1 in
14959   --*=*)
14960     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14961     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14962     ac_shift=:
14963     ;;
14964   *)
14965     ac_option=$1
14966     ac_optarg=$2
14967     ac_shift=shift
14968     ;;
14969   esac
14970
14971   case $ac_option in
14972   # Handling of the options.
14973   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14974     ac_cs_recheck=: ;;
14975   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14976     echo "$ac_cs_version"; exit ;;
14977   --debug | --debu | --deb | --de | --d | -d )
14978     debug=: ;;
14979   --file | --fil | --fi | --f )
14980     $ac_shift
14981     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14982     ac_need_defaults=false;;
14983   --header | --heade | --head | --hea )
14984     $ac_shift
14985     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14986     ac_need_defaults=false;;
14987   --he | --h)
14988     # Conflict between --help and --header
14989     { echo "$as_me: error: ambiguous option: $1
14990 Try \`$0 --help' for more information." >&2
14991    { (exit 1); exit 1; }; };;
14992   --help | --hel | -h )
14993     echo "$ac_cs_usage"; exit ;;
14994   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14995   | -silent | --silent | --silen | --sile | --sil | --si | --s)
14996     ac_cs_silent=: ;;
14997
14998   # This is an error.
14999   -*) { echo "$as_me: error: unrecognized option: $1
15000 Try \`$0 --help' for more information." >&2
15001    { (exit 1); exit 1; }; } ;;
15002
15003   *) ac_config_targets="$ac_config_targets $1"
15004      ac_need_defaults=false ;;
15005
15006   esac
15007   shift
15008 done
15009
15010 ac_configure_extra_args=
15011
15012 if $ac_cs_silent; then
15013   exec 6>/dev/null
15014   ac_configure_extra_args="$ac_configure_extra_args --silent"
15015 fi
15016
15017 _ACEOF
15018 cat >>$CONFIG_STATUS <<_ACEOF
15019 if \$ac_cs_recheck; then
15020   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15021   CONFIG_SHELL=$SHELL
15022   export CONFIG_SHELL
15023   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15024 fi
15025
15026 _ACEOF
15027 cat >>$CONFIG_STATUS <<\_ACEOF
15028 exec 5>>config.log
15029 {
15030   echo
15031   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15032 ## Running $as_me. ##
15033 _ASBOX
15034   echo "$ac_log"
15035 } >&5
15036
15037 _ACEOF
15038 cat >>$CONFIG_STATUS <<_ACEOF
15039 #
15040 # INIT-COMMANDS
15041 #
15042 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15043
15044
15045 # The HP-UX ksh and POSIX shell print the target directory to stdout
15046 # if CDPATH is set.
15047 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15048
15049 sed_quote_subst='$sed_quote_subst'
15050 double_quote_subst='$double_quote_subst'
15051 delay_variable_subst='$delay_variable_subst'
15052 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
15053 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15054 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
15055 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15056 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15057 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15058 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15059 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15060 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15061 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15062 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15063 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15064 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15065 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15066 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15067 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15068 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15069 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15070 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15071 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15072 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15073 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15074 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15075 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15076 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15077 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15078 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15079 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15080 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15081 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15082 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15083 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15084 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15085 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15086 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15087 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15088 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15089 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15090 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15091 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15092 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15093 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15094 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15095 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15096 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15097 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15098 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
15099 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15100 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15101 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15102 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15103 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15104 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15105 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15106 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15107 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15108 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15109 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15110 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
15111 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
15112 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
15113 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15114 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
15115 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15116 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15117 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15118 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15119 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15120 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15121 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15122 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15123 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15124 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15125 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15126 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15127 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15128 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15129 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15130 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15131 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15132 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15133 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15134 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15135 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15136 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15137 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15138 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15139 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15140 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15141 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15142 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15143 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15144 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15145 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15146 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15147 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15148 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15149 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15150 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15151 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15152 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15153 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15154 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15155 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15156 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15157 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15158 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15159 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15160 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15161 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15162 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15163 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15164 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15165 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15166 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15167 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15168 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15169 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15170 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15171 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15172
15173 LTCC='$LTCC'
15174 LTCFLAGS='$LTCFLAGS'
15175 compiler='$compiler_DEFAULT'
15176
15177 # Quote evaled strings.
15178 for var in SED \
15179 GREP \
15180 EGREP \
15181 FGREP \
15182 LD \
15183 NM \
15184 LN_S \
15185 lt_SP2NL \
15186 lt_NL2SP \
15187 reload_flag \
15188 deplibs_check_method \
15189 file_magic_cmd \
15190 AR \
15191 AR_FLAGS \
15192 STRIP \
15193 RANLIB \
15194 CC \
15195 CFLAGS \
15196 compiler \
15197 lt_cv_sys_global_symbol_pipe \
15198 lt_cv_sys_global_symbol_to_cdecl \
15199 lt_cv_sys_global_symbol_to_c_name_address \
15200 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15201 SHELL \
15202 ECHO \
15203 lt_prog_compiler_no_builtin_flag \
15204 lt_prog_compiler_wl \
15205 lt_prog_compiler_pic \
15206 lt_prog_compiler_static \
15207 lt_cv_prog_compiler_c_o \
15208 need_locks \
15209 DSYMUTIL \
15210 NMEDIT \
15211 LIPO \
15212 OTOOL \
15213 OTOOL64 \
15214 shrext_cmds \
15215 export_dynamic_flag_spec \
15216 whole_archive_flag_spec \
15217 compiler_needs_object \
15218 with_gnu_ld \
15219 allow_undefined_flag \
15220 no_undefined_flag \
15221 hardcode_libdir_flag_spec \
15222 hardcode_libdir_flag_spec_ld \
15223 hardcode_libdir_separator \
15224 fix_srcfile_path \
15225 exclude_expsyms \
15226 include_expsyms \
15227 file_list_spec \
15228 variables_saved_for_relink \
15229 libname_spec \
15230 library_names_spec \
15231 soname_spec \
15232 finish_eval \
15233 old_striplib \
15234 striplib; do
15235     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15236     *[\\\\\\\`\\"\\\$]*)
15237       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15238       ;;
15239     *)
15240       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15241       ;;
15242     esac
15243 done
15244
15245 # Double-quote double-evaled strings.
15246 for var in reload_cmds \
15247 old_postinstall_cmds \
15248 old_postuninstall_cmds \
15249 old_archive_cmds \
15250 extract_expsyms_cmds \
15251 old_archive_from_new_cmds \
15252 old_archive_from_expsyms_cmds \
15253 archive_cmds \
15254 archive_expsym_cmds \
15255 module_cmds \
15256 module_expsym_cmds \
15257 export_symbols_cmds \
15258 prelink_cmds \
15259 postinstall_cmds \
15260 postuninstall_cmds \
15261 finish_cmds \
15262 sys_lib_search_path_spec \
15263 sys_lib_dlsearch_path_spec; do
15264     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15265     *[\\\\\\\`\\"\\\$]*)
15266       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15267       ;;
15268     *)
15269       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15270       ;;
15271     esac
15272 done
15273
15274 # Fix-up fallback echo if it was mangled by the above quoting rules.
15275 case \$lt_ECHO in
15276 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
15277   ;;
15278 esac
15279
15280 ac_aux_dir='$ac_aux_dir'
15281 xsi_shell='$xsi_shell'
15282 lt_shell_append='$lt_shell_append'
15283
15284 # See if we are running on zsh, and set the options which allow our
15285 # commands through without removal of \ escapes INIT.
15286 if test -n "\${ZSH_VERSION+set}" ; then
15287    setopt NO_GLOB_SUBST
15288 fi
15289
15290
15291     PACKAGE='$PACKAGE'
15292     VERSION='$VERSION'
15293     TIMESTAMP='$TIMESTAMP'
15294     RM='$RM'
15295     ofile='$ofile'
15296
15297
15298
15299
15300 _ACEOF
15301
15302 cat >>$CONFIG_STATUS <<\_ACEOF
15303
15304 # Handling of arguments.
15305 for ac_config_target in $ac_config_targets
15306 do
15307   case $ac_config_target in
15308     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15309     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15310     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15311     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15312     "libspeex/Makefile") CONFIG_FILES="$CONFIG_FILES libspeex/Makefile" ;;
15313     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15314     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15315     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
15316     "include/speex/Makefile") CONFIG_FILES="$CONFIG_FILES include/speex/Makefile" ;;
15317     "speex.pc") CONFIG_FILES="$CONFIG_FILES speex.pc" ;;
15318     "speexdsp.pc") CONFIG_FILES="$CONFIG_FILES speexdsp.pc" ;;
15319     "win32/Makefile") CONFIG_FILES="$CONFIG_FILES win32/Makefile" ;;
15320     "win32/libspeex/Makefile") CONFIG_FILES="$CONFIG_FILES win32/libspeex/Makefile" ;;
15321     "win32/speexenc/Makefile") CONFIG_FILES="$CONFIG_FILES win32/speexenc/Makefile" ;;
15322     "win32/speexdec/Makefile") CONFIG_FILES="$CONFIG_FILES win32/speexdec/Makefile" ;;
15323     "symbian/Makefile") CONFIG_FILES="$CONFIG_FILES symbian/Makefile" ;;
15324     "win32/VS2003/Makefile") CONFIG_FILES="$CONFIG_FILES win32/VS2003/Makefile" ;;
15325     "win32/VS2003/tests/Makefile") CONFIG_FILES="$CONFIG_FILES win32/VS2003/tests/Makefile" ;;
15326     "win32/VS2003/libspeex/Makefile") CONFIG_FILES="$CONFIG_FILES win32/VS2003/libspeex/Makefile" ;;
15327     "win32/VS2003/libspeexdsp/Makefile") CONFIG_FILES="$CONFIG_FILES win32/VS2003/libspeexdsp/Makefile" ;;
15328     "win32/VS2003/speexdec/Makefile") CONFIG_FILES="$CONFIG_FILES win32/VS2003/speexdec/Makefile" ;;
15329     "win32/VS2003/speexenc/Makefile") CONFIG_FILES="$CONFIG_FILES win32/VS2003/speexenc/Makefile" ;;
15330     "win32/VS2005/Makefile") CONFIG_FILES="$CONFIG_FILES win32/VS2005/Makefile" ;;
15331     "win32/VS2005/libspeex/Makefile") CONFIG_FILES="$CONFIG_FILES win32/VS2005/libspeex/Makefile" ;;
15332     "win32/VS2005/speexdec/Makefile") CONFIG_FILES="$CONFIG_FILES win32/VS2005/speexdec/Makefile" ;;
15333     "win32/VS2005/speexenc/Makefile") CONFIG_FILES="$CONFIG_FILES win32/VS2005/speexenc/Makefile" ;;
15334     "win32/VS2005/libspeexdsp/Makefile") CONFIG_FILES="$CONFIG_FILES win32/VS2005/libspeexdsp/Makefile" ;;
15335     "win32/VS2005/tests/Makefile") CONFIG_FILES="$CONFIG_FILES win32/VS2005/tests/Makefile" ;;
15336     "win32/VS2008/libspeexdsp/Makefile") CONFIG_FILES="$CONFIG_FILES win32/VS2008/libspeexdsp/Makefile" ;;
15337     "win32/VS2008/Makefile") CONFIG_FILES="$CONFIG_FILES win32/VS2008/Makefile" ;;
15338     "win32/VS2008/speexdec/Makefile") CONFIG_FILES="$CONFIG_FILES win32/VS2008/speexdec/Makefile" ;;
15339     "win32/VS2008/tests/Makefile") CONFIG_FILES="$CONFIG_FILES win32/VS2008/tests/Makefile" ;;
15340     "win32/VS2008/libspeex/Makefile") CONFIG_FILES="$CONFIG_FILES win32/VS2008/libspeex/Makefile" ;;
15341     "win32/VS2008/speexenc/Makefile") CONFIG_FILES="$CONFIG_FILES win32/VS2008/speexenc/Makefile" ;;
15342     "include/speex/speex_config_types.h") CONFIG_FILES="$CONFIG_FILES include/speex/speex_config_types.h" ;;
15343     "ti/Makefile") CONFIG_FILES="$CONFIG_FILES ti/Makefile" ;;
15344     "ti/speex_C54_test/Makefile") CONFIG_FILES="$CONFIG_FILES ti/speex_C54_test/Makefile" ;;
15345     "ti/speex_C55_test/Makefile") CONFIG_FILES="$CONFIG_FILES ti/speex_C55_test/Makefile" ;;
15346     "ti/speex_C64_test/Makefile") CONFIG_FILES="$CONFIG_FILES ti/speex_C64_test/Makefile" ;;
15347
15348   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15349 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15350    { (exit 1); exit 1; }; };;
15351   esac
15352 done
15353
15354
15355 # If the user did not use the arguments to specify the items to instantiate,
15356 # then the envvar interface is used.  Set only those that are not.
15357 # We use the long form for the default assignment because of an extremely
15358 # bizarre bug on SunOS 4.1.3.
15359 if $ac_need_defaults; then
15360   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15361   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15362   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15363 fi
15364
15365 # Have a temporary directory for convenience.  Make it in the build tree
15366 # simply because there is no reason against having it here, and in addition,
15367 # creating and moving files from /tmp can sometimes cause problems.
15368 # Hook for its removal unless debugging.
15369 # Note that there is a small window in which the directory will not be cleaned:
15370 # after its creation but before its name has been assigned to `$tmp'.
15371 $debug ||
15372 {
15373   tmp=
15374   trap 'exit_status=$?
15375   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15376 ' 0
15377   trap '{ (exit 1); exit 1; }' 1 2 13 15
15378 }
15379 # Create a (secure) tmp directory for tmp files.
15380
15381 {
15382   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15383   test -n "$tmp" && test -d "$tmp"
15384 }  ||
15385 {
15386   tmp=./conf$$-$RANDOM
15387   (umask 077 && mkdir "$tmp")
15388 } ||
15389 {
15390    echo "$me: cannot create a temporary directory in ." >&2
15391    { (exit 1); exit 1; }
15392 }
15393
15394 #
15395 # Set up the sed scripts for CONFIG_FILES section.
15396 #
15397
15398 # No need to generate the scripts if there are no CONFIG_FILES.
15399 # This happens for instance when ./config.status config.h
15400 if test -n "$CONFIG_FILES"; then
15401
15402 _ACEOF
15403
15404
15405
15406 ac_delim='%!_!# '
15407 for ac_last_try in false false false false false :; do
15408   cat >conf$$subs.sed <<_ACEOF
15409 SHELL!$SHELL$ac_delim
15410 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
15411 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
15412 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
15413 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
15414 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
15415 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
15416 exec_prefix!$exec_prefix$ac_delim
15417 prefix!$prefix$ac_delim
15418 program_transform_name!$program_transform_name$ac_delim
15419 bindir!$bindir$ac_delim
15420 sbindir!$sbindir$ac_delim
15421 libexecdir!$libexecdir$ac_delim
15422 datarootdir!$datarootdir$ac_delim
15423 datadir!$datadir$ac_delim
15424 sysconfdir!$sysconfdir$ac_delim
15425 sharedstatedir!$sharedstatedir$ac_delim
15426 localstatedir!$localstatedir$ac_delim
15427 includedir!$includedir$ac_delim
15428 oldincludedir!$oldincludedir$ac_delim
15429 docdir!$docdir$ac_delim
15430 infodir!$infodir$ac_delim
15431 htmldir!$htmldir$ac_delim
15432 dvidir!$dvidir$ac_delim
15433 pdfdir!$pdfdir$ac_delim
15434 psdir!$psdir$ac_delim
15435 libdir!$libdir$ac_delim
15436 localedir!$localedir$ac_delim
15437 mandir!$mandir$ac_delim
15438 DEFS!$DEFS$ac_delim
15439 ECHO_C!$ECHO_C$ac_delim
15440 ECHO_N!$ECHO_N$ac_delim
15441 ECHO_T!$ECHO_T$ac_delim
15442 LIBS!$LIBS$ac_delim
15443 build_alias!$build_alias$ac_delim
15444 host_alias!$host_alias$ac_delim
15445 target_alias!$target_alias$ac_delim
15446 SPEEX_LT_CURRENT!$SPEEX_LT_CURRENT$ac_delim
15447 SPEEX_LT_REVISION!$SPEEX_LT_REVISION$ac_delim
15448 SPEEX_LT_AGE!$SPEEX_LT_AGE$ac_delim
15449 SPEEX_VERSION!$SPEEX_VERSION$ac_delim
15450 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
15451 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
15452 INSTALL_DATA!$INSTALL_DATA$ac_delim
15453 CYGPATH_W!$CYGPATH_W$ac_delim
15454 PACKAGE!$PACKAGE$ac_delim
15455 VERSION!$VERSION$ac_delim
15456 ACLOCAL!$ACLOCAL$ac_delim
15457 AUTOCONF!$AUTOCONF$ac_delim
15458 AUTOMAKE!$AUTOMAKE$ac_delim
15459 AUTOHEADER!$AUTOHEADER$ac_delim
15460 MAKEINFO!$MAKEINFO$ac_delim
15461 AMTAR!$AMTAR$ac_delim
15462 install_sh!$install_sh$ac_delim
15463 STRIP!$STRIP$ac_delim
15464 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
15465 mkdir_p!$mkdir_p$ac_delim
15466 AWK!$AWK$ac_delim
15467 SET_MAKE!$SET_MAKE$ac_delim
15468 am__leading_dot!$am__leading_dot$ac_delim
15469 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
15470 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
15471 MAINT!$MAINT$ac_delim
15472 build!$build$ac_delim
15473 build_cpu!$build_cpu$ac_delim
15474 build_vendor!$build_vendor$ac_delim
15475 build_os!$build_os$ac_delim
15476 host!$host$ac_delim
15477 host_cpu!$host_cpu$ac_delim
15478 host_vendor!$host_vendor$ac_delim
15479 host_os!$host_os$ac_delim
15480 AS!$AS$ac_delim
15481 DLLTOOL!$DLLTOOL$ac_delim
15482 OBJDUMP!$OBJDUMP$ac_delim
15483 LIBTOOL!$LIBTOOL$ac_delim
15484 CC!$CC$ac_delim
15485 CFLAGS!$CFLAGS$ac_delim
15486 LDFLAGS!$LDFLAGS$ac_delim
15487 CPPFLAGS!$CPPFLAGS$ac_delim
15488 ac_ct_CC!$ac_ct_CC$ac_delim
15489 EXEEXT!$EXEEXT$ac_delim
15490 OBJEXT!$OBJEXT$ac_delim
15491 DEPDIR!$DEPDIR$ac_delim
15492 am__include!$am__include$ac_delim
15493 am__quote!$am__quote$ac_delim
15494 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
15495 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
15496 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
15497 CCDEPMODE!$CCDEPMODE$ac_delim
15498 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
15499 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
15500 SED!$SED$ac_delim
15501 GREP!$GREP$ac_delim
15502 EGREP!$EGREP$ac_delim
15503 FGREP!$FGREP$ac_delim
15504 LD!$LD$ac_delim
15505 DUMPBIN!$DUMPBIN$ac_delim
15506 _ACEOF
15507
15508   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
15509     break
15510   elif $ac_last_try; then
15511     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15512 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15513    { (exit 1); exit 1; }; }
15514   else
15515     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15516   fi
15517 done
15518
15519 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
15520 if test -n "$ac_eof"; then
15521   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
15522   ac_eof=`expr $ac_eof + 1`
15523 fi
15524
15525 cat >>$CONFIG_STATUS <<_ACEOF
15526 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
15527 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15528 _ACEOF
15529 sed '
15530 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
15531 s/^/s,@/; s/!/@,|#_!!_#|/
15532 :n
15533 t n
15534 s/'"$ac_delim"'$/,g/; t
15535 s/$/\\/; p
15536 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
15537 ' >>$CONFIG_STATUS <conf$$subs.sed
15538 rm -f conf$$subs.sed
15539 cat >>$CONFIG_STATUS <<_ACEOF
15540 CEOF$ac_eof
15541 _ACEOF
15542
15543
15544 ac_delim='%!_!# '
15545 for ac_last_try in false false false false false :; do
15546   cat >conf$$subs.sed <<_ACEOF
15547 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
15548 NM!$NM$ac_delim
15549 LN_S!$LN_S$ac_delim
15550 AR!$AR$ac_delim
15551 RANLIB!$RANLIB$ac_delim
15552 lt_ECHO!$lt_ECHO$ac_delim
15553 DSYMUTIL!$DSYMUTIL$ac_delim
15554 NMEDIT!$NMEDIT$ac_delim
15555 LIPO!$LIPO$ac_delim
15556 OTOOL!$OTOOL$ac_delim
15557 OTOOL64!$OTOOL64$ac_delim
15558 CPP!$CPP$ac_delim
15559 OGG_CFLAGS!$OGG_CFLAGS$ac_delim
15560 OGG_LIBS!$OGG_LIBS$ac_delim
15561 src!$src$ac_delim
15562 LIBOBJS!$LIBOBJS$ac_delim
15563 PKG_CONFIG!$PKG_CONFIG$ac_delim
15564 FFT_CFLAGS!$FFT_CFLAGS$ac_delim
15565 FFT_LIBS!$FFT_LIBS$ac_delim
15566 BUILD_KISS_FFT_TRUE!$BUILD_KISS_FFT_TRUE$ac_delim
15567 BUILD_KISS_FFT_FALSE!$BUILD_KISS_FFT_FALSE$ac_delim
15568 BUILD_SMALLFT_TRUE!$BUILD_SMALLFT_TRUE$ac_delim
15569 BUILD_SMALLFT_FALSE!$BUILD_SMALLFT_FALSE$ac_delim
15570 FFT_PKGCONFIG!$FFT_PKGCONFIG$ac_delim
15571 SIZE16!$SIZE16$ac_delim
15572 SIZE32!$SIZE32$ac_delim
15573 LTLIBOBJS!$LTLIBOBJS$ac_delim
15574 _ACEOF
15575
15576   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 27; then
15577     break
15578   elif $ac_last_try; then
15579     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15580 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15581    { (exit 1); exit 1; }; }
15582   else
15583     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15584   fi
15585 done
15586
15587 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
15588 if test -n "$ac_eof"; then
15589   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
15590   ac_eof=`expr $ac_eof + 1`
15591 fi
15592
15593 cat >>$CONFIG_STATUS <<_ACEOF
15594 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
15595 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
15596 _ACEOF
15597 sed '
15598 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
15599 s/^/s,@/; s/!/@,|#_!!_#|/
15600 :n
15601 t n
15602 s/'"$ac_delim"'$/,g/; t
15603 s/$/\\/; p
15604 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
15605 ' >>$CONFIG_STATUS <conf$$subs.sed
15606 rm -f conf$$subs.sed
15607 cat >>$CONFIG_STATUS <<_ACEOF
15608 :end
15609 s/|#_!!_#|//g
15610 CEOF$ac_eof
15611 _ACEOF
15612
15613
15614 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15615 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15616 # trailing colons and then remove the whole line if VPATH becomes empty
15617 # (actually we leave an empty line to preserve line numbers).
15618 if test "x$srcdir" = x.; then
15619   ac_vpsub='/^[  ]*VPATH[        ]*=/{
15620 s/:*\$(srcdir):*/:/
15621 s/:*\${srcdir}:*/:/
15622 s/:*@srcdir@:*/:/
15623 s/^\([^=]*=[     ]*\):*/\1/
15624 s/:*$//
15625 s/^[^=]*=[       ]*$//
15626 }'
15627 fi
15628
15629 cat >>$CONFIG_STATUS <<\_ACEOF
15630 fi # test -n "$CONFIG_FILES"
15631
15632
15633 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
15634 do
15635   case $ac_tag in
15636   :[FHLC]) ac_mode=$ac_tag; continue;;
15637   esac
15638   case $ac_mode$ac_tag in
15639   :[FHL]*:*);;
15640   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
15641 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
15642    { (exit 1); exit 1; }; };;
15643   :[FH]-) ac_tag=-:-;;
15644   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15645   esac
15646   ac_save_IFS=$IFS
15647   IFS=:
15648   set x $ac_tag
15649   IFS=$ac_save_IFS
15650   shift
15651   ac_file=$1
15652   shift
15653
15654   case $ac_mode in
15655   :L) ac_source=$1;;
15656   :[FH])
15657     ac_file_inputs=
15658     for ac_f
15659     do
15660       case $ac_f in
15661       -) ac_f="$tmp/stdin";;
15662       *) # Look for the file first in the build tree, then in the source tree
15663          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15664          # because $ac_f cannot contain `:'.
15665          test -f "$ac_f" ||
15666            case $ac_f in
15667            [\\/$]*) false;;
15668            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15669            esac ||
15670            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
15671 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
15672    { (exit 1); exit 1; }; };;
15673       esac
15674       ac_file_inputs="$ac_file_inputs $ac_f"
15675     done
15676
15677     # Let's still pretend it is `configure' which instantiates (i.e., don't
15678     # use $as_me), people would be surprised to read:
15679     #    /* config.h.  Generated by config.status.  */
15680     configure_input="Generated from "`IFS=:
15681           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
15682     if test x"$ac_file" != x-; then
15683       configure_input="$ac_file.  $configure_input"
15684       { echo "$as_me:$LINENO: creating $ac_file" >&5
15685 echo "$as_me: creating $ac_file" >&6;}
15686     fi
15687
15688     case $ac_tag in
15689     *:-:* | *:-) cat >"$tmp/stdin";;
15690     esac
15691     ;;
15692   esac
15693
15694   ac_dir=`$as_dirname -- "$ac_file" ||
15695 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15696          X"$ac_file" : 'X\(//\)[^/]' \| \
15697          X"$ac_file" : 'X\(//\)$' \| \
15698          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15699 echo X"$ac_file" |
15700     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15701             s//\1/
15702             q
15703           }
15704           /^X\(\/\/\)[^/].*/{
15705             s//\1/
15706             q
15707           }
15708           /^X\(\/\/\)$/{
15709             s//\1/
15710             q
15711           }
15712           /^X\(\/\).*/{
15713             s//\1/
15714             q
15715           }
15716           s/.*/./; q'`
15717   { as_dir="$ac_dir"
15718   case $as_dir in #(
15719   -*) as_dir=./$as_dir;;
15720   esac
15721   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15722     as_dirs=
15723     while :; do
15724       case $as_dir in #(
15725       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
15726       *) as_qdir=$as_dir;;
15727       esac
15728       as_dirs="'$as_qdir' $as_dirs"
15729       as_dir=`$as_dirname -- "$as_dir" ||
15730 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15731          X"$as_dir" : 'X\(//\)[^/]' \| \
15732          X"$as_dir" : 'X\(//\)$' \| \
15733          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15734 echo X"$as_dir" |
15735     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15736             s//\1/
15737             q
15738           }
15739           /^X\(\/\/\)[^/].*/{
15740             s//\1/
15741             q
15742           }
15743           /^X\(\/\/\)$/{
15744             s//\1/
15745             q
15746           }
15747           /^X\(\/\).*/{
15748             s//\1/
15749             q
15750           }
15751           s/.*/./; q'`
15752       test -d "$as_dir" && break
15753     done
15754     test -z "$as_dirs" || eval "mkdir $as_dirs"
15755   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15756 echo "$as_me: error: cannot create directory $as_dir" >&2;}
15757    { (exit 1); exit 1; }; }; }
15758   ac_builddir=.
15759
15760 case "$ac_dir" in
15761 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15762 *)
15763   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15764   # A ".." for each directory in $ac_dir_suffix.
15765   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
15766   case $ac_top_builddir_sub in
15767   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15768   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15769   esac ;;
15770 esac
15771 ac_abs_top_builddir=$ac_pwd
15772 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15773 # for backward compatibility:
15774 ac_top_builddir=$ac_top_build_prefix
15775
15776 case $srcdir in
15777   .)  # We are building in place.
15778     ac_srcdir=.
15779     ac_top_srcdir=$ac_top_builddir_sub
15780     ac_abs_top_srcdir=$ac_pwd ;;
15781   [\\/]* | ?:[\\/]* )  # Absolute name.
15782     ac_srcdir=$srcdir$ac_dir_suffix;
15783     ac_top_srcdir=$srcdir
15784     ac_abs_top_srcdir=$srcdir ;;
15785   *) # Relative name.
15786     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15787     ac_top_srcdir=$ac_top_build_prefix$srcdir
15788     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15789 esac
15790 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15791
15792
15793   case $ac_mode in
15794   :F)
15795   #
15796   # CONFIG_FILE
15797   #
15798
15799   case $INSTALL in
15800   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15801   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15802   esac
15803 _ACEOF
15804
15805 cat >>$CONFIG_STATUS <<\_ACEOF
15806 # If the template does not know about datarootdir, expand it.
15807 # FIXME: This hack should be removed a few years after 2.60.
15808 ac_datarootdir_hack=; ac_datarootdir_seen=
15809
15810 case `sed -n '/datarootdir/ {
15811   p
15812   q
15813 }
15814 /@datadir@/p
15815 /@docdir@/p
15816 /@infodir@/p
15817 /@localedir@/p
15818 /@mandir@/p
15819 ' $ac_file_inputs` in
15820 *datarootdir*) ac_datarootdir_seen=yes;;
15821 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15822   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15823 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15824 _ACEOF
15825 cat >>$CONFIG_STATUS <<_ACEOF
15826   ac_datarootdir_hack='
15827   s&@datadir@&$datadir&g
15828   s&@docdir@&$docdir&g
15829   s&@infodir@&$infodir&g
15830   s&@localedir@&$localedir&g
15831   s&@mandir@&$mandir&g
15832     s&\\\${datarootdir}&$datarootdir&g' ;;
15833 esac
15834 _ACEOF
15835
15836 # Neutralize VPATH when `$srcdir' = `.'.
15837 # Shell code in configure.ac might set extrasub.
15838 # FIXME: do we really want to maintain this feature?
15839 cat >>$CONFIG_STATUS <<_ACEOF
15840   sed "$ac_vpsub
15841 $extrasub
15842 _ACEOF
15843 cat >>$CONFIG_STATUS <<\_ACEOF
15844 :t
15845 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15846 s&@configure_input@&$configure_input&;t t
15847 s&@top_builddir@&$ac_top_builddir_sub&;t t
15848 s&@srcdir@&$ac_srcdir&;t t
15849 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15850 s&@top_srcdir@&$ac_top_srcdir&;t t
15851 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15852 s&@builddir@&$ac_builddir&;t t
15853 s&@abs_builddir@&$ac_abs_builddir&;t t
15854 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15855 s&@INSTALL@&$ac_INSTALL&;t t
15856 $ac_datarootdir_hack
15857 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
15858
15859 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15860   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15861   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15862   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15863 which seems to be undefined.  Please make sure it is defined." >&5
15864 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15865 which seems to be undefined.  Please make sure it is defined." >&2;}
15866
15867   rm -f "$tmp/stdin"
15868   case $ac_file in
15869   -) cat "$tmp/out"; rm -f "$tmp/out";;
15870   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
15871   esac
15872  ;;
15873   :H)
15874   #
15875   # CONFIG_HEADER
15876   #
15877 _ACEOF
15878
15879 # Transform confdefs.h into a sed script `conftest.defines', that
15880 # substitutes the proper values into config.h.in to produce config.h.
15881 rm -f conftest.defines conftest.tail
15882 # First, append a space to every undef/define line, to ease matching.
15883 echo 's/$/ /' >conftest.defines
15884 # Then, protect against being on the right side of a sed subst, or in
15885 # an unquoted here document, in config.status.  If some macros were
15886 # called several times there might be several #defines for the same
15887 # symbol, which is useless.  But do not sort them, since the last
15888 # AC_DEFINE must be honored.
15889 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15890 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
15891 # NAME is the cpp macro being defined, VALUE is the value it is being given.
15892 # PARAMS is the parameter list in the macro definition--in most cases, it's
15893 # just an empty string.
15894 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
15895 ac_dB='\\)[      (].*,\\1define\\2'
15896 ac_dC=' '
15897 ac_dD=' ,'
15898
15899 uniq confdefs.h |
15900   sed -n '
15901         t rset
15902         :rset
15903         s/^[     ]*#[    ]*define[       ][      ]*//
15904         t ok
15905         d
15906         :ok
15907         s/[\\&,]/\\&/g
15908         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
15909         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
15910   ' >>conftest.defines
15911
15912 # Remove the space that was appended to ease matching.
15913 # Then replace #undef with comments.  This is necessary, for
15914 # example, in the case of _POSIX_SOURCE, which is predefined and required
15915 # on some systems where configure will not decide to define it.
15916 # (The regexp can be short, since the line contains either #define or #undef.)
15917 echo 's/ $//
15918 s,^[     #]*u.*,/* & */,' >>conftest.defines
15919
15920 # Break up conftest.defines:
15921 ac_max_sed_lines=50
15922
15923 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
15924 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
15925 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
15926 # et cetera.
15927 ac_in='$ac_file_inputs'
15928 ac_out='"$tmp/out1"'
15929 ac_nxt='"$tmp/out2"'
15930
15931 while :
15932 do
15933   # Write a here document:
15934     cat >>$CONFIG_STATUS <<_ACEOF
15935     # First, check the format of the line:
15936     cat >"\$tmp/defines.sed" <<\\CEOF
15937 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
15938 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
15939 b
15940 :def
15941 _ACEOF
15942   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
15943   echo 'CEOF
15944     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
15945   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
15946   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
15947   grep . conftest.tail >/dev/null || break
15948   rm -f conftest.defines
15949   mv conftest.tail conftest.defines
15950 done
15951 rm -f conftest.defines conftest.tail
15952
15953 echo "ac_result=$ac_in" >>$CONFIG_STATUS
15954 cat >>$CONFIG_STATUS <<\_ACEOF
15955   if test x"$ac_file" != x-; then
15956     echo "/* $configure_input  */" >"$tmp/config.h"
15957     cat "$ac_result" >>"$tmp/config.h"
15958     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
15959       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15960 echo "$as_me: $ac_file is unchanged" >&6;}
15961     else
15962       rm -f $ac_file
15963       mv "$tmp/config.h" $ac_file
15964     fi
15965   else
15966     echo "/* $configure_input  */"
15967     cat "$ac_result"
15968   fi
15969   rm -f "$tmp/out12"
15970 # Compute $ac_file's index in $config_headers.
15971 _am_stamp_count=1
15972 for _am_header in $config_headers :; do
15973   case $_am_header in
15974     $ac_file | $ac_file:* )
15975       break ;;
15976     * )
15977       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15978   esac
15979 done
15980 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
15981 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15982          X$ac_file : 'X\(//\)[^/]' \| \
15983          X$ac_file : 'X\(//\)$' \| \
15984          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
15985 echo X$ac_file |
15986     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15987             s//\1/
15988             q
15989           }
15990           /^X\(\/\/\)[^/].*/{
15991             s//\1/
15992             q
15993           }
15994           /^X\(\/\/\)$/{
15995             s//\1/
15996             q
15997           }
15998           /^X\(\/\).*/{
15999             s//\1/
16000             q
16001           }
16002           s/.*/./; q'`/stamp-h$_am_stamp_count
16003  ;;
16004
16005   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
16006 echo "$as_me: executing $ac_file commands" >&6;}
16007  ;;
16008   esac
16009
16010
16011   case $ac_file$ac_mode in
16012     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
16013   # Strip MF so we end up with the name of the file.
16014   mf=`echo "$mf" | sed -e 's/:.*$//'`
16015   # Check whether this is an Automake generated Makefile or not.
16016   # We used to match only the files named `Makefile.in', but
16017   # some people rename them; so instead we look at the file content.
16018   # Grep'ing the first line is not enough: some people post-process
16019   # each Makefile.in and add a new line on top of each file to say so.
16020   # So let's grep whole file.
16021   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
16022     dirpart=`$as_dirname -- "$mf" ||
16023 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16024          X"$mf" : 'X\(//\)[^/]' \| \
16025          X"$mf" : 'X\(//\)$' \| \
16026          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16027 echo X"$mf" |
16028     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16029             s//\1/
16030             q
16031           }
16032           /^X\(\/\/\)[^/].*/{
16033             s//\1/
16034             q
16035           }
16036           /^X\(\/\/\)$/{
16037             s//\1/
16038             q
16039           }
16040           /^X\(\/\).*/{
16041             s//\1/
16042             q
16043           }
16044           s/.*/./; q'`
16045   else
16046     continue
16047   fi
16048   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
16049   # Extract the definition of DEP_FILES from the Makefile without
16050   # running `make'.
16051   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16052   test -z "$DEPDIR" && continue
16053   # When using ansi2knr, U may be empty or an underscore; expand it
16054   U=`sed -n 's/^U = //p' < "$mf"`
16055   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
16056   # We invoke sed twice because it is the simplest approach to
16057   # changing $(DEPDIR) to its actual value in the expansion.
16058   for file in `sed -n '
16059     /^DEP_FILES = .*\\\\$/ {
16060       s/^DEP_FILES = //
16061       :loop
16062         s/\\\\$//
16063         p
16064         n
16065         /\\\\$/ b loop
16066       p
16067     }
16068     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
16069        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16070     # Make sure the directory exists.
16071     test -f "$dirpart/$file" && continue
16072     fdir=`$as_dirname -- "$file" ||
16073 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16074          X"$file" : 'X\(//\)[^/]' \| \
16075          X"$file" : 'X\(//\)$' \| \
16076          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16077 echo X"$file" |
16078     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16079             s//\1/
16080             q
16081           }
16082           /^X\(\/\/\)[^/].*/{
16083             s//\1/
16084             q
16085           }
16086           /^X\(\/\/\)$/{
16087             s//\1/
16088             q
16089           }
16090           /^X\(\/\).*/{
16091             s//\1/
16092             q
16093           }
16094           s/.*/./; q'`
16095     { as_dir=$dirpart/$fdir
16096   case $as_dir in #(
16097   -*) as_dir=./$as_dir;;
16098   esac
16099   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16100     as_dirs=
16101     while :; do
16102       case $as_dir in #(
16103       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16104       *) as_qdir=$as_dir;;
16105       esac
16106       as_dirs="'$as_qdir' $as_dirs"
16107       as_dir=`$as_dirname -- "$as_dir" ||
16108 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16109          X"$as_dir" : 'X\(//\)[^/]' \| \
16110          X"$as_dir" : 'X\(//\)$' \| \
16111          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16112 echo X"$as_dir" |
16113     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16114             s//\1/
16115             q
16116           }
16117           /^X\(\/\/\)[^/].*/{
16118             s//\1/
16119             q
16120           }
16121           /^X\(\/\/\)$/{
16122             s//\1/
16123             q
16124           }
16125           /^X\(\/\).*/{
16126             s//\1/
16127             q
16128           }
16129           s/.*/./; q'`
16130       test -d "$as_dir" && break
16131     done
16132     test -z "$as_dirs" || eval "mkdir $as_dirs"
16133   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16134 echo "$as_me: error: cannot create directory $as_dir" >&2;}
16135    { (exit 1); exit 1; }; }; }
16136     # echo "creating $dirpart/$file"
16137     echo '# dummy' > "$dirpart/$file"
16138   done
16139 done
16140  ;;
16141     "libtool":C)
16142
16143     # See if we are running on zsh, and set the options which allow our
16144     # commands through without removal of \ escapes.
16145     if test -n "${ZSH_VERSION+set}" ; then
16146       setopt NO_GLOB_SUBST
16147     fi
16148
16149     cfgfile="${ofile}T"
16150     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16151     $RM "$cfgfile"
16152
16153     cat <<_LT_EOF >> "$cfgfile"
16154 #! $SHELL
16155
16156 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16157 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16158 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16159 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16160 #
16161 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16162 #                 2006, 2007, 2008 Free Software Foundation, Inc.
16163 #   Written by Gordon Matzigkeit, 1996
16164 #
16165 #   This file is part of GNU Libtool.
16166 #
16167 # GNU Libtool is free software; you can redistribute it and/or
16168 # modify it under the terms of the GNU General Public License as
16169 # published by the Free Software Foundation; either version 2 of
16170 # the License, or (at your option) any later version.
16171 #
16172 # As a special exception to the GNU General Public License,
16173 # if you distribute this file as part of a program or library that
16174 # is built using GNU Libtool, you may include this file under the
16175 # same distribution terms that you use for the rest of that program.
16176 #
16177 # GNU Libtool is distributed in the hope that it will be useful,
16178 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16179 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16180 # GNU General Public License for more details.
16181 #
16182 # You should have received a copy of the GNU General Public License
16183 # along with GNU Libtool; see the file COPYING.  If not, a copy
16184 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16185 # obtained by writing to the Free Software Foundation, Inc.,
16186 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16187
16188
16189 # The names of the tagged configurations supported by this script.
16190 available_tags=""
16191
16192 # ### BEGIN LIBTOOL CONFIG
16193
16194 # Assembler program.
16195 AS=$AS
16196
16197 # DLL creation program.
16198 DLLTOOL=$DLLTOOL
16199
16200 # Object dumper program.
16201 OBJDUMP=$OBJDUMP
16202
16203 # Which release of libtool.m4 was used?
16204 macro_version=$macro_version
16205 macro_revision=$macro_revision
16206
16207 # Whether or not to build shared libraries.
16208 build_libtool_libs=$enable_shared
16209
16210 # Whether or not to build static libraries.
16211 build_old_libs=$enable_static
16212
16213 # What type of objects to build.
16214 pic_mode=$pic_mode
16215
16216 # Whether or not to optimize for fast installation.
16217 fast_install=$enable_fast_install
16218
16219 # The host system.
16220 host_alias=$host_alias
16221 host=$host
16222 host_os=$host_os
16223
16224 # The build system.
16225 build_alias=$build_alias
16226 build=$build
16227 build_os=$build_os
16228
16229 # A sed program that does not truncate output.
16230 SED=$lt_SED
16231
16232 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16233 Xsed="\$SED -e 1s/^X//"
16234
16235 # A grep program that handles long lines.
16236 GREP=$lt_GREP
16237
16238 # An ERE matcher.
16239 EGREP=$lt_EGREP
16240
16241 # A literal string matcher.
16242 FGREP=$lt_FGREP
16243
16244 # A BSD- or MS-compatible name lister.
16245 NM=$lt_NM
16246
16247 # Whether we need soft or hard links.
16248 LN_S=$lt_LN_S
16249
16250 # What is the maximum length of a command?
16251 max_cmd_len=$max_cmd_len
16252
16253 # Object file suffix (normally "o").
16254 objext=$ac_objext
16255
16256 # Executable file suffix (normally "").
16257 exeext=$exeext
16258
16259 # whether the shell understands "unset".
16260 lt_unset=$lt_unset
16261
16262 # turn spaces into newlines.
16263 SP2NL=$lt_lt_SP2NL
16264
16265 # turn newlines into spaces.
16266 NL2SP=$lt_lt_NL2SP
16267
16268 # How to create reloadable object files.
16269 reload_flag=$lt_reload_flag
16270 reload_cmds=$lt_reload_cmds
16271
16272 # Method to check whether dependent libraries are shared objects.
16273 deplibs_check_method=$lt_deplibs_check_method
16274
16275 # Command to use when deplibs_check_method == "file_magic".
16276 file_magic_cmd=$lt_file_magic_cmd
16277
16278 # The archiver.
16279 AR=$lt_AR
16280 AR_FLAGS=$lt_AR_FLAGS
16281
16282 # A symbol stripping program.
16283 STRIP=$lt_STRIP
16284
16285 # Commands used to install an old-style archive.
16286 RANLIB=$lt_RANLIB
16287 old_postinstall_cmds=$lt_old_postinstall_cmds
16288 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16289
16290 # A C compiler.
16291 LTCC=$lt_CC
16292
16293 # LTCC compiler flags.
16294 LTCFLAGS=$lt_CFLAGS
16295
16296 # Take the output of nm and produce a listing of raw symbols and C names.
16297 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16298
16299 # Transform the output of nm in a proper C declaration.
16300 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16301
16302 # Transform the output of nm in a C name address pair.
16303 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16304
16305 # Transform the output of nm in a C name address pair when lib prefix is needed.
16306 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16307
16308 # The name of the directory that contains temporary libtool files.
16309 objdir=$objdir
16310
16311 # Shell to use when invoking shell scripts.
16312 SHELL=$lt_SHELL
16313
16314 # An echo program that does not interpret backslashes.
16315 ECHO=$lt_ECHO
16316
16317 # Used to examine libraries when file_magic_cmd begins with "file".
16318 MAGIC_CMD=$MAGIC_CMD
16319
16320 # Must we lock files when doing compilation?
16321 need_locks=$lt_need_locks
16322
16323 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16324 DSYMUTIL=$lt_DSYMUTIL
16325
16326 # Tool to change global to local symbols on Mac OS X.
16327 NMEDIT=$lt_NMEDIT
16328
16329 # Tool to manipulate fat objects and archives on Mac OS X.
16330 LIPO=$lt_LIPO
16331
16332 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16333 OTOOL=$lt_OTOOL
16334
16335 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16336 OTOOL64=$lt_OTOOL64
16337
16338 # Old archive suffix (normally "a").
16339 libext=$libext
16340
16341 # Shared library suffix (normally ".so").
16342 shrext_cmds=$lt_shrext_cmds
16343
16344 # The commands to extract the exported symbol list from a shared archive.
16345 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16346
16347 # Variables whose values should be saved in libtool wrapper scripts and
16348 # restored at link time.
16349 variables_saved_for_relink=$lt_variables_saved_for_relink
16350
16351 # Do we need the "lib" prefix for modules?
16352 need_lib_prefix=$need_lib_prefix
16353
16354 # Do we need a version for libraries?
16355 need_version=$need_version
16356
16357 # Library versioning type.
16358 version_type=$version_type
16359
16360 # Shared library runtime path variable.
16361 runpath_var=$runpath_var
16362
16363 # Shared library path variable.
16364 shlibpath_var=$shlibpath_var
16365
16366 # Is shlibpath searched before the hard-coded library search path?
16367 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16368
16369 # Format of library name prefix.
16370 libname_spec=$lt_libname_spec
16371
16372 # List of archive names.  First name is the real one, the rest are links.
16373 # The last name is the one that the linker finds with -lNAME
16374 library_names_spec=$lt_library_names_spec
16375
16376 # The coded name of the library, if different from the real name.
16377 soname_spec=$lt_soname_spec
16378
16379 # Command to use after installation of a shared archive.
16380 postinstall_cmds=$lt_postinstall_cmds
16381
16382 # Command to use after uninstallation of a shared archive.
16383 postuninstall_cmds=$lt_postuninstall_cmds
16384
16385 # Commands used to finish a libtool library installation in a directory.
16386 finish_cmds=$lt_finish_cmds
16387
16388 # As "finish_cmds", except a single script fragment to be evaled but
16389 # not shown.
16390 finish_eval=$lt_finish_eval
16391
16392 # Whether we should hardcode library paths into libraries.
16393 hardcode_into_libs=$hardcode_into_libs
16394
16395 # Compile-time system search path for libraries.
16396 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16397
16398 # Run-time system search path for libraries.
16399 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16400
16401 # Whether dlopen is supported.
16402 dlopen_support=$enable_dlopen
16403
16404 # Whether dlopen of programs is supported.
16405 dlopen_self=$enable_dlopen_self
16406
16407 # Whether dlopen of statically linked programs is supported.
16408 dlopen_self_static=$enable_dlopen_self_static
16409
16410 # Commands to strip libraries.
16411 old_striplib=$lt_old_striplib
16412 striplib=$lt_striplib
16413
16414
16415 # The linker used to build libraries.
16416 LD=$lt_LD
16417
16418 # Commands used to build an old-style archive.
16419 old_archive_cmds=$lt_old_archive_cmds
16420
16421 # A language specific compiler.
16422 CC=$lt_compiler
16423
16424 # Is the compiler the GNU compiler?
16425 with_gcc=$GCC
16426
16427 # Compiler flag to turn off builtin functions.
16428 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16429
16430 # How to pass a linker flag through the compiler.
16431 wl=$lt_lt_prog_compiler_wl
16432
16433 # Additional compiler flags for building library objects.
16434 pic_flag=$lt_lt_prog_compiler_pic
16435
16436 # Compiler flag to prevent dynamic linking.
16437 link_static_flag=$lt_lt_prog_compiler_static
16438
16439 # Does compiler simultaneously support -c and -o options?
16440 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16441
16442 # Whether or not to add -lc for building shared libraries.
16443 build_libtool_need_lc=$archive_cmds_need_lc
16444
16445 # Whether or not to disallow shared libs when runtime libs are static.
16446 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16447
16448 # Compiler flag to allow reflexive dlopens.
16449 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16450
16451 # Compiler flag to generate shared objects directly from archives.
16452 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16453
16454 # Whether the compiler copes with passing no objects directly.
16455 compiler_needs_object=$lt_compiler_needs_object
16456
16457 # Create an old-style archive from a shared archive.
16458 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16459
16460 # Create a temporary old-style archive to link instead of a shared archive.
16461 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16462
16463 # Commands used to build a shared archive.
16464 archive_cmds=$lt_archive_cmds
16465 archive_expsym_cmds=$lt_archive_expsym_cmds
16466
16467 # Commands used to build a loadable module if different from building
16468 # a shared archive.
16469 module_cmds=$lt_module_cmds
16470 module_expsym_cmds=$lt_module_expsym_cmds
16471
16472 # Whether we are building with GNU ld or not.
16473 with_gnu_ld=$lt_with_gnu_ld
16474
16475 # Flag that allows shared libraries with undefined symbols to be built.
16476 allow_undefined_flag=$lt_allow_undefined_flag
16477
16478 # Flag that enforces no undefined symbols.
16479 no_undefined_flag=$lt_no_undefined_flag
16480
16481 # Flag to hardcode \$libdir into a binary during linking.
16482 # This must work even if \$libdir does not exist
16483 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16484
16485 # If ld is used when linking, flag to hardcode \$libdir into a binary
16486 # during linking.  This must work even if \$libdir does not exist.
16487 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16488
16489 # Whether we need a single "-rpath" flag with a separated argument.
16490 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16491
16492 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16493 # DIR into the resulting binary.
16494 hardcode_direct=$hardcode_direct
16495
16496 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16497 # DIR into the resulting binary and the resulting library dependency is
16498 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16499 # library is relocated.
16500 hardcode_direct_absolute=$hardcode_direct_absolute
16501
16502 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16503 # into the resulting binary.
16504 hardcode_minus_L=$hardcode_minus_L
16505
16506 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16507 # into the resulting binary.
16508 hardcode_shlibpath_var=$hardcode_shlibpath_var
16509
16510 # Set to "yes" if building a shared library automatically hardcodes DIR
16511 # into the library and all subsequent libraries and executables linked
16512 # against it.
16513 hardcode_automatic=$hardcode_automatic
16514
16515 # Set to yes if linker adds runtime paths of dependent libraries
16516 # to runtime path list.
16517 inherit_rpath=$inherit_rpath
16518
16519 # Whether libtool must link a program against all its dependency libraries.
16520 link_all_deplibs=$link_all_deplibs
16521
16522 # Fix the shell variable \$srcfile for the compiler.
16523 fix_srcfile_path=$lt_fix_srcfile_path
16524
16525 # Set to "yes" if exported symbols are required.
16526 always_export_symbols=$always_export_symbols
16527
16528 # The commands to list exported symbols.
16529 export_symbols_cmds=$lt_export_symbols_cmds
16530
16531 # Symbols that should not be listed in the preloaded symbols.
16532 exclude_expsyms=$lt_exclude_expsyms
16533
16534 # Symbols that must always be exported.
16535 include_expsyms=$lt_include_expsyms
16536
16537 # Commands necessary for linking programs (against libraries) with templates.
16538 prelink_cmds=$lt_prelink_cmds
16539
16540 # Specify filename containing input files.
16541 file_list_spec=$lt_file_list_spec
16542
16543 # How to hardcode a shared library path into an executable.
16544 hardcode_action=$hardcode_action
16545
16546 # ### END LIBTOOL CONFIG
16547
16548 _LT_EOF
16549
16550   case $host_os in
16551   aix3*)
16552     cat <<\_LT_EOF >> "$cfgfile"
16553 # AIX sometimes has problems with the GCC collect2 program.  For some
16554 # reason, if we set the COLLECT_NAMES environment variable, the problems
16555 # vanish in a puff of smoke.
16556 if test "X${COLLECT_NAMES+set}" != Xset; then
16557   COLLECT_NAMES=
16558   export COLLECT_NAMES
16559 fi
16560 _LT_EOF
16561     ;;
16562   esac
16563
16564
16565 ltmain="$ac_aux_dir/ltmain.sh"
16566
16567
16568   # We use sed instead of cat because bash on DJGPP gets confused if
16569   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16570   # text mode, it properly converts lines to CR/LF.  This bash problem
16571   # is reportedly fixed, but why not run on old versions too?
16572   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16573     || (rm -f "$cfgfile"; exit 1)
16574
16575   case $xsi_shell in
16576   yes)
16577     cat << \_LT_EOF >> "$cfgfile"
16578
16579 # func_dirname file append nondir_replacement
16580 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16581 # otherwise set result to NONDIR_REPLACEMENT.
16582 func_dirname ()
16583 {
16584   case ${1} in
16585     */*) func_dirname_result="${1%/*}${2}" ;;
16586     *  ) func_dirname_result="${3}" ;;
16587   esac
16588 }
16589
16590 # func_basename file
16591 func_basename ()
16592 {
16593   func_basename_result="${1##*/}"
16594 }
16595
16596 # func_dirname_and_basename file append nondir_replacement
16597 # perform func_basename and func_dirname in a single function
16598 # call:
16599 #   dirname:  Compute the dirname of FILE.  If nonempty,
16600 #             add APPEND to the result, otherwise set result
16601 #             to NONDIR_REPLACEMENT.
16602 #             value returned in "$func_dirname_result"
16603 #   basename: Compute filename of FILE.
16604 #             value retuned in "$func_basename_result"
16605 # Implementation must be kept synchronized with func_dirname
16606 # and func_basename. For efficiency, we do not delegate to
16607 # those functions but instead duplicate the functionality here.
16608 func_dirname_and_basename ()
16609 {
16610   case ${1} in
16611     */*) func_dirname_result="${1%/*}${2}" ;;
16612     *  ) func_dirname_result="${3}" ;;
16613   esac
16614   func_basename_result="${1##*/}"
16615 }
16616
16617 # func_stripname prefix suffix name
16618 # strip PREFIX and SUFFIX off of NAME.
16619 # PREFIX and SUFFIX must not contain globbing or regex special
16620 # characters, hashes, percent signs, but SUFFIX may contain a leading
16621 # dot (in which case that matches only a dot).
16622 func_stripname ()
16623 {
16624   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16625   # positional parameters, so assign one to ordinary parameter first.
16626   func_stripname_result=${3}
16627   func_stripname_result=${func_stripname_result#"${1}"}
16628   func_stripname_result=${func_stripname_result%"${2}"}
16629 }
16630
16631 # func_opt_split
16632 func_opt_split ()
16633 {
16634   func_opt_split_opt=${1%%=*}
16635   func_opt_split_arg=${1#*=}
16636 }
16637
16638 # func_lo2o object
16639 func_lo2o ()
16640 {
16641   case ${1} in
16642     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16643     *)    func_lo2o_result=${1} ;;
16644   esac
16645 }
16646
16647 # func_xform libobj-or-source
16648 func_xform ()
16649 {
16650   func_xform_result=${1%.*}.lo
16651 }
16652
16653 # func_arith arithmetic-term...
16654 func_arith ()
16655 {
16656   func_arith_result=$(( $* ))
16657 }
16658
16659 # func_len string
16660 # STRING may not start with a hyphen.
16661 func_len ()
16662 {
16663   func_len_result=${#1}
16664 }
16665
16666 _LT_EOF
16667     ;;
16668   *) # Bourne compatible functions.
16669     cat << \_LT_EOF >> "$cfgfile"
16670
16671 # func_dirname file append nondir_replacement
16672 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16673 # otherwise set result to NONDIR_REPLACEMENT.
16674 func_dirname ()
16675 {
16676   # Extract subdirectory from the argument.
16677   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16678   if test "X$func_dirname_result" = "X${1}"; then
16679     func_dirname_result="${3}"
16680   else
16681     func_dirname_result="$func_dirname_result${2}"
16682   fi
16683 }
16684
16685 # func_basename file
16686 func_basename ()
16687 {
16688   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16689 }
16690
16691
16692 # func_stripname prefix suffix name
16693 # strip PREFIX and SUFFIX off of NAME.
16694 # PREFIX and SUFFIX must not contain globbing or regex special
16695 # characters, hashes, percent signs, but SUFFIX may contain a leading
16696 # dot (in which case that matches only a dot).
16697 # func_strip_suffix prefix name
16698 func_stripname ()
16699 {
16700   case ${2} in
16701     .*) func_stripname_result=`$ECHO "X${3}" \
16702            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16703     *)  func_stripname_result=`$ECHO "X${3}" \
16704            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16705   esac
16706 }
16707
16708 # sed scripts:
16709 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16710 my_sed_long_arg='1s/^-[^=]*=//'
16711
16712 # func_opt_split
16713 func_opt_split ()
16714 {
16715   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16716   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16717 }
16718
16719 # func_lo2o object
16720 func_lo2o ()
16721 {
16722   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16723 }
16724
16725 # func_xform libobj-or-source
16726 func_xform ()
16727 {
16728   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
16729 }
16730
16731 # func_arith arithmetic-term...
16732 func_arith ()
16733 {
16734   func_arith_result=`expr "$@"`
16735 }
16736
16737 # func_len string
16738 # STRING may not start with a hyphen.
16739 func_len ()
16740 {
16741   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16742 }
16743
16744 _LT_EOF
16745 esac
16746
16747 case $lt_shell_append in
16748   yes)
16749     cat << \_LT_EOF >> "$cfgfile"
16750
16751 # func_append var value
16752 # Append VALUE to the end of shell variable VAR.
16753 func_append ()
16754 {
16755   eval "$1+=\$2"
16756 }
16757 _LT_EOF
16758     ;;
16759   *)
16760     cat << \_LT_EOF >> "$cfgfile"
16761
16762 # func_append var value
16763 # Append VALUE to the end of shell variable VAR.
16764 func_append ()
16765 {
16766   eval "$1=\$$1\$2"
16767 }
16768
16769 _LT_EOF
16770     ;;
16771   esac
16772
16773
16774   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16775     || (rm -f "$cfgfile"; exit 1)
16776
16777   mv -f "$cfgfile" "$ofile" ||
16778     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16779   chmod +x "$ofile"
16780
16781  ;;
16782
16783   esac
16784 done # for ac_tag
16785
16786
16787 { (exit 0); exit 0; }
16788 _ACEOF
16789 chmod +x $CONFIG_STATUS
16790 ac_clean_files=$ac_clean_files_save
16791
16792
16793 # configure is writing to config.log, and then calls config.status.
16794 # config.status does its own redirection, appending to config.log.
16795 # Unfortunately, on DOS this fails, as config.log is still kept open
16796 # by configure, so config.status won't be able to write to it; its
16797 # output is simply discarded.  So we exec the FD to /dev/null,
16798 # effectively closing config.log, so it can be properly (re)opened and
16799 # appended to by config.status.  When coming back to configure, we
16800 # need to make the FD available again.
16801 if test "$no_create" != yes; then
16802   ac_cs_success=:
16803   ac_config_status_args=
16804   test "$silent" = yes &&
16805     ac_config_status_args="$ac_config_status_args --quiet"
16806   exec 5>/dev/null
16807   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16808   exec 5>>config.log
16809   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16810   # would make configure fail if this is the last instruction.
16811   $ac_cs_success || { (exit 1); exit 1; }
16812 fi
16813
16814
16815 if test "x$src" = "x"; then
16816 echo "**IMPORTANT**"
16817 echo "You don't seem to have the development package for libogg (libogg-devel) installed. Only the Speex library (libspeex) will be built (no encoder/decoder executable)"
16818 echo "You can download libogg from http://downloads.xiph.org/releases/ogg/"
16819 fi
16820
16821 echo "Type \"make; make install\" to compile and install Speex";