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