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