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.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --enable-shared[=PKGS] build shared libraries [default=yes]"
17 --enable-static[=PKGS] build static libraries [default=yes]"
19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
23 --disable-libtool-lock avoid locking (might break parallel builds)"
25 --with-ogg=DIR Set where the Ogg library is located"
27 # Initialize some variables set by options.
28 # The variables have the same names as the options, with
29 # dashes changed to underlines.
31 cache_file=./config.cache
40 program_transform_name=s,x,x,
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'
61 # Initialize some other variables.
64 SHELL=${CONFIG_SHELL-/bin/sh}
65 # Maximum number of lines to put in a shell here document.
72 # If the previous option needs an argument, assign it.
73 if test -n "$ac_prev"; then
74 eval "$ac_prev=\$ac_option"
80 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
84 # Accept the important Cygnus configure options, so we can diagnose typos.
88 -bindir | --bindir | --bindi | --bind | --bin | --bi)
90 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
91 bindir="$ac_optarg" ;;
93 -build | --build | --buil | --bui | --bu)
95 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
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" ;;
105 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
107 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
109 datadir="$ac_optarg" ;;
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; }
117 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
118 eval "enable_${ac_feature}=no" ;;
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; }
126 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
131 eval "enable_${ac_feature}='$ac_optarg'" ;;
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" ;;
142 -gas | --gas | --ga | --g)
143 # Obsolete; use --with-gas.
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.
150 Usage: configure [options] [host]
151 Options: [defaults in brackets after descriptions]
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
161 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
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
168 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
169 --sharedstatedir=DIR modifiable architecture-independent data in DIR
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
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
196 if test -n "$ac_help"; then
197 echo "--enable and --with options recognized:$ac_help"
201 -host | --host | --hos | --ho)
203 -host=* | --host=* | --hos=* | --ho=*)
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" ;;
213 -infodir | --infodir | --infodi | --infod | --info | --inf)
215 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
216 infodir="$ac_optarg" ;;
218 -libdir | --libdir | --libdi | --libd)
220 -libdir=* | --libdir=* | --libdi=* | --libd=*)
221 libdir="$ac_optarg" ;;
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" ;;
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" ;;
239 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
241 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
242 mandir="$ac_optarg" ;;
245 # Obsolete; use --without-fp.
248 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
252 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
253 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
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" ;;
265 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
267 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
268 prefix="$ac_optarg" ;;
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" ;;
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" ;;
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" ;;
301 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
302 | -silent | --silent | --silen | --sile | --sil)
305 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
307 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
309 sbindir="$ac_optarg" ;;
311 -sharedstatedir | --sharedstatedir | --sharedstatedi \
312 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
313 | --sharedst | --shareds | --shared | --share | --shar \
315 ac_prev=sharedstatedir ;;
316 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
317 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
318 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
320 sharedstatedir="$ac_optarg" ;;
322 -site | --site | --sit)
324 -site=* | --site=* | --sit=*)
327 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
329 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
330 srcdir="$ac_optarg" ;;
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" ;;
339 -target | --target | --targe | --targ | --tar | --ta | --t)
341 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
342 target="$ac_optarg" ;;
344 -v | -verbose | --verbose | --verbos | --verbo | --verb)
347 -version | --version | --versio | --versi | --vers)
348 echo "configure generated by autoconf version 2.13"
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; }
357 ac_package=`echo $ac_package| sed 's/-/_/g'`
362 eval "with_${ac_package}='$ac_optarg'" ;;
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; }
370 ac_package=`echo $ac_package| sed 's/-/_/g'`
371 eval "with_${ac_package}=no" ;;
374 # Obsolete; use --with-x.
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" ;;
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" ;;
391 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
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
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; }
407 if test -n "$ac_prev"; then
408 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
411 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
413 # File descriptor usage:
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
429 This file contains any messages produced by compilers while
430 running configure, to aid debugging if configure makes a mistake.
433 # Strip out --no-create and --no-recursion so they do not pile up.
434 # Also quote any args containing shell metacharacters.
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" ;;
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
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.
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
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.
473 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
474 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
476 if test ! -r $srcdir/$ac_unique_file; then
480 ac_srcdir_defaulted=no
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; }
486 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
489 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
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"
496 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
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"
506 if test -r "$cache_file"; then
507 echo "loading cache $cache_file"
510 echo "creating cache $cache_file"
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
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
532 ac_n= ac_c='\c' ac_t=
537 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
538 if test -f $ac_dir/install-sh; then
540 ac_install_sh="$ac_aux_dir/install-sh -c"
542 elif test -f $ac_dir/install.sh; then
544 ac_install_sh="$ac_aux_dir/install.sh -c"
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; }
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.
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
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
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.
576 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
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
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.
588 ac_cv_path_install="$ac_dir/$ac_prog -c"
599 if test "${ac_cv_path_install+set}" = set; then
600 INSTALL="$ac_cv_path_install"
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"
609 echo "$ac_t""$INSTALL" 1>&6
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}'
615 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
617 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
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
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
630 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
631 if test "$*" = "X"; then
633 set X `ls -t $srcdir/configure conftestfile`
635 if test "$*" != "X $srcdir/configure conftestfile" \
636 && test "$*" != "X conftestfile $srcdir/configure"; then
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; }
646 test "$2" = conftestfile
652 { echo "configure: error: newly created file is older than distributed files!
653 Check your system clock" 1>&2; exit 1; }
656 echo "$ac_t""yes" 1>&6
657 if test "$program_transform_name" = s,x,x,; then
658 program_transform_name=
660 # Double any \ or $. echo might interpret backslashes.
661 cat <<\EOF_SED > conftestsed
662 s,\\,\\\\,g; s,\$,$$,g
664 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
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"
673 # sed with no file args requires a program.
674 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
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
682 cat > conftestmake <<\EOF
684 @echo 'ac_maketemp="${MAKE}"'
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
691 eval ac_cv_prog_make_${ac_make}_set=no
695 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
696 echo "$ac_t""yes" 1>&6
699 echo "$ac_t""no" 1>&6
700 SET_MAKE="MAKE=${MAKE-make}"
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; }
711 cat >> confdefs.h <<EOF
712 #define PACKAGE "$PACKAGE"
715 cat >> confdefs.h <<EOF
716 #define VERSION "$VERSION"
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
729 echo "$ac_t""found" 1>&6
731 ACLOCAL="$missing_dir/missing aclocal"
732 echo "$ac_t""missing" 1>&6
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
742 echo "$ac_t""found" 1>&6
744 AUTOCONF="$missing_dir/missing autoconf"
745 echo "$ac_t""missing" 1>&6
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
755 echo "$ac_t""found" 1>&6
757 AUTOMAKE="$missing_dir/missing automake"
758 echo "$ac_t""missing" 1>&6
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
770 AUTOHEADER="$missing_dir/missing autoheader"
771 echo "$ac_t""missing" 1>&6
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
781 echo "$ac_t""found" 1>&6
783 MAKEINFO="$missing_dir/missing makeinfo"
784 echo "$ac_t""missing" 1>&6
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
812 if test -n "$CC"; then
813 ac_cv_prog_CC="$CC" # Let the user override the test.
815 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
817 for ac_dir in $ac_dummy; do
818 test -z "$ac_dir" && ac_dir=.
819 if test -f $ac_dir/$ac_word; then
828 if test -n "$CC"; then
829 echo "$ac_t""$CC" 1>&6
831 echo "$ac_t""no" 1>&6
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
842 if test -n "$CC"; then
843 ac_cv_prog_CC="$CC" # Let the user override the test.
845 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
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
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
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.
869 set dummy "$ac_dir/$ac_word" "$@"
877 if test -n "$CC"; then
878 echo "$ac_t""$CC" 1>&6
880 echo "$ac_t""no" 1>&6
883 if test -z "$CC"; then
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
893 if test -n "$CC"; then
894 ac_cv_prog_CC="$CC" # Let the user override the test.
896 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
898 for ac_dir in $ac_dummy; do
899 test -z "$ac_dir" && ac_dir=.
900 if test -f $ac_dir/$ac_word; then
909 if test -n "$CC"; then
910 echo "$ac_t""$CC" 1>&6
912 echo "$ac_t""no" 1>&6
917 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
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
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
930 cat > conftest.$ac_ext << EOF
932 #line 933 "configure"
933 #include "confdefs.h"
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
943 ac_cv_prog_cc_cross=yes
946 echo "configure: failed program was:" >&5
947 cat conftest.$ac_ext >&5
948 ac_cv_prog_cc_works=no
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
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; }
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
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
972 cat > conftest.c <<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
984 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
986 if test $ac_cv_prog_gcc = yes; then
992 ac_test_CFLAGS="${CFLAGS+set}"
993 ac_save_CFLAGS="$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
1000 echo 'void f(){}' > conftest.c
1001 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
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
1020 if test "$GCC" = yes; then
1027 CFLAGS="$cflags_save"
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 ;;
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
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 ;;
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
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 ;;
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
1095 enable_fast_install=yes
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; }
1104 echo $ac_n "checking host system type""... $ac_c" 1>&6
1105 echo "configure:1106: checking host system type" >&5
1108 case "$host_alias" in
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; }
1115 *) host_alias=$nonopt ;;
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
1125 echo $ac_n "checking build system type""... $ac_c" 1>&6
1126 echo "configure:1127: checking build system type" >&5
1129 case "$build_alias" in
1132 NONE) build_alias=$host_alias ;;
1133 *) build_alias=$nonopt ;;
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
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
1150 if test -n "$RANLIB"; then
1151 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1153 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
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"
1163 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1166 RANLIB="$ac_cv_prog_RANLIB"
1167 if test -n "$RANLIB"; then
1168 echo "$ac_t""$RANLIB" 1>&6
1170 echo "$ac_t""no" 1>&6
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
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`
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%/%"`
1196 test -z "$LD" && LD="$ac_prog"
1199 # If it fails, then pretend we aren't using GCC.
1203 # If it is relative, then search for the first ld in PATH.
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
1211 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1212 echo "configure:1213: checking for non-GNU ld" >&5
1214 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1215 echo $ac_n "(cached) $ac_c" 1>&6
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
1229 test "$with_gnu_ld" != yes && break
1235 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1240 if test -n "$LD"; then
1241 echo "$ac_t""$LD" 1>&6
1243 echo "$ac_t""no" 1>&6
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
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
1255 ac_cv_prog_gnu_ld=no
1259 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
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
1267 if test -n "$NM"; then
1268 # Let the user override the test.
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"
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"
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
1291 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1296 echo "$ac_t""$NM" 1>&6
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
1304 if ln -s X conftestdata 2>/dev/null
1307 ac_cv_prog_LN_S="ln -s"
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
1316 echo "$ac_t""no" 1>&6
1321 NONE) lt_target="$host" ;;
1322 *) lt_target="$target" ;;
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"
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"
1340 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1341 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1343 # Some flags need to be propagated to the compiler or linker for good
1345 case "$lt_target" in
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
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
1374 cat > conftest.$ac_ext <<EOF
1375 #line 1376 "configure"
1376 #include "confdefs.h"
1382 if { (eval echo configure:1383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1384 lt_cv_cc_needs_belf=yes
1386 echo "configure: failed program was:" >&5
1387 cat conftest.$ac_ext >&5
1389 lt_cv_cc_needs_belf=no
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"
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.
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.
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.
1428 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1430 # `set' does not quote correctly, so add quotes (double-quote substitution
1431 # turns \\\\ into \\, and sed turns \\ into \).
1433 -e "s/'/'\\\\''/g" \
1434 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
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'
1441 if cmp -s $cache_file confcache; then
1444 if test -w $cache_file; then
1445 echo "updating cache $cache_file"
1446 cat confcache > $cache_file
1448 echo "not updating unwritable cache $cache_file"
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; }
1463 # Reload cache, that may have been modified by ltconfig
1464 if test -r "$cache_file"; then
1465 echo "loading cache $cache_file"
1468 echo "creating cache $cache_file"
1473 # This can be used to rebuild libtool when needed
1474 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1476 # Always use our own libtool.
1477 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
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
1485 # Check whether --with-ogg or --without-ogg was given.
1486 if test "${with_ogg+set}" = set; then
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; }
1499 echo $ac_n "checking host system type""... $ac_c" 1>&6
1500 echo "configure:1501: checking host system type" >&5
1503 case "$host_alias" in
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; }
1510 *) host_alias=$nonopt ;;
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
1521 if test -z "$GCC"; then
1524 if test -z "$CC"; then
1528 CFLAGS="-O2 -w -signed"
1529 PROFILE="-p -g3 -O2 -signed" ;;
1532 CFLAGS="-xO4 -fast -w -fsimple -native -xcg92"
1533 PROFILE="-v -xpg -g -xO4 -fast -native -fsimple -xcg92 -Dsuncc" ;;
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"
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
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
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
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.
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"
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
1581 echo "configure: failed program was:" >&5
1582 cat conftest.$ac_ext >&5
1584 CPP="${CC-cc} -E -traditional-cpp"
1585 cat > conftest.$ac_ext <<EOF
1586 #line 1587 "configure"
1587 #include "confdefs.h"
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
1598 echo "configure: failed program was:" >&5
1599 cat conftest.$ac_ext >&5
1601 CPP="${CC-cc} -nologo -E"
1602 cat > conftest.$ac_ext <<EOF
1603 #line 1604 "configure"
1604 #include "confdefs.h"
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
1615 echo "configure: failed program was:" >&5
1616 cat conftest.$ac_ext >&5
1625 ac_cv_prog_CPP="$CPP"
1627 CPP="$ac_cv_prog_CPP"
1629 ac_cv_prog_CPP="$CPP"
1631 echo "$ac_t""$CPP" 1>&6
1633 cat > conftest.$ac_ext <<EOF
1634 #line 1635 "configure"
1635 #include "confdefs.h"
1637 #define __LIBC_INTERNAL_MATH_INLINES 1
1638 #define __OPTIMIZE__
1642 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1643 egrep "log10.*fldlg2.*fxch" >/dev/null 2>&1; then
1652 if test ${bad} = "maybe" ;then
1653 cat > conftest.$ac_ext <<EOF
1654 #line 1655 "configure"
1655 #include "confdefs.h"
1657 #define __LIBC_INTERNAL_MATH_INLINES 1
1658 #define __OPTIMIZE__
1662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1663 egrep "log10.*fldlg2.*fxch.*st\([0123456789]*\)" >/dev/null 2>&1; then
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
1691 CFLAGS=${OPT}" -D__NO_MATH_INLINES"
1692 PROFILE=${PROFILE}" -D__NO_MATH_INLINES"
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";;
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" ;;
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" ;;
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
1714 cat > conftest.$ac_ext <<EOF
1715 #line 1716 "configure"
1716 #include "confdefs.h"
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
1727 ac_cv_header_stdc=yes
1730 echo "configure: failed program was:" >&5
1731 cat conftest.$ac_ext >&5
1733 ac_cv_header_stdc=no
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"
1744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1745 egrep "memchr" >/dev/null 2>&1; then
1749 ac_cv_header_stdc=no
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"
1762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1763 egrep "free" >/dev/null 2>&1; then
1767 ac_cv_header_stdc=no
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
1778 cat > conftest.$ac_ext <<EOF
1779 #line 1780 "configure"
1780 #include "confdefs.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);
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
1794 echo "configure: failed program was:" >&5
1795 cat conftest.$ac_ext >&5
1797 ac_cv_header_stdc=no
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
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
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();
1838 if { (eval echo configure:1839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1840 eval "ac_cv_lib_$ac_lib_var=yes"
1842 echo "configure: failed program was:" >&5
1843 cat conftest.$ac_ext >&5
1845 eval "ac_cv_lib_$ac_lib_var=no"
1848 LIBS="$ac_save_LIBS"
1851 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1852 echo "$ac_t""yes" 1>&6
1853 pthread_lib="-lpthread"
1855 echo "$ac_t""no" 1>&6
1860 #dnl Linuxthreads require you to define _REENTRANT in all threaded
1861 #dnl code. Bogus, bogus...
1863 #if test -n "$pthread_lib"; then
1866 # AC_DEFINE(_REENTRANT)
1870 # We no longer use config.h
1872 #if test -n "$x_libraries"; then
1875 # dnl If we find libgtk installed, great; otherwise assume we have
1876 # dnl to build it ourselves.
1878 # AC_CHECK_LIB(gtk, gtk_main, :, LIBGTKDIR="libgtk", $X_LIBS -lglib -lgdk -lX11 -lXext -lm)
1880 # dnl libpthread is required for xogg.
1882 # if test -z "$pthread_lib"; then XOGG=""; fi
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.
1887 # if test -n "$LIBGTKDIR" -a ! -d "$LIBGTKDIR"; then
1896 #if test -d "$LIBGTKDIR"; then
1897 # enable_shared="no"; export enable_shared
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"
1903 # check macro modified from Jon Shiring's to compensate for autoconf's lagging
1904 # behind the times on type madness
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
1911 if test "$cross_compiling" = yes; then
1915 cat > conftest.$ac_ext <<EOF
1916 #line 1917 "configure"
1917 #include "confdefs.h"
1920 #include <inttypes.h>
1922 #include <sys/types.h>
1924 int main() {return 0;}
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
1931 echo "configure: failed program was:" >&5
1932 cat conftest.$ac_ext >&5
1941 echo "$ac_t""$has_int16_t" 1>&6
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
1948 if test "$cross_compiling" = yes; then
1952 cat > conftest.$ac_ext <<EOF
1953 #line 1954 "configure"
1954 #include "confdefs.h"
1957 #include <inttypes.h>
1959 #include <sys/types.h>
1961 int main() {return 0;}
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
1968 echo "configure: failed program was:" >&5
1969 cat conftest.$ac_ext >&5
1978 echo "$ac_t""$has_int32_t" 1>&6
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
1985 if test "$cross_compiling" = yes; then
1989 cat > conftest.$ac_ext <<EOF
1990 #line 1991 "configure"
1991 #include "confdefs.h"
1994 #include <inttypes.h>
1996 #include <sys/types.h>
1998 int main() {return 0;}
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
2005 echo "configure: failed program was:" >&5
2006 cat conftest.$ac_ext >&5
2015 echo "$ac_t""$has_uint32_t" 1>&6
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
2022 if test "$cross_compiling" = yes; then
2026 cat > conftest.$ac_ext <<EOF
2027 #line 2028 "configure"
2028 #include "confdefs.h"
2031 #include <inttypes.h>
2033 #include <sys/types.h>
2035 int main() {return 0;}
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
2042 echo "configure: failed program was:" >&5
2043 cat conftest.$ac_ext >&5
2052 echo "$ac_t""$has_u_int32_t" 1>&6
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
2059 if test "$cross_compiling" = yes; then
2063 cat > conftest.$ac_ext <<EOF
2064 #line 2065 "configure"
2065 #include "confdefs.h"
2068 #include <inttypes.h>
2070 #include <sys/types.h>
2072 int main() {return 0;}
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
2079 echo "configure: failed program was:" >&5
2080 cat conftest.$ac_ext >&5
2089 echo "$ac_t""$has_int64_t" 1>&6
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
2096 if test "$cross_compiling" = yes; then
2097 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2099 cat > conftest.$ac_ext <<EOF
2100 #line 2101 "configure"
2101 #include "confdefs.h"
2105 FILE *f=fopen("conftestval", "w");
2107 fprintf(f, "%d\n", sizeof(short));
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
2113 ac_cv_sizeof_short=`cat conftestval`
2115 echo "configure: failed program was:" >&5
2116 cat conftest.$ac_ext >&5
2118 ac_cv_sizeof_short=0
2124 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2125 cat >> confdefs.h <<EOF
2126 #define SIZEOF_SHORT $ac_cv_sizeof_short
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
2135 if test "$cross_compiling" = yes; then
2136 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2138 cat > conftest.$ac_ext <<EOF
2139 #line 2140 "configure"
2140 #include "confdefs.h"
2144 FILE *f=fopen("conftestval", "w");
2146 fprintf(f, "%d\n", sizeof(int));
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
2152 ac_cv_sizeof_int=`cat conftestval`
2154 echo "configure: failed program was:" >&5
2155 cat conftest.$ac_ext >&5
2163 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2164 cat >> confdefs.h <<EOF
2165 #define SIZEOF_INT $ac_cv_sizeof_int
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
2174 if test "$cross_compiling" = yes; then
2175 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2177 cat > conftest.$ac_ext <<EOF
2178 #line 2179 "configure"
2179 #include "confdefs.h"
2183 FILE *f=fopen("conftestval", "w");
2185 fprintf(f, "%d\n", sizeof(long));
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
2191 ac_cv_sizeof_long=`cat conftestval`
2193 echo "configure: failed program was:" >&5
2194 cat conftest.$ac_ext >&5
2202 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2203 cat >> confdefs.h <<EOF
2204 #define SIZEOF_LONG $ac_cv_sizeof_long
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
2213 if test "$cross_compiling" = yes; then
2214 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2216 cat > conftest.$ac_ext <<EOF
2217 #line 2218 "configure"
2218 #include "confdefs.h"
2222 FILE *f=fopen("conftestval", "w");
2224 fprintf(f, "%d\n", sizeof(long long));
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
2230 ac_cv_sizeof_long_long=`cat conftestval`
2232 echo "configure: failed program was:" >&5
2233 cat conftest.$ac_ext >&5
2235 ac_cv_sizeof_long_long=0
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
2249 if test x$has_int16_t = "xyes" ; then
2253 $ac_cv_sizeof_short) SIZE16="short";;
2254 $ac_cv_sizeof_int) SIZE16="int";;
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
2265 cat > conftest.$ac_ext <<EOF
2266 #line 2267 "configure"
2267 #include "confdefs.h"
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
2275 eval "ac_cv_header_$ac_safe=yes"
2278 echo "configure: failed program was:" >&5
2279 cat conftest.$ac_ext >&5
2281 eval "ac_cv_header_$ac_safe=no"
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"
2289 echo "$ac_t""no" 1>&6
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
2303 ac_save_LIBS="$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. */
2317 if { (eval echo configure:2318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2319 eval "ac_cv_lib_$ac_lib_var=yes"
2321 echo "configure: failed program was:" >&5
2322 cat conftest.$ac_ext >&5
2324 eval "ac_cv_lib_$ac_lib_var=no"
2327 LIBS="$ac_save_LIBS"
2330 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2331 echo "$ac_t""yes" 1>&6
2334 echo "$ac_t""no" 1>&6
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
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();
2358 if { (eval echo configure:2359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2360 eval "ac_cv_lib_$ac_lib_var=yes"
2362 echo "configure: failed program was:" >&5
2363 cat conftest.$ac_ext >&5
2365 eval "ac_cv_lib_$ac_lib_var=no"
2368 LIBS="$ac_save_LIBS"
2371 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2372 echo "$ac_t""yes" 1>&6
2373 pthread_lib="-lpthread"
2375 echo "$ac_t""no" 1>&6
2380 if test -n $with_ogg; then
2381 CFLAGS="$CFLAGS -I$with_ogg/include -L$with_ogg/lib"
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
2389 ac_save_LIBS="$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();
2403 if { (eval echo configure:2404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2405 eval "ac_cv_lib_$ac_lib_var=yes"
2407 echo "configure: failed program was:" >&5
2408 cat conftest.$ac_ext >&5
2410 eval "ac_cv_lib_$ac_lib_var=no"
2413 LIBS="$ac_save_LIBS"
2416 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2417 echo "$ac_t""yes" 1>&6
2420 echo "$ac_t""no" 1>&6
2421 { echo "configure: error: You must have libogg to compile vorbis!!!" 1>&2; exit 1; }
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
2433 cat > conftest.$ac_ext <<EOF
2434 #line 2435 "configure"
2435 #include "confdefs.h"
2438 void *p = alloca(2 * sizeof(int));
2441 if { (eval echo configure:2442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2443 ac_cv_header_alloca_h=yes
2445 echo "configure: failed program was:" >&5
2446 cat conftest.$ac_ext >&5
2448 ac_cv_header_alloca_h=no
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
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
2466 cat > conftest.$ac_ext <<EOF
2467 #line 2468 "configure"
2468 #include "confdefs.h"
2471 # define alloca __builtin_alloca
2474 # include <malloc.h>
2475 # define alloca _alloca
2478 # include <alloca.h>
2483 # ifndef alloca /* predefined by HP cc +Olibcalls */
2492 char *p = (char *) alloca(1);
2495 if { (eval echo configure:2496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2497 ac_cv_func_alloca_works=yes
2499 echo "configure: failed program was:" >&5
2500 cat conftest.$ac_ext >&5
2502 ac_cv_func_alloca_works=no
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
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
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
2531 cat > conftest.$ac_ext <<EOF
2532 #line 2533 "configure"
2533 #include "confdefs.h"
2534 #if defined(CRAY) && ! defined(CRAY2)
2541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2542 egrep "webecray" >/dev/null 2>&1; then
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
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. */
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. */
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)
2585 if { (eval echo configure:2586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2587 eval "ac_cv_func_$ac_func=yes"
2589 echo "configure: failed program was:" >&5
2590 cat conftest.$ac_ext >&5
2592 eval "ac_cv_func_$ac_func=no"
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
2605 echo "$ac_t""no" 1>&6
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
2616 if test "$cross_compiling" = yes; then
2617 ac_cv_c_stack_direction=0
2619 cat > conftest.$ac_ext <<EOF
2620 #line 2621 "configure"
2621 #include "confdefs.h"
2622 find_stack_direction ()
2624 static char *addr = 0;
2629 return find_stack_direction ();
2632 return (&dummy > addr) ? 1 : -1;
2636 exit (find_stack_direction() < 0);
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
2641 ac_cv_c_stack_direction=1
2643 echo "configure: failed program was:" >&5
2644 cat conftest.$ac_ext >&5
2646 ac_cv_c_stack_direction=-1
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
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
2665 if test "$cross_compiling" = yes; then
2666 ac_cv_func_memcmp_clean=no
2668 cat > conftest.$ac_ext <<EOF
2669 #line 2670 "configure"
2670 #include "confdefs.h"
2674 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
2675 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
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
2681 ac_cv_func_memcmp_clean=yes
2683 echo "configure: failed program was:" >&5
2684 cat conftest.$ac_ext >&5
2686 ac_cv_func_memcmp_clean=no
2693 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
2694 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
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.
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.
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.
2727 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2729 # `set' does not quote correctly, so add quotes (double-quote substitution
2730 # turns \\\\ into \\, and sed turns \\ into \).
2732 -e "s/'/'\\\\''/g" \
2733 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
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'
2740 if cmp -s $cache_file confcache; then
2743 if test -w $cache_file; then
2744 echo "updating cache $cache_file"
2745 cat confcache > $cache_file
2747 echo "not updating unwritable cache $cache_file"
2752 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2754 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2755 # Let make expand exec_prefix.
2756 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
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'
2765 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
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
2777 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2781 # Without the "./", some shells look in PATH for config.status.
2782 : ${CONFIG_STATUS=./config.status}
2784 echo creating $CONFIG_STATUS
2785 rm -f $CONFIG_STATUS
2786 cat > $CONFIG_STATUS <<EOF
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`:
2793 # $0 $ac_configure_args
2795 # Compiler output produced by configure, useful for debugging
2796 # configure, is in ./config.log if it exists.
2798 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
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"
2808 -help | --help | --hel | --he | --h)
2809 echo "\$ac_cs_usage"; exit 0 ;;
2810 *) echo "\$ac_cs_usage"; exit 1 ;;
2814 ac_given_srcdir=$srcdir
2815 ac_given_INSTALL="$INSTALL"
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
2819 cat >> $CONFIG_STATUS <<EOF
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
2827 s%@CFLAGS@%$CFLAGS%g
2828 s%@CPPFLAGS@%$CPPFLAGS%g
2829 s%@CXXFLAGS@%$CXXFLAGS%g
2830 s%@FFLAGS@%$FFLAGS%g
2832 s%@LDFLAGS@%$LDFLAGS%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
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
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
2879 s%@LIBTOOL@%$LIBTOOL%g
2881 s%@ALLOCA@%$ALLOCA%g
2882 s%@LIBOBJS@%$LIBOBJS%g
2884 s%@PROFILE@%$PROFILE%g
2885 s%@pthread_lib@%$pthread_lib%g
2890 cat >> $CONFIG_STATUS <<\EOF
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.
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
2904 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2906 if test ! -s conftest.s$ac_file; then
2908 rm -f conftest.s$ac_file
2910 if test -z "$ac_sed_cmds"; then
2911 ac_sed_cmds="sed -f conftest.s$ac_file"
2913 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2915 ac_file=`expr $ac_file + 1`
2917 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2920 if test -z "$ac_sed_cmds"; then
2925 cat >> $CONFIG_STATUS <<EOF
2927 CONFIG_FILES=\${CONFIG_FILES-"Makefile lib/Makefile doc/Makefile include/Makefile include/vorbis/Makefile include/vorbis/book/Makefile examples/Makefile"}
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".
2933 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2934 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2935 *) ac_file_in="${ac_file}.in" ;;
2938 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
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'`
2949 ac_dir_suffix= ac_dots=
2952 case "$ac_given_srcdir" in
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" ;;
2958 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2959 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2962 case "$ac_given_INSTALL" in
2963 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2964 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2967 echo creating "$ac_file"
2969 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2971 *Makefile*) ac_comsub="1i\\
2972 # $configure_input" ;;
2976 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
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
2987 cat >> $CONFIG_STATUS <<EOF
2990 cat >> $CONFIG_STATUS <<\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