]> git.sesse.net Git - vlc/blob - configure
* Renamed all tags (eg. v0_2_83 -> 0.2.83).
[vlc] / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13 
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15   --disable-dummy         dummy module (default enabled)"
16 ac_help="$ac_help
17   --disable-null          Null module (default enabled)"
18 ac_help="$ac_help
19   --disable-ppro          Disable PentiumPro optimizations (default enabled for x86)"
20 ac_help="$ac_help
21   --disable-mmx           Disable MMX optimizations (default enabled for x86)"
22 ac_help="$ac_help
23   --enable-altivec        Enable altivec optimizations (default disabled since it is broken)"
24 ac_help="$ac_help
25   --disable-css           Disable DVD CSS decryption (default enabled)"
26 ac_help="$ac_help
27   --enable-debug          Enable debug mode (default disabled)"
28 ac_help="$ac_help
29   --enable-stats          Enable printing of statistics (default disabled)"
30 ac_help="$ac_help
31   --disable-optimizations Disable compiler optimizations (default enabled)"
32 ac_help="$ac_help
33   --disable-dsp           Linux /dev/dsp support (default enabled)"
34 ac_help="$ac_help
35   --enable-esd            Esound library support (default disabled)"
36 ac_help="$ac_help
37   --enable-darwin         Darwin sound support (default disabled)"
38 ac_help="$ac_help
39   --enable-macosx         Mac OS X interface support (default enabled in Mac OS X)"
40 ac_help="$ac_help
41   --enable-fb             Linux framebuffer support (default disabled)"
42 ac_help="$ac_help
43   --with-ggi[=name]       GGI support (default disabled)"
44 ac_help="$ac_help
45   --with-sdl[=name]       SDL support (default enabled)"
46 ac_help="$ac_help
47   --with-glide[=name]     Glide (3dfx) support (default disabled)"
48 ac_help="$ac_help
49   --enable-ncurses        ncurses interface support (default disabled)"
50 ac_help="$ac_help
51   --enable-qt             Qt interface support (default disabled)"
52 ac_help="$ac_help
53   --enable-kde            KDE interface support (default disabled)"
54 ac_help="$ac_help
55   --enable-gnome          Gnome interface support (default disabled)"
56 ac_help="$ac_help
57   --disable-gtk           Gtk+ support (default enabled)"
58 ac_help="$ac_help
59   --disable-x11           X11 support (default enabled)"
60 ac_help="$ac_help
61   --enable-xvideo         XVideo interface support (default disabled)"
62 ac_help="$ac_help
63   --enable-alsa           Alsa sound drivers support (Only for linux) (default disabled)"
64
65 # Initialize some variables set by options.
66 # The variables have the same names as the options, with
67 # dashes changed to underlines.
68 build=NONE
69 cache_file=./config.cache
70 exec_prefix=NONE
71 host=NONE
72 no_create=
73 nonopt=NONE
74 no_recursion=
75 prefix=NONE
76 program_prefix=NONE
77 program_suffix=NONE
78 program_transform_name=s,x,x,
79 silent=
80 site=
81 srcdir=
82 target=NONE
83 verbose=
84 x_includes=NONE
85 x_libraries=NONE
86 bindir='${exec_prefix}/bin'
87 sbindir='${exec_prefix}/sbin'
88 libexecdir='${exec_prefix}/libexec'
89 datadir='${prefix}/share'
90 sysconfdir='${prefix}/etc'
91 sharedstatedir='${prefix}/com'
92 localstatedir='${prefix}/var'
93 libdir='${exec_prefix}/lib'
94 includedir='${prefix}/include'
95 oldincludedir='/usr/include'
96 infodir='${prefix}/info'
97 mandir='${prefix}/man'
98
99 # Initialize some other variables.
100 subdirs=
101 MFLAGS= MAKEFLAGS=
102 SHELL=${CONFIG_SHELL-/bin/sh}
103 # Maximum number of lines to put in a shell here document.
104 ac_max_here_lines=12
105
106 ac_prev=
107 for ac_option
108 do
109
110   # If the previous option needs an argument, assign it.
111   if test -n "$ac_prev"; then
112     eval "$ac_prev=\$ac_option"
113     ac_prev=
114     continue
115   fi
116
117   case "$ac_option" in
118   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
119   *) ac_optarg= ;;
120   esac
121
122   # Accept the important Cygnus configure options, so we can diagnose typos.
123
124   case "$ac_option" in
125
126   -bindir | --bindir | --bindi | --bind | --bin | --bi)
127     ac_prev=bindir ;;
128   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
129     bindir="$ac_optarg" ;;
130
131   -build | --build | --buil | --bui | --bu)
132     ac_prev=build ;;
133   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
134     build="$ac_optarg" ;;
135
136   -cache-file | --cache-file | --cache-fil | --cache-fi \
137   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
138     ac_prev=cache_file ;;
139   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
140   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
141     cache_file="$ac_optarg" ;;
142
143   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
144     ac_prev=datadir ;;
145   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
146   | --da=*)
147     datadir="$ac_optarg" ;;
148
149   -disable-* | --disable-*)
150     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
151     # Reject names that are not valid shell variable names.
152     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
153       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
154     fi
155     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
156     eval "enable_${ac_feature}=no" ;;
157
158   -enable-* | --enable-*)
159     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
160     # Reject names that are not valid shell variable names.
161     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
162       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
163     fi
164     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
165     case "$ac_option" in
166       *=*) ;;
167       *) ac_optarg=yes ;;
168     esac
169     eval "enable_${ac_feature}='$ac_optarg'" ;;
170
171   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
172   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
173   | --exec | --exe | --ex)
174     ac_prev=exec_prefix ;;
175   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
176   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
177   | --exec=* | --exe=* | --ex=*)
178     exec_prefix="$ac_optarg" ;;
179
180   -gas | --gas | --ga | --g)
181     # Obsolete; use --with-gas.
182     with_gas=yes ;;
183
184   -help | --help | --hel | --he)
185     # Omit some internal or obsolete options to make the list less imposing.
186     # This message is too long to be a string in the A/UX 3.1 sh.
187     cat << EOF
188 Usage: configure [options] [host]
189 Options: [defaults in brackets after descriptions]
190 Configuration:
191   --cache-file=FILE       cache test results in FILE
192   --help                  print this message
193   --no-create             do not create output files
194   --quiet, --silent       do not print \`checking...' messages
195   --version               print the version of autoconf that created configure
196 Directory and file names:
197   --prefix=PREFIX         install architecture-independent files in PREFIX
198                           [$ac_default_prefix]
199   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
200                           [same as prefix]
201   --bindir=DIR            user executables in DIR [EPREFIX/bin]
202   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
203   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
204   --datadir=DIR           read-only architecture-independent data in DIR
205                           [PREFIX/share]
206   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
207   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
208                           [PREFIX/com]
209   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
210   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
211   --includedir=DIR        C header files in DIR [PREFIX/include]
212   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
213   --infodir=DIR           info documentation in DIR [PREFIX/info]
214   --mandir=DIR            man documentation in DIR [PREFIX/man]
215   --srcdir=DIR            find the sources in DIR [configure dir or ..]
216   --program-prefix=PREFIX prepend PREFIX to installed program names
217   --program-suffix=SUFFIX append SUFFIX to installed program names
218   --program-transform-name=PROGRAM
219                           run sed PROGRAM on installed program names
220 EOF
221     cat << EOF
222 Host type:
223   --build=BUILD           configure for building on BUILD [BUILD=HOST]
224   --host=HOST             configure for HOST [guessed]
225   --target=TARGET         configure for TARGET [TARGET=HOST]
226 Features and packages:
227   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
228   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
229   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
230   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
231   --x-includes=DIR        X include files are in DIR
232   --x-libraries=DIR       X library files are in DIR
233 EOF
234     if test -n "$ac_help"; then
235       echo "--enable and --with options recognized:$ac_help"
236     fi
237     exit 0 ;;
238
239   -host | --host | --hos | --ho)
240     ac_prev=host ;;
241   -host=* | --host=* | --hos=* | --ho=*)
242     host="$ac_optarg" ;;
243
244   -includedir | --includedir | --includedi | --included | --include \
245   | --includ | --inclu | --incl | --inc)
246     ac_prev=includedir ;;
247   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
248   | --includ=* | --inclu=* | --incl=* | --inc=*)
249     includedir="$ac_optarg" ;;
250
251   -infodir | --infodir | --infodi | --infod | --info | --inf)
252     ac_prev=infodir ;;
253   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
254     infodir="$ac_optarg" ;;
255
256   -libdir | --libdir | --libdi | --libd)
257     ac_prev=libdir ;;
258   -libdir=* | --libdir=* | --libdi=* | --libd=*)
259     libdir="$ac_optarg" ;;
260
261   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
262   | --libexe | --libex | --libe)
263     ac_prev=libexecdir ;;
264   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
265   | --libexe=* | --libex=* | --libe=*)
266     libexecdir="$ac_optarg" ;;
267
268   -localstatedir | --localstatedir | --localstatedi | --localstated \
269   | --localstate | --localstat | --localsta | --localst \
270   | --locals | --local | --loca | --loc | --lo)
271     ac_prev=localstatedir ;;
272   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
273   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
274   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
275     localstatedir="$ac_optarg" ;;
276
277   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
278     ac_prev=mandir ;;
279   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
280     mandir="$ac_optarg" ;;
281
282   -nfp | --nfp | --nf)
283     # Obsolete; use --without-fp.
284     with_fp=no ;;
285
286   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
287   | --no-cr | --no-c)
288     no_create=yes ;;
289
290   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
291   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
292     no_recursion=yes ;;
293
294   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
295   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
296   | --oldin | --oldi | --old | --ol | --o)
297     ac_prev=oldincludedir ;;
298   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
299   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
300   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
301     oldincludedir="$ac_optarg" ;;
302
303   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
304     ac_prev=prefix ;;
305   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
306     prefix="$ac_optarg" ;;
307
308   -program-prefix | --program-prefix | --program-prefi | --program-pref \
309   | --program-pre | --program-pr | --program-p)
310     ac_prev=program_prefix ;;
311   -program-prefix=* | --program-prefix=* | --program-prefi=* \
312   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
313     program_prefix="$ac_optarg" ;;
314
315   -program-suffix | --program-suffix | --program-suffi | --program-suff \
316   | --program-suf | --program-su | --program-s)
317     ac_prev=program_suffix ;;
318   -program-suffix=* | --program-suffix=* | --program-suffi=* \
319   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
320     program_suffix="$ac_optarg" ;;
321
322   -program-transform-name | --program-transform-name \
323   | --program-transform-nam | --program-transform-na \
324   | --program-transform-n | --program-transform- \
325   | --program-transform | --program-transfor \
326   | --program-transfo | --program-transf \
327   | --program-trans | --program-tran \
328   | --progr-tra | --program-tr | --program-t)
329     ac_prev=program_transform_name ;;
330   -program-transform-name=* | --program-transform-name=* \
331   | --program-transform-nam=* | --program-transform-na=* \
332   | --program-transform-n=* | --program-transform-=* \
333   | --program-transform=* | --program-transfor=* \
334   | --program-transfo=* | --program-transf=* \
335   | --program-trans=* | --program-tran=* \
336   | --progr-tra=* | --program-tr=* | --program-t=*)
337     program_transform_name="$ac_optarg" ;;
338
339   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
340   | -silent | --silent | --silen | --sile | --sil)
341     silent=yes ;;
342
343   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
344     ac_prev=sbindir ;;
345   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
346   | --sbi=* | --sb=*)
347     sbindir="$ac_optarg" ;;
348
349   -sharedstatedir | --sharedstatedir | --sharedstatedi \
350   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
351   | --sharedst | --shareds | --shared | --share | --shar \
352   | --sha | --sh)
353     ac_prev=sharedstatedir ;;
354   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
355   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
356   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
357   | --sha=* | --sh=*)
358     sharedstatedir="$ac_optarg" ;;
359
360   -site | --site | --sit)
361     ac_prev=site ;;
362   -site=* | --site=* | --sit=*)
363     site="$ac_optarg" ;;
364
365   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
366     ac_prev=srcdir ;;
367   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
368     srcdir="$ac_optarg" ;;
369
370   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
371   | --syscon | --sysco | --sysc | --sys | --sy)
372     ac_prev=sysconfdir ;;
373   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
374   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
375     sysconfdir="$ac_optarg" ;;
376
377   -target | --target | --targe | --targ | --tar | --ta | --t)
378     ac_prev=target ;;
379   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
380     target="$ac_optarg" ;;
381
382   -v | -verbose | --verbose | --verbos | --verbo | --verb)
383     verbose=yes ;;
384
385   -version | --version | --versio | --versi | --vers)
386     echo "configure generated by autoconf version 2.13"
387     exit 0 ;;
388
389   -with-* | --with-*)
390     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
391     # Reject names that are not valid shell variable names.
392     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
393       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
394     fi
395     ac_package=`echo $ac_package| sed 's/-/_/g'`
396     case "$ac_option" in
397       *=*) ;;
398       *) ac_optarg=yes ;;
399     esac
400     eval "with_${ac_package}='$ac_optarg'" ;;
401
402   -without-* | --without-*)
403     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
404     # Reject names that are not valid shell variable names.
405     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
406       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
407     fi
408     ac_package=`echo $ac_package| sed 's/-/_/g'`
409     eval "with_${ac_package}=no" ;;
410
411   --x)
412     # Obsolete; use --with-x.
413     with_x=yes ;;
414
415   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
416   | --x-incl | --x-inc | --x-in | --x-i)
417     ac_prev=x_includes ;;
418   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
419   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
420     x_includes="$ac_optarg" ;;
421
422   -x-libraries | --x-libraries | --x-librarie | --x-librari \
423   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
424     ac_prev=x_libraries ;;
425   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
426   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
427     x_libraries="$ac_optarg" ;;
428
429   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
430     ;;
431
432   *)
433     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
434       echo "configure: warning: $ac_option: invalid host type" 1>&2
435     fi
436     if test "x$nonopt" != xNONE; then
437       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
438     fi
439     nonopt="$ac_option"
440     ;;
441
442   esac
443 done
444
445 if test -n "$ac_prev"; then
446   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
447 fi
448
449 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
450
451 # File descriptor usage:
452 # 0 standard input
453 # 1 file creation
454 # 2 errors and warnings
455 # 3 some systems may open it to /dev/tty
456 # 4 used on the Kubota Titan
457 # 6 checking for... messages and results
458 # 5 compiler messages saved in config.log
459 if test "$silent" = yes; then
460   exec 6>/dev/null
461 else
462   exec 6>&1
463 fi
464 exec 5>./config.log
465
466 echo "\
467 This file contains any messages produced by compilers while
468 running configure, to aid debugging if configure makes a mistake.
469 " 1>&5
470
471 # Strip out --no-create and --no-recursion so they do not pile up.
472 # Also quote any args containing shell metacharacters.
473 ac_configure_args=
474 for ac_arg
475 do
476   case "$ac_arg" in
477   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
478   | --no-cr | --no-c) ;;
479   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
480   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
481   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
482   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
483   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
484   esac
485 done
486
487 # NLS nuisances.
488 # Only set these to C if already set.  These must not be set unconditionally
489 # because not all systems understand e.g. LANG=C (notably SCO).
490 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
491 # Non-C LC_CTYPE values break the ctype check.
492 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
493 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
494 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
495 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
496
497 # confdefs.h avoids OS command line length limits that DEFS can exceed.
498 rm -rf conftest* confdefs.h
499 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
500 echo > confdefs.h
501
502 # A filename unique to this package, relative to the directory that
503 # configure is in, which we can look for to find out if srcdir is correct.
504 ac_unique_file=src/interface/main.c
505
506 # Find the source files, if location was not specified.
507 if test -z "$srcdir"; then
508   ac_srcdir_defaulted=yes
509   # Try the directory containing this script, then its parent.
510   ac_prog=$0
511   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
512   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
513   srcdir=$ac_confdir
514   if test ! -r $srcdir/$ac_unique_file; then
515     srcdir=..
516   fi
517 else
518   ac_srcdir_defaulted=no
519 fi
520 if test ! -r $srcdir/$ac_unique_file; then
521   if test "$ac_srcdir_defaulted" = yes; then
522     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
523   else
524     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
525   fi
526 fi
527 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
528
529 # Prefer explicitly selected file to automatically selected ones.
530 if test -z "$CONFIG_SITE"; then
531   if test "x$prefix" != xNONE; then
532     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
533   else
534     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
535   fi
536 fi
537 for ac_site_file in $CONFIG_SITE; do
538   if test -r "$ac_site_file"; then
539     echo "loading site script $ac_site_file"
540     . "$ac_site_file"
541   fi
542 done
543
544 if test -r "$cache_file"; then
545   echo "loading cache $cache_file"
546   . $cache_file
547 else
548   echo "creating cache $cache_file"
549   > $cache_file
550 fi
551
552 ac_ext=c
553 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
554 ac_cpp='$CPP $CPPFLAGS'
555 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
556 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
557 cross_compiling=$ac_cv_prog_cc_cross
558
559 ac_exeext=
560 ac_objext=o
561 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
562   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
563   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
564     ac_n= ac_c='
565 ' ac_t='        '
566   else
567     ac_n=-n ac_c= ac_t=
568   fi
569 else
570   ac_n= ac_c='\c' ac_t=
571 fi
572
573
574
575
576 ac_aux_dir=
577 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
578   if test -f $ac_dir/install-sh; then
579     ac_aux_dir=$ac_dir
580     ac_install_sh="$ac_aux_dir/install-sh -c"
581     break
582   elif test -f $ac_dir/install.sh; then
583     ac_aux_dir=$ac_dir
584     ac_install_sh="$ac_aux_dir/install.sh -c"
585     break
586   fi
587 done
588 if test -z "$ac_aux_dir"; then
589   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
590 fi
591 ac_config_guess=$ac_aux_dir/config.guess
592 ac_config_sub=$ac_aux_dir/config.sub
593 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
594
595
596 # Make sure we can run config.sub.
597 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
598 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
599 fi
600
601 echo $ac_n "checking host system type""... $ac_c" 1>&6
602 echo "configure:603: checking host system type" >&5
603
604 host_alias=$host
605 case "$host_alias" in
606 NONE)
607   case $nonopt in
608   NONE)
609     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
610     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
611     fi ;;
612   *) host_alias=$nonopt ;;
613   esac ;;
614 esac
615
616 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
617 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
618 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
619 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
620 echo "$ac_t""$host" 1>&6
621
622
623 VLC_VERSION=0.2.72
624
625 VLC_CODENAME=Ourumov
626
627
628 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
629 echo "configure:630: checking whether ${MAKE-make} sets \${MAKE}" >&5
630 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
631 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
632   echo $ac_n "(cached) $ac_c" 1>&6
633 else
634   cat > conftestmake <<\EOF
635 all:
636         @echo 'ac_maketemp="${MAKE}"'
637 EOF
638 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
639 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
640 if test -n "$ac_maketemp"; then
641   eval ac_cv_prog_make_${ac_make}_set=yes
642 else
643   eval ac_cv_prog_make_${ac_make}_set=no
644 fi
645 rm -f conftestmake
646 fi
647 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
648   echo "$ac_t""yes" 1>&6
649   SET_MAKE=
650 else
651   echo "$ac_t""no" 1>&6
652   SET_MAKE="MAKE=${MAKE-make}"
653 fi
654
655 if test -z "$CC"; then
656   # Extract the first word of "gcc", so it can be a program name with args.
657 set dummy gcc; ac_word=$2
658 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
659 echo "configure:660: checking for $ac_word" >&5
660 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
661   echo $ac_n "(cached) $ac_c" 1>&6
662 else
663   if test -n "$CC"; then
664   ac_cv_prog_CC="$CC" # Let the user override the test.
665 else
666   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
667   ac_dummy="$PATH"
668   for ac_dir in $ac_dummy; do
669     test -z "$ac_dir" && ac_dir=.
670     if test -f $ac_dir/$ac_word; then
671       ac_cv_prog_CC="gcc"
672       break
673     fi
674   done
675   IFS="$ac_save_ifs"
676 fi
677 fi
678 CC="$ac_cv_prog_CC"
679 if test -n "$CC"; then
680   echo "$ac_t""$CC" 1>&6
681 else
682   echo "$ac_t""no" 1>&6
683 fi
684
685 if test -z "$CC"; then
686   # Extract the first word of "cc", so it can be a program name with args.
687 set dummy cc; ac_word=$2
688 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
689 echo "configure:690: checking for $ac_word" >&5
690 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
691   echo $ac_n "(cached) $ac_c" 1>&6
692 else
693   if test -n "$CC"; then
694   ac_cv_prog_CC="$CC" # Let the user override the test.
695 else
696   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
697   ac_prog_rejected=no
698   ac_dummy="$PATH"
699   for ac_dir in $ac_dummy; do
700     test -z "$ac_dir" && ac_dir=.
701     if test -f $ac_dir/$ac_word; then
702       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
703         ac_prog_rejected=yes
704         continue
705       fi
706       ac_cv_prog_CC="cc"
707       break
708     fi
709   done
710   IFS="$ac_save_ifs"
711 if test $ac_prog_rejected = yes; then
712   # We found a bogon in the path, so make sure we never use it.
713   set dummy $ac_cv_prog_CC
714   shift
715   if test $# -gt 0; then
716     # We chose a different compiler from the bogus one.
717     # However, it has the same basename, so the bogon will be chosen
718     # first if we set CC to just the basename; use the full file name.
719     shift
720     set dummy "$ac_dir/$ac_word" "$@"
721     shift
722     ac_cv_prog_CC="$@"
723   fi
724 fi
725 fi
726 fi
727 CC="$ac_cv_prog_CC"
728 if test -n "$CC"; then
729   echo "$ac_t""$CC" 1>&6
730 else
731   echo "$ac_t""no" 1>&6
732 fi
733
734   if test -z "$CC"; then
735     case "`uname -s`" in
736     *win32* | *WIN32*)
737       # Extract the first word of "cl", so it can be a program name with args.
738 set dummy cl; ac_word=$2
739 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
740 echo "configure:741: checking for $ac_word" >&5
741 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
742   echo $ac_n "(cached) $ac_c" 1>&6
743 else
744   if test -n "$CC"; then
745   ac_cv_prog_CC="$CC" # Let the user override the test.
746 else
747   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
748   ac_dummy="$PATH"
749   for ac_dir in $ac_dummy; do
750     test -z "$ac_dir" && ac_dir=.
751     if test -f $ac_dir/$ac_word; then
752       ac_cv_prog_CC="cl"
753       break
754     fi
755   done
756   IFS="$ac_save_ifs"
757 fi
758 fi
759 CC="$ac_cv_prog_CC"
760 if test -n "$CC"; then
761   echo "$ac_t""$CC" 1>&6
762 else
763   echo "$ac_t""no" 1>&6
764 fi
765  ;;
766     esac
767   fi
768   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
769 fi
770
771 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
772 echo "configure:773: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
773
774 ac_ext=c
775 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
776 ac_cpp='$CPP $CPPFLAGS'
777 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
778 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
779 cross_compiling=$ac_cv_prog_cc_cross
780
781 cat > conftest.$ac_ext << EOF
782
783 #line 784 "configure"
784 #include "confdefs.h"
785
786 main(){return(0);}
787 EOF
788 if { (eval echo configure:789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
789   ac_cv_prog_cc_works=yes
790   # If we can't run a trivial program, we are probably using a cross compiler.
791   if (./conftest; exit) 2>/dev/null; then
792     ac_cv_prog_cc_cross=no
793   else
794     ac_cv_prog_cc_cross=yes
795   fi
796 else
797   echo "configure: failed program was:" >&5
798   cat conftest.$ac_ext >&5
799   ac_cv_prog_cc_works=no
800 fi
801 rm -fr conftest*
802 ac_ext=c
803 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
804 ac_cpp='$CPP $CPPFLAGS'
805 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
806 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
807 cross_compiling=$ac_cv_prog_cc_cross
808
809 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
810 if test $ac_cv_prog_cc_works = no; then
811   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
812 fi
813 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
814 echo "configure:815: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
815 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
816 cross_compiling=$ac_cv_prog_cc_cross
817
818 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
819 echo "configure:820: checking whether we are using GNU C" >&5
820 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
821   echo $ac_n "(cached) $ac_c" 1>&6
822 else
823   cat > conftest.c <<EOF
824 #ifdef __GNUC__
825   yes;
826 #endif
827 EOF
828 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
829   ac_cv_prog_gcc=yes
830 else
831   ac_cv_prog_gcc=no
832 fi
833 fi
834
835 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
836
837 if test $ac_cv_prog_gcc = yes; then
838   GCC=yes
839 else
840   GCC=
841 fi
842
843 ac_test_CFLAGS="${CFLAGS+set}"
844 ac_save_CFLAGS="$CFLAGS"
845 CFLAGS=
846 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
847 echo "configure:848: checking whether ${CC-cc} accepts -g" >&5
848 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
849   echo $ac_n "(cached) $ac_c" 1>&6
850 else
851   echo 'void f(){}' > conftest.c
852 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
853   ac_cv_prog_cc_g=yes
854 else
855   ac_cv_prog_cc_g=no
856 fi
857 rm -f conftest*
858
859 fi
860
861 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
862 if test "$ac_test_CFLAGS" = set; then
863   CFLAGS="$ac_save_CFLAGS"
864 elif test $ac_cv_prog_cc_g = yes; then
865   if test "$GCC" = yes; then
866     CFLAGS="-g -O2"
867   else
868     CFLAGS="-g"
869   fi
870 else
871   if test "$GCC" = yes; then
872     CFLAGS="-O2"
873   else
874     CFLAGS=
875   fi
876 fi
877
878 fi
879 if test -z "$CPP"; then
880   echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
881 echo "configure:882: checking how to run the C preprocessor" >&5
882 # On Suns, sometimes $CPP names a directory.
883 if test -n "$CPP" && test -d "$CPP"; then
884   CPP=
885 fi
886 if test -z "$CPP"; then
887 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
888   echo $ac_n "(cached) $ac_c" 1>&6
889 else
890     # This must be in double quotes, not single quotes, because CPP may get
891   # substituted into the Makefile and "${CC-cc}" will confuse make.
892   CPP="${CC-cc} -E"
893   # On the NeXT, cc -E runs the code through the compiler's parser,
894   # not just through cpp.
895   cat > conftest.$ac_ext <<EOF
896 #line 897 "configure"
897 #include "confdefs.h"
898 #include <assert.h>
899 Syntax Error
900 EOF
901 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
902 { (eval echo configure:903: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
903 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
904 if test -z "$ac_err"; then
905   :
906 else
907   echo "$ac_err" >&5
908   echo "configure: failed program was:" >&5
909   cat conftest.$ac_ext >&5
910   rm -rf conftest*
911   CPP="${CC-cc} -E -traditional-cpp"
912   cat > conftest.$ac_ext <<EOF
913 #line 914 "configure"
914 #include "confdefs.h"
915 #include <assert.h>
916 Syntax Error
917 EOF
918 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
919 { (eval echo configure:920: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
920 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
921 if test -z "$ac_err"; then
922   :
923 else
924   echo "$ac_err" >&5
925   echo "configure: failed program was:" >&5
926   cat conftest.$ac_ext >&5
927   rm -rf conftest*
928   CPP="${CC-cc} -nologo -E"
929   cat > conftest.$ac_ext <<EOF
930 #line 931 "configure"
931 #include "confdefs.h"
932 #include <assert.h>
933 Syntax Error
934 EOF
935 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
936 { (eval echo configure:937: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
937 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
938 if test -z "$ac_err"; then
939   :
940 else
941   echo "$ac_err" >&5
942   echo "configure: failed program was:" >&5
943   cat conftest.$ac_ext >&5
944   rm -rf conftest*
945   CPP=/lib/cpp
946 fi
947 rm -f conftest*
948 fi
949 rm -f conftest*
950 fi
951 rm -f conftest*
952   ac_cv_prog_CPP="$CPP"
953 fi
954   CPP="$ac_cv_prog_CPP"
955 else
956   ac_cv_prog_CPP="$CPP"
957 fi
958 echo "$ac_t""$CPP" 1>&6
959
960 fi
961
962 # Find a good install program.  We prefer a C program (faster),
963 # so one script is as good as another.  But avoid the broken or
964 # incompatible versions:
965 # SysV /etc/install, /usr/sbin/install
966 # SunOS /usr/etc/install
967 # IRIX /sbin/install
968 # AIX /bin/install
969 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
970 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
971 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
972 # ./install, which can be erroneously created by make from ./install.sh.
973 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
974 echo "configure:975: checking for a BSD compatible install" >&5
975 if test -z "$INSTALL"; then
976 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
977   echo $ac_n "(cached) $ac_c" 1>&6
978 else
979     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
980   for ac_dir in $PATH; do
981     # Account for people who put trailing slashes in PATH elements.
982     case "$ac_dir/" in
983     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
984     *)
985       # OSF1 and SCO ODT 3.0 have their own names for install.
986       # Don't use installbsd from OSF since it installs stuff as root
987       # by default.
988       for ac_prog in ginstall scoinst install; do
989         if test -f $ac_dir/$ac_prog; then
990           if test $ac_prog = install &&
991             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
992             # AIX install.  It has an incompatible calling convention.
993             :
994           else
995             ac_cv_path_install="$ac_dir/$ac_prog -c"
996             break 2
997           fi
998         fi
999       done
1000       ;;
1001     esac
1002   done
1003   IFS="$ac_save_IFS"
1004
1005 fi
1006   if test "${ac_cv_path_install+set}" = set; then
1007     INSTALL="$ac_cv_path_install"
1008   else
1009     # As a last resort, use the slow shell script.  We don't cache a
1010     # path for INSTALL within a source directory, because that will
1011     # break other packages using the cache if that directory is
1012     # removed, or if the path is relative.
1013     INSTALL="$ac_install_sh"
1014   fi
1015 fi
1016 echo "$ac_t""$INSTALL" 1>&6
1017
1018 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1019 # It thinks the first close brace ends the variable substitution.
1020 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1021
1022 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1023
1024 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1025
1026
1027 echo $ac_n "checking for working const""... $ac_c" 1>&6
1028 echo "configure:1029: checking for working const" >&5
1029 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1030   echo $ac_n "(cached) $ac_c" 1>&6
1031 else
1032   cat > conftest.$ac_ext <<EOF
1033 #line 1034 "configure"
1034 #include "confdefs.h"
1035
1036 int main() {
1037
1038 /* Ultrix mips cc rejects this.  */
1039 typedef int charset[2]; const charset x;
1040 /* SunOS 4.1.1 cc rejects this.  */
1041 char const *const *ccp;
1042 char **p;
1043 /* NEC SVR4.0.2 mips cc rejects this.  */
1044 struct point {int x, y;};
1045 static struct point const zero = {0,0};
1046 /* AIX XL C 1.02.0.0 rejects this.
1047    It does not let you subtract one const X* pointer from another in an arm
1048    of an if-expression whose if-part is not a constant expression */
1049 const char *g = "string";
1050 ccp = &g + (g ? g-g : 0);
1051 /* HPUX 7.0 cc rejects these. */
1052 ++ccp;
1053 p = (char**) ccp;
1054 ccp = (char const *const *) p;
1055 { /* SCO 3.2v4 cc rejects this.  */
1056   char *t;
1057   char const *s = 0 ? (char *) 0 : (char const *) 0;
1058
1059   *t++ = 0;
1060 }
1061 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
1062   int x[] = {25, 17};
1063   const int *foo = &x[0];
1064   ++foo;
1065 }
1066 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1067   typedef const int *iptr;
1068   iptr p = 0;
1069   ++p;
1070 }
1071 { /* AIX XL C 1.02.0.0 rejects this saying
1072      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1073   struct s { int j; const int *ap[3]; };
1074   struct s *b; b->j = 5;
1075 }
1076 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1077   const int foo = 10;
1078 }
1079
1080 ; return 0; }
1081 EOF
1082 if { (eval echo configure:1083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1083   rm -rf conftest*
1084   ac_cv_c_const=yes
1085 else
1086   echo "configure: failed program was:" >&5
1087   cat conftest.$ac_ext >&5
1088   rm -rf conftest*
1089   ac_cv_c_const=no
1090 fi
1091 rm -f conftest*
1092 fi
1093
1094 echo "$ac_t""$ac_cv_c_const" 1>&6
1095 if test $ac_cv_c_const = no; then
1096   cat >> confdefs.h <<\EOF
1097 #define const 
1098 EOF
1099
1100 fi
1101
1102 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1103 echo "configure:1104: checking whether byte ordering is bigendian" >&5
1104 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1105   echo $ac_n "(cached) $ac_c" 1>&6
1106 else
1107   ac_cv_c_bigendian=unknown
1108 # See if sys/param.h defines the BYTE_ORDER macro.
1109 cat > conftest.$ac_ext <<EOF
1110 #line 1111 "configure"
1111 #include "confdefs.h"
1112 #include <sys/types.h>
1113 #include <sys/param.h>
1114 int main() {
1115
1116 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1117  bogus endian macros
1118 #endif
1119 ; return 0; }
1120 EOF
1121 if { (eval echo configure:1122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1122   rm -rf conftest*
1123   # It does; now see whether it defined to BIG_ENDIAN or not.
1124 cat > conftest.$ac_ext <<EOF
1125 #line 1126 "configure"
1126 #include "confdefs.h"
1127 #include <sys/types.h>
1128 #include <sys/param.h>
1129 int main() {
1130
1131 #if BYTE_ORDER != BIG_ENDIAN
1132  not big endian
1133 #endif
1134 ; return 0; }
1135 EOF
1136 if { (eval echo configure:1137: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1137   rm -rf conftest*
1138   ac_cv_c_bigendian=yes
1139 else
1140   echo "configure: failed program was:" >&5
1141   cat conftest.$ac_ext >&5
1142   rm -rf conftest*
1143   ac_cv_c_bigendian=no
1144 fi
1145 rm -f conftest*
1146 else
1147   echo "configure: failed program was:" >&5
1148   cat conftest.$ac_ext >&5
1149 fi
1150 rm -f conftest*
1151 if test $ac_cv_c_bigendian = unknown; then
1152 if test "$cross_compiling" = yes; then
1153     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1154 else
1155   cat > conftest.$ac_ext <<EOF
1156 #line 1157 "configure"
1157 #include "confdefs.h"
1158 main () {
1159   /* Are we little or big endian?  From Harbison&Steele.  */
1160   union
1161   {
1162     long l;
1163     char c[sizeof (long)];
1164   } u;
1165   u.l = 1;
1166   exit (u.c[sizeof (long) - 1] == 1);
1167 }
1168 EOF
1169 if { (eval echo configure:1170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1170 then
1171   ac_cv_c_bigendian=no
1172 else
1173   echo "configure: failed program was:" >&5
1174   cat conftest.$ac_ext >&5
1175   rm -fr conftest*
1176   ac_cv_c_bigendian=yes
1177 fi
1178 rm -fr conftest*
1179 fi
1180
1181 fi
1182 fi
1183
1184 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1185 if test $ac_cv_c_bigendian = yes; then
1186   cat >> confdefs.h <<\EOF
1187 #define WORDS_BIGENDIAN 1
1188 EOF
1189
1190 fi
1191
1192
1193 for ac_func in gettimeofday select strerror strtod strtol
1194 do
1195 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1196 echo "configure:1197: checking for $ac_func" >&5
1197 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1198   echo $ac_n "(cached) $ac_c" 1>&6
1199 else
1200   cat > conftest.$ac_ext <<EOF
1201 #line 1202 "configure"
1202 #include "confdefs.h"
1203 /* System header to define __stub macros and hopefully few prototypes,
1204     which can conflict with char $ac_func(); below.  */
1205 #include <assert.h>
1206 /* Override any gcc2 internal prototype to avoid an error.  */
1207 /* We use char because int might match the return type of a gcc2
1208     builtin and then its argument prototype would still apply.  */
1209 char $ac_func();
1210
1211 int main() {
1212
1213 /* The GNU C library defines this for functions which it implements
1214     to always fail with ENOSYS.  Some functions are actually named
1215     something starting with __ and the normal name is an alias.  */
1216 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1217 choke me
1218 #else
1219 $ac_func();
1220 #endif
1221
1222 ; return 0; }
1223 EOF
1224 if { (eval echo configure:1225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1225   rm -rf conftest*
1226   eval "ac_cv_func_$ac_func=yes"
1227 else
1228   echo "configure: failed program was:" >&5
1229   cat conftest.$ac_ext >&5
1230   rm -rf conftest*
1231   eval "ac_cv_func_$ac_func=no"
1232 fi
1233 rm -f conftest*
1234 fi
1235
1236 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1237   echo "$ac_t""yes" 1>&6
1238     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1239   cat >> confdefs.h <<EOF
1240 #define $ac_tr_func 1
1241 EOF
1242  
1243 else
1244   echo "$ac_t""no" 1>&6
1245 fi
1246 done
1247
1248 for ac_func in setenv putenv
1249 do
1250 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1251 echo "configure:1252: checking for $ac_func" >&5
1252 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1253   echo $ac_n "(cached) $ac_c" 1>&6
1254 else
1255   cat > conftest.$ac_ext <<EOF
1256 #line 1257 "configure"
1257 #include "confdefs.h"
1258 /* System header to define __stub macros and hopefully few prototypes,
1259     which can conflict with char $ac_func(); below.  */
1260 #include <assert.h>
1261 /* Override any gcc2 internal prototype to avoid an error.  */
1262 /* We use char because int might match the return type of a gcc2
1263     builtin and then its argument prototype would still apply.  */
1264 char $ac_func();
1265
1266 int main() {
1267
1268 /* The GNU C library defines this for functions which it implements
1269     to always fail with ENOSYS.  Some functions are actually named
1270     something starting with __ and the normal name is an alias.  */
1271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1272 choke me
1273 #else
1274 $ac_func();
1275 #endif
1276
1277 ; return 0; }
1278 EOF
1279 if { (eval echo configure:1280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1280   rm -rf conftest*
1281   eval "ac_cv_func_$ac_func=yes"
1282 else
1283   echo "configure: failed program was:" >&5
1284   cat conftest.$ac_ext >&5
1285   rm -rf conftest*
1286   eval "ac_cv_func_$ac_func=no"
1287 fi
1288 rm -f conftest*
1289 fi
1290
1291 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1292   echo "$ac_t""yes" 1>&6
1293     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1294   cat >> confdefs.h <<EOF
1295 #define $ac_tr_func 1
1296 EOF
1297  
1298 else
1299   echo "$ac_t""no" 1>&6
1300 fi
1301 done
1302
1303 echo $ac_n "checking for connect""... $ac_c" 1>&6
1304 echo "configure:1305: checking for connect" >&5
1305 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1306   echo $ac_n "(cached) $ac_c" 1>&6
1307 else
1308   cat > conftest.$ac_ext <<EOF
1309 #line 1310 "configure"
1310 #include "confdefs.h"
1311 /* System header to define __stub macros and hopefully few prototypes,
1312     which can conflict with char connect(); below.  */
1313 #include <assert.h>
1314 /* Override any gcc2 internal prototype to avoid an error.  */
1315 /* We use char because int might match the return type of a gcc2
1316     builtin and then its argument prototype would still apply.  */
1317 char connect();
1318
1319 int main() {
1320
1321 /* The GNU C library defines this for functions which it implements
1322     to always fail with ENOSYS.  Some functions are actually named
1323     something starting with __ and the normal name is an alias.  */
1324 #if defined (__stub_connect) || defined (__stub___connect)
1325 choke me
1326 #else
1327 connect();
1328 #endif
1329
1330 ; return 0; }
1331 EOF
1332 if { (eval echo configure:1333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1333   rm -rf conftest*
1334   eval "ac_cv_func_connect=yes"
1335 else
1336   echo "configure: failed program was:" >&5
1337   cat conftest.$ac_ext >&5
1338   rm -rf conftest*
1339   eval "ac_cv_func_connect=no"
1340 fi
1341 rm -f conftest*
1342 fi
1343
1344 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1345   echo "$ac_t""yes" 1>&6
1346   :
1347 else
1348   echo "$ac_t""no" 1>&6
1349 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1350 echo "configure:1351: checking for connect in -lsocket" >&5
1351 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1352 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1353   echo $ac_n "(cached) $ac_c" 1>&6
1354 else
1355   ac_save_LIBS="$LIBS"
1356 LIBS="-lsocket  $LIBS"
1357 cat > conftest.$ac_ext <<EOF
1358 #line 1359 "configure"
1359 #include "confdefs.h"
1360 /* Override any gcc2 internal prototype to avoid an error.  */
1361 /* We use char because int might match the return type of a gcc2
1362     builtin and then its argument prototype would still apply.  */
1363 char connect();
1364
1365 int main() {
1366 connect()
1367 ; return 0; }
1368 EOF
1369 if { (eval echo configure:1370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1370   rm -rf conftest*
1371   eval "ac_cv_lib_$ac_lib_var=yes"
1372 else
1373   echo "configure: failed program was:" >&5
1374   cat conftest.$ac_ext >&5
1375   rm -rf conftest*
1376   eval "ac_cv_lib_$ac_lib_var=no"
1377 fi
1378 rm -f conftest*
1379 LIBS="$ac_save_LIBS"
1380
1381 fi
1382 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1383   echo "$ac_t""yes" 1>&6
1384   LIB=${LIB}" -lsocket"
1385 else
1386   echo "$ac_t""no" 1>&6
1387 fi
1388
1389 fi
1390
1391 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1392 echo "configure:1393: checking for gethostbyname" >&5
1393 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1394   echo $ac_n "(cached) $ac_c" 1>&6
1395 else
1396   cat > conftest.$ac_ext <<EOF
1397 #line 1398 "configure"
1398 #include "confdefs.h"
1399 /* System header to define __stub macros and hopefully few prototypes,
1400     which can conflict with char gethostbyname(); below.  */
1401 #include <assert.h>
1402 /* Override any gcc2 internal prototype to avoid an error.  */
1403 /* We use char because int might match the return type of a gcc2
1404     builtin and then its argument prototype would still apply.  */
1405 char gethostbyname();
1406
1407 int main() {
1408
1409 /* The GNU C library defines this for functions which it implements
1410     to always fail with ENOSYS.  Some functions are actually named
1411     something starting with __ and the normal name is an alias.  */
1412 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1413 choke me
1414 #else
1415 gethostbyname();
1416 #endif
1417
1418 ; return 0; }
1419 EOF
1420 if { (eval echo configure:1421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1421   rm -rf conftest*
1422   eval "ac_cv_func_gethostbyname=yes"
1423 else
1424   echo "configure: failed program was:" >&5
1425   cat conftest.$ac_ext >&5
1426   rm -rf conftest*
1427   eval "ac_cv_func_gethostbyname=no"
1428 fi
1429 rm -f conftest*
1430 fi
1431
1432 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1433   echo "$ac_t""yes" 1>&6
1434   :
1435 else
1436   echo "$ac_t""no" 1>&6
1437 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1438 echo "configure:1439: checking for gethostbyname in -lnsl" >&5
1439 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1440 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1441   echo $ac_n "(cached) $ac_c" 1>&6
1442 else
1443   ac_save_LIBS="$LIBS"
1444 LIBS="-lnsl  $LIBS"
1445 cat > conftest.$ac_ext <<EOF
1446 #line 1447 "configure"
1447 #include "confdefs.h"
1448 /* Override any gcc2 internal prototype to avoid an error.  */
1449 /* We use char because int might match the return type of a gcc2
1450     builtin and then its argument prototype would still apply.  */
1451 char gethostbyname();
1452
1453 int main() {
1454 gethostbyname()
1455 ; return 0; }
1456 EOF
1457 if { (eval echo configure:1458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1458   rm -rf conftest*
1459   eval "ac_cv_lib_$ac_lib_var=yes"
1460 else
1461   echo "configure: failed program was:" >&5
1462   cat conftest.$ac_ext >&5
1463   rm -rf conftest*
1464   eval "ac_cv_lib_$ac_lib_var=no"
1465 fi
1466 rm -f conftest*
1467 LIBS="$ac_save_LIBS"
1468
1469 fi
1470 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1471   echo "$ac_t""yes" 1>&6
1472   LIB=${LIB}" -lnsl"
1473 else
1474   echo "$ac_t""no" 1>&6
1475 fi
1476
1477 fi
1478
1479 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
1480 echo "configure:1481: checking for nanosleep" >&5
1481 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
1482   echo $ac_n "(cached) $ac_c" 1>&6
1483 else
1484   cat > conftest.$ac_ext <<EOF
1485 #line 1486 "configure"
1486 #include "confdefs.h"
1487 /* System header to define __stub macros and hopefully few prototypes,
1488     which can conflict with char nanosleep(); below.  */
1489 #include <assert.h>
1490 /* Override any gcc2 internal prototype to avoid an error.  */
1491 /* We use char because int might match the return type of a gcc2
1492     builtin and then its argument prototype would still apply.  */
1493 char nanosleep();
1494
1495 int main() {
1496
1497 /* The GNU C library defines this for functions which it implements
1498     to always fail with ENOSYS.  Some functions are actually named
1499     something starting with __ and the normal name is an alias.  */
1500 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
1501 choke me
1502 #else
1503 nanosleep();
1504 #endif
1505
1506 ; return 0; }
1507 EOF
1508 if { (eval echo configure:1509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1509   rm -rf conftest*
1510   eval "ac_cv_func_nanosleep=yes"
1511 else
1512   echo "configure: failed program was:" >&5
1513   cat conftest.$ac_ext >&5
1514   rm -rf conftest*
1515   eval "ac_cv_func_nanosleep=no"
1516 fi
1517 rm -f conftest*
1518 fi
1519
1520 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
1521   echo "$ac_t""yes" 1>&6
1522   :
1523 else
1524   echo "$ac_t""no" 1>&6
1525 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
1526 echo "configure:1527: checking for nanosleep in -lrt" >&5
1527 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
1528 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1529   echo $ac_n "(cached) $ac_c" 1>&6
1530 else
1531   ac_save_LIBS="$LIBS"
1532 LIBS="-lrt  $LIBS"
1533 cat > conftest.$ac_ext <<EOF
1534 #line 1535 "configure"
1535 #include "confdefs.h"
1536 /* Override any gcc2 internal prototype to avoid an error.  */
1537 /* We use char because int might match the return type of a gcc2
1538     builtin and then its argument prototype would still apply.  */
1539 char nanosleep();
1540
1541 int main() {
1542 nanosleep()
1543 ; return 0; }
1544 EOF
1545 if { (eval echo configure:1546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1546   rm -rf conftest*
1547   eval "ac_cv_lib_$ac_lib_var=yes"
1548 else
1549   echo "configure: failed program was:" >&5
1550   cat conftest.$ac_ext >&5
1551   rm -rf conftest*
1552   eval "ac_cv_lib_$ac_lib_var=no"
1553 fi
1554 rm -f conftest*
1555 LIBS="$ac_save_LIBS"
1556
1557 fi
1558 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1559   echo "$ac_t""yes" 1>&6
1560   LIB=${LIB}" -lrt"
1561 else
1562   echo "$ac_t""no" 1>&6
1563 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
1564 echo "configure:1565: checking for nanosleep in -lposix4" >&5
1565 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
1566 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1567   echo $ac_n "(cached) $ac_c" 1>&6
1568 else
1569   ac_save_LIBS="$LIBS"
1570 LIBS="-lposix4  $LIBS"
1571 cat > conftest.$ac_ext <<EOF
1572 #line 1573 "configure"
1573 #include "confdefs.h"
1574 /* Override any gcc2 internal prototype to avoid an error.  */
1575 /* We use char because int might match the return type of a gcc2
1576     builtin and then its argument prototype would still apply.  */
1577 char nanosleep();
1578
1579 int main() {
1580 nanosleep()
1581 ; return 0; }
1582 EOF
1583 if { (eval echo configure:1584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1584   rm -rf conftest*
1585   eval "ac_cv_lib_$ac_lib_var=yes"
1586 else
1587   echo "configure: failed program was:" >&5
1588   cat conftest.$ac_ext >&5
1589   rm -rf conftest*
1590   eval "ac_cv_lib_$ac_lib_var=no"
1591 fi
1592 rm -f conftest*
1593 LIBS="$ac_save_LIBS"
1594
1595 fi
1596 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1597   echo "$ac_t""yes" 1>&6
1598   LIB=${LIB}" -lposix4"
1599 else
1600   echo "$ac_t""no" 1>&6
1601 fi
1602
1603 fi
1604
1605 fi
1606
1607 for ac_func in usleep
1608 do
1609 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1610 echo "configure:1611: checking for $ac_func" >&5
1611 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1612   echo $ac_n "(cached) $ac_c" 1>&6
1613 else
1614   cat > conftest.$ac_ext <<EOF
1615 #line 1616 "configure"
1616 #include "confdefs.h"
1617 /* System header to define __stub macros and hopefully few prototypes,
1618     which can conflict with char $ac_func(); below.  */
1619 #include <assert.h>
1620 /* Override any gcc2 internal prototype to avoid an error.  */
1621 /* We use char because int might match the return type of a gcc2
1622     builtin and then its argument prototype would still apply.  */
1623 char $ac_func();
1624
1625 int main() {
1626
1627 /* The GNU C library defines this for functions which it implements
1628     to always fail with ENOSYS.  Some functions are actually named
1629     something starting with __ and the normal name is an alias.  */
1630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1631 choke me
1632 #else
1633 $ac_func();
1634 #endif
1635
1636 ; return 0; }
1637 EOF
1638 if { (eval echo configure:1639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1639   rm -rf conftest*
1640   eval "ac_cv_func_$ac_func=yes"
1641 else
1642   echo "configure: failed program was:" >&5
1643   cat conftest.$ac_ext >&5
1644   rm -rf conftest*
1645   eval "ac_cv_func_$ac_func=no"
1646 fi
1647 rm -f conftest*
1648 fi
1649
1650 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1651   echo "$ac_t""yes" 1>&6
1652     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1653   cat >> confdefs.h <<EOF
1654 #define $ac_tr_func 1
1655 EOF
1656  
1657 else
1658   echo "$ac_t""no" 1>&6
1659 fi
1660 done
1661
1662 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
1663 echo "configure:1664: checking for inet_aton" >&5
1664 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
1665   echo $ac_n "(cached) $ac_c" 1>&6
1666 else
1667   cat > conftest.$ac_ext <<EOF
1668 #line 1669 "configure"
1669 #include "confdefs.h"
1670 /* System header to define __stub macros and hopefully few prototypes,
1671     which can conflict with char inet_aton(); below.  */
1672 #include <assert.h>
1673 /* Override any gcc2 internal prototype to avoid an error.  */
1674 /* We use char because int might match the return type of a gcc2
1675     builtin and then its argument prototype would still apply.  */
1676 char inet_aton();
1677
1678 int main() {
1679
1680 /* The GNU C library defines this for functions which it implements
1681     to always fail with ENOSYS.  Some functions are actually named
1682     something starting with __ and the normal name is an alias.  */
1683 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
1684 choke me
1685 #else
1686 inet_aton();
1687 #endif
1688
1689 ; return 0; }
1690 EOF
1691 if { (eval echo configure:1692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1692   rm -rf conftest*
1693   eval "ac_cv_func_inet_aton=yes"
1694 else
1695   echo "configure: failed program was:" >&5
1696   cat conftest.$ac_ext >&5
1697   rm -rf conftest*
1698   eval "ac_cv_func_inet_aton=no"
1699 fi
1700 rm -f conftest*
1701 fi
1702
1703 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
1704   echo "$ac_t""yes" 1>&6
1705   :
1706 else
1707   echo "$ac_t""no" 1>&6
1708 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
1709 echo "configure:1710: checking for inet_aton in -lresolv" >&5
1710 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
1711 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1712   echo $ac_n "(cached) $ac_c" 1>&6
1713 else
1714   ac_save_LIBS="$LIBS"
1715 LIBS="-lresolv  $LIBS"
1716 cat > conftest.$ac_ext <<EOF
1717 #line 1718 "configure"
1718 #include "confdefs.h"
1719 /* Override any gcc2 internal prototype to avoid an error.  */
1720 /* We use char because int might match the return type of a gcc2
1721     builtin and then its argument prototype would still apply.  */
1722 char inet_aton();
1723
1724 int main() {
1725 inet_aton()
1726 ; return 0; }
1727 EOF
1728 if { (eval echo configure:1729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1729   rm -rf conftest*
1730   eval "ac_cv_lib_$ac_lib_var=yes"
1731 else
1732   echo "configure: failed program was:" >&5
1733   cat conftest.$ac_ext >&5
1734   rm -rf conftest*
1735   eval "ac_cv_lib_$ac_lib_var=no"
1736 fi
1737 rm -f conftest*
1738 LIBS="$ac_save_LIBS"
1739
1740 fi
1741 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1742   echo "$ac_t""yes" 1>&6
1743   LIB=${LIB}" -lresolv"
1744 else
1745   echo "$ac_t""no" 1>&6
1746 fi
1747
1748 fi
1749
1750 for ac_func in vasprintf
1751 do
1752 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1753 echo "configure:1754: checking for $ac_func" >&5
1754 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1755   echo $ac_n "(cached) $ac_c" 1>&6
1756 else
1757   cat > conftest.$ac_ext <<EOF
1758 #line 1759 "configure"
1759 #include "confdefs.h"
1760 /* System header to define __stub macros and hopefully few prototypes,
1761     which can conflict with char $ac_func(); below.  */
1762 #include <assert.h>
1763 /* Override any gcc2 internal prototype to avoid an error.  */
1764 /* We use char because int might match the return type of a gcc2
1765     builtin and then its argument prototype would still apply.  */
1766 char $ac_func();
1767
1768 int main() {
1769
1770 /* The GNU C library defines this for functions which it implements
1771     to always fail with ENOSYS.  Some functions are actually named
1772     something starting with __ and the normal name is an alias.  */
1773 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1774 choke me
1775 #else
1776 $ac_func();
1777 #endif
1778
1779 ; return 0; }
1780 EOF
1781 if { (eval echo configure:1782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1782   rm -rf conftest*
1783   eval "ac_cv_func_$ac_func=yes"
1784 else
1785   echo "configure: failed program was:" >&5
1786   cat conftest.$ac_ext >&5
1787   rm -rf conftest*
1788   eval "ac_cv_func_$ac_func=no"
1789 fi
1790 rm -f conftest*
1791 fi
1792
1793 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1794   echo "$ac_t""yes" 1>&6
1795     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1796   cat >> confdefs.h <<EOF
1797 #define $ac_tr_func 1
1798 EOF
1799  
1800 else
1801   echo "$ac_t""no" 1>&6
1802 fi
1803 done
1804
1805
1806 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
1807 echo "configure:1808: checking for getopt_long" >&5
1808 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
1809   echo $ac_n "(cached) $ac_c" 1>&6
1810 else
1811   cat > conftest.$ac_ext <<EOF
1812 #line 1813 "configure"
1813 #include "confdefs.h"
1814 /* System header to define __stub macros and hopefully few prototypes,
1815     which can conflict with char getopt_long(); below.  */
1816 #include <assert.h>
1817 /* Override any gcc2 internal prototype to avoid an error.  */
1818 /* We use char because int might match the return type of a gcc2
1819     builtin and then its argument prototype would still apply.  */
1820 char getopt_long();
1821
1822 int main() {
1823
1824 /* The GNU C library defines this for functions which it implements
1825     to always fail with ENOSYS.  Some functions are actually named
1826     something starting with __ and the normal name is an alias.  */
1827 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
1828 choke me
1829 #else
1830 getopt_long();
1831 #endif
1832
1833 ; return 0; }
1834 EOF
1835 if { (eval echo configure:1836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1836   rm -rf conftest*
1837   eval "ac_cv_func_getopt_long=yes"
1838 else
1839   echo "configure: failed program was:" >&5
1840   cat conftest.$ac_ext >&5
1841   rm -rf conftest*
1842   eval "ac_cv_func_getopt_long=no"
1843 fi
1844 rm -f conftest*
1845 fi
1846
1847 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
1848   echo "$ac_t""yes" 1>&6
1849   cat >> confdefs.h <<\EOF
1850 #define HAVE_GETOPT_LONG 1
1851 EOF
1852
1853 else
1854   echo "$ac_t""no" 1>&6
1855  # FreeBSD has a gnugetopt library for this:
1856   echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
1857 echo "configure:1858: checking for getopt_long in -lgnugetopt" >&5
1858 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
1859 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1860   echo $ac_n "(cached) $ac_c" 1>&6
1861 else
1862   ac_save_LIBS="$LIBS"
1863 LIBS="-lgnugetopt  $LIBS"
1864 cat > conftest.$ac_ext <<EOF
1865 #line 1866 "configure"
1866 #include "confdefs.h"
1867 /* Override any gcc2 internal prototype to avoid an error.  */
1868 /* We use char because int might match the return type of a gcc2
1869     builtin and then its argument prototype would still apply.  */
1870 char getopt_long();
1871
1872 int main() {
1873 getopt_long()
1874 ; return 0; }
1875 EOF
1876 if { (eval echo configure:1877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1877   rm -rf conftest*
1878   eval "ac_cv_lib_$ac_lib_var=yes"
1879 else
1880   echo "configure: failed program was:" >&5
1881   cat conftest.$ac_ext >&5
1882   rm -rf conftest*
1883   eval "ac_cv_lib_$ac_lib_var=no"
1884 fi
1885 rm -f conftest*
1886 LIBS="$ac_save_LIBS"
1887
1888 fi
1889 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1890   echo "$ac_t""yes" 1>&6
1891   cat >> confdefs.h <<\EOF
1892 #define HAVE_GETOPT_LONG 1
1893 EOF
1894  LIB=${LIB}" -lgnugetopt"
1895 else
1896   echo "$ac_t""no" 1>&6
1897 GETOPT=1
1898 fi
1899
1900 fi
1901
1902
1903
1904 for ac_hdr in unistd.h
1905 do
1906 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1907 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1908 echo "configure:1909: checking for $ac_hdr" >&5
1909 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1910   echo $ac_n "(cached) $ac_c" 1>&6
1911 else
1912   cat > conftest.$ac_ext <<EOF
1913 #line 1914 "configure"
1914 #include "confdefs.h"
1915 #include <$ac_hdr>
1916 EOF
1917 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1918 { (eval echo configure:1919: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1919 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1920 if test -z "$ac_err"; then
1921   rm -rf conftest*
1922   eval "ac_cv_header_$ac_safe=yes"
1923 else
1924   echo "$ac_err" >&5
1925   echo "configure: failed program was:" >&5
1926   cat conftest.$ac_ext >&5
1927   rm -rf conftest*
1928   eval "ac_cv_header_$ac_safe=no"
1929 fi
1930 rm -f conftest*
1931 fi
1932 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1933   echo "$ac_t""yes" 1>&6
1934     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1935   cat >> confdefs.h <<EOF
1936 #define $ac_tr_hdr 1
1937 EOF
1938  
1939 else
1940   echo "$ac_t""no" 1>&6
1941 fi
1942 done
1943
1944 for ac_func in getpagesize
1945 do
1946 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1947 echo "configure:1948: checking for $ac_func" >&5
1948 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1949   echo $ac_n "(cached) $ac_c" 1>&6
1950 else
1951   cat > conftest.$ac_ext <<EOF
1952 #line 1953 "configure"
1953 #include "confdefs.h"
1954 /* System header to define __stub macros and hopefully few prototypes,
1955     which can conflict with char $ac_func(); below.  */
1956 #include <assert.h>
1957 /* Override any gcc2 internal prototype to avoid an error.  */
1958 /* We use char because int might match the return type of a gcc2
1959     builtin and then its argument prototype would still apply.  */
1960 char $ac_func();
1961
1962 int main() {
1963
1964 /* The GNU C library defines this for functions which it implements
1965     to always fail with ENOSYS.  Some functions are actually named
1966     something starting with __ and the normal name is an alias.  */
1967 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1968 choke me
1969 #else
1970 $ac_func();
1971 #endif
1972
1973 ; return 0; }
1974 EOF
1975 if { (eval echo configure:1976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1976   rm -rf conftest*
1977   eval "ac_cv_func_$ac_func=yes"
1978 else
1979   echo "configure: failed program was:" >&5
1980   cat conftest.$ac_ext >&5
1981   rm -rf conftest*
1982   eval "ac_cv_func_$ac_func=no"
1983 fi
1984 rm -f conftest*
1985 fi
1986
1987 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1988   echo "$ac_t""yes" 1>&6
1989     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1990   cat >> confdefs.h <<EOF
1991 #define $ac_tr_func 1
1992 EOF
1993  
1994 else
1995   echo "$ac_t""no" 1>&6
1996 fi
1997 done
1998
1999 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2000 echo "configure:2001: checking for working mmap" >&5
2001 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2002   echo $ac_n "(cached) $ac_c" 1>&6
2003 else
2004   if test "$cross_compiling" = yes; then
2005   ac_cv_func_mmap_fixed_mapped=no
2006 else
2007   cat > conftest.$ac_ext <<EOF
2008 #line 2009 "configure"
2009 #include "confdefs.h"
2010
2011 /* Thanks to Mike Haertel and Jim Avera for this test.
2012    Here is a matrix of mmap possibilities:
2013         mmap private not fixed
2014         mmap private fixed at somewhere currently unmapped
2015         mmap private fixed at somewhere already mapped
2016         mmap shared not fixed
2017         mmap shared fixed at somewhere currently unmapped
2018         mmap shared fixed at somewhere already mapped
2019    For private mappings, we should verify that changes cannot be read()
2020    back from the file, nor mmap's back from the file at a different
2021    address.  (There have been systems where private was not correctly
2022    implemented like the infamous i386 svr4.0, and systems where the
2023    VM page cache was not coherent with the filesystem buffer cache
2024    like early versions of FreeBSD and possibly contemporary NetBSD.)
2025    For shared mappings, we should conversely verify that changes get
2026    propogated back to all the places they're supposed to be.
2027
2028    Grep wants private fixed already mapped.
2029    The main things grep needs to know about mmap are:
2030    * does it exist and is it safe to write into the mmap'd area
2031    * how to use it (BSD variants)  */
2032 #include <sys/types.h>
2033 #include <fcntl.h>
2034 #include <sys/mman.h>
2035
2036 /* This mess was copied from the GNU getpagesize.h.  */
2037 #ifndef HAVE_GETPAGESIZE
2038 # ifdef HAVE_UNISTD_H
2039 #  include <unistd.h>
2040 # endif
2041
2042 /* Assume that all systems that can run configure have sys/param.h.  */
2043 # ifndef HAVE_SYS_PARAM_H
2044 #  define HAVE_SYS_PARAM_H 1
2045 # endif
2046
2047 # ifdef _SC_PAGESIZE
2048 #  define getpagesize() sysconf(_SC_PAGESIZE)
2049 # else /* no _SC_PAGESIZE */
2050 #  ifdef HAVE_SYS_PARAM_H
2051 #   include <sys/param.h>
2052 #   ifdef EXEC_PAGESIZE
2053 #    define getpagesize() EXEC_PAGESIZE
2054 #   else /* no EXEC_PAGESIZE */
2055 #    ifdef NBPG
2056 #     define getpagesize() NBPG * CLSIZE
2057 #     ifndef CLSIZE
2058 #      define CLSIZE 1
2059 #     endif /* no CLSIZE */
2060 #    else /* no NBPG */
2061 #     ifdef NBPC
2062 #      define getpagesize() NBPC
2063 #     else /* no NBPC */
2064 #      ifdef PAGESIZE
2065 #       define getpagesize() PAGESIZE
2066 #      endif /* PAGESIZE */
2067 #     endif /* no NBPC */
2068 #    endif /* no NBPG */
2069 #   endif /* no EXEC_PAGESIZE */
2070 #  else /* no HAVE_SYS_PARAM_H */
2071 #   define getpagesize() 8192   /* punt totally */
2072 #  endif /* no HAVE_SYS_PARAM_H */
2073 # endif /* no _SC_PAGESIZE */
2074
2075 #endif /* no HAVE_GETPAGESIZE */
2076
2077 #ifdef __cplusplus
2078 extern "C" { void *malloc(unsigned); }
2079 #else
2080 char *malloc();
2081 #endif
2082
2083 int
2084 main()
2085 {
2086         char *data, *data2, *data3;
2087         int i, pagesize;
2088         int fd;
2089
2090         pagesize = getpagesize();
2091
2092         /*
2093          * First, make a file with some known garbage in it.
2094          */
2095         data = malloc(pagesize);
2096         if (!data)
2097                 exit(1);
2098         for (i = 0; i < pagesize; ++i)
2099                 *(data + i) = rand();
2100         umask(0);
2101         fd = creat("conftestmmap", 0600);
2102         if (fd < 0)
2103                 exit(1);
2104         if (write(fd, data, pagesize) != pagesize)
2105                 exit(1);
2106         close(fd);
2107
2108         /*
2109          * Next, try to mmap the file at a fixed address which
2110          * already has something else allocated at it.  If we can,
2111          * also make sure that we see the same garbage.
2112          */
2113         fd = open("conftestmmap", O_RDWR);
2114         if (fd < 0)
2115                 exit(1);
2116         data2 = malloc(2 * pagesize);
2117         if (!data2)
2118                 exit(1);
2119         data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2120         if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2121             MAP_PRIVATE | MAP_FIXED, fd, 0L))
2122                 exit(1);
2123         for (i = 0; i < pagesize; ++i)
2124                 if (*(data + i) != *(data2 + i))
2125                         exit(1);
2126
2127         /*
2128          * Finally, make sure that changes to the mapped area
2129          * do not percolate back to the file as seen by read().
2130          * (This is a bug on some variants of i386 svr4.0.)
2131          */
2132         for (i = 0; i < pagesize; ++i)
2133                 *(data2 + i) = *(data2 + i) + 1;
2134         data3 = malloc(pagesize);
2135         if (!data3)
2136                 exit(1);
2137         if (read(fd, data3, pagesize) != pagesize)
2138                 exit(1);
2139         for (i = 0; i < pagesize; ++i)
2140                 if (*(data + i) != *(data3 + i))
2141                         exit(1);
2142         close(fd);
2143         unlink("conftestmmap");
2144         exit(0);
2145 }
2146
2147 EOF
2148 if { (eval echo configure:2149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2149 then
2150   ac_cv_func_mmap_fixed_mapped=yes
2151 else
2152   echo "configure: failed program was:" >&5
2153   cat conftest.$ac_ext >&5
2154   rm -fr conftest*
2155   ac_cv_func_mmap_fixed_mapped=no
2156 fi
2157 rm -fr conftest*
2158 fi
2159
2160 fi
2161
2162 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2163 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2164   cat >> confdefs.h <<\EOF
2165 #define HAVE_MMAP 1
2166 EOF
2167
2168 fi
2169
2170 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2171 echo "configure:2172: checking return type of signal handlers" >&5
2172 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2173   echo $ac_n "(cached) $ac_c" 1>&6
2174 else
2175   cat > conftest.$ac_ext <<EOF
2176 #line 2177 "configure"
2177 #include "confdefs.h"
2178 #include <sys/types.h>
2179 #include <signal.h>
2180 #ifdef signal
2181 #undef signal
2182 #endif
2183 #ifdef __cplusplus
2184 extern "C" void (*signal (int, void (*)(int)))(int);
2185 #else
2186 void (*signal ()) ();
2187 #endif
2188
2189 int main() {
2190 int i;
2191 ; return 0; }
2192 EOF
2193 if { (eval echo configure:2194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2194   rm -rf conftest*
2195   ac_cv_type_signal=void
2196 else
2197   echo "configure: failed program was:" >&5
2198   cat conftest.$ac_ext >&5
2199   rm -rf conftest*
2200   ac_cv_type_signal=int
2201 fi
2202 rm -f conftest*
2203 fi
2204
2205 echo "$ac_t""$ac_cv_type_signal" 1>&6
2206 cat >> confdefs.h <<EOF
2207 #define RETSIGTYPE $ac_cv_type_signal
2208 EOF
2209
2210
2211 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2212 echo "configure:2213: checking for dlopen in -ldl" >&5
2213 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2214 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2215   echo $ac_n "(cached) $ac_c" 1>&6
2216 else
2217   ac_save_LIBS="$LIBS"
2218 LIBS="-ldl  $LIBS"
2219 cat > conftest.$ac_ext <<EOF
2220 #line 2221 "configure"
2221 #include "confdefs.h"
2222 /* Override any gcc2 internal prototype to avoid an error.  */
2223 /* We use char because int might match the return type of a gcc2
2224     builtin and then its argument prototype would still apply.  */
2225 char dlopen();
2226
2227 int main() {
2228 dlopen()
2229 ; return 0; }
2230 EOF
2231 if { (eval echo configure:2232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2232   rm -rf conftest*
2233   eval "ac_cv_lib_$ac_lib_var=yes"
2234 else
2235   echo "configure: failed program was:" >&5
2236   cat conftest.$ac_ext >&5
2237   rm -rf conftest*
2238   eval "ac_cv_lib_$ac_lib_var=no"
2239 fi
2240 rm -f conftest*
2241 LIBS="$ac_save_LIBS"
2242
2243 fi
2244 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2245   echo "$ac_t""yes" 1>&6
2246   LIB=${LIB}" -ldl"
2247 else
2248   echo "$ac_t""no" 1>&6
2249 fi
2250
2251 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
2252 echo "configure:2253: checking for pow in -lm" >&5
2253 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
2254 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2255   echo $ac_n "(cached) $ac_c" 1>&6
2256 else
2257   ac_save_LIBS="$LIBS"
2258 LIBS="-lm  $LIBS"
2259 cat > conftest.$ac_ext <<EOF
2260 #line 2261 "configure"
2261 #include "confdefs.h"
2262 /* Override any gcc2 internal prototype to avoid an error.  */
2263 /* We use char because int might match the return type of a gcc2
2264     builtin and then its argument prototype would still apply.  */
2265 char pow();
2266
2267 int main() {
2268 pow()
2269 ; return 0; }
2270 EOF
2271 if { (eval echo configure:2272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2272   rm -rf conftest*
2273   eval "ac_cv_lib_$ac_lib_var=yes"
2274 else
2275   echo "configure: failed program was:" >&5
2276   cat conftest.$ac_ext >&5
2277   rm -rf conftest*
2278   eval "ac_cv_lib_$ac_lib_var=no"
2279 fi
2280 rm -f conftest*
2281 LIBS="$ac_save_LIBS"
2282
2283 fi
2284 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2285   echo "$ac_t""yes" 1>&6
2286   LIB_YUV=${LIB_YUV}" -lm"
2287 else
2288   echo "$ac_t""no" 1>&6
2289 fi
2290
2291 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
2292 echo "configure:2293: checking for pthread_create in -lpthread" >&5
2293 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
2294 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2295   echo $ac_n "(cached) $ac_c" 1>&6
2296 else
2297   ac_save_LIBS="$LIBS"
2298 LIBS="-lpthread  $LIBS"
2299 cat > conftest.$ac_ext <<EOF
2300 #line 2301 "configure"
2301 #include "confdefs.h"
2302 /* Override any gcc2 internal prototype to avoid an error.  */
2303 /* We use char because int might match the return type of a gcc2
2304     builtin and then its argument prototype would still apply.  */
2305 char pthread_create();
2306
2307 int main() {
2308 pthread_create()
2309 ; return 0; }
2310 EOF
2311 if { (eval echo configure:2312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2312   rm -rf conftest*
2313   eval "ac_cv_lib_$ac_lib_var=yes"
2314 else
2315   echo "configure: failed program was:" >&5
2316   cat conftest.$ac_ext >&5
2317   rm -rf conftest*
2318   eval "ac_cv_lib_$ac_lib_var=no"
2319 fi
2320 rm -f conftest*
2321 LIBS="$ac_save_LIBS"
2322
2323 fi
2324 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2325   echo "$ac_t""yes" 1>&6
2326   LIB=${LIB}" -lpthread"
2327 else
2328   echo "$ac_t""no" 1>&6
2329 fi
2330
2331 echo $ac_n "checking for thread_create in -lthreads""... $ac_c" 1>&6
2332 echo "configure:2333: checking for thread_create in -lthreads" >&5
2333 ac_lib_var=`echo threads'_'thread_create | sed 'y%./+-%__p_%'`
2334 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2335   echo $ac_n "(cached) $ac_c" 1>&6
2336 else
2337   ac_save_LIBS="$LIBS"
2338 LIBS="-lthreads  $LIBS"
2339 cat > conftest.$ac_ext <<EOF
2340 #line 2341 "configure"
2341 #include "confdefs.h"
2342 /* Override any gcc2 internal prototype to avoid an error.  */
2343 /* We use char because int might match the return type of a gcc2
2344     builtin and then its argument prototype would still apply.  */
2345 char thread_create();
2346
2347 int main() {
2348 thread_create()
2349 ; return 0; }
2350 EOF
2351 if { (eval echo configure:2352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2352   rm -rf conftest*
2353   eval "ac_cv_lib_$ac_lib_var=yes"
2354 else
2355   echo "configure: failed program was:" >&5
2356   cat conftest.$ac_ext >&5
2357   rm -rf conftest*
2358   eval "ac_cv_lib_$ac_lib_var=no"
2359 fi
2360 rm -f conftest*
2361 LIBS="$ac_save_LIBS"
2362
2363 fi
2364 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2365   echo "$ac_t""yes" 1>&6
2366   LIB=${LIB}" -lthreads"
2367 else
2368   echo "$ac_t""no" 1>&6
2369 fi
2370
2371
2372 CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
2373 for ac_hdr in stddef.h
2374 do
2375 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2376 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2377 echo "configure:2378: checking for $ac_hdr" >&5
2378 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2379   echo $ac_n "(cached) $ac_c" 1>&6
2380 else
2381   cat > conftest.$ac_ext <<EOF
2382 #line 2383 "configure"
2383 #include "confdefs.h"
2384 #include <$ac_hdr>
2385 EOF
2386 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2387 { (eval echo configure:2388: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2388 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2389 if test -z "$ac_err"; then
2390   rm -rf conftest*
2391   eval "ac_cv_header_$ac_safe=yes"
2392 else
2393   echo "$ac_err" >&5
2394   echo "configure: failed program was:" >&5
2395   cat conftest.$ac_ext >&5
2396   rm -rf conftest*
2397   eval "ac_cv_header_$ac_safe=no"
2398 fi
2399 rm -f conftest*
2400 fi
2401 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2402   echo "$ac_t""yes" 1>&6
2403     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2404   cat >> confdefs.h <<EOF
2405 #define $ac_tr_hdr 1
2406 EOF
2407  
2408 else
2409   echo "$ac_t""no" 1>&6
2410 fi
2411 done
2412
2413 for ac_hdr in getopt.h
2414 do
2415 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2416 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2417 echo "configure:2418: checking for $ac_hdr" >&5
2418 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2419   echo $ac_n "(cached) $ac_c" 1>&6
2420 else
2421   cat > conftest.$ac_ext <<EOF
2422 #line 2423 "configure"
2423 #include "confdefs.h"
2424 #include <$ac_hdr>
2425 EOF
2426 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2427 { (eval echo configure:2428: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2428 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2429 if test -z "$ac_err"; then
2430   rm -rf conftest*
2431   eval "ac_cv_header_$ac_safe=yes"
2432 else
2433   echo "$ac_err" >&5
2434   echo "configure: failed program was:" >&5
2435   cat conftest.$ac_ext >&5
2436   rm -rf conftest*
2437   eval "ac_cv_header_$ac_safe=no"
2438 fi
2439 rm -f conftest*
2440 fi
2441 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2442   echo "$ac_t""yes" 1>&6
2443     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2444   cat >> confdefs.h <<EOF
2445 #define $ac_tr_hdr 1
2446 EOF
2447  
2448 else
2449   echo "$ac_t""no" 1>&6
2450 fi
2451 done
2452
2453 for ac_hdr in sys/sockio.h
2454 do
2455 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2456 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2457 echo "configure:2458: checking for $ac_hdr" >&5
2458 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2459   echo $ac_n "(cached) $ac_c" 1>&6
2460 else
2461   cat > conftest.$ac_ext <<EOF
2462 #line 2463 "configure"
2463 #include "confdefs.h"
2464 #include <$ac_hdr>
2465 EOF
2466 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2467 { (eval echo configure:2468: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2468 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2469 if test -z "$ac_err"; then
2470   rm -rf conftest*
2471   eval "ac_cv_header_$ac_safe=yes"
2472 else
2473   echo "$ac_err" >&5
2474   echo "configure: failed program was:" >&5
2475   cat conftest.$ac_ext >&5
2476   rm -rf conftest*
2477   eval "ac_cv_header_$ac_safe=no"
2478 fi
2479 rm -f conftest*
2480 fi
2481 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2482   echo "$ac_t""yes" 1>&6
2483     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2484   cat >> confdefs.h <<EOF
2485 #define $ac_tr_hdr 1
2486 EOF
2487  
2488 else
2489   echo "$ac_t""no" 1>&6
2490 fi
2491 done
2492
2493 for ac_hdr in fcntl.h sys/time.h unistd.h
2494 do
2495 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2496 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2497 echo "configure:2498: checking for $ac_hdr" >&5
2498 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2499   echo $ac_n "(cached) $ac_c" 1>&6
2500 else
2501   cat > conftest.$ac_ext <<EOF
2502 #line 2503 "configure"
2503 #include "confdefs.h"
2504 #include <$ac_hdr>
2505 EOF
2506 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2507 { (eval echo configure:2508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2508 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2509 if test -z "$ac_err"; then
2510   rm -rf conftest*
2511   eval "ac_cv_header_$ac_safe=yes"
2512 else
2513   echo "$ac_err" >&5
2514   echo "configure: failed program was:" >&5
2515   cat conftest.$ac_ext >&5
2516   rm -rf conftest*
2517   eval "ac_cv_header_$ac_safe=no"
2518 fi
2519 rm -f conftest*
2520 fi
2521 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2522   echo "$ac_t""yes" 1>&6
2523     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2524   cat >> confdefs.h <<EOF
2525 #define $ac_tr_hdr 1
2526 EOF
2527  
2528 else
2529   echo "$ac_t""no" 1>&6
2530 fi
2531 done
2532
2533 for ac_hdr in sys/soundcard.h machine/soundcard.h
2534 do
2535 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2536 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2537 echo "configure:2538: checking for $ac_hdr" >&5
2538 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2539   echo $ac_n "(cached) $ac_c" 1>&6
2540 else
2541   cat > conftest.$ac_ext <<EOF
2542 #line 2543 "configure"
2543 #include "confdefs.h"
2544 #include <$ac_hdr>
2545 EOF
2546 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2547 { (eval echo configure:2548: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2548 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2549 if test -z "$ac_err"; then
2550   rm -rf conftest*
2551   eval "ac_cv_header_$ac_safe=yes"
2552 else
2553   echo "$ac_err" >&5
2554   echo "configure: failed program was:" >&5
2555   cat conftest.$ac_ext >&5
2556   rm -rf conftest*
2557   eval "ac_cv_header_$ac_safe=no"
2558 fi
2559 rm -f conftest*
2560 fi
2561 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2562   echo "$ac_t""yes" 1>&6
2563     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2564   cat >> confdefs.h <<EOF
2565 #define $ac_tr_hdr 1
2566 EOF
2567  
2568 else
2569   echo "$ac_t""no" 1>&6
2570 fi
2571 done
2572
2573 for ac_hdr in dlfcn.h image.h
2574 do
2575 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2576 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2577 echo "configure:2578: checking for $ac_hdr" >&5
2578 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2579   echo $ac_n "(cached) $ac_c" 1>&6
2580 else
2581   cat > conftest.$ac_ext <<EOF
2582 #line 2583 "configure"
2583 #include "confdefs.h"
2584 #include <$ac_hdr>
2585 EOF
2586 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2587 { (eval echo configure:2588: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2588 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2589 if test -z "$ac_err"; then
2590   rm -rf conftest*
2591   eval "ac_cv_header_$ac_safe=yes"
2592 else
2593   echo "$ac_err" >&5
2594   echo "configure: failed program was:" >&5
2595   cat conftest.$ac_ext >&5
2596   rm -rf conftest*
2597   eval "ac_cv_header_$ac_safe=no"
2598 fi
2599 rm -f conftest*
2600 fi
2601 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2602   echo "$ac_t""yes" 1>&6
2603     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2604   cat >> confdefs.h <<EOF
2605 #define $ac_tr_hdr 1
2606 EOF
2607  
2608 else
2609   echo "$ac_t""no" 1>&6
2610 fi
2611 done
2612
2613 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
2614 do
2615 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2616 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2617 echo "configure:2618: checking for $ac_hdr" >&5
2618 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2619   echo $ac_n "(cached) $ac_c" 1>&6
2620 else
2621   cat > conftest.$ac_ext <<EOF
2622 #line 2623 "configure"
2623 #include "confdefs.h"
2624 #include <$ac_hdr>
2625 EOF
2626 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2627 { (eval echo configure:2628: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2628 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2629 if test -z "$ac_err"; then
2630   rm -rf conftest*
2631   eval "ac_cv_header_$ac_safe=yes"
2632 else
2633   echo "$ac_err" >&5
2634   echo "configure: failed program was:" >&5
2635   cat conftest.$ac_ext >&5
2636   rm -rf conftest*
2637   eval "ac_cv_header_$ac_safe=no"
2638 fi
2639 rm -f conftest*
2640 fi
2641 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2642   echo "$ac_t""yes" 1>&6
2643     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2644   cat >> confdefs.h <<EOF
2645 #define $ac_tr_hdr 1
2646 EOF
2647  
2648 else
2649   echo "$ac_t""no" 1>&6
2650 fi
2651 done
2652
2653 for ac_hdr in machine/param.h
2654 do
2655 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2656 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2657 echo "configure:2658: checking for $ac_hdr" >&5
2658 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2659   echo $ac_n "(cached) $ac_c" 1>&6
2660 else
2661   cat > conftest.$ac_ext <<EOF
2662 #line 2663 "configure"
2663 #include "confdefs.h"
2664 #include <$ac_hdr>
2665 EOF
2666 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2667 { (eval echo configure:2668: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2668 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2669 if test -z "$ac_err"; then
2670   rm -rf conftest*
2671   eval "ac_cv_header_$ac_safe=yes"
2672 else
2673   echo "$ac_err" >&5
2674   echo "configure: failed program was:" >&5
2675   cat conftest.$ac_ext >&5
2676   rm -rf conftest*
2677   eval "ac_cv_header_$ac_safe=no"
2678 fi
2679 rm -f conftest*
2680 fi
2681 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2682   echo "$ac_t""yes" 1>&6
2683     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2684   cat >> confdefs.h <<EOF
2685 #define $ac_tr_hdr 1
2686 EOF
2687  
2688 else
2689   echo "$ac_t""no" 1>&6
2690 fi
2691 done
2692
2693
2694 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
2695 do
2696 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2697 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2698 echo "configure:2699: checking for $ac_hdr" >&5
2699 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2700   echo $ac_n "(cached) $ac_c" 1>&6
2701 else
2702   cat > conftest.$ac_ext <<EOF
2703 #line 2704 "configure"
2704 #include "confdefs.h"
2705 #include <$ac_hdr>
2706 EOF
2707 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2708 { (eval echo configure:2709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2709 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2710 if test -z "$ac_err"; then
2711   rm -rf conftest*
2712   eval "ac_cv_header_$ac_safe=yes"
2713 else
2714   echo "$ac_err" >&5
2715   echo "configure: failed program was:" >&5
2716   cat conftest.$ac_ext >&5
2717   rm -rf conftest*
2718   eval "ac_cv_header_$ac_safe=no"
2719 fi
2720 rm -f conftest*
2721 fi
2722 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2723   echo "$ac_t""yes" 1>&6
2724     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2725   cat >> confdefs.h <<EOF
2726 #define $ac_tr_hdr 1
2727 EOF
2728  
2729 else
2730   echo "$ac_t""no" 1>&6
2731 fi
2732 done
2733
2734
2735 save_CFLAGS=$CFLAGS
2736
2737 CFLAGS="${CFLAGS} -Wall -Werror"
2738 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
2739 echo "configure:2740: checking for ntohl in sys/param.h" >&5
2740 cat > conftest.$ac_ext <<EOF
2741 #line 2742 "configure"
2742 #include "confdefs.h"
2743 #include <sys/param.h>
2744 void foo() { int meuh; ntohl(meuh); }
2745 int main() {
2746
2747 ; return 0; }
2748 EOF
2749 if { (eval echo configure:2750: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2750   rm -rf conftest*
2751   cat >> confdefs.h <<\EOF
2752 #define NTOHL_IN_SYS_PARAM_H 1
2753 EOF
2754
2755  echo "$ac_t""yes" 1>&6
2756 else
2757   echo "configure: failed program was:" >&5
2758   cat conftest.$ac_ext >&5
2759   rm -rf conftest*
2760   echo "$ac_t""no" 1>&6
2761 fi
2762 rm -f conftest*
2763
2764 CFLAGS="${CFLAGS} -rdynamic -Wall -Werror"
2765 echo $ac_n "checking if \$CC accepts -rdynamic""... $ac_c" 1>&6
2766 echo "configure:2767: checking if \$CC accepts -rdynamic" >&5
2767 cat > conftest.$ac_ext <<EOF
2768 #line 2769 "configure"
2769 #include "confdefs.h"
2770
2771 int main() {
2772
2773 ; return 0; }
2774 EOF
2775 if { (eval echo configure:2776: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2776   rm -rf conftest*
2777   LCFLAGS=${LCFLAGS}" -rdynamic"
2778  echo "$ac_t""yes" 1>&6
2779 else
2780   echo "configure: failed program was:" >&5
2781   cat conftest.$ac_ext >&5
2782   rm -rf conftest*
2783   echo "$ac_t""no" 1>&6
2784 fi
2785 rm -f conftest*
2786
2787 CFLAGS=$save_CFLAGS
2788
2789 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
2790 echo "configure:2791: checking for boolean_t in sys/types.h" >&5
2791 cat > conftest.$ac_ext <<EOF
2792 #line 2793 "configure"
2793 #include "confdefs.h"
2794 #include <sys/types.h>
2795 void quux() { boolean_t foo; }
2796 int main() {
2797
2798 ; return 0; }
2799 EOF
2800 if { (eval echo configure:2801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2801   rm -rf conftest*
2802   cat >> confdefs.h <<\EOF
2803 #define BOOLEAN_T_IN_SYS_TYPES_H 1
2804 EOF
2805
2806  echo "$ac_t""yes" 1>&6
2807 else
2808   echo "configure: failed program was:" >&5
2809   cat conftest.$ac_ext >&5
2810   rm -rf conftest*
2811   echo "$ac_t""no" 1>&6
2812 fi
2813 rm -f conftest*
2814 echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
2815 echo "configure:2816: checking for boolean_t in pthread.h" >&5
2816 cat > conftest.$ac_ext <<EOF
2817 #line 2818 "configure"
2818 #include "confdefs.h"
2819 #include <pthread.h>
2820 void quux() { boolean_t foo; }
2821 int main() {
2822
2823 ; return 0; }
2824 EOF
2825 if { (eval echo configure:2826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2826   rm -rf conftest*
2827   cat >> confdefs.h <<\EOF
2828 #define BOOLEAN_T_IN_PTHREAD_H 1
2829 EOF
2830
2831  echo "$ac_t""yes" 1>&6
2832 else
2833   echo "configure: failed program was:" >&5
2834   cat conftest.$ac_ext >&5
2835   rm -rf conftest*
2836   echo "$ac_t""no" 1>&6
2837 fi
2838 rm -f conftest*
2839
2840 echo $ac_n "checking for working const""... $ac_c" 1>&6
2841 echo "configure:2842: checking for working const" >&5
2842 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2843   echo $ac_n "(cached) $ac_c" 1>&6
2844 else
2845   cat > conftest.$ac_ext <<EOF
2846 #line 2847 "configure"
2847 #include "confdefs.h"
2848
2849 int main() {
2850
2851 /* Ultrix mips cc rejects this.  */
2852 typedef int charset[2]; const charset x;
2853 /* SunOS 4.1.1 cc rejects this.  */
2854 char const *const *ccp;
2855 char **p;
2856 /* NEC SVR4.0.2 mips cc rejects this.  */
2857 struct point {int x, y;};
2858 static struct point const zero = {0,0};
2859 /* AIX XL C 1.02.0.0 rejects this.
2860    It does not let you subtract one const X* pointer from another in an arm
2861    of an if-expression whose if-part is not a constant expression */
2862 const char *g = "string";
2863 ccp = &g + (g ? g-g : 0);
2864 /* HPUX 7.0 cc rejects these. */
2865 ++ccp;
2866 p = (char**) ccp;
2867 ccp = (char const *const *) p;
2868 { /* SCO 3.2v4 cc rejects this.  */
2869   char *t;
2870   char const *s = 0 ? (char *) 0 : (char const *) 0;
2871
2872   *t++ = 0;
2873 }
2874 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
2875   int x[] = {25, 17};
2876   const int *foo = &x[0];
2877   ++foo;
2878 }
2879 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2880   typedef const int *iptr;
2881   iptr p = 0;
2882   ++p;
2883 }
2884 { /* AIX XL C 1.02.0.0 rejects this saying
2885      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2886   struct s { int j; const int *ap[3]; };
2887   struct s *b; b->j = 5;
2888 }
2889 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2890   const int foo = 10;
2891 }
2892
2893 ; return 0; }
2894 EOF
2895 if { (eval echo configure:2896: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2896   rm -rf conftest*
2897   ac_cv_c_const=yes
2898 else
2899   echo "configure: failed program was:" >&5
2900   cat conftest.$ac_ext >&5
2901   rm -rf conftest*
2902   ac_cv_c_const=no
2903 fi
2904 rm -f conftest*
2905 fi
2906
2907 echo "$ac_t""$ac_cv_c_const" 1>&6
2908 if test $ac_cv_c_const = no; then
2909   cat >> confdefs.h <<\EOF
2910 #define const 
2911 EOF
2912
2913 fi
2914
2915 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2916 echo "configure:2917: checking for ANSI C header files" >&5
2917 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2918   echo $ac_n "(cached) $ac_c" 1>&6
2919 else
2920   cat > conftest.$ac_ext <<EOF
2921 #line 2922 "configure"
2922 #include "confdefs.h"
2923 #include <stdlib.h>
2924 #include <stdarg.h>
2925 #include <string.h>
2926 #include <float.h>
2927 EOF
2928 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2929 { (eval echo configure:2930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2930 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2931 if test -z "$ac_err"; then
2932   rm -rf conftest*
2933   ac_cv_header_stdc=yes
2934 else
2935   echo "$ac_err" >&5
2936   echo "configure: failed program was:" >&5
2937   cat conftest.$ac_ext >&5
2938   rm -rf conftest*
2939   ac_cv_header_stdc=no
2940 fi
2941 rm -f conftest*
2942
2943 if test $ac_cv_header_stdc = yes; then
2944   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2945 cat > conftest.$ac_ext <<EOF
2946 #line 2947 "configure"
2947 #include "confdefs.h"
2948 #include <string.h>
2949 EOF
2950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2951   egrep "memchr" >/dev/null 2>&1; then
2952   :
2953 else
2954   rm -rf conftest*
2955   ac_cv_header_stdc=no
2956 fi
2957 rm -f conftest*
2958
2959 fi
2960
2961 if test $ac_cv_header_stdc = yes; then
2962   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2963 cat > conftest.$ac_ext <<EOF
2964 #line 2965 "configure"
2965 #include "confdefs.h"
2966 #include <stdlib.h>
2967 EOF
2968 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2969   egrep "free" >/dev/null 2>&1; then
2970   :
2971 else
2972   rm -rf conftest*
2973   ac_cv_header_stdc=no
2974 fi
2975 rm -f conftest*
2976
2977 fi
2978
2979 if test $ac_cv_header_stdc = yes; then
2980   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2981 if test "$cross_compiling" = yes; then
2982   :
2983 else
2984   cat > conftest.$ac_ext <<EOF
2985 #line 2986 "configure"
2986 #include "confdefs.h"
2987 #include <ctype.h>
2988 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2989 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2990 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2991 int main () { int i; for (i = 0; i < 256; i++)
2992 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2993 exit (0); }
2994
2995 EOF
2996 if { (eval echo configure:2997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2997 then
2998   :
2999 else
3000   echo "configure: failed program was:" >&5
3001   cat conftest.$ac_ext >&5
3002   rm -fr conftest*
3003   ac_cv_header_stdc=no
3004 fi
3005 rm -fr conftest*
3006 fi
3007
3008 fi
3009 fi
3010
3011 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3012 if test $ac_cv_header_stdc = yes; then
3013   cat >> confdefs.h <<\EOF
3014 #define STDC_HEADERS 1
3015 EOF
3016
3017 fi
3018
3019 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3020 echo "configure:3021: checking for size_t" >&5
3021 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3022   echo $ac_n "(cached) $ac_c" 1>&6
3023 else
3024   cat > conftest.$ac_ext <<EOF
3025 #line 3026 "configure"
3026 #include "confdefs.h"
3027 #include <sys/types.h>
3028 #if STDC_HEADERS
3029 #include <stdlib.h>
3030 #include <stddef.h>
3031 #endif
3032 EOF
3033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3034   egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3035   rm -rf conftest*
3036   ac_cv_type_size_t=yes
3037 else
3038   rm -rf conftest*
3039   ac_cv_type_size_t=no
3040 fi
3041 rm -f conftest*
3042
3043 fi
3044 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3045 if test $ac_cv_type_size_t = no; then
3046   cat >> confdefs.h <<\EOF
3047 #define size_t unsigned
3048 EOF
3049
3050 fi
3051
3052 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3053 echo "configure:3054: checking whether time.h and sys/time.h may both be included" >&5
3054 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3055   echo $ac_n "(cached) $ac_c" 1>&6
3056 else
3057   cat > conftest.$ac_ext <<EOF
3058 #line 3059 "configure"
3059 #include "confdefs.h"
3060 #include <sys/types.h>
3061 #include <sys/time.h>
3062 #include <time.h>
3063 int main() {
3064 struct tm *tp;
3065 ; return 0; }
3066 EOF
3067 if { (eval echo configure:3068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3068   rm -rf conftest*
3069   ac_cv_header_time=yes
3070 else
3071   echo "configure: failed program was:" >&5
3072   cat conftest.$ac_ext >&5
3073   rm -rf conftest*
3074   ac_cv_header_time=no
3075 fi
3076 rm -f conftest*
3077 fi
3078
3079 echo "$ac_t""$ac_cv_header_time" 1>&6
3080 if test $ac_cv_header_time = yes; then
3081   cat >> confdefs.h <<\EOF
3082 #define TIME_WITH_SYS_TIME 1
3083 EOF
3084
3085 fi
3086
3087
3088 ARCH=${host_cpu}
3089
3090 #PLUGINS=${PLUGINS}"ps ts yuv idct idctclassic motion "
3091 BUILTINS=${BUILTINS}"ps ts yuv idct idctclassic motion "
3092 if test x$host_os = xbeos; then
3093     ACCEL_PLUGINS="yuvmmx idctmmx motionmmx "
3094 else
3095     ACCEL_PLUGINS="yuvmmx idctmmx idctmmxext motionmmx motionmmxext "
3096 fi
3097
3098 for ac_hdr in sys/ioctl.h
3099 do
3100 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3101 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3102 echo "configure:3103: checking for $ac_hdr" >&5
3103 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3104   echo $ac_n "(cached) $ac_c" 1>&6
3105 else
3106   cat > conftest.$ac_ext <<EOF
3107 #line 3108 "configure"
3108 #include "confdefs.h"
3109 #include <$ac_hdr>
3110 EOF
3111 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3112 { (eval echo configure:3113: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3113 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3114 if test -z "$ac_err"; then
3115   rm -rf conftest*
3116   eval "ac_cv_header_$ac_safe=yes"
3117 else
3118   echo "$ac_err" >&5
3119   echo "configure: failed program was:" >&5
3120   cat conftest.$ac_ext >&5
3121   rm -rf conftest*
3122   eval "ac_cv_header_$ac_safe=no"
3123 fi
3124 rm -f conftest*
3125 fi
3126 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3127   echo "$ac_t""yes" 1>&6
3128     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3129   cat >> confdefs.h <<EOF
3130 #define $ac_tr_hdr 1
3131 EOF
3132  
3133   BUILTINS=${BUILTINS}"dvd "
3134   for ac_hdr in linux/cdrom.h
3135 do
3136 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3137 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3138 echo "configure:3139: checking for $ac_hdr" >&5
3139 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3140   echo $ac_n "(cached) $ac_c" 1>&6
3141 else
3142   cat > conftest.$ac_ext <<EOF
3143 #line 3144 "configure"
3144 #include "confdefs.h"
3145 #include <$ac_hdr>
3146 EOF
3147 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3148 { (eval echo configure:3149: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3149 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3150 if test -z "$ac_err"; then
3151   rm -rf conftest*
3152   eval "ac_cv_header_$ac_safe=yes"
3153 else
3154   echo "$ac_err" >&5
3155   echo "configure: failed program was:" >&5
3156   cat conftest.$ac_ext >&5
3157   rm -rf conftest*
3158   eval "ac_cv_header_$ac_safe=no"
3159 fi
3160 rm -f conftest*
3161 fi
3162 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3163   echo "$ac_t""yes" 1>&6
3164     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3165   cat >> confdefs.h <<EOF
3166 #define $ac_tr_hdr 1
3167 EOF
3168  
3169 else
3170   echo "$ac_t""no" 1>&6
3171 fi
3172 done
3173
3174   cat > conftest.$ac_ext <<EOF
3175 #line 3176 "configure"
3176 #include "confdefs.h"
3177 #include <linux/cdrom.h>
3178 EOF
3179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3180   egrep "dvd" >/dev/null 2>&1; then
3181   rm -rf conftest*
3182   
3183     cat >> confdefs.h <<\EOF
3184 #define LINUX_DVD 1
3185 EOF
3186
3187   
3188 fi
3189 rm -f conftest*
3190
3191
3192 else
3193   echo "$ac_t""no" 1>&6
3194 fi
3195 done
3196
3197
3198 # Check whether --enable-dummy or --disable-dummy was given.
3199 if test "${enable_dummy+set}" = set; then
3200   enableval="$enable_dummy"
3201   :
3202 fi
3203
3204 if test x$enable_dummy != xno; then
3205   BUILTINS=${BUILTINS}"dummy "; fi
3206
3207 # Check whether --enable-null or --disable-null was given.
3208 if test "${enable_null+set}" = set; then
3209   enableval="$enable_null"
3210   :
3211 fi
3212
3213 if test x$enable_null != xno; then
3214   BUILTINS=${BUILTINS}"null "; fi
3215
3216 # Check whether --enable-ppro or --disable-ppro was given.
3217 if test "${enable_ppro+set}" = set; then
3218   enableval="$enable_ppro"
3219    if test x$enableval = xyes; then ARCH=${ARCH}" ppro"; fi 
3220 else
3221    if test x${host_cpu} = xi686; then ARCH=${ARCH}" ppro"; fi 
3222 fi
3223
3224
3225 # Check whether --enable-mmx or --disable-mmx was given.
3226 if test "${enable_mmx+set}" = set; then
3227   enableval="$enable_mmx"
3228    if test x$enableval = xyes; then ARCH=${ARCH}" mmx";
3229   BUILTINS=${BUILTINS}}${ACCEL_PLUGINS}; fi 
3230 else
3231    if test x${host_cpu} = xi686 -o x${host_cpu} = xi586 -o x${host_cpu} = xx86; then ARCH=${ARCH}" mmx";
3232   BUILTINS=${BUILTINS}${ACCEL_PLUGINS}; fi 
3233 fi
3234
3235
3236 # Check whether --enable-altivec or --disable-altivec was given.
3237 if test "${enable_altivec+set}" = set; then
3238   enableval="$enable_altivec"
3239    if test x$enableval = xyes; then ARCH=${ARCH}" altivec";
3240     BUILTINS=${BUILTINS}"idctaltivec "
3241     LIB_IDCTALTIVEC="-framework vecLib"
3242   fi 
3243 fi
3244
3245 #[ if test -d /System/Library/Frameworks/vecLib.framework; then ARCH=${ARCH}" altivec"; PLUGINS=${PLUGINS}"idctaltivec "; fi ])
3246
3247 # Check whether --enable-css or --disable-css was given.
3248 if test "${enable_css+set}" = set; then
3249   enableval="$enable_css"
3250    if test x$enableval = xyes; then CSS=1; else CSS=0; fi 
3251 else
3252    CSS=1; 
3253 fi
3254
3255 if test x${CSS} = x1; then cat >> confdefs.h <<\EOF
3256 #define HAVE_CSS 1
3257 EOF
3258  fi
3259
3260 # Check whether --enable-debug or --disable-debug was given.
3261 if test "${enable_debug+set}" = set; then
3262   enableval="$enable_debug"
3263    if test x$enableval = xyes; then DEBUG=1; fi 
3264 fi
3265
3266
3267 # Check whether --enable-stats or --disable-stats was given.
3268 if test "${enable_stats+set}" = set; then
3269   enableval="$enable_stats"
3270    if test x$enableval = xyes; then STATS=1; fi 
3271 fi
3272
3273
3274 # Check whether --enable-optimizations or --disable-optimizations was given.
3275 if test "${enable_optimizations+set}" = set; then
3276   enableval="$enable_optimizations"
3277    if test x$enableval = xno; then OPTIMS=0; fi 
3278 else
3279    OPTIMS=1 
3280 fi
3281
3282
3283 SYS=${host_os}
3284
3285 if test x$host_os = xbeos; then
3286     BUILTINS=${BUILTINS}"beos "
3287     LIB_BEOS="-lbe -lgame -lroot -ltracker"
3288
3289 else
3290
3291 # Check whether --enable-dsp or --disable-dsp was given.
3292 if test "${enable_dsp+set}" = set; then
3293   enableval="$enable_dsp"
3294   :
3295 fi
3296
3297 if test x$enable_dsp != xno; then
3298   if test -c /dev/dsp; then
3299     PLUGINS=${PLUGINS}"dsp "
3300   fi
3301 fi
3302
3303 # Check whether --enable-esd or --disable-esd was given.
3304 if test "${enable_esd+set}" = set; then
3305   enableval="$enable_esd"
3306   if test x$enable_esd = xyes; then
3307      PLUGINS=${PLUGINS}"esd "
3308      LIB_ESD="`esd-config --libs`"
3309    fi
3310 fi
3311
3312
3313 # Check whether --enable-darwin or --disable-darwin was given.
3314 if test "${enable_darwin+set}" = set; then
3315   enableval="$enable_darwin"
3316   if test x$enable_darwin = xyes; then
3317      PLUGINS=${PLUGINS}"darwin "
3318      LIB_DARWIN="-framework CoreAudio"
3319    fi
3320 fi
3321
3322
3323 # Check whether --enable-macosx or --disable-macosx was given.
3324 if test "${enable_macosx+set}" = set; then
3325   enableval="$enable_macosx"
3326   if test x$enable_macosx = xyes; then
3327      BUILTINS=${BUILTINS}"macosx "
3328      LIB_MACOSX="-framework CoreAudio -framework Carbon -framework AGL"
3329      LIB_TS=${LIB_TS}" -framework AGL -framework Carbon"
3330      LIB_SDL=${LIB_SDL}" -framework AGL -framework Carbon"
3331    fi
3332 else
3333   for ac_hdr in Carbon/Carbon.h
3334 do
3335 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3336 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3337 echo "configure:3338: checking for $ac_hdr" >&5
3338 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3339   echo $ac_n "(cached) $ac_c" 1>&6
3340 else
3341   cat > conftest.$ac_ext <<EOF
3342 #line 3343 "configure"
3343 #include "confdefs.h"
3344 #include <$ac_hdr>
3345 EOF
3346 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3347 { (eval echo configure:3348: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3348 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3349 if test -z "$ac_err"; then
3350   rm -rf conftest*
3351   eval "ac_cv_header_$ac_safe=yes"
3352 else
3353   echo "$ac_err" >&5
3354   echo "configure: failed program was:" >&5
3355   cat conftest.$ac_ext >&5
3356   rm -rf conftest*
3357   eval "ac_cv_header_$ac_safe=no"
3358 fi
3359 rm -f conftest*
3360 fi
3361 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3362   echo "$ac_t""yes" 1>&6
3363     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3364   cat >> confdefs.h <<EOF
3365 #define $ac_tr_hdr 1
3366 EOF
3367  BUILTINS=${BUILTINS}"macosx "
3368      LIB_MACOSX="-framework CoreAudio -framework Carbon -framework AGL"
3369      LIB_TS=${LIB_TS}" -framework AGL -framework Carbon"
3370      LIB_SDL=${LIB_SDL}" -framework AGL -framework Carbon"
3371    
3372 else
3373   echo "$ac_t""no" 1>&6
3374 fi
3375 done
3376
3377 fi
3378
3379
3380 # Check whether --enable-fb or --disable-fb was given.
3381 if test "${enable_fb+set}" = set; then
3382   enableval="$enable_fb"
3383   if test x$enable_fb = xyes; then PLUGINS=${PLUGINS}"fb "; fi
3384 fi
3385
3386
3387 # Check whether --with-ggi or --without-ggi was given.
3388 if test "${with_ggi+set}" = set; then
3389   withval="$with_ggi"
3390    if test "x$withval" != "xno";
3391     then
3392       PLUGINS=${PLUGINS}"ggi ";
3393       if test "x$withval" != "xyes";
3394       then
3395         LIB_GGI="-l"$withval
3396       else
3397         LIB_GGI="-lggi"
3398       fi
3399     fi 
3400 fi
3401
3402
3403 # Check whether --with-sdl or --without-sdl was given.
3404 if test "${with_sdl+set}" = set; then
3405   withval="$with_sdl"
3406    if test "x$withval" != "xno";
3407     then
3408       PLUGINS=${PLUGINS}"sdl ";
3409       if test "x$withval" != "xyes";
3410       then
3411         LIB_SDL=${LIB_SDL}" -L/usr/X11R6/lib -L"$withval"/lib -l"$withval
3412         INCLUDE=${INCLUDE}" -I"$withval"/include"
3413       else
3414         for ac_hdr in SDL/SDL.h
3415 do
3416 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3417 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3418 echo "configure:3419: checking for $ac_hdr" >&5
3419 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3420   echo $ac_n "(cached) $ac_c" 1>&6
3421 else
3422   cat > conftest.$ac_ext <<EOF
3423 #line 3424 "configure"
3424 #include "confdefs.h"
3425 #include <$ac_hdr>
3426 EOF
3427 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3428 { (eval echo configure:3429: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3429 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3430 if test -z "$ac_err"; then
3431   rm -rf conftest*
3432   eval "ac_cv_header_$ac_safe=yes"
3433 else
3434   echo "$ac_err" >&5
3435   echo "configure: failed program was:" >&5
3436   cat conftest.$ac_ext >&5
3437   rm -rf conftest*
3438   eval "ac_cv_header_$ac_safe=no"
3439 fi
3440 rm -f conftest*
3441 fi
3442 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3443   echo "$ac_t""yes" 1>&6
3444     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3445   cat >> confdefs.h <<EOF
3446 #define $ac_tr_hdr 1
3447 EOF
3448  
3449 else
3450   echo "$ac_t""no" 1>&6
3451 echo "Cannot find SDL headers !"; exit
3452 fi
3453 done
3454
3455         LIB_SDL=${LIB_SDL}" -L/usr/X11R6/lib -lSDL"
3456       fi
3457     fi 
3458 fi
3459
3460     if test "x$withval" = "x";
3461     then
3462       for ac_hdr in SDL/SDL.h
3463 do
3464 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3465 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3466 echo "configure:3467: checking for $ac_hdr" >&5
3467 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3468   echo $ac_n "(cached) $ac_c" 1>&6
3469 else
3470   cat > conftest.$ac_ext <<EOF
3471 #line 3472 "configure"
3472 #include "confdefs.h"
3473 #include <$ac_hdr>
3474 EOF
3475 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3476 { (eval echo configure:3477: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3477 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3478 if test -z "$ac_err"; then
3479   rm -rf conftest*
3480   eval "ac_cv_header_$ac_safe=yes"
3481 else
3482   echo "$ac_err" >&5
3483   echo "configure: failed program was:" >&5
3484   cat conftest.$ac_ext >&5
3485   rm -rf conftest*
3486   eval "ac_cv_header_$ac_safe=no"
3487 fi
3488 rm -f conftest*
3489 fi
3490 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3491   echo "$ac_t""yes" 1>&6
3492     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3493   cat >> confdefs.h <<EOF
3494 #define $ac_tr_hdr 1
3495 EOF
3496  PLUGINS=${PLUGINS}"sdl "
3497        LIB_SDL=${LIB_SDL}" -L/usr/X11R6/lib -lSDL"
3498 else
3499   echo "$ac_t""no" 1>&6
3500 fi
3501 done
3502
3503     fi
3504
3505 # Check whether --with-glide or --without-glide was given.
3506 if test "${with_glide+set}" = set; then
3507   withval="$with_glide"
3508    if test "x$withval" != "xno";
3509     then
3510       PLUGINS=${PLUGINS}"glide ";
3511       if test "x$withval" != "xyes";
3512       then
3513         LIB_GLIDE="-l"$withval
3514       else
3515         LIB_GLIDE="-lglide2x"
3516       fi
3517     fi 
3518 fi
3519
3520
3521 # Check whether --enable-ncurses or --disable-ncurses was given.
3522 if test "${enable_ncurses+set}" = set; then
3523   enableval="$enable_ncurses"
3524   if test x$enable_ncurses = xyes; then
3525      PLUGINS=${PLUGINS}"ncurses "
3526      LIB_NCURSES="-lncurses"
3527    fi
3528 fi
3529
3530
3531 # Check whether --enable-qt or --disable-qt was given.
3532 if test "${enable_qt+set}" = set; then
3533   enableval="$enable_qt"
3534   if test x$enable_qt = xyes; then
3535      PLUGINS=${PLUGINS}"qt "
3536      ALIASES=${ALIASES}"qvlc "
3537      LIB_QT="-lqt -L${QTDIR}/lib"
3538    fi
3539 fi
3540
3541
3542 # Check whether --enable-kde or --disable-kde was given.
3543 if test "${enable_kde+set}" = set; then
3544   enableval="$enable_kde"
3545   if test x$enable_kde = xyes; then PLUGINS=${PLUGINS}"kde "; ALIASES=${ALIASES}"kvlc "; fi
3546 fi
3547
3548
3549 # Check whether --enable-gnome or --disable-gnome was given.
3550 if test "${enable_gnome+set}" = set; then
3551   enableval="$enable_gnome"
3552   if test x$enable_gnome = xyes; then
3553      PLUGINS=${PLUGINS}"gnome "
3554      ALIASES=${ALIASES}"gnome-vlc "
3555      LIB_GNOME="`gnome-config --libs gnomeui | sed 's,-rdynamic,,'`"
3556    fi
3557 fi
3558
3559
3560 # Check whether --enable-gtk or --disable-gtk was given.
3561 if test "${enable_gtk+set}" = set; then
3562   enableval="$enable_gtk"
3563   :
3564 fi
3565
3566 if test x$enable_gtk != xno; then
3567   if which gtk-config; then
3568     PLUGINS=${PLUGINS}"gtk "
3569     ALIASES=${ALIASES}"gvlc "
3570     LIB_GTK="`gtk-config --libs gtk | sed 's,-rdynamic,,'`"
3571   fi
3572 fi
3573
3574 # Check whether --enable-x11 or --disable-x11 was given.
3575 if test "${enable_x11+set}" = set; then
3576   enableval="$enable_x11"
3577   :
3578 fi
3579
3580 if test x$enable_x11 != xno; then
3581   for ac_hdr in X11/Xlib.h
3582 do
3583 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3584 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3585 echo "configure:3586: checking for $ac_hdr" >&5
3586 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3587   echo $ac_n "(cached) $ac_c" 1>&6
3588 else
3589   cat > conftest.$ac_ext <<EOF
3590 #line 3591 "configure"
3591 #include "confdefs.h"
3592 #include <$ac_hdr>
3593 EOF
3594 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3595 { (eval echo configure:3596: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3596 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3597 if test -z "$ac_err"; then
3598   rm -rf conftest*
3599   eval "ac_cv_header_$ac_safe=yes"
3600 else
3601   echo "$ac_err" >&5
3602   echo "configure: failed program was:" >&5
3603   cat conftest.$ac_ext >&5
3604   rm -rf conftest*
3605   eval "ac_cv_header_$ac_safe=no"
3606 fi
3607 rm -f conftest*
3608 fi
3609 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3610   echo "$ac_t""yes" 1>&6
3611     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3612   cat >> confdefs.h <<EOF
3613 #define $ac_tr_hdr 1
3614 EOF
3615  
3616     PLUGINS=${PLUGINS}"x11 "
3617     LIB_X11="-L/usr/X11R6/lib -lX11 -lXext"
3618   
3619 else
3620   echo "$ac_t""no" 1>&6
3621 fi
3622 done
3623
3624 fi
3625
3626 # Check whether --enable-xvideo or --disable-xvideo was given.
3627 if test "${enable_xvideo+set}" = set; then
3628   enableval="$enable_xvideo"
3629   if test x$enable_xvideo = xyes; then
3630      PLUGINS=${PLUGINS}"xvideo "
3631      LIB_XVIDEO="-L/usr/X11R6/lib -lX11 -lXext -lXv"
3632    fi
3633 fi
3634
3635
3636 # Check whether --enable-alsa or --disable-alsa was given.
3637 if test "${enable_alsa+set}" = set; then
3638   enableval="$enable_alsa"
3639   if test x$enable_alsa = xyes; then ac_safe=`echo "sys/asoundlib.h" | sed 'y%./+-%__p_%'`
3640 echo $ac_n "checking for sys/asoundlib.h""... $ac_c" 1>&6
3641 echo "configure:3642: checking for sys/asoundlib.h" >&5
3642 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3643   echo $ac_n "(cached) $ac_c" 1>&6
3644 else
3645   cat > conftest.$ac_ext <<EOF
3646 #line 3647 "configure"
3647 #include "confdefs.h"
3648 #include <sys/asoundlib.h>
3649 EOF
3650 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3651 { (eval echo configure:3652: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3652 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3653 if test -z "$ac_err"; then
3654   rm -rf conftest*
3655   eval "ac_cv_header_$ac_safe=yes"
3656 else
3657   echo "$ac_err" >&5
3658   echo "configure: failed program was:" >&5
3659   cat conftest.$ac_ext >&5
3660   rm -rf conftest*
3661   eval "ac_cv_header_$ac_safe=no"
3662 fi
3663 rm -f conftest*
3664 fi
3665 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3666   echo "$ac_t""yes" 1>&6
3667   echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
3668 echo "configure:3669: checking for main in -lasound" >&5
3669 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
3670 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3671   echo $ac_n "(cached) $ac_c" 1>&6
3672 else
3673   ac_save_LIBS="$LIBS"
3674 LIBS="-lasound  $LIBS"
3675 cat > conftest.$ac_ext <<EOF
3676 #line 3677 "configure"
3677 #include "confdefs.h"
3678
3679 int main() {
3680 main()
3681 ; return 0; }
3682 EOF
3683 if { (eval echo configure:3684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3684   rm -rf conftest*
3685   eval "ac_cv_lib_$ac_lib_var=yes"
3686 else
3687   echo "configure: failed program was:" >&5
3688   cat conftest.$ac_ext >&5
3689   rm -rf conftest*
3690   eval "ac_cv_lib_$ac_lib_var=no"
3691 fi
3692 rm -f conftest*
3693 LIBS="$ac_save_LIBS"
3694
3695 fi
3696 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3697   echo "$ac_t""yes" 1>&6
3698   have_alsa="true"
3699 else
3700   echo "$ac_t""no" 1>&6
3701 have_alsa="false"
3702 fi
3703
3704 else
3705   echo "$ac_t""no" 1>&6
3706 have_alsa="false"
3707 fi
3708  if test $have_alsa = true; then
3709      PLUGINS=${PLUGINS}"alsa "
3710      LIB_ALSA="-lasound"
3711    fi; fi
3712 fi
3713
3714
3715 fi
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749 trap '' 1 2 15
3750 cat > confcache <<\EOF
3751 # This file is a shell script that caches the results of configure
3752 # tests run on this system so they can be shared between configure
3753 # scripts and configure runs.  It is not useful on other systems.
3754 # If it contains results you don't want to keep, you may remove or edit it.
3755 #
3756 # By default, configure uses ./config.cache as the cache file,
3757 # creating it if it does not exist already.  You can give configure
3758 # the --cache-file=FILE option to use a different cache file; that is
3759 # what configure does when it calls configure scripts in
3760 # subdirectories, so they share the cache.
3761 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3762 # config.status only pays attention to the cache file if you give it the
3763 # --recheck option to rerun configure.
3764 #
3765 EOF
3766 # The following way of writing the cache mishandles newlines in values,
3767 # but we know of no workaround that is simple, portable, and efficient.
3768 # So, don't put newlines in cache variables' values.
3769 # Ultrix sh set writes to stderr and can't be redirected directly,
3770 # and sets the high bit in the cache file unless we assign to the vars.
3771 (set) 2>&1 |
3772   case `(ac_space=' '; set | grep ac_space) 2>&1` in
3773   *ac_space=\ *)
3774     # `set' does not quote correctly, so add quotes (double-quote substitution
3775     # turns \\\\ into \\, and sed turns \\ into \).
3776     sed -n \
3777       -e "s/'/'\\\\''/g" \
3778       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3779     ;;
3780   *)
3781     # `set' quotes correctly as required by POSIX, so do not add quotes.
3782     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3783     ;;
3784   esac >> confcache
3785 if cmp -s $cache_file confcache; then
3786   :
3787 else
3788   if test -w $cache_file; then
3789     echo "updating cache $cache_file"
3790     cat confcache > $cache_file
3791   else
3792     echo "not updating unwritable cache $cache_file"
3793   fi
3794 fi
3795 rm -f confcache
3796
3797 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3798
3799 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3800 # Let make expand exec_prefix.
3801 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3802
3803 # Any assignment to VPATH causes Sun make to only execute
3804 # the first set of double-colon rules, so remove it if not needed.
3805 # If there is a colon in the path, we need to keep it.
3806 if test "x$srcdir" = x.; then
3807   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
3808 fi
3809
3810 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3811
3812 DEFS=-DHAVE_CONFIG_H
3813
3814 # Without the "./", some shells look in PATH for config.status.
3815 : ${CONFIG_STATUS=./config.status}
3816
3817 echo creating $CONFIG_STATUS
3818 rm -f $CONFIG_STATUS
3819 cat > $CONFIG_STATUS <<EOF
3820 #! /bin/sh
3821 # Generated automatically by configure.
3822 # Run this file to recreate the current configuration.
3823 # This directory was configured as follows,
3824 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3825 #
3826 # $0 $ac_configure_args
3827 #
3828 # Compiler output produced by configure, useful for debugging
3829 # configure, is in ./config.log if it exists.
3830
3831 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3832 for ac_option
3833 do
3834   case "\$ac_option" in
3835   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3836     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3837     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3838   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3839     echo "$CONFIG_STATUS generated by autoconf version 2.13"
3840     exit 0 ;;
3841   -help | --help | --hel | --he | --h)
3842     echo "\$ac_cs_usage"; exit 0 ;;
3843   *) echo "\$ac_cs_usage"; exit 1 ;;
3844   esac
3845 done
3846
3847 ac_given_srcdir=$srcdir
3848 ac_given_INSTALL="$INSTALL"
3849
3850 trap 'rm -fr `echo "Makefile.opts include/config.h include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3851 EOF
3852 cat >> $CONFIG_STATUS <<EOF
3853
3854 # Protect against being on the right side of a sed subst in config.status.
3855 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3856  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3857 $ac_vpsub
3858 $extrasub
3859 s%@SHELL@%$SHELL%g
3860 s%@CFLAGS@%$CFLAGS%g
3861 s%@CPPFLAGS@%$CPPFLAGS%g
3862 s%@CXXFLAGS@%$CXXFLAGS%g
3863 s%@FFLAGS@%$FFLAGS%g
3864 s%@DEFS@%$DEFS%g
3865 s%@LDFLAGS@%$LDFLAGS%g
3866 s%@LIBS@%$LIBS%g
3867 s%@exec_prefix@%$exec_prefix%g
3868 s%@prefix@%$prefix%g
3869 s%@program_transform_name@%$program_transform_name%g
3870 s%@bindir@%$bindir%g
3871 s%@sbindir@%$sbindir%g
3872 s%@libexecdir@%$libexecdir%g
3873 s%@datadir@%$datadir%g
3874 s%@sysconfdir@%$sysconfdir%g
3875 s%@sharedstatedir@%$sharedstatedir%g
3876 s%@localstatedir@%$localstatedir%g
3877 s%@libdir@%$libdir%g
3878 s%@includedir@%$includedir%g
3879 s%@oldincludedir@%$oldincludedir%g
3880 s%@infodir@%$infodir%g
3881 s%@mandir@%$mandir%g
3882 s%@host@%$host%g
3883 s%@host_alias@%$host_alias%g
3884 s%@host_cpu@%$host_cpu%g
3885 s%@host_vendor@%$host_vendor%g
3886 s%@host_os@%$host_os%g
3887 s%@VLC_VERSION@%$VLC_VERSION%g
3888 s%@VLC_CODENAME@%$VLC_CODENAME%g
3889 s%@SET_MAKE@%$SET_MAKE%g
3890 s%@CC@%$CC%g
3891 s%@CPP@%$CPP%g
3892 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3893 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3894 s%@INSTALL_DATA@%$INSTALL_DATA%g
3895 s%@GETOPT@%$GETOPT%g
3896 s%@SYS@%$SYS%g
3897 s%@ARCH@%$ARCH%g
3898 s%@PLUGINS@%$PLUGINS%g
3899 s%@BUILTINS@%$BUILTINS%g
3900 s%@ALIASES@%$ALIASES%g
3901 s%@INCLUDE@%$INCLUDE%g
3902 s%@DEBUG@%$DEBUG%g
3903 s%@STATS@%$STATS%g
3904 s%@OPTIMS@%$OPTIMS%g
3905 s%@CSS@%$CSS%g
3906 s%@LCFLAGS@%$LCFLAGS%g
3907 s%@LIB@%$LIB%g
3908 s%@LIB_ALSA@%$LIB_ALSA%g
3909 s%@LIB_BEOS@%$LIB_BEOS%g
3910 s%@LIB_DARWIN@%$LIB_DARWIN%g
3911 s%@LIB_ESD@%$LIB_ESD%g
3912 s%@LIB_GGI@%$LIB_GGI%g
3913 s%@LIB_GLIDE@%$LIB_GLIDE%g
3914 s%@LIB_GNOME@%$LIB_GNOME%g
3915 s%@LIB_GTK@%$LIB_GTK%g
3916 s%@LIB_IDCTALTIVEC@%$LIB_IDCTALTIVEC%g
3917 s%@LIB_MACOSX@%$LIB_MACOSX%g
3918 s%@LIB_NCURSES@%$LIB_NCURSES%g
3919 s%@LIB_QT@%$LIB_QT%g
3920 s%@LIB_TS@%$LIB_TS%g
3921 s%@LIB_SDL@%$LIB_SDL%g
3922 s%@LIB_X11@%$LIB_X11%g
3923 s%@LIB_XVIDEO@%$LIB_XVIDEO%g
3924 s%@LIB_YUV@%$LIB_YUV%g
3925
3926 CEOF
3927 EOF
3928
3929 cat >> $CONFIG_STATUS <<\EOF
3930
3931 # Split the substitutions into bite-sized pieces for seds with
3932 # small command number limits, like on Digital OSF/1 and HP-UX.
3933 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3934 ac_file=1 # Number of current file.
3935 ac_beg=1 # First line for current file.
3936 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3937 ac_more_lines=:
3938 ac_sed_cmds=""
3939 while $ac_more_lines; do
3940   if test $ac_beg -gt 1; then
3941     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3942   else
3943     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3944   fi
3945   if test ! -s conftest.s$ac_file; then
3946     ac_more_lines=false
3947     rm -f conftest.s$ac_file
3948   else
3949     if test -z "$ac_sed_cmds"; then
3950       ac_sed_cmds="sed -f conftest.s$ac_file"
3951     else
3952       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3953     fi
3954     ac_file=`expr $ac_file + 1`
3955     ac_beg=$ac_end
3956     ac_end=`expr $ac_end + $ac_max_sed_cmds`
3957   fi
3958 done
3959 if test -z "$ac_sed_cmds"; then
3960   ac_sed_cmds=cat
3961 fi
3962 EOF
3963
3964 cat >> $CONFIG_STATUS <<EOF
3965
3966 CONFIG_FILES=\${CONFIG_FILES-"Makefile.opts include/config.h"}
3967 EOF
3968 cat >> $CONFIG_STATUS <<\EOF
3969 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3970   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3971   case "$ac_file" in
3972   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3973        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3974   *) ac_file_in="${ac_file}.in" ;;
3975   esac
3976
3977   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3978
3979   # Remove last slash and all that follows it.  Not all systems have dirname.
3980   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3981   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3982     # The file is in a subdirectory.
3983     test ! -d "$ac_dir" && mkdir "$ac_dir"
3984     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3985     # A "../" for each directory in $ac_dir_suffix.
3986     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3987   else
3988     ac_dir_suffix= ac_dots=
3989   fi
3990
3991   case "$ac_given_srcdir" in
3992   .)  srcdir=.
3993       if test -z "$ac_dots"; then top_srcdir=.
3994       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3995   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3996   *) # Relative path.
3997     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3998     top_srcdir="$ac_dots$ac_given_srcdir" ;;
3999   esac
4000
4001   case "$ac_given_INSTALL" in
4002   [/$]*) INSTALL="$ac_given_INSTALL" ;;
4003   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4004   esac
4005
4006   echo creating "$ac_file"
4007   rm -f "$ac_file"
4008   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4009   case "$ac_file" in
4010   *Makefile*) ac_comsub="1i\\
4011 # $configure_input" ;;
4012   *) ac_comsub= ;;
4013   esac
4014
4015   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4016   sed -e "$ac_comsub
4017 s%@configure_input@%$configure_input%g
4018 s%@srcdir@%$srcdir%g
4019 s%@top_srcdir@%$top_srcdir%g
4020 s%@INSTALL@%$INSTALL%g
4021 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4022 fi; done
4023 rm -f conftest.s*
4024
4025 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4026 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4027 #
4028 # ac_d sets the value in "#define NAME VALUE" lines.
4029 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
4030 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
4031 ac_dC='\3'
4032 ac_dD='%g'
4033 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4034 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
4035 ac_uB='\([      ]\)%\1#\2define\3'
4036 ac_uC=' '
4037 ac_uD='\4%g'
4038 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4039 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
4040 ac_eB='$%\1#\2define\3'
4041 ac_eC=' '
4042 ac_eD='%g'
4043
4044 if test "${CONFIG_HEADERS+set}" != set; then
4045 EOF
4046 cat >> $CONFIG_STATUS <<EOF
4047   CONFIG_HEADERS="include/defs.h"
4048 EOF
4049 cat >> $CONFIG_STATUS <<\EOF
4050 fi
4051 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4052   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4053   case "$ac_file" in
4054   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4055        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4056   *) ac_file_in="${ac_file}.in" ;;
4057   esac
4058
4059   echo creating $ac_file
4060
4061   rm -f conftest.frag conftest.in conftest.out
4062   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4063   cat $ac_file_inputs > conftest.in
4064
4065 EOF
4066
4067 # Transform confdefs.h into a sed script conftest.vals that substitutes
4068 # the proper values into config.h.in to produce config.h.  And first:
4069 # Protect against being on the right side of a sed subst in config.status.
4070 # Protect against being in an unquoted here document in config.status.
4071 rm -f conftest.vals
4072 cat > conftest.hdr <<\EOF
4073 s/[\\&%]/\\&/g
4074 s%[\\$`]%\\&%g
4075 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4076 s%ac_d%ac_u%gp
4077 s%ac_u%ac_e%gp
4078 EOF
4079 sed -n -f conftest.hdr confdefs.h > conftest.vals
4080 rm -f conftest.hdr
4081
4082 # This sed command replaces #undef with comments.  This is necessary, for
4083 # example, in the case of _POSIX_SOURCE, which is predefined and required
4084 # on some systems where configure will not decide to define it.
4085 cat >> conftest.vals <<\EOF
4086 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4087 EOF
4088
4089 # Break up conftest.vals because some shells have a limit on
4090 # the size of here documents, and old seds have small limits too.
4091
4092 rm -f conftest.tail
4093 while :
4094 do
4095   ac_lines=`grep -c . conftest.vals`
4096   # grep -c gives empty output for an empty file on some AIX systems.
4097   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4098   # Write a limited-size here document to conftest.frag.
4099   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4100   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4101   echo 'CEOF
4102   sed -f conftest.frag conftest.in > conftest.out
4103   rm -f conftest.in
4104   mv conftest.out conftest.in
4105 ' >> $CONFIG_STATUS
4106   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4107   rm -f conftest.vals
4108   mv conftest.tail conftest.vals
4109 done
4110 rm -f conftest.vals
4111
4112 cat >> $CONFIG_STATUS <<\EOF
4113   rm -f conftest.frag conftest.h
4114   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
4115   cat conftest.in >> conftest.h
4116   rm -f conftest.in
4117   if cmp -s $ac_file conftest.h 2>/dev/null; then
4118     echo "$ac_file is unchanged"
4119     rm -f conftest.h
4120   else
4121     # Remove last slash and all that follows it.  Not all systems have dirname.
4122       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4123       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4124       # The file is in a subdirectory.
4125       test ! -d "$ac_dir" && mkdir "$ac_dir"
4126     fi
4127     rm -f $ac_file
4128     mv conftest.h $ac_file
4129   fi
4130 fi; done
4131
4132 EOF
4133 cat >> $CONFIG_STATUS <<EOF
4134
4135 EOF
4136 cat >> $CONFIG_STATUS <<\EOF
4137
4138 exit 0
4139 EOF
4140 chmod +x $CONFIG_STATUS
4141 rm -fr confdefs* $ac_clean_files
4142 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4143
4144
4145 echo "
4146 vlc configuration
4147 -----------------
4148 vlc version           : ${VLC_VERSION}
4149 system                : ${SYS}
4150 architecture          : ${ARCH}
4151 debug mode            : ${DEBUG}
4152 statistics            : ${STATS}
4153 optimizations         : ${OPTIMS}
4154 CSS decryption        : ${CSS}
4155 need builtin getopt   : ${GETOPT}
4156 plugin modules        : ${PLUGINS}
4157 built-in modules      : ${BUILTINS}
4158 vlc aliases           : ${ALIASES}
4159
4160 You may now tune Makefile.opts at your convenience."
4161