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