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