]> git.sesse.net Git - vlc/blob - configure
vout_beos now uses double buffering for YCbCr overlay.
[vlc] / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13 
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15   --disable-dummy         dummy module (default enabled)"
16 ac_help="$ac_help
17   --disable-null          Null module (default enabled)"
18 ac_help="$ac_help
19   --disable-ppro          Disable PentiumPro optimizations (default enabled for x86)"
20 ac_help="$ac_help
21   --disable-mmx           Disable MMX optimizations (default enabled for x86)"
22 ac_help="$ac_help
23   --enable-altivec        Enable altivec optimizations (default enabled for PPC)"
24 ac_help="$ac_help
25   --disable-css           Disable DVD CSS decryption (default enabled)"
26 ac_help="$ac_help
27   --enable-debug          Enable debug mode (default disabled)"
28 ac_help="$ac_help
29   --enable-stats          Enable printing of statistics (default disabled)"
30 ac_help="$ac_help
31   --disable-optimizations Disable compiler optimizations (default enabled)"
32 ac_help="$ac_help
33   --disable-dsp           Linux /dev/dsp support (default enabled)"
34 ac_help="$ac_help
35   --enable-esd            Esound library support (default disabled)"
36 ac_help="$ac_help
37   --enable-darwin         Darwin sound support (default disabled)"
38 ac_help="$ac_help
39   --enable-macosx         Mac OS X interface support (default disabled)"
40 ac_help="$ac_help
41   --enable-fb             Linux framebuffer support (default disabled)"
42 ac_help="$ac_help
43   --with-ggi[=name]       GGI support (default disabled)"
44 ac_help="$ac_help
45   --with-sdl[=name]       SDL support (default enabled)"
46 ac_help="$ac_help
47   --with-glide[=name]     Glide (3dfx) support (default disabled)"
48 ac_help="$ac_help
49   --enable-ncurses        ncurses interface support (default disabled)"
50 ac_help="$ac_help
51   --enable-qt             Qt interface support (default disabled)"
52 ac_help="$ac_help
53   --enable-kde            KDE interface support (default disabled)"
54 ac_help="$ac_help
55   --enable-gnome          Gnome interface support (default disabled)"
56 ac_help="$ac_help
57   --disable-gtk           Gtk+ support (default enabled)"
58 ac_help="$ac_help
59   --disable-x11           X11 support (default enabled)"
60 ac_help="$ac_help
61   --enable-xvideo         XVideo interface support (default disabled)"
62 ac_help="$ac_help
63   --enable-alsa           Alsa sound drivers support (Only for linux) (default disabled)"
64
65 # Initialize some variables set by options.
66 # The variables have the same names as the options, with
67 # dashes changed to underlines.
68 build=NONE
69 cache_file=./config.cache
70 exec_prefix=NONE
71 host=NONE
72 no_create=
73 nonopt=NONE
74 no_recursion=
75 prefix=NONE
76 program_prefix=NONE
77 program_suffix=NONE
78 program_transform_name=s,x,x,
79 silent=
80 site=
81 srcdir=
82 target=NONE
83 verbose=
84 x_includes=NONE
85 x_libraries=NONE
86 bindir='${exec_prefix}/bin'
87 sbindir='${exec_prefix}/sbin'
88 libexecdir='${exec_prefix}/libexec'
89 datadir='${prefix}/share'
90 sysconfdir='${prefix}/etc'
91 sharedstatedir='${prefix}/com'
92 localstatedir='${prefix}/var'
93 libdir='${exec_prefix}/lib'
94 includedir='${prefix}/include'
95 oldincludedir='/usr/include'
96 infodir='${prefix}/info'
97 mandir='${prefix}/man'
98
99 # Initialize some other variables.
100 subdirs=
101 MFLAGS= MAKEFLAGS=
102 SHELL=${CONFIG_SHELL-/bin/sh}
103 # Maximum number of lines to put in a shell here document.
104 ac_max_here_lines=12
105
106 ac_prev=
107 for ac_option
108 do
109
110   # If the previous option needs an argument, assign it.
111   if test -n "$ac_prev"; then
112     eval "$ac_prev=\$ac_option"
113     ac_prev=
114     continue
115   fi
116
117   case "$ac_option" in
118   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
119   *) ac_optarg= ;;
120   esac
121
122   # Accept the important Cygnus configure options, so we can diagnose typos.
123
124   case "$ac_option" in
125
126   -bindir | --bindir | --bindi | --bind | --bin | --bi)
127     ac_prev=bindir ;;
128   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
129     bindir="$ac_optarg" ;;
130
131   -build | --build | --buil | --bui | --bu)
132     ac_prev=build ;;
133   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
134     build="$ac_optarg" ;;
135
136   -cache-file | --cache-file | --cache-fil | --cache-fi \
137   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
138     ac_prev=cache_file ;;
139   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
140   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
141     cache_file="$ac_optarg" ;;
142
143   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
144     ac_prev=datadir ;;
145   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
146   | --da=*)
147     datadir="$ac_optarg" ;;
148
149   -disable-* | --disable-*)
150     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
151     # Reject names that are not valid shell variable names.
152     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
153       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
154     fi
155     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
156     eval "enable_${ac_feature}=no" ;;
157
158   -enable-* | --enable-*)
159     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
160     # Reject names that are not valid shell variable names.
161     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
162       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
163     fi
164     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
165     case "$ac_option" in
166       *=*) ;;
167       *) ac_optarg=yes ;;
168     esac
169     eval "enable_${ac_feature}='$ac_optarg'" ;;
170
171   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
172   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
173   | --exec | --exe | --ex)
174     ac_prev=exec_prefix ;;
175   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
176   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
177   | --exec=* | --exe=* | --ex=*)
178     exec_prefix="$ac_optarg" ;;
179
180   -gas | --gas | --ga | --g)
181     # Obsolete; use --with-gas.
182     with_gas=yes ;;
183
184   -help | --help | --hel | --he)
185     # Omit some internal or obsolete options to make the list less imposing.
186     # This message is too long to be a string in the A/UX 3.1 sh.
187     cat << EOF
188 Usage: configure [options] [host]
189 Options: [defaults in brackets after descriptions]
190 Configuration:
191   --cache-file=FILE       cache test results in FILE
192   --help                  print this message
193   --no-create             do not create output files
194   --quiet, --silent       do not print \`checking...' messages
195   --version               print the version of autoconf that created configure
196 Directory and file names:
197   --prefix=PREFIX         install architecture-independent files in PREFIX
198                           [$ac_default_prefix]
199   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
200                           [same as prefix]
201   --bindir=DIR            user executables in DIR [EPREFIX/bin]
202   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
203   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
204   --datadir=DIR           read-only architecture-independent data in DIR
205                           [PREFIX/share]
206   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
207   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
208                           [PREFIX/com]
209   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
210   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
211   --includedir=DIR        C header files in DIR [PREFIX/include]
212   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
213   --infodir=DIR           info documentation in DIR [PREFIX/info]
214   --mandir=DIR            man documentation in DIR [PREFIX/man]
215   --srcdir=DIR            find the sources in DIR [configure dir or ..]
216   --program-prefix=PREFIX prepend PREFIX to installed program names
217   --program-suffix=SUFFIX append SUFFIX to installed program names
218   --program-transform-name=PROGRAM
219                           run sed PROGRAM on installed program names
220 EOF
221     cat << EOF
222 Host type:
223   --build=BUILD           configure for building on BUILD [BUILD=HOST]
224   --host=HOST             configure for HOST [guessed]
225   --target=TARGET         configure for TARGET [TARGET=HOST]
226 Features and packages:
227   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
228   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
229   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
230   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
231   --x-includes=DIR        X include files are in DIR
232   --x-libraries=DIR       X library files are in DIR
233 EOF
234     if test -n "$ac_help"; then
235       echo "--enable and --with options recognized:$ac_help"
236     fi
237     exit 0 ;;
238
239   -host | --host | --hos | --ho)
240     ac_prev=host ;;
241   -host=* | --host=* | --hos=* | --ho=*)
242     host="$ac_optarg" ;;
243
244   -includedir | --includedir | --includedi | --included | --include \
245   | --includ | --inclu | --incl | --inc)
246     ac_prev=includedir ;;
247   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
248   | --includ=* | --inclu=* | --incl=* | --inc=*)
249     includedir="$ac_optarg" ;;
250
251   -infodir | --infodir | --infodi | --infod | --info | --inf)
252     ac_prev=infodir ;;
253   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
254     infodir="$ac_optarg" ;;
255
256   -libdir | --libdir | --libdi | --libd)
257     ac_prev=libdir ;;
258   -libdir=* | --libdir=* | --libdi=* | --libd=*)
259     libdir="$ac_optarg" ;;
260
261   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
262   | --libexe | --libex | --libe)
263     ac_prev=libexecdir ;;
264   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
265   | --libexe=* | --libex=* | --libe=*)
266     libexecdir="$ac_optarg" ;;
267
268   -localstatedir | --localstatedir | --localstatedi | --localstated \
269   | --localstate | --localstat | --localsta | --localst \
270   | --locals | --local | --loca | --loc | --lo)
271     ac_prev=localstatedir ;;
272   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
273   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
274   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
275     localstatedir="$ac_optarg" ;;
276
277   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
278     ac_prev=mandir ;;
279   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
280     mandir="$ac_optarg" ;;
281
282   -nfp | --nfp | --nf)
283     # Obsolete; use --without-fp.
284     with_fp=no ;;
285
286   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
287   | --no-cr | --no-c)
288     no_create=yes ;;
289
290   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
291   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
292     no_recursion=yes ;;
293
294   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
295   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
296   | --oldin | --oldi | --old | --ol | --o)
297     ac_prev=oldincludedir ;;
298   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
299   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
300   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
301     oldincludedir="$ac_optarg" ;;
302
303   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
304     ac_prev=prefix ;;
305   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
306     prefix="$ac_optarg" ;;
307
308   -program-prefix | --program-prefix | --program-prefi | --program-pref \
309   | --program-pre | --program-pr | --program-p)
310     ac_prev=program_prefix ;;
311   -program-prefix=* | --program-prefix=* | --program-prefi=* \
312   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
313     program_prefix="$ac_optarg" ;;
314
315   -program-suffix | --program-suffix | --program-suffi | --program-suff \
316   | --program-suf | --program-su | --program-s)
317     ac_prev=program_suffix ;;
318   -program-suffix=* | --program-suffix=* | --program-suffi=* \
319   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
320     program_suffix="$ac_optarg" ;;
321
322   -program-transform-name | --program-transform-name \
323   | --program-transform-nam | --program-transform-na \
324   | --program-transform-n | --program-transform- \
325   | --program-transform | --program-transfor \
326   | --program-transfo | --program-transf \
327   | --program-trans | --program-tran \
328   | --progr-tra | --program-tr | --program-t)
329     ac_prev=program_transform_name ;;
330   -program-transform-name=* | --program-transform-name=* \
331   | --program-transform-nam=* | --program-transform-na=* \
332   | --program-transform-n=* | --program-transform-=* \
333   | --program-transform=* | --program-transfor=* \
334   | --program-transfo=* | --program-transf=* \
335   | --program-trans=* | --program-tran=* \
336   | --progr-tra=* | --program-tr=* | --program-t=*)
337     program_transform_name="$ac_optarg" ;;
338
339   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
340   | -silent | --silent | --silen | --sile | --sil)
341     silent=yes ;;
342
343   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
344     ac_prev=sbindir ;;
345   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
346   | --sbi=* | --sb=*)
347     sbindir="$ac_optarg" ;;
348
349   -sharedstatedir | --sharedstatedir | --sharedstatedi \
350   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
351   | --sharedst | --shareds | --shared | --share | --shar \
352   | --sha | --sh)
353     ac_prev=sharedstatedir ;;
354   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
355   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
356   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
357   | --sha=* | --sh=*)
358     sharedstatedir="$ac_optarg" ;;
359
360   -site | --site | --sit)
361     ac_prev=site ;;
362   -site=* | --site=* | --sit=*)
363     site="$ac_optarg" ;;
364
365   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
366     ac_prev=srcdir ;;
367   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
368     srcdir="$ac_optarg" ;;
369
370   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
371   | --syscon | --sysco | --sysc | --sys | --sy)
372     ac_prev=sysconfdir ;;
373   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
374   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
375     sysconfdir="$ac_optarg" ;;
376
377   -target | --target | --targe | --targ | --tar | --ta | --t)
378     ac_prev=target ;;
379   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
380     target="$ac_optarg" ;;
381
382   -v | -verbose | --verbose | --verbos | --verbo | --verb)
383     verbose=yes ;;
384
385   -version | --version | --versio | --versi | --vers)
386     echo "configure generated by autoconf version 2.13"
387     exit 0 ;;
388
389   -with-* | --with-*)
390     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
391     # Reject names that are not valid shell variable names.
392     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
393       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
394     fi
395     ac_package=`echo $ac_package| sed 's/-/_/g'`
396     case "$ac_option" in
397       *=*) ;;
398       *) ac_optarg=yes ;;
399     esac
400     eval "with_${ac_package}='$ac_optarg'" ;;
401
402   -without-* | --without-*)
403     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
404     # Reject names that are not valid shell variable names.
405     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
406       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
407     fi
408     ac_package=`echo $ac_package| sed 's/-/_/g'`
409     eval "with_${ac_package}=no" ;;
410
411   --x)
412     # Obsolete; use --with-x.
413     with_x=yes ;;
414
415   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
416   | --x-incl | --x-inc | --x-in | --x-i)
417     ac_prev=x_includes ;;
418   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
419   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
420     x_includes="$ac_optarg" ;;
421
422   -x-libraries | --x-libraries | --x-librarie | --x-librari \
423   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
424     ac_prev=x_libraries ;;
425   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
426   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
427     x_libraries="$ac_optarg" ;;
428
429   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
430     ;;
431
432   *)
433     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
434       echo "configure: warning: $ac_option: invalid host type" 1>&2
435     fi
436     if test "x$nonopt" != xNONE; then
437       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
438     fi
439     nonopt="$ac_option"
440     ;;
441
442   esac
443 done
444
445 if test -n "$ac_prev"; then
446   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
447 fi
448
449 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
450
451 # File descriptor usage:
452 # 0 standard input
453 # 1 file creation
454 # 2 errors and warnings
455 # 3 some systems may open it to /dev/tty
456 # 4 used on the Kubota Titan
457 # 6 checking for... messages and results
458 # 5 compiler messages saved in config.log
459 if test "$silent" = yes; then
460   exec 6>/dev/null
461 else
462   exec 6>&1
463 fi
464 exec 5>./config.log
465
466 echo "\
467 This file contains any messages produced by compilers while
468 running configure, to aid debugging if configure makes a mistake.
469 " 1>&5
470
471 # Strip out --no-create and --no-recursion so they do not pile up.
472 # Also quote any args containing shell metacharacters.
473 ac_configure_args=
474 for ac_arg
475 do
476   case "$ac_arg" in
477   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
478   | --no-cr | --no-c) ;;
479   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
480   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
481   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
482   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
483   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
484   esac
485 done
486
487 # NLS nuisances.
488 # Only set these to C if already set.  These must not be set unconditionally
489 # because not all systems understand e.g. LANG=C (notably SCO).
490 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
491 # Non-C LC_CTYPE values break the ctype check.
492 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
493 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
494 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
495 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
496
497 # confdefs.h avoids OS command line length limits that DEFS can exceed.
498 rm -rf conftest* confdefs.h
499 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
500 echo > confdefs.h
501
502 # A filename unique to this package, relative to the directory that
503 # configure is in, which we can look for to find out if srcdir is correct.
504 ac_unique_file=src/interface/main.c
505
506 # Find the source files, if location was not specified.
507 if test -z "$srcdir"; then
508   ac_srcdir_defaulted=yes
509   # Try the directory containing this script, then its parent.
510   ac_prog=$0
511   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
512   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
513   srcdir=$ac_confdir
514   if test ! -r $srcdir/$ac_unique_file; then
515     srcdir=..
516   fi
517 else
518   ac_srcdir_defaulted=no
519 fi
520 if test ! -r $srcdir/$ac_unique_file; then
521   if test "$ac_srcdir_defaulted" = yes; then
522     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
523   else
524     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
525   fi
526 fi
527 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
528
529 # Prefer explicitly selected file to automatically selected ones.
530 if test -z "$CONFIG_SITE"; then
531   if test "x$prefix" != xNONE; then
532     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
533   else
534     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
535   fi
536 fi
537 for ac_site_file in $CONFIG_SITE; do
538   if test -r "$ac_site_file"; then
539     echo "loading site script $ac_site_file"
540     . "$ac_site_file"
541   fi
542 done
543
544 if test -r "$cache_file"; then
545   echo "loading cache $cache_file"
546   . $cache_file
547 else
548   echo "creating cache $cache_file"
549   > $cache_file
550 fi
551
552 ac_ext=c
553 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
554 ac_cpp='$CPP $CPPFLAGS'
555 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
556 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
557 cross_compiling=$ac_cv_prog_cc_cross
558
559 ac_exeext=
560 ac_objext=o
561 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
562   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
563   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
564     ac_n= ac_c='
565 ' ac_t='        '
566   else
567     ac_n=-n ac_c= ac_t=
568   fi
569 else
570   ac_n= ac_c='\c' ac_t=
571 fi
572
573
574
575
576 ac_aux_dir=
577 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
578   if test -f $ac_dir/install-sh; then
579     ac_aux_dir=$ac_dir
580     ac_install_sh="$ac_aux_dir/install-sh -c"
581     break
582   elif test -f $ac_dir/install.sh; then
583     ac_aux_dir=$ac_dir
584     ac_install_sh="$ac_aux_dir/install.sh -c"
585     break
586   fi
587 done
588 if test -z "$ac_aux_dir"; then
589   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
590 fi
591 ac_config_guess=$ac_aux_dir/config.guess
592 ac_config_sub=$ac_aux_dir/config.sub
593 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
594
595
596 # Make sure we can run config.sub.
597 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
598 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
599 fi
600
601 echo $ac_n "checking host system type""... $ac_c" 1>&6
602 echo "configure:603: checking host system type" >&5
603
604 host_alias=$host
605 case "$host_alias" in
606 NONE)
607   case $nonopt in
608   NONE)
609     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
610     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
611     fi ;;
612   *) host_alias=$nonopt ;;
613   esac ;;
614 esac
615
616 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
617 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
618 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
619 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
620 echo "$ac_t""$host" 1>&6
621
622
623 VLC_VERSION=0.2.63
624
625 VLC_CODENAME=Urumov
626
627
628 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
629 echo "configure:630: checking whether ${MAKE-make} sets \${MAKE}" >&5
630 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
631 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
632   echo $ac_n "(cached) $ac_c" 1>&6
633 else
634   cat > conftestmake <<\EOF
635 all:
636         @echo 'ac_maketemp="${MAKE}"'
637 EOF
638 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
639 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
640 if test -n "$ac_maketemp"; then
641   eval ac_cv_prog_make_${ac_make}_set=yes
642 else
643   eval ac_cv_prog_make_${ac_make}_set=no
644 fi
645 rm -f conftestmake
646 fi
647 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
648   echo "$ac_t""yes" 1>&6
649   SET_MAKE=
650 else
651   echo "$ac_t""no" 1>&6
652   SET_MAKE="MAKE=${MAKE-make}"
653 fi
654
655 if test -z "$CC"; then
656   # Extract the first word of "gcc", so it can be a program name with args.
657 set dummy gcc; ac_word=$2
658 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
659 echo "configure:660: checking for $ac_word" >&5
660 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
661   echo $ac_n "(cached) $ac_c" 1>&6
662 else
663   if test -n "$CC"; then
664   ac_cv_prog_CC="$CC" # Let the user override the test.
665 else
666   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
667   ac_dummy="$PATH"
668   for ac_dir in $ac_dummy; do
669     test -z "$ac_dir" && ac_dir=.
670     if test -f $ac_dir/$ac_word; then
671       ac_cv_prog_CC="gcc"
672       break
673     fi
674   done
675   IFS="$ac_save_ifs"
676 fi
677 fi
678 CC="$ac_cv_prog_CC"
679 if test -n "$CC"; then
680   echo "$ac_t""$CC" 1>&6
681 else
682   echo "$ac_t""no" 1>&6
683 fi
684
685 if test -z "$CC"; then
686   # Extract the first word of "cc", so it can be a program name with args.
687 set dummy cc; ac_word=$2
688 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
689 echo "configure:690: checking for $ac_word" >&5
690 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
691   echo $ac_n "(cached) $ac_c" 1>&6
692 else
693   if test -n "$CC"; then
694   ac_cv_prog_CC="$CC" # Let the user override the test.
695 else
696   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
697   ac_prog_rejected=no
698   ac_dummy="$PATH"
699   for ac_dir in $ac_dummy; do
700     test -z "$ac_dir" && ac_dir=.
701     if test -f $ac_dir/$ac_word; then
702       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
703         ac_prog_rejected=yes
704         continue
705       fi
706       ac_cv_prog_CC="cc"
707       break
708     fi
709   done
710   IFS="$ac_save_ifs"
711 if test $ac_prog_rejected = yes; then
712   # We found a bogon in the path, so make sure we never use it.
713   set dummy $ac_cv_prog_CC
714   shift
715   if test $# -gt 0; then
716     # We chose a different compiler from the bogus one.
717     # However, it has the same basename, so the bogon will be chosen
718     # first if we set CC to just the basename; use the full file name.
719     shift
720     set dummy "$ac_dir/$ac_word" "$@"
721     shift
722     ac_cv_prog_CC="$@"
723   fi
724 fi
725 fi
726 fi
727 CC="$ac_cv_prog_CC"
728 if test -n "$CC"; then
729   echo "$ac_t""$CC" 1>&6
730 else
731   echo "$ac_t""no" 1>&6
732 fi
733
734   if test -z "$CC"; then
735     case "`uname -s`" in
736     *win32* | *WIN32*)
737       # Extract the first word of "cl", so it can be a program name with args.
738 set dummy cl; ac_word=$2
739 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
740 echo "configure:741: checking for $ac_word" >&5
741 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
742   echo $ac_n "(cached) $ac_c" 1>&6
743 else
744   if test -n "$CC"; then
745   ac_cv_prog_CC="$CC" # Let the user override the test.
746 else
747   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
748   ac_dummy="$PATH"
749   for ac_dir in $ac_dummy; do
750     test -z "$ac_dir" && ac_dir=.
751     if test -f $ac_dir/$ac_word; then
752       ac_cv_prog_CC="cl"
753       break
754     fi
755   done
756   IFS="$ac_save_ifs"
757 fi
758 fi
759 CC="$ac_cv_prog_CC"
760 if test -n "$CC"; then
761   echo "$ac_t""$CC" 1>&6
762 else
763   echo "$ac_t""no" 1>&6
764 fi
765  ;;
766     esac
767   fi
768   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
769 fi
770
771 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
772 echo "configure:773: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
773
774 ac_ext=c
775 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
776 ac_cpp='$CPP $CPPFLAGS'
777 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
778 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
779 cross_compiling=$ac_cv_prog_cc_cross
780
781 cat > conftest.$ac_ext << EOF
782
783 #line 784 "configure"
784 #include "confdefs.h"
785
786 main(){return(0);}
787 EOF
788 if { (eval echo configure:789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
789   ac_cv_prog_cc_works=yes
790   # If we can't run a trivial program, we are probably using a cross compiler.
791   if (./conftest; exit) 2>/dev/null; then
792     ac_cv_prog_cc_cross=no
793   else
794     ac_cv_prog_cc_cross=yes
795   fi
796 else
797   echo "configure: failed program was:" >&5
798   cat conftest.$ac_ext >&5
799   ac_cv_prog_cc_works=no
800 fi
801 rm -fr conftest*
802 ac_ext=c
803 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
804 ac_cpp='$CPP $CPPFLAGS'
805 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
806 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
807 cross_compiling=$ac_cv_prog_cc_cross
808
809 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
810 if test $ac_cv_prog_cc_works = no; then
811   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
812 fi
813 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
814 echo "configure:815: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
815 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
816 cross_compiling=$ac_cv_prog_cc_cross
817
818 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
819 echo "configure:820: checking whether we are using GNU C" >&5
820 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
821   echo $ac_n "(cached) $ac_c" 1>&6
822 else
823   cat > conftest.c <<EOF
824 #ifdef __GNUC__
825   yes;
826 #endif
827 EOF
828 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
829   ac_cv_prog_gcc=yes
830 else
831   ac_cv_prog_gcc=no
832 fi
833 fi
834
835 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
836
837 if test $ac_cv_prog_gcc = yes; then
838   GCC=yes
839 else
840   GCC=
841 fi
842
843 ac_test_CFLAGS="${CFLAGS+set}"
844 ac_save_CFLAGS="$CFLAGS"
845 CFLAGS=
846 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
847 echo "configure:848: checking whether ${CC-cc} accepts -g" >&5
848 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
849   echo $ac_n "(cached) $ac_c" 1>&6
850 else
851   echo 'void f(){}' > conftest.c
852 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
853   ac_cv_prog_cc_g=yes
854 else
855   ac_cv_prog_cc_g=no
856 fi
857 rm -f conftest*
858
859 fi
860
861 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
862 if test "$ac_test_CFLAGS" = set; then
863   CFLAGS="$ac_save_CFLAGS"
864 elif test $ac_cv_prog_cc_g = yes; then
865   if test "$GCC" = yes; then
866     CFLAGS="-g -O2"
867   else
868     CFLAGS="-g"
869   fi
870 else
871   if test "$GCC" = yes; then
872     CFLAGS="-O2"
873   else
874     CFLAGS=
875   fi
876 fi
877
878 fi
879 if test -z "$CPP"; then
880   echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
881 echo "configure:882: checking how to run the C preprocessor" >&5
882 # On Suns, sometimes $CPP names a directory.
883 if test -n "$CPP" && test -d "$CPP"; then
884   CPP=
885 fi
886 if test -z "$CPP"; then
887 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
888   echo $ac_n "(cached) $ac_c" 1>&6
889 else
890     # This must be in double quotes, not single quotes, because CPP may get
891   # substituted into the Makefile and "${CC-cc}" will confuse make.
892   CPP="${CC-cc} -E"
893   # On the NeXT, cc -E runs the code through the compiler's parser,
894   # not just through cpp.
895   cat > conftest.$ac_ext <<EOF
896 #line 897 "configure"
897 #include "confdefs.h"
898 #include <assert.h>
899 Syntax Error
900 EOF
901 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
902 { (eval echo configure:903: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
903 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
904 if test -z "$ac_err"; then
905   :
906 else
907   echo "$ac_err" >&5
908   echo "configure: failed program was:" >&5
909   cat conftest.$ac_ext >&5
910   rm -rf conftest*
911   CPP="${CC-cc} -E -traditional-cpp"
912   cat > conftest.$ac_ext <<EOF
913 #line 914 "configure"
914 #include "confdefs.h"
915 #include <assert.h>
916 Syntax Error
917 EOF
918 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
919 { (eval echo configure:920: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
920 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
921 if test -z "$ac_err"; then
922   :
923 else
924   echo "$ac_err" >&5
925   echo "configure: failed program was:" >&5
926   cat conftest.$ac_ext >&5
927   rm -rf conftest*
928   CPP="${CC-cc} -nologo -E"
929   cat > conftest.$ac_ext <<EOF
930 #line 931 "configure"
931 #include "confdefs.h"
932 #include <assert.h>
933 Syntax Error
934 EOF
935 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
936 { (eval echo configure:937: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
937 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
938 if test -z "$ac_err"; then
939   :
940 else
941   echo "$ac_err" >&5
942   echo "configure: failed program was:" >&5
943   cat conftest.$ac_ext >&5
944   rm -rf conftest*
945   CPP=/lib/cpp
946 fi
947 rm -f conftest*
948 fi
949 rm -f conftest*
950 fi
951 rm -f conftest*
952   ac_cv_prog_CPP="$CPP"
953 fi
954   CPP="$ac_cv_prog_CPP"
955 else
956   ac_cv_prog_CPP="$CPP"
957 fi
958 echo "$ac_t""$CPP" 1>&6
959
960 fi
961
962 # Find a good install program.  We prefer a C program (faster),
963 # so one script is as good as another.  But avoid the broken or
964 # incompatible versions:
965 # SysV /etc/install, /usr/sbin/install
966 # SunOS /usr/etc/install
967 # IRIX /sbin/install
968 # AIX /bin/install
969 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
970 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
971 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
972 # ./install, which can be erroneously created by make from ./install.sh.
973 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
974 echo "configure:975: checking for a BSD compatible install" >&5
975 if test -z "$INSTALL"; then
976 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
977   echo $ac_n "(cached) $ac_c" 1>&6
978 else
979     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
980   for ac_dir in $PATH; do
981     # Account for people who put trailing slashes in PATH elements.
982     case "$ac_dir/" in
983     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
984     *)
985       # OSF1 and SCO ODT 3.0 have their own names for install.
986       # Don't use installbsd from OSF since it installs stuff as root
987       # by default.
988       for ac_prog in ginstall scoinst install; do
989         if test -f $ac_dir/$ac_prog; then
990           if test $ac_prog = install &&
991             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
992             # AIX install.  It has an incompatible calling convention.
993             :
994           else
995             ac_cv_path_install="$ac_dir/$ac_prog -c"
996             break 2
997           fi
998         fi
999       done
1000       ;;
1001     esac
1002   done
1003   IFS="$ac_save_IFS"
1004
1005 fi
1006   if test "${ac_cv_path_install+set}" = set; then
1007     INSTALL="$ac_cv_path_install"
1008   else
1009     # As a last resort, use the slow shell script.  We don't cache a
1010     # path for INSTALL within a source directory, because that will
1011     # break other packages using the cache if that directory is
1012     # removed, or if the path is relative.
1013     INSTALL="$ac_install_sh"
1014   fi
1015 fi
1016 echo "$ac_t""$INSTALL" 1>&6
1017
1018 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1019 # It thinks the first close brace ends the variable substitution.
1020 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1021
1022 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1023
1024 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1025
1026
1027 echo $ac_n "checking for working const""... $ac_c" 1>&6
1028 echo "configure:1029: checking for working const" >&5
1029 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1030   echo $ac_n "(cached) $ac_c" 1>&6
1031 else
1032   cat > conftest.$ac_ext <<EOF
1033 #line 1034 "configure"
1034 #include "confdefs.h"
1035
1036 int main() {
1037
1038 /* Ultrix mips cc rejects this.  */
1039 typedef int charset[2]; const charset x;
1040 /* SunOS 4.1.1 cc rejects this.  */
1041 char const *const *ccp;
1042 char **p;
1043 /* NEC SVR4.0.2 mips cc rejects this.  */
1044 struct point {int x, y;};
1045 static struct point const zero = {0,0};
1046 /* AIX XL C 1.02.0.0 rejects this.
1047    It does not let you subtract one const X* pointer from another in an arm
1048    of an if-expression whose if-part is not a constant expression */
1049 const char *g = "string";
1050 ccp = &g + (g ? g-g : 0);
1051 /* HPUX 7.0 cc rejects these. */
1052 ++ccp;
1053 p = (char**) ccp;
1054 ccp = (char const *const *) p;
1055 { /* SCO 3.2v4 cc rejects this.  */
1056   char *t;
1057   char const *s = 0 ? (char *) 0 : (char const *) 0;
1058
1059   *t++ = 0;
1060 }
1061 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
1062   int x[] = {25, 17};
1063   const int *foo = &x[0];
1064   ++foo;
1065 }
1066 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1067   typedef const int *iptr;
1068   iptr p = 0;
1069   ++p;
1070 }
1071 { /* AIX XL C 1.02.0.0 rejects this saying
1072      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1073   struct s { int j; const int *ap[3]; };
1074   struct s *b; b->j = 5;
1075 }
1076 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1077   const int foo = 10;
1078 }
1079
1080 ; return 0; }
1081 EOF
1082 if { (eval echo configure:1083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1083   rm -rf conftest*
1084   ac_cv_c_const=yes
1085 else
1086   echo "configure: failed program was:" >&5
1087   cat conftest.$ac_ext >&5
1088   rm -rf conftest*
1089   ac_cv_c_const=no
1090 fi
1091 rm -f conftest*
1092 fi
1093
1094 echo "$ac_t""$ac_cv_c_const" 1>&6
1095 if test $ac_cv_c_const = no; then
1096   cat >> confdefs.h <<\EOF
1097 #define const 
1098 EOF
1099
1100 fi
1101
1102 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1103 echo "configure:1104: checking whether byte ordering is bigendian" >&5
1104 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1105   echo $ac_n "(cached) $ac_c" 1>&6
1106 else
1107   ac_cv_c_bigendian=unknown
1108 # See if sys/param.h defines the BYTE_ORDER macro.
1109 cat > conftest.$ac_ext <<EOF
1110 #line 1111 "configure"
1111 #include "confdefs.h"
1112 #include <sys/types.h>
1113 #include <sys/param.h>
1114 int main() {
1115
1116 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1117  bogus endian macros
1118 #endif
1119 ; return 0; }
1120 EOF
1121 if { (eval echo configure:1122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1122   rm -rf conftest*
1123   # It does; now see whether it defined to BIG_ENDIAN or not.
1124 cat > conftest.$ac_ext <<EOF
1125 #line 1126 "configure"
1126 #include "confdefs.h"
1127 #include <sys/types.h>
1128 #include <sys/param.h>
1129 int main() {
1130
1131 #if BYTE_ORDER != BIG_ENDIAN
1132  not big endian
1133 #endif
1134 ; return 0; }
1135 EOF
1136 if { (eval echo configure:1137: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1137   rm -rf conftest*
1138   ac_cv_c_bigendian=yes
1139 else
1140   echo "configure: failed program was:" >&5
1141   cat conftest.$ac_ext >&5
1142   rm -rf conftest*
1143   ac_cv_c_bigendian=no
1144 fi
1145 rm -f conftest*
1146 else
1147   echo "configure: failed program was:" >&5
1148   cat conftest.$ac_ext >&5
1149 fi
1150 rm -f conftest*
1151 if test $ac_cv_c_bigendian = unknown; then
1152 if test "$cross_compiling" = yes; then
1153     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1154 else
1155   cat > conftest.$ac_ext <<EOF
1156 #line 1157 "configure"
1157 #include "confdefs.h"
1158 main () {
1159   /* Are we little or big endian?  From Harbison&Steele.  */
1160   union
1161   {
1162     long l;
1163     char c[sizeof (long)];
1164   } u;
1165   u.l = 1;
1166   exit (u.c[sizeof (long) - 1] == 1);
1167 }
1168 EOF
1169 if { (eval echo configure:1170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1170 then
1171   ac_cv_c_bigendian=no
1172 else
1173   echo "configure: failed program was:" >&5
1174   cat conftest.$ac_ext >&5
1175   rm -fr conftest*
1176   ac_cv_c_bigendian=yes
1177 fi
1178 rm -fr conftest*
1179 fi
1180
1181 fi
1182 fi
1183
1184 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1185 if test $ac_cv_c_bigendian = yes; then
1186   cat >> confdefs.h <<\EOF
1187 #define WORDS_BIGENDIAN 1
1188 EOF
1189
1190 fi
1191
1192
1193 for ac_func in gettimeofday select strerror strtod strtol
1194 do
1195 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1196 echo "configure:1197: checking for $ac_func" >&5
1197 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1198   echo $ac_n "(cached) $ac_c" 1>&6
1199 else
1200   cat > conftest.$ac_ext <<EOF
1201 #line 1202 "configure"
1202 #include "confdefs.h"
1203 /* System header to define __stub macros and hopefully few prototypes,
1204     which can conflict with char $ac_func(); below.  */
1205 #include <assert.h>
1206 /* Override any gcc2 internal prototype to avoid an error.  */
1207 /* We use char because int might match the return type of a gcc2
1208     builtin and then its argument prototype would still apply.  */
1209 char $ac_func();
1210
1211 int main() {
1212
1213 /* The GNU C library defines this for functions which it implements
1214     to always fail with ENOSYS.  Some functions are actually named
1215     something starting with __ and the normal name is an alias.  */
1216 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1217 choke me
1218 #else
1219 $ac_func();
1220 #endif
1221
1222 ; return 0; }
1223 EOF
1224 if { (eval echo configure:1225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1225   rm -rf conftest*
1226   eval "ac_cv_func_$ac_func=yes"
1227 else
1228   echo "configure: failed program was:" >&5
1229   cat conftest.$ac_ext >&5
1230   rm -rf conftest*
1231   eval "ac_cv_func_$ac_func=no"
1232 fi
1233 rm -f conftest*
1234 fi
1235
1236 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1237   echo "$ac_t""yes" 1>&6
1238     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1239   cat >> confdefs.h <<EOF
1240 #define $ac_tr_func 1
1241 EOF
1242  
1243 else
1244   echo "$ac_t""no" 1>&6
1245 fi
1246 done
1247
1248 for ac_func in setenv putenv
1249 do
1250 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1251 echo "configure:1252: checking for $ac_func" >&5
1252 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1253   echo $ac_n "(cached) $ac_c" 1>&6
1254 else
1255   cat > conftest.$ac_ext <<EOF
1256 #line 1257 "configure"
1257 #include "confdefs.h"
1258 /* System header to define __stub macros and hopefully few prototypes,
1259     which can conflict with char $ac_func(); below.  */
1260 #include <assert.h>
1261 /* Override any gcc2 internal prototype to avoid an error.  */
1262 /* We use char because int might match the return type of a gcc2
1263     builtin and then its argument prototype would still apply.  */
1264 char $ac_func();
1265
1266 int main() {
1267
1268 /* The GNU C library defines this for functions which it implements
1269     to always fail with ENOSYS.  Some functions are actually named
1270     something starting with __ and the normal name is an alias.  */
1271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1272 choke me
1273 #else
1274 $ac_func();
1275 #endif
1276
1277 ; return 0; }
1278 EOF
1279 if { (eval echo configure:1280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1280   rm -rf conftest*
1281   eval "ac_cv_func_$ac_func=yes"
1282 else
1283   echo "configure: failed program was:" >&5
1284   cat conftest.$ac_ext >&5
1285   rm -rf conftest*
1286   eval "ac_cv_func_$ac_func=no"
1287 fi
1288 rm -f conftest*
1289 fi
1290
1291 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1292   echo "$ac_t""yes" 1>&6
1293     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1294   cat >> confdefs.h <<EOF
1295 #define $ac_tr_func 1
1296 EOF
1297  
1298 else
1299   echo "$ac_t""no" 1>&6
1300 fi
1301 done
1302
1303 echo $ac_n "checking for connect""... $ac_c" 1>&6
1304 echo "configure:1305: checking for connect" >&5
1305 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1306   echo $ac_n "(cached) $ac_c" 1>&6
1307 else
1308   cat > conftest.$ac_ext <<EOF
1309 #line 1310 "configure"
1310 #include "confdefs.h"
1311 /* System header to define __stub macros and hopefully few prototypes,
1312     which can conflict with char connect(); below.  */
1313 #include <assert.h>
1314 /* Override any gcc2 internal prototype to avoid an error.  */
1315 /* We use char because int might match the return type of a gcc2
1316     builtin and then its argument prototype would still apply.  */
1317 char connect();
1318
1319 int main() {
1320
1321 /* The GNU C library defines this for functions which it implements
1322     to always fail with ENOSYS.  Some functions are actually named
1323     something starting with __ and the normal name is an alias.  */
1324 #if defined (__stub_connect) || defined (__stub___connect)
1325 choke me
1326 #else
1327 connect();
1328 #endif
1329
1330 ; return 0; }
1331 EOF
1332 if { (eval echo configure:1333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1333   rm -rf conftest*
1334   eval "ac_cv_func_connect=yes"
1335 else
1336   echo "configure: failed program was:" >&5
1337   cat conftest.$ac_ext >&5
1338   rm -rf conftest*
1339   eval "ac_cv_func_connect=no"
1340 fi
1341 rm -f conftest*
1342 fi
1343
1344 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1345   echo "$ac_t""yes" 1>&6
1346   :
1347 else
1348   echo "$ac_t""no" 1>&6
1349 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1350 echo "configure:1351: checking for connect in -lsocket" >&5
1351 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1352 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1353   echo $ac_n "(cached) $ac_c" 1>&6
1354 else
1355   ac_save_LIBS="$LIBS"
1356 LIBS="-lsocket  $LIBS"
1357 cat > conftest.$ac_ext <<EOF
1358 #line 1359 "configure"
1359 #include "confdefs.h"
1360 /* Override any gcc2 internal prototype to avoid an error.  */
1361 /* We use char because int might match the return type of a gcc2
1362     builtin and then its argument prototype would still apply.  */
1363 char connect();
1364
1365 int main() {
1366 connect()
1367 ; return 0; }
1368 EOF
1369 if { (eval echo configure:1370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1370   rm -rf conftest*
1371   eval "ac_cv_lib_$ac_lib_var=yes"
1372 else
1373   echo "configure: failed program was:" >&5
1374   cat conftest.$ac_ext >&5
1375   rm -rf conftest*
1376   eval "ac_cv_lib_$ac_lib_var=no"
1377 fi
1378 rm -f conftest*
1379 LIBS="$ac_save_LIBS"
1380
1381 fi
1382 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1383   echo "$ac_t""yes" 1>&6
1384     ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1385     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1386   cat >> confdefs.h <<EOF
1387 #define $ac_tr_lib 1
1388 EOF
1389
1390   LIBS="-lsocket $LIBS"
1391
1392 else
1393   echo "$ac_t""no" 1>&6
1394 fi
1395
1396 fi
1397
1398 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1399 echo "configure:1400: checking for gethostbyname" >&5
1400 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1401   echo $ac_n "(cached) $ac_c" 1>&6
1402 else
1403   cat > conftest.$ac_ext <<EOF
1404 #line 1405 "configure"
1405 #include "confdefs.h"
1406 /* System header to define __stub macros and hopefully few prototypes,
1407     which can conflict with char gethostbyname(); below.  */
1408 #include <assert.h>
1409 /* Override any gcc2 internal prototype to avoid an error.  */
1410 /* We use char because int might match the return type of a gcc2
1411     builtin and then its argument prototype would still apply.  */
1412 char gethostbyname();
1413
1414 int main() {
1415
1416 /* The GNU C library defines this for functions which it implements
1417     to always fail with ENOSYS.  Some functions are actually named
1418     something starting with __ and the normal name is an alias.  */
1419 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1420 choke me
1421 #else
1422 gethostbyname();
1423 #endif
1424
1425 ; return 0; }
1426 EOF
1427 if { (eval echo configure:1428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1428   rm -rf conftest*
1429   eval "ac_cv_func_gethostbyname=yes"
1430 else
1431   echo "configure: failed program was:" >&5
1432   cat conftest.$ac_ext >&5
1433   rm -rf conftest*
1434   eval "ac_cv_func_gethostbyname=no"
1435 fi
1436 rm -f conftest*
1437 fi
1438
1439 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1440   echo "$ac_t""yes" 1>&6
1441   :
1442 else
1443   echo "$ac_t""no" 1>&6
1444 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1445 echo "configure:1446: checking for gethostbyname in -lnsl" >&5
1446 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1447 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1448   echo $ac_n "(cached) $ac_c" 1>&6
1449 else
1450   ac_save_LIBS="$LIBS"
1451 LIBS="-lnsl  $LIBS"
1452 cat > conftest.$ac_ext <<EOF
1453 #line 1454 "configure"
1454 #include "confdefs.h"
1455 /* Override any gcc2 internal prototype to avoid an error.  */
1456 /* We use char because int might match the return type of a gcc2
1457     builtin and then its argument prototype would still apply.  */
1458 char gethostbyname();
1459
1460 int main() {
1461 gethostbyname()
1462 ; return 0; }
1463 EOF
1464 if { (eval echo configure:1465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1465   rm -rf conftest*
1466   eval "ac_cv_lib_$ac_lib_var=yes"
1467 else
1468   echo "configure: failed program was:" >&5
1469   cat conftest.$ac_ext >&5
1470   rm -rf conftest*
1471   eval "ac_cv_lib_$ac_lib_var=no"
1472 fi
1473 rm -f conftest*
1474 LIBS="$ac_save_LIBS"
1475
1476 fi
1477 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1478   echo "$ac_t""yes" 1>&6
1479     ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1480     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1481   cat >> confdefs.h <<EOF
1482 #define $ac_tr_lib 1
1483 EOF
1484
1485   LIBS="-lnsl $LIBS"
1486
1487 else
1488   echo "$ac_t""no" 1>&6
1489 fi
1490
1491 fi
1492
1493 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
1494 echo "configure:1495: checking for nanosleep" >&5
1495 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
1496   echo $ac_n "(cached) $ac_c" 1>&6
1497 else
1498   cat > conftest.$ac_ext <<EOF
1499 #line 1500 "configure"
1500 #include "confdefs.h"
1501 /* System header to define __stub macros and hopefully few prototypes,
1502     which can conflict with char nanosleep(); below.  */
1503 #include <assert.h>
1504 /* Override any gcc2 internal prototype to avoid an error.  */
1505 /* We use char because int might match the return type of a gcc2
1506     builtin and then its argument prototype would still apply.  */
1507 char nanosleep();
1508
1509 int main() {
1510
1511 /* The GNU C library defines this for functions which it implements
1512     to always fail with ENOSYS.  Some functions are actually named
1513     something starting with __ and the normal name is an alias.  */
1514 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
1515 choke me
1516 #else
1517 nanosleep();
1518 #endif
1519
1520 ; return 0; }
1521 EOF
1522 if { (eval echo configure:1523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1523   rm -rf conftest*
1524   eval "ac_cv_func_nanosleep=yes"
1525 else
1526   echo "configure: failed program was:" >&5
1527   cat conftest.$ac_ext >&5
1528   rm -rf conftest*
1529   eval "ac_cv_func_nanosleep=no"
1530 fi
1531 rm -f conftest*
1532 fi
1533
1534 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
1535   echo "$ac_t""yes" 1>&6
1536   :
1537 else
1538   echo "$ac_t""no" 1>&6
1539 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
1540 echo "configure:1541: checking for nanosleep in -lrt" >&5
1541 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
1542 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1543   echo $ac_n "(cached) $ac_c" 1>&6
1544 else
1545   ac_save_LIBS="$LIBS"
1546 LIBS="-lrt  $LIBS"
1547 cat > conftest.$ac_ext <<EOF
1548 #line 1549 "configure"
1549 #include "confdefs.h"
1550 /* Override any gcc2 internal prototype to avoid an error.  */
1551 /* We use char because int might match the return type of a gcc2
1552     builtin and then its argument prototype would still apply.  */
1553 char nanosleep();
1554
1555 int main() {
1556 nanosleep()
1557 ; return 0; }
1558 EOF
1559 if { (eval echo configure:1560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1560   rm -rf conftest*
1561   eval "ac_cv_lib_$ac_lib_var=yes"
1562 else
1563   echo "configure: failed program was:" >&5
1564   cat conftest.$ac_ext >&5
1565   rm -rf conftest*
1566   eval "ac_cv_lib_$ac_lib_var=no"
1567 fi
1568 rm -f conftest*
1569 LIBS="$ac_save_LIBS"
1570
1571 fi
1572 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1573   echo "$ac_t""yes" 1>&6
1574     ac_tr_lib=HAVE_LIB`echo rt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1575     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1576   cat >> confdefs.h <<EOF
1577 #define $ac_tr_lib 1
1578 EOF
1579
1580   LIBS="-lrt $LIBS"
1581
1582 else
1583   echo "$ac_t""no" 1>&6
1584 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
1585 echo "configure:1586: checking for nanosleep in -lposix4" >&5
1586 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
1587 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1588   echo $ac_n "(cached) $ac_c" 1>&6
1589 else
1590   ac_save_LIBS="$LIBS"
1591 LIBS="-lposix4  $LIBS"
1592 cat > conftest.$ac_ext <<EOF
1593 #line 1594 "configure"
1594 #include "confdefs.h"
1595 /* Override any gcc2 internal prototype to avoid an error.  */
1596 /* We use char because int might match the return type of a gcc2
1597     builtin and then its argument prototype would still apply.  */
1598 char nanosleep();
1599
1600 int main() {
1601 nanosleep()
1602 ; return 0; }
1603 EOF
1604 if { (eval echo configure:1605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1605   rm -rf conftest*
1606   eval "ac_cv_lib_$ac_lib_var=yes"
1607 else
1608   echo "configure: failed program was:" >&5
1609   cat conftest.$ac_ext >&5
1610   rm -rf conftest*
1611   eval "ac_cv_lib_$ac_lib_var=no"
1612 fi
1613 rm -f conftest*
1614 LIBS="$ac_save_LIBS"
1615
1616 fi
1617 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1618   echo "$ac_t""yes" 1>&6
1619     ac_tr_lib=HAVE_LIB`echo posix4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1620     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1621   cat >> confdefs.h <<EOF
1622 #define $ac_tr_lib 1
1623 EOF
1624
1625   LIBS="-lposix4 $LIBS"
1626
1627 else
1628   echo "$ac_t""no" 1>&6
1629 fi
1630
1631 fi
1632
1633 fi
1634
1635 for ac_func in usleep
1636 do
1637 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1638 echo "configure:1639: checking for $ac_func" >&5
1639 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1640   echo $ac_n "(cached) $ac_c" 1>&6
1641 else
1642   cat > conftest.$ac_ext <<EOF
1643 #line 1644 "configure"
1644 #include "confdefs.h"
1645 /* System header to define __stub macros and hopefully few prototypes,
1646     which can conflict with char $ac_func(); below.  */
1647 #include <assert.h>
1648 /* Override any gcc2 internal prototype to avoid an error.  */
1649 /* We use char because int might match the return type of a gcc2
1650     builtin and then its argument prototype would still apply.  */
1651 char $ac_func();
1652
1653 int main() {
1654
1655 /* The GNU C library defines this for functions which it implements
1656     to always fail with ENOSYS.  Some functions are actually named
1657     something starting with __ and the normal name is an alias.  */
1658 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1659 choke me
1660 #else
1661 $ac_func();
1662 #endif
1663
1664 ; return 0; }
1665 EOF
1666 if { (eval echo configure:1667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1667   rm -rf conftest*
1668   eval "ac_cv_func_$ac_func=yes"
1669 else
1670   echo "configure: failed program was:" >&5
1671   cat conftest.$ac_ext >&5
1672   rm -rf conftest*
1673   eval "ac_cv_func_$ac_func=no"
1674 fi
1675 rm -f conftest*
1676 fi
1677
1678 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1679   echo "$ac_t""yes" 1>&6
1680     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1681   cat >> confdefs.h <<EOF
1682 #define $ac_tr_func 1
1683 EOF
1684  
1685 else
1686   echo "$ac_t""no" 1>&6
1687 fi
1688 done
1689
1690 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
1691 echo "configure:1692: checking for inet_aton" >&5
1692 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
1693   echo $ac_n "(cached) $ac_c" 1>&6
1694 else
1695   cat > conftest.$ac_ext <<EOF
1696 #line 1697 "configure"
1697 #include "confdefs.h"
1698 /* System header to define __stub macros and hopefully few prototypes,
1699     which can conflict with char inet_aton(); below.  */
1700 #include <assert.h>
1701 /* Override any gcc2 internal prototype to avoid an error.  */
1702 /* We use char because int might match the return type of a gcc2
1703     builtin and then its argument prototype would still apply.  */
1704 char inet_aton();
1705
1706 int main() {
1707
1708 /* The GNU C library defines this for functions which it implements
1709     to always fail with ENOSYS.  Some functions are actually named
1710     something starting with __ and the normal name is an alias.  */
1711 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
1712 choke me
1713 #else
1714 inet_aton();
1715 #endif
1716
1717 ; return 0; }
1718 EOF
1719 if { (eval echo configure:1720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1720   rm -rf conftest*
1721   eval "ac_cv_func_inet_aton=yes"
1722 else
1723   echo "configure: failed program was:" >&5
1724   cat conftest.$ac_ext >&5
1725   rm -rf conftest*
1726   eval "ac_cv_func_inet_aton=no"
1727 fi
1728 rm -f conftest*
1729 fi
1730
1731 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
1732   echo "$ac_t""yes" 1>&6
1733   :
1734 else
1735   echo "$ac_t""no" 1>&6
1736 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
1737 echo "configure:1738: checking for inet_aton in -lresolv" >&5
1738 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
1739 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1740   echo $ac_n "(cached) $ac_c" 1>&6
1741 else
1742   ac_save_LIBS="$LIBS"
1743 LIBS="-lresolv  $LIBS"
1744 cat > conftest.$ac_ext <<EOF
1745 #line 1746 "configure"
1746 #include "confdefs.h"
1747 /* Override any gcc2 internal prototype to avoid an error.  */
1748 /* We use char because int might match the return type of a gcc2
1749     builtin and then its argument prototype would still apply.  */
1750 char inet_aton();
1751
1752 int main() {
1753 inet_aton()
1754 ; return 0; }
1755 EOF
1756 if { (eval echo configure:1757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1757   rm -rf conftest*
1758   eval "ac_cv_lib_$ac_lib_var=yes"
1759 else
1760   echo "configure: failed program was:" >&5
1761   cat conftest.$ac_ext >&5
1762   rm -rf conftest*
1763   eval "ac_cv_lib_$ac_lib_var=no"
1764 fi
1765 rm -f conftest*
1766 LIBS="$ac_save_LIBS"
1767
1768 fi
1769 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1770   echo "$ac_t""yes" 1>&6
1771     ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1772     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1773   cat >> confdefs.h <<EOF
1774 #define $ac_tr_lib 1
1775 EOF
1776
1777   LIBS="-lresolv $LIBS"
1778
1779 else
1780   echo "$ac_t""no" 1>&6
1781 fi
1782
1783 fi
1784
1785 for ac_func in vasprintf
1786 do
1787 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1788 echo "configure:1789: checking for $ac_func" >&5
1789 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1790   echo $ac_n "(cached) $ac_c" 1>&6
1791 else
1792   cat > conftest.$ac_ext <<EOF
1793 #line 1794 "configure"
1794 #include "confdefs.h"
1795 /* System header to define __stub macros and hopefully few prototypes,
1796     which can conflict with char $ac_func(); below.  */
1797 #include <assert.h>
1798 /* Override any gcc2 internal prototype to avoid an error.  */
1799 /* We use char because int might match the return type of a gcc2
1800     builtin and then its argument prototype would still apply.  */
1801 char $ac_func();
1802
1803 int main() {
1804
1805 /* The GNU C library defines this for functions which it implements
1806     to always fail with ENOSYS.  Some functions are actually named
1807     something starting with __ and the normal name is an alias.  */
1808 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1809 choke me
1810 #else
1811 $ac_func();
1812 #endif
1813
1814 ; return 0; }
1815 EOF
1816 if { (eval echo configure:1817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1817   rm -rf conftest*
1818   eval "ac_cv_func_$ac_func=yes"
1819 else
1820   echo "configure: failed program was:" >&5
1821   cat conftest.$ac_ext >&5
1822   rm -rf conftest*
1823   eval "ac_cv_func_$ac_func=no"
1824 fi
1825 rm -f conftest*
1826 fi
1827
1828 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1829   echo "$ac_t""yes" 1>&6
1830     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1831   cat >> confdefs.h <<EOF
1832 #define $ac_tr_func 1
1833 EOF
1834  
1835 else
1836   echo "$ac_t""no" 1>&6
1837 fi
1838 done
1839
1840 for ac_hdr in unistd.h
1841 do
1842 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1843 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1844 echo "configure:1845: checking for $ac_hdr" >&5
1845 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1846   echo $ac_n "(cached) $ac_c" 1>&6
1847 else
1848   cat > conftest.$ac_ext <<EOF
1849 #line 1850 "configure"
1850 #include "confdefs.h"
1851 #include <$ac_hdr>
1852 EOF
1853 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1854 { (eval echo configure:1855: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1855 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1856 if test -z "$ac_err"; then
1857   rm -rf conftest*
1858   eval "ac_cv_header_$ac_safe=yes"
1859 else
1860   echo "$ac_err" >&5
1861   echo "configure: failed program was:" >&5
1862   cat conftest.$ac_ext >&5
1863   rm -rf conftest*
1864   eval "ac_cv_header_$ac_safe=no"
1865 fi
1866 rm -f conftest*
1867 fi
1868 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1869   echo "$ac_t""yes" 1>&6
1870     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1871   cat >> confdefs.h <<EOF
1872 #define $ac_tr_hdr 1
1873 EOF
1874  
1875 else
1876   echo "$ac_t""no" 1>&6
1877 fi
1878 done
1879
1880 for ac_func in getpagesize
1881 do
1882 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1883 echo "configure:1884: checking for $ac_func" >&5
1884 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1885   echo $ac_n "(cached) $ac_c" 1>&6
1886 else
1887   cat > conftest.$ac_ext <<EOF
1888 #line 1889 "configure"
1889 #include "confdefs.h"
1890 /* System header to define __stub macros and hopefully few prototypes,
1891     which can conflict with char $ac_func(); below.  */
1892 #include <assert.h>
1893 /* Override any gcc2 internal prototype to avoid an error.  */
1894 /* We use char because int might match the return type of a gcc2
1895     builtin and then its argument prototype would still apply.  */
1896 char $ac_func();
1897
1898 int main() {
1899
1900 /* The GNU C library defines this for functions which it implements
1901     to always fail with ENOSYS.  Some functions are actually named
1902     something starting with __ and the normal name is an alias.  */
1903 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1904 choke me
1905 #else
1906 $ac_func();
1907 #endif
1908
1909 ; return 0; }
1910 EOF
1911 if { (eval echo configure:1912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1912   rm -rf conftest*
1913   eval "ac_cv_func_$ac_func=yes"
1914 else
1915   echo "configure: failed program was:" >&5
1916   cat conftest.$ac_ext >&5
1917   rm -rf conftest*
1918   eval "ac_cv_func_$ac_func=no"
1919 fi
1920 rm -f conftest*
1921 fi
1922
1923 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1924   echo "$ac_t""yes" 1>&6
1925     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1926   cat >> confdefs.h <<EOF
1927 #define $ac_tr_func 1
1928 EOF
1929  
1930 else
1931   echo "$ac_t""no" 1>&6
1932 fi
1933 done
1934
1935 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1936 echo "configure:1937: checking for working mmap" >&5
1937 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1938   echo $ac_n "(cached) $ac_c" 1>&6
1939 else
1940   if test "$cross_compiling" = yes; then
1941   ac_cv_func_mmap_fixed_mapped=no
1942 else
1943   cat > conftest.$ac_ext <<EOF
1944 #line 1945 "configure"
1945 #include "confdefs.h"
1946
1947 /* Thanks to Mike Haertel and Jim Avera for this test.
1948    Here is a matrix of mmap possibilities:
1949         mmap private not fixed
1950         mmap private fixed at somewhere currently unmapped
1951         mmap private fixed at somewhere already mapped
1952         mmap shared not fixed
1953         mmap shared fixed at somewhere currently unmapped
1954         mmap shared fixed at somewhere already mapped
1955    For private mappings, we should verify that changes cannot be read()
1956    back from the file, nor mmap's back from the file at a different
1957    address.  (There have been systems where private was not correctly
1958    implemented like the infamous i386 svr4.0, and systems where the
1959    VM page cache was not coherent with the filesystem buffer cache
1960    like early versions of FreeBSD and possibly contemporary NetBSD.)
1961    For shared mappings, we should conversely verify that changes get
1962    propogated back to all the places they're supposed to be.
1963
1964    Grep wants private fixed already mapped.
1965    The main things grep needs to know about mmap are:
1966    * does it exist and is it safe to write into the mmap'd area
1967    * how to use it (BSD variants)  */
1968 #include <sys/types.h>
1969 #include <fcntl.h>
1970 #include <sys/mman.h>
1971
1972 /* This mess was copied from the GNU getpagesize.h.  */
1973 #ifndef HAVE_GETPAGESIZE
1974 # ifdef HAVE_UNISTD_H
1975 #  include <unistd.h>
1976 # endif
1977
1978 /* Assume that all systems that can run configure have sys/param.h.  */
1979 # ifndef HAVE_SYS_PARAM_H
1980 #  define HAVE_SYS_PARAM_H 1
1981 # endif
1982
1983 # ifdef _SC_PAGESIZE
1984 #  define getpagesize() sysconf(_SC_PAGESIZE)
1985 # else /* no _SC_PAGESIZE */
1986 #  ifdef HAVE_SYS_PARAM_H
1987 #   include <sys/param.h>
1988 #   ifdef EXEC_PAGESIZE
1989 #    define getpagesize() EXEC_PAGESIZE
1990 #   else /* no EXEC_PAGESIZE */
1991 #    ifdef NBPG
1992 #     define getpagesize() NBPG * CLSIZE
1993 #     ifndef CLSIZE
1994 #      define CLSIZE 1
1995 #     endif /* no CLSIZE */
1996 #    else /* no NBPG */
1997 #     ifdef NBPC
1998 #      define getpagesize() NBPC
1999 #     else /* no NBPC */
2000 #      ifdef PAGESIZE
2001 #       define getpagesize() PAGESIZE
2002 #      endif /* PAGESIZE */
2003 #     endif /* no NBPC */
2004 #    endif /* no NBPG */
2005 #   endif /* no EXEC_PAGESIZE */
2006 #  else /* no HAVE_SYS_PARAM_H */
2007 #   define getpagesize() 8192   /* punt totally */
2008 #  endif /* no HAVE_SYS_PARAM_H */
2009 # endif /* no _SC_PAGESIZE */
2010
2011 #endif /* no HAVE_GETPAGESIZE */
2012
2013 #ifdef __cplusplus
2014 extern "C" { void *malloc(unsigned); }
2015 #else
2016 char *malloc();
2017 #endif
2018
2019 int
2020 main()
2021 {
2022         char *data, *data2, *data3;
2023         int i, pagesize;
2024         int fd;
2025
2026         pagesize = getpagesize();
2027
2028         /*
2029          * First, make a file with some known garbage in it.
2030          */
2031         data = malloc(pagesize);
2032         if (!data)
2033                 exit(1);
2034         for (i = 0; i < pagesize; ++i)
2035                 *(data + i) = rand();
2036         umask(0);
2037         fd = creat("conftestmmap", 0600);
2038         if (fd < 0)
2039                 exit(1);
2040         if (write(fd, data, pagesize) != pagesize)
2041                 exit(1);
2042         close(fd);
2043
2044         /*
2045          * Next, try to mmap the file at a fixed address which
2046          * already has something else allocated at it.  If we can,
2047          * also make sure that we see the same garbage.
2048          */
2049         fd = open("conftestmmap", O_RDWR);
2050         if (fd < 0)
2051                 exit(1);
2052         data2 = malloc(2 * pagesize);
2053         if (!data2)
2054                 exit(1);
2055         data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2056         if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2057             MAP_PRIVATE | MAP_FIXED, fd, 0L))
2058                 exit(1);
2059         for (i = 0; i < pagesize; ++i)
2060                 if (*(data + i) != *(data2 + i))
2061                         exit(1);
2062
2063         /*
2064          * Finally, make sure that changes to the mapped area
2065          * do not percolate back to the file as seen by read().
2066          * (This is a bug on some variants of i386 svr4.0.)
2067          */
2068         for (i = 0; i < pagesize; ++i)
2069                 *(data2 + i) = *(data2 + i) + 1;
2070         data3 = malloc(pagesize);
2071         if (!data3)
2072                 exit(1);
2073         if (read(fd, data3, pagesize) != pagesize)
2074                 exit(1);
2075         for (i = 0; i < pagesize; ++i)
2076                 if (*(data + i) != *(data3 + i))
2077                         exit(1);
2078         close(fd);
2079         unlink("conftestmmap");
2080         exit(0);
2081 }
2082
2083 EOF
2084 if { (eval echo configure:2085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2085 then
2086   ac_cv_func_mmap_fixed_mapped=yes
2087 else
2088   echo "configure: failed program was:" >&5
2089   cat conftest.$ac_ext >&5
2090   rm -fr conftest*
2091   ac_cv_func_mmap_fixed_mapped=no
2092 fi
2093 rm -fr conftest*
2094 fi
2095
2096 fi
2097
2098 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2099 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2100   cat >> confdefs.h <<\EOF
2101 #define HAVE_MMAP 1
2102 EOF
2103
2104 fi
2105
2106 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2107 echo "configure:2108: checking return type of signal handlers" >&5
2108 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2109   echo $ac_n "(cached) $ac_c" 1>&6
2110 else
2111   cat > conftest.$ac_ext <<EOF
2112 #line 2113 "configure"
2113 #include "confdefs.h"
2114 #include <sys/types.h>
2115 #include <signal.h>
2116 #ifdef signal
2117 #undef signal
2118 #endif
2119 #ifdef __cplusplus
2120 extern "C" void (*signal (int, void (*)(int)))(int);
2121 #else
2122 void (*signal ()) ();
2123 #endif
2124
2125 int main() {
2126 int i;
2127 ; return 0; }
2128 EOF
2129 if { (eval echo configure:2130: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2130   rm -rf conftest*
2131   ac_cv_type_signal=void
2132 else
2133   echo "configure: failed program was:" >&5
2134   cat conftest.$ac_ext >&5
2135   rm -rf conftest*
2136   ac_cv_type_signal=int
2137 fi
2138 rm -f conftest*
2139 fi
2140
2141 echo "$ac_t""$ac_cv_type_signal" 1>&6
2142 cat >> confdefs.h <<EOF
2143 #define RETSIGTYPE $ac_cv_type_signal
2144 EOF
2145
2146
2147 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2148 echo "configure:2149: checking for dlopen in -ldl" >&5
2149 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2150 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2151   echo $ac_n "(cached) $ac_c" 1>&6
2152 else
2153   ac_save_LIBS="$LIBS"
2154 LIBS="-ldl  $LIBS"
2155 cat > conftest.$ac_ext <<EOF
2156 #line 2157 "configure"
2157 #include "confdefs.h"
2158 /* Override any gcc2 internal prototype to avoid an error.  */
2159 /* We use char because int might match the return type of a gcc2
2160     builtin and then its argument prototype would still apply.  */
2161 char dlopen();
2162
2163 int main() {
2164 dlopen()
2165 ; return 0; }
2166 EOF
2167 if { (eval echo configure:2168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2168   rm -rf conftest*
2169   eval "ac_cv_lib_$ac_lib_var=yes"
2170 else
2171   echo "configure: failed program was:" >&5
2172   cat conftest.$ac_ext >&5
2173   rm -rf conftest*
2174   eval "ac_cv_lib_$ac_lib_var=no"
2175 fi
2176 rm -f conftest*
2177 LIBS="$ac_save_LIBS"
2178
2179 fi
2180 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2181   echo "$ac_t""yes" 1>&6
2182     ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2183     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2184   cat >> confdefs.h <<EOF
2185 #define $ac_tr_lib 1
2186 EOF
2187
2188   LIBS="-ldl $LIBS"
2189
2190 else
2191   echo "$ac_t""no" 1>&6
2192 fi
2193
2194 echo $ac_n "checking for optarg in -lgnugetopt""... $ac_c" 1>&6
2195 echo "configure:2196: checking for optarg in -lgnugetopt" >&5
2196 ac_lib_var=`echo gnugetopt'_'optarg | sed 'y%./+-%__p_%'`
2197 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2198   echo $ac_n "(cached) $ac_c" 1>&6
2199 else
2200   ac_save_LIBS="$LIBS"
2201 LIBS="-lgnugetopt  $LIBS"
2202 cat > conftest.$ac_ext <<EOF
2203 #line 2204 "configure"
2204 #include "confdefs.h"
2205 /* Override any gcc2 internal prototype to avoid an error.  */
2206 /* We use char because int might match the return type of a gcc2
2207     builtin and then its argument prototype would still apply.  */
2208 char optarg();
2209
2210 int main() {
2211 optarg()
2212 ; return 0; }
2213 EOF
2214 if { (eval echo configure:2215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2215   rm -rf conftest*
2216   eval "ac_cv_lib_$ac_lib_var=yes"
2217 else
2218   echo "configure: failed program was:" >&5
2219   cat conftest.$ac_ext >&5
2220   rm -rf conftest*
2221   eval "ac_cv_lib_$ac_lib_var=no"
2222 fi
2223 rm -f conftest*
2224 LIBS="$ac_save_LIBS"
2225
2226 fi
2227 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2228   echo "$ac_t""yes" 1>&6
2229     ac_tr_lib=HAVE_LIB`echo gnugetopt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2230     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2231   cat >> confdefs.h <<EOF
2232 #define $ac_tr_lib 1
2233 EOF
2234
2235   LIBS="-lgnugetopt $LIBS"
2236
2237 else
2238   echo "$ac_t""no" 1>&6
2239 fi
2240
2241 echo $ac_n "checking for _ in -lbe""... $ac_c" 1>&6
2242 echo "configure:2243: checking for _ in -lbe" >&5
2243 ac_lib_var=`echo be'_'_ | sed 'y%./+-%__p_%'`
2244 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2245   echo $ac_n "(cached) $ac_c" 1>&6
2246 else
2247   ac_save_LIBS="$LIBS"
2248 LIBS="-lbe  $LIBS"
2249 cat > conftest.$ac_ext <<EOF
2250 #line 2251 "configure"
2251 #include "confdefs.h"
2252 /* Override any gcc2 internal prototype to avoid an error.  */
2253 /* We use char because int might match the return type of a gcc2
2254     builtin and then its argument prototype would still apply.  */
2255 char _();
2256
2257 int main() {
2258 _()
2259 ; return 0; }
2260 EOF
2261 if { (eval echo configure:2262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2262   rm -rf conftest*
2263   eval "ac_cv_lib_$ac_lib_var=yes"
2264 else
2265   echo "configure: failed program was:" >&5
2266   cat conftest.$ac_ext >&5
2267   rm -rf conftest*
2268   eval "ac_cv_lib_$ac_lib_var=no"
2269 fi
2270 rm -f conftest*
2271 LIBS="$ac_save_LIBS"
2272
2273 fi
2274 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2275   echo "$ac_t""yes" 1>&6
2276     ac_tr_lib=HAVE_LIB`echo be | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2277     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2278   cat >> confdefs.h <<EOF
2279 #define $ac_tr_lib 1
2280 EOF
2281
2282   LIBS="-lbe $LIBS"
2283
2284 else
2285   echo "$ac_t""no" 1>&6
2286 fi
2287
2288 echo $ac_n "checking for _ in -lgame""... $ac_c" 1>&6
2289 echo "configure:2290: checking for _ in -lgame" >&5
2290 ac_lib_var=`echo game'_'_ | sed 'y%./+-%__p_%'`
2291 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2292   echo $ac_n "(cached) $ac_c" 1>&6
2293 else
2294   ac_save_LIBS="$LIBS"
2295 LIBS="-lgame  $LIBS"
2296 cat > conftest.$ac_ext <<EOF
2297 #line 2298 "configure"
2298 #include "confdefs.h"
2299 /* Override any gcc2 internal prototype to avoid an error.  */
2300 /* We use char because int might match the return type of a gcc2
2301     builtin and then its argument prototype would still apply.  */
2302 char _();
2303
2304 int main() {
2305 _()
2306 ; return 0; }
2307 EOF
2308 if { (eval echo configure:2309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2309   rm -rf conftest*
2310   eval "ac_cv_lib_$ac_lib_var=yes"
2311 else
2312   echo "configure: failed program was:" >&5
2313   cat conftest.$ac_ext >&5
2314   rm -rf conftest*
2315   eval "ac_cv_lib_$ac_lib_var=no"
2316 fi
2317 rm -f conftest*
2318 LIBS="$ac_save_LIBS"
2319
2320 fi
2321 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2322   echo "$ac_t""yes" 1>&6
2323     ac_tr_lib=HAVE_LIB`echo game | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2324     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2325   cat >> confdefs.h <<EOF
2326 #define $ac_tr_lib 1
2327 EOF
2328
2329   LIBS="-lgame $LIBS"
2330
2331 else
2332   echo "$ac_t""no" 1>&6
2333 fi
2334
2335 echo $ac_n "checking for _ in -lroot""... $ac_c" 1>&6
2336 echo "configure:2337: checking for _ in -lroot" >&5
2337 ac_lib_var=`echo root'_'_ | sed 'y%./+-%__p_%'`
2338 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2339   echo $ac_n "(cached) $ac_c" 1>&6
2340 else
2341   ac_save_LIBS="$LIBS"
2342 LIBS="-lroot  $LIBS"
2343 cat > conftest.$ac_ext <<EOF
2344 #line 2345 "configure"
2345 #include "confdefs.h"
2346 /* Override any gcc2 internal prototype to avoid an error.  */
2347 /* We use char because int might match the return type of a gcc2
2348     builtin and then its argument prototype would still apply.  */
2349 char _();
2350
2351 int main() {
2352 _()
2353 ; return 0; }
2354 EOF
2355 if { (eval echo configure:2356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2356   rm -rf conftest*
2357   eval "ac_cv_lib_$ac_lib_var=yes"
2358 else
2359   echo "configure: failed program was:" >&5
2360   cat conftest.$ac_ext >&5
2361   rm -rf conftest*
2362   eval "ac_cv_lib_$ac_lib_var=no"
2363 fi
2364 rm -f conftest*
2365 LIBS="$ac_save_LIBS"
2366
2367 fi
2368 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2369   echo "$ac_t""yes" 1>&6
2370     ac_tr_lib=HAVE_LIB`echo root | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2371     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2372   cat >> confdefs.h <<EOF
2373 #define $ac_tr_lib 1
2374 EOF
2375
2376   LIBS="-lroot $LIBS"
2377
2378 else
2379   echo "$ac_t""no" 1>&6
2380 fi
2381
2382 echo $ac_n "checking for powl in -lm""... $ac_c" 1>&6
2383 echo "configure:2384: checking for powl in -lm" >&5
2384 ac_lib_var=`echo m'_'powl | sed 'y%./+-%__p_%'`
2385 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2386   echo $ac_n "(cached) $ac_c" 1>&6
2387 else
2388   ac_save_LIBS="$LIBS"
2389 LIBS="-lm  $LIBS"
2390 cat > conftest.$ac_ext <<EOF
2391 #line 2392 "configure"
2392 #include "confdefs.h"
2393 /* Override any gcc2 internal prototype to avoid an error.  */
2394 /* We use char because int might match the return type of a gcc2
2395     builtin and then its argument prototype would still apply.  */
2396 char powl();
2397
2398 int main() {
2399 powl()
2400 ; return 0; }
2401 EOF
2402 if { (eval echo configure:2403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2403   rm -rf conftest*
2404   eval "ac_cv_lib_$ac_lib_var=yes"
2405 else
2406   echo "configure: failed program was:" >&5
2407   cat conftest.$ac_ext >&5
2408   rm -rf conftest*
2409   eval "ac_cv_lib_$ac_lib_var=no"
2410 fi
2411 rm -f conftest*
2412 LIBS="$ac_save_LIBS"
2413
2414 fi
2415 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2416   echo "$ac_t""yes" 1>&6
2417     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2418     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2419   cat >> confdefs.h <<EOF
2420 #define $ac_tr_lib 1
2421 EOF
2422
2423   LIBS="-lm $LIBS"
2424
2425 else
2426   echo "$ac_t""no" 1>&6
2427 fi
2428
2429 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
2430 echo "configure:2431: checking for pthread_create in -lpthread" >&5
2431 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
2432 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2433   echo $ac_n "(cached) $ac_c" 1>&6
2434 else
2435   ac_save_LIBS="$LIBS"
2436 LIBS="-lpthread  $LIBS"
2437 cat > conftest.$ac_ext <<EOF
2438 #line 2439 "configure"
2439 #include "confdefs.h"
2440 /* Override any gcc2 internal prototype to avoid an error.  */
2441 /* We use char because int might match the return type of a gcc2
2442     builtin and then its argument prototype would still apply.  */
2443 char pthread_create();
2444
2445 int main() {
2446 pthread_create()
2447 ; return 0; }
2448 EOF
2449 if { (eval echo configure:2450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2450   rm -rf conftest*
2451   eval "ac_cv_lib_$ac_lib_var=yes"
2452 else
2453   echo "configure: failed program was:" >&5
2454   cat conftest.$ac_ext >&5
2455   rm -rf conftest*
2456   eval "ac_cv_lib_$ac_lib_var=no"
2457 fi
2458 rm -f conftest*
2459 LIBS="$ac_save_LIBS"
2460
2461 fi
2462 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2463   echo "$ac_t""yes" 1>&6
2464     ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2465     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2466   cat >> confdefs.h <<EOF
2467 #define $ac_tr_lib 1
2468 EOF
2469
2470   LIBS="-lpthread $LIBS"
2471
2472 else
2473   echo "$ac_t""no" 1>&6
2474 fi
2475
2476 echo $ac_n "checking for thread_create in -lthreads""... $ac_c" 1>&6
2477 echo "configure:2478: checking for thread_create in -lthreads" >&5
2478 ac_lib_var=`echo threads'_'thread_create | sed 'y%./+-%__p_%'`
2479 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2480   echo $ac_n "(cached) $ac_c" 1>&6
2481 else
2482   ac_save_LIBS="$LIBS"
2483 LIBS="-lthreads  $LIBS"
2484 cat > conftest.$ac_ext <<EOF
2485 #line 2486 "configure"
2486 #include "confdefs.h"
2487 /* Override any gcc2 internal prototype to avoid an error.  */
2488 /* We use char because int might match the return type of a gcc2
2489     builtin and then its argument prototype would still apply.  */
2490 char thread_create();
2491
2492 int main() {
2493 thread_create()
2494 ; return 0; }
2495 EOF
2496 if { (eval echo configure:2497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2497   rm -rf conftest*
2498   eval "ac_cv_lib_$ac_lib_var=yes"
2499 else
2500   echo "configure: failed program was:" >&5
2501   cat conftest.$ac_ext >&5
2502   rm -rf conftest*
2503   eval "ac_cv_lib_$ac_lib_var=no"
2504 fi
2505 rm -f conftest*
2506 LIBS="$ac_save_LIBS"
2507
2508 fi
2509 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2510   echo "$ac_t""yes" 1>&6
2511     ac_tr_lib=HAVE_LIB`echo threads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2512     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2513   cat >> confdefs.h <<EOF
2514 #define $ac_tr_lib 1
2515 EOF
2516
2517   LIBS="-lthreads $LIBS"
2518
2519 else
2520   echo "$ac_t""no" 1>&6
2521 fi
2522
2523
2524 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
2525 echo "configure:2526: checking for getopt_long" >&5
2526 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
2527   echo $ac_n "(cached) $ac_c" 1>&6
2528 else
2529   cat > conftest.$ac_ext <<EOF
2530 #line 2531 "configure"
2531 #include "confdefs.h"
2532 /* System header to define __stub macros and hopefully few prototypes,
2533     which can conflict with char getopt_long(); below.  */
2534 #include <assert.h>
2535 /* Override any gcc2 internal prototype to avoid an error.  */
2536 /* We use char because int might match the return type of a gcc2
2537     builtin and then its argument prototype would still apply.  */
2538 char getopt_long();
2539
2540 int main() {
2541
2542 /* The GNU C library defines this for functions which it implements
2543     to always fail with ENOSYS.  Some functions are actually named
2544     something starting with __ and the normal name is an alias.  */
2545 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
2546 choke me
2547 #else
2548 getopt_long();
2549 #endif
2550
2551 ; return 0; }
2552 EOF
2553 if { (eval echo configure:2554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2554   rm -rf conftest*
2555   eval "ac_cv_func_getopt_long=yes"
2556 else
2557   echo "configure: failed program was:" >&5
2558   cat conftest.$ac_ext >&5
2559   rm -rf conftest*
2560   eval "ac_cv_func_getopt_long=no"
2561 fi
2562 rm -f conftest*
2563 fi
2564
2565 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
2566   echo "$ac_t""yes" 1>&6
2567   :
2568 else
2569   echo "$ac_t""no" 1>&6
2570 LIBOBJS="$LIBOBJS getopt.o getopt1.o"
2571 fi
2572
2573
2574
2575 CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
2576 for ac_hdr in stddef.h
2577 do
2578 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2579 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2580 echo "configure:2581: checking for $ac_hdr" >&5
2581 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2582   echo $ac_n "(cached) $ac_c" 1>&6
2583 else
2584   cat > conftest.$ac_ext <<EOF
2585 #line 2586 "configure"
2586 #include "confdefs.h"
2587 #include <$ac_hdr>
2588 EOF
2589 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2590 { (eval echo configure:2591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2591 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2592 if test -z "$ac_err"; then
2593   rm -rf conftest*
2594   eval "ac_cv_header_$ac_safe=yes"
2595 else
2596   echo "$ac_err" >&5
2597   echo "configure: failed program was:" >&5
2598   cat conftest.$ac_ext >&5
2599   rm -rf conftest*
2600   eval "ac_cv_header_$ac_safe=no"
2601 fi
2602 rm -f conftest*
2603 fi
2604 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2605   echo "$ac_t""yes" 1>&6
2606     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2607   cat >> confdefs.h <<EOF
2608 #define $ac_tr_hdr 1
2609 EOF
2610  
2611 else
2612   echo "$ac_t""no" 1>&6
2613 fi
2614 done
2615
2616 for ac_hdr in getopt.h
2617 do
2618 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2619 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2620 echo "configure:2621: checking for $ac_hdr" >&5
2621 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2622   echo $ac_n "(cached) $ac_c" 1>&6
2623 else
2624   cat > conftest.$ac_ext <<EOF
2625 #line 2626 "configure"
2626 #include "confdefs.h"
2627 #include <$ac_hdr>
2628 EOF
2629 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2630 { (eval echo configure:2631: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2631 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2632 if test -z "$ac_err"; then
2633   rm -rf conftest*
2634   eval "ac_cv_header_$ac_safe=yes"
2635 else
2636   echo "$ac_err" >&5
2637   echo "configure: failed program was:" >&5
2638   cat conftest.$ac_ext >&5
2639   rm -rf conftest*
2640   eval "ac_cv_header_$ac_safe=no"
2641 fi
2642 rm -f conftest*
2643 fi
2644 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2645   echo "$ac_t""yes" 1>&6
2646     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2647   cat >> confdefs.h <<EOF
2648 #define $ac_tr_hdr 1
2649 EOF
2650  
2651 else
2652   echo "$ac_t""no" 1>&6
2653 fi
2654 done
2655
2656 for ac_hdr in sys/sockio.h
2657 do
2658 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2659 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2660 echo "configure:2661: checking for $ac_hdr" >&5
2661 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2662   echo $ac_n "(cached) $ac_c" 1>&6
2663 else
2664   cat > conftest.$ac_ext <<EOF
2665 #line 2666 "configure"
2666 #include "confdefs.h"
2667 #include <$ac_hdr>
2668 EOF
2669 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2670 { (eval echo configure:2671: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2671 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2672 if test -z "$ac_err"; then
2673   rm -rf conftest*
2674   eval "ac_cv_header_$ac_safe=yes"
2675 else
2676   echo "$ac_err" >&5
2677   echo "configure: failed program was:" >&5
2678   cat conftest.$ac_ext >&5
2679   rm -rf conftest*
2680   eval "ac_cv_header_$ac_safe=no"
2681 fi
2682 rm -f conftest*
2683 fi
2684 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2685   echo "$ac_t""yes" 1>&6
2686     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2687   cat >> confdefs.h <<EOF
2688 #define $ac_tr_hdr 1
2689 EOF
2690  
2691 else
2692   echo "$ac_t""no" 1>&6
2693 fi
2694 done
2695
2696 for ac_hdr in fcntl.h sys/time.h unistd.h
2697 do
2698 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2699 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2700 echo "configure:2701: checking for $ac_hdr" >&5
2701 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2702   echo $ac_n "(cached) $ac_c" 1>&6
2703 else
2704   cat > conftest.$ac_ext <<EOF
2705 #line 2706 "configure"
2706 #include "confdefs.h"
2707 #include <$ac_hdr>
2708 EOF
2709 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2710 { (eval echo configure:2711: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2711 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2712 if test -z "$ac_err"; then
2713   rm -rf conftest*
2714   eval "ac_cv_header_$ac_safe=yes"
2715 else
2716   echo "$ac_err" >&5
2717   echo "configure: failed program was:" >&5
2718   cat conftest.$ac_ext >&5
2719   rm -rf conftest*
2720   eval "ac_cv_header_$ac_safe=no"
2721 fi
2722 rm -f conftest*
2723 fi
2724 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2725   echo "$ac_t""yes" 1>&6
2726     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2727   cat >> confdefs.h <<EOF
2728 #define $ac_tr_hdr 1
2729 EOF
2730  
2731 else
2732   echo "$ac_t""no" 1>&6
2733 fi
2734 done
2735
2736 for ac_hdr in sys/soundcard.h machine/soundcard.h
2737 do
2738 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2739 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2740 echo "configure:2741: checking for $ac_hdr" >&5
2741 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2742   echo $ac_n "(cached) $ac_c" 1>&6
2743 else
2744   cat > conftest.$ac_ext <<EOF
2745 #line 2746 "configure"
2746 #include "confdefs.h"
2747 #include <$ac_hdr>
2748 EOF
2749 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2750 { (eval echo configure:2751: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2751 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2752 if test -z "$ac_err"; then
2753   rm -rf conftest*
2754   eval "ac_cv_header_$ac_safe=yes"
2755 else
2756   echo "$ac_err" >&5
2757   echo "configure: failed program was:" >&5
2758   cat conftest.$ac_ext >&5
2759   rm -rf conftest*
2760   eval "ac_cv_header_$ac_safe=no"
2761 fi
2762 rm -f conftest*
2763 fi
2764 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2765   echo "$ac_t""yes" 1>&6
2766     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2767   cat >> confdefs.h <<EOF
2768 #define $ac_tr_hdr 1
2769 EOF
2770  
2771 else
2772   echo "$ac_t""no" 1>&6
2773 fi
2774 done
2775
2776 for ac_hdr in dlfcn.h image.h
2777 do
2778 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2779 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2780 echo "configure:2781: checking for $ac_hdr" >&5
2781 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2782   echo $ac_n "(cached) $ac_c" 1>&6
2783 else
2784   cat > conftest.$ac_ext <<EOF
2785 #line 2786 "configure"
2786 #include "confdefs.h"
2787 #include <$ac_hdr>
2788 EOF
2789 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2790 { (eval echo configure:2791: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2791 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2792 if test -z "$ac_err"; then
2793   rm -rf conftest*
2794   eval "ac_cv_header_$ac_safe=yes"
2795 else
2796   echo "$ac_err" >&5
2797   echo "configure: failed program was:" >&5
2798   cat conftest.$ac_ext >&5
2799   rm -rf conftest*
2800   eval "ac_cv_header_$ac_safe=no"
2801 fi
2802 rm -f conftest*
2803 fi
2804 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2805   echo "$ac_t""yes" 1>&6
2806     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2807   cat >> confdefs.h <<EOF
2808 #define $ac_tr_hdr 1
2809 EOF
2810  
2811 else
2812   echo "$ac_t""no" 1>&6
2813 fi
2814 done
2815
2816 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
2817 do
2818 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2819 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2820 echo "configure:2821: checking for $ac_hdr" >&5
2821 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2822   echo $ac_n "(cached) $ac_c" 1>&6
2823 else
2824   cat > conftest.$ac_ext <<EOF
2825 #line 2826 "configure"
2826 #include "confdefs.h"
2827 #include <$ac_hdr>
2828 EOF
2829 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2830 { (eval echo configure:2831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2831 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2832 if test -z "$ac_err"; then
2833   rm -rf conftest*
2834   eval "ac_cv_header_$ac_safe=yes"
2835 else
2836   echo "$ac_err" >&5
2837   echo "configure: failed program was:" >&5
2838   cat conftest.$ac_ext >&5
2839   rm -rf conftest*
2840   eval "ac_cv_header_$ac_safe=no"
2841 fi
2842 rm -f conftest*
2843 fi
2844 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2845   echo "$ac_t""yes" 1>&6
2846     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2847   cat >> confdefs.h <<EOF
2848 #define $ac_tr_hdr 1
2849 EOF
2850  
2851 else
2852   echo "$ac_t""no" 1>&6
2853 fi
2854 done
2855
2856 for ac_hdr in machine/param.h
2857 do
2858 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2859 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2860 echo "configure:2861: checking for $ac_hdr" >&5
2861 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2862   echo $ac_n "(cached) $ac_c" 1>&6
2863 else
2864   cat > conftest.$ac_ext <<EOF
2865 #line 2866 "configure"
2866 #include "confdefs.h"
2867 #include <$ac_hdr>
2868 EOF
2869 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2870 { (eval echo configure:2871: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2871 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2872 if test -z "$ac_err"; then
2873   rm -rf conftest*
2874   eval "ac_cv_header_$ac_safe=yes"
2875 else
2876   echo "$ac_err" >&5
2877   echo "configure: failed program was:" >&5
2878   cat conftest.$ac_ext >&5
2879   rm -rf conftest*
2880   eval "ac_cv_header_$ac_safe=no"
2881 fi
2882 rm -f conftest*
2883 fi
2884 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2885   echo "$ac_t""yes" 1>&6
2886     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2887   cat >> confdefs.h <<EOF
2888 #define $ac_tr_hdr 1
2889 EOF
2890  
2891 else
2892   echo "$ac_t""no" 1>&6
2893 fi
2894 done
2895
2896
2897 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
2898 do
2899 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2900 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2901 echo "configure:2902: checking for $ac_hdr" >&5
2902 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2903   echo $ac_n "(cached) $ac_c" 1>&6
2904 else
2905   cat > conftest.$ac_ext <<EOF
2906 #line 2907 "configure"
2907 #include "confdefs.h"
2908 #include <$ac_hdr>
2909 EOF
2910 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2911 { (eval echo configure:2912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2912 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2913 if test -z "$ac_err"; then
2914   rm -rf conftest*
2915   eval "ac_cv_header_$ac_safe=yes"
2916 else
2917   echo "$ac_err" >&5
2918   echo "configure: failed program was:" >&5
2919   cat conftest.$ac_ext >&5
2920   rm -rf conftest*
2921   eval "ac_cv_header_$ac_safe=no"
2922 fi
2923 rm -f conftest*
2924 fi
2925 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2926   echo "$ac_t""yes" 1>&6
2927     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2928   cat >> confdefs.h <<EOF
2929 #define $ac_tr_hdr 1
2930 EOF
2931  
2932 else
2933   echo "$ac_t""no" 1>&6
2934 fi
2935 done
2936
2937
2938 save_CFLAGS=$CFLAGS
2939
2940 CFLAGS="${CFLAGS} -Wall -Werror"
2941 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
2942 echo "configure:2943: checking for ntohl in sys/param.h" >&5
2943 cat > conftest.$ac_ext <<EOF
2944 #line 2945 "configure"
2945 #include "confdefs.h"
2946 #include <sys/param.h>
2947 void foo() { int meuh; ntohl(meuh); }
2948 int main() {
2949
2950 ; return 0; }
2951 EOF
2952 if { (eval echo configure:2953: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2953   rm -rf conftest*
2954   cat >> confdefs.h <<\EOF
2955 #define NTOHL_IN_SYS_PARAM_H 1
2956 EOF
2957
2958  echo "$ac_t""yes" 1>&6
2959 else
2960   echo "configure: failed program was:" >&5
2961   cat conftest.$ac_ext >&5
2962   rm -rf conftest*
2963   echo "$ac_t""no" 1>&6
2964 fi
2965 rm -f conftest*
2966
2967 CFLAGS="${CFLAGS} -rdynamic -Wall -Werror"
2968 echo $ac_n "checking if \$CC accepts -rdynamic""... $ac_c" 1>&6
2969 echo "configure:2970: checking if \$CC accepts -rdynamic" >&5
2970 cat > conftest.$ac_ext <<EOF
2971 #line 2972 "configure"
2972 #include "confdefs.h"
2973
2974 int main() {
2975
2976 ; return 0; }
2977 EOF
2978 if { (eval echo configure:2979: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2979   rm -rf conftest*
2980   DYNAMIC_FLAG="-rdynamic"
2981  echo "$ac_t""yes" 1>&6
2982 else
2983   echo "configure: failed program was:" >&5
2984   cat conftest.$ac_ext >&5
2985   rm -rf conftest*
2986   echo "$ac_t""no" 1>&6
2987 fi
2988 rm -f conftest*
2989
2990 CFLAGS=$save_CFLAGS
2991
2992 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
2993 echo "configure:2994: checking for boolean_t in sys/types.h" >&5
2994 cat > conftest.$ac_ext <<EOF
2995 #line 2996 "configure"
2996 #include "confdefs.h"
2997 #include <sys/types.h>
2998 void quux() { boolean_t foo; }
2999 int main() {
3000
3001 ; return 0; }
3002 EOF
3003 if { (eval echo configure:3004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3004   rm -rf conftest*
3005   cat >> confdefs.h <<\EOF
3006 #define BOOLEAN_T_IN_SYS_TYPES_H 1
3007 EOF
3008
3009  echo "$ac_t""yes" 1>&6
3010 else
3011   echo "configure: failed program was:" >&5
3012   cat conftest.$ac_ext >&5
3013   rm -rf conftest*
3014   echo "$ac_t""no" 1>&6
3015 fi
3016 rm -f conftest*
3017 echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
3018 echo "configure:3019: checking for boolean_t in pthread.h" >&5
3019 cat > conftest.$ac_ext <<EOF
3020 #line 3021 "configure"
3021 #include "confdefs.h"
3022 #include <pthread.h>
3023 void quux() { boolean_t foo; }
3024 int main() {
3025
3026 ; return 0; }
3027 EOF
3028 if { (eval echo configure:3029: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3029   rm -rf conftest*
3030   cat >> confdefs.h <<\EOF
3031 #define BOOLEAN_T_IN_PTHREAD_H 1
3032 EOF
3033
3034  echo "$ac_t""yes" 1>&6
3035 else
3036   echo "configure: failed program was:" >&5
3037   cat conftest.$ac_ext >&5
3038   rm -rf conftest*
3039   echo "$ac_t""no" 1>&6
3040 fi
3041 rm -f conftest*
3042
3043 echo $ac_n "checking for working const""... $ac_c" 1>&6
3044 echo "configure:3045: checking for working const" >&5
3045 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3046   echo $ac_n "(cached) $ac_c" 1>&6
3047 else
3048   cat > conftest.$ac_ext <<EOF
3049 #line 3050 "configure"
3050 #include "confdefs.h"
3051
3052 int main() {
3053
3054 /* Ultrix mips cc rejects this.  */
3055 typedef int charset[2]; const charset x;
3056 /* SunOS 4.1.1 cc rejects this.  */
3057 char const *const *ccp;
3058 char **p;
3059 /* NEC SVR4.0.2 mips cc rejects this.  */
3060 struct point {int x, y;};
3061 static struct point const zero = {0,0};
3062 /* AIX XL C 1.02.0.0 rejects this.
3063    It does not let you subtract one const X* pointer from another in an arm
3064    of an if-expression whose if-part is not a constant expression */
3065 const char *g = "string";
3066 ccp = &g + (g ? g-g : 0);
3067 /* HPUX 7.0 cc rejects these. */
3068 ++ccp;
3069 p = (char**) ccp;
3070 ccp = (char const *const *) p;
3071 { /* SCO 3.2v4 cc rejects this.  */
3072   char *t;
3073   char const *s = 0 ? (char *) 0 : (char const *) 0;
3074
3075   *t++ = 0;
3076 }
3077 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3078   int x[] = {25, 17};
3079   const int *foo = &x[0];
3080   ++foo;
3081 }
3082 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3083   typedef const int *iptr;
3084   iptr p = 0;
3085   ++p;
3086 }
3087 { /* AIX XL C 1.02.0.0 rejects this saying
3088      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3089   struct s { int j; const int *ap[3]; };
3090   struct s *b; b->j = 5;
3091 }
3092 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3093   const int foo = 10;
3094 }
3095
3096 ; return 0; }
3097 EOF
3098 if { (eval echo configure:3099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3099   rm -rf conftest*
3100   ac_cv_c_const=yes
3101 else
3102   echo "configure: failed program was:" >&5
3103   cat conftest.$ac_ext >&5
3104   rm -rf conftest*
3105   ac_cv_c_const=no
3106 fi
3107 rm -f conftest*
3108 fi
3109
3110 echo "$ac_t""$ac_cv_c_const" 1>&6
3111 if test $ac_cv_c_const = no; then
3112   cat >> confdefs.h <<\EOF
3113 #define const 
3114 EOF
3115
3116 fi
3117
3118 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3119 echo "configure:3120: checking for ANSI C header files" >&5
3120 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3121   echo $ac_n "(cached) $ac_c" 1>&6
3122 else
3123   cat > conftest.$ac_ext <<EOF
3124 #line 3125 "configure"
3125 #include "confdefs.h"
3126 #include <stdlib.h>
3127 #include <stdarg.h>
3128 #include <string.h>
3129 #include <float.h>
3130 EOF
3131 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3132 { (eval echo configure:3133: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3133 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3134 if test -z "$ac_err"; then
3135   rm -rf conftest*
3136   ac_cv_header_stdc=yes
3137 else
3138   echo "$ac_err" >&5
3139   echo "configure: failed program was:" >&5
3140   cat conftest.$ac_ext >&5
3141   rm -rf conftest*
3142   ac_cv_header_stdc=no
3143 fi
3144 rm -f conftest*
3145
3146 if test $ac_cv_header_stdc = yes; then
3147   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3148 cat > conftest.$ac_ext <<EOF
3149 #line 3150 "configure"
3150 #include "confdefs.h"
3151 #include <string.h>
3152 EOF
3153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3154   egrep "memchr" >/dev/null 2>&1; then
3155   :
3156 else
3157   rm -rf conftest*
3158   ac_cv_header_stdc=no
3159 fi
3160 rm -f conftest*
3161
3162 fi
3163
3164 if test $ac_cv_header_stdc = yes; then
3165   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3166 cat > conftest.$ac_ext <<EOF
3167 #line 3168 "configure"
3168 #include "confdefs.h"
3169 #include <stdlib.h>
3170 EOF
3171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3172   egrep "free" >/dev/null 2>&1; then
3173   :
3174 else
3175   rm -rf conftest*
3176   ac_cv_header_stdc=no
3177 fi
3178 rm -f conftest*
3179
3180 fi
3181
3182 if test $ac_cv_header_stdc = yes; then
3183   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3184 if test "$cross_compiling" = yes; then
3185   :
3186 else
3187   cat > conftest.$ac_ext <<EOF
3188 #line 3189 "configure"
3189 #include "confdefs.h"
3190 #include <ctype.h>
3191 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3192 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3193 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3194 int main () { int i; for (i = 0; i < 256; i++)
3195 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3196 exit (0); }
3197
3198 EOF
3199 if { (eval echo configure:3200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3200 then
3201   :
3202 else
3203   echo "configure: failed program was:" >&5
3204   cat conftest.$ac_ext >&5
3205   rm -fr conftest*
3206   ac_cv_header_stdc=no
3207 fi
3208 rm -fr conftest*
3209 fi
3210
3211 fi
3212 fi
3213
3214 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3215 if test $ac_cv_header_stdc = yes; then
3216   cat >> confdefs.h <<\EOF
3217 #define STDC_HEADERS 1
3218 EOF
3219
3220 fi
3221
3222 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3223 echo "configure:3224: checking for size_t" >&5
3224 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3225   echo $ac_n "(cached) $ac_c" 1>&6
3226 else
3227   cat > conftest.$ac_ext <<EOF
3228 #line 3229 "configure"
3229 #include "confdefs.h"
3230 #include <sys/types.h>
3231 #if STDC_HEADERS
3232 #include <stdlib.h>
3233 #include <stddef.h>
3234 #endif
3235 EOF
3236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3237   egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3238   rm -rf conftest*
3239   ac_cv_type_size_t=yes
3240 else
3241   rm -rf conftest*
3242   ac_cv_type_size_t=no
3243 fi
3244 rm -f conftest*
3245
3246 fi
3247 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3248 if test $ac_cv_type_size_t = no; then
3249   cat >> confdefs.h <<\EOF
3250 #define size_t unsigned
3251 EOF
3252
3253 fi
3254
3255 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3256 echo "configure:3257: checking whether time.h and sys/time.h may both be included" >&5
3257 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3258   echo $ac_n "(cached) $ac_c" 1>&6
3259 else
3260   cat > conftest.$ac_ext <<EOF
3261 #line 3262 "configure"
3262 #include "confdefs.h"
3263 #include <sys/types.h>
3264 #include <sys/time.h>
3265 #include <time.h>
3266 int main() {
3267 struct tm *tp;
3268 ; return 0; }
3269 EOF
3270 if { (eval echo configure:3271: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3271   rm -rf conftest*
3272   ac_cv_header_time=yes
3273 else
3274   echo "configure: failed program was:" >&5
3275   cat conftest.$ac_ext >&5
3276   rm -rf conftest*
3277   ac_cv_header_time=no
3278 fi
3279 rm -f conftest*
3280 fi
3281
3282 echo "$ac_t""$ac_cv_header_time" 1>&6
3283 if test $ac_cv_header_time = yes; then
3284   cat >> confdefs.h <<\EOF
3285 #define TIME_WITH_SYS_TIME 1
3286 EOF
3287
3288 fi
3289
3290
3291 PLUGINS=${PLUGINS}"ps ts yuv idct idctclassic motion "
3292 if test x$host_os = xbeos; then
3293     ACCEL_PLUGINS="yuvmmx idctmmx motionmmx "
3294 else
3295     ACCEL_PLUGINS="yuvmmx idctmmx idctmmxext motionmmx motionmmxext "
3296 fi
3297
3298 for ac_hdr in sys/ioctl.h
3299 do
3300 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3301 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3302 echo "configure:3303: checking for $ac_hdr" >&5
3303 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3304   echo $ac_n "(cached) $ac_c" 1>&6
3305 else
3306   cat > conftest.$ac_ext <<EOF
3307 #line 3308 "configure"
3308 #include "confdefs.h"
3309 #include <$ac_hdr>
3310 EOF
3311 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3312 { (eval echo configure:3313: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3313 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3314 if test -z "$ac_err"; then
3315   rm -rf conftest*
3316   eval "ac_cv_header_$ac_safe=yes"
3317 else
3318   echo "$ac_err" >&5
3319   echo "configure: failed program was:" >&5
3320   cat conftest.$ac_ext >&5
3321   rm -rf conftest*
3322   eval "ac_cv_header_$ac_safe=no"
3323 fi
3324 rm -f conftest*
3325 fi
3326 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3327   echo "$ac_t""yes" 1>&6
3328     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3329   cat >> confdefs.h <<EOF
3330 #define $ac_tr_hdr 1
3331 EOF
3332  PLUGINS=${PLUGINS}"dvd "
3333    for ac_hdr in linux/cdrom.h
3334 do
3335 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3336 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3337 echo "configure:3338: checking for $ac_hdr" >&5
3338 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3339   echo $ac_n "(cached) $ac_c" 1>&6
3340 else
3341   cat > conftest.$ac_ext <<EOF
3342 #line 3343 "configure"
3343 #include "confdefs.h"
3344 #include <$ac_hdr>
3345 EOF
3346 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3347 { (eval echo configure:3348: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3348 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3349 if test -z "$ac_err"; then
3350   rm -rf conftest*
3351   eval "ac_cv_header_$ac_safe=yes"
3352 else
3353   echo "$ac_err" >&5
3354   echo "configure: failed program was:" >&5
3355   cat conftest.$ac_ext >&5
3356   rm -rf conftest*
3357   eval "ac_cv_header_$ac_safe=no"
3358 fi
3359 rm -f conftest*
3360 fi
3361 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3362   echo "$ac_t""yes" 1>&6
3363     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3364   cat >> confdefs.h <<EOF
3365 #define $ac_tr_hdr 1
3366 EOF
3367  
3368 else
3369   echo "$ac_t""no" 1>&6
3370 fi
3371 done
3372
3373    cat > conftest.$ac_ext <<EOF
3374 #line 3375 "configure"
3375 #include "confdefs.h"
3376 #include <linux/cdrom.h>
3377 EOF
3378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3379   egrep "dvd" >/dev/null 2>&1; then
3380   rm -rf conftest*
3381   cat >> confdefs.h <<\EOF
3382 #define LINUX_DVD 1
3383 EOF
3384
3385 fi
3386 rm -f conftest*
3387
3388 else
3389   echo "$ac_t""no" 1>&6
3390 fi
3391 done
3392
3393
3394 ARCH=${host_cpu}
3395 # Check whether --enable-dummy or --disable-dummy was given.
3396 if test "${enable_dummy+set}" = set; then
3397   enableval="$enable_dummy"
3398   :
3399 fi
3400
3401 if test x$enable_dummy != xno; then PLUGINS=${PLUGINS}"dummy "; fi
3402 # Check whether --enable-null or --disable-null was given.
3403 if test "${enable_null+set}" = set; then
3404   enableval="$enable_null"
3405   :
3406 fi
3407
3408 if test x$enable_null != xno; then PLUGINS=${PLUGINS}"null "; fi
3409 # Check whether --enable-ppro or --disable-ppro was given.
3410 if test "${enable_ppro+set}" = set; then
3411   enableval="$enable_ppro"
3412    if test x$enableval = xyes; then ARCH=${ARCH}" ppro"; fi 
3413 else
3414    if test x${host_cpu} = xi686; then ARCH=${ARCH}" ppro"; fi 
3415 fi
3416
3417 # Check whether --enable-mmx or --disable-mmx was given.
3418 if test "${enable_mmx+set}" = set; then
3419   enableval="$enable_mmx"
3420    if test x$enableval = xyes; then ARCH=${ARCH}" mmx"; PLUGINS=${PLUGINS}${ACCEL_PLUGINS}; fi 
3421 else
3422    if test x${host_cpu} = xi686 -o x${host_cpu} = xi586 -o x${host_cpu} = xx86; then ARCH=${ARCH}" mmx"; PLUGINS=${PLUGINS}${ACCEL_PLUGINS}; fi 
3423 fi
3424
3425 # Check whether --enable-altivec or --disable-altivec was given.
3426 if test "${enable_altivec+set}" = set; then
3427   enableval="$enable_altivec"
3428    if test x$enableval = xyes; then ARCH=${ARCH}" altivec"; PLUGINS=${PLUGINS}"idctaltivec "; fi 
3429 else
3430    if test -d /System/Library/Frameworks/vecLib.framework; then ARCH=${ARCH}" altivec"; PLUGINS=${PLUGINS}"idctaltivec "; fi 
3431 fi
3432
3433 # Check whether --enable-css or --disable-css was given.
3434 if test "${enable_css+set}" = set; then
3435   enableval="$enable_css"
3436    if test x$enableval = xyes; then CSS=1; else CSS=0; fi 
3437 else
3438    CSS=1; 
3439 fi
3440
3441 if test x${CSS} = x1; then cat >> confdefs.h <<\EOF
3442 #define HAVE_CSS 1
3443 EOF
3444  fi
3445 # Check whether --enable-debug or --disable-debug was given.
3446 if test "${enable_debug+set}" = set; then
3447   enableval="$enable_debug"
3448    if test x$enableval = xyes; then DEBUG=1; fi 
3449 fi
3450
3451 # Check whether --enable-stats or --disable-stats was given.
3452 if test "${enable_stats+set}" = set; then
3453   enableval="$enable_stats"
3454    if test x$enableval = xyes; then STATS=1; fi 
3455 fi
3456
3457 # Check whether --enable-optimizations or --disable-optimizations was given.
3458 if test "${enable_optimizations+set}" = set; then
3459   enableval="$enable_optimizations"
3460    if test x$enableval = xno; then OPTIMS=0; fi 
3461 else
3462    OPTIMS=1 
3463 fi
3464
3465
3466 SYS=${host_os}
3467
3468 # special cases
3469 if test x$host_os = xbeos; then
3470     PLUGINS=${PLUGINS}"beos "
3471
3472 else
3473
3474 GVLC=0
3475
3476 # Check whether --enable-dsp or --disable-dsp was given.
3477 if test "${enable_dsp+set}" = set; then
3478   enableval="$enable_dsp"
3479   :
3480 fi
3481
3482 if test x$enable_dsp != xno; then
3483   if test -c /dev/dsp; then
3484     PLUGINS=${PLUGINS}"dsp "
3485   fi
3486 fi
3487 # Check whether --enable-esd or --disable-esd was given.
3488 if test "${enable_esd+set}" = set; then
3489   enableval="$enable_esd"
3490   if test x$enable_esd = xyes; then PLUGINS=${PLUGINS}"esd "; fi
3491 fi
3492
3493 # Check whether --enable-darwin or --disable-darwin was given.
3494 if test "${enable_darwin+set}" = set; then
3495   enableval="$enable_darwin"
3496   if test x$enable_darwin = xyes; then PLUGINS=${PLUGINS}"darwin "; fi
3497 else
3498   for ac_hdr in CoreAudio/AudioHardware.h
3499 do
3500 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3501 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3502 echo "configure:3503: checking for $ac_hdr" >&5
3503 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3504   echo $ac_n "(cached) $ac_c" 1>&6
3505 else
3506   cat > conftest.$ac_ext <<EOF
3507 #line 3508 "configure"
3508 #include "confdefs.h"
3509 #include <$ac_hdr>
3510 EOF
3511 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3512 { (eval echo configure:3513: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3513 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3514 if test -z "$ac_err"; then
3515   rm -rf conftest*
3516   eval "ac_cv_header_$ac_safe=yes"
3517 else
3518   echo "$ac_err" >&5
3519   echo "configure: failed program was:" >&5
3520   cat conftest.$ac_ext >&5
3521   rm -rf conftest*
3522   eval "ac_cv_header_$ac_safe=no"
3523 fi
3524 rm -f conftest*
3525 fi
3526 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3527   echo "$ac_t""yes" 1>&6
3528     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3529   cat >> confdefs.h <<EOF
3530 #define $ac_tr_hdr 1
3531 EOF
3532  PLUGINS=${PLUGINS}"darwin "
3533 else
3534   echo "$ac_t""no" 1>&6
3535 fi
3536 done
3537
3538 fi
3539
3540 # Check whether --enable-macosx or --disable-macosx was given.
3541 if test "${enable_macosx+set}" = set; then
3542   enableval="$enable_macosx"
3543   if test x$enable_macosx = xyes; then PLUGINS=${PLUGINS}"macosx "; fi
3544 fi
3545
3546 # Check whether --enable-fb or --disable-fb was given.
3547 if test "${enable_fb+set}" = set; then
3548   enableval="$enable_fb"
3549   if test x$enable_fb = xyes; then PLUGINS=${PLUGINS}"fb "; fi
3550 fi
3551
3552 # Check whether --with-ggi or --without-ggi was given.
3553 if test "${with_ggi+set}" = set; then
3554   withval="$with_ggi"
3555    if test "x$withval" != "xno";
3556     then
3557       PLUGINS=${PLUGINS}"ggi ";
3558       if test "x$withval" != "xyes";
3559       then
3560         LIB_GGI="-l"$withval
3561       else
3562         LIB_GGI="-lggi"
3563       fi
3564     fi 
3565 fi
3566
3567 # Check whether --with-sdl or --without-sdl was given.
3568 if test "${with_sdl+set}" = set; then
3569   withval="$with_sdl"
3570    if test "x$withval" != "xno";
3571     then
3572       PLUGINS=${PLUGINS}"sdl ";
3573       if test "x$withval" != "xyes";
3574       then
3575         LIB_SDL="-L/usr/X11R6/lib -L"$withval"/lib -l"$withval
3576         INCLUDE=${INCLUDE}" -I"$withval"/include"
3577       else
3578         for ac_hdr in SDL/SDL.h
3579 do
3580 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3581 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3582 echo "configure:3583: checking for $ac_hdr" >&5
3583 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3584   echo $ac_n "(cached) $ac_c" 1>&6
3585 else
3586   cat > conftest.$ac_ext <<EOF
3587 #line 3588 "configure"
3588 #include "confdefs.h"
3589 #include <$ac_hdr>
3590 EOF
3591 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3592 { (eval echo configure:3593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3593 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3594 if test -z "$ac_err"; then
3595   rm -rf conftest*
3596   eval "ac_cv_header_$ac_safe=yes"
3597 else
3598   echo "$ac_err" >&5
3599   echo "configure: failed program was:" >&5
3600   cat conftest.$ac_ext >&5
3601   rm -rf conftest*
3602   eval "ac_cv_header_$ac_safe=no"
3603 fi
3604 rm -f conftest*
3605 fi
3606 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3607   echo "$ac_t""yes" 1>&6
3608     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3609   cat >> confdefs.h <<EOF
3610 #define $ac_tr_hdr 1
3611 EOF
3612  
3613 else
3614   echo "$ac_t""no" 1>&6
3615 echo "Cannot find SDL headers !"; exit
3616 fi
3617 done
3618
3619         LIB_SDL="-L/usr/X11R6/lib -lSDL"
3620       fi
3621     fi 
3622 fi
3623
3624     if test "x$withval" = "x";
3625     then
3626       for ac_hdr in SDL/SDL.h
3627 do
3628 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3629 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3630 echo "configure:3631: checking for $ac_hdr" >&5
3631 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3632   echo $ac_n "(cached) $ac_c" 1>&6
3633 else
3634   cat > conftest.$ac_ext <<EOF
3635 #line 3636 "configure"
3636 #include "confdefs.h"
3637 #include <$ac_hdr>
3638 EOF
3639 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3640 { (eval echo configure:3641: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3641 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3642 if test -z "$ac_err"; then
3643   rm -rf conftest*
3644   eval "ac_cv_header_$ac_safe=yes"
3645 else
3646   echo "$ac_err" >&5
3647   echo "configure: failed program was:" >&5
3648   cat conftest.$ac_ext >&5
3649   rm -rf conftest*
3650   eval "ac_cv_header_$ac_safe=no"
3651 fi
3652 rm -f conftest*
3653 fi
3654 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3655   echo "$ac_t""yes" 1>&6
3656     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3657   cat >> confdefs.h <<EOF
3658 #define $ac_tr_hdr 1
3659 EOF
3660  PLUGINS=${PLUGINS}"sdl "
3661        LIB_SDL="-L/usr/X11R6/lib -lSDL"
3662 else
3663   echo "$ac_t""no" 1>&6
3664 fi
3665 done
3666
3667     fi
3668 # Check whether --with-glide or --without-glide was given.
3669 if test "${with_glide+set}" = set; then
3670   withval="$with_glide"
3671    if test "x$withval" != "xno";
3672     then
3673       PLUGINS=${PLUGINS}"glide ";
3674       if test "x$withval" != "xyes";
3675       then
3676         LIB_GLIDE="-l"$withval
3677       else
3678         LIB_GLIDE="-lglide2x"
3679       fi
3680     fi 
3681 fi
3682
3683 # Check whether --enable-ncurses or --disable-ncurses was given.
3684 if test "${enable_ncurses+set}" = set; then
3685   enableval="$enable_ncurses"
3686   if test x$enable_ncurses = xyes; then PLUGINS=${PLUGINS}"ncurses "; fi
3687 fi
3688
3689 # Check whether --enable-qt or --disable-qt was given.
3690 if test "${enable_qt+set}" = set; then
3691   enableval="$enable_qt"
3692   if test x$enable_qt = xyes; then PLUGINS=${PLUGINS}"qt "; ALIASES=${ALIASES}"qvlc "; fi
3693 fi
3694
3695 # Check whether --enable-kde or --disable-kde was given.
3696 if test "${enable_kde+set}" = set; then
3697   enableval="$enable_kde"
3698   if test x$enable_kde = xyes; then PLUGINS=${PLUGINS}"kde "; ALIASES=${ALIASES}"kvlc "; fi
3699 fi
3700
3701 # Check whether --enable-gnome or --disable-gnome was given.
3702 if test "${enable_gnome+set}" = set; then
3703   enableval="$enable_gnome"
3704   if test x$enable_gnome = xyes; then PLUGINS=${PLUGINS}"gnome "; GVLC=1; fi
3705 fi
3706
3707 # Check whether --enable-gtk or --disable-gtk was given.
3708 if test "${enable_gtk+set}" = set; then
3709   enableval="$enable_gtk"
3710   :
3711 fi
3712
3713 if test x$enable_gtk != xno; then
3714   if which gtk-config; then
3715     PLUGINS=${PLUGINS}"gtk "
3716     GVLC=1
3717   fi
3718 fi
3719 # Check whether --enable-x11 or --disable-x11 was given.
3720 if test "${enable_x11+set}" = set; then
3721   enableval="$enable_x11"
3722   :
3723 fi
3724
3725 if test x$enable_x11 != xno; then PLUGINS=${PLUGINS}"x11 "; fi
3726 # Check whether --enable-xvideo or --disable-xvideo was given.
3727 if test "${enable_xvideo+set}" = set; then
3728   enableval="$enable_xvideo"
3729   if test x$enable_xvideo = xyes; then PLUGINS=${PLUGINS}"xvideo "; fi
3730 fi
3731
3732
3733 # Check whether --enable-alsa or --disable-alsa was given.
3734 if test "${enable_alsa+set}" = set; then
3735   enableval="$enable_alsa"
3736   if test x$enable_alsa = xyes; then ac_safe=`echo "sys/asoundlib.h" | sed 'y%./+-%__p_%'`
3737 echo $ac_n "checking for sys/asoundlib.h""... $ac_c" 1>&6
3738 echo "configure:3739: checking for sys/asoundlib.h" >&5
3739 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3740   echo $ac_n "(cached) $ac_c" 1>&6
3741 else
3742   cat > conftest.$ac_ext <<EOF
3743 #line 3744 "configure"
3744 #include "confdefs.h"
3745 #include <sys/asoundlib.h>
3746 EOF
3747 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3748 { (eval echo configure:3749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3749 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3750 if test -z "$ac_err"; then
3751   rm -rf conftest*
3752   eval "ac_cv_header_$ac_safe=yes"
3753 else
3754   echo "$ac_err" >&5
3755   echo "configure: failed program was:" >&5
3756   cat conftest.$ac_ext >&5
3757   rm -rf conftest*
3758   eval "ac_cv_header_$ac_safe=no"
3759 fi
3760 rm -f conftest*
3761 fi
3762 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3763   echo "$ac_t""yes" 1>&6
3764   echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
3765 echo "configure:3766: checking for main in -lasound" >&5
3766 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
3767 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3768   echo $ac_n "(cached) $ac_c" 1>&6
3769 else
3770   ac_save_LIBS="$LIBS"
3771 LIBS="-lasound  $LIBS"
3772 cat > conftest.$ac_ext <<EOF
3773 #line 3774 "configure"
3774 #include "confdefs.h"
3775
3776 int main() {
3777 main()
3778 ; return 0; }
3779 EOF
3780 if { (eval echo configure:3781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3781   rm -rf conftest*
3782   eval "ac_cv_lib_$ac_lib_var=yes"
3783 else
3784   echo "configure: failed program was:" >&5
3785   cat conftest.$ac_ext >&5
3786   rm -rf conftest*
3787   eval "ac_cv_lib_$ac_lib_var=no"
3788 fi
3789 rm -f conftest*
3790 LIBS="$ac_save_LIBS"
3791
3792 fi
3793 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3794   echo "$ac_t""yes" 1>&6
3795   have_alsa="true"
3796 else
3797   echo "$ac_t""no" 1>&6
3798 have_alsa="false"
3799 fi
3800
3801 else
3802   echo "$ac_t""no" 1>&6
3803 have_alsa="false"
3804 fi
3805  if test $have_alsa = true; then PLUGINS=${PLUGINS}"alsa "; fi; fi
3806 fi
3807
3808
3809 if test x$GVLC = x1 ; then ALIASES=${ALIASES}"gvlc "; fi
3810
3811 fi
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827 trap '' 1 2 15
3828 cat > confcache <<\EOF
3829 # This file is a shell script that caches the results of configure
3830 # tests run on this system so they can be shared between configure
3831 # scripts and configure runs.  It is not useful on other systems.
3832 # If it contains results you don't want to keep, you may remove or edit it.
3833 #
3834 # By default, configure uses ./config.cache as the cache file,
3835 # creating it if it does not exist already.  You can give configure
3836 # the --cache-file=FILE option to use a different cache file; that is
3837 # what configure does when it calls configure scripts in
3838 # subdirectories, so they share the cache.
3839 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3840 # config.status only pays attention to the cache file if you give it the
3841 # --recheck option to rerun configure.
3842 #
3843 EOF
3844 # The following way of writing the cache mishandles newlines in values,
3845 # but we know of no workaround that is simple, portable, and efficient.
3846 # So, don't put newlines in cache variables' values.
3847 # Ultrix sh set writes to stderr and can't be redirected directly,
3848 # and sets the high bit in the cache file unless we assign to the vars.
3849 (set) 2>&1 |
3850   case `(ac_space=' '; set | grep ac_space) 2>&1` in
3851   *ac_space=\ *)
3852     # `set' does not quote correctly, so add quotes (double-quote substitution
3853     # turns \\\\ into \\, and sed turns \\ into \).
3854     sed -n \
3855       -e "s/'/'\\\\''/g" \
3856       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3857     ;;
3858   *)
3859     # `set' quotes correctly as required by POSIX, so do not add quotes.
3860     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3861     ;;
3862   esac >> confcache
3863 if cmp -s $cache_file confcache; then
3864   :
3865 else
3866   if test -w $cache_file; then
3867     echo "updating cache $cache_file"
3868     cat confcache > $cache_file
3869   else
3870     echo "not updating unwritable cache $cache_file"
3871   fi
3872 fi
3873 rm -f confcache
3874
3875 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3876
3877 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3878 # Let make expand exec_prefix.
3879 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3880
3881 # Any assignment to VPATH causes Sun make to only execute
3882 # the first set of double-colon rules, so remove it if not needed.
3883 # If there is a colon in the path, we need to keep it.
3884 if test "x$srcdir" = x.; then
3885   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
3886 fi
3887
3888 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3889
3890 DEFS=-DHAVE_CONFIG_H
3891
3892 # Without the "./", some shells look in PATH for config.status.
3893 : ${CONFIG_STATUS=./config.status}
3894
3895 echo creating $CONFIG_STATUS
3896 rm -f $CONFIG_STATUS
3897 cat > $CONFIG_STATUS <<EOF
3898 #! /bin/sh
3899 # Generated automatically by configure.
3900 # Run this file to recreate the current configuration.
3901 # This directory was configured as follows,
3902 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3903 #
3904 # $0 $ac_configure_args
3905 #
3906 # Compiler output produced by configure, useful for debugging
3907 # configure, is in ./config.log if it exists.
3908
3909 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3910 for ac_option
3911 do
3912   case "\$ac_option" in
3913   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3914     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3915     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3916   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3917     echo "$CONFIG_STATUS generated by autoconf version 2.13"
3918     exit 0 ;;
3919   -help | --help | --hel | --he | --h)
3920     echo "\$ac_cs_usage"; exit 0 ;;
3921   *) echo "\$ac_cs_usage"; exit 1 ;;
3922   esac
3923 done
3924
3925 ac_given_srcdir=$srcdir
3926 ac_given_INSTALL="$INSTALL"
3927
3928 trap 'rm -fr `echo "Makefile include/config.h include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3929 EOF
3930 cat >> $CONFIG_STATUS <<EOF
3931
3932 # Protect against being on the right side of a sed subst in config.status.
3933 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3934  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3935 $ac_vpsub
3936 $extrasub
3937 s%@SHELL@%$SHELL%g
3938 s%@CFLAGS@%$CFLAGS%g
3939 s%@CPPFLAGS@%$CPPFLAGS%g
3940 s%@CXXFLAGS@%$CXXFLAGS%g
3941 s%@FFLAGS@%$FFLAGS%g
3942 s%@DEFS@%$DEFS%g
3943 s%@LDFLAGS@%$LDFLAGS%g
3944 s%@LIBS@%$LIBS%g
3945 s%@exec_prefix@%$exec_prefix%g
3946 s%@prefix@%$prefix%g
3947 s%@program_transform_name@%$program_transform_name%g
3948 s%@bindir@%$bindir%g
3949 s%@sbindir@%$sbindir%g
3950 s%@libexecdir@%$libexecdir%g
3951 s%@datadir@%$datadir%g
3952 s%@sysconfdir@%$sysconfdir%g
3953 s%@sharedstatedir@%$sharedstatedir%g
3954 s%@localstatedir@%$localstatedir%g
3955 s%@libdir@%$libdir%g
3956 s%@includedir@%$includedir%g
3957 s%@oldincludedir@%$oldincludedir%g
3958 s%@infodir@%$infodir%g
3959 s%@mandir@%$mandir%g
3960 s%@host@%$host%g
3961 s%@host_alias@%$host_alias%g
3962 s%@host_cpu@%$host_cpu%g
3963 s%@host_vendor@%$host_vendor%g
3964 s%@host_os@%$host_os%g
3965 s%@VLC_VERSION@%$VLC_VERSION%g
3966 s%@VLC_CODENAME@%$VLC_CODENAME%g
3967 s%@SET_MAKE@%$SET_MAKE%g
3968 s%@CC@%$CC%g
3969 s%@CPP@%$CPP%g
3970 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3971 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3972 s%@INSTALL_DATA@%$INSTALL_DATA%g
3973 s%@LIBOBJS@%$LIBOBJS%g
3974 s%@SYS@%$SYS%g
3975 s%@ARCH@%$ARCH%g
3976 s%@PLUGINS@%$PLUGINS%g
3977 s%@ALIASES@%$ALIASES%g
3978 s%@INCLUDE@%$INCLUDE%g
3979 s%@DEBUG@%$DEBUG%g
3980 s%@STATS@%$STATS%g
3981 s%@OPTIMS@%$OPTIMS%g
3982 s%@CSS@%$CSS%g
3983 s%@DYNAMIC_FLAG@%$DYNAMIC_FLAG%g
3984 s%@LIB_SDL@%$LIB_SDL%g
3985 s%@LIB_GLIDE@%$LIB_GLIDE%g
3986 s%@LIB_GGI@%$LIB_GGI%g
3987
3988 CEOF
3989 EOF
3990
3991 cat >> $CONFIG_STATUS <<\EOF
3992
3993 # Split the substitutions into bite-sized pieces for seds with
3994 # small command number limits, like on Digital OSF/1 and HP-UX.
3995 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3996 ac_file=1 # Number of current file.
3997 ac_beg=1 # First line for current file.
3998 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3999 ac_more_lines=:
4000 ac_sed_cmds=""
4001 while $ac_more_lines; do
4002   if test $ac_beg -gt 1; then
4003     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4004   else
4005     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4006   fi
4007   if test ! -s conftest.s$ac_file; then
4008     ac_more_lines=false
4009     rm -f conftest.s$ac_file
4010   else
4011     if test -z "$ac_sed_cmds"; then
4012       ac_sed_cmds="sed -f conftest.s$ac_file"
4013     else
4014       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4015     fi
4016     ac_file=`expr $ac_file + 1`
4017     ac_beg=$ac_end
4018     ac_end=`expr $ac_end + $ac_max_sed_cmds`
4019   fi
4020 done
4021 if test -z "$ac_sed_cmds"; then
4022   ac_sed_cmds=cat
4023 fi
4024 EOF
4025
4026 cat >> $CONFIG_STATUS <<EOF
4027
4028 CONFIG_FILES=\${CONFIG_FILES-"Makefile include/config.h"}
4029 EOF
4030 cat >> $CONFIG_STATUS <<\EOF
4031 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4032   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4033   case "$ac_file" in
4034   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4035        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4036   *) ac_file_in="${ac_file}.in" ;;
4037   esac
4038
4039   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4040
4041   # Remove last slash and all that follows it.  Not all systems have dirname.
4042   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4043   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4044     # The file is in a subdirectory.
4045     test ! -d "$ac_dir" && mkdir "$ac_dir"
4046     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4047     # A "../" for each directory in $ac_dir_suffix.
4048     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4049   else
4050     ac_dir_suffix= ac_dots=
4051   fi
4052
4053   case "$ac_given_srcdir" in
4054   .)  srcdir=.
4055       if test -z "$ac_dots"; then top_srcdir=.
4056       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4057   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4058   *) # Relative path.
4059     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4060     top_srcdir="$ac_dots$ac_given_srcdir" ;;
4061   esac
4062
4063   case "$ac_given_INSTALL" in
4064   [/$]*) INSTALL="$ac_given_INSTALL" ;;
4065   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4066   esac
4067
4068   echo creating "$ac_file"
4069   rm -f "$ac_file"
4070   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4071   case "$ac_file" in
4072   *Makefile*) ac_comsub="1i\\
4073 # $configure_input" ;;
4074   *) ac_comsub= ;;
4075   esac
4076
4077   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4078   sed -e "$ac_comsub
4079 s%@configure_input@%$configure_input%g
4080 s%@srcdir@%$srcdir%g
4081 s%@top_srcdir@%$top_srcdir%g
4082 s%@INSTALL@%$INSTALL%g
4083 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4084 fi; done
4085 rm -f conftest.s*
4086
4087 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4088 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4089 #
4090 # ac_d sets the value in "#define NAME VALUE" lines.
4091 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
4092 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
4093 ac_dC='\3'
4094 ac_dD='%g'
4095 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4096 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
4097 ac_uB='\([      ]\)%\1#\2define\3'
4098 ac_uC=' '
4099 ac_uD='\4%g'
4100 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4101 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
4102 ac_eB='$%\1#\2define\3'
4103 ac_eC=' '
4104 ac_eD='%g'
4105
4106 if test "${CONFIG_HEADERS+set}" != set; then
4107 EOF
4108 cat >> $CONFIG_STATUS <<EOF
4109   CONFIG_HEADERS="include/defs.h"
4110 EOF
4111 cat >> $CONFIG_STATUS <<\EOF
4112 fi
4113 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4114   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4115   case "$ac_file" in
4116   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4117        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4118   *) ac_file_in="${ac_file}.in" ;;
4119   esac
4120
4121   echo creating $ac_file
4122
4123   rm -f conftest.frag conftest.in conftest.out
4124   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4125   cat $ac_file_inputs > conftest.in
4126
4127 EOF
4128
4129 # Transform confdefs.h into a sed script conftest.vals that substitutes
4130 # the proper values into config.h.in to produce config.h.  And first:
4131 # Protect against being on the right side of a sed subst in config.status.
4132 # Protect against being in an unquoted here document in config.status.
4133 rm -f conftest.vals
4134 cat > conftest.hdr <<\EOF
4135 s/[\\&%]/\\&/g
4136 s%[\\$`]%\\&%g
4137 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4138 s%ac_d%ac_u%gp
4139 s%ac_u%ac_e%gp
4140 EOF
4141 sed -n -f conftest.hdr confdefs.h > conftest.vals
4142 rm -f conftest.hdr
4143
4144 # This sed command replaces #undef with comments.  This is necessary, for
4145 # example, in the case of _POSIX_SOURCE, which is predefined and required
4146 # on some systems where configure will not decide to define it.
4147 cat >> conftest.vals <<\EOF
4148 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4149 EOF
4150
4151 # Break up conftest.vals because some shells have a limit on
4152 # the size of here documents, and old seds have small limits too.
4153
4154 rm -f conftest.tail
4155 while :
4156 do
4157   ac_lines=`grep -c . conftest.vals`
4158   # grep -c gives empty output for an empty file on some AIX systems.
4159   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4160   # Write a limited-size here document to conftest.frag.
4161   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4162   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4163   echo 'CEOF
4164   sed -f conftest.frag conftest.in > conftest.out
4165   rm -f conftest.in
4166   mv conftest.out conftest.in
4167 ' >> $CONFIG_STATUS
4168   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4169   rm -f conftest.vals
4170   mv conftest.tail conftest.vals
4171 done
4172 rm -f conftest.vals
4173
4174 cat >> $CONFIG_STATUS <<\EOF
4175   rm -f conftest.frag conftest.h
4176   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
4177   cat conftest.in >> conftest.h
4178   rm -f conftest.in
4179   if cmp -s $ac_file conftest.h 2>/dev/null; then
4180     echo "$ac_file is unchanged"
4181     rm -f conftest.h
4182   else
4183     # Remove last slash and all that follows it.  Not all systems have dirname.
4184       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4185       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4186       # The file is in a subdirectory.
4187       test ! -d "$ac_dir" && mkdir "$ac_dir"
4188     fi
4189     rm -f $ac_file
4190     mv conftest.h $ac_file
4191   fi
4192 fi; done
4193
4194 EOF
4195 cat >> $CONFIG_STATUS <<EOF
4196
4197 EOF
4198 cat >> $CONFIG_STATUS <<\EOF
4199
4200 exit 0
4201 EOF
4202 chmod +x $CONFIG_STATUS
4203 rm -fr confdefs* $ac_clean_files
4204 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4205
4206
4207 echo "
4208 vlc configuration
4209 -----------------
4210 vlc version           : ${VLC_VERSION}
4211 system                : ${SYS}
4212 architecture          : ${ARCH}
4213 debug mode            : ${DEBUG}
4214 statistics            : ${STATS}
4215 optimizations         : ${OPTIMS}
4216 CSS decryption        : ${CSS}
4217 plugins               : ${PLUGINS}
4218 vlc aliases           : ${ALIASES}
4219 "
4220