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