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