]> git.sesse.net Git - vlc/blob - configure
b2fe303b1b4ec29b0bbad2558a2872b98d5432f9
[vlc] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.50.
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 # Be Bourne compatible
11 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12   emulate sh
13   NULLCMD=:
14 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15   set -o posix
16 fi
17
18 # Name of the executable.
19 as_me=`echo "$0" |sed 's,.*[\\/],,'`
20
21 if expr a : '\(a\)' >/dev/null 2>&1; then
22   as_expr=expr
23 else
24   as_expr=false
25 fi
26
27 rm -f conf$$ conf$$.exe conf$$.file
28 echo >conf$$.file
29 if ln -s conf$$.file conf$$ 2>/dev/null; then
30   # We could just check for DJGPP; but this test a) works b) is more generic
31   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
32   if test -f conf$$.exe; then
33     # Don't use ln at all; we don't have any links
34     as_ln_s='cp -p'
35   else
36     as_ln_s='ln -s'
37   fi
38 elif ln conf$$.file conf$$ 2>/dev/null; then
39   as_ln_s=ln
40 else
41   as_ln_s='cp -p'
42 fi
43 rm -f conf$$ conf$$.exe conf$$.file
44
45 as_executable_p="test -f"
46
47 # Support unset when possible.
48 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
49   as_unset=unset
50 else
51   as_unset=false
52 fi
53
54 # NLS nuisances.
55 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
56 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
57 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
58 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
59 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
60 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
61 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
62 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
63
64 # IFS
65 # We need space, tab and new line, in precisely that order.
66 as_nl='
67 '
68 IFS="   $as_nl"
69
70 # CDPATH.
71 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
72
73 # Name of the host.
74 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
75 # so uname gets run too.
76 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
77
78 exec 6>&1
79
80 #
81 # Initializations.
82 #
83 ac_default_prefix=/usr/local
84 cross_compiling=no
85 subdirs=
86 MFLAGS= MAKEFLAGS=
87 SHELL=${CONFIG_SHELL-/bin/sh}
88
89 # Maximum number of lines to put in a shell here document.
90 # This variable seems obsolete.  It should probably be removed, and
91 # only ac_max_sed_lines should be used.
92 : ${ac_max_here_lines=38}
93
94 # Avoid depending upon Character Ranges.
95 ac_cr_az='abcdefghijklmnopqrstuvwxyz'
96 ac_cr_AZ='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
97 ac_cr_09='0123456789'
98 ac_cr_alnum=$ac_cr_az$ac_cr_AZ$ac_cr_09
99
100 # Sed expression to map a string onto a valid sh and CPP variable names.
101 ac_tr_sh="sed y%*+%pp%;s%[^_$ac_cr_alnum]%_%g"
102 ac_tr_cpp="sed y%*$ac_cr_az%P$ac_cr_AZ%;s%[^_$ac_cr_alnum]%_%g"
103
104 ac_unique_file="src/interface/main.c"
105 # Factoring default headers for most tests.
106 ac_includes_default="\
107 #include <stdio.h>
108 #include <sys/types.h>
109 #include <sys/stat.h>
110 #if STDC_HEADERS
111 # include <stdlib.h>
112 # include <stddef.h>
113 #else
114 # if HAVE_STDLIB_H
115 #  include <stdlib.h>
116 # endif
117 #endif
118 #if HAVE_STRING_H
119 # if !STDC_HEADERS && HAVE_MEMORY_H
120 #  include <memory.h>
121 # endif
122 # include <string.h>
123 #else
124 # if HAVE_STRINGS_H
125 #  include <strings.h>
126 # endif
127 #endif
128 #if HAVE_INTTYPES_H
129 # include <inttypes.h>
130 #endif
131 #if HAVE_UNISTD_H
132 # include <unistd.h>
133 #endif"
134
135 # Initialize some variables set by options.
136 ac_init_help=
137 ac_init_version=false
138 # The variables have the same names as the options, with
139 # dashes changed to underlines.
140 cache_file=/dev/null
141 exec_prefix=NONE
142 no_create=
143 no_recursion=
144 prefix=NONE
145 program_prefix=NONE
146 program_suffix=NONE
147 program_transform_name=s,x,x,
148 silent=
149 site=
150 srcdir=
151 verbose=
152 x_includes=NONE
153 x_libraries=NONE
154
155 # Installation directory options.
156 # These are left unexpanded so users can "make install exec_prefix=/foo"
157 # and all the variables that are supposed to be based on exec_prefix
158 # by default will actually change.
159 # Use braces instead of parens because sh, perl, etc. also accept them.
160 bindir='${exec_prefix}/bin'
161 sbindir='${exec_prefix}/sbin'
162 libexecdir='${exec_prefix}/libexec'
163 datadir='${prefix}/share'
164 sysconfdir='${prefix}/etc'
165 sharedstatedir='${prefix}/com'
166 localstatedir='${prefix}/var'
167 libdir='${exec_prefix}/lib'
168 includedir='${prefix}/include'
169 oldincludedir='/usr/include'
170 infodir='${prefix}/info'
171 mandir='${prefix}/man'
172
173 # Identity of this package.
174 PACKAGE_NAME=
175 PACKAGE_TARNAME=
176 PACKAGE_VERSION=
177 PACKAGE_STRING=
178 PACKAGE_BUGREPORT=
179
180 ac_prev=
181 for ac_option
182 do
183   # If the previous option needs an argument, assign it.
184   if test -n "$ac_prev"; then
185     eval "$ac_prev=\$ac_option"
186     ac_prev=
187     continue
188   fi
189
190   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
191
192   # Accept the important Cygnus configure options, so we can diagnose typos.
193
194   case $ac_option in
195
196   -bindir | --bindir | --bindi | --bind | --bin | --bi)
197     ac_prev=bindir ;;
198   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
199     bindir=$ac_optarg ;;
200
201   -build | --build | --buil | --bui | --bu)
202     ac_prev=build_alias ;;
203   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
204     build_alias=$ac_optarg ;;
205
206   -cache-file | --cache-file | --cache-fil | --cache-fi \
207   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
208     ac_prev=cache_file ;;
209   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
210   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
211     cache_file=$ac_optarg ;;
212
213   --config-cache | -C)
214     cache_file=config.cache ;;
215
216   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
217     ac_prev=datadir ;;
218   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
219   | --da=*)
220     datadir=$ac_optarg ;;
221
222   -disable-* | --disable-*)
223     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
224     # Reject names that are not valid shell variable names.
225     expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
226       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
227    { (exit 1); exit 1; }; }
228     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
229     eval "enable_$ac_feature=no" ;;
230
231   -enable-* | --enable-*)
232     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
233     # Reject names that are not valid shell variable names.
234     expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
235       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
236    { (exit 1); exit 1; }; }
237     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
238     case $ac_option in
239       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
240       *) ac_optarg=yes ;;
241     esac
242     eval "enable_$ac_feature='$ac_optarg'" ;;
243
244   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
245   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
246   | --exec | --exe | --ex)
247     ac_prev=exec_prefix ;;
248   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
249   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
250   | --exec=* | --exe=* | --ex=*)
251     exec_prefix=$ac_optarg ;;
252
253   -gas | --gas | --ga | --g)
254     # Obsolete; use --with-gas.
255     with_gas=yes ;;
256
257   -help | --help | --hel | --he | -h)
258     ac_init_help=long ;;
259   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
260     ac_init_help=recursive ;;
261   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
262     ac_init_help=short ;;
263
264   -host | --host | --hos | --ho)
265     ac_prev=host_alias ;;
266   -host=* | --host=* | --hos=* | --ho=*)
267     host_alias=$ac_optarg ;;
268
269   -includedir | --includedir | --includedi | --included | --include \
270   | --includ | --inclu | --incl | --inc)
271     ac_prev=includedir ;;
272   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
273   | --includ=* | --inclu=* | --incl=* | --inc=*)
274     includedir=$ac_optarg ;;
275
276   -infodir | --infodir | --infodi | --infod | --info | --inf)
277     ac_prev=infodir ;;
278   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
279     infodir=$ac_optarg ;;
280
281   -libdir | --libdir | --libdi | --libd)
282     ac_prev=libdir ;;
283   -libdir=* | --libdir=* | --libdi=* | --libd=*)
284     libdir=$ac_optarg ;;
285
286   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
287   | --libexe | --libex | --libe)
288     ac_prev=libexecdir ;;
289   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
290   | --libexe=* | --libex=* | --libe=*)
291     libexecdir=$ac_optarg ;;
292
293   -localstatedir | --localstatedir | --localstatedi | --localstated \
294   | --localstate | --localstat | --localsta | --localst \
295   | --locals | --local | --loca | --loc | --lo)
296     ac_prev=localstatedir ;;
297   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
298   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
299   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
300     localstatedir=$ac_optarg ;;
301
302   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
303     ac_prev=mandir ;;
304   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
305     mandir=$ac_optarg ;;
306
307   -nfp | --nfp | --nf)
308     # Obsolete; use --without-fp.
309     with_fp=no ;;
310
311   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
312   | --no-cr | --no-c)
313     no_create=yes ;;
314
315   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
316   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
317     no_recursion=yes ;;
318
319   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
320   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
321   | --oldin | --oldi | --old | --ol | --o)
322     ac_prev=oldincludedir ;;
323   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
324   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
325   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
326     oldincludedir=$ac_optarg ;;
327
328   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
329     ac_prev=prefix ;;
330   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
331     prefix=$ac_optarg ;;
332
333   -program-prefix | --program-prefix | --program-prefi | --program-pref \
334   | --program-pre | --program-pr | --program-p)
335     ac_prev=program_prefix ;;
336   -program-prefix=* | --program-prefix=* | --program-prefi=* \
337   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
338     program_prefix=$ac_optarg ;;
339
340   -program-suffix | --program-suffix | --program-suffi | --program-suff \
341   | --program-suf | --program-su | --program-s)
342     ac_prev=program_suffix ;;
343   -program-suffix=* | --program-suffix=* | --program-suffi=* \
344   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
345     program_suffix=$ac_optarg ;;
346
347   -program-transform-name | --program-transform-name \
348   | --program-transform-nam | --program-transform-na \
349   | --program-transform-n | --program-transform- \
350   | --program-transform | --program-transfor \
351   | --program-transfo | --program-transf \
352   | --program-trans | --program-tran \
353   | --progr-tra | --program-tr | --program-t)
354     ac_prev=program_transform_name ;;
355   -program-transform-name=* | --program-transform-name=* \
356   | --program-transform-nam=* | --program-transform-na=* \
357   | --program-transform-n=* | --program-transform-=* \
358   | --program-transform=* | --program-transfor=* \
359   | --program-transfo=* | --program-transf=* \
360   | --program-trans=* | --program-tran=* \
361   | --progr-tra=* | --program-tr=* | --program-t=*)
362     program_transform_name=$ac_optarg ;;
363
364   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
365   | -silent | --silent | --silen | --sile | --sil)
366     silent=yes ;;
367
368   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
369     ac_prev=sbindir ;;
370   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
371   | --sbi=* | --sb=*)
372     sbindir=$ac_optarg ;;
373
374   -sharedstatedir | --sharedstatedir | --sharedstatedi \
375   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
376   | --sharedst | --shareds | --shared | --share | --shar \
377   | --sha | --sh)
378     ac_prev=sharedstatedir ;;
379   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
380   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
381   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
382   | --sha=* | --sh=*)
383     sharedstatedir=$ac_optarg ;;
384
385   -site | --site | --sit)
386     ac_prev=site ;;
387   -site=* | --site=* | --sit=*)
388     site=$ac_optarg ;;
389
390   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
391     ac_prev=srcdir ;;
392   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
393     srcdir=$ac_optarg ;;
394
395   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
396   | --syscon | --sysco | --sysc | --sys | --sy)
397     ac_prev=sysconfdir ;;
398   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
399   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
400     sysconfdir=$ac_optarg ;;
401
402   -target | --target | --targe | --targ | --tar | --ta | --t)
403     ac_prev=target_alias ;;
404   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
405     target_alias=$ac_optarg ;;
406
407   -v | -verbose | --verbose | --verbos | --verbo | --verb)
408     verbose=yes ;;
409
410   -version | --version | --versio | --versi | --vers | -V)
411     ac_init_version=: ;;
412
413   -with-* | --with-*)
414     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
415     # Reject names that are not valid shell variable names.
416     expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
417       { echo "$as_me: error: invalid package name: $ac_package" >&2
418    { (exit 1); exit 1; }; }
419     ac_package=`echo $ac_package| sed 's/-/_/g'`
420     case $ac_option in
421       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
422       *) ac_optarg=yes ;;
423     esac
424     eval "with_$ac_package='$ac_optarg'" ;;
425
426   -without-* | --without-*)
427     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
428     # Reject names that are not valid shell variable names.
429     expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
430       { echo "$as_me: error: invalid package name: $ac_package" >&2
431    { (exit 1); exit 1; }; }
432     ac_package=`echo $ac_package | sed 's/-/_/g'`
433     eval "with_$ac_package=no" ;;
434
435   --x)
436     # Obsolete; use --with-x.
437     with_x=yes ;;
438
439   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
440   | --x-incl | --x-inc | --x-in | --x-i)
441     ac_prev=x_includes ;;
442   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
443   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
444     x_includes=$ac_optarg ;;
445
446   -x-libraries | --x-libraries | --x-librarie | --x-librari \
447   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
448     ac_prev=x_libraries ;;
449   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
450   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
451     x_libraries=$ac_optarg ;;
452
453   -*) { echo "$as_me: error: unrecognized option: $ac_option
454 Try \`$0 --help' for more information." >&2
455    { (exit 1); exit 1; }; }
456     ;;
457
458   *=*)
459     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
460     # Reject names that are not valid shell variable names.
461     expr "x$ac_envvar" : ".*[^_$ac_cr_alnum]" >/dev/null &&
462       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
463    { (exit 1); exit 1; }; }
464     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
465     eval "$ac_envvar='$ac_optarg'"
466     export $ac_envvar ;;
467
468   *)
469     # FIXME: should be removed in autoconf 3.0.
470     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
471     expr "x$ac_option" : ".*[^-._$ac_cr_alnum]" >/dev/null &&
472       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
473     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
474     ;;
475
476   esac
477 done
478
479 if test -n "$ac_prev"; then
480   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
481   { echo "$as_me: error: missing argument to $ac_option" >&2
482    { (exit 1); exit 1; }; }
483 fi
484
485 # Be sure to have absolute paths.
486 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
487               localstatedir libdir includedir oldincludedir infodir mandir \
488               exec_prefix prefix
489 do
490   eval ac_val=$`echo $ac_var`
491   case $ac_val in
492     [\\/$]* | ?:[\\/]* ) ;;
493     NONE ) ;;
494     *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
495    { (exit 1); exit 1; }; };;
496   esac
497 done
498
499 # There might be people who depend on the old broken behavior: `$host'
500 # used to hold the argument of --host etc.
501 build=$build_alias
502 host=$host_alias
503 target=$target_alias
504
505 # FIXME: should be removed in autoconf 3.0.
506 if test "x$host_alias" != x; then
507   if test "x$build_alias" = x; then
508     cross_compiling=maybe
509     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
510     If a cross compiler is detected then cross compile mode will be used." >&2
511   elif test "x$build_alias" != "x$host_alias"; then
512     cross_compiling=yes
513   fi
514 fi
515
516 ac_tool_prefix=
517 test -n "$host_alias" && ac_tool_prefix=$host_alias-
518
519 test "$silent" = yes && exec 6>/dev/null
520
521 # Find the source files, if location was not specified.
522 if test -z "$srcdir"; then
523   ac_srcdir_defaulted=yes
524   # Try the directory containing this script, then its parent.
525   ac_prog=$0
526   ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
527   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
528   srcdir=$ac_confdir
529   if test ! -r $srcdir/$ac_unique_file; then
530     srcdir=..
531   fi
532 else
533   ac_srcdir_defaulted=no
534 fi
535 if test ! -r $srcdir/$ac_unique_file; then
536   if test "$ac_srcdir_defaulted" = yes; then
537     { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
538    { (exit 1); exit 1; }; }
539   else
540     { echo "$as_me: error: cannot find sources in $srcdir" >&2
541    { (exit 1); exit 1; }; }
542   fi
543 fi
544 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
545 ac_env_build_alias_set=${build_alias+set}
546 ac_env_build_alias_value=$build_alias
547 ac_cv_env_build_alias_set=${build_alias+set}
548 ac_cv_env_build_alias_value=$build_alias
549 ac_env_host_alias_set=${host_alias+set}
550 ac_env_host_alias_value=$host_alias
551 ac_cv_env_host_alias_set=${host_alias+set}
552 ac_cv_env_host_alias_value=$host_alias
553 ac_env_target_alias_set=${target_alias+set}
554 ac_env_target_alias_value=$target_alias
555 ac_cv_env_target_alias_set=${target_alias+set}
556 ac_cv_env_target_alias_value=$target_alias
557 ac_env_CC_set=${CC+set}
558 ac_env_CC_value=$CC
559 ac_cv_env_CC_set=${CC+set}
560 ac_cv_env_CC_value=$CC
561 ac_env_CFLAGS_set=${CFLAGS+set}
562 ac_env_CFLAGS_value=$CFLAGS
563 ac_cv_env_CFLAGS_set=${CFLAGS+set}
564 ac_cv_env_CFLAGS_value=$CFLAGS
565 ac_env_LDFLAGS_set=${LDFLAGS+set}
566 ac_env_LDFLAGS_value=$LDFLAGS
567 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
568 ac_cv_env_LDFLAGS_value=$LDFLAGS
569 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
570 ac_env_CPPFLAGS_value=$CPPFLAGS
571 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
572 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
573 ac_env_CPP_set=${CPP+set}
574 ac_env_CPP_value=$CPP
575 ac_cv_env_CPP_set=${CPP+set}
576 ac_cv_env_CPP_value=$CPP
577
578 #
579 # Report the --help message.
580 #
581 if test "$ac_init_help" = "long"; then
582   # Omit some internal or obsolete options to make the list less imposing.
583   # This message is too long to be a string in the A/UX 3.1 sh.
584   cat <<EOF
585 \`configure' configures this package to adapt to many kinds of systems.
586
587 Usage: $0 [OPTION]... [VAR=VALUE]...
588
589 To assign environment variables (e.g., CC, CFLAGS...), specify them as
590 VAR=VALUE.  See below for descriptions of some of the useful variables.
591
592 Defaults for the options are specified in brackets.
593
594 Configuration:
595   -h, --help              display this help and exit
596       --help=short        display options specific to this package
597       --help=recursive    display the short help of all the included packages
598   -V, --version           display version information and exit
599   -q, --quiet, --silent   do not print \`checking...' messages
600       --cache-file=FILE   cache test results in FILE [disabled]
601   -C, --config-cache      alias for \`--cache-file=config.cache'
602   -n, --no-create         do not create output files
603       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
604
605 EOF
606
607   cat <<EOF
608 Installation directories:
609   --prefix=PREFIX         install architecture-independent files in PREFIX
610                           [$ac_default_prefix]
611   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
612                           [PREFIX]
613
614 By default, \`make install' will install all the files in
615 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
616 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
617 for instance \`--prefix=\$HOME'.
618
619 For better control, use the options below.
620
621 Fine tuning of the installation directories:
622   --bindir=DIR           user executables [EPREFIX/bin]
623   --sbindir=DIR          system admin executables [EPREFIX/sbin]
624   --libexecdir=DIR       program executables [EPREFIX/libexec]
625   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
626   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
627   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
628   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
629   --libdir=DIR           object code libraries [EPREFIX/lib]
630   --includedir=DIR       C header files [PREFIX/include]
631   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
632   --infodir=DIR          info documentation [PREFIX/info]
633   --mandir=DIR           man documentation [PREFIX/man]
634 EOF
635
636   cat <<\EOF
637
638 System types:
639   --build=BUILD     configure for building on BUILD [guessed]
640   --host=HOST       build programs to run on HOST [BUILD]
641 EOF
642 fi
643
644 if test -n "$ac_init_help"; then
645
646   cat <<\EOF
647
648 Optional Features:
649   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
650   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
651   --disable-dummy         dummy module (default enabled)
652   --disable-null          Null module (default enabled)
653   --disable-rc            rc module (default enabled)
654   --disable-ppro          Disable PentiumPro optimizations (default enabled for x86)
655   --disable-mmx           Disable MMX optimizations (default enabled for x86)
656   --enable-altivec        Enable altivec optimizations (default disabled since it is broken)
657   --disable-css           Disable DVD CSS decryption (default enabled)
658   --enable-debug          Enable debug mode (default disabled)
659   --enable-stats          Enable printing of statistics (default disabled)
660   --enable-trace          Enable trace mode (default disabled)
661   --disable-optimizations Disable compiler optimizations (default enabled)
662   --disable-dsp           Linux /dev/dsp support (default enabled)
663   --enable-esd            Esound library support (default disabled)
664   --enable-darwin         Darwin sound support (default disabled)
665   --enable-macosx         Mac OS X interface support (default enabled in Mac OS X)
666   --enable-fb             Linux framebuffer support (default disabled)
667   --enable-ncurses        ncurses interface support (default disabled)
668   --enable-qt             Qt interface support (default disabled)
669   --enable-kde            KDE interface support (default disabled)
670   --enable-gnome          Gnome interface support (default disabled)
671   --disable-gtk           Gtk+ support (default enabled)
672   --disable-x11           X11 support (default enabled)
673   --disable-xvideo        XVideo support (default enabled)
674   --enable-alsa           Alsa sound drivers support (Only for linux) (default disabled)
675
676 Optional Packages:
677   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
678   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
679   --with-ggi=name       GGI support (default disabled)
680   --with-sdl=name       SDL support (default enabled)
681   --with-glide=name     Glide (3dfx) support (default disabled)
682
683 Some influential environment variables:
684   CC          C compiler command
685   CFLAGS      C compiler flags
686   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
687               nonstandard directory <lib dir>
688   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
689               headers in a nonstandard directory <include dir>
690   CPP         C preprocessor
691
692 Use these variables to override the choices made by `configure' or to help
693 it to find libraries and programs with nonstandard names/locations.
694
695 EOF
696 fi
697
698 if test "$ac_init_help" = "recursive"; then
699   # If there are subdirs, report their specific --help.
700   ac_popdir=`pwd`
701   for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
702     cd $ac_subdir
703     # A "../" for each directory in /$ac_subdir.
704     ac_dots=`echo $ac_subdir |
705              sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
706
707     case $srcdir in
708     .) # No --srcdir option.  We are building in place.
709       ac_sub_srcdir=$srcdir ;;
710     [\\/]* | ?:[\\/]* ) # Absolute path.
711       ac_sub_srcdir=$srcdir/$ac_subdir ;;
712     *) # Relative path.
713       ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
714     esac
715
716     # Check for guested configure; otherwise get Cygnus style configure.
717     if test -f $ac_sub_srcdir/configure.gnu; then
718       echo
719       $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
720     elif test -f $ac_sub_srcdir/configure; then
721       echo
722       $SHELL $ac_sub_srcdir/configure  --help=recursive
723     elif test -f $ac_sub_srcdir/configure.ac ||
724            test -f $ac_sub_srcdir/configure.in; then
725       echo
726       $ac_configure --help
727     else
728       echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
729     fi
730     cd $ac_popdir
731   done
732 fi
733
734 test -n "$ac_init_help" && exit 0
735 if $ac_init_version; then
736   cat <<\EOF
737
738 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
739 Free Software Foundation, Inc.
740 This configure script is free software; the Free Software Foundation
741 gives unlimited permission to copy, distribute and modify it.
742 EOF
743   exit 0
744 fi
745 exec 5>config.log
746 cat >&5 <<EOF
747 This file contains any messages produced by compilers while
748 running configure, to aid debugging if configure makes a mistake.
749
750 It was created by $as_me, which was
751 generated by GNU Autoconf 2.50.  Invocation command line was
752
753   $ $0 $@
754
755 EOF
756 {
757 cat <<_ASUNAME
758 ## ---------- ##
759 ## Platform.  ##
760 ## ---------- ##
761
762 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
763 uname -m = `(uname -m) 2>/dev/null || echo unknown`
764 uname -r = `(uname -r) 2>/dev/null || echo unknown`
765 uname -s = `(uname -s) 2>/dev/null || echo unknown`
766 uname -v = `(uname -v) 2>/dev/null || echo unknown`
767
768 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
769 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
770
771 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
772 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
773 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
774 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
775 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
776 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
777 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
778
779 PATH = $PATH
780
781 _ASUNAME
782 } >&5
783
784 cat >&5 <<EOF
785 ## ------------ ##
786 ## Core tests.  ##
787 ## ------------ ##
788
789 EOF
790
791 # Keep a trace of the command line.
792 # Strip out --no-create and --no-recursion so they do not pile up.
793 # Also quote any args containing shell meta-characters.
794 ac_configure_args=
795 ac_sep=
796 for ac_arg
797 do
798   case $ac_arg in
799   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
800   | --no-cr | --no-c) ;;
801   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
802   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
803   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
804     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
805     ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
806     ac_sep=" " ;;
807   *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
808      ac_sep=" " ;;
809   esac
810   # Get rid of the leading space.
811 done
812
813 # When interrupted or exit'd, cleanup temporary files, and complete
814 # config.log.  We remove comments because anyway the quotes in there
815 # would cause problems or look ugly.
816 trap 'exit_status=$?
817   # Save into config.log some information that might help in debugging.
818   echo >&5
819   echo "## ----------------- ##" >&5
820   echo "## Cache variables.  ##" >&5
821   echo "## ----------------- ##" >&5
822   echo >&5
823   # The following way of writing the cache mishandles newlines in values,
824 {
825   (set) 2>&1 |
826     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
827     *ac_space=\ *)
828       sed -n \
829         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
830           s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
831       ;;
832     *)
833       sed -n \
834         "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
835       ;;
836     esac;
837 } >&5
838   sed "/^$/d" confdefs.h >conftest.log
839   if test -s conftest.log; then
840     echo >&5
841     echo "## ------------ ##" >&5
842     echo "## confdefs.h.  ##" >&5
843     echo "## ------------ ##" >&5
844     echo >&5
845     cat conftest.log >&5
846   fi
847   (echo; echo) >&5
848   test "$ac_signal" != 0 &&
849     echo "$as_me: caught signal $ac_signal" >&5
850   echo "$as_me: exit $exit_status" >&5
851   rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
852     exit $exit_status
853      ' 0
854 for ac_signal in 1 2 13 15; do
855   trap 'ac_status=$?; ac_signal='$ac_signal'; { (exit $ac_status); exit $ac_status; }' $ac_signal
856 done
857 ac_signal=0
858
859 # confdefs.h avoids OS command line length limits that DEFS can exceed.
860 rm -rf conftest* confdefs.h
861 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
862 echo >confdefs.h
863
864 # Let the site file select an alternate cache file if it wants to.
865 # Prefer explicitly selected file to automatically selected ones.
866 if test -z "$CONFIG_SITE"; then
867   if test "x$prefix" != xNONE; then
868     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
869   else
870     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
871   fi
872 fi
873 for ac_site_file in $CONFIG_SITE; do
874   if test -r "$ac_site_file"; then
875     { echo "$as_me:875: loading site script $ac_site_file" >&5
876 echo "$as_me: loading site script $ac_site_file" >&6;}
877     cat "$ac_site_file" >&5
878     . "$ac_site_file"
879   fi
880 done
881
882 if test -r "$cache_file"; then
883   # Some versions of bash will fail to source /dev/null (special
884   # files actually), so we avoid doing that.
885   if test -f "$cache_file"; then
886     { echo "$as_me:886: loading cache $cache_file" >&5
887 echo "$as_me: loading cache $cache_file" >&6;}
888     case $cache_file in
889       [\\/]* | ?:[\\/]* ) . $cache_file;;
890       *)                      . ./$cache_file;;
891     esac
892   fi
893 else
894   { echo "$as_me:894: creating cache $cache_file" >&5
895 echo "$as_me: creating cache $cache_file" >&6;}
896   >$cache_file
897 fi
898
899 # Check that the precious variables saved in the cache have kept the same
900 # value.
901 ac_suggest_removing_cache=false
902 for ac_var in `(set) 2>&1 |
903                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
904   eval ac_old_set=\$ac_cv_env_${ac_var}_set
905   eval ac_new_set=\$ac_env_${ac_var}_set
906   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
907   eval ac_new_val="\$ac_env_${ac_var}_value"
908   case $ac_old_set,$ac_new_set in
909     set,)
910       { echo "$as_me:910: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
911 echo "$as_me: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
912       ac_suggest_removing_cache=: ;;
913     ,set)
914       { echo "$as_me:914: WARNING: \`$ac_var' was not set in the previous run" >&5
915 echo "$as_me: WARNING: \`$ac_var' was not set in the previous run" >&2;}
916       ac_suggest_removing_cache=: ;;
917     ,);;
918     *)
919       if test "x$ac_old_val" != "x$ac_new_val"; then
920         { echo "$as_me:920: WARNING: \`$ac_var' has changed since the previous run:" >&5
921 echo "$as_me: WARNING: \`$ac_var' has changed since the previous run:" >&2;}
922         { echo "$as_me:922: WARNING:   former value:  $ac_old_val" >&5
923 echo "$as_me: WARNING:   former value:  $ac_old_val" >&2;}
924         { echo "$as_me:924: WARNING:   current value: $ac_new_val" >&5
925 echo "$as_me: WARNING:   current value: $ac_new_val" >&2;}
926         ac_suggest_removing_cache=:
927       fi;;
928   esac
929 done
930 if $ac_suggest_removing_cache; then
931   { echo "$as_me:931: WARNING: changes in the environment can compromise the build" >&5
932 echo "$as_me: WARNING: changes in the environment can compromise the build" >&2;}
933   { echo "$as_me:933: WARNING: consider removing $cache_file and starting over" >&5
934 echo "$as_me: WARNING: consider removing $cache_file and starting over" >&2;}
935 fi
936
937 ac_ext=c
938 ac_cpp='$CPP $CPPFLAGS'
939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
942
943 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
944   *c*,-n*) ECHO_N= ECHO_C='
945 ' ECHO_T='      ' ;;
946   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
947   *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
948 esac
949 echo "#! $SHELL" >conftest.sh
950 echo  "exit 0"   >>conftest.sh
951 chmod +x conftest.sh
952 if { (echo "$as_me:952: PATH=\".;.\"; conftest.sh") >&5
953   (PATH=".;."; conftest.sh) 2>&5
954   ac_status=$?
955   echo "$as_me:955: \$? = $ac_status" >&5
956   (exit $ac_status); }; then
957   ac_path_separator=';'
958 else
959   ac_path_separator=:
960 fi
961 PATH_SEPARATOR="$ac_path_separator"
962 rm -f conftest.sh
963
964 ac_config_headers="$ac_config_headers include/defs.h"
965
966 ac_aux_dir=
967 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
968   if test -f $ac_dir/install-sh; then
969     ac_aux_dir=$ac_dir
970     ac_install_sh="$ac_aux_dir/install-sh -c"
971     break
972   elif test -f $ac_dir/install.sh; then
973     ac_aux_dir=$ac_dir
974     ac_install_sh="$ac_aux_dir/install.sh -c"
975     break
976   elif test -f $ac_dir/shtool; then
977     ac_aux_dir=$ac_dir
978     ac_install_sh="$ac_aux_dir/shtool install -c"
979     break
980   fi
981 done
982 if test -z "$ac_aux_dir"; then
983   { { echo "$as_me:983: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
984 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
985    { (exit 1); exit 1; }; }
986 fi
987 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
988 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
989 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
990
991 # Make sure we can run config.sub.
992 $ac_config_sub sun4 >/dev/null 2>&1 ||
993   { { echo "$as_me:993: error: cannot run $ac_config_sub" >&5
994 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
995    { (exit 1); exit 1; }; }
996
997 echo "$as_me:997: checking build system type" >&5
998 echo $ECHO_N "checking build system type... $ECHO_C" >&6
999 if test "${ac_cv_build+set}" = set; then
1000   echo $ECHO_N "(cached) $ECHO_C" >&6
1001 else
1002   ac_cv_build_alias=$build_alias
1003 test -z "$ac_cv_build_alias" &&
1004   ac_cv_build_alias=`$ac_config_guess`
1005 test -z "$ac_cv_build_alias" &&
1006   { { echo "$as_me:1006: error: cannot guess build type; you must specify one" >&5
1007 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1008    { (exit 1); exit 1; }; }
1009 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1010   { { echo "$as_me:1010: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1011 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1012    { (exit 1); exit 1; }; }
1013
1014 fi
1015 echo "$as_me:1015: result: $ac_cv_build" >&5
1016 echo "${ECHO_T}$ac_cv_build" >&6
1017 build=$ac_cv_build
1018 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1019 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1020 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1021
1022 echo "$as_me:1022: checking host system type" >&5
1023 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1024 if test "${ac_cv_host+set}" = set; then
1025   echo $ECHO_N "(cached) $ECHO_C" >&6
1026 else
1027   ac_cv_host_alias=$host_alias
1028 test -z "$ac_cv_host_alias" &&
1029   ac_cv_host_alias=$ac_cv_build_alias
1030 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1031   { { echo "$as_me:1031: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1032 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1033    { (exit 1); exit 1; }; }
1034
1035 fi
1036 echo "$as_me:1036: result: $ac_cv_host" >&5
1037 echo "${ECHO_T}$ac_cv_host" >&6
1038 host=$ac_cv_host
1039 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1040 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1041 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1042
1043 VLC_VERSION=0.2.73
1044
1045 VLC_CODENAME=Ourumov
1046
1047 save_CFLAGS="${CFLAGS}"
1048
1049 echo "$as_me:1049: checking whether ${MAKE-make} sets \${MAKE}" >&5
1050 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1051 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1052 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1053   echo $ECHO_N "(cached) $ECHO_C" >&6
1054 else
1055   cat >conftest.make <<\EOF
1056 all:
1057         @echo 'ac_maketemp="${MAKE}"'
1058 EOF
1059 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1060 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1061 if test -n "$ac_maketemp"; then
1062   eval ac_cv_prog_make_${ac_make}_set=yes
1063 else
1064   eval ac_cv_prog_make_${ac_make}_set=no
1065 fi
1066 rm -f conftest.make
1067 fi
1068 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1069   echo "$as_me:1069: result: yes" >&5
1070 echo "${ECHO_T}yes" >&6
1071   SET_MAKE=
1072 else
1073   echo "$as_me:1073: result: no" >&5
1074 echo "${ECHO_T}no" >&6
1075   SET_MAKE="MAKE=${MAKE-make}"
1076 fi
1077
1078 ac_ext=c
1079 ac_cpp='$CPP $CPPFLAGS'
1080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1083 if test -n "$ac_tool_prefix"; then
1084   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1085 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1086 echo "$as_me:1086: checking for $ac_word" >&5
1087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1088 if test "${ac_cv_prog_CC+set}" = set; then
1089   echo $ECHO_N "(cached) $ECHO_C" >&6
1090 else
1091   if test -n "$CC"; then
1092   ac_cv_prog_CC="$CC" # Let the user override the test.
1093 else
1094   ac_save_IFS=$IFS; IFS=$ac_path_separator
1095 ac_dummy="$PATH"
1096 for ac_dir in $ac_dummy; do
1097   IFS=$ac_save_IFS
1098   test -z "$ac_dir" && ac_dir=.
1099   $as_executable_p "$ac_dir/$ac_word" || continue
1100 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1101 echo "$as_me:1101: found $ac_dir/$ac_word" >&5
1102 break
1103 done
1104
1105 fi
1106 fi
1107 CC=$ac_cv_prog_CC
1108 if test -n "$CC"; then
1109   echo "$as_me:1109: result: $CC" >&5
1110 echo "${ECHO_T}$CC" >&6
1111 else
1112   echo "$as_me:1112: result: no" >&5
1113 echo "${ECHO_T}no" >&6
1114 fi
1115
1116 fi
1117 if test -z "$ac_cv_prog_CC"; then
1118   ac_ct_CC=$CC
1119   # Extract the first word of "gcc", so it can be a program name with args.
1120 set dummy gcc; ac_word=$2
1121 echo "$as_me:1121: checking for $ac_word" >&5
1122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1123 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1124   echo $ECHO_N "(cached) $ECHO_C" >&6
1125 else
1126   if test -n "$ac_ct_CC"; then
1127   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1128 else
1129   ac_save_IFS=$IFS; IFS=$ac_path_separator
1130 ac_dummy="$PATH"
1131 for ac_dir in $ac_dummy; do
1132   IFS=$ac_save_IFS
1133   test -z "$ac_dir" && ac_dir=.
1134   $as_executable_p "$ac_dir/$ac_word" || continue
1135 ac_cv_prog_ac_ct_CC="gcc"
1136 echo "$as_me:1136: found $ac_dir/$ac_word" >&5
1137 break
1138 done
1139
1140 fi
1141 fi
1142 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1143 if test -n "$ac_ct_CC"; then
1144   echo "$as_me:1144: result: $ac_ct_CC" >&5
1145 echo "${ECHO_T}$ac_ct_CC" >&6
1146 else
1147   echo "$as_me:1147: result: no" >&5
1148 echo "${ECHO_T}no" >&6
1149 fi
1150
1151   CC=$ac_ct_CC
1152 else
1153   CC="$ac_cv_prog_CC"
1154 fi
1155
1156 if test -z "$CC"; then
1157   if test -n "$ac_tool_prefix"; then
1158   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1159 set dummy ${ac_tool_prefix}cc; ac_word=$2
1160 echo "$as_me:1160: checking for $ac_word" >&5
1161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1162 if test "${ac_cv_prog_CC+set}" = set; then
1163   echo $ECHO_N "(cached) $ECHO_C" >&6
1164 else
1165   if test -n "$CC"; then
1166   ac_cv_prog_CC="$CC" # Let the user override the test.
1167 else
1168   ac_save_IFS=$IFS; IFS=$ac_path_separator
1169 ac_dummy="$PATH"
1170 for ac_dir in $ac_dummy; do
1171   IFS=$ac_save_IFS
1172   test -z "$ac_dir" && ac_dir=.
1173   $as_executable_p "$ac_dir/$ac_word" || continue
1174 ac_cv_prog_CC="${ac_tool_prefix}cc"
1175 echo "$as_me:1175: found $ac_dir/$ac_word" >&5
1176 break
1177 done
1178
1179 fi
1180 fi
1181 CC=$ac_cv_prog_CC
1182 if test -n "$CC"; then
1183   echo "$as_me:1183: result: $CC" >&5
1184 echo "${ECHO_T}$CC" >&6
1185 else
1186   echo "$as_me:1186: result: no" >&5
1187 echo "${ECHO_T}no" >&6
1188 fi
1189
1190 fi
1191 if test -z "$ac_cv_prog_CC"; then
1192   ac_ct_CC=$CC
1193   # Extract the first word of "cc", so it can be a program name with args.
1194 set dummy cc; ac_word=$2
1195 echo "$as_me:1195: checking for $ac_word" >&5
1196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1197 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1198   echo $ECHO_N "(cached) $ECHO_C" >&6
1199 else
1200   if test -n "$ac_ct_CC"; then
1201   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1202 else
1203   ac_save_IFS=$IFS; IFS=$ac_path_separator
1204 ac_dummy="$PATH"
1205 for ac_dir in $ac_dummy; do
1206   IFS=$ac_save_IFS
1207   test -z "$ac_dir" && ac_dir=.
1208   $as_executable_p "$ac_dir/$ac_word" || continue
1209 ac_cv_prog_ac_ct_CC="cc"
1210 echo "$as_me:1210: found $ac_dir/$ac_word" >&5
1211 break
1212 done
1213
1214 fi
1215 fi
1216 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1217 if test -n "$ac_ct_CC"; then
1218   echo "$as_me:1218: result: $ac_ct_CC" >&5
1219 echo "${ECHO_T}$ac_ct_CC" >&6
1220 else
1221   echo "$as_me:1221: result: no" >&5
1222 echo "${ECHO_T}no" >&6
1223 fi
1224
1225   CC=$ac_ct_CC
1226 else
1227   CC="$ac_cv_prog_CC"
1228 fi
1229
1230 fi
1231 if test -z "$CC"; then
1232   # Extract the first word of "cc", so it can be a program name with args.
1233 set dummy cc; ac_word=$2
1234 echo "$as_me:1234: checking for $ac_word" >&5
1235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1236 if test "${ac_cv_prog_CC+set}" = set; then
1237   echo $ECHO_N "(cached) $ECHO_C" >&6
1238 else
1239   if test -n "$CC"; then
1240   ac_cv_prog_CC="$CC" # Let the user override the test.
1241 else
1242   ac_prog_rejected=no
1243   ac_save_IFS=$IFS; IFS=$ac_path_separator
1244 ac_dummy="$PATH"
1245 for ac_dir in $ac_dummy; do
1246   IFS=$ac_save_IFS
1247   test -z "$ac_dir" && ac_dir=.
1248   $as_executable_p "$ac_dir/$ac_word" || continue
1249 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1250   ac_prog_rejected=yes
1251   continue
1252 fi
1253 ac_cv_prog_CC="cc"
1254 echo "$as_me:1254: found $ac_dir/$ac_word" >&5
1255 break
1256 done
1257
1258 if test $ac_prog_rejected = yes; then
1259   # We found a bogon in the path, so make sure we never use it.
1260   set dummy $ac_cv_prog_CC
1261   shift
1262   if test $# != 0; then
1263     # We chose a different compiler from the bogus one.
1264     # However, it has the same basename, so the bogon will be chosen
1265     # first if we set CC to just the basename; use the full file name.
1266     shift
1267     set dummy "$ac_dir/$ac_word" ${1+"$@"}
1268     shift
1269     ac_cv_prog_CC="$@"
1270   fi
1271 fi
1272 fi
1273 fi
1274 CC=$ac_cv_prog_CC
1275 if test -n "$CC"; then
1276   echo "$as_me:1276: result: $CC" >&5
1277 echo "${ECHO_T}$CC" >&6
1278 else
1279   echo "$as_me:1279: result: no" >&5
1280 echo "${ECHO_T}no" >&6
1281 fi
1282
1283 fi
1284 if test -z "$CC"; then
1285   if test -n "$ac_tool_prefix"; then
1286   for ac_prog in cl
1287   do
1288     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1289 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1290 echo "$as_me:1290: checking for $ac_word" >&5
1291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1292 if test "${ac_cv_prog_CC+set}" = set; then
1293   echo $ECHO_N "(cached) $ECHO_C" >&6
1294 else
1295   if test -n "$CC"; then
1296   ac_cv_prog_CC="$CC" # Let the user override the test.
1297 else
1298   ac_save_IFS=$IFS; IFS=$ac_path_separator
1299 ac_dummy="$PATH"
1300 for ac_dir in $ac_dummy; do
1301   IFS=$ac_save_IFS
1302   test -z "$ac_dir" && ac_dir=.
1303   $as_executable_p "$ac_dir/$ac_word" || continue
1304 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1305 echo "$as_me:1305: found $ac_dir/$ac_word" >&5
1306 break
1307 done
1308
1309 fi
1310 fi
1311 CC=$ac_cv_prog_CC
1312 if test -n "$CC"; then
1313   echo "$as_me:1313: result: $CC" >&5
1314 echo "${ECHO_T}$CC" >&6
1315 else
1316   echo "$as_me:1316: result: no" >&5
1317 echo "${ECHO_T}no" >&6
1318 fi
1319
1320     test -n "$CC" && break
1321   done
1322 fi
1323 if test -z "$CC"; then
1324   ac_ct_CC=$CC
1325   for ac_prog in cl
1326 do
1327   # Extract the first word of "$ac_prog", so it can be a program name with args.
1328 set dummy $ac_prog; ac_word=$2
1329 echo "$as_me:1329: checking for $ac_word" >&5
1330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1331 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1332   echo $ECHO_N "(cached) $ECHO_C" >&6
1333 else
1334   if test -n "$ac_ct_CC"; then
1335   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1336 else
1337   ac_save_IFS=$IFS; IFS=$ac_path_separator
1338 ac_dummy="$PATH"
1339 for ac_dir in $ac_dummy; do
1340   IFS=$ac_save_IFS
1341   test -z "$ac_dir" && ac_dir=.
1342   $as_executable_p "$ac_dir/$ac_word" || continue
1343 ac_cv_prog_ac_ct_CC="$ac_prog"
1344 echo "$as_me:1344: found $ac_dir/$ac_word" >&5
1345 break
1346 done
1347
1348 fi
1349 fi
1350 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1351 if test -n "$ac_ct_CC"; then
1352   echo "$as_me:1352: result: $ac_ct_CC" >&5
1353 echo "${ECHO_T}$ac_ct_CC" >&6
1354 else
1355   echo "$as_me:1355: result: no" >&5
1356 echo "${ECHO_T}no" >&6
1357 fi
1358
1359   test -n "$ac_ct_CC" && break
1360 done
1361
1362   CC=$ac_ct_CC
1363 fi
1364
1365 fi
1366
1367 test -z "$CC" && { { echo "$as_me:1367: error: no acceptable cc found in \$PATH" >&5
1368 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1369    { (exit 1); exit 1; }; }
1370
1371 cat >conftest.$ac_ext <<_ACEOF
1372 #line 1372 "configure"
1373 #include "confdefs.h"
1374
1375 int
1376 main ()
1377 {
1378
1379   ;
1380   return 0;
1381 }
1382 _ACEOF
1383 ac_clean_files_save=$ac_clean_files
1384 ac_clean_files="$ac_clean_files a.out a.exe"
1385 # Try to create an executable without -o first, disregard a.out.
1386 # It will help us diagnose broken compiler, and finding out an intuition
1387 # of exeext.
1388 echo "$as_me:1388: checking for C compiler default output" >&5
1389 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1390 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1391 if { (eval echo "$as_me:1391: \"$ac_link_default\"") >&5
1392   (eval $ac_link_default) 2>&5
1393   ac_status=$?
1394   echo "$as_me:1394: \$? = $ac_status" >&5
1395   (exit $ac_status); }; then
1396   for ac_file in `ls a.exe conftest.exe a.* conftest conftest.* 2>/dev/null`; do
1397   case $ac_file in
1398     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1399     a.out ) # We found the default executable, but exeext='' is most
1400             # certainly right.
1401             break;;
1402     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1403           export ac_cv_exeext
1404           break;;
1405     * ) break;;
1406   esac
1407 done
1408 else
1409   echo "$as_me: failed program was:" >&5
1410 cat conftest.$ac_ext >&5
1411 { { echo "$as_me:1411: error: C compiler cannot create executables" >&5
1412 echo "$as_me: error: C compiler cannot create executables" >&2;}
1413    { (exit 77); exit 77; }; }
1414 fi
1415
1416 ac_exeext=$ac_cv_exeext
1417 echo "$as_me:1417: result: $ac_file" >&5
1418 echo "${ECHO_T}$ac_file" >&6
1419
1420 # Check the compiler produces executables we can run.  If not, either
1421 # the compiler is broken, or we cross compile.
1422 echo "$as_me:1422: checking whether the C compiler works" >&5
1423 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1424 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1425 # If not cross compiling, check that we can run a simple program.
1426 if test "$cross_compiling" != yes; then
1427   if { ac_try='./$ac_file'
1428   { (eval echo "$as_me:1428: \"$ac_try\"") >&5
1429   (eval $ac_try) 2>&5
1430   ac_status=$?
1431   echo "$as_me:1431: \$? = $ac_status" >&5
1432   (exit $ac_status); }; }; then
1433     cross_compiling=no
1434   else
1435     if test "$cross_compiling" = maybe; then
1436         cross_compiling=yes
1437     else
1438         { { echo "$as_me:1438: error: cannot run C compiled programs.
1439 If you meant to cross compile, use \`--host'." >&5
1440 echo "$as_me: error: cannot run C compiled programs.
1441 If you meant to cross compile, use \`--host'." >&2;}
1442    { (exit 1); exit 1; }; }
1443     fi
1444   fi
1445 fi
1446 echo "$as_me:1446: result: yes" >&5
1447 echo "${ECHO_T}yes" >&6
1448
1449 rm -f a.out a.exe conftest$ac_cv_exeext
1450 ac_clean_files=$ac_clean_files_save
1451 # Check the compiler produces executables we can run.  If not, either
1452 # the compiler is broken, or we cross compile.
1453 echo "$as_me:1453: checking whether we are cross compiling" >&5
1454 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1455 echo "$as_me:1455: result: $cross_compiling" >&5
1456 echo "${ECHO_T}$cross_compiling" >&6
1457
1458 echo "$as_me:1458: checking for executable suffix" >&5
1459 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1460 if { (eval echo "$as_me:1460: \"$ac_link\"") >&5
1461   (eval $ac_link) 2>&5
1462   ac_status=$?
1463   echo "$as_me:1463: \$? = $ac_status" >&5
1464   (exit $ac_status); }; then
1465   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1466 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1467 # work properly (i.e., refer to `conftest.exe'), while it won't with
1468 # `rm'.
1469 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1470   case $ac_file in
1471     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1472     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1473           export ac_cv_exeext
1474           break;;
1475     * ) break;;
1476   esac
1477 done
1478 else
1479   { { echo "$as_me:1479: error: cannot compute EXEEXT: cannot compile and link" >&5
1480 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1481    { (exit 1); exit 1; }; }
1482 fi
1483
1484 rm -f conftest$ac_cv_exeext
1485 echo "$as_me:1485: result: $ac_cv_exeext" >&5
1486 echo "${ECHO_T}$ac_cv_exeext" >&6
1487
1488 rm -f conftest.$ac_ext
1489 EXEEXT=$ac_cv_exeext
1490 ac_exeext=$EXEEXT
1491 echo "$as_me:1491: checking for object suffix" >&5
1492 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1493 if test "${ac_cv_objext+set}" = set; then
1494   echo $ECHO_N "(cached) $ECHO_C" >&6
1495 else
1496   cat >conftest.$ac_ext <<_ACEOF
1497 #line 1497 "configure"
1498 #include "confdefs.h"
1499
1500 int
1501 main ()
1502 {
1503
1504   ;
1505   return 0;
1506 }
1507 _ACEOF
1508 rm -f conftest.o conftest.obj
1509 if { (eval echo "$as_me:1509: \"$ac_compile\"") >&5
1510   (eval $ac_compile) 2>&5
1511   ac_status=$?
1512   echo "$as_me:1512: \$? = $ac_status" >&5
1513   (exit $ac_status); }; then
1514   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1515   case $ac_file in
1516     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1517     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1518        break;;
1519   esac
1520 done
1521 else
1522   echo "$as_me: failed program was:" >&5
1523 cat conftest.$ac_ext >&5
1524 { { echo "$as_me:1524: error: cannot compute OBJEXT: cannot compile" >&5
1525 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1526    { (exit 1); exit 1; }; }
1527 fi
1528
1529 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1530 fi
1531 echo "$as_me:1531: result: $ac_cv_objext" >&5
1532 echo "${ECHO_T}$ac_cv_objext" >&6
1533 OBJEXT=$ac_cv_objext
1534 ac_objext=$OBJEXT
1535 echo "$as_me:1535: checking whether we are using the GNU C compiler" >&5
1536 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1537 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1538   echo $ECHO_N "(cached) $ECHO_C" >&6
1539 else
1540   cat >conftest.$ac_ext <<_ACEOF
1541 #line 1541 "configure"
1542 #include "confdefs.h"
1543
1544 int
1545 main ()
1546 {
1547 #ifndef __GNUC__
1548        choke me
1549 #endif
1550
1551   ;
1552   return 0;
1553 }
1554 _ACEOF
1555 rm -f conftest.$ac_objext
1556 if { (eval echo "$as_me:1556: \"$ac_compile\"") >&5
1557   (eval $ac_compile) 2>&5
1558   ac_status=$?
1559   echo "$as_me:1559: \$? = $ac_status" >&5
1560   (exit $ac_status); } &&
1561          { ac_try='test -s conftest.$ac_objext'
1562   { (eval echo "$as_me:1562: \"$ac_try\"") >&5
1563   (eval $ac_try) 2>&5
1564   ac_status=$?
1565   echo "$as_me:1565: \$? = $ac_status" >&5
1566   (exit $ac_status); }; }; then
1567   ac_compiler_gnu=yes
1568 else
1569   echo "$as_me: failed program was:" >&5
1570 cat conftest.$ac_ext >&5
1571 ac_compiler_gnu=no
1572 fi
1573 rm -f conftest.$ac_objext conftest.$ac_ext
1574 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1575
1576 fi
1577 echo "$as_me:1577: result: $ac_cv_c_compiler_gnu" >&5
1578 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1579 GCC=`test $ac_compiler_gnu = yes && echo yes`
1580 ac_test_CFLAGS=${CFLAGS+set}
1581 ac_save_CFLAGS=$CFLAGS
1582 CFLAGS="-g"
1583 echo "$as_me:1583: checking whether $CC accepts -g" >&5
1584 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1585 if test "${ac_cv_prog_cc_g+set}" = set; then
1586   echo $ECHO_N "(cached) $ECHO_C" >&6
1587 else
1588   cat >conftest.$ac_ext <<_ACEOF
1589 #line 1589 "configure"
1590 #include "confdefs.h"
1591
1592 int
1593 main ()
1594 {
1595
1596   ;
1597   return 0;
1598 }
1599 _ACEOF
1600 rm -f conftest.$ac_objext
1601 if { (eval echo "$as_me:1601: \"$ac_compile\"") >&5
1602   (eval $ac_compile) 2>&5
1603   ac_status=$?
1604   echo "$as_me:1604: \$? = $ac_status" >&5
1605   (exit $ac_status); } &&
1606          { ac_try='test -s conftest.$ac_objext'
1607   { (eval echo "$as_me:1607: \"$ac_try\"") >&5
1608   (eval $ac_try) 2>&5
1609   ac_status=$?
1610   echo "$as_me:1610: \$? = $ac_status" >&5
1611   (exit $ac_status); }; }; then
1612   ac_cv_prog_cc_g=yes
1613 else
1614   echo "$as_me: failed program was:" >&5
1615 cat conftest.$ac_ext >&5
1616 ac_cv_prog_cc_g=no
1617 fi
1618 rm -f conftest.$ac_objext conftest.$ac_ext
1619 fi
1620 echo "$as_me:1620: result: $ac_cv_prog_cc_g" >&5
1621 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1622 if test "$ac_test_CFLAGS" = set; then
1623   CFLAGS=$ac_save_CFLAGS
1624 elif test $ac_cv_prog_cc_g = yes; then
1625   if test "$GCC" = yes; then
1626     CFLAGS="-g -O2"
1627   else
1628     CFLAGS="-g"
1629   fi
1630 else
1631   if test "$GCC" = yes; then
1632     CFLAGS="-O2"
1633   else
1634     CFLAGS=
1635   fi
1636 fi
1637 # Some people use a C++ compiler to compile C.  Since we use `exit',
1638 # in C++ we need to declare it.  In case someone uses the same compiler
1639 # for both compiling C and C++ we need to have the C++ compiler decide
1640 # the declaration of exit, since it's the most demanding environment.
1641 cat >conftest.$ac_ext <<_ACEOF
1642 #ifndef __cplusplus
1643   choke me
1644 #endif
1645 _ACEOF
1646 rm -f conftest.$ac_objext
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); } &&
1652          { ac_try='test -s conftest.$ac_objext'
1653   { (eval echo "$as_me:1653: \"$ac_try\"") >&5
1654   (eval $ac_try) 2>&5
1655   ac_status=$?
1656   echo "$as_me:1656: \$? = $ac_status" >&5
1657   (exit $ac_status); }; }; then
1658   for ac_declaration in \
1659    ''\
1660    '#include <stdlib.h>' \
1661    'extern "C" void std::exit (int) throw (); using std::exit;' \
1662    'extern "C" void std::exit (int); using std::exit;' \
1663    'extern "C" void exit (int) throw ();' \
1664    'extern "C" void exit (int);' \
1665    'void exit (int);'
1666 do
1667   cat >conftest.$ac_ext <<_ACEOF
1668 #line 1668 "configure"
1669 #include "confdefs.h"
1670 #include <stdlib.h>
1671 $ac_declaration
1672 int
1673 main ()
1674 {
1675 exit (42);
1676   ;
1677   return 0;
1678 }
1679 _ACEOF
1680 rm -f conftest.$ac_objext
1681 if { (eval echo "$as_me:1681: \"$ac_compile\"") >&5
1682   (eval $ac_compile) 2>&5
1683   ac_status=$?
1684   echo "$as_me:1684: \$? = $ac_status" >&5
1685   (exit $ac_status); } &&
1686          { ac_try='test -s conftest.$ac_objext'
1687   { (eval echo "$as_me:1687: \"$ac_try\"") >&5
1688   (eval $ac_try) 2>&5
1689   ac_status=$?
1690   echo "$as_me:1690: \$? = $ac_status" >&5
1691   (exit $ac_status); }; }; then
1692   :
1693 else
1694   echo "$as_me: failed program was:" >&5
1695 cat conftest.$ac_ext >&5
1696 continue
1697 fi
1698 rm -f conftest.$ac_objext conftest.$ac_ext
1699   cat >conftest.$ac_ext <<_ACEOF
1700 #line 1700 "configure"
1701 #include "confdefs.h"
1702 $ac_declaration
1703 int
1704 main ()
1705 {
1706 exit (42);
1707   ;
1708   return 0;
1709 }
1710 _ACEOF
1711 rm -f conftest.$ac_objext
1712 if { (eval echo "$as_me:1712: \"$ac_compile\"") >&5
1713   (eval $ac_compile) 2>&5
1714   ac_status=$?
1715   echo "$as_me:1715: \$? = $ac_status" >&5
1716   (exit $ac_status); } &&
1717          { ac_try='test -s conftest.$ac_objext'
1718   { (eval echo "$as_me:1718: \"$ac_try\"") >&5
1719   (eval $ac_try) 2>&5
1720   ac_status=$?
1721   echo "$as_me:1721: \$? = $ac_status" >&5
1722   (exit $ac_status); }; }; then
1723   break
1724 else
1725   echo "$as_me: failed program was:" >&5
1726 cat conftest.$ac_ext >&5
1727 fi
1728 rm -f conftest.$ac_objext conftest.$ac_ext
1729 done
1730 echo '#ifdef __cplusplus' >>confdefs.h
1731 echo $ac_declaration      >>confdefs.h
1732 echo '#endif'             >>confdefs.h
1733
1734 else
1735   echo "$as_me: failed program was:" >&5
1736 cat conftest.$ac_ext >&5
1737 fi
1738 rm -f conftest.$ac_objext conftest.$ac_ext
1739 ac_ext=c
1740 ac_cpp='$CPP $CPPFLAGS'
1741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1744
1745 ac_ext=c
1746 ac_cpp='$CPP $CPPFLAGS'
1747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1750 echo "$as_me:1750: checking how to run the C preprocessor" >&5
1751 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1752 # On Suns, sometimes $CPP names a directory.
1753 if test -n "$CPP" && test -d "$CPP"; then
1754   CPP=
1755 fi
1756 if test -z "$CPP"; then
1757   if test "${ac_cv_prog_CPP+set}" = set; then
1758   echo $ECHO_N "(cached) $ECHO_C" >&6
1759 else
1760       # Double quotes because CPP needs to be expanded
1761     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1762     do
1763       # break 2 since there is a loop in there.
1764       ac_preproc_ok=false
1765 for ac_c_preproc_warn_flag in '' yes
1766 do
1767   # Use a header file that comes with gcc, so configuring glibc
1768   # with a fresh cross-compiler works.
1769   # On the NeXT, cc -E runs the code through the compiler's parser,
1770   # not just through cpp. "Syntax error" is here to catch this case.
1771   cat >conftest.$ac_ext <<_ACEOF
1772 #line 1772 "configure"
1773 #include "confdefs.h"
1774 #include <assert.h>
1775                      Syntax error
1776 _ACEOF
1777 if { (eval echo "$as_me:1777: \"$ac_cpp conftest.$ac_ext\"") >&5
1778   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1779   ac_status=$?
1780   egrep -v '^ *\+' conftest.er1 >conftest.err
1781   rm -f conftest.er1
1782   cat conftest.err >&5
1783   echo "$as_me:1783: \$? = $ac_status" >&5
1784   (exit $ac_status); } >/dev/null; then
1785   if test -s conftest.err; then
1786     ac_cpp_err=$ac_c_preproc_warn_flag
1787   else
1788     ac_cpp_err=
1789   fi
1790 else
1791   ac_cpp_err=yes
1792 fi
1793 if test -z "$ac_cpp_err"; then
1794   :
1795 else
1796   echo "$as_me: failed program was:" >&5
1797   cat conftest.$ac_ext >&5
1798   # Broken: fails on valid input.
1799 continue
1800 fi
1801 rm -f conftest.err conftest.$ac_ext
1802
1803   # OK, works on sane cases.  Now check whether non-existent headers
1804   # can be detected and how.
1805   cat >conftest.$ac_ext <<_ACEOF
1806 #line 1806 "configure"
1807 #include "confdefs.h"
1808 #include <ac_nonexistent.h>
1809 _ACEOF
1810 if { (eval echo "$as_me:1810: \"$ac_cpp conftest.$ac_ext\"") >&5
1811   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1812   ac_status=$?
1813   egrep -v '^ *\+' conftest.er1 >conftest.err
1814   rm -f conftest.er1
1815   cat conftest.err >&5
1816   echo "$as_me:1816: \$? = $ac_status" >&5
1817   (exit $ac_status); } >/dev/null; then
1818   if test -s conftest.err; then
1819     ac_cpp_err=$ac_c_preproc_warn_flag
1820   else
1821     ac_cpp_err=
1822   fi
1823 else
1824   ac_cpp_err=yes
1825 fi
1826 if test -z "$ac_cpp_err"; then
1827   # Broken: success on invalid input.
1828 continue
1829 else
1830   echo "$as_me: failed program was:" >&5
1831   cat conftest.$ac_ext >&5
1832   # Passes both tests.
1833 ac_preproc_ok=:
1834 break
1835 fi
1836 rm -f conftest.err conftest.$ac_ext
1837
1838 done
1839 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1840 rm -f conftest.err conftest.$ac_ext
1841 if $ac_preproc_ok; then
1842   break 2
1843 fi
1844
1845     done
1846     ac_cv_prog_CPP=$CPP
1847
1848 fi
1849   CPP=$ac_cv_prog_CPP
1850 else
1851   ac_cv_prog_CPP=$CPP
1852 fi
1853 echo "$as_me:1853: result: $CPP" >&5
1854 echo "${ECHO_T}$CPP" >&6
1855 ac_preproc_ok=false
1856 for ac_c_preproc_warn_flag in '' yes
1857 do
1858   # Use a header file that comes with gcc, so configuring glibc
1859   # with a fresh cross-compiler works.
1860   # On the NeXT, cc -E runs the code through the compiler's parser,
1861   # not just through cpp. "Syntax error" is here to catch this case.
1862   cat >conftest.$ac_ext <<_ACEOF
1863 #line 1863 "configure"
1864 #include "confdefs.h"
1865 #include <assert.h>
1866                      Syntax error
1867 _ACEOF
1868 if { (eval echo "$as_me:1868: \"$ac_cpp conftest.$ac_ext\"") >&5
1869   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1870   ac_status=$?
1871   egrep -v '^ *\+' conftest.er1 >conftest.err
1872   rm -f conftest.er1
1873   cat conftest.err >&5
1874   echo "$as_me:1874: \$? = $ac_status" >&5
1875   (exit $ac_status); } >/dev/null; then
1876   if test -s conftest.err; then
1877     ac_cpp_err=$ac_c_preproc_warn_flag
1878   else
1879     ac_cpp_err=
1880   fi
1881 else
1882   ac_cpp_err=yes
1883 fi
1884 if test -z "$ac_cpp_err"; then
1885   :
1886 else
1887   echo "$as_me: failed program was:" >&5
1888   cat conftest.$ac_ext >&5
1889   # Broken: fails on valid input.
1890 continue
1891 fi
1892 rm -f conftest.err conftest.$ac_ext
1893
1894   # OK, works on sane cases.  Now check whether non-existent headers
1895   # can be detected and how.
1896   cat >conftest.$ac_ext <<_ACEOF
1897 #line 1897 "configure"
1898 #include "confdefs.h"
1899 #include <ac_nonexistent.h>
1900 _ACEOF
1901 if { (eval echo "$as_me:1901: \"$ac_cpp conftest.$ac_ext\"") >&5
1902   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1903   ac_status=$?
1904   egrep -v '^ *\+' conftest.er1 >conftest.err
1905   rm -f conftest.er1
1906   cat conftest.err >&5
1907   echo "$as_me:1907: \$? = $ac_status" >&5
1908   (exit $ac_status); } >/dev/null; then
1909   if test -s conftest.err; then
1910     ac_cpp_err=$ac_c_preproc_warn_flag
1911   else
1912     ac_cpp_err=
1913   fi
1914 else
1915   ac_cpp_err=yes
1916 fi
1917 if test -z "$ac_cpp_err"; then
1918   # Broken: success on invalid input.
1919 continue
1920 else
1921   echo "$as_me: failed program was:" >&5
1922   cat conftest.$ac_ext >&5
1923   # Passes both tests.
1924 ac_preproc_ok=:
1925 break
1926 fi
1927 rm -f conftest.err conftest.$ac_ext
1928
1929 done
1930 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1931 rm -f conftest.err conftest.$ac_ext
1932 if $ac_preproc_ok; then
1933   :
1934 else
1935   { { echo "$as_me:1935: error: C preprocessor \"$CPP\" fails sanity check" >&5
1936 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
1937    { (exit 1); exit 1; }; }
1938 fi
1939
1940 ac_ext=c
1941 ac_cpp='$CPP $CPPFLAGS'
1942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1945
1946 if test -n "$ac_tool_prefix"; then
1947   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1948 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1949 echo "$as_me:1949: checking for $ac_word" >&5
1950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1951 if test "${ac_cv_prog_RANLIB+set}" = set; then
1952   echo $ECHO_N "(cached) $ECHO_C" >&6
1953 else
1954   if test -n "$RANLIB"; then
1955   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1956 else
1957   ac_save_IFS=$IFS; IFS=$ac_path_separator
1958 ac_dummy="$PATH"
1959 for ac_dir in $ac_dummy; do
1960   IFS=$ac_save_IFS
1961   test -z "$ac_dir" && ac_dir=.
1962   $as_executable_p "$ac_dir/$ac_word" || continue
1963 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1964 echo "$as_me:1964: found $ac_dir/$ac_word" >&5
1965 break
1966 done
1967
1968 fi
1969 fi
1970 RANLIB=$ac_cv_prog_RANLIB
1971 if test -n "$RANLIB"; then
1972   echo "$as_me:1972: result: $RANLIB" >&5
1973 echo "${ECHO_T}$RANLIB" >&6
1974 else
1975   echo "$as_me:1975: result: no" >&5
1976 echo "${ECHO_T}no" >&6
1977 fi
1978
1979 fi
1980 if test -z "$ac_cv_prog_RANLIB"; then
1981   ac_ct_RANLIB=$RANLIB
1982   # Extract the first word of "ranlib", so it can be a program name with args.
1983 set dummy ranlib; ac_word=$2
1984 echo "$as_me:1984: checking for $ac_word" >&5
1985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1986 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1987   echo $ECHO_N "(cached) $ECHO_C" >&6
1988 else
1989   if test -n "$ac_ct_RANLIB"; then
1990   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1991 else
1992   ac_save_IFS=$IFS; IFS=$ac_path_separator
1993 ac_dummy="$PATH"
1994 for ac_dir in $ac_dummy; do
1995   IFS=$ac_save_IFS
1996   test -z "$ac_dir" && ac_dir=.
1997   $as_executable_p "$ac_dir/$ac_word" || continue
1998 ac_cv_prog_ac_ct_RANLIB="ranlib"
1999 echo "$as_me:1999: found $ac_dir/$ac_word" >&5
2000 break
2001 done
2002
2003   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2004 fi
2005 fi
2006 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2007 if test -n "$ac_ct_RANLIB"; then
2008   echo "$as_me:2008: result: $ac_ct_RANLIB" >&5
2009 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2010 else
2011   echo "$as_me:2011: result: no" >&5
2012 echo "${ECHO_T}no" >&6
2013 fi
2014
2015   RANLIB=$ac_ct_RANLIB
2016 else
2017   RANLIB="$ac_cv_prog_RANLIB"
2018 fi
2019
2020 # Find a good install program.  We prefer a C program (faster),
2021 # so one script is as good as another.  But avoid the broken or
2022 # incompatible versions:
2023 # SysV /etc/install, /usr/sbin/install
2024 # SunOS /usr/etc/install
2025 # IRIX /sbin/install
2026 # AIX /bin/install
2027 # AmigaOS /C/install, which installs bootblocks on floppy discs
2028 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2029 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2030 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2031 # ./install, which can be erroneously created by make from ./install.sh.
2032 echo "$as_me:2032: checking for a BSD compatible install" >&5
2033 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2034 if test -z "$INSTALL"; then
2035 if test "${ac_cv_path_install+set}" = set; then
2036   echo $ECHO_N "(cached) $ECHO_C" >&6
2037 else
2038     ac_save_IFS=$IFS; IFS=$ac_path_separator
2039   for ac_dir in $PATH; do
2040     IFS=$ac_save_IFS
2041     # Account for people who put trailing slashes in PATH elements.
2042     case $ac_dir/ in
2043     / | ./ | .// | /cC/* \
2044     | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2045     | /usr/ucb/* ) ;;
2046     *)
2047       # OSF1 and SCO ODT 3.0 have their own names for install.
2048       # Don't use installbsd from OSF since it installs stuff as root
2049       # by default.
2050       for ac_prog in ginstall scoinst install; do
2051         if $as_executable_p "$ac_dir/$ac_prog"; then
2052           if test $ac_prog = install &&
2053             grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2054             # AIX install.  It has an incompatible calling convention.
2055             :
2056           elif test $ac_prog = install &&
2057             grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2058             # program-specific install script used by HP pwplus--don't use.
2059             :
2060           else
2061             ac_cv_path_install="$ac_dir/$ac_prog -c"
2062             break 2
2063           fi
2064         fi
2065       done
2066       ;;
2067     esac
2068   done
2069
2070 fi
2071   if test "${ac_cv_path_install+set}" = set; then
2072     INSTALL=$ac_cv_path_install
2073   else
2074     # As a last resort, use the slow shell script.  We don't cache a
2075     # path for INSTALL within a source directory, because that will
2076     # break other packages using the cache if that directory is
2077     # removed, or if the path is relative.
2078     INSTALL=$ac_install_sh
2079   fi
2080 fi
2081 echo "$as_me:2081: result: $INSTALL" >&5
2082 echo "${ECHO_T}$INSTALL" >&6
2083
2084 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2085 # It thinks the first close brace ends the variable substitution.
2086 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2087
2088 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2089
2090 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2091
2092 echo "$as_me:2092: checking for $CC option to accept ANSI C" >&5
2093 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2094 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2095   echo $ECHO_N "(cached) $ECHO_C" >&6
2096 else
2097   ac_cv_prog_cc_stdc=no
2098 ac_save_CC=$CC
2099 cat >conftest.$ac_ext <<_ACEOF
2100 #line 2100 "configure"
2101 #include "confdefs.h"
2102 #include <stdarg.h>
2103 #include <stdio.h>
2104 #include <sys/types.h>
2105 #include <sys/stat.h>
2106 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2107 struct buf { int x; };
2108 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2109 static char *e (p, i)
2110      char **p;
2111      int i;
2112 {
2113   return p[i];
2114 }
2115 static char *f (char * (*g) (char **, int), char **p, ...)
2116 {
2117   char *s;
2118   va_list v;
2119   va_start (v,p);
2120   s = g (p, va_arg (v,int));
2121   va_end (v);
2122   return s;
2123 }
2124 int test (int i, double x);
2125 struct s1 {int (*f) (int a);};
2126 struct s2 {int (*f) (double a);};
2127 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2128 int argc;
2129 char **argv;
2130 int
2131 main ()
2132 {
2133 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2134   ;
2135   return 0;
2136 }
2137 _ACEOF
2138 # Don't try gcc -ansi; that turns off useful extensions and
2139 # breaks some systems' header files.
2140 # AIX                   -qlanglvl=ansi
2141 # Ultrix and OSF/1      -std1
2142 # HP-UX 10.20 and later -Ae
2143 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2144 # SVR4                  -Xc -D__EXTENSIONS__
2145 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2146 do
2147   CC="$ac_save_CC $ac_arg"
2148   rm -f conftest.$ac_objext
2149 if { (eval echo "$as_me:2149: \"$ac_compile\"") >&5
2150   (eval $ac_compile) 2>&5
2151   ac_status=$?
2152   echo "$as_me:2152: \$? = $ac_status" >&5
2153   (exit $ac_status); } &&
2154          { ac_try='test -s conftest.$ac_objext'
2155   { (eval echo "$as_me:2155: \"$ac_try\"") >&5
2156   (eval $ac_try) 2>&5
2157   ac_status=$?
2158   echo "$as_me:2158: \$? = $ac_status" >&5
2159   (exit $ac_status); }; }; then
2160   ac_cv_prog_cc_stdc=$ac_arg
2161 break
2162 else
2163   echo "$as_me: failed program was:" >&5
2164 cat conftest.$ac_ext >&5
2165 fi
2166 rm -f conftest.$ac_objext
2167 done
2168 rm -f conftest.$ac_ext conftest.$ac_objext
2169 CC=$ac_save_CC
2170
2171 fi
2172
2173 case "x$ac_cv_prog_cc_stdc" in
2174   x|xno)
2175     echo "$as_me:2175: result: none needed" >&5
2176 echo "${ECHO_T}none needed" >&6 ;;
2177   *)
2178     echo "$as_me:2178: result: $ac_cv_prog_cc_stdc" >&5
2179 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2180     CC="$CC $ac_cv_prog_cc_stdc" ;;
2181 esac
2182
2183 echo "$as_me:2183: checking for an ANSI C-conforming const" >&5
2184 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
2185 if test "${ac_cv_c_const+set}" = set; then
2186   echo $ECHO_N "(cached) $ECHO_C" >&6
2187 else
2188   cat >conftest.$ac_ext <<_ACEOF
2189 #line 2189 "configure"
2190 #include "confdefs.h"
2191
2192 int
2193 main ()
2194 {
2195 /* FIXME: Include the comments suggested by Paul. */
2196 #ifndef __cplusplus
2197   /* Ultrix mips cc rejects this.  */
2198   typedef int charset[2];
2199   const charset x;
2200   /* SunOS 4.1.1 cc rejects this.  */
2201   char const *const *ccp;
2202   char **p;
2203   /* NEC SVR4.0.2 mips cc rejects this.  */
2204   struct point {int x, y;};
2205   static struct point const zero = {0,0};
2206   /* AIX XL C 1.02.0.0 rejects this.
2207      It does not let you subtract one const X* pointer from another in
2208      an arm of an if-expression whose if-part is not a constant
2209      expression */
2210   const char *g = "string";
2211   ccp = &g + (g ? g-g : 0);
2212   /* HPUX 7.0 cc rejects these. */
2213   ++ccp;
2214   p = (char**) ccp;
2215   ccp = (char const *const *) p;
2216   { /* SCO 3.2v4 cc rejects this.  */
2217     char *t;
2218     char const *s = 0 ? (char *) 0 : (char const *) 0;
2219
2220     *t++ = 0;
2221   }
2222   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
2223     int x[] = {25, 17};
2224     const int *foo = &x[0];
2225     ++foo;
2226   }
2227   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2228     typedef const int *iptr;
2229     iptr p = 0;
2230     ++p;
2231   }
2232   { /* AIX XL C 1.02.0.0 rejects this saying
2233        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2234     struct s { int j; const int *ap[3]; };
2235     struct s *b; b->j = 5;
2236   }
2237   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2238     const int foo = 10;
2239   }
2240 #endif
2241
2242   ;
2243   return 0;
2244 }
2245 _ACEOF
2246 rm -f conftest.$ac_objext
2247 if { (eval echo "$as_me:2247: \"$ac_compile\"") >&5
2248   (eval $ac_compile) 2>&5
2249   ac_status=$?
2250   echo "$as_me:2250: \$? = $ac_status" >&5
2251   (exit $ac_status); } &&
2252          { ac_try='test -s conftest.$ac_objext'
2253   { (eval echo "$as_me:2253: \"$ac_try\"") >&5
2254   (eval $ac_try) 2>&5
2255   ac_status=$?
2256   echo "$as_me:2256: \$? = $ac_status" >&5
2257   (exit $ac_status); }; }; then
2258   ac_cv_c_const=yes
2259 else
2260   echo "$as_me: failed program was:" >&5
2261 cat conftest.$ac_ext >&5
2262 ac_cv_c_const=no
2263 fi
2264 rm -f conftest.$ac_objext conftest.$ac_ext
2265 fi
2266 echo "$as_me:2266: result: $ac_cv_c_const" >&5
2267 echo "${ECHO_T}$ac_cv_c_const" >&6
2268 if test $ac_cv_c_const = no; then
2269
2270 cat >>confdefs.h <<\EOF
2271 #define const
2272 EOF
2273
2274 fi
2275
2276 if test x${cross_compiling} != xyes; then
2277   echo "$as_me:2277: checking whether byte ordering is bigendian" >&5
2278 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2279 if test "${ac_cv_c_bigendian+set}" = set; then
2280   echo $ECHO_N "(cached) $ECHO_C" >&6
2281 else
2282   ac_cv_c_bigendian=unknown
2283 # See if sys/param.h defines the BYTE_ORDER macro.
2284 cat >conftest.$ac_ext <<_ACEOF
2285 #line 2285 "configure"
2286 #include "confdefs.h"
2287 #include <sys/types.h>
2288 #include <sys/param.h>
2289
2290 int
2291 main ()
2292 {
2293 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2294  bogus endian macros
2295 #endif
2296
2297   ;
2298   return 0;
2299 }
2300 _ACEOF
2301 rm -f conftest.$ac_objext
2302 if { (eval echo "$as_me:2302: \"$ac_compile\"") >&5
2303   (eval $ac_compile) 2>&5
2304   ac_status=$?
2305   echo "$as_me:2305: \$? = $ac_status" >&5
2306   (exit $ac_status); } &&
2307          { ac_try='test -s conftest.$ac_objext'
2308   { (eval echo "$as_me:2308: \"$ac_try\"") >&5
2309   (eval $ac_try) 2>&5
2310   ac_status=$?
2311   echo "$as_me:2311: \$? = $ac_status" >&5
2312   (exit $ac_status); }; }; then
2313   # It does; now see whether it defined to BIG_ENDIAN or not.
2314 cat >conftest.$ac_ext <<_ACEOF
2315 #line 2315 "configure"
2316 #include "confdefs.h"
2317 #include <sys/types.h>
2318 #include <sys/param.h>
2319
2320 int
2321 main ()
2322 {
2323 #if BYTE_ORDER != BIG_ENDIAN
2324  not big endian
2325 #endif
2326
2327   ;
2328   return 0;
2329 }
2330 _ACEOF
2331 rm -f conftest.$ac_objext
2332 if { (eval echo "$as_me:2332: \"$ac_compile\"") >&5
2333   (eval $ac_compile) 2>&5
2334   ac_status=$?
2335   echo "$as_me:2335: \$? = $ac_status" >&5
2336   (exit $ac_status); } &&
2337          { ac_try='test -s conftest.$ac_objext'
2338   { (eval echo "$as_me:2338: \"$ac_try\"") >&5
2339   (eval $ac_try) 2>&5
2340   ac_status=$?
2341   echo "$as_me:2341: \$? = $ac_status" >&5
2342   (exit $ac_status); }; }; then
2343   ac_cv_c_bigendian=yes
2344 else
2345   echo "$as_me: failed program was:" >&5
2346 cat conftest.$ac_ext >&5
2347 ac_cv_c_bigendian=no
2348 fi
2349 rm -f conftest.$ac_objext conftest.$ac_ext
2350 else
2351   echo "$as_me: failed program was:" >&5
2352 cat conftest.$ac_ext >&5
2353 fi
2354 rm -f conftest.$ac_objext conftest.$ac_ext
2355 if test $ac_cv_c_bigendian = unknown; then
2356 if test "$cross_compiling" = yes; then
2357   { { echo "$as_me:2357: error: cannot run test program while cross compiling" >&5
2358 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
2359    { (exit 1); exit 1; }; }
2360 else
2361   cat >conftest.$ac_ext <<_ACEOF
2362 #line 2362 "configure"
2363 #include "confdefs.h"
2364 int
2365 main ()
2366 {
2367   /* Are we little or big endian?  From Harbison&Steele.  */
2368   union
2369   {
2370     long l;
2371     char c[sizeof (long)];
2372   } u;
2373   u.l = 1;
2374   exit (u.c[sizeof (long) - 1] == 1);
2375 }
2376 _ACEOF
2377 rm -f conftest$ac_exeext
2378 if { (eval echo "$as_me:2378: \"$ac_link\"") >&5
2379   (eval $ac_link) 2>&5
2380   ac_status=$?
2381   echo "$as_me:2381: \$? = $ac_status" >&5
2382   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2383   { (eval echo "$as_me:2383: \"$ac_try\"") >&5
2384   (eval $ac_try) 2>&5
2385   ac_status=$?
2386   echo "$as_me:2386: \$? = $ac_status" >&5
2387   (exit $ac_status); }; }; then
2388   ac_cv_c_bigendian=no
2389 else
2390   echo "$as_me: program exited with status $ac_status" >&5
2391 echo "$as_me: failed program was:" >&5
2392 cat conftest.$ac_ext >&5
2393 ac_cv_c_bigendian=yes
2394 fi
2395 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
2396 fi
2397 fi
2398 fi
2399 echo "$as_me:2399: result: $ac_cv_c_bigendian" >&5
2400 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2401 if test $ac_cv_c_bigendian = yes; then
2402
2403 cat >>confdefs.h <<\EOF
2404 #define WORDS_BIGENDIAN 1
2405 EOF
2406
2407 fi
2408
2409 fi
2410
2411 for ac_func in gettimeofday select strerror strtod strtol
2412 do
2413 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
2414 echo "$as_me:2414: checking for $ac_func" >&5
2415 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
2416 if eval "test \"\${$ac_ac_var+set}\" = set"; then
2417   echo $ECHO_N "(cached) $ECHO_C" >&6
2418 else
2419   cat >conftest.$ac_ext <<_ACEOF
2420 #line 2420 "configure"
2421 #include "confdefs.h"
2422 /* System header to define __stub macros and hopefully few prototypes,
2423     which can conflict with char $ac_func (); below.  */
2424 #include <assert.h>
2425 /* Override any gcc2 internal prototype to avoid an error.  */
2426 #ifdef __cplusplus
2427 extern "C"
2428 #endif
2429 /* We use char because int might match the return type of a gcc2
2430    builtin and then its argument prototype would still apply.  */
2431 char $ac_func ();
2432 char (*f) ();
2433
2434 int
2435 main ()
2436 {
2437 /* The GNU C library defines this for functions which it implements
2438     to always fail with ENOSYS.  Some functions are actually named
2439     something starting with __ and the normal name is an alias.  */
2440 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2441 choke me
2442 #else
2443 f = $ac_func;
2444 #endif
2445
2446   ;
2447   return 0;
2448 }
2449 _ACEOF
2450 rm -f conftest.$ac_objext conftest$ac_exeext
2451 if { (eval echo "$as_me:2451: \"$ac_link\"") >&5
2452   (eval $ac_link) 2>&5
2453   ac_status=$?
2454   echo "$as_me:2454: \$? = $ac_status" >&5
2455   (exit $ac_status); } &&
2456          { ac_try='test -s conftest$ac_exeext'
2457   { (eval echo "$as_me:2457: \"$ac_try\"") >&5
2458   (eval $ac_try) 2>&5
2459   ac_status=$?
2460   echo "$as_me:2460: \$? = $ac_status" >&5
2461   (exit $ac_status); }; }; then
2462   eval "$ac_ac_var=yes"
2463 else
2464   echo "$as_me: failed program was:" >&5
2465 cat conftest.$ac_ext >&5
2466 eval "$ac_ac_var=no"
2467 fi
2468 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2469 fi
2470 echo "$as_me:2470: result: `eval echo '${'$ac_ac_var'}'`" >&5
2471 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
2472 if test `eval echo '${'$ac_ac_var'}'` = yes; then
2473   cat >>confdefs.h <<EOF
2474 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
2475 EOF
2476
2477 fi
2478 done
2479
2480 for ac_func in setenv putenv
2481 do
2482 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
2483 echo "$as_me:2483: checking for $ac_func" >&5
2484 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
2485 if eval "test \"\${$ac_ac_var+set}\" = set"; then
2486   echo $ECHO_N "(cached) $ECHO_C" >&6
2487 else
2488   cat >conftest.$ac_ext <<_ACEOF
2489 #line 2489 "configure"
2490 #include "confdefs.h"
2491 /* System header to define __stub macros and hopefully few prototypes,
2492     which can conflict with char $ac_func (); below.  */
2493 #include <assert.h>
2494 /* Override any gcc2 internal prototype to avoid an error.  */
2495 #ifdef __cplusplus
2496 extern "C"
2497 #endif
2498 /* We use char because int might match the return type of a gcc2
2499    builtin and then its argument prototype would still apply.  */
2500 char $ac_func ();
2501 char (*f) ();
2502
2503 int
2504 main ()
2505 {
2506 /* The GNU C library defines this for functions which it implements
2507     to always fail with ENOSYS.  Some functions are actually named
2508     something starting with __ and the normal name is an alias.  */
2509 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2510 choke me
2511 #else
2512 f = $ac_func;
2513 #endif
2514
2515   ;
2516   return 0;
2517 }
2518 _ACEOF
2519 rm -f conftest.$ac_objext conftest$ac_exeext
2520 if { (eval echo "$as_me:2520: \"$ac_link\"") >&5
2521   (eval $ac_link) 2>&5
2522   ac_status=$?
2523   echo "$as_me:2523: \$? = $ac_status" >&5
2524   (exit $ac_status); } &&
2525          { ac_try='test -s conftest$ac_exeext'
2526   { (eval echo "$as_me:2526: \"$ac_try\"") >&5
2527   (eval $ac_try) 2>&5
2528   ac_status=$?
2529   echo "$as_me:2529: \$? = $ac_status" >&5
2530   (exit $ac_status); }; }; then
2531   eval "$ac_ac_var=yes"
2532 else
2533   echo "$as_me: failed program was:" >&5
2534 cat conftest.$ac_ext >&5
2535 eval "$ac_ac_var=no"
2536 fi
2537 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2538 fi
2539 echo "$as_me:2539: result: `eval echo '${'$ac_ac_var'}'`" >&5
2540 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
2541 if test `eval echo '${'$ac_ac_var'}'` = yes; then
2542   cat >>confdefs.h <<EOF
2543 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
2544 EOF
2545
2546 fi
2547 done
2548
2549 echo "$as_me:2549: checking for connect" >&5
2550 echo $ECHO_N "checking for connect... $ECHO_C" >&6
2551 if test "${ac_cv_func_connect+set}" = set; then
2552   echo $ECHO_N "(cached) $ECHO_C" >&6
2553 else
2554   cat >conftest.$ac_ext <<_ACEOF
2555 #line 2555 "configure"
2556 #include "confdefs.h"
2557 /* System header to define __stub macros and hopefully few prototypes,
2558     which can conflict with char connect (); below.  */
2559 #include <assert.h>
2560 /* Override any gcc2 internal prototype to avoid an error.  */
2561 #ifdef __cplusplus
2562 extern "C"
2563 #endif
2564 /* We use char because int might match the return type of a gcc2
2565    builtin and then its argument prototype would still apply.  */
2566 char connect ();
2567 char (*f) ();
2568
2569 int
2570 main ()
2571 {
2572 /* The GNU C library defines this for functions which it implements
2573     to always fail with ENOSYS.  Some functions are actually named
2574     something starting with __ and the normal name is an alias.  */
2575 #if defined (__stub_connect) || defined (__stub___connect)
2576 choke me
2577 #else
2578 f = connect;
2579 #endif
2580
2581   ;
2582   return 0;
2583 }
2584 _ACEOF
2585 rm -f conftest.$ac_objext conftest$ac_exeext
2586 if { (eval echo "$as_me:2586: \"$ac_link\"") >&5
2587   (eval $ac_link) 2>&5
2588   ac_status=$?
2589   echo "$as_me:2589: \$? = $ac_status" >&5
2590   (exit $ac_status); } &&
2591          { ac_try='test -s conftest$ac_exeext'
2592   { (eval echo "$as_me:2592: \"$ac_try\"") >&5
2593   (eval $ac_try) 2>&5
2594   ac_status=$?
2595   echo "$as_me:2595: \$? = $ac_status" >&5
2596   (exit $ac_status); }; }; then
2597   ac_cv_func_connect=yes
2598 else
2599   echo "$as_me: failed program was:" >&5
2600 cat conftest.$ac_ext >&5
2601 ac_cv_func_connect=no
2602 fi
2603 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2604 fi
2605 echo "$as_me:2605: result: $ac_cv_func_connect" >&5
2606 echo "${ECHO_T}$ac_cv_func_connect" >&6
2607 if test $ac_cv_func_connect = yes; then
2608   :
2609 else
2610
2611   echo "$as_me:2611: checking for connect in -lsocket" >&5
2612 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
2613 if test "${ac_cv_lib_socket_connect+set}" = set; then
2614   echo $ECHO_N "(cached) $ECHO_C" >&6
2615 else
2616   ac_check_lib_save_LIBS=$LIBS
2617 LIBS="-lsocket  $LIBS"
2618 cat >conftest.$ac_ext <<_ACEOF
2619 #line 2619 "configure"
2620 #include "confdefs.h"
2621
2622 /* Override any gcc2 internal prototype to avoid an error.  */
2623 #ifdef __cplusplus
2624 extern "C"
2625 #endif
2626 /* We use char because int might match the return type of a gcc2
2627    builtin and then its argument prototype would still apply.  */
2628 char connect ();
2629 int
2630 main ()
2631 {
2632 connect ();
2633   ;
2634   return 0;
2635 }
2636 _ACEOF
2637 rm -f conftest.$ac_objext conftest$ac_exeext
2638 if { (eval echo "$as_me:2638: \"$ac_link\"") >&5
2639   (eval $ac_link) 2>&5
2640   ac_status=$?
2641   echo "$as_me:2641: \$? = $ac_status" >&5
2642   (exit $ac_status); } &&
2643          { ac_try='test -s conftest$ac_exeext'
2644   { (eval echo "$as_me:2644: \"$ac_try\"") >&5
2645   (eval $ac_try) 2>&5
2646   ac_status=$?
2647   echo "$as_me:2647: \$? = $ac_status" >&5
2648   (exit $ac_status); }; }; then
2649   ac_cv_lib_socket_connect=yes
2650 else
2651   echo "$as_me: failed program was:" >&5
2652 cat conftest.$ac_ext >&5
2653 ac_cv_lib_socket_connect=no
2654 fi
2655 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2656 LIBS=$ac_check_lib_save_LIBS
2657 fi
2658 echo "$as_me:2658: result: $ac_cv_lib_socket_connect" >&5
2659 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
2660 if test $ac_cv_lib_socket_connect = yes; then
2661   LIB="${LIB} -lsocket"
2662 fi
2663
2664 fi
2665
2666 echo "$as_me:2666: checking for gethostbyname" >&5
2667 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
2668 if test "${ac_cv_func_gethostbyname+set}" = set; then
2669   echo $ECHO_N "(cached) $ECHO_C" >&6
2670 else
2671   cat >conftest.$ac_ext <<_ACEOF
2672 #line 2672 "configure"
2673 #include "confdefs.h"
2674 /* System header to define __stub macros and hopefully few prototypes,
2675     which can conflict with char gethostbyname (); below.  */
2676 #include <assert.h>
2677 /* Override any gcc2 internal prototype to avoid an error.  */
2678 #ifdef __cplusplus
2679 extern "C"
2680 #endif
2681 /* We use char because int might match the return type of a gcc2
2682    builtin and then its argument prototype would still apply.  */
2683 char gethostbyname ();
2684 char (*f) ();
2685
2686 int
2687 main ()
2688 {
2689 /* The GNU C library defines this for functions which it implements
2690     to always fail with ENOSYS.  Some functions are actually named
2691     something starting with __ and the normal name is an alias.  */
2692 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2693 choke me
2694 #else
2695 f = gethostbyname;
2696 #endif
2697
2698   ;
2699   return 0;
2700 }
2701 _ACEOF
2702 rm -f conftest.$ac_objext conftest$ac_exeext
2703 if { (eval echo "$as_me:2703: \"$ac_link\"") >&5
2704   (eval $ac_link) 2>&5
2705   ac_status=$?
2706   echo "$as_me:2706: \$? = $ac_status" >&5
2707   (exit $ac_status); } &&
2708          { ac_try='test -s conftest$ac_exeext'
2709   { (eval echo "$as_me:2709: \"$ac_try\"") >&5
2710   (eval $ac_try) 2>&5
2711   ac_status=$?
2712   echo "$as_me:2712: \$? = $ac_status" >&5
2713   (exit $ac_status); }; }; then
2714   ac_cv_func_gethostbyname=yes
2715 else
2716   echo "$as_me: failed program was:" >&5
2717 cat conftest.$ac_ext >&5
2718 ac_cv_func_gethostbyname=no
2719 fi
2720 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2721 fi
2722 echo "$as_me:2722: result: $ac_cv_func_gethostbyname" >&5
2723 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
2724 if test $ac_cv_func_gethostbyname = yes; then
2725   :
2726 else
2727
2728   echo "$as_me:2728: checking for gethostbyname in -lnsl" >&5
2729 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
2730 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
2731   echo $ECHO_N "(cached) $ECHO_C" >&6
2732 else
2733   ac_check_lib_save_LIBS=$LIBS
2734 LIBS="-lnsl  $LIBS"
2735 cat >conftest.$ac_ext <<_ACEOF
2736 #line 2736 "configure"
2737 #include "confdefs.h"
2738
2739 /* Override any gcc2 internal prototype to avoid an error.  */
2740 #ifdef __cplusplus
2741 extern "C"
2742 #endif
2743 /* We use char because int might match the return type of a gcc2
2744    builtin and then its argument prototype would still apply.  */
2745 char gethostbyname ();
2746 int
2747 main ()
2748 {
2749 gethostbyname ();
2750   ;
2751   return 0;
2752 }
2753 _ACEOF
2754 rm -f conftest.$ac_objext conftest$ac_exeext
2755 if { (eval echo "$as_me:2755: \"$ac_link\"") >&5
2756   (eval $ac_link) 2>&5
2757   ac_status=$?
2758   echo "$as_me:2758: \$? = $ac_status" >&5
2759   (exit $ac_status); } &&
2760          { ac_try='test -s conftest$ac_exeext'
2761   { (eval echo "$as_me:2761: \"$ac_try\"") >&5
2762   (eval $ac_try) 2>&5
2763   ac_status=$?
2764   echo "$as_me:2764: \$? = $ac_status" >&5
2765   (exit $ac_status); }; }; then
2766   ac_cv_lib_nsl_gethostbyname=yes
2767 else
2768   echo "$as_me: failed program was:" >&5
2769 cat conftest.$ac_ext >&5
2770 ac_cv_lib_nsl_gethostbyname=no
2771 fi
2772 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2773 LIBS=$ac_check_lib_save_LIBS
2774 fi
2775 echo "$as_me:2775: result: $ac_cv_lib_nsl_gethostbyname" >&5
2776 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
2777 if test $ac_cv_lib_nsl_gethostbyname = yes; then
2778   LIB="${LIB} -lnsl"
2779 fi
2780
2781 fi
2782
2783 echo "$as_me:2783: checking for nanosleep" >&5
2784 echo $ECHO_N "checking for nanosleep... $ECHO_C" >&6
2785 if test "${ac_cv_func_nanosleep+set}" = set; then
2786   echo $ECHO_N "(cached) $ECHO_C" >&6
2787 else
2788   cat >conftest.$ac_ext <<_ACEOF
2789 #line 2789 "configure"
2790 #include "confdefs.h"
2791 /* System header to define __stub macros and hopefully few prototypes,
2792     which can conflict with char nanosleep (); below.  */
2793 #include <assert.h>
2794 /* Override any gcc2 internal prototype to avoid an error.  */
2795 #ifdef __cplusplus
2796 extern "C"
2797 #endif
2798 /* We use char because int might match the return type of a gcc2
2799    builtin and then its argument prototype would still apply.  */
2800 char nanosleep ();
2801 char (*f) ();
2802
2803 int
2804 main ()
2805 {
2806 /* The GNU C library defines this for functions which it implements
2807     to always fail with ENOSYS.  Some functions are actually named
2808     something starting with __ and the normal name is an alias.  */
2809 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
2810 choke me
2811 #else
2812 f = nanosleep;
2813 #endif
2814
2815   ;
2816   return 0;
2817 }
2818 _ACEOF
2819 rm -f conftest.$ac_objext conftest$ac_exeext
2820 if { (eval echo "$as_me:2820: \"$ac_link\"") >&5
2821   (eval $ac_link) 2>&5
2822   ac_status=$?
2823   echo "$as_me:2823: \$? = $ac_status" >&5
2824   (exit $ac_status); } &&
2825          { ac_try='test -s conftest$ac_exeext'
2826   { (eval echo "$as_me:2826: \"$ac_try\"") >&5
2827   (eval $ac_try) 2>&5
2828   ac_status=$?
2829   echo "$as_me:2829: \$? = $ac_status" >&5
2830   (exit $ac_status); }; }; then
2831   ac_cv_func_nanosleep=yes
2832 else
2833   echo "$as_me: failed program was:" >&5
2834 cat conftest.$ac_ext >&5
2835 ac_cv_func_nanosleep=no
2836 fi
2837 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2838 fi
2839 echo "$as_me:2839: result: $ac_cv_func_nanosleep" >&5
2840 echo "${ECHO_T}$ac_cv_func_nanosleep" >&6
2841 if test $ac_cv_func_nanosleep = yes; then
2842   :
2843 else
2844
2845   echo "$as_me:2845: checking for nanosleep in -lrt" >&5
2846 echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6
2847 if test "${ac_cv_lib_rt_nanosleep+set}" = set; then
2848   echo $ECHO_N "(cached) $ECHO_C" >&6
2849 else
2850   ac_check_lib_save_LIBS=$LIBS
2851 LIBS="-lrt  $LIBS"
2852 cat >conftest.$ac_ext <<_ACEOF
2853 #line 2853 "configure"
2854 #include "confdefs.h"
2855
2856 /* Override any gcc2 internal prototype to avoid an error.  */
2857 #ifdef __cplusplus
2858 extern "C"
2859 #endif
2860 /* We use char because int might match the return type of a gcc2
2861    builtin and then its argument prototype would still apply.  */
2862 char nanosleep ();
2863 int
2864 main ()
2865 {
2866 nanosleep ();
2867   ;
2868   return 0;
2869 }
2870 _ACEOF
2871 rm -f conftest.$ac_objext conftest$ac_exeext
2872 if { (eval echo "$as_me:2872: \"$ac_link\"") >&5
2873   (eval $ac_link) 2>&5
2874   ac_status=$?
2875   echo "$as_me:2875: \$? = $ac_status" >&5
2876   (exit $ac_status); } &&
2877          { ac_try='test -s conftest$ac_exeext'
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_lib_rt_nanosleep=yes
2884 else
2885   echo "$as_me: failed program was:" >&5
2886 cat conftest.$ac_ext >&5
2887 ac_cv_lib_rt_nanosleep=no
2888 fi
2889 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2890 LIBS=$ac_check_lib_save_LIBS
2891 fi
2892 echo "$as_me:2892: result: $ac_cv_lib_rt_nanosleep" >&5
2893 echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6
2894 if test $ac_cv_lib_rt_nanosleep = yes; then
2895   LIB="${LIB} -lrt"
2896 else
2897
2898     echo "$as_me:2898: checking for nanosleep in -lposix4" >&5
2899 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
2900 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
2901   echo $ECHO_N "(cached) $ECHO_C" >&6
2902 else
2903   ac_check_lib_save_LIBS=$LIBS
2904 LIBS="-lposix4  $LIBS"
2905 cat >conftest.$ac_ext <<_ACEOF
2906 #line 2906 "configure"
2907 #include "confdefs.h"
2908
2909 /* Override any gcc2 internal prototype to avoid an error.  */
2910 #ifdef __cplusplus
2911 extern "C"
2912 #endif
2913 /* We use char because int might match the return type of a gcc2
2914    builtin and then its argument prototype would still apply.  */
2915 char nanosleep ();
2916 int
2917 main ()
2918 {
2919 nanosleep ();
2920   ;
2921   return 0;
2922 }
2923 _ACEOF
2924 rm -f conftest.$ac_objext conftest$ac_exeext
2925 if { (eval echo "$as_me:2925: \"$ac_link\"") >&5
2926   (eval $ac_link) 2>&5
2927   ac_status=$?
2928   echo "$as_me:2928: \$? = $ac_status" >&5
2929   (exit $ac_status); } &&
2930          { ac_try='test -s conftest$ac_exeext'
2931   { (eval echo "$as_me:2931: \"$ac_try\"") >&5
2932   (eval $ac_try) 2>&5
2933   ac_status=$?
2934   echo "$as_me:2934: \$? = $ac_status" >&5
2935   (exit $ac_status); }; }; then
2936   ac_cv_lib_posix4_nanosleep=yes
2937 else
2938   echo "$as_me: failed program was:" >&5
2939 cat conftest.$ac_ext >&5
2940 ac_cv_lib_posix4_nanosleep=no
2941 fi
2942 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2943 LIBS=$ac_check_lib_save_LIBS
2944 fi
2945 echo "$as_me:2945: result: $ac_cv_lib_posix4_nanosleep" >&5
2946 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
2947 if test $ac_cv_lib_posix4_nanosleep = yes; then
2948   LIB="${LIB} -lposix4"
2949 fi
2950
2951 fi
2952
2953 fi
2954
2955 for ac_func in usleep
2956 do
2957 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
2958 echo "$as_me:2958: checking for $ac_func" >&5
2959 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
2960 if eval "test \"\${$ac_ac_var+set}\" = set"; then
2961   echo $ECHO_N "(cached) $ECHO_C" >&6
2962 else
2963   cat >conftest.$ac_ext <<_ACEOF
2964 #line 2964 "configure"
2965 #include "confdefs.h"
2966 /* System header to define __stub macros and hopefully few prototypes,
2967     which can conflict with char $ac_func (); below.  */
2968 #include <assert.h>
2969 /* Override any gcc2 internal prototype to avoid an error.  */
2970 #ifdef __cplusplus
2971 extern "C"
2972 #endif
2973 /* We use char because int might match the return type of a gcc2
2974    builtin and then its argument prototype would still apply.  */
2975 char $ac_func ();
2976 char (*f) ();
2977
2978 int
2979 main ()
2980 {
2981 /* The GNU C library defines this for functions which it implements
2982     to always fail with ENOSYS.  Some functions are actually named
2983     something starting with __ and the normal name is an alias.  */
2984 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2985 choke me
2986 #else
2987 f = $ac_func;
2988 #endif
2989
2990   ;
2991   return 0;
2992 }
2993 _ACEOF
2994 rm -f conftest.$ac_objext conftest$ac_exeext
2995 if { (eval echo "$as_me:2995: \"$ac_link\"") >&5
2996   (eval $ac_link) 2>&5
2997   ac_status=$?
2998   echo "$as_me:2998: \$? = $ac_status" >&5
2999   (exit $ac_status); } &&
3000          { ac_try='test -s conftest$ac_exeext'
3001   { (eval echo "$as_me:3001: \"$ac_try\"") >&5
3002   (eval $ac_try) 2>&5
3003   ac_status=$?
3004   echo "$as_me:3004: \$? = $ac_status" >&5
3005   (exit $ac_status); }; }; then
3006   eval "$ac_ac_var=yes"
3007 else
3008   echo "$as_me: failed program was:" >&5
3009 cat conftest.$ac_ext >&5
3010 eval "$ac_ac_var=no"
3011 fi
3012 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3013 fi
3014 echo "$as_me:3014: result: `eval echo '${'$ac_ac_var'}'`" >&5
3015 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
3016 if test `eval echo '${'$ac_ac_var'}'` = yes; then
3017   cat >>confdefs.h <<EOF
3018 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
3019 EOF
3020
3021 fi
3022 done
3023
3024 echo "$as_me:3024: checking for inet_aton" >&5
3025 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
3026 if test "${ac_cv_func_inet_aton+set}" = set; then
3027   echo $ECHO_N "(cached) $ECHO_C" >&6
3028 else
3029   cat >conftest.$ac_ext <<_ACEOF
3030 #line 3030 "configure"
3031 #include "confdefs.h"
3032 /* System header to define __stub macros and hopefully few prototypes,
3033     which can conflict with char inet_aton (); below.  */
3034 #include <assert.h>
3035 /* Override any gcc2 internal prototype to avoid an error.  */
3036 #ifdef __cplusplus
3037 extern "C"
3038 #endif
3039 /* We use char because int might match the return type of a gcc2
3040    builtin and then its argument prototype would still apply.  */
3041 char inet_aton ();
3042 char (*f) ();
3043
3044 int
3045 main ()
3046 {
3047 /* The GNU C library defines this for functions which it implements
3048     to always fail with ENOSYS.  Some functions are actually named
3049     something starting with __ and the normal name is an alias.  */
3050 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
3051 choke me
3052 #else
3053 f = inet_aton;
3054 #endif
3055
3056   ;
3057   return 0;
3058 }
3059 _ACEOF
3060 rm -f conftest.$ac_objext conftest$ac_exeext
3061 if { (eval echo "$as_me:3061: \"$ac_link\"") >&5
3062   (eval $ac_link) 2>&5
3063   ac_status=$?
3064   echo "$as_me:3064: \$? = $ac_status" >&5
3065   (exit $ac_status); } &&
3066          { ac_try='test -s conftest$ac_exeext'
3067   { (eval echo "$as_me:3067: \"$ac_try\"") >&5
3068   (eval $ac_try) 2>&5
3069   ac_status=$?
3070   echo "$as_me:3070: \$? = $ac_status" >&5
3071   (exit $ac_status); }; }; then
3072   ac_cv_func_inet_aton=yes
3073 else
3074   echo "$as_me: failed program was:" >&5
3075 cat conftest.$ac_ext >&5
3076 ac_cv_func_inet_aton=no
3077 fi
3078 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3079 fi
3080 echo "$as_me:3080: result: $ac_cv_func_inet_aton" >&5
3081 echo "${ECHO_T}$ac_cv_func_inet_aton" >&6
3082 if test $ac_cv_func_inet_aton = yes; then
3083   :
3084 else
3085
3086   echo "$as_me:3086: checking for inet_aton in -lresolv" >&5
3087 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
3088 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
3089   echo $ECHO_N "(cached) $ECHO_C" >&6
3090 else
3091   ac_check_lib_save_LIBS=$LIBS
3092 LIBS="-lresolv  $LIBS"
3093 cat >conftest.$ac_ext <<_ACEOF
3094 #line 3094 "configure"
3095 #include "confdefs.h"
3096
3097 /* Override any gcc2 internal prototype to avoid an error.  */
3098 #ifdef __cplusplus
3099 extern "C"
3100 #endif
3101 /* We use char because int might match the return type of a gcc2
3102    builtin and then its argument prototype would still apply.  */
3103 char inet_aton ();
3104 int
3105 main ()
3106 {
3107 inet_aton ();
3108   ;
3109   return 0;
3110 }
3111 _ACEOF
3112 rm -f conftest.$ac_objext conftest$ac_exeext
3113 if { (eval echo "$as_me:3113: \"$ac_link\"") >&5
3114   (eval $ac_link) 2>&5
3115   ac_status=$?
3116   echo "$as_me:3116: \$? = $ac_status" >&5
3117   (exit $ac_status); } &&
3118          { ac_try='test -s conftest$ac_exeext'
3119   { (eval echo "$as_me:3119: \"$ac_try\"") >&5
3120   (eval $ac_try) 2>&5
3121   ac_status=$?
3122   echo "$as_me:3122: \$? = $ac_status" >&5
3123   (exit $ac_status); }; }; then
3124   ac_cv_lib_resolv_inet_aton=yes
3125 else
3126   echo "$as_me: failed program was:" >&5
3127 cat conftest.$ac_ext >&5
3128 ac_cv_lib_resolv_inet_aton=no
3129 fi
3130 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3131 LIBS=$ac_check_lib_save_LIBS
3132 fi
3133 echo "$as_me:3133: result: $ac_cv_lib_resolv_inet_aton" >&5
3134 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
3135 if test $ac_cv_lib_resolv_inet_aton = yes; then
3136   LIB="${LIB} -lresolv"
3137 fi
3138
3139 fi
3140
3141 for ac_func in vasprintf
3142 do
3143 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
3144 echo "$as_me:3144: checking for $ac_func" >&5
3145 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3146 if eval "test \"\${$ac_ac_var+set}\" = set"; then
3147   echo $ECHO_N "(cached) $ECHO_C" >&6
3148 else
3149   cat >conftest.$ac_ext <<_ACEOF
3150 #line 3150 "configure"
3151 #include "confdefs.h"
3152 /* System header to define __stub macros and hopefully few prototypes,
3153     which can conflict with char $ac_func (); below.  */
3154 #include <assert.h>
3155 /* Override any gcc2 internal prototype to avoid an error.  */
3156 #ifdef __cplusplus
3157 extern "C"
3158 #endif
3159 /* We use char because int might match the return type of a gcc2
3160    builtin and then its argument prototype would still apply.  */
3161 char $ac_func ();
3162 char (*f) ();
3163
3164 int
3165 main ()
3166 {
3167 /* The GNU C library defines this for functions which it implements
3168     to always fail with ENOSYS.  Some functions are actually named
3169     something starting with __ and the normal name is an alias.  */
3170 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3171 choke me
3172 #else
3173 f = $ac_func;
3174 #endif
3175
3176   ;
3177   return 0;
3178 }
3179 _ACEOF
3180 rm -f conftest.$ac_objext conftest$ac_exeext
3181 if { (eval echo "$as_me:3181: \"$ac_link\"") >&5
3182   (eval $ac_link) 2>&5
3183   ac_status=$?
3184   echo "$as_me:3184: \$? = $ac_status" >&5
3185   (exit $ac_status); } &&
3186          { ac_try='test -s conftest$ac_exeext'
3187   { (eval echo "$as_me:3187: \"$ac_try\"") >&5
3188   (eval $ac_try) 2>&5
3189   ac_status=$?
3190   echo "$as_me:3190: \$? = $ac_status" >&5
3191   (exit $ac_status); }; }; then
3192   eval "$ac_ac_var=yes"
3193 else
3194   echo "$as_me: failed program was:" >&5
3195 cat conftest.$ac_ext >&5
3196 eval "$ac_ac_var=no"
3197 fi
3198 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3199 fi
3200 echo "$as_me:3200: result: `eval echo '${'$ac_ac_var'}'`" >&5
3201 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
3202 if test `eval echo '${'$ac_ac_var'}'` = yes; then
3203   cat >>confdefs.h <<EOF
3204 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
3205 EOF
3206
3207 fi
3208 done
3209
3210 for ac_func in swab
3211 do
3212 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
3213 echo "$as_me:3213: checking for $ac_func" >&5
3214 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3215 if eval "test \"\${$ac_ac_var+set}\" = set"; then
3216   echo $ECHO_N "(cached) $ECHO_C" >&6
3217 else
3218   cat >conftest.$ac_ext <<_ACEOF
3219 #line 3219 "configure"
3220 #include "confdefs.h"
3221 /* System header to define __stub macros and hopefully few prototypes,
3222     which can conflict with char $ac_func (); below.  */
3223 #include <assert.h>
3224 /* Override any gcc2 internal prototype to avoid an error.  */
3225 #ifdef __cplusplus
3226 extern "C"
3227 #endif
3228 /* We use char because int might match the return type of a gcc2
3229    builtin and then its argument prototype would still apply.  */
3230 char $ac_func ();
3231 char (*f) ();
3232
3233 int
3234 main ()
3235 {
3236 /* The GNU C library defines this for functions which it implements
3237     to always fail with ENOSYS.  Some functions are actually named
3238     something starting with __ and the normal name is an alias.  */
3239 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3240 choke me
3241 #else
3242 f = $ac_func;
3243 #endif
3244
3245   ;
3246   return 0;
3247 }
3248 _ACEOF
3249 rm -f conftest.$ac_objext conftest$ac_exeext
3250 if { (eval echo "$as_me:3250: \"$ac_link\"") >&5
3251   (eval $ac_link) 2>&5
3252   ac_status=$?
3253   echo "$as_me:3253: \$? = $ac_status" >&5
3254   (exit $ac_status); } &&
3255          { ac_try='test -s conftest$ac_exeext'
3256   { (eval echo "$as_me:3256: \"$ac_try\"") >&5
3257   (eval $ac_try) 2>&5
3258   ac_status=$?
3259   echo "$as_me:3259: \$? = $ac_status" >&5
3260   (exit $ac_status); }; }; then
3261   eval "$ac_ac_var=yes"
3262 else
3263   echo "$as_me: failed program was:" >&5
3264 cat conftest.$ac_ext >&5
3265 eval "$ac_ac_var=no"
3266 fi
3267 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3268 fi
3269 echo "$as_me:3269: result: `eval echo '${'$ac_ac_var'}'`" >&5
3270 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
3271 if test `eval echo '${'$ac_ac_var'}'` = yes; then
3272   cat >>confdefs.h <<EOF
3273 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
3274 EOF
3275
3276 fi
3277 done
3278
3279 echo "$as_me:3279: checking for getopt_long" >&5
3280 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
3281 if test "${ac_cv_func_getopt_long+set}" = set; then
3282   echo $ECHO_N "(cached) $ECHO_C" >&6
3283 else
3284   cat >conftest.$ac_ext <<_ACEOF
3285 #line 3285 "configure"
3286 #include "confdefs.h"
3287 /* System header to define __stub macros and hopefully few prototypes,
3288     which can conflict with char getopt_long (); below.  */
3289 #include <assert.h>
3290 /* Override any gcc2 internal prototype to avoid an error.  */
3291 #ifdef __cplusplus
3292 extern "C"
3293 #endif
3294 /* We use char because int might match the return type of a gcc2
3295    builtin and then its argument prototype would still apply.  */
3296 char getopt_long ();
3297 char (*f) ();
3298
3299 int
3300 main ()
3301 {
3302 /* The GNU C library defines this for functions which it implements
3303     to always fail with ENOSYS.  Some functions are actually named
3304     something starting with __ and the normal name is an alias.  */
3305 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
3306 choke me
3307 #else
3308 f = getopt_long;
3309 #endif
3310
3311   ;
3312   return 0;
3313 }
3314 _ACEOF
3315 rm -f conftest.$ac_objext conftest$ac_exeext
3316 if { (eval echo "$as_me:3316: \"$ac_link\"") >&5
3317   (eval $ac_link) 2>&5
3318   ac_status=$?
3319   echo "$as_me:3319: \$? = $ac_status" >&5
3320   (exit $ac_status); } &&
3321          { ac_try='test -s conftest$ac_exeext'
3322   { (eval echo "$as_me:3322: \"$ac_try\"") >&5
3323   (eval $ac_try) 2>&5
3324   ac_status=$?
3325   echo "$as_me:3325: \$? = $ac_status" >&5
3326   (exit $ac_status); }; }; then
3327   ac_cv_func_getopt_long=yes
3328 else
3329   echo "$as_me: failed program was:" >&5
3330 cat conftest.$ac_ext >&5
3331 ac_cv_func_getopt_long=no
3332 fi
3333 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3334 fi
3335 echo "$as_me:3335: result: $ac_cv_func_getopt_long" >&5
3336 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
3337 if test $ac_cv_func_getopt_long = yes; then
3338
3339 cat >>confdefs.h <<\EOF
3340 #define HAVE_GETOPT_LONG 1
3341 EOF
3342
3343 else
3344    # FreeBSD has a gnugetopt library for this:
3345   echo "$as_me:3345: checking for getopt_long in -lgnugetopt" >&5
3346 echo $ECHO_N "checking for getopt_long in -lgnugetopt... $ECHO_C" >&6
3347 if test "${ac_cv_lib_gnugetopt_getopt_long+set}" = set; then
3348   echo $ECHO_N "(cached) $ECHO_C" >&6
3349 else
3350   ac_check_lib_save_LIBS=$LIBS
3351 LIBS="-lgnugetopt  $LIBS"
3352 cat >conftest.$ac_ext <<_ACEOF
3353 #line 3353 "configure"
3354 #include "confdefs.h"
3355
3356 /* Override any gcc2 internal prototype to avoid an error.  */
3357 #ifdef __cplusplus
3358 extern "C"
3359 #endif
3360 /* We use char because int might match the return type of a gcc2
3361    builtin and then its argument prototype would still apply.  */
3362 char getopt_long ();
3363 int
3364 main ()
3365 {
3366 getopt_long ();
3367   ;
3368   return 0;
3369 }
3370 _ACEOF
3371 rm -f conftest.$ac_objext conftest$ac_exeext
3372 if { (eval echo "$as_me:3372: \"$ac_link\"") >&5
3373   (eval $ac_link) 2>&5
3374   ac_status=$?
3375   echo "$as_me:3375: \$? = $ac_status" >&5
3376   (exit $ac_status); } &&
3377          { ac_try='test -s conftest$ac_exeext'
3378   { (eval echo "$as_me:3378: \"$ac_try\"") >&5
3379   (eval $ac_try) 2>&5
3380   ac_status=$?
3381   echo "$as_me:3381: \$? = $ac_status" >&5
3382   (exit $ac_status); }; }; then
3383   ac_cv_lib_gnugetopt_getopt_long=yes
3384 else
3385   echo "$as_me: failed program was:" >&5
3386 cat conftest.$ac_ext >&5
3387 ac_cv_lib_gnugetopt_getopt_long=no
3388 fi
3389 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3390 LIBS=$ac_check_lib_save_LIBS
3391 fi
3392 echo "$as_me:3392: result: $ac_cv_lib_gnugetopt_getopt_long" >&5
3393 echo "${ECHO_T}$ac_cv_lib_gnugetopt_getopt_long" >&6
3394 if test $ac_cv_lib_gnugetopt_getopt_long = yes; then
3395
3396 cat >>confdefs.h <<\EOF
3397 #define HAVE_GETOPT_LONG 1
3398 EOF
3399  LIB="${LIB} -lgnugetopt"
3400 else
3401   GETOPT=1
3402 fi
3403
3404 fi
3405
3406 for ac_header in stdlib.h unistd.h
3407 do
3408 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
3409 echo "$as_me:3409: checking for $ac_header" >&5
3410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3411 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
3412   echo $ECHO_N "(cached) $ECHO_C" >&6
3413 else
3414   cat >conftest.$ac_ext <<_ACEOF
3415 #line 3415 "configure"
3416 #include "confdefs.h"
3417 #include <$ac_header>
3418 _ACEOF
3419 if { (eval echo "$as_me:3419: \"$ac_cpp conftest.$ac_ext\"") >&5
3420   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3421   ac_status=$?
3422   egrep -v '^ *\+' conftest.er1 >conftest.err
3423   rm -f conftest.er1
3424   cat conftest.err >&5
3425   echo "$as_me:3425: \$? = $ac_status" >&5
3426   (exit $ac_status); } >/dev/null; then
3427   if test -s conftest.err; then
3428     ac_cpp_err=$ac_c_preproc_warn_flag
3429   else
3430     ac_cpp_err=
3431   fi
3432 else
3433   ac_cpp_err=yes
3434 fi
3435 if test -z "$ac_cpp_err"; then
3436   eval "$ac_ac_Header=yes"
3437 else
3438   echo "$as_me: failed program was:" >&5
3439   cat conftest.$ac_ext >&5
3440   eval "$ac_ac_Header=no"
3441 fi
3442 rm -f conftest.err conftest.$ac_ext
3443 fi
3444 echo "$as_me:3444: result: `eval echo '${'$ac_ac_Header'}'`" >&5
3445 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
3446 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
3447   cat >>confdefs.h <<EOF
3448 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
3449 EOF
3450
3451 fi
3452 done
3453
3454 for ac_func in getpagesize
3455 do
3456 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
3457 echo "$as_me:3457: checking for $ac_func" >&5
3458 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3459 if eval "test \"\${$ac_ac_var+set}\" = set"; then
3460   echo $ECHO_N "(cached) $ECHO_C" >&6
3461 else
3462   cat >conftest.$ac_ext <<_ACEOF
3463 #line 3463 "configure"
3464 #include "confdefs.h"
3465 /* System header to define __stub macros and hopefully few prototypes,
3466     which can conflict with char $ac_func (); below.  */
3467 #include <assert.h>
3468 /* Override any gcc2 internal prototype to avoid an error.  */
3469 #ifdef __cplusplus
3470 extern "C"
3471 #endif
3472 /* We use char because int might match the return type of a gcc2
3473    builtin and then its argument prototype would still apply.  */
3474 char $ac_func ();
3475 char (*f) ();
3476
3477 int
3478 main ()
3479 {
3480 /* The GNU C library defines this for functions which it implements
3481     to always fail with ENOSYS.  Some functions are actually named
3482     something starting with __ and the normal name is an alias.  */
3483 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3484 choke me
3485 #else
3486 f = $ac_func;
3487 #endif
3488
3489   ;
3490   return 0;
3491 }
3492 _ACEOF
3493 rm -f conftest.$ac_objext conftest$ac_exeext
3494 if { (eval echo "$as_me:3494: \"$ac_link\"") >&5
3495   (eval $ac_link) 2>&5
3496   ac_status=$?
3497   echo "$as_me:3497: \$? = $ac_status" >&5
3498   (exit $ac_status); } &&
3499          { ac_try='test -s 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   eval "$ac_ac_var=yes"
3506 else
3507   echo "$as_me: failed program was:" >&5
3508 cat conftest.$ac_ext >&5
3509 eval "$ac_ac_var=no"
3510 fi
3511 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3512 fi
3513 echo "$as_me:3513: result: `eval echo '${'$ac_ac_var'}'`" >&5
3514 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
3515 if test `eval echo '${'$ac_ac_var'}'` = yes; then
3516   cat >>confdefs.h <<EOF
3517 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
3518 EOF
3519
3520 fi
3521 done
3522
3523 echo "$as_me:3523: checking for working mmap" >&5
3524 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
3525 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
3526   echo $ECHO_N "(cached) $ECHO_C" >&6
3527 else
3528   if test "$cross_compiling" = yes; then
3529   ac_cv_func_mmap_fixed_mapped=no
3530 else
3531   cat >conftest.$ac_ext <<_ACEOF
3532 #line 3532 "configure"
3533 #include "confdefs.h"
3534 /* Thanks to Mike Haertel and Jim Avera for this test.
3535    Here is a matrix of mmap possibilities:
3536         mmap private not fixed
3537         mmap private fixed at somewhere currently unmapped
3538         mmap private fixed at somewhere already mapped
3539         mmap shared not fixed
3540         mmap shared fixed at somewhere currently unmapped
3541         mmap shared fixed at somewhere already mapped
3542    For private mappings, we should verify that changes cannot be read()
3543    back from the file, nor mmap's back from the file at a different
3544    address.  (There have been systems where private was not correctly
3545    implemented like the infamous i386 svr4.0, and systems where the
3546    VM page cache was not coherent with the file system buffer cache
3547    like early versions of FreeBSD and possibly contemporary NetBSD.)
3548    For shared mappings, we should conversely verify that changes get
3549    propogated back to all the places they're supposed to be.
3550
3551    Grep wants private fixed already mapped.
3552    The main things grep needs to know about mmap are:
3553    * does it exist and is it safe to write into the mmap'd area
3554    * how to use it (BSD variants)  */
3555 #include <sys/types.h>
3556 #include <fcntl.h>
3557 #include <sys/mman.h>
3558
3559 #if STDC_HEADERS || HAVE_STDLIB_H
3560 # include <stdlib.h>
3561 #else
3562 char *malloc ();
3563 #endif
3564 #if HAVE_UNISTD_H
3565 # include <unistd.h>
3566 #endif
3567 #include <sys/stat.h>
3568
3569 /* This mess was copied from the GNU getpagesize.h.  */
3570 #if !HAVE_GETPAGESIZE
3571 /* Assume that all systems that can run configure have sys/param.h.  */
3572 # if !HAVE_SYS_PARAM_H
3573 #  define HAVE_SYS_PARAM_H 1
3574 # endif
3575
3576 # ifdef _SC_PAGESIZE
3577 #  define getpagesize() sysconf(_SC_PAGESIZE)
3578 # else /* no _SC_PAGESIZE */
3579 #  if HAVE_SYS_PARAM_H
3580 #   include <sys/param.h>
3581 #   ifdef EXEC_PAGESIZE
3582 #    define getpagesize() EXEC_PAGESIZE
3583 #   else /* no EXEC_PAGESIZE */
3584 #    ifdef NBPG
3585 #     define getpagesize() NBPG * CLSIZE
3586 #     ifndef CLSIZE
3587 #      define CLSIZE 1
3588 #     endif /* no CLSIZE */
3589 #    else /* no NBPG */
3590 #     ifdef NBPC
3591 #      define getpagesize() NBPC
3592 #     else /* no NBPC */
3593 #      ifdef PAGESIZE
3594 #       define getpagesize() PAGESIZE
3595 #      endif /* PAGESIZE */
3596 #     endif /* no NBPC */
3597 #    endif /* no NBPG */
3598 #   endif /* no EXEC_PAGESIZE */
3599 #  else /* no HAVE_SYS_PARAM_H */
3600 #   define getpagesize() 8192   /* punt totally */
3601 #  endif /* no HAVE_SYS_PARAM_H */
3602 # endif /* no _SC_PAGESIZE */
3603
3604 #endif /* no HAVE_GETPAGESIZE */
3605
3606 int
3607 main ()
3608 {
3609   char *data, *data2, *data3;
3610   int i, pagesize;
3611   int fd;
3612
3613   pagesize = getpagesize ();
3614
3615   /* First, make a file with some known garbage in it. */
3616   data = (char *) malloc (pagesize);
3617   if (!data)
3618     exit (1);
3619   for (i = 0; i < pagesize; ++i)
3620     *(data + i) = rand ();
3621   umask (0);
3622   fd = creat ("conftest.mmap", 0600);
3623   if (fd < 0)
3624     exit (1);
3625   if (write (fd, data, pagesize) != pagesize)
3626     exit (1);
3627   close (fd);
3628
3629   /* Next, try to mmap the file at a fixed address which already has
3630      something else allocated at it.  If we can, also make sure that
3631      we see the same garbage.  */
3632   fd = open ("conftest.mmap", O_RDWR);
3633   if (fd < 0)
3634     exit (1);
3635   data2 = (char *) malloc (2 * pagesize);
3636   if (!data2)
3637     exit (1);
3638   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3639   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
3640                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
3641     exit (1);
3642   for (i = 0; i < pagesize; ++i)
3643     if (*(data + i) != *(data2 + i))
3644       exit (1);
3645
3646   /* Finally, make sure that changes to the mapped area do not
3647      percolate back to the file as seen by read().  (This is a bug on
3648      some variants of i386 svr4.0.)  */
3649   for (i = 0; i < pagesize; ++i)
3650     *(data2 + i) = *(data2 + i) + 1;
3651   data3 = (char *) malloc (pagesize);
3652   if (!data3)
3653     exit (1);
3654   if (read (fd, data3, pagesize) != pagesize)
3655     exit (1);
3656   for (i = 0; i < pagesize; ++i)
3657     if (*(data + i) != *(data3 + i))
3658       exit (1);
3659   close (fd);
3660   exit (0);
3661 }
3662 _ACEOF
3663 rm -f conftest$ac_exeext
3664 if { (eval echo "$as_me:3664: \"$ac_link\"") >&5
3665   (eval $ac_link) 2>&5
3666   ac_status=$?
3667   echo "$as_me:3667: \$? = $ac_status" >&5
3668   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3669   { (eval echo "$as_me:3669: \"$ac_try\"") >&5
3670   (eval $ac_try) 2>&5
3671   ac_status=$?
3672   echo "$as_me:3672: \$? = $ac_status" >&5
3673   (exit $ac_status); }; }; then
3674   ac_cv_func_mmap_fixed_mapped=yes
3675 else
3676   echo "$as_me: program exited with status $ac_status" >&5
3677 echo "$as_me: failed program was:" >&5
3678 cat conftest.$ac_ext >&5
3679 ac_cv_func_mmap_fixed_mapped=no
3680 fi
3681 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
3682 fi
3683 fi
3684 echo "$as_me:3684: result: $ac_cv_func_mmap_fixed_mapped" >&5
3685 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
3686 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3687
3688 cat >>confdefs.h <<\EOF
3689 #define HAVE_MMAP 1
3690 EOF
3691
3692 fi
3693 rm -f conftest.mmap
3694
3695 echo "$as_me:3695: checking return type of signal handlers" >&5
3696 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
3697 if test "${ac_cv_type_signal+set}" = set; then
3698   echo $ECHO_N "(cached) $ECHO_C" >&6
3699 else
3700   cat >conftest.$ac_ext <<_ACEOF
3701 #line 3701 "configure"
3702 #include "confdefs.h"
3703 #include <sys/types.h>
3704 #include <signal.h>
3705 #ifdef signal
3706 # undef signal
3707 #endif
3708 #ifdef __cplusplus
3709 extern "C" void (*signal (int, void (*)(int)))(int);
3710 #else
3711 void (*signal ()) ();
3712 #endif
3713
3714 int
3715 main ()
3716 {
3717 int i;
3718   ;
3719   return 0;
3720 }
3721 _ACEOF
3722 rm -f conftest.$ac_objext
3723 if { (eval echo "$as_me:3723: \"$ac_compile\"") >&5
3724   (eval $ac_compile) 2>&5
3725   ac_status=$?
3726   echo "$as_me:3726: \$? = $ac_status" >&5
3727   (exit $ac_status); } &&
3728          { ac_try='test -s conftest.$ac_objext'
3729   { (eval echo "$as_me:3729: \"$ac_try\"") >&5
3730   (eval $ac_try) 2>&5
3731   ac_status=$?
3732   echo "$as_me:3732: \$? = $ac_status" >&5
3733   (exit $ac_status); }; }; then
3734   ac_cv_type_signal=void
3735 else
3736   echo "$as_me: failed program was:" >&5
3737 cat conftest.$ac_ext >&5
3738 ac_cv_type_signal=int
3739 fi
3740 rm -f conftest.$ac_objext conftest.$ac_ext
3741 fi
3742 echo "$as_me:3742: result: $ac_cv_type_signal" >&5
3743 echo "${ECHO_T}$ac_cv_type_signal" >&6
3744
3745 cat >>confdefs.h <<EOF
3746 #define RETSIGTYPE $ac_cv_type_signal
3747 EOF
3748
3749 echo "$as_me:3749: checking for dlopen in -ldl" >&5
3750 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
3751 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
3752   echo $ECHO_N "(cached) $ECHO_C" >&6
3753 else
3754   ac_check_lib_save_LIBS=$LIBS
3755 LIBS="-ldl  $LIBS"
3756 cat >conftest.$ac_ext <<_ACEOF
3757 #line 3757 "configure"
3758 #include "confdefs.h"
3759
3760 /* Override any gcc2 internal prototype to avoid an error.  */
3761 #ifdef __cplusplus
3762 extern "C"
3763 #endif
3764 /* We use char because int might match the return type of a gcc2
3765    builtin and then its argument prototype would still apply.  */
3766 char dlopen ();
3767 int
3768 main ()
3769 {
3770 dlopen ();
3771   ;
3772   return 0;
3773 }
3774 _ACEOF
3775 rm -f conftest.$ac_objext conftest$ac_exeext
3776 if { (eval echo "$as_me:3776: \"$ac_link\"") >&5
3777   (eval $ac_link) 2>&5
3778   ac_status=$?
3779   echo "$as_me:3779: \$? = $ac_status" >&5
3780   (exit $ac_status); } &&
3781          { ac_try='test -s conftest$ac_exeext'
3782   { (eval echo "$as_me:3782: \"$ac_try\"") >&5
3783   (eval $ac_try) 2>&5
3784   ac_status=$?
3785   echo "$as_me:3785: \$? = $ac_status" >&5
3786   (exit $ac_status); }; }; then
3787   ac_cv_lib_dl_dlopen=yes
3788 else
3789   echo "$as_me: failed program was:" >&5
3790 cat conftest.$ac_ext >&5
3791 ac_cv_lib_dl_dlopen=no
3792 fi
3793 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3794 LIBS=$ac_check_lib_save_LIBS
3795 fi
3796 echo "$as_me:3796: result: $ac_cv_lib_dl_dlopen" >&5
3797 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
3798 if test $ac_cv_lib_dl_dlopen = yes; then
3799   LIB="${LIB} -ldl"
3800 fi
3801
3802 echo "$as_me:3802: checking for pow in -lm" >&5
3803 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
3804 if test "${ac_cv_lib_m_pow+set}" = set; then
3805   echo $ECHO_N "(cached) $ECHO_C" >&6
3806 else
3807   ac_check_lib_save_LIBS=$LIBS
3808 LIBS="-lm  $LIBS"
3809 cat >conftest.$ac_ext <<_ACEOF
3810 #line 3810 "configure"
3811 #include "confdefs.h"
3812
3813 /* Override any gcc2 internal prototype to avoid an error.  */
3814 #ifdef __cplusplus
3815 extern "C"
3816 #endif
3817 /* We use char because int might match the return type of a gcc2
3818    builtin and then its argument prototype would still apply.  */
3819 char pow ();
3820 int
3821 main ()
3822 {
3823 pow ();
3824   ;
3825   return 0;
3826 }
3827 _ACEOF
3828 rm -f conftest.$ac_objext conftest$ac_exeext
3829 if { (eval echo "$as_me:3829: \"$ac_link\"") >&5
3830   (eval $ac_link) 2>&5
3831   ac_status=$?
3832   echo "$as_me:3832: \$? = $ac_status" >&5
3833   (exit $ac_status); } &&
3834          { ac_try='test -s conftest$ac_exeext'
3835   { (eval echo "$as_me:3835: \"$ac_try\"") >&5
3836   (eval $ac_try) 2>&5
3837   ac_status=$?
3838   echo "$as_me:3838: \$? = $ac_status" >&5
3839   (exit $ac_status); }; }; then
3840   ac_cv_lib_m_pow=yes
3841 else
3842   echo "$as_me: failed program was:" >&5
3843 cat conftest.$ac_ext >&5
3844 ac_cv_lib_m_pow=no
3845 fi
3846 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3847 LIBS=$ac_check_lib_save_LIBS
3848 fi
3849 echo "$as_me:3849: result: $ac_cv_lib_m_pow" >&5
3850 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
3851 if test $ac_cv_lib_m_pow = yes; then
3852   LIB_YUV="${LIB_YUV} -lm"
3853 fi
3854
3855 CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
3856 CFLAGS="${CFLAGS} -I/usr/local/include"
3857
3858 PTHREAD_LIBS=error
3859 echo "$as_me:3859: checking for pthread_attr_init in -lpthread" >&5
3860 echo $ECHO_N "checking for pthread_attr_init in -lpthread... $ECHO_C" >&6
3861 if test "${ac_cv_lib_pthread_pthread_attr_init+set}" = set; then
3862   echo $ECHO_N "(cached) $ECHO_C" >&6
3863 else
3864   ac_check_lib_save_LIBS=$LIBS
3865 LIBS="-lpthread  $LIBS"
3866 cat >conftest.$ac_ext <<_ACEOF
3867 #line 3867 "configure"
3868 #include "confdefs.h"
3869
3870 /* Override any gcc2 internal prototype to avoid an error.  */
3871 #ifdef __cplusplus
3872 extern "C"
3873 #endif
3874 /* We use char because int might match the return type of a gcc2
3875    builtin and then its argument prototype would still apply.  */
3876 char pthread_attr_init ();
3877 int
3878 main ()
3879 {
3880 pthread_attr_init ();
3881   ;
3882   return 0;
3883 }
3884 _ACEOF
3885 rm -f conftest.$ac_objext conftest$ac_exeext
3886 if { (eval echo "$as_me:3886: \"$ac_link\"") >&5
3887   (eval $ac_link) 2>&5
3888   ac_status=$?
3889   echo "$as_me:3889: \$? = $ac_status" >&5
3890   (exit $ac_status); } &&
3891          { ac_try='test -s conftest$ac_exeext'
3892   { (eval echo "$as_me:3892: \"$ac_try\"") >&5
3893   (eval $ac_try) 2>&5
3894   ac_status=$?
3895   echo "$as_me:3895: \$? = $ac_status" >&5
3896   (exit $ac_status); }; }; then
3897   ac_cv_lib_pthread_pthread_attr_init=yes
3898 else
3899   echo "$as_me: failed program was:" >&5
3900 cat conftest.$ac_ext >&5
3901 ac_cv_lib_pthread_pthread_attr_init=no
3902 fi
3903 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3904 LIBS=$ac_check_lib_save_LIBS
3905 fi
3906 echo "$as_me:3906: result: $ac_cv_lib_pthread_pthread_attr_init" >&5
3907 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_attr_init" >&6
3908 if test $ac_cv_lib_pthread_pthread_attr_init = yes; then
3909   PTHREAD_LIBS="-lpthread"
3910 fi
3911
3912 if test "x$PTHREAD_LIBS" = xerror; then
3913   echo "$as_me:3913: checking for pthread_attr_init in -lpthreads" >&5
3914 echo $ECHO_N "checking for pthread_attr_init in -lpthreads... $ECHO_C" >&6
3915 if test "${ac_cv_lib_pthreads_pthread_attr_init+set}" = set; then
3916   echo $ECHO_N "(cached) $ECHO_C" >&6
3917 else
3918   ac_check_lib_save_LIBS=$LIBS
3919 LIBS="-lpthreads  $LIBS"
3920 cat >conftest.$ac_ext <<_ACEOF
3921 #line 3921 "configure"
3922 #include "confdefs.h"
3923
3924 /* Override any gcc2 internal prototype to avoid an error.  */
3925 #ifdef __cplusplus
3926 extern "C"
3927 #endif
3928 /* We use char because int might match the return type of a gcc2
3929    builtin and then its argument prototype would still apply.  */
3930 char pthread_attr_init ();
3931 int
3932 main ()
3933 {
3934 pthread_attr_init ();
3935   ;
3936   return 0;
3937 }
3938 _ACEOF
3939 rm -f conftest.$ac_objext conftest$ac_exeext
3940 if { (eval echo "$as_me:3940: \"$ac_link\"") >&5
3941   (eval $ac_link) 2>&5
3942   ac_status=$?
3943   echo "$as_me:3943: \$? = $ac_status" >&5
3944   (exit $ac_status); } &&
3945          { ac_try='test -s conftest$ac_exeext'
3946   { (eval echo "$as_me:3946: \"$ac_try\"") >&5
3947   (eval $ac_try) 2>&5
3948   ac_status=$?
3949   echo "$as_me:3949: \$? = $ac_status" >&5
3950   (exit $ac_status); }; }; then
3951   ac_cv_lib_pthreads_pthread_attr_init=yes
3952 else
3953   echo "$as_me: failed program was:" >&5
3954 cat conftest.$ac_ext >&5
3955 ac_cv_lib_pthreads_pthread_attr_init=no
3956 fi
3957 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3958 LIBS=$ac_check_lib_save_LIBS
3959 fi
3960 echo "$as_me:3960: result: $ac_cv_lib_pthreads_pthread_attr_init" >&5
3961 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_attr_init" >&6
3962 if test $ac_cv_lib_pthreads_pthread_attr_init = yes; then
3963   PTHREAD_LIBS="-lpthreads"
3964 fi
3965
3966 fi
3967 if test "x$PTHREAD_LIBS" = xerror; then
3968   echo "$as_me:3968: checking for pthread_attr_init in -lc_r" >&5
3969 echo $ECHO_N "checking for pthread_attr_init in -lc_r... $ECHO_C" >&6
3970 if test "${ac_cv_lib_c_r_pthread_attr_init+set}" = set; then
3971   echo $ECHO_N "(cached) $ECHO_C" >&6
3972 else
3973   ac_check_lib_save_LIBS=$LIBS
3974 LIBS="-lc_r  $LIBS"
3975 cat >conftest.$ac_ext <<_ACEOF
3976 #line 3976 "configure"
3977 #include "confdefs.h"
3978
3979 /* Override any gcc2 internal prototype to avoid an error.  */
3980 #ifdef __cplusplus
3981 extern "C"
3982 #endif
3983 /* We use char because int might match the return type of a gcc2
3984    builtin and then its argument prototype would still apply.  */
3985 char pthread_attr_init ();
3986 int
3987 main ()
3988 {
3989 pthread_attr_init ();
3990   ;
3991   return 0;
3992 }
3993 _ACEOF
3994 rm -f conftest.$ac_objext conftest$ac_exeext
3995 if { (eval echo "$as_me:3995: \"$ac_link\"") >&5
3996   (eval $ac_link) 2>&5
3997   ac_status=$?
3998   echo "$as_me:3998: \$? = $ac_status" >&5
3999   (exit $ac_status); } &&
4000          { ac_try='test -s conftest$ac_exeext'
4001   { (eval echo "$as_me:4001: \"$ac_try\"") >&5
4002   (eval $ac_try) 2>&5
4003   ac_status=$?
4004   echo "$as_me:4004: \$? = $ac_status" >&5
4005   (exit $ac_status); }; }; then
4006   ac_cv_lib_c_r_pthread_attr_init=yes
4007 else
4008   echo "$as_me: failed program was:" >&5
4009 cat conftest.$ac_ext >&5
4010 ac_cv_lib_c_r_pthread_attr_init=no
4011 fi
4012 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4013 LIBS=$ac_check_lib_save_LIBS
4014 fi
4015 echo "$as_me:4015: result: $ac_cv_lib_c_r_pthread_attr_init" >&5
4016 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_attr_init" >&6
4017 if test $ac_cv_lib_c_r_pthread_attr_init = yes; then
4018   PTHREAD_LIBS="-lc_r"
4019 fi
4020
4021 fi
4022 if test "x$PTHREAD_LIBS" = xerror; then
4023   PTHREAD_LIBS=""
4024   echo "$as_me:4024: checking for pthread_attr_init" >&5
4025 echo $ECHO_N "checking for pthread_attr_init... $ECHO_C" >&6
4026 if test "${ac_cv_func_pthread_attr_init+set}" = set; then
4027   echo $ECHO_N "(cached) $ECHO_C" >&6
4028 else
4029   cat >conftest.$ac_ext <<_ACEOF
4030 #line 4030 "configure"
4031 #include "confdefs.h"
4032 /* System header to define __stub macros and hopefully few prototypes,
4033     which can conflict with char pthread_attr_init (); below.  */
4034 #include <assert.h>
4035 /* Override any gcc2 internal prototype to avoid an error.  */
4036 #ifdef __cplusplus
4037 extern "C"
4038 #endif
4039 /* We use char because int might match the return type of a gcc2
4040    builtin and then its argument prototype would still apply.  */
4041 char pthread_attr_init ();
4042 char (*f) ();
4043
4044 int
4045 main ()
4046 {
4047 /* The GNU C library defines this for functions which it implements
4048     to always fail with ENOSYS.  Some functions are actually named
4049     something starting with __ and the normal name is an alias.  */
4050 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
4051 choke me
4052 #else
4053 f = pthread_attr_init;
4054 #endif
4055
4056   ;
4057   return 0;
4058 }
4059 _ACEOF
4060 rm -f conftest.$ac_objext conftest$ac_exeext
4061 if { (eval echo "$as_me:4061: \"$ac_link\"") >&5
4062   (eval $ac_link) 2>&5
4063   ac_status=$?
4064   echo "$as_me:4064: \$? = $ac_status" >&5
4065   (exit $ac_status); } &&
4066          { ac_try='test -s conftest$ac_exeext'
4067   { (eval echo "$as_me:4067: \"$ac_try\"") >&5
4068   (eval $ac_try) 2>&5
4069   ac_status=$?
4070   echo "$as_me:4070: \$? = $ac_status" >&5
4071   (exit $ac_status); }; }; then
4072   ac_cv_func_pthread_attr_init=yes
4073 else
4074   echo "$as_me: failed program was:" >&5
4075 cat conftest.$ac_ext >&5
4076 ac_cv_func_pthread_attr_init=no
4077 fi
4078 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4079 fi
4080 echo "$as_me:4080: result: $ac_cv_func_pthread_attr_init" >&5
4081 echo "${ECHO_T}$ac_cv_func_pthread_attr_init" >&6
4082
4083 fi
4084 LIB="${LIB} ${PTHREAD_LIBS}"
4085
4086 cat >conftest.$ac_ext <<_ACEOF
4087 #line 4087 "configure"
4088 #include "confdefs.h"
4089 #include <pthread.h>
4090
4091 _ACEOF
4092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4093   egrep "pthread_cond_t" >/dev/null 2>&1; then
4094
4095 cat >>confdefs.h <<\EOF
4096 #define PTHREAD_COND_T_IN_PTHREAD_H 1
4097 EOF
4098
4099 fi
4100 rm -f conftest*
4101
4102 cat >conftest.$ac_ext <<_ACEOF
4103 #line 4103 "configure"
4104 #include "confdefs.h"
4105 #include <strings.h>
4106
4107 _ACEOF
4108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4109   egrep "strncasecmp" >/dev/null 2>&1; then
4110
4111 cat >>confdefs.h <<\EOF
4112 #define STRNCASECMP_IN_STRINGS_H 1
4113 EOF
4114
4115 fi
4116 rm -f conftest*
4117
4118 for ac_header in stddef.h getopt.h strings.h
4119 do
4120 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
4121 echo "$as_me:4121: checking for $ac_header" >&5
4122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4123 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
4124   echo $ECHO_N "(cached) $ECHO_C" >&6
4125 else
4126   cat >conftest.$ac_ext <<_ACEOF
4127 #line 4127 "configure"
4128 #include "confdefs.h"
4129 #include <$ac_header>
4130 _ACEOF
4131 if { (eval echo "$as_me:4131: \"$ac_cpp conftest.$ac_ext\"") >&5
4132   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4133   ac_status=$?
4134   egrep -v '^ *\+' conftest.er1 >conftest.err
4135   rm -f conftest.er1
4136   cat conftest.err >&5
4137   echo "$as_me:4137: \$? = $ac_status" >&5
4138   (exit $ac_status); } >/dev/null; then
4139   if test -s conftest.err; then
4140     ac_cpp_err=$ac_c_preproc_warn_flag
4141   else
4142     ac_cpp_err=
4143   fi
4144 else
4145   ac_cpp_err=yes
4146 fi
4147 if test -z "$ac_cpp_err"; then
4148   eval "$ac_ac_Header=yes"
4149 else
4150   echo "$as_me: failed program was:" >&5
4151   cat conftest.$ac_ext >&5
4152   eval "$ac_ac_Header=no"
4153 fi
4154 rm -f conftest.err conftest.$ac_ext
4155 fi
4156 echo "$as_me:4156: result: `eval echo '${'$ac_ac_Header'}'`" >&5
4157 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
4158 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
4159   cat >>confdefs.h <<EOF
4160 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
4161 EOF
4162
4163 fi
4164 done
4165
4166 for ac_header in sys/sockio.h fcntl.h sys/time.h unistd.h
4167 do
4168 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
4169 echo "$as_me:4169: checking for $ac_header" >&5
4170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4171 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
4172   echo $ECHO_N "(cached) $ECHO_C" >&6
4173 else
4174   cat >conftest.$ac_ext <<_ACEOF
4175 #line 4175 "configure"
4176 #include "confdefs.h"
4177 #include <$ac_header>
4178 _ACEOF
4179 if { (eval echo "$as_me:4179: \"$ac_cpp conftest.$ac_ext\"") >&5
4180   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4181   ac_status=$?
4182   egrep -v '^ *\+' conftest.er1 >conftest.err
4183   rm -f conftest.er1
4184   cat conftest.err >&5
4185   echo "$as_me:4185: \$? = $ac_status" >&5
4186   (exit $ac_status); } >/dev/null; then
4187   if test -s conftest.err; then
4188     ac_cpp_err=$ac_c_preproc_warn_flag
4189   else
4190     ac_cpp_err=
4191   fi
4192 else
4193   ac_cpp_err=yes
4194 fi
4195 if test -z "$ac_cpp_err"; then
4196   eval "$ac_ac_Header=yes"
4197 else
4198   echo "$as_me: failed program was:" >&5
4199   cat conftest.$ac_ext >&5
4200   eval "$ac_ac_Header=no"
4201 fi
4202 rm -f conftest.err conftest.$ac_ext
4203 fi
4204 echo "$as_me:4204: result: `eval echo '${'$ac_ac_Header'}'`" >&5
4205 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
4206 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
4207   cat >>confdefs.h <<EOF
4208 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
4209 EOF
4210
4211 fi
4212 done
4213
4214 for ac_header in sys/soundcard.h machine/soundcard.h
4215 do
4216 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
4217 echo "$as_me:4217: checking for $ac_header" >&5
4218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4219 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
4220   echo $ECHO_N "(cached) $ECHO_C" >&6
4221 else
4222   cat >conftest.$ac_ext <<_ACEOF
4223 #line 4223 "configure"
4224 #include "confdefs.h"
4225 #include <$ac_header>
4226 _ACEOF
4227 if { (eval echo "$as_me:4227: \"$ac_cpp conftest.$ac_ext\"") >&5
4228   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4229   ac_status=$?
4230   egrep -v '^ *\+' conftest.er1 >conftest.err
4231   rm -f conftest.er1
4232   cat conftest.err >&5
4233   echo "$as_me:4233: \$? = $ac_status" >&5
4234   (exit $ac_status); } >/dev/null; then
4235   if test -s conftest.err; then
4236     ac_cpp_err=$ac_c_preproc_warn_flag
4237   else
4238     ac_cpp_err=
4239   fi
4240 else
4241   ac_cpp_err=yes
4242 fi
4243 if test -z "$ac_cpp_err"; then
4244   eval "$ac_ac_Header=yes"
4245 else
4246   echo "$as_me: failed program was:" >&5
4247   cat conftest.$ac_ext >&5
4248   eval "$ac_ac_Header=no"
4249 fi
4250 rm -f conftest.err conftest.$ac_ext
4251 fi
4252 echo "$as_me:4252: result: `eval echo '${'$ac_ac_Header'}'`" >&5
4253 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
4254 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
4255   cat >>confdefs.h <<EOF
4256 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
4257 EOF
4258
4259 fi
4260 done
4261
4262 for ac_header in dlfcn.h image.h
4263 do
4264 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
4265 echo "$as_me:4265: checking for $ac_header" >&5
4266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4267 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
4268   echo $ECHO_N "(cached) $ECHO_C" >&6
4269 else
4270   cat >conftest.$ac_ext <<_ACEOF
4271 #line 4271 "configure"
4272 #include "confdefs.h"
4273 #include <$ac_header>
4274 _ACEOF
4275 if { (eval echo "$as_me:4275: \"$ac_cpp conftest.$ac_ext\"") >&5
4276   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4277   ac_status=$?
4278   egrep -v '^ *\+' conftest.er1 >conftest.err
4279   rm -f conftest.er1
4280   cat conftest.err >&5
4281   echo "$as_me:4281: \$? = $ac_status" >&5
4282   (exit $ac_status); } >/dev/null; then
4283   if test -s conftest.err; then
4284     ac_cpp_err=$ac_c_preproc_warn_flag
4285   else
4286     ac_cpp_err=
4287   fi
4288 else
4289   ac_cpp_err=yes
4290 fi
4291 if test -z "$ac_cpp_err"; then
4292   eval "$ac_ac_Header=yes"
4293 else
4294   echo "$as_me: failed program was:" >&5
4295   cat conftest.$ac_ext >&5
4296   eval "$ac_ac_Header=no"
4297 fi
4298 rm -f conftest.err conftest.$ac_ext
4299 fi
4300 echo "$as_me:4300: result: `eval echo '${'$ac_ac_Header'}'`" >&5
4301 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
4302 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
4303   cat >>confdefs.h <<EOF
4304 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
4305 EOF
4306
4307 fi
4308 done
4309
4310 for ac_header in arpa/inet.h net/if.h netinet/in.h sys/socket.h
4311 do
4312 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
4313 echo "$as_me:4313: checking for $ac_header" >&5
4314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4315 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
4316   echo $ECHO_N "(cached) $ECHO_C" >&6
4317 else
4318   cat >conftest.$ac_ext <<_ACEOF
4319 #line 4319 "configure"
4320 #include "confdefs.h"
4321 #include <$ac_header>
4322 _ACEOF
4323 if { (eval echo "$as_me:4323: \"$ac_cpp conftest.$ac_ext\"") >&5
4324   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4325   ac_status=$?
4326   egrep -v '^ *\+' conftest.er1 >conftest.err
4327   rm -f conftest.er1
4328   cat conftest.err >&5
4329   echo "$as_me:4329: \$? = $ac_status" >&5
4330   (exit $ac_status); } >/dev/null; then
4331   if test -s conftest.err; then
4332     ac_cpp_err=$ac_c_preproc_warn_flag
4333   else
4334     ac_cpp_err=
4335   fi
4336 else
4337   ac_cpp_err=yes
4338 fi
4339 if test -z "$ac_cpp_err"; then
4340   eval "$ac_ac_Header=yes"
4341 else
4342   echo "$as_me: failed program was:" >&5
4343   cat conftest.$ac_ext >&5
4344   eval "$ac_ac_Header=no"
4345 fi
4346 rm -f conftest.err conftest.$ac_ext
4347 fi
4348 echo "$as_me:4348: result: `eval echo '${'$ac_ac_Header'}'`" >&5
4349 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
4350 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
4351   cat >>confdefs.h <<EOF
4352 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
4353 EOF
4354
4355 fi
4356 done
4357
4358 for ac_header in machine/param.h
4359 do
4360 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
4361 echo "$as_me:4361: checking for $ac_header" >&5
4362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4363 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
4364   echo $ECHO_N "(cached) $ECHO_C" >&6
4365 else
4366   cat >conftest.$ac_ext <<_ACEOF
4367 #line 4367 "configure"
4368 #include "confdefs.h"
4369 #include <$ac_header>
4370 _ACEOF
4371 if { (eval echo "$as_me:4371: \"$ac_cpp conftest.$ac_ext\"") >&5
4372   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4373   ac_status=$?
4374   egrep -v '^ *\+' conftest.er1 >conftest.err
4375   rm -f conftest.er1
4376   cat conftest.err >&5
4377   echo "$as_me:4377: \$? = $ac_status" >&5
4378   (exit $ac_status); } >/dev/null; then
4379   if test -s conftest.err; then
4380     ac_cpp_err=$ac_c_preproc_warn_flag
4381   else
4382     ac_cpp_err=
4383   fi
4384 else
4385   ac_cpp_err=yes
4386 fi
4387 if test -z "$ac_cpp_err"; then
4388   eval "$ac_ac_Header=yes"
4389 else
4390   echo "$as_me: failed program was:" >&5
4391   cat conftest.$ac_ext >&5
4392   eval "$ac_ac_Header=no"
4393 fi
4394 rm -f conftest.err conftest.$ac_ext
4395 fi
4396 echo "$as_me:4396: result: `eval echo '${'$ac_ac_Header'}'`" >&5
4397 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
4398 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
4399   cat >>confdefs.h <<EOF
4400 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
4401 EOF
4402
4403 fi
4404 done
4405
4406 for ac_header in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
4407 do
4408 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
4409 echo "$as_me:4409: checking for $ac_header" >&5
4410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4411 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
4412   echo $ECHO_N "(cached) $ECHO_C" >&6
4413 else
4414   cat >conftest.$ac_ext <<_ACEOF
4415 #line 4415 "configure"
4416 #include "confdefs.h"
4417 #include <$ac_header>
4418 _ACEOF
4419 if { (eval echo "$as_me:4419: \"$ac_cpp conftest.$ac_ext\"") >&5
4420   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4421   ac_status=$?
4422   egrep -v '^ *\+' conftest.er1 >conftest.err
4423   rm -f conftest.er1
4424   cat conftest.err >&5
4425   echo "$as_me:4425: \$? = $ac_status" >&5
4426   (exit $ac_status); } >/dev/null; then
4427   if test -s conftest.err; then
4428     ac_cpp_err=$ac_c_preproc_warn_flag
4429   else
4430     ac_cpp_err=
4431   fi
4432 else
4433   ac_cpp_err=yes
4434 fi
4435 if test -z "$ac_cpp_err"; then
4436   eval "$ac_ac_Header=yes"
4437 else
4438   echo "$as_me: failed program was:" >&5
4439   cat conftest.$ac_ext >&5
4440   eval "$ac_ac_Header=no"
4441 fi
4442 rm -f conftest.err conftest.$ac_ext
4443 fi
4444 echo "$as_me:4444: result: `eval echo '${'$ac_ac_Header'}'`" >&5
4445 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
4446 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
4447   cat >>confdefs.h <<EOF
4448 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
4449 EOF
4450
4451 fi
4452 done
4453
4454 CFLAGS="${CFLAGS} -Wall -Werror"
4455 echo "$as_me:4455: checking for ntohl in sys/param.h" >&5
4456 echo $ECHO_N "checking for ntohl in sys/param.h... $ECHO_C" >&6
4457 cat >conftest.$ac_ext <<_ACEOF
4458 #line 4458 "configure"
4459 #include "confdefs.h"
4460 #include <sys/param.h>
4461 void foo() { int meuh; ntohl(meuh); }
4462 int
4463 main ()
4464 {
4465
4466   ;
4467   return 0;
4468 }
4469 _ACEOF
4470 rm -f conftest.$ac_objext
4471 if { (eval echo "$as_me:4471: \"$ac_compile\"") >&5
4472   (eval $ac_compile) 2>&5
4473   ac_status=$?
4474   echo "$as_me:4474: \$? = $ac_status" >&5
4475   (exit $ac_status); } &&
4476          { ac_try='test -s conftest.$ac_objext'
4477   { (eval echo "$as_me:4477: \"$ac_try\"") >&5
4478   (eval $ac_try) 2>&5
4479   ac_status=$?
4480   echo "$as_me:4480: \$? = $ac_status" >&5
4481   (exit $ac_status); }; }; then
4482
4483 cat >>confdefs.h <<\EOF
4484 #define NTOHL_IN_SYS_PARAM_H 1
4485 EOF
4486
4487  echo "$as_me:4487: result: yes" >&5
4488 echo "${ECHO_T}yes" >&6
4489 else
4490   echo "$as_me: failed program was:" >&5
4491 cat conftest.$ac_ext >&5
4492 echo "$as_me:4492: result: no" >&5
4493 echo "${ECHO_T}no" >&6
4494 fi
4495 rm -f conftest.$ac_objext conftest.$ac_ext
4496
4497 CFLAGS="${CFLAGS} -rdynamic -Wall -Werror"
4498 echo "$as_me:4498: checking if \$CC miserably fails with the -rdynamic flag" >&5
4499 echo $ECHO_N "checking if \$CC miserably fails with the -rdynamic flag... $ECHO_C" >&6
4500 cat >conftest.$ac_ext <<_ACEOF
4501 #line 4501 "configure"
4502 #include "confdefs.h"
4503
4504 int
4505 main ()
4506 {
4507
4508   ;
4509   return 0;
4510 }
4511 _ACEOF
4512 rm -f conftest.$ac_objext
4513 if { (eval echo "$as_me:4513: \"$ac_compile\"") >&5
4514   (eval $ac_compile) 2>&5
4515   ac_status=$?
4516   echo "$as_me:4516: \$? = $ac_status" >&5
4517   (exit $ac_status); } &&
4518          { ac_try='test -s conftest.$ac_objext'
4519   { (eval echo "$as_me:4519: \"$ac_try\"") >&5
4520   (eval $ac_try) 2>&5
4521   ac_status=$?
4522   echo "$as_me:4522: \$? = $ac_status" >&5
4523   (exit $ac_status); }; }; then
4524   LCFLAGS="${LCFLAGS} -rdynamic"
4525  echo "$as_me:4525: result: no" >&5
4526 echo "${ECHO_T}no" >&6
4527 else
4528   echo "$as_me: failed program was:" >&5
4529 cat conftest.$ac_ext >&5
4530 echo "$as_me:4530: result: yes" >&5
4531 echo "${ECHO_T}yes" >&6
4532 fi
4533 rm -f conftest.$ac_objext conftest.$ac_ext
4534
4535 CFLAGS="${save_CFLAGS}"
4536
4537 echo "$as_me:4537: checking for boolean_t in sys/types.h" >&5
4538 echo $ECHO_N "checking for boolean_t in sys/types.h... $ECHO_C" >&6
4539 cat >conftest.$ac_ext <<_ACEOF
4540 #line 4540 "configure"
4541 #include "confdefs.h"
4542 #include <sys/types.h>
4543 void quux() { boolean_t foo; }
4544 int
4545 main ()
4546 {
4547
4548   ;
4549   return 0;
4550 }
4551 _ACEOF
4552 rm -f conftest.$ac_objext
4553 if { (eval echo "$as_me:4553: \"$ac_compile\"") >&5
4554   (eval $ac_compile) 2>&5
4555   ac_status=$?
4556   echo "$as_me:4556: \$? = $ac_status" >&5
4557   (exit $ac_status); } &&
4558          { ac_try='test -s conftest.$ac_objext'
4559   { (eval echo "$as_me:4559: \"$ac_try\"") >&5
4560   (eval $ac_try) 2>&5
4561   ac_status=$?
4562   echo "$as_me:4562: \$? = $ac_status" >&5
4563   (exit $ac_status); }; }; then
4564
4565 cat >>confdefs.h <<\EOF
4566 #define BOOLEAN_T_IN_SYS_TYPES_H 1
4567 EOF
4568
4569  echo "$as_me:4569: result: yes" >&5
4570 echo "${ECHO_T}yes" >&6
4571 else
4572   echo "$as_me: failed program was:" >&5
4573 cat conftest.$ac_ext >&5
4574 echo "$as_me:4574: result: no" >&5
4575 echo "${ECHO_T}no" >&6
4576 fi
4577 rm -f conftest.$ac_objext conftest.$ac_ext
4578 echo "$as_me:4578: checking for boolean_t in pthread.h" >&5
4579 echo $ECHO_N "checking for boolean_t in pthread.h... $ECHO_C" >&6
4580 cat >conftest.$ac_ext <<_ACEOF
4581 #line 4581 "configure"
4582 #include "confdefs.h"
4583 #include <pthread.h>
4584 void quux() { boolean_t foo; }
4585 int
4586 main ()
4587 {
4588
4589   ;
4590   return 0;
4591 }
4592 _ACEOF
4593 rm -f conftest.$ac_objext
4594 if { (eval echo "$as_me:4594: \"$ac_compile\"") >&5
4595   (eval $ac_compile) 2>&5
4596   ac_status=$?
4597   echo "$as_me:4597: \$? = $ac_status" >&5
4598   (exit $ac_status); } &&
4599          { ac_try='test -s conftest.$ac_objext'
4600   { (eval echo "$as_me:4600: \"$ac_try\"") >&5
4601   (eval $ac_try) 2>&5
4602   ac_status=$?
4603   echo "$as_me:4603: \$? = $ac_status" >&5
4604   (exit $ac_status); }; }; then
4605
4606 cat >>confdefs.h <<\EOF
4607 #define BOOLEAN_T_IN_PTHREAD_H 1
4608 EOF
4609
4610  echo "$as_me:4610: result: yes" >&5
4611 echo "${ECHO_T}yes" >&6
4612 else
4613   echo "$as_me: failed program was:" >&5
4614 cat conftest.$ac_ext >&5
4615 echo "$as_me:4615: result: no" >&5
4616 echo "${ECHO_T}no" >&6
4617 fi
4618 rm -f conftest.$ac_objext conftest.$ac_ext
4619
4620 echo "$as_me:4620: checking for an ANSI C-conforming const" >&5
4621 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4622 if test "${ac_cv_c_const+set}" = set; then
4623   echo $ECHO_N "(cached) $ECHO_C" >&6
4624 else
4625   cat >conftest.$ac_ext <<_ACEOF
4626 #line 4626 "configure"
4627 #include "confdefs.h"
4628
4629 int
4630 main ()
4631 {
4632 /* FIXME: Include the comments suggested by Paul. */
4633 #ifndef __cplusplus
4634   /* Ultrix mips cc rejects this.  */
4635   typedef int charset[2];
4636   const charset x;
4637   /* SunOS 4.1.1 cc rejects this.  */
4638   char const *const *ccp;
4639   char **p;
4640   /* NEC SVR4.0.2 mips cc rejects this.  */
4641   struct point {int x, y;};
4642   static struct point const zero = {0,0};
4643   /* AIX XL C 1.02.0.0 rejects this.
4644      It does not let you subtract one const X* pointer from another in
4645      an arm of an if-expression whose if-part is not a constant
4646      expression */
4647   const char *g = "string";
4648   ccp = &g + (g ? g-g : 0);
4649   /* HPUX 7.0 cc rejects these. */
4650   ++ccp;
4651   p = (char**) ccp;
4652   ccp = (char const *const *) p;
4653   { /* SCO 3.2v4 cc rejects this.  */
4654     char *t;
4655     char const *s = 0 ? (char *) 0 : (char const *) 0;
4656
4657     *t++ = 0;
4658   }
4659   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4660     int x[] = {25, 17};
4661     const int *foo = &x[0];
4662     ++foo;
4663   }
4664   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4665     typedef const int *iptr;
4666     iptr p = 0;
4667     ++p;
4668   }
4669   { /* AIX XL C 1.02.0.0 rejects this saying
4670        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4671     struct s { int j; const int *ap[3]; };
4672     struct s *b; b->j = 5;
4673   }
4674   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4675     const int foo = 10;
4676   }
4677 #endif
4678
4679   ;
4680   return 0;
4681 }
4682 _ACEOF
4683 rm -f conftest.$ac_objext
4684 if { (eval echo "$as_me:4684: \"$ac_compile\"") >&5
4685   (eval $ac_compile) 2>&5
4686   ac_status=$?
4687   echo "$as_me:4687: \$? = $ac_status" >&5
4688   (exit $ac_status); } &&
4689          { ac_try='test -s conftest.$ac_objext'
4690   { (eval echo "$as_me:4690: \"$ac_try\"") >&5
4691   (eval $ac_try) 2>&5
4692   ac_status=$?
4693   echo "$as_me:4693: \$? = $ac_status" >&5
4694   (exit $ac_status); }; }; then
4695   ac_cv_c_const=yes
4696 else
4697   echo "$as_me: failed program was:" >&5
4698 cat conftest.$ac_ext >&5
4699 ac_cv_c_const=no
4700 fi
4701 rm -f conftest.$ac_objext conftest.$ac_ext
4702 fi
4703 echo "$as_me:4703: result: $ac_cv_c_const" >&5
4704 echo "${ECHO_T}$ac_cv_c_const" >&6
4705 if test $ac_cv_c_const = no; then
4706
4707 cat >>confdefs.h <<\EOF
4708 #define const
4709 EOF
4710
4711 fi
4712
4713 echo "$as_me:4713: checking for ANSI C header files" >&5
4714 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4715 if test "${ac_cv_header_stdc+set}" = set; then
4716   echo $ECHO_N "(cached) $ECHO_C" >&6
4717 else
4718   cat >conftest.$ac_ext <<_ACEOF
4719 #line 4719 "configure"
4720 #include "confdefs.h"
4721 #include <stdlib.h>
4722 #include <stdarg.h>
4723 #include <string.h>
4724 #include <float.h>
4725
4726 _ACEOF
4727 if { (eval echo "$as_me:4727: \"$ac_cpp conftest.$ac_ext\"") >&5
4728   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4729   ac_status=$?
4730   egrep -v '^ *\+' conftest.er1 >conftest.err
4731   rm -f conftest.er1
4732   cat conftest.err >&5
4733   echo "$as_me:4733: \$? = $ac_status" >&5
4734   (exit $ac_status); } >/dev/null; then
4735   if test -s conftest.err; then
4736     ac_cpp_err=$ac_c_preproc_warn_flag
4737   else
4738     ac_cpp_err=
4739   fi
4740 else
4741   ac_cpp_err=yes
4742 fi
4743 if test -z "$ac_cpp_err"; then
4744   ac_cv_header_stdc=yes
4745 else
4746   echo "$as_me: failed program was:" >&5
4747   cat conftest.$ac_ext >&5
4748   ac_cv_header_stdc=no
4749 fi
4750 rm -f conftest.err conftest.$ac_ext
4751
4752 if test $ac_cv_header_stdc = yes; then
4753   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4754   cat >conftest.$ac_ext <<_ACEOF
4755 #line 4755 "configure"
4756 #include "confdefs.h"
4757 #include <string.h>
4758
4759 _ACEOF
4760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4761   egrep "memchr" >/dev/null 2>&1; then
4762   :
4763 else
4764   ac_cv_header_stdc=no
4765 fi
4766 rm -f conftest*
4767
4768 fi
4769
4770 if test $ac_cv_header_stdc = yes; then
4771   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4772   cat >conftest.$ac_ext <<_ACEOF
4773 #line 4773 "configure"
4774 #include "confdefs.h"
4775 #include <stdlib.h>
4776
4777 _ACEOF
4778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4779   egrep "free" >/dev/null 2>&1; then
4780   :
4781 else
4782   ac_cv_header_stdc=no
4783 fi
4784 rm -f conftest*
4785
4786 fi
4787
4788 if test $ac_cv_header_stdc = yes; then
4789   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4790   if test "$cross_compiling" = yes; then
4791   :
4792 else
4793   cat >conftest.$ac_ext <<_ACEOF
4794 #line 4794 "configure"
4795 #include "confdefs.h"
4796 #include <ctype.h>
4797 #if ((' ' & 0x0FF) == 0x020)
4798 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4799 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4800 #else
4801 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4802                      || ('j' <= (c) && (c) <= 'r') \
4803                      || ('s' <= (c) && (c) <= 'z'))
4804 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4805 #endif
4806
4807 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4808 int
4809 main ()
4810 {
4811   int i;
4812   for (i = 0; i < 256; i++)
4813     if (XOR (islower (i), ISLOWER (i))
4814         || toupper (i) != TOUPPER (i))
4815       exit(2);
4816   exit (0);
4817 }
4818 _ACEOF
4819 rm -f conftest$ac_exeext
4820 if { (eval echo "$as_me:4820: \"$ac_link\"") >&5
4821   (eval $ac_link) 2>&5
4822   ac_status=$?
4823   echo "$as_me:4823: \$? = $ac_status" >&5
4824   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4825   { (eval echo "$as_me:4825: \"$ac_try\"") >&5
4826   (eval $ac_try) 2>&5
4827   ac_status=$?
4828   echo "$as_me:4828: \$? = $ac_status" >&5
4829   (exit $ac_status); }; }; then
4830   :
4831 else
4832   echo "$as_me: program exited with status $ac_status" >&5
4833 echo "$as_me: failed program was:" >&5
4834 cat conftest.$ac_ext >&5
4835 ac_cv_header_stdc=no
4836 fi
4837 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
4838 fi
4839 fi
4840 fi
4841 echo "$as_me:4841: result: $ac_cv_header_stdc" >&5
4842 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4843 if test $ac_cv_header_stdc = yes; then
4844
4845 cat >>confdefs.h <<\EOF
4846 #define STDC_HEADERS 1
4847 EOF
4848
4849 fi
4850
4851 for ac_header in stdlib.h string.h memory.h strings.h inttypes.h unistd.h
4852 do
4853 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
4854 echo "$as_me:4854: checking for $ac_header" >&5
4855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4856 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
4857   echo $ECHO_N "(cached) $ECHO_C" >&6
4858 else
4859   cat >conftest.$ac_ext <<_ACEOF
4860 #line 4860 "configure"
4861 #include "confdefs.h"
4862 #include <$ac_header>
4863 _ACEOF
4864 if { (eval echo "$as_me:4864: \"$ac_cpp conftest.$ac_ext\"") >&5
4865   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4866   ac_status=$?
4867   egrep -v '^ *\+' conftest.er1 >conftest.err
4868   rm -f conftest.er1
4869   cat conftest.err >&5
4870   echo "$as_me:4870: \$? = $ac_status" >&5
4871   (exit $ac_status); } >/dev/null; then
4872   if test -s conftest.err; then
4873     ac_cpp_err=$ac_c_preproc_warn_flag
4874   else
4875     ac_cpp_err=
4876   fi
4877 else
4878   ac_cpp_err=yes
4879 fi
4880 if test -z "$ac_cpp_err"; then
4881   eval "$ac_ac_Header=yes"
4882 else
4883   echo "$as_me: failed program was:" >&5
4884   cat conftest.$ac_ext >&5
4885   eval "$ac_ac_Header=no"
4886 fi
4887 rm -f conftest.err conftest.$ac_ext
4888 fi
4889 echo "$as_me:4889: result: `eval echo '${'$ac_ac_Header'}'`" >&5
4890 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
4891 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
4892   cat >>confdefs.h <<EOF
4893 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
4894 EOF
4895
4896 fi
4897 done
4898
4899 echo "$as_me:4899: checking for size_t" >&5
4900 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4901 if test "${ac_cv_type_size_t+set}" = set; then
4902   echo $ECHO_N "(cached) $ECHO_C" >&6
4903 else
4904   cat >conftest.$ac_ext <<_ACEOF
4905 #line 4905 "configure"
4906 #include "confdefs.h"
4907 $ac_includes_default
4908 int
4909 main ()
4910 {
4911 if ((size_t *) 0)
4912   return 0;
4913 if (sizeof (size_t))
4914   return 0;
4915   ;
4916   return 0;
4917 }
4918 _ACEOF
4919 rm -f conftest.$ac_objext
4920 if { (eval echo "$as_me:4920: \"$ac_compile\"") >&5
4921   (eval $ac_compile) 2>&5
4922   ac_status=$?
4923   echo "$as_me:4923: \$? = $ac_status" >&5
4924   (exit $ac_status); } &&
4925          { ac_try='test -s conftest.$ac_objext'
4926   { (eval echo "$as_me:4926: \"$ac_try\"") >&5
4927   (eval $ac_try) 2>&5
4928   ac_status=$?
4929   echo "$as_me:4929: \$? = $ac_status" >&5
4930   (exit $ac_status); }; }; then
4931   ac_cv_type_size_t=yes
4932 else
4933   echo "$as_me: failed program was:" >&5
4934 cat conftest.$ac_ext >&5
4935 ac_cv_type_size_t=no
4936 fi
4937 rm -f conftest.$ac_objext conftest.$ac_ext
4938 fi
4939 echo "$as_me:4939: result: $ac_cv_type_size_t" >&5
4940 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4941 if test $ac_cv_type_size_t = yes; then
4942   :
4943 else
4944
4945 cat >>confdefs.h <<EOF
4946 #define size_t unsigned
4947 EOF
4948
4949 fi
4950
4951 echo "$as_me:4951: checking whether time.h and sys/time.h may both be included" >&5
4952 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4953 if test "${ac_cv_header_time+set}" = set; then
4954   echo $ECHO_N "(cached) $ECHO_C" >&6
4955 else
4956   cat >conftest.$ac_ext <<_ACEOF
4957 #line 4957 "configure"
4958 #include "confdefs.h"
4959 #include <sys/types.h>
4960 #include <sys/time.h>
4961 #include <time.h>
4962
4963 int
4964 main ()
4965 {
4966 struct tm *tp;
4967   ;
4968   return 0;
4969 }
4970 _ACEOF
4971 rm -f conftest.$ac_objext
4972 if { (eval echo "$as_me:4972: \"$ac_compile\"") >&5
4973   (eval $ac_compile) 2>&5
4974   ac_status=$?
4975   echo "$as_me:4975: \$? = $ac_status" >&5
4976   (exit $ac_status); } &&
4977          { ac_try='test -s conftest.$ac_objext'
4978   { (eval echo "$as_me:4978: \"$ac_try\"") >&5
4979   (eval $ac_try) 2>&5
4980   ac_status=$?
4981   echo "$as_me:4981: \$? = $ac_status" >&5
4982   (exit $ac_status); }; }; then
4983   ac_cv_header_time=yes
4984 else
4985   echo "$as_me: failed program was:" >&5
4986 cat conftest.$ac_ext >&5
4987 ac_cv_header_time=no
4988 fi
4989 rm -f conftest.$ac_objext conftest.$ac_ext
4990 fi
4991 echo "$as_me:4991: result: $ac_cv_header_time" >&5
4992 echo "${ECHO_T}$ac_cv_header_time" >&6
4993 if test $ac_cv_header_time = yes; then
4994
4995 cat >>confdefs.h <<\EOF
4996 #define TIME_WITH_SYS_TIME 1
4997 EOF
4998
4999 fi
5000
5001 ARCH=${host_cpu}
5002
5003 BUILTINS="${BUILTINS} es ps ts yuv idct idctclassic motion imdct downmix"
5004
5005 case x$host_os in
5006   xmingw32msvc)
5007     MMX_PLUGINS="idctmmx motionmmx"
5008     MMXEXT_PLUGINS="idctmmxext motionmmxext imdct3dn"
5009     ;;
5010   *)
5011     MMX_PLUGINS="yuvmmx idctmmx motionmmx"
5012     MMXEXT_PLUGINS="idctmmxext motionmmxext imdct3dn imdctsse downmix3dn downmixsse"
5013     ;;
5014 esac
5015
5016 echo "$as_me:5016: checking if \$CC groks MMX inline assembly" >&5
5017 echo $ECHO_N "checking if \$CC groks MMX inline assembly... $ECHO_C" >&6
5018 cat >conftest.$ac_ext <<_ACEOF
5019 #line 5019 "configure"
5020 #include "confdefs.h"
5021 void quux(){void *p;asm("packuswb %%mm1,%%mm2"::"r"(p));}
5022 int
5023 main ()
5024 {
5025
5026   ;
5027   return 0;
5028 }
5029 _ACEOF
5030 rm -f conftest.$ac_objext
5031 if { (eval echo "$as_me:5031: \"$ac_compile\"") >&5
5032   (eval $ac_compile) 2>&5
5033   ac_status=$?
5034   echo "$as_me:5034: \$? = $ac_status" >&5
5035   (exit $ac_status); } &&
5036          { ac_try='test -s conftest.$ac_objext'
5037   { (eval echo "$as_me:5037: \"$ac_try\"") >&5
5038   (eval $ac_try) 2>&5
5039   ac_status=$?
5040   echo "$as_me:5040: \$? = $ac_status" >&5
5041   (exit $ac_status); }; }; then
5042   ACCEL_PLUGINS="${ACCEL_PLUGINS} ${MMX_PLUGINS}"
5043   echo "$as_me:5043: result: yes" >&5
5044 echo "${ECHO_T}yes" >&6
5045 else
5046   echo "$as_me: failed program was:" >&5
5047 cat conftest.$ac_ext >&5
5048 echo "$as_me:5048: result: no" >&5
5049 echo "${ECHO_T}no" >&6
5050 fi
5051 rm -f conftest.$ac_objext conftest.$ac_ext
5052
5053 echo "$as_me:5053: checking if \$CC groks MMX EXT or SSE inline assembly" >&5
5054 echo $ECHO_N "checking if \$CC groks MMX EXT or SSE inline assembly... $ECHO_C" >&6
5055 cat >conftest.$ac_ext <<_ACEOF
5056 #line 5056 "configure"
5057 #include "confdefs.h"
5058 void quux(){void *p;asm("maskmovq %%mm1,%%mm2"::"r"(p));}
5059 int
5060 main ()
5061 {
5062
5063   ;
5064   return 0;
5065 }
5066 _ACEOF
5067 rm -f conftest.$ac_objext
5068 if { (eval echo "$as_me:5068: \"$ac_compile\"") >&5
5069   (eval $ac_compile) 2>&5
5070   ac_status=$?
5071   echo "$as_me:5071: \$? = $ac_status" >&5
5072   (exit $ac_status); } &&
5073          { ac_try='test -s conftest.$ac_objext'
5074   { (eval echo "$as_me:5074: \"$ac_try\"") >&5
5075   (eval $ac_try) 2>&5
5076   ac_status=$?
5077   echo "$as_me:5077: \$? = $ac_status" >&5
5078   (exit $ac_status); }; }; then
5079   ACCEL_PLUGINS="${ACCEL_PLUGINS} ${MMXEXT_PLUGINS}"
5080   echo "$as_me:5080: result: yes" >&5
5081 echo "${ECHO_T}yes" >&6
5082 else
5083   echo "$as_me: failed program was:" >&5
5084 cat conftest.$ac_ext >&5
5085 echo "$as_me:5085: result: no" >&5
5086 echo "${ECHO_T}no" >&6
5087 fi
5088 rm -f conftest.$ac_objext conftest.$ac_ext
5089
5090 for ac_header in sys/ioctl.h
5091 do
5092 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
5093 echo "$as_me:5093: checking for $ac_header" >&5
5094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5095 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
5096   echo $ECHO_N "(cached) $ECHO_C" >&6
5097 else
5098   cat >conftest.$ac_ext <<_ACEOF
5099 #line 5099 "configure"
5100 #include "confdefs.h"
5101 #include <$ac_header>
5102 _ACEOF
5103 if { (eval echo "$as_me:5103: \"$ac_cpp conftest.$ac_ext\"") >&5
5104   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5105   ac_status=$?
5106   egrep -v '^ *\+' conftest.er1 >conftest.err
5107   rm -f conftest.er1
5108   cat conftest.err >&5
5109   echo "$as_me:5109: \$? = $ac_status" >&5
5110   (exit $ac_status); } >/dev/null; then
5111   if test -s conftest.err; then
5112     ac_cpp_err=$ac_c_preproc_warn_flag
5113   else
5114     ac_cpp_err=
5115   fi
5116 else
5117   ac_cpp_err=yes
5118 fi
5119 if test -z "$ac_cpp_err"; then
5120   eval "$ac_ac_Header=yes"
5121 else
5122   echo "$as_me: failed program was:" >&5
5123   cat conftest.$ac_ext >&5
5124   eval "$ac_ac_Header=no"
5125 fi
5126 rm -f conftest.err conftest.$ac_ext
5127 fi
5128 echo "$as_me:5128: result: `eval echo '${'$ac_ac_Header'}'`" >&5
5129 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
5130 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
5131   cat >>confdefs.h <<EOF
5132 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
5133 EOF
5134
5135   BUILTINS="${BUILTINS} dvd"
5136
5137 for ac_header in sys/cdio.h sys/dvdio.h linux/cdrom.h
5138 do
5139 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
5140 echo "$as_me:5140: checking for $ac_header" >&5
5141 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5142 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
5143   echo $ECHO_N "(cached) $ECHO_C" >&6
5144 else
5145   cat >conftest.$ac_ext <<_ACEOF
5146 #line 5146 "configure"
5147 #include "confdefs.h"
5148 #include <$ac_header>
5149 _ACEOF
5150 if { (eval echo "$as_me:5150: \"$ac_cpp conftest.$ac_ext\"") >&5
5151   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5152   ac_status=$?
5153   egrep -v '^ *\+' conftest.er1 >conftest.err
5154   rm -f conftest.er1
5155   cat conftest.err >&5
5156   echo "$as_me:5156: \$? = $ac_status" >&5
5157   (exit $ac_status); } >/dev/null; then
5158   if test -s conftest.err; then
5159     ac_cpp_err=$ac_c_preproc_warn_flag
5160   else
5161     ac_cpp_err=
5162   fi
5163 else
5164   ac_cpp_err=yes
5165 fi
5166 if test -z "$ac_cpp_err"; then
5167   eval "$ac_ac_Header=yes"
5168 else
5169   echo "$as_me: failed program was:" >&5
5170   cat conftest.$ac_ext >&5
5171   eval "$ac_ac_Header=no"
5172 fi
5173 rm -f conftest.err conftest.$ac_ext
5174 fi
5175 echo "$as_me:5175: result: `eval echo '${'$ac_ac_Header'}'`" >&5
5176 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
5177 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
5178   cat >>confdefs.h <<EOF
5179 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
5180 EOF
5181
5182 fi
5183 done
5184
5185   BSD_DVD_STRUCT=0
5186         cat >conftest.$ac_ext <<_ACEOF
5187 #line 5187 "configure"
5188 #include "confdefs.h"
5189 #include <sys/dvdio.h>
5190
5191 _ACEOF
5192 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5193   egrep "dvd_struct" >/dev/null 2>&1; then
5194
5195 cat >>confdefs.h <<\EOF
5196 #define DVD_STRUCT_IN_SYS_DVDIO_H 1
5197 EOF
5198
5199     BSD_DVD_STRUCT=1
5200
5201 fi
5202 rm -f conftest*
5203
5204         cat >conftest.$ac_ext <<_ACEOF
5205 #line 5205 "configure"
5206 #include "confdefs.h"
5207 #include <sys/cdio.h>
5208
5209 _ACEOF
5210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5211   egrep "dvd_struct" >/dev/null 2>&1; then
5212
5213 cat >>confdefs.h <<\EOF
5214 #define DVD_STRUCT_IN_SYS_CDIO_H 1
5215 EOF
5216
5217     BSD_DVD_STRUCT=1
5218
5219 fi
5220 rm -f conftest*
5221
5222   if test x$BSD_DVD_STRUCT = x1; then
5223
5224 cat >>confdefs.h <<\EOF
5225 #define HAVE_BSD_DVD_STRUCT 1
5226 EOF
5227
5228   fi
5229         cat >conftest.$ac_ext <<_ACEOF
5230 #line 5230 "configure"
5231 #include "confdefs.h"
5232 #include <linux/cdrom.h>
5233
5234 _ACEOF
5235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5236   egrep "dvd_struct" >/dev/null 2>&1; then
5237
5238 cat >>confdefs.h <<\EOF
5239 #define DVD_STRUCT_IN_LINUX_CDROM_H 1
5240 EOF
5241
5242 fi
5243 rm -f conftest*
5244
5245 fi
5246 done
5247
5248 # Check whether --enable-dummy or --disable-dummy was given.
5249 if test "${enable_dummy+set}" = set; then
5250   enableval="$enable_dummy"
5251
5252 fi;
5253 if test x$enable_dummy != xno; then
5254   BUILTINS="${BUILTINS} dummy"; fi
5255
5256 # Check whether --enable-null or --disable-null was given.
5257 if test "${enable_null+set}" = set; then
5258   enableval="$enable_null"
5259
5260 fi;
5261 if test x$enable_null != xno; then
5262   BUILTINS="${BUILTINS} null"; fi
5263
5264 # Check whether --enable-rc or --disable-rc was given.
5265 if test "${enable_rc+set}" = set; then
5266   enableval="$enable_rc"
5267
5268 fi;
5269 if test x$enable_rc != xno; then
5270   BUILTINS="${BUILTINS} rc"; fi
5271
5272 # Check whether --enable-ppro or --disable-ppro was given.
5273 if test "${enable_ppro+set}" = set; then
5274   enableval="$enable_ppro"
5275    if test x$enableval = xyes; then ARCH="${ARCH} ppro"; fi
5276 else
5277    if test x${host_cpu} = xi686; then ARCH="${ARCH} ppro"; fi
5278 fi;
5279
5280 # Check whether --enable-mmx or --disable-mmx was given.
5281 if test "${enable_mmx+set}" = set; then
5282   enableval="$enable_mmx"
5283    if test x$enableval = xyes; then ARCH="${ARCH} mmx";
5284   BUILTINS="${BUILTINS} ${ACCEL_PLUGINS}"; fi
5285 else
5286    if test x${host_cpu} = xi686 -o x${host_cpu} = xi586 -o x${host_cpu} = xx86 -o x${host_cpu} = xi386; then ARCH="${ARCH} mmx";
5287   BUILTINS="${BUILTINS} ${ACCEL_PLUGINS}"; fi
5288 fi;
5289
5290 # Check whether --enable-altivec or --disable-altivec was given.
5291 if test "${enable_altivec+set}" = set; then
5292   enableval="$enable_altivec"
5293    if test x$enableval = xyes; then ARCH="${ARCH} altivec";
5294     BUILTINS="${BUILTINS} idctaltivec"
5295     LIB_IDCTALTIVEC="-framework vecLib"
5296   fi
5297 fi;
5298 #[ if test -d /System/Library/Frameworks/vecLib.framework; then ARCH="${ARCH} altivec"; PLUGINS="${PLUGINS} idctaltivec"; fi ])
5299
5300 # Check whether --enable-css or --disable-css was given.
5301 if test "${enable_css+set}" = set; then
5302   enableval="$enable_css"
5303    if test x$enableval = xyes; then CSS=1; else CSS=0; fi
5304 else
5305    CSS=1;
5306 fi;
5307 if test x${CSS} = x1; then
5308 cat >>confdefs.h <<\EOF
5309 #define HAVE_CSS 1
5310 EOF
5311  fi
5312
5313 # Check whether --enable-debug or --disable-debug was given.
5314 if test "${enable_debug+set}" = set; then
5315   enableval="$enable_debug"
5316    if test x$enableval = xyes; then DEBUG=1; fi
5317 fi;
5318
5319 # Check whether --enable-stats or --disable-stats was given.
5320 if test "${enable_stats+set}" = set; then
5321   enableval="$enable_stats"
5322    if test x$enableval = xyes; then STATS=1; fi
5323 fi;
5324
5325 # Check whether --enable-trace or --disable-trace was given.
5326 if test "${enable_trace+set}" = set; then
5327   enableval="$enable_trace"
5328    if test x$enableval = xyes; then TRACE=1; fi
5329 fi;
5330
5331 # Check whether --enable-optimizations or --disable-optimizations was given.
5332 if test "${enable_optimizations+set}" = set; then
5333   enableval="$enable_optimizations"
5334    if test x$enableval = xno; then OPTIMS=0; fi
5335 else
5336    OPTIMS=1
5337 fi;
5338
5339 SYS=${host_os}
5340
5341 if test x$host_os = xbeos; then
5342     BUILTINS="${BUILTINS} beos"
5343     LIB_BEOS="-lbe -lgame -lroot -ltracker"
5344
5345 else
5346
5347 # Check whether --enable-dsp or --disable-dsp was given.
5348 if test "${enable_dsp+set}" = set; then
5349   enableval="$enable_dsp"
5350
5351 fi;
5352 if test x$enable_dsp != xno; then
5353   if test -c /dev/dsp; then
5354     PLUGINS="${PLUGINS} dsp"
5355   fi
5356 fi
5357
5358 # Check whether --enable-esd or --disable-esd was given.
5359 if test "${enable_esd+set}" = set; then
5360   enableval="$enable_esd"
5361   if test x$enable_esd = xyes; then
5362      # Extract the first word of "esd-config", so it can be a program name with args.
5363 set dummy esd-config; ac_word=$2
5364 echo "$as_me:5364: checking for $ac_word" >&5
5365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5366 if test "${ac_cv_path_ESD_CONFIG+set}" = set; then
5367   echo $ECHO_N "(cached) $ECHO_C" >&6
5368 else
5369   case $ESD_CONFIG in
5370   [\\/]* | ?:[\\/]*)
5371   ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
5372   ;;
5373   *)
5374   ac_save_IFS=$IFS; IFS=$ac_path_separator
5375 ac_dummy="$PATH"
5376 for ac_dir in $ac_dummy; do
5377   IFS=$ac_save_IFS
5378   test -z "$ac_dir" && ac_dir=.
5379   if $as_executable_p "$ac_dir/$ac_word"; then
5380    ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
5381    echo "$as_me:5381: found $ac_dir/$ac_word" >&5
5382    break
5383 fi
5384 done
5385
5386   test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
5387   ;;
5388 esac
5389 fi
5390 ESD_CONFIG=$ac_cv_path_ESD_CONFIG
5391
5392 if test -n "$ESD_CONFIG"; then
5393   echo "$as_me:5393: result: $ESD_CONFIG" >&5
5394 echo "${ECHO_T}$ESD_CONFIG" >&6
5395 else
5396   echo "$as_me:5396: result: no" >&5
5397 echo "${ECHO_T}no" >&6
5398 fi
5399
5400      if test x${ESD_CONFIG} != xno; then
5401        PLUGINS="${PLUGINS} esd"
5402        LIB_ESD="`${ESD_CONFIG} --libs`"
5403      fi
5404    fi
5405 fi;
5406
5407 # Check whether --enable-darwin or --disable-darwin was given.
5408 if test "${enable_darwin+set}" = set; then
5409   enableval="$enable_darwin"
5410   if test x$enable_darwin = xyes; then
5411      PLUGINS="${PLUGINS} darwin"
5412      LIB_DARWIN="-framework CoreAudio"
5413    fi
5414 fi;
5415
5416 # Check whether --enable-macosx or --disable-macosx was given.
5417 if test "${enable_macosx+set}" = set; then
5418   enableval="$enable_macosx"
5419   if test x$enable_macosx = xyes; then
5420      BUILTINS="${BUILTINS} macosx"
5421      LIB_MACOSX="-framework CoreAudio -framework Carbon -framework AGL"
5422      LIB_TS="${LIB_TS} -framework AGL -framework Carbon"
5423      LIB_SDL="${LIB_SDL} -framework AGL -framework Carbon"
5424    fi
5425 else
5426
5427 for ac_header in Carbon/Carbon.h
5428 do
5429 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
5430 echo "$as_me:5430: checking for $ac_header" >&5
5431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5432 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
5433   echo $ECHO_N "(cached) $ECHO_C" >&6
5434 else
5435   cat >conftest.$ac_ext <<_ACEOF
5436 #line 5436 "configure"
5437 #include "confdefs.h"
5438 #include <$ac_header>
5439 _ACEOF
5440 if { (eval echo "$as_me:5440: \"$ac_cpp conftest.$ac_ext\"") >&5
5441   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5442   ac_status=$?
5443   egrep -v '^ *\+' conftest.er1 >conftest.err
5444   rm -f conftest.er1
5445   cat conftest.err >&5
5446   echo "$as_me:5446: \$? = $ac_status" >&5
5447   (exit $ac_status); } >/dev/null; then
5448   if test -s conftest.err; then
5449     ac_cpp_err=$ac_c_preproc_warn_flag
5450   else
5451     ac_cpp_err=
5452   fi
5453 else
5454   ac_cpp_err=yes
5455 fi
5456 if test -z "$ac_cpp_err"; then
5457   eval "$ac_ac_Header=yes"
5458 else
5459   echo "$as_me: failed program was:" >&5
5460   cat conftest.$ac_ext >&5
5461   eval "$ac_ac_Header=no"
5462 fi
5463 rm -f conftest.err conftest.$ac_ext
5464 fi
5465 echo "$as_me:5465: result: `eval echo '${'$ac_ac_Header'}'`" >&5
5466 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
5467 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
5468   cat >>confdefs.h <<EOF
5469 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
5470 EOF
5471  BUILTINS="${BUILTINS} macosx"
5472      LIB_MACOSX="-framework CoreAudio -framework Carbon -framework AGL"
5473      LIB_TS="${LIB_TS} -framework AGL -framework Carbon"
5474      LIB_SDL="${LIB_SDL} -framework AGL -framework Carbon"
5475
5476 fi
5477 done
5478
5479 fi;
5480
5481 # Check whether --enable-fb or --disable-fb was given.
5482 if test "${enable_fb+set}" = set; then
5483   enableval="$enable_fb"
5484   if test x$enable_fb = xyes; then PLUGINS="${PLUGINS} fb"; fi
5485 fi;
5486
5487 # Check whether --with-ggi or --without-ggi was given.
5488 if test "${with_ggi+set}" = set; then
5489   withval="$with_ggi"
5490    if test "x$withval" != "xno";
5491     then
5492       PLUGINS="${PLUGINS} ggi";
5493       if test "x$withval" != "xyes";
5494       then
5495         LIB_GGI="-l"$withval
5496       else
5497         LIB_GGI="-lggi"
5498       fi
5499     fi
5500 fi;
5501
5502 # Check whether --with-sdl or --without-sdl was given.
5503 if test "${with_sdl+set}" = set; then
5504   withval="$with_sdl"
5505    if test "x$withval" != "xno";
5506     then
5507       PLUGINS="${PLUGINS} sdl";
5508       if test "x$withval" != "xyes";
5509       then
5510         LIB_SDL="${LIB_SDL} -L/usr/X11R6/lib -L"$withval"/lib -lSDL"
5511         INCLUDE="${INCLUDE} -I"$withval"/include"
5512       else
5513
5514 for ac_header in SDL/SDL.h
5515 do
5516 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
5517 echo "$as_me:5517: checking for $ac_header" >&5
5518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5519 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
5520   echo $ECHO_N "(cached) $ECHO_C" >&6
5521 else
5522   cat >conftest.$ac_ext <<_ACEOF
5523 #line 5523 "configure"
5524 #include "confdefs.h"
5525 #include <$ac_header>
5526 _ACEOF
5527 if { (eval echo "$as_me:5527: \"$ac_cpp conftest.$ac_ext\"") >&5
5528   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5529   ac_status=$?
5530   egrep -v '^ *\+' conftest.er1 >conftest.err
5531   rm -f conftest.er1
5532   cat conftest.err >&5
5533   echo "$as_me:5533: \$? = $ac_status" >&5
5534   (exit $ac_status); } >/dev/null; then
5535   if test -s conftest.err; then
5536     ac_cpp_err=$ac_c_preproc_warn_flag
5537   else
5538     ac_cpp_err=
5539   fi
5540 else
5541   ac_cpp_err=yes
5542 fi
5543 if test -z "$ac_cpp_err"; then
5544   eval "$ac_ac_Header=yes"
5545 else
5546   echo "$as_me: failed program was:" >&5
5547   cat conftest.$ac_ext >&5
5548   eval "$ac_ac_Header=no"
5549 fi
5550 rm -f conftest.err conftest.$ac_ext
5551 fi
5552 echo "$as_me:5552: result: `eval echo '${'$ac_ac_Header'}'`" >&5
5553 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
5554 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
5555   cat >>confdefs.h <<EOF
5556 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
5557 EOF
5558
5559 else
5560   echo "Cannot find SDL headers !"; exit
5561 fi
5562 done
5563
5564         LIB_SDL="${LIB_SDL} -L/usr/X11R6/lib -lSDL"
5565       fi
5566     fi
5567 fi;
5568     if test "x$withval" = "x";
5569     then
5570
5571 for ac_header in SDL/SDL.h
5572 do
5573 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
5574 echo "$as_me:5574: checking for $ac_header" >&5
5575 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5576 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
5577   echo $ECHO_N "(cached) $ECHO_C" >&6
5578 else
5579   cat >conftest.$ac_ext <<_ACEOF
5580 #line 5580 "configure"
5581 #include "confdefs.h"
5582 #include <$ac_header>
5583 _ACEOF
5584 if { (eval echo "$as_me:5584: \"$ac_cpp conftest.$ac_ext\"") >&5
5585   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5586   ac_status=$?
5587   egrep -v '^ *\+' conftest.er1 >conftest.err
5588   rm -f conftest.er1
5589   cat conftest.err >&5
5590   echo "$as_me:5590: \$? = $ac_status" >&5
5591   (exit $ac_status); } >/dev/null; then
5592   if test -s conftest.err; then
5593     ac_cpp_err=$ac_c_preproc_warn_flag
5594   else
5595     ac_cpp_err=
5596   fi
5597 else
5598   ac_cpp_err=yes
5599 fi
5600 if test -z "$ac_cpp_err"; then
5601   eval "$ac_ac_Header=yes"
5602 else
5603   echo "$as_me: failed program was:" >&5
5604   cat conftest.$ac_ext >&5
5605   eval "$ac_ac_Header=no"
5606 fi
5607 rm -f conftest.err conftest.$ac_ext
5608 fi
5609 echo "$as_me:5609: result: `eval echo '${'$ac_ac_Header'}'`" >&5
5610 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
5611 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
5612   cat >>confdefs.h <<EOF
5613 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
5614 EOF
5615  PLUGINS="${PLUGINS} sdl"
5616        LIB_SDL="${LIB_SDL} -L/usr/X11R6/lib -lSDL"
5617 fi
5618 done
5619
5620     fi
5621
5622 # Check whether --with-glide or --without-glide was given.
5623 if test "${with_glide+set}" = set; then
5624   withval="$with_glide"
5625    if test "x$withval" != "xno";
5626     then
5627       PLUGINS="${PLUGINS} glide";
5628       if test "x$withval" != "xyes";
5629       then
5630         LIB_GLIDE="-l"$withval
5631       else
5632         LIB_GLIDE="-lglide2x"
5633       fi
5634     fi
5635 fi;
5636
5637 # Check whether --enable-ncurses or --disable-ncurses was given.
5638 if test "${enable_ncurses+set}" = set; then
5639   enableval="$enable_ncurses"
5640   if test x$enable_ncurses = xyes; then
5641      PLUGINS="${PLUGINS} ncurses"
5642      LIB_NCURSES="-lncurses"
5643    fi
5644 fi;
5645
5646 # Check whether --enable-qt or --disable-qt was given.
5647 if test "${enable_qt+set}" = set; then
5648   enableval="$enable_qt"
5649   if test x$enable_qt = xyes; then
5650      PLUGINS="${PLUGINS} qt"
5651      ALIASES="${ALIASES} qvlc"
5652      LIB_QT="-lqt -L${QTDIR}/lib"
5653      if test -x ${QTDIR}/bin/moc ;
5654      then
5655        MOC=${QTDIR}/bin/moc
5656      else
5657        MOC=moc
5658      fi
5659    fi
5660 fi;
5661
5662 # Check whether --enable-kde or --disable-kde was given.
5663 if test "${enable_kde+set}" = set; then
5664   enableval="$enable_kde"
5665   if test x$enable_kde = xyes; then PLUGINS="${PLUGINS} kde"; ALIASES="${ALIASES} kvlc"; fi
5666 fi;
5667
5668 # Check whether --enable-gnome or --disable-gnome was given.
5669 if test "${enable_gnome+set}" = set; then
5670   enableval="$enable_gnome"
5671   if test x$enable_gnome = xyes; then
5672      PLUGINS="${PLUGINS} gnome"
5673      ALIASES="${ALIASES} gnome-vlc"
5674      LIB_GNOME="`gnome-config --libs gnomeui | sed 's,-rdynamic,,'`"
5675    fi
5676 fi;
5677
5678 # Check whether --enable-gtk or --disable-gtk was given.
5679 if test "${enable_gtk+set}" = set; then
5680   enableval="$enable_gtk"
5681
5682 fi;
5683 if test x$enable_gtk != xno; then
5684   # Extract the first word of "gtk-config", so it can be a program name with args.
5685 set dummy gtk-config; ac_word=$2
5686 echo "$as_me:5686: checking for $ac_word" >&5
5687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5688 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
5689   echo $ECHO_N "(cached) $ECHO_C" >&6
5690 else
5691   case $GTK_CONFIG in
5692   [\\/]* | ?:[\\/]*)
5693   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
5694   ;;
5695   *)
5696   ac_save_IFS=$IFS; IFS=$ac_path_separator
5697 ac_dummy="$PATH"
5698 for ac_dir in $ac_dummy; do
5699   IFS=$ac_save_IFS
5700   test -z "$ac_dir" && ac_dir=.
5701   if $as_executable_p "$ac_dir/$ac_word"; then
5702    ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
5703    echo "$as_me:5703: found $ac_dir/$ac_word" >&5
5704    break
5705 fi
5706 done
5707
5708   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
5709   ;;
5710 esac
5711 fi
5712 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
5713
5714 if test -n "$GTK_CONFIG"; then
5715   echo "$as_me:5715: result: $GTK_CONFIG" >&5
5716 echo "${ECHO_T}$GTK_CONFIG" >&6
5717 else
5718   echo "$as_me:5718: result: no" >&5
5719 echo "${ECHO_T}no" >&6
5720 fi
5721
5722   if test x${GTK_CONFIG} != xno; then
5723     PLUGINS="${PLUGINS} gtk"
5724     ALIASES="${ALIASES} gvlc"
5725     CFLAGS_GTK="`${GTK_CONFIG} --cflags gtk`"
5726     LIB_GTK="`${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
5727   fi
5728 fi
5729
5730 # Check whether --enable-x11 or --disable-x11 was given.
5731 if test "${enable_x11+set}" = set; then
5732   enableval="$enable_x11"
5733
5734 fi;
5735 if test x$enable_x11 != xno; then
5736   if test x$x_includes = xNONE; then
5737     x_includes=/usr/X11R6/include
5738   fi
5739   if test x$x_libraries = xNONE; then
5740     x_libraries=/usr/X11R6/lib
5741   fi
5742   saved_CPPFLAGS=$CPPFLAGS
5743   CPPFLAGS="$CPPFLAGS -I$x_includes"
5744
5745 for ac_header in X11/Xlib.h
5746 do
5747 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
5748 echo "$as_me:5748: checking for $ac_header" >&5
5749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5750 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
5751   echo $ECHO_N "(cached) $ECHO_C" >&6
5752 else
5753   cat >conftest.$ac_ext <<_ACEOF
5754 #line 5754 "configure"
5755 #include "confdefs.h"
5756 #include <$ac_header>
5757 _ACEOF
5758 if { (eval echo "$as_me:5758: \"$ac_cpp conftest.$ac_ext\"") >&5
5759   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5760   ac_status=$?
5761   egrep -v '^ *\+' conftest.er1 >conftest.err
5762   rm -f conftest.er1
5763   cat conftest.err >&5
5764   echo "$as_me:5764: \$? = $ac_status" >&5
5765   (exit $ac_status); } >/dev/null; then
5766   if test -s conftest.err; then
5767     ac_cpp_err=$ac_c_preproc_warn_flag
5768   else
5769     ac_cpp_err=
5770   fi
5771 else
5772   ac_cpp_err=yes
5773 fi
5774 if test -z "$ac_cpp_err"; then
5775   eval "$ac_ac_Header=yes"
5776 else
5777   echo "$as_me: failed program was:" >&5
5778   cat conftest.$ac_ext >&5
5779   eval "$ac_ac_Header=no"
5780 fi
5781 rm -f conftest.err conftest.$ac_ext
5782 fi
5783 echo "$as_me:5783: result: `eval echo '${'$ac_ac_Header'}'`" >&5
5784 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
5785 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
5786   cat >>confdefs.h <<EOF
5787 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
5788 EOF
5789
5790     PLUGINS="${PLUGINS} x11"
5791     LIB_X11="-L$x_libraries -lX11 -lXext"
5792     CFLAGS_X11="-I$x_includes"
5793
5794   CPPFLAGS=$saved_CPPFLAGS
5795 fi
5796 done
5797
5798 fi
5799
5800 # Check whether --enable-xvideo or --disable-xvideo was given.
5801 if test "${enable_xvideo+set}" = set; then
5802   enableval="$enable_xvideo"
5803
5804 fi;
5805 if test x$enable_xvideo != xno; then
5806   if test x$x_includes = xNONE; then
5807     x_includes=/usr/X11R6/include
5808   fi
5809   if test x$x_libraries = xNONE; then
5810     x_libraries=/usr/X11R6/lib
5811   fi
5812   saved_CPPFLAGS=$CPPFLAGS
5813   CPPFLAGS="$CPPFLAGS -I$x_includes"
5814
5815 for ac_header in X11/extensions/Xv.h
5816 do
5817 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
5818 echo "$as_me:5818: checking for $ac_header" >&5
5819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5820 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
5821   echo $ECHO_N "(cached) $ECHO_C" >&6
5822 else
5823   cat >conftest.$ac_ext <<_ACEOF
5824 #line 5824 "configure"
5825 #include "confdefs.h"
5826 #include <$ac_header>
5827 _ACEOF
5828 if { (eval echo "$as_me:5828: \"$ac_cpp conftest.$ac_ext\"") >&5
5829   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5830   ac_status=$?
5831   egrep -v '^ *\+' conftest.er1 >conftest.err
5832   rm -f conftest.er1
5833   cat conftest.err >&5
5834   echo "$as_me:5834: \$? = $ac_status" >&5
5835   (exit $ac_status); } >/dev/null; then
5836   if test -s conftest.err; then
5837     ac_cpp_err=$ac_c_preproc_warn_flag
5838   else
5839     ac_cpp_err=
5840   fi
5841 else
5842   ac_cpp_err=yes
5843 fi
5844 if test -z "$ac_cpp_err"; then
5845   eval "$ac_ac_Header=yes"
5846 else
5847   echo "$as_me: failed program was:" >&5
5848   cat conftest.$ac_ext >&5
5849   eval "$ac_ac_Header=no"
5850 fi
5851 rm -f conftest.err conftest.$ac_ext
5852 fi
5853 echo "$as_me:5853: result: `eval echo '${'$ac_ac_Header'}'`" >&5
5854 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
5855 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
5856   cat >>confdefs.h <<EOF
5857 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
5858 EOF
5859
5860     PLUGINS="${PLUGINS} xvideo"
5861     LIB_XVIDEO="-L$x_libraries -lX11 -lXext -lXv"
5862     CFLAGS_X11="-I$x_includes"
5863
5864   CPPFLAGS=$saved_CPPFLAGS
5865 fi
5866 done
5867
5868 fi
5869
5870 # Check whether --enable-alsa or --disable-alsa was given.
5871 if test "${enable_alsa+set}" = set; then
5872   enableval="$enable_alsa"
5873   if test x$enable_alsa = xyes; then echo "$as_me:5873: checking for sys/asoundlib.h" >&5
5874 echo $ECHO_N "checking for sys/asoundlib.h... $ECHO_C" >&6
5875 if test "${ac_cv_header_sys_asoundlib_h+set}" = set; then
5876   echo $ECHO_N "(cached) $ECHO_C" >&6
5877 else
5878   cat >conftest.$ac_ext <<_ACEOF
5879 #line 5879 "configure"
5880 #include "confdefs.h"
5881 #include <sys/asoundlib.h>
5882 _ACEOF
5883 if { (eval echo "$as_me:5883: \"$ac_cpp conftest.$ac_ext\"") >&5
5884   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5885   ac_status=$?
5886   egrep -v '^ *\+' conftest.er1 >conftest.err
5887   rm -f conftest.er1
5888   cat conftest.err >&5
5889   echo "$as_me:5889: \$? = $ac_status" >&5
5890   (exit $ac_status); } >/dev/null; then
5891   if test -s conftest.err; then
5892     ac_cpp_err=$ac_c_preproc_warn_flag
5893   else
5894     ac_cpp_err=
5895   fi
5896 else
5897   ac_cpp_err=yes
5898 fi
5899 if test -z "$ac_cpp_err"; then
5900   ac_cv_header_sys_asoundlib_h=yes
5901 else
5902   echo "$as_me: failed program was:" >&5
5903   cat conftest.$ac_ext >&5
5904   ac_cv_header_sys_asoundlib_h=no
5905 fi
5906 rm -f conftest.err conftest.$ac_ext
5907 fi
5908 echo "$as_me:5908: result: $ac_cv_header_sys_asoundlib_h" >&5
5909 echo "${ECHO_T}$ac_cv_header_sys_asoundlib_h" >&6
5910 if test $ac_cv_header_sys_asoundlib_h = yes; then
5911   echo "$as_me:5911: checking for main in -lasound" >&5
5912 echo $ECHO_N "checking for main in -lasound... $ECHO_C" >&6
5913 if test "${ac_cv_lib_asound_main+set}" = set; then
5914   echo $ECHO_N "(cached) $ECHO_C" >&6
5915 else
5916   ac_check_lib_save_LIBS=$LIBS
5917 LIBS="-lasound  $LIBS"
5918 cat >conftest.$ac_ext <<_ACEOF
5919 #line 5919 "configure"
5920 #include "confdefs.h"
5921
5922 int
5923 main ()
5924 {
5925 main ();
5926   ;
5927   return 0;
5928 }
5929 _ACEOF
5930 rm -f conftest.$ac_objext conftest$ac_exeext
5931 if { (eval echo "$as_me:5931: \"$ac_link\"") >&5
5932   (eval $ac_link) 2>&5
5933   ac_status=$?
5934   echo "$as_me:5934: \$? = $ac_status" >&5
5935   (exit $ac_status); } &&
5936          { ac_try='test -s conftest$ac_exeext'
5937   { (eval echo "$as_me:5937: \"$ac_try\"") >&5
5938   (eval $ac_try) 2>&5
5939   ac_status=$?
5940   echo "$as_me:5940: \$? = $ac_status" >&5
5941   (exit $ac_status); }; }; then
5942   ac_cv_lib_asound_main=yes
5943 else
5944   echo "$as_me: failed program was:" >&5
5945 cat conftest.$ac_ext >&5
5946 ac_cv_lib_asound_main=no
5947 fi
5948 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5949 LIBS=$ac_check_lib_save_LIBS
5950 fi
5951 echo "$as_me:5951: result: $ac_cv_lib_asound_main" >&5
5952 echo "${ECHO_T}$ac_cv_lib_asound_main" >&6
5953 if test $ac_cv_lib_asound_main = yes; then
5954   have_alsa="true"
5955 else
5956   have_alsa="false"
5957 fi
5958
5959 else
5960   have_alsa="false"
5961 fi
5962  if test x$have_alsa = xtrue; then
5963      PLUGINS="${PLUGINS} alsa"
5964      LIB_ALSA="-lasound"
5965    fi; fi
5966 fi;
5967
5968 fi
5969
5970 ac_config_files="$ac_config_files Makefile.opts include/config.h"
5971 cat >confcache <<\_ACEOF
5972 # This file is a shell script that caches the results of configure
5973 # tests run on this system so they can be shared between configure
5974 # scripts and configure runs, see configure's option --config-cache.
5975 # It is not useful on other systems.  If it contains results you don't
5976 # want to keep, you may remove or edit it.
5977 #
5978 # config.status only pays attention to the cache file if you give it
5979 # the --recheck option to rerun configure.
5980 #
5981 # `ac_cv_env_foo' variables (set or unset) will be overriden when
5982 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5983 # following values.
5984
5985 _ACEOF
5986
5987 # The following way of writing the cache mishandles newlines in values,
5988 # but we know of no workaround that is simple, portable, and efficient.
5989 # So, don't put newlines in cache variables' values.
5990 # Ultrix sh set writes to stderr and can't be redirected directly,
5991 # and sets the high bit in the cache file unless we assign to the vars.
5992 {
5993   (set) 2>&1 |
5994     case `(ac_space=' '; set | grep ac_space) 2>&1` in
5995     *ac_space=\ *)
5996       # `set' does not quote correctly, so add quotes (double-quote
5997       # substitution turns \\\\ into \\, and sed turns \\ into \).
5998       sed -n \
5999         "s/'/'\\\\''/g;
6000           s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6001       ;;
6002     *)
6003       # `set' quotes correctly as required by POSIX, so do not add quotes.
6004       sed -n \
6005         "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6006       ;;
6007     esac;
6008 } |
6009   sed '
6010      t clear
6011      : clear
6012      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6013      t end
6014      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6015      : end' >>confcache
6016 if cmp -s $cache_file confcache; then :; else
6017   if test -w $cache_file; then
6018     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6019     cat confcache >$cache_file
6020   else
6021     echo "not updating unwritable cache $cache_file"
6022   fi
6023 fi
6024 rm -f confcache
6025
6026 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6027 # Let make expand exec_prefix.
6028 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6029
6030 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6031 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6032 # trailing colons and then remove the whole line if VPATH becomes empty
6033 # (actually we leave an empty line to preserve line numbers).
6034 if test "x$srcdir" = x.; then
6035   ac_vpsub='/^[         ]*VPATH[        ]*=/{
6036 s/:*\$(srcdir):*/:/;
6037 s/:*\${srcdir}:*/:/;
6038 s/:*@srcdir@:*/:/;
6039 s/^\([^=]*=[    ]*\):*/\1/;
6040 s/:*$//;
6041 s/^[^=]*=[      ]*$//;
6042 }'
6043 fi
6044
6045 DEFS=-DHAVE_CONFIG_H
6046
6047 : ${CONFIG_STATUS=./config.status}
6048 ac_clean_files_save=$ac_clean_files
6049 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6050 { echo "$as_me:6050: creating $CONFIG_STATUS" >&5
6051 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6052 cat >$CONFIG_STATUS <<_ACEOF
6053 #! $SHELL
6054 # Generated automatically by configure.
6055 # Run this file to recreate the current configuration.
6056 # Compiler output produced by configure, useful for debugging
6057 # configure, is in config.log if it exists.
6058
6059 debug=false
6060 SHELL=\${CONFIG_SHELL-$SHELL}
6061 ac_cs_invocation="\$0 \$@"
6062
6063 _ACEOF
6064
6065 cat >>$CONFIG_STATUS <<\_ACEOF
6066 # Be Bourne compatible
6067 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6068   emulate sh
6069   NULLCMD=:
6070 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6071   set -o posix
6072 fi
6073
6074 # Name of the executable.
6075 as_me=`echo "$0" |sed 's,.*[\\/],,'`
6076
6077 if expr a : '\(a\)' >/dev/null 2>&1; then
6078   as_expr=expr
6079 else
6080   as_expr=false
6081 fi
6082
6083 rm -f conf$$ conf$$.exe conf$$.file
6084 echo >conf$$.file
6085 if ln -s conf$$.file conf$$ 2>/dev/null; then
6086   # We could just check for DJGPP; but this test a) works b) is more generic
6087   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6088   if test -f conf$$.exe; then
6089     # Don't use ln at all; we don't have any links
6090     as_ln_s='cp -p'
6091   else
6092     as_ln_s='ln -s'
6093   fi
6094 elif ln conf$$.file conf$$ 2>/dev/null; then
6095   as_ln_s=ln
6096 else
6097   as_ln_s='cp -p'
6098 fi
6099 rm -f conf$$ conf$$.exe conf$$.file
6100
6101 as_executable_p="test -f"
6102
6103 # Support unset when possible.
6104 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6105   as_unset=unset
6106 else
6107   as_unset=false
6108 fi
6109
6110 # NLS nuisances.
6111 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
6112 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
6113 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
6114 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
6115 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
6116 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
6117 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
6118 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
6119
6120 # IFS
6121 # We need space, tab and new line, in precisely that order.
6122 as_nl='
6123 '
6124 IFS="   $as_nl"
6125
6126 # CDPATH.
6127 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
6128
6129 exec 6>&1
6130
6131 _ACEOF
6132
6133 # Files that config.status was made for.
6134 if test -n "$ac_config_files"; then
6135   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6136 fi
6137
6138 if test -n "$ac_config_headers"; then
6139   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6140 fi
6141
6142 if test -n "$ac_config_links"; then
6143   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6144 fi
6145
6146 if test -n "$ac_config_commands"; then
6147   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6148 fi
6149
6150 cat >>$CONFIG_STATUS <<\EOF
6151
6152 ac_cs_usage="\
6153 \`$as_me' instantiates files from templates according to the
6154 current configuration.
6155
6156 Usage: $0 [OPTIONS] [FILE]...
6157
6158   -h, --help       print this help, then exit
6159   -V, --version    print version number, then exit
6160   -d, --debug      don't remove temporary files
6161       --recheck    update $as_me by reconfiguring in the same conditions
6162   --file=FILE[:TEMPLATE]
6163                    instantiate the configuration file FILE
6164   --header=FILE[:TEMPLATE]
6165                    instantiate the configuration header FILE
6166
6167 Configuration files:
6168 $config_files
6169
6170 Configuration headers:
6171 $config_headers
6172
6173 Report bugs to <bug-autoconf@gnu.org>."
6174 EOF
6175
6176 cat >>$CONFIG_STATUS <<EOF
6177 ac_cs_version="\\
6178 config.status
6179 configured by $0, generated by GNU Autoconf 2.50,
6180   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6181
6182 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6183 Free Software Foundation, Inc.
6184 This config.status script is free software; the Free Software Foundation
6185 gives unlimited permission to copy, distribute and modify it."
6186 srcdir=$srcdir
6187 INSTALL="$INSTALL"
6188 EOF
6189
6190 cat >>$CONFIG_STATUS <<\EOF
6191 # If no file are specified by the user, then we need to provide default
6192 # value.  By we need to know if files were specified by the user.
6193 ac_need_defaults=:
6194 while test $# != 0
6195 do
6196   case $1 in
6197   --*=*)
6198     ac_option=`expr "x$1" : 'x\([^=]*\)='`
6199     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6200     shift
6201     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
6202     shift
6203     ;;
6204   -*);;
6205   *) # This is not an option, so the user has probably given explicit
6206      # arguments.
6207      ac_need_defaults=false;;
6208   esac
6209
6210   case $1 in
6211   # Handling of the options.
6212 EOF
6213 cat >>$CONFIG_STATUS <<EOF
6214   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6215     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
6216     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
6217 EOF
6218 cat >>$CONFIG_STATUS <<\EOF
6219   --version | --vers* | -V )
6220     echo "$ac_cs_version"; exit 0 ;;
6221   --he | --h)
6222     # Conflict between --help and --header
6223     { { echo "$as_me:6223: error: ambiguous option: $1
6224 Try \`$0 --help' for more information." >&5
6225 echo "$as_me: error: ambiguous option: $1
6226 Try \`$0 --help' for more information." >&2;}
6227    { (exit 1); exit 1; }; };;
6228   --help | --hel | -h )
6229     echo "$ac_cs_usage"; exit 0 ;;
6230   --debug | --d* | -d )
6231     debug=: ;;
6232   --file | --fil | --fi | --f )
6233     shift
6234     CONFIG_FILES="$CONFIG_FILES $1"
6235     ac_need_defaults=false;;
6236   --header | --heade | --head | --hea )
6237     shift
6238     CONFIG_HEADERS="$CONFIG_HEADERS $1"
6239     ac_need_defaults=false;;
6240
6241   # Handling of arguments.
6242   'Makefile.opts' ) CONFIG_FILES="$CONFIG_FILES Makefile.opts" ;;
6243   'include/config.h' ) CONFIG_FILES="$CONFIG_FILES include/config.h" ;;
6244   'include/defs.h' ) CONFIG_HEADERS="$CONFIG_HEADERS include/defs.h" ;;
6245
6246   # This is an error.
6247   -*) { { echo "$as_me:6247: error: unrecognized option: $1
6248 Try \`$0 --help' for more information." >&5
6249 echo "$as_me: error: unrecognized option: $1
6250 Try \`$0 --help' for more information." >&2;}
6251    { (exit 1); exit 1; }; } ;;
6252   *) { { echo "$as_me:6252: error: invalid argument: $1" >&5
6253 echo "$as_me: error: invalid argument: $1" >&2;}
6254    { (exit 1); exit 1; }; };;
6255   esac
6256   shift
6257 done
6258
6259 exec 5>>config.log
6260 cat >&5 << _ACEOF
6261
6262 ## ----------------------- ##
6263 ## Running config.status.  ##
6264 ## ----------------------- ##
6265
6266 This file was extended by $as_me 2.50, executed with
6267   > $ac_cs_invocation
6268 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6269
6270 _ACEOF
6271 EOF
6272
6273 cat >>$CONFIG_STATUS <<\EOF
6274 # If the user did not use the arguments to specify the items to instantiate,
6275 # then the envvar interface is used.  Set only those that are not.
6276 # We use the long form for the default assignment because of an extremely
6277 # bizarre bug on SunOS 4.1.3.
6278 if $ac_need_defaults; then
6279   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6280   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6281 fi
6282
6283 # Create a temporary directory, and hook for its removal unless debugging.
6284 $debug ||
6285 {
6286   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6287   trap '{ (exit $?); exit $?; }' 1 2 13 15
6288 }
6289
6290 # Create a (secure) tmp directory for tmp files.
6291 : ${TMPDIR=/tmp}
6292 {
6293   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
6294   test -n "$tmp" && test -d "$tmp"
6295 }  ||
6296 {
6297   tmp=$TMPDIR/cs$$-$RANDOM
6298   (umask 077 && mkdir $tmp)
6299 } ||
6300 {
6301    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
6302    { (exit 1); exit 1; }
6303 }
6304
6305 EOF
6306
6307 cat >>$CONFIG_STATUS <<EOF
6308
6309 #
6310 # CONFIG_FILES section.
6311 #
6312
6313 # No need to generate the scripts if there are no CONFIG_FILES.
6314 # This happens for instance when ./config.status config.h
6315 if test -n "\$CONFIG_FILES"; then
6316   # Protect against being on the right side of a sed subst in config.status.
6317   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6318    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6319 s,@SHELL@,$SHELL,;t t
6320 s,@exec_prefix@,$exec_prefix,;t t
6321 s,@prefix@,$prefix,;t t
6322 s,@program_transform_name@,$program_transform_name,;t t
6323 s,@bindir@,$bindir,;t t
6324 s,@sbindir@,$sbindir,;t t
6325 s,@libexecdir@,$libexecdir,;t t
6326 s,@datadir@,$datadir,;t t
6327 s,@sysconfdir@,$sysconfdir,;t t
6328 s,@sharedstatedir@,$sharedstatedir,;t t
6329 s,@localstatedir@,$localstatedir,;t t
6330 s,@libdir@,$libdir,;t t
6331 s,@includedir@,$includedir,;t t
6332 s,@oldincludedir@,$oldincludedir,;t t
6333 s,@infodir@,$infodir,;t t
6334 s,@mandir@,$mandir,;t t
6335 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6336 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6337 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6338 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6339 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6340 s,@ECHO_C@,$ECHO_C,;t t
6341 s,@ECHO_N@,$ECHO_N,;t t
6342 s,@ECHO_T@,$ECHO_T,;t t
6343 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6344 s,@DEFS@,$DEFS,;t t
6345 s,@LIBS@,$LIBS,;t t
6346 s,@build@,$build,;t t
6347 s,@build_cpu@,$build_cpu,;t t
6348 s,@build_vendor@,$build_vendor,;t t
6349 s,@build_os@,$build_os,;t t
6350 s,@host@,$host,;t t
6351 s,@host_cpu@,$host_cpu,;t t
6352 s,@host_vendor@,$host_vendor,;t t
6353 s,@host_os@,$host_os,;t t
6354 s,@VLC_VERSION@,$VLC_VERSION,;t t
6355 s,@VLC_CODENAME@,$VLC_CODENAME,;t t
6356 s,@SET_MAKE@,$SET_MAKE,;t t
6357 s,@CC@,$CC,;t t
6358 s,@CFLAGS@,$CFLAGS,;t t
6359 s,@LDFLAGS@,$LDFLAGS,;t t
6360 s,@CPPFLAGS@,$CPPFLAGS,;t t
6361 s,@ac_ct_CC@,$ac_ct_CC,;t t
6362 s,@EXEEXT@,$EXEEXT,;t t
6363 s,@OBJEXT@,$OBJEXT,;t t
6364 s,@CPP@,$CPP,;t t
6365 s,@RANLIB@,$RANLIB,;t t
6366 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
6367 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6368 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6369 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6370 s,@GETOPT@,$GETOPT,;t t
6371 s,@ESD_CONFIG@,$ESD_CONFIG,;t t
6372 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
6373 s,@SYS@,$SYS,;t t
6374 s,@ARCH@,$ARCH,;t t
6375 s,@PLUGINS@,$PLUGINS,;t t
6376 s,@BUILTINS@,$BUILTINS,;t t
6377 s,@ALIASES@,$ALIASES,;t t
6378 s,@DEFINE@,$DEFINE,;t t
6379 s,@INCLUDE@,$INCLUDE,;t t
6380 s,@DEBUG@,$DEBUG,;t t
6381 s,@STATS@,$STATS,;t t
6382 s,@TRACE@,$TRACE,;t t
6383 s,@OPTIMS@,$OPTIMS,;t t
6384 s,@CSS@,$CSS,;t t
6385 s,@MOC@,$MOC,;t t
6386 s,@LCFLAGS@,$LCFLAGS,;t t
6387 s,@LIB@,$LIB,;t t
6388 s,@LIB_ALSA@,$LIB_ALSA,;t t
6389 s,@LIB_BEOS@,$LIB_BEOS,;t t
6390 s,@LIB_DARWIN@,$LIB_DARWIN,;t t
6391 s,@LIB_ESD@,$LIB_ESD,;t t
6392 s,@LIB_GGI@,$LIB_GGI,;t t
6393 s,@LIB_GLIDE@,$LIB_GLIDE,;t t
6394 s,@LIB_GNOME@,$LIB_GNOME,;t t
6395 s,@LIB_GTK@,$LIB_GTK,;t t
6396 s,@LIB_IDCTALTIVEC@,$LIB_IDCTALTIVEC,;t t
6397 s,@LIB_MACOSX@,$LIB_MACOSX,;t t
6398 s,@LIB_NCURSES@,$LIB_NCURSES,;t t
6399 s,@LIB_QT@,$LIB_QT,;t t
6400 s,@LIB_TS@,$LIB_TS,;t t
6401 s,@LIB_SDL@,$LIB_SDL,;t t
6402 s,@LIB_X11@,$LIB_X11,;t t
6403 s,@LIB_XVIDEO@,$LIB_XVIDEO,;t t
6404 s,@LIB_YUV@,$LIB_YUV,;t t
6405 s,@CFLAGS_VLC@,$CFLAGS_VLC,;t t
6406 s,@CFLAGS_GTK@,$CFLAGS_GTK,;t t
6407 s,@CFLAGS_X11@,$CFLAGS_X11,;t t
6408 CEOF
6409
6410 EOF
6411
6412   cat >>$CONFIG_STATUS <<\EOF
6413   # Split the substitutions into bite-sized pieces for seds with
6414   # small command number limits, like on Digital OSF/1 and HP-UX.
6415   ac_max_sed_lines=48
6416   ac_sed_frag=1 # Number of current file.
6417   ac_beg=1 # First line for current file.
6418   ac_end=$ac_max_sed_lines # Line after last line for current file.
6419   ac_more_lines=:
6420   ac_sed_cmds=
6421   while $ac_more_lines; do
6422     if test $ac_beg -gt 1; then
6423       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6424     else
6425       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6426     fi
6427     if test ! -s $tmp/subs.frag; then
6428       ac_more_lines=false
6429     else
6430       # The purpose of the label and of the branching condition is to
6431       # speed up the sed processing (if there are no `@' at all, there
6432       # is no need to browse any of the substitutions).
6433       # These are the two extra sed commands mentioned above.
6434       (echo ':t
6435   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6436       if test -z "$ac_sed_cmds"; then
6437         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6438       else
6439         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6440       fi
6441       ac_sed_frag=`expr $ac_sed_frag + 1`
6442       ac_beg=$ac_end
6443       ac_end=`expr $ac_end + $ac_max_sed_lines`
6444     fi
6445   done
6446   if test -z "$ac_sed_cmds"; then
6447     ac_sed_cmds=cat
6448   fi
6449 fi # test -n "$CONFIG_FILES"
6450
6451 EOF
6452 cat >>$CONFIG_STATUS <<\EOF
6453 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6454   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6455   case $ac_file in
6456   - | *:- | *:-:* ) # input from stdin
6457         cat >$tmp/stdin
6458         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6459         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6460   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6461         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6462   * )   ac_file_in=$ac_file.in ;;
6463   esac
6464
6465   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6466   ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6467          X"$ac_file" : 'X\(//\)[^/]' \| \
6468          X"$ac_file" : 'X\(//\)$' \| \
6469          X"$ac_file" : 'X\(/\)' \| \
6470          .     : '\(.\)' 2>/dev/null ||
6471 echo X"$ac_file" |
6472     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6473           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6474           /^X\(\/\/\)$/{ s//\1/; q; }
6475           /^X\(\/\).*/{ s//\1/; q; }
6476           s/.*/./; q'`
6477   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6478     { case "$ac_dir" in
6479   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
6480   *)                      as_incr_dir=.;;
6481 esac
6482 as_dummy="$ac_dir"
6483 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
6484   case $as_mkdir_dir in
6485     # Skip DOS drivespec
6486     ?:) as_incr_dir=$as_mkdir_dir ;;
6487     *)
6488       as_incr_dir=$as_incr_dir/$as_mkdir_dir
6489       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
6490     ;;
6491   esac
6492 done; }
6493
6494     ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
6495     # A "../" for each directory in $ac_dir_suffix.
6496     ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
6497   else
6498     ac_dir_suffix= ac_dots=
6499   fi
6500
6501   case $srcdir in
6502   .)  ac_srcdir=.
6503       if test -z "$ac_dots"; then
6504          ac_top_srcdir=.
6505       else
6506          ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
6507       fi ;;
6508   [\\/]* | ?:[\\/]* )
6509       ac_srcdir=$srcdir$ac_dir_suffix;
6510       ac_top_srcdir=$srcdir ;;
6511   *) # Relative path.
6512     ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
6513     ac_top_srcdir=$ac_dots$srcdir ;;
6514   esac
6515
6516   case $INSTALL in
6517   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6518   *) ac_INSTALL=$ac_dots$INSTALL ;;
6519   esac
6520
6521   if test x"$ac_file" != x-; then
6522     { echo "$as_me:6522: creating $ac_file" >&5
6523 echo "$as_me: creating $ac_file" >&6;}
6524     rm -f "$ac_file"
6525   fi
6526   # Let's still pretend it is `configure' which instantiates (i.e., don't
6527   # use $as_me), people would be surprised to read:
6528   #    /* config.h.  Generated automatically by config.status.  */
6529   configure_input="Generated automatically from `echo $ac_file_in |
6530                                                  sed 's,.*/,,'` by configure."
6531
6532   # First look for the input files in the build tree, otherwise in the
6533   # src tree.
6534   ac_file_inputs=`IFS=:
6535     for f in $ac_file_in; do
6536       case $f in
6537       -) echo $tmp/stdin ;;
6538       [\\/$]*)
6539          # Absolute (can't be DOS-style, as IFS=:)
6540          test -f "$f" || { { echo "$as_me:6540: error: cannot find input file: $f" >&5
6541 echo "$as_me: error: cannot find input file: $f" >&2;}
6542    { (exit 1); exit 1; }; }
6543          echo $f;;
6544       *) # Relative
6545          if test -f "$f"; then
6546            # Build tree
6547            echo $f
6548          elif test -f "$srcdir/$f"; then
6549            # Source tree
6550            echo $srcdir/$f
6551          else
6552            # /dev/null tree
6553            { { echo "$as_me:6553: error: cannot find input file: $f" >&5
6554 echo "$as_me: error: cannot find input file: $f" >&2;}
6555    { (exit 1); exit 1; }; }
6556          fi;;
6557       esac
6558     done` || { (exit 1); exit 1; }
6559 EOF
6560 cat >>$CONFIG_STATUS <<EOF
6561   sed "$ac_vpsub
6562 $extrasub
6563 EOF
6564 cat >>$CONFIG_STATUS <<\EOF
6565 :t
6566 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6567 s,@configure_input@,$configure_input,;t t
6568 s,@srcdir@,$ac_srcdir,;t t
6569 s,@top_srcdir@,$ac_top_srcdir,;t t
6570 s,@INSTALL@,$ac_INSTALL,;t t
6571 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6572   rm -f $tmp/stdin
6573   if test x"$ac_file" != x-; then
6574     mv $tmp/out $ac_file
6575   else
6576     cat $tmp/out
6577     rm -f $tmp/out
6578   fi
6579
6580 done
6581 EOF
6582 cat >>$CONFIG_STATUS <<\EOF
6583
6584 #
6585 # CONFIG_HEADER section.
6586 #
6587
6588 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6589 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6590 #
6591 # ac_d sets the value in "#define NAME VALUE" lines.
6592 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
6593 ac_dB='[        ].*$,\1#\2'
6594 ac_dC=' '
6595 ac_dD=',;t'
6596 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6597 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
6598 ac_uB='$,\1#\2define\3'
6599 ac_uC=' '
6600 ac_uD=',;t'
6601
6602 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6603   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6604   case $ac_file in
6605   - | *:- | *:-:* ) # input from stdin
6606         cat >$tmp/stdin
6607         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6608         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6609   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6610         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6611   * )   ac_file_in=$ac_file.in ;;
6612   esac
6613
6614   test x"$ac_file" != x- && { echo "$as_me:6614: creating $ac_file" >&5
6615 echo "$as_me: creating $ac_file" >&6;}
6616
6617   # First look for the input files in the build tree, otherwise in the
6618   # src tree.
6619   ac_file_inputs=`IFS=:
6620     for f in $ac_file_in; do
6621       case $f in
6622       -) echo $tmp/stdin ;;
6623       [\\/$]*)
6624          # Absolute (can't be DOS-style, as IFS=:)
6625          test -f "$f" || { { echo "$as_me:6625: error: cannot find input file: $f" >&5
6626 echo "$as_me: error: cannot find input file: $f" >&2;}
6627    { (exit 1); exit 1; }; }
6628          echo $f;;
6629       *) # Relative
6630          if test -f "$f"; then
6631            # Build tree
6632            echo $f
6633          elif test -f "$srcdir/$f"; then
6634            # Source tree
6635            echo $srcdir/$f
6636          else
6637            # /dev/null tree
6638            { { echo "$as_me:6638: error: cannot find input file: $f" >&5
6639 echo "$as_me: error: cannot find input file: $f" >&2;}
6640    { (exit 1); exit 1; }; }
6641          fi;;
6642       esac
6643     done` || { (exit 1); exit 1; }
6644   # Remove the trailing spaces.
6645   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
6646
6647 EOF
6648
6649 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6650 # `conftest.undefs', that substitutes the proper values into
6651 # config.h.in to produce config.h.  The first handles `#define'
6652 # templates, and the second `#undef' templates.
6653 # And first: Protect against being on the right side of a sed subst in
6654 # config.status.  Protect against being in an unquoted here document
6655 # in config.status.
6656 rm -f conftest.defines conftest.undefs
6657 # Using a here document instead of a string reduces the quoting nightmare.
6658 # Putting comments in sed scripts is not portable.
6659 #
6660 # `end' is used to avoid that the second main sed command (meant for
6661 # 0-ary CPP macros) applies to n-ary macro definitions.
6662 # See the Autoconf documentation for `clear'.
6663 cat >confdef2sed.sed <<\EOF
6664 s/[\\&,]/\\&/g
6665 s,[\\$`],\\&,g
6666 t clear
6667 : clear
6668 s,^[    ]*#[    ]*define[       ][      ]*\(\([^        (][^    (]*\)([^)]*)\)[         ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
6669 t end
6670 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6671 : end
6672 EOF
6673 # If some macros were called several times there might be several times
6674 # the same #defines, which is useless.  Nevertheless, we may not want to
6675 # sort them, since we want the *last* AC-DEFINE to be honored.
6676 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6677 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6678 rm -f confdef2sed.sed
6679
6680 # This sed command replaces #undef with comments.  This is necessary, for
6681 # example, in the case of _POSIX_SOURCE, which is predefined and required
6682 # on some systems where configure will not decide to define it.
6683 cat >>conftest.undefs <<\EOF
6684 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6685 EOF
6686
6687 # Break up conftest.defines because some shells have a limit on the size
6688 # of here documents, and old seds have small limits too (100 cmds).
6689 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6690 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6691 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6692 echo '  :' >>$CONFIG_STATUS
6693 rm -f conftest.tail
6694 while grep . conftest.defines >/dev/null
6695 do
6696   # Write a limited-size here document to $tmp/defines.sed.
6697   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6698   # Speed up: don't consider the non `#define' lines.
6699   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
6700   # Work around the forget-to-reset-the-flag bug.
6701   echo 't clr' >>$CONFIG_STATUS
6702   echo ': clr' >>$CONFIG_STATUS
6703   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6704   echo 'CEOF
6705   sed -f $tmp/defines.sed $tmp/in >$tmp/out
6706   rm -f $tmp/in
6707   mv $tmp/out $tmp/in
6708 ' >>$CONFIG_STATUS
6709   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6710   rm -f conftest.defines
6711   mv conftest.tail conftest.defines
6712 done
6713 rm -f conftest.defines
6714 echo '  fi # egrep' >>$CONFIG_STATUS
6715 echo >>$CONFIG_STATUS
6716
6717 # Break up conftest.undefs because some shells have a limit on the size
6718 # of here documents, and old seds have small limits too (100 cmds).
6719 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
6720 rm -f conftest.tail
6721 while grep . conftest.undefs >/dev/null
6722 do
6723   # Write a limited-size here document to $tmp/undefs.sed.
6724   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6725   # Speed up: don't consider the non `#undef'
6726   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
6727   # Work around the forget-to-reset-the-flag bug.
6728   echo 't clr' >>$CONFIG_STATUS
6729   echo ': clr' >>$CONFIG_STATUS
6730   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6731   echo 'CEOF
6732   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6733   rm -f $tmp/in
6734   mv $tmp/out $tmp/in
6735 ' >>$CONFIG_STATUS
6736   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6737   rm -f conftest.undefs
6738   mv conftest.tail conftest.undefs
6739 done
6740 rm -f conftest.undefs
6741
6742 cat >>$CONFIG_STATUS <<\EOF
6743   # Let's still pretend it is `configure' which instantiates (i.e., don't
6744   # use $as_me), people would be surprised to read:
6745   #    /* config.h.  Generated automatically by config.status.  */
6746   if test x"$ac_file" = x-; then
6747     echo "/* Generated automatically by configure.  */" >$tmp/config.h
6748   else
6749     echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
6750   fi
6751   cat $tmp/in >>$tmp/config.h
6752   rm -f $tmp/in
6753   if test x"$ac_file" != x-; then
6754     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
6755       { echo "$as_me:6755: $ac_file is unchanged" >&5
6756 echo "$as_me: $ac_file is unchanged" >&6;}
6757     else
6758       ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6759          X"$ac_file" : 'X\(//\)[^/]' \| \
6760          X"$ac_file" : 'X\(//\)$' \| \
6761          X"$ac_file" : 'X\(/\)' \| \
6762          .     : '\(.\)' 2>/dev/null ||
6763 echo X"$ac_file" |
6764     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6765           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6766           /^X\(\/\/\)$/{ s//\1/; q; }
6767           /^X\(\/\).*/{ s//\1/; q; }
6768           s/.*/./; q'`
6769       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6770         { case "$ac_dir" in
6771   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
6772   *)                      as_incr_dir=.;;
6773 esac
6774 as_dummy="$ac_dir"
6775 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
6776   case $as_mkdir_dir in
6777     # Skip DOS drivespec
6778     ?:) as_incr_dir=$as_mkdir_dir ;;
6779     *)
6780       as_incr_dir=$as_incr_dir/$as_mkdir_dir
6781       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
6782     ;;
6783   esac
6784 done; }
6785
6786       fi
6787       rm -f $ac_file
6788       mv $tmp/config.h $ac_file
6789     fi
6790   else
6791     cat $tmp/config.h
6792     rm -f $tmp/config.h
6793   fi
6794 done
6795 EOF
6796
6797 cat >>$CONFIG_STATUS <<\EOF
6798
6799 { (exit 0); exit 0; }
6800 EOF
6801 chmod +x $CONFIG_STATUS
6802 ac_clean_files=$ac_clean_files_save
6803
6804 # configure is writing to config.log, and then calls config.status.
6805 # config.status does its own redirection, appending to config.log.
6806 # Unfortunately, on DOS this fails, as config.log is still kept open
6807 # by configure, so config.status won't be able to write to it; its
6808 # output is simply discarded.  So we exec the FD to /dev/null,
6809 # effectively closing config.log, so it can be properly (re)opened and
6810 # appended to by config.status.  When coming back to configure, we
6811 # need to make the FD available again.
6812 if test "$no_create" != yes; then
6813   ac_cs_success=:
6814   exec 5>/dev/null
6815   $SHELL $CONFIG_STATUS || ac_cs_success=false
6816   exec 5>>config.log
6817   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6818   # would make configure fail if this is the last instruction.
6819   $ac_cs_success || { (exit 1); exit 1; }
6820 fi
6821
6822 echo "
6823 vlc configuration
6824 -----------------
6825 vlc version           : ${VLC_VERSION}
6826 system                : ${SYS}
6827 architecture          : ${ARCH}
6828 debug mode            : ${DEBUG}
6829 statistics            : ${STATS}
6830 trace mode            : ${TRACE}
6831 optimizations         : ${OPTIMS}
6832 CSS decryption        : ${CSS}
6833 need builtin getopt   : ${GETOPT}
6834 built-in modules      :${BUILTINS}
6835 plugin modules        :${PLUGINS}
6836 vlc aliases           :${ALIASES}
6837
6838 You may now tune Makefile.opts at your convenience."
6839