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