]> git.sesse.net Git - vlc/blob - configure
(ported from v0_4_1_branch)
[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.5.0-cvs"
779 CODENAME="Natalya"
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 send""... $ac_c" 1>&6
3443 echo "configure:3444: checking for send" >&5
3444 if eval "test \"`echo '$''{'ac_cv_func_send'+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 send(); 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 send();
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_send) || defined (__stub___send)
3464 choke me
3465 #else
3466 send();
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_send=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_send=no"
3479 fi
3480 rm -f conftest*
3481 fi
3482
3483 if eval "test \"`echo '$ac_cv_func_'send`\" = 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 send in -lsocket""... $ac_c" 1>&6
3490 echo "configure:3491: checking for send in -lsocket" >&5
3491 ac_lib_var=`echo socket'_'send | 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="-lsocket  $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 send();
3504
3505 int main() {
3506 send()
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   http_LDFLAGS="${http_LDFLAGS} -lsocket"
3525
3526 else
3527   echo "$ac_t""no" 1>&6
3528 fi
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 -lnsl""... $ac_c" 1>&6
3580 echo "configure:3581: checking for gethostbyname in -lnsl" >&5
3581 ac_lib_var=`echo nsl'_'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="-lnsl  $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} -lnsl"
3615 else
3616   echo "$ac_t""no" 1>&6
3617 fi
3618
3619
3620 fi
3621
3622 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3623 echo "configure:3624: checking for gethostbyname" >&5
3624 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3625   echo $ac_n "(cached) $ac_c" 1>&6
3626 else
3627   cat > conftest.$ac_ext <<EOF
3628 #line 3629 "configure"
3629 #include "confdefs.h"
3630 /* System header to define __stub macros and hopefully few prototypes,
3631     which can conflict with char gethostbyname(); below.  */
3632 #include <assert.h>
3633 /* Override any gcc2 internal prototype to avoid an error.  */
3634 /* We use char because int might match the return type of a gcc2
3635     builtin and then its argument prototype would still apply.  */
3636 char gethostbyname();
3637
3638 int main() {
3639
3640 /* The GNU C library defines this for functions which it implements
3641     to always fail with ENOSYS.  Some functions are actually named
3642     something starting with __ and the normal name is an alias.  */
3643 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3644 choke me
3645 #else
3646 gethostbyname();
3647 #endif
3648
3649 ; return 0; }
3650 EOF
3651 if { (eval echo configure:3652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3652   rm -rf conftest*
3653   eval "ac_cv_func_gethostbyname=yes"
3654 else
3655   echo "configure: failed program was:" >&5
3656   cat conftest.$ac_ext >&5
3657   rm -rf conftest*
3658   eval "ac_cv_func_gethostbyname=no"
3659 fi
3660 rm -f conftest*
3661 fi
3662
3663 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3664   echo "$ac_t""yes" 1>&6
3665   :
3666 else
3667   echo "$ac_t""no" 1>&6
3668
3669   echo $ac_n "checking for gethostbyname in -lbind""... $ac_c" 1>&6
3670 echo "configure:3671: checking for gethostbyname in -lbind" >&5
3671 ac_lib_var=`echo bind'_'gethostbyname | sed 'y%./+-%__p_%'`
3672 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3673   echo $ac_n "(cached) $ac_c" 1>&6
3674 else
3675   ac_save_LIBS="$LIBS"
3676 LIBS="-lbind  $LIBS"
3677 cat > conftest.$ac_ext <<EOF
3678 #line 3679 "configure"
3679 #include "confdefs.h"
3680 /* Override any gcc2 internal prototype to avoid an error.  */
3681 /* We use char because int might match the return type of a gcc2
3682     builtin and then its argument prototype would still apply.  */
3683 char gethostbyname();
3684
3685 int main() {
3686 gethostbyname()
3687 ; return 0; }
3688 EOF
3689 if { (eval echo configure:3690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3690   rm -rf conftest*
3691   eval "ac_cv_lib_$ac_lib_var=yes"
3692 else
3693   echo "configure: failed program was:" >&5
3694   cat conftest.$ac_ext >&5
3695   rm -rf conftest*
3696   eval "ac_cv_lib_$ac_lib_var=no"
3697 fi
3698 rm -f conftest*
3699 LIBS="$ac_save_LIBS"
3700
3701 fi
3702 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3703   echo "$ac_t""yes" 1>&6
3704   ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
3705 else
3706   echo "$ac_t""no" 1>&6
3707 fi
3708
3709
3710 fi
3711
3712 for ac_func in nanosleep
3713 do
3714 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3715 echo "configure:3716: checking for $ac_func" >&5
3716 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3717   echo $ac_n "(cached) $ac_c" 1>&6
3718 else
3719   cat > conftest.$ac_ext <<EOF
3720 #line 3721 "configure"
3721 #include "confdefs.h"
3722 /* System header to define __stub macros and hopefully few prototypes,
3723     which can conflict with char $ac_func(); below.  */
3724 #include <assert.h>
3725 /* Override any gcc2 internal prototype to avoid an error.  */
3726 /* We use char because int might match the return type of a gcc2
3727     builtin and then its argument prototype would still apply.  */
3728 char $ac_func();
3729
3730 int main() {
3731
3732 /* The GNU C library defines this for functions which it implements
3733     to always fail with ENOSYS.  Some functions are actually named
3734     something starting with __ and the normal name is an alias.  */
3735 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3736 choke me
3737 #else
3738 $ac_func();
3739 #endif
3740
3741 ; return 0; }
3742 EOF
3743 if { (eval echo configure:3744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3744   rm -rf conftest*
3745   eval "ac_cv_func_$ac_func=yes"
3746 else
3747   echo "configure: failed program was:" >&5
3748   cat conftest.$ac_ext >&5
3749   rm -rf conftest*
3750   eval "ac_cv_func_$ac_func=no"
3751 fi
3752 rm -f conftest*
3753 fi
3754
3755 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3756   echo "$ac_t""yes" 1>&6
3757     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3758   cat >> confdefs.h <<EOF
3759 #define $ac_tr_func 1
3760 EOF
3761  
3762 else
3763   echo "$ac_t""no" 1>&6
3764 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
3765 echo "configure:3766: checking for nanosleep in -lrt" >&5
3766 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
3767 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3768   echo $ac_n "(cached) $ac_c" 1>&6
3769 else
3770   ac_save_LIBS="$LIBS"
3771 LIBS="-lrt  $LIBS"
3772 cat > conftest.$ac_ext <<EOF
3773 #line 3774 "configure"
3774 #include "confdefs.h"
3775 /* Override any gcc2 internal prototype to avoid an error.  */
3776 /* We use char because int might match the return type of a gcc2
3777     builtin and then its argument prototype would still apply.  */
3778 char nanosleep();
3779
3780 int main() {
3781 nanosleep()
3782 ; return 0; }
3783 EOF
3784 if { (eval echo configure:3785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3785   rm -rf conftest*
3786   eval "ac_cv_lib_$ac_lib_var=yes"
3787 else
3788   echo "configure: failed program was:" >&5
3789   cat conftest.$ac_ext >&5
3790   rm -rf conftest*
3791   eval "ac_cv_lib_$ac_lib_var=no"
3792 fi
3793 rm -f conftest*
3794 LIBS="$ac_save_LIBS"
3795
3796 fi
3797 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3798   echo "$ac_t""yes" 1>&6
3799   vlc_LDFLAGS="${vlc_LDFLAGS} -lrt"
3800 else
3801   echo "$ac_t""no" 1>&6
3802 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
3803 echo "configure:3804: checking for nanosleep in -lposix4" >&5
3804 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
3805 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3806   echo $ac_n "(cached) $ac_c" 1>&6
3807 else
3808   ac_save_LIBS="$LIBS"
3809 LIBS="-lposix4  $LIBS"
3810 cat > conftest.$ac_ext <<EOF
3811 #line 3812 "configure"
3812 #include "confdefs.h"
3813 /* Override any gcc2 internal prototype to avoid an error.  */
3814 /* We use char because int might match the return type of a gcc2
3815     builtin and then its argument prototype would still apply.  */
3816 char nanosleep();
3817
3818 int main() {
3819 nanosleep()
3820 ; return 0; }
3821 EOF
3822 if { (eval echo configure:3823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3823   rm -rf conftest*
3824   eval "ac_cv_lib_$ac_lib_var=yes"
3825 else
3826   echo "configure: failed program was:" >&5
3827   cat conftest.$ac_ext >&5
3828   rm -rf conftest*
3829   eval "ac_cv_lib_$ac_lib_var=no"
3830 fi
3831 rm -f conftest*
3832 LIBS="$ac_save_LIBS"
3833
3834 fi
3835 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3836   echo "$ac_t""yes" 1>&6
3837   vlc_LDFLAGS="${vlc_LDFLAGS} -lposix4"
3838 else
3839   echo "$ac_t""no" 1>&6
3840 fi
3841
3842   
3843 fi
3844
3845
3846 fi
3847 done
3848
3849 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
3850 echo "configure:3851: checking for inet_aton" >&5
3851 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+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 inet_aton(); 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 inet_aton();
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_inet_aton) || defined (__stub___inet_aton)
3871 choke me
3872 #else
3873 inet_aton();
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_inet_aton=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_inet_aton=no"
3886 fi
3887 rm -f conftest*
3888 fi
3889
3890 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = 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 inet_aton in -lresolv""... $ac_c" 1>&6
3897 echo "configure:3898: checking for inet_aton in -lresolv" >&5
3898 ac_lib_var=`echo resolv'_'inet_aton | 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="-lresolv  $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 inet_aton();
3911
3912 int main() {
3913 inet_aton()
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   ipv4_LDFLAGS="${ipv4_LDFLAGS} -lresolv"
3932 else
3933   echo "$ac_t""no" 1>&6
3934 fi
3935
3936
3937 fi
3938
3939 echo $ac_n "checking for textdomain""... $ac_c" 1>&6
3940 echo "configure:3941: checking for textdomain" >&5
3941 if eval "test \"`echo '$''{'ac_cv_func_textdomain'+set}'`\" = set"; then
3942   echo $ac_n "(cached) $ac_c" 1>&6
3943 else
3944   cat > conftest.$ac_ext <<EOF
3945 #line 3946 "configure"
3946 #include "confdefs.h"
3947 /* System header to define __stub macros and hopefully few prototypes,
3948     which can conflict with char textdomain(); below.  */
3949 #include <assert.h>
3950 /* Override any gcc2 internal prototype to avoid an error.  */
3951 /* We use char because int might match the return type of a gcc2
3952     builtin and then its argument prototype would still apply.  */
3953 char textdomain();
3954
3955 int main() {
3956
3957 /* The GNU C library defines this for functions which it implements
3958     to always fail with ENOSYS.  Some functions are actually named
3959     something starting with __ and the normal name is an alias.  */
3960 #if defined (__stub_textdomain) || defined (__stub___textdomain)
3961 choke me
3962 #else
3963 textdomain();
3964 #endif
3965
3966 ; return 0; }
3967 EOF
3968 if { (eval echo configure:3969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3969   rm -rf conftest*
3970   eval "ac_cv_func_textdomain=yes"
3971 else
3972   echo "configure: failed program was:" >&5
3973   cat conftest.$ac_ext >&5
3974   rm -rf conftest*
3975   eval "ac_cv_func_textdomain=no"
3976 fi
3977 rm -f conftest*
3978 fi
3979
3980 if eval "test \"`echo '$ac_cv_func_'textdomain`\" = yes"; then
3981   echo "$ac_t""yes" 1>&6
3982   :
3983 else
3984   echo "$ac_t""no" 1>&6
3985
3986   echo $ac_n "checking for textdomain in -lintl""... $ac_c" 1>&6
3987 echo "configure:3988: checking for textdomain in -lintl" >&5
3988 ac_lib_var=`echo intl'_'textdomain | sed 'y%./+-%__p_%'`
3989 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3990   echo $ac_n "(cached) $ac_c" 1>&6
3991 else
3992   ac_save_LIBS="$LIBS"
3993 LIBS="-lintl  $LIBS"
3994 cat > conftest.$ac_ext <<EOF
3995 #line 3996 "configure"
3996 #include "confdefs.h"
3997 /* Override any gcc2 internal prototype to avoid an error.  */
3998 /* We use char because int might match the return type of a gcc2
3999     builtin and then its argument prototype would still apply.  */
4000 char textdomain();
4001
4002 int main() {
4003 textdomain()
4004 ; return 0; }
4005 EOF
4006 if { (eval echo configure:4007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4007   rm -rf conftest*
4008   eval "ac_cv_lib_$ac_lib_var=yes"
4009 else
4010   echo "configure: failed program was:" >&5
4011   cat conftest.$ac_ext >&5
4012   rm -rf conftest*
4013   eval "ac_cv_lib_$ac_lib_var=no"
4014 fi
4015 rm -f conftest*
4016 LIBS="$ac_save_LIBS"
4017
4018 fi
4019 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4020   echo "$ac_t""yes" 1>&6
4021   vlc_LDFLAGS="${vlc_LDFLAGS} -lintl"
4022 else
4023   echo "$ac_t""no" 1>&6
4024 fi
4025
4026
4027 fi
4028
4029
4030 NEED_GETOPT=0
4031 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
4032 echo "configure:4033: checking for getopt_long" >&5
4033 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
4034   echo $ac_n "(cached) $ac_c" 1>&6
4035 else
4036   cat > conftest.$ac_ext <<EOF
4037 #line 4038 "configure"
4038 #include "confdefs.h"
4039 /* System header to define __stub macros and hopefully few prototypes,
4040     which can conflict with char getopt_long(); below.  */
4041 #include <assert.h>
4042 /* Override any gcc2 internal prototype to avoid an error.  */
4043 /* We use char because int might match the return type of a gcc2
4044     builtin and then its argument prototype would still apply.  */
4045 char getopt_long();
4046
4047 int main() {
4048
4049 /* The GNU C library defines this for functions which it implements
4050     to always fail with ENOSYS.  Some functions are actually named
4051     something starting with __ and the normal name is an alias.  */
4052 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
4053 choke me
4054 #else
4055 getopt_long();
4056 #endif
4057
4058 ; return 0; }
4059 EOF
4060 if { (eval echo configure:4061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4061   rm -rf conftest*
4062   eval "ac_cv_func_getopt_long=yes"
4063 else
4064   echo "configure: failed program was:" >&5
4065   cat conftest.$ac_ext >&5
4066   rm -rf conftest*
4067   eval "ac_cv_func_getopt_long=no"
4068 fi
4069 rm -f conftest*
4070 fi
4071
4072 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
4073   echo "$ac_t""yes" 1>&6
4074   cat >> confdefs.h <<\EOF
4075 #define HAVE_GETOPT_LONG 1
4076 EOF
4077
4078 else
4079   echo "$ac_t""no" 1>&6
4080  # FreeBSD has a gnugetopt library for this:
4081   echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
4082 echo "configure:4083: checking for getopt_long in -lgnugetopt" >&5
4083 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
4084 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4085   echo $ac_n "(cached) $ac_c" 1>&6
4086 else
4087   ac_save_LIBS="$LIBS"
4088 LIBS="-lgnugetopt  $LIBS"
4089 cat > conftest.$ac_ext <<EOF
4090 #line 4091 "configure"
4091 #include "confdefs.h"
4092 /* Override any gcc2 internal prototype to avoid an error.  */
4093 /* We use char because int might match the return type of a gcc2
4094     builtin and then its argument prototype would still apply.  */
4095 char getopt_long();
4096
4097 int main() {
4098 getopt_long()
4099 ; return 0; }
4100 EOF
4101 if { (eval echo configure:4102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4102   rm -rf conftest*
4103   eval "ac_cv_lib_$ac_lib_var=yes"
4104 else
4105   echo "configure: failed program was:" >&5
4106   cat conftest.$ac_ext >&5
4107   rm -rf conftest*
4108   eval "ac_cv_lib_$ac_lib_var=no"
4109 fi
4110 rm -f conftest*
4111 LIBS="$ac_save_LIBS"
4112
4113 fi
4114 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4115   echo "$ac_t""yes" 1>&6
4116   cat >> confdefs.h <<\EOF
4117 #define HAVE_GETOPT_LONG 1
4118 EOF
4119  vlc_LDFLAGS="${vlc_LDFLAGS} -lgnugetopt"
4120 else
4121   echo "$ac_t""no" 1>&6
4122 NEED_GETOPT=1
4123 fi
4124
4125 fi
4126
4127
4128 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4129 echo "configure:4130: checking return type of signal handlers" >&5
4130 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4131   echo $ac_n "(cached) $ac_c" 1>&6
4132 else
4133   cat > conftest.$ac_ext <<EOF
4134 #line 4135 "configure"
4135 #include "confdefs.h"
4136 #include <sys/types.h>
4137 #include <signal.h>
4138 #ifdef signal
4139 #undef signal
4140 #endif
4141 #ifdef __cplusplus
4142 extern "C" void (*signal (int, void (*)(int)))(int);
4143 #else
4144 void (*signal ()) ();
4145 #endif
4146
4147 int main() {
4148 int i;
4149 ; return 0; }
4150 EOF
4151 if { (eval echo configure:4152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4152   rm -rf conftest*
4153   ac_cv_type_signal=void
4154 else
4155   echo "configure: failed program was:" >&5
4156   cat conftest.$ac_ext >&5
4157   rm -rf conftest*
4158   ac_cv_type_signal=int
4159 fi
4160 rm -f conftest*
4161 fi
4162
4163 echo "$ac_t""$ac_cv_type_signal" 1>&6
4164 cat >> confdefs.h <<EOF
4165 #define RETSIGTYPE $ac_cv_type_signal
4166 EOF
4167
4168
4169 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4170 echo "configure:4171: checking for dlopen in -ldl" >&5
4171 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4172 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4173   echo $ac_n "(cached) $ac_c" 1>&6
4174 else
4175   ac_save_LIBS="$LIBS"
4176 LIBS="-ldl  $LIBS"
4177 cat > conftest.$ac_ext <<EOF
4178 #line 4179 "configure"
4179 #include "confdefs.h"
4180 /* Override any gcc2 internal prototype to avoid an error.  */
4181 /* We use char because int might match the return type of a gcc2
4182     builtin and then its argument prototype would still apply.  */
4183 char dlopen();
4184
4185 int main() {
4186 dlopen()
4187 ; return 0; }
4188 EOF
4189 if { (eval echo configure:4190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4190   rm -rf conftest*
4191   eval "ac_cv_lib_$ac_lib_var=yes"
4192 else
4193   echo "configure: failed program was:" >&5
4194   cat conftest.$ac_ext >&5
4195   rm -rf conftest*
4196   eval "ac_cv_lib_$ac_lib_var=no"
4197 fi
4198 rm -f conftest*
4199 LIBS="$ac_save_LIBS"
4200
4201 fi
4202 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4203   echo "$ac_t""yes" 1>&6
4204   vlc_LDFLAGS="${vlc_LDFLAGS} -ldl"
4205 else
4206   echo "$ac_t""no" 1>&6
4207 fi
4208
4209 echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6
4210 echo "configure:4211: checking for cos in -lm" >&5
4211 ac_lib_var=`echo m'_'cos | sed 'y%./+-%__p_%'`
4212 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4213   echo $ac_n "(cached) $ac_c" 1>&6
4214 else
4215   ac_save_LIBS="$LIBS"
4216 LIBS="-lm  $LIBS"
4217 cat > conftest.$ac_ext <<EOF
4218 #line 4219 "configure"
4219 #include "confdefs.h"
4220 /* Override any gcc2 internal prototype to avoid an error.  */
4221 /* We use char because int might match the return type of a gcc2
4222     builtin and then its argument prototype would still apply.  */
4223 char cos();
4224
4225 int main() {
4226 cos()
4227 ; return 0; }
4228 EOF
4229 if { (eval echo configure:4230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4230   rm -rf conftest*
4231   eval "ac_cv_lib_$ac_lib_var=yes"
4232 else
4233   echo "configure: failed program was:" >&5
4234   cat conftest.$ac_ext >&5
4235   rm -rf conftest*
4236   eval "ac_cv_lib_$ac_lib_var=no"
4237 fi
4238 rm -f conftest*
4239 LIBS="$ac_save_LIBS"
4240
4241 fi
4242 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4243   echo "$ac_t""yes" 1>&6
4244   imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
4245   filter_distort_LDFLAGS="${filter_distort_LDFLAGS} -lm"
4246 else
4247   echo "$ac_t""no" 1>&6
4248 fi
4249
4250 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
4251 echo "configure:4252: checking for pow in -lm" >&5
4252 ac_lib_var=`echo m'_'pow | 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="-lm  $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 pow();
4265
4266 int main() {
4267 pow()
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   ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lm"
4286   imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
4287   imdct3dn_LDFLAGS="${imdct3dn_LDFLAGS} -lm"
4288   imdctsse_LDFLAGS="${imdctsse_LDFLAGS} -lm"
4289   chroma_i420_rgb_LDFLAGS="${chroma_i420_rgb_LDFLAGS} -lm"
4290
4291 else
4292   echo "$ac_t""no" 1>&6
4293 fi
4294
4295
4296 THREAD_LIB=error
4297 if test "x${THREAD_LIB}" = xerror; then
4298   echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
4299 echo "configure:4300: checking for pthread_attr_init in -lpthread" >&5
4300 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4301 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4302   echo $ac_n "(cached) $ac_c" 1>&6
4303 else
4304   ac_save_LIBS="$LIBS"
4305 LIBS="-lpthread  $LIBS"
4306 cat > conftest.$ac_ext <<EOF
4307 #line 4308 "configure"
4308 #include "confdefs.h"
4309 /* Override any gcc2 internal prototype to avoid an error.  */
4310 /* We use char because int might match the return type of a gcc2
4311     builtin and then its argument prototype would still apply.  */
4312 char pthread_attr_init();
4313
4314 int main() {
4315 pthread_attr_init()
4316 ; return 0; }
4317 EOF
4318 if { (eval echo configure:4319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4319   rm -rf conftest*
4320   eval "ac_cv_lib_$ac_lib_var=yes"
4321 else
4322   echo "configure: failed program was:" >&5
4323   cat conftest.$ac_ext >&5
4324   rm -rf conftest*
4325   eval "ac_cv_lib_$ac_lib_var=no"
4326 fi
4327 rm -f conftest*
4328 LIBS="$ac_save_LIBS"
4329
4330 fi
4331 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4332   echo "$ac_t""yes" 1>&6
4333   THREAD_LIB="-lpthread"
4334 else
4335   echo "$ac_t""no" 1>&6
4336 fi
4337
4338 fi
4339 if test "x${THREAD_LIB}" = xerror; then
4340   echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
4341 echo "configure:4342: checking for pthread_attr_init in -lpthreads" >&5
4342 ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4343 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4344   echo $ac_n "(cached) $ac_c" 1>&6
4345 else
4346   ac_save_LIBS="$LIBS"
4347 LIBS="-lpthreads  $LIBS"
4348 cat > conftest.$ac_ext <<EOF
4349 #line 4350 "configure"
4350 #include "confdefs.h"
4351 /* Override any gcc2 internal prototype to avoid an error.  */
4352 /* We use char because int might match the return type of a gcc2
4353     builtin and then its argument prototype would still apply.  */
4354 char pthread_attr_init();
4355
4356 int main() {
4357 pthread_attr_init()
4358 ; return 0; }
4359 EOF
4360 if { (eval echo configure:4361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4361   rm -rf conftest*
4362   eval "ac_cv_lib_$ac_lib_var=yes"
4363 else
4364   echo "configure: failed program was:" >&5
4365   cat conftest.$ac_ext >&5
4366   rm -rf conftest*
4367   eval "ac_cv_lib_$ac_lib_var=no"
4368 fi
4369 rm -f conftest*
4370 LIBS="$ac_save_LIBS"
4371
4372 fi
4373 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4374   echo "$ac_t""yes" 1>&6
4375   THREAD_LIB="-lpthreads"
4376 else
4377   echo "$ac_t""no" 1>&6
4378 fi
4379
4380 fi
4381 if test "x${THREAD_LIB}" = xerror; then
4382   echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
4383 echo "configure:4384: checking for pthread_attr_init in -lc_r" >&5
4384 ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4385 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4386   echo $ac_n "(cached) $ac_c" 1>&6
4387 else
4388   ac_save_LIBS="$LIBS"
4389 LIBS="-lc_r  $LIBS"
4390 cat > conftest.$ac_ext <<EOF
4391 #line 4392 "configure"
4392 #include "confdefs.h"
4393 /* Override any gcc2 internal prototype to avoid an error.  */
4394 /* We use char because int might match the return type of a gcc2
4395     builtin and then its argument prototype would still apply.  */
4396 char pthread_attr_init();
4397
4398 int main() {
4399 pthread_attr_init()
4400 ; return 0; }
4401 EOF
4402 if { (eval echo configure:4403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4403   rm -rf conftest*
4404   eval "ac_cv_lib_$ac_lib_var=yes"
4405 else
4406   echo "configure: failed program was:" >&5
4407   cat conftest.$ac_ext >&5
4408   rm -rf conftest*
4409   eval "ac_cv_lib_$ac_lib_var=no"
4410 fi
4411 rm -f conftest*
4412 LIBS="$ac_save_LIBS"
4413
4414 fi
4415 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4416   echo "$ac_t""yes" 1>&6
4417   THREAD_LIB="-lc_r"
4418 else
4419   echo "$ac_t""no" 1>&6
4420 fi
4421
4422 fi
4423 if test "x${THREAD_LIB}" = xerror; then
4424   echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
4425 echo "configure:4426: checking for pthread_attr_init" >&5
4426 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
4427   echo $ac_n "(cached) $ac_c" 1>&6
4428 else
4429   cat > conftest.$ac_ext <<EOF
4430 #line 4431 "configure"
4431 #include "confdefs.h"
4432 /* System header to define __stub macros and hopefully few prototypes,
4433     which can conflict with char pthread_attr_init(); below.  */
4434 #include <assert.h>
4435 /* Override any gcc2 internal prototype to avoid an error.  */
4436 /* We use char because int might match the return type of a gcc2
4437     builtin and then its argument prototype would still apply.  */
4438 char pthread_attr_init();
4439
4440 int main() {
4441
4442 /* The GNU C library defines this for functions which it implements
4443     to always fail with ENOSYS.  Some functions are actually named
4444     something starting with __ and the normal name is an alias.  */
4445 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
4446 choke me
4447 #else
4448 pthread_attr_init();
4449 #endif
4450
4451 ; return 0; }
4452 EOF
4453 if { (eval echo configure:4454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4454   rm -rf conftest*
4455   eval "ac_cv_func_pthread_attr_init=yes"
4456 else
4457   echo "configure: failed program was:" >&5
4458   cat conftest.$ac_ext >&5
4459   rm -rf conftest*
4460   eval "ac_cv_func_pthread_attr_init=no"
4461 fi
4462 rm -f conftest*
4463 fi
4464
4465 if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
4466   echo "$ac_t""yes" 1>&6
4467   :
4468 else
4469   echo "$ac_t""no" 1>&6
4470 fi
4471
4472   THREAD_LIB=""
4473 fi
4474
4475 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
4476 echo "configure:4477: checking for cthread_fork in -lthreads" >&5
4477 ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
4478 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4479   echo $ac_n "(cached) $ac_c" 1>&6
4480 else
4481   ac_save_LIBS="$LIBS"
4482 LIBS="-lthreads  $LIBS"
4483 cat > conftest.$ac_ext <<EOF
4484 #line 4485 "configure"
4485 #include "confdefs.h"
4486 /* Override any gcc2 internal prototype to avoid an error.  */
4487 /* We use char because int might match the return type of a gcc2
4488     builtin and then its argument prototype would still apply.  */
4489 char cthread_fork();
4490
4491 int main() {
4492 cthread_fork()
4493 ; return 0; }
4494 EOF
4495 if { (eval echo configure:4496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4496   rm -rf conftest*
4497   eval "ac_cv_lib_$ac_lib_var=yes"
4498 else
4499   echo "configure: failed program was:" >&5
4500   cat conftest.$ac_ext >&5
4501   rm -rf conftest*
4502   eval "ac_cv_lib_$ac_lib_var=no"
4503 fi
4504 rm -f conftest*
4505 LIBS="$ac_save_LIBS"
4506
4507 fi
4508 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4509   echo "$ac_t""yes" 1>&6
4510   THREAD_LIB="-lthreads"
4511 else
4512   echo "$ac_t""no" 1>&6
4513 fi
4514
4515
4516 cat > conftest.$ac_ext <<EOF
4517 #line 4518 "configure"
4518 #include "confdefs.h"
4519 #include <pthread.h>
4520 EOF
4521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4522   egrep "pthread_cond_t" >/dev/null 2>&1; then
4523   rm -rf conftest*
4524   
4525   cat >> confdefs.h <<\EOF
4526 #define PTHREAD_COND_T_IN_PTHREAD_H 1
4527 EOF
4528
4529 fi
4530 rm -f conftest*
4531
4532 cat > conftest.$ac_ext <<EOF
4533 #line 4534 "configure"
4534 #include "confdefs.h"
4535 #include <pthread.h>
4536 EOF
4537 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4538   egrep "pthread_once" >/dev/null 2>&1; then
4539   rm -rf conftest*
4540   
4541   cat >> confdefs.h <<\EOF
4542 #define PTHREAD_ONCE_IN_PTHREAD_H 1
4543 EOF
4544
4545 fi
4546 rm -f conftest*
4547
4548 cat > conftest.$ac_ext <<EOF
4549 #line 4550 "configure"
4550 #include "confdefs.h"
4551 #include <strings.h>
4552 EOF
4553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4554   egrep "strncasecmp" >/dev/null 2>&1; then
4555   rm -rf conftest*
4556   
4557   cat >> confdefs.h <<\EOF
4558 #define STRNCASECMP_IN_STRINGS_H 1
4559 EOF
4560
4561 fi
4562 rm -f conftest*
4563
4564
4565 for ac_hdr in stdint.h getopt.h strings.h inttypes.h sys/int_types.h
4566 do
4567 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4568 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4569 echo "configure:4570: checking for $ac_hdr" >&5
4570 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4571   echo $ac_n "(cached) $ac_c" 1>&6
4572 else
4573   cat > conftest.$ac_ext <<EOF
4574 #line 4575 "configure"
4575 #include "confdefs.h"
4576 #include <$ac_hdr>
4577 EOF
4578 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4579 { (eval echo configure:4580: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4580 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4581 if test -z "$ac_err"; then
4582   rm -rf conftest*
4583   eval "ac_cv_header_$ac_safe=yes"
4584 else
4585   echo "$ac_err" >&5
4586   echo "configure: failed program was:" >&5
4587   cat conftest.$ac_ext >&5
4588   rm -rf conftest*
4589   eval "ac_cv_header_$ac_safe=no"
4590 fi
4591 rm -f conftest*
4592 fi
4593 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4594   echo "$ac_t""yes" 1>&6
4595     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4596   cat >> confdefs.h <<EOF
4597 #define $ac_tr_hdr 1
4598 EOF
4599  
4600 else
4601   echo "$ac_t""no" 1>&6
4602 fi
4603 done
4604
4605 for ac_hdr in sys/sockio.h fcntl.h sys/types.h sys/time.h sys/times.h
4606 do
4607 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4608 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4609 echo "configure:4610: checking for $ac_hdr" >&5
4610 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4611   echo $ac_n "(cached) $ac_c" 1>&6
4612 else
4613   cat > conftest.$ac_ext <<EOF
4614 #line 4615 "configure"
4615 #include "confdefs.h"
4616 #include <$ac_hdr>
4617 EOF
4618 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4619 { (eval echo configure:4620: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4620 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4621 if test -z "$ac_err"; then
4622   rm -rf conftest*
4623   eval "ac_cv_header_$ac_safe=yes"
4624 else
4625   echo "$ac_err" >&5
4626   echo "configure: failed program was:" >&5
4627   cat conftest.$ac_ext >&5
4628   rm -rf conftest*
4629   eval "ac_cv_header_$ac_safe=no"
4630 fi
4631 rm -f conftest*
4632 fi
4633 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4634   echo "$ac_t""yes" 1>&6
4635     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4636   cat >> confdefs.h <<EOF
4637 #define $ac_tr_hdr 1
4638 EOF
4639  
4640 else
4641   echo "$ac_t""no" 1>&6
4642 fi
4643 done
4644
4645 for ac_hdr in dlfcn.h image.h
4646 do
4647 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4648 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4649 echo "configure:4650: checking for $ac_hdr" >&5
4650 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4651   echo $ac_n "(cached) $ac_c" 1>&6
4652 else
4653   cat > conftest.$ac_ext <<EOF
4654 #line 4655 "configure"
4655 #include "confdefs.h"
4656 #include <$ac_hdr>
4657 EOF
4658 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4659 { (eval echo configure:4660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4660 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4661 if test -z "$ac_err"; then
4662   rm -rf conftest*
4663   eval "ac_cv_header_$ac_safe=yes"
4664 else
4665   echo "$ac_err" >&5
4666   echo "configure: failed program was:" >&5
4667   cat conftest.$ac_ext >&5
4668   rm -rf conftest*
4669   eval "ac_cv_header_$ac_safe=no"
4670 fi
4671 rm -f conftest*
4672 fi
4673 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4674   echo "$ac_t""yes" 1>&6
4675     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4676   cat >> confdefs.h <<EOF
4677 #define $ac_tr_hdr 1
4678 EOF
4679  
4680 else
4681   echo "$ac_t""no" 1>&6
4682 fi
4683 done
4684
4685 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
4686 do
4687 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4688 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4689 echo "configure:4690: checking for $ac_hdr" >&5
4690 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4691   echo $ac_n "(cached) $ac_c" 1>&6
4692 else
4693   cat > conftest.$ac_ext <<EOF
4694 #line 4695 "configure"
4695 #include "confdefs.h"
4696 #include <$ac_hdr>
4697 EOF
4698 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4699 { (eval echo configure:4700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4700 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4701 if test -z "$ac_err"; then
4702   rm -rf conftest*
4703   eval "ac_cv_header_$ac_safe=yes"
4704 else
4705   echo "$ac_err" >&5
4706   echo "configure: failed program was:" >&5
4707   cat conftest.$ac_ext >&5
4708   rm -rf conftest*
4709   eval "ac_cv_header_$ac_safe=no"
4710 fi
4711 rm -f conftest*
4712 fi
4713 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4714   echo "$ac_t""yes" 1>&6
4715     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4716   cat >> confdefs.h <<EOF
4717 #define $ac_tr_hdr 1
4718 EOF
4719  
4720 else
4721   echo "$ac_t""no" 1>&6
4722 fi
4723 done
4724
4725 for ac_hdr in machine/param.h sys/shm.h
4726 do
4727 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4728 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4729 echo "configure:4730: checking for $ac_hdr" >&5
4730 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4731   echo $ac_n "(cached) $ac_c" 1>&6
4732 else
4733   cat > conftest.$ac_ext <<EOF
4734 #line 4735 "configure"
4735 #include "confdefs.h"
4736 #include <$ac_hdr>
4737 EOF
4738 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4739 { (eval echo configure:4740: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4740 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4741 if test -z "$ac_err"; then
4742   rm -rf conftest*
4743   eval "ac_cv_header_$ac_safe=yes"
4744 else
4745   echo "$ac_err" >&5
4746   echo "configure: failed program was:" >&5
4747   cat conftest.$ac_ext >&5
4748   rm -rf conftest*
4749   eval "ac_cv_header_$ac_safe=no"
4750 fi
4751 rm -f conftest*
4752 fi
4753 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4754   echo "$ac_t""yes" 1>&6
4755     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4756   cat >> confdefs.h <<EOF
4757 #define $ac_tr_hdr 1
4758 EOF
4759  
4760 else
4761   echo "$ac_t""no" 1>&6
4762 fi
4763 done
4764
4765 for ac_hdr in linux/version.h
4766 do
4767 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4768 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4769 echo "configure:4770: checking for $ac_hdr" >&5
4770 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4771   echo $ac_n "(cached) $ac_c" 1>&6
4772 else
4773   cat > conftest.$ac_ext <<EOF
4774 #line 4775 "configure"
4775 #include "confdefs.h"
4776 #include <$ac_hdr>
4777 EOF
4778 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4779 { (eval echo configure:4780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4780 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4781 if test -z "$ac_err"; then
4782   rm -rf conftest*
4783   eval "ac_cv_header_$ac_safe=yes"
4784 else
4785   echo "$ac_err" >&5
4786   echo "configure: failed program was:" >&5
4787   cat conftest.$ac_ext >&5
4788   rm -rf conftest*
4789   eval "ac_cv_header_$ac_safe=no"
4790 fi
4791 rm -f conftest*
4792 fi
4793 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4794   echo "$ac_t""yes" 1>&6
4795     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4796   cat >> confdefs.h <<EOF
4797 #define $ac_tr_hdr 1
4798 EOF
4799  
4800 else
4801   echo "$ac_t""no" 1>&6
4802 fi
4803 done
4804
4805
4806 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4807 echo "configure:4808: checking whether time.h and sys/time.h may both be included" >&5
4808 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4809   echo $ac_n "(cached) $ac_c" 1>&6
4810 else
4811   cat > conftest.$ac_ext <<EOF
4812 #line 4813 "configure"
4813 #include "confdefs.h"
4814 #include <sys/types.h>
4815 #include <sys/time.h>
4816 #include <time.h>
4817 int main() {
4818 struct tm *tp;
4819 ; return 0; }
4820 EOF
4821 if { (eval echo configure:4822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4822   rm -rf conftest*
4823   ac_cv_header_time=yes
4824 else
4825   echo "configure: failed program was:" >&5
4826   cat conftest.$ac_ext >&5
4827   rm -rf conftest*
4828   ac_cv_header_time=no
4829 fi
4830 rm -f conftest*
4831 fi
4832
4833 echo "$ac_t""$ac_cv_header_time" 1>&6
4834 if test $ac_cv_header_time = yes; then
4835   cat >> confdefs.h <<\EOF
4836 #define TIME_WITH_SYS_TIME 1
4837 EOF
4838
4839 fi
4840
4841
4842 cat > conftest.$ac_ext <<EOF
4843 #line 4844 "configure"
4844 #include "confdefs.h"
4845 #include <time.h>
4846 EOF
4847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4848   egrep "nanosleep" >/dev/null 2>&1; then
4849   rm -rf conftest*
4850   
4851   cat >> confdefs.h <<\EOF
4852 #define HAVE_DECL_NANOSLEEP 1
4853 EOF
4854
4855
4856 fi
4857 rm -f conftest*
4858
4859
4860 cat > conftest.$ac_ext <<EOF
4861 #line 4862 "configure"
4862 #include "confdefs.h"
4863 #include <sys/time.h>
4864 EOF
4865 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4866   egrep "timespec" >/dev/null 2>&1; then
4867   rm -rf conftest*
4868   
4869   cat >> confdefs.h <<\EOF
4870 #define HAVE_STRUCT_TIMESPEC 1
4871 EOF
4872
4873
4874 fi
4875 rm -f conftest*
4876
4877
4878 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
4879 do
4880 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4881 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4882 echo "configure:4883: checking for $ac_hdr" >&5
4883 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4884   echo $ac_n "(cached) $ac_c" 1>&6
4885 else
4886   cat > conftest.$ac_ext <<EOF
4887 #line 4888 "configure"
4888 #include "confdefs.h"
4889 #include <$ac_hdr>
4890 EOF
4891 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4892 { (eval echo configure:4893: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4893 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4894 if test -z "$ac_err"; then
4895   rm -rf conftest*
4896   eval "ac_cv_header_$ac_safe=yes"
4897 else
4898   echo "$ac_err" >&5
4899   echo "configure: failed program was:" >&5
4900   cat conftest.$ac_ext >&5
4901   rm -rf conftest*
4902   eval "ac_cv_header_$ac_safe=no"
4903 fi
4904 rm -f conftest*
4905 fi
4906 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4907   echo "$ac_t""yes" 1>&6
4908     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4909   cat >> confdefs.h <<EOF
4910 #define $ac_tr_hdr 1
4911 EOF
4912  
4913 else
4914   echo "$ac_t""no" 1>&6
4915 fi
4916 done
4917
4918
4919 if test x$SYS != xmingw32
4920 then
4921   if test x$x_includes = xNONE; then
4922     x_includes=/usr/X11R6/include
4923   fi
4924   if test x$x_libraries = xNONE; then
4925     x_libraries=/usr/X11R6/lib
4926   fi
4927   CPPFLAGS="$save_CPPFLAGS -I$x_includes"
4928   for ac_hdr in X11/extensions/dpms.h
4929 do
4930 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4931 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4932 echo "configure:4933: checking for $ac_hdr" >&5
4933 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4934   echo $ac_n "(cached) $ac_c" 1>&6
4935 else
4936   cat > conftest.$ac_ext <<EOF
4937 #line 4938 "configure"
4938 #include "confdefs.h"
4939 #include <$ac_hdr>
4940 EOF
4941 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4942 { (eval echo configure:4943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4943 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4944 if test -z "$ac_err"; then
4945   rm -rf conftest*
4946   eval "ac_cv_header_$ac_safe=yes"
4947 else
4948   echo "$ac_err" >&5
4949   echo "configure: failed program was:" >&5
4950   cat conftest.$ac_ext >&5
4951   rm -rf conftest*
4952   eval "ac_cv_header_$ac_safe=no"
4953 fi
4954 rm -f conftest*
4955 fi
4956 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4957   echo "$ac_t""yes" 1>&6
4958     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4959   cat >> confdefs.h <<EOF
4960 #define $ac_tr_hdr 1
4961 EOF
4962  
4963     cat > conftest.$ac_ext <<EOF
4964 #line 4965 "configure"
4965 #include "confdefs.h"
4966 #include <X11/extensions/dpms.h>
4967 EOF
4968 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4969   egrep "DPMSInfo" >/dev/null 2>&1; then
4970   rm -rf conftest*
4971   
4972       cat >> confdefs.h <<\EOF
4973 #define DPMSINFO_IN_DPMS_H 1
4974 EOF
4975
4976     
4977 fi
4978 rm -f conftest*
4979
4980   
4981 else
4982   echo "$ac_t""no" 1>&6
4983 fi
4984 done
4985
4986   CPPFLAGS="$save_CPPFLAGS"
4987 fi
4988
4989 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
4990 echo "configure:4991: checking for ntohl in sys/param.h" >&5
4991 if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
4992   echo $ac_n "(cached) $ac_c" 1>&6
4993 else
4994   CFLAGS="${save_CFLAGS} -Wall -Werror"
4995      cat > conftest.$ac_ext <<EOF
4996 #line 4997 "configure"
4997 #include "confdefs.h"
4998 #include <sys/param.h>
4999 int main() {
5000 void foo() { int meuh; ntohl(meuh); }
5001 ; return 0; }
5002 EOF
5003 if { (eval echo configure:5004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5004   rm -rf conftest*
5005   ac_cv_c_ntohl_sys_param_h=yes
5006 else
5007   echo "configure: failed program was:" >&5
5008   cat conftest.$ac_ext >&5
5009   rm -rf conftest*
5010   ac_cv_c_ntohl_sys_param_h=no
5011 fi
5012 rm -f conftest*
5013 fi
5014
5015 echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
5016 if test x"$ac_cv_c_ntohl_sys_param_h" != x"no"; then
5017     cat >> confdefs.h <<\EOF
5018 #define NTOHL_IN_SYS_PARAM_H 1
5019 EOF
5020
5021 fi
5022
5023 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
5024 echo "configure:5025: checking if \$CC accepts -finline-limit" >&5
5025 if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
5026   echo $ac_n "(cached) $ac_c" 1>&6
5027 else
5028   CFLAGS="${save_CFLAGS} -finline-limit-30000"
5029      cat > conftest.$ac_ext <<EOF
5030 #line 5031 "configure"
5031 #include "confdefs.h"
5032
5033 int main() {
5034
5035 ; return 0; }
5036 EOF
5037 if { (eval echo configure:5038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5038   rm -rf conftest*
5039   ac_cv_c_inline_limit=yes
5040 else
5041   echo "configure: failed program was:" >&5
5042   cat conftest.$ac_ext >&5
5043   rm -rf conftest*
5044   ac_cv_c_inline_limit=no
5045 fi
5046 rm -f conftest*
5047 fi
5048
5049 echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
5050 if test x"$ac_cv_c_inline_limit" != x"no"; then
5051     save_CFLAGS="${save_CFLAGS} -finline-limit-30000"
5052 fi
5053
5054 echo $ac_n "checking if \$CC accepts -Wall -Winline""... $ac_c" 1>&6
5055 echo "configure:5056: checking if \$CC accepts -Wall -Winline" >&5
5056 if eval "test \"`echo '$''{'ac_cv_c_Wall_Winline'+set}'`\" = set"; then
5057   echo $ac_n "(cached) $ac_c" 1>&6
5058 else
5059   CFLAGS="-Wall -Winline ${save_CFLAGS}"
5060      cat > conftest.$ac_ext <<EOF
5061 #line 5062 "configure"
5062 #include "confdefs.h"
5063
5064 int main() {
5065
5066 ; return 0; }
5067 EOF
5068 if { (eval echo configure:5069: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5069   rm -rf conftest*
5070   ac_cv_c_Wall_Winline=yes
5071 else
5072   echo "configure: failed program was:" >&5
5073   cat conftest.$ac_ext >&5
5074   rm -rf conftest*
5075   ac_cv_c_Wall_Winline=no
5076 fi
5077 rm -f conftest*
5078 fi
5079
5080 echo "$ac_t""$ac_cv_c_Wall_Winline" 1>&6
5081 if test x"$ac_cv_c_Wall_Winline" != x"no"; then
5082     save_CFLAGS="-Wall -Winline ${save_CFLAGS}"
5083 else
5084     echo $ac_n "checking if \$CC accepts -wall -winline""... $ac_c" 1>&6
5085 echo "configure:5086: checking if \$CC accepts -wall -winline" >&5
5086 if eval "test \"`echo '$''{'ac_cv_c_wall_winline'+set}'`\" = set"; then
5087   echo $ac_n "(cached) $ac_c" 1>&6
5088 else
5089   CFLAGS="-wall -winline ${save_CFLAGS}"
5090          cat > conftest.$ac_ext <<EOF
5091 #line 5092 "configure"
5092 #include "confdefs.h"
5093
5094 int main() {
5095
5096 ; return 0; }
5097 EOF
5098 if { (eval echo configure:5099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5099   rm -rf conftest*
5100   ac_cv_c_wall_winline=yes
5101 else
5102   echo "configure: failed program was:" >&5
5103   cat conftest.$ac_ext >&5
5104   rm -rf conftest*
5105   ac_cv_c_wall_winline=no
5106 fi
5107 rm -f conftest*
5108 fi
5109
5110 echo "$ac_t""$ac_cv_c_wall_winline" 1>&6
5111     if test x"$ac_cv_c_wall_winline" != x"no"; then
5112         save_CFLAGS="-wall -winline ${save_CFLAGS}"
5113     fi
5114 fi
5115
5116 echo $ac_n "checking if \$CC accepts -pipe""... $ac_c" 1>&6
5117 echo "configure:5118: checking if \$CC accepts -pipe" >&5
5118 if eval "test \"`echo '$''{'ac_cv_c_pipe'+set}'`\" = set"; then
5119   echo $ac_n "(cached) $ac_c" 1>&6
5120 else
5121   CFLAGS="${save_CFLAGS} -pipe"
5122      cat > conftest.$ac_ext <<EOF
5123 #line 5124 "configure"
5124 #include "confdefs.h"
5125
5126 int main() {
5127
5128 ; return 0; }
5129 EOF
5130 if { (eval echo configure:5131: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5131   rm -rf conftest*
5132   ac_cv_c_pipe=yes
5133 else
5134   echo "configure: failed program was:" >&5
5135   cat conftest.$ac_ext >&5
5136   rm -rf conftest*
5137   ac_cv_c_pipe=no
5138 fi
5139 rm -f conftest*
5140 fi
5141
5142 echo "$ac_t""$ac_cv_c_pipe" 1>&6
5143 if test x"$ac_cv_c_pipe" != x"no"; then
5144     save_CFLAGS="${save_CFLAGS} -pipe"
5145 fi
5146
5147 echo $ac_n "checking if \$CC accepts -O3""... $ac_c" 1>&6
5148 echo "configure:5149: checking if \$CC accepts -O3" >&5
5149 if eval "test \"`echo '$''{'ac_cv_c_o3'+set}'`\" = set"; then
5150   echo $ac_n "(cached) $ac_c" 1>&6
5151 else
5152   CFLAGS="${save_CFLAGS} -O3"
5153      cat > conftest.$ac_ext <<EOF
5154 #line 5155 "configure"
5155 #include "confdefs.h"
5156
5157 int main() {
5158
5159 ; return 0; }
5160 EOF
5161 if { (eval echo configure:5162: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5162   rm -rf conftest*
5163   ac_cv_c_o3=yes
5164 else
5165   echo "configure: failed program was:" >&5
5166   cat conftest.$ac_ext >&5
5167   rm -rf conftest*
5168   ac_cv_c_o3=no
5169 fi
5170 rm -f conftest*
5171 fi
5172
5173 echo "$ac_t""$ac_cv_c_o3" 1>&6
5174 if test x"$ac_cv_c_o3" != x"no"; then
5175     CFLAGS_OPTIM="${CFLAGS_OPTIM} -O3"
5176 else
5177     echo $ac_n "checking if \$CC accepts -O2""... $ac_c" 1>&6
5178 echo "configure:5179: checking if \$CC accepts -O2" >&5
5179 if eval "test \"`echo '$''{'ac_cv_c_o2'+set}'`\" = set"; then
5180   echo $ac_n "(cached) $ac_c" 1>&6
5181 else
5182   CFLAGS="${save_CFLAGS} -O2"
5183          cat > conftest.$ac_ext <<EOF
5184 #line 5185 "configure"
5185 #include "confdefs.h"
5186
5187 int main() {
5188
5189 ; return 0; }
5190 EOF
5191 if { (eval echo configure:5192: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5192   rm -rf conftest*
5193   ac_cv_c_o2=yes
5194 else
5195   echo "configure: failed program was:" >&5
5196   cat conftest.$ac_ext >&5
5197   rm -rf conftest*
5198   ac_cv_c_o2=no
5199 fi
5200 rm -f conftest*
5201 fi
5202
5203 echo "$ac_t""$ac_cv_c_o2" 1>&6
5204     if test x"$ac_cv_c_o2" != x"no"; then
5205         CFLAGS_OPTIM="${CFLAGS_OPTIM} -O2"
5206     else
5207         echo $ac_n "checking if \$CC accepts -O""... $ac_c" 1>&6
5208 echo "configure:5209: checking if \$CC accepts -O" >&5
5209 if eval "test \"`echo '$''{'ac_cv_c_o'+set}'`\" = set"; then
5210   echo $ac_n "(cached) $ac_c" 1>&6
5211 else
5212   CFLAGS="${save_CFLAGS} -O"
5213              cat > conftest.$ac_ext <<EOF
5214 #line 5215 "configure"
5215 #include "confdefs.h"
5216
5217 int main() {
5218
5219 ; return 0; }
5220 EOF
5221 if { (eval echo configure:5222: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5222   rm -rf conftest*
5223   ac_cv_c_o=yes
5224 else
5225   echo "configure: failed program was:" >&5
5226   cat conftest.$ac_ext >&5
5227   rm -rf conftest*
5228   ac_cv_c_o=no
5229 fi
5230 rm -f conftest*
5231 fi
5232
5233 echo "$ac_t""$ac_cv_c_o" 1>&6
5234         if test x"$ac_cv_c_o" != x"no"; then
5235             CFLAGS_OPTIM="${CFLAGS_OPTIM} -O"
5236         fi
5237     fi
5238 fi
5239
5240 echo $ac_n "checking if \$CC accepts -ffast-math""... $ac_c" 1>&6
5241 echo "configure:5242: checking if \$CC accepts -ffast-math" >&5
5242 if eval "test \"`echo '$''{'ac_cv_c_fast_math'+set}'`\" = set"; then
5243   echo $ac_n "(cached) $ac_c" 1>&6
5244 else
5245   CFLAGS="${save_CFLAGS} -ffast-math"
5246      cat > conftest.$ac_ext <<EOF
5247 #line 5248 "configure"
5248 #include "confdefs.h"
5249
5250 int main() {
5251
5252 ; return 0; }
5253 EOF
5254 if { (eval echo configure:5255: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5255   rm -rf conftest*
5256   ac_cv_c_fast_math=yes
5257 else
5258   echo "configure: failed program was:" >&5
5259   cat conftest.$ac_ext >&5
5260   rm -rf conftest*
5261   ac_cv_c_fast_math=no
5262 fi
5263 rm -f conftest*
5264 fi
5265
5266 echo "$ac_t""$ac_cv_c_fast_math" 1>&6
5267 if test x"$ac_cv_c_fast_math" != x"no"; then
5268     CFLAGS_OPTIM="${CFLAGS_OPTIM} -ffast-math"
5269 fi
5270
5271 echo $ac_n "checking if \$CC accepts -funroll-loops""... $ac_c" 1>&6
5272 echo "configure:5273: checking if \$CC accepts -funroll-loops" >&5
5273 if eval "test \"`echo '$''{'ac_cv_c_unroll_loops'+set}'`\" = set"; then
5274   echo $ac_n "(cached) $ac_c" 1>&6
5275 else
5276   CFLAGS="${save_CFLAGS} -funroll-loops"
5277      cat > conftest.$ac_ext <<EOF
5278 #line 5279 "configure"
5279 #include "confdefs.h"
5280
5281 int main() {
5282
5283 ; return 0; }
5284 EOF
5285 if { (eval echo configure:5286: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5286   rm -rf conftest*
5287   ac_cv_c_unroll_loops=yes
5288 else
5289   echo "configure: failed program was:" >&5
5290   cat conftest.$ac_ext >&5
5291   rm -rf conftest*
5292   ac_cv_c_unroll_loops=no
5293 fi
5294 rm -f conftest*
5295 fi
5296
5297 echo "$ac_t""$ac_cv_c_unroll_loops" 1>&6
5298 if test x"$ac_cv_c_unroll_loops" != x"no"; then
5299     CFLAGS_OPTIM="${CFLAGS_OPTIM} -funroll-loops"
5300 fi
5301
5302 echo $ac_n "checking if \$CC accepts -fomit-frame-pointer""... $ac_c" 1>&6
5303 echo "configure:5304: checking if \$CC accepts -fomit-frame-pointer" >&5
5304 if eval "test \"`echo '$''{'ac_cv_c_omit_frame_pointer'+set}'`\" = set"; then
5305   echo $ac_n "(cached) $ac_c" 1>&6
5306 else
5307   CFLAGS="${save_CFLAGS} -fomit-frame-pointer"
5308      cat > conftest.$ac_ext <<EOF
5309 #line 5310 "configure"
5310 #include "confdefs.h"
5311
5312 int main() {
5313
5314 ; return 0; }
5315 EOF
5316 if { (eval echo configure:5317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5317   rm -rf conftest*
5318   ac_cv_c_omit_frame_pointer=yes
5319 else
5320   echo "configure: failed program was:" >&5
5321   cat conftest.$ac_ext >&5
5322   rm -rf conftest*
5323   ac_cv_c_omit_frame_pointer=no
5324 fi
5325 rm -f conftest*
5326 fi
5327
5328 echo "$ac_t""$ac_cv_c_omit_frame_pointer" 1>&6
5329 if test x"$ac_cv_c_omit_frame_pointer" != x"no"; then
5330     CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer"
5331 fi
5332
5333 echo $ac_n "checking if \$CC accepts -bundle -undefined error -lcc_dynamic""... $ac_c" 1>&6
5334 echo "configure:5335: checking if \$CC accepts -bundle -undefined error -lcc_dynamic" >&5
5335 if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
5336   echo $ac_n "(cached) $ac_c" 1>&6
5337 else
5338   CFLAGS="${save_CFLAGS} -bundle -undefined error -lcc_dynamic"
5339      cat > conftest.$ac_ext <<EOF
5340 #line 5341 "configure"
5341 #include "confdefs.h"
5342
5343 int main() {
5344
5345 ; return 0; }
5346 EOF
5347 if { (eval echo configure:5348: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5348   rm -rf conftest*
5349   ac_cv_ld_darwin=yes
5350 else
5351   echo "configure: failed program was:" >&5
5352   cat conftest.$ac_ext >&5
5353   rm -rf conftest*
5354   ac_cv_ld_darwin=no
5355 fi
5356 rm -f conftest*
5357 fi
5358
5359 echo "$ac_t""$ac_cv_ld_darwin" 1>&6
5360 if test x"$ac_cv_ld_darwin" != x"no"; then
5361     plugins_LDFLAGS="${plugins_LDFLAGS} -bundle -undefined error -lcc_dynamic"
5362 fi
5363
5364 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
5365 echo "configure:5366: checking if \$CC accepts -shared" >&5
5366 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
5367   echo $ac_n "(cached) $ac_c" 1>&6
5368 else
5369   CFLAGS="${save_CFLAGS} -shared"
5370      cat > conftest.$ac_ext <<EOF
5371 #line 5372 "configure"
5372 #include "confdefs.h"
5373
5374 int main() {
5375
5376 ; return 0; }
5377 EOF
5378 if { (eval echo configure:5379: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5379   rm -rf conftest*
5380   ac_cv_ld_plugins=yes
5381 else
5382   echo "configure: failed program was:" >&5
5383   cat conftest.$ac_ext >&5
5384   rm -rf conftest*
5385   ac_cv_ld_plugins=no
5386 fi
5387 rm -f conftest*
5388 fi
5389
5390 echo "$ac_t""$ac_cv_ld_plugins" 1>&6
5391 if test x"$ac_cv_ld_plugins" != x"no"; then
5392     plugins_LDFLAGS="${plugins_LDFLAGS} -shared"
5393 fi
5394         
5395 echo $ac_n "checking for variadic cpp macros""... $ac_c" 1>&6
5396 echo "configure:5397: checking for variadic cpp macros" >&5
5397 if eval "test \"`echo '$''{'ac_cv_cpp_variadic_macros'+set}'`\" = set"; then
5398   echo $ac_n "(cached) $ac_c" 1>&6
5399 else
5400   CFLAGS="${save_CFLAGS}"
5401      cat > conftest.$ac_ext <<EOF
5402 #line 5403 "configure"
5403 #include "confdefs.h"
5404 #include <stdio.h>
5405           #define a(b,c...) printf(b,##c)
5406 int main() {
5407 a("foo");a("%s","bar");a("%s%s","baz","quux");
5408 ; return 0; }
5409 EOF
5410 if { (eval echo configure:5411: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5411   rm -rf conftest*
5412   ac_cv_cpp_variadic_macros=yes
5413 else
5414   echo "configure: failed program was:" >&5
5415   cat conftest.$ac_ext >&5
5416   rm -rf conftest*
5417   ac_cv_cpp_variadic_macros=no
5418 fi
5419 rm -f conftest*
5420 fi
5421
5422 echo "$ac_t""$ac_cv_cpp_variadic_macros" 1>&6
5423 if test x"$ac_cv_cpp_variadic_macros" != x"no"; then
5424     cat >> confdefs.h <<\EOF
5425 #define HAVE_VARIADIC_MACROS 1
5426 EOF
5427
5428 fi
5429
5430 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
5431 echo "configure:5432: checking __attribute__ ((aligned ())) support" >&5
5432 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
5433   echo $ac_n "(cached) $ac_c" 1>&6
5434 else
5435   ac_cv_c_attribute_aligned=0
5436         CFLAGS="${save_CFLAGS} -Werror"
5437     for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
5438         cat > conftest.$ac_ext <<EOF
5439 #line 5440 "configure"
5440 #include "confdefs.h"
5441
5442 int main() {
5443 static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;
5444 ; return 0; }
5445 EOF
5446 if { (eval echo configure:5447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5447   rm -rf conftest*
5448   ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try
5449 else
5450   echo "configure: failed program was:" >&5
5451   cat conftest.$ac_ext >&5
5452 fi
5453 rm -f conftest*
5454     done
5455 fi
5456
5457 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
5458 if test x"$ac_cv_c_attribute_aligned" != x"0"; then
5459     cat >> confdefs.h <<EOF
5460 #define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned
5461 EOF
5462
5463 fi
5464
5465 case x"${target_cpu}" in
5466   x)
5467     ARCH=unknown
5468     ;;
5469   *)
5470     ARCH="${target_cpu}"
5471     ;;
5472 esac
5473
5474 BUILTINS="${BUILTINS} idct idctclassic motion imdct downmix mpeg_adec ac3_adec mpeg_vdec"
5475 PLUGINS="${PLUGINS} dummy null rc logger mpeg_es mpeg_audio mpeg_ps mpeg_ts file udp http ipv4 memcpy lpcm_adec ac3_spdif spudec filter_deinterlace filter_invert filter_wall filter_transform filter_distort filter_clone filter_crop fx_scope chroma_i420_rgb chroma_i420_yuy2 chroma_i422_yuy2 chroma_i420_ymga"
5476
5477 MMX_MODULES="memcpymmx idctmmx motionmmx chroma_i420_rgb_mmx chroma_i420_yuy2_mmx chroma_i422_yuy2_mmx chroma_i420_ymga_mmx"
5478 MMXEXT_MODULES="memcpymmxext idctmmxext motionmmxext"
5479 THREEDNOW_MODULES="memcpy3dn imdct3dn downmix3dn"
5480 SSE_MODULES="imdctsse downmixsse"
5481 ALTIVEC_MODULES="idctaltivec motionaltivec memcpyaltivec"
5482
5483 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
5484 echo "configure:5485: checking if \$CC groks MMX inline assembly" >&5
5485 if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
5486   echo $ac_n "(cached) $ac_c" 1>&6
5487 else
5488   CFLAGS="${save_CFLAGS}"
5489      cat > conftest.$ac_ext <<EOF
5490 #line 5491 "configure"
5491 #include "confdefs.h"
5492
5493 int main() {
5494 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
5495 ; return 0; }
5496 EOF
5497 if { (eval echo configure:5498: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5498   rm -rf conftest*
5499   ac_cv_mmx_inline=yes
5500 else
5501   echo "configure: failed program was:" >&5
5502   cat conftest.$ac_ext >&5
5503   rm -rf conftest*
5504   ac_cv_mmx_inline=no
5505 fi
5506 rm -f conftest*
5507 fi
5508
5509 echo "$ac_t""$ac_cv_mmx_inline" 1>&6
5510 if test x"$ac_cv_mmx_inline" != x"no"; then
5511   ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
5512 fi
5513
5514 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
5515 echo "configure:5516: checking if \$CC groks MMX EXT inline assembly" >&5
5516 if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
5517   echo $ac_n "(cached) $ac_c" 1>&6
5518 else
5519   CFLAGS="${save_CFLAGS}"
5520      cat > conftest.$ac_ext <<EOF
5521 #line 5522 "configure"
5522 #include "confdefs.h"
5523
5524 int main() {
5525 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
5526 ; return 0; }
5527 EOF
5528 if { (eval echo configure:5529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5529   rm -rf conftest*
5530   ac_cv_mmxext_inline=yes
5531 else
5532   echo "configure: failed program was:" >&5
5533   cat conftest.$ac_ext >&5
5534   rm -rf conftest*
5535   ac_cv_mmxext_inline=no
5536 fi
5537 rm -f conftest*
5538 fi
5539
5540 echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
5541 if test x"$ac_cv_mmxext_inline" != x"no"; then
5542   ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
5543 fi
5544
5545 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
5546 echo "configure:5547: checking if \$CC groks 3D Now! inline assembly" >&5
5547 if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
5548   echo $ac_n "(cached) $ac_c" 1>&6
5549 else
5550   CFLAGS="${save_CFLAGS}"
5551      cat > conftest.$ac_ext <<EOF
5552 #line 5553 "configure"
5553 #include "confdefs.h"
5554
5555 int main() {
5556 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
5557 ; return 0; }
5558 EOF
5559 if { (eval echo configure:5560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5560   rm -rf conftest*
5561   ac_cv_3dnow_inline=yes
5562 else
5563   echo "configure: failed program was:" >&5
5564   cat conftest.$ac_ext >&5
5565   rm -rf conftest*
5566   ac_cv_3dnow_inline=no
5567 fi
5568 rm -f conftest*
5569 fi
5570
5571 echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
5572 if test x"$ac_cv_3dnow_inline" != x"no"; then
5573   cat >> confdefs.h <<\EOF
5574 #define CAN_COMPILE_3DNOW 1
5575 EOF
5576
5577   ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
5578 fi
5579
5580 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
5581 echo "configure:5582: checking if \$CC groks SSE inline assembly" >&5
5582 if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then
5583   echo $ac_n "(cached) $ac_c" 1>&6
5584 else
5585   CFLAGS="${save_CFLAGS}"
5586      cat > conftest.$ac_ext <<EOF
5587 #line 5588 "configure"
5588 #include "confdefs.h"
5589
5590 int main() {
5591 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
5592 ; return 0; }
5593 EOF
5594 if { (eval echo configure:5595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5595   rm -rf conftest*
5596   ac_cv_sse_inline=yes
5597 else
5598   echo "configure: failed program was:" >&5
5599   cat conftest.$ac_ext >&5
5600   rm -rf conftest*
5601   ac_cv_sse_inline=no
5602 fi
5603 rm -f conftest*
5604 fi
5605
5606 echo "$ac_t""$ac_cv_sse_inline" 1>&6
5607 if test x"$ac_cv_sse_inline" != x"no" -a x$SYS != xmingw32; then
5608   cat >> confdefs.h <<\EOF
5609 #define CAN_COMPILE_SSE 1
5610 EOF
5611
5612   ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
5613 fi
5614
5615 # don't try to grok AltiVec with native mingw32 it doesn't work right now
5616 # we should be able to remove this test with future versions of mingw32
5617 if test x$SYS != xmingw32; then
5618 echo $ac_n "checking if \$CC groks AltiVec inline assembly""... $ac_c" 1>&6
5619 echo "configure:5620: checking if \$CC groks AltiVec inline assembly" >&5
5620 if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
5621   echo $ac_n "(cached) $ac_c" 1>&6
5622 else
5623   CFLAGS="${save_CFLAGS}"
5624      cat > conftest.$ac_ext <<EOF
5625 #line 5626 "configure"
5626 #include "confdefs.h"
5627
5628 int main() {
5629 asm volatile("vperm 0,1,2,3");
5630 ; return 0; }
5631 EOF
5632 if { (eval echo configure:5633: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5633   rm -rf conftest*
5634   ac_cv_altivec_inline=yes
5635 else
5636   echo "configure: failed program was:" >&5
5637   cat conftest.$ac_ext >&5
5638   rm -rf conftest*
5639   CFLAGS="$save_CFLAGS -Wa,-m7400"
5640           cat > conftest.$ac_ext <<EOF
5641 #line 5642 "configure"
5642 #include "confdefs.h"
5643
5644 int main() {
5645 asm volatile("vperm 0,1,2,3");
5646 ; return 0; }
5647 EOF
5648 if { (eval echo configure:5649: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5649   rm -rf conftest*
5650   ac_cv_altivec_inline="-Wa,-m7400"
5651 else
5652   echo "configure: failed program was:" >&5
5653   cat conftest.$ac_ext >&5
5654   rm -rf conftest*
5655   ac_cv_altivec_inline=no
5656 fi
5657 rm -f conftest*
5658          
5659 fi
5660 rm -f conftest*
5661 fi
5662
5663 echo "$ac_t""$ac_cv_altivec_inline" 1>&6
5664 if test x"$ac_cv_altivec_inline" != x"no"; then
5665   cat >> confdefs.h <<\EOF
5666 #define CAN_COMPILE_ALTIVEC 1
5667 EOF
5668
5669   if test x"$ac_cv_altivec_inline" != x"yes"; then
5670     idctaltivec_CFLAGS="$idctaltivec_CFLAGS $ac_cv_altivec_inline"
5671     motionaltivec_CFLAGS="$motionaltivec_CFLAGS $ac_cv_altivec_inline"
5672     memcpyaltivec_CFLAGS="$memcpyaltivec_CFLAGS $ac_cv_altivec_inline"
5673     vlc_CFLAGS="$vlc_CFLAGS $ac_cv_altivec_inline"
5674   fi
5675   ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5676 fi
5677
5678 echo $ac_n "checking if \$CC groks AltiVec C extensions""... $ac_c" 1>&6
5679 echo "configure:5680: checking if \$CC groks AltiVec C extensions" >&5
5680 if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
5681   echo $ac_n "(cached) $ac_c" 1>&6
5682 else
5683   CFLAGS="$save_CFLAGS -faltivec"
5684      # Darwin test
5685      cat > conftest.$ac_ext <<EOF
5686 #line 5687 "configure"
5687 #include "confdefs.h"
5688
5689 int main() {
5690 vec_mtvscr((vector unsigned int)(0));
5691 ; return 0; }
5692 EOF
5693 if { (eval echo configure:5694: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5694   rm -rf conftest*
5695   ac_cv_c_altivec=-faltivec
5696 else
5697   echo "configure: failed program was:" >&5
5698   cat conftest.$ac_ext >&5
5699   rm -rf conftest*
5700   
5701         # Linux/PPC test
5702         CFLAGS="$save_CFLAGS $idctaltivec_CFLAGS -fvec"
5703         cat > conftest.$ac_ext <<EOF
5704 #line 5705 "configure"
5705 #include "confdefs.h"
5706
5707 int main() {
5708 vec_mtvscr((vector unsigned int)(0));
5709 ; return 0; }
5710 EOF
5711 if { (eval echo configure:5712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5712   rm -rf conftest*
5713   ac_cv_c_altivec="-fvec"
5714 else
5715   echo "configure: failed program was:" >&5
5716   cat conftest.$ac_ext >&5
5717   rm -rf conftest*
5718   ac_cv_c_altivec=no
5719 fi
5720 rm -f conftest*
5721         
5722 fi
5723 rm -f conftest*
5724     
5725 fi
5726
5727 echo "$ac_t""$ac_cv_c_altivec" 1>&6
5728 if test x"$ac_cv_c_altivec" != x"no"; then
5729   cat >> confdefs.h <<\EOF
5730 #define CAN_COMPILE_C_ALTIVEC 1
5731 EOF
5732
5733   idctaltivec_CFLAGS="$idctaltivec_CFLAGS $ac_cv_c_altivec"
5734   motionaltivec_CFLAGS="$motionaltivec_CFLAGS $ac_cv_c_altivec"
5735   memcpyaltivec_CFLAGS="$memcpyaltivec_CFLAGS $ac_cv_c_altivec"
5736   vlc_CFLAGS="$vlc_CFLAGS $ac_cv_c_altivec"
5737   ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5738 fi
5739
5740 echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
5741 echo "configure:5742: checking if linker needs -framework vecLib" >&5
5742 if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
5743   echo $ac_n "(cached) $ac_c" 1>&6
5744 else
5745   LDFLAGS="$vlc_LDFLAGS -framework vecLib"
5746      cat > conftest.$ac_ext <<EOF
5747 #line 5748 "configure"
5748 #include "confdefs.h"
5749
5750 int main() {
5751
5752 ; return 0; }
5753 EOF
5754 if { (eval echo configure:5755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5755   rm -rf conftest*
5756   ac_cv_ld_altivec=yes
5757 else
5758   echo "configure: failed program was:" >&5
5759   cat conftest.$ac_ext >&5
5760   rm -rf conftest*
5761   ac_cv_ld_altivec=no
5762 fi
5763 rm -f conftest*
5764     
5765 fi
5766
5767 echo "$ac_t""$ac_cv_ld_altivec" 1>&6
5768 if test x"$ac_cv_ld_altivec" != x"no"; then
5769   idctaltivec_LDFLAGS="${idctaltivec_LDFLAGS} -framework vecLib"
5770   motionaltivec_LDFLAGS="${motionaltivec_LDFLAGS} -framework vecLib"
5771   memcpyaltivec_LDFLAGS="${memcpyaltivec_LDFLAGS} -framework vecLib"
5772   vlc_LDFLAGS="${vlc_LDFLAGS} -framework vecLib"
5773 fi
5774 fi # end if mingw32
5775
5776
5777 # Check whether --with- or --without- was given.
5778 if test "${with_+set}" = set; then
5779   withval="$with_"
5780   :
5781 fi
5782
5783 # Check whether --with- or --without- was given.
5784 if test "${with_+set}" = set; then
5785   withval="$with_"
5786   :
5787 fi
5788
5789
5790 # Check whether --with-tuning or --without-tuning was given.
5791 if test "${with_tuning+set}" = set; then
5792   withval="$with_tuning"
5793   :
5794 fi
5795
5796 if test "x$with_tuning" != "x"; then
5797     TUNING="$with_tuning"
5798 else
5799     if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xi486 -o x${target_cpu} = xi386; then TUNING="pentiumpro"
5800     else
5801         if test x${target_cpu} = xpowerpc; then TUNING="750"; fi
5802     fi
5803 fi
5804
5805 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xx86 -o x${target_cpu} = xi386
5806 then
5807     ARCH="${ARCH} mmx"
5808     PLUGINS="${PLUGINS} ${ACCEL_MODULES}"
5809 fi
5810
5811 # Check whether --enable-optimizations or --disable-optimizations was given.
5812 if test "${enable_optimizations+set}" = set; then
5813   enableval="$enable_optimizations"
5814    if test x$enable_optimizations = xno; then OPTIMS=0; fi 
5815 else
5816    OPTIMS=1 
5817 fi
5818
5819
5820 # Check whether --enable-altivec or --disable-altivec was given.
5821 if test "${enable_altivec+set}" = set; then
5822   enableval="$enable_altivec"
5823    if test x$enable_altivec = xyes; then ARCH="${ARCH} altivec";
5824     BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi 
5825 else
5826    if test x${target_cpu} = xpowerpc; then ARCH="${ARCH} altivec";
5827     BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi 
5828 fi
5829
5830
5831 DEBUG=0
5832 # Check whether --enable-debug or --disable-debug was given.
5833 if test "${enable_debug+set}" = set; then
5834   enableval="$enable_debug"
5835    if test x$enable_debug = xyes; then DEBUG=1; fi 
5836 fi
5837
5838
5839 RELEASE=0
5840 # Check whether --enable-release or --disable-release was given.
5841 if test "${enable_release+set}" = set; then
5842   enableval="$enable_release"
5843    if test x$enable_release = xyes; then RELEASE=1; fi 
5844 else
5845    VERSION="${VERSION}_`date +%Y-%m-%d`" 
5846 fi
5847
5848
5849
5850 # Check whether --with- or --without- was given.
5851 if test "${with_+set}" = set; then
5852   withval="$with_"
5853   :
5854 fi
5855
5856
5857 # Check whether --enable-dvd or --disable-dvd was given.
5858 if test "${enable_dvd+set}" = set; then
5859   enableval="$enable_dvd"
5860   :
5861 fi
5862
5863 if test "x$enable_dvd" != "xno"
5864 then
5865   # Check whether --with-dvdcss or --without-dvdcss was given.
5866 if test "${with_dvdcss+set}" = set; then
5867   withval="$with_dvdcss"
5868   :
5869 fi
5870
5871   # Check whether --with-dvdcss-tree or --without-dvdcss-tree was given.
5872 if test "${with_dvdcss_tree+set}" = set; then
5873   withval="$with_dvdcss_tree"
5874   :
5875 fi
5876
5877   case "x$with_dvdcss" in
5878   x|xyes)
5879     if test "x$with_dvdcss_tree" = x
5880     then
5881       for ac_hdr in dvdcss/dvdcss.h
5882 do
5883 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5884 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5885 echo "configure:5886: checking for $ac_hdr" >&5
5886 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5887   echo $ac_n "(cached) $ac_c" 1>&6
5888 else
5889   cat > conftest.$ac_ext <<EOF
5890 #line 5891 "configure"
5891 #include "confdefs.h"
5892 #include <$ac_hdr>
5893 EOF
5894 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5895 { (eval echo configure:5896: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5896 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5897 if test -z "$ac_err"; then
5898   rm -rf conftest*
5899   eval "ac_cv_header_$ac_safe=yes"
5900 else
5901   echo "$ac_err" >&5
5902   echo "configure: failed program was:" >&5
5903   cat conftest.$ac_ext >&5
5904   rm -rf conftest*
5905   eval "ac_cv_header_$ac_safe=no"
5906 fi
5907 rm -f conftest*
5908 fi
5909 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5910   echo "$ac_t""yes" 1>&6
5911     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5912   cat >> confdefs.h <<EOF
5913 #define $ac_tr_hdr 1
5914 EOF
5915   PLUGINS="${PLUGINS} dvd"
5916           dvd_LDFLAGS="${dvd_LDFLAGS} -ldvdcss" 
5917 else
5918   echo "$ac_t""no" 1>&6
5919 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
5920           { echo "configure: error: cannot find libdvdcss headers" 1>&2; exit 1; } 
5921 fi
5922 done
5923
5924     else
5925       echo $ac_n "checking for libdvdcss.a in ${with_dvdcss_tree}""... $ac_c" 1>&6
5926 echo "configure:5927: checking for libdvdcss.a in ${with_dvdcss_tree}" >&5
5927       real_dvdcss_tree="`cd ${with_dvdcss_tree} 2>/dev/null && pwd`"
5928       if test "x$real_dvdcss_tree" = x
5929       then
5930                 echo "$ac_t""no" 1>&6
5931         { echo "configure: error: cannot cd to ${with_dvdcss_tree}" 1>&2; exit 1; }
5932       fi
5933       if test -f "${real_dvdcss_tree}/src/.libs/libdvdcss.a"
5934       then
5935                 echo "$ac_t""${real_dvdcss_tree}/src/.libs/libdvdcss.a" 1>&6
5936         BUILTINS="${BUILTINS} dvd"
5937         dvd_LDFLAGS="${dvd_LDFLAGS} ${real_dvdcss_tree}/src/.libs/libdvdcss.a"
5938         dvd_CFLAGS="${dvd_CFLAGS} -I${real_dvdcss_tree}/src"
5939       else
5940                 echo "$ac_t""no" 1>&6
5941         { 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; }
5942       fi
5943     fi
5944   ;;
5945   xno)
5946         PLUGINS="${PLUGINS} dvd"
5947     dvd_CFLAGS="${dvd_CFLAGS} -DGOD_DAMN_DMCA"
5948     dvd_LDFLAGS="${dvd_LDFLAGS} -ldl"
5949   ;;
5950   *)
5951     echo $ac_n "checking for dvdcss headers in ${with_dvdcss}""... $ac_c" 1>&6
5952 echo "configure:5953: checking for dvdcss headers in ${with_dvdcss}" >&5
5953     if test -f ${with_dvdcss}/include/dvdcss/dvdcss.h
5954     then
5955             echo "$ac_t""yes" 1>&6
5956       PLUGINS="${PLUGINS} dvd"
5957       dvd_LDFLAGS="${dvd_LDFLAGS} -L${with_dvdcss}/lib -ldvdcss"
5958       dvd_CFLAGS="${dvd_CFLAGS} -I${with_dvdcss}/include"
5959     else
5960             echo "$ac_t""no" 1>&6
5961       { echo "configure: error: cannot find ${with_dvdcss}/include/dvdcss/dvdcss.h" 1>&2; exit 1; }
5962     fi
5963   ;;
5964   esac
5965 fi
5966
5967 # Check whether --enable-dvdread or --disable-dvdread was given.
5968 if test "${enable_dvdread+set}" = set; then
5969   enableval="$enable_dvdread"
5970   :
5971 fi
5972
5973 if test "x$enable_dvdread" != "xno"
5974 then
5975   # Check whether --with-dvdread or --without-dvdread was given.
5976 if test "${with_dvdread+set}" = set; then
5977   withval="$with_dvdread"
5978   :
5979 fi
5980
5981   if test "x$with_dvdread" = x
5982   then
5983     test_LDFLAGS=""
5984     test_CFLAGS=""
5985   else
5986     test_LDFLAGS="-L${with_dvdread}/lib"
5987     test_CFLAGS="-I${with_dvdread}/include"
5988   fi
5989   CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
5990   for ac_hdr in dvdread/dvd_reader.h
5991 do
5992 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5993 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5994 echo "configure:5995: checking for $ac_hdr" >&5
5995 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5996   echo $ac_n "(cached) $ac_c" 1>&6
5997 else
5998   cat > conftest.$ac_ext <<EOF
5999 #line 6000 "configure"
6000 #include "confdefs.h"
6001 #include <$ac_hdr>
6002 EOF
6003 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6004 { (eval echo configure:6005: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6005 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6006 if test -z "$ac_err"; then
6007   rm -rf conftest*
6008   eval "ac_cv_header_$ac_safe=yes"
6009 else
6010   echo "$ac_err" >&5
6011   echo "configure: failed program was:" >&5
6012   cat conftest.$ac_ext >&5
6013   rm -rf conftest*
6014   eval "ac_cv_header_$ac_safe=no"
6015 fi
6016 rm -f conftest*
6017 fi
6018 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6019   echo "$ac_t""yes" 1>&6
6020     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6021   cat >> confdefs.h <<EOF
6022 #define $ac_tr_hdr 1
6023 EOF
6024  
6025      CFLAGS="${save_CFLAGS}"
6026      cat > conftest.$ac_ext <<EOF
6027 #line 6028 "configure"
6028 #include "confdefs.h"
6029 #include <dvdread/dvd_reader.h>
6030 int main() {
6031 void foo() { int i=DVD_VIDEO_LB_LEN; }
6032 ; return 0; }
6033 EOF
6034 if { (eval echo configure:6035: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6035   rm -rf conftest*
6036   
6037           PLUGINS="${PLUGINS} dvdread"
6038           dvdread_LDFLAGS="${dvdread_LDFLAGS} ${test_LDFLAGS} -ldvdread"
6039           dvdread_CFLAGS="${dvdread_CFLAGS} ${test_CFLAGS}"
6040         
6041 else
6042   echo "configure: failed program was:" >&5
6043   cat conftest.$ac_ext >&5
6044   rm -rf conftest*
6045   
6046           if test "x$enable_dvdread" != x
6047           then
6048             { 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; }
6049           fi
6050         
6051 fi
6052 rm -f conftest*
6053   
6054 else
6055   echo "$ac_t""no" 1>&6
6056 if test "x$enable_dvdread" != x
6057     then
6058       if test "x$with_dvdread" != x
6059       then
6060         { echo "configure: error: Cannot find dvdread/dvd_reader.h in ${with_dvdread}/include" 1>&2; exit 1; }
6061       else
6062         { echo "configure: error: Cannot find dvdread/dvd_reader.h" 1>&2; exit 1; }
6063       fi
6064     fi
6065   
6066 fi
6067 done
6068
6069   CPPFLAGS="$save_CPPFLAGS"
6070 fi
6071
6072 # Check whether --enable-dvbpsi or --disable-dvbpsi was given.
6073 if test "${enable_dvbpsi+set}" = set; then
6074   enableval="$enable_dvbpsi"
6075   :
6076 fi
6077
6078 if test "x$enable_dvbpsi" != "xno"
6079 then
6080   # Check whether --with-dvbpsi or --without-dvbpsi was given.
6081 if test "${with_dvbpsi+set}" = set; then
6082   withval="$with_dvbpsi"
6083   :
6084 fi
6085
6086   if test "x$with_dvbpsi" = x
6087   then
6088     test_LDFLAGS=""
6089     test_CFLAGS=""
6090   else
6091     test_LDFLAGS="-L${with_dvbpsi}/lib"
6092     test_CFLAGS="-I${with_dvbpsi}/include"
6093   fi
6094   CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
6095   ac_safe=`echo "dvbpsi/dr.h" | sed 'y%./+-%__p_%'`
6096 echo $ac_n "checking for dvbpsi/dr.h""... $ac_c" 1>&6
6097 echo "configure:6098: checking for dvbpsi/dr.h" >&5
6098 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6099   echo $ac_n "(cached) $ac_c" 1>&6
6100 else
6101   cat > conftest.$ac_ext <<EOF
6102 #line 6103 "configure"
6103 #include "confdefs.h"
6104 #include <dvbpsi/dr.h>
6105 EOF
6106 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6107 { (eval echo configure:6108: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6108 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6109 if test -z "$ac_err"; then
6110   rm -rf conftest*
6111   eval "ac_cv_header_$ac_safe=yes"
6112 else
6113   echo "$ac_err" >&5
6114   echo "configure: failed program was:" >&5
6115   cat conftest.$ac_ext >&5
6116   rm -rf conftest*
6117   eval "ac_cv_header_$ac_safe=no"
6118 fi
6119 rm -f conftest*
6120 fi
6121 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6122   echo "$ac_t""yes" 1>&6
6123   
6124     PLUGINS="${PLUGINS} mpeg_ts_dvbpsi"
6125     mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} ${test_LDFLAGS} -ldvbpsi"
6126     mpeg_ts_dvbpsi_CFLAGS="${mpeg_ts_dvbpsi_CFLAGS} ${test_CFLAGS}"
6127     
6128 else
6129   echo "$ac_t""no" 1>&6
6130
6131     if test "x$enable_dvbpsi" != x
6132     then
6133       { 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; }
6134     fi
6135   
6136 fi
6137
6138   CPPFLAGS="$save_CPPFLAGS"
6139 fi
6140  
6141 # Check whether --enable-vcd or --disable-vcd was given.
6142 if test "${enable_vcd+set}" = set; then
6143   enableval="$enable_vcd"
6144   :
6145 fi
6146
6147
6148 if test x$enable_vcd != xno
6149 then
6150   cat > conftest.$ac_ext <<EOF
6151 #line 6152 "configure"
6152 #include "confdefs.h"
6153 #include <linux/cdrom.h>
6154 EOF
6155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6156   egrep "cdrom_msf0" >/dev/null 2>&1; then
6157   rm -rf conftest*
6158   
6159     PLUGINS="${PLUGINS} vcd"
6160   
6161 fi
6162 rm -f conftest*
6163
6164   
6165   cat > conftest.$ac_ext <<EOF
6166 #line 6167 "configure"
6167 #include "confdefs.h"
6168 #include <sys/cdio.h>
6169 EOF
6170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6171   egrep "ioc_toc_header " >/dev/null 2>&1; then
6172   rm -rf conftest*
6173   
6174     PLUGINS="${PLUGINS} vcd"
6175     cat >> confdefs.h <<\EOF
6176 #define HAVE_IOC_TOC_HEADER_IN_SYS_CDIO_H 1
6177 EOF
6178
6179   
6180 fi
6181 rm -f conftest*
6182
6183   
6184   if test "x${SYS}" = "xbsdi"
6185   then
6186     PLUGINS="${PLUGINS} vcd"
6187   fi
6188
6189   if test "x${SYS}" = "xdarwin"
6190   then
6191     # No need to add vcd to PLUGINS, Darwin is already based on FreeBSD
6192     vcd_LDFLAGS="${vcd_LDFLAGS} -framework IOKit -framework CoreFoundation" 
6193   fi
6194 fi
6195
6196 # Check whether --enable-satellite or --disable-satellite was given.
6197 if test "${enable_satellite+set}" = set; then
6198   enableval="$enable_satellite"
6199    if test x$enable_satellite = xyes
6200     then
6201       PLUGINS="${PLUGINS} satellite"
6202     fi
6203 fi
6204
6205
6206 if test x$SYS != xnto && test "x$SYS" != "xmingw32"
6207 then
6208   CFLAGS="$save_CFLAGS"
6209   echo $ac_n "checking for inet_pton""... $ac_c" 1>&6
6210 echo "configure:6211: checking for inet_pton" >&5
6211 if eval "test \"`echo '$''{'ac_cv_func_inet_pton'+set}'`\" = set"; then
6212   echo $ac_n "(cached) $ac_c" 1>&6
6213 else
6214   cat > conftest.$ac_ext <<EOF
6215 #line 6216 "configure"
6216 #include "confdefs.h"
6217 /* System header to define __stub macros and hopefully few prototypes,
6218     which can conflict with char inet_pton(); below.  */
6219 #include <assert.h>
6220 /* Override any gcc2 internal prototype to avoid an error.  */
6221 /* We use char because int might match the return type of a gcc2
6222     builtin and then its argument prototype would still apply.  */
6223 char inet_pton();
6224
6225 int main() {
6226
6227 /* The GNU C library defines this for functions which it implements
6228     to always fail with ENOSYS.  Some functions are actually named
6229     something starting with __ and the normal name is an alias.  */
6230 #if defined (__stub_inet_pton) || defined (__stub___inet_pton)
6231 choke me
6232 #else
6233 inet_pton();
6234 #endif
6235
6236 ; return 0; }
6237 EOF
6238 if { (eval echo configure:6239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6239   rm -rf conftest*
6240   eval "ac_cv_func_inet_pton=yes"
6241 else
6242   echo "configure: failed program was:" >&5
6243   cat conftest.$ac_ext >&5
6244   rm -rf conftest*
6245   eval "ac_cv_func_inet_pton=no"
6246 fi
6247 rm -f conftest*
6248 fi
6249
6250 if eval "test \"`echo '$ac_cv_func_'inet_pton`\" = yes"; then
6251   echo "$ac_t""yes" 1>&6
6252   PLUGINS="${PLUGINS} ipv6"
6253 else
6254   echo "$ac_t""no" 1>&6
6255 fi
6256
6257 fi
6258 if test "x$SYS" = "xmingw32"
6259 then
6260   echo $ac_n "checking for getaddrinfo in ws2tcpip.h""... $ac_c" 1>&6
6261 echo "configure:6262: checking for getaddrinfo in ws2tcpip.h" >&5
6262   cat > conftest.$ac_ext <<EOF
6263 #line 6264 "configure"
6264 #include "confdefs.h"
6265 #include <ws2tcpip.h>
6266 EOF
6267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6268   egrep "addrinfo" >/dev/null 2>&1; then
6269   rm -rf conftest*
6270   echo "$ac_t""yes" 1>&6
6271     PLUGINS="${PLUGINS} ipv6"
6272 else
6273   rm -rf conftest*
6274   echo "$ac_t""no" 1>&6
6275 fi
6276 rm -f conftest*
6277
6278 fi
6279
6280 # Check whether --enable-avi or --disable-avi was given.
6281 if test "${enable_avi+set}" = set; then
6282   enableval="$enable_avi"
6283   :
6284 fi
6285
6286 if test x$enable_avi != xno
6287 then
6288   PLUGINS="${PLUGINS} avi"
6289 fi
6290
6291
6292 # Check whether --with- or --without- was given.
6293 if test "${with_+set}" = set; then
6294   withval="$with_"
6295   :
6296 fi
6297
6298
6299 # Check whether --enable-mad or --disable-mad was given.
6300 if test "${enable_mad+set}" = set; then
6301   enableval="$enable_mad"
6302   :
6303 fi
6304
6305 if test x$enable_mad = xyes
6306 then
6307   # Check whether --with-mad or --without-mad was given.
6308 if test "${with_mad+set}" = set; then
6309   withval="$with_mad"
6310   :
6311 fi
6312
6313   if test "x$with_mad" != "xno" -a "x$with_mad" != "x"
6314   then
6315     mad_CFLAGS="${mad_CFLAGS} -I$with_mad/include"
6316     mad_LDFLAGS="${mad_LDFLAGS} -L$with_mad/lib"
6317   fi
6318
6319   # Check whether --with-mad-tree or --without-mad-tree was given.
6320 if test "${with_mad_tree+set}" = set; then
6321   withval="$with_mad_tree"
6322   :
6323 fi
6324
6325   if test "x$with_mad_tree" != "xno" -a "x$with_mad_tree" != "x"
6326   then
6327     real_mad_tree="`cd ${with_mad_tree} 2>/dev/null && pwd`"
6328     if test "x$real_mad_tree" = x
6329     then
6330             echo "$ac_t""no" 1>&6
6331       { echo "configure: error: ${with_mad_tree} directory doesn't exist" 1>&2; exit 1; }
6332     fi
6333         echo $ac_n "checking for mad.h in ${real_mad_tree}/libmad""... $ac_c" 1>&6
6334 echo "configure:6335: checking for mad.h in ${real_mad_tree}/libmad" >&5
6335     if test -f ${real_mad_tree}/libmad/mad.h
6336     then
6337       echo "$ac_t""yes" 1>&6
6338       mad_CFLAGS="${mad_CFLAGS} -I${real_mad_tree}/libmad"
6339       mad_LDFLAGS="${mad_LDFLAGS} -L${real_mad_tree}/libmad/.libs"
6340       save_LDFLAGS=$LDFLAGS
6341       LDFLAGS=$mad_LDFLAGS
6342       echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6343 echo "configure:6344: checking for mad_bit_init in -lmad" >&5
6344 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6345 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6346   echo $ac_n "(cached) $ac_c" 1>&6
6347 else
6348   ac_save_LIBS="$LIBS"
6349 LIBS="-lmad  $LIBS"
6350 cat > conftest.$ac_ext <<EOF
6351 #line 6352 "configure"
6352 #include "confdefs.h"
6353 /* Override any gcc2 internal prototype to avoid an error.  */
6354 /* We use char because int might match the return type of a gcc2
6355     builtin and then its argument prototype would still apply.  */
6356 char mad_bit_init();
6357
6358 int main() {
6359 mad_bit_init()
6360 ; return 0; }
6361 EOF
6362 if { (eval echo configure:6363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6363   rm -rf conftest*
6364   eval "ac_cv_lib_$ac_lib_var=yes"
6365 else
6366   echo "configure: failed program was:" >&5
6367   cat conftest.$ac_ext >&5
6368   rm -rf conftest*
6369   eval "ac_cv_lib_$ac_lib_var=no"
6370 fi
6371 rm -f conftest*
6372 LIBS="$ac_save_LIBS"
6373
6374 fi
6375 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6376   echo "$ac_t""yes" 1>&6
6377   
6378         BUILTINS="${BUILTINS} mad"
6379         mad_LDFLAGS="${mad_LDFLAGS} -lmad"
6380         
6381 else
6382   echo "$ac_t""no" 1>&6
6383  { echo "configure: error: the specified tree hasn't been compiled " 1>&2; exit 1; }
6384       
6385 fi
6386
6387       LDFLAGS=$save_LDFLAGS
6388     else
6389       echo "$ac_t""no" 1>&6
6390       { echo "configure: error: the specified tree doesn't have mad.h" 1>&2; exit 1; }
6391     fi
6392   else
6393     CFLAGS="$vlc_CFLAGS $mad_CFLAGS"
6394     LDFLAGS="$vlc_LDFLAGS $mad_LDFLAGS"
6395     for ac_hdr in mad.h
6396 do
6397 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6398 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6399 echo "configure:6400: checking for $ac_hdr" >&5
6400 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6401   echo $ac_n "(cached) $ac_c" 1>&6
6402 else
6403   cat > conftest.$ac_ext <<EOF
6404 #line 6405 "configure"
6405 #include "confdefs.h"
6406 #include <$ac_hdr>
6407 EOF
6408 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6409 { (eval echo configure:6410: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6410 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6411 if test -z "$ac_err"; then
6412   rm -rf conftest*
6413   eval "ac_cv_header_$ac_safe=yes"
6414 else
6415   echo "$ac_err" >&5
6416   echo "configure: failed program was:" >&5
6417   cat conftest.$ac_ext >&5
6418   rm -rf conftest*
6419   eval "ac_cv_header_$ac_safe=no"
6420 fi
6421 rm -f conftest*
6422 fi
6423 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6424   echo "$ac_t""yes" 1>&6
6425     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6426   cat >> confdefs.h <<EOF
6427 #define $ac_tr_hdr 1
6428 EOF
6429  
6430 else
6431   echo "$ac_t""no" 1>&6
6432 { echo "configure: error: Cannot find development headers for libmad..." 1>&2; exit 1; } 
6433 fi
6434 done
6435
6436     echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6437 echo "configure:6438: checking for mad_bit_init in -lmad" >&5
6438 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6439 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6440   echo $ac_n "(cached) $ac_c" 1>&6
6441 else
6442   ac_save_LIBS="$LIBS"
6443 LIBS="-lmad  $LIBS"
6444 cat > conftest.$ac_ext <<EOF
6445 #line 6446 "configure"
6446 #include "confdefs.h"
6447 /* Override any gcc2 internal prototype to avoid an error.  */
6448 /* We use char because int might match the return type of a gcc2
6449     builtin and then its argument prototype would still apply.  */
6450 char mad_bit_init();
6451
6452 int main() {
6453 mad_bit_init()
6454 ; return 0; }
6455 EOF
6456 if { (eval echo configure:6457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6457   rm -rf conftest*
6458   eval "ac_cv_lib_$ac_lib_var=yes"
6459 else
6460   echo "configure: failed program was:" >&5
6461   cat conftest.$ac_ext >&5
6462   rm -rf conftest*
6463   eval "ac_cv_lib_$ac_lib_var=no"
6464 fi
6465 rm -f conftest*
6466 LIBS="$ac_save_LIBS"
6467
6468 fi
6469 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6470   echo "$ac_t""yes" 1>&6
6471   
6472       PLUGINS="${PLUGINS} mad"
6473       mad_LDFLAGS="${mad_LDFLAGS} -lmad" 
6474 else
6475   echo "$ac_t""no" 1>&6
6476  { echo "configure: error: Cannot find libmad library..." 1>&2; exit 1; } 
6477 fi
6478
6479   fi
6480 fi
6481
6482 # Check whether --enable-ffmpeg or --disable-ffmpeg was given.
6483 if test "${enable_ffmpeg+set}" = set; then
6484   enableval="$enable_ffmpeg"
6485   :
6486 fi
6487
6488 if test "x$enable_ffmpeg" = "xyes"
6489 then
6490   # Check whether --with-ffmpeg or --without-ffmpeg was given.
6491 if test "${with_ffmpeg+set}" = set; then
6492   withval="$with_ffmpeg"
6493   :
6494 fi
6495
6496   if test "x$with_ffmpeg" != "xno" -a "x$with_ffmpeg" != "x"
6497   then
6498     ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I$with_ffmpeg/include/libffmpeg"
6499     ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -L$with_ffmpeg/lib"
6500   fi
6501
6502   # Check whether --with-ffmpeg-tree or --without-ffmpeg-tree was given.
6503 if test "${with_ffmpeg_tree+set}" = set; then
6504   withval="$with_ffmpeg_tree"
6505   :
6506 fi
6507
6508   if test "x$with_ffmpeg_tree" != "x"
6509   then
6510     echo $ac_n "checking for libavcodec.a in ${with_ffmpeg_tree}""... $ac_c" 1>&6
6511 echo "configure:6512: checking for libavcodec.a in ${with_ffmpeg_tree}" >&5
6512     real_ffmpeg_tree="`cd ${with_ffmpeg_tree} 2>/dev/null && pwd`"
6513     if test "x$real_ffmpeg_tree" = x
6514     then
6515             echo "$ac_t""no" 1>&6
6516       { echo "configure: error: cannot cd to ${with_ffmpeg_tree}" 1>&2; exit 1; }
6517     fi
6518     if test -f "${real_ffmpeg_tree}/libavcodec/libavcodec.a"
6519     then
6520             echo "$ac_t""${real_ffmpeg_tree}/libavcodec/libavcodec.a" 1>&6
6521       BUILTINS="${BUILTINS} ffmpeg"
6522       ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} ${real_ffmpeg_tree}/libavcodec/libavcodec.a -lm"
6523       ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I${real_ffmpeg_tree}/libavcodec"
6524     else
6525             echo "$ac_t""no" 1>&6
6526       { echo "configure: error: cannot find ${real_ffmpeg_tree}/libavcodec/libavcodec.a, make sure you compiled libavcodec in ${with_ffmpeg_tree}" 1>&2; exit 1; }
6527     fi
6528   else
6529     save_CFLAGS=$CFLAGS
6530     save_LDFLAGS=$LDFLAGS
6531     CFLAGS="$CFLAGS $ffmpeg_CFLAGS"
6532     LDFLAGS="$LDFLAGS $ffmpeg_LDFLAGS -lm"
6533     echo $ac_n "checking for avcodec_init in -lavcodec""... $ac_c" 1>&6
6534 echo "configure:6535: checking for avcodec_init in -lavcodec" >&5
6535 ac_lib_var=`echo avcodec'_'avcodec_init | sed 'y%./+-%__p_%'`
6536 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6537   echo $ac_n "(cached) $ac_c" 1>&6
6538 else
6539   ac_save_LIBS="$LIBS"
6540 LIBS="-lavcodec  $LIBS"
6541 cat > conftest.$ac_ext <<EOF
6542 #line 6543 "configure"
6543 #include "confdefs.h"
6544 /* Override any gcc2 internal prototype to avoid an error.  */
6545 /* We use char because int might match the return type of a gcc2
6546     builtin and then its argument prototype would still apply.  */
6547 char avcodec_init();
6548
6549 int main() {
6550 avcodec_init()
6551 ; return 0; }
6552 EOF
6553 if { (eval echo configure:6554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6554   rm -rf conftest*
6555   eval "ac_cv_lib_$ac_lib_var=yes"
6556 else
6557   echo "configure: failed program was:" >&5
6558   cat conftest.$ac_ext >&5
6559   rm -rf conftest*
6560   eval "ac_cv_lib_$ac_lib_var=no"
6561 fi
6562 rm -f conftest*
6563 LIBS="$ac_save_LIBS"
6564
6565 fi
6566 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6567   echo "$ac_t""yes" 1>&6
6568   
6569       BUILTINS="${BUILTINS} ffmpeg"
6570       ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lavcodec -lm" 
6571 else
6572   echo "$ac_t""no" 1>&6
6573  { echo "configure: error: Cannot find libavcodec library..." 1>&2; exit 1; } 
6574 fi
6575
6576     CFLAGS=$save_CFLAGS
6577     LDFLAGS=$save_LDFLAGS
6578   fi
6579 fi
6580
6581
6582 if test x$SYS = xbeos
6583 then
6584     PLUGINS="${PLUGINS} beos"
6585 fi
6586
6587 # Check whether --enable-a52 or --disable-a52 was given.
6588 if test "${enable_a52+set}" = set; then
6589   enableval="$enable_a52"
6590   :
6591 fi
6592
6593 if test "x$enable_a52" != "xno"
6594 then
6595   # Check whether --with-a52-tree or --without-a52-tree was given.
6596 if test "${with_a52_tree+set}" = set; then
6597   withval="$with_a52_tree"
6598   :
6599 fi
6600
6601   if test "x$with_a52_tree" != "xno" -a "x$with_a52_tree" != "x"
6602   then
6603     real_a52_tree="`cd ${with_a52_tree} 2>/dev/null && pwd`"
6604     if test "x$real_a52_tree" = x
6605     then
6606             echo "$ac_t""no" 1>&6
6607       { echo "configure: error: ${with_a52_tree} directory doesn't exist" 1>&2; exit 1; }
6608     fi
6609         echo $ac_n "checking for a52.h in ${real_a52_tree}/include""... $ac_c" 1>&6
6610 echo "configure:6611: checking for a52.h in ${real_a52_tree}/include" >&5
6611     if test -f ${real_a52_tree}/include/a52.h
6612     then
6613       echo "$ac_t""yes" 1>&6
6614       a52_CFLAGS="${a52_CFLAGS} -I${real_a52_tree}"
6615       a52_LDFLAGS="${a52_LDFLAGS} -L${real_a52_tree}/liba52/.libs"
6616       save_LDFLAGS=$LDFLAGS
6617       LDFLAGS="$a52_LDFLAGS $LDFLAGS"
6618       echo $ac_n "checking for a52_free in -la52""... $ac_c" 1>&6
6619 echo "configure:6620: checking for a52_free in -la52" >&5
6620 ac_lib_var=`echo a52'_'a52_free | sed 'y%./+-%__p_%'`
6621 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6622   echo $ac_n "(cached) $ac_c" 1>&6
6623 else
6624   ac_save_LIBS="$LIBS"
6625 LIBS="-la52 -lm $LIBS"
6626 cat > conftest.$ac_ext <<EOF
6627 #line 6628 "configure"
6628 #include "confdefs.h"
6629 /* Override any gcc2 internal prototype to avoid an error.  */
6630 /* We use char because int might match the return type of a gcc2
6631     builtin and then its argument prototype would still apply.  */
6632 char a52_free();
6633
6634 int main() {
6635 a52_free()
6636 ; return 0; }
6637 EOF
6638 if { (eval echo configure:6639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6639   rm -rf conftest*
6640   eval "ac_cv_lib_$ac_lib_var=yes"
6641 else
6642   echo "configure: failed program was:" >&5
6643   cat conftest.$ac_ext >&5
6644   rm -rf conftest*
6645   eval "ac_cv_lib_$ac_lib_var=no"
6646 fi
6647 rm -f conftest*
6648 LIBS="$ac_save_LIBS"
6649
6650 fi
6651 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6652   echo "$ac_t""yes" 1>&6
6653   
6654         BUILTINS="${BUILTINS} a52"
6655         a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
6656         a52_CFLAGS="${a52_CFLAGS} -DUSE_A52DEC_TREE"
6657         
6658 else
6659   echo "$ac_t""no" 1>&6
6660
6661         if test -f ${real_a52_tree}/liba52/.libs/liba52.a
6662         then
6663           { echo "configure: error: make sure you have at least a52dec-0.7.3" 1>&2; exit 1; }
6664         else
6665           { echo "configure: error: the specified tree hasn't been compiled" 1>&2; exit 1; }
6666         fi
6667       
6668 fi
6669
6670       LDFLAGS=$save_LDFLAGS
6671     else
6672       echo "$ac_t""no" 1>&6
6673       { echo "configure: error: the specified tree doesn't have a52.h" 1>&2; exit 1; }
6674     fi
6675   else     for ac_hdr in a52dec/a52.h
6676 do
6677 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6678 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6679 echo "configure:6680: checking for $ac_hdr" >&5
6680 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6681   echo $ac_n "(cached) $ac_c" 1>&6
6682 else
6683   cat > conftest.$ac_ext <<EOF
6684 #line 6685 "configure"
6685 #include "confdefs.h"
6686 #include <$ac_hdr>
6687 EOF
6688 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6689 { (eval echo configure:6690: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6690 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6691 if test -z "$ac_err"; then
6692   rm -rf conftest*
6693   eval "ac_cv_header_$ac_safe=yes"
6694 else
6695   echo "$ac_err" >&5
6696   echo "configure: failed program was:" >&5
6697   cat conftest.$ac_ext >&5
6698   rm -rf conftest*
6699   eval "ac_cv_header_$ac_safe=no"
6700 fi
6701 rm -f conftest*
6702 fi
6703 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6704   echo "$ac_t""yes" 1>&6
6705     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6706   cat >> confdefs.h <<EOF
6707 #define $ac_tr_hdr 1
6708 EOF
6709  
6710       echo $ac_n "checking for a52_free in -la52""... $ac_c" 1>&6
6711 echo "configure:6712: checking for a52_free in -la52" >&5
6712 ac_lib_var=`echo a52'_'a52_free | sed 'y%./+-%__p_%'`
6713 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6714   echo $ac_n "(cached) $ac_c" 1>&6
6715 else
6716   ac_save_LIBS="$LIBS"
6717 LIBS="-la52 -lm $LIBS"
6718 cat > conftest.$ac_ext <<EOF
6719 #line 6720 "configure"
6720 #include "confdefs.h"
6721 /* Override any gcc2 internal prototype to avoid an error.  */
6722 /* We use char because int might match the return type of a gcc2
6723     builtin and then its argument prototype would still apply.  */
6724 char a52_free();
6725
6726 int main() {
6727 a52_free()
6728 ; return 0; }
6729 EOF
6730 if { (eval echo configure:6731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6731   rm -rf conftest*
6732   eval "ac_cv_lib_$ac_lib_var=yes"
6733 else
6734   echo "configure: failed program was:" >&5
6735   cat conftest.$ac_ext >&5
6736   rm -rf conftest*
6737   eval "ac_cv_lib_$ac_lib_var=no"
6738 fi
6739 rm -f conftest*
6740 LIBS="$ac_save_LIBS"
6741
6742 fi
6743 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6744   echo "$ac_t""yes" 1>&6
6745   
6746         BUILTINS="${BUILTINS} a52"
6747         a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
6748         a52_CFLAGS="${a52_CFLAGS}"
6749       
6750 else
6751   echo "$ac_t""no" 1>&6
6752 fi
6753
6754     
6755 else
6756   echo "$ac_t""no" 1>&6
6757 fi
6758 done
6759
6760   fi
6761 fi
6762
6763 # Check whether --enable-vorbis or --disable-vorbis was given.
6764 if test "${enable_vorbis+set}" = set; then
6765   enableval="$enable_vorbis"
6766   :
6767 fi
6768
6769 if test "x$enable_vorbis" != "xno"
6770 then
6771   for ac_hdr in ogg/ogg.h
6772 do
6773 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6774 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6775 echo "configure:6776: checking for $ac_hdr" >&5
6776 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6777   echo $ac_n "(cached) $ac_c" 1>&6
6778 else
6779   cat > conftest.$ac_ext <<EOF
6780 #line 6781 "configure"
6781 #include "confdefs.h"
6782 #include <$ac_hdr>
6783 EOF
6784 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6785 { (eval echo configure:6786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6786 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6787 if test -z "$ac_err"; then
6788   rm -rf conftest*
6789   eval "ac_cv_header_$ac_safe=yes"
6790 else
6791   echo "$ac_err" >&5
6792   echo "configure: failed program was:" >&5
6793   cat conftest.$ac_ext >&5
6794   rm -rf conftest*
6795   eval "ac_cv_header_$ac_safe=no"
6796 fi
6797 rm -f conftest*
6798 fi
6799 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6800   echo "$ac_t""yes" 1>&6
6801     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6802   cat >> confdefs.h <<EOF
6803 #define $ac_tr_hdr 1
6804 EOF
6805  
6806         #PLUGINS="${PLUGINS} vorbis"
6807     vorbis_LDFLAGS="${vorbis_LDFLAGS} -lvorbis"
6808    
6809 else
6810   echo "$ac_t""no" 1>&6
6811 fi
6812 done
6813
6814 fi
6815
6816
6817 # Check whether --with- or --without- was given.
6818 if test "${with_+set}" = set; then
6819   withval="$with_"
6820   :
6821 fi
6822
6823
6824 # Check whether --enable-x11 or --disable-x11 was given.
6825 if test "${enable_x11+set}" = set; then
6826   enableval="$enable_x11"
6827   :
6828 fi
6829
6830 if test x$enable_x11 != xno &&
6831   (test x$SYS != xmingw32 || test x$enable_x11 = xyes); then
6832   if test x$x_includes = xNONE; then
6833     x_includes=/usr/X11R6/include
6834   fi
6835   if test x$x_libraries = xNONE; then
6836     x_libraries=/usr/X11R6/lib
6837   fi
6838   CPPFLAGS="$save_CPPFLAGS -I$x_includes"
6839   for ac_hdr in X11/Xlib.h
6840 do
6841 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6842 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6843 echo "configure:6844: checking for $ac_hdr" >&5
6844 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6845   echo $ac_n "(cached) $ac_c" 1>&6
6846 else
6847   cat > conftest.$ac_ext <<EOF
6848 #line 6849 "configure"
6849 #include "confdefs.h"
6850 #include <$ac_hdr>
6851 EOF
6852 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6853 { (eval echo configure:6854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6854 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6855 if test -z "$ac_err"; then
6856   rm -rf conftest*
6857   eval "ac_cv_header_$ac_safe=yes"
6858 else
6859   echo "$ac_err" >&5
6860   echo "configure: failed program was:" >&5
6861   cat conftest.$ac_ext >&5
6862   rm -rf conftest*
6863   eval "ac_cv_header_$ac_safe=no"
6864 fi
6865 rm -f conftest*
6866 fi
6867 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6868   echo "$ac_t""yes" 1>&6
6869     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6870   cat >> confdefs.h <<EOF
6871 #define $ac_tr_hdr 1
6872 EOF
6873  
6874     PLUGINS="${PLUGINS} x11"
6875     x11_LDFLAGS="${x11_LDFLAGS} -L$x_libraries -lX11 -lXext"
6876     x11_CFLAGS="${x11_CFLAGS} -I$x_includes"
6877   
6878 else
6879   echo "$ac_t""no" 1>&6
6880 fi
6881 done
6882
6883   CPPFLAGS="$save_CPPFLAGS"
6884 fi
6885
6886 # Check whether --enable-xvideo or --disable-xvideo was given.
6887 if test "${enable_xvideo+set}" = set; then
6888   enableval="$enable_xvideo"
6889   :
6890 fi
6891
6892 if test x$enable_xvideo != xno &&
6893   (test x$SYS != xmingw32 || test x$enable_xvideo = xyes); then
6894   if test x$x_includes = xNONE; then
6895     x_includes=/usr/X11R6/include
6896   fi
6897   if test x$x_libraries = xNONE; then
6898     x_libraries=/usr/X11R6/lib
6899   fi
6900   CPPFLAGS="$save_CPPFLAGS -I$x_includes"
6901   for ac_hdr in X11/extensions/Xv.h
6902 do
6903 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6904 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6905 echo "configure:6906: checking for $ac_hdr" >&5
6906 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6907   echo $ac_n "(cached) $ac_c" 1>&6
6908 else
6909   cat > conftest.$ac_ext <<EOF
6910 #line 6911 "configure"
6911 #include "confdefs.h"
6912 #include <$ac_hdr>
6913 EOF
6914 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6915 { (eval echo configure:6916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6916 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6917 if test -z "$ac_err"; then
6918   rm -rf conftest*
6919   eval "ac_cv_header_$ac_safe=yes"
6920 else
6921   echo "$ac_err" >&5
6922   echo "configure: failed program was:" >&5
6923   cat conftest.$ac_ext >&5
6924   rm -rf conftest*
6925   eval "ac_cv_header_$ac_safe=no"
6926 fi
6927 rm -f conftest*
6928 fi
6929 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6930   echo "$ac_t""yes" 1>&6
6931     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6932   cat >> confdefs.h <<EOF
6933 #define $ac_tr_hdr 1
6934 EOF
6935  
6936     CFLAGS="$save_CFLAGS -L$x_libraries -lX11 -lXext"
6937     echo $ac_n "checking for XvSetPortAttribute in -lXv_pic""... $ac_c" 1>&6
6938 echo "configure:6939: checking for XvSetPortAttribute in -lXv_pic" >&5
6939 ac_lib_var=`echo Xv_pic'_'XvSetPortAttribute | sed 'y%./+-%__p_%'`
6940 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6941   echo $ac_n "(cached) $ac_c" 1>&6
6942 else
6943   ac_save_LIBS="$LIBS"
6944 LIBS="-lXv_pic  $LIBS"
6945 cat > conftest.$ac_ext <<EOF
6946 #line 6947 "configure"
6947 #include "confdefs.h"
6948 /* Override any gcc2 internal prototype to avoid an error.  */
6949 /* We use char because int might match the return type of a gcc2
6950     builtin and then its argument prototype would still apply.  */
6951 char XvSetPortAttribute();
6952
6953 int main() {
6954 XvSetPortAttribute()
6955 ; return 0; }
6956 EOF
6957 if { (eval echo configure:6958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6958   rm -rf conftest*
6959   eval "ac_cv_lib_$ac_lib_var=yes"
6960 else
6961   echo "configure: failed program was:" >&5
6962   cat conftest.$ac_ext >&5
6963   rm -rf conftest*
6964   eval "ac_cv_lib_$ac_lib_var=no"
6965 fi
6966 rm -f conftest*
6967 LIBS="$ac_save_LIBS"
6968
6969 fi
6970 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6971   echo "$ac_t""yes" 1>&6
6972   # We have Xv_pic, that's good, we can build an xvideo.so plugin !
6973       PLUGINS="${PLUGINS} xvideo"
6974       xvideo_LDFLAGS="${xvideo_LDFLAGS} -L$x_libraries -lX11 -lXext -lXv_pic"
6975       xvideo_CFLAGS="${xvideo_CFLAGS} -I$x_includes"
6976 else
6977   echo "$ac_t""no" 1>&6
6978 # We don't have Xv_pic, let's make xvideo.a as builtin
6979       BUILTINS="${BUILTINS} xvideo"
6980       xvideo_LDFLAGS="${xvideo_LDFLAGS} -L$x_libraries -lX11 -lXext -lXv"
6981       xvideo_CFLAGS="${xvideo_CFLAGS} -I$x_includes"
6982 fi
6983
6984   
6985   CPPFLAGS="$save_CPPFLAGS"
6986 else
6987   echo "$ac_t""no" 1>&6
6988 fi
6989 done
6990
6991 fi
6992
6993 # Check whether --enable-sdl or --disable-sdl was given.
6994 if test "${enable_sdl+set}" = set; then
6995   enableval="$enable_sdl"
6996   :
6997 fi
6998
6999 if test "x$enable_sdl" != "xno"
7000 then
7001   SDL_PATH=$PATH
7002   # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
7003 if test "${with_sdl_config_path+set}" = set; then
7004   withval="$with_sdl_config_path"
7005    if test "x$with_sdl_config_path" != "xno"
7006       then
7007         SDL_PATH="$with_sdl_config_path:$PATH"
7008       fi 
7009 fi
7010
7011   # Extract the first word of "sdl12-config", so it can be a program name with args.
7012 set dummy sdl12-config; ac_word=$2
7013 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7014 echo "configure:7015: checking for $ac_word" >&5
7015 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
7016   echo $ac_n "(cached) $ac_c" 1>&6
7017 else
7018   case "$SDL12_CONFIG" in
7019   /*)
7020   ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
7021   ;;
7022   ?:/*)                  
7023   ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
7024   ;;
7025   *)
7026   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
7027   ac_dummy="$SDL_PATH"
7028   for ac_dir in $ac_dummy; do 
7029     test -z "$ac_dir" && ac_dir=.
7030     if test -f $ac_dir/$ac_word; then
7031       ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
7032       break
7033     fi
7034   done
7035   IFS="$ac_save_ifs"
7036   test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
7037   ;;
7038 esac
7039 fi
7040 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
7041 if test -n "$SDL12_CONFIG"; then
7042   echo "$ac_t""$SDL12_CONFIG" 1>&6
7043 else
7044   echo "$ac_t""no" 1>&6
7045 fi
7046
7047   SDL_CONFIG=${SDL12_CONFIG}
7048   SDL_HEADER="SDL12/SDL.h"
7049   if test x${SDL_CONFIG} = xno
7050   then
7051     # Extract the first word of "sdl11-config", so it can be a program name with args.
7052 set dummy sdl11-config; ac_word=$2
7053 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7054 echo "configure:7055: checking for $ac_word" >&5
7055 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
7056   echo $ac_n "(cached) $ac_c" 1>&6
7057 else
7058   case "$SDL11_CONFIG" in
7059   /*)
7060   ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
7061   ;;
7062   ?:/*)                  
7063   ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
7064   ;;
7065   *)
7066   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
7067   ac_dummy="$SDL_PATH"
7068   for ac_dir in $ac_dummy; do 
7069     test -z "$ac_dir" && ac_dir=.
7070     if test -f $ac_dir/$ac_word; then
7071       ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
7072       break
7073     fi
7074   done
7075   IFS="$ac_save_ifs"
7076   test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
7077   ;;
7078 esac
7079 fi
7080 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
7081 if test -n "$SDL11_CONFIG"; then
7082   echo "$ac_t""$SDL11_CONFIG" 1>&6
7083 else
7084   echo "$ac_t""no" 1>&6
7085 fi
7086
7087     SDL_CONFIG=${SDL11_CONFIG}
7088     SDL_HEADER="SDL11/SDL.h"
7089   fi
7090   if test x${SDL_CONFIG} = xno
7091   then
7092     # Extract the first word of "sdl-config", so it can be a program name with args.
7093 set dummy sdl-config; ac_word=$2
7094 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7095 echo "configure:7096: checking for $ac_word" >&5
7096 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
7097   echo $ac_n "(cached) $ac_c" 1>&6
7098 else
7099   case "$SDL_CONFIG" in
7100   /*)
7101   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
7102   ;;
7103   ?:/*)                  
7104   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
7105   ;;
7106   *)
7107   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
7108   ac_dummy="$SDL_PATH"
7109   for ac_dir in $ac_dummy; do 
7110     test -z "$ac_dir" && ac_dir=.
7111     if test -f $ac_dir/$ac_word; then
7112       ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
7113       break
7114     fi
7115   done
7116   IFS="$ac_save_ifs"
7117   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
7118   ;;
7119 esac
7120 fi
7121 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
7122 if test -n "$SDL_CONFIG"; then
7123   echo "$ac_t""$SDL_CONFIG" 1>&6
7124 else
7125   echo "$ac_t""no" 1>&6
7126 fi
7127
7128     SDL_HEADER="SDL/SDL.h"
7129   fi
7130   if test x${SDL_CONFIG} != xno
7131   then
7132     PLUGINS="${PLUGINS} sdl"
7133     sdl_CFLAGS="${sdl_CFLAGS} `${SDL_CONFIG} --cflags`"
7134     sdl_LDFLAGS="${sdl_LDFLAGS} `${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
7135     CPPFLAGS="$save_CPPFLAGS $sdl_CFLAGS"
7136     for ac_hdr in ${SDL_HEADER}
7137 do
7138 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7139 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7140 echo "configure:7141: checking for $ac_hdr" >&5
7141 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7142   echo $ac_n "(cached) $ac_c" 1>&6
7143 else
7144   cat > conftest.$ac_ext <<EOF
7145 #line 7146 "configure"
7146 #include "confdefs.h"
7147 #include <$ac_hdr>
7148 EOF
7149 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7150 { (eval echo configure:7151: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7151 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7152 if test -z "$ac_err"; then
7153   rm -rf conftest*
7154   eval "ac_cv_header_$ac_safe=yes"
7155 else
7156   echo "$ac_err" >&5
7157   echo "configure: failed program was:" >&5
7158   cat conftest.$ac_ext >&5
7159   rm -rf conftest*
7160   eval "ac_cv_header_$ac_safe=no"
7161 fi
7162 rm -f conftest*
7163 fi
7164 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7165   echo "$ac_t""yes" 1>&6
7166     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7167   cat >> confdefs.h <<EOF
7168 #define $ac_tr_hdr 1
7169 EOF
7170  cat >> confdefs.h <<EOF
7171 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
7172 EOF
7173
7174 else
7175   echo "$ac_t""no" 1>&6
7176 { echo "configure: error: The development package for SDL is not installed. 
7177 Please install it and try again. Alternatively you can also configure with 
7178 --disable-sdl." 1>&2; exit 1; }
7179       
7180 fi
7181 done
7182
7183     CPPFLAGS="$save_CPPFLAGS"
7184     if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
7185     then
7186       { echo "configure: error: The development package for SDL is not installed.
7187 Please install it and try again. Alternatively you can also configure with
7188 --disable-sdl." 1>&2; exit 1; }
7189     fi
7190   elif test "x$enable_sdl" =  "xyes"
7191   then
7192     { echo "configure: error: I couldn't find the SDL package. You can download libSDL
7193 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
7194     " 1>&2; exit 1; }
7195   fi
7196 fi
7197
7198 # Check whether --enable-directx or --disable-directx was given.
7199 if test "${enable_directx+set}" = set; then
7200   enableval="$enable_directx"
7201   :
7202 fi
7203
7204 if test "x$enable_directx" != "xno"
7205 then
7206   if test x$SYS = xmingw32
7207   then
7208     # Check whether --with-directx or --without-directx was given.
7209 if test "${with_directx+set}" = set; then
7210   withval="$with_directx"
7211   :
7212 fi
7213
7214     if test "x$with_directx" = "x"
7215     then
7216       for ac_hdr in ddraw.h
7217 do
7218 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7219 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7220 echo "configure:7221: checking for $ac_hdr" >&5
7221 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7222   echo $ac_n "(cached) $ac_c" 1>&6
7223 else
7224   cat > conftest.$ac_ext <<EOF
7225 #line 7226 "configure"
7226 #include "confdefs.h"
7227 #include <$ac_hdr>
7228 EOF
7229 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7230 { (eval echo configure:7231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7231 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7232 if test -z "$ac_err"; then
7233   rm -rf conftest*
7234   eval "ac_cv_header_$ac_safe=yes"
7235 else
7236   echo "$ac_err" >&5
7237   echo "configure: failed program was:" >&5
7238   cat conftest.$ac_ext >&5
7239   rm -rf conftest*
7240   eval "ac_cv_header_$ac_safe=no"
7241 fi
7242 rm -f conftest*
7243 fi
7244 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7245   echo "$ac_t""yes" 1>&6
7246     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7247   cat >> confdefs.h <<EOF
7248 #define $ac_tr_hdr 1
7249 EOF
7250   PLUGINS="${PLUGINS} directx"
7251         directx_LDFLAGS="${directx_LDFLAGS} -lgdi32" 
7252 else
7253   echo "$ac_t""no" 1>&6
7254 fi
7255 done
7256
7257     else
7258       echo $ac_n "checking for directX headers in ${with_directx}""... $ac_c" 1>&6
7259 echo "configure:7260: checking for directX headers in ${with_directx}" >&5
7260       if test -f ${with_directx}/ddraw.h
7261       then
7262         PLUGINS="${PLUGINS} directx"
7263         directx_LDFLAGS="${directx_LDFLAGS} -L${with_directx}/lib -lgdi32"
7264         directx_CFLAGS="${directx_CFLAGS} -I${with_directx}"
7265         echo "$ac_t""yes" 1>&6
7266       else
7267         echo "$ac_t""no" 1>&6
7268         { echo "configure: error: Cannot find ${with_directx}/ddraw.h!" 1>&2; exit 1; }
7269       fi
7270     fi
7271   fi
7272 fi
7273
7274 # Check whether --enable-fb or --disable-fb was given.
7275 if test "${enable_fb+set}" = set; then
7276   enableval="$enable_fb"
7277   :
7278 fi
7279
7280     if test x$enable_fb != xno
7281     then
7282       for ac_hdr in linux/fb.h
7283 do
7284 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7285 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7286 echo "configure:7287: checking for $ac_hdr" >&5
7287 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7288   echo $ac_n "(cached) $ac_c" 1>&6
7289 else
7290   cat > conftest.$ac_ext <<EOF
7291 #line 7292 "configure"
7292 #include "confdefs.h"
7293 #include <$ac_hdr>
7294 EOF
7295 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7296 { (eval echo configure:7297: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7297 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7298 if test -z "$ac_err"; then
7299   rm -rf conftest*
7300   eval "ac_cv_header_$ac_safe=yes"
7301 else
7302   echo "$ac_err" >&5
7303   echo "configure: failed program was:" >&5
7304   cat conftest.$ac_ext >&5
7305   rm -rf conftest*
7306   eval "ac_cv_header_$ac_safe=no"
7307 fi
7308 rm -f conftest*
7309 fi
7310 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7311   echo "$ac_t""yes" 1>&6
7312     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7313   cat >> confdefs.h <<EOF
7314 #define $ac_tr_hdr 1
7315 EOF
7316  
7317         PLUGINS="${PLUGINS} fb"
7318       
7319 else
7320   echo "$ac_t""no" 1>&6
7321 fi
7322 done
7323
7324     fi
7325
7326 # Check whether --enable-mga or --disable-mga was given.
7327 if test "${enable_mga+set}" = set; then
7328   enableval="$enable_mga"
7329    if test x$enable_mga = xyes
7330     then
7331       PLUGINS="${PLUGINS} mga xmga"
7332     fi 
7333 fi
7334
7335
7336 # Check whether --enable-ggi or --disable-ggi was given.
7337 if test "${enable_ggi+set}" = set; then
7338   enableval="$enable_ggi"
7339   :
7340 fi
7341
7342 if test x$enable_ggi = xyes
7343 then
7344   PLUGINS="${PLUGINS} ggi"
7345   ggi_LDFLAGS="${ggi_LDFLAGS} -lggi"
7346   # Check whether --with-ggi or --without-ggi was given.
7347 if test "${with_ggi+set}" = set; then
7348   withval="$with_ggi"
7349    if test "x$with_ggi" != "xno" -a "x$with_ggi" != "x"
7350       then
7351         CFLAGS_GGI="${CFLAGS_GGI} -I$with_ggi/include"
7352         ggi_LDFLAGS="${ggi_LDFLAGS} -L$with_ggi/lib"
7353       fi 
7354 fi
7355
7356 fi
7357
7358 # Check whether --enable-glide or --disable-glide was given.
7359 if test "${enable_glide+set}" = set; then
7360   enableval="$enable_glide"
7361   :
7362 fi
7363
7364 if test x$enable_glide = xyes
7365 then
7366   PLUGINS="${PLUGINS} glide"
7367   glide_LDFLAGS="${glide_LDFLAGS} -lglide2x -lm"
7368   glide_CFLAGS="${glide_CFLAGS} -I/usr/include/glide"
7369   # Check whether --with-glide or --without-glide was given.
7370 if test "${with_glide+set}" = set; then
7371   withval="$with_glide"
7372    if test "x$with_glide" != "xno" -a "x$with_glide" != "x"
7373       then
7374         glide_CFLAGS="${glide_CFLAGS} -I$with_glide/include"
7375         glide_LDFLAGS="${glide_LDFLAGS} -L$with_glide/lib"
7376       fi 
7377 fi
7378
7379 fi
7380
7381 # Check whether --enable-aa or --disable-aa was given.
7382 if test "${enable_aa+set}" = set; then
7383   enableval="$enable_aa"
7384   :
7385 fi
7386
7387 if test x$enable_aa = xyes
7388 then
7389   ac_safe=`echo "aalib.h" | sed 'y%./+-%__p_%'`
7390 echo $ac_n "checking for aalib.h""... $ac_c" 1>&6
7391 echo "configure:7392: checking for aalib.h" >&5
7392 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7393   echo $ac_n "(cached) $ac_c" 1>&6
7394 else
7395   cat > conftest.$ac_ext <<EOF
7396 #line 7397 "configure"
7397 #include "confdefs.h"
7398 #include <aalib.h>
7399 EOF
7400 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7401 { (eval echo configure:7402: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7402 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7403 if test -z "$ac_err"; then
7404   rm -rf conftest*
7405   eval "ac_cv_header_$ac_safe=yes"
7406 else
7407   echo "$ac_err" >&5
7408   echo "configure: failed program was:" >&5
7409   cat conftest.$ac_ext >&5
7410   rm -rf conftest*
7411   eval "ac_cv_header_$ac_safe=no"
7412 fi
7413 rm -f conftest*
7414 fi
7415 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7416   echo "$ac_t""yes" 1>&6
7417   have_aa="true"
7418 else
7419   echo "$ac_t""no" 1>&6
7420 have_aa="false"
7421 fi
7422
7423   if test x$have_aa = xtrue
7424   then
7425     PLUGINS="${PLUGINS} aa"
7426     aa_LDFLAGS="${aa_LDFLAGS} -laa"
7427   fi
7428 fi
7429
7430
7431 # Check whether --with- or --without- was given.
7432 if test "${with_+set}" = set; then
7433   withval="$with_"
7434   :
7435 fi
7436
7437
7438 # Check whether --enable-dsp or --disable-dsp was given.
7439 if test "${enable_dsp+set}" = set; then
7440   enableval="$enable_dsp"
7441   :
7442 fi
7443
7444
7445 if test x$enable_dsp != xno &&
7446   (test x$SYS != xmingw32 || test x$enable_dsp = xyes)
7447 then
7448   for ac_hdr in soundcard.h sys/soundcard.h machine/soundcard.h
7449 do
7450 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7451 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7452 echo "configure:7453: checking for $ac_hdr" >&5
7453 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7454   echo $ac_n "(cached) $ac_c" 1>&6
7455 else
7456   cat > conftest.$ac_ext <<EOF
7457 #line 7458 "configure"
7458 #include "confdefs.h"
7459 #include <$ac_hdr>
7460 EOF
7461 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7462 { (eval echo configure:7463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7463 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7464 if test -z "$ac_err"; then
7465   rm -rf conftest*
7466   eval "ac_cv_header_$ac_safe=yes"
7467 else
7468   echo "$ac_err" >&5
7469   echo "configure: failed program was:" >&5
7470   cat conftest.$ac_ext >&5
7471   rm -rf conftest*
7472   eval "ac_cv_header_$ac_safe=no"
7473 fi
7474 rm -f conftest*
7475 fi
7476 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7477   echo "$ac_t""yes" 1>&6
7478     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7479   cat >> confdefs.h <<EOF
7480 #define $ac_tr_hdr 1
7481 EOF
7482  
7483     PLUGINS="${PLUGINS} dsp"
7484     echo $ac_n "checking for main in -lossaudio""... $ac_c" 1>&6
7485 echo "configure:7486: checking for main in -lossaudio" >&5
7486 ac_lib_var=`echo ossaudio'_'main | sed 'y%./+-%__p_%'`
7487 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7488   echo $ac_n "(cached) $ac_c" 1>&6
7489 else
7490   ac_save_LIBS="$LIBS"
7491 LIBS="-lossaudio  $LIBS"
7492 cat > conftest.$ac_ext <<EOF
7493 #line 7494 "configure"
7494 #include "confdefs.h"
7495
7496 int main() {
7497 main()
7498 ; return 0; }
7499 EOF
7500 if { (eval echo configure:7501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7501   rm -rf conftest*
7502   eval "ac_cv_lib_$ac_lib_var=yes"
7503 else
7504   echo "configure: failed program was:" >&5
7505   cat conftest.$ac_ext >&5
7506   rm -rf conftest*
7507   eval "ac_cv_lib_$ac_lib_var=no"
7508 fi
7509 rm -f conftest*
7510 LIBS="$ac_save_LIBS"
7511
7512 fi
7513 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7514   echo "$ac_t""yes" 1>&6
7515   dsp_LDFLAGS="${dsp_LDFLAGS} -lossaudio"
7516 else
7517   echo "$ac_t""no" 1>&6
7518 fi
7519
7520   
7521 else
7522   echo "$ac_t""no" 1>&6
7523 fi
7524 done
7525
7526 fi
7527
7528 # Check whether --enable-esd or --disable-esd was given.
7529 if test "${enable_esd+set}" = set; then
7530   enableval="$enable_esd"
7531   if test x$enable_esd = xyes
7532    then
7533      # Extract the first word of "esd-config", so it can be a program name with args.
7534 set dummy esd-config; ac_word=$2
7535 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7536 echo "configure:7537: checking for $ac_word" >&5
7537 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
7538   echo $ac_n "(cached) $ac_c" 1>&6
7539 else
7540   case "$ESD_CONFIG" in
7541   /*)
7542   ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
7543   ;;
7544   ?:/*)                  
7545   ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
7546   ;;
7547   *)
7548   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
7549   ac_dummy="$PATH"
7550   for ac_dir in $ac_dummy; do 
7551     test -z "$ac_dir" && ac_dir=.
7552     if test -f $ac_dir/$ac_word; then
7553       ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
7554       break
7555     fi
7556   done
7557   IFS="$ac_save_ifs"
7558   test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
7559   ;;
7560 esac
7561 fi
7562 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
7563 if test -n "$ESD_CONFIG"; then
7564   echo "$ac_t""$ESD_CONFIG" 1>&6
7565 else
7566   echo "$ac_t""no" 1>&6
7567 fi
7568
7569      if test x${ESD_CONFIG} != xno
7570      then
7571        PLUGINS="${PLUGINS} esd"
7572        esd_CFLAGS="${esd_CFLAGS} `${ESD_CONFIG} --cflags`"
7573        esd_LDFLAGS="${esd_LDFLAGS} `${ESD_CONFIG} --libs`"
7574      fi
7575    fi
7576 fi
7577
7578
7579 # Check whether --enable-arts or --disable-arts was given.
7580 if test "${enable_arts+set}" = set; then
7581   enableval="$enable_arts"
7582   if test x$enable_arts = xyes
7583    then
7584      # Extract the first word of "artsc-config", so it can be a program name with args.
7585 set dummy artsc-config; ac_word=$2
7586 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7587 echo "configure:7588: checking for $ac_word" >&5
7588 if eval "test \"`echo '$''{'ac_cv_path_ARTS_CONFIG'+set}'`\" = set"; then
7589   echo $ac_n "(cached) $ac_c" 1>&6
7590 else
7591   case "$ARTS_CONFIG" in
7592   /*)
7593   ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
7594   ;;
7595   ?:/*)                  
7596   ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a dos path.
7597   ;;
7598   *)
7599   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
7600   ac_dummy="$PATH"
7601   for ac_dir in $ac_dummy; do 
7602     test -z "$ac_dir" && ac_dir=.
7603     if test -f $ac_dir/$ac_word; then
7604       ac_cv_path_ARTS_CONFIG="$ac_dir/$ac_word"
7605       break
7606     fi
7607   done
7608   IFS="$ac_save_ifs"
7609   test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
7610   ;;
7611 esac
7612 fi
7613 ARTS_CONFIG="$ac_cv_path_ARTS_CONFIG"
7614 if test -n "$ARTS_CONFIG"; then
7615   echo "$ac_t""$ARTS_CONFIG" 1>&6
7616 else
7617   echo "$ac_t""no" 1>&6
7618 fi
7619
7620      if test x${ARTS_CONFIG} != xno
7621      then
7622        PLUGINS="${PLUGINS} arts"
7623        arts_CFLAGS="${arts_CFLAGS} `${ARTS_CONFIG} --cflags`"
7624        arts_LDFLAGS="${arts_LDFLAGS} `${ARTS_CONFIG} --libs `"
7625      fi
7626    fi
7627 fi
7628
7629
7630 # Check whether --enable-alsa or --disable-alsa was given.
7631 if test "${enable_alsa+set}" = set; then
7632   enableval="$enable_alsa"
7633   if test x$enable_alsa = xyes
7634    then
7635      ac_safe=`echo "alsa/asoundlib.h" | sed 'y%./+-%__p_%'`
7636 echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6
7637 echo "configure:7638: checking for alsa/asoundlib.h" >&5
7638 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7639   echo $ac_n "(cached) $ac_c" 1>&6
7640 else
7641   cat > conftest.$ac_ext <<EOF
7642 #line 7643 "configure"
7643 #include "confdefs.h"
7644 #include <alsa/asoundlib.h>
7645 EOF
7646 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7647 { (eval echo configure:7648: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7648 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7649 if test -z "$ac_err"; then
7650   rm -rf conftest*
7651   eval "ac_cv_header_$ac_safe=yes"
7652 else
7653   echo "$ac_err" >&5
7654   echo "configure: failed program was:" >&5
7655   cat conftest.$ac_ext >&5
7656   rm -rf conftest*
7657   eval "ac_cv_header_$ac_safe=no"
7658 fi
7659 rm -f conftest*
7660 fi
7661 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7662   echo "$ac_t""yes" 1>&6
7663   echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
7664 echo "configure:7665: checking for main in -lasound" >&5
7665 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
7666 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7667   echo $ac_n "(cached) $ac_c" 1>&6
7668 else
7669   ac_save_LIBS="$LIBS"
7670 LIBS="-lasound  $LIBS"
7671 cat > conftest.$ac_ext <<EOF
7672 #line 7673 "configure"
7673 #include "confdefs.h"
7674
7675 int main() {
7676 main()
7677 ; return 0; }
7678 EOF
7679 if { (eval echo configure:7680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7680   rm -rf conftest*
7681   eval "ac_cv_lib_$ac_lib_var=yes"
7682 else
7683   echo "configure: failed program was:" >&5
7684   cat conftest.$ac_ext >&5
7685   rm -rf conftest*
7686   eval "ac_cv_lib_$ac_lib_var=no"
7687 fi
7688 rm -f conftest*
7689 LIBS="$ac_save_LIBS"
7690
7691 fi
7692 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7693   echo "$ac_t""yes" 1>&6
7694   have_alsa="true"
7695 else
7696   echo "$ac_t""no" 1>&6
7697 have_alsa="false"
7698 fi
7699
7700 else
7701   echo "$ac_t""no" 1>&6
7702 have_alsa="false"
7703 fi
7704
7705      if test x$have_alsa = xtrue
7706      then
7707        PLUGINS="${PLUGINS} alsa"
7708        alsa_LDFLAGS="${alsa_LDFLAGS} -lasound -lm -ldl"
7709      fi
7710    fi
7711 fi
7712
7713
7714 # Check whether --enable-waveout or --disable-waveout was given.
7715 if test "${enable_waveout+set}" = set; then
7716   enableval="$enable_waveout"
7717   :
7718 fi
7719
7720 if test "x$enable_waveout" != "xno" -a x$SYS = xmingw32
7721   then
7722     PLUGINS="${PLUGINS} waveout"
7723     waveout_LDFLAGS="-lwinmm"
7724 fi
7725
7726
7727 # Check whether --with- or --without- was given.
7728 if test "${with_+set}" = set; then
7729   withval="$with_"
7730   :
7731 fi
7732
7733
7734 # Check whether --enable-gtk or --disable-gtk was given.
7735 if test "${enable_gtk+set}" = set; then
7736   enableval="$enable_gtk"
7737   :
7738 fi
7739
7740 if test x$enable_gtk != xno
7741 then
7742   GTK_PATH=$PATH
7743   # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
7744 if test "${with_gtk_config_path+set}" = set; then
7745   withval="$with_gtk_config_path"
7746    if test "x$with_gtk_config_path" != "xno"
7747       then
7748         GTK_PATH="$with_gtk_config_path:$PATH"
7749       fi 
7750 fi
7751
7752   # look for gtk-config
7753   # Extract the first word of "gtk12-config", so it can be a program name with args.
7754 set dummy gtk12-config; ac_word=$2
7755 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7756 echo "configure:7757: checking for $ac_word" >&5
7757 if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
7758   echo $ac_n "(cached) $ac_c" 1>&6
7759 else
7760   case "$GTK12_CONFIG" in
7761   /*)
7762   ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
7763   ;;
7764   ?:/*)                  
7765   ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path.
7766   ;;
7767   *)
7768   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
7769   ac_dummy="$GTK_PATH"
7770   for ac_dir in $ac_dummy; do 
7771     test -z "$ac_dir" && ac_dir=.
7772     if test -f $ac_dir/$ac_word; then
7773       ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
7774       break
7775     fi
7776   done
7777   IFS="$ac_save_ifs"
7778   test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
7779   ;;
7780 esac
7781 fi
7782 GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG"
7783 if test -n "$GTK12_CONFIG"; then
7784   echo "$ac_t""$GTK12_CONFIG" 1>&6
7785 else
7786   echo "$ac_t""no" 1>&6
7787 fi
7788
7789   GTK_CONFIG=${GTK12_CONFIG}
7790   if test x${GTK_CONFIG} = xno
7791   then
7792     # Extract the first word of "gtk-config", so it can be a program name with args.
7793 set dummy gtk-config; ac_word=$2
7794 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7795 echo "configure:7796: checking for $ac_word" >&5
7796 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7797   echo $ac_n "(cached) $ac_c" 1>&6
7798 else
7799   case "$GTK_CONFIG" in
7800   /*)
7801   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7802   ;;
7803   ?:/*)                  
7804   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7805   ;;
7806   *)
7807   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
7808   ac_dummy="$GTK_PATH"
7809   for ac_dir in $ac_dummy; do 
7810     test -z "$ac_dir" && ac_dir=.
7811     if test -f $ac_dir/$ac_word; then
7812       ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7813       break
7814     fi
7815   done
7816   IFS="$ac_save_ifs"
7817   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7818   ;;
7819 esac
7820 fi
7821 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7822 if test -n "$GTK_CONFIG"; then
7823   echo "$ac_t""$GTK_CONFIG" 1>&6
7824 else
7825   echo "$ac_t""no" 1>&6
7826 fi
7827
7828   fi
7829   if test x${GTK_CONFIG} != xno
7830   then
7831     if expr 1.2.0 \> `$GTK_CONFIG --version` >/dev/null
7832     then
7833       { 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; }
7834     fi
7835     gtk_CFLAGS="${gtk_CFLAGS} `${GTK_CONFIG} --cflags gtk`"
7836     gtk_LDFLAGS="${gtk_LDFLAGS} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
7837     # now look for the gtk.h header
7838     CPPFLAGS="$save_CPPFLAGS $gtk_CFLAGS"
7839     ac_cv_gtk_headers=yes
7840     for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
7841 do
7842 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7843 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7844 echo "configure:7845: checking for $ac_hdr" >&5
7845 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7846   echo $ac_n "(cached) $ac_c" 1>&6
7847 else
7848   cat > conftest.$ac_ext <<EOF
7849 #line 7850 "configure"
7850 #include "confdefs.h"
7851 #include <$ac_hdr>
7852 EOF
7853 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7854 { (eval echo configure:7855: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7855 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7856 if test -z "$ac_err"; then
7857   rm -rf conftest*
7858   eval "ac_cv_header_$ac_safe=yes"
7859 else
7860   echo "$ac_err" >&5
7861   echo "configure: failed program was:" >&5
7862   cat conftest.$ac_ext >&5
7863   rm -rf conftest*
7864   eval "ac_cv_header_$ac_safe=no"
7865 fi
7866 rm -f conftest*
7867 fi
7868 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7869   echo "$ac_t""yes" 1>&6
7870     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7871   cat >> confdefs.h <<EOF
7872 #define $ac_tr_hdr 1
7873 EOF
7874  
7875 else
7876   echo "$ac_t""no" 1>&6
7877 ac_cv_gtk_headers=no
7878       echo "Cannot find gtk development headers."
7879     
7880 fi
7881 done
7882
7883     if test "x$ac_cv_gtk_headers" = xyes
7884     then
7885       PLUGINS="${PLUGINS} gtk"
7886       ALIASES="${ALIASES} gvlc"
7887     fi
7888     CPPFLAGS="$save_CPPFLAGS"
7889   fi
7890 fi
7891
7892 # Check whether --enable-gnome or --disable-gnome was given.
7893 if test "${enable_gnome+set}" = set; then
7894   enableval="$enable_gnome"
7895   if test x$enable_gnome = xyes; then
7896     # look for gnome-config
7897     # Extract the first word of "gnome-config", so it can be a program name with args.
7898 set dummy gnome-config; ac_word=$2
7899 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7900 echo "configure:7901: checking for $ac_word" >&5
7901 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
7902   echo $ac_n "(cached) $ac_c" 1>&6
7903 else
7904   case "$GNOME_CONFIG" in
7905   /*)
7906   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
7907   ;;
7908   ?:/*)                  
7909   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
7910   ;;
7911   *)
7912   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
7913   ac_dummy="$PATH"
7914   for ac_dir in $ac_dummy; do 
7915     test -z "$ac_dir" && ac_dir=.
7916     if test -f $ac_dir/$ac_word; then
7917       ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
7918       break
7919     fi
7920   done
7921   IFS="$ac_save_ifs"
7922   test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
7923   ;;
7924 esac
7925 fi
7926 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
7927 if test -n "$GNOME_CONFIG"; then
7928   echo "$ac_t""$GNOME_CONFIG" 1>&6
7929 else
7930   echo "$ac_t""no" 1>&6
7931 fi
7932
7933     if test -x ${GNOME_CONFIG}
7934     then
7935        gnome_CFLAGS="${gnome_CFLAGS} `${GNOME_CONFIG} --cflags gtk gnomeui`"
7936        gnome_LDFLAGS="${gnome_LDFLAGS} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
7937     fi
7938     # now look for the gnome.h header
7939     CPPFLAGS="$save_CPPFLAGS $gnome_CFLAGS"
7940     for ac_hdr in gnome.h
7941 do
7942 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7943 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7944 echo "configure:7945: checking for $ac_hdr" >&5
7945 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7946   echo $ac_n "(cached) $ac_c" 1>&6
7947 else
7948   cat > conftest.$ac_ext <<EOF
7949 #line 7950 "configure"
7950 #include "confdefs.h"
7951 #include <$ac_hdr>
7952 EOF
7953 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7954 { (eval echo configure:7955: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7955 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7956 if test -z "$ac_err"; then
7957   rm -rf conftest*
7958   eval "ac_cv_header_$ac_safe=yes"
7959 else
7960   echo "$ac_err" >&5
7961   echo "configure: failed program was:" >&5
7962   cat conftest.$ac_ext >&5
7963   rm -rf conftest*
7964   eval "ac_cv_header_$ac_safe=no"
7965 fi
7966 rm -f conftest*
7967 fi
7968 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7969   echo "$ac_t""yes" 1>&6
7970     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7971   cat >> confdefs.h <<EOF
7972 #define $ac_tr_hdr 1
7973 EOF
7974  
7975       PLUGINS="${PLUGINS} gnome"
7976       ALIASES="${ALIASES} gnome-vlc"
7977      
7978 else
7979   echo "$ac_t""no" 1>&6
7980 { echo "configure: error: Can't find gnome headers. Please install the gnome
7981 developement tools or remove the --enable-gnome option" 1>&2; exit 1; }
7982      
7983 fi
7984 done
7985
7986     CPPFLAGS="$save_CPPFLAGS"
7987   fi
7988 fi
7989
7990
7991 # Check whether --enable-qt or --disable-qt was given.
7992 if test "${enable_qt+set}" = set; then
7993   enableval="$enable_qt"
7994   if test x$enable_qt = xyes; then
7995      PLUGINS="${PLUGINS} qt"
7996      ALIASES="${ALIASES} qvlc"
7997      qt_LDFLAGS="${qt_LDFLAGS} -lqt -L${QTDIR}/lib"
7998      qt_CFLAGS="${qt_CFLAGS} -I/usr/include/qt -I${QTDIR}/include"
7999      if test -x ${QTDIR}/bin/moc
8000      then
8001        MOC=${QTDIR}/bin/moc
8002      else
8003        MOC=moc
8004      fi
8005    fi
8006 fi
8007
8008
8009 # Check whether --enable-kde or --disable-kde was given.
8010 if test "${enable_kde+set}" = set; then
8011   enableval="$enable_kde"
8012   if test x$enable_kde = xyes; then
8013      PLUGINS="${PLUGINS} kde"
8014      ALIASES="${ALIASES} kvlc"
8015      kde_LDFLAGS="${kde_LDFLAGS} -L${KDEDIR}/lib -lkfile"
8016      kde_CFLAGS="${kde_CFLAGS} -I/usr/include/kde -I/usr/include/qt"
8017      kde_CFLAGS="${kde_CFLAGS} -I${KDEDIR}/include -I${QTDIR}/include"
8018      if test -x ${QTDIR}/bin/moc
8019      then
8020        MOC=${QTDIR}/bin/moc
8021      else
8022        MOC=moc
8023      fi
8024    fi
8025 fi
8026
8027
8028 # Check whether --enable-macosx or --disable-macosx was given.
8029 if test "${enable_macosx+set}" = set; then
8030   enableval="$enable_macosx"
8031   if test x$enable_macosx = xyes
8032    then
8033      BUILTINS="${BUILTINS} macosx"
8034      macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework AGL -framework QuickTime -lobjc -ObjC"
8035    fi
8036 else
8037   for ac_hdr in Cocoa/Cocoa.h
8038 do
8039 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8040 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8041 echo "configure:8042: checking for $ac_hdr" >&5
8042 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8043   echo $ac_n "(cached) $ac_c" 1>&6
8044 else
8045   cat > conftest.$ac_ext <<EOF
8046 #line 8047 "configure"
8047 #include "confdefs.h"
8048 #include <$ac_hdr>
8049 EOF
8050 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8051 { (eval echo configure:8052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8052 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8053 if test -z "$ac_err"; then
8054   rm -rf conftest*
8055   eval "ac_cv_header_$ac_safe=yes"
8056 else
8057   echo "$ac_err" >&5
8058   echo "configure: failed program was:" >&5
8059   cat conftest.$ac_ext >&5
8060   rm -rf conftest*
8061   eval "ac_cv_header_$ac_safe=no"
8062 fi
8063 rm -f conftest*
8064 fi
8065 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8066   echo "$ac_t""yes" 1>&6
8067     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8068   cat >> confdefs.h <<EOF
8069 #define $ac_tr_hdr 1
8070 EOF
8071  BUILTINS="${BUILTINS} macosx"
8072      macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework AGL -framework QuickTime -lobjc -ObjC"
8073    
8074 else
8075   echo "$ac_t""no" 1>&6
8076 fi
8077 done
8078
8079 fi
8080
8081
8082 # Check whether --enable-qnx or --disable-qnx was given.
8083 if test "${enable_qnx+set}" = set; then
8084   enableval="$enable_qnx"
8085   :
8086 fi
8087
8088     if test x$enable_qnx != xno
8089     then
8090       for ac_hdr in Ph.h
8091 do
8092 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8093 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8094 echo "configure:8095: checking for $ac_hdr" >&5
8095 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8096   echo $ac_n "(cached) $ac_c" 1>&6
8097 else
8098   cat > conftest.$ac_ext <<EOF
8099 #line 8100 "configure"
8100 #include "confdefs.h"
8101 #include <$ac_hdr>
8102 EOF
8103 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8104 { (eval echo configure:8105: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8105 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8106 if test -z "$ac_err"; then
8107   rm -rf conftest*
8108   eval "ac_cv_header_$ac_safe=yes"
8109 else
8110   echo "$ac_err" >&5
8111   echo "configure: failed program was:" >&5
8112   cat conftest.$ac_ext >&5
8113   rm -rf conftest*
8114   eval "ac_cv_header_$ac_safe=no"
8115 fi
8116 rm -f conftest*
8117 fi
8118 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8119   echo "$ac_t""yes" 1>&6
8120     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8121   cat >> confdefs.h <<EOF
8122 #define $ac_tr_hdr 1
8123 EOF
8124  
8125         PLUGINS="${PLUGINS} qnx"
8126         qnx_LDFLAGS="${qnx_LDFLAGS} -lasound -lph"
8127       
8128 else
8129   echo "$ac_t""no" 1>&6
8130 fi
8131 done
8132
8133     fi
8134
8135 # Check whether --enable-intfwin or --disable-intfwin was given.
8136 if test "${enable_intfwin+set}" = set; then
8137   enableval="$enable_intfwin"
8138    if test "x$enable_intfwin" != "xno"
8139   then
8140     # Check whether --with-bcbuilder or --without-bcbuilder was given.
8141 if test "${with_bcbuilder+set}" = set; then
8142   withval="$with_bcbuilder"
8143   :
8144 fi
8145
8146     if test "x$with_bcbuilder" != "x"
8147     then
8148       BCBUILDER="$with_bcbuilder"
8149     fi
8150     PLUGINS="${PLUGINS} intfwin"
8151   fi 
8152 fi
8153
8154
8155 # Check whether --enable-ncurses or --disable-ncurses was given.
8156 if test "${enable_ncurses+set}" = set; then
8157   enableval="$enable_ncurses"
8158   if test x$enable_ncurses = xyes; then
8159      PLUGINS="${PLUGINS} ncurses"
8160      ncurses_LDFLAGS="${ncurses_LDFLAGS} -lncurses"
8161    fi
8162 fi
8163
8164
8165 # Check whether --enable-lirc or --disable-lirc was given.
8166 if test "${enable_lirc+set}" = set; then
8167   enableval="$enable_lirc"
8168   :
8169 fi
8170
8171 if test x$enable_lirc = xyes
8172 then
8173   ac_safe=`echo "lirc/lirc_client.h" | sed 'y%./+-%__p_%'`
8174 echo $ac_n "checking for lirc/lirc_client.h""... $ac_c" 1>&6
8175 echo "configure:8176: checking for lirc/lirc_client.h" >&5
8176 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8177   echo $ac_n "(cached) $ac_c" 1>&6
8178 else
8179   cat > conftest.$ac_ext <<EOF
8180 #line 8181 "configure"
8181 #include "confdefs.h"
8182 #include <lirc/lirc_client.h>
8183 EOF
8184 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8185 { (eval echo configure:8186: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8186 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8187 if test -z "$ac_err"; then
8188   rm -rf conftest*
8189   eval "ac_cv_header_$ac_safe=yes"
8190 else
8191   echo "$ac_err" >&5
8192   echo "configure: failed program was:" >&5
8193   cat conftest.$ac_ext >&5
8194   rm -rf conftest*
8195   eval "ac_cv_header_$ac_safe=no"
8196 fi
8197 rm -f conftest*
8198 fi
8199 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8200   echo "$ac_t""yes" 1>&6
8201   echo $ac_n "checking for lirc_init in -llirc_client""... $ac_c" 1>&6
8202 echo "configure:8203: checking for lirc_init in -llirc_client" >&5
8203 ac_lib_var=`echo lirc_client'_'lirc_init | sed 'y%./+-%__p_%'`
8204 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8205   echo $ac_n "(cached) $ac_c" 1>&6
8206 else
8207   ac_save_LIBS="$LIBS"
8208 LIBS="-llirc_client  $LIBS"
8209 cat > conftest.$ac_ext <<EOF
8210 #line 8211 "configure"
8211 #include "confdefs.h"
8212 /* Override any gcc2 internal prototype to avoid an error.  */
8213 /* We use char because int might match the return type of a gcc2
8214     builtin and then its argument prototype would still apply.  */
8215 char lirc_init();
8216
8217 int main() {
8218 lirc_init()
8219 ; return 0; }
8220 EOF
8221 if { (eval echo configure:8222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8222   rm -rf conftest*
8223   eval "ac_cv_lib_$ac_lib_var=yes"
8224 else
8225   echo "configure: failed program was:" >&5
8226   cat conftest.$ac_ext >&5
8227   rm -rf conftest*
8228   eval "ac_cv_lib_$ac_lib_var=no"
8229 fi
8230 rm -f conftest*
8231 LIBS="$ac_save_LIBS"
8232
8233 fi
8234 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8235   echo "$ac_t""yes" 1>&6
8236   have_lirc="true"
8237 else
8238   echo "$ac_t""no" 1>&6
8239 have_lirc="false"
8240 fi
8241
8242 else
8243   echo "$ac_t""no" 1>&6
8244 have_lirc="false"
8245 fi
8246
8247   if test x$have_lirc = xtrue
8248   then
8249     PLUGINS="${PLUGINS} lirc"
8250     lirc_LDFLAGS="${lirc_LDFLAGS} -llirc_client"
8251   fi
8252 fi
8253
8254 # Check whether --with- or --without- was given.
8255 if test "${with_+set}" = set; then
8256   withval="$with_"
8257   :
8258 fi
8259
8260
8261 # Check whether --with-words or --without-words was given.
8262 if test "${with_words+set}" = set; then
8263   withval="$with_words"
8264   :
8265 fi
8266
8267   case "x$with_words" in
8268     xbig)
8269       ac_cv_c_bigendian=yes
8270       ;;
8271     xlittle)
8272       ac_cv_c_bigendian=no
8273       ;;
8274     *)
8275                   echo $ac_n "checking whether the byte order is big-endian""... $ac_c" 1>&6
8276 echo "configure:8277: checking whether the byte order is big-endian" >&5
8277 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
8278   echo $ac_n "(cached) $ac_c" 1>&6
8279 else
8280   ac_cv_c_bigendian=unknown
8281         cat >conftest.c <<EOF
8282         short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
8283         short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
8284         void _a(void) { char*s = (char*)am; s = (char *)ai; }
8285         short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
8286         short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
8287         void _e(void) { char*s = (char*)em; s = (char*)ei; }
8288         int main(void) { _a(); _e(); return 0; }
8289 EOF
8290         
8291         if test -f conftest.c
8292         then 
8293           if ${CC-cc} -c conftest.c -o conftest.o >config.log 2>&1 \
8294               && test -f conftest.o
8295           then
8296             if test "`strings conftest.o | grep BIGenDianSyS`"
8297             then
8298               ac_cv_c_bigendian=yes
8299             fi
8300             if test "`strings conftest.o | grep LiTTleEnDian`"
8301             then
8302               ac_cv_c_bigendian=no
8303             fi
8304           fi
8305         fi
8306       
8307 fi
8308
8309 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
8310       if test x$ac_cv_c_bigendian = xunknown
8311       then
8312         { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
8313       fi
8314       ;;
8315   esac
8316 if test $ac_cv_c_bigendian = yes
8317 then
8318   cat >> confdefs.h <<\EOF
8319 #define WORDS_BIGENDIAN 1
8320 EOF
8321
8322 fi
8323
8324 PROFILING=0
8325
8326 GPROF=0
8327 # Check whether --enable-gprof or --disable-gprof was given.
8328 if test "${enable_gprof+set}" = set; then
8329   enableval="$enable_gprof"
8330    if test "x$enable_gprof" = "xyes"
8331   then
8332     GPROF=1
8333     PROFILING="gprof"
8334   fi
8335
8336 fi
8337
8338
8339 CPROF=0
8340 # Check whether --enable-cprof or --disable-cprof was given.
8341 if test "${enable_cprof+set}" = set; then
8342   enableval="$enable_cprof"
8343    if test "x$enable_cprof" = "xyes"
8344   then
8345     LDFLAGS="${LDFLAGS} -lcprof"
8346     CPROF=1
8347     PROFILING="cprof"
8348   fi
8349
8350 fi
8351
8352
8353 # Check whether --enable-pth or --disable-pth was given.
8354 if test "${enable_pth+set}" = set; then
8355   enableval="$enable_pth"
8356    if test "x$enable_pth" = "xyes"; then
8357     echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
8358 echo "configure:8359: checking for pth_init in -lpth" >&5
8359 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
8360 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8361   echo $ac_n "(cached) $ac_c" 1>&6
8362 else
8363   ac_save_LIBS="$LIBS"
8364 LIBS="-lpth  $LIBS"
8365 cat > conftest.$ac_ext <<EOF
8366 #line 8367 "configure"
8367 #include "confdefs.h"
8368 /* Override any gcc2 internal prototype to avoid an error.  */
8369 /* We use char because int might match the return type of a gcc2
8370     builtin and then its argument prototype would still apply.  */
8371 char pth_init();
8372
8373 int main() {
8374 pth_init()
8375 ; return 0; }
8376 EOF
8377 if { (eval echo configure:8378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8378   rm -rf conftest*
8379   eval "ac_cv_lib_$ac_lib_var=yes"
8380 else
8381   echo "configure: failed program was:" >&5
8382   cat conftest.$ac_ext >&5
8383   rm -rf conftest*
8384   eval "ac_cv_lib_$ac_lib_var=no"
8385 fi
8386 rm -f conftest*
8387 LIBS="$ac_save_LIBS"
8388
8389 fi
8390 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8391   echo "$ac_t""yes" 1>&6
8392     ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8393     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8394   cat >> confdefs.h <<EOF
8395 #define $ac_tr_lib 1
8396 EOF
8397
8398   LIBS="-lpth $LIBS"
8399
8400 else
8401   echo "$ac_t""no" 1>&6
8402 fi
8403
8404     cat > conftest.$ac_ext <<EOF
8405 #line 8406 "configure"
8406 #include "confdefs.h"
8407 #include <pth.h>
8408 EOF
8409 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8410   egrep "pth_init" >/dev/null 2>&1; then
8411   rm -rf conftest*
8412   
8413       cat >> confdefs.h <<\EOF
8414 #define PTH_INIT_IN_PTH_H 1
8415 EOF
8416
8417     THREAD_LIB="-lpth"
8418     fi
8419 fi
8420 rm -f conftest*
8421
8422
8423 fi
8424
8425
8426 # Check whether --enable-st or --disable-st was given.
8427 if test "${enable_st+set}" = set; then
8428   enableval="$enable_st"
8429    if test "x$enable_st" = "xyes"; then
8430     echo $ac_n "checking for st_init in -lst""... $ac_c" 1>&6
8431 echo "configure:8432: checking for st_init in -lst" >&5
8432 ac_lib_var=`echo st'_'st_init | sed 'y%./+-%__p_%'`
8433 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8434   echo $ac_n "(cached) $ac_c" 1>&6
8435 else
8436   ac_save_LIBS="$LIBS"
8437 LIBS="-lst  $LIBS"
8438 cat > conftest.$ac_ext <<EOF
8439 #line 8440 "configure"
8440 #include "confdefs.h"
8441 /* Override any gcc2 internal prototype to avoid an error.  */
8442 /* We use char because int might match the return type of a gcc2
8443     builtin and then its argument prototype would still apply.  */
8444 char st_init();
8445
8446 int main() {
8447 st_init()
8448 ; return 0; }
8449 EOF
8450 if { (eval echo configure:8451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8451   rm -rf conftest*
8452   eval "ac_cv_lib_$ac_lib_var=yes"
8453 else
8454   echo "configure: failed program was:" >&5
8455   cat conftest.$ac_ext >&5
8456   rm -rf conftest*
8457   eval "ac_cv_lib_$ac_lib_var=no"
8458 fi
8459 rm -f conftest*
8460 LIBS="$ac_save_LIBS"
8461
8462 fi
8463 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8464   echo "$ac_t""yes" 1>&6
8465     ac_tr_lib=HAVE_LIB`echo st | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8466     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8467   cat >> confdefs.h <<EOF
8468 #define $ac_tr_lib 1
8469 EOF
8470
8471   LIBS="-lst $LIBS"
8472
8473 else
8474   echo "$ac_t""no" 1>&6
8475 fi
8476
8477     cat > conftest.$ac_ext <<EOF
8478 #line 8479 "configure"
8479 #include "confdefs.h"
8480 #include <st.h>
8481 EOF
8482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8483   egrep "st_init" >/dev/null 2>&1; then
8484   rm -rf conftest*
8485   
8486       cat >> confdefs.h <<\EOF
8487 #define ST_INIT_IN_ST_H 1
8488 EOF
8489
8490     THREAD_LIB="-lst"
8491     fi
8492 fi
8493 rm -f conftest*
8494
8495
8496 fi
8497
8498
8499 vlc_LDFLAGS="${vlc_LDFLAGS} ${THREAD_LIB}"
8500 plugins_LDFLAGS="${plugins_LDFLAGS} ${THREAD_LIB}"
8501
8502 # Check whether --enable-plugins or --disable-plugins was given.
8503 if test "${enable_plugins+set}" = set; then
8504   enableval="$enable_plugins"
8505   if test x$enable_plugins = xno
8506    then
8507      BUILTINS="${BUILTINS} ${PLUGINS}"
8508      PLUGINS=
8509    fi
8510 fi
8511
8512
8513 if test x$ac_cv_header_dlfcn_h = xno -a x$ac_cv_header_image_h = xno -a x$SYS != xmingw32
8514 then
8515   echo "*** Your system doesn't have plug-in support. All plug-ins will be compiled"
8516   echo "as built-in"
8517   BUILTINS="${BUILTINS} ${PLUGINS}"
8518   PLUGINS=
8519 fi
8520
8521 cat >> confdefs.h <<EOF
8522 #define VERSION_MESSAGE "vlc $VERSION $CODENAME Copyright 1996-2002 VideoLAN"
8523 EOF
8524
8525 cat >> confdefs.h <<EOF
8526 #define COPYRIGHT_MESSAGE "VideoLAN Client - version $VERSION $CODENAME - (c) 1996-2002 VideoLAN"
8527 EOF
8528
8529 cat >> confdefs.h <<EOF
8530 #define CONFIGURE_LINE "$CONFIGURE_LINE"
8531 EOF
8532
8533
8534 VLC_SYMBOL="`echo ${VERSION} | tr .- __`"
8535 cat >> confdefs.h <<EOF
8536 #define MODULE_SUFFIX "__MODULE_$VLC_SYMBOL"
8537 EOF
8538
8539 cat >> confdefs.h <<EOF
8540 #define MODULE_SYMBOL $VLC_SYMBOL
8541 EOF
8542
8543
8544 DATA_PATH="${ac_tool_prefix}/share/videolan"
8545
8546 PLUGIN_PATH="${ac_tool_prefix}/share/videolan"
8547
8548
8549 CPPFLAGS="${save_CPPFLAGS}"
8550 CFLAGS="${save_CFLAGS}"
8551 LDFLAGS="${save_LDFLAGS}"
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648 trap '' 1 2 15
8649 cat > confcache <<\EOF
8650 # This file is a shell script that caches the results of configure
8651 # tests run on this system so they can be shared between configure
8652 # scripts and configure runs.  It is not useful on other systems.
8653 # If it contains results you don't want to keep, you may remove or edit it.
8654 #
8655 # By default, configure uses ./config.cache as the cache file,
8656 # creating it if it does not exist already.  You can give configure
8657 # the --cache-file=FILE option to use a different cache file; that is
8658 # what configure does when it calls configure scripts in
8659 # subdirectories, so they share the cache.
8660 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8661 # config.status only pays attention to the cache file if you give it the
8662 # --recheck option to rerun configure.
8663 #
8664 EOF
8665 # The following way of writing the cache mishandles newlines in values,
8666 # but we know of no workaround that is simple, portable, and efficient.
8667 # So, don't put newlines in cache variables' values.
8668 # Ultrix sh set writes to stderr and can't be redirected directly,
8669 # and sets the high bit in the cache file unless we assign to the vars.
8670 (set) 2>&1 |
8671   case `(ac_space=' '; set | grep ac_space) 2>&1` in
8672   *ac_space=\ *)
8673     # `set' does not quote correctly, so add quotes (double-quote substitution
8674     # turns \\\\ into \\, and sed turns \\ into \).
8675     sed -n \
8676       -e "s/'/'\\\\''/g" \
8677       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8678     ;;
8679   *)
8680     # `set' quotes correctly as required by POSIX, so do not add quotes.
8681     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8682     ;;
8683   esac >> confcache
8684 if cmp -s $cache_file confcache; then
8685   :
8686 else
8687   if test -w $cache_file; then
8688     echo "updating cache $cache_file"
8689     cat confcache > $cache_file
8690   else
8691     echo "not updating unwritable cache $cache_file"
8692   fi
8693 fi
8694 rm -f confcache
8695
8696 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8697
8698 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8699 # Let make expand exec_prefix.
8700 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8701
8702 # Any assignment to VPATH causes Sun make to only execute
8703 # the first set of double-colon rules, so remove it if not needed.
8704 # If there is a colon in the path, we need to keep it.
8705 if test "x$srcdir" = x.; then
8706   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
8707 fi
8708
8709 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8710
8711 DEFS=-DHAVE_CONFIG_H
8712
8713 # Without the "./", some shells look in PATH for config.status.
8714 : ${CONFIG_STATUS=./config.status}
8715
8716 echo creating $CONFIG_STATUS
8717 rm -f $CONFIG_STATUS
8718 cat > $CONFIG_STATUS <<EOF
8719 #! /bin/sh
8720 # Generated automatically by configure.
8721 # Run this file to recreate the current configuration.
8722 # This directory was configured as follows,
8723 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8724 #
8725 # $0 $ac_configure_args
8726 #
8727 # Compiler output produced by configure, useful for debugging
8728 # configure, is in ./config.log if it exists.
8729
8730 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8731 for ac_option
8732 do
8733   case "\$ac_option" in
8734   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8735     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8736     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8737   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8738     echo "$CONFIG_STATUS generated by autoconf version 2.13"
8739     exit 0 ;;
8740   -help | --help | --hel | --he | --h)
8741     echo "\$ac_cs_usage"; exit 0 ;;
8742   *) echo "\$ac_cs_usage"; exit 1 ;;
8743   esac
8744 done
8745
8746 ac_given_srcdir=$srcdir
8747 ac_given_INSTALL="$INSTALL"
8748
8749 trap 'rm -fr `echo "Makefile.config Makefile.opts po/Makefile.in include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8750 EOF
8751 cat >> $CONFIG_STATUS <<EOF
8752
8753 # Protect against being on the right side of a sed subst in config.status.
8754 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8755  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8756 $ac_vpsub
8757 $extrasub
8758 s%@SHELL@%$SHELL%g
8759 s%@CFLAGS@%$CFLAGS%g
8760 s%@CPPFLAGS@%$CPPFLAGS%g
8761 s%@CXXFLAGS@%$CXXFLAGS%g
8762 s%@FFLAGS@%$FFLAGS%g
8763 s%@DEFS@%$DEFS%g
8764 s%@LDFLAGS@%$LDFLAGS%g
8765 s%@LIBS@%$LIBS%g
8766 s%@exec_prefix@%$exec_prefix%g
8767 s%@prefix@%$prefix%g
8768 s%@program_transform_name@%$program_transform_name%g
8769 s%@bindir@%$bindir%g
8770 s%@sbindir@%$sbindir%g
8771 s%@libexecdir@%$libexecdir%g
8772 s%@datadir@%$datadir%g
8773 s%@sysconfdir@%$sysconfdir%g
8774 s%@sharedstatedir@%$sharedstatedir%g
8775 s%@localstatedir@%$localstatedir%g
8776 s%@libdir@%$libdir%g
8777 s%@includedir@%$includedir%g
8778 s%@oldincludedir@%$oldincludedir%g
8779 s%@infodir@%$infodir%g
8780 s%@mandir@%$mandir%g
8781 s%@host@%$host%g
8782 s%@host_alias@%$host_alias%g
8783 s%@host_cpu@%$host_cpu%g
8784 s%@host_vendor@%$host_vendor%g
8785 s%@host_os@%$host_os%g
8786 s%@target@%$target%g
8787 s%@target_alias@%$target_alias%g
8788 s%@target_cpu@%$target_cpu%g
8789 s%@target_vendor@%$target_vendor%g
8790 s%@target_os@%$target_os%g
8791 s%@build@%$build%g
8792 s%@build_alias@%$build_alias%g
8793 s%@build_cpu@%$build_cpu%g
8794 s%@build_vendor@%$build_vendor%g
8795 s%@build_os@%$build_os%g
8796 s%@SET_MAKE@%$SET_MAKE%g
8797 s%@CC@%$CC%g
8798 s%@CPP@%$CPP%g
8799 s%@RANLIB@%$RANLIB%g
8800 s%@STRIP@%$STRIP%g
8801 s%@GMAKE@%$GMAKE%g
8802 s%@ALLOCA@%$ALLOCA%g
8803 s%@GLIBC21@%$GLIBC21%g
8804 s%@LIBICONV@%$LIBICONV%g
8805 s%@USE_NLS@%$USE_NLS%g
8806 s%@MSGFMT@%$MSGFMT%g
8807 s%@GMSGFMT@%$GMSGFMT%g
8808 s%@XGETTEXT@%$XGETTEXT%g
8809 s%@INTLBISON@%$INTLBISON%g
8810 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
8811 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8812 s%@CATALOGS@%$CATALOGS%g
8813 s%@CATOBJEXT@%$CATOBJEXT%g
8814 s%@GMOFILES@%$GMOFILES%g
8815 s%@INTLLIBS@%$INTLLIBS%g
8816 s%@INTLOBJS@%$INTLOBJS%g
8817 s%@POFILES@%$POFILES%g
8818 s%@POSUB@%$POSUB%g
8819 s%@DATADIRNAME@%$DATADIRNAME%g
8820 s%@INSTOBJEXT@%$INSTOBJEXT%g
8821 s%@GENCAT@%$GENCAT%g
8822 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8823 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
8824 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8825 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8826 s%@INSTALL_DATA@%$INSTALL_DATA%g
8827 s%@WINDRES@%$WINDRES%g
8828 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
8829 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
8830 s%@SDL_CONFIG@%$SDL_CONFIG%g
8831 s%@ESD_CONFIG@%$ESD_CONFIG%g
8832 s%@ARTS_CONFIG@%$ARTS_CONFIG%g
8833 s%@GTK12_CONFIG@%$GTK12_CONFIG%g
8834 s%@GTK_CONFIG@%$GTK_CONFIG%g
8835 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
8836 s%@DATA_PATH@%$DATA_PATH%g
8837 s%@PLUGIN_PATH@%$PLUGIN_PATH%g
8838 s%@SYS@%$SYS%g
8839 s%@ARCH@%$ARCH%g
8840 s%@PLUGINS@%$PLUGINS%g
8841 s%@BUILTINS@%$BUILTINS%g
8842 s%@ALIASES@%$ALIASES%g
8843 s%@DEBUG@%$DEBUG%g
8844 s%@ASM@%$ASM%g
8845 s%@CPROF@%$CPROF%g
8846 s%@GPROF@%$GPROF%g
8847 s%@OPTIMS@%$OPTIMS%g
8848 s%@TUNING@%$TUNING%g
8849 s%@RELEASE@%$RELEASE%g
8850 s%@MOC@%$MOC%g
8851 s%@BCBUILDER@%$BCBUILDER%g
8852 s%@PACKAGE@%$PACKAGE%g
8853 s%@VERSION@%$VERSION%g
8854 s%@NEED_GETOPT@%$NEED_GETOPT%g
8855 s%@CFLAGS_OPTIM@%$CFLAGS_OPTIM%g
8856 s%@CFLAGS_OPTIM_NODEBUG@%$CFLAGS_OPTIM_NODEBUG%g
8857 s%@vlc_CFLAGS@%$vlc_CFLAGS%g
8858 s%@plugins_CFLAGS@%$plugins_CFLAGS%g
8859 s%@builtins_CFLAGS@%$builtins_CFLAGS%g
8860 s%@a52_CFLAGS@%$a52_CFLAGS%g
8861 s%@arts_CFLAGS@%$arts_CFLAGS%g
8862 s%@dvd_CFLAGS@%$dvd_CFLAGS%g
8863 s%@dvdread_CFLAGS@%$dvdread_CFLAGS%g
8864 s%@mpeg_ts_dvbpsi_CFLAGS@%$mpeg_ts_dvbpsi_CFLAGS%g
8865 s%@directx_CFLAGS@%$directx_CFLAGS%g
8866 s%@esd_CFLAGS@%$esd_CFLAGS%g
8867 s%@ffmpeg_CFLAGS@%$ffmpeg_CFLAGS%g
8868 s%@glide_CFLAGS@%$glide_CFLAGS%g
8869 s%@gnome_CFLAGS@%$gnome_CFLAGS%g
8870 s%@gtk_CFLAGS@%$gtk_CFLAGS%g
8871 s%@kde_CFLAGS@%$kde_CFLAGS%g
8872 s%@idctaltivec_CFLAGS@%$idctaltivec_CFLAGS%g
8873 s%@macosx_CFLAGS@%$macosx_CFLAGS%g
8874 s%@mad_CFLAGS@%$mad_CFLAGS%g
8875 s%@memcpyaltivec_CFLAGS@%$memcpyaltivec_CFLAGS%g
8876 s%@motionaltivec_CFLAGS@%$motionaltivec_CFLAGS%g
8877 s%@qt_CFLAGS@%$qt_CFLAGS%g
8878 s%@sdl_CFLAGS@%$sdl_CFLAGS%g
8879 s%@x11_CFLAGS@%$x11_CFLAGS%g
8880 s%@xvideo_CFLAGS@%$xvideo_CFLAGS%g
8881 s%@vlc_LDFLAGS@%$vlc_LDFLAGS%g
8882 s%@plugins_LDFLAGS@%$plugins_LDFLAGS%g
8883 s%@builtins_LDFLAGS@%$builtins_LDFLAGS%g
8884 s%@a52_LDFLAGS@%$a52_LDFLAGS%g
8885 s%@aa_LDFLAGS@%$aa_LDFLAGS%g
8886 s%@alsa_LDFLAGS@%$alsa_LDFLAGS%g
8887 s%@arts_LDFLAGS@%$arts_LDFLAGS%g
8888 s%@beos_LDFLAGS@%$beos_LDFLAGS%g
8889 s%@chroma_i420_rgb_LDFLAGS@%$chroma_i420_rgb_LDFLAGS%g
8890 s%@directx_LDFLAGS@%$directx_LDFLAGS%g
8891 s%@dsp_LDFLAGS@%$dsp_LDFLAGS%g
8892 s%@dvd_LDFLAGS@%$dvd_LDFLAGS%g
8893 s%@dvdread_LDFLAGS@%$dvdread_LDFLAGS%g
8894 s%@mpeg_ts_dvbpsi_LDFLAGS@%$mpeg_ts_dvbpsi_LDFLAGS%g
8895 s%@esd_LDFLAGS@%$esd_LDFLAGS%g
8896 s%@filter_distort_LDFLAGS@%$filter_distort_LDFLAGS%g
8897 s%@ffmpeg_LDFLAGS@%$ffmpeg_LDFLAGS%g
8898 s%@ggi_LDFLAGS@%$ggi_LDFLAGS%g
8899 s%@glide_LDFLAGS@%$glide_LDFLAGS%g
8900 s%@gnome_LDFLAGS@%$gnome_LDFLAGS%g
8901 s%@gtk_LDFLAGS@%$gtk_LDFLAGS%g
8902 s%@http_LDFLAGS@%$http_LDFLAGS%g
8903 s%@idctaltivec_LDFLAGS@%$idctaltivec_LDFLAGS%g
8904 s%@imdct_LDFLAGS@%$imdct_LDFLAGS%g
8905 s%@imdct3dn_LDFLAGS@%$imdct3dn_LDFLAGS%g
8906 s%@imdctsse_LDFLAGS@%$imdctsse_LDFLAGS%g
8907 s%@ipv4_LDFLAGS@%$ipv4_LDFLAGS%g
8908 s%@ipv6_LDFLAGS@%$ipv6_LDFLAGS%g
8909 s%@kde_LDFLAGS@%$kde_LDFLAGS%g
8910 s%@lirc_LDFLAGS@%$lirc_LDFLAGS%g
8911 s%@macosx_LDFLAGS@%$macosx_LDFLAGS%g
8912 s%@mad_LDFLAGS@%$mad_LDFLAGS%g
8913 s%@memcpyaltivec_LDFLAGS@%$memcpyaltivec_LDFLAGS%g
8914 s%@motionaltivec_LDFLAGS@%$motionaltivec_LDFLAGS%g
8915 s%@ncurses_LDFLAGS@%$ncurses_LDFLAGS%g
8916 s%@qnx_LDFLAGS@%$qnx_LDFLAGS%g
8917 s%@qt_LDFLAGS@%$qt_LDFLAGS%g
8918 s%@rc_LDFLAGS@%$rc_LDFLAGS%g
8919 s%@sdl_LDFLAGS@%$sdl_LDFLAGS%g
8920 s%@vcd_LDFLAGS@%$vcd_LDFLAGS%g
8921 s%@vorbis_LDFLAGS@%$vorbis_LDFLAGS%g
8922 s%@waveout_LDFLAGS@%$waveout_LDFLAGS%g
8923 s%@x11_LDFLAGS@%$x11_LDFLAGS%g
8924 s%@xvideo_LDFLAGS@%$xvideo_LDFLAGS%g
8925
8926 CEOF
8927 EOF
8928
8929 cat >> $CONFIG_STATUS <<\EOF
8930
8931 # Split the substitutions into bite-sized pieces for seds with
8932 # small command number limits, like on Digital OSF/1 and HP-UX.
8933 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8934 ac_file=1 # Number of current file.
8935 ac_beg=1 # First line for current file.
8936 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8937 ac_more_lines=:
8938 ac_sed_cmds=""
8939 while $ac_more_lines; do
8940   if test $ac_beg -gt 1; then
8941     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8942   else
8943     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8944   fi
8945   if test ! -s conftest.s$ac_file; then
8946     ac_more_lines=false
8947     rm -f conftest.s$ac_file
8948   else
8949     if test -z "$ac_sed_cmds"; then
8950       ac_sed_cmds="sed -f conftest.s$ac_file"
8951     else
8952       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8953     fi
8954     ac_file=`expr $ac_file + 1`
8955     ac_beg=$ac_end
8956     ac_end=`expr $ac_end + $ac_max_sed_cmds`
8957   fi
8958 done
8959 if test -z "$ac_sed_cmds"; then
8960   ac_sed_cmds=cat
8961 fi
8962 EOF
8963
8964 cat >> $CONFIG_STATUS <<EOF
8965
8966 CONFIG_FILES=\${CONFIG_FILES-"Makefile.config Makefile.opts po/Makefile.in"}
8967 EOF
8968 cat >> $CONFIG_STATUS <<\EOF
8969 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8970   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8971   case "$ac_file" in
8972   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8973        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8974   *) ac_file_in="${ac_file}.in" ;;
8975   esac
8976
8977   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8978
8979   # Remove last slash and all that follows it.  Not all systems have dirname.
8980   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8981   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8982     # The file is in a subdirectory.
8983     test ! -d "$ac_dir" && mkdir "$ac_dir"
8984     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8985     # A "../" for each directory in $ac_dir_suffix.
8986     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8987   else
8988     ac_dir_suffix= ac_dots=
8989   fi
8990
8991   case "$ac_given_srcdir" in
8992   .)  srcdir=.
8993       if test -z "$ac_dots"; then top_srcdir=.
8994       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8995   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8996   *) # Relative path.
8997     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8998     top_srcdir="$ac_dots$ac_given_srcdir" ;;
8999   esac
9000
9001   case "$ac_given_INSTALL" in
9002   [/$]*) INSTALL="$ac_given_INSTALL" ;;
9003   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9004   esac
9005
9006   echo creating "$ac_file"
9007   rm -f "$ac_file"
9008   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9009   case "$ac_file" in
9010   *Makefile*) ac_comsub="1i\\
9011 # $configure_input" ;;
9012   *) ac_comsub= ;;
9013   esac
9014
9015   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9016   sed -e "$ac_comsub
9017 s%@configure_input@%$configure_input%g
9018 s%@srcdir@%$srcdir%g
9019 s%@top_srcdir@%$top_srcdir%g
9020 s%@INSTALL@%$INSTALL%g
9021 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9022 fi; done
9023 rm -f conftest.s*
9024
9025 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9026 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9027 #
9028 # ac_d sets the value in "#define NAME VALUE" lines.
9029 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
9030 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
9031 ac_dC='\3'
9032 ac_dD='%g'
9033 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9034 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
9035 ac_uB='\([      ]\)%\1#\2define\3'
9036 ac_uC=' '
9037 ac_uD='\4%g'
9038 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9039 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
9040 ac_eB='$%\1#\2define\3'
9041 ac_eC=' '
9042 ac_eD='%g'
9043
9044 if test "${CONFIG_HEADERS+set}" != set; then
9045 EOF
9046 cat >> $CONFIG_STATUS <<EOF
9047   CONFIG_HEADERS="include/defs.h"
9048 EOF
9049 cat >> $CONFIG_STATUS <<\EOF
9050 fi
9051 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9052   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9053   case "$ac_file" in
9054   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9055        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9056   *) ac_file_in="${ac_file}.in" ;;
9057   esac
9058
9059   echo creating $ac_file
9060
9061   rm -f conftest.frag conftest.in conftest.out
9062   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9063   cat $ac_file_inputs > conftest.in
9064
9065 EOF
9066
9067 # Transform confdefs.h into a sed script conftest.vals that substitutes
9068 # the proper values into config.h.in to produce config.h.  And first:
9069 # Protect against being on the right side of a sed subst in config.status.
9070 # Protect against being in an unquoted here document in config.status.
9071 rm -f conftest.vals
9072 cat > conftest.hdr <<\EOF
9073 s/[\\&%]/\\&/g
9074 s%[\\$`]%\\&%g
9075 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9076 s%ac_d%ac_u%gp
9077 s%ac_u%ac_e%gp
9078 EOF
9079 sed -n -f conftest.hdr confdefs.h > conftest.vals
9080 rm -f conftest.hdr
9081
9082 # This sed command replaces #undef with comments.  This is necessary, for
9083 # example, in the case of _POSIX_SOURCE, which is predefined and required
9084 # on some systems where configure will not decide to define it.
9085 cat >> conftest.vals <<\EOF
9086 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9087 EOF
9088
9089 # Break up conftest.vals because some shells have a limit on
9090 # the size of here documents, and old seds have small limits too.
9091
9092 rm -f conftest.tail
9093 while :
9094 do
9095   ac_lines=`grep -c . conftest.vals`
9096   # grep -c gives empty output for an empty file on some AIX systems.
9097   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9098   # Write a limited-size here document to conftest.frag.
9099   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9100   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9101   echo 'CEOF
9102   sed -f conftest.frag conftest.in > conftest.out
9103   rm -f conftest.in
9104   mv conftest.out conftest.in
9105 ' >> $CONFIG_STATUS
9106   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9107   rm -f conftest.vals
9108   mv conftest.tail conftest.vals
9109 done
9110 rm -f conftest.vals
9111
9112 cat >> $CONFIG_STATUS <<\EOF
9113   rm -f conftest.frag conftest.h
9114   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
9115   cat conftest.in >> conftest.h
9116   rm -f conftest.in
9117   if cmp -s $ac_file conftest.h 2>/dev/null; then
9118     echo "$ac_file is unchanged"
9119     rm -f conftest.h
9120   else
9121     # Remove last slash and all that follows it.  Not all systems have dirname.
9122       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9123       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9124       # The file is in a subdirectory.
9125       test ! -d "$ac_dir" && mkdir "$ac_dir"
9126     fi
9127     rm -f $ac_file
9128     mv conftest.h $ac_file
9129   fi
9130 fi; done
9131
9132 EOF
9133 cat >> $CONFIG_STATUS <<EOF
9134
9135
9136 EOF
9137 cat >> $CONFIG_STATUS <<\EOF
9138 for ac_file in $CONFIG_FILES; do
9139         # Support "outfile[:infile[:infile...]]"
9140         case "$ac_file" in
9141           *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9142         esac
9143         # PO directories have a Makefile.in generated from Makefile.in.in.
9144         case "$ac_file" in */Makefile.in)
9145           # Adjust a relative srcdir.
9146           ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9147           ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
9148           ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9149           # In autoconf-2.13 it is called $ac_given_srcdir.
9150           # In autoconf-2.50 it is called $srcdir.
9151           test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9152           case "$ac_given_srcdir" in
9153             .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9154             /*) top_srcdir="$ac_given_srcdir" ;;
9155             *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
9156           esac
9157           if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9158             rm -f "$ac_dir/POTFILES"
9159             test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9160             sed -e "/^#/d" -e "/^[      ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
9161             test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9162             sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9163           fi
9164           ;;
9165         esac
9166       done
9167
9168 exit 0
9169 EOF
9170 chmod +x $CONFIG_STATUS
9171 rm -fr confdefs* $ac_clean_files
9172 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9173
9174
9175 echo "
9176 vlc configuration
9177 --------------------
9178 vlc version           : ${VERSION}
9179 system                : ${SYS}
9180 architecture          : ${ARCH}
9181 optimizations         : ${OPTIMS}
9182 tuning                : ${TUNING}
9183 debug mode            : ${DEBUG}
9184 release               : ${RELEASE}
9185 profiling             : ${PROFILING}
9186 need builtin getopt   : ${NEED_GETOPT}
9187 built-in modules      :${BUILTINS}
9188 plug-in modules       :${PLUGINS}
9189 vlc aliases           :${ALIASES}
9190
9191 You may now tune Makefile.opts at your convenience, for instance to choose
9192 which modules get compiled as plugins.
9193
9194 To build vlc and its plugins, type \`$VLC_MAKE'.
9195 "
9196