]> git.sesse.net Git - vlc/blob - configure
Handling of URL is now fixed.
[vlc] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Avoid depending upon Character Ranges.
11 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14 as_cr_digits='0123456789'
15 as_cr_alnum=$as_cr_Letters$as_cr_digits
16
17 # Sed expression to map a string onto a valid variable name.
18 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19
20 # Sed expression to map a string onto a valid CPP name.
21 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
22
23 # Be Bourne compatible
24 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25   emulate sh
26   NULLCMD=:
27 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28   set -o posix
29 fi
30
31 # Name of the executable.
32 as_me=`echo "$0" |sed 's,.*[\\/],,'`
33
34 if expr a : '\(a\)' >/dev/null 2>&1; then
35   as_expr=expr
36 else
37   as_expr=false
38 fi
39
40 rm -f conf$$ conf$$.exe conf$$.file
41 echo >conf$$.file
42 if ln -s conf$$.file conf$$ 2>/dev/null; then
43   # We could just check for DJGPP; but this test a) works b) is more generic
44   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45   if test -f conf$$.exe; then
46     # Don't use ln at all; we don't have any links
47     as_ln_s='cp -p'
48   else
49     as_ln_s='ln -s'
50   fi
51 elif ln conf$$.file conf$$ 2>/dev/null; then
52   as_ln_s=ln
53 else
54   as_ln_s='cp -p'
55 fi
56 rm -f conf$$ conf$$.exe conf$$.file
57
58 as_executable_p="test -f"
59
60 # Support unset when possible.
61 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
62   as_unset=unset
63 else
64   as_unset=false
65 fi
66
67 # NLS nuisances.
68 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
69 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
70 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
71 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
72 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
73 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
74 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
75 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
76
77 # IFS
78 # We need space, tab and new line, in precisely that order.
79 as_nl='
80 '
81 IFS="   $as_nl"
82
83 # CDPATH.
84 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
85
86 # Name of the host.
87 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
88 # so uname gets run too.
89 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
90
91 exec 6>&1
92
93 #
94 # Initializations.
95 #
96 ac_default_prefix=/usr/local
97 cross_compiling=no
98 subdirs=
99 MFLAGS= MAKEFLAGS=
100 SHELL=${CONFIG_SHELL-/bin/sh}
101
102 # Maximum number of lines to put in a shell here document.
103 # This variable seems obsolete.  It should probably be removed, and
104 # only ac_max_sed_lines should be used.
105 : ${ac_max_here_lines=38}
106
107 ac_unique_file="include/main.h"
108 # Factoring default headers for most tests.
109 ac_includes_default="\
110 #include <stdio.h>
111 #if HAVE_SYS_TYPES_H
112 # include <sys/types.h>
113 #endif
114 #if HAVE_SYS_STAT_H
115 # include <sys/stat.h>
116 #endif
117 #if STDC_HEADERS
118 # include <stdlib.h>
119 # include <stddef.h>
120 #else
121 # if HAVE_STDLIB_H
122 #  include <stdlib.h>
123 # endif
124 #endif
125 #if HAVE_STRING_H
126 # if !STDC_HEADERS && HAVE_MEMORY_H
127 #  include <memory.h>
128 # endif
129 # include <string.h>
130 #endif
131 #if HAVE_STRINGS_H
132 # include <strings.h>
133 #endif
134 #if HAVE_INTTYPES_H
135 # include <inttypes.h>
136 #else
137 # if HAVE_STDINT_H
138 #  include <stdint.h>
139 # endif
140 #endif
141 #if HAVE_UNISTD_H
142 # include <unistd.h>
143 #endif"
144
145 # Initialize some variables set by options.
146 ac_init_help=
147 ac_init_version=false
148 # The variables have the same names as the options, with
149 # dashes changed to underlines.
150 cache_file=/dev/null
151 exec_prefix=NONE
152 no_create=
153 no_recursion=
154 prefix=NONE
155 program_prefix=NONE
156 program_suffix=NONE
157 program_transform_name=s,x,x,
158 silent=
159 site=
160 srcdir=
161 verbose=
162 x_includes=NONE
163 x_libraries=NONE
164
165 # Installation directory options.
166 # These are left unexpanded so users can "make install exec_prefix=/foo"
167 # and all the variables that are supposed to be based on exec_prefix
168 # by default will actually change.
169 # Use braces instead of parens because sh, perl, etc. also accept them.
170 bindir='${exec_prefix}/bin'
171 sbindir='${exec_prefix}/sbin'
172 libexecdir='${exec_prefix}/libexec'
173 datadir='${prefix}/share'
174 sysconfdir='${prefix}/etc'
175 sharedstatedir='${prefix}/com'
176 localstatedir='${prefix}/var'
177 libdir='${exec_prefix}/lib'
178 includedir='${prefix}/include'
179 oldincludedir='/usr/include'
180 infodir='${prefix}/info'
181 mandir='${prefix}/man'
182
183 # Identity of this package.
184 PACKAGE_NAME=
185 PACKAGE_TARNAME=
186 PACKAGE_VERSION=
187 PACKAGE_STRING=
188 PACKAGE_BUGREPORT=
189
190 ac_prev=
191 for ac_option
192 do
193   # If the previous option needs an argument, assign it.
194   if test -n "$ac_prev"; then
195     eval "$ac_prev=\$ac_option"
196     ac_prev=
197     continue
198   fi
199
200   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
201
202   # Accept the important Cygnus configure options, so we can diagnose typos.
203
204   case $ac_option in
205
206   -bindir | --bindir | --bindi | --bind | --bin | --bi)
207     ac_prev=bindir ;;
208   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
209     bindir=$ac_optarg ;;
210
211   -build | --build | --buil | --bui | --bu)
212     ac_prev=build_alias ;;
213   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
214     build_alias=$ac_optarg ;;
215
216   -cache-file | --cache-file | --cache-fil | --cache-fi \
217   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
218     ac_prev=cache_file ;;
219   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
220   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
221     cache_file=$ac_optarg ;;
222
223   --config-cache | -C)
224     cache_file=config.cache ;;
225
226   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
227     ac_prev=datadir ;;
228   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
229   | --da=*)
230     datadir=$ac_optarg ;;
231
232   -disable-* | --disable-*)
233     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
234     # Reject names that are not valid shell variable names.
235     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
236       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
237    { (exit 1); exit 1; }; }
238     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
239     eval "enable_$ac_feature=no" ;;
240
241   -enable-* | --enable-*)
242     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
243     # Reject names that are not valid shell variable names.
244     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
245       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
246    { (exit 1); exit 1; }; }
247     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
248     case $ac_option in
249       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
250       *) ac_optarg=yes ;;
251     esac
252     eval "enable_$ac_feature='$ac_optarg'" ;;
253
254   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
255   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
256   | --exec | --exe | --ex)
257     ac_prev=exec_prefix ;;
258   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
259   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
260   | --exec=* | --exe=* | --ex=*)
261     exec_prefix=$ac_optarg ;;
262
263   -gas | --gas | --ga | --g)
264     # Obsolete; use --with-gas.
265     with_gas=yes ;;
266
267   -help | --help | --hel | --he | -h)
268     ac_init_help=long ;;
269   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
270     ac_init_help=recursive ;;
271   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
272     ac_init_help=short ;;
273
274   -host | --host | --hos | --ho)
275     ac_prev=host_alias ;;
276   -host=* | --host=* | --hos=* | --ho=*)
277     host_alias=$ac_optarg ;;
278
279   -includedir | --includedir | --includedi | --included | --include \
280   | --includ | --inclu | --incl | --inc)
281     ac_prev=includedir ;;
282   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
283   | --includ=* | --inclu=* | --incl=* | --inc=*)
284     includedir=$ac_optarg ;;
285
286   -infodir | --infodir | --infodi | --infod | --info | --inf)
287     ac_prev=infodir ;;
288   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
289     infodir=$ac_optarg ;;
290
291   -libdir | --libdir | --libdi | --libd)
292     ac_prev=libdir ;;
293   -libdir=* | --libdir=* | --libdi=* | --libd=*)
294     libdir=$ac_optarg ;;
295
296   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
297   | --libexe | --libex | --libe)
298     ac_prev=libexecdir ;;
299   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
300   | --libexe=* | --libex=* | --libe=*)
301     libexecdir=$ac_optarg ;;
302
303   -localstatedir | --localstatedir | --localstatedi | --localstated \
304   | --localstate | --localstat | --localsta | --localst \
305   | --locals | --local | --loca | --loc | --lo)
306     ac_prev=localstatedir ;;
307   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
308   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
309   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
310     localstatedir=$ac_optarg ;;
311
312   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
313     ac_prev=mandir ;;
314   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
315     mandir=$ac_optarg ;;
316
317   -nfp | --nfp | --nf)
318     # Obsolete; use --without-fp.
319     with_fp=no ;;
320
321   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
322   | --no-cr | --no-c)
323     no_create=yes ;;
324
325   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
326   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
327     no_recursion=yes ;;
328
329   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
330   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
331   | --oldin | --oldi | --old | --ol | --o)
332     ac_prev=oldincludedir ;;
333   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
334   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
335   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
336     oldincludedir=$ac_optarg ;;
337
338   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
339     ac_prev=prefix ;;
340   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
341     prefix=$ac_optarg ;;
342
343   -program-prefix | --program-prefix | --program-prefi | --program-pref \
344   | --program-pre | --program-pr | --program-p)
345     ac_prev=program_prefix ;;
346   -program-prefix=* | --program-prefix=* | --program-prefi=* \
347   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
348     program_prefix=$ac_optarg ;;
349
350   -program-suffix | --program-suffix | --program-suffi | --program-suff \
351   | --program-suf | --program-su | --program-s)
352     ac_prev=program_suffix ;;
353   -program-suffix=* | --program-suffix=* | --program-suffi=* \
354   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
355     program_suffix=$ac_optarg ;;
356
357   -program-transform-name | --program-transform-name \
358   | --program-transform-nam | --program-transform-na \
359   | --program-transform-n | --program-transform- \
360   | --program-transform | --program-transfor \
361   | --program-transfo | --program-transf \
362   | --program-trans | --program-tran \
363   | --progr-tra | --program-tr | --program-t)
364     ac_prev=program_transform_name ;;
365   -program-transform-name=* | --program-transform-name=* \
366   | --program-transform-nam=* | --program-transform-na=* \
367   | --program-transform-n=* | --program-transform-=* \
368   | --program-transform=* | --program-transfor=* \
369   | --program-transfo=* | --program-transf=* \
370   | --program-trans=* | --program-tran=* \
371   | --progr-tra=* | --program-tr=* | --program-t=*)
372     program_transform_name=$ac_optarg ;;
373
374   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
375   | -silent | --silent | --silen | --sile | --sil)
376     silent=yes ;;
377
378   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
379     ac_prev=sbindir ;;
380   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
381   | --sbi=* | --sb=*)
382     sbindir=$ac_optarg ;;
383
384   -sharedstatedir | --sharedstatedir | --sharedstatedi \
385   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
386   | --sharedst | --shareds | --shared | --share | --shar \
387   | --sha | --sh)
388     ac_prev=sharedstatedir ;;
389   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
390   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
391   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
392   | --sha=* | --sh=*)
393     sharedstatedir=$ac_optarg ;;
394
395   -site | --site | --sit)
396     ac_prev=site ;;
397   -site=* | --site=* | --sit=*)
398     site=$ac_optarg ;;
399
400   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
401     ac_prev=srcdir ;;
402   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
403     srcdir=$ac_optarg ;;
404
405   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
406   | --syscon | --sysco | --sysc | --sys | --sy)
407     ac_prev=sysconfdir ;;
408   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
409   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
410     sysconfdir=$ac_optarg ;;
411
412   -target | --target | --targe | --targ | --tar | --ta | --t)
413     ac_prev=target_alias ;;
414   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
415     target_alias=$ac_optarg ;;
416
417   -v | -verbose | --verbose | --verbos | --verbo | --verb)
418     verbose=yes ;;
419
420   -version | --version | --versio | --versi | --vers | -V)
421     ac_init_version=: ;;
422
423   -with-* | --with-*)
424     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
425     # Reject names that are not valid shell variable names.
426     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
427       { echo "$as_me: error: invalid package name: $ac_package" >&2
428    { (exit 1); exit 1; }; }
429     ac_package=`echo $ac_package| sed 's/-/_/g'`
430     case $ac_option in
431       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
432       *) ac_optarg=yes ;;
433     esac
434     eval "with_$ac_package='$ac_optarg'" ;;
435
436   -without-* | --without-*)
437     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
438     # Reject names that are not valid shell variable names.
439     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
440       { echo "$as_me: error: invalid package name: $ac_package" >&2
441    { (exit 1); exit 1; }; }
442     ac_package=`echo $ac_package | sed 's/-/_/g'`
443     eval "with_$ac_package=no" ;;
444
445   --x)
446     # Obsolete; use --with-x.
447     with_x=yes ;;
448
449   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
450   | --x-incl | --x-inc | --x-in | --x-i)
451     ac_prev=x_includes ;;
452   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
453   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
454     x_includes=$ac_optarg ;;
455
456   -x-libraries | --x-libraries | --x-librarie | --x-librari \
457   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
458     ac_prev=x_libraries ;;
459   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
460   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
461     x_libraries=$ac_optarg ;;
462
463   -*) { echo "$as_me: error: unrecognized option: $ac_option
464 Try \`$0 --help' for more information." >&2
465    { (exit 1); exit 1; }; }
466     ;;
467
468   *=*)
469     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
470     # Reject names that are not valid shell variable names.
471     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
472       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
473    { (exit 1); exit 1; }; }
474     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
475     eval "$ac_envvar='$ac_optarg'"
476     export $ac_envvar ;;
477
478   *)
479     # FIXME: should be removed in autoconf 3.0.
480     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
481     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
482       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
483     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
484     ;;
485
486   esac
487 done
488
489 if test -n "$ac_prev"; then
490   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
491   { echo "$as_me: error: missing argument to $ac_option" >&2
492    { (exit 1); exit 1; }; }
493 fi
494
495 # Be sure to have absolute paths.
496 for ac_var in exec_prefix prefix
497 do
498   eval ac_val=$`echo $ac_var`
499   case $ac_val in
500     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
501     *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
502    { (exit 1); exit 1; }; };;
503   esac
504 done
505
506 # Be sure to have absolute paths.
507 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
508               localstatedir libdir includedir oldincludedir infodir mandir
509 do
510   eval ac_val=$`echo $ac_var`
511   case $ac_val in
512     [\\/$]* | ?:[\\/]* ) ;;
513     *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
514    { (exit 1); exit 1; }; };;
515   esac
516 done
517
518 # There might be people who depend on the old broken behavior: `$host'
519 # used to hold the argument of --host etc.
520 build=$build_alias
521 host=$host_alias
522 target=$target_alias
523
524 # FIXME: should be removed in autoconf 3.0.
525 if test "x$host_alias" != x; then
526   if test "x$build_alias" = x; then
527     cross_compiling=maybe
528     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
529     If a cross compiler is detected then cross compile mode will be used." >&2
530   elif test "x$build_alias" != "x$host_alias"; then
531     cross_compiling=yes
532   fi
533 fi
534
535 ac_tool_prefix=
536 test -n "$host_alias" && ac_tool_prefix=$host_alias-
537
538 test "$silent" = yes && exec 6>/dev/null
539
540 # Find the source files, if location was not specified.
541 if test -z "$srcdir"; then
542   ac_srcdir_defaulted=yes
543   # Try the directory containing this script, then its parent.
544   ac_prog=$0
545   ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
546   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
547   srcdir=$ac_confdir
548   if test ! -r $srcdir/$ac_unique_file; then
549     srcdir=..
550   fi
551 else
552   ac_srcdir_defaulted=no
553 fi
554 if test ! -r $srcdir/$ac_unique_file; then
555   if test "$ac_srcdir_defaulted" = yes; then
556     { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
557    { (exit 1); exit 1; }; }
558   else
559     { echo "$as_me: error: cannot find sources in $srcdir" >&2
560    { (exit 1); exit 1; }; }
561   fi
562 fi
563 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
564 ac_env_build_alias_set=${build_alias+set}
565 ac_env_build_alias_value=$build_alias
566 ac_cv_env_build_alias_set=${build_alias+set}
567 ac_cv_env_build_alias_value=$build_alias
568 ac_env_host_alias_set=${host_alias+set}
569 ac_env_host_alias_value=$host_alias
570 ac_cv_env_host_alias_set=${host_alias+set}
571 ac_cv_env_host_alias_value=$host_alias
572 ac_env_target_alias_set=${target_alias+set}
573 ac_env_target_alias_value=$target_alias
574 ac_cv_env_target_alias_set=${target_alias+set}
575 ac_cv_env_target_alias_value=$target_alias
576 ac_env_CC_set=${CC+set}
577 ac_env_CC_value=$CC
578 ac_cv_env_CC_set=${CC+set}
579 ac_cv_env_CC_value=$CC
580 ac_env_CFLAGS_set=${CFLAGS+set}
581 ac_env_CFLAGS_value=$CFLAGS
582 ac_cv_env_CFLAGS_set=${CFLAGS+set}
583 ac_cv_env_CFLAGS_value=$CFLAGS
584 ac_env_LDFLAGS_set=${LDFLAGS+set}
585 ac_env_LDFLAGS_value=$LDFLAGS
586 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
587 ac_cv_env_LDFLAGS_value=$LDFLAGS
588 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
589 ac_env_CPPFLAGS_value=$CPPFLAGS
590 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
591 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
592 ac_env_CPP_set=${CPP+set}
593 ac_env_CPP_value=$CPP
594 ac_cv_env_CPP_set=${CPP+set}
595 ac_cv_env_CPP_value=$CPP
596
597 #
598 # Report the --help message.
599 #
600 if test "$ac_init_help" = "long"; then
601   # Omit some internal or obsolete options to make the list less imposing.
602   # This message is too long to be a string in the A/UX 3.1 sh.
603   cat <<EOF
604 \`configure' configures this package to adapt to many kinds of systems.
605
606 Usage: $0 [OPTION]... [VAR=VALUE]...
607
608 To assign environment variables (e.g., CC, CFLAGS...), specify them as
609 VAR=VALUE.  See below for descriptions of some of the useful variables.
610
611 Defaults for the options are specified in brackets.
612
613 Configuration:
614   -h, --help              display this help and exit
615       --help=short        display options specific to this package
616       --help=recursive    display the short help of all the included packages
617   -V, --version           display version information and exit
618   -q, --quiet, --silent   do not print \`checking...' messages
619       --cache-file=FILE   cache test results in FILE [disabled]
620   -C, --config-cache      alias for \`--cache-file=config.cache'
621   -n, --no-create         do not create output files
622       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
623
624 EOF
625
626   cat <<EOF
627 Installation directories:
628   --prefix=PREFIX         install architecture-independent files in PREFIX
629                           [$ac_default_prefix]
630   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
631                           [PREFIX]
632
633 By default, \`make install' will install all the files in
634 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
635 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
636 for instance \`--prefix=\$HOME'.
637
638 For better control, use the options below.
639
640 Fine tuning of the installation directories:
641   --bindir=DIR           user executables [EPREFIX/bin]
642   --sbindir=DIR          system admin executables [EPREFIX/sbin]
643   --libexecdir=DIR       program executables [EPREFIX/libexec]
644   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
645   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
646   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
647   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
648   --libdir=DIR           object code libraries [EPREFIX/lib]
649   --includedir=DIR       C header files [PREFIX/include]
650   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
651   --infodir=DIR          info documentation [PREFIX/info]
652   --mandir=DIR           man documentation [PREFIX/man]
653 EOF
654
655   cat <<\EOF
656
657 System types:
658   --build=BUILD     configure for building on BUILD [guessed]
659   --host=HOST       build programs to run on HOST [BUILD]
660   --target=TARGET   configure for building compilers for TARGET [HOST]
661 EOF
662 fi
663
664 if test -n "$ac_init_help"; then
665
666   cat <<\EOF
667
668 Optional Features:
669   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
670   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
671   --disable-nls           do not use Native Language Support
672   --disable-optimizations disable compiler optimizations (default enabled)
673   --disable-altivec       disable altivec optimizations (default enabled on PPC)
674   --enable-debug          debug mode (default disabled)
675   --enable-release        activate extra optimizations (default disabled)
676   --enable-dvd            DVD input module (default enabled)
677   --enable-dvdread        dvdread input module (default disabled)
678   --enable-dvbpsi        dvbpsi ts demux module (default disabled)
679   --enable-vcd            VCD support for Linux, FreeBSD and MacOS X (default enabled)
680   --enable-satellite      satellite card support (default disabled)
681   --enable-avi            AVI demux module (default enabled)
682   --enable-mad            libmad module (default disabled)
683   --enable-ffmpeg         ffmpeg codec (default disabled)
684   --enable-a52            AC3 support with liba52 (default enabled)
685   --enable-vorbis         Ogg/Vorbis decoder support (default enabled)
686   --enable-x11            X11 support (default enabled)
687   --enable-xvideo         XVideo support (default enabled)
688   --enable-sdl            SDL support (default enabled)
689   --enable-qte            QT Embedded support (default disabled)
690   --enable-directx        Win32 DirectX support (default enabled on Win32)
691   --enable-fb             Linux framebuffer support (default enabled on Linux)
692   --enable-mga            Linux kernel Matrox support (default disabled)
693   --enable-ggi            GGI support (default disabled)
694   --enable-glide          Glide (3dfx) support (default disabled)
695   --enable-aa             aalib output (default disabled)
696   --enable-dsp            Linux /dev/dsp support (enabled on Linux)
697   --enable-esd            Esound library support (default disabled)
698   --enable-arts           aRts sound server (default disabled)
699   --enable-alsa           ALSA sound support for Linux (default disabled)
700   --enable-waveout        Win32 waveOut module (default enabled on Win32)
701   --enable-gtk            Gtk+ support (default enabled)
702   --enable-familiar       Familiar Gtk+ support (default disabled)
703   --enable-gnome          Gnome interface support (default disabled)
704   --enable-qt             Qt interface support (default disabled)
705   --enable-kde            KDE interface support (default disabled)
706   --enable-opie           Qt embedded interface support (default disabled)
707   --enable-macosx         MacOS X support (default enabled on MacOS X)
708   --enable-qnx            QNX RTOS support (default enabled on QNX RTOS)
709   --enable-intfwin        Win32 interface support (default disabled)
710   --enable-ncurses        ncurses interface support (default disabled)
711   --enable-lirc           lirc support (default disabled)
712   --enable-gprof          gprof profiling (default disabled)
713   --enable-cprof          cprof profiling (default disabled)
714   --enable-pth            GNU Pth support (default disabled)
715   --enable-st             State Threads (default disabled)
716   --disable-plugins       make all plug-ins built-in (default plug-ins enabled)
717
718 Optional Packages:
719   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
720   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
721   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
722   --with-included-gettext use the GNU gettext library included here
723
724 Optimization options:
725   --with-tuning=ARCH      enable special tuning for an architecture
726                           (default i686 on IA-32 and 750 on PPC)
727 Input plugins:
728     --with-dvdcss=PATH    libdvdcss headers and libraries
729     --with-dvdcss-tree=PATH libdvdcss tree for static linking
730     --with-dvdread=PATH   libdvdread headers and libraries
731     --with-dvbpsi=PATH    libdvbpsi headers and libraries
732     --with-dvbpsi-tree=PATH libdvbpsi tree for static linking
733 Codec plugins:
734     --with-mad=PATH       path to libmad
735     --with-mad-tree=PATH  mad tree for static linking
736     --with-ffmpeg=PATH    path to ffmpeg installation
737     --with-ffmpeg-tree=PATH ffmpeg tree for static linking
738     --with-a52-tree=PATH  a52dec tree for static linking
739 Video plugins:
740     --with-sdl-config-path=PATH sdl-config path (default search in \$PATH)
741     --with-qte=PATH    Qt Embedded headers and libraries
742     --with-directx=PATH   Win32 DirectX headers and libraries
743     --with-ggi=PATH       path to libggi
744     --with-glide=PATH     path to libglide
745 Audio plugins:
746 Interface plugins:
747     --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)
748     --with-bcbuilder=PATH Borland C++ Builder installation path
749 Misc options:
750   --with-words=endianness set endianness (big or little)
751
752 Some influential environment variables:
753   CC          C compiler command
754   CFLAGS      C compiler flags
755   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
756               nonstandard directory <lib dir>
757   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
758               headers in a nonstandard directory <include dir>
759   CPP         C preprocessor
760
761 Use these variables to override the choices made by `configure' or to help
762 it to find libraries and programs with nonstandard names/locations.
763
764 EOF
765 fi
766
767 if test "$ac_init_help" = "recursive"; then
768   # If there are subdirs, report their specific --help.
769   ac_popdir=`pwd`
770   for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
771     cd $ac_subdir
772     # A "../" for each directory in /$ac_subdir.
773     ac_dots=`echo $ac_subdir |
774              sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
775
776     case $srcdir in
777     .) # No --srcdir option.  We are building in place.
778       ac_sub_srcdir=$srcdir ;;
779     [\\/]* | ?:[\\/]* ) # Absolute path.
780       ac_sub_srcdir=$srcdir/$ac_subdir ;;
781     *) # Relative path.
782       ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
783     esac
784
785     # Check for guested configure; otherwise get Cygnus style configure.
786     if test -f $ac_sub_srcdir/configure.gnu; then
787       echo
788       $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
789     elif test -f $ac_sub_srcdir/configure; then
790       echo
791       $SHELL $ac_sub_srcdir/configure  --help=recursive
792     elif test -f $ac_sub_srcdir/configure.ac ||
793            test -f $ac_sub_srcdir/configure.in; then
794       echo
795       $ac_configure --help
796     else
797       echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
798     fi
799     cd $ac_popdir
800   done
801 fi
802
803 test -n "$ac_init_help" && exit 0
804 if $ac_init_version; then
805   cat <<\EOF
806
807 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
808 Free Software Foundation, Inc.
809 This configure script is free software; the Free Software Foundation
810 gives unlimited permission to copy, distribute and modify it.
811 EOF
812   exit 0
813 fi
814 exec 5>config.log
815 cat >&5 <<EOF
816 This file contains any messages produced by compilers while
817 running configure, to aid debugging if configure makes a mistake.
818
819 It was created by $as_me, which was
820 generated by GNU Autoconf 2.52.  Invocation command line was
821
822   $ $0 $@
823
824 EOF
825 {
826 cat <<_ASUNAME
827 ## ---------- ##
828 ## Platform.  ##
829 ## ---------- ##
830
831 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
832 uname -m = `(uname -m) 2>/dev/null || echo unknown`
833 uname -r = `(uname -r) 2>/dev/null || echo unknown`
834 uname -s = `(uname -s) 2>/dev/null || echo unknown`
835 uname -v = `(uname -v) 2>/dev/null || echo unknown`
836
837 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
838 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
839
840 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
841 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
842 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
843 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
844 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
845 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
846 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
847
848 PATH = $PATH
849
850 _ASUNAME
851 } >&5
852
853 cat >&5 <<EOF
854 ## ------------ ##
855 ## Core tests.  ##
856 ## ------------ ##
857
858 EOF
859
860 # Keep a trace of the command line.
861 # Strip out --no-create and --no-recursion so they do not pile up.
862 # Also quote any args containing shell meta-characters.
863 ac_configure_args=
864 ac_sep=
865 for ac_arg
866 do
867   case $ac_arg in
868   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
869   | --no-cr | --no-c) ;;
870   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
871   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
872   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
873     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
874     ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
875     ac_sep=" " ;;
876   *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
877      ac_sep=" " ;;
878   esac
879   # Get rid of the leading space.
880 done
881
882 # When interrupted or exit'd, cleanup temporary files, and complete
883 # config.log.  We remove comments because anyway the quotes in there
884 # would cause problems or look ugly.
885 trap 'exit_status=$?
886   # Save into config.log some information that might help in debugging.
887   echo >&5
888   echo "## ----------------- ##" >&5
889   echo "## Cache variables.  ##" >&5
890   echo "## ----------------- ##" >&5
891   echo >&5
892   # The following way of writing the cache mishandles newlines in values,
893 {
894   (set) 2>&1 |
895     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
896     *ac_space=\ *)
897       sed -n \
898         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
899           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
900       ;;
901     *)
902       sed -n \
903         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
904       ;;
905     esac;
906 } >&5
907   sed "/^$/d" confdefs.h >conftest.log
908   if test -s conftest.log; then
909     echo >&5
910     echo "## ------------ ##" >&5
911     echo "## confdefs.h.  ##" >&5
912     echo "## ------------ ##" >&5
913     echo >&5
914     cat conftest.log >&5
915   fi
916   (echo; echo) >&5
917   test "$ac_signal" != 0 &&
918     echo "$as_me: caught signal $ac_signal" >&5
919   echo "$as_me: exit $exit_status" >&5
920   rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
921     exit $exit_status
922      ' 0
923 for ac_signal in 1 2 13 15; do
924   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
925 done
926 ac_signal=0
927
928 # confdefs.h avoids OS command line length limits that DEFS can exceed.
929 rm -rf conftest* confdefs.h
930 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
931 echo >confdefs.h
932
933 # Let the site file select an alternate cache file if it wants to.
934 # Prefer explicitly selected file to automatically selected ones.
935 if test -z "$CONFIG_SITE"; then
936   if test "x$prefix" != xNONE; then
937     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
938   else
939     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
940   fi
941 fi
942 for ac_site_file in $CONFIG_SITE; do
943   if test -r "$ac_site_file"; then
944     { echo "$as_me:944: loading site script $ac_site_file" >&5
945 echo "$as_me: loading site script $ac_site_file" >&6;}
946     cat "$ac_site_file" >&5
947     . "$ac_site_file"
948   fi
949 done
950
951 if test -r "$cache_file"; then
952   # Some versions of bash will fail to source /dev/null (special
953   # files actually), so we avoid doing that.
954   if test -f "$cache_file"; then
955     { echo "$as_me:955: loading cache $cache_file" >&5
956 echo "$as_me: loading cache $cache_file" >&6;}
957     case $cache_file in
958       [\\/]* | ?:[\\/]* ) . $cache_file;;
959       *)                      . ./$cache_file;;
960     esac
961   fi
962 else
963   { echo "$as_me:963: creating cache $cache_file" >&5
964 echo "$as_me: creating cache $cache_file" >&6;}
965   >$cache_file
966 fi
967
968 # Check that the precious variables saved in the cache have kept the same
969 # value.
970 ac_cache_corrupted=false
971 for ac_var in `(set) 2>&1 |
972                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
973   eval ac_old_set=\$ac_cv_env_${ac_var}_set
974   eval ac_new_set=\$ac_env_${ac_var}_set
975   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
976   eval ac_new_val="\$ac_env_${ac_var}_value"
977   case $ac_old_set,$ac_new_set in
978     set,)
979       { echo "$as_me:979: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
980 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
981       ac_cache_corrupted=: ;;
982     ,set)
983       { echo "$as_me:983: error: \`$ac_var' was not set in the previous run" >&5
984 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
985       ac_cache_corrupted=: ;;
986     ,);;
987     *)
988       if test "x$ac_old_val" != "x$ac_new_val"; then
989         { echo "$as_me:989: error: \`$ac_var' has changed since the previous run:" >&5
990 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
991         { echo "$as_me:991:   former value:  $ac_old_val" >&5
992 echo "$as_me:   former value:  $ac_old_val" >&2;}
993         { echo "$as_me:993:   current value: $ac_new_val" >&5
994 echo "$as_me:   current value: $ac_new_val" >&2;}
995         ac_cache_corrupted=:
996       fi;;
997   esac
998   # Pass precious variables to config.status.  It doesn't matter if
999   # we pass some twice (in addition to the command line arguments).
1000   if test "$ac_new_set" = set; then
1001     case $ac_new_val in
1002     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1003       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1004       ac_configure_args="$ac_configure_args '$ac_arg'"
1005       ;;
1006     *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1007        ;;
1008     esac
1009   fi
1010 done
1011 if $ac_cache_corrupted; then
1012   { echo "$as_me:1012: error: changes in the environment can compromise the build" >&5
1013 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1014   { { echo "$as_me:1014: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1015 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1016    { (exit 1); exit 1; }; }
1017 fi
1018
1019 ac_ext=c
1020 ac_cpp='$CPP $CPPFLAGS'
1021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1024
1025 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1026   *c*,-n*) ECHO_N= ECHO_C='
1027 ' ECHO_T='      ' ;;
1028   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1029   *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
1030 esac
1031 echo "#! $SHELL" >conftest.sh
1032 echo  "exit 0"   >>conftest.sh
1033 chmod +x conftest.sh
1034 if { (echo "$as_me:1034: PATH=\".;.\"; conftest.sh") >&5
1035   (PATH=".;."; conftest.sh) 2>&5
1036   ac_status=$?
1037   echo "$as_me:1037: \$? = $ac_status" >&5
1038   (exit $ac_status); }; then
1039   ac_path_separator=';'
1040 else
1041   ac_path_separator=:
1042 fi
1043 PATH_SEPARATOR="$ac_path_separator"
1044 rm -f conftest.sh
1045
1046 ac_config_headers="$ac_config_headers include/defs.h"
1047
1048 ac_aux_dir=
1049 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1050   if test -f $ac_dir/install-sh; then
1051     ac_aux_dir=$ac_dir
1052     ac_install_sh="$ac_aux_dir/install-sh -c"
1053     break
1054   elif test -f $ac_dir/install.sh; then
1055     ac_aux_dir=$ac_dir
1056     ac_install_sh="$ac_aux_dir/install.sh -c"
1057     break
1058   elif test -f $ac_dir/shtool; then
1059     ac_aux_dir=$ac_dir
1060     ac_install_sh="$ac_aux_dir/shtool install -c"
1061     break
1062   fi
1063 done
1064 if test -z "$ac_aux_dir"; then
1065   { { echo "$as_me:1065: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1066 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1067    { (exit 1); exit 1; }; }
1068 fi
1069 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1070 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1071 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1072
1073 # Make sure we can run config.sub.
1074 $ac_config_sub sun4 >/dev/null 2>&1 ||
1075   { { echo "$as_me:1075: error: cannot run $ac_config_sub" >&5
1076 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1077    { (exit 1); exit 1; }; }
1078
1079 echo "$as_me:1079: checking build system type" >&5
1080 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1081 if test "${ac_cv_build+set}" = set; then
1082   echo $ECHO_N "(cached) $ECHO_C" >&6
1083 else
1084   ac_cv_build_alias=$build_alias
1085 test -z "$ac_cv_build_alias" &&
1086   ac_cv_build_alias=`$ac_config_guess`
1087 test -z "$ac_cv_build_alias" &&
1088   { { echo "$as_me:1088: error: cannot guess build type; you must specify one" >&5
1089 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1090    { (exit 1); exit 1; }; }
1091 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1092   { { echo "$as_me:1092: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1093 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1094    { (exit 1); exit 1; }; }
1095
1096 fi
1097 echo "$as_me:1097: result: $ac_cv_build" >&5
1098 echo "${ECHO_T}$ac_cv_build" >&6
1099 build=$ac_cv_build
1100 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1101 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1102 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1103
1104 echo "$as_me:1104: checking host system type" >&5
1105 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1106 if test "${ac_cv_host+set}" = set; then
1107   echo $ECHO_N "(cached) $ECHO_C" >&6
1108 else
1109   ac_cv_host_alias=$host_alias
1110 test -z "$ac_cv_host_alias" &&
1111   ac_cv_host_alias=$ac_cv_build_alias
1112 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1113   { { echo "$as_me:1113: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1114 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1115    { (exit 1); exit 1; }; }
1116
1117 fi
1118 echo "$as_me:1118: result: $ac_cv_host" >&5
1119 echo "${ECHO_T}$ac_cv_host" >&6
1120 host=$ac_cv_host
1121 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1122 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1123 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1124
1125 echo "$as_me:1125: checking target system type" >&5
1126 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1127 if test "${ac_cv_target+set}" = set; then
1128   echo $ECHO_N "(cached) $ECHO_C" >&6
1129 else
1130   ac_cv_target_alias=$target_alias
1131 test "x$ac_cv_target_alias" = "x" &&
1132   ac_cv_target_alias=$ac_cv_host_alias
1133 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1134   { { echo "$as_me:1134: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1135 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1136    { (exit 1); exit 1; }; }
1137
1138 fi
1139 echo "$as_me:1139: result: $ac_cv_target" >&5
1140 echo "${ECHO_T}$ac_cv_target" >&6
1141 target=$ac_cv_target
1142 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1143 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1144 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1145
1146 # The aliases save the names the user supplied, while $host etc.
1147 # will get canonicalized.
1148 test -n "$target_alias" &&
1149   test "$program_prefix$program_suffix$program_transform_name" = \
1150     NONENONEs,x,x, &&
1151   program_prefix=${target_alias}-
1152
1153 PACKAGE="vlc"
1154 VERSION="0.4.4"
1155 CODENAME=Ourumov
1156
1157 save_CFLAGS="${CFLAGS}"
1158 save_CPPFLAGS="${CPPFLAGS}"
1159 save_LDFLAGS="${LDFLAGS}"
1160
1161 echo "$as_me:1161: checking whether ${MAKE-make} sets \${MAKE}" >&5
1162 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1163 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1164 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1165   echo $ECHO_N "(cached) $ECHO_C" >&6
1166 else
1167   cat >conftest.make <<\EOF
1168 all:
1169         @echo 'ac_maketemp="${MAKE}"'
1170 EOF
1171 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1172 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1173 if test -n "$ac_maketemp"; then
1174   eval ac_cv_prog_make_${ac_make}_set=yes
1175 else
1176   eval ac_cv_prog_make_${ac_make}_set=no
1177 fi
1178 rm -f conftest.make
1179 fi
1180 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1181   echo "$as_me:1181: result: yes" >&5
1182 echo "${ECHO_T}yes" >&6
1183   SET_MAKE=
1184 else
1185   echo "$as_me:1185: result: no" >&5
1186 echo "${ECHO_T}no" >&6
1187   SET_MAKE="MAKE=${MAKE-make}"
1188 fi
1189
1190 ac_ext=c
1191 ac_cpp='$CPP $CPPFLAGS'
1192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1195 if test -n "$ac_tool_prefix"; then
1196   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1197 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1198 echo "$as_me:1198: checking for $ac_word" >&5
1199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1200 if test "${ac_cv_prog_CC+set}" = set; then
1201   echo $ECHO_N "(cached) $ECHO_C" >&6
1202 else
1203   if test -n "$CC"; then
1204   ac_cv_prog_CC="$CC" # Let the user override the test.
1205 else
1206   ac_save_IFS=$IFS; IFS=$ac_path_separator
1207 ac_dummy="$PATH"
1208 for ac_dir in $ac_dummy; do
1209   IFS=$ac_save_IFS
1210   test -z "$ac_dir" && ac_dir=.
1211   $as_executable_p "$ac_dir/$ac_word" || continue
1212 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1213 echo "$as_me:1213: found $ac_dir/$ac_word" >&5
1214 break
1215 done
1216
1217 fi
1218 fi
1219 CC=$ac_cv_prog_CC
1220 if test -n "$CC"; then
1221   echo "$as_me:1221: result: $CC" >&5
1222 echo "${ECHO_T}$CC" >&6
1223 else
1224   echo "$as_me:1224: result: no" >&5
1225 echo "${ECHO_T}no" >&6
1226 fi
1227
1228 fi
1229 if test -z "$ac_cv_prog_CC"; then
1230   ac_ct_CC=$CC
1231   # Extract the first word of "gcc", so it can be a program name with args.
1232 set dummy gcc; ac_word=$2
1233 echo "$as_me:1233: checking for $ac_word" >&5
1234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1235 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1236   echo $ECHO_N "(cached) $ECHO_C" >&6
1237 else
1238   if test -n "$ac_ct_CC"; then
1239   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1240 else
1241   ac_save_IFS=$IFS; IFS=$ac_path_separator
1242 ac_dummy="$PATH"
1243 for ac_dir in $ac_dummy; do
1244   IFS=$ac_save_IFS
1245   test -z "$ac_dir" && ac_dir=.
1246   $as_executable_p "$ac_dir/$ac_word" || continue
1247 ac_cv_prog_ac_ct_CC="gcc"
1248 echo "$as_me:1248: found $ac_dir/$ac_word" >&5
1249 break
1250 done
1251
1252 fi
1253 fi
1254 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1255 if test -n "$ac_ct_CC"; then
1256   echo "$as_me:1256: result: $ac_ct_CC" >&5
1257 echo "${ECHO_T}$ac_ct_CC" >&6
1258 else
1259   echo "$as_me:1259: result: no" >&5
1260 echo "${ECHO_T}no" >&6
1261 fi
1262
1263   CC=$ac_ct_CC
1264 else
1265   CC="$ac_cv_prog_CC"
1266 fi
1267
1268 if test -z "$CC"; then
1269   if test -n "$ac_tool_prefix"; then
1270   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1271 set dummy ${ac_tool_prefix}cc; ac_word=$2
1272 echo "$as_me:1272: checking for $ac_word" >&5
1273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1274 if test "${ac_cv_prog_CC+set}" = set; then
1275   echo $ECHO_N "(cached) $ECHO_C" >&6
1276 else
1277   if test -n "$CC"; then
1278   ac_cv_prog_CC="$CC" # Let the user override the test.
1279 else
1280   ac_save_IFS=$IFS; IFS=$ac_path_separator
1281 ac_dummy="$PATH"
1282 for ac_dir in $ac_dummy; do
1283   IFS=$ac_save_IFS
1284   test -z "$ac_dir" && ac_dir=.
1285   $as_executable_p "$ac_dir/$ac_word" || continue
1286 ac_cv_prog_CC="${ac_tool_prefix}cc"
1287 echo "$as_me:1287: found $ac_dir/$ac_word" >&5
1288 break
1289 done
1290
1291 fi
1292 fi
1293 CC=$ac_cv_prog_CC
1294 if test -n "$CC"; then
1295   echo "$as_me:1295: result: $CC" >&5
1296 echo "${ECHO_T}$CC" >&6
1297 else
1298   echo "$as_me:1298: result: no" >&5
1299 echo "${ECHO_T}no" >&6
1300 fi
1301
1302 fi
1303 if test -z "$ac_cv_prog_CC"; then
1304   ac_ct_CC=$CC
1305   # Extract the first word of "cc", so it can be a program name with args.
1306 set dummy cc; ac_word=$2
1307 echo "$as_me:1307: checking for $ac_word" >&5
1308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1309 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1310   echo $ECHO_N "(cached) $ECHO_C" >&6
1311 else
1312   if test -n "$ac_ct_CC"; then
1313   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1314 else
1315   ac_save_IFS=$IFS; IFS=$ac_path_separator
1316 ac_dummy="$PATH"
1317 for ac_dir in $ac_dummy; do
1318   IFS=$ac_save_IFS
1319   test -z "$ac_dir" && ac_dir=.
1320   $as_executable_p "$ac_dir/$ac_word" || continue
1321 ac_cv_prog_ac_ct_CC="cc"
1322 echo "$as_me:1322: found $ac_dir/$ac_word" >&5
1323 break
1324 done
1325
1326 fi
1327 fi
1328 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1329 if test -n "$ac_ct_CC"; then
1330   echo "$as_me:1330: result: $ac_ct_CC" >&5
1331 echo "${ECHO_T}$ac_ct_CC" >&6
1332 else
1333   echo "$as_me:1333: result: no" >&5
1334 echo "${ECHO_T}no" >&6
1335 fi
1336
1337   CC=$ac_ct_CC
1338 else
1339   CC="$ac_cv_prog_CC"
1340 fi
1341
1342 fi
1343 if test -z "$CC"; then
1344   # Extract the first word of "cc", so it can be a program name with args.
1345 set dummy cc; ac_word=$2
1346 echo "$as_me:1346: checking for $ac_word" >&5
1347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1348 if test "${ac_cv_prog_CC+set}" = set; then
1349   echo $ECHO_N "(cached) $ECHO_C" >&6
1350 else
1351   if test -n "$CC"; then
1352   ac_cv_prog_CC="$CC" # Let the user override the test.
1353 else
1354   ac_prog_rejected=no
1355   ac_save_IFS=$IFS; IFS=$ac_path_separator
1356 ac_dummy="$PATH"
1357 for ac_dir in $ac_dummy; do
1358   IFS=$ac_save_IFS
1359   test -z "$ac_dir" && ac_dir=.
1360   $as_executable_p "$ac_dir/$ac_word" || continue
1361 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1362   ac_prog_rejected=yes
1363   continue
1364 fi
1365 ac_cv_prog_CC="cc"
1366 echo "$as_me:1366: found $ac_dir/$ac_word" >&5
1367 break
1368 done
1369
1370 if test $ac_prog_rejected = yes; then
1371   # We found a bogon in the path, so make sure we never use it.
1372   set dummy $ac_cv_prog_CC
1373   shift
1374   if test $# != 0; then
1375     # We chose a different compiler from the bogus one.
1376     # However, it has the same basename, so the bogon will be chosen
1377     # first if we set CC to just the basename; use the full file name.
1378     shift
1379     set dummy "$ac_dir/$ac_word" ${1+"$@"}
1380     shift
1381     ac_cv_prog_CC="$@"
1382   fi
1383 fi
1384 fi
1385 fi
1386 CC=$ac_cv_prog_CC
1387 if test -n "$CC"; then
1388   echo "$as_me:1388: result: $CC" >&5
1389 echo "${ECHO_T}$CC" >&6
1390 else
1391   echo "$as_me:1391: result: no" >&5
1392 echo "${ECHO_T}no" >&6
1393 fi
1394
1395 fi
1396 if test -z "$CC"; then
1397   if test -n "$ac_tool_prefix"; then
1398   for ac_prog in cl
1399   do
1400     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1401 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1402 echo "$as_me:1402: checking for $ac_word" >&5
1403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1404 if test "${ac_cv_prog_CC+set}" = set; then
1405   echo $ECHO_N "(cached) $ECHO_C" >&6
1406 else
1407   if test -n "$CC"; then
1408   ac_cv_prog_CC="$CC" # Let the user override the test.
1409 else
1410   ac_save_IFS=$IFS; IFS=$ac_path_separator
1411 ac_dummy="$PATH"
1412 for ac_dir in $ac_dummy; do
1413   IFS=$ac_save_IFS
1414   test -z "$ac_dir" && ac_dir=.
1415   $as_executable_p "$ac_dir/$ac_word" || continue
1416 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1417 echo "$as_me:1417: found $ac_dir/$ac_word" >&5
1418 break
1419 done
1420
1421 fi
1422 fi
1423 CC=$ac_cv_prog_CC
1424 if test -n "$CC"; then
1425   echo "$as_me:1425: result: $CC" >&5
1426 echo "${ECHO_T}$CC" >&6
1427 else
1428   echo "$as_me:1428: result: no" >&5
1429 echo "${ECHO_T}no" >&6
1430 fi
1431
1432     test -n "$CC" && break
1433   done
1434 fi
1435 if test -z "$CC"; then
1436   ac_ct_CC=$CC
1437   for ac_prog in cl
1438 do
1439   # Extract the first word of "$ac_prog", so it can be a program name with args.
1440 set dummy $ac_prog; ac_word=$2
1441 echo "$as_me:1441: checking for $ac_word" >&5
1442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1443 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1444   echo $ECHO_N "(cached) $ECHO_C" >&6
1445 else
1446   if test -n "$ac_ct_CC"; then
1447   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1448 else
1449   ac_save_IFS=$IFS; IFS=$ac_path_separator
1450 ac_dummy="$PATH"
1451 for ac_dir in $ac_dummy; do
1452   IFS=$ac_save_IFS
1453   test -z "$ac_dir" && ac_dir=.
1454   $as_executable_p "$ac_dir/$ac_word" || continue
1455 ac_cv_prog_ac_ct_CC="$ac_prog"
1456 echo "$as_me:1456: found $ac_dir/$ac_word" >&5
1457 break
1458 done
1459
1460 fi
1461 fi
1462 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1463 if test -n "$ac_ct_CC"; then
1464   echo "$as_me:1464: result: $ac_ct_CC" >&5
1465 echo "${ECHO_T}$ac_ct_CC" >&6
1466 else
1467   echo "$as_me:1467: result: no" >&5
1468 echo "${ECHO_T}no" >&6
1469 fi
1470
1471   test -n "$ac_ct_CC" && break
1472 done
1473
1474   CC=$ac_ct_CC
1475 fi
1476
1477 fi
1478
1479 test -z "$CC" && { { echo "$as_me:1479: error: no acceptable cc found in \$PATH" >&5
1480 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1481    { (exit 1); exit 1; }; }
1482
1483 # Provide some information about the compiler.
1484 echo "$as_me:1484:" \
1485      "checking for C compiler version" >&5
1486 ac_compiler=`set X $ac_compile; echo $2`
1487 { (eval echo "$as_me:1487: \"$ac_compiler --version </dev/null >&5\"") >&5
1488   (eval $ac_compiler --version </dev/null >&5) 2>&5
1489   ac_status=$?
1490   echo "$as_me:1490: \$? = $ac_status" >&5
1491   (exit $ac_status); }
1492 { (eval echo "$as_me:1492: \"$ac_compiler -v </dev/null >&5\"") >&5
1493   (eval $ac_compiler -v </dev/null >&5) 2>&5
1494   ac_status=$?
1495   echo "$as_me:1495: \$? = $ac_status" >&5
1496   (exit $ac_status); }
1497 { (eval echo "$as_me:1497: \"$ac_compiler -V </dev/null >&5\"") >&5
1498   (eval $ac_compiler -V </dev/null >&5) 2>&5
1499   ac_status=$?
1500   echo "$as_me:1500: \$? = $ac_status" >&5
1501   (exit $ac_status); }
1502
1503 cat >conftest.$ac_ext <<_ACEOF
1504 #line 1504 "configure"
1505 #include "confdefs.h"
1506
1507 int
1508 main ()
1509 {
1510
1511   ;
1512   return 0;
1513 }
1514 _ACEOF
1515 ac_clean_files_save=$ac_clean_files
1516 ac_clean_files="$ac_clean_files a.out a.exe"
1517 # Try to create an executable without -o first, disregard a.out.
1518 # It will help us diagnose broken compilers, and finding out an intuition
1519 # of exeext.
1520 echo "$as_me:1520: checking for C compiler default output" >&5
1521 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1522 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1523 if { (eval echo "$as_me:1523: \"$ac_link_default\"") >&5
1524   (eval $ac_link_default) 2>&5
1525   ac_status=$?
1526   echo "$as_me:1526: \$? = $ac_status" >&5
1527   (exit $ac_status); }; then
1528   # Find the output, starting from the most likely.  This scheme is
1529 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1530 # resort.
1531 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1532                 ls a.out conftest 2>/dev/null;
1533                 ls a.* conftest.* 2>/dev/null`; do
1534   case $ac_file in
1535     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1536     a.out ) # We found the default executable, but exeext='' is most
1537             # certainly right.
1538             break;;
1539     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1540           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1541           export ac_cv_exeext
1542           break;;
1543     * ) break;;
1544   esac
1545 done
1546 else
1547   echo "$as_me: failed program was:" >&5
1548 cat conftest.$ac_ext >&5
1549 { { echo "$as_me:1549: error: C compiler cannot create executables" >&5
1550 echo "$as_me: error: C compiler cannot create executables" >&2;}
1551    { (exit 77); exit 77; }; }
1552 fi
1553
1554 ac_exeext=$ac_cv_exeext
1555 echo "$as_me:1555: result: $ac_file" >&5
1556 echo "${ECHO_T}$ac_file" >&6
1557
1558 # Check the compiler produces executables we can run.  If not, either
1559 # the compiler is broken, or we cross compile.
1560 echo "$as_me:1560: checking whether the C compiler works" >&5
1561 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1562 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1563 # If not cross compiling, check that we can run a simple program.
1564 if test "$cross_compiling" != yes; then
1565   if { ac_try='./$ac_file'
1566   { (eval echo "$as_me:1566: \"$ac_try\"") >&5
1567   (eval $ac_try) 2>&5
1568   ac_status=$?
1569   echo "$as_me:1569: \$? = $ac_status" >&5
1570   (exit $ac_status); }; }; then
1571     cross_compiling=no
1572   else
1573     if test "$cross_compiling" = maybe; then
1574         cross_compiling=yes
1575     else
1576         { { echo "$as_me:1576: error: cannot run C compiled programs.
1577 If you meant to cross compile, use \`--host'." >&5
1578 echo "$as_me: error: cannot run C compiled programs.
1579 If you meant to cross compile, use \`--host'." >&2;}
1580    { (exit 1); exit 1; }; }
1581     fi
1582   fi
1583 fi
1584 echo "$as_me:1584: result: yes" >&5
1585 echo "${ECHO_T}yes" >&6
1586
1587 rm -f a.out a.exe conftest$ac_cv_exeext
1588 ac_clean_files=$ac_clean_files_save
1589 # Check the compiler produces executables we can run.  If not, either
1590 # the compiler is broken, or we cross compile.
1591 echo "$as_me:1591: checking whether we are cross compiling" >&5
1592 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1593 echo "$as_me:1593: result: $cross_compiling" >&5
1594 echo "${ECHO_T}$cross_compiling" >&6
1595
1596 echo "$as_me:1596: checking for executable suffix" >&5
1597 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1598 if { (eval echo "$as_me:1598: \"$ac_link\"") >&5
1599   (eval $ac_link) 2>&5
1600   ac_status=$?
1601   echo "$as_me:1601: \$? = $ac_status" >&5
1602   (exit $ac_status); }; then
1603   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1604 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1605 # work properly (i.e., refer to `conftest.exe'), while it won't with
1606 # `rm'.
1607 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1608   case $ac_file in
1609     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1610     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1611           export ac_cv_exeext
1612           break;;
1613     * ) break;;
1614   esac
1615 done
1616 else
1617   { { echo "$as_me:1617: error: cannot compute EXEEXT: cannot compile and link" >&5
1618 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1619    { (exit 1); exit 1; }; }
1620 fi
1621
1622 rm -f conftest$ac_cv_exeext
1623 echo "$as_me:1623: result: $ac_cv_exeext" >&5
1624 echo "${ECHO_T}$ac_cv_exeext" >&6
1625
1626 rm -f conftest.$ac_ext
1627 EXEEXT=$ac_cv_exeext
1628 ac_exeext=$EXEEXT
1629 echo "$as_me:1629: checking for object suffix" >&5
1630 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1631 if test "${ac_cv_objext+set}" = set; then
1632   echo $ECHO_N "(cached) $ECHO_C" >&6
1633 else
1634   cat >conftest.$ac_ext <<_ACEOF
1635 #line 1635 "configure"
1636 #include "confdefs.h"
1637
1638 int
1639 main ()
1640 {
1641
1642   ;
1643   return 0;
1644 }
1645 _ACEOF
1646 rm -f conftest.o conftest.obj
1647 if { (eval echo "$as_me:1647: \"$ac_compile\"") >&5
1648   (eval $ac_compile) 2>&5
1649   ac_status=$?
1650   echo "$as_me:1650: \$? = $ac_status" >&5
1651   (exit $ac_status); }; then
1652   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1653   case $ac_file in
1654     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1655     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1656        break;;
1657   esac
1658 done
1659 else
1660   echo "$as_me: failed program was:" >&5
1661 cat conftest.$ac_ext >&5
1662 { { echo "$as_me:1662: error: cannot compute OBJEXT: cannot compile" >&5
1663 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1664    { (exit 1); exit 1; }; }
1665 fi
1666
1667 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1668 fi
1669 echo "$as_me:1669: result: $ac_cv_objext" >&5
1670 echo "${ECHO_T}$ac_cv_objext" >&6
1671 OBJEXT=$ac_cv_objext
1672 ac_objext=$OBJEXT
1673 echo "$as_me:1673: checking whether we are using the GNU C compiler" >&5
1674 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1675 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1676   echo $ECHO_N "(cached) $ECHO_C" >&6
1677 else
1678   cat >conftest.$ac_ext <<_ACEOF
1679 #line 1679 "configure"
1680 #include "confdefs.h"
1681
1682 int
1683 main ()
1684 {
1685 #ifndef __GNUC__
1686        choke me
1687 #endif
1688
1689   ;
1690   return 0;
1691 }
1692 _ACEOF
1693 rm -f conftest.$ac_objext
1694 if { (eval echo "$as_me:1694: \"$ac_compile\"") >&5
1695   (eval $ac_compile) 2>&5
1696   ac_status=$?
1697   echo "$as_me:1697: \$? = $ac_status" >&5
1698   (exit $ac_status); } &&
1699          { ac_try='test -s conftest.$ac_objext'
1700   { (eval echo "$as_me:1700: \"$ac_try\"") >&5
1701   (eval $ac_try) 2>&5
1702   ac_status=$?
1703   echo "$as_me:1703: \$? = $ac_status" >&5
1704   (exit $ac_status); }; }; then
1705   ac_compiler_gnu=yes
1706 else
1707   echo "$as_me: failed program was:" >&5
1708 cat conftest.$ac_ext >&5
1709 ac_compiler_gnu=no
1710 fi
1711 rm -f conftest.$ac_objext conftest.$ac_ext
1712 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1713
1714 fi
1715 echo "$as_me:1715: result: $ac_cv_c_compiler_gnu" >&5
1716 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1717 GCC=`test $ac_compiler_gnu = yes && echo yes`
1718 ac_test_CFLAGS=${CFLAGS+set}
1719 ac_save_CFLAGS=$CFLAGS
1720 CFLAGS="-g"
1721 echo "$as_me:1721: checking whether $CC accepts -g" >&5
1722 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1723 if test "${ac_cv_prog_cc_g+set}" = set; then
1724   echo $ECHO_N "(cached) $ECHO_C" >&6
1725 else
1726   cat >conftest.$ac_ext <<_ACEOF
1727 #line 1727 "configure"
1728 #include "confdefs.h"
1729
1730 int
1731 main ()
1732 {
1733
1734   ;
1735   return 0;
1736 }
1737 _ACEOF
1738 rm -f conftest.$ac_objext
1739 if { (eval echo "$as_me:1739: \"$ac_compile\"") >&5
1740   (eval $ac_compile) 2>&5
1741   ac_status=$?
1742   echo "$as_me:1742: \$? = $ac_status" >&5
1743   (exit $ac_status); } &&
1744          { ac_try='test -s conftest.$ac_objext'
1745   { (eval echo "$as_me:1745: \"$ac_try\"") >&5
1746   (eval $ac_try) 2>&5
1747   ac_status=$?
1748   echo "$as_me:1748: \$? = $ac_status" >&5
1749   (exit $ac_status); }; }; then
1750   ac_cv_prog_cc_g=yes
1751 else
1752   echo "$as_me: failed program was:" >&5
1753 cat conftest.$ac_ext >&5
1754 ac_cv_prog_cc_g=no
1755 fi
1756 rm -f conftest.$ac_objext conftest.$ac_ext
1757 fi
1758 echo "$as_me:1758: result: $ac_cv_prog_cc_g" >&5
1759 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1760 if test "$ac_test_CFLAGS" = set; then
1761   CFLAGS=$ac_save_CFLAGS
1762 elif test $ac_cv_prog_cc_g = yes; then
1763   if test "$GCC" = yes; then
1764     CFLAGS="-g -O2"
1765   else
1766     CFLAGS="-g"
1767   fi
1768 else
1769   if test "$GCC" = yes; then
1770     CFLAGS="-O2"
1771   else
1772     CFLAGS=
1773   fi
1774 fi
1775 # Some people use a C++ compiler to compile C.  Since we use `exit',
1776 # in C++ we need to declare it.  In case someone uses the same compiler
1777 # for both compiling C and C++ we need to have the C++ compiler decide
1778 # the declaration of exit, since it's the most demanding environment.
1779 cat >conftest.$ac_ext <<_ACEOF
1780 #ifndef __cplusplus
1781   choke me
1782 #endif
1783 _ACEOF
1784 rm -f conftest.$ac_objext
1785 if { (eval echo "$as_me:1785: \"$ac_compile\"") >&5
1786   (eval $ac_compile) 2>&5
1787   ac_status=$?
1788   echo "$as_me:1788: \$? = $ac_status" >&5
1789   (exit $ac_status); } &&
1790          { ac_try='test -s conftest.$ac_objext'
1791   { (eval echo "$as_me:1791: \"$ac_try\"") >&5
1792   (eval $ac_try) 2>&5
1793   ac_status=$?
1794   echo "$as_me:1794: \$? = $ac_status" >&5
1795   (exit $ac_status); }; }; then
1796   for ac_declaration in \
1797    ''\
1798    '#include <stdlib.h>' \
1799    'extern "C" void std::exit (int) throw (); using std::exit;' \
1800    'extern "C" void std::exit (int); using std::exit;' \
1801    'extern "C" void exit (int) throw ();' \
1802    'extern "C" void exit (int);' \
1803    'void exit (int);'
1804 do
1805   cat >conftest.$ac_ext <<_ACEOF
1806 #line 1806 "configure"
1807 #include "confdefs.h"
1808 #include <stdlib.h>
1809 $ac_declaration
1810 int
1811 main ()
1812 {
1813 exit (42);
1814   ;
1815   return 0;
1816 }
1817 _ACEOF
1818 rm -f conftest.$ac_objext
1819 if { (eval echo "$as_me:1819: \"$ac_compile\"") >&5
1820   (eval $ac_compile) 2>&5
1821   ac_status=$?
1822   echo "$as_me:1822: \$? = $ac_status" >&5
1823   (exit $ac_status); } &&
1824          { ac_try='test -s conftest.$ac_objext'
1825   { (eval echo "$as_me:1825: \"$ac_try\"") >&5
1826   (eval $ac_try) 2>&5
1827   ac_status=$?
1828   echo "$as_me:1828: \$? = $ac_status" >&5
1829   (exit $ac_status); }; }; then
1830   :
1831 else
1832   echo "$as_me: failed program was:" >&5
1833 cat conftest.$ac_ext >&5
1834 continue
1835 fi
1836 rm -f conftest.$ac_objext conftest.$ac_ext
1837   cat >conftest.$ac_ext <<_ACEOF
1838 #line 1838 "configure"
1839 #include "confdefs.h"
1840 $ac_declaration
1841 int
1842 main ()
1843 {
1844 exit (42);
1845   ;
1846   return 0;
1847 }
1848 _ACEOF
1849 rm -f conftest.$ac_objext
1850 if { (eval echo "$as_me:1850: \"$ac_compile\"") >&5
1851   (eval $ac_compile) 2>&5
1852   ac_status=$?
1853   echo "$as_me:1853: \$? = $ac_status" >&5
1854   (exit $ac_status); } &&
1855          { ac_try='test -s conftest.$ac_objext'
1856   { (eval echo "$as_me:1856: \"$ac_try\"") >&5
1857   (eval $ac_try) 2>&5
1858   ac_status=$?
1859   echo "$as_me:1859: \$? = $ac_status" >&5
1860   (exit $ac_status); }; }; then
1861   break
1862 else
1863   echo "$as_me: failed program was:" >&5
1864 cat conftest.$ac_ext >&5
1865 fi
1866 rm -f conftest.$ac_objext conftest.$ac_ext
1867 done
1868 rm -f conftest*
1869 if test -n "$ac_declaration"; then
1870   echo '#ifdef __cplusplus' >>confdefs.h
1871   echo $ac_declaration      >>confdefs.h
1872   echo '#endif'             >>confdefs.h
1873 fi
1874
1875 else
1876   echo "$as_me: failed program was:" >&5
1877 cat conftest.$ac_ext >&5
1878 fi
1879 rm -f conftest.$ac_objext conftest.$ac_ext
1880 ac_ext=c
1881 ac_cpp='$CPP $CPPFLAGS'
1882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1885
1886 ac_ext=c
1887 ac_cpp='$CPP $CPPFLAGS'
1888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1891 echo "$as_me:1891: checking how to run the C preprocessor" >&5
1892 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1893 # On Suns, sometimes $CPP names a directory.
1894 if test -n "$CPP" && test -d "$CPP"; then
1895   CPP=
1896 fi
1897 if test -z "$CPP"; then
1898   if test "${ac_cv_prog_CPP+set}" = set; then
1899   echo $ECHO_N "(cached) $ECHO_C" >&6
1900 else
1901       # Double quotes because CPP needs to be expanded
1902     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1903     do
1904       ac_preproc_ok=false
1905 for ac_c_preproc_warn_flag in '' yes
1906 do
1907   # Use a header file that comes with gcc, so configuring glibc
1908   # with a fresh cross-compiler works.
1909   # On the NeXT, cc -E runs the code through the compiler's parser,
1910   # not just through cpp. "Syntax error" is here to catch this case.
1911   cat >conftest.$ac_ext <<_ACEOF
1912 #line 1912 "configure"
1913 #include "confdefs.h"
1914 #include <assert.h>
1915                      Syntax error
1916 _ACEOF
1917 if { (eval echo "$as_me:1917: \"$ac_cpp conftest.$ac_ext\"") >&5
1918   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1919   ac_status=$?
1920   egrep -v '^ *\+' conftest.er1 >conftest.err
1921   rm -f conftest.er1
1922   cat conftest.err >&5
1923   echo "$as_me:1923: \$? = $ac_status" >&5
1924   (exit $ac_status); } >/dev/null; then
1925   if test -s conftest.err; then
1926     ac_cpp_err=$ac_c_preproc_warn_flag
1927   else
1928     ac_cpp_err=
1929   fi
1930 else
1931   ac_cpp_err=yes
1932 fi
1933 if test -z "$ac_cpp_err"; then
1934   :
1935 else
1936   echo "$as_me: failed program was:" >&5
1937   cat conftest.$ac_ext >&5
1938   # Broken: fails on valid input.
1939 continue
1940 fi
1941 rm -f conftest.err conftest.$ac_ext
1942
1943   # OK, works on sane cases.  Now check whether non-existent headers
1944   # can be detected and how.
1945   cat >conftest.$ac_ext <<_ACEOF
1946 #line 1946 "configure"
1947 #include "confdefs.h"
1948 #include <ac_nonexistent.h>
1949 _ACEOF
1950 if { (eval echo "$as_me:1950: \"$ac_cpp conftest.$ac_ext\"") >&5
1951   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1952   ac_status=$?
1953   egrep -v '^ *\+' conftest.er1 >conftest.err
1954   rm -f conftest.er1
1955   cat conftest.err >&5
1956   echo "$as_me:1956: \$? = $ac_status" >&5
1957   (exit $ac_status); } >/dev/null; then
1958   if test -s conftest.err; then
1959     ac_cpp_err=$ac_c_preproc_warn_flag
1960   else
1961     ac_cpp_err=
1962   fi
1963 else
1964   ac_cpp_err=yes
1965 fi
1966 if test -z "$ac_cpp_err"; then
1967   # Broken: success on invalid input.
1968 continue
1969 else
1970   echo "$as_me: failed program was:" >&5
1971   cat conftest.$ac_ext >&5
1972   # Passes both tests.
1973 ac_preproc_ok=:
1974 break
1975 fi
1976 rm -f conftest.err conftest.$ac_ext
1977
1978 done
1979 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1980 rm -f conftest.err conftest.$ac_ext
1981 if $ac_preproc_ok; then
1982   break
1983 fi
1984
1985     done
1986     ac_cv_prog_CPP=$CPP
1987
1988 fi
1989   CPP=$ac_cv_prog_CPP
1990 else
1991   ac_cv_prog_CPP=$CPP
1992 fi
1993 echo "$as_me:1993: result: $CPP" >&5
1994 echo "${ECHO_T}$CPP" >&6
1995 ac_preproc_ok=false
1996 for ac_c_preproc_warn_flag in '' yes
1997 do
1998   # Use a header file that comes with gcc, so configuring glibc
1999   # with a fresh cross-compiler works.
2000   # On the NeXT, cc -E runs the code through the compiler's parser,
2001   # not just through cpp. "Syntax error" is here to catch this case.
2002   cat >conftest.$ac_ext <<_ACEOF
2003 #line 2003 "configure"
2004 #include "confdefs.h"
2005 #include <assert.h>
2006                      Syntax error
2007 _ACEOF
2008 if { (eval echo "$as_me:2008: \"$ac_cpp conftest.$ac_ext\"") >&5
2009   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2010   ac_status=$?
2011   egrep -v '^ *\+' conftest.er1 >conftest.err
2012   rm -f conftest.er1
2013   cat conftest.err >&5
2014   echo "$as_me:2014: \$? = $ac_status" >&5
2015   (exit $ac_status); } >/dev/null; then
2016   if test -s conftest.err; then
2017     ac_cpp_err=$ac_c_preproc_warn_flag
2018   else
2019     ac_cpp_err=
2020   fi
2021 else
2022   ac_cpp_err=yes
2023 fi
2024 if test -z "$ac_cpp_err"; then
2025   :
2026 else
2027   echo "$as_me: failed program was:" >&5
2028   cat conftest.$ac_ext >&5
2029   # Broken: fails on valid input.
2030 continue
2031 fi
2032 rm -f conftest.err conftest.$ac_ext
2033
2034   # OK, works on sane cases.  Now check whether non-existent headers
2035   # can be detected and how.
2036   cat >conftest.$ac_ext <<_ACEOF
2037 #line 2037 "configure"
2038 #include "confdefs.h"
2039 #include <ac_nonexistent.h>
2040 _ACEOF
2041 if { (eval echo "$as_me:2041: \"$ac_cpp conftest.$ac_ext\"") >&5
2042   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2043   ac_status=$?
2044   egrep -v '^ *\+' conftest.er1 >conftest.err
2045   rm -f conftest.er1
2046   cat conftest.err >&5
2047   echo "$as_me:2047: \$? = $ac_status" >&5
2048   (exit $ac_status); } >/dev/null; then
2049   if test -s conftest.err; then
2050     ac_cpp_err=$ac_c_preproc_warn_flag
2051   else
2052     ac_cpp_err=
2053   fi
2054 else
2055   ac_cpp_err=yes
2056 fi
2057 if test -z "$ac_cpp_err"; then
2058   # Broken: success on invalid input.
2059 continue
2060 else
2061   echo "$as_me: failed program was:" >&5
2062   cat conftest.$ac_ext >&5
2063   # Passes both tests.
2064 ac_preproc_ok=:
2065 break
2066 fi
2067 rm -f conftest.err conftest.$ac_ext
2068
2069 done
2070 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2071 rm -f conftest.err conftest.$ac_ext
2072 if $ac_preproc_ok; then
2073   :
2074 else
2075   { { echo "$as_me:2075: error: C preprocessor \"$CPP\" fails sanity check" >&5
2076 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2077    { (exit 1); exit 1; }; }
2078 fi
2079
2080 ac_ext=c
2081 ac_cpp='$CPP $CPPFLAGS'
2082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2085
2086 if test -n "$ac_tool_prefix"; then
2087   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2088 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2089 echo "$as_me:2089: checking for $ac_word" >&5
2090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2091 if test "${ac_cv_prog_RANLIB+set}" = set; then
2092   echo $ECHO_N "(cached) $ECHO_C" >&6
2093 else
2094   if test -n "$RANLIB"; then
2095   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2096 else
2097   ac_save_IFS=$IFS; IFS=$ac_path_separator
2098 ac_dummy="$PATH"
2099 for ac_dir in $ac_dummy; do
2100   IFS=$ac_save_IFS
2101   test -z "$ac_dir" && ac_dir=.
2102   $as_executable_p "$ac_dir/$ac_word" || continue
2103 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2104 echo "$as_me:2104: found $ac_dir/$ac_word" >&5
2105 break
2106 done
2107
2108 fi
2109 fi
2110 RANLIB=$ac_cv_prog_RANLIB
2111 if test -n "$RANLIB"; then
2112   echo "$as_me:2112: result: $RANLIB" >&5
2113 echo "${ECHO_T}$RANLIB" >&6
2114 else
2115   echo "$as_me:2115: result: no" >&5
2116 echo "${ECHO_T}no" >&6
2117 fi
2118
2119 fi
2120 if test -z "$ac_cv_prog_RANLIB"; then
2121   ac_ct_RANLIB=$RANLIB
2122   # Extract the first word of "ranlib", so it can be a program name with args.
2123 set dummy ranlib; ac_word=$2
2124 echo "$as_me:2124: checking for $ac_word" >&5
2125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2126 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2127   echo $ECHO_N "(cached) $ECHO_C" >&6
2128 else
2129   if test -n "$ac_ct_RANLIB"; then
2130   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2131 else
2132   ac_save_IFS=$IFS; IFS=$ac_path_separator
2133 ac_dummy="$PATH"
2134 for ac_dir in $ac_dummy; do
2135   IFS=$ac_save_IFS
2136   test -z "$ac_dir" && ac_dir=.
2137   $as_executable_p "$ac_dir/$ac_word" || continue
2138 ac_cv_prog_ac_ct_RANLIB="ranlib"
2139 echo "$as_me:2139: found $ac_dir/$ac_word" >&5
2140 break
2141 done
2142
2143   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2144 fi
2145 fi
2146 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2147 if test -n "$ac_ct_RANLIB"; then
2148   echo "$as_me:2148: result: $ac_ct_RANLIB" >&5
2149 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2150 else
2151   echo "$as_me:2151: result: no" >&5
2152 echo "${ECHO_T}no" >&6
2153 fi
2154
2155   RANLIB=$ac_ct_RANLIB
2156 else
2157   RANLIB="$ac_cv_prog_RANLIB"
2158 fi
2159
2160 if test -n "$ac_tool_prefix"; then
2161   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2162 set dummy ${ac_tool_prefix}strip; ac_word=$2
2163 echo "$as_me:2163: checking for $ac_word" >&5
2164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2165 if test "${ac_cv_prog_STRIP+set}" = set; then
2166   echo $ECHO_N "(cached) $ECHO_C" >&6
2167 else
2168   if test -n "$STRIP"; then
2169   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2170 else
2171   ac_save_IFS=$IFS; IFS=$ac_path_separator
2172 ac_dummy="$PATH"
2173 for ac_dir in $ac_dummy; do
2174   IFS=$ac_save_IFS
2175   test -z "$ac_dir" && ac_dir=.
2176   $as_executable_p "$ac_dir/$ac_word" || continue
2177 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2178 echo "$as_me:2178: found $ac_dir/$ac_word" >&5
2179 break
2180 done
2181
2182 fi
2183 fi
2184 STRIP=$ac_cv_prog_STRIP
2185 if test -n "$STRIP"; then
2186   echo "$as_me:2186: result: $STRIP" >&5
2187 echo "${ECHO_T}$STRIP" >&6
2188 else
2189   echo "$as_me:2189: result: no" >&5
2190 echo "${ECHO_T}no" >&6
2191 fi
2192
2193 fi
2194 if test -z "$ac_cv_prog_STRIP"; then
2195   ac_ct_STRIP=$STRIP
2196   # Extract the first word of "strip", so it can be a program name with args.
2197 set dummy strip; ac_word=$2
2198 echo "$as_me:2198: checking for $ac_word" >&5
2199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2200 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2201   echo $ECHO_N "(cached) $ECHO_C" >&6
2202 else
2203   if test -n "$ac_ct_STRIP"; then
2204   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2205 else
2206   ac_save_IFS=$IFS; IFS=$ac_path_separator
2207 ac_dummy="$PATH"
2208 for ac_dir in $ac_dummy; do
2209   IFS=$ac_save_IFS
2210   test -z "$ac_dir" && ac_dir=.
2211   $as_executable_p "$ac_dir/$ac_word" || continue
2212 ac_cv_prog_ac_ct_STRIP="strip"
2213 echo "$as_me:2213: found $ac_dir/$ac_word" >&5
2214 break
2215 done
2216
2217   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2218 fi
2219 fi
2220 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2221 if test -n "$ac_ct_STRIP"; then
2222   echo "$as_me:2222: result: $ac_ct_STRIP" >&5
2223 echo "${ECHO_T}$ac_ct_STRIP" >&6
2224 else
2225   echo "$as_me:2225: result: no" >&5
2226 echo "${ECHO_T}no" >&6
2227 fi
2228
2229   STRIP=$ac_ct_STRIP
2230 else
2231   STRIP="$ac_cv_prog_STRIP"
2232 fi
2233
2234 # Extract the first word of "gmake", so it can be a program name with args.
2235 set dummy gmake; ac_word=$2
2236 echo "$as_me:2236: checking for $ac_word" >&5
2237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2238 if test "${ac_cv_path_GMAKE+set}" = set; then
2239   echo $ECHO_N "(cached) $ECHO_C" >&6
2240 else
2241   case $GMAKE in
2242   [\\/]* | ?:[\\/]*)
2243   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
2244   ;;
2245   *)
2246   ac_save_IFS=$IFS; IFS=$ac_path_separator
2247 ac_dummy="$PATH"
2248 for ac_dir in $ac_dummy; do
2249   IFS=$ac_save_IFS
2250   test -z "$ac_dir" && ac_dir=.
2251   if $as_executable_p "$ac_dir/$ac_word"; then
2252    ac_cv_path_GMAKE="$ac_dir/$ac_word"
2253    echo "$as_me:2253: found $ac_dir/$ac_word" >&5
2254    break
2255 fi
2256 done
2257
2258   test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="no"
2259   ;;
2260 esac
2261 fi
2262 GMAKE=$ac_cv_path_GMAKE
2263
2264 if test -n "$GMAKE"; then
2265   echo "$as_me:2265: result: $GMAKE" >&5
2266 echo "${ECHO_T}$GMAKE" >&6
2267 else
2268   echo "$as_me:2268: result: no" >&5
2269 echo "${ECHO_T}no" >&6
2270 fi
2271
2272 if test "x$GMAKE" = "xno"; then
2273   echo "$as_me:2273: checking whether GNU make is installed" >&5
2274 echo $ECHO_N "checking whether GNU make is installed... $ECHO_C" >&6
2275 if test "${ac_cv_gmake+set}" = set; then
2276   echo $ECHO_N "(cached) $ECHO_C" >&6
2277 else
2278   if make --version | grep -q -i gnu; then
2279          ac_cv_gmake="yes"
2280        else
2281          echo "This software needs you to install GNU make to compile properly."
2282          echo "You can get it from http://www.gnu.org/."
2283          exit
2284        fi
2285 fi
2286 echo "$as_me:2286: result: $ac_cv_gmake" >&5
2287 echo "${ECHO_T}$ac_cv_gmake" >&6
2288   VLC_MAKE="make"
2289 else
2290   VLC_MAKE="gmake"
2291 fi
2292
2293 ALL_LINGUAS="de en_GB fr ja no ru nl pl"
2294
2295 cat >>confdefs.h <<EOF
2296 #define VLC_PACKAGE "$PACKAGE"
2297 EOF
2298
2299 cat >>confdefs.h <<EOF
2300 #define VLC_VERSION "$VERSION"
2301 EOF
2302
2303 if test -n "$ac_tool_prefix"; then
2304   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2305 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2306 echo "$as_me:2306: checking for $ac_word" >&5
2307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2308 if test "${ac_cv_prog_RANLIB+set}" = set; then
2309   echo $ECHO_N "(cached) $ECHO_C" >&6
2310 else
2311   if test -n "$RANLIB"; then
2312   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2313 else
2314   ac_save_IFS=$IFS; IFS=$ac_path_separator
2315 ac_dummy="$PATH"
2316 for ac_dir in $ac_dummy; do
2317   IFS=$ac_save_IFS
2318   test -z "$ac_dir" && ac_dir=.
2319   $as_executable_p "$ac_dir/$ac_word" || continue
2320 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2321 echo "$as_me:2321: found $ac_dir/$ac_word" >&5
2322 break
2323 done
2324
2325 fi
2326 fi
2327 RANLIB=$ac_cv_prog_RANLIB
2328 if test -n "$RANLIB"; then
2329   echo "$as_me:2329: result: $RANLIB" >&5
2330 echo "${ECHO_T}$RANLIB" >&6
2331 else
2332   echo "$as_me:2332: result: no" >&5
2333 echo "${ECHO_T}no" >&6
2334 fi
2335
2336 fi
2337 if test -z "$ac_cv_prog_RANLIB"; then
2338   ac_ct_RANLIB=$RANLIB
2339   # Extract the first word of "ranlib", so it can be a program name with args.
2340 set dummy ranlib; ac_word=$2
2341 echo "$as_me:2341: checking for $ac_word" >&5
2342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2343 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2344   echo $ECHO_N "(cached) $ECHO_C" >&6
2345 else
2346   if test -n "$ac_ct_RANLIB"; then
2347   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2348 else
2349   ac_save_IFS=$IFS; IFS=$ac_path_separator
2350 ac_dummy="$PATH"
2351 for ac_dir in $ac_dummy; do
2352   IFS=$ac_save_IFS
2353   test -z "$ac_dir" && ac_dir=.
2354   $as_executable_p "$ac_dir/$ac_word" || continue
2355 ac_cv_prog_ac_ct_RANLIB="ranlib"
2356 echo "$as_me:2356: found $ac_dir/$ac_word" >&5
2357 break
2358 done
2359
2360   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2361 fi
2362 fi
2363 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2364 if test -n "$ac_ct_RANLIB"; then
2365   echo "$as_me:2365: result: $ac_ct_RANLIB" >&5
2366 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2367 else
2368   echo "$as_me:2368: result: no" >&5
2369 echo "${ECHO_T}no" >&6
2370 fi
2371
2372   RANLIB=$ac_ct_RANLIB
2373 else
2374   RANLIB="$ac_cv_prog_RANLIB"
2375 fi
2376
2377         echo "$as_me:2377: checking for strerror in -lcposix" >&5
2378 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2379 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2380   echo $ECHO_N "(cached) $ECHO_C" >&6
2381 else
2382   ac_check_lib_save_LIBS=$LIBS
2383 LIBS="-lcposix  $LIBS"
2384 cat >conftest.$ac_ext <<_ACEOF
2385 #line 2385 "configure"
2386 #include "confdefs.h"
2387
2388 /* Override any gcc2 internal prototype to avoid an error.  */
2389 #ifdef __cplusplus
2390 extern "C"
2391 #endif
2392 /* We use char because int might match the return type of a gcc2
2393    builtin and then its argument prototype would still apply.  */
2394 char strerror ();
2395 int
2396 main ()
2397 {
2398 strerror ();
2399   ;
2400   return 0;
2401 }
2402 _ACEOF
2403 rm -f conftest.$ac_objext conftest$ac_exeext
2404 if { (eval echo "$as_me:2404: \"$ac_link\"") >&5
2405   (eval $ac_link) 2>&5
2406   ac_status=$?
2407   echo "$as_me:2407: \$? = $ac_status" >&5
2408   (exit $ac_status); } &&
2409          { ac_try='test -s conftest$ac_exeext'
2410   { (eval echo "$as_me:2410: \"$ac_try\"") >&5
2411   (eval $ac_try) 2>&5
2412   ac_status=$?
2413   echo "$as_me:2413: \$? = $ac_status" >&5
2414   (exit $ac_status); }; }; then
2415   ac_cv_lib_cposix_strerror=yes
2416 else
2417   echo "$as_me: failed program was:" >&5
2418 cat conftest.$ac_ext >&5
2419 ac_cv_lib_cposix_strerror=no
2420 fi
2421 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2422 LIBS=$ac_check_lib_save_LIBS
2423 fi
2424 echo "$as_me:2424: result: $ac_cv_lib_cposix_strerror" >&5
2425 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2426 if test $ac_cv_lib_cposix_strerror = yes; then
2427   LIBS="$LIBS -lcposix"
2428 fi
2429
2430 echo "$as_me:2430: checking for ANSI C header files" >&5
2431 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2432 if test "${ac_cv_header_stdc+set}" = set; then
2433   echo $ECHO_N "(cached) $ECHO_C" >&6
2434 else
2435   cat >conftest.$ac_ext <<_ACEOF
2436 #line 2436 "configure"
2437 #include "confdefs.h"
2438 #include <stdlib.h>
2439 #include <stdarg.h>
2440 #include <string.h>
2441 #include <float.h>
2442
2443 _ACEOF
2444 if { (eval echo "$as_me:2444: \"$ac_cpp conftest.$ac_ext\"") >&5
2445   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2446   ac_status=$?
2447   egrep -v '^ *\+' conftest.er1 >conftest.err
2448   rm -f conftest.er1
2449   cat conftest.err >&5
2450   echo "$as_me:2450: \$? = $ac_status" >&5
2451   (exit $ac_status); } >/dev/null; then
2452   if test -s conftest.err; then
2453     ac_cpp_err=$ac_c_preproc_warn_flag
2454   else
2455     ac_cpp_err=
2456   fi
2457 else
2458   ac_cpp_err=yes
2459 fi
2460 if test -z "$ac_cpp_err"; then
2461   ac_cv_header_stdc=yes
2462 else
2463   echo "$as_me: failed program was:" >&5
2464   cat conftest.$ac_ext >&5
2465   ac_cv_header_stdc=no
2466 fi
2467 rm -f conftest.err conftest.$ac_ext
2468
2469 if test $ac_cv_header_stdc = yes; then
2470   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2471   cat >conftest.$ac_ext <<_ACEOF
2472 #line 2472 "configure"
2473 #include "confdefs.h"
2474 #include <string.h>
2475
2476 _ACEOF
2477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2478   egrep "memchr" >/dev/null 2>&1; then
2479   :
2480 else
2481   ac_cv_header_stdc=no
2482 fi
2483 rm -f conftest*
2484
2485 fi
2486
2487 if test $ac_cv_header_stdc = yes; then
2488   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2489   cat >conftest.$ac_ext <<_ACEOF
2490 #line 2490 "configure"
2491 #include "confdefs.h"
2492 #include <stdlib.h>
2493
2494 _ACEOF
2495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2496   egrep "free" >/dev/null 2>&1; then
2497   :
2498 else
2499   ac_cv_header_stdc=no
2500 fi
2501 rm -f conftest*
2502
2503 fi
2504
2505 if test $ac_cv_header_stdc = yes; then
2506   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2507   if test "$cross_compiling" = yes; then
2508   :
2509 else
2510   cat >conftest.$ac_ext <<_ACEOF
2511 #line 2511 "configure"
2512 #include "confdefs.h"
2513 #include <ctype.h>
2514 #if ((' ' & 0x0FF) == 0x020)
2515 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2516 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2517 #else
2518 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2519                      || ('j' <= (c) && (c) <= 'r') \
2520                      || ('s' <= (c) && (c) <= 'z'))
2521 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2522 #endif
2523
2524 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2525 int
2526 main ()
2527 {
2528   int i;
2529   for (i = 0; i < 256; i++)
2530     if (XOR (islower (i), ISLOWER (i))
2531         || toupper (i) != TOUPPER (i))
2532       exit(2);
2533   exit (0);
2534 }
2535 _ACEOF
2536 rm -f conftest$ac_exeext
2537 if { (eval echo "$as_me:2537: \"$ac_link\"") >&5
2538   (eval $ac_link) 2>&5
2539   ac_status=$?
2540   echo "$as_me:2540: \$? = $ac_status" >&5
2541   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2542   { (eval echo "$as_me:2542: \"$ac_try\"") >&5
2543   (eval $ac_try) 2>&5
2544   ac_status=$?
2545   echo "$as_me:2545: \$? = $ac_status" >&5
2546   (exit $ac_status); }; }; then
2547   :
2548 else
2549   echo "$as_me: program exited with status $ac_status" >&5
2550 echo "$as_me: failed program was:" >&5
2551 cat conftest.$ac_ext >&5
2552 ac_cv_header_stdc=no
2553 fi
2554 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2555 fi
2556 fi
2557 fi
2558 echo "$as_me:2558: result: $ac_cv_header_stdc" >&5
2559 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2560 if test $ac_cv_header_stdc = yes; then
2561
2562 cat >>confdefs.h <<\EOF
2563 #define STDC_HEADERS 1
2564 EOF
2565
2566 fi
2567
2568 echo "$as_me:2568: checking for $CC option to accept ANSI C" >&5
2569 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2570 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2571   echo $ECHO_N "(cached) $ECHO_C" >&6
2572 else
2573   ac_cv_prog_cc_stdc=no
2574 ac_save_CC=$CC
2575 cat >conftest.$ac_ext <<_ACEOF
2576 #line 2576 "configure"
2577 #include "confdefs.h"
2578 #include <stdarg.h>
2579 #include <stdio.h>
2580 #include <sys/types.h>
2581 #include <sys/stat.h>
2582 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2583 struct buf { int x; };
2584 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2585 static char *e (p, i)
2586      char **p;
2587      int i;
2588 {
2589   return p[i];
2590 }
2591 static char *f (char * (*g) (char **, int), char **p, ...)
2592 {
2593   char *s;
2594   va_list v;
2595   va_start (v,p);
2596   s = g (p, va_arg (v,int));
2597   va_end (v);
2598   return s;
2599 }
2600 int test (int i, double x);
2601 struct s1 {int (*f) (int a);};
2602 struct s2 {int (*f) (double a);};
2603 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2604 int argc;
2605 char **argv;
2606 int
2607 main ()
2608 {
2609 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2610   ;
2611   return 0;
2612 }
2613 _ACEOF
2614 # Don't try gcc -ansi; that turns off useful extensions and
2615 # breaks some systems' header files.
2616 # AIX                   -qlanglvl=ansi
2617 # Ultrix and OSF/1      -std1
2618 # HP-UX 10.20 and later -Ae
2619 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2620 # SVR4                  -Xc -D__EXTENSIONS__
2621 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2622 do
2623   CC="$ac_save_CC $ac_arg"
2624   rm -f conftest.$ac_objext
2625 if { (eval echo "$as_me:2625: \"$ac_compile\"") >&5
2626   (eval $ac_compile) 2>&5
2627   ac_status=$?
2628   echo "$as_me:2628: \$? = $ac_status" >&5
2629   (exit $ac_status); } &&
2630          { ac_try='test -s conftest.$ac_objext'
2631   { (eval echo "$as_me:2631: \"$ac_try\"") >&5
2632   (eval $ac_try) 2>&5
2633   ac_status=$?
2634   echo "$as_me:2634: \$? = $ac_status" >&5
2635   (exit $ac_status); }; }; then
2636   ac_cv_prog_cc_stdc=$ac_arg
2637 break
2638 else
2639   echo "$as_me: failed program was:" >&5
2640 cat conftest.$ac_ext >&5
2641 fi
2642 rm -f conftest.$ac_objext
2643 done
2644 rm -f conftest.$ac_ext conftest.$ac_objext
2645 CC=$ac_save_CC
2646
2647 fi
2648
2649 case "x$ac_cv_prog_cc_stdc" in
2650   x|xno)
2651     echo "$as_me:2651: result: none needed" >&5
2652 echo "${ECHO_T}none needed" >&6 ;;
2653   *)
2654     echo "$as_me:2654: result: $ac_cv_prog_cc_stdc" >&5
2655 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2656     CC="$CC $ac_cv_prog_cc_stdc" ;;
2657 esac
2658
2659 echo "$as_me:2659: checking for an ANSI C-conforming const" >&5
2660 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
2661 if test "${ac_cv_c_const+set}" = set; then
2662   echo $ECHO_N "(cached) $ECHO_C" >&6
2663 else
2664   cat >conftest.$ac_ext <<_ACEOF
2665 #line 2665 "configure"
2666 #include "confdefs.h"
2667
2668 int
2669 main ()
2670 {
2671 /* FIXME: Include the comments suggested by Paul. */
2672 #ifndef __cplusplus
2673   /* Ultrix mips cc rejects this.  */
2674   typedef int charset[2];
2675   const charset x;
2676   /* SunOS 4.1.1 cc rejects this.  */
2677   char const *const *ccp;
2678   char **p;
2679   /* NEC SVR4.0.2 mips cc rejects this.  */
2680   struct point {int x, y;};
2681   static struct point const zero = {0,0};
2682   /* AIX XL C 1.02.0.0 rejects this.
2683      It does not let you subtract one const X* pointer from another in
2684      an arm of an if-expression whose if-part is not a constant
2685      expression */
2686   const char *g = "string";
2687   ccp = &g + (g ? g-g : 0);
2688   /* HPUX 7.0 cc rejects these. */
2689   ++ccp;
2690   p = (char**) ccp;
2691   ccp = (char const *const *) p;
2692   { /* SCO 3.2v4 cc rejects this.  */
2693     char *t;
2694     char const *s = 0 ? (char *) 0 : (char const *) 0;
2695
2696     *t++ = 0;
2697   }
2698   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
2699     int x[] = {25, 17};
2700     const int *foo = &x[0];
2701     ++foo;
2702   }
2703   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2704     typedef const int *iptr;
2705     iptr p = 0;
2706     ++p;
2707   }
2708   { /* AIX XL C 1.02.0.0 rejects this saying
2709        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2710     struct s { int j; const int *ap[3]; };
2711     struct s *b; b->j = 5;
2712   }
2713   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2714     const int foo = 10;
2715   }
2716 #endif
2717
2718   ;
2719   return 0;
2720 }
2721 _ACEOF
2722 rm -f conftest.$ac_objext
2723 if { (eval echo "$as_me:2723: \"$ac_compile\"") >&5
2724   (eval $ac_compile) 2>&5
2725   ac_status=$?
2726   echo "$as_me:2726: \$? = $ac_status" >&5
2727   (exit $ac_status); } &&
2728          { ac_try='test -s conftest.$ac_objext'
2729   { (eval echo "$as_me:2729: \"$ac_try\"") >&5
2730   (eval $ac_try) 2>&5
2731   ac_status=$?
2732   echo "$as_me:2732: \$? = $ac_status" >&5
2733   (exit $ac_status); }; }; then
2734   ac_cv_c_const=yes
2735 else
2736   echo "$as_me: failed program was:" >&5
2737 cat conftest.$ac_ext >&5
2738 ac_cv_c_const=no
2739 fi
2740 rm -f conftest.$ac_objext conftest.$ac_ext
2741 fi
2742 echo "$as_me:2742: result: $ac_cv_c_const" >&5
2743 echo "${ECHO_T}$ac_cv_c_const" >&6
2744 if test $ac_cv_c_const = no; then
2745
2746 cat >>confdefs.h <<\EOF
2747 #define const
2748 EOF
2749
2750 fi
2751
2752 echo "$as_me:2752: checking for inline" >&5
2753 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2754 if test "${ac_cv_c_inline+set}" = set; then
2755   echo $ECHO_N "(cached) $ECHO_C" >&6
2756 else
2757   ac_cv_c_inline=no
2758 for ac_kw in inline __inline__ __inline; do
2759   cat >conftest.$ac_ext <<_ACEOF
2760 #line 2760 "configure"
2761 #include "confdefs.h"
2762 #ifndef __cplusplus
2763 static $ac_kw int static_foo () {return 0; }
2764 $ac_kw int foo () {return 0; }
2765 #endif
2766
2767 _ACEOF
2768 rm -f conftest.$ac_objext
2769 if { (eval echo "$as_me:2769: \"$ac_compile\"") >&5
2770   (eval $ac_compile) 2>&5
2771   ac_status=$?
2772   echo "$as_me:2772: \$? = $ac_status" >&5
2773   (exit $ac_status); } &&
2774          { ac_try='test -s conftest.$ac_objext'
2775   { (eval echo "$as_me:2775: \"$ac_try\"") >&5
2776   (eval $ac_try) 2>&5
2777   ac_status=$?
2778   echo "$as_me:2778: \$? = $ac_status" >&5
2779   (exit $ac_status); }; }; then
2780   ac_cv_c_inline=$ac_kw; break
2781 else
2782   echo "$as_me: failed program was:" >&5
2783 cat conftest.$ac_ext >&5
2784 fi
2785 rm -f conftest.$ac_objext conftest.$ac_ext
2786 done
2787
2788 fi
2789 echo "$as_me:2789: result: $ac_cv_c_inline" >&5
2790 echo "${ECHO_T}$ac_cv_c_inline" >&6
2791 case $ac_cv_c_inline in
2792   inline | yes) ;;
2793   no)
2794 cat >>confdefs.h <<\EOF
2795 #define inline
2796 EOF
2797  ;;
2798   *)  cat >>confdefs.h <<EOF
2799 #define inline $ac_cv_c_inline
2800 EOF
2801  ;;
2802 esac
2803
2804 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2805
2806 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2807                   inttypes.h stdint.h unistd.h
2808 do
2809 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2810 echo "$as_me:2810: checking for $ac_header" >&5
2811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2813   echo $ECHO_N "(cached) $ECHO_C" >&6
2814 else
2815   cat >conftest.$ac_ext <<_ACEOF
2816 #line 2816 "configure"
2817 #include "confdefs.h"
2818 $ac_includes_default
2819 #include <$ac_header>
2820 _ACEOF
2821 rm -f conftest.$ac_objext
2822 if { (eval echo "$as_me:2822: \"$ac_compile\"") >&5
2823   (eval $ac_compile) 2>&5
2824   ac_status=$?
2825   echo "$as_me:2825: \$? = $ac_status" >&5
2826   (exit $ac_status); } &&
2827          { ac_try='test -s conftest.$ac_objext'
2828   { (eval echo "$as_me:2828: \"$ac_try\"") >&5
2829   (eval $ac_try) 2>&5
2830   ac_status=$?
2831   echo "$as_me:2831: \$? = $ac_status" >&5
2832   (exit $ac_status); }; }; then
2833   eval "$as_ac_Header=yes"
2834 else
2835   echo "$as_me: failed program was:" >&5
2836 cat conftest.$ac_ext >&5
2837 eval "$as_ac_Header=no"
2838 fi
2839 rm -f conftest.$ac_objext conftest.$ac_ext
2840 fi
2841 echo "$as_me:2841: result: `eval echo '${'$as_ac_Header'}'`" >&5
2842 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2843 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2844   cat >>confdefs.h <<EOF
2845 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2846 EOF
2847
2848 fi
2849 done
2850
2851 echo "$as_me:2851: checking for off_t" >&5
2852 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
2853 if test "${ac_cv_type_off_t+set}" = set; then
2854   echo $ECHO_N "(cached) $ECHO_C" >&6
2855 else
2856   cat >conftest.$ac_ext <<_ACEOF
2857 #line 2857 "configure"
2858 #include "confdefs.h"
2859 $ac_includes_default
2860 int
2861 main ()
2862 {
2863 if ((off_t *) 0)
2864   return 0;
2865 if (sizeof (off_t))
2866   return 0;
2867   ;
2868   return 0;
2869 }
2870 _ACEOF
2871 rm -f conftest.$ac_objext
2872 if { (eval echo "$as_me:2872: \"$ac_compile\"") >&5
2873   (eval $ac_compile) 2>&5
2874   ac_status=$?
2875   echo "$as_me:2875: \$? = $ac_status" >&5
2876   (exit $ac_status); } &&
2877          { ac_try='test -s conftest.$ac_objext'
2878   { (eval echo "$as_me:2878: \"$ac_try\"") >&5
2879   (eval $ac_try) 2>&5
2880   ac_status=$?
2881   echo "$as_me:2881: \$? = $ac_status" >&5
2882   (exit $ac_status); }; }; then
2883   ac_cv_type_off_t=yes
2884 else
2885   echo "$as_me: failed program was:" >&5
2886 cat conftest.$ac_ext >&5
2887 ac_cv_type_off_t=no
2888 fi
2889 rm -f conftest.$ac_objext conftest.$ac_ext
2890 fi
2891 echo "$as_me:2891: result: $ac_cv_type_off_t" >&5
2892 echo "${ECHO_T}$ac_cv_type_off_t" >&6
2893 if test $ac_cv_type_off_t = yes; then
2894   :
2895 else
2896
2897 cat >>confdefs.h <<EOF
2898 #define off_t long
2899 EOF
2900
2901 fi
2902
2903 echo "$as_me:2903: checking for size_t" >&5
2904 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
2905 if test "${ac_cv_type_size_t+set}" = set; then
2906   echo $ECHO_N "(cached) $ECHO_C" >&6
2907 else
2908   cat >conftest.$ac_ext <<_ACEOF
2909 #line 2909 "configure"
2910 #include "confdefs.h"
2911 $ac_includes_default
2912 int
2913 main ()
2914 {
2915 if ((size_t *) 0)
2916   return 0;
2917 if (sizeof (size_t))
2918   return 0;
2919   ;
2920   return 0;
2921 }
2922 _ACEOF
2923 rm -f conftest.$ac_objext
2924 if { (eval echo "$as_me:2924: \"$ac_compile\"") >&5
2925   (eval $ac_compile) 2>&5
2926   ac_status=$?
2927   echo "$as_me:2927: \$? = $ac_status" >&5
2928   (exit $ac_status); } &&
2929          { ac_try='test -s conftest.$ac_objext'
2930   { (eval echo "$as_me:2930: \"$ac_try\"") >&5
2931   (eval $ac_try) 2>&5
2932   ac_status=$?
2933   echo "$as_me:2933: \$? = $ac_status" >&5
2934   (exit $ac_status); }; }; then
2935   ac_cv_type_size_t=yes
2936 else
2937   echo "$as_me: failed program was:" >&5
2938 cat conftest.$ac_ext >&5
2939 ac_cv_type_size_t=no
2940 fi
2941 rm -f conftest.$ac_objext conftest.$ac_ext
2942 fi
2943 echo "$as_me:2943: result: $ac_cv_type_size_t" >&5
2944 echo "${ECHO_T}$ac_cv_type_size_t" >&6
2945 if test $ac_cv_type_size_t = yes; then
2946   :
2947 else
2948
2949 cat >>confdefs.h <<EOF
2950 #define size_t unsigned
2951 EOF
2952
2953 fi
2954
2955 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2956 # for constant arguments.  Useless!
2957 echo "$as_me:2957: checking for working alloca.h" >&5
2958 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
2959 if test "${ac_cv_working_alloca_h+set}" = set; then
2960   echo $ECHO_N "(cached) $ECHO_C" >&6
2961 else
2962   cat >conftest.$ac_ext <<_ACEOF
2963 #line 2963 "configure"
2964 #include "confdefs.h"
2965 #include <alloca.h>
2966 int
2967 main ()
2968 {
2969 char *p = (char *) alloca (2 * sizeof (int));
2970   ;
2971   return 0;
2972 }
2973 _ACEOF
2974 rm -f conftest.$ac_objext conftest$ac_exeext
2975 if { (eval echo "$as_me:2975: \"$ac_link\"") >&5
2976   (eval $ac_link) 2>&5
2977   ac_status=$?
2978   echo "$as_me:2978: \$? = $ac_status" >&5
2979   (exit $ac_status); } &&
2980          { ac_try='test -s conftest$ac_exeext'
2981   { (eval echo "$as_me:2981: \"$ac_try\"") >&5
2982   (eval $ac_try) 2>&5
2983   ac_status=$?
2984   echo "$as_me:2984: \$? = $ac_status" >&5
2985   (exit $ac_status); }; }; then
2986   ac_cv_working_alloca_h=yes
2987 else
2988   echo "$as_me: failed program was:" >&5
2989 cat conftest.$ac_ext >&5
2990 ac_cv_working_alloca_h=no
2991 fi
2992 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2993 fi
2994 echo "$as_me:2994: result: $ac_cv_working_alloca_h" >&5
2995 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
2996 if test $ac_cv_working_alloca_h = yes; then
2997
2998 cat >>confdefs.h <<\EOF
2999 #define HAVE_ALLOCA_H 1
3000 EOF
3001
3002 fi
3003
3004 echo "$as_me:3004: checking for alloca" >&5
3005 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3006 if test "${ac_cv_func_alloca_works+set}" = set; then
3007   echo $ECHO_N "(cached) $ECHO_C" >&6
3008 else
3009   cat >conftest.$ac_ext <<_ACEOF
3010 #line 3010 "configure"
3011 #include "confdefs.h"
3012 #ifdef __GNUC__
3013 # define alloca __builtin_alloca
3014 #else
3015 # ifdef _MSC_VER
3016 #  include <malloc.h>
3017 #  define alloca _alloca
3018 # else
3019 #  if HAVE_ALLOCA_H
3020 #   include <alloca.h>
3021 #  else
3022 #   ifdef _AIX
3023  #pragma alloca
3024 #   else
3025 #    ifndef alloca /* predefined by HP cc +Olibcalls */
3026 char *alloca ();
3027 #    endif
3028 #   endif
3029 #  endif
3030 # endif
3031 #endif
3032
3033 int
3034 main ()
3035 {
3036 char *p = (char *) alloca (1);
3037   ;
3038   return 0;
3039 }
3040 _ACEOF
3041 rm -f conftest.$ac_objext conftest$ac_exeext
3042 if { (eval echo "$as_me:3042: \"$ac_link\"") >&5
3043   (eval $ac_link) 2>&5
3044   ac_status=$?
3045   echo "$as_me:3045: \$? = $ac_status" >&5
3046   (exit $ac_status); } &&
3047          { ac_try='test -s conftest$ac_exeext'
3048   { (eval echo "$as_me:3048: \"$ac_try\"") >&5
3049   (eval $ac_try) 2>&5
3050   ac_status=$?
3051   echo "$as_me:3051: \$? = $ac_status" >&5
3052   (exit $ac_status); }; }; then
3053   ac_cv_func_alloca_works=yes
3054 else
3055   echo "$as_me: failed program was:" >&5
3056 cat conftest.$ac_ext >&5
3057 ac_cv_func_alloca_works=no
3058 fi
3059 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3060 fi
3061 echo "$as_me:3061: result: $ac_cv_func_alloca_works" >&5
3062 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
3063
3064 if test $ac_cv_func_alloca_works = yes; then
3065
3066 cat >>confdefs.h <<\EOF
3067 #define HAVE_ALLOCA 1
3068 EOF
3069
3070 else
3071   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3072 # that cause trouble.  Some versions do not even contain alloca or
3073 # contain a buggy version.  If you still want to use their alloca,
3074 # use ar to extract alloca.o from them instead of compiling alloca.c.
3075
3076 ALLOCA=alloca.$ac_objext
3077
3078 cat >>confdefs.h <<\EOF
3079 #define C_ALLOCA 1
3080 EOF
3081
3082 echo "$as_me:3082: checking whether \`alloca.c' needs Cray hooks" >&5
3083 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3084 if test "${ac_cv_os_cray+set}" = set; then
3085   echo $ECHO_N "(cached) $ECHO_C" >&6
3086 else
3087   cat >conftest.$ac_ext <<_ACEOF
3088 #line 3088 "configure"
3089 #include "confdefs.h"
3090 #if defined(CRAY) && ! defined(CRAY2)
3091 webecray
3092 #else
3093 wenotbecray
3094 #endif
3095
3096 _ACEOF
3097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3098   egrep "webecray" >/dev/null 2>&1; then
3099   ac_cv_os_cray=yes
3100 else
3101   ac_cv_os_cray=no
3102 fi
3103 rm -f conftest*
3104
3105 fi
3106 echo "$as_me:3106: result: $ac_cv_os_cray" >&5
3107 echo "${ECHO_T}$ac_cv_os_cray" >&6
3108 if test $ac_cv_os_cray = yes; then
3109   for ac_func in _getb67 GETB67 getb67; do
3110     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3111 echo "$as_me:3111: checking for $ac_func" >&5
3112 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3113 if eval "test \"\${$as_ac_var+set}\" = set"; then
3114   echo $ECHO_N "(cached) $ECHO_C" >&6
3115 else
3116   cat >conftest.$ac_ext <<_ACEOF
3117 #line 3117 "configure"
3118 #include "confdefs.h"
3119 /* System header to define __stub macros and hopefully few prototypes,
3120     which can conflict with char $ac_func (); below.  */
3121 #include <assert.h>
3122 /* Override any gcc2 internal prototype to avoid an error.  */
3123 #ifdef __cplusplus
3124 extern "C"
3125 #endif
3126 /* We use char because int might match the return type of a gcc2
3127    builtin and then its argument prototype would still apply.  */
3128 char $ac_func ();
3129 char (*f) ();
3130
3131 int
3132 main ()
3133 {
3134 /* The GNU C library defines this for functions which it implements
3135     to always fail with ENOSYS.  Some functions are actually named
3136     something starting with __ and the normal name is an alias.  */
3137 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3138 choke me
3139 #else
3140 f = $ac_func;
3141 #endif
3142
3143   ;
3144   return 0;
3145 }
3146 _ACEOF
3147 rm -f conftest.$ac_objext conftest$ac_exeext
3148 if { (eval echo "$as_me:3148: \"$ac_link\"") >&5
3149   (eval $ac_link) 2>&5
3150   ac_status=$?
3151   echo "$as_me:3151: \$? = $ac_status" >&5
3152   (exit $ac_status); } &&
3153          { ac_try='test -s conftest$ac_exeext'
3154   { (eval echo "$as_me:3154: \"$ac_try\"") >&5
3155   (eval $ac_try) 2>&5
3156   ac_status=$?
3157   echo "$as_me:3157: \$? = $ac_status" >&5
3158   (exit $ac_status); }; }; then
3159   eval "$as_ac_var=yes"
3160 else
3161   echo "$as_me: failed program was:" >&5
3162 cat conftest.$ac_ext >&5
3163 eval "$as_ac_var=no"
3164 fi
3165 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3166 fi
3167 echo "$as_me:3167: result: `eval echo '${'$as_ac_var'}'`" >&5
3168 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3169 if test `eval echo '${'$as_ac_var'}'` = yes; then
3170
3171 cat >>confdefs.h <<EOF
3172 #define CRAY_STACKSEG_END $ac_func
3173 EOF
3174
3175     break
3176 fi
3177
3178   done
3179 fi
3180
3181 echo "$as_me:3181: checking stack direction for C alloca" >&5
3182 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
3183 if test "${ac_cv_c_stack_direction+set}" = set; then
3184   echo $ECHO_N "(cached) $ECHO_C" >&6
3185 else
3186   if test "$cross_compiling" = yes; then
3187   ac_cv_c_stack_direction=0
3188 else
3189   cat >conftest.$ac_ext <<_ACEOF
3190 #line 3190 "configure"
3191 #include "confdefs.h"
3192 int
3193 find_stack_direction ()
3194 {
3195   static char *addr = 0;
3196   auto char dummy;
3197   if (addr == 0)
3198     {
3199       addr = &dummy;
3200       return find_stack_direction ();
3201     }
3202   else
3203     return (&dummy > addr) ? 1 : -1;
3204 }
3205
3206 int
3207 main ()
3208 {
3209   exit (find_stack_direction () < 0);
3210 }
3211 _ACEOF
3212 rm -f conftest$ac_exeext
3213 if { (eval echo "$as_me:3213: \"$ac_link\"") >&5
3214   (eval $ac_link) 2>&5
3215   ac_status=$?
3216   echo "$as_me:3216: \$? = $ac_status" >&5
3217   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3218   { (eval echo "$as_me:3218: \"$ac_try\"") >&5
3219   (eval $ac_try) 2>&5
3220   ac_status=$?
3221   echo "$as_me:3221: \$? = $ac_status" >&5
3222   (exit $ac_status); }; }; then
3223   ac_cv_c_stack_direction=1
3224 else
3225   echo "$as_me: program exited with status $ac_status" >&5
3226 echo "$as_me: failed program was:" >&5
3227 cat conftest.$ac_ext >&5
3228 ac_cv_c_stack_direction=-1
3229 fi
3230 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3231 fi
3232 fi
3233 echo "$as_me:3233: result: $ac_cv_c_stack_direction" >&5
3234 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
3235
3236 cat >>confdefs.h <<EOF
3237 #define STACK_DIRECTION $ac_cv_c_stack_direction
3238 EOF
3239
3240 fi
3241
3242 for ac_header in stdlib.h unistd.h
3243 do
3244 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3245 echo "$as_me:3245: checking for $ac_header" >&5
3246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3247 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3248   echo $ECHO_N "(cached) $ECHO_C" >&6
3249 else
3250   cat >conftest.$ac_ext <<_ACEOF
3251 #line 3251 "configure"
3252 #include "confdefs.h"
3253 #include <$ac_header>
3254 _ACEOF
3255 if { (eval echo "$as_me:3255: \"$ac_cpp conftest.$ac_ext\"") >&5
3256   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3257   ac_status=$?
3258   egrep -v '^ *\+' conftest.er1 >conftest.err
3259   rm -f conftest.er1
3260   cat conftest.err >&5
3261   echo "$as_me:3261: \$? = $ac_status" >&5
3262   (exit $ac_status); } >/dev/null; then
3263   if test -s conftest.err; then
3264     ac_cpp_err=$ac_c_preproc_warn_flag
3265   else
3266     ac_cpp_err=
3267   fi
3268 else
3269   ac_cpp_err=yes
3270 fi
3271 if test -z "$ac_cpp_err"; then
3272   eval "$as_ac_Header=yes"
3273 else
3274   echo "$as_me: failed program was:" >&5
3275   cat conftest.$ac_ext >&5
3276   eval "$as_ac_Header=no"
3277 fi
3278 rm -f conftest.err conftest.$ac_ext
3279 fi
3280 echo "$as_me:3280: result: `eval echo '${'$as_ac_Header'}'`" >&5
3281 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3282 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3283   cat >>confdefs.h <<EOF
3284 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3285 EOF
3286
3287 fi
3288 done
3289
3290 for ac_func in getpagesize
3291 do
3292 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3293 echo "$as_me:3293: checking for $ac_func" >&5
3294 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3295 if eval "test \"\${$as_ac_var+set}\" = set"; then
3296   echo $ECHO_N "(cached) $ECHO_C" >&6
3297 else
3298   cat >conftest.$ac_ext <<_ACEOF
3299 #line 3299 "configure"
3300 #include "confdefs.h"
3301 /* System header to define __stub macros and hopefully few prototypes,
3302     which can conflict with char $ac_func (); below.  */
3303 #include <assert.h>
3304 /* Override any gcc2 internal prototype to avoid an error.  */
3305 #ifdef __cplusplus
3306 extern "C"
3307 #endif
3308 /* We use char because int might match the return type of a gcc2
3309    builtin and then its argument prototype would still apply.  */
3310 char $ac_func ();
3311 char (*f) ();
3312
3313 int
3314 main ()
3315 {
3316 /* The GNU C library defines this for functions which it implements
3317     to always fail with ENOSYS.  Some functions are actually named
3318     something starting with __ and the normal name is an alias.  */
3319 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3320 choke me
3321 #else
3322 f = $ac_func;
3323 #endif
3324
3325   ;
3326   return 0;
3327 }
3328 _ACEOF
3329 rm -f conftest.$ac_objext conftest$ac_exeext
3330 if { (eval echo "$as_me:3330: \"$ac_link\"") >&5
3331   (eval $ac_link) 2>&5
3332   ac_status=$?
3333   echo "$as_me:3333: \$? = $ac_status" >&5
3334   (exit $ac_status); } &&
3335          { ac_try='test -s conftest$ac_exeext'
3336   { (eval echo "$as_me:3336: \"$ac_try\"") >&5
3337   (eval $ac_try) 2>&5
3338   ac_status=$?
3339   echo "$as_me:3339: \$? = $ac_status" >&5
3340   (exit $ac_status); }; }; then
3341   eval "$as_ac_var=yes"
3342 else
3343   echo "$as_me: failed program was:" >&5
3344 cat conftest.$ac_ext >&5
3345 eval "$as_ac_var=no"
3346 fi
3347 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3348 fi
3349 echo "$as_me:3349: result: `eval echo '${'$as_ac_var'}'`" >&5
3350 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3351 if test `eval echo '${'$as_ac_var'}'` = yes; then
3352   cat >>confdefs.h <<EOF
3353 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3354 EOF
3355
3356 fi
3357 done
3358
3359 echo "$as_me:3359: checking for working mmap" >&5
3360 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
3361 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
3362   echo $ECHO_N "(cached) $ECHO_C" >&6
3363 else
3364   if test "$cross_compiling" = yes; then
3365   ac_cv_func_mmap_fixed_mapped=no
3366 else
3367   cat >conftest.$ac_ext <<_ACEOF
3368 #line 3368 "configure"
3369 #include "confdefs.h"
3370 $ac_includes_default
3371 /* Thanks to Mike Haertel and Jim Avera for this test.
3372    Here is a matrix of mmap possibilities:
3373         mmap private not fixed
3374         mmap private fixed at somewhere currently unmapped
3375         mmap private fixed at somewhere already mapped
3376         mmap shared not fixed
3377         mmap shared fixed at somewhere currently unmapped
3378         mmap shared fixed at somewhere already mapped
3379    For private mappings, we should verify that changes cannot be read()
3380    back from the file, nor mmap's back from the file at a different
3381    address.  (There have been systems where private was not correctly
3382    implemented like the infamous i386 svr4.0, and systems where the
3383    VM page cache was not coherent with the file system buffer cache
3384    like early versions of FreeBSD and possibly contemporary NetBSD.)
3385    For shared mappings, we should conversely verify that changes get
3386    propogated back to all the places they're supposed to be.
3387
3388    Grep wants private fixed already mapped.
3389    The main things grep needs to know about mmap are:
3390    * does it exist and is it safe to write into the mmap'd area
3391    * how to use it (BSD variants)  */
3392
3393 #include <fcntl.h>
3394 #include <sys/mman.h>
3395
3396 #if !STDC_HEADERS && !HAVE_STDLIB_H
3397 char *malloc ();
3398 #endif
3399
3400 /* This mess was copied from the GNU getpagesize.h.  */
3401 #if !HAVE_GETPAGESIZE
3402 /* Assume that all systems that can run configure have sys/param.h.  */
3403 # if !HAVE_SYS_PARAM_H
3404 #  define HAVE_SYS_PARAM_H 1
3405 # endif
3406
3407 # ifdef _SC_PAGESIZE
3408 #  define getpagesize() sysconf(_SC_PAGESIZE)
3409 # else /* no _SC_PAGESIZE */
3410 #  if HAVE_SYS_PARAM_H
3411 #   include <sys/param.h>
3412 #   ifdef EXEC_PAGESIZE
3413 #    define getpagesize() EXEC_PAGESIZE
3414 #   else /* no EXEC_PAGESIZE */
3415 #    ifdef NBPG
3416 #     define getpagesize() NBPG * CLSIZE
3417 #     ifndef CLSIZE
3418 #      define CLSIZE 1
3419 #     endif /* no CLSIZE */
3420 #    else /* no NBPG */
3421 #     ifdef NBPC
3422 #      define getpagesize() NBPC
3423 #     else /* no NBPC */
3424 #      ifdef PAGESIZE
3425 #       define getpagesize() PAGESIZE
3426 #      endif /* PAGESIZE */
3427 #     endif /* no NBPC */
3428 #    endif /* no NBPG */
3429 #   endif /* no EXEC_PAGESIZE */
3430 #  else /* no HAVE_SYS_PARAM_H */
3431 #   define getpagesize() 8192   /* punt totally */
3432 #  endif /* no HAVE_SYS_PARAM_H */
3433 # endif /* no _SC_PAGESIZE */
3434
3435 #endif /* no HAVE_GETPAGESIZE */
3436
3437 int
3438 main ()
3439 {
3440   char *data, *data2, *data3;
3441   int i, pagesize;
3442   int fd;
3443
3444   pagesize = getpagesize ();
3445
3446   /* First, make a file with some known garbage in it. */
3447   data = (char *) malloc (pagesize);
3448   if (!data)
3449     exit (1);
3450   for (i = 0; i < pagesize; ++i)
3451     *(data + i) = rand ();
3452   umask (0);
3453   fd = creat ("conftest.mmap", 0600);
3454   if (fd < 0)
3455     exit (1);
3456   if (write (fd, data, pagesize) != pagesize)
3457     exit (1);
3458   close (fd);
3459
3460   /* Next, try to mmap the file at a fixed address which already has
3461      something else allocated at it.  If we can, also make sure that
3462      we see the same garbage.  */
3463   fd = open ("conftest.mmap", O_RDWR);
3464   if (fd < 0)
3465     exit (1);
3466   data2 = (char *) malloc (2 * pagesize);
3467   if (!data2)
3468     exit (1);
3469   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3470   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
3471                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
3472     exit (1);
3473   for (i = 0; i < pagesize; ++i)
3474     if (*(data + i) != *(data2 + i))
3475       exit (1);
3476
3477   /* Finally, make sure that changes to the mapped area do not
3478      percolate back to the file as seen by read().  (This is a bug on
3479      some variants of i386 svr4.0.)  */
3480   for (i = 0; i < pagesize; ++i)
3481     *(data2 + i) = *(data2 + i) + 1;
3482   data3 = (char *) malloc (pagesize);
3483   if (!data3)
3484     exit (1);
3485   if (read (fd, data3, pagesize) != pagesize)
3486     exit (1);
3487   for (i = 0; i < pagesize; ++i)
3488     if (*(data + i) != *(data3 + i))
3489       exit (1);
3490   close (fd);
3491   exit (0);
3492 }
3493 _ACEOF
3494 rm -f conftest$ac_exeext
3495 if { (eval echo "$as_me:3495: \"$ac_link\"") >&5
3496   (eval $ac_link) 2>&5
3497   ac_status=$?
3498   echo "$as_me:3498: \$? = $ac_status" >&5
3499   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3500   { (eval echo "$as_me:3500: \"$ac_try\"") >&5
3501   (eval $ac_try) 2>&5
3502   ac_status=$?
3503   echo "$as_me:3503: \$? = $ac_status" >&5
3504   (exit $ac_status); }; }; then
3505   ac_cv_func_mmap_fixed_mapped=yes
3506 else
3507   echo "$as_me: program exited with status $ac_status" >&5
3508 echo "$as_me: failed program was:" >&5
3509 cat conftest.$ac_ext >&5
3510 ac_cv_func_mmap_fixed_mapped=no
3511 fi
3512 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3513 fi
3514 fi
3515 echo "$as_me:3515: result: $ac_cv_func_mmap_fixed_mapped" >&5
3516 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
3517 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3518
3519 cat >>confdefs.h <<\EOF
3520 #define HAVE_MMAP 1
3521 EOF
3522
3523 fi
3524 rm -f conftest.mmap
3525
3526     echo "$as_me:3526: checking whether we are using the GNU C Library 2.1 or newer" >&5
3527 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
3528 if test "${ac_cv_gnu_library_2_1+set}" = set; then
3529   echo $ECHO_N "(cached) $ECHO_C" >&6
3530 else
3531   cat >conftest.$ac_ext <<_ACEOF
3532 #line 3532 "configure"
3533 #include "confdefs.h"
3534
3535 #include <features.h>
3536 #ifdef __GNU_LIBRARY__
3537  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
3538   Lucky GNU user
3539  #endif
3540 #endif
3541
3542 _ACEOF
3543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3544   egrep "Lucky GNU user" >/dev/null 2>&1; then
3545   ac_cv_gnu_library_2_1=yes
3546 else
3547   ac_cv_gnu_library_2_1=no
3548 fi
3549 rm -f conftest*
3550
3551 fi
3552 echo "$as_me:3552: result: $ac_cv_gnu_library_2_1" >&5
3553 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
3554
3555     GLIBC21="$ac_cv_gnu_library_2_1"
3556
3557 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
3558 stdlib.h string.h unistd.h sys/param.h
3559 do
3560 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3561 echo "$as_me:3561: checking for $ac_header" >&5
3562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3564   echo $ECHO_N "(cached) $ECHO_C" >&6
3565 else
3566   cat >conftest.$ac_ext <<_ACEOF
3567 #line 3567 "configure"
3568 #include "confdefs.h"
3569 #include <$ac_header>
3570 _ACEOF
3571 if { (eval echo "$as_me:3571: \"$ac_cpp conftest.$ac_ext\"") >&5
3572   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3573   ac_status=$?
3574   egrep -v '^ *\+' conftest.er1 >conftest.err
3575   rm -f conftest.er1
3576   cat conftest.err >&5
3577   echo "$as_me:3577: \$? = $ac_status" >&5
3578   (exit $ac_status); } >/dev/null; then
3579   if test -s conftest.err; then
3580     ac_cpp_err=$ac_c_preproc_warn_flag
3581   else
3582     ac_cpp_err=
3583   fi
3584 else
3585   ac_cpp_err=yes
3586 fi
3587 if test -z "$ac_cpp_err"; then
3588   eval "$as_ac_Header=yes"
3589 else
3590   echo "$as_me: failed program was:" >&5
3591   cat conftest.$ac_ext >&5
3592   eval "$as_ac_Header=no"
3593 fi
3594 rm -f conftest.err conftest.$ac_ext
3595 fi
3596 echo "$as_me:3596: result: `eval echo '${'$as_ac_Header'}'`" >&5
3597 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3598 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3599   cat >>confdefs.h <<EOF
3600 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3601 EOF
3602
3603 fi
3604 done
3605
3606 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
3607 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
3608 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
3609 do
3610 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3611 echo "$as_me:3611: checking for $ac_func" >&5
3612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3613 if eval "test \"\${$as_ac_var+set}\" = set"; then
3614   echo $ECHO_N "(cached) $ECHO_C" >&6
3615 else
3616   cat >conftest.$ac_ext <<_ACEOF
3617 #line 3617 "configure"
3618 #include "confdefs.h"
3619 /* System header to define __stub macros and hopefully few prototypes,
3620     which can conflict with char $ac_func (); below.  */
3621 #include <assert.h>
3622 /* Override any gcc2 internal prototype to avoid an error.  */
3623 #ifdef __cplusplus
3624 extern "C"
3625 #endif
3626 /* We use char because int might match the return type of a gcc2
3627    builtin and then its argument prototype would still apply.  */
3628 char $ac_func ();
3629 char (*f) ();
3630
3631 int
3632 main ()
3633 {
3634 /* The GNU C library defines this for functions which it implements
3635     to always fail with ENOSYS.  Some functions are actually named
3636     something starting with __ and the normal name is an alias.  */
3637 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3638 choke me
3639 #else
3640 f = $ac_func;
3641 #endif
3642
3643   ;
3644   return 0;
3645 }
3646 _ACEOF
3647 rm -f conftest.$ac_objext conftest$ac_exeext
3648 if { (eval echo "$as_me:3648: \"$ac_link\"") >&5
3649   (eval $ac_link) 2>&5
3650   ac_status=$?
3651   echo "$as_me:3651: \$? = $ac_status" >&5
3652   (exit $ac_status); } &&
3653          { ac_try='test -s conftest$ac_exeext'
3654   { (eval echo "$as_me:3654: \"$ac_try\"") >&5
3655   (eval $ac_try) 2>&5
3656   ac_status=$?
3657   echo "$as_me:3657: \$? = $ac_status" >&5
3658   (exit $ac_status); }; }; then
3659   eval "$as_ac_var=yes"
3660 else
3661   echo "$as_me: failed program was:" >&5
3662 cat conftest.$ac_ext >&5
3663 eval "$as_ac_var=no"
3664 fi
3665 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3666 fi
3667 echo "$as_me:3667: result: `eval echo '${'$as_ac_var'}'`" >&5
3668 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3669 if test `eval echo '${'$as_ac_var'}'` = yes; then
3670   cat >>confdefs.h <<EOF
3671 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3672 EOF
3673
3674 fi
3675 done
3676
3677 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
3678 if test "${with_libiconv_prefix+set}" = set; then
3679   withval="$with_libiconv_prefix"
3680
3681     for dir in `echo "$withval" | tr : ' '`; do
3682       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
3683       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
3684     done
3685
3686 fi;
3687
3688   echo "$as_me:3688: checking for iconv" >&5
3689 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
3690 if test "${am_cv_func_iconv+set}" = set; then
3691   echo $ECHO_N "(cached) $ECHO_C" >&6
3692 else
3693
3694     am_cv_func_iconv="no, consider installing GNU libiconv"
3695     am_cv_lib_iconv=no
3696     cat >conftest.$ac_ext <<_ACEOF
3697 #line 3697 "configure"
3698 #include "confdefs.h"
3699 #include <stdlib.h>
3700 #include <iconv.h>
3701 int
3702 main ()
3703 {
3704 iconv_t cd = iconv_open("","");
3705        iconv(cd,NULL,NULL,NULL,NULL);
3706        iconv_close(cd);
3707   ;
3708   return 0;
3709 }
3710 _ACEOF
3711 rm -f conftest.$ac_objext conftest$ac_exeext
3712 if { (eval echo "$as_me:3712: \"$ac_link\"") >&5
3713   (eval $ac_link) 2>&5
3714   ac_status=$?
3715   echo "$as_me:3715: \$? = $ac_status" >&5
3716   (exit $ac_status); } &&
3717          { ac_try='test -s conftest$ac_exeext'
3718   { (eval echo "$as_me:3718: \"$ac_try\"") >&5
3719   (eval $ac_try) 2>&5
3720   ac_status=$?
3721   echo "$as_me:3721: \$? = $ac_status" >&5
3722   (exit $ac_status); }; }; then
3723   am_cv_func_iconv=yes
3724 else
3725   echo "$as_me: failed program was:" >&5
3726 cat conftest.$ac_ext >&5
3727 fi
3728 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3729     if test "$am_cv_func_iconv" != yes; then
3730       am_save_LIBS="$LIBS"
3731       LIBS="$LIBS -liconv"
3732       cat >conftest.$ac_ext <<_ACEOF
3733 #line 3733 "configure"
3734 #include "confdefs.h"
3735 #include <stdlib.h>
3736 #include <iconv.h>
3737 int
3738 main ()
3739 {
3740 iconv_t cd = iconv_open("","");
3741          iconv(cd,NULL,NULL,NULL,NULL);
3742          iconv_close(cd);
3743   ;
3744   return 0;
3745 }
3746 _ACEOF
3747 rm -f conftest.$ac_objext conftest$ac_exeext
3748 if { (eval echo "$as_me:3748: \"$ac_link\"") >&5
3749   (eval $ac_link) 2>&5
3750   ac_status=$?
3751   echo "$as_me:3751: \$? = $ac_status" >&5
3752   (exit $ac_status); } &&
3753          { ac_try='test -s conftest$ac_exeext'
3754   { (eval echo "$as_me:3754: \"$ac_try\"") >&5
3755   (eval $ac_try) 2>&5
3756   ac_status=$?
3757   echo "$as_me:3757: \$? = $ac_status" >&5
3758   (exit $ac_status); }; }; then
3759   am_cv_lib_iconv=yes
3760         am_cv_func_iconv=yes
3761 else
3762   echo "$as_me: failed program was:" >&5
3763 cat conftest.$ac_ext >&5
3764 fi
3765 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3766       LIBS="$am_save_LIBS"
3767     fi
3768
3769 fi
3770 echo "$as_me:3770: result: $am_cv_func_iconv" >&5
3771 echo "${ECHO_T}$am_cv_func_iconv" >&6
3772   if test "$am_cv_func_iconv" = yes; then
3773
3774 cat >>confdefs.h <<\EOF
3775 #define HAVE_ICONV 1
3776 EOF
3777
3778     echo "$as_me:3778: checking for iconv declaration" >&5
3779 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
3780     if test "${am_cv_proto_iconv+set}" = set; then
3781   echo $ECHO_N "(cached) $ECHO_C" >&6
3782 else
3783
3784       cat >conftest.$ac_ext <<_ACEOF
3785 #line 3785 "configure"
3786 #include "confdefs.h"
3787
3788 #include <stdlib.h>
3789 #include <iconv.h>
3790 extern
3791 #ifdef __cplusplus
3792 "C"
3793 #endif
3794 #if defined(__STDC__) || defined(__cplusplus)
3795 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
3796 #else
3797 size_t iconv();
3798 #endif
3799
3800 int
3801 main ()
3802 {
3803
3804   ;
3805   return 0;
3806 }
3807 _ACEOF
3808 rm -f conftest.$ac_objext
3809 if { (eval echo "$as_me:3809: \"$ac_compile\"") >&5
3810   (eval $ac_compile) 2>&5
3811   ac_status=$?
3812   echo "$as_me:3812: \$? = $ac_status" >&5
3813   (exit $ac_status); } &&
3814          { ac_try='test -s conftest.$ac_objext'
3815   { (eval echo "$as_me:3815: \"$ac_try\"") >&5
3816   (eval $ac_try) 2>&5
3817   ac_status=$?
3818   echo "$as_me:3818: \$? = $ac_status" >&5
3819   (exit $ac_status); }; }; then
3820   am_cv_proto_iconv_arg1=""
3821 else
3822   echo "$as_me: failed program was:" >&5
3823 cat conftest.$ac_ext >&5
3824 am_cv_proto_iconv_arg1="const"
3825 fi
3826 rm -f conftest.$ac_objext conftest.$ac_ext
3827       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);"
3828 fi
3829
3830     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
3831     echo "$as_me:3831: result: ${ac_t:-
3832          }$am_cv_proto_iconv" >&5
3833 echo "${ECHO_T}${ac_t:-
3834          }$am_cv_proto_iconv" >&6
3835
3836 cat >>confdefs.h <<EOF
3837 #define ICONV_CONST $am_cv_proto_iconv_arg1
3838 EOF
3839
3840   fi
3841   LIBICONV=
3842   if test "$am_cv_lib_iconv" = yes; then
3843     LIBICONV="-liconv"
3844   fi
3845
3846   echo "$as_me:3846: checking for nl_langinfo and CODESET" >&5
3847 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
3848 if test "${am_cv_langinfo_codeset+set}" = set; then
3849   echo $ECHO_N "(cached) $ECHO_C" >&6
3850 else
3851   cat >conftest.$ac_ext <<_ACEOF
3852 #line 3852 "configure"
3853 #include "confdefs.h"
3854 #include <langinfo.h>
3855 int
3856 main ()
3857 {
3858 char* cs = nl_langinfo(CODESET);
3859   ;
3860   return 0;
3861 }
3862 _ACEOF
3863 rm -f conftest.$ac_objext conftest$ac_exeext
3864 if { (eval echo "$as_me:3864: \"$ac_link\"") >&5
3865   (eval $ac_link) 2>&5
3866   ac_status=$?
3867   echo "$as_me:3867: \$? = $ac_status" >&5
3868   (exit $ac_status); } &&
3869          { ac_try='test -s conftest$ac_exeext'
3870   { (eval echo "$as_me:3870: \"$ac_try\"") >&5
3871   (eval $ac_try) 2>&5
3872   ac_status=$?
3873   echo "$as_me:3873: \$? = $ac_status" >&5
3874   (exit $ac_status); }; }; then
3875   am_cv_langinfo_codeset=yes
3876 else
3877   echo "$as_me: failed program was:" >&5
3878 cat conftest.$ac_ext >&5
3879 am_cv_langinfo_codeset=no
3880 fi
3881 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3882
3883 fi
3884 echo "$as_me:3884: result: $am_cv_langinfo_codeset" >&5
3885 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
3886   if test $am_cv_langinfo_codeset = yes; then
3887
3888 cat >>confdefs.h <<\EOF
3889 #define HAVE_LANGINFO_CODESET 1
3890 EOF
3891
3892   fi
3893
3894    if test $ac_cv_header_locale_h = yes; then
3895     echo "$as_me:3895: checking for LC_MESSAGES" >&5
3896 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
3897 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
3898   echo $ECHO_N "(cached) $ECHO_C" >&6
3899 else
3900   cat >conftest.$ac_ext <<_ACEOF
3901 #line 3901 "configure"
3902 #include "confdefs.h"
3903 #include <locale.h>
3904 int
3905 main ()
3906 {
3907 return LC_MESSAGES
3908   ;
3909   return 0;
3910 }
3911 _ACEOF
3912 rm -f conftest.$ac_objext conftest$ac_exeext
3913 if { (eval echo "$as_me:3913: \"$ac_link\"") >&5
3914   (eval $ac_link) 2>&5
3915   ac_status=$?
3916   echo "$as_me:3916: \$? = $ac_status" >&5
3917   (exit $ac_status); } &&
3918          { ac_try='test -s conftest$ac_exeext'
3919   { (eval echo "$as_me:3919: \"$ac_try\"") >&5
3920   (eval $ac_try) 2>&5
3921   ac_status=$?
3922   echo "$as_me:3922: \$? = $ac_status" >&5
3923   (exit $ac_status); }; }; then
3924   am_cv_val_LC_MESSAGES=yes
3925 else
3926   echo "$as_me: failed program was:" >&5
3927 cat conftest.$ac_ext >&5
3928 am_cv_val_LC_MESSAGES=no
3929 fi
3930 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3931 fi
3932 echo "$as_me:3932: result: $am_cv_val_LC_MESSAGES" >&5
3933 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
3934     if test $am_cv_val_LC_MESSAGES = yes; then
3935
3936 cat >>confdefs.h <<\EOF
3937 #define HAVE_LC_MESSAGES 1
3938 EOF
3939
3940     fi
3941   fi
3942    echo "$as_me:3942: checking whether NLS is requested" >&5
3943 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
3944         # Check whether --enable-nls or --disable-nls was given.
3945 if test "${enable_nls+set}" = set; then
3946   enableval="$enable_nls"
3947   USE_NLS=$enableval
3948 else
3949   USE_NLS=yes
3950 fi;
3951     echo "$as_me:3951: result: $USE_NLS" >&5
3952 echo "${ECHO_T}$USE_NLS" >&6
3953
3954     BUILD_INCLUDED_LIBINTL=no
3955     USE_INCLUDED_LIBINTL=no
3956     INTLLIBS=
3957
3958         if test "$USE_NLS" = "yes"; then
3959
3960 cat >>confdefs.h <<\EOF
3961 #define ENABLE_NLS 1
3962 EOF
3963
3964       echo "$as_me:3964: checking whether included gettext is requested" >&5
3965 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
3966
3967 # Check whether --with-included-gettext or --without-included-gettext was given.
3968 if test "${with_included_gettext+set}" = set; then
3969   withval="$with_included_gettext"
3970   nls_cv_force_use_gnu_gettext=$withval
3971 else
3972   nls_cv_force_use_gnu_gettext=no
3973 fi;
3974       echo "$as_me:3974: result: $nls_cv_force_use_gnu_gettext" >&5
3975 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
3976
3977       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
3978       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3979                                 CATOBJEXT=NONE
3980
3981         echo "$as_me:3981: checking for libintl.h" >&5
3982 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
3983 if test "${ac_cv_header_libintl_h+set}" = set; then
3984   echo $ECHO_N "(cached) $ECHO_C" >&6
3985 else
3986   cat >conftest.$ac_ext <<_ACEOF
3987 #line 3987 "configure"
3988 #include "confdefs.h"
3989 #include <libintl.h>
3990 _ACEOF
3991 if { (eval echo "$as_me:3991: \"$ac_cpp conftest.$ac_ext\"") >&5
3992   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3993   ac_status=$?
3994   egrep -v '^ *\+' conftest.er1 >conftest.err
3995   rm -f conftest.er1
3996   cat conftest.err >&5
3997   echo "$as_me:3997: \$? = $ac_status" >&5
3998   (exit $ac_status); } >/dev/null; then
3999   if test -s conftest.err; then
4000     ac_cpp_err=$ac_c_preproc_warn_flag
4001   else
4002     ac_cpp_err=
4003   fi
4004 else
4005   ac_cpp_err=yes
4006 fi
4007 if test -z "$ac_cpp_err"; then
4008   ac_cv_header_libintl_h=yes
4009 else
4010   echo "$as_me: failed program was:" >&5
4011   cat conftest.$ac_ext >&5
4012   ac_cv_header_libintl_h=no
4013 fi
4014 rm -f conftest.err conftest.$ac_ext
4015 fi
4016 echo "$as_me:4016: result: $ac_cv_header_libintl_h" >&5
4017 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4018 if test $ac_cv_header_libintl_h = yes; then
4019   echo "$as_me:4019: checking for GNU gettext in libc" >&5
4020 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
4021 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
4022   echo $ECHO_N "(cached) $ECHO_C" >&6
4023 else
4024   cat >conftest.$ac_ext <<_ACEOF
4025 #line 4025 "configure"
4026 #include "confdefs.h"
4027 #include <libintl.h>
4028 extern int _nl_msg_cat_cntr;
4029 int
4030 main ()
4031 {
4032 bindtextdomain ("", "");
4033 return (int) gettext ("") + _nl_msg_cat_cntr
4034   ;
4035   return 0;
4036 }
4037 _ACEOF
4038 rm -f conftest.$ac_objext conftest$ac_exeext
4039 if { (eval echo "$as_me:4039: \"$ac_link\"") >&5
4040   (eval $ac_link) 2>&5
4041   ac_status=$?
4042   echo "$as_me:4042: \$? = $ac_status" >&5
4043   (exit $ac_status); } &&
4044          { ac_try='test -s conftest$ac_exeext'
4045   { (eval echo "$as_me:4045: \"$ac_try\"") >&5
4046   (eval $ac_try) 2>&5
4047   ac_status=$?
4048   echo "$as_me:4048: \$? = $ac_status" >&5
4049   (exit $ac_status); }; }; then
4050   gt_cv_func_gnugettext1_libc=yes
4051 else
4052   echo "$as_me: failed program was:" >&5
4053 cat conftest.$ac_ext >&5
4054 gt_cv_func_gnugettext1_libc=no
4055 fi
4056 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4057 fi
4058 echo "$as_me:4058: result: $gt_cv_func_gnugettext1_libc" >&5
4059 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
4060
4061            if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
4062              echo "$as_me:4062: checking for GNU gettext in libintl" >&5
4063 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
4064 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
4065   echo $ECHO_N "(cached) $ECHO_C" >&6
4066 else
4067   gt_save_LIBS="$LIBS"
4068                 LIBS="$LIBS -lintl $LIBICONV"
4069                 cat >conftest.$ac_ext <<_ACEOF
4070 #line 4070 "configure"
4071 #include "confdefs.h"
4072 #include <libintl.h>
4073 extern int _nl_msg_cat_cntr;
4074 int
4075 main ()
4076 {
4077 bindtextdomain ("", "");
4078 return (int) gettext ("") + _nl_msg_cat_cntr
4079   ;
4080   return 0;
4081 }
4082 _ACEOF
4083 rm -f conftest.$ac_objext conftest$ac_exeext
4084 if { (eval echo "$as_me:4084: \"$ac_link\"") >&5
4085   (eval $ac_link) 2>&5
4086   ac_status=$?
4087   echo "$as_me:4087: \$? = $ac_status" >&5
4088   (exit $ac_status); } &&
4089          { ac_try='test -s conftest$ac_exeext'
4090   { (eval echo "$as_me:4090: \"$ac_try\"") >&5
4091   (eval $ac_try) 2>&5
4092   ac_status=$?
4093   echo "$as_me:4093: \$? = $ac_status" >&5
4094   (exit $ac_status); }; }; then
4095   gt_cv_func_gnugettext1_libintl=yes
4096 else
4097   echo "$as_me: failed program was:" >&5
4098 cat conftest.$ac_ext >&5
4099 gt_cv_func_gnugettext1_libintl=no
4100 fi
4101 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4102                 LIBS="$gt_save_LIBS"
4103 fi
4104 echo "$as_me:4104: result: $gt_cv_func_gnugettext1_libintl" >&5
4105 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
4106            fi
4107
4108                                            if test "$gt_cv_func_gnugettext1_libc" = "yes" \
4109               || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
4110                    && test "$PACKAGE" != gettext; }; then
4111
4112 cat >>confdefs.h <<\EOF
4113 #define HAVE_GETTEXT 1
4114 EOF
4115
4116              if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
4117                                        INTLLIBS="-lintl $LIBICONV"
4118              fi
4119
4120              gt_save_LIBS="$LIBS"
4121              LIBS="$LIBS $INTLLIBS"
4122
4123 for ac_func in dcgettext
4124 do
4125 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4126 echo "$as_me:4126: checking for $ac_func" >&5
4127 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4128 if eval "test \"\${$as_ac_var+set}\" = set"; then
4129   echo $ECHO_N "(cached) $ECHO_C" >&6
4130 else
4131   cat >conftest.$ac_ext <<_ACEOF
4132 #line 4132 "configure"
4133 #include "confdefs.h"
4134 /* System header to define __stub macros and hopefully few prototypes,
4135     which can conflict with char $ac_func (); below.  */
4136 #include <assert.h>
4137 /* Override any gcc2 internal prototype to avoid an error.  */
4138 #ifdef __cplusplus
4139 extern "C"
4140 #endif
4141 /* We use char because int might match the return type of a gcc2
4142    builtin and then its argument prototype would still apply.  */
4143 char $ac_func ();
4144 char (*f) ();
4145
4146 int
4147 main ()
4148 {
4149 /* The GNU C library defines this for functions which it implements
4150     to always fail with ENOSYS.  Some functions are actually named
4151     something starting with __ and the normal name is an alias.  */
4152 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4153 choke me
4154 #else
4155 f = $ac_func;
4156 #endif
4157
4158   ;
4159   return 0;
4160 }
4161 _ACEOF
4162 rm -f conftest.$ac_objext conftest$ac_exeext
4163 if { (eval echo "$as_me:4163: \"$ac_link\"") >&5
4164   (eval $ac_link) 2>&5
4165   ac_status=$?
4166   echo "$as_me:4166: \$? = $ac_status" >&5
4167   (exit $ac_status); } &&
4168          { ac_try='test -s conftest$ac_exeext'
4169   { (eval echo "$as_me:4169: \"$ac_try\"") >&5
4170   (eval $ac_try) 2>&5
4171   ac_status=$?
4172   echo "$as_me:4172: \$? = $ac_status" >&5
4173   (exit $ac_status); }; }; then
4174   eval "$as_ac_var=yes"
4175 else
4176   echo "$as_me: failed program was:" >&5
4177 cat conftest.$ac_ext >&5
4178 eval "$as_ac_var=no"
4179 fi
4180 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4181 fi
4182 echo "$as_me:4182: result: `eval echo '${'$as_ac_var'}'`" >&5
4183 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4184 if test `eval echo '${'$as_ac_var'}'` = yes; then
4185   cat >>confdefs.h <<EOF
4186 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4187 EOF
4188
4189 fi
4190 done
4191
4192              LIBS="$gt_save_LIBS"
4193
4194                      # Extract the first word of "msgfmt", so it can be a program name with args.
4195 set dummy msgfmt; ac_word=$2
4196 echo "$as_me:4196: checking for $ac_word" >&5
4197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4198 if test "${ac_cv_path_MSGFMT+set}" = set; then
4199   echo $ECHO_N "(cached) $ECHO_C" >&6
4200 else
4201   case "$MSGFMT" in
4202   /*)
4203   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4204   ;;
4205   *)
4206   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4207   for ac_dir in $PATH; do
4208     test -z "$ac_dir" && ac_dir=.
4209     if test -f $ac_dir/$ac_word; then
4210       if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
4211         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
4212         break
4213       fi
4214     fi
4215   done
4216   IFS="$ac_save_ifs"
4217   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4218   ;;
4219 esac
4220 fi
4221 MSGFMT="$ac_cv_path_MSGFMT"
4222 if test "$MSGFMT" != ":"; then
4223   echo "$as_me:4223: result: $MSGFMT" >&5
4224 echo "${ECHO_T}$MSGFMT" >&6
4225 else
4226   echo "$as_me:4226: result: no" >&5
4227 echo "${ECHO_T}no" >&6
4228 fi
4229
4230              # Extract the first word of "gmsgfmt", so it can be a program name with args.
4231 set dummy gmsgfmt; ac_word=$2
4232 echo "$as_me:4232: checking for $ac_word" >&5
4233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4234 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4235   echo $ECHO_N "(cached) $ECHO_C" >&6
4236 else
4237   case $GMSGFMT in
4238   [\\/]* | ?:[\\/]*)
4239   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4240   ;;
4241   *)
4242   ac_save_IFS=$IFS; IFS=$ac_path_separator
4243 ac_dummy="$PATH"
4244 for ac_dir in $ac_dummy; do
4245   IFS=$ac_save_IFS
4246   test -z "$ac_dir" && ac_dir=.
4247   if $as_executable_p "$ac_dir/$ac_word"; then
4248    ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4249    echo "$as_me:4249: found $ac_dir/$ac_word" >&5
4250    break
4251 fi
4252 done
4253
4254   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4255   ;;
4256 esac
4257 fi
4258 GMSGFMT=$ac_cv_path_GMSGFMT
4259
4260 if test -n "$GMSGFMT"; then
4261   echo "$as_me:4261: result: $GMSGFMT" >&5
4262 echo "${ECHO_T}$GMSGFMT" >&6
4263 else
4264   echo "$as_me:4264: result: no" >&5
4265 echo "${ECHO_T}no" >&6
4266 fi
4267
4268                      # Extract the first word of "xgettext", so it can be a program name with args.
4269 set dummy xgettext; ac_word=$2
4270 echo "$as_me:4270: checking for $ac_word" >&5
4271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4272 if test "${ac_cv_path_XGETTEXT+set}" = set; then
4273   echo $ECHO_N "(cached) $ECHO_C" >&6
4274 else
4275   case "$XGETTEXT" in
4276   /*)
4277   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4278   ;;
4279   *)
4280   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4281   for ac_dir in $PATH; do
4282     test -z "$ac_dir" && ac_dir=.
4283     if test -f $ac_dir/$ac_word; then
4284       if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
4285         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4286         break
4287       fi
4288     fi
4289   done
4290   IFS="$ac_save_ifs"
4291   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4292   ;;
4293 esac
4294 fi
4295 XGETTEXT="$ac_cv_path_XGETTEXT"
4296 if test "$XGETTEXT" != ":"; then
4297   echo "$as_me:4297: result: $XGETTEXT" >&5
4298 echo "${ECHO_T}$XGETTEXT" >&6
4299 else
4300   echo "$as_me:4300: result: no" >&5
4301 echo "${ECHO_T}no" >&6
4302 fi
4303
4304              CATOBJEXT=.gmo
4305            fi
4306
4307 fi
4308
4309         if test "$CATOBJEXT" = "NONE"; then
4310                           nls_cv_use_gnu_gettext=yes
4311         fi
4312       fi
4313
4314       if test "$nls_cv_use_gnu_gettext" = "yes"; then
4315                 INTLOBJS="\$(GETTOBJS)"
4316         # Extract the first word of "msgfmt", so it can be a program name with args.
4317 set dummy msgfmt; ac_word=$2
4318 echo "$as_me:4318: checking for $ac_word" >&5
4319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4320 if test "${ac_cv_path_MSGFMT+set}" = set; then
4321   echo $ECHO_N "(cached) $ECHO_C" >&6
4322 else
4323   case "$MSGFMT" in
4324   /*)
4325   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4326   ;;
4327   *)
4328   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4329   for ac_dir in $PATH; do
4330     test -z "$ac_dir" && ac_dir=.
4331     if test -f $ac_dir/$ac_word; then
4332       if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
4333         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
4334         break
4335       fi
4336     fi
4337   done
4338   IFS="$ac_save_ifs"
4339   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4340   ;;
4341 esac
4342 fi
4343 MSGFMT="$ac_cv_path_MSGFMT"
4344 if test "$MSGFMT" != ":"; then
4345   echo "$as_me:4345: result: $MSGFMT" >&5
4346 echo "${ECHO_T}$MSGFMT" >&6
4347 else
4348   echo "$as_me:4348: result: no" >&5
4349 echo "${ECHO_T}no" >&6
4350 fi
4351
4352         # Extract the first word of "gmsgfmt", so it can be a program name with args.
4353 set dummy gmsgfmt; ac_word=$2
4354 echo "$as_me:4354: checking for $ac_word" >&5
4355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4356 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4357   echo $ECHO_N "(cached) $ECHO_C" >&6
4358 else
4359   case $GMSGFMT in
4360   [\\/]* | ?:[\\/]*)
4361   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4362   ;;
4363   *)
4364   ac_save_IFS=$IFS; IFS=$ac_path_separator
4365 ac_dummy="$PATH"
4366 for ac_dir in $ac_dummy; do
4367   IFS=$ac_save_IFS
4368   test -z "$ac_dir" && ac_dir=.
4369   if $as_executable_p "$ac_dir/$ac_word"; then
4370    ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4371    echo "$as_me:4371: found $ac_dir/$ac_word" >&5
4372    break
4373 fi
4374 done
4375
4376   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4377   ;;
4378 esac
4379 fi
4380 GMSGFMT=$ac_cv_path_GMSGFMT
4381
4382 if test -n "$GMSGFMT"; then
4383   echo "$as_me:4383: result: $GMSGFMT" >&5
4384 echo "${ECHO_T}$GMSGFMT" >&6
4385 else
4386   echo "$as_me:4386: result: no" >&5
4387 echo "${ECHO_T}no" >&6
4388 fi
4389
4390         # Extract the first word of "xgettext", so it can be a program name with args.
4391 set dummy xgettext; ac_word=$2
4392 echo "$as_me:4392: checking for $ac_word" >&5
4393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4394 if test "${ac_cv_path_XGETTEXT+set}" = set; then
4395   echo $ECHO_N "(cached) $ECHO_C" >&6
4396 else
4397   case "$XGETTEXT" in
4398   /*)
4399   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4400   ;;
4401   *)
4402   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4403   for ac_dir in $PATH; do
4404     test -z "$ac_dir" && ac_dir=.
4405     if test -f $ac_dir/$ac_word; then
4406       if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
4407         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4408         break
4409       fi
4410     fi
4411   done
4412   IFS="$ac_save_ifs"
4413   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4414   ;;
4415 esac
4416 fi
4417 XGETTEXT="$ac_cv_path_XGETTEXT"
4418 if test "$XGETTEXT" != ":"; then
4419   echo "$as_me:4419: result: $XGETTEXT" >&5
4420 echo "${ECHO_T}$XGETTEXT" >&6
4421 else
4422   echo "$as_me:4422: result: no" >&5
4423 echo "${ECHO_T}no" >&6
4424 fi
4425
4426         BUILD_INCLUDED_LIBINTL=yes
4427         USE_INCLUDED_LIBINTL=yes
4428         CATOBJEXT=.gmo
4429         INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
4430         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
4431       fi
4432
4433                   if test "$GMSGFMT" != ":"; then
4434                         if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
4435           : ;
4436         else
4437           echo "$as_me:4437: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
4438 echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
4439           GMSGFMT=":"
4440         fi
4441       fi
4442
4443                   if test "$XGETTEXT" != ":"; then
4444                         if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
4445           : ;
4446         else
4447           echo "$as_me:4447: result: found xgettext program is not GNU xgettext; ignore it" >&5
4448 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
4449           XGETTEXT=":"
4450         fi
4451       fi
4452
4453             POSUB=po
4454     fi
4455     ac_config_commands="$ac_config_commands default-1"
4456
4457             if test "$PACKAGE" = gettext; then
4458       BUILD_INCLUDED_LIBINTL=yes
4459     fi
4460
4461                                             for ac_prog in bison
4462 do
4463   # Extract the first word of "$ac_prog", so it can be a program name with args.
4464 set dummy $ac_prog; ac_word=$2
4465 echo "$as_me:4465: checking for $ac_word" >&5
4466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4467 if test "${ac_cv_prog_INTLBISON+set}" = set; then
4468   echo $ECHO_N "(cached) $ECHO_C" >&6
4469 else
4470   if test -n "$INTLBISON"; then
4471   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
4472 else
4473   ac_save_IFS=$IFS; IFS=$ac_path_separator
4474 ac_dummy="$PATH"
4475 for ac_dir in $ac_dummy; do
4476   IFS=$ac_save_IFS
4477   test -z "$ac_dir" && ac_dir=.
4478   $as_executable_p "$ac_dir/$ac_word" || continue
4479 ac_cv_prog_INTLBISON="$ac_prog"
4480 echo "$as_me:4480: found $ac_dir/$ac_word" >&5
4481 break
4482 done
4483
4484 fi
4485 fi
4486 INTLBISON=$ac_cv_prog_INTLBISON
4487 if test -n "$INTLBISON"; then
4488   echo "$as_me:4488: result: $INTLBISON" >&5
4489 echo "${ECHO_T}$INTLBISON" >&6
4490 else
4491   echo "$as_me:4491: result: no" >&5
4492 echo "${ECHO_T}no" >&6
4493 fi
4494
4495   test -n "$INTLBISON" && break
4496 done
4497
4498     if test -z "$INTLBISON"; then
4499       ac_verc_fail=yes
4500     else
4501             echo "$as_me:4501: checking version of bison" >&5
4502 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
4503       ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4504       case $ac_prog_version in
4505         '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4506         1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
4507            ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4508         *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4509       esac
4510       echo "$as_me:4510: result: $ac_prog_version" >&5
4511 echo "${ECHO_T}$ac_prog_version" >&6
4512     fi
4513     if test $ac_verc_fail = yes; then
4514       INTLBISON=:
4515     fi
4516
4517                 for lang in $ALL_LINGUAS; do
4518       GMOFILES="$GMOFILES $lang.gmo"
4519       POFILES="$POFILES $lang.po"
4520     done
4521
4522         nls_cv_header_intl=
4523     nls_cv_header_libgt=
4524
4525         DATADIRNAME=share
4526
4527         INSTOBJEXT=.mo
4528
4529         GENCAT=gencat
4530
4531    if test "x$CATOBJEXT" != "x"; then
4532      if test "x$ALL_LINGUAS" = "x"; then
4533        LINGUAS=
4534      else
4535        echo "$as_me:4535: checking for catalogs to be installed" >&5
4536 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
4537        NEW_LINGUAS=
4538        for presentlang in $ALL_LINGUAS; do
4539          useit=no
4540          for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
4541            # Use the presentlang catalog if desiredlang is
4542            #   a. equal to presentlang, or
4543            #   b. a variant of presentlang (because in this case,
4544            #      presentlang can be used as a fallback for messages
4545            #      which are not translated in the desiredlang catalog).
4546            case "$desiredlang" in
4547              "$presentlang"*) useit=yes;;
4548            esac
4549          done
4550          if test $useit = yes; then
4551            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
4552          fi
4553        done
4554        LINGUAS=$NEW_LINGUAS
4555        echo "$as_me:4555: result: $LINGUAS" >&5
4556 echo "${ECHO_T}$LINGUAS" >&6
4557      fi
4558
4559           if test -n "$LINGUAS"; then
4560        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
4561      fi
4562    fi
4563
4564             MKINSTALLDIRS=
4565    if test -n "$ac_aux_dir"; then
4566      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
4567    fi
4568    if test -z "$MKINSTALLDIRS"; then
4569      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4570    fi
4571
4572       INTL_LIBTOOL_SUFFIX_PREFIX=
4573
4574 # Find a good install program.  We prefer a C program (faster),
4575 # so one script is as good as another.  But avoid the broken or
4576 # incompatible versions:
4577 # SysV /etc/install, /usr/sbin/install
4578 # SunOS /usr/etc/install
4579 # IRIX /sbin/install
4580 # AIX /bin/install
4581 # AmigaOS /C/install, which installs bootblocks on floppy discs
4582 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4583 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4584 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4585 # ./install, which can be erroneously created by make from ./install.sh.
4586 echo "$as_me:4586: checking for a BSD compatible install" >&5
4587 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
4588 if test -z "$INSTALL"; then
4589 if test "${ac_cv_path_install+set}" = set; then
4590   echo $ECHO_N "(cached) $ECHO_C" >&6
4591 else
4592     ac_save_IFS=$IFS; IFS=$ac_path_separator
4593   for ac_dir in $PATH; do
4594     IFS=$ac_save_IFS
4595     # Account for people who put trailing slashes in PATH elements.
4596     case $ac_dir/ in
4597     / | ./ | .// | /cC/* \
4598     | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
4599     | /usr/ucb/* ) ;;
4600     *)
4601       # OSF1 and SCO ODT 3.0 have their own names for install.
4602       # Don't use installbsd from OSF since it installs stuff as root
4603       # by default.
4604       for ac_prog in ginstall scoinst install; do
4605         if $as_executable_p "$ac_dir/$ac_prog"; then
4606           if test $ac_prog = install &&
4607             grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
4608             # AIX install.  It has an incompatible calling convention.
4609             :
4610           elif test $ac_prog = install &&
4611             grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
4612             # program-specific install script used by HP pwplus--don't use.
4613             :
4614           else
4615             ac_cv_path_install="$ac_dir/$ac_prog -c"
4616             break 2
4617           fi
4618         fi
4619       done
4620       ;;
4621     esac
4622   done
4623
4624 fi
4625   if test "${ac_cv_path_install+set}" = set; then
4626     INSTALL=$ac_cv_path_install
4627   else
4628     # As a last resort, use the slow shell script.  We don't cache a
4629     # path for INSTALL within a source directory, because that will
4630     # break other packages using the cache if that directory is
4631     # removed, or if the path is relative.
4632     INSTALL=$ac_install_sh
4633   fi
4634 fi
4635 echo "$as_me:4635: result: $INSTALL" >&5
4636 echo "${ECHO_T}$INSTALL" >&6
4637
4638 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4639 # It thinks the first close brace ends the variable substitution.
4640 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4641
4642 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4643
4644 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4645
4646 case x"${target_os}" in
4647   x)
4648     SYS=unknown
4649     ;;
4650   xlinux*)
4651     SYS=linux
4652     ;;
4653   xbsdi*)
4654     SYS=bsdi
4655     save_CFLAGS="${save_CFLAGS} -pthread"
4656     dvd_LDFLAGS="${dvd_LDFLAGS} -ldvd"
4657     vcd_LDFLAGS="${vcd_LDFLAGS} -ldvd"
4658     ;;
4659   x*bsd*)
4660     SYS="${target_os}"
4661     save_CFLAGS="${save_CFLAGS} -pthread"
4662     ;;
4663   xdarwin*)
4664     SYS=darwin
4665     save_CFLAGS="${save_CFLAGS} -no-cpp-precomp"
4666     ;;
4667   x*mingw32*)
4668     SYS=mingw32
4669     if test -n "$ac_tool_prefix"; then
4670   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4671 set dummy ${ac_tool_prefix}windres; ac_word=$2
4672 echo "$as_me:4672: checking for $ac_word" >&5
4673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4674 if test "${ac_cv_prog_WINDRES+set}" = set; then
4675   echo $ECHO_N "(cached) $ECHO_C" >&6
4676 else
4677   if test -n "$WINDRES"; then
4678   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4679 else
4680   ac_save_IFS=$IFS; IFS=$ac_path_separator
4681 ac_dummy="$PATH"
4682 for ac_dir in $ac_dummy; do
4683   IFS=$ac_save_IFS
4684   test -z "$ac_dir" && ac_dir=.
4685   $as_executable_p "$ac_dir/$ac_word" || continue
4686 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4687 echo "$as_me:4687: found $ac_dir/$ac_word" >&5
4688 break
4689 done
4690
4691 fi
4692 fi
4693 WINDRES=$ac_cv_prog_WINDRES
4694 if test -n "$WINDRES"; then
4695   echo "$as_me:4695: result: $WINDRES" >&5
4696 echo "${ECHO_T}$WINDRES" >&6
4697 else
4698   echo "$as_me:4698: result: no" >&5
4699 echo "${ECHO_T}no" >&6
4700 fi
4701
4702 fi
4703 if test -z "$ac_cv_prog_WINDRES"; then
4704   ac_ct_WINDRES=$WINDRES
4705   # Extract the first word of "windres", so it can be a program name with args.
4706 set dummy windres; ac_word=$2
4707 echo "$as_me:4707: checking for $ac_word" >&5
4708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4709 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4710   echo $ECHO_N "(cached) $ECHO_C" >&6
4711 else
4712   if test -n "$ac_ct_WINDRES"; then
4713   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4714 else
4715   ac_save_IFS=$IFS; IFS=$ac_path_separator
4716 ac_dummy="$PATH"
4717 for ac_dir in $ac_dummy; do
4718   IFS=$ac_save_IFS
4719   test -z "$ac_dir" && ac_dir=.
4720   $as_executable_p "$ac_dir/$ac_word" || continue
4721 ac_cv_prog_ac_ct_WINDRES="windres"
4722 echo "$as_me:4722: found $ac_dir/$ac_word" >&5
4723 break
4724 done
4725
4726   test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES=":"
4727 fi
4728 fi
4729 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4730 if test -n "$ac_ct_WINDRES"; then
4731   echo "$as_me:4731: result: $ac_ct_WINDRES" >&5
4732 echo "${ECHO_T}$ac_ct_WINDRES" >&6
4733 else
4734   echo "$as_me:4734: result: no" >&5
4735 echo "${ECHO_T}no" >&6
4736 fi
4737
4738   WINDRES=$ac_ct_WINDRES
4739 else
4740   WINDRES="$ac_cv_prog_WINDRES"
4741 fi
4742
4743     save_CFLAGS="${save_CFLAGS} -D_OFF_T_ -D_off_t=long"
4744     vlc_LDFLAGS="${vlc_LDFLAGS} -mwindows -Xlinker --force-exe-suffix"
4745     vlc_LDFLAGS="${vlc_LDFLAGS} -lws2_32 -lnetapi32"
4746     ipv4_LDFLAGS="${ipv4_LDFLAGS} -lws2_32"
4747     ipv6_LDFLAGS="${ipv6_LDFLAGS} -lws2_32"
4748     http_LDFLAGS="${http_LDFLAGS} -lws2_32"
4749     rc_LDFLAGS="${rc_LDFLAGS} -lws2_32"
4750     ;;
4751   x*nto*)
4752     SYS=nto
4753     x11_LDFLAGS="${x11_LDFLAGS} -lsocket"
4754     xvideo_LDFLAGS="${xvideo_LDFLAGS} -lsocket"
4755     ;;
4756   xbeos)
4757     SYS=beos
4758     save_CFLAGS="${save_CFLAGS} -Wno-multichar -Wno-ctor-dtor-privacy -Woverloaded-virtual"
4759     vlc_LDFLAGS="${vlc_LDFLAGS} -lbe"
4760     plugins_LDFLAGS="${plugins_LDFLAGS} -nostart"
4761     beos_LDFLAGS="${beos_LDFLAGS} -lbe -lgame -lroot -ltracker -ltranslation -lstdc++.r4"
4762     ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
4763     ;;
4764   x*)
4765     SYS="${target_os}"
4766     ;;
4767 esac
4768
4769 if test x"${SYS}" != xmingw32; then
4770   plugins_CFLAGS="${plugins_CFLAGS} -fPIC"
4771 fi
4772
4773 save_CFLAGS="${save_CFLAGS} -DSYS_`echo ${SYS} | sed -e 's/-.*//' | tr 'abcdefghijklmnopqrstuvwxyz.' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`"
4774
4775 for ac_func in gettimeofday select strerror strtod strtol isatty vasprintf swab sigrelse getpwuid memalign posix_memalign gethostbyname2 atoll
4776 do
4777 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4778 echo "$as_me:4778: checking for $ac_func" >&5
4779 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4780 if eval "test \"\${$as_ac_var+set}\" = set"; then
4781   echo $ECHO_N "(cached) $ECHO_C" >&6
4782 else
4783   cat >conftest.$ac_ext <<_ACEOF
4784 #line 4784 "configure"
4785 #include "confdefs.h"
4786 /* System header to define __stub macros and hopefully few prototypes,
4787     which can conflict with char $ac_func (); below.  */
4788 #include <assert.h>
4789 /* Override any gcc2 internal prototype to avoid an error.  */
4790 #ifdef __cplusplus
4791 extern "C"
4792 #endif
4793 /* We use char because int might match the return type of a gcc2
4794    builtin and then its argument prototype would still apply.  */
4795 char $ac_func ();
4796 char (*f) ();
4797
4798 int
4799 main ()
4800 {
4801 /* The GNU C library defines this for functions which it implements
4802     to always fail with ENOSYS.  Some functions are actually named
4803     something starting with __ and the normal name is an alias.  */
4804 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4805 choke me
4806 #else
4807 f = $ac_func;
4808 #endif
4809
4810   ;
4811   return 0;
4812 }
4813 _ACEOF
4814 rm -f conftest.$ac_objext conftest$ac_exeext
4815 if { (eval echo "$as_me:4815: \"$ac_link\"") >&5
4816   (eval $ac_link) 2>&5
4817   ac_status=$?
4818   echo "$as_me:4818: \$? = $ac_status" >&5
4819   (exit $ac_status); } &&
4820          { ac_try='test -s conftest$ac_exeext'
4821   { (eval echo "$as_me:4821: \"$ac_try\"") >&5
4822   (eval $ac_try) 2>&5
4823   ac_status=$?
4824   echo "$as_me:4824: \$? = $ac_status" >&5
4825   (exit $ac_status); }; }; then
4826   eval "$as_ac_var=yes"
4827 else
4828   echo "$as_me: failed program was:" >&5
4829 cat conftest.$ac_ext >&5
4830 eval "$as_ac_var=no"
4831 fi
4832 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4833 fi
4834 echo "$as_me:4834: result: `eval echo '${'$as_ac_var'}'`" >&5
4835 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4836 if test `eval echo '${'$as_ac_var'}'` = yes; then
4837   cat >>confdefs.h <<EOF
4838 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4839 EOF
4840
4841 fi
4842 done
4843
4844 echo "$as_me:4844: checking for connect" >&5
4845 echo $ECHO_N "checking for connect... $ECHO_C" >&6
4846 if test "${ac_cv_func_connect+set}" = set; then
4847   echo $ECHO_N "(cached) $ECHO_C" >&6
4848 else
4849   cat >conftest.$ac_ext <<_ACEOF
4850 #line 4850 "configure"
4851 #include "confdefs.h"
4852 /* System header to define __stub macros and hopefully few prototypes,
4853     which can conflict with char connect (); below.  */
4854 #include <assert.h>
4855 /* Override any gcc2 internal prototype to avoid an error.  */
4856 #ifdef __cplusplus
4857 extern "C"
4858 #endif
4859 /* We use char because int might match the return type of a gcc2
4860    builtin and then its argument prototype would still apply.  */
4861 char connect ();
4862 char (*f) ();
4863
4864 int
4865 main ()
4866 {
4867 /* The GNU C library defines this for functions which it implements
4868     to always fail with ENOSYS.  Some functions are actually named
4869     something starting with __ and the normal name is an alias.  */
4870 #if defined (__stub_connect) || defined (__stub___connect)
4871 choke me
4872 #else
4873 f = connect;
4874 #endif
4875
4876   ;
4877   return 0;
4878 }
4879 _ACEOF
4880 rm -f conftest.$ac_objext conftest$ac_exeext
4881 if { (eval echo "$as_me:4881: \"$ac_link\"") >&5
4882   (eval $ac_link) 2>&5
4883   ac_status=$?
4884   echo "$as_me:4884: \$? = $ac_status" >&5
4885   (exit $ac_status); } &&
4886          { ac_try='test -s conftest$ac_exeext'
4887   { (eval echo "$as_me:4887: \"$ac_try\"") >&5
4888   (eval $ac_try) 2>&5
4889   ac_status=$?
4890   echo "$as_me:4890: \$? = $ac_status" >&5
4891   (exit $ac_status); }; }; then
4892   ac_cv_func_connect=yes
4893 else
4894   echo "$as_me: failed program was:" >&5
4895 cat conftest.$ac_ext >&5
4896 ac_cv_func_connect=no
4897 fi
4898 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4899 fi
4900 echo "$as_me:4900: result: $ac_cv_func_connect" >&5
4901 echo "${ECHO_T}$ac_cv_func_connect" >&6
4902 if test $ac_cv_func_connect = yes; then
4903   :
4904 else
4905
4906   echo "$as_me:4906: checking for connect in -lsocket" >&5
4907 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4908 if test "${ac_cv_lib_socket_connect+set}" = set; then
4909   echo $ECHO_N "(cached) $ECHO_C" >&6
4910 else
4911   ac_check_lib_save_LIBS=$LIBS
4912 LIBS="-lsocket  $LIBS"
4913 cat >conftest.$ac_ext <<_ACEOF
4914 #line 4914 "configure"
4915 #include "confdefs.h"
4916
4917 /* Override any gcc2 internal prototype to avoid an error.  */
4918 #ifdef __cplusplus
4919 extern "C"
4920 #endif
4921 /* We use char because int might match the return type of a gcc2
4922    builtin and then its argument prototype would still apply.  */
4923 char connect ();
4924 int
4925 main ()
4926 {
4927 connect ();
4928   ;
4929   return 0;
4930 }
4931 _ACEOF
4932 rm -f conftest.$ac_objext conftest$ac_exeext
4933 if { (eval echo "$as_me:4933: \"$ac_link\"") >&5
4934   (eval $ac_link) 2>&5
4935   ac_status=$?
4936   echo "$as_me:4936: \$? = $ac_status" >&5
4937   (exit $ac_status); } &&
4938          { ac_try='test -s conftest$ac_exeext'
4939   { (eval echo "$as_me:4939: \"$ac_try\"") >&5
4940   (eval $ac_try) 2>&5
4941   ac_status=$?
4942   echo "$as_me:4942: \$? = $ac_status" >&5
4943   (exit $ac_status); }; }; then
4944   ac_cv_lib_socket_connect=yes
4945 else
4946   echo "$as_me: failed program was:" >&5
4947 cat conftest.$ac_ext >&5
4948 ac_cv_lib_socket_connect=no
4949 fi
4950 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4951 LIBS=$ac_check_lib_save_LIBS
4952 fi
4953 echo "$as_me:4953: result: $ac_cv_lib_socket_connect" >&5
4954 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4955 if test $ac_cv_lib_socket_connect = yes; then
4956   ipv4_LDFLAGS="${ipv4_LDFLAGS} -lsocket"
4957     vlc_LDFLAGS="${vlc_LDFLAGS} -lsocket"
4958
4959 fi
4960
4961 fi
4962
4963 echo "$as_me:4963: checking for gethostbyname" >&5
4964 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
4965 if test "${ac_cv_func_gethostbyname+set}" = set; then
4966   echo $ECHO_N "(cached) $ECHO_C" >&6
4967 else
4968   cat >conftest.$ac_ext <<_ACEOF
4969 #line 4969 "configure"
4970 #include "confdefs.h"
4971 /* System header to define __stub macros and hopefully few prototypes,
4972     which can conflict with char gethostbyname (); below.  */
4973 #include <assert.h>
4974 /* Override any gcc2 internal prototype to avoid an error.  */
4975 #ifdef __cplusplus
4976 extern "C"
4977 #endif
4978 /* We use char because int might match the return type of a gcc2
4979    builtin and then its argument prototype would still apply.  */
4980 char gethostbyname ();
4981 char (*f) ();
4982
4983 int
4984 main ()
4985 {
4986 /* The GNU C library defines this for functions which it implements
4987     to always fail with ENOSYS.  Some functions are actually named
4988     something starting with __ and the normal name is an alias.  */
4989 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4990 choke me
4991 #else
4992 f = gethostbyname;
4993 #endif
4994
4995   ;
4996   return 0;
4997 }
4998 _ACEOF
4999 rm -f conftest.$ac_objext conftest$ac_exeext
5000 if { (eval echo "$as_me:5000: \"$ac_link\"") >&5
5001   (eval $ac_link) 2>&5
5002   ac_status=$?
5003   echo "$as_me:5003: \$? = $ac_status" >&5
5004   (exit $ac_status); } &&
5005          { ac_try='test -s conftest$ac_exeext'
5006   { (eval echo "$as_me:5006: \"$ac_try\"") >&5
5007   (eval $ac_try) 2>&5
5008   ac_status=$?
5009   echo "$as_me:5009: \$? = $ac_status" >&5
5010   (exit $ac_status); }; }; then
5011   ac_cv_func_gethostbyname=yes
5012 else
5013   echo "$as_me: failed program was:" >&5
5014 cat conftest.$ac_ext >&5
5015 ac_cv_func_gethostbyname=no
5016 fi
5017 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5018 fi
5019 echo "$as_me:5019: result: $ac_cv_func_gethostbyname" >&5
5020 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5021 if test $ac_cv_func_gethostbyname = yes; then
5022   :
5023 else
5024
5025   echo "$as_me:5025: checking for gethostbyname in -lnsl" >&5
5026 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5027 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5028   echo $ECHO_N "(cached) $ECHO_C" >&6
5029 else
5030   ac_check_lib_save_LIBS=$LIBS
5031 LIBS="-lnsl  $LIBS"
5032 cat >conftest.$ac_ext <<_ACEOF
5033 #line 5033 "configure"
5034 #include "confdefs.h"
5035
5036 /* Override any gcc2 internal prototype to avoid an error.  */
5037 #ifdef __cplusplus
5038 extern "C"
5039 #endif
5040 /* We use char because int might match the return type of a gcc2
5041    builtin and then its argument prototype would still apply.  */
5042 char gethostbyname ();
5043 int
5044 main ()
5045 {
5046 gethostbyname ();
5047   ;
5048   return 0;
5049 }
5050 _ACEOF
5051 rm -f conftest.$ac_objext conftest$ac_exeext
5052 if { (eval echo "$as_me:5052: \"$ac_link\"") >&5
5053   (eval $ac_link) 2>&5
5054   ac_status=$?
5055   echo "$as_me:5055: \$? = $ac_status" >&5
5056   (exit $ac_status); } &&
5057          { ac_try='test -s conftest$ac_exeext'
5058   { (eval echo "$as_me:5058: \"$ac_try\"") >&5
5059   (eval $ac_try) 2>&5
5060   ac_status=$?
5061   echo "$as_me:5061: \$? = $ac_status" >&5
5062   (exit $ac_status); }; }; then
5063   ac_cv_lib_nsl_gethostbyname=yes
5064 else
5065   echo "$as_me: failed program was:" >&5
5066 cat conftest.$ac_ext >&5
5067 ac_cv_lib_nsl_gethostbyname=no
5068 fi
5069 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5070 LIBS=$ac_check_lib_save_LIBS
5071 fi
5072 echo "$as_me:5072: result: $ac_cv_lib_nsl_gethostbyname" >&5
5073 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5074 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5075   ipv4_LDFLAGS="${ipv4_LDFLAGS} -lnsl"
5076 fi
5077
5078 fi
5079
5080 echo "$as_me:5080: checking for gethostbyname" >&5
5081 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5082 if test "${ac_cv_func_gethostbyname+set}" = set; then
5083   echo $ECHO_N "(cached) $ECHO_C" >&6
5084 else
5085   cat >conftest.$ac_ext <<_ACEOF
5086 #line 5086 "configure"
5087 #include "confdefs.h"
5088 /* System header to define __stub macros and hopefully few prototypes,
5089     which can conflict with char gethostbyname (); below.  */
5090 #include <assert.h>
5091 /* Override any gcc2 internal prototype to avoid an error.  */
5092 #ifdef __cplusplus
5093 extern "C"
5094 #endif
5095 /* We use char because int might match the return type of a gcc2
5096    builtin and then its argument prototype would still apply.  */
5097 char gethostbyname ();
5098 char (*f) ();
5099
5100 int
5101 main ()
5102 {
5103 /* The GNU C library defines this for functions which it implements
5104     to always fail with ENOSYS.  Some functions are actually named
5105     something starting with __ and the normal name is an alias.  */
5106 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5107 choke me
5108 #else
5109 f = gethostbyname;
5110 #endif
5111
5112   ;
5113   return 0;
5114 }
5115 _ACEOF
5116 rm -f conftest.$ac_objext conftest$ac_exeext
5117 if { (eval echo "$as_me:5117: \"$ac_link\"") >&5
5118   (eval $ac_link) 2>&5
5119   ac_status=$?
5120   echo "$as_me:5120: \$? = $ac_status" >&5
5121   (exit $ac_status); } &&
5122          { ac_try='test -s conftest$ac_exeext'
5123   { (eval echo "$as_me:5123: \"$ac_try\"") >&5
5124   (eval $ac_try) 2>&5
5125   ac_status=$?
5126   echo "$as_me:5126: \$? = $ac_status" >&5
5127   (exit $ac_status); }; }; then
5128   ac_cv_func_gethostbyname=yes
5129 else
5130   echo "$as_me: failed program was:" >&5
5131 cat conftest.$ac_ext >&5
5132 ac_cv_func_gethostbyname=no
5133 fi
5134 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5135 fi
5136 echo "$as_me:5136: result: $ac_cv_func_gethostbyname" >&5
5137 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5138 if test $ac_cv_func_gethostbyname = yes; then
5139   :
5140 else
5141
5142   echo "$as_me:5142: checking for gethostbyname in -lbind" >&5
5143 echo $ECHO_N "checking for gethostbyname in -lbind... $ECHO_C" >&6
5144 if test "${ac_cv_lib_bind_gethostbyname+set}" = set; then
5145   echo $ECHO_N "(cached) $ECHO_C" >&6
5146 else
5147   ac_check_lib_save_LIBS=$LIBS
5148 LIBS="-lbind  $LIBS"
5149 cat >conftest.$ac_ext <<_ACEOF
5150 #line 5150 "configure"
5151 #include "confdefs.h"
5152
5153 /* Override any gcc2 internal prototype to avoid an error.  */
5154 #ifdef __cplusplus
5155 extern "C"
5156 #endif
5157 /* We use char because int might match the return type of a gcc2
5158    builtin and then its argument prototype would still apply.  */
5159 char gethostbyname ();
5160 int
5161 main ()
5162 {
5163 gethostbyname ();
5164   ;
5165   return 0;
5166 }
5167 _ACEOF
5168 rm -f conftest.$ac_objext conftest$ac_exeext
5169 if { (eval echo "$as_me:5169: \"$ac_link\"") >&5
5170   (eval $ac_link) 2>&5
5171   ac_status=$?
5172   echo "$as_me:5172: \$? = $ac_status" >&5
5173   (exit $ac_status); } &&
5174          { ac_try='test -s conftest$ac_exeext'
5175   { (eval echo "$as_me:5175: \"$ac_try\"") >&5
5176   (eval $ac_try) 2>&5
5177   ac_status=$?
5178   echo "$as_me:5178: \$? = $ac_status" >&5
5179   (exit $ac_status); }; }; then
5180   ac_cv_lib_bind_gethostbyname=yes
5181 else
5182   echo "$as_me: failed program was:" >&5
5183 cat conftest.$ac_ext >&5
5184 ac_cv_lib_bind_gethostbyname=no
5185 fi
5186 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5187 LIBS=$ac_check_lib_save_LIBS
5188 fi
5189 echo "$as_me:5189: result: $ac_cv_lib_bind_gethostbyname" >&5
5190 echo "${ECHO_T}$ac_cv_lib_bind_gethostbyname" >&6
5191 if test $ac_cv_lib_bind_gethostbyname = yes; then
5192   ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
5193 fi
5194
5195 fi
5196
5197 have_nanosleep=0
5198 echo "$as_me:5198: checking for nanosleep" >&5
5199 echo $ECHO_N "checking for nanosleep... $ECHO_C" >&6
5200 if test "${ac_cv_func_nanosleep+set}" = set; then
5201   echo $ECHO_N "(cached) $ECHO_C" >&6
5202 else
5203   cat >conftest.$ac_ext <<_ACEOF
5204 #line 5204 "configure"
5205 #include "confdefs.h"
5206 /* System header to define __stub macros and hopefully few prototypes,
5207     which can conflict with char nanosleep (); below.  */
5208 #include <assert.h>
5209 /* Override any gcc2 internal prototype to avoid an error.  */
5210 #ifdef __cplusplus
5211 extern "C"
5212 #endif
5213 /* We use char because int might match the return type of a gcc2
5214    builtin and then its argument prototype would still apply.  */
5215 char nanosleep ();
5216 char (*f) ();
5217
5218 int
5219 main ()
5220 {
5221 /* The GNU C library defines this for functions which it implements
5222     to always fail with ENOSYS.  Some functions are actually named
5223     something starting with __ and the normal name is an alias.  */
5224 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
5225 choke me
5226 #else
5227 f = nanosleep;
5228 #endif
5229
5230   ;
5231   return 0;
5232 }
5233 _ACEOF
5234 rm -f conftest.$ac_objext conftest$ac_exeext
5235 if { (eval echo "$as_me:5235: \"$ac_link\"") >&5
5236   (eval $ac_link) 2>&5
5237   ac_status=$?
5238   echo "$as_me:5238: \$? = $ac_status" >&5
5239   (exit $ac_status); } &&
5240          { ac_try='test -s conftest$ac_exeext'
5241   { (eval echo "$as_me:5241: \"$ac_try\"") >&5
5242   (eval $ac_try) 2>&5
5243   ac_status=$?
5244   echo "$as_me:5244: \$? = $ac_status" >&5
5245   (exit $ac_status); }; }; then
5246   ac_cv_func_nanosleep=yes
5247 else
5248   echo "$as_me: failed program was:" >&5
5249 cat conftest.$ac_ext >&5
5250 ac_cv_func_nanosleep=no
5251 fi
5252 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5253 fi
5254 echo "$as_me:5254: result: $ac_cv_func_nanosleep" >&5
5255 echo "${ECHO_T}$ac_cv_func_nanosleep" >&6
5256 if test $ac_cv_func_nanosleep = yes; then
5257   have_nanosleep=1
5258 else
5259
5260   echo "$as_me:5260: checking for nanosleep in -lrt" >&5
5261 echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6
5262 if test "${ac_cv_lib_rt_nanosleep+set}" = set; then
5263   echo $ECHO_N "(cached) $ECHO_C" >&6
5264 else
5265   ac_check_lib_save_LIBS=$LIBS
5266 LIBS="-lrt  $LIBS"
5267 cat >conftest.$ac_ext <<_ACEOF
5268 #line 5268 "configure"
5269 #include "confdefs.h"
5270
5271 /* Override any gcc2 internal prototype to avoid an error.  */
5272 #ifdef __cplusplus
5273 extern "C"
5274 #endif
5275 /* We use char because int might match the return type of a gcc2
5276    builtin and then its argument prototype would still apply.  */
5277 char nanosleep ();
5278 int
5279 main ()
5280 {
5281 nanosleep ();
5282   ;
5283   return 0;
5284 }
5285 _ACEOF
5286 rm -f conftest.$ac_objext conftest$ac_exeext
5287 if { (eval echo "$as_me:5287: \"$ac_link\"") >&5
5288   (eval $ac_link) 2>&5
5289   ac_status=$?
5290   echo "$as_me:5290: \$? = $ac_status" >&5
5291   (exit $ac_status); } &&
5292          { ac_try='test -s conftest$ac_exeext'
5293   { (eval echo "$as_me:5293: \"$ac_try\"") >&5
5294   (eval $ac_try) 2>&5
5295   ac_status=$?
5296   echo "$as_me:5296: \$? = $ac_status" >&5
5297   (exit $ac_status); }; }; then
5298   ac_cv_lib_rt_nanosleep=yes
5299 else
5300   echo "$as_me: failed program was:" >&5
5301 cat conftest.$ac_ext >&5
5302 ac_cv_lib_rt_nanosleep=no
5303 fi
5304 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5305 LIBS=$ac_check_lib_save_LIBS
5306 fi
5307 echo "$as_me:5307: result: $ac_cv_lib_rt_nanosleep" >&5
5308 echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6
5309 if test $ac_cv_lib_rt_nanosleep = yes; then
5310   vlc_LDFLAGS="${vlc_LDFLAGS} -lrt"; have_nanosleep=1
5311 else
5312   echo "$as_me:5312: checking for nanosleep in -lposix4" >&5
5313 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
5314 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
5315   echo $ECHO_N "(cached) $ECHO_C" >&6
5316 else
5317   ac_check_lib_save_LIBS=$LIBS
5318 LIBS="-lposix4  $LIBS"
5319 cat >conftest.$ac_ext <<_ACEOF
5320 #line 5320 "configure"
5321 #include "confdefs.h"
5322
5323 /* Override any gcc2 internal prototype to avoid an error.  */
5324 #ifdef __cplusplus
5325 extern "C"
5326 #endif
5327 /* We use char because int might match the return type of a gcc2
5328    builtin and then its argument prototype would still apply.  */
5329 char nanosleep ();
5330 int
5331 main ()
5332 {
5333 nanosleep ();
5334   ;
5335   return 0;
5336 }
5337 _ACEOF
5338 rm -f conftest.$ac_objext conftest$ac_exeext
5339 if { (eval echo "$as_me:5339: \"$ac_link\"") >&5
5340   (eval $ac_link) 2>&5
5341   ac_status=$?
5342   echo "$as_me:5342: \$? = $ac_status" >&5
5343   (exit $ac_status); } &&
5344          { ac_try='test -s conftest$ac_exeext'
5345   { (eval echo "$as_me:5345: \"$ac_try\"") >&5
5346   (eval $ac_try) 2>&5
5347   ac_status=$?
5348   echo "$as_me:5348: \$? = $ac_status" >&5
5349   (exit $ac_status); }; }; then
5350   ac_cv_lib_posix4_nanosleep=yes
5351 else
5352   echo "$as_me: failed program was:" >&5
5353 cat conftest.$ac_ext >&5
5354 ac_cv_lib_posix4_nanosleep=no
5355 fi
5356 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5357 LIBS=$ac_check_lib_save_LIBS
5358 fi
5359 echo "$as_me:5359: result: $ac_cv_lib_posix4_nanosleep" >&5
5360 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
5361 if test $ac_cv_lib_posix4_nanosleep = yes; then
5362   vlc_LDFLAGS="${vlc_LDFLAGS} -lposix4"; have_nanosleep=1
5363 fi
5364
5365 fi
5366
5367 fi
5368
5369 if test x$have_nanosleep = x1; then
5370
5371 cat >>confdefs.h <<\EOF
5372 #define HAVE_NANOSLEEP 1
5373 EOF
5374
5375 fi
5376 echo "$as_me:5376: checking for inet_aton" >&5
5377 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
5378 if test "${ac_cv_func_inet_aton+set}" = set; then
5379   echo $ECHO_N "(cached) $ECHO_C" >&6
5380 else
5381   cat >conftest.$ac_ext <<_ACEOF
5382 #line 5382 "configure"
5383 #include "confdefs.h"
5384 /* System header to define __stub macros and hopefully few prototypes,
5385     which can conflict with char inet_aton (); below.  */
5386 #include <assert.h>
5387 /* Override any gcc2 internal prototype to avoid an error.  */
5388 #ifdef __cplusplus
5389 extern "C"
5390 #endif
5391 /* We use char because int might match the return type of a gcc2
5392    builtin and then its argument prototype would still apply.  */
5393 char inet_aton ();
5394 char (*f) ();
5395
5396 int
5397 main ()
5398 {
5399 /* The GNU C library defines this for functions which it implements
5400     to always fail with ENOSYS.  Some functions are actually named
5401     something starting with __ and the normal name is an alias.  */
5402 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
5403 choke me
5404 #else
5405 f = inet_aton;
5406 #endif
5407
5408   ;
5409   return 0;
5410 }
5411 _ACEOF
5412 rm -f conftest.$ac_objext conftest$ac_exeext
5413 if { (eval echo "$as_me:5413: \"$ac_link\"") >&5
5414   (eval $ac_link) 2>&5
5415   ac_status=$?
5416   echo "$as_me:5416: \$? = $ac_status" >&5
5417   (exit $ac_status); } &&
5418          { ac_try='test -s conftest$ac_exeext'
5419   { (eval echo "$as_me:5419: \"$ac_try\"") >&5
5420   (eval $ac_try) 2>&5
5421   ac_status=$?
5422   echo "$as_me:5422: \$? = $ac_status" >&5
5423   (exit $ac_status); }; }; then
5424   ac_cv_func_inet_aton=yes
5425 else
5426   echo "$as_me: failed program was:" >&5
5427 cat conftest.$ac_ext >&5
5428 ac_cv_func_inet_aton=no
5429 fi
5430 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5431 fi
5432 echo "$as_me:5432: result: $ac_cv_func_inet_aton" >&5
5433 echo "${ECHO_T}$ac_cv_func_inet_aton" >&6
5434 if test $ac_cv_func_inet_aton = yes; then
5435   :
5436 else
5437
5438   echo "$as_me:5438: checking for inet_aton in -lresolv" >&5
5439 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
5440 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
5441   echo $ECHO_N "(cached) $ECHO_C" >&6
5442 else
5443   ac_check_lib_save_LIBS=$LIBS
5444 LIBS="-lresolv  $LIBS"
5445 cat >conftest.$ac_ext <<_ACEOF
5446 #line 5446 "configure"
5447 #include "confdefs.h"
5448
5449 /* Override any gcc2 internal prototype to avoid an error.  */
5450 #ifdef __cplusplus
5451 extern "C"
5452 #endif
5453 /* We use char because int might match the return type of a gcc2
5454    builtin and then its argument prototype would still apply.  */
5455 char inet_aton ();
5456 int
5457 main ()
5458 {
5459 inet_aton ();
5460   ;
5461   return 0;
5462 }
5463 _ACEOF
5464 rm -f conftest.$ac_objext conftest$ac_exeext
5465 if { (eval echo "$as_me:5465: \"$ac_link\"") >&5
5466   (eval $ac_link) 2>&5
5467   ac_status=$?
5468   echo "$as_me:5468: \$? = $ac_status" >&5
5469   (exit $ac_status); } &&
5470          { ac_try='test -s conftest$ac_exeext'
5471   { (eval echo "$as_me:5471: \"$ac_try\"") >&5
5472   (eval $ac_try) 2>&5
5473   ac_status=$?
5474   echo "$as_me:5474: \$? = $ac_status" >&5
5475   (exit $ac_status); }; }; then
5476   ac_cv_lib_resolv_inet_aton=yes
5477 else
5478   echo "$as_me: failed program was:" >&5
5479 cat conftest.$ac_ext >&5
5480 ac_cv_lib_resolv_inet_aton=no
5481 fi
5482 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5483 LIBS=$ac_check_lib_save_LIBS
5484 fi
5485 echo "$as_me:5485: result: $ac_cv_lib_resolv_inet_aton" >&5
5486 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
5487 if test $ac_cv_lib_resolv_inet_aton = yes; then
5488   ipv4_LDFLAGS="${ipv4_LDFLAGS} -lresolv"
5489 fi
5490
5491 fi
5492
5493 echo "$as_me:5493: checking for textdomain" >&5
5494 echo $ECHO_N "checking for textdomain... $ECHO_C" >&6
5495 if test "${ac_cv_func_textdomain+set}" = set; then
5496   echo $ECHO_N "(cached) $ECHO_C" >&6
5497 else
5498   cat >conftest.$ac_ext <<_ACEOF
5499 #line 5499 "configure"
5500 #include "confdefs.h"
5501 /* System header to define __stub macros and hopefully few prototypes,
5502     which can conflict with char textdomain (); below.  */
5503 #include <assert.h>
5504 /* Override any gcc2 internal prototype to avoid an error.  */
5505 #ifdef __cplusplus
5506 extern "C"
5507 #endif
5508 /* We use char because int might match the return type of a gcc2
5509    builtin and then its argument prototype would still apply.  */
5510 char textdomain ();
5511 char (*f) ();
5512
5513 int
5514 main ()
5515 {
5516 /* The GNU C library defines this for functions which it implements
5517     to always fail with ENOSYS.  Some functions are actually named
5518     something starting with __ and the normal name is an alias.  */
5519 #if defined (__stub_textdomain) || defined (__stub___textdomain)
5520 choke me
5521 #else
5522 f = textdomain;
5523 #endif
5524
5525   ;
5526   return 0;
5527 }
5528 _ACEOF
5529 rm -f conftest.$ac_objext conftest$ac_exeext
5530 if { (eval echo "$as_me:5530: \"$ac_link\"") >&5
5531   (eval $ac_link) 2>&5
5532   ac_status=$?
5533   echo "$as_me:5533: \$? = $ac_status" >&5
5534   (exit $ac_status); } &&
5535          { ac_try='test -s conftest$ac_exeext'
5536   { (eval echo "$as_me:5536: \"$ac_try\"") >&5
5537   (eval $ac_try) 2>&5
5538   ac_status=$?
5539   echo "$as_me:5539: \$? = $ac_status" >&5
5540   (exit $ac_status); }; }; then
5541   ac_cv_func_textdomain=yes
5542 else
5543   echo "$as_me: failed program was:" >&5
5544 cat conftest.$ac_ext >&5
5545 ac_cv_func_textdomain=no
5546 fi
5547 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5548 fi
5549 echo "$as_me:5549: result: $ac_cv_func_textdomain" >&5
5550 echo "${ECHO_T}$ac_cv_func_textdomain" >&6
5551 if test $ac_cv_func_textdomain = yes; then
5552   :
5553 else
5554
5555   echo "$as_me:5555: checking for textdomain in -lintl" >&5
5556 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6
5557 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
5558   echo $ECHO_N "(cached) $ECHO_C" >&6
5559 else
5560   ac_check_lib_save_LIBS=$LIBS
5561 LIBS="-lintl  $LIBS"
5562 cat >conftest.$ac_ext <<_ACEOF
5563 #line 5563 "configure"
5564 #include "confdefs.h"
5565
5566 /* Override any gcc2 internal prototype to avoid an error.  */
5567 #ifdef __cplusplus
5568 extern "C"
5569 #endif
5570 /* We use char because int might match the return type of a gcc2
5571    builtin and then its argument prototype would still apply.  */
5572 char textdomain ();
5573 int
5574 main ()
5575 {
5576 textdomain ();
5577   ;
5578   return 0;
5579 }
5580 _ACEOF
5581 rm -f conftest.$ac_objext conftest$ac_exeext
5582 if { (eval echo "$as_me:5582: \"$ac_link\"") >&5
5583   (eval $ac_link) 2>&5
5584   ac_status=$?
5585   echo "$as_me:5585: \$? = $ac_status" >&5
5586   (exit $ac_status); } &&
5587          { ac_try='test -s conftest$ac_exeext'
5588   { (eval echo "$as_me:5588: \"$ac_try\"") >&5
5589   (eval $ac_try) 2>&5
5590   ac_status=$?
5591   echo "$as_me:5591: \$? = $ac_status" >&5
5592   (exit $ac_status); }; }; then
5593   ac_cv_lib_intl_textdomain=yes
5594 else
5595   echo "$as_me: failed program was:" >&5
5596 cat conftest.$ac_ext >&5
5597 ac_cv_lib_intl_textdomain=no
5598 fi
5599 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5600 LIBS=$ac_check_lib_save_LIBS
5601 fi
5602 echo "$as_me:5602: result: $ac_cv_lib_intl_textdomain" >&5
5603 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6
5604 if test $ac_cv_lib_intl_textdomain = yes; then
5605   save_LDFLAGS="${save_LDFLAGS} -lintl"
5606 fi
5607
5608 fi
5609
5610 NEED_GETOPT=0
5611 echo "$as_me:5611: checking for getopt_long" >&5
5612 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
5613 if test "${ac_cv_func_getopt_long+set}" = set; then
5614   echo $ECHO_N "(cached) $ECHO_C" >&6
5615 else
5616   cat >conftest.$ac_ext <<_ACEOF
5617 #line 5617 "configure"
5618 #include "confdefs.h"
5619 /* System header to define __stub macros and hopefully few prototypes,
5620     which can conflict with char getopt_long (); below.  */
5621 #include <assert.h>
5622 /* Override any gcc2 internal prototype to avoid an error.  */
5623 #ifdef __cplusplus
5624 extern "C"
5625 #endif
5626 /* We use char because int might match the return type of a gcc2
5627    builtin and then its argument prototype would still apply.  */
5628 char getopt_long ();
5629 char (*f) ();
5630
5631 int
5632 main ()
5633 {
5634 /* The GNU C library defines this for functions which it implements
5635     to always fail with ENOSYS.  Some functions are actually named
5636     something starting with __ and the normal name is an alias.  */
5637 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
5638 choke me
5639 #else
5640 f = getopt_long;
5641 #endif
5642
5643   ;
5644   return 0;
5645 }
5646 _ACEOF
5647 rm -f conftest.$ac_objext conftest$ac_exeext
5648 if { (eval echo "$as_me:5648: \"$ac_link\"") >&5
5649   (eval $ac_link) 2>&5
5650   ac_status=$?
5651   echo "$as_me:5651: \$? = $ac_status" >&5
5652   (exit $ac_status); } &&
5653          { ac_try='test -s conftest$ac_exeext'
5654   { (eval echo "$as_me:5654: \"$ac_try\"") >&5
5655   (eval $ac_try) 2>&5
5656   ac_status=$?
5657   echo "$as_me:5657: \$? = $ac_status" >&5
5658   (exit $ac_status); }; }; then
5659   ac_cv_func_getopt_long=yes
5660 else
5661   echo "$as_me: failed program was:" >&5
5662 cat conftest.$ac_ext >&5
5663 ac_cv_func_getopt_long=no
5664 fi
5665 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5666 fi
5667 echo "$as_me:5667: result: $ac_cv_func_getopt_long" >&5
5668 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
5669 if test $ac_cv_func_getopt_long = yes; then
5670
5671 cat >>confdefs.h <<\EOF
5672 #define HAVE_GETOPT_LONG 1
5673 EOF
5674
5675 else
5676    # FreeBSD has a gnugetopt library for this:
5677   echo "$as_me:5677: checking for getopt_long in -lgnugetopt" >&5
5678 echo $ECHO_N "checking for getopt_long in -lgnugetopt... $ECHO_C" >&6
5679 if test "${ac_cv_lib_gnugetopt_getopt_long+set}" = set; then
5680   echo $ECHO_N "(cached) $ECHO_C" >&6
5681 else
5682   ac_check_lib_save_LIBS=$LIBS
5683 LIBS="-lgnugetopt  $LIBS"
5684 cat >conftest.$ac_ext <<_ACEOF
5685 #line 5685 "configure"
5686 #include "confdefs.h"
5687
5688 /* Override any gcc2 internal prototype to avoid an error.  */
5689 #ifdef __cplusplus
5690 extern "C"
5691 #endif
5692 /* We use char because int might match the return type of a gcc2
5693    builtin and then its argument prototype would still apply.  */
5694 char getopt_long ();
5695 int
5696 main ()
5697 {
5698 getopt_long ();
5699   ;
5700   return 0;
5701 }
5702 _ACEOF
5703 rm -f conftest.$ac_objext conftest$ac_exeext
5704 if { (eval echo "$as_me:5704: \"$ac_link\"") >&5
5705   (eval $ac_link) 2>&5
5706   ac_status=$?
5707   echo "$as_me:5707: \$? = $ac_status" >&5
5708   (exit $ac_status); } &&
5709          { ac_try='test -s conftest$ac_exeext'
5710   { (eval echo "$as_me:5710: \"$ac_try\"") >&5
5711   (eval $ac_try) 2>&5
5712   ac_status=$?
5713   echo "$as_me:5713: \$? = $ac_status" >&5
5714   (exit $ac_status); }; }; then
5715   ac_cv_lib_gnugetopt_getopt_long=yes
5716 else
5717   echo "$as_me: failed program was:" >&5
5718 cat conftest.$ac_ext >&5
5719 ac_cv_lib_gnugetopt_getopt_long=no
5720 fi
5721 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5722 LIBS=$ac_check_lib_save_LIBS
5723 fi
5724 echo "$as_me:5724: result: $ac_cv_lib_gnugetopt_getopt_long" >&5
5725 echo "${ECHO_T}$ac_cv_lib_gnugetopt_getopt_long" >&6
5726 if test $ac_cv_lib_gnugetopt_getopt_long = yes; then
5727
5728 cat >>confdefs.h <<\EOF
5729 #define HAVE_GETOPT_LONG 1
5730 EOF
5731  vlc_LDFLAGS="${vlc_LDFLAGS} -lgnugetopt"
5732 else
5733   NEED_GETOPT=1
5734 fi
5735
5736 fi
5737
5738 echo "$as_me:5738: checking return type of signal handlers" >&5
5739 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5740 if test "${ac_cv_type_signal+set}" = set; then
5741   echo $ECHO_N "(cached) $ECHO_C" >&6
5742 else
5743   cat >conftest.$ac_ext <<_ACEOF
5744 #line 5744 "configure"
5745 #include "confdefs.h"
5746 #include <sys/types.h>
5747 #include <signal.h>
5748 #ifdef signal
5749 # undef signal
5750 #endif
5751 #ifdef __cplusplus
5752 extern "C" void (*signal (int, void (*)(int)))(int);
5753 #else
5754 void (*signal ()) ();
5755 #endif
5756
5757 int
5758 main ()
5759 {
5760 int i;
5761   ;
5762   return 0;
5763 }
5764 _ACEOF
5765 rm -f conftest.$ac_objext
5766 if { (eval echo "$as_me:5766: \"$ac_compile\"") >&5
5767   (eval $ac_compile) 2>&5
5768   ac_status=$?
5769   echo "$as_me:5769: \$? = $ac_status" >&5
5770   (exit $ac_status); } &&
5771          { ac_try='test -s conftest.$ac_objext'
5772   { (eval echo "$as_me:5772: \"$ac_try\"") >&5
5773   (eval $ac_try) 2>&5
5774   ac_status=$?
5775   echo "$as_me:5775: \$? = $ac_status" >&5
5776   (exit $ac_status); }; }; then
5777   ac_cv_type_signal=void
5778 else
5779   echo "$as_me: failed program was:" >&5
5780 cat conftest.$ac_ext >&5
5781 ac_cv_type_signal=int
5782 fi
5783 rm -f conftest.$ac_objext conftest.$ac_ext
5784 fi
5785 echo "$as_me:5785: result: $ac_cv_type_signal" >&5
5786 echo "${ECHO_T}$ac_cv_type_signal" >&6
5787
5788 cat >>confdefs.h <<EOF
5789 #define RETSIGTYPE $ac_cv_type_signal
5790 EOF
5791
5792 echo "$as_me:5792: checking for dlopen in -ldl" >&5
5793 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
5794 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5795   echo $ECHO_N "(cached) $ECHO_C" >&6
5796 else
5797   ac_check_lib_save_LIBS=$LIBS
5798 LIBS="-ldl  $LIBS"
5799 cat >conftest.$ac_ext <<_ACEOF
5800 #line 5800 "configure"
5801 #include "confdefs.h"
5802
5803 /* Override any gcc2 internal prototype to avoid an error.  */
5804 #ifdef __cplusplus
5805 extern "C"
5806 #endif
5807 /* We use char because int might match the return type of a gcc2
5808    builtin and then its argument prototype would still apply.  */
5809 char dlopen ();
5810 int
5811 main ()
5812 {
5813 dlopen ();
5814   ;
5815   return 0;
5816 }
5817 _ACEOF
5818 rm -f conftest.$ac_objext conftest$ac_exeext
5819 if { (eval echo "$as_me:5819: \"$ac_link\"") >&5
5820   (eval $ac_link) 2>&5
5821   ac_status=$?
5822   echo "$as_me:5822: \$? = $ac_status" >&5
5823   (exit $ac_status); } &&
5824          { ac_try='test -s conftest$ac_exeext'
5825   { (eval echo "$as_me:5825: \"$ac_try\"") >&5
5826   (eval $ac_try) 2>&5
5827   ac_status=$?
5828   echo "$as_me:5828: \$? = $ac_status" >&5
5829   (exit $ac_status); }; }; then
5830   ac_cv_lib_dl_dlopen=yes
5831 else
5832   echo "$as_me: failed program was:" >&5
5833 cat conftest.$ac_ext >&5
5834 ac_cv_lib_dl_dlopen=no
5835 fi
5836 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5837 LIBS=$ac_check_lib_save_LIBS
5838 fi
5839 echo "$as_me:5839: result: $ac_cv_lib_dl_dlopen" >&5
5840 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
5841 if test $ac_cv_lib_dl_dlopen = yes; then
5842   vlc_LDFLAGS="${vlc_LDFLAGS} -ldl"
5843 fi
5844
5845 echo "$as_me:5845: checking for cos in -lm" >&5
5846 echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
5847 if test "${ac_cv_lib_m_cos+set}" = set; then
5848   echo $ECHO_N "(cached) $ECHO_C" >&6
5849 else
5850   ac_check_lib_save_LIBS=$LIBS
5851 LIBS="-lm  $LIBS"
5852 cat >conftest.$ac_ext <<_ACEOF
5853 #line 5853 "configure"
5854 #include "confdefs.h"
5855
5856 /* Override any gcc2 internal prototype to avoid an error.  */
5857 #ifdef __cplusplus
5858 extern "C"
5859 #endif
5860 /* We use char because int might match the return type of a gcc2
5861    builtin and then its argument prototype would still apply.  */
5862 char cos ();
5863 int
5864 main ()
5865 {
5866 cos ();
5867   ;
5868   return 0;
5869 }
5870 _ACEOF
5871 rm -f conftest.$ac_objext conftest$ac_exeext
5872 if { (eval echo "$as_me:5872: \"$ac_link\"") >&5
5873   (eval $ac_link) 2>&5
5874   ac_status=$?
5875   echo "$as_me:5875: \$? = $ac_status" >&5
5876   (exit $ac_status); } &&
5877          { ac_try='test -s conftest$ac_exeext'
5878   { (eval echo "$as_me:5878: \"$ac_try\"") >&5
5879   (eval $ac_try) 2>&5
5880   ac_status=$?
5881   echo "$as_me:5881: \$? = $ac_status" >&5
5882   (exit $ac_status); }; }; then
5883   ac_cv_lib_m_cos=yes
5884 else
5885   echo "$as_me: failed program was:" >&5
5886 cat conftest.$ac_ext >&5
5887 ac_cv_lib_m_cos=no
5888 fi
5889 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5890 LIBS=$ac_check_lib_save_LIBS
5891 fi
5892 echo "$as_me:5892: result: $ac_cv_lib_m_cos" >&5
5893 echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
5894 if test $ac_cv_lib_m_cos = yes; then
5895   imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
5896   filter_distort_LDFLAGS="${filter_distort_LDFLAGS} -lm"
5897 fi
5898
5899 echo "$as_me:5899: checking for pow in -lm" >&5
5900 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
5901 if test "${ac_cv_lib_m_pow+set}" = set; then
5902   echo $ECHO_N "(cached) $ECHO_C" >&6
5903 else
5904   ac_check_lib_save_LIBS=$LIBS
5905 LIBS="-lm  $LIBS"
5906 cat >conftest.$ac_ext <<_ACEOF
5907 #line 5907 "configure"
5908 #include "confdefs.h"
5909
5910 /* Override any gcc2 internal prototype to avoid an error.  */
5911 #ifdef __cplusplus
5912 extern "C"
5913 #endif
5914 /* We use char because int might match the return type of a gcc2
5915    builtin and then its argument prototype would still apply.  */
5916 char pow ();
5917 int
5918 main ()
5919 {
5920 pow ();
5921   ;
5922   return 0;
5923 }
5924 _ACEOF
5925 rm -f conftest.$ac_objext conftest$ac_exeext
5926 if { (eval echo "$as_me:5926: \"$ac_link\"") >&5
5927   (eval $ac_link) 2>&5
5928   ac_status=$?
5929   echo "$as_me:5929: \$? = $ac_status" >&5
5930   (exit $ac_status); } &&
5931          { ac_try='test -s conftest$ac_exeext'
5932   { (eval echo "$as_me:5932: \"$ac_try\"") >&5
5933   (eval $ac_try) 2>&5
5934   ac_status=$?
5935   echo "$as_me:5935: \$? = $ac_status" >&5
5936   (exit $ac_status); }; }; then
5937   ac_cv_lib_m_pow=yes
5938 else
5939   echo "$as_me: failed program was:" >&5
5940 cat conftest.$ac_ext >&5
5941 ac_cv_lib_m_pow=no
5942 fi
5943 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5944 LIBS=$ac_check_lib_save_LIBS
5945 fi
5946 echo "$as_me:5946: result: $ac_cv_lib_m_pow" >&5
5947 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
5948 if test $ac_cv_lib_m_pow = yes; then
5949   imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
5950   imdct3dn_LDFLAGS="${imdct3dn_LDFLAGS} -lm"
5951   imdctsse_LDFLAGS="${imdctsse_LDFLAGS} -lm"
5952   chroma_i420_rgb_LDFLAGS="${chroma_i420_rgb_LDFLAGS} -lm"
5953
5954 fi
5955
5956 THREAD_LIB=error
5957 if test "x${THREAD_LIB}" = xerror; then
5958   echo "$as_me:5958: checking for pthread_attr_init in -lpthread" >&5
5959 echo $ECHO_N "checking for pthread_attr_init in -lpthread... $ECHO_C" >&6
5960 if test "${ac_cv_lib_pthread_pthread_attr_init+set}" = set; then
5961   echo $ECHO_N "(cached) $ECHO_C" >&6
5962 else
5963   ac_check_lib_save_LIBS=$LIBS
5964 LIBS="-lpthread  $LIBS"
5965 cat >conftest.$ac_ext <<_ACEOF
5966 #line 5966 "configure"
5967 #include "confdefs.h"
5968
5969 /* Override any gcc2 internal prototype to avoid an error.  */
5970 #ifdef __cplusplus
5971 extern "C"
5972 #endif
5973 /* We use char because int might match the return type of a gcc2
5974    builtin and then its argument prototype would still apply.  */
5975 char pthread_attr_init ();
5976 int
5977 main ()
5978 {
5979 pthread_attr_init ();
5980   ;
5981   return 0;
5982 }
5983 _ACEOF
5984 rm -f conftest.$ac_objext conftest$ac_exeext
5985 if { (eval echo "$as_me:5985: \"$ac_link\"") >&5
5986   (eval $ac_link) 2>&5
5987   ac_status=$?
5988   echo "$as_me:5988: \$? = $ac_status" >&5
5989   (exit $ac_status); } &&
5990          { ac_try='test -s conftest$ac_exeext'
5991   { (eval echo "$as_me:5991: \"$ac_try\"") >&5
5992   (eval $ac_try) 2>&5
5993   ac_status=$?
5994   echo "$as_me:5994: \$? = $ac_status" >&5
5995   (exit $ac_status); }; }; then
5996   ac_cv_lib_pthread_pthread_attr_init=yes
5997 else
5998   echo "$as_me: failed program was:" >&5
5999 cat conftest.$ac_ext >&5
6000 ac_cv_lib_pthread_pthread_attr_init=no
6001 fi
6002 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6003 LIBS=$ac_check_lib_save_LIBS
6004 fi
6005 echo "$as_me:6005: result: $ac_cv_lib_pthread_pthread_attr_init" >&5
6006 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_attr_init" >&6
6007 if test $ac_cv_lib_pthread_pthread_attr_init = yes; then
6008   THREAD_LIB="-lpthread"
6009 fi
6010
6011 fi
6012 if test "x${THREAD_LIB}" = xerror; then
6013   echo "$as_me:6013: checking for pthread_attr_init in -lpthreads" >&5
6014 echo $ECHO_N "checking for pthread_attr_init in -lpthreads... $ECHO_C" >&6
6015 if test "${ac_cv_lib_pthreads_pthread_attr_init+set}" = set; then
6016   echo $ECHO_N "(cached) $ECHO_C" >&6
6017 else
6018   ac_check_lib_save_LIBS=$LIBS
6019 LIBS="-lpthreads  $LIBS"
6020 cat >conftest.$ac_ext <<_ACEOF
6021 #line 6021 "configure"
6022 #include "confdefs.h"
6023
6024 /* Override any gcc2 internal prototype to avoid an error.  */
6025 #ifdef __cplusplus
6026 extern "C"
6027 #endif
6028 /* We use char because int might match the return type of a gcc2
6029    builtin and then its argument prototype would still apply.  */
6030 char pthread_attr_init ();
6031 int
6032 main ()
6033 {
6034 pthread_attr_init ();
6035   ;
6036   return 0;
6037 }
6038 _ACEOF
6039 rm -f conftest.$ac_objext conftest$ac_exeext
6040 if { (eval echo "$as_me:6040: \"$ac_link\"") >&5
6041   (eval $ac_link) 2>&5
6042   ac_status=$?
6043   echo "$as_me:6043: \$? = $ac_status" >&5
6044   (exit $ac_status); } &&
6045          { ac_try='test -s conftest$ac_exeext'
6046   { (eval echo "$as_me:6046: \"$ac_try\"") >&5
6047   (eval $ac_try) 2>&5
6048   ac_status=$?
6049   echo "$as_me:6049: \$? = $ac_status" >&5
6050   (exit $ac_status); }; }; then
6051   ac_cv_lib_pthreads_pthread_attr_init=yes
6052 else
6053   echo "$as_me: failed program was:" >&5
6054 cat conftest.$ac_ext >&5
6055 ac_cv_lib_pthreads_pthread_attr_init=no
6056 fi
6057 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6058 LIBS=$ac_check_lib_save_LIBS
6059 fi
6060 echo "$as_me:6060: result: $ac_cv_lib_pthreads_pthread_attr_init" >&5
6061 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_attr_init" >&6
6062 if test $ac_cv_lib_pthreads_pthread_attr_init = yes; then
6063   THREAD_LIB="-lpthreads"
6064 fi
6065
6066 fi
6067 if test "x${THREAD_LIB}" = xerror; then
6068   echo "$as_me:6068: checking for pthread_attr_init in -lc_r" >&5
6069 echo $ECHO_N "checking for pthread_attr_init in -lc_r... $ECHO_C" >&6
6070 if test "${ac_cv_lib_c_r_pthread_attr_init+set}" = set; then
6071   echo $ECHO_N "(cached) $ECHO_C" >&6
6072 else
6073   ac_check_lib_save_LIBS=$LIBS
6074 LIBS="-lc_r  $LIBS"
6075 cat >conftest.$ac_ext <<_ACEOF
6076 #line 6076 "configure"
6077 #include "confdefs.h"
6078
6079 /* Override any gcc2 internal prototype to avoid an error.  */
6080 #ifdef __cplusplus
6081 extern "C"
6082 #endif
6083 /* We use char because int might match the return type of a gcc2
6084    builtin and then its argument prototype would still apply.  */
6085 char pthread_attr_init ();
6086 int
6087 main ()
6088 {
6089 pthread_attr_init ();
6090   ;
6091   return 0;
6092 }
6093 _ACEOF
6094 rm -f conftest.$ac_objext conftest$ac_exeext
6095 if { (eval echo "$as_me:6095: \"$ac_link\"") >&5
6096   (eval $ac_link) 2>&5
6097   ac_status=$?
6098   echo "$as_me:6098: \$? = $ac_status" >&5
6099   (exit $ac_status); } &&
6100          { ac_try='test -s conftest$ac_exeext'
6101   { (eval echo "$as_me:6101: \"$ac_try\"") >&5
6102   (eval $ac_try) 2>&5
6103   ac_status=$?
6104   echo "$as_me:6104: \$? = $ac_status" >&5
6105   (exit $ac_status); }; }; then
6106   ac_cv_lib_c_r_pthread_attr_init=yes
6107 else
6108   echo "$as_me: failed program was:" >&5
6109 cat conftest.$ac_ext >&5
6110 ac_cv_lib_c_r_pthread_attr_init=no
6111 fi
6112 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6113 LIBS=$ac_check_lib_save_LIBS
6114 fi
6115 echo "$as_me:6115: result: $ac_cv_lib_c_r_pthread_attr_init" >&5
6116 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_attr_init" >&6
6117 if test $ac_cv_lib_c_r_pthread_attr_init = yes; then
6118   THREAD_LIB="-lc_r"
6119 fi
6120
6121 fi
6122 if test "x${THREAD_LIB}" = xerror; then
6123   echo "$as_me:6123: checking for pthread_attr_init" >&5
6124 echo $ECHO_N "checking for pthread_attr_init... $ECHO_C" >&6
6125 if test "${ac_cv_func_pthread_attr_init+set}" = set; then
6126   echo $ECHO_N "(cached) $ECHO_C" >&6
6127 else
6128   cat >conftest.$ac_ext <<_ACEOF
6129 #line 6129 "configure"
6130 #include "confdefs.h"
6131 /* System header to define __stub macros and hopefully few prototypes,
6132     which can conflict with char pthread_attr_init (); below.  */
6133 #include <assert.h>
6134 /* Override any gcc2 internal prototype to avoid an error.  */
6135 #ifdef __cplusplus
6136 extern "C"
6137 #endif
6138 /* We use char because int might match the return type of a gcc2
6139    builtin and then its argument prototype would still apply.  */
6140 char pthread_attr_init ();
6141 char (*f) ();
6142
6143 int
6144 main ()
6145 {
6146 /* The GNU C library defines this for functions which it implements
6147     to always fail with ENOSYS.  Some functions are actually named
6148     something starting with __ and the normal name is an alias.  */
6149 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
6150 choke me
6151 #else
6152 f = pthread_attr_init;
6153 #endif
6154
6155   ;
6156   return 0;
6157 }
6158 _ACEOF
6159 rm -f conftest.$ac_objext conftest$ac_exeext
6160 if { (eval echo "$as_me:6160: \"$ac_link\"") >&5
6161   (eval $ac_link) 2>&5
6162   ac_status=$?
6163   echo "$as_me:6163: \$? = $ac_status" >&5
6164   (exit $ac_status); } &&
6165          { ac_try='test -s conftest$ac_exeext'
6166   { (eval echo "$as_me:6166: \"$ac_try\"") >&5
6167   (eval $ac_try) 2>&5
6168   ac_status=$?
6169   echo "$as_me:6169: \$? = $ac_status" >&5
6170   (exit $ac_status); }; }; then
6171   ac_cv_func_pthread_attr_init=yes
6172 else
6173   echo "$as_me: failed program was:" >&5
6174 cat conftest.$ac_ext >&5
6175 ac_cv_func_pthread_attr_init=no
6176 fi
6177 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6178 fi
6179 echo "$as_me:6179: result: $ac_cv_func_pthread_attr_init" >&5
6180 echo "${ECHO_T}$ac_cv_func_pthread_attr_init" >&6
6181
6182   THREAD_LIB=""
6183 fi
6184
6185 echo "$as_me:6185: checking for cthread_fork in -lthreads" >&5
6186 echo $ECHO_N "checking for cthread_fork in -lthreads... $ECHO_C" >&6
6187 if test "${ac_cv_lib_threads_cthread_fork+set}" = set; then
6188   echo $ECHO_N "(cached) $ECHO_C" >&6
6189 else
6190   ac_check_lib_save_LIBS=$LIBS
6191 LIBS="-lthreads  $LIBS"
6192 cat >conftest.$ac_ext <<_ACEOF
6193 #line 6193 "configure"
6194 #include "confdefs.h"
6195
6196 /* Override any gcc2 internal prototype to avoid an error.  */
6197 #ifdef __cplusplus
6198 extern "C"
6199 #endif
6200 /* We use char because int might match the return type of a gcc2
6201    builtin and then its argument prototype would still apply.  */
6202 char cthread_fork ();
6203 int
6204 main ()
6205 {
6206 cthread_fork ();
6207   ;
6208   return 0;
6209 }
6210 _ACEOF
6211 rm -f conftest.$ac_objext conftest$ac_exeext
6212 if { (eval echo "$as_me:6212: \"$ac_link\"") >&5
6213   (eval $ac_link) 2>&5
6214   ac_status=$?
6215   echo "$as_me:6215: \$? = $ac_status" >&5
6216   (exit $ac_status); } &&
6217          { ac_try='test -s conftest$ac_exeext'
6218   { (eval echo "$as_me:6218: \"$ac_try\"") >&5
6219   (eval $ac_try) 2>&5
6220   ac_status=$?
6221   echo "$as_me:6221: \$? = $ac_status" >&5
6222   (exit $ac_status); }; }; then
6223   ac_cv_lib_threads_cthread_fork=yes
6224 else
6225   echo "$as_me: failed program was:" >&5
6226 cat conftest.$ac_ext >&5
6227 ac_cv_lib_threads_cthread_fork=no
6228 fi
6229 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6230 LIBS=$ac_check_lib_save_LIBS
6231 fi
6232 echo "$as_me:6232: result: $ac_cv_lib_threads_cthread_fork" >&5
6233 echo "${ECHO_T}$ac_cv_lib_threads_cthread_fork" >&6
6234 if test $ac_cv_lib_threads_cthread_fork = yes; then
6235   THREAD_LIB="-lthreads"
6236 fi
6237
6238 cat >conftest.$ac_ext <<_ACEOF
6239 #line 6239 "configure"
6240 #include "confdefs.h"
6241 #include <pthread.h>
6242
6243 _ACEOF
6244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6245   egrep "pthread_cond_t" >/dev/null 2>&1; then
6246
6247 cat >>confdefs.h <<\EOF
6248 #define PTHREAD_COND_T_IN_PTHREAD_H 1
6249 EOF
6250
6251 fi
6252 rm -f conftest*
6253
6254 cat >conftest.$ac_ext <<_ACEOF
6255 #line 6255 "configure"
6256 #include "confdefs.h"
6257 #include <strings.h>
6258
6259 _ACEOF
6260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6261   egrep "strncasecmp" >/dev/null 2>&1; then
6262
6263 cat >>confdefs.h <<\EOF
6264 #define STRNCASECMP_IN_STRINGS_H 1
6265 EOF
6266
6267 fi
6268 rm -f conftest*
6269
6270 for ac_header in stdint.h getopt.h strings.h inttypes.h sys/int_types.h
6271 do
6272 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6273 echo "$as_me:6273: checking for $ac_header" >&5
6274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6275 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6276   echo $ECHO_N "(cached) $ECHO_C" >&6
6277 else
6278   cat >conftest.$ac_ext <<_ACEOF
6279 #line 6279 "configure"
6280 #include "confdefs.h"
6281 #include <$ac_header>
6282 _ACEOF
6283 if { (eval echo "$as_me:6283: \"$ac_cpp conftest.$ac_ext\"") >&5
6284   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6285   ac_status=$?
6286   egrep -v '^ *\+' conftest.er1 >conftest.err
6287   rm -f conftest.er1
6288   cat conftest.err >&5
6289   echo "$as_me:6289: \$? = $ac_status" >&5
6290   (exit $ac_status); } >/dev/null; then
6291   if test -s conftest.err; then
6292     ac_cpp_err=$ac_c_preproc_warn_flag
6293   else
6294     ac_cpp_err=
6295   fi
6296 else
6297   ac_cpp_err=yes
6298 fi
6299 if test -z "$ac_cpp_err"; then
6300   eval "$as_ac_Header=yes"
6301 else
6302   echo "$as_me: failed program was:" >&5
6303   cat conftest.$ac_ext >&5
6304   eval "$as_ac_Header=no"
6305 fi
6306 rm -f conftest.err conftest.$ac_ext
6307 fi
6308 echo "$as_me:6308: result: `eval echo '${'$as_ac_Header'}'`" >&5
6309 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6310 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6311   cat >>confdefs.h <<EOF
6312 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6313 EOF
6314
6315 fi
6316 done
6317
6318 for ac_header in sys/sockio.h fcntl.h sys/types.h sys/time.h sys/times.h
6319 do
6320 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6321 echo "$as_me:6321: checking for $ac_header" >&5
6322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6324   echo $ECHO_N "(cached) $ECHO_C" >&6
6325 else
6326   cat >conftest.$ac_ext <<_ACEOF
6327 #line 6327 "configure"
6328 #include "confdefs.h"
6329 #include <$ac_header>
6330 _ACEOF
6331 if { (eval echo "$as_me:6331: \"$ac_cpp conftest.$ac_ext\"") >&5
6332   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6333   ac_status=$?
6334   egrep -v '^ *\+' conftest.er1 >conftest.err
6335   rm -f conftest.er1
6336   cat conftest.err >&5
6337   echo "$as_me:6337: \$? = $ac_status" >&5
6338   (exit $ac_status); } >/dev/null; then
6339   if test -s conftest.err; then
6340     ac_cpp_err=$ac_c_preproc_warn_flag
6341   else
6342     ac_cpp_err=
6343   fi
6344 else
6345   ac_cpp_err=yes
6346 fi
6347 if test -z "$ac_cpp_err"; then
6348   eval "$as_ac_Header=yes"
6349 else
6350   echo "$as_me: failed program was:" >&5
6351   cat conftest.$ac_ext >&5
6352   eval "$as_ac_Header=no"
6353 fi
6354 rm -f conftest.err conftest.$ac_ext
6355 fi
6356 echo "$as_me:6356: result: `eval echo '${'$as_ac_Header'}'`" >&5
6357 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6358 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6359   cat >>confdefs.h <<EOF
6360 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6361 EOF
6362
6363 fi
6364 done
6365
6366 for ac_header in dlfcn.h image.h
6367 do
6368 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6369 echo "$as_me:6369: checking for $ac_header" >&5
6370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6371 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6372   echo $ECHO_N "(cached) $ECHO_C" >&6
6373 else
6374   cat >conftest.$ac_ext <<_ACEOF
6375 #line 6375 "configure"
6376 #include "confdefs.h"
6377 #include <$ac_header>
6378 _ACEOF
6379 if { (eval echo "$as_me:6379: \"$ac_cpp conftest.$ac_ext\"") >&5
6380   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6381   ac_status=$?
6382   egrep -v '^ *\+' conftest.er1 >conftest.err
6383   rm -f conftest.er1
6384   cat conftest.err >&5
6385   echo "$as_me:6385: \$? = $ac_status" >&5
6386   (exit $ac_status); } >/dev/null; then
6387   if test -s conftest.err; then
6388     ac_cpp_err=$ac_c_preproc_warn_flag
6389   else
6390     ac_cpp_err=
6391   fi
6392 else
6393   ac_cpp_err=yes
6394 fi
6395 if test -z "$ac_cpp_err"; then
6396   eval "$as_ac_Header=yes"
6397 else
6398   echo "$as_me: failed program was:" >&5
6399   cat conftest.$ac_ext >&5
6400   eval "$as_ac_Header=no"
6401 fi
6402 rm -f conftest.err conftest.$ac_ext
6403 fi
6404 echo "$as_me:6404: result: `eval echo '${'$as_ac_Header'}'`" >&5
6405 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6406 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6407   cat >>confdefs.h <<EOF
6408 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6409 EOF
6410
6411 fi
6412 done
6413
6414 for ac_header in arpa/inet.h net/if.h netinet/in.h sys/socket.h
6415 do
6416 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6417 echo "$as_me:6417: checking for $ac_header" >&5
6418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6419 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6420   echo $ECHO_N "(cached) $ECHO_C" >&6
6421 else
6422   cat >conftest.$ac_ext <<_ACEOF
6423 #line 6423 "configure"
6424 #include "confdefs.h"
6425 #include <$ac_header>
6426 _ACEOF
6427 if { (eval echo "$as_me:6427: \"$ac_cpp conftest.$ac_ext\"") >&5
6428   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6429   ac_status=$?
6430   egrep -v '^ *\+' conftest.er1 >conftest.err
6431   rm -f conftest.er1
6432   cat conftest.err >&5
6433   echo "$as_me:6433: \$? = $ac_status" >&5
6434   (exit $ac_status); } >/dev/null; then
6435   if test -s conftest.err; then
6436     ac_cpp_err=$ac_c_preproc_warn_flag
6437   else
6438     ac_cpp_err=
6439   fi
6440 else
6441   ac_cpp_err=yes
6442 fi
6443 if test -z "$ac_cpp_err"; then
6444   eval "$as_ac_Header=yes"
6445 else
6446   echo "$as_me: failed program was:" >&5
6447   cat conftest.$ac_ext >&5
6448   eval "$as_ac_Header=no"
6449 fi
6450 rm -f conftest.err conftest.$ac_ext
6451 fi
6452 echo "$as_me:6452: result: `eval echo '${'$as_ac_Header'}'`" >&5
6453 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6454 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6455   cat >>confdefs.h <<EOF
6456 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6457 EOF
6458
6459 fi
6460 done
6461
6462 for ac_header in machine/param.h sys/shm.h
6463 do
6464 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6465 echo "$as_me:6465: checking for $ac_header" >&5
6466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6468   echo $ECHO_N "(cached) $ECHO_C" >&6
6469 else
6470   cat >conftest.$ac_ext <<_ACEOF
6471 #line 6471 "configure"
6472 #include "confdefs.h"
6473 #include <$ac_header>
6474 _ACEOF
6475 if { (eval echo "$as_me:6475: \"$ac_cpp conftest.$ac_ext\"") >&5
6476   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6477   ac_status=$?
6478   egrep -v '^ *\+' conftest.er1 >conftest.err
6479   rm -f conftest.er1
6480   cat conftest.err >&5
6481   echo "$as_me:6481: \$? = $ac_status" >&5
6482   (exit $ac_status); } >/dev/null; then
6483   if test -s conftest.err; then
6484     ac_cpp_err=$ac_c_preproc_warn_flag
6485   else
6486     ac_cpp_err=
6487   fi
6488 else
6489   ac_cpp_err=yes
6490 fi
6491 if test -z "$ac_cpp_err"; then
6492   eval "$as_ac_Header=yes"
6493 else
6494   echo "$as_me: failed program was:" >&5
6495   cat conftest.$ac_ext >&5
6496   eval "$as_ac_Header=no"
6497 fi
6498 rm -f conftest.err conftest.$ac_ext
6499 fi
6500 echo "$as_me:6500: result: `eval echo '${'$as_ac_Header'}'`" >&5
6501 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6502 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6503   cat >>confdefs.h <<EOF
6504 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6505 EOF
6506
6507 fi
6508 done
6509
6510 for ac_header in linux/version.h
6511 do
6512 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6513 echo "$as_me:6513: checking for $ac_header" >&5
6514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6515 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6516   echo $ECHO_N "(cached) $ECHO_C" >&6
6517 else
6518   cat >conftest.$ac_ext <<_ACEOF
6519 #line 6519 "configure"
6520 #include "confdefs.h"
6521 #include <$ac_header>
6522 _ACEOF
6523 if { (eval echo "$as_me:6523: \"$ac_cpp conftest.$ac_ext\"") >&5
6524   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6525   ac_status=$?
6526   egrep -v '^ *\+' conftest.er1 >conftest.err
6527   rm -f conftest.er1
6528   cat conftest.err >&5
6529   echo "$as_me:6529: \$? = $ac_status" >&5
6530   (exit $ac_status); } >/dev/null; then
6531   if test -s conftest.err; then
6532     ac_cpp_err=$ac_c_preproc_warn_flag
6533   else
6534     ac_cpp_err=
6535   fi
6536 else
6537   ac_cpp_err=yes
6538 fi
6539 if test -z "$ac_cpp_err"; then
6540   eval "$as_ac_Header=yes"
6541 else
6542   echo "$as_me: failed program was:" >&5
6543   cat conftest.$ac_ext >&5
6544   eval "$as_ac_Header=no"
6545 fi
6546 rm -f conftest.err conftest.$ac_ext
6547 fi
6548 echo "$as_me:6548: result: `eval echo '${'$as_ac_Header'}'`" >&5
6549 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6550 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6551   cat >>confdefs.h <<EOF
6552 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6553 EOF
6554
6555 fi
6556 done
6557
6558 echo "$as_me:6558: checking whether time.h and sys/time.h may both be included" >&5
6559 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6560 if test "${ac_cv_header_time+set}" = set; then
6561   echo $ECHO_N "(cached) $ECHO_C" >&6
6562 else
6563   cat >conftest.$ac_ext <<_ACEOF
6564 #line 6564 "configure"
6565 #include "confdefs.h"
6566 #include <sys/types.h>
6567 #include <sys/time.h>
6568 #include <time.h>
6569
6570 int
6571 main ()
6572 {
6573 if ((struct tm *) 0)
6574 return 0;
6575   ;
6576   return 0;
6577 }
6578 _ACEOF
6579 rm -f conftest.$ac_objext
6580 if { (eval echo "$as_me:6580: \"$ac_compile\"") >&5
6581   (eval $ac_compile) 2>&5
6582   ac_status=$?
6583   echo "$as_me:6583: \$? = $ac_status" >&5
6584   (exit $ac_status); } &&
6585          { ac_try='test -s conftest.$ac_objext'
6586   { (eval echo "$as_me:6586: \"$ac_try\"") >&5
6587   (eval $ac_try) 2>&5
6588   ac_status=$?
6589   echo "$as_me:6589: \$? = $ac_status" >&5
6590   (exit $ac_status); }; }; then
6591   ac_cv_header_time=yes
6592 else
6593   echo "$as_me: failed program was:" >&5
6594 cat conftest.$ac_ext >&5
6595 ac_cv_header_time=no
6596 fi
6597 rm -f conftest.$ac_objext conftest.$ac_ext
6598 fi
6599 echo "$as_me:6599: result: $ac_cv_header_time" >&5
6600 echo "${ECHO_T}$ac_cv_header_time" >&6
6601 if test $ac_cv_header_time = yes; then
6602
6603 cat >>confdefs.h <<\EOF
6604 #define TIME_WITH_SYS_TIME 1
6605 EOF
6606
6607 fi
6608
6609 cat >conftest.$ac_ext <<_ACEOF
6610 #line 6610 "configure"
6611 #include "confdefs.h"
6612 #include <time.h>
6613
6614 _ACEOF
6615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6616   egrep "nanosleep" >/dev/null 2>&1; then
6617
6618 cat >>confdefs.h <<\EOF
6619 #define HAVE_DECL_NANOSLEEP 1
6620 EOF
6621
6622 fi
6623 rm -f conftest*
6624
6625 cat >conftest.$ac_ext <<_ACEOF
6626 #line 6626 "configure"
6627 #include "confdefs.h"
6628 #include <sys/time.h>
6629
6630 _ACEOF
6631 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6632   egrep "timespec" >/dev/null 2>&1; then
6633
6634 cat >>confdefs.h <<\EOF
6635 #define HAVE_STRUCT_TIMESPEC 1
6636 EOF
6637
6638 fi
6639 rm -f conftest*
6640
6641 for ac_header in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
6642 do
6643 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6644 echo "$as_me:6644: checking for $ac_header" >&5
6645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6647   echo $ECHO_N "(cached) $ECHO_C" >&6
6648 else
6649   cat >conftest.$ac_ext <<_ACEOF
6650 #line 6650 "configure"
6651 #include "confdefs.h"
6652 #include <$ac_header>
6653 _ACEOF
6654 if { (eval echo "$as_me:6654: \"$ac_cpp conftest.$ac_ext\"") >&5
6655   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6656   ac_status=$?
6657   egrep -v '^ *\+' conftest.er1 >conftest.err
6658   rm -f conftest.er1
6659   cat conftest.err >&5
6660   echo "$as_me:6660: \$? = $ac_status" >&5
6661   (exit $ac_status); } >/dev/null; then
6662   if test -s conftest.err; then
6663     ac_cpp_err=$ac_c_preproc_warn_flag
6664   else
6665     ac_cpp_err=
6666   fi
6667 else
6668   ac_cpp_err=yes
6669 fi
6670 if test -z "$ac_cpp_err"; then
6671   eval "$as_ac_Header=yes"
6672 else
6673   echo "$as_me: failed program was:" >&5
6674   cat conftest.$ac_ext >&5
6675   eval "$as_ac_Header=no"
6676 fi
6677 rm -f conftest.err conftest.$ac_ext
6678 fi
6679 echo "$as_me:6679: result: `eval echo '${'$as_ac_Header'}'`" >&5
6680 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6681 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6682   cat >>confdefs.h <<EOF
6683 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6684 EOF
6685
6686 fi
6687 done
6688
6689 if test x$SYS != xmingw32
6690 then
6691   if test x$x_includes = xNONE; then
6692     x_includes=/usr/X11R6/include
6693   fi
6694   if test x$x_libraries = xNONE; then
6695     x_libraries=/usr/X11R6/lib
6696   fi
6697   CPPFLAGS="$save_CPPFLAGS -I$x_includes"
6698
6699 for ac_header in X11/extensions/dpms.h
6700 do
6701 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6702 echo "$as_me:6702: checking for $ac_header" >&5
6703 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6704 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6705   echo $ECHO_N "(cached) $ECHO_C" >&6
6706 else
6707   cat >conftest.$ac_ext <<_ACEOF
6708 #line 6708 "configure"
6709 #include "confdefs.h"
6710 #include <$ac_header>
6711 _ACEOF
6712 if { (eval echo "$as_me:6712: \"$ac_cpp conftest.$ac_ext\"") >&5
6713   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6714   ac_status=$?
6715   egrep -v '^ *\+' conftest.er1 >conftest.err
6716   rm -f conftest.er1
6717   cat conftest.err >&5
6718   echo "$as_me:6718: \$? = $ac_status" >&5
6719   (exit $ac_status); } >/dev/null; then
6720   if test -s conftest.err; then
6721     ac_cpp_err=$ac_c_preproc_warn_flag
6722   else
6723     ac_cpp_err=
6724   fi
6725 else
6726   ac_cpp_err=yes
6727 fi
6728 if test -z "$ac_cpp_err"; then
6729   eval "$as_ac_Header=yes"
6730 else
6731   echo "$as_me: failed program was:" >&5
6732   cat conftest.$ac_ext >&5
6733   eval "$as_ac_Header=no"
6734 fi
6735 rm -f conftest.err conftest.$ac_ext
6736 fi
6737 echo "$as_me:6737: result: `eval echo '${'$as_ac_Header'}'`" >&5
6738 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6739 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6740   cat >>confdefs.h <<EOF
6741 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6742 EOF
6743
6744     cat >conftest.$ac_ext <<_ACEOF
6745 #line 6745 "configure"
6746 #include "confdefs.h"
6747 #include <X11/extensions/dpms.h>
6748
6749 _ACEOF
6750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6751   egrep "DPMSInfo" >/dev/null 2>&1; then
6752
6753 cat >>confdefs.h <<\EOF
6754 #define DPMSINFO_IN_DPMS_H 1
6755 EOF
6756
6757 fi
6758 rm -f conftest*
6759
6760 fi
6761 done
6762
6763   CPPFLAGS="$save_CPPFLAGS"
6764 fi
6765
6766 echo "$as_me:6766: checking for ntohl in sys/param.h" >&5
6767 echo $ECHO_N "checking for ntohl in sys/param.h... $ECHO_C" >&6
6768 if test "${ac_cv_c_ntohl_sys_param_h+set}" = set; then
6769   echo $ECHO_N "(cached) $ECHO_C" >&6
6770 else
6771   CFLAGS="${save_CFLAGS} -Wall -Werror"
6772      cat >conftest.$ac_ext <<_ACEOF
6773 #line 6773 "configure"
6774 #include "confdefs.h"
6775 #include <sys/param.h>
6776 int
6777 main ()
6778 {
6779 void foo() { int meuh; ntohl(meuh); }
6780   ;
6781   return 0;
6782 }
6783 _ACEOF
6784 rm -f conftest.$ac_objext
6785 if { (eval echo "$as_me:6785: \"$ac_compile\"") >&5
6786   (eval $ac_compile) 2>&5
6787   ac_status=$?
6788   echo "$as_me:6788: \$? = $ac_status" >&5
6789   (exit $ac_status); } &&
6790          { ac_try='test -s conftest.$ac_objext'
6791   { (eval echo "$as_me:6791: \"$ac_try\"") >&5
6792   (eval $ac_try) 2>&5
6793   ac_status=$?
6794   echo "$as_me:6794: \$? = $ac_status" >&5
6795   (exit $ac_status); }; }; then
6796   ac_cv_c_ntohl_sys_param_h=yes
6797 else
6798   echo "$as_me: failed program was:" >&5
6799 cat conftest.$ac_ext >&5
6800 ac_cv_c_ntohl_sys_param_h=no
6801 fi
6802 rm -f conftest.$ac_objext conftest.$ac_ext
6803 fi
6804 echo "$as_me:6804: result: $ac_cv_c_ntohl_sys_param_h" >&5
6805 echo "${ECHO_T}$ac_cv_c_ntohl_sys_param_h" >&6
6806 if test x"$ac_cv_c_ntohl_sys_param_h" != x"no"; then
6807
6808 cat >>confdefs.h <<\EOF
6809 #define NTOHL_IN_SYS_PARAM_H 1
6810 EOF
6811
6812 fi
6813
6814 echo "$as_me:6814: checking if \$CC accepts -finline-limit" >&5
6815 echo $ECHO_N "checking if \$CC accepts -finline-limit... $ECHO_C" >&6
6816 if test "${ac_cv_c_inline_limit+set}" = set; then
6817   echo $ECHO_N "(cached) $ECHO_C" >&6
6818 else
6819   CFLAGS="${save_CFLAGS} -finline-limit-30000"
6820      cat >conftest.$ac_ext <<_ACEOF
6821 #line 6821 "configure"
6822 #include "confdefs.h"
6823
6824 int
6825 main ()
6826 {
6827
6828   ;
6829   return 0;
6830 }
6831 _ACEOF
6832 rm -f conftest.$ac_objext
6833 if { (eval echo "$as_me:6833: \"$ac_compile\"") >&5
6834   (eval $ac_compile) 2>&5
6835   ac_status=$?
6836   echo "$as_me:6836: \$? = $ac_status" >&5
6837   (exit $ac_status); } &&
6838          { ac_try='test -s conftest.$ac_objext'
6839   { (eval echo "$as_me:6839: \"$ac_try\"") >&5
6840   (eval $ac_try) 2>&5
6841   ac_status=$?
6842   echo "$as_me:6842: \$? = $ac_status" >&5
6843   (exit $ac_status); }; }; then
6844   ac_cv_c_inline_limit=yes
6845 else
6846   echo "$as_me: failed program was:" >&5
6847 cat conftest.$ac_ext >&5
6848 ac_cv_c_inline_limit=no
6849 fi
6850 rm -f conftest.$ac_objext conftest.$ac_ext
6851 fi
6852 echo "$as_me:6852: result: $ac_cv_c_inline_limit" >&5
6853 echo "${ECHO_T}$ac_cv_c_inline_limit" >&6
6854 if test x"$ac_cv_c_inline_limit" != x"no"; then
6855     save_CFLAGS="${save_CFLAGS} -finline-limit-30000"
6856 fi
6857
6858 echo "$as_me:6858: checking if \$CC accepts -Wall -Winline" >&5
6859 echo $ECHO_N "checking if \$CC accepts -Wall -Winline... $ECHO_C" >&6
6860 if test "${ac_cv_c_Wall_Winline+set}" = set; then
6861   echo $ECHO_N "(cached) $ECHO_C" >&6
6862 else
6863   CFLAGS="${save_CFLAGS} -Wall -Winline"
6864      cat >conftest.$ac_ext <<_ACEOF
6865 #line 6865 "configure"
6866 #include "confdefs.h"
6867
6868 int
6869 main ()
6870 {
6871
6872   ;
6873   return 0;
6874 }
6875 _ACEOF
6876 rm -f conftest.$ac_objext
6877 if { (eval echo "$as_me:6877: \"$ac_compile\"") >&5
6878   (eval $ac_compile) 2>&5
6879   ac_status=$?
6880   echo "$as_me:6880: \$? = $ac_status" >&5
6881   (exit $ac_status); } &&
6882          { ac_try='test -s conftest.$ac_objext'
6883   { (eval echo "$as_me:6883: \"$ac_try\"") >&5
6884   (eval $ac_try) 2>&5
6885   ac_status=$?
6886   echo "$as_me:6886: \$? = $ac_status" >&5
6887   (exit $ac_status); }; }; then
6888   ac_cv_c_Wall_Winline=yes
6889 else
6890   echo "$as_me: failed program was:" >&5
6891 cat conftest.$ac_ext >&5
6892 ac_cv_c_Wall_Winline=no
6893 fi
6894 rm -f conftest.$ac_objext conftest.$ac_ext
6895 fi
6896 echo "$as_me:6896: result: $ac_cv_c_Wall_Winline" >&5
6897 echo "${ECHO_T}$ac_cv_c_Wall_Winline" >&6
6898 if test x"$ac_cv_c_Wall_Winline" != x"no"; then
6899     save_CFLAGS="${save_CFLAGS} -Wall -Winline"
6900 else
6901     echo "$as_me:6901: checking if \$CC accepts -wall -winline" >&5
6902 echo $ECHO_N "checking if \$CC accepts -wall -winline... $ECHO_C" >&6
6903 if test "${ac_cv_c_wall_winline+set}" = set; then
6904   echo $ECHO_N "(cached) $ECHO_C" >&6
6905 else
6906   CFLAGS="${save_CFLAGS} -wall -winline"
6907          cat >conftest.$ac_ext <<_ACEOF
6908 #line 6908 "configure"
6909 #include "confdefs.h"
6910
6911 int
6912 main ()
6913 {
6914
6915   ;
6916   return 0;
6917 }
6918 _ACEOF
6919 rm -f conftest.$ac_objext
6920 if { (eval echo "$as_me:6920: \"$ac_compile\"") >&5
6921   (eval $ac_compile) 2>&5
6922   ac_status=$?
6923   echo "$as_me:6923: \$? = $ac_status" >&5
6924   (exit $ac_status); } &&
6925          { ac_try='test -s conftest.$ac_objext'
6926   { (eval echo "$as_me:6926: \"$ac_try\"") >&5
6927   (eval $ac_try) 2>&5
6928   ac_status=$?
6929   echo "$as_me:6929: \$? = $ac_status" >&5
6930   (exit $ac_status); }; }; then
6931   ac_cv_c_wall_winline=yes
6932 else
6933   echo "$as_me: failed program was:" >&5
6934 cat conftest.$ac_ext >&5
6935 ac_cv_c_wall_winline=no
6936 fi
6937 rm -f conftest.$ac_objext conftest.$ac_ext
6938 fi
6939 echo "$as_me:6939: result: $ac_cv_c_wall_winline" >&5
6940 echo "${ECHO_T}$ac_cv_c_wall_winline" >&6
6941     if test x"$ac_cv_c_wall_winline" != x"no"; then
6942         save_CFLAGS="${save_CFLAGS} -wall -winline"
6943     fi
6944 fi
6945
6946 echo "$as_me:6946: checking if \$CC accepts -pipe" >&5
6947 echo $ECHO_N "checking if \$CC accepts -pipe... $ECHO_C" >&6
6948 if test "${ac_cv_c_pipe+set}" = set; then
6949   echo $ECHO_N "(cached) $ECHO_C" >&6
6950 else
6951   CFLAGS="${save_CFLAGS} -pipe"
6952      cat >conftest.$ac_ext <<_ACEOF
6953 #line 6953 "configure"
6954 #include "confdefs.h"
6955
6956 int
6957 main ()
6958 {
6959
6960   ;
6961   return 0;
6962 }
6963 _ACEOF
6964 rm -f conftest.$ac_objext
6965 if { (eval echo "$as_me:6965: \"$ac_compile\"") >&5
6966   (eval $ac_compile) 2>&5
6967   ac_status=$?
6968   echo "$as_me:6968: \$? = $ac_status" >&5
6969   (exit $ac_status); } &&
6970          { ac_try='test -s conftest.$ac_objext'
6971   { (eval echo "$as_me:6971: \"$ac_try\"") >&5
6972   (eval $ac_try) 2>&5
6973   ac_status=$?
6974   echo "$as_me:6974: \$? = $ac_status" >&5
6975   (exit $ac_status); }; }; then
6976   ac_cv_c_pipe=yes
6977 else
6978   echo "$as_me: failed program was:" >&5
6979 cat conftest.$ac_ext >&5
6980 ac_cv_c_pipe=no
6981 fi
6982 rm -f conftest.$ac_objext conftest.$ac_ext
6983 fi
6984 echo "$as_me:6984: result: $ac_cv_c_pipe" >&5
6985 echo "${ECHO_T}$ac_cv_c_pipe" >&6
6986 if test x"$ac_cv_c_pipe" != x"no"; then
6987     save_CFLAGS="${save_CFLAGS} -pipe"
6988 fi
6989
6990 echo "$as_me:6990: checking if \$CC accepts -O3" >&5
6991 echo $ECHO_N "checking if \$CC accepts -O3... $ECHO_C" >&6
6992 if test "${ac_cv_c_o3+set}" = set; then
6993   echo $ECHO_N "(cached) $ECHO_C" >&6
6994 else
6995   CFLAGS="${save_CFLAGS} -O3"
6996      cat >conftest.$ac_ext <<_ACEOF
6997 #line 6997 "configure"
6998 #include "confdefs.h"
6999
7000 int
7001 main ()
7002 {
7003
7004   ;
7005   return 0;
7006 }
7007 _ACEOF
7008 rm -f conftest.$ac_objext
7009 if { (eval echo "$as_me:7009: \"$ac_compile\"") >&5
7010   (eval $ac_compile) 2>&5
7011   ac_status=$?
7012   echo "$as_me:7012: \$? = $ac_status" >&5
7013   (exit $ac_status); } &&
7014          { ac_try='test -s conftest.$ac_objext'
7015   { (eval echo "$as_me:7015: \"$ac_try\"") >&5
7016   (eval $ac_try) 2>&5
7017   ac_status=$?
7018   echo "$as_me:7018: \$? = $ac_status" >&5
7019   (exit $ac_status); }; }; then
7020   ac_cv_c_o3=yes
7021 else
7022   echo "$as_me: failed program was:" >&5
7023 cat conftest.$ac_ext >&5
7024 ac_cv_c_o3=no
7025 fi
7026 rm -f conftest.$ac_objext conftest.$ac_ext
7027 fi
7028 echo "$as_me:7028: result: $ac_cv_c_o3" >&5
7029 echo "${ECHO_T}$ac_cv_c_o3" >&6
7030 if test x"$ac_cv_c_o3" != x"no"; then
7031     CFLAGS_OPTIM="${CFLAGS_OPTIM} -O3"
7032 else
7033     echo "$as_me:7033: checking if \$CC accepts -O2" >&5
7034 echo $ECHO_N "checking if \$CC accepts -O2... $ECHO_C" >&6
7035 if test "${ac_cv_c_o2+set}" = set; then
7036   echo $ECHO_N "(cached) $ECHO_C" >&6
7037 else
7038   CFLAGS="${save_CFLAGS} -O2"
7039          cat >conftest.$ac_ext <<_ACEOF
7040 #line 7040 "configure"
7041 #include "confdefs.h"
7042
7043 int
7044 main ()
7045 {
7046
7047   ;
7048   return 0;
7049 }
7050 _ACEOF
7051 rm -f conftest.$ac_objext
7052 if { (eval echo "$as_me:7052: \"$ac_compile\"") >&5
7053   (eval $ac_compile) 2>&5
7054   ac_status=$?
7055   echo "$as_me:7055: \$? = $ac_status" >&5
7056   (exit $ac_status); } &&
7057          { ac_try='test -s conftest.$ac_objext'
7058   { (eval echo "$as_me:7058: \"$ac_try\"") >&5
7059   (eval $ac_try) 2>&5
7060   ac_status=$?
7061   echo "$as_me:7061: \$? = $ac_status" >&5
7062   (exit $ac_status); }; }; then
7063   ac_cv_c_o2=yes
7064 else
7065   echo "$as_me: failed program was:" >&5
7066 cat conftest.$ac_ext >&5
7067 ac_cv_c_o2=no
7068 fi
7069 rm -f conftest.$ac_objext conftest.$ac_ext
7070 fi
7071 echo "$as_me:7071: result: $ac_cv_c_o2" >&5
7072 echo "${ECHO_T}$ac_cv_c_o2" >&6
7073     if test x"$ac_cv_c_o2" != x"no"; then
7074         CFLAGS_OPTIM="${CFLAGS_OPTIM} -O2"
7075     else
7076         echo "$as_me:7076: checking if \$CC accepts -O" >&5
7077 echo $ECHO_N "checking if \$CC accepts -O... $ECHO_C" >&6
7078 if test "${ac_cv_c_o+set}" = set; then
7079   echo $ECHO_N "(cached) $ECHO_C" >&6
7080 else
7081   CFLAGS="${save_CFLAGS} -O"
7082              cat >conftest.$ac_ext <<_ACEOF
7083 #line 7083 "configure"
7084 #include "confdefs.h"
7085
7086 int
7087 main ()
7088 {
7089
7090   ;
7091   return 0;
7092 }
7093 _ACEOF
7094 rm -f conftest.$ac_objext
7095 if { (eval echo "$as_me:7095: \"$ac_compile\"") >&5
7096   (eval $ac_compile) 2>&5
7097   ac_status=$?
7098   echo "$as_me:7098: \$? = $ac_status" >&5
7099   (exit $ac_status); } &&
7100          { ac_try='test -s conftest.$ac_objext'
7101   { (eval echo "$as_me:7101: \"$ac_try\"") >&5
7102   (eval $ac_try) 2>&5
7103   ac_status=$?
7104   echo "$as_me:7104: \$? = $ac_status" >&5
7105   (exit $ac_status); }; }; then
7106   ac_cv_c_o=yes
7107 else
7108   echo "$as_me: failed program was:" >&5
7109 cat conftest.$ac_ext >&5
7110 ac_cv_c_o=no
7111 fi
7112 rm -f conftest.$ac_objext conftest.$ac_ext
7113 fi
7114 echo "$as_me:7114: result: $ac_cv_c_o" >&5
7115 echo "${ECHO_T}$ac_cv_c_o" >&6
7116         if test x"$ac_cv_c_o" != x"no"; then
7117             CFLAGS_OPTIM="${CFLAGS_OPTIM} -O"
7118         fi
7119     fi
7120 fi
7121
7122 echo "$as_me:7122: checking if \$CC accepts -ffast-math" >&5
7123 echo $ECHO_N "checking if \$CC accepts -ffast-math... $ECHO_C" >&6
7124 if test "${ac_cv_c_fast_math+set}" = set; then
7125   echo $ECHO_N "(cached) $ECHO_C" >&6
7126 else
7127   CFLAGS="${save_CFLAGS} -ffast-math"
7128      cat >conftest.$ac_ext <<_ACEOF
7129 #line 7129 "configure"
7130 #include "confdefs.h"
7131
7132 int
7133 main ()
7134 {
7135
7136   ;
7137   return 0;
7138 }
7139 _ACEOF
7140 rm -f conftest.$ac_objext
7141 if { (eval echo "$as_me:7141: \"$ac_compile\"") >&5
7142   (eval $ac_compile) 2>&5
7143   ac_status=$?
7144   echo "$as_me:7144: \$? = $ac_status" >&5
7145   (exit $ac_status); } &&
7146          { ac_try='test -s conftest.$ac_objext'
7147   { (eval echo "$as_me:7147: \"$ac_try\"") >&5
7148   (eval $ac_try) 2>&5
7149   ac_status=$?
7150   echo "$as_me:7150: \$? = $ac_status" >&5
7151   (exit $ac_status); }; }; then
7152   ac_cv_c_fast_math=yes
7153 else
7154   echo "$as_me: failed program was:" >&5
7155 cat conftest.$ac_ext >&5
7156 ac_cv_c_fast_math=no
7157 fi
7158 rm -f conftest.$ac_objext conftest.$ac_ext
7159 fi
7160 echo "$as_me:7160: result: $ac_cv_c_fast_math" >&5
7161 echo "${ECHO_T}$ac_cv_c_fast_math" >&6
7162 if test x"$ac_cv_c_fast_math" != x"no"; then
7163     CFLAGS_OPTIM="${CFLAGS_OPTIM} -ffast-math"
7164 fi
7165
7166 echo "$as_me:7166: checking if \$CC accepts -funroll-loops" >&5
7167 echo $ECHO_N "checking if \$CC accepts -funroll-loops... $ECHO_C" >&6
7168 if test "${ac_cv_c_unroll_loops+set}" = set; then
7169   echo $ECHO_N "(cached) $ECHO_C" >&6
7170 else
7171   CFLAGS="${save_CFLAGS} -funroll-loops"
7172      cat >conftest.$ac_ext <<_ACEOF
7173 #line 7173 "configure"
7174 #include "confdefs.h"
7175
7176 int
7177 main ()
7178 {
7179
7180   ;
7181   return 0;
7182 }
7183 _ACEOF
7184 rm -f conftest.$ac_objext
7185 if { (eval echo "$as_me:7185: \"$ac_compile\"") >&5
7186   (eval $ac_compile) 2>&5
7187   ac_status=$?
7188   echo "$as_me:7188: \$? = $ac_status" >&5
7189   (exit $ac_status); } &&
7190          { ac_try='test -s conftest.$ac_objext'
7191   { (eval echo "$as_me:7191: \"$ac_try\"") >&5
7192   (eval $ac_try) 2>&5
7193   ac_status=$?
7194   echo "$as_me:7194: \$? = $ac_status" >&5
7195   (exit $ac_status); }; }; then
7196   ac_cv_c_unroll_loops=yes
7197 else
7198   echo "$as_me: failed program was:" >&5
7199 cat conftest.$ac_ext >&5
7200 ac_cv_c_unroll_loops=no
7201 fi
7202 rm -f conftest.$ac_objext conftest.$ac_ext
7203 fi
7204 echo "$as_me:7204: result: $ac_cv_c_unroll_loops" >&5
7205 echo "${ECHO_T}$ac_cv_c_unroll_loops" >&6
7206 if test x"$ac_cv_c_unroll_loops" != x"no"; then
7207     CFLAGS_OPTIM="${CFLAGS_OPTIM} -funroll-loops"
7208 fi
7209
7210 echo "$as_me:7210: checking if \$CC accepts -fomit-frame-pointer" >&5
7211 echo $ECHO_N "checking if \$CC accepts -fomit-frame-pointer... $ECHO_C" >&6
7212 if test "${ac_cv_c_omit_frame_pointer+set}" = set; then
7213   echo $ECHO_N "(cached) $ECHO_C" >&6
7214 else
7215   CFLAGS="${save_CFLAGS} -fomit-frame-pointer"
7216      cat >conftest.$ac_ext <<_ACEOF
7217 #line 7217 "configure"
7218 #include "confdefs.h"
7219
7220 int
7221 main ()
7222 {
7223
7224   ;
7225   return 0;
7226 }
7227 _ACEOF
7228 rm -f conftest.$ac_objext
7229 if { (eval echo "$as_me:7229: \"$ac_compile\"") >&5
7230   (eval $ac_compile) 2>&5
7231   ac_status=$?
7232   echo "$as_me:7232: \$? = $ac_status" >&5
7233   (exit $ac_status); } &&
7234          { ac_try='test -s conftest.$ac_objext'
7235   { (eval echo "$as_me:7235: \"$ac_try\"") >&5
7236   (eval $ac_try) 2>&5
7237   ac_status=$?
7238   echo "$as_me:7238: \$? = $ac_status" >&5
7239   (exit $ac_status); }; }; then
7240   ac_cv_c_omit_frame_pointer=yes
7241 else
7242   echo "$as_me: failed program was:" >&5
7243 cat conftest.$ac_ext >&5
7244 ac_cv_c_omit_frame_pointer=no
7245 fi
7246 rm -f conftest.$ac_objext conftest.$ac_ext
7247 fi
7248 echo "$as_me:7248: result: $ac_cv_c_omit_frame_pointer" >&5
7249 echo "${ECHO_T}$ac_cv_c_omit_frame_pointer" >&6
7250 if test x"$ac_cv_c_omit_frame_pointer" != x"no"; then
7251     CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer"
7252 fi
7253
7254 if test x$SYS = xmingw32
7255 then
7256     echo "$as_me:7256: checking if \$CC accepts -mms-bitfields" >&5
7257 echo $ECHO_N "checking if \$CC accepts -mms-bitfields... $ECHO_C" >&6
7258 if test "${ac_cv_c_mms_bitfields+set}" = set; then
7259   echo $ECHO_N "(cached) $ECHO_C" >&6
7260 else
7261   CFLAGS="${save_CFLAGS} -mms-bitfields"
7262          cat >conftest.$ac_ext <<_ACEOF
7263 #line 7263 "configure"
7264 #include "confdefs.h"
7265
7266 int
7267 main ()
7268 {
7269
7270   ;
7271   return 0;
7272 }
7273 _ACEOF
7274 rm -f conftest.$ac_objext
7275 if { (eval echo "$as_me:7275: \"$ac_compile\"") >&5
7276   (eval $ac_compile) 2>&5
7277   ac_status=$?
7278   echo "$as_me:7278: \$? = $ac_status" >&5
7279   (exit $ac_status); } &&
7280          { ac_try='test -s conftest.$ac_objext'
7281   { (eval echo "$as_me:7281: \"$ac_try\"") >&5
7282   (eval $ac_try) 2>&5
7283   ac_status=$?
7284   echo "$as_me:7284: \$? = $ac_status" >&5
7285   (exit $ac_status); }; }; then
7286   ac_cv_c_mms_bitfields=yes
7287 else
7288   echo "$as_me: failed program was:" >&5
7289 cat conftest.$ac_ext >&5
7290 ac_cv_c_mms_bitfields=no
7291 fi
7292 rm -f conftest.$ac_objext conftest.$ac_ext
7293 fi
7294 echo "$as_me:7294: result: $ac_cv_c_mms_bitfields" >&5
7295 echo "${ECHO_T}$ac_cv_c_mms_bitfields" >&6
7296     if test x"$ac_cv_c_mms_bitfields" != x"no"; then
7297         save_CFLAGS="${save_CFLAGS} -mms-bitfields"
7298         plugins_CFLAGS="${plugins_CFLAGS} -mms-bitfields"
7299     else
7300         save_CFLAGS="${save_CFLAGS} -fnative-struct"
7301         plugins_CFLAGS="${plugins_CFLAGS} -fnative-struct"
7302     fi
7303 fi
7304
7305 echo "$as_me:7305: checking if \$CC accepts -bundle -undefined error -lcc_dynamic" >&5
7306 echo $ECHO_N "checking if \$CC accepts -bundle -undefined error -lcc_dynamic... $ECHO_C" >&6
7307 if test "${ac_cv_ld_darwin+set}" = set; then
7308   echo $ECHO_N "(cached) $ECHO_C" >&6
7309 else
7310   CFLAGS="${save_CFLAGS} -bundle -undefined error -lcc_dynamic"
7311      cat >conftest.$ac_ext <<_ACEOF
7312 #line 7312 "configure"
7313 #include "confdefs.h"
7314
7315 int
7316 main ()
7317 {
7318
7319   ;
7320   return 0;
7321 }
7322 _ACEOF
7323 rm -f conftest.$ac_objext
7324 if { (eval echo "$as_me:7324: \"$ac_compile\"") >&5
7325   (eval $ac_compile) 2>&5
7326   ac_status=$?
7327   echo "$as_me:7327: \$? = $ac_status" >&5
7328   (exit $ac_status); } &&
7329          { ac_try='test -s conftest.$ac_objext'
7330   { (eval echo "$as_me:7330: \"$ac_try\"") >&5
7331   (eval $ac_try) 2>&5
7332   ac_status=$?
7333   echo "$as_me:7333: \$? = $ac_status" >&5
7334   (exit $ac_status); }; }; then
7335   ac_cv_ld_darwin=yes
7336 else
7337   echo "$as_me: failed program was:" >&5
7338 cat conftest.$ac_ext >&5
7339 ac_cv_ld_darwin=no
7340 fi
7341 rm -f conftest.$ac_objext conftest.$ac_ext
7342 fi
7343 echo "$as_me:7343: result: $ac_cv_ld_darwin" >&5
7344 echo "${ECHO_T}$ac_cv_ld_darwin" >&6
7345 if test x"$ac_cv_ld_darwin" != x"no"; then
7346     plugins_LDFLAGS="${plugins_LDFLAGS} -bundle -undefined error -lcc_dynamic"
7347 fi
7348
7349 echo "$as_me:7349: checking if \$CC accepts -shared" >&5
7350 echo $ECHO_N "checking if \$CC accepts -shared... $ECHO_C" >&6
7351 if test "${ac_cv_ld_plugins+set}" = set; then
7352   echo $ECHO_N "(cached) $ECHO_C" >&6
7353 else
7354   CFLAGS="${save_CFLAGS} -shared"
7355      cat >conftest.$ac_ext <<_ACEOF
7356 #line 7356 "configure"
7357 #include "confdefs.h"
7358
7359 int
7360 main ()
7361 {
7362
7363   ;
7364   return 0;
7365 }
7366 _ACEOF
7367 rm -f conftest.$ac_objext
7368 if { (eval echo "$as_me:7368: \"$ac_compile\"") >&5
7369   (eval $ac_compile) 2>&5
7370   ac_status=$?
7371   echo "$as_me:7371: \$? = $ac_status" >&5
7372   (exit $ac_status); } &&
7373          { ac_try='test -s conftest.$ac_objext'
7374   { (eval echo "$as_me:7374: \"$ac_try\"") >&5
7375   (eval $ac_try) 2>&5
7376   ac_status=$?
7377   echo "$as_me:7377: \$? = $ac_status" >&5
7378   (exit $ac_status); }; }; then
7379   ac_cv_ld_plugins=yes
7380 else
7381   echo "$as_me: failed program was:" >&5
7382 cat conftest.$ac_ext >&5
7383 ac_cv_ld_plugins=no
7384 fi
7385 rm -f conftest.$ac_objext conftest.$ac_ext
7386 fi
7387 echo "$as_me:7387: result: $ac_cv_ld_plugins" >&5
7388 echo "${ECHO_T}$ac_cv_ld_plugins" >&6
7389 if test x"$ac_cv_ld_plugins" != x"no"; then
7390     plugins_LDFLAGS="${plugins_LDFLAGS} -shared"
7391 fi
7392
7393 echo "$as_me:7393: checking for variadic cpp macros" >&5
7394 echo $ECHO_N "checking for variadic cpp macros... $ECHO_C" >&6
7395 if test "${ac_cv_cpp_variadic_macros+set}" = set; then
7396   echo $ECHO_N "(cached) $ECHO_C" >&6
7397 else
7398   CFLAGS="${save_CFLAGS}"
7399      cat >conftest.$ac_ext <<_ACEOF
7400 #line 7400 "configure"
7401 #include "confdefs.h"
7402 #include <stdio.h>
7403           #define a(b,c...) printf(b,##c)
7404 int
7405 main ()
7406 {
7407 a("foo");a("%s","bar");a("%s%s","baz","quux");
7408   ;
7409   return 0;
7410 }
7411 _ACEOF
7412 rm -f conftest.$ac_objext
7413 if { (eval echo "$as_me:7413: \"$ac_compile\"") >&5
7414   (eval $ac_compile) 2>&5
7415   ac_status=$?
7416   echo "$as_me:7416: \$? = $ac_status" >&5
7417   (exit $ac_status); } &&
7418          { ac_try='test -s conftest.$ac_objext'
7419   { (eval echo "$as_me:7419: \"$ac_try\"") >&5
7420   (eval $ac_try) 2>&5
7421   ac_status=$?
7422   echo "$as_me:7422: \$? = $ac_status" >&5
7423   (exit $ac_status); }; }; then
7424   ac_cv_cpp_variadic_macros=yes
7425 else
7426   echo "$as_me: failed program was:" >&5
7427 cat conftest.$ac_ext >&5
7428 ac_cv_cpp_variadic_macros=no
7429 fi
7430 rm -f conftest.$ac_objext conftest.$ac_ext
7431 fi
7432 echo "$as_me:7432: result: $ac_cv_cpp_variadic_macros" >&5
7433 echo "${ECHO_T}$ac_cv_cpp_variadic_macros" >&6
7434 if test x"$ac_cv_cpp_variadic_macros" != x"no"; then
7435
7436 cat >>confdefs.h <<\EOF
7437 #define HAVE_VARIADIC_MACROS 1
7438 EOF
7439
7440 fi
7441
7442 echo "$as_me:7442: checking __attribute__ ((aligned ())) support" >&5
7443 echo $ECHO_N "checking __attribute__ ((aligned ())) support... $ECHO_C" >&6
7444 if test "${ac_cv_c_attribute_aligned+set}" = set; then
7445   echo $ECHO_N "(cached) $ECHO_C" >&6
7446 else
7447   ac_cv_c_attribute_aligned=0
7448         CFLAGS="${save_CFLAGS} -Werror"
7449     for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
7450         cat >conftest.$ac_ext <<_ACEOF
7451 #line 7451 "configure"
7452 #include "confdefs.h"
7453
7454 int
7455 main ()
7456 {
7457 static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;
7458   ;
7459   return 0;
7460 }
7461 _ACEOF
7462 rm -f conftest.$ac_objext
7463 if { (eval echo "$as_me:7463: \"$ac_compile\"") >&5
7464   (eval $ac_compile) 2>&5
7465   ac_status=$?
7466   echo "$as_me:7466: \$? = $ac_status" >&5
7467   (exit $ac_status); } &&
7468          { ac_try='test -s conftest.$ac_objext'
7469   { (eval echo "$as_me:7469: \"$ac_try\"") >&5
7470   (eval $ac_try) 2>&5
7471   ac_status=$?
7472   echo "$as_me:7472: \$? = $ac_status" >&5
7473   (exit $ac_status); }; }; then
7474   ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try
7475 else
7476   echo "$as_me: failed program was:" >&5
7477 cat conftest.$ac_ext >&5
7478 fi
7479 rm -f conftest.$ac_objext conftest.$ac_ext
7480     done
7481 fi
7482 echo "$as_me:7482: result: $ac_cv_c_attribute_aligned" >&5
7483 echo "${ECHO_T}$ac_cv_c_attribute_aligned" >&6
7484 if test x"$ac_cv_c_attribute_aligned" != x"0"; then
7485
7486 cat >>confdefs.h <<EOF
7487 #define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned
7488 EOF
7489
7490 fi
7491
7492 CFLAGS="${save_CFLAGS}"
7493 CPPFLAGS="${save_CPPFLAGS}"
7494 LDFLAGS="${save_LDFLAGS}"
7495
7496 echo "$as_me:7496: checking for boolean_t in sys/types.h" >&5
7497 echo $ECHO_N "checking for boolean_t in sys/types.h... $ECHO_C" >&6
7498 if test "${ac_cv_c_boolean_t_sys_types_h+set}" = set; then
7499   echo $ECHO_N "(cached) $ECHO_C" >&6
7500 else
7501   cat >conftest.$ac_ext <<_ACEOF
7502 #line 7502 "configure"
7503 #include "confdefs.h"
7504 #include <sys/types.h>
7505 int
7506 main ()
7507 {
7508 boolean_t foo;
7509   ;
7510   return 0;
7511 }
7512 _ACEOF
7513 rm -f conftest.$ac_objext
7514 if { (eval echo "$as_me:7514: \"$ac_compile\"") >&5
7515   (eval $ac_compile) 2>&5
7516   ac_status=$?
7517   echo "$as_me:7517: \$? = $ac_status" >&5
7518   (exit $ac_status); } &&
7519          { ac_try='test -s conftest.$ac_objext'
7520   { (eval echo "$as_me:7520: \"$ac_try\"") >&5
7521   (eval $ac_try) 2>&5
7522   ac_status=$?
7523   echo "$as_me:7523: \$? = $ac_status" >&5
7524   (exit $ac_status); }; }; then
7525   ac_cv_c_boolean_t_sys_types_h=yes
7526 else
7527   echo "$as_me: failed program was:" >&5
7528 cat conftest.$ac_ext >&5
7529 ac_cv_c_boolean_t_sys_types_h=no
7530 fi
7531 rm -f conftest.$ac_objext conftest.$ac_ext
7532 fi
7533 echo "$as_me:7533: result: $ac_cv_c_boolean_t_sys_types_h" >&5
7534 echo "${ECHO_T}$ac_cv_c_boolean_t_sys_types_h" >&6
7535 if test x"$ac_cv_c_boolean_t_sys_types_h" != x"no"; then
7536
7537 cat >>confdefs.h <<\EOF
7538 #define BOOLEAN_T_IN_SYS_TYPES_H 1
7539 EOF
7540
7541 fi
7542
7543 echo "$as_me:7543: checking for boolean_t in pthread.h" >&5
7544 echo $ECHO_N "checking for boolean_t in pthread.h... $ECHO_C" >&6
7545 if test "${ac_cv_c_boolean_t_pthread_h+set}" = set; then
7546   echo $ECHO_N "(cached) $ECHO_C" >&6
7547 else
7548   cat >conftest.$ac_ext <<_ACEOF
7549 #line 7549 "configure"
7550 #include "confdefs.h"
7551 #include <pthread.h>
7552 int
7553 main ()
7554 {
7555 boolean_t foo;
7556   ;
7557   return 0;
7558 }
7559 _ACEOF
7560 rm -f conftest.$ac_objext
7561 if { (eval echo "$as_me:7561: \"$ac_compile\"") >&5
7562   (eval $ac_compile) 2>&5
7563   ac_status=$?
7564   echo "$as_me:7564: \$? = $ac_status" >&5
7565   (exit $ac_status); } &&
7566          { ac_try='test -s conftest.$ac_objext'
7567   { (eval echo "$as_me:7567: \"$ac_try\"") >&5
7568   (eval $ac_try) 2>&5
7569   ac_status=$?
7570   echo "$as_me:7570: \$? = $ac_status" >&5
7571   (exit $ac_status); }; }; then
7572   ac_cv_c_boolean_t_pthread_h=yes
7573 else
7574   echo "$as_me: failed program was:" >&5
7575 cat conftest.$ac_ext >&5
7576 ac_cv_c_boolean_t_pthread_h=no
7577 fi
7578 rm -f conftest.$ac_objext conftest.$ac_ext
7579 fi
7580 echo "$as_me:7580: result: $ac_cv_c_boolean_t_pthread_h" >&5
7581 echo "${ECHO_T}$ac_cv_c_boolean_t_pthread_h" >&6
7582 if test x"$ac_cv_c_boolean_t_pthread_h" != x"no"; then
7583
7584 cat >>confdefs.h <<\EOF
7585 #define BOOLEAN_T_IN_PTHREAD_H 1
7586 EOF
7587
7588 fi
7589
7590 echo "$as_me:7590: checking for boolean_t in cthreads.h" >&5
7591 echo $ECHO_N "checking for boolean_t in cthreads.h... $ECHO_C" >&6
7592 if test "${ac_cv_c_boolean_t_cthreads_h+set}" = set; then
7593   echo $ECHO_N "(cached) $ECHO_C" >&6
7594 else
7595   cat >conftest.$ac_ext <<_ACEOF
7596 #line 7596 "configure"
7597 #include "confdefs.h"
7598 #include <cthreads.h>
7599 int
7600 main ()
7601 {
7602 boolean_t foo;
7603   ;
7604   return 0;
7605 }
7606 _ACEOF
7607 rm -f conftest.$ac_objext
7608 if { (eval echo "$as_me:7608: \"$ac_compile\"") >&5
7609   (eval $ac_compile) 2>&5
7610   ac_status=$?
7611   echo "$as_me:7611: \$? = $ac_status" >&5
7612   (exit $ac_status); } &&
7613          { ac_try='test -s conftest.$ac_objext'
7614   { (eval echo "$as_me:7614: \"$ac_try\"") >&5
7615   (eval $ac_try) 2>&5
7616   ac_status=$?
7617   echo "$as_me:7617: \$? = $ac_status" >&5
7618   (exit $ac_status); }; }; then
7619   ac_cv_c_boolean_t_cthreads_h=yes
7620 else
7621   echo "$as_me: failed program was:" >&5
7622 cat conftest.$ac_ext >&5
7623 ac_cv_c_boolean_t_cthreads_h=no
7624 fi
7625 rm -f conftest.$ac_objext conftest.$ac_ext
7626 fi
7627 echo "$as_me:7627: result: $ac_cv_c_boolean_t_cthreads_h" >&5
7628 echo "${ECHO_T}$ac_cv_c_boolean_t_cthreads_h" >&6
7629 if test x"$ac_cv_c_boolean_t_cthreads_h" != x"no"; then
7630
7631 cat >>confdefs.h <<\EOF
7632 #define BOOLEAN_T_IN_CTHREADS_H 1
7633 EOF
7634
7635 fi
7636
7637 case x"${target_cpu}" in
7638   x)
7639     ARCH=unknown
7640     ;;
7641   *)
7642     ARCH="${target_cpu}"
7643     ;;
7644 esac
7645
7646 BUILTINS="${BUILTINS} idct idctclassic motion imdct downmix chroma_i420_rgb chroma_i420_yuy2 chroma_i422_yuy2 chroma_i420_ymga mpeg_adec ac3_adec mpeg_vdec"
7647 PLUGINS="${PLUGINS} dummy null rc logger mpeg_es mpeg_ps mpeg_ts mpeg_audio file memcpy lpcm_adec ac3_spdif spudec filter_deinterlace filter_invert filter_wall filter_transform filter_distort filter_clone filter_crop fx_scope"
7648
7649 NETWORK_MODULES="udp http rtp ipv4"
7650
7651 MMX_MODULES="memcpymmx idctmmx motionmmx chroma_i420_rgb_mmx chroma_i420_yuy2_mmx chroma_i422_yuy2_mmx chroma_i420_ymga_mmx"
7652 MMXEXT_MODULES="memcpymmxext idctmmxext motionmmxext"
7653 THREEDNOW_MODULES="memcpy3dn imdct3dn downmix3dn"
7654 SSE_MODULES="imdctsse downmixsse"
7655 ALTIVEC_MODULES="idctaltivec motionaltivec memcpyaltivec"
7656
7657 if test x$SYS != xbeos
7658 then
7659     PLUGINS="${PLUGINS} ${NETWORK_MODULES}"
7660 fi
7661
7662 echo "$as_me:7662: checking if \$CC groks MMX inline assembly" >&5
7663 echo $ECHO_N "checking if \$CC groks MMX inline assembly... $ECHO_C" >&6
7664 if test "${ac_cv_mmx_inline+set}" = set; then
7665   echo $ECHO_N "(cached) $ECHO_C" >&6
7666 else
7667   cat >conftest.$ac_ext <<_ACEOF
7668 #line 7668 "configure"
7669 #include "confdefs.h"
7670
7671 int
7672 main ()
7673 {
7674 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
7675   ;
7676   return 0;
7677 }
7678 _ACEOF
7679 rm -f conftest.$ac_objext
7680 if { (eval echo "$as_me:7680: \"$ac_compile\"") >&5
7681   (eval $ac_compile) 2>&5
7682   ac_status=$?
7683   echo "$as_me:7683: \$? = $ac_status" >&5
7684   (exit $ac_status); } &&
7685          { ac_try='test -s conftest.$ac_objext'
7686   { (eval echo "$as_me:7686: \"$ac_try\"") >&5
7687   (eval $ac_try) 2>&5
7688   ac_status=$?
7689   echo "$as_me:7689: \$? = $ac_status" >&5
7690   (exit $ac_status); }; }; then
7691   ac_cv_mmx_inline=yes
7692 else
7693   echo "$as_me: failed program was:" >&5
7694 cat conftest.$ac_ext >&5
7695 ac_cv_mmx_inline=no
7696 fi
7697 rm -f conftest.$ac_objext conftest.$ac_ext
7698 fi
7699 echo "$as_me:7699: result: $ac_cv_mmx_inline" >&5
7700 echo "${ECHO_T}$ac_cv_mmx_inline" >&6
7701 if test x"$ac_cv_mmx_inline" != x"no"; then
7702   ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
7703 fi
7704
7705 echo "$as_me:7705: checking if \$CC groks MMX EXT inline assembly" >&5
7706 echo $ECHO_N "checking if \$CC groks MMX EXT inline assembly... $ECHO_C" >&6
7707 if test "${ac_cv_mmxext_inline+set}" = set; then
7708   echo $ECHO_N "(cached) $ECHO_C" >&6
7709 else
7710   cat >conftest.$ac_ext <<_ACEOF
7711 #line 7711 "configure"
7712 #include "confdefs.h"
7713
7714 int
7715 main ()
7716 {
7717 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
7718   ;
7719   return 0;
7720 }
7721 _ACEOF
7722 rm -f conftest.$ac_objext
7723 if { (eval echo "$as_me:7723: \"$ac_compile\"") >&5
7724   (eval $ac_compile) 2>&5
7725   ac_status=$?
7726   echo "$as_me:7726: \$? = $ac_status" >&5
7727   (exit $ac_status); } &&
7728          { ac_try='test -s conftest.$ac_objext'
7729   { (eval echo "$as_me:7729: \"$ac_try\"") >&5
7730   (eval $ac_try) 2>&5
7731   ac_status=$?
7732   echo "$as_me:7732: \$? = $ac_status" >&5
7733   (exit $ac_status); }; }; then
7734   ac_cv_mmxext_inline=yes
7735 else
7736   echo "$as_me: failed program was:" >&5
7737 cat conftest.$ac_ext >&5
7738 ac_cv_mmxext_inline=no
7739 fi
7740 rm -f conftest.$ac_objext conftest.$ac_ext
7741 fi
7742 echo "$as_me:7742: result: $ac_cv_mmxext_inline" >&5
7743 echo "${ECHO_T}$ac_cv_mmxext_inline" >&6
7744 if test x"$ac_cv_mmxext_inline" != x"no"; then
7745   ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
7746 fi
7747
7748 echo "$as_me:7748: checking if \$CC groks 3D Now! inline assembly" >&5
7749 echo $ECHO_N "checking if \$CC groks 3D Now! inline assembly... $ECHO_C" >&6
7750 if test "${ac_cv_3dnow_inline+set}" = set; then
7751   echo $ECHO_N "(cached) $ECHO_C" >&6
7752 else
7753   cat >conftest.$ac_ext <<_ACEOF
7754 #line 7754 "configure"
7755 #include "confdefs.h"
7756
7757 int
7758 main ()
7759 {
7760 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
7761   ;
7762   return 0;
7763 }
7764 _ACEOF
7765 rm -f conftest.$ac_objext
7766 if { (eval echo "$as_me:7766: \"$ac_compile\"") >&5
7767   (eval $ac_compile) 2>&5
7768   ac_status=$?
7769   echo "$as_me:7769: \$? = $ac_status" >&5
7770   (exit $ac_status); } &&
7771          { ac_try='test -s conftest.$ac_objext'
7772   { (eval echo "$as_me:7772: \"$ac_try\"") >&5
7773   (eval $ac_try) 2>&5
7774   ac_status=$?
7775   echo "$as_me:7775: \$? = $ac_status" >&5
7776   (exit $ac_status); }; }; then
7777   ac_cv_3dnow_inline=yes
7778 else
7779   echo "$as_me: failed program was:" >&5
7780 cat conftest.$ac_ext >&5
7781 ac_cv_3dnow_inline=no
7782 fi
7783 rm -f conftest.$ac_objext conftest.$ac_ext
7784 fi
7785 echo "$as_me:7785: result: $ac_cv_3dnow_inline" >&5
7786 echo "${ECHO_T}$ac_cv_3dnow_inline" >&6
7787 if test x"$ac_cv_3dnow_inline" != x"no"; then
7788
7789 cat >>confdefs.h <<\EOF
7790 #define CAN_COMPILE_3DNOW 1
7791 EOF
7792
7793   ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
7794 fi
7795
7796 echo "$as_me:7796: checking if \$CC groks SSE inline assembly" >&5
7797 echo $ECHO_N "checking if \$CC groks SSE inline assembly... $ECHO_C" >&6
7798 if test "${ac_cv_sse_inline+set}" = set; then
7799   echo $ECHO_N "(cached) $ECHO_C" >&6
7800 else
7801   cat >conftest.$ac_ext <<_ACEOF
7802 #line 7802 "configure"
7803 #include "confdefs.h"
7804
7805 int
7806 main ()
7807 {
7808 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
7809   ;
7810   return 0;
7811 }
7812 _ACEOF
7813 rm -f conftest.$ac_objext
7814 if { (eval echo "$as_me:7814: \"$ac_compile\"") >&5
7815   (eval $ac_compile) 2>&5
7816   ac_status=$?
7817   echo "$as_me:7817: \$? = $ac_status" >&5
7818   (exit $ac_status); } &&
7819          { ac_try='test -s conftest.$ac_objext'
7820   { (eval echo "$as_me:7820: \"$ac_try\"") >&5
7821   (eval $ac_try) 2>&5
7822   ac_status=$?
7823   echo "$as_me:7823: \$? = $ac_status" >&5
7824   (exit $ac_status); }; }; then
7825   ac_cv_sse_inline=yes
7826 else
7827   echo "$as_me: failed program was:" >&5
7828 cat conftest.$ac_ext >&5
7829 ac_cv_sse_inline=no
7830 fi
7831 rm -f conftest.$ac_objext conftest.$ac_ext
7832 fi
7833 echo "$as_me:7833: result: $ac_cv_sse_inline" >&5
7834 echo "${ECHO_T}$ac_cv_sse_inline" >&6
7835 if test x"$ac_cv_sse_inline" != x"no" -a x$SYS != xmingw32; then
7836
7837 cat >>confdefs.h <<\EOF
7838 #define CAN_COMPILE_SSE 1
7839 EOF
7840
7841   ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
7842 fi
7843
7844 # don't try to grok altivec with native mingw32 it doesn't work right now
7845 # we should be able to remove this test with future versions of mingw32
7846 if test x$SYS != xmingw32; then
7847 echo "$as_me:7847: checking if \$CC groks Altivec inline assembly" >&5
7848 echo $ECHO_N "checking if \$CC groks Altivec inline assembly... $ECHO_C" >&6
7849 if test "${ac_cv_altivec_inline+set}" = set; then
7850   echo $ECHO_N "(cached) $ECHO_C" >&6
7851 else
7852   cat >conftest.$ac_ext <<_ACEOF
7853 #line 7853 "configure"
7854 #include "confdefs.h"
7855
7856 int
7857 main ()
7858 {
7859 asm volatile("vperm 0,1,2,3");
7860   ;
7861   return 0;
7862 }
7863 _ACEOF
7864 rm -f conftest.$ac_objext
7865 if { (eval echo "$as_me:7865: \"$ac_compile\"") >&5
7866   (eval $ac_compile) 2>&5
7867   ac_status=$?
7868   echo "$as_me:7868: \$? = $ac_status" >&5
7869   (exit $ac_status); } &&
7870          { ac_try='test -s conftest.$ac_objext'
7871   { (eval echo "$as_me:7871: \"$ac_try\"") >&5
7872   (eval $ac_try) 2>&5
7873   ac_status=$?
7874   echo "$as_me:7874: \$? = $ac_status" >&5
7875   (exit $ac_status); }; }; then
7876   ac_cv_altivec_inline=yes
7877 else
7878   echo "$as_me: failed program was:" >&5
7879 cat conftest.$ac_ext >&5
7880 save_CFLAGS=$CFLAGS
7881           CFLAGS="$CFLAGS -Wa,-m7400"
7882           cat >conftest.$ac_ext <<_ACEOF
7883 #line 7883 "configure"
7884 #include "confdefs.h"
7885
7886 int
7887 main ()
7888 {
7889 asm volatile("vperm 0,1,2,3");
7890   ;
7891   return 0;
7892 }
7893 _ACEOF
7894 rm -f conftest.$ac_objext
7895 if { (eval echo "$as_me:7895: \"$ac_compile\"") >&5
7896   (eval $ac_compile) 2>&5
7897   ac_status=$?
7898   echo "$as_me:7898: \$? = $ac_status" >&5
7899   (exit $ac_status); } &&
7900          { ac_try='test -s conftest.$ac_objext'
7901   { (eval echo "$as_me:7901: \"$ac_try\"") >&5
7902   (eval $ac_try) 2>&5
7903   ac_status=$?
7904   echo "$as_me:7904: \$? = $ac_status" >&5
7905   (exit $ac_status); }; }; then
7906   ac_cv_altivec_inline="-Wa,-m7400"
7907 else
7908   echo "$as_me: failed program was:" >&5
7909 cat conftest.$ac_ext >&5
7910 ac_cv_altivec_inline=no
7911 fi
7912 rm -f conftest.$ac_objext conftest.$ac_ext
7913           CFLAGS=$save_CFLAGS
7914
7915 fi
7916 rm -f conftest.$ac_objext conftest.$ac_ext
7917 fi
7918 echo "$as_me:7918: result: $ac_cv_altivec_inline" >&5
7919 echo "${ECHO_T}$ac_cv_altivec_inline" >&6
7920 if test x"$ac_cv_altivec_inline" != x"no"; then
7921
7922 cat >>confdefs.h <<\EOF
7923 #define CAN_COMPILE_ALTIVEC 1
7924 EOF
7925
7926   if test x"$ac_cv_altivec_inline" != x"yes"; then
7927     idctaltivec_CFLAGS="$idctaltivec_CFLAGS $ac_cv_altivec_inline"
7928     motionaltivec_CFLAGS="$motionaltivec_CFLAGS $ac_cv_altivec_inline"
7929     memcpyaltivec_CFLAGS="$memcpyaltivec_CFLAGS $ac_cv_altivec_inline"
7930     vlc_CFLAGS="$vlc_CFLAGS $ac_cv_altivec_inline"
7931   fi
7932   ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
7933 fi
7934
7935 echo "$as_me:7935: checking if \$CC groks Altivec C extensions" >&5
7936 echo $ECHO_N "checking if \$CC groks Altivec C extensions... $ECHO_C" >&6
7937 if test "${ac_cv_c_altivec+set}" = set; then
7938   echo $ECHO_N "(cached) $ECHO_C" >&6
7939 else
7940   save_CFLAGS=$CFLAGS
7941      CFLAGS="$CFLAGS -faltivec"
7942      # Darwin test
7943      cat >conftest.$ac_ext <<_ACEOF
7944 #line 7944 "configure"
7945 #include "confdefs.h"
7946
7947 int
7948 main ()
7949 {
7950 vec_mtvscr((vector unsigned int)(0));
7951   ;
7952   return 0;
7953 }
7954 _ACEOF
7955 rm -f conftest.$ac_objext
7956 if { (eval echo "$as_me:7956: \"$ac_compile\"") >&5
7957   (eval $ac_compile) 2>&5
7958   ac_status=$?
7959   echo "$as_me:7959: \$? = $ac_status" >&5
7960   (exit $ac_status); } &&
7961          { ac_try='test -s conftest.$ac_objext'
7962   { (eval echo "$as_me:7962: \"$ac_try\"") >&5
7963   (eval $ac_try) 2>&5
7964   ac_status=$?
7965   echo "$as_me:7965: \$? = $ac_status" >&5
7966   (exit $ac_status); }; }; then
7967   ac_cv_c_altivec=-faltivec
7968 else
7969   echo "$as_me: failed program was:" >&5
7970 cat conftest.$ac_ext >&5
7971
7972         # Linux/PPC test
7973         CFLAGS="$save_CFLAGS $idctaltivec_CFLAGS -fvec"
7974         cat >conftest.$ac_ext <<_ACEOF
7975 #line 7975 "configure"
7976 #include "confdefs.h"
7977
7978 int
7979 main ()
7980 {
7981 vec_mtvscr((vector unsigned int)(0));
7982   ;
7983   return 0;
7984 }
7985 _ACEOF
7986 rm -f conftest.$ac_objext
7987 if { (eval echo "$as_me:7987: \"$ac_compile\"") >&5
7988   (eval $ac_compile) 2>&5
7989   ac_status=$?
7990   echo "$as_me:7990: \$? = $ac_status" >&5
7991   (exit $ac_status); } &&
7992          { ac_try='test -s conftest.$ac_objext'
7993   { (eval echo "$as_me:7993: \"$ac_try\"") >&5
7994   (eval $ac_try) 2>&5
7995   ac_status=$?
7996   echo "$as_me:7996: \$? = $ac_status" >&5
7997   (exit $ac_status); }; }; then
7998   ac_cv_c_altivec="-fvec"
7999 else
8000   echo "$as_me: failed program was:" >&5
8001 cat conftest.$ac_ext >&5
8002 ac_cv_c_altivec=no
8003 fi
8004 rm -f conftest.$ac_objext conftest.$ac_ext
8005
8006 fi
8007 rm -f conftest.$ac_objext conftest.$ac_ext
8008      CFLAGS=$save_CFLAGS
8009
8010 fi
8011 echo "$as_me:8011: result: $ac_cv_c_altivec" >&5
8012 echo "${ECHO_T}$ac_cv_c_altivec" >&6
8013 if test x"$ac_cv_c_altivec" != x"no"; then
8014
8015 cat >>confdefs.h <<\EOF
8016 #define CAN_COMPILE_C_ALTIVEC 1
8017 EOF
8018
8019   idctaltivec_CFLAGS="$idctaltivec_CFLAGS $ac_cv_c_altivec"
8020   motionaltivec_CFLAGS="$motionaltivec_CFLAGS $ac_cv_c_altivec"
8021   memcpyaltivec_CFLAGS="$memcpyaltivec_CFLAGS $ac_cv_c_altivec"
8022   vlc_CFLAGS="$vlc_CFLAGS $ac_cv_c_altivec"
8023   ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
8024 fi
8025
8026 echo "$as_me:8026: checking if linker needs -framework vecLib" >&5
8027 echo $ECHO_N "checking if linker needs -framework vecLib... $ECHO_C" >&6
8028 if test "${ac_cv_ld_altivec+set}" = set; then
8029   echo $ECHO_N "(cached) $ECHO_C" >&6
8030 else
8031   save_LDFLAGS=$LDFLAGS
8032      LDFLAGS="$LDFLAGS -framework vecLib"
8033      cat >conftest.$ac_ext <<_ACEOF
8034 #line 8034 "configure"
8035 #include "confdefs.h"
8036
8037 int
8038 main ()
8039 {
8040
8041   ;
8042   return 0;
8043 }
8044 _ACEOF
8045 rm -f conftest.$ac_objext conftest$ac_exeext
8046 if { (eval echo "$as_me:8046: \"$ac_link\"") >&5
8047   (eval $ac_link) 2>&5
8048   ac_status=$?
8049   echo "$as_me:8049: \$? = $ac_status" >&5
8050   (exit $ac_status); } &&
8051          { ac_try='test -s conftest$ac_exeext'
8052   { (eval echo "$as_me:8052: \"$ac_try\"") >&5
8053   (eval $ac_try) 2>&5
8054   ac_status=$?
8055   echo "$as_me:8055: \$? = $ac_status" >&5
8056   (exit $ac_status); }; }; then
8057   ac_cv_ld_altivec=yes
8058 else
8059   echo "$as_me: failed program was:" >&5
8060 cat conftest.$ac_ext >&5
8061 ac_cv_ld_altivec=no
8062 fi
8063 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8064      LDFLAGS=$save_LDFLAGS
8065
8066 fi
8067 echo "$as_me:8067: result: $ac_cv_ld_altivec" >&5
8068 echo "${ECHO_T}$ac_cv_ld_altivec" >&6
8069 if test x"$ac_cv_ld_altivec" != x"no"; then
8070   idctaltivec_LDFLAGS="${idctaltivec_LDFLAGS} -framework vecLib"
8071   motionaltivec_LDFLAGS="${motionaltivec_LDFLAGS} -framework vecLib"
8072   memcpyaltivec_LDFLAGS="${memcpyaltivec_LDFLAGS} -framework vecLib"
8073   vlc_LDFLAGS="${vlc_LDFLAGS} -framework vecLib"
8074 fi
8075 fi # end if mingw32
8076
8077 # Check whether --with- or --without- was given.
8078 if test "${with_+set}" = set; then
8079   withval="$with_"
8080
8081 fi;
8082
8083 # Check whether --with- or --without- was given.
8084 if test "${with_+set}" = set; then
8085   withval="$with_"
8086
8087 fi;
8088
8089 # Check whether --with-tuning or --without-tuning was given.
8090 if test "${with_tuning+set}" = set; then
8091   withval="$with_tuning"
8092
8093 fi;
8094 if test "x$with_tuning" != "x"; then
8095     TUNING="$with_tuning"
8096 else
8097     if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xi486 -o x${target_cpu} = xi386; then TUNING="pentiumpro"
8098     else
8099         if test x${target_cpu} = xpowerpc; then TUNING="750"; fi
8100     fi
8101 fi
8102
8103 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xx86 -o x${target_cpu} = xi386
8104 then
8105     ARCH="${ARCH} mmx"
8106     BUILTINS="${BUILTINS} ${ACCEL_MODULES}"
8107 fi
8108
8109 # Check whether --enable-optimizations or --disable-optimizations was given.
8110 if test "${enable_optimizations+set}" = set; then
8111   enableval="$enable_optimizations"
8112    if test x$enable_optimizations = xno; then OPTIMS=0; fi
8113 else
8114    OPTIMS=1
8115 fi;
8116
8117 # Check whether --enable-altivec or --disable-altivec was given.
8118 if test "${enable_altivec+set}" = set; then
8119   enableval="$enable_altivec"
8120    if test x$enable_altivec = xyes; then ARCH="${ARCH} altivec";
8121     BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
8122 else
8123    if test x${target_cpu} = xpowerpc; then ARCH="${ARCH} altivec";
8124     BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
8125 fi;
8126
8127 DEBUG=0
8128 # Check whether --enable-debug or --disable-debug was given.
8129 if test "${enable_debug+set}" = set; then
8130   enableval="$enable_debug"
8131    if test x$enable_debug = xyes; then DEBUG=1; fi
8132 fi;
8133
8134 RELEASE=0
8135 # Check whether --enable-release or --disable-release was given.
8136 if test "${enable_release+set}" = set; then
8137   enableval="$enable_release"
8138    if test x$enable_release = xyes; then RELEASE=1; fi
8139 else
8140    VERSION="${VERSION}_`date +%Y-%m-%d`"
8141 fi;
8142
8143 # Check whether --with- or --without- was given.
8144 if test "${with_+set}" = set; then
8145   withval="$with_"
8146
8147 fi;
8148
8149 # Check whether --enable-dvd or --disable-dvd was given.
8150 if test "${enable_dvd+set}" = set; then
8151   enableval="$enable_dvd"
8152
8153 fi;
8154 if test "x$enable_dvd" != "xno"
8155 then
8156
8157 # Check whether --with-dvdcss or --without-dvdcss was given.
8158 if test "${with_dvdcss+set}" = set; then
8159   withval="$with_dvdcss"
8160
8161 fi;
8162
8163 # Check whether --with-dvdcss-tree or --without-dvdcss-tree was given.
8164 if test "${with_dvdcss_tree+set}" = set; then
8165   withval="$with_dvdcss_tree"
8166
8167 fi;
8168   case "x$with_dvdcss" in
8169   x|xyes)
8170     if test "x$with_dvdcss_tree" = x
8171     then
8172
8173 for ac_header in dvdcss/dvdcss.h
8174 do
8175 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8176 echo "$as_me:8176: checking for $ac_header" >&5
8177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8179   echo $ECHO_N "(cached) $ECHO_C" >&6
8180 else
8181   cat >conftest.$ac_ext <<_ACEOF
8182 #line 8182 "configure"
8183 #include "confdefs.h"
8184 #include <$ac_header>
8185 _ACEOF
8186 if { (eval echo "$as_me:8186: \"$ac_cpp conftest.$ac_ext\"") >&5
8187   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8188   ac_status=$?
8189   egrep -v '^ *\+' conftest.er1 >conftest.err
8190   rm -f conftest.er1
8191   cat conftest.err >&5
8192   echo "$as_me:8192: \$? = $ac_status" >&5
8193   (exit $ac_status); } >/dev/null; then
8194   if test -s conftest.err; then
8195     ac_cpp_err=$ac_c_preproc_warn_flag
8196   else
8197     ac_cpp_err=
8198   fi
8199 else
8200   ac_cpp_err=yes
8201 fi
8202 if test -z "$ac_cpp_err"; then
8203   eval "$as_ac_Header=yes"
8204 else
8205   echo "$as_me: failed program was:" >&5
8206   cat conftest.$ac_ext >&5
8207   eval "$as_ac_Header=no"
8208 fi
8209 rm -f conftest.err conftest.$ac_ext
8210 fi
8211 echo "$as_me:8211: result: `eval echo '${'$as_ac_Header'}'`" >&5
8212 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8213 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8214   cat >>confdefs.h <<EOF
8215 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8216 EOF
8217   PLUGINS="${PLUGINS} dvd"
8218           dvd_LDFLAGS="${dvd_LDFLAGS} -ldvdcss"
8219 else
8220    { echo "$as_me:8220: WARNING: libdvdcss is no longer provided with vlc; please get libdvdcss from http://www.videolan.org/libdvdcss/ and build it. Then either use --with-dvdcss=<path/where/libdvdcss/was/installed> for dynamic linking (recommended under Unix) or --with-dvdcss-tree=<path/where/libdvdcss/was/built> for static linking (recommended under BeOS, Windows, MacOS X). Alternatively you can use --disable-dvd to disable the DVD plugin." >&5
8221 echo "$as_me: WARNING: libdvdcss is no longer provided with vlc; please get libdvdcss from http://www.videolan.org/libdvdcss/ and build it. Then either use --with-dvdcss=<path/where/libdvdcss/was/installed> for dynamic linking (recommended under Unix) or --with-dvdcss-tree=<path/where/libdvdcss/was/built> for static linking (recommended under BeOS, Windows, MacOS X). Alternatively you can use --disable-dvd to disable the DVD plugin." >&2;}
8222           { { echo "$as_me:8222: error: cannot find libdvdcss headers" >&5
8223 echo "$as_me: error: cannot find libdvdcss headers" >&2;}
8224    { (exit 1); exit 1; }; }
8225 fi
8226 done
8227
8228     else
8229       echo "$as_me:8229: checking for libdvdcss.a in ${with_dvdcss_tree}" >&5
8230 echo $ECHO_N "checking for libdvdcss.a in ${with_dvdcss_tree}... $ECHO_C" >&6
8231       real_dvdcss_tree="`cd ${with_dvdcss_tree} 2>/dev/null && pwd`"
8232       if test "x$real_dvdcss_tree" = x
8233       then
8234                 echo "$as_me:8234: result: no" >&5
8235 echo "${ECHO_T}no" >&6
8236         { { echo "$as_me:8236: error: cannot cd to ${with_dvdcss_tree}" >&5
8237 echo "$as_me: error: cannot cd to ${with_dvdcss_tree}" >&2;}
8238    { (exit 1); exit 1; }; }
8239       fi
8240       if test -f "${real_dvdcss_tree}/src/.libs/libdvdcss.a"
8241       then
8242                 echo "$as_me:8242: result: ${real_dvdcss_tree}/src/.libs/libdvdcss.a" >&5
8243 echo "${ECHO_T}${real_dvdcss_tree}/src/.libs/libdvdcss.a" >&6
8244         BUILTINS="${BUILTINS} dvd"
8245         dvd_LDFLAGS="${dvd_LDFLAGS} ${real_dvdcss_tree}/src/.libs/libdvdcss.a"
8246         dvd_CFLAGS="${dvd_CFLAGS} -I${real_dvdcss_tree}/src"
8247       else
8248                 echo "$as_me:8248: result: no" >&5
8249 echo "${ECHO_T}no" >&6
8250         { { echo "$as_me:8250: error: cannot find ${real_dvdcss_tree}/src/.libs/libdvdcss.a, make sure you compiled libdvdcss in ${with_dvdcss_tree}" >&5
8251 echo "$as_me: error: cannot find ${real_dvdcss_tree}/src/.libs/libdvdcss.a, make sure you compiled libdvdcss in ${with_dvdcss_tree}" >&2;}
8252    { (exit 1); exit 1; }; }
8253       fi
8254     fi
8255   ;;
8256   xno)
8257         PLUGINS="${PLUGINS} dvd"
8258     dvd_CFLAGS="${dvd_CFLAGS} -DGOD_DAMN_DMCA"
8259     dvd_LDFLAGS="${dvd_LDFLAGS} -ldl"
8260   ;;
8261   *)
8262     echo "$as_me:8262: checking for dvdcss headers in ${with_dvdcss}" >&5
8263 echo $ECHO_N "checking for dvdcss headers in ${with_dvdcss}... $ECHO_C" >&6
8264     if test -f ${with_dvdcss}/include/dvdcss/dvdcss.h
8265     then
8266             echo "$as_me:8266: result: yes" >&5
8267 echo "${ECHO_T}yes" >&6
8268       PLUGINS="${PLUGINS} dvd"
8269       dvd_LDFLAGS="${dvd_LDFLAGS} -L${with_dvdcss}/lib -ldvdcss"
8270       dvd_CFLAGS="${dvd_CFLAGS} -I${with_dvdcss}/include"
8271     else
8272             echo "$as_me:8272: result: no" >&5
8273 echo "${ECHO_T}no" >&6
8274       { { echo "$as_me:8274: error: cannot find ${with_dvdcss}/include/dvdcss/dvdcss.h" >&5
8275 echo "$as_me: error: cannot find ${with_dvdcss}/include/dvdcss/dvdcss.h" >&2;}
8276    { (exit 1); exit 1; }; }
8277     fi
8278   ;;
8279   esac
8280 fi
8281
8282 # Check whether --enable-dvdread or --disable-dvdread was given.
8283 if test "${enable_dvdread+set}" = set; then
8284   enableval="$enable_dvdread"
8285
8286 fi;
8287 if test "x$enable_dvdread" != "xno"
8288 then
8289
8290 # Check whether --with-dvdread or --without-dvdread was given.
8291 if test "${with_dvdread+set}" = set; then
8292   withval="$with_dvdread"
8293
8294 fi;
8295   if test "x$with_dvdread" = x
8296   then
8297     test_LDFLAGS=""
8298     test_CFLAGS=""
8299   else
8300     test_LDFLAGS="-L${with_dvdread}/lib"
8301     test_CFLAGS="-I${with_dvdread}/include"
8302   fi
8303   CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
8304
8305 for ac_header in dvdread/dvd_reader.h
8306 do
8307 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8308 echo "$as_me:8308: checking for $ac_header" >&5
8309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8311   echo $ECHO_N "(cached) $ECHO_C" >&6
8312 else
8313   cat >conftest.$ac_ext <<_ACEOF
8314 #line 8314 "configure"
8315 #include "confdefs.h"
8316 #include <$ac_header>
8317 _ACEOF
8318 if { (eval echo "$as_me:8318: \"$ac_cpp conftest.$ac_ext\"") >&5
8319   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8320   ac_status=$?
8321   egrep -v '^ *\+' conftest.er1 >conftest.err
8322   rm -f conftest.er1
8323   cat conftest.err >&5
8324   echo "$as_me:8324: \$? = $ac_status" >&5
8325   (exit $ac_status); } >/dev/null; then
8326   if test -s conftest.err; then
8327     ac_cpp_err=$ac_c_preproc_warn_flag
8328   else
8329     ac_cpp_err=
8330   fi
8331 else
8332   ac_cpp_err=yes
8333 fi
8334 if test -z "$ac_cpp_err"; then
8335   eval "$as_ac_Header=yes"
8336 else
8337   echo "$as_me: failed program was:" >&5
8338   cat conftest.$ac_ext >&5
8339   eval "$as_ac_Header=no"
8340 fi
8341 rm -f conftest.err conftest.$ac_ext
8342 fi
8343 echo "$as_me:8343: result: `eval echo '${'$as_ac_Header'}'`" >&5
8344 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8345 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8346   cat >>confdefs.h <<EOF
8347 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8348 EOF
8349
8350      cat >conftest.$ac_ext <<_ACEOF
8351 #line 8351 "configure"
8352 #include "confdefs.h"
8353 #include <dvdread/dvd_reader.h>
8354 int
8355 main ()
8356 {
8357 void foo() { int i=DVD_VIDEO_LB_LEN; }
8358   ;
8359   return 0;
8360 }
8361 _ACEOF
8362 rm -f conftest.$ac_objext
8363 if { (eval echo "$as_me:8363: \"$ac_compile\"") >&5
8364   (eval $ac_compile) 2>&5
8365   ac_status=$?
8366   echo "$as_me:8366: \$? = $ac_status" >&5
8367   (exit $ac_status); } &&
8368          { ac_try='test -s conftest.$ac_objext'
8369   { (eval echo "$as_me:8369: \"$ac_try\"") >&5
8370   (eval $ac_try) 2>&5
8371   ac_status=$?
8372   echo "$as_me:8372: \$? = $ac_status" >&5
8373   (exit $ac_status); }; }; then
8374
8375           PLUGINS="${PLUGINS} dvdread"
8376           dvdread_LDFLAGS="${dvdread_LDFLAGS} ${test_LDFLAGS} -ldvdread"
8377           dvdread_CFLAGS="${dvdread_CFLAGS} ${test_CFLAGS}"
8378
8379 else
8380   echo "$as_me: failed program was:" >&5
8381 cat conftest.$ac_ext >&5
8382
8383           if test "x$enable_dvdread" != x
8384           then
8385             { { echo "$as_me:8385: error: Cannot find DVD_VIDEO_LB_LEN in dvdread/dvd_reader.h, please install libdvdread version 0.9.2 or later" >&5
8386 echo "$as_me: error: Cannot find DVD_VIDEO_LB_LEN in dvdread/dvd_reader.h, please install libdvdread version 0.9.2 or later" >&2;}
8387    { (exit 1); exit 1; }; }
8388           fi
8389
8390 fi
8391 rm -f conftest.$ac_objext conftest.$ac_ext
8392
8393 else
8394
8395     if test "x$enable_dvdread" != x
8396     then
8397       if test "x$with_dvdread" != x
8398       then
8399         { { echo "$as_me:8399: error: Cannot find dvdread/dvd_reader.h in ${with_dvdread}/include" >&5
8400 echo "$as_me: error: Cannot find dvdread/dvd_reader.h in ${with_dvdread}/include" >&2;}
8401    { (exit 1); exit 1; }; }
8402       else
8403         { { echo "$as_me:8403: error: Cannot find dvdread/dvd_reader.h" >&5
8404 echo "$as_me: error: Cannot find dvdread/dvd_reader.h" >&2;}
8405    { (exit 1); exit 1; }; }
8406       fi
8407     fi
8408
8409 fi
8410 done
8411
8412   CPPFLAGS="$save_CPPFLAGS"
8413 fi
8414
8415 # Check whether --enable-dvbpsi or --disable-dvbpsi was given.
8416 if test "${enable_dvbpsi+set}" = set; then
8417   enableval="$enable_dvbpsi"
8418
8419 fi;
8420 if test "x$enable_dvbpsi" != "xno"
8421 then
8422
8423 # Check whether --with-dvbpsi or --without-dvbpsi was given.
8424 if test "${with_dvbpsi+set}" = set; then
8425   withval="$with_dvbpsi"
8426
8427 fi;
8428
8429 # Check whether --with-dvbpsi or --without-dvbpsi was given.
8430 if test "${with_dvbpsi+set}" = set; then
8431   withval="$with_dvbpsi"
8432
8433 fi;
8434   case "x$with_dvbpsi" in
8435   x|xyes)
8436     if test "x$with_dvbpsi_tree" = x
8437     then
8438
8439 for ac_header in dvbpsi/dr.h
8440 do
8441 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8442 echo "$as_me:8442: checking for $ac_header" >&5
8443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8444 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8445   echo $ECHO_N "(cached) $ECHO_C" >&6
8446 else
8447   cat >conftest.$ac_ext <<_ACEOF
8448 #line 8448 "configure"
8449 #include "confdefs.h"
8450   { { echo "$as_me:8450: error: cannot find libdvbpsi headers" >&5
8451 echo "$as_me: error: cannot find libdvbpsi headers" >&2;}
8452    { (exit 1); exit 1; }; }
8453 #include <$ac_header>
8454 _ACEOF
8455 rm -f conftest.$ac_objext
8456 if { (eval echo "$as_me:8456: \"$ac_compile\"") >&5
8457   (eval $ac_compile) 2>&5
8458   ac_status=$?
8459   echo "$as_me:8459: \$? = $ac_status" >&5
8460   (exit $ac_status); } &&
8461          { ac_try='test -s conftest.$ac_objext'
8462   { (eval echo "$as_me:8462: \"$ac_try\"") >&5
8463   (eval $ac_try) 2>&5
8464   ac_status=$?
8465   echo "$as_me:8465: \$? = $ac_status" >&5
8466   (exit $ac_status); }; }; then
8467   eval "$as_ac_Header=yes"
8468 else
8469   echo "$as_me: failed program was:" >&5
8470 cat conftest.$ac_ext >&5
8471 eval "$as_ac_Header=no"
8472 fi
8473 rm -f conftest.$ac_objext conftest.$ac_ext
8474 fi
8475 echo "$as_me:8475: result: `eval echo '${'$as_ac_Header'}'`" >&5
8476 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8477 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8478   cat >>confdefs.h <<EOF
8479 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8480 EOF
8481   PLUGINS="${PLUGINS} mpeg_ts_dvbpsi"
8482           mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} -ldvbpsi"
8483 fi
8484 done
8485
8486     else
8487       echo "$as_me:8487: checking for libdvbpsi.a in ${with_dvbpsi_tree}" >&5
8488 echo $ECHO_N "checking for libdvbpsi.a in ${with_dvbpsi_tree}... $ECHO_C" >&6
8489       real_dvbpsi_tree="`cd ${with_dvbpsi_tree} 2>/dev/null && pwd`"
8490       if test "x$real_dvbpsi_tree" = x
8491       then
8492                 echo "$as_me:8492: result: no" >&5
8493 echo "${ECHO_T}no" >&6
8494         { { echo "$as_me:8494: error: cannot cd to ${with_dvbpsi_tree}" >&5
8495 echo "$as_me: error: cannot cd to ${with_dvbpsi_tree}" >&2;}
8496    { (exit 1); exit 1; }; }
8497       fi
8498       if test -f "${real_dvbpsi_tree}/src/.libs/libdvbpsi.a"
8499       then
8500                 echo "$as_me:8500: result: ${real_dvbpsi_tree}/src/.libs/libdvbpsi.a" >&5
8501 echo "${ECHO_T}${real_dvbpsi_tree}/src/.libs/libdvbpsi.a" >&6
8502         BUILTINS="${BUILTINS} mpeg_ts_dvbpsi"
8503         mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} ${real_dvbpsi_tree}/src/.libs/libdvbpsi.a"
8504         mpeg_ts_dvbpsi_CFLAGS="${mpeg_ts_dvbpsi_CFLAGS} -I${real_dvbpsi_tree}/src"
8505       else
8506                 echo "$as_me:8506: result: no" >&5
8507 echo "${ECHO_T}no" >&6
8508         { { echo "$as_me:8508: error: cannot find ${real_dvbpsi_tree}/src/.libs/libdvbpsi.a, make sure you compiled libdvbpsi in ${with_dvbpsi_tree}" >&5
8509 echo "$as_me: error: cannot find ${real_dvbpsi_tree}/src/.libs/libdvbpsi.a, make sure you compiled libdvbpsi in ${with_dvbpsi_tree}" >&2;}
8510    { (exit 1); exit 1; }; }
8511       fi
8512     fi
8513   ;;
8514   xno)
8515       ;;
8516   *)
8517     echo "$as_me:8517: checking for dvbpsi headers in ${with_dvbpsi}" >&5
8518 echo $ECHO_N "checking for dvbpsi headers in ${with_dvbpsi}... $ECHO_C" >&6
8519     if test "x$with_dvbpsi" = x
8520     then
8521       test_LDFLAGS=""
8522       test_CFLAGS=""
8523     else
8524       test_LDFLAGS="-L${with_dvbpsi}/lib"
8525       test_CFLAGS="-I${with_dvbpsi}/include"
8526     fi
8527     CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
8528     echo "$as_me:8528: checking for dvbpsi/dr.h" >&5
8529 echo $ECHO_N "checking for dvbpsi/dr.h... $ECHO_C" >&6
8530 if test "${ac_cv_header_dvbpsi_dr_h+set}" = set; then
8531   echo $ECHO_N "(cached) $ECHO_C" >&6
8532 else
8533   cat >conftest.$ac_ext <<_ACEOF
8534 #line 8534 "configure"
8535 #include "confdefs.h"
8536 #include <dvbpsi/dr.h>
8537 _ACEOF
8538 if { (eval echo "$as_me:8538: \"$ac_cpp conftest.$ac_ext\"") >&5
8539   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8540   ac_status=$?
8541   egrep -v '^ *\+' conftest.er1 >conftest.err
8542   rm -f conftest.er1
8543   cat conftest.err >&5
8544   echo "$as_me:8544: \$? = $ac_status" >&5
8545   (exit $ac_status); } >/dev/null; then
8546   if test -s conftest.err; then
8547     ac_cpp_err=$ac_c_preproc_warn_flag
8548   else
8549     ac_cpp_err=
8550   fi
8551 else
8552   ac_cpp_err=yes
8553 fi
8554 if test -z "$ac_cpp_err"; then
8555   ac_cv_header_dvbpsi_dr_h=yes
8556 else
8557   echo "$as_me: failed program was:" >&5
8558   cat conftest.$ac_ext >&5
8559   ac_cv_header_dvbpsi_dr_h=no
8560 fi
8561 rm -f conftest.err conftest.$ac_ext
8562 fi
8563 echo "$as_me:8563: result: $ac_cv_header_dvbpsi_dr_h" >&5
8564 echo "${ECHO_T}$ac_cv_header_dvbpsi_dr_h" >&6
8565 if test $ac_cv_header_dvbpsi_dr_h = yes; then
8566
8567       PLUGINS="${PLUGINS} mpeg_ts_dvbpsi"
8568       mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} ${test_LDFLAGS} -ldvbpsi"
8569       mpeg_ts_dvbpsi_CFLAGS="${mpeg_ts_dvbpsi_CFLAGS} ${test_CFLAGS}"
8570
8571 else
8572
8573       if test "x$enable_dvbpsi" != x
8574       then
8575         { { echo "$as_me:8575: error: Could not find libdvbpsi on your system: you may get it from www.videolan.org, you'll need at least version 0.1.1" >&5
8576 echo "$as_me: error: Could not find libdvbpsi on your system: you may get it from www.videolan.org, you'll need at least version 0.1.1" >&2;}
8577    { (exit 1); exit 1; }; }
8578       fi
8579
8580 fi
8581
8582     CPPFLAGS="$save_CPPFLAGS"
8583   ;;
8584   esac
8585 fi
8586
8587 # Check whether --enable-vcd or --disable-vcd was given.
8588 if test "${enable_vcd+set}" = set; then
8589   enableval="$enable_vcd"
8590
8591 fi;
8592
8593 if test x$enable_vcd != xno
8594 then
8595   cat >conftest.$ac_ext <<_ACEOF
8596 #line 8596 "configure"
8597 #include "confdefs.h"
8598 #include <linux/cdrom.h>
8599
8600 _ACEOF
8601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8602   egrep "cdrom_msf0" >/dev/null 2>&1; then
8603
8604     PLUGINS="${PLUGINS} vcd"
8605
8606 fi
8607 rm -f conftest*
8608
8609   cat >conftest.$ac_ext <<_ACEOF
8610 #line 8610 "configure"
8611 #include "confdefs.h"
8612 #include <sys/cdio.h>
8613
8614 _ACEOF
8615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8616   egrep "ioc_toc_header " >/dev/null 2>&1; then
8617
8618     PLUGINS="${PLUGINS} vcd"
8619
8620 cat >>confdefs.h <<\EOF
8621 #define HAVE_IOC_TOC_HEADER_IN_SYS_CDIO_H 1
8622 EOF
8623
8624 fi
8625 rm -f conftest*
8626
8627   if test "x${SYS}" = "xbsdi"
8628   then
8629     PLUGINS="${PLUGINS} vcd"
8630   fi
8631
8632   if test "x${SYS}" = "xdarwin"
8633   then
8634     # No need to add vcd to PLUGINS, Darwin is already based on FreeBSD
8635     vcd_LDFLAGS="${vcd_LDFLAGS} -framework IOKit -framework CoreFoundation"
8636   fi
8637 fi
8638
8639 # Check whether --enable-satellite or --disable-satellite was given.
8640 if test "${enable_satellite+set}" = set; then
8641   enableval="$enable_satellite"
8642    if test x$enable_satellite = xyes
8643     then
8644       PLUGINS="${PLUGINS} satellite"
8645     fi
8646 fi;
8647
8648 if test x$SYS != xnto && test "x$SYS" != "xmingw32"
8649 then
8650   echo "$as_me:8650: checking for inet_pton" >&5
8651 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
8652 if test "${ac_cv_func_inet_pton+set}" = set; then
8653   echo $ECHO_N "(cached) $ECHO_C" >&6
8654 else
8655   cat >conftest.$ac_ext <<_ACEOF
8656 #line 8656 "configure"
8657 #include "confdefs.h"
8658 /* System header to define __stub macros and hopefully few prototypes,
8659     which can conflict with char inet_pton (); below.  */
8660 #include <assert.h>
8661 /* Override any gcc2 internal prototype to avoid an error.  */
8662 #ifdef __cplusplus
8663 extern "C"
8664 #endif
8665 /* We use char because int might match the return type of a gcc2
8666    builtin and then its argument prototype would still apply.  */
8667 char inet_pton ();
8668 char (*f) ();
8669
8670 int
8671 main ()
8672 {
8673 /* The GNU C library defines this for functions which it implements
8674     to always fail with ENOSYS.  Some functions are actually named
8675     something starting with __ and the normal name is an alias.  */
8676 #if defined (__stub_inet_pton) || defined (__stub___inet_pton)
8677 choke me
8678 #else
8679 f = inet_pton;
8680 #endif
8681
8682   ;
8683   return 0;
8684 }
8685 _ACEOF
8686 rm -f conftest.$ac_objext conftest$ac_exeext
8687 if { (eval echo "$as_me:8687: \"$ac_link\"") >&5
8688   (eval $ac_link) 2>&5
8689   ac_status=$?
8690   echo "$as_me:8690: \$? = $ac_status" >&5
8691   (exit $ac_status); } &&
8692          { ac_try='test -s conftest$ac_exeext'
8693   { (eval echo "$as_me:8693: \"$ac_try\"") >&5
8694   (eval $ac_try) 2>&5
8695   ac_status=$?
8696   echo "$as_me:8696: \$? = $ac_status" >&5
8697   (exit $ac_status); }; }; then
8698   ac_cv_func_inet_pton=yes
8699 else
8700   echo "$as_me: failed program was:" >&5
8701 cat conftest.$ac_ext >&5
8702 ac_cv_func_inet_pton=no
8703 fi
8704 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8705 fi
8706 echo "$as_me:8706: result: $ac_cv_func_inet_pton" >&5
8707 echo "${ECHO_T}$ac_cv_func_inet_pton" >&6
8708 if test $ac_cv_func_inet_pton = yes; then
8709   PLUGINS="${PLUGINS} ipv6"
8710 fi
8711
8712 fi
8713 if test "x$SYS" = "xmingw32"
8714 then
8715   echo "$as_me:8715: checking for getaddrinfo in ws2tcpip.h" >&5
8716 echo $ECHO_N "checking for getaddrinfo in ws2tcpip.h... $ECHO_C" >&6
8717   cat >conftest.$ac_ext <<_ACEOF
8718 #line 8718 "configure"
8719 #include "confdefs.h"
8720 #include <ws2tcpip.h>
8721
8722 _ACEOF
8723 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8724   egrep "addrinfo" >/dev/null 2>&1; then
8725   echo "$as_me:8725: result: yes" >&5
8726 echo "${ECHO_T}yes" >&6
8727     PLUGINS="${PLUGINS} ipv6"
8728 else
8729   echo "$as_me:8729: result: no" >&5
8730 echo "${ECHO_T}no" >&6
8731 fi
8732 rm -f conftest*
8733
8734 fi
8735
8736 # Check whether --enable-avi or --disable-avi was given.
8737 if test "${enable_avi+set}" = set; then
8738   enableval="$enable_avi"
8739
8740 fi;
8741 if test x$enable_avi != xno
8742 then
8743   PLUGINS="${PLUGINS} avi"
8744 fi
8745
8746 # Check whether --with- or --without- was given.
8747 if test "${with_+set}" = set; then
8748   withval="$with_"
8749
8750 fi;
8751
8752 # Check whether --enable-mad or --disable-mad was given.
8753 if test "${enable_mad+set}" = set; then
8754   enableval="$enable_mad"
8755
8756 fi;
8757 if test x$enable_mad = xyes
8758 then
8759
8760 # Check whether --with-mad or --without-mad was given.
8761 if test "${with_mad+set}" = set; then
8762   withval="$with_mad"
8763
8764 fi;
8765   if test "x$with_mad" != "xno" -a "x$with_mad" != "x"
8766   then
8767     mad_CFLAGS="${mad_CFLAGS} -I$with_mad/include"
8768     mad_LDFLAGS="${mad_LDFLAGS} -L$with_mad/lib"
8769   fi
8770
8771 # Check whether --with-mad-tree or --without-mad-tree was given.
8772 if test "${with_mad_tree+set}" = set; then
8773   withval="$with_mad_tree"
8774
8775 fi;
8776   if test "x$with_mad_tree" != "xno" -a "x$with_mad_tree" != "x"
8777   then
8778     real_mad_tree="`cd ${with_mad_tree} 2>/dev/null && pwd`"
8779     if test "x$real_mad_tree" = x
8780     then
8781             echo "$as_me:8781: result: no" >&5
8782 echo "${ECHO_T}no" >&6
8783       { { echo "$as_me:8783: error: ${with_mad_tree} directory doesn't exist" >&5
8784 echo "$as_me: error: ${with_mad_tree} directory doesn't exist" >&2;}
8785    { (exit 1); exit 1; }; }
8786     fi
8787         echo "$as_me:8787: checking for mad.h in ${real_mad_tree}/libmad" >&5
8788 echo $ECHO_N "checking for mad.h in ${real_mad_tree}/libmad... $ECHO_C" >&6
8789     if test -f ${real_mad_tree}/libmad/mad.h
8790     then
8791       echo "$as_me:8791: result: yes" >&5
8792 echo "${ECHO_T}yes" >&6
8793       mad_CFLAGS="${mad_CFLAGS} -I${real_mad_tree}/libmad"
8794       mad_LDFLAGS="${mad_LDFLAGS} -L${real_mad_tree}/libmad/.libs"
8795       save_LDFLAGS=$LDFLAGS
8796       LDFLAGS=$mad_LDFLAGS
8797       echo "$as_me:8797: checking for mad_bit_init in -lmad" >&5
8798 echo $ECHO_N "checking for mad_bit_init in -lmad... $ECHO_C" >&6
8799 if test "${ac_cv_lib_mad_mad_bit_init+set}" = set; then
8800   echo $ECHO_N "(cached) $ECHO_C" >&6
8801 else
8802   ac_check_lib_save_LIBS=$LIBS
8803 LIBS="-lmad  $LIBS"
8804 cat >conftest.$ac_ext <<_ACEOF
8805 #line 8805 "configure"
8806 #include "confdefs.h"
8807
8808 /* Override any gcc2 internal prototype to avoid an error.  */
8809 #ifdef __cplusplus
8810 extern "C"
8811 #endif
8812 /* We use char because int might match the return type of a gcc2
8813    builtin and then its argument prototype would still apply.  */
8814 char mad_bit_init ();
8815 int
8816 main ()
8817 {
8818 mad_bit_init ();
8819   ;
8820   return 0;
8821 }
8822 _ACEOF
8823 rm -f conftest.$ac_objext conftest$ac_exeext
8824 if { (eval echo "$as_me:8824: \"$ac_link\"") >&5
8825   (eval $ac_link) 2>&5
8826   ac_status=$?
8827   echo "$as_me:8827: \$? = $ac_status" >&5
8828   (exit $ac_status); } &&
8829          { ac_try='test -s conftest$ac_exeext'
8830   { (eval echo "$as_me:8830: \"$ac_try\"") >&5
8831   (eval $ac_try) 2>&5
8832   ac_status=$?
8833   echo "$as_me:8833: \$? = $ac_status" >&5
8834   (exit $ac_status); }; }; then
8835   ac_cv_lib_mad_mad_bit_init=yes
8836 else
8837   echo "$as_me: failed program was:" >&5
8838 cat conftest.$ac_ext >&5
8839 ac_cv_lib_mad_mad_bit_init=no
8840 fi
8841 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8842 LIBS=$ac_check_lib_save_LIBS
8843 fi
8844 echo "$as_me:8844: result: $ac_cv_lib_mad_mad_bit_init" >&5
8845 echo "${ECHO_T}$ac_cv_lib_mad_mad_bit_init" >&6
8846 if test $ac_cv_lib_mad_mad_bit_init = yes; then
8847
8848         BUILTINS="${BUILTINS} mad"
8849         mad_LDFLAGS="${mad_LDFLAGS} -lmad"
8850
8851 else
8852    { { echo "$as_me:8852: error: the specified tree hasn't been compiled " >&5
8853 echo "$as_me: error: the specified tree hasn't been compiled " >&2;}
8854    { (exit 1); exit 1; }; }
8855
8856 fi
8857
8858       LDFLAGS=$save_LDFLAGS
8859     else
8860       echo "$as_me:8860: result: no" >&5
8861 echo "${ECHO_T}no" >&6
8862       { { echo "$as_me:8862: error: the specified tree doesn't have mad.h" >&5
8863 echo "$as_me: error: the specified tree doesn't have mad.h" >&2;}
8864    { (exit 1); exit 1; }; }
8865     fi
8866   else
8867     save_CFLAGS=$CFLAGS
8868     save_LDFLAGS=$LDFLAGS
8869     CFLAGS="$CFLAGS $mad_CFLAGS"
8870     LDFLAGS="$LDFLAGS $mad_LDFLAGS"
8871
8872 for ac_header in mad.h
8873 do
8874 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8875 echo "$as_me:8875: checking for $ac_header" >&5
8876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8877 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8878   echo $ECHO_N "(cached) $ECHO_C" >&6
8879 else
8880   cat >conftest.$ac_ext <<_ACEOF
8881 #line 8881 "configure"
8882 #include "confdefs.h"
8883 #include <$ac_header>
8884 _ACEOF
8885 if { (eval echo "$as_me:8885: \"$ac_cpp conftest.$ac_ext\"") >&5
8886   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8887   ac_status=$?
8888   egrep -v '^ *\+' conftest.er1 >conftest.err
8889   rm -f conftest.er1
8890   cat conftest.err >&5
8891   echo "$as_me:8891: \$? = $ac_status" >&5
8892   (exit $ac_status); } >/dev/null; then
8893   if test -s conftest.err; then
8894     ac_cpp_err=$ac_c_preproc_warn_flag
8895   else
8896     ac_cpp_err=
8897   fi
8898 else
8899   ac_cpp_err=yes
8900 fi
8901 if test -z "$ac_cpp_err"; then
8902   eval "$as_ac_Header=yes"
8903 else
8904   echo "$as_me: failed program was:" >&5
8905   cat conftest.$ac_ext >&5
8906   eval "$as_ac_Header=no"
8907 fi
8908 rm -f conftest.err conftest.$ac_ext
8909 fi
8910 echo "$as_me:8910: result: `eval echo '${'$as_ac_Header'}'`" >&5
8911 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8912 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8913   cat >>confdefs.h <<EOF
8914 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8915 EOF
8916
8917 else
8918    { { echo "$as_me:8918: error: Cannot find development headers for libmad..." >&5
8919 echo "$as_me: error: Cannot find development headers for libmad..." >&2;}
8920    { (exit 1); exit 1; }; }
8921 fi
8922 done
8923
8924     echo "$as_me:8924: checking for mad_bit_init in -lmad" >&5
8925 echo $ECHO_N "checking for mad_bit_init in -lmad... $ECHO_C" >&6
8926 if test "${ac_cv_lib_mad_mad_bit_init+set}" = set; then
8927   echo $ECHO_N "(cached) $ECHO_C" >&6
8928 else
8929   ac_check_lib_save_LIBS=$LIBS
8930 LIBS="-lmad  $LIBS"
8931 cat >conftest.$ac_ext <<_ACEOF
8932 #line 8932 "configure"
8933 #include "confdefs.h"
8934
8935 /* Override any gcc2 internal prototype to avoid an error.  */
8936 #ifdef __cplusplus
8937 extern "C"
8938 #endif
8939 /* We use char because int might match the return type of a gcc2
8940    builtin and then its argument prototype would still apply.  */
8941 char mad_bit_init ();
8942 int
8943 main ()
8944 {
8945 mad_bit_init ();
8946   ;
8947   return 0;
8948 }
8949 _ACEOF
8950 rm -f conftest.$ac_objext conftest$ac_exeext
8951 if { (eval echo "$as_me:8951: \"$ac_link\"") >&5
8952   (eval $ac_link) 2>&5
8953   ac_status=$?
8954   echo "$as_me:8954: \$? = $ac_status" >&5
8955   (exit $ac_status); } &&
8956          { ac_try='test -s conftest$ac_exeext'
8957   { (eval echo "$as_me:8957: \"$ac_try\"") >&5
8958   (eval $ac_try) 2>&5
8959   ac_status=$?
8960   echo "$as_me:8960: \$? = $ac_status" >&5
8961   (exit $ac_status); }; }; then
8962   ac_cv_lib_mad_mad_bit_init=yes
8963 else
8964   echo "$as_me: failed program was:" >&5
8965 cat conftest.$ac_ext >&5
8966 ac_cv_lib_mad_mad_bit_init=no
8967 fi
8968 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8969 LIBS=$ac_check_lib_save_LIBS
8970 fi
8971 echo "$as_me:8971: result: $ac_cv_lib_mad_mad_bit_init" >&5
8972 echo "${ECHO_T}$ac_cv_lib_mad_mad_bit_init" >&6
8973 if test $ac_cv_lib_mad_mad_bit_init = yes; then
8974
8975       PLUGINS="${PLUGINS} mad"
8976       mad_LDFLAGS="${mad_LDFLAGS} -lmad"
8977 else
8978    { { echo "$as_me:8978: error: Cannot find libmad library..." >&5
8979 echo "$as_me: error: Cannot find libmad library..." >&2;}
8980    { (exit 1); exit 1; }; }
8981 fi
8982
8983     CFLAGS=$save_CFLAGS
8984     LDFLAGS=$save_LDFLAGS
8985   fi
8986 fi
8987
8988 # Check whether --enable-ffmpeg or --disable-ffmpeg was given.
8989 if test "${enable_ffmpeg+set}" = set; then
8990   enableval="$enable_ffmpeg"
8991
8992 fi;
8993 if test "x$enable_ffmpeg" = "xyes"
8994 then
8995
8996 # Check whether --with-ffmpeg or --without-ffmpeg was given.
8997 if test "${with_ffmpeg+set}" = set; then
8998   withval="$with_ffmpeg"
8999
9000 fi;
9001   if test "x$with_ffmpeg" != "xno" -a "x$with_ffmpeg" != "x"
9002   then
9003     ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I$with_ffmpeg/include/libffmpeg"
9004     ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -L$with_ffmpeg/lib"
9005   fi
9006
9007 # Check whether --with-ffmpeg-tree or --without-ffmpeg-tree was given.
9008 if test "${with_ffmpeg_tree+set}" = set; then
9009   withval="$with_ffmpeg_tree"
9010
9011 fi;
9012   if test "x$with_ffmpeg_tree" != "x"
9013   then
9014     echo "$as_me:9014: checking for libavcodec.a in ${with_ffmpeg_tree}" >&5
9015 echo $ECHO_N "checking for libavcodec.a in ${with_ffmpeg_tree}... $ECHO_C" >&6
9016     real_ffmpeg_tree="`cd ${with_ffmpeg_tree} 2>/dev/null && pwd`"
9017     if test "x$real_ffmpeg_tree" = x
9018     then
9019             echo "$as_me:9019: result: no" >&5
9020 echo "${ECHO_T}no" >&6
9021       { { echo "$as_me:9021: error: cannot cd to ${with_ffmpeg_tree}" >&5
9022 echo "$as_me: error: cannot cd to ${with_ffmpeg_tree}" >&2;}
9023    { (exit 1); exit 1; }; }
9024     fi
9025     if test -f "${real_ffmpeg_tree}/libavcodec/libavcodec.a"
9026     then
9027             echo "$as_me:9027: result: ${real_ffmpeg_tree}/libavcodec/libavcodec.a" >&5
9028 echo "${ECHO_T}${real_ffmpeg_tree}/libavcodec/libavcodec.a" >&6
9029       BUILTINS="${BUILTINS} ffmpeg"
9030       ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} ${real_ffmpeg_tree}/libavcodec/libavcodec.a"
9031       if test x$SYS != xbeos
9032       then
9033         ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lm"
9034       fi
9035       ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I${real_ffmpeg_tree}/libavcodec"
9036     else
9037             echo "$as_me:9037: result: no" >&5
9038 echo "${ECHO_T}no" >&6
9039       { { echo "$as_me:9039: error: cannot find ${real_ffmpeg_tree}/libavcodec/libavcodec.a, make sure you compiled libavcodec in ${with_ffmpeg_tree}" >&5
9040 echo "$as_me: error: cannot find ${real_ffmpeg_tree}/libavcodec/libavcodec.a, make sure you compiled libavcodec in ${with_ffmpeg_tree}" >&2;}
9041    { (exit 1); exit 1; }; }
9042     fi
9043   else
9044     save_CFLAGS=$CFLAGS
9045     save_LDFLAGS=$LDFLAGS
9046     CFLAGS="$CFLAGS $ffmpeg_CFLAGS"
9047     LDFLAGS="$LDFLAGS $ffmpeg_LDFLAGS"
9048     if test x$SYS != xbeos
9049     then
9050       ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lm"
9051     fi
9052     echo "$as_me:9052: checking for avcodec_init in -lavcodec" >&5
9053 echo $ECHO_N "checking for avcodec_init in -lavcodec... $ECHO_C" >&6
9054 if test "${ac_cv_lib_avcodec_avcodec_init+set}" = set; then
9055   echo $ECHO_N "(cached) $ECHO_C" >&6
9056 else
9057   ac_check_lib_save_LIBS=$LIBS
9058 LIBS="-lavcodec  $LIBS"
9059 cat >conftest.$ac_ext <<_ACEOF
9060 #line 9060 "configure"
9061 #include "confdefs.h"
9062
9063 /* Override any gcc2 internal prototype to avoid an error.  */
9064 #ifdef __cplusplus
9065 extern "C"
9066 #endif
9067 /* We use char because int might match the return type of a gcc2
9068    builtin and then its argument prototype would still apply.  */
9069 char avcodec_init ();
9070 int
9071 main ()
9072 {
9073 avcodec_init ();
9074   ;
9075   return 0;
9076 }
9077 _ACEOF
9078 rm -f conftest.$ac_objext conftest$ac_exeext
9079 if { (eval echo "$as_me:9079: \"$ac_link\"") >&5
9080   (eval $ac_link) 2>&5
9081   ac_status=$?
9082   echo "$as_me:9082: \$? = $ac_status" >&5
9083   (exit $ac_status); } &&
9084          { ac_try='test -s conftest$ac_exeext'
9085   { (eval echo "$as_me:9085: \"$ac_try\"") >&5
9086   (eval $ac_try) 2>&5
9087   ac_status=$?
9088   echo "$as_me:9088: \$? = $ac_status" >&5
9089   (exit $ac_status); }; }; then
9090   ac_cv_lib_avcodec_avcodec_init=yes
9091 else
9092   echo "$as_me: failed program was:" >&5
9093 cat conftest.$ac_ext >&5
9094 ac_cv_lib_avcodec_avcodec_init=no
9095 fi
9096 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9097 LIBS=$ac_check_lib_save_LIBS
9098 fi
9099 echo "$as_me:9099: result: $ac_cv_lib_avcodec_avcodec_init" >&5
9100 echo "${ECHO_T}$ac_cv_lib_avcodec_avcodec_init" >&6
9101 if test $ac_cv_lib_avcodec_avcodec_init = yes; then
9102
9103       BUILTINS="${BUILTINS} ffmpeg"
9104       ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lavcodec"
9105       if test x$SYS != xbeos
9106       then
9107         ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lm"
9108       fi
9109 else
9110    { { echo "$as_me:9110: error: Cannot find libavcodec library..." >&5
9111 echo "$as_me: error: Cannot find libavcodec library..." >&2;}
9112    { (exit 1); exit 1; }; }
9113 fi
9114
9115     CFLAGS=$save_CFLAGS
9116     LDFLAGS=$save_LDFLAGS
9117   fi
9118 fi
9119
9120 if test x$SYS = xbeos
9121 then
9122     PLUGINS="${PLUGINS} beos"
9123 fi
9124
9125 # Check whether --enable-a52 or --disable-a52 was given.
9126 if test "${enable_a52+set}" = set; then
9127   enableval="$enable_a52"
9128
9129 fi;
9130 if test "x$enable_a52" != "xno"
9131 then
9132
9133 # Check whether --with-a52-tree or --without-a52-tree was given.
9134 if test "${with_a52_tree+set}" = set; then
9135   withval="$with_a52_tree"
9136
9137 fi;
9138   if test "x$with_a52_tree" != "xno" -a "x$with_a52_tree" != "x"
9139   then
9140     real_a52_tree="`cd ${with_a52_tree} 2>/dev/null && pwd`"
9141     if test "x$real_a52_tree" = x
9142     then
9143             echo "$as_me:9143: result: no" >&5
9144 echo "${ECHO_T}no" >&6
9145       { { echo "$as_me:9145: error: ${with_a52_tree} directory doesn't exist" >&5
9146 echo "$as_me: error: ${with_a52_tree} directory doesn't exist" >&2;}
9147    { (exit 1); exit 1; }; }
9148     fi
9149         echo "$as_me:9149: checking for a52.h in ${real_a52_tree}/include" >&5
9150 echo $ECHO_N "checking for a52.h in ${real_a52_tree}/include... $ECHO_C" >&6
9151     if test -f ${real_a52_tree}/include/a52.h
9152     then
9153       echo "$as_me:9153: result: yes" >&5
9154 echo "${ECHO_T}yes" >&6
9155       a52_CFLAGS="${a52_CFLAGS} -I${real_a52_tree}"
9156       a52_LDFLAGS="${a52_LDFLAGS} -L${real_a52_tree}/liba52/.libs"
9157       save_LDFLAGS=$LDFLAGS
9158       LDFLAGS="$a52_LDFLAGS $LDFLAGS"
9159       echo "$as_me:9159: checking for a52_free in -la52" >&5
9160 echo $ECHO_N "checking for a52_free in -la52... $ECHO_C" >&6
9161 if test "${ac_cv_lib_a52_a52_free+set}" = set; then
9162   echo $ECHO_N "(cached) $ECHO_C" >&6
9163 else
9164   ac_check_lib_save_LIBS=$LIBS
9165 LIBS="-la52 -lm $LIBS"
9166 cat >conftest.$ac_ext <<_ACEOF
9167 #line 9167 "configure"
9168 #include "confdefs.h"
9169
9170 /* Override any gcc2 internal prototype to avoid an error.  */
9171 #ifdef __cplusplus
9172 extern "C"
9173 #endif
9174 /* We use char because int might match the return type of a gcc2
9175    builtin and then its argument prototype would still apply.  */
9176 char a52_free ();
9177 int
9178 main ()
9179 {
9180 a52_free ();
9181   ;
9182   return 0;
9183 }
9184 _ACEOF
9185 rm -f conftest.$ac_objext conftest$ac_exeext
9186 if { (eval echo "$as_me:9186: \"$ac_link\"") >&5
9187   (eval $ac_link) 2>&5
9188   ac_status=$?
9189   echo "$as_me:9189: \$? = $ac_status" >&5
9190   (exit $ac_status); } &&
9191          { ac_try='test -s conftest$ac_exeext'
9192   { (eval echo "$as_me:9192: \"$ac_try\"") >&5
9193   (eval $ac_try) 2>&5
9194   ac_status=$?
9195   echo "$as_me:9195: \$? = $ac_status" >&5
9196   (exit $ac_status); }; }; then
9197   ac_cv_lib_a52_a52_free=yes
9198 else
9199   echo "$as_me: failed program was:" >&5
9200 cat conftest.$ac_ext >&5
9201 ac_cv_lib_a52_a52_free=no
9202 fi
9203 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9204 LIBS=$ac_check_lib_save_LIBS
9205 fi
9206 echo "$as_me:9206: result: $ac_cv_lib_a52_a52_free" >&5
9207 echo "${ECHO_T}$ac_cv_lib_a52_a52_free" >&6
9208 if test $ac_cv_lib_a52_a52_free = yes; then
9209
9210         BUILTINS="${BUILTINS} a52"
9211         a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
9212         a52_CFLAGS="${a52_CFLAGS} -DUSE_A52DEC_TREE"
9213
9214 else
9215
9216         if test -f ${real_a52_tree}/liba52/.libs/liba52.a
9217         then
9218           { { echo "$as_me:9218: error: make sure you have at least a52dec-0.7.3" >&5
9219 echo "$as_me: error: make sure you have at least a52dec-0.7.3" >&2;}
9220    { (exit 1); exit 1; }; }
9221         else
9222           { { echo "$as_me:9222: error: the specified tree hasn't been compiled" >&5
9223 echo "$as_me: error: the specified tree hasn't been compiled" >&2;}
9224    { (exit 1); exit 1; }; }
9225         fi
9226
9227 fi
9228
9229       LDFLAGS=$save_LDFLAGS
9230     else
9231       echo "$as_me:9231: result: no" >&5
9232 echo "${ECHO_T}no" >&6
9233       { { echo "$as_me:9233: error: the specified tree doesn't have a52.h" >&5
9234 echo "$as_me: error: the specified tree doesn't have a52.h" >&2;}
9235    { (exit 1); exit 1; }; }
9236     fi
9237   else
9238 for ac_header in a52dec/a52.h
9239 do
9240 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9241 echo "$as_me:9241: checking for $ac_header" >&5
9242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9243 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9244   echo $ECHO_N "(cached) $ECHO_C" >&6
9245 else
9246   cat >conftest.$ac_ext <<_ACEOF
9247 #line 9247 "configure"
9248 #include "confdefs.h"
9249 #include <$ac_header>
9250 _ACEOF
9251 if { (eval echo "$as_me:9251: \"$ac_cpp conftest.$ac_ext\"") >&5
9252   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9253   ac_status=$?
9254   egrep -v '^ *\+' conftest.er1 >conftest.err
9255   rm -f conftest.er1
9256   cat conftest.err >&5
9257   echo "$as_me:9257: \$? = $ac_status" >&5
9258   (exit $ac_status); } >/dev/null; then
9259   if test -s conftest.err; then
9260     ac_cpp_err=$ac_c_preproc_warn_flag
9261   else
9262     ac_cpp_err=
9263   fi
9264 else
9265   ac_cpp_err=yes
9266 fi
9267 if test -z "$ac_cpp_err"; then
9268   eval "$as_ac_Header=yes"
9269 else
9270   echo "$as_me: failed program was:" >&5
9271   cat conftest.$ac_ext >&5
9272   eval "$as_ac_Header=no"
9273 fi
9274 rm -f conftest.err conftest.$ac_ext
9275 fi
9276 echo "$as_me:9276: result: `eval echo '${'$as_ac_Header'}'`" >&5
9277 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9278 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9279   cat >>confdefs.h <<EOF
9280 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9281 EOF
9282
9283       echo "$as_me:9283: checking for a52_free in -la52" >&5
9284 echo $ECHO_N "checking for a52_free in -la52... $ECHO_C" >&6
9285 if test "${ac_cv_lib_a52_a52_free+set}" = set; then
9286   echo $ECHO_N "(cached) $ECHO_C" >&6
9287 else
9288   ac_check_lib_save_LIBS=$LIBS
9289 LIBS="-la52 -lm $LIBS"
9290 cat >conftest.$ac_ext <<_ACEOF
9291 #line 9291 "configure"
9292 #include "confdefs.h"
9293
9294 /* Override any gcc2 internal prototype to avoid an error.  */
9295 #ifdef __cplusplus
9296 extern "C"
9297 #endif
9298 /* We use char because int might match the return type of a gcc2
9299    builtin and then its argument prototype would still apply.  */
9300 char a52_free ();
9301 int
9302 main ()
9303 {
9304 a52_free ();
9305   ;
9306   return 0;
9307 }
9308 _ACEOF
9309 rm -f conftest.$ac_objext conftest$ac_exeext
9310 if { (eval echo "$as_me:9310: \"$ac_link\"") >&5
9311   (eval $ac_link) 2>&5
9312   ac_status=$?
9313   echo "$as_me:9313: \$? = $ac_status" >&5
9314   (exit $ac_status); } &&
9315          { ac_try='test -s conftest$ac_exeext'
9316   { (eval echo "$as_me:9316: \"$ac_try\"") >&5
9317   (eval $ac_try) 2>&5
9318   ac_status=$?
9319   echo "$as_me:9319: \$? = $ac_status" >&5
9320   (exit $ac_status); }; }; then
9321   ac_cv_lib_a52_a52_free=yes
9322 else
9323   echo "$as_me: failed program was:" >&5
9324 cat conftest.$ac_ext >&5
9325 ac_cv_lib_a52_a52_free=no
9326 fi
9327 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9328 LIBS=$ac_check_lib_save_LIBS
9329 fi
9330 echo "$as_me:9330: result: $ac_cv_lib_a52_a52_free" >&5
9331 echo "${ECHO_T}$ac_cv_lib_a52_a52_free" >&6
9332 if test $ac_cv_lib_a52_a52_free = yes; then
9333
9334         BUILTINS="${BUILTINS} a52"
9335         a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
9336         a52_CFLAGS="${a52_CFLAGS}"
9337
9338 fi
9339
9340 fi
9341 done
9342
9343   fi
9344 fi
9345
9346 # Check whether --enable-vorbis or --disable-vorbis was given.
9347 if test "${enable_vorbis+set}" = set; then
9348   enableval="$enable_vorbis"
9349
9350 fi;
9351 if test "x$enable_vorbis" != "xno"
9352 then
9353
9354 for ac_header in ogg/ogg.h
9355 do
9356 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9357 echo "$as_me:9357: checking for $ac_header" >&5
9358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9359 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9360   echo $ECHO_N "(cached) $ECHO_C" >&6
9361 else
9362   cat >conftest.$ac_ext <<_ACEOF
9363 #line 9363 "configure"
9364 #include "confdefs.h"
9365 #include <$ac_header>
9366 _ACEOF
9367 if { (eval echo "$as_me:9367: \"$ac_cpp conftest.$ac_ext\"") >&5
9368   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9369   ac_status=$?
9370   egrep -v '^ *\+' conftest.er1 >conftest.err
9371   rm -f conftest.er1
9372   cat conftest.err >&5
9373   echo "$as_me:9373: \$? = $ac_status" >&5
9374   (exit $ac_status); } >/dev/null; then
9375   if test -s conftest.err; then
9376     ac_cpp_err=$ac_c_preproc_warn_flag
9377   else
9378     ac_cpp_err=
9379   fi
9380 else
9381   ac_cpp_err=yes
9382 fi
9383 if test -z "$ac_cpp_err"; then
9384   eval "$as_ac_Header=yes"
9385 else
9386   echo "$as_me: failed program was:" >&5
9387   cat conftest.$ac_ext >&5
9388   eval "$as_ac_Header=no"
9389 fi
9390 rm -f conftest.err conftest.$ac_ext
9391 fi
9392 echo "$as_me:9392: result: `eval echo '${'$as_ac_Header'}'`" >&5
9393 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9394 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9395   cat >>confdefs.h <<EOF
9396 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9397 EOF
9398
9399         #PLUGINS="${PLUGINS} vorbis"
9400     vorbis_LDFLAGS="${vorbis_LDFLAGS} -lvorbis"
9401
9402 fi
9403 done
9404
9405 fi
9406
9407 # Check whether --with- or --without- was given.
9408 if test "${with_+set}" = set; then
9409   withval="$with_"
9410
9411 fi;
9412
9413 # Check whether --enable-x11 or --disable-x11 was given.
9414 if test "${enable_x11+set}" = set; then
9415   enableval="$enable_x11"
9416
9417 fi;
9418 if test x$enable_x11 != xno &&
9419   (test x$SYS != xmingw32 || test x$enable_x11 = xyes); then
9420   if test x$x_includes = xNONE; then
9421     x_includes=/usr/X11R6/include
9422   fi
9423   if test x$x_libraries = xNONE; then
9424     x_libraries=/usr/X11R6/lib
9425   fi
9426   CPPFLAGS="$save_CPPFLAGS -I$x_includes"
9427
9428 for ac_header in X11/Xlib.h
9429 do
9430 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9431 echo "$as_me:9431: checking for $ac_header" >&5
9432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9434   echo $ECHO_N "(cached) $ECHO_C" >&6
9435 else
9436   cat >conftest.$ac_ext <<_ACEOF
9437 #line 9437 "configure"
9438 #include "confdefs.h"
9439 #include <$ac_header>
9440 _ACEOF
9441 if { (eval echo "$as_me:9441: \"$ac_cpp conftest.$ac_ext\"") >&5
9442   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9443   ac_status=$?
9444   egrep -v '^ *\+' conftest.er1 >conftest.err
9445   rm -f conftest.er1
9446   cat conftest.err >&5
9447   echo "$as_me:9447: \$? = $ac_status" >&5
9448   (exit $ac_status); } >/dev/null; then
9449   if test -s conftest.err; then
9450     ac_cpp_err=$ac_c_preproc_warn_flag
9451   else
9452     ac_cpp_err=
9453   fi
9454 else
9455   ac_cpp_err=yes
9456 fi
9457 if test -z "$ac_cpp_err"; then
9458   eval "$as_ac_Header=yes"
9459 else
9460   echo "$as_me: failed program was:" >&5
9461   cat conftest.$ac_ext >&5
9462   eval "$as_ac_Header=no"
9463 fi
9464 rm -f conftest.err conftest.$ac_ext
9465 fi
9466 echo "$as_me:9466: result: `eval echo '${'$as_ac_Header'}'`" >&5
9467 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9468 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9469   cat >>confdefs.h <<EOF
9470 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9471 EOF
9472
9473     PLUGINS="${PLUGINS} x11"
9474     x11_LDFLAGS="${x11_LDFLAGS} -L$x_libraries -lX11 -lXext"
9475     x11_CFLAGS="${x11_CFLAGS} -I$x_includes"
9476
9477 fi
9478 done
9479
9480   CPPFLAGS="$save_CPPFLAGS"
9481 fi
9482
9483 # Check whether --enable-xvideo or --disable-xvideo was given.
9484 if test "${enable_xvideo+set}" = set; then
9485   enableval="$enable_xvideo"
9486
9487 fi;
9488 if test x$enable_xvideo != xno &&
9489   (test x$SYS != xmingw32 || test x$enable_xvideo = xyes); then
9490   if test x$x_includes = xNONE; then
9491     x_includes=/usr/X11R6/include
9492   fi
9493   if test x$x_libraries = xNONE; then
9494     x_libraries=/usr/X11R6/lib
9495   fi
9496   save_CPPFLAGS=$CPPFLAGS
9497   CPPFLAGS="$save_CPPFLAGS -I$x_includes"
9498
9499 for ac_header in X11/extensions/Xv.h
9500 do
9501 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9502 echo "$as_me:9502: checking for $ac_header" >&5
9503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9504 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9505   echo $ECHO_N "(cached) $ECHO_C" >&6
9506 else
9507   cat >conftest.$ac_ext <<_ACEOF
9508 #line 9508 "configure"
9509 #include "confdefs.h"
9510 #include <$ac_header>
9511 _ACEOF
9512 if { (eval echo "$as_me:9512: \"$ac_cpp conftest.$ac_ext\"") >&5
9513   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9514   ac_status=$?
9515   egrep -v '^ *\+' conftest.er1 >conftest.err
9516   rm -f conftest.er1
9517   cat conftest.err >&5
9518   echo "$as_me:9518: \$? = $ac_status" >&5
9519   (exit $ac_status); } >/dev/null; then
9520   if test -s conftest.err; then
9521     ac_cpp_err=$ac_c_preproc_warn_flag
9522   else
9523     ac_cpp_err=
9524   fi
9525 else
9526   ac_cpp_err=yes
9527 fi
9528 if test -z "$ac_cpp_err"; then
9529   eval "$as_ac_Header=yes"
9530 else
9531   echo "$as_me: failed program was:" >&5
9532   cat conftest.$ac_ext >&5
9533   eval "$as_ac_Header=no"
9534 fi
9535 rm -f conftest.err conftest.$ac_ext
9536 fi
9537 echo "$as_me:9537: result: `eval echo '${'$as_ac_Header'}'`" >&5
9538 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9539 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9540   cat >>confdefs.h <<EOF
9541 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9542 EOF
9543
9544     save_CFLAGS=$CFLAGS
9545     CFLAGS="$CFLAGS -L$x_libraries -lX11 -lXext"
9546     echo "$as_me:9546: checking for XvSetPortAttribute in -lXv_pic" >&5
9547 echo $ECHO_N "checking for XvSetPortAttribute in -lXv_pic... $ECHO_C" >&6
9548 if test "${ac_cv_lib_Xv_pic_XvSetPortAttribute+set}" = set; then
9549   echo $ECHO_N "(cached) $ECHO_C" >&6
9550 else
9551   ac_check_lib_save_LIBS=$LIBS
9552 LIBS="-lXv_pic  $LIBS"
9553 cat >conftest.$ac_ext <<_ACEOF
9554 #line 9554 "configure"
9555 #include "confdefs.h"
9556
9557 /* Override any gcc2 internal prototype to avoid an error.  */
9558 #ifdef __cplusplus
9559 extern "C"
9560 #endif
9561 /* We use char because int might match the return type of a gcc2
9562    builtin and then its argument prototype would still apply.  */
9563 char XvSetPortAttribute ();
9564 int
9565 main ()
9566 {
9567 XvSetPortAttribute ();
9568   ;
9569   return 0;
9570 }
9571 _ACEOF
9572 rm -f conftest.$ac_objext conftest$ac_exeext
9573 if { (eval echo "$as_me:9573: \"$ac_link\"") >&5
9574   (eval $ac_link) 2>&5
9575   ac_status=$?
9576   echo "$as_me:9576: \$? = $ac_status" >&5
9577   (exit $ac_status); } &&
9578          { ac_try='test -s conftest$ac_exeext'
9579   { (eval echo "$as_me:9579: \"$ac_try\"") >&5
9580   (eval $ac_try) 2>&5
9581   ac_status=$?
9582   echo "$as_me:9582: \$? = $ac_status" >&5
9583   (exit $ac_status); }; }; then
9584   ac_cv_lib_Xv_pic_XvSetPortAttribute=yes
9585 else
9586   echo "$as_me: failed program was:" >&5
9587 cat conftest.$ac_ext >&5
9588 ac_cv_lib_Xv_pic_XvSetPortAttribute=no
9589 fi
9590 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9591 LIBS=$ac_check_lib_save_LIBS
9592 fi
9593 echo "$as_me:9593: result: $ac_cv_lib_Xv_pic_XvSetPortAttribute" >&5
9594 echo "${ECHO_T}$ac_cv_lib_Xv_pic_XvSetPortAttribute" >&6
9595 if test $ac_cv_lib_Xv_pic_XvSetPortAttribute = yes; then
9596   # We have Xv_pic, that's good, we can build an xvideo.so plugin !
9597       PLUGINS="${PLUGINS} xvideo"
9598       xvideo_LDFLAGS="${xvideo_LDFLAGS} -L$x_libraries -lX11 -lXext -lXv_pic"
9599       xvideo_CFLAGS="${xvideo_CFLAGS} -I$x_includes"
9600 else
9601   # We don't have Xv_pic, let's make xvideo.a as builtin
9602       BUILTINS="${BUILTINS} xvideo"
9603       xvideo_LDFLAGS="${xvideo_LDFLAGS} -L$x_libraries -lX11 -lXext -lXv"
9604       xvideo_CFLAGS="${xvideo_CFLAGS} -I$x_includes"
9605 fi
9606
9607     CFLAGS="$save_CFLAGS"
9608
9609   CPPFLAGS="$save_CPPFLAGS"
9610 fi
9611 done
9612
9613 fi
9614
9615 # Check whether --enable-sdl or --disable-sdl was given.
9616 if test "${enable_sdl+set}" = set; then
9617   enableval="$enable_sdl"
9618
9619 fi;
9620 if test "x$enable_sdl" != "xno"
9621 then
9622   SDL_PATH=$PATH
9623
9624 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
9625 if test "${with_sdl_config_path+set}" = set; then
9626   withval="$with_sdl_config_path"
9627    if test "x$with_sdl_config_path" != "xno"
9628       then
9629         SDL_PATH="$with_sdl_config_path:$PATH"
9630       fi
9631 fi;
9632   # Extract the first word of "sdl12-config", so it can be a program name with args.
9633 set dummy sdl12-config; ac_word=$2
9634 echo "$as_me:9634: checking for $ac_word" >&5
9635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9636 if test "${ac_cv_path_SDL12_CONFIG+set}" = set; then
9637   echo $ECHO_N "(cached) $ECHO_C" >&6
9638 else
9639   case $SDL12_CONFIG in
9640   [\\/]* | ?:[\\/]*)
9641   ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
9642   ;;
9643   *)
9644   ac_save_IFS=$IFS; IFS=$ac_path_separator
9645 ac_dummy="$SDL_PATH"
9646 for ac_dir in $ac_dummy; do
9647   IFS=$ac_save_IFS
9648   test -z "$ac_dir" && ac_dir=.
9649   if $as_executable_p "$ac_dir/$ac_word"; then
9650    ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
9651    echo "$as_me:9651: found $ac_dir/$ac_word" >&5
9652    break
9653 fi
9654 done
9655
9656   test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
9657   ;;
9658 esac
9659 fi
9660 SDL12_CONFIG=$ac_cv_path_SDL12_CONFIG
9661
9662 if test -n "$SDL12_CONFIG"; then
9663   echo "$as_me:9663: result: $SDL12_CONFIG" >&5
9664 echo "${ECHO_T}$SDL12_CONFIG" >&6
9665 else
9666   echo "$as_me:9666: result: no" >&5
9667 echo "${ECHO_T}no" >&6
9668 fi
9669
9670   SDL_CONFIG=${SDL12_CONFIG}
9671   SDL_HEADER="SDL12/SDL.h"
9672   if test x${SDL_CONFIG} = xno
9673   then
9674     # Extract the first word of "sdl11-config", so it can be a program name with args.
9675 set dummy sdl11-config; ac_word=$2
9676 echo "$as_me:9676: checking for $ac_word" >&5
9677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9678 if test "${ac_cv_path_SDL11_CONFIG+set}" = set; then
9679   echo $ECHO_N "(cached) $ECHO_C" >&6
9680 else
9681   case $SDL11_CONFIG in
9682   [\\/]* | ?:[\\/]*)
9683   ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
9684   ;;
9685   *)
9686   ac_save_IFS=$IFS; IFS=$ac_path_separator
9687 ac_dummy="$SDL_PATH"
9688 for ac_dir in $ac_dummy; do
9689   IFS=$ac_save_IFS
9690   test -z "$ac_dir" && ac_dir=.
9691   if $as_executable_p "$ac_dir/$ac_word"; then
9692    ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
9693    echo "$as_me:9693: found $ac_dir/$ac_word" >&5
9694    break
9695 fi
9696 done
9697
9698   test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
9699   ;;
9700 esac
9701 fi
9702 SDL11_CONFIG=$ac_cv_path_SDL11_CONFIG
9703
9704 if test -n "$SDL11_CONFIG"; then
9705   echo "$as_me:9705: result: $SDL11_CONFIG" >&5
9706 echo "${ECHO_T}$SDL11_CONFIG" >&6
9707 else
9708   echo "$as_me:9708: result: no" >&5
9709 echo "${ECHO_T}no" >&6
9710 fi
9711
9712     SDL_CONFIG=${SDL11_CONFIG}
9713     SDL_HEADER="SDL11/SDL.h"
9714   fi
9715   if test x${SDL_CONFIG} = xno
9716   then
9717     # Extract the first word of "sdl-config", so it can be a program name with args.
9718 set dummy sdl-config; ac_word=$2
9719 echo "$as_me:9719: checking for $ac_word" >&5
9720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9721 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
9722   echo $ECHO_N "(cached) $ECHO_C" >&6
9723 else
9724   case $SDL_CONFIG in
9725   [\\/]* | ?:[\\/]*)
9726   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
9727   ;;
9728   *)
9729   ac_save_IFS=$IFS; IFS=$ac_path_separator
9730 ac_dummy="$SDL_PATH"
9731 for ac_dir in $ac_dummy; do
9732   IFS=$ac_save_IFS
9733   test -z "$ac_dir" && ac_dir=.
9734   if $as_executable_p "$ac_dir/$ac_word"; then
9735    ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
9736    echo "$as_me:9736: found $ac_dir/$ac_word" >&5
9737    break
9738 fi
9739 done
9740
9741   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
9742   ;;
9743 esac
9744 fi
9745 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
9746
9747 if test -n "$SDL_CONFIG"; then
9748   echo "$as_me:9748: result: $SDL_CONFIG" >&5
9749 echo "${ECHO_T}$SDL_CONFIG" >&6
9750 else
9751   echo "$as_me:9751: result: no" >&5
9752 echo "${ECHO_T}no" >&6
9753 fi
9754
9755     SDL_HEADER="SDL/SDL.h"
9756   fi
9757   if test x${SDL_CONFIG} != xno
9758   then
9759     PLUGINS="${PLUGINS} sdl"
9760     sdl_CFLAGS="${sdl_CFLAGS} `${SDL_CONFIG} --cflags`"
9761     sdl_LDFLAGS="${sdl_LDFLAGS} `${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
9762     CPPFLAGS="$save_CPPFLAGS $sdl_CFLAGS"
9763
9764 for ac_header in ${SDL_HEADER}
9765 do
9766 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9767 echo "$as_me:9767: checking for $ac_header" >&5
9768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9769 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9770   echo $ECHO_N "(cached) $ECHO_C" >&6
9771 else
9772   cat >conftest.$ac_ext <<_ACEOF
9773 #line 9773 "configure"
9774 #include "confdefs.h"
9775 #include <$ac_header>
9776 _ACEOF
9777 if { (eval echo "$as_me:9777: \"$ac_cpp conftest.$ac_ext\"") >&5
9778   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9779   ac_status=$?
9780   egrep -v '^ *\+' conftest.er1 >conftest.err
9781   rm -f conftest.er1
9782   cat conftest.err >&5
9783   echo "$as_me:9783: \$? = $ac_status" >&5
9784   (exit $ac_status); } >/dev/null; then
9785   if test -s conftest.err; then
9786     ac_cpp_err=$ac_c_preproc_warn_flag
9787   else
9788     ac_cpp_err=
9789   fi
9790 else
9791   ac_cpp_err=yes
9792 fi
9793 if test -z "$ac_cpp_err"; then
9794   eval "$as_ac_Header=yes"
9795 else
9796   echo "$as_me: failed program was:" >&5
9797   cat conftest.$ac_ext >&5
9798   eval "$as_ac_Header=no"
9799 fi
9800 rm -f conftest.err conftest.$ac_ext
9801 fi
9802 echo "$as_me:9802: result: `eval echo '${'$as_ac_Header'}'`" >&5
9803 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9804 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9805   cat >>confdefs.h <<EOF
9806 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9807 EOF
9808
9809 cat >>confdefs.h <<EOF
9810 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
9811 EOF
9812
9813 else
9814    { { echo "$as_me:9814: error: The development package for SDL is not installed.
9815 Please install it and try again. Alternatively you can also configure with
9816 --disable-sdl." >&5
9817 echo "$as_me: error: The development package for SDL is not installed.
9818 Please install it and try again. Alternatively you can also configure with
9819 --disable-sdl." >&2;}
9820    { (exit 1); exit 1; }; }
9821
9822 fi
9823 done
9824
9825     CPPFLAGS="$save_CPPFLAGS"
9826     if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
9827     then
9828       { { echo "$as_me:9828: error: The development package for SDL is not installed.
9829 Please install it and try again. Alternatively you can also configure with
9830 --disable-sdl." >&5
9831 echo "$as_me: error: The development package for SDL is not installed.
9832 Please install it and try again. Alternatively you can also configure with
9833 --disable-sdl." >&2;}
9834    { (exit 1); exit 1; }; }
9835     fi
9836   elif test "x$enable_sdl" =  "xyes"
9837   then
9838     { { echo "$as_me:9838: error: I couldn't find the SDL package. You can download libSDL
9839 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
9840     " >&5
9841 echo "$as_me: error: I couldn't find the SDL package. You can download libSDL
9842 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
9843     " >&2;}
9844    { (exit 1); exit 1; }; }
9845   fi
9846 fi
9847
9848 # Check whether --enable-qte or --disable-qte was given.
9849 if test "${enable_qte+set}" = set; then
9850   enableval="$enable_qte"
9851
9852 fi;
9853 if test "x${enable_qte}" != "xno"
9854 then
9855
9856 # Check whether --with-qte or --without-qte was given.
9857 if test "${with_qte+set}" = set; then
9858   withval="$with_qte"
9859
9860 fi;
9861   if test "x${with_qte}" = "x"
9862   then
9863     test_LDFLAGS="-L${QTDIR}/lib"
9864     test_CFLAGS="-I${QTDIR}/include"
9865   else
9866     test_LDFLAGS="-L${with_qte}/lib"
9867     test_CFLAGS="-I${with_qte}/include"
9868   fi
9869
9870   CPPFLAGS="${save_CPPFLAGS} ${test_CFLAGS}"
9871
9872 for ac_header in qt.h
9873 do
9874 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9875 echo "$as_me:9875: checking for $ac_header" >&5
9876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9877 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9878   echo $ECHO_N "(cached) $ECHO_C" >&6
9879 else
9880   cat >conftest.$ac_ext <<_ACEOF
9881 #line 9881 "configure"
9882 #include "confdefs.h"
9883 #include <$ac_header>
9884 _ACEOF
9885 if { (eval echo "$as_me:9885: \"$ac_cpp conftest.$ac_ext\"") >&5
9886   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9887   ac_status=$?
9888   egrep -v '^ *\+' conftest.er1 >conftest.err
9889   rm -f conftest.er1
9890   cat conftest.err >&5
9891   echo "$as_me:9891: \$? = $ac_status" >&5
9892   (exit $ac_status); } >/dev/null; then
9893   if test -s conftest.err; then
9894     ac_cpp_err=$ac_c_preproc_warn_flag
9895   else
9896     ac_cpp_err=
9897   fi
9898 else
9899   ac_cpp_err=yes
9900 fi
9901 if test -z "$ac_cpp_err"; then
9902   eval "$as_ac_Header=yes"
9903 else
9904   echo "$as_me: failed program was:" >&5
9905   cat conftest.$ac_ext >&5
9906   eval "$as_ac_Header=no"
9907 fi
9908 rm -f conftest.err conftest.$ac_ext
9909 fi
9910 echo "$as_me:9910: result: `eval echo '${'$as_ac_Header'}'`" >&5
9911 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9912 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9913   cat >>confdefs.h <<EOF
9914 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9915 EOF
9916
9917     qte_CFLAGS="${qte_CFLAGS} ${test_CFLAGS} -DQT_QWS_IPAQ -DQWS -fno-exceptions -fno-rtti"
9918     qte_LDFLAGS="${qte_LDFLAGS} ${test_LDFLAGS} -lqpe -lqte"
9919     if test "x${with_qte}" = "x"
9920     then
9921       PLUGINS="${PLUGINS} qte"
9922     else
9923       BUILTINS="${BUILTINS} qte"
9924     fi
9925
9926 fi
9927 done
9928
9929   CPPFLAGS="${save_CPPFLAGS}"
9930 fi
9931
9932 # Check whether --enable-directx or --disable-directx was given.
9933 if test "${enable_directx+set}" = set; then
9934   enableval="$enable_directx"
9935
9936 fi;
9937 if test "x$enable_directx" != "xno"
9938 then
9939   if test x$SYS = xmingw32
9940   then
9941
9942 # Check whether --with-directx or --without-directx was given.
9943 if test "${with_directx+set}" = set; then
9944   withval="$with_directx"
9945
9946 fi;
9947     if test "x$with_directx" = "x"
9948     then
9949
9950 for ac_header in ddraw.h
9951 do
9952 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9953 echo "$as_me:9953: checking for $ac_header" >&5
9954 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9955 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9956   echo $ECHO_N "(cached) $ECHO_C" >&6
9957 else
9958   cat >conftest.$ac_ext <<_ACEOF
9959 #line 9959 "configure"
9960 #include "confdefs.h"
9961 #include <$ac_header>
9962 _ACEOF
9963 if { (eval echo "$as_me:9963: \"$ac_cpp conftest.$ac_ext\"") >&5
9964   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9965   ac_status=$?
9966   egrep -v '^ *\+' conftest.er1 >conftest.err
9967   rm -f conftest.er1
9968   cat conftest.err >&5
9969   echo "$as_me:9969: \$? = $ac_status" >&5
9970   (exit $ac_status); } >/dev/null; then
9971   if test -s conftest.err; then
9972     ac_cpp_err=$ac_c_preproc_warn_flag
9973   else
9974     ac_cpp_err=
9975   fi
9976 else
9977   ac_cpp_err=yes
9978 fi
9979 if test -z "$ac_cpp_err"; then
9980   eval "$as_ac_Header=yes"
9981 else
9982   echo "$as_me: failed program was:" >&5
9983   cat conftest.$ac_ext >&5
9984   eval "$as_ac_Header=no"
9985 fi
9986 rm -f conftest.err conftest.$ac_ext
9987 fi
9988 echo "$as_me:9988: result: `eval echo '${'$as_ac_Header'}'`" >&5
9989 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9990 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9991   cat >>confdefs.h <<EOF
9992 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9993 EOF
9994   PLUGINS="${PLUGINS} directx"
9995         directx_LDFLAGS="${directx_LDFLAGS} -lgdi32"
9996 fi
9997 done
9998
9999     else
10000       echo "$as_me:10000: checking for directX headers in ${with_directx}" >&5
10001 echo $ECHO_N "checking for directX headers in ${with_directx}... $ECHO_C" >&6
10002       if test -f ${with_directx}/ddraw.h
10003       then
10004         PLUGINS="${PLUGINS} directx"
10005         directx_LDFLAGS="${directx_LDFLAGS} -L${with_directx}/lib -lgdi32"
10006         directx_CFLAGS="${directx_CFLAGS} -I${with_directx}"
10007         echo "$as_me:10007: result: yes" >&5
10008 echo "${ECHO_T}yes" >&6
10009       else
10010         echo "$as_me:10010: result: no" >&5
10011 echo "${ECHO_T}no" >&6
10012         { { echo "$as_me:10012: error: Cannot find ${with_directx}/ddraw.h!" >&5
10013 echo "$as_me: error: Cannot find ${with_directx}/ddraw.h!" >&2;}
10014    { (exit 1); exit 1; }; }
10015       fi
10016     fi
10017   fi
10018 fi
10019
10020 # Check whether --enable-fb or --disable-fb was given.
10021 if test "${enable_fb+set}" = set; then
10022   enableval="$enable_fb"
10023
10024 fi;
10025     if test x$enable_fb != xno
10026     then
10027
10028 for ac_header in linux/fb.h
10029 do
10030 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10031 echo "$as_me:10031: checking for $ac_header" >&5
10032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10034   echo $ECHO_N "(cached) $ECHO_C" >&6
10035 else
10036   cat >conftest.$ac_ext <<_ACEOF
10037 #line 10037 "configure"
10038 #include "confdefs.h"
10039 #include <$ac_header>
10040 _ACEOF
10041 if { (eval echo "$as_me:10041: \"$ac_cpp conftest.$ac_ext\"") >&5
10042   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10043   ac_status=$?
10044   egrep -v '^ *\+' conftest.er1 >conftest.err
10045   rm -f conftest.er1
10046   cat conftest.err >&5
10047   echo "$as_me:10047: \$? = $ac_status" >&5
10048   (exit $ac_status); } >/dev/null; then
10049   if test -s conftest.err; then
10050     ac_cpp_err=$ac_c_preproc_warn_flag
10051   else
10052     ac_cpp_err=
10053   fi
10054 else
10055   ac_cpp_err=yes
10056 fi
10057 if test -z "$ac_cpp_err"; then
10058   eval "$as_ac_Header=yes"
10059 else
10060   echo "$as_me: failed program was:" >&5
10061   cat conftest.$ac_ext >&5
10062   eval "$as_ac_Header=no"
10063 fi
10064 rm -f conftest.err conftest.$ac_ext
10065 fi
10066 echo "$as_me:10066: result: `eval echo '${'$as_ac_Header'}'`" >&5
10067 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10068 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10069   cat >>confdefs.h <<EOF
10070 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10071 EOF
10072
10073         PLUGINS="${PLUGINS} fb"
10074
10075 fi
10076 done
10077
10078     fi
10079
10080 # Check whether --enable-mga or --disable-mga was given.
10081 if test "${enable_mga+set}" = set; then
10082   enableval="$enable_mga"
10083    if test x$enable_mga = xyes
10084     then
10085       PLUGINS="${PLUGINS} mga xmga"
10086     fi
10087 fi;
10088
10089 # Check whether --enable-ggi or --disable-ggi was given.
10090 if test "${enable_ggi+set}" = set; then
10091   enableval="$enable_ggi"
10092
10093 fi;
10094 if test x$enable_ggi = xyes
10095 then
10096   PLUGINS="${PLUGINS} ggi"
10097   ggi_LDFLAGS="${ggi_LDFLAGS} -lggi"
10098
10099 # Check whether --with-ggi or --without-ggi was given.
10100 if test "${with_ggi+set}" = set; then
10101   withval="$with_ggi"
10102    if test "x$with_ggi" != "xno" -a "x$with_ggi" != "x"
10103       then
10104         CFLAGS_GGI="${CFLAGS_GGI} -I$with_ggi/include"
10105         ggi_LDFLAGS="${ggi_LDFLAGS} -L$with_ggi/lib"
10106       fi
10107 fi;
10108 fi
10109
10110 # Check whether --enable-glide or --disable-glide was given.
10111 if test "${enable_glide+set}" = set; then
10112   enableval="$enable_glide"
10113
10114 fi;
10115 if test x$enable_glide = xyes
10116 then
10117   PLUGINS="${PLUGINS} glide"
10118   glide_LDFLAGS="${glide_LDFLAGS} -lglide2x -lm"
10119   glide_CFLAGS="${glide_CFLAGS} -I/usr/include/glide"
10120
10121 # Check whether --with-glide or --without-glide was given.
10122 if test "${with_glide+set}" = set; then
10123   withval="$with_glide"
10124    if test "x$with_glide" != "xno" -a "x$with_glide" != "x"
10125       then
10126         glide_CFLAGS="${glide_CFLAGS} -I$with_glide/include"
10127         glide_LDFLAGS="${glide_LDFLAGS} -L$with_glide/lib"
10128       fi
10129 fi;
10130 fi
10131
10132 # Check whether --enable-aa or --disable-aa was given.
10133 if test "${enable_aa+set}" = set; then
10134   enableval="$enable_aa"
10135
10136 fi;
10137 if test x$enable_aa = xyes
10138 then
10139   echo "$as_me:10139: checking for aalib.h" >&5
10140 echo $ECHO_N "checking for aalib.h... $ECHO_C" >&6
10141 if test "${ac_cv_header_aalib_h+set}" = set; then
10142   echo $ECHO_N "(cached) $ECHO_C" >&6
10143 else
10144   cat >conftest.$ac_ext <<_ACEOF
10145 #line 10145 "configure"
10146 #include "confdefs.h"
10147 #include <aalib.h>
10148 _ACEOF
10149 if { (eval echo "$as_me:10149: \"$ac_cpp conftest.$ac_ext\"") >&5
10150   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10151   ac_status=$?
10152   egrep -v '^ *\+' conftest.er1 >conftest.err
10153   rm -f conftest.er1
10154   cat conftest.err >&5
10155   echo "$as_me:10155: \$? = $ac_status" >&5
10156   (exit $ac_status); } >/dev/null; then
10157   if test -s conftest.err; then
10158     ac_cpp_err=$ac_c_preproc_warn_flag
10159   else
10160     ac_cpp_err=
10161   fi
10162 else
10163   ac_cpp_err=yes
10164 fi
10165 if test -z "$ac_cpp_err"; then
10166   ac_cv_header_aalib_h=yes
10167 else
10168   echo "$as_me: failed program was:" >&5
10169   cat conftest.$ac_ext >&5
10170   ac_cv_header_aalib_h=no
10171 fi
10172 rm -f conftest.err conftest.$ac_ext
10173 fi
10174 echo "$as_me:10174: result: $ac_cv_header_aalib_h" >&5
10175 echo "${ECHO_T}$ac_cv_header_aalib_h" >&6
10176 if test $ac_cv_header_aalib_h = yes; then
10177   have_aa="true"
10178 else
10179   have_aa="false"
10180 fi
10181
10182   if test x$have_aa = xtrue
10183   then
10184     PLUGINS="${PLUGINS} aa"
10185     aa_LDFLAGS="${aa_LDFLAGS} -laa"
10186   fi
10187 fi
10188
10189 # Check whether --with- or --without- was given.
10190 if test "${with_+set}" = set; then
10191   withval="$with_"
10192
10193 fi;
10194
10195 # Check whether --enable-dsp or --disable-dsp was given.
10196 if test "${enable_dsp+set}" = set; then
10197   enableval="$enable_dsp"
10198
10199 fi;
10200
10201 if test x$enable_dsp != xno &&
10202   (test x$SYS != xmingw32 || test x$enable_dsp = xyes)
10203 then
10204
10205 for ac_header in soundcard.h sys/soundcard.h machine/soundcard.h
10206 do
10207 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10208 echo "$as_me:10208: checking for $ac_header" >&5
10209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10210 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10211   echo $ECHO_N "(cached) $ECHO_C" >&6
10212 else
10213   cat >conftest.$ac_ext <<_ACEOF
10214 #line 10214 "configure"
10215 #include "confdefs.h"
10216 #include <$ac_header>
10217 _ACEOF
10218 if { (eval echo "$as_me:10218: \"$ac_cpp conftest.$ac_ext\"") >&5
10219   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10220   ac_status=$?
10221   egrep -v '^ *\+' conftest.er1 >conftest.err
10222   rm -f conftest.er1
10223   cat conftest.err >&5
10224   echo "$as_me:10224: \$? = $ac_status" >&5
10225   (exit $ac_status); } >/dev/null; then
10226   if test -s conftest.err; then
10227     ac_cpp_err=$ac_c_preproc_warn_flag
10228   else
10229     ac_cpp_err=
10230   fi
10231 else
10232   ac_cpp_err=yes
10233 fi
10234 if test -z "$ac_cpp_err"; then
10235   eval "$as_ac_Header=yes"
10236 else
10237   echo "$as_me: failed program was:" >&5
10238   cat conftest.$ac_ext >&5
10239   eval "$as_ac_Header=no"
10240 fi
10241 rm -f conftest.err conftest.$ac_ext
10242 fi
10243 echo "$as_me:10243: result: `eval echo '${'$as_ac_Header'}'`" >&5
10244 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10245 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10246   cat >>confdefs.h <<EOF
10247 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10248 EOF
10249
10250     PLUGINS="${PLUGINS} dsp"
10251     echo "$as_me:10251: checking for main in -lossaudio" >&5
10252 echo $ECHO_N "checking for main in -lossaudio... $ECHO_C" >&6
10253 if test "${ac_cv_lib_ossaudio_main+set}" = set; then
10254   echo $ECHO_N "(cached) $ECHO_C" >&6
10255 else
10256   ac_check_lib_save_LIBS=$LIBS
10257 LIBS="-lossaudio  $LIBS"
10258 cat >conftest.$ac_ext <<_ACEOF
10259 #line 10259 "configure"
10260 #include "confdefs.h"
10261
10262 int
10263 main ()
10264 {
10265 main ();
10266   ;
10267   return 0;
10268 }
10269 _ACEOF
10270 rm -f conftest.$ac_objext conftest$ac_exeext
10271 if { (eval echo "$as_me:10271: \"$ac_link\"") >&5
10272   (eval $ac_link) 2>&5
10273   ac_status=$?
10274   echo "$as_me:10274: \$? = $ac_status" >&5
10275   (exit $ac_status); } &&
10276          { ac_try='test -s conftest$ac_exeext'
10277   { (eval echo "$as_me:10277: \"$ac_try\"") >&5
10278   (eval $ac_try) 2>&5
10279   ac_status=$?
10280   echo "$as_me:10280: \$? = $ac_status" >&5
10281   (exit $ac_status); }; }; then
10282   ac_cv_lib_ossaudio_main=yes
10283 else
10284   echo "$as_me: failed program was:" >&5
10285 cat conftest.$ac_ext >&5
10286 ac_cv_lib_ossaudio_main=no
10287 fi
10288 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10289 LIBS=$ac_check_lib_save_LIBS
10290 fi
10291 echo "$as_me:10291: result: $ac_cv_lib_ossaudio_main" >&5
10292 echo "${ECHO_T}$ac_cv_lib_ossaudio_main" >&6
10293 if test $ac_cv_lib_ossaudio_main = yes; then
10294   dsp_LDFLAGS="${dsp_LDFLAGS} -lossaudio"
10295 fi
10296
10297 fi
10298 done
10299
10300 fi
10301
10302 # Check whether --enable-esd or --disable-esd was given.
10303 if test "${enable_esd+set}" = set; then
10304   enableval="$enable_esd"
10305   if test x$enable_esd = xyes
10306    then
10307      # Extract the first word of "esd-config", so it can be a program name with args.
10308 set dummy esd-config; ac_word=$2
10309 echo "$as_me:10309: checking for $ac_word" >&5
10310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10311 if test "${ac_cv_path_ESD_CONFIG+set}" = set; then
10312   echo $ECHO_N "(cached) $ECHO_C" >&6
10313 else
10314   case $ESD_CONFIG in
10315   [\\/]* | ?:[\\/]*)
10316   ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
10317   ;;
10318   *)
10319   ac_save_IFS=$IFS; IFS=$ac_path_separator
10320 ac_dummy="$PATH"
10321 for ac_dir in $ac_dummy; do
10322   IFS=$ac_save_IFS
10323   test -z "$ac_dir" && ac_dir=.
10324   if $as_executable_p "$ac_dir/$ac_word"; then
10325    ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
10326    echo "$as_me:10326: found $ac_dir/$ac_word" >&5
10327    break
10328 fi
10329 done
10330
10331   test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
10332   ;;
10333 esac
10334 fi
10335 ESD_CONFIG=$ac_cv_path_ESD_CONFIG
10336
10337 if test -n "$ESD_CONFIG"; then
10338   echo "$as_me:10338: result: $ESD_CONFIG" >&5
10339 echo "${ECHO_T}$ESD_CONFIG" >&6
10340 else
10341   echo "$as_me:10341: result: no" >&5
10342 echo "${ECHO_T}no" >&6
10343 fi
10344
10345      if test x${ESD_CONFIG} != xno
10346      then
10347        PLUGINS="${PLUGINS} esd"
10348        esd_CFLAGS="${esd_CFLAGS} `${ESD_CONFIG} --cflags`"
10349        esd_LDFLAGS="${esd_LDFLAGS} `${ESD_CONFIG} --libs`"
10350      fi
10351    fi
10352 fi;
10353
10354 # Check whether --enable-arts or --disable-arts was given.
10355 if test "${enable_arts+set}" = set; then
10356   enableval="$enable_arts"
10357   if test x$enable_arts = xyes
10358    then
10359      # Extract the first word of "artsc-config", so it can be a program name with args.
10360 set dummy artsc-config; ac_word=$2
10361 echo "$as_me:10361: checking for $ac_word" >&5
10362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10363 if test "${ac_cv_path_ARTS_CONFIG+set}" = set; then
10364   echo $ECHO_N "(cached) $ECHO_C" >&6
10365 else
10366   case $ARTS_CONFIG in
10367   [\\/]* | ?:[\\/]*)
10368   ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
10369   ;;
10370   *)
10371   ac_save_IFS=$IFS; IFS=$ac_path_separator
10372 ac_dummy="$PATH"
10373 for ac_dir in $ac_dummy; do
10374   IFS=$ac_save_IFS
10375   test -z "$ac_dir" && ac_dir=.
10376   if $as_executable_p "$ac_dir/$ac_word"; then
10377    ac_cv_path_ARTS_CONFIG="$ac_dir/$ac_word"
10378    echo "$as_me:10378: found $ac_dir/$ac_word" >&5
10379    break
10380 fi
10381 done
10382
10383   test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
10384   ;;
10385 esac
10386 fi
10387 ARTS_CONFIG=$ac_cv_path_ARTS_CONFIG
10388
10389 if test -n "$ARTS_CONFIG"; then
10390   echo "$as_me:10390: result: $ARTS_CONFIG" >&5
10391 echo "${ECHO_T}$ARTS_CONFIG" >&6
10392 else
10393   echo "$as_me:10393: result: no" >&5
10394 echo "${ECHO_T}no" >&6
10395 fi
10396
10397      if test x${ARTS_CONFIG} != xno
10398      then
10399        PLUGINS="${PLUGINS} arts"
10400        arts_CFLAGS="${arts_CFLAGS} `${ARTS_CONFIG} --cflags`"
10401        arts_LDFLAGS="${arts_LDFLAGS} `${ARTS_CONFIG} --libs `"
10402      fi
10403    fi
10404 fi;
10405
10406 # Check whether --enable-alsa or --disable-alsa was given.
10407 if test "${enable_alsa+set}" = set; then
10408   enableval="$enable_alsa"
10409   if test x$enable_alsa = xyes
10410    then
10411      echo "$as_me:10411: checking for alsa/asoundlib.h" >&5
10412 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6
10413 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
10414   echo $ECHO_N "(cached) $ECHO_C" >&6
10415 else
10416   cat >conftest.$ac_ext <<_ACEOF
10417 #line 10417 "configure"
10418 #include "confdefs.h"
10419 #include <alsa/asoundlib.h>
10420 _ACEOF
10421 if { (eval echo "$as_me:10421: \"$ac_cpp conftest.$ac_ext\"") >&5
10422   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10423   ac_status=$?
10424   egrep -v '^ *\+' conftest.er1 >conftest.err
10425   rm -f conftest.er1
10426   cat conftest.err >&5
10427   echo "$as_me:10427: \$? = $ac_status" >&5
10428   (exit $ac_status); } >/dev/null; then
10429   if test -s conftest.err; then
10430     ac_cpp_err=$ac_c_preproc_warn_flag
10431   else
10432     ac_cpp_err=
10433   fi
10434 else
10435   ac_cpp_err=yes
10436 fi
10437 if test -z "$ac_cpp_err"; then
10438   ac_cv_header_alsa_asoundlib_h=yes
10439 else
10440   echo "$as_me: failed program was:" >&5
10441   cat conftest.$ac_ext >&5
10442   ac_cv_header_alsa_asoundlib_h=no
10443 fi
10444 rm -f conftest.err conftest.$ac_ext
10445 fi
10446 echo "$as_me:10446: result: $ac_cv_header_alsa_asoundlib_h" >&5
10447 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6
10448 if test $ac_cv_header_alsa_asoundlib_h = yes; then
10449   echo "$as_me:10449: checking for main in -lasound" >&5
10450 echo $ECHO_N "checking for main in -lasound... $ECHO_C" >&6
10451 if test "${ac_cv_lib_asound_main+set}" = set; then
10452   echo $ECHO_N "(cached) $ECHO_C" >&6
10453 else
10454   ac_check_lib_save_LIBS=$LIBS
10455 LIBS="-lasound  $LIBS"
10456 cat >conftest.$ac_ext <<_ACEOF
10457 #line 10457 "configure"
10458 #include "confdefs.h"
10459
10460 int
10461 main ()
10462 {
10463 main ();
10464   ;
10465   return 0;
10466 }
10467 _ACEOF
10468 rm -f conftest.$ac_objext conftest$ac_exeext
10469 if { (eval echo "$as_me:10469: \"$ac_link\"") >&5
10470   (eval $ac_link) 2>&5
10471   ac_status=$?
10472   echo "$as_me:10472: \$? = $ac_status" >&5
10473   (exit $ac_status); } &&
10474          { ac_try='test -s conftest$ac_exeext'
10475   { (eval echo "$as_me:10475: \"$ac_try\"") >&5
10476   (eval $ac_try) 2>&5
10477   ac_status=$?
10478   echo "$as_me:10478: \$? = $ac_status" >&5
10479   (exit $ac_status); }; }; then
10480   ac_cv_lib_asound_main=yes
10481 else
10482   echo "$as_me: failed program was:" >&5
10483 cat conftest.$ac_ext >&5
10484 ac_cv_lib_asound_main=no
10485 fi
10486 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10487 LIBS=$ac_check_lib_save_LIBS
10488 fi
10489 echo "$as_me:10489: result: $ac_cv_lib_asound_main" >&5
10490 echo "${ECHO_T}$ac_cv_lib_asound_main" >&6
10491 if test $ac_cv_lib_asound_main = yes; then
10492   have_alsa="true"
10493 else
10494   have_alsa="false"
10495 fi
10496
10497 else
10498   have_alsa="false"
10499 fi
10500
10501      if test x$have_alsa = xtrue
10502      then
10503        PLUGINS="${PLUGINS} alsa"
10504        alsa_LDFLAGS="${alsa_LDFLAGS} -lasound -lm -ldl"
10505      fi
10506    fi
10507 fi;
10508
10509 # Check whether --enable-waveout or --disable-waveout was given.
10510 if test "${enable_waveout+set}" = set; then
10511   enableval="$enable_waveout"
10512
10513 fi;
10514 if test "x$enable_waveout" != "xno" -a x$SYS = xmingw32
10515   then
10516     PLUGINS="${PLUGINS} waveout"
10517     waveout_LDFLAGS="-lwinmm"
10518 fi
10519
10520 # Check whether --with- or --without- was given.
10521 if test "${with_+set}" = set; then
10522   withval="$with_"
10523
10524 fi;
10525
10526 # Check whether --enable-gtk or --disable-gtk was given.
10527 if test "${enable_gtk+set}" = set; then
10528   enableval="$enable_gtk"
10529
10530 fi;
10531 if test x$enable_gtk != xno
10532 then
10533   GTK_PATH=$PATH
10534
10535 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
10536 if test "${with_gtk_config_path+set}" = set; then
10537   withval="$with_gtk_config_path"
10538    if test "x$with_gtk_config_path" != "xno"
10539       then
10540         GTK_PATH="$with_gtk_config_path:$PATH"
10541       fi
10542 fi;
10543   # look for gtk-config
10544   # Extract the first word of "gtk12-config", so it can be a program name with args.
10545 set dummy gtk12-config; ac_word=$2
10546 echo "$as_me:10546: checking for $ac_word" >&5
10547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10548 if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then
10549   echo $ECHO_N "(cached) $ECHO_C" >&6
10550 else
10551   case $GTK12_CONFIG in
10552   [\\/]* | ?:[\\/]*)
10553   ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
10554   ;;
10555   *)
10556   ac_save_IFS=$IFS; IFS=$ac_path_separator
10557 ac_dummy="$GTK_PATH"
10558 for ac_dir in $ac_dummy; do
10559   IFS=$ac_save_IFS
10560   test -z "$ac_dir" && ac_dir=.
10561   if $as_executable_p "$ac_dir/$ac_word"; then
10562    ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
10563    echo "$as_me:10563: found $ac_dir/$ac_word" >&5
10564    break
10565 fi
10566 done
10567
10568   test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
10569   ;;
10570 esac
10571 fi
10572 GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG
10573
10574 if test -n "$GTK12_CONFIG"; then
10575   echo "$as_me:10575: result: $GTK12_CONFIG" >&5
10576 echo "${ECHO_T}$GTK12_CONFIG" >&6
10577 else
10578   echo "$as_me:10578: result: no" >&5
10579 echo "${ECHO_T}no" >&6
10580 fi
10581
10582   GTK_CONFIG=${GTK12_CONFIG}
10583   if test x${GTK_CONFIG} = xno
10584   then
10585     # Extract the first word of "gtk-config", so it can be a program name with args.
10586 set dummy gtk-config; ac_word=$2
10587 echo "$as_me:10587: checking for $ac_word" >&5
10588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10589 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
10590   echo $ECHO_N "(cached) $ECHO_C" >&6
10591 else
10592   case $GTK_CONFIG in
10593   [\\/]* | ?:[\\/]*)
10594   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10595   ;;
10596   *)
10597   ac_save_IFS=$IFS; IFS=$ac_path_separator
10598 ac_dummy="$GTK_PATH"
10599 for ac_dir in $ac_dummy; do
10600   IFS=$ac_save_IFS
10601   test -z "$ac_dir" && ac_dir=.
10602   if $as_executable_p "$ac_dir/$ac_word"; then
10603    ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
10604    echo "$as_me:10604: found $ac_dir/$ac_word" >&5
10605    break
10606 fi
10607 done
10608
10609   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
10610   ;;
10611 esac
10612 fi
10613 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
10614
10615 if test -n "$GTK_CONFIG"; then
10616   echo "$as_me:10616: result: $GTK_CONFIG" >&5
10617 echo "${ECHO_T}$GTK_CONFIG" >&6
10618 else
10619   echo "$as_me:10619: result: no" >&5
10620 echo "${ECHO_T}no" >&6
10621 fi
10622
10623   fi
10624   if test x${GTK_CONFIG} != xno
10625   then
10626     if expr 1.2.0 \> `$GTK_CONFIG --version` >/dev/null
10627     then
10628       { { echo "$as_me:10628: error: Your development package for Gtk+ is too old, you need at least version 1.2.0. Please upgrade and try again. Alternatively you can also configure with --disable-gtk." >&5
10629 echo "$as_me: error: Your development package for Gtk+ is too old, you need at least version 1.2.0. Please upgrade and try again. Alternatively you can also configure with --disable-gtk." >&2;}
10630    { (exit 1); exit 1; }; }
10631     fi
10632     gtk_CFLAGS="${gtk_CFLAGS} `${GTK_CONFIG} --cflags gtk`"
10633     gtk_LDFLAGS="${gtk_LDFLAGS} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
10634     # now look for the gtk.h header
10635     CPPFLAGS="$save_CPPFLAGS $gtk_CFLAGS"
10636     ac_cv_gtk_headers=yes
10637
10638 for ac_header in gtk/gtk.h glib.h gdk/gdk.h
10639 do
10640 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10641 echo "$as_me:10641: checking for $ac_header" >&5
10642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10643 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10644   echo $ECHO_N "(cached) $ECHO_C" >&6
10645 else
10646   cat >conftest.$ac_ext <<_ACEOF
10647 #line 10647 "configure"
10648 #include "confdefs.h"
10649 #include <$ac_header>
10650 _ACEOF
10651 if { (eval echo "$as_me:10651: \"$ac_cpp conftest.$ac_ext\"") >&5
10652   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10653   ac_status=$?
10654   egrep -v '^ *\+' conftest.er1 >conftest.err
10655   rm -f conftest.er1
10656   cat conftest.err >&5
10657   echo "$as_me:10657: \$? = $ac_status" >&5
10658   (exit $ac_status); } >/dev/null; then
10659   if test -s conftest.err; then
10660     ac_cpp_err=$ac_c_preproc_warn_flag
10661   else
10662     ac_cpp_err=
10663   fi
10664 else
10665   ac_cpp_err=yes
10666 fi
10667 if test -z "$ac_cpp_err"; then
10668   eval "$as_ac_Header=yes"
10669 else
10670   echo "$as_me: failed program was:" >&5
10671   cat conftest.$ac_ext >&5
10672   eval "$as_ac_Header=no"
10673 fi
10674 rm -f conftest.err conftest.$ac_ext
10675 fi
10676 echo "$as_me:10676: result: `eval echo '${'$as_ac_Header'}'`" >&5
10677 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10678 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10679   cat >>confdefs.h <<EOF
10680 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10681 EOF
10682
10683 else
10684
10685       ac_cv_gtk_headers=no
10686       echo "Cannot find gtk development headers."
10687
10688 fi
10689 done
10690
10691     if test "x$ac_cv_gtk_headers" = xyes
10692     then
10693       PLUGINS="${PLUGINS} gtk"
10694       ALIASES="${ALIASES} gvlc"
10695     fi
10696     CPPFLAGS="$save_CPPFLAGS"
10697   fi
10698 fi
10699
10700 # Check whether --enable-familiar or --disable-familiar was given.
10701 if test "${enable_familiar+set}" = set; then
10702   enableval="$enable_familiar"
10703
10704 fi;
10705 if test "x${enable_familiar}" = "xyes"
10706 then
10707   GTK_PATH="${PATH}"
10708
10709 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
10710 if test "${with_gtk_config_path+set}" = set; then
10711   withval="$with_gtk_config_path"
10712    if test "x${with_gtk_config_path}" != "xno"
10713       then
10714         GTK_PATH="${with_gtk_config_path}:${PATH}"
10715       fi
10716 fi;
10717   # look for gtk-config
10718   # Extract the first word of "gtk12-config", so it can be a program name with args.
10719 set dummy gtk12-config; ac_word=$2
10720 echo "$as_me:10720: checking for $ac_word" >&5
10721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10722 if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then
10723   echo $ECHO_N "(cached) $ECHO_C" >&6
10724 else
10725   case $GTK12_CONFIG in
10726   [\\/]* | ?:[\\/]*)
10727   ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
10728   ;;
10729   *)
10730   ac_save_IFS=$IFS; IFS=$ac_path_separator
10731 ac_dummy="${GTK_PATH}"
10732 for ac_dir in $ac_dummy; do
10733   IFS=$ac_save_IFS
10734   test -z "$ac_dir" && ac_dir=.
10735   if $as_executable_p "$ac_dir/$ac_word"; then
10736    ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
10737    echo "$as_me:10737: found $ac_dir/$ac_word" >&5
10738    break
10739 fi
10740 done
10741
10742   test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
10743   ;;
10744 esac
10745 fi
10746 GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG
10747
10748 if test -n "$GTK12_CONFIG"; then
10749   echo "$as_me:10749: result: $GTK12_CONFIG" >&5
10750 echo "${ECHO_T}$GTK12_CONFIG" >&6
10751 else
10752   echo "$as_me:10752: result: no" >&5
10753 echo "${ECHO_T}no" >&6
10754 fi
10755
10756   GTK_CONFIG=${GTK12_CONFIG}
10757   if test "x${GTK_CONFIG}" = "xno"
10758   then
10759     # Extract the first word of "gtk-config", so it can be a program name with args.
10760 set dummy gtk-config; ac_word=$2
10761 echo "$as_me:10761: checking for $ac_word" >&5
10762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10763 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
10764   echo $ECHO_N "(cached) $ECHO_C" >&6
10765 else
10766   case $GTK_CONFIG in
10767   [\\/]* | ?:[\\/]*)
10768   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10769   ;;
10770   *)
10771   ac_save_IFS=$IFS; IFS=$ac_path_separator
10772 ac_dummy="${GTK_PATH}"
10773 for ac_dir in $ac_dummy; do
10774   IFS=$ac_save_IFS
10775   test -z "$ac_dir" && ac_dir=.
10776   if $as_executable_p "$ac_dir/$ac_word"; then
10777    ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
10778    echo "$as_me:10778: found $ac_dir/$ac_word" >&5
10779    break
10780 fi
10781 done
10782
10783   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
10784   ;;
10785 esac
10786 fi
10787 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
10788
10789 if test -n "$GTK_CONFIG"; then
10790   echo "$as_me:10790: result: $GTK_CONFIG" >&5
10791 echo "${ECHO_T}$GTK_CONFIG" >&6
10792 else
10793   echo "$as_me:10793: result: no" >&5
10794 echo "${ECHO_T}no" >&6
10795 fi
10796
10797   fi
10798   if test "x${GTK_CONFIG}" != "xno"
10799   then
10800     if expr 1.2.0 \> `${GTK_CONFIG} --version` >/dev/null
10801     then
10802       { { echo "$as_me:10802: error: Your development package for Gtk+ is too old, you need at least version 1.2.0. Please upgrade and try again. Alternatively you can also configure with --disable-familiar." >&5
10803 echo "$as_me: error: Your development package for Gtk+ is too old, you need at least version 1.2.0. Please upgrade and try again. Alternatively you can also configure with --disable-familiar." >&2;}
10804    { (exit 1); exit 1; }; }
10805     fi
10806     familiar_CFLAGS="${familiar_CFLAGS} `${GTK_CONFIG} --cflags gtk gthread`"
10807     familiar_LDFLAGS="${familiar_LDFLAGS} `${GTK_CONFIG} --libs gtk gthread | sed 's,-rdynamic,,'`"
10808     # now look for the gtk.h header
10809     CPPFLAGS="${save_CPPFLAGS} ${familiar_CFLAGS}"
10810     ac_cv_gtk_headers=yes
10811
10812 for ac_header in gtk/gtk.h glib.h gdk/gdk.h
10813 do
10814 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10815 echo "$as_me:10815: checking for $ac_header" >&5
10816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10818   echo $ECHO_N "(cached) $ECHO_C" >&6
10819 else
10820   cat >conftest.$ac_ext <<_ACEOF
10821 #line 10821 "configure"
10822 #include "confdefs.h"
10823 #include <$ac_header>
10824 _ACEOF
10825 if { (eval echo "$as_me:10825: \"$ac_cpp conftest.$ac_ext\"") >&5
10826   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10827   ac_status=$?
10828   egrep -v '^ *\+' conftest.er1 >conftest.err
10829   rm -f conftest.er1
10830   cat conftest.err >&5
10831   echo "$as_me:10831: \$? = $ac_status" >&5
10832   (exit $ac_status); } >/dev/null; then
10833   if test -s conftest.err; then
10834     ac_cpp_err=$ac_c_preproc_warn_flag
10835   else
10836     ac_cpp_err=
10837   fi
10838 else
10839   ac_cpp_err=yes
10840 fi
10841 if test -z "$ac_cpp_err"; then
10842   eval "$as_ac_Header=yes"
10843 else
10844   echo "$as_me: failed program was:" >&5
10845   cat conftest.$ac_ext >&5
10846   eval "$as_ac_Header=no"
10847 fi
10848 rm -f conftest.err conftest.$ac_ext
10849 fi
10850 echo "$as_me:10850: result: `eval echo '${'$as_ac_Header'}'`" >&5
10851 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10852 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10853   cat >>confdefs.h <<EOF
10854 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10855 EOF
10856
10857 else
10858
10859       ac_cv_gtk_headers=no
10860       echo "Cannot find gtk development headers."
10861
10862 fi
10863 done
10864
10865     if test "x${ac_cv_gtk_headers}" = "xyes"
10866     then
10867       PLUGINS="${PLUGINS} familiar"
10868       NEED_GTK_MAIN=yes
10869     fi
10870     CPPFLAGS="${save_CPPFLAGS}"
10871   fi
10872 fi
10873
10874 # Check whether --enable-gnome or --disable-gnome was given.
10875 if test "${enable_gnome+set}" = set; then
10876   enableval="$enable_gnome"
10877   if test x$enable_gnome = xyes; then
10878     # look for gnome-config
10879     # Extract the first word of "gnome-config", so it can be a program name with args.
10880 set dummy gnome-config; ac_word=$2
10881 echo "$as_me:10881: checking for $ac_word" >&5
10882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10883 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
10884   echo $ECHO_N "(cached) $ECHO_C" >&6
10885 else
10886   case $GNOME_CONFIG in
10887   [\\/]* | ?:[\\/]*)
10888   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
10889   ;;
10890   *)
10891   ac_save_IFS=$IFS; IFS=$ac_path_separator
10892 ac_dummy="$PATH"
10893 for ac_dir in $ac_dummy; do
10894   IFS=$ac_save_IFS
10895   test -z "$ac_dir" && ac_dir=.
10896   if $as_executable_p "$ac_dir/$ac_word"; then
10897    ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
10898    echo "$as_me:10898: found $ac_dir/$ac_word" >&5
10899    break
10900 fi
10901 done
10902
10903   test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
10904   ;;
10905 esac
10906 fi
10907 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
10908
10909 if test -n "$GNOME_CONFIG"; then
10910   echo "$as_me:10910: result: $GNOME_CONFIG" >&5
10911 echo "${ECHO_T}$GNOME_CONFIG" >&6
10912 else
10913   echo "$as_me:10913: result: no" >&5
10914 echo "${ECHO_T}no" >&6
10915 fi
10916
10917     if test -x ${GNOME_CONFIG}
10918     then
10919        gnome_CFLAGS="${gnome_CFLAGS} `${GNOME_CONFIG} --cflags gtk gnomeui`"
10920        gnome_LDFLAGS="${gnome_LDFLAGS} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
10921     fi
10922     # now look for the gnome.h header
10923     CPPFLAGS="$save_CPPFLAGS $gnome_CFLAGS"
10924
10925 for ac_header in gnome.h
10926 do
10927 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10928 echo "$as_me:10928: checking for $ac_header" >&5
10929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10931   echo $ECHO_N "(cached) $ECHO_C" >&6
10932 else
10933   cat >conftest.$ac_ext <<_ACEOF
10934 #line 10934 "configure"
10935 #include "confdefs.h"
10936 #include <$ac_header>
10937 _ACEOF
10938 if { (eval echo "$as_me:10938: \"$ac_cpp conftest.$ac_ext\"") >&5
10939   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10940   ac_status=$?
10941   egrep -v '^ *\+' conftest.er1 >conftest.err
10942   rm -f conftest.er1
10943   cat conftest.err >&5
10944   echo "$as_me:10944: \$? = $ac_status" >&5
10945   (exit $ac_status); } >/dev/null; then
10946   if test -s conftest.err; then
10947     ac_cpp_err=$ac_c_preproc_warn_flag
10948   else
10949     ac_cpp_err=
10950   fi
10951 else
10952   ac_cpp_err=yes
10953 fi
10954 if test -z "$ac_cpp_err"; then
10955   eval "$as_ac_Header=yes"
10956 else
10957   echo "$as_me: failed program was:" >&5
10958   cat conftest.$ac_ext >&5
10959   eval "$as_ac_Header=no"
10960 fi
10961 rm -f conftest.err conftest.$ac_ext
10962 fi
10963 echo "$as_me:10963: result: `eval echo '${'$as_ac_Header'}'`" >&5
10964 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10965 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10966   cat >>confdefs.h <<EOF
10967 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10968 EOF
10969
10970       PLUGINS="${PLUGINS} gnome"
10971       ALIASES="${ALIASES} gnome-vlc"
10972
10973 else
10974
10975       { { echo "$as_me:10975: error: Can't find gnome headers. Please install the gnome
10976 developement tools or remove the --enable-gnome option" >&5
10977 echo "$as_me: error: Can't find gnome headers. Please install the gnome
10978 developement tools or remove the --enable-gnome option" >&2;}
10979    { (exit 1); exit 1; }; }
10980
10981 fi
10982 done
10983
10984     CPPFLAGS="$save_CPPFLAGS"
10985   fi
10986 fi;
10987
10988 # Check whether --enable-qt or --disable-qt was given.
10989 if test "${enable_qt+set}" = set; then
10990   enableval="$enable_qt"
10991   if test x$enable_qt = xyes; then
10992      PLUGINS="${PLUGINS} qt"
10993      ALIASES="${ALIASES} qvlc"
10994      qt_LDFLAGS="${qt_LDFLAGS} -lqt -L${QTDIR}/lib"
10995      qt_CFLAGS="${qt_CFLAGS} -I/usr/include/qt -I${QTDIR}/include"
10996      if test -x ${QTDIR}/bin/moc
10997      then
10998        MOC=${QTDIR}/bin/moc
10999      else
11000        MOC=moc
11001      fi
11002    fi
11003 fi;
11004
11005 # Check whether --enable-kde or --disable-kde was given.
11006 if test "${enable_kde+set}" = set; then
11007   enableval="$enable_kde"
11008   if test x$enable_kde = xyes; then
11009      PLUGINS="${PLUGINS} kde"
11010      ALIASES="${ALIASES} kvlc"
11011      kde_LDFLAGS="${kde_LDFLAGS} -L${KDEDIR}/lib -lkfile"
11012      kde_CFLAGS="${kde_CFLAGS} -I/usr/include/kde -I/usr/include/qt"
11013      kde_CFLAGS="${kde_CFLAGS} -I${KDEDIR}/include -I${QTDIR}/include"
11014      if test -x ${QTDIR}/bin/moc
11015      then
11016        MOC=${QTDIR}/bin/moc
11017      else
11018        MOC=moc
11019      fi
11020    fi
11021 fi;
11022
11023 # Check whether --enable-opie or --disable-opie was given.
11024 if test "${enable_opie+set}" = set; then
11025   enableval="$enable_opie"
11026   if test "x${enable_opie}" = "xyes"; then
11027
11028 # Check whether --with-qte or --without-qte was given.
11029 if test "${with_qte+set}" = set; then
11030   withval="$with_qte"
11031
11032 fi;
11033      if test "x${with_qte}" = "x"
11034      then
11035        test_LDFLAGS="-L${QTDIR}/lib"
11036        test_CFLAGS="-I${QTDIR}/include"
11037      else
11038        test_LDFLAGS="-L${with_qte}/lib"
11039        test_CFLAGS="-I${with_qte}/include"
11040      fi
11041
11042      PLUGINS="${PLUGINS} opie"
11043      opie_LDFLAGS="${opie_LDFLAGS} ${test_LDFLAGS} -lqpe -lqte"
11044      opie_CFLAGS="${opie_CFLAGS} ${test_CFLAGS}-DQT_QWS_IPAQ -DQWS -fno-exceptions -fno-rtti"
11045      if test -x ${QTDIR}/bin/moc
11046      then
11047        MOC=${QTDIR}/bin/moc
11048      else
11049        MOC=moc
11050      fi
11051    fi
11052 fi;
11053
11054 # Check whether --enable-macosx or --disable-macosx was given.
11055 if test "${enable_macosx+set}" = set; then
11056   enableval="$enable_macosx"
11057   if test x$enable_macosx = xyes
11058    then
11059      BUILTINS="${BUILTINS} macosx"
11060      macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework AGL -framework QuickTime -lobjc -ObjC"
11061    fi
11062 else
11063
11064 for ac_header in Cocoa/Cocoa.h
11065 do
11066 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11067 echo "$as_me:11067: checking for $ac_header" >&5
11068 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11069 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11070   echo $ECHO_N "(cached) $ECHO_C" >&6
11071 else
11072   cat >conftest.$ac_ext <<_ACEOF
11073 #line 11073 "configure"
11074 #include "confdefs.h"
11075 #include <$ac_header>
11076 _ACEOF
11077 if { (eval echo "$as_me:11077: \"$ac_cpp conftest.$ac_ext\"") >&5
11078   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11079   ac_status=$?
11080   egrep -v '^ *\+' conftest.er1 >conftest.err
11081   rm -f conftest.er1
11082   cat conftest.err >&5
11083   echo "$as_me:11083: \$? = $ac_status" >&5
11084   (exit $ac_status); } >/dev/null; then
11085   if test -s conftest.err; then
11086     ac_cpp_err=$ac_c_preproc_warn_flag
11087   else
11088     ac_cpp_err=
11089   fi
11090 else
11091   ac_cpp_err=yes
11092 fi
11093 if test -z "$ac_cpp_err"; then
11094   eval "$as_ac_Header=yes"
11095 else
11096   echo "$as_me: failed program was:" >&5
11097   cat conftest.$ac_ext >&5
11098   eval "$as_ac_Header=no"
11099 fi
11100 rm -f conftest.err conftest.$ac_ext
11101 fi
11102 echo "$as_me:11102: result: `eval echo '${'$as_ac_Header'}'`" >&5
11103 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11104 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11105   cat >>confdefs.h <<EOF
11106 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11107 EOF
11108  BUILTINS="${BUILTINS} macosx"
11109      macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework AGL -framework QuickTime -lobjc -ObjC"
11110
11111 fi
11112 done
11113
11114 fi;
11115
11116 # Check whether --enable-qnx or --disable-qnx was given.
11117 if test "${enable_qnx+set}" = set; then
11118   enableval="$enable_qnx"
11119
11120 fi;
11121     if test x$enable_qnx != xno
11122     then
11123
11124 for ac_header in Ph.h
11125 do
11126 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11127 echo "$as_me:11127: checking for $ac_header" >&5
11128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11130   echo $ECHO_N "(cached) $ECHO_C" >&6
11131 else
11132   cat >conftest.$ac_ext <<_ACEOF
11133 #line 11133 "configure"
11134 #include "confdefs.h"
11135 #include <$ac_header>
11136 _ACEOF
11137 if { (eval echo "$as_me:11137: \"$ac_cpp conftest.$ac_ext\"") >&5
11138   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11139   ac_status=$?
11140   egrep -v '^ *\+' conftest.er1 >conftest.err
11141   rm -f conftest.er1
11142   cat conftest.err >&5
11143   echo "$as_me:11143: \$? = $ac_status" >&5
11144   (exit $ac_status); } >/dev/null; then
11145   if test -s conftest.err; then
11146     ac_cpp_err=$ac_c_preproc_warn_flag
11147   else
11148     ac_cpp_err=
11149   fi
11150 else
11151   ac_cpp_err=yes
11152 fi
11153 if test -z "$ac_cpp_err"; then
11154   eval "$as_ac_Header=yes"
11155 else
11156   echo "$as_me: failed program was:" >&5
11157   cat conftest.$ac_ext >&5
11158   eval "$as_ac_Header=no"
11159 fi
11160 rm -f conftest.err conftest.$ac_ext
11161 fi
11162 echo "$as_me:11162: result: `eval echo '${'$as_ac_Header'}'`" >&5
11163 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11164 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11165   cat >>confdefs.h <<EOF
11166 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11167 EOF
11168
11169         PLUGINS="${PLUGINS} qnx"
11170         qnx_LDFLAGS="${qnx_LDFLAGS} -lasound -lph"
11171
11172 fi
11173 done
11174
11175     fi
11176
11177 # Check whether --enable-intfwin or --disable-intfwin was given.
11178 if test "${enable_intfwin+set}" = set; then
11179   enableval="$enable_intfwin"
11180    if test "x$enable_intfwin" != "xno"
11181   then
11182
11183 # Check whether --with-bcbuilder or --without-bcbuilder was given.
11184 if test "${with_bcbuilder+set}" = set; then
11185   withval="$with_bcbuilder"
11186
11187 fi;
11188     if test "x$with_bcbuilder" != "x"
11189     then
11190       BCBUILDER="$with_bcbuilder"
11191     fi
11192     PLUGINS="${PLUGINS} intfwin"
11193   fi
11194 fi;
11195
11196 # Check whether --enable-ncurses or --disable-ncurses was given.
11197 if test "${enable_ncurses+set}" = set; then
11198   enableval="$enable_ncurses"
11199   if test x$enable_ncurses = xyes; then
11200      PLUGINS="${PLUGINS} ncurses"
11201      ncurses_LDFLAGS="${ncurses_LDFLAGS} -lncurses"
11202    fi
11203 fi;
11204
11205 # Check whether --enable-lirc or --disable-lirc was given.
11206 if test "${enable_lirc+set}" = set; then
11207   enableval="$enable_lirc"
11208
11209 fi;
11210 if test x$enable_lirc = xyes
11211 then
11212   echo "$as_me:11212: checking for lirc/lirc_client.h" >&5
11213 echo $ECHO_N "checking for lirc/lirc_client.h... $ECHO_C" >&6
11214 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
11215   echo $ECHO_N "(cached) $ECHO_C" >&6
11216 else
11217   cat >conftest.$ac_ext <<_ACEOF
11218 #line 11218 "configure"
11219 #include "confdefs.h"
11220 #include <lirc/lirc_client.h>
11221 _ACEOF
11222 if { (eval echo "$as_me:11222: \"$ac_cpp conftest.$ac_ext\"") >&5
11223   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11224   ac_status=$?
11225   egrep -v '^ *\+' conftest.er1 >conftest.err
11226   rm -f conftest.er1
11227   cat conftest.err >&5
11228   echo "$as_me:11228: \$? = $ac_status" >&5
11229   (exit $ac_status); } >/dev/null; then
11230   if test -s conftest.err; then
11231     ac_cpp_err=$ac_c_preproc_warn_flag
11232   else
11233     ac_cpp_err=
11234   fi
11235 else
11236   ac_cpp_err=yes
11237 fi
11238 if test -z "$ac_cpp_err"; then
11239   ac_cv_header_lirc_lirc_client_h=yes
11240 else
11241   echo "$as_me: failed program was:" >&5
11242   cat conftest.$ac_ext >&5
11243   ac_cv_header_lirc_lirc_client_h=no
11244 fi
11245 rm -f conftest.err conftest.$ac_ext
11246 fi
11247 echo "$as_me:11247: result: $ac_cv_header_lirc_lirc_client_h" >&5
11248 echo "${ECHO_T}$ac_cv_header_lirc_lirc_client_h" >&6
11249 if test $ac_cv_header_lirc_lirc_client_h = yes; then
11250   echo "$as_me:11250: checking for lirc_init in -llirc_client" >&5
11251 echo $ECHO_N "checking for lirc_init in -llirc_client... $ECHO_C" >&6
11252 if test "${ac_cv_lib_lirc_client_lirc_init+set}" = set; then
11253   echo $ECHO_N "(cached) $ECHO_C" >&6
11254 else
11255   ac_check_lib_save_LIBS=$LIBS
11256 LIBS="-llirc_client  $LIBS"
11257 cat >conftest.$ac_ext <<_ACEOF
11258 #line 11258 "configure"
11259 #include "confdefs.h"
11260
11261 /* Override any gcc2 internal prototype to avoid an error.  */
11262 #ifdef __cplusplus
11263 extern "C"
11264 #endif
11265 /* We use char because int might match the return type of a gcc2
11266    builtin and then its argument prototype would still apply.  */
11267 char lirc_init ();
11268 int
11269 main ()
11270 {
11271 lirc_init ();
11272   ;
11273   return 0;
11274 }
11275 _ACEOF
11276 rm -f conftest.$ac_objext conftest$ac_exeext
11277 if { (eval echo "$as_me:11277: \"$ac_link\"") >&5
11278   (eval $ac_link) 2>&5
11279   ac_status=$?
11280   echo "$as_me:11280: \$? = $ac_status" >&5
11281   (exit $ac_status); } &&
11282          { ac_try='test -s conftest$ac_exeext'
11283   { (eval echo "$as_me:11283: \"$ac_try\"") >&5
11284   (eval $ac_try) 2>&5
11285   ac_status=$?
11286   echo "$as_me:11286: \$? = $ac_status" >&5
11287   (exit $ac_status); }; }; then
11288   ac_cv_lib_lirc_client_lirc_init=yes
11289 else
11290   echo "$as_me: failed program was:" >&5
11291 cat conftest.$ac_ext >&5
11292 ac_cv_lib_lirc_client_lirc_init=no
11293 fi
11294 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11295 LIBS=$ac_check_lib_save_LIBS
11296 fi
11297 echo "$as_me:11297: result: $ac_cv_lib_lirc_client_lirc_init" >&5
11298 echo "${ECHO_T}$ac_cv_lib_lirc_client_lirc_init" >&6
11299 if test $ac_cv_lib_lirc_client_lirc_init = yes; then
11300   have_lirc="true"
11301 else
11302   have_lirc="false"
11303 fi
11304
11305 else
11306   have_lirc="false"
11307 fi
11308
11309   if test x$have_lirc = xtrue
11310   then
11311     PLUGINS="${PLUGINS} lirc"
11312     lirc_LDFLAGS="${lirc_LDFLAGS} -llirc_client"
11313   fi
11314 fi
11315
11316 # Check whether --with- or --without- was given.
11317 if test "${with_+set}" = set; then
11318   withval="$with_"
11319
11320 fi;
11321
11322 # Check whether --with-words or --without-words was given.
11323 if test "${with_words+set}" = set; then
11324   withval="$with_words"
11325
11326 fi;
11327   case "x$with_words" in
11328     xbig)
11329       ac_cv_c_bigendian=yes
11330       ;;
11331     xlittle)
11332       ac_cv_c_bigendian=no
11333       ;;
11334     *)
11335                   echo "$as_me:11335: checking whether the byte order is big-endian" >&5
11336 echo $ECHO_N "checking whether the byte order is big-endian... $ECHO_C" >&6
11337 if test "${ac_cv_c_bigendian+set}" = set; then
11338   echo $ECHO_N "(cached) $ECHO_C" >&6
11339 else
11340   ac_cv_c_bigendian=unknown
11341         cat >conftest.c <<EOF
11342         short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
11343         short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
11344         void _a(void) { char*s = (char*)am; s = (char *)ai; }
11345         short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
11346         short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
11347         void _e(void) { char*s = (char*)em; s = (char*)ei; }
11348         int main(void) { _a(); _e(); return 0; }
11349 EOF
11350
11351         if test -f conftest.c
11352         then
11353           if ${CC-cc} -c conftest.c -o conftest.o >config.log 2>&1 \
11354               && test -f conftest.o
11355           then
11356             if test "`strings conftest.o | grep BIGenDianSyS`"
11357             then
11358               ac_cv_c_bigendian=yes
11359             fi
11360             if test "`strings conftest.o | grep LiTTleEnDian`"
11361             then
11362               ac_cv_c_bigendian=no
11363             fi
11364           fi
11365         fi
11366
11367 fi
11368 echo "$as_me:11368: result: $ac_cv_c_bigendian" >&5
11369 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
11370       if test x$ac_cv_c_bigendian = xunknown
11371       then
11372         { { echo "$as_me:11372: error: Could not guess endianness, please use --with-words" >&5
11373 echo "$as_me: error: Could not guess endianness, please use --with-words" >&2;}
11374    { (exit 1); exit 1; }; }
11375       fi
11376       ;;
11377   esac
11378 if test $ac_cv_c_bigendian = yes
11379 then
11380
11381 cat >>confdefs.h <<\EOF
11382 #define WORDS_BIGENDIAN 1
11383 EOF
11384
11385 fi
11386
11387 GPROF=0
11388 # Check whether --enable-gprof or --disable-gprof was given.
11389 if test "${enable_gprof+set}" = set; then
11390   enableval="$enable_gprof"
11391    if test "x$enable_gprof" = "xyes"; then GPROF=1; fi
11392 fi;
11393
11394 CPROF=0
11395 # Check whether --enable-cprof or --disable-cprof was given.
11396 if test "${enable_cprof+set}" = set; then
11397   enableval="$enable_cprof"
11398    if test "x$enable_cprof" = "xyes";
11399   then
11400     LDFLAGS="${LDFLAGS} -lcprof"
11401     CPROF=1
11402   fi
11403
11404 fi;
11405
11406 # Check whether --enable-pth or --disable-pth was given.
11407 if test "${enable_pth+set}" = set; then
11408   enableval="$enable_pth"
11409    if test "x$enable_pth" = "xyes"; then
11410
11411 echo "$as_me:11411: checking for pth_init in -lpth" >&5
11412 echo $ECHO_N "checking for pth_init in -lpth... $ECHO_C" >&6
11413 if test "${ac_cv_lib_pth_pth_init+set}" = set; then
11414   echo $ECHO_N "(cached) $ECHO_C" >&6
11415 else
11416   ac_check_lib_save_LIBS=$LIBS
11417 LIBS="-lpth  $LIBS"
11418 cat >conftest.$ac_ext <<_ACEOF
11419 #line 11419 "configure"
11420 #include "confdefs.h"
11421
11422 /* Override any gcc2 internal prototype to avoid an error.  */
11423 #ifdef __cplusplus
11424 extern "C"
11425 #endif
11426 /* We use char because int might match the return type of a gcc2
11427    builtin and then its argument prototype would still apply.  */
11428 char pth_init ();
11429 int
11430 main ()
11431 {
11432 pth_init ();
11433   ;
11434   return 0;
11435 }
11436 _ACEOF
11437 rm -f conftest.$ac_objext conftest$ac_exeext
11438 if { (eval echo "$as_me:11438: \"$ac_link\"") >&5
11439   (eval $ac_link) 2>&5
11440   ac_status=$?
11441   echo "$as_me:11441: \$? = $ac_status" >&5
11442   (exit $ac_status); } &&
11443          { ac_try='test -s conftest$ac_exeext'
11444   { (eval echo "$as_me:11444: \"$ac_try\"") >&5
11445   (eval $ac_try) 2>&5
11446   ac_status=$?
11447   echo "$as_me:11447: \$? = $ac_status" >&5
11448   (exit $ac_status); }; }; then
11449   ac_cv_lib_pth_pth_init=yes
11450 else
11451   echo "$as_me: failed program was:" >&5
11452 cat conftest.$ac_ext >&5
11453 ac_cv_lib_pth_pth_init=no
11454 fi
11455 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11456 LIBS=$ac_check_lib_save_LIBS
11457 fi
11458 echo "$as_me:11458: result: $ac_cv_lib_pth_pth_init" >&5
11459 echo "${ECHO_T}$ac_cv_lib_pth_pth_init" >&6
11460 if test $ac_cv_lib_pth_pth_init = yes; then
11461   cat >>confdefs.h <<EOF
11462 #define HAVE_LIBPTH 1
11463 EOF
11464
11465   LIBS="-lpth $LIBS"
11466
11467 fi
11468
11469     cat >conftest.$ac_ext <<_ACEOF
11470 #line 11470 "configure"
11471 #include "confdefs.h"
11472 #include <pth.h>
11473
11474 _ACEOF
11475 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11476   egrep "pth_init" >/dev/null 2>&1; then
11477
11478 cat >>confdefs.h <<\EOF
11479 #define PTH_INIT_IN_PTH_H 1
11480 EOF
11481
11482     THREAD_LIB="-lpth"
11483     fi
11484 fi
11485 rm -f conftest*
11486
11487 fi;
11488
11489 # Check whether --enable-st or --disable-st was given.
11490 if test "${enable_st+set}" = set; then
11491   enableval="$enable_st"
11492    if test "x$enable_st" = "xyes"; then
11493
11494 echo "$as_me:11494: checking for st_init in -lst" >&5
11495 echo $ECHO_N "checking for st_init in -lst... $ECHO_C" >&6
11496 if test "${ac_cv_lib_st_st_init+set}" = set; then
11497   echo $ECHO_N "(cached) $ECHO_C" >&6
11498 else
11499   ac_check_lib_save_LIBS=$LIBS
11500 LIBS="-lst  $LIBS"
11501 cat >conftest.$ac_ext <<_ACEOF
11502 #line 11502 "configure"
11503 #include "confdefs.h"
11504
11505 /* Override any gcc2 internal prototype to avoid an error.  */
11506 #ifdef __cplusplus
11507 extern "C"
11508 #endif
11509 /* We use char because int might match the return type of a gcc2
11510    builtin and then its argument prototype would still apply.  */
11511 char st_init ();
11512 int
11513 main ()
11514 {
11515 st_init ();
11516   ;
11517   return 0;
11518 }
11519 _ACEOF
11520 rm -f conftest.$ac_objext conftest$ac_exeext
11521 if { (eval echo "$as_me:11521: \"$ac_link\"") >&5
11522   (eval $ac_link) 2>&5
11523   ac_status=$?
11524   echo "$as_me:11524: \$? = $ac_status" >&5
11525   (exit $ac_status); } &&
11526          { ac_try='test -s conftest$ac_exeext'
11527   { (eval echo "$as_me:11527: \"$ac_try\"") >&5
11528   (eval $ac_try) 2>&5
11529   ac_status=$?
11530   echo "$as_me:11530: \$? = $ac_status" >&5
11531   (exit $ac_status); }; }; then
11532   ac_cv_lib_st_st_init=yes
11533 else
11534   echo "$as_me: failed program was:" >&5
11535 cat conftest.$ac_ext >&5
11536 ac_cv_lib_st_st_init=no
11537 fi
11538 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11539 LIBS=$ac_check_lib_save_LIBS
11540 fi
11541 echo "$as_me:11541: result: $ac_cv_lib_st_st_init" >&5
11542 echo "${ECHO_T}$ac_cv_lib_st_st_init" >&6
11543 if test $ac_cv_lib_st_st_init = yes; then
11544   cat >>confdefs.h <<EOF
11545 #define HAVE_LIBST 1
11546 EOF
11547
11548   LIBS="-lst $LIBS"
11549
11550 fi
11551
11552     cat >conftest.$ac_ext <<_ACEOF
11553 #line 11553 "configure"
11554 #include "confdefs.h"
11555 #include <st.h>
11556
11557 _ACEOF
11558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11559   egrep "st_init" >/dev/null 2>&1; then
11560
11561 cat >>confdefs.h <<\EOF
11562 #define ST_INIT_IN_ST_H 1
11563 EOF
11564
11565     THREAD_LIB="-lst"
11566     fi
11567 fi
11568 rm -f conftest*
11569
11570 fi;
11571
11572 LDFLAGS="${LDFLAGS} ${THREAD_LIB}"
11573
11574 # Check whether --enable-plugins or --disable-plugins was given.
11575 if test "${enable_plugins+set}" = set; then
11576   enableval="$enable_plugins"
11577   if test x$enable_plugins = xno
11578    then
11579      BUILTINS="${BUILTINS} ${PLUGINS}"
11580      PLUGINS=
11581    fi
11582 fi;
11583
11584 if test x$ac_cv_header_dlfcn_h = xno -a x$ac_cv_header_image_h = xno -a x$SYS != xmingw32
11585 then
11586   echo "*** Your system doesn't have plug-in support. All plug-ins will be compiled"
11587   echo "as built-in"
11588   BUILTINS="${BUILTINS} ${PLUGINS}"
11589   PLUGINS=
11590 fi
11591
11592 cat >>confdefs.h <<EOF
11593 #define VERSION_MESSAGE "vlc $VERSION $CODENAME Copyright 1996-2002 VideoLAN"
11594 EOF
11595
11596 cat >>confdefs.h <<EOF
11597 #define COPYRIGHT_MESSAGE "VideoLAN Client - version $VERSION $CODENAME - (c) 1996-2002 VideoLAN"
11598 EOF
11599
11600 VLC_SYMBOL="`echo ${VERSION} | tr .- __`"
11601
11602 cat >>confdefs.h <<EOF
11603 #define MODULE_SUFFIX "__MODULE_$VLC_SYMBOL"
11604 EOF
11605
11606 cat >>confdefs.h <<EOF
11607 #define MODULE_SYMBOL $VLC_SYMBOL
11608 EOF
11609
11610 DATA_PATH="${ac_tool_prefix}/share/videolan"
11611
11612 PLUGIN_PATH="${ac_tool_prefix}/share/videolan"
11613
11614 ac_config_files="$ac_config_files Makefile.config Makefile.opts po/Makefile.in"
11615 cat >confcache <<\_ACEOF
11616 # This file is a shell script that caches the results of configure
11617 # tests run on this system so they can be shared between configure
11618 # scripts and configure runs, see configure's option --config-cache.
11619 # It is not useful on other systems.  If it contains results you don't
11620 # want to keep, you may remove or edit it.
11621 #
11622 # config.status only pays attention to the cache file if you give it
11623 # the --recheck option to rerun configure.
11624 #
11625 # `ac_cv_env_foo' variables (set or unset) will be overriden when
11626 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11627 # following values.
11628
11629 _ACEOF
11630
11631 # The following way of writing the cache mishandles newlines in values,
11632 # but we know of no workaround that is simple, portable, and efficient.
11633 # So, don't put newlines in cache variables' values.
11634 # Ultrix sh set writes to stderr and can't be redirected directly,
11635 # and sets the high bit in the cache file unless we assign to the vars.
11636 {
11637   (set) 2>&1 |
11638     case `(ac_space=' '; set | grep ac_space) 2>&1` in
11639     *ac_space=\ *)
11640       # `set' does not quote correctly, so add quotes (double-quote
11641       # substitution turns \\\\ into \\, and sed turns \\ into \).
11642       sed -n \
11643         "s/'/'\\\\''/g;
11644           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11645       ;;
11646     *)
11647       # `set' quotes correctly as required by POSIX, so do not add quotes.
11648       sed -n \
11649         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11650       ;;
11651     esac;
11652 } |
11653   sed '
11654      t clear
11655      : clear
11656      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11657      t end
11658      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11659      : end' >>confcache
11660 if cmp -s $cache_file confcache; then :; else
11661   if test -w $cache_file; then
11662     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11663     cat confcache >$cache_file
11664   else
11665     echo "not updating unwritable cache $cache_file"
11666   fi
11667 fi
11668 rm -f confcache
11669
11670 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11671 # Let make expand exec_prefix.
11672 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11673
11674 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11675 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11676 # trailing colons and then remove the whole line if VPATH becomes empty
11677 # (actually we leave an empty line to preserve line numbers).
11678 if test "x$srcdir" = x.; then
11679   ac_vpsub='/^[         ]*VPATH[        ]*=/{
11680 s/:*\$(srcdir):*/:/;
11681 s/:*\${srcdir}:*/:/;
11682 s/:*@srcdir@:*/:/;
11683 s/^\([^=]*=[    ]*\):*/\1/;
11684 s/:*$//;
11685 s/^[^=]*=[      ]*$//;
11686 }'
11687 fi
11688
11689 DEFS=-DHAVE_CONFIG_H
11690
11691 : ${CONFIG_STATUS=./config.status}
11692 ac_clean_files_save=$ac_clean_files
11693 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11694 { echo "$as_me:11694: creating $CONFIG_STATUS" >&5
11695 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11696 cat >$CONFIG_STATUS <<_ACEOF
11697 #! $SHELL
11698 # Generated automatically by configure.
11699 # Run this file to recreate the current configuration.
11700 # Compiler output produced by configure, useful for debugging
11701 # configure, is in config.log if it exists.
11702
11703 debug=false
11704 SHELL=\${CONFIG_SHELL-$SHELL}
11705 ac_cs_invocation="\$0 \$@"
11706
11707 _ACEOF
11708
11709 cat >>$CONFIG_STATUS <<\_ACEOF
11710 # Be Bourne compatible
11711 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11712   emulate sh
11713   NULLCMD=:
11714 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11715   set -o posix
11716 fi
11717
11718 # Name of the executable.
11719 as_me=`echo "$0" |sed 's,.*[\\/],,'`
11720
11721 if expr a : '\(a\)' >/dev/null 2>&1; then
11722   as_expr=expr
11723 else
11724   as_expr=false
11725 fi
11726
11727 rm -f conf$$ conf$$.exe conf$$.file
11728 echo >conf$$.file
11729 if ln -s conf$$.file conf$$ 2>/dev/null; then
11730   # We could just check for DJGPP; but this test a) works b) is more generic
11731   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11732   if test -f conf$$.exe; then
11733     # Don't use ln at all; we don't have any links
11734     as_ln_s='cp -p'
11735   else
11736     as_ln_s='ln -s'
11737   fi
11738 elif ln conf$$.file conf$$ 2>/dev/null; then
11739   as_ln_s=ln
11740 else
11741   as_ln_s='cp -p'
11742 fi
11743 rm -f conf$$ conf$$.exe conf$$.file
11744
11745 as_executable_p="test -f"
11746
11747 # Support unset when possible.
11748 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
11749   as_unset=unset
11750 else
11751   as_unset=false
11752 fi
11753
11754 # NLS nuisances.
11755 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
11756 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
11757 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
11758 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
11759 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
11760 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
11761 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
11762 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
11763
11764 # IFS
11765 # We need space, tab and new line, in precisely that order.
11766 as_nl='
11767 '
11768 IFS="   $as_nl"
11769
11770 # CDPATH.
11771 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
11772
11773 exec 6>&1
11774
11775 _ACEOF
11776
11777 # Files that config.status was made for.
11778 if test -n "$ac_config_files"; then
11779   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11780 fi
11781
11782 if test -n "$ac_config_headers"; then
11783   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11784 fi
11785
11786 if test -n "$ac_config_links"; then
11787   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11788 fi
11789
11790 if test -n "$ac_config_commands"; then
11791   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11792 fi
11793
11794 cat >>$CONFIG_STATUS <<\EOF
11795
11796 ac_cs_usage="\
11797 \`$as_me' instantiates files from templates according to the
11798 current configuration.
11799
11800 Usage: $0 [OPTIONS] [FILE]...
11801
11802   -h, --help       print this help, then exit
11803   -V, --version    print version number, then exit
11804   -d, --debug      don't remove temporary files
11805       --recheck    update $as_me by reconfiguring in the same conditions
11806   --file=FILE[:TEMPLATE]
11807                    instantiate the configuration file FILE
11808   --header=FILE[:TEMPLATE]
11809                    instantiate the configuration header FILE
11810
11811 Configuration files:
11812 $config_files
11813
11814 Configuration headers:
11815 $config_headers
11816
11817 Configuration commands:
11818 $config_commands
11819
11820 Report bugs to <bug-autoconf@gnu.org>."
11821 EOF
11822
11823 cat >>$CONFIG_STATUS <<EOF
11824 ac_cs_version="\\
11825 config.status
11826 configured by $0, generated by GNU Autoconf 2.52,
11827   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11828
11829 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
11830 Free Software Foundation, Inc.
11831 This config.status script is free software; the Free Software Foundation
11832 gives unlimited permission to copy, distribute and modify it."
11833 srcdir=$srcdir
11834 INSTALL="$INSTALL"
11835 EOF
11836
11837 cat >>$CONFIG_STATUS <<\EOF
11838 # If no file are specified by the user, then we need to provide default
11839 # value.  By we need to know if files were specified by the user.
11840 ac_need_defaults=:
11841 while test $# != 0
11842 do
11843   case $1 in
11844   --*=*)
11845     ac_option=`expr "x$1" : 'x\([^=]*\)='`
11846     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11847     shift
11848     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
11849     shift
11850     ;;
11851   -*);;
11852   *) # This is not an option, so the user has probably given explicit
11853      # arguments.
11854      ac_need_defaults=false;;
11855   esac
11856
11857   case $1 in
11858   # Handling of the options.
11859 EOF
11860 cat >>$CONFIG_STATUS <<EOF
11861   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11862     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
11863     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
11864 EOF
11865 cat >>$CONFIG_STATUS <<\EOF
11866   --version | --vers* | -V )
11867     echo "$ac_cs_version"; exit 0 ;;
11868   --he | --h)
11869     # Conflict between --help and --header
11870     { { echo "$as_me:11870: error: ambiguous option: $1
11871 Try \`$0 --help' for more information." >&5
11872 echo "$as_me: error: ambiguous option: $1
11873 Try \`$0 --help' for more information." >&2;}
11874    { (exit 1); exit 1; }; };;
11875   --help | --hel | -h )
11876     echo "$ac_cs_usage"; exit 0 ;;
11877   --debug | --d* | -d )
11878     debug=: ;;
11879   --file | --fil | --fi | --f )
11880     shift
11881     CONFIG_FILES="$CONFIG_FILES $1"
11882     ac_need_defaults=false;;
11883   --header | --heade | --head | --hea )
11884     shift
11885     CONFIG_HEADERS="$CONFIG_HEADERS $1"
11886     ac_need_defaults=false;;
11887
11888   # This is an error.
11889   -*) { { echo "$as_me:11889: error: unrecognized option: $1
11890 Try \`$0 --help' for more information." >&5
11891 echo "$as_me: error: unrecognized option: $1
11892 Try \`$0 --help' for more information." >&2;}
11893    { (exit 1); exit 1; }; } ;;
11894
11895   *) ac_config_targets="$ac_config_targets $1" ;;
11896
11897   esac
11898   shift
11899 done
11900
11901 exec 5>>config.log
11902 cat >&5 << _ACEOF
11903
11904 ## ----------------------- ##
11905 ## Running config.status.  ##
11906 ## ----------------------- ##
11907
11908 This file was extended by $as_me 2.52, executed with
11909   CONFIG_FILES    = $CONFIG_FILES
11910   CONFIG_HEADERS  = $CONFIG_HEADERS
11911   CONFIG_LINKS    = $CONFIG_LINKS
11912   CONFIG_COMMANDS = $CONFIG_COMMANDS
11913   > $ac_cs_invocation
11914 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11915
11916 _ACEOF
11917 EOF
11918
11919 cat >>$CONFIG_STATUS <<EOF
11920 #
11921 # INIT-COMMANDS section.
11922 #
11923
11924 EOF
11925
11926 cat >>$CONFIG_STATUS <<\EOF
11927 for ac_config_target in $ac_config_targets
11928 do
11929   case "$ac_config_target" in
11930   # Handling of arguments.
11931   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
11932   "Makefile.opts" ) CONFIG_FILES="$CONFIG_FILES Makefile.opts" ;;
11933   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
11934   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11935   "include/defs.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/defs.h" ;;
11936   *) { { echo "$as_me:11936: error: invalid argument: $ac_config_target" >&5
11937 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11938    { (exit 1); exit 1; }; };;
11939   esac
11940 done
11941
11942 # If the user did not use the arguments to specify the items to instantiate,
11943 # then the envvar interface is used.  Set only those that are not.
11944 # We use the long form for the default assignment because of an extremely
11945 # bizarre bug on SunOS 4.1.3.
11946 if $ac_need_defaults; then
11947   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11948   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11949   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11950 fi
11951
11952 # Create a temporary directory, and hook for its removal unless debugging.
11953 $debug ||
11954 {
11955   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11956   trap '{ (exit 1); exit 1; }' 1 2 13 15
11957 }
11958
11959 # Create a (secure) tmp directory for tmp files.
11960 : ${TMPDIR=/tmp}
11961 {
11962   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
11963   test -n "$tmp" && test -d "$tmp"
11964 }  ||
11965 {
11966   tmp=$TMPDIR/cs$$-$RANDOM
11967   (umask 077 && mkdir $tmp)
11968 } ||
11969 {
11970    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
11971    { (exit 1); exit 1; }
11972 }
11973
11974 EOF
11975
11976 cat >>$CONFIG_STATUS <<EOF
11977
11978 #
11979 # CONFIG_FILES section.
11980 #
11981
11982 # No need to generate the scripts if there are no CONFIG_FILES.
11983 # This happens for instance when ./config.status config.h
11984 if test -n "\$CONFIG_FILES"; then
11985   # Protect against being on the right side of a sed subst in config.status.
11986   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11987    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11988 s,@SHELL@,$SHELL,;t t
11989 s,@exec_prefix@,$exec_prefix,;t t
11990 s,@prefix@,$prefix,;t t
11991 s,@program_transform_name@,$program_transform_name,;t t
11992 s,@bindir@,$bindir,;t t
11993 s,@sbindir@,$sbindir,;t t
11994 s,@libexecdir@,$libexecdir,;t t
11995 s,@datadir@,$datadir,;t t
11996 s,@sysconfdir@,$sysconfdir,;t t
11997 s,@sharedstatedir@,$sharedstatedir,;t t
11998 s,@localstatedir@,$localstatedir,;t t
11999 s,@libdir@,$libdir,;t t
12000 s,@includedir@,$includedir,;t t
12001 s,@oldincludedir@,$oldincludedir,;t t
12002 s,@infodir@,$infodir,;t t
12003 s,@mandir@,$mandir,;t t
12004 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12005 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12006 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12007 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12008 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12009 s,@build_alias@,$build_alias,;t t
12010 s,@host_alias@,$host_alias,;t t
12011 s,@target_alias@,$target_alias,;t t
12012 s,@ECHO_C@,$ECHO_C,;t t
12013 s,@ECHO_N@,$ECHO_N,;t t
12014 s,@ECHO_T@,$ECHO_T,;t t
12015 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12016 s,@DEFS@,$DEFS,;t t
12017 s,@LIBS@,$LIBS,;t t
12018 s,@build@,$build,;t t
12019 s,@build_cpu@,$build_cpu,;t t
12020 s,@build_vendor@,$build_vendor,;t t
12021 s,@build_os@,$build_os,;t t
12022 s,@host@,$host,;t t
12023 s,@host_cpu@,$host_cpu,;t t
12024 s,@host_vendor@,$host_vendor,;t t
12025 s,@host_os@,$host_os,;t t
12026 s,@target@,$target,;t t
12027 s,@target_cpu@,$target_cpu,;t t
12028 s,@target_vendor@,$target_vendor,;t t
12029 s,@target_os@,$target_os,;t t
12030 s,@SET_MAKE@,$SET_MAKE,;t t
12031 s,@CC@,$CC,;t t
12032 s,@CFLAGS@,$CFLAGS,;t t
12033 s,@LDFLAGS@,$LDFLAGS,;t t
12034 s,@CPPFLAGS@,$CPPFLAGS,;t t
12035 s,@ac_ct_CC@,$ac_ct_CC,;t t
12036 s,@EXEEXT@,$EXEEXT,;t t
12037 s,@OBJEXT@,$OBJEXT,;t t
12038 s,@CPP@,$CPP,;t t
12039 s,@RANLIB@,$RANLIB,;t t
12040 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12041 s,@STRIP@,$STRIP,;t t
12042 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12043 s,@GMAKE@,$GMAKE,;t t
12044 s,@ALLOCA@,$ALLOCA,;t t
12045 s,@GLIBC21@,$GLIBC21,;t t
12046 s,@LIBICONV@,$LIBICONV,;t t
12047 s,@USE_NLS@,$USE_NLS,;t t
12048 s,@MSGFMT@,$MSGFMT,;t t
12049 s,@GMSGFMT@,$GMSGFMT,;t t
12050 s,@XGETTEXT@,$XGETTEXT,;t t
12051 s,@INTLBISON@,$INTLBISON,;t t
12052 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
12053 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
12054 s,@CATALOGS@,$CATALOGS,;t t
12055 s,@CATOBJEXT@,$CATOBJEXT,;t t
12056 s,@GMOFILES@,$GMOFILES,;t t
12057 s,@INTLLIBS@,$INTLLIBS,;t t
12058 s,@INTLOBJS@,$INTLOBJS,;t t
12059 s,@POFILES@,$POFILES,;t t
12060 s,@POSUB@,$POSUB,;t t
12061 s,@DATADIRNAME@,$DATADIRNAME,;t t
12062 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
12063 s,@GENCAT@,$GENCAT,;t t
12064 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
12065 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
12066 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12067 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12068 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12069 s,@WINDRES@,$WINDRES,;t t
12070 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
12071 s,@SDL12_CONFIG@,$SDL12_CONFIG,;t t
12072 s,@SDL11_CONFIG@,$SDL11_CONFIG,;t t
12073 s,@SDL_CONFIG@,$SDL_CONFIG,;t t
12074 s,@ESD_CONFIG@,$ESD_CONFIG,;t t
12075 s,@ARTS_CONFIG@,$ARTS_CONFIG,;t t
12076 s,@GTK12_CONFIG@,$GTK12_CONFIG,;t t
12077 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
12078 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
12079 s,@DATA_PATH@,$DATA_PATH,;t t
12080 s,@PLUGIN_PATH@,$PLUGIN_PATH,;t t
12081 s,@SYS@,$SYS,;t t
12082 s,@ARCH@,$ARCH,;t t
12083 s,@PLUGINS@,$PLUGINS,;t t
12084 s,@BUILTINS@,$BUILTINS,;t t
12085 s,@ALIASES@,$ALIASES,;t t
12086 s,@DEBUG@,$DEBUG,;t t
12087 s,@ASM@,$ASM,;t t
12088 s,@CPROF@,$CPROF,;t t
12089 s,@GPROF@,$GPROF,;t t
12090 s,@OPTIMS@,$OPTIMS,;t t
12091 s,@TUNING@,$TUNING,;t t
12092 s,@RELEASE@,$RELEASE,;t t
12093 s,@MOC@,$MOC,;t t
12094 s,@BCBUILDER@,$BCBUILDER,;t t
12095 s,@PACKAGE@,$PACKAGE,;t t
12096 s,@VERSION@,$VERSION,;t t
12097 s,@NEED_GETOPT@,$NEED_GETOPT,;t t
12098 s,@CFLAGS_OPTIM@,$CFLAGS_OPTIM,;t t
12099 s,@CFLAGS_OPTIM_NODEBUG@,$CFLAGS_OPTIM_NODEBUG,;t t
12100 s,@vlc_CFLAGS@,$vlc_CFLAGS,;t t
12101 s,@plugins_CFLAGS@,$plugins_CFLAGS,;t t
12102 s,@builtins_CFLAGS@,$builtins_CFLAGS,;t t
12103 s,@a52_CFLAGS@,$a52_CFLAGS,;t t
12104 s,@arts_CFLAGS@,$arts_CFLAGS,;t t
12105 s,@dvd_CFLAGS@,$dvd_CFLAGS,;t t
12106 s,@dvdread_CFLAGS@,$dvdread_CFLAGS,;t t
12107 s,@mpeg_ts_dvbpsi_CFLAGS@,$mpeg_ts_dvbpsi_CFLAGS,;t t
12108 s,@directx_CFLAGS@,$directx_CFLAGS,;t t
12109 s,@esd_CFLAGS@,$esd_CFLAGS,;t t
12110 s,@familiar_CFLAGS@,$familiar_CFLAGS,;t t
12111 s,@ffmpeg_CFLAGS@,$ffmpeg_CFLAGS,;t t
12112 s,@glide_CFLAGS@,$glide_CFLAGS,;t t
12113 s,@gnome_CFLAGS@,$gnome_CFLAGS,;t t
12114 s,@gtk_CFLAGS@,$gtk_CFLAGS,;t t
12115 s,@kde_CFLAGS@,$kde_CFLAGS,;t t
12116 s,@idctaltivec_CFLAGS@,$idctaltivec_CFLAGS,;t t
12117 s,@macosx_CFLAGS@,$macosx_CFLAGS,;t t
12118 s,@mad_CFLAGS@,$mad_CFLAGS,;t t
12119 s,@memcpyaltivec_CFLAGS@,$memcpyaltivec_CFLAGS,;t t
12120 s,@motionaltivec_CFLAGS@,$motionaltivec_CFLAGS,;t t
12121 s,@opie_CFLAGS@,$opie_CFLAGS,;t t
12122 s,@qt_CFLAGS@,$qt_CFLAGS,;t t
12123 s,@qte_CFLAGS@,$qte_CFLAGS,;t t
12124 s,@sdl_CFLAGS@,$sdl_CFLAGS,;t t
12125 s,@x11_CFLAGS@,$x11_CFLAGS,;t t
12126 s,@xvideo_CFLAGS@,$xvideo_CFLAGS,;t t
12127 s,@vlc_LDFLAGS@,$vlc_LDFLAGS,;t t
12128 s,@plugins_LDFLAGS@,$plugins_LDFLAGS,;t t
12129 s,@builtins_LDFLAGS@,$builtins_LDFLAGS,;t t
12130 s,@a52_LDFLAGS@,$a52_LDFLAGS,;t t
12131 s,@aa_LDFLAGS@,$aa_LDFLAGS,;t t
12132 s,@alsa_LDFLAGS@,$alsa_LDFLAGS,;t t
12133 s,@arts_LDFLAGS@,$arts_LDFLAGS,;t t
12134 s,@beos_LDFLAGS@,$beos_LDFLAGS,;t t
12135 s,@chroma_i420_rgb_LDFLAGS@,$chroma_i420_rgb_LDFLAGS,;t t
12136 s,@directx_LDFLAGS@,$directx_LDFLAGS,;t t
12137 s,@dsp_LDFLAGS@,$dsp_LDFLAGS,;t t
12138 s,@dvd_LDFLAGS@,$dvd_LDFLAGS,;t t
12139 s,@dvdread_LDFLAGS@,$dvdread_LDFLAGS,;t t
12140 s,@mpeg_ts_dvbpsi_LDFLAGS@,$mpeg_ts_dvbpsi_LDFLAGS,;t t
12141 s,@esd_LDFLAGS@,$esd_LDFLAGS,;t t
12142 s,@familiar_LDFLAGS@,$familiar_LDFLAGS,;t t
12143 s,@filter_distort_LDFLAGS@,$filter_distort_LDFLAGS,;t t
12144 s,@ffmpeg_LDFLAGS@,$ffmpeg_LDFLAGS,;t t
12145 s,@ggi_LDFLAGS@,$ggi_LDFLAGS,;t t
12146 s,@glide_LDFLAGS@,$glide_LDFLAGS,;t t
12147 s,@gnome_LDFLAGS@,$gnome_LDFLAGS,;t t
12148 s,@gtk_LDFLAGS@,$gtk_LDFLAGS,;t t
12149 s,@http_LDFLAGS@,$http_LDFLAGS,;t t
12150 s,@idctaltivec_LDFLAGS@,$idctaltivec_LDFLAGS,;t t
12151 s,@imdct_LDFLAGS@,$imdct_LDFLAGS,;t t
12152 s,@imdct3dn_LDFLAGS@,$imdct3dn_LDFLAGS,;t t
12153 s,@imdctsse_LDFLAGS@,$imdctsse_LDFLAGS,;t t
12154 s,@ipv4_LDFLAGS@,$ipv4_LDFLAGS,;t t
12155 s,@ipv6_LDFLAGS@,$ipv6_LDFLAGS,;t t
12156 s,@kde_LDFLAGS@,$kde_LDFLAGS,;t t
12157 s,@lirc_LDFLAGS@,$lirc_LDFLAGS,;t t
12158 s,@macosx_LDFLAGS@,$macosx_LDFLAGS,;t t
12159 s,@mad_LDFLAGS@,$mad_LDFLAGS,;t t
12160 s,@memcpyaltivec_LDFLAGS@,$memcpyaltivec_LDFLAGS,;t t
12161 s,@motionaltivec_LDFLAGS@,$motionaltivec_LDFLAGS,;t t
12162 s,@ncurses_LDFLAGS@,$ncurses_LDFLAGS,;t t
12163 s,@opie_LDFLAGS@,$opie_LDFLAGS,;t t
12164 s,@qnx_LDFLAGS@,$qnx_LDFLAGS,;t t
12165 s,@qt_LDFLAGS@,$qt_LDFLAGS,;t t
12166 s,@qte_LDFLAGS@,$qte_LDFLAGS,;t t
12167 s,@rc_LDFLAGS@,$rc_LDFLAGS,;t t
12168 s,@sdl_LDFLAGS@,$sdl_LDFLAGS,;t t
12169 s,@vcd_LDFLAGS@,$vcd_LDFLAGS,;t t
12170 s,@vorbis_LDFLAGS@,$vorbis_LDFLAGS,;t t
12171 s,@waveout_LDFLAGS@,$waveout_LDFLAGS,;t t
12172 s,@x11_LDFLAGS@,$x11_LDFLAGS,;t t
12173 s,@xvideo_LDFLAGS@,$xvideo_LDFLAGS,;t t
12174 CEOF
12175
12176 EOF
12177
12178   cat >>$CONFIG_STATUS <<\EOF
12179   # Split the substitutions into bite-sized pieces for seds with
12180   # small command number limits, like on Digital OSF/1 and HP-UX.
12181   ac_max_sed_lines=48
12182   ac_sed_frag=1 # Number of current file.
12183   ac_beg=1 # First line for current file.
12184   ac_end=$ac_max_sed_lines # Line after last line for current file.
12185   ac_more_lines=:
12186   ac_sed_cmds=
12187   while $ac_more_lines; do
12188     if test $ac_beg -gt 1; then
12189       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12190     else
12191       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12192     fi
12193     if test ! -s $tmp/subs.frag; then
12194       ac_more_lines=false
12195     else
12196       # The purpose of the label and of the branching condition is to
12197       # speed up the sed processing (if there are no `@' at all, there
12198       # is no need to browse any of the substitutions).
12199       # These are the two extra sed commands mentioned above.
12200       (echo ':t
12201   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12202       if test -z "$ac_sed_cmds"; then
12203         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12204       else
12205         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12206       fi
12207       ac_sed_frag=`expr $ac_sed_frag + 1`
12208       ac_beg=$ac_end
12209       ac_end=`expr $ac_end + $ac_max_sed_lines`
12210     fi
12211   done
12212   if test -z "$ac_sed_cmds"; then
12213     ac_sed_cmds=cat
12214   fi
12215 fi # test -n "$CONFIG_FILES"
12216
12217 EOF
12218 cat >>$CONFIG_STATUS <<\EOF
12219 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12220   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12221   case $ac_file in
12222   - | *:- | *:-:* ) # input from stdin
12223         cat >$tmp/stdin
12224         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12225         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12226   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12227         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12228   * )   ac_file_in=$ac_file.in ;;
12229   esac
12230
12231   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12232   ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12233          X"$ac_file" : 'X\(//\)[^/]' \| \
12234          X"$ac_file" : 'X\(//\)$' \| \
12235          X"$ac_file" : 'X\(/\)' \| \
12236          .     : '\(.\)' 2>/dev/null ||
12237 echo X"$ac_file" |
12238     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12239           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12240           /^X\(\/\/\)$/{ s//\1/; q; }
12241           /^X\(\/\).*/{ s//\1/; q; }
12242           s/.*/./; q'`
12243   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12244     { case "$ac_dir" in
12245   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
12246   *)                      as_incr_dir=.;;
12247 esac
12248 as_dummy="$ac_dir"
12249 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
12250   case $as_mkdir_dir in
12251     # Skip DOS drivespec
12252     ?:) as_incr_dir=$as_mkdir_dir ;;
12253     *)
12254       as_incr_dir=$as_incr_dir/$as_mkdir_dir
12255       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
12256     ;;
12257   esac
12258 done; }
12259
12260     ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
12261     # A "../" for each directory in $ac_dir_suffix.
12262     ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
12263   else
12264     ac_dir_suffix= ac_dots=
12265   fi
12266
12267   case $srcdir in
12268   .)  ac_srcdir=.
12269       if test -z "$ac_dots"; then
12270          ac_top_srcdir=.
12271       else
12272          ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
12273       fi ;;
12274   [\\/]* | ?:[\\/]* )
12275       ac_srcdir=$srcdir$ac_dir_suffix;
12276       ac_top_srcdir=$srcdir ;;
12277   *) # Relative path.
12278     ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
12279     ac_top_srcdir=$ac_dots$srcdir ;;
12280   esac
12281
12282   case $INSTALL in
12283   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12284   *) ac_INSTALL=$ac_dots$INSTALL ;;
12285   esac
12286
12287   if test x"$ac_file" != x-; then
12288     { echo "$as_me:12288: creating $ac_file" >&5
12289 echo "$as_me: creating $ac_file" >&6;}
12290     rm -f "$ac_file"
12291   fi
12292   # Let's still pretend it is `configure' which instantiates (i.e., don't
12293   # use $as_me), people would be surprised to read:
12294   #    /* config.h.  Generated automatically by config.status.  */
12295   configure_input="Generated automatically from `echo $ac_file_in |
12296                                                  sed 's,.*/,,'` by configure."
12297
12298   # First look for the input files in the build tree, otherwise in the
12299   # src tree.
12300   ac_file_inputs=`IFS=:
12301     for f in $ac_file_in; do
12302       case $f in
12303       -) echo $tmp/stdin ;;
12304       [\\/$]*)
12305          # Absolute (can't be DOS-style, as IFS=:)
12306          test -f "$f" || { { echo "$as_me:12306: error: cannot find input file: $f" >&5
12307 echo "$as_me: error: cannot find input file: $f" >&2;}
12308    { (exit 1); exit 1; }; }
12309          echo $f;;
12310       *) # Relative
12311          if test -f "$f"; then
12312            # Build tree
12313            echo $f
12314          elif test -f "$srcdir/$f"; then
12315            # Source tree
12316            echo $srcdir/$f
12317          else
12318            # /dev/null tree
12319            { { echo "$as_me:12319: error: cannot find input file: $f" >&5
12320 echo "$as_me: error: cannot find input file: $f" >&2;}
12321    { (exit 1); exit 1; }; }
12322          fi;;
12323       esac
12324     done` || { (exit 1); exit 1; }
12325 EOF
12326 cat >>$CONFIG_STATUS <<EOF
12327   sed "$ac_vpsub
12328 $extrasub
12329 EOF
12330 cat >>$CONFIG_STATUS <<\EOF
12331 :t
12332 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12333 s,@configure_input@,$configure_input,;t t
12334 s,@srcdir@,$ac_srcdir,;t t
12335 s,@top_srcdir@,$ac_top_srcdir,;t t
12336 s,@INSTALL@,$ac_INSTALL,;t t
12337 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12338   rm -f $tmp/stdin
12339   if test x"$ac_file" != x-; then
12340     mv $tmp/out $ac_file
12341   else
12342     cat $tmp/out
12343     rm -f $tmp/out
12344   fi
12345
12346 done
12347 EOF
12348 cat >>$CONFIG_STATUS <<\EOF
12349
12350 #
12351 # CONFIG_HEADER section.
12352 #
12353
12354 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12355 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12356 #
12357 # ac_d sets the value in "#define NAME VALUE" lines.
12358 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
12359 ac_dB='[        ].*$,\1#\2'
12360 ac_dC=' '
12361 ac_dD=',;t'
12362 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12363 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
12364 ac_uB='$,\1#\2define\3'
12365 ac_uC=' '
12366 ac_uD=',;t'
12367
12368 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12369   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12370   case $ac_file in
12371   - | *:- | *:-:* ) # input from stdin
12372         cat >$tmp/stdin
12373         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12374         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12375   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12376         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12377   * )   ac_file_in=$ac_file.in ;;
12378   esac
12379
12380   test x"$ac_file" != x- && { echo "$as_me:12380: creating $ac_file" >&5
12381 echo "$as_me: creating $ac_file" >&6;}
12382
12383   # First look for the input files in the build tree, otherwise in the
12384   # src tree.
12385   ac_file_inputs=`IFS=:
12386     for f in $ac_file_in; do
12387       case $f in
12388       -) echo $tmp/stdin ;;
12389       [\\/$]*)
12390          # Absolute (can't be DOS-style, as IFS=:)
12391          test -f "$f" || { { echo "$as_me:12391: error: cannot find input file: $f" >&5
12392 echo "$as_me: error: cannot find input file: $f" >&2;}
12393    { (exit 1); exit 1; }; }
12394          echo $f;;
12395       *) # Relative
12396          if test -f "$f"; then
12397            # Build tree
12398            echo $f
12399          elif test -f "$srcdir/$f"; then
12400            # Source tree
12401            echo $srcdir/$f
12402          else
12403            # /dev/null tree
12404            { { echo "$as_me:12404: error: cannot find input file: $f" >&5
12405 echo "$as_me: error: cannot find input file: $f" >&2;}
12406    { (exit 1); exit 1; }; }
12407          fi;;
12408       esac
12409     done` || { (exit 1); exit 1; }
12410   # Remove the trailing spaces.
12411   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
12412
12413 EOF
12414
12415 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12416 # `conftest.undefs', that substitutes the proper values into
12417 # config.h.in to produce config.h.  The first handles `#define'
12418 # templates, and the second `#undef' templates.
12419 # And first: Protect against being on the right side of a sed subst in
12420 # config.status.  Protect against being in an unquoted here document
12421 # in config.status.
12422 rm -f conftest.defines conftest.undefs
12423 # Using a here document instead of a string reduces the quoting nightmare.
12424 # Putting comments in sed scripts is not portable.
12425 #
12426 # `end' is used to avoid that the second main sed command (meant for
12427 # 0-ary CPP macros) applies to n-ary macro definitions.
12428 # See the Autoconf documentation for `clear'.
12429 cat >confdef2sed.sed <<\EOF
12430 s/[\\&,]/\\&/g
12431 s,[\\$`],\\&,g
12432 t clear
12433 : clear
12434 s,^[    ]*#[    ]*define[       ][      ]*\(\([^        (][^    (]*\)([^)]*)\)[         ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
12435 t end
12436 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12437 : end
12438 EOF
12439 # If some macros were called several times there might be several times
12440 # the same #defines, which is useless.  Nevertheless, we may not want to
12441 # sort them, since we want the *last* AC-DEFINE to be honored.
12442 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12443 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12444 rm -f confdef2sed.sed
12445
12446 # This sed command replaces #undef with comments.  This is necessary, for
12447 # example, in the case of _POSIX_SOURCE, which is predefined and required
12448 # on some systems where configure will not decide to define it.
12449 cat >>conftest.undefs <<\EOF
12450 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12451 EOF
12452
12453 # Break up conftest.defines because some shells have a limit on the size
12454 # of here documents, and old seds have small limits too (100 cmds).
12455 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12456 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12457 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12458 echo '  :' >>$CONFIG_STATUS
12459 rm -f conftest.tail
12460 while grep . conftest.defines >/dev/null
12461 do
12462   # Write a limited-size here document to $tmp/defines.sed.
12463   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12464   # Speed up: don't consider the non `#define' lines.
12465   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
12466   # Work around the forget-to-reset-the-flag bug.
12467   echo 't clr' >>$CONFIG_STATUS
12468   echo ': clr' >>$CONFIG_STATUS
12469   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12470   echo 'CEOF
12471   sed -f $tmp/defines.sed $tmp/in >$tmp/out
12472   rm -f $tmp/in
12473   mv $tmp/out $tmp/in
12474 ' >>$CONFIG_STATUS
12475   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12476   rm -f conftest.defines
12477   mv conftest.tail conftest.defines
12478 done
12479 rm -f conftest.defines
12480 echo '  fi # egrep' >>$CONFIG_STATUS
12481 echo >>$CONFIG_STATUS
12482
12483 # Break up conftest.undefs because some shells have a limit on the size
12484 # of here documents, and old seds have small limits too (100 cmds).
12485 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
12486 rm -f conftest.tail
12487 while grep . conftest.undefs >/dev/null
12488 do
12489   # Write a limited-size here document to $tmp/undefs.sed.
12490   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12491   # Speed up: don't consider the non `#undef'
12492   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
12493   # Work around the forget-to-reset-the-flag bug.
12494   echo 't clr' >>$CONFIG_STATUS
12495   echo ': clr' >>$CONFIG_STATUS
12496   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12497   echo 'CEOF
12498   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12499   rm -f $tmp/in
12500   mv $tmp/out $tmp/in
12501 ' >>$CONFIG_STATUS
12502   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12503   rm -f conftest.undefs
12504   mv conftest.tail conftest.undefs
12505 done
12506 rm -f conftest.undefs
12507
12508 cat >>$CONFIG_STATUS <<\EOF
12509   # Let's still pretend it is `configure' which instantiates (i.e., don't
12510   # use $as_me), people would be surprised to read:
12511   #    /* config.h.  Generated automatically by config.status.  */
12512   if test x"$ac_file" = x-; then
12513     echo "/* Generated automatically by configure.  */" >$tmp/config.h
12514   else
12515     echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
12516   fi
12517   cat $tmp/in >>$tmp/config.h
12518   rm -f $tmp/in
12519   if test x"$ac_file" != x-; then
12520     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
12521       { echo "$as_me:12521: $ac_file is unchanged" >&5
12522 echo "$as_me: $ac_file is unchanged" >&6;}
12523     else
12524       ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12525          X"$ac_file" : 'X\(//\)[^/]' \| \
12526          X"$ac_file" : 'X\(//\)$' \| \
12527          X"$ac_file" : 'X\(/\)' \| \
12528          .     : '\(.\)' 2>/dev/null ||
12529 echo X"$ac_file" |
12530     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12531           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12532           /^X\(\/\/\)$/{ s//\1/; q; }
12533           /^X\(\/\).*/{ s//\1/; q; }
12534           s/.*/./; q'`
12535       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12536         { case "$ac_dir" in
12537   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
12538   *)                      as_incr_dir=.;;
12539 esac
12540 as_dummy="$ac_dir"
12541 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
12542   case $as_mkdir_dir in
12543     # Skip DOS drivespec
12544     ?:) as_incr_dir=$as_mkdir_dir ;;
12545     *)
12546       as_incr_dir=$as_incr_dir/$as_mkdir_dir
12547       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
12548     ;;
12549   esac
12550 done; }
12551
12552       fi
12553       rm -f $ac_file
12554       mv $tmp/config.h $ac_file
12555     fi
12556   else
12557     cat $tmp/config.h
12558     rm -f $tmp/config.h
12559   fi
12560 done
12561 EOF
12562 cat >>$CONFIG_STATUS <<\EOF
12563
12564 #
12565 # CONFIG_COMMANDS section.
12566 #
12567 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12568   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12569   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12570
12571   case $ac_dest in
12572     default-1 ) for ac_file in $CONFIG_FILES; do
12573         # Support "outfile[:infile[:infile...]]"
12574         case "$ac_file" in
12575           *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12576         esac
12577         # PO directories have a Makefile.in generated from Makefile.in.in.
12578         case "$ac_file" in */Makefile.in)
12579           # Adjust a relative srcdir.
12580           ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12581           ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12582           ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12583           # In autoconf-2.13 it is called $ac_given_srcdir.
12584           # In autoconf-2.50 it is called $srcdir.
12585           test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12586           case "$ac_given_srcdir" in
12587             .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12588             /*) top_srcdir="$ac_given_srcdir" ;;
12589             *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
12590           esac
12591           if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12592             rm -f "$ac_dir/POTFILES"
12593             test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12594             sed -e "/^#/d" -e "/^[      ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
12595             test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12596             sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
12597           fi
12598           ;;
12599         esac
12600       done ;;
12601   esac
12602 done
12603 EOF
12604
12605 cat >>$CONFIG_STATUS <<\EOF
12606
12607 { (exit 0); exit 0; }
12608 EOF
12609 chmod +x $CONFIG_STATUS
12610 ac_clean_files=$ac_clean_files_save
12611
12612 # configure is writing to config.log, and then calls config.status.
12613 # config.status does its own redirection, appending to config.log.
12614 # Unfortunately, on DOS this fails, as config.log is still kept open
12615 # by configure, so config.status won't be able to write to it; its
12616 # output is simply discarded.  So we exec the FD to /dev/null,
12617 # effectively closing config.log, so it can be properly (re)opened and
12618 # appended to by config.status.  When coming back to configure, we
12619 # need to make the FD available again.
12620 if test "$no_create" != yes; then
12621   ac_cs_success=:
12622   exec 5>/dev/null
12623   $SHELL $CONFIG_STATUS || ac_cs_success=false
12624   exec 5>>config.log
12625   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12626   # would make configure fail if this is the last instruction.
12627   $ac_cs_success || { (exit 1); exit 1; }
12628 fi
12629
12630 echo "
12631 vlc configuration
12632 --------------------
12633 vlc version           : ${VERSION}
12634 system                : ${SYS}
12635 architecture          : ${ARCH}
12636 optimizations         : ${OPTIMS}
12637 tuning                : ${TUNING}
12638 debug mode            : ${DEBUG}
12639 release               : ${RELEASE}
12640 cprof/gprof support   : ${CPROF}/${GPROF}
12641 need builtin getopt   : ${NEED_GETOPT}
12642 built-in modules      :${BUILTINS}
12643 plug-in modules       :${PLUGINS}
12644 vlc aliases           :${ALIASES}
12645
12646 You may now tune Makefile.opts at your convenience, for instance to choose
12647 which modules get compiled as plugins.
12648
12649 To build vlc and its plugins, type \`$VLC_MAKE'.
12650 "
12651