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