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