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