Minor build fixes, integrate XMMS into the autoconfed stuff
[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
15 # Initialize some variables set by options.
16 # The variables have the same names as the options, with
17 # dashes changed to underlines.
18 build=NONE
19 cache_file=./config.cache
20 exec_prefix=NONE
21 host=NONE
22 no_create=
23 nonopt=NONE
24 no_recursion=
25 prefix=NONE
26 program_prefix=NONE
27 program_suffix=NONE
28 program_transform_name=s,x,x,
29 silent=
30 site=
31 srcdir=
32 target=NONE
33 verbose=
34 x_includes=NONE
35 x_libraries=NONE
36 bindir='${exec_prefix}/bin'
37 sbindir='${exec_prefix}/sbin'
38 libexecdir='${exec_prefix}/libexec'
39 datadir='${prefix}/share'
40 sysconfdir='${prefix}/etc'
41 sharedstatedir='${prefix}/com'
42 localstatedir='${prefix}/var'
43 libdir='${exec_prefix}/lib'
44 includedir='${prefix}/include'
45 oldincludedir='/usr/include'
46 infodir='${prefix}/info'
47 mandir='${prefix}/man'
48
49 # Initialize some other variables.
50 subdirs=
51 MFLAGS= MAKEFLAGS=
52 SHELL=${CONFIG_SHELL-/bin/sh}
53 # Maximum number of lines to put in a shell here document.
54 ac_max_here_lines=12
55
56 ac_prev=
57 for ac_option
58 do
59
60   # If the previous option needs an argument, assign it.
61   if test -n "$ac_prev"; then
62     eval "$ac_prev=\$ac_option"
63     ac_prev=
64     continue
65   fi
66
67   case "$ac_option" in
68   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
69   *) ac_optarg= ;;
70   esac
71
72   # Accept the important Cygnus configure options, so we can diagnose typos.
73
74   case "$ac_option" in
75
76   -bindir | --bindir | --bindi | --bind | --bin | --bi)
77     ac_prev=bindir ;;
78   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
79     bindir="$ac_optarg" ;;
80
81   -build | --build | --buil | --bui | --bu)
82     ac_prev=build ;;
83   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
84     build="$ac_optarg" ;;
85
86   -cache-file | --cache-file | --cache-fil | --cache-fi \
87   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
88     ac_prev=cache_file ;;
89   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
90   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
91     cache_file="$ac_optarg" ;;
92
93   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
94     ac_prev=datadir ;;
95   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
96   | --da=*)
97     datadir="$ac_optarg" ;;
98
99   -disable-* | --disable-*)
100     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
101     # Reject names that are not valid shell variable names.
102     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
103       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
104     fi
105     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
106     eval "enable_${ac_feature}=no" ;;
107
108   -enable-* | --enable-*)
109     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
110     # Reject names that are not valid shell variable names.
111     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
112       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
113     fi
114     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
115     case "$ac_option" in
116       *=*) ;;
117       *) ac_optarg=yes ;;
118     esac
119     eval "enable_${ac_feature}='$ac_optarg'" ;;
120
121   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
122   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
123   | --exec | --exe | --ex)
124     ac_prev=exec_prefix ;;
125   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
126   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
127   | --exec=* | --exe=* | --ex=*)
128     exec_prefix="$ac_optarg" ;;
129
130   -gas | --gas | --ga | --g)
131     # Obsolete; use --with-gas.
132     with_gas=yes ;;
133
134   -help | --help | --hel | --he)
135     # Omit some internal or obsolete options to make the list less imposing.
136     # This message is too long to be a string in the A/UX 3.1 sh.
137     cat << EOF
138 Usage: configure [options] [host]
139 Options: [defaults in brackets after descriptions]
140 Configuration:
141   --cache-file=FILE       cache test results in FILE
142   --help                  print this message
143   --no-create             do not create output files
144   --quiet, --silent       do not print \`checking...' messages
145   --version               print the version of autoconf that created configure
146 Directory and file names:
147   --prefix=PREFIX         install architecture-independent files in PREFIX
148                           [$ac_default_prefix]
149   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
150                           [same as prefix]
151   --bindir=DIR            user executables in DIR [EPREFIX/bin]
152   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
153   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
154   --datadir=DIR           read-only architecture-independent data in DIR
155                           [PREFIX/share]
156   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
157   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
158                           [PREFIX/com]
159   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
160   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
161   --includedir=DIR        C header files in DIR [PREFIX/include]
162   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
163   --infodir=DIR           info documentation in DIR [PREFIX/info]
164   --mandir=DIR            man documentation in DIR [PREFIX/man]
165   --srcdir=DIR            find the sources in DIR [configure dir or ..]
166   --program-prefix=PREFIX prepend PREFIX to installed program names
167   --program-suffix=SUFFIX append SUFFIX to installed program names
168   --program-transform-name=PROGRAM
169                           run sed PROGRAM on installed program names
170 EOF
171     cat << EOF
172 Host type:
173   --build=BUILD           configure for building on BUILD [BUILD=HOST]
174   --host=HOST             configure for HOST [guessed]
175   --target=TARGET         configure for TARGET [TARGET=HOST]
176 Features and packages:
177   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
178   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
179   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
180   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
181   --x-includes=DIR        X include files are in DIR
182   --x-libraries=DIR       X library files are in DIR
183 EOF
184     if test -n "$ac_help"; then
185       echo "--enable and --with options recognized:$ac_help"
186     fi
187     exit 0 ;;
188
189   -host | --host | --hos | --ho)
190     ac_prev=host ;;
191   -host=* | --host=* | --hos=* | --ho=*)
192     host="$ac_optarg" ;;
193
194   -includedir | --includedir | --includedi | --included | --include \
195   | --includ | --inclu | --incl | --inc)
196     ac_prev=includedir ;;
197   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
198   | --includ=* | --inclu=* | --incl=* | --inc=*)
199     includedir="$ac_optarg" ;;
200
201   -infodir | --infodir | --infodi | --infod | --info | --inf)
202     ac_prev=infodir ;;
203   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
204     infodir="$ac_optarg" ;;
205
206   -libdir | --libdir | --libdi | --libd)
207     ac_prev=libdir ;;
208   -libdir=* | --libdir=* | --libdi=* | --libd=*)
209     libdir="$ac_optarg" ;;
210
211   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
212   | --libexe | --libex | --libe)
213     ac_prev=libexecdir ;;
214   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
215   | --libexe=* | --libex=* | --libe=*)
216     libexecdir="$ac_optarg" ;;
217
218   -localstatedir | --localstatedir | --localstatedi | --localstated \
219   | --localstate | --localstat | --localsta | --localst \
220   | --locals | --local | --loca | --loc | --lo)
221     ac_prev=localstatedir ;;
222   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
223   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
224   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
225     localstatedir="$ac_optarg" ;;
226
227   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
228     ac_prev=mandir ;;
229   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
230     mandir="$ac_optarg" ;;
231
232   -nfp | --nfp | --nf)
233     # Obsolete; use --without-fp.
234     with_fp=no ;;
235
236   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
237   | --no-cr | --no-c)
238     no_create=yes ;;
239
240   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
241   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
242     no_recursion=yes ;;
243
244   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
245   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
246   | --oldin | --oldi | --old | --ol | --o)
247     ac_prev=oldincludedir ;;
248   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
249   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
250   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
251     oldincludedir="$ac_optarg" ;;
252
253   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
254     ac_prev=prefix ;;
255   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
256     prefix="$ac_optarg" ;;
257
258   -program-prefix | --program-prefix | --program-prefi | --program-pref \
259   | --program-pre | --program-pr | --program-p)
260     ac_prev=program_prefix ;;
261   -program-prefix=* | --program-prefix=* | --program-prefi=* \
262   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
263     program_prefix="$ac_optarg" ;;
264
265   -program-suffix | --program-suffix | --program-suffi | --program-suff \
266   | --program-suf | --program-su | --program-s)
267     ac_prev=program_suffix ;;
268   -program-suffix=* | --program-suffix=* | --program-suffi=* \
269   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
270     program_suffix="$ac_optarg" ;;
271
272   -program-transform-name | --program-transform-name \
273   | --program-transform-nam | --program-transform-na \
274   | --program-transform-n | --program-transform- \
275   | --program-transform | --program-transfor \
276   | --program-transfo | --program-transf \
277   | --program-trans | --program-tran \
278   | --progr-tra | --program-tr | --program-t)
279     ac_prev=program_transform_name ;;
280   -program-transform-name=* | --program-transform-name=* \
281   | --program-transform-nam=* | --program-transform-na=* \
282   | --program-transform-n=* | --program-transform-=* \
283   | --program-transform=* | --program-transfor=* \
284   | --program-transfo=* | --program-transf=* \
285   | --program-trans=* | --program-tran=* \
286   | --progr-tra=* | --program-tr=* | --program-t=*)
287     program_transform_name="$ac_optarg" ;;
288
289   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
290   | -silent | --silent | --silen | --sile | --sil)
291     silent=yes ;;
292
293   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
294     ac_prev=sbindir ;;
295   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
296   | --sbi=* | --sb=*)
297     sbindir="$ac_optarg" ;;
298
299   -sharedstatedir | --sharedstatedir | --sharedstatedi \
300   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
301   | --sharedst | --shareds | --shared | --share | --shar \
302   | --sha | --sh)
303     ac_prev=sharedstatedir ;;
304   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
305   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
306   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
307   | --sha=* | --sh=*)
308     sharedstatedir="$ac_optarg" ;;
309
310   -site | --site | --sit)
311     ac_prev=site ;;
312   -site=* | --site=* | --sit=*)
313     site="$ac_optarg" ;;
314
315   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
316     ac_prev=srcdir ;;
317   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
318     srcdir="$ac_optarg" ;;
319
320   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
321   | --syscon | --sysco | --sysc | --sys | --sy)
322     ac_prev=sysconfdir ;;
323   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
324   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
325     sysconfdir="$ac_optarg" ;;
326
327   -target | --target | --targe | --targ | --tar | --ta | --t)
328     ac_prev=target ;;
329   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
330     target="$ac_optarg" ;;
331
332   -v | -verbose | --verbose | --verbos | --verbo | --verb)
333     verbose=yes ;;
334
335   -version | --version | --versio | --versi | --vers)
336     echo "configure generated by autoconf version 2.13"
337     exit 0 ;;
338
339   -with-* | --with-*)
340     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
341     # Reject names that are not valid shell variable names.
342     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
343       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
344     fi
345     ac_package=`echo $ac_package| sed 's/-/_/g'`
346     case "$ac_option" in
347       *=*) ;;
348       *) ac_optarg=yes ;;
349     esac
350     eval "with_${ac_package}='$ac_optarg'" ;;
351
352   -without-* | --without-*)
353     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
354     # Reject names that are not valid shell variable names.
355     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
356       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
357     fi
358     ac_package=`echo $ac_package| sed 's/-/_/g'`
359     eval "with_${ac_package}=no" ;;
360
361   --x)
362     # Obsolete; use --with-x.
363     with_x=yes ;;
364
365   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
366   | --x-incl | --x-inc | --x-in | --x-i)
367     ac_prev=x_includes ;;
368   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
369   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
370     x_includes="$ac_optarg" ;;
371
372   -x-libraries | --x-libraries | --x-librarie | --x-librari \
373   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
374     ac_prev=x_libraries ;;
375   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
376   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
377     x_libraries="$ac_optarg" ;;
378
379   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
380     ;;
381
382   *)
383     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
384       echo "configure: warning: $ac_option: invalid host type" 1>&2
385     fi
386     if test "x$nonopt" != xNONE; then
387       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
388     fi
389     nonopt="$ac_option"
390     ;;
391
392   esac
393 done
394
395 if test -n "$ac_prev"; then
396   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
397 fi
398
399 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
400
401 # File descriptor usage:
402 # 0 standard input
403 # 1 file creation
404 # 2 errors and warnings
405 # 3 some systems may open it to /dev/tty
406 # 4 used on the Kubota Titan
407 # 6 checking for... messages and results
408 # 5 compiler messages saved in config.log
409 if test "$silent" = yes; then
410   exec 6>/dev/null
411 else
412   exec 6>&1
413 fi
414 exec 5>./config.log
415
416 echo "\
417 This file contains any messages produced by compilers while
418 running configure, to aid debugging if configure makes a mistake.
419 " 1>&5
420
421 # Strip out --no-create and --no-recursion so they do not pile up.
422 # Also quote any args containing shell metacharacters.
423 ac_configure_args=
424 for ac_arg
425 do
426   case "$ac_arg" in
427   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
428   | --no-cr | --no-c) ;;
429   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
430   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
431   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
432   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
433   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
434   esac
435 done
436
437 # NLS nuisances.
438 # Only set these to C if already set.  These must not be set unconditionally
439 # because not all systems understand e.g. LANG=C (notably SCO).
440 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
441 # Non-C LC_CTYPE values break the ctype check.
442 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
443 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
444 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
445 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
446
447 # confdefs.h avoids OS command line length limits that DEFS can exceed.
448 rm -rf conftest* confdefs.h
449 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
450 echo > confdefs.h
451
452 # A filename unique to this package, relative to the directory that
453 # configure is in, which we can look for to find out if srcdir is correct.
454 ac_unique_file=lib/mdct.c
455
456 # Find the source files, if location was not specified.
457 if test -z "$srcdir"; then
458   ac_srcdir_defaulted=yes
459   # Try the directory containing this script, then its parent.
460   ac_prog=$0
461   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
462   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
463   srcdir=$ac_confdir
464   if test ! -r $srcdir/$ac_unique_file; then
465     srcdir=..
466   fi
467 else
468   ac_srcdir_defaulted=no
469 fi
470 if test ! -r $srcdir/$ac_unique_file; then
471   if test "$ac_srcdir_defaulted" = yes; then
472     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
473   else
474     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
475   fi
476 fi
477 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
478
479 # Prefer explicitly selected file to automatically selected ones.
480 if test -z "$CONFIG_SITE"; then
481   if test "x$prefix" != xNONE; then
482     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
483   else
484     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
485   fi
486 fi
487 for ac_site_file in $CONFIG_SITE; do
488   if test -r "$ac_site_file"; then
489     echo "loading site script $ac_site_file"
490     . "$ac_site_file"
491   fi
492 done
493
494 if test -r "$cache_file"; then
495   echo "loading cache $cache_file"
496   . $cache_file
497 else
498   echo "creating cache $cache_file"
499   > $cache_file
500 fi
501
502 ac_ext=c
503 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
504 ac_cpp='$CPP $CPPFLAGS'
505 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
506 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
507 cross_compiling=$ac_cv_prog_cc_cross
508
509 ac_exeext=
510 ac_objext=o
511 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
512   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
513   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
514     ac_n= ac_c='
515 ' ac_t='        '
516   else
517     ac_n=-n ac_c= ac_t=
518   fi
519 else
520   ac_n= ac_c='\c' ac_t=
521 fi
522
523
524 #AC_CONFIG_HEADER(config.h)
525
526 cp configure.guess config.guess
527 cp configure.sub config.sub
528
529 ac_aux_dir=
530 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
531   if test -f $ac_dir/install-sh; then
532     ac_aux_dir=$ac_dir
533     ac_install_sh="$ac_aux_dir/install-sh -c"
534     break
535   elif test -f $ac_dir/install.sh; then
536     ac_aux_dir=$ac_dir
537     ac_install_sh="$ac_aux_dir/install.sh -c"
538     break
539   fi
540 done
541 if test -z "$ac_aux_dir"; then
542   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
543 fi
544 ac_config_guess=$ac_aux_dir/config.guess
545 ac_config_sub=$ac_aux_dir/config.sub
546 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
547
548
549 # Make sure we can run config.sub.
550 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
551 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
552 fi
553
554 echo $ac_n "checking host system type""... $ac_c" 1>&6
555 echo "configure:556: checking host system type" >&5
556
557 host_alias=$host
558 case "$host_alias" in
559 NONE)
560   case $nonopt in
561   NONE)
562     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
563     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
564     fi ;;
565   *) host_alias=$nonopt ;;
566   esac ;;
567 esac
568
569 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
570 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
571 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
572 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
573 echo "$ac_t""$host" 1>&6
574
575
576 case $host 
577         in *-*-irix*)
578                 if test -z "$CC"; then
579                         CC=cc
580                 fi
581                 echo $ac_n "checking for ALwritesamps in -laudio""... $ac_c" 1>&6
582 echo "configure:583: checking for ALwritesamps in -laudio" >&5
583 ac_lib_var=`echo audio'_'ALwritesamps | sed 'y%./+-%__p_%'`
584 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
585   echo $ac_n "(cached) $ac_c" 1>&6
586 else
587   ac_save_LIBS="$LIBS"
588 LIBS="-laudio  $LIBS"
589 cat > conftest.$ac_ext <<EOF
590 #line 591 "configure"
591 #include "confdefs.h"
592 /* Override any gcc2 internal prototype to avoid an error.  */
593 /* We use char because int might match the return type of a gcc2
594     builtin and then its argument prototype would still apply.  */
595 char ALwritesamps();
596
597 int main() {
598 ALwritesamps()
599 ; return 0; }
600 EOF
601 if { (eval echo configure:602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
602   rm -rf conftest*
603   eval "ac_cv_lib_$ac_lib_var=yes"
604 else
605   echo "configure: failed program was:" >&5
606   cat conftest.$ac_ext >&5
607   rm -rf conftest*
608   eval "ac_cv_lib_$ac_lib_var=no"
609 fi
610 rm -f conftest*
611 LIBS="$ac_save_LIBS"
612
613 fi
614 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
615   echo "$ac_t""yes" 1>&6
616     ac_tr_lib=HAVE_LIB`echo audio | sed -e 's/[^a-zA-Z0-9_]/_/g' \
617     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
618   cat >> confdefs.h <<EOF
619 #define $ac_tr_lib 1
620 EOF
621
622   LIBS="-laudio $LIBS"
623
624 else
625   echo "$ac_t""no" 1>&6
626 fi
627
628         ;;
629 esac
630
631 if test -z "$CC"; then
632         # Extract the first word of "gcc", so it can be a program name with args.
633 set dummy gcc; ac_word=$2
634 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
635 echo "configure:636: checking for $ac_word" >&5
636 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
637   echo $ac_n "(cached) $ac_c" 1>&6
638 else
639   if test -n "$CC"; then
640   ac_cv_prog_CC="$CC" # Let the user override the test.
641 else
642   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
643   ac_dummy="$PATH"
644   for ac_dir in $ac_dummy; do
645     test -z "$ac_dir" && ac_dir=.
646     if test -f $ac_dir/$ac_word; then
647       ac_cv_prog_CC="gcc"
648       break
649     fi
650   done
651   IFS="$ac_save_ifs"
652 fi
653 fi
654 CC="$ac_cv_prog_CC"
655 if test -n "$CC"; then
656   echo "$ac_t""$CC" 1>&6
657 else
658   echo "$ac_t""no" 1>&6
659 fi
660
661 if test -z "$CC"; then
662   # Extract the first word of "cc", so it can be a program name with args.
663 set dummy cc; ac_word=$2
664 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
665 echo "configure:666: checking for $ac_word" >&5
666 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
667   echo $ac_n "(cached) $ac_c" 1>&6
668 else
669   if test -n "$CC"; then
670   ac_cv_prog_CC="$CC" # Let the user override the test.
671 else
672   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
673   ac_prog_rejected=no
674   ac_dummy="$PATH"
675   for ac_dir in $ac_dummy; do
676     test -z "$ac_dir" && ac_dir=.
677     if test -f $ac_dir/$ac_word; then
678       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
679         ac_prog_rejected=yes
680         continue
681       fi
682       ac_cv_prog_CC="cc"
683       break
684     fi
685   done
686   IFS="$ac_save_ifs"
687 if test $ac_prog_rejected = yes; then
688   # We found a bogon in the path, so make sure we never use it.
689   set dummy $ac_cv_prog_CC
690   shift
691   if test $# -gt 0; then
692     # We chose a different compiler from the bogus one.
693     # However, it has the same basename, so the bogon will be chosen
694     # first if we set CC to just the basename; use the full file name.
695     shift
696     set dummy "$ac_dir/$ac_word" "$@"
697     shift
698     ac_cv_prog_CC="$@"
699   fi
700 fi
701 fi
702 fi
703 CC="$ac_cv_prog_CC"
704 if test -n "$CC"; then
705   echo "$ac_t""$CC" 1>&6
706 else
707   echo "$ac_t""no" 1>&6
708 fi
709
710   if test -z "$CC"; then
711     case "`uname -s`" in
712     *win32* | *WIN32*)
713       # Extract the first word of "cl", so it can be a program name with args.
714 set dummy cl; ac_word=$2
715 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
716 echo "configure:717: checking for $ac_word" >&5
717 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
718   echo $ac_n "(cached) $ac_c" 1>&6
719 else
720   if test -n "$CC"; then
721   ac_cv_prog_CC="$CC" # Let the user override the test.
722 else
723   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
724   ac_dummy="$PATH"
725   for ac_dir in $ac_dummy; do
726     test -z "$ac_dir" && ac_dir=.
727     if test -f $ac_dir/$ac_word; then
728       ac_cv_prog_CC="cl"
729       break
730     fi
731   done
732   IFS="$ac_save_ifs"
733 fi
734 fi
735 CC="$ac_cv_prog_CC"
736 if test -n "$CC"; then
737   echo "$ac_t""$CC" 1>&6
738 else
739   echo "$ac_t""no" 1>&6
740 fi
741  ;;
742     esac
743   fi
744   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
745 fi
746
747 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
748 echo "configure:749: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
749
750 ac_ext=c
751 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
752 ac_cpp='$CPP $CPPFLAGS'
753 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
754 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
755 cross_compiling=$ac_cv_prog_cc_cross
756
757 cat > conftest.$ac_ext << EOF
758
759 #line 760 "configure"
760 #include "confdefs.h"
761
762 main(){return(0);}
763 EOF
764 if { (eval echo configure:765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
765   ac_cv_prog_cc_works=yes
766   # If we can't run a trivial program, we are probably using a cross compiler.
767   if (./conftest; exit) 2>/dev/null; then
768     ac_cv_prog_cc_cross=no
769   else
770     ac_cv_prog_cc_cross=yes
771   fi
772 else
773   echo "configure: failed program was:" >&5
774   cat conftest.$ac_ext >&5
775   ac_cv_prog_cc_works=no
776 fi
777 rm -fr conftest*
778 ac_ext=c
779 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
780 ac_cpp='$CPP $CPPFLAGS'
781 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
782 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
783 cross_compiling=$ac_cv_prog_cc_cross
784
785 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
786 if test $ac_cv_prog_cc_works = no; then
787   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
788 fi
789 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
790 echo "configure:791: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
791 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
792 cross_compiling=$ac_cv_prog_cc_cross
793
794 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
795 echo "configure:796: checking whether we are using GNU C" >&5
796 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
797   echo $ac_n "(cached) $ac_c" 1>&6
798 else
799   cat > conftest.c <<EOF
800 #ifdef __GNUC__
801   yes;
802 #endif
803 EOF
804 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:805: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
805   ac_cv_prog_gcc=yes
806 else
807   ac_cv_prog_gcc=no
808 fi
809 fi
810
811 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
812
813 if test $ac_cv_prog_gcc = yes; then
814   GCC=yes
815 else
816   GCC=
817 fi
818
819 ac_test_CFLAGS="${CFLAGS+set}"
820 ac_save_CFLAGS="$CFLAGS"
821 CFLAGS=
822 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
823 echo "configure:824: checking whether ${CC-cc} accepts -g" >&5
824 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
825   echo $ac_n "(cached) $ac_c" 1>&6
826 else
827   echo 'void f(){}' > conftest.c
828 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
829   ac_cv_prog_cc_g=yes
830 else
831   ac_cv_prog_cc_g=no
832 fi
833 rm -f conftest*
834
835 fi
836
837 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
838 if test "$ac_test_CFLAGS" = set; then
839   CFLAGS="$ac_save_CFLAGS"
840 elif test $ac_cv_prog_cc_g = yes; then
841   if test "$GCC" = yes; then
842     CFLAGS="-g -O2"
843   else
844     CFLAGS="-g"
845   fi
846 else
847   if test "$GCC" = yes; then
848     CFLAGS="-O2"
849   else
850     CFLAGS=
851   fi
852 fi
853         
854 fi
855 # Extract the first word of "ranlib", so it can be a program name with args.
856 set dummy ranlib; ac_word=$2
857 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
858 echo "configure:859: checking for $ac_word" >&5
859 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
860   echo $ac_n "(cached) $ac_c" 1>&6
861 else
862   if test -n "$RANLIB"; then
863   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
864 else
865   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
866   ac_dummy="$PATH"
867   for ac_dir in $ac_dummy; do
868     test -z "$ac_dir" && ac_dir=.
869     if test -f $ac_dir/$ac_word; then
870       ac_cv_prog_RANLIB="ranlib"
871       break
872     fi
873   done
874   IFS="$ac_save_ifs"
875   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
876 fi
877 fi
878 RANLIB="$ac_cv_prog_RANLIB"
879 if test -n "$RANLIB"; then
880   echo "$ac_t""$RANLIB" 1>&6
881 else
882   echo "$ac_t""no" 1>&6
883 fi
884
885 # Extract the first word of "ar", so it can be a program name with args.
886 set dummy ar; ac_word=$2
887 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
888 echo "configure:889: checking for $ac_word" >&5
889 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
890   echo $ac_n "(cached) $ac_c" 1>&6
891 else
892   if test -n "$AR"; then
893   ac_cv_prog_AR="$AR" # Let the user override the test.
894 else
895   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
896   ac_dummy="$PATH"
897   for ac_dir in $ac_dummy; do
898     test -z "$ac_dir" && ac_dir=.
899     if test -f $ac_dir/$ac_word; then
900       ac_cv_prog_AR="ar"
901       break
902     fi
903   done
904   IFS="$ac_save_ifs"
905 fi
906 fi
907 AR="$ac_cv_prog_AR"
908 if test -n "$AR"; then
909   echo "$ac_t""$AR" 1>&6
910 else
911   echo "$ac_t""no" 1>&6
912 fi
913
914
915 if test -z "$GCC"; then
916         case $host in 
917         *-*-irix*)
918                 DEBUG="-g" 
919                 OPT="-O2 -w"
920                 PROFILE="-p -g3 -O2" ;;
921         sparc-sun-solaris*)
922                 DEBUG="-v -g"
923                 OPT="-xO4 -fast -w -fsingle -fsimple -native -xcg92"
924                 PROFILE="-v -xpg -g -xO4 -fast -fsingle -native -fsimple -xcg92 -Dsuncc" ;;
925         *)
926                 DEBUG="-g"
927                 OPT="-O"
928                 PROFILE="-g -p" ;;
929         esac
930 else
931
932 # -D__NO_MATH_INLINES avoids some serious FP assembly related bugs in
933 # glibc 2.0/2.1
934
935         case $host in 
936         *-*-linux*)
937                 DEBUG="-g -Wall -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char"
938                 OPT="-O20 -ffast-math -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char"
939                 PROFILE="-pg -g -O20 -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char";;
940         sparc-sun-*)
941                 DEBUG="-g -Wall -D__NO_MATH_INLINES -fsigned-char -mv8"
942                 OPT="-O20 -ffast-math -D__NO_MATH_INLINES -fsigned-char -mv8"
943                 PROFILE="-pg -g -O20 -D__NO_MATH_INLINES -fsigned-char -mv8" ;;
944         *)
945                 DEBUG="-g -Wall -D__NO_MATH_INLINES -fsigned-char"
946                 OPT="-O20 -D__NO_MATH_INLINES -fsigned-char"
947                 PROFILE="-O20 -g -pg -D__NO_MATH_INLINES -fsigned-char" ;;
948         esac
949 fi
950
951 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
952 echo "configure:953: checking how to run the C preprocessor" >&5
953 # On Suns, sometimes $CPP names a directory.
954 if test -n "$CPP" && test -d "$CPP"; then
955   CPP=
956 fi
957 if test -z "$CPP"; then
958 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
959   echo $ac_n "(cached) $ac_c" 1>&6
960 else
961     # This must be in double quotes, not single quotes, because CPP may get
962   # substituted into the Makefile and "${CC-cc}" will confuse make.
963   CPP="${CC-cc} -E"
964   # On the NeXT, cc -E runs the code through the compiler's parser,
965   # not just through cpp.
966   cat > conftest.$ac_ext <<EOF
967 #line 968 "configure"
968 #include "confdefs.h"
969 #include <assert.h>
970 Syntax Error
971 EOF
972 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
973 { (eval echo configure:974: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
974 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
975 if test -z "$ac_err"; then
976   :
977 else
978   echo "$ac_err" >&5
979   echo "configure: failed program was:" >&5
980   cat conftest.$ac_ext >&5
981   rm -rf conftest*
982   CPP="${CC-cc} -E -traditional-cpp"
983   cat > conftest.$ac_ext <<EOF
984 #line 985 "configure"
985 #include "confdefs.h"
986 #include <assert.h>
987 Syntax Error
988 EOF
989 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
990 { (eval echo configure:991: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
991 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
992 if test -z "$ac_err"; then
993   :
994 else
995   echo "$ac_err" >&5
996   echo "configure: failed program was:" >&5
997   cat conftest.$ac_ext >&5
998   rm -rf conftest*
999   CPP="${CC-cc} -nologo -E"
1000   cat > conftest.$ac_ext <<EOF
1001 #line 1002 "configure"
1002 #include "confdefs.h"
1003 #include <assert.h>
1004 Syntax Error
1005 EOF
1006 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1007 { (eval echo configure:1008: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1008 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1009 if test -z "$ac_err"; then
1010   :
1011 else
1012   echo "$ac_err" >&5
1013   echo "configure: failed program was:" >&5
1014   cat conftest.$ac_ext >&5
1015   rm -rf conftest*
1016   CPP=/lib/cpp
1017 fi
1018 rm -f conftest*
1019 fi
1020 rm -f conftest*
1021 fi
1022 rm -f conftest*
1023   ac_cv_prog_CPP="$CPP"
1024 fi
1025   CPP="$ac_cv_prog_CPP"
1026 else
1027   ac_cv_prog_CPP="$CPP"
1028 fi
1029 echo "$ac_t""$CPP" 1>&6
1030
1031 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1032 echo "configure:1033: checking for ANSI C header files" >&5
1033 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1034   echo $ac_n "(cached) $ac_c" 1>&6
1035 else
1036   cat > conftest.$ac_ext <<EOF
1037 #line 1038 "configure"
1038 #include "confdefs.h"
1039 #include <stdlib.h>
1040 #include <stdarg.h>
1041 #include <string.h>
1042 #include <float.h>
1043 EOF
1044 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1045 { (eval echo configure:1046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1046 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1047 if test -z "$ac_err"; then
1048   rm -rf conftest*
1049   ac_cv_header_stdc=yes
1050 else
1051   echo "$ac_err" >&5
1052   echo "configure: failed program was:" >&5
1053   cat conftest.$ac_ext >&5
1054   rm -rf conftest*
1055   ac_cv_header_stdc=no
1056 fi
1057 rm -f conftest*
1058
1059 if test $ac_cv_header_stdc = yes; then
1060   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1061 cat > conftest.$ac_ext <<EOF
1062 #line 1063 "configure"
1063 #include "confdefs.h"
1064 #include <string.h>
1065 EOF
1066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1067   egrep "memchr" >/dev/null 2>&1; then
1068   :
1069 else
1070   rm -rf conftest*
1071   ac_cv_header_stdc=no
1072 fi
1073 rm -f conftest*
1074
1075 fi
1076
1077 if test $ac_cv_header_stdc = yes; then
1078   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1079 cat > conftest.$ac_ext <<EOF
1080 #line 1081 "configure"
1081 #include "confdefs.h"
1082 #include <stdlib.h>
1083 EOF
1084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1085   egrep "free" >/dev/null 2>&1; then
1086   :
1087 else
1088   rm -rf conftest*
1089   ac_cv_header_stdc=no
1090 fi
1091 rm -f conftest*
1092
1093 fi
1094
1095 if test $ac_cv_header_stdc = yes; then
1096   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1097 if test "$cross_compiling" = yes; then
1098   :
1099 else
1100   cat > conftest.$ac_ext <<EOF
1101 #line 1102 "configure"
1102 #include "confdefs.h"
1103 #include <ctype.h>
1104 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1105 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1106 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1107 int main () { int i; for (i = 0; i < 256; i++)
1108 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1109 exit (0); }
1110
1111 EOF
1112 if { (eval echo configure:1113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1113 then
1114   :
1115 else
1116   echo "configure: failed program was:" >&5
1117   cat conftest.$ac_ext >&5
1118   rm -fr conftest*
1119   ac_cv_header_stdc=no
1120 fi
1121 rm -fr conftest*
1122 fi
1123
1124 fi
1125 fi
1126
1127 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1128 if test $ac_cv_header_stdc = yes; then
1129   cat >> confdefs.h <<\EOF
1130 #define STDC_HEADERS 1
1131 EOF
1132
1133 fi
1134
1135
1136 CFLAGS=""
1137
1138
1139 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
1140 echo "configure:1141: checking for pthread_create in -lpthread" >&5
1141 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
1142 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1143   echo $ac_n "(cached) $ac_c" 1>&6
1144 else
1145   ac_save_LIBS="$LIBS"
1146 LIBS="-lpthread  $LIBS"
1147 cat > conftest.$ac_ext <<EOF
1148 #line 1149 "configure"
1149 #include "confdefs.h"
1150 /* Override any gcc2 internal prototype to avoid an error.  */
1151 /* We use char because int might match the return type of a gcc2
1152     builtin and then its argument prototype would still apply.  */
1153 char pthread_create();
1154
1155 int main() {
1156 pthread_create()
1157 ; return 0; }
1158 EOF
1159 if { (eval echo configure:1160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1160   rm -rf conftest*
1161   eval "ac_cv_lib_$ac_lib_var=yes"
1162 else
1163   echo "configure: failed program was:" >&5
1164   cat conftest.$ac_ext >&5
1165   rm -rf conftest*
1166   eval "ac_cv_lib_$ac_lib_var=no"
1167 fi
1168 rm -f conftest*
1169 LIBS="$ac_save_LIBS"
1170
1171 fi
1172 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1173   echo "$ac_t""yes" 1>&6
1174   pthread_lib="-lpthread"; cat >> confdefs.h <<\EOF
1175 #define HAVE_LIBPTHREAD 1
1176 EOF
1177
1178 else
1179   echo "$ac_t""no" 1>&6
1180 :
1181 fi
1182
1183
1184
1185 if test -n "$pthread_lib"; then
1186         case $host in 
1187         i?86-*-linux*)
1188                 cat >> confdefs.h <<\EOF
1189 #define _REENTRANT 1
1190 EOF
1191
1192                 ;;
1193         esac
1194 fi
1195
1196 #if test -n "$x_libraries"; then
1197 #       XOGG="yes"
1198 #
1199 #       dnl If we find libgtk installed, great; otherwise assume we have
1200 #       dnl to build it ourselves.
1201 #
1202 #       AC_CHECK_LIB(gtk, gtk_main, :, LIBGTKDIR="libgtk", $X_LIBS -lglib -lgdk -lX11 -lXext -lm)
1203 #
1204 #       dnl libpthread is required for xogg.
1205 #
1206 #       if test -z "$pthread_lib"; then XOGG=""; fi
1207 #
1208 #       dnl If we don't have libgtk installed, and we don't have a libgtk 
1209 #       dnl  subdirectory to build the library ourself, we can't build xogg.
1210 #
1211 #       if test -n "$LIBGTKDIR" -a ! -d "$LIBGTKDIR"; then
1212 #               XOGG=""
1213 #               LIBGTKDIR=""
1214 #       fi
1215 #fi
1216
1217
1218 dummy="__noconf"
1219
1220 #if test -d "$LIBGTKDIR"; then
1221 #       enable_shared="no"; export enable_shared
1222 #       dummy="libgtk"
1223 #       AC_CONFIG_SUBDIRS("$dummy")
1224 #       X_LIBS="-L${srcdir}/libgtk/gtk/.libs -L${srcdir}/libgtk/gdk/.libs -L${srcdir}/libgtk/glib/.libs $X_LIBS"
1225 #fi
1226
1227 TYPESIZES="" 
1228
1229 echo $ac_n "checking size of short""... $ac_c" 1>&6
1230 echo "configure:1231: checking size of short" >&5
1231 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1232   echo $ac_n "(cached) $ac_c" 1>&6
1233 else
1234   if test "$cross_compiling" = yes; then
1235     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1236 else
1237   cat > conftest.$ac_ext <<EOF
1238 #line 1239 "configure"
1239 #include "confdefs.h"
1240 #include <stdio.h>
1241 main()
1242 {
1243   FILE *f=fopen("conftestval", "w");
1244   if (!f) exit(1);
1245   fprintf(f, "%d\n", sizeof(short));
1246   exit(0);
1247 }
1248 EOF
1249 if { (eval echo configure:1250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1250 then
1251   ac_cv_sizeof_short=`cat conftestval`
1252 else
1253   echo "configure: failed program was:" >&5
1254   cat conftest.$ac_ext >&5
1255   rm -fr conftest*
1256   ac_cv_sizeof_short=0
1257 fi
1258 rm -fr conftest*
1259 fi
1260
1261 fi
1262 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
1263 cat >> confdefs.h <<EOF
1264 #define SIZEOF_SHORT $ac_cv_sizeof_short
1265 EOF
1266
1267
1268 echo $ac_n "checking size of int""... $ac_c" 1>&6
1269 echo "configure:1270: checking size of int" >&5
1270 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1271   echo $ac_n "(cached) $ac_c" 1>&6
1272 else
1273   if test "$cross_compiling" = yes; then
1274     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1275 else
1276   cat > conftest.$ac_ext <<EOF
1277 #line 1278 "configure"
1278 #include "confdefs.h"
1279 #include <stdio.h>
1280 main()
1281 {
1282   FILE *f=fopen("conftestval", "w");
1283   if (!f) exit(1);
1284   fprintf(f, "%d\n", sizeof(int));
1285   exit(0);
1286 }
1287 EOF
1288 if { (eval echo configure:1289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1289 then
1290   ac_cv_sizeof_int=`cat conftestval`
1291 else
1292   echo "configure: failed program was:" >&5
1293   cat conftest.$ac_ext >&5
1294   rm -fr conftest*
1295   ac_cv_sizeof_int=0
1296 fi
1297 rm -fr conftest*
1298 fi
1299
1300 fi
1301 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1302 cat >> confdefs.h <<EOF
1303 #define SIZEOF_INT $ac_cv_sizeof_int
1304 EOF
1305
1306
1307 echo $ac_n "checking size of long""... $ac_c" 1>&6
1308 echo "configure:1309: checking size of long" >&5
1309 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1310   echo $ac_n "(cached) $ac_c" 1>&6
1311 else
1312   if test "$cross_compiling" = yes; then
1313     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1314 else
1315   cat > conftest.$ac_ext <<EOF
1316 #line 1317 "configure"
1317 #include "confdefs.h"
1318 #include <stdio.h>
1319 main()
1320 {
1321   FILE *f=fopen("conftestval", "w");
1322   if (!f) exit(1);
1323   fprintf(f, "%d\n", sizeof(long));
1324   exit(0);
1325 }
1326 EOF
1327 if { (eval echo configure:1328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1328 then
1329   ac_cv_sizeof_long=`cat conftestval`
1330 else
1331   echo "configure: failed program was:" >&5
1332   cat conftest.$ac_ext >&5
1333   rm -fr conftest*
1334   ac_cv_sizeof_long=0
1335 fi
1336 rm -fr conftest*
1337 fi
1338
1339 fi
1340 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
1341 cat >> confdefs.h <<EOF
1342 #define SIZEOF_LONG $ac_cv_sizeof_long
1343 EOF
1344
1345
1346 echo $ac_n "checking size of long long""... $ac_c" 1>&6
1347 echo "configure:1348: checking size of long long" >&5
1348 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
1349   echo $ac_n "(cached) $ac_c" 1>&6
1350 else
1351   if test "$cross_compiling" = yes; then
1352     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1353 else
1354   cat > conftest.$ac_ext <<EOF
1355 #line 1356 "configure"
1356 #include "confdefs.h"
1357 #include <stdio.h>
1358 main()
1359 {
1360   FILE *f=fopen("conftestval", "w");
1361   if (!f) exit(1);
1362   fprintf(f, "%d\n", sizeof(long long));
1363   exit(0);
1364 }
1365 EOF
1366 if { (eval echo configure:1367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1367 then
1368   ac_cv_sizeof_long_long=`cat conftestval`
1369 else
1370   echo "configure: failed program was:" >&5
1371   cat conftest.$ac_ext >&5
1372   rm -fr conftest*
1373   ac_cv_sizeof_long_long=0
1374 fi
1375 rm -fr conftest*
1376 fi
1377
1378 fi
1379 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
1380 cat >> confdefs.h <<EOF
1381 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
1382 EOF
1383
1384
1385
1386 case 2 in
1387         $ac_cv_sizeof_short) TYPESIZES="$TYPESIZES -Dsize16='short'"
1388                 SIZE16=TRUE;;
1389         $ac_cv_sizeof_int) TYPESIZES="$TYPESIZES -Dsize16='int'"
1390                 SIZE16=TRUE;;
1391 esac
1392
1393 case 4 in
1394         $ac_cv_sizeof_short) TYPESIZES="$TYPESIZES -Dsize32='short'"
1395                 SIZE32=TRUE;;
1396         $ac_cv_sizeof_int) TYPESIZES="$TYPESIZES -Dsize32='int'"
1397                 SIZE32=TRUE;;
1398         $ac_cv_sizeof_long) TYPESIZES="$TYPESIZES -Dsize32='long'"
1399                 SIZE32=TRUE;;
1400 esac
1401
1402 case 8 in
1403         $ac_cv_sizeof_int) TYPESIZES="$TYPESIZES -Dsize64='int'"
1404                 SIZE64=TRUE;;
1405         $ac_cv_sizeof_long) TYPESIZES="$TYPESIZES -Dsize64='long'"
1406                 SIZE64=TRUE;;
1407         $ac_cv_sizeof_long_long) TYPESIZES="$TYPESIZES -Dsize64='long long'"
1408                 SIZE64=TRUE;;
1409 esac
1410
1411
1412 if test -z "$SIZE16"; then
1413         { echo "configure: error: No 16 bit type found on this platform!" 1>&2; exit 1; }
1414 fi
1415 if test -z "$SIZE32"; then
1416         { echo "configure: error: No 32 bit type found on this platform!" 1>&2; exit 1; }
1417 fi
1418 if test -z "$SIZE64"; then
1419         echo "configure: warning: No 64 bit type found on this platform!" 1>&2
1420 fi
1421         
1422 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1423 echo "configure:1424: checking for sys/wait.h that is POSIX.1 compatible" >&5
1424 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1425   echo $ac_n "(cached) $ac_c" 1>&6
1426 else
1427   cat > conftest.$ac_ext <<EOF
1428 #line 1429 "configure"
1429 #include "confdefs.h"
1430 #include <sys/types.h>
1431 #include <sys/wait.h>
1432 #ifndef WEXITSTATUS
1433 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1434 #endif
1435 #ifndef WIFEXITED
1436 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1437 #endif
1438 int main() {
1439 int s;
1440 wait (&s);
1441 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1442 ; return 0; }
1443 EOF
1444 if { (eval echo configure:1445: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1445   rm -rf conftest*
1446   ac_cv_header_sys_wait_h=yes
1447 else
1448   echo "configure: failed program was:" >&5
1449   cat conftest.$ac_ext >&5
1450   rm -rf conftest*
1451   ac_cv_header_sys_wait_h=no
1452 fi
1453 rm -f conftest*
1454 fi
1455
1456 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1457 if test $ac_cv_header_sys_wait_h = yes; then
1458   cat >> confdefs.h <<\EOF
1459 #define HAVE_SYS_WAIT_H 1
1460 EOF
1461
1462 fi
1463
1464 for ac_hdr in fcntl.h limits.h sys/ioctl.h sys/time.h unistd.h
1465 do
1466 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1467 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1468 echo "configure:1469: checking for $ac_hdr" >&5
1469 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1470   echo $ac_n "(cached) $ac_c" 1>&6
1471 else
1472   cat > conftest.$ac_ext <<EOF
1473 #line 1474 "configure"
1474 #include "confdefs.h"
1475 #include <$ac_hdr>
1476 EOF
1477 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1478 { (eval echo configure:1479: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1479 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1480 if test -z "$ac_err"; then
1481   rm -rf conftest*
1482   eval "ac_cv_header_$ac_safe=yes"
1483 else
1484   echo "$ac_err" >&5
1485   echo "configure: failed program was:" >&5
1486   cat conftest.$ac_ext >&5
1487   rm -rf conftest*
1488   eval "ac_cv_header_$ac_safe=no"
1489 fi
1490 rm -f conftest*
1491 fi
1492 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1493   echo "$ac_t""yes" 1>&6
1494     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1495   cat >> confdefs.h <<EOF
1496 #define $ac_tr_hdr 1
1497 EOF
1498  
1499 else
1500   echo "$ac_t""no" 1>&6
1501 fi
1502 done
1503
1504
1505 echo $ac_n "checking for working const""... $ac_c" 1>&6
1506 echo "configure:1507: checking for working const" >&5
1507 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1508   echo $ac_n "(cached) $ac_c" 1>&6
1509 else
1510   cat > conftest.$ac_ext <<EOF
1511 #line 1512 "configure"
1512 #include "confdefs.h"
1513
1514 int main() {
1515
1516 /* Ultrix mips cc rejects this.  */
1517 typedef int charset[2]; const charset x;
1518 /* SunOS 4.1.1 cc rejects this.  */
1519 char const *const *ccp;
1520 char **p;
1521 /* NEC SVR4.0.2 mips cc rejects this.  */
1522 struct point {int x, y;};
1523 static struct point const zero = {0,0};
1524 /* AIX XL C 1.02.0.0 rejects this.
1525    It does not let you subtract one const X* pointer from another in an arm
1526    of an if-expression whose if-part is not a constant expression */
1527 const char *g = "string";
1528 ccp = &g + (g ? g-g : 0);
1529 /* HPUX 7.0 cc rejects these. */
1530 ++ccp;
1531 p = (char**) ccp;
1532 ccp = (char const *const *) p;
1533 { /* SCO 3.2v4 cc rejects this.  */
1534   char *t;
1535   char const *s = 0 ? (char *) 0 : (char const *) 0;
1536
1537   *t++ = 0;
1538 }
1539 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
1540   int x[] = {25, 17};
1541   const int *foo = &x[0];
1542   ++foo;
1543 }
1544 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1545   typedef const int *iptr;
1546   iptr p = 0;
1547   ++p;
1548 }
1549 { /* AIX XL C 1.02.0.0 rejects this saying
1550      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1551   struct s { int j; const int *ap[3]; };
1552   struct s *b; b->j = 5;
1553 }
1554 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1555   const int foo = 10;
1556 }
1557
1558 ; return 0; }
1559 EOF
1560 if { (eval echo configure:1561: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1561   rm -rf conftest*
1562   ac_cv_c_const=yes
1563 else
1564   echo "configure: failed program was:" >&5
1565   cat conftest.$ac_ext >&5
1566   rm -rf conftest*
1567   ac_cv_c_const=no
1568 fi
1569 rm -f conftest*
1570 fi
1571
1572 echo "$ac_t""$ac_cv_c_const" 1>&6
1573 if test $ac_cv_c_const = no; then
1574   cat >> confdefs.h <<\EOF
1575 #define const 
1576 EOF
1577
1578 fi
1579
1580 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1581 echo "configure:1582: checking whether time.h and sys/time.h may both be included" >&5
1582 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1583   echo $ac_n "(cached) $ac_c" 1>&6
1584 else
1585   cat > conftest.$ac_ext <<EOF
1586 #line 1587 "configure"
1587 #include "confdefs.h"
1588 #include <sys/types.h>
1589 #include <sys/time.h>
1590 #include <time.h>
1591 int main() {
1592 struct tm *tp;
1593 ; return 0; }
1594 EOF
1595 if { (eval echo configure:1596: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1596   rm -rf conftest*
1597   ac_cv_header_time=yes
1598 else
1599   echo "configure: failed program was:" >&5
1600   cat conftest.$ac_ext >&5
1601   rm -rf conftest*
1602   ac_cv_header_time=no
1603 fi
1604 rm -f conftest*
1605 fi
1606
1607 echo "$ac_t""$ac_cv_header_time" 1>&6
1608 if test $ac_cv_header_time = yes; then
1609   cat >> confdefs.h <<\EOF
1610 #define TIME_WITH_SYS_TIME 1
1611 EOF
1612
1613 fi
1614
1615 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
1616 echo "configure:1617: checking whether struct tm is in sys/time.h or time.h" >&5
1617 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
1618   echo $ac_n "(cached) $ac_c" 1>&6
1619 else
1620   cat > conftest.$ac_ext <<EOF
1621 #line 1622 "configure"
1622 #include "confdefs.h"
1623 #include <sys/types.h>
1624 #include <time.h>
1625 int main() {
1626 struct tm *tp; tp->tm_sec;
1627 ; return 0; }
1628 EOF
1629 if { (eval echo configure:1630: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1630   rm -rf conftest*
1631   ac_cv_struct_tm=time.h
1632 else
1633   echo "configure: failed program was:" >&5
1634   cat conftest.$ac_ext >&5
1635   rm -rf conftest*
1636   ac_cv_struct_tm=sys/time.h
1637 fi
1638 rm -f conftest*
1639 fi
1640
1641 echo "$ac_t""$ac_cv_struct_tm" 1>&6
1642 if test $ac_cv_struct_tm = sys/time.h; then
1643   cat >> confdefs.h <<\EOF
1644 #define TM_IN_SYS_TIME 1
1645 EOF
1646
1647 fi
1648
1649
1650 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1651 echo "configure:1652: checking whether ${MAKE-make} sets \${MAKE}" >&5
1652 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1653 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1654   echo $ac_n "(cached) $ac_c" 1>&6
1655 else
1656   cat > conftestmake <<\EOF
1657 all:
1658         @echo 'ac_maketemp="${MAKE}"'
1659 EOF
1660 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1661 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1662 if test -n "$ac_maketemp"; then
1663   eval ac_cv_prog_make_${ac_make}_set=yes
1664 else
1665   eval ac_cv_prog_make_${ac_make}_set=no
1666 fi
1667 rm -f conftestmake
1668 fi
1669 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1670   echo "$ac_t""yes" 1>&6
1671   SET_MAKE=
1672 else
1673   echo "$ac_t""no" 1>&6
1674   SET_MAKE="MAKE=${MAKE-make}"
1675 fi
1676
1677 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
1678 echo "configure:1679: checking for 8-bit clean memcmp" >&5
1679 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
1680   echo $ac_n "(cached) $ac_c" 1>&6
1681 else
1682   if test "$cross_compiling" = yes; then
1683   ac_cv_func_memcmp_clean=no
1684 else
1685   cat > conftest.$ac_ext <<EOF
1686 #line 1687 "configure"
1687 #include "confdefs.h"
1688
1689 main()
1690 {
1691   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
1692   exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
1693 }
1694
1695 EOF
1696 if { (eval echo configure:1697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1697 then
1698   ac_cv_func_memcmp_clean=yes
1699 else
1700   echo "configure: failed program was:" >&5
1701   cat conftest.$ac_ext >&5
1702   rm -fr conftest*
1703   ac_cv_func_memcmp_clean=no
1704 fi
1705 rm -fr conftest*
1706 fi
1707
1708 fi
1709
1710 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
1711 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
1712
1713 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1714 echo "configure:1715: checking return type of signal handlers" >&5
1715 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1716   echo $ac_n "(cached) $ac_c" 1>&6
1717 else
1718   cat > conftest.$ac_ext <<EOF
1719 #line 1720 "configure"
1720 #include "confdefs.h"
1721 #include <sys/types.h>
1722 #include <signal.h>
1723 #ifdef signal
1724 #undef signal
1725 #endif
1726 #ifdef __cplusplus
1727 extern "C" void (*signal (int, void (*)(int)))(int);
1728 #else
1729 void (*signal ()) ();
1730 #endif
1731
1732 int main() {
1733 int i;
1734 ; return 0; }
1735 EOF
1736 if { (eval echo configure:1737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1737   rm -rf conftest*
1738   ac_cv_type_signal=void
1739 else
1740   echo "configure: failed program was:" >&5
1741   cat conftest.$ac_ext >&5
1742   rm -rf conftest*
1743   ac_cv_type_signal=int
1744 fi
1745 rm -f conftest*
1746 fi
1747
1748 echo "$ac_t""$ac_cv_type_signal" 1>&6
1749 cat >> confdefs.h <<EOF
1750 #define RETSIGTYPE $ac_cv_type_signal
1751 EOF
1752
1753
1754 for ac_func in gettimeofday select strcspn strerror strspn sigaction
1755 do
1756 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1757 echo "configure:1758: checking for $ac_func" >&5
1758 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1759   echo $ac_n "(cached) $ac_c" 1>&6
1760 else
1761   cat > conftest.$ac_ext <<EOF
1762 #line 1763 "configure"
1763 #include "confdefs.h"
1764 /* System header to define __stub macros and hopefully few prototypes,
1765     which can conflict with char $ac_func(); below.  */
1766 #include <assert.h>
1767 /* Override any gcc2 internal prototype to avoid an error.  */
1768 /* We use char because int might match the return type of a gcc2
1769     builtin and then its argument prototype would still apply.  */
1770 char $ac_func();
1771
1772 int main() {
1773
1774 /* The GNU C library defines this for functions which it implements
1775     to always fail with ENOSYS.  Some functions are actually named
1776     something starting with __ and the normal name is an alias.  */
1777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1778 choke me
1779 #else
1780 $ac_func();
1781 #endif
1782
1783 ; return 0; }
1784 EOF
1785 if { (eval echo configure:1786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1786   rm -rf conftest*
1787   eval "ac_cv_func_$ac_func=yes"
1788 else
1789   echo "configure: failed program was:" >&5
1790   cat conftest.$ac_ext >&5
1791   rm -rf conftest*
1792   eval "ac_cv_func_$ac_func=no"
1793 fi
1794 rm -f conftest*
1795 fi
1796
1797 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1798   echo "$ac_t""yes" 1>&6
1799     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1800   cat >> confdefs.h <<EOF
1801 #define $ac_tr_func 1
1802 EOF
1803  
1804 else
1805   echo "$ac_t""no" 1>&6
1806 fi
1807 done
1808
1809
1810
1811
1812
1813
1814
1815
1816 #AC_SUBST(XOGG)
1817 #AC_SUBST(LIBGTKDIR)
1818
1819
1820 trap '' 1 2 15
1821 cat > confcache <<\EOF
1822 # This file is a shell script that caches the results of configure
1823 # tests run on this system so they can be shared between configure
1824 # scripts and configure runs.  It is not useful on other systems.
1825 # If it contains results you don't want to keep, you may remove or edit it.
1826 #
1827 # By default, configure uses ./config.cache as the cache file,
1828 # creating it if it does not exist already.  You can give configure
1829 # the --cache-file=FILE option to use a different cache file; that is
1830 # what configure does when it calls configure scripts in
1831 # subdirectories, so they share the cache.
1832 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1833 # config.status only pays attention to the cache file if you give it the
1834 # --recheck option to rerun configure.
1835 #
1836 EOF
1837 # The following way of writing the cache mishandles newlines in values,
1838 # but we know of no workaround that is simple, portable, and efficient.
1839 # So, don't put newlines in cache variables' values.
1840 # Ultrix sh set writes to stderr and can't be redirected directly,
1841 # and sets the high bit in the cache file unless we assign to the vars.
1842 (set) 2>&1 |
1843   case `(ac_space=' '; set | grep ac_space) 2>&1` in
1844   *ac_space=\ *)
1845     # `set' does not quote correctly, so add quotes (double-quote substitution
1846     # turns \\\\ into \\, and sed turns \\ into \).
1847     sed -n \
1848       -e "s/'/'\\\\''/g" \
1849       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1850     ;;
1851   *)
1852     # `set' quotes correctly as required by POSIX, so do not add quotes.
1853     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1854     ;;
1855   esac >> confcache
1856 if cmp -s $cache_file confcache; then
1857   :
1858 else
1859   if test -w $cache_file; then
1860     echo "updating cache $cache_file"
1861     cat confcache > $cache_file
1862   else
1863     echo "not updating unwritable cache $cache_file"
1864   fi
1865 fi
1866 rm -f confcache
1867
1868 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1869
1870 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1871 # Let make expand exec_prefix.
1872 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1873
1874 # Any assignment to VPATH causes Sun make to only execute
1875 # the first set of double-colon rules, so remove it if not needed.
1876 # If there is a colon in the path, we need to keep it.
1877 if test "x$srcdir" = x.; then
1878   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
1879 fi
1880
1881 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1882
1883 # Transform confdefs.h into DEFS.
1884 # Protect against shell expansion while executing Makefile rules.
1885 # Protect against Makefile macro expansion.
1886 cat > conftest.defs <<\EOF
1887 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1888 s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
1889 s%\[%\\&%g
1890 s%\]%\\&%g
1891 s%\$%$$%g
1892 EOF
1893 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1894 rm -f conftest.defs
1895
1896
1897 # Without the "./", some shells look in PATH for config.status.
1898 : ${CONFIG_STATUS=./config.status}
1899
1900 echo creating $CONFIG_STATUS
1901 rm -f $CONFIG_STATUS
1902 cat > $CONFIG_STATUS <<EOF
1903 #! /bin/sh
1904 # Generated automatically by configure.
1905 # Run this file to recreate the current configuration.
1906 # This directory was configured as follows,
1907 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1908 #
1909 # $0 $ac_configure_args
1910 #
1911 # Compiler output produced by configure, useful for debugging
1912 # configure, is in ./config.log if it exists.
1913
1914 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1915 for ac_option
1916 do
1917   case "\$ac_option" in
1918   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1919     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1920     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1921   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1922     echo "$CONFIG_STATUS generated by autoconf version 2.13"
1923     exit 0 ;;
1924   -help | --help | --hel | --he | --h)
1925     echo "\$ac_cs_usage"; exit 0 ;;
1926   *) echo "\$ac_cs_usage"; exit 1 ;;
1927   esac
1928 done
1929
1930 ac_given_srcdir=$srcdir
1931
1932 trap 'rm -fr `echo "Makefile lib/Makefile examples/Makefile vq/Makefile cmdline/Makefile xmms/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1933 EOF
1934 cat >> $CONFIG_STATUS <<EOF
1935
1936 # Protect against being on the right side of a sed subst in config.status.
1937 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1938  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1939 $ac_vpsub
1940 $extrasub
1941 s%@SHELL@%$SHELL%g
1942 s%@CFLAGS@%$CFLAGS%g
1943 s%@CPPFLAGS@%$CPPFLAGS%g
1944 s%@CXXFLAGS@%$CXXFLAGS%g
1945 s%@FFLAGS@%$FFLAGS%g
1946 s%@DEFS@%$DEFS%g
1947 s%@LDFLAGS@%$LDFLAGS%g
1948 s%@LIBS@%$LIBS%g
1949 s%@exec_prefix@%$exec_prefix%g
1950 s%@prefix@%$prefix%g
1951 s%@program_transform_name@%$program_transform_name%g
1952 s%@bindir@%$bindir%g
1953 s%@sbindir@%$sbindir%g
1954 s%@libexecdir@%$libexecdir%g
1955 s%@datadir@%$datadir%g
1956 s%@sysconfdir@%$sysconfdir%g
1957 s%@sharedstatedir@%$sharedstatedir%g
1958 s%@localstatedir@%$localstatedir%g
1959 s%@libdir@%$libdir%g
1960 s%@includedir@%$includedir%g
1961 s%@oldincludedir@%$oldincludedir%g
1962 s%@infodir@%$infodir%g
1963 s%@mandir@%$mandir%g
1964 s%@host@%$host%g
1965 s%@host_alias@%$host_alias%g
1966 s%@host_cpu@%$host_cpu%g
1967 s%@host_vendor@%$host_vendor%g
1968 s%@host_os@%$host_os%g
1969 s%@CC@%$CC%g
1970 s%@RANLIB@%$RANLIB%g
1971 s%@AR@%$AR%g
1972 s%@CPP@%$CPP%g
1973 s%@SET_MAKE@%$SET_MAKE%g
1974 s%@LIBOBJS@%$LIBOBJS%g
1975 s%@TYPESIZES@%$TYPESIZES%g
1976 s%@OPT@%$OPT%g
1977 s%@DEBUG@%$DEBUG%g
1978 s%@PROFILE@%$PROFILE%g
1979 s%@pthread_lib@%$pthread_lib%g
1980
1981 CEOF
1982 EOF
1983
1984 cat >> $CONFIG_STATUS <<\EOF
1985
1986 # Split the substitutions into bite-sized pieces for seds with
1987 # small command number limits, like on Digital OSF/1 and HP-UX.
1988 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1989 ac_file=1 # Number of current file.
1990 ac_beg=1 # First line for current file.
1991 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1992 ac_more_lines=:
1993 ac_sed_cmds=""
1994 while $ac_more_lines; do
1995   if test $ac_beg -gt 1; then
1996     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1997   else
1998     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1999   fi
2000   if test ! -s conftest.s$ac_file; then
2001     ac_more_lines=false
2002     rm -f conftest.s$ac_file
2003   else
2004     if test -z "$ac_sed_cmds"; then
2005       ac_sed_cmds="sed -f conftest.s$ac_file"
2006     else
2007       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2008     fi
2009     ac_file=`expr $ac_file + 1`
2010     ac_beg=$ac_end
2011     ac_end=`expr $ac_end + $ac_max_sed_cmds`
2012   fi
2013 done
2014 if test -z "$ac_sed_cmds"; then
2015   ac_sed_cmds=cat
2016 fi
2017 EOF
2018
2019 cat >> $CONFIG_STATUS <<EOF
2020
2021 CONFIG_FILES=\${CONFIG_FILES-"Makefile lib/Makefile examples/Makefile vq/Makefile cmdline/Makefile xmms/Makefile"}
2022 EOF
2023 cat >> $CONFIG_STATUS <<\EOF
2024 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2025   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2026   case "$ac_file" in
2027   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2028        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2029   *) ac_file_in="${ac_file}.in" ;;
2030   esac
2031
2032   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2033
2034   # Remove last slash and all that follows it.  Not all systems have dirname.
2035   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2036   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2037     # The file is in a subdirectory.
2038     test ! -d "$ac_dir" && mkdir "$ac_dir"
2039     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2040     # A "../" for each directory in $ac_dir_suffix.
2041     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2042   else
2043     ac_dir_suffix= ac_dots=
2044   fi
2045
2046   case "$ac_given_srcdir" in
2047   .)  srcdir=.
2048       if test -z "$ac_dots"; then top_srcdir=.
2049       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2050   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2051   *) # Relative path.
2052     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2053     top_srcdir="$ac_dots$ac_given_srcdir" ;;
2054   esac
2055
2056
2057   echo creating "$ac_file"
2058   rm -f "$ac_file"
2059   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2060   case "$ac_file" in
2061   *Makefile*) ac_comsub="1i\\
2062 # $configure_input" ;;
2063   *) ac_comsub= ;;
2064   esac
2065
2066   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2067   sed -e "$ac_comsub
2068 s%@configure_input@%$configure_input%g
2069 s%@srcdir@%$srcdir%g
2070 s%@top_srcdir@%$top_srcdir%g
2071 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2072 fi; done
2073 rm -f conftest.s*
2074
2075 EOF
2076 cat >> $CONFIG_STATUS <<EOF
2077
2078 EOF
2079 cat >> $CONFIG_STATUS <<\EOF
2080
2081 exit 0
2082 EOF
2083 chmod +x $CONFIG_STATUS
2084 rm -fr confdefs* $ac_clean_files
2085 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2086