]> git.sesse.net Git - vlc/blob - configure
* Trivial resampler plug-in (resampling still non-functional)
[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   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib"
16 ac_help="$ac_help
17   --disable-nls           do not use Native Language Support"
18 ac_help="$ac_help
19   --with-included-gettext use the GNU gettext library included here"
20 ac_help="$ac_help
21 "
22 ac_help="$ac_help
23 Optimization options:"
24 ac_help="$ac_help
25   --with-tuning=ARCH      enable special tuning for an architecture
26                           (default i686 on IA-32 and 750 on PPC)"
27 ac_help="$ac_help
28   --disable-optimizations disable compiler optimizations (default enabled)"
29 ac_help="$ac_help
30   --disable-altivec       disable AltiVec optimizations (default enabled on PPC)"
31 ac_help="$ac_help
32   --enable-debug          debug mode (default disabled)"
33 ac_help="$ac_help
34   --enable-release        activate extra optimizations (default disabled)"
35 ac_help="$ac_help
36 Input plugins:"
37 ac_help="$ac_help
38   --enable-dvd            DVD input module (default enabled)"
39 ac_help="$ac_help
40     --with-dvdcss=PATH    libdvdcss headers and libraries"
41 ac_help="$ac_help
42     --with-dvdcss-tree=PATH libdvdcss tree for static linking"
43 ac_help="$ac_help
44   --enable-dvdread        dvdread input module (default disabled)"
45 ac_help="$ac_help
46     --with-dvdread=PATH   libdvdread headers and libraries"
47 ac_help="$ac_help
48   --enable-dvdplay        dvdplay input module (default disabled)"
49 ac_help="$ac_help
50     --with-dvdplay=PATH   libdvdplay headers and libraries"
51 ac_help="$ac_help
52   --enable-dvbpsi        dvbpsi ts demux module (default disabled)"
53 ac_help="$ac_help
54     --with-dvbpsi=PATH    libdvbpsi headers and libraries"
55 ac_help="$ac_help
56     --with-dvbpsi-tree=PATH libdvbpsi tree for static linking"
57 ac_help="$ac_help
58   --enable-v4l            Video4Linux input support (default disabled)"
59 ac_help="$ac_help
60   --enable-vcd            VCD support for Linux, FreeBSD and MacOS X (default enabled)"
61 ac_help="$ac_help
62   --enable-satellite      satellite card support (default disabled)"
63 ac_help="$ac_help
64   --enable-avi            AVI demux module (default enabled)"
65 ac_help="$ac_help
66 Codec plugins:"
67 ac_help="$ac_help
68   --enable-mad            libmad module (default disabled)"
69 ac_help="$ac_help
70     --with-mad=PATH       path to libmad"
71 ac_help="$ac_help
72     --with-mad-tree=PATH  mad tree for static linking"
73 ac_help="$ac_help
74   --enable-ffmpeg         ffmpeg codec (default disabled)"
75 ac_help="$ac_help
76     --with-ffmpeg=PATH    path to ffmpeg installation"
77 ac_help="$ac_help
78     --with-ffmpeg-tree=PATH ffmpeg tree for static linking"
79 ac_help="$ac_help
80   --enable-mp4            MP4 demux module (default disabled)"
81 ac_help="$ac_help
82   --enable-a52            A/52 support with liba52 (default enabled)"
83 ac_help="$ac_help
84     --with-a52=PATH       a52 headers and libraries"
85 ac_help="$ac_help
86     --with-a52-tree=PATH  a52dec tree for static linking "
87 ac_help="$ac_help
88   --enable-cinepak        Cinepak decoder (default enabled)"
89 ac_help="$ac_help
90   --enable-vorbis         Ogg/Vorbis decoder support (default enabled)"
91 ac_help="$ac_help
92   --enable-dv             DV decoder support (default disabled)"
93 ac_help="$ac_help
94 Video plugins:"
95 ac_help="$ac_help
96   --enable-x11            X11 support (default enabled)"
97 ac_help="$ac_help
98   --enable-xvideo         XVideo support (default enabled)"
99 ac_help="$ac_help
100   --enable-sdl            SDL support (default enabled)"
101 ac_help="$ac_help
102     --with-sdl-config-path=PATH sdl-config path (default search in \$PATH)"
103 ac_help="$ac_help
104   --enable-directx        Win32 DirectX support (default enabled on Win32)"
105 ac_help="$ac_help
106     --with-directx=PATH   Win32 DirectX headers"
107 ac_help="$ac_help
108   --enable-fb             Linux framebuffer support (default enabled on Linux)"
109 ac_help="$ac_help
110   --enable-mga            Linux kernel Matrox support (default disabled)"
111 ac_help="$ac_help
112   --enable-ggi            GGI support (default disabled)"
113 ac_help="$ac_help
114     --with-ggi=PATH       path to libggi"
115 ac_help="$ac_help
116   --enable-glide          Glide (3dfx) support (default disabled)"
117 ac_help="$ac_help
118     --with-glide=PATH     path to libglide"
119 ac_help="$ac_help
120   --enable-aa             aalib output (default disabled)"
121 ac_help="$ac_help
122 Audio plugins:"
123 ac_help="$ac_help
124   --enable-oss            Linux OSS /dev/dsp support (enabled on Linux)"
125 ac_help="$ac_help
126   --enable-esd            Esound library support (default disabled)"
127 ac_help="$ac_help
128   --enable-arts           aRts sound server (default disabled)"
129 ac_help="$ac_help
130   --enable-alsa           ALSA sound support for Linux (default disabled)"
131 ac_help="$ac_help
132   --enable-waveout        Win32 waveOut module (default enabled on Win32)"
133 ac_help="$ac_help
134 Interface plugins:"
135 ac_help="$ac_help
136   --enable-gtk            Gtk+ support (default enabled)"
137 ac_help="$ac_help
138     --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)"
139 ac_help="$ac_help
140   --enable-familiar       Familiar Gtk+ support (default disabled)"
141 ac_help="$ac_help
142     --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)"
143 ac_help="$ac_help
144   --enable-gnome          Gnome interface support (default disabled)"
145 ac_help="$ac_help
146   --enable-qt             Qt interface support (default disabled)"
147 ac_help="$ac_help
148   --enable-kde            KDE interface support (default disabled)"
149 ac_help="$ac_help
150   --enable-macosx         MacOS X support (default enabled on MacOS X)"
151 ac_help="$ac_help
152   --enable-qnx            QNX RTOS support (default enabled on QNX RTOS)"
153 ac_help="$ac_help
154   --enable-intfwin        Win32 interface support (default disabled)"
155 ac_help="$ac_help
156     --with-bcbuilder=PATH Borland C++ Builder installation path"
157 ac_help="$ac_help
158   --enable-ncurses        ncurses interface support (default disabled)"
159 ac_help="$ac_help
160   --enable-xosd           xosd interface support (default disabled)"
161 ac_help="$ac_help
162   --enable-lirc           lirc support (default disabled)"
163 ac_help="$ac_help
164 Misc options:"
165 ac_help="$ac_help
166   --with-words=endianness set endianness (big or little)"
167 ac_help="$ac_help
168   --enable-gprof          gprof profiling (default disabled)"
169 ac_help="$ac_help
170   --enable-cprof          cprof profiling (default disabled)"
171 ac_help="$ac_help
172   --enable-pth            GNU Pth support (default disabled)"
173 ac_help="$ac_help
174   --enable-st             State Threads (default disabled)"
175 ac_help="$ac_help
176   --enable-mozilla        build a vlc-based Mozilla plugin (default disabled)"
177 ac_help="$ac_help
178   --disable-plugins       make all plug-ins built-in (default plug-ins enabled)"
179
180 # Initialize some variables set by options.
181 # The variables have the same names as the options, with
182 # dashes changed to underlines.
183 build=NONE
184 cache_file=./config.cache
185 exec_prefix=NONE
186 host=NONE
187 no_create=
188 nonopt=NONE
189 no_recursion=
190 prefix=NONE
191 program_prefix=NONE
192 program_suffix=NONE
193 program_transform_name=s,x,x,
194 silent=
195 site=
196 srcdir=
197 target=NONE
198 verbose=
199 x_includes=NONE
200 x_libraries=NONE
201 bindir='${exec_prefix}/bin'
202 sbindir='${exec_prefix}/sbin'
203 libexecdir='${exec_prefix}/libexec'
204 datadir='${prefix}/share'
205 sysconfdir='${prefix}/etc'
206 sharedstatedir='${prefix}/com'
207 localstatedir='${prefix}/var'
208 libdir='${exec_prefix}/lib'
209 includedir='${prefix}/include'
210 oldincludedir='/usr/include'
211 infodir='${prefix}/info'
212 mandir='${prefix}/man'
213
214 # Initialize some other variables.
215 subdirs=
216 MFLAGS= MAKEFLAGS=
217 SHELL=${CONFIG_SHELL-/bin/sh}
218 # Maximum number of lines to put in a shell here document.
219 ac_max_here_lines=12
220
221 ac_prev=
222 for ac_option
223 do
224
225   # If the previous option needs an argument, assign it.
226   if test -n "$ac_prev"; then
227     eval "$ac_prev=\$ac_option"
228     ac_prev=
229     continue
230   fi
231
232   case "$ac_option" in
233   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
234   *) ac_optarg= ;;
235   esac
236
237   # Accept the important Cygnus configure options, so we can diagnose typos.
238
239   case "$ac_option" in
240
241   -bindir | --bindir | --bindi | --bind | --bin | --bi)
242     ac_prev=bindir ;;
243   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
244     bindir="$ac_optarg" ;;
245
246   -build | --build | --buil | --bui | --bu)
247     ac_prev=build ;;
248   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
249     build="$ac_optarg" ;;
250
251   -cache-file | --cache-file | --cache-fil | --cache-fi \
252   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
253     ac_prev=cache_file ;;
254   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
255   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
256     cache_file="$ac_optarg" ;;
257
258   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
259     ac_prev=datadir ;;
260   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
261   | --da=*)
262     datadir="$ac_optarg" ;;
263
264   -disable-* | --disable-*)
265     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
266     # Reject names that are not valid shell variable names.
267     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
268       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
269     fi
270     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
271     eval "enable_${ac_feature}=no" ;;
272
273   -enable-* | --enable-*)
274     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
275     # Reject names that are not valid shell variable names.
276     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
277       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
278     fi
279     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
280     case "$ac_option" in
281       *=*) ;;
282       *) ac_optarg=yes ;;
283     esac
284     eval "enable_${ac_feature}='$ac_optarg'" ;;
285
286   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
287   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
288   | --exec | --exe | --ex)
289     ac_prev=exec_prefix ;;
290   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
291   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
292   | --exec=* | --exe=* | --ex=*)
293     exec_prefix="$ac_optarg" ;;
294
295   -gas | --gas | --ga | --g)
296     # Obsolete; use --with-gas.
297     with_gas=yes ;;
298
299   -help | --help | --hel | --he)
300     # Omit some internal or obsolete options to make the list less imposing.
301     # This message is too long to be a string in the A/UX 3.1 sh.
302     cat << EOF
303 Usage: configure [options] [host]
304 Options: [defaults in brackets after descriptions]
305 Configuration:
306   --cache-file=FILE       cache test results in FILE
307   --help                  print this message
308   --no-create             do not create output files
309   --quiet, --silent       do not print \`checking...' messages
310   --version               print the version of autoconf that created configure
311 Directory and file names:
312   --prefix=PREFIX         install architecture-independent files in PREFIX
313                           [$ac_default_prefix]
314   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
315                           [same as prefix]
316   --bindir=DIR            user executables in DIR [EPREFIX/bin]
317   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
318   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
319   --datadir=DIR           read-only architecture-independent data in DIR
320                           [PREFIX/share]
321   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
322   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
323                           [PREFIX/com]
324   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
325   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
326   --includedir=DIR        C header files in DIR [PREFIX/include]
327   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
328   --infodir=DIR           info documentation in DIR [PREFIX/info]
329   --mandir=DIR            man documentation in DIR [PREFIX/man]
330   --srcdir=DIR            find the sources in DIR [configure dir or ..]
331   --program-prefix=PREFIX prepend PREFIX to installed program names
332   --program-suffix=SUFFIX append SUFFIX to installed program names
333   --program-transform-name=PROGRAM
334                           run sed PROGRAM on installed program names
335 EOF
336     cat << EOF
337 Host type:
338   --build=BUILD           configure for building on BUILD [BUILD=HOST]
339   --host=HOST             configure for HOST [guessed]
340   --target=TARGET         configure for TARGET [TARGET=HOST]
341 Features and packages:
342   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
343   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
344   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
345   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
346   --x-includes=DIR        X include files are in DIR
347   --x-libraries=DIR       X library files are in DIR
348 EOF
349     if test -n "$ac_help"; then
350       echo "--enable and --with options recognized:$ac_help"
351     fi
352     exit 0 ;;
353
354   -host | --host | --hos | --ho)
355     ac_prev=host ;;
356   -host=* | --host=* | --hos=* | --ho=*)
357     host="$ac_optarg" ;;
358
359   -includedir | --includedir | --includedi | --included | --include \
360   | --includ | --inclu | --incl | --inc)
361     ac_prev=includedir ;;
362   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
363   | --includ=* | --inclu=* | --incl=* | --inc=*)
364     includedir="$ac_optarg" ;;
365
366   -infodir | --infodir | --infodi | --infod | --info | --inf)
367     ac_prev=infodir ;;
368   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
369     infodir="$ac_optarg" ;;
370
371   -libdir | --libdir | --libdi | --libd)
372     ac_prev=libdir ;;
373   -libdir=* | --libdir=* | --libdi=* | --libd=*)
374     libdir="$ac_optarg" ;;
375
376   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
377   | --libexe | --libex | --libe)
378     ac_prev=libexecdir ;;
379   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
380   | --libexe=* | --libex=* | --libe=*)
381     libexecdir="$ac_optarg" ;;
382
383   -localstatedir | --localstatedir | --localstatedi | --localstated \
384   | --localstate | --localstat | --localsta | --localst \
385   | --locals | --local | --loca | --loc | --lo)
386     ac_prev=localstatedir ;;
387   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
388   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
389   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
390     localstatedir="$ac_optarg" ;;
391
392   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
393     ac_prev=mandir ;;
394   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
395     mandir="$ac_optarg" ;;
396
397   -nfp | --nfp | --nf)
398     # Obsolete; use --without-fp.
399     with_fp=no ;;
400
401   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
402   | --no-cr | --no-c)
403     no_create=yes ;;
404
405   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
406   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
407     no_recursion=yes ;;
408
409   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
410   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
411   | --oldin | --oldi | --old | --ol | --o)
412     ac_prev=oldincludedir ;;
413   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
414   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
415   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
416     oldincludedir="$ac_optarg" ;;
417
418   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
419     ac_prev=prefix ;;
420   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
421     prefix="$ac_optarg" ;;
422
423   -program-prefix | --program-prefix | --program-prefi | --program-pref \
424   | --program-pre | --program-pr | --program-p)
425     ac_prev=program_prefix ;;
426   -program-prefix=* | --program-prefix=* | --program-prefi=* \
427   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
428     program_prefix="$ac_optarg" ;;
429
430   -program-suffix | --program-suffix | --program-suffi | --program-suff \
431   | --program-suf | --program-su | --program-s)
432     ac_prev=program_suffix ;;
433   -program-suffix=* | --program-suffix=* | --program-suffi=* \
434   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
435     program_suffix="$ac_optarg" ;;
436
437   -program-transform-name | --program-transform-name \
438   | --program-transform-nam | --program-transform-na \
439   | --program-transform-n | --program-transform- \
440   | --program-transform | --program-transfor \
441   | --program-transfo | --program-transf \
442   | --program-trans | --program-tran \
443   | --progr-tra | --program-tr | --program-t)
444     ac_prev=program_transform_name ;;
445   -program-transform-name=* | --program-transform-name=* \
446   | --program-transform-nam=* | --program-transform-na=* \
447   | --program-transform-n=* | --program-transform-=* \
448   | --program-transform=* | --program-transfor=* \
449   | --program-transfo=* | --program-transf=* \
450   | --program-trans=* | --program-tran=* \
451   | --progr-tra=* | --program-tr=* | --program-t=*)
452     program_transform_name="$ac_optarg" ;;
453
454   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
455   | -silent | --silent | --silen | --sile | --sil)
456     silent=yes ;;
457
458   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
459     ac_prev=sbindir ;;
460   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
461   | --sbi=* | --sb=*)
462     sbindir="$ac_optarg" ;;
463
464   -sharedstatedir | --sharedstatedir | --sharedstatedi \
465   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
466   | --sharedst | --shareds | --shared | --share | --shar \
467   | --sha | --sh)
468     ac_prev=sharedstatedir ;;
469   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
470   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
471   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
472   | --sha=* | --sh=*)
473     sharedstatedir="$ac_optarg" ;;
474
475   -site | --site | --sit)
476     ac_prev=site ;;
477   -site=* | --site=* | --sit=*)
478     site="$ac_optarg" ;;
479
480   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
481     ac_prev=srcdir ;;
482   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
483     srcdir="$ac_optarg" ;;
484
485   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
486   | --syscon | --sysco | --sysc | --sys | --sy)
487     ac_prev=sysconfdir ;;
488   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
489   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
490     sysconfdir="$ac_optarg" ;;
491
492   -target | --target | --targe | --targ | --tar | --ta | --t)
493     ac_prev=target ;;
494   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
495     target="$ac_optarg" ;;
496
497   -v | -verbose | --verbose | --verbos | --verbo | --verb)
498     verbose=yes ;;
499
500   -version | --version | --versio | --versi | --vers)
501     echo "configure generated by autoconf version 2.13"
502     exit 0 ;;
503
504   -with-* | --with-*)
505     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
506     # Reject names that are not valid shell variable names.
507     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
508       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
509     fi
510     ac_package=`echo $ac_package| sed 's/-/_/g'`
511     case "$ac_option" in
512       *=*) ;;
513       *) ac_optarg=yes ;;
514     esac
515     eval "with_${ac_package}='$ac_optarg'" ;;
516
517   -without-* | --without-*)
518     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
519     # Reject names that are not valid shell variable names.
520     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
521       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
522     fi
523     ac_package=`echo $ac_package| sed 's/-/_/g'`
524     eval "with_${ac_package}=no" ;;
525
526   --x)
527     # Obsolete; use --with-x.
528     with_x=yes ;;
529
530   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
531   | --x-incl | --x-inc | --x-in | --x-i)
532     ac_prev=x_includes ;;
533   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
534   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
535     x_includes="$ac_optarg" ;;
536
537   -x-libraries | --x-libraries | --x-librarie | --x-librari \
538   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
539     ac_prev=x_libraries ;;
540   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
541   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
542     x_libraries="$ac_optarg" ;;
543
544   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
545     ;;
546
547   *)
548     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
549       echo "configure: warning: $ac_option: invalid host type" 1>&2
550     fi
551     if test "x$nonopt" != xNONE; then
552       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
553     fi
554     nonopt="$ac_option"
555     ;;
556
557   esac
558 done
559
560 if test -n "$ac_prev"; then
561   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
562 fi
563
564 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
565
566 # File descriptor usage:
567 # 0 standard input
568 # 1 file creation
569 # 2 errors and warnings
570 # 3 some systems may open it to /dev/tty
571 # 4 used on the Kubota Titan
572 # 6 checking for... messages and results
573 # 5 compiler messages saved in config.log
574 if test "$silent" = yes; then
575   exec 6>/dev/null
576 else
577   exec 6>&1
578 fi
579 exec 5>./config.log
580
581 echo "\
582 This file contains any messages produced by compilers while
583 running configure, to aid debugging if configure makes a mistake.
584 " 1>&5
585
586 # Strip out --no-create and --no-recursion so they do not pile up.
587 # Also quote any args containing shell metacharacters.
588 ac_configure_args=
589 for ac_arg
590 do
591   case "$ac_arg" in
592   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
593   | --no-cr | --no-c) ;;
594   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
595   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
596   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
597   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
598   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
599   esac
600 done
601
602 # NLS nuisances.
603 # Only set these to C if already set.  These must not be set unconditionally
604 # because not all systems understand e.g. LANG=C (notably SCO).
605 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
606 # Non-C LC_CTYPE values break the ctype check.
607 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
608 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
609 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
610 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
611
612 # confdefs.h avoids OS command line length limits that DEFS can exceed.
613 rm -rf conftest* confdefs.h
614 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
615 echo > confdefs.h
616
617 # A filename unique to this package, relative to the directory that
618 # configure is in, which we can look for to find out if srcdir is correct.
619 ac_unique_file=include/main.h
620
621 # Find the source files, if location was not specified.
622 if test -z "$srcdir"; then
623   ac_srcdir_defaulted=yes
624   # Try the directory containing this script, then its parent.
625   ac_prog=$0
626   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
627   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
628   srcdir=$ac_confdir
629   if test ! -r $srcdir/$ac_unique_file; then
630     srcdir=..
631   fi
632 else
633   ac_srcdir_defaulted=no
634 fi
635 if test ! -r $srcdir/$ac_unique_file; then
636   if test "$ac_srcdir_defaulted" = yes; then
637     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
638   else
639     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
640   fi
641 fi
642 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
643
644 # Prefer explicitly selected file to automatically selected ones.
645 if test -z "$CONFIG_SITE"; then
646   if test "x$prefix" != xNONE; then
647     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
648   else
649     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
650   fi
651 fi
652 for ac_site_file in $CONFIG_SITE; do
653   if test -r "$ac_site_file"; then
654     echo "loading site script $ac_site_file"
655     . "$ac_site_file"
656   fi
657 done
658
659 if test -r "$cache_file"; then
660   echo "loading cache $cache_file"
661   . $cache_file
662 else
663   echo "creating cache $cache_file"
664   > $cache_file
665 fi
666
667 ac_ext=c
668 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
669 ac_cpp='$CPP $CPPFLAGS'
670 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
671 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
672 cross_compiling=$ac_cv_prog_cc_cross
673
674 ac_exeext=
675 ac_objext=o
676 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
677   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
678   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
679     ac_n= ac_c='
680 ' ac_t='        '
681   else
682     ac_n=-n ac_c= ac_t=
683   fi
684 else
685   ac_n= ac_c='\c' ac_t=
686 fi
687
688
689
690 ac_aux_dir=
691 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
692   if test -f $ac_dir/install-sh; then
693     ac_aux_dir=$ac_dir
694     ac_install_sh="$ac_aux_dir/install-sh -c"
695     break
696   elif test -f $ac_dir/install.sh; then
697     ac_aux_dir=$ac_dir
698     ac_install_sh="$ac_aux_dir/install.sh -c"
699     break
700   fi
701 done
702 if test -z "$ac_aux_dir"; then
703   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
704 fi
705 ac_config_guess=$ac_aux_dir/config.guess
706 ac_config_sub=$ac_aux_dir/config.sub
707 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
708
709
710 # Do some error checking and defaulting for the host and target type.
711 # The inputs are:
712 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
713 #
714 # The rules are:
715 # 1. You are not allowed to specify --host, --target, and nonopt at the
716 #    same time.
717 # 2. Host defaults to nonopt.
718 # 3. If nonopt is not specified, then host defaults to the current host,
719 #    as determined by config.guess.
720 # 4. Target and build default to nonopt.
721 # 5. If nonopt is not specified, then target and build default to host.
722
723 # The aliases save the names the user supplied, while $host etc.
724 # will get canonicalized.
725 case $host---$target---$nonopt in
726 NONE---*---* | *---NONE---* | *---*---NONE) ;;
727 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
728 esac
729
730
731 # Make sure we can run config.sub.
732 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
733 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
734 fi
735
736 echo $ac_n "checking host system type""... $ac_c" 1>&6
737 echo "configure:738: checking host system type" >&5
738
739 host_alias=$host
740 case "$host_alias" in
741 NONE)
742   case $nonopt in
743   NONE)
744     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
745     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
746     fi ;;
747   *) host_alias=$nonopt ;;
748   esac ;;
749 esac
750
751 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
752 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
753 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
754 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
755 echo "$ac_t""$host" 1>&6
756
757 echo $ac_n "checking target system type""... $ac_c" 1>&6
758 echo "configure:759: checking target system type" >&5
759
760 target_alias=$target
761 case "$target_alias" in
762 NONE)
763   case $nonopt in
764   NONE) target_alias=$host_alias ;;
765   *) target_alias=$nonopt ;;
766   esac ;;
767 esac
768
769 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
770 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
771 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
772 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
773 echo "$ac_t""$target" 1>&6
774
775 echo $ac_n "checking build system type""... $ac_c" 1>&6
776 echo "configure:777: checking build system type" >&5
777
778 build_alias=$build
779 case "$build_alias" in
780 NONE)
781   case $nonopt in
782   NONE) build_alias=$host_alias ;;
783   *) build_alias=$nonopt ;;
784   esac ;;
785 esac
786
787 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
788 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
789 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
790 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
791 echo "$ac_t""$build" 1>&6
792
793 test "$host_alias" != "$target_alias" &&
794   test "$program_prefix$program_suffix$program_transform_name" = \
795     NONENONEs,x,x, &&
796   program_prefix=${target_alias}-
797
798
799 CONFIGURE_LINE="$0 $*"
800
801 PACKAGE="vlc"
802 VERSION="0.5.0-cvs"
803 CODENAME="Natalya"
804
805 save_CPPFLAGS="${CPPFLAGS}"
806 save_CFLAGS="${CFLAGS}"
807 save_LDFLAGS="${LDFLAGS}"
808
809 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
810 echo "configure:811: checking whether ${MAKE-make} sets \${MAKE}" >&5
811 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
812 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
813   echo $ac_n "(cached) $ac_c" 1>&6
814 else
815   cat > conftestmake <<\EOF
816 all:
817         @echo 'ac_maketemp="${MAKE}"'
818 EOF
819 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
820 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
821 if test -n "$ac_maketemp"; then
822   eval ac_cv_prog_make_${ac_make}_set=yes
823 else
824   eval ac_cv_prog_make_${ac_make}_set=no
825 fi
826 rm -f conftestmake
827 fi
828 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
829   echo "$ac_t""yes" 1>&6
830   SET_MAKE=
831 else
832   echo "$ac_t""no" 1>&6
833   SET_MAKE="MAKE=${MAKE-make}"
834 fi
835
836 # Extract the first word of "gcc", so it can be a program name with args.
837 set dummy gcc; ac_word=$2
838 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
839 echo "configure:840: checking for $ac_word" >&5
840 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
841   echo $ac_n "(cached) $ac_c" 1>&6
842 else
843   if test -n "$CC"; then
844   ac_cv_prog_CC="$CC" # Let the user override the test.
845 else
846   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
847   ac_dummy="$PATH"
848   for ac_dir in $ac_dummy; do
849     test -z "$ac_dir" && ac_dir=.
850     if test -f $ac_dir/$ac_word; then
851       ac_cv_prog_CC="gcc"
852       break
853     fi
854   done
855   IFS="$ac_save_ifs"
856 fi
857 fi
858 CC="$ac_cv_prog_CC"
859 if test -n "$CC"; then
860   echo "$ac_t""$CC" 1>&6
861 else
862   echo "$ac_t""no" 1>&6
863 fi
864
865 if test -z "$CC"; then
866   # Extract the first word of "cc", so it can be a program name with args.
867 set dummy cc; ac_word=$2
868 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
869 echo "configure:870: checking for $ac_word" >&5
870 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
871   echo $ac_n "(cached) $ac_c" 1>&6
872 else
873   if test -n "$CC"; then
874   ac_cv_prog_CC="$CC" # Let the user override the test.
875 else
876   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
877   ac_prog_rejected=no
878   ac_dummy="$PATH"
879   for ac_dir in $ac_dummy; do
880     test -z "$ac_dir" && ac_dir=.
881     if test -f $ac_dir/$ac_word; then
882       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
883         ac_prog_rejected=yes
884         continue
885       fi
886       ac_cv_prog_CC="cc"
887       break
888     fi
889   done
890   IFS="$ac_save_ifs"
891 if test $ac_prog_rejected = yes; then
892   # We found a bogon in the path, so make sure we never use it.
893   set dummy $ac_cv_prog_CC
894   shift
895   if test $# -gt 0; then
896     # We chose a different compiler from the bogus one.
897     # However, it has the same basename, so the bogon will be chosen
898     # first if we set CC to just the basename; use the full file name.
899     shift
900     set dummy "$ac_dir/$ac_word" "$@"
901     shift
902     ac_cv_prog_CC="$@"
903   fi
904 fi
905 fi
906 fi
907 CC="$ac_cv_prog_CC"
908 if test -n "$CC"; then
909   echo "$ac_t""$CC" 1>&6
910 else
911   echo "$ac_t""no" 1>&6
912 fi
913
914   if test -z "$CC"; then
915     case "`uname -s`" in
916     *win32* | *WIN32*)
917       # Extract the first word of "cl", so it can be a program name with args.
918 set dummy cl; ac_word=$2
919 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
920 echo "configure:921: checking for $ac_word" >&5
921 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
922   echo $ac_n "(cached) $ac_c" 1>&6
923 else
924   if test -n "$CC"; then
925   ac_cv_prog_CC="$CC" # Let the user override the test.
926 else
927   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
928   ac_dummy="$PATH"
929   for ac_dir in $ac_dummy; do
930     test -z "$ac_dir" && ac_dir=.
931     if test -f $ac_dir/$ac_word; then
932       ac_cv_prog_CC="cl"
933       break
934     fi
935   done
936   IFS="$ac_save_ifs"
937 fi
938 fi
939 CC="$ac_cv_prog_CC"
940 if test -n "$CC"; then
941   echo "$ac_t""$CC" 1>&6
942 else
943   echo "$ac_t""no" 1>&6
944 fi
945  ;;
946     esac
947   fi
948   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
949 fi
950
951 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
952 echo "configure:953: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
953
954 ac_ext=c
955 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
956 ac_cpp='$CPP $CPPFLAGS'
957 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
958 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
959 cross_compiling=$ac_cv_prog_cc_cross
960
961 cat > conftest.$ac_ext << EOF
962
963 #line 964 "configure"
964 #include "confdefs.h"
965
966 main(){return(0);}
967 EOF
968 if { (eval echo configure:969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
969   ac_cv_prog_cc_works=yes
970   # If we can't run a trivial program, we are probably using a cross compiler.
971   if (./conftest; exit) 2>/dev/null; then
972     ac_cv_prog_cc_cross=no
973   else
974     ac_cv_prog_cc_cross=yes
975   fi
976 else
977   echo "configure: failed program was:" >&5
978   cat conftest.$ac_ext >&5
979   ac_cv_prog_cc_works=no
980 fi
981 rm -fr conftest*
982 ac_ext=c
983 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
984 ac_cpp='$CPP $CPPFLAGS'
985 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
986 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
987 cross_compiling=$ac_cv_prog_cc_cross
988
989 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
990 if test $ac_cv_prog_cc_works = no; then
991   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
992 fi
993 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
994 echo "configure:995: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
995 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
996 cross_compiling=$ac_cv_prog_cc_cross
997
998 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
999 echo "configure:1000: checking whether we are using GNU C" >&5
1000 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1001   echo $ac_n "(cached) $ac_c" 1>&6
1002 else
1003   cat > conftest.c <<EOF
1004 #ifdef __GNUC__
1005   yes;
1006 #endif
1007 EOF
1008 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1009   ac_cv_prog_gcc=yes
1010 else
1011   ac_cv_prog_gcc=no
1012 fi
1013 fi
1014
1015 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1016
1017 if test $ac_cv_prog_gcc = yes; then
1018   GCC=yes
1019 else
1020   GCC=
1021 fi
1022
1023 ac_test_CFLAGS="${CFLAGS+set}"
1024 ac_save_CFLAGS="$CFLAGS"
1025 CFLAGS=
1026 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1027 echo "configure:1028: checking whether ${CC-cc} accepts -g" >&5
1028 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1029   echo $ac_n "(cached) $ac_c" 1>&6
1030 else
1031   echo 'void f(){}' > conftest.c
1032 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1033   ac_cv_prog_cc_g=yes
1034 else
1035   ac_cv_prog_cc_g=no
1036 fi
1037 rm -f conftest*
1038
1039 fi
1040
1041 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1042 if test "$ac_test_CFLAGS" = set; then
1043   CFLAGS="$ac_save_CFLAGS"
1044 elif test $ac_cv_prog_cc_g = yes; then
1045   if test "$GCC" = yes; then
1046     CFLAGS="-g -O2"
1047   else
1048     CFLAGS="-g"
1049   fi
1050 else
1051   if test "$GCC" = yes; then
1052     CFLAGS="-O2"
1053   else
1054     CFLAGS=
1055   fi
1056 fi
1057
1058 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1059 echo "configure:1060: checking how to run the C preprocessor" >&5
1060 # On Suns, sometimes $CPP names a directory.
1061 if test -n "$CPP" && test -d "$CPP"; then
1062   CPP=
1063 fi
1064 if test -z "$CPP"; then
1065 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1066   echo $ac_n "(cached) $ac_c" 1>&6
1067 else
1068     # This must be in double quotes, not single quotes, because CPP may get
1069   # substituted into the Makefile and "${CC-cc}" will confuse make.
1070   CPP="${CC-cc} -E"
1071   # On the NeXT, cc -E runs the code through the compiler's parser,
1072   # not just through cpp.
1073   cat > conftest.$ac_ext <<EOF
1074 #line 1075 "configure"
1075 #include "confdefs.h"
1076 #include <assert.h>
1077 Syntax Error
1078 EOF
1079 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1080 { (eval echo configure:1081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1081 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1082 if test -z "$ac_err"; then
1083   :
1084 else
1085   echo "$ac_err" >&5
1086   echo "configure: failed program was:" >&5
1087   cat conftest.$ac_ext >&5
1088   rm -rf conftest*
1089   CPP="${CC-cc} -E -traditional-cpp"
1090   cat > conftest.$ac_ext <<EOF
1091 #line 1092 "configure"
1092 #include "confdefs.h"
1093 #include <assert.h>
1094 Syntax Error
1095 EOF
1096 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1097 { (eval echo configure:1098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1098 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1099 if test -z "$ac_err"; then
1100   :
1101 else
1102   echo "$ac_err" >&5
1103   echo "configure: failed program was:" >&5
1104   cat conftest.$ac_ext >&5
1105   rm -rf conftest*
1106   CPP="${CC-cc} -nologo -E"
1107   cat > conftest.$ac_ext <<EOF
1108 #line 1109 "configure"
1109 #include "confdefs.h"
1110 #include <assert.h>
1111 Syntax Error
1112 EOF
1113 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1114 { (eval echo configure:1115: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1115 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1116 if test -z "$ac_err"; then
1117   :
1118 else
1119   echo "$ac_err" >&5
1120   echo "configure: failed program was:" >&5
1121   cat conftest.$ac_ext >&5
1122   rm -rf conftest*
1123   CPP=/lib/cpp
1124 fi
1125 rm -f conftest*
1126 fi
1127 rm -f conftest*
1128 fi
1129 rm -f conftest*
1130   ac_cv_prog_CPP="$CPP"
1131 fi
1132   CPP="$ac_cv_prog_CPP"
1133 else
1134   ac_cv_prog_CPP="$CPP"
1135 fi
1136 echo "$ac_t""$CPP" 1>&6
1137
1138
1139 if test $host != $build; then
1140   ac_tool_prefix=${host_alias}-
1141 else
1142   ac_tool_prefix=
1143 fi
1144
1145 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1146 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1147 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1148 echo "configure:1149: checking for $ac_word" >&5
1149 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1150   echo $ac_n "(cached) $ac_c" 1>&6
1151 else
1152   if test -n "$RANLIB"; then
1153   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1154 else
1155   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1156   ac_dummy="$PATH"
1157   for ac_dir in $ac_dummy; do
1158     test -z "$ac_dir" && ac_dir=.
1159     if test -f $ac_dir/$ac_word; then
1160       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1161       break
1162     fi
1163   done
1164   IFS="$ac_save_ifs"
1165 fi
1166 fi
1167 RANLIB="$ac_cv_prog_RANLIB"
1168 if test -n "$RANLIB"; then
1169   echo "$ac_t""$RANLIB" 1>&6
1170 else
1171   echo "$ac_t""no" 1>&6
1172 fi
1173
1174
1175 if test -z "$ac_cv_prog_RANLIB"; then
1176 if test -n "$ac_tool_prefix"; then
1177   # Extract the first word of "ranlib", so it can be a program name with args.
1178 set dummy ranlib; ac_word=$2
1179 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1180 echo "configure:1181: checking for $ac_word" >&5
1181 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1182   echo $ac_n "(cached) $ac_c" 1>&6
1183 else
1184   if test -n "$RANLIB"; then
1185   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1186 else
1187   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1188   ac_dummy="$PATH"
1189   for ac_dir in $ac_dummy; do
1190     test -z "$ac_dir" && ac_dir=.
1191     if test -f $ac_dir/$ac_word; then
1192       ac_cv_prog_RANLIB="ranlib"
1193       break
1194     fi
1195   done
1196   IFS="$ac_save_ifs"
1197   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1198 fi
1199 fi
1200 RANLIB="$ac_cv_prog_RANLIB"
1201 if test -n "$RANLIB"; then
1202   echo "$ac_t""$RANLIB" 1>&6
1203 else
1204   echo "$ac_t""no" 1>&6
1205 fi
1206
1207 else
1208   RANLIB=":"
1209 fi
1210 fi
1211
1212 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1213 set dummy ${ac_tool_prefix}strip; ac_word=$2
1214 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1215 echo "configure:1216: checking for $ac_word" >&5
1216 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1217   echo $ac_n "(cached) $ac_c" 1>&6
1218 else
1219   if test -n "$STRIP"; then
1220   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1221 else
1222   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1223   ac_dummy="$PATH"
1224   for ac_dir in $ac_dummy; do
1225     test -z "$ac_dir" && ac_dir=.
1226     if test -f $ac_dir/$ac_word; then
1227       ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1228       break
1229     fi
1230   done
1231   IFS="$ac_save_ifs"
1232 fi
1233 fi
1234 STRIP="$ac_cv_prog_STRIP"
1235 if test -n "$STRIP"; then
1236   echo "$ac_t""$STRIP" 1>&6
1237 else
1238   echo "$ac_t""no" 1>&6
1239 fi
1240
1241
1242 if test -z "$ac_cv_prog_STRIP"; then
1243 if test -n "$ac_tool_prefix"; then
1244   # Extract the first word of "strip", so it can be a program name with args.
1245 set dummy strip; ac_word=$2
1246 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1247 echo "configure:1248: checking for $ac_word" >&5
1248 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1249   echo $ac_n "(cached) $ac_c" 1>&6
1250 else
1251   if test -n "$STRIP"; then
1252   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1253 else
1254   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1255   ac_dummy="$PATH"
1256   for ac_dir in $ac_dummy; do
1257     test -z "$ac_dir" && ac_dir=.
1258     if test -f $ac_dir/$ac_word; then
1259       ac_cv_prog_STRIP="strip"
1260       break
1261     fi
1262   done
1263   IFS="$ac_save_ifs"
1264   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1265 fi
1266 fi
1267 STRIP="$ac_cv_prog_STRIP"
1268 if test -n "$STRIP"; then
1269   echo "$ac_t""$STRIP" 1>&6
1270 else
1271   echo "$ac_t""no" 1>&6
1272 fi
1273
1274 else
1275   STRIP=":"
1276 fi
1277 fi
1278
1279
1280 # Extract the first word of "gmake", so it can be a program name with args.
1281 set dummy gmake; ac_word=$2
1282 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1283 echo "configure:1284: checking for $ac_word" >&5
1284 if eval "test \"`echo '$''{'ac_cv_path_GMAKE'+set}'`\" = set"; then
1285   echo $ac_n "(cached) $ac_c" 1>&6
1286 else
1287   case "$GMAKE" in
1288   /*)
1289   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
1290   ;;
1291   ?:/*)                  
1292   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a dos path.
1293   ;;
1294   *)
1295   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1296   ac_dummy="$PATH"
1297   for ac_dir in $ac_dummy; do 
1298     test -z "$ac_dir" && ac_dir=.
1299     if test -f $ac_dir/$ac_word; then
1300       ac_cv_path_GMAKE="$ac_dir/$ac_word"
1301       break
1302     fi
1303   done
1304   IFS="$ac_save_ifs"
1305   test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="no"
1306   ;;
1307 esac
1308 fi
1309 GMAKE="$ac_cv_path_GMAKE"
1310 if test -n "$GMAKE"; then
1311   echo "$ac_t""$GMAKE" 1>&6
1312 else
1313   echo "$ac_t""no" 1>&6
1314 fi
1315
1316 if test "x${GMAKE}" = "xno"; then
1317   echo $ac_n "checking whether GNU make is installed""... $ac_c" 1>&6
1318 echo "configure:1319: checking whether GNU make is installed" >&5
1319 if eval "test \"`echo '$''{'ac_cv_gmake'+set}'`\" = set"; then
1320   echo $ac_n "(cached) $ac_c" 1>&6
1321 else
1322   if make --version | grep -q -i gnu; then
1323          ac_cv_gmake="yes"
1324        else
1325          echo "This software needs you to install GNU make to compile properly."
1326          echo "You can get it from http://www.gnu.org/."
1327          exit
1328        fi
1329 fi
1330
1331 echo "$ac_t""$ac_cv_gmake" 1>&6
1332   VLC_MAKE="make"
1333 else
1334   VLC_MAKE="gmake"
1335 fi
1336
1337 ALL_LINGUAS="de en_GB fr ja no ru nl pl se"
1338
1339 cat >> confdefs.h <<EOF
1340 #define VLC_PACKAGE "${PACKAGE}"
1341 EOF
1342
1343 cat >> confdefs.h <<EOF
1344 #define VLC_VERSION "${VERSION}"
1345 EOF
1346
1347 # Extract the first word of "ranlib", so it can be a program name with args.
1348 set dummy ranlib; ac_word=$2
1349 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1350 echo "configure:1351: checking for $ac_word" >&5
1351 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1352   echo $ac_n "(cached) $ac_c" 1>&6
1353 else
1354   if test -n "$RANLIB"; then
1355   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1356 else
1357   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1358   ac_dummy="$PATH"
1359   for ac_dir in $ac_dummy; do
1360     test -z "$ac_dir" && ac_dir=.
1361     if test -f $ac_dir/$ac_word; then
1362       ac_cv_prog_RANLIB="ranlib"
1363       break
1364     fi
1365   done
1366   IFS="$ac_save_ifs"
1367   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1368 fi
1369 fi
1370 RANLIB="$ac_cv_prog_RANLIB"
1371 if test -n "$RANLIB"; then
1372   echo "$ac_t""$RANLIB" 1>&6
1373 else
1374   echo "$ac_t""no" 1>&6
1375 fi
1376
1377
1378         echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1379 echo "configure:1380: checking for strerror in -lcposix" >&5
1380 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1381 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1382   echo $ac_n "(cached) $ac_c" 1>&6
1383 else
1384   ac_save_LIBS="$LIBS"
1385 LIBS="-lcposix  $LIBS"
1386 cat > conftest.$ac_ext <<EOF
1387 #line 1388 "configure"
1388 #include "confdefs.h"
1389 /* Override any gcc2 internal prototype to avoid an error.  */
1390 /* We use char because int might match the return type of a gcc2
1391     builtin and then its argument prototype would still apply.  */
1392 char strerror();
1393
1394 int main() {
1395 strerror()
1396 ; return 0; }
1397 EOF
1398 if { (eval echo configure:1399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1399   rm -rf conftest*
1400   eval "ac_cv_lib_$ac_lib_var=yes"
1401 else
1402   echo "configure: failed program was:" >&5
1403   cat conftest.$ac_ext >&5
1404   rm -rf conftest*
1405   eval "ac_cv_lib_$ac_lib_var=no"
1406 fi
1407 rm -f conftest*
1408 LIBS="$ac_save_LIBS"
1409
1410 fi
1411 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1412   echo "$ac_t""yes" 1>&6
1413   LIBS="$LIBS -lcposix"
1414 else
1415   echo "$ac_t""no" 1>&6
1416 fi
1417
1418   
1419
1420 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1421 echo "configure:1422: checking for ANSI C header files" >&5
1422 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1423   echo $ac_n "(cached) $ac_c" 1>&6
1424 else
1425   cat > conftest.$ac_ext <<EOF
1426 #line 1427 "configure"
1427 #include "confdefs.h"
1428 #include <stdlib.h>
1429 #include <stdarg.h>
1430 #include <string.h>
1431 #include <float.h>
1432 EOF
1433 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1434 { (eval echo configure:1435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1435 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1436 if test -z "$ac_err"; then
1437   rm -rf conftest*
1438   ac_cv_header_stdc=yes
1439 else
1440   echo "$ac_err" >&5
1441   echo "configure: failed program was:" >&5
1442   cat conftest.$ac_ext >&5
1443   rm -rf conftest*
1444   ac_cv_header_stdc=no
1445 fi
1446 rm -f conftest*
1447
1448 if test $ac_cv_header_stdc = yes; then
1449   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1450 cat > conftest.$ac_ext <<EOF
1451 #line 1452 "configure"
1452 #include "confdefs.h"
1453 #include <string.h>
1454 EOF
1455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1456   egrep "memchr" >/dev/null 2>&1; then
1457   :
1458 else
1459   rm -rf conftest*
1460   ac_cv_header_stdc=no
1461 fi
1462 rm -f conftest*
1463
1464 fi
1465
1466 if test $ac_cv_header_stdc = yes; then
1467   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1468 cat > conftest.$ac_ext <<EOF
1469 #line 1470 "configure"
1470 #include "confdefs.h"
1471 #include <stdlib.h>
1472 EOF
1473 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1474   egrep "free" >/dev/null 2>&1; then
1475   :
1476 else
1477   rm -rf conftest*
1478   ac_cv_header_stdc=no
1479 fi
1480 rm -f conftest*
1481
1482 fi
1483
1484 if test $ac_cv_header_stdc = yes; then
1485   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1486 if test "$cross_compiling" = yes; then
1487   :
1488 else
1489   cat > conftest.$ac_ext <<EOF
1490 #line 1491 "configure"
1491 #include "confdefs.h"
1492 #include <ctype.h>
1493 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1494 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1495 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1496 int main () { int i; for (i = 0; i < 256; i++)
1497 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1498 exit (0); }
1499
1500 EOF
1501 if { (eval echo configure:1502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1502 then
1503   :
1504 else
1505   echo "configure: failed program was:" >&5
1506   cat conftest.$ac_ext >&5
1507   rm -fr conftest*
1508   ac_cv_header_stdc=no
1509 fi
1510 rm -fr conftest*
1511 fi
1512
1513 fi
1514 fi
1515
1516 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1517 if test $ac_cv_header_stdc = yes; then
1518   cat >> confdefs.h <<\EOF
1519 #define STDC_HEADERS 1
1520 EOF
1521
1522 fi
1523
1524 echo $ac_n "checking for working const""... $ac_c" 1>&6
1525 echo "configure:1526: checking for working const" >&5
1526 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1527   echo $ac_n "(cached) $ac_c" 1>&6
1528 else
1529   cat > conftest.$ac_ext <<EOF
1530 #line 1531 "configure"
1531 #include "confdefs.h"
1532
1533 int main() {
1534
1535 /* Ultrix mips cc rejects this.  */
1536 typedef int charset[2]; const charset x;
1537 /* SunOS 4.1.1 cc rejects this.  */
1538 char const *const *ccp;
1539 char **p;
1540 /* NEC SVR4.0.2 mips cc rejects this.  */
1541 struct point {int x, y;};
1542 static struct point const zero = {0,0};
1543 /* AIX XL C 1.02.0.0 rejects this.
1544    It does not let you subtract one const X* pointer from another in an arm
1545    of an if-expression whose if-part is not a constant expression */
1546 const char *g = "string";
1547 ccp = &g + (g ? g-g : 0);
1548 /* HPUX 7.0 cc rejects these. */
1549 ++ccp;
1550 p = (char**) ccp;
1551 ccp = (char const *const *) p;
1552 { /* SCO 3.2v4 cc rejects this.  */
1553   char *t;
1554   char const *s = 0 ? (char *) 0 : (char const *) 0;
1555
1556   *t++ = 0;
1557 }
1558 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
1559   int x[] = {25, 17};
1560   const int *foo = &x[0];
1561   ++foo;
1562 }
1563 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1564   typedef const int *iptr;
1565   iptr p = 0;
1566   ++p;
1567 }
1568 { /* AIX XL C 1.02.0.0 rejects this saying
1569      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1570   struct s { int j; const int *ap[3]; };
1571   struct s *b; b->j = 5;
1572 }
1573 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1574   const int foo = 10;
1575 }
1576
1577 ; return 0; }
1578 EOF
1579 if { (eval echo configure:1580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1580   rm -rf conftest*
1581   ac_cv_c_const=yes
1582 else
1583   echo "configure: failed program was:" >&5
1584   cat conftest.$ac_ext >&5
1585   rm -rf conftest*
1586   ac_cv_c_const=no
1587 fi
1588 rm -f conftest*
1589 fi
1590
1591 echo "$ac_t""$ac_cv_c_const" 1>&6
1592 if test $ac_cv_c_const = no; then
1593   cat >> confdefs.h <<\EOF
1594 #define const 
1595 EOF
1596
1597 fi
1598
1599 echo $ac_n "checking for inline""... $ac_c" 1>&6
1600 echo "configure:1601: checking for inline" >&5
1601 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1602   echo $ac_n "(cached) $ac_c" 1>&6
1603 else
1604   ac_cv_c_inline=no
1605 for ac_kw in inline __inline__ __inline; do
1606   cat > conftest.$ac_ext <<EOF
1607 #line 1608 "configure"
1608 #include "confdefs.h"
1609
1610 int main() {
1611 } $ac_kw foo() {
1612 ; return 0; }
1613 EOF
1614 if { (eval echo configure:1615: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1615   rm -rf conftest*
1616   ac_cv_c_inline=$ac_kw; break
1617 else
1618   echo "configure: failed program was:" >&5
1619   cat conftest.$ac_ext >&5
1620 fi
1621 rm -f conftest*
1622 done
1623
1624 fi
1625
1626 echo "$ac_t""$ac_cv_c_inline" 1>&6
1627 case "$ac_cv_c_inline" in
1628   inline | yes) ;;
1629   no) cat >> confdefs.h <<\EOF
1630 #define inline 
1631 EOF
1632  ;;
1633   *)  cat >> confdefs.h <<EOF
1634 #define inline $ac_cv_c_inline
1635 EOF
1636  ;;
1637 esac
1638
1639 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1640 echo "configure:1641: checking for off_t" >&5
1641 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1642   echo $ac_n "(cached) $ac_c" 1>&6
1643 else
1644   cat > conftest.$ac_ext <<EOF
1645 #line 1646 "configure"
1646 #include "confdefs.h"
1647 #include <sys/types.h>
1648 #if STDC_HEADERS
1649 #include <stdlib.h>
1650 #include <stddef.h>
1651 #endif
1652 EOF
1653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1654   egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1655   rm -rf conftest*
1656   ac_cv_type_off_t=yes
1657 else
1658   rm -rf conftest*
1659   ac_cv_type_off_t=no
1660 fi
1661 rm -f conftest*
1662
1663 fi
1664 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1665 if test $ac_cv_type_off_t = no; then
1666   cat >> confdefs.h <<\EOF
1667 #define off_t long
1668 EOF
1669
1670 fi
1671
1672 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1673 echo "configure:1674: checking for size_t" >&5
1674 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1675   echo $ac_n "(cached) $ac_c" 1>&6
1676 else
1677   cat > conftest.$ac_ext <<EOF
1678 #line 1679 "configure"
1679 #include "confdefs.h"
1680 #include <sys/types.h>
1681 #if STDC_HEADERS
1682 #include <stdlib.h>
1683 #include <stddef.h>
1684 #endif
1685 EOF
1686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1687   egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1688   rm -rf conftest*
1689   ac_cv_type_size_t=yes
1690 else
1691   rm -rf conftest*
1692   ac_cv_type_size_t=no
1693 fi
1694 rm -f conftest*
1695
1696 fi
1697 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1698 if test $ac_cv_type_size_t = no; then
1699   cat >> confdefs.h <<\EOF
1700 #define size_t unsigned
1701 EOF
1702
1703 fi
1704
1705 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1706 # for constant arguments.  Useless!
1707 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1708 echo "configure:1709: checking for working alloca.h" >&5
1709 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1710   echo $ac_n "(cached) $ac_c" 1>&6
1711 else
1712   cat > conftest.$ac_ext <<EOF
1713 #line 1714 "configure"
1714 #include "confdefs.h"
1715 #include <alloca.h>
1716 int main() {
1717 char *p = alloca(2 * sizeof(int));
1718 ; return 0; }
1719 EOF
1720 if { (eval echo configure:1721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1721   rm -rf conftest*
1722   ac_cv_header_alloca_h=yes
1723 else
1724   echo "configure: failed program was:" >&5
1725   cat conftest.$ac_ext >&5
1726   rm -rf conftest*
1727   ac_cv_header_alloca_h=no
1728 fi
1729 rm -f conftest*
1730 fi
1731
1732 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1733 if test $ac_cv_header_alloca_h = yes; then
1734   cat >> confdefs.h <<\EOF
1735 #define HAVE_ALLOCA_H 1
1736 EOF
1737
1738 fi
1739
1740 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1741 echo "configure:1742: checking for alloca" >&5
1742 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1743   echo $ac_n "(cached) $ac_c" 1>&6
1744 else
1745   cat > conftest.$ac_ext <<EOF
1746 #line 1747 "configure"
1747 #include "confdefs.h"
1748
1749 #ifdef __GNUC__
1750 # define alloca __builtin_alloca
1751 #else
1752 # ifdef _MSC_VER
1753 #  include <malloc.h>
1754 #  define alloca _alloca
1755 # else
1756 #  if HAVE_ALLOCA_H
1757 #   include <alloca.h>
1758 #  else
1759 #   ifdef _AIX
1760  #pragma alloca
1761 #   else
1762 #    ifndef alloca /* predefined by HP cc +Olibcalls */
1763 char *alloca ();
1764 #    endif
1765 #   endif
1766 #  endif
1767 # endif
1768 #endif
1769
1770 int main() {
1771 char *p = (char *) alloca(1);
1772 ; return 0; }
1773 EOF
1774 if { (eval echo configure:1775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1775   rm -rf conftest*
1776   ac_cv_func_alloca_works=yes
1777 else
1778   echo "configure: failed program was:" >&5
1779   cat conftest.$ac_ext >&5
1780   rm -rf conftest*
1781   ac_cv_func_alloca_works=no
1782 fi
1783 rm -f conftest*
1784 fi
1785
1786 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1787 if test $ac_cv_func_alloca_works = yes; then
1788   cat >> confdefs.h <<\EOF
1789 #define HAVE_ALLOCA 1
1790 EOF
1791
1792 fi
1793
1794 if test $ac_cv_func_alloca_works = no; then
1795   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1796   # that cause trouble.  Some versions do not even contain alloca or
1797   # contain a buggy version.  If you still want to use their alloca,
1798   # use ar to extract alloca.o from them instead of compiling alloca.c.
1799   ALLOCA=alloca.${ac_objext}
1800   cat >> confdefs.h <<\EOF
1801 #define C_ALLOCA 1
1802 EOF
1803
1804
1805 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1806 echo "configure:1807: checking whether alloca needs Cray hooks" >&5
1807 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1808   echo $ac_n "(cached) $ac_c" 1>&6
1809 else
1810   cat > conftest.$ac_ext <<EOF
1811 #line 1812 "configure"
1812 #include "confdefs.h"
1813 #if defined(CRAY) && ! defined(CRAY2)
1814 webecray
1815 #else
1816 wenotbecray
1817 #endif
1818
1819 EOF
1820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1821   egrep "webecray" >/dev/null 2>&1; then
1822   rm -rf conftest*
1823   ac_cv_os_cray=yes
1824 else
1825   rm -rf conftest*
1826   ac_cv_os_cray=no
1827 fi
1828 rm -f conftest*
1829
1830 fi
1831
1832 echo "$ac_t""$ac_cv_os_cray" 1>&6
1833 if test $ac_cv_os_cray = yes; then
1834 for ac_func in _getb67 GETB67 getb67; do
1835   echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1836 echo "configure:1837: checking for $ac_func" >&5
1837 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1838   echo $ac_n "(cached) $ac_c" 1>&6
1839 else
1840   cat > conftest.$ac_ext <<EOF
1841 #line 1842 "configure"
1842 #include "confdefs.h"
1843 /* System header to define __stub macros and hopefully few prototypes,
1844     which can conflict with char $ac_func(); below.  */
1845 #include <assert.h>
1846 /* Override any gcc2 internal prototype to avoid an error.  */
1847 /* We use char because int might match the return type of a gcc2
1848     builtin and then its argument prototype would still apply.  */
1849 char $ac_func();
1850
1851 int main() {
1852
1853 /* The GNU C library defines this for functions which it implements
1854     to always fail with ENOSYS.  Some functions are actually named
1855     something starting with __ and the normal name is an alias.  */
1856 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1857 choke me
1858 #else
1859 $ac_func();
1860 #endif
1861
1862 ; return 0; }
1863 EOF
1864 if { (eval echo configure:1865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1865   rm -rf conftest*
1866   eval "ac_cv_func_$ac_func=yes"
1867 else
1868   echo "configure: failed program was:" >&5
1869   cat conftest.$ac_ext >&5
1870   rm -rf conftest*
1871   eval "ac_cv_func_$ac_func=no"
1872 fi
1873 rm -f conftest*
1874 fi
1875
1876 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1877   echo "$ac_t""yes" 1>&6
1878   cat >> confdefs.h <<EOF
1879 #define CRAY_STACKSEG_END $ac_func
1880 EOF
1881
1882   break
1883 else
1884   echo "$ac_t""no" 1>&6
1885 fi
1886
1887 done
1888 fi
1889
1890 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1891 echo "configure:1892: checking stack direction for C alloca" >&5
1892 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1893   echo $ac_n "(cached) $ac_c" 1>&6
1894 else
1895   if test "$cross_compiling" = yes; then
1896   ac_cv_c_stack_direction=0
1897 else
1898   cat > conftest.$ac_ext <<EOF
1899 #line 1900 "configure"
1900 #include "confdefs.h"
1901 find_stack_direction ()
1902 {
1903   static char *addr = 0;
1904   auto char dummy;
1905   if (addr == 0)
1906     {
1907       addr = &dummy;
1908       return find_stack_direction ();
1909     }
1910   else
1911     return (&dummy > addr) ? 1 : -1;
1912 }
1913 main ()
1914 {
1915   exit (find_stack_direction() < 0);
1916 }
1917 EOF
1918 if { (eval echo configure:1919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1919 then
1920   ac_cv_c_stack_direction=1
1921 else
1922   echo "configure: failed program was:" >&5
1923   cat conftest.$ac_ext >&5
1924   rm -fr conftest*
1925   ac_cv_c_stack_direction=-1
1926 fi
1927 rm -fr conftest*
1928 fi
1929
1930 fi
1931
1932 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1933 cat >> confdefs.h <<EOF
1934 #define STACK_DIRECTION $ac_cv_c_stack_direction
1935 EOF
1936
1937 fi
1938
1939 for ac_hdr in unistd.h
1940 do
1941 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1942 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1943 echo "configure:1944: checking for $ac_hdr" >&5
1944 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1945   echo $ac_n "(cached) $ac_c" 1>&6
1946 else
1947   cat > conftest.$ac_ext <<EOF
1948 #line 1949 "configure"
1949 #include "confdefs.h"
1950 #include <$ac_hdr>
1951 EOF
1952 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1953 { (eval echo configure:1954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1954 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1955 if test -z "$ac_err"; then
1956   rm -rf conftest*
1957   eval "ac_cv_header_$ac_safe=yes"
1958 else
1959   echo "$ac_err" >&5
1960   echo "configure: failed program was:" >&5
1961   cat conftest.$ac_ext >&5
1962   rm -rf conftest*
1963   eval "ac_cv_header_$ac_safe=no"
1964 fi
1965 rm -f conftest*
1966 fi
1967 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1968   echo "$ac_t""yes" 1>&6
1969     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1970   cat >> confdefs.h <<EOF
1971 #define $ac_tr_hdr 1
1972 EOF
1973  
1974 else
1975   echo "$ac_t""no" 1>&6
1976 fi
1977 done
1978
1979 for ac_func in getpagesize
1980 do
1981 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1982 echo "configure:1983: checking for $ac_func" >&5
1983 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1984   echo $ac_n "(cached) $ac_c" 1>&6
1985 else
1986   cat > conftest.$ac_ext <<EOF
1987 #line 1988 "configure"
1988 #include "confdefs.h"
1989 /* System header to define __stub macros and hopefully few prototypes,
1990     which can conflict with char $ac_func(); below.  */
1991 #include <assert.h>
1992 /* Override any gcc2 internal prototype to avoid an error.  */
1993 /* We use char because int might match the return type of a gcc2
1994     builtin and then its argument prototype would still apply.  */
1995 char $ac_func();
1996
1997 int main() {
1998
1999 /* The GNU C library defines this for functions which it implements
2000     to always fail with ENOSYS.  Some functions are actually named
2001     something starting with __ and the normal name is an alias.  */
2002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2003 choke me
2004 #else
2005 $ac_func();
2006 #endif
2007
2008 ; return 0; }
2009 EOF
2010 if { (eval echo configure:2011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2011   rm -rf conftest*
2012   eval "ac_cv_func_$ac_func=yes"
2013 else
2014   echo "configure: failed program was:" >&5
2015   cat conftest.$ac_ext >&5
2016   rm -rf conftest*
2017   eval "ac_cv_func_$ac_func=no"
2018 fi
2019 rm -f conftest*
2020 fi
2021
2022 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2023   echo "$ac_t""yes" 1>&6
2024     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2025   cat >> confdefs.h <<EOF
2026 #define $ac_tr_func 1
2027 EOF
2028  
2029 else
2030   echo "$ac_t""no" 1>&6
2031 fi
2032 done
2033
2034 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2035 echo "configure:2036: checking for working mmap" >&5
2036 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2037   echo $ac_n "(cached) $ac_c" 1>&6
2038 else
2039   if test "$cross_compiling" = yes; then
2040   ac_cv_func_mmap_fixed_mapped=no
2041 else
2042   cat > conftest.$ac_ext <<EOF
2043 #line 2044 "configure"
2044 #include "confdefs.h"
2045
2046 /* Thanks to Mike Haertel and Jim Avera for this test.
2047    Here is a matrix of mmap possibilities:
2048         mmap private not fixed
2049         mmap private fixed at somewhere currently unmapped
2050         mmap private fixed at somewhere already mapped
2051         mmap shared not fixed
2052         mmap shared fixed at somewhere currently unmapped
2053         mmap shared fixed at somewhere already mapped
2054    For private mappings, we should verify that changes cannot be read()
2055    back from the file, nor mmap's back from the file at a different
2056    address.  (There have been systems where private was not correctly
2057    implemented like the infamous i386 svr4.0, and systems where the
2058    VM page cache was not coherent with the filesystem buffer cache
2059    like early versions of FreeBSD and possibly contemporary NetBSD.)
2060    For shared mappings, we should conversely verify that changes get
2061    propogated back to all the places they're supposed to be.
2062
2063    Grep wants private fixed already mapped.
2064    The main things grep needs to know about mmap are:
2065    * does it exist and is it safe to write into the mmap'd area
2066    * how to use it (BSD variants)  */
2067 #include <sys/types.h>
2068 #include <fcntl.h>
2069 #include <sys/mman.h>
2070
2071 /* This mess was copied from the GNU getpagesize.h.  */
2072 #ifndef HAVE_GETPAGESIZE
2073 # ifdef HAVE_UNISTD_H
2074 #  include <unistd.h>
2075 # endif
2076
2077 /* Assume that all systems that can run configure have sys/param.h.  */
2078 # ifndef HAVE_SYS_PARAM_H
2079 #  define HAVE_SYS_PARAM_H 1
2080 # endif
2081
2082 # ifdef _SC_PAGESIZE
2083 #  define getpagesize() sysconf(_SC_PAGESIZE)
2084 # else /* no _SC_PAGESIZE */
2085 #  ifdef HAVE_SYS_PARAM_H
2086 #   include <sys/param.h>
2087 #   ifdef EXEC_PAGESIZE
2088 #    define getpagesize() EXEC_PAGESIZE
2089 #   else /* no EXEC_PAGESIZE */
2090 #    ifdef NBPG
2091 #     define getpagesize() NBPG * CLSIZE
2092 #     ifndef CLSIZE
2093 #      define CLSIZE 1
2094 #     endif /* no CLSIZE */
2095 #    else /* no NBPG */
2096 #     ifdef NBPC
2097 #      define getpagesize() NBPC
2098 #     else /* no NBPC */
2099 #      ifdef PAGESIZE
2100 #       define getpagesize() PAGESIZE
2101 #      endif /* PAGESIZE */
2102 #     endif /* no NBPC */
2103 #    endif /* no NBPG */
2104 #   endif /* no EXEC_PAGESIZE */
2105 #  else /* no HAVE_SYS_PARAM_H */
2106 #   define getpagesize() 8192   /* punt totally */
2107 #  endif /* no HAVE_SYS_PARAM_H */
2108 # endif /* no _SC_PAGESIZE */
2109
2110 #endif /* no HAVE_GETPAGESIZE */
2111
2112 #ifdef __cplusplus
2113 extern "C" { void *malloc(unsigned); }
2114 #else
2115 char *malloc();
2116 #endif
2117
2118 int
2119 main()
2120 {
2121         char *data, *data2, *data3;
2122         int i, pagesize;
2123         int fd;
2124
2125         pagesize = getpagesize();
2126
2127         /*
2128          * First, make a file with some known garbage in it.
2129          */
2130         data = malloc(pagesize);
2131         if (!data)
2132                 exit(1);
2133         for (i = 0; i < pagesize; ++i)
2134                 *(data + i) = rand();
2135         umask(0);
2136         fd = creat("conftestmmap", 0600);
2137         if (fd < 0)
2138                 exit(1);
2139         if (write(fd, data, pagesize) != pagesize)
2140                 exit(1);
2141         close(fd);
2142
2143         /*
2144          * Next, try to mmap the file at a fixed address which
2145          * already has something else allocated at it.  If we can,
2146          * also make sure that we see the same garbage.
2147          */
2148         fd = open("conftestmmap", O_RDWR);
2149         if (fd < 0)
2150                 exit(1);
2151         data2 = malloc(2 * pagesize);
2152         if (!data2)
2153                 exit(1);
2154         data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2155         if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2156             MAP_PRIVATE | MAP_FIXED, fd, 0L))
2157                 exit(1);
2158         for (i = 0; i < pagesize; ++i)
2159                 if (*(data + i) != *(data2 + i))
2160                         exit(1);
2161
2162         /*
2163          * Finally, make sure that changes to the mapped area
2164          * do not percolate back to the file as seen by read().
2165          * (This is a bug on some variants of i386 svr4.0.)
2166          */
2167         for (i = 0; i < pagesize; ++i)
2168                 *(data2 + i) = *(data2 + i) + 1;
2169         data3 = malloc(pagesize);
2170         if (!data3)
2171                 exit(1);
2172         if (read(fd, data3, pagesize) != pagesize)
2173                 exit(1);
2174         for (i = 0; i < pagesize; ++i)
2175                 if (*(data + i) != *(data3 + i))
2176                         exit(1);
2177         close(fd);
2178         unlink("conftestmmap");
2179         exit(0);
2180 }
2181
2182 EOF
2183 if { (eval echo configure:2184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2184 then
2185   ac_cv_func_mmap_fixed_mapped=yes
2186 else
2187   echo "configure: failed program was:" >&5
2188   cat conftest.$ac_ext >&5
2189   rm -fr conftest*
2190   ac_cv_func_mmap_fixed_mapped=no
2191 fi
2192 rm -fr conftest*
2193 fi
2194
2195 fi
2196
2197 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2198 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2199   cat >> confdefs.h <<\EOF
2200 #define HAVE_MMAP 1
2201 EOF
2202
2203 fi
2204
2205
2206     echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
2207 echo "configure:2208: checking whether we are using the GNU C Library 2.1 or newer" >&5
2208 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
2209   echo $ac_n "(cached) $ac_c" 1>&6
2210 else
2211   cat > conftest.$ac_ext <<EOF
2212 #line 2213 "configure"
2213 #include "confdefs.h"
2214
2215 #include <features.h>
2216 #ifdef __GNU_LIBRARY__
2217  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
2218   Lucky GNU user
2219  #endif
2220 #endif
2221         
2222 EOF
2223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2224   egrep "Lucky GNU user" >/dev/null 2>&1; then
2225   rm -rf conftest*
2226   ac_cv_gnu_library_2_1=yes
2227 else
2228   rm -rf conftest*
2229   ac_cv_gnu_library_2_1=no
2230 fi
2231 rm -f conftest*
2232
2233       
2234     
2235 fi
2236
2237 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
2238     
2239     GLIBC21="$ac_cv_gnu_library_2_1"
2240   
2241
2242                                     
2243    for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
2244 stdlib.h string.h unistd.h sys/param.h
2245 do
2246 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2247 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2248 echo "configure:2249: checking for $ac_hdr" >&5
2249 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2250   echo $ac_n "(cached) $ac_c" 1>&6
2251 else
2252   cat > conftest.$ac_ext <<EOF
2253 #line 2254 "configure"
2254 #include "confdefs.h"
2255 #include <$ac_hdr>
2256 EOF
2257 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2258 { (eval echo configure:2259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2259 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2260 if test -z "$ac_err"; then
2261   rm -rf conftest*
2262   eval "ac_cv_header_$ac_safe=yes"
2263 else
2264   echo "$ac_err" >&5
2265   echo "configure: failed program was:" >&5
2266   cat conftest.$ac_ext >&5
2267   rm -rf conftest*
2268   eval "ac_cv_header_$ac_safe=no"
2269 fi
2270 rm -f conftest*
2271 fi
2272 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2273   echo "$ac_t""yes" 1>&6
2274     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2275   cat >> confdefs.h <<EOF
2276 #define $ac_tr_hdr 1
2277 EOF
2278  
2279 else
2280   echo "$ac_t""no" 1>&6
2281 fi
2282 done
2283
2284    for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
2285 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
2286 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
2287 do
2288 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2289 echo "configure:2290: checking for $ac_func" >&5
2290 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2291   echo $ac_n "(cached) $ac_c" 1>&6
2292 else
2293   cat > conftest.$ac_ext <<EOF
2294 #line 2295 "configure"
2295 #include "confdefs.h"
2296 /* System header to define __stub macros and hopefully few prototypes,
2297     which can conflict with char $ac_func(); below.  */
2298 #include <assert.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 $ac_func();
2303
2304 int main() {
2305
2306 /* The GNU C library defines this for functions which it implements
2307     to always fail with ENOSYS.  Some functions are actually named
2308     something starting with __ and the normal name is an alias.  */
2309 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2310 choke me
2311 #else
2312 $ac_func();
2313 #endif
2314
2315 ; return 0; }
2316 EOF
2317 if { (eval echo configure:2318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2318   rm -rf conftest*
2319   eval "ac_cv_func_$ac_func=yes"
2320 else
2321   echo "configure: failed program was:" >&5
2322   cat conftest.$ac_ext >&5
2323   rm -rf conftest*
2324   eval "ac_cv_func_$ac_func=no"
2325 fi
2326 rm -f conftest*
2327 fi
2328
2329 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2330   echo "$ac_t""yes" 1>&6
2331     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2332   cat >> confdefs.h <<EOF
2333 #define $ac_tr_func 1
2334 EOF
2335  
2336 else
2337   echo "$ac_t""no" 1>&6
2338 fi
2339 done
2340
2341
2342    
2343     
2344   # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
2345 if test "${with_libiconv_prefix+set}" = set; then
2346   withval="$with_libiconv_prefix"
2347   
2348     for dir in `echo "$withval" | tr : ' '`; do
2349       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
2350       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
2351     done
2352    
2353 fi
2354
2355
2356   echo $ac_n "checking for iconv""... $ac_c" 1>&6
2357 echo "configure:2358: checking for iconv" >&5
2358 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
2359   echo $ac_n "(cached) $ac_c" 1>&6
2360 else
2361   
2362     am_cv_func_iconv="no, consider installing GNU libiconv"
2363     am_cv_lib_iconv=no
2364     cat > conftest.$ac_ext <<EOF
2365 #line 2366 "configure"
2366 #include "confdefs.h"
2367 #include <stdlib.h>
2368 #include <iconv.h>
2369 int main() {
2370 iconv_t cd = iconv_open("","");
2371        iconv(cd,NULL,NULL,NULL,NULL);
2372        iconv_close(cd);
2373 ; return 0; }
2374 EOF
2375 if { (eval echo configure:2376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2376   rm -rf conftest*
2377   am_cv_func_iconv=yes
2378 else
2379   echo "configure: failed program was:" >&5
2380   cat conftest.$ac_ext >&5
2381 fi
2382 rm -f conftest*
2383     if test "$am_cv_func_iconv" != yes; then
2384       am_save_LIBS="$LIBS"
2385       LIBS="$LIBS -liconv"
2386       cat > conftest.$ac_ext <<EOF
2387 #line 2388 "configure"
2388 #include "confdefs.h"
2389 #include <stdlib.h>
2390 #include <iconv.h>
2391 int main() {
2392 iconv_t cd = iconv_open("","");
2393          iconv(cd,NULL,NULL,NULL,NULL);
2394          iconv_close(cd);
2395 ; return 0; }
2396 EOF
2397 if { (eval echo configure:2398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2398   rm -rf conftest*
2399   am_cv_lib_iconv=yes
2400         am_cv_func_iconv=yes
2401 else
2402   echo "configure: failed program was:" >&5
2403   cat conftest.$ac_ext >&5
2404 fi
2405 rm -f conftest*
2406       LIBS="$am_save_LIBS"
2407     fi
2408   
2409 fi
2410
2411 echo "$ac_t""$am_cv_func_iconv" 1>&6
2412   if test "$am_cv_func_iconv" = yes; then
2413     cat >> confdefs.h <<\EOF
2414 #define HAVE_ICONV 1
2415 EOF
2416
2417     echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
2418 echo "configure:2419: checking for iconv declaration" >&5
2419     if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
2420   echo $ac_n "(cached) $ac_c" 1>&6
2421 else
2422   
2423       cat > conftest.$ac_ext <<EOF
2424 #line 2425 "configure"
2425 #include "confdefs.h"
2426
2427 #include <stdlib.h>
2428 #include <iconv.h>
2429 extern
2430 #ifdef __cplusplus
2431 "C"
2432 #endif
2433 #if defined(__STDC__) || defined(__cplusplus)
2434 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
2435 #else
2436 size_t iconv();
2437 #endif
2438
2439 int main() {
2440
2441 ; return 0; }
2442 EOF
2443 if { (eval echo configure:2444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2444   rm -rf conftest*
2445   am_cv_proto_iconv_arg1=""
2446 else
2447   echo "configure: failed program was:" >&5
2448   cat conftest.$ac_ext >&5
2449   rm -rf conftest*
2450   am_cv_proto_iconv_arg1="const"
2451 fi
2452 rm -f conftest*
2453       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
2454 fi
2455
2456     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
2457     echo "$ac_t""${ac_t:-
2458          }$am_cv_proto_iconv" 1>&6
2459     cat >> confdefs.h <<EOF
2460 #define ICONV_CONST $am_cv_proto_iconv_arg1
2461 EOF
2462
2463   fi
2464   LIBICONV=
2465   if test "$am_cv_lib_iconv" = yes; then
2466     LIBICONV="-liconv"
2467   fi
2468   
2469
2470    
2471   echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
2472 echo "configure:2473: checking for nl_langinfo and CODESET" >&5
2473 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
2474   echo $ac_n "(cached) $ac_c" 1>&6
2475 else
2476   cat > conftest.$ac_ext <<EOF
2477 #line 2478 "configure"
2478 #include "confdefs.h"
2479 #include <langinfo.h>
2480 int main() {
2481 char* cs = nl_langinfo(CODESET);
2482 ; return 0; }
2483 EOF
2484 if { (eval echo configure:2485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2485   rm -rf conftest*
2486   am_cv_langinfo_codeset=yes
2487 else
2488   echo "configure: failed program was:" >&5
2489   cat conftest.$ac_ext >&5
2490   rm -rf conftest*
2491   am_cv_langinfo_codeset=no
2492 fi
2493 rm -f conftest*
2494     
2495 fi
2496
2497 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
2498   if test $am_cv_langinfo_codeset = yes; then
2499     cat >> confdefs.h <<\EOF
2500 #define HAVE_LANGINFO_CODESET 1
2501 EOF
2502
2503   fi
2504
2505    if test $ac_cv_header_locale_h = yes; then
2506     echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2507 echo "configure:2508: checking for LC_MESSAGES" >&5
2508 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2509   echo $ac_n "(cached) $ac_c" 1>&6
2510 else
2511   cat > conftest.$ac_ext <<EOF
2512 #line 2513 "configure"
2513 #include "confdefs.h"
2514 #include <locale.h>
2515 int main() {
2516 return LC_MESSAGES
2517 ; return 0; }
2518 EOF
2519 if { (eval echo configure:2520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2520   rm -rf conftest*
2521   am_cv_val_LC_MESSAGES=yes
2522 else
2523   echo "configure: failed program was:" >&5
2524   cat conftest.$ac_ext >&5
2525   rm -rf conftest*
2526   am_cv_val_LC_MESSAGES=no
2527 fi
2528 rm -f conftest*
2529 fi
2530
2531 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2532     if test $am_cv_val_LC_MESSAGES = yes; then
2533       cat >> confdefs.h <<\EOF
2534 #define HAVE_LC_MESSAGES 1
2535 EOF
2536
2537     fi
2538   fi
2539    echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2540 echo "configure:2541: checking whether NLS is requested" >&5
2541         # Check whether --enable-nls or --disable-nls was given.
2542 if test "${enable_nls+set}" = set; then
2543   enableval="$enable_nls"
2544   USE_NLS=$enableval
2545 else
2546   USE_NLS=yes
2547 fi
2548
2549     echo "$ac_t""$USE_NLS" 1>&6
2550     
2551
2552     BUILD_INCLUDED_LIBINTL=no
2553     USE_INCLUDED_LIBINTL=no
2554     INTLLIBS=
2555
2556         if test "$USE_NLS" = "yes"; then
2557       cat >> confdefs.h <<\EOF
2558 #define ENABLE_NLS 1
2559 EOF
2560
2561       echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2562 echo "configure:2563: checking whether included gettext is requested" >&5
2563       # Check whether --with-included-gettext or --without-included-gettext was given.
2564 if test "${with_included_gettext+set}" = set; then
2565   withval="$with_included_gettext"
2566   nls_cv_force_use_gnu_gettext=$withval
2567 else
2568   nls_cv_force_use_gnu_gettext=no
2569 fi
2570
2571       echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2572
2573       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2574       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2575                                 CATOBJEXT=NONE
2576
2577                 
2578         
2579
2580         ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2581 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2582 echo "configure:2583: checking for libintl.h" >&5
2583 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2584   echo $ac_n "(cached) $ac_c" 1>&6
2585 else
2586   cat > conftest.$ac_ext <<EOF
2587 #line 2588 "configure"
2588 #include "confdefs.h"
2589 #include <libintl.h>
2590 EOF
2591 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2592 { (eval echo configure:2593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2593 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2594 if test -z "$ac_err"; then
2595   rm -rf conftest*
2596   eval "ac_cv_header_$ac_safe=yes"
2597 else
2598   echo "$ac_err" >&5
2599   echo "configure: failed program was:" >&5
2600   cat conftest.$ac_ext >&5
2601   rm -rf conftest*
2602   eval "ac_cv_header_$ac_safe=no"
2603 fi
2604 rm -f conftest*
2605 fi
2606 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2607   echo "$ac_t""yes" 1>&6
2608   echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
2609 echo "configure:2610: checking for GNU gettext in libc" >&5
2610 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
2611   echo $ac_n "(cached) $ac_c" 1>&6
2612 else
2613   cat > conftest.$ac_ext <<EOF
2614 #line 2615 "configure"
2615 #include "confdefs.h"
2616 #include <libintl.h>
2617 extern int _nl_msg_cat_cntr;
2618 int main() {
2619 bindtextdomain ("", "");
2620 return (int) gettext ("") + _nl_msg_cat_cntr
2621 ; return 0; }
2622 EOF
2623 if { (eval echo configure:2624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2624   rm -rf conftest*
2625   gt_cv_func_gnugettext1_libc=yes
2626 else
2627   echo "configure: failed program was:" >&5
2628   cat conftest.$ac_ext >&5
2629   rm -rf conftest*
2630   gt_cv_func_gnugettext1_libc=no
2631 fi
2632 rm -f conftest*
2633 fi
2634
2635 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
2636
2637            if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
2638              echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
2639 echo "configure:2640: checking for GNU gettext in libintl" >&5
2640 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
2641   echo $ac_n "(cached) $ac_c" 1>&6
2642 else
2643   gt_save_LIBS="$LIBS"
2644                 LIBS="$LIBS -lintl $LIBICONV"
2645                 cat > conftest.$ac_ext <<EOF
2646 #line 2647 "configure"
2647 #include "confdefs.h"
2648 #include <libintl.h>
2649 extern int _nl_msg_cat_cntr;
2650 int main() {
2651 bindtextdomain ("", "");
2652 return (int) gettext ("") + _nl_msg_cat_cntr
2653 ; return 0; }
2654 EOF
2655 if { (eval echo configure:2656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2656   rm -rf conftest*
2657   gt_cv_func_gnugettext1_libintl=yes
2658 else
2659   echo "configure: failed program was:" >&5
2660   cat conftest.$ac_ext >&5
2661   rm -rf conftest*
2662   gt_cv_func_gnugettext1_libintl=no
2663 fi
2664 rm -f conftest*
2665                 LIBS="$gt_save_LIBS"
2666 fi
2667
2668 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
2669            fi
2670
2671                                            if test "$gt_cv_func_gnugettext1_libc" = "yes" \
2672               || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
2673                    && test "$PACKAGE" != gettext; }; then
2674              cat >> confdefs.h <<\EOF
2675 #define HAVE_GETTEXT 1
2676 EOF
2677
2678
2679              if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
2680                                        INTLLIBS="-lintl $LIBICONV"
2681              fi
2682
2683              gt_save_LIBS="$LIBS"
2684              LIBS="$LIBS $INTLLIBS"
2685              for ac_func in dcgettext
2686 do
2687 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2688 echo "configure:2689: checking for $ac_func" >&5
2689 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2690   echo $ac_n "(cached) $ac_c" 1>&6
2691 else
2692   cat > conftest.$ac_ext <<EOF
2693 #line 2694 "configure"
2694 #include "confdefs.h"
2695 /* System header to define __stub macros and hopefully few prototypes,
2696     which can conflict with char $ac_func(); below.  */
2697 #include <assert.h>
2698 /* Override any gcc2 internal prototype to avoid an error.  */
2699 /* We use char because int might match the return type of a gcc2
2700     builtin and then its argument prototype would still apply.  */
2701 char $ac_func();
2702
2703 int main() {
2704
2705 /* The GNU C library defines this for functions which it implements
2706     to always fail with ENOSYS.  Some functions are actually named
2707     something starting with __ and the normal name is an alias.  */
2708 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2709 choke me
2710 #else
2711 $ac_func();
2712 #endif
2713
2714 ; return 0; }
2715 EOF
2716 if { (eval echo configure:2717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2717   rm -rf conftest*
2718   eval "ac_cv_func_$ac_func=yes"
2719 else
2720   echo "configure: failed program was:" >&5
2721   cat conftest.$ac_ext >&5
2722   rm -rf conftest*
2723   eval "ac_cv_func_$ac_func=no"
2724 fi
2725 rm -f conftest*
2726 fi
2727
2728 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2729   echo "$ac_t""yes" 1>&6
2730     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2731   cat >> confdefs.h <<EOF
2732 #define $ac_tr_func 1
2733 EOF
2734  
2735 else
2736   echo "$ac_t""no" 1>&6
2737 fi
2738 done
2739
2740              LIBS="$gt_save_LIBS"
2741
2742                      # Extract the first word of "msgfmt", so it can be a program name with args.
2743 set dummy msgfmt; ac_word=$2
2744 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2745 echo "configure:2746: checking for $ac_word" >&5
2746 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2747   echo $ac_n "(cached) $ac_c" 1>&6
2748 else
2749   case "$MSGFMT" in
2750   /*)
2751   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2752   ;;
2753   *)
2754   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2755   for ac_dir in $PATH; do
2756     test -z "$ac_dir" && ac_dir=.
2757     if test -f $ac_dir/$ac_word; then
2758       if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2759         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2760         break
2761       fi
2762     fi
2763   done
2764   IFS="$ac_save_ifs"
2765   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2766   ;;
2767 esac
2768 fi
2769 MSGFMT="$ac_cv_path_MSGFMT"
2770 if test "$MSGFMT" != ":"; then
2771   echo "$ac_t""$MSGFMT" 1>&6
2772 else
2773   echo "$ac_t""no" 1>&6
2774 fi
2775
2776              # Extract the first word of "gmsgfmt", so it can be a program name with args.
2777 set dummy gmsgfmt; ac_word=$2
2778 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2779 echo "configure:2780: checking for $ac_word" >&5
2780 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2781   echo $ac_n "(cached) $ac_c" 1>&6
2782 else
2783   case "$GMSGFMT" in
2784   /*)
2785   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2786   ;;
2787   ?:/*)                  
2788   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2789   ;;
2790   *)
2791   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2792   ac_dummy="$PATH"
2793   for ac_dir in $ac_dummy; do 
2794     test -z "$ac_dir" && ac_dir=.
2795     if test -f $ac_dir/$ac_word; then
2796       ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2797       break
2798     fi
2799   done
2800   IFS="$ac_save_ifs"
2801   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2802   ;;
2803 esac
2804 fi
2805 GMSGFMT="$ac_cv_path_GMSGFMT"
2806 if test -n "$GMSGFMT"; then
2807   echo "$ac_t""$GMSGFMT" 1>&6
2808 else
2809   echo "$ac_t""no" 1>&6
2810 fi
2811
2812
2813                      # Extract the first word of "xgettext", so it can be a program name with args.
2814 set dummy xgettext; ac_word=$2
2815 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2816 echo "configure:2817: checking for $ac_word" >&5
2817 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2818   echo $ac_n "(cached) $ac_c" 1>&6
2819 else
2820   case "$XGETTEXT" in
2821   /*)
2822   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2823   ;;
2824   *)
2825   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2826   for ac_dir in $PATH; do
2827     test -z "$ac_dir" && ac_dir=.
2828     if test -f $ac_dir/$ac_word; then
2829       if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2830         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2831         break
2832       fi
2833     fi
2834   done
2835   IFS="$ac_save_ifs"
2836   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2837   ;;
2838 esac
2839 fi
2840 XGETTEXT="$ac_cv_path_XGETTEXT"
2841 if test "$XGETTEXT" != ":"; then
2842   echo "$ac_t""$XGETTEXT" 1>&6
2843 else
2844   echo "$ac_t""no" 1>&6
2845 fi
2846
2847
2848              CATOBJEXT=.gmo
2849            fi
2850         
2851 else
2852   echo "$ac_t""no" 1>&6
2853 fi
2854
2855
2856         if test "$CATOBJEXT" = "NONE"; then
2857                           nls_cv_use_gnu_gettext=yes
2858         fi
2859       fi
2860
2861       if test "$nls_cv_use_gnu_gettext" = "yes"; then
2862                 INTLOBJS="\$(GETTOBJS)"
2863         # Extract the first word of "msgfmt", so it can be a program name with args.
2864 set dummy msgfmt; ac_word=$2
2865 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2866 echo "configure:2867: checking for $ac_word" >&5
2867 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2868   echo $ac_n "(cached) $ac_c" 1>&6
2869 else
2870   case "$MSGFMT" in
2871   /*)
2872   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2873   ;;
2874   *)
2875   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2876   for ac_dir in $PATH; do
2877     test -z "$ac_dir" && ac_dir=.
2878     if test -f $ac_dir/$ac_word; then
2879       if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2880         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2881         break
2882       fi
2883     fi
2884   done
2885   IFS="$ac_save_ifs"
2886   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2887   ;;
2888 esac
2889 fi
2890 MSGFMT="$ac_cv_path_MSGFMT"
2891 if test "$MSGFMT" != ":"; then
2892   echo "$ac_t""$MSGFMT" 1>&6
2893 else
2894   echo "$ac_t""no" 1>&6
2895 fi
2896
2897         # Extract the first word of "gmsgfmt", so it can be a program name with args.
2898 set dummy gmsgfmt; ac_word=$2
2899 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2900 echo "configure:2901: checking for $ac_word" >&5
2901 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2902   echo $ac_n "(cached) $ac_c" 1>&6
2903 else
2904   case "$GMSGFMT" in
2905   /*)
2906   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2907   ;;
2908   ?:/*)                  
2909   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2910   ;;
2911   *)
2912   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2913   ac_dummy="$PATH"
2914   for ac_dir in $ac_dummy; do 
2915     test -z "$ac_dir" && ac_dir=.
2916     if test -f $ac_dir/$ac_word; then
2917       ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2918       break
2919     fi
2920   done
2921   IFS="$ac_save_ifs"
2922   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2923   ;;
2924 esac
2925 fi
2926 GMSGFMT="$ac_cv_path_GMSGFMT"
2927 if test -n "$GMSGFMT"; then
2928   echo "$ac_t""$GMSGFMT" 1>&6
2929 else
2930   echo "$ac_t""no" 1>&6
2931 fi
2932
2933         # Extract the first word of "xgettext", so it can be a program name with args.
2934 set dummy xgettext; ac_word=$2
2935 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2936 echo "configure:2937: checking for $ac_word" >&5
2937 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2938   echo $ac_n "(cached) $ac_c" 1>&6
2939 else
2940   case "$XGETTEXT" in
2941   /*)
2942   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2943   ;;
2944   *)
2945   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2946   for ac_dir in $PATH; do
2947     test -z "$ac_dir" && ac_dir=.
2948     if test -f $ac_dir/$ac_word; then
2949       if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2950         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2951         break
2952       fi
2953     fi
2954   done
2955   IFS="$ac_save_ifs"
2956   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2957   ;;
2958 esac
2959 fi
2960 XGETTEXT="$ac_cv_path_XGETTEXT"
2961 if test "$XGETTEXT" != ":"; then
2962   echo "$ac_t""$XGETTEXT" 1>&6
2963 else
2964   echo "$ac_t""no" 1>&6
2965 fi
2966
2967         
2968         BUILD_INCLUDED_LIBINTL=yes
2969         USE_INCLUDED_LIBINTL=yes
2970         CATOBJEXT=.gmo
2971         INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
2972         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
2973       fi
2974
2975                   if test "$GMSGFMT" != ":"; then
2976                         if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
2977           : ;
2978         else
2979           echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
2980           GMSGFMT=":"
2981         fi
2982       fi
2983
2984                   if test "$XGETTEXT" != ":"; then
2985                         if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
2986           : ;
2987         else
2988           echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
2989           XGETTEXT=":"
2990         fi
2991       fi
2992
2993             POSUB=po
2994     fi
2995     
2996
2997
2998             if test "$PACKAGE" = gettext; then
2999       BUILD_INCLUDED_LIBINTL=yes
3000     fi
3001
3002                                             for ac_prog in bison
3003 do
3004 # Extract the first word of "$ac_prog", so it can be a program name with args.
3005 set dummy $ac_prog; ac_word=$2
3006 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3007 echo "configure:3008: checking for $ac_word" >&5
3008 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
3009   echo $ac_n "(cached) $ac_c" 1>&6
3010 else
3011   if test -n "$INTLBISON"; then
3012   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
3013 else
3014   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3015   ac_dummy="$PATH"
3016   for ac_dir in $ac_dummy; do
3017     test -z "$ac_dir" && ac_dir=.
3018     if test -f $ac_dir/$ac_word; then
3019       ac_cv_prog_INTLBISON="$ac_prog"
3020       break
3021     fi
3022   done
3023   IFS="$ac_save_ifs"
3024 fi
3025 fi
3026 INTLBISON="$ac_cv_prog_INTLBISON"
3027 if test -n "$INTLBISON"; then
3028   echo "$ac_t""$INTLBISON" 1>&6
3029 else
3030   echo "$ac_t""no" 1>&6
3031 fi
3032
3033 test -n "$INTLBISON" && break
3034 done
3035
3036     if test -z "$INTLBISON"; then
3037       ac_verc_fail=yes
3038     else
3039             echo $ac_n "checking version of bison""... $ac_c" 1>&6
3040 echo "configure:3041: checking version of bison" >&5
3041       ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
3042       case $ac_prog_version in
3043         '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3044         1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
3045            ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3046         *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3047       esac
3048       echo "$ac_t""$ac_prog_version" 1>&6
3049     fi
3050     if test $ac_verc_fail = yes; then
3051       INTLBISON=:
3052     fi
3053
3054                 for lang in $ALL_LINGUAS; do
3055       GMOFILES="$GMOFILES $lang.gmo"
3056       POFILES="$POFILES $lang.po"
3057     done
3058
3059         
3060     
3061     
3062     
3063     
3064     
3065     
3066     
3067     
3068
3069         nls_cv_header_intl=
3070     nls_cv_header_libgt=
3071
3072         DATADIRNAME=share
3073     
3074
3075         INSTOBJEXT=.mo
3076     
3077
3078         GENCAT=gencat
3079     
3080   
3081
3082    if test "x$CATOBJEXT" != "x"; then
3083      if test "x$ALL_LINGUAS" = "x"; then
3084        LINGUAS=
3085      else
3086        echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3087 echo "configure:3088: checking for catalogs to be installed" >&5
3088        NEW_LINGUAS=
3089        for presentlang in $ALL_LINGUAS; do
3090          useit=no
3091          for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
3092            # Use the presentlang catalog if desiredlang is
3093            #   a. equal to presentlang, or
3094            #   b. a variant of presentlang (because in this case,
3095            #      presentlang can be used as a fallback for messages
3096            #      which are not translated in the desiredlang catalog).
3097            case "$desiredlang" in
3098              "$presentlang"*) useit=yes;;
3099            esac
3100          done
3101          if test $useit = yes; then
3102            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
3103          fi
3104        done
3105        LINGUAS=$NEW_LINGUAS
3106        echo "$ac_t""$LINGUAS" 1>&6
3107      fi
3108
3109           if test -n "$LINGUAS"; then
3110        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3111      fi
3112    fi
3113
3114             MKINSTALLDIRS=
3115    if test -n "$ac_aux_dir"; then
3116      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3117    fi
3118    if test -z "$MKINSTALLDIRS"; then
3119      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3120    fi
3121    
3122
3123       INTL_LIBTOOL_SUFFIX_PREFIX=
3124    
3125   
3126
3127 # Find a good install program.  We prefer a C program (faster),
3128 # so one script is as good as another.  But avoid the broken or
3129 # incompatible versions:
3130 # SysV /etc/install, /usr/sbin/install
3131 # SunOS /usr/etc/install
3132 # IRIX /sbin/install
3133 # AIX /bin/install
3134 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3135 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3136 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3137 # ./install, which can be erroneously created by make from ./install.sh.
3138 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3139 echo "configure:3140: checking for a BSD compatible install" >&5
3140 if test -z "$INSTALL"; then
3141 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3142   echo $ac_n "(cached) $ac_c" 1>&6
3143 else
3144     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
3145   for ac_dir in $PATH; do
3146     # Account for people who put trailing slashes in PATH elements.
3147     case "$ac_dir/" in
3148     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3149     *)
3150       # OSF1 and SCO ODT 3.0 have their own names for install.
3151       # Don't use installbsd from OSF since it installs stuff as root
3152       # by default.
3153       for ac_prog in ginstall scoinst install; do
3154         if test -f $ac_dir/$ac_prog; then
3155           if test $ac_prog = install &&
3156             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3157             # AIX install.  It has an incompatible calling convention.
3158             :
3159           else
3160             ac_cv_path_install="$ac_dir/$ac_prog -c"
3161             break 2
3162           fi
3163         fi
3164       done
3165       ;;
3166     esac
3167   done
3168   IFS="$ac_save_IFS"
3169
3170 fi
3171   if test "${ac_cv_path_install+set}" = set; then
3172     INSTALL="$ac_cv_path_install"
3173   else
3174     # As a last resort, use the slow shell script.  We don't cache a
3175     # path for INSTALL within a source directory, because that will
3176     # break other packages using the cache if that directory is
3177     # removed, or if the path is relative.
3178     INSTALL="$ac_install_sh"
3179   fi
3180 fi
3181 echo "$ac_t""$INSTALL" 1>&6
3182
3183 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3184 # It thinks the first close brace ends the variable substitution.
3185 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3186
3187 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3188
3189 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3190
3191
3192 echo $ac_n "checking for working const""... $ac_c" 1>&6
3193 echo "configure:3194: checking for working const" >&5
3194 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3195   echo $ac_n "(cached) $ac_c" 1>&6
3196 else
3197   cat > conftest.$ac_ext <<EOF
3198 #line 3199 "configure"
3199 #include "confdefs.h"
3200
3201 int main() {
3202
3203 /* Ultrix mips cc rejects this.  */
3204 typedef int charset[2]; const charset x;
3205 /* SunOS 4.1.1 cc rejects this.  */
3206 char const *const *ccp;
3207 char **p;
3208 /* NEC SVR4.0.2 mips cc rejects this.  */
3209 struct point {int x, y;};
3210 static struct point const zero = {0,0};
3211 /* AIX XL C 1.02.0.0 rejects this.
3212    It does not let you subtract one const X* pointer from another in an arm
3213    of an if-expression whose if-part is not a constant expression */
3214 const char *g = "string";
3215 ccp = &g + (g ? g-g : 0);
3216 /* HPUX 7.0 cc rejects these. */
3217 ++ccp;
3218 p = (char**) ccp;
3219 ccp = (char const *const *) p;
3220 { /* SCO 3.2v4 cc rejects this.  */
3221   char *t;
3222   char const *s = 0 ? (char *) 0 : (char const *) 0;
3223
3224   *t++ = 0;
3225 }
3226 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3227   int x[] = {25, 17};
3228   const int *foo = &x[0];
3229   ++foo;
3230 }
3231 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3232   typedef const int *iptr;
3233   iptr p = 0;
3234   ++p;
3235 }
3236 { /* AIX XL C 1.02.0.0 rejects this saying
3237      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3238   struct s { int j; const int *ap[3]; };
3239   struct s *b; b->j = 5;
3240 }
3241 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3242   const int foo = 10;
3243 }
3244
3245 ; return 0; }
3246 EOF
3247 if { (eval echo configure:3248: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3248   rm -rf conftest*
3249   ac_cv_c_const=yes
3250 else
3251   echo "configure: failed program was:" >&5
3252   cat conftest.$ac_ext >&5
3253   rm -rf conftest*
3254   ac_cv_c_const=no
3255 fi
3256 rm -f conftest*
3257 fi
3258
3259 echo "$ac_t""$ac_cv_c_const" 1>&6
3260 if test $ac_cv_c_const = no; then
3261   cat >> confdefs.h <<\EOF
3262 #define const 
3263 EOF
3264
3265 fi
3266
3267 echo $ac_n "checking for inline""... $ac_c" 1>&6
3268 echo "configure:3269: checking for inline" >&5
3269 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3270   echo $ac_n "(cached) $ac_c" 1>&6
3271 else
3272   ac_cv_c_inline=no
3273 for ac_kw in inline __inline__ __inline; do
3274   cat > conftest.$ac_ext <<EOF
3275 #line 3276 "configure"
3276 #include "confdefs.h"
3277
3278 int main() {
3279 } $ac_kw foo() {
3280 ; return 0; }
3281 EOF
3282 if { (eval echo configure:3283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3283   rm -rf conftest*
3284   ac_cv_c_inline=$ac_kw; break
3285 else
3286   echo "configure: failed program was:" >&5
3287   cat conftest.$ac_ext >&5
3288 fi
3289 rm -f conftest*
3290 done
3291
3292 fi
3293
3294 echo "$ac_t""$ac_cv_c_inline" 1>&6
3295 case "$ac_cv_c_inline" in
3296   inline | yes) ;;
3297   no) cat >> confdefs.h <<\EOF
3298 #define inline 
3299 EOF
3300  ;;
3301   *)  cat >> confdefs.h <<EOF
3302 #define inline $ac_cv_c_inline
3303 EOF
3304  ;;
3305 esac
3306
3307
3308 vlc_LDFLAGS="${LDFLAGS}"
3309
3310 case "x${target_os}" in
3311   x)
3312     SYS=unknown
3313     ;;
3314   xlinux*)
3315     SYS=linux
3316     ;;
3317   xbsdi*)
3318     SYS=bsdi
3319     save_CFLAGS="${save_CFLAGS} -pthread"; CFLAGS="${save_CFLAGS}"
3320     dvd_LDFLAGS="${dvd_LDFLAGS} -ldvd"
3321     vcd_LDFLAGS="${vcd_LDFLAGS} -ldvd"
3322     ;;
3323   x*bsd*)
3324     SYS="${target_os}"
3325     save_CFLAGS="${save_CFLAGS} -pthread"; CFLAGS="${save_CFLAGS}"
3326     ;;
3327   xdarwin*)
3328     SYS=darwin
3329     save_CFLAGS="${save_CFLAGS} -no-cpp-precomp"; CFLAGS="${save_CFLAGS}"
3330     vlc_LDFLAGS="${vlc_LDFLAGS} -all_load"
3331     ;;
3332   x*mingw32*)
3333     SYS=mingw32
3334     # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3335 set dummy ${ac_tool_prefix}windres; ac_word=$2
3336 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3337 echo "configure:3338: checking for $ac_word" >&5
3338 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3339   echo $ac_n "(cached) $ac_c" 1>&6
3340 else
3341   if test -n "$WINDRES"; then
3342   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3343 else
3344   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3345   ac_dummy="$PATH"
3346   for ac_dir in $ac_dummy; do
3347     test -z "$ac_dir" && ac_dir=.
3348     if test -f $ac_dir/$ac_word; then
3349       ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
3350       break
3351     fi
3352   done
3353   IFS="$ac_save_ifs"
3354 fi
3355 fi
3356 WINDRES="$ac_cv_prog_WINDRES"
3357 if test -n "$WINDRES"; then
3358   echo "$ac_t""$WINDRES" 1>&6
3359 else
3360   echo "$ac_t""no" 1>&6
3361 fi
3362
3363
3364 if test -z "$ac_cv_prog_WINDRES"; then
3365 if test -n "$ac_tool_prefix"; then
3366   # Extract the first word of "windres", so it can be a program name with args.
3367 set dummy windres; ac_word=$2
3368 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3369 echo "configure:3370: checking for $ac_word" >&5
3370 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3371   echo $ac_n "(cached) $ac_c" 1>&6
3372 else
3373   if test -n "$WINDRES"; then
3374   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3375 else
3376   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3377   ac_dummy="$PATH"
3378   for ac_dir in $ac_dummy; do
3379     test -z "$ac_dir" && ac_dir=.
3380     if test -f $ac_dir/$ac_word; then
3381       ac_cv_prog_WINDRES="windres"
3382       break
3383     fi
3384   done
3385   IFS="$ac_save_ifs"
3386   test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES=":"
3387 fi
3388 fi
3389 WINDRES="$ac_cv_prog_WINDRES"
3390 if test -n "$WINDRES"; then
3391   echo "$ac_t""$WINDRES" 1>&6
3392 else
3393   echo "$ac_t""no" 1>&6
3394 fi
3395
3396 else
3397   WINDRES=":"
3398 fi
3399 fi
3400
3401     save_CFLAGS="${save_CFLAGS} -fnative-struct -D_OFF_T_ -D_off_t=long"; CFLAGS="${save_CFLAGS}"
3402     vlc_LDFLAGS="${vlc_LDFLAGS} -mwindows -Xlinker --force-exe-suffix"
3403     vlc_LDFLAGS="${vlc_LDFLAGS} -lws2_32 -lnetapi32"
3404     ipv4_LDFLAGS="${ipv4_LDFLAGS} -lws2_32"
3405     ipv6_LDFLAGS="${ipv6_LDFLAGS} -lws2_32"
3406     http_LDFLAGS="${http_LDFLAGS} -lws2_32"
3407     rc_LDFLAGS="${rc_LDFLAGS} -lws2_32"
3408     ;;
3409   x*nto*)
3410     SYS=nto
3411     x11_LDFLAGS="${x11_LDFLAGS} -lsocket"
3412     xvideo_LDFLAGS="${xvideo_LDFLAGS} -lsocket"
3413     ;;
3414   xsolaris*)
3415     SYS=solaris
3416     ;;
3417   xbeos)
3418     SYS=beos
3419     save_CFLAGS="${save_CFLAGS} -Wno-multichar -Wno-ctor-dtor-privacy -Woverloaded-virtual"; CFLAGS="${save_CFLAGS}"
3420     vlc_LDFLAGS="${vlc_LDFLAGS} -lbe"
3421     plugins_LDFLAGS="${plugins_LDFLAGS} -nostart"
3422     beos_LDFLAGS="${beos_LDFLAGS} -lbe -lgame -lroot -ltracker"
3423     ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
3424     ;;
3425   x*)
3426     SYS="${target_os}"
3427     ;;
3428 esac
3429
3430 if test "x${SYS}" = "xmingw32"
3431 then
3432   plugins_CFLAGS="${plugins_CFLAGS} -fnative-struct"
3433 else
3434   plugins_CFLAGS="${plugins_CFLAGS} -fPIC"
3435   plugins_LDFLAGS="${plugins_LDFLAGS} -fPIC"
3436 fi
3437
3438 save_CFLAGS="${save_CFLAGS} -DSYS_`echo ${SYS} | sed -e 's/-.*//' | tr 'abcdefghijklmnopqrstuvwxyz.' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`"; CFLAGS="${save_CFLAGS}"
3439
3440 for ac_func in gettimeofday select strerror strtod strtol isatty vasprintf swab sigrelse getpwuid memalign posix_memalign gethostbyname2 atoll strndup
3441 do
3442 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3443 echo "configure:3444: checking for $ac_func" >&5
3444 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3445   echo $ac_n "(cached) $ac_c" 1>&6
3446 else
3447   cat > conftest.$ac_ext <<EOF
3448 #line 3449 "configure"
3449 #include "confdefs.h"
3450 /* System header to define __stub macros and hopefully few prototypes,
3451     which can conflict with char $ac_func(); below.  */
3452 #include <assert.h>
3453 /* Override any gcc2 internal prototype to avoid an error.  */
3454 /* We use char because int might match the return type of a gcc2
3455     builtin and then its argument prototype would still apply.  */
3456 char $ac_func();
3457
3458 int main() {
3459
3460 /* The GNU C library defines this for functions which it implements
3461     to always fail with ENOSYS.  Some functions are actually named
3462     something starting with __ and the normal name is an alias.  */
3463 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3464 choke me
3465 #else
3466 $ac_func();
3467 #endif
3468
3469 ; return 0; }
3470 EOF
3471 if { (eval echo configure:3472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3472   rm -rf conftest*
3473   eval "ac_cv_func_$ac_func=yes"
3474 else
3475   echo "configure: failed program was:" >&5
3476   cat conftest.$ac_ext >&5
3477   rm -rf conftest*
3478   eval "ac_cv_func_$ac_func=no"
3479 fi
3480 rm -f conftest*
3481 fi
3482
3483 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3484   echo "$ac_t""yes" 1>&6
3485     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3486   cat >> confdefs.h <<EOF
3487 #define $ac_tr_func 1
3488 EOF
3489  
3490 else
3491   echo "$ac_t""no" 1>&6
3492 fi
3493 done
3494
3495
3496 echo $ac_n "checking for connect""... $ac_c" 1>&6
3497 echo "configure:3498: checking for connect" >&5
3498 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3499   echo $ac_n "(cached) $ac_c" 1>&6
3500 else
3501   cat > conftest.$ac_ext <<EOF
3502 #line 3503 "configure"
3503 #include "confdefs.h"
3504 /* System header to define __stub macros and hopefully few prototypes,
3505     which can conflict with char connect(); below.  */
3506 #include <assert.h>
3507 /* Override any gcc2 internal prototype to avoid an error.  */
3508 /* We use char because int might match the return type of a gcc2
3509     builtin and then its argument prototype would still apply.  */
3510 char connect();
3511
3512 int main() {
3513
3514 /* The GNU C library defines this for functions which it implements
3515     to always fail with ENOSYS.  Some functions are actually named
3516     something starting with __ and the normal name is an alias.  */
3517 #if defined (__stub_connect) || defined (__stub___connect)
3518 choke me
3519 #else
3520 connect();
3521 #endif
3522
3523 ; return 0; }
3524 EOF
3525 if { (eval echo configure:3526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3526   rm -rf conftest*
3527   eval "ac_cv_func_connect=yes"
3528 else
3529   echo "configure: failed program was:" >&5
3530   cat conftest.$ac_ext >&5
3531   rm -rf conftest*
3532   eval "ac_cv_func_connect=no"
3533 fi
3534 rm -f conftest*
3535 fi
3536
3537 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3538   echo "$ac_t""yes" 1>&6
3539   :
3540 else
3541   echo "$ac_t""no" 1>&6
3542
3543   echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3544 echo "configure:3545: checking for connect in -lsocket" >&5
3545 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3546 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3547   echo $ac_n "(cached) $ac_c" 1>&6
3548 else
3549   ac_save_LIBS="$LIBS"
3550 LIBS="-lsocket  $LIBS"
3551 cat > conftest.$ac_ext <<EOF
3552 #line 3553 "configure"
3553 #include "confdefs.h"
3554 /* Override any gcc2 internal prototype to avoid an error.  */
3555 /* We use char because int might match the return type of a gcc2
3556     builtin and then its argument prototype would still apply.  */
3557 char connect();
3558
3559 int main() {
3560 connect()
3561 ; return 0; }
3562 EOF
3563 if { (eval echo configure:3564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3564   rm -rf conftest*
3565   eval "ac_cv_lib_$ac_lib_var=yes"
3566 else
3567   echo "configure: failed program was:" >&5
3568   cat conftest.$ac_ext >&5
3569   rm -rf conftest*
3570   eval "ac_cv_lib_$ac_lib_var=no"
3571 fi
3572 rm -f conftest*
3573 LIBS="$ac_save_LIBS"
3574
3575 fi
3576 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3577   echo "$ac_t""yes" 1>&6
3578   ipv4_LDFLAGS="${ipv4_LDFLAGS} -lsocket"
3579     vlc_LDFLAGS="${vlc_LDFLAGS} -lsocket"
3580
3581 else
3582   echo "$ac_t""no" 1>&6
3583 fi
3584
3585 fi
3586
3587 echo $ac_n "checking for send""... $ac_c" 1>&6
3588 echo "configure:3589: checking for send" >&5
3589 if eval "test \"`echo '$''{'ac_cv_func_send'+set}'`\" = set"; then
3590   echo $ac_n "(cached) $ac_c" 1>&6
3591 else
3592   cat > conftest.$ac_ext <<EOF
3593 #line 3594 "configure"
3594 #include "confdefs.h"
3595 /* System header to define __stub macros and hopefully few prototypes,
3596     which can conflict with char send(); below.  */
3597 #include <assert.h>
3598 /* Override any gcc2 internal prototype to avoid an error.  */
3599 /* We use char because int might match the return type of a gcc2
3600     builtin and then its argument prototype would still apply.  */
3601 char send();
3602
3603 int main() {
3604
3605 /* The GNU C library defines this for functions which it implements
3606     to always fail with ENOSYS.  Some functions are actually named
3607     something starting with __ and the normal name is an alias.  */
3608 #if defined (__stub_send) || defined (__stub___send)
3609 choke me
3610 #else
3611 send();
3612 #endif
3613
3614 ; return 0; }
3615 EOF
3616 if { (eval echo configure:3617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3617   rm -rf conftest*
3618   eval "ac_cv_func_send=yes"
3619 else
3620   echo "configure: failed program was:" >&5
3621   cat conftest.$ac_ext >&5
3622   rm -rf conftest*
3623   eval "ac_cv_func_send=no"
3624 fi
3625 rm -f conftest*
3626 fi
3627
3628 if eval "test \"`echo '$ac_cv_func_'send`\" = yes"; then
3629   echo "$ac_t""yes" 1>&6
3630   :
3631 else
3632   echo "$ac_t""no" 1>&6
3633
3634   echo $ac_n "checking for send in -lsocket""... $ac_c" 1>&6
3635 echo "configure:3636: checking for send in -lsocket" >&5
3636 ac_lib_var=`echo socket'_'send | sed 'y%./+-%__p_%'`
3637 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3638   echo $ac_n "(cached) $ac_c" 1>&6
3639 else
3640   ac_save_LIBS="$LIBS"
3641 LIBS="-lsocket  $LIBS"
3642 cat > conftest.$ac_ext <<EOF
3643 #line 3644 "configure"
3644 #include "confdefs.h"
3645 /* Override any gcc2 internal prototype to avoid an error.  */
3646 /* We use char because int might match the return type of a gcc2
3647     builtin and then its argument prototype would still apply.  */
3648 char send();
3649
3650 int main() {
3651 send()
3652 ; return 0; }
3653 EOF
3654 if { (eval echo configure:3655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3655   rm -rf conftest*
3656   eval "ac_cv_lib_$ac_lib_var=yes"
3657 else
3658   echo "configure: failed program was:" >&5
3659   cat conftest.$ac_ext >&5
3660   rm -rf conftest*
3661   eval "ac_cv_lib_$ac_lib_var=no"
3662 fi
3663 rm -f conftest*
3664 LIBS="$ac_save_LIBS"
3665
3666 fi
3667 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3668   echo "$ac_t""yes" 1>&6
3669   http_LDFLAGS="${http_LDFLAGS} -lsocket"
3670
3671 else
3672   echo "$ac_t""no" 1>&6
3673 fi
3674
3675 fi
3676
3677 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3678 echo "configure:3679: checking for gethostbyname" >&5
3679 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3680   echo $ac_n "(cached) $ac_c" 1>&6
3681 else
3682   cat > conftest.$ac_ext <<EOF
3683 #line 3684 "configure"
3684 #include "confdefs.h"
3685 /* System header to define __stub macros and hopefully few prototypes,
3686     which can conflict with char gethostbyname(); below.  */
3687 #include <assert.h>
3688 /* Override any gcc2 internal prototype to avoid an error.  */
3689 /* We use char because int might match the return type of a gcc2
3690     builtin and then its argument prototype would still apply.  */
3691 char gethostbyname();
3692
3693 int main() {
3694
3695 /* The GNU C library defines this for functions which it implements
3696     to always fail with ENOSYS.  Some functions are actually named
3697     something starting with __ and the normal name is an alias.  */
3698 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3699 choke me
3700 #else
3701 gethostbyname();
3702 #endif
3703
3704 ; return 0; }
3705 EOF
3706 if { (eval echo configure:3707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3707   rm -rf conftest*
3708   eval "ac_cv_func_gethostbyname=yes"
3709 else
3710   echo "configure: failed program was:" >&5
3711   cat conftest.$ac_ext >&5
3712   rm -rf conftest*
3713   eval "ac_cv_func_gethostbyname=no"
3714 fi
3715 rm -f conftest*
3716 fi
3717
3718 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3719   echo "$ac_t""yes" 1>&6
3720   :
3721 else
3722   echo "$ac_t""no" 1>&6
3723
3724   echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3725 echo "configure:3726: checking for gethostbyname in -lnsl" >&5
3726 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3727 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3728   echo $ac_n "(cached) $ac_c" 1>&6
3729 else
3730   ac_save_LIBS="$LIBS"
3731 LIBS="-lnsl  $LIBS"
3732 cat > conftest.$ac_ext <<EOF
3733 #line 3734 "configure"
3734 #include "confdefs.h"
3735 /* Override any gcc2 internal prototype to avoid an error.  */
3736 /* We use char because int might match the return type of a gcc2
3737     builtin and then its argument prototype would still apply.  */
3738 char gethostbyname();
3739
3740 int main() {
3741 gethostbyname()
3742 ; return 0; }
3743 EOF
3744 if { (eval echo configure:3745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3745   rm -rf conftest*
3746   eval "ac_cv_lib_$ac_lib_var=yes"
3747 else
3748   echo "configure: failed program was:" >&5
3749   cat conftest.$ac_ext >&5
3750   rm -rf conftest*
3751   eval "ac_cv_lib_$ac_lib_var=no"
3752 fi
3753 rm -f conftest*
3754 LIBS="$ac_save_LIBS"
3755
3756 fi
3757 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3758   echo "$ac_t""yes" 1>&6
3759   ipv4_LDFLAGS="${ipv4_LDFLAGS} -lnsl"
3760 else
3761   echo "$ac_t""no" 1>&6
3762 fi
3763
3764
3765 fi
3766
3767 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3768 echo "configure:3769: checking for gethostbyname" >&5
3769 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3770   echo $ac_n "(cached) $ac_c" 1>&6
3771 else
3772   cat > conftest.$ac_ext <<EOF
3773 #line 3774 "configure"
3774 #include "confdefs.h"
3775 /* System header to define __stub macros and hopefully few prototypes,
3776     which can conflict with char gethostbyname(); below.  */
3777 #include <assert.h>
3778 /* Override any gcc2 internal prototype to avoid an error.  */
3779 /* We use char because int might match the return type of a gcc2
3780     builtin and then its argument prototype would still apply.  */
3781 char gethostbyname();
3782
3783 int main() {
3784
3785 /* The GNU C library defines this for functions which it implements
3786     to always fail with ENOSYS.  Some functions are actually named
3787     something starting with __ and the normal name is an alias.  */
3788 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3789 choke me
3790 #else
3791 gethostbyname();
3792 #endif
3793
3794 ; return 0; }
3795 EOF
3796 if { (eval echo configure:3797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3797   rm -rf conftest*
3798   eval "ac_cv_func_gethostbyname=yes"
3799 else
3800   echo "configure: failed program was:" >&5
3801   cat conftest.$ac_ext >&5
3802   rm -rf conftest*
3803   eval "ac_cv_func_gethostbyname=no"
3804 fi
3805 rm -f conftest*
3806 fi
3807
3808 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3809   echo "$ac_t""yes" 1>&6
3810   :
3811 else
3812   echo "$ac_t""no" 1>&6
3813
3814   echo $ac_n "checking for gethostbyname in -lbind""... $ac_c" 1>&6
3815 echo "configure:3816: checking for gethostbyname in -lbind" >&5
3816 ac_lib_var=`echo bind'_'gethostbyname | sed 'y%./+-%__p_%'`
3817 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3818   echo $ac_n "(cached) $ac_c" 1>&6
3819 else
3820   ac_save_LIBS="$LIBS"
3821 LIBS="-lbind  $LIBS"
3822 cat > conftest.$ac_ext <<EOF
3823 #line 3824 "configure"
3824 #include "confdefs.h"
3825 /* Override any gcc2 internal prototype to avoid an error.  */
3826 /* We use char because int might match the return type of a gcc2
3827     builtin and then its argument prototype would still apply.  */
3828 char gethostbyname();
3829
3830 int main() {
3831 gethostbyname()
3832 ; return 0; }
3833 EOF
3834 if { (eval echo configure:3835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3835   rm -rf conftest*
3836   eval "ac_cv_lib_$ac_lib_var=yes"
3837 else
3838   echo "configure: failed program was:" >&5
3839   cat conftest.$ac_ext >&5
3840   rm -rf conftest*
3841   eval "ac_cv_lib_$ac_lib_var=no"
3842 fi
3843 rm -f conftest*
3844 LIBS="$ac_save_LIBS"
3845
3846 fi
3847 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3848   echo "$ac_t""yes" 1>&6
3849   ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
3850 else
3851   echo "$ac_t""no" 1>&6
3852 fi
3853
3854
3855 fi
3856
3857 have_nanosleep=0
3858 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
3859 echo "configure:3860: checking for nanosleep" >&5
3860 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
3861   echo $ac_n "(cached) $ac_c" 1>&6
3862 else
3863   cat > conftest.$ac_ext <<EOF
3864 #line 3865 "configure"
3865 #include "confdefs.h"
3866 /* System header to define __stub macros and hopefully few prototypes,
3867     which can conflict with char nanosleep(); below.  */
3868 #include <assert.h>
3869 /* Override any gcc2 internal prototype to avoid an error.  */
3870 /* We use char because int might match the return type of a gcc2
3871     builtin and then its argument prototype would still apply.  */
3872 char nanosleep();
3873
3874 int main() {
3875
3876 /* The GNU C library defines this for functions which it implements
3877     to always fail with ENOSYS.  Some functions are actually named
3878     something starting with __ and the normal name is an alias.  */
3879 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
3880 choke me
3881 #else
3882 nanosleep();
3883 #endif
3884
3885 ; return 0; }
3886 EOF
3887 if { (eval echo configure:3888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3888   rm -rf conftest*
3889   eval "ac_cv_func_nanosleep=yes"
3890 else
3891   echo "configure: failed program was:" >&5
3892   cat conftest.$ac_ext >&5
3893   rm -rf conftest*
3894   eval "ac_cv_func_nanosleep=no"
3895 fi
3896 rm -f conftest*
3897 fi
3898
3899 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
3900   echo "$ac_t""yes" 1>&6
3901   have_nanosleep=1
3902 else
3903   echo "$ac_t""no" 1>&6
3904
3905   echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
3906 echo "configure:3907: checking for nanosleep in -lrt" >&5
3907 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
3908 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3909   echo $ac_n "(cached) $ac_c" 1>&6
3910 else
3911   ac_save_LIBS="$LIBS"
3912 LIBS="-lrt  $LIBS"
3913 cat > conftest.$ac_ext <<EOF
3914 #line 3915 "configure"
3915 #include "confdefs.h"
3916 /* Override any gcc2 internal prototype to avoid an error.  */
3917 /* We use char because int might match the return type of a gcc2
3918     builtin and then its argument prototype would still apply.  */
3919 char nanosleep();
3920
3921 int main() {
3922 nanosleep()
3923 ; return 0; }
3924 EOF
3925 if { (eval echo configure:3926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3926   rm -rf conftest*
3927   eval "ac_cv_lib_$ac_lib_var=yes"
3928 else
3929   echo "configure: failed program was:" >&5
3930   cat conftest.$ac_ext >&5
3931   rm -rf conftest*
3932   eval "ac_cv_lib_$ac_lib_var=no"
3933 fi
3934 rm -f conftest*
3935 LIBS="$ac_save_LIBS"
3936
3937 fi
3938 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3939   echo "$ac_t""yes" 1>&6
3940   vlc_LDFLAGS="${vlc_LDFLAGS} -lrt"; have_nanosleep=1
3941 else
3942   echo "$ac_t""no" 1>&6
3943 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
3944 echo "configure:3945: checking for nanosleep in -lposix4" >&5
3945 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
3946 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3947   echo $ac_n "(cached) $ac_c" 1>&6
3948 else
3949   ac_save_LIBS="$LIBS"
3950 LIBS="-lposix4  $LIBS"
3951 cat > conftest.$ac_ext <<EOF
3952 #line 3953 "configure"
3953 #include "confdefs.h"
3954 /* Override any gcc2 internal prototype to avoid an error.  */
3955 /* We use char because int might match the return type of a gcc2
3956     builtin and then its argument prototype would still apply.  */
3957 char nanosleep();
3958
3959 int main() {
3960 nanosleep()
3961 ; return 0; }
3962 EOF
3963 if { (eval echo configure:3964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3964   rm -rf conftest*
3965   eval "ac_cv_lib_$ac_lib_var=yes"
3966 else
3967   echo "configure: failed program was:" >&5
3968   cat conftest.$ac_ext >&5
3969   rm -rf conftest*
3970   eval "ac_cv_lib_$ac_lib_var=no"
3971 fi
3972 rm -f conftest*
3973 LIBS="$ac_save_LIBS"
3974
3975 fi
3976 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3977   echo "$ac_t""yes" 1>&6
3978   vlc_LDFLAGS="${vlc_LDFLAGS} -lposix4"; have_nanosleep=1
3979 else
3980   echo "$ac_t""no" 1>&6
3981 fi
3982
3983   
3984 fi
3985
3986
3987 fi
3988
3989 if test x$have_nanosleep = x1; then
3990   cat >> confdefs.h <<\EOF
3991 #define HAVE_NANOSLEEP 1
3992 EOF
3993
3994 fi
3995 # HP/UX port
3996 echo $ac_n "checking for sem_init in -lrt""... $ac_c" 1>&6
3997 echo "configure:3998: checking for sem_init in -lrt" >&5
3998 ac_lib_var=`echo rt'_'sem_init | sed 'y%./+-%__p_%'`
3999 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4000   echo $ac_n "(cached) $ac_c" 1>&6
4001 else
4002   ac_save_LIBS="$LIBS"
4003 LIBS="-lrt  $LIBS"
4004 cat > conftest.$ac_ext <<EOF
4005 #line 4006 "configure"
4006 #include "confdefs.h"
4007 /* Override any gcc2 internal prototype to avoid an error.  */
4008 /* We use char because int might match the return type of a gcc2
4009     builtin and then its argument prototype would still apply.  */
4010 char sem_init();
4011
4012 int main() {
4013 sem_init()
4014 ; return 0; }
4015 EOF
4016 if { (eval echo configure:4017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4017   rm -rf conftest*
4018   eval "ac_cv_lib_$ac_lib_var=yes"
4019 else
4020   echo "configure: failed program was:" >&5
4021   cat conftest.$ac_ext >&5
4022   rm -rf conftest*
4023   eval "ac_cv_lib_$ac_lib_var=no"
4024 fi
4025 rm -f conftest*
4026 LIBS="$ac_save_LIBS"
4027
4028 fi
4029 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4030   echo "$ac_t""yes" 1>&6
4031   vlc_LDFLAGS="${vlc_LDFLAGS} -lrt"
4032 else
4033   echo "$ac_t""no" 1>&6
4034 fi
4035
4036
4037 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
4038 echo "configure:4039: checking for inet_aton" >&5
4039 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
4040   echo $ac_n "(cached) $ac_c" 1>&6
4041 else
4042   cat > conftest.$ac_ext <<EOF
4043 #line 4044 "configure"
4044 #include "confdefs.h"
4045 /* System header to define __stub macros and hopefully few prototypes,
4046     which can conflict with char inet_aton(); below.  */
4047 #include <assert.h>
4048 /* Override any gcc2 internal prototype to avoid an error.  */
4049 /* We use char because int might match the return type of a gcc2
4050     builtin and then its argument prototype would still apply.  */
4051 char inet_aton();
4052
4053 int main() {
4054
4055 /* The GNU C library defines this for functions which it implements
4056     to always fail with ENOSYS.  Some functions are actually named
4057     something starting with __ and the normal name is an alias.  */
4058 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
4059 choke me
4060 #else
4061 inet_aton();
4062 #endif
4063
4064 ; return 0; }
4065 EOF
4066 if { (eval echo configure:4067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4067   rm -rf conftest*
4068   eval "ac_cv_func_inet_aton=yes"
4069 else
4070   echo "configure: failed program was:" >&5
4071   cat conftest.$ac_ext >&5
4072   rm -rf conftest*
4073   eval "ac_cv_func_inet_aton=no"
4074 fi
4075 rm -f conftest*
4076 fi
4077
4078 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
4079   echo "$ac_t""yes" 1>&6
4080   :
4081 else
4082   echo "$ac_t""no" 1>&6
4083
4084   echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
4085 echo "configure:4086: checking for inet_aton in -lresolv" >&5
4086 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
4087 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4088   echo $ac_n "(cached) $ac_c" 1>&6
4089 else
4090   ac_save_LIBS="$LIBS"
4091 LIBS="-lresolv  $LIBS"
4092 cat > conftest.$ac_ext <<EOF
4093 #line 4094 "configure"
4094 #include "confdefs.h"
4095 /* Override any gcc2 internal prototype to avoid an error.  */
4096 /* We use char because int might match the return type of a gcc2
4097     builtin and then its argument prototype would still apply.  */
4098 char inet_aton();
4099
4100 int main() {
4101 inet_aton()
4102 ; return 0; }
4103 EOF
4104 if { (eval echo configure:4105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4105   rm -rf conftest*
4106   eval "ac_cv_lib_$ac_lib_var=yes"
4107 else
4108   echo "configure: failed program was:" >&5
4109   cat conftest.$ac_ext >&5
4110   rm -rf conftest*
4111   eval "ac_cv_lib_$ac_lib_var=no"
4112 fi
4113 rm -f conftest*
4114 LIBS="$ac_save_LIBS"
4115
4116 fi
4117 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4118   echo "$ac_t""yes" 1>&6
4119   ipv4_LDFLAGS="${ipv4_LDFLAGS} -lresolv"
4120 else
4121   echo "$ac_t""no" 1>&6
4122 fi
4123
4124
4125 fi
4126
4127 echo $ac_n "checking for textdomain""... $ac_c" 1>&6
4128 echo "configure:4129: checking for textdomain" >&5
4129 if eval "test \"`echo '$''{'ac_cv_func_textdomain'+set}'`\" = set"; then
4130   echo $ac_n "(cached) $ac_c" 1>&6
4131 else
4132   cat > conftest.$ac_ext <<EOF
4133 #line 4134 "configure"
4134 #include "confdefs.h"
4135 /* System header to define __stub macros and hopefully few prototypes,
4136     which can conflict with char textdomain(); below.  */
4137 #include <assert.h>
4138 /* Override any gcc2 internal prototype to avoid an error.  */
4139 /* We use char because int might match the return type of a gcc2
4140     builtin and then its argument prototype would still apply.  */
4141 char textdomain();
4142
4143 int main() {
4144
4145 /* The GNU C library defines this for functions which it implements
4146     to always fail with ENOSYS.  Some functions are actually named
4147     something starting with __ and the normal name is an alias.  */
4148 #if defined (__stub_textdomain) || defined (__stub___textdomain)
4149 choke me
4150 #else
4151 textdomain();
4152 #endif
4153
4154 ; return 0; }
4155 EOF
4156 if { (eval echo configure:4157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4157   rm -rf conftest*
4158   eval "ac_cv_func_textdomain=yes"
4159 else
4160   echo "configure: failed program was:" >&5
4161   cat conftest.$ac_ext >&5
4162   rm -rf conftest*
4163   eval "ac_cv_func_textdomain=no"
4164 fi
4165 rm -f conftest*
4166 fi
4167
4168 if eval "test \"`echo '$ac_cv_func_'textdomain`\" = yes"; then
4169   echo "$ac_t""yes" 1>&6
4170   :
4171 else
4172   echo "$ac_t""no" 1>&6
4173
4174   echo $ac_n "checking for textdomain in -lintl""... $ac_c" 1>&6
4175 echo "configure:4176: checking for textdomain in -lintl" >&5
4176 ac_lib_var=`echo intl'_'textdomain | sed 'y%./+-%__p_%'`
4177 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4178   echo $ac_n "(cached) $ac_c" 1>&6
4179 else
4180   ac_save_LIBS="$LIBS"
4181 LIBS="-lintl  $LIBS"
4182 cat > conftest.$ac_ext <<EOF
4183 #line 4184 "configure"
4184 #include "confdefs.h"
4185 /* Override any gcc2 internal prototype to avoid an error.  */
4186 /* We use char because int might match the return type of a gcc2
4187     builtin and then its argument prototype would still apply.  */
4188 char textdomain();
4189
4190 int main() {
4191 textdomain()
4192 ; return 0; }
4193 EOF
4194 if { (eval echo configure:4195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4195   rm -rf conftest*
4196   eval "ac_cv_lib_$ac_lib_var=yes"
4197 else
4198   echo "configure: failed program was:" >&5
4199   cat conftest.$ac_ext >&5
4200   rm -rf conftest*
4201   eval "ac_cv_lib_$ac_lib_var=no"
4202 fi
4203 rm -f conftest*
4204 LIBS="$ac_save_LIBS"
4205
4206 fi
4207 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4208   echo "$ac_t""yes" 1>&6
4209   vlc_LDFLAGS="${vlc_LDFLAGS} -lintl"
4210     plugins_LDFLAGS="${plugins_LDFLAGS} -lintl"
4211   
4212 else
4213   echo "$ac_t""no" 1>&6
4214 fi
4215
4216
4217 fi
4218
4219
4220 NEED_GETOPT=0
4221 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
4222 echo "configure:4223: checking for getopt_long" >&5
4223 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
4224   echo $ac_n "(cached) $ac_c" 1>&6
4225 else
4226   cat > conftest.$ac_ext <<EOF
4227 #line 4228 "configure"
4228 #include "confdefs.h"
4229 /* System header to define __stub macros and hopefully few prototypes,
4230     which can conflict with char getopt_long(); below.  */
4231 #include <assert.h>
4232 /* Override any gcc2 internal prototype to avoid an error.  */
4233 /* We use char because int might match the return type of a gcc2
4234     builtin and then its argument prototype would still apply.  */
4235 char getopt_long();
4236
4237 int main() {
4238
4239 /* The GNU C library defines this for functions which it implements
4240     to always fail with ENOSYS.  Some functions are actually named
4241     something starting with __ and the normal name is an alias.  */
4242 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
4243 choke me
4244 #else
4245 getopt_long();
4246 #endif
4247
4248 ; return 0; }
4249 EOF
4250 if { (eval echo configure:4251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4251   rm -rf conftest*
4252   eval "ac_cv_func_getopt_long=yes"
4253 else
4254   echo "configure: failed program was:" >&5
4255   cat conftest.$ac_ext >&5
4256   rm -rf conftest*
4257   eval "ac_cv_func_getopt_long=no"
4258 fi
4259 rm -f conftest*
4260 fi
4261
4262 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
4263   echo "$ac_t""yes" 1>&6
4264   cat >> confdefs.h <<\EOF
4265 #define HAVE_GETOPT_LONG 1
4266 EOF
4267
4268 else
4269   echo "$ac_t""no" 1>&6
4270  # FreeBSD has a gnugetopt library for this:
4271   echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
4272 echo "configure:4273: checking for getopt_long in -lgnugetopt" >&5
4273 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
4274 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4275   echo $ac_n "(cached) $ac_c" 1>&6
4276 else
4277   ac_save_LIBS="$LIBS"
4278 LIBS="-lgnugetopt  $LIBS"
4279 cat > conftest.$ac_ext <<EOF
4280 #line 4281 "configure"
4281 #include "confdefs.h"
4282 /* Override any gcc2 internal prototype to avoid an error.  */
4283 /* We use char because int might match the return type of a gcc2
4284     builtin and then its argument prototype would still apply.  */
4285 char getopt_long();
4286
4287 int main() {
4288 getopt_long()
4289 ; return 0; }
4290 EOF
4291 if { (eval echo configure:4292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4292   rm -rf conftest*
4293   eval "ac_cv_lib_$ac_lib_var=yes"
4294 else
4295   echo "configure: failed program was:" >&5
4296   cat conftest.$ac_ext >&5
4297   rm -rf conftest*
4298   eval "ac_cv_lib_$ac_lib_var=no"
4299 fi
4300 rm -f conftest*
4301 LIBS="$ac_save_LIBS"
4302
4303 fi
4304 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4305   echo "$ac_t""yes" 1>&6
4306   cat >> confdefs.h <<\EOF
4307 #define HAVE_GETOPT_LONG 1
4308 EOF
4309  vlc_LDFLAGS="${vlc_LDFLAGS} -lgnugetopt"
4310 else
4311   echo "$ac_t""no" 1>&6
4312 NEED_GETOPT=1
4313 fi
4314
4315 fi
4316
4317
4318 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4319 echo "configure:4320: checking return type of signal handlers" >&5
4320 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4321   echo $ac_n "(cached) $ac_c" 1>&6
4322 else
4323   cat > conftest.$ac_ext <<EOF
4324 #line 4325 "configure"
4325 #include "confdefs.h"
4326 #include <sys/types.h>
4327 #include <signal.h>
4328 #ifdef signal
4329 #undef signal
4330 #endif
4331 #ifdef __cplusplus
4332 extern "C" void (*signal (int, void (*)(int)))(int);
4333 #else
4334 void (*signal ()) ();
4335 #endif
4336
4337 int main() {
4338 int i;
4339 ; return 0; }
4340 EOF
4341 if { (eval echo configure:4342: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4342   rm -rf conftest*
4343   ac_cv_type_signal=void
4344 else
4345   echo "configure: failed program was:" >&5
4346   cat conftest.$ac_ext >&5
4347   rm -rf conftest*
4348   ac_cv_type_signal=int
4349 fi
4350 rm -f conftest*
4351 fi
4352
4353 echo "$ac_t""$ac_cv_type_signal" 1>&6
4354 cat >> confdefs.h <<EOF
4355 #define RETSIGTYPE $ac_cv_type_signal
4356 EOF
4357
4358
4359 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4360 echo "configure:4361: checking for dlopen in -ldl" >&5
4361 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4362 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4363   echo $ac_n "(cached) $ac_c" 1>&6
4364 else
4365   ac_save_LIBS="$LIBS"
4366 LIBS="-ldl  $LIBS"
4367 cat > conftest.$ac_ext <<EOF
4368 #line 4369 "configure"
4369 #include "confdefs.h"
4370 /* Override any gcc2 internal prototype to avoid an error.  */
4371 /* We use char because int might match the return type of a gcc2
4372     builtin and then its argument prototype would still apply.  */
4373 char dlopen();
4374
4375 int main() {
4376 dlopen()
4377 ; return 0; }
4378 EOF
4379 if { (eval echo configure:4380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4380   rm -rf conftest*
4381   eval "ac_cv_lib_$ac_lib_var=yes"
4382 else
4383   echo "configure: failed program was:" >&5
4384   cat conftest.$ac_ext >&5
4385   rm -rf conftest*
4386   eval "ac_cv_lib_$ac_lib_var=no"
4387 fi
4388 rm -f conftest*
4389 LIBS="$ac_save_LIBS"
4390
4391 fi
4392 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4393   echo "$ac_t""yes" 1>&6
4394   vlc_LDFLAGS="${vlc_LDFLAGS} -ldl"
4395 else
4396   echo "$ac_t""no" 1>&6
4397 fi
4398
4399 echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6
4400 echo "configure:4401: checking for cos in -lm" >&5
4401 ac_lib_var=`echo m'_'cos | sed 'y%./+-%__p_%'`
4402 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4403   echo $ac_n "(cached) $ac_c" 1>&6
4404 else
4405   ac_save_LIBS="$LIBS"
4406 LIBS="-lm  $LIBS"
4407 cat > conftest.$ac_ext <<EOF
4408 #line 4409 "configure"
4409 #include "confdefs.h"
4410 /* Override any gcc2 internal prototype to avoid an error.  */
4411 /* We use char because int might match the return type of a gcc2
4412     builtin and then its argument prototype would still apply.  */
4413 char cos();
4414
4415 int main() {
4416 cos()
4417 ; return 0; }
4418 EOF
4419 if { (eval echo configure:4420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4420   rm -rf conftest*
4421   eval "ac_cv_lib_$ac_lib_var=yes"
4422 else
4423   echo "configure: failed program was:" >&5
4424   cat conftest.$ac_ext >&5
4425   rm -rf conftest*
4426   eval "ac_cv_lib_$ac_lib_var=no"
4427 fi
4428 rm -f conftest*
4429 LIBS="$ac_save_LIBS"
4430
4431 fi
4432 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4433   echo "$ac_t""yes" 1>&6
4434   imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
4435   filter_distort_LDFLAGS="${filter_distort_LDFLAGS} -lm"
4436 else
4437   echo "$ac_t""no" 1>&6
4438 fi
4439
4440 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
4441 echo "configure:4442: checking for pow in -lm" >&5
4442 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
4443 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4444   echo $ac_n "(cached) $ac_c" 1>&6
4445 else
4446   ac_save_LIBS="$LIBS"
4447 LIBS="-lm  $LIBS"
4448 cat > conftest.$ac_ext <<EOF
4449 #line 4450 "configure"
4450 #include "confdefs.h"
4451 /* Override any gcc2 internal prototype to avoid an error.  */
4452 /* We use char because int might match the return type of a gcc2
4453     builtin and then its argument prototype would still apply.  */
4454 char pow();
4455
4456 int main() {
4457 pow()
4458 ; return 0; }
4459 EOF
4460 if { (eval echo configure:4461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4461   rm -rf conftest*
4462   eval "ac_cv_lib_$ac_lib_var=yes"
4463 else
4464   echo "configure: failed program was:" >&5
4465   cat conftest.$ac_ext >&5
4466   rm -rf conftest*
4467   eval "ac_cv_lib_$ac_lib_var=no"
4468 fi
4469 rm -f conftest*
4470 LIBS="$ac_save_LIBS"
4471
4472 fi
4473 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4474   echo "$ac_t""yes" 1>&6
4475   ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lm"
4476   imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
4477   imdct3dn_LDFLAGS="${imdct3dn_LDFLAGS} -lm"
4478   imdctsse_LDFLAGS="${imdctsse_LDFLAGS} -lm"
4479   chroma_i420_rgb_LDFLAGS="${chroma_i420_rgb_LDFLAGS} -lm"
4480
4481 else
4482   echo "$ac_t""no" 1>&6
4483 fi
4484
4485
4486 THREAD_LIB=error
4487 if test "x${THREAD_LIB}" = "xerror"; then
4488   echo $ac_n "checking for main in -lpthread""... $ac_c" 1>&6
4489 echo "configure:4490: checking for main in -lpthread" >&5
4490 ac_lib_var=`echo pthread'_'main | sed 'y%./+-%__p_%'`
4491 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4492   echo $ac_n "(cached) $ac_c" 1>&6
4493 else
4494   ac_save_LIBS="$LIBS"
4495 LIBS="-lpthread  $LIBS"
4496 cat > conftest.$ac_ext <<EOF
4497 #line 4498 "configure"
4498 #include "confdefs.h"
4499
4500 int main() {
4501 main()
4502 ; return 0; }
4503 EOF
4504 if { (eval echo configure:4505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4505   rm -rf conftest*
4506   eval "ac_cv_lib_$ac_lib_var=yes"
4507 else
4508   echo "configure: failed program was:" >&5
4509   cat conftest.$ac_ext >&5
4510   rm -rf conftest*
4511   eval "ac_cv_lib_$ac_lib_var=no"
4512 fi
4513 rm -f conftest*
4514 LIBS="$ac_save_LIBS"
4515
4516 fi
4517 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4518   echo "$ac_t""yes" 1>&6
4519   THREAD_LIB="-lpthread"
4520 else
4521   echo "$ac_t""no" 1>&6
4522 fi
4523
4524 fi
4525 if test "x${THREAD_LIB}" = "xerror"; then
4526   echo $ac_n "checking for main in -lpthreads""... $ac_c" 1>&6
4527 echo "configure:4528: checking for main in -lpthreads" >&5
4528 ac_lib_var=`echo pthreads'_'main | sed 'y%./+-%__p_%'`
4529 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4530   echo $ac_n "(cached) $ac_c" 1>&6
4531 else
4532   ac_save_LIBS="$LIBS"
4533 LIBS="-lpthreads  $LIBS"
4534 cat > conftest.$ac_ext <<EOF
4535 #line 4536 "configure"
4536 #include "confdefs.h"
4537
4538 int main() {
4539 main()
4540 ; return 0; }
4541 EOF
4542 if { (eval echo configure:4543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4543   rm -rf conftest*
4544   eval "ac_cv_lib_$ac_lib_var=yes"
4545 else
4546   echo "configure: failed program was:" >&5
4547   cat conftest.$ac_ext >&5
4548   rm -rf conftest*
4549   eval "ac_cv_lib_$ac_lib_var=no"
4550 fi
4551 rm -f conftest*
4552 LIBS="$ac_save_LIBS"
4553
4554 fi
4555 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4556   echo "$ac_t""yes" 1>&6
4557   THREAD_LIB="-lpthreads"
4558 else
4559   echo "$ac_t""no" 1>&6
4560 fi
4561
4562 fi
4563 if test "x${THREAD_LIB}" = "xerror"; then
4564   echo $ac_n "checking for main in -lc_r""... $ac_c" 1>&6
4565 echo "configure:4566: checking for main in -lc_r" >&5
4566 ac_lib_var=`echo c_r'_'main | sed 'y%./+-%__p_%'`
4567 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4568   echo $ac_n "(cached) $ac_c" 1>&6
4569 else
4570   ac_save_LIBS="$LIBS"
4571 LIBS="-lc_r  $LIBS"
4572 cat > conftest.$ac_ext <<EOF
4573 #line 4574 "configure"
4574 #include "confdefs.h"
4575
4576 int main() {
4577 main()
4578 ; return 0; }
4579 EOF
4580 if { (eval echo configure:4581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4581   rm -rf conftest*
4582   eval "ac_cv_lib_$ac_lib_var=yes"
4583 else
4584   echo "configure: failed program was:" >&5
4585   cat conftest.$ac_ext >&5
4586   rm -rf conftest*
4587   eval "ac_cv_lib_$ac_lib_var=no"
4588 fi
4589 rm -f conftest*
4590 LIBS="$ac_save_LIBS"
4591
4592 fi
4593 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4594   echo "$ac_t""yes" 1>&6
4595   THREAD_LIB="-lc_r"
4596 else
4597   echo "$ac_t""no" 1>&6
4598 fi
4599
4600 fi
4601 if test "x${THREAD_LIB}" = "xerror"; then
4602   echo $ac_n "checking for pthread_mutex_lock""... $ac_c" 1>&6
4603 echo "configure:4604: checking for pthread_mutex_lock" >&5
4604 if eval "test \"`echo '$''{'ac_cv_func_pthread_mutex_lock'+set}'`\" = set"; then
4605   echo $ac_n "(cached) $ac_c" 1>&6
4606 else
4607   cat > conftest.$ac_ext <<EOF
4608 #line 4609 "configure"
4609 #include "confdefs.h"
4610 /* System header to define __stub macros and hopefully few prototypes,
4611     which can conflict with char pthread_mutex_lock(); below.  */
4612 #include <assert.h>
4613 /* Override any gcc2 internal prototype to avoid an error.  */
4614 /* We use char because int might match the return type of a gcc2
4615     builtin and then its argument prototype would still apply.  */
4616 char pthread_mutex_lock();
4617
4618 int main() {
4619
4620 /* The GNU C library defines this for functions which it implements
4621     to always fail with ENOSYS.  Some functions are actually named
4622     something starting with __ and the normal name is an alias.  */
4623 #if defined (__stub_pthread_mutex_lock) || defined (__stub___pthread_mutex_lock)
4624 choke me
4625 #else
4626 pthread_mutex_lock();
4627 #endif
4628
4629 ; return 0; }
4630 EOF
4631 if { (eval echo configure:4632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4632   rm -rf conftest*
4633   eval "ac_cv_func_pthread_mutex_lock=yes"
4634 else
4635   echo "configure: failed program was:" >&5
4636   cat conftest.$ac_ext >&5
4637   rm -rf conftest*
4638   eval "ac_cv_func_pthread_mutex_lock=no"
4639 fi
4640 rm -f conftest*
4641 fi
4642
4643 if eval "test \"`echo '$ac_cv_func_'pthread_mutex_lock`\" = yes"; then
4644   echo "$ac_t""yes" 1>&6
4645   :
4646 else
4647   echo "$ac_t""no" 1>&6
4648 fi
4649
4650   THREAD_LIB=""
4651 fi
4652
4653 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
4654 echo "configure:4655: checking for cthread_fork in -lthreads" >&5
4655 ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
4656 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4657   echo $ac_n "(cached) $ac_c" 1>&6
4658 else
4659   ac_save_LIBS="$LIBS"
4660 LIBS="-lthreads  $LIBS"
4661 cat > conftest.$ac_ext <<EOF
4662 #line 4663 "configure"
4663 #include "confdefs.h"
4664 /* Override any gcc2 internal prototype to avoid an error.  */
4665 /* We use char because int might match the return type of a gcc2
4666     builtin and then its argument prototype would still apply.  */
4667 char cthread_fork();
4668
4669 int main() {
4670 cthread_fork()
4671 ; return 0; }
4672 EOF
4673 if { (eval echo configure:4674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4674   rm -rf conftest*
4675   eval "ac_cv_lib_$ac_lib_var=yes"
4676 else
4677   echo "configure: failed program was:" >&5
4678   cat conftest.$ac_ext >&5
4679   rm -rf conftest*
4680   eval "ac_cv_lib_$ac_lib_var=no"
4681 fi
4682 rm -f conftest*
4683 LIBS="$ac_save_LIBS"
4684
4685 fi
4686 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4687   echo "$ac_t""yes" 1>&6
4688   THREAD_LIB="-lthreads"
4689 else
4690   echo "$ac_t""no" 1>&6
4691 fi
4692
4693
4694 cat > conftest.$ac_ext <<EOF
4695 #line 4696 "configure"
4696 #include "confdefs.h"
4697 #include <pthread.h>
4698 EOF
4699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4700   egrep "pthread_cond_t" >/dev/null 2>&1; then
4701   rm -rf conftest*
4702   
4703   cat >> confdefs.h <<\EOF
4704 #define PTHREAD_COND_T_IN_PTHREAD_H 1
4705 EOF
4706
4707 fi
4708 rm -f conftest*
4709
4710 cat > conftest.$ac_ext <<EOF
4711 #line 4712 "configure"
4712 #include "confdefs.h"
4713 #include <pthread.h>
4714 EOF
4715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4716   egrep "pthread_once" >/dev/null 2>&1; then
4717   rm -rf conftest*
4718   
4719   cat >> confdefs.h <<\EOF
4720 #define PTHREAD_ONCE_IN_PTHREAD_H 1
4721 EOF
4722
4723 fi
4724 rm -f conftest*
4725
4726 cat > conftest.$ac_ext <<EOF
4727 #line 4728 "configure"
4728 #include "confdefs.h"
4729 #include <strings.h>
4730 EOF
4731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4732   egrep "strncasecmp" >/dev/null 2>&1; then
4733   rm -rf conftest*
4734   
4735   cat >> confdefs.h <<\EOF
4736 #define STRNCASECMP_IN_STRINGS_H 1
4737 EOF
4738
4739 fi
4740 rm -f conftest*
4741
4742
4743 for ac_hdr in stdint.h getopt.h strings.h inttypes.h sys/int_types.h
4744 do
4745 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4746 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4747 echo "configure:4748: checking for $ac_hdr" >&5
4748 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4749   echo $ac_n "(cached) $ac_c" 1>&6
4750 else
4751   cat > conftest.$ac_ext <<EOF
4752 #line 4753 "configure"
4753 #include "confdefs.h"
4754 #include <$ac_hdr>
4755 EOF
4756 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4757 { (eval echo configure:4758: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4758 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4759 if test -z "$ac_err"; then
4760   rm -rf conftest*
4761   eval "ac_cv_header_$ac_safe=yes"
4762 else
4763   echo "$ac_err" >&5
4764   echo "configure: failed program was:" >&5
4765   cat conftest.$ac_ext >&5
4766   rm -rf conftest*
4767   eval "ac_cv_header_$ac_safe=no"
4768 fi
4769 rm -f conftest*
4770 fi
4771 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4772   echo "$ac_t""yes" 1>&6
4773     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4774   cat >> confdefs.h <<EOF
4775 #define $ac_tr_hdr 1
4776 EOF
4777  
4778 else
4779   echo "$ac_t""no" 1>&6
4780 fi
4781 done
4782
4783 for ac_hdr in sys/sockio.h fcntl.h sys/types.h sys/time.h sys/times.h
4784 do
4785 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4786 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4787 echo "configure:4788: checking for $ac_hdr" >&5
4788 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4789   echo $ac_n "(cached) $ac_c" 1>&6
4790 else
4791   cat > conftest.$ac_ext <<EOF
4792 #line 4793 "configure"
4793 #include "confdefs.h"
4794 #include <$ac_hdr>
4795 EOF
4796 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4797 { (eval echo configure:4798: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4798 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4799 if test -z "$ac_err"; then
4800   rm -rf conftest*
4801   eval "ac_cv_header_$ac_safe=yes"
4802 else
4803   echo "$ac_err" >&5
4804   echo "configure: failed program was:" >&5
4805   cat conftest.$ac_ext >&5
4806   rm -rf conftest*
4807   eval "ac_cv_header_$ac_safe=no"
4808 fi
4809 rm -f conftest*
4810 fi
4811 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4812   echo "$ac_t""yes" 1>&6
4813     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4814   cat >> confdefs.h <<EOF
4815 #define $ac_tr_hdr 1
4816 EOF
4817  
4818 else
4819   echo "$ac_t""no" 1>&6
4820 fi
4821 done
4822
4823 for ac_hdr in dlfcn.h image.h
4824 do
4825 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4826 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4827 echo "configure:4828: checking for $ac_hdr" >&5
4828 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4829   echo $ac_n "(cached) $ac_c" 1>&6
4830 else
4831   cat > conftest.$ac_ext <<EOF
4832 #line 4833 "configure"
4833 #include "confdefs.h"
4834 #include <$ac_hdr>
4835 EOF
4836 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4837 { (eval echo configure:4838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4838 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4839 if test -z "$ac_err"; then
4840   rm -rf conftest*
4841   eval "ac_cv_header_$ac_safe=yes"
4842 else
4843   echo "$ac_err" >&5
4844   echo "configure: failed program was:" >&5
4845   cat conftest.$ac_ext >&5
4846   rm -rf conftest*
4847   eval "ac_cv_header_$ac_safe=no"
4848 fi
4849 rm -f conftest*
4850 fi
4851 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4852   echo "$ac_t""yes" 1>&6
4853     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4854   cat >> confdefs.h <<EOF
4855 #define $ac_tr_hdr 1
4856 EOF
4857  
4858 else
4859   echo "$ac_t""no" 1>&6
4860 fi
4861 done
4862
4863 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
4864 do
4865 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4866 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4867 echo "configure:4868: checking for $ac_hdr" >&5
4868 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4869   echo $ac_n "(cached) $ac_c" 1>&6
4870 else
4871   cat > conftest.$ac_ext <<EOF
4872 #line 4873 "configure"
4873 #include "confdefs.h"
4874 #include <$ac_hdr>
4875 EOF
4876 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4877 { (eval echo configure:4878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4878 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4879 if test -z "$ac_err"; then
4880   rm -rf conftest*
4881   eval "ac_cv_header_$ac_safe=yes"
4882 else
4883   echo "$ac_err" >&5
4884   echo "configure: failed program was:" >&5
4885   cat conftest.$ac_ext >&5
4886   rm -rf conftest*
4887   eval "ac_cv_header_$ac_safe=no"
4888 fi
4889 rm -f conftest*
4890 fi
4891 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4892   echo "$ac_t""yes" 1>&6
4893     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4894   cat >> confdefs.h <<EOF
4895 #define $ac_tr_hdr 1
4896 EOF
4897  
4898 else
4899   echo "$ac_t""no" 1>&6
4900 fi
4901 done
4902
4903 for ac_hdr in machine/param.h sys/shm.h
4904 do
4905 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4906 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4907 echo "configure:4908: checking for $ac_hdr" >&5
4908 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4909   echo $ac_n "(cached) $ac_c" 1>&6
4910 else
4911   cat > conftest.$ac_ext <<EOF
4912 #line 4913 "configure"
4913 #include "confdefs.h"
4914 #include <$ac_hdr>
4915 EOF
4916 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4917 { (eval echo configure:4918: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4918 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4919 if test -z "$ac_err"; then
4920   rm -rf conftest*
4921   eval "ac_cv_header_$ac_safe=yes"
4922 else
4923   echo "$ac_err" >&5
4924   echo "configure: failed program was:" >&5
4925   cat conftest.$ac_ext >&5
4926   rm -rf conftest*
4927   eval "ac_cv_header_$ac_safe=no"
4928 fi
4929 rm -f conftest*
4930 fi
4931 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4932   echo "$ac_t""yes" 1>&6
4933     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4934   cat >> confdefs.h <<EOF
4935 #define $ac_tr_hdr 1
4936 EOF
4937  
4938 else
4939   echo "$ac_t""no" 1>&6
4940 fi
4941 done
4942
4943 for ac_hdr in linux/version.h
4944 do
4945 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4946 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4947 echo "configure:4948: checking for $ac_hdr" >&5
4948 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4949   echo $ac_n "(cached) $ac_c" 1>&6
4950 else
4951   cat > conftest.$ac_ext <<EOF
4952 #line 4953 "configure"
4953 #include "confdefs.h"
4954 #include <$ac_hdr>
4955 EOF
4956 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4957 { (eval echo configure:4958: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4958 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4959 if test -z "$ac_err"; then
4960   rm -rf conftest*
4961   eval "ac_cv_header_$ac_safe=yes"
4962 else
4963   echo "$ac_err" >&5
4964   echo "configure: failed program was:" >&5
4965   cat conftest.$ac_ext >&5
4966   rm -rf conftest*
4967   eval "ac_cv_header_$ac_safe=no"
4968 fi
4969 rm -f conftest*
4970 fi
4971 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4972   echo "$ac_t""yes" 1>&6
4973     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4974   cat >> confdefs.h <<EOF
4975 #define $ac_tr_hdr 1
4976 EOF
4977  
4978 else
4979   echo "$ac_t""no" 1>&6
4980 fi
4981 done
4982
4983
4984 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4985 echo "configure:4986: checking whether time.h and sys/time.h may both be included" >&5
4986 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4987   echo $ac_n "(cached) $ac_c" 1>&6
4988 else
4989   cat > conftest.$ac_ext <<EOF
4990 #line 4991 "configure"
4991 #include "confdefs.h"
4992 #include <sys/types.h>
4993 #include <sys/time.h>
4994 #include <time.h>
4995 int main() {
4996 struct tm *tp;
4997 ; return 0; }
4998 EOF
4999 if { (eval echo configure:5000: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5000   rm -rf conftest*
5001   ac_cv_header_time=yes
5002 else
5003   echo "configure: failed program was:" >&5
5004   cat conftest.$ac_ext >&5
5005   rm -rf conftest*
5006   ac_cv_header_time=no
5007 fi
5008 rm -f conftest*
5009 fi
5010
5011 echo "$ac_t""$ac_cv_header_time" 1>&6
5012 if test $ac_cv_header_time = yes; then
5013   cat >> confdefs.h <<\EOF
5014 #define TIME_WITH_SYS_TIME 1
5015 EOF
5016
5017 fi
5018
5019
5020 cat > conftest.$ac_ext <<EOF
5021 #line 5022 "configure"
5022 #include "confdefs.h"
5023 #include <time.h>
5024 EOF
5025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5026   egrep "nanosleep" >/dev/null 2>&1; then
5027   rm -rf conftest*
5028   
5029   cat >> confdefs.h <<\EOF
5030 #define HAVE_DECL_NANOSLEEP 1
5031 EOF
5032
5033
5034 fi
5035 rm -f conftest*
5036
5037
5038 cat > conftest.$ac_ext <<EOF
5039 #line 5040 "configure"
5040 #include "confdefs.h"
5041 #include <sys/time.h>
5042 EOF
5043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5044   egrep "timespec" >/dev/null 2>&1; then
5045   rm -rf conftest*
5046   
5047   cat >> confdefs.h <<\EOF
5048 #define HAVE_STRUCT_TIMESPEC 1
5049 EOF
5050
5051
5052 fi
5053 rm -f conftest*
5054
5055
5056 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
5057 do
5058 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5059 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5060 echo "configure:5061: checking for $ac_hdr" >&5
5061 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5062   echo $ac_n "(cached) $ac_c" 1>&6
5063 else
5064   cat > conftest.$ac_ext <<EOF
5065 #line 5066 "configure"
5066 #include "confdefs.h"
5067 #include <$ac_hdr>
5068 EOF
5069 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5070 { (eval echo configure:5071: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5071 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5072 if test -z "$ac_err"; then
5073   rm -rf conftest*
5074   eval "ac_cv_header_$ac_safe=yes"
5075 else
5076   echo "$ac_err" >&5
5077   echo "configure: failed program was:" >&5
5078   cat conftest.$ac_ext >&5
5079   rm -rf conftest*
5080   eval "ac_cv_header_$ac_safe=no"
5081 fi
5082 rm -f conftest*
5083 fi
5084 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5085   echo "$ac_t""yes" 1>&6
5086     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5087   cat >> confdefs.h <<EOF
5088 #define $ac_tr_hdr 1
5089 EOF
5090  
5091 else
5092   echo "$ac_t""no" 1>&6
5093 fi
5094 done
5095
5096
5097 if test "x${x_includes}" = "xNONE"; then
5098   x_includes="/usr/X11R6/include"
5099 fi
5100 if test "x${x_libraries}" = "xNONE"; then
5101   x_libraries="/usr/X11R6/lib"
5102 fi
5103
5104 if test "x${SYS}" != "xmingw32"
5105 then
5106   CPPFLAGS="${save_CPPFLAGS} -I${x_includes}"
5107   for ac_hdr in X11/extensions/dpms.h
5108 do
5109 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5110 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5111 echo "configure:5112: checking for $ac_hdr" >&5
5112 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5113   echo $ac_n "(cached) $ac_c" 1>&6
5114 else
5115   cat > conftest.$ac_ext <<EOF
5116 #line 5117 "configure"
5117 #include "confdefs.h"
5118 #include <$ac_hdr>
5119 EOF
5120 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5121 { (eval echo configure:5122: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5122 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5123 if test -z "$ac_err"; then
5124   rm -rf conftest*
5125   eval "ac_cv_header_$ac_safe=yes"
5126 else
5127   echo "$ac_err" >&5
5128   echo "configure: failed program was:" >&5
5129   cat conftest.$ac_ext >&5
5130   rm -rf conftest*
5131   eval "ac_cv_header_$ac_safe=no"
5132 fi
5133 rm -f conftest*
5134 fi
5135 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5136   echo "$ac_t""yes" 1>&6
5137     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5138   cat >> confdefs.h <<EOF
5139 #define $ac_tr_hdr 1
5140 EOF
5141  
5142     cat > conftest.$ac_ext <<EOF
5143 #line 5144 "configure"
5144 #include "confdefs.h"
5145 #include <X11/extensions/dpms.h>
5146 EOF
5147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5148   egrep "DPMSInfo" >/dev/null 2>&1; then
5149   rm -rf conftest*
5150   
5151       cat >> confdefs.h <<\EOF
5152 #define DPMSINFO_IN_DPMS_H 1
5153 EOF
5154
5155     
5156 fi
5157 rm -f conftest*
5158
5159   
5160 else
5161   echo "$ac_t""no" 1>&6
5162 fi
5163 done
5164
5165   CPPFLAGS="${save_CPPFLAGS}"
5166 fi
5167
5168 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
5169 echo "configure:5170: checking for ntohl in sys/param.h" >&5
5170 if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
5171   echo $ac_n "(cached) $ac_c" 1>&6
5172 else
5173   CFLAGS="${save_CFLAGS} -Wall -Werror"
5174      cat > conftest.$ac_ext <<EOF
5175 #line 5176 "configure"
5176 #include "confdefs.h"
5177 #include <sys/param.h>
5178 int main() {
5179 void foo() { int meuh; ntohl(meuh); }
5180 ; return 0; }
5181 EOF
5182 if { (eval echo configure:5183: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5183   rm -rf conftest*
5184   ac_cv_c_ntohl_sys_param_h=yes
5185 else
5186   echo "configure: failed program was:" >&5
5187   cat conftest.$ac_ext >&5
5188   rm -rf conftest*
5189   ac_cv_c_ntohl_sys_param_h=no
5190 fi
5191 rm -f conftest*
5192 fi
5193
5194 echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
5195 if test "x${ac_cv_c_ntohl_sys_param_h}" != "xno"; then
5196     cat >> confdefs.h <<\EOF
5197 #define NTOHL_IN_SYS_PARAM_H 1
5198 EOF
5199
5200 fi
5201
5202 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
5203 echo "configure:5204: checking if \$CC accepts -finline-limit" >&5
5204 if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
5205   echo $ac_n "(cached) $ac_c" 1>&6
5206 else
5207   CFLAGS="${save_CFLAGS} -finline-limit-30000"
5208      cat > conftest.$ac_ext <<EOF
5209 #line 5210 "configure"
5210 #include "confdefs.h"
5211
5212 int main() {
5213
5214 ; return 0; }
5215 EOF
5216 if { (eval echo configure:5217: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5217   rm -rf conftest*
5218   ac_cv_c_inline_limit=yes
5219 else
5220   echo "configure: failed program was:" >&5
5221   cat conftest.$ac_ext >&5
5222   rm -rf conftest*
5223   ac_cv_c_inline_limit=no
5224 fi
5225 rm -f conftest*
5226 fi
5227
5228 echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
5229 if test "x${ac_cv_c_inline_limit}" != "xno"; then
5230     save_CFLAGS="${save_CFLAGS} -finline-limit-30000"; CFLAGS="${save_CFLAGS}"
5231 fi
5232
5233 echo $ac_n "checking if \$CC accepts -Wall -Winline""... $ac_c" 1>&6
5234 echo "configure:5235: checking if \$CC accepts -Wall -Winline" >&5
5235 if eval "test \"`echo '$''{'ac_cv_c_Wall_Winline'+set}'`\" = set"; then
5236   echo $ac_n "(cached) $ac_c" 1>&6
5237 else
5238   CFLAGS="-Wall -Winline ${save_CFLAGS}"
5239      cat > conftest.$ac_ext <<EOF
5240 #line 5241 "configure"
5241 #include "confdefs.h"
5242
5243 int main() {
5244
5245 ; return 0; }
5246 EOF
5247 if { (eval echo configure:5248: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5248   rm -rf conftest*
5249   ac_cv_c_Wall_Winline=yes
5250 else
5251   echo "configure: failed program was:" >&5
5252   cat conftest.$ac_ext >&5
5253   rm -rf conftest*
5254   ac_cv_c_Wall_Winline=no
5255 fi
5256 rm -f conftest*
5257 fi
5258
5259 echo "$ac_t""$ac_cv_c_Wall_Winline" 1>&6
5260 if test "x${ac_cv_c_Wall_Winline}" != "xno"; then
5261     save_CFLAGS="-Wall -Winline ${save_CFLAGS}"; CFLAGS="${save_CFLAGS}"
5262 else
5263     echo $ac_n "checking if \$CC accepts -wall -winline""... $ac_c" 1>&6
5264 echo "configure:5265: checking if \$CC accepts -wall -winline" >&5
5265 if eval "test \"`echo '$''{'ac_cv_c_wall_winline'+set}'`\" = set"; then
5266   echo $ac_n "(cached) $ac_c" 1>&6
5267 else
5268   CFLAGS="-wall -winline ${save_CFLAGS}"
5269          cat > conftest.$ac_ext <<EOF
5270 #line 5271 "configure"
5271 #include "confdefs.h"
5272
5273 int main() {
5274
5275 ; return 0; }
5276 EOF
5277 if { (eval echo configure:5278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5278   rm -rf conftest*
5279   ac_cv_c_wall_winline=yes
5280 else
5281   echo "configure: failed program was:" >&5
5282   cat conftest.$ac_ext >&5
5283   rm -rf conftest*
5284   ac_cv_c_wall_winline=no
5285 fi
5286 rm -f conftest*
5287 fi
5288
5289 echo "$ac_t""$ac_cv_c_wall_winline" 1>&6
5290     if test "x${ac_cv_c_wall_winline}" != "xno"; then
5291         save_CFLAGS="-wall -winline ${save_CFLAGS}"; CFLAGS="${save_CFLAGS}"
5292     fi
5293 fi
5294
5295 echo $ac_n "checking if \$CC accepts -pipe""... $ac_c" 1>&6
5296 echo "configure:5297: checking if \$CC accepts -pipe" >&5
5297 if eval "test \"`echo '$''{'ac_cv_c_pipe'+set}'`\" = set"; then
5298   echo $ac_n "(cached) $ac_c" 1>&6
5299 else
5300   CFLAGS="${save_CFLAGS} -pipe"
5301      cat > conftest.$ac_ext <<EOF
5302 #line 5303 "configure"
5303 #include "confdefs.h"
5304
5305 int main() {
5306
5307 ; return 0; }
5308 EOF
5309 if { (eval echo configure:5310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5310   rm -rf conftest*
5311   ac_cv_c_pipe=yes
5312 else
5313   echo "configure: failed program was:" >&5
5314   cat conftest.$ac_ext >&5
5315   rm -rf conftest*
5316   ac_cv_c_pipe=no
5317 fi
5318 rm -f conftest*
5319 fi
5320
5321 echo "$ac_t""$ac_cv_c_pipe" 1>&6
5322 if test "x${ac_cv_c_pipe}" != "xno"; then
5323     save_CFLAGS="${save_CFLAGS} -pipe"; CFLAGS="${save_CFLAGS}"
5324 fi
5325
5326 echo $ac_n "checking if \$CC accepts -O3""... $ac_c" 1>&6
5327 echo "configure:5328: checking if \$CC accepts -O3" >&5
5328 if eval "test \"`echo '$''{'ac_cv_c_o3'+set}'`\" = set"; then
5329   echo $ac_n "(cached) $ac_c" 1>&6
5330 else
5331   CFLAGS="${save_CFLAGS} -O3"
5332      cat > conftest.$ac_ext <<EOF
5333 #line 5334 "configure"
5334 #include "confdefs.h"
5335
5336 int main() {
5337
5338 ; return 0; }
5339 EOF
5340 if { (eval echo configure:5341: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5341   rm -rf conftest*
5342   ac_cv_c_o3=yes
5343 else
5344   echo "configure: failed program was:" >&5
5345   cat conftest.$ac_ext >&5
5346   rm -rf conftest*
5347   ac_cv_c_o3=no
5348 fi
5349 rm -f conftest*
5350 fi
5351
5352 echo "$ac_t""$ac_cv_c_o3" 1>&6
5353 if test "x${ac_cv_c_o3}" != "xno"; then
5354     CFLAGS_OPTIM="${CFLAGS_OPTIM} -O3"
5355 else
5356     echo $ac_n "checking if \$CC accepts -O2""... $ac_c" 1>&6
5357 echo "configure:5358: checking if \$CC accepts -O2" >&5
5358 if eval "test \"`echo '$''{'ac_cv_c_o2'+set}'`\" = set"; then
5359   echo $ac_n "(cached) $ac_c" 1>&6
5360 else
5361   CFLAGS="${save_CFLAGS} -O2"
5362          cat > conftest.$ac_ext <<EOF
5363 #line 5364 "configure"
5364 #include "confdefs.h"
5365
5366 int main() {
5367
5368 ; return 0; }
5369 EOF
5370 if { (eval echo configure:5371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5371   rm -rf conftest*
5372   ac_cv_c_o2=yes
5373 else
5374   echo "configure: failed program was:" >&5
5375   cat conftest.$ac_ext >&5
5376   rm -rf conftest*
5377   ac_cv_c_o2=no
5378 fi
5379 rm -f conftest*
5380 fi
5381
5382 echo "$ac_t""$ac_cv_c_o2" 1>&6
5383     if test "x${ac_cv_c_o2}" != "xno"; then
5384         CFLAGS_OPTIM="${CFLAGS_OPTIM} -O2"
5385     else
5386         echo $ac_n "checking if \$CC accepts -O""... $ac_c" 1>&6
5387 echo "configure:5388: checking if \$CC accepts -O" >&5
5388 if eval "test \"`echo '$''{'ac_cv_c_o'+set}'`\" = set"; then
5389   echo $ac_n "(cached) $ac_c" 1>&6
5390 else
5391   CFLAGS="${save_CFLAGS} -O"
5392              cat > conftest.$ac_ext <<EOF
5393 #line 5394 "configure"
5394 #include "confdefs.h"
5395
5396 int main() {
5397
5398 ; return 0; }
5399 EOF
5400 if { (eval echo configure:5401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5401   rm -rf conftest*
5402   ac_cv_c_o=yes
5403 else
5404   echo "configure: failed program was:" >&5
5405   cat conftest.$ac_ext >&5
5406   rm -rf conftest*
5407   ac_cv_c_o=no
5408 fi
5409 rm -f conftest*
5410 fi
5411
5412 echo "$ac_t""$ac_cv_c_o" 1>&6
5413         if test "x${ac_cv_c_o}" != "xno"; then
5414             CFLAGS_OPTIM="${CFLAGS_OPTIM} -O"
5415         fi
5416     fi
5417 fi
5418
5419 echo $ac_n "checking if \$CC accepts -ffast-math""... $ac_c" 1>&6
5420 echo "configure:5421: checking if \$CC accepts -ffast-math" >&5
5421 if eval "test \"`echo '$''{'ac_cv_c_fast_math'+set}'`\" = set"; then
5422   echo $ac_n "(cached) $ac_c" 1>&6
5423 else
5424   CFLAGS="${save_CFLAGS} -ffast-math"
5425      cat > conftest.$ac_ext <<EOF
5426 #line 5427 "configure"
5427 #include "confdefs.h"
5428
5429 int main() {
5430
5431 ; return 0; }
5432 EOF
5433 if { (eval echo configure:5434: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5434   rm -rf conftest*
5435   ac_cv_c_fast_math=yes
5436 else
5437   echo "configure: failed program was:" >&5
5438   cat conftest.$ac_ext >&5
5439   rm -rf conftest*
5440   ac_cv_c_fast_math=no
5441 fi
5442 rm -f conftest*
5443 fi
5444
5445 echo "$ac_t""$ac_cv_c_fast_math" 1>&6
5446 if test "x${ac_cv_c_fast_math}" != "xno"; then
5447     CFLAGS_OPTIM="${CFLAGS_OPTIM} -ffast-math"
5448 fi
5449
5450 echo $ac_n "checking if \$CC accepts -funroll-loops""... $ac_c" 1>&6
5451 echo "configure:5452: checking if \$CC accepts -funroll-loops" >&5
5452 if eval "test \"`echo '$''{'ac_cv_c_unroll_loops'+set}'`\" = set"; then
5453   echo $ac_n "(cached) $ac_c" 1>&6
5454 else
5455   CFLAGS="${save_CFLAGS} -funroll-loops"
5456      cat > conftest.$ac_ext <<EOF
5457 #line 5458 "configure"
5458 #include "confdefs.h"
5459
5460 int main() {
5461
5462 ; return 0; }
5463 EOF
5464 if { (eval echo configure:5465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5465   rm -rf conftest*
5466   ac_cv_c_unroll_loops=yes
5467 else
5468   echo "configure: failed program was:" >&5
5469   cat conftest.$ac_ext >&5
5470   rm -rf conftest*
5471   ac_cv_c_unroll_loops=no
5472 fi
5473 rm -f conftest*
5474 fi
5475
5476 echo "$ac_t""$ac_cv_c_unroll_loops" 1>&6
5477 if test "x${ac_cv_c_unroll_loops}" != "xno"; then
5478     CFLAGS_OPTIM="${CFLAGS_OPTIM} -funroll-loops"
5479 fi
5480
5481 echo $ac_n "checking if \$CC accepts -fomit-frame-pointer""... $ac_c" 1>&6
5482 echo "configure:5483: checking if \$CC accepts -fomit-frame-pointer" >&5
5483 if eval "test \"`echo '$''{'ac_cv_c_omit_frame_pointer'+set}'`\" = set"; then
5484   echo $ac_n "(cached) $ac_c" 1>&6
5485 else
5486   CFLAGS="${save_CFLAGS} -fomit-frame-pointer"
5487      cat > conftest.$ac_ext <<EOF
5488 #line 5489 "configure"
5489 #include "confdefs.h"
5490
5491 int main() {
5492
5493 ; return 0; }
5494 EOF
5495 if { (eval echo configure:5496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5496   rm -rf conftest*
5497   ac_cv_c_omit_frame_pointer=yes
5498 else
5499   echo "configure: failed program was:" >&5
5500   cat conftest.$ac_ext >&5
5501   rm -rf conftest*
5502   ac_cv_c_omit_frame_pointer=no
5503 fi
5504 rm -f conftest*
5505 fi
5506
5507 echo "$ac_t""$ac_cv_c_omit_frame_pointer" 1>&6
5508 if test "x${ac_cv_c_omit_frame_pointer}" != "xno"; then
5509     CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer"
5510     # this plugin does not compile without -fomit-frame-pointer, damn gcc!
5511     i420_yuy2_mmx_CFLAGS="${i420_yuy2_mmx_CFLAGS} -fomit-frame-pointer"
5512 fi
5513
5514 echo $ac_n "checking if \$CC accepts -bundle -undefined error -lcc_dynamic""... $ac_c" 1>&6
5515 echo "configure:5516: checking if \$CC accepts -bundle -undefined error -lcc_dynamic" >&5
5516 if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
5517   echo $ac_n "(cached) $ac_c" 1>&6
5518 else
5519   CFLAGS="${save_CFLAGS} -bundle -undefined error -lcc_dynamic"
5520      cat > conftest.$ac_ext <<EOF
5521 #line 5522 "configure"
5522 #include "confdefs.h"
5523
5524 int main() {
5525
5526 ; return 0; }
5527 EOF
5528 if { (eval echo configure:5529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5529   rm -rf conftest*
5530   ac_cv_ld_darwin=yes
5531 else
5532   echo "configure: failed program was:" >&5
5533   cat conftest.$ac_ext >&5
5534   rm -rf conftest*
5535   ac_cv_ld_darwin=no
5536 fi
5537 rm -f conftest*
5538 fi
5539
5540 echo "$ac_t""$ac_cv_ld_darwin" 1>&6
5541 if test "x${ac_cv_ld_darwin}" != "xno"; then
5542     plugins_LDFLAGS="${plugins_LDFLAGS} -bundle -undefined error -lcc_dynamic"
5543 fi
5544
5545 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
5546 echo "configure:5547: checking if \$CC accepts -shared" >&5
5547 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
5548   echo $ac_n "(cached) $ac_c" 1>&6
5549 else
5550   CFLAGS="${save_CFLAGS} -shared"
5551      cat > conftest.$ac_ext <<EOF
5552 #line 5553 "configure"
5553 #include "confdefs.h"
5554
5555 int main() {
5556
5557 ; return 0; }
5558 EOF
5559 if { (eval echo configure:5560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5560   rm -rf conftest*
5561   ac_cv_ld_plugins=yes
5562 else
5563   echo "configure: failed program was:" >&5
5564   cat conftest.$ac_ext >&5
5565   rm -rf conftest*
5566   ac_cv_ld_plugins=no
5567 fi
5568 rm -f conftest*
5569 fi
5570
5571 echo "$ac_t""$ac_cv_ld_plugins" 1>&6
5572 if test "x${ac_cv_ld_plugins}" != "xno"; then
5573     plugins_LDFLAGS="${plugins_LDFLAGS} -shared"
5574 fi
5575         
5576 echo $ac_n "checking for variadic cpp macros""... $ac_c" 1>&6
5577 echo "configure:5578: checking for variadic cpp macros" >&5
5578 if eval "test \"`echo '$''{'ac_cv_cpp_variadic_macros'+set}'`\" = set"; then
5579   echo $ac_n "(cached) $ac_c" 1>&6
5580 else
5581   CFLAGS="${save_CFLAGS}"
5582      cat > conftest.$ac_ext <<EOF
5583 #line 5584 "configure"
5584 #include "confdefs.h"
5585 #include <stdio.h>
5586           #define a(b,c...) printf(b,##c)
5587 int main() {
5588 a("foo");a("%s","bar");a("%s%s","baz","quux");
5589 ; return 0; }
5590 EOF
5591 if { (eval echo configure:5592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5592   rm -rf conftest*
5593   ac_cv_cpp_variadic_macros=yes
5594 else
5595   echo "configure: failed program was:" >&5
5596   cat conftest.$ac_ext >&5
5597   rm -rf conftest*
5598   ac_cv_cpp_variadic_macros=no
5599 fi
5600 rm -f conftest*
5601 fi
5602
5603 echo "$ac_t""$ac_cv_cpp_variadic_macros" 1>&6
5604 if test "x${ac_cv_cpp_variadic_macros}" != "xno"; then
5605     cat >> confdefs.h <<\EOF
5606 #define HAVE_VARIADIC_MACROS 1
5607 EOF
5608
5609 fi
5610
5611 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
5612 echo "configure:5613: checking __attribute__ ((aligned ())) support" >&5
5613 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
5614   echo $ac_n "(cached) $ac_c" 1>&6
5615 else
5616   ac_cv_c_attribute_aligned=0
5617         CFLAGS="${save_CFLAGS} -Werror"
5618     for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
5619         cat > conftest.$ac_ext <<EOF
5620 #line 5621 "configure"
5621 #include "confdefs.h"
5622
5623 int main() {
5624 static char c __attribute__ ((aligned(${ac_cv_c_attr_align_try}))) = 0; return c;
5625 ; return 0; }
5626 EOF
5627 if { (eval echo configure:5628: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5628   rm -rf conftest*
5629   ac_cv_c_attribute_aligned="${ac_cv_c_attr_align_try}"
5630 else
5631   echo "configure: failed program was:" >&5
5632   cat conftest.$ac_ext >&5
5633 fi
5634 rm -f conftest*
5635     done
5636         CFLAGS="${save_CFLAGS}"
5637 fi
5638
5639 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
5640 if test "x${ac_cv_c_attribute_aligned}" != "x0"; then
5641     cat >> confdefs.h <<EOF
5642 #define ATTRIBUTE_ALIGNED_MAX ${ac_cv_c_attribute_aligned}
5643 EOF
5644
5645 fi
5646
5647 case "x${target_cpu}" in
5648   x)
5649     ARCH=unknown
5650     ;;
5651   *)
5652     ARCH="${target_cpu}"
5653     ;;
5654 esac
5655
5656 BUILTINS="${BUILTINS}"
5657 PLUGINS="${PLUGINS} misc/dummy/dummy misc/null/null"
5658 PLUGINS="${PLUGINS} control/rc/rc misc/logger/logger access/file access/udp access/http misc/network/ipv4 misc/memcpy/memcpy"
5659 PLUGINS="${PLUGINS} demux/mpeg/es demux/mpeg/audio demux/mpeg/mpeg_system demux/mpeg/ps demux/mpeg/ts"
5660 PLUGINS="${PLUGINS} codec/mpeg_video/idct/idct codec/mpeg_video/idct/idctclassic codec/mpeg_video/motion/motion codec/mpeg_video/mpeg_video codec/spudec/spudec"
5661 #PLUGINS="${PLUGINS} codec/a52old/imdct/imdct codec/a52old/downmix/downmix codec/mpeg_audio/mpeg_audio codec/a52old/a52old codec/lpcm/lpcm codec/spdif/spdif"
5662 PLUGINS="${PLUGINS} video_filter/deinterlace/deinterlace video_filter/invert video_filter/wall video_filter/transform video_filter/distort video_filter/clone video_filter/crop"
5663 PLUGINS="${PLUGINS} audio_filter/converter/float32tos16"
5664 PLUGINS="${PLUGINS} audio_filter/resampler/trivial"
5665 PLUGINS="${PLUGINS} audio_mixer/trivial"
5666 PLUGINS="${PLUGINS} audio_output/file"
5667 #PLUGINS="${PLUGINS} visualization/scope/scope"
5668 PLUGINS="${PLUGINS} video_chroma/i420_rgb video_chroma/i420_yuy2 video_chroma/i422_yuy2 video_chroma/i420_ymga"
5669
5670 MMX_MODULES="misc/memcpy/memcpymmx codec/mpeg_video/idct/idctmmx codec/mpeg_video/motion/motionmmx video_chroma/i420_rgb_mmx video_chroma/i420_yuy2_mmx video_chroma/i422_yuy2_mmx video_chroma/i420_ymga_mmx"
5671 MMXEXT_MODULES="misc/memcpy/memcpymmxext codec/mpeg_video/idct/idctmmxext codec/mpeg_video/motion/motionmmxext"
5672 THREEDNOW_MODULES="misc/memcpy/memcpy3dn codec/a52old/imdct/imdct3dn codec/a52old/downmix/downmix3dn"
5673 SSE_MODULES="codec/a52old/imdct/imdctsse codec/a52old/downmix/downmixsse"
5674 ALTIVEC_MODULES="codec/mpeg_video/idct/idctaltivec codec/mpeg_video/motion/motionaltivec misc/memcpy/memcpyaltivec"
5675
5676 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
5677 echo "configure:5678: checking if \$CC groks MMX inline assembly" >&5
5678 if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
5679   echo $ac_n "(cached) $ac_c" 1>&6
5680 else
5681   CFLAGS="${save_CFLAGS}"
5682      cat > conftest.$ac_ext <<EOF
5683 #line 5684 "configure"
5684 #include "confdefs.h"
5685
5686 int main() {
5687 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
5688 ; return 0; }
5689 EOF
5690 if { (eval echo configure:5691: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5691   rm -rf conftest*
5692   ac_cv_mmx_inline=yes
5693 else
5694   echo "configure: failed program was:" >&5
5695   cat conftest.$ac_ext >&5
5696   rm -rf conftest*
5697   ac_cv_mmx_inline=no
5698 fi
5699 rm -f conftest*
5700 fi
5701
5702 echo "$ac_t""$ac_cv_mmx_inline" 1>&6
5703 if test "x${ac_cv_mmx_inline}" != "xno"; then
5704   ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
5705 fi
5706
5707 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
5708 echo "configure:5709: checking if \$CC groks MMX EXT inline assembly" >&5
5709 if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
5710   echo $ac_n "(cached) $ac_c" 1>&6
5711 else
5712   CFLAGS="${save_CFLAGS}"
5713      cat > conftest.$ac_ext <<EOF
5714 #line 5715 "configure"
5715 #include "confdefs.h"
5716
5717 int main() {
5718 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
5719 ; return 0; }
5720 EOF
5721 if { (eval echo configure:5722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5722   rm -rf conftest*
5723   ac_cv_mmxext_inline=yes
5724 else
5725   echo "configure: failed program was:" >&5
5726   cat conftest.$ac_ext >&5
5727   rm -rf conftest*
5728   ac_cv_mmxext_inline=no
5729 fi
5730 rm -f conftest*
5731 fi
5732
5733 echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
5734 if test "x${ac_cv_mmxext_inline}" != "xno"; then
5735   ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
5736 fi
5737
5738 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
5739 echo "configure:5740: checking if \$CC groks 3D Now! inline assembly" >&5
5740 if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
5741   echo $ac_n "(cached) $ac_c" 1>&6
5742 else
5743   CFLAGS="${save_CFLAGS}"
5744      cat > conftest.$ac_ext <<EOF
5745 #line 5746 "configure"
5746 #include "confdefs.h"
5747
5748 int main() {
5749 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
5750 ; return 0; }
5751 EOF
5752 if { (eval echo configure:5753: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5753   rm -rf conftest*
5754   ac_cv_3dnow_inline=yes
5755 else
5756   echo "configure: failed program was:" >&5
5757   cat conftest.$ac_ext >&5
5758   rm -rf conftest*
5759   ac_cv_3dnow_inline=no
5760 fi
5761 rm -f conftest*
5762 fi
5763
5764 echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
5765 if test "x${ac_cv_3dnow_inline}" != "xno"; then
5766   cat >> confdefs.h <<\EOF
5767 #define CAN_COMPILE_3DNOW 1
5768 EOF
5769
5770   ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
5771 fi
5772
5773 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
5774 echo "configure:5775: checking if \$CC groks SSE inline assembly" >&5
5775 if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then
5776   echo $ac_n "(cached) $ac_c" 1>&6
5777 else
5778   CFLAGS="${save_CFLAGS}"
5779      cat > conftest.$ac_ext <<EOF
5780 #line 5781 "configure"
5781 #include "confdefs.h"
5782
5783 int main() {
5784 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
5785 ; return 0; }
5786 EOF
5787 if { (eval echo configure:5788: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5788   rm -rf conftest*
5789   ac_cv_sse_inline=yes
5790 else
5791   echo "configure: failed program was:" >&5
5792   cat conftest.$ac_ext >&5
5793   rm -rf conftest*
5794   ac_cv_sse_inline=no
5795 fi
5796 rm -f conftest*
5797 fi
5798
5799 echo "$ac_t""$ac_cv_sse_inline" 1>&6
5800 if test "x${ac_cv_sse_inline}" != "xno" -a "x${SYS}" != "xmingw32"; then
5801   cat >> confdefs.h <<\EOF
5802 #define CAN_COMPILE_SSE 1
5803 EOF
5804
5805   ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
5806 fi
5807
5808 # don't try to grok AltiVec with native mingw32 it doesn't work right now
5809 # we should be able to remove this test with future versions of mingw32
5810 if test "x${SYS}" != "xmingw32"; then
5811 echo $ac_n "checking if \$CC groks AltiVec inline assembly""... $ac_c" 1>&6
5812 echo "configure:5813: checking if \$CC groks AltiVec inline assembly" >&5
5813 if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
5814   echo $ac_n "(cached) $ac_c" 1>&6
5815 else
5816   CFLAGS="${save_CFLAGS}"
5817      cat > conftest.$ac_ext <<EOF
5818 #line 5819 "configure"
5819 #include "confdefs.h"
5820
5821 int main() {
5822 asm volatile("vperm 0,1,2,3");
5823 ; return 0; }
5824 EOF
5825 if { (eval echo configure:5826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5826   rm -rf conftest*
5827   ac_cv_altivec_inline=yes
5828 else
5829   echo "configure: failed program was:" >&5
5830   cat conftest.$ac_ext >&5
5831   rm -rf conftest*
5832   CFLAGS="${save_CFLAGS} -Wa,-m7400"
5833           cat > conftest.$ac_ext <<EOF
5834 #line 5835 "configure"
5835 #include "confdefs.h"
5836
5837 int main() {
5838 asm volatile("vperm 0,1,2,3");
5839 ; return 0; }
5840 EOF
5841 if { (eval echo configure:5842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5842   rm -rf conftest*
5843   ac_cv_altivec_inline="-Wa,-m7400"
5844 else
5845   echo "configure: failed program was:" >&5
5846   cat conftest.$ac_ext >&5
5847   rm -rf conftest*
5848   ac_cv_altivec_inline=no
5849 fi
5850 rm -f conftest*
5851          
5852 fi
5853 rm -f conftest*
5854 fi
5855
5856 echo "$ac_t""$ac_cv_altivec_inline" 1>&6
5857 if test "x${ac_cv_altivec_inline}" != "xno"; then
5858   cat >> confdefs.h <<\EOF
5859 #define CAN_COMPILE_ALTIVEC 1
5860 EOF
5861
5862   if test "x${ac_cv_altivec_inline}" != "xyes"; then
5863     idctaltivec_CFLAGS="${idctaltivec_CFLAGS} ${ac_cv_altivec_inline}"
5864     motionaltivec_CFLAGS="${motionaltivec_CFLAGS} ${ac_cv_altivec_inline}"
5865     memcpyaltivec_CFLAGS="${memcpyaltivec_CFLAGS} ${ac_cv_altivec_inline}"
5866     vlc_CFLAGS="${vlc_CFLAGS} ${ac_cv_altivec_inline}"
5867   fi
5868   ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5869 fi
5870
5871 echo $ac_n "checking if \$CC groks AltiVec C extensions""... $ac_c" 1>&6
5872 echo "configure:5873: checking if \$CC groks AltiVec C extensions" >&5
5873 if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
5874   echo $ac_n "(cached) $ac_c" 1>&6
5875 else
5876   CFLAGS="${save_CFLAGS} -faltivec"
5877      # Darwin test
5878      cat > conftest.$ac_ext <<EOF
5879 #line 5880 "configure"
5880 #include "confdefs.h"
5881
5882 int main() {
5883 vec_mtvscr((vector unsigned int)(0));
5884 ; return 0; }
5885 EOF
5886 if { (eval echo configure:5887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5887   rm -rf conftest*
5888   ac_cv_c_altivec=-faltivec
5889 else
5890   echo "configure: failed program was:" >&5
5891   cat conftest.$ac_ext >&5
5892   rm -rf conftest*
5893   
5894         # Linux/PPC test
5895         CFLAGS="${save_CFLAGS} ${idctaltivec_CFLAGS} -fvec"
5896         cat > conftest.$ac_ext <<EOF
5897 #line 5898 "configure"
5898 #include "confdefs.h"
5899
5900 int main() {
5901 vec_mtvscr((vector unsigned int)(0));
5902 ; return 0; }
5903 EOF
5904 if { (eval echo configure:5905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5905   rm -rf conftest*
5906   ac_cv_c_altivec="-fvec"
5907 else
5908   echo "configure: failed program was:" >&5
5909   cat conftest.$ac_ext >&5
5910   rm -rf conftest*
5911   ac_cv_c_altivec=no
5912 fi
5913 rm -f conftest*
5914         
5915 fi
5916 rm -f conftest*
5917      CFLAGS="${save_CFLAGS}"
5918 fi
5919
5920 echo "$ac_t""$ac_cv_c_altivec" 1>&6
5921 if test "x${ac_cv_c_altivec}" != "xno"; then
5922   cat >> confdefs.h <<\EOF
5923 #define CAN_COMPILE_C_ALTIVEC 1
5924 EOF
5925
5926   idctaltivec_CFLAGS="${idctaltivec_CFLAGS} ${ac_cv_c_altivec}"
5927   motionaltivec_CFLAGS="${motionaltivec_CFLAGS} ${ac_cv_c_altivec}"
5928   memcpyaltivec_CFLAGS="${memcpyaltivec_CFLAGS} ${ac_cv_c_altivec}"
5929   vlc_CFLAGS="${vlc_CFLAGS} ${ac_cv_c_altivec}"
5930   ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5931 fi
5932
5933 echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
5934 echo "configure:5935: checking if linker needs -framework vecLib" >&5
5935 if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
5936   echo $ac_n "(cached) $ac_c" 1>&6
5937 else
5938   LDFLAGS="${vlc_LDFLAGS} -framework vecLib"
5939      cat > conftest.$ac_ext <<EOF
5940 #line 5941 "configure"
5941 #include "confdefs.h"
5942
5943 int main() {
5944
5945 ; return 0; }
5946 EOF
5947 if { (eval echo configure:5948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5948   rm -rf conftest*
5949   ac_cv_ld_altivec=yes
5950 else
5951   echo "configure: failed program was:" >&5
5952   cat conftest.$ac_ext >&5
5953   rm -rf conftest*
5954   ac_cv_ld_altivec=no
5955 fi
5956 rm -f conftest*
5957      LDFLAGS="${save_LDFLAGS}"
5958     
5959 fi
5960
5961 echo "$ac_t""$ac_cv_ld_altivec" 1>&6
5962 if test "x${ac_cv_ld_altivec}" != "xno"; then
5963   idctaltivec_LDFLAGS="${idctaltivec_LDFLAGS} -framework vecLib"
5964   motionaltivec_LDFLAGS="${motionaltivec_LDFLAGS} -framework vecLib"
5965   memcpyaltivec_LDFLAGS="${memcpyaltivec_LDFLAGS} -framework vecLib"
5966   vlc_LDFLAGS="${vlc_LDFLAGS} -framework vecLib"
5967 fi
5968 fi # end if mingw32
5969
5970
5971 # Check whether --with- or --without- was given.
5972 if test "${with_+set}" = set; then
5973   withval="$with_"
5974   :
5975 fi
5976
5977 # Check whether --with- or --without- was given.
5978 if test "${with_+set}" = set; then
5979   withval="$with_"
5980   :
5981 fi
5982
5983
5984 # Check whether --with-tuning or --without-tuning was given.
5985 if test "${with_tuning+set}" = set; then
5986   withval="$with_tuning"
5987   :
5988 fi
5989
5990 if test "x${with_tuning}" != "x"; then
5991     TUNING="${with_tuning}"
5992 else
5993     if test "x${target_cpu}" = "xi686" -o "x${target_cpu}" = "xi586" -o "x${target_cpu}" = "xi486" -o "x${target_cpu}" = "xi386"; then TUNING="pentiumpro"
5994     else
5995         if test "x${target_cpu}" = "xpowerpc"; then TUNING="750"; fi
5996     fi
5997 fi
5998
5999 if test "x${target_cpu}" = "xi686" -o "x${target_cpu}" = "xi586" -o "x${target_cpu}" = "xx86" -o "x${target_cpu}" = "xi386"
6000 then
6001     ARCH="${ARCH} mmx"
6002     PLUGINS="${PLUGINS} ${ACCEL_MODULES}"
6003 fi
6004
6005 # Check whether --enable-optimizations or --disable-optimizations was given.
6006 if test "${enable_optimizations+set}" = set; then
6007   enableval="$enable_optimizations"
6008    if test "x${enable_optimizations}" = "xno"; then OPTIMS=0; fi 
6009 else
6010    OPTIMS=1 
6011 fi
6012
6013
6014 # Check whether --enable-altivec or --disable-altivec was given.
6015 if test "${enable_altivec+set}" = set; then
6016   enableval="$enable_altivec"
6017    if test "x${enable_altivec}" = "xyes"; then ARCH="${ARCH} altivec";
6018     BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi 
6019 else
6020    if test "x${target_cpu}" = "xpowerpc"; then ARCH="${ARCH} altivec";
6021     BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi 
6022 fi
6023
6024
6025 DEBUG=0
6026 # Check whether --enable-debug or --disable-debug was given.
6027 if test "${enable_debug+set}" = set; then
6028   enableval="$enable_debug"
6029    if test "x${enable_debug}" = "xyes"; then DEBUG=1; fi 
6030 fi
6031
6032
6033 RELEASE=0
6034 # Check whether --enable-release or --disable-release was given.
6035 if test "${enable_release+set}" = set; then
6036   enableval="$enable_release"
6037    if test "x${enable_release}" = "xyes"; then RELEASE=1; fi 
6038 else
6039    VERSION="${VERSION}_`date +%Y-%m-%d`" 
6040 fi
6041
6042
6043
6044 # Check whether --with- or --without- was given.
6045 if test "${with_+set}" = set; then
6046   withval="$with_"
6047   :
6048 fi
6049
6050
6051 # Check whether --enable-dvd or --disable-dvd was given.
6052 if test "${enable_dvd+set}" = set; then
6053   enableval="$enable_dvd"
6054   :
6055 fi
6056
6057 if test "x${enable_dvd}" != "xno"
6058 then
6059   # Check whether --with-dvdcss or --without-dvdcss was given.
6060 if test "${with_dvdcss+set}" = set; then
6061   withval="$with_dvdcss"
6062   :
6063 fi
6064
6065   # Check whether --with-dvdcss-tree or --without-dvdcss-tree was given.
6066 if test "${with_dvdcss_tree+set}" = set; then
6067   withval="$with_dvdcss_tree"
6068   :
6069 fi
6070
6071   case "x${with_dvdcss}" in
6072   x|xyes)
6073     if test "x${with_dvdcss_tree}" = x
6074     then
6075       for ac_hdr in dvdcss/dvdcss.h
6076 do
6077 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6078 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6079 echo "configure:6080: checking for $ac_hdr" >&5
6080 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6081   echo $ac_n "(cached) $ac_c" 1>&6
6082 else
6083   cat > conftest.$ac_ext <<EOF
6084 #line 6085 "configure"
6085 #include "confdefs.h"
6086 #include <$ac_hdr>
6087 EOF
6088 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6089 { (eval echo configure:6090: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6090 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6091 if test -z "$ac_err"; then
6092   rm -rf conftest*
6093   eval "ac_cv_header_$ac_safe=yes"
6094 else
6095   echo "$ac_err" >&5
6096   echo "configure: failed program was:" >&5
6097   cat conftest.$ac_ext >&5
6098   rm -rf conftest*
6099   eval "ac_cv_header_$ac_safe=no"
6100 fi
6101 rm -f conftest*
6102 fi
6103 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6104   echo "$ac_t""yes" 1>&6
6105     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6106   cat >> confdefs.h <<EOF
6107 #define $ac_tr_hdr 1
6108 EOF
6109   PLUGINS="${PLUGINS} access/dvd/dvd"
6110           dvd_LDFLAGS="${dvd_LDFLAGS} -ldvdcss" 
6111 else
6112   echo "$ac_t""no" 1>&6
6113 echo "configure: warning: libdvdcss is no longer provided with vlc; please get libdvdcss from http://www.videolan.org/libdvdcss/ and build it. Then either use --with-dvdcss=<path/where/libdvdcss/was/installed> for dynamic linking (recommended under Unix) or --with-dvdcss-tree=<path/where/libdvdcss/was/built> for static linking (recommended under BeOS, Windows, MacOS X). Alternatively you can use --disable-dvd to disable the DVD plugin." 1>&2
6114           { echo "configure: error: cannot find libdvdcss headers" 1>&2; exit 1; } 
6115 fi
6116 done
6117
6118     else
6119       echo $ac_n "checking for libdvdcss.a in ${with_dvdcss_tree}""... $ac_c" 1>&6
6120 echo "configure:6121: checking for libdvdcss.a in ${with_dvdcss_tree}" >&5
6121       real_dvdcss_tree="`cd ${with_dvdcss_tree} 2>/dev/null && pwd`"
6122       if test "x${real_dvdcss_tree}" = "x"
6123       then
6124                 echo "$ac_t""no" 1>&6
6125         { echo "configure: error: cannot cd to ${with_dvdcss_tree}" 1>&2; exit 1; }
6126       fi
6127       if test -f "${real_dvdcss_tree}/src/.libs/libdvdcss.a"
6128       then
6129                 echo "$ac_t""${real_dvdcss_tree}/src/.libs/libdvdcss.a" 1>&6
6130         BUILTINS="${BUILTINS} access/dvd/dvd"
6131         dvd_LDFLAGS="${dvd_LDFLAGS} ${real_dvdcss_tree}/src/.libs/libdvdcss.a"
6132         dvd_CFLAGS="${dvd_CFLAGS} -I${real_dvdcss_tree}/src"
6133       else
6134                 echo "$ac_t""no" 1>&6
6135         { echo "configure: error: cannot find ${real_dvdcss_tree}/src/.libs/libdvdcss.a, make sure you compiled libdvdcss in ${with_dvdcss_tree}" 1>&2; exit 1; }
6136       fi
6137     fi
6138   ;;
6139   xno)
6140         PLUGINS="${PLUGINS} access/dvd/dvd"
6141     dvd_CFLAGS="${dvd_CFLAGS} -DGOD_DAMN_DMCA"
6142     dvd_LDFLAGS="${dvd_LDFLAGS} -ldl"
6143   ;;
6144   *)
6145     echo $ac_n "checking for dvdcss headers in ${with_dvdcss}""... $ac_c" 1>&6
6146 echo "configure:6147: checking for dvdcss headers in ${with_dvdcss}" >&5
6147     if test -f ${with_dvdcss}/include/dvdcss/dvdcss.h
6148     then
6149             echo "$ac_t""yes" 1>&6
6150       PLUGINS="${PLUGINS} access/dvd/dvd"
6151       dvd_LDFLAGS="${dvd_LDFLAGS} -L${with_dvdcss}/lib -ldvdcss"
6152       dvd_CFLAGS="${dvd_CFLAGS} -I${with_dvdcss}/include"
6153     else
6154             echo "$ac_t""no" 1>&6
6155       { echo "configure: error: cannot find ${with_dvdcss}/include/dvdcss/dvdcss.h" 1>&2; exit 1; }
6156     fi
6157   ;;
6158   esac
6159 fi
6160
6161 # Check whether --enable-dvdread or --disable-dvdread was given.
6162 if test "${enable_dvdread+set}" = set; then
6163   enableval="$enable_dvdread"
6164   :
6165 fi
6166
6167 if test "x${enable_dvdread}" != "xno"
6168 then
6169   # Check whether --with-dvdread or --without-dvdread was given.
6170 if test "${with_dvdread+set}" = set; then
6171   withval="$with_dvdread"
6172   :
6173 fi
6174
6175   if test "x${with_dvdread}" = "x"
6176   then
6177     test_LDFLAGS=""
6178     test_CFLAGS=""
6179   else
6180     test_LDFLAGS="-L${with_dvdread}/lib"
6181     test_CFLAGS="-I${with_dvdread}/include"
6182   fi
6183   CPPFLAGS="${save_CPPFLAGS} ${test_CFLAGS}"
6184   for ac_hdr in dvdread/dvd_reader.h
6185 do
6186 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6187 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6188 echo "configure:6189: checking for $ac_hdr" >&5
6189 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6190   echo $ac_n "(cached) $ac_c" 1>&6
6191 else
6192   cat > conftest.$ac_ext <<EOF
6193 #line 6194 "configure"
6194 #include "confdefs.h"
6195 #include <$ac_hdr>
6196 EOF
6197 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6198 { (eval echo configure:6199: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6199 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6200 if test -z "$ac_err"; then
6201   rm -rf conftest*
6202   eval "ac_cv_header_$ac_safe=yes"
6203 else
6204   echo "$ac_err" >&5
6205   echo "configure: failed program was:" >&5
6206   cat conftest.$ac_ext >&5
6207   rm -rf conftest*
6208   eval "ac_cv_header_$ac_safe=no"
6209 fi
6210 rm -f conftest*
6211 fi
6212 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6213   echo "$ac_t""yes" 1>&6
6214     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6215   cat >> confdefs.h <<EOF
6216 #define $ac_tr_hdr 1
6217 EOF
6218  
6219      cat > conftest.$ac_ext <<EOF
6220 #line 6221 "configure"
6221 #include "confdefs.h"
6222 #include <dvdread/dvd_reader.h>
6223 int main() {
6224 void foo() { int i=DVD_VIDEO_LB_LEN; }
6225 ; return 0; }
6226 EOF
6227 if { (eval echo configure:6228: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6228   rm -rf conftest*
6229   
6230           PLUGINS="${PLUGINS} access/dvdread/dvdread"
6231           dvdread_LDFLAGS="${dvdread_LDFLAGS} ${test_LDFLAGS} -ldvdread"
6232           dvdread_CFLAGS="${dvdread_CFLAGS} ${test_CFLAGS}"
6233         
6234 else
6235   echo "configure: failed program was:" >&5
6236   cat conftest.$ac_ext >&5
6237   rm -rf conftest*
6238   
6239           if test "x${enable_dvdread}" != "x"
6240           then
6241             { echo "configure: error: Cannot find DVD_VIDEO_LB_LEN in dvdread/dvd_reader.h, please install libdvdread version 0.9.2 or later" 1>&2; exit 1; }
6242           fi
6243         
6244 fi
6245 rm -f conftest*
6246   
6247 else
6248   echo "$ac_t""no" 1>&6
6249 if test "x${enable_dvdread}" != "x"
6250     then
6251       if test "x${with_dvdread}" != "x"
6252       then
6253         { echo "configure: error: Cannot find dvdread/dvd_reader.h in ${with_dvdread}/include" 1>&2; exit 1; }
6254       else
6255         { echo "configure: error: Cannot find dvdread/dvd_reader.h" 1>&2; exit 1; }
6256       fi
6257     fi
6258   
6259 fi
6260 done
6261
6262   CPPFLAGS="$save_CPPFLAGS"
6263 fi
6264
6265 # Check whether --enable-dvdplay or --disable-dvdplay was given.
6266 if test "${enable_dvdplay+set}" = set; then
6267   enableval="$enable_dvdplay"
6268   :
6269 fi
6270
6271 if test "x$enable_dvdplay" != "xno"
6272 then
6273   # Check whether --with-dvdplay or --without-dvdplay was given.
6274 if test "${with_dvdplay+set}" = set; then
6275   withval="$with_dvdplay"
6276   :
6277 fi
6278
6279   if test "x$with_dvdplay" = x
6280   then
6281     test_LDFLAGS=""
6282     test_CFLAGS=""
6283   else
6284     test_LDFLAGS="-L${with_dvdplay}/lib"
6285     test_CFLAGS="-I${with_dvdplay}/include"
6286   fi
6287   CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
6288   for ac_hdr in dvdplay/dvdplay.h
6289 do
6290 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6291 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6292 echo "configure:6293: checking for $ac_hdr" >&5
6293 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6294   echo $ac_n "(cached) $ac_c" 1>&6
6295 else
6296   cat > conftest.$ac_ext <<EOF
6297 #line 6298 "configure"
6298 #include "confdefs.h"
6299 #include <$ac_hdr>
6300 EOF
6301 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6302 { (eval echo configure:6303: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6303 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6304 if test -z "$ac_err"; then
6305   rm -rf conftest*
6306   eval "ac_cv_header_$ac_safe=yes"
6307 else
6308   echo "$ac_err" >&5
6309   echo "configure: failed program was:" >&5
6310   cat conftest.$ac_ext >&5
6311   rm -rf conftest*
6312   eval "ac_cv_header_$ac_safe=no"
6313 fi
6314 rm -f conftest*
6315 fi
6316 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6317   echo "$ac_t""yes" 1>&6
6318     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6319   cat >> confdefs.h <<EOF
6320 #define $ac_tr_hdr 1
6321 EOF
6322  
6323       PLUGINS="${PLUGINS} access/dvdplay/dvdplay"
6324       dvdplay_LDFLAGS="${dvdplay_LDFLAGS} ${test_LDFLAGS} -ldvdplay -ldvdread"
6325       dvdplay_CFLAGS="${dvdplay_CFLAGS} ${test_CFLAGS}"
6326     
6327 else
6328   echo "$ac_t""no" 1>&6
6329 if test "x$enable_dvdplay" != x
6330     then
6331       if test "x$with_dvdplay" != x
6332       then
6333         { echo "configure: error: Cannot find dvdplay/dvdplay.h in ${with_dvdplay}/include" 1>&2; exit 1; }
6334       else
6335         { echo "configure: error: Cannot find dvdplay/dvdplay.h" 1>&2; exit 1; }
6336       fi
6337     fi
6338   
6339 fi
6340 done
6341
6342   CPPFLAGS="${save_CPPFLAGS}"
6343 fi
6344
6345
6346 # Check whether --enable-dvbpsi or --disable-dvbpsi was given.
6347 if test "${enable_dvbpsi+set}" = set; then
6348   enableval="$enable_dvbpsi"
6349   :
6350 fi
6351
6352 if test "x${enable_dvbpsi}" != "xno"
6353 then
6354   # Check whether --with-dvbpsi or --without-dvbpsi was given.
6355 if test "${with_dvbpsi+set}" = set; then
6356   withval="$with_dvbpsi"
6357   :
6358 fi
6359
6360   # Check whether --with-dvbpsi or --without-dvbpsi was given.
6361 if test "${with_dvbpsi+set}" = set; then
6362   withval="$with_dvbpsi"
6363   :
6364 fi
6365
6366   case "x${with_dvbpsi}" in
6367   x|xyes)
6368     if test "x${with_dvbpsi_tree}" = "x"
6369     then
6370       for ac_hdr in dvbpsi/dr.h
6371 do
6372 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6373 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6374 echo "configure:6375: checking for $ac_hdr" >&5
6375 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6376   echo $ac_n "(cached) $ac_c" 1>&6
6377 else
6378   cat > conftest.$ac_ext <<EOF
6379 #line 6380 "configure"
6380 #include "confdefs.h"
6381 #include <$ac_hdr>
6382 EOF
6383 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6384 { (eval echo configure:6385: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6385 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6386 if test -z "$ac_err"; then
6387   rm -rf conftest*
6388   eval "ac_cv_header_$ac_safe=yes"
6389 else
6390   echo "$ac_err" >&5
6391   echo "configure: failed program was:" >&5
6392   cat conftest.$ac_ext >&5
6393   rm -rf conftest*
6394   eval "ac_cv_header_$ac_safe=no"
6395 fi
6396 rm -f conftest*
6397 fi
6398 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6399   echo "$ac_t""yes" 1>&6
6400     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6401   cat >> confdefs.h <<EOF
6402 #define $ac_tr_hdr 1
6403 EOF
6404   PLUGINS="${PLUGINS} demux/mpeg/ts_dvbpsi"
6405           ts_dvbpsi_LDFLAGS="${ts_dvbpsi_LDFLAGS} -ldvbpsi" 
6406 else
6407   echo "$ac_t""no" 1>&6
6408 fi
6409 done
6410
6411     else
6412       echo $ac_n "checking for libdvbpsi.a in ${with_dvbpsi_tree}""... $ac_c" 1>&6
6413 echo "configure:6414: checking for libdvbpsi.a in ${with_dvbpsi_tree}" >&5
6414       real_dvbpsi_tree="`cd ${with_dvbpsi_tree} 2>/dev/null && pwd`"
6415       if test "x${real_dvbpsi_tree}" = "x"
6416       then
6417                 echo "$ac_t""no" 1>&6
6418         { echo "configure: error: cannot cd to ${with_dvbpsi_tree}" 1>&2; exit 1; }
6419       fi
6420       if test -f "${real_dvbpsi_tree}/src/.libs/libdvbpsi.a"
6421       then
6422                 echo "$ac_t""${real_dvbpsi_tree}/src/.libs/libdvbpsi.a" 1>&6
6423         BUILTINS="${BUILTINS} demux/mpeg/ts_dvbpsi"
6424         ts_dvbpsi_LDFLAGS="${ts_dvbpsi_LDFLAGS} ${real_dvbpsi_tree}/src/.libs/libdvbpsi.a"
6425         ts_dvbpsi_CFLAGS="${ts_dvbpsi_CFLAGS} -I${real_dvbpsi_tree}/src"
6426       else
6427                 echo "$ac_t""no" 1>&6
6428         { echo "configure: error: cannot find ${real_dvbpsi_tree}/src/.libs/libdvbpsi.a, make sure you compiled libdvbpsi in ${with_dvbpsi_tree}" 1>&2; exit 1; }
6429       fi
6430     fi
6431   ;;
6432   xno)
6433       ;;
6434   *)
6435     echo $ac_n "checking for dvbpsi headers in ${with_dvbpsi}""... $ac_c" 1>&6
6436 echo "configure:6437: checking for dvbpsi headers in ${with_dvbpsi}" >&5
6437     if test "x${with_dvbpsi}" = "x"
6438     then
6439       test_LDFLAGS=""
6440       test_CFLAGS=""
6441     else
6442       test_LDFLAGS="-L${with_dvbpsi}/lib"
6443       test_CFLAGS="-I${with_dvbpsi}/include"
6444     fi
6445     CPPFLAGS="${save_CPPFLAGS} ${test_CFLAGS}"
6446     ac_safe=`echo "dvbpsi/dr.h" | sed 'y%./+-%__p_%'`
6447 echo $ac_n "checking for dvbpsi/dr.h""... $ac_c" 1>&6
6448 echo "configure:6449: checking for dvbpsi/dr.h" >&5
6449 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6450   echo $ac_n "(cached) $ac_c" 1>&6
6451 else
6452   cat > conftest.$ac_ext <<EOF
6453 #line 6454 "configure"
6454 #include "confdefs.h"
6455 #include <dvbpsi/dr.h>
6456 EOF
6457 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6458 { (eval echo configure:6459: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6459 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6460 if test -z "$ac_err"; then
6461   rm -rf conftest*
6462   eval "ac_cv_header_$ac_safe=yes"
6463 else
6464   echo "$ac_err" >&5
6465   echo "configure: failed program was:" >&5
6466   cat conftest.$ac_ext >&5
6467   rm -rf conftest*
6468   eval "ac_cv_header_$ac_safe=no"
6469 fi
6470 rm -f conftest*
6471 fi
6472 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6473   echo "$ac_t""yes" 1>&6
6474   
6475       PLUGINS="${PLUGINS} demux/mpeg/ts_dvbpsi"
6476       ts_dvbpsi_LDFLAGS="${ts_dvbpsi_LDFLAGS} ${test_LDFLAGS} -ldvbpsi"
6477       ts_dvbpsi_CFLAGS="${ts_dvbpsi_CFLAGS} ${test_CFLAGS}"
6478       
6479 else
6480   echo "$ac_t""no" 1>&6
6481
6482       if test "x${enable_dvbpsi}" != "x"
6483       then
6484         { echo "configure: error: Could not find libdvbpsi on your system: you may get it from www.videolan.org, you'll need at least version 0.1.1" 1>&2; exit 1; }
6485       fi
6486     
6487 fi
6488
6489     CPPFLAGS="${save_CPPFLAGS}"
6490   ;;
6491   esac
6492 fi
6493
6494 # Check whether --enable-v4l or --disable-v4l was given.
6495 if test "${enable_v4l+set}" = set; then
6496   enableval="$enable_v4l"
6497   :
6498 fi
6499
6500 if test "x${enable_v4l}" = "xyes"
6501 then
6502   for ac_hdr in libv4l/v4l.h
6503 do
6504 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6505 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6506 echo "configure:6507: checking for $ac_hdr" >&5
6507 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6508   echo $ac_n "(cached) $ac_c" 1>&6
6509 else
6510   cat > conftest.$ac_ext <<EOF
6511 #line 6512 "configure"
6512 #include "confdefs.h"
6513 #include <$ac_hdr>
6514 EOF
6515 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6516 { (eval echo configure:6517: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6517 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6518 if test -z "$ac_err"; then
6519   rm -rf conftest*
6520   eval "ac_cv_header_$ac_safe=yes"
6521 else
6522   echo "$ac_err" >&5
6523   echo "configure: failed program was:" >&5
6524   cat conftest.$ac_ext >&5
6525   rm -rf conftest*
6526   eval "ac_cv_header_$ac_safe=no"
6527 fi
6528 rm -f conftest*
6529 fi
6530 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6531   echo "$ac_t""yes" 1>&6
6532     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6533   cat >> confdefs.h <<EOF
6534 #define $ac_tr_hdr 1
6535 EOF
6536  
6537     PLUGINS="${PLUGINS} access/v4l/v4l"
6538    
6539 else
6540   echo "$ac_t""no" 1>&6
6541 fi
6542 done
6543
6544 fi
6545
6546 # Check whether --enable-vcd or --disable-vcd was given.
6547 if test "${enable_vcd+set}" = set; then
6548   enableval="$enable_vcd"
6549   :
6550 fi
6551
6552
6553 if test "x${enable_vcd}" != "xno"
6554 then
6555   cat > conftest.$ac_ext <<EOF
6556 #line 6557 "configure"
6557 #include "confdefs.h"
6558 #include <linux/cdrom.h>
6559 EOF
6560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6561   egrep "cdrom_msf0" >/dev/null 2>&1; then
6562   rm -rf conftest*
6563   
6564     PLUGINS="${PLUGINS} access/vcd/vcd"
6565   
6566 fi
6567 rm -f conftest*
6568
6569   
6570   cat > conftest.$ac_ext <<EOF
6571 #line 6572 "configure"
6572 #include "confdefs.h"
6573 #include <sys/cdio.h>
6574 EOF
6575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6576   egrep "ioc_toc_header " >/dev/null 2>&1; then
6577   rm -rf conftest*
6578   
6579     PLUGINS="${PLUGINS} access/vcd/vcd"
6580     cat >> confdefs.h <<\EOF
6581 #define HAVE_IOC_TOC_HEADER_IN_SYS_CDIO_H 1
6582 EOF
6583
6584   
6585 fi
6586 rm -f conftest*
6587
6588   
6589   if test "x${SYS}" = "xbsdi"
6590   then
6591     PLUGINS="${PLUGINS} access/vcd/vcd"
6592   fi
6593
6594   if test "x${SYS}" = "xdarwin"
6595   then
6596     # No need to add vcd to PLUGINS, Darwin is already based on FreeBSD
6597     vcd_LDFLAGS="${vcd_LDFLAGS} -framework IOKit -framework CoreFoundation" 
6598   fi
6599 fi
6600
6601 # Check whether --enable-satellite or --disable-satellite was given.
6602 if test "${enable_satellite+set}" = set; then
6603   enableval="$enable_satellite"
6604    if test "x${enable_satellite}" = "xyes"
6605     then
6606       PLUGINS="${PLUGINS} access/satellite/satellite"
6607     fi
6608 fi
6609
6610
6611 if test "x${SYS}" != "xnto" && test "x${SYS}" != "xmingw32"
6612 then
6613   have_ipv6=0
6614   echo $ac_n "checking for inet_pton""... $ac_c" 1>&6
6615 echo "configure:6616: checking for inet_pton" >&5
6616 if eval "test \"`echo '$''{'ac_cv_func_inet_pton'+set}'`\" = set"; then
6617   echo $ac_n "(cached) $ac_c" 1>&6
6618 else
6619   cat > conftest.$ac_ext <<EOF
6620 #line 6621 "configure"
6621 #include "confdefs.h"
6622 /* System header to define __stub macros and hopefully few prototypes,
6623     which can conflict with char inet_pton(); below.  */
6624 #include <assert.h>
6625 /* Override any gcc2 internal prototype to avoid an error.  */
6626 /* We use char because int might match the return type of a gcc2
6627     builtin and then its argument prototype would still apply.  */
6628 char inet_pton();
6629
6630 int main() {
6631
6632 /* The GNU C library defines this for functions which it implements
6633     to always fail with ENOSYS.  Some functions are actually named
6634     something starting with __ and the normal name is an alias.  */
6635 #if defined (__stub_inet_pton) || defined (__stub___inet_pton)
6636 choke me
6637 #else
6638 inet_pton();
6639 #endif
6640
6641 ; return 0; }
6642 EOF
6643 if { (eval echo configure:6644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6644   rm -rf conftest*
6645   eval "ac_cv_func_inet_pton=yes"
6646 else
6647   echo "configure: failed program was:" >&5
6648   cat conftest.$ac_ext >&5
6649   rm -rf conftest*
6650   eval "ac_cv_func_inet_pton=no"
6651 fi
6652 rm -f conftest*
6653 fi
6654
6655 if eval "test \"`echo '$ac_cv_func_'inet_pton`\" = yes"; then
6656   echo "$ac_t""yes" 1>&6
6657   have_ipv6=1
6658 else
6659   echo "$ac_t""no" 1>&6
6660
6661     echo $ac_n "checking for inet_pton in -lresolv""... $ac_c" 1>&6
6662 echo "configure:6663: checking for inet_pton in -lresolv" >&5
6663 ac_lib_var=`echo resolv'_'inet_pton | sed 'y%./+-%__p_%'`
6664 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6665   echo $ac_n "(cached) $ac_c" 1>&6
6666 else
6667   ac_save_LIBS="$LIBS"
6668 LIBS="-lresolv  $LIBS"
6669 cat > conftest.$ac_ext <<EOF
6670 #line 6671 "configure"
6671 #include "confdefs.h"
6672 /* Override any gcc2 internal prototype to avoid an error.  */
6673 /* We use char because int might match the return type of a gcc2
6674     builtin and then its argument prototype would still apply.  */
6675 char inet_pton();
6676
6677 int main() {
6678 inet_pton()
6679 ; return 0; }
6680 EOF
6681 if { (eval echo configure:6682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6682   rm -rf conftest*
6683   eval "ac_cv_lib_$ac_lib_var=yes"
6684 else
6685   echo "configure: failed program was:" >&5
6686   cat conftest.$ac_ext >&5
6687   rm -rf conftest*
6688   eval "ac_cv_lib_$ac_lib_var=no"
6689 fi
6690 rm -f conftest*
6691 LIBS="$ac_save_LIBS"
6692
6693 fi
6694 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6695   echo "$ac_t""yes" 1>&6
6696   have_ipv6=1
6697        ipv6_LDFLAGS="${ipv6_LDFLAGS} -lresolv"
6698 else
6699   echo "$ac_t""no" 1>&6
6700 fi
6701
6702   
6703 fi
6704
6705   echo $ac_n "checking for sockaddr_in6 in netinet/in.h""... $ac_c" 1>&6
6706 echo "configure:6707: checking for sockaddr_in6 in netinet/in.h" >&5
6707   cat > conftest.$ac_ext <<EOF
6708 #line 6709 "configure"
6709 #include "confdefs.h"
6710 #include <netinet/in.h>
6711 EOF
6712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6713   egrep "sockaddr_in6" >/dev/null 2>&1; then
6714   rm -rf conftest*
6715   echo "$ac_t""yes" 1>&6
6716 else
6717   rm -rf conftest*
6718   echo "$ac_t""no" 1>&6; have_ipv6=0
6719 fi
6720 rm -f conftest*
6721
6722   if test x$have_ipv6 = x1; then
6723     PLUGINS="${PLUGINS} misc/network/ipv6"
6724   fi
6725 fi
6726 if test "x${SYS}" = "xmingw32"
6727 then
6728   echo $ac_n "checking for getaddrinfo in ws2tcpip.h""... $ac_c" 1>&6
6729 echo "configure:6730: checking for getaddrinfo in ws2tcpip.h" >&5
6730   cat > conftest.$ac_ext <<EOF
6731 #line 6732 "configure"
6732 #include "confdefs.h"
6733 #include <ws2tcpip.h>
6734 EOF
6735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6736   egrep "addrinfo" >/dev/null 2>&1; then
6737   rm -rf conftest*
6738   echo "$ac_t""yes" 1>&6
6739     PLUGINS="${PLUGINS} misc/network/ipv6"
6740 else
6741   rm -rf conftest*
6742   echo "$ac_t""no" 1>&6
6743 fi
6744 rm -f conftest*
6745
6746 fi
6747
6748 # Check whether --enable-avi or --disable-avi was given.
6749 if test "${enable_avi+set}" = set; then
6750   enableval="$enable_avi"
6751   :
6752 fi
6753
6754 if test "x${enable_avi}" != "xno"
6755 then
6756   PLUGINS="${PLUGINS} demux/avi/avi"
6757 fi
6758
6759
6760 # Check whether --with- or --without- was given.
6761 if test "${with_+set}" = set; then
6762   withval="$with_"
6763   :
6764 fi
6765
6766
6767 # Check whether --enable-mad or --disable-mad was given.
6768 if test "${enable_mad+set}" = set; then
6769   enableval="$enable_mad"
6770   :
6771 fi
6772
6773 if test "x${enable_mad}" = "xyes"
6774 then
6775   # Check whether --with-mad or --without-mad was given.
6776 if test "${with_mad+set}" = set; then
6777   withval="$with_mad"
6778   :
6779 fi
6780
6781   if test "x${with_mad}" != "xno" -a "x${with_mad}" != "x"
6782   then
6783     mad_CFLAGS="${mad_CFLAGS} -I${with_mad}/include"
6784     mad_LDFLAGS="${mad_LDFLAGS} -L${with_mad}/lib"
6785   fi
6786
6787   # Check whether --with-mad-tree or --without-mad-tree was given.
6788 if test "${with_mad_tree+set}" = set; then
6789   withval="$with_mad_tree"
6790   :
6791 fi
6792
6793   if test "x${with_mad_tree}" != "xno" -a "x${with_mad_tree}" != "x"
6794   then
6795     real_mad_tree="`cd ${with_mad_tree} 2>/dev/null && pwd`"
6796     if test "x${real_mad_tree}" = "x"
6797     then
6798             echo "$ac_t""no" 1>&6
6799       { echo "configure: error: ${with_mad_tree} directory doesn't exist" 1>&2; exit 1; }
6800     fi
6801         echo $ac_n "checking for mad.h in ${real_mad_tree}/libmad""... $ac_c" 1>&6
6802 echo "configure:6803: checking for mad.h in ${real_mad_tree}/libmad" >&5
6803     if test -f ${real_mad_tree}/libmad/mad.h
6804     then
6805       echo "$ac_t""yes" 1>&6
6806       mad_CFLAGS="${mad_CFLAGS} -I${real_mad_tree}/libmad"
6807       mad_LDFLAGS="${mad_LDFLAGS} -L${real_mad_tree}/libmad/.libs"
6808       LDFLAGS="${save_LDFLAGS} ${mad_LDFLAGS}"
6809       echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6810 echo "configure:6811: checking for mad_bit_init in -lmad" >&5
6811 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6812 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6813   echo $ac_n "(cached) $ac_c" 1>&6
6814 else
6815   ac_save_LIBS="$LIBS"
6816 LIBS="-lmad  $LIBS"
6817 cat > conftest.$ac_ext <<EOF
6818 #line 6819 "configure"
6819 #include "confdefs.h"
6820 /* Override any gcc2 internal prototype to avoid an error.  */
6821 /* We use char because int might match the return type of a gcc2
6822     builtin and then its argument prototype would still apply.  */
6823 char mad_bit_init();
6824
6825 int main() {
6826 mad_bit_init()
6827 ; return 0; }
6828 EOF
6829 if { (eval echo configure:6830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6830   rm -rf conftest*
6831   eval "ac_cv_lib_$ac_lib_var=yes"
6832 else
6833   echo "configure: failed program was:" >&5
6834   cat conftest.$ac_ext >&5
6835   rm -rf conftest*
6836   eval "ac_cv_lib_$ac_lib_var=no"
6837 fi
6838 rm -f conftest*
6839 LIBS="$ac_save_LIBS"
6840
6841 fi
6842 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6843   echo "$ac_t""yes" 1>&6
6844   
6845         #BUILTINS="${BUILTINS} codec/mad/mad"
6846         mad_LDFLAGS="${mad_LDFLAGS} -lmad"
6847         
6848 else
6849   echo "$ac_t""no" 1>&6
6850  { echo "configure: error: the specified tree hasn't been compiled " 1>&2; exit 1; }
6851       
6852 fi
6853
6854       LDFLAGS="${save_LDFLAGS}"
6855     else
6856       echo "$ac_t""no" 1>&6
6857       { echo "configure: error: the specified tree doesn't have mad.h" 1>&2; exit 1; }
6858     fi
6859   else
6860     CFLAGS="${save_CFLAGS} ${mad_CFLAGS}"
6861     LDFLAGS="${save_LDFLAGS} ${mad_LDFLAGS}"
6862     for ac_hdr in mad.h
6863 do
6864 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6865 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6866 echo "configure:6867: checking for $ac_hdr" >&5
6867 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6868   echo $ac_n "(cached) $ac_c" 1>&6
6869 else
6870   cat > conftest.$ac_ext <<EOF
6871 #line 6872 "configure"
6872 #include "confdefs.h"
6873 #include <$ac_hdr>
6874 EOF
6875 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6876 { (eval echo configure:6877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6877 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6878 if test -z "$ac_err"; then
6879   rm -rf conftest*
6880   eval "ac_cv_header_$ac_safe=yes"
6881 else
6882   echo "$ac_err" >&5
6883   echo "configure: failed program was:" >&5
6884   cat conftest.$ac_ext >&5
6885   rm -rf conftest*
6886   eval "ac_cv_header_$ac_safe=no"
6887 fi
6888 rm -f conftest*
6889 fi
6890 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6891   echo "$ac_t""yes" 1>&6
6892     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6893   cat >> confdefs.h <<EOF
6894 #define $ac_tr_hdr 1
6895 EOF
6896  
6897 else
6898   echo "$ac_t""no" 1>&6
6899 { echo "configure: error: Cannot find development headers for libmad..." 1>&2; exit 1; } 
6900 fi
6901 done
6902
6903     echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6904 echo "configure:6905: checking for mad_bit_init in -lmad" >&5
6905 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6906 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6907   echo $ac_n "(cached) $ac_c" 1>&6
6908 else
6909   ac_save_LIBS="$LIBS"
6910 LIBS="-lmad  $LIBS"
6911 cat > conftest.$ac_ext <<EOF
6912 #line 6913 "configure"
6913 #include "confdefs.h"
6914 /* Override any gcc2 internal prototype to avoid an error.  */
6915 /* We use char because int might match the return type of a gcc2
6916     builtin and then its argument prototype would still apply.  */
6917 char mad_bit_init();
6918
6919 int main() {
6920 mad_bit_init()
6921 ; return 0; }
6922 EOF
6923 if { (eval echo configure:6924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6924   rm -rf conftest*
6925   eval "ac_cv_lib_$ac_lib_var=yes"
6926 else
6927   echo "configure: failed program was:" >&5
6928   cat conftest.$ac_ext >&5
6929   rm -rf conftest*
6930   eval "ac_cv_lib_$ac_lib_var=no"
6931 fi
6932 rm -f conftest*
6933 LIBS="$ac_save_LIBS"
6934
6935 fi
6936 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6937   echo "$ac_t""yes" 1>&6
6938   
6939       #PLUGINS="${PLUGINS} codec/mad/mad"
6940       mad_LDFLAGS="${mad_LDFLAGS} -lmad" 
6941 else
6942   echo "$ac_t""no" 1>&6
6943  { echo "configure: error: Cannot find libmad library..." 1>&2; exit 1; } 
6944 fi
6945
6946     CFLAGS="${save_CFLAGS}"
6947     LDFLAGS="${save_LDFLAGS}"
6948   fi
6949 fi
6950
6951 # Check whether --enable-ffmpeg or --disable-ffmpeg was given.
6952 if test "${enable_ffmpeg+set}" = set; then
6953   enableval="$enable_ffmpeg"
6954   :
6955 fi
6956
6957 if test "x${enable_ffmpeg}" = "xyes"
6958 then
6959   # Check whether --with-ffmpeg or --without-ffmpeg was given.
6960 if test "${with_ffmpeg+set}" = set; then
6961   withval="$with_ffmpeg"
6962   :
6963 fi
6964
6965   if test "x${with_ffmpeg}" != "xno" -a "x${with_ffmpeg}" != "x"
6966   then
6967     ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I${with_ffmpeg}/include/libffmpeg"
6968     ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -L${with_ffmpeg}/lib"
6969   fi
6970
6971     PLUGINS="${PLUGINS} codec/ffmpeg/postprocessing/postprocessing_c"
6972   if test "x${ac_cv_mmx_inline}" != "xno"; then
6973     PLUGINS="${PLUGINS} codec/ffmpeg/postprocessing/postprocessing_mmx"
6974   fi
6975
6976   if test "x${ac_cv_mmxext_inline}" != "xno"; then
6977     PLUGINS="${PLUGINS} codec/ffmpeg/postprocessing/postprocessing_mmxext"
6978   fi
6979
6980
6981   # Check whether --with-ffmpeg-tree or --without-ffmpeg-tree was given.
6982 if test "${with_ffmpeg_tree+set}" = set; then
6983   withval="$with_ffmpeg_tree"
6984   :
6985 fi
6986
6987   if test "x${with_ffmpeg_tree}" != "x"
6988   then
6989     echo $ac_n "checking for libavcodec.a in ${with_ffmpeg_tree}""... $ac_c" 1>&6
6990 echo "configure:6991: checking for libavcodec.a in ${with_ffmpeg_tree}" >&5
6991     real_ffmpeg_tree="`cd ${with_ffmpeg_tree} 2>/dev/null && pwd`"
6992     if test "x${real_ffmpeg_tree}" = x
6993     then
6994             echo "$ac_t""no" 1>&6
6995       { echo "configure: error: cannot cd to ${with_ffmpeg_tree}" 1>&2; exit 1; }
6996     fi
6997     if test -f "${real_ffmpeg_tree}/libavcodec/libavcodec.a"
6998     then
6999             echo "$ac_t""${real_ffmpeg_tree}/libavcodec/libavcodec.a" 1>&6
7000       BUILTINS="${BUILTINS} codec/ffmpeg/ffmpeg"
7001       ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} ${real_ffmpeg_tree}/libavcodec/libavcodec.a -lm"
7002       ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I${real_ffmpeg_tree}/libavcodec"
7003     else
7004             echo "$ac_t""no" 1>&6
7005       { echo "configure: error: cannot find ${real_ffmpeg_tree}/libavcodec/libavcodec.a, make sure you compiled libavcodec in ${with_ffmpeg_tree}" 1>&2; exit 1; }
7006     fi
7007   else
7008     CFLAGS="${save_CFLAGS} ${ffmpeg_CFLAGS}"
7009     LDFLAGS="${save_LDFLAGS} ${ffmpeg_LDFLAGS} -lm"
7010     echo $ac_n "checking for avcodec_init in -lavcodec""... $ac_c" 1>&6
7011 echo "configure:7012: checking for avcodec_init in -lavcodec" >&5
7012 ac_lib_var=`echo avcodec'_'avcodec_init | sed 'y%./+-%__p_%'`
7013 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7014   echo $ac_n "(cached) $ac_c" 1>&6
7015 else
7016   ac_save_LIBS="$LIBS"
7017 LIBS="-lavcodec  $LIBS"
7018 cat > conftest.$ac_ext <<EOF
7019 #line 7020 "configure"
7020 #include "confdefs.h"
7021 /* Override any gcc2 internal prototype to avoid an error.  */
7022 /* We use char because int might match the return type of a gcc2
7023     builtin and then its argument prototype would still apply.  */
7024 char avcodec_init();
7025
7026 int main() {
7027 avcodec_init()
7028 ; return 0; }
7029 EOF
7030 if { (eval echo configure:7031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7031   rm -rf conftest*
7032   eval "ac_cv_lib_$ac_lib_var=yes"
7033 else
7034   echo "configure: failed program was:" >&5
7035   cat conftest.$ac_ext >&5
7036   rm -rf conftest*
7037   eval "ac_cv_lib_$ac_lib_var=no"
7038 fi
7039 rm -f conftest*
7040 LIBS="$ac_save_LIBS"
7041
7042 fi
7043 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7044   echo "$ac_t""yes" 1>&6
7045   
7046       BUILTINS="${BUILTINS} codec/ffmpeg/ffmpeg"
7047       ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lavcodec -lm" 
7048 else
7049   echo "$ac_t""no" 1>&6
7050  { echo "configure: error: Cannot find libavcodec library..." 1>&2; exit 1; } 
7051 fi
7052
7053     LDFLAGS="${save_LDFLAGS}"
7054     CFLAGS="${save_CFLAGS}"
7055   fi
7056 fi
7057
7058 # Check whether --enable-mp4 or --disable-mp4 was given.
7059 if test "${enable_mp4+set}" = set; then
7060   enableval="$enable_mp4"
7061   :
7062 fi
7063
7064 if test "x${enable_mp4}" = "xyes"
7065 then
7066     ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
7067 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
7068 echo "configure:7069: checking for zlib.h" >&5
7069 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7070   echo $ac_n "(cached) $ac_c" 1>&6
7071 else
7072   cat > conftest.$ac_ext <<EOF
7073 #line 7074 "configure"
7074 #include "confdefs.h"
7075 #include <zlib.h>
7076 EOF
7077 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7078 { (eval echo configure:7079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7079 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7080 if test -z "$ac_err"; then
7081   rm -rf conftest*
7082   eval "ac_cv_header_$ac_safe=yes"
7083 else
7084   echo "$ac_err" >&5
7085   echo "configure: failed program was:" >&5
7086   cat conftest.$ac_ext >&5
7087   rm -rf conftest*
7088   eval "ac_cv_header_$ac_safe=no"
7089 fi
7090 rm -f conftest*
7091 fi
7092 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7093   echo "$ac_t""yes" 1>&6
7094   echo $ac_n "checking for inflateEnd in -lz""... $ac_c" 1>&6
7095 echo "configure:7096: checking for inflateEnd in -lz" >&5
7096 ac_lib_var=`echo z'_'inflateEnd | sed 'y%./+-%__p_%'`
7097 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7098   echo $ac_n "(cached) $ac_c" 1>&6
7099 else
7100   ac_save_LIBS="$LIBS"
7101 LIBS="-lz  $LIBS"
7102 cat > conftest.$ac_ext <<EOF
7103 #line 7104 "configure"
7104 #include "confdefs.h"
7105 /* Override any gcc2 internal prototype to avoid an error.  */
7106 /* We use char because int might match the return type of a gcc2
7107     builtin and then its argument prototype would still apply.  */
7108 char inflateEnd();
7109
7110 int main() {
7111 inflateEnd()
7112 ; return 0; }
7113 EOF
7114 if { (eval echo configure:7115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7115   rm -rf conftest*
7116   eval "ac_cv_lib_$ac_lib_var=yes"
7117 else
7118   echo "configure: failed program was:" >&5
7119   cat conftest.$ac_ext >&5
7120   rm -rf conftest*
7121   eval "ac_cv_lib_$ac_lib_var=no"
7122 fi
7123 rm -f conftest*
7124 LIBS="$ac_save_LIBS"
7125
7126 fi
7127 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7128   echo "$ac_t""yes" 1>&6
7129    PLUGINS="${PLUGINS} demux/mp4/mp4"
7130               mp4_LDFLAGS="${mp4_LDFLAGS} -lz" 
7131 else
7132   echo "$ac_t""no" 1>&6
7133  { echo "configure: error: cannot find zlib library..." 1>&2; exit 1; } 
7134 fi
7135
7136 else
7137   echo "$ac_t""no" 1>&6
7138   { echo "configure: error: cannot find zlib header..." 1>&2; exit 1; } 
7139 fi
7140
7141 fi
7142
7143 # Check whether --enable-a52 or --disable-a52 was given.
7144 if test "${enable_a52+set}" = set; then
7145   enableval="$enable_a52"
7146   :
7147 fi
7148
7149 if test "x${enable_a52}" != "xno"
7150 then
7151   # Check whether --with-a52 or --without-a52 was given.
7152 if test "${with_a52+set}" = set; then
7153   withval="$with_a52"
7154   :
7155 fi
7156
7157   # Check whether --with-a52-tree or --without-a52-tree was given.
7158 if test "${with_a52_tree+set}" = set; then
7159   withval="$with_a52_tree"
7160   :
7161 fi
7162
7163   if test "x${with_a52_tree}" != "xno" -a "x${with_a52_tree}" != "x"
7164   then
7165     real_a52_tree="`cd ${with_a52_tree} 2>/dev/null && pwd`"
7166     if test "x${real_a52_tree}" = "x"
7167     then
7168             echo "$ac_t""no" 1>&6
7169       { echo "configure: error: ${with_a52_tree} directory doesn't exist" 1>&2; exit 1; }
7170     fi
7171         echo $ac_n "checking for a52.h in ${real_a52_tree}/include""... $ac_c" 1>&6
7172 echo "configure:7173: checking for a52.h in ${real_a52_tree}/include" >&5
7173     if test -f ${real_a52_tree}/include/a52.h
7174     then
7175       echo "$ac_t""yes" 1>&6
7176       a52_CFLAGS="${a52_CFLAGS} -I${real_a52_tree}"
7177       a52_LDFLAGS="${a52_LDFLAGS} -L${real_a52_tree}/liba52/.libs"
7178       LDFLAGS="${save_LDFLAGS} ${a52_LDFLAGS}"
7179       echo $ac_n "checking for a52_free in -la52""... $ac_c" 1>&6
7180 echo "configure:7181: checking for a52_free in -la52" >&5
7181 ac_lib_var=`echo a52'_'a52_free | sed 'y%./+-%__p_%'`
7182 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7183   echo $ac_n "(cached) $ac_c" 1>&6
7184 else
7185   ac_save_LIBS="$LIBS"
7186 LIBS="-la52 -lm $LIBS"
7187 cat > conftest.$ac_ext <<EOF
7188 #line 7189 "configure"
7189 #include "confdefs.h"
7190 /* Override any gcc2 internal prototype to avoid an error.  */
7191 /* We use char because int might match the return type of a gcc2
7192     builtin and then its argument prototype would still apply.  */
7193 char a52_free();
7194
7195 int main() {
7196 a52_free()
7197 ; return 0; }
7198 EOF
7199 if { (eval echo configure:7200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7200   rm -rf conftest*
7201   eval "ac_cv_lib_$ac_lib_var=yes"
7202 else
7203   echo "configure: failed program was:" >&5
7204   cat conftest.$ac_ext >&5
7205   rm -rf conftest*
7206   eval "ac_cv_lib_$ac_lib_var=no"
7207 fi
7208 rm -f conftest*
7209 LIBS="$ac_save_LIBS"
7210
7211 fi
7212 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7213   echo "$ac_t""yes" 1>&6
7214   
7215         BUILTINS="${BUILTINS} codec/a52/a52"
7216         a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
7217         a52_CFLAGS="${a52_CFLAGS} -DUSE_A52DEC_TREE"
7218         
7219 else
7220   echo "$ac_t""no" 1>&6
7221
7222         if test -f ${real_a52_tree}/liba52/.libs/liba52.a
7223         then
7224           { echo "configure: error: make sure you have at least a52dec-0.7.3" 1>&2; exit 1; }
7225         else
7226           { echo "configure: error: the specified tree hasn't been compiled" 1>&2; exit 1; }
7227         fi
7228       
7229 fi
7230
7231       LDFLAGS="${save_LDFLAGS}"
7232     else
7233       echo "$ac_t""no" 1>&6
7234       { echo "configure: error: the specified tree doesn't have a52.h" 1>&2; exit 1; }
7235     fi
7236   else
7237     if test "x${with_a52}" = "x"
7238     then
7239       test_LDFLAGS=""
7240       test_CFLAGS=""
7241     else
7242       test_LDFLAGS="-L${with_a52}/lib"
7243       test_CFLAGS="-I${with_a52}/include"
7244     fi
7245     save_CPPFLAGS="${CPPFLAGS}"
7246     save_LDFLAGS="${LDFLAGS}"
7247     CPPFLAGS="${save_CPPFLAGS} ${test_CFLAGS}"
7248     LDFLAGS="${save_LDFLAGS} ${test_LDFLAGS}"
7249     for ac_hdr in a52dec/a52.h
7250 do
7251 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7252 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7253 echo "configure:7254: checking for $ac_hdr" >&5
7254 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7255   echo $ac_n "(cached) $ac_c" 1>&6
7256 else
7257   cat > conftest.$ac_ext <<EOF
7258 #line 7259 "configure"
7259 #include "confdefs.h"
7260 #include <$ac_hdr>
7261 EOF
7262 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7263 { (eval echo configure:7264: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7264 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7265 if test -z "$ac_err"; then
7266   rm -rf conftest*
7267   eval "ac_cv_header_$ac_safe=yes"
7268 else
7269   echo "$ac_err" >&5
7270   echo "configure: failed program was:" >&5
7271   cat conftest.$ac_ext >&5
7272   rm -rf conftest*
7273   eval "ac_cv_header_$ac_safe=no"
7274 fi
7275 rm -f conftest*
7276 fi
7277 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7278   echo "$ac_t""yes" 1>&6
7279     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7280   cat >> confdefs.h <<EOF
7281 #define $ac_tr_hdr 1
7282 EOF
7283  
7284       echo $ac_n "checking for a52_free in -la52""... $ac_c" 1>&6
7285 echo "configure:7286: checking for a52_free in -la52" >&5
7286 ac_lib_var=`echo a52'_'a52_free | sed 'y%./+-%__p_%'`
7287 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7288   echo $ac_n "(cached) $ac_c" 1>&6
7289 else
7290   ac_save_LIBS="$LIBS"
7291 LIBS="-la52 -lm $LIBS"
7292 cat > conftest.$ac_ext <<EOF
7293 #line 7294 "configure"
7294 #include "confdefs.h"
7295 /* Override any gcc2 internal prototype to avoid an error.  */
7296 /* We use char because int might match the return type of a gcc2
7297     builtin and then its argument prototype would still apply.  */
7298 char a52_free();
7299
7300 int main() {
7301 a52_free()
7302 ; return 0; }
7303 EOF
7304 if { (eval echo configure:7305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7305   rm -rf conftest*
7306   eval "ac_cv_lib_$ac_lib_var=yes"
7307 else
7308   echo "configure: failed program was:" >&5
7309   cat conftest.$ac_ext >&5
7310   rm -rf conftest*
7311   eval "ac_cv_lib_$ac_lib_var=no"
7312 fi
7313 rm -f conftest*
7314 LIBS="$ac_save_LIBS"
7315
7316 fi
7317 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7318   echo "$ac_t""yes" 1>&6
7319   
7320         BUILTINS="${BUILTINS} codec/a52/a52"
7321         a52_LDFLAGS="${a52_LDFLAGS} ${test_LDFLAGS} -la52 -lm"
7322         a52_CFLAGS="${a52_CFLAGS} ${test_CFLAGS}"
7323       
7324 else
7325   echo "$ac_t""no" 1>&6
7326
7327         if test "x${enable_dvbpsi}" != "x"
7328         then
7329           { echo "configure: error: Could not find a52 on your system: you may get it from http://liba52.sf.net" 1>&2; exit 1; }
7330         fi
7331       
7332 fi
7333
7334     
7335 else
7336   echo "$ac_t""no" 1>&6
7337 fi
7338 done
7339
7340     CPPFLAGS="${save_CPPFLAGS}"
7341     LDFLAGS="${save_LDFLAGS}"
7342   fi
7343 fi
7344
7345 # Check whether --enable-cinepak or --disable-cinepak was given.
7346 if test "${enable_cinepak+set}" = set; then
7347   enableval="$enable_cinepak"
7348   :
7349 fi
7350
7351 if test "x${enable_cinepak}" != "xno"
7352 then
7353   PLUGINS="${PLUGINS} codec/cinepak/cinepak"
7354 fi
7355
7356 # Check whether --enable-vorbis or --disable-vorbis was given.
7357 if test "${enable_vorbis+set}" = set; then
7358   enableval="$enable_vorbis"
7359   :
7360 fi
7361
7362 if test "x${enable_vorbis}" != "xno"
7363 then
7364   for ac_hdr in ogg/ogg.h
7365 do
7366 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7367 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7368 echo "configure:7369: checking for $ac_hdr" >&5
7369 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7370   echo $ac_n "(cached) $ac_c" 1>&6
7371 else
7372   cat > conftest.$ac_ext <<EOF
7373 #line 7374 "configure"
7374 #include "confdefs.h"
7375 #include <$ac_hdr>
7376 EOF
7377 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7378 { (eval echo configure:7379: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7379 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7380 if test -z "$ac_err"; then
7381   rm -rf conftest*
7382   eval "ac_cv_header_$ac_safe=yes"
7383 else
7384   echo "$ac_err" >&5
7385   echo "configure: failed program was:" >&5
7386   cat conftest.$ac_ext >&5
7387   rm -rf conftest*
7388   eval "ac_cv_header_$ac_safe=no"
7389 fi
7390 rm -f conftest*
7391 fi
7392 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7393   echo "$ac_t""yes" 1>&6
7394     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7395   cat >> confdefs.h <<EOF
7396 #define $ac_tr_hdr 1
7397 EOF
7398  
7399         #PLUGINS="${PLUGINS} demux/ogg/ogg codec/vorbis/vorbis"
7400     vorbis_LDFLAGS="${vorbis_LDFLAGS} -lvorbis"
7401    
7402 else
7403   echo "$ac_t""no" 1>&6
7404 fi
7405 done
7406
7407 fi
7408
7409 # Check whether --enable-dv or --disable-dv was given.
7410 if test "${enable_dv+set}" = set; then
7411   enableval="$enable_dv"
7412   :
7413 fi
7414
7415 if test "x${enable_dv}" = "xyes"
7416 then
7417   for ac_hdr in libdv/dv.h
7418 do
7419 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7420 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7421 echo "configure:7422: checking for $ac_hdr" >&5
7422 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7423   echo $ac_n "(cached) $ac_c" 1>&6
7424 else
7425   cat > conftest.$ac_ext <<EOF
7426 #line 7427 "configure"
7427 #include "confdefs.h"
7428 #include <$ac_hdr>
7429 EOF
7430 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7431 { (eval echo configure:7432: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7432 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7433 if test -z "$ac_err"; then
7434   rm -rf conftest*
7435   eval "ac_cv_header_$ac_safe=yes"
7436 else
7437   echo "$ac_err" >&5
7438   echo "configure: failed program was:" >&5
7439   cat conftest.$ac_ext >&5
7440   rm -rf conftest*
7441   eval "ac_cv_header_$ac_safe=no"
7442 fi
7443 rm -f conftest*
7444 fi
7445 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7446   echo "$ac_t""yes" 1>&6
7447     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7448   cat >> confdefs.h <<EOF
7449 #define $ac_tr_hdr 1
7450 EOF
7451  
7452     BUILTINS="${BUILTINS} codec/dv/dv"
7453     dv_LDFLAGS="${dv_LDFLAGS} -ldv"
7454    
7455 else
7456   echo "$ac_t""no" 1>&6
7457 fi
7458 done
7459
7460 fi  
7461
7462
7463 # Check whether --with- or --without- was given.
7464 if test "${with_+set}" = set; then
7465   withval="$with_"
7466   :
7467 fi
7468
7469
7470 # Check whether --enable-x11 or --disable-x11 was given.
7471 if test "${enable_x11+set}" = set; then
7472   enableval="$enable_x11"
7473   :
7474 fi
7475
7476 if test "x${enable_x11}" != "xno" &&
7477   (test "x${SYS}" != "xmingw32" || test "x${enable_x11}" = "xyes"); then
7478   CPPFLAGS="${save_CPPFLAGS} -I${x_includes}"
7479   for ac_hdr in X11/Xlib.h
7480 do
7481 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7482 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7483 echo "configure:7484: checking for $ac_hdr" >&5
7484 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7485   echo $ac_n "(cached) $ac_c" 1>&6
7486 else
7487   cat > conftest.$ac_ext <<EOF
7488 #line 7489 "configure"
7489 #include "confdefs.h"
7490 #include <$ac_hdr>
7491 EOF
7492 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7493 { (eval echo configure:7494: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7494 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7495 if test -z "$ac_err"; then
7496   rm -rf conftest*
7497   eval "ac_cv_header_$ac_safe=yes"
7498 else
7499   echo "$ac_err" >&5
7500   echo "configure: failed program was:" >&5
7501   cat conftest.$ac_ext >&5
7502   rm -rf conftest*
7503   eval "ac_cv_header_$ac_safe=no"
7504 fi
7505 rm -f conftest*
7506 fi
7507 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7508   echo "$ac_t""yes" 1>&6
7509     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7510   cat >> confdefs.h <<EOF
7511 #define $ac_tr_hdr 1
7512 EOF
7513  
7514     PLUGINS="${PLUGINS} video_output/x11/x11"
7515     x11_LDFLAGS="${x11_LDFLAGS} -L${x_libraries} -lX11 -lXext"
7516     x11_CFLAGS="${x11_CFLAGS} -I${x_includes}"
7517   
7518 else
7519   echo "$ac_t""no" 1>&6
7520 fi
7521 done
7522
7523   CPPFLAGS="${save_CPPFLAGS}"
7524 fi
7525
7526 # Check whether --enable-xvideo or --disable-xvideo was given.
7527 if test "${enable_xvideo+set}" = set; then
7528   enableval="$enable_xvideo"
7529   :
7530 fi
7531
7532 if test "x${enable_xvideo}" != "xno" &&
7533   (test "x${SYS}" != "xmingw32" || test "x${enable_xvideo}" = "xyes"); then
7534   CPPFLAGS="${save_CPPFLAGS} -I${x_includes}"
7535   for ac_hdr in X11/extensions/Xv.h
7536 do
7537 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7538 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7539 echo "configure:7540: checking for $ac_hdr" >&5
7540 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7541   echo $ac_n "(cached) $ac_c" 1>&6
7542 else
7543   cat > conftest.$ac_ext <<EOF
7544 #line 7545 "configure"
7545 #include "confdefs.h"
7546 #include <$ac_hdr>
7547 EOF
7548 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7549 { (eval echo configure:7550: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7550 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7551 if test -z "$ac_err"; then
7552   rm -rf conftest*
7553   eval "ac_cv_header_$ac_safe=yes"
7554 else
7555   echo "$ac_err" >&5
7556   echo "configure: failed program was:" >&5
7557   cat conftest.$ac_ext >&5
7558   rm -rf conftest*
7559   eval "ac_cv_header_$ac_safe=no"
7560 fi
7561 rm -f conftest*
7562 fi
7563 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7564   echo "$ac_t""yes" 1>&6
7565     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7566   cat >> confdefs.h <<EOF
7567 #define $ac_tr_hdr 1
7568 EOF
7569  
7570     CFLAGS="${save_CFLAGS} -L${x_libraries} -lX11 -lXext"
7571     echo $ac_n "checking for XvPutImage in -lXv_pic""... $ac_c" 1>&6
7572 echo "configure:7573: checking for XvPutImage in -lXv_pic" >&5
7573 ac_lib_var=`echo Xv_pic'_'XvPutImage | sed 'y%./+-%__p_%'`
7574 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7575   echo $ac_n "(cached) $ac_c" 1>&6
7576 else
7577   ac_save_LIBS="$LIBS"
7578 LIBS="-lXv_pic  $LIBS"
7579 cat > conftest.$ac_ext <<EOF
7580 #line 7581 "configure"
7581 #include "confdefs.h"
7582 /* Override any gcc2 internal prototype to avoid an error.  */
7583 /* We use char because int might match the return type of a gcc2
7584     builtin and then its argument prototype would still apply.  */
7585 char XvPutImage();
7586
7587 int main() {
7588 XvPutImage()
7589 ; return 0; }
7590 EOF
7591 if { (eval echo configure:7592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7592   rm -rf conftest*
7593   eval "ac_cv_lib_$ac_lib_var=yes"
7594 else
7595   echo "configure: failed program was:" >&5
7596   cat conftest.$ac_ext >&5
7597   rm -rf conftest*
7598   eval "ac_cv_lib_$ac_lib_var=no"
7599 fi
7600 rm -f conftest*
7601 LIBS="$ac_save_LIBS"
7602
7603 fi
7604 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7605   echo "$ac_t""yes" 1>&6
7606   # We have Xv_pic, that's good, we can build an xvideo.so plugin !
7607       PLUGINS="${PLUGINS} video_output/x11/xvideo"
7608       xvideo_LDFLAGS="${xvideo_LDFLAGS} -L${x_libraries} -lX11 -lXext -lXv_pic"
7609       xvideo_CFLAGS="${xvideo_CFLAGS} -I${x_includes}"
7610 else
7611   echo "$ac_t""no" 1>&6
7612 echo $ac_n "checking for XvPutImage in -lXv""... $ac_c" 1>&6
7613 echo "configure:7614: checking for XvPutImage in -lXv" >&5
7614 ac_lib_var=`echo Xv'_'XvPutImage | sed 'y%./+-%__p_%'`
7615 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7616   echo $ac_n "(cached) $ac_c" 1>&6
7617 else
7618   ac_save_LIBS="$LIBS"
7619 LIBS="-lXv  $LIBS"
7620 cat > conftest.$ac_ext <<EOF
7621 #line 7622 "configure"
7622 #include "confdefs.h"
7623 /* Override any gcc2 internal prototype to avoid an error.  */
7624 /* We use char because int might match the return type of a gcc2
7625     builtin and then its argument prototype would still apply.  */
7626 char XvPutImage();
7627
7628 int main() {
7629 XvPutImage()
7630 ; return 0; }
7631 EOF
7632 if { (eval echo configure:7633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7633   rm -rf conftest*
7634   eval "ac_cv_lib_$ac_lib_var=yes"
7635 else
7636   echo "configure: failed program was:" >&5
7637   cat conftest.$ac_ext >&5
7638   rm -rf conftest*
7639   eval "ac_cv_lib_$ac_lib_var=no"
7640 fi
7641 rm -f conftest*
7642 LIBS="$ac_save_LIBS"
7643
7644 fi
7645 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7646   echo "$ac_t""yes" 1>&6
7647   # We don't have Xv_pic, but we have Xv, let's make xvideo.a as builtin
7648         PLUGINS="${PLUGINS} video_output/x11/xvideo"
7649         xvideo_LDFLAGS="${xvideo_LDFLAGS} -L${x_libraries} -lX11 -lXext -lXv"
7650         xvideo_CFLAGS="${xvideo_CFLAGS} -I${x_includes}"
7651 else
7652   echo "$ac_t""no" 1>&6
7653 # Otherwise... well, do nothing.
7654         :
7655       
7656 fi
7657
7658     
7659 fi
7660
7661     CFLAGS="${save_CFLAGS}"
7662   
7663   CPPFLAGS="${save_CPPFLAGS}"
7664 else
7665   echo "$ac_t""no" 1>&6
7666 fi
7667 done
7668
7669 fi
7670
7671 # Check whether --enable-sdl or --disable-sdl was given.
7672 if test "${enable_sdl+set}" = set; then
7673   enableval="$enable_sdl"
7674   :
7675 fi
7676
7677 if test "x${enable_sdl}" != "xno"
7678 then
7679   SDL_PATH="${PATH}"
7680   # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
7681 if test "${with_sdl_config_path+set}" = set; then
7682   withval="$with_sdl_config_path"
7683    if test "x${with_sdl_config_path}" != "xno"
7684       then
7685         SDL_PATH="${with_sdl_config_path}:${PATH}"
7686       fi 
7687 fi
7688
7689   # Extract the first word of "sdl12-config", so it can be a program name with args.
7690 set dummy sdl12-config; ac_word=$2
7691 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7692 echo "configure:7693: checking for $ac_word" >&5
7693 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
7694   echo $ac_n "(cached) $ac_c" 1>&6
7695 else
7696   case "$SDL12_CONFIG" in
7697   /*)
7698   ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
7699   ;;
7700   ?:/*)                  
7701   ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
7702   ;;
7703   *)
7704   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
7705   ac_dummy="${SDL_PATH}"
7706   for ac_dir in $ac_dummy; do 
7707     test -z "$ac_dir" && ac_dir=.
7708     if test -f $ac_dir/$ac_word; then
7709       ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
7710       break
7711     fi
7712   done
7713   IFS="$ac_save_ifs"
7714   test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
7715   ;;
7716 esac
7717 fi
7718 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
7719 if test -n "$SDL12_CONFIG"; then
7720   echo "$ac_t""$SDL12_CONFIG" 1>&6
7721 else
7722   echo "$ac_t""no" 1>&6
7723 fi
7724
7725   SDL_CONFIG="${SDL12_CONFIG}"
7726   SDL_HEADER="SDL12/SDL.h"
7727   if test "x${SDL_CONFIG}" = "xno"
7728   then
7729     # Extract the first word of "sdl11-config", so it can be a program name with args.
7730 set dummy sdl11-config; ac_word=$2
7731 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7732 echo "configure:7733: checking for $ac_word" >&5
7733 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
7734   echo $ac_n "(cached) $ac_c" 1>&6
7735 else
7736   case "$SDL11_CONFIG" in
7737   /*)
7738   ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
7739   ;;
7740   ?:/*)                  
7741   ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
7742   ;;
7743   *)
7744   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
7745   ac_dummy="${SDL_PATH}"
7746   for ac_dir in $ac_dummy; do 
7747     test -z "$ac_dir" && ac_dir=.
7748     if test -f $ac_dir/$ac_word; then
7749       ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
7750       break
7751     fi
7752   done
7753   IFS="$ac_save_ifs"
7754   test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
7755   ;;
7756 esac
7757 fi
7758 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
7759 if test -n "$SDL11_CONFIG"; then
7760   echo "$ac_t""$SDL11_CONFIG" 1>&6
7761 else
7762   echo "$ac_t""no" 1>&6
7763 fi
7764
7765     SDL_CONFIG=${SDL11_CONFIG}
7766     SDL_HEADER="SDL11/SDL.h"
7767   fi
7768   if test "x${SDL_CONFIG}" = "xno"
7769   then
7770     # Extract the first word of "sdl-config", so it can be a program name with args.
7771 set dummy sdl-config; ac_word=$2
7772 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7773 echo "configure:7774: checking for $ac_word" >&5
7774 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
7775   echo $ac_n "(cached) $ac_c" 1>&6
7776 else
7777   case "$SDL_CONFIG" in
7778   /*)
7779   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
7780   ;;
7781   ?:/*)                  
7782   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
7783   ;;
7784   *)
7785   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
7786   ac_dummy="${SDL_PATH}"
7787   for ac_dir in $ac_dummy; do 
7788     test -z "$ac_dir" && ac_dir=.
7789     if test -f $ac_dir/$ac_word; then
7790       ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
7791       break
7792     fi
7793   done
7794   IFS="$ac_save_ifs"
7795   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
7796   ;;
7797 esac
7798 fi
7799 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
7800 if test -n "$SDL_CONFIG"; then
7801   echo "$ac_t""$SDL_CONFIG" 1>&6
7802 else
7803   echo "$ac_t""no" 1>&6
7804 fi
7805
7806     SDL_HEADER="SDL/SDL.h"
7807   fi
7808   if test "x${SDL_CONFIG}" != "xno"
7809   then
7810     PLUGINS="${PLUGINS} video_output/sdl/sdl"
7811     sdl_CFLAGS="${sdl_CFLAGS} `${SDL_CONFIG} --cflags`"
7812     sdl_LDFLAGS="${sdl_LDFLAGS} `${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
7813     CPPFLAGS="${save_CPPFLAGS} ${sdl_CFLAGS}"
7814     for ac_hdr in ${SDL_HEADER}
7815 do
7816 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7817 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7818 echo "configure:7819: checking for $ac_hdr" >&5
7819 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7820   echo $ac_n "(cached) $ac_c" 1>&6
7821 else
7822   cat > conftest.$ac_ext <<EOF
7823 #line 7824 "configure"
7824 #include "confdefs.h"
7825 #include <$ac_hdr>
7826 EOF
7827 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7828 { (eval echo configure:7829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7829 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7830 if test -z "$ac_err"; then
7831   rm -rf conftest*
7832   eval "ac_cv_header_$ac_safe=yes"
7833 else
7834   echo "$ac_err" >&5
7835   echo "configure: failed program was:" >&5
7836   cat conftest.$ac_ext >&5
7837   rm -rf conftest*
7838   eval "ac_cv_header_$ac_safe=no"
7839 fi
7840 rm -f conftest*
7841 fi
7842 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7843   echo "$ac_t""yes" 1>&6
7844     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7845   cat >> confdefs.h <<EOF
7846 #define $ac_tr_hdr 1
7847 EOF
7848  cat >> confdefs.h <<EOF
7849 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
7850 EOF
7851
7852 else
7853   echo "$ac_t""no" 1>&6
7854 { echo "configure: error: The development package for SDL is not installed. 
7855 Please install it and try again. Alternatively you can also configure with 
7856 --disable-sdl." 1>&2; exit 1; }
7857       
7858 fi
7859 done
7860
7861     CPPFLAGS="${save_CPPFLAGS}"
7862     if expr 1.1.5 \> `${SDL_CONFIG} --version` >/dev/null
7863     then
7864       { echo "configure: error: The development package for SDL is not installed.
7865 Please install it and try again. Alternatively you can also configure with
7866 --disable-sdl." 1>&2; exit 1; }
7867     fi
7868   elif test "x${enable_sdl}" =  "xyes"
7869   then
7870     { echo "configure: error: I couldn't find the SDL package. You can download libSDL
7871 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
7872     " 1>&2; exit 1; }
7873   fi
7874 fi
7875
7876 # Check whether --enable-directx or --disable-directx was given.
7877 if test "${enable_directx+set}" = set; then
7878   enableval="$enable_directx"
7879   :
7880 fi
7881
7882 if test "x${enable_directx}" != "xno"
7883 then
7884   if test "x${SYS}" = "xmingw32"
7885   then
7886     # Check whether --with-directx or --without-directx was given.
7887 if test "${with_directx+set}" = set; then
7888   withval="$with_directx"
7889   :
7890 fi
7891
7892     if test "x${with_directx}" = "x"
7893     then
7894       for ac_hdr in ddraw.h
7895 do
7896 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7897 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7898 echo "configure:7899: checking for $ac_hdr" >&5
7899 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7900   echo $ac_n "(cached) $ac_c" 1>&6
7901 else
7902   cat > conftest.$ac_ext <<EOF
7903 #line 7904 "configure"
7904 #include "confdefs.h"
7905 #include <$ac_hdr>
7906 EOF
7907 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7908 { (eval echo configure:7909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7909 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7910 if test -z "$ac_err"; then
7911   rm -rf conftest*
7912   eval "ac_cv_header_$ac_safe=yes"
7913 else
7914   echo "$ac_err" >&5
7915   echo "configure: failed program was:" >&5
7916   cat conftest.$ac_ext >&5
7917   rm -rf conftest*
7918   eval "ac_cv_header_$ac_safe=no"
7919 fi
7920 rm -f conftest*
7921 fi
7922 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7923   echo "$ac_t""yes" 1>&6
7924     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7925   cat >> confdefs.h <<EOF
7926 #define $ac_tr_hdr 1
7927 EOF
7928   PLUGINS="${PLUGINS} video_output/directx/directx"
7929         directx_LDFLAGS="${directx_LDFLAGS} -lgdi32" 
7930 else
7931   echo "$ac_t""no" 1>&6
7932 fi
7933 done
7934
7935     else
7936       echo $ac_n "checking for directX headers in ${with_directx}""... $ac_c" 1>&6
7937 echo "configure:7938: checking for directX headers in ${with_directx}" >&5
7938       if test -f ${with_directx}/ddraw.h
7939       then
7940         PLUGINS="${PLUGINS} video_output/directx/directx"
7941         directx_LDFLAGS="${directx_LDFLAGS} -lgdi32"
7942         directx_CFLAGS="${directx_CFLAGS} -I${with_directx}"
7943         echo "$ac_t""yes" 1>&6
7944       else
7945         echo "$ac_t""no" 1>&6
7946         { echo "configure: error: Cannot find ${with_directx}/ddraw.h!" 1>&2; exit 1; }
7947       fi
7948     fi
7949   fi
7950 fi
7951
7952 # Check whether --enable-fb or --disable-fb was given.
7953 if test "${enable_fb+set}" = set; then
7954   enableval="$enable_fb"
7955   :
7956 fi
7957
7958     if test "x${enable_fb}" != "xno"
7959     then
7960       for ac_hdr in linux/fb.h
7961 do
7962 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7963 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7964 echo "configure:7965: checking for $ac_hdr" >&5
7965 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7966   echo $ac_n "(cached) $ac_c" 1>&6
7967 else
7968   cat > conftest.$ac_ext <<EOF
7969 #line 7970 "configure"
7970 #include "confdefs.h"
7971 #include <$ac_hdr>
7972 EOF
7973 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7974 { (eval echo configure:7975: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7975 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7976 if test -z "$ac_err"; then
7977   rm -rf conftest*
7978   eval "ac_cv_header_$ac_safe=yes"
7979 else
7980   echo "$ac_err" >&5
7981   echo "configure: failed program was:" >&5
7982   cat conftest.$ac_ext >&5
7983   rm -rf conftest*
7984   eval "ac_cv_header_$ac_safe=no"
7985 fi
7986 rm -f conftest*
7987 fi
7988 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7989   echo "$ac_t""yes" 1>&6
7990     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7991   cat >> confdefs.h <<EOF
7992 #define $ac_tr_hdr 1
7993 EOF
7994  
7995         PLUGINS="${PLUGINS} video_output/fb/fb"
7996       
7997 else
7998   echo "$ac_t""no" 1>&6
7999 fi
8000 done
8001
8002     fi
8003
8004 # Check whether --enable-mga or --disable-mga was given.
8005 if test "${enable_mga+set}" = set; then
8006   enableval="$enable_mga"
8007    if test "x${enable_mga}" = "xyes"
8008     then
8009       PLUGINS="${PLUGINS} video_output/mga/mga video_output/mga/xmga"
8010     fi 
8011 fi
8012
8013
8014 # Check whether --enable-ggi or --disable-ggi was given.
8015 if test "${enable_ggi+set}" = set; then
8016   enableval="$enable_ggi"
8017   :
8018 fi
8019
8020 if test "x${enable_ggi}" = "xyes"
8021 then
8022   PLUGINS="${PLUGINS} video_output/ggi/ggi"
8023   ggi_LDFLAGS="${ggi_LDFLAGS} -lggi"
8024   # Check whether --with-ggi or --without-ggi was given.
8025 if test "${with_ggi+set}" = set; then
8026   withval="$with_ggi"
8027    if test "x${with_ggi}" != "xno" -a "x${with_ggi}" != "x"
8028       then
8029         CFLAGS_GGI="${CFLAGS_GGI} -I${with_ggi}/include"
8030         ggi_LDFLAGS="${ggi_LDFLAGS} -L${with_ggi}/lib"
8031       fi 
8032 fi
8033
8034 fi
8035
8036 # Check whether --enable-glide or --disable-glide was given.
8037 if test "${enable_glide+set}" = set; then
8038   enableval="$enable_glide"
8039   :
8040 fi
8041
8042 if test "x${enable_glide}" = "xyes"
8043 then
8044   PLUGINS="${PLUGINS} video_output/glide/glide"
8045   glide_LDFLAGS="${glide_LDFLAGS} -lglide2x -lm"
8046   glide_CFLAGS="${glide_CFLAGS} -I/usr/include/glide"
8047   # Check whether --with-glide or --without-glide was given.
8048 if test "${with_glide+set}" = set; then
8049   withval="$with_glide"
8050    if test "x${with_glide}" != "xno" -a "x${with_glide}" != "x"
8051       then
8052         glide_CFLAGS="${glide_CFLAGS} -I${with_glide}/include"
8053         glide_LDFLAGS="${glide_LDFLAGS} -L${with_glide}/lib"
8054       fi 
8055 fi
8056
8057 fi
8058
8059 # Check whether --enable-aa or --disable-aa was given.
8060 if test "${enable_aa+set}" = set; then
8061   enableval="$enable_aa"
8062   :
8063 fi
8064
8065 if test "x${enable_aa}" = "xyes"
8066 then
8067   ac_safe=`echo "aalib.h" | sed 'y%./+-%__p_%'`
8068 echo $ac_n "checking for aalib.h""... $ac_c" 1>&6
8069 echo "configure:8070: checking for aalib.h" >&5
8070 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8071   echo $ac_n "(cached) $ac_c" 1>&6
8072 else
8073   cat > conftest.$ac_ext <<EOF
8074 #line 8075 "configure"
8075 #include "confdefs.h"
8076 #include <aalib.h>
8077 EOF
8078 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8079 { (eval echo configure:8080: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8080 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8081 if test -z "$ac_err"; then
8082   rm -rf conftest*
8083   eval "ac_cv_header_$ac_safe=yes"
8084 else
8085   echo "$ac_err" >&5
8086   echo "configure: failed program was:" >&5
8087   cat conftest.$ac_ext >&5
8088   rm -rf conftest*
8089   eval "ac_cv_header_$ac_safe=no"
8090 fi
8091 rm -f conftest*
8092 fi
8093 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8094   echo "$ac_t""yes" 1>&6
8095   have_aa="true"
8096 else
8097   echo "$ac_t""no" 1>&6
8098 have_aa="false"
8099 fi
8100
8101   if test "x${have_aa}" = "xtrue"
8102   then
8103     PLUGINS="${PLUGINS} video_output/aa/aa"
8104     aa_LDFLAGS="${aa_LDFLAGS} -laa"
8105   fi
8106 fi
8107
8108
8109 # Check whether --with- or --without- was given.
8110 if test "${with_+set}" = set; then
8111   withval="$with_"
8112   :
8113 fi
8114
8115
8116 # Check whether --enable-oss or --disable-oss was given.
8117 if test "${enable_oss+set}" = set; then
8118   enableval="$enable_oss"
8119   :
8120 fi
8121
8122
8123 if test "x${enable_oss}" != "xno" &&
8124   (test "x${SYS}" != "xmingw32" || test "x${enable_oss}" = "xyes")
8125 then
8126   for ac_hdr in soundcard.h sys/soundcard.h machine/soundcard.h
8127 do
8128 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8129 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8130 echo "configure:8131: checking for $ac_hdr" >&5
8131 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8132   echo $ac_n "(cached) $ac_c" 1>&6
8133 else
8134   cat > conftest.$ac_ext <<EOF
8135 #line 8136 "configure"
8136 #include "confdefs.h"
8137 #include <$ac_hdr>
8138 EOF
8139 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8140 { (eval echo configure:8141: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8141 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8142 if test -z "$ac_err"; then
8143   rm -rf conftest*
8144   eval "ac_cv_header_$ac_safe=yes"
8145 else
8146   echo "$ac_err" >&5
8147   echo "configure: failed program was:" >&5
8148   cat conftest.$ac_ext >&5
8149   rm -rf conftest*
8150   eval "ac_cv_header_$ac_safe=no"
8151 fi
8152 rm -f conftest*
8153 fi
8154 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8155   echo "$ac_t""yes" 1>&6
8156     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8157   cat >> confdefs.h <<EOF
8158 #define $ac_tr_hdr 1
8159 EOF
8160  
8161     PLUGINS="${PLUGINS} audio_output/oss"
8162     echo $ac_n "checking for main in -lossaudio""... $ac_c" 1>&6
8163 echo "configure:8164: checking for main in -lossaudio" >&5
8164 ac_lib_var=`echo ossaudio'_'main | sed 'y%./+-%__p_%'`
8165 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8166   echo $ac_n "(cached) $ac_c" 1>&6
8167 else
8168   ac_save_LIBS="$LIBS"
8169 LIBS="-lossaudio  $LIBS"
8170 cat > conftest.$ac_ext <<EOF
8171 #line 8172 "configure"
8172 #include "confdefs.h"
8173
8174 int main() {
8175 main()
8176 ; return 0; }
8177 EOF
8178 if { (eval echo configure:8179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8179   rm -rf conftest*
8180   eval "ac_cv_lib_$ac_lib_var=yes"
8181 else
8182   echo "configure: failed program was:" >&5
8183   cat conftest.$ac_ext >&5
8184   rm -rf conftest*
8185   eval "ac_cv_lib_$ac_lib_var=no"
8186 fi
8187 rm -f conftest*
8188 LIBS="$ac_save_LIBS"
8189
8190 fi
8191 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8192   echo "$ac_t""yes" 1>&6
8193   oss_LDFLAGS="${oss_LDFLAGS} -lossaudio"
8194 else
8195   echo "$ac_t""no" 1>&6
8196 fi
8197
8198   
8199 else
8200   echo "$ac_t""no" 1>&6
8201 fi
8202 done
8203
8204 fi
8205
8206 # Check whether --enable-esd or --disable-esd was given.
8207 if test "${enable_esd+set}" = set; then
8208   enableval="$enable_esd"
8209   if test "x${enable_esd}" = "xyes"
8210    then
8211      # Extract the first word of "esd-config", so it can be a program name with args.
8212 set dummy esd-config; ac_word=$2
8213 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8214 echo "configure:8215: checking for $ac_word" >&5
8215 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
8216   echo $ac_n "(cached) $ac_c" 1>&6
8217 else
8218   case "$ESD_CONFIG" in
8219   /*)
8220   ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
8221   ;;
8222   ?:/*)                  
8223   ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
8224   ;;
8225   *)
8226   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
8227   ac_dummy="$PATH"
8228   for ac_dir in $ac_dummy; do 
8229     test -z "$ac_dir" && ac_dir=.
8230     if test -f $ac_dir/$ac_word; then
8231       ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
8232       break
8233     fi
8234   done
8235   IFS="$ac_save_ifs"
8236   test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
8237   ;;
8238 esac
8239 fi
8240 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
8241 if test -n "$ESD_CONFIG"; then
8242   echo "$ac_t""$ESD_CONFIG" 1>&6
8243 else
8244   echo "$ac_t""no" 1>&6
8245 fi
8246
8247      if test "x${ESD_CONFIG}" != "xno"
8248      then
8249        #PLUGINS="${PLUGINS} audio_output/esd"
8250        esd_CFLAGS="${esd_CFLAGS} `${ESD_CONFIG} --cflags`"
8251        esd_LDFLAGS="${esd_LDFLAGS} `${ESD_CONFIG} --libs`"
8252      fi
8253    fi
8254 fi
8255
8256
8257 # Check whether --enable-arts or --disable-arts was given.
8258 if test "${enable_arts+set}" = set; then
8259   enableval="$enable_arts"
8260   if test "x${enable_arts}" = "xyes"
8261    then
8262      # Extract the first word of "artsc-config", so it can be a program name with args.
8263 set dummy artsc-config; ac_word=$2
8264 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8265 echo "configure:8266: checking for $ac_word" >&5
8266 if eval "test \"`echo '$''{'ac_cv_path_ARTS_CONFIG'+set}'`\" = set"; then
8267   echo $ac_n "(cached) $ac_c" 1>&6
8268 else
8269   case "$ARTS_CONFIG" in
8270   /*)
8271   ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
8272   ;;
8273   ?:/*)                  
8274   ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a dos path.
8275   ;;
8276   *)
8277   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
8278   ac_dummy="$PATH"
8279   for ac_dir in $ac_dummy; do 
8280     test -z "$ac_dir" && ac_dir=.
8281     if test -f $ac_dir/$ac_word; then
8282       ac_cv_path_ARTS_CONFIG="$ac_dir/$ac_word"
8283       break
8284     fi
8285   done
8286   IFS="$ac_save_ifs"
8287   test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
8288   ;;
8289 esac
8290 fi
8291 ARTS_CONFIG="$ac_cv_path_ARTS_CONFIG"
8292 if test -n "$ARTS_CONFIG"; then
8293   echo "$ac_t""$ARTS_CONFIG" 1>&6
8294 else
8295   echo "$ac_t""no" 1>&6
8296 fi
8297
8298      if test "x${ARTS_CONFIG}" != "xno"
8299      then
8300        #PLUGINS="${PLUGINS} audio_output/arts"
8301        arts_CFLAGS="${arts_CFLAGS} `${ARTS_CONFIG} --cflags`"
8302        arts_LDFLAGS="${arts_LDFLAGS} `${ARTS_CONFIG} --libs `"
8303      fi
8304    fi
8305 fi
8306
8307
8308 # Check whether --enable-alsa or --disable-alsa was given.
8309 if test "${enable_alsa+set}" = set; then
8310   enableval="$enable_alsa"
8311   if test "x${enable_alsa}" = "xyes"
8312    then
8313      ac_safe=`echo "alsa/asoundlib.h" | sed 'y%./+-%__p_%'`
8314 echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6
8315 echo "configure:8316: checking for alsa/asoundlib.h" >&5
8316 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8317   echo $ac_n "(cached) $ac_c" 1>&6
8318 else
8319   cat > conftest.$ac_ext <<EOF
8320 #line 8321 "configure"
8321 #include "confdefs.h"
8322 #include <alsa/asoundlib.h>
8323 EOF
8324 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8325 { (eval echo configure:8326: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8326 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8327 if test -z "$ac_err"; then
8328   rm -rf conftest*
8329   eval "ac_cv_header_$ac_safe=yes"
8330 else
8331   echo "$ac_err" >&5
8332   echo "configure: failed program was:" >&5
8333   cat conftest.$ac_ext >&5
8334   rm -rf conftest*
8335   eval "ac_cv_header_$ac_safe=no"
8336 fi
8337 rm -f conftest*
8338 fi
8339 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8340   echo "$ac_t""yes" 1>&6
8341   echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
8342 echo "configure:8343: checking for main in -lasound" >&5
8343 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
8344 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8345   echo $ac_n "(cached) $ac_c" 1>&6
8346 else
8347   ac_save_LIBS="$LIBS"
8348 LIBS="-lasound  $LIBS"
8349 cat > conftest.$ac_ext <<EOF
8350 #line 8351 "configure"
8351 #include "confdefs.h"
8352
8353 int main() {
8354 main()
8355 ; return 0; }
8356 EOF
8357 if { (eval echo configure:8358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8358   rm -rf conftest*
8359   eval "ac_cv_lib_$ac_lib_var=yes"
8360 else
8361   echo "configure: failed program was:" >&5
8362   cat conftest.$ac_ext >&5
8363   rm -rf conftest*
8364   eval "ac_cv_lib_$ac_lib_var=no"
8365 fi
8366 rm -f conftest*
8367 LIBS="$ac_save_LIBS"
8368
8369 fi
8370 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8371   echo "$ac_t""yes" 1>&6
8372   have_alsa="true"
8373 else
8374   echo "$ac_t""no" 1>&6
8375 have_alsa="false"
8376 fi
8377
8378 else
8379   echo "$ac_t""no" 1>&6
8380 have_alsa="false"
8381 fi
8382
8383      if test "x${have_alsa}" = "xtrue"
8384      then
8385        #PLUGINS="${PLUGINS} audio_output/alsa"
8386        alsa_LDFLAGS="${alsa_LDFLAGS} -lasound -lm -ldl"
8387      fi
8388    fi
8389 fi
8390
8391
8392 # Check whether --enable-waveout or --disable-waveout was given.
8393 if test "${enable_waveout+set}" = set; then
8394   enableval="$enable_waveout"
8395   :
8396 fi
8397
8398 if test "x${enable_waveout}" != "xno" -a "x${SYS}" = "xmingw32"
8399   then
8400     #PLUGINS="${PLUGINS} audio_output/waveout"
8401     waveout_LDFLAGS="-lwinmm"
8402 fi
8403
8404
8405 # Check whether --with- or --without- was given.
8406 if test "${with_+set}" = set; then
8407   withval="$with_"
8408   :
8409 fi
8410
8411
8412 if test "x${SYS}" = "xbeos"
8413 then
8414     PLUGINS="${PLUGINS} gui/beos/beos"
8415 fi
8416
8417 # Check whether --enable-gtk or --disable-gtk was given.
8418 if test "${enable_gtk+set}" = set; then
8419   enableval="$enable_gtk"
8420   :
8421 fi
8422
8423 if test "x${enable_gtk}" != "xno"
8424 then
8425   GTK_PATH="${PATH}"
8426   # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
8427 if test "${with_gtk_config_path+set}" = set; then
8428   withval="$with_gtk_config_path"
8429    if test "x${with_gtk_config_path}" != "xno"
8430       then
8431         GTK_PATH="${with_gtk_config_path}:${PATH}"
8432       fi 
8433 fi
8434
8435   # look for gtk-config
8436   # Extract the first word of "gtk12-config", so it can be a program name with args.
8437 set dummy gtk12-config; ac_word=$2
8438 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8439 echo "configure:8440: checking for $ac_word" >&5
8440 if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
8441   echo $ac_n "(cached) $ac_c" 1>&6
8442 else
8443   case "$GTK12_CONFIG" in
8444   /*)
8445   ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
8446   ;;
8447   ?:/*)                  
8448   ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path.
8449   ;;
8450   *)
8451   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
8452   ac_dummy="${GTK_PATH}"
8453   for ac_dir in $ac_dummy; do 
8454     test -z "$ac_dir" && ac_dir=.
8455     if test -f $ac_dir/$ac_word; then
8456       ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
8457       break
8458     fi
8459   done
8460   IFS="$ac_save_ifs"
8461   test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
8462   ;;
8463 esac
8464 fi
8465 GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG"
8466 if test -n "$GTK12_CONFIG"; then
8467   echo "$ac_t""$GTK12_CONFIG" 1>&6
8468 else
8469   echo "$ac_t""no" 1>&6
8470 fi
8471
8472   GTK_CONFIG=${GTK12_CONFIG}
8473   if test "x${GTK_CONFIG}" = "xno"
8474   then
8475     # Extract the first word of "gtk-config", so it can be a program name with args.
8476 set dummy gtk-config; ac_word=$2
8477 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8478 echo "configure:8479: checking for $ac_word" >&5
8479 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
8480   echo $ac_n "(cached) $ac_c" 1>&6
8481 else
8482   case "$GTK_CONFIG" in
8483   /*)
8484   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8485   ;;
8486   ?:/*)                  
8487   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
8488   ;;
8489   *)
8490   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
8491   ac_dummy="${GTK_PATH}"
8492   for ac_dir in $ac_dummy; do 
8493     test -z "$ac_dir" && ac_dir=.
8494     if test -f $ac_dir/$ac_word; then
8495       ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
8496       break
8497     fi
8498   done
8499   IFS="$ac_save_ifs"
8500   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8501   ;;
8502 esac
8503 fi
8504 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
8505 if test -n "$GTK_CONFIG"; then
8506   echo "$ac_t""$GTK_CONFIG" 1>&6
8507 else
8508   echo "$ac_t""no" 1>&6
8509 fi
8510
8511   fi
8512   if test "x${GTK_CONFIG}" != "xno"
8513   then
8514     if expr 1.2.0 \> `${GTK_CONFIG} --version` >/dev/null
8515     then
8516       { echo "configure: error: Your development package for Gtk+ is too old, you need at least version 1.2.0. Please upgrade and try again. Alternatively you can also configure with --disable-gtk." 1>&2; exit 1; }
8517     fi
8518     gtk_CFLAGS="${gtk_CFLAGS} `${GTK_CONFIG} --cflags gtk`"
8519     gtk_LDFLAGS="${gtk_LDFLAGS} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
8520     # now look for the gtk.h header
8521     CPPFLAGS="${save_CPPFLAGS} ${gtk_CFLAGS}"
8522     ac_cv_gtk_headers=yes
8523     for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
8524 do
8525 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8526 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8527 echo "configure:8528: checking for $ac_hdr" >&5
8528 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8529   echo $ac_n "(cached) $ac_c" 1>&6
8530 else
8531   cat > conftest.$ac_ext <<EOF
8532 #line 8533 "configure"
8533 #include "confdefs.h"
8534 #include <$ac_hdr>
8535 EOF
8536 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8537 { (eval echo configure:8538: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8538 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8539 if test -z "$ac_err"; then
8540   rm -rf conftest*
8541   eval "ac_cv_header_$ac_safe=yes"
8542 else
8543   echo "$ac_err" >&5
8544   echo "configure: failed program was:" >&5
8545   cat conftest.$ac_ext >&5
8546   rm -rf conftest*
8547   eval "ac_cv_header_$ac_safe=no"
8548 fi
8549 rm -f conftest*
8550 fi
8551 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8552   echo "$ac_t""yes" 1>&6
8553     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8554   cat >> confdefs.h <<EOF
8555 #define $ac_tr_hdr 1
8556 EOF
8557  
8558 else
8559   echo "$ac_t""no" 1>&6
8560 ac_cv_gtk_headers=no
8561       echo "Cannot find gtk development headers."
8562     
8563 fi
8564 done
8565
8566     if test "x${ac_cv_gtk_headers}" = "xyes"
8567     then
8568       PLUGINS="${PLUGINS} gui/gtk/gtk"
8569       ALIASES="${ALIASES} gvlc"
8570     fi
8571     CPPFLAGS="${save_CPPFLAGS}"
8572   fi
8573 fi
8574
8575 # Check whether --enable-familiar or --disable-familiar was given.
8576 if test "${enable_familiar+set}" = set; then
8577   enableval="$enable_familiar"
8578   :
8579 fi
8580
8581 if test "x${enable_familiar}" = "xyes"
8582 then
8583   GTK_PATH="${PATH}"
8584   # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
8585 if test "${with_gtk_config_path+set}" = set; then
8586   withval="$with_gtk_config_path"
8587    if test "x${with_gtk_config_path}" != "xno"
8588       then
8589         GTK_PATH="${with_gtk_config_path}:${PATH}"
8590       fi 
8591 fi
8592
8593   # look for gtk-config
8594   # Extract the first word of "gtk12-config", so it can be a program name with args.
8595 set dummy gtk12-config; ac_word=$2
8596 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8597 echo "configure:8598: checking for $ac_word" >&5
8598 if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
8599   echo $ac_n "(cached) $ac_c" 1>&6
8600 else
8601   case "$GTK12_CONFIG" in
8602   /*)
8603   ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
8604   ;;
8605   ?:/*)                  
8606   ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path.
8607   ;;
8608   *)
8609   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
8610   ac_dummy="${GTK_PATH}"
8611   for ac_dir in $ac_dummy; do 
8612     test -z "$ac_dir" && ac_dir=.
8613     if test -f $ac_dir/$ac_word; then
8614       ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
8615       break
8616     fi
8617   done
8618   IFS="$ac_save_ifs"
8619   test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
8620   ;;
8621 esac
8622 fi
8623 GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG"
8624 if test -n "$GTK12_CONFIG"; then
8625   echo "$ac_t""$GTK12_CONFIG" 1>&6
8626 else
8627   echo "$ac_t""no" 1>&6
8628 fi
8629
8630   GTK_CONFIG=${GTK12_CONFIG}
8631   if test "x${GTK_CONFIG}" = "xno"
8632   then
8633     # Extract the first word of "gtk-config", so it can be a program name with args.
8634 set dummy gtk-config; ac_word=$2
8635 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8636 echo "configure:8637: checking for $ac_word" >&5
8637 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
8638   echo $ac_n "(cached) $ac_c" 1>&6
8639 else
8640   case "$GTK_CONFIG" in
8641   /*)
8642   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8643   ;;
8644   ?:/*)                  
8645   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
8646   ;;
8647   *)
8648   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
8649   ac_dummy="${GTK_PATH}"
8650   for ac_dir in $ac_dummy; do 
8651     test -z "$ac_dir" && ac_dir=.
8652     if test -f $ac_dir/$ac_word; then
8653       ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
8654       break
8655     fi
8656   done
8657   IFS="$ac_save_ifs"
8658   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8659   ;;
8660 esac
8661 fi
8662 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
8663 if test -n "$GTK_CONFIG"; then
8664   echo "$ac_t""$GTK_CONFIG" 1>&6
8665 else
8666   echo "$ac_t""no" 1>&6
8667 fi
8668
8669   fi
8670   if test "x${GTK_CONFIG}" != "xno"
8671   then
8672     if expr 1.2.0 \> `${GTK_CONFIG} --version` >/dev/null
8673     then
8674       { echo "configure: error: Your development package for Gtk+ is too old, you need at least version 1.2.0. Please upgrade and try again. Alternatively you can also configure with --disable-familiar." 1>&2; exit 1; }
8675     fi
8676     familiar_CFLAGS="${familiar_CFLAGS} `${GTK_CONFIG} --cflags gtk`"
8677     familiar_LDFLAGS="${familiar_LDFLAGS} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
8678     # now look for the gtk.h header
8679     CPPFLAGS="${save_CPPFLAGS} ${familiar_CFLAGS}"
8680     ac_cv_gtk_headers=yes
8681     for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
8682 do
8683 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8684 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8685 echo "configure:8686: checking for $ac_hdr" >&5
8686 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8687   echo $ac_n "(cached) $ac_c" 1>&6
8688 else
8689   cat > conftest.$ac_ext <<EOF
8690 #line 8691 "configure"
8691 #include "confdefs.h"
8692 #include <$ac_hdr>
8693 EOF
8694 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8695 { (eval echo configure:8696: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8696 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8697 if test -z "$ac_err"; then
8698   rm -rf conftest*
8699   eval "ac_cv_header_$ac_safe=yes"
8700 else
8701   echo "$ac_err" >&5
8702   echo "configure: failed program was:" >&5
8703   cat conftest.$ac_ext >&5
8704   rm -rf conftest*
8705   eval "ac_cv_header_$ac_safe=no"
8706 fi
8707 rm -f conftest*
8708 fi
8709 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8710   echo "$ac_t""yes" 1>&6
8711     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8712   cat >> confdefs.h <<EOF
8713 #define $ac_tr_hdr 1
8714 EOF
8715  
8716 else
8717   echo "$ac_t""no" 1>&6
8718 ac_cv_gtk_headers=no
8719       echo "Cannot find gtk development headers."
8720     
8721 fi
8722 done
8723
8724     if test "x${ac_cv_gtk_headers}" = "xyes"
8725     then
8726       PLUGINS="${PLUGINS} gui/familiar/familiar"
8727     fi
8728     CPPFLAGS="${save_CPPFLAGS}"
8729   fi
8730 fi
8731
8732 # Check whether --enable-gnome or --disable-gnome was given.
8733 if test "${enable_gnome+set}" = set; then
8734   enableval="$enable_gnome"
8735   if test "x${enable_gnome}" = "xyes"; then
8736     # look for gnome-config
8737     # Extract the first word of "gnome-config", so it can be a program name with args.
8738 set dummy gnome-config; ac_word=$2
8739 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8740 echo "configure:8741: checking for $ac_word" >&5
8741 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
8742   echo $ac_n "(cached) $ac_c" 1>&6
8743 else
8744   case "$GNOME_CONFIG" in
8745   /*)
8746   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
8747   ;;
8748   ?:/*)                  
8749   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
8750   ;;
8751   *)
8752   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
8753   ac_dummy="$PATH"
8754   for ac_dir in $ac_dummy; do 
8755     test -z "$ac_dir" && ac_dir=.
8756     if test -f $ac_dir/$ac_word; then
8757       ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
8758       break
8759     fi
8760   done
8761   IFS="$ac_save_ifs"
8762   test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
8763   ;;
8764 esac
8765 fi
8766 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
8767 if test -n "$GNOME_CONFIG"; then
8768   echo "$ac_t""$GNOME_CONFIG" 1>&6
8769 else
8770   echo "$ac_t""no" 1>&6
8771 fi
8772
8773     if test -x ${GNOME_CONFIG}
8774     then
8775        gnome_CFLAGS="${gnome_CFLAGS} `${GNOME_CONFIG} --cflags gtk gnomeui`"
8776        gnome_LDFLAGS="${gnome_LDFLAGS} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
8777     fi
8778     # now look for the gnome.h header
8779     CPPFLAGS="${save_CPPFLAGS} ${gnome_CFLAGS}"
8780     for ac_hdr in gnome.h
8781 do
8782 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8783 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8784 echo "configure:8785: checking for $ac_hdr" >&5
8785 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8786   echo $ac_n "(cached) $ac_c" 1>&6
8787 else
8788   cat > conftest.$ac_ext <<EOF
8789 #line 8790 "configure"
8790 #include "confdefs.h"
8791 #include <$ac_hdr>
8792 EOF
8793 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8794 { (eval echo configure:8795: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8795 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8796 if test -z "$ac_err"; then
8797   rm -rf conftest*
8798   eval "ac_cv_header_$ac_safe=yes"
8799 else
8800   echo "$ac_err" >&5
8801   echo "configure: failed program was:" >&5
8802   cat conftest.$ac_ext >&5
8803   rm -rf conftest*
8804   eval "ac_cv_header_$ac_safe=no"
8805 fi
8806 rm -f conftest*
8807 fi
8808 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8809   echo "$ac_t""yes" 1>&6
8810     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8811   cat >> confdefs.h <<EOF
8812 #define $ac_tr_hdr 1
8813 EOF
8814  
8815       PLUGINS="${PLUGINS} gui/gtk/gnome"
8816       ALIASES="${ALIASES} gnome-vlc"
8817      
8818 else
8819   echo "$ac_t""no" 1>&6
8820 { echo "configure: error: Can't find gnome headers. Please install the gnome
8821 developement tools or remove the --enable-gnome option" 1>&2; exit 1; }
8822      
8823 fi
8824 done
8825
8826     CPPFLAGS="${save_CPPFLAGS}"
8827   fi
8828 fi
8829
8830
8831 # Check whether --enable-qt or --disable-qt was given.
8832 if test "${enable_qt+set}" = set; then
8833   enableval="$enable_qt"
8834   if test "x${enable_qt}" = "xyes"; then
8835      PLUGINS="${PLUGINS} gui/qt/qt"
8836      ALIASES="${ALIASES} qvlc"
8837      qt_LDFLAGS="${qt_LDFLAGS} -lqt -L${QTDIR}/lib"
8838      qt_CFLAGS="${qt_CFLAGS} -I/usr/include/qt -I${QTDIR}/include"
8839      if test -x ${QTDIR}/bin/moc
8840      then
8841        MOC=${QTDIR}/bin/moc
8842      else
8843        MOC=moc
8844      fi
8845    fi
8846 fi
8847
8848
8849 # Check whether --enable-kde or --disable-kde was given.
8850 if test "${enable_kde+set}" = set; then
8851   enableval="$enable_kde"
8852   if test "x${enable_kde}" = "xyes"; then
8853      PLUGINS="${PLUGINS} gui/kde/kde"
8854      ALIASES="${ALIASES} kvlc"
8855      kde_LDFLAGS="${kde_LDFLAGS} -L${KDEDIR}/lib -lkfile"
8856      kde_CFLAGS="${kde_CFLAGS} -I/usr/include/kde -I/usr/include/qt"
8857      kde_CFLAGS="${kde_CFLAGS} -I${KDEDIR}/include -I${QTDIR}/include"
8858      if test -x ${QTDIR}/bin/moc
8859      then
8860        MOC=${QTDIR}/bin/moc
8861      else
8862        MOC=moc
8863      fi
8864    fi
8865 fi
8866
8867
8868 # Check whether --enable-macosx or --disable-macosx was given.
8869 if test "${enable_macosx+set}" = set; then
8870   enableval="$enable_macosx"
8871   if test "x${enable_macosx}" = "xyes"
8872    then
8873      BUILTINS="${BUILTINS} gui/macosx/macosx"
8874      macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework Carbon -framework AGL -framework QuickTime -lobjc -ObjC"
8875    fi
8876 else
8877   for ac_hdr in Cocoa/Cocoa.h
8878 do
8879 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8880 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8881 echo "configure:8882: checking for $ac_hdr" >&5
8882 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8883   echo $ac_n "(cached) $ac_c" 1>&6
8884 else
8885   cat > conftest.$ac_ext <<EOF
8886 #line 8887 "configure"
8887 #include "confdefs.h"
8888 #include <$ac_hdr>
8889 EOF
8890 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8891 { (eval echo configure:8892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8892 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8893 if test -z "$ac_err"; then
8894   rm -rf conftest*
8895   eval "ac_cv_header_$ac_safe=yes"
8896 else
8897   echo "$ac_err" >&5
8898   echo "configure: failed program was:" >&5
8899   cat conftest.$ac_ext >&5
8900   rm -rf conftest*
8901   eval "ac_cv_header_$ac_safe=no"
8902 fi
8903 rm -f conftest*
8904 fi
8905 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8906   echo "$ac_t""yes" 1>&6
8907     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8908   cat >> confdefs.h <<EOF
8909 #define $ac_tr_hdr 1
8910 EOF
8911  BUILTINS="${BUILTINS} gui/macosx/macosx"
8912      macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework Carbon -framework AGL -framework QuickTime -lobjc -ObjC"
8913    
8914 else
8915   echo "$ac_t""no" 1>&6
8916 fi
8917 done
8918
8919 fi
8920
8921
8922 # Check whether --enable-qnx or --disable-qnx was given.
8923 if test "${enable_qnx+set}" = set; then
8924   enableval="$enable_qnx"
8925   :
8926 fi
8927
8928     if test "x${enable_qnx}" != "xno"
8929     then
8930       for ac_hdr in Ph.h
8931 do
8932 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8933 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8934 echo "configure:8935: checking for $ac_hdr" >&5
8935 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8936   echo $ac_n "(cached) $ac_c" 1>&6
8937 else
8938   cat > conftest.$ac_ext <<EOF
8939 #line 8940 "configure"
8940 #include "confdefs.h"
8941 #include <$ac_hdr>
8942 EOF
8943 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8944 { (eval echo configure:8945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8945 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8946 if test -z "$ac_err"; then
8947   rm -rf conftest*
8948   eval "ac_cv_header_$ac_safe=yes"
8949 else
8950   echo "$ac_err" >&5
8951   echo "configure: failed program was:" >&5
8952   cat conftest.$ac_ext >&5
8953   rm -rf conftest*
8954   eval "ac_cv_header_$ac_safe=no"
8955 fi
8956 rm -f conftest*
8957 fi
8958 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8959   echo "$ac_t""yes" 1>&6
8960     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8961   cat >> confdefs.h <<EOF
8962 #define $ac_tr_hdr 1
8963 EOF
8964  
8965         PLUGINS="${PLUGINS} gui/qnx/qnx"
8966         qnx_LDFLAGS="${qnx_LDFLAGS} -lasound -lph"
8967       
8968 else
8969   echo "$ac_t""no" 1>&6
8970 fi
8971 done
8972
8973     fi
8974
8975 # Check whether --enable-intfwin or --disable-intfwin was given.
8976 if test "${enable_intfwin+set}" = set; then
8977   enableval="$enable_intfwin"
8978    if test "x${enable_intfwin}" != "xno"
8979   then
8980     # Check whether --with-bcbuilder or --without-bcbuilder was given.
8981 if test "${with_bcbuilder+set}" = set; then
8982   withval="$with_bcbuilder"
8983   :
8984 fi
8985
8986     if test "x${with_bcbuilder}" != "x"
8987     then
8988       BCBUILDER="${with_bcbuilder}"
8989     fi
8990     PLUGINS="${PLUGINS} gui/win32/win32"
8991   fi 
8992 fi
8993
8994
8995 # Check whether --enable-ncurses or --disable-ncurses was given.
8996 if test "${enable_ncurses+set}" = set; then
8997   enableval="$enable_ncurses"
8998   if test "x${enable_ncurses}" = "xyes"; then
8999      PLUGINS="${PLUGINS} gui/ncurses/ncurses"
9000      ncurses_LDFLAGS="${ncurses_LDFLAGS} -lncurses"
9001    fi
9002 fi
9003
9004
9005 # Check whether --enable-xosd or --disable-xosd was given.
9006 if test "${enable_xosd+set}" = set; then
9007   enableval="$enable_xosd"
9008   :
9009 fi
9010
9011 if test "x${enable_xosd}" = "xyes"
9012 then
9013   ac_safe=`echo "xosd.h" | sed 'y%./+-%__p_%'`
9014 echo $ac_n "checking for xosd.h""... $ac_c" 1>&6
9015 echo "configure:9016: checking for xosd.h" >&5
9016 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9017   echo $ac_n "(cached) $ac_c" 1>&6
9018 else
9019   cat > conftest.$ac_ext <<EOF
9020 #line 9021 "configure"
9021 #include "confdefs.h"
9022 #include <xosd.h>
9023 EOF
9024 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9025 { (eval echo configure:9026: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9026 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9027 if test -z "$ac_err"; then
9028   rm -rf conftest*
9029   eval "ac_cv_header_$ac_safe=yes"
9030 else
9031   echo "$ac_err" >&5
9032   echo "configure: failed program was:" >&5
9033   cat conftest.$ac_ext >&5
9034   rm -rf conftest*
9035   eval "ac_cv_header_$ac_safe=no"
9036 fi
9037 rm -f conftest*
9038 fi
9039 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9040   echo "$ac_t""yes" 1>&6
9041   have_xosd="true"
9042 else
9043   echo "$ac_t""no" 1>&6
9044 have_xosd="false"
9045 fi
9046
9047   if test "x${have_xosd}" = "xtrue"
9048   then
9049     PLUGINS="${PLUGINS} visualization/xosd/xosd"
9050     xosd_LDFLAGS="${xosd_LDFLAGS} -lxosd"
9051   fi
9052 fi
9053
9054 # Check whether --enable-lirc or --disable-lirc was given.
9055 if test "${enable_lirc+set}" = set; then
9056   enableval="$enable_lirc"
9057   :
9058 fi
9059
9060 if test "x${enable_lirc}" = "xyes"
9061 then
9062   ac_safe=`echo "lirc/lirc_client.h" | sed 'y%./+-%__p_%'`
9063 echo $ac_n "checking for lirc/lirc_client.h""... $ac_c" 1>&6
9064 echo "configure:9065: checking for lirc/lirc_client.h" >&5
9065 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9066   echo $ac_n "(cached) $ac_c" 1>&6
9067 else
9068   cat > conftest.$ac_ext <<EOF
9069 #line 9070 "configure"
9070 #include "confdefs.h"
9071 #include <lirc/lirc_client.h>
9072 EOF
9073 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9074 { (eval echo configure:9075: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9075 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9076 if test -z "$ac_err"; then
9077   rm -rf conftest*
9078   eval "ac_cv_header_$ac_safe=yes"
9079 else
9080   echo "$ac_err" >&5
9081   echo "configure: failed program was:" >&5
9082   cat conftest.$ac_ext >&5
9083   rm -rf conftest*
9084   eval "ac_cv_header_$ac_safe=no"
9085 fi
9086 rm -f conftest*
9087 fi
9088 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9089   echo "$ac_t""yes" 1>&6
9090   echo $ac_n "checking for lirc_init in -llirc_client""... $ac_c" 1>&6
9091 echo "configure:9092: checking for lirc_init in -llirc_client" >&5
9092 ac_lib_var=`echo lirc_client'_'lirc_init | sed 'y%./+-%__p_%'`
9093 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9094   echo $ac_n "(cached) $ac_c" 1>&6
9095 else
9096   ac_save_LIBS="$LIBS"
9097 LIBS="-llirc_client  $LIBS"
9098 cat > conftest.$ac_ext <<EOF
9099 #line 9100 "configure"
9100 #include "confdefs.h"
9101 /* Override any gcc2 internal prototype to avoid an error.  */
9102 /* We use char because int might match the return type of a gcc2
9103     builtin and then its argument prototype would still apply.  */
9104 char lirc_init();
9105
9106 int main() {
9107 lirc_init()
9108 ; return 0; }
9109 EOF
9110 if { (eval echo configure:9111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9111   rm -rf conftest*
9112   eval "ac_cv_lib_$ac_lib_var=yes"
9113 else
9114   echo "configure: failed program was:" >&5
9115   cat conftest.$ac_ext >&5
9116   rm -rf conftest*
9117   eval "ac_cv_lib_$ac_lib_var=no"
9118 fi
9119 rm -f conftest*
9120 LIBS="$ac_save_LIBS"
9121
9122 fi
9123 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9124   echo "$ac_t""yes" 1>&6
9125   have_lirc="true"
9126 else
9127   echo "$ac_t""no" 1>&6
9128 have_lirc="false"
9129 fi
9130
9131 else
9132   echo "$ac_t""no" 1>&6
9133 have_lirc="false"
9134 fi
9135
9136   if test "x${have_lirc}" = "xtrue"
9137   then
9138     PLUGINS="${PLUGINS} control/lirc/lirc"
9139     lirc_LDFLAGS="${lirc_LDFLAGS} -llirc_client"
9140   fi
9141 fi
9142
9143 # Check whether --with- or --without- was given.
9144 if test "${with_+set}" = set; then
9145   withval="$with_"
9146   :
9147 fi
9148
9149
9150 # Check whether --with-words or --without-words was given.
9151 if test "${with_words+set}" = set; then
9152   withval="$with_words"
9153   :
9154 fi
9155
9156   case "x${with_words}" in
9157     xbig)
9158       ac_cv_c_bigendian=yes
9159       ;;
9160     xlittle)
9161       ac_cv_c_bigendian=no
9162       ;;
9163     *)
9164                   echo $ac_n "checking whether the byte order is big-endian""... $ac_c" 1>&6
9165 echo "configure:9166: checking whether the byte order is big-endian" >&5
9166 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
9167   echo $ac_n "(cached) $ac_c" 1>&6
9168 else
9169   ac_cv_c_bigendian="unknown"
9170         cat >conftest.c <<EOF
9171         short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
9172         short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
9173         void _a(void) { char*s = (char*)am; s = (char *)ai; }
9174         short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
9175         short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
9176         void _e(void) { char*s = (char*)em; s = (char*)ei; }
9177         int main(void) { _a(); _e(); return 0; }
9178 EOF
9179         
9180         if test -f conftest.c
9181         then 
9182           if ${CC-cc} -c conftest.c -o conftest.o >config.log 2>&1 \
9183               && test -f conftest.o
9184           then
9185             if test "`strings conftest.o | grep BIGenDianSyS`"
9186             then
9187               ac_cv_c_bigendian="yes"
9188             fi
9189             if test "`strings conftest.o | grep LiTTleEnDian`"
9190             then
9191               ac_cv_c_bigendian="no"
9192             fi
9193           fi
9194         fi
9195       
9196 fi
9197
9198 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
9199       if test "x${ac_cv_c_bigendian}" = "xunknown"
9200       then
9201         { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
9202       fi
9203       ;;
9204   esac
9205 if test "${ac_cv_c_bigendian}" = "yes"
9206 then
9207   cat >> confdefs.h <<\EOF
9208 #define WORDS_BIGENDIAN 1
9209 EOF
9210
9211 fi
9212
9213 PROFILING=0
9214
9215 GPROF=0
9216 # Check whether --enable-gprof or --disable-gprof was given.
9217 if test "${enable_gprof+set}" = set; then
9218   enableval="$enable_gprof"
9219    if test "x${enable_gprof}" = "xyes"
9220   then
9221     GPROF=1
9222     PROFILING="gprof"
9223   fi
9224
9225 fi
9226
9227
9228 CPROF=0
9229 # Check whether --enable-cprof or --disable-cprof was given.
9230 if test "${enable_cprof+set}" = set; then
9231   enableval="$enable_cprof"
9232    if test "x${enable_cprof}" = "xyes"
9233   then
9234     save_LDFLAGS="${save_LDFLAGS} -lcprof"; LDFLAGS="${save_LDFLAGS}"
9235     CPROF=1
9236     PROFILING="cprof"
9237   fi
9238
9239 fi
9240
9241
9242 # Check whether --enable-pth or --disable-pth was given.
9243 if test "${enable_pth+set}" = set; then
9244   enableval="$enable_pth"
9245    if test "x${enable_pth}" = "xyes"; then
9246     echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
9247 echo "configure:9248: checking for pth_init in -lpth" >&5
9248 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
9249 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9250   echo $ac_n "(cached) $ac_c" 1>&6
9251 else
9252   ac_save_LIBS="$LIBS"
9253 LIBS="-lpth  $LIBS"
9254 cat > conftest.$ac_ext <<EOF
9255 #line 9256 "configure"
9256 #include "confdefs.h"
9257 /* Override any gcc2 internal prototype to avoid an error.  */
9258 /* We use char because int might match the return type of a gcc2
9259     builtin and then its argument prototype would still apply.  */
9260 char pth_init();
9261
9262 int main() {
9263 pth_init()
9264 ; return 0; }
9265 EOF
9266 if { (eval echo configure:9267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9267   rm -rf conftest*
9268   eval "ac_cv_lib_$ac_lib_var=yes"
9269 else
9270   echo "configure: failed program was:" >&5
9271   cat conftest.$ac_ext >&5
9272   rm -rf conftest*
9273   eval "ac_cv_lib_$ac_lib_var=no"
9274 fi
9275 rm -f conftest*
9276 LIBS="$ac_save_LIBS"
9277
9278 fi
9279 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9280   echo "$ac_t""yes" 1>&6
9281     ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9282     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9283   cat >> confdefs.h <<EOF
9284 #define $ac_tr_lib 1
9285 EOF
9286
9287   LIBS="-lpth $LIBS"
9288
9289 else
9290   echo "$ac_t""no" 1>&6
9291 fi
9292
9293     cat > conftest.$ac_ext <<EOF
9294 #line 9295 "configure"
9295 #include "confdefs.h"
9296 #include <pth.h>
9297 EOF
9298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9299   egrep "pth_init" >/dev/null 2>&1; then
9300   rm -rf conftest*
9301   
9302       cat >> confdefs.h <<\EOF
9303 #define PTH_INIT_IN_PTH_H 1
9304 EOF
9305
9306     THREAD_LIB="-lpth"
9307     fi
9308 fi
9309 rm -f conftest*
9310
9311
9312 fi
9313
9314
9315 # Check whether --enable-st or --disable-st was given.
9316 if test "${enable_st+set}" = set; then
9317   enableval="$enable_st"
9318    if test "x${enable_st}" = "xyes"; then
9319     echo $ac_n "checking for st_init in -lst""... $ac_c" 1>&6
9320 echo "configure:9321: checking for st_init in -lst" >&5
9321 ac_lib_var=`echo st'_'st_init | sed 'y%./+-%__p_%'`
9322 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9323   echo $ac_n "(cached) $ac_c" 1>&6
9324 else
9325   ac_save_LIBS="$LIBS"
9326 LIBS="-lst  $LIBS"
9327 cat > conftest.$ac_ext <<EOF
9328 #line 9329 "configure"
9329 #include "confdefs.h"
9330 /* Override any gcc2 internal prototype to avoid an error.  */
9331 /* We use char because int might match the return type of a gcc2
9332     builtin and then its argument prototype would still apply.  */
9333 char st_init();
9334
9335 int main() {
9336 st_init()
9337 ; return 0; }
9338 EOF
9339 if { (eval echo configure:9340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9340   rm -rf conftest*
9341   eval "ac_cv_lib_$ac_lib_var=yes"
9342 else
9343   echo "configure: failed program was:" >&5
9344   cat conftest.$ac_ext >&5
9345   rm -rf conftest*
9346   eval "ac_cv_lib_$ac_lib_var=no"
9347 fi
9348 rm -f conftest*
9349 LIBS="$ac_save_LIBS"
9350
9351 fi
9352 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9353   echo "$ac_t""yes" 1>&6
9354     ac_tr_lib=HAVE_LIB`echo st | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9355     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9356   cat >> confdefs.h <<EOF
9357 #define $ac_tr_lib 1
9358 EOF
9359
9360   LIBS="-lst $LIBS"
9361
9362 else
9363   echo "$ac_t""no" 1>&6
9364 fi
9365
9366     cat > conftest.$ac_ext <<EOF
9367 #line 9368 "configure"
9368 #include "confdefs.h"
9369 #include <st.h>
9370 EOF
9371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9372   egrep "st_init" >/dev/null 2>&1; then
9373   rm -rf conftest*
9374   
9375       cat >> confdefs.h <<\EOF
9376 #define ST_INIT_IN_ST_H 1
9377 EOF
9378
9379     THREAD_LIB="-lst"
9380     fi
9381 fi
9382 rm -f conftest*
9383
9384
9385 fi
9386
9387
9388 vlc_LDFLAGS="${vlc_LDFLAGS} ${THREAD_LIB}"
9389 plugins_LDFLAGS="${plugins_LDFLAGS} ${THREAD_LIB}"
9390
9391 MOZILLA=0
9392 # Check whether --enable-mozilla or --disable-mozilla was given.
9393 if test "${enable_mozilla+set}" = set; then
9394   enableval="$enable_mozilla"
9395   :
9396 fi
9397
9398 if test "x${enable_mozilla}" = "xyes"
9399 then
9400   # Extract the first word of "mozilla-config", so it can be a program name with args.
9401 set dummy mozilla-config; ac_word=$2
9402 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9403 echo "configure:9404: checking for $ac_word" >&5
9404 if eval "test \"`echo '$''{'ac_cv_path_MOZILLA_CONFIG'+set}'`\" = set"; then
9405   echo $ac_n "(cached) $ac_c" 1>&6
9406 else
9407   case "$MOZILLA_CONFIG" in
9408   /*)
9409   ac_cv_path_MOZILLA_CONFIG="$MOZILLA_CONFIG" # Let the user override the test with a path.
9410   ;;
9411   ?:/*)                  
9412   ac_cv_path_MOZILLA_CONFIG="$MOZILLA_CONFIG" # Let the user override the test with a dos path.
9413   ;;
9414   *)
9415   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
9416   ac_dummy="$PATH"
9417   for ac_dir in $ac_dummy; do 
9418     test -z "$ac_dir" && ac_dir=.
9419     if test -f $ac_dir/$ac_word; then
9420       ac_cv_path_MOZILLA_CONFIG="$ac_dir/$ac_word"
9421       break
9422     fi
9423   done
9424   IFS="$ac_save_ifs"
9425   test -z "$ac_cv_path_MOZILLA_CONFIG" && ac_cv_path_MOZILLA_CONFIG="no"
9426   ;;
9427 esac
9428 fi
9429 MOZILLA_CONFIG="$ac_cv_path_MOZILLA_CONFIG"
9430 if test -n "$MOZILLA_CONFIG"; then
9431   echo "$ac_t""$MOZILLA_CONFIG" 1>&6
9432 else
9433   echo "$ac_t""no" 1>&6
9434 fi
9435
9436   if test "x${MOZILLA_CONFIG}" != "xno"
9437   then
9438     if test "x${SYS}" != "xmingw32"; then
9439       LDFLAGS="${save_LDFLAGS} -L${x_libraries}"
9440       echo $ac_n "checking for XtStrings in -lXt""... $ac_c" 1>&6
9441 echo "configure:9442: checking for XtStrings in -lXt" >&5
9442 ac_lib_var=`echo Xt'_'XtStrings | sed 'y%./+-%__p_%'`
9443 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9444   echo $ac_n "(cached) $ac_c" 1>&6
9445 else
9446   ac_save_LIBS="$LIBS"
9447 LIBS="-lXt  $LIBS"
9448 cat > conftest.$ac_ext <<EOF
9449 #line 9450 "configure"
9450 #include "confdefs.h"
9451 /* Override any gcc2 internal prototype to avoid an error.  */
9452 /* We use char because int might match the return type of a gcc2
9453     builtin and then its argument prototype would still apply.  */
9454 char XtStrings();
9455
9456 int main() {
9457 XtStrings()
9458 ; return 0; }
9459 EOF
9460 if { (eval echo configure:9461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9461   rm -rf conftest*
9462   eval "ac_cv_lib_$ac_lib_var=yes"
9463 else
9464   echo "configure: failed program was:" >&5
9465   cat conftest.$ac_ext >&5
9466   rm -rf conftest*
9467   eval "ac_cv_lib_$ac_lib_var=no"
9468 fi
9469 rm -f conftest*
9470 LIBS="$ac_save_LIBS"
9471
9472 fi
9473 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9474   echo "$ac_t""yes" 1>&6
9475   
9476         mozilla_LDFLAGS="${mozilla_LDFLAGS} -L${x_libraries} -lXt"
9477       
9478 else
9479   echo "$ac_t""no" 1>&6
9480 fi
9481
9482       LDFLAGS="${save_LDFLAGS}"
9483     fi
9484     MOZILLA=1
9485     mozilla_CFLAGS="${mozilla_CFLAGS} `${MOZILLA_CONFIG} --cflags plugin java --defines | xargs`"
9486         mozilla_LDFLAGS="${mozilla_LDFLAGS} `${MOZILLA_CONFIG} --libs | sed 's#-I\(.*\)/mozilla/\([^ ]*\)#-I\1/\2 -I\1/mozilla/\2#g'`"
9487   fi
9488 fi
9489
9490 # Check whether --enable-plugins or --disable-plugins was given.
9491 if test "${enable_plugins+set}" = set; then
9492   enableval="$enable_plugins"
9493   if test "x${enable_plugins}" = "xno"
9494    then
9495      BUILTINS="${BUILTINS} ${PLUGINS}"
9496      PLUGINS=
9497    fi
9498 fi
9499
9500
9501 if test "x${ac_cv_header_dlfcn_h}" = "xno" -a "x${ac_cv_header_image_h}" = "xno" -a "x${SYS}" != "xmingw32"
9502 then
9503   echo "*** Your system doesn't have plug-in support. All plug-ins will be compiled"
9504   echo "as built-in"
9505   BUILTINS="${BUILTINS} ${PLUGINS}"
9506   PLUGINS=
9507 fi
9508
9509 cat >> confdefs.h <<EOF
9510 #define VERSION_MESSAGE "vlc ${VERSION} ${CODENAME} Copyright 1996-2002 VideoLAN"
9511 EOF
9512
9513 cat >> confdefs.h <<EOF
9514 #define COPYRIGHT_MESSAGE "VideoLAN Client - version ${VERSION} ${CODENAME} - (c) 1996-2002 VideoLAN"
9515 EOF
9516
9517 cat >> confdefs.h <<EOF
9518 #define CONFIGURE_LINE "${CONFIGURE_LINE}"
9519 EOF
9520
9521
9522 VLC_SYMBOL="`echo ${VERSION} | tr .- __`"
9523 cat >> confdefs.h <<EOF
9524 #define MODULE_SUFFIX "__${VLC_SYMBOL}"
9525 EOF
9526
9527 cat >> confdefs.h <<EOF
9528 #define MODULE_SYMBOL ${VLC_SYMBOL}
9529 EOF
9530
9531
9532 DATA_PATH="${ac_tool_prefix}/share/videolan"
9533
9534 PLUGIN_PATH="${ac_tool_prefix}/share/videolan"
9535
9536
9537 CPPFLAGS="${save_CPPFLAGS}"
9538 CFLAGS="${save_CFLAGS}"
9539 LDFLAGS="${save_LDFLAGS}"
9540
9541 libvlc_LDFLAGS="${vlc_LDFLAGS} ${builtins_LDFLAGS}"
9542 for i in `echo ${BUILTINS} | sed -e 's#[^ ]*/##g'` ; do libvlc_LDFLAGS="${libvlc_LDFLAGS} ${libdir}/vlc/${i}.a `eval echo '$'{${i}_LDFLAGS}`" ; done
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651 trap '' 1 2 15
9652 cat > confcache <<\EOF
9653 # This file is a shell script that caches the results of configure
9654 # tests run on this system so they can be shared between configure
9655 # scripts and configure runs.  It is not useful on other systems.
9656 # If it contains results you don't want to keep, you may remove or edit it.
9657 #
9658 # By default, configure uses ./config.cache as the cache file,
9659 # creating it if it does not exist already.  You can give configure
9660 # the --cache-file=FILE option to use a different cache file; that is
9661 # what configure does when it calls configure scripts in
9662 # subdirectories, so they share the cache.
9663 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9664 # config.status only pays attention to the cache file if you give it the
9665 # --recheck option to rerun configure.
9666 #
9667 EOF
9668 # The following way of writing the cache mishandles newlines in values,
9669 # but we know of no workaround that is simple, portable, and efficient.
9670 # So, don't put newlines in cache variables' values.
9671 # Ultrix sh set writes to stderr and can't be redirected directly,
9672 # and sets the high bit in the cache file unless we assign to the vars.
9673 (set) 2>&1 |
9674   case `(ac_space=' '; set | grep ac_space) 2>&1` in
9675   *ac_space=\ *)
9676     # `set' does not quote correctly, so add quotes (double-quote substitution
9677     # turns \\\\ into \\, and sed turns \\ into \).
9678     sed -n \
9679       -e "s/'/'\\\\''/g" \
9680       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9681     ;;
9682   *)
9683     # `set' quotes correctly as required by POSIX, so do not add quotes.
9684     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9685     ;;
9686   esac >> confcache
9687 if cmp -s $cache_file confcache; then
9688   :
9689 else
9690   if test -w $cache_file; then
9691     echo "updating cache $cache_file"
9692     cat confcache > $cache_file
9693   else
9694     echo "not updating unwritable cache $cache_file"
9695   fi
9696 fi
9697 rm -f confcache
9698
9699 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9700
9701 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9702 # Let make expand exec_prefix.
9703 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9704
9705 # Any assignment to VPATH causes Sun make to only execute
9706 # the first set of double-colon rules, so remove it if not needed.
9707 # If there is a colon in the path, we need to keep it.
9708 if test "x$srcdir" = x.; then
9709   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
9710 fi
9711
9712 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9713
9714 DEFS=-DHAVE_CONFIG_H
9715
9716 # Without the "./", some shells look in PATH for config.status.
9717 : ${CONFIG_STATUS=./config.status}
9718
9719 echo creating $CONFIG_STATUS
9720 rm -f $CONFIG_STATUS
9721 cat > $CONFIG_STATUS <<EOF
9722 #! /bin/sh
9723 # Generated automatically by configure.
9724 # Run this file to recreate the current configuration.
9725 # This directory was configured as follows,
9726 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9727 #
9728 # $0 $ac_configure_args
9729 #
9730 # Compiler output produced by configure, useful for debugging
9731 # configure, is in ./config.log if it exists.
9732
9733 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9734 for ac_option
9735 do
9736   case "\$ac_option" in
9737   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9738     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9739     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9740   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9741     echo "$CONFIG_STATUS generated by autoconf version 2.13"
9742     exit 0 ;;
9743   -help | --help | --hel | --he | --h)
9744     echo "\$ac_cs_usage"; exit 0 ;;
9745   *) echo "\$ac_cs_usage"; exit 1 ;;
9746   esac
9747 done
9748
9749 ac_given_srcdir=$srcdir
9750 ac_given_INSTALL="$INSTALL"
9751
9752 trap 'rm -fr `echo "Makefile.config Makefile.opts po/Makefile.in vlc-config include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9753 EOF
9754 cat >> $CONFIG_STATUS <<EOF
9755
9756 # Protect against being on the right side of a sed subst in config.status.
9757 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9758  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9759 $ac_vpsub
9760 $extrasub
9761 s%@SHELL@%$SHELL%g
9762 s%@CFLAGS@%$CFLAGS%g
9763 s%@CPPFLAGS@%$CPPFLAGS%g
9764 s%@CXXFLAGS@%$CXXFLAGS%g
9765 s%@FFLAGS@%$FFLAGS%g
9766 s%@DEFS@%$DEFS%g
9767 s%@LDFLAGS@%$LDFLAGS%g
9768 s%@LIBS@%$LIBS%g
9769 s%@exec_prefix@%$exec_prefix%g
9770 s%@prefix@%$prefix%g
9771 s%@program_transform_name@%$program_transform_name%g
9772 s%@bindir@%$bindir%g
9773 s%@sbindir@%$sbindir%g
9774 s%@libexecdir@%$libexecdir%g
9775 s%@datadir@%$datadir%g
9776 s%@sysconfdir@%$sysconfdir%g
9777 s%@sharedstatedir@%$sharedstatedir%g
9778 s%@localstatedir@%$localstatedir%g
9779 s%@libdir@%$libdir%g
9780 s%@includedir@%$includedir%g
9781 s%@oldincludedir@%$oldincludedir%g
9782 s%@infodir@%$infodir%g
9783 s%@mandir@%$mandir%g
9784 s%@host@%$host%g
9785 s%@host_alias@%$host_alias%g
9786 s%@host_cpu@%$host_cpu%g
9787 s%@host_vendor@%$host_vendor%g
9788 s%@host_os@%$host_os%g
9789 s%@target@%$target%g
9790 s%@target_alias@%$target_alias%g
9791 s%@target_cpu@%$target_cpu%g
9792 s%@target_vendor@%$target_vendor%g
9793 s%@target_os@%$target_os%g
9794 s%@build@%$build%g
9795 s%@build_alias@%$build_alias%g
9796 s%@build_cpu@%$build_cpu%g
9797 s%@build_vendor@%$build_vendor%g
9798 s%@build_os@%$build_os%g
9799 s%@SET_MAKE@%$SET_MAKE%g
9800 s%@CC@%$CC%g
9801 s%@CPP@%$CPP%g
9802 s%@RANLIB@%$RANLIB%g
9803 s%@STRIP@%$STRIP%g
9804 s%@GMAKE@%$GMAKE%g
9805 s%@ALLOCA@%$ALLOCA%g
9806 s%@GLIBC21@%$GLIBC21%g
9807 s%@LIBICONV@%$LIBICONV%g
9808 s%@USE_NLS@%$USE_NLS%g
9809 s%@MSGFMT@%$MSGFMT%g
9810 s%@GMSGFMT@%$GMSGFMT%g
9811 s%@XGETTEXT@%$XGETTEXT%g
9812 s%@INTLBISON@%$INTLBISON%g
9813 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
9814 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
9815 s%@CATALOGS@%$CATALOGS%g
9816 s%@CATOBJEXT@%$CATOBJEXT%g
9817 s%@GMOFILES@%$GMOFILES%g
9818 s%@INTLLIBS@%$INTLLIBS%g
9819 s%@INTLOBJS@%$INTLOBJS%g
9820 s%@POFILES@%$POFILES%g
9821 s%@POSUB@%$POSUB%g
9822 s%@DATADIRNAME@%$DATADIRNAME%g
9823 s%@INSTOBJEXT@%$INSTOBJEXT%g
9824 s%@GENCAT@%$GENCAT%g
9825 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
9826 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
9827 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9828 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
9829 s%@INSTALL_DATA@%$INSTALL_DATA%g
9830 s%@WINDRES@%$WINDRES%g
9831 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
9832 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
9833 s%@SDL_CONFIG@%$SDL_CONFIG%g
9834 s%@ESD_CONFIG@%$ESD_CONFIG%g
9835 s%@ARTS_CONFIG@%$ARTS_CONFIG%g
9836 s%@GTK12_CONFIG@%$GTK12_CONFIG%g
9837 s%@GTK_CONFIG@%$GTK_CONFIG%g
9838 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
9839 s%@MOZILLA_CONFIG@%$MOZILLA_CONFIG%g
9840 s%@DATA_PATH@%$DATA_PATH%g
9841 s%@PLUGIN_PATH@%$PLUGIN_PATH%g
9842 s%@libvlc_LDFLAGS@%$libvlc_LDFLAGS%g
9843 s%@SYS@%$SYS%g
9844 s%@ARCH@%$ARCH%g
9845 s%@PLUGINS@%$PLUGINS%g
9846 s%@BUILTINS@%$BUILTINS%g
9847 s%@ALIASES@%$ALIASES%g
9848 s%@DEBUG@%$DEBUG%g
9849 s%@ASM@%$ASM%g
9850 s%@CPROF@%$CPROF%g
9851 s%@GPROF@%$GPROF%g
9852 s%@OPTIMS@%$OPTIMS%g
9853 s%@TUNING@%$TUNING%g
9854 s%@RELEASE@%$RELEASE%g
9855 s%@MOC@%$MOC%g
9856 s%@BCBUILDER@%$BCBUILDER%g
9857 s%@PACKAGE@%$PACKAGE%g
9858 s%@VERSION@%$VERSION%g
9859 s%@NEED_GETOPT@%$NEED_GETOPT%g
9860 s%@MOZILLA@%$MOZILLA%g
9861 s%@CFLAGS_OPTIM@%$CFLAGS_OPTIM%g
9862 s%@CFLAGS_OPTIM_NODEBUG@%$CFLAGS_OPTIM_NODEBUG%g
9863 s%@vlc_CFLAGS@%$vlc_CFLAGS%g
9864 s%@plugins_CFLAGS@%$plugins_CFLAGS%g
9865 s%@builtins_CFLAGS@%$builtins_CFLAGS%g
9866 s%@mozilla_CFLAGS@%$mozilla_CFLAGS%g
9867 s%@a52_CFLAGS@%$a52_CFLAGS%g
9868 s%@arts_CFLAGS@%$arts_CFLAGS%g
9869 s%@i420_yuy2_mmx_CFLAGS@%$i420_yuy2_mmx_CFLAGS%g
9870 s%@dvd_CFLAGS@%$dvd_CFLAGS%g
9871 s%@dvdread_CFLAGS@%$dvdread_CFLAGS%g
9872 s%@dvdplay_CFLAGS@%$dvdplay_CFLAGS%g
9873 s%@ts_dvbpsi_CFLAGS@%$ts_dvbpsi_CFLAGS%g
9874 s%@directx_CFLAGS@%$directx_CFLAGS%g
9875 s%@esd_CFLAGS@%$esd_CFLAGS%g
9876 s%@familiar_CFLAGS@%$familiar_CFLAGS%g
9877 s%@ffmpeg_CFLAGS@%$ffmpeg_CFLAGS%g
9878 s%@glide_CFLAGS@%$glide_CFLAGS%g
9879 s%@gnome_CFLAGS@%$gnome_CFLAGS%g
9880 s%@gtk_CFLAGS@%$gtk_CFLAGS%g
9881 s%@kde_CFLAGS@%$kde_CFLAGS%g
9882 s%@idctaltivec_CFLAGS@%$idctaltivec_CFLAGS%g
9883 s%@macosx_CFLAGS@%$macosx_CFLAGS%g
9884 s%@mad_CFLAGS@%$mad_CFLAGS%g
9885 s%@memcpyaltivec_CFLAGS@%$memcpyaltivec_CFLAGS%g
9886 s%@motionaltivec_CFLAGS@%$motionaltivec_CFLAGS%g
9887 s%@qt_CFLAGS@%$qt_CFLAGS%g
9888 s%@sdl_CFLAGS@%$sdl_CFLAGS%g
9889 s%@x11_CFLAGS@%$x11_CFLAGS%g
9890 s%@xvideo_CFLAGS@%$xvideo_CFLAGS%g
9891 s%@vlc_LDFLAGS@%$vlc_LDFLAGS%g
9892 s%@plugins_LDFLAGS@%$plugins_LDFLAGS%g
9893 s%@builtins_LDFLAGS@%$builtins_LDFLAGS%g
9894 s%@mozilla_LDFLAGS@%$mozilla_LDFLAGS%g
9895 s%@a52_LDFLAGS@%$a52_LDFLAGS%g
9896 s%@aa_LDFLAGS@%$aa_LDFLAGS%g
9897 s%@alsa_LDFLAGS@%$alsa_LDFLAGS%g
9898 s%@arts_LDFLAGS@%$arts_LDFLAGS%g
9899 s%@beos_LDFLAGS@%$beos_LDFLAGS%g
9900 s%@i420_rgb_LDFLAGS@%$i420_rgb_LDFLAGS%g
9901 s%@directx_LDFLAGS@%$directx_LDFLAGS%g
9902 s%@dv_LDFLAGS@%$dv_LDFLAGS%g
9903 s%@dvd_LDFLAGS@%$dvd_LDFLAGS%g
9904 s%@dvdread_LDFLAGS@%$dvdread_LDFLAGS%g
9905 s%@dvdplay_LDFLAGS@%$dvdplay_LDFLAGS%g
9906 s%@ts_dvbpsi_LDFLAGS@%$ts_dvbpsi_LDFLAGS%g
9907 s%@esd_LDFLAGS@%$esd_LDFLAGS%g
9908 s%@familiar_LDFLAGS@%$familiar_LDFLAGS%g
9909 s%@distort_LDFLAGS@%$distort_LDFLAGS%g
9910 s%@ffmpeg_LDFLAGS@%$ffmpeg_LDFLAGS%g
9911 s%@mp4_LDFLAGS@%$mp4_LDFLAGS%g
9912 s%@ggi_LDFLAGS@%$ggi_LDFLAGS%g
9913 s%@glide_LDFLAGS@%$glide_LDFLAGS%g
9914 s%@gnome_LDFLAGS@%$gnome_LDFLAGS%g
9915 s%@gtk_LDFLAGS@%$gtk_LDFLAGS%g
9916 s%@http_LDFLAGS@%$http_LDFLAGS%g
9917 s%@idctaltivec_LDFLAGS@%$idctaltivec_LDFLAGS%g
9918 s%@imdct_LDFLAGS@%$imdct_LDFLAGS%g
9919 s%@imdct3dn_LDFLAGS@%$imdct3dn_LDFLAGS%g
9920 s%@imdctsse_LDFLAGS@%$imdctsse_LDFLAGS%g
9921 s%@ipv4_LDFLAGS@%$ipv4_LDFLAGS%g
9922 s%@ipv6_LDFLAGS@%$ipv6_LDFLAGS%g
9923 s%@kde_LDFLAGS@%$kde_LDFLAGS%g
9924 s%@lirc_LDFLAGS@%$lirc_LDFLAGS%g
9925 s%@macosx_LDFLAGS@%$macosx_LDFLAGS%g
9926 s%@mad_LDFLAGS@%$mad_LDFLAGS%g
9927 s%@memcpyaltivec_LDFLAGS@%$memcpyaltivec_LDFLAGS%g
9928 s%@motionaltivec_LDFLAGS@%$motionaltivec_LDFLAGS%g
9929 s%@ncurses_LDFLAGS@%$ncurses_LDFLAGS%g
9930 s%@oss_LDFLAGS@%$oss_LDFLAGS%g
9931 s%@qnx_LDFLAGS@%$qnx_LDFLAGS%g
9932 s%@qt_LDFLAGS@%$qt_LDFLAGS%g
9933 s%@rc_LDFLAGS@%$rc_LDFLAGS%g
9934 s%@sdl_LDFLAGS@%$sdl_LDFLAGS%g
9935 s%@vcd_LDFLAGS@%$vcd_LDFLAGS%g
9936 s%@vorbis_LDFLAGS@%$vorbis_LDFLAGS%g
9937 s%@waveout_LDFLAGS@%$waveout_LDFLAGS%g
9938 s%@x11_LDFLAGS@%$x11_LDFLAGS%g
9939 s%@xvideo_LDFLAGS@%$xvideo_LDFLAGS%g
9940 s%@xosd_LDFLAGS@%$xosd_LDFLAGS%g
9941
9942 CEOF
9943 EOF
9944
9945 cat >> $CONFIG_STATUS <<\EOF
9946
9947 # Split the substitutions into bite-sized pieces for seds with
9948 # small command number limits, like on Digital OSF/1 and HP-UX.
9949 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
9950 ac_file=1 # Number of current file.
9951 ac_beg=1 # First line for current file.
9952 ac_end=$ac_max_sed_cmds # Line after last line for current file.
9953 ac_more_lines=:
9954 ac_sed_cmds=""
9955 while $ac_more_lines; do
9956   if test $ac_beg -gt 1; then
9957     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
9958   else
9959     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
9960   fi
9961   if test ! -s conftest.s$ac_file; then
9962     ac_more_lines=false
9963     rm -f conftest.s$ac_file
9964   else
9965     if test -z "$ac_sed_cmds"; then
9966       ac_sed_cmds="sed -f conftest.s$ac_file"
9967     else
9968       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9969     fi
9970     ac_file=`expr $ac_file + 1`
9971     ac_beg=$ac_end
9972     ac_end=`expr $ac_end + $ac_max_sed_cmds`
9973   fi
9974 done
9975 if test -z "$ac_sed_cmds"; then
9976   ac_sed_cmds=cat
9977 fi
9978 EOF
9979
9980 cat >> $CONFIG_STATUS <<EOF
9981
9982 CONFIG_FILES=\${CONFIG_FILES-"Makefile.config Makefile.opts po/Makefile.in vlc-config"}
9983 EOF
9984 cat >> $CONFIG_STATUS <<\EOF
9985 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
9986   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9987   case "$ac_file" in
9988   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9989        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9990   *) ac_file_in="${ac_file}.in" ;;
9991   esac
9992
9993   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9994
9995   # Remove last slash and all that follows it.  Not all systems have dirname.
9996   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9997   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9998     # The file is in a subdirectory.
9999     test ! -d "$ac_dir" && mkdir "$ac_dir"
10000     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10001     # A "../" for each directory in $ac_dir_suffix.
10002     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10003   else
10004     ac_dir_suffix= ac_dots=
10005   fi
10006
10007   case "$ac_given_srcdir" in
10008   .)  srcdir=.
10009       if test -z "$ac_dots"; then top_srcdir=.
10010       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
10011   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10012   *) # Relative path.
10013     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
10014     top_srcdir="$ac_dots$ac_given_srcdir" ;;
10015   esac
10016
10017   case "$ac_given_INSTALL" in
10018   [/$]*) INSTALL="$ac_given_INSTALL" ;;
10019   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10020   esac
10021
10022   echo creating "$ac_file"
10023   rm -f "$ac_file"
10024   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
10025   case "$ac_file" in
10026   *Makefile*) ac_comsub="1i\\
10027 # $configure_input" ;;
10028   *) ac_comsub= ;;
10029   esac
10030
10031   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10032   sed -e "$ac_comsub
10033 s%@configure_input@%$configure_input%g
10034 s%@srcdir@%$srcdir%g
10035 s%@top_srcdir@%$top_srcdir%g
10036 s%@INSTALL@%$INSTALL%g
10037 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
10038 fi; done
10039 rm -f conftest.s*
10040
10041 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10042 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10043 #
10044 # ac_d sets the value in "#define NAME VALUE" lines.
10045 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
10046 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
10047 ac_dC='\3'
10048 ac_dD='%g'
10049 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
10050 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
10051 ac_uB='\([      ]\)%\1#\2define\3'
10052 ac_uC=' '
10053 ac_uD='\4%g'
10054 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10055 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
10056 ac_eB='$%\1#\2define\3'
10057 ac_eC=' '
10058 ac_eD='%g'
10059
10060 if test "${CONFIG_HEADERS+set}" != set; then
10061 EOF
10062 cat >> $CONFIG_STATUS <<EOF
10063   CONFIG_HEADERS="include/defs.h"
10064 EOF
10065 cat >> $CONFIG_STATUS <<\EOF
10066 fi
10067 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10068   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10069   case "$ac_file" in
10070   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
10071        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10072   *) ac_file_in="${ac_file}.in" ;;
10073   esac
10074
10075   echo creating $ac_file
10076
10077   rm -f conftest.frag conftest.in conftest.out
10078   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10079   cat $ac_file_inputs > conftest.in
10080
10081 EOF
10082
10083 # Transform confdefs.h into a sed script conftest.vals that substitutes
10084 # the proper values into config.h.in to produce config.h.  And first:
10085 # Protect against being on the right side of a sed subst in config.status.
10086 # Protect against being in an unquoted here document in config.status.
10087 rm -f conftest.vals
10088 cat > conftest.hdr <<\EOF
10089 s/[\\&%]/\\&/g
10090 s%[\\$`]%\\&%g
10091 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
10092 s%ac_d%ac_u%gp
10093 s%ac_u%ac_e%gp
10094 EOF
10095 sed -n -f conftest.hdr confdefs.h > conftest.vals
10096 rm -f conftest.hdr
10097
10098 # This sed command replaces #undef with comments.  This is necessary, for
10099 # example, in the case of _POSIX_SOURCE, which is predefined and required
10100 # on some systems where configure will not decide to define it.
10101 cat >> conftest.vals <<\EOF
10102 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10103 EOF
10104
10105 # Break up conftest.vals because some shells have a limit on
10106 # the size of here documents, and old seds have small limits too.
10107
10108 rm -f conftest.tail
10109 while :
10110 do
10111   ac_lines=`grep -c . conftest.vals`
10112   # grep -c gives empty output for an empty file on some AIX systems.
10113   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
10114   # Write a limited-size here document to conftest.frag.
10115   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
10116   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10117   echo 'CEOF
10118   sed -f conftest.frag conftest.in > conftest.out
10119   rm -f conftest.in
10120   mv conftest.out conftest.in
10121 ' >> $CONFIG_STATUS
10122   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
10123   rm -f conftest.vals
10124   mv conftest.tail conftest.vals
10125 done
10126 rm -f conftest.vals
10127
10128 cat >> $CONFIG_STATUS <<\EOF
10129   rm -f conftest.frag conftest.h
10130   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
10131   cat conftest.in >> conftest.h
10132   rm -f conftest.in
10133   if cmp -s $ac_file conftest.h 2>/dev/null; then
10134     echo "$ac_file is unchanged"
10135     rm -f conftest.h
10136   else
10137     # Remove last slash and all that follows it.  Not all systems have dirname.
10138       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10139       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10140       # The file is in a subdirectory.
10141       test ! -d "$ac_dir" && mkdir "$ac_dir"
10142     fi
10143     rm -f $ac_file
10144     mv conftest.h $ac_file
10145   fi
10146 fi; done
10147
10148 EOF
10149 cat >> $CONFIG_STATUS <<EOF
10150
10151
10152 EOF
10153 cat >> $CONFIG_STATUS <<\EOF
10154 for ac_file in $CONFIG_FILES; do
10155         # Support "outfile[:infile[:infile...]]"
10156         case "$ac_file" in
10157           *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10158         esac
10159         # PO directories have a Makefile.in generated from Makefile.in.in.
10160         case "$ac_file" in */Makefile.in)
10161           # Adjust a relative srcdir.
10162           ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
10163           ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
10164           ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10165           # In autoconf-2.13 it is called $ac_given_srcdir.
10166           # In autoconf-2.50 it is called $srcdir.
10167           test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
10168           case "$ac_given_srcdir" in
10169             .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
10170             /*) top_srcdir="$ac_given_srcdir" ;;
10171             *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
10172           esac
10173           if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10174             rm -f "$ac_dir/POTFILES"
10175             test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10176             sed -e "/^#/d" -e "/^[      ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
10177             test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10178             sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
10179           fi
10180           ;;
10181         esac
10182       done
10183
10184 exit 0
10185 EOF
10186 chmod +x $CONFIG_STATUS
10187 rm -fr confdefs* $ac_clean_files
10188 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10189
10190 chmod a+x vlc-config
10191
10192 echo "
10193 vlc configuration
10194 --------------------
10195 vlc version           : ${VERSION}
10196 system                : ${SYS}
10197 architecture          : ${ARCH}
10198 optimizations         : ${OPTIMS}
10199 tuning                : ${TUNING}
10200 debug mode            : ${DEBUG}
10201 release               : ${RELEASE}
10202 profiling             : ${PROFILING}
10203 need builtin getopt   : ${NEED_GETOPT}
10204 built-in modules      :${BUILTINS}
10205 plug-in modules       :${PLUGINS}
10206 mozilla plugin        : ${MOZILLA}
10207 vlc aliases           :${ALIASES}
10208
10209 You may now tune Makefile.opts at your convenience, for instance to choose
10210 which modules get compiled as plugins.
10211
10212 To build vlc and its plugins, type \`${VLC_MAKE}'.
10213 "
10214