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