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