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