Merging the postbeta2 branch onto the mainline.
[platform/upstream/libvorbis.git] / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13 
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15   --enable-shared[=PKGS]  build shared libraries [default=yes]"
16 ac_help="$ac_help
17   --enable-static[=PKGS]  build static libraries [default=yes]"
18 ac_help="$ac_help
19   --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
20 ac_help="$ac_help
21   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
22 ac_help="$ac_help
23   --disable-libtool-lock  avoid locking (might break parallel builds)"
24 ac_help="$ac_help
25   --with-ogg=DIR          Set where the Ogg library is located"
26
27 # Initialize some variables set by options.
28 # The variables have the same names as the options, with
29 # dashes changed to underlines.
30 build=NONE
31 cache_file=./config.cache
32 exec_prefix=NONE
33 host=NONE
34 no_create=
35 nonopt=NONE
36 no_recursion=
37 prefix=NONE
38 program_prefix=NONE
39 program_suffix=NONE
40 program_transform_name=s,x,x,
41 silent=
42 site=
43 srcdir=
44 target=NONE
45 verbose=
46 x_includes=NONE
47 x_libraries=NONE
48 bindir='${exec_prefix}/bin'
49 sbindir='${exec_prefix}/sbin'
50 libexecdir='${exec_prefix}/libexec'
51 datadir='${prefix}/share'
52 sysconfdir='${prefix}/etc'
53 sharedstatedir='${prefix}/com'
54 localstatedir='${prefix}/var'
55 libdir='${exec_prefix}/lib'
56 includedir='${prefix}/include'
57 oldincludedir='/usr/include'
58 infodir='${prefix}/info'
59 mandir='${prefix}/man'
60
61 # Initialize some other variables.
62 subdirs=
63 MFLAGS= MAKEFLAGS=
64 SHELL=${CONFIG_SHELL-/bin/sh}
65 # Maximum number of lines to put in a shell here document.
66 ac_max_here_lines=12
67
68 ac_prev=
69 for ac_option
70 do
71
72   # If the previous option needs an argument, assign it.
73   if test -n "$ac_prev"; then
74     eval "$ac_prev=\$ac_option"
75     ac_prev=
76     continue
77   fi
78
79   case "$ac_option" in
80   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
81   *) ac_optarg= ;;
82   esac
83
84   # Accept the important Cygnus configure options, so we can diagnose typos.
85
86   case "$ac_option" in
87
88   -bindir | --bindir | --bindi | --bind | --bin | --bi)
89     ac_prev=bindir ;;
90   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
91     bindir="$ac_optarg" ;;
92
93   -build | --build | --buil | --bui | --bu)
94     ac_prev=build ;;
95   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
96     build="$ac_optarg" ;;
97
98   -cache-file | --cache-file | --cache-fil | --cache-fi \
99   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
100     ac_prev=cache_file ;;
101   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
102   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
103     cache_file="$ac_optarg" ;;
104
105   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
106     ac_prev=datadir ;;
107   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
108   | --da=*)
109     datadir="$ac_optarg" ;;
110
111   -disable-* | --disable-*)
112     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
113     # Reject names that are not valid shell variable names.
114     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
115       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
116     fi
117     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
118     eval "enable_${ac_feature}=no" ;;
119
120   -enable-* | --enable-*)
121     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
122     # Reject names that are not valid shell variable names.
123     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
124       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
125     fi
126     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
127     case "$ac_option" in
128       *=*) ;;
129       *) ac_optarg=yes ;;
130     esac
131     eval "enable_${ac_feature}='$ac_optarg'" ;;
132
133   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
134   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
135   | --exec | --exe | --ex)
136     ac_prev=exec_prefix ;;
137   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
138   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
139   | --exec=* | --exe=* | --ex=*)
140     exec_prefix="$ac_optarg" ;;
141
142   -gas | --gas | --ga | --g)
143     # Obsolete; use --with-gas.
144     with_gas=yes ;;
145
146   -help | --help | --hel | --he)
147     # Omit some internal or obsolete options to make the list less imposing.
148     # This message is too long to be a string in the A/UX 3.1 sh.
149     cat << EOF
150 Usage: configure [options] [host]
151 Options: [defaults in brackets after descriptions]
152 Configuration:
153   --cache-file=FILE       cache test results in FILE
154   --help                  print this message
155   --no-create             do not create output files
156   --quiet, --silent       do not print \`checking...' messages
157   --version               print the version of autoconf that created configure
158 Directory and file names:
159   --prefix=PREFIX         install architecture-independent files in PREFIX
160                           [$ac_default_prefix]
161   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
162                           [same as prefix]
163   --bindir=DIR            user executables in DIR [EPREFIX/bin]
164   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
165   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
166   --datadir=DIR           read-only architecture-independent data in DIR
167                           [PREFIX/share]
168   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
169   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
170                           [PREFIX/com]
171   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
172   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
173   --includedir=DIR        C header files in DIR [PREFIX/include]
174   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
175   --infodir=DIR           info documentation in DIR [PREFIX/info]
176   --mandir=DIR            man documentation in DIR [PREFIX/man]
177   --srcdir=DIR            find the sources in DIR [configure dir or ..]
178   --program-prefix=PREFIX prepend PREFIX to installed program names
179   --program-suffix=SUFFIX append SUFFIX to installed program names
180   --program-transform-name=PROGRAM
181                           run sed PROGRAM on installed program names
182 EOF
183     cat << EOF
184 Host type:
185   --build=BUILD           configure for building on BUILD [BUILD=HOST]
186   --host=HOST             configure for HOST [guessed]
187   --target=TARGET         configure for TARGET [TARGET=HOST]
188 Features and packages:
189   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
190   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
191   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
192   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
193   --x-includes=DIR        X include files are in DIR
194   --x-libraries=DIR       X library files are in DIR
195 EOF
196     if test -n "$ac_help"; then
197       echo "--enable and --with options recognized:$ac_help"
198     fi
199     exit 0 ;;
200
201   -host | --host | --hos | --ho)
202     ac_prev=host ;;
203   -host=* | --host=* | --hos=* | --ho=*)
204     host="$ac_optarg" ;;
205
206   -includedir | --includedir | --includedi | --included | --include \
207   | --includ | --inclu | --incl | --inc)
208     ac_prev=includedir ;;
209   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
210   | --includ=* | --inclu=* | --incl=* | --inc=*)
211     includedir="$ac_optarg" ;;
212
213   -infodir | --infodir | --infodi | --infod | --info | --inf)
214     ac_prev=infodir ;;
215   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
216     infodir="$ac_optarg" ;;
217
218   -libdir | --libdir | --libdi | --libd)
219     ac_prev=libdir ;;
220   -libdir=* | --libdir=* | --libdi=* | --libd=*)
221     libdir="$ac_optarg" ;;
222
223   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
224   | --libexe | --libex | --libe)
225     ac_prev=libexecdir ;;
226   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
227   | --libexe=* | --libex=* | --libe=*)
228     libexecdir="$ac_optarg" ;;
229
230   -localstatedir | --localstatedir | --localstatedi | --localstated \
231   | --localstate | --localstat | --localsta | --localst \
232   | --locals | --local | --loca | --loc | --lo)
233     ac_prev=localstatedir ;;
234   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
235   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
236   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
237     localstatedir="$ac_optarg" ;;
238
239   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
240     ac_prev=mandir ;;
241   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
242     mandir="$ac_optarg" ;;
243
244   -nfp | --nfp | --nf)
245     # Obsolete; use --without-fp.
246     with_fp=no ;;
247
248   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
249   | --no-cr | --no-c)
250     no_create=yes ;;
251
252   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
253   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
254     no_recursion=yes ;;
255
256   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
257   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
258   | --oldin | --oldi | --old | --ol | --o)
259     ac_prev=oldincludedir ;;
260   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
261   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
262   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
263     oldincludedir="$ac_optarg" ;;
264
265   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
266     ac_prev=prefix ;;
267   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
268     prefix="$ac_optarg" ;;
269
270   -program-prefix | --program-prefix | --program-prefi | --program-pref \
271   | --program-pre | --program-pr | --program-p)
272     ac_prev=program_prefix ;;
273   -program-prefix=* | --program-prefix=* | --program-prefi=* \
274   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
275     program_prefix="$ac_optarg" ;;
276
277   -program-suffix | --program-suffix | --program-suffi | --program-suff \
278   | --program-suf | --program-su | --program-s)
279     ac_prev=program_suffix ;;
280   -program-suffix=* | --program-suffix=* | --program-suffi=* \
281   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
282     program_suffix="$ac_optarg" ;;
283
284   -program-transform-name | --program-transform-name \
285   | --program-transform-nam | --program-transform-na \
286   | --program-transform-n | --program-transform- \
287   | --program-transform | --program-transfor \
288   | --program-transfo | --program-transf \
289   | --program-trans | --program-tran \
290   | --progr-tra | --program-tr | --program-t)
291     ac_prev=program_transform_name ;;
292   -program-transform-name=* | --program-transform-name=* \
293   | --program-transform-nam=* | --program-transform-na=* \
294   | --program-transform-n=* | --program-transform-=* \
295   | --program-transform=* | --program-transfor=* \
296   | --program-transfo=* | --program-transf=* \
297   | --program-trans=* | --program-tran=* \
298   | --progr-tra=* | --program-tr=* | --program-t=*)
299     program_transform_name="$ac_optarg" ;;
300
301   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
302   | -silent | --silent | --silen | --sile | --sil)
303     silent=yes ;;
304
305   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
306     ac_prev=sbindir ;;
307   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
308   | --sbi=* | --sb=*)
309     sbindir="$ac_optarg" ;;
310
311   -sharedstatedir | --sharedstatedir | --sharedstatedi \
312   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
313   | --sharedst | --shareds | --shared | --share | --shar \
314   | --sha | --sh)
315     ac_prev=sharedstatedir ;;
316   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
317   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
318   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
319   | --sha=* | --sh=*)
320     sharedstatedir="$ac_optarg" ;;
321
322   -site | --site | --sit)
323     ac_prev=site ;;
324   -site=* | --site=* | --sit=*)
325     site="$ac_optarg" ;;
326
327   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
328     ac_prev=srcdir ;;
329   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
330     srcdir="$ac_optarg" ;;
331
332   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
333   | --syscon | --sysco | --sysc | --sys | --sy)
334     ac_prev=sysconfdir ;;
335   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
336   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
337     sysconfdir="$ac_optarg" ;;
338
339   -target | --target | --targe | --targ | --tar | --ta | --t)
340     ac_prev=target ;;
341   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
342     target="$ac_optarg" ;;
343
344   -v | -verbose | --verbose | --verbos | --verbo | --verb)
345     verbose=yes ;;
346
347   -version | --version | --versio | --versi | --vers)
348     echo "configure generated by autoconf version 2.13"
349     exit 0 ;;
350
351   -with-* | --with-*)
352     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
353     # Reject names that are not valid shell variable names.
354     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
355       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
356     fi
357     ac_package=`echo $ac_package| sed 's/-/_/g'`
358     case "$ac_option" in
359       *=*) ;;
360       *) ac_optarg=yes ;;
361     esac
362     eval "with_${ac_package}='$ac_optarg'" ;;
363
364   -without-* | --without-*)
365     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
366     # Reject names that are not valid shell variable names.
367     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
368       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
369     fi
370     ac_package=`echo $ac_package| sed 's/-/_/g'`
371     eval "with_${ac_package}=no" ;;
372
373   --x)
374     # Obsolete; use --with-x.
375     with_x=yes ;;
376
377   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
378   | --x-incl | --x-inc | --x-in | --x-i)
379     ac_prev=x_includes ;;
380   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
381   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
382     x_includes="$ac_optarg" ;;
383
384   -x-libraries | --x-libraries | --x-librarie | --x-librari \
385   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
386     ac_prev=x_libraries ;;
387   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
388   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
389     x_libraries="$ac_optarg" ;;
390
391   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
392     ;;
393
394   *)
395     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
396       echo "configure: warning: $ac_option: invalid host type" 1>&2
397     fi
398     if test "x$nonopt" != xNONE; then
399       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
400     fi
401     nonopt="$ac_option"
402     ;;
403
404   esac
405 done
406
407 if test -n "$ac_prev"; then
408   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
409 fi
410
411 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
412
413 # File descriptor usage:
414 # 0 standard input
415 # 1 file creation
416 # 2 errors and warnings
417 # 3 some systems may open it to /dev/tty
418 # 4 used on the Kubota Titan
419 # 6 checking for... messages and results
420 # 5 compiler messages saved in config.log
421 if test "$silent" = yes; then
422   exec 6>/dev/null
423 else
424   exec 6>&1
425 fi
426 exec 5>./config.log
427
428 echo "\
429 This file contains any messages produced by compilers while
430 running configure, to aid debugging if configure makes a mistake.
431 " 1>&5
432
433 # Strip out --no-create and --no-recursion so they do not pile up.
434 # Also quote any args containing shell metacharacters.
435 ac_configure_args=
436 for ac_arg
437 do
438   case "$ac_arg" in
439   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
440   | --no-cr | --no-c) ;;
441   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
442   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
443   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
444   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
445   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
446   esac
447 done
448
449 # NLS nuisances.
450 # Only set these to C if already set.  These must not be set unconditionally
451 # because not all systems understand e.g. LANG=C (notably SCO).
452 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
453 # Non-C LC_CTYPE values break the ctype check.
454 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
455 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
456 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
457 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
458
459 # confdefs.h avoids OS command line length limits that DEFS can exceed.
460 rm -rf conftest* confdefs.h
461 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
462 echo > confdefs.h
463
464 # A filename unique to this package, relative to the directory that
465 # configure is in, which we can look for to find out if srcdir is correct.
466 ac_unique_file=lib/mdct.c
467
468 # Find the source files, if location was not specified.
469 if test -z "$srcdir"; then
470   ac_srcdir_defaulted=yes
471   # Try the directory containing this script, then its parent.
472   ac_prog=$0
473   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
474   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
475   srcdir=$ac_confdir
476   if test ! -r $srcdir/$ac_unique_file; then
477     srcdir=..
478   fi
479 else
480   ac_srcdir_defaulted=no
481 fi
482 if test ! -r $srcdir/$ac_unique_file; then
483   if test "$ac_srcdir_defaulted" = yes; then
484     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
485   else
486     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
487   fi
488 fi
489 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
490
491 # Prefer explicitly selected file to automatically selected ones.
492 if test -z "$CONFIG_SITE"; then
493   if test "x$prefix" != xNONE; then
494     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
495   else
496     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
497   fi
498 fi
499 for ac_site_file in $CONFIG_SITE; do
500   if test -r "$ac_site_file"; then
501     echo "loading site script $ac_site_file"
502     . "$ac_site_file"
503   fi
504 done
505
506 if test -r "$cache_file"; then
507   echo "loading cache $cache_file"
508   . $cache_file
509 else
510   echo "creating cache $cache_file"
511   > $cache_file
512 fi
513
514 ac_ext=c
515 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
516 ac_cpp='$CPP $CPPFLAGS'
517 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
518 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
519 cross_compiling=$ac_cv_prog_cc_cross
520
521 ac_exeext=
522 ac_objext=o
523 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
524   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
525   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
526     ac_n= ac_c='
527 ' ac_t='        '
528   else
529     ac_n=-n ac_c= ac_t=
530   fi
531 else
532   ac_n= ac_c='\c' ac_t=
533 fi
534
535
536 ac_aux_dir=
537 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
538   if test -f $ac_dir/install-sh; then
539     ac_aux_dir=$ac_dir
540     ac_install_sh="$ac_aux_dir/install-sh -c"
541     break
542   elif test -f $ac_dir/install.sh; then
543     ac_aux_dir=$ac_dir
544     ac_install_sh="$ac_aux_dir/install.sh -c"
545     break
546   fi
547 done
548 if test -z "$ac_aux_dir"; then
549   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
550 fi
551 ac_config_guess=$ac_aux_dir/config.guess
552 ac_config_sub=$ac_aux_dir/config.sub
553 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
554
555 # Find a good install program.  We prefer a C program (faster),
556 # so one script is as good as another.  But avoid the broken or
557 # incompatible versions:
558 # SysV /etc/install, /usr/sbin/install
559 # SunOS /usr/etc/install
560 # IRIX /sbin/install
561 # AIX /bin/install
562 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
563 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
564 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
565 # ./install, which can be erroneously created by make from ./install.sh.
566 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
567 echo "configure:568: checking for a BSD compatible install" >&5
568 if test -z "$INSTALL"; then
569 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
570   echo $ac_n "(cached) $ac_c" 1>&6
571 else
572     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
573   for ac_dir in $PATH; do
574     # Account for people who put trailing slashes in PATH elements.
575     case "$ac_dir/" in
576     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
577     *)
578       # OSF1 and SCO ODT 3.0 have their own names for install.
579       # Don't use installbsd from OSF since it installs stuff as root
580       # by default.
581       for ac_prog in ginstall scoinst install; do
582         if test -f $ac_dir/$ac_prog; then
583           if test $ac_prog = install &&
584             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
585             # AIX install.  It has an incompatible calling convention.
586             :
587           else
588             ac_cv_path_install="$ac_dir/$ac_prog -c"
589             break 2
590           fi
591         fi
592       done
593       ;;
594     esac
595   done
596   IFS="$ac_save_IFS"
597
598 fi
599   if test "${ac_cv_path_install+set}" = set; then
600     INSTALL="$ac_cv_path_install"
601   else
602     # As a last resort, use the slow shell script.  We don't cache a
603     # path for INSTALL within a source directory, because that will
604     # break other packages using the cache if that directory is
605     # removed, or if the path is relative.
606     INSTALL="$ac_install_sh"
607   fi
608 fi
609 echo "$ac_t""$INSTALL" 1>&6
610
611 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
612 # It thinks the first close brace ends the variable substitution.
613 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
614
615 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
616
617 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
618
619 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
620 echo "configure:621: checking whether build environment is sane" >&5
621 # Just in case
622 sleep 1
623 echo timestamp > conftestfile
624 # Do `set' in a subshell so we don't clobber the current shell's
625 # arguments.  Must try -L first in case configure is actually a
626 # symlink; some systems play weird games with the mod time of symlinks
627 # (eg FreeBSD returns the mod time of the symlink's containing
628 # directory).
629 if (
630    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
631    if test "$*" = "X"; then
632       # -L didn't work.
633       set X `ls -t $srcdir/configure conftestfile`
634    fi
635    if test "$*" != "X $srcdir/configure conftestfile" \
636       && test "$*" != "X conftestfile $srcdir/configure"; then
637
638       # If neither matched, then we have a broken ls.  This can happen
639       # if, for instance, CONFIG_SHELL is bash and it inherits a
640       # broken ls alias from the environment.  This has actually
641       # happened.  Such a system could not be considered "sane".
642       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
643 alias in your environment" 1>&2; exit 1; }
644    fi
645
646    test "$2" = conftestfile
647    )
648 then
649    # Ok.
650    :
651 else
652    { echo "configure: error: newly created file is older than distributed files!
653 Check your system clock" 1>&2; exit 1; }
654 fi
655 rm -f conftest*
656 echo "$ac_t""yes" 1>&6
657 if test "$program_transform_name" = s,x,x,; then
658   program_transform_name=
659 else
660   # Double any \ or $.  echo might interpret backslashes.
661   cat <<\EOF_SED > conftestsed
662 s,\\,\\\\,g; s,\$,$$,g
663 EOF_SED
664   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
665   rm -f conftestsed
666 fi
667 test "$program_prefix" != NONE &&
668   program_transform_name="s,^,${program_prefix},; $program_transform_name"
669 # Use a double $ so make ignores it.
670 test "$program_suffix" != NONE &&
671   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
672
673 # sed with no file args requires a program.
674 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
675
676 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
677 echo "configure:678: checking whether ${MAKE-make} sets \${MAKE}" >&5
678 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
679 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
680   echo $ac_n "(cached) $ac_c" 1>&6
681 else
682   cat > conftestmake <<\EOF
683 all:
684         @echo 'ac_maketemp="${MAKE}"'
685 EOF
686 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
687 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
688 if test -n "$ac_maketemp"; then
689   eval ac_cv_prog_make_${ac_make}_set=yes
690 else
691   eval ac_cv_prog_make_${ac_make}_set=no
692 fi
693 rm -f conftestmake
694 fi
695 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
696   echo "$ac_t""yes" 1>&6
697   SET_MAKE=
698 else
699   echo "$ac_t""no" 1>&6
700   SET_MAKE="MAKE=${MAKE-make}"
701 fi
702
703
704 PACKAGE=libvorbis
705
706 VERSION=1.0.0
707
708 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
709   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
710 fi
711 cat >> confdefs.h <<EOF
712 #define PACKAGE "$PACKAGE"
713 EOF
714
715 cat >> confdefs.h <<EOF
716 #define VERSION "$VERSION"
717 EOF
718
719
720
721 missing_dir=`cd $ac_aux_dir && pwd`
722 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
723 echo "configure:724: checking for working aclocal" >&5
724 # Run test in a subshell; some versions of sh will print an error if
725 # an executable is not found, even if stderr is redirected.
726 # Redirect stdin to placate older versions of autoconf.  Sigh.
727 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
728    ACLOCAL=aclocal
729    echo "$ac_t""found" 1>&6
730 else
731    ACLOCAL="$missing_dir/missing aclocal"
732    echo "$ac_t""missing" 1>&6
733 fi
734
735 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
736 echo "configure:737: checking for working autoconf" >&5
737 # Run test in a subshell; some versions of sh will print an error if
738 # an executable is not found, even if stderr is redirected.
739 # Redirect stdin to placate older versions of autoconf.  Sigh.
740 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
741    AUTOCONF=autoconf
742    echo "$ac_t""found" 1>&6
743 else
744    AUTOCONF="$missing_dir/missing autoconf"
745    echo "$ac_t""missing" 1>&6
746 fi
747
748 echo $ac_n "checking for working automake""... $ac_c" 1>&6
749 echo "configure:750: checking for working automake" >&5
750 # Run test in a subshell; some versions of sh will print an error if
751 # an executable is not found, even if stderr is redirected.
752 # Redirect stdin to placate older versions of autoconf.  Sigh.
753 if (automake --version) < /dev/null > /dev/null 2>&1; then
754    AUTOMAKE=automake
755    echo "$ac_t""found" 1>&6
756 else
757    AUTOMAKE="$missing_dir/missing automake"
758    echo "$ac_t""missing" 1>&6
759 fi
760
761 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
762 echo "configure:763: checking for working autoheader" >&5
763 # Run test in a subshell; some versions of sh will print an error if
764 # an executable is not found, even if stderr is redirected.
765 # Redirect stdin to placate older versions of autoconf.  Sigh.
766 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
767    AUTOHEADER=autoheader
768    echo "$ac_t""found" 1>&6
769 else
770    AUTOHEADER="$missing_dir/missing autoheader"
771    echo "$ac_t""missing" 1>&6
772 fi
773
774 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
775 echo "configure:776: checking for working makeinfo" >&5
776 # Run test in a subshell; some versions of sh will print an error if
777 # an executable is not found, even if stderr is redirected.
778 # Redirect stdin to placate older versions of autoconf.  Sigh.
779 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
780    MAKEINFO=makeinfo
781    echo "$ac_t""found" 1>&6
782 else
783    MAKEINFO="$missing_dir/missing makeinfo"
784    echo "$ac_t""missing" 1>&6
785 fi
786
787
788
789
790 V_LIB_CURRENT=0
791 V_LIB_REVISION=0
792 V_LIB_AGE=0
793 VF_LIB_CURRENT=0
794 VF_LIB_REVISION=0
795 VF_LIB_AGE=0
796
797
798
799
800
801
802
803
804 cflags_save="$CFLAGS"
805 # Extract the first word of "gcc", so it can be a program name with args.
806 set dummy gcc; ac_word=$2
807 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
808 echo "configure:809: checking for $ac_word" >&5
809 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
810   echo $ac_n "(cached) $ac_c" 1>&6
811 else
812   if test -n "$CC"; then
813   ac_cv_prog_CC="$CC" # Let the user override the test.
814 else
815   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
816   ac_dummy="$PATH"
817   for ac_dir in $ac_dummy; do
818     test -z "$ac_dir" && ac_dir=.
819     if test -f $ac_dir/$ac_word; then
820       ac_cv_prog_CC="gcc"
821       break
822     fi
823   done
824   IFS="$ac_save_ifs"
825 fi
826 fi
827 CC="$ac_cv_prog_CC"
828 if test -n "$CC"; then
829   echo "$ac_t""$CC" 1>&6
830 else
831   echo "$ac_t""no" 1>&6
832 fi
833
834 if test -z "$CC"; then
835   # Extract the first word of "cc", so it can be a program name with args.
836 set dummy cc; ac_word=$2
837 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
838 echo "configure:839: checking for $ac_word" >&5
839 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
840   echo $ac_n "(cached) $ac_c" 1>&6
841 else
842   if test -n "$CC"; then
843   ac_cv_prog_CC="$CC" # Let the user override the test.
844 else
845   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
846   ac_prog_rejected=no
847   ac_dummy="$PATH"
848   for ac_dir in $ac_dummy; do
849     test -z "$ac_dir" && ac_dir=.
850     if test -f $ac_dir/$ac_word; then
851       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
852         ac_prog_rejected=yes
853         continue
854       fi
855       ac_cv_prog_CC="cc"
856       break
857     fi
858   done
859   IFS="$ac_save_ifs"
860 if test $ac_prog_rejected = yes; then
861   # We found a bogon in the path, so make sure we never use it.
862   set dummy $ac_cv_prog_CC
863   shift
864   if test $# -gt 0; then
865     # We chose a different compiler from the bogus one.
866     # However, it has the same basename, so the bogon will be chosen
867     # first if we set CC to just the basename; use the full file name.
868     shift
869     set dummy "$ac_dir/$ac_word" "$@"
870     shift
871     ac_cv_prog_CC="$@"
872   fi
873 fi
874 fi
875 fi
876 CC="$ac_cv_prog_CC"
877 if test -n "$CC"; then
878   echo "$ac_t""$CC" 1>&6
879 else
880   echo "$ac_t""no" 1>&6
881 fi
882
883   if test -z "$CC"; then
884     case "`uname -s`" in
885     *win32* | *WIN32*)
886       # Extract the first word of "cl", so it can be a program name with args.
887 set dummy cl; ac_word=$2
888 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
889 echo "configure:890: checking for $ac_word" >&5
890 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
891   echo $ac_n "(cached) $ac_c" 1>&6
892 else
893   if test -n "$CC"; then
894   ac_cv_prog_CC="$CC" # Let the user override the test.
895 else
896   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
897   ac_dummy="$PATH"
898   for ac_dir in $ac_dummy; do
899     test -z "$ac_dir" && ac_dir=.
900     if test -f $ac_dir/$ac_word; then
901       ac_cv_prog_CC="cl"
902       break
903     fi
904   done
905   IFS="$ac_save_ifs"
906 fi
907 fi
908 CC="$ac_cv_prog_CC"
909 if test -n "$CC"; then
910   echo "$ac_t""$CC" 1>&6
911 else
912   echo "$ac_t""no" 1>&6
913 fi
914  ;;
915     esac
916   fi
917   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
918 fi
919
920 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
921 echo "configure:922: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
922
923 ac_ext=c
924 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
925 ac_cpp='$CPP $CPPFLAGS'
926 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
927 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
928 cross_compiling=$ac_cv_prog_cc_cross
929
930 cat > conftest.$ac_ext << EOF
931
932 #line 933 "configure"
933 #include "confdefs.h"
934
935 main(){return(0);}
936 EOF
937 if { (eval echo configure:938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
938   ac_cv_prog_cc_works=yes
939   # If we can't run a trivial program, we are probably using a cross compiler.
940   if (./conftest; exit) 2>/dev/null; then
941     ac_cv_prog_cc_cross=no
942   else
943     ac_cv_prog_cc_cross=yes
944   fi
945 else
946   echo "configure: failed program was:" >&5
947   cat conftest.$ac_ext >&5
948   ac_cv_prog_cc_works=no
949 fi
950 rm -fr conftest*
951 ac_ext=c
952 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
953 ac_cpp='$CPP $CPPFLAGS'
954 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
955 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
956 cross_compiling=$ac_cv_prog_cc_cross
957
958 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
959 if test $ac_cv_prog_cc_works = no; then
960   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
961 fi
962 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
963 echo "configure:964: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
964 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
965 cross_compiling=$ac_cv_prog_cc_cross
966
967 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
968 echo "configure:969: checking whether we are using GNU C" >&5
969 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
970   echo $ac_n "(cached) $ac_c" 1>&6
971 else
972   cat > conftest.c <<EOF
973 #ifdef __GNUC__
974   yes;
975 #endif
976 EOF
977 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:978: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
978   ac_cv_prog_gcc=yes
979 else
980   ac_cv_prog_gcc=no
981 fi
982 fi
983
984 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
985
986 if test $ac_cv_prog_gcc = yes; then
987   GCC=yes
988 else
989   GCC=
990 fi
991
992 ac_test_CFLAGS="${CFLAGS+set}"
993 ac_save_CFLAGS="$CFLAGS"
994 CFLAGS=
995 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
996 echo "configure:997: checking whether ${CC-cc} accepts -g" >&5
997 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
998   echo $ac_n "(cached) $ac_c" 1>&6
999 else
1000   echo 'void f(){}' > conftest.c
1001 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1002   ac_cv_prog_cc_g=yes
1003 else
1004   ac_cv_prog_cc_g=no
1005 fi
1006 rm -f conftest*
1007
1008 fi
1009
1010 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1011 if test "$ac_test_CFLAGS" = set; then
1012   CFLAGS="$ac_save_CFLAGS"
1013 elif test $ac_cv_prog_cc_g = yes; then
1014   if test "$GCC" = yes; then
1015     CFLAGS="-g -O2"
1016   else
1017     CFLAGS="-g"
1018   fi
1019 else
1020   if test "$GCC" = yes; then
1021     CFLAGS="-O2"
1022   else
1023     CFLAGS=
1024   fi
1025 fi
1026
1027 CFLAGS="$cflags_save"
1028
1029 # Check whether --enable-shared or --disable-shared was given.
1030 if test "${enable_shared+set}" = set; then
1031   enableval="$enable_shared"
1032   p=${PACKAGE-default}
1033 case "$enableval" in
1034 yes) enable_shared=yes ;;
1035 no) enable_shared=no ;;
1036 *)
1037   enable_shared=no
1038   # Look at the argument we got.  We use all the common list separators.
1039   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1040   for pkg in $enableval; do
1041     if test "X$pkg" = "X$p"; then
1042       enable_shared=yes
1043     fi
1044   done
1045   IFS="$ac_save_ifs"
1046   ;;
1047 esac
1048 else
1049   enable_shared=yes
1050 fi
1051
1052 # Check whether --enable-static or --disable-static was given.
1053 if test "${enable_static+set}" = set; then
1054   enableval="$enable_static"
1055   p=${PACKAGE-default}
1056 case "$enableval" in
1057 yes) enable_static=yes ;;
1058 no) enable_static=no ;;
1059 *)
1060   enable_static=no
1061   # Look at the argument we got.  We use all the common list separators.
1062   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1063   for pkg in $enableval; do
1064     if test "X$pkg" = "X$p"; then
1065       enable_static=yes
1066     fi
1067   done
1068   IFS="$ac_save_ifs"
1069   ;;
1070 esac
1071 else
1072   enable_static=yes
1073 fi
1074
1075 # Check whether --enable-fast-install or --disable-fast-install was given.
1076 if test "${enable_fast_install+set}" = set; then
1077   enableval="$enable_fast_install"
1078   p=${PACKAGE-default}
1079 case "$enableval" in
1080 yes) enable_fast_install=yes ;;
1081 no) enable_fast_install=no ;;
1082 *)
1083   enable_fast_install=no
1084   # Look at the argument we got.  We use all the common list separators.
1085   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1086   for pkg in $enableval; do
1087     if test "X$pkg" = "X$p"; then
1088       enable_fast_install=yes
1089     fi
1090   done
1091   IFS="$ac_save_ifs"
1092   ;;
1093 esac
1094 else
1095   enable_fast_install=yes
1096 fi
1097
1098
1099 # Make sure we can run config.sub.
1100 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1101 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1102 fi
1103
1104 echo $ac_n "checking host system type""... $ac_c" 1>&6
1105 echo "configure:1106: checking host system type" >&5
1106
1107 host_alias=$host
1108 case "$host_alias" in
1109 NONE)
1110   case $nonopt in
1111   NONE)
1112     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1113     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1114     fi ;;
1115   *) host_alias=$nonopt ;;
1116   esac ;;
1117 esac
1118
1119 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1120 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1121 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1122 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1123 echo "$ac_t""$host" 1>&6
1124
1125 echo $ac_n "checking build system type""... $ac_c" 1>&6
1126 echo "configure:1127: checking build system type" >&5
1127
1128 build_alias=$build
1129 case "$build_alias" in
1130 NONE)
1131   case $nonopt in
1132   NONE) build_alias=$host_alias ;;
1133   *) build_alias=$nonopt ;;
1134   esac ;;
1135 esac
1136
1137 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1138 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1139 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1140 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1141 echo "$ac_t""$build" 1>&6
1142
1143 # Extract the first word of "ranlib", so it can be a program name with args.
1144 set dummy ranlib; ac_word=$2
1145 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1146 echo "configure:1147: checking for $ac_word" >&5
1147 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1148   echo $ac_n "(cached) $ac_c" 1>&6
1149 else
1150   if test -n "$RANLIB"; then
1151   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1152 else
1153   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1154   ac_dummy="$PATH"
1155   for ac_dir in $ac_dummy; do
1156     test -z "$ac_dir" && ac_dir=.
1157     if test -f $ac_dir/$ac_word; then
1158       ac_cv_prog_RANLIB="ranlib"
1159       break
1160     fi
1161   done
1162   IFS="$ac_save_ifs"
1163   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1164 fi
1165 fi
1166 RANLIB="$ac_cv_prog_RANLIB"
1167 if test -n "$RANLIB"; then
1168   echo "$ac_t""$RANLIB" 1>&6
1169 else
1170   echo "$ac_t""no" 1>&6
1171 fi
1172
1173 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1174 if test "${with_gnu_ld+set}" = set; then
1175   withval="$with_gnu_ld"
1176   test "$withval" = no || with_gnu_ld=yes
1177 else
1178   with_gnu_ld=no
1179 fi
1180
1181 ac_prog=ld
1182 if test "$ac_cv_prog_gcc" = yes; then
1183   # Check if gcc -print-prog-name=ld gives a path.
1184   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1185 echo "configure:1186: checking for ld used by GCC" >&5
1186   ac_prog=`($CC -print-prog-name=ld) 2>&5`
1187   case "$ac_prog" in
1188     # Accept absolute paths.
1189     [\\/]* | [A-Za-z]:[\\/]*)
1190       re_direlt='/[^/][^/]*/\.\./'
1191       # Canonicalize the path of ld
1192       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1193       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1194         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1195       done
1196       test -z "$LD" && LD="$ac_prog"
1197       ;;
1198   "")
1199     # If it fails, then pretend we aren't using GCC.
1200     ac_prog=ld
1201     ;;
1202   *)
1203     # If it is relative, then search for the first ld in PATH.
1204     with_gnu_ld=unknown
1205     ;;
1206   esac
1207 elif test "$with_gnu_ld" = yes; then
1208   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1209 echo "configure:1210: checking for GNU ld" >&5
1210 else
1211   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1212 echo "configure:1213: checking for non-GNU ld" >&5
1213 fi
1214 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1215   echo $ac_n "(cached) $ac_c" 1>&6
1216 else
1217   if test -z "$LD"; then
1218   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1219   for ac_dir in $PATH; do
1220     test -z "$ac_dir" && ac_dir=.
1221     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1222       ac_cv_path_LD="$ac_dir/$ac_prog"
1223       # Check to see if the program is GNU ld.  I'd rather use --version,
1224       # but apparently some GNU ld's only accept -v.
1225       # Break only if it was the GNU/non-GNU ld that we prefer.
1226       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1227         test "$with_gnu_ld" != no && break
1228       else
1229         test "$with_gnu_ld" != yes && break
1230       fi
1231     fi
1232   done
1233   IFS="$ac_save_ifs"
1234 else
1235   ac_cv_path_LD="$LD" # Let the user override the test with a path.
1236 fi
1237 fi
1238
1239 LD="$ac_cv_path_LD"
1240 if test -n "$LD"; then
1241   echo "$ac_t""$LD" 1>&6
1242 else
1243   echo "$ac_t""no" 1>&6
1244 fi
1245 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1246 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1247 echo "configure:1248: checking if the linker ($LD) is GNU ld" >&5
1248 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1249   echo $ac_n "(cached) $ac_c" 1>&6
1250 else
1251   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1252 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1253   ac_cv_prog_gnu_ld=yes
1254 else
1255   ac_cv_prog_gnu_ld=no
1256 fi
1257 fi
1258
1259 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1260
1261
1262 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1263 echo "configure:1264: checking for BSD-compatible nm" >&5
1264 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1265   echo $ac_n "(cached) $ac_c" 1>&6
1266 else
1267   if test -n "$NM"; then
1268   # Let the user override the test.
1269   ac_cv_path_NM="$NM"
1270 else
1271   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1272   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1273     test -z "$ac_dir" && ac_dir=.
1274     if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1275       # Check to see if the nm accepts a BSD-compat flag.
1276       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1277       #   nm: unknown option "B" ignored
1278       if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1279         ac_cv_path_NM="$ac_dir/nm -B"
1280         break
1281       elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1282         ac_cv_path_NM="$ac_dir/nm -p"
1283         break
1284       else
1285         ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1286         continue # so that we can try to find one that supports BSD flags
1287       fi
1288     fi
1289   done
1290   IFS="$ac_save_ifs"
1291   test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1292 fi
1293 fi
1294
1295 NM="$ac_cv_path_NM"
1296 echo "$ac_t""$NM" 1>&6
1297
1298 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1299 echo "configure:1300: checking whether ln -s works" >&5
1300 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1301   echo $ac_n "(cached) $ac_c" 1>&6
1302 else
1303   rm -f conftestdata
1304 if ln -s X conftestdata 2>/dev/null
1305 then
1306   rm -f conftestdata
1307   ac_cv_prog_LN_S="ln -s"
1308 else
1309   ac_cv_prog_LN_S=ln
1310 fi
1311 fi
1312 LN_S="$ac_cv_prog_LN_S"
1313 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1314   echo "$ac_t""yes" 1>&6
1315 else
1316   echo "$ac_t""no" 1>&6
1317 fi
1318
1319
1320 case "$target" in
1321 NONE) lt_target="$host" ;;
1322 *) lt_target="$target" ;;
1323 esac
1324
1325 # Check for any special flags to pass to ltconfig.
1326 libtool_flags="--cache-file=$cache_file"
1327 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1328 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1329 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1330 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1331 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1332
1333
1334 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1335 if test "${enable_libtool_lock+set}" = set; then
1336   enableval="$enable_libtool_lock"
1337   :
1338 fi
1339
1340 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1341 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1342
1343 # Some flags need to be propagated to the compiler or linker for good
1344 # libtool support.
1345 case "$lt_target" in
1346 *-*-irix6*)
1347   # Find out which ABI we are using.
1348   echo '#line 1349 "configure"' > conftest.$ac_ext
1349   if { (eval echo configure:1350: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1350     case "`/usr/bin/file conftest.o`" in
1351     *32-bit*)
1352       LD="${LD-ld} -32"
1353       ;;
1354     *N32*)
1355       LD="${LD-ld} -n32"
1356       ;;
1357     *64-bit*)
1358       LD="${LD-ld} -64"
1359       ;;
1360     esac
1361   fi
1362   rm -rf conftest*
1363   ;;
1364
1365 *-*-sco3.2v5*)
1366   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1367   SAVE_CFLAGS="$CFLAGS"
1368   CFLAGS="$CFLAGS -belf"
1369   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1370 echo "configure:1371: checking whether the C compiler needs -belf" >&5
1371 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1372   echo $ac_n "(cached) $ac_c" 1>&6
1373 else
1374   cat > conftest.$ac_ext <<EOF
1375 #line 1376 "configure"
1376 #include "confdefs.h"
1377
1378 int main() {
1379
1380 ; return 0; }
1381 EOF
1382 if { (eval echo configure:1383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1383   rm -rf conftest*
1384   lt_cv_cc_needs_belf=yes
1385 else
1386   echo "configure: failed program was:" >&5
1387   cat conftest.$ac_ext >&5
1388   rm -rf conftest*
1389   lt_cv_cc_needs_belf=no
1390 fi
1391 rm -f conftest*
1392 fi
1393
1394 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1395   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1396     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1397     CFLAGS="$SAVE_CFLAGS"
1398   fi
1399   ;;
1400
1401
1402 esac
1403
1404
1405 # Save cache, so that ltconfig can load it
1406 cat > confcache <<\EOF
1407 # This file is a shell script that caches the results of configure
1408 # tests run on this system so they can be shared between configure
1409 # scripts and configure runs.  It is not useful on other systems.
1410 # If it contains results you don't want to keep, you may remove or edit it.
1411 #
1412 # By default, configure uses ./config.cache as the cache file,
1413 # creating it if it does not exist already.  You can give configure
1414 # the --cache-file=FILE option to use a different cache file; that is
1415 # what configure does when it calls configure scripts in
1416 # subdirectories, so they share the cache.
1417 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1418 # config.status only pays attention to the cache file if you give it the
1419 # --recheck option to rerun configure.
1420 #
1421 EOF
1422 # The following way of writing the cache mishandles newlines in values,
1423 # but we know of no workaround that is simple, portable, and efficient.
1424 # So, don't put newlines in cache variables' values.
1425 # Ultrix sh set writes to stderr and can't be redirected directly,
1426 # and sets the high bit in the cache file unless we assign to the vars.
1427 (set) 2>&1 |
1428   case `(ac_space=' '; set | grep ac_space) 2>&1` in
1429   *ac_space=\ *)
1430     # `set' does not quote correctly, so add quotes (double-quote substitution
1431     # turns \\\\ into \\, and sed turns \\ into \).
1432     sed -n \
1433       -e "s/'/'\\\\''/g" \
1434       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1435     ;;
1436   *)
1437     # `set' quotes correctly as required by POSIX, so do not add quotes.
1438     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1439     ;;
1440   esac >> confcache
1441 if cmp -s $cache_file confcache; then
1442   :
1443 else
1444   if test -w $cache_file; then
1445     echo "updating cache $cache_file"
1446     cat confcache > $cache_file
1447   else
1448     echo "not updating unwritable cache $cache_file"
1449   fi
1450 fi
1451 rm -f confcache
1452
1453
1454 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
1455 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1456 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1457 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1458 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1459 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1460 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
1461 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1462
1463 # Reload cache, that may have been modified by ltconfig
1464 if test -r "$cache_file"; then
1465   echo "loading cache $cache_file"
1466   . $cache_file
1467 else
1468   echo "creating cache $cache_file"
1469   > $cache_file
1470 fi
1471
1472
1473 # This can be used to rebuild libtool when needed
1474 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1475
1476 # Always use our own libtool.
1477 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1478
1479 # Redirect the config.log output again, so that the ltconfig log is not
1480 # clobbered by the next message.
1481 exec 5>>./config.log
1482
1483
1484
1485 # Check whether --with-ogg or --without-ogg was given.
1486 if test "${with_ogg+set}" = set; then
1487   withval="$with_ogg"
1488   :
1489 fi
1490  
1491
1492
1493
1494 # Make sure we can run config.sub.
1495 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1496 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1497 fi
1498
1499 echo $ac_n "checking host system type""... $ac_c" 1>&6
1500 echo "configure:1501: checking host system type" >&5
1501
1502 host_alias=$host
1503 case "$host_alias" in
1504 NONE)
1505   case $nonopt in
1506   NONE)
1507     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1508     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1509     fi ;;
1510   *) host_alias=$nonopt ;;
1511   esac ;;
1512 esac
1513
1514 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1515 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1516 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1517 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1518 echo "$ac_t""$host" 1>&6
1519
1520
1521 if test -z "$GCC"; then
1522         case $host in 
1523         *-*-irix*)
1524                                                 if test -z "$CC"; then
1525                         CC=cc
1526                 fi
1527                 DEBUG="-g -signed" 
1528                 CFLAGS="-O2 -w -signed"
1529                 PROFILE="-p -g3 -O2 -signed" ;;
1530         sparc-sun-solaris*)
1531                 DEBUG="-v -g"
1532                 CFLAGS="-xO4 -fast -w -fsimple -native -xcg92"
1533                 PROFILE="-v -xpg -g -xO4 -fast -native -fsimple -xcg92 -Dsuncc" ;;
1534         *)
1535                 DEBUG="-g"
1536                 CFLAGS="-O"
1537                 PROFILE="-g -p" ;;
1538         esac
1539 else
1540
1541         case $host in 
1542         *86-*-linux*)
1543                 DEBUG="-g -Wall -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char"
1544                 CFLAGS="-O20 -ffast-math -mno-ieee-fp -D_REENTRANT -fsigned-char"
1545 #               PROFILE="-Wall -W -pg -O20 -ffast-math -D_REENTRANT -fsigned-char -fno-inline -static"
1546                 PROFILE="-Wall -W -pg -O20 -ffast-math -mno-ieee-fp -D_REENTRANT -fsigned-char -fno-inline -static"
1547
1548                 # glibc < 2.1.3 has a serious FP bug in the math inline header
1549                 # that will cripple Vorbis.  Look to see if the magic FP stack
1550                 # clobber is missing in the mathinline header, thus indicating
1551                 # the buggy version
1552
1553                 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1554 echo "configure:1555: checking how to run the C preprocessor" >&5
1555 # On Suns, sometimes $CPP names a directory.
1556 if test -n "$CPP" && test -d "$CPP"; then
1557   CPP=
1558 fi
1559 if test -z "$CPP"; then
1560 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1561   echo $ac_n "(cached) $ac_c" 1>&6
1562 else
1563     # This must be in double quotes, not single quotes, because CPP may get
1564   # substituted into the Makefile and "${CC-cc}" will confuse make.
1565   CPP="${CC-cc} -E"
1566   # On the NeXT, cc -E runs the code through the compiler's parser,
1567   # not just through cpp.
1568   cat > conftest.$ac_ext <<EOF
1569 #line 1570 "configure"
1570 #include "confdefs.h"
1571 #include <assert.h>
1572 Syntax Error
1573 EOF
1574 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1575 { (eval echo configure:1576: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1576 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1577 if test -z "$ac_err"; then
1578   :
1579 else
1580   echo "$ac_err" >&5
1581   echo "configure: failed program was:" >&5
1582   cat conftest.$ac_ext >&5
1583   rm -rf conftest*
1584   CPP="${CC-cc} -E -traditional-cpp"
1585   cat > conftest.$ac_ext <<EOF
1586 #line 1587 "configure"
1587 #include "confdefs.h"
1588 #include <assert.h>
1589 Syntax Error
1590 EOF
1591 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1592 { (eval echo configure:1593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1593 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1594 if test -z "$ac_err"; then
1595   :
1596 else
1597   echo "$ac_err" >&5
1598   echo "configure: failed program was:" >&5
1599   cat conftest.$ac_ext >&5
1600   rm -rf conftest*
1601   CPP="${CC-cc} -nologo -E"
1602   cat > conftest.$ac_ext <<EOF
1603 #line 1604 "configure"
1604 #include "confdefs.h"
1605 #include <assert.h>
1606 Syntax Error
1607 EOF
1608 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1609 { (eval echo configure:1610: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1610 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1611 if test -z "$ac_err"; then
1612   :
1613 else
1614   echo "$ac_err" >&5
1615   echo "configure: failed program was:" >&5
1616   cat conftest.$ac_ext >&5
1617   rm -rf conftest*
1618   CPP=/lib/cpp
1619 fi
1620 rm -f conftest*
1621 fi
1622 rm -f conftest*
1623 fi
1624 rm -f conftest*
1625   ac_cv_prog_CPP="$CPP"
1626 fi
1627   CPP="$ac_cv_prog_CPP"
1628 else
1629   ac_cv_prog_CPP="$CPP"
1630 fi
1631 echo "$ac_t""$CPP" 1>&6
1632
1633 cat > conftest.$ac_ext <<EOF
1634 #line 1635 "configure"
1635 #include "confdefs.h"
1636
1637                                 #define __LIBC_INTERNAL_MATH_INLINES 1
1638                                 #define __OPTIMIZE__
1639                                 #include <math.h>
1640                                 
1641 EOF
1642 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1643   egrep "log10.*fldlg2.*fxch" >/dev/null 2>&1; then
1644   rm -rf conftest*
1645   bad=maybe
1646 else
1647   rm -rf conftest*
1648   bad=no
1649 fi
1650 rm -f conftest*
1651
1652                 if test ${bad} = "maybe" ;then
1653                       cat > conftest.$ac_ext <<EOF
1654 #line 1655 "configure"
1655 #include "confdefs.h"
1656
1657                                         #define __LIBC_INTERNAL_MATH_INLINES 1
1658                                         #define __OPTIMIZE__
1659                                         #include <math.h>
1660                                         
1661 EOF
1662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1663   egrep "log10.*fldlg2.*fxch.*st\([0123456789]*\)" >/dev/null 2>&1; then
1664   rm -rf conftest*
1665   bad=no
1666 else
1667   rm -rf conftest*
1668   bad=yes
1669 fi
1670 rm -f conftest*
1671
1672                 fi
1673                 if test ${bad} = "yes" ;then
1674  echo "configure: warning:                                                         " 1>&2
1675  echo "configure: warning: ********************************************************" 1>&2
1676  echo "configure: warning: * The glibc headers on this machine have a serious bug *" 1>&2
1677  echo "configure: warning: * in /usr/include/bits/mathinline.h  This bug affects  *" 1>&2
1678  echo "configure: warning: * all floating point code, not just Ogg, built on this *" 1>&2
1679  echo "configure: warning: * machine.  Upgrading to glibc 2.1.3 is strongly urged *" 1>&2
1680  echo "configure: warning: * to correct the problem.  Note that upgrading glibc   *" 1>&2
1681  echo "configure: warning: * will not fix any previously built programs; this is  *" 1>&2
1682  echo "configure: warning: * a compile-time time bug.                             *" 1>&2
1683  echo "configure: warning: * To work around the problem for this build of Ogg,    *" 1>&2
1684  echo "configure: warning: * autoconf is disabling all math inlining.  This will  *" 1>&2
1685  echo "configure: warning: * hurt Ogg performace but is necessary for an Ogg that *" 1>&2
1686  echo "configure: warning: * will actually work.  Once glibc is upgraded, rerun   *" 1>&2
1687  echo "configure: warning: * configure and make to build with inlining.           *" 1>&2
1688  echo "configure: warning: ********************************************************" 1>&2
1689  echo "configure: warning:                                                         " 1>&2
1690
1691                 CFLAGS=${OPT}" -D__NO_MATH_INLINES"
1692                 PROFILE=${PROFILE}" -D__NO_MATH_INLINES"
1693                 fi;;
1694         *-*-linux*)
1695                 DEBUG="-g -Wall -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char"
1696                 CFLAGS="-O20 -ffast-math -D_REENTRANT -fsigned-char"
1697                 PROFILE="-pg -g -O20 -ffast-math -D_REENTRANT -fsigned-char";;
1698         sparc-sun-*)
1699                 DEBUG="-g -Wall -D__NO_MATH_INLINES -fsigned-char -mv8"
1700                 CFLAGS="-O20 -ffast-math -D__NO_MATH_INLINES -fsigned-char -mv8"
1701                 PROFILE="-pg -g -O20 -D__NO_MATH_INLINES -fsigned-char -mv8" ;;
1702         *)
1703                 DEBUG="-g -Wall -D__NO_MATH_INLINES -fsigned-char"
1704                 CFLAGS="-O20 -D__NO_MATH_INLINES -fsigned-char"
1705                 PROFILE="-O20 -g -pg -D__NO_MATH_INLINES -fsigned-char" ;;
1706         esac
1707 fi
1708
1709 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1710 echo "configure:1711: checking for ANSI C header files" >&5
1711 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1712   echo $ac_n "(cached) $ac_c" 1>&6
1713 else
1714   cat > conftest.$ac_ext <<EOF
1715 #line 1716 "configure"
1716 #include "confdefs.h"
1717 #include <stdlib.h>
1718 #include <stdarg.h>
1719 #include <string.h>
1720 #include <float.h>
1721 EOF
1722 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1723 { (eval echo configure:1724: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1724 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1725 if test -z "$ac_err"; then
1726   rm -rf conftest*
1727   ac_cv_header_stdc=yes
1728 else
1729   echo "$ac_err" >&5
1730   echo "configure: failed program was:" >&5
1731   cat conftest.$ac_ext >&5
1732   rm -rf conftest*
1733   ac_cv_header_stdc=no
1734 fi
1735 rm -f conftest*
1736
1737 if test $ac_cv_header_stdc = yes; then
1738   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1739 cat > conftest.$ac_ext <<EOF
1740 #line 1741 "configure"
1741 #include "confdefs.h"
1742 #include <string.h>
1743 EOF
1744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1745   egrep "memchr" >/dev/null 2>&1; then
1746   :
1747 else
1748   rm -rf conftest*
1749   ac_cv_header_stdc=no
1750 fi
1751 rm -f conftest*
1752
1753 fi
1754
1755 if test $ac_cv_header_stdc = yes; then
1756   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1757 cat > conftest.$ac_ext <<EOF
1758 #line 1759 "configure"
1759 #include "confdefs.h"
1760 #include <stdlib.h>
1761 EOF
1762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1763   egrep "free" >/dev/null 2>&1; then
1764   :
1765 else
1766   rm -rf conftest*
1767   ac_cv_header_stdc=no
1768 fi
1769 rm -f conftest*
1770
1771 fi
1772
1773 if test $ac_cv_header_stdc = yes; then
1774   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1775 if test "$cross_compiling" = yes; then
1776   :
1777 else
1778   cat > conftest.$ac_ext <<EOF
1779 #line 1780 "configure"
1780 #include "confdefs.h"
1781 #include <ctype.h>
1782 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1783 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1784 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1785 int main () { int i; for (i = 0; i < 256; i++)
1786 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1787 exit (0); }
1788
1789 EOF
1790 if { (eval echo configure:1791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1791 then
1792   :
1793 else
1794   echo "configure: failed program was:" >&5
1795   cat conftest.$ac_ext >&5
1796   rm -fr conftest*
1797   ac_cv_header_stdc=no
1798 fi
1799 rm -fr conftest*
1800 fi
1801
1802 fi
1803 fi
1804
1805 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1806 if test $ac_cv_header_stdc = yes; then
1807   cat >> confdefs.h <<\EOF
1808 #define STDC_HEADERS 1
1809 EOF
1810
1811 fi
1812
1813
1814
1815 #AC_CHECK_LIB(pthread, pthread_create, 
1816 #       pthread_lib="-lpthread"; AC_DEFINE(HAVE_LIBPTHREAD), :)
1817 # We no longer use config.h
1818 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
1819 echo "configure:1820: checking for pthread_create in -lpthread" >&5
1820 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
1821 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1822   echo $ac_n "(cached) $ac_c" 1>&6
1823 else
1824   ac_save_LIBS="$LIBS"
1825 LIBS="-lpthread  $LIBS"
1826 cat > conftest.$ac_ext <<EOF
1827 #line 1828 "configure"
1828 #include "confdefs.h"
1829 /* Override any gcc2 internal prototype to avoid an error.  */
1830 /* We use char because int might match the return type of a gcc2
1831     builtin and then its argument prototype would still apply.  */
1832 char pthread_create();
1833
1834 int main() {
1835 pthread_create()
1836 ; return 0; }
1837 EOF
1838 if { (eval echo configure:1839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1839   rm -rf conftest*
1840   eval "ac_cv_lib_$ac_lib_var=yes"
1841 else
1842   echo "configure: failed program was:" >&5
1843   cat conftest.$ac_ext >&5
1844   rm -rf conftest*
1845   eval "ac_cv_lib_$ac_lib_var=no"
1846 fi
1847 rm -f conftest*
1848 LIBS="$ac_save_LIBS"
1849
1850 fi
1851 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1852   echo "$ac_t""yes" 1>&6
1853   pthread_lib="-lpthread"
1854 else
1855   echo "$ac_t""no" 1>&6
1856 :
1857 fi
1858
1859
1860 #dnl Linuxthreads require you to define _REENTRANT in all threaded
1861 #dnl code.  Bogus, bogus...
1862 #
1863 #if test -n "$pthread_lib"; then
1864 #       case $host in 
1865 #       i?86-*-linux*)
1866 #               AC_DEFINE(_REENTRANT)
1867 #               ;;
1868 #       esac
1869 #fi
1870 # We no longer use config.h
1871
1872 #if test -n "$x_libraries"; then
1873 #       XOGG="yes"
1874 #
1875 #       dnl If we find libgtk installed, great; otherwise assume we have
1876 #       dnl to build it ourselves.
1877 #
1878 #       AC_CHECK_LIB(gtk, gtk_main, :, LIBGTKDIR="libgtk", $X_LIBS -lglib -lgdk -lX11 -lXext -lm)
1879 #
1880 #       dnl libpthread is required for xogg.
1881 #
1882 #       if test -z "$pthread_lib"; then XOGG=""; fi
1883 #
1884 #       dnl If we don't have libgtk installed, and we don't have a libgtk 
1885 #       dnl  subdirectory to build the library ourself, we can't build xogg.
1886 #
1887 #       if test -n "$LIBGTKDIR" -a ! -d "$LIBGTKDIR"; then
1888 #               XOGG=""
1889 #               LIBGTKDIR=""
1890 #       fi
1891 #fi
1892
1893
1894 dummy="__noconf"
1895
1896 #if test -d "$LIBGTKDIR"; then
1897 #       enable_shared="no"; export enable_shared
1898 #       dummy="libgtk"
1899 #       AC_CONFIG_SUBDIRS("$dummy")
1900 #       X_LIBS="-L${srcdir}/libgtk/gtk/.libs -L${srcdir}/libgtk/gdk/.libs -L${srcdir}/libgtk/glib/.libs $X_LIBS"
1901 #fi
1902
1903 # check macro modified from Jon Shiring's to compensate for autoconf's lagging
1904 # behind the times on type madness
1905
1906 echo $ac_n "checking for int16_t""... $ac_c" 1>&6
1907 echo "configure:1908: checking for int16_t" >&5
1908 if eval "test \"`echo '$''{'has_int16_t'+set}'`\" = set"; then
1909   echo $ac_n "(cached) $ac_c" 1>&6
1910 else
1911   if test "$cross_compiling" = yes; then
1912   has_int16_t=no
1913
1914 else
1915   cat > conftest.$ac_ext <<EOF
1916 #line 1917 "configure"
1917 #include "confdefs.h"
1918
1919 #ifdef __BEOS__
1920 #include <inttypes.h>
1921 #endif
1922 #include <sys/types.h>
1923 int16_t foo;
1924 int main() {return 0;}
1925
1926 EOF
1927 if { (eval echo configure:1928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1928 then
1929   has_int16_t=yes
1930 else
1931   echo "configure: failed program was:" >&5
1932   cat conftest.$ac_ext >&5
1933   rm -fr conftest*
1934   has_int16_t=no
1935 fi
1936 rm -fr conftest*
1937 fi
1938
1939 fi
1940
1941 echo "$ac_t""$has_int16_t" 1>&6
1942
1943 echo $ac_n "checking for int32_t""... $ac_c" 1>&6
1944 echo "configure:1945: checking for int32_t" >&5
1945 if eval "test \"`echo '$''{'has_int32_t'+set}'`\" = set"; then
1946   echo $ac_n "(cached) $ac_c" 1>&6
1947 else
1948   if test "$cross_compiling" = yes; then
1949   has_int32_t=no
1950
1951 else
1952   cat > conftest.$ac_ext <<EOF
1953 #line 1954 "configure"
1954 #include "confdefs.h"
1955
1956 #ifdef __BEOS__
1957 #include <inttypes.h>
1958 #endif
1959 #include <sys/types.h>
1960 int32_t foo;
1961 int main() {return 0;}
1962
1963 EOF
1964 if { (eval echo configure:1965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1965 then
1966   has_int32_t=yes
1967 else
1968   echo "configure: failed program was:" >&5
1969   cat conftest.$ac_ext >&5
1970   rm -fr conftest*
1971   has_int32_t=no
1972 fi
1973 rm -fr conftest*
1974 fi
1975
1976 fi
1977
1978 echo "$ac_t""$has_int32_t" 1>&6
1979
1980 echo $ac_n "checking for uint32_t""... $ac_c" 1>&6
1981 echo "configure:1982: checking for uint32_t" >&5
1982 if eval "test \"`echo '$''{'has_uint32_t'+set}'`\" = set"; then
1983   echo $ac_n "(cached) $ac_c" 1>&6
1984 else
1985   if test "$cross_compiling" = yes; then
1986   has_uint32_t=no
1987
1988 else
1989   cat > conftest.$ac_ext <<EOF
1990 #line 1991 "configure"
1991 #include "confdefs.h"
1992
1993 #ifdef __BEOS__
1994 #include <inttypes.h>
1995 #endif
1996 #include <sys/types.h>
1997 uint32_t foo;
1998 int main() {return 0;}
1999
2000 EOF
2001 if { (eval echo configure:2002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2002 then
2003   has_uint32_t=yes
2004 else
2005   echo "configure: failed program was:" >&5
2006   cat conftest.$ac_ext >&5
2007   rm -fr conftest*
2008   has_uint32_t=no
2009 fi
2010 rm -fr conftest*
2011 fi
2012
2013 fi
2014
2015 echo "$ac_t""$has_uint32_t" 1>&6
2016
2017 echo $ac_n "checking for u_int32_t""... $ac_c" 1>&6
2018 echo "configure:2019: checking for u_int32_t" >&5
2019 if eval "test \"`echo '$''{'has_u_int32_t'+set}'`\" = set"; then
2020   echo $ac_n "(cached) $ac_c" 1>&6
2021 else
2022   if test "$cross_compiling" = yes; then
2023   has_u_int32_t=no
2024
2025 else
2026   cat > conftest.$ac_ext <<EOF
2027 #line 2028 "configure"
2028 #include "confdefs.h"
2029
2030 #ifdef __BEOS__
2031 #include <inttypes.h>
2032 #endif
2033 #include <sys/types.h>
2034 u_int32_t foo;
2035 int main() {return 0;}
2036
2037 EOF
2038 if { (eval echo configure:2039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2039 then
2040   has_u_int32_t=yes
2041 else
2042   echo "configure: failed program was:" >&5
2043   cat conftest.$ac_ext >&5
2044   rm -fr conftest*
2045   has_u_int32_t=no
2046 fi
2047 rm -fr conftest*
2048 fi
2049
2050 fi
2051
2052 echo "$ac_t""$has_u_int32_t" 1>&6
2053
2054 echo $ac_n "checking for int64_t""... $ac_c" 1>&6
2055 echo "configure:2056: checking for int64_t" >&5
2056 if eval "test \"`echo '$''{'has_int64_t'+set}'`\" = set"; then
2057   echo $ac_n "(cached) $ac_c" 1>&6
2058 else
2059   if test "$cross_compiling" = yes; then
2060   has_int64_t=no
2061
2062 else
2063   cat > conftest.$ac_ext <<EOF
2064 #line 2065 "configure"
2065 #include "confdefs.h"
2066
2067 #ifdef __BEOS__
2068 #include <inttypes.h>
2069 #endif
2070 #include <sys/types.h>
2071 int64_t foo;
2072 int main() {return 0;}
2073
2074 EOF
2075 if { (eval echo configure:2076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2076 then
2077   has_int64_t=yes
2078 else
2079   echo "configure: failed program was:" >&5
2080   cat conftest.$ac_ext >&5
2081   rm -fr conftest*
2082   has_int64_t=no
2083 fi
2084 rm -fr conftest*
2085 fi
2086
2087 fi
2088
2089 echo "$ac_t""$has_int64_t" 1>&6
2090
2091 echo $ac_n "checking size of short""... $ac_c" 1>&6
2092 echo "configure:2093: checking size of short" >&5
2093 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2094   echo $ac_n "(cached) $ac_c" 1>&6
2095 else
2096   if test "$cross_compiling" = yes; then
2097     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2098 else
2099   cat > conftest.$ac_ext <<EOF
2100 #line 2101 "configure"
2101 #include "confdefs.h"
2102 #include <stdio.h>
2103 main()
2104 {
2105   FILE *f=fopen("conftestval", "w");
2106   if (!f) exit(1);
2107   fprintf(f, "%d\n", sizeof(short));
2108   exit(0);
2109 }
2110 EOF
2111 if { (eval echo configure:2112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2112 then
2113   ac_cv_sizeof_short=`cat conftestval`
2114 else
2115   echo "configure: failed program was:" >&5
2116   cat conftest.$ac_ext >&5
2117   rm -fr conftest*
2118   ac_cv_sizeof_short=0
2119 fi
2120 rm -fr conftest*
2121 fi
2122
2123 fi
2124 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2125 cat >> confdefs.h <<EOF
2126 #define SIZEOF_SHORT $ac_cv_sizeof_short
2127 EOF
2128
2129
2130 echo $ac_n "checking size of int""... $ac_c" 1>&6
2131 echo "configure:2132: checking size of int" >&5
2132 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2133   echo $ac_n "(cached) $ac_c" 1>&6
2134 else
2135   if test "$cross_compiling" = yes; then
2136     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2137 else
2138   cat > conftest.$ac_ext <<EOF
2139 #line 2140 "configure"
2140 #include "confdefs.h"
2141 #include <stdio.h>
2142 main()
2143 {
2144   FILE *f=fopen("conftestval", "w");
2145   if (!f) exit(1);
2146   fprintf(f, "%d\n", sizeof(int));
2147   exit(0);
2148 }
2149 EOF
2150 if { (eval echo configure:2151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2151 then
2152   ac_cv_sizeof_int=`cat conftestval`
2153 else
2154   echo "configure: failed program was:" >&5
2155   cat conftest.$ac_ext >&5
2156   rm -fr conftest*
2157   ac_cv_sizeof_int=0
2158 fi
2159 rm -fr conftest*
2160 fi
2161
2162 fi
2163 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2164 cat >> confdefs.h <<EOF
2165 #define SIZEOF_INT $ac_cv_sizeof_int
2166 EOF
2167
2168
2169 echo $ac_n "checking size of long""... $ac_c" 1>&6
2170 echo "configure:2171: checking size of long" >&5
2171 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2172   echo $ac_n "(cached) $ac_c" 1>&6
2173 else
2174   if test "$cross_compiling" = yes; then
2175     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2176 else
2177   cat > conftest.$ac_ext <<EOF
2178 #line 2179 "configure"
2179 #include "confdefs.h"
2180 #include <stdio.h>
2181 main()
2182 {
2183   FILE *f=fopen("conftestval", "w");
2184   if (!f) exit(1);
2185   fprintf(f, "%d\n", sizeof(long));
2186   exit(0);
2187 }
2188 EOF
2189 if { (eval echo configure:2190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2190 then
2191   ac_cv_sizeof_long=`cat conftestval`
2192 else
2193   echo "configure: failed program was:" >&5
2194   cat conftest.$ac_ext >&5
2195   rm -fr conftest*
2196   ac_cv_sizeof_long=0
2197 fi
2198 rm -fr conftest*
2199 fi
2200
2201 fi
2202 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2203 cat >> confdefs.h <<EOF
2204 #define SIZEOF_LONG $ac_cv_sizeof_long
2205 EOF
2206
2207
2208 echo $ac_n "checking size of long long""... $ac_c" 1>&6
2209 echo "configure:2210: checking size of long long" >&5
2210 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
2211   echo $ac_n "(cached) $ac_c" 1>&6
2212 else
2213   if test "$cross_compiling" = yes; then
2214     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2215 else
2216   cat > conftest.$ac_ext <<EOF
2217 #line 2218 "configure"
2218 #include "confdefs.h"
2219 #include <stdio.h>
2220 main()
2221 {
2222   FILE *f=fopen("conftestval", "w");
2223   if (!f) exit(1);
2224   fprintf(f, "%d\n", sizeof(long long));
2225   exit(0);
2226 }
2227 EOF
2228 if { (eval echo configure:2229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2229 then
2230   ac_cv_sizeof_long_long=`cat conftestval`
2231 else
2232   echo "configure: failed program was:" >&5
2233   cat conftest.$ac_ext >&5
2234   rm -fr conftest*
2235   ac_cv_sizeof_long_long=0
2236 fi
2237 rm -fr conftest*
2238 fi
2239
2240 fi
2241 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
2242 cat >> confdefs.h <<EOF
2243 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
2244 EOF
2245
2246
2247
2248
2249 if test x$has_int16_t = "xyes" ; then
2250         SIZE16="int16_t"
2251 else
2252         case 2 in
2253                 $ac_cv_sizeof_short) SIZE16="short";;
2254                 $ac_cv_sizeof_int) SIZE16="int";;
2255         esac
2256 fi
2257
2258
2259 ac_safe=`echo "memory.h" | sed 'y%./+-%__p_%'`
2260 echo $ac_n "checking for memory.h""... $ac_c" 1>&6
2261 echo "configure:2262: checking for memory.h" >&5
2262 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2263   echo $ac_n "(cached) $ac_c" 1>&6
2264 else
2265   cat > conftest.$ac_ext <<EOF
2266 #line 2267 "configure"
2267 #include "confdefs.h"
2268 #include <memory.h>
2269 EOF
2270 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2271 { (eval echo configure:2272: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2272 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2273 if test -z "$ac_err"; then
2274   rm -rf conftest*
2275   eval "ac_cv_header_$ac_safe=yes"
2276 else
2277   echo "$ac_err" >&5
2278   echo "configure: failed program was:" >&5
2279   cat conftest.$ac_ext >&5
2280   rm -rf conftest*
2281   eval "ac_cv_header_$ac_safe=no"
2282 fi
2283 rm -f conftest*
2284 fi
2285 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2286   echo "$ac_t""yes" 1>&6
2287   CFLAGS="$CFLAGS -DUSE_MEMORY_H"
2288 else
2289   echo "$ac_t""no" 1>&6
2290 :
2291 fi
2292
2293
2294
2295
2296
2297 echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6
2298 echo "configure:2299: checking for cos in -lm" >&5
2299 ac_lib_var=`echo m'_'cos | sed 'y%./+-%__p_%'`
2300 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2301   echo $ac_n "(cached) $ac_c" 1>&6
2302 else
2303   ac_save_LIBS="$LIBS"
2304 LIBS="-lm  $LIBS"
2305 cat > conftest.$ac_ext <<EOF
2306 #line 2307 "configure"
2307 #include "confdefs.h"
2308 /* Override any gcc2 internal prototype to avoid an error.  */
2309 /* We use char because int might match the return type of a gcc2
2310     builtin and then its argument prototype would still apply.  */
2311 char cos();
2312
2313 int main() {
2314 cos()
2315 ; return 0; }
2316 EOF
2317 if { (eval echo configure:2318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2318   rm -rf conftest*
2319   eval "ac_cv_lib_$ac_lib_var=yes"
2320 else
2321   echo "configure: failed program was:" >&5
2322   cat conftest.$ac_ext >&5
2323   rm -rf conftest*
2324   eval "ac_cv_lib_$ac_lib_var=no"
2325 fi
2326 rm -f conftest*
2327 LIBS="$ac_save_LIBS"
2328
2329 fi
2330 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2331   echo "$ac_t""yes" 1>&6
2332   LIBS="-lm"
2333 else
2334   echo "$ac_t""no" 1>&6
2335 LIBS=""
2336 fi
2337
2338 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
2339 echo "configure:2340: checking for pthread_create in -lpthread" >&5
2340 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
2341 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2342   echo $ac_n "(cached) $ac_c" 1>&6
2343 else
2344   ac_save_LIBS="$LIBS"
2345 LIBS="-lpthread  $LIBS"
2346 cat > conftest.$ac_ext <<EOF
2347 #line 2348 "configure"
2348 #include "confdefs.h"
2349 /* Override any gcc2 internal prototype to avoid an error.  */
2350 /* We use char because int might match the return type of a gcc2
2351     builtin and then its argument prototype would still apply.  */
2352 char pthread_create();
2353
2354 int main() {
2355 pthread_create()
2356 ; return 0; }
2357 EOF
2358 if { (eval echo configure:2359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2359   rm -rf conftest*
2360   eval "ac_cv_lib_$ac_lib_var=yes"
2361 else
2362   echo "configure: failed program was:" >&5
2363   cat conftest.$ac_ext >&5
2364   rm -rf conftest*
2365   eval "ac_cv_lib_$ac_lib_var=no"
2366 fi
2367 rm -f conftest*
2368 LIBS="$ac_save_LIBS"
2369
2370 fi
2371 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2372   echo "$ac_t""yes" 1>&6
2373   pthread_lib="-lpthread"
2374 else
2375   echo "$ac_t""no" 1>&6
2376 :
2377 fi
2378
2379
2380 if test -n $with_ogg; then
2381         CFLAGS="$CFLAGS -I$with_ogg/include -L$with_ogg/lib"
2382 fi 
2383 echo $ac_n "checking for oggpack_read in -logg""... $ac_c" 1>&6
2384 echo "configure:2385: checking for oggpack_read in -logg" >&5
2385 ac_lib_var=`echo ogg'_'oggpack_read | sed 'y%./+-%__p_%'`
2386 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2387   echo $ac_n "(cached) $ac_c" 1>&6
2388 else
2389   ac_save_LIBS="$LIBS"
2390 LIBS="-logg  $LIBS"
2391 cat > conftest.$ac_ext <<EOF
2392 #line 2393 "configure"
2393 #include "confdefs.h"
2394 /* Override any gcc2 internal prototype to avoid an error.  */
2395 /* We use char because int might match the return type of a gcc2
2396     builtin and then its argument prototype would still apply.  */
2397 char oggpack_read();
2398
2399 int main() {
2400 oggpack_read()
2401 ; return 0; }
2402 EOF
2403 if { (eval echo configure:2404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2404   rm -rf conftest*
2405   eval "ac_cv_lib_$ac_lib_var=yes"
2406 else
2407   echo "configure: failed program was:" >&5
2408   cat conftest.$ac_ext >&5
2409   rm -rf conftest*
2410   eval "ac_cv_lib_$ac_lib_var=no"
2411 fi
2412 rm -f conftest*
2413 LIBS="$ac_save_LIBS"
2414
2415 fi
2416 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2417   echo "$ac_t""yes" 1>&6
2418   LIBS="$LIBS -logg"
2419 else
2420   echo "$ac_t""no" 1>&6
2421 { echo "configure: error: You must have libogg to compile vorbis!!!" 1>&2; exit 1; }
2422 fi
2423
2424
2425
2426 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2427 # for constant arguments.  Useless!
2428 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2429 echo "configure:2430: checking for working alloca.h" >&5
2430 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2431   echo $ac_n "(cached) $ac_c" 1>&6
2432 else
2433   cat > conftest.$ac_ext <<EOF
2434 #line 2435 "configure"
2435 #include "confdefs.h"
2436 #include <alloca.h>
2437 int main() {
2438 void *p = alloca(2 * sizeof(int));
2439 ; return 0; }
2440 EOF
2441 if { (eval echo configure:2442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2442   rm -rf conftest*
2443   ac_cv_header_alloca_h=yes
2444 else
2445   echo "configure: failed program was:" >&5
2446   cat conftest.$ac_ext >&5
2447   rm -rf conftest*
2448   ac_cv_header_alloca_h=no
2449 fi
2450 rm -f conftest*
2451 fi
2452
2453 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2454 if test $ac_cv_header_alloca_h = yes; then
2455   cat >> confdefs.h <<\EOF
2456 #define HAVE_ALLOCA_H 1
2457 EOF
2458
2459 fi
2460
2461 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2462 echo "configure:2463: checking for alloca" >&5
2463 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2464   echo $ac_n "(cached) $ac_c" 1>&6
2465 else
2466   cat > conftest.$ac_ext <<EOF
2467 #line 2468 "configure"
2468 #include "confdefs.h"
2469
2470 #ifdef __GNUC__
2471 # define alloca __builtin_alloca
2472 #else
2473 # ifdef _MSC_VER
2474 #  include <malloc.h>
2475 #  define alloca _alloca
2476 # else
2477 #  if HAVE_ALLOCA_H
2478 #   include <alloca.h>
2479 #  else
2480 #   ifdef _AIX
2481  #pragma alloca
2482 #   else
2483 #    ifndef alloca /* predefined by HP cc +Olibcalls */
2484 char *alloca ();
2485 #    endif
2486 #   endif
2487 #  endif
2488 # endif
2489 #endif
2490
2491 int main() {
2492 char *p = (char *) alloca(1);
2493 ; return 0; }
2494 EOF
2495 if { (eval echo configure:2496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2496   rm -rf conftest*
2497   ac_cv_func_alloca_works=yes
2498 else
2499   echo "configure: failed program was:" >&5
2500   cat conftest.$ac_ext >&5
2501   rm -rf conftest*
2502   ac_cv_func_alloca_works=no
2503 fi
2504 rm -f conftest*
2505 fi
2506
2507 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2508 if test $ac_cv_func_alloca_works = yes; then
2509   cat >> confdefs.h <<\EOF
2510 #define HAVE_ALLOCA 1
2511 EOF
2512
2513 fi
2514
2515 if test $ac_cv_func_alloca_works = no; then
2516   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2517   # that cause trouble.  Some versions do not even contain alloca or
2518   # contain a buggy version.  If you still want to use their alloca,
2519   # use ar to extract alloca.o from them instead of compiling alloca.c.
2520   ALLOCA=alloca.${ac_objext}
2521   cat >> confdefs.h <<\EOF
2522 #define C_ALLOCA 1
2523 EOF
2524
2525
2526 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2527 echo "configure:2528: checking whether alloca needs Cray hooks" >&5
2528 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2529   echo $ac_n "(cached) $ac_c" 1>&6
2530 else
2531   cat > conftest.$ac_ext <<EOF
2532 #line 2533 "configure"
2533 #include "confdefs.h"
2534 #if defined(CRAY) && ! defined(CRAY2)
2535 webecray
2536 #else
2537 wenotbecray
2538 #endif
2539
2540 EOF
2541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2542   egrep "webecray" >/dev/null 2>&1; then
2543   rm -rf conftest*
2544   ac_cv_os_cray=yes
2545 else
2546   rm -rf conftest*
2547   ac_cv_os_cray=no
2548 fi
2549 rm -f conftest*
2550
2551 fi
2552
2553 echo "$ac_t""$ac_cv_os_cray" 1>&6
2554 if test $ac_cv_os_cray = yes; then
2555 for ac_func in _getb67 GETB67 getb67; do
2556   echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2557 echo "configure:2558: checking for $ac_func" >&5
2558 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2559   echo $ac_n "(cached) $ac_c" 1>&6
2560 else
2561   cat > conftest.$ac_ext <<EOF
2562 #line 2563 "configure"
2563 #include "confdefs.h"
2564 /* System header to define __stub macros and hopefully few prototypes,
2565     which can conflict with char $ac_func(); below.  */
2566 #include <assert.h>
2567 /* Override any gcc2 internal prototype to avoid an error.  */
2568 /* We use char because int might match the return type of a gcc2
2569     builtin and then its argument prototype would still apply.  */
2570 char $ac_func();
2571
2572 int main() {
2573
2574 /* The GNU C library defines this for functions which it implements
2575     to always fail with ENOSYS.  Some functions are actually named
2576     something starting with __ and the normal name is an alias.  */
2577 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2578 choke me
2579 #else
2580 $ac_func();
2581 #endif
2582
2583 ; return 0; }
2584 EOF
2585 if { (eval echo configure:2586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2586   rm -rf conftest*
2587   eval "ac_cv_func_$ac_func=yes"
2588 else
2589   echo "configure: failed program was:" >&5
2590   cat conftest.$ac_ext >&5
2591   rm -rf conftest*
2592   eval "ac_cv_func_$ac_func=no"
2593 fi
2594 rm -f conftest*
2595 fi
2596
2597 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2598   echo "$ac_t""yes" 1>&6
2599   cat >> confdefs.h <<EOF
2600 #define CRAY_STACKSEG_END $ac_func
2601 EOF
2602
2603   break
2604 else
2605   echo "$ac_t""no" 1>&6
2606 fi
2607
2608 done
2609 fi
2610
2611 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2612 echo "configure:2613: checking stack direction for C alloca" >&5
2613 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2614   echo $ac_n "(cached) $ac_c" 1>&6
2615 else
2616   if test "$cross_compiling" = yes; then
2617   ac_cv_c_stack_direction=0
2618 else
2619   cat > conftest.$ac_ext <<EOF
2620 #line 2621 "configure"
2621 #include "confdefs.h"
2622 find_stack_direction ()
2623 {
2624   static char *addr = 0;
2625   auto char dummy;
2626   if (addr == 0)
2627     {
2628       addr = &dummy;
2629       return find_stack_direction ();
2630     }
2631   else
2632     return (&dummy > addr) ? 1 : -1;
2633 }
2634 main ()
2635 {
2636   exit (find_stack_direction() < 0);
2637 }
2638 EOF
2639 if { (eval echo configure:2640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2640 then
2641   ac_cv_c_stack_direction=1
2642 else
2643   echo "configure: failed program was:" >&5
2644   cat conftest.$ac_ext >&5
2645   rm -fr conftest*
2646   ac_cv_c_stack_direction=-1
2647 fi
2648 rm -fr conftest*
2649 fi
2650
2651 fi
2652
2653 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2654 cat >> confdefs.h <<EOF
2655 #define STACK_DIRECTION $ac_cv_c_stack_direction
2656 EOF
2657
2658 fi
2659
2660 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
2661 echo "configure:2662: checking for 8-bit clean memcmp" >&5
2662 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
2663   echo $ac_n "(cached) $ac_c" 1>&6
2664 else
2665   if test "$cross_compiling" = yes; then
2666   ac_cv_func_memcmp_clean=no
2667 else
2668   cat > conftest.$ac_ext <<EOF
2669 #line 2670 "configure"
2670 #include "confdefs.h"
2671
2672 main()
2673 {
2674   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
2675   exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
2676 }
2677
2678 EOF
2679 if { (eval echo configure:2680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2680 then
2681   ac_cv_func_memcmp_clean=yes
2682 else
2683   echo "configure: failed program was:" >&5
2684   cat conftest.$ac_ext >&5
2685   rm -fr conftest*
2686   ac_cv_func_memcmp_clean=no
2687 fi
2688 rm -fr conftest*
2689 fi
2690
2691 fi
2692
2693 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
2694 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704 trap '' 1 2 15
2705 cat > confcache <<\EOF
2706 # This file is a shell script that caches the results of configure
2707 # tests run on this system so they can be shared between configure
2708 # scripts and configure runs.  It is not useful on other systems.
2709 # If it contains results you don't want to keep, you may remove or edit it.
2710 #
2711 # By default, configure uses ./config.cache as the cache file,
2712 # creating it if it does not exist already.  You can give configure
2713 # the --cache-file=FILE option to use a different cache file; that is
2714 # what configure does when it calls configure scripts in
2715 # subdirectories, so they share the cache.
2716 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2717 # config.status only pays attention to the cache file if you give it the
2718 # --recheck option to rerun configure.
2719 #
2720 EOF
2721 # The following way of writing the cache mishandles newlines in values,
2722 # but we know of no workaround that is simple, portable, and efficient.
2723 # So, don't put newlines in cache variables' values.
2724 # Ultrix sh set writes to stderr and can't be redirected directly,
2725 # and sets the high bit in the cache file unless we assign to the vars.
2726 (set) 2>&1 |
2727   case `(ac_space=' '; set | grep ac_space) 2>&1` in
2728   *ac_space=\ *)
2729     # `set' does not quote correctly, so add quotes (double-quote substitution
2730     # turns \\\\ into \\, and sed turns \\ into \).
2731     sed -n \
2732       -e "s/'/'\\\\''/g" \
2733       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2734     ;;
2735   *)
2736     # `set' quotes correctly as required by POSIX, so do not add quotes.
2737     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2738     ;;
2739   esac >> confcache
2740 if cmp -s $cache_file confcache; then
2741   :
2742 else
2743   if test -w $cache_file; then
2744     echo "updating cache $cache_file"
2745     cat confcache > $cache_file
2746   else
2747     echo "not updating unwritable cache $cache_file"
2748   fi
2749 fi
2750 rm -f confcache
2751
2752 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2753
2754 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2755 # Let make expand exec_prefix.
2756 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2757
2758 # Any assignment to VPATH causes Sun make to only execute
2759 # the first set of double-colon rules, so remove it if not needed.
2760 # If there is a colon in the path, we need to keep it.
2761 if test "x$srcdir" = x.; then
2762   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
2763 fi
2764
2765 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2766
2767 # Transform confdefs.h into DEFS.
2768 # Protect against shell expansion while executing Makefile rules.
2769 # Protect against Makefile macro expansion.
2770 cat > conftest.defs <<\EOF
2771 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2772 s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
2773 s%\[%\\&%g
2774 s%\]%\\&%g
2775 s%\$%$$%g
2776 EOF
2777 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2778 rm -f conftest.defs
2779
2780
2781 # Without the "./", some shells look in PATH for config.status.
2782 : ${CONFIG_STATUS=./config.status}
2783
2784 echo creating $CONFIG_STATUS
2785 rm -f $CONFIG_STATUS
2786 cat > $CONFIG_STATUS <<EOF
2787 #! /bin/sh
2788 # Generated automatically by configure.
2789 # Run this file to recreate the current configuration.
2790 # This directory was configured as follows,
2791 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2792 #
2793 # $0 $ac_configure_args
2794 #
2795 # Compiler output produced by configure, useful for debugging
2796 # configure, is in ./config.log if it exists.
2797
2798 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2799 for ac_option
2800 do
2801   case "\$ac_option" in
2802   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2803     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2804     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2805   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2806     echo "$CONFIG_STATUS generated by autoconf version 2.13"
2807     exit 0 ;;
2808   -help | --help | --hel | --he | --h)
2809     echo "\$ac_cs_usage"; exit 0 ;;
2810   *) echo "\$ac_cs_usage"; exit 1 ;;
2811   esac
2812 done
2813
2814 ac_given_srcdir=$srcdir
2815 ac_given_INSTALL="$INSTALL"
2816
2817 trap 'rm -fr `echo "Makefile lib/Makefile doc/Makefile include/Makefile include/vorbis/Makefile include/vorbis/book/Makefile examples/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2818 EOF
2819 cat >> $CONFIG_STATUS <<EOF
2820
2821 # Protect against being on the right side of a sed subst in config.status.
2822 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2823  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2824 $ac_vpsub
2825 $extrasub
2826 s%@SHELL@%$SHELL%g
2827 s%@CFLAGS@%$CFLAGS%g
2828 s%@CPPFLAGS@%$CPPFLAGS%g
2829 s%@CXXFLAGS@%$CXXFLAGS%g
2830 s%@FFLAGS@%$FFLAGS%g
2831 s%@DEFS@%$DEFS%g
2832 s%@LDFLAGS@%$LDFLAGS%g
2833 s%@LIBS@%$LIBS%g
2834 s%@exec_prefix@%$exec_prefix%g
2835 s%@prefix@%$prefix%g
2836 s%@program_transform_name@%$program_transform_name%g
2837 s%@bindir@%$bindir%g
2838 s%@sbindir@%$sbindir%g
2839 s%@libexecdir@%$libexecdir%g
2840 s%@datadir@%$datadir%g
2841 s%@sysconfdir@%$sysconfdir%g
2842 s%@sharedstatedir@%$sharedstatedir%g
2843 s%@localstatedir@%$localstatedir%g
2844 s%@libdir@%$libdir%g
2845 s%@includedir@%$includedir%g
2846 s%@oldincludedir@%$oldincludedir%g
2847 s%@infodir@%$infodir%g
2848 s%@mandir@%$mandir%g
2849 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2850 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2851 s%@INSTALL_DATA@%$INSTALL_DATA%g
2852 s%@PACKAGE@%$PACKAGE%g
2853 s%@VERSION@%$VERSION%g
2854 s%@ACLOCAL@%$ACLOCAL%g
2855 s%@AUTOCONF@%$AUTOCONF%g
2856 s%@AUTOMAKE@%$AUTOMAKE%g
2857 s%@AUTOHEADER@%$AUTOHEADER%g
2858 s%@MAKEINFO@%$MAKEINFO%g
2859 s%@SET_MAKE@%$SET_MAKE%g
2860 s%@V_LIB_CURRENT@%$V_LIB_CURRENT%g
2861 s%@V_LIB_REVISION@%$V_LIB_REVISION%g
2862 s%@V_LIB_AGE@%$V_LIB_AGE%g
2863 s%@VF_LIB_CURRENT@%$VF_LIB_CURRENT%g
2864 s%@VF_LIB_REVISION@%$VF_LIB_REVISION%g
2865 s%@VF_LIB_AGE@%$VF_LIB_AGE%g
2866 s%@CC@%$CC%g
2867 s%@host@%$host%g
2868 s%@host_alias@%$host_alias%g
2869 s%@host_cpu@%$host_cpu%g
2870 s%@host_vendor@%$host_vendor%g
2871 s%@host_os@%$host_os%g
2872 s%@build@%$build%g
2873 s%@build_alias@%$build_alias%g
2874 s%@build_cpu@%$build_cpu%g
2875 s%@build_vendor@%$build_vendor%g
2876 s%@build_os@%$build_os%g
2877 s%@RANLIB@%$RANLIB%g
2878 s%@LN_S@%$LN_S%g
2879 s%@LIBTOOL@%$LIBTOOL%g
2880 s%@CPP@%$CPP%g
2881 s%@ALLOCA@%$ALLOCA%g
2882 s%@LIBOBJS@%$LIBOBJS%g
2883 s%@DEBUG@%$DEBUG%g
2884 s%@PROFILE@%$PROFILE%g
2885 s%@pthread_lib@%$pthread_lib%g
2886
2887 CEOF
2888 EOF
2889
2890 cat >> $CONFIG_STATUS <<\EOF
2891
2892 # Split the substitutions into bite-sized pieces for seds with
2893 # small command number limits, like on Digital OSF/1 and HP-UX.
2894 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2895 ac_file=1 # Number of current file.
2896 ac_beg=1 # First line for current file.
2897 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2898 ac_more_lines=:
2899 ac_sed_cmds=""
2900 while $ac_more_lines; do
2901   if test $ac_beg -gt 1; then
2902     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2903   else
2904     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2905   fi
2906   if test ! -s conftest.s$ac_file; then
2907     ac_more_lines=false
2908     rm -f conftest.s$ac_file
2909   else
2910     if test -z "$ac_sed_cmds"; then
2911       ac_sed_cmds="sed -f conftest.s$ac_file"
2912     else
2913       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2914     fi
2915     ac_file=`expr $ac_file + 1`
2916     ac_beg=$ac_end
2917     ac_end=`expr $ac_end + $ac_max_sed_cmds`
2918   fi
2919 done
2920 if test -z "$ac_sed_cmds"; then
2921   ac_sed_cmds=cat
2922 fi
2923 EOF
2924
2925 cat >> $CONFIG_STATUS <<EOF
2926
2927 CONFIG_FILES=\${CONFIG_FILES-"Makefile lib/Makefile doc/Makefile include/Makefile include/vorbis/Makefile include/vorbis/book/Makefile examples/Makefile"}
2928 EOF
2929 cat >> $CONFIG_STATUS <<\EOF
2930 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2931   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2932   case "$ac_file" in
2933   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2934        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2935   *) ac_file_in="${ac_file}.in" ;;
2936   esac
2937
2938   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2939
2940   # Remove last slash and all that follows it.  Not all systems have dirname.
2941   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2942   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2943     # The file is in a subdirectory.
2944     test ! -d "$ac_dir" && mkdir "$ac_dir"
2945     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2946     # A "../" for each directory in $ac_dir_suffix.
2947     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2948   else
2949     ac_dir_suffix= ac_dots=
2950   fi
2951
2952   case "$ac_given_srcdir" in
2953   .)  srcdir=.
2954       if test -z "$ac_dots"; then top_srcdir=.
2955       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2956   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2957   *) # Relative path.
2958     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2959     top_srcdir="$ac_dots$ac_given_srcdir" ;;
2960   esac
2961
2962   case "$ac_given_INSTALL" in
2963   [/$]*) INSTALL="$ac_given_INSTALL" ;;
2964   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2965   esac
2966
2967   echo creating "$ac_file"
2968   rm -f "$ac_file"
2969   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2970   case "$ac_file" in
2971   *Makefile*) ac_comsub="1i\\
2972 # $configure_input" ;;
2973   *) ac_comsub= ;;
2974   esac
2975
2976   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2977   sed -e "$ac_comsub
2978 s%@configure_input@%$configure_input%g
2979 s%@srcdir@%$srcdir%g
2980 s%@top_srcdir@%$top_srcdir%g
2981 s%@INSTALL@%$INSTALL%g
2982 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2983 fi; done
2984 rm -f conftest.s*
2985
2986 EOF
2987 cat >> $CONFIG_STATUS <<EOF
2988
2989 EOF
2990 cat >> $CONFIG_STATUS <<\EOF
2991
2992 exit 0
2993 EOF
2994 chmod +x $CONFIG_STATUS
2995 rm -fr confdefs* $ac_clean_files
2996 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2997