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