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