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