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