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