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