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