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