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